@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.
- package/acorex-components.metadata.json +1 -1
- package/bundles/acorex-components.umd.js +145 -61
- package/bundles/acorex-components.umd.js.map +1 -1
- package/bundles/acorex-components.umd.min.js +1 -1
- package/bundles/acorex-components.umd.min.js.map +1 -1
- package/esm2015/lib/calendar/calendar-box/calendar-box.component.js +4 -4
- package/esm2015/lib/property-editor/editors/color-editor/color.editor.js +2 -2
- package/esm2015/lib/property-editor/editors/column-editor/column.editor.js +2 -2
- package/esm2015/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.js +2 -2
- package/esm2015/lib/property-editor/editors/date-editor/date.editor.js +2 -2
- package/esm2015/lib/property-editor/editors/number-editor/number.editor.js +2 -2
- package/esm2015/lib/property-editor/editors/range-editor/range.editor.js +2 -2
- package/esm2015/lib/property-editor/editors/selectbox-editor/selectbox.editor.js +22 -12
- package/esm2015/lib/property-editor/editors/switch-editor/number.editor.js +2 -2
- package/esm2015/lib/property-editor/editors/text-editor/text.editor.js +2 -2
- package/esm2015/lib/property-editor/editors/time-editor/time.editor.js +2 -2
- package/esm2015/lib/property-editor/property-editor-renderer.directive.js +83 -37
- package/esm2015/lib/property-editor/property-editor.class.js +18 -4
- package/esm5/lib/calendar/calendar-box/calendar-box.component.js +4 -4
- package/esm5/lib/property-editor/editors/color-editor/color.editor.js +2 -2
- package/esm5/lib/property-editor/editors/column-editor/column.editor.js +2 -2
- package/esm5/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.js +2 -2
- package/esm5/lib/property-editor/editors/date-editor/date.editor.js +2 -2
- package/esm5/lib/property-editor/editors/number-editor/number.editor.js +2 -2
- package/esm5/lib/property-editor/editors/range-editor/range.editor.js +2 -2
- package/esm5/lib/property-editor/editors/selectbox-editor/selectbox.editor.js +26 -12
- package/esm5/lib/property-editor/editors/switch-editor/number.editor.js +2 -2
- package/esm5/lib/property-editor/editors/text-editor/text.editor.js +2 -2
- package/esm5/lib/property-editor/editors/time-editor/time.editor.js +2 -2
- package/esm5/lib/property-editor/property-editor-renderer.directive.js +89 -39
- package/esm5/lib/property-editor/property-editor.class.js +24 -4
- package/fesm2015/acorex-components.js +130 -60
- package/fesm2015/acorex-components.js.map +1 -1
- package/fesm5/acorex-components.js +146 -62
- package/fesm5/acorex-components.js.map +1 -1
- package/lib/property-editor/editors/selectbox-editor/selectbox.editor.d.ts +7 -4
- package/lib/property-editor/property-editor-renderer.directive.d.ts +5 -3
- package/lib/property-editor/property-editor.class.d.ts +4 -2
- package/package.json +1 -1
|
@@ -1377,7 +1377,7 @@
|
|
|
1377
1377
|
configurable: true
|
|
1378
1378
|
});
|
|
1379
1379
|
AXCalendarBoxComponent.prototype.findDay = function (date) {
|
|
1380
|
-
if (this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; })) {
|
|
1380
|
+
if (this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; })) {
|
|
1381
1381
|
return true;
|
|
1382
1382
|
}
|
|
1383
1383
|
else {
|
|
@@ -1385,8 +1385,8 @@
|
|
|
1385
1385
|
}
|
|
1386
1386
|
};
|
|
1387
1387
|
AXCalendarBoxComponent.prototype.getStyle = function (date) {
|
|
1388
|
-
if (this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; })) {
|
|
1389
|
-
return this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; }).style;
|
|
1388
|
+
if (this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; })) {
|
|
1389
|
+
return this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; }).style;
|
|
1390
1390
|
}
|
|
1391
1391
|
else {
|
|
1392
1392
|
return '';
|
|
@@ -14974,12 +14974,25 @@
|
|
|
14974
14974
|
|
|
14975
14975
|
var AXProperyEditorComponent = /** @class */ (function () {
|
|
14976
14976
|
function AXProperyEditorComponent(cdr) {
|
|
14977
|
+
var _this = this;
|
|
14977
14978
|
this.cdr = cdr;
|
|
14978
14979
|
this.readonly = false;
|
|
14979
|
-
this.
|
|
14980
|
+
this._initiated = false;
|
|
14981
|
+
this._valueBound = false;
|
|
14980
14982
|
this.validatableComponentRegistered = new rxjs.Subject();
|
|
14981
14983
|
this.valueChange = new core.EventEmitter();
|
|
14984
|
+
this.onRenderCompleted = new core.EventEmitter();
|
|
14985
|
+
this.onRenderCompleted.subscribe(function () {
|
|
14986
|
+
_this._initiated = true;
|
|
14987
|
+
});
|
|
14982
14988
|
}
|
|
14989
|
+
Object.defineProperty(AXProperyEditorComponent.prototype, "initiated", {
|
|
14990
|
+
get: function () {
|
|
14991
|
+
return this._initiated && this._valueBound;
|
|
14992
|
+
},
|
|
14993
|
+
enumerable: true,
|
|
14994
|
+
configurable: true
|
|
14995
|
+
});
|
|
14983
14996
|
AXProperyEditorComponent.prototype.registerForValidationForm = function (component) {
|
|
14984
14997
|
this.validatableComponentRegistered.next(component);
|
|
14985
14998
|
};
|
|
@@ -14988,10 +15001,15 @@
|
|
|
14988
15001
|
return this._value;
|
|
14989
15002
|
},
|
|
14990
15003
|
set: function (v) {
|
|
15004
|
+
var _this = this;
|
|
14991
15005
|
if (v !== this._value) {
|
|
14992
15006
|
this._value = v;
|
|
14993
15007
|
this.valueChange.emit(v);
|
|
14994
15008
|
this.cdr.detectChanges();
|
|
15009
|
+
//TODO: find better solution
|
|
15010
|
+
setTimeout(function () {
|
|
15011
|
+
_this._valueBound = true;
|
|
15012
|
+
}, 100);
|
|
14995
15013
|
}
|
|
14996
15014
|
},
|
|
14997
15015
|
enumerable: true,
|
|
@@ -15000,12 +15018,14 @@
|
|
|
15000
15018
|
AXProperyEditorComponent.prototype.handleValueChange = function (v) {
|
|
15001
15019
|
this.value = v;
|
|
15002
15020
|
};
|
|
15003
|
-
AXProperyEditorComponent.prototype.initiat = function () {
|
|
15004
|
-
};
|
|
15005
15021
|
__decorate([
|
|
15006
15022
|
core.Output(),
|
|
15007
15023
|
__metadata("design:type", core.EventEmitter)
|
|
15008
15024
|
], AXProperyEditorComponent.prototype, "valueChange", void 0);
|
|
15025
|
+
__decorate([
|
|
15026
|
+
core.Output(),
|
|
15027
|
+
__metadata("design:type", core.EventEmitter)
|
|
15028
|
+
], AXProperyEditorComponent.prototype, "onRenderCompleted", void 0);
|
|
15009
15029
|
__decorate([
|
|
15010
15030
|
core.Input(),
|
|
15011
15031
|
__metadata("design:type", Object),
|
|
@@ -15068,11 +15088,12 @@
|
|
|
15068
15088
|
}
|
|
15069
15089
|
|
|
15070
15090
|
var AXPropertyEditorRendererDirective = /** @class */ (function () {
|
|
15071
|
-
function AXPropertyEditorRendererDirective(target, componentFactoryResolver, renderService) {
|
|
15091
|
+
function AXPropertyEditorRendererDirective(target, componentFactoryResolver, renderService, eventService) {
|
|
15072
15092
|
this.target = target;
|
|
15073
15093
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
15074
15094
|
this.renderService = renderService;
|
|
15075
|
-
this.
|
|
15095
|
+
this.eventService = eventService;
|
|
15096
|
+
this._context = {};
|
|
15076
15097
|
this.onValueChange = new core.EventEmitter();
|
|
15077
15098
|
}
|
|
15078
15099
|
Object.defineProperty(AXPropertyEditorRendererDirective.prototype, "context", {
|
|
@@ -15081,9 +15102,6 @@
|
|
|
15081
15102
|
},
|
|
15082
15103
|
set: function (v) {
|
|
15083
15104
|
this._context = v;
|
|
15084
|
-
if (v && this.instance) {
|
|
15085
|
-
this.assignProps();
|
|
15086
|
-
}
|
|
15087
15105
|
},
|
|
15088
15106
|
enumerable: true,
|
|
15089
15107
|
configurable: true
|
|
@@ -15102,60 +15120,110 @@
|
|
|
15102
15120
|
var cmpRef = _this.target.createComponent(factory);
|
|
15103
15121
|
_this.instance = cmpRef.instance;
|
|
15104
15122
|
_this.subscription = _this.instance.valueChange.subscribe(function (value) {
|
|
15105
|
-
|
|
15106
|
-
|
|
15107
|
-
|
|
15123
|
+
var _a, _b;
|
|
15124
|
+
_this.property.value = value;
|
|
15125
|
+
_this.onValueChange.emit(_this.property);
|
|
15126
|
+
if ((_b = (_a = _this.property) === null || _a === void 0 ? void 0 : _a.property) === null || _b === void 0 ? void 0 : _b.name) {
|
|
15127
|
+
setTimeout(function () {
|
|
15128
|
+
_this.eventService.broadcast("props-" + _this.groupId + "-" + _this.property.property.name, _this.property);
|
|
15129
|
+
}, 0);
|
|
15108
15130
|
}
|
|
15109
15131
|
});
|
|
15110
|
-
|
|
15132
|
+
_this.watchChanges();
|
|
15133
|
+
_this.assignProps();
|
|
15134
|
+
_this.instance.value = _this.property.value;
|
|
15135
|
+
// this.instance.onRenderCompleted.subscribe(() => {
|
|
15136
|
+
// });
|
|
15111
15137
|
if (_this.validationForm) {
|
|
15112
15138
|
_this.instance.validatableComponentRegistered.subscribe(function (v) {
|
|
15113
15139
|
_this.validationForm.addWidget(v);
|
|
15114
15140
|
});
|
|
15115
15141
|
}
|
|
15116
|
-
//
|
|
15117
|
-
//setTimeout(() => {
|
|
15118
|
-
_this.instance.readonly = _this.readonly;
|
|
15119
|
-
_this.assignProps();
|
|
15120
|
-
_this.instance.value = _this.property.value;
|
|
15121
|
-
_this.instance.initiat();
|
|
15122
|
-
cmpRef.changeDetectorRef.markForCheck();
|
|
15123
|
-
//});
|
|
15124
15142
|
}
|
|
15125
15143
|
});
|
|
15126
15144
|
};
|
|
15127
|
-
AXPropertyEditorRendererDirective.prototype.
|
|
15145
|
+
AXPropertyEditorRendererDirective.prototype.watchChanges = function () {
|
|
15128
15146
|
var _this = this;
|
|
15147
|
+
var _a, _b;
|
|
15148
|
+
var varsRegx = /((\$\{[a-zA-Z_0-9]+\})+)/gm;
|
|
15149
|
+
var varNameRegx = /[a-zA-Z_0-9]+/gm;
|
|
15129
15150
|
var options = this.property.property.editorOptions;
|
|
15130
15151
|
if (!options) {
|
|
15131
15152
|
return;
|
|
15132
15153
|
}
|
|
15133
15154
|
var _loop_1 = function (p) {
|
|
15155
|
+
if (options.hasOwnProperty(p)) {
|
|
15156
|
+
var opt_1 = options[p];
|
|
15157
|
+
var vars_1 = typeof opt_1 === 'string' ? (_a = opt_1) === null || _a === void 0 ? void 0 : _a.match(varsRegx) : [];
|
|
15158
|
+
// bind the props
|
|
15159
|
+
if ((_b = vars_1) === null || _b === void 0 ? void 0 : _b.length) {
|
|
15160
|
+
vars_1.forEach(function (v) {
|
|
15161
|
+
var _a;
|
|
15162
|
+
var path = ((_a = v.match(varNameRegx)) === null || _a === void 0 ? void 0 : _a.length) ? v.match(varNameRegx)[0] : null;
|
|
15163
|
+
if (path) {
|
|
15164
|
+
_this.eventService.on("props-" + _this.groupId + "-" + path, function (e) {
|
|
15165
|
+
var execCode = opt_1.slice();
|
|
15166
|
+
var params = {};
|
|
15167
|
+
vars_1.forEach(function (vv) {
|
|
15168
|
+
var _a;
|
|
15169
|
+
var p2 = ((_a = vv.match(varNameRegx)) === null || _a === void 0 ? void 0 : _a.length) ? vv.match(varNameRegx)[0] : null;
|
|
15170
|
+
params[p2] = core$1.AXObjectUtil.deepCopy(_this.context[p2]) || null;
|
|
15171
|
+
execCode = execCode.replace(vv, "__params__." + p2);
|
|
15172
|
+
});
|
|
15173
|
+
var func = new Function('__params__', "try { return " + execCode + "} catch(e){ console.log(e); return null; }");
|
|
15174
|
+
var val = func(params);
|
|
15175
|
+
var keys = p.split('.');
|
|
15176
|
+
var prop = Object.assign({}, _this.instance[keys[0]]);
|
|
15177
|
+
if (keys.length > 1) {
|
|
15178
|
+
_this.instance[keys[0]] = core$1.setPropByPath(prop, p, val);
|
|
15179
|
+
}
|
|
15180
|
+
else {
|
|
15181
|
+
core$1.setPropByPath(_this.instance, p, val);
|
|
15182
|
+
}
|
|
15183
|
+
});
|
|
15184
|
+
}
|
|
15185
|
+
});
|
|
15186
|
+
}
|
|
15187
|
+
// else {
|
|
15188
|
+
// this.assignProps();
|
|
15189
|
+
// }
|
|
15190
|
+
}
|
|
15191
|
+
};
|
|
15192
|
+
for (var p in options) {
|
|
15193
|
+
_loop_1(p);
|
|
15194
|
+
}
|
|
15195
|
+
};
|
|
15196
|
+
AXPropertyEditorRendererDirective.prototype.assignProps = function () {
|
|
15197
|
+
var _this = this;
|
|
15198
|
+
var _a, _b;
|
|
15199
|
+
var options = this.property.property.editorOptions;
|
|
15200
|
+
if (!options) {
|
|
15201
|
+
return;
|
|
15202
|
+
}
|
|
15203
|
+
var varsRegx = /((\$\{[a-zA-Z_0-9]+\})+)/gm;
|
|
15204
|
+
var _loop_2 = function (p) {
|
|
15134
15205
|
if (options.hasOwnProperty(p)) {
|
|
15135
15206
|
var opt = options[p];
|
|
15136
|
-
|
|
15137
|
-
|
|
15138
|
-
|
|
15139
|
-
if (val) {
|
|
15140
|
-
this_1.instance[p] = typeof val === 'function' ? val({ data: this_1.context, host: this_1.host }, this_1.property) : val;
|
|
15141
|
-
}
|
|
15207
|
+
var vars = typeof opt === 'string' ? (_a = opt) === null || _a === void 0 ? void 0 : _a.match(varsRegx) : [];
|
|
15208
|
+
if ((_b = vars) === null || _b === void 0 ? void 0 : _b.length) {
|
|
15209
|
+
return "continue";
|
|
15142
15210
|
}
|
|
15143
15211
|
else {
|
|
15144
|
-
var
|
|
15145
|
-
if (
|
|
15146
|
-
|
|
15147
|
-
_this.instance
|
|
15212
|
+
var val_1 = typeof opt === 'function' ? opt({ data: this_1.context, host: this_1.host }, this_1.property) : opt;
|
|
15213
|
+
if (val_1 instanceof Promise) {
|
|
15214
|
+
val_1.then(function (v) {
|
|
15215
|
+
core$1.setPropByPath(_this.instance, p, val_1);
|
|
15148
15216
|
});
|
|
15149
15217
|
}
|
|
15150
15218
|
else {
|
|
15151
|
-
this_1.instance
|
|
15219
|
+
core$1.setPropByPath(this_1.instance, p, val_1);
|
|
15152
15220
|
}
|
|
15153
15221
|
}
|
|
15154
15222
|
}
|
|
15155
15223
|
};
|
|
15156
15224
|
var this_1 = this;
|
|
15157
15225
|
for (var p in options) {
|
|
15158
|
-
|
|
15226
|
+
_loop_2(p);
|
|
15159
15227
|
}
|
|
15160
15228
|
};
|
|
15161
15229
|
AXPropertyEditorRendererDirective.prototype.ngOnDestroy = function () {
|
|
@@ -15166,16 +15234,13 @@
|
|
|
15166
15234
|
AXPropertyEditorRendererDirective.ctorParameters = function () { return [
|
|
15167
15235
|
{ type: core.ViewContainerRef },
|
|
15168
15236
|
{ type: core.ComponentFactoryResolver },
|
|
15169
|
-
{ type: core$1.AXRenderService }
|
|
15237
|
+
{ type: core$1.AXRenderService },
|
|
15238
|
+
{ type: core$1.AXEventService }
|
|
15170
15239
|
]; };
|
|
15171
15240
|
__decorate([
|
|
15172
15241
|
core.Input(),
|
|
15173
15242
|
__metadata("design:type", Object)
|
|
15174
15243
|
], AXPropertyEditorRendererDirective.prototype, "property", void 0);
|
|
15175
|
-
__decorate([
|
|
15176
|
-
core.Input(),
|
|
15177
|
-
__metadata("design:type", Boolean)
|
|
15178
|
-
], AXPropertyEditorRendererDirective.prototype, "readonly", void 0);
|
|
15179
15244
|
__decorate([
|
|
15180
15245
|
core.Input(),
|
|
15181
15246
|
__metadata("design:type", AXValidationFormComponent)
|
|
@@ -15189,6 +15254,10 @@
|
|
|
15189
15254
|
core.Input(),
|
|
15190
15255
|
__metadata("design:type", Object)
|
|
15191
15256
|
], AXPropertyEditorRendererDirective.prototype, "host", void 0);
|
|
15257
|
+
__decorate([
|
|
15258
|
+
core.Input(),
|
|
15259
|
+
__metadata("design:type", Object)
|
|
15260
|
+
], AXPropertyEditorRendererDirective.prototype, "groupId", void 0);
|
|
15192
15261
|
__decorate([
|
|
15193
15262
|
core.Output(),
|
|
15194
15263
|
__metadata("design:type", core.EventEmitter)
|
|
@@ -15199,7 +15268,8 @@
|
|
|
15199
15268
|
}),
|
|
15200
15269
|
__metadata("design:paramtypes", [core.ViewContainerRef,
|
|
15201
15270
|
core.ComponentFactoryResolver,
|
|
15202
|
-
core$1.AXRenderService
|
|
15271
|
+
core$1.AXRenderService,
|
|
15272
|
+
core$1.AXEventService])
|
|
15203
15273
|
], AXPropertyEditorRendererDirective);
|
|
15204
15274
|
return AXPropertyEditorRendererDirective;
|
|
15205
15275
|
}());
|
|
@@ -15217,7 +15287,7 @@
|
|
|
15217
15287
|
};
|
|
15218
15288
|
AXTextPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15219
15289
|
this.registerForValidationForm(this.textBox);
|
|
15220
|
-
this.
|
|
15290
|
+
this.onRenderCompleted.emit();
|
|
15221
15291
|
};
|
|
15222
15292
|
AXTextPropertyEditorComponent.ctorParameters = function () { return [
|
|
15223
15293
|
{ type: core.ChangeDetectorRef }
|
|
@@ -15267,8 +15337,8 @@
|
|
|
15267
15337
|
_super.prototype.handleValueChange.call(this, e.value);
|
|
15268
15338
|
};
|
|
15269
15339
|
AXNumberBoxPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15270
|
-
this.initiated = true;
|
|
15271
15340
|
this.registerForValidationForm(this.textBox);
|
|
15341
|
+
this.onRenderCompleted.emit();
|
|
15272
15342
|
};
|
|
15273
15343
|
AXNumberBoxPropertyEditorComponent.ctorParameters = function () { return [
|
|
15274
15344
|
{ type: core.ChangeDetectorRef }
|
|
@@ -15313,16 +15383,18 @@
|
|
|
15313
15383
|
_this.selectionDataMode = 'value';
|
|
15314
15384
|
_this.allowSearch = true;
|
|
15315
15385
|
_this.allowNull = false;
|
|
15386
|
+
_this.disabled = false;
|
|
15316
15387
|
_this.items = [];
|
|
15317
15388
|
_this.remoteOperation = false;
|
|
15318
15389
|
_this.provideData = function (e) {
|
|
15319
15390
|
return new Promise(function (resolve) {
|
|
15320
15391
|
var func = function () {
|
|
15321
15392
|
if (Array.isArray(_this.items)) {
|
|
15322
|
-
resolve(_this.items);
|
|
15393
|
+
resolve(_this.items.slice());
|
|
15323
15394
|
}
|
|
15324
15395
|
else if (typeof _this.items === 'function') {
|
|
15325
|
-
|
|
15396
|
+
var a = Object.assign(e, { sender: _this });
|
|
15397
|
+
resolve(_this.items(a));
|
|
15326
15398
|
}
|
|
15327
15399
|
else {
|
|
15328
15400
|
resolve([]);
|
|
@@ -15338,26 +15410,38 @@
|
|
|
15338
15410
|
};
|
|
15339
15411
|
return _this;
|
|
15340
15412
|
}
|
|
15413
|
+
Object.defineProperty(AXSelectBoxPropertyEditorComponent.prototype, "filter", {
|
|
15414
|
+
get: function () {
|
|
15415
|
+
return this._filter;
|
|
15416
|
+
},
|
|
15417
|
+
set: function (v) {
|
|
15418
|
+
var _a;
|
|
15419
|
+
this._filter = v;
|
|
15420
|
+
if (this.value && this.initiated) {
|
|
15421
|
+
this.value = null;
|
|
15422
|
+
(_a = this.selectBox) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
15423
|
+
}
|
|
15424
|
+
},
|
|
15425
|
+
enumerable: true,
|
|
15426
|
+
configurable: true
|
|
15427
|
+
});
|
|
15341
15428
|
AXSelectBoxPropertyEditorComponent.prototype.handleValueChange = function (e) {
|
|
15342
|
-
_super.prototype.handleValueChange.call(this, e.
|
|
15429
|
+
_super.prototype.handleValueChange.call(this, e.selectedValues);
|
|
15343
15430
|
};
|
|
15344
15431
|
AXSelectBoxPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15345
|
-
this.selectBox.refresh();
|
|
15346
15432
|
this.registerForValidationForm(this.selectBox);
|
|
15347
|
-
|
|
15348
|
-
AXSelectBoxPropertyEditorComponent.prototype.initiat = function () {
|
|
15349
|
-
this.initiated = true;
|
|
15433
|
+
this.onRenderCompleted.emit();
|
|
15350
15434
|
};
|
|
15351
15435
|
AXSelectBoxPropertyEditorComponent.ctorParameters = function () { return [
|
|
15352
15436
|
{ type: core.ChangeDetectorRef }
|
|
15353
15437
|
]; };
|
|
15354
15438
|
__decorate([
|
|
15355
|
-
core.ViewChild(
|
|
15356
|
-
__metadata("design:type",
|
|
15439
|
+
core.ViewChild(AXSelectBoxComponent, { static: true }),
|
|
15440
|
+
__metadata("design:type", AXSelectBoxComponent)
|
|
15357
15441
|
], AXSelectBoxPropertyEditorComponent.prototype, "selectBox", void 0);
|
|
15358
15442
|
AXSelectBoxPropertyEditorComponent = __decorate([
|
|
15359
15443
|
core.Component({
|
|
15360
|
-
template: "<ax-select-
|
|
15444
|
+
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>"
|
|
15361
15445
|
}),
|
|
15362
15446
|
__metadata("design:paramtypes", [core.ChangeDetectorRef])
|
|
15363
15447
|
], AXSelectBoxPropertyEditorComponent);
|
|
@@ -15396,7 +15480,7 @@
|
|
|
15396
15480
|
this.cdr.detectChanges();
|
|
15397
15481
|
};
|
|
15398
15482
|
AXRangePropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15399
|
-
this.
|
|
15483
|
+
this.onRenderCompleted.emit();
|
|
15400
15484
|
};
|
|
15401
15485
|
// getRanges() {
|
|
15402
15486
|
// return this.ranges.sort((a, b) => a.minValue - b.minValue);
|
|
@@ -16102,7 +16186,7 @@
|
|
|
16102
16186
|
}
|
|
16103
16187
|
AXColorPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16104
16188
|
this.registerForValidationForm(this.textBox);
|
|
16105
|
-
this.
|
|
16189
|
+
this.onRenderCompleted.emit();
|
|
16106
16190
|
};
|
|
16107
16191
|
AXColorPropertyEditorComponent.ctorParameters = function () { return [
|
|
16108
16192
|
{ type: core.ChangeDetectorRef }
|
|
@@ -16160,7 +16244,7 @@
|
|
|
16160
16244
|
this.columns = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
16161
16245
|
};
|
|
16162
16246
|
ColumnPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16163
|
-
this.
|
|
16247
|
+
this.onRenderCompleted.emit();
|
|
16164
16248
|
};
|
|
16165
16249
|
ColumnPropertyEditorComponent.prototype.drop = function (event) {
|
|
16166
16250
|
dragDrop.moveItemInArray(this.columns, event.previousIndex, event.currentIndex);
|
|
@@ -16320,8 +16404,8 @@
|
|
|
16320
16404
|
].filter(function (c) { return c.dataTypes == null || c.dataTypes.includes(_this.dataType); });
|
|
16321
16405
|
};
|
|
16322
16406
|
AXConditionalColorPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16323
|
-
this.initiated = true;
|
|
16324
16407
|
this.cdr.detectChanges();
|
|
16408
|
+
this.onRenderCompleted.emit();
|
|
16325
16409
|
};
|
|
16326
16410
|
AXConditionalColorPropertyEditorComponent.prototype.handleEditClick = function (item) {
|
|
16327
16411
|
var _this = this;
|
|
@@ -16520,7 +16604,7 @@
|
|
|
16520
16604
|
_super.prototype.handleValueChange.call(this, e.value);
|
|
16521
16605
|
};
|
|
16522
16606
|
AXSwitchPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16523
|
-
this.
|
|
16607
|
+
this.onRenderCompleted.emit();
|
|
16524
16608
|
};
|
|
16525
16609
|
AXSwitchPropertyEditorComponent.ctorParameters = function () { return [
|
|
16526
16610
|
{ type: core.ChangeDetectorRef }
|
|
@@ -16569,8 +16653,8 @@
|
|
|
16569
16653
|
_super.prototype.handleValueChange.call(this, e.value);
|
|
16570
16654
|
};
|
|
16571
16655
|
AXDatePropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16572
|
-
this.initiated = true;
|
|
16573
16656
|
this.registerForValidationForm(this.date);
|
|
16657
|
+
this.onRenderCompleted.emit();
|
|
16574
16658
|
};
|
|
16575
16659
|
AXDatePropertyEditorComponent.ctorParameters = function () { return [
|
|
16576
16660
|
{ type: core.ChangeDetectorRef }
|
|
@@ -16618,8 +16702,8 @@
|
|
|
16618
16702
|
_super.prototype.handleValueChange.call(this, (_a = e.value) === null || _a === void 0 ? void 0 : _a.time);
|
|
16619
16703
|
};
|
|
16620
16704
|
AXTimePropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16621
|
-
this.initiated = true;
|
|
16622
16705
|
this.registerForValidationForm(this.time);
|
|
16706
|
+
this.onRenderCompleted.emit();
|
|
16623
16707
|
};
|
|
16624
16708
|
AXTimePropertyEditorComponent.ctorParameters = function () { return [
|
|
16625
16709
|
{ type: core.ChangeDetectorRef }
|