@acorex/components 4.2.21 → 4.2.25
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/form-group/form-group.component.mjs +3 -3
- package/esm2020/lib/property-editor/editors/check-editor/check-editor.mjs +31 -21
- package/esm2020/lib/property-editor/editors/check-editor/check.module.mjs +3 -3
- 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 +33 -20
- package/esm2020/lib/search-bar/search-bar.component.mjs +30 -32
- package/esm2020/lib/selection-list/selection-list.component.mjs +5 -5
- package/fesm2015/acorex-components.mjs +748 -647
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +748 -647
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/property-editor/editors/check-editor/check-editor.d.ts +3 -2
- package/lib/property-editor/editors/check-editor/check.module.d.ts +1 -1
- 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 +3 -2
- package/lib/search-bar/search-bar.component.d.ts +4 -3
- package/lib/selection-list/selection-list.component.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -3495,10 +3495,10 @@ class AXSelectionListComponent extends AXBaseComponent {
|
|
|
3495
3495
|
}
|
|
3496
3496
|
}
|
|
3497
3497
|
AXSelectionListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3498
|
-
AXSelectionListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSelectionListComponent, selector: "ax-selection-list", inputs: { readonly: "readonly", value: "value", disabled: "disabled", size: "size", direction: "direction", items: "items", mode: "mode", textField: "textField", valueField: "valueField", selectedItems: "selectedItems", selectedValues: "selectedValues" }, outputs: { selectedItemsChange: "selectedItemsChange", selectedValuesChange: "selectedValuesChange" }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\" mode == 'multiple'; then checkboxList; else radioButtonList\"></ng-container>\r\n<ng-template #checkboxList>\r\n <div class=\"ax selection-list {{size}}\" [ngClass]=\"direction\">\r\n <ax-check-box label=\"{{item[textField]}}\" *ngFor=\"let item of items\" [disabled]=\"item.disable || disabled\"\r\n [readonly]=\"item.readonly || readonly\" [value]=\"selectedValues.indexOf(item[valueField])>-1\"\r\n (onValueChanged)=\"onCheckValueChange(item[valueField],$event.value)\">\r\n </ax-check-box>\r\n </div>\r\n</ng-template>\r\n<ng-template #radioButtonList>\r\n <div class=\"ax selection-list {{size}}\" [ngClass]=\"direction\">\r\n <label class=\"ax radio\" for=\"{{uid}}\" [class.disabled]=\"disabled\" [class.readonly]=\"
|
|
3498
|
+
AXSelectionListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSelectionListComponent, selector: "ax-selection-list", inputs: { readonly: "readonly", value: "value", disabled: "disabled", size: "size", direction: "direction", items: "items", mode: "mode", textField: "textField", valueField: "valueField", selectedItems: "selectedItems", selectedValues: "selectedValues" }, outputs: { selectedItemsChange: "selectedItemsChange", selectedValuesChange: "selectedValuesChange" }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\" mode == 'multiple'; then checkboxList; else radioButtonList\"></ng-container>\r\n<ng-template #checkboxList>\r\n <div class=\"ax selection-list {{size}}\" [ngClass]=\"direction\">\r\n <ax-check-box label=\"{{item[textField]}}\" *ngFor=\"let item of items\" [disabled]=\"item.disable || disabled\"\r\n [readonly]=\"item.readonly || readonly\" [value]=\"selectedValues.indexOf(item[valueField])>-1\"\r\n (onValueChanged)=\"onCheckValueChange(item[valueField],$event.value)\">\r\n </ax-check-box>\r\n </div>\r\n</ng-template>\r\n<ng-template #radioButtonList>\r\n <div class=\"ax selection-list {{size}}\" [ngClass]=\"direction\">\r\n <label class=\"ax radio\" for=\"{{uid}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\"\r\n *ngFor=\"let item of items\" (click)=\"onvalueChanged(item)\">\r\n {{ item[textField] }}\r\n <input type=\"radio\" (change)=\"onCheckValueChange(item[valueField],true)\" [value]=\"item[valueField]\"\r\n [checked]=\"selectedValues==item[valueField]\" [name]=\"uid\" [disabled]=\"item.disable || disabled\"\r\n [readonly]=\"item.readonly || readonly\" />\r\n <span class=\"checkmark\"></span>\r\n </label>\r\n </div>\r\n</ng-template>", components: [{ type: AXCheckBoxComponent, selector: "ax-check-box", inputs: ["readonly", "disabled", "size", "label", "tabIndex", "indeterminate", "value"], outputs: ["onValueChanged", "valueChange", "onClick"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3499
3499
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListComponent, decorators: [{
|
|
3500
3500
|
type: Component,
|
|
3501
|
-
args: [{ selector: 'ax-selection-list', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\" mode == 'multiple'; then checkboxList; else radioButtonList\"></ng-container>\r\n<ng-template #checkboxList>\r\n <div class=\"ax selection-list {{size}}\" [ngClass]=\"direction\">\r\n <ax-check-box label=\"{{item[textField]}}\" *ngFor=\"let item of items\" [disabled]=\"item.disable || disabled\"\r\n [readonly]=\"item.readonly || readonly\" [value]=\"selectedValues.indexOf(item[valueField])>-1\"\r\n (onValueChanged)=\"onCheckValueChange(item[valueField],$event.value)\">\r\n </ax-check-box>\r\n </div>\r\n</ng-template>\r\n<ng-template #radioButtonList>\r\n <div class=\"ax selection-list {{size}}\" [ngClass]=\"direction\">\r\n <label class=\"ax radio\" for=\"{{uid}}\" [class.disabled]=\"disabled\" [class.readonly]=\"
|
|
3501
|
+
args: [{ selector: 'ax-selection-list', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\" mode == 'multiple'; then checkboxList; else radioButtonList\"></ng-container>\r\n<ng-template #checkboxList>\r\n <div class=\"ax selection-list {{size}}\" [ngClass]=\"direction\">\r\n <ax-check-box label=\"{{item[textField]}}\" *ngFor=\"let item of items\" [disabled]=\"item.disable || disabled\"\r\n [readonly]=\"item.readonly || readonly\" [value]=\"selectedValues.indexOf(item[valueField])>-1\"\r\n (onValueChanged)=\"onCheckValueChange(item[valueField],$event.value)\">\r\n </ax-check-box>\r\n </div>\r\n</ng-template>\r\n<ng-template #radioButtonList>\r\n <div class=\"ax selection-list {{size}}\" [ngClass]=\"direction\">\r\n <label class=\"ax radio\" for=\"{{uid}}\" [class.disabled]=\"disabled\" [class.readonly]=\"readonly\"\r\n *ngFor=\"let item of items\" (click)=\"onvalueChanged(item)\">\r\n {{ item[textField] }}\r\n <input type=\"radio\" (change)=\"onCheckValueChange(item[valueField],true)\" [value]=\"item[valueField]\"\r\n [checked]=\"selectedValues==item[valueField]\" [name]=\"uid\" [disabled]=\"item.disable || disabled\"\r\n [readonly]=\"item.readonly || readonly\" />\r\n <span class=\"checkmark\"></span>\r\n </label>\r\n </div>\r\n</ng-template>" }]
|
|
3502
3502
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { readonly: [{
|
|
3503
3503
|
type: Input
|
|
3504
3504
|
}], value: [{
|
|
@@ -5464,10 +5464,10 @@ class AXFormGroupComponent extends AXBaseComponent {
|
|
|
5464
5464
|
}
|
|
5465
5465
|
}
|
|
5466
5466
|
AXFormGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXFormGroupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5467
|
-
AXFormGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXFormGroupComponent, selector: "ax-form-group", inputs: { size: "size" }, host: { styleAttribute: "width: 100%; display:contents;" }, queries: [{ propertyName: "component", first: true, predicate: AXValidatableComponent, descendants: true }], viewQueries: [{ propertyName: "div", first: true, predicate: ["div"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax form-group {{size}}\">\r\n <ng-content select=\"ax-label\"></ng-content>\r\n <div #div class=\"ax form-item\" [ngClass]=\"{'required-state': required}\">\r\n <div class=\"ax buttons start-buttons\" #startButtons>\r\n <ng-content select=\"ax-button[start]\"></ng-content>\r\n </div>\r\n <div class=\"content\" #content>\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"ax buttons end-buttons\" #endButtons>\r\n <ng-content select=\"ax-button[end]\"></ng-content>\r\n <ng-content select=\"ax-button\"></ng-content>\r\n </div>\r\n </div>\r\n</div>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5467
|
+
AXFormGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXFormGroupComponent, selector: "ax-form-group", inputs: { size: "size" }, host: { styleAttribute: "width: 100%; display:contents;" }, queries: [{ propertyName: "component", first: true, predicate: AXValidatableComponent, descendants: true }], viewQueries: [{ propertyName: "div", first: true, predicate: ["div"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax form-group {{size}}\">\r\n <ng-content select=\"ax-label\"></ng-content>\r\n <div #div class=\"ax form-item {{size}}\" [ngClass]=\"{'required-state': required}\">\r\n <div class=\"ax buttons start-buttons\" #startButtons>\r\n <ng-content select=\"ax-button[start]\"></ng-content>\r\n </div>\r\n <div class=\"content\" #content>\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"ax buttons end-buttons\" #endButtons>\r\n <ng-content select=\"ax-button[end]\"></ng-content>\r\n <ng-content select=\"ax-button\"></ng-content>\r\n </div>\r\n </div>\r\n</div>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5468
5468
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXFormGroupComponent, decorators: [{
|
|
5469
5469
|
type: Component,
|
|
5470
|
-
args: [{ selector: 'ax-form-group', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { style: 'width: 100%; display:contents;' }, template: "<div class=\"ax form-group {{size}}\">\r\n <ng-content select=\"ax-label\"></ng-content>\r\n <div #div class=\"ax form-item\" [ngClass]=\"{'required-state': required}\">\r\n <div class=\"ax buttons start-buttons\" #startButtons>\r\n <ng-content select=\"ax-button[start]\"></ng-content>\r\n </div>\r\n <div class=\"content\" #content>\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"ax buttons end-buttons\" #endButtons>\r\n <ng-content select=\"ax-button[end]\"></ng-content>\r\n <ng-content select=\"ax-button\"></ng-content>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
5470
|
+
args: [{ selector: 'ax-form-group', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { style: 'width: 100%; display:contents;' }, template: "<div class=\"ax form-group {{size}}\">\r\n <ng-content select=\"ax-label\"></ng-content>\r\n <div #div class=\"ax form-item {{size}}\" [ngClass]=\"{'required-state': required}\">\r\n <div class=\"ax buttons start-buttons\" #startButtons>\r\n <ng-content select=\"ax-button[start]\"></ng-content>\r\n </div>\r\n <div class=\"content\" #content>\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"ax buttons end-buttons\" #endButtons>\r\n <ng-content select=\"ax-button[end]\"></ng-content>\r\n <ng-content select=\"ax-button\"></ng-content>\r\n </div>\r\n </div>\r\n</div>" }]
|
|
5471
5471
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { size: [{
|
|
5472
5472
|
type: Input
|
|
5473
5473
|
}], div: [{
|
|
@@ -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);
|
|
@@ -10246,14 +10247,30 @@ class AXSearchBarComponent {
|
|
|
10246
10247
|
this.ref = ref;
|
|
10247
10248
|
this.size = 'md';
|
|
10248
10249
|
this.disabled = false;
|
|
10249
|
-
this.items = [];
|
|
10250
10250
|
this.rtl = AXConfig.get('layout.rtl');
|
|
10251
|
+
this.onValueChange = new EventEmitter();
|
|
10251
10252
|
this.onSearchValue = new EventEmitter();
|
|
10252
10253
|
this._items = [];
|
|
10253
10254
|
this._filterItems = [];
|
|
10254
10255
|
this._filterItemsClone = [];
|
|
10255
10256
|
this._context = {};
|
|
10256
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
|
+
}
|
|
10257
10274
|
handleButtonClick() {
|
|
10258
10275
|
this.dropdown.toggle();
|
|
10259
10276
|
}
|
|
@@ -10268,6 +10285,7 @@ class AXSearchBarComponent {
|
|
|
10268
10285
|
value: e.value
|
|
10269
10286
|
});
|
|
10270
10287
|
}
|
|
10288
|
+
this.onValueChange.emit(e);
|
|
10271
10289
|
}
|
|
10272
10290
|
handleItemRemoveClick(item) {
|
|
10273
10291
|
this._editors.forEach(e => {
|
|
@@ -10278,7 +10296,7 @@ class AXSearchBarComponent {
|
|
|
10278
10296
|
this._filterItems = this._filterItems.filter((el) => el.name != item.name);
|
|
10279
10297
|
}
|
|
10280
10298
|
search() {
|
|
10281
|
-
this._filterItems = JSON.parse(JSON.stringify(this._filterItemsClone));
|
|
10299
|
+
this._filterItems = JSON.parse(JSON.stringify(this._filterItemsClone.filter((el) => el.value != null && el.value != '')));
|
|
10282
10300
|
this.handleButtonClick();
|
|
10283
10301
|
this.onSearchValue.emit(this._filterItems);
|
|
10284
10302
|
}
|
|
@@ -10317,34 +10335,14 @@ class AXSearchBarComponent {
|
|
|
10317
10335
|
return className.toString().replace(/,/, ' ');
|
|
10318
10336
|
}
|
|
10319
10337
|
ngOnInit() {
|
|
10320
|
-
this.items.forEach((el) => {
|
|
10321
|
-
if (el.value != null) {
|
|
10322
|
-
this._filterItems.push({
|
|
10323
|
-
name: el.property.name,
|
|
10324
|
-
title: el.property.title,
|
|
10325
|
-
value: el.value
|
|
10326
|
-
});
|
|
10327
|
-
}
|
|
10328
|
-
});
|
|
10329
|
-
if (this.rtl == null) {
|
|
10330
|
-
this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
|
|
10331
|
-
}
|
|
10332
|
-
setTimeout(() => {
|
|
10333
|
-
this.ref.nativeElement.classList.add(this.rtl ? 'rtl' : 'ltr');
|
|
10334
|
-
this.el.nativeElement.classList.add(this.rtl ? 'rtl' : 'ltr');
|
|
10335
|
-
}, 5);
|
|
10336
|
-
this._items = _.chain(this.items).groupBy(x => x.property.row).map((value, key) => ({ row: key, items: value })).value();
|
|
10337
10338
|
}
|
|
10338
10339
|
}
|
|
10339
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 });
|
|
10340
|
-
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: {
|
|
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 } });
|
|
10341
10342
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, decorators: [{
|
|
10342
10343
|
type: Component,
|
|
10343
|
-
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
|
|
10344
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: {
|
|
10345
|
-
type: ViewChild,
|
|
10346
|
-
args: ['dropdown', { static: true }]
|
|
10347
|
-
}], 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: [{
|
|
10348
10346
|
type: ViewChild,
|
|
10349
10347
|
args: ['dropdown', { static: true }]
|
|
10350
10348
|
}], _editors: [{
|
|
@@ -10358,6 +10356,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
10358
10356
|
type: Input
|
|
10359
10357
|
}], rtl: [{
|
|
10360
10358
|
type: Input
|
|
10359
|
+
}], onValueChange: [{
|
|
10360
|
+
type: Output
|
|
10361
10361
|
}], onSearchValue: [{
|
|
10362
10362
|
type: Output
|
|
10363
10363
|
}] } });
|
|
@@ -10460,198 +10460,75 @@ function propertyEditor(options) {
|
|
|
10460
10460
|
};
|
|
10461
10461
|
}
|
|
10462
10462
|
|
|
10463
|
-
class
|
|
10464
|
-
constructor(cdr) {
|
|
10465
|
-
super(cdr);
|
|
10466
|
-
this.cdr = cdr;
|
|
10467
|
-
this.clearButton = false;
|
|
10468
|
-
}
|
|
10469
|
-
handleValueChange(e) {
|
|
10470
|
-
super.handleValueChange(e.value);
|
|
10471
|
-
}
|
|
10472
|
-
ngAfterViewInit() {
|
|
10473
|
-
this.registerForValidationForm(this.textBox);
|
|
10474
|
-
this.onRenderCompleted.emit();
|
|
10475
|
-
}
|
|
10476
|
-
}
|
|
10477
|
-
AXTextPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10478
|
-
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"] }] });
|
|
10479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, decorators: [{
|
|
10480
|
-
type: Component,
|
|
10481
|
-
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>" }]
|
|
10482
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
10483
|
-
type: ViewChild,
|
|
10484
|
-
args: [AXTextBoxComponent]
|
|
10485
|
-
}] } });
|
|
10486
|
-
|
|
10487
|
-
class AXTextPropertyEditorModule {
|
|
10488
|
-
constructor() {
|
|
10489
|
-
}
|
|
10490
|
-
}
|
|
10491
|
-
AXTextPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10492
|
-
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] });
|
|
10493
|
-
AXTextPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextBoxModule, AXValidationModule]] });
|
|
10494
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, decorators: [{
|
|
10495
|
-
type: NgModule,
|
|
10496
|
-
args: [{
|
|
10497
|
-
declarations: [AXTextPropertyEditorComponent],
|
|
10498
|
-
imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
|
|
10499
|
-
exports: [AXTextPropertyEditorComponent],
|
|
10500
|
-
providers: []
|
|
10501
|
-
}]
|
|
10502
|
-
}], ctorParameters: function () { return []; } });
|
|
10503
|
-
|
|
10504
|
-
class AXNumberBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10463
|
+
class AXCheckBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10505
10464
|
constructor(cdr) {
|
|
10506
10465
|
super(cdr);
|
|
10507
10466
|
this.cdr = cdr;
|
|
10508
|
-
this.
|
|
10509
|
-
this.
|
|
10510
|
-
this.
|
|
10511
|
-
this.
|
|
10512
|
-
this.clearButton = false;
|
|
10467
|
+
this.disabled = false;
|
|
10468
|
+
this.indeterminate = false;
|
|
10469
|
+
this.readonly = false;
|
|
10470
|
+
this.size = 'md';
|
|
10513
10471
|
}
|
|
10514
10472
|
handleValueChange(e) {
|
|
10515
10473
|
super.handleValueChange(e.value);
|
|
10516
10474
|
}
|
|
10517
10475
|
ngAfterViewInit() {
|
|
10518
|
-
this.registerForValidationForm(this.
|
|
10476
|
+
this.registerForValidationForm(this.checkBox);
|
|
10519
10477
|
this.onRenderCompleted.emit();
|
|
10520
10478
|
}
|
|
10521
10479
|
}
|
|
10522
|
-
|
|
10523
|
-
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
</ax-
|
|
10535
|
-
|
|
10536
|
-
|
|
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: [{
|
|
10537
10496
|
type: Component,
|
|
10538
10497
|
args: [{
|
|
10539
10498
|
template: `
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
</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>
|
|
10551
10511
|
`,
|
|
10552
10512
|
}]
|
|
10553
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
10554
|
-
type: ViewChild,
|
|
10555
|
-
args: [AXNumberBoxComponent]
|
|
10556
|
-
}] } });
|
|
10557
|
-
|
|
10558
|
-
class AXNumberBoxPropertyEditorModule {
|
|
10559
|
-
constructor() {
|
|
10560
|
-
}
|
|
10561
|
-
}
|
|
10562
|
-
AXNumberBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10563
|
-
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] });
|
|
10564
|
-
AXNumberBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule]] });
|
|
10565
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, decorators: [{
|
|
10566
|
-
type: NgModule,
|
|
10567
|
-
args: [{
|
|
10568
|
-
declarations: [AXNumberBoxPropertyEditorComponent],
|
|
10569
|
-
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule],
|
|
10570
|
-
exports: [AXNumberBoxPropertyEditorComponent],
|
|
10571
|
-
providers: []
|
|
10572
|
-
}]
|
|
10573
|
-
}], ctorParameters: function () { return []; } });
|
|
10574
|
-
|
|
10575
|
-
class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10576
|
-
constructor(cdr) {
|
|
10577
|
-
super(cdr);
|
|
10578
|
-
this.cdr = cdr;
|
|
10579
|
-
this.valueField = 'id';
|
|
10580
|
-
this.textField = 'text';
|
|
10581
|
-
this.selectionMode = 'single';
|
|
10582
|
-
this.selectionDataMode = 'value';
|
|
10583
|
-
this.allowSearch = true;
|
|
10584
|
-
this.allowNull = false;
|
|
10585
|
-
this.disabled = false;
|
|
10586
|
-
this.items = [];
|
|
10587
|
-
this.remoteOperation = false;
|
|
10588
|
-
this.provideData = (e) => {
|
|
10589
|
-
return new Promise((resolve) => {
|
|
10590
|
-
const func = () => {
|
|
10591
|
-
if (Array.isArray(this.items)) {
|
|
10592
|
-
resolve(this.items.slice());
|
|
10593
|
-
}
|
|
10594
|
-
else if (typeof this.items === 'function') {
|
|
10595
|
-
const a = Object.assign(e, { sender: this });
|
|
10596
|
-
resolve(this.items(a));
|
|
10597
|
-
}
|
|
10598
|
-
else {
|
|
10599
|
-
resolve([]);
|
|
10600
|
-
}
|
|
10601
|
-
};
|
|
10602
|
-
const intVal = setInterval(() => {
|
|
10603
|
-
if (this.initiated) {
|
|
10604
|
-
func();
|
|
10605
|
-
clearInterval(intVal);
|
|
10606
|
-
}
|
|
10607
|
-
}, 50);
|
|
10608
|
-
});
|
|
10609
|
-
};
|
|
10610
|
-
}
|
|
10611
|
-
get filter() {
|
|
10612
|
-
return this._filter;
|
|
10613
|
-
}
|
|
10614
|
-
set filter(v) {
|
|
10615
|
-
this._filter = v;
|
|
10616
|
-
if (this.value && this.initiated) {
|
|
10617
|
-
this.value = null;
|
|
10618
|
-
this.selectBox?.refresh();
|
|
10619
|
-
}
|
|
10620
|
-
}
|
|
10621
|
-
handleValueChange(e) {
|
|
10622
|
-
super.handleValueChange(e.selectedValues);
|
|
10623
|
-
}
|
|
10624
|
-
ngAfterViewInit() {
|
|
10625
|
-
this.registerForValidationForm(this.selectBox);
|
|
10626
|
-
this.onRenderCompleted.emit();
|
|
10627
|
-
}
|
|
10628
|
-
}
|
|
10629
|
-
AXSelectBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10630
|
-
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"] }] });
|
|
10631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, decorators: [{
|
|
10632
|
-
type: Component,
|
|
10633
|
-
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>" }]
|
|
10634
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectBox: [{
|
|
10513
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { checkBox: [{
|
|
10635
10514
|
type: ViewChild,
|
|
10636
|
-
args: [
|
|
10515
|
+
args: [AXCheckBoxComponent, { static: true }]
|
|
10637
10516
|
}] } });
|
|
10638
10517
|
|
|
10639
|
-
class
|
|
10640
|
-
constructor() {
|
|
10641
|
-
}
|
|
10518
|
+
class AXCheckPropertyEditorModule {
|
|
10642
10519
|
}
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
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: [{
|
|
10647
10524
|
type: NgModule,
|
|
10648
10525
|
args: [{
|
|
10649
|
-
declarations: [
|
|
10650
|
-
imports: [CommonModule,
|
|
10651
|
-
exports: [
|
|
10652
|
-
providers: []
|
|
10526
|
+
declarations: [AXCheckBoxPropertyEditorComponent],
|
|
10527
|
+
imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule],
|
|
10528
|
+
exports: [AXCheckBoxPropertyEditorComponent],
|
|
10529
|
+
providers: [],
|
|
10653
10530
|
}]
|
|
10654
|
-
}]
|
|
10531
|
+
}] });
|
|
10655
10532
|
|
|
10656
10533
|
class AXColorBoxComponent extends AXValidatableComponent {
|
|
10657
10534
|
constructor() {
|
|
@@ -11141,198 +11018,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11141
11018
|
type: Input
|
|
11142
11019
|
}] } });
|
|
11143
11020
|
|
|
11144
|
-
class
|
|
11145
|
-
constructor(cdr
|
|
11021
|
+
class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11022
|
+
constructor(cdr) {
|
|
11146
11023
|
super(cdr);
|
|
11147
11024
|
this.cdr = cdr;
|
|
11148
|
-
this.popupService = popupService;
|
|
11149
|
-
this.ranges = [];
|
|
11150
|
-
this.showSeparator = true;
|
|
11151
|
-
this.decimalNumber = 2;
|
|
11152
|
-
}
|
|
11153
|
-
ngOnInit() {
|
|
11154
|
-
this.ranges = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
11155
|
-
this.cdr.detectChanges();
|
|
11156
11025
|
}
|
|
11157
11026
|
ngAfterViewInit() {
|
|
11158
|
-
this.
|
|
11159
|
-
}
|
|
11160
|
-
// getRanges() {
|
|
11161
|
-
// return this.ranges.sort((a, b) => a.minValue - b.minValue);
|
|
11162
|
-
// }
|
|
11163
|
-
onFormInit(e) {
|
|
11164
|
-
this.form = e.component;
|
|
11165
|
-
}
|
|
11166
|
-
handleEditClick(item) {
|
|
11167
|
-
this.editRow = Object.assign({}, item);
|
|
11168
|
-
const popup = this.popupService.open(this.tplEdit, {
|
|
11169
|
-
size: 'sm',
|
|
11170
|
-
footerButtons: [
|
|
11171
|
-
{
|
|
11172
|
-
name: 'confirm',
|
|
11173
|
-
text: AXTranslator.get('common.confirm'),
|
|
11174
|
-
style: 'success',
|
|
11175
|
-
submitBehavior: true,
|
|
11176
|
-
cancelBehavior: false,
|
|
11177
|
-
onClick: () => {
|
|
11178
|
-
this.form.validate().then(c => {
|
|
11179
|
-
if (c.result) {
|
|
11180
|
-
super.handleValueChange(this.ranges);
|
|
11181
|
-
Object.assign(item, this.editRow);
|
|
11182
|
-
popup.close();
|
|
11183
|
-
this.editRow = null;
|
|
11184
|
-
this.cdr.detectChanges();
|
|
11185
|
-
}
|
|
11186
|
-
});
|
|
11187
|
-
}
|
|
11188
|
-
},
|
|
11189
|
-
{
|
|
11190
|
-
name: 'cancel',
|
|
11191
|
-
text: AXTranslator.get('common.cancel'),
|
|
11192
|
-
style: 'danger blank',
|
|
11193
|
-
submitBehavior: false,
|
|
11194
|
-
cancelBehavior: true,
|
|
11195
|
-
onClick: () => {
|
|
11196
|
-
popup.close();
|
|
11197
|
-
this.editRow = null;
|
|
11198
|
-
this.cdr.detectChanges();
|
|
11199
|
-
}
|
|
11200
|
-
}
|
|
11201
|
-
],
|
|
11202
|
-
title: AXTranslator.get('common.edit')
|
|
11203
|
-
});
|
|
11204
|
-
}
|
|
11205
|
-
handleAddClick() {
|
|
11206
|
-
const min = this.ranges?.length ? Math.max(...this.ranges.map(c => c.maxValue)) : 0;
|
|
11207
|
-
this.editRow = {
|
|
11208
|
-
title: '',
|
|
11209
|
-
minValue: min,
|
|
11210
|
-
maxValue: min + 1,
|
|
11211
|
-
color: null
|
|
11212
|
-
};
|
|
11213
|
-
const popup = this.popupService.open(this.tplEdit, {
|
|
11214
|
-
title: AXTranslator.get('common.add-item'),
|
|
11215
|
-
size: 'sm',
|
|
11216
|
-
footerButtons: [
|
|
11217
|
-
{
|
|
11218
|
-
name: 'confirm',
|
|
11219
|
-
text: AXTranslator.get('common.confirm'),
|
|
11220
|
-
style: 'success',
|
|
11221
|
-
submitBehavior: true,
|
|
11222
|
-
cancelBehavior: false,
|
|
11223
|
-
onClick: () => {
|
|
11224
|
-
this.form.validate().then(c => {
|
|
11225
|
-
if (c.result) {
|
|
11226
|
-
super.handleValueChange(this.ranges);
|
|
11227
|
-
this.ranges.push(this.editRow);
|
|
11228
|
-
popup.close();
|
|
11229
|
-
this.editRow = null;
|
|
11230
|
-
this.cdr.detectChanges();
|
|
11231
|
-
}
|
|
11232
|
-
});
|
|
11233
|
-
}
|
|
11234
|
-
},
|
|
11235
|
-
{
|
|
11236
|
-
name: 'cancel',
|
|
11237
|
-
text: AXTranslator.get('common.cancel'),
|
|
11238
|
-
style: 'danger blank',
|
|
11239
|
-
submitBehavior: false,
|
|
11240
|
-
cancelBehavior: true,
|
|
11241
|
-
onClick: () => {
|
|
11242
|
-
popup.close();
|
|
11243
|
-
this.editRow = null;
|
|
11244
|
-
this.cdr.detectChanges();
|
|
11245
|
-
}
|
|
11246
|
-
}
|
|
11247
|
-
],
|
|
11248
|
-
});
|
|
11249
|
-
this.cdr.detectChanges();
|
|
11250
|
-
}
|
|
11251
|
-
handleRemoveClick(item) {
|
|
11252
|
-
this.ranges = this.ranges.filter(c => c.minValue !== item.minValue);
|
|
11253
|
-
super.handleValueChange(this.ranges);
|
|
11254
|
-
}
|
|
11255
|
-
}
|
|
11256
|
-
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 });
|
|
11257
|
-
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 });
|
|
11258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, decorators: [{
|
|
11259
|
-
type: Component,
|
|
11260
|
-
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"] }]
|
|
11261
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: AXPopupService }]; }, propDecorators: { tplEdit: [{
|
|
11262
|
-
type: ViewChild,
|
|
11263
|
-
args: ['tplEdit']
|
|
11264
|
-
}] } });
|
|
11265
|
-
|
|
11266
|
-
class AXColorPickerModule {
|
|
11267
|
-
}
|
|
11268
|
-
AXColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11269
|
-
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] });
|
|
11270
|
-
AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule]] });
|
|
11271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, decorators: [{
|
|
11272
|
-
type: NgModule,
|
|
11273
|
-
args: [{
|
|
11274
|
-
declarations: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11275
|
-
imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule],
|
|
11276
|
-
exports: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11277
|
-
providers: []
|
|
11278
|
-
}]
|
|
11279
|
-
}] });
|
|
11280
|
-
|
|
11281
|
-
class AXRangePropertyEditorModule {
|
|
11282
|
-
constructor() {
|
|
11283
|
-
}
|
|
11284
|
-
}
|
|
11285
|
-
AXRangePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11286
|
-
AXRangePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, declarations: [AXRangePropertyEditorComponent], imports: [CommonModule,
|
|
11287
|
-
FormsModule,
|
|
11288
|
-
AXTranslatorModule,
|
|
11289
|
-
AXTextBoxModule,
|
|
11290
|
-
AXNumberBoxModule,
|
|
11291
|
-
AXColorPickerModule,
|
|
11292
|
-
AXLabelModule,
|
|
11293
|
-
AXPageModule,
|
|
11294
|
-
AXValidationModule,
|
|
11295
|
-
AXButtonModule], exports: [AXRangePropertyEditorComponent] });
|
|
11296
|
-
AXRangePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, providers: [], imports: [[
|
|
11297
|
-
CommonModule,
|
|
11298
|
-
FormsModule,
|
|
11299
|
-
AXTranslatorModule,
|
|
11300
|
-
AXTextBoxModule,
|
|
11301
|
-
AXNumberBoxModule,
|
|
11302
|
-
AXColorPickerModule,
|
|
11303
|
-
AXLabelModule,
|
|
11304
|
-
AXPageModule,
|
|
11305
|
-
AXValidationModule,
|
|
11306
|
-
AXButtonModule
|
|
11307
|
-
]] });
|
|
11308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, decorators: [{
|
|
11309
|
-
type: NgModule,
|
|
11310
|
-
args: [{
|
|
11311
|
-
declarations: [AXRangePropertyEditorComponent],
|
|
11312
|
-
imports: [
|
|
11313
|
-
CommonModule,
|
|
11314
|
-
FormsModule,
|
|
11315
|
-
AXTranslatorModule,
|
|
11316
|
-
AXTextBoxModule,
|
|
11317
|
-
AXNumberBoxModule,
|
|
11318
|
-
AXColorPickerModule,
|
|
11319
|
-
AXLabelModule,
|
|
11320
|
-
AXPageModule,
|
|
11321
|
-
AXValidationModule,
|
|
11322
|
-
AXButtonModule
|
|
11323
|
-
],
|
|
11324
|
-
exports: [AXRangePropertyEditorComponent],
|
|
11325
|
-
providers: []
|
|
11326
|
-
}]
|
|
11327
|
-
}], ctorParameters: function () { return []; } });
|
|
11328
|
-
|
|
11329
|
-
class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11330
|
-
constructor(cdr) {
|
|
11331
|
-
super(cdr);
|
|
11332
|
-
this.cdr = cdr;
|
|
11333
|
-
}
|
|
11334
|
-
ngAfterViewInit() {
|
|
11335
|
-
this.registerForValidationForm(this.textBox);
|
|
11027
|
+
this.registerForValidationForm(this.textBox);
|
|
11336
11028
|
this.onRenderCompleted.emit();
|
|
11337
11029
|
}
|
|
11338
11030
|
}
|
|
@@ -11358,6 +11050,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11358
11050
|
args: [AXColorPickerComponent]
|
|
11359
11051
|
}] } });
|
|
11360
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
|
+
|
|
11361
11068
|
class AXColorPropertyEditorModule {
|
|
11362
11069
|
constructor() {
|
|
11363
11070
|
}
|
|
@@ -11747,80 +11454,545 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11747
11454
|
}]
|
|
11748
11455
|
}], ctorParameters: function () { return []; } });
|
|
11749
11456
|
|
|
11750
|
-
class
|
|
11751
|
-
constructor(cdr) {
|
|
11752
|
-
super();
|
|
11753
|
-
this.cdr = cdr;
|
|
11754
|
-
this.onValueChanged = new EventEmitter();
|
|
11755
|
-
this.valueChange = new EventEmitter();
|
|
11756
|
-
this.tabIndex = 0;
|
|
11757
|
-
this.size = 'md';
|
|
11758
|
-
}
|
|
11759
|
-
get value() {
|
|
11760
|
-
return this._value;
|
|
11761
|
-
}
|
|
11762
|
-
set value(v) {
|
|
11763
|
-
if (this._value !== v) {
|
|
11764
|
-
const oldValue = this._value;
|
|
11765
|
-
this._value = v;
|
|
11766
|
-
this.valueChange.emit(v);
|
|
11767
|
-
this.onValueChanged.emit({
|
|
11768
|
-
component: this,
|
|
11769
|
-
oldValue,
|
|
11770
|
-
value: v
|
|
11771
|
-
});
|
|
11772
|
-
}
|
|
11773
|
-
}
|
|
11774
|
-
focus() { }
|
|
11775
|
-
}
|
|
11776
|
-
AXSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11777
|
-
AXSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSwitchComponent, selector: "ax-switch", inputs: { tabIndex: "tabIndex", value: "value", readonly: "readonly", disabled: "disabled", size: "size" }, outputs: { onValueChanged: "onValueChanged", valueChange: "valueChange" }, usesInheritance: true, ngImport: i0, template: "<label class=\"ax ax-switch\" >\r\n <input type=\"checkbox\" [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\" [attr.tabindex]=\"tabIndex\">\r\n <span class=\"slider round\"></span>\r\n</label>", styles: [".ax.ax-switch{position:relative;display:inline-block;width:46px;height:25px;margin:5px}.ax.ax-switch>input{opacity:0;width:0;height:0}.ax.ax-switch>input:checked+.slider{background-color:var(--ax-primary-color)}.ax.ax-switch>input:checked+.slider:before{transform:translate(21px)}.ax.ax-switch:focus-within .slider{outline:1px solid var(--ax-primary-color)}.ax.ax-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.2s}.ax.ax-switch .slider:before{content:\"\";position:absolute;height:21px;width:21px;left:2px;bottom:2px;background-color:#fff;transition:.2s}.ax.ax-switch .slider.round{border-radius:25px}.ax.ax-switch .slider.round:before{border-radius:50%}\n"], directives: [{ type: i2$2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11778
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, decorators: [{
|
|
11779
|
-
type: Component,
|
|
11780
|
-
args: [{ selector: 'ax-switch', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"ax ax-switch\" >\r\n <input type=\"checkbox\" [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\" [attr.tabindex]=\"tabIndex\">\r\n <span class=\"slider round\"></span>\r\n</label>", styles: [".ax.ax-switch{position:relative;display:inline-block;width:46px;height:25px;margin:5px}.ax.ax-switch>input{opacity:0;width:0;height:0}.ax.ax-switch>input:checked+.slider{background-color:var(--ax-primary-color)}.ax.ax-switch>input:checked+.slider:before{transform:translate(21px)}.ax.ax-switch:focus-within .slider{outline:1px solid var(--ax-primary-color)}.ax.ax-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.2s}.ax.ax-switch .slider:before{content:\"\";position:absolute;height:21px;width:21px;left:2px;bottom:2px;background-color:#fff;transition:.2s}.ax.ax-switch .slider.round{border-radius:25px}.ax.ax-switch .slider.round:before{border-radius:50%}\n"] }]
|
|
11781
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { onValueChanged: [{
|
|
11782
|
-
type: Output
|
|
11783
|
-
}], valueChange: [{
|
|
11784
|
-
type: Output
|
|
11785
|
-
}], tabIndex: [{
|
|
11786
|
-
type: Input
|
|
11787
|
-
}], value: [{
|
|
11788
|
-
type: Input
|
|
11789
|
-
}], readonly: [{
|
|
11790
|
-
type: Input
|
|
11791
|
-
}], disabled: [{
|
|
11792
|
-
type: Input
|
|
11793
|
-
}], size: [{
|
|
11794
|
-
type: Input
|
|
11795
|
-
}] } });
|
|
11796
|
-
|
|
11797
|
-
class AXSwitchPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11457
|
+
class AXDatePropertyEditorComponent extends AXProperyEditorComponent {
|
|
11798
11458
|
constructor(cdr) {
|
|
11799
11459
|
super(cdr);
|
|
11800
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';
|
|
11801
11469
|
}
|
|
11802
11470
|
handleValueChange(e) {
|
|
11803
11471
|
super.handleValueChange(e.value);
|
|
11804
11472
|
}
|
|
11805
11473
|
ngAfterViewInit() {
|
|
11474
|
+
this.registerForValidationForm(this.date);
|
|
11806
11475
|
this.onRenderCompleted.emit();
|
|
11807
11476
|
}
|
|
11808
11477
|
}
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
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: [{
|
|
11814
11487
|
type: Component,
|
|
11815
11488
|
args: [{
|
|
11816
11489
|
template: `
|
|
11817
|
-
|
|
11818
|
-
|
|
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
|
+
`,
|
|
11819
11496
|
}]
|
|
11820
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
}
|
|
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
|
+
}] });
|
|
11921
|
+
|
|
11922
|
+
class AXSwitchComponent extends AXBaseComponent {
|
|
11923
|
+
constructor(cdr) {
|
|
11924
|
+
super();
|
|
11925
|
+
this.cdr = cdr;
|
|
11926
|
+
this.onValueChanged = new EventEmitter();
|
|
11927
|
+
this.valueChange = new EventEmitter();
|
|
11928
|
+
this.tabIndex = 0;
|
|
11929
|
+
this.size = 'md';
|
|
11930
|
+
}
|
|
11931
|
+
get value() {
|
|
11932
|
+
return this._value;
|
|
11933
|
+
}
|
|
11934
|
+
set value(v) {
|
|
11935
|
+
if (this._value !== v) {
|
|
11936
|
+
const oldValue = this._value;
|
|
11937
|
+
this._value = v;
|
|
11938
|
+
this.valueChange.emit(v);
|
|
11939
|
+
this.onValueChanged.emit({
|
|
11940
|
+
component: this,
|
|
11941
|
+
oldValue,
|
|
11942
|
+
value: v
|
|
11943
|
+
});
|
|
11944
|
+
}
|
|
11945
|
+
}
|
|
11946
|
+
focus() { }
|
|
11947
|
+
}
|
|
11948
|
+
AXSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11949
|
+
AXSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSwitchComponent, selector: "ax-switch", inputs: { tabIndex: "tabIndex", value: "value", readonly: "readonly", disabled: "disabled", size: "size" }, outputs: { onValueChanged: "onValueChanged", valueChange: "valueChange" }, usesInheritance: true, ngImport: i0, template: "<label class=\"ax ax-switch\" >\r\n <input type=\"checkbox\" [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\" [attr.tabindex]=\"tabIndex\">\r\n <span class=\"slider round\"></span>\r\n</label>", styles: [".ax.ax-switch{position:relative;display:inline-block;width:46px;height:25px;margin:5px}.ax.ax-switch>input{opacity:0;width:0;height:0}.ax.ax-switch>input:checked+.slider{background-color:var(--ax-primary-color)}.ax.ax-switch>input:checked+.slider:before{transform:translate(21px)}.ax.ax-switch:focus-within .slider{outline:1px solid var(--ax-primary-color)}.ax.ax-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.2s}.ax.ax-switch .slider:before{content:\"\";position:absolute;height:21px;width:21px;left:2px;bottom:2px;background-color:#fff;transition:.2s}.ax.ax-switch .slider.round{border-radius:25px}.ax.ax-switch .slider.round:before{border-radius:50%}\n"], directives: [{ type: i2$2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i2$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
11950
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, decorators: [{
|
|
11951
|
+
type: Component,
|
|
11952
|
+
args: [{ selector: 'ax-switch', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"ax ax-switch\" >\r\n <input type=\"checkbox\" [(ngModel)]=\"value\" [ngModelOptions]=\"{standalone: true}\" [attr.tabindex]=\"tabIndex\">\r\n <span class=\"slider round\"></span>\r\n</label>", styles: [".ax.ax-switch{position:relative;display:inline-block;width:46px;height:25px;margin:5px}.ax.ax-switch>input{opacity:0;width:0;height:0}.ax.ax-switch>input:checked+.slider{background-color:var(--ax-primary-color)}.ax.ax-switch>input:checked+.slider:before{transform:translate(21px)}.ax.ax-switch:focus-within .slider{outline:1px solid var(--ax-primary-color)}.ax.ax-switch .slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.2s}.ax.ax-switch .slider:before{content:\"\";position:absolute;height:21px;width:21px;left:2px;bottom:2px;background-color:#fff;transition:.2s}.ax.ax-switch .slider.round{border-radius:25px}.ax.ax-switch .slider.round:before{border-radius:50%}\n"] }]
|
|
11953
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { onValueChanged: [{
|
|
11954
|
+
type: Output
|
|
11955
|
+
}], valueChange: [{
|
|
11956
|
+
type: Output
|
|
11957
|
+
}], tabIndex: [{
|
|
11958
|
+
type: Input
|
|
11959
|
+
}], value: [{
|
|
11960
|
+
type: Input
|
|
11961
|
+
}], readonly: [{
|
|
11962
|
+
type: Input
|
|
11963
|
+
}], disabled: [{
|
|
11964
|
+
type: Input
|
|
11965
|
+
}], size: [{
|
|
11966
|
+
type: Input
|
|
11967
|
+
}] } });
|
|
11968
|
+
|
|
11969
|
+
class AXSwitchPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11970
|
+
constructor(cdr) {
|
|
11971
|
+
super(cdr);
|
|
11972
|
+
this.cdr = cdr;
|
|
11973
|
+
}
|
|
11974
|
+
handleValueChange(e) {
|
|
11975
|
+
super.handleValueChange(e.value);
|
|
11976
|
+
}
|
|
11977
|
+
ngAfterViewInit() {
|
|
11978
|
+
this.onRenderCompleted.emit();
|
|
11979
|
+
}
|
|
11980
|
+
}
|
|
11981
|
+
AXSwitchPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11982
|
+
AXSwitchPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSwitchPropertyEditorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
11983
|
+
<ax-switch (onValueChanged)="handleValueChange($event)" [value]="value"></ax-switch>
|
|
11984
|
+
`, isInline: true, components: [{ type: AXSwitchComponent, selector: "ax-switch", inputs: ["tabIndex", "value", "readonly", "disabled", "size"], outputs: ["onValueChanged", "valueChange"] }] });
|
|
11985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorComponent, decorators: [{
|
|
11986
|
+
type: Component,
|
|
11987
|
+
args: [{
|
|
11988
|
+
template: `
|
|
11989
|
+
<ax-switch (onValueChanged)="handleValueChange($event)" [value]="value"></ax-switch>
|
|
11990
|
+
`,
|
|
11991
|
+
}]
|
|
11992
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
11993
|
+
|
|
11994
|
+
class AXSwitchModule {
|
|
11995
|
+
}
|
|
11824
11996
|
AXSwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11825
11997
|
AXSwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, declarations: [AXSwitchComponent], imports: [CommonModule, FormsModule], exports: [AXSwitchComponent] });
|
|
11826
11998
|
AXSwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, providers: [], imports: [[CommonModule, FormsModule]] });
|
|
@@ -11844,71 +12016,132 @@ AXSwitchPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.
|
|
|
11844
12016
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorModule, decorators: [{
|
|
11845
12017
|
type: NgModule,
|
|
11846
12018
|
args: [{
|
|
11847
|
-
declarations: [AXSwitchPropertyEditorComponent],
|
|
11848
|
-
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule, AXSwitchModule],
|
|
11849
|
-
exports: [AXSwitchPropertyEditorComponent],
|
|
12019
|
+
declarations: [AXSwitchPropertyEditorComponent],
|
|
12020
|
+
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule, AXSwitchModule],
|
|
12021
|
+
exports: [AXSwitchPropertyEditorComponent],
|
|
12022
|
+
providers: []
|
|
12023
|
+
}]
|
|
12024
|
+
}], ctorParameters: function () { return []; } });
|
|
12025
|
+
|
|
12026
|
+
class AXTextPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12027
|
+
constructor(cdr) {
|
|
12028
|
+
super(cdr);
|
|
12029
|
+
this.cdr = cdr;
|
|
12030
|
+
this.clearButton = false;
|
|
12031
|
+
}
|
|
12032
|
+
handleValueChange(e) {
|
|
12033
|
+
super.handleValueChange(e.value);
|
|
12034
|
+
}
|
|
12035
|
+
ngAfterViewInit() {
|
|
12036
|
+
this.registerForValidationForm(this.textBox);
|
|
12037
|
+
this.onRenderCompleted.emit();
|
|
12038
|
+
}
|
|
12039
|
+
}
|
|
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: [{
|
|
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,
|
|
12059
|
+
args: [{
|
|
12060
|
+
declarations: [AXTextPropertyEditorComponent],
|
|
12061
|
+
imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
|
|
12062
|
+
exports: [AXTextPropertyEditorComponent],
|
|
11850
12063
|
providers: []
|
|
11851
12064
|
}]
|
|
11852
12065
|
}], ctorParameters: function () { return []; } });
|
|
11853
12066
|
|
|
11854
|
-
class
|
|
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 {
|
|
11855
12090
|
constructor(cdr) {
|
|
11856
12091
|
super(cdr);
|
|
11857
12092
|
this.cdr = cdr;
|
|
11858
|
-
this.showTodayButton = true;
|
|
11859
|
-
this.selectableHoliday = true;
|
|
11860
|
-
this.type = 'gregorian';
|
|
11861
|
-
this.textAlign = null;
|
|
11862
|
-
this.placeholder = '';
|
|
11863
12093
|
this.clearButton = false;
|
|
11864
|
-
this.
|
|
11865
|
-
this.
|
|
12094
|
+
this.placeholder = null;
|
|
12095
|
+
this.rows = 3;
|
|
11866
12096
|
}
|
|
11867
12097
|
handleValueChange(e) {
|
|
11868
12098
|
super.handleValueChange(e.value);
|
|
11869
12099
|
}
|
|
11870
12100
|
ngAfterViewInit() {
|
|
11871
|
-
this.registerForValidationForm(this.
|
|
12101
|
+
this.registerForValidationForm(this.textBox);
|
|
11872
12102
|
this.onRenderCompleted.emit();
|
|
11873
12103
|
}
|
|
11874
12104
|
}
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11879
|
-
<ax-validation [rules]="validation?.rules">
|
|
11880
|
-
</ax-validation>
|
|
11881
|
-
</ax-date-picker>
|
|
11882
|
-
`, 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"] }] });
|
|
11883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, decorators: [{
|
|
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: [{
|
|
11884
12108
|
type: Component,
|
|
11885
|
-
args: [{
|
|
11886
|
-
|
|
11887
|
-
<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)"
|
|
11888
|
-
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11889
|
-
<ax-validation [rules]="validation?.rules">
|
|
11890
|
-
</ax-validation>
|
|
11891
|
-
</ax-date-picker>
|
|
11892
|
-
`,
|
|
11893
|
-
}]
|
|
11894
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { date: [{
|
|
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: [{
|
|
11895
12111
|
type: ViewChild,
|
|
11896
|
-
args: [
|
|
12112
|
+
args: [AXTextBoxComponent]
|
|
11897
12113
|
}] } });
|
|
11898
12114
|
|
|
11899
|
-
|
|
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 {
|
|
11900
12133
|
constructor() {
|
|
11901
12134
|
}
|
|
11902
12135
|
}
|
|
11903
|
-
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
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: [{
|
|
11907
12140
|
type: NgModule,
|
|
11908
12141
|
args: [{
|
|
11909
|
-
declarations: [
|
|
11910
|
-
imports: [CommonModule, FormsModule,
|
|
11911
|
-
exports: [
|
|
12142
|
+
declarations: [AXTextareaPropertyEditorComponent],
|
|
12143
|
+
imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
|
|
12144
|
+
exports: [AXTextareaPropertyEditorComponent],
|
|
11912
12145
|
providers: []
|
|
11913
12146
|
}]
|
|
11914
12147
|
}], ctorParameters: function () { return []; } });
|
|
@@ -12847,21 +13080,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12847
13080
|
type: Input
|
|
12848
13081
|
}] } });
|
|
12849
13082
|
|
|
12850
|
-
class AXTimePickerModule {
|
|
12851
|
-
}
|
|
12852
|
-
AXTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12853
|
-
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] });
|
|
12854
|
-
AXTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, providers: [], imports: [[CommonModule, FormsModule, AXButtonModule, TextMaskModule]] });
|
|
12855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, decorators: [{
|
|
12856
|
-
type: NgModule,
|
|
12857
|
-
args: [{
|
|
12858
|
-
declarations: [AXTimePickerComponent],
|
|
12859
|
-
imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule],
|
|
12860
|
-
exports: [AXTimePickerComponent],
|
|
12861
|
-
providers: [],
|
|
12862
|
-
}]
|
|
12863
|
-
}] });
|
|
12864
|
-
|
|
12865
13083
|
class AXTimePropertyEditorComponent extends AXProperyEditorComponent {
|
|
12866
13084
|
constructor(cdr) {
|
|
12867
13085
|
super(cdr);
|
|
@@ -12899,6 +13117,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12899
13117
|
args: [AXDatePickerComponent]
|
|
12900
13118
|
}] } });
|
|
12901
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
|
+
|
|
12902
13135
|
class AXTimePropertyEditorModule {
|
|
12903
13136
|
constructor() {
|
|
12904
13137
|
}
|
|
@@ -12916,148 +13149,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12916
13149
|
}]
|
|
12917
13150
|
}], ctorParameters: function () { return []; } });
|
|
12918
13151
|
|
|
12919
|
-
class AXTextAreaComponent extends AXBaseTextComponent {
|
|
12920
|
-
constructor(cdr, ref) {
|
|
12921
|
-
super(cdr, ref);
|
|
12922
|
-
this.cdr = cdr;
|
|
12923
|
-
this.rows = 0;
|
|
12924
|
-
this.cols = 0;
|
|
12925
|
-
this.maxLength = null;
|
|
12926
|
-
}
|
|
12927
|
-
}
|
|
12928
|
-
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 });
|
|
12929
|
-
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 });
|
|
12930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, decorators: [{
|
|
12931
|
-
type: Component,
|
|
12932
|
-
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>" }]
|
|
12933
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { rows: [{
|
|
12934
|
-
type: Input
|
|
12935
|
-
}], cols: [{
|
|
12936
|
-
type: Input
|
|
12937
|
-
}], maxLength: [{
|
|
12938
|
-
type: Input
|
|
12939
|
-
}] } });
|
|
12940
|
-
|
|
12941
|
-
class AXTextareaPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12942
|
-
constructor(cdr) {
|
|
12943
|
-
super(cdr);
|
|
12944
|
-
this.cdr = cdr;
|
|
12945
|
-
this.clearButton = false;
|
|
12946
|
-
this.placeholder = null;
|
|
12947
|
-
this.rows = 3;
|
|
12948
|
-
}
|
|
12949
|
-
handleValueChange(e) {
|
|
12950
|
-
super.handleValueChange(e.value);
|
|
12951
|
-
}
|
|
12952
|
-
ngAfterViewInit() {
|
|
12953
|
-
this.registerForValidationForm(this.textBox);
|
|
12954
|
-
this.onRenderCompleted.emit();
|
|
12955
|
-
}
|
|
12956
|
-
}
|
|
12957
|
-
AXTextareaPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12958
|
-
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"] }] });
|
|
12959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, decorators: [{
|
|
12960
|
-
type: Component,
|
|
12961
|
-
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" }]
|
|
12962
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
12963
|
-
type: ViewChild,
|
|
12964
|
-
args: [AXTextBoxComponent]
|
|
12965
|
-
}] } });
|
|
12966
|
-
|
|
12967
|
-
const COMPONENT = [AXTextAreaComponent];
|
|
12968
|
-
const MODULES = [CommonModule];
|
|
12969
|
-
class AXTextAreaModule {
|
|
12970
|
-
}
|
|
12971
|
-
AXTextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12972
|
-
AXTextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, declarations: [AXTextAreaComponent], imports: [CommonModule], exports: [AXTextAreaComponent] });
|
|
12973
|
-
AXTextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, providers: [], imports: [[...MODULES]] });
|
|
12974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, decorators: [{
|
|
12975
|
-
type: NgModule,
|
|
12976
|
-
args: [{
|
|
12977
|
-
declarations: [...COMPONENT],
|
|
12978
|
-
imports: [...MODULES],
|
|
12979
|
-
exports: [...COMPONENT],
|
|
12980
|
-
providers: [],
|
|
12981
|
-
}]
|
|
12982
|
-
}] });
|
|
12983
|
-
|
|
12984
|
-
class AXTextareaPropertyEditorModule {
|
|
12985
|
-
constructor() {
|
|
12986
|
-
}
|
|
12987
|
-
}
|
|
12988
|
-
AXTextareaPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12989
|
-
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] });
|
|
12990
|
-
AXTextareaPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextAreaModule, AXValidationModule]] });
|
|
12991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, decorators: [{
|
|
12992
|
-
type: NgModule,
|
|
12993
|
-
args: [{
|
|
12994
|
-
declarations: [AXTextareaPropertyEditorComponent],
|
|
12995
|
-
imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
|
|
12996
|
-
exports: [AXTextareaPropertyEditorComponent],
|
|
12997
|
-
providers: []
|
|
12998
|
-
}]
|
|
12999
|
-
}], ctorParameters: function () { return []; } });
|
|
13000
|
-
|
|
13001
|
-
class AXCheckBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
13002
|
-
constructor(cdr) {
|
|
13003
|
-
super(cdr);
|
|
13004
|
-
this.cdr = cdr;
|
|
13005
|
-
this.disabled = false;
|
|
13006
|
-
this.indeterminate = false;
|
|
13007
|
-
this.readonly = false;
|
|
13008
|
-
this.size = 'md';
|
|
13009
|
-
}
|
|
13010
|
-
ngAfterViewInit() {
|
|
13011
|
-
console.log('checkbox');
|
|
13012
|
-
this.registerForValidationForm(this.textBox);
|
|
13013
|
-
this.onRenderCompleted.emit();
|
|
13014
|
-
}
|
|
13015
|
-
}
|
|
13016
|
-
AXCheckBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
13017
|
-
AXCheckBoxPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXCheckBoxPropertyEditorComponent, selector: "ng-component", viewQueries: [{ propertyName: "textBox", first: true, predicate: AXCheckBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: `<ax-check-box
|
|
13018
|
-
[disabled]="disabled"
|
|
13019
|
-
[label]="label"
|
|
13020
|
-
[size]="size"
|
|
13021
|
-
[indeterminate]="indeterminate"
|
|
13022
|
-
[readonly]="readonly"
|
|
13023
|
-
[value]="value">
|
|
13024
|
-
<ax-validation [rules]="validation?.rules">
|
|
13025
|
-
</ax-validation>
|
|
13026
|
-
</ax-check-box>`, 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"] }] });
|
|
13027
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, decorators: [{
|
|
13028
|
-
type: Component,
|
|
13029
|
-
args: [{
|
|
13030
|
-
template: `<ax-check-box
|
|
13031
|
-
[disabled]="disabled"
|
|
13032
|
-
[label]="label"
|
|
13033
|
-
[size]="size"
|
|
13034
|
-
[indeterminate]="indeterminate"
|
|
13035
|
-
[readonly]="readonly"
|
|
13036
|
-
[value]="value">
|
|
13037
|
-
<ax-validation [rules]="validation?.rules">
|
|
13038
|
-
</ax-validation>
|
|
13039
|
-
</ax-check-box>`,
|
|
13040
|
-
}]
|
|
13041
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
13042
|
-
type: ViewChild,
|
|
13043
|
-
args: [AXCheckBoxComponent]
|
|
13044
|
-
}] } });
|
|
13045
|
-
|
|
13046
|
-
class AXCheckPropertyEditorModule {
|
|
13047
|
-
}
|
|
13048
|
-
AXCheckPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13049
|
-
AXCheckPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, declarations: [AXCheckBoxPropertyEditorComponent], imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule] });
|
|
13050
|
-
AXCheckPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, providers: [], imports: [[CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule]] });
|
|
13051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, decorators: [{
|
|
13052
|
-
type: NgModule,
|
|
13053
|
-
args: [{
|
|
13054
|
-
declarations: [AXCheckBoxPropertyEditorComponent],
|
|
13055
|
-
imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule],
|
|
13056
|
-
exports: [],
|
|
13057
|
-
providers: [],
|
|
13058
|
-
}]
|
|
13059
|
-
}] });
|
|
13060
|
-
|
|
13061
13152
|
const WDIGET_MODULES = [
|
|
13062
13153
|
AXNumberBoxPropertyEditorModule,
|
|
13063
13154
|
AXTextPropertyEditorModule,
|
|
@@ -13071,7 +13162,8 @@ const WDIGET_MODULES = [
|
|
|
13071
13162
|
AXTimePropertyEditorModule,
|
|
13072
13163
|
AXTimePropertyEditorModule,
|
|
13073
13164
|
AXTextareaPropertyEditorModule,
|
|
13074
|
-
AXCheckPropertyEditorModule
|
|
13165
|
+
AXCheckPropertyEditorModule,
|
|
13166
|
+
AXSelectionPropertyEditorModule
|
|
13075
13167
|
];
|
|
13076
13168
|
class AXProppertyEditorModule {
|
|
13077
13169
|
}
|
|
@@ -13088,12 +13180,17 @@ AXProppertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
|
13088
13180
|
AXTimePropertyEditorModule,
|
|
13089
13181
|
AXTimePropertyEditorModule,
|
|
13090
13182
|
AXTextareaPropertyEditorModule,
|
|
13091
|
-
AXCheckPropertyEditorModule,
|
|
13183
|
+
AXCheckPropertyEditorModule,
|
|
13184
|
+
AXSelectionPropertyEditorModule, i1$4.RouterModule], exports: [AXPropertyEditorRendererDirective] });
|
|
13092
13185
|
AXProppertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXProppertyEditorModule, providers: [], imports: [[
|
|
13093
13186
|
WDIGET_MODULES,
|
|
13094
13187
|
RouterModule.forChild([
|
|
13095
13188
|
{
|
|
13096
|
-
|
|
13189
|
+
path: 'ax/editors/selection',
|
|
13190
|
+
component: AXSelectionListPropertyEditorComponent
|
|
13191
|
+
},
|
|
13192
|
+
{
|
|
13193
|
+
component: AXCheckBoxPropertyEditorComponent,
|
|
13097
13194
|
path: 'ax/editors/check'
|
|
13098
13195
|
},
|
|
13099
13196
|
{
|
|
@@ -13148,7 +13245,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
13148
13245
|
WDIGET_MODULES,
|
|
13149
13246
|
RouterModule.forChild([
|
|
13150
13247
|
{
|
|
13151
|
-
|
|
13248
|
+
path: 'ax/editors/selection',
|
|
13249
|
+
component: AXSelectionListPropertyEditorComponent
|
|
13250
|
+
},
|
|
13251
|
+
{
|
|
13252
|
+
component: AXCheckBoxPropertyEditorComponent,
|
|
13152
13253
|
path: 'ax/editors/check'
|
|
13153
13254
|
},
|
|
13154
13255
|
{
|