@acorex/components 4.2.20 → 4.2.23
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/esm2020/lib/checkbox/checkbox.component.mjs +5 -5
- package/esm2020/lib/property-editor/editors/check-editor/check-editor.mjs +61 -0
- package/esm2020/lib/property-editor/editors/check-editor/check.module.mjs +22 -0
- package/esm2020/lib/property-editor/editors/selection-editor/selection-editor.mjs +72 -0
- package/esm2020/lib/property-editor/editors/selection-editor/selection.module.mjs +22 -0
- package/esm2020/lib/property-editor/property-editor-renderer.directive.mjs +2 -1
- package/esm2020/lib/property-editor/property-editor.module.mjs +41 -17
- package/esm2020/lib/search-bar/search-bar.component.mjs +39 -16
- package/esm2020/lib/selection-list/selection-list.component.mjs +3 -3
- package/fesm2015/acorex-components.mjs +701 -506
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +724 -529
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/checkbox/checkbox.component.d.ts +2 -2
- package/lib/property-editor/editors/check-editor/check-editor.d.ts +19 -0
- package/lib/property-editor/editors/check-editor/check.module.d.ts +11 -0
- package/lib/property-editor/editors/selection-editor/selection-editor.d.ts +24 -0
- package/lib/property-editor/editors/selection-editor/selection.module.d.ts +11 -0
- package/lib/property-editor/property-editor.module.d.ts +4 -2
- package/lib/search-bar/search-bar.component.d.ts +8 -4
- package/lib/selection-list/selection-list.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -3076,7 +3076,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3076
3076
|
|
|
3077
3077
|
class AXCheckBoxItemClick extends AXHtmlEvent {
|
|
3078
3078
|
}
|
|
3079
|
-
class AXCheckBoxComponent extends
|
|
3079
|
+
class AXCheckBoxComponent extends AXValidatableComponent {
|
|
3080
3080
|
constructor(cdr, ref) {
|
|
3081
3081
|
super();
|
|
3082
3082
|
this.cdr = cdr;
|
|
@@ -3138,10 +3138,10 @@ class AXCheckBoxComponent extends AXBaseComponent {
|
|
|
3138
3138
|
}
|
|
3139
3139
|
}
|
|
3140
3140
|
AXCheckBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3141
|
-
AXCheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: { readonly: "readonly", disabled: "disabled", size: "size", label: "label", tabIndex: "tabIndex", indeterminate: "indeterminate", value: "value" }, outputs: { onValueChanged: "onValueChanged", valueChange: "valueChange", onClick: "onClick" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!-- <label class=\"ax checkbox {{size}}\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\"\r\n (click)=\"handleClick($event)\">\r\n {{ label }}\r\n <input #input type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\"\r\n [disabled]=\"disabled || readonly\" />\r\n <span class=\"checkmark\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"></span>\r\n\r\n</label> -->\r\n\r\n\r\n<!-- [(ngModel)]=\"value\" -->\r\n<!-- (click)=\"handleClick($event)\" -->\r\n\r\n<label class=\"ax-checkbox-container\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\">\r\n\r\n <input #input class=\"ax-checkbox\" type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [class.checked]=\"value\"\r\n [checked]=\"value\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\" (click)=\"handleClick($event)\"\r\n [disabled]=\"disabled || readonly\" />\r\n\r\n\r\n <span>{{ label ? label : ' ' }}</span>\r\n</label>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3141
|
+
AXCheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: { readonly: "readonly", disabled: "disabled", size: "size", label: "label", tabIndex: "tabIndex", indeterminate: "indeterminate", value: "value" }, outputs: { onValueChanged: "onValueChanged", valueChange: "valueChange", onClick: "onClick" }, providers: [{ provide: AXValidatableComponent, useExisting: AXCheckBoxComponent }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!-- <label class=\"ax checkbox {{size}}\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\"\r\n (click)=\"handleClick($event)\">\r\n {{ label }}\r\n <input #input type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\"\r\n [disabled]=\"disabled || readonly\" />\r\n <span class=\"checkmark\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"></span>\r\n\r\n</label> -->\r\n\r\n\r\n<!-- [(ngModel)]=\"value\" -->\r\n<!-- (click)=\"handleClick($event)\" -->\r\n\r\n<label class=\"ax-checkbox-container\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\">\r\n\r\n <input #input class=\"ax-checkbox\" type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [class.checked]=\"value\"\r\n [checked]=\"value\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\" (click)=\"handleClick($event)\"\r\n [disabled]=\"disabled || readonly\" />\r\n\r\n\r\n <span>{{ label ? label : ' ' }}</span>\r\n</label>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3142
3142
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxComponent, decorators: [{
|
|
3143
3143
|
type: Component,
|
|
3144
|
-
args: [{ selector: 'ax-check-box', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <label class=\"ax checkbox {{size}}\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\"\r\n (click)=\"handleClick($event)\">\r\n {{ label }}\r\n <input #input type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\"\r\n [disabled]=\"disabled || readonly\" />\r\n <span class=\"checkmark\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"></span>\r\n\r\n</label> -->\r\n\r\n\r\n<!-- [(ngModel)]=\"value\" -->\r\n<!-- (click)=\"handleClick($event)\" -->\r\n\r\n<label class=\"ax-checkbox-container\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\">\r\n\r\n <input #input class=\"ax-checkbox\" type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [class.checked]=\"value\"\r\n [checked]=\"value\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\" (click)=\"handleClick($event)\"\r\n [disabled]=\"disabled || readonly\" />\r\n\r\n\r\n <span>{{ label ? label : ' ' }}</span>\r\n</label>" }]
|
|
3144
|
+
args: [{ selector: 'ax-check-box', encapsulation: ViewEncapsulation.None, providers: [{ provide: AXValidatableComponent, useExisting: AXCheckBoxComponent }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <label class=\"ax checkbox {{size}}\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\"\r\n (click)=\"handleClick($event)\">\r\n {{ label }}\r\n <input #input type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\"\r\n [disabled]=\"disabled || readonly\" />\r\n <span class=\"checkmark\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"></span>\r\n\r\n</label> -->\r\n\r\n\r\n<!-- [(ngModel)]=\"value\" -->\r\n<!-- (click)=\"handleClick($event)\" -->\r\n\r\n<label class=\"ax-checkbox-container\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\">\r\n\r\n <input #input class=\"ax-checkbox\" type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [class.checked]=\"value\"\r\n [checked]=\"value\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\" (click)=\"handleClick($event)\"\r\n [disabled]=\"disabled || readonly\" />\r\n\r\n\r\n <span>{{ label ? label : ' ' }}</span>\r\n</label>" }]
|
|
3145
3145
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { input: [{
|
|
3146
3146
|
type: ViewChild,
|
|
3147
3147
|
args: ['input', { static: true }]
|
|
@@ -3432,7 +3432,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3432
3432
|
type: Input
|
|
3433
3433
|
}] } });
|
|
3434
3434
|
|
|
3435
|
-
class AXSelectionListComponent extends
|
|
3435
|
+
class AXSelectionListComponent extends AXValidatableComponent {
|
|
3436
3436
|
constructor(cdr) {
|
|
3437
3437
|
super();
|
|
3438
3438
|
this.cdr = cdr;
|
|
@@ -10117,6 +10117,7 @@ class AXPropertyEditorRendererDirective {
|
|
|
10117
10117
|
}
|
|
10118
10118
|
createComponent() {
|
|
10119
10119
|
this.renderService.findLoadedComponentByRoute(this.property.property.editorClass).then(c => {
|
|
10120
|
+
debugger;
|
|
10120
10121
|
if (c) {
|
|
10121
10122
|
const factory = this.componentFactoryResolver.resolveComponentFactory(c.component);
|
|
10122
10123
|
const cmpRef = this.target.createComponent(factory);
|
|
@@ -10242,16 +10243,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
10242
10243
|
}] } });
|
|
10243
10244
|
|
|
10244
10245
|
class AXSearchBarComponent {
|
|
10245
|
-
constructor() {
|
|
10246
|
+
constructor(ref) {
|
|
10247
|
+
this.ref = ref;
|
|
10246
10248
|
this.size = 'md';
|
|
10247
10249
|
this.disabled = false;
|
|
10248
|
-
this.
|
|
10250
|
+
this.rtl = AXConfig.get('layout.rtl');
|
|
10251
|
+
this.onValueChange = new EventEmitter();
|
|
10249
10252
|
this.onSearchValue = new EventEmitter();
|
|
10250
10253
|
this._items = [];
|
|
10251
10254
|
this._filterItems = [];
|
|
10252
10255
|
this._filterItemsClone = [];
|
|
10253
10256
|
this._context = {};
|
|
10254
10257
|
}
|
|
10258
|
+
set items(v) {
|
|
10259
|
+
debugger;
|
|
10260
|
+
v.forEach((el) => {
|
|
10261
|
+
if (el.value != null) {
|
|
10262
|
+
this._filterItems.push({
|
|
10263
|
+
name: el.property.name,
|
|
10264
|
+
title: el.property.title,
|
|
10265
|
+
value: el.value
|
|
10266
|
+
});
|
|
10267
|
+
}
|
|
10268
|
+
});
|
|
10269
|
+
this._items = _.chain(v).groupBy(x => x.property.row).map((value, key) => ({ row: key, items: value })).value();
|
|
10270
|
+
}
|
|
10271
|
+
clearItem(name) {
|
|
10272
|
+
this._editors.find(e => e.property.property.name == name).clear();
|
|
10273
|
+
}
|
|
10255
10274
|
handleButtonClick() {
|
|
10256
10275
|
this.dropdown.toggle();
|
|
10257
10276
|
}
|
|
@@ -10266,6 +10285,7 @@ class AXSearchBarComponent {
|
|
|
10266
10285
|
value: e.value
|
|
10267
10286
|
});
|
|
10268
10287
|
}
|
|
10288
|
+
this.onValueChange.emit(e);
|
|
10269
10289
|
}
|
|
10270
10290
|
handleItemRemoveClick(item) {
|
|
10271
10291
|
this._editors.forEach(e => {
|
|
@@ -10276,7 +10296,7 @@ class AXSearchBarComponent {
|
|
|
10276
10296
|
this._filterItems = this._filterItems.filter((el) => el.name != item.name);
|
|
10277
10297
|
}
|
|
10278
10298
|
search() {
|
|
10279
|
-
this._filterItems = JSON.parse(JSON.stringify(this._filterItemsClone));
|
|
10299
|
+
this._filterItems = JSON.parse(JSON.stringify(this._filterItemsClone.filter((el) => el.value != null && el.value != '')));
|
|
10280
10300
|
this.handleButtonClick();
|
|
10281
10301
|
this.onSearchValue.emit(this._filterItems);
|
|
10282
10302
|
}
|
|
@@ -10287,6 +10307,7 @@ class AXSearchBarComponent {
|
|
|
10287
10307
|
this._filterItems = [];
|
|
10288
10308
|
this._filterItemsClone = [];
|
|
10289
10309
|
this.handleButtonClick();
|
|
10310
|
+
this.onSearchValue.emit(this._filterItems);
|
|
10290
10311
|
}
|
|
10291
10312
|
renderCol(e) {
|
|
10292
10313
|
let className = [];
|
|
@@ -10314,15 +10335,14 @@ class AXSearchBarComponent {
|
|
|
10314
10335
|
return className.toString().replace(/,/, ' ');
|
|
10315
10336
|
}
|
|
10316
10337
|
ngOnInit() {
|
|
10317
|
-
this._items = _.chain(this.items).groupBy(x => x.property.row).map((value, key) => ({ row: key, items: value })).value();
|
|
10318
10338
|
}
|
|
10319
10339
|
}
|
|
10320
|
-
AXSearchBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10321
|
-
AXSearchBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSearchBarComponent, selector: "ax-search-bar", inputs: { size: "size", disabled: "disabled", items: "items" }, outputs: { onSearchValue: "onSearchValue" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }, { propertyName: "_editors", predicate: AXPropertyEditorRendererDirective, descendants: true }], ngImport: i0, template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\">\r\n <b>{{item.title}} :</b> {{item.value}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n <i class=\"far fa-times close\"></i>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <ax-form-group
|
|
10340
|
+
AXSearchBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10341
|
+
AXSearchBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSearchBarComponent, selector: "ax-search-bar", inputs: { size: "size", disabled: "disabled", items: "items", rtl: "rtl" }, outputs: { onValueChange: "onValueChange", onSearchValue: "onSearchValue" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }, { propertyName: "_editors", predicate: AXPropertyEditorRendererDirective, descendants: true }], ngImport: i0, template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\">\r\n <b>{{item.title}} :</b> {{item.value}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n <i class=\"far fa-times close\"></i>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <!-- <ax-form-group> -->\r\n <div *ngIf=\"prop.property.visible != false\">\r\n <ax-label>{{prop.property.title}}</ax-label>\r\n <ng-container ax-property-editor-renderer [property]=\"prop\" [context]=\"_context\"\r\n (onValueChange)=\"handleValueChange($event)\"></ng-container>\r\n </div>\r\n <!-- </ax-form-group> -->\r\n </div>\r\n </div>\r\n <div class=\"footer-button\">\r\n <ax-button (click)=\"search()\">{{'common.search' | trans}}</ax-button>\r\n <ax-button type=\"blank danger\" (click)=\"clear()\">{{'dataGrid.clearFilter' | trans}}</ax-button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button end icon=\"far fa-sliders-h icon\" type=\"light blank\" [disabled]=\"disabled\" [size]=\"size\"\r\n [tabIndex]=\"-1\" (click)=\"handleButtonClick()\">{{'common.search' | trans}}</ax-button>\r\n </ng-container>\r\n\r\n</ax-drop-down>\r\n", styles: [".ax.chips-container{height:100%}.panel-box{padding:1rem}.panel-box .footer-button{margin-top:1rem;display:flex;align-items:center;gap:.5rem}\n"], components: [{ type: AXDropdownComponent, selector: "ax-drop-down", inputs: ["rtl", "readonly", "loading"], outputs: ["dropdownToggle", "onButtonClick"] }, { type: AXLabelComponent, selector: "ax-label", inputs: ["size"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: AXPropertyEditorRendererDirective, selector: "[ax-property-editor-renderer]", inputs: ["property", "validationForm", "context", "host", "groupId"], outputs: ["onValueChange"] }], pipes: { "trans": i1$2.AXTranslatorPipe } });
|
|
10322
10342
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, decorators: [{
|
|
10323
10343
|
type: Component,
|
|
10324
|
-
args: [{ selector: 'ax-search-bar', template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\">\r\n <b>{{item.title}} :</b> {{item.value}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n <i class=\"far fa-times close\"></i>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <ax-form-group
|
|
10325
|
-
}], ctorParameters: function () { return []; }, propDecorators: { dropdown: [{
|
|
10344
|
+
args: [{ selector: 'ax-search-bar', template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\">\r\n <b>{{item.title}} :</b> {{item.value}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n <i class=\"far fa-times close\"></i>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <!-- <ax-form-group> -->\r\n <div *ngIf=\"prop.property.visible != false\">\r\n <ax-label>{{prop.property.title}}</ax-label>\r\n <ng-container ax-property-editor-renderer [property]=\"prop\" [context]=\"_context\"\r\n (onValueChange)=\"handleValueChange($event)\"></ng-container>\r\n </div>\r\n <!-- </ax-form-group> -->\r\n </div>\r\n </div>\r\n <div class=\"footer-button\">\r\n <ax-button (click)=\"search()\">{{'common.search' | trans}}</ax-button>\r\n <ax-button type=\"blank danger\" (click)=\"clear()\">{{'dataGrid.clearFilter' | trans}}</ax-button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container end>\r\n <ax-button end icon=\"far fa-sliders-h icon\" type=\"light blank\" [disabled]=\"disabled\" [size]=\"size\"\r\n [tabIndex]=\"-1\" (click)=\"handleButtonClick()\">{{'common.search' | trans}}</ax-button>\r\n </ng-container>\r\n\r\n</ax-drop-down>\r\n", styles: [".ax.chips-container{height:100%}.panel-box{padding:1rem}.panel-box .footer-button{margin-top:1rem;display:flex;align-items:center;gap:.5rem}\n"] }]
|
|
10345
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { dropdown: [{
|
|
10326
10346
|
type: ViewChild,
|
|
10327
10347
|
args: ['dropdown', { static: true }]
|
|
10328
10348
|
}], _editors: [{
|
|
@@ -10334,6 +10354,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
10334
10354
|
type: Input
|
|
10335
10355
|
}], items: [{
|
|
10336
10356
|
type: Input
|
|
10357
|
+
}], rtl: [{
|
|
10358
|
+
type: Input
|
|
10359
|
+
}], onValueChange: [{
|
|
10360
|
+
type: Output
|
|
10337
10361
|
}], onSearchValue: [{
|
|
10338
10362
|
type: Output
|
|
10339
10363
|
}] } });
|
|
@@ -10436,198 +10460,75 @@ function propertyEditor(options) {
|
|
|
10436
10460
|
};
|
|
10437
10461
|
}
|
|
10438
10462
|
|
|
10439
|
-
class
|
|
10440
|
-
constructor(cdr) {
|
|
10441
|
-
super(cdr);
|
|
10442
|
-
this.cdr = cdr;
|
|
10443
|
-
this.clearButton = false;
|
|
10444
|
-
}
|
|
10445
|
-
handleValueChange(e) {
|
|
10446
|
-
super.handleValueChange(e.value);
|
|
10447
|
-
}
|
|
10448
|
-
ngAfterViewInit() {
|
|
10449
|
-
this.registerForValidationForm(this.textBox);
|
|
10450
|
-
this.onRenderCompleted.emit();
|
|
10451
|
-
}
|
|
10452
|
-
}
|
|
10453
|
-
AXTextPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10454
|
-
AXTextPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-box (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" [readonly]=\"readonly\" [allowClear]=\"clearButton\">\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-box>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "type", "showMask", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
10455
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, decorators: [{
|
|
10456
|
-
type: Component,
|
|
10457
|
-
args: [{ template: "<ax-text-box (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" [readonly]=\"readonly\" [allowClear]=\"clearButton\">\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-box>" }]
|
|
10458
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
10459
|
-
type: ViewChild,
|
|
10460
|
-
args: [AXTextBoxComponent]
|
|
10461
|
-
}] } });
|
|
10462
|
-
|
|
10463
|
-
class AXTextPropertyEditorModule {
|
|
10464
|
-
constructor() {
|
|
10465
|
-
}
|
|
10466
|
-
}
|
|
10467
|
-
AXTextPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10468
|
-
AXTextPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, declarations: [AXTextPropertyEditorComponent], imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule], exports: [AXTextPropertyEditorComponent] });
|
|
10469
|
-
AXTextPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextBoxModule, AXValidationModule]] });
|
|
10470
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, decorators: [{
|
|
10471
|
-
type: NgModule,
|
|
10472
|
-
args: [{
|
|
10473
|
-
declarations: [AXTextPropertyEditorComponent],
|
|
10474
|
-
imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
|
|
10475
|
-
exports: [AXTextPropertyEditorComponent],
|
|
10476
|
-
providers: []
|
|
10477
|
-
}]
|
|
10478
|
-
}], ctorParameters: function () { return []; } });
|
|
10479
|
-
|
|
10480
|
-
class AXNumberBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10463
|
+
class AXCheckBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10481
10464
|
constructor(cdr) {
|
|
10482
10465
|
super(cdr);
|
|
10483
10466
|
this.cdr = cdr;
|
|
10484
|
-
this.
|
|
10485
|
-
this.
|
|
10486
|
-
this.
|
|
10487
|
-
this.
|
|
10488
|
-
this.clearButton = false;
|
|
10467
|
+
this.disabled = false;
|
|
10468
|
+
this.indeterminate = false;
|
|
10469
|
+
this.readonly = false;
|
|
10470
|
+
this.size = 'md';
|
|
10489
10471
|
}
|
|
10490
10472
|
handleValueChange(e) {
|
|
10491
10473
|
super.handleValueChange(e.value);
|
|
10492
10474
|
}
|
|
10493
10475
|
ngAfterViewInit() {
|
|
10494
|
-
this.registerForValidationForm(this.
|
|
10476
|
+
this.registerForValidationForm(this.checkBox);
|
|
10495
10477
|
this.onRenderCompleted.emit();
|
|
10496
10478
|
}
|
|
10497
10479
|
}
|
|
10498
|
-
|
|
10499
|
-
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
</ax-
|
|
10511
|
-
|
|
10512
|
-
|
|
10480
|
+
AXCheckBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10481
|
+
AXCheckBoxPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXCheckBoxPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "checkBox", first: true, predicate: AXCheckBoxComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
10482
|
+
<ax-check-box
|
|
10483
|
+
[disabled]="disabled"
|
|
10484
|
+
[label]="label"
|
|
10485
|
+
[size]="size"
|
|
10486
|
+
[indeterminate]="indeterminate"
|
|
10487
|
+
[readonly]="readonly"
|
|
10488
|
+
[value]="value"
|
|
10489
|
+
(onValueChanged)="handleValueChange($event)"
|
|
10490
|
+
>
|
|
10491
|
+
<ax-validation [rules]="validation?.rules">
|
|
10492
|
+
</ax-validation>
|
|
10493
|
+
</ax-check-box>
|
|
10494
|
+
`, isInline: true, components: [{ type: AXCheckBoxComponent, selector: "ax-check-box", inputs: ["readonly", "disabled", "size", "label", "tabIndex", "indeterminate", "value"], outputs: ["onValueChanged", "valueChange", "onClick"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
10495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, decorators: [{
|
|
10513
10496
|
type: Component,
|
|
10514
10497
|
args: [{
|
|
10515
10498
|
template: `
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
</ax-
|
|
10499
|
+
<ax-check-box
|
|
10500
|
+
[disabled]="disabled"
|
|
10501
|
+
[label]="label"
|
|
10502
|
+
[size]="size"
|
|
10503
|
+
[indeterminate]="indeterminate"
|
|
10504
|
+
[readonly]="readonly"
|
|
10505
|
+
[value]="value"
|
|
10506
|
+
(onValueChanged)="handleValueChange($event)"
|
|
10507
|
+
>
|
|
10508
|
+
<ax-validation [rules]="validation?.rules">
|
|
10509
|
+
</ax-validation>
|
|
10510
|
+
</ax-check-box>
|
|
10527
10511
|
`,
|
|
10528
10512
|
}]
|
|
10529
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
10530
|
-
type: ViewChild,
|
|
10531
|
-
args: [AXNumberBoxComponent]
|
|
10532
|
-
}] } });
|
|
10533
|
-
|
|
10534
|
-
class AXNumberBoxPropertyEditorModule {
|
|
10535
|
-
constructor() {
|
|
10536
|
-
}
|
|
10537
|
-
}
|
|
10538
|
-
AXNumberBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10539
|
-
AXNumberBoxPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, declarations: [AXNumberBoxPropertyEditorComponent], imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule], exports: [AXNumberBoxPropertyEditorComponent] });
|
|
10540
|
-
AXNumberBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule]] });
|
|
10541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, decorators: [{
|
|
10542
|
-
type: NgModule,
|
|
10543
|
-
args: [{
|
|
10544
|
-
declarations: [AXNumberBoxPropertyEditorComponent],
|
|
10545
|
-
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule],
|
|
10546
|
-
exports: [AXNumberBoxPropertyEditorComponent],
|
|
10547
|
-
providers: []
|
|
10548
|
-
}]
|
|
10549
|
-
}], ctorParameters: function () { return []; } });
|
|
10550
|
-
|
|
10551
|
-
class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10552
|
-
constructor(cdr) {
|
|
10553
|
-
super(cdr);
|
|
10554
|
-
this.cdr = cdr;
|
|
10555
|
-
this.valueField = 'id';
|
|
10556
|
-
this.textField = 'text';
|
|
10557
|
-
this.selectionMode = 'single';
|
|
10558
|
-
this.selectionDataMode = 'value';
|
|
10559
|
-
this.allowSearch = true;
|
|
10560
|
-
this.allowNull = false;
|
|
10561
|
-
this.disabled = false;
|
|
10562
|
-
this.items = [];
|
|
10563
|
-
this.remoteOperation = false;
|
|
10564
|
-
this.provideData = (e) => {
|
|
10565
|
-
return new Promise((resolve) => {
|
|
10566
|
-
const func = () => {
|
|
10567
|
-
if (Array.isArray(this.items)) {
|
|
10568
|
-
resolve(this.items.slice());
|
|
10569
|
-
}
|
|
10570
|
-
else if (typeof this.items === 'function') {
|
|
10571
|
-
const a = Object.assign(e, { sender: this });
|
|
10572
|
-
resolve(this.items(a));
|
|
10573
|
-
}
|
|
10574
|
-
else {
|
|
10575
|
-
resolve([]);
|
|
10576
|
-
}
|
|
10577
|
-
};
|
|
10578
|
-
const intVal = setInterval(() => {
|
|
10579
|
-
if (this.initiated) {
|
|
10580
|
-
func();
|
|
10581
|
-
clearInterval(intVal);
|
|
10582
|
-
}
|
|
10583
|
-
}, 50);
|
|
10584
|
-
});
|
|
10585
|
-
};
|
|
10586
|
-
}
|
|
10587
|
-
get filter() {
|
|
10588
|
-
return this._filter;
|
|
10589
|
-
}
|
|
10590
|
-
set filter(v) {
|
|
10591
|
-
this._filter = v;
|
|
10592
|
-
if (this.value && this.initiated) {
|
|
10593
|
-
this.value = null;
|
|
10594
|
-
this.selectBox?.refresh();
|
|
10595
|
-
}
|
|
10596
|
-
}
|
|
10597
|
-
handleValueChange(e) {
|
|
10598
|
-
super.handleValueChange(e.selectedValues);
|
|
10599
|
-
}
|
|
10600
|
-
ngAfterViewInit() {
|
|
10601
|
-
this.registerForValidationForm(this.selectBox);
|
|
10602
|
-
this.onRenderCompleted.emit();
|
|
10603
|
-
}
|
|
10604
|
-
}
|
|
10605
|
-
AXSelectBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10606
|
-
AXSelectBoxPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSelectBoxPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "selectBox", first: true, predicate: AXSelectBoxComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, 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>", components: [{ type: AXSelectBoxComponent, selector: "ax-select-box", inputs: ["showDropDownButton", "rowInputTemplate", "showCheckBox", "readonly", "rtl", "disabled", "placeholder", "size", "allowNull", "textAlign", "bufferSize", "remoteOperation", "dataSource", "validation", "disabledCallback", "allowSearch", "textField", "valueField", "disabledField", "mode", "items", "selectedItems", "selectedValues"], outputs: ["dropdownToggle", "itemsChange", "onBlur", "onFocus", "selectionChanged", "selectedItemsChange", "selectedValuesChange"] }, { type: AXDataSourceComponent, selector: "ax-data-source", inputs: ["provideData", "params"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
10607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, decorators: [{
|
|
10608
|
-
type: Component,
|
|
10609
|
-
args: [{ 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>" }]
|
|
10610
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectBox: [{
|
|
10513
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { checkBox: [{
|
|
10611
10514
|
type: ViewChild,
|
|
10612
|
-
args: [
|
|
10515
|
+
args: [AXCheckBoxComponent, { static: true }]
|
|
10613
10516
|
}] } });
|
|
10614
10517
|
|
|
10615
|
-
class
|
|
10616
|
-
constructor() {
|
|
10617
|
-
}
|
|
10518
|
+
class AXCheckPropertyEditorModule {
|
|
10618
10519
|
}
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
10520
|
+
AXCheckPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10521
|
+
AXCheckPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, declarations: [AXCheckBoxPropertyEditorComponent], imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule], exports: [AXCheckBoxPropertyEditorComponent] });
|
|
10522
|
+
AXCheckPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, providers: [], imports: [[CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule]] });
|
|
10523
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, decorators: [{
|
|
10623
10524
|
type: NgModule,
|
|
10624
10525
|
args: [{
|
|
10625
|
-
declarations: [
|
|
10626
|
-
imports: [CommonModule,
|
|
10627
|
-
exports: [
|
|
10628
|
-
providers: []
|
|
10526
|
+
declarations: [AXCheckBoxPropertyEditorComponent],
|
|
10527
|
+
imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule],
|
|
10528
|
+
exports: [AXCheckBoxPropertyEditorComponent],
|
|
10529
|
+
providers: [],
|
|
10629
10530
|
}]
|
|
10630
|
-
}]
|
|
10531
|
+
}] });
|
|
10631
10532
|
|
|
10632
10533
|
class AXColorBoxComponent extends AXValidatableComponent {
|
|
10633
10534
|
constructor() {
|
|
@@ -11117,225 +11018,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11117
11018
|
type: Input
|
|
11118
11019
|
}] } });
|
|
11119
11020
|
|
|
11120
|
-
class
|
|
11121
|
-
constructor(cdr
|
|
11021
|
+
class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11022
|
+
constructor(cdr) {
|
|
11122
11023
|
super(cdr);
|
|
11123
11024
|
this.cdr = cdr;
|
|
11124
|
-
this.popupService = popupService;
|
|
11125
|
-
this.ranges = [];
|
|
11126
|
-
this.showSeparator = true;
|
|
11127
|
-
this.decimalNumber = 2;
|
|
11128
|
-
}
|
|
11129
|
-
ngOnInit() {
|
|
11130
|
-
this.ranges = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
11131
|
-
this.cdr.detectChanges();
|
|
11132
11025
|
}
|
|
11133
11026
|
ngAfterViewInit() {
|
|
11027
|
+
this.registerForValidationForm(this.textBox);
|
|
11134
11028
|
this.onRenderCompleted.emit();
|
|
11135
11029
|
}
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
-
|
|
11141
|
-
|
|
11142
|
-
|
|
11143
|
-
|
|
11144
|
-
|
|
11145
|
-
|
|
11146
|
-
|
|
11147
|
-
|
|
11148
|
-
|
|
11149
|
-
|
|
11150
|
-
|
|
11151
|
-
|
|
11152
|
-
|
|
11153
|
-
|
|
11154
|
-
|
|
11155
|
-
|
|
11156
|
-
|
|
11157
|
-
|
|
11158
|
-
|
|
11159
|
-
|
|
11160
|
-
|
|
11161
|
-
|
|
11162
|
-
|
|
11163
|
-
|
|
11164
|
-
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
}
|
|
11177
|
-
],
|
|
11178
|
-
title: AXTranslator.get('common.edit')
|
|
11179
|
-
});
|
|
11180
|
-
}
|
|
11181
|
-
handleAddClick() {
|
|
11182
|
-
const min = this.ranges?.length ? Math.max(...this.ranges.map(c => c.maxValue)) : 0;
|
|
11183
|
-
this.editRow = {
|
|
11184
|
-
title: '',
|
|
11185
|
-
minValue: min,
|
|
11186
|
-
maxValue: min + 1,
|
|
11187
|
-
color: null
|
|
11188
|
-
};
|
|
11189
|
-
const popup = this.popupService.open(this.tplEdit, {
|
|
11190
|
-
title: AXTranslator.get('common.add-item'),
|
|
11191
|
-
size: 'sm',
|
|
11192
|
-
footerButtons: [
|
|
11193
|
-
{
|
|
11194
|
-
name: 'confirm',
|
|
11195
|
-
text: AXTranslator.get('common.confirm'),
|
|
11196
|
-
style: 'success',
|
|
11197
|
-
submitBehavior: true,
|
|
11198
|
-
cancelBehavior: false,
|
|
11199
|
-
onClick: () => {
|
|
11200
|
-
this.form.validate().then(c => {
|
|
11201
|
-
if (c.result) {
|
|
11202
|
-
super.handleValueChange(this.ranges);
|
|
11203
|
-
this.ranges.push(this.editRow);
|
|
11204
|
-
popup.close();
|
|
11205
|
-
this.editRow = null;
|
|
11206
|
-
this.cdr.detectChanges();
|
|
11207
|
-
}
|
|
11208
|
-
});
|
|
11209
|
-
}
|
|
11210
|
-
},
|
|
11211
|
-
{
|
|
11212
|
-
name: 'cancel',
|
|
11213
|
-
text: AXTranslator.get('common.cancel'),
|
|
11214
|
-
style: 'danger blank',
|
|
11215
|
-
submitBehavior: false,
|
|
11216
|
-
cancelBehavior: true,
|
|
11217
|
-
onClick: () => {
|
|
11218
|
-
popup.close();
|
|
11219
|
-
this.editRow = null;
|
|
11220
|
-
this.cdr.detectChanges();
|
|
11221
|
-
}
|
|
11222
|
-
}
|
|
11223
|
-
],
|
|
11224
|
-
});
|
|
11225
|
-
this.cdr.detectChanges();
|
|
11226
|
-
}
|
|
11227
|
-
handleRemoveClick(item) {
|
|
11228
|
-
this.ranges = this.ranges.filter(c => c.minValue !== item.minValue);
|
|
11229
|
-
super.handleValueChange(this.ranges);
|
|
11230
|
-
}
|
|
11231
|
-
}
|
|
11232
|
-
AXRangePropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: AXPopupService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11233
|
-
AXRangePropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXRangePropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "tplEdit", first: true, predicate: ["tplEdit"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div *ngFor=\"let r of ranges\" [style.border-color]=\"r.color\" class=\"range-item\" (click)=\"handleEditClick(r)\">\r\n <div>\r\n <div [style.background-color]=\"r.color\"></div>\r\n <div>{{r.title}}</div>\r\n </div>\r\n <div>\r\n <div class=\"min\" title=\"minimum {{r.minValue}}\">{{r.minValue}}</div>\r\n <div>\r\n <i class=\"far fa-long-arrow-left\"></i>\r\n </div>\r\n <div class=\"max\" title=\"maxmimum {{r.maxValue}}\">{{r.maxValue}}</div>\r\n <div class=\"remove-button\" (click)=\"handleRemoveClick(r)\"><i class=\"far fa-trash-alt\"></i></div>\r\n </div>\r\n</div>\r\n<ax-button icon=\"far fa-plus\" type=\"success outline\" (click)=\"handleAddClick()\">{{ 'common.add-item' | trans }}\r\n</ax-button>\r\n<ng-template #tplEdit>\r\n <ax-page>\r\n <ax-page-content>\r\n <div class=\"container\">\r\n <ax-validation-form (onInit)=\"onFormInit($event)\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.title' | trans }}</ax-label>\r\n <ax-text-box [(value)]=\"editRow.title\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.min-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.minValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.max-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.maxValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.color' | trans }}</ax-label>\r\n <ax-color-picker [(value)]=\"editRow.color\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-color-picker>\r\n </div>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n <div class=\"ax-mrg-md\"></div>\r\n </ax-page-content>\r\n </ax-page>\r\n</ng-template>", styles: [".range-item{border:1px solid var(--ax-gray-color);margin-bottom:5px;display:flex;padding:5px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.range-item .remove-button{color:var(--ax-danger-color);padding:var(--ax-size-sm);display:flex;justify-content:center;cursor:pointer}.range-item .remove-button:hover{background-color:var(--ax-danger-trans-light-color)}.range-item div:first-child{display:flex;align-items:center}.range-item div:first-child div:first-child{width:25px;height:25px;border-radius:3px}.range-item div:first-child div:last-child{-webkit-margin-start:10px;margin-inline-start:10px}.range-item div:last-child{display:flex;align-items:center}.range-item div:last-child button{background-color:transparent;border:none;cursor:pointer}.range-item div:last-child button i{color:var(--ax-danger-color)}.range-item div:last-child div{min-width:40px}.range-item div:last-child div.min{color:var(--ax-danger-color)}.range-item div:last-child div.max{color:var(--ax-success-color)}\n"], components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }, { type: AXPageComponent, selector: "ax-page" }, { type: AXPageContentComponent, selector: "ax-page-content" }, { type: AXValidationFormComponent, selector: "ax-validation-form", inputs: ["validateOn"], outputs: ["onInit"] }, { type: AXLabelComponent, selector: "ax-label", inputs: ["size"] }, { type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "type", "showMask", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }, { type: AXValidationRuleComponent, selector: "ax-validation-rule", inputs: ["type", "message", "value", "enabled"] }, { type: AXNumberBoxComponent, selector: "ax-number-box", inputs: ["min", "max", "showSeparator", "showCurrency", "showCounter", "scrollWeel", "showDoubleCounter", "maxLength", "intStep", "decimalNumber", "customStep"] }, { type: AXColorPickerComponent, selector: "ax-color-picker", inputs: ["placeholder", "showClear", "label", "readonly", "disabled", "size", "rtl", "validation"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "trans": i1$2.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, decorators: [{
|
|
11235
|
-
type: Component,
|
|
11236
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngFor=\"let r of ranges\" [style.border-color]=\"r.color\" class=\"range-item\" (click)=\"handleEditClick(r)\">\r\n <div>\r\n <div [style.background-color]=\"r.color\"></div>\r\n <div>{{r.title}}</div>\r\n </div>\r\n <div>\r\n <div class=\"min\" title=\"minimum {{r.minValue}}\">{{r.minValue}}</div>\r\n <div>\r\n <i class=\"far fa-long-arrow-left\"></i>\r\n </div>\r\n <div class=\"max\" title=\"maxmimum {{r.maxValue}}\">{{r.maxValue}}</div>\r\n <div class=\"remove-button\" (click)=\"handleRemoveClick(r)\"><i class=\"far fa-trash-alt\"></i></div>\r\n </div>\r\n</div>\r\n<ax-button icon=\"far fa-plus\" type=\"success outline\" (click)=\"handleAddClick()\">{{ 'common.add-item' | trans }}\r\n</ax-button>\r\n<ng-template #tplEdit>\r\n <ax-page>\r\n <ax-page-content>\r\n <div class=\"container\">\r\n <ax-validation-form (onInit)=\"onFormInit($event)\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.title' | trans }}</ax-label>\r\n <ax-text-box [(value)]=\"editRow.title\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.min-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.minValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.max-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.maxValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.color' | trans }}</ax-label>\r\n <ax-color-picker [(value)]=\"editRow.color\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-color-picker>\r\n </div>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n <div class=\"ax-mrg-md\"></div>\r\n </ax-page-content>\r\n </ax-page>\r\n</ng-template>", styles: [".range-item{border:1px solid var(--ax-gray-color);margin-bottom:5px;display:flex;padding:5px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.range-item .remove-button{color:var(--ax-danger-color);padding:var(--ax-size-sm);display:flex;justify-content:center;cursor:pointer}.range-item .remove-button:hover{background-color:var(--ax-danger-trans-light-color)}.range-item div:first-child{display:flex;align-items:center}.range-item div:first-child div:first-child{width:25px;height:25px;border-radius:3px}.range-item div:first-child div:last-child{-webkit-margin-start:10px;margin-inline-start:10px}.range-item div:last-child{display:flex;align-items:center}.range-item div:last-child button{background-color:transparent;border:none;cursor:pointer}.range-item div:last-child button i{color:var(--ax-danger-color)}.range-item div:last-child div{min-width:40px}.range-item div:last-child div.min{color:var(--ax-danger-color)}.range-item div:last-child div.max{color:var(--ax-success-color)}\n"] }]
|
|
11237
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: AXPopupService }]; }, propDecorators: { tplEdit: [{
|
|
11238
|
-
type: ViewChild,
|
|
11239
|
-
args: ['tplEdit']
|
|
11240
|
-
}] } });
|
|
11241
|
-
|
|
11242
|
-
class AXColorPickerModule {
|
|
11243
|
-
}
|
|
11244
|
-
AXColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11245
|
-
AXColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, declarations: [AXColorPickerComponent, AXColorBoxComponent], imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule], exports: [AXColorPickerComponent, AXColorBoxComponent] });
|
|
11246
|
-
AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule]] });
|
|
11247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, decorators: [{
|
|
11248
|
-
type: NgModule,
|
|
11249
|
-
args: [{
|
|
11250
|
-
declarations: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11251
|
-
imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule],
|
|
11252
|
-
exports: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11253
|
-
providers: []
|
|
11254
|
-
}]
|
|
11255
|
-
}] });
|
|
11256
|
-
|
|
11257
|
-
class AXRangePropertyEditorModule {
|
|
11258
|
-
constructor() {
|
|
11259
|
-
}
|
|
11260
|
-
}
|
|
11261
|
-
AXRangePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11262
|
-
AXRangePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, declarations: [AXRangePropertyEditorComponent], imports: [CommonModule,
|
|
11263
|
-
FormsModule,
|
|
11264
|
-
AXTranslatorModule,
|
|
11265
|
-
AXTextBoxModule,
|
|
11266
|
-
AXNumberBoxModule,
|
|
11267
|
-
AXColorPickerModule,
|
|
11268
|
-
AXLabelModule,
|
|
11269
|
-
AXPageModule,
|
|
11270
|
-
AXValidationModule,
|
|
11271
|
-
AXButtonModule], exports: [AXRangePropertyEditorComponent] });
|
|
11272
|
-
AXRangePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, providers: [], imports: [[
|
|
11273
|
-
CommonModule,
|
|
11274
|
-
FormsModule,
|
|
11275
|
-
AXTranslatorModule,
|
|
11276
|
-
AXTextBoxModule,
|
|
11277
|
-
AXNumberBoxModule,
|
|
11278
|
-
AXColorPickerModule,
|
|
11279
|
-
AXLabelModule,
|
|
11280
|
-
AXPageModule,
|
|
11281
|
-
AXValidationModule,
|
|
11282
|
-
AXButtonModule
|
|
11283
|
-
]] });
|
|
11284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, decorators: [{
|
|
11285
|
-
type: NgModule,
|
|
11286
|
-
args: [{
|
|
11287
|
-
declarations: [AXRangePropertyEditorComponent],
|
|
11288
|
-
imports: [
|
|
11289
|
-
CommonModule,
|
|
11290
|
-
FormsModule,
|
|
11291
|
-
AXTranslatorModule,
|
|
11292
|
-
AXTextBoxModule,
|
|
11293
|
-
AXNumberBoxModule,
|
|
11294
|
-
AXColorPickerModule,
|
|
11295
|
-
AXLabelModule,
|
|
11296
|
-
AXPageModule,
|
|
11297
|
-
AXValidationModule,
|
|
11298
|
-
AXButtonModule
|
|
11299
|
-
],
|
|
11300
|
-
exports: [AXRangePropertyEditorComponent],
|
|
11301
|
-
providers: []
|
|
11302
|
-
}]
|
|
11303
|
-
}], ctorParameters: function () { return []; } });
|
|
11304
|
-
|
|
11305
|
-
class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11306
|
-
constructor(cdr) {
|
|
11307
|
-
super(cdr);
|
|
11308
|
-
this.cdr = cdr;
|
|
11309
|
-
}
|
|
11310
|
-
ngAfterViewInit() {
|
|
11311
|
-
this.registerForValidationForm(this.textBox);
|
|
11312
|
-
this.onRenderCompleted.emit();
|
|
11313
|
-
}
|
|
11314
|
-
}
|
|
11315
|
-
AXColorPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11316
|
-
AXColorPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXColorPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXColorPickerComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
11317
|
-
<ax-color-picker [(value)]="value">
|
|
11318
|
-
<ax-validation [rules]="validation?.rules">
|
|
11319
|
-
</ax-validation>
|
|
11320
|
-
</ax-color-picker>
|
|
11321
|
-
`, isInline: true, components: [{ type: AXColorPickerComponent, selector: "ax-color-picker", inputs: ["placeholder", "showClear", "label", "readonly", "disabled", "size", "rtl", "validation"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPropertyEditorComponent, decorators: [{
|
|
11323
|
-
type: Component,
|
|
11324
|
-
args: [{
|
|
11325
|
-
template: `
|
|
11326
|
-
<ax-color-picker [(value)]="value">
|
|
11327
|
-
<ax-validation [rules]="validation?.rules">
|
|
11328
|
-
</ax-validation>
|
|
11329
|
-
</ax-color-picker>
|
|
11330
|
-
`,
|
|
11331
|
-
}]
|
|
11332
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
11333
|
-
type: ViewChild,
|
|
11334
|
-
args: [AXColorPickerComponent]
|
|
11335
|
-
}] } });
|
|
11336
|
-
|
|
11337
|
-
class AXColorPropertyEditorModule {
|
|
11338
|
-
constructor() {
|
|
11030
|
+
}
|
|
11031
|
+
AXColorPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11032
|
+
AXColorPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXColorPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXColorPickerComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
11033
|
+
<ax-color-picker [(value)]="value">
|
|
11034
|
+
<ax-validation [rules]="validation?.rules">
|
|
11035
|
+
</ax-validation>
|
|
11036
|
+
</ax-color-picker>
|
|
11037
|
+
`, isInline: true, components: [{ type: AXColorPickerComponent, selector: "ax-color-picker", inputs: ["placeholder", "showClear", "label", "readonly", "disabled", "size", "rtl", "validation"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPropertyEditorComponent, decorators: [{
|
|
11039
|
+
type: Component,
|
|
11040
|
+
args: [{
|
|
11041
|
+
template: `
|
|
11042
|
+
<ax-color-picker [(value)]="value">
|
|
11043
|
+
<ax-validation [rules]="validation?.rules">
|
|
11044
|
+
</ax-validation>
|
|
11045
|
+
</ax-color-picker>
|
|
11046
|
+
`,
|
|
11047
|
+
}]
|
|
11048
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
11049
|
+
type: ViewChild,
|
|
11050
|
+
args: [AXColorPickerComponent]
|
|
11051
|
+
}] } });
|
|
11052
|
+
|
|
11053
|
+
class AXColorPickerModule {
|
|
11054
|
+
}
|
|
11055
|
+
AXColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11056
|
+
AXColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, declarations: [AXColorPickerComponent, AXColorBoxComponent], imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule], exports: [AXColorPickerComponent, AXColorBoxComponent] });
|
|
11057
|
+
AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule]] });
|
|
11058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, decorators: [{
|
|
11059
|
+
type: NgModule,
|
|
11060
|
+
args: [{
|
|
11061
|
+
declarations: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11062
|
+
imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule],
|
|
11063
|
+
exports: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11064
|
+
providers: []
|
|
11065
|
+
}]
|
|
11066
|
+
}] });
|
|
11067
|
+
|
|
11068
|
+
class AXColorPropertyEditorModule {
|
|
11069
|
+
constructor() {
|
|
11339
11070
|
}
|
|
11340
11071
|
}
|
|
11341
11072
|
AXColorPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -11721,7 +11452,472 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11721
11452
|
exports: [AXConditionalColorPropertyEditorComponent],
|
|
11722
11453
|
providers: []
|
|
11723
11454
|
}]
|
|
11724
|
-
}], ctorParameters: function () { return []; } });
|
|
11455
|
+
}], ctorParameters: function () { return []; } });
|
|
11456
|
+
|
|
11457
|
+
class AXDatePropertyEditorComponent extends AXProperyEditorComponent {
|
|
11458
|
+
constructor(cdr) {
|
|
11459
|
+
super(cdr);
|
|
11460
|
+
this.cdr = cdr;
|
|
11461
|
+
this.showTodayButton = true;
|
|
11462
|
+
this.selectableHoliday = true;
|
|
11463
|
+
this.type = 'gregorian';
|
|
11464
|
+
this.textAlign = null;
|
|
11465
|
+
this.placeholder = '';
|
|
11466
|
+
this.clearButton = false;
|
|
11467
|
+
this.showToday = false;
|
|
11468
|
+
this.size = 'md';
|
|
11469
|
+
}
|
|
11470
|
+
handleValueChange(e) {
|
|
11471
|
+
super.handleValueChange(e.value);
|
|
11472
|
+
}
|
|
11473
|
+
ngAfterViewInit() {
|
|
11474
|
+
this.registerForValidationForm(this.date);
|
|
11475
|
+
this.onRenderCompleted.emit();
|
|
11476
|
+
}
|
|
11477
|
+
}
|
|
11478
|
+
AXDatePropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11479
|
+
AXDatePropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXDatePropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "date", first: true, predicate: AXDatePickerComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
11480
|
+
<ax-date-picker [size]="size" [dateType]="dateType" [showToday]="showToday" [disabled]="disabled" [allowClear]="clearButton" [readonly]="readonly" [max]="max" [min]="min" [placeholder]="placeholder" [showTodayButton]="showTodayButton" [selectableHoliday]="selectableHoliday" (onValueChanged)="handleValueChange($event)"
|
|
11481
|
+
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11482
|
+
<ax-validation [rules]="validation?.rules">
|
|
11483
|
+
</ax-validation>
|
|
11484
|
+
</ax-date-picker>
|
|
11485
|
+
`, isInline: true, components: [{ type: AXDatePickerComponent, selector: "ax-date-picker", inputs: ["dayStyle", "dayMinMaxResoan", "validation", "placeholder", "min", "max", "readonly", "disabled", "allowClear", "textAlign", "showToday", "selectableHoliday", "dateType", "showTodayButton", "openByClick", "size", "type", "value"], outputs: ["typeChange", "onValueChanged", "valueChange"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11486
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, decorators: [{
|
|
11487
|
+
type: Component,
|
|
11488
|
+
args: [{
|
|
11489
|
+
template: `
|
|
11490
|
+
<ax-date-picker [size]="size" [dateType]="dateType" [showToday]="showToday" [disabled]="disabled" [allowClear]="clearButton" [readonly]="readonly" [max]="max" [min]="min" [placeholder]="placeholder" [showTodayButton]="showTodayButton" [selectableHoliday]="selectableHoliday" (onValueChanged)="handleValueChange($event)"
|
|
11491
|
+
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11492
|
+
<ax-validation [rules]="validation?.rules">
|
|
11493
|
+
</ax-validation>
|
|
11494
|
+
</ax-date-picker>
|
|
11495
|
+
`,
|
|
11496
|
+
}]
|
|
11497
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { date: [{
|
|
11498
|
+
type: ViewChild,
|
|
11499
|
+
args: [AXDatePickerComponent]
|
|
11500
|
+
}] } });
|
|
11501
|
+
|
|
11502
|
+
class AXDatePropertyEditorModule {
|
|
11503
|
+
constructor() {
|
|
11504
|
+
}
|
|
11505
|
+
}
|
|
11506
|
+
AXDatePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11507
|
+
AXDatePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, declarations: [AXDatePropertyEditorComponent], imports: [CommonModule, FormsModule, AXDatePickerModule, AXValidationModule], exports: [AXDatePropertyEditorComponent] });
|
|
11508
|
+
AXDatePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXDatePickerModule, AXValidationModule]] });
|
|
11509
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, decorators: [{
|
|
11510
|
+
type: NgModule,
|
|
11511
|
+
args: [{
|
|
11512
|
+
declarations: [AXDatePropertyEditorComponent],
|
|
11513
|
+
imports: [CommonModule, FormsModule, AXDatePickerModule, AXValidationModule],
|
|
11514
|
+
exports: [AXDatePropertyEditorComponent],
|
|
11515
|
+
providers: []
|
|
11516
|
+
}]
|
|
11517
|
+
}], ctorParameters: function () { return []; } });
|
|
11518
|
+
|
|
11519
|
+
class AXNumberBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11520
|
+
constructor(cdr) {
|
|
11521
|
+
super(cdr);
|
|
11522
|
+
this.cdr = cdr;
|
|
11523
|
+
this.showSeparator = true;
|
|
11524
|
+
this.decimalNumber = 2;
|
|
11525
|
+
this.minValue = null;
|
|
11526
|
+
this.maxValue = null;
|
|
11527
|
+
this.clearButton = false;
|
|
11528
|
+
}
|
|
11529
|
+
handleValueChange(e) {
|
|
11530
|
+
super.handleValueChange(e.value);
|
|
11531
|
+
}
|
|
11532
|
+
ngAfterViewInit() {
|
|
11533
|
+
this.registerForValidationForm(this.textBox);
|
|
11534
|
+
this.onRenderCompleted.emit();
|
|
11535
|
+
}
|
|
11536
|
+
}
|
|
11537
|
+
AXNumberBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11538
|
+
AXNumberBoxPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXNumberBoxPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXNumberBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
11539
|
+
<ax-number-box (onValueChanged)="handleValueChange($event)"
|
|
11540
|
+
[value]="value"
|
|
11541
|
+
[showSeparator]="showSeparator"
|
|
11542
|
+
[decimalNumber]="decimalNumber"
|
|
11543
|
+
[min]="minValue"
|
|
11544
|
+
[max]="maxValue"
|
|
11545
|
+
[allowClear]="clearButton"
|
|
11546
|
+
>
|
|
11547
|
+
<ax-validation [rules]="validation?.rules">
|
|
11548
|
+
</ax-validation>
|
|
11549
|
+
</ax-number-box>
|
|
11550
|
+
`, isInline: true, components: [{ type: AXNumberBoxComponent, selector: "ax-number-box", inputs: ["min", "max", "showSeparator", "showCurrency", "showCounter", "scrollWeel", "showDoubleCounter", "maxLength", "intStep", "decimalNumber", "customStep"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorComponent, decorators: [{
|
|
11552
|
+
type: Component,
|
|
11553
|
+
args: [{
|
|
11554
|
+
template: `
|
|
11555
|
+
<ax-number-box (onValueChanged)="handleValueChange($event)"
|
|
11556
|
+
[value]="value"
|
|
11557
|
+
[showSeparator]="showSeparator"
|
|
11558
|
+
[decimalNumber]="decimalNumber"
|
|
11559
|
+
[min]="minValue"
|
|
11560
|
+
[max]="maxValue"
|
|
11561
|
+
[allowClear]="clearButton"
|
|
11562
|
+
>
|
|
11563
|
+
<ax-validation [rules]="validation?.rules">
|
|
11564
|
+
</ax-validation>
|
|
11565
|
+
</ax-number-box>
|
|
11566
|
+
`,
|
|
11567
|
+
}]
|
|
11568
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
11569
|
+
type: ViewChild,
|
|
11570
|
+
args: [AXNumberBoxComponent]
|
|
11571
|
+
}] } });
|
|
11572
|
+
|
|
11573
|
+
class AXNumberBoxPropertyEditorModule {
|
|
11574
|
+
constructor() {
|
|
11575
|
+
}
|
|
11576
|
+
}
|
|
11577
|
+
AXNumberBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11578
|
+
AXNumberBoxPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, declarations: [AXNumberBoxPropertyEditorComponent], imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule], exports: [AXNumberBoxPropertyEditorComponent] });
|
|
11579
|
+
AXNumberBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule]] });
|
|
11580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, decorators: [{
|
|
11581
|
+
type: NgModule,
|
|
11582
|
+
args: [{
|
|
11583
|
+
declarations: [AXNumberBoxPropertyEditorComponent],
|
|
11584
|
+
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule],
|
|
11585
|
+
exports: [AXNumberBoxPropertyEditorComponent],
|
|
11586
|
+
providers: []
|
|
11587
|
+
}]
|
|
11588
|
+
}], ctorParameters: function () { return []; } });
|
|
11589
|
+
|
|
11590
|
+
class AXRangePropertyEditorComponent extends AXProperyEditorComponent {
|
|
11591
|
+
constructor(cdr, popupService) {
|
|
11592
|
+
super(cdr);
|
|
11593
|
+
this.cdr = cdr;
|
|
11594
|
+
this.popupService = popupService;
|
|
11595
|
+
this.ranges = [];
|
|
11596
|
+
this.showSeparator = true;
|
|
11597
|
+
this.decimalNumber = 2;
|
|
11598
|
+
}
|
|
11599
|
+
ngOnInit() {
|
|
11600
|
+
this.ranges = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
11601
|
+
this.cdr.detectChanges();
|
|
11602
|
+
}
|
|
11603
|
+
ngAfterViewInit() {
|
|
11604
|
+
this.onRenderCompleted.emit();
|
|
11605
|
+
}
|
|
11606
|
+
// getRanges() {
|
|
11607
|
+
// return this.ranges.sort((a, b) => a.minValue - b.minValue);
|
|
11608
|
+
// }
|
|
11609
|
+
onFormInit(e) {
|
|
11610
|
+
this.form = e.component;
|
|
11611
|
+
}
|
|
11612
|
+
handleEditClick(item) {
|
|
11613
|
+
this.editRow = Object.assign({}, item);
|
|
11614
|
+
const popup = this.popupService.open(this.tplEdit, {
|
|
11615
|
+
size: 'sm',
|
|
11616
|
+
footerButtons: [
|
|
11617
|
+
{
|
|
11618
|
+
name: 'confirm',
|
|
11619
|
+
text: AXTranslator.get('common.confirm'),
|
|
11620
|
+
style: 'success',
|
|
11621
|
+
submitBehavior: true,
|
|
11622
|
+
cancelBehavior: false,
|
|
11623
|
+
onClick: () => {
|
|
11624
|
+
this.form.validate().then(c => {
|
|
11625
|
+
if (c.result) {
|
|
11626
|
+
super.handleValueChange(this.ranges);
|
|
11627
|
+
Object.assign(item, this.editRow);
|
|
11628
|
+
popup.close();
|
|
11629
|
+
this.editRow = null;
|
|
11630
|
+
this.cdr.detectChanges();
|
|
11631
|
+
}
|
|
11632
|
+
});
|
|
11633
|
+
}
|
|
11634
|
+
},
|
|
11635
|
+
{
|
|
11636
|
+
name: 'cancel',
|
|
11637
|
+
text: AXTranslator.get('common.cancel'),
|
|
11638
|
+
style: 'danger blank',
|
|
11639
|
+
submitBehavior: false,
|
|
11640
|
+
cancelBehavior: true,
|
|
11641
|
+
onClick: () => {
|
|
11642
|
+
popup.close();
|
|
11643
|
+
this.editRow = null;
|
|
11644
|
+
this.cdr.detectChanges();
|
|
11645
|
+
}
|
|
11646
|
+
}
|
|
11647
|
+
],
|
|
11648
|
+
title: AXTranslator.get('common.edit')
|
|
11649
|
+
});
|
|
11650
|
+
}
|
|
11651
|
+
handleAddClick() {
|
|
11652
|
+
const min = this.ranges?.length ? Math.max(...this.ranges.map(c => c.maxValue)) : 0;
|
|
11653
|
+
this.editRow = {
|
|
11654
|
+
title: '',
|
|
11655
|
+
minValue: min,
|
|
11656
|
+
maxValue: min + 1,
|
|
11657
|
+
color: null
|
|
11658
|
+
};
|
|
11659
|
+
const popup = this.popupService.open(this.tplEdit, {
|
|
11660
|
+
title: AXTranslator.get('common.add-item'),
|
|
11661
|
+
size: 'sm',
|
|
11662
|
+
footerButtons: [
|
|
11663
|
+
{
|
|
11664
|
+
name: 'confirm',
|
|
11665
|
+
text: AXTranslator.get('common.confirm'),
|
|
11666
|
+
style: 'success',
|
|
11667
|
+
submitBehavior: true,
|
|
11668
|
+
cancelBehavior: false,
|
|
11669
|
+
onClick: () => {
|
|
11670
|
+
this.form.validate().then(c => {
|
|
11671
|
+
if (c.result) {
|
|
11672
|
+
super.handleValueChange(this.ranges);
|
|
11673
|
+
this.ranges.push(this.editRow);
|
|
11674
|
+
popup.close();
|
|
11675
|
+
this.editRow = null;
|
|
11676
|
+
this.cdr.detectChanges();
|
|
11677
|
+
}
|
|
11678
|
+
});
|
|
11679
|
+
}
|
|
11680
|
+
},
|
|
11681
|
+
{
|
|
11682
|
+
name: 'cancel',
|
|
11683
|
+
text: AXTranslator.get('common.cancel'),
|
|
11684
|
+
style: 'danger blank',
|
|
11685
|
+
submitBehavior: false,
|
|
11686
|
+
cancelBehavior: true,
|
|
11687
|
+
onClick: () => {
|
|
11688
|
+
popup.close();
|
|
11689
|
+
this.editRow = null;
|
|
11690
|
+
this.cdr.detectChanges();
|
|
11691
|
+
}
|
|
11692
|
+
}
|
|
11693
|
+
],
|
|
11694
|
+
});
|
|
11695
|
+
this.cdr.detectChanges();
|
|
11696
|
+
}
|
|
11697
|
+
handleRemoveClick(item) {
|
|
11698
|
+
this.ranges = this.ranges.filter(c => c.minValue !== item.minValue);
|
|
11699
|
+
super.handleValueChange(this.ranges);
|
|
11700
|
+
}
|
|
11701
|
+
}
|
|
11702
|
+
AXRangePropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: AXPopupService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11703
|
+
AXRangePropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXRangePropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "tplEdit", first: true, predicate: ["tplEdit"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div *ngFor=\"let r of ranges\" [style.border-color]=\"r.color\" class=\"range-item\" (click)=\"handleEditClick(r)\">\r\n <div>\r\n <div [style.background-color]=\"r.color\"></div>\r\n <div>{{r.title}}</div>\r\n </div>\r\n <div>\r\n <div class=\"min\" title=\"minimum {{r.minValue}}\">{{r.minValue}}</div>\r\n <div>\r\n <i class=\"far fa-long-arrow-left\"></i>\r\n </div>\r\n <div class=\"max\" title=\"maxmimum {{r.maxValue}}\">{{r.maxValue}}</div>\r\n <div class=\"remove-button\" (click)=\"handleRemoveClick(r)\"><i class=\"far fa-trash-alt\"></i></div>\r\n </div>\r\n</div>\r\n<ax-button icon=\"far fa-plus\" type=\"success outline\" (click)=\"handleAddClick()\">{{ 'common.add-item' | trans }}\r\n</ax-button>\r\n<ng-template #tplEdit>\r\n <ax-page>\r\n <ax-page-content>\r\n <div class=\"container\">\r\n <ax-validation-form (onInit)=\"onFormInit($event)\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.title' | trans }}</ax-label>\r\n <ax-text-box [(value)]=\"editRow.title\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.min-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.minValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.max-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.maxValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.color' | trans }}</ax-label>\r\n <ax-color-picker [(value)]=\"editRow.color\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-color-picker>\r\n </div>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n <div class=\"ax-mrg-md\"></div>\r\n </ax-page-content>\r\n </ax-page>\r\n</ng-template>", styles: [".range-item{border:1px solid var(--ax-gray-color);margin-bottom:5px;display:flex;padding:5px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.range-item .remove-button{color:var(--ax-danger-color);padding:var(--ax-size-sm);display:flex;justify-content:center;cursor:pointer}.range-item .remove-button:hover{background-color:var(--ax-danger-trans-light-color)}.range-item div:first-child{display:flex;align-items:center}.range-item div:first-child div:first-child{width:25px;height:25px;border-radius:3px}.range-item div:first-child div:last-child{-webkit-margin-start:10px;margin-inline-start:10px}.range-item div:last-child{display:flex;align-items:center}.range-item div:last-child button{background-color:transparent;border:none;cursor:pointer}.range-item div:last-child button i{color:var(--ax-danger-color)}.range-item div:last-child div{min-width:40px}.range-item div:last-child div.min{color:var(--ax-danger-color)}.range-item div:last-child div.max{color:var(--ax-success-color)}\n"], components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["type", "icon", "submitBehavior", "cancelBehavior", "block", "loading", "selected"] }, { type: AXPageComponent, selector: "ax-page" }, { type: AXPageContentComponent, selector: "ax-page-content" }, { type: AXValidationFormComponent, selector: "ax-validation-form", inputs: ["validateOn"], outputs: ["onInit"] }, { type: AXLabelComponent, selector: "ax-label", inputs: ["size"] }, { type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "type", "showMask", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }, { type: AXValidationRuleComponent, selector: "ax-validation-rule", inputs: ["type", "message", "value", "enabled"] }, { type: AXNumberBoxComponent, selector: "ax-number-box", inputs: ["min", "max", "showSeparator", "showCurrency", "showCounter", "scrollWeel", "showDoubleCounter", "maxLength", "intStep", "decimalNumber", "customStep"] }, { type: AXColorPickerComponent, selector: "ax-color-picker", inputs: ["placeholder", "showClear", "label", "readonly", "disabled", "size", "rtl", "validation"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "trans": i1$2.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11704
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, decorators: [{
|
|
11705
|
+
type: Component,
|
|
11706
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngFor=\"let r of ranges\" [style.border-color]=\"r.color\" class=\"range-item\" (click)=\"handleEditClick(r)\">\r\n <div>\r\n <div [style.background-color]=\"r.color\"></div>\r\n <div>{{r.title}}</div>\r\n </div>\r\n <div>\r\n <div class=\"min\" title=\"minimum {{r.minValue}}\">{{r.minValue}}</div>\r\n <div>\r\n <i class=\"far fa-long-arrow-left\"></i>\r\n </div>\r\n <div class=\"max\" title=\"maxmimum {{r.maxValue}}\">{{r.maxValue}}</div>\r\n <div class=\"remove-button\" (click)=\"handleRemoveClick(r)\"><i class=\"far fa-trash-alt\"></i></div>\r\n </div>\r\n</div>\r\n<ax-button icon=\"far fa-plus\" type=\"success outline\" (click)=\"handleAddClick()\">{{ 'common.add-item' | trans }}\r\n</ax-button>\r\n<ng-template #tplEdit>\r\n <ax-page>\r\n <ax-page-content>\r\n <div class=\"container\">\r\n <ax-validation-form (onInit)=\"onFormInit($event)\">\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.title' | trans }}</ax-label>\r\n <ax-text-box [(value)]=\"editRow.title\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-text-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.min-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.minValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n <div class=\"col-6\">\r\n <ax-label>{{ 'common.max-value' | trans }}</ax-label>\r\n <ax-number-box [(value)]=\"editRow.maxValue\" [showSeparator]=\"showSeparator\"\r\n [decimalNumber]=\"decimalNumber\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-number-box>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <ax-label>{{ 'common.color' | trans }}</ax-label>\r\n <ax-color-picker [(value)]=\"editRow.color\">\r\n <ax-validation>\r\n <ax-validation-rule type=\"required\"></ax-validation-rule>\r\n </ax-validation>\r\n </ax-color-picker>\r\n </div>\r\n </div>\r\n </ax-validation-form>\r\n </div>\r\n <div class=\"ax-mrg-md\"></div>\r\n </ax-page-content>\r\n </ax-page>\r\n</ng-template>", styles: [".range-item{border:1px solid var(--ax-gray-color);margin-bottom:5px;display:flex;padding:5px;border-radius:5px;justify-content:space-between;align-items:center;cursor:pointer}.range-item .remove-button{color:var(--ax-danger-color);padding:var(--ax-size-sm);display:flex;justify-content:center;cursor:pointer}.range-item .remove-button:hover{background-color:var(--ax-danger-trans-light-color)}.range-item div:first-child{display:flex;align-items:center}.range-item div:first-child div:first-child{width:25px;height:25px;border-radius:3px}.range-item div:first-child div:last-child{-webkit-margin-start:10px;margin-inline-start:10px}.range-item div:last-child{display:flex;align-items:center}.range-item div:last-child button{background-color:transparent;border:none;cursor:pointer}.range-item div:last-child button i{color:var(--ax-danger-color)}.range-item div:last-child div{min-width:40px}.range-item div:last-child div.min{color:var(--ax-danger-color)}.range-item div:last-child div.max{color:var(--ax-success-color)}\n"] }]
|
|
11707
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: AXPopupService }]; }, propDecorators: { tplEdit: [{
|
|
11708
|
+
type: ViewChild,
|
|
11709
|
+
args: ['tplEdit']
|
|
11710
|
+
}] } });
|
|
11711
|
+
|
|
11712
|
+
class AXRangePropertyEditorModule {
|
|
11713
|
+
constructor() {
|
|
11714
|
+
}
|
|
11715
|
+
}
|
|
11716
|
+
AXRangePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11717
|
+
AXRangePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, declarations: [AXRangePropertyEditorComponent], imports: [CommonModule,
|
|
11718
|
+
FormsModule,
|
|
11719
|
+
AXTranslatorModule,
|
|
11720
|
+
AXTextBoxModule,
|
|
11721
|
+
AXNumberBoxModule,
|
|
11722
|
+
AXColorPickerModule,
|
|
11723
|
+
AXLabelModule,
|
|
11724
|
+
AXPageModule,
|
|
11725
|
+
AXValidationModule,
|
|
11726
|
+
AXButtonModule], exports: [AXRangePropertyEditorComponent] });
|
|
11727
|
+
AXRangePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, providers: [], imports: [[
|
|
11728
|
+
CommonModule,
|
|
11729
|
+
FormsModule,
|
|
11730
|
+
AXTranslatorModule,
|
|
11731
|
+
AXTextBoxModule,
|
|
11732
|
+
AXNumberBoxModule,
|
|
11733
|
+
AXColorPickerModule,
|
|
11734
|
+
AXLabelModule,
|
|
11735
|
+
AXPageModule,
|
|
11736
|
+
AXValidationModule,
|
|
11737
|
+
AXButtonModule
|
|
11738
|
+
]] });
|
|
11739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, decorators: [{
|
|
11740
|
+
type: NgModule,
|
|
11741
|
+
args: [{
|
|
11742
|
+
declarations: [AXRangePropertyEditorComponent],
|
|
11743
|
+
imports: [
|
|
11744
|
+
CommonModule,
|
|
11745
|
+
FormsModule,
|
|
11746
|
+
AXTranslatorModule,
|
|
11747
|
+
AXTextBoxModule,
|
|
11748
|
+
AXNumberBoxModule,
|
|
11749
|
+
AXColorPickerModule,
|
|
11750
|
+
AXLabelModule,
|
|
11751
|
+
AXPageModule,
|
|
11752
|
+
AXValidationModule,
|
|
11753
|
+
AXButtonModule
|
|
11754
|
+
],
|
|
11755
|
+
exports: [AXRangePropertyEditorComponent],
|
|
11756
|
+
providers: []
|
|
11757
|
+
}]
|
|
11758
|
+
}], ctorParameters: function () { return []; } });
|
|
11759
|
+
|
|
11760
|
+
class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11761
|
+
constructor(cdr) {
|
|
11762
|
+
super(cdr);
|
|
11763
|
+
this.cdr = cdr;
|
|
11764
|
+
this.valueField = 'id';
|
|
11765
|
+
this.textField = 'text';
|
|
11766
|
+
this.selectionMode = 'single';
|
|
11767
|
+
this.selectionDataMode = 'value';
|
|
11768
|
+
this.allowSearch = true;
|
|
11769
|
+
this.allowNull = false;
|
|
11770
|
+
this.disabled = false;
|
|
11771
|
+
this.items = [];
|
|
11772
|
+
this.remoteOperation = false;
|
|
11773
|
+
this.provideData = (e) => {
|
|
11774
|
+
return new Promise((resolve) => {
|
|
11775
|
+
const func = () => {
|
|
11776
|
+
if (Array.isArray(this.items)) {
|
|
11777
|
+
resolve(this.items.slice());
|
|
11778
|
+
}
|
|
11779
|
+
else if (typeof this.items === 'function') {
|
|
11780
|
+
const a = Object.assign(e, { sender: this });
|
|
11781
|
+
resolve(this.items(a));
|
|
11782
|
+
}
|
|
11783
|
+
else {
|
|
11784
|
+
resolve([]);
|
|
11785
|
+
}
|
|
11786
|
+
};
|
|
11787
|
+
const intVal = setInterval(() => {
|
|
11788
|
+
if (this.initiated) {
|
|
11789
|
+
func();
|
|
11790
|
+
clearInterval(intVal);
|
|
11791
|
+
}
|
|
11792
|
+
}, 50);
|
|
11793
|
+
});
|
|
11794
|
+
};
|
|
11795
|
+
}
|
|
11796
|
+
get filter() {
|
|
11797
|
+
return this._filter;
|
|
11798
|
+
}
|
|
11799
|
+
set filter(v) {
|
|
11800
|
+
this._filter = v;
|
|
11801
|
+
if (this.value && this.initiated) {
|
|
11802
|
+
this.value = null;
|
|
11803
|
+
this.selectBox?.refresh();
|
|
11804
|
+
}
|
|
11805
|
+
}
|
|
11806
|
+
handleValueChange(e) {
|
|
11807
|
+
super.handleValueChange(e.selectedValues);
|
|
11808
|
+
}
|
|
11809
|
+
ngAfterViewInit() {
|
|
11810
|
+
this.registerForValidationForm(this.selectBox);
|
|
11811
|
+
this.onRenderCompleted.emit();
|
|
11812
|
+
}
|
|
11813
|
+
}
|
|
11814
|
+
AXSelectBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11815
|
+
AXSelectBoxPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSelectBoxPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "selectBox", first: true, predicate: AXSelectBoxComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, 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>", components: [{ type: AXSelectBoxComponent, selector: "ax-select-box", inputs: ["showDropDownButton", "rowInputTemplate", "showCheckBox", "readonly", "rtl", "disabled", "placeholder", "size", "allowNull", "textAlign", "bufferSize", "remoteOperation", "dataSource", "validation", "disabledCallback", "allowSearch", "textField", "valueField", "disabledField", "mode", "items", "selectedItems", "selectedValues"], outputs: ["dropdownToggle", "itemsChange", "onBlur", "onFocus", "selectionChanged", "selectedItemsChange", "selectedValuesChange"] }, { type: AXDataSourceComponent, selector: "ax-data-source", inputs: ["provideData", "params"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11816
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, decorators: [{
|
|
11817
|
+
type: Component,
|
|
11818
|
+
args: [{ 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>" }]
|
|
11819
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectBox: [{
|
|
11820
|
+
type: ViewChild,
|
|
11821
|
+
args: [AXSelectBoxComponent, { static: true }]
|
|
11822
|
+
}] } });
|
|
11823
|
+
|
|
11824
|
+
class AXSelectBoxPropertyEditorModule {
|
|
11825
|
+
constructor() {
|
|
11826
|
+
}
|
|
11827
|
+
}
|
|
11828
|
+
AXSelectBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11829
|
+
AXSelectBoxPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, declarations: [AXSelectBoxPropertyEditorComponent], imports: [CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule], exports: [AXSelectBoxPropertyEditorComponent] });
|
|
11830
|
+
AXSelectBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule]] });
|
|
11831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, decorators: [{
|
|
11832
|
+
type: NgModule,
|
|
11833
|
+
args: [{
|
|
11834
|
+
declarations: [AXSelectBoxPropertyEditorComponent],
|
|
11835
|
+
imports: [CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule],
|
|
11836
|
+
exports: [AXSelectBoxPropertyEditorComponent],
|
|
11837
|
+
providers: []
|
|
11838
|
+
}]
|
|
11839
|
+
}], ctorParameters: function () { return []; } });
|
|
11840
|
+
|
|
11841
|
+
class AXSelectionListPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11842
|
+
constructor(cdr) {
|
|
11843
|
+
super(cdr);
|
|
11844
|
+
this.cdr = cdr;
|
|
11845
|
+
this.disabled = false;
|
|
11846
|
+
this.indeterminate = false;
|
|
11847
|
+
this.readonly = false;
|
|
11848
|
+
this.size = 'md';
|
|
11849
|
+
this.items = [];
|
|
11850
|
+
this.mode = 'single';
|
|
11851
|
+
this.direction = 'horizontal';
|
|
11852
|
+
this.textField = null;
|
|
11853
|
+
this.valueField = null;
|
|
11854
|
+
}
|
|
11855
|
+
handleValueChange(e) {
|
|
11856
|
+
super.handleValueChange(e);
|
|
11857
|
+
}
|
|
11858
|
+
ngAfterViewInit() {
|
|
11859
|
+
this.registerForValidationForm(this.selectionList);
|
|
11860
|
+
this.onRenderCompleted.emit();
|
|
11861
|
+
}
|
|
11862
|
+
}
|
|
11863
|
+
AXSelectionListPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11864
|
+
AXSelectionListPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSelectionListPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "selectionList", first: true, predicate: AXSelectionListComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
11865
|
+
<ax-selection-list
|
|
11866
|
+
[disabled]="disabled"
|
|
11867
|
+
[size]="size"
|
|
11868
|
+
[readonly]="readonly"
|
|
11869
|
+
[value]="value"
|
|
11870
|
+
[items]="items"
|
|
11871
|
+
[mode]="mode"
|
|
11872
|
+
(selectedValuesChange)="handleValueChange($event)"
|
|
11873
|
+
[textField]="textField"
|
|
11874
|
+
[valueField]="valueField"
|
|
11875
|
+
[direction]="direction"
|
|
11876
|
+
>
|
|
11877
|
+
<ax-validation [rules]="validation?.rules">
|
|
11878
|
+
</ax-validation>
|
|
11879
|
+
</ax-selection-list>
|
|
11880
|
+
`, isInline: true, components: [{ type: AXSelectionListComponent, selector: "ax-selection-list", inputs: ["readonly", "value", "disabled", "size", "direction", "items", "mode", "textField", "valueField", "selectedItems", "selectedValues"], outputs: ["selectedItemsChange", "selectedValuesChange"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListPropertyEditorComponent, decorators: [{
|
|
11882
|
+
type: Component,
|
|
11883
|
+
args: [{
|
|
11884
|
+
template: `
|
|
11885
|
+
<ax-selection-list
|
|
11886
|
+
[disabled]="disabled"
|
|
11887
|
+
[size]="size"
|
|
11888
|
+
[readonly]="readonly"
|
|
11889
|
+
[value]="value"
|
|
11890
|
+
[items]="items"
|
|
11891
|
+
[mode]="mode"
|
|
11892
|
+
(selectedValuesChange)="handleValueChange($event)"
|
|
11893
|
+
[textField]="textField"
|
|
11894
|
+
[valueField]="valueField"
|
|
11895
|
+
[direction]="direction"
|
|
11896
|
+
>
|
|
11897
|
+
<ax-validation [rules]="validation?.rules">
|
|
11898
|
+
</ax-validation>
|
|
11899
|
+
</ax-selection-list>
|
|
11900
|
+
`,
|
|
11901
|
+
}]
|
|
11902
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionList: [{
|
|
11903
|
+
type: ViewChild,
|
|
11904
|
+
args: [AXSelectionListComponent, { static: true }]
|
|
11905
|
+
}] } });
|
|
11906
|
+
|
|
11907
|
+
class AXSelectionPropertyEditorModule {
|
|
11908
|
+
}
|
|
11909
|
+
AXSelectionPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11910
|
+
AXSelectionPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, declarations: [AXSelectionListPropertyEditorComponent], imports: [CommonModule, AXSelectionListModule, FormsModule, AXValidationModule], exports: [AXSelectionListPropertyEditorComponent] });
|
|
11911
|
+
AXSelectionPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, providers: [], imports: [[CommonModule, AXSelectionListModule, FormsModule, AXValidationModule]] });
|
|
11912
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, decorators: [{
|
|
11913
|
+
type: NgModule,
|
|
11914
|
+
args: [{
|
|
11915
|
+
declarations: [AXSelectionListPropertyEditorComponent],
|
|
11916
|
+
imports: [CommonModule, AXSelectionListModule, FormsModule, AXValidationModule],
|
|
11917
|
+
exports: [AXSelectionListPropertyEditorComponent],
|
|
11918
|
+
providers: [],
|
|
11919
|
+
}]
|
|
11920
|
+
}] });
|
|
11725
11921
|
|
|
11726
11922
|
class AXSwitchComponent extends AXBaseComponent {
|
|
11727
11923
|
constructor(cdr) {
|
|
@@ -11827,64 +12023,125 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11827
12023
|
}]
|
|
11828
12024
|
}], ctorParameters: function () { return []; } });
|
|
11829
12025
|
|
|
11830
|
-
class
|
|
12026
|
+
class AXTextPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11831
12027
|
constructor(cdr) {
|
|
11832
12028
|
super(cdr);
|
|
11833
12029
|
this.cdr = cdr;
|
|
11834
|
-
this.showTodayButton = true;
|
|
11835
|
-
this.selectableHoliday = true;
|
|
11836
|
-
this.type = 'gregorian';
|
|
11837
|
-
this.textAlign = null;
|
|
11838
|
-
this.placeholder = '';
|
|
11839
12030
|
this.clearButton = false;
|
|
11840
|
-
this.showToday = false;
|
|
11841
|
-
this.size = 'md';
|
|
11842
12031
|
}
|
|
11843
12032
|
handleValueChange(e) {
|
|
11844
12033
|
super.handleValueChange(e.value);
|
|
11845
12034
|
}
|
|
11846
12035
|
ngAfterViewInit() {
|
|
11847
|
-
this.registerForValidationForm(this.
|
|
12036
|
+
this.registerForValidationForm(this.textBox);
|
|
11848
12037
|
this.onRenderCompleted.emit();
|
|
11849
12038
|
}
|
|
11850
12039
|
}
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11855
|
-
<ax-validation [rules]="validation?.rules">
|
|
11856
|
-
</ax-validation>
|
|
11857
|
-
</ax-date-picker>
|
|
11858
|
-
`, isInline: true, components: [{ type: AXDatePickerComponent, selector: "ax-date-picker", inputs: ["dayStyle", "dayMinMaxResoan", "validation", "placeholder", "min", "max", "readonly", "disabled", "allowClear", "textAlign", "showToday", "selectableHoliday", "dateType", "showTodayButton", "openByClick", "size", "type", "value"], outputs: ["typeChange", "onValueChanged", "valueChange"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
11859
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, decorators: [{
|
|
12040
|
+
AXTextPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12041
|
+
AXTextPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-box (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" [readonly]=\"readonly\" [allowClear]=\"clearButton\">\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-box>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["mask", "type", "showMask", "maxLength", "maskGuid", "maskPlaceholder", "maskKeepCharPositions"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
12042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, decorators: [{
|
|
11860
12043
|
type: Component,
|
|
12044
|
+
args: [{ template: "<ax-text-box (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" [readonly]=\"readonly\" [allowClear]=\"clearButton\">\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-box>" }]
|
|
12045
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
12046
|
+
type: ViewChild,
|
|
12047
|
+
args: [AXTextBoxComponent]
|
|
12048
|
+
}] } });
|
|
12049
|
+
|
|
12050
|
+
class AXTextPropertyEditorModule {
|
|
12051
|
+
constructor() {
|
|
12052
|
+
}
|
|
12053
|
+
}
|
|
12054
|
+
AXTextPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12055
|
+
AXTextPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, declarations: [AXTextPropertyEditorComponent], imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule], exports: [AXTextPropertyEditorComponent] });
|
|
12056
|
+
AXTextPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextBoxModule, AXValidationModule]] });
|
|
12057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, decorators: [{
|
|
12058
|
+
type: NgModule,
|
|
11861
12059
|
args: [{
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
</ax-validation>
|
|
11867
|
-
</ax-date-picker>
|
|
11868
|
-
`,
|
|
12060
|
+
declarations: [AXTextPropertyEditorComponent],
|
|
12061
|
+
imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
|
|
12062
|
+
exports: [AXTextPropertyEditorComponent],
|
|
12063
|
+
providers: []
|
|
11869
12064
|
}]
|
|
11870
|
-
}], ctorParameters: function () { return [
|
|
12065
|
+
}], ctorParameters: function () { return []; } });
|
|
12066
|
+
|
|
12067
|
+
class AXTextAreaComponent extends AXBaseTextComponent {
|
|
12068
|
+
constructor(cdr, ref) {
|
|
12069
|
+
super(cdr, ref);
|
|
12070
|
+
this.cdr = cdr;
|
|
12071
|
+
this.rows = 0;
|
|
12072
|
+
this.cols = 0;
|
|
12073
|
+
this.maxLength = null;
|
|
12074
|
+
}
|
|
12075
|
+
}
|
|
12076
|
+
AXTextAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12077
|
+
AXTextAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextAreaComponent, selector: "ax-text-area", inputs: { rows: "rows", cols: "cols", maxLength: "maxLength" }, host: { styleAttribute: "width: 100%" }, providers: [{ provide: AXValidatableComponent, useExisting: AXTextAreaComponent }], usesInheritance: true, ngImport: i0, 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>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
12078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, decorators: [{
|
|
12079
|
+
type: Component,
|
|
12080
|
+
args: [{ selector: 'ax-text-area', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { style: 'width: 100%' }, providers: [{ provide: AXValidatableComponent, useExisting: AXTextAreaComponent }], 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>" }]
|
|
12081
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { rows: [{
|
|
12082
|
+
type: Input
|
|
12083
|
+
}], cols: [{
|
|
12084
|
+
type: Input
|
|
12085
|
+
}], maxLength: [{
|
|
12086
|
+
type: Input
|
|
12087
|
+
}] } });
|
|
12088
|
+
|
|
12089
|
+
class AXTextareaPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12090
|
+
constructor(cdr) {
|
|
12091
|
+
super(cdr);
|
|
12092
|
+
this.cdr = cdr;
|
|
12093
|
+
this.clearButton = false;
|
|
12094
|
+
this.placeholder = null;
|
|
12095
|
+
this.rows = 3;
|
|
12096
|
+
}
|
|
12097
|
+
handleValueChange(e) {
|
|
12098
|
+
super.handleValueChange(e.value);
|
|
12099
|
+
}
|
|
12100
|
+
ngAfterViewInit() {
|
|
12101
|
+
this.registerForValidationForm(this.textBox);
|
|
12102
|
+
this.onRenderCompleted.emit();
|
|
12103
|
+
}
|
|
12104
|
+
}
|
|
12105
|
+
AXTextareaPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12106
|
+
AXTextareaPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextareaPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-area (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" \r\n [readonly]=\"readonly\" \r\n [allowClear]=\"clearButton\"\r\n [placeholder]=\"placeholder\"\r\n [rows]=\"rows\"\r\n >\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-area>\r\n", components: [{ type: AXTextAreaComponent, selector: "ax-text-area", inputs: ["rows", "cols", "maxLength"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
12107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, decorators: [{
|
|
12108
|
+
type: Component,
|
|
12109
|
+
args: [{ template: "<ax-text-area (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" \r\n [readonly]=\"readonly\" \r\n [allowClear]=\"clearButton\"\r\n [placeholder]=\"placeholder\"\r\n [rows]=\"rows\"\r\n >\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-area>\r\n" }]
|
|
12110
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
11871
12111
|
type: ViewChild,
|
|
11872
|
-
args: [
|
|
12112
|
+
args: [AXTextBoxComponent]
|
|
11873
12113
|
}] } });
|
|
11874
12114
|
|
|
11875
|
-
|
|
12115
|
+
const COMPONENT = [AXTextAreaComponent];
|
|
12116
|
+
const MODULES = [CommonModule];
|
|
12117
|
+
class AXTextAreaModule {
|
|
12118
|
+
}
|
|
12119
|
+
AXTextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12120
|
+
AXTextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, declarations: [AXTextAreaComponent], imports: [CommonModule], exports: [AXTextAreaComponent] });
|
|
12121
|
+
AXTextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, providers: [], imports: [[...MODULES]] });
|
|
12122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, decorators: [{
|
|
12123
|
+
type: NgModule,
|
|
12124
|
+
args: [{
|
|
12125
|
+
declarations: [...COMPONENT],
|
|
12126
|
+
imports: [...MODULES],
|
|
12127
|
+
exports: [...COMPONENT],
|
|
12128
|
+
providers: [],
|
|
12129
|
+
}]
|
|
12130
|
+
}] });
|
|
12131
|
+
|
|
12132
|
+
class AXTextareaPropertyEditorModule {
|
|
11876
12133
|
constructor() {
|
|
11877
12134
|
}
|
|
11878
12135
|
}
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
12136
|
+
AXTextareaPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12137
|
+
AXTextareaPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, declarations: [AXTextareaPropertyEditorComponent], imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule], exports: [AXTextareaPropertyEditorComponent] });
|
|
12138
|
+
AXTextareaPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextAreaModule, AXValidationModule]] });
|
|
12139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, decorators: [{
|
|
11883
12140
|
type: NgModule,
|
|
11884
12141
|
args: [{
|
|
11885
|
-
declarations: [
|
|
11886
|
-
imports: [CommonModule, FormsModule,
|
|
11887
|
-
exports: [
|
|
12142
|
+
declarations: [AXTextareaPropertyEditorComponent],
|
|
12143
|
+
imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
|
|
12144
|
+
exports: [AXTextareaPropertyEditorComponent],
|
|
11888
12145
|
providers: []
|
|
11889
12146
|
}]
|
|
11890
12147
|
}], ctorParameters: function () { return []; } });
|
|
@@ -12823,21 +13080,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12823
13080
|
type: Input
|
|
12824
13081
|
}] } });
|
|
12825
13082
|
|
|
12826
|
-
class AXTimePickerModule {
|
|
12827
|
-
}
|
|
12828
|
-
AXTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12829
|
-
AXTimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, declarations: [AXTimePickerComponent], imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule], exports: [AXTimePickerComponent] });
|
|
12830
|
-
AXTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, providers: [], imports: [[CommonModule, FormsModule, AXButtonModule, TextMaskModule]] });
|
|
12831
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, decorators: [{
|
|
12832
|
-
type: NgModule,
|
|
12833
|
-
args: [{
|
|
12834
|
-
declarations: [AXTimePickerComponent],
|
|
12835
|
-
imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule],
|
|
12836
|
-
exports: [AXTimePickerComponent],
|
|
12837
|
-
providers: [],
|
|
12838
|
-
}]
|
|
12839
|
-
}] });
|
|
12840
|
-
|
|
12841
13083
|
class AXTimePropertyEditorComponent extends AXProperyEditorComponent {
|
|
12842
13084
|
constructor(cdr) {
|
|
12843
13085
|
super(cdr);
|
|
@@ -12875,6 +13117,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12875
13117
|
args: [AXDatePickerComponent]
|
|
12876
13118
|
}] } });
|
|
12877
13119
|
|
|
13120
|
+
class AXTimePickerModule {
|
|
13121
|
+
}
|
|
13122
|
+
AXTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13123
|
+
AXTimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, declarations: [AXTimePickerComponent], imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule], exports: [AXTimePickerComponent] });
|
|
13124
|
+
AXTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, providers: [], imports: [[CommonModule, FormsModule, AXButtonModule, TextMaskModule]] });
|
|
13125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, decorators: [{
|
|
13126
|
+
type: NgModule,
|
|
13127
|
+
args: [{
|
|
13128
|
+
declarations: [AXTimePickerComponent],
|
|
13129
|
+
imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule],
|
|
13130
|
+
exports: [AXTimePickerComponent],
|
|
13131
|
+
providers: [],
|
|
13132
|
+
}]
|
|
13133
|
+
}] });
|
|
13134
|
+
|
|
12878
13135
|
class AXTimePropertyEditorModule {
|
|
12879
13136
|
constructor() {
|
|
12880
13137
|
}
|
|
@@ -12892,88 +13149,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12892
13149
|
}]
|
|
12893
13150
|
}], ctorParameters: function () { return []; } });
|
|
12894
13151
|
|
|
12895
|
-
class AXTextAreaComponent extends AXBaseTextComponent {
|
|
12896
|
-
constructor(cdr, ref) {
|
|
12897
|
-
super(cdr, ref);
|
|
12898
|
-
this.cdr = cdr;
|
|
12899
|
-
this.rows = 0;
|
|
12900
|
-
this.cols = 0;
|
|
12901
|
-
this.maxLength = null;
|
|
12902
|
-
}
|
|
12903
|
-
}
|
|
12904
|
-
AXTextAreaComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12905
|
-
AXTextAreaComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextAreaComponent, selector: "ax-text-area", inputs: { rows: "rows", cols: "cols", maxLength: "maxLength" }, host: { styleAttribute: "width: 100%" }, providers: [{ provide: AXValidatableComponent, useExisting: AXTextAreaComponent }], usesInheritance: true, ngImport: i0, 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>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
12906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, decorators: [{
|
|
12907
|
-
type: Component,
|
|
12908
|
-
args: [{ selector: 'ax-text-area', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { style: 'width: 100%' }, providers: [{ provide: AXValidatableComponent, useExisting: AXTextAreaComponent }], 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>" }]
|
|
12909
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { rows: [{
|
|
12910
|
-
type: Input
|
|
12911
|
-
}], cols: [{
|
|
12912
|
-
type: Input
|
|
12913
|
-
}], maxLength: [{
|
|
12914
|
-
type: Input
|
|
12915
|
-
}] } });
|
|
12916
|
-
|
|
12917
|
-
class AXTextareaPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12918
|
-
constructor(cdr) {
|
|
12919
|
-
super(cdr);
|
|
12920
|
-
this.cdr = cdr;
|
|
12921
|
-
this.clearButton = false;
|
|
12922
|
-
this.placeholder = null;
|
|
12923
|
-
this.rows = 3;
|
|
12924
|
-
}
|
|
12925
|
-
handleValueChange(e) {
|
|
12926
|
-
super.handleValueChange(e.value);
|
|
12927
|
-
}
|
|
12928
|
-
ngAfterViewInit() {
|
|
12929
|
-
this.registerForValidationForm(this.textBox);
|
|
12930
|
-
this.onRenderCompleted.emit();
|
|
12931
|
-
}
|
|
12932
|
-
}
|
|
12933
|
-
AXTextareaPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12934
|
-
AXTextareaPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXTextareaPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-area (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" \r\n [readonly]=\"readonly\" \r\n [allowClear]=\"clearButton\"\r\n [placeholder]=\"placeholder\"\r\n [rows]=\"rows\"\r\n >\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-area>\r\n", components: [{ type: AXTextAreaComponent, selector: "ax-text-area", inputs: ["rows", "cols", "maxLength"] }, { type: AXValidationComponent, selector: "ax-validation", inputs: ["rules", "validateOn"], outputs: ["rulesChange", "showMessage"] }] });
|
|
12935
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, decorators: [{
|
|
12936
|
-
type: Component,
|
|
12937
|
-
args: [{ template: "<ax-text-area (onValueChanged)=\"handleValueChange($event)\" [value]=\"value\" \r\n [readonly]=\"readonly\" \r\n [allowClear]=\"clearButton\"\r\n [placeholder]=\"placeholder\"\r\n [rows]=\"rows\"\r\n >\r\n <ax-validation [rules]=\"validation?.rules\">\r\n </ax-validation>\r\n</ax-text-area>\r\n" }]
|
|
12938
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
12939
|
-
type: ViewChild,
|
|
12940
|
-
args: [AXTextBoxComponent]
|
|
12941
|
-
}] } });
|
|
12942
|
-
|
|
12943
|
-
const COMPONENT = [AXTextAreaComponent];
|
|
12944
|
-
const MODULES = [CommonModule];
|
|
12945
|
-
class AXTextAreaModule {
|
|
12946
|
-
}
|
|
12947
|
-
AXTextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12948
|
-
AXTextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, declarations: [AXTextAreaComponent], imports: [CommonModule], exports: [AXTextAreaComponent] });
|
|
12949
|
-
AXTextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, providers: [], imports: [[...MODULES]] });
|
|
12950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, decorators: [{
|
|
12951
|
-
type: NgModule,
|
|
12952
|
-
args: [{
|
|
12953
|
-
declarations: [...COMPONENT],
|
|
12954
|
-
imports: [...MODULES],
|
|
12955
|
-
exports: [...COMPONENT],
|
|
12956
|
-
providers: [],
|
|
12957
|
-
}]
|
|
12958
|
-
}] });
|
|
12959
|
-
|
|
12960
|
-
class AXTextareaPropertyEditorModule {
|
|
12961
|
-
constructor() {
|
|
12962
|
-
}
|
|
12963
|
-
}
|
|
12964
|
-
AXTextareaPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12965
|
-
AXTextareaPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, declarations: [AXTextareaPropertyEditorComponent], imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule], exports: [AXTextareaPropertyEditorComponent] });
|
|
12966
|
-
AXTextareaPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextAreaModule, AXValidationModule]] });
|
|
12967
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, decorators: [{
|
|
12968
|
-
type: NgModule,
|
|
12969
|
-
args: [{
|
|
12970
|
-
declarations: [AXTextareaPropertyEditorComponent],
|
|
12971
|
-
imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
|
|
12972
|
-
exports: [AXTextareaPropertyEditorComponent],
|
|
12973
|
-
providers: []
|
|
12974
|
-
}]
|
|
12975
|
-
}], ctorParameters: function () { return []; } });
|
|
12976
|
-
|
|
12977
13152
|
const WDIGET_MODULES = [
|
|
12978
13153
|
AXNumberBoxPropertyEditorModule,
|
|
12979
13154
|
AXTextPropertyEditorModule,
|
|
@@ -12986,7 +13161,9 @@ const WDIGET_MODULES = [
|
|
|
12986
13161
|
AXDatePropertyEditorModule,
|
|
12987
13162
|
AXTimePropertyEditorModule,
|
|
12988
13163
|
AXTimePropertyEditorModule,
|
|
12989
|
-
AXTextareaPropertyEditorModule
|
|
13164
|
+
AXTextareaPropertyEditorModule,
|
|
13165
|
+
AXCheckPropertyEditorModule,
|
|
13166
|
+
AXSelectionPropertyEditorModule
|
|
12990
13167
|
];
|
|
12991
13168
|
class AXProppertyEditorModule {
|
|
12992
13169
|
}
|
|
@@ -13002,10 +13179,20 @@ AXProppertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
|
13002
13179
|
AXDatePropertyEditorModule,
|
|
13003
13180
|
AXTimePropertyEditorModule,
|
|
13004
13181
|
AXTimePropertyEditorModule,
|
|
13005
|
-
AXTextareaPropertyEditorModule,
|
|
13182
|
+
AXTextareaPropertyEditorModule,
|
|
13183
|
+
AXCheckPropertyEditorModule,
|
|
13184
|
+
AXSelectionPropertyEditorModule, i1$4.RouterModule], exports: [AXPropertyEditorRendererDirective] });
|
|
13006
13185
|
AXProppertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXProppertyEditorModule, providers: [], imports: [[
|
|
13007
13186
|
WDIGET_MODULES,
|
|
13008
13187
|
RouterModule.forChild([
|
|
13188
|
+
{
|
|
13189
|
+
path: 'ax/editors/selection',
|
|
13190
|
+
component: AXSelectionListPropertyEditorComponent
|
|
13191
|
+
},
|
|
13192
|
+
{
|
|
13193
|
+
component: AXCheckBoxPropertyEditorComponent,
|
|
13194
|
+
path: 'ax/editors/check'
|
|
13195
|
+
},
|
|
13009
13196
|
{
|
|
13010
13197
|
component: AXTextPropertyEditorComponent,
|
|
13011
13198
|
path: 'ax/editors/text'
|
|
@@ -13057,6 +13244,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
13057
13244
|
imports: [
|
|
13058
13245
|
WDIGET_MODULES,
|
|
13059
13246
|
RouterModule.forChild([
|
|
13247
|
+
{
|
|
13248
|
+
path: 'ax/editors/selection',
|
|
13249
|
+
component: AXSelectionListPropertyEditorComponent
|
|
13250
|
+
},
|
|
13251
|
+
{
|
|
13252
|
+
component: AXCheckBoxPropertyEditorComponent,
|
|
13253
|
+
path: 'ax/editors/check'
|
|
13254
|
+
},
|
|
13060
13255
|
{
|
|
13061
13256
|
component: AXTextPropertyEditorComponent,
|
|
13062
13257
|
path: 'ax/editors/text'
|