@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
|
@@ -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,
|
|
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';
|
|
@@ -507,6 +507,14 @@ var AXBaseTextComponent = /** @class */ (function (_super) {
|
|
|
507
507
|
Input(),
|
|
508
508
|
__metadata("design:type", String)
|
|
509
509
|
], AXBaseTextComponent.prototype, "placeholder", void 0);
|
|
510
|
+
__decorate([
|
|
511
|
+
Input(),
|
|
512
|
+
__metadata("design:type", Boolean)
|
|
513
|
+
], AXBaseTextComponent.prototype, "autocomplete", void 0);
|
|
514
|
+
__decorate([
|
|
515
|
+
Input(),
|
|
516
|
+
__metadata("design:type", String)
|
|
517
|
+
], AXBaseTextComponent.prototype, "name", void 0);
|
|
510
518
|
__decorate([
|
|
511
519
|
Output(),
|
|
512
520
|
__metadata("design:type", EventEmitter)
|
|
@@ -1171,7 +1179,7 @@ var AXCalendarBoxComponent = /** @class */ (function () {
|
|
|
1171
1179
|
configurable: true
|
|
1172
1180
|
});
|
|
1173
1181
|
AXCalendarBoxComponent.prototype.findDay = function (date) {
|
|
1174
|
-
if (this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; })) {
|
|
1182
|
+
if (this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; })) {
|
|
1175
1183
|
return true;
|
|
1176
1184
|
}
|
|
1177
1185
|
else {
|
|
@@ -1179,16 +1187,16 @@ var AXCalendarBoxComponent = /** @class */ (function () {
|
|
|
1179
1187
|
}
|
|
1180
1188
|
};
|
|
1181
1189
|
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;
|
|
1190
|
+
if (this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; })) {
|
|
1191
|
+
return this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; }).style;
|
|
1184
1192
|
}
|
|
1185
1193
|
else {
|
|
1186
1194
|
return '';
|
|
1187
1195
|
}
|
|
1188
1196
|
};
|
|
1189
1197
|
AXCalendarBoxComponent.prototype.getTitle = function (date) {
|
|
1190
|
-
if (this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; })) {
|
|
1191
|
-
return this.dayStyle.find(function (c) { return c.date == date.toISOString().split('T')[0]; }).text;
|
|
1198
|
+
if (this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; })) {
|
|
1199
|
+
return this.dayStyle.find(function (c) { return c.date.split('T')[0] == date.toISOString().split('T')[0]; }).text;
|
|
1192
1200
|
}
|
|
1193
1201
|
else {
|
|
1194
1202
|
return '';
|
|
@@ -3242,7 +3250,7 @@ var AXMenu2Component = /** @class */ (function () {
|
|
|
3242
3250
|
selector: 'ax-menu2',
|
|
3243
3251
|
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 ",
|
|
3244
3252
|
encapsulation: ViewEncapsulation.None,
|
|
3245
|
-
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{
|
|
3253
|
+
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}"]
|
|
3246
3254
|
}),
|
|
3247
3255
|
__metadata("design:paramtypes", [Overlay,
|
|
3248
3256
|
ViewContainerRef,
|
|
@@ -4513,7 +4521,7 @@ var AXTextBoxComponent = /** @class */ (function (_super) {
|
|
|
4513
4521
|
AXTextBoxComponent = AXTextBoxComponent_1 = __decorate([
|
|
4514
4522
|
Component({
|
|
4515
4523
|
selector: 'ax-text-box',
|
|
4516
|
-
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>",
|
|
4524
|
+
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>",
|
|
4517
4525
|
encapsulation: ViewEncapsulation.None,
|
|
4518
4526
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4519
4527
|
host: { style: 'width: 100%' },
|
|
@@ -5315,7 +5323,8 @@ var AXDropdownComponent = /** @class */ (function (_super) {
|
|
|
5315
5323
|
var _this = this;
|
|
5316
5324
|
if (!this.overlayRef) {
|
|
5317
5325
|
var targetEl = document.querySelector('#' + this.uid);
|
|
5318
|
-
var positionStrategy = this.overlay
|
|
5326
|
+
var positionStrategy = this.overlay
|
|
5327
|
+
.position()
|
|
5319
5328
|
.flexibleConnectedTo(targetEl)
|
|
5320
5329
|
.withPositions([
|
|
5321
5330
|
{
|
|
@@ -5505,7 +5514,8 @@ var AXDatePickerComponent = /** @class */ (function (_super) {
|
|
|
5505
5514
|
this.value = new Date();
|
|
5506
5515
|
};
|
|
5507
5516
|
AXDatePickerComponent.prototype.focus = function () {
|
|
5508
|
-
this.dropdown.focus();
|
|
5517
|
+
// this.dropdown.focus();
|
|
5518
|
+
this.input.focus();
|
|
5509
5519
|
};
|
|
5510
5520
|
AXDatePickerComponent.prototype.convertMaskToDate = function (text) {
|
|
5511
5521
|
if (this.type == 'jalali') {
|
|
@@ -8071,7 +8081,7 @@ var AXNumberBoxComponent = /** @class */ (function (_super) {
|
|
|
8071
8081
|
AXNumberBoxComponent = AXNumberBoxComponent_1 = __decorate([
|
|
8072
8082
|
Component({
|
|
8073
8083
|
selector: 'ax-number-box',
|
|
8074
|
-
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",
|
|
8084
|
+
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",
|
|
8075
8085
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8076
8086
|
host: { style: 'width: 100%' },
|
|
8077
8087
|
providers: [{ provide: AXValidatableComponent, useExisting: AXNumberBoxComponent_1 }]
|
|
@@ -8169,7 +8179,7 @@ var AXPasswordBoxComponent = /** @class */ (function (_super) {
|
|
|
8169
8179
|
AXPasswordBoxComponent = AXPasswordBoxComponent_1 = __decorate([
|
|
8170
8180
|
Component({
|
|
8171
8181
|
selector: 'ax-password-box',
|
|
8172
|
-
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",
|
|
8182
|
+
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",
|
|
8173
8183
|
encapsulation: ViewEncapsulation.None,
|
|
8174
8184
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8175
8185
|
host: { style: 'width: 100%' },
|
|
@@ -9474,6 +9484,10 @@ var AXQueryBuilderRuleComponent = /** @class */ (function () {
|
|
|
9474
9484
|
value: 'not-contains',
|
|
9475
9485
|
text: AXTranslator.get('queryBuilder.not-contains')
|
|
9476
9486
|
},
|
|
9487
|
+
{
|
|
9488
|
+
value: 'contains-all',
|
|
9489
|
+
text: AXTranslator.get('queryBuilder.contains-all')
|
|
9490
|
+
},
|
|
9477
9491
|
{
|
|
9478
9492
|
value: 'null',
|
|
9479
9493
|
text: AXTranslator.get('queryBuilder.null')
|
|
@@ -10033,7 +10047,6 @@ var AXQueryBuilderService = /** @class */ (function () {
|
|
|
10033
10047
|
return __generator(this, function (_d) {
|
|
10034
10048
|
switch (_d.label) {
|
|
10035
10049
|
case 0:
|
|
10036
|
-
;
|
|
10037
10050
|
if (group.items.length > 0) {
|
|
10038
10051
|
query = ' ( ';
|
|
10039
10052
|
}
|
|
@@ -10091,8 +10104,10 @@ var AXQueryBuilderService = /** @class */ (function () {
|
|
|
10091
10104
|
case 'end-with':
|
|
10092
10105
|
codeOperator = item.operator;
|
|
10093
10106
|
break;
|
|
10107
|
+
default:
|
|
10108
|
+
codeOperator = item.operator;
|
|
10109
|
+
break;
|
|
10094
10110
|
}
|
|
10095
|
-
;
|
|
10096
10111
|
query = query + ' ' + item.caption + ' ' + codeOperator + ' ' + item.text;
|
|
10097
10112
|
_d.label = 6;
|
|
10098
10113
|
case 6:
|
|
@@ -10135,7 +10150,6 @@ var AXQueryBuilderService = /** @class */ (function () {
|
|
|
10135
10150
|
var query = '';
|
|
10136
10151
|
switch (type) {
|
|
10137
10152
|
case 'simple':
|
|
10138
|
-
;
|
|
10139
10153
|
if (group.items.length > 0) {
|
|
10140
10154
|
query = ' ( ';
|
|
10141
10155
|
}
|
|
@@ -11911,7 +11925,7 @@ var AXTextAreaComponent = /** @class */ (function (_super) {
|
|
|
11911
11925
|
AXTextAreaComponent = AXTextAreaComponent_1 = __decorate([
|
|
11912
11926
|
Component({
|
|
11913
11927
|
selector: 'ax-text-area',
|
|
11914
|
-
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>",
|
|
11928
|
+
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>",
|
|
11915
11929
|
encapsulation: ViewEncapsulation.None,
|
|
11916
11930
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11917
11931
|
host: { style: 'width: 100%' },
|
|
@@ -14768,12 +14782,25 @@ var AXAccordionModule = /** @class */ (function () {
|
|
|
14768
14782
|
|
|
14769
14783
|
var AXProperyEditorComponent = /** @class */ (function () {
|
|
14770
14784
|
function AXProperyEditorComponent(cdr) {
|
|
14785
|
+
var _this = this;
|
|
14771
14786
|
this.cdr = cdr;
|
|
14772
14787
|
this.readonly = false;
|
|
14773
|
-
this.
|
|
14788
|
+
this._initiated = false;
|
|
14789
|
+
this._valueBound = false;
|
|
14774
14790
|
this.validatableComponentRegistered = new Subject();
|
|
14775
14791
|
this.valueChange = new EventEmitter();
|
|
14792
|
+
this.onRenderCompleted = new EventEmitter();
|
|
14793
|
+
this.onRenderCompleted.subscribe(function () {
|
|
14794
|
+
_this._initiated = true;
|
|
14795
|
+
});
|
|
14776
14796
|
}
|
|
14797
|
+
Object.defineProperty(AXProperyEditorComponent.prototype, "initiated", {
|
|
14798
|
+
get: function () {
|
|
14799
|
+
return this._initiated && this._valueBound;
|
|
14800
|
+
},
|
|
14801
|
+
enumerable: true,
|
|
14802
|
+
configurable: true
|
|
14803
|
+
});
|
|
14777
14804
|
AXProperyEditorComponent.prototype.registerForValidationForm = function (component) {
|
|
14778
14805
|
this.validatableComponentRegistered.next(component);
|
|
14779
14806
|
};
|
|
@@ -14782,10 +14809,15 @@ var AXProperyEditorComponent = /** @class */ (function () {
|
|
|
14782
14809
|
return this._value;
|
|
14783
14810
|
},
|
|
14784
14811
|
set: function (v) {
|
|
14812
|
+
var _this = this;
|
|
14785
14813
|
if (v !== this._value) {
|
|
14786
14814
|
this._value = v;
|
|
14787
14815
|
this.valueChange.emit(v);
|
|
14788
14816
|
this.cdr.detectChanges();
|
|
14817
|
+
//TODO: find better solution
|
|
14818
|
+
setTimeout(function () {
|
|
14819
|
+
_this._valueBound = true;
|
|
14820
|
+
}, 100);
|
|
14789
14821
|
}
|
|
14790
14822
|
},
|
|
14791
14823
|
enumerable: true,
|
|
@@ -14794,12 +14826,14 @@ var AXProperyEditorComponent = /** @class */ (function () {
|
|
|
14794
14826
|
AXProperyEditorComponent.prototype.handleValueChange = function (v) {
|
|
14795
14827
|
this.value = v;
|
|
14796
14828
|
};
|
|
14797
|
-
AXProperyEditorComponent.prototype.initiat = function () {
|
|
14798
|
-
};
|
|
14799
14829
|
__decorate([
|
|
14800
14830
|
Output(),
|
|
14801
14831
|
__metadata("design:type", EventEmitter)
|
|
14802
14832
|
], AXProperyEditorComponent.prototype, "valueChange", void 0);
|
|
14833
|
+
__decorate([
|
|
14834
|
+
Output(),
|
|
14835
|
+
__metadata("design:type", EventEmitter)
|
|
14836
|
+
], AXProperyEditorComponent.prototype, "onRenderCompleted", void 0);
|
|
14803
14837
|
__decorate([
|
|
14804
14838
|
Input(),
|
|
14805
14839
|
__metadata("design:type", Object),
|
|
@@ -14862,11 +14896,12 @@ function propertyEditor(options) {
|
|
|
14862
14896
|
}
|
|
14863
14897
|
|
|
14864
14898
|
var AXPropertyEditorRendererDirective = /** @class */ (function () {
|
|
14865
|
-
function AXPropertyEditorRendererDirective(target, componentFactoryResolver, renderService) {
|
|
14899
|
+
function AXPropertyEditorRendererDirective(target, componentFactoryResolver, renderService, eventService) {
|
|
14866
14900
|
this.target = target;
|
|
14867
14901
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
14868
14902
|
this.renderService = renderService;
|
|
14869
|
-
this.
|
|
14903
|
+
this.eventService = eventService;
|
|
14904
|
+
this._context = {};
|
|
14870
14905
|
this.onValueChange = new EventEmitter();
|
|
14871
14906
|
}
|
|
14872
14907
|
Object.defineProperty(AXPropertyEditorRendererDirective.prototype, "context", {
|
|
@@ -14875,9 +14910,6 @@ var AXPropertyEditorRendererDirective = /** @class */ (function () {
|
|
|
14875
14910
|
},
|
|
14876
14911
|
set: function (v) {
|
|
14877
14912
|
this._context = v;
|
|
14878
|
-
if (v && this.instance) {
|
|
14879
|
-
this.assignProps();
|
|
14880
|
-
}
|
|
14881
14913
|
},
|
|
14882
14914
|
enumerable: true,
|
|
14883
14915
|
configurable: true
|
|
@@ -14896,60 +14928,110 @@ var AXPropertyEditorRendererDirective = /** @class */ (function () {
|
|
|
14896
14928
|
var cmpRef = _this.target.createComponent(factory);
|
|
14897
14929
|
_this.instance = cmpRef.instance;
|
|
14898
14930
|
_this.subscription = _this.instance.valueChange.subscribe(function (value) {
|
|
14899
|
-
|
|
14900
|
-
|
|
14901
|
-
|
|
14931
|
+
var _a, _b;
|
|
14932
|
+
_this.property.value = value;
|
|
14933
|
+
_this.onValueChange.emit(_this.property);
|
|
14934
|
+
if ((_b = (_a = _this.property) === null || _a === void 0 ? void 0 : _a.property) === null || _b === void 0 ? void 0 : _b.name) {
|
|
14935
|
+
setTimeout(function () {
|
|
14936
|
+
_this.eventService.broadcast("props-" + _this.groupId + "-" + _this.property.property.name, _this.property);
|
|
14937
|
+
}, 0);
|
|
14902
14938
|
}
|
|
14903
14939
|
});
|
|
14904
|
-
|
|
14940
|
+
_this.watchChanges();
|
|
14941
|
+
_this.assignProps();
|
|
14942
|
+
_this.instance.value = _this.property.value;
|
|
14943
|
+
// this.instance.onRenderCompleted.subscribe(() => {
|
|
14944
|
+
// });
|
|
14905
14945
|
if (_this.validationForm) {
|
|
14906
14946
|
_this.instance.validatableComponentRegistered.subscribe(function (v) {
|
|
14907
14947
|
_this.validationForm.addWidget(v);
|
|
14908
14948
|
});
|
|
14909
14949
|
}
|
|
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
14950
|
}
|
|
14919
14951
|
});
|
|
14920
14952
|
};
|
|
14921
|
-
AXPropertyEditorRendererDirective.prototype.
|
|
14953
|
+
AXPropertyEditorRendererDirective.prototype.watchChanges = function () {
|
|
14922
14954
|
var _this = this;
|
|
14955
|
+
var _a, _b;
|
|
14956
|
+
var varsRegx = /((\$\{[a-zA-Z_0-9]+\})+)/gm;
|
|
14957
|
+
var varNameRegx = /[a-zA-Z_0-9]+/gm;
|
|
14923
14958
|
var options = this.property.property.editorOptions;
|
|
14924
14959
|
if (!options) {
|
|
14925
14960
|
return;
|
|
14926
14961
|
}
|
|
14927
14962
|
var _loop_1 = function (p) {
|
|
14963
|
+
if (options.hasOwnProperty(p)) {
|
|
14964
|
+
var opt_1 = options[p];
|
|
14965
|
+
var vars_1 = typeof opt_1 === 'string' ? (_a = opt_1) === null || _a === void 0 ? void 0 : _a.match(varsRegx) : [];
|
|
14966
|
+
// bind the props
|
|
14967
|
+
if ((_b = vars_1) === null || _b === void 0 ? void 0 : _b.length) {
|
|
14968
|
+
vars_1.forEach(function (v) {
|
|
14969
|
+
var _a;
|
|
14970
|
+
var path = ((_a = v.match(varNameRegx)) === null || _a === void 0 ? void 0 : _a.length) ? v.match(varNameRegx)[0] : null;
|
|
14971
|
+
if (path) {
|
|
14972
|
+
_this.eventService.on("props-" + _this.groupId + "-" + path, function (e) {
|
|
14973
|
+
var execCode = opt_1.slice();
|
|
14974
|
+
var params = {};
|
|
14975
|
+
vars_1.forEach(function (vv) {
|
|
14976
|
+
var _a;
|
|
14977
|
+
var p2 = ((_a = vv.match(varNameRegx)) === null || _a === void 0 ? void 0 : _a.length) ? vv.match(varNameRegx)[0] : null;
|
|
14978
|
+
params[p2] = AXObjectUtil.deepCopy(_this.context[p2]) || null;
|
|
14979
|
+
execCode = execCode.replace(vv, "__params__." + p2);
|
|
14980
|
+
});
|
|
14981
|
+
var func = new Function('__params__', "try { return " + execCode + "} catch(e){ console.log(e); return null; }");
|
|
14982
|
+
var val = func(params);
|
|
14983
|
+
var keys = p.split('.');
|
|
14984
|
+
var prop = Object.assign({}, _this.instance[keys[0]]);
|
|
14985
|
+
if (keys.length > 1) {
|
|
14986
|
+
_this.instance[keys[0]] = setPropByPath(prop, p, val);
|
|
14987
|
+
}
|
|
14988
|
+
else {
|
|
14989
|
+
setPropByPath(_this.instance, p, val);
|
|
14990
|
+
}
|
|
14991
|
+
});
|
|
14992
|
+
}
|
|
14993
|
+
});
|
|
14994
|
+
}
|
|
14995
|
+
// else {
|
|
14996
|
+
// this.assignProps();
|
|
14997
|
+
// }
|
|
14998
|
+
}
|
|
14999
|
+
};
|
|
15000
|
+
for (var p in options) {
|
|
15001
|
+
_loop_1(p);
|
|
15002
|
+
}
|
|
15003
|
+
};
|
|
15004
|
+
AXPropertyEditorRendererDirective.prototype.assignProps = function () {
|
|
15005
|
+
var _this = this;
|
|
15006
|
+
var _a, _b;
|
|
15007
|
+
var options = this.property.property.editorOptions;
|
|
15008
|
+
if (!options) {
|
|
15009
|
+
return;
|
|
15010
|
+
}
|
|
15011
|
+
var varsRegx = /((\$\{[a-zA-Z_0-9]+\})+)/gm;
|
|
15012
|
+
var _loop_2 = function (p) {
|
|
14928
15013
|
if (options.hasOwnProperty(p)) {
|
|
14929
15014
|
var opt = options[p];
|
|
14930
|
-
|
|
14931
|
-
|
|
14932
|
-
|
|
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
|
-
}
|
|
15015
|
+
var vars = typeof opt === 'string' ? (_a = opt) === null || _a === void 0 ? void 0 : _a.match(varsRegx) : [];
|
|
15016
|
+
if ((_b = vars) === null || _b === void 0 ? void 0 : _b.length) {
|
|
15017
|
+
return "continue";
|
|
14936
15018
|
}
|
|
14937
15019
|
else {
|
|
14938
|
-
var
|
|
14939
|
-
if (
|
|
14940
|
-
|
|
14941
|
-
_this.instance
|
|
15020
|
+
var val_1 = typeof opt === 'function' ? opt({ data: this_1.context, host: this_1.host }, this_1.property) : opt;
|
|
15021
|
+
if (val_1 instanceof Promise) {
|
|
15022
|
+
val_1.then(function (v) {
|
|
15023
|
+
setPropByPath(_this.instance, p, val_1);
|
|
14942
15024
|
});
|
|
14943
15025
|
}
|
|
14944
15026
|
else {
|
|
14945
|
-
this_1.instance
|
|
15027
|
+
setPropByPath(this_1.instance, p, val_1);
|
|
14946
15028
|
}
|
|
14947
15029
|
}
|
|
14948
15030
|
}
|
|
14949
15031
|
};
|
|
14950
15032
|
var this_1 = this;
|
|
14951
15033
|
for (var p in options) {
|
|
14952
|
-
|
|
15034
|
+
_loop_2(p);
|
|
14953
15035
|
}
|
|
14954
15036
|
};
|
|
14955
15037
|
AXPropertyEditorRendererDirective.prototype.ngOnDestroy = function () {
|
|
@@ -14960,16 +15042,13 @@ var AXPropertyEditorRendererDirective = /** @class */ (function () {
|
|
|
14960
15042
|
AXPropertyEditorRendererDirective.ctorParameters = function () { return [
|
|
14961
15043
|
{ type: ViewContainerRef },
|
|
14962
15044
|
{ type: ComponentFactoryResolver },
|
|
14963
|
-
{ type: AXRenderService }
|
|
15045
|
+
{ type: AXRenderService },
|
|
15046
|
+
{ type: AXEventService }
|
|
14964
15047
|
]; };
|
|
14965
15048
|
__decorate([
|
|
14966
15049
|
Input(),
|
|
14967
15050
|
__metadata("design:type", Object)
|
|
14968
15051
|
], AXPropertyEditorRendererDirective.prototype, "property", void 0);
|
|
14969
|
-
__decorate([
|
|
14970
|
-
Input(),
|
|
14971
|
-
__metadata("design:type", Boolean)
|
|
14972
|
-
], AXPropertyEditorRendererDirective.prototype, "readonly", void 0);
|
|
14973
15052
|
__decorate([
|
|
14974
15053
|
Input(),
|
|
14975
15054
|
__metadata("design:type", AXValidationFormComponent)
|
|
@@ -14983,6 +15062,10 @@ var AXPropertyEditorRendererDirective = /** @class */ (function () {
|
|
|
14983
15062
|
Input(),
|
|
14984
15063
|
__metadata("design:type", Object)
|
|
14985
15064
|
], AXPropertyEditorRendererDirective.prototype, "host", void 0);
|
|
15065
|
+
__decorate([
|
|
15066
|
+
Input(),
|
|
15067
|
+
__metadata("design:type", Object)
|
|
15068
|
+
], AXPropertyEditorRendererDirective.prototype, "groupId", void 0);
|
|
14986
15069
|
__decorate([
|
|
14987
15070
|
Output(),
|
|
14988
15071
|
__metadata("design:type", EventEmitter)
|
|
@@ -14993,7 +15076,8 @@ var AXPropertyEditorRendererDirective = /** @class */ (function () {
|
|
|
14993
15076
|
}),
|
|
14994
15077
|
__metadata("design:paramtypes", [ViewContainerRef,
|
|
14995
15078
|
ComponentFactoryResolver,
|
|
14996
|
-
AXRenderService
|
|
15079
|
+
AXRenderService,
|
|
15080
|
+
AXEventService])
|
|
14997
15081
|
], AXPropertyEditorRendererDirective);
|
|
14998
15082
|
return AXPropertyEditorRendererDirective;
|
|
14999
15083
|
}());
|
|
@@ -15011,7 +15095,7 @@ var AXTextPropertyEditorComponent = /** @class */ (function (_super) {
|
|
|
15011
15095
|
};
|
|
15012
15096
|
AXTextPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15013
15097
|
this.registerForValidationForm(this.textBox);
|
|
15014
|
-
this.
|
|
15098
|
+
this.onRenderCompleted.emit();
|
|
15015
15099
|
};
|
|
15016
15100
|
AXTextPropertyEditorComponent.ctorParameters = function () { return [
|
|
15017
15101
|
{ type: ChangeDetectorRef }
|
|
@@ -15061,8 +15145,8 @@ var AXNumberBoxPropertyEditorComponent = /** @class */ (function (_super) {
|
|
|
15061
15145
|
_super.prototype.handleValueChange.call(this, e.value);
|
|
15062
15146
|
};
|
|
15063
15147
|
AXNumberBoxPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15064
|
-
this.initiated = true;
|
|
15065
15148
|
this.registerForValidationForm(this.textBox);
|
|
15149
|
+
this.onRenderCompleted.emit();
|
|
15066
15150
|
};
|
|
15067
15151
|
AXNumberBoxPropertyEditorComponent.ctorParameters = function () { return [
|
|
15068
15152
|
{ type: ChangeDetectorRef }
|
|
@@ -15107,16 +15191,18 @@ var AXSelectBoxPropertyEditorComponent = /** @class */ (function (_super) {
|
|
|
15107
15191
|
_this.selectionDataMode = 'value';
|
|
15108
15192
|
_this.allowSearch = true;
|
|
15109
15193
|
_this.allowNull = false;
|
|
15194
|
+
_this.disabled = false;
|
|
15110
15195
|
_this.items = [];
|
|
15111
15196
|
_this.remoteOperation = false;
|
|
15112
15197
|
_this.provideData = function (e) {
|
|
15113
15198
|
return new Promise(function (resolve) {
|
|
15114
15199
|
var func = function () {
|
|
15115
15200
|
if (Array.isArray(_this.items)) {
|
|
15116
|
-
resolve(_this.items);
|
|
15201
|
+
resolve(_this.items.slice());
|
|
15117
15202
|
}
|
|
15118
15203
|
else if (typeof _this.items === 'function') {
|
|
15119
|
-
|
|
15204
|
+
var a = Object.assign(e, { sender: _this });
|
|
15205
|
+
resolve(_this.items(a));
|
|
15120
15206
|
}
|
|
15121
15207
|
else {
|
|
15122
15208
|
resolve([]);
|
|
@@ -15132,26 +15218,38 @@ var AXSelectBoxPropertyEditorComponent = /** @class */ (function (_super) {
|
|
|
15132
15218
|
};
|
|
15133
15219
|
return _this;
|
|
15134
15220
|
}
|
|
15221
|
+
Object.defineProperty(AXSelectBoxPropertyEditorComponent.prototype, "filter", {
|
|
15222
|
+
get: function () {
|
|
15223
|
+
return this._filter;
|
|
15224
|
+
},
|
|
15225
|
+
set: function (v) {
|
|
15226
|
+
var _a;
|
|
15227
|
+
this._filter = v;
|
|
15228
|
+
if (this.value && this.initiated) {
|
|
15229
|
+
this.value = null;
|
|
15230
|
+
(_a = this.selectBox) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
15231
|
+
}
|
|
15232
|
+
},
|
|
15233
|
+
enumerable: true,
|
|
15234
|
+
configurable: true
|
|
15235
|
+
});
|
|
15135
15236
|
AXSelectBoxPropertyEditorComponent.prototype.handleValueChange = function (e) {
|
|
15136
|
-
_super.prototype.handleValueChange.call(this, e.
|
|
15237
|
+
_super.prototype.handleValueChange.call(this, e.selectedValues);
|
|
15137
15238
|
};
|
|
15138
15239
|
AXSelectBoxPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15139
|
-
this.selectBox.refresh();
|
|
15140
15240
|
this.registerForValidationForm(this.selectBox);
|
|
15141
|
-
|
|
15142
|
-
AXSelectBoxPropertyEditorComponent.prototype.initiat = function () {
|
|
15143
|
-
this.initiated = true;
|
|
15241
|
+
this.onRenderCompleted.emit();
|
|
15144
15242
|
};
|
|
15145
15243
|
AXSelectBoxPropertyEditorComponent.ctorParameters = function () { return [
|
|
15146
15244
|
{ type: ChangeDetectorRef }
|
|
15147
15245
|
]; };
|
|
15148
15246
|
__decorate([
|
|
15149
|
-
ViewChild(
|
|
15150
|
-
__metadata("design:type",
|
|
15247
|
+
ViewChild(AXSelectBoxComponent, { static: true }),
|
|
15248
|
+
__metadata("design:type", AXSelectBoxComponent)
|
|
15151
15249
|
], AXSelectBoxPropertyEditorComponent.prototype, "selectBox", void 0);
|
|
15152
15250
|
AXSelectBoxPropertyEditorComponent = __decorate([
|
|
15153
15251
|
Component({
|
|
15154
|
-
template: "<ax-select-
|
|
15252
|
+
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
15253
|
}),
|
|
15156
15254
|
__metadata("design:paramtypes", [ChangeDetectorRef])
|
|
15157
15255
|
], AXSelectBoxPropertyEditorComponent);
|
|
@@ -15190,7 +15288,7 @@ var AXRangePropertyEditorComponent = /** @class */ (function (_super) {
|
|
|
15190
15288
|
this.cdr.detectChanges();
|
|
15191
15289
|
};
|
|
15192
15290
|
AXRangePropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15193
|
-
this.
|
|
15291
|
+
this.onRenderCompleted.emit();
|
|
15194
15292
|
};
|
|
15195
15293
|
// getRanges() {
|
|
15196
15294
|
// return this.ranges.sort((a, b) => a.minValue - b.minValue);
|
|
@@ -15896,7 +15994,7 @@ var AXColorPropertyEditorComponent = /** @class */ (function (_super) {
|
|
|
15896
15994
|
}
|
|
15897
15995
|
AXColorPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15898
15996
|
this.registerForValidationForm(this.textBox);
|
|
15899
|
-
this.
|
|
15997
|
+
this.onRenderCompleted.emit();
|
|
15900
15998
|
};
|
|
15901
15999
|
AXColorPropertyEditorComponent.ctorParameters = function () { return [
|
|
15902
16000
|
{ type: ChangeDetectorRef }
|
|
@@ -15954,7 +16052,7 @@ var ColumnPropertyEditorComponent = /** @class */ (function (_super) {
|
|
|
15954
16052
|
this.columns = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
15955
16053
|
};
|
|
15956
16054
|
ColumnPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
15957
|
-
this.
|
|
16055
|
+
this.onRenderCompleted.emit();
|
|
15958
16056
|
};
|
|
15959
16057
|
ColumnPropertyEditorComponent.prototype.drop = function (event) {
|
|
15960
16058
|
moveItemInArray(this.columns, event.previousIndex, event.currentIndex);
|
|
@@ -16114,8 +16212,8 @@ var AXConditionalColorPropertyEditorComponent = /** @class */ (function (_super)
|
|
|
16114
16212
|
].filter(function (c) { return c.dataTypes == null || c.dataTypes.includes(_this.dataType); });
|
|
16115
16213
|
};
|
|
16116
16214
|
AXConditionalColorPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16117
|
-
this.initiated = true;
|
|
16118
16215
|
this.cdr.detectChanges();
|
|
16216
|
+
this.onRenderCompleted.emit();
|
|
16119
16217
|
};
|
|
16120
16218
|
AXConditionalColorPropertyEditorComponent.prototype.handleEditClick = function (item) {
|
|
16121
16219
|
var _this = this;
|
|
@@ -16314,7 +16412,7 @@ var AXSwitchPropertyEditorComponent = /** @class */ (function (_super) {
|
|
|
16314
16412
|
_super.prototype.handleValueChange.call(this, e.value);
|
|
16315
16413
|
};
|
|
16316
16414
|
AXSwitchPropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16317
|
-
this.
|
|
16415
|
+
this.onRenderCompleted.emit();
|
|
16318
16416
|
};
|
|
16319
16417
|
AXSwitchPropertyEditorComponent.ctorParameters = function () { return [
|
|
16320
16418
|
{ type: ChangeDetectorRef }
|
|
@@ -16363,8 +16461,8 @@ var AXDatePropertyEditorComponent = /** @class */ (function (_super) {
|
|
|
16363
16461
|
_super.prototype.handleValueChange.call(this, e.value);
|
|
16364
16462
|
};
|
|
16365
16463
|
AXDatePropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16366
|
-
this.initiated = true;
|
|
16367
16464
|
this.registerForValidationForm(this.date);
|
|
16465
|
+
this.onRenderCompleted.emit();
|
|
16368
16466
|
};
|
|
16369
16467
|
AXDatePropertyEditorComponent.ctorParameters = function () { return [
|
|
16370
16468
|
{ type: ChangeDetectorRef }
|
|
@@ -16412,8 +16510,8 @@ var AXTimePropertyEditorComponent = /** @class */ (function (_super) {
|
|
|
16412
16510
|
_super.prototype.handleValueChange.call(this, (_a = e.value) === null || _a === void 0 ? void 0 : _a.time);
|
|
16413
16511
|
};
|
|
16414
16512
|
AXTimePropertyEditorComponent.prototype.ngAfterViewInit = function () {
|
|
16415
|
-
this.initiated = true;
|
|
16416
16513
|
this.registerForValidationForm(this.time);
|
|
16514
|
+
this.onRenderCompleted.emit();
|
|
16417
16515
|
};
|
|
16418
16516
|
AXTimePropertyEditorComponent.ctorParameters = function () { return [
|
|
16419
16517
|
{ type: ChangeDetectorRef }
|