@acorex/components 4.2.20 → 4.2.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3090,7 +3090,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
3090
3090
 
3091
3091
  class AXCheckBoxItemClick extends AXHtmlEvent {
3092
3092
  }
3093
- class AXCheckBoxComponent extends AXBaseComponent {
3093
+ class AXCheckBoxComponent extends AXValidatableComponent {
3094
3094
  constructor(cdr, ref) {
3095
3095
  super();
3096
3096
  this.cdr = cdr;
@@ -3152,10 +3152,10 @@ class AXCheckBoxComponent extends AXBaseComponent {
3152
3152
  }
3153
3153
  }
3154
3154
  AXCheckBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
3155
- AXCheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: { readonly: "readonly", disabled: "disabled", size: "size", label: "label", tabIndex: "tabIndex", indeterminate: "indeterminate", value: "value" }, outputs: { onValueChanged: "onValueChanged", valueChange: "valueChange", onClick: "onClick" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!-- <label class=\"ax checkbox {{size}}\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\"\r\n (click)=\"handleClick($event)\">\r\n {{ label }}\r\n <input #input type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\"\r\n [disabled]=\"disabled || readonly\" />\r\n <span class=\"checkmark\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"></span>\r\n\r\n</label> -->\r\n\r\n\r\n<!-- [(ngModel)]=\"value\" -->\r\n<!-- (click)=\"handleClick($event)\" -->\r\n\r\n<label class=\"ax-checkbox-container\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\">\r\n\r\n <input #input class=\"ax-checkbox\" type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [class.checked]=\"value\"\r\n [checked]=\"value\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\" (click)=\"handleClick($event)\"\r\n [disabled]=\"disabled || readonly\" />\r\n\r\n\r\n <span>{{ label ? label : '&nbsp;' }}</span>\r\n</label>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3155
+ AXCheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: { readonly: "readonly", disabled: "disabled", size: "size", label: "label", tabIndex: "tabIndex", indeterminate: "indeterminate", value: "value" }, outputs: { onValueChanged: "onValueChanged", valueChange: "valueChange", onClick: "onClick" }, providers: [{ provide: AXValidatableComponent, useExisting: AXCheckBoxComponent }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!-- <label class=\"ax checkbox {{size}}\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\"\r\n (click)=\"handleClick($event)\">\r\n {{ label }}\r\n <input #input type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\"\r\n [disabled]=\"disabled || readonly\" />\r\n <span class=\"checkmark\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"></span>\r\n\r\n</label> -->\r\n\r\n\r\n<!-- [(ngModel)]=\"value\" -->\r\n<!-- (click)=\"handleClick($event)\" -->\r\n\r\n<label class=\"ax-checkbox-container\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\">\r\n\r\n <input #input class=\"ax-checkbox\" type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [class.checked]=\"value\"\r\n [checked]=\"value\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\" (click)=\"handleClick($event)\"\r\n [disabled]=\"disabled || readonly\" />\r\n\r\n\r\n <span>{{ label ? label : '&nbsp;' }}</span>\r\n</label>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3156
3156
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXCheckBoxComponent, decorators: [{
3157
3157
  type: Component,
3158
- args: [{ selector: 'ax-check-box', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <label class=\"ax checkbox {{size}}\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\"\r\n (click)=\"handleClick($event)\">\r\n {{ label }}\r\n <input #input type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\"\r\n [disabled]=\"disabled || readonly\" />\r\n <span class=\"checkmark\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"></span>\r\n\r\n</label> -->\r\n\r\n\r\n<!-- [(ngModel)]=\"value\" -->\r\n<!-- (click)=\"handleClick($event)\" -->\r\n\r\n<label class=\"ax-checkbox-container\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\">\r\n\r\n <input #input class=\"ax-checkbox\" type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [class.checked]=\"value\"\r\n [checked]=\"value\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\" (click)=\"handleClick($event)\"\r\n [disabled]=\"disabled || readonly\" />\r\n\r\n\r\n <span>{{ label ? label : '&nbsp;' }}</span>\r\n</label>" }]
3158
+ args: [{ selector: 'ax-check-box', encapsulation: ViewEncapsulation.None, providers: [{ provide: AXValidatableComponent, useExisting: AXCheckBoxComponent }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- <label class=\"ax checkbox {{size}}\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\"\r\n (click)=\"handleClick($event)\">\r\n {{ label }}\r\n <input #input type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [checked]=\"value\"\r\n [disabled]=\"disabled || readonly\" />\r\n <span class=\"checkmark\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\"></span>\r\n\r\n</label> -->\r\n\r\n\r\n<!-- [(ngModel)]=\"value\" -->\r\n<!-- (click)=\"handleClick($event)\" -->\r\n\r\n<label class=\"ax-checkbox-container\" for=\"{{uid}}\" [ngClass]=\"{ 'disabled': disabled, 'readonly': readonly }\">\r\n\r\n <input #input class=\"ax-checkbox\" type=\"checkbox\" id=\"{{uid}}\" [readonly]=\"readonly\" [class.checked]=\"value\"\r\n [checked]=\"value\" [ngClass]=\"{'indeterminate': indeterminate && value == null}\" (click)=\"handleClick($event)\"\r\n [disabled]=\"disabled || readonly\" />\r\n\r\n\r\n <span>{{ label ? label : '&nbsp;' }}</span>\r\n</label>" }]
3159
3159
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { input: [{
3160
3160
  type: ViewChild,
3161
3161
  args: ['input', { static: true }]
@@ -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 AXBaseComponent {
3450
+ class AXSelectionListComponent extends AXValidatableComponent {
3451
3451
  constructor(cdr) {
3452
3452
  super();
3453
3453
  this.cdr = cdr;
@@ -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);
@@ -10287,16 +10288,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
10287
10288
  }] } });
10288
10289
 
10289
10290
  class AXSearchBarComponent {
10290
- constructor() {
10291
+ constructor(ref) {
10292
+ this.ref = ref;
10291
10293
  this.size = 'md';
10292
10294
  this.disabled = false;
10293
- this.items = [];
10295
+ this.rtl = AXConfig.get('layout.rtl');
10296
+ this.onValueChange = new EventEmitter();
10294
10297
  this.onSearchValue = new EventEmitter();
10295
10298
  this._items = [];
10296
10299
  this._filterItems = [];
10297
10300
  this._filterItemsClone = [];
10298
10301
  this._context = {};
10299
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
+ }
10300
10319
  handleButtonClick() {
10301
10320
  this.dropdown.toggle();
10302
10321
  }
@@ -10311,6 +10330,7 @@ class AXSearchBarComponent {
10311
10330
  value: e.value
10312
10331
  });
10313
10332
  }
10333
+ this.onValueChange.emit(e);
10314
10334
  }
10315
10335
  handleItemRemoveClick(item) {
10316
10336
  this._editors.forEach(e => {
@@ -10321,7 +10341,7 @@ class AXSearchBarComponent {
10321
10341
  this._filterItems = this._filterItems.filter((el) => el.name != item.name);
10322
10342
  }
10323
10343
  search() {
10324
- this._filterItems = JSON.parse(JSON.stringify(this._filterItemsClone));
10344
+ this._filterItems = JSON.parse(JSON.stringify(this._filterItemsClone.filter((el) => el.value != null && el.value != '')));
10325
10345
  this.handleButtonClick();
10326
10346
  this.onSearchValue.emit(this._filterItems);
10327
10347
  }
@@ -10332,6 +10352,7 @@ class AXSearchBarComponent {
10332
10352
  this._filterItems = [];
10333
10353
  this._filterItemsClone = [];
10334
10354
  this.handleButtonClick();
10355
+ this.onSearchValue.emit(this._filterItems);
10335
10356
  }
10336
10357
  renderCol(e) {
10337
10358
  let className = [];
@@ -10359,15 +10380,14 @@ class AXSearchBarComponent {
10359
10380
  return className.toString().replace(/,/, ' ');
10360
10381
  }
10361
10382
  ngOnInit() {
10362
- this._items = _.chain(this.items).groupBy(x => x.property.row).map((value, key) => ({ row: key, items: value })).value();
10363
10383
  }
10364
10384
  }
10365
- AXSearchBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10366
- AXSearchBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: AXSearchBarComponent, selector: "ax-search-bar", inputs: { size: "size", disabled: "disabled", items: "items" }, outputs: { onSearchValue: "onSearchValue" }, viewQueries: [{ propertyName: "dropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }, { propertyName: "_editors", predicate: AXPropertyEditorRendererDirective, descendants: true }], ngImport: i0, template: "<ax-drop-down [fitParent]=\"true\" [size]=\"size\" [showDropDownButton]=\"false\" icon=\"far fa-sliders-h\" #dropdown\r\n maxHeight=\"unset\">\r\n <ng-container start>\r\n <ng-content select=\"[start]\">\r\n </ng-content>\r\n </ng-container>\r\n <ng-container header>\r\n <div class=\"ax chips-container\">\r\n <div class=\"chips\" *ngFor=\"let item of _filterItems\">\r\n <span class=\"chips-text\">\r\n <b>{{item.title}} :</b> {{item.value}}\r\n </span>\r\n <span class=\"close-icon\" (click)=\"handleItemRemoveClick(item)\">\r\n <i class=\"far fa-times close\"></i>\r\n </span>\r\n </div>\r\n </div>\r\n </ng-container>\r\n <ng-container panel>\r\n <div class=\"panel-box\">\r\n <div *ngFor=\"let item of _items\" class=\"row\">\r\n <div *ngFor=\"let prop of item.items\" class=\"{{renderCol(prop.property.col)}}\">\r\n <ax-form-group>\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 </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()\"></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: AXFormGroupComponent, selector: "ax-form-group", inputs: ["size"] }, { 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: AXPropertyEditorRendererDirective, selector: "[ax-property-editor-renderer]", inputs: ["property", "validationForm", "context", "host", "groupId"], outputs: ["onValueChange"] }], pipes: { "trans": i1$2.AXTranslatorPipe } });
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 });
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 } });
10367
10387
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSearchBarComponent, decorators: [{
10368
10388
  type: Component,
10369
- 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 <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 </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()\"></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"] }]
10370
- }], ctorParameters: function () { return []; }, propDecorators: { 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: [{
10371
10391
  type: ViewChild,
10372
10392
  args: ['dropdown', { static: true }]
10373
10393
  }], _editors: [{
@@ -10379,6 +10399,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
10379
10399
  type: Input
10380
10400
  }], items: [{
10381
10401
  type: Input
10402
+ }], rtl: [{
10403
+ type: Input
10404
+ }], onValueChange: [{
10405
+ type: Output
10382
10406
  }], onSearchValue: [{
10383
10407
  type: Output
10384
10408
  }] } });
@@ -10481,199 +10505,75 @@ function propertyEditor(options) {
10481
10505
  };
10482
10506
  }
