@acorex/components 3.0.47 → 3.0.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/acorex-components.metadata.json +1 -1
  2. package/bundles/acorex-components.umd.js +145 -61
  3. package/bundles/acorex-components.umd.js.map +1 -1
  4. package/bundles/acorex-components.umd.min.js +1 -1
  5. package/bundles/acorex-components.umd.min.js.map +1 -1
  6. package/esm2015/lib/calendar/calendar-box/calendar-box.component.js +4 -4
  7. package/esm2015/lib/property-editor/editors/color-editor/color.editor.js +2 -2
  8. package/esm2015/lib/property-editor/editors/column-editor/column.editor.js +2 -2
  9. package/esm2015/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.js +2 -2
  10. package/esm2015/lib/property-editor/editors/date-editor/date.editor.js +2 -2
  11. package/esm2015/lib/property-editor/editors/number-editor/number.editor.js +2 -2
  12. package/esm2015/lib/property-editor/editors/range-editor/range.editor.js +2 -2
  13. package/esm2015/lib/property-editor/editors/selectbox-editor/selectbox.editor.js +22 -12
  14. package/esm2015/lib/property-editor/editors/switch-editor/number.editor.js +2 -2
  15. package/esm2015/lib/property-editor/editors/text-editor/text.editor.js +2 -2
  16. package/esm2015/lib/property-editor/editors/time-editor/time.editor.js +2 -2
  17. package/esm2015/lib/property-editor/property-editor-renderer.directive.js +83 -37
  18. package/esm2015/lib/property-editor/property-editor.class.js +18 -4
  19. package/esm5/lib/calendar/calendar-box/calendar-box.component.js +4 -4
  20. package/esm5/lib/property-editor/editors/color-editor/color.editor.js +2 -2
  21. package/esm5/lib/property-editor/editors/column-editor/column.editor.js +2 -2
  22. package/esm5/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.js +2 -2
  23. package/esm5/lib/property-editor/editors/date-editor/date.editor.js +2 -2
  24. package/esm5/lib/property-editor/editors/number-editor/number.editor.js +2 -2
  25. package/esm5/lib/property-editor/editors/range-editor/range.editor.js +2 -2
  26. package/esm5/lib/property-editor/editors/selectbox-editor/selectbox.editor.js +26 -12
  27. package/esm5/lib/property-editor/editors/switch-editor/number.editor.js +2 -2
  28. package/esm5/lib/property-editor/editors/text-editor/text.editor.js +2 -2
  29. package/esm5/lib/property-editor/editors/time-editor/time.editor.js +2 -2
  30. package/esm5/lib/property-editor/property-editor-renderer.directive.js +89 -39
  31. package/esm5/lib/property-editor/property-editor.class.js +24 -4
  32. package/fesm2015/acorex-components.js +130 -60
  33. package/fesm2015/acorex-components.js.map +1 -1
  34. package/fesm5/acorex-components.js +146 -62
  35. package/fesm5/acorex-components.js.map +1 -1
  36. package/lib/property-editor/editors/selectbox-editor/selectbox.editor.d.ts +7 -4
  37. package/lib/property-editor/property-editor-renderer.directive.d.ts +5 -3
  38. package/lib/property-editor/property-editor.class.d.ts +4 -2
  39. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { __decorate, __metadata, __extends, __spread, __param, __assign, __awaiter, __generator, __asyncValues } from 'tslib';
2
2
  import { Input, Component, EventEmitter, ContentChildren, QueryList, Output, ViewChild, ContentChild, ElementRef, ɵɵdefineInjectable, ɵɵinject, Injectable, ComponentFactoryResolver, Injector, NgZone, Inject, RendererFactory2, INJECTOR, TemplateRef, ApplicationRef, ChangeDetectorRef, HostListener, ViewEncapsulation, NgModule, ChangeDetectionStrategy, Attribute, Directive, ViewContainerRef, Renderer2, ViewChildren } from '@angular/core';
