@acorex/components 5.3.3 → 5.5.0

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.
Files changed (45) hide show
  1. package/esm2020/lib/base/components.class.mjs +8 -1
  2. package/esm2020/lib/base/mixin/base-menu-mixin.class.mjs +6 -3
  3. package/esm2020/lib/base/mixin/datalist-component.class.mjs +17 -6
  4. package/esm2020/lib/calendar/calendar.component.mjs +1 -3
  5. package/esm2020/lib/color-palette/color-palette-input.component.mjs +67 -0
  6. package/esm2020/lib/color-palette/color-palette-picker.component.mjs +17 -0
  7. package/esm2020/lib/color-palette/color-palette-preview.component.mjs +36 -0
  8. package/esm2020/lib/color-palette/color-palette-swatches.component.mjs +261 -0
  9. package/esm2020/lib/color-palette/color-palette.class.mjs +10 -0
  10. package/esm2020/lib/color-palette/color-palette.component.mjs +46 -0
  11. package/esm2020/lib/color-palette/color-palette.module.mjs +54 -0
  12. package/esm2020/lib/color-palette/index.mjs +7 -0
  13. package/esm2020/lib/color-picker/color-picker.component.mjs +19 -265
  14. package/esm2020/lib/color-picker/color-picker.module.mjs +12 -6
  15. package/esm2020/lib/form/form.component.mjs +8 -5
  16. package/esm2020/lib/menu/menu.component.mjs +33 -7
  17. package/esm2020/lib/searchbox/searchbox.component.mjs +13 -7
  18. package/esm2020/lib/searchbox/searchbox.module.mjs +4 -3
  19. package/esm2020/lib/selectbox/selectbox.component.mjs +16 -14
  20. package/esm2020/lib/validation/validation-rule.widget.mjs +17 -11
  21. package/esm2020/public-api.mjs +2 -1
  22. package/fesm2015/acorex-components.mjs +1446 -1185
  23. package/fesm2015/acorex-components.mjs.map +1 -1
  24. package/fesm2020/acorex-components.mjs +1409 -1152
  25. package/fesm2020/acorex-components.mjs.map +1 -1
  26. package/lib/base/components.class.d.ts +8 -0
  27. package/lib/base/mixin/base-menu-mixin.class.d.ts +1 -1
  28. package/lib/base/mixin/mixin.class.d.ts +1 -1
  29. package/lib/color-palette/color-palette-input.component.d.ts +15 -0
  30. package/lib/color-palette/color-palette-picker.component.d.ts +8 -0
  31. package/lib/color-palette/color-palette-preview.component.d.ts +12 -0
  32. package/lib/color-palette/color-palette-swatches.component.d.ts +16 -0
  33. package/lib/color-palette/color-palette.class.d.ts +12 -0
  34. package/lib/color-palette/color-palette.component.d.ts +18 -0
  35. package/lib/color-palette/color-palette.module.d.ts +17 -0
  36. package/lib/color-palette/index.d.ts +6 -0
  37. package/lib/color-picker/color-picker.component.d.ts +159 -35
  38. package/lib/color-picker/color-picker.module.d.ts +2 -1
  39. package/lib/form/form.component.d.ts +1 -1
  40. package/lib/menu/menu.component.d.ts +8 -2
  41. package/lib/searchbox/searchbox.component.d.ts +1 -0
  42. package/lib/searchbox/searchbox.module.d.ts +2 -1
  43. package/lib/selectbox/selectbox.component.d.ts +3 -2
  44. package/package.json +1 -1
  45. package/public-api.d.ts +1 -0
@@ -4,11 +4,11 @@ import { Injectable, Inject, EventEmitter, Directive, Input, TemplateRef, NgModu
4
4
  import { __classPrivateFieldSet, __classPrivateFieldGet, __awaiter } from 'tslib';
5
5
  import _ from 'lodash';
6
6
  import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
7
- import * as i1$3 from '@acorex/core';
8
- import { AXObjectUtil, AXConfig, AXDateTime, AXDateTimeRange, AXDateTimeModule, AXDrawingUtil, AXTranslator, AXTranslationModule, AXStringUtil } from '@acorex/core';
7
+ import * as i1$4 from '@acorex/core';
8
+ import { AXObjectUtil, AXConfig, AXDateTime, AXDateTimeRange, AXDateTimeModule, AXColorUtil, AXDrawingUtil, AXTranslationModule, AXTranslator, AXStringUtil } from '@acorex/core';
9
9
  import { Subscription, Subject, fromEvent, merge, asyncScheduler, BehaviorSubject } from 'rxjs';
10
10
  import { debounceTime, distinctUntilChanged, map, pairwise, filter, startWith, exhaustMap, throttleTime, observeOn, finalize } from 'rxjs/operators';
11
- import * as i1$4 from '@angular/cdk/portal';
11
+ import * as i1$5 from '@angular/cdk/portal';
12
12
  import { TemplatePortal, ComponentPortal, PortalModule } from '@angular/cdk/portal';
13
13
  import * as i1 from '@angular/cdk/overlay';
14
14
  import { OverlayContainer, Overlay, OverlayModule } from '@angular/cdk/overlay';
@@ -17,15 +17,15 @@ import { DOCUMENT, CommonModule } from '@angular/common';
17
17
  import * as i2 from '@angular/cdk/bidi';
18
18
  import * as i1$2 from '@angular/forms';
19
19
  import { FormsModule } from '@angular/forms';
20
- import * as i8 from '@angular/cdk/a11y';
21
- import { A11yModule } from '@angular/cdk/a11y';
22
- import * as i1$5 from 'ngx-mask';
20
+ import IMask from 'imask';
21
+ import * as i5 from 'angular-imask';
22
+ import { IMaskDirective, IMaskModule } from 'angular-imask';
23
+ import * as i1$3 from 'ngx-mask';
23
24
  import { NgxMaskModule } from 'ngx-mask';
25
+ import * as i7 from '@angular/cdk/a11y';
26
+ import { A11yModule } from '@angular/cdk/a11y';
24
27
  import * as i3 from '@angular/cdk/drag-drop';
25
28
  import { DragDropModule } from '@angular/cdk/drag-drop';
26
- import IMask from 'imask';
27
- import * as i5 from 'angular-imask';
28
- import { IMaskModule, IMaskDirective } from 'angular-imask';
29
29
 
30
30
  var _AXBaseComponent_elementRef;
31
31
  class AXBaseComponent {
@@ -197,14 +197,17 @@ function _BaseMenuComponentMixin(Base) {
197
197
  });
198
198
  }
199
199
  }