10483
10507
 
10484
- class AXTextPropertyEditorComponent extends AXProperyEditorComponent {
10485
- constructor(cdr) {
10486
- super(cdr);
10487
- this.cdr = cdr;
10488
- this.clearButton = false;
10489
- }
10490
- handleValueChange(e) {
10491
- super.handleValueChange(e.value);
10492
- }
10493
- ngAfterViewInit() {
10494
- this.registerForValidationForm(this.textBox);
10495
- this.onRenderCompleted.emit();
10496
- }
10497
- }
10498
- AXTextPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
10499
- 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"] }] });
10500
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorComponent, decorators: [{
10501
- type: Component,
10502
- 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>" }]
10503
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
10504
- type: ViewChild,
10505
- args: [AXTextBoxComponent]
10506
- }] } });
10507
-
10508
- class AXTextPropertyEditorModule {
10509
- constructor() {
10510
- }
10511
- }
10512
- AXTextPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10513
- 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] });
10514
- AXTextPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextBoxModule, AXValidationModule]] });
10515
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextPropertyEditorModule, decorators: [{
10516
- type: NgModule,
10517
- args: [{
10518
- declarations: [AXTextPropertyEditorComponent],
10519
- imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
10520
- exports: [AXTextPropertyEditorComponent],
10521
- providers: []
10522
- }]
10523
- }], ctorParameters: function () { return []; } });
10524
-
10525
- class AXNumberBoxPropertyEditorComponent extends AXProperyEditorComponent {
10508
+ class AXCheckBoxPropertyEditorComponent extends AXProperyEditorComponent {
10526
10509
  constructor(cdr) {
10527
10510
  super(cdr);
10528
10511
  this.cdr = cdr;
10529
- this.showSeparator = true;
10530
- this.decimalNumber = 2;
10531
- this.minValue = null;
10532
- this.maxValue = null;
10533
- this.clearButton = false;
10512
+ this.disabled = false;
10513
+ this.indeterminate = false;
10514
+ this.readonly = false;
10515
+ this.size = 'md';
10534
10516
  }
10535
10517
  handleValueChange(e) {
10536
10518
  super.handleValueChange(e.value);
10537
10519
  }
10538
10520
  ngAfterViewInit() {
10539
- this.registerForValidationForm(this.textBox);
10521
+ this.registerForValidationForm(this.checkBox);
10540
10522
  this.onRenderCompleted.emit();
10541
10523
  }
10542
10524
  }
10543
- AXNumberBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
10544
- 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: `
10545
- <ax-number-box (onValueChanged)="handleValueChange($event)"
10546
- [value]="value"
10547
- [showSeparator]="showSeparator"
10548
- [decimalNumber]="decimalNumber"
10549
- [min]="minValue"
10550
- [max]="maxValue"
10551
- [allowClear]="clearButton"
10552
- >
10553
- <ax-validation [rules]="validation?.rules">
10554
- </ax-validation>
10555
- </ax-number-box>
10556
- `, 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"] }] });
10557
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorComponent, decorators: [{
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: [{
10558
10541
  type: Component,
10559
10542
  args: [{
10560
10543
  template: `
10561
- <ax-number-box (onValueChanged)="handleValueChange($event)"
10562
- [value]="value"
10563
- [showSeparator]="showSeparator"
10564
- [decimalNumber]="decimalNumber"
10565
- [min]="minValue"
10566
- [max]="maxValue"
10567
- [allowClear]="clearButton"
10568
- >
10569
- <ax-validation [rules]="validation?.rules">
10570
- </ax-validation>
10571
- </ax-number-box>
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>
10572
10556
  `,
10573
10557
  }]
10574
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
10575
- type: ViewChild,
10576
- args: [AXNumberBoxComponent]
10577
- }] } });
10578
-
10579
- class AXNumberBoxPropertyEditorModule {
10580
- constructor() {
10581
- }
10582
- }
10583
- AXNumberBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10584
- 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] });
10585
- AXNumberBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule]] });
10586
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXNumberBoxPropertyEditorModule, decorators: [{
10587
- type: NgModule,
10588
- args: [{
10589
- declarations: [AXNumberBoxPropertyEditorComponent],
10590
- imports: [CommonModule, FormsModule, AXNumberBoxModule, AXValidationModule],
10591
- exports: [AXNumberBoxPropertyEditorComponent],
10592
- providers: []
10593
- }]
10594
- }], ctorParameters: function () { return []; } });
10595
-
10596
- class AXSelectBoxPropertyEditorComponent extends AXProperyEditorComponent {
10597
- constructor(cdr) {
10598
- super(cdr);
10599
- this.cdr = cdr;
10600
- this.valueField = 'id';
10601
- this.textField = 'text';
10602
- this.selectionMode = 'single';
10603
- this.selectionDataMode = 'value';
10604
- this.allowSearch = true;
10605
- this.allowNull = false;
10606
- this.disabled = false;
10607
- this.items = [];
10608
- this.remoteOperation = false;
10609
- this.provideData = (e) => {
10610
- return new Promise((resolve) => {
10611
- const func = () => {
10612
- if (Array.isArray(this.items)) {
10613
- resolve(this.items.slice());
10614
- }
10615
- else if (typeof this.items === 'function') {
10616
- const a = Object.assign(e, { sender: this });
10617
- resolve(this.items(a));
10618
- }
10619
- else {
10620
- resolve([]);
10621
- }
10622
- };
10623
- const intVal = setInterval(() => {
10624
- if (this.initiated) {
10625
- func();
10626
- clearInterval(intVal);
10627
- }
10628
- }, 50);
10629
- });
10630
- };
10631
- }
10632
- get filter() {
10633
- return this._filter;
10634
- }
10635
- set filter(v) {
10636
- var _a;
10637
- this._filter = v;
10638
- if (this.value && this.initiated) {
10639
- this.value = null;
10640
- (_a = this.selectBox) === null || _a === void 0 ? void 0 : _a.refresh();
10641
- }
10642
- }
10643
- handleValueChange(e) {
10644
- super.handleValueChange(e.selectedValues);
10645
- }
10646
- ngAfterViewInit() {
10647
- this.registerForValidationForm(this.selectBox);
10648
- this.onRenderCompleted.emit();
10649
- }
10650
- }
10651
- AXSelectBoxPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
10652
- 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"] }] });
10653
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorComponent, decorators: [{
10654
- type: Component,
10655
- 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>" }]
10656
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { selectBox: [{
10558
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { checkBox: [{
10657
10559
  type: ViewChild,
10658
- args: [AXSelectBoxComponent, { static: true }]
10560
+ args: [AXCheckBoxComponent, { static: true }]
10659
10561
  }] } });
10660
10562
 
10661
- class AXSelectBoxPropertyEditorModule {
10662
- constructor() {
10663
- }
10563
+ class AXCheckPropertyEditorModule {
10664
10564
  }
10665
- AXSelectBoxPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10666
- 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] });
10667
- AXSelectBoxPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule]] });
10668
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXSelectBoxPropertyEditorModule, decorators: [{
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: [{
10669
10569
  type: NgModule,
10670
10570
  args: [{
10671
- declarations: [AXSelectBoxPropertyEditorComponent],
10672
- imports: [CommonModule, FormsModule, AXSelectBoxModule, AXDataSourceModule, AXValidationModule],
10673
- exports: [AXSelectBoxPropertyEditorComponent],
10674
- providers: []
10571
+ declarations: [AXCheckBoxPropertyEditorComponent],
10572
+ imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule],
10573
+ exports: [AXCheckBoxPropertyEditorComponent],
10574
+ providers: [],
10675
10575
  }]
10676
- }], ctorParameters: function () { return []; } });
10576
+ }] });
10677
10577
 
