v17.4.51 is released
This commit is contained in:
Родитель
434bf58f8e
Коммит
ccfee6a911
|
@ -2,7 +2,7 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## 17.4.50 (2020-02-18)
|
||||
## 17.4.51 (2020-02-25)
|
||||
|
||||
### Barcode
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## 17.4.50 (2020-02-18)
|
||||
## 17.4.51 (2020-02-25)
|
||||
|
||||
### Barcode
|
||||
|
||||
|
|
|
@ -2,7 +2,16 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## 17.4.50 (2020-02-18)
|
||||
## 17.4.51 (2020-02-25)
|
||||
|
||||
### Common
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- `I261475` - Provided Angular 9 compatibility support.
|
||||
- Updated `peerDependencies` versions.
|
||||
|
||||
## 17.4.43 (2020-01-14)
|
||||
|
||||
### Common
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
[![coverage](http://ej2.syncfusion.com/badges/ej2-angular-base/coverage.svg)](http://ej2.syncfusion.com/badges/ej2-angular-base)
|
||||
|
||||
# ej2-angular-base
|
||||
|
||||
A common package of Syncfusion Angular UI Components which contains base libraries, methods and class definitions.
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -44,6 +44,7 @@ function registerEvents(eventList, obj, direct) {
|
|||
function clearTemplate(_this, templateNames, index) {
|
||||
let regTemplates = Object.keys(_this.registeredTemplate);
|
||||
if (regTemplates.length) {
|
||||
/* istanbul ignore next */
|
||||
let regProperties = templateNames && templateNames.filter((val) => {
|
||||
return (/\./g.test(val) ? false : true);
|
||||
});
|
||||
|
@ -63,9 +64,11 @@ function clearTemplate(_this, templateNames, index) {
|
|||
else {
|
||||
for (let rt of _this.registeredTemplate[registeredTemplate]) {
|
||||
if (!rt.destroyed) {
|
||||
let pNode = rt._view.renderer.parentNode(rt.rootNodes[0]);
|
||||
for (let m = 0; m < rt.rootNodes.length; m++) {
|
||||
pNode.appendChild(rt.rootNodes[m]);
|
||||
if (rt._view) {
|
||||
let pNode = rt._view.renderer.parentNode(rt.rootNodes[0]);
|
||||
for (let m = 0; m < rt.rootNodes.length; m++) {
|
||||
pNode.appendChild(rt.rootNodes[m]);
|
||||
}
|
||||
}
|
||||
rt.destroy();
|
||||
}
|
||||
|
@ -76,6 +79,7 @@ function clearTemplate(_this, templateNames, index) {
|
|||
}
|
||||
for (let tagObject of _this.tagObjects) {
|
||||
if (tagObject.instance) {
|
||||
/* istanbul ignore next */
|
||||
tagObject.instance.clearTemplate((templateNames && templateNames.filter((val) => {
|
||||
return (new RegExp(tagObject.name).test(val) ? true : false);
|
||||
})));
|
||||
|
@ -92,6 +96,7 @@ function clearTemplate(_this, templateNames, index) {
|
|||
*/
|
||||
function setValue$1(nameSpace, value, object) {
|
||||
let keys = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');
|
||||
/* istanbul ignore next */
|
||||
let fromObj = object || {};
|
||||
for (let i = 0; i < keys.length; i++) {
|
||||
let key = keys[i];
|
||||
|
@ -129,6 +134,16 @@ class ComplexBase {
|
|||
let propName = tempName.replace('Ref', '');
|
||||
setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
|
||||
}
|
||||
// Angular 9 compatibility to overcome ngOnchange not get triggered issue
|
||||
// To Update properties to "this.propCollection"
|
||||
let propList = Object.keys(this);
|
||||
/* istanbul ignore next */
|
||||
for (let k = 0; k < this.directivePropList.length; k++) {
|
||||
let dirPropName = this.directivePropList[k];
|
||||
if (propList.indexOf(dirPropName) !== -1) {
|
||||
setValue(dirPropName, getValue(dirPropName, this), this.propCollection);
|
||||
}
|
||||
}
|
||||
}
|
||||
registerEvents(eventList) {
|
||||
registerEvents(eventList, this, true);
|
||||
|
@ -141,10 +156,12 @@ class ComplexBase {
|
|||
this.isUpdated = false;
|
||||
this.hasChanges = true;
|
||||
}
|
||||
/* istanbul ignore next */
|
||||
clearTemplate(templateNames) {
|
||||
clearTemplate(this, templateNames);
|
||||
}
|
||||
getProperties() {
|
||||
/* istanbul ignore next */
|
||||
for (let tagObject of this.tagObjects) {
|
||||
this.propCollection[tagObject.name] = tagObject.instance.getProperties();
|
||||
}
|
||||
|
@ -152,6 +169,7 @@ class ComplexBase {
|
|||
}
|
||||
isChanged() {
|
||||
let result = this.hasChanges;
|
||||
/* istanbul ignore next */
|
||||
for (let item of this.tagObjects) {
|
||||
result = result || item.instance.hasChanges;
|
||||
}
|
||||
|
@ -163,6 +181,13 @@ class ComplexBase {
|
|||
templateProperties = templateProperties.filter((val) => {
|
||||
return /Ref$/i.test(val);
|
||||
});
|
||||
// For angular 9 compatibility
|
||||
// ngOnchange hook not get triggered for copmplex directive
|
||||
// Due to this, we have manually set template properties v alues once we get template property reference
|
||||
for (let tempName of templateProperties) {
|
||||
let propName = tempName.replace('Ref', '');
|
||||
setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
|
||||
}
|
||||
}
|
||||
ngAfterViewChecked() {
|
||||
/* istanbul ignore next */
|
||||
|
@ -182,6 +207,7 @@ class ArrayBase {
|
|||
}
|
||||
ngAfterContentInit() {
|
||||
let index = 0;
|
||||
/* istanbul ignore next */
|
||||
this.list = this.children.map((child) => {
|
||||
child.index = index++;
|
||||
child.property = this.propertyName;
|
||||
|
@ -204,7 +230,7 @@ class ArrayBase {
|
|||
let childrenDataSource = this.children.map((child) => {
|
||||
return child;
|
||||
});
|
||||
/* istanbul ignore start */
|
||||
/* istanbul ignore next */
|
||||
if (this.list.length === this.children.length) {
|
||||
for (let i = 0; i < this.list.length; i++) {
|
||||
if (this.list[i].propCollection.dataSource) {
|
||||
|
@ -239,6 +265,7 @@ class ArrayBase {
|
|||
return !!this.list.length && result;
|
||||
}
|
||||
clearTemplate(templateNames) {
|
||||
/* istanbul ignore next */
|
||||
for (let item of this.list) {
|
||||
item.clearTemplate(templateNames && templateNames.map((val) => {
|
||||
return new RegExp(this.propertyName).test(val) ? val.replace(this.propertyName + '.', '') : val;
|
||||
|
@ -278,18 +305,25 @@ class ComponentBase {
|
|||
this.finalUpdate = clearUpdate;
|
||||
}
|
||||
;
|
||||
ngOnInit() {
|
||||
this.registeredTemplate = {};
|
||||
this.ngBoundedEvents = {};
|
||||
this.isAngular = true;
|
||||
this.tags = this.tags || [];
|
||||
this.complexTemplate = this.complexTemplate || [];
|
||||
this.tagObjects = [];
|
||||
this.ngAttr = this.getAngularAttr(this.element);
|
||||
// tslint:disable-next-line:no-any
|
||||
ngOnInit(isTempRef) {
|
||||
// tslint:disable-next-line:no-any
|
||||
let tempOnThis = isTempRef || this;
|
||||
tempOnThis.registeredTemplate = {};
|
||||
tempOnThis.ngBoundedEvents = {};
|
||||
tempOnThis.isAngular = true;
|
||||
/* istanbul ignore next */
|
||||
this.createElement = (tagName, prop) => {
|
||||
if (isTempRef) {
|
||||
this.tags = isTempRef.tags;
|
||||
}
|
||||
tempOnThis.tags = this.tags || [];
|
||||
tempOnThis.complexTemplate = this.complexTemplate || [];
|
||||
tempOnThis.tagObjects = [];
|
||||
tempOnThis.ngAttr = this.getAngularAttr(tempOnThis.element);
|
||||
/* istanbul ignore next */
|
||||
tempOnThis.createElement = (tagName, prop) => {
|
||||
//tslint:disable-next-line
|
||||
let ele = this.srenderer ? this.srenderer.createElement(tagName) : createElement(tagName);
|
||||
let ele = tempOnThis.srenderer ? tempOnThis.srenderer.createElement(tagName) : createElement(tagName);
|
||||
if (typeof (prop) === 'undefined') {
|
||||
return ele;
|
||||
}
|
||||
|
@ -303,30 +337,30 @@ class ComponentBase {
|
|||
if (prop.styles !== undefined) {
|
||||
ele.setAttribute('style', prop.styles);
|
||||
}
|
||||
if (this.ngAttr !== undefined) {
|
||||
ele.setAttribute(this.ngAttr, '');
|
||||
if (tempOnThis.ngAttr !== undefined) {
|
||||
ele.setAttribute(tempOnThis.ngAttr, '');
|
||||
}
|
||||
if (prop.attrs !== undefined) {
|
||||
attributes(ele, prop.attrs);
|
||||
}
|
||||
return ele;
|
||||
};
|
||||
for (let tag of this.tags) {
|
||||
for (let tag of tempOnThis.tags) {
|
||||
let tagObject = {
|
||||
instance: getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), this),
|
||||
instance: getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), tempOnThis),
|
||||
name: tag
|
||||
};
|
||||
this.tagObjects.push(tagObject);
|
||||
tempOnThis.tagObjects.push(tagObject);
|
||||
}
|
||||
let complexTemplates = Object.keys(this);
|
||||
let complexTemplates = Object.keys(tempOnThis);
|
||||
complexTemplates = complexTemplates.filter((val) => {
|
||||
return /Ref$/i.test(val) && /\_/i.test(val);
|
||||
});
|
||||
for (let tempName of complexTemplates) {
|
||||
let propName = tempName.replace('Ref', '');
|
||||
let val = {};
|
||||
setValue(propName.replace('_', '.'), getValue(propName, this), val);
|
||||
this.setProperties(val, true);
|
||||
setValue(propName.replace('_', '.'), getValue(propName, tempOnThis), val);
|
||||
tempOnThis.setProperties(val, true);
|
||||
}
|
||||
}
|
||||
getAngularAttr(ele) {
|
||||
|
@ -334,6 +368,7 @@ class ComponentBase {
|
|||
let length = attributes$$1.length;
|
||||
let ngAr;
|
||||
for (let i = 0; i < length; i++) {
|
||||
/* istanbul ignore next */
|
||||
if (/_ngcontent/g.test(attributes$$1[i].name)) {
|
||||
ngAr = attributes$$1[i].name;
|
||||
}
|
||||
|
@ -341,26 +376,33 @@ class ComponentBase {
|
|||
return ngAr;
|
||||
}
|
||||
;
|
||||
ngAfterViewInit() {
|
||||
// tslint:disable-next-line:no-any
|
||||
ngAfterViewInit(isTempRef) {
|
||||
// tslint:disable-next-line:no-any
|
||||
let tempAfterViewThis = isTempRef || this;
|
||||
let regExp = /ejs-tab|ejs-accordion/g;
|
||||
if (regExp.test(this.ngEle.nativeElement.outerHTML)) {
|
||||
this.ngEle.nativeElement.style.visibility = 'hidden';
|
||||
/* istanbul ignore next */
|
||||
if (regExp.test(tempAfterViewThis.ngEle.nativeElement.outerHTML)) {
|
||||
tempAfterViewThis.ngEle.nativeElement.style.visibility = 'hidden';
|
||||
}
|
||||
// Used setTimeout for template binding
|
||||
// Refer Link: https://github.com/angular/angular/issues/6005
|
||||
setTimeout(() => {
|
||||
/* istanbul ignore else */
|
||||
if (typeof window !== 'undefined') {
|
||||
this.appendTo(this.element);
|
||||
this.ngEle.nativeElement.style.visibility = '';
|
||||
tempAfterViewThis.appendTo(tempAfterViewThis.element);
|
||||
tempAfterViewThis.ngEle.nativeElement.style.visibility = '';
|
||||
}
|
||||
});
|
||||
}
|
||||
ngOnDestroy() {
|
||||
// tslint:disable-next-line:no-any
|
||||
ngOnDestroy(isTempRef) {
|
||||
// tslint:disable-next-line:no-any
|
||||
let tempOnDestroyThis = isTempRef || this;
|
||||
/* istanbul ignore else */
|
||||
if (typeof window !== 'undefined' && this.element.classList.contains('e-control')) {
|
||||
this.destroy();
|
||||
this.clearTemplate(null);
|
||||
if (typeof window !== 'undefined' && tempOnDestroyThis.element.classList.contains('e-control')) {
|
||||
tempOnDestroyThis.destroy();
|
||||
tempOnDestroyThis.clearTemplate(null);
|
||||
}
|
||||
}
|
||||
//tslint:disable-next-line
|
||||
|
@ -368,20 +410,41 @@ class ComponentBase {
|
|||
clearTemplate(this, templateNames, index);
|
||||
}
|
||||
;
|
||||
ngAfterContentChecked() {
|
||||
for (let tagObject of this.tagObjects) {
|
||||
// tslint:disable-next-line:no-any
|
||||
ngAfterContentChecked(isTempRef) {
|
||||
// tslint:disable-next-line:no-any
|
||||
let tempAfterContentThis = isTempRef || this;
|
||||
for (let tagObject of tempAfterContentThis.tagObjects) {
|
||||
if (!isUndefined(tagObject.instance) &&
|
||||
(tagObject.instance.isInitChanges || tagObject.instance.hasChanges || tagObject.instance.hasNewChildren)) {
|
||||
if (tagObject.instance.isInitChanges) {
|
||||
let propObj = {};
|
||||
// For angular 9 compatibility
|
||||
// Not able to get complex directive properties reference ni Onint hook
|
||||
// So we have constructed property here and used
|
||||
let complexDirProps = tagObject.instance.list[0].directivePropList;
|
||||
if (complexDirProps && complexDirProps.indexOf(tagObject.instance.propertyName) === -1) {
|
||||
let compDirPropList = Object.keys(tagObject.instance.list[0].propCollection);
|
||||
for (let h = 0; h < tagObject.instance.list.length; h++) {
|
||||
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName] = [];
|
||||
let obj = {};
|
||||
for (let k = 0; k < compDirPropList.length; k++) {
|
||||
let complexPropName = compDirPropList[k];
|
||||
obj[complexPropName] = tagObject.instance.list[h].propCollection[complexPropName];
|
||||
}
|
||||
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName].push(obj);
|
||||
}
|
||||
}
|
||||
// End angular 9 compatibility
|
||||
propObj[tagObject.name] = tagObject.instance.getProperties();
|
||||
this.setProperties(propObj, tagObject.instance.isInitChanges);
|
||||
tempAfterContentThis.setProperties(propObj, tagObject.instance.isInitChanges);
|
||||
}
|
||||
else {
|
||||
/* istanbul ignore next */
|
||||
for (let list of tagObject.instance.list) {
|
||||
if (list.hasChanges) {
|
||||
let curIndex = tagObject.instance.list.indexOf(list);
|
||||
let curChild = getValue(tagObject.name, this)[curIndex];
|
||||
let curChild = getValue(tagObject.name, tempAfterContentThis)[curIndex];
|
||||
if (curChild !== undefined && curChild.setProperties !== undefined) {
|
||||
curChild.setProperties(list.getProperties());
|
||||
}
|
||||
|
@ -506,17 +569,20 @@ class FormBase {
|
|||
setValue(prop, (isNullOrUndefined(newVal) ? null : newVal), this.properties);
|
||||
getValue(prop + 'Change', this).emit(newVal);
|
||||
}
|
||||
ngAfterViewInit() {
|
||||
// tslint:disable-next-line:no-any
|
||||
ngAfterViewInit(isTempRef) {
|
||||
// tslint:disable-next-line:no-any
|
||||
let tempFormAfterViewThis = isTempRef || this;
|
||||
// Used setTimeout for template binding
|
||||
// Refer Link: https://github.com/angular/angular/issues/6005
|
||||
// Removed setTimeout, Because we have called markForCheck() method in Angular Template Compiler
|
||||
// setTimeout(() => {
|
||||
/* istanbul ignore else */
|
||||
if (typeof window !== 'undefined') {
|
||||
this.appendTo(this.element);
|
||||
let ele = this.inputElement || this.element;
|
||||
ele.addEventListener('focus', this.ngOnFocus.bind(this));
|
||||
ele.addEventListener('blur', this.ngOnBlur.bind(this));
|
||||
tempFormAfterViewThis.appendTo(tempFormAfterViewThis.element);
|
||||
let ele = tempFormAfterViewThis.inputElement || tempFormAfterViewThis.element;
|
||||
ele.addEventListener('focus', tempFormAfterViewThis.ngOnFocus.bind(tempFormAfterViewThis));
|
||||
ele.addEventListener('blur', tempFormAfterViewThis.ngOnBlur.bind(tempFormAfterViewThis));
|
||||
}
|
||||
// });
|
||||
}
|
||||
|
@ -582,9 +648,11 @@ function compile(templateEle, helper) {
|
|||
//tslint:disable-next-line
|
||||
return (data, component, propName) => {
|
||||
let context = { $implicit: data };
|
||||
/* istanbul ignore next */
|
||||
let conRef = contRef ? contRef : component.viewContainerRef;
|
||||
let viewRef = conRef.createEmbeddedView(templateEle, context);
|
||||
viewRef.markForCheck();
|
||||
/* istanbul ignore next */
|
||||
let viewCollection = component ?
|
||||
component.registeredTemplate : getValue('currentInstance.registeredTemplate', conRef);
|
||||
propName = propName ? propName : pName;
|
||||
|
@ -630,6 +698,7 @@ function setter(key) {
|
|||
}
|
||||
function getter(key, defaultValue) {
|
||||
return function () {
|
||||
/* istanbul ignore next */
|
||||
return getValue(key + 'Ref', this) || defaultValue;
|
||||
};
|
||||
}
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -45,6 +45,7 @@ function registerEvents(eventList, obj, direct) {
|
|||
function clearTemplate(_this, templateNames, index) {
|
||||
var regTemplates = Object.keys(_this.registeredTemplate);
|
||||
if (regTemplates.length) {
|
||||
/* istanbul ignore next */
|
||||
var regProperties = templateNames && templateNames.filter(function (val) {
|
||||
return (/\./g.test(val) ? false : true);
|
||||
});
|
||||
|
@ -66,9 +67,11 @@ function clearTemplate(_this, templateNames, index) {
|
|||
for (var _b = 0, _c = _this.registeredTemplate[registeredTemplate]; _b < _c.length; _b++) {
|
||||
var rt = _c[_b];
|
||||
if (!rt.destroyed) {
|
||||
var pNode = rt._view.renderer.parentNode(rt.rootNodes[0]);
|
||||
for (var m = 0; m < rt.rootNodes.length; m++) {
|
||||
pNode.appendChild(rt.rootNodes[m]);
|
||||
if (rt._view) {
|
||||
var pNode = rt._view.renderer.parentNode(rt.rootNodes[0]);
|
||||
for (var m = 0; m < rt.rootNodes.length; m++) {
|
||||
pNode.appendChild(rt.rootNodes[m]);
|
||||
}
|
||||
}
|
||||
rt.destroy();
|
||||
}
|
||||
|
@ -79,6 +82,7 @@ function clearTemplate(_this, templateNames, index) {
|
|||
}
|
||||
var _loop_1 = function (tagObject) {
|
||||
if (tagObject.instance) {
|
||||
/* istanbul ignore next */
|
||||
tagObject.instance.clearTemplate((templateNames && templateNames.filter(function (val) {
|
||||
return (new RegExp(tagObject.name).test(val) ? true : false);
|
||||
})));
|
||||
|
@ -99,6 +103,7 @@ function clearTemplate(_this, templateNames, index) {
|
|||
*/
|
||||
function setValue$1(nameSpace, value, object) {
|
||||
var keys = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');
|
||||
/* istanbul ignore next */
|
||||
var fromObj = object || {};
|
||||
for (var i = 0; i < keys.length; i++) {
|
||||
var key = keys[i];
|
||||
|
@ -138,6 +143,16 @@ var ComplexBase = /** @__PURE__ @class */ (function () {
|
|||
var propName = tempName.replace('Ref', '');
|
||||
setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
|
||||
}
|
||||
// Angular 9 compatibility to overcome ngOnchange not get triggered issue
|
||||
// To Update properties to "this.propCollection"
|
||||
var propList = Object.keys(this);
|
||||
/* istanbul ignore next */
|
||||
for (var k = 0; k < this.directivePropList.length; k++) {
|
||||
var dirPropName = this.directivePropList[k];
|
||||
if (propList.indexOf(dirPropName) !== -1) {
|
||||
setValue(dirPropName, getValue(dirPropName, this), this.propCollection);
|
||||
}
|
||||
}
|
||||
};
|
||||
ComplexBase.prototype.registerEvents = function (eventList) {
|
||||
registerEvents(eventList, this, true);
|
||||
|
@ -151,10 +166,12 @@ var ComplexBase = /** @__PURE__ @class */ (function () {
|
|||
this.isUpdated = false;
|
||||
this.hasChanges = true;
|
||||
};
|
||||
/* istanbul ignore next */
|
||||
ComplexBase.prototype.clearTemplate = function (templateNames) {
|
||||
clearTemplate(this, templateNames);
|
||||
};
|
||||
ComplexBase.prototype.getProperties = function () {
|
||||
/* istanbul ignore next */
|
||||
for (var _i = 0, _a = this.tagObjects; _i < _a.length; _i++) {
|
||||
var tagObject = _a[_i];
|
||||
this.propCollection[tagObject.name] = tagObject.instance.getProperties();
|
||||
|
@ -163,6 +180,7 @@ var ComplexBase = /** @__PURE__ @class */ (function () {
|
|||
};
|
||||
ComplexBase.prototype.isChanged = function () {
|
||||
var result = this.hasChanges;
|
||||
/* istanbul ignore next */
|
||||
for (var _i = 0, _a = this.tagObjects; _i < _a.length; _i++) {
|
||||
var item = _a[_i];
|
||||
result = result || item.instance.hasChanges;
|
||||
|
@ -175,6 +193,14 @@ var ComplexBase = /** @__PURE__ @class */ (function () {
|
|||
templateProperties = templateProperties.filter(function (val) {
|
||||
return /Ref$/i.test(val);
|
||||
});
|
||||
// For angular 9 compatibility
|
||||
// ngOnchange hook not get triggered for copmplex directive
|
||||
// Due to this, we have manually set template properties v alues once we get template property reference
|
||||
for (var _i = 0, templateProperties_2 = templateProperties; _i < templateProperties_2.length; _i++) {
|
||||
var tempName = templateProperties_2[_i];
|
||||
var propName = tempName.replace('Ref', '');
|
||||
setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
|
||||
}
|
||||
};
|
||||
ComplexBase.prototype.ngAfterViewChecked = function () {
|
||||
/* istanbul ignore next */
|
||||
|
@ -196,6 +222,7 @@ var ArrayBase = /** @__PURE__ @class */ (function () {
|
|||
ArrayBase.prototype.ngAfterContentInit = function () {
|
||||
var _this = this;
|
||||
var index = 0;
|
||||
/* istanbul ignore next */
|
||||
this.list = this.children.map(function (child) {
|
||||
child.index = index++;
|
||||
child.property = _this.propertyName;
|
||||
|
@ -220,7 +247,7 @@ var ArrayBase = /** @__PURE__ @class */ (function () {
|
|||
var childrenDataSource = this.children.map(function (child) {
|
||||
return child;
|
||||
});
|
||||
/* istanbul ignore start */
|
||||
/* istanbul ignore next */
|
||||
if (this.list.length === this.children.length) {
|
||||
for (var i = 0; i < this.list.length; i++) {
|
||||
if (this.list[i].propCollection.dataSource) {
|
||||
|
@ -257,6 +284,7 @@ var ArrayBase = /** @__PURE__ @class */ (function () {
|
|||
};
|
||||
ArrayBase.prototype.clearTemplate = function (templateNames) {
|
||||
var _this = this;
|
||||
/* istanbul ignore next */
|
||||
for (var _i = 0, _a = this.list; _i < _a.length; _i++) {
|
||||
var item = _a[_i];
|
||||
item.clearTemplate(templateNames && templateNames.map(function (val) {
|
||||
|
@ -298,19 +326,25 @@ var ComponentBase = /** @__PURE__ @class */ (function () {
|
|||
this.finalUpdate = clearUpdate;
|
||||
};
|
||||
|
||||
ComponentBase.prototype.ngOnInit = function () {
|
||||
var _this = this;
|
||||
this.registeredTemplate = {};
|
||||
this.ngBoundedEvents = {};
|
||||
this.isAngular = true;
|
||||
this.tags = this.tags || [];
|
||||
this.complexTemplate = this.complexTemplate || [];
|
||||
this.tagObjects = [];
|
||||
this.ngAttr = this.getAngularAttr(this.element);
|
||||
// tslint:disable-next-line:no-any
|
||||
ComponentBase.prototype.ngOnInit = function (isTempRef) {
|
||||
// tslint:disable-next-line:no-any
|
||||
var tempOnThis = isTempRef || this;
|
||||
tempOnThis.registeredTemplate = {};
|
||||
tempOnThis.ngBoundedEvents = {};
|
||||
tempOnThis.isAngular = true;
|
||||
/* istanbul ignore next */
|
||||
this.createElement = function (tagName, prop) {
|
||||
if (isTempRef) {
|
||||
this.tags = isTempRef.tags;
|
||||
}
|
||||
tempOnThis.tags = this.tags || [];
|
||||
tempOnThis.complexTemplate = this.complexTemplate || [];
|
||||
tempOnThis.tagObjects = [];
|
||||
tempOnThis.ngAttr = this.getAngularAttr(tempOnThis.element);
|
||||
/* istanbul ignore next */
|
||||
tempOnThis.createElement = function (tagName, prop) {
|
||||
//tslint:disable-next-line
|
||||
var ele = _this.srenderer ? _this.srenderer.createElement(tagName) : createElement(tagName);
|
||||
var ele = tempOnThis.srenderer ? tempOnThis.srenderer.createElement(tagName) : createElement(tagName);
|
||||
if (typeof (prop) === 'undefined') {
|
||||
return ele;
|
||||
}
|
||||
|
@ -324,23 +358,23 @@ var ComponentBase = /** @__PURE__ @class */ (function () {
|
|||
if (prop.styles !== undefined) {
|
||||
ele.setAttribute('style', prop.styles);
|
||||
}
|
||||
if (_this.ngAttr !== undefined) {
|
||||
ele.setAttribute(_this.ngAttr, '');
|
||||
if (tempOnThis.ngAttr !== undefined) {
|
||||
ele.setAttribute(tempOnThis.ngAttr, '');
|
||||
}
|
||||
if (prop.attrs !== undefined) {
|
||||
attributes(ele, prop.attrs);
|
||||
}
|
||||
return ele;
|
||||
};
|
||||
for (var _i = 0, _a = this.tags; _i < _a.length; _i++) {
|
||||
for (var _i = 0, _a = tempOnThis.tags; _i < _a.length; _i++) {
|
||||
var tag = _a[_i];
|
||||
var tagObject = {
|
||||
instance: getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), this),
|
||||
instance: getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), tempOnThis),
|
||||
name: tag
|
||||
};
|
||||
this.tagObjects.push(tagObject);
|
||||
tempOnThis.tagObjects.push(tagObject);
|
||||
}
|
||||
var complexTemplates = Object.keys(this);
|
||||
var complexTemplates = Object.keys(tempOnThis);
|
||||
complexTemplates = complexTemplates.filter(function (val) {
|
||||
return /Ref$/i.test(val) && /\_/i.test(val);
|
||||
});
|
||||
|
@ -348,8 +382,8 @@ var ComponentBase = /** @__PURE__ @class */ (function () {
|
|||
var tempName = complexTemplates_1[_b];
|
||||
var propName = tempName.replace('Ref', '');
|
||||
var val = {};
|
||||
setValue(propName.replace('_', '.'), getValue(propName, this), val);
|
||||
this.setProperties(val, true);
|
||||
setValue(propName.replace('_', '.'), getValue(propName, tempOnThis), val);
|
||||
tempOnThis.setProperties(val, true);
|
||||
}
|
||||
};
|
||||
ComponentBase.prototype.getAngularAttr = function (ele) {
|
||||
|
@ -357,6 +391,7 @@ var ComponentBase = /** @__PURE__ @class */ (function () {
|
|||
var length = attributes$$1.length;
|
||||
var ngAr;
|
||||
for (var i = 0; i < length; i++) {
|
||||
/* istanbul ignore next */
|
||||
if (/_ngcontent/g.test(attributes$$1[i].name)) {
|
||||
ngAr = attributes$$1[i].name;
|
||||
}
|
||||
|
@ -364,27 +399,33 @@ var ComponentBase = /** @__PURE__ @class */ (function () {
|
|||
return ngAr;
|
||||
};
|
||||
|
||||
ComponentBase.prototype.ngAfterViewInit = function () {
|
||||
var _this = this;
|
||||
// tslint:disable-next-line:no-any
|
||||
ComponentBase.prototype.ngAfterViewInit = function (isTempRef) {
|
||||
// tslint:disable-next-line:no-any
|
||||
var tempAfterViewThis = isTempRef || this;
|
||||
var regExp = /ejs-tab|ejs-accordion/g;
|
||||
if (regExp.test(this.ngEle.nativeElement.outerHTML)) {
|
||||
this.ngEle.nativeElement.style.visibility = 'hidden';
|
||||
/* istanbul ignore next */
|
||||
if (regExp.test(tempAfterViewThis.ngEle.nativeElement.outerHTML)) {
|
||||
tempAfterViewThis.ngEle.nativeElement.style.visibility = 'hidden';
|
||||
}
|
||||
// Used setTimeout for template binding
|
||||
// Refer Link: https://github.com/angular/angular/issues/6005
|
||||
setTimeout(function () {
|
||||
/* istanbul ignore else */
|
||||
if (typeof window !== 'undefined') {
|
||||
_this.appendTo(_this.element);
|
||||
_this.ngEle.nativeElement.style.visibility = '';
|
||||
tempAfterViewThis.appendTo(tempAfterViewThis.element);
|
||||
tempAfterViewThis.ngEle.nativeElement.style.visibility = '';
|
||||
}
|
||||
});
|
||||
};
|
||||
ComponentBase.prototype.ngOnDestroy = function () {
|
||||
// tslint:disable-next-line:no-any
|
||||
ComponentBase.prototype.ngOnDestroy = function (isTempRef) {
|
||||
// tslint:disable-next-line:no-any
|
||||
var tempOnDestroyThis = isTempRef || this;
|
||||
/* istanbul ignore else */
|
||||
if (typeof window !== 'undefined' && this.element.classList.contains('e-control')) {
|
||||
this.destroy();
|
||||
this.clearTemplate(null);
|
||||
if (typeof window !== 'undefined' && tempOnDestroyThis.element.classList.contains('e-control')) {
|
||||
tempOnDestroyThis.destroy();
|
||||
tempOnDestroyThis.clearTemplate(null);
|
||||
}
|
||||
};
|
||||
//tslint:disable-next-line
|
||||
|
@ -392,22 +433,43 @@ var ComponentBase = /** @__PURE__ @class */ (function () {
|
|||
clearTemplate(this, templateNames, index);
|
||||
};
|
||||
|
||||
ComponentBase.prototype.ngAfterContentChecked = function () {
|
||||
for (var _i = 0, _a = this.tagObjects; _i < _a.length; _i++) {
|
||||
// tslint:disable-next-line:no-any
|
||||
ComponentBase.prototype.ngAfterContentChecked = function (isTempRef) {
|
||||
// tslint:disable-next-line:no-any
|
||||
var tempAfterContentThis = isTempRef || this;
|
||||
for (var _i = 0, _a = tempAfterContentThis.tagObjects; _i < _a.length; _i++) {
|
||||
var tagObject = _a[_i];
|
||||
if (!isUndefined(tagObject.instance) &&
|
||||
(tagObject.instance.isInitChanges || tagObject.instance.hasChanges || tagObject.instance.hasNewChildren)) {
|
||||
if (tagObject.instance.isInitChanges) {
|
||||
var propObj = {};
|
||||
// For angular 9 compatibility
|
||||
// Not able to get complex directive properties reference ni Onint hook
|
||||
// So we have constructed property here and used
|
||||
var complexDirProps = tagObject.instance.list[0].directivePropList;
|
||||
if (complexDirProps && complexDirProps.indexOf(tagObject.instance.propertyName) === -1) {
|
||||
var compDirPropList = Object.keys(tagObject.instance.list[0].propCollection);
|
||||
for (var h = 0; h < tagObject.instance.list.length; h++) {
|
||||
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName] = [];
|
||||
var obj = {};
|
||||
for (var k = 0; k < compDirPropList.length; k++) {
|
||||
var complexPropName = compDirPropList[k];
|
||||
obj[complexPropName] = tagObject.instance.list[h].propCollection[complexPropName];
|
||||
}
|
||||
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName].push(obj);
|
||||
}
|
||||
}
|
||||
// End angular 9 compatibility
|
||||
propObj[tagObject.name] = tagObject.instance.getProperties();
|
||||
this.setProperties(propObj, tagObject.instance.isInitChanges);
|
||||
tempAfterContentThis.setProperties(propObj, tagObject.instance.isInitChanges);
|
||||
}
|
||||
else {
|
||||
/* istanbul ignore next */
|
||||
for (var _b = 0, _c = tagObject.instance.list; _b < _c.length; _b++) {
|
||||
var list = _c[_b];
|
||||
if (list.hasChanges) {
|
||||
var curIndex = tagObject.instance.list.indexOf(list);
|
||||
var curChild = getValue(tagObject.name, this)[curIndex];
|
||||
var curChild = getValue(tagObject.name, tempAfterContentThis)[curIndex];
|
||||
if (curChild !== undefined && curChild.setProperties !== undefined) {
|
||||
curChild.setProperties(list.getProperties());
|
||||
}
|
||||
|
@ -541,17 +603,20 @@ var FormBase = /** @__PURE__ @class */ (function () {
|
|||
setValue(prop, (isNullOrUndefined(newVal) ? null : newVal), this.properties);
|
||||
getValue(prop + 'Change', this).emit(newVal);
|
||||
};
|
||||
FormBase.prototype.ngAfterViewInit = function () {
|
||||
// tslint:disable-next-line:no-any
|
||||
FormBase.prototype.ngAfterViewInit = function (isTempRef) {
|
||||
// tslint:disable-next-line:no-any
|
||||
var tempFormAfterViewThis = isTempRef || this;
|
||||
// Used setTimeout for template binding
|
||||
// Refer Link: https://github.com/angular/angular/issues/6005
|
||||
// Removed setTimeout, Because we have called markForCheck() method in Angular Template Compiler
|
||||
// setTimeout(() => {
|
||||
/* istanbul ignore else */
|
||||
if (typeof window !== 'undefined') {
|
||||
this.appendTo(this.element);
|
||||
var ele = this.inputElement || this.element;
|
||||
ele.addEventListener('focus', this.ngOnFocus.bind(this));
|
||||
ele.addEventListener('blur', this.ngOnBlur.bind(this));
|
||||
tempFormAfterViewThis.appendTo(tempFormAfterViewThis.element);
|
||||
var ele = tempFormAfterViewThis.inputElement || tempFormAfterViewThis.element;
|
||||
ele.addEventListener('focus', tempFormAfterViewThis.ngOnFocus.bind(tempFormAfterViewThis));
|
||||
ele.addEventListener('blur', tempFormAfterViewThis.ngOnBlur.bind(tempFormAfterViewThis));
|
||||
}
|
||||
// });
|
||||
};
|
||||
|
@ -618,9 +683,11 @@ function compile(templateEle, helper) {
|
|||
//tslint:disable-next-line
|
||||
return function (data, component, propName) {
|
||||
var context = { $implicit: data };
|
||||
/* istanbul ignore next */
|
||||
var conRef = contRef_1 ? contRef_1 : component.viewContainerRef;
|
||||
var viewRef = conRef.createEmbeddedView(templateEle, context);
|
||||
viewRef.markForCheck();
|
||||
/* istanbul ignore next */
|
||||
var viewCollection = component ?
|
||||
component.registeredTemplate : getValue('currentInstance.registeredTemplate', conRef);
|
||||
propName = propName ? propName : pName_1;
|
||||
|
@ -666,6 +733,7 @@ function setter(key) {
|
|||
}
|
||||
function getter(key, defaultValue) {
|
||||
return function () {
|
||||
/* istanbul ignore next */
|
||||
return getValue(key + 'Ref', this) || defaultValue;
|
||||
};
|
||||
}
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@syncfusion/ej2-angular-base",
|
||||
"version": "17.4.41",
|
||||
"version": "17.4.47",
|
||||
"description": "A common package of Essential JS 2 base Angular libraries, methods and class definitions",
|
||||
"author": "Syncfusion Inc.",
|
||||
"license": "SEE LICENSE IN license",
|
||||
|
|
|
@ -27,6 +27,8 @@ export class ComplexBase<T> {
|
|||
public tags?: string[] = [];
|
||||
private tagObjects?: { name: string, instance: Tag }[] = [];
|
||||
private registeredTemplate: { [key: string]: EmbeddedViewRef<Object>[] };
|
||||
// tslint:disable-next-line:no-any
|
||||
protected directivePropList: any;
|
||||
public ngOnInit(): void {
|
||||
this.registeredTemplate = {};
|
||||
for (let tag of this.tags) {
|
||||
|
@ -43,6 +45,17 @@ export class ComplexBase<T> {
|
|||
let propName: string = tempName.replace('Ref', '');
|
||||
setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
|
||||
}
|
||||
|
||||
// Angular 9 compatibility to overcome ngOnchange not get triggered issue
|
||||
// To Update properties to "this.propCollection"
|
||||
let propList: string[] = Object.keys(this);
|
||||
/* istanbul ignore next */
|
||||
for (let k: number = 0; k < this.directivePropList.length; k++) {
|
||||
let dirPropName: string = this.directivePropList[k];
|
||||
if (propList.indexOf(dirPropName) !== -1) {
|
||||
setValue(dirPropName, getValue(dirPropName, this), this.propCollection);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected registerEvents(eventList: string[]): void {
|
||||
|
@ -57,12 +70,13 @@ export class ComplexBase<T> {
|
|||
this.isUpdated = false;
|
||||
this.hasChanges = true;
|
||||
}
|
||||
|
||||
/* istanbul ignore next */
|
||||
public clearTemplate(templateNames: string[]): void {
|
||||
clearTemplate(this, templateNames);
|
||||
}
|
||||
|
||||
public getProperties(): { [key: string]: Object } {
|
||||
/* istanbul ignore next */
|
||||
for (let tagObject of this.tagObjects) {
|
||||
this.propCollection[tagObject.name] = tagObject.instance.getProperties();
|
||||
}
|
||||
|
@ -71,6 +85,7 @@ export class ComplexBase<T> {
|
|||
|
||||
public isChanged(): boolean {
|
||||
let result: boolean = this.hasChanges;
|
||||
/* istanbul ignore next */
|
||||
for (let item of this.tagObjects) {
|
||||
result = result || item.instance.hasChanges;
|
||||
}
|
||||
|
@ -83,6 +98,14 @@ export class ComplexBase<T> {
|
|||
templateProperties = templateProperties.filter((val: string) => {
|
||||
return /Ref$/i.test(val);
|
||||
});
|
||||
// For angular 9 compatibility
|
||||
// ngOnchange hook not get triggered for copmplex directive
|
||||
// Due to this, we have manually set template properties v alues once we get template property reference
|
||||
for (let tempName of templateProperties) {
|
||||
let propName: string = tempName.replace('Ref', '');
|
||||
let val: Object = {};
|
||||
setValue(propName.replace('_', '.'), getValue(propName, this), this.propCollection);
|
||||
}
|
||||
}
|
||||
|
||||
public ngAfterViewChecked(): void {
|
||||
|
@ -112,6 +135,7 @@ export class ArrayBase<T> {
|
|||
|
||||
public ngAfterContentInit(): void {
|
||||
let index: number = 0;
|
||||
/* istanbul ignore next */
|
||||
this.list = this.children.map((child: T & ComplexBase<T>) => {
|
||||
child.index = index++;
|
||||
child.property = this.propertyName;
|
||||
|
@ -138,7 +162,7 @@ export class ArrayBase<T> {
|
|||
return child;
|
||||
}
|
||||
);
|
||||
/* istanbul ignore start */
|
||||
/* istanbul ignore next */
|
||||
if (this.list.length === this.children.length) {
|
||||
for (let i: number = 0; i < this.list.length; i++) {
|
||||
if (this.list[i].propCollection.dataSource) {
|
||||
|
@ -174,6 +198,7 @@ export class ArrayBase<T> {
|
|||
}
|
||||
|
||||
public clearTemplate(templateNames: string[]): void {
|
||||
/* istanbul ignore next */
|
||||
for (let item of this.list) {
|
||||
(<{ clearTemplate: Function }>item).clearTemplate(templateNames && templateNames.map((val: string): string => {
|
||||
return new RegExp(this.propertyName).test(val) ? val.replace(this.propertyName + '.', '') : val;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* Angular Component Base Module
|
||||
*/
|
||||
import { getValue, isUndefined, setValue, isNullOrUndefined, attributes, createElement } from '@syncfusion/ej2-base';
|
||||
import { getValue, isUndefined, setValue, isNullOrUndefined, attributes, createElement } from '@syncfusion/ej2-base';
|
||||
import { EventEmitter, EmbeddedViewRef, Renderer2, ElementRef } from '@angular/core';
|
||||
import { clearTemplate, registerEvents } from './util';
|
||||
|
||||
|
@ -24,7 +24,7 @@ interface Tag {
|
|||
interface TagList {
|
||||
getProperties: Function;
|
||||
hasChanges: boolean;
|
||||
isUpdated : boolean;
|
||||
isUpdated: boolean;
|
||||
}
|
||||
|
||||
export class ComponentBase<T> {
|
||||
|
@ -65,20 +65,26 @@ export class ComponentBase<T> {
|
|||
private complexTemplate: string[];
|
||||
|
||||
private ngBoundedEvents: { [key: string]: Map<object, object> };
|
||||
|
||||
public ngOnInit(): void {
|
||||
this.registeredTemplate = {};
|
||||
this.ngBoundedEvents = {};
|
||||
this.isAngular = true;
|
||||
this.tags = this.tags || [];
|
||||
this.complexTemplate = this.complexTemplate || [];
|
||||
this.tagObjects = [];
|
||||
this.ngAttr = this.getAngularAttr(this.element);
|
||||
// tslint:disable-next-line:no-any
|
||||
public ngOnInit(isTempRef?: any): void {
|
||||
// tslint:disable-next-line:no-any
|
||||
let tempOnThis: any = isTempRef || this;
|
||||
tempOnThis.registeredTemplate = {};
|
||||
tempOnThis.ngBoundedEvents = {};
|
||||
tempOnThis.isAngular = true;
|
||||
/* istanbul ignore next */
|
||||
this.createElement = (tagName: string, prop?:
|
||||
if (isTempRef) {
|
||||
this.tags = isTempRef.tags;
|
||||
}
|
||||
tempOnThis.tags = this.tags || [];
|
||||
tempOnThis.complexTemplate = this.complexTemplate || [];
|
||||
tempOnThis.tagObjects = [];
|
||||
tempOnThis.ngAttr = this.getAngularAttr(tempOnThis.element);
|
||||
/* istanbul ignore next */
|
||||
tempOnThis.createElement = (tagName: string, prop?:
|
||||
{ id?: string, className?: string, innerHTML?: string, styles?: string, attrs?: { [key: string]: string } }) => {
|
||||
//tslint:disable-next-line
|
||||
let ele: Element = this.srenderer ? this.srenderer.createElement(tagName) : createElement(tagName);
|
||||
let ele: Element = tempOnThis.srenderer ? tempOnThis.srenderer.createElement(tagName) : createElement(tagName);
|
||||
if (typeof (prop) === 'undefined') {
|
||||
return <HTMLElement>ele;
|
||||
}
|
||||
|
@ -93,31 +99,31 @@ export class ComponentBase<T> {
|
|||
if (prop.styles !== undefined) {
|
||||
ele.setAttribute('style', prop.styles);
|
||||
}
|
||||
if (this.ngAttr !== undefined) {
|
||||
ele.setAttribute(this.ngAttr, '');
|
||||
if (tempOnThis.ngAttr !== undefined) {
|
||||
ele.setAttribute(tempOnThis.ngAttr, '');
|
||||
}
|
||||
if (prop.attrs !== undefined) {
|
||||
attributes(ele, prop.attrs);
|
||||
}
|
||||
return <HTMLElement>ele;
|
||||
};
|
||||
for (let tag of this.tags) {
|
||||
for (let tag of tempOnThis.tags) {
|
||||
let tagObject: { name: string, instance: Tag } = {
|
||||
instance: getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), this),
|
||||
instance: getValue('child' + tag.substring(0, 1).toUpperCase() + tag.substring(1), tempOnThis),
|
||||
name: tag
|
||||
};
|
||||
this.tagObjects.push(tagObject);
|
||||
tempOnThis.tagObjects.push(tagObject);
|
||||
}
|
||||
|
||||
let complexTemplates: string[] = Object.keys(this);
|
||||
let complexTemplates: string[] = Object.keys(tempOnThis);
|
||||
complexTemplates = complexTemplates.filter((val: string): boolean => {
|
||||
return /Ref$/i.test(val) && /\_/i.test(val);
|
||||
});
|
||||
for (let tempName of complexTemplates) {
|
||||
let propName: string = tempName.replace('Ref', '');
|
||||
let val: Object = {};
|
||||
setValue(propName.replace('_', '.'), getValue(propName, this), val);
|
||||
this.setProperties(val, true);
|
||||
setValue(propName.replace('_', '.'), getValue(propName, tempOnThis), val);
|
||||
tempOnThis.setProperties(val, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -126,54 +132,81 @@ export class ComponentBase<T> {
|
|||
let length: number = attributes.length;
|
||||
let ngAr: string;
|
||||
for (let i: number = 0; i < length; i++) {
|
||||
/* istanbul ignore next */
|
||||
if (/_ngcontent/g.test(attributes[i].name)) {
|
||||
ngAr = attributes[i].name;
|
||||
}
|
||||
}
|
||||
return ngAr;
|
||||
};
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
// tslint:disable-next-line:no-any
|
||||
public ngAfterViewInit(isTempRef?: any): void {
|
||||
// tslint:disable-next-line:no-any
|
||||
let tempAfterViewThis: any = isTempRef || this;
|
||||
let regExp: RegExp = /ejs-tab|ejs-accordion/g;
|
||||
if (regExp.test(this.ngEle.nativeElement.outerHTML)) {
|
||||
this.ngEle.nativeElement.style.visibility = 'hidden';
|
||||
/* istanbul ignore next */
|
||||
if (regExp.test(tempAfterViewThis.ngEle.nativeElement.outerHTML)) {
|
||||
tempAfterViewThis.ngEle.nativeElement.style.visibility = 'hidden';
|
||||
}
|
||||
// Used setTimeout for template binding
|
||||
// Refer Link: https://github.com/angular/angular/issues/6005
|
||||
setTimeout(() => {
|
||||
/* istanbul ignore else */
|
||||
if (typeof window !== 'undefined') {
|
||||
this.appendTo(this.element);
|
||||
this.ngEle.nativeElement.style.visibility = '';
|
||||
tempAfterViewThis.appendTo(tempAfterViewThis.element);
|
||||
tempAfterViewThis.ngEle.nativeElement.style.visibility = '';
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
// tslint:disable-next-line:no-any
|
||||
public ngOnDestroy(isTempRef?: any): void {
|
||||
// tslint:disable-next-line:no-any
|
||||
let tempOnDestroyThis: any = isTempRef || this;
|
||||
/* istanbul ignore else */
|
||||
if (typeof window !== 'undefined' && this.element.classList.contains('e-control')) {
|
||||
this.destroy();
|
||||
this.clearTemplate(null);
|
||||
if (typeof window !== 'undefined' && tempOnDestroyThis.element.classList.contains('e-control')) {
|
||||
tempOnDestroyThis.destroy();
|
||||
tempOnDestroyThis.clearTemplate(null);
|
||||
}
|
||||
}
|
||||
//tslint:disable-next-line
|
||||
public clearTemplate(templateNames?: string[], index?: any): void {
|
||||
clearTemplate(this, templateNames, index);
|
||||
};
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
for (let tagObject of this.tagObjects) {
|
||||
// tslint:disable-next-line:no-any
|
||||
public ngAfterContentChecked(isTempRef?: any): void {
|
||||
|
||||
// tslint:disable-next-line:no-any
|
||||
let tempAfterContentThis: any = isTempRef || this;
|
||||
for (let tagObject of tempAfterContentThis.tagObjects) {
|
||||
if (!isUndefined(tagObject.instance) &&
|
||||
(tagObject.instance.isInitChanges || tagObject.instance.hasChanges || tagObject.instance.hasNewChildren)) {
|
||||
if (tagObject.instance.isInitChanges) {
|
||||
let propObj: { [key: string]: Object } = {};
|
||||
// For angular 9 compatibility
|
||||
// Not able to get complex directive properties reference ni Onint hook
|
||||
// So we have constructed property here and used
|
||||
let complexDirProps = tagObject.instance.list[0].directivePropList;
|
||||
if (complexDirProps && complexDirProps.indexOf(tagObject.instance.propertyName) === -1) {
|
||||
let compDirPropList = Object.keys(tagObject.instance.list[0].propCollection);
|
||||
for (let h = 0; h < tagObject.instance.list.length; h++) {
|
||||
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName] = [];
|
||||
let obj: any = {};
|
||||
for (let k = 0; k < compDirPropList.length; k++) {
|
||||
let complexPropName = compDirPropList[k];
|
||||
obj[complexPropName] = tagObject.instance.list[h].propCollection[complexPropName];
|
||||
}
|
||||
tagObject.instance.list[h].propCollection[tagObject.instance.propertyName].push(obj);
|
||||
}
|
||||
}
|
||||
// End angular 9 compatibility
|
||||
propObj[tagObject.name] = tagObject.instance.getProperties();
|
||||
this.setProperties(propObj, tagObject.instance.isInitChanges);
|
||||
tempAfterContentThis.setProperties(propObj, tagObject.instance.isInitChanges);
|
||||
} else {
|
||||
/* istanbul ignore next */
|
||||
for (let list of tagObject.instance.list) {
|
||||
if (list.hasChanges) {
|
||||
let curIndex: number = tagObject.instance.list.indexOf(list);
|
||||
let curChild: { setProperties: Function } = getValue(tagObject.name, this)[curIndex];
|
||||
let curChild: { setProperties: Function } = getValue(tagObject.name, tempAfterContentThis)[curIndex];
|
||||
if (curChild !== undefined && curChild.setProperties !== undefined) {
|
||||
curChild.setProperties(list.getProperties());
|
||||
}
|
||||
|
|
|
@ -78,17 +78,20 @@ export class FormBase<T> implements ControlValueAccessor {
|
|||
setValue(prop, (isNullOrUndefined(newVal) ? null : newVal), this.properties);
|
||||
getValue(prop + 'Change', this).emit(newVal);
|
||||
}
|
||||
public ngAfterViewInit(): void {
|
||||
// tslint:disable-next-line:no-any
|
||||
public ngAfterViewInit(isTempRef?: any): void {
|
||||
// tslint:disable-next-line:no-any
|
||||
let tempFormAfterViewThis: any = isTempRef || this;
|
||||
// Used setTimeout for template binding
|
||||
// Refer Link: https://github.com/angular/angular/issues/6005
|
||||
// Removed setTimeout, Because we have called markForCheck() method in Angular Template Compiler
|
||||
// setTimeout(() => {
|
||||
/* istanbul ignore else */
|
||||
if (typeof window !== 'undefined') {
|
||||
this.appendTo(this.element);
|
||||
let ele: HTMLElement = this.inputElement || this.element;
|
||||
ele.addEventListener('focus', this.ngOnFocus.bind(this));
|
||||
ele.addEventListener('blur', this.ngOnBlur.bind(this));
|
||||
tempFormAfterViewThis.appendTo(tempFormAfterViewThis.element);
|
||||
let ele: HTMLElement = tempFormAfterViewThis.inputElement || tempFormAfterViewThis.element;
|
||||
ele.addEventListener('focus', tempFormAfterViewThis.ngOnFocus.bind(tempFormAfterViewThis));
|
||||
ele.addEventListener('blur', tempFormAfterViewThis.ngOnBlur.bind(tempFormAfterViewThis));
|
||||
}
|
||||
// });
|
||||
}
|
||||
|
|
|
@ -18,9 +18,11 @@ export function compile(templateEle: AngularElementType, helper?: Object):
|
|||
//tslint:disable-next-line
|
||||
return (data: Object, component?: any, propName?: any): Object => {
|
||||
let context: Object = { $implicit: data };
|
||||
/* istanbul ignore next */
|
||||
let conRef: ViewContainerRef = contRef ? contRef : component.viewContainerRef;
|
||||
let viewRef: EmbeddedViewRef<Object> = conRef.createEmbeddedView(templateEle as TemplateRef<Object>, context);
|
||||
viewRef.markForCheck();
|
||||
/* istanbul ignore next */
|
||||
let viewCollection: { [key: string]: EmbeddedViewRef<Object>[] } = component ?
|
||||
component.registeredTemplate : getValue('currentInstance.registeredTemplate', conRef);
|
||||
propName = propName ? propName : pName;
|
||||
|
@ -66,6 +68,7 @@ function setter(key: string): Function {
|
|||
|
||||
function getter(key: string, defaultValue: Object): Function {
|
||||
return function (): Object {
|
||||
/* istanbul ignore next */
|
||||
return getValue(key + 'Ref', this) || defaultValue;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@ export function registerEvents(eventList: string[], obj: any, direct?: boolean):
|
|||
export function clearTemplate(_this: any, templateNames?: string[], index?: any): void {
|
||||
let regTemplates: string[] = Object.keys(_this.registeredTemplate);
|
||||
if (regTemplates.length) {
|
||||
/* istanbul ignore next */
|
||||
let regProperties: string[] = templateNames && templateNames.filter(
|
||||
(val: string) => {
|
||||
return (/\./g.test(val) ? false : true);
|
||||
|
@ -64,9 +65,11 @@ export function clearTemplate(_this: any, templateNames?: string[], index?: any)
|
|||
} else {
|
||||
for (let rt of _this.registeredTemplate[registeredTemplate]) {
|
||||
if (!rt.destroyed) {
|
||||
let pNode: any = rt._view.renderer.parentNode(rt.rootNodes[0]);
|
||||
for (let m: number = 0; m < rt.rootNodes.length; m++) {
|
||||
pNode.appendChild(rt.rootNodes[m]);
|
||||
if(rt._view){
|
||||
let pNode: any = rt._view.renderer.parentNode(rt.rootNodes[0]);
|
||||
for (let m: number = 0; m < rt.rootNodes.length; m++) {
|
||||
pNode.appendChild(rt.rootNodes[m]);
|
||||
}
|
||||
}
|
||||
rt.destroy();
|
||||
}
|
||||
|
@ -77,6 +80,7 @@ export function clearTemplate(_this: any, templateNames?: string[], index?: any)
|
|||
}
|
||||
for (let tagObject of _this.tagObjects) {
|
||||
if (tagObject.instance) {
|
||||
/* istanbul ignore next */
|
||||
tagObject.instance.clearTemplate((templateNames && templateNames.filter(
|
||||
(val: string) => {
|
||||
return (new RegExp(tagObject.name).test(val) ? true : false);
|
||||
|
@ -95,6 +99,7 @@ export function clearTemplate(_this: any, templateNames?: string[], index?: any)
|
|||
*/
|
||||
export function setValue(nameSpace: string, value: any, object: any): any {
|
||||
let keys: string[] = nameSpace.replace(/\[/g, '.').replace(/\]/g, '').split('.');
|
||||
/* istanbul ignore next */
|
||||
let fromObj: any = object || {};
|
||||
for (let i: number = 0; i < keys.length; i++) {
|
||||
let key: string = keys[i];
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
@import 'ej2-base/styles/bootstrap-dark-definition.scss';
|
|
@ -0,0 +1 @@
|
|||
@import 'ej2-base/styles/bootstrap-definition.scss';
|
|
@ -0,0 +1 @@
|
|||
@import 'ej2-base/styles/bootstrap4-definition.scss';
|
|
@ -0,0 +1 @@
|
|||
@import 'ej2-base/styles/fabric-dark-definition.scss';
|
|
@ -0,0 +1 @@
|
|||
@import 'ej2-base/styles/fabric-definition.scss';
|
|
@ -0,0 +1 @@
|
|||
@import 'ej2-base/styles/highcontrast-light-definition.scss';
|
|
@ -0,0 +1 @@
|
|||
@import 'ej2-base/styles/highcontrast-definition.scss';
|
|
@ -0,0 +1 @@
|
|||
@import 'ej2-base/styles/material-dark-definition.scss';
|
|
@ -0,0 +1 @@
|
|||
@import 'ej2-base/styles/material-definition.scss';
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## 17.4.50 (2020-02-18)
|
||||
## 17.4.49 (2020-02-11)
|
||||
|
||||
### Button
|
||||
|
||||
|
|
|
@ -55,27 +55,32 @@ var ButtonComponent = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs);
|
||||
_this.addTwoWay.call(_this, twoWays);
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.containerContext = new ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ButtonComponent.prototype.ngOnInit = function () {
|
||||
this.containerContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ButtonComponent.prototype.ngAfterViewInit = function () {
|
||||
this.containerContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ButtonComponent.prototype.ngOnDestroy = function () {
|
||||
this.containerContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ButtonComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.containerContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return ButtonComponent;
|
||||
}(Button));
|
||||
|
@ -191,6 +196,8 @@ var CheckBoxComponent = CheckBoxComponent_1 = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs$1);
|
||||
_this.addTwoWay.call(_this, twoWays$1);
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new FormBase();
|
||||
_this.formCompContext = new ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -221,21 +228,25 @@ var CheckBoxComponent = CheckBoxComponent_1 = /** @class */ (function (_super) {
|
|||
* @return {?}
|
||||
*/
|
||||
CheckBoxComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CheckBoxComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CheckBoxComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CheckBoxComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return CheckBoxComponent;
|
||||
}(CheckBox));
|
||||
|
@ -359,6 +370,8 @@ var RadioButtonComponent = RadioButtonComponent_1 = /** @class */ (function (_su
|
|||
_this.registerEvents(outputs$2);
|
||||
_this.addTwoWay.call(_this, twoWays$2);
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new FormBase();
|
||||
_this.formCompContext = new ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -389,21 +402,25 @@ var RadioButtonComponent = RadioButtonComponent_1 = /** @class */ (function (_su
|
|||
* @return {?}
|
||||
*/
|
||||
RadioButtonComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
RadioButtonComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
RadioButtonComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
RadioButtonComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return RadioButtonComponent;
|
||||
}(RadioButton));
|
||||
|
@ -527,6 +544,8 @@ var SwitchComponent = SwitchComponent_1 = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs$3);
|
||||
_this.addTwoWay.call(_this, twoWays$3);
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new FormBase();
|
||||
_this.formCompContext = new ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -557,21 +576,25 @@ var SwitchComponent = SwitchComponent_1 = /** @class */ (function (_super) {
|
|||
* @return {?}
|
||||
*/
|
||||
SwitchComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SwitchComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SwitchComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SwitchComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return SwitchComponent;
|
||||
}(Switch));
|
||||
|
@ -676,6 +699,7 @@ var ChipDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$4);
|
||||
_this.directivePropList = input;
|
||||
return _this;
|
||||
}
|
||||
return ChipDirective;
|
||||
|
@ -759,27 +783,33 @@ var ChipListComponent = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs$5);
|
||||
_this.addTwoWay.call(_this, twoWays$4);
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.context = new ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChipListComponent.prototype.ngOnInit = function () {
|
||||
this.context.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChipListComponent.prototype.ngAfterViewInit = function () {
|
||||
this.context.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChipListComponent.prototype.ngOnDestroy = function () {
|
||||
this.context.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChipListComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.tagObjects[0].instance = this.childChips;
|
||||
this.context.ngAfterContentChecked(this);
|
||||
};
|
||||
return ChipListComponent;
|
||||
}(ChipList));
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -40,26 +40,31 @@ let ButtonComponent = class ButtonComponent extends Button {
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.containerContext = new ComponentBase();
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.containerContext.ngOnInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
this.containerContext.ngAfterViewInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnDestroy() {
|
||||
this.containerContext.ngOnDestroy(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterContentChecked() {
|
||||
this.containerContext.ngAfterContentChecked(this);
|
||||
}
|
||||
};
|
||||
ButtonComponent.decorators = [
|
||||
|
@ -165,6 +170,8 @@ let CheckBoxComponent = CheckBoxComponent_1 = class CheckBoxComponent extends Ch
|
|||
this.registerEvents(outputs$1);
|
||||
this.addTwoWay.call(this, twoWays$1);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
/**
|
||||
* @param {?} registerFunction
|
||||
|
@ -194,21 +201,25 @@ let CheckBoxComponent = CheckBoxComponent_1 = class CheckBoxComponent extends Ch
|
|||
* @return {?}
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnDestroy() {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterContentChecked() {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
};
|
||||
CheckBoxComponent.decorators = [
|
||||
|
@ -322,6 +333,8 @@ let RadioButtonComponent = RadioButtonComponent_1 = class RadioButtonComponent e
|
|||
this.registerEvents(outputs$2);
|
||||
this.addTwoWay.call(this, twoWays$2);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
/**
|
||||
* @param {?} registerFunction
|
||||
|
@ -351,21 +364,25 @@ let RadioButtonComponent = RadioButtonComponent_1 = class RadioButtonComponent e
|
|||
* @return {?}
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnDestroy() {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterContentChecked() {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
};
|
||||
RadioButtonComponent.decorators = [
|
||||
|
@ -479,6 +496,8 @@ let SwitchComponent = SwitchComponent_1 = class SwitchComponent extends Switch {
|
|||
this.registerEvents(outputs$3);
|
||||
this.addTwoWay.call(this, twoWays$3);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
/**
|
||||
* @param {?} registerFunction
|
||||
|
@ -508,21 +527,25 @@ let SwitchComponent = SwitchComponent_1 = class SwitchComponent extends Switch {
|
|||
* @return {?}
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnDestroy() {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterContentChecked() {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
};
|
||||
SwitchComponent.decorators = [
|
||||
|
@ -622,6 +645,7 @@ class ChipDirective extends ComplexBase {
|
|||
this.viewContainerRef = viewContainerRef;
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs$4);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
ChipDirective.decorators = [
|
||||
|
@ -696,26 +720,32 @@ let ChipListComponent = class ChipListComponent extends ChipList {
|
|||
this.registerEvents(outputs$5);
|
||||
this.addTwoWay.call(this, twoWays$4);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.context = new ComponentBase();
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.context.ngOnInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
this.context.ngAfterViewInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnDestroy() {
|
||||
this.context.ngOnDestroy(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterContentChecked() {
|
||||
this.tagObjects[0].instance = this.childChips;
|
||||
this.context.ngAfterContentChecked(this);
|
||||
}
|
||||
};
|
||||
ChipListComponent.decorators = [
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -2,7 +2,7 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## 17.4.50 (2020-02-18)
|
||||
## 17.4.49 (2020-02-11)
|
||||
|
||||
### Button
|
||||
|
||||
|
|
|
@ -56,27 +56,32 @@ exports.ButtonComponent = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs);
|
||||
_this.addTwoWay.call(_this, twoWays);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.containerContext = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ButtonComponent.prototype.ngOnInit = function () {
|
||||
this.containerContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ButtonComponent.prototype.ngAfterViewInit = function () {
|
||||
this.containerContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ButtonComponent.prototype.ngOnDestroy = function () {
|
||||
this.containerContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ButtonComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.containerContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return ButtonComponent;
|
||||
}(ej2Buttons.Button));
|
||||
|
@ -192,6 +197,8 @@ exports.CheckBoxComponent = CheckBoxComponent_1 = /** @class */ (function (_supe
|
|||
_this.registerEvents(outputs$1);
|
||||
_this.addTwoWay.call(_this, twoWays$1);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new ej2AngularBase.FormBase();
|
||||
_this.formCompContext = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -222,21 +229,25 @@ exports.CheckBoxComponent = CheckBoxComponent_1 = /** @class */ (function (_supe
|
|||
* @return {?}
|
||||
*/
|
||||
CheckBoxComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CheckBoxComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CheckBoxComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CheckBoxComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return CheckBoxComponent;
|
||||
}(ej2Buttons.CheckBox));
|
||||
|
@ -360,6 +371,8 @@ exports.RadioButtonComponent = RadioButtonComponent_1 = /** @class */ (function
|
|||
_this.registerEvents(outputs$2);
|
||||
_this.addTwoWay.call(_this, twoWays$2);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new ej2AngularBase.FormBase();
|
||||
_this.formCompContext = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -390,21 +403,25 @@ exports.RadioButtonComponent = RadioButtonComponent_1 = /** @class */ (function
|
|||
* @return {?}
|
||||
*/
|
||||
RadioButtonComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
RadioButtonComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
RadioButtonComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
RadioButtonComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return RadioButtonComponent;
|
||||
}(ej2Buttons.RadioButton));
|
||||
|
@ -528,6 +545,8 @@ exports.SwitchComponent = SwitchComponent_1 = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs$3);
|
||||
_this.addTwoWay.call(_this, twoWays$3);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new ej2AngularBase.FormBase();
|
||||
_this.formCompContext = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -558,21 +577,25 @@ exports.SwitchComponent = SwitchComponent_1 = /** @class */ (function (_super) {
|
|||
* @return {?}
|
||||
*/
|
||||
SwitchComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SwitchComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SwitchComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SwitchComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return SwitchComponent;
|
||||
}(ej2Buttons.Switch));
|
||||
|
@ -677,6 +700,7 @@ var ChipDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$4);
|
||||
_this.directivePropList = input;
|
||||
return _this;
|
||||
}
|
||||
return ChipDirective;
|
||||
|
@ -760,27 +784,33 @@ exports.ChipListComponent = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs$5);
|
||||
_this.addTwoWay.call(_this, twoWays$4);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.context = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChipListComponent.prototype.ngOnInit = function () {
|
||||
this.context.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChipListComponent.prototype.ngAfterViewInit = function () {
|
||||
this.context.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChipListComponent.prototype.ngOnDestroy = function () {
|
||||
this.context.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChipListComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.tagObjects[0].instance = this.childChips;
|
||||
this.context.ngAfterContentChecked(this);
|
||||
};
|
||||
return ChipListComponent;
|
||||
}(ej2Buttons.ChipList));
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@syncfusion/ej2-angular-buttons",
|
||||
"version": "17.4.46",
|
||||
"version": "17.4.49",
|
||||
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch. for Angular",
|
||||
"author": "Syncfusion Inc.",
|
||||
"license": "SEE LICENSE IN license",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.pkgName = '@syncfusion/ej2-angular-buttons';
|
||||
exports.pkgVer = '^17.4.46';
|
||||
exports.pkgVer = '^17.4.49';
|
||||
exports.moduleName = 'ButtonModule, CheckBoxModule, RadioButtonModule, SwitchModule, ChipListModule';
|
||||
exports.themeVer = '~17.4.46';
|
||||
exports.themeVer = '~17.4.49';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const pkgName = '@syncfusion/ej2-angular-buttons';
|
||||
export const pkgVer = '^17.4.46';
|
||||
export const pkgVer = '^17.4.49';
|
||||
export const moduleName = 'ButtonModule, CheckBoxModule, RadioButtonModule, SwitchModule, ChipListModule';
|
||||
export const themeVer = '~17.4.46';
|
||||
export const themeVer = '~17.4.49';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@syncfusion/ej2-angular-buttons",
|
||||
"version": "17.4.46",
|
||||
"version": "17.4.49",
|
||||
"description": "A package of feature-rich Essential JS 2 components such as Button, CheckBox, RadioButton and Switch. for Angular",
|
||||
"author": "Syncfusion Inc.",
|
||||
"license": "SEE LICENSE IN license",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const pkgName = '@syncfusion/ej2-angular-buttons';
|
||||
export const pkgVer = '^17.4.46';
|
||||
export const pkgVer = '^17.4.49';
|
||||
export const moduleName = 'ButtonModule, CheckBoxModule, RadioButtonModule, SwitchModule, ChipListModule';
|
||||
export const themeVer = '~17.4.46';
|
||||
export const themeVer = '~17.4.49';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, ElementRef, ViewContainerRef, Renderer2, Injector, ChangeDetectionStrategy, ValueProvider } from '@angular/core';
|
||||
import { Component, ElementRef, ViewContainerRef, Renderer2, Injector, ChangeDetectionStrategy, QueryList, ValueProvider } from '@angular/core';
|
||||
import { ComponentBase, ComponentMixins, IComponentBase, applyMixins, PropertyCollectionInfo, setValue } from '@syncfusion/ej2-angular-base';
|
||||
import { Button } from '@syncfusion/ej2-buttons';
|
||||
|
||||
|
@ -26,6 +26,8 @@ export const twoWays: string[] = [];
|
|||
})
|
||||
@ComponentMixins([ComponentBase])
|
||||
export class ButtonComponent extends Button implements IComponentBase {
|
||||
public containerContext : any;
|
||||
public tagObjects: any;
|
||||
|
||||
|
||||
|
||||
|
@ -38,18 +40,24 @@ export class ButtonComponent extends Button implements IComponentBase {
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.containerContext = new ComponentBase();
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.containerContext.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.containerContext.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.containerContext.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
|
||||
this.containerContext.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -34,6 +34,9 @@ export const twoWays: string[] = ['checked', 'indeterminate'];
|
|||
})
|
||||
@ComponentMixins([ComponentBase, FormBase])
|
||||
export class CheckBoxComponent extends CheckBox implements IComponentBase {
|
||||
public formCompContext : any;
|
||||
public formContext : any;
|
||||
public tagObjects: any;
|
||||
|
||||
|
||||
public checkedChange: any;
|
||||
|
@ -49,6 +52,8 @@ export class CheckBoxComponent extends CheckBox implements IComponentBase {
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
|
||||
public registerOnChange(registerFunction: (_: any) => void): void {
|
||||
|
@ -64,15 +69,20 @@ export class CheckBoxComponent extends CheckBox implements IComponentBase {
|
|||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';
|
||||
import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, QueryList, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';
|
||||
import { ComponentBase, IComponentBase, applyMixins, ComponentMixins, PropertyCollectionInfo, setValue } from '@syncfusion/ej2-angular-base';
|
||||
import { ChipList } from '@syncfusion/ej2-buttons';
|
||||
|
||||
|
@ -26,7 +26,9 @@ export const twoWays: string[] = [''];
|
|||
})
|
||||
@ComponentMixins([ComponentBase])
|
||||
export class ChipListComponent extends ChipList implements IComponentBase {
|
||||
public childChips: any;
|
||||
public context : any;
|
||||
public tagObjects: any;
|
||||
public childChips: QueryList<ChipsDirective>;
|
||||
public tags: string[] = ['chips'];
|
||||
|
||||
|
||||
|
@ -38,18 +40,24 @@ export class ChipListComponent extends ChipList implements IComponentBase {
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.context = new ComponentBase();
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.context.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.context.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.context.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
this.tagObjects[0].instance = this.childChips;
|
||||
this.context.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -25,6 +25,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class ChipDirective extends ComplexBase<ChipDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -74,6 +75,7 @@ export class ChipDirective extends ComplexBase<ChipDirective> {
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,9 @@ export const twoWays: string[] = ['checked'];
|
|||
})
|
||||
@ComponentMixins([ComponentBase, FormBase])
|
||||
export class RadioButtonComponent extends RadioButton implements IComponentBase {
|
||||
public formCompContext : any;
|
||||
public formContext : any;
|
||||
public tagObjects: any;
|
||||
|
||||
|
||||
public checkedChange: any;
|
||||
|
@ -48,6 +51,8 @@ export class RadioButtonComponent extends RadioButton implements IComponentBase
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
|
||||
public registerOnChange(registerFunction: (_: any) => void): void {
|
||||
|
@ -63,15 +68,20 @@ export class RadioButtonComponent extends RadioButton implements IComponentBase
|
|||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -34,6 +34,9 @@ export const twoWays: string[] = ['checked'];
|
|||
})
|
||||
@ComponentMixins([ComponentBase, FormBase])
|
||||
export class SwitchComponent extends Switch implements IComponentBase {
|
||||
public formCompContext : any;
|
||||
public formContext : any;
|
||||
public tagObjects: any;
|
||||
|
||||
|
||||
public checkedChange: any;
|
||||
|
@ -48,6 +51,8 @@ export class SwitchComponent extends Switch implements IComponentBase {
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
|
||||
public registerOnChange(registerFunction: (_: any) => void): void {
|
||||
|
@ -63,15 +68,20 @@ export class SwitchComponent extends Switch implements IComponentBase {
|
|||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -4,6 +4,12 @@
|
|||
|
||||
## 17.4.50 (2020-02-18)
|
||||
|
||||
### DateRangePicker
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- `#256702` - Issue with "consecutive month is displayed while drill down the left or right calendar" has been resolved.
|
||||
|
||||
### Calendar
|
||||
|
||||
#### Bug Fixes
|
||||
|
|
|
@ -62,6 +62,8 @@ var CalendarComponent = CalendarComponent_1 = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs);
|
||||
_this.addTwoWay.call(_this, twoWays);
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new FormBase();
|
||||
_this.formCompContext = new ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -92,21 +94,25 @@ var CalendarComponent = CalendarComponent_1 = /** @class */ (function (_super) {
|
|||
* @return {?}
|
||||
*/
|
||||
CalendarComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CalendarComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CalendarComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CalendarComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return CalendarComponent;
|
||||
}(Calendar));
|
||||
|
@ -241,6 +247,8 @@ var DatePickerComponent = DatePickerComponent_1 = /** @class */ (function (_supe
|
|||
_this.registerEvents(outputs$1);
|
||||
_this.addTwoWay.call(_this, twoWays$1);
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new FormBase();
|
||||
_this.formCompContext = new ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -271,21 +279,25 @@ var DatePickerComponent = DatePickerComponent_1 = /** @class */ (function (_supe
|
|||
* @return {?}
|
||||
*/
|
||||
DatePickerComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DatePickerComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DatePickerComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DatePickerComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return DatePickerComponent;
|
||||
}(DatePicker));
|
||||
|
@ -410,6 +422,8 @@ var TimePickerComponent = TimePickerComponent_1 = /** @class */ (function (_supe
|
|||
_this.registerEvents(outputs$2);
|
||||
_this.addTwoWay.call(_this, twoWays$2);
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new FormBase();
|
||||
_this.formCompContext = new ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -440,21 +454,25 @@ var TimePickerComponent = TimePickerComponent_1 = /** @class */ (function (_supe
|
|||
* @return {?}
|
||||
*/
|
||||
TimePickerComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
TimePickerComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
TimePickerComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
TimePickerComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return TimePickerComponent;
|
||||
}(TimePicker));
|
||||
|
@ -560,6 +578,7 @@ var PresetDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$3);
|
||||
_this.directivePropList = input;
|
||||
return _this;
|
||||
}
|
||||
return PresetDirective;
|
||||
|
@ -644,6 +663,8 @@ var DateRangePickerComponent = DateRangePickerComponent_1 = /** @class */ (funct
|
|||
_this.registerEvents(outputs$4);
|
||||
_this.addTwoWay.call(_this, twoWays$3);
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new FormBase();
|
||||
_this.formCompContext = new ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -674,21 +695,26 @@ var DateRangePickerComponent = DateRangePickerComponent_1 = /** @class */ (funct
|
|||
* @return {?}
|
||||
*/
|
||||
DateRangePickerComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateRangePickerComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateRangePickerComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateRangePickerComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.tagObjects[0].instance = this.childPresets;
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return DateRangePickerComponent;
|
||||
}(DateRangePicker));
|
||||
|
@ -838,6 +864,8 @@ var DateTimePickerComponent = DateTimePickerComponent_1 = /** @class */ (functio
|
|||
_this.registerEvents(outputs$5);
|
||||
_this.addTwoWay.call(_this, twoWays$4);
|
||||
setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new FormBase();
|
||||
_this.formCompContext = new ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -868,21 +896,25 @@ var DateTimePickerComponent = DateTimePickerComponent_1 = /** @class */ (functio
|
|||
* @return {?}
|
||||
*/
|
||||
DateTimePickerComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateTimePickerComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateTimePickerComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateTimePickerComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return DateTimePickerComponent;
|
||||
}(DateTimePicker));
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -47,6 +47,8 @@ let CalendarComponent = CalendarComponent_1 = class CalendarComponent extends Ca
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
/**
|
||||
* @param {?} registerFunction
|
||||
|
@ -76,21 +78,25 @@ let CalendarComponent = CalendarComponent_1 = class CalendarComponent extends Ca
|
|||
* @return {?}
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnDestroy() {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterContentChecked() {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
};
|
||||
CalendarComponent.decorators = [
|
||||
|
@ -215,6 +221,8 @@ let DatePickerComponent = DatePickerComponent_1 = class DatePickerComponent exte
|
|||
this.registerEvents(outputs$1);
|
||||
this.addTwoWay.call(this, twoWays$1);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
/**
|
||||
* @param {?} registerFunction
|
||||
|
@ -244,21 +252,25 @@ let DatePickerComponent = DatePickerComponent_1 = class DatePickerComponent exte
|
|||
* @return {?}
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnDestroy() {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterContentChecked() {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
};
|
||||
DatePickerComponent.decorators = [
|
||||
|
@ -373,6 +385,8 @@ let TimePickerComponent = TimePickerComponent_1 = class TimePickerComponent exte
|
|||
this.registerEvents(outputs$2);
|
||||
this.addTwoWay.call(this, twoWays$2);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
/**
|
||||
* @param {?} registerFunction
|
||||
|
@ -402,21 +416,25 @@ let TimePickerComponent = TimePickerComponent_1 = class TimePickerComponent exte
|
|||
* @return {?}
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnDestroy() {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterContentChecked() {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
};
|
||||
TimePickerComponent.decorators = [
|
||||
|
@ -517,6 +535,7 @@ class PresetDirective extends ComplexBase {
|
|||
this.viewContainerRef = viewContainerRef;
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs$3);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
PresetDirective.decorators = [
|
||||
|
@ -592,6 +611,8 @@ let DateRangePickerComponent = DateRangePickerComponent_1 = class DateRangePicke
|
|||
this.registerEvents(outputs$4);
|
||||
this.addTwoWay.call(this, twoWays$3);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
/**
|
||||
* @param {?} registerFunction
|
||||
|
@ -621,21 +642,26 @@ let DateRangePickerComponent = DateRangePickerComponent_1 = class DateRangePicke
|
|||
* @return {?}
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnDestroy() {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterContentChecked() {
|
||||
this.tagObjects[0].instance = this.childPresets;
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
};
|
||||
DateRangePickerComponent.decorators = [
|
||||
|
@ -775,6 +801,8 @@ let DateTimePickerComponent = DateTimePickerComponent_1 = class DateTimePickerCo
|
|||
this.registerEvents(outputs$5);
|
||||
this.addTwoWay.call(this, twoWays$4);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
/**
|
||||
* @param {?} registerFunction
|
||||
|
@ -804,21 +832,25 @@ let DateTimePickerComponent = DateTimePickerComponent_1 = class DateTimePickerCo
|
|||
* @return {?}
|
||||
*/
|
||||
ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterViewInit() {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngOnDestroy() {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ngAfterContentChecked() {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
};
|
||||
DateTimePickerComponent.decorators = [
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -4,6 +4,12 @@
|
|||
|
||||
## 17.4.50 (2020-02-18)
|
||||
|
||||
### DateRangePicker
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- `#256702` - Issue with "consecutive month is displayed while drill down the left or right calendar" has been resolved.
|
||||
|
||||
### Calendar
|
||||
|
||||
#### Bug Fixes
|
||||
|
|
|
@ -63,6 +63,8 @@ exports.CalendarComponent = CalendarComponent_1 = /** @class */ (function (_supe
|
|||
_this.registerEvents(outputs);
|
||||
_this.addTwoWay.call(_this, twoWays);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new ej2AngularBase.FormBase();
|
||||
_this.formCompContext = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -93,21 +95,25 @@ exports.CalendarComponent = CalendarComponent_1 = /** @class */ (function (_supe
|
|||
* @return {?}
|
||||
*/
|
||||
CalendarComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CalendarComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CalendarComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
CalendarComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return CalendarComponent;
|
||||
}(ej2Calendars.Calendar));
|
||||
|
@ -242,6 +248,8 @@ exports.DatePickerComponent = DatePickerComponent_1 = /** @class */ (function (_
|
|||
_this.registerEvents(outputs$1);
|
||||
_this.addTwoWay.call(_this, twoWays$1);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new ej2AngularBase.FormBase();
|
||||
_this.formCompContext = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -272,21 +280,25 @@ exports.DatePickerComponent = DatePickerComponent_1 = /** @class */ (function (_
|
|||
* @return {?}
|
||||
*/
|
||||
DatePickerComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DatePickerComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DatePickerComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DatePickerComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return DatePickerComponent;
|
||||
}(ej2Calendars.DatePicker));
|
||||
|
@ -411,6 +423,8 @@ exports.TimePickerComponent = TimePickerComponent_1 = /** @class */ (function (_
|
|||
_this.registerEvents(outputs$2);
|
||||
_this.addTwoWay.call(_this, twoWays$2);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new ej2AngularBase.FormBase();
|
||||
_this.formCompContext = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -441,21 +455,25 @@ exports.TimePickerComponent = TimePickerComponent_1 = /** @class */ (function (_
|
|||
* @return {?}
|
||||
*/
|
||||
TimePickerComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
TimePickerComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
TimePickerComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
TimePickerComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return TimePickerComponent;
|
||||
}(ej2Calendars.TimePicker));
|
||||
|
@ -561,6 +579,7 @@ var PresetDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$3);
|
||||
_this.directivePropList = input;
|
||||
return _this;
|
||||
}
|
||||
return PresetDirective;
|
||||
|
@ -645,6 +664,8 @@ exports.DateRangePickerComponent = DateRangePickerComponent_1 = /** @class */ (f
|
|||
_this.registerEvents(outputs$4);
|
||||
_this.addTwoWay.call(_this, twoWays$3);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new ej2AngularBase.FormBase();
|
||||
_this.formCompContext = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -675,21 +696,26 @@ exports.DateRangePickerComponent = DateRangePickerComponent_1 = /** @class */ (f
|
|||
* @return {?}
|
||||
*/
|
||||
DateRangePickerComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateRangePickerComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateRangePickerComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateRangePickerComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.tagObjects[0].instance = this.childPresets;
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return DateRangePickerComponent;
|
||||
}(ej2Calendars.DateRangePicker));
|
||||
|
@ -839,6 +865,8 @@ exports.DateTimePickerComponent = DateTimePickerComponent_1 = /** @class */ (fun
|
|||
_this.registerEvents(outputs$5);
|
||||
_this.addTwoWay.call(_this, twoWays$4);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.formContext = new ej2AngularBase.FormBase();
|
||||
_this.formCompContext = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
|
@ -869,21 +897,25 @@ exports.DateTimePickerComponent = DateTimePickerComponent_1 = /** @class */ (fun
|
|||
* @return {?}
|
||||
*/
|
||||
DateTimePickerComponent.prototype.ngOnInit = function () {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateTimePickerComponent.prototype.ngAfterViewInit = function () {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateTimePickerComponent.prototype.ngOnDestroy = function () {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
DateTimePickerComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
};
|
||||
return DateTimePickerComponent;
|
||||
}(ej2Calendars.DateTimePicker));
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@syncfusion/ej2-angular-calendars",
|
||||
"version": "17.4.49",
|
||||
"version": "17.4.50",
|
||||
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization. for Angular",
|
||||
"author": "Syncfusion Inc.",
|
||||
"license": "SEE LICENSE IN license",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.pkgName = '@syncfusion/ej2-angular-calendars';
|
||||
exports.pkgVer = '^17.4.49';
|
||||
exports.pkgVer = '^17.4.50';
|
||||
exports.moduleName = 'CalendarModule, DatePickerModule, TimePickerModule, DateRangePickerModule, DateTimePickerModule';
|
||||
exports.themeVer = '~17.4.49';
|
||||
exports.themeVer = '~17.4.50';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const pkgName = '@syncfusion/ej2-angular-calendars';
|
||||
export const pkgVer = '^17.4.49';
|
||||
export const pkgVer = '^17.4.50';
|
||||
export const moduleName = 'CalendarModule, DatePickerModule, TimePickerModule, DateRangePickerModule, DateTimePickerModule';
|
||||
export const themeVer = '~17.4.49';
|
||||
export const themeVer = '~17.4.50';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@syncfusion/ej2-angular-calendars",
|
||||
"version": "17.4.49",
|
||||
"version": "17.4.50",
|
||||
"description": "A complete package of date or time components with built-in features such as date formatting, inline editing, multiple (range) selection, range restriction, month and year selection, strict mode, and globalization. for Angular",
|
||||
"author": "Syncfusion Inc.",
|
||||
"license": "SEE LICENSE IN license",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const pkgName = '@syncfusion/ej2-angular-calendars';
|
||||
export const pkgVer = '^17.4.49';
|
||||
export const pkgVer = '^17.4.50';
|
||||
export const moduleName = 'CalendarModule, DatePickerModule, TimePickerModule, DateRangePickerModule, DateTimePickerModule';
|
||||
export const themeVer = '~17.4.49';
|
||||
export const themeVer = '~17.4.50';
|
||||
|
|
|
@ -34,6 +34,9 @@ export const twoWays: string[] = ['value', 'values'];
|
|||
})
|
||||
@ComponentMixins([ComponentBase, FormBase])
|
||||
export class CalendarComponent extends Calendar implements IComponentBase {
|
||||
public formCompContext : any;
|
||||
public formContext : any;
|
||||
public tagObjects: any;
|
||||
|
||||
|
||||
public valueChange: any;
|
||||
|
@ -55,6 +58,8 @@ export class CalendarComponent extends Calendar implements IComponentBase {
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
|
||||
public registerOnChange(registerFunction: (_: any) => void): void {
|
||||
|
@ -70,15 +75,20 @@ export class CalendarComponent extends Calendar implements IComponentBase {
|
|||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -34,6 +34,9 @@ export const twoWays: string[] = ['value'];
|
|||
})
|
||||
@ComponentMixins([ComponentBase, FormBase])
|
||||
export class DatePickerComponent extends DatePicker implements IComponentBase {
|
||||
public formCompContext : any;
|
||||
public formContext : any;
|
||||
public tagObjects: any;
|
||||
|
||||
|
||||
public valueChange: any;
|
||||
|
@ -53,6 +56,8 @@ export class DatePickerComponent extends DatePicker implements IComponentBase {
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
|
||||
public registerOnChange(registerFunction: (_: any) => void): void {
|
||||
|
@ -68,15 +73,20 @@ export class DatePickerComponent extends DatePicker implements IComponentBase {
|
|||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -34,6 +34,9 @@ export const twoWays: string[] = ['startDate', 'endDate', 'value'];
|
|||
})
|
||||
@ComponentMixins([ComponentBase, FormBase])
|
||||
export class DateRangePickerComponent extends DateRangePicker implements IComponentBase {
|
||||
public formCompContext : any;
|
||||
public formContext : any;
|
||||
public tagObjects: any;
|
||||
public childPresets: any;
|
||||
public tags: string[] = ['presets'];
|
||||
public startDateChange: any;
|
||||
|
@ -60,6 +63,8 @@ export class DateRangePickerComponent extends DateRangePicker implements ICompon
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
|
||||
public registerOnChange(registerFunction: (_: any) => void): void {
|
||||
|
@ -75,15 +80,20 @@ export class DateRangePickerComponent extends DateRangePicker implements ICompon
|
|||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
this.tagObjects[0].instance = this.childPresets;
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -26,6 +26,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class PresetDirective extends ComplexBase<PresetDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -45,6 +46,7 @@ export class PresetDirective extends ComplexBase<PresetDirective> {
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -34,6 +34,9 @@ export const twoWays: string[] = ['value'];
|
|||
})
|
||||
@ComponentMixins([ComponentBase, FormBase])
|
||||
export class DateTimePickerComponent extends DateTimePicker implements IComponentBase {
|
||||
public formCompContext : any;
|
||||
public formContext : any;
|
||||
public tagObjects: any;
|
||||
|
||||
|
||||
public valueChange: any;
|
||||
|
@ -53,6 +56,8 @@ export class DateTimePickerComponent extends DateTimePicker implements IComponen
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
|
||||
public registerOnChange(registerFunction: (_: any) => void): void {
|
||||
|
@ -68,15 +73,20 @@ export class DateTimePickerComponent extends DateTimePicker implements IComponen
|
|||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -34,6 +34,9 @@ export const twoWays: string[] = ['value'];
|
|||
})
|
||||
@ComponentMixins([ComponentBase, FormBase])
|
||||
export class TimePickerComponent extends TimePicker implements IComponentBase {
|
||||
public formCompContext : any;
|
||||
public formContext : any;
|
||||
public tagObjects: any;
|
||||
|
||||
|
||||
public valueChange: any;
|
||||
|
@ -47,6 +50,8 @@ export class TimePickerComponent extends TimePicker implements IComponentBase {
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.formContext = new FormBase();
|
||||
this.formCompContext = new ComponentBase();
|
||||
}
|
||||
|
||||
public registerOnChange(registerFunction: (_: any) => void): void {
|
||||
|
@ -62,15 +67,20 @@ export class TimePickerComponent extends TimePicker implements IComponentBase {
|
|||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.formCompContext.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.formContext.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.formCompContext.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
|
||||
this.formCompContext.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -2,6 +2,35 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## 17.4.51 (2020-02-25)
|
||||
|
||||
### Chart
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- `#264474` - X axis labels are not rendered in center of tick marks when angle is 270 issue has fixed.
|
||||
- `#264474` - Console error when angle is provided for x axis and data is assigned on vue mounted method issue has fixed.
|
||||
- `#264230` - Tooltip doesn't appears after zooming and hovering on same point has fixed.
|
||||
- `#151604` - Console error throwing when toggle the chart enableCanvas mode has fixed.
|
||||
|
||||
### Accumulation chart
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- `263828` - Accumulation chart safari browser animation issue has fixed.
|
||||
|
||||
### RangeNavigator
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- `266063` - Changed Event not triggered while releasing the click outside of the control has fixed.
|
||||
|
||||
### Sparkline
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- `#264262` - `rangePadding` property is exposed to render the columns in the sparkline charts with proper axis padding.
|
||||
|
||||
## 17.4.50 (2020-02-18)
|
||||
|
||||
### Chart
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -2,6 +2,35 @@
|
|||
|
||||
## [Unreleased]
|
||||
|
||||
## 17.4.51 (2020-02-25)
|
||||
|
||||
### Chart
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- `#264474` - X axis labels are not rendered in center of tick marks when angle is 270 issue has fixed.
|
||||
- `#264474` - Console error when angle is provided for x axis and data is assigned on vue mounted method issue has fixed.
|
||||
- `#264230` - Tooltip doesn't appears after zooming and hovering on same point has fixed.
|
||||
- `#151604` - Console error throwing when toggle the chart enableCanvas mode has fixed.
|
||||
|
||||
### Accumulation chart
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- `263828` - Accumulation chart safari browser animation issue has fixed.
|
||||
|
||||
### RangeNavigator
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- `266063` - Changed Event not triggered while releasing the click outside of the control has fixed.
|
||||
|
||||
### Sparkline
|
||||
|
||||
#### Bug Fixes
|
||||
|
||||
- `#264262` - `rangePadding` property is exposed to render the columns in the sparkline charts with proper axis padding.
|
||||
|
||||
## 17.4.50 (2020-02-18)
|
||||
|
||||
### Chart
|
||||
|
|
|
@ -38,6 +38,7 @@ var TrendlineDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs);
|
||||
_this.directivePropList = input;
|
||||
return _this;
|
||||
}
|
||||
return TrendlineDirective;
|
||||
|
@ -102,6 +103,7 @@ var SegmentDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$1);
|
||||
_this.directivePropList = input$1;
|
||||
return _this;
|
||||
}
|
||||
return SegmentDirective;
|
||||
|
@ -177,6 +179,7 @@ var SeriesDirective = /** @class */ (function (_super) {
|
|||
_this.tags = ['trendlines', 'segments'];
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$2);
|
||||
_this.directivePropList = input$2;
|
||||
return _this;
|
||||
}
|
||||
return SeriesDirective;
|
||||
|
@ -249,6 +252,7 @@ var StripLineDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$3);
|
||||
_this.directivePropList = input$3;
|
||||
return _this;
|
||||
}
|
||||
return StripLineDirective;
|
||||
|
@ -314,6 +318,7 @@ var CategoryDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$4);
|
||||
_this.directivePropList = input$4;
|
||||
return _this;
|
||||
}
|
||||
return CategoryDirective;
|
||||
|
@ -377,6 +382,7 @@ var MultiLevelLabelDirective = /** @class */ (function (_super) {
|
|||
_this.tags = ['categories'];
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$5);
|
||||
_this.directivePropList = input$5;
|
||||
return _this;
|
||||
}
|
||||
return MultiLevelLabelDirective;
|
||||
|
@ -438,6 +444,7 @@ var AxisDirective = /** @class */ (function (_super) {
|
|||
_this.tags = ['stripLines', 'multiLevelLabels'];
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$6);
|
||||
_this.directivePropList = input$6;
|
||||
return _this;
|
||||
}
|
||||
return AxisDirective;
|
||||
|
@ -499,6 +506,7 @@ var RowDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$7);
|
||||
_this.directivePropList = input$7;
|
||||
return _this;
|
||||
}
|
||||
return RowDirective;
|
||||
|
@ -557,6 +565,7 @@ var ColumnDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$8);
|
||||
_this.directivePropList = input$8;
|
||||
return _this;
|
||||
}
|
||||
return ColumnDirective;
|
||||
|
@ -629,6 +638,7 @@ var AnnotationDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$9);
|
||||
_this.directivePropList = input$9;
|
||||
return _this;
|
||||
}
|
||||
return AnnotationDirective;
|
||||
|
@ -694,6 +704,7 @@ var SelectedDataIndexDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$10);
|
||||
_this.directivePropList = input$10;
|
||||
return _this;
|
||||
}
|
||||
return SelectedDataIndexDirective;
|
||||
|
@ -754,6 +765,7 @@ var IndicatorDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$11);
|
||||
_this.directivePropList = input$11;
|
||||
return _this;
|
||||
}
|
||||
return IndicatorDirective;
|
||||
|
@ -1222,27 +1234,81 @@ exports.ChartComponent = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs$12);
|
||||
_this.addTwoWay.call(_this, twoWays);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.context = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChartComponent.prototype.ngOnInit = function () {
|
||||
this.context.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChartComponent.prototype.ngAfterViewInit = function () {
|
||||
this.context.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChartComponent.prototype.ngOnDestroy = function () {
|
||||
this.context.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
ChartComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.tagObjects[0].instance = this.childSeries;
|
||||
if (this.childAxes) {
|
||||
this.tagObjects[1].instance = ((this.childAxes)).list[0].childSeries;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childAxes)).list.length; d++) {
|
||||
if (((this.childAxes)).list[d + 1]) {
|
||||
this.tagObjects[1].instance.list.push(((this.childAxes)).list[d + 1].childSeries.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childRows) {
|
||||
this.tagObjects[2].instance = ((this.childRows)).list[0].childAxes;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childRows)).list.length; d++) {
|
||||
if (((this.childRows)).list[d + 1]) {
|
||||
this.tagObjects[2].instance.list.push(((this.childRows)).list[d + 1].childAxes.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childColumns) {
|
||||
this.tagObjects[3].instance = ((this.childColumns)).list[0].childRows;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childColumns)).list.length; d++) {
|
||||
if (((this.childColumns)).list[d + 1]) {
|
||||
this.tagObjects[3].instance.list.push(((this.childColumns)).list[d + 1].childRows.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childAnnotations) {
|
||||
this.tagObjects[4].instance = ((this.childAnnotations)).list[0].childColumns;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childAnnotations)).list.length; d++) {
|
||||
if (((this.childAnnotations)).list[d + 1]) {
|
||||
this.tagObjects[4].instance.list.push(((this.childAnnotations)).list[d + 1].childColumns.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childSelectedDataIndexes) {
|
||||
this.tagObjects[5].instance = ((this.childSelectedDataIndexes)).list[0].childAnnotations;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childSelectedDataIndexes)).list.length; d++) {
|
||||
if (((this.childSelectedDataIndexes)).list[d + 1]) {
|
||||
this.tagObjects[5].instance.list.push(((this.childSelectedDataIndexes)).list[d + 1].childAnnotations.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childIndicators) {
|
||||
this.tagObjects[6].instance = ((this.childIndicators)).list[0].childSelectedDataIndexes;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childIndicators)).list.length; d++) {
|
||||
if (((this.childIndicators)).list[d + 1]) {
|
||||
this.tagObjects[6].instance.list.push(((this.childIndicators)).list[d + 1].childSelectedDataIndexes.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.context.ngAfterContentChecked(this);
|
||||
};
|
||||
return ChartComponent;
|
||||
}(ej2Charts.Chart));
|
||||
|
@ -1524,6 +1590,7 @@ var AccumulationSeriesDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$13);
|
||||
_this.directivePropList = input$12;
|
||||
return _this;
|
||||
}
|
||||
return AccumulationSeriesDirective;
|
||||
|
@ -1605,6 +1672,7 @@ var AccumulationAnnotationDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$14);
|
||||
_this.directivePropList = input$13;
|
||||
return _this;
|
||||
}
|
||||
return AccumulationAnnotationDirective;
|
||||
|
@ -1758,27 +1826,41 @@ exports.AccumulationChartComponent = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs$15);
|
||||
_this.addTwoWay.call(_this, twoWays$1);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.context = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
AccumulationChartComponent.prototype.ngOnInit = function () {
|
||||
this.context.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
AccumulationChartComponent.prototype.ngAfterViewInit = function () {
|
||||
this.context.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
AccumulationChartComponent.prototype.ngOnDestroy = function () {
|
||||
this.context.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
AccumulationChartComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.tagObjects[0].instance = this.childSeries;
|
||||
if (this.childAnnotations) {
|
||||
this.tagObjects[1].instance = ((this.childAnnotations)).list[0].childSeries;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childAnnotations)).list.length; d++) {
|
||||
if (((this.childAnnotations)).list[d + 1]) {
|
||||
this.tagObjects[1].instance.list.push(((this.childAnnotations)).list[d + 1].childSeries.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.context.ngAfterContentChecked(this);
|
||||
};
|
||||
return AccumulationChartComponent;
|
||||
}(ej2Charts.AccumulationChart));
|
||||
|
@ -1907,6 +1989,7 @@ var RangenavigatorSeriesDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$16);
|
||||
_this.directivePropList = input$14;
|
||||
return _this;
|
||||
}
|
||||
return RangenavigatorSeriesDirective;
|
||||
|
@ -2039,27 +2122,33 @@ exports.RangeNavigatorComponent = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs$17);
|
||||
_this.addTwoWay.call(_this, twoWays$2);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.context = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
RangeNavigatorComponent.prototype.ngOnInit = function () {
|
||||
this.context.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
RangeNavigatorComponent.prototype.ngAfterViewInit = function () {
|
||||
this.context.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
RangeNavigatorComponent.prototype.ngOnDestroy = function () {
|
||||
this.context.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
RangeNavigatorComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.tagObjects[0].instance = this.childSeries;
|
||||
this.context.ngAfterContentChecked(this);
|
||||
};
|
||||
return RangeNavigatorComponent;
|
||||
}(ej2Charts.RangeNavigator));
|
||||
|
@ -2163,6 +2252,7 @@ var RangeBandSettingDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$18);
|
||||
_this.directivePropList = input$15;
|
||||
return _this;
|
||||
}
|
||||
return RangeBandSettingDirective;
|
||||
|
@ -2217,7 +2307,7 @@ var __metadata$7 = (this && this.__metadata) || function (k, v) {
|
|||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
||||
return Reflect.metadata(k, v);
|
||||
};
|
||||
var inputs$3 = ['axisSettings', 'border', 'containerArea', 'dataLabelSettings', 'dataSource', 'enablePersistence', 'enableRtl', 'endPointColor', 'fill', 'format', 'height', 'highPointColor', 'lineWidth', 'locale', 'lowPointColor', 'markerSettings', 'negativePointColor', 'opacity', 'padding', 'palette', 'query', 'rangeBandSettings', 'startPointColor', 'theme', 'tiePointColor', 'tooltipSettings', 'type', 'useGroupingSeparator', 'valueType', 'width', 'xName', 'yName'];
|
||||
var inputs$3 = ['axisSettings', 'border', 'containerArea', 'dataLabelSettings', 'dataSource', 'enablePersistence', 'enableRtl', 'endPointColor', 'fill', 'format', 'height', 'highPointColor', 'lineWidth', 'locale', 'lowPointColor', 'markerSettings', 'negativePointColor', 'opacity', 'padding', 'palette', 'query', 'rangeBandSettings', 'rangePadding', 'startPointColor', 'theme', 'tiePointColor', 'tooltipSettings', 'type', 'useGroupingSeparator', 'valueType', 'width', 'xName', 'yName'];
|
||||
var outputs$19 = ['axisRendering', 'dataLabelRendering', 'load', 'loaded', 'markerRendering', 'pointRegionMouseClick', 'pointRegionMouseMove', 'pointRendering', 'resize', 'seriesRendering', 'sparklineMouseClick', 'sparklineMouseMove', 'tooltipInitialize'];
|
||||
var twoWays$3 = [''];
|
||||
/**
|
||||
|
@ -2253,27 +2343,33 @@ exports.SparklineComponent = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs$19);
|
||||
_this.addTwoWay.call(_this, twoWays$3);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.context = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SparklineComponent.prototype.ngOnInit = function () {
|
||||
this.context.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SparklineComponent.prototype.ngAfterViewInit = function () {
|
||||
this.context.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SparklineComponent.prototype.ngOnDestroy = function () {
|
||||
this.context.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SparklineComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.tagObjects[0].instance = this.childRangeBandSettings;
|
||||
this.context.ngAfterContentChecked(this);
|
||||
};
|
||||
return SparklineComponent;
|
||||
}(ej2Charts.Sparkline));
|
||||
|
@ -2368,6 +2464,7 @@ var SmithchartSeriesDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$20);
|
||||
_this.directivePropList = input$16;
|
||||
return _this;
|
||||
}
|
||||
return SmithchartSeriesDirective;
|
||||
|
@ -2465,27 +2562,33 @@ exports.SmithchartComponent = /** @class */ (function (_super) {
|
|||
_this.registerEvents(outputs$21);
|
||||
_this.addTwoWay.call(_this, twoWays$4);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.context = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SmithchartComponent.prototype.ngOnInit = function () {
|
||||
this.context.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SmithchartComponent.prototype.ngAfterViewInit = function () {
|
||||
this.context.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SmithchartComponent.prototype.ngOnDestroy = function () {
|
||||
this.context.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
SmithchartComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.tagObjects[0].instance = this.childSeries;
|
||||
this.context.ngAfterContentChecked(this);
|
||||
};
|
||||
return SmithchartComponent;
|
||||
}(ej2Charts.Smithchart));
|
||||
|
@ -2595,6 +2698,7 @@ var StockChartTrendlineDirective = /** @class */ (function (_super) {
|
|||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$22);
|
||||
_this.directivePropList = input$17;
|
||||
return _this;
|
||||
}
|
||||
return StockChartTrendlineDirective;
|
||||
|
@ -2656,6 +2760,7 @@ var StockChartSeriesDirective = /** @class */ (function (_super) {
|
|||
_this.tags = ['trendlines'];
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$23);
|
||||
_this.directivePropList = input$18;
|
||||
return _this;
|
||||
}
|
||||
return StockChartSeriesDirective;
|
||||
|
@ -2698,70 +2803,8 @@ StockChartSeriesCollectionDirective.decorators = [
|
|||
* @nocollapse
|
||||
*/
|
||||
StockChartSeriesCollectionDirective.ctorParameters = function () { return []; };
|
||||
var input$19 = ['border', 'color', 'dashArray', 'delay', 'duration', 'enable', 'end', 'horizontalAlignment', 'isRepeat', 'isSegmented', 'opacity', 'repeatEvery', 'repeatUntil', 'rotation', 'segmentAxisName', 'segmentEnd', 'segmentStart', 'size', 'sizeType', 'start', 'startFromAxis', 'text', 'textStyle', 'verticalAlignment', 'visible', 'zIndex'];
|
||||
var input$19 = ['coefficient', 'crossesAt', 'crossesInAxis', 'crosshairTooltip', 'description', 'desiredIntervals', 'edgeLabelPlacement', 'enableAutoIntervalOnZooming', 'enableTrim', 'interval', 'intervalType', 'isInversed', 'labelFormat', 'labelIntersectAction', 'labelPlacement', 'labelPosition', 'labelRotation', 'labelStyle', 'lineStyle', 'logBase', 'majorGridLines', 'majorTickLines', 'maximum', 'maximumLabelWidth', 'maximumLabels', 'minimum', 'minorGridLines', 'minorTickLines', 'minorTicksPerInterval', 'name', 'opposedPosition', 'placeNextToAxisLine', 'plotOffset', 'rangePadding', 'rowIndex', 'skeleton', 'skeletonType', 'span', 'startAngle', 'stripLines', 'tabIndex', 'tickPosition', 'title', 'titleStyle', 'valueType', 'visible', 'zoomFactor', 'zoomPosition'];
|
||||
var outputs$24 = [];
|
||||
/**
|
||||
* StripLine Directive
|
||||
* ```html
|
||||
* <e-stockchart-axis>
|
||||
* <e-striplines>
|
||||
* <e-stripline></e-stripline>
|
||||
* </e-striplines>
|
||||
* </e-stock-chart-axis>
|
||||
* ```
|
||||
*/
|
||||
var StockChartStripLineDirective = /** @class */ (function (_super) {
|
||||
__extends(StockChartStripLineDirective, _super);
|
||||
/**
|
||||
* @param {?} viewContainerRef
|
||||
*/
|
||||
function StockChartStripLineDirective(viewContainerRef) {
|
||||
var _this = _super.call(this) || this;
|
||||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$24);
|
||||
return _this;
|
||||
}
|
||||
return StockChartStripLineDirective;
|
||||
}(ej2AngularBase.ComplexBase));
|
||||
StockChartStripLineDirective.decorators = [
|
||||
{ type: core.Directive, args: [{
|
||||
selector: 'e-stockchart-axis>e-stockchart-striplines>e-stockchart-stripline',
|
||||
inputs: input$19,
|
||||
outputs: outputs$24,
|
||||
queries: {}
|
||||
},] },
|
||||
];
|
||||
/**
|
||||
* @nocollapse
|
||||
*/
|
||||
StockChartStripLineDirective.ctorParameters = function () { return [
|
||||
{ type: core.ViewContainerRef, },
|
||||
]; };
|
||||
/**
|
||||
* StockChartStripLine Array Directive
|
||||
*/
|
||||
var StockChartStripLinesDirective = /** @class */ (function (_super) {
|
||||
__extends(StockChartStripLinesDirective, _super);
|
||||
function StockChartStripLinesDirective() {
|
||||
return _super.call(this, 'striplines') || this;
|
||||
}
|
||||
return StockChartStripLinesDirective;
|
||||
}(ej2AngularBase.ArrayBase));
|
||||
StockChartStripLinesDirective.decorators = [
|
||||
{ type: core.Directive, args: [{
|
||||
selector: 'e-stockchart-axis>e-stockchart-striplines',
|
||||
queries: {
|
||||
children: new core.ContentChildren(StockChartStripLineDirective)
|
||||
},
|
||||
},] },
|
||||
];
|
||||
/**
|
||||
* @nocollapse
|
||||
*/
|
||||
StockChartStripLinesDirective.ctorParameters = function () { return []; };
|
||||
var input$20 = ['coefficient', 'crossesAt', 'crossesInAxis', 'crosshairTooltip', 'description', 'desiredIntervals', 'edgeLabelPlacement', 'enableAutoIntervalOnZooming', 'enableTrim', 'interval', 'intervalType', 'isInversed', 'labelFormat', 'labelIntersectAction', 'labelPlacement', 'labelPosition', 'labelRotation', 'labelStyle', 'lineStyle', 'logBase', 'majorGridLines', 'majorTickLines', 'maximum', 'maximumLabelWidth', 'maximumLabels', 'minimum', 'minorGridLines', 'minorTickLines', 'minorTicksPerInterval', 'name', 'opposedPosition', 'placeNextToAxisLine', 'plotOffset', 'rangePadding', 'rowIndex', 'skeleton', 'skeletonType', 'span', 'startAngle', 'stripLines', 'tabIndex', 'tickPosition', 'title', 'titleStyle', 'valueType', 'visible', 'zoomFactor', 'zoomPosition'];
|
||||
var outputs$25 = [];
|
||||
/**
|
||||
* Axis Directive
|
||||
* ```html
|
||||
|
@ -2776,9 +2819,9 @@ var StockChartAxisDirective = /** @class */ (function (_super) {
|
|||
function StockChartAxisDirective(viewContainerRef) {
|
||||
var _this = _super.call(this) || this;
|
||||
_this.viewContainerRef = viewContainerRef;
|
||||
_this.tags = ['stripLines'];
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$25);
|
||||
_this.registerEvents(outputs$24);
|
||||
_this.directivePropList = input$19;
|
||||
return _this;
|
||||
}
|
||||
return StockChartAxisDirective;
|
||||
|
@ -2786,11 +2829,9 @@ var StockChartAxisDirective = /** @class */ (function (_super) {
|
|||
StockChartAxisDirective.decorators = [
|
||||
{ type: core.Directive, args: [{
|
||||
selector: 'e-stockchart-axes>e-stockchart-axis',
|
||||
inputs: input$20,
|
||||
outputs: outputs$25,
|
||||
queries: {
|
||||
childStripLines: new core.ContentChild(StockChartStripLinesDirective)
|
||||
}
|
||||
inputs: input$19,
|
||||
outputs: outputs$24,
|
||||
queries: {}
|
||||
},] },
|
||||
];
|
||||
/**
|
||||
|
@ -2821,8 +2862,8 @@ StockChartAxesDirective.decorators = [
|
|||
* @nocollapse
|
||||
*/
|
||||
StockChartAxesDirective.ctorParameters = function () { return []; };
|
||||
var input$21 = ['border', 'height'];
|
||||
var outputs$26 = [];
|
||||
var input$20 = ['border', 'height'];
|
||||
var outputs$25 = [];
|
||||
/**
|
||||
* Row Directive
|
||||
* ```html
|
||||
|
@ -2838,16 +2879,17 @@ var StockChartRowDirective = /** @class */ (function (_super) {
|
|||
var _this = _super.call(this) || this;
|
||||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$26);
|
||||
_this.registerEvents(outputs$25);
|
||||
_this.directivePropList = input$20;
|
||||
return _this;
|
||||
}
|
||||
return StockChartRowDirective;
|
||||
}(ej2AngularBase.ComplexBase));
|
||||
StockChartRowDirective.decorators = [
|
||||
{ type: core.Directive, args: [{
|
||||
selector: 'e-stockchart-rows>e-striplines>e-stockchart-row',
|
||||
inputs: input$21,
|
||||
outputs: outputs$26,
|
||||
selector: 'e-stockchart-rows>e-stockchart-row',
|
||||
inputs: input$20,
|
||||
outputs: outputs$25,
|
||||
queries: {}
|
||||
},] },
|
||||
];
|
||||
|
@ -2893,8 +2935,8 @@ var __metadata$9 = (this && this.__metadata) || function (k, v) {
|
|||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
||||
return Reflect.metadata(k, v);
|
||||
};
|
||||
var input$22 = ['content', 'coordinateUnits', 'description', 'horizontalAlignment', 'region', 'verticalAlignment', 'x', 'xAxisName', 'y', 'yAxisName'];
|
||||
var outputs$27 = [];
|
||||
var input$21 = ['content', 'coordinateUnits', 'description', 'horizontalAlignment', 'region', 'verticalAlignment', 'x', 'xAxisName', 'y', 'yAxisName'];
|
||||
var outputs$26 = [];
|
||||
/**
|
||||
* Annotation Directive
|
||||
* ```html
|
||||
|
@ -2910,7 +2952,8 @@ var StockChartAnnotationDirective = /** @class */ (function (_super) {
|
|||
var _this = _super.call(this) || this;
|
||||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$27);
|
||||
_this.registerEvents(outputs$26);
|
||||
_this.directivePropList = input$21;
|
||||
return _this;
|
||||
}
|
||||
return StockChartAnnotationDirective;
|
||||
|
@ -2918,8 +2961,8 @@ var StockChartAnnotationDirective = /** @class */ (function (_super) {
|
|||
StockChartAnnotationDirective.decorators = [
|
||||
{ type: core.Directive, args: [{
|
||||
selector: 'ejs-stockchart-annotations>e-stockchart-annotation',
|
||||
inputs: input$22,
|
||||
outputs: outputs$27,
|
||||
inputs: input$21,
|
||||
outputs: outputs$26,
|
||||
queries: {}
|
||||
},] },
|
||||
];
|
||||
|
@ -2958,8 +3001,8 @@ StockChartAnnotationsDirective.decorators = [
|
|||
* @nocollapse
|
||||
*/
|
||||
StockChartAnnotationsDirective.ctorParameters = function () { return []; };
|
||||
var input$23 = ['point', 'series'];
|
||||
var outputs$28 = [];
|
||||
var input$22 = ['point', 'series'];
|
||||
var outputs$27 = [];
|
||||
/**
|
||||
* Selected Data Directive
|
||||
* ```html
|
||||
|
@ -2975,7 +3018,8 @@ var StockChartSelectedDataIndexDirective = /** @class */ (function (_super) {
|
|||
var _this = _super.call(this) || this;
|
||||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$28);
|
||||
_this.registerEvents(outputs$27);
|
||||
_this.directivePropList = input$22;
|
||||
return _this;
|
||||
}
|
||||
return StockChartSelectedDataIndexDirective;
|
||||
|
@ -2983,8 +3027,8 @@ var StockChartSelectedDataIndexDirective = /** @class */ (function (_super) {
|
|||
StockChartSelectedDataIndexDirective.decorators = [
|
||||
{ type: core.Directive, args: [{
|
||||
selector: 'ejs-stockchart-selectedDataIndexes>e-stockchart-selectedDataIndex',
|
||||
inputs: input$23,
|
||||
outputs: outputs$28,
|
||||
inputs: input$22,
|
||||
outputs: outputs$27,
|
||||
queries: {}
|
||||
},] },
|
||||
];
|
||||
|
@ -3016,8 +3060,8 @@ StockChartSelectedDataIndexesDirective.decorators = [
|
|||
* @nocollapse
|
||||
*/
|
||||
StockChartSelectedDataIndexesDirective.ctorParameters = function () { return []; };
|
||||
var input$24 = ['interval', 'intervalType', 'selected', 'text'];
|
||||
var outputs$29 = [];
|
||||
var input$23 = ['interval', 'intervalType', 'selected', 'text'];
|
||||
var outputs$28 = [];
|
||||
/**
|
||||
* Indicator Directive
|
||||
* ```html
|
||||
|
@ -3035,7 +3079,8 @@ var StockChartPeriodDirective = /** @class */ (function (_super) {
|
|||
var _this = _super.call(this) || this;
|
||||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$29);
|
||||
_this.registerEvents(outputs$28);
|
||||
_this.directivePropList = input$23;
|
||||
return _this;
|
||||
}
|
||||
return StockChartPeriodDirective;
|
||||
|
@ -3043,8 +3088,8 @@ var StockChartPeriodDirective = /** @class */ (function (_super) {
|
|||
StockChartPeriodDirective.decorators = [
|
||||
{ type: core.Directive, args: [{
|
||||
selector: 'e-stockchart-indicators>e-stockchart-period',
|
||||
inputs: input$24,
|
||||
outputs: outputs$29,
|
||||
inputs: input$23,
|
||||
outputs: outputs$28,
|
||||
queries: {}
|
||||
},] },
|
||||
];
|
||||
|
@ -3076,8 +3121,8 @@ StockChartPeriodsDirective.decorators = [
|
|||
* @nocollapse
|
||||
*/
|
||||
StockChartPeriodsDirective.ctorParameters = function () { return []; };
|
||||
var input$25 = ['background', 'border', 'date', 'description', 'placeAt', 'showOnSeries', 'text', 'textStyle', 'type'];
|
||||
var outputs$30 = [];
|
||||
var input$24 = ['background', 'border', 'date', 'description', 'placeAt', 'showOnSeries', 'text', 'textStyle', 'type'];
|
||||
var outputs$29 = [];
|
||||
/**
|
||||
* StockEvents
|
||||
* ```html
|
||||
|
@ -3095,7 +3140,8 @@ var StockEventDirective = /** @class */ (function (_super) {
|
|||
var _this = _super.call(this) || this;
|
||||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$30);
|
||||
_this.registerEvents(outputs$29);
|
||||
_this.directivePropList = input$24;
|
||||
return _this;
|
||||
}
|
||||
return StockEventDirective;
|
||||
|
@ -3103,8 +3149,8 @@ var StockEventDirective = /** @class */ (function (_super) {
|
|||
StockEventDirective.decorators = [
|
||||
{ type: core.Directive, args: [{
|
||||
selector: 'e-stockchart-indicators>e-stockchart-stockevent',
|
||||
inputs: input$25,
|
||||
outputs: outputs$30,
|
||||
inputs: input$24,
|
||||
outputs: outputs$29,
|
||||
queries: {}
|
||||
},] },
|
||||
];
|
||||
|
@ -3136,8 +3182,8 @@ StockEventsDirective.decorators = [
|
|||
* @nocollapse
|
||||
*/
|
||||
StockEventsDirective.ctorParameters = function () { return []; };
|
||||
var input$26 = ['animation', 'bandColor', 'close', 'dPeriod', 'dashArray', 'dataSource', 'fastPeriod', 'field', 'fill', 'high', 'kPeriod', 'low', 'lowerLine', 'macdLine', 'macdNegativeColor', 'macdPositiveColor', 'macdType', 'open', 'overBought', 'overSold', 'period', 'periodLine', 'pointColorMapping', 'query', 'seriesName', 'showZones', 'slowPeriod', 'standardDeviation', 'type', 'upperLine', 'volume', 'width', 'xAxisName', 'xName', 'yAxisName'];
|
||||
var outputs$31 = [];
|
||||
var input$25 = ['animation', 'bandColor', 'close', 'dPeriod', 'dashArray', 'dataSource', 'fastPeriod', 'field', 'fill', 'high', 'kPeriod', 'low', 'lowerLine', 'macdLine', 'macdNegativeColor', 'macdPositiveColor', 'macdType', 'open', 'overBought', 'overSold', 'period', 'periodLine', 'pointColorMapping', 'query', 'seriesName', 'showZones', 'slowPeriod', 'standardDeviation', 'type', 'upperLine', 'volume', 'width', 'xAxisName', 'xName', 'yAxisName'];
|
||||
var outputs$30 = [];
|
||||
/**
|
||||
* Indicator Directive
|
||||
* ```html
|
||||
|
@ -3155,7 +3201,8 @@ var StockChartIndicatorDirective = /** @class */ (function (_super) {
|
|||
var _this = _super.call(this) || this;
|
||||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$31);
|
||||
_this.registerEvents(outputs$30);
|
||||
_this.directivePropList = input$25;
|
||||
return _this;
|
||||
}
|
||||
return StockChartIndicatorDirective;
|
||||
|
@ -3163,8 +3210,8 @@ var StockChartIndicatorDirective = /** @class */ (function (_super) {
|
|||
StockChartIndicatorDirective.decorators = [
|
||||
{ type: core.Directive, args: [{
|
||||
selector: 'e-stockchart-indicators>e-stockchart-indicator',
|
||||
inputs: input$26,
|
||||
outputs: outputs$31,
|
||||
inputs: input$25,
|
||||
outputs: outputs$30,
|
||||
queries: {}
|
||||
},] },
|
||||
];
|
||||
|
@ -3211,7 +3258,7 @@ var __metadata$10 = (this && this.__metadata) || function (k, v) {
|
|||
return Reflect.metadata(k, v);
|
||||
};
|
||||
var inputs$5 = ['annotations', 'axes', 'background', 'border', 'chartArea', 'crosshair', 'dataSource', 'enableCustomRange', 'enablePeriodSelector', 'enablePersistence', 'enableRtl', 'enableSelector', 'exportType', 'height', 'indicatorType', 'indicators', 'isMultiSelect', 'isSelect', 'isTransposed', 'locale', 'margin', 'periods', 'primaryXAxis', 'primaryYAxis', 'rows', 'selectedDataIndexes', 'selectionMode', 'series', 'seriesType', 'stockEvents', 'theme', 'title', 'titleStyle', 'tooltip', 'trendlineType', 'width', 'zoomSettings'];
|
||||
var outputs$32 = ['axisLabelRender', 'load', 'loaded', 'onZooming', 'pointClick', 'pointMove', 'rangeChange', 'selectorRender', 'seriesRender', 'stockChartMouseClick', 'stockChartMouseDown', 'stockChartMouseLeave', 'stockChartMouseMove', 'stockChartMouseUp', 'stockEventRender', 'tooltipRender', 'dataSourceChange'];
|
||||
var outputs$31 = ['axisLabelRender', 'load', 'loaded', 'onZooming', 'pointClick', 'pointMove', 'rangeChange', 'selectorRender', 'seriesRender', 'stockChartMouseClick', 'stockChartMouseDown', 'stockChartMouseLeave', 'stockChartMouseMove', 'stockChartMouseUp', 'stockEventRender', 'tooltipRender', 'dataSourceChange'];
|
||||
var twoWays$5 = ['dataSource'];
|
||||
/**
|
||||
* Stock Chart Component
|
||||
|
@ -3439,30 +3486,92 @@ exports.StockChartComponent = /** @class */ (function (_super) {
|
|||
}
|
||||
}
|
||||
catch (_4) { }
|
||||
_this.registerEvents(outputs$32);
|
||||
_this.registerEvents(outputs$31);
|
||||
_this.addTwoWay.call(_this, twoWays$5);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.context = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
StockChartComponent.prototype.ngOnInit = function () {
|
||||
this.context.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
StockChartComponent.prototype.ngAfterViewInit = function () {
|
||||
this.context.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
StockChartComponent.prototype.ngOnDestroy = function () {
|
||||
this.context.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
StockChartComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.tagObjects[0].instance = this.childSeries;
|
||||
if (this.childAxes) {
|
||||
this.tagObjects[1].instance = ((this.childAxes)).list[0].childSeries;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childAxes)).list.length; d++) {
|
||||
if (((this.childAxes)).list[d + 1]) {
|
||||
this.tagObjects[1].instance.list.push(((this.childAxes)).list[d + 1].childSeries.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childRows) {
|
||||
this.tagObjects[2].instance = ((this.childRows)).list[0].childAxes;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childRows)).list.length; d++) {
|
||||
if (((this.childRows)).list[d + 1]) {
|
||||
this.tagObjects[2].instance.list.push(((this.childRows)).list[d + 1].childAxes.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childAnnotations) {
|
||||
this.tagObjects[3].instance = ((this.childAnnotations)).list[0].childRows;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childAnnotations)).list.length; d++) {
|
||||
if (((this.childAnnotations)).list[d + 1]) {
|
||||
this.tagObjects[3].instance.list.push(((this.childAnnotations)).list[d + 1].childRows.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childSelectedDataIndexes) {
|
||||
this.tagObjects[4].instance = ((this.childSelectedDataIndexes)).list[0].childAnnotations;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childSelectedDataIndexes)).list.length; d++) {
|
||||
if (((this.childSelectedDataIndexes)).list[d + 1]) {
|
||||
this.tagObjects[4].instance.list.push(((this.childSelectedDataIndexes)).list[d + 1].childAnnotations.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childPeriods) {
|
||||
this.tagObjects[5].instance = ((this.childPeriods)).list[0].childSelectedDataIndexes;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childPeriods)).list.length; d++) {
|
||||
if (((this.childPeriods)).list[d + 1]) {
|
||||
this.tagObjects[5].instance.list.push(((this.childPeriods)).list[d + 1].childSelectedDataIndexes.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childStockEvents) {
|
||||
this.tagObjects[6].instance = ((this.childStockEvents)).list[0].childPeriods;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childStockEvents)).list.length; d++) {
|
||||
if (((this.childStockEvents)).list[d + 1]) {
|
||||
this.tagObjects[6].instance.list.push(((this.childStockEvents)).list[d + 1].childPeriods.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childIndicators) {
|
||||
this.tagObjects[7].instance = ((this.childIndicators)).list[0].childStockEvents;
|
||||
for (var /** @type {?} */ d = 0; d < ((this.childIndicators)).list.length; d++) {
|
||||
if (((this.childIndicators)).list[d + 1]) {
|
||||
this.tagObjects[7].instance.list.push(((this.childIndicators)).list[d + 1].childStockEvents.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.context.ngAfterContentChecked(this);
|
||||
};
|
||||
return StockChartComponent;
|
||||
}(ej2Charts.StockChart));
|
||||
|
@ -3470,7 +3579,7 @@ exports.StockChartComponent.decorators = [
|
|||
{ type: core.Component, args: [{
|
||||
selector: 'ejs-stockchart',
|
||||
inputs: inputs$5,
|
||||
outputs: outputs$32,
|
||||
outputs: outputs$31,
|
||||
template: '',
|
||||
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
||||
queries: {
|
||||
|
@ -3525,8 +3634,6 @@ StockChartModule.decorators = [
|
|||
StockChartTrendlinesDirective,
|
||||
StockChartSeriesDirective,
|
||||
StockChartSeriesCollectionDirective,
|
||||
StockChartStripLineDirective,
|
||||
StockChartStripLinesDirective,
|
||||
StockChartAxisDirective,
|
||||
StockChartAxesDirective,
|
||||
StockChartRowDirective,
|
||||
|
@ -3548,8 +3655,6 @@ StockChartModule.decorators = [
|
|||
StockChartTrendlinesDirective,
|
||||
StockChartSeriesDirective,
|
||||
StockChartSeriesCollectionDirective,
|
||||
StockChartStripLineDirective,
|
||||
StockChartStripLinesDirective,
|
||||
StockChartAxisDirective,
|
||||
StockChartAxesDirective,
|
||||
StockChartRowDirective,
|
||||
|
@ -3592,8 +3697,8 @@ StockChartAllModule.decorators = [
|
|||
* @nocollapse
|
||||
*/
|
||||
StockChartAllModule.ctorParameters = function () { return []; };
|
||||
var input$27 = ['color', 'end', 'opacity'];
|
||||
var outputs$33 = [];
|
||||
var input$26 = ['color', 'end', 'opacity'];
|
||||
var outputs$32 = [];
|
||||
/**
|
||||
* BulletRange Directive
|
||||
* ```html
|
||||
|
@ -3611,7 +3716,8 @@ var BulletRangeDirective = /** @class */ (function (_super) {
|
|||
var _this = _super.call(this) || this;
|
||||
_this.viewContainerRef = viewContainerRef;
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.registerEvents(outputs$33);
|
||||
_this.registerEvents(outputs$32);
|
||||
_this.directivePropList = input$26;
|
||||
return _this;
|
||||
}
|
||||
return BulletRangeDirective;
|
||||
|
@ -3619,8 +3725,8 @@ var BulletRangeDirective = /** @class */ (function (_super) {
|
|||
BulletRangeDirective.decorators = [
|
||||
{ type: core.Directive, args: [{
|
||||
selector: 'e-bullet-range-collection>e-bullet-range',
|
||||
inputs: input$27,
|
||||
outputs: outputs$33,
|
||||
inputs: input$26,
|
||||
outputs: outputs$32,
|
||||
queries: {}
|
||||
},] },
|
||||
];
|
||||
|
@ -3667,7 +3773,7 @@ var __metadata$11 = (this && this.__metadata) || function (k, v) {
|
|||
return Reflect.metadata(k, v);
|
||||
};
|
||||
var inputs$6 = ['animation', 'border', 'categoryField', 'categoryLabelStyle', 'dataLabel', 'dataSource', 'enableGroupSeparator', 'enablePersistence', 'enableRtl', 'height', 'interval', 'labelFormat', 'labelPosition', 'labelStyle', 'locale', 'majorTickLines', 'margin', 'maximum', 'minimum', 'minorTickLines', 'minorTicksPerInterval', 'opposedPosition', 'orientation', 'query', 'ranges', 'subtitle', 'subtitleStyle', 'tabIndex', 'targetColor', 'targetField', 'targetTypes', 'targetWidth', 'theme', 'tickPosition', 'title', 'titlePosition', 'titleStyle', 'tooltip', 'type', 'valueBorder', 'valueField', 'valueFill', 'valueHeight', 'width'];
|
||||
var outputs$34 = ['barRender', 'beforePrint', 'load', 'loaded', 'tooltipRender', 'dataSourceChange'];
|
||||
var outputs$33 = ['barRender', 'beforePrint', 'load', 'loaded', 'tooltipRender', 'dataSourceChange'];
|
||||
var twoWays$6 = ['dataSource'];
|
||||
/**
|
||||
* BulletChart Component
|
||||
|
@ -3699,30 +3805,36 @@ exports.BulletChartComponent = /** @class */ (function (_super) {
|
|||
}
|
||||
}
|
||||
catch (_a) { }
|
||||
_this.registerEvents(outputs$34);
|
||||
_this.registerEvents(outputs$33);
|
||||
_this.addTwoWay.call(_this, twoWays$6);
|
||||
ej2AngularBase.setValue('currentInstance', _this, _this.viewContainerRef);
|
||||
_this.context = new ej2AngularBase.ComponentBase();
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
BulletChartComponent.prototype.ngOnInit = function () {
|
||||
this.context.ngOnInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
BulletChartComponent.prototype.ngAfterViewInit = function () {
|
||||
this.context.ngAfterViewInit(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
BulletChartComponent.prototype.ngOnDestroy = function () {
|
||||
this.context.ngOnDestroy(this);
|
||||
};
|
||||
/**
|
||||
* @return {?}
|
||||
*/
|
||||
BulletChartComponent.prototype.ngAfterContentChecked = function () {
|
||||
this.tagObjects[0].instance = this.childRanges;
|
||||
this.context.ngAfterContentChecked(this);
|
||||
};
|
||||
return BulletChartComponent;
|
||||
}(ej2Charts.BulletChart));
|
||||
|
@ -3730,7 +3842,7 @@ exports.BulletChartComponent.decorators = [
|
|||
{ type: core.Component, args: [{
|
||||
selector: 'ejs-bulletchart',
|
||||
inputs: inputs$6,
|
||||
outputs: outputs$34,
|
||||
outputs: outputs$33,
|
||||
template: '',
|
||||
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
||||
queries: {
|
||||
|
@ -3929,8 +4041,6 @@ exports.StockChartTrendlineDirective = StockChartTrendlineDirective;
|
|||
exports.StockChartTrendlinesDirective = StockChartTrendlinesDirective;
|
||||
exports.StockChartSeriesDirective = StockChartSeriesDirective;
|
||||
exports.StockChartSeriesCollectionDirective = StockChartSeriesCollectionDirective;
|
||||
exports.StockChartStripLineDirective = StockChartStripLineDirective;
|
||||
exports.StockChartStripLinesDirective = StockChartStripLinesDirective;
|
||||
exports.StockChartAxisDirective = StockChartAxisDirective;
|
||||
exports.StockChartAxesDirective = StockChartAxesDirective;
|
||||
exports.StockChartRowDirective = StockChartRowDirective;
|
||||
|
@ -3955,7 +4065,7 @@ exports.BulletTooltipService = BulletTooltipService;
|
|||
exports.ɵc = inputs$1;
|
||||
exports.ɵd = outputs$15;
|
||||
exports.ɵm = inputs$6;
|
||||
exports.ɵn = outputs$34;
|
||||
exports.ɵn = outputs$33;
|
||||
exports.ɵa = inputs;
|
||||
exports.ɵb = outputs$12;
|
||||
exports.ɵe = inputs$2;
|
||||
|
@ -3965,7 +4075,7 @@ exports.ɵj = outputs$21;
|
|||
exports.ɵg = inputs$3;
|
||||
exports.ɵh = outputs$19;
|
||||
exports.ɵk = inputs$5;
|
||||
exports.ɵl = outputs$32;
|
||||
exports.ɵl = outputs$31;
|
||||
exports.CrosshairSettings = ej2Charts.CrosshairSettings;
|
||||
exports.ZoomSettings = ej2Charts.ZoomSettings;
|
||||
exports.Chart = ej2Charts.Chart;
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@syncfusion/ej2-angular-charts",
|
||||
"version": "17.4.47",
|
||||
"version": "17.4.50",
|
||||
"description": "Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball. for Angular",
|
||||
"author": "Syncfusion Inc.",
|
||||
"license": "SEE LICENSE IN license",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.pkgName = '@syncfusion/ej2-angular-charts';
|
||||
exports.pkgVer = '^17.4.47';
|
||||
exports.pkgVer = '^17.4.50';
|
||||
exports.moduleName = 'ChartModule, AccumulationChartModule, RangeNavigatorModule, SparklineModule, SmithchartModule, StockChartModule, BulletChartModule';
|
||||
exports.themeVer = '~17.4.47';
|
||||
exports.themeVer = '~17.4.50';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const pkgName = '@syncfusion/ej2-angular-charts';
|
||||
export const pkgVer = '^17.4.47';
|
||||
export const pkgVer = '^17.4.50';
|
||||
export const moduleName = 'ChartModule, AccumulationChartModule, RangeNavigatorModule, SparklineModule, SmithchartModule, StockChartModule, BulletChartModule';
|
||||
export const themeVer = '~17.4.47';
|
||||
export const themeVer = '~17.4.50';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@syncfusion/ej2-angular-charts",
|
||||
"version": "17.4.47",
|
||||
"version": "17.4.50",
|
||||
"description": "Feature-rich chart control with built-in support for over 25 chart types, technical indictors, trendline, zooming, tooltip, selection, crosshair and trackball. for Angular",
|
||||
"author": "Syncfusion Inc.",
|
||||
"license": "SEE LICENSE IN license",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
export const pkgName = '@syncfusion/ej2-angular-charts';
|
||||
export const pkgVer = '^17.4.47';
|
||||
export const pkgVer = '^17.4.50';
|
||||
export const moduleName = 'ChartModule, AccumulationChartModule, RangeNavigatorModule, SparklineModule, SmithchartModule, StockChartModule, BulletChartModule';
|
||||
export const themeVer = '~17.4.47';
|
||||
export const themeVer = '~17.4.50';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';
|
||||
import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, QueryList, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';
|
||||
import { ComponentBase, IComponentBase, applyMixins, ComponentMixins, PropertyCollectionInfo, setValue } from '@syncfusion/ej2-angular-base';
|
||||
import { AccumulationChart } from '@syncfusion/ej2-charts';
|
||||
import { Template } from '@syncfusion/ej2-angular-base';
|
||||
|
@ -28,8 +28,10 @@ export const twoWays: string[] = ['dataSource'];
|
|||
})
|
||||
@ComponentMixins([ComponentBase])
|
||||
export class AccumulationChartComponent extends AccumulationChart implements IComponentBase {
|
||||
public childSeries: any;
|
||||
public childAnnotations: any;
|
||||
public context : any;
|
||||
public tagObjects: any;
|
||||
public childSeries: QueryList<AccumulationSeriesCollectionDirective>;
|
||||
public childAnnotations: QueryList<AccumulationAnnotationsDirective>;
|
||||
public tags: string[] = ['series', 'annotations'];
|
||||
public dataSourceChange: any;
|
||||
@ContentChild('tooltipTemplate')
|
||||
|
@ -98,18 +100,32 @@ export class AccumulationChartComponent extends AccumulationChart implements ICo
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.context = new ComponentBase();
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.context.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.context.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.context.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
this.tagObjects[0].instance = this.childSeries;
|
||||
if (this.childAnnotations) {
|
||||
this.tagObjects[1].instance = (this.childAnnotations as any).list[0].childSeries;
|
||||
for (var d = 0; d < (this.childAnnotations as any).list.length; d++) {
|
||||
if ((this.childAnnotations as any).list[d + 1]) {
|
||||
this.tagObjects[1].instance.list.push((this.childAnnotations as any).list[d+1].childSeries.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.context.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -22,6 +22,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class AccumulationAnnotationDirective extends ComplexBase<AccumulationAnnotationDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -83,6 +84,7 @@ export class AccumulationAnnotationDirective extends ComplexBase<AccumulationAnn
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class AccumulationSeriesDirective extends ComplexBase<AccumulationSeriesDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -211,6 +212,7 @@ export class AccumulationSeriesDirective extends ComplexBase<AccumulationSeriesD
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';
|
||||
import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, QueryList, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';
|
||||
import { ComponentBase, IComponentBase, applyMixins, ComponentMixins, PropertyCollectionInfo, setValue } from '@syncfusion/ej2-angular-base';
|
||||
import { BulletChart } from '@syncfusion/ej2-charts';
|
||||
import { Template } from '@syncfusion/ej2-angular-base';
|
||||
|
@ -26,7 +26,9 @@ export const twoWays: string[] = ['dataSource'];
|
|||
})
|
||||
@ComponentMixins([ComponentBase])
|
||||
export class BulletChartComponent extends BulletChart implements IComponentBase {
|
||||
public childRanges: any;
|
||||
public context : any;
|
||||
public tagObjects: any;
|
||||
public childRanges: QueryList<BulletRangeCollectionDirective>;
|
||||
public tags: string[] = ['ranges'];
|
||||
public dataSourceChange: any;
|
||||
@ContentChild('tooltipTemplate')
|
||||
|
@ -47,18 +49,24 @@ export class BulletChartComponent extends BulletChart implements IComponentBase
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.context = new ComponentBase();
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.context.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.context.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.context.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
this.tagObjects[0].instance = this.childRanges;
|
||||
this.context.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -22,6 +22,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class BulletRangeDirective extends ComplexBase<BulletRangeDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -44,6 +45,7 @@ export class BulletRangeDirective extends ComplexBase<BulletRangeDirective> {
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class AnnotationDirective extends ComplexBase<AnnotationDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -93,6 +94,7 @@ export class AnnotationDirective extends ComplexBase<AnnotationDirective> {
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class AxisDirective extends ComplexBase<AxisDirective> {
|
||||
public directivePropList: any;
|
||||
public childStripLines: any;
|
||||
public childMultiLevelLabels: any;
|
||||
public tags: string[] = ['stripLines', 'multiLevelLabels'];
|
||||
|
@ -343,6 +344,7 @@ export class AxisDirective extends ComplexBase<AxisDirective> {
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class CategoryDirective extends ComplexBase<CategoryDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -75,6 +76,7 @@ export class CategoryDirective extends ComplexBase<CategoryDirective> {
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';
|
||||
import { Component, ElementRef, ViewContainerRef, ChangeDetectionStrategy, QueryList, Renderer2, Injector, ValueProvider, ContentChild } from '@angular/core';
|
||||
import { ComponentBase, IComponentBase, applyMixins, ComponentMixins, PropertyCollectionInfo, setValue } from '@syncfusion/ej2-angular-base';
|
||||
import { Chart } from '@syncfusion/ej2-charts';
|
||||
import { Template } from '@syncfusion/ej2-angular-base';
|
||||
|
@ -38,13 +38,15 @@ export const twoWays: string[] = ['dataSource'];
|
|||
})
|
||||
@ComponentMixins([ComponentBase])
|
||||
export class ChartComponent extends Chart implements IComponentBase {
|
||||
public childSeries: any;
|
||||
public childAxes: any;
|
||||
public childRows: any;
|
||||
public childColumns: any;
|
||||
public childAnnotations: any;
|
||||
public childSelectedDataIndexes: any;
|
||||
public childIndicators: any;
|
||||
public context : any;
|
||||
public tagObjects: any;
|
||||
public childSeries: QueryList<SeriesCollectionDirective>;
|
||||
public childAxes: QueryList<AxesDirective>;
|
||||
public childRows: QueryList<RowsDirective>;
|
||||
public childColumns: QueryList<ColumnsDirective>;
|
||||
public childAnnotations: QueryList<AnnotationsDirective>;
|
||||
public childSelectedDataIndexes: QueryList<SelectedDataIndexesDirective>;
|
||||
public childIndicators: QueryList<IndicatorsDirective>;
|
||||
public tags: string[] = ['series', 'axes', 'rows', 'columns', 'annotations', 'selectedDataIndexes', 'indicators'];
|
||||
public dataSourceChange: any;
|
||||
@ContentChild('tooltipTemplate')
|
||||
|
@ -389,18 +391,72 @@ export class ChartComponent extends Chart implements IComponentBase {
|
|||
this.registerEvents(outputs);
|
||||
this.addTwoWay.call(this, twoWays);
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.context = new ComponentBase();
|
||||
}
|
||||
|
||||
public ngOnInit() {
|
||||
this.context.ngOnInit(this);
|
||||
}
|
||||
|
||||
public ngAfterViewInit(): void {
|
||||
this.context.ngAfterViewInit(this);
|
||||
}
|
||||
|
||||
public ngOnDestroy(): void {
|
||||
this.context.ngOnDestroy(this);
|
||||
}
|
||||
|
||||
public ngAfterContentChecked(): void {
|
||||
this.tagObjects[0].instance = this.childSeries;
|
||||
if (this.childAxes) {
|
||||
this.tagObjects[1].instance = (this.childAxes as any).list[0].childSeries;
|
||||
for (var d = 0; d < (this.childAxes as any).list.length; d++) {
|
||||
if ((this.childAxes as any).list[d + 1]) {
|
||||
this.tagObjects[1].instance.list.push((this.childAxes as any).list[d+1].childSeries.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childRows) {
|
||||
this.tagObjects[2].instance = (this.childRows as any).list[0].childAxes;
|
||||
for (var d = 0; d < (this.childRows as any).list.length; d++) {
|
||||
if ((this.childRows as any).list[d + 1]) {
|
||||
this.tagObjects[2].instance.list.push((this.childRows as any).list[d+1].childAxes.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childColumns) {
|
||||
this.tagObjects[3].instance = (this.childColumns as any).list[0].childRows;
|
||||
for (var d = 0; d < (this.childColumns as any).list.length; d++) {
|
||||
if ((this.childColumns as any).list[d + 1]) {
|
||||
this.tagObjects[3].instance.list.push((this.childColumns as any).list[d+1].childRows.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childAnnotations) {
|
||||
this.tagObjects[4].instance = (this.childAnnotations as any).list[0].childColumns;
|
||||
for (var d = 0; d < (this.childAnnotations as any).list.length; d++) {
|
||||
if ((this.childAnnotations as any).list[d + 1]) {
|
||||
this.tagObjects[4].instance.list.push((this.childAnnotations as any).list[d+1].childColumns.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childSelectedDataIndexes) {
|
||||
this.tagObjects[5].instance = (this.childSelectedDataIndexes as any).list[0].childAnnotations;
|
||||
for (var d = 0; d < (this.childSelectedDataIndexes as any).list.length; d++) {
|
||||
if ((this.childSelectedDataIndexes as any).list[d + 1]) {
|
||||
this.tagObjects[5].instance.list.push((this.childSelectedDataIndexes as any).list[d+1].childAnnotations.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.childIndicators) {
|
||||
this.tagObjects[6].instance = (this.childIndicators as any).list[0].childSelectedDataIndexes;
|
||||
for (var d = 0; d < (this.childIndicators as any).list.length; d++) {
|
||||
if ((this.childIndicators as any).list[d + 1]) {
|
||||
this.tagObjects[6].instance.list.push((this.childIndicators as any).list[d+1].childSelectedDataIndexes.list[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.context.ngAfterContentChecked(this);
|
||||
}
|
||||
|
||||
public registerEvents: (eventList: string[]) => void;
|
||||
|
|
|
@ -20,6 +20,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class ColumnDirective extends ComplexBase<ColumnDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -37,6 +38,7 @@ export class ColumnDirective extends ComplexBase<ColumnDirective> {
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,6 +22,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class IndicatorDirective extends ComplexBase<IndicatorDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -233,6 +234,7 @@ export class IndicatorDirective extends ComplexBase<IndicatorDirective> {
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class MultiLevelLabelDirective extends ComplexBase<MultiLevelLabelDirective> {
|
||||
public directivePropList: any;
|
||||
public childCategories: any;
|
||||
public tags: string[] = ['categories'];
|
||||
/**
|
||||
|
@ -59,6 +60,7 @@ export class MultiLevelLabelDirective extends ComplexBase<MultiLevelLabelDirecti
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class RowDirective extends ComplexBase<RowDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -37,6 +38,7 @@ export class RowDirective extends ComplexBase<RowDirective> {
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class SegmentDirective extends ComplexBase<SegmentDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -48,6 +49,7 @@ export class SegmentDirective extends ComplexBase<SegmentDirective> {
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,6 +20,7 @@ let outputs: string[] = [];
|
|||
}
|
||||
})
|
||||
export class SelectedDataIndexDirective extends ComplexBase<SelectedDataIndexDirective> {
|
||||
public directivePropList: any;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -39,6 +40,7 @@ export class SelectedDataIndexDirective extends ComplexBase<SelectedDataIndexDir
|
|||
super();
|
||||
setValue('currentInstance', this, this.viewContainerRef);
|
||||
this.registerEvents(outputs);
|
||||
this.directivePropList = input;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче