@acorex/components 3.0.47 → 3.0.52
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 +171 -73
- 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/base/element.class.js +9 -1
- package/esm2015/lib/calendar/calendar-box/calendar-box.component.js +6 -6
- package/esm2015/lib/date-picker/date-picker.component.js +3 -2
- package/esm2015/lib/dropdown/dropdown.component.js +3 -2
- package/esm2015/lib/menu/menu2.component.js +1 -1
- package/esm2015/lib/number-box/number-box.component.js +2 -2
- package/esm2015/lib/password-box/password-box.component.js +2 -2
- 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/esm2015/lib/query-builder/query-builder-rule.component.js +5 -1
- package/esm2015/lib/query-builder/query-builder.service.js +4 -4
- package/esm2015/lib/textarea/textarea.component.js +2 -2
- package/esm2015/lib/textbox/textbox.component.js +2 -2
- package/esm5/lib/base/element.class.js +9 -1
- package/esm5/lib/calendar/calendar-box/calendar-box.component.js +6 -6
- package/esm5/lib/date-picker/date-picker.component.js +3 -2
- package/esm5/lib/dropdown/dropdown.component.js +3 -2
- package/esm5/lib/menu/menu2.component.js +1 -1
- package/esm5/lib/number-box/number-box.component.js +2 -2
- package/esm5/lib/password-box/password-box.component.js +2 -2
- 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/esm5/lib/query-builder/query-builder-rule.component.js +5 -1
- package/esm5/lib/query-builder/query-builder.service.js +4 -4
- package/esm5/lib/textarea/textarea.component.js +2 -2
- package/esm5/lib/textbox/textbox.component.js +2 -2
- package/fesm2015/acorex-components.js +156 -72
- package/fesm2015/acorex-components.js.map +1 -1
- package/fesm5/acorex-components.js +172 -74
- package/fesm5/acorex-components.js.map +1 -1
- package/lib/base/element.class.d.ts +2 -0
- 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
|
@@ -713,6 +713,14 @@
|
|
|
713
713
|
core.Input(),
|
|
714
714
|
__metadata("design:type", String)
|
|
715
715
|
], AXBaseTextComponent.prototype, "placeholder", void 0);
|
|
716
|
+
__decorate([
|
|
717
|
+
core.Input(),
|
|
718
|
+
__metadata("design:type", Boolean)
|
|
719
|
+
], AXBaseTextComponent.prototype, "autocomplete", void 0);
|
|
720
|
+
__decorate([
|
|
721
|
+
core.Input(),
|
|
722
|
+
__metadata("design:type", String)
|
|
723
|
+
], AXBaseTextComponent.prototype, "name", void 0);
|
|
716
724
|
__decorate([
|
|
717
725
|
core.Output(),
|
|
718
726
|
__metadata("design:type", core.EventEmitter)
|
|
@@ -1377,7 +1385,7 @@
|
|
|
1377
1385
|
configurable: true
|
|
1378
1386
|
});
|
|
1379
1387
|
AXCalendarBoxComponent.prototype.findDay = function (date) {
|
|
1380
|
-
if (this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; })) {
|
|
1388
|
+
if (this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; })) {
|
|
1381
1389
|
return true;
|
|
1382
1390
|
}
|
|
1383
1391
|
else {
|
|
@@ -1385,16 +1393,16 @@
|
|
|
1385
1393
|
}
|
|
1386
1394
|
};
|
|
1387
1395
|
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;
|
|
1396
|
+
if (this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; })) {
|
|
1397
|
+
return this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; }).style;
|
|
1390
1398
|
}
|
|
1391
1399
|
else {
|
|
1392
1400
|
return '';
|
|
1393
1401
|
}
|
|
1394
1402
|
};
|
|
1395
1403
|
AXCalendarBoxComponent.prototype.getTitle = function (date) {
|
|
1396
|
-
if (this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; })) {
|
|
1397
|
-
return this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; }).text;
|
|
1404
|
+
if (this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; })) {
|
|
1405
|
+
return this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; }).text;
|
|
1398
1406
|
}
|
|
1399
1407
|
else {
|
|
1400
1408
|
return '';
|
|
@@ -3448,7 +3456,7 @@
|
|
|
3448
3456
|
selector: 'ax-menu2',
|
|
3449
3457
|
template: "\n <div class=\"ax ax-menu ax-menu-vertical\" [attr.data-level]=\"level\">\n <ax-menu-item\n *ngFor=\"let item of items\"\n [level]=\"level\"\n [item]=\"item\"\n (showSubMenu)=\"showSubmenu($event)\">\n </ax-menu-item>\n </div>\n ",
|
|
3450
3458
|
encapsulation: core.ViewEncapsulation.None,
|
|
3451
|
-
styles: [".ax.ax-menu{display:flex}.ax.ax-menu.ax-menu-vertical[data-level=\"0\"]{display:flex;flex-direction:row}.ax.ax-menu.ax-menu-vertical:not([data-level=\"0\"]){display:flex;transition:opacity .3s;min-width:12em;box-shadow:0 1px 7px 0 var(--ax-border-color);background:#fff;flex-direction:column}.ax.ax-menu.ax-menu-vertical .ax-menu-item{display:flex;white-space:nowrap;cursor:pointer;padding:0 10px;font-weight:400;font-size:1rem;line-height:40px;text-decoration:none;align-items:center}.ax.ax-menu.ax-menu-vertical .ax-menu-item .icon:first-child{-webkit-margin-end:var(--ax-size-md);margin-inline-end:var(--ax-size-md)}.ax.ax-menu.ax-menu-vertical .ax-menu-item .icon:last-child{-webkit-margin-start:var(--ax-size-md);margin-inline-start:var(--ax-size-md)}.ax.ax-menu.ax-menu-vertical .ax-menu-item span{flex:1}.ax.ax-menu.ax-menu-vertical .ax-menu-item.disabled{
|
|
3459
|
+
styles: [".ax.ax-menu{display:flex}.ax.ax-menu.ax-menu-vertical[data-level=\"0\"]{display:flex;flex-direction:row}.ax.ax-menu.ax-menu-vertical:not([data-level=\"0\"]){display:flex;transition:opacity .3s;min-width:12em;box-shadow:0 1px 7px 0 var(--ax-border-color);background:#fff;flex-direction:column}.ax.ax-menu.ax-menu-vertical .ax-menu-item{display:flex;white-space:nowrap;cursor:pointer;padding:0 10px;font-weight:400;font-size:1rem;line-height:40px;text-decoration:none;align-items:center}.ax.ax-menu.ax-menu-vertical .ax-menu-item .icon:first-child{-webkit-margin-end:var(--ax-size-md);margin-inline-end:var(--ax-size-md)}.ax.ax-menu.ax-menu-vertical .ax-menu-item .icon:last-child{-webkit-margin-start:var(--ax-size-md);margin-inline-start:var(--ax-size-md)}.ax.ax-menu.ax-menu-vertical .ax-menu-item span{flex:1}.ax.ax-menu.ax-menu-vertical .ax-menu-item.disabled{opacity:.6;cursor:not-allowed!important}.ax.ax-menu.ax-menu-vertical .ax-menu-item.disabled .icon{color:var(--ax-gray-dark-color)!important}.ax.ax-menu.ax-menu-vertical .ax-menu-item.disabled:hover{cursor:not-allowed!important}"]
|
|
3452
3460
|
}),
|
|
3453
3461
|
__metadata("design:paramtypes", [overlay.Overlay,
|
|
3454
3462
|
core.ViewContainerRef,
|
|
@@ -4719,7 +4727,7 @@
|
|
|
4719
4727
|
AXTextBoxComponent = AXTextBoxComponent_1 = __decorate([
|
|
4720
4728
|
core.Component({
|
|
4721
4729
|
selector: 'ax-text-box',
|
|
4722
|
-
template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\r\n <div class=\"ax items-wrapper\">\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </div>\r\n <div class=\"content\" #content>\r\n <div class=\"ax form-control input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\"\r\n [class.icon]=\"icon\">\r\n <input #input class=\"ax {{size}}\" [attr.type]=\"type\" [attr.maxlength]=\"maxLength\"\r\n [textMask]=\"{mask: mask || false, showMask : showMask, keepCharPositions:maskKeepCharPositions,guide:maskGuid,placeholderChar:maskPlaceholder}\"\r\n [(ngModel)]=\"value\" placeholder=\"{{placeholder}}\" [readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [ngClass]=\"setTextAlign()\" [class.clear]=\"value && allowClear\" (focus)=\"handleInputFocus($event)\"\r\n (blur)=\"handleInputBlur($event)\">\r\n <i class=\"{{icon}}\" *ngIf=\"icon\"></i>\r\n </div>\r\n </div>\r\n <div class=\"ax items-wrapper\">\r\n <ax-button *ngIf=\"value && allowClear\" icon=\"far fa-times\" type=\"danger blank\" (click)=\"clear()\"></ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </div>\r\n</div>",
|
|
4730
|
+
template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\r\n <div class=\"ax items-wrapper\">\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </div>\r\n <div class=\"content\" #content>\r\n <div class=\"ax form-control input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\"\r\n [class.icon]=\"icon\">\r\n <input #input [autocomplete]=\"autocomplete\" [name]=\"name\" class=\"ax {{size}}\" [attr.type]=\"type\" [attr.maxlength]=\"maxLength\"\r\n [textMask]=\"{mask: mask || false, showMask : showMask, keepCharPositions:maskKeepCharPositions,guide:maskGuid,placeholderChar:maskPlaceholder}\"\r\n [(ngModel)]=\"value\" placeholder=\"{{placeholder}}\" [readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [ngClass]=\"setTextAlign()\" [class.clear]=\"value && allowClear\" (focus)=\"handleInputFocus($event)\"\r\n (blur)=\"handleInputBlur($event)\">\r\n <i class=\"{{icon}}\" *ngIf=\"icon\"></i>\r\n </div>\r\n </div>\r\n <div class=\"ax items-wrapper\">\r\n <ax-button *ngIf=\"value && allowClear\" icon=\"far fa-times\" type=\"danger blank\" (click)=\"clear()\"></ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </div>\r\n</div>",
|
|
4723
4731
|
encapsulation: core.ViewEncapsulation.None,
|
|
4724
4732
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
4725
4733
|
host: { style: 'width: 100%' },
|
|
@@ -5521,7 +5529,8 @@
|
|
|
5521
5529
|
var _this = this;
|
|
5522
5530
|
if (!this.overlayRef) {
|
|
5523
5531
|
var targetEl = document.querySelector('#' + this.uid);
|
|
5524
|
-
var positionStrategy = this.overlay
|
|
5532
|
+
var positionStrategy = this.overlay
|
|
5533
|
+
.position()
|
|
5525
5534
|
.flexibleConnectedTo(targetEl)
|
|
5526
5535
|
.withPositions([
|
|
5527
5536
|
{
|
|
@@ -5711,7 +5720,8 @@
|
|
|
5711
5720
|
this.value = new Date();
|
|
5712
5721
|
};
|
|
5713
5722
|
AXDatePickerComponent.prototype.focus = function () {
|
|
5714
|
-
this.dropdown.focus();
|
|
5723
|
+
// this.dropdown.focus();
|
|
5724
|
+
this.input.focus();
|
|
5715
5725
|
};
|
|
5716
5726
|
AXDatePickerComponent.prototype.convertMaskToDate = function (text) {
|
|
5717
5727
|
if (this.type == 'jalali') {
|
|
@@ -8277,7 +8287,7 @@
|
|
|
8277
8287
|
AXNumberBoxComponent = AXNumberBoxComponent_1 = __decorate([
|
|
8278
8288
|
core.Component({
|
|
8279
8289
|
selector: 'ax-number-box',
|
|
8280
|
-
template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\r\n <div class=\"ax items-wrapper\">\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n <ax-button icon=\"far fa-plus\" type=\"success blank\" (click)=\"upStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\r\n </div>\r\n <div class=\"content\" #content>\r\n <div class=\"ax form-control input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\"\r\n [class.icon]=\"icon\">\r\n <input #input type=\"text\" class=\"ax {{size}}\" [maxlength]=\"calcSeparator(maxLength)\" [(ngModel)]=\"textValue\" placeholder=\"{{placeholder}}\"\r\n [readonly]=\"readonly\" [disabled]=\"disabled\" [ngClass]=\"setTextAlign()\"\r\n [class.clear]=\"value && allowClear\" (focus)=\"handleInputFocus($event)\" (blur)=\"handleInputBlur($event)\"\r\n (keypress)=\"handleKeyPress($event)\" (ngModelChange)=\"this.userQuestionUpdate.next($event)\"\r\n (keydown)=\"handleKeyDown($event)\" (click)=\"handleClick()\" (keyup)=\"handleKeyUp($event)\">\r\n <i class=\"{{icon}}\" *ngIf=\"icon\"></i>\r\n </div>\r\n </div>\r\n <div class=\"ax items-wrapper\">\r\n <ax-button *ngIf=\"value && allowClear\" [disabled]=\"disabled\" icon=\"far fa-times\" type=\"danger blank\"\r\n (click)=\"clear()\"></ax-button>\r\n <ax-button icon=\"far fa-minus\" type=\"danger blank\" (click)=\"downStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n <div class=\"arrow-number\" *ngIf=\"showCounter && !showDoubleCounter && !readonly\" >\r\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-up\" [size]=\"size\"\r\n (mousedown)=\"upStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\r\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-down\" [size]=\"size\"\r\n (mousedown)=\"downStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n",
|
|
8290
|
+
template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\" #fc>\r\n <div class=\"ax items-wrapper\">\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n <ax-button icon=\"far fa-plus\" type=\"success blank\" (click)=\"upStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\r\n </div>\r\n <div class=\"content\" #content>\r\n <div class=\"ax form-control input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\"\r\n [class.icon]=\"icon\">\r\n <input [autocomplete]=\"autocomplete\" [name]=\"name\" #input type=\"text\" class=\"ax {{size}}\" [maxlength]=\"calcSeparator(maxLength)\" [(ngModel)]=\"textValue\" placeholder=\"{{placeholder}}\"\r\n [readonly]=\"readonly\" [disabled]=\"disabled\" [ngClass]=\"setTextAlign()\"\r\n [class.clear]=\"value && allowClear\" (focus)=\"handleInputFocus($event)\" (blur)=\"handleInputBlur($event)\"\r\n (keypress)=\"handleKeyPress($event)\" (ngModelChange)=\"this.userQuestionUpdate.next($event)\"\r\n (keydown)=\"handleKeyDown($event)\" (click)=\"handleClick()\" (keyup)=\"handleKeyUp($event)\">\r\n <i class=\"{{icon}}\" *ngIf=\"icon\"></i>\r\n </div>\r\n </div>\r\n <div class=\"ax items-wrapper\">\r\n <ax-button *ngIf=\"value && allowClear\" [disabled]=\"disabled\" icon=\"far fa-times\" type=\"danger blank\"\r\n (click)=\"clear()\"></ax-button>\r\n <ax-button icon=\"far fa-minus\" type=\"danger blank\" (click)=\"downStepHandel()\" [disabled]=\"disabled\" *ngIf=\"showDoubleCounter\"></ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n <div class=\"arrow-number\" *ngIf=\"showCounter && !showDoubleCounter && !readonly\" >\r\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-up\" [size]=\"size\"\r\n (mousedown)=\"upStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\r\n <ax-button type=\"light blank\" [disabled]=\"disabled\" icon=\"fas fa-angle-down\" [size]=\"size\"\r\n (mousedown)=\"downStepHandel()\" (mouseup)=\"delaySearch()\" [tabIndex]=\"-1\"></ax-button>\r\n </div>\r\n </div>\r\n\r\n</div>\r\n",
|
|
8281
8291
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
8282
8292
|
host: { style: 'width: 100%' },
|
|
8283
8293
|
providers: [{ provide: AXValidatableComponent, useExisting: AXNumberBoxComponent_1 }]
|
|
@@ -8375,7 +8385,7 @@
|
|
|
8375
8385
|
AXPasswordBoxComponent = AXPasswordBoxComponent_1 = __decorate([
|
|
8376
8386
|
core.Component({
|
|
8377
8387
|
selector: 'ax-password-box',
|
|
8378
|
-
template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\">\r\n <div class=\"ax items-wrapper\">\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </div>\r\n <div class=\"content\" #content>\r\n <div class=\"ax input form-control {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\" [class.icon]=\"icon\">\r\n <input #input [type]=\"type\" class=\"ax {{size}}\" value=\"{{value}}\" placeholder=\"{{placeholder}}\"\r\n [readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [ngClass]=\"setTextAlign()\" [class.clear]=\"value && allowClear\">\r\n <i class=\"{{icon}}\" *ngIf=\"icon\"></i>\r\n </div>\r\n </div>\r\n <div class=\"ax items-wrapper\">\r\n <ax-button *ngIf=\"value && allowClear\" icon=\"fas fa-times\" type=\"danger blank\" (click)=\"clear()\" [tabIndex]=\"-1\"></ax-button>\r\n <ax-button [disabled]=\"disabled\" [icon]=\"eyeIcon\" type=\"light blank\" size=\"{{size}}\" (click)=\"handleShowPassword()\" [tabIndex]=\"-1\">\r\n <!-- <i class=\"\" [ngClass]=\"{'fa-eye': type === 'password','fa-eye-slash':type === 'text'}\"></i> -->\r\n </ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </div>\r\n</div>\r\n",
|
|
8388
|
+
template: "<div class=\"ax form-item\" [class.disabled]=\"disabled\" [attr.id]=\"uid\">\r\n <div class=\"ax items-wrapper\">\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </div>\r\n <div class=\"content\" #content>\r\n <div class=\"ax input form-control {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\" [class.icon]=\"icon\">\r\n <input [autocomplete]=\"autocomplete\" [name]=\"name\" #input [type]=\"type\" class=\"ax {{size}}\" value=\"{{value}}\" placeholder=\"{{placeholder}}\"\r\n [readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [ngClass]=\"setTextAlign()\" [class.clear]=\"value && allowClear\">\r\n <i class=\"{{icon}}\" *ngIf=\"icon\"></i>\r\n </div>\r\n </div>\r\n <div class=\"ax items-wrapper\">\r\n <ax-button *ngIf=\"value && allowClear\" icon=\"fas fa-times\" type=\"danger blank\" (click)=\"clear()\" [tabIndex]=\"-1\"></ax-button>\r\n <ax-button [disabled]=\"disabled\" [icon]=\"eyeIcon\" type=\"light blank\" size=\"{{size}}\" (click)=\"handleShowPassword()\" [tabIndex]=\"-1\">\r\n <!-- <i class=\"\" [ngClass]=\"{'fa-eye': type === 'password','fa-eye-slash':type === 'text'}\"></i> -->\r\n </ax-button>\r\n <ng-content select=\"[end]\">\r\n </ng-content>\r\n </div>\r\n</div>\r\n",
|
|
8379
8389
|
encapsulation: core.ViewEncapsulation.None,
|
|
8380
8390
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
8381
8391
|
host: { style: 'width: 100%' },
|
|
@@ -9680,6 +9690,10 @@
|
|
|
9680
9690
|
value: 'not-contains',
|
|
9681
9691
|
text: core$1.AXTranslator.get('queryBuilder.not-contains')
|
|
9682
9692
|
},
|
|
9693
|
+
{
|
|
9694
|
+
value: 'contains-all',
|
|
9695
|
+
text: core$1.AXTranslator.get('queryBuilder.contains-all')
|
|
9696
|
+
},
|
|
9683
9697
|
{
|
|
9684
9698
|
value: 'null',
|
|
9685
9699
|
text: core$1.AXTranslator.get('queryBuilder.null')
|
|
@@ -10239,7 +10253,6 @@
|
|
|
10239
10253
|
return __generator(this, function (_d) {
|
|
10240
10254
|
switch (_d.label) {
|
|
10241
10255
|
case 0:
|
|
10242
|
-
;
|
|
10243
10256
|
if (group.items.length > 0) {
|
|
10244
10257
|
query = ' ( ';
|
|
10245
10258
|
}
|
|
@@ -10297,8 +10310,10 @@
|
|
|
10297
10310
|
case 'end-with':
|
|
10298
10311
|
codeOperator = item.operator;
|
|
10299
10312
|
break;
|
|
10313
|
+
default:
|
|
10314
|
+
codeOperator = item.operator;
|
|
10315
|
+
break;
|
|
10300
10316
|
}
|
|
10301
|
-
;
|
|
10302
10317
|
query = query + ' ' + item.caption + ' ' + codeOperator + ' ' + item.text;
|
|
10303
10318
|
_d.label = 6;
|
|
10304
10319
|
case 6:
|
|
@@ -10341,7 +10356,6 @@
|
|
|
10341
10356
|
var query = '';
|
|
10342
10357
|
switch (type) {
|
|
10343
10358
|
case 'simple':
|
|
10344
|
-
;
|
|
10345
10359
|
if (group.items.length > 0) {
|
|
10346
10360
|
query = ' ( ';
|
|
10347
10361
|
}
|
|
@@ -12117,7 +12131,7 @@
|
|
|
12117
12131
|
AXTextAreaComponent = AXTextAreaComponent_1 = __decorate([
|
|
12118
12132
|
core.Component({
|
|
12119
12133
|
selector: 'ax-text-area',
|
|
12120
|
-
template: "<div class=\"ax form-item {{size}}\" [class.disabled]=\"disabled\" [attr.id]=\"uid\">\r\n <div class=\"content\">\r\n <div class=\"ax input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\">\r\n <textarea [attr.maxlength]=\"maxLength\" rows=\"{{rows}}\" cols=\"{{cols}}\" #input type=\"text\"\r\n class=\"ax icon {{size}}\" [ngClass]=\"setTextAlign()\" placeholder=\"{{placeholder}}\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" value=\"{{value}}\"></textarea>\r\n </div>\r\n </div>\r\n <div class=\"ax buttons\">\r\n <ng-content select=\"ax-button\">\r\n </ng-content>\r\n </div>\r\n</div>",
|
|
12134
|
+
template: "<div class=\"ax form-item {{size}}\" [class.disabled]=\"disabled\" [attr.id]=\"uid\">\r\n <div class=\"content\">\r\n <div class=\"ax input {{size}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\">\r\n <textarea [name]=\"name\" [attr.maxlength]=\"maxLength\" rows=\"{{rows}}\" cols=\"{{cols}}\" #input type=\"text\"\r\n class=\"ax icon {{size}}\" [ngClass]=\"setTextAlign()\" placeholder=\"{{placeholder}}\" [readonly]=\"readonly\"\r\n [disabled]=\"disabled\" value=\"{{value}}\"></textarea>\r\n </div>\r\n </div>\r\n <div class=\"ax buttons\">\r\n <ng-content select=\"ax-button\">\r\n </ng-content>\r\n </div>\r\n</div>",
|
|
12121
12135
|
encapsulation: core.ViewEncapsulation.None,
|
|
12122
12136
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
12123
12137
|
host: { style: 'width: 100%' },
|
|
@@ -14974,12 +14988,25 @@
|
|
|
14974
14988
|
|
|
14975
14989
|
var AXProperyEditorComponent = /** @class */ (function () {
|
|
14976
14990
|
function AXProperyEditorComponent(cdr) {
|
|
14991
|
+
var _this = this;
|
|
14977
14992
|
this.cdr = cdr;
|
|
14978
14993
|
this.readonly = false;
|
|
14979
|
-
this.
|
|
14994
|
+
this._initiated = false;
|
|
14995
|
+
this._valueBound = false;
|
|
14980
14996
|
this.validatableComponentRegistered = new rxjs.Subject();
|
|
14981
14997
|
this.valueChange = new core.EventEmitter();
|
|
14998
|
+
this.onRenderCompleted = new core.EventEmitter();
|
|
14999
|
+
this.onRenderCompleted.subscribe(function () {
|
|
15000
|
+
_this._initiated = true;
|
|
15001
|
+
});
|
|
14982
15002
|
}
|
|
15003
|
+
Object.defineProperty(AXProperyEditorComponent.prototype, "initiated", {
|
|
15004
|
+
get: function () {
|
|
15005
|
+
return this._initiated && this._valueBound;
|
|
15006
|
+
},
|
|
15007
|
+
enumerable: true,
|
|
15008
|
+
configurable: true
|
|
15009
|
+
});
|
|
14983
15010
|
AXProperyEditorComponent.prototype.registerForValidationForm = function (component) {
|
|
14984
15011
|
this.validatableComponentRegistered.next(component);
|
|
14985
15012
|
};
|
|
@@ -14988,10 +15015,15 @@
|
|
|
14988
15015
|
return this._value;
|
|
14989
15016
|
},
|
|
14990
15017
|
set: function (v) {
|
|
15018
|
+
var _this = this;
|
|
14991
15019
|
if (v !== this._value) {
|
|
14992
15020
|
this._value = v;
|
|
14993
15021
|
this.valueChange.emit(v);
|
|
14994
15022
|
this.cdr.detectChanges();
|
|
15023
|
+
//TODO: find better solution
|
|
15024
|
+
setTimeout(function () {
|
|
15025
|
+
_this._valueBound = true;
|
|
15026
|
+
}, 100);
|
|
14995
15027
|
}
|
|
14996
15028
|
},
|
|
14997
15029
|
enumerable: true,
|
|
@@ -15000,12 +15032,14 @@
|
|
|
15000
15032
|
AXProperyEditorComponent.prototype.handleValueChange = function (v) {
|
|
15001
15033
|
this.value = v;
|
|
15002
15034
|
};
|
|
15003
|
-
AXProperyEditorComponent.prototype.initiat = function () {
|
|
15004
|
-
};
|
|
15005
15035
|
__decorate([
|
|
15006
15036
|
core.Output(),
|
|
15007
15037
|
__metadata("design:type", core.EventEmitter)
|
|
15008
15038
|
], AXProperyEditorComponent.prototype, "valueChange", void 0);
|
|
15039
|
+
__decorate([
|
|
15040
|
+
core.Output(),
|
|
15041
|
+
__metadata("design:type", core.EventEmitter)
|
|
15042
|
+
], AXProperyEditorComponent.prototype, "onRenderCompleted", void 0);
|
|
15009
15043
|
__decorate([
|
|
15010
15044
|
core.Input(),
|
|
15011
15045
|
__metadata("design:type", Object),
|
|
@@ -15068,11 +15102,12 @@
|
|
|
15068
15102
|
}
|
|
15069
15103
|
|
|
15070
15104
|
var AXPropertyEditorRendererDirective = /** @class */ (function () {
|
|
15071
|
-
function AXPropertyEditorRendererDirective(target, componentFactoryResolver, renderService) {
|
|
15105
|
+
function AXPropertyEditorRendererDirective(target, componentFactoryResolver, renderService, eventService) {
|
|
15072
15106
|
this.target = target;
|
|
15073
15107
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
15074
15108
|
this.renderService = renderService;
|
|
15075
|
-
this.
|
|
15109
|
+
this.eventService = eventService;
|
|
15110
|
+
this._context = {};
|
|
15076
15111
|
this.onValueChange = new core.EventEmitter();
|
|
15077
15112
|
}
|
|
15078
15113
|
Object.defineProperty(AXPropertyEditorRendererDirective.prototype, "context", {
|
|
@@ -15081,9 +15116,6 @@
|
|
|
15081
15116
|
},
|
|
15082
15117
|
set: function (v) {
|
|
15083
15118
|
this._context = v;
|
|
15084
|
-
if (v && this.instance) {
|
|
15085
|
-
this.assignProps();
|
|
15086
|
-
}
|
|
15087
15119
|
},
|
|
15088
15120
|
enumerable: true,
|
|
15089
15121
|
configurable: true
|
|
@@ -15102,60 +15134,110 @@
|
|
|
15102
15134
|
var cmpRef = _this.target.createComponent(factory);
|
|
15103
15135
|
_this.instance = cmpRef.instance;
|
|
15104
15136
|
_this.subscription = _this.instance.valueChange.subscribe(function (value) {
|
|
15105
|
-
|
|
15106
|
-
|
|
15107
|
-
|
|
15137
|
+
var _a, _b;
|
|
15138
|
+
_this.property.value = value;
|
|
15139
|
+
_this.onValueChange.emit(_this.property);
|
|
15140
|
+
if ((_b = (_a = _this.property) === null || _a === void 0 ? void 0 : _a.property) === null || _b === void 0 ? void 0 : _b.name) {
|
|
15141
|
+
setTimeout(function () {
|
|
15142
|
+
_this.eventService.broadcast("props-" + _this.groupId + "-" + _this.property.property.name, _this.property);
|
|
15143
|
+
}, 0);
|
|
15108
15144
|
}
|
|
15109
15145
|
});
|
|
15110
|
-
|
|
15146
|
+
_this.watchChanges();
|
|
15147
|
+
_this.assignProps();
|
|
15148
|
+
_this.instance.value = _this.property.value;
|
|
15149
|
+
// this.instance.onRenderCompleted.subscribe(() => {
|
|
15150
|
+
// });
|
|
15111
15151
|
if (_this.validationForm) {
|
|
15112
15152
|
_this.instance.validatableComponentRegistered.subscribe(function (v) {
|
|
15113
15153
|
_this.validationForm.addWidget(v);
|
|
15114
15154
|
});
|
|
15115
15155
|
}
|
|
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
15156
|
}
|
|
15125
15157
|
});
|
|
15126
15158
|
};
|
|
15127
|
-
AXPropertyEditorRendererDirective.prototype.
|
|
15159
|
+
AXPropertyEditorRendererDirective.prototype.watchChanges = function () {
|
|
15128
15160
|
var _this = this;
|
|
15161
|
+
var _a, _b;
|
|
15162
|
+
var varsRegx = /((\$\{[a-zA-Z_0-9]+\})+)/gm;
|
|
15163
|
+
var varNameRegx = /[a-zA-Z_0-9]+/gm;
|
|
15129
15164
|
var options = this.property.property.editorOptions;
|
|
15130
15165
|
if (!options) {
|
|
15131
15166
|
return;
|
|
15132
15167
|
}
|
|
15133
15168
|
var _loop_1 = function (p) {
|
|
15169
|
+
if (options.hasOwnProperty(p)) {
|
|
15170
|
+
var opt_1 = options[p];
|
|
15171
|
+
var vars_1 = typeof opt_1 === 'string' ? (_a = opt_1) === null || _a === void 0 ? void 0 : _a.match(varsRegx) : [];
|
|
15172
|
+
// bind the props
|
|
15173
|
+
if ((_b = vars_1) === null || _b === void 0 ? void 0 : _b.length) {
|
|
15174
|
+
vars_1.forEach(function (v) {
|
|
15175
|
+
var _a;
|
|
15176
|
+
var path = ((_a = v.match(varNameRegx)) === null || _a === void 0 ? void 0 : _a.length) ? v.match(varNameRegx)[0] : null;
|
|
15177
|
+
if (path) {
|
|
15178
|
+
_this.eventService.on("props-" + _this.groupId + "-" + path, function (e) {
|
|
15179
|
+
var execCode = opt_1.slice();
|
|
15180
|
+
var params = {};
|
|
15181
|
+
vars_1.forEach(function (vv) {
|
|
15182
|
+
var _a;
|
|
15183
|
+
var p2 = ((_a = vv.match(varNameRegx)) === null || _a === void 0 ? void 0 : _a.length) ? vv.match(varNameRegx)[0] : null;
|
|
15184
|
+
params[p2] = core$1.AXObjectUtil.deepCopy(_this.context[p2]) || null;
|
|
15185
|
+
execCode = execCode.replace(vv, "__params__." + p2);
|
|
15186
|
+
});
|
|
15187
|
+
var func = new Function('__params__', "try { return " + execCode + "} catch(e){ console.log(e); return null; }");
|
|
15188
|
+
var val = func(params);
|
|
15189
|
+
var keys = p.split('.');
|
|
15190
|
+
var prop = Object.assign({}, _this.instance[keys[0]]);
|
|
15191
|
+
if (keys.length > 1) {
|
|
15192
|
+
_this.instance[keys[0]] = core$1.setPropByPath(prop, p, val);
|
|
15193
|
+
}
|
|
15194
|
+
else {
|
|
15195
|
+
core$1.setPropByPath(_this.instance, p, val);
|
|
15196
|
+
}
|
|
15197
|
+
});
|
|
15198
|
+
}
|
|
15199
|
+
});
|
|
15200
|
+
}
|
|
15201
|
+
// else {
|
|
15202
|
+
// this.assignProps();
|
|
15203
|
+
// }
|
|
15204
|
+
}
|
|
15205
|
+
};
|
|
15206
|
+
for (var p in options) {
|
|
15207
|
+
_loop_1(p);
|
|
15208
|
+
}
|
|
15209
|
+
};
|
|
15210
|
+
AXPropertyEditorRendererDirective.prototype.assignProps = function () {
|
|
15211
|
+
var _this = this;
|
|
15212
|
+
var _a, _b;
|
|
15213
|
+
var options = this.property.property.editorOptions;
|
|
15214
|
+
if (!options) {
|
|
15215
|
+
return;
|
|
15216
|
+
}
|
|
15217
|
+
var varsRegx = /((\$\{[a-zA-Z_0-9]+\})+)/gm;
|
|
15218
|
+
var _loop_2 = function (p) {
|
|
15134
15219
|
if (options.hasOwnProperty(p)) {
|
|
15135
15220
|
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
|
-
}
|
|
15221
|
+
var vars = typeof opt === 'string' ? (_a = opt) === null || _a === void 0 ? void 0 : _a.match(varsRegx) : [];
|
|
15222
|
+
if ((_b = vars) === null || _b === void 0 ? void 0 : _b.length) {
|
|
15223
|
+
return "continue";
|
|
15142
15224
|
}
|
|
15143
15225
|
else {
|
|
15144
|
-
var
|
|
15145
|
-
if (
|
|
15146
|
-
|
|
15147
|
-
_this.instance
|
|
15226
|
+
var val_1 = typeof opt === 'function' ? opt({ data: this_1.context, host: this_1.host }, this_1.property) : opt;
|
|
15227
|
+
if (val_1 instanceof Promise) {
|
|
15228
|
+
val_1.then(function (v) {
|
|
15229
|
+
core$1.setPropByPath(_this.instance, p, val_1);
|
|
15148
15230
|
});
|
|
15149
15231
|
}
|
|
15150
15232
|
else {
|
|
15151
|
-
this_1.instance
|
|
15233
|
+
core$1.setPropByPath(this_1.instance, p, val_1);
|
|
15152
15234
|
}
|
|
15153
15235
|
}
|
|
15154
15236
|
}
|
|
15155
15237
|
};
|
|
15156
15238
|
var this_1 = this;
|
|
15157
15239
|
for (var p in options) {
|
|
15158
|
-
|
|
15240
|
+
_loop_2(p);
|
|
15159
15241
|
}
|
|
15160
15242
|
};
|
|
15161
15243
|
AXPropertyEditorRendererDirective.prototype.ngOnDestroy = function () {
|
|
@@ -15166,16 +15248,13 @@
|
|
|
15166
15248
|
AXPropertyEditorRendererDirective.ctorParameters = function () { return [
|
|
15167
15249
|
{ type: core.ViewContainerRef },
|
|
15168
15250
|
{ type: core.ComponentFactoryResolver },
|
|
15169
|
-
{ type: core$1.AXRenderService }
|
|
15251
|
+
{ type: core$1.AXRenderService },
|
|
15252
|
+
{ type: core$1.AXEventService }
|
|
15170
15253
|
]; };
|
|
15171
15254
|
__decorate([
|
|
15172
15255
|
core.Input(),
|
|
15173
15256
|
__metadata("design:type", Object)
|
|
15174
15257
|
], AXPropertyEditorRendererDirective.prototype, "property", void 0);
|
|
15175
|
-
__decorate([
|
|
15176
|
-
core.Input(),
|
|
15177
|
-
__metadata("design:type", Boolean)
|
|
15178
|
-
], AXPropertyEditorRendererDirective.prototype, "readonly", void 0);
|
|
15179
15258
|
__decorate([
|
|
15180
15259
|
core.Input(),
|
|
15181
15260
|
__metadata("design:type", AXValidationFormComponent)
|
|
@@ -15189,6 +15268,10 @@
|
|
|
15189
15268
|
core.Input(),
|
|
15190
15269
|
__metadata("design:type", Object)
|
|
15191
15270
|
], AXPropertyEditorRendererDirective.prototype, "host", void 0);
|
|
15271
|
+
__decorate([
|
|
15272
|
+
core.Input(),
|
|
15273
|
+
__metadata("design:type", Object)
|
|
15274
|
+
], AXPropertyEditorRendererDirective.prototype, "groupId", void 0);
|
|
15192
15275
|
__decorate([
|
|
15193
15276
|
core.Output(),
|
|
15194
15277
|
__metadata("design:type", core.EventEmitter)
|
|
@@ -15199,7 +15282,8 @@
|
|
|
15199
15282
|
}),
|
|
15200
15283
|
__metadata("design:paramtypes", [core.ViewContainerRef,
|
|
15201
15284
|
core.ComponentFactoryResolver,
|
|
15202
|
-
core$1.AXRenderService
|
|
15285
|
+
core$1.AXRenderService,
|
|
15286
|
+
core$1.AXEventService])
|
|
15203
15287
|
], AXPropertyEditorRendererDirective);
|
|
15204
15288
|
return AXPropertyEditorRendererDirective;
|
|
15205
15289
|
}());
|
|
@@ -15217,7 +15301,7 @@
|
|
|
15217
15301
|
};
|
|
15218
15302
|
AXTextPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15219
15303
|
this.registerForValidationForm(this.textBox);
|
|
15220
|
-
this.
|
|
15304
|
+
this.onRenderCompleted.emit();
|
|
15221
15305
|
};
|
|
15222
15306
|
AXTextPropertyEditorComponent.ctorParameters = function () { return [
|
|
15223
15307
|
{ type: core.ChangeDetectorRef }
|
|
@@ -15267,8 +15351,8 @@
|
|
|
15267
15351
|
_super.prototype.handleValueChange.call(this, e.value);
|
|
15268
15352
|
};
|
|
15269
15353
|
AXNumberBoxPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15270
|
-
this.initiated = true;
|
|
15271
15354
|
this.registerForValidationForm(this.textBox);
|
|
15355
|
+
this.onRenderCompleted.emit();
|
|
15272
15356
|
};
|
|
15273
15357
|
AXNumberBoxPropertyEditorComponent.ctorParameters = function () { return [
|
|
15274
15358
|
{ type: core.ChangeDetectorRef }
|
|
@@ -15313,16 +15397,18 @@
|
|
|
15313
15397
|
_this.selectionDataMode = 'value';
|
|
15314
15398
|
_this.allowSearch = true;
|
|
15315
15399
|
_this.allowNull = false;
|
|
15400
|
+
_this.disabled = false;
|
|
15316
15401
|
_this.items = [];
|
|
15317
15402
|
_this.remoteOperation = false;
|
|
15318
15403
|
_this.provideData = function (e) {
|
|
15319
15404
|
return new Promise(function (resolve) {
|
|
15320
15405
|
var func = function () {
|
|
15321
15406
|
if (Array.isArray(_this.items)) {
|
|
15322
|
-
resolve(_this.items);
|
|
15407
|
+
resolve(_this.items.slice());
|
|
15323
15408
|
}
|
|
15324
15409
|
else if (typeof _this.items === 'function') {
|
|
15325
|
-
|
|
15410
|
+
var a = Object.assign(e, { sender: _this });
|
|
15411
|
+
resolve(_this.items(a));
|
|
15326
15412
|
}
|
|
15327
15413
|
else {
|
|
15328
15414
|
resolve([]);
|
|
@@ -15338,26 +15424,38 @@
|
|
|
15338
15424
|
};
|
|
15339
15425
|
return _this;
|
|
15340
15426
|
}
|
|
15427
|
+
Object.defineProperty(AXSelectBoxPropertyEditorComponent.prototype, "filter", {
|
|
15428
|
+
get: function () {
|
|
15429
|
+
return this._filter;
|
|
15430
|
+
},
|
|
15431
|
+
set: function (v) {
|
|
15432
|
+
var _a;
|
|
15433
|
+
this._filter = v;
|
|
15434
|
+
if (this.value && this.initiated) {
|
|
15435
|
+
this.value = null;
|
|
15436
|
+
(_a = this.selectBox) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
15437
|
+
}
|
|
15438
|
+
},
|
|
15439
|
+
enumerable: true,
|
|
15440
|
+
configurable: true
|
|
15441
|
+
});
|
|
15341
15442
|
AXSelectBoxPropertyEditorComponent.prototype.handleValueChange = function (e) {
|
|
15342
|
-
_super.prototype.handleValueChange.call(this, e.
|
|
15443
|
+
_super.prototype.handleValueChange.call(this, e.selectedValues);
|
|
15343
15444
|
};
|
|
15344
15445
|
AXSelectBoxPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15345
|
-
this.selectBox.refresh();
|
|
15346
15446
|
this.registerForValidationForm(this.selectBox);
|
|
15347
|
-
|
|
15348
|
-
AXSelectBoxPropertyEditorComponent.prototype.initiat = function () {
|
|
15349
|
-
this.initiated = true;
|
|
15447
|
+
this.onRenderCompleted.emit();
|
|
15350
15448
|
};
|
|
15351
15449
|
AXSelectBoxPropertyEditorComponent.ctorParameters = function () { return [
|
|
15352
15450
|
{ type: core.ChangeDetectorRef }
|
|
15353
15451
|
]; };
|
|
15354
15452
|
__decorate([
|
|
15355
|
-
core.ViewChild(
|
|
15356
|
-
__metadata("design:type",
|
|
15453
|
+
core.ViewChild(AXSelectBoxComponent, { static: true }),
|
|
15454
|
+
__metadata("design:type", AXSelectBoxComponent)
|
|
15357
15455
|
], AXSelectBoxPropertyEditorComponent.prototype, "selectBox", void 0);
|
|
15358
15456
|
AXSelectBoxPropertyEditorComponent = __decorate([
|
|
15359
15457
|
core.Component({
|
|
15360
|
-
template: "<ax-select-
|
|
15458
|
+
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
15459
|
}),
|
|
15362
15460
|
__metadata("design:paramtypes", [core.ChangeDetectorRef])
|
|
15363
15461
|
], AXSelectBoxPropertyEditorComponent);
|
|
@@ -15396,7 +15494,7 @@
|
|
|
15396
15494
|
this.cdr.detectChanges();
|
|
15397
15495
|
};
|
|
15398
15496
|
AXRangePropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15399
|
-
this.
|
|
15497
|
+
this.onRenderCompleted.emit();
|
|
15400
15498
|
};
|
|
15401
15499
|
// getRanges() {
|
|
15402
15500
|
// return this.ranges.sort((a, b) => a.minValue - b.minValue);
|
|
@@ -16102,7 +16200,7 @@
|
|
|
16102
16200
|
}
|
|
16103
16201
|
AXColorPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16104
16202
|
this.registerForValidationForm(this.textBox);
|
|
16105
|
-
this.
|
|
16203
|
+
this.onRenderCompleted.emit();
|
|
16106
16204
|
};
|
|
16107
16205
|
AXColorPropertyEditorComponent.ctorParameters = function () { return [
|
|
16108
16206
|
{ type: core.ChangeDetectorRef }
|
|
@@ -16160,7 +16258,7 @@
|
|
|
16160
16258
|
this.columns = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
16161
16259
|
};
|
|
16162
16260
|
ColumnPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16163
|
-
this.
|
|
16261
|
+
this.onRenderCompleted.emit();
|
|
16164
16262
|
};
|
|
16165
16263
|
ColumnPropertyEditorComponent.prototype.drop = function (event) {
|
|
16166
16264
|
dragDrop.moveItemInArray(this.columns, event.previousIndex, event.currentIndex);
|
|
@@ -16320,8 +16418,8 @@
|
|
|
16320
16418
|
].filter(function (c) { return c.dataTypes == null || c.dataTypes.includes(_this.dataType); });
|
|
16321
16419
|
};
|
|
16322
16420
|
AXConditionalColorPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16323
|
-
this.initiated = true;
|
|
16324
16421
|
this.cdr.detectChanges();
|
|
16422
|
+
this.onRenderCompleted.emit();
|
|
16325
16423
|
};
|
|
16326
16424
|
AXConditionalColorPropertyEditorComponent.prototype.handleEditClick = function (item) {
|
|
16327
16425
|
var _this = this;
|
|
@@ -16520,7 +16618,7 @@
|
|
|
16520
16618
|
_super.prototype.handleValueChange.call(this, e.value);
|
|
16521
16619
|
};
|
|
16522
16620
|
AXSwitchPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16523
|
-
this.
|
|
16621
|
+
this.onRenderCompleted.emit();
|
|
16524
16622
|
};
|
|
16525
16623
|
AXSwitchPropertyEditorComponent.ctorParameters = function () { return [
|
|
16526
16624
|
{ type: core.ChangeDetectorRef }
|
|
@@ -16569,8 +16667,8 @@
|
|
|
16569
16667
|
_super.prototype.handleValueChange.call(this, e.value);
|
|
16570
16668
|
};
|
|
16571
16669
|
AXDatePropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16572
|
-
this.initiated = true;
|
|
16573
16670
|
this.registerForValidationForm(this.date);
|
|
16671
|
+
this.onRenderCompleted.emit();
|
|
16574
16672
|
};
|
|
16575
16673
|
AXDatePropertyEditorComponent.ctorParameters = function () { return [
|
|
16576
16674
|
{ type: core.ChangeDetectorRef }
|
|
@@ -16618,8 +16716,8 @@
|
|
|
16618
16716
|
_super.prototype.handleValueChange.call(this, (_a = e.value) === null || _a === void 0 ? void 0 : _a.time);
|
|
16619
16717
|
};
|
|
16620
16718
|
AXTimePropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16621
|
-
this.initiated = true;
|
|
16622
16719
|
this.registerForValidationForm(this.time);
|
|
16720
|
+
this.onRenderCompleted.emit();
|
|
16623
16721
|
};
|
|
16624
16722
|
AXTimePropertyEditorComponent.ctorParameters = function () { return [
|
|
16625
16723
|
{ type: core.ChangeDetectorRef }
|