10678
10578
  class AXColorBoxComponent extends AXValidatableComponent {
10679
10579
  constructor() {
@@ -11163,199 +11063,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
11163
11063
  type: Input
11164
11064
  }] } });
11165
11065
 
11166
- class AXRangePropertyEditorComponent extends AXProperyEditorComponent {
11167
- constructor(cdr, popupService) {
11066
+ class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
11067
+ constructor(cdr) {
11168
11068
  super(cdr);
11169
11069
  this.cdr = cdr;
11170
- this.popupService = popupService;
11171
- this.ranges = [];
11172
- this.showSeparator = true;
11173
- this.decimalNumber = 2;
11174
- }
11175
- ngOnInit() {
11176
- this.ranges = this.value ? JSON.parse(JSON.stringify(this.value)) : [];
11177
- this.cdr.detectChanges();
11178
11070
  }
11179
11071
  ngAfterViewInit() {
11180
- this.onRenderCompleted.emit();
11181
- }
11182
- // getRanges() {
11183
- // return this.ranges.sort((a, b) => a.minValue - b.minValue);
11184
- // }
11185
- onFormInit(e) {
11186
- this.form = e.component;
11187
- }
11188
- handleEditClick(item) {
11189
- this.editRow = Object.assign({}, item);
11190
- const popup = this.popupService.open(this.tplEdit, {
11191
- size: 'sm',
11192
- footerButtons: [
11193
- {
11194
- name: 'confirm',
11195
- text: AXTranslator.get('common.confirm'),
11196
- style: 'success',
11197
- submitBehavior: true,
11198
- cancelBehavior: false,
11199
- onClick: () => {
11200
- this.form.validate().then(c => {
11201
- if (c.result) {
11202
- super.handleValueChange(this.ranges);
11203
- Object.assign(item, this.editRow);
11204
- popup.close();
11205
- this.editRow = null;
11206
- this.cdr.detectChanges();
11207
- }
11208
- });
11209
- }
11210
- },
11211
- {
11212
- name: 'cancel',
11213
- text: AXTranslator.get('common.cancel'),
11214
- style: 'danger blank',
11215
- submitBehavior: false,
11216
- cancelBehavior: true,
11217
- onClick: () => {
11218
- popup.close();
11219
- this.editRow = null;
11220
- this.cdr.detectChanges();
11221
- }
11222
- }
11223
- ],
11224
- title: AXTranslator.get('common.edit')
11225
- });
11226
- }
11227
- handleAddClick() {
11228
- var _a;
11229
- const min = ((_a = this.ranges) === null || _a === void 0 ? void 0 : _a.length) ? Math.max(...this.ranges.map(c => c.maxValue)) : 0;
11230
- this.editRow = {
11231
- title: '',
11232
- minValue: min,
11233
- maxValue: min + 1,
11234
- color: null
11235
- };
11236
- const popup = this.popupService.open(this.tplEdit, {
11237
- title: AXTranslator.get('common.add-item'),
11238
- size: 'sm',
11239
- footerButtons: [
11240
- {
11241
- name: 'confirm',
11242
- text: AXTranslator.get('common.confirm'),
11243
- style: 'success',
11244
- submitBehavior: true,
11245
- cancelBehavior: false,
11246
- onClick: () => {
11247
- this.form.validate().then(c => {
11248
- if (c.result) {
11249
- super.handleValueChange(this.ranges);
11250
- this.ranges.push(this.editRow);
11251
- popup.close();
11252
- this.editRow = null;
11253
- this.cdr.detectChanges();
11254
- }
11255
- });
11256
- }
11257
- },
11258
- {
11259
- name: 'cancel',
11260
- text: AXTranslator.get('common.cancel'),
11261
- style: 'danger blank',
11262
- submitBehavior: false,
11263
- cancelBehavior: true,
11264
- onClick: () => {
11265
- popup.close();
11266
- this.editRow = null;
11267
- this.cdr.detectChanges();
11268
- }
11269
- }
11270
- ],
11271
- });
11272
- this.cdr.detectChanges();
11273
- }
11274
- handleRemoveClick(item) {
11275
- this.ranges = this.ranges.filter(c => c.minValue !== item.minValue);
11276
- super.handleValueChange(this.ranges);
11277
- }
11278
- }
11279
- 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 });
11280
- 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 });
11281
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorComponent, decorators: [{
11282
- type: Component,
11283
- 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"] }]
11284
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: AXPopupService }]; }, propDecorators: { tplEdit: [{
11285
- type: ViewChild,
11286
- args: ['tplEdit']
11287
- }] } });
11288
-
11289
- class AXColorPickerModule {
11290
- }
11291
- AXColorPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11292
- 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] });
11293
- AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule]] });
11294
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXColorPickerModule, decorators: [{
11295
- type: NgModule,
11296
- args: [{
11297
- declarations: [AXColorPickerComponent, AXColorBoxComponent],
11298
- imports: [CommonModule, FormsModule, AXDropdownModule, AXValidationModule, AXTextBoxModule],
11299
- exports: [AXColorPickerComponent, AXColorBoxComponent],
11300
- providers: []
11301
- }]
11302
- }] });
11303
-
11304
- class AXRangePropertyEditorModule {
11305
- constructor() {
11306
- }
11307
- }
11308
- AXRangePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11309
- AXRangePropertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, declarations: [AXRangePropertyEditorComponent], imports: [CommonModule,
11310
- FormsModule,
11311
- AXTranslatorModule,
11312
- AXTextBoxModule,
11313
- AXNumberBoxModule,
11314
- AXColorPickerModule,
11315
- AXLabelModule,
11316
- AXPageModule,
11317
- AXValidationModule,
11318
- AXButtonModule], exports: [AXRangePropertyEditorComponent] });
11319
- AXRangePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, providers: [], imports: [[
11320
- CommonModule,
11321
- FormsModule,
11322
- AXTranslatorModule,
11323
- AXTextBoxModule,
11324
- AXNumberBoxModule,
11325
- AXColorPickerModule,
11326
- AXLabelModule,
11327
- AXPageModule,
11328
- AXValidationModule,
11329
- AXButtonModule
11330
- ]] });
11331
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXRangePropertyEditorModule, decorators: [{
11332
- type: NgModule,
11333
- args: [{
11334
- declarations: [AXRangePropertyEditorComponent],
11335
- imports: [
11336
- CommonModule,
11337
- FormsModule,
11338
- AXTranslatorModule,
11339
- AXTextBoxModule,
11340
- AXNumberBoxModule,
11341
- AXColorPickerModule,
11342
- AXLabelModule,
11343
- AXPageModule,
11344
- AXValidationModule,
11345
- AXButtonModule
11346
- ],
11347
- exports: [AXRangePropertyEditorComponent],
11348
- providers: []
11349
- }]
11350
- }], ctorParameters: function () { return []; } });
11351
-
11352
- class AXColorPropertyEditorComponent extends AXProperyEditorComponent {
11353
- constructor(cdr) {
11354
- super(cdr);
11355
- this.cdr = cdr;
11356
- }
11357
- ngAfterViewInit() {
11358
- this.registerForValidationForm(this.textBox);
11072
+ this.registerForValidationForm(this.textBox);
11359
11073
  this.onRenderCompleted.emit();
11360
11074
  }
11361
11075
  }