3
- import { AXTranslator, AXHtmlUtil, AXRenderService, AXConfig, AXDateTime, AXDateTimeRange, AXCoreModule, AXMenuItem, AXTranslatorModule, AXObjectUtil, AXScrollModule, getPropByPath, AXColorUtil } from '@acorex/core';
3
+ import { AXTranslator, AXHtmlUtil, AXRenderService, AXConfig, AXDateTime, AXDateTimeRange, AXCoreModule, AXMenuItem, AXTranslatorModule, AXObjectUtil, AXScrollModule, setPropByPath, AXEventService, AXColorUtil } from '@acorex/core';
4
4
  import { OverlayContainer, ScrollStrategyOptions, OverlayPositionBuilder, OverlayKeyboardDispatcher, Overlay, OverlayModule } from '@angular/cdk/overlay';
5
5
  import { TemplatePortal, ComponentPortal, CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';
6
6
  import { merge, Subject, Observable } from 'rxjs';
@@ -1171,7 +1171,7 @@ var AXCalendarBoxComponent = /** @class */ (function () {
1171
1171
  configurable: true
1172
1172
  });
1173
1173
  AXCalendarBoxComponent.prototype.findDay = function (date) {
1174
- if (this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; })) {
1174
+ if (this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; })) {
1175
1175
  return true;
1176
1176
  }
1177
1177
  else {
@@ -1179,8 +1179,8 @@ var AXCalendarBoxComponent = /** @class */ (function () {
1179
1179
  }
1180
1180
  };
1181
1181
  AXCalendarBoxComponent.prototype.getStyle = function (date) {
1182
- if (this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; })) {
1183
- return this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; }).style;
1182
+ if (this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; })) {
1183
+ return this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; }).style;
1184
1184
  }
