@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
|
@@ -3447,7 +3447,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
3447
3447
|
type: Input
|
|
3448
3448
|
}] } });
|
|
3449
3449
|
|
|
3450
|
-
class AXSelectionListComponent extends
|
|
3450
|
+
class AXSelectionListComponent extends AXValidatableComponent {
|
|
3451
3451
|
constructor(cdr) {
|
|
3452
3452
|
super();
|
|
3453
3453
|
this.cdr = cdr;
|
|
@@ -3510,10 +3510,10 @@ class AXSelectionListComponent extends AXBaseComponent {
|
|
|
3510
3510
|
}
|
|
3511
3511
|
}
|
|
3512
3512
|
AXSelectionListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3513
|
-
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]=\"
|
|
3513
|
+
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 });
|
|
3514
3514
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListComponent, decorators: [{
|
|
3515
3515
|
type: Component,
|
|
3516
|
-
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]=\"
|
|
3516
|
+
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>" }]
|
|
3517
3517
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { readonly: [{
|
|
3518
3518
|
type: Input
|
|
3519
3519
|
}], value: [{
|
|
@@ -5486,10 +5486,10 @@ class AXFormGroupComponent extends AXBaseComponent {
|
|
|
5486
5486
|
}
|
|
5487
5487
|
}
|
|
5488
5488
|
AXFormGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXFormGroupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5489
|
-
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 });
|
|
5489
|
+
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 });
|
|
5490
5490
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXFormGroupComponent, decorators: [{
|
|
5491
5491
|
type: Component,
|
|
5492
|
-
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>" }]
|
|
5492
|
+
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>" }]
|
|
5493
5493
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { size: [{
|
|
5494
5494
|
type: Input
|
|
5495
5495
|
}], div: [{
|
|
@@ -10159,6 +10159,7 @@ class AXPropertyEditorRendererDirective {
|
|
|
10159
10159
|
}
|
|
10160
10160
|
createComponent() {
|
|
10161
10161
|
this.renderService.findLoadedComponentByRoute(this.property.property.editorClass).then(c => {
|
|
10162
|
+
debugger;
|
|
10162
10163
|
if (c) {
|
|
10163
10164
|
const factory = this.componentFactoryResolver.resolveComponentFactory(c.component);
|
|
10164
10165
|
const cmpRef = this.target.createComponent(factory);
|
|
@@ -10291,14 +10292,30 @@ class AXSearchBarComponent {
|
|
|
10291
10292
|
this.ref = ref;
|
|
10292
10293
|
this.size = 'md';
|
|
10293
10294
|
this.disabled = false;
|
|
10294
|
-
this.items = [];
|
|
10295
10295
|
this.rtl = AXConfig.get('layout.rtl');
|
|
10296
|
+
this.onValueChange = new EventEmitter();
|
|
10296
10297
|
this.onSearchValue = new EventEmitter();
|
|
10297
10298
|
this._items = [];
|
|
10298
10299
|
this._filterItems = [];
|
|
10299
10300
|
this._filterItemsClone = [];
|
|
10300
10301
|
this._context = {};
|
|
10301
10302
|
}
|
|
10303
|
+
set items(v) {
|
|
10304
|
+
debugger;
|
|
10305
|
+
v.forEach((el) => {
|
|
10306
|
+
if (el.value != null) {
|
|
10307
|
+
this._filterItems.push({
|
|
10308
|
+
name: el.property.name,
|
|
10309
|
+
title: el.property.title,
|
|
10310
|
+
value: el.value
|
|
10311
|
+
});
|
|
10312
|
+
}
|
|
10313
|
+
});
|
|
10314
|
+
this._items = _.chain(v).groupBy(x => x.property.row).map((value, key) => ({ row: key, items: value })).value();
|
|
10315
|
+
}
|
|
10316
|
+
clearItem(name) {
|
|
10317
|
+
this._editors.find(e => e.property.property.name == name).clear();
|
|
10318
|
+
}
|
|
10302
10319
|
handleButtonClick() {
|
|
10303
10320
|
this.dropdown.toggle();
|
|
10304
10321
|
}
|
|
@@ -10313,6 +10330,7 @@ class AXSearchBarComponent {
|
|
|
10313
10330
|
value: e.value
|
|
10314
10331
|
});
|
|
10315
10332
|
}
|
|
10333
|
+
this.onValueChange.emit(e);
|
|
10316
10334
|
}
|
|
10317
10335
|
handleItemRemoveClick(item) {
|
|
10318
10336
|
this._editors.forEach(e => {
|
|
@@ -10323,7 +10341,7 @@ class AXSearchBarComponent {
|
|
|
10323
10341
|
this._filterItems = this._filterItems.filter((el) => el.name != item.name);
|
|
10324
10342
|
}
|
|
10325
10343
|
search() {
|
|
10326
|
-
this._filterItems = JSON.parse(JSON.stringify(this._filterItemsClone));
|
|
10344
|
+
this._filterItems = JSON.parse(JSON.stringify(this._filterItemsClone.filter((el) => el.value != null && el.value != '')));
|
|
10327
10345
|
this.handleButtonClick();
|
|
10328
10346
|
this.onSearchValue.emit(this._filterItems);
|
|
10329
10347
|
}
|
|
@@ -10362,34 +10380,14 @@ class AXSearchBarComponent {
|
|
|
10362
10380
|
return className.toString().replace(/,/, ' ');
|
|
10363
10381
|
}
|
|
10364
10382
|
ngOnInit() {
|
|
10365
|
-
this.items.forEach((el) => {
|
|
10366
|
-
if (el.value != null) {
|
|
10367
|
-
this._filterItems.push({
|
|
10368
|
-
name: el.property.name,
|
|
10369
|
-
title: el.property.title,
|
|
10370
|
-
value: el.value
|
|
10371
|
-
});
|
|
10372
|
-
}
|
|
10373
|
-
});
|
|
10374
|
-
if (this.rtl == null) {
|
|
10375
|
-
this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
|
|
10376
|
-
}
|
|
10377
|
-
setTimeout(() => {
|
|
10378
|
-
this.ref.nativeElement.classList.add(this.rtl ? 'rtl' : 'ltr');
|
|
10379
|
-
this.el.nativeElement.classList.add(this.rtl ? 'rtl' : 'ltr');
|
|
10380
|
-
}, 5);
|
|
10381
|
-
this._items = _.chain(this.items).groupBy(x => x.property.row).map((value, key) => ({ row: key, items: value })).value();
|
|
10382
10383
|
}
|
|
10383
10384
|
}
|
|
10384
10385
|
AXSearchBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10385
|
-
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: {
|
|
10386
|
+
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 } });
|
|
10386
10387
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, decorators: [{
|
|
10387
10388
|
type: Component,
|
|
10388
|
-
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
|
|
10389
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: {
|
|
10390
|
-
type: ViewChild,
|
|
10391
|
-
args: ['dropdown', { static: true }]
|
|
10392
|
-
}], dropdown: [{
|
|
10389
|
+
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"] }]
|
|
10390
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { dropdown: [{
|
|
10393
10391
|
type: ViewChild,
|
|
10394
10392
|
args: ['dropdown', { static: true }]
|
|
10395
10393
|
}], _editors: [{
|
|
@@ -10403,6 +10401,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
10403
10401
|
type: Input
|
|
10404
10402
|
}], rtl: [{
|
|
10405
10403
|
type: Input
|
|
10404
|
+
}], onValueChange: [{
|
|
10405
|
+
type: Output
|
|
10406
10406
|
}], onSearchValue: [{
|
|
10407
10407
|
type: Output
|
|
10408
10408
|
}] } });
|
|
@@ -10505,199 +10505,75 @@ function propertyEditor(options) {
|
|
|
10505
10505
|
};
|
|
10506
10506
|
}
|
|
10507
10507
|
|
|
10508
|
-
class
|
|
10509
|
-
constructor(cdr) {
|
|
10510
|
-
super(cdr);
|
|
10511
|
-
this.cdr = cdr;
|
|
10512
|
-
this.clearButton = false;
|
|
10513
|
-
}
|
|
10514
|
-
handleValueChange(e) {
|
|
10515
|
-
super.handleValueChange(e.value);
|
|
10516
|
-
}
|
|
10517
|
-
ngAfterViewInit() {
|
|
10518
|
-
this.registerForValidationForm(this.textBox);
|
|
10519
|
-
this.onRenderCompleted.emit();
|
|
10520
|
-
}
|
|
10521
|
-
}
|
|
10522
|
-
AXTextPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10523
|
-
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"] }] });
|
|
10524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, decorators: [{
|
|
10525
|
-
type: Component,
|
|
10526
|
-
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>" }]
|
|
10527
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
10528
|
-
type: ViewChild,
|
|
10529
|
-
args: [AXTextBoxComponent]
|
|
10530
|
-
}] } });
|
|
10531
|
-
|
|
10532
|
-
class AXTextPropertyEditorModule {
|
|
10533
|
-
constructor() {
|
|
10534
|
-
}
|
|
10535
|
-
}
|
|
10536
|
-
AXTextPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10537
|
-
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] });
|
|
10538
|
-
AXTextPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextBoxModule, AXValidationModule]] });
|
|
10539
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, decorators: [{
|
|
10540
|
-
type: NgModule,
|
|
10541
|
-
args: [{
|
|
10542
|
-
declarations: [AXTextPropertyEditorComponent],
|
|
10543
|
-
imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
|
|
10544
|
-
exports: [AXTextPropertyEditorComponent],
|
|
10545
|
-
providers: []
|
|
10546
|
-
}]
|
|
10547
|
-
}], ctorParameters: function () { return []; } });
|
|
10548
|
-
|
|
10549
|
-
class AXNumberBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10508
|
+
class AXCheckBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10550
10509
|
constructor(cdr) {
|
|
10551
10510
|
super(cdr);
|
|
10552
10511
|
this.cdr = cdr;
|
|
10553
|
-
this.
|
|
10554
|
-
this.
|
|
10555
|
-
this.
|
|
10556
|
-
this.
|
|
10557
|
-
this.clearButton = false;
|
|
10512
|
+
this.disabled = false;
|
|
10513
|
+
this.indeterminate = false;
|
|
10514
|
+
this.readonly = false;
|
|
10515
|
+
this.size = 'md';
|
|
10558
10516
|
}
|
|
10559
10517
|
handleValueChange(e) {
|
|
10560
10518
|
super.handleValueChange(e.value);
|
|
10561
10519
|
}
|
|
10562
10520
|
ngAfterViewInit() {
|
|
10563
|
-
this.registerForValidationForm(this.
|
|
10521
|
+
this.registerForValidationForm(this.checkBox);
|
|
10564
10522
|
this.onRenderCompleted.emit();
|
|
10565
10523
|
}
|
|
10566
10524
|
}
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10570
|
-
|
|
10571
|
-
|
|
10572
|
-
|
|
10573
|
-
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
</ax-
|
|
10580
|
-
|
|
10581
|
-
|
|
10525
|
+
AXCheckBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10526
|
+
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: `
|
|
10527
|
+
<ax-check-box
|
|
10528
|
+
[disabled]="disabled"
|
|
10529
|
+
[label]="label"
|
|
10530
|
+
[size]="size"
|
|
10531
|
+
[indeterminate]="indeterminate"
|
|
10532
|
+
[readonly]="readonly"
|
|
10533
|
+
[value]="value"
|
|
10534
|
+
(onValueChanged)="handleValueChange($event)"
|
|
10535
|
+
>
|
|
10536
|
+
<ax-validation [rules]="validation?.rules">
|
|
10537
|
+
</ax-validation>
|
|
10538
|
+
</ax-check-box>
|
|
10539
|
+
`, 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"] }] });
|
|
10540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, decorators: [{
|
|
10582
10541
|
type: Component,
|
|
10583
10542
|
args: [{
|
|
10584
10543
|
template: `
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10593
|
-
|
|
10594
|
-
|
|
10595
|
-
</ax-
|
|
10544
|
+
<ax-check-box
|
|
10545
|
+
[disabled]="disabled"
|
|
10546
|
+
[label]="label"
|
|
10547
|
+
[size]="size"
|
|
10548
|
+
[indeterminate]="indeterminate"
|
|
10549
|
+
[readonly]="readonly"
|
|
10550
|
+
[value]="value"
|
|
10551
|
+
(onValueChanged)="handleValueChange($event)"
|
|
10552
|
+
>
|
|
10553
|
+
<ax-validation [rules]="validation?.rules">
|
|
10554
|
+
</ax-validation>
|
|
10555
|
+
</ax-check-box>
|
|
10596
10556
|
`,
|
|
10597
10557
|
}]
|
|
10598
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
10599
|
-
type: ViewChild,
|
|
10600
|
-
args: [AXNumberBoxComponent]
|
|
10601
|
-
}] } });
|
|
10602
|
-
|
|
10603
|
-
class AXNumberBoxPropertyEditorModule {
|
|
10604
|
-
constructor() {
|
|
10605
|
-
}
|
|
10606
|
-
}
|
|
10607
|
-
AXNumberBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10608
|
-
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] });
|
|
10609
|
-
AXNumberBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule]] });
|
|
10610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, decorators: [{
|
|
10611
|
-
type: NgModule,
|
|
10612
|
-
args: [{
|
|
10613
|
-
declarations: [AXNumberBoxPropertyEditorComponent],
|
|
10614
|
-
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule],
|
|
10615
|
-
exports: [AXNumberBoxPropertyEditorComponent],
|
|
10616
|
-
providers: []
|
|
10617
|
-
}]
|
|
10618
|
-
}], ctorParameters: function () { return []; } });
|
|
10619
|
-
|
|
10620
|
-
class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
10621
|
-
constructor(cdr) {
|
|
10622
|
-
super(cdr);
|
|
10623
|
-
this.cdr = cdr;
|
|
10624
|
-
this.valueField = 'id';
|
|
10625
|
-
this.textField = 'text';
|
|
10626
|
-
this.selectionMode = 'single';
|
|
10627
|
-
this.selectionDataMode = 'value';
|
|
10628
|
-
this.allowSearch = true;
|
|
10629
|
-
this.allowNull = false;
|
|
10630
|
-
this.disabled = false;
|
|
10631
|
-
this.items = [];
|
|
10632
|
-
this.remoteOperation = false;
|
|
10633
|
-
this.provideData = (e) => {
|
|
10634
|
-
return new Promise((resolve) => {
|
|
10635
|
-
const func = () => {
|
|
10636
|
-
if (Array.isArray(this.items)) {
|
|
10637
|
-
resolve(this.items.slice());
|
|
10638
|
-
}
|
|
10639
|
-
else if (typeof this.items === 'function') {
|
|
10640
|
-
const a = Object.assign(e, { sender: this });
|
|
10641
|
-
resolve(this.items(a));
|
|
10642
|
-
}
|
|
10643
|
-
else {
|
|
10644
|
-
resolve([]);
|
|
10645
|
-
}
|
|
10646
|
-
};
|
|
10647
|
-
const intVal = setInterval(() => {
|
|
10648
|
-
if (this.initiated) {
|
|
10649
|
-
func();
|
|
10650
|
-
clearInterval(intVal);
|
|
10651
|
-
}
|
|
10652
|
-
}, 50);
|
|
10653
|
-
});
|
|
10654
|
-
};
|
|
10655
|
-
}
|
|
10656
|
-
get filter() {
|
|
10657
|
-
return this._filter;
|
|
10658
|
-
}
|
|
10659
|
-
set filter(v) {
|
|
10660
|
-
var _a;
|
|
10661
|
-
this._filter = v;
|
|
10662
|
-
if (this.value && this.initiated) {
|
|
10663
|
-
this.value = null;
|
|
10664
|
-
(_a = this.selectBox) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
10665
|
-
}
|
|
10666
|
-
}
|
|
10667
|
-
handleValueChange(e) {
|
|
10668
|
-
super.handleValueChange(e.selectedValues);
|
|
10669
|
-
}
|
|
10670
|
-
ngAfterViewInit() {
|
|
10671
|
-
this.registerForValidationForm(this.selectBox);
|
|
10672
|
-
this.onRenderCompleted.emit();
|
|
10673
|
-
}
|
|
10674
|
-
}
|
|
10675
|
-
AXSelectBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
10676
|
-
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"] }] });
|
|
10677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, decorators: [{
|
|
10678
|
-
type: Component,
|
|
10679
|
-
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>" }]
|
|
10680
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectBox: [{
|
|
10558
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { checkBox: [{
|
|
10681
10559
|
type: ViewChild,
|
|
10682
|
-
args: [
|
|
10560
|
+
args: [AXCheckBoxComponent, { static: true }]
|
|
10683
10561
|
}] } });
|
|
10684
10562
|
|
|
10685
|
-
class
|
|
10686
|
-
constructor() {
|
|
10687
|
-
}
|
|
10563
|
+
class AXCheckPropertyEditorModule {
|
|
10688
10564
|
}
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
10565
|
+
AXCheckPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10566
|
+
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] });
|
|
10567
|
+
AXCheckPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, providers: [], imports: [[CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule]] });
|
|
10568
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, decorators: [{
|
|
10693
10569
|
type: NgModule,
|
|
10694
10570
|
args: [{
|
|
10695
|
-
declarations: [
|
|
10696
|
-
imports: [CommonModule,
|
|
10697
|
-
exports: [
|
|
10698
|
-
providers: []
|
|
10571
|
+
declarations: [AXCheckBoxPropertyEditorComponent],
|
|
10572
|
+
imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule],
|
|
10573
|
+
exports: [AXCheckBoxPropertyEditorComponent],
|
|
10574
|
+
providers: [],
|
|
10699
10575
|
}]
|
|
10700
|
-
}]
|
|
10576
|
+
}] });
|
|
10701
10577
|
|
|
10702
10578
|
class AXColorBoxComponent extends AXValidatableComponent {
|
|
10703
10579
|
constructor() {
|
|
@@ -11187,199 +11063,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11187
11063
|
type: Input
|
|
11188
11064
|
}] } });
|
|
11189
11065
|
|
|
11190
|
-
class
|
|
11191
|
-
constructor(cdr
|
|
11066
|
+
class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11067
|
+
constructor(cdr) {
|
|
11192
11068
|
super(cdr);
|
|
11193
11069
|
this.cdr = cdr;
|
|
11194
|
-
this.popupService = popupService;
|
|
11195
|
-
this.ranges = [];
|
|
11196
|
-
this.showSeparator = true;
|
|
11197
|
-
this.decimalNumber = 2;
|
|
11198
|
-
}
|
|
11199
|
-
ngOnInit() {
|
|
11200
|
-
this.ranges = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
11201
|
-
this.cdr.detectChanges();
|
|
11202
11070
|
}
|
|
11203
11071
|
ngAfterViewInit() {
|
|
11204
|
-
this.
|
|
11205
|
-
}
|
|
11206
|
-
// getRanges() {
|
|
11207
|
-
// return this.ranges.sort((a, b) => a.minValue - b.minValue);
|
|
11208
|
-
// }
|
|
11209
|
-
onFormInit(e) {
|
|
11210
|
-
this.form = e.component;
|
|
11211
|
-
}
|
|
11212
|
-
handleEditClick(item) {
|
|
11213
|
-
this.editRow = Object.assign({}, item);
|
|
11214
|
-
const popup = this.popupService.open(this.tplEdit, {
|
|
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
|
-
Object.assign(item, 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
|
-
title: AXTranslator.get('common.edit')
|
|
11249
|
-
});
|
|
11250
|
-
}
|
|
11251
|
-
handleAddClick() {
|
|
11252
|
-
var _a;
|
|
11253
|
-
const min = ((_a = this.ranges) === null || _a === void 0 ? void 0 : _a.length) ? Math.max(...this.ranges.map(c => c.maxValue)) : 0;
|
|
11254
|
-
this.editRow = {
|
|
11255
|
-
title: '',
|
|
11256
|
-
minValue: min,
|
|
11257
|
-
maxValue: min + 1,
|
|
11258
|
-
color: null
|
|
11259
|
-
};
|
|
11260
|
-
const popup = this.popupService.open(this.tplEdit, {
|
|
11261
|
-
title: AXTranslator.get('common.add-item'),
|
|
11262
|
-
size: 'sm',
|
|
11263
|
-
footerButtons: [
|
|
11264
|
-
{
|
|
11265
|
-
name: 'confirm',
|
|
11266
|
-
text: AXTranslator.get('common.confirm'),
|
|
11267
|
-
style: 'success',
|
|
11268
|
-
submitBehavior: true,
|
|
11269
|
-
cancelBehavior: false,
|
|
11270
|
-
onClick: () => {
|
|
11271
|
-
this.form.validate().then(c => {
|
|
11272
|
-
if (c.result) {
|
|
11273
|
-
super.handleValueChange(this.ranges);
|
|
11274
|
-
this.ranges.push(this.editRow);
|
|
11275
|
-
popup.close();
|
|
11276
|
-
this.editRow = null;
|
|
11277
|
-
this.cdr.detectChanges();
|
|
11278
|
-
}
|
|
11279
|
-
});
|
|
11280
|
-
}
|
|
11281
|
-
},
|
|
11282
|
-
{
|
|
11283
|
-
name: 'cancel',
|
|
11284
|
-
text: AXTranslator.get('common.cancel'),
|
|
11285
|
-
style: 'danger blank',
|
|
11286
|
-
submitBehavior: false,
|
|
11287
|
-
cancelBehavior: true,
|
|
11288
|
-
onClick: () => {
|
|
11289
|
-
popup.close();
|
|
11290
|
-
this.editRow = null;
|
|
11291
|
-
this.cdr.detectChanges();
|
|
11292
|
-
}
|
|
11293
|
-
}
|
|
11294
|
-
],
|
|
11295
|
-
});
|
|
11296
|
-
this.cdr.detectChanges();
|
|
11297
|
-
}
|
|
11298
|
-
handleRemoveClick(item) {
|
|
11299
|
-
this.ranges = this.ranges.filter(c => c.minValue !== item.minValue);
|
|
11300
|
-
super.handleValueChange(this.ranges);
|
|
11301
|
-
}
|
|
11302
|
-
}
|
|
11303
|
-
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 });
|
|
11304
|
-
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 });
|
|
11305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, decorators: [{
|
|
11306
|
-
type: Component,
|
|
11307
|
-
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"] }]
|
|
11308
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: AXPopupService }]; }, propDecorators: { tplEdit: [{
|
|
11309
|
-
type: ViewChild,
|
|
11310
|
-
args: ['tplEdit']
|
|
11311
|
-
}] } });
|
|
11312
|
-
|
|
11313
|
-
class AXColorPickerModule {
|
|
11314
|
-
}
|
|
11315
|
-
AXColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11316
|
-
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] });
|
|
11317
|
-
AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule]] });
|
|
11318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, decorators: [{
|
|
11319
|
-
type: NgModule,
|
|
11320
|
-
args: [{
|
|
11321
|
-
declarations: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11322
|
-
imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule],
|
|
11323
|
-
exports: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11324
|
-
providers: []
|
|
11325
|
-
}]
|
|
11326
|
-
}] });
|
|
11327
|
-
|
|
11328
|
-
class AXRangePropertyEditorModule {
|
|
11329
|
-
constructor() {
|
|
11330
|
-
}
|
|
11331
|
-
}
|
|
11332
|
-
AXRangePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11333
|
-
AXRangePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, declarations: [AXRangePropertyEditorComponent], imports: [CommonModule,
|
|
11334
|
-
FormsModule,
|
|
11335
|
-
AXTranslatorModule,
|
|
11336
|
-
AXTextBoxModule,
|
|
11337
|
-
AXNumberBoxModule,
|
|
11338
|
-
AXColorPickerModule,
|
|
11339
|
-
AXLabelModule,
|
|
11340
|
-
AXPageModule,
|
|
11341
|
-
AXValidationModule,
|
|
11342
|
-
AXButtonModule], exports: [AXRangePropertyEditorComponent] });
|
|
11343
|
-
AXRangePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, providers: [], imports: [[
|
|
11344
|
-
CommonModule,
|
|
11345
|
-
FormsModule,
|
|
11346
|
-
AXTranslatorModule,
|
|
11347
|
-
AXTextBoxModule,
|
|
11348
|
-
AXNumberBoxModule,
|
|
11349
|
-
AXColorPickerModule,
|
|
11350
|
-
AXLabelModule,
|
|
11351
|
-
AXPageModule,
|
|
11352
|
-
AXValidationModule,
|
|
11353
|
-
AXButtonModule
|
|
11354
|
-
]] });
|
|
11355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, decorators: [{
|
|
11356
|
-
type: NgModule,
|
|
11357
|
-
args: [{
|
|
11358
|
-
declarations: [AXRangePropertyEditorComponent],
|
|
11359
|
-
imports: [
|
|
11360
|
-
CommonModule,
|
|
11361
|
-
FormsModule,
|
|
11362
|
-
AXTranslatorModule,
|
|
11363
|
-
AXTextBoxModule,
|
|
11364
|
-
AXNumberBoxModule,
|
|
11365
|
-
AXColorPickerModule,
|
|
11366
|
-
AXLabelModule,
|
|
11367
|
-
AXPageModule,
|
|
11368
|
-
AXValidationModule,
|
|
11369
|
-
AXButtonModule
|
|
11370
|
-
],
|
|
11371
|
-
exports: [AXRangePropertyEditorComponent],
|
|
11372
|
-
providers: []
|
|
11373
|
-
}]
|
|
11374
|
-
}], ctorParameters: function () { return []; } });
|
|
11375
|
-
|
|
11376
|
-
class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11377
|
-
constructor(cdr) {
|
|
11378
|
-
super(cdr);
|
|
11379
|
-
this.cdr = cdr;
|
|
11380
|
-
}
|
|
11381
|
-
ngAfterViewInit() {
|
|
11382
|
-
this.registerForValidationForm(this.textBox);
|
|
11072
|
+
this.registerForValidationForm(this.textBox);
|
|
11383
11073
|
this.onRenderCompleted.emit();
|
|
11384
11074
|
}
|
|
11385
11075
|
}
|
|
@@ -11405,6 +11095,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11405
11095
|
args: [AXColorPickerComponent]
|
|
11406
11096
|
}] } });
|
|
11407
11097
|
|
|
11098
|
+
class AXColorPickerModule {
|
|
11099
|
+
}
|
|
11100
|
+
AXColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11101
|
+
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] });
|
|
11102
|
+
AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule]] });
|
|
11103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, decorators: [{
|
|
11104
|
+
type: NgModule,
|
|
11105
|
+
args: [{
|
|
11106
|
+
declarations: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11107
|
+
imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule],
|
|
11108
|
+
exports: [AXColorPickerComponent, AXColorBoxComponent],
|
|
11109
|
+
providers: []
|
|
11110
|
+
}]
|
|
11111
|
+
}] });
|
|
11112
|
+
|
|
11408
11113
|
class AXColorPropertyEditorModule {
|
|
11409
11114
|
constructor() {
|
|
11410
11115
|
}
|
|
@@ -11794,78 +11499,545 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
11794
11499
|
}]
|
|
11795
11500
|
}], ctorParameters: function () { return []; } });
|
|
11796
11501
|
|
|
11797
|
-
class
|
|
11798
|
-
constructor(cdr) {
|
|
11799
|
-
super();
|
|
11800
|
-
this.cdr = cdr;
|
|
11801
|
-
this.onValueChanged = new EventEmitter();
|
|
11802
|
-
this.valueChange = new EventEmitter();
|
|
11803
|
-
this.tabIndex = 0;
|
|
11804
|
-
this.size = 'md';
|
|
11805
|
-
}
|
|
11806
|
-
get value() {
|
|
11807
|
-
return this._value;
|
|
11808
|
-
}
|
|
11809
|
-
set value(v) {
|
|
11810
|
-
if (this._value !== v) {
|
|
11811
|
-
const oldValue = this._value;
|
|
11812
|
-
this._value = v;
|
|
11813
|
-
this.valueChange.emit(v);
|
|
11814
|
-
this.onValueChanged.emit({
|
|
11815
|
-
component: this,
|
|
11816
|
-
oldValue,
|
|
11817
|
-
value: v
|
|
11818
|
-
});
|
|
11819
|
-
}
|
|
11820
|
-
}
|
|
11821
|
-
focus() { }
|
|
11822
|
-
}
|
|
11823
|
-
AXSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11824
|
-
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 });
|
|
11825
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, decorators: [{
|
|
11826
|
-
type: Component,
|
|
11827
|
-
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"] }]
|
|
11828
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { onValueChanged: [{
|
|
11829
|
-
type: Output
|
|
11830
|
-
}], valueChange: [{
|
|
11831
|
-
type: Output
|
|
11832
|
-
}], tabIndex: [{
|
|
11833
|
-
type: Input
|
|
11834
|
-
}], value: [{
|
|
11835
|
-
type: Input
|
|
11836
|
-
}], readonly: [{
|
|
11837
|
-
type: Input
|
|
11838
|
-
}], disabled: [{
|
|
11839
|
-
type: Input
|
|
11840
|
-
}], size: [{
|
|
11841
|
-
type: Input
|
|
11842
|
-
}] } });
|
|
11843
|
-
|
|
11844
|
-
class AXSwitchPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11502
|
+
class AXDatePropertyEditorComponent extends AXProperyEditorComponent {
|
|
11845
11503
|
constructor(cdr) {
|
|
11846
11504
|
super(cdr);
|
|
11847
11505
|
this.cdr = cdr;
|
|
11506
|
+
this.showTodayButton = true;
|
|
11507
|
+
this.selectableHoliday = true;
|
|
11508
|
+
this.type = 'gregorian';
|
|
11509
|
+
this.textAlign = null;
|
|
11510
|
+
this.placeholder = '';
|
|
11511
|
+
this.clearButton = false;
|
|
11512
|
+
this.showToday = false;
|
|
11513
|
+
this.size = 'md';
|
|
11848
11514
|
}
|
|
11849
11515
|
handleValueChange(e) {
|
|
11850
11516
|
super.handleValueChange(e.value);
|
|
11851
11517
|
}
|
|
11852
11518
|
ngAfterViewInit() {
|
|
11519
|
+
this.registerForValidationForm(this.date);
|
|
11853
11520
|
this.onRenderCompleted.emit();
|
|
11854
11521
|
}
|
|
11855
11522
|
}
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11523
|
+
AXDatePropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11524
|
+
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: `
|
|
11525
|
+
<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)"
|
|
11526
|
+
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11527
|
+
<ax-validation [rules]="validation?.rules">
|
|
11528
|
+
</ax-validation>
|
|
11529
|
+
</ax-date-picker>
|
|
11530
|
+
`, 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"] }] });
|
|
11531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, decorators: [{
|
|
11861
11532
|
type: Component,
|
|
11862
11533
|
args: [{
|
|
11863
11534
|
template: `
|
|
11864
|
-
|
|
11865
|
-
|
|
11535
|
+
<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)"
|
|
11536
|
+
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11537
|
+
<ax-validation [rules]="validation?.rules">
|
|
11538
|
+
</ax-validation>
|
|
11539
|
+
</ax-date-picker>
|
|
11540
|
+
`,
|
|
11866
11541
|
}]
|
|
11867
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }
|
|
11868
|
-
|
|
11542
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { date: [{
|
|
11543
|
+
type: ViewChild,
|
|
11544
|
+
args: [AXDatePickerComponent]
|
|
11545
|
+
}] } });
|
|
11546
|
+
|
|
11547
|
+
class AXDatePropertyEditorModule {
|
|
11548
|
+
constructor() {
|
|
11549
|
+
}
|
|
11550
|
+
}
|
|
11551
|
+
AXDatePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11552
|
+
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] });
|
|
11553
|
+
AXDatePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXDatePickerModule, AXValidationModule]] });
|
|
11554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, decorators: [{
|
|
11555
|
+
type: NgModule,
|
|
11556
|
+
args: [{
|
|
11557
|
+
declarations: [AXDatePropertyEditorComponent],
|
|
11558
|
+
imports: [CommonModule, FormsModule, AXDatePickerModule, AXValidationModule],
|
|
11559
|
+
exports: [AXDatePropertyEditorComponent],
|
|
11560
|
+
providers: []
|
|
11561
|
+
}]
|
|
11562
|
+
}], ctorParameters: function () { return []; } });
|
|
11563
|
+
|
|
11564
|
+
class AXNumberBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11565
|
+
constructor(cdr) {
|
|
11566
|
+
super(cdr);
|
|
11567
|
+
this.cdr = cdr;
|
|
11568
|
+
this.showSeparator = true;
|
|
11569
|
+
this.decimalNumber = 2;
|
|
11570
|
+
this.minValue = null;
|
|
11571
|
+
this.maxValue = null;
|
|
11572
|
+
this.clearButton = false;
|
|
11573
|
+
}
|
|
11574
|
+
handleValueChange(e) {
|
|
11575
|
+
super.handleValueChange(e.value);
|
|
11576
|
+
}
|
|
11577
|
+
ngAfterViewInit() {
|
|
11578
|
+
this.registerForValidationForm(this.textBox);
|
|
11579
|
+
this.onRenderCompleted.emit();
|
|
11580
|
+
}
|
|
11581
|
+
}
|
|
11582
|
+
AXNumberBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11583
|
+
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: `
|
|
11584
|
+
<ax-number-box (onValueChanged)="handleValueChange($event)"
|
|
11585
|
+
[value]="value"
|
|
11586
|
+
[showSeparator]="showSeparator"
|
|
11587
|
+
[decimalNumber]="decimalNumber"
|
|
11588
|
+
[min]="minValue"
|
|
11589
|
+
[max]="maxValue"
|
|
11590
|
+
[allowClear]="clearButton"
|
|
11591
|
+
>
|
|
11592
|
+
<ax-validation [rules]="validation?.rules">
|
|
11593
|
+
</ax-validation>
|
|
11594
|
+
</ax-number-box>
|
|
11595
|
+
`, 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"] }] });
|
|
11596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorComponent, decorators: [{
|
|
11597
|
+
type: Component,
|
|
11598
|
+
args: [{
|
|
11599
|
+
template: `
|
|
11600
|
+
<ax-number-box (onValueChanged)="handleValueChange($event)"
|
|
11601
|
+
[value]="value"
|
|
11602
|
+
[showSeparator]="showSeparator"
|
|
11603
|
+
[decimalNumber]="decimalNumber"
|
|
11604
|
+
[min]="minValue"
|
|
11605
|
+
[max]="maxValue"
|
|
11606
|
+
[allowClear]="clearButton"
|
|
11607
|
+
>
|
|
11608
|
+
<ax-validation [rules]="validation?.rules">
|
|
11609
|
+
</ax-validation>
|
|
11610
|
+
</ax-number-box>
|
|
11611
|
+
`,
|
|
11612
|
+
}]
|
|
11613
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
11614
|
+
type: ViewChild,
|
|
11615
|
+
args: [AXNumberBoxComponent]
|
|
11616
|
+
}] } });
|
|
11617
|
+
|
|
11618
|
+
class AXNumberBoxPropertyEditorModule {
|
|
11619
|
+
constructor() {
|
|
11620
|
+
}
|
|
11621
|
+
}
|
|
11622
|
+
AXNumberBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11623
|
+
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] });
|
|
11624
|
+
AXNumberBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule]] });
|
|
11625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, decorators: [{
|
|
11626
|
+
type: NgModule,
|
|
11627
|
+
args: [{
|
|
11628
|
+
declarations: [AXNumberBoxPropertyEditorComponent],
|
|
11629
|
+
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule],
|
|
11630
|
+
exports: [AXNumberBoxPropertyEditorComponent],
|
|
11631
|
+
providers: []
|
|
11632
|
+
}]
|
|
11633
|
+
}], ctorParameters: function () { return []; } });
|
|
11634
|
+
|
|
11635
|
+
class AXRangePropertyEditorComponent extends AXProperyEditorComponent {
|
|
11636
|
+
constructor(cdr, popupService) {
|
|
11637
|
+
super(cdr);
|
|
11638
|
+
this.cdr = cdr;
|
|
11639
|
+
this.popupService = popupService;
|
|
11640
|
+
this.ranges = [];
|
|
11641
|
+
this.showSeparator = true;
|
|
11642
|
+
this.decimalNumber = 2;
|
|
11643
|
+
}
|
|
11644
|
+
ngOnInit() {
|
|
11645
|
+
this.ranges = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
|
|
11646
|
+
this.cdr.detectChanges();
|
|
11647
|
+
}
|
|
11648
|
+
ngAfterViewInit() {
|
|
11649
|
+
this.onRenderCompleted.emit();
|
|
11650
|
+
}
|
|
11651
|
+
// getRanges() {
|
|
11652
|
+
// return this.ranges.sort((a, b) => a.minValue - b.minValue);
|
|
11653
|
+
// }
|
|
11654
|
+
onFormInit(e) {
|
|
11655
|
+
this.form = e.component;
|
|
11656
|
+
}
|
|
11657
|
+
handleEditClick(item) {
|
|
11658
|
+
this.editRow = Object.assign({}, item);
|
|
11659
|
+
const popup = this.popupService.open(this.tplEdit, {
|
|
11660
|
+
size: 'sm',
|
|
11661
|
+
footerButtons: [
|
|
11662
|
+
{
|
|
11663
|
+
name: 'confirm',
|
|
11664
|
+
text: AXTranslator.get('common.confirm'),
|
|
11665
|
+
style: 'success',
|
|
11666
|
+
submitBehavior: true,
|
|
11667
|
+
cancelBehavior: false,
|
|
11668
|
+
onClick: () => {
|
|
11669
|
+
this.form.validate().then(c => {
|
|
11670
|
+
if (c.result) {
|
|
11671
|
+
super.handleValueChange(this.ranges);
|
|
11672
|
+
Object.assign(item, this.editRow);
|
|
11673
|
+
popup.close();
|
|
11674
|
+
this.editRow = null;
|
|
11675
|
+
this.cdr.detectChanges();
|
|
11676
|
+
}
|
|
11677
|
+
});
|
|
11678
|
+
}
|
|
11679
|
+
},
|
|
11680
|
+
{
|
|
11681
|
+
name: 'cancel',
|
|
11682
|
+
text: AXTranslator.get('common.cancel'),
|
|
11683
|
+
style: 'danger blank',
|
|
11684
|
+
submitBehavior: false,
|
|
11685
|
+
cancelBehavior: true,
|
|
11686
|
+
onClick: () => {
|
|
11687
|
+
popup.close();
|
|
11688
|
+
this.editRow = null;
|
|
11689
|
+
this.cdr.detectChanges();
|
|
11690
|
+
}
|
|
11691
|
+
}
|
|
11692
|
+
],
|
|
11693
|
+
title: AXTranslator.get('common.edit')
|
|
11694
|
+
});
|
|
11695
|
+
}
|
|
11696
|
+
handleAddClick() {
|
|
11697
|
+
var _a;
|
|
11698
|
+
const min = ((_a = this.ranges) === null || _a === void 0 ? void 0 : _a.length) ? Math.max(...this.ranges.map(c => c.maxValue)) : 0;
|
|
11699
|
+
this.editRow = {
|
|
11700
|
+
title: '',
|
|
11701
|
+
minValue: min,
|
|
11702
|
+
maxValue: min + 1,
|
|
11703
|
+
color: null
|
|
11704
|
+
};
|
|
11705
|
+
const popup = this.popupService.open(this.tplEdit, {
|
|
11706
|
+
title: AXTranslator.get('common.add-item'),
|
|
11707
|
+
size: 'sm',
|
|
11708
|
+
footerButtons: [
|
|
11709
|
+
{
|
|
11710
|
+
name: 'confirm',
|
|
11711
|
+
text: AXTranslator.get('common.confirm'),
|
|
11712
|
+
style: 'success',
|
|
11713
|
+
submitBehavior: true,
|
|
11714
|
+
cancelBehavior: false,
|
|
11715
|
+
onClick: () => {
|
|
11716
|
+
this.form.validate().then(c => {
|
|
11717
|
+
if (c.result) {
|
|
11718
|
+
super.handleValueChange(this.ranges);
|
|
11719
|
+
this.ranges.push(this.editRow);
|
|
11720
|
+
popup.close();
|
|
11721
|
+
this.editRow = null;
|
|
11722
|
+
this.cdr.detectChanges();
|
|
11723
|
+
}
|
|
11724
|
+
});
|
|
11725
|
+
}
|
|
11726
|
+
},
|
|
11727
|
+
{
|
|
11728
|
+
name: 'cancel',
|
|
11729
|
+
text: AXTranslator.get('common.cancel'),
|
|
11730
|
+
style: 'danger blank',
|
|
11731
|
+
submitBehavior: false,
|
|
11732
|
+
cancelBehavior: true,
|
|
11733
|
+
onClick: () => {
|
|
11734
|
+
popup.close();
|
|
11735
|
+
this.editRow = null;
|
|
11736
|
+
this.cdr.detectChanges();
|
|
11737
|
+
}
|
|
11738
|
+
}
|
|
11739
|
+
],
|
|
11740
|
+
});
|
|
11741
|
+
this.cdr.detectChanges();
|
|
11742
|
+
}
|
|
11743
|
+
handleRemoveClick(item) {
|
|
11744
|
+
this.ranges = this.ranges.filter(c => c.minValue !== item.minValue);
|
|
11745
|
+
super.handleValueChange(this.ranges);
|
|
11746
|
+
}
|
|
11747
|
+
}
|
|
11748
|
+
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 });
|
|
11749
|
+
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 });
|
|
11750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, decorators: [{
|
|
11751
|
+
type: Component,
|
|
11752
|
+
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"] }]
|
|
11753
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: AXPopupService }]; }, propDecorators: { tplEdit: [{
|
|
11754
|
+
type: ViewChild,
|
|
11755
|
+
args: ['tplEdit']
|
|
11756
|
+
}] } });
|
|
11757
|
+
|
|
11758
|
+
class AXRangePropertyEditorModule {
|
|
11759
|
+
constructor() {
|
|
11760
|
+
}
|
|
11761
|
+
}
|
|
11762
|
+
AXRangePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11763
|
+
AXRangePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, declarations: [AXRangePropertyEditorComponent], imports: [CommonModule,
|
|
11764
|
+
FormsModule,
|
|
11765
|
+
AXTranslatorModule,
|
|
11766
|
+
AXTextBoxModule,
|
|
11767
|
+
AXNumberBoxModule,
|
|
11768
|
+
AXColorPickerModule,
|
|
11769
|
+
AXLabelModule,
|
|
11770
|
+
AXPageModule,
|
|
11771
|
+
AXValidationModule,
|
|
11772
|
+
AXButtonModule], exports: [AXRangePropertyEditorComponent] });
|
|
11773
|
+
AXRangePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, providers: [], imports: [[
|
|
11774
|
+
CommonModule,
|
|
11775
|
+
FormsModule,
|
|
11776
|
+
AXTranslatorModule,
|
|
11777
|
+
AXTextBoxModule,
|
|
11778
|
+
AXNumberBoxModule,
|
|
11779
|
+
AXColorPickerModule,
|
|
11780
|
+
AXLabelModule,
|
|
11781
|
+
AXPageModule,
|
|
11782
|
+
AXValidationModule,
|
|
11783
|
+
AXButtonModule
|
|
11784
|
+
]] });
|
|
11785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, decorators: [{
|
|
11786
|
+
type: NgModule,
|
|
11787
|
+
args: [{
|
|
11788
|
+
declarations: [AXRangePropertyEditorComponent],
|
|
11789
|
+
imports: [
|
|
11790
|
+
CommonModule,
|
|
11791
|
+
FormsModule,
|
|
11792
|
+
AXTranslatorModule,
|
|
11793
|
+
AXTextBoxModule,
|
|
11794
|
+
AXNumberBoxModule,
|
|
11795
|
+
AXColorPickerModule,
|
|
11796
|
+
AXLabelModule,
|
|
11797
|
+
AXPageModule,
|
|
11798
|
+
AXValidationModule,
|
|
11799
|
+
AXButtonModule
|
|
11800
|
+
],
|
|
11801
|
+
exports: [AXRangePropertyEditorComponent],
|
|
11802
|
+
providers: []
|
|
11803
|
+
}]
|
|
11804
|
+
}], ctorParameters: function () { return []; } });
|
|
11805
|
+
|
|
11806
|
+
class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11807
|
+
constructor(cdr) {
|
|
11808
|
+
super(cdr);
|
|
11809
|
+
this.cdr = cdr;
|
|
11810
|
+
this.valueField = 'id';
|
|
11811
|
+
this.textField = 'text';
|
|
11812
|
+
this.selectionMode = 'single';
|
|
11813
|
+
this.selectionDataMode = 'value';
|
|
11814
|
+
this.allowSearch = true;
|
|
11815
|
+
this.allowNull = false;
|
|
11816
|
+
this.disabled = false;
|
|
11817
|
+
this.items = [];
|
|
11818
|
+
this.remoteOperation = false;
|
|
11819
|
+
this.provideData = (e) => {
|
|
11820
|
+
return new Promise((resolve) => {
|
|
11821
|
+
const func = () => {
|
|
11822
|
+
if (Array.isArray(this.items)) {
|
|
11823
|
+
resolve(this.items.slice());
|
|
11824
|
+
}
|
|
11825
|
+
else if (typeof this.items === 'function') {
|
|
11826
|
+
const a = Object.assign(e, { sender: this });
|
|
11827
|
+
resolve(this.items(a));
|
|
11828
|
+
}
|
|
11829
|
+
else {
|
|
11830
|
+
resolve([]);
|
|
11831
|
+
}
|
|
11832
|
+
};
|
|
11833
|
+
const intVal = setInterval(() => {
|
|
11834
|
+
if (this.initiated) {
|
|
11835
|
+
func();
|
|
11836
|
+
clearInterval(intVal);
|
|
11837
|
+
}
|
|
11838
|
+
}, 50);
|
|
11839
|
+
});
|
|
11840
|
+
};
|
|
11841
|
+
}
|
|
11842
|
+
get filter() {
|
|
11843
|
+
return this._filter;
|
|
11844
|
+
}
|
|
11845
|
+
set filter(v) {
|
|
11846
|
+
var _a;
|
|
11847
|
+
this._filter = v;
|
|
11848
|
+
if (this.value && this.initiated) {
|
|
11849
|
+
this.value = null;
|
|
11850
|
+
(_a = this.selectBox) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
11851
|
+
}
|
|
11852
|
+
}
|
|
11853
|
+
handleValueChange(e) {
|
|
11854
|
+
super.handleValueChange(e.selectedValues);
|
|
11855
|
+
}
|
|
11856
|
+
ngAfterViewInit() {
|
|
11857
|
+
this.registerForValidationForm(this.selectBox);
|
|
11858
|
+
this.onRenderCompleted.emit();
|
|
11859
|
+
}
|
|
11860
|
+
}
|
|
11861
|
+
AXSelectBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11862
|
+
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"] }] });
|
|
11863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, decorators: [{
|
|
11864
|
+
type: Component,
|
|
11865
|
+
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>" }]
|
|
11866
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectBox: [{
|
|
11867
|
+
type: ViewChild,
|
|
11868
|
+
args: [AXSelectBoxComponent, { static: true }]
|
|
11869
|
+
}] } });
|
|
11870
|
+
|
|
11871
|
+
class AXSelectBoxPropertyEditorModule {
|
|
11872
|
+
constructor() {
|
|
11873
|
+
}
|
|
11874
|
+
}
|
|
11875
|
+
AXSelectBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11876
|
+
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] });
|
|
11877
|
+
AXSelectBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule]] });
|
|
11878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, decorators: [{
|
|
11879
|
+
type: NgModule,
|
|
11880
|
+
args: [{
|
|
11881
|
+
declarations: [AXSelectBoxPropertyEditorComponent],
|
|
11882
|
+
imports: [CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule],
|
|
11883
|
+
exports: [AXSelectBoxPropertyEditorComponent],
|
|
11884
|
+
providers: []
|
|
11885
|
+
}]
|
|
11886
|
+
}], ctorParameters: function () { return []; } });
|
|
11887
|
+
|
|
11888
|
+
class AXSelectionListPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11889
|
+
constructor(cdr) {
|
|
11890
|
+
super(cdr);
|
|
11891
|
+
this.cdr = cdr;
|
|
11892
|
+
this.disabled = false;
|
|
11893
|
+
this.indeterminate = false;
|
|
11894
|
+
this.readonly = false;
|
|
11895
|
+
this.size = 'md';
|
|
11896
|
+
this.items = [];
|
|
11897
|
+
this.mode = 'single';
|
|
11898
|
+
this.direction = 'horizontal';
|
|
11899
|
+
this.textField = null;
|
|
11900
|
+
this.valueField = null;
|
|
11901
|
+
}
|
|
11902
|
+
handleValueChange(e) {
|
|
11903
|
+
super.handleValueChange(e);
|
|
11904
|
+
}
|
|
11905
|
+
ngAfterViewInit() {
|
|
11906
|
+
this.registerForValidationForm(this.selectionList);
|
|
11907
|
+
this.onRenderCompleted.emit();
|
|
11908
|
+
}
|
|
11909
|
+
}
|
|
11910
|
+
AXSelectionListPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11911
|
+
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: `
|
|
11912
|
+
<ax-selection-list
|
|
11913
|
+
[disabled]="disabled"
|
|
11914
|
+
[size]="size"
|
|
11915
|
+
[readonly]="readonly"
|
|
11916
|
+
[value]="value"
|
|
11917
|
+
[items]="items"
|
|
11918
|
+
[mode]="mode"
|
|
11919
|
+
(selectedValuesChange)="handleValueChange($event)"
|
|
11920
|
+
[textField]="textField"
|
|
11921
|
+
[valueField]="valueField"
|
|
11922
|
+
[direction]="direction"
|
|
11923
|
+
>
|
|
11924
|
+
<ax-validation [rules]="validation?.rules">
|
|
11925
|
+
</ax-validation>
|
|
11926
|
+
</ax-selection-list>
|
|
11927
|
+
`, 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"] }] });
|
|
11928
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionListPropertyEditorComponent, decorators: [{
|
|
11929
|
+
type: Component,
|
|
11930
|
+
args: [{
|
|
11931
|
+
template: `
|
|
11932
|
+
<ax-selection-list
|
|
11933
|
+
[disabled]="disabled"
|
|
11934
|
+
[size]="size"
|
|
11935
|
+
[readonly]="readonly"
|
|
11936
|
+
[value]="value"
|
|
11937
|
+
[items]="items"
|
|
11938
|
+
[mode]="mode"
|
|
11939
|
+
(selectedValuesChange)="handleValueChange($event)"
|
|
11940
|
+
[textField]="textField"
|
|
11941
|
+
[valueField]="valueField"
|
|
11942
|
+
[direction]="direction"
|
|
11943
|
+
>
|
|
11944
|
+
<ax-validation [rules]="validation?.rules">
|
|
11945
|
+
</ax-validation>
|
|
11946
|
+
</ax-selection-list>
|
|
11947
|
+
`,
|
|
11948
|
+
}]
|
|
11949
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectionList: [{
|
|
11950
|
+
type: ViewChild,
|
|
11951
|
+
args: [AXSelectionListComponent, { static: true }]
|
|
11952
|
+
}] } });
|
|
11953
|
+
|
|
11954
|
+
class AXSelectionPropertyEditorModule {
|
|
11955
|
+
}
|
|
11956
|
+
AXSelectionPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11957
|
+
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] });
|
|
11958
|
+
AXSelectionPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, providers: [], imports: [[CommonModule, AXSelectionListModule, FormsModule, AXValidationModule]] });
|
|
11959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectionPropertyEditorModule, decorators: [{
|
|
11960
|
+
type: NgModule,
|
|
11961
|
+
args: [{
|
|
11962
|
+
declarations: [AXSelectionListPropertyEditorComponent],
|
|
11963
|
+
imports: [CommonModule, AXSelectionListModule, FormsModule, AXValidationModule],
|
|
11964
|
+
exports: [AXSelectionListPropertyEditorComponent],
|
|
11965
|
+
providers: [],
|
|
11966
|
+
}]
|
|
11967
|
+
}] });
|
|
11968
|
+
|
|
11969
|
+
class AXSwitchComponent extends AXBaseComponent {
|
|
11970
|
+
constructor(cdr) {
|
|
11971
|
+
super();
|
|
11972
|
+
this.cdr = cdr;
|
|
11973
|
+
this.onValueChanged = new EventEmitter();
|
|
11974
|
+
this.valueChange = new EventEmitter();
|
|
11975
|
+
this.tabIndex = 0;
|
|
11976
|
+
this.size = 'md';
|
|
11977
|
+
}
|
|
11978
|
+
get value() {
|
|
11979
|
+
return this._value;
|
|
11980
|
+
}
|
|
11981
|
+
set value(v) {
|
|
11982
|
+
if (this._value !== v) {
|
|
11983
|
+
const oldValue = this._value;
|
|
11984
|
+
this._value = v;
|
|
11985
|
+
this.valueChange.emit(v);
|
|
11986
|
+
this.onValueChanged.emit({
|
|
11987
|
+
component: this,
|
|
11988
|
+
oldValue,
|
|
11989
|
+
value: v
|
|
11990
|
+
});
|
|
11991
|
+
}
|
|
11992
|
+
}
|
|
11993
|
+
focus() { }
|
|
11994
|
+
}
|
|
11995
|
+
AXSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11996
|
+
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 });
|
|
11997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchComponent, decorators: [{
|
|
11998
|
+
type: Component,
|
|
11999
|
+
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"] }]
|
|
12000
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { onValueChanged: [{
|
|
12001
|
+
type: Output
|
|
12002
|
+
}], valueChange: [{
|
|
12003
|
+
type: Output
|
|
12004
|
+
}], tabIndex: [{
|
|
12005
|
+
type: Input
|
|
12006
|
+
}], value: [{
|
|
12007
|
+
type: Input
|
|
12008
|
+
}], readonly: [{
|
|
12009
|
+
type: Input
|
|
12010
|
+
}], disabled: [{
|
|
12011
|
+
type: Input
|
|
12012
|
+
}], size: [{
|
|
12013
|
+
type: Input
|
|
12014
|
+
}] } });
|
|
12015
|
+
|
|
12016
|
+
class AXSwitchPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12017
|
+
constructor(cdr) {
|
|
12018
|
+
super(cdr);
|
|
12019
|
+
this.cdr = cdr;
|
|
12020
|
+
}
|
|
12021
|
+
handleValueChange(e) {
|
|
12022
|
+
super.handleValueChange(e.value);
|
|
12023
|
+
}
|
|
12024
|
+
ngAfterViewInit() {
|
|
12025
|
+
this.onRenderCompleted.emit();
|
|
12026
|
+
}
|
|
12027
|
+
}
|
|
12028
|
+
AXSwitchPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12029
|
+
AXSwitchPropertyEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSwitchPropertyEditorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
12030
|
+
<ax-switch (onValueChanged)="handleValueChange($event)" [value]="value"></ax-switch>
|
|
12031
|
+
`, isInline: true, components: [{ type: AXSwitchComponent, selector: "ax-switch", inputs: ["tabIndex", "value", "readonly", "disabled", "size"], outputs: ["onValueChanged", "valueChange"] }] });
|
|
12032
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorComponent, decorators: [{
|
|
12033
|
+
type: Component,
|
|
12034
|
+
args: [{
|
|
12035
|
+
template: `
|
|
12036
|
+
<ax-switch (onValueChanged)="handleValueChange($event)" [value]="value"></ax-switch>
|
|
12037
|
+
`,
|
|
12038
|
+
}]
|
|
12039
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; } });
|
|
12040
|
+
|
|
11869
12041
|
class AXSwitchModule {
|
|
11870
12042
|
}
|
|
11871
12043
|
AXSwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -11891,71 +12063,132 @@ AXSwitchPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.
|
|
|
11891
12063
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSwitchPropertyEditorModule, decorators: [{
|
|
11892
12064
|
type: NgModule,
|
|
11893
12065
|
args: [{
|
|
11894
|
-
declarations: [AXSwitchPropertyEditorComponent],
|
|
11895
|
-
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule, AXSwitchModule],
|
|
11896
|
-
exports: [AXSwitchPropertyEditorComponent],
|
|
12066
|
+
declarations: [AXSwitchPropertyEditorComponent],
|
|
12067
|
+
imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule, AXSwitchModule],
|
|
12068
|
+
exports: [AXSwitchPropertyEditorComponent],
|
|
12069
|
+
providers: []
|
|
12070
|
+
}]
|
|
12071
|
+
}], ctorParameters: function () { return []; } });
|
|
12072
|
+
|
|
12073
|
+
class AXTextPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12074
|
+
constructor(cdr) {
|
|
12075
|
+
super(cdr);
|
|
12076
|
+
this.cdr = cdr;
|
|
12077
|
+
this.clearButton = false;
|
|
12078
|
+
}
|
|
12079
|
+
handleValueChange(e) {
|
|
12080
|
+
super.handleValueChange(e.value);
|
|
12081
|
+
}
|
|
12082
|
+
ngAfterViewInit() {
|
|
12083
|
+
this.registerForValidationForm(this.textBox);
|
|
12084
|
+
this.onRenderCompleted.emit();
|
|
12085
|
+
}
|
|
12086
|
+
}
|
|
12087
|
+
AXTextPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12088
|
+
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"] }] });
|
|
12089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, decorators: [{
|
|
12090
|
+
type: Component,
|
|
12091
|
+
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>" }]
|
|
12092
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
12093
|
+
type: ViewChild,
|
|
12094
|
+
args: [AXTextBoxComponent]
|
|
12095
|
+
}] } });
|
|
12096
|
+
|
|
12097
|
+
class AXTextPropertyEditorModule {
|
|
12098
|
+
constructor() {
|
|
12099
|
+
}
|
|
12100
|
+
}
|
|
12101
|
+
AXTextPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12102
|
+
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] });
|
|
12103
|
+
AXTextPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextBoxModule, AXValidationModule]] });
|
|
12104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, decorators: [{
|
|
12105
|
+
type: NgModule,
|
|
12106
|
+
args: [{
|
|
12107
|
+
declarations: [AXTextPropertyEditorComponent],
|
|
12108
|
+
imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
|
|
12109
|
+
exports: [AXTextPropertyEditorComponent],
|
|
11897
12110
|
providers: []
|
|
11898
12111
|
}]
|
|
11899
12112
|
}], ctorParameters: function () { return []; } });
|
|
11900
12113
|
|
|
11901
|
-
class
|
|
12114
|
+
class AXTextAreaComponent extends AXBaseTextComponent {
|
|
12115
|
+
constructor(cdr, ref) {
|
|
12116
|
+
super(cdr, ref);
|
|
12117
|
+
this.cdr = cdr;
|
|
12118
|
+
this.rows = 0;
|
|
12119
|
+
this.cols = 0;
|
|
12120
|
+
this.maxLength = null;
|
|
12121
|
+
}
|
|
12122
|
+
}
|
|
12123
|
+
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 });
|
|
12124
|
+
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 });
|
|
12125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, decorators: [{
|
|
12126
|
+
type: Component,
|
|
12127
|
+
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>" }]
|
|
12128
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { rows: [{
|
|
12129
|
+
type: Input
|
|
12130
|
+
}], cols: [{
|
|
12131
|
+
type: Input
|
|
12132
|
+
}], maxLength: [{
|
|
12133
|
+
type: Input
|
|
12134
|
+
}] } });
|
|
12135
|
+
|
|
12136
|
+
class AXTextareaPropertyEditorComponent extends AXProperyEditorComponent {
|
|
11902
12137
|
constructor(cdr) {
|
|
11903
12138
|
super(cdr);
|
|
11904
12139
|
this.cdr = cdr;
|
|
11905
|
-
this.showTodayButton = true;
|
|
11906
|
-
this.selectableHoliday = true;
|
|
11907
|
-
this.type = 'gregorian';
|
|
11908
|
-
this.textAlign = null;
|
|
11909
|
-
this.placeholder = '';
|
|
11910
12140
|
this.clearButton = false;
|
|
11911
|
-
this.
|
|
11912
|
-
this.
|
|
12141
|
+
this.placeholder = null;
|
|
12142
|
+
this.rows = 3;
|
|
11913
12143
|
}
|
|
11914
12144
|
handleValueChange(e) {
|
|
11915
12145
|
super.handleValueChange(e.value);
|
|
11916
12146
|
}
|
|
11917
12147
|
ngAfterViewInit() {
|
|
11918
|
-
this.registerForValidationForm(this.
|
|
12148
|
+
this.registerForValidationForm(this.textBox);
|
|
11919
12149
|
this.onRenderCompleted.emit();
|
|
11920
12150
|
}
|
|
11921
12151
|
}
|
|
11922
|
-
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11926
|
-
<ax-validation [rules]="validation?.rules">
|
|
11927
|
-
</ax-validation>
|
|
11928
|
-
</ax-date-picker>
|
|
11929
|
-
`, 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"] }] });
|
|
11930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, decorators: [{
|
|
12152
|
+
AXTextareaPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12153
|
+
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"] }] });
|
|
12154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, decorators: [{
|
|
11931
12155
|
type: Component,
|
|
11932
|
-
args: [{
|
|
11933
|
-
|
|
11934
|
-
<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)"
|
|
11935
|
-
[type]="type" [textAlign]="textAlign" [(value)]="value">
|
|
11936
|
-
<ax-validation [rules]="validation?.rules">
|
|
11937
|
-
</ax-validation>
|
|
11938
|
-
</ax-date-picker>
|
|
11939
|
-
`,
|
|
11940
|
-
}]
|
|
11941
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { date: [{
|
|
12156
|
+
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" }]
|
|
12157
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
11942
12158
|
type: ViewChild,
|
|
11943
|
-
args: [
|
|
12159
|
+
args: [AXTextBoxComponent]
|
|
11944
12160
|
}] } });
|
|
11945
12161
|
|
|
11946
|
-
|
|
12162
|
+
const COMPONENT = [AXTextAreaComponent];
|
|
12163
|
+
const MODULES = [CommonModule];
|
|
12164
|
+
class AXTextAreaModule {
|
|
12165
|
+
}
|
|
12166
|
+
AXTextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12167
|
+
AXTextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, declarations: [AXTextAreaComponent], imports: [CommonModule], exports: [AXTextAreaComponent] });
|
|
12168
|
+
AXTextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, providers: [], imports: [[...MODULES]] });
|
|
12169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, decorators: [{
|
|
12170
|
+
type: NgModule,
|
|
12171
|
+
args: [{
|
|
12172
|
+
declarations: [...COMPONENT],
|
|
12173
|
+
imports: [...MODULES],
|
|
12174
|
+
exports: [...COMPONENT],
|
|
12175
|
+
providers: [],
|
|
12176
|
+
}]
|
|
12177
|
+
}] });
|
|
12178
|
+
|
|
12179
|
+
class AXTextareaPropertyEditorModule {
|
|
11947
12180
|
constructor() {
|
|
11948
12181
|
}
|
|
11949
12182
|
}
|
|
11950
|
-
|
|
11951
|
-
|
|
11952
|
-
|
|
11953
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type:
|
|
12183
|
+
AXTextareaPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12184
|
+
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] });
|
|
12185
|
+
AXTextareaPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextAreaModule, AXValidationModule]] });
|
|
12186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, decorators: [{
|
|
11954
12187
|
type: NgModule,
|
|
11955
12188
|
args: [{
|
|
11956
|
-
declarations: [
|
|
11957
|
-
imports: [CommonModule, FormsModule,
|
|
11958
|
-
exports: [
|
|
12189
|
+
declarations: [AXTextareaPropertyEditorComponent],
|
|
12190
|
+
imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
|
|
12191
|
+
exports: [AXTextareaPropertyEditorComponent],
|
|
11959
12192
|
providers: []
|
|
11960
12193
|
}]
|
|
11961
12194
|
}], ctorParameters: function () { return []; } });
|
|
@@ -12894,21 +13127,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12894
13127
|
type: Input
|
|
12895
13128
|
}] } });
|
|
12896
13129
|
|
|
12897
|
-
class AXTimePickerModule {
|
|
12898
|
-
}
|
|
12899
|
-
AXTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12900
|
-
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] });
|
|
12901
|
-
AXTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, providers: [], imports: [[CommonModule, FormsModule, AXButtonModule, TextMaskModule]] });
|
|
12902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, decorators: [{
|
|
12903
|
-
type: NgModule,
|
|
12904
|
-
args: [{
|
|
12905
|
-
declarations: [AXTimePickerComponent],
|
|
12906
|
-
imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule],
|
|
12907
|
-
exports: [AXTimePickerComponent],
|
|
12908
|
-
providers: [],
|
|
12909
|
-
}]
|
|
12910
|
-
}] });
|
|
12911
|
-
|
|
12912
13130
|
class AXTimePropertyEditorComponent extends AXProperyEditorComponent {
|
|
12913
13131
|
constructor(cdr) {
|
|
12914
13132
|
super(cdr);
|
|
@@ -12947,6 +13165,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12947
13165
|
args: [AXDatePickerComponent]
|
|
12948
13166
|
}] } });
|
|
12949
13167
|
|
|
13168
|
+
class AXTimePickerModule {
|
|
13169
|
+
}
|
|
13170
|
+
AXTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13171
|
+
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] });
|
|
13172
|
+
AXTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, providers: [], imports: [[CommonModule, FormsModule, AXButtonModule, TextMaskModule]] });
|
|
13173
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, decorators: [{
|
|
13174
|
+
type: NgModule,
|
|
13175
|
+
args: [{
|
|
13176
|
+
declarations: [AXTimePickerComponent],
|
|
13177
|
+
imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule],
|
|
13178
|
+
exports: [AXTimePickerComponent],
|
|
13179
|
+
providers: [],
|
|
13180
|
+
}]
|
|
13181
|
+
}] });
|
|
13182
|
+
|
|
12950
13183
|
class AXTimePropertyEditorModule {
|
|
12951
13184
|
constructor() {
|
|
12952
13185
|
}
|
|
@@ -12964,148 +13197,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
12964
13197
|
}]
|
|
12965
13198
|
}], ctorParameters: function () { return []; } });
|
|
12966
13199
|
|
|
12967
|
-
class AXTextAreaComponent extends AXBaseTextComponent {
|
|
12968
|
-
constructor(cdr, ref) {
|
|
12969
|
-
super(cdr, ref);
|
|
12970
|
-
this.cdr = cdr;
|
|
12971
|
-
this.rows = 0;
|
|
12972
|
-
this.cols = 0;
|
|
12973
|
-
this.maxLength = null;
|
|
12974
|
-
}
|
|
12975
|
-
}
|
|
12976
|
-
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 });
|
|
12977
|
-
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 });
|
|
12978
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, decorators: [{
|
|
12979
|
-
type: Component,
|
|
12980
|
-
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>" }]
|
|
12981
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { rows: [{
|
|
12982
|
-
type: Input
|
|
12983
|
-
}], cols: [{
|
|
12984
|
-
type: Input
|
|
12985
|
-
}], maxLength: [{
|
|
12986
|
-
type: Input
|
|
12987
|
-
}] } });
|
|
12988
|
-
|
|
12989
|
-
class AXTextareaPropertyEditorComponent extends AXProperyEditorComponent {
|
|
12990
|
-
constructor(cdr) {
|
|
12991
|
-
super(cdr);
|
|
12992
|
-
this.cdr = cdr;
|
|
12993
|
-
this.clearButton = false;
|
|
12994
|
-
this.placeholder = null;
|
|
12995
|
-
this.rows = 3;
|
|
12996
|
-
}
|
|
12997
|
-
handleValueChange(e) {
|
|
12998
|
-
super.handleValueChange(e.value);
|
|
12999
|
-
}
|
|
13000
|
-
ngAfterViewInit() {
|
|
13001
|
-
this.registerForValidationForm(this.textBox);
|
|
13002
|
-
this.onRenderCompleted.emit();
|
|
13003
|
-
}
|
|
13004
|
-
}
|
|
13005
|
-
AXTextareaPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
13006
|
-
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"] }] });
|
|
13007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, decorators: [{
|
|
13008
|
-
type: Component,
|
|
13009
|
-
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" }]
|
|
13010
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
13011
|
-
type: ViewChild,
|
|
13012
|
-
args: [AXTextBoxComponent]
|
|
13013
|
-
}] } });
|
|
13014
|
-
|
|
13015
|
-
const COMPONENT = [AXTextAreaComponent];
|
|
13016
|
-
const MODULES = [CommonModule];
|
|
13017
|
-
class AXTextAreaModule {
|
|
13018
|
-
}
|
|
13019
|
-
AXTextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13020
|
-
AXTextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, declarations: [AXTextAreaComponent], imports: [CommonModule], exports: [AXTextAreaComponent] });
|
|
13021
|
-
AXTextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, providers: [], imports: [[...MODULES]] });
|
|
13022
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, decorators: [{
|
|
13023
|
-
type: NgModule,
|
|
13024
|
-
args: [{
|
|
13025
|
-
declarations: [...COMPONENT],
|
|
13026
|
-
imports: [...MODULES],
|
|
13027
|
-
exports: [...COMPONENT],
|
|
13028
|
-
providers: [],
|
|
13029
|
-
}]
|
|
13030
|
-
}] });
|
|
13031
|
-
|
|
13032
|
-
class AXTextareaPropertyEditorModule {
|
|
13033
|
-
constructor() {
|
|
13034
|
-
}
|
|
13035
|
-
}
|
|
13036
|
-
AXTextareaPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13037
|
-
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] });
|
|
13038
|
-
AXTextareaPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextAreaModule, AXValidationModule]] });
|
|
13039
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, decorators: [{
|
|
13040
|
-
type: NgModule,
|
|
13041
|
-
args: [{
|
|
13042
|
-
declarations: [AXTextareaPropertyEditorComponent],
|
|
13043
|
-
imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
|
|
13044
|
-
exports: [AXTextareaPropertyEditorComponent],
|
|
13045
|
-
providers: []
|
|
13046
|
-
}]
|
|
13047
|
-
}], ctorParameters: function () { return []; } });
|
|
13048
|
-
|
|
13049
|
-
class AXCheckBoxPropertyEditorComponent extends AXProperyEditorComponent {
|
|
13050
|
-
constructor(cdr) {
|
|
13051
|
-
super(cdr);
|
|
13052
|
-
this.cdr = cdr;
|
|
13053
|
-
this.disabled = false;
|
|
13054
|
-
this.indeterminate = false;
|
|
13055
|
-
this.readonly = false;
|
|
13056
|
-
this.size = 'md';
|
|
13057
|
-
}
|
|
13058
|
-
ngAfterViewInit() {
|
|
13059
|
-
console.log('checkbox');
|
|
13060
|
-
this.registerForValidationForm(this.textBox);
|
|
13061
|
-
this.onRenderCompleted.emit();
|
|
13062
|
-
}
|
|
13063
|
-
}
|
|
13064
|
-
AXCheckBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
13065
|
-
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
|
|
13066
|
-
[disabled]="disabled"
|
|
13067
|
-
[label]="label"
|
|
13068
|
-
[size]="size"
|
|
13069
|
-
[indeterminate]="indeterminate"
|
|
13070
|
-
[readonly]="readonly"
|
|
13071
|
-
[value]="value">
|
|
13072
|
-
<ax-validation [rules]="validation?.rules">
|
|
13073
|
-
</ax-validation>
|
|
13074
|
-
</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"] }] });
|
|
13075
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxPropertyEditorComponent, decorators: [{
|
|
13076
|
-
type: Component,
|
|
13077
|
-
args: [{
|
|
13078
|
-
template: `<ax-check-box
|
|
13079
|
-
[disabled]="disabled"
|
|
13080
|
-
[label]="label"
|
|
13081
|
-
[size]="size"
|
|
13082
|
-
[indeterminate]="indeterminate"
|
|
13083
|
-
[readonly]="readonly"
|
|
13084
|
-
[value]="value">
|
|
13085
|
-
<ax-validation [rules]="validation?.rules">
|
|
13086
|
-
</ax-validation>
|
|
13087
|
-
</ax-check-box>`,
|
|
13088
|
-
}]
|
|
13089
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
|
|
13090
|
-
type: ViewChild,
|
|
13091
|
-
args: [AXCheckBoxComponent]
|
|
13092
|
-
}] } });
|
|
13093
|
-
|
|
13094
|
-
class AXCheckPropertyEditorModule {
|
|
13095
|
-
}
|
|
13096
|
-
AXCheckPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
13097
|
-
AXCheckPropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, declarations: [AXCheckBoxPropertyEditorComponent], imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule] });
|
|
13098
|
-
AXCheckPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, providers: [], imports: [[CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule]] });
|
|
13099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckPropertyEditorModule, decorators: [{
|
|
13100
|
-
type: NgModule,
|
|
13101
|
-
args: [{
|
|
13102
|
-
declarations: [AXCheckBoxPropertyEditorComponent],
|
|
13103
|
-
imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule],
|
|
13104
|
-
exports: [],
|
|
13105
|
-
providers: [],
|
|
13106
|
-
}]
|
|
13107
|
-
}] });
|
|
13108
|
-
|
|
13109
13200
|
const WDIGET_MODULES = [
|
|
13110
13201
|
AXNumberBoxPropertyEditorModule,
|
|
13111
13202
|
AXTextPropertyEditorModule,
|
|
@@ -13119,7 +13210,8 @@ const WDIGET_MODULES = [
|
|
|
13119
13210
|
AXTimePropertyEditorModule,
|
|
13120
13211
|
AXTimePropertyEditorModule,
|
|
13121
13212
|
AXTextareaPropertyEditorModule,
|
|
13122
|
-
AXCheckPropertyEditorModule
|
|
13213
|
+
AXCheckPropertyEditorModule,
|
|
13214
|
+
AXSelectionPropertyEditorModule
|
|
13123
13215
|
];
|
|
13124
13216
|
class AXProppertyEditorModule {
|
|
13125
13217
|
}
|
|
@@ -13136,12 +13228,17 @@ AXProppertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
|
13136
13228
|
AXTimePropertyEditorModule,
|
|
13137
13229
|
AXTimePropertyEditorModule,
|
|
13138
13230
|
AXTextareaPropertyEditorModule,
|
|
13139
|
-
AXCheckPropertyEditorModule,
|
|
13231
|
+
AXCheckPropertyEditorModule,
|
|
13232
|
+
AXSelectionPropertyEditorModule, i1$4.RouterModule], exports: [AXPropertyEditorRendererDirective] });
|
|
13140
13233
|
AXProppertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXProppertyEditorModule, providers: [], imports: [[
|
|
13141
13234
|
WDIGET_MODULES,
|
|
13142
13235
|
RouterModule.forChild([
|
|
13143
13236
|
{
|
|
13144
|
-
|
|
13237
|
+
path: 'ax/editors/selection',
|
|
13238
|
+
component: AXSelectionListPropertyEditorComponent
|
|
13239
|
+
},
|
|
13240
|
+
{
|
|
13241
|
+
component: AXCheckBoxPropertyEditorComponent,
|
|
13145
13242
|
path: 'ax/editors/check'
|
|
13146
13243
|
},
|
|
13147
13244
|
{
|
|
@@ -13196,7 +13293,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
13196
13293
|
WDIGET_MODULES,
|
|
13197
13294
|
RouterModule.forChild([
|
|
13198
13295
|
{
|
|
13199
|
-
|
|
13296
|
+
path: 'ax/editors/selection',
|
|
13297
|
+
component: AXSelectionListPropertyEditorComponent
|
|
13298
|
+
},
|
|
13299
|
+
{
|
|
13300
|
+
component: AXCheckBoxPropertyEditorComponent,
|
|
13200
13301
|
path: 'ax/editors/check'
|
|
13201
13302
|
},
|
|
13202
13303
|
{
|