@@ -11381,6 +11095,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
11381
11095
  args: [AXColorPickerComponent]
11382
11096
  }] } });
11383
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
+
11384
11113
  class AXColorPropertyEditorModule {
11385
11114
  constructor() {
11386
11115
  }
@@ -11768,7 +11497,474 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
11768
11497
  exports: [AXConditionalColorPropertyEditorComponent],
11769
11498
  providers: []
11770
11499
  }]
11771
- }], ctorParameters: function () { return []; } });
11500
+ }], ctorParameters: function () { return []; } });
11501
+
11502
+ class AXDatePropertyEditorComponent extends AXProperyEditorComponent {
11503
+ constructor(cdr) {
11504
+ super(cdr);
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';
11514
+ }
11515
+ handleValueChange(e) {
11516
+ super.handleValueChange(e.value);
11517
+ }
11518
+ ngAfterViewInit() {
11519
+ this.registerForValidationForm(this.date);
11520
+ this.onRenderCompleted.emit();
11521
+ }
11522
+ }
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: [{
11532
+ type: Component,
11533
+ args: [{
11534
+ template: `
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
+ `,
11541
+ }]
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
+ }] });
11772
11968
 
11773
11969
  class AXSwitchComponent extends AXBaseComponent {
11774
11970
  constructor(cdr) {
@@ -11874,64 +12070,125 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
11874
12070
  }]