1185
1185
  else {
1186
1186
  return '';
@@ -14768,12 +14768,25 @@ var AXAccordionModule = /** @class */ (function () {
14768
14768
 
14769
14769
  var AXProperyEditorComponent = /** @class */ (function () {
14770
14770
  function AXProperyEditorComponent(cdr) {
14771
+ var _this = this;
14771
14772
  this.cdr = cdr;
14772
14773
  this.readonly = false;
14773
- this.initiated = false;
14774
+ this._initiated = false;
14775
+ this._valueBound = false;
14774
14776
  this.validatableComponentRegistered = new Subject();
14775
14777
  this.valueChange = new EventEmitter();
14778
+ this.onRenderCompleted = new EventEmitter();
14779
+ this.onRenderCompleted.subscribe(function () {
14780
+ _this._initiated = true;
14781
+ });
14776
14782
  }
14783
+ Object.defineProperty(AXProperyEditorComponent.prototype, "initiated", {
14784
+ get: function () {
14785
+ return this._initiated && this._valueBound;
14786
+ },
14787
+ enumerable: true,
14788
+ configurable: true
14789
+ });
14777
14790
  AXProperyEditorComponent.prototype.registerForValidationForm = function (component) {
14778
14791
  this.validatableComponentRegistered.next(component);
14779
14792
  };
@@ -14782,10 +14795,15 @@ var AXProperyEditorComponent = /** @class */ (function () {
14782
14795
  return this._value;
14783
14796
  },
14784
14797
  set: function (v) {
14798
+ var _this = this;
14785
14799
  if (v !== this._value) {
14786
14800
  this._value = v;
14787
14801
  this.valueChange.emit(v);
14788
14802
  this.cdr.detectChanges();
14803
+ //TODO: find better solution
14804
+ setTimeout(function () {
14805
+ _this._valueBound = true;
14806
+ }, 100);
14789
14807
  }
14790
14808
  },
14791
14809
  enumerable: true,
@@ -14794,12 +14812,14 @@ var AXProperyEditorComponent = /** @class */ (function () {
14794
14812
  AXProperyEditorComponent.prototype.handleValueChange = function (v) {
14795
14813
  this.value = v;
14796
14814
  };
14797
- AXProperyEditorComponent.prototype.initiat = function () {
14798
- };
14799
14815
  __decorate([
14800
14816
  Output(),
14801
14817
  __metadata("design:type", EventEmitter)
14802
14818
  ], AXProperyEditorComponent.prototype, "valueChange", void 0);
14819
+ __decorate([
14820
+ Output(),
14821
+ __metadata("design:type", EventEmitter)
14822
+ ], AXProperyEditorComponent.prototype, "onRenderCompleted", void 0);
14803
14823
  __decorate([
14804
14824
  Input(),
14805
14825
  __metadata("design:type", Object),
@@ -14862,11 +14882,12 @@ function propertyEditor(options) {
14862
14882
  }
14863
14883
 
14864
14884
  var AXPropertyEditorRendererDirective = /** @class */ (function () {
14865
- function AXPropertyEditorRendererDirective(target, componentFactoryResolver, renderService) {
14885
+ function AXPropertyEditorRendererDirective(target, componentFactoryResolver, renderService, eventService) {
14866
14886
  this.target = target;
14867
14887
  this.componentFactoryResolver = componentFactoryResolver;
14868
14888
  this.renderService = renderService;
14869
- this.readonly = false;
14889
+ this.eventService = eventService;
14890
+ this._context = {};
14870
14891
  this.onValueChange = new EventEmitter();
14871
14892
  }
14872
14893
  Object.defineProperty(AXPropertyEditorRendererDirective.prototype, "context", {
@@ -14875,9 +14896,6 @@ var AXPropertyEditorRendererDirective = /** @class */ (function () {
14875
14896
  },
14876
14897
  set: function (v) {
14877
14898
  this._context = v;
14878
- if (v && this.instance) {
14879
- this.assignProps();
14880
- }
14881
14899
  },
14882
14900
  enumerable: true,
14883
14901
  configurable: true
@@ -14896,60 +14914,110 @@ var AXPropertyEditorRendererDirective = /** @class */ (function () {
14896
14914
  var cmpRef = _this.target.createComponent(factory);
14897
14915
  _this.instance = cmpRef.instance;
14898
14916
  _this.subscription = _this.instance.valueChange.subscribe(function (value) {
14899
- if (_this.instance.initiated === true) {
14900
- _this.property.value = value;
14901
- _this.onValueChange.emit(_this.property);
14917
+ var _a, _b;
14918
+ _this.property.value = value;
14919
+ _this.onValueChange.emit(_this.property);
14920
+ if ((_b = (_a = _this.property) === null || _a === void 0 ? void 0 : _a.property) === null || _b === void 0 ? void 0 : _b.name) {
14921
+ setTimeout(function () {
14922
+ _this.eventService.broadcast("props-" + _this.groupId + "-" + _this.property.property.name, _this.property);
14923
+ }, 0);
14902
14924
  }
14903
14925
  });
14904
- //
14926
+ _this.watchChanges();
14927
+ _this.assignProps();
14928
+ _this.instance.value = _this.property.value;
14929
+ // this.instance.onRenderCompleted.subscribe(() => {
14930
+ // });
14905
14931
  if (_this.validationForm) {
14906
14932
  _this.instance.validatableComponentRegistered.subscribe(function (v) {
14907
14933
  _this.validationForm.addWidget(v);
14908
14934
  });
14909
14935
  }
14910
- //
14911
- //setTimeout(() => {
14912
- _this.instance.readonly = _this.readonly;
14913
- _this.assignProps();
14914
- _this.instance.value = _this.property.value;
14915
- _this.instance.initiat();
14916
- cmpRef.changeDetectorRef.markForCheck();
14917
- //});
14918
14936
  }
14919
14937
  });
14920
14938
  };
14921
- AXPropertyEditorRendererDirective.prototype.assignProps = function () {
14939
+ AXPropertyEditorRendererDirective.prototype.watchChanges = function () {
14922
14940
  var _this = this;
14941
+ var _a, _b;
14942
+ var varsRegx = /((\$\{[a-zA-Z_0-9]+\})+)/gm;
14943
+ var varNameRegx = /[a-zA-Z_0-9]+/gm;
14923
14944
  var options = this.property.property.editorOptions;
14924
14945
  if (!options) {
14925
14946
  return;
14926
14947
  }
14927
14948
  var _loop_1 = function (p) {
14949
+ if (options.hasOwnProperty(p)) {
14950
+ var opt_1 = options[p];
14951
+ var vars_1 = typeof opt_1 === 'string' ? (_a = opt_1) === null || _a === void 0 ? void 0 : _a.match(varsRegx) : [];
14952
+ // bind the props
14953
+ if ((_b = vars_1) === null || _b === void 0 ? void 0 : _b.length) {
14954
+ vars_1.forEach(function (v) {
14955
+ var _a;
14956
+ var path = ((_a = v.match(varNameRegx)) === null || _a === void 0 ? void 0 : _a.length) ? v.match(varNameRegx)[0] : null;
14957
+ if (path) {
14958
+ _this.eventService.on("props-" + _this.groupId + "-" + path, function (e) {
14959
+ var execCode = opt_1.slice();
14960
+ var params = {};
14961
+ vars_1.forEach(function (vv) {
14962
+ var _a;
14963
+ var p2 = ((_a = vv.match(varNameRegx)) === null || _a === void 0 ? void 0 : _a.length) ? vv.match(varNameRegx)[0] : null;
14964
+ params[p2] = AXObjectUtil.deepCopy(_this.context[p2]) || null;
14965
+ execCode = execCode.replace(vv, "__params__." + p2);
14966
+ });
14967
+ var func = new Function('__params__', "try { return " + execCode + "} catch(e){ console.log(e); return null; }");
14968
+ var val = func(params);
14969
+ var keys = p.split('.');
14970
+ var prop = Object.assign({}, _this.instance[keys[0]]);
14971
+ if (keys.length > 1) {
14972
+ _this.instance[keys[0]] = setPropByPath(prop, p, val);
14973
+ }
14974
+ else {
14975
+ setPropByPath(_this.instance, p, val);
14976
+ }
14977
+ });
14978
+ }
14979
+ });
14980
+ }
14981
+ // else {
14982
+ // this.assignProps();
14983
+ // }
14984
+ }
14985
+ };
14986
+ for (var p in options) {
14987
+ _loop_1(p);
14988
+ }
14989
+ };
14990
+ AXPropertyEditorRendererDirective.prototype.assignProps = function () {
14991
+ var _this = this;
14992
+ var _a, _b;
14993
+ var options = this.property.property.editorOptions;
14994
+ if (!options) {
14995
+ return;
14996
+ }
14997
+ var varsRegx = /((\$\{[a-zA-Z_0-9]+\})+)/gm;
14998
+ var _loop_2 = function (p) {
14928
14999
  if (options.hasOwnProperty(p)) {
14929
15000
  var opt = options[p];
14930
- if (typeof opt === 'string' && opt.startsWith('$$')) {
14931
- var key = opt.substring(2);
14932
- var val = getPropByPath(this_1.context, key);
14933
- if (val) {
14934
- this_1.instance[p] = typeof val === 'function' ? val({ data: this_1.context, host: this_1.host }, this_1.property) : val;
14935
- }
15001
+ var vars = typeof opt === 'string' ? (_a = opt) === null || _a === void 0 ? void 0 : _a.match(varsRegx) : [];
15002
+ if ((_b = vars) === null || _b === void 0 ? void 0 : _b.length) {
15003
+ return "continue";
14936
15004
  }
14937
15005
  else {
14938
- var res = typeof opt === 'function' ? opt({ data: this_1.context, host: this_1.host }, this_1.property) : opt;
14939
- if (res instanceof Promise) {
14940
- res.then(function (v) {
14941
- _this.instance[p] = v;
15006
+ var val_1 = typeof opt === 'function' ? opt({ data: this_1.context, host: this_1.host }, this_1.property) : opt;
15007
+ if (val_1 instanceof Promise) {
15008
+ val_1.then(function (v) {
15009
+ setPropByPath(_this.instance, p, val_1);
14942
15010
  });
14943
15011
  }
14944
15012
  else {
14945
- this_1.instance[p] = res;
15013
+ setPropByPath(this_1.instance, p, val_1);
14946
15014
  }
14947
15015
  }
14948
15016
  }
14949
15017
  };
14950
15018
  var this_1 = this;
14951
15019
  for (var p in options) {
14952
- _loop_1(p);
15020
+ _loop_2(p);
14953
15021
  }
14954
15022
  };
14955
15023
  AXPropertyEditorRendererDirective.prototype.ngOnDestroy = function () {
@@ -14960,16 +15028,13 @@ var AXPropertyEditorRendererDirective = /** @class */ (function () {
14960
15028
  AXPropertyEditorRendererDirective.ctorParameters = function () { return [
14961
15029
  { type: ViewContainerRef },
14962
15030
  { type: ComponentFactoryResolver },
14963
- { type: AXRenderService }
15031
+ { type: AXRenderService },
15032
+ { type: AXEventService }
14964
15033
  ]; };
14965
15034
  __decorate([
14966
15035
  Input(),
14967
15036
  __metadata("design:type", Object)
14968
15037
  ], AXPropertyEditorRendererDirective.prototype, "property", void 0);
14969
- __decorate([
14970
- Input(),
14971
- __metadata("design:type", Boolean)
14972
- ], AXPropertyEditorRendererDirective.prototype, "readonly", void 0);
14973
15038
  __decorate([
14974
15039
  Input(),
14975
15040
  __metadata("design:type", AXValidationFormComponent)
@@ -14983,6 +15048,10 @@ var AXPropertyEditorRendererDirective = /** @class */ (function () {
14983
15048
  Input(),
14984
15049
  __metadata("design:type", Object)
14985
15050
  ], AXPropertyEditorRendererDirective.prototype, "host", void 0);
15051
+ __decorate([
15052
+ Input(),
15053
+ __metadata("design:type", Object)
15054
+ ], AXPropertyEditorRendererDirective.prototype, "groupId", void 0);
14986
15055
  __decorate([
14987
15056
  Output(),
14988
15057
  __metadata("design:type", EventEmitter)
@@ -14993,7 +15062,8 @@ var AXPropertyEditorRendererDirective = /** @class */ (function () {
14993
15062
  }),
14994
15063
  __metadata("design:paramtypes", [ViewContainerRef,
14995
15064
  ComponentFactoryResolver,
14996
- AXRenderService])
15065
+ AXRenderService,
15066
+ AXEventService])
14997
15067
  ], AXPropertyEditorRendererDirective);
14998
15068
  return AXPropertyEditorRendererDirective;
14999
15069
  }());
@@ -15011,7 +15081,7 @@ var AXTextPropertyEditorComponent = /** @class */ (function (_super) {
15011
15081
  };
15012
15082
  AXTextPropertyEditorComponent.prototype.ngAfterViewInit = function () {
15013
15083
  this.registerForValidationForm(this.textBox);
15014
- this.initiated = true;
15084
+ this.onRenderCompleted.emit();
15015
15085
  };
15016
15086
  AXTextPropertyEditorComponent.ctorParameters = function () { return [
15017
15087
  { type: ChangeDetectorRef }
@@ -15061,8 +15131,8 @@ var AXNumberBoxPropertyEditorComponent = /** @class */ (function (_super) {
15061
15131
  _super.prototype.handleValueChange.call(this, e.value);
15062
15132
  };
15063
15133
  AXNumberBoxPropertyEditorComponent.prototype.ngAfterViewInit = function () {
15064
- this.initiated = true;
15065
15134
  this.registerForValidationForm(this.textBox);
15135
+ this.onRenderCompleted.emit();
15066
15136
  };
15067
15137
  AXNumberBoxPropertyEditorComponent.ctorParameters = function () { return [
15068
15138
  { type: ChangeDetectorRef }
@@ -15107,16 +15177,18 @@ var AXSelectBoxPropertyEditorComponent = /** @class */ (function (_super) {
15107
15177
  _this.selectionDataMode = 'value';
15108
15178
  _this.allowSearch = true;
15109
15179
  _this.allowNull = false;
15180
+ _this.disabled = false;
15110
15181
  _this.items = [];
15111
15182
  _this.remoteOperation = false;
15112
15183
  _this.provideData = function (e) {
15113
15184
  return new Promise(function (resolve) {
15114
15185
  var func = function () {
15115
15186
  if (Array.isArray(_this.items)) {
15116
- resolve(_this.items);
15187
+ resolve(_this.items.slice());
15117
15188
  }
15118
15189
  else if (typeof _this.items === 'function') {
15119
- resolve(_this.items(e));
15190
+ var a = Object.assign(e, { sender: _this });
15191
+ resolve(_this.items(a));
15120
15192
  }
15121
15193
  else {
15122
15194
  resolve([]);
@@ -15132,26 +15204,38 @@ var AXSelectBoxPropertyEditorComponent = /** @class */ (function (_super) {
15132
15204
  };
15133
15205
  return _this;
15134
15206
  }
15207
+ Object.defineProperty(AXSelectBoxPropertyEditorComponent.prototype, "filter", {
15208
+ get: function () {
15209
+ return this._filter;
15210
+ },
15211
+ set: function (v) {
15212
+ var _a;
15213
+ this._filter = v;
15214
+ if (this.value && this.initiated) {
15215
+ this.value = null;
15216
+ (_a = this.selectBox) === null || _a === void 0 ? void 0 : _a.refresh();
15217
+ }
15218
+ },
15219
+ enumerable: true,
15220
+ configurable: true
15221
+ });
15135
15222
  AXSelectBoxPropertyEditorComponent.prototype.handleValueChange = function (e) {
15136
- _super.prototype.handleValueChange.call(this, e.value);
15223
+ _super.prototype.handleValueChange.call(this, e.selectedValues);
15137
15224
  };
15138
15225
  AXSelectBoxPropertyEditorComponent.prototype.ngAfterViewInit = function () {
15139
- this.selectBox.refresh();
15140
15226
  this.registerForValidationForm(this.selectBox);
15141
- };
15142
- AXSelectBoxPropertyEditorComponent.prototype.initiat = function () {
15143
- this.initiated = true;
15227
+ this.onRenderCompleted.emit();
15144
15228
  };
15145
15229
  AXSelectBoxPropertyEditorComponent.ctorParameters = function () { return [
15146
15230
  { type: ChangeDetectorRef }
15147
15231
  ]; };
15148
15232
  __decorate([
15149
- ViewChild(AXSelectBox2Component, { static: true }),
15150
- __metadata("design:type", AXSelectBox2Component)
15233
+ ViewChild(AXSelectBoxComponent, { static: true }),
15234
+ __metadata("design:type", AXSelectBoxComponent)
15151
15235
  ], AXSelectBoxPropertyEditorComponent.prototype, "selectBox", void 0);
15152
15236
  AXSelectBoxPropertyEditorComponent = __decorate([
15153
15237
  Component({
15154
- template: "<ax-select-box2 [selectionMode]=\"selectionMode\"\r\n [selectionDataMode]=\"selectionDataMode\" \r\n [textField]=\"textField\" \r\n [valueField]=\"valueField\" \r\n [value]=\"value\" \r\n [remoteOperation]=\"remoteOperation\"\r\n [allowSearch]=\"allowSearch\" \r\n [allowNull]=\"allowNull\"\r\n (onValueChanged)=\"handleValueChange($event)\">\r\n <ax-data-source [provideData]=\"provideData\">\r\n </ax-data-source>\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-select-box2>"
15238
+ template: "<ax-select-box [mode]=\"selectionMode\"\r\n [textField]=\"textField\" \r\n [valueField]=\"valueField\" \r\n [selectedValues]=\"value\" \r\n [remoteOperation]=\"remoteOperation\"\r\n [allowSearch]=\"allowSearch\" \r\n [allowNull]=\"allowNull\"\r\n [readonly]=\"readonly\"\r\n [disabled]=\"disabled\"\r\n (selectionChanged)=\"handleValueChange($event)\">\r\n <ax-data-source [provideData]=\"provideData\">\r\n </ax-data-source>\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-select-box>"
15155
15239
  }),
15156
15240
  __metadata("design:paramtypes", [ChangeDetectorRef])
15157
15241
  ], AXSelectBoxPropertyEditorComponent);
@@ -15190,7 +15274,7 @@ var AXRangePropertyEditorComponent = /** @class */ (function (_super) {
15190
15274
  this.cdr.detectChanges();
15191
15275
  };
15192
15276
  AXRangePropertyEditorComponent.prototype.ngAfterViewInit = function () {
15193
- this.initiated = true;
15277
+ this.onRenderCompleted.emit();
15194
15278
  };
15195
15279
  // getRanges() {
15196
15280
  // return this.ranges.sort((a, b) => a.minValue - b.minValue);
@@ -15896,7 +15980,7 @@ var AXColorPropertyEditorComponent = /** @class */ (function (_super) {
15896
15980
  }
15897
15981
  AXColorPropertyEditorComponent.prototype.ngAfterViewInit = function () {
15898
15982
  this.registerForValidationForm(this.textBox);
15899
- this.initiated = true;
15983
+ this.onRenderCompleted.emit();
15900
15984
  };
15901
15985
  AXColorPropertyEditorComponent.ctorParameters = function () { return [
15902
15986
  { type: ChangeDetectorRef }
@@ -15954,7 +16038,7 @@ var ColumnPropertyEditorComponent = /** @class */ (function (_super) {
15954
16038
  this.columns = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
15955
16039
  };
15956
16040
  ColumnPropertyEditorComponent.prototype.ngAfterViewInit = function () {
15957
- this.initiated = true;
16041
+ this.onRenderCompleted.emit();
15958
16042
  };
15959
16043
  ColumnPropertyEditorComponent.prototype.drop = function (event) {
15960
16044
  moveItemInArray(this.columns, event.previousIndex, event.currentIndex);
@@ -16114,8 +16198,8 @@ var AXConditionalColorPropertyEditorComponent = /** @class */ (function (_super)
16114
16198
  ].filter(function (c) { return c.dataTypes == null || c.dataTypes.includes(_this.dataType); });
16115
16199
  };
16116
16200
  AXConditionalColorPropertyEditorComponent.prototype.ngAfterViewInit = function () {
16117
- this.initiated = true;
16118
16201
  this.cdr.detectChanges();
16202
+ this.onRenderCompleted.emit();
16119
16203
  };
16120
16204
  AXConditionalColorPropertyEditorComponent.prototype.handleEditClick = function (item) {
16121
16205
  var _this = this;
@@ -16314,7 +16398,7 @@ var AXSwitchPropertyEditorComponent = /** @class */ (function (_super) {
16314
16398
  _super.prototype.handleValueChange.call(this, e.value);
16315
16399
  };
16316
16400
  AXSwitchPropertyEditorComponent.prototype.ngAfterViewInit = function () {
16317
- this.initiated = true;
16401
+ this.onRenderCompleted.emit();
16318
16402
  };
16319
16403
  AXSwitchPropertyEditorComponent.ctorParameters = function () { return [
16320
16404
  { type: ChangeDetectorRef }
@@ -16363,8 +16447,8 @@ var AXDatePropertyEditorComponent = /** @class */ (function (_super) {
16363
16447
  _super.prototype.handleValueChange.call(this, e.value);
16364
16448
  };
16365
16449
  AXDatePropertyEditorComponent.prototype.ngAfterViewInit = function () {
16366
- this.initiated = true;
16367
16450
  this.registerForValidationForm(this.date);
16451
+ this.onRenderCompleted.emit();
16368
16452
  };
16369
16453
  AXDatePropertyEditorComponent.ctorParameters = function () { return [
16370
16454
  { type: ChangeDetectorRef }
@@ -16412,8 +16496,8 @@ var AXTimePropertyEditorComponent = /** @class */ (function (_super) {
16412
16496
  _super.prototype.handleValueChange.call(this, (_a = e.value) === null || _a === void 0 ? void 0 : _a.time);
16413
16497
  };
16414
16498
  AXTimePropertyEditorComponent.prototype.ngAfterViewInit = function () {
16415
- this.initiated = true;
16416
16499
  this.registerForValidationForm(this.time);
16500
+ this.onRenderCompleted.emit();
16417
16501
  };
16418
16502
  AXTimePropertyEditorComponent.ctorParameters = function () { return [
16419
16503
  { type: ChangeDetectorRef }