200
- _fetchData(parentId) {
200
+ _fetchData(parentId, searchText) {
201
201
  return new Promise((resolve) => {
202
202
  if (__classPrivateFieldGet(this, _isLoading, "f")) {
203
203
  return;
204
204
  }
205
205
  if (__classPrivateFieldGet(this, _items, "f")) {
206
206
  __classPrivateFieldSet(this, _isLoading, true, "f");
207
- __classPrivateFieldGet(this, _items, "f").call(this, { parentId: parentId })
207
+ __classPrivateFieldGet(this, _items, "f").call(this, {
208
+ parentId: parentId,
209
+ searchQuery: searchText,
210
+ })
208
211
  .then((c) => {
209
212
  if (Array.isArray(c)) {
210
213
  if (parentId) {
@@ -485,7 +488,17 @@ function _DatalistComponenetMixin(Base) {
485
488
  return __classPrivateFieldGet(this, _isLoading, "f");
486
489
  }
487
490
  _formatData(v) {
488
- return _.unionBy(v.map((o, i) => {
491
+ // return _.unionBy(v.map((o, i) => {
492
+ // if (typeof o == 'object')
493
+ // return o
494
+ // else {
495
+ // const no: any = {};
496
+ // no[this.valueField] = o;
497
+ // no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
498
+ // return no;
499
+ // }
500
+ // }), this.valueField);
501
+ return v.map((o, i) => {
489
502
  if (typeof o == 'object')
490
503
  return o;
491
504
  else {
@@ -494,16 +507,17 @@ function _DatalistComponenetMixin(Base) {
494
507
  no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
495
508
  return no;
496
509
  }
497
- }), this.valueField);
510
+ });
498
511
  }
499
512
  _fetchData(opts) {
500
- if ((this.loadedCount >= this.totalCount && this.totalCount != 0) || __classPrivateFieldGet(this, _isLoading, "f") || !__classPrivateFieldGet(this, _isLazy, "f")) {
513
+ const skip = __classPrivateFieldGet(this, _currentPage, "f") * this.pageSize, take = this.pageSize;
514
+ if ((this.loadedCount >= this.totalCount && this.totalCount != 0) || __classPrivateFieldGet(this, _isLoading, "f") || !__classPrivateFieldGet(this, _isLazy, "f") || (skip > this.totalCount)) {
501
515
  return;
502
516
  }
503
517
  if (__classPrivateFieldGet(this, _items, "f")) {
504
518
  __classPrivateFieldSet(this, _isLoading, true, "f");
505
519
  const fetchFn = __classPrivateFieldGet(this, _items, "f");
506
- fetchFn({ skip: __classPrivateFieldGet(this, _currentPage, "f") * this.pageSize, take: this.pageSize, searchQuery: opts === null || opts === void 0 ? void 0 : opts.searchQuery }).then(c => {
520
+ fetchFn({ skip, take, searchQuery: opts === null || opts === void 0 ? void 0 : opts.searchQuery }).then(c => {
507
521
  var _b;
508
522
  var _a;
509
523
  if (Array.isArray(c)) {
@@ -512,7 +526,7 @@ function _DatalistComponenetMixin(Base) {
512
526
  }
513
527
  else {
514
528
  __classPrivateFieldSet(this, _totalItems, c.total || ((_b = c.items) === null || _b === void 0 ? void 0 : _b.length) || 0, "f");
515
- __classPrivateFieldSet(this, _loadedItems, __classPrivateFieldGet(this, _loadedItems, "f").concat(this._formatData(c.items)), "f");
529
+ __classPrivateFieldSet(this, _loadedItems, [...new Set(__classPrivateFieldGet(this, _loadedItems, "f").concat(this._formatData(c.items)))], "f");
516
530
  __classPrivateFieldSet(this, _currentPage, (_a = __classPrivateFieldGet(this, _currentPage, "f"), _a++, _a), "f");
517
531
  }
518
532
  this._cdr.markForCheck();
@@ -1211,6 +1225,13 @@ AXSearchableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", ve
1211
1225
  AXSearchableComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchableComponent });
1212
1226
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchableComponent, decorators: [{
1213
1227
  type: Injectable
1228
+ }] });
1229
+ class AXValuableComponent {
1230
+ }
1231
+ AXValuableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXValuableComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1232
+ AXValuableComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXValuableComponent });
1233
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXValuableComponent, decorators: [{
1234
+ type: Injectable
1214
1235
  }] });
1215
1236
 
1216
1237
  /**
@@ -1862,17 +1883,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
1862
1883
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; } });
1863
1884
 
1864
1885
  const COMPONENT$o = [AXDrawerComponent, AXDrawerContainerComponent];
1865
- const MODULES$o = [CommonModule];
1886
+ const MODULES$p = [CommonModule];
1866
1887
  class AXDrawerModule {
1867
1888
  }
1868
1889
  AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1869
1890
  AXDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, declarations: [AXDrawerComponent, AXDrawerContainerComponent], imports: [CommonModule], exports: [AXDrawerComponent, AXDrawerContainerComponent] });
1870
- AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$o]] });
1891
+ AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$p]] });
1871
1892
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, decorators: [{
1872
1893
  type: NgModule,
1873
1894
  args: [{
1874
1895
  declarations: [...COMPONENT$o],
1875
- imports: [...MODULES$o],
1896
+ imports: [...MODULES$p],
1876
1897
  exports: [...COMPONENT$o],
1877
1898
  providers: [],
1878
1899
  }]
@@ -2294,7 +2315,7 @@ const COMPONENT$n = [
2294
2315
  AXDecoratorTitleComponent,
2295
2316
  AXDecoratorCloseButtonComponent
2296
2317
  ];
2297
- const MODULES$n = [CommonModule];
2318
+ const MODULES$o = [CommonModule];
2298
2319
  class AXDecoratorModule {
2299
2320
  }
2300
2321
  AXDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2315,12 +2336,12 @@ AXDecoratorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
2315
2336
  AXDecoratorIconComponent,
2316
2337
  AXDecoratorTitleComponent,
2317
2338
  AXDecoratorCloseButtonComponent] });
2318
- AXDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, providers: [], imports: [[...MODULES$n]] });
2339
+ AXDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, providers: [], imports: [[...MODULES$o]] });
2319
2340
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, decorators: [{
2320
2341
  type: NgModule,
2321
2342
  args: [{
2322
2343
  declarations: [...COMPONENT$n],
2323
- imports: [...MODULES$n],
2344
+ imports: [...MODULES$o],
2324
2345
  exports: [...COMPONENT$n],
2325
2346
  providers: [],
2326
2347
  }]
@@ -2331,7 +2352,7 @@ const COMPONENT$m = [
2331
2352
  AXButtonItemComponent,
2332
2353
  AXButtonGroupComponent,
2333
2354
  ];
2334
- const MODULES$m = [CommonModule, AXDecoratorModule];
2355
+ const MODULES$n = [CommonModule, AXDecoratorModule];
2335
2356
  class AXButtonModule {
2336
2357
  }
2337
2358
  AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2340,11 +2361,11 @@ AXButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
2340
2361
  AXButtonGroupComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXButtonComponent,
2341
2362
  AXButtonItemComponent,
2342
2363
  AXButtonGroupComponent] });
2343
- AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$m]] });
2364
+ AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$n]] });
2344
2365
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, decorators: [{
2345
2366
  type: NgModule,
2346
2367
  args: [{
2347
- imports: [MODULES$m],
2368
+ imports: [MODULES$n],
2348
2369
  exports: [COMPONENT$m],
2349
2370
  declarations: [COMPONENT$m],
2350
2371
  providers: [],
@@ -2542,19 +2563,19 @@ const COMPONENT$l = [
2542
2563
  AXAlertComponent,
2543
2564
  AXAlertButtonComponent
2544
2565
  ];
2545
- const MODULES$l = [CommonModule, AXDecoratorModule];
2566
+ const MODULES$m = [CommonModule, AXDecoratorModule];
2546
2567
  class AXAlertModule {
2547
2568
  }
2548
2569
  AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2549
2570
  AXAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent,
2550
2571
  AXAlertButtonComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXAlertComponent,
2551
2572
  AXAlertButtonComponent] });
2552
- AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$l]] });
2573
+ AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$m]] });
2553
2574
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, decorators: [{
2554
2575
  type: NgModule,
2555
2576
  args: [{
2556
2577
  declarations: [...COMPONENT$l],
2557
- imports: [...MODULES$l],
2578
+ imports: [...MODULES$m],
2558
2579
  exports: [...COMPONENT$l],
2559
2580
  providers: [],
2560
2581
  }]
@@ -2613,17 +2634,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
2613
2634
  }] } });
2614
2635
 
2615
2636
  const COMPONENT$k = [AXAvatarComponent, AXAvatarGroup];
2616
- const MODULES$k = [CommonModule];
2637
+ const MODULES$l = [CommonModule];
2617
2638
  class AXAvatarModule {
2618
2639
  }
2619
2640
  AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2620
2641
  AXAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent, AXAvatarGroup], imports: [CommonModule], exports: [AXAvatarComponent, AXAvatarGroup] });
2621
- AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$k]] });
2642
+ AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$l]] });
2622
2643
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, decorators: [{
2623
2644
  type: NgModule,
2624
2645
  args: [{
2625
2646
  declarations: [...COMPONENT$k],
2626
- imports: [...MODULES$k],
2647
+ imports: [...MODULES$l],
2627
2648
  exports: [...COMPONENT$k],
2628
2649
  providers: [],
2629
2650
  }]
@@ -2654,17 +2675,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
2654
2675
  }] } });
2655
2676
 
2656
2677
  const COMPONENT$j = [AXBadgeComponent];
2657
- const MODULES$j = [CommonModule];
2678
+ const MODULES$k = [CommonModule];
2658
2679
  class AXBadgeModule {
2659
2680
  }
2660
2681
  AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2661
2682
  AXBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, declarations: [AXBadgeComponent], imports: [CommonModule], exports: [AXBadgeComponent] });
2662
- AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$j]] });
2683
+ AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$k]] });
2663
2684
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, decorators: [{
2664
2685
  type: NgModule,
2665
2686
  args: [{
2666
2687
  declarations: [...COMPONENT$j],
2667
- imports: [...MODULES$j],
2688
+ imports: [...MODULES$k],
2668
2689
  exports: [...COMPONENT$j],
2669
2690
  providers: [],
2670
2691
  }]
@@ -3385,7 +3406,6 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
3385
3406
  return date.dayOfWeek == 7 || date.dayOfWeek == 1;
3386
3407
  }
3387
3408
  _generatePickerItems(view) {
3388
- debugger;
3389
3409
  switch (view) {
3390
3410
  case 'year':
3391
3411
  this._pickerYears = _.range(2000, 2050, 1);
@@ -3407,7 +3427,6 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
3407
3427
  }
3408
3428
  }
3409
3429
  _handlePickerChange(item, view) {
3410
- debugger;
3411
3430
  if (!item)
3412
3431
  return;
3413
3432
  const date = this._viewRange.startTime;
@@ -4109,17 +4128,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
4109
4128
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXCarouselComponent }]; } });
4110
4129
 
4111
4130
  const COMPONENT$i = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
4112
- const MODULES$i = [CommonModule];
4131
+ const MODULES$j = [CommonModule];
4113
4132
  class AXCarouselModule {
4114
4133
  }
4115
4134
  AXCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4116
4135
  AXCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, declarations: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent], imports: [CommonModule], exports: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent] });
4117
- AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$i]] });
4136
+ AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$j]] });
4118
4137
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, decorators: [{
4119
4138
  type: NgModule,
4120
4139
  args: [{
4121
4140
  declarations: [...COMPONENT$i],
4122
- imports: [...MODULES$i],
4141
+ imports: [...MODULES$j],
4123
4142
  exports: [...COMPONENT$i],
4124
4143
  providers: [],
4125
4144
  }]
@@ -4141,17 +4160,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
4141
4160
  }] });
4142
4161
 
4143
4162
  const COMPONENT$h = [AXCalendarComponent];
4144
- const MODULES$h = [CommonModule, AXButtonModule, AXDecoratorModule, AXDateTimeModule, AXPickerModule];
4163
+ const MODULES$i = [CommonModule, AXButtonModule, AXDecoratorModule, AXDateTimeModule, AXPickerModule];
4145
4164
  class AXCalendarModule {
4146
4165
  }
4147
4166
  AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4148
4167
  AXCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, declarations: [AXCalendarComponent], imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXDateTimeModule, AXPickerModule], exports: [AXCalendarComponent] });
4149
- AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$h]] });
4168
+ AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$i]] });
4150
4169
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, decorators: [{
4151
4170
  type: NgModule,
4152
4171
  args: [{
4153
4172
  declarations: [...COMPONENT$h],
4154
- imports: [...MODULES$h],
4173
+ imports: [...MODULES$i],
4155
4174
  exports: [...COMPONENT$h],
4156
4175
  providers: [],
4157
4176
  }]
@@ -4207,783 +4226,1255 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
4207
4226
  }]
4208
4227
  }] });
4209
4228
 
4210
- class AXCollapseComponent extends AXBaseComponent {
4211
- constructor(elementRef, cdr) {
4212
- super(elementRef, cdr);
4213
- this.cdr = cdr;
4214
- this.isCollapsedChange = new EventEmitter();
4215
- this._isCollapsed = false;
4216
- this.caption = null;
4217
- }
4218
- get isCollapsed() {
4219
- return this._isCollapsed;
4220
- }
4221
- set isCollapsed(v) {
4222
- if (v != this._isCollapsed) {
4223
- this._isCollapsed = v;
4224
- this.isCollapsedChange.emit(v);
4225
- this._cdr.detectChanges();
4226
- }
4227
- }
4228
- handleHeaderClick() {
4229
- this.isCollapsed = !this.isCollapsed;
4229
+ class AXColorComponent {
4230
+ }
4231
+ AXColorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4232
+ AXColorComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorComponent });
4233
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorComponent, decorators: [{
4234
+ type: Injectable
4235
+ }] });
4236
+
4237
+ class AXColorPalettePreviewComponent extends AXBaseComponent {
4238
+ constructor(_elementRef, _cdr, _parent) {
4239
+ super(_elementRef, _cdr);
4240
+ this._parent = _parent;
4241
+ _parent === null || _parent === void 0 ? void 0 : _parent._onInternalColorChanged$.subscribe(e => {
4242
+ this._colorCode = AXColorUtil.to(e.color, e.mode);
4243
+ this._getHostElement().style.backgroundColor = e.color;
4244
+ const color = AXColorUtil.toHex(e.color);
4245
+ const ratio = AXColorUtil.contrastToWhite(color);
4246
+ this._getHostElement().style.color = !(ratio > 2.0) ? '#000' : '#fff';
4247
+ });
4230
4248
  }
4249
+ ngOnInit() { }
4231
4250
  }
4232
- AXCollapseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4233
- AXCollapseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXCollapseComponent, selector: "ax-collapse", inputs: { isCollapsed: "isCollapsed", caption: "caption" }, outputs: { isCollapsedChange: "isCollapsedChange" }, host: { classAttribute: "ax-collapse" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-collapse-header\" [class.ax-state-collapsed]=\"isCollapsed\">\r\n <ng-container *ngIf=\"headerTemplate;else header\">\r\n <div class=\"ax-collapse-custom-header-container\" (click)=\"handleHeaderClick()\">\r\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: {caption,isCollapsed} }\"></ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #header>\r\n <div class=\"ax-collapse-header-container\" (click)=\"handleHeaderClick()\">\r\n <div>\r\n <span class=\"ax-ic ax-ic-chevron ax-collapse-arrow ax-transition-all\"\r\n [class.ax-rotate-90]=\"isCollapsed\"></span>\r\n <ng-content select=\"ax-prefix\"></ng-content>\r\n <span>{{caption}}</span>\r\n </div>\r\n <div>\r\n <ng-content select=\"ax-suffix\"></ng-content>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n\r\n<div class=\"ax-collapse-body ax-transition-all\" *ngIf=\"!isCollapsed\">\r\n <ng-content></ng-content>\r\n</div>", directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4234
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseComponent, decorators: [{
4251
+ AXColorPalettePreviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePreviewComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXColorComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4252
+ AXColorPalettePreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXColorPalettePreviewComponent, selector: "ax-color-palette-preview", usesInheritance: true, ngImport: i0, template: `{{_colorCode}}`, isInline: true, encapsulation: i0.ViewEncapsulation.None });
4253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePreviewComponent, decorators: [{
4235
4254
  type: Component,
4236
- args: [{ selector: 'ax-collapse', host: { class: 'ax-collapse' }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-collapse-header\" [class.ax-state-collapsed]=\"isCollapsed\">\r\n <ng-container *ngIf=\"headerTemplate;else header\">\r\n <div class=\"ax-collapse-custom-header-container\" (click)=\"handleHeaderClick()\">\r\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: {caption,isCollapsed} }\"></ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #header>\r\n <div class=\"ax-collapse-header-container\" (click)=\"handleHeaderClick()\">\r\n <div>\r\n <span class=\"ax-ic ax-ic-chevron ax-collapse-arrow ax-transition-all\"\r\n [class.ax-rotate-90]=\"isCollapsed\"></span>\r\n <ng-content select=\"ax-prefix\"></ng-content>\r\n <span>{{caption}}</span>\r\n </div>\r\n <div>\r\n <ng-content select=\"ax-suffix\"></ng-content>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n\r\n<div class=\"ax-collapse-body ax-transition-all\" *ngIf=\"!isCollapsed\">\r\n <ng-content></ng-content>\r\n</div>" }]
4237
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { isCollapsedChange: [{
4238
- type: Output
4239
- }], isCollapsed: [{
4240
- type: Input
4241
- }], caption: [{
4242
- type: Input
4243
- }], headerTemplate: [{
4244
- type: ContentChild,
4245
- args: ['header', { static: true }]
4246
- }] } });
4255
+ args: [{
4256
+ selector: 'ax-color-palette-preview',
4257
+ template: `{{_colorCode}}`,
4258
+ encapsulation: ViewEncapsulation.None
4259
+ }]
4260
+ }], ctorParameters: function () {
4261
+ return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorComponent, decorators: [{
4262
+ type: Optional
4263
+ }, {
4264
+ type: Inject,
4265
+ args: [AXColorComponent]
4266
+ }] }];
4267
+ } });
4247
4268
 
4248
- class AXCollapseGroupComponent extends AXBaseComponent {
4249
- constructor(elementRef, cdr) {
4250
- super(elementRef, cdr);
4251
- this.cdr = cdr;
4252
- this.accordion = false;
4253
- this.nonCollapsedIndex = 0;
4254
- this._subs = [];
4255
- }
4256
- onViewInit() {
4257
- if (this.accordion) {
4258
- this._items.forEach(c => c.isCollapsed = true);
4259
- this._items.get(this.nonCollapsedIndex).isCollapsed = false;
4260
- console.log(this._items[this.nonCollapsedIndex]);
4261
- this._items.forEach((c1) => {
4262
- this._subs.push(c1.isCollapsedChange.subscribe(e => {
4263
- if (!e)
4264
- this._items.toArray().filter(c2 => c2 != c1).forEach(c => c.isCollapsed = true);
4265
- }));
4266
- });
4269
+ class AXColorPaletteSwatchesComponent extends AXBaseComponent {
4270
+ constructor(_elementRef, _cdr, _parent) {
4271
+ super(_elementRef, _cdr);
4272
+ this._parent = _parent;
4273
+ this.colors = [];
4274
+ this._defaultPalette = [
4275
+ { code: '#000000' },
4276
+ { code: '#ffffff' },
4277
+ // Amber
4278
+ { code: '#fff8e1' },
4279
+ { code: '#ffecb3' },
4280
+ { code: '#ffe082' },
4281
+ { code: '#ffd54f' },
4282
+ { code: '#ffca28' },
4283
+ { code: '#ffc107' },
4284
+ { code: '#ffb300' },
4285
+ { code: '#ffa000' },
4286
+ { code: '#ff8f00' },
4287
+ { code: '#ff6f00' },
4288
+ // Blue Grey
4289
+ { code: '#ECEFF1' },
4290
+ { code: '#CFD8DC' },
4291
+ { code: '#B0BEC5' },
4292
+ { code: '#90A4AE' },
4293
+ { code: '#78909C' },
4294
+ { code: '#607D8B' },
4295
+ { code: '#546E7A' },
4296
+ { code: '#455A64' },
4297
+ { code: '#37474F' },
4298
+ { code: '#263238' },
4299
+ // Blue
4300
+ { code: '#E3F2FD' },
4301
+ { code: '#BBDEFB' },
4302
+ { code: '#90CAF9' },
4303
+ { code: '#64B5F6' },
4304
+ { code: '#42A5F5' },
4305
+ { code: '#2196F3' },
4306
+ { code: '#1E88E5' },
4307
+ { code: '#1976D2' },
4308
+ { code: '#1565C0' },
4309
+ { code: '#0D47A1' },
4310
+ // Brown
4311
+ { code: '#EFEBE9' },
4312
+ { code: '#D7CCC8' },
4313
+ { code: '#BCAAA4' },
4314
+ { code: '#A1887F' },
4315
+ { code: '#8D6E63' },
4316
+ { code: '#795548' },
4317
+ { code: '#6D4C41' },
4318
+ { code: '#5D4037' },
4319
+ { code: '#4E342E' },
4320
+ { code: '#3E2723' },
4321
+ // Cyan
4322
+ { code: '#E0F7FA' },
4323
+ { code: '#B2EBF2' },
4324
+ { code: '#80DEEA' },
4325
+ { code: '#4DD0E1' },
4326
+ { code: '#26C6DA' },
4327
+ { code: '#00BCD4' },
4328
+ { code: '#00ACC1' },
4329
+ { code: '#0097A7' },
4330
+ { code: '#00838F' },
4331
+ { code: '#006064' },
4332
+ // Deep Orange
4333
+ { code: '#FBE9E7' },
4334
+ { code: '#FFCCBC' },
4335
+ { code: '#FFAB91' },
4336
+ { code: '#FF8A65' },
4337
+ { code: '#FF7043' },
4338
+ { code: '#FF5722' },
4339
+ { code: '#F4511E' },
4340
+ { code: '#E64A19' },
4341
+ { code: '#D84315' },
4342
+ { code: '#BF360C' },
4343
+ // Deep Purple
4344
+ { code: '#EDE7F6' },
4345
+ { code: '#D1C4E9' },
4346
+ { code: '#B39DDB' },
4347
+ { code: '#9575CD' },
4348
+ { code: '#7E57C2' },
4349
+ { code: '#673AB7' },
4350
+ { code: '#5E35B1' },
4351
+ { code: '#512DA8' },
4352
+ { code: '#4527A0' },
4353
+ { code: '#311B92' },
4354
+ // Green
4355
+ { code: '#E8F5E9' },
4356
+ { code: '#C8E6C9' },
4357
+ { code: '#A5D6A7' },
4358
+ { code: '#81C784' },
4359
+ { code: '#66BB6A' },
4360
+ { code: '#4CAF50' },
4361
+ { code: '#43A047' },
4362
+ { code: '#388E3C' },
4363
+ { code: '#2E7D32' },
4364
+ { code: '#1B5E20' },
4365
+ // Grey
4366
+ { code: '#FAFAFA' },
4367
+ { code: '#F5F5F5' },
4368
+ { code: '#EEEEEE' },
4369
+ { code: '#E0E0E0' },
4370
+ { code: '#BDBDBD' },
4371
+ { code: '#9E9E9E' },
4372
+ { code: '#757575' },
4373
+ { code: '#616161' },
4374
+ { code: '#424242' },
4375
+ { code: '#212121' },
4376
+ // Indigo
4377
+ { code: '#E8EAF6' },
4378
+ { code: '#C5CAE9' },
4379
+ { code: '#9FA8DA' },
4380
+ { code: '#7986CB' },
4381
+ { code: '#5C6BC0' },
4382
+ { code: '#3F51B5' },
4383
+ { code: '#3949AB' },
4384
+ { code: '#303F9F' },
4385
+ { code: '#283593' },
4386
+ { code: '#1A237E' },
4387
+ // Light Blue
4388
+ { code: '#E1F5FE' },
4389
+ { code: '#B3E5FC' },
4390
+ { code: '#81D4FA' },
4391
+ { code: '#4FC3F7' },
4392
+ { code: '#29B6F6' },
4393
+ { code: '#03A9F4' },
4394
+ { code: '#039BE5' },
4395
+ { code: '#0288D1' },
4396
+ { code: '#0277BD' },
4397
+ { code: '#01579B' },
4398
+ // Light Green
4399
+ { code: '#F1F8E9' },
4400
+ { code: '#DCEDC8' },
4401
+ { code: '#C5E1A5' },
4402
+ { code: '#AED581' },
4403
+ { code: '#9CCC65' },
4404
+ { code: '#8BC34A' },
4405
+ { code: '#7CB342' },
4406
+ { code: '#689F38' },
4407
+ { code: '#558B2F' },
4408
+ { code: '#33691E' },
4409
+ // Lime
4410
+ { code: '#F9FBE7' },
4411
+ { code: '#F0F4C3' },
4412
+ { code: '#E6EE9C' },
4413
+ { code: '#DCE775' },
4414
+ { code: '#D4E157' },
4415
+ { code: '#CDDC39' },
4416
+ { code: '#C0CA33' },
4417
+ { code: '#AFB42B' },
4418
+ { code: '#9E9D24' },
4419
+ { code: '#827717' },
4420
+ // Orange
4421
+ { code: '#FFF3E0' },
4422
+ { code: '#FFE0B2' },
4423
+ { code: '#FFCC80' },
4424
+ { code: '#FFB74D' },
4425
+ { code: '#FFA726' },
4426
+ { code: '#FF9800' },
4427
+ { code: '#FB8C00' },
4428
+ { code: '#F57C00' },
4429
+ { code: '#EF6C00' },
4430
+ { code: '#E65100' },
4431
+ // Pink
4432
+ { code: '#FCE4EC' },
4433
+ { code: '#F8BBD0' },
4434
+ { code: '#F48FB1' },
4435
+ { code: '#F06292' },
4436
+ { code: '#EC407A' },
4437
+ { code: '#E91E63' },
4438
+ { code: '#D81B60' },
4439
+ { code: '#C2185B' },
4440
+ { code: '#AD1457' },
4441
+ { code: '#880E4F' },
4442
+ // Purple
4443
+ { code: '#F3E5F5' },
4444
+ { code: '#E1BEE7' },
4445
+ { code: '#CE93D8' },
4446
+ { code: '#BA68C8' },
4447
+ { code: '#AB47BC' },
4448
+ { code: '#9C27B0' },
4449
+ { code: '#8E24AA' },
4450
+ { code: '#7B1FA2' },
4451
+ { code: '#6A1B9A' },
4452
+ { code: '#4A148C' },
4453
+ // Red
4454
+ { code: '#FFEBEE' },
4455
+ { code: '#FFCDD2' },
4456
+ { code: '#EF9A9A' },
4457
+ { code: '#E57373' },
4458
+ { code: '#EF5350' },
4459
+ { code: '#F44336' },
4460
+ { code: '#E53935' },
4461
+ { code: '#D32F2F' },
4462
+ { code: '#C62828' },
4463
+ { code: '#B71C1C' },
4464
+ // Teal
4465
+ { code: '#E0F2F1' },
4466
+ { code: '#B2DFDB' },
4467
+ { code: '#80CBC4' },
4468
+ { code: '#4DB6AC' },
4469
+ { code: '#26A69A' },
4470
+ { code: '#009688' },
4471
+ { code: '#00897B' },
4472
+ { code: '#00796B' },
4473
+ { code: '#00695C' },
4474
+ { code: '#004D40' },
4475
+ // Yellow
4476
+ { code: '#FFFDE7' },
4477
+ { code: '#FFF9C4' },
4478
+ { code: '#FFF59D' },
4479
+ { code: '#FFF176' },
4480
+ { code: '#FFEE58' },
4481
+ { code: '#FFEB3B' },
4482
+ { code: '#FDD835' },
4483
+ { code: '#FBC02D' },
4484
+ { code: '#F9A825' },
4485
+ { code: '#F57F17' },
4486
+ ];
4487
+ _parent === null || _parent === void 0 ? void 0 : _parent._onInternalColorChanged$.subscribe(e => {
4488
+ this._selected = AXColorUtil.toHex(e.color);
4489
+ });
4490
+ if (this._getHostElement().tagName.toLocaleLowerCase() != 'ax-color-palette-favorite') {
4491
+ this.colors = this._defaultPalette;
4267
4492
  }
4268
4493
  }
4269
- onDestroy() {
4270
- this._subs.forEach(s => s.unsubscribe());
4271
- this._subs = [];
4494
+ _handleClick(e, color) {
4495
+ this._selected = color.code;
4496
+ this._parent._onInternalColorChanged$.next({ color: color.code, mode: this._parent.mode });
4272
4497
  }
4273
4498
  }
4274
- AXCollapseGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseGroupComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4275
- AXCollapseGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXCollapseGroupComponent, selector: "ax-collapse-group", inputs: { accordion: "accordion", nonCollapsedIndex: "nonCollapsedIndex" }, host: { classAttribute: "ax-collapse-group" }, queries: [{ propertyName: "_items", predicate: AXCollapseComponent }], usesInheritance: true, ngImport: i0, template: `<ng-content select="ax-collapse"></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4276
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseGroupComponent, decorators: [{
4499
+ AXColorPaletteSwatchesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteSwatchesComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXColorComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4500
+ AXColorPaletteSwatchesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXColorPaletteSwatchesComponent, selector: "ax-color-palette-swatches, ax-color-palette-favorite", inputs: { colors: "colors" }, usesInheritance: true, ngImport: i0, template: `<div class="palette-items">
4501
+ <div *ngFor="let color of colors" [style.background-color]="color.code" [attr.title]="color.code" [class.ax-state-selected]="color.code==_selected" (click)="_handleClick($event,color)" >
4502
+ </div>
4503
+ </div>`, isInline: true, directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None });
4504
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteSwatchesComponent, decorators: [{
4277
4505
  type: Component,
4278
4506
  args: [{
4279
- selector: 'ax-collapse-group',
4280
- template: `<ng-content select="ax-collapse"></ng-content>`,
4281
- host: { class: 'ax-collapse-group' },
4282
- changeDetection: ChangeDetectionStrategy.OnPush,
4283
- encapsulation: ViewEncapsulation.None,
4507
+ selector: 'ax-color-palette-swatches, ax-color-palette-favorite',
4508
+ template: `<div class="palette-items">
4509
+ <div *ngFor="let color of colors" [style.background-color]="color.code" [attr.title]="color.code" [class.ax-state-selected]="color.code==_selected" (click)="_handleClick($event,color)" >
4510
+ </div>
4511
+ </div>`,
4512
+ encapsulation: ViewEncapsulation.None
4284
4513
  }]
4285
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { accordion: [{
4286
- type: Input
4287
- }], nonCollapsedIndex: [{
4514
+ }], ctorParameters: function () {
4515
+ return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorComponent, decorators: [{
4516
+ type: Optional
4517
+ }, {
4518
+ type: Inject,
4519
+ args: [AXColorComponent]
4520
+ }] }];
4521
+ }, propDecorators: { colors: [{
4288
4522
  type: Input
4289
- }], _items: [{
4290
- type: ContentChildren,
4291
- args: [AXCollapseComponent]
4292
4523
  }] } });
4293
4524
 
4294
- class AXCollapseModule {
4525
+ /**
4526
+ * The Textbox is a component which detects user interaction and triggers a corresponding event
4527
+ *
4528
+ * @category Components
4529
+ */
4530
+ class AXTextBoxComponent extends AXBaseTextBoxMixin {
4531
+ /**
4532
+ * @ignore
4533
+ */
4534
+ constructor(elementRef, cdr) {
4535
+ super(elementRef, cdr);
4536
+ }
4295
4537
  }
4296
- AXCollapseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4297
- AXCollapseModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, declarations: [AXCollapseComponent, AXCollapseGroupComponent], imports: [CommonModule], exports: [AXCollapseComponent, AXCollapseGroupComponent] });
4298
- AXCollapseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, providers: [], imports: [[CommonModule]] });
4299
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, decorators: [{
4300
- type: NgModule,
4301
- args: [{
4302
- declarations: [AXCollapseComponent, AXCollapseGroupComponent],
4303
- imports: [CommonModule],
4304
- exports: [AXCollapseComponent, AXCollapseGroupComponent],
4305
- providers: [],
4306
- }]
4307
- }] });
4538
+ AXTextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4539
+ AXTextBoxComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXTextBoxComponent, selector: "ax-text-box", inputs: { disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" }, host: { classAttribute: "ax-editor-container" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" [attr.name]=\"name\" [attr.autocomplete]=\"autoComplete\" [attr.type]=\"type\" [attr.placeholder]=\"placeholder\" [attr.maxlength]=\"maxLength\"\r\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [(ngModel)]=\"value\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-input-mask\">\r\n</ng-content>", directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4540
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxComponent, decorators: [{
4541
+ type: Component,
4542
+ args: [{ selector: 'ax-text-box', inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'ax-editor-container' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" [attr.name]=\"name\" [attr.autocomplete]=\"autoComplete\" [attr.type]=\"type\" [attr.placeholder]=\"placeholder\" [attr.maxlength]=\"maxLength\"\r\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [(ngModel)]=\"value\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-input-mask\">\r\n</ng-content>" }]
4543
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4308
4544
 
4309
- class AXPopoverComponent extends AXInteractiveComponenetMixin {
4310
- constructor(_elementRef, _cdr, _zone, _overlay, _platform, _viewContainerRef) {
4311
- super(_elementRef, _cdr);
4312
- this._elementRef = _elementRef;
4313
- this._cdr = _cdr;
4314
- this._zone = _zone;
4315
- this._overlay = _overlay;
4316
- this._platform = _platform;
4317
- this._viewContainerRef = _viewContainerRef;
4318
- this.position = [
4319
- {
4320
- originX: 'start',
4321
- originY: 'bottom',
4322
- overlayX: 'start',
4323
- overlayY: 'top',
4324
- },
4325
- {
4326
- originX: 'start',
4327
- originY: 'top',
4328
- overlayX: 'start',
4329
- overlayY: 'bottom'
4330
- }
4331
- ];
4332
- this._subs = [];
4333
- //
4334
- this.openTrigger = 'toggle';
4335
- //
4336
- this.closeTrigger = 'clickout';
4337
- //
4338
- this.hasBackdrop = false;
4339
- this.adaptivityEnabled = false;
4340
- //
4341
- this._mousePos = { x: 0, y: 0 };
4342
- this._isScrollAttached = false;
4343
- //
4344
- this.onOpened = new EventEmitter();
4345
- this.onClosed = new EventEmitter();
4346
- }
4347
- get target() {
4348
- return this._target;
4545
+ /**
4546
+ * The NumberBox is a component which detects user interaction and triggers a corresponding event
4547
+ *
4548
+ * @category Components
4549
+ */
4550
+ class AXNumberBoxComponent extends AXBaseTextBoxMixin {
4551
+ /**
4552
+ * @ignore
4553
+ */
4554
+ constructor(elementRef, cdr) {
4555
+ super(elementRef, cdr);
4556
+ this.cdr = cdr;
4557
+ this._padDecimalZeros = false;
4558
+ /**
4559
+ * Specifies the value that is used to increment or decrement the **Integer** part of number
4560
+ */
4561
+ this.step = 1;
4562
+ this._decimals = 0;
4563
+ /**
4564
+ * Specifies the value that is used to increment or decrement the **Deciaml** part of number
4565
+ */
4566
+ this.decimalStep = 'auto';
4567
+ /**
4568
+ * Specifies whether the Up and Down spin buttons will be rendered or not
4569
+ */
4570
+ this.showSpinButtons = true;
4571
+ this._minValue = Number.MIN_SAFE_INTEGER;
4572
+ this._maxValue = Number.MAX_SAFE_INTEGER;
4349
4573
  }
4350
- set target(v) {
4351
- if (v instanceof HTMLElement)
4352
- this._target = v;
4353
- else if (v instanceof ElementRef)
4354
- this._target = v.nativeElement;
4355
- else if (v instanceof AXBaseComponent)
4356
- this._target = v._getInnerElement();
4574
+ /**
4575
+ * A character value that specifies the separator character.
4576
+ */
4577
+ get thousandsSeparator() {
4578
+ return this._thousandsSeparator;
4357
4579
  }
4358
- _emitOnOpenedEvent() {
4359
- this.onOpened.emit({
4360
- component: this,
4361
- htmlElement: this._getHostElement()
4580
+ set thousandsSeparator(v) {
4581
+ this._setOption({
4582
+ name: "thousandsSeparator",
4583
+ value: v !== null && v !== void 0 ? v : '',
4362
4584
  });
4363
4585
  }
4364
- _emitOnClosedEvent() {
4365
- this.onClosed.emit({
4366
- component: this,
4367
- htmlElement: this._getHostElement()
4586
+ /**
4587
+ * A character value that specifies the separator character.
4588
+ */
4589
+ get padDecimalZeros() {
4590
+ return this._padDecimalZeros;
4591
+ }
4592
+ set padDecimalZeros(v) {
4593
+ this._setOption({
4594
+ name: "padDecimalZeros",
4595
+ value: v,
4368
4596
  });
4369
4597
  }
4370
- //
4371
- onViewInit() {
4372
- if (this._target) {
4373
- if (this.openTrigger === 'mouseover') {
4374
- const mouseEnter$ = fromEvent(this._target, 'mouseover');
4375
- this._addSub(mouseEnter$.subscribe(e => {
4376
- const point = { x: e.clientX, y: e.clientY };
4377
- if (AXDrawingUtil.isInElementBound(point, this._target))
4378
- this.open();
4379
- }));
4380
- }
4381
- if (this.closeTrigger === 'mouseout') {
4382
- const mouseMove$ = fromEvent(document, 'mousemove');
4383
- this._addSub(mouseMove$.pipe(throttleTime(50)).subscribe(e => {
4384
- this._mousePos.x = e.clientX;
4385
- this._mousePos.y = e.clientY;
4386
- if (this.isOpen) {
4387
- setTimeout(() => {
4388
- if (!_.some([this._target, this._overlayRef.overlayElement], el => _.includes(document.elementsFromPoint(this._mousePos.x, this._mousePos.y), el)))
4389
- this.close();
4390
- }, 100);
4391
- }
4392
- }));
4393
- }
4394
- //
4395
- if (this.openTrigger === 'click' || this.openTrigger === 'toggle') {
4396
- const click$ = fromEvent(this._target, 'click');
4397
- this._addSub(click$.subscribe(e => {
4398
- this.openTrigger == 'toggle' ? this.toggle() : this.open();
4399
- }));
4400
- }
4401
- }
4598
+ /**
4599
+ * Specifies the number of decimals that the user can enter
4600
+ */
4601
+ get decimals() {
4602
+ return this._decimals;
4402
4603
  }
4403
- //
4404
- onDestroy() {
4405
- var _a, _b;
4406
- (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
4407
- (_b = this._overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
4408
- this._subs.forEach(s => {
4409
- s === null || s === void 0 ? void 0 : s.unsubscribe();
4604
+ set decimals(v) {
4605
+ this._setOption({
4606
+ name: "decimals",
4607
+ value: v !== null && v !== void 0 ? v : 0,
4410
4608
  });
4411
4609
  }
4412
- _handleKeydownHandler(e) {
4413
- // if (e.key === 'Enter' && e.type === 'keydown') {
4414
- // this.toggle();
4415
- // }
4416
- if (e.key === 'Escape') {
4417
- if (this.isOpen) {
4418
- this.close();
4419
- e.stopPropagation();
4420
- }
4421
- }
4610
+ /**
4611
+ * Specifies the smallest value that is valid
4612
+ */
4613
+ get minValue() {
4614
+ return this._minValue;
4422
4615
  }
4423
- toggle() {
4424
- this.isOpen ? this.close() : this.open();
4616
+ set minValue(v) {
4617
+ this._setOption({
4618
+ name: "minValue",
4619
+ value: v != null ? Number(v) : Number.MIN_SAFE_INTEGER,
4620
+ });
4425
4621
  }
4426
- //
4427
- close() {
4428
- var _a;
4429
- if (!this.isOpen) {
4430
- return;
4431
- }
4432
- (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
4433
- this._emitOnClosedEvent();
4622
+ /**
4623
+ * Specifies the greatest value that is valid
4624
+ */
4625
+ get maxValue() {
4626
+ return this._maxValue;
4434
4627
  }
4435
- dispose() {
4436
- var _a;
4437
- this.close();
4438
- (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.dispose();
4439
- this._overlayRef = null;
4628
+ set maxValue(v) {
4629
+ this._setOption({
4630
+ name: "maxValue",
4631
+ value: v != null ? Number(v) : Number.MAX_SAFE_INTEGER,
4632
+ });
4440
4633
  }
4441
- //
4442
- open() {
4443
- if (this.isOpen) {
4444
- return;
4634
+ onViewInit() {
4635
+ super.onViewInit();
4636
+ this._updateMask();
4637
+ }
4638
+ _onOptionChanged(option) {
4639
+ super._onOptionChanged(option);
4640
+ this._updateMask();
4641
+ }
4642
+ _updateMask() {
4643
+ var _a, _b, _c, _d;
4644
+ if (!this._maskObj) {
4645
+ this._maskObj = IMask.createMask({
4646
+ mask: Number,
4647
+ min: this.minValue,
4648
+ max: this.maxValue,
4649
+ thousandsSeparator: this.thousandsSeparator || '',
4650
+ scale: this.decimals,
4651
+ radix: '.',
4652
+ padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
4653
+ });
4445
4654
  }
4446
- this._ensureOverlayCreated();
4447
- this._overlayRef.attach(this._templatePortal);
4448
- this._emitOnOpenedEvent();
4655
+ else {
4656
+ this._maskObj.updateOptions({
4657
+ min: this.minValue,
4658
+ max: this.maxValue,
4659
+ thousandsSeparator: this.thousandsSeparator || '',
4660
+ scale: this.decimals,
4661
+ radix: '.',
4662
+ padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
4663
+ });
4664
+ }
4665
+ (_b = (_a = this._maskDirective) === null || _a === void 0 ? void 0 : _a.maskRef) === null || _b === void 0 ? void 0 : _b.updateValue();
4666
+ (_d = (_c = this._maskDirective) === null || _c === void 0 ? void 0 : _c.maskRef) === null || _d === void 0 ? void 0 : _d.updateControl();
4449
4667
  }
4450
- _ensureOverlayCreated() {
4451
- const targetRef = this._target;
4452
- if (!targetRef)
4453
- return;
4454
- if (!this._overlayRef) {
4455
- if (this._platform.is('Mobile') && this.adaptivityEnabled) {
4456
- this._openAsActionsheet();
4668
+ _handleOnKeydownEvent(e) {
4669
+ const ignore = () => {
4670
+ e.preventDefault();
4671
+ e.stopPropagation();
4672
+ };
4673
+ const input = e.target;
4674
+ const valStr = input.value;
4675
+ const decimalPointIndex = valStr.indexOf('.');
4676
+ const _cursorPos = input.selectionStart;
4677
+ if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
4678
+ if (decimalPointIndex > 0 && _cursorPos > decimalPointIndex && this.decimals > 0) {
4679
+ e.key === 'ArrowDown' ? this.decimalStepDown() : this.decimalStepUp();
4457
4680
  }
4458
4681
  else {
4459
- this._openAsPopover(targetRef);
4460
- }
4461
- if (this.closeTrigger == 'clickout') {
4462
- this._addSub(this._overlayRef._outsidePointerEvents.subscribe(c => {
4463
- const target = c.target;
4464
- const comElem = targetRef;
4465
- if (!(comElem.contains(target))) {
4466
- this.close();
4467
- }
4468
- }));
4682
+ e.key === 'ArrowDown' ? this.stepDown() : this.stepUp();
4469
4683
  }
4470
- this._addSub(this._overlayRef.attachments().subscribe(() => {
4471
- if (!this._isScrollAttached) {
4472
- this._addSub(this._platform.scroll.subscribe(c => {
4473
- if (!c.nativeEvent.target.closest('.ax-overlay-pane'))
4474
- this.updatePosition();
4475
- }));
4476
- this._isScrollAttached = true;
4477
- }
4478
- }));
4479
- }
4480
- if (!this._templatePortal) {
4481
- this._templatePortal = new TemplatePortal(this._baseTemplate, this._viewContainerRef);
4684
+ ignore();
4685
+ setTimeout(() => {
4686
+ input.setSelectionRange(_cursorPos, _cursorPos);
4687
+ }, 5);
4482
4688
  }
4689
+ super._emitOnKeydownEvent(e);
4483
4690
  }
4484
- _openAsPopover(targetRef) {
4485
- this._overlayRef = this._overlay.create({
4486
- positionStrategy: this._overlay.position()
4487
- .flexibleConnectedTo(targetRef)
4488
- .withPositions(Array.isArray(this.position) ? this.position : [this.position])
4489
- .withPush(false),
4490
- disposeOnNavigation: true,
4491
- panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
4492
- maxHeight: 'unset',
4493
- hasBackdrop: this.hasBackdrop,
4494
- backdropClass: [this.backdropClass || 'cdk-overlay-transparent-backdrop']
4495
- });
4691
+ _handleUpDownClick(e, v) {
4692
+ v == 1 ? this.stepUp() : this.stepDown();
4496
4693
  }
4497
- _openAsActionsheet() {
4498
- this._overlayRef = this._overlay.create({
4499
- positionStrategy: this._overlay.position().flexibleConnectedTo(document.body).withPositions([
4500
- {
4501
- originX: 'center',
4502
- originY: 'bottom',
4503
- overlayX: 'center',
4504
- overlayY: 'bottom'
4505
- }
4506
- ]),
4507
- disposeOnNavigation: true,
4508
- panelClass: ['ax-animate-slideInUp', 'ax-animate-faster'],
4509
- hasBackdrop: true,
4510
- width: '100%'
4511
- });
4694
+ _onValueChanging(value) {
4695
+ const v = _.toNumber(value);
4696
+ if (v < this.minValue)
4697
+ return this.minValue;
4698
+ if (v > this.maxValue)
4699
+ return this.maxValue;
4700
+ return v;
4512
4701
  }
4513
- get isOpen() {
4514
- return this._overlayRef ? this._overlayRef.hasAttached() : false;
4702
+ stepUp() {
4703
+ this.value += _.toNumber(this.step);
4515
4704
  }
4516
- _addSub(sub) {
4517
- this._subs.push(sub);
4705
+ stepDown() {
4706
+ this.value -= _.toNumber(this.step);
4518
4707
  }
4519
- updatePosition() {
4520
- var _a;
4521
- (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.updatePosition();
4522
- this.focus();
4708
+ decimalStepUp() {
4709
+ this.value += _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
4710
+ }
4711
+ decimalStepDown() {
4712
+ this.value -= _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
4523
4713
  }
4524
4714
  }
4525
- AXPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1.Overlay }, { token: i1$3.AXPlatform }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
4526
- AXPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXPopoverComponent, selector: "ax-popover", inputs: { target: "target", position: "position", openTrigger: "openTrigger", closeTrigger: "closeTrigger", hasBackdrop: "hasBackdrop", backdropClass: "backdropClass", adaptivityEnabled: "adaptivityEnabled" }, outputs: { onOpened: "onOpened", onClosed: "onClosed" }, host: { listeners: { "keydown": "_handleKeydownHandler($event)" } }, viewQueries: [{ propertyName: "_baseTemplate", first: true, predicate: ["baseTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #baseTemplate>\r\n <ng-content></ng-content>\r\n</ng-template>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4527
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverComponent, decorators: [{
4715
+ AXNumberBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4716
+ AXNumberBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", type: "type", autoComplete: "autoComplete", name: "name", checked: "checked", thousandsSeparator: "thousandsSeparator", padDecimalZeros: "padDecimalZeros", step: "step", decimals: "decimals", decimalStep: "decimalStep", showSpinButtons: "showSpinButtons", minValue: "minValue", maxValue: "maxValue" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-editor-container" }, viewQueries: [{ propertyName: "_maskDirective", first: true, predicate: IMaskDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" \r\n [attr.placeholder]=\"placeholder\" \r\n [imask]=\"_maskObj\" \r\n [unmask]=\"'typed'\"\r\n [attr.min]=\"minValue\"\r\n [attr.max]=\"maxValue\" \r\n [class.ax-state-disabled]=\"disabled\" \r\n [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" \r\n [readonly]=\"readonly\" \r\n [tabindex]=\"tabIndex\" \r\n [(ngModel)]=\"value\"\r\n (focus)=\"_emitOnFocusEvent($event)\" \r\n (blur)=\"_emitOnFocusEvent($event)\" \r\n (keydown)=\"_handleOnKeydownEvent($event)\"\r\n [attr.autocomplete]=\"autoComplete\">\r\n\r\n<div class=\"ax-number-box-arrows\" *ngIf=\"showSpinButtons && !(disabled || readonly)\">\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax-rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,-1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax--rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n</div>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5.IMaskDirective, selector: "[imask]", inputs: ["imask", "unmask", "imaskElement"], outputs: ["accept", "complete"], exportAs: ["imask"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4717
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxComponent, decorators: [{
4528
4718
  type: Component,
4529
- args: [{ selector: 'ax-popover', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #baseTemplate>\r\n <ng-content></ng-content>\r\n</ng-template>" }]
4530
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.Overlay }, { type: i1$3.AXPlatform }, { type: i0.ViewContainerRef }]; }, propDecorators: { target: [{
4531
- type: Input
4532
- }], position: [{
4533
- type: Input
4534
- }], _baseTemplate: [{
4535
- type: ViewChild,
4536
- args: ['baseTemplate']
4537
- }], openTrigger: [{
4719
+ args: [{ selector: 'ax-number-box', inputs: [
4720
+ 'disabled',
4721
+ 'readonly',
4722
+ 'tabIndex',
4723
+ 'size',
4724
+ 'value',
4725
+ ...TEXTBOX_INPUTS,
4726
+ ], outputs: [
4727
+ 'valueChange',
4728
+ 'onValueChanged',
4729
+ 'onBlur',
4730
+ 'onFocus',
4731
+ ...TEXTBOX_OUTPUT,
4732
+ ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-editor-container' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" \r\n [attr.placeholder]=\"placeholder\" \r\n [imask]=\"_maskObj\" \r\n [unmask]=\"'typed'\"\r\n [attr.min]=\"minValue\"\r\n [attr.max]=\"maxValue\" \r\n [class.ax-state-disabled]=\"disabled\" \r\n [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" \r\n [readonly]=\"readonly\" \r\n [tabindex]=\"tabIndex\" \r\n [(ngModel)]=\"value\"\r\n (focus)=\"_emitOnFocusEvent($event)\" \r\n (blur)=\"_emitOnFocusEvent($event)\" \r\n (keydown)=\"_handleOnKeydownEvent($event)\"\r\n [attr.autocomplete]=\"autoComplete\">\r\n\r\n<div class=\"ax-number-box-arrows\" *ngIf=\"showSpinButtons && !(disabled || readonly)\">\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax-rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,-1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax--rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n</div>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>" }]
4733
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { thousandsSeparator: [{
4538
4734
  type: Input
4539
- }], closeTrigger: [{
4735
+ }], padDecimalZeros: [{
4540
4736
  type: Input
4541
- }], hasBackdrop: [{
4737
+ }], step: [{
4542
4738
  type: Input
4543
- }], backdropClass: [{
4739
+ }], decimals: [{
4544
4740
  type: Input
4545
- }], adaptivityEnabled: [{
4741
+ }], decimalStep: [{
4546
4742
  type: Input
4547
- }], onOpened: [{
4548
- type: Output
4549
- }], onClosed: [{
4743
+ }], showSpinButtons: [{
4744
+ type: Input
4745
+ }], minValue: [{
4746
+ type: Input
4747
+ }], maxValue: [{
4748
+ type: Input
4749
+ }], _maskDirective: [{
4750
+ type: ViewChild,
4751
+ args: [IMaskDirective]
4752
+ }] } });
4753
+
4754
+ class AXColorPaletteInputComponent extends AXBaseComponent {
4755
+ constructor(_elementRef, _cdr, _parent) {
4756
+ super(_elementRef, _cdr);
4757
+ this._parent = _parent;
4758
+ this._rgba = {
4759
+ r: 255,
4760
+ g: 255,
4761
+ b: 255,
4762
+ a: 0
4763
+ };
4764
+ this._hex = "#000000";
4765
+ _parent === null || _parent === void 0 ? void 0 : _parent._onInternalColorChanged$.subscribe(e => {
4766
+ if (this._hex != AXColorUtil.toHex(e.color)) {
4767
+ this._hex = AXColorUtil.toHex(e.color);
4768
+ Object.assign(this._rgba, AXColorUtil.toRGB(e.color));
4769
+ }
4770
+ });
4771
+ }
4772
+ _handleChangeInputMode(e) {
4773
+ // switch (this.inputMode) {
4774
+ // case 'rgba':
4775
+ // this.inputMode = 'hsla'
4776
+ // break;
4777
+ // case 'hsla':
4778
+ // this.inputMode = 'hwba'
4779
+ // break;
4780
+ // case 'hwba':
4781
+ // this.inputMode = 'hex'
4782
+ // break;
4783
+ // case 'hex':
4784
+ // this.inputMode = 'rgba'
4785
+ // break;
4786
+ // }
4787
+ this._parent.mode = (this._parent.mode == 'rgba' ? 'hex' : 'rgba');
4788
+ }
4789
+ _handleRGBAValueChanged(e) {
4790
+ const { r, g, b, a } = this._rgba;
4791
+ const _color = `rgba(${r},${g},${b},${a})`;
4792
+ this._parent._onInternalColorChanged$.next({ color: AXColorUtil.toRGB(_color), mode: 'rgba' });
4793
+ }
4794
+ _handleHEXAValueChanged(e) {
4795
+ this._parent._onInternalColorChanged$.next({ color: AXColorUtil.toHex(e.value), mode: 'hex' });
4796
+ }
4797
+ }
4798
+ AXColorPaletteInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteInputComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXColorComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4799
+ AXColorPaletteInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXColorPaletteInputComponent, selector: "ax-color-palette-input", usesInheritance: true, ngImport: i0, template: "<div class=\"palette-input-container\" [ngSwitch]=\"_parent.mode\">\r\n <div class=\"palette-inputs\">\r\n <ng-container *ngSwitchCase=\"'hex'\">\r\n <div>\r\n <ax-text-box class=\"ax-w-full\" [(value)]=\"_hex\" [debounceTime]=\"300\" (onValueChanged)=\"_handleHEXAValueChanged($event)\">\r\n </ax-text-box>\r\n <label>HEX</label>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'rgba'\">\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.r\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>R</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.g\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>G</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.b\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>B</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"1\" [(value)]=\"_rgba.a\" [decimals]=\"2\" [step]=\"0.1\"\r\n [showSpinButtons]=\"false\" (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container>\r\n <!-- <ng-container *ngSwitchCase=\"'hsla'\">\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>H</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>S</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>L</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'hwba'\">\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>H</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>W</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>B</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container> -->\r\n </div>\r\n <ax-button color=\"light\" class=\"ax-w-base\" (onClick)=\"_handleChangeInputMode($event)\">\r\n <ax-icon class=\"ax-ic ax-ic-unfold\"></ax-icon>\r\n </ax-button>\r\n</div>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "placeholder", "maxLength", "type", "autoComplete"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { type: AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "size", "value", "placeholder", "maxLength", "allowNull", "debounceTime", "type", "autoComplete", "name", "checked", "thousandsSeparator", "padDecimalZeros", "step", "decimals", "decimalStep", "showSpinButtons", "minValue", "maxValue"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], encapsulation: i0.ViewEncapsulation.None });
4800
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteInputComponent, decorators: [{
4801
+ type: Component,
4802
+ args: [{ selector: 'ax-color-palette-input', encapsulation: ViewEncapsulation.None, template: "<div class=\"palette-input-container\" [ngSwitch]=\"_parent.mode\">\r\n <div class=\"palette-inputs\">\r\n <ng-container *ngSwitchCase=\"'hex'\">\r\n <div>\r\n <ax-text-box class=\"ax-w-full\" [(value)]=\"_hex\" [debounceTime]=\"300\" (onValueChanged)=\"_handleHEXAValueChanged($event)\">\r\n </ax-text-box>\r\n <label>HEX</label>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'rgba'\">\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.r\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>R</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.g\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>G</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.b\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>B</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"1\" [(value)]=\"_rgba.a\" [decimals]=\"2\" [step]=\"0.1\"\r\n [showSpinButtons]=\"false\" (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container>\r\n <!-- <ng-container *ngSwitchCase=\"'hsla'\">\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>H</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>S</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>L</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'hwba'\">\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>H</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>W</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>B</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container> -->\r\n </div>\r\n <ax-button color=\"light\" class=\"ax-w-base\" (onClick)=\"_handleChangeInputMode($event)\">\r\n <ax-icon class=\"ax-ic ax-ic-unfold\"></ax-icon>\r\n </ax-button>\r\n</div>" }]
4803
+ }], ctorParameters: function () {
4804
+ return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorComponent, decorators: [{
4805
+ type: Optional
4806
+ }, {
4807
+ type: Inject,
4808
+ args: [AXColorComponent]
4809
+ }] }];
4810
+ } });
4811
+
4812
+ class AXColorPalleteComponent extends AXBaseValueComponentMixin {
4813
+ constructor(elementRef, cdr) {
4814
+ super(elementRef, cdr);
4815
+ this._onInternalColorChanged$ = new Subject();
4816
+ this.modeChange = new EventEmitter();
4817
+ this._mode = 'hex';
4818
+ //
4819
+ this._onInternalColorChanged$.subscribe(e => {
4820
+ this.value = e.color;
4821
+ });
4822
+ }
4823
+ /**
4824
+ * A character value that specifies the separator character.
4825
+ */
4826
+ get mode() {
4827
+ return this._mode;
4828
+ }
4829
+ set mode(v) {
4830
+ this._setOption({
4831
+ name: "mode",
4832
+ value: v,
4833
+ });
4834
+ }
4835
+ }
4836
+ AXColorPalleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalleteComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4837
+ AXColorPalleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXColorPalleteComponent, selector: "ax-color-palette", inputs: { disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", mode: "mode" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", modeChange: "modeChange" }, providers: [{ provide: AXColorComponent, useExisting: AXColorPalleteComponent }], usesInheritance: true, ngImport: i0, template: "<ng-content select='ax-header'></ng-content>\r\n\r\n<ng-container [ngTemplateOutlet]=\"default\"></ng-container>\r\n\r\n<ng-template #default>\r\n <ax-color-palette-preview></ax-color-palette-preview>\r\n <ax-color-palette-swatches></ax-color-palette-swatches>\r\n <ng-content select=\"ax-color-palette-favorite\"></ng-content>\r\n <ax-color-palette-input></ax-color-palette-input>\r\n</ng-template>\r\n<ng-content select='ax-footer'></ng-content>", components: [{ type: AXColorPalettePreviewComponent, selector: "ax-color-palette-preview" }, { type: AXColorPaletteSwatchesComponent, selector: "ax-color-palette-swatches, ax-color-palette-favorite", inputs: ["colors"] }, { type: AXColorPaletteInputComponent, selector: "ax-color-palette-input" }], directives: [{ type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4838
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalleteComponent, decorators: [{
4839
+ type: Component,
4840
+ args: [{ selector: 'ax-color-palette', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], encapsulation: ViewEncapsulation.None, providers: [{ provide: AXColorComponent, useExisting: AXColorPalleteComponent }], template: "<ng-content select='ax-header'></ng-content>\r\n\r\n<ng-container [ngTemplateOutlet]=\"default\"></ng-container>\r\n\r\n<ng-template #default>\r\n <ax-color-palette-preview></ax-color-palette-preview>\r\n <ax-color-palette-swatches></ax-color-palette-swatches>\r\n <ng-content select=\"ax-color-palette-favorite\"></ng-content>\r\n <ax-color-palette-input></ax-color-palette-input>\r\n</ng-template>\r\n<ng-content select='ax-footer'></ng-content>" }]
4841
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { modeChange: [{
4550
4842
  type: Output
4551
- }], _handleKeydownHandler: [{
4552
- type: HostListener,
4553
- args: ['keydown', ['$event']]
4843
+ }], mode: [{
4844
+ type: Input
4554
4845
  }] } });
4555
4846
 
4556
- class AXPopoverModule {
4847
+ class AXColorPalettePickerComponent {
4848
+ constructor() { }
4849
+ ngOnInit() { }
4557
4850
  }
4558
- AXPopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4559
- AXPopoverModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, declarations: [AXPopoverComponent], imports: [CommonModule], exports: [AXPopoverComponent] });
4560
- AXPopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, providers: [], imports: [[CommonModule]] });
4561
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, decorators: [{
4851
+ AXColorPalettePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4852
+ AXColorPalettePickerComponentcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXColorPalettePickerComponent, selector: "ax-color-palette-picker", ngImport: i0, template: ``, isInline: true, encapsulation: i0.ViewEncapsulation.None });
4853
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePickerComponent, decorators: [{
4854
+ type: Component,
4855
+ args: [{
4856
+ selector: 'ax-color-palette-picker',
4857
+ template: ``,
4858
+ encapsulation: ViewEncapsulation.None
4859
+ }]
4860
+ }], ctorParameters: function () { return []; } });
4861
+
4862
+ class AXTextBoxModule {
4863
+ }
4864
+ AXTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4865
+ AXTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [CommonModule,
4866
+ FormsModule,
4867
+ AXButtonModule,
4868
+ AXDecoratorModule, i1$3.NgxMaskModule], exports: [AXTextBoxComponent] });
4869
+ AXTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, providers: [], imports: [[
4870
+ CommonModule,
4871
+ FormsModule,
4872
+ AXButtonModule,
4873
+ AXDecoratorModule,
4874
+ NgxMaskModule.forChild()
4875
+ ]] });
4876
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, decorators: [{
4562
4877
  type: NgModule,
4563
4878
  args: [{
4564
- declarations: [AXPopoverComponent],
4565
- imports: [CommonModule],
4566
- exports: [AXPopoverComponent],
4567
- providers: []
4879
+ imports: [
4880
+ CommonModule,
4881
+ FormsModule,
4882
+ AXButtonModule,
4883
+ AXDecoratorModule,
4884
+ NgxMaskModule.forChild()
4885
+ ],
4886
+ exports: [AXTextBoxComponent],
4887
+ declarations: [AXTextBoxComponent],
4888
+ providers: [],
4568
4889
  }]
4569
4890
  }] });
4570
4891
 
4571
- class AXLoadingComponent extends AXBaseComponentMixin {
4572
- /**
4573
- * @ignore
4574
- */
4892
+ class AXLabelComponent extends AXBaseComponentMixin {
4575
4893
  constructor(elementRef, cdr) {
4576
4894
  super(elementRef, cdr);
4577
- this.visibleChange = new EventEmitter();
4578
- this.type = 'spinner';
4579
- }
4580
- get visible() {
4581
- return this._visible;
4582
4895
  }
4583
- set visible(v) {
4584
- if (v != this._visible) {
4585
- this._visible = v;
4586
- v ? this._getHostElement().classList.remove('ax-hide') : this._getHostElement().classList.add('ax-hide');
4587
- this.visibleChange.emit(v);
4588
- }
4896
+ get target() {
4897
+ return this._target;
4589
4898
  }
4590
- onInit() {
4591
- const loading = AXConfig.get(`layout.loading.${this.type}`);
4592
- this._selectedPortal = new ComponentPortal(loading);
4899
+ set target(v) {
4900
+ this._target = v;
4593
4901
  this._cdr.markForCheck();
4594
4902
  }
4595
- _handleAttched(ref) {
4596
- ref = ref;
4597
- if (ref.instance) {
4598
- ref.instance.text = this.text;
4599
- }
4600
- }
4601
4903
  }
4602
- AXLoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4603
- AXLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXLoadingComponent, selector: "ax-loading", inputs: { visible: "visible", type: "type", text: "text" }, outputs: { visibleChange: "visibleChange" }, host: { classAttribute: "ax-loading" }, usesInheritance: true, ngImport: i0, template: `
4604
- <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
4605
- `, isInline: true, directives: [{ type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4606
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingComponent, decorators: [{
4904
+ AXLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4905
+ AXLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXLabelComponent, selector: "ax-label", inputs: { class: "class" }, usesInheritance: true, ngImport: i0, template: "<label [attr.for]=\"target\" [ngClass]=\"class\">\r\n <ng-content></ng-content>\r\n</label>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelComponent, decorators: [{
4607
4907
  type: Component,
4908
+ args: [{ selector: 'ax-label', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<label [attr.for]=\"target\" [ngClass]=\"class\">\r\n <ng-content></ng-content>\r\n</label>" }]
4909
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { class: [{
4910
+ type: Input
4911
+ }] } });
4912
+
4913
+ const COMPONENT$g = [AXLabelComponent];
4914
+ const MODULES$h = [CommonModule];
4915
+ class AXLabelModule {
4916
+ }
4917
+ AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4918
+ AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
4919
+ AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$h]] });
4920
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, decorators: [{
4921
+ type: NgModule,
4608
4922
  args: [{
4609
- selector: 'ax-loading',
4610
- template: `
4611
- <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
4612
- `,
4613
- changeDetection: ChangeDetectionStrategy.OnPush,
4614
- encapsulation: ViewEncapsulation.None,
4615
- host: { class: 'ax-loading' }
4923
+ declarations: [...COMPONENT$g],
4924
+ imports: [...MODULES$h],
4925
+ exports: [...COMPONENT$g],
4926
+ providers: [],
4616
4927
  }]
4617
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { visibleChange: [{
4928
+ }] });
4929
+
4930
+ const COMPONENT$f = [AXNumberBoxComponent];
4931
+ const MODULES$g = [
4932
+ CommonModule,
4933
+ FormsModule,
4934
+ AXButtonModule,
4935
+ AXDecoratorModule,
4936
+ IMaskModule
4937
+ ];
4938
+ class AXNumberBoxModule {
4939
+ }
4940
+ AXNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4941
+ AXNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, declarations: [AXNumberBoxComponent], imports: [CommonModule,
4942
+ FormsModule,
4943
+ AXButtonModule,
4944
+ AXDecoratorModule,
4945
+ IMaskModule], exports: [AXNumberBoxComponent] });
4946
+ AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, providers: [], imports: [[...MODULES$g]] });
4947
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, decorators: [{
4948
+ type: NgModule,
4949
+ args: [{
4950
+ declarations: [...COMPONENT$f],
4951
+ imports: [...MODULES$g],
4952
+ exports: [...COMPONENT$f],
4953
+ providers: [],
4954
+ }]
4955
+ }] });
4956
+
4957
+ const MODULES$f = [
4958
+ AXTextBoxModule,
4959
+ AXLabelModule,
4960
+ AXButtonModule,
4961
+ AXDecoratorModule,
4962
+ AXNumberBoxModule
4963
+ ];
4964
+ const CONPONENTS = [
4965
+ AXColorPalleteComponent,
4966
+ AXColorPalettePreviewComponent,
4967
+ AXColorPaletteSwatchesComponent,
4968
+ AXColorPaletteInputComponent,
4969
+ AXColorPalettePickerComponent
4970
+ ];
4971
+ class AXColorPaletteModule {
4972
+ }
4973
+ AXColorPaletteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4974
+ AXColorPaletteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, declarations: [AXColorPalleteComponent,
4975
+ AXColorPalettePreviewComponent,
4976
+ AXColorPaletteSwatchesComponent,
4977
+ AXColorPaletteInputComponent,
4978
+ AXColorPalettePickerComponent], imports: [CommonModule, AXTextBoxModule,
4979
+ AXLabelModule,
4980
+ AXButtonModule,
4981
+ AXDecoratorModule,
4982
+ AXNumberBoxModule], exports: [AXColorPalleteComponent,
4983
+ AXColorPalettePreviewComponent,
4984
+ AXColorPaletteSwatchesComponent,
4985
+ AXColorPaletteInputComponent,
4986
+ AXColorPalettePickerComponent] });
4987
+ AXColorPaletteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, providers: [], imports: [[CommonModule, ...MODULES$f]] });
4988
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, decorators: [{
4989
+ type: NgModule,
4990
+ args: [{
4991
+ declarations: [...CONPONENTS],
4992
+ imports: [CommonModule, ...MODULES$f],
4993
+ exports: [...CONPONENTS],
4994
+ providers: [],
4995
+ }]
4996
+ }] });
4997
+
4998
+ class AXCollapseComponent extends AXBaseComponent {
4999
+ constructor(elementRef, cdr) {
5000
+ super(elementRef, cdr);
5001
+ this.cdr = cdr;
5002
+ this.isCollapsedChange = new EventEmitter();
5003
+ this._isCollapsed = false;
5004
+ this.caption = null;
5005
+ }
5006
+ get isCollapsed() {
5007
+ return this._isCollapsed;
5008
+ }
5009
+ set isCollapsed(v) {
5010
+ if (v != this._isCollapsed) {
5011
+ this._isCollapsed = v;
5012
+ this.isCollapsedChange.emit(v);
5013
+ this._cdr.detectChanges();
5014
+ }
5015
+ }
5016
+ handleHeaderClick() {
5017
+ this.isCollapsed = !this.isCollapsed;
5018
+ }
5019
+ }
5020
+ AXCollapseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5021
+ AXCollapseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXCollapseComponent, selector: "ax-collapse", inputs: { isCollapsed: "isCollapsed", caption: "caption" }, outputs: { isCollapsedChange: "isCollapsedChange" }, host: { classAttribute: "ax-collapse" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: ["header"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-collapse-header\" [class.ax-state-collapsed]=\"isCollapsed\">\r\n <ng-container *ngIf=\"headerTemplate;else header\">\r\n <div class=\"ax-collapse-custom-header-container\" (click)=\"handleHeaderClick()\">\r\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: {caption,isCollapsed} }\"></ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #header>\r\n <div class=\"ax-collapse-header-container\" (click)=\"handleHeaderClick()\">\r\n <div>\r\n <span class=\"ax-ic ax-ic-chevron ax-collapse-arrow ax-transition-all\"\r\n [class.ax-rotate-90]=\"isCollapsed\"></span>\r\n <ng-content select=\"ax-prefix\"></ng-content>\r\n <span>{{caption}}</span>\r\n </div>\r\n <div>\r\n <ng-content select=\"ax-suffix\"></ng-content>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n\r\n<div class=\"ax-collapse-body ax-transition-all\" *ngIf=\"!isCollapsed\">\r\n <ng-content></ng-content>\r\n</div>", directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5022
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseComponent, decorators: [{
5023
+ type: Component,
5024
+ args: [{ selector: 'ax-collapse', host: { class: 'ax-collapse' }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-collapse-header\" [class.ax-state-collapsed]=\"isCollapsed\">\r\n <ng-container *ngIf=\"headerTemplate;else header\">\r\n <div class=\"ax-collapse-custom-header-container\" (click)=\"handleHeaderClick()\">\r\n <ng-container [ngTemplateOutlet]=\"headerTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: {caption,isCollapsed} }\"></ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #header>\r\n <div class=\"ax-collapse-header-container\" (click)=\"handleHeaderClick()\">\r\n <div>\r\n <span class=\"ax-ic ax-ic-chevron ax-collapse-arrow ax-transition-all\"\r\n [class.ax-rotate-90]=\"isCollapsed\"></span>\r\n <ng-content select=\"ax-prefix\"></ng-content>\r\n <span>{{caption}}</span>\r\n </div>\r\n <div>\r\n <ng-content select=\"ax-suffix\"></ng-content>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n\r\n<div class=\"ax-collapse-body ax-transition-all\" *ngIf=\"!isCollapsed\">\r\n <ng-content></ng-content>\r\n</div>" }]
5025
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { isCollapsedChange: [{
4618
5026
  type: Output
4619
- }], visible: [{
4620
- type: Input
4621
- }], type: [{
5027
+ }], isCollapsed: [{
4622
5028
  type: Input
4623
- }], text: [{
5029
+ }], caption: [{
4624
5030
  type: Input
4625
- }] } });
4626
-
4627
- /**
4628
- * The Button is a component which detects user interaction and triggers a corresponding event
4629
- *
4630
- * @category Components
4631
- */
4632
- class AXColorPickerComponent extends AXBaseSelectionDropdownMixin {
4633
- /**
4634
- * @ignore
4635
- */
4636
- constructor(_elementRef, _cdr, _zone, _platform) {
5031
+ }], headerTemplate: [{
5032
+ type: ContentChild,
5033
+ args: ['header', { static: true }]
5034
+ }] } });
5035
+
5036
+ class AXCollapseGroupComponent extends AXBaseComponent {
5037
+ constructor(elementRef, cdr) {
5038
+ super(elementRef, cdr);
5039
+ this.cdr = cdr;
5040
+ this.accordion = false;
5041
+ this.nonCollapsedIndex = 0;
5042
+ this._subs = [];
5043
+ }
5044
+ onViewInit() {
5045
+ if (this.accordion) {
5046
+ this._items.forEach(c => c.isCollapsed = true);
5047
+ this._items.get(this.nonCollapsedIndex).isCollapsed = false;
5048
+ console.log(this._items[this.nonCollapsedIndex]);
5049
+ this._items.forEach((c1) => {
5050
+ this._subs.push(c1.isCollapsedChange.subscribe(e => {
5051
+ if (!e)
5052
+ this._items.toArray().filter(c2 => c2 != c1).forEach(c => c.isCollapsed = true);
5053
+ }));
5054
+ });
5055
+ }
5056
+ }
5057
+ onDestroy() {
5058
+ this._subs.forEach(s => s.unsubscribe());
5059
+ this._subs = [];
5060
+ }
5061
+ }
5062
+ AXCollapseGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseGroupComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5063
+ AXCollapseGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXCollapseGroupComponent, selector: "ax-collapse-group", inputs: { accordion: "accordion", nonCollapsedIndex: "nonCollapsedIndex" }, host: { classAttribute: "ax-collapse-group" }, queries: [{ propertyName: "_items", predicate: AXCollapseComponent }], usesInheritance: true, ngImport: i0, template: `<ng-content select="ax-collapse"></ng-content>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5064
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseGroupComponent, decorators: [{
5065
+ type: Component,
5066
+ args: [{
5067
+ selector: 'ax-collapse-group',
5068
+ template: `<ng-content select="ax-collapse"></ng-content>`,
5069
+ host: { class: 'ax-collapse-group' },
5070
+ changeDetection: ChangeDetectionStrategy.OnPush,
5071
+ encapsulation: ViewEncapsulation.None,
5072
+ }]
5073
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { accordion: [{
5074
+ type: Input
5075
+ }], nonCollapsedIndex: [{
5076
+ type: Input
5077
+ }], _items: [{
5078
+ type: ContentChildren,
5079
+ args: [AXCollapseComponent]
5080
+ }] } });
5081
+
5082
+ class AXCollapseModule {
5083
+ }
5084
+ AXCollapseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5085
+ AXCollapseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, declarations: [AXCollapseComponent, AXCollapseGroupComponent], imports: [CommonModule], exports: [AXCollapseComponent, AXCollapseGroupComponent] });
5086
+ AXCollapseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, providers: [], imports: [[CommonModule]] });
5087
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, decorators: [{
5088
+ type: NgModule,
5089
+ args: [{
5090
+ declarations: [AXCollapseComponent, AXCollapseGroupComponent],
5091
+ imports: [CommonModule],
5092
+ exports: [AXCollapseComponent, AXCollapseGroupComponent],
5093
+ providers: [],
5094
+ }]
5095
+ }] });
5096
+
5097
+ class AXPopoverComponent extends AXInteractiveComponenetMixin {
5098
+ constructor(_elementRef, _cdr, _zone, _overlay, _platform, _viewContainerRef) {
4637
5099
  super(_elementRef, _cdr);
4638
5100
  this._elementRef = _elementRef;
4639
5101
  this._cdr = _cdr;
4640
5102
  this._zone = _zone;
5103
+ this._overlay = _overlay;
4641
5104
  this._platform = _platform;
4642
- /**
4643
- * Defines the clearButton.
4644
- */
4645
- this.clearButton = false;
4646
- /**
4647
- * Defines the checkbox.
4648
- */
4649
- this.checkbox = false;
4650
- this._isMobile = false;
4651
- this._forceFocus = false;
4652
- this._isMobile = this._platform.is('Mobile');
4653
- this._platform.resize.subscribe(() => {
4654
- this._isMobile = this._platform.is('Mobile');
4655
- this.popover.dispose();
4656
- this._popoverWidth = this._isMobile ? null : this._target.offsetWidth;
4657
- });
5105
+ this._viewContainerRef = _viewContainerRef;
5106
+ this.position = [
5107
+ {
5108
+ originX: 'start',
5109
+ originY: 'bottom',
5110
+ overlayX: 'start',
5111
+ overlayY: 'top',
5112
+ },
5113
+ {
5114
+ originX: 'start',
5115
+ originY: 'top',
5116
+ overlayX: 'start',
5117
+ overlayY: 'bottom'
5118
+ }
5119
+ ];
5120
+ this._subs = [];
5121
+ //
5122
+ this.openTrigger = 'toggle';
5123
+ //
5124
+ this.closeTrigger = 'clickout';
5125
+ //
5126
+ this.hasBackdrop = false;
5127
+ this.adaptivityEnabled = false;
5128
+ //
5129
+ this._mousePos = { x: 0, y: 0 };
5130
+ this._isScrollAttached = false;
5131
+ //
5132
+ this.onOpened = new EventEmitter();
5133
+ this.onClosed = new EventEmitter();
4658
5134
  }
4659
- get emptyTemplate() {
4660
- return this._contentEmptyTemplate;
5135
+ get target() {
5136
+ return this._target;
4661
5137
  }
4662
- _handleArrowClickEvent(e) {
4663
- e.nativeEvent.stopPropagation();
4664
- this.toggle();
5138
+ set target(v) {
5139
+ if (v instanceof HTMLElement)
5140
+ this._target = v;
5141
+ else if (v instanceof ElementRef)
5142
+ this._target = v.nativeElement;
5143
+ else if (v instanceof AXBaseComponent)
5144
+ this._target = v._getInnerElement();
4665
5145
  }
4666
- _handleInputClickEvent(e) {
4667
- e.stopPropagation();
4668
- this.toggle();
5146
+ _emitOnOpenedEvent() {
5147
+ this.onOpened.emit({
5148
+ component: this,
5149
+ htmlElement: this._getHostElement()
5150
+ });
4669
5151
  }
4670
- onInit() {
4671
- super.onInit();
4672
- this._target = this._elementRef.nativeElement;
4673
- this._popoverTitle = this.placeholder || AXTranslator.get('selectbox.popover.title');
5152
+ _emitOnClosedEvent() {
5153
+ this.onClosed.emit({
5154
+ component: this,
5155
+ htmlElement: this._getHostElement()
5156
+ });
4674
5157
  }
5158
+ //
4675
5159
  onViewInit() {
4676
- super.onViewInit();
4677
- this._popoverWidth = this._isMobile ? null : this._target.offsetWidth;
4678
- }
4679
- refresh() {
4680
- this.value = null;
4681
- super.refresh();
4682
- }
4683
- _handleOnItemClick(e, item) {
4684
- if (this.isItemDisabled(item)) {
4685
- return;
4686
- }
4687
- if (!this.multiple)
4688
- this.close();
4689
- this.toggleSelect(item);
4690
- this._cdr.detectChanges();
4691
- }
4692
- _handleListScroll(e) {
4693
- const list = e.target;
4694
- if ((list.scrollTop < list.scrollHeight - list.clientHeight)) {
4695
- return;
5160
+ if (this._target) {
5161
+ if (this.openTrigger === 'mouseover') {
5162
+ const mouseEnter$ = fromEvent(this._target, 'mouseover');
5163
+ this._addSub(mouseEnter$.subscribe(e => {
5164
+ const point = { x: e.clientX, y: e.clientY };
5165
+ if (AXDrawingUtil.isInElementBound(point, this._target))
5166
+ this.open();
5167
+ }));
5168
+ }
5169
+ if (this.closeTrigger === 'mouseout') {
5170
+ const mouseMove$ = fromEvent(document, 'mousemove');
5171
+ this._addSub(mouseMove$.pipe(throttleTime(50)).subscribe(e => {
5172
+ this._mousePos.x = e.clientX;
5173
+ this._mousePos.y = e.clientY;
5174
+ if (this.isOpen) {
5175
+ setTimeout(() => {
5176
+ if (!_.some([this._target, this._overlayRef.overlayElement], el => _.includes(document.elementsFromPoint(this._mousePos.x, this._mousePos.y), el)))
5177
+ this.close();
5178
+ }, 100);
5179
+ }
5180
+ }));
5181
+ }
5182
+ //
5183
+ if (this.openTrigger === 'click' || this.openTrigger === 'toggle') {
5184
+ const click$ = fromEvent(this._target, 'click');
5185
+ this._addSub(click$.subscribe(e => {
5186
+ this.openTrigger == 'toggle' ? this.toggle() : this.open();
5187
+ }));
5188
+ }
4696
5189
  }
4697
- this._fetchData();
4698
5190
  }
4699
- _checkForLoadData() {
4700
- const list = this.listContainer.nativeElement;
4701
- if (this.loadedCount < this.totalCount && list.scrollHeight < ((list.parentElement.clientHeight) * 1.5)) {
4702
- this._fetchData();
4703
- }
5191
+ //
5192
+ onDestroy() {
5193
+ var _a, _b;
5194
+ (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
5195
+ (_b = this._overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
5196
+ this._subs.forEach(s => {
5197
+ s === null || s === void 0 ? void 0 : s.unsubscribe();
5198
+ });
4704
5199
  }
4705
- _onDataLoaded() {
4706
- if (this.popover.isOpen) {
4707
- setTimeout(() => {
4708
- this._checkForLoadData();
4709
- this.popover.updatePosition();
4710
- if (this._forceFocus) {
4711
- this._focusSelectedItem();
4712
- this._forceFocus = false;
4713
- }
4714
- }, 100);
5200
+ _handleKeydownHandler(e) {
5201
+ // if (e.key === 'Enter' && e.type === 'keydown') {
5202
+ // this.toggle();
5203
+ // }
5204
+ if (e.key === 'Escape') {
5205
+ if (this.isOpen) {
5206
+ this.close();
5207
+ e.stopPropagation();
5208
+ }
4715
5209
  }
4716
5210
  }
4717
- _onValueChanged(oldValue, newValue) {
4718
- super._onValueChanged(oldValue, newValue);
5211
+ toggle() {
5212
+ this.isOpen ? this.close() : this.open();
4719
5213
  }
4720
- _handleOnRemoveItemClick(e, item) {
4721
- this.unselectItems(item);
4722
- e.stopPropagation();
5214
+ //
5215
+ close() {
5216
+ var _a;
5217
+ if (!this.isOpen) {
5218
+ return;
5219
+ }
5220
+ (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
5221
+ this._emitOnClosedEvent();
4723
5222
  }
4724
- _handleBadgeRemove(e, item) {
4725
- this.unselectItems(item);
4726
- e.stopPropagation();
5223
+ dispose() {
5224
+ var _a;
4727
5225
  this.close();
5226
+ (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.dispose();
5227
+ this._overlayRef = null;
4728
5228
  }
4729
- _handleKeydown(e) {
4730
- const isLetter = new RegExp(/[a-zA-Z0-9\-]/).test(String.fromCharCode(e.keyCode));
4731
- if (e.code === 'Backspace' && e.type === 'keydown' &&
4732
- ((this.allowNull === true && this.selectedItems.length > 0) ||
4733
- (this.allowNull !== true && this.selectedItems.length > 1))) {
4734
- this.isUserInput = true;
4735
- this.unselectItems(this.selectedItems.pop());
4736
- e.preventDefault();
5229
+ //
5230
+ open() {
5231
+ if (this.isOpen) {
4737
5232
  return;
4738
5233
  }
4739
- else if ((e.code === 'ArrowDown' || e.code === 'ArrowUp' || e.code === 'Space') && !this.popover.isOpen && e.type === 'keydown') {
4740
- if (this.multiple) {
4741
- this.open();
5234
+ this._ensureOverlayCreated();
5235
+ this._overlayRef.attach(this._templatePortal);
5236
+ this._emitOnOpenedEvent();
5237
+ }
5238
+ _ensureOverlayCreated() {
5239
+ const targetRef = this._target;
5240
+ if (!targetRef)
5241
+ return;
5242
+ if (!this._overlayRef) {
5243
+ if (this._platform.is('Mobile') && this.adaptivityEnabled) {
5244
+ this._openAsActionsheet();
4742
5245
  }
4743
5246
  else {
4744
- this.isUserInput = true;
4745
- if (e.ctrlKey || e.code === 'Space') {
4746
- this.open();
4747
- }
4748
- else {
4749
- this._selectedItemByNav((e.key === 'ArrowDown' ? 1 : -1));
4750
- }
5247
+ this._openAsPopover(targetRef);
4751
5248
  }
4752
- e.preventDefault();
4753
- return;
4754
- }
4755
- else if (isLetter) {
4756
- this.text = e.key;
4757
- this.open();
4758
- e.preventDefault();
4759
- return;
4760
- }
4761
- }
4762
- _handlePopoverKeydown(e) {
4763
- var _a, _b;
4764
- if (e.target.tagName == "INPUT" && ['Space', 'Backspace'].includes(e.code))
4765
- return;
4766
- if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0) {
4767
- this.isUserInput = true;
4768
- this._focusItemByNav((e.key === 'ArrowDown' ? 1 : -1));
4769
- e.preventDefault();
4770
- }
4771
- else if (e.code === 'Backspace' &&
4772
- ((this.allowNull === true && this.selectedItems.length > 0) ||
4773
- (this.allowNull !== true && this.selectedItems.length > 1))) {
4774
- this.isUserInput = true;
4775
- this.unselectItems(this.selectedItems.pop());
4776
- e.preventDefault();
4777
- }
4778
- else if ((e.code === 'Space' || e.code === 'Enter')) {
4779
- debugger;
4780
- e.preventDefault();
4781
- const focusedItemId = (_b = (_a = this.listContainer.nativeElement.querySelector('.ax-state-focus')) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.id;
4782
- const focusedItem = _.findLast(this.flatItems, [this.valueField, focusedItemId]);
4783
- if (focusedItem) {
4784
- if (this.isItemDisabled(focusedItem)) {
4785
- return;
4786
- }
4787
- if (this.multiple) {
4788
- this.isUserInput = true;
4789
- this.toggleSelect(focusedItem);
4790
- }
4791
- else {
4792
- this.isUserInput = true;
4793
- this.selectItems(focusedItem);
4794
- this.close();
4795
- }
5249
+ if (this.closeTrigger == 'clickout') {
5250
+ this._addSub(this._overlayRef._outsidePointerEvents.subscribe(c => {
5251
+ const target = c.target;
5252
+ const comElem = targetRef;
5253
+ if (!(comElem.contains(target))) {
5254
+ this.close();
5255
+ }
5256
+ }));
4796
5257
  }
5258
+ this._addSub(this._overlayRef.attachments().subscribe(() => {
5259
+ if (!this._isScrollAttached) {
5260
+ this._addSub(this._platform.scroll.subscribe(c => {
5261
+ if (!c.nativeEvent.target.closest('.ax-overlay-pane'))
5262
+ this.updatePosition();
5263
+ }));
5264
+ this._isScrollAttached = true;
5265
+ }
5266
+ }));
4797
5267
  }
4798
- else if (e.code === "Tab") {
4799
- this.close();
4800
- e.preventDefault();
4801
- e.stopPropagation();
4802
- }
4803
- else if (e.key === 'Escape') {
4804
- this.close();
4805
- e.preventDefault();
4806
- e.stopPropagation();
5268
+ if (!this._templatePortal) {
5269
+ this._templatePortal = new TemplatePortal(this._baseTemplate, this._viewContainerRef);
4807
5270
  }
4808
5271
  }
4809
- _handlePopupOnOpened(e) {
4810
- return __awaiter(this, void 0, void 0, function* () {
4811
- this.popover.focus();
4812
- if (this.displayItems.length == 0) {
4813
- this._forceFocus = true;
4814
- this._fetchData();
4815
- }
4816
- else {
4817
- this._focusSelectedItem();
4818
- }
4819
- debugger;
4820
- if (this._searchBox && !this._isMobile) {
4821
- this._searchBox.focus();
4822
- }
5272
+ _openAsPopover(targetRef) {
5273
+ this._overlayRef = this._overlay.create({
5274
+ positionStrategy: this._overlay.position()
5275
+ .flexibleConnectedTo(targetRef)
5276
+ .withPositions(Array.isArray(this.position) ? this.position : [this.position])
5277
+ .withPush(false),
5278
+ disposeOnNavigation: true,
5279
+ panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
5280
+ maxHeight: 'unset',
5281
+ hasBackdrop: this.hasBackdrop,
5282
+ backdropClass: [this.backdropClass || 'cdk-overlay-transparent-backdrop']
4823
5283
  });
4824
5284
  }
4825
- _handlePopupOnClosed(e) {
4826
- this.focus();
5285
+ _openAsActionsheet() {
5286
+ this._overlayRef = this._overlay.create({
5287
+ positionStrategy: this._overlay.position().flexibleConnectedTo(document.body).withPositions([
5288
+ {
5289
+ originX: 'center',
5290
+ originY: 'bottom',
5291
+ overlayX: 'center',
5292
+ overlayY: 'bottom'
5293
+ }
5294
+ ]),
5295
+ disposeOnNavigation: true,
5296
+ panelClass: ['ax-animate-slideInUp', 'ax-animate-faster'],
5297
+ hasBackdrop: true,
5298
+ width: '100%'
5299
+ });
4827
5300
  }
4828
- _focusItemByNav(sign) {
5301
+ get isOpen() {
5302
+ return this._overlayRef ? this._overlayRef.hasAttached() : false;
5303
+ }
5304
+ _addSub(sub) {
5305
+ this._subs.push(sub);
5306
+ }
5307
+ updatePosition() {
4829
5308
  var _a;
4830
- const list = this.listContainer.nativeElement;
4831
- const fn = (s) => list.querySelector(s);
4832
- const itemDiv = fn(`.ax-list-item.ax-state-focus`) || fn(`.ax-list-item.ax-state-selected`) || fn(`.ax-list-item`);
4833
- let next = (sign == 1 ? itemDiv.nextElementSibling : itemDiv.previousElementSibling);
4834
- if (next) {
4835
- this._focusItemElement(next);
4836
- }
4837
- else {
4838
- const parent = itemDiv.closest('.ax-list-item-group');
4839
- if (parent) {
4840
- const lis = (_a = (sign == 1 ? parent.nextElementSibling : parent.previousElementSibling)) === null || _a === void 0 ? void 0 : _a.querySelectorAll('li');
4841
- const a = sign == 1 ? _.first(lis) : _.last(lis);
4842
- if (a) {
4843
- this._focusItemElement(a);
4844
- }
4845
- }
4846
- }
5309
+ (_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.updatePosition();
5310
+ this.focus();
4847
5311
  }
4848
- _focusSelectedItem() {
4849
- this._zone.runOutsideAngular(() => {
4850
- const list = this.listContainer.nativeElement;
4851
- const fn = (s) => list.querySelector(s);
4852
- const itemDiv = fn(`.ax-list-item.ax-state-selected`) || fn(`.ax-list-item`);
4853
- if (itemDiv) {
4854
- this._focusItemElement(itemDiv);
4855
- }
5312
+ }
5313
+ AXPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1.Overlay }, { token: i1$4.AXPlatform }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
5314
+ AXPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXPopoverComponent, selector: "ax-popover", inputs: { target: "target", position: "position", openTrigger: "openTrigger", closeTrigger: "closeTrigger", hasBackdrop: "hasBackdrop", backdropClass: "backdropClass", adaptivityEnabled: "adaptivityEnabled" }, outputs: { onOpened: "onOpened", onClosed: "onClosed" }, host: { listeners: { "keydown": "_handleKeydownHandler($event)" } }, viewQueries: [{ propertyName: "_baseTemplate", first: true, predicate: ["baseTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #baseTemplate>\r\n <ng-content></ng-content>\r\n</ng-template>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverComponent, decorators: [{
5316
+ type: Component,
5317
+ args: [{ selector: 'ax-popover', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #baseTemplate>\r\n <ng-content></ng-content>\r\n</ng-template>" }]
5318
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.Overlay }, { type: i1$4.AXPlatform }, { type: i0.ViewContainerRef }]; }, propDecorators: { target: [{
5319
+ type: Input
5320
+ }], position: [{
5321
+ type: Input
5322
+ }], _baseTemplate: [{
5323
+ type: ViewChild,
5324
+ args: ['baseTemplate']
5325
+ }], openTrigger: [{
5326
+ type: Input
5327
+ }], closeTrigger: [{
5328
+ type: Input
5329
+ }], hasBackdrop: [{
5330
+ type: Input
5331
+ }], backdropClass: [{
5332
+ type: Input
5333
+ }], adaptivityEnabled: [{
5334
+ type: Input
5335
+ }], onOpened: [{
5336
+ type: Output
5337
+ }], onClosed: [{
5338
+ type: Output
5339
+ }], _handleKeydownHandler: [{
5340
+ type: HostListener,
5341
+ args: ['keydown', ['$event']]
5342
+ }] } });
5343
+
5344
+ class AXPopoverModule {
5345
+ }
5346
+ AXPopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5347
+ AXPopoverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, declarations: [AXPopoverComponent], imports: [CommonModule], exports: [AXPopoverComponent] });
5348
+ AXPopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, providers: [], imports: [[CommonModule]] });
5349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, decorators: [{
5350
+ type: NgModule,
5351
+ args: [{
5352
+ declarations: [AXPopoverComponent],
5353
+ imports: [CommonModule],
5354
+ exports: [AXPopoverComponent],
5355
+ providers: []
5356
+ }]
5357
+ }] });
5358
+
5359
+ const AXBaseColorPickerMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_ValueComponenetMixin(_TextboxComponenetMixin(AXBaseComponent))));
5360
+ /**
5361
+ * The Button is a component which detects user interaction and triggers a corresponding event
5362
+ *
5363
+ * @category Components
5364
+ */
5365
+ class AXColorPickerComponent extends AXBaseColorPickerMixin {
5366
+ /**
5367
+ * @ignore
5368
+ */
5369
+ constructor(_elementRef, _cdr, _zone, _platform) {
5370
+ super(_elementRef, _cdr);
5371
+ this._elementRef = _elementRef;
5372
+ this._zone = _zone;
5373
+ this._platform = _platform;
5374
+ this._mode = 'hex';
5375
+ this._isMobile = false;
5376
+ this._isMobile = this._platform.is('Mobile');
5377
+ this._platform.resize.subscribe(() => {
5378
+ this._isMobile = this._platform.is('Mobile');
5379
+ this.popover.dispose();
4856
5380
  });
4857
5381
  }
4858
- _focusItemElement(el) {
4859
- this._zone.runOutsideAngular(() => {
4860
- const list = this.listContainer.nativeElement;
4861
- list.querySelectorAll('.ax-list-item').forEach(c => {
4862
- if (c == el) {
4863
- c.classList.add('ax-state-focus');
4864
- el.scrollIntoView({ behavior: 'auto' });
4865
- }
4866
- else {
4867
- c.classList.remove('ax-state-focus');
4868
- }
4869
- });
4870
- if (!this._isMobile && this._searchBox)
4871
- this._searchBox.focus();
4872
- else
4873
- el.focus();
4874
- });
5382
+ _handleArrowClickEvent(e) {
5383
+ e.nativeEvent.stopPropagation();
5384
+ this.toggle();
4875
5385
  }
4876
- _selectedItemByNav(sign) {
4877
- const last = _.last(this.selectedItems);
4878
- let i = 0;
4879
- if (last) {
4880
- i = _.findLastIndex(this.flatItems, [this.valueField, last[this.valueField]]);
4881
- }
4882
- i += sign;
4883
- let next = _.nth(this.flatItems, i);
4884
- while ((next === null || next === void 0 ? void 0 : next.children) && (next === null || next === void 0 ? void 0 : next.children.length)) {
4885
- i += sign;
4886
- next = _.nth(this.flatItems, i);
4887
- }
4888
- if (next) {
4889
- this.selectItems(next);
4890
- }
4891
- else if (next == null && sign == 1) {
4892
- this._fetchData();
4893
- }
5386
+ _handleInputClickEvent(e) {
5387
+ e.stopPropagation();
5388
+ this.toggle();
4894
5389
  }
4895
- _onSearchExprChanged(e) {
4896
- this.empty();
4897
- this._forceFocus = true;
4898
- this._fetchData();
5390
+ onInit() {
5391
+ super.onInit();
5392
+ this._target = this._elementRef.nativeElement;
4899
5393
  }
4900
- search(exp) {
4901
- debugger;
4902
- this.empty();
4903
- this._forceFocus = true;
4904
- this._fetchData();
5394
+ onViewInit() {
5395
+ super.onViewInit();
4905
5396
  }
4906
- _fetchData() {
4907
- var _a;
4908
- super._fetchData({ searchQuery: (_a = this._searchBox) === null || _a === void 0 ? void 0 : _a.searchExp });
5397
+ _onValueChanged(oldValue, newValue) {
5398
+ super._onValueChanged(oldValue, newValue);
5399
+ this._colorCode = AXColorUtil.to(newValue, this._mode);
5400
+ }
5401
+ _handlePopupOnOpened(e) {
5402
+ return __awaiter(this, void 0, void 0, function* () {
5403
+ });
5404
+ }
5405
+ _handlePopupOnClosed(e) {
5406
+ this.focus();
4909
5407
  }
4910
5408
  }
4911
- AXColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$3.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
4912
- AXColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXColorPickerComponent, selector: "ax-color-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", clearButton: "clearButton", checkbox: "checkbox" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" }, host: { listeners: { "keydown": "_handleKeydown($event)" }, classAttribute: "ax-editor-container ax-drop-down" }, providers: [
5409
+ AXColorPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$4.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
5410
+ AXColorPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXColorPickerComponent, selector: "ax-color-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, providers: [
4913
5411
  { provide: AXClosbaleComponent, useExisting: AXColorPickerComponent }
4914
- ], queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n \r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n \r\n </div>\r\n</ax-popover> ", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5412
+ ], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div *ngIf=\"value\" class=\"color-badge\" [ngStyle]=\"{'background-color': value}\"></div>\r\n <div class=\"ax-uppercase\">{{_colorCode}}</div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\" *ngIf=\"value && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\"\r\n [adaptivityEnabled]=\"true\" (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\">\r\n <ax-color-palette [(value)]=\"value\" [(mode)]=\"_mode\">\r\n </ax-color-palette>\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXColorPalleteComponent, selector: "ax-color-palette", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "mode"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged", "modeChange"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i7.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4915
5413
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerComponent, decorators: [{
4916
5414
  type: Component,
4917
5415
  args: [{ selector: 'ax-color-picker', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
4918
5416
  { provide: AXClosbaleComponent, useExisting: AXColorPickerComponent }
4919
- ], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n \r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n \r\n </div>\r\n</ax-popover> " }]
4920
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$3.AXPlatform }]; }, propDecorators: { popover: [{
5417
+ ], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div *ngIf=\"value\" class=\"color-badge\" [ngStyle]=\"{'background-color': value}\"></div>\r\n <div class=\"ax-uppercase\">{{_colorCode}}</div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\" *ngIf=\"value && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\"\r\n [adaptivityEnabled]=\"true\" (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\">\r\n <ax-color-palette [(value)]=\"value\" [(mode)]=\"_mode\">\r\n </ax-color-palette>\r\n </div>\r\n</ax-popover>" }]
5418
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
4921
5419
  type: ViewChild,
4922
5420
  args: [AXPopoverComponent, { static: true }]
4923
- }], clearButton: [{
4924
- type: Input
4925
- }], checkbox: [{
4926
- type: Input
4927
- }], listContainer: [{
4928
- type: ViewChild,
4929
- args: ['listContainer', { static: true }]
4930
- }], _contentEmptyTemplate: [{
4931
- type: ContentChild,
4932
- args: ['emptyTemplate']
4933
- }], _handleKeydown: [{
4934
- type: HostListener,
4935
- args: ['keydown', ['$event']]
4936
5421
  }] } });
4937
5422
 
4938
- /**
4939
- * The Textbox is a component which detects user interaction and triggers a corresponding event
4940
- *
4941
- * @category Components
4942
- */
4943
- class AXTextBoxComponent extends AXBaseTextBoxMixin {
5423
+ class AXLoadingComponent extends AXBaseComponentMixin {
4944
5424
  /**
4945
- * @ignore
4946
- */
5425
+ * @ignore
5426
+ */
4947
5427
  constructor(elementRef, cdr) {
4948
5428
  super(elementRef, cdr);
5429
+ this.visibleChange = new EventEmitter();
5430
+ this.type = 'spinner';
5431
+ }
5432
+ get visible() {
5433
+ return this._visible;
5434
+ }
5435
+ set visible(v) {
5436
+ if (v != this._visible) {
5437
+ this._visible = v;
5438
+ v ? this._getHostElement().classList.remove('ax-hide') : this._getHostElement().classList.add('ax-hide');
5439
+ this.visibleChange.emit(v);
5440
+ }
5441
+ }
5442
+ onInit() {
5443
+ const loading = AXConfig.get(`layout.loading.${this.type}`);
5444
+ this._selectedPortal = new ComponentPortal(loading);
5445
+ this._cdr.markForCheck();
5446
+ }
5447
+ _handleAttched(ref) {
5448
+ ref = ref;
5449
+ if (ref.instance) {
5450
+ ref.instance.text = this.text;
5451
+ }
4949
5452
  }
4950
5453
  }
4951
- AXTextBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
4952
- AXTextBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXTextBoxComponent, selector: "ax-text-box", inputs: { disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" }, host: { classAttribute: "ax-editor-container" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" [attr.name]=\"name\" [attr.autocomplete]=\"autoComplete\" [attr.type]=\"type\" [attr.placeholder]=\"placeholder\" [attr.maxlength]=\"maxLength\"\r\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [(ngModel)]=\"value\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-input-mask\">\r\n</ng-content>", directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4953
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxComponent, decorators: [{
5454
+ AXLoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5455
+ AXLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXLoadingComponent, selector: "ax-loading", inputs: { visible: "visible", type: "type", text: "text" }, outputs: { visibleChange: "visibleChange" }, host: { classAttribute: "ax-loading" }, usesInheritance: true, ngImport: i0, template: `
5456
+ <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
5457
+ `, isInline: true, directives: [{ type: i1$5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5458
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingComponent, decorators: [{
4954
5459
  type: Component,
4955
- args: [{ selector: 'ax-text-box', inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'ax-editor-container' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" [attr.name]=\"name\" [attr.autocomplete]=\"autoComplete\" [attr.type]=\"type\" [attr.placeholder]=\"placeholder\" [attr.maxlength]=\"maxLength\"\r\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [(ngModel)]=\"value\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-input-mask\">\r\n</ng-content>" }]
4956
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4957
-
4958
- class AXTextBoxModule {
4959
- }
4960
- AXTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4961
- AXTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [CommonModule,
4962
- FormsModule,
4963
- AXButtonModule,
4964
- AXDecoratorModule, i1$5.NgxMaskModule], exports: [AXTextBoxComponent] });
4965
- AXTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, providers: [], imports: [[
4966
- CommonModule,
4967
- FormsModule,
4968
- AXButtonModule,
4969
- AXDecoratorModule,
4970
- NgxMaskModule.forChild()
4971
- ]] });
4972
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, decorators: [{
4973
- type: NgModule,
4974
5460
  args: [{
4975
- imports: [
4976
- CommonModule,
4977
- FormsModule,
4978
- AXButtonModule,
4979
- AXDecoratorModule,
4980
- NgxMaskModule.forChild()
4981
- ],
4982
- exports: [AXTextBoxComponent],
4983
- declarations: [AXTextBoxComponent],
4984
- providers: [],
5461
+ selector: 'ax-loading',
5462
+ template: `
5463
+ <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
5464
+ `,
5465
+ changeDetection: ChangeDetectionStrategy.OnPush,
5466
+ encapsulation: ViewEncapsulation.None,
5467
+ host: { class: 'ax-loading' }
4985
5468
  }]
4986
- }] });
5469
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { visibleChange: [{
5470
+ type: Output
5471
+ }], visible: [{
5472
+ type: Input
5473
+ }], type: [{
5474
+ type: Input
5475
+ }], text: [{
5476
+ type: Input
5477
+ }] } });
4987
5478
 
4988
5479
  class AXLoadingSpinnerComponent {
4989
5480
  }
@@ -5081,8 +5572,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
5081
5572
  args: ['axIsLoading']
5082
5573
  }] } });
5083
5574
 
5084
- const COMPONENT$g = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
5085
- const MODULES$g = [CommonModule, OverlayModule, PortalModule];
5575
+ const COMPONENT$e = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
5576
+ const MODULES$e = [CommonModule, OverlayModule, PortalModule];
5086
5577
  class AXLoadingModule {
5087
5578
  constructor() {
5088
5579
  AXConfig.set({
@@ -5096,13 +5587,13 @@ class AXLoadingModule {
5096
5587
  }
5097
5588
  AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5098
5589
  AXLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] });
5099
- AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$g]] });
5590
+ AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$e]] });
5100
5591
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, decorators: [{
5101
5592
  type: NgModule,
5102
5593
  args: [{
5103
- declarations: [...COMPONENT$g],
5104
- imports: [...MODULES$g],
5105
- exports: [...COMPONENT$g],
5594
+ declarations: [...COMPONENT$e],
5595
+ imports: [...MODULES$e],
5596
+ exports: [...COMPONENT$e],
5106
5597
  providers: [],
5107
5598
  }]
5108
5599
  }], ctorParameters: function () { return []; } });
@@ -5268,8 +5759,10 @@ AXColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
5268
5759
  A11yModule,
5269
5760
  AXLoadingModule,
5270
5761
  AXTranslationModule,
5271
- AXTextBoxModule], exports: [AXColorPickerComponent] });
5272
- AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule,
5762
+ AXTextBoxModule,
5763
+ AXColorPaletteModule], exports: [AXColorPickerComponent] });
5764
+ AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[
5765
+ CommonModule,
5273
5766
  AXCommonModule,
5274
5767
  FormsModule,
5275
5768
  AXDecoratorModule,
@@ -5278,12 +5771,14 @@ AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
5278
5771
  A11yModule,
5279
5772
  AXLoadingModule,
5280
5773
  AXTranslationModule,
5281
- AXTextBoxModule
5774
+ AXTextBoxModule,
5775
+ AXColorPaletteModule
5282
5776
  ]] });
5283
5777
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerModule, decorators: [{
5284
5778
  type: NgModule,
5285
5779
  args: [{
5286
- imports: [CommonModule,
5780
+ imports: [
5781
+ CommonModule,
5287
5782
  AXCommonModule,
5288
5783
  FormsModule,
5289
5784
  AXDecoratorModule,
@@ -5292,7 +5787,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
5292
5787
  A11yModule,
5293
5788
  AXLoadingModule,
5294
5789
  AXTranslationModule,
5295
- AXTextBoxModule
5790
+ AXTextBoxModule,
5791
+ AXColorPaletteModule
5296
5792
  ],
5297
5793
  exports: [AXColorPickerComponent],
5298
5794
  declarations: [AXColorPickerComponent],
@@ -5345,7 +5841,7 @@ class AXDataListComponent extends AXBaseSelectionValueMixin {
5345
5841
  }
5346
5842
  }
5347
5843
  AXDataListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5348
- AXDataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDataListComponent, selector: "ax-datalist", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", items: "items", pageSize: "pageSize", itemTemplate: "itemTemplate", emptyTemplate: "emptyTemplate", loadingTemplate: "loadingTemplate" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-list ax-list-container" }, queries: [{ propertyName: "_contentItemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true, static: true }, { propertyName: "_contentloadingTemplate", first: true, predicate: ["loadingTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "_container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-list-items-container ax-default ax-vertical\" (scroll)=\"_handleListScroll($event)\" #container>\r\n <ng-container *ngFor=\"let item of displayItems;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ item ? _getItemDisplayTextTemplte(item) : 'Loading...'}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>", components: [{ type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5844
+ AXDataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDataListComponent, selector: "ax-datalist", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", items: "items", pageSize: "pageSize", itemTemplate: "itemTemplate", emptyTemplate: "emptyTemplate", loadingTemplate: "loadingTemplate" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-list ax-list-container" }, queries: [{ propertyName: "_contentItemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true, static: true }, { propertyName: "_contentloadingTemplate", first: true, predicate: ["loadingTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "_container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-list-items-container ax-default ax-vertical\" (scroll)=\"_handleListScroll($event)\" #container>\r\n <ng-container *ngFor=\"let item of displayItems;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ item ? _getItemDisplayTextTemplte(item) : 'Loading...'}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>", components: [{ type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5349
5845
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListComponent, decorators: [{
5350
5846
  type: Component,
5351
5847
  args: [{ selector: 'ax-datalist', inputs: ['disabled', 'readonly', 'tabIndex', 'size', 'value', 'items', 'pageSize'], outputs: ['valueChange', 'onValueChanged', 'onBlur', 'onFocus'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-list ax-list-container' }, template: "<div class=\"ax-list-items-container ax-default ax-vertical\" (scroll)=\"_handleListScroll($event)\" #container>\r\n <ng-container *ngFor=\"let item of displayItems;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ item ? _getItemDisplayTextTemplte(item) : 'Loading...'}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>" }]
@@ -5369,19 +5865,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
5369
5865
  type: Input
5370
5866
  }] } });
5371
5867
 
5372
- const COMPONENT$f = [AXDataListComponent];
5373
- const MODULES$f = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
5868
+ const COMPONENT$d = [AXDataListComponent];
5869
+ const MODULES$d = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
5374
5870
  class AXDataListModule {
5375
5871
  }
5376
5872
  AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5377
5873
  AXDataListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, declarations: [AXDataListComponent], imports: [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule], exports: [AXDataListComponent] });
5378
- AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$f]] });
5874
+ AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$d]] });
5379
5875
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, decorators: [{
5380
5876
  type: NgModule,
5381
5877
  args: [{
5382
- declarations: [...COMPONENT$f],
5383
- imports: [...MODULES$f],
5384
- exports: [...COMPONENT$f],
5878
+ declarations: [...COMPONENT$d],
5879
+ imports: [...MODULES$d],
5880
+ exports: [...COMPONENT$d],
5385
5881
  providers: [],
5386
5882
  }]
5387
5883
  }] });
@@ -5534,12 +6030,12 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
5534
6030
  input.setSelectionRange(start, end);
5535
6031
  }
5536
6032
  }
5537
- AXDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$3.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
6033
+ AXDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$4.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
5538
6034
  AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDatePickerComponent, selector: "ax-date-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format", interface: "interface" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", typeChange: "typeChange", disabledDatesChange: "disabledDatesChange", holidayDatesChange: "holidayDatesChange", onNavigate: "onNavigate", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, providers: [{ provide: AXClosbaleComponent, useExisting: AXDatePickerComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_calendar", first: true, predicate: AXCalendarComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-calendar-options\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }, { type: AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "debounceTime", "name", "checked", "disabled", "tabIndex", "depth", "activeView", "min", "max", "disabledDates", "type", "holidayDates", "interface"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus", "depthChange", "typeChange", "disabledDatesChange", "holidayDatesChange", "onNavigate"] }], directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5539
6035
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatePickerComponent, decorators: [{
5540
6036
  type: Component,
5541
6037
  args: [{ selector: 'ax-date-picker', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...CALENDAR_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...CALENDAR_OUTPUTS], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXDatePickerComponent }], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-calendar-options\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n\r\n </div>\r\n</ax-popover>" }]
5542
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$3.AXPlatform }]; }, propDecorators: { popover: [{
6038
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
5543
6039
  type: ViewChild,
5544
6040
  args: [AXPopoverComponent, { static: true }]
5545
6041
  }], _calendar: [{
@@ -5555,8 +6051,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
5555
6051
  type: Input
5556
6052
  }] } });
5557
6053
 
5558
- const COMPONENT$e = [AXDatePickerComponent];
5559
- const MODULES$e = [
6054
+ const COMPONENT$c = [AXDatePickerComponent];
6055
+ const MODULES$c = [
5560
6056
  CommonModule,
5561
6057
  AXCalendarModule,
5562
6058
  AXTextBoxModule,
@@ -5577,13 +6073,13 @@ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
5577
6073
  AXDecoratorModule,
5578
6074
  AXDateTimeModule,
5579
6075
  FormsModule], exports: [AXDatePickerComponent] });
5580
- AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$e]] });
6076
+ AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$c]] });
5581
6077
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, decorators: [{
5582
6078
  type: NgModule,
5583
6079
  args: [{
5584
- declarations: [...COMPONENT$e],
5585
- imports: [...MODULES$e],
5586
- exports: [...COMPONENT$e],
6080
+ declarations: [...COMPONENT$c],
6081
+ imports: [...MODULES$c],
6082
+ exports: [...COMPONENT$c],
5587
6083
  providers: [],
5588
6084
  }]
5589
6085
  }] });
@@ -5615,7 +6111,7 @@ class AXDialogComponent extends AXBaseComponentMixin {
5615
6111
  }
5616
6112
  }
5617
6113
  AXDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
5618
- AXDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDialogComponent, selector: "ax-dialog", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" tabindex=\"0\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <footer class=\"ax-dialog-footer\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" [submitBehavior]=\"button.submitBehavior\" [cancelBehavior]=\"button.cancelBehavior\" (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\" [color]=\"button.color\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n </footer>\r\n </div>\r\n\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i8.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6114
+ AXDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDialogComponent, selector: "ax-dialog", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" tabindex=\"0\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <footer class=\"ax-dialog-footer\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" [submitBehavior]=\"button.submitBehavior\" [cancelBehavior]=\"button.cancelBehavior\" (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\" [color]=\"button.color\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n </footer>\r\n </div>\r\n\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i7.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5619
6115
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogComponent, decorators: [{
5620
6116
  type: Component,
5621
6117
  args: [{ selector: 'ax-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" tabindex=\"0\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <footer class=\"ax-dialog-footer\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" [submitBehavior]=\"button.submitBehavior\" [cancelBehavior]=\"button.cancelBehavior\" (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\" [color]=\"button.color\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n </footer>\r\n </div>\r\n\r\n</div>" }]
@@ -5911,19 +6407,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
5911
6407
  }]
5912
6408
  }] });
5913
6409
 
5914
- const COMPONENT$d = [AXDialogComponent];
5915
- const MODULES$d = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule];
6410
+ const COMPONENT$b = [AXDialogComponent];
6411
+ const MODULES$b = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule];
5916
6412
  class AXDialogModule {
5917
6413
  }
5918
6414
  AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5919
6415
  AXDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, declarations: [AXDialogComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule], exports: [AXDialogComponent] });
5920
- AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$d]] });
6416
+ AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$b]] });
5921
6417
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, decorators: [{
5922
6418
  type: NgModule,
5923
6419
  args: [{
5924
- declarations: [...COMPONENT$d],
5925
- imports: [...MODULES$d],
5926
- exports: [...COMPONENT$d],
6420
+ declarations: [...COMPONENT$b],
6421
+ imports: [...MODULES$b],
6422
+ exports: [...COMPONENT$b],
5927
6423
  providers: [],
5928
6424
  }]
5929
6425
  }] });
@@ -6063,14 +6559,17 @@ class AXFormComponent extends AXBaseComponentMixin {
6063
6559
  _getComponenets() {
6064
6560
  return Array.from(this._getHostElement().querySelectorAll('[ax-form-input="true"]'));
6065
6561
  }
6066
- validate() {
6562
+ validate(...args) {
6067
6563
  const widgets = this._getComponenets();
6068
6564
  //
6069
6565
  return new Promise((resolve, reject) => {
6070
6566
  if (widgets.length === 0) {
6071
6567
  return Promise.resolve({ result: true });
6072
6568
  }
6073
- Promise.all(widgets.map((c) => c.__axContext__.validate())).then((rules) => {
6569
+ Promise.all(widgets.map((c) => c.__axContext__)
6570
+ .filter(c => (args == null || args.length == 0) || args.includes(c.name))
6571
+ .map((c) => c.validate()))
6572
+ .then((rules) => {
6074
6573
  const failed = rules.filter((c) => !c.result);
6075
6574
  if (failed.length) {
6076
6575
  reject({
@@ -6092,12 +6591,12 @@ class AXFormComponent extends AXBaseComponentMixin {
6092
6591
  }
6093
6592
  }
6094
6593
  AXFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXFormComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
6095
- AXFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXFormComponent, selector: "ax-form", usesInheritance: true, ngImport: i0, template: '<div class="ax-form"><ng-content></ng-content></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6594
+ AXFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXFormComponent, selector: "ax-form", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6096
6595
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXFormComponent, decorators: [{
6097
6596
  type: Component,
6098
6597
  args: [{
6099
6598
  selector: 'ax-form',
6100
- template: '<div class="ax-form"><ng-content></ng-content></div>',
6599
+ template: '<ng-content></ng-content>',
6101
6600
  encapsulation: ViewEncapsulation.None,
6102
6601
  changeDetection: ChangeDetectionStrategy.OnPush,
6103
6602
  }]
@@ -6169,57 +6668,80 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
6169
6668
  type: Input
6170
6669
  }] } });
6171
6670
 
6172
- const COMPONENT$c = [AXInputMaskComponent];
6173
- const MODULES$c = [CommonModule, NgxMaskModule.forRoot(), IMaskModule];
6671
+ const COMPONENT$a = [AXInputMaskComponent];
6672
+ const MODULES$a = [CommonModule, NgxMaskModule.forRoot(), IMaskModule];
6174
6673
  class AXInputMaskModule {
6175
6674
  }
6176
6675
  AXInputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6177
- AXInputMaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, declarations: [AXInputMaskComponent], imports: [CommonModule, i1$5.NgxMaskModule, IMaskModule], exports: [AXInputMaskComponent] });
6178
- AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$c]] });
6676
+ AXInputMaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, declarations: [AXInputMaskComponent], imports: [CommonModule, i1$3.NgxMaskModule, IMaskModule], exports: [AXInputMaskComponent] });
6677
+ AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$a]] });
6179
6678
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, decorators: [{
6180
6679
  type: NgModule,
6181
6680
  args: [{
6182
- declarations: [...COMPONENT$c],
6183
- imports: [...MODULES$c],
6184
- exports: [...COMPONENT$c],
6681
+ declarations: [...COMPONENT$a],
6682
+ imports: [...MODULES$a],
6683
+ exports: [...COMPONENT$a],
6185
6684
  providers: [],
6186
6685
  }]
6187
6686
  }] });
6188
6687
 
6189
- class AXLabelComponent extends AXBaseComponentMixin {
6190
- constructor(elementRef, cdr) {
6191
- super(elementRef, cdr);
6688
+ class AXSearchBoxComponent extends AXBaseComponentMixin {
6689
+ constructor(_elementRef, _cdr, _parent) {
6690
+ super(_elementRef, _cdr);
6691
+ this._parent = _parent;
6692
+ this.placeholder = 'common.search';
6693
+ this.debounceTime = 500;
6694
+ this.searchExp = null;
6192
6695
  }
6193
- get target() {
6194
- return this._target;
6696
+ _onSearchExprChanged(e) {
6697
+ if (this._parent && this._parent.search) {
6698
+ this._parent.search(e.value);
6699
+ }
6195
6700
  }
6196
- set target(v) {
6197
- this._target = v;
6198
- this._cdr.markForCheck();
6701
+ focus() {
6702
+ var _a;
6703
+ (_a = this._textbox) === null || _a === void 0 ? void 0 : _a.focus();
6704
+ }
6705
+ clear() {
6706
+ this._textbox._setValue(null);
6199
6707
  }
6200
6708
  }
6201
- AXLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
6202
- AXLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXLabelComponent, selector: "ax-label", inputs: { class: "class" }, usesInheritance: true, ngImport: i0, template: "<label [attr.for]=\"target\" [ngClass]=\"class\">\r\n <ng-content></ng-content>\r\n</label>", directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6203
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelComponent, decorators: [{
6709
+ AXSearchBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXSearchableComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
6710
+ AXSearchBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXSearchBoxComponent, selector: "ax-search-box", inputs: { placeholder: "placeholder", debounceTime: "debounceTime", searchExp: "searchExp" }, viewQueries: [{ propertyName: "_textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\" >\r\n </ax-icon>\r\n </ax-prefix>\r\n <ax-suffix>\r\n <ax-button look=\"blank\" color=\"danger\" *ngIf=\"searchExp\" (onClick)=\"clear()\">\r\n <ax-icon class=\"ax-ic ax-ic-close\">\r\n </ax-icon>\r\n </ax-button>\r\n </ax-suffix>\r\n</ax-text-box>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "placeholder", "maxLength", "type", "autoComplete"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6711
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, decorators: [{
6204
6712
  type: Component,
6205
- args: [{ selector: 'ax-label', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<label [attr.for]=\"target\" [ngClass]=\"class\">\r\n <ng-content></ng-content>\r\n</label>" }]
6206
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { class: [{
6713
+ args: [{ selector: 'ax-search-box', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\" >\r\n </ax-icon>\r\n </ax-prefix>\r\n <ax-suffix>\r\n <ax-button look=\"blank\" color=\"danger\" *ngIf=\"searchExp\" (onClick)=\"clear()\">\r\n <ax-icon class=\"ax-ic ax-ic-close\">\r\n </ax-icon>\r\n </ax-button>\r\n </ax-suffix>\r\n</ax-text-box>" }]
6714
+ }], ctorParameters: function () {
6715
+ return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXSearchableComponent, decorators: [{
6716
+ type: Optional
6717
+ }, {
6718
+ type: Inject,
6719
+ args: [AXSearchableComponent]
6720
+ }] }];
6721
+ }, propDecorators: { _textbox: [{
6722
+ type: ViewChild,
6723
+ args: [AXTextBoxComponent]
6724
+ }], placeholder: [{
6725
+ type: Input
6726
+ }], debounceTime: [{
6727
+ type: Input
6728
+ }], searchExp: [{
6207
6729
  type: Input
6208
6730
  }] } });
6209
6731
 
6210
- const COMPONENT$b = [AXLabelComponent];
6211
- const MODULES$b = [CommonModule];
6212
- class AXLabelModule {
6732
+ const COMPONENT$9 = [AXSearchBoxComponent];
6733
+ const MODULES$9 = [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule, AXButtonModule];
6734
+ class AXSearchBoxModule {
6213
6735
  }
6214
- AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6215
- AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
6216
- AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$b]] });
6217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, decorators: [{
6736
+ AXSearchBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6737
+ AXSearchBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, declarations: [AXSearchBoxComponent], imports: [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule, AXButtonModule], exports: [AXSearchBoxComponent] });
6738
+ AXSearchBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, providers: [], imports: [[...MODULES$9]] });
6739
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, decorators: [{
6218
6740
  type: NgModule,
6219
6741
  args: [{
6220
- declarations: [...COMPONENT$b],
6221
- imports: [...MODULES$b],
6222
- exports: [...COMPONENT$b],
6742
+ declarations: [...COMPONENT$9],
6743
+ imports: [...MODULES$9],
6744
+ exports: [...COMPONENT$9],
6223
6745
  providers: [],
6224
6746
  }]
6225
6747
  }] });
@@ -6234,6 +6756,19 @@ class AXMenuComponent extends AXBaseMenuMixin {
6234
6756
  super(elementRef, cdr);
6235
6757
  this.elementRef = elementRef;
6236
6758
  this.cdr = cdr;
6759
+ this._forceFocus = false;
6760
+ window.addEventListener('click', (e) => {
6761
+ if (this.displayItems.length > 0) {
6762
+ const target = document.querySelector('UL');
6763
+ if (e.target != target) {
6764
+ this.displayItems.forEach((element) => {
6765
+ element.isActive = false;
6766
+ element.isOpen = false;
6767
+ });
6768
+ cdr.detectChanges();
6769
+ }
6770
+ }
6771
+ });
6237
6772
  }
6238
6773
  get emptyTemplate() {
6239
6774
  return this._contentEmptyTemplate;
@@ -6295,342 +6830,118 @@ class AXMenuComponent extends AXBaseMenuMixin {
6295
6830
  if (this.isLoading) {
6296
6831
  return;
6297
6832
  }
6298
- if (!item[this.disableField] && this.openMode === 'hover') {
6299
- if (((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 || item[this.hasChildField]) {
6300
- if (((_b = item.children) === null || _b === void 0 ? void 0 : _b.length) > 0) {
6301
- this._closeChild(item.children);
6302
- }
6303
- item.isOpen = true;
6304
- }
6305
- this.onMenuItemClick.emit({
6306
- component: this,
6307
- item: item,
6308
- nativeEvent: e,
6309
- });
6310
- if (item.isOpen && item[this.hasChildField] && !item.children) {
6311
- item.isLoading = true;
6312
- this._fetchData(item[this.valueField]).then(() => {
6313
- item.isLoading = false;
6314
- });
6315
- }
6316
- }
6317
- e.stopPropagation();
6318
- e.preventDefault();
6319
- }
6320
- _onMouseLeave(item) {
6321
- var _a, _b;
6322
- if (!item[this.disableField] && this.openMode === 'hover') {
6323
- if (((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 || item[this.hasChildField]) {
6324
- if (((_b = item.children) === null || _b === void 0 ? void 0 : _b.length) > 0) {
6325
- this._closeChild(item.children);
6326
- }
6327
- item.isOpen = false;
6328
- }
6329
- }
6330
- }
6331
- _notActive(items) {
6332
- items.forEach((element) => {
6333
- var _a;
6334
- element.isActive = false;
6335
- if (((_a = element.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
6336
- this._notActive(element.children);
6337
- }
6338
- });
6339
- }
6340
- _closeChild(items) {
6341
- items.forEach((element) => {
6342
- var _a;
6343
- element.isOpen = false;
6344
- if (((_a = element.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
6345
- this._closeChild(element.children);
6346
- }
6347
- });
6348
- }
6349
- _setParentNode(item, parentId) {
6350
- item.forEach((element) => {
6351
- element.parentId = parentId;
6352
- });
6353
- }
6354
- _getDirection() {
6355
- if (this.direction === 'horizontal') {
6356
- return 'horizontal-mode';
6357
- }
6358
- else {
6359
- return 'vertical-mode';
6360
- }
6361
- }
6362
- }
6363
- AXMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
6364
- AXMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXMenuComponent, selector: "ax-menu", inputs: { disabled: "disabled", tabIndex: "tabIndex", textField: "textField", valueField: "valueField", items: "items", id: "id", parentId: "parentId", iconField: "iconField", tooltip: "tooltip", isOpen: "isOpen", isActive: "isActive", visibleField: "visibleField", disableField: "disableField", hasChildField: "hasChildField", openMode: "openMode", direction: "direction" }, outputs: { onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-menu" }, queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\" (mouseleave)=\"_onMouseLeave(item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div *ngIf=\"item?.children?.length > 0 || item[hasChildField]\" class=\"ax-menu-end-side\">\r\n <ax-icon *ngIf=\"!item.isLoading\" [ngClass]=\"{'active-icon': item.isOpen}\" class=\"ax-ic-chevron\">\r\n </ax-icon>\r\n <ax-loading *ngIf=\"item.isLoading\">\r\n </ax-loading>\r\n </div>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>", components: [{ type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "trans": i1$3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6365
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, decorators: [{
6366
- type: Component,
6367
- args: [{ selector: 'ax-menu', inputs: [...INTERACTIVE_INPUTS, ...BASEMENU_INPUTS], outputs: [...INTERACTIVE_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-menu' }, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\" (mouseleave)=\"_onMouseLeave(item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div *ngIf=\"item?.children?.length > 0 || item[hasChildField]\" class=\"ax-menu-end-side\">\r\n <ax-icon *ngIf=\"!item.isLoading\" [ngClass]=\"{'active-icon': item.isOpen}\" class=\"ax-ic-chevron\">\r\n </ax-icon>\r\n <ax-loading *ngIf=\"item.isLoading\">\r\n </ax-loading>\r\n </div>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>" }]
6368
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _contentEmptyTemplate: [{
6369
- type: ContentChild,
6370
- args: ['emptyTemplate']
6371
- }] } });
6372
-
6373
- const COMPONENT$a = [AXMenuComponent];
6374
- const MODULES$a = [CommonModule, AXDecoratorModule];
6375
- class AXMenuModule {
6376
- }
6377
- AXMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6378
- AXMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, declarations: [AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule,
6379
- AXTranslationModule,
6380
- AXPopoverModule], exports: [AXMenuComponent] });
6381
- AXMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, providers: [], imports: [[
6382
- ...MODULES$a,
6383
- AXLoadingModule,
6384
- AXTranslationModule,
6385
- AXPopoverModule,
6386
- ]] });
6387
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, decorators: [{
6388
- type: NgModule,
6389
- args: [{
6390
- declarations: [...COMPONENT$a],
6391
- imports: [
6392
- ...MODULES$a,
6393
- AXLoadingModule,
6394
- AXTranslationModule,
6395
- AXPopoverModule,
6396
- ],
6397
- exports: [...COMPONENT$a],
6398
- providers: [],
6399
- }]
6400
- }] });
6401
-
6402
- /**
6403
- * The NumberBox is a component which detects user interaction and triggers a corresponding event
6404
- *
6405
- * @category Components
6406
- */
6407
- class AXNumberBoxComponent extends AXBaseTextBoxMixin {
6408
- /**
6409
- * @ignore
6410
- */
6411
- constructor(elementRef, cdr) {
6412
- super(elementRef, cdr);
6413
- this.cdr = cdr;
6414
- this._padDecimalZeros = false;
6415
- /**
6416
- * Specifies the value that is used to increment or decrement the **Integer** part of number
6417
- */
6418
- this.step = 1;
6419
- this._decimals = 0;
6420
- /**
6421
- * Specifies the value that is used to increment or decrement the **Deciaml** part of number
6422
- */
6423
- this.decimalStep = 'auto';
6424
- /**
6425
- * Specifies whether the Up and Down spin buttons will be rendered or not
6426
- */
6427
- this.showSpinButtons = true;
6428
- this._minValue = Number.MIN_SAFE_INTEGER;
6429
- this._maxValue = Number.MAX_SAFE_INTEGER;
6430
- }
6431
- /**
6432
- * A character value that specifies the separator character.
6433
- */
6434
- get thousandsSeparator() {
6435
- return this._thousandsSeparator;
6436
- }
6437
- set thousandsSeparator(v) {
6438
- this._setOption({
6439
- name: "thousandsSeparator",
6440
- value: v !== null && v !== void 0 ? v : '',
6441
- });
6442
- }
6443
- /**
6444
- * A character value that specifies the separator character.
6445
- */
6446
- get padDecimalZeros() {
6447
- return this._padDecimalZeros;
6448
- }
6449
- set padDecimalZeros(v) {
6450
- this._setOption({
6451
- name: "padDecimalZeros",
6452
- value: v,
6453
- });
6454
- }
6455
- /**
6456
- * Specifies the number of decimals that the user can enter
6457
- */
6458
- get decimals() {
6459
- return this._decimals;
6460
- }
6461
- set decimals(v) {
6462
- this._setOption({
6463
- name: "decimals",
6464
- value: v !== null && v !== void 0 ? v : 0,
6465
- });
6466
- }
6467
- /**
6468
- * Specifies the smallest value that is valid
6469
- */
6470
- get minValue() {
6471
- return this._minValue;
6472
- }
6473
- set minValue(v) {
6474
- this._setOption({
6475
- name: "minValue",
6476
- value: v != null ? Number(v) : Number.MIN_SAFE_INTEGER,
6477
- });
6478
- }
6479
- /**
6480
- * Specifies the greatest value that is valid
6481
- */
6482
- get maxValue() {
6483
- return this._maxValue;
6484
- }
6485
- set maxValue(v) {
6486
- this._setOption({
6487
- name: "maxValue",
6488
- value: v != null ? Number(v) : Number.MAX_SAFE_INTEGER,
6489
- });
6490
- }
6491
- onViewInit() {
6492
- super.onViewInit();
6493
- this._updateMask();
6494
- }
6495
- _onOptionChanged(option) {
6496
- super._onOptionChanged(option);
6497
- this._updateMask();
6498
- }
6499
- _updateMask() {
6500
- var _a, _b, _c, _d;
6501
- if (!this._maskObj) {
6502
- this._maskObj = IMask.createMask({
6503
- mask: Number,
6504
- min: this.minValue,
6505
- max: this.maxValue,
6506
- thousandsSeparator: this.thousandsSeparator || '',
6507
- scale: this.decimals,
6508
- radix: '.',
6509
- padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
6510
- });
6511
- }
6512
- else {
6513
- this._maskObj.updateOptions({
6514
- min: this.minValue,
6515
- max: this.maxValue,
6516
- thousandsSeparator: this.thousandsSeparator || '',
6517
- scale: this.decimals,
6518
- radix: '.',
6519
- padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
6520
- });
6521
- }
6522
- (_b = (_a = this._maskDirective) === null || _a === void 0 ? void 0 : _a.maskRef) === null || _b === void 0 ? void 0 : _b.updateValue();
6523
- (_d = (_c = this._maskDirective) === null || _c === void 0 ? void 0 : _c.maskRef) === null || _d === void 0 ? void 0 : _d.updateControl();
6524
- }
6525
- _handleOnKeydownEvent(e) {
6526
- const ignore = () => {
6527
- e.preventDefault();
6528
- e.stopPropagation();
6529
- };
6530
- const input = e.target;
6531
- const valStr = input.value;
6532
- const decimalPointIndex = valStr.indexOf('.');
6533
- const _cursorPos = input.selectionStart;
6534
- if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
6535
- if (decimalPointIndex > 0 && _cursorPos > decimalPointIndex && this.decimals > 0) {
6536
- e.key === 'ArrowDown' ? this.decimalStepDown() : this.decimalStepUp();
6833
+ if (!item[this.disableField] && this.openMode === 'hover') {
6834
+ if (((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 || item[this.hasChildField]) {
6835
+ if (((_b = item.children) === null || _b === void 0 ? void 0 : _b.length) > 0) {
6836
+ this._closeChild(item.children);
6837
+ }
6838
+ item.isOpen = true;
6537
6839
  }
6538
- else {
6539
- e.key === 'ArrowDown' ? this.stepDown() : this.stepUp();
6840
+ this.onMenuItemClick.emit({
6841
+ component: this,
6842
+ item: item,
6843
+ nativeEvent: e,
6844
+ });
6845
+ if (item.isOpen && item[this.hasChildField] && !item.children) {
6846
+ item.isLoading = true;
6847
+ this._fetchData(item[this.valueField]).then(() => {
6848
+ item.isLoading = false;
6849
+ });
6540
6850
  }
6541
- ignore();
6542
- setTimeout(() => {
6543
- input.setSelectionRange(_cursorPos, _cursorPos);
6544
- }, 5);
6545
6851
  }
6546
- super._emitOnKeydownEvent(e);
6852
+ e.stopPropagation();
6853
+ e.preventDefault();
6547
6854
  }
6548
- _handleUpDownClick(e, v) {
6549
- v == 1 ? this.stepUp() : this.stepDown();
6855
+ _onMouseLeave(item) {
6856
+ var _a, _b;
6857
+ if (!item[this.disableField] && this.openMode === 'hover') {
6858
+ if (((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 || item[this.hasChildField]) {
6859
+ if (((_b = item.children) === null || _b === void 0 ? void 0 : _b.length) > 0) {
6860
+ this._closeChild(item.children);
6861
+ }
6862
+ item.isOpen = false;
6863
+ }
6864
+ }
6550
6865
  }
6551
- _onValueChanging(value) {
6552
- const v = _.toNumber(value);
6553
- if (v < this.minValue)
6554
- return this.minValue;
6555
- if (v > this.maxValue)
6556
- return this.maxValue;
6557
- return v;
6866
+ _notActive(items) {
6867
+ items.forEach((element) => {
6868
+ var _a;
6869
+ element.isActive = false;
6870
+ if (((_a = element.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
6871
+ this._notActive(element.children);
6872
+ }
6873
+ });
6558
6874
  }
6559
- stepUp() {
6560
- this.value += _.toNumber(this.step);
6875
+ _closeChild(items) {
6876
+ items.forEach((element) => {
6877
+ var _a;
6878
+ element.isOpen = false;
6879
+ if (((_a = element.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
6880
+ this._closeChild(element.children);
6881
+ }
6882
+ });
6561
6883
  }
6562
- stepDown() {
6563
- this.value -= _.toNumber(this.step);
6884
+ _setParentNode(item, parentId) {
6885
+ item.forEach((element) => {
6886
+ element.parentId = parentId;
6887
+ });
6564
6888
  }
6565
- decimalStepUp() {
6566
- this.value += _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
6889
+ _onSearchExprChanged(e) {
6890
+ var _a;
6891
+ // this.empty();
6892
+ this._forceFocus = true;
6893
+ this._fetchData(null, (_a = this._searchBox) === null || _a === void 0 ? void 0 : _a.searchExp);
6567
6894
  }
6568
- decimalStepDown() {
6569
- this.value -= _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
6895
+ _getDirection() {
6896
+ if (this.direction === 'horizontal') {
6897
+ return 'horizontal-mode';
6898
+ }
6899
+ else {
6900
+ return 'vertical-mode';
6901
+ }
6570
6902
  }
6571
6903
  }
6572
- AXNumberBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
6573
- AXNumberBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", type: "type", autoComplete: "autoComplete", name: "name", checked: "checked", thousandsSeparator: "thousandsSeparator", padDecimalZeros: "padDecimalZeros", step: "step", decimals: "decimals", decimalStep: "decimalStep", showSpinButtons: "showSpinButtons", minValue: "minValue", maxValue: "maxValue" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-editor-container" }, viewQueries: [{ propertyName: "_maskDirective", first: true, predicate: IMaskDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" \r\n [attr.placeholder]=\"placeholder\" \r\n [imask]=\"_maskObj\" \r\n [unmask]=\"'typed'\"\r\n [attr.min]=\"minValue\"\r\n [attr.max]=\"maxValue\" \r\n [class.ax-state-disabled]=\"disabled\" \r\n [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" \r\n [readonly]=\"readonly\" \r\n [tabindex]=\"tabIndex\" \r\n [(ngModel)]=\"value\"\r\n (focus)=\"_emitOnFocusEvent($event)\" \r\n (blur)=\"_emitOnFocusEvent($event)\" \r\n (keydown)=\"_handleOnKeydownEvent($event)\"\r\n [attr.autocomplete]=\"autoComplete\">\r\n\r\n<div class=\"ax-number-box-arrows\" *ngIf=\"showSpinButtons && !(disabled || readonly)\">\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax-rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,-1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax--rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n</div>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5.IMaskDirective, selector: "[imask]", inputs: ["imask", "unmask", "imaskElement"], outputs: ["accept", "complete"], exportAs: ["imask"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6574
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxComponent, decorators: [{
6904
+ AXMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
6905
+ AXMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXMenuComponent, selector: "ax-menu", inputs: { disabled: "disabled", tabIndex: "tabIndex", textField: "textField", valueField: "valueField", items: "items", id: "id", parentId: "parentId", iconField: "iconField", tooltip: "tooltip", isOpen: "isOpen", isActive: "isActive", visibleField: "visibleField", disableField: "disableField", hasChildField: "hasChildField", openMode: "openMode", direction: "direction" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onMenuItemClick: "onMenuItemClick" }, host: { classAttribute: "ax-menu" }, queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }, { propertyName: "_searchBox", first: true, predicate: AXSearchBoxComponent, descendants: true, static: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\" (mouseleave)=\"_onMouseLeave(item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div class=\"ax-menu-end-side\">\r\n <ax-icon *ngIf=\"!item.isLoading\"\r\n [ngClass]=\"{'ax-ic-chevron':item?.children?.length > 0 || item[hasChildField],'active-icon': item.isOpen}\">\r\n </ax-icon>\r\n <ax-loading *ngIf=\"item.isLoading\">\r\n </ax-loading>\r\n </div>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>", components: [{ type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, decorators: [{
6575
6907
  type: Component,
6576
- args: [{ selector: 'ax-number-box', inputs: [
6577
- 'disabled',
6578
- 'readonly',
6579
- 'tabIndex',
6580
- 'size',
6581
- 'value',
6582
- ...TEXTBOX_INPUTS,
6583
- ], outputs: [
6584
- 'valueChange',
6585
- 'onValueChanged',
6586
- 'onBlur',
6587
- 'onFocus',
6588
- ...TEXTBOX_OUTPUT,
6589
- ], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-editor-container' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" \r\n [attr.placeholder]=\"placeholder\" \r\n [imask]=\"_maskObj\" \r\n [unmask]=\"'typed'\"\r\n [attr.min]=\"minValue\"\r\n [attr.max]=\"maxValue\" \r\n [class.ax-state-disabled]=\"disabled\" \r\n [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" \r\n [readonly]=\"readonly\" \r\n [tabindex]=\"tabIndex\" \r\n [(ngModel)]=\"value\"\r\n (focus)=\"_emitOnFocusEvent($event)\" \r\n (blur)=\"_emitOnFocusEvent($event)\" \r\n (keydown)=\"_handleOnKeydownEvent($event)\"\r\n [attr.autocomplete]=\"autoComplete\">\r\n\r\n<div class=\"ax-number-box-arrows\" *ngIf=\"showSpinButtons && !(disabled || readonly)\">\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax-rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,-1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax--rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n</div>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>" }]
6590
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { thousandsSeparator: [{
6591
- type: Input
6592
- }], padDecimalZeros: [{
6593
- type: Input
6594
- }], step: [{
6595
- type: Input
6596
- }], decimals: [{
6597
- type: Input
6598
- }], decimalStep: [{
6599
- type: Input
6600
- }], showSpinButtons: [{
6601
- type: Input
6602
- }], minValue: [{
6603
- type: Input
6604
- }], maxValue: [{
6605
- type: Input
6606
- }], _maskDirective: [{
6908
+ args: [{ selector: 'ax-menu', inputs: [...INTERACTIVE_INPUTS, ...BASEMENU_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...BASEMENU_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-menu' }, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\" (mouseleave)=\"_onMouseLeave(item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div class=\"ax-menu-end-side\">\r\n <ax-icon *ngIf=\"!item.isLoading\"\r\n [ngClass]=\"{'ax-ic-chevron':item?.children?.length > 0 || item[hasChildField],'active-icon': item.isOpen}\">\r\n </ax-icon>\r\n <ax-loading *ngIf=\"item.isLoading\">\r\n </ax-loading>\r\n </div>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>" }]
6909
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
6607
6910
  type: ViewChild,
6608
- args: [IMaskDirective]
6911
+ args: [AXPopoverComponent, { static: true }]
6912
+ }], _contentEmptyTemplate: [{
6913
+ type: ContentChild,
6914
+ args: ['emptyTemplate']
6915
+ }], _searchBox: [{
6916
+ type: ContentChild,
6917
+ args: [AXSearchBoxComponent, { static: true }]
6609
6918
  }] } });
6610
6919
 
6611
- const COMPONENT$9 = [AXNumberBoxComponent];
6612
- const MODULES$9 = [
6613
- CommonModule,
6614
- FormsModule,
6615
- AXButtonModule,
6616
- AXDecoratorModule,
6617
- IMaskModule
6618
- ];
6619
- class AXNumberBoxModule {
6920
+ const COMPONENT$8 = [AXMenuComponent];
6921
+ const MODULES$8 = [CommonModule, AXDecoratorModule];
6922
+ class AXMenuModule {
6620
6923
  }
6621
- AXNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6622
- AXNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, declarations: [AXNumberBoxComponent], imports: [CommonModule,
6623
- FormsModule,
6624
- AXButtonModule,
6625
- AXDecoratorModule,
6626
- IMaskModule], exports: [AXNumberBoxComponent] });
6627
- AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, providers: [], imports: [[...MODULES$9]] });
6628
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, decorators: [{
6924
+ AXMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6925
+ AXMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, declarations: [AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule,
6926
+ AXTranslationModule,
6927
+ AXPopoverModule], exports: [AXMenuComponent] });
6928
+ AXMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, providers: [], imports: [[
6929
+ ...MODULES$8,
6930
+ AXLoadingModule,
6931
+ AXTranslationModule,
6932
+ AXPopoverModule,
6933
+ ]] });
6934
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, decorators: [{
6629
6935
  type: NgModule,
6630
6936
  args: [{
6631
- declarations: [...COMPONENT$9],
6632
- imports: [...MODULES$9],
6633
- exports: [...COMPONENT$9],
6937
+ declarations: [...COMPONENT$8],
6938
+ imports: [
6939
+ ...MODULES$8,
6940
+ AXLoadingModule,
6941
+ AXTranslationModule,
6942
+ AXPopoverModule,
6943
+ ],
6944
+ exports: [...COMPONENT$8],
6634
6945
  providers: [],
6635
6946
  }]
6636
6947
  }] });
@@ -6686,8 +6997,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
6686
6997
  type: Input
6687
6998
  }] } });
6688
6999
 
6689
- const COMPONENT$8 = [AXPasswordBoxComponent];
6690
- const MODULES$8 = [
7000
+ const COMPONENT$7 = [AXPasswordBoxComponent];
7001
+ const MODULES$7 = [
6691
7002
  CommonModule,
6692
7003
  FormsModule,
6693
7004
  AXButtonModule,
@@ -6700,13 +7011,13 @@ AXPasswordBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
6700
7011
  FormsModule,
6701
7012
  AXButtonModule,
6702
7013
  AXDecoratorModule], exports: [AXPasswordBoxComponent] });
6703
- AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$8]] });
7014
+ AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$7]] });
6704
7015
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, decorators: [{
6705
7016
  type: NgModule,
6706
7017
  args: [{
6707
- declarations: [...COMPONENT$8],
6708
- imports: [...MODULES$8],
6709
- exports: [...COMPONENT$8],
7018
+ declarations: [...COMPONENT$7],
7019
+ imports: [...MODULES$7],
7020
+ exports: [...COMPONENT$7],
6710
7021
  providers: [],
6711
7022
  }]
6712
7023
  }] });
@@ -6812,12 +7123,12 @@ class AXPopupComponent extends AXBaseComponentMixin {
6812
7123
  }
6813
7124
  onFullScreen() { }
6814
7125
  }
6815
- AXPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: AXLoadingService }, { token: i1$3.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
6816
- AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <div cdkDragHandle class=\"ax-popup-header-container\">\r\n <ax-header *ngIf=\"showHeader\">\r\n <ax-title [text]=\"title\"></ax-title>\r\n <ax-close-button *ngIf=\"showCloseButton\"></ax-close-button>\r\n </ax-header>\r\n </div>\r\n <div class=\"ax-popup-main-container\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </div>\r\n <div class=\"ax-popup-footer-container\"></div>\r\n </div>\r\n</div>", components: [{ type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type: i8.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
7126
+ AXPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: AXLoadingService }, { token: i1$4.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
7127
+ AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <div cdkDragHandle class=\"ax-popup-header-container\">\r\n <ax-header *ngIf=\"showHeader\">\r\n <ax-title [text]=\"title\"></ax-title>\r\n <ax-close-button *ngIf=\"showCloseButton\"></ax-close-button>\r\n </ax-header>\r\n </div>\r\n <div class=\"ax-popup-main-container\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </div>\r\n <div class=\"ax-popup-footer-container\"></div>\r\n </div>\r\n</div>", components: [{ type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type: i7.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6817
7128
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupComponent, decorators: [{
6818
7129
  type: Component,
6819
7130
  args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <div cdkDragHandle class=\"ax-popup-header-container\">\r\n <ax-header *ngIf=\"showHeader\">\r\n <ax-title [text]=\"title\"></ax-title>\r\n <ax-close-button *ngIf=\"showCloseButton\"></ax-close-button>\r\n </ax-header>\r\n </div>\r\n <div class=\"ax-popup-main-container\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </div>\r\n <div class=\"ax-popup-footer-container\"></div>\r\n </div>\r\n</div>" }]
6820
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i1$3.AXPlatform }]; }, propDecorators: { onKeydownHandler: [{
7131
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i1$4.AXPlatform }]; }, propDecorators: { onKeydownHandler: [{
6821
7132
  type: HostListener,
6822
7133
  args: ['keydown.escape', ['$event']]
6823
7134
  }] } });
@@ -6913,19 +7224,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
6913
7224
  args: [{ providedIn: 'root' }]
6914
7225
  }], ctorParameters: function () { return [{ type: AXOverlayService }]; } });
6915
7226
 
6916
- const COMPONENT$7 = [AXPopupComponent];
6917
- const MODULES$7 = [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule];
7227
+ const COMPONENT$6 = [AXPopupComponent];
7228
+ const MODULES$6 = [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule];
6918
7229
  class AXPopupModule {
6919
7230
  }
6920
7231
  AXPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6921
7232
  AXPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, declarations: [AXPopupComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule], exports: [AXPopupComponent] });
6922
- AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$7]] });
7233
+ AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$6]] });
6923
7234
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, decorators: [{
6924
7235
  type: NgModule,
6925
7236
  args: [{
6926
- declarations: [...COMPONENT$7],
6927
- imports: [...MODULES$7],
6928
- exports: [...COMPONENT$7],
7237
+ declarations: [...COMPONENT$6],
7238
+ imports: [...MODULES$6],
7239
+ exports: [...COMPONENT$6],
6929
7240
  providers: [],
6930
7241
  }]
6931
7242
  }] });
@@ -7003,19 +7314,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
7003
7314
  args: [{ selector: 'ax-radio', inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-radio' }, template: "<div class=\"ax-flex ax-items-start\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id\" class=\"ax-radio\" type=\"radio\" [(ngModel)]=\"value\" [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <ng-content select=\"ax-label\"></ng-content>\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n </div>\r\n</div>\r\n<ng-content select=\"ax-validation-rule\"></ng-content>" }]
7004
7315
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
7005
7316
 
7006
- const COMPONENT$6 = [AXRadioComponent];
7007
- const MODULES$6 = [CommonModule, FormsModule];
7317
+ const COMPONENT$5 = [AXRadioComponent];
7318
+ const MODULES$5 = [CommonModule, FormsModule];
7008
7319
  class AXRadioModule {
7009
7320
  }
7010
7321
  AXRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7011
7322
  AXRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, declarations: [AXRadioComponent], imports: [CommonModule, FormsModule], exports: [AXRadioComponent] });
7012
- AXRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, providers: [], imports: [[...MODULES$6]] });
7323
+ AXRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, providers: [], imports: [[...MODULES$5]] });
7013
7324
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, decorators: [{
7014
7325
  type: NgModule,
7015
7326
  args: [{
7016
- declarations: [...COMPONENT$6],
7017
- imports: [...MODULES$6],
7018
- exports: [...COMPONENT$6],
7327
+ declarations: [...COMPONENT$5],
7328
+ imports: [...MODULES$5],
7329
+ exports: [...COMPONENT$5],
7019
7330
  providers: [],
7020
7331
  }]
7021
7332
  }] });
@@ -7033,19 +7344,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
7033
7344
  args: [{ selector: 'ax-range-slider', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-range-slider' }, template: "<input type=\"range\" min=\"1\" max=\"100\" value=\"50\" class=\"ax-range-slider-input\">" }]
7034
7345
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
7035
7346
 
7036
- const COMPONENT$5 = [AXRangeSliderComponent];
7037
- const MODULES$5 = [CommonModule];
7347
+ const COMPONENT$4 = [AXRangeSliderComponent];
7348
+ const MODULES$4 = [CommonModule];
7038
7349
  class AXRangeSliderModule {
7039
7350
  }
7040
7351
  AXRangeSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7041
7352
  AXRangeSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, declarations: [AXRangeSliderComponent], imports: [CommonModule], exports: [AXRangeSliderComponent] });
7042
- AXRangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, providers: [], imports: [[...MODULES$5]] });
7353
+ AXRangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, providers: [], imports: [[...MODULES$4]] });
7043
7354
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, decorators: [{
7044
7355
  type: NgModule,
7045
7356
  args: [{
7046
- declarations: [...COMPONENT$5],
7047
- imports: [...MODULES$5],
7048
- exports: [...COMPONENT$5],
7357
+ declarations: [...COMPONENT$4],
7358
+ imports: [...MODULES$4],
7359
+ exports: [...COMPONENT$4],
7049
7360
  providers: [],
7050
7361
  }]
7051
7362
  }] });
@@ -7137,64 +7448,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
7137
7448
  }]
7138
7449
  }] });
7139
7450
 
7140
- class AXSearchBoxComponent extends AXBaseComponentMixin {
7141
- constructor(_elementRef, _cdr, _parent) {
7142
- super(_elementRef, _cdr);
7143
- this._parent = _parent;
7144
- this.placeholder = 'common.search';
7145
- this.debounceTime = 300;
7146
- this.searchExp = null;
7147
- }
7148
- _onSearchExprChanged(e) {
7149
- if (this._parent && this._parent.search) {
7150
- this._parent.search(e.value);
7151
- }
7152
- }
7153
- focus() {
7154
- var _a;
7155
- (_a = this._textbox) === null || _a === void 0 ? void 0 : _a.focus();
7156
- }
7157
- }
7158
- AXSearchBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXSearchableComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
7159
- AXSearchBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXSearchBoxComponent, selector: "ax-search-box", inputs: { placeholder: "placeholder", debounceTime: "debounceTime", searchExp: "searchExp" }, viewQueries: [{ propertyName: "_textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\">\r\n </ax-icon>\r\n </ax-prefix>\r\n</ax-text-box>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "placeholder", "maxLength", "type", "autoComplete"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], pipes: { "trans": i1$3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
7160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, decorators: [{
7161
- type: Component,
7162
- args: [{ selector: 'ax-search-box', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\">\r\n </ax-icon>\r\n </ax-prefix>\r\n</ax-text-box>" }]
7163
- }], ctorParameters: function () {
7164
- return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXSearchableComponent, decorators: [{
7165
- type: Optional
7166
- }, {
7167
- type: Inject,
7168
- args: [AXSearchableComponent]
7169
- }] }];
7170
- }, propDecorators: { _textbox: [{
7171
- type: ViewChild,
7172
- args: [AXTextBoxComponent]
7173
- }], placeholder: [{
7174
- type: Input
7175
- }], debounceTime: [{
7176
- type: Input
7177
- }], searchExp: [{
7178
- type: Input
7179
- }] } });
7180
-
7181
- const COMPONENT$4 = [AXSearchBoxComponent];
7182
- const MODULES$4 = [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule];
7183
- class AXSearchBoxModule {
7184
- }
7185
- AXSearchBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7186
- AXSearchBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, declarations: [AXSearchBoxComponent], imports: [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule], exports: [AXSearchBoxComponent] });
7187
- AXSearchBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, providers: [], imports: [[...MODULES$4]] });
7188
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, decorators: [{
7189
- type: NgModule,
7190
- args: [{
7191
- declarations: [...COMPONENT$4],
7192
- imports: [...MODULES$4],
7193
- exports: [...COMPONENT$4],
7194
- providers: [],
7195
- }]
7196
- }] });
7197
-
7198
7451
  /**
7199
7452
  * The Button is a component which detects user interaction and triggers a corresponding event
7200
7453
  *
@@ -7241,7 +7494,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
7241
7494
  onInit() {
7242
7495
  super.onInit();
7243
7496
  this._target = this._elementRef.nativeElement;
7244
- this._popoverTitle = this.placeholder || AXTranslator.get('selectbox.popover.title');
7497
+ this._updatePopupTitle();
7245
7498
  }
7246
7499
  onViewInit() {
7247
7500
  super.onViewInit();
@@ -7251,6 +7504,11 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
7251
7504
  this.value = null;
7252
7505
  super.refresh();
7253
7506
  }
7507
+ _updatePopupTitle() {
7508
+ // const count =this.selectedItems?.length;
7509
+ // this._popoverTitle = count > 1 ? `(${count}) items selected`: this.placeholder || AXTranslator.get('selectbox.popover.title')
7510
+ this._popoverTitle = this.placeholder || AXTranslator.get('selectbox.popover.title');
7511
+ }
7254
7512
  _handleOnItemClick(e, item) {
7255
7513
  if (this.isItemDisabled(item)) {
7256
7514
  return;
@@ -7282,6 +7540,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
7282
7540
  this._focusSelectedItem();
7283
7541
  this._forceFocus = false;
7284
7542
  }
7543
+ this._focusSearchBox();
7285
7544
  }, 100);
7286
7545
  }
7287
7546
  }
@@ -7347,7 +7606,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
7347
7606
  e.preventDefault();
7348
7607
  }
7349
7608
  else if ((e.code === 'Space' || e.code === 'Enter')) {
7350
- debugger;
7351
7609
  e.preventDefault();
7352
7610
  const focusedItemId = (_b = (_a = this.listContainer.nativeElement.querySelector('.ax-state-focus')) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.id;
7353
7611
  const focusedItem = _.findLast(this.flatItems, [this.valueField, focusedItemId]);
@@ -7387,15 +7645,17 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
7387
7645
  else {
7388
7646
  this._focusSelectedItem();
7389
7647
  }
7390
- debugger;
7391
- if (this._searchBox && !this._isMobile) {
7392
- this._searchBox.focus();
7393
- }
7648
+ this._focusSearchBox();
7394
7649
  });
7395
7650
  }
7396
7651
  _handlePopupOnClosed(e) {
7397
7652
  this.focus();
7398
7653
  }
7654
+ _focusSearchBox() {
7655
+ if (this._searchBox && (!this._isMobile || this._searchBox.searchExp)) {
7656
+ this._searchBox.focus();
7657
+ }
7658
+ }
7399
7659
  _focusItemByNav(sign) {
7400
7660
  var _a;
7401
7661
  const list = this.listContainer.nativeElement;
@@ -7463,11 +7723,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
7463
7723
  this._fetchData();
7464
7724
  }
7465
7725
  }
7466
- _onSearchExprChanged(e) {
7467
- this.empty();
7468
- this._forceFocus = true;
7469
- this._fetchData();
7470
- }
7471
7726
  search(exp) {
7472
7727
  debugger;
7473
7728
  this.empty();
@@ -7479,18 +7734,18 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
7479
7734
  super._fetchData({ searchQuery: (_a = this._searchBox) === null || _a === void 0 ? void 0 : _a.searchExp });
7480
7735
  }
7481
7736
  }
7482
- AXSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSelectBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$3.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
7737
+ AXSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSelectBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$4.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
7483
7738
  AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", pageSize: "pageSize", valueField: "valueField", textField: "textField", items: "items", disabledField: "disabledField", disabledCallback: "disabledCallback", multiple: "multiple", selectionMode: "selectionMode", clearButton: "clearButton", checkbox: "checkbox" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", valueChanged: "valueChanged" }, host: { listeners: { "keydown": "_handleKeydown($event)" }, classAttribute: "ax-editor-container ax-drop-down" }, providers: [
7484
7739
  { provide: AXClosbaleComponent, useExisting: AXSelectBoxComponent },
7485
7740
  { provide: AXSearchableComponent, useExisting: AXSelectBoxComponent }
7486
- ], queries: [{ propertyName: "_searchBox", first: true, predicate: AXSearchBoxComponent, descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\" >\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title [text]=\"_popoverTitle\"></ax-title>\r\n <ax-close-button [icon]=\"multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'\"></ax-close-button>\r\n </ax-header>\r\n <div class=\"ax-p-2\" [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\">\r\n <ng-content select=\"ax-search-box\" ></ng-content>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>", components: [{ type: AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
7741
+ ], queries: [{ propertyName: "_searchBox", first: true, predicate: AXSearchBoxComponent, descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\"\r\n [adaptivityEnabled]=\"true\" (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\">\r\n <ax-header *ngIf=\"_isMobile\">\r\n <ax-title [text]=\"_popoverTitle\"></ax-title>\r\n <ax-close-button [icon]=\"multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'\"></ax-close-button>\r\n </ax-header>\r\n <div class=\"ax-p-2\" [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\">\r\n <ng-content select=\"ax-search-box\"></ng-content>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\"\r\n [innerHTML]=\"'common.no-result-for' | trans:{exp:this._searchBox? this._searchBox.searchExp :''}\">\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>", components: [{ type: AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
7487
7742
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
7488
7743
  type: Component,
7489
7744
  args: [{ selector: 'ax-select-box', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...DATALIST_INPUTS, ...SELECTION_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...SELECTION_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
7490
7745
  { provide: AXClosbaleComponent, useExisting: AXSelectBoxComponent },
7491
7746
  { provide: AXSearchableComponent, useExisting: AXSelectBoxComponent }
7492
- ], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\" >\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title [text]=\"_popoverTitle\"></ax-title>\r\n <ax-close-button [icon]=\"multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'\"></ax-close-button>\r\n </ax-header>\r\n <div class=\"ax-p-2\" [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\">\r\n <ng-content select=\"ax-search-box\" ></ng-content>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>" }]
7493
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$3.AXPlatform }]; }, propDecorators: { popover: [{
7747
+ ], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\"\r\n [adaptivityEnabled]=\"true\" (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\">\r\n <ax-header *ngIf=\"_isMobile\">\r\n <ax-title [text]=\"_popoverTitle\"></ax-title>\r\n <ax-close-button [icon]=\"multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'\"></ax-close-button>\r\n </ax-header>\r\n <div class=\"ax-p-2\" [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\">\r\n <ng-content select=\"ax-search-box\"></ng-content>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\"\r\n [innerHTML]=\"'common.no-result-for' | trans:{exp:this._searchBox? this._searchBox.searchExp :''}\">\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>" }]
7748
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
7494
7749
  type: ViewChild,
7495
7750
  args: [AXPopoverComponent, { static: true }]
7496
7751
  }], _searchBox: [{
@@ -8721,16 +8976,17 @@ class AXValidationRuleComponent extends AXBaseComponentMixin {
8721
8976
  if (this.enabled === false) {
8722
8977
  return Promise.resolve({ result: true });
8723
8978
  }
8724
- const regRule = AXValidationRules.get(this.rule);
8725
- if (regRule) {
8726
- return this._internalValidate(regRule.rule.rule, value, this.message || regRule.rule.message, regRule.rule.value);
8727
- }
8728
- else {
8729
- return this._internalValidate(this.rule, value, this.message, this.value);
8979
+ if (this.rule == 'custom') {
8980
+ const regRule = AXConfig.get(`form.validation.rules.${this.value}`);
8981
+ if (regRule) {
8982
+ return this._internalValidate(regRule.rule, value, this.message || regRule.message, regRule.value);
8983
+ }
8730
8984
  }
8985
+ return this._internalValidate(this.rule, value, this.message, this.value);
8731
8986
  }
8732
8987
  _internalValidate(type, value, message, ruleValue) {
8733
8988
  return new Promise(resolve => {
8989
+ debugger;
8734
8990
  switch (type) {
8735
8991
  case 'required':
8736
8992
  resolve({
@@ -8745,7 +9001,6 @@ class AXValidationRuleComponent extends AXBaseComponentMixin {
8745
9001
  result: ex.test(value)
8746
9002
  });
8747
9003
  break;
8748
- case 'custom':
8749
9004
  case 'callback':
8750
9005
  if (typeof ruleValue === 'function') {
8751
9006
  const res = {};
@@ -8766,11 +9021,17 @@ class AXValidationRuleComponent extends AXBaseComponentMixin {
8766
9021
  }
8767
9022
  }
8768
9023
  else {
8769
- resolve({ result: true });
9024
+ resolve({
9025
+ message: AXTranslator.get('validation.messages.invalid-rull-fn'),
9026
+ result: false
9027
+ });
8770
9028
  }
8771
9029
  break;
8772
9030
  default:
8773
- resolve({ result: true });
9031
+ resolve({
9032
+ message: AXTranslator.get('validation.messages.invalid-rull-name'),
9033
+ result: false
9034
+ });
8774
9035
  }
8775
9036
  });
8776
9037
  }
@@ -8833,5 +9094,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
8833
9094
  * Generated bundle index. Do not edit.
8834
9095
  */
8835
9096
 
8836
- export { AXActionSheetComponent, AXActionSheetItemComponent, AXActionSheetModule, AXAlertButtonComponent, AXAlertComponent, AXAlertModule, AXAvatarComponent, AXAvatarGroup, AXAvatarMixin, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseAlertMixin, AXBaseBadgeMixin, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBaseMenuMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTabItemMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXBreadCrumbsComponent, AXBreadCrumbsItemComponent, AXBreadcrumbsModule, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXClosbaleComponent, AXCollapseComponent, AXCollapseGroupComponent, AXCollapseModule, AXColorPickerComponent, AXColorPickerModule, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorCloseButtonComponent, AXDecoratorContentComponent, AXDecoratorFooterComponent, AXDecoratorHeaderComponent, AXDecoratorIconComponent, AXDecoratorModule, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorTitleComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXInfiniteScrollerDirective, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXOverlayService, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPickerComponent, AXPickerModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXProgressBarComponent, AXProgressBarModule, AXRadioComponent, AXRadioModule, AXRangeChangedEvent, AXRangeSliderComponent, AXRangeSliderModule, AXRatingComponent, AXRatingModule, AXResponsiveDirective, AXResultComponent, AXResultModule, AXSearchBoxComponent, AXSearchBoxModule, AXSearchableComponent, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTextareaComponent, AXTextareaModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXTreeViewComponent, AXTreeViewModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
9097
+ export { AXActionSheetComponent, AXActionSheetItemComponent, AXActionSheetModule, AXAlertButtonComponent, AXAlertComponent, AXAlertModule, AXAvatarComponent, AXAvatarGroup, AXAvatarMixin, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseAlertMixin, AXBaseBadgeMixin, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseColorPickerMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBaseMenuMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTabItemMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXBreadCrumbsComponent, AXBreadCrumbsItemComponent, AXBreadcrumbsModule, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXClosbaleComponent, AXCollapseComponent, AXCollapseGroupComponent, AXCollapseModule, AXColorPaletteInputComponent, AXColorPaletteModule, AXColorPalettePickerComponent, AXColorPalettePreviewComponent, AXColorPaletteSwatchesComponent, AXColorPalleteComponent, AXColorPickerComponent, AXColorPickerModule, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorCloseButtonComponent, AXDecoratorContentComponent, AXDecoratorFooterComponent, AXDecoratorHeaderComponent, AXDecoratorIconComponent, AXDecoratorModule, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorTitleComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXInfiniteScrollerDirective, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXOverlayService, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPickerComponent, AXPickerModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXProgressBarComponent, AXProgressBarModule, AXRadioComponent, AXRadioModule, AXRangeChangedEvent, AXRangeSliderComponent, AXRangeSliderModule, AXRatingComponent, AXRatingModule, AXResponsiveDirective, AXResultComponent, AXResultModule, AXSearchBoxComponent, AXSearchBoxModule, AXSearchableComponent, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTextareaComponent, AXTextareaModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXTreeViewComponent, AXTreeViewModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValuableComponent, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
8837
9098
  //# sourceMappingURL=acorex-components.mjs.map