11875
12071
  }], ctorParameters: function () { return []; } });
11876
12072
 
11877
- class AXDatePropertyEditorComponent extends AXProperyEditorComponent {
12073
+ class AXTextPropertyEditorComponent extends AXProperyEditorComponent {
11878
12074
  constructor(cdr) {
11879
12075
  super(cdr);
11880
12076
  this.cdr = cdr;
11881
- this.showTodayButton = true;
11882
- this.selectableHoliday = true;
11883
- this.type = 'gregorian';
11884
- this.textAlign = null;
11885
- this.placeholder = '';
11886
12077
  this.clearButton = false;
11887
- this.showToday = false;
11888
- this.size = 'md';
11889
12078
  }
11890
12079
  handleValueChange(e) {
11891
12080
  super.handleValueChange(e.value);
11892
12081
  }
11893
12082
  ngAfterViewInit() {
11894
- this.registerForValidationForm(this.date);
12083
+ this.registerForValidationForm(this.textBox);
11895
12084
  this.onRenderCompleted.emit();
11896
12085
  }
11897
12086
  }
11898
- AXDatePropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
11899
- 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: `
11900
- <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)"
11901
- [type]="type" [textAlign]="textAlign" [(value)]="value">
11902
- <ax-validation [rules]="validation?.rules">
11903
- </ax-validation>
11904
- </ax-date-picker>
11905
- `, 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"] }] });
11906
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorComponent, decorators: [{
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: [{
11907
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,
11908
12106
  args: [{
11909
- template: `
11910
- <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)"
11911
- [type]="type" [textAlign]="textAlign" [(value)]="value">
11912
- <ax-validation [rules]="validation?.rules">
11913
- </ax-validation>
11914
- </ax-date-picker>
11915
- `,
12107
+ declarations: [AXTextPropertyEditorComponent],
12108
+ imports: [CommonModule, FormsModule, AXTextBoxModule, AXValidationModule],
12109
+ exports: [AXTextPropertyEditorComponent],
12110
+ providers: []
11916
12111
  }]
11917
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { date: [{
12112
+ }], ctorParameters: function () { return []; } });
12113
+
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 {
12137
+ constructor(cdr) {
12138
+ super(cdr);
12139
+ this.cdr = cdr;
12140
+ this.clearButton = false;
12141
+ this.placeholder = null;
12142
+ this.rows = 3;
12143
+ }
12144
+ handleValueChange(e) {
12145
+ super.handleValueChange(e.value);
12146
+ }
12147
+ ngAfterViewInit() {
12148
+ this.registerForValidationForm(this.textBox);
12149
+ this.onRenderCompleted.emit();
12150
+ }
12151
+ }
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: [{
12155
+ type: Component,
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: [{
11918
12158
  type: ViewChild,
11919
- args: [AXDatePickerComponent]
12159
+ args: [AXTextBoxComponent]
11920
12160
  }] } });
11921
12161
 
11922
- class AXDatePropertyEditorModule {
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 {
11923
12180
  constructor() {
11924
12181
  }
11925
12182
  }
11926
- AXDatePropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11927
- 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] });
11928
- AXDatePropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXDatePickerModule, AXValidationModule]] });
11929
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXDatePropertyEditorModule, decorators: [{
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: [{
11930
12187
  type: NgModule,
11931
12188
  args: [{
11932
- declarations: [AXDatePropertyEditorComponent],
11933
- imports: [CommonModule, FormsModule, AXDatePickerModule, AXValidationModule],
11934
- exports: [AXDatePropertyEditorComponent],
12189
+ declarations: [AXTextareaPropertyEditorComponent],
12190
+ imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
12191
+ exports: [AXTextareaPropertyEditorComponent],
11935
12192
  providers: []
11936
12193
  }]
11937
12194
  }], ctorParameters: function () { return []; } });
@@ -12870,21 +13127,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
12870
13127
  type: Input
12871
13128
  }] } });
12872
13129
 
12873
- class AXTimePickerModule {
12874
- }
12875
- AXTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12876
- 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] });
12877
- AXTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, providers: [], imports: [[CommonModule, FormsModule, AXButtonModule, TextMaskModule]] });
12878
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTimePickerModule, decorators: [{
12879
- type: NgModule,
12880
- args: [{
12881
- declarations: [AXTimePickerComponent],
12882
- imports: [CommonModule, FormsModule, AXButtonModule, TextMaskModule],
12883
- exports: [AXTimePickerComponent],
12884
- providers: [],
12885
- }]
12886
- }] });
12887
-
12888
13130
  class AXTimePropertyEditorComponent extends AXProperyEditorComponent {
12889
13131
  constructor(cdr) {
12890
13132
  super(cdr);
@@ -12923,6 +13165,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
12923
13165
  args: [AXDatePickerComponent]
12924
13166
  }] } });
12925
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
+
12926
13183
  class AXTimePropertyEditorModule {
12927
13184
  constructor() {
12928
13185
  }
@@ -12940,88 +13197,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
12940
13197
  }]
12941
13198
  }], ctorParameters: function () { return []; } });
12942
13199
 
12943
- class AXTextAreaComponent extends AXBaseTextComponent {
12944
- constructor(cdr, ref) {
12945
- super(cdr, ref);
12946
- this.cdr = cdr;
12947
- this.rows = 0;
12948
- this.cols = 0;
12949
- this.maxLength = null;
12950
- }
12951
- }
12952
- 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 });
12953
- 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 });
12954
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaComponent, decorators: [{
12955
- type: Component,
12956
- 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>" }]
12957
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { rows: [{
12958
- type: Input
12959
- }], cols: [{
12960
- type: Input
12961
- }], maxLength: [{
12962
- type: Input
12963
- }] } });
12964
-
12965
- class AXTextareaPropertyEditorComponent extends AXProperyEditorComponent {
12966
- constructor(cdr) {
12967
- super(cdr);
12968
- this.cdr = cdr;
12969
- this.clearButton = false;
12970
- this.placeholder = null;
12971
- this.rows = 3;
12972
- }
12973
- handleValueChange(e) {
12974
- super.handleValueChange(e.value);
12975
- }
12976
- ngAfterViewInit() {
12977
- this.registerForValidationForm(this.textBox);
12978
- this.onRenderCompleted.emit();
12979
- }
12980
- }
12981
- AXTextareaPropertyEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
12982
- 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"] }] });
12983
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorComponent, decorators: [{
12984
- type: Component,
12985
- 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" }]
12986
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { textBox: [{
12987
- type: ViewChild,
12988
- args: [AXTextBoxComponent]
12989
- }] } });
12990
-
12991
- const COMPONENT = [AXTextAreaComponent];
12992
- const MODULES = [CommonModule];
12993
- class AXTextAreaModule {
12994
- }
12995
- AXTextAreaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12996
- AXTextAreaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, declarations: [AXTextAreaComponent], imports: [CommonModule], exports: [AXTextAreaComponent] });
12997
- AXTextAreaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, providers: [], imports: [[...MODULES]] });
12998
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextAreaModule, decorators: [{
12999
- type: NgModule,
13000
- args: [{
13001
- declarations: [...COMPONENT],
13002
- imports: [...MODULES],
13003
- exports: [...COMPONENT],
13004
- providers: [],
13005
- }]
13006
- }] });
13007
-
13008
- class AXTextareaPropertyEditorModule {
13009
- constructor() {
13010
- }
13011
- }
13012
- AXTextareaPropertyEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
13013
- 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] });
13014
- AXTextareaPropertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, providers: [], imports: [[CommonModule, FormsModule, AXTextAreaModule, AXValidationModule]] });
13015
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXTextareaPropertyEditorModule, decorators: [{
13016
- type: NgModule,
13017
- args: [{
13018
- declarations: [AXTextareaPropertyEditorComponent],
13019
- imports: [CommonModule, FormsModule, AXTextAreaModule, AXValidationModule],
13020
- exports: [AXTextareaPropertyEditorComponent],
13021
- providers: []
13022
- }]
13023
- }], ctorParameters: function () { return []; } });
13024
-
13025
13200
  const WDIGET_MODULES = [
13026
13201
  AXNumberBoxPropertyEditorModule,
13027
13202
  AXTextPropertyEditorModule,
@@ -13034,7 +13209,9 @@ const WDIGET_MODULES = [
13034
13209
  AXDatePropertyEditorModule,
13035
13210
  AXTimePropertyEditorModule,
13036
13211
  AXTimePropertyEditorModule,
13037
- AXTextareaPropertyEditorModule
13212
+ AXTextareaPropertyEditorModule,
13213
+ AXCheckPropertyEditorModule,
13214
+ AXSelectionPropertyEditorModule
13038
13215
  ];
13039
13216
  class AXProppertyEditorModule {
13040
13217
  }
@@ -13050,10 +13227,20 @@ AXProppertyEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
13050
13227
  AXDatePropertyEditorModule,
13051
13228
  AXTimePropertyEditorModule,
13052
13229
  AXTimePropertyEditorModule,
13053
- AXTextareaPropertyEditorModule, i1$4.RouterModule], exports: [AXPropertyEditorRendererDirective] });
13230
+ AXTextareaPropertyEditorModule,
13231
+ AXCheckPropertyEditorModule,
13232
+ AXSelectionPropertyEditorModule, i1$4.RouterModule], exports: [AXPropertyEditorRendererDirective] });
13054
13233
  AXProppertyEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AXProppertyEditorModule, providers: [], imports: [[
13055
13234
  WDIGET_MODULES,
13056
13235
  RouterModule.forChild([
13236
+ {
13237
+ path: 'ax/editors/selection',
13238
+ component: AXSelectionListPropertyEditorComponent
13239
+ },
13240
+ {
13241
+ component: AXCheckBoxPropertyEditorComponent,
13242
+ path: 'ax/editors/check'
13243
+ },
13057
13244
  {
13058
13245
  component: AXTextPropertyEditorComponent,
13059
13246
  path: 'ax/editors/text'
@@ -13105,6 +13292,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
13105
13292
  imports: [
13106
13293
  WDIGET_MODULES,
13107
13294
  RouterModule.forChild([
13295
+ {
13296
+ path: 'ax/editors/selection',
13297
+ component: AXSelectionListPropertyEditorComponent
13298
+ },
13299
+ {
13300
+ component: AXCheckBoxPropertyEditorComponent,
13301
+ path: 'ax/editors/check'
13302
+ },
13108
13303
  {
13109
13304
  component: AXTextPropertyEditorComponent,
13110
13305
  path: 'ax/editors/text'