@acorex/components 5.3.3 → 5.3.4

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 (31) hide show
  1. package/esm2020/lib/base/mixin/base-menu-mixin.class.mjs +6 -3
  2. package/esm2020/lib/color-palette/color-palette-input.component.mjs +77 -0
  3. package/esm2020/lib/color-palette/color-palette-picker.component.mjs +17 -0
  4. package/esm2020/lib/color-palette/color-palette-preview.component.mjs +33 -0
  5. package/esm2020/lib/color-palette/color-palette-swatches.component.mjs +260 -0
  6. package/esm2020/lib/color-palette/color-palette.component.mjs +18 -0
  7. package/esm2020/lib/color-palette/color-palette.module.mjs +54 -0
  8. package/esm2020/lib/color-palette/index.mjs +7 -0
  9. package/esm2020/lib/color-picker/color-picker.component.mjs +19 -260
  10. package/esm2020/lib/color-picker/color-picker.module.mjs +12 -6
  11. package/esm2020/lib/menu/menu.component.mjs +31 -5
  12. package/esm2020/lib/selectbox/selectbox.component.mjs +2 -1
  13. package/esm2020/public-api.mjs +2 -1
  14. package/fesm2015/acorex-components.mjs +1362 -1151
  15. package/fesm2015/acorex-components.mjs.map +1 -1
  16. package/fesm2020/acorex-components.mjs +1225 -1018
  17. package/fesm2020/acorex-components.mjs.map +1 -1
  18. package/lib/base/mixin/base-menu-mixin.class.d.ts +1 -1
  19. package/lib/base/mixin/mixin.class.d.ts +1 -1
  20. package/lib/color-palette/color-palette-input.component.d.ts +16 -0
  21. package/lib/color-palette/color-palette-picker.component.d.ts +8 -0
  22. package/lib/color-palette/color-palette-preview.component.d.ts +12 -0
  23. package/lib/color-palette/color-palette-swatches.component.d.ts +16 -0
  24. package/lib/color-palette/color-palette.component.d.ts +9 -0
  25. package/lib/color-palette/color-palette.module.d.ts +17 -0
  26. package/lib/color-palette/index.d.ts +6 -0
  27. package/lib/color-picker/color-picker.component.d.ts +149 -34
  28. package/lib/color-picker/color-picker.module.d.ts +2 -1
  29. package/lib/menu/menu.component.d.ts +8 -2
  30. package/package.json +1 -1
  31. package/public-api.d.ts +1 -0
@@ -4,11 +4,11 @@ import { Injectable, Inject, EventEmitter, Directive, Input, TemplateRef, NgModu
4
4
  import { __classPrivateFieldSet, __classPrivateFieldGet } 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, AXTranslator, AXTranslationModule, 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 i10 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 {
@@ -194,14 +194,17 @@ function _BaseMenuComponentMixin(Base) {
194
194
  });
195
195
  }
196
196
  }
197
- _fetchData(parentId) {
197
+ _fetchData(parentId, searchText) {
198
198
  return new Promise((resolve) => {
199
199
  if (__classPrivateFieldGet(this, _isLoading, "f")) {
200
200
  return;
201
201
  }
202
202
  if (__classPrivateFieldGet(this, _items, "f")) {
203
203
  __classPrivateFieldSet(this, _isLoading, true, "f");
204
- __classPrivateFieldGet(this, _items, "f").call(this, { parentId: parentId })
204
+ __classPrivateFieldGet(this, _items, "f").call(this, {
205
+ parentId: parentId,
206
+ searchQuery: searchText,
207
+ })
205
208
  .then((c) => {
206
209
  if (Array.isArray(c)) {
207
210
  if (parentId) {
@@ -1854,17 +1857,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
1854
1857
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; } });
1855
1858
 
1856
1859
  const COMPONENT$o = [AXDrawerComponent, AXDrawerContainerComponent];
1857
- const MODULES$o = [CommonModule];
1860
+ const MODULES$p = [CommonModule];
1858
1861
  class AXDrawerModule {
1859
1862
  }
1860
1863
  AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1861
1864
  AXDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, declarations: [AXDrawerComponent, AXDrawerContainerComponent], imports: [CommonModule], exports: [AXDrawerComponent, AXDrawerContainerComponent] });
1862
- AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$o]] });
1865
+ AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$p]] });
1863
1866
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, decorators: [{
1864
1867
  type: NgModule,
1865
1868
  args: [{
1866
1869
  declarations: [...COMPONENT$o],
1867
- imports: [...MODULES$o],
1870
+ imports: [...MODULES$p],
1868
1871
  exports: [...COMPONENT$o],
1869
1872
  providers: [],
1870
1873
  }]
@@ -2283,7 +2286,7 @@ const COMPONENT$n = [
2283
2286
  AXDecoratorTitleComponent,
2284
2287
  AXDecoratorCloseButtonComponent
2285
2288
  ];
2286
- const MODULES$n = [CommonModule];
2289
+ const MODULES$o = [CommonModule];
2287
2290
  class AXDecoratorModule {
2288
2291
  }
2289
2292
  AXDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2304,12 +2307,12 @@ AXDecoratorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
2304
2307
  AXDecoratorIconComponent,
2305
2308
  AXDecoratorTitleComponent,
2306
2309
  AXDecoratorCloseButtonComponent] });
2307
- AXDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, providers: [], imports: [[...MODULES$n]] });
2310
+ AXDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, providers: [], imports: [[...MODULES$o]] });
2308
2311
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, decorators: [{
2309
2312
  type: NgModule,
2310
2313
  args: [{
2311
2314
  declarations: [...COMPONENT$n],
2312
- imports: [...MODULES$n],
2315
+ imports: [...MODULES$o],
2313
2316
  exports: [...COMPONENT$n],
2314
2317
  providers: [],
2315
2318
  }]
@@ -2320,7 +2323,7 @@ const COMPONENT$m = [
2320
2323
  AXButtonItemComponent,
2321
2324
  AXButtonGroupComponent,
2322
2325
  ];
2323
- const MODULES$m = [CommonModule, AXDecoratorModule];
2326
+ const MODULES$n = [CommonModule, AXDecoratorModule];
2324
2327
  class AXButtonModule {
2325
2328
  }
2326
2329
  AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -2329,11 +2332,11 @@ AXButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
2329
2332
  AXButtonGroupComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXButtonComponent,
2330
2333
  AXButtonItemComponent,
2331
2334
  AXButtonGroupComponent] });
2332
- AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$m]] });
2335
+ AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$n]] });
2333
2336
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, decorators: [{
2334
2337
  type: NgModule,
2335
2338
  args: [{
2336
- imports: [MODULES$m],
2339
+ imports: [MODULES$n],
2337
2340
  exports: [COMPONENT$m],
2338
2341
  declarations: [COMPONENT$m],
2339
2342
  providers: [],
@@ -2531,19 +2534,19 @@ const COMPONENT$l = [
2531
2534
  AXAlertComponent,
2532
2535
  AXAlertButtonComponent
2533
2536
  ];
2534
- const MODULES$l = [CommonModule, AXDecoratorModule];
2537
+ const MODULES$m = [CommonModule, AXDecoratorModule];
2535
2538
  class AXAlertModule {
2536
2539
  }
2537
2540
  AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2538
2541
  AXAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent,
2539
2542
  AXAlertButtonComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXAlertComponent,
2540
2543
  AXAlertButtonComponent] });
2541
- AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$l]] });
2544
+ AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$m]] });
2542
2545
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, decorators: [{
2543
2546
  type: NgModule,
2544
2547
  args: [{
2545
2548
  declarations: [...COMPONENT$l],
2546
- imports: [...MODULES$l],
2549
+ imports: [...MODULES$m],
2547
2550
  exports: [...COMPONENT$l],
2548
2551
  providers: [],
2549
2552
  }]
@@ -2602,17 +2605,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
2602
2605
  }] } });
2603
2606
 
2604
2607
  const COMPONENT$k = [AXAvatarComponent, AXAvatarGroup];
2605
- const MODULES$k = [CommonModule];
2608
+ const MODULES$l = [CommonModule];
2606
2609
  class AXAvatarModule {
2607
2610
  }
2608
2611
  AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2609
2612
  AXAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent, AXAvatarGroup], imports: [CommonModule], exports: [AXAvatarComponent, AXAvatarGroup] });
2610
- AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$k]] });
2613
+ AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$l]] });
2611
2614
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, decorators: [{
2612
2615
  type: NgModule,
2613
2616
  args: [{
2614
2617
  declarations: [...COMPONENT$k],
2615
- imports: [...MODULES$k],
2618
+ imports: [...MODULES$l],
2616
2619
  exports: [...COMPONENT$k],
2617
2620
  providers: [],
2618
2621
  }]
@@ -2643,17 +2646,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
2643
2646
  }] } });
2644
2647
 
2645
2648
  const COMPONENT$j = [AXBadgeComponent];
2646
- const MODULES$j = [CommonModule];
2649
+ const MODULES$k = [CommonModule];
2647
2650
  class AXBadgeModule {
2648
2651
  }
2649
2652
  AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2650
2653
  AXBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, declarations: [AXBadgeComponent], imports: [CommonModule], exports: [AXBadgeComponent] });
2651
- AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$j]] });
2654
+ AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$k]] });
2652
2655
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, decorators: [{
2653
2656
  type: NgModule,
2654
2657
  args: [{
2655
2658
  declarations: [...COMPONENT$j],
2656
- imports: [...MODULES$j],
2659
+ imports: [...MODULES$k],
2657
2660
  exports: [...COMPONENT$j],
2658
2661
  providers: [],
2659
2662
  }]
@@ -4094,17 +4097,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
4094
4097
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXCarouselComponent }]; } });
4095
4098
 
4096
4099
  const COMPONENT$i = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
4097
- const MODULES$i = [CommonModule];
4100
+ const MODULES$j = [CommonModule];
4098
4101
  class AXCarouselModule {
4099
4102
  }
4100
4103
  AXCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4101
4104
  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] });
4102
- AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$i]] });
4105
+ AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$j]] });
4103
4106
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, decorators: [{
4104
4107
  type: NgModule,
4105
4108
  args: [{
4106
4109
  declarations: [...COMPONENT$i],
4107
- imports: [...MODULES$i],
4110
+ imports: [...MODULES$j],
4108
4111
  exports: [...COMPONENT$i],
4109
4112
  providers: [],
4110
4113
  }]
@@ -4126,17 +4129,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
4126
4129
  }] });
4127
4130
 
4128
4131
  const COMPONENT$h = [AXCalendarComponent];
4129
- const MODULES$h = [CommonModule, AXButtonModule, AXDecoratorModule, AXDateTimeModule, AXPickerModule];
4132
+ const MODULES$i = [CommonModule, AXButtonModule, AXDecoratorModule, AXDateTimeModule, AXPickerModule];
4130
4133
  class AXCalendarModule {
4131
4134
  }
4132
4135
  AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4133
4136
  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] });
4134
- AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$h]] });
4137
+ AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$i]] });
4135
4138
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, decorators: [{
4136
4139
  type: NgModule,
4137
4140
  args: [{
4138
4141
  declarations: [...COMPONENT$h],
4139
- imports: [...MODULES$h],
4142
+ imports: [...MODULES$i],
4140
4143
  exports: [...COMPONENT$h],
4141
4144
  providers: [],
4142
4145
  }]
@@ -4192,170 +4195,909 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
4192
4195
  }]
4193
4196
  }] });
4194
4197
 
4195
- class AXCollapseComponent extends AXBaseComponent {
4198
+ class AXColorPalleteComponent extends AXBaseValueComponentMixin {
4196
4199
  constructor(elementRef, cdr) {
4197
4200
  super(elementRef, cdr);
4198
- this.cdr = cdr;
4199
- this.isCollapsedChange = new EventEmitter();
4200
- this._isCollapsed = false;
4201
- this.caption = null;
4202
- }
4203
- get isCollapsed() {
4204
- return this._isCollapsed;
4205
- }
4206
- set isCollapsed(v) {
4207
- if (v != this._isCollapsed) {
4208
- this._isCollapsed = v;
4209
- this.isCollapsedChange.emit(v);
4210
- this._cdr.detectChanges();
4211
- }
4212
- }
4213
- handleHeaderClick() {
4214
- this.isCollapsed = !this.isCollapsed;
4215
4201
  }
4202
+ ngOnInit() { }
4216
4203
  }
4217
- 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 });
4218
- 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 });
4219
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseComponent, decorators: [{
4204
+ 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 });
4205
+ 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" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" }, usesInheritance: true, ngImport: i0, template: "<ng-content select='ax-header'></ng-content>\r\n<ng-content select='ax-color-palette-preview'></ng-content>\r\n<ng-content select='ax-color-palette-swatches'></ng-content>\r\n\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<ng-content select=\"ax-color-palette-input\"></ng-content>\r\n<!-- <ax-color-palette-input></ax-color-palette-input> -->\r\n<ng-content select='ax-footer'></ng-content>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4206
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalleteComponent, decorators: [{
4220
4207
  type: Component,
4221
- 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>" }]
4222
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { isCollapsedChange: [{
4223
- type: Output
4224
- }], isCollapsed: [{
4225
- type: Input
4226
- }], caption: [{
4227
- type: Input
4228
- }], headerTemplate: [{
4229
- type: ContentChild,
4230
- args: ['header', { static: true }]
4231
- }] } });
4208
+ args: [{ selector: 'ax-color-palette', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], encapsulation: ViewEncapsulation.None, template: "<ng-content select='ax-header'></ng-content>\r\n<ng-content select='ax-color-palette-preview'></ng-content>\r\n<ng-content select='ax-color-palette-swatches'></ng-content>\r\n\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<ng-content select=\"ax-color-palette-input\"></ng-content>\r\n<!-- <ax-color-palette-input></ax-color-palette-input> -->\r\n<ng-content select='ax-footer'></ng-content>" }]
4209
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4232
4210
 
4233
- class AXCollapseGroupComponent extends AXBaseComponent {
4234
- constructor(elementRef, cdr) {
4235
- super(elementRef, cdr);
4236
- this.cdr = cdr;
4237
- this.accordion = false;
4238
- this.nonCollapsedIndex = 0;
4239
- this._subs = [];
4240
- }
4241
- onViewInit() {
4242
- if (this.accordion) {
4243
- this._items.forEach(c => c.isCollapsed = true);
4244
- this._items.get(this.nonCollapsedIndex).isCollapsed = false;
4245
- console.log(this._items[this.nonCollapsedIndex]);
4246
- this._items.forEach((c1) => {
4247
- this._subs.push(c1.isCollapsedChange.subscribe(e => {
4248
- if (!e)
4249
- this._items.toArray().filter(c2 => c2 != c1).forEach(c => c.isCollapsed = true);
4250
- }));
4251
- });
4252
- }
4253
- }
4254
- onDestroy() {
4255
- this._subs.forEach(s => s.unsubscribe());
4256
- this._subs = [];
4211
+ class AXColorPalettePreviewComponent extends AXBaseComponent {
4212
+ constructor(_elementRef, _cdr, _parent) {
4213
+ super(_elementRef, _cdr);
4214
+ this._parent = _parent;
4215
+ _parent?.onValueChanged.subscribe(e => {
4216
+ this._getHostElement().style.backgroundColor = this._hex = e.value;
4217
+ this._getHostElement().style.color = !(AXColorUtil.contrastToWhite(this._hex) > 2.0) ? '#000' : '#fff';
4218
+ });
4257
4219
  }
4220
+ ngOnInit() { }
4258
4221
  }
4259
- 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 });
4260
- 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 });
4261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseGroupComponent, decorators: [{
4222
+ AXColorPalettePreviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePreviewComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXColorPalleteComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4223
+ AXColorPalettePreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXColorPalettePreviewComponent, selector: "ax-color-palette-preview", usesInheritance: true, ngImport: i0, template: `{{_hex}}`, isInline: true, encapsulation: i0.ViewEncapsulation.None });
4224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePreviewComponent, decorators: [{
4262
4225
  type: Component,
4263
4226
  args: [{
4264
- selector: 'ax-collapse-group',
4265
- template: `<ng-content select="ax-collapse"></ng-content>`,
4266
- host: { class: 'ax-collapse-group' },
4267
- changeDetection: ChangeDetectionStrategy.OnPush,
4268
- encapsulation: ViewEncapsulation.None,
4227
+ selector: 'ax-color-palette-preview',
4228
+ template: `{{_hex}}`,
4229
+ encapsulation: ViewEncapsulation.None
4269
4230
  }]
4270
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { accordion: [{
4271
- type: Input
4272
- }], nonCollapsedIndex: [{
4273
- type: Input
4274
- }], _items: [{
4275
- type: ContentChildren,
4276
- args: [AXCollapseComponent]
4277
- }] } });
4231
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorPalleteComponent, decorators: [{
4232
+ type: Optional
4233
+ }, {
4234
+ type: Inject,
4235
+ args: [AXColorPalleteComponent]
4236
+ }] }]; } });
4278
4237
 
4279
- class AXCollapseModule {
4238
+ /**
4239
+ * The Textbox is a component which detects user interaction and triggers a corresponding event
4240
+ *
4241
+ * @category Components
4242
+ */
4243
+ class AXTextBoxComponent extends AXBaseTextBoxMixin {
4244
+ /**
4245
+ * @ignore
4246
+ */
4247
+ constructor(elementRef, cdr) {
4248
+ super(elementRef, cdr);
4249
+ }
4280
4250
  }
4281
- AXCollapseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4282
- AXCollapseModulemod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, declarations: [AXCollapseComponent, AXCollapseGroupComponent], imports: [CommonModule], exports: [AXCollapseComponent, AXCollapseGroupComponent] });
4283
- AXCollapseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, providers: [], imports: [[CommonModule]] });
4284
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, decorators: [{
4285
- type: NgModule,
4286
- args: [{
4287
- declarations: [AXCollapseComponent, AXCollapseGroupComponent],
4288
- imports: [CommonModule],
4289
- exports: [AXCollapseComponent, AXCollapseGroupComponent],
4290
- providers: [],
4291
- }]
4292
- }] });
4251
+ 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 });
4252
+ 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 });
4253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxComponent, decorators: [{
4254
+ type: Component,
4255
+ 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>" }]
4256
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4293
4257
 
4294
- class AXPopoverComponent extends AXInteractiveComponenetMixin {
4295
- constructor(_elementRef, _cdr, _zone, _overlay, _platform, _viewContainerRef) {
4296
- super(_elementRef, _cdr);
4297
- this._elementRef = _elementRef;
4298
- this._cdr = _cdr;
4299
- this._zone = _zone;
4300
- this._overlay = _overlay;
4301
- this._platform = _platform;
4302
- this._viewContainerRef = _viewContainerRef;
4303
- this.position = [
4304
- {
4305
- originX: 'start',
4306
- originY: 'bottom',
4307
- overlayX: 'start',
4308
- overlayY: 'top',
4309
- },
4310
- {
4311
- originX: 'start',
4312
- originY: 'top',
4313
- overlayX: 'start',
4314
- overlayY: 'bottom'
4315
- }
4316
- ];
4317
- this._subs = [];
4318
- //
4319
- this.openTrigger = 'toggle';
4320
- //
4321
- this.closeTrigger = 'clickout';
4322
- //
4323
- this.hasBackdrop = false;
4324
- this.adaptivityEnabled = false;
4325
- //
4326
- this._mousePos = { x: 0, y: 0 };
4327
- this._isScrollAttached = false;
4328
- //
4329
- this.onOpened = new EventEmitter();
4330
- this.onClosed = new EventEmitter();
4258
+ /**
4259
+ * The NumberBox is a component which detects user interaction and triggers a corresponding event
4260
+ *
4261
+ * @category Components
4262
+ */
4263
+ class AXNumberBoxComponent extends AXBaseTextBoxMixin {
4264
+ /**
4265
+ * @ignore
4266
+ */
4267
+ constructor(elementRef, cdr) {
4268
+ super(elementRef, cdr);
4269
+ this.cdr = cdr;
4270
+ this._padDecimalZeros = false;
4271
+ /**
4272
+ * Specifies the value that is used to increment or decrement the **Integer** part of number
4273
+ */
4274
+ this.step = 1;
4275
+ this._decimals = 0;
4276
+ /**
4277
+ * Specifies the value that is used to increment or decrement the **Deciaml** part of number
4278
+ */
4279
+ this.decimalStep = 'auto';
4280
+ /**
4281
+ * Specifies whether the Up and Down spin buttons will be rendered or not
4282
+ */
4283
+ this.showSpinButtons = true;
4284
+ this._minValue = Number.MIN_SAFE_INTEGER;
4285
+ this._maxValue = Number.MAX_SAFE_INTEGER;
4331
4286
  }
4332
- get target() {
4333
- return this._target;
4287
+ /**
4288
+ * A character value that specifies the separator character.
4289
+ */
4290
+ get thousandsSeparator() {
4291
+ return this._thousandsSeparator;
4334
4292
  }
4335
- set target(v) {
4336
- if (v instanceof HTMLElement)
4337
- this._target = v;
4338
- else if (v instanceof ElementRef)
4339
- this._target = v.nativeElement;
4340
- else if (v instanceof AXBaseComponent)
4341
- this._target = v._getInnerElement();
4293
+ set thousandsSeparator(v) {
4294
+ this._setOption({
4295
+ name: "thousandsSeparator",
4296
+ value: v ?? '',
4297
+ });
4342
4298
  }
4343
- _emitOnOpenedEvent() {
4344
- this.onOpened.emit({
4345
- component: this,
4346
- htmlElement: this._getHostElement()
4299
+ /**
4300
+ * A character value that specifies the separator character.
4301
+ */
4302
+ get padDecimalZeros() {
4303
+ return this._padDecimalZeros;
4304
+ }
4305
+ set padDecimalZeros(v) {
4306
+ this._setOption({
4307
+ name: "padDecimalZeros",
4308
+ value: v,
4347
4309
  });
4348
4310
  }
4349
- _emitOnClosedEvent() {
4350
- this.onClosed.emit({
4351
- component: this,
4352
- htmlElement: this._getHostElement()
4311
+ /**
4312
+ * Specifies the number of decimals that the user can enter
4313
+ */
4314
+ get decimals() {
4315
+ return this._decimals;
4316
+ }
4317
+ set decimals(v) {
4318
+ this._setOption({
4319
+ name: "decimals",
4320
+ value: v ?? 0,
4353
4321
  });
4354
4322
  }
4355
- //
4356
- onViewInit() {
4357
- if (this._target) {
4358
- if (this.openTrigger === 'mouseover') {
4323
+ /**
4324
+ * Specifies the smallest value that is valid
4325
+ */
4326
+ get minValue() {
4327
+ return this._minValue;
4328
+ }
4329
+ set minValue(v) {
4330
+ this._setOption({
4331
+ name: "minValue",
4332
+ value: v != null ? Number(v) : Number.MIN_SAFE_INTEGER,
4333
+ });
4334
+ }
4335
+ /**
4336
+ * Specifies the greatest value that is valid
4337
+ */
4338
+ get maxValue() {
4339
+ return this._maxValue;
4340
+ }
4341
+ set maxValue(v) {
4342
+ this._setOption({
4343
+ name: "maxValue",
4344
+ value: v != null ? Number(v) : Number.MAX_SAFE_INTEGER,
4345
+ });
4346
+ }
4347
+ onViewInit() {
4348
+ super.onViewInit();
4349
+ this._updateMask();
4350
+ }
4351
+ _onOptionChanged(option) {
4352
+ super._onOptionChanged(option);
4353
+ this._updateMask();
4354
+ }
4355
+ _updateMask() {
4356
+ if (!this._maskObj) {
4357
+ this._maskObj = IMask.createMask({
4358
+ mask: Number,
4359
+ min: this.minValue,
4360
+ max: this.maxValue,
4361
+ thousandsSeparator: this.thousandsSeparator || '',
4362
+ scale: this.decimals,
4363
+ radix: '.',
4364
+ padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
4365
+ });
4366
+ }
4367
+ else {
4368
+ this._maskObj.updateOptions({
4369
+ min: this.minValue,
4370
+ max: this.maxValue,
4371
+ thousandsSeparator: this.thousandsSeparator || '',
4372
+ scale: this.decimals,
4373
+ radix: '.',
4374
+ padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
4375
+ });
4376
+ }
4377
+ this._maskDirective?.maskRef?.updateValue();
4378
+ this._maskDirective?.maskRef?.updateControl();
4379
+ }
4380
+ _handleOnKeydownEvent(e) {
4381
+ const ignore = () => {
4382
+ e.preventDefault();
4383
+ e.stopPropagation();
4384
+ };
4385
+ const input = e.target;
4386
+ const valStr = input.value;
4387
+ const decimalPointIndex = valStr.indexOf('.');
4388
+ const _cursorPos = input.selectionStart;
4389
+ if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
4390
+ if (decimalPointIndex > 0 && _cursorPos > decimalPointIndex && this.decimals > 0) {
4391
+ e.key === 'ArrowDown' ? this.decimalStepDown() : this.decimalStepUp();
4392
+ }
4393
+ else {
4394
+ e.key === 'ArrowDown' ? this.stepDown() : this.stepUp();
4395
+ }
4396
+ ignore();
4397
+ setTimeout(() => {
4398
+ input.setSelectionRange(_cursorPos, _cursorPos);
4399
+ }, 5);
4400
+ }
4401
+ super._emitOnKeydownEvent(e);
4402
+ }
4403
+ _handleUpDownClick(e, v) {
4404
+ v == 1 ? this.stepUp() : this.stepDown();
4405
+ }
4406
+ _onValueChanging(value) {
4407
+ const v = _.toNumber(value);
4408
+ if (v < this.minValue)
4409
+ return this.minValue;
4410
+ if (v > this.maxValue)
4411
+ return this.maxValue;
4412
+ return v;
4413
+ }
4414
+ stepUp() {
4415
+ this.value += _.toNumber(this.step);
4416
+ }
4417
+ stepDown() {
4418
+ this.value -= _.toNumber(this.step);
4419
+ }
4420
+ decimalStepUp() {
4421
+ this.value += _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
4422
+ }
4423
+ decimalStepDown() {
4424
+ this.value -= _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
4425
+ }
4426
+ }
4427
+ 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 });
4428
+ 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 });
4429
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxComponent, decorators: [{
4430
+ type: Component,
4431
+ args: [{ selector: 'ax-number-box', inputs: [
4432
+ 'disabled',
4433
+ 'readonly',
4434
+ 'tabIndex',
4435
+ 'size',
4436
+ 'value',
4437
+ ...TEXTBOX_INPUTS,
4438
+ ], outputs: [
4439
+ 'valueChange',
4440
+ 'onValueChanged',
4441
+ 'onBlur',
4442
+ 'onFocus',
4443
+ ...TEXTBOX_OUTPUT,
4444
+ ], 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>" }]
4445
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { thousandsSeparator: [{
4446
+ type: Input
4447
+ }], padDecimalZeros: [{
4448
+ type: Input
4449
+ }], step: [{
4450
+ type: Input
4451
+ }], decimals: [{
4452
+ type: Input
4453
+ }], decimalStep: [{
4454
+ type: Input
4455
+ }], showSpinButtons: [{
4456
+ type: Input
4457
+ }], minValue: [{
4458
+ type: Input
4459
+ }], maxValue: [{
4460
+ type: Input
4461
+ }], _maskDirective: [{
4462
+ type: ViewChild,
4463
+ args: [IMaskDirective]
4464
+ }] } });
4465
+
4466
+ class AXColorPaletteInputComponent extends AXBaseComponent {
4467
+ constructor(_elementRef, _cdr, _parent) {
4468
+ super(_elementRef, _cdr);
4469
+ this._parent = _parent;
4470
+ this._rgba = {
4471
+ r: 255,
4472
+ g: 255,
4473
+ b: 255,
4474
+ a: 0
4475
+ };
4476
+ this._hex = "#000000";
4477
+ this.inputMode = 'rgba';
4478
+ _parent?.onValueChanged.subscribe(e => {
4479
+ if (this._hex != e.value) {
4480
+ this._hex = e.value;
4481
+ Object.assign(this._rgba, AXColorUtil.hex2Rgb(e.value));
4482
+ }
4483
+ });
4484
+ }
4485
+ _handleChangeInputMode(e) {
4486
+ // switch (this.inputMode) {
4487
+ // case 'rgba':
4488
+ // this.inputMode = 'hsla'
4489
+ // break;
4490
+ // case 'hsla':
4491
+ // this.inputMode = 'hwba'
4492
+ // break;
4493
+ // case 'hwba':
4494
+ // this.inputMode = 'hex'
4495
+ // break;
4496
+ // case 'hex':
4497
+ // this.inputMode = 'rgba'
4498
+ // break;
4499
+ // }
4500
+ this.inputMode = this.inputMode == 'rgba' ? 'hex' : 'rgba';
4501
+ }
4502
+ _handleRGBAValueChanged(e) {
4503
+ if (this._parent) {
4504
+ this._parent.value = AXColorUtil.rgba2Hex(this._rgba);
4505
+ }
4506
+ }
4507
+ _handleHEXAValueChanged(e) {
4508
+ debugger;
4509
+ const color = AXColorUtil.hex2Rgb(e.value);
4510
+ if (this._parent && color) {
4511
+ Object.assign(this._rgba, color);
4512
+ this._parent.value = e.value;
4513
+ }
4514
+ else {
4515
+ this._hex = this._parent.value;
4516
+ this._cdr.markForCheck();
4517
+ }
4518
+ }
4519
+ }
4520
+ AXColorPaletteInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteInputComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXColorPalleteComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4521
+ 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]=\"inputMode\">\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-min-w-[32px]\" (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 });
4522
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteInputComponent, decorators: [{
4523
+ type: Component,
4524
+ args: [{ selector: 'ax-color-palette-input', encapsulation: ViewEncapsulation.None, template: "<div class=\"palette-input-container\" [ngSwitch]=\"inputMode\">\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-min-w-[32px]\" (onClick)=\"_handleChangeInputMode($event)\">\r\n <ax-icon class=\"ax-ic ax-ic-unfold\"></ax-icon>\r\n </ax-button>\r\n</div>" }]
4525
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorPalleteComponent, decorators: [{
4526
+ type: Optional
4527
+ }, {
4528
+ type: Inject,
4529
+ args: [AXColorPalleteComponent]
4530
+ }] }]; } });
4531
+
4532
+ class AXColorPalettePickerComponent {
4533
+ constructor() { }
4534
+ ngOnInit() { }
4535
+ }
4536
+ AXColorPalettePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4537
+ AXColorPalettePickerComponent.ɵcmp = 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 });
4538
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePickerComponent, decorators: [{
4539
+ type: Component,
4540
+ args: [{
4541
+ selector: 'ax-color-palette-picker',
4542
+ template: ``,
4543
+ encapsulation: ViewEncapsulation.None
4544
+ }]
4545
+ }], ctorParameters: function () { return []; } });
4546
+
4547
+ class AXColorPaletteSwatchesComponent extends AXBaseComponent {
4548
+ constructor(_elementRef, _cdr, _parent) {
4549
+ super(_elementRef, _cdr);
4550
+ this._parent = _parent;
4551
+ this.colors = [];
4552
+ this._defaultPalette = [
4553
+ { code: '#000000' },
4554
+ { code: '#ffffff' },
4555
+ // Amber
4556
+ { code: '#fff8e1' },
4557
+ { code: '#ffecb3' },
4558
+ { code: '#ffe082' },
4559
+ { code: '#ffd54f' },
4560
+ { code: '#ffca28' },
4561
+ { code: '#ffc107' },
4562
+ { code: '#ffb300' },
4563
+ { code: '#ffa000' },
4564
+ { code: '#ff8f00' },
4565
+ { code: '#ff6f00' },
4566
+ // Blue Grey
4567
+ { code: '#ECEFF1' },
4568
+ { code: '#CFD8DC' },
4569
+ { code: '#B0BEC5' },
4570
+ { code: '#90A4AE' },
4571
+ { code: '#78909C' },
4572
+ { code: '#607D8B' },
4573
+ { code: '#546E7A' },
4574
+ { code: '#455A64' },
4575
+ { code: '#37474F' },
4576
+ { code: '#263238' },
4577
+ // Blue
4578
+ { code: '#E3F2FD' },
4579
+ { code: '#BBDEFB' },
4580
+ { code: '#90CAF9' },
4581
+ { code: '#64B5F6' },
4582
+ { code: '#42A5F5' },
4583
+ { code: '#2196F3' },
4584
+ { code: '#1E88E5' },
4585
+ { code: '#1976D2' },
4586
+ { code: '#1565C0' },
4587
+ { code: '#0D47A1' },
4588
+ // Brown
4589
+ { code: '#EFEBE9' },
4590
+ { code: '#D7CCC8' },
4591
+ { code: '#BCAAA4' },
4592
+ { code: '#A1887F' },
4593
+ { code: '#8D6E63' },
4594
+ { code: '#795548' },
4595
+ { code: '#6D4C41' },
4596
+ { code: '#5D4037' },
4597
+ { code: '#4E342E' },
4598
+ { code: '#3E2723' },
4599
+ // Cyan
4600
+ { code: '#E0F7FA' },
4601
+ { code: '#B2EBF2' },
4602
+ { code: '#80DEEA' },
4603
+ { code: '#4DD0E1' },
4604
+ { code: '#26C6DA' },
4605
+ { code: '#00BCD4' },
4606
+ { code: '#00ACC1' },
4607
+ { code: '#0097A7' },
4608
+ { code: '#00838F' },
4609
+ { code: '#006064' },
4610
+ // Deep Orange
4611
+ { code: '#FBE9E7' },
4612
+ { code: '#FFCCBC' },
4613
+ { code: '#FFAB91' },
4614
+ { code: '#FF8A65' },
4615
+ { code: '#FF7043' },
4616
+ { code: '#FF5722' },
4617
+ { code: '#F4511E' },
4618
+ { code: '#E64A19' },
4619
+ { code: '#D84315' },
4620
+ { code: '#BF360C' },
4621
+ // Deep Purple
4622
+ { code: '#EDE7F6' },
4623
+ { code: '#D1C4E9' },
4624
+ { code: '#B39DDB' },
4625
+ { code: '#9575CD' },
4626
+ { code: '#7E57C2' },
4627
+ { code: '#673AB7' },
4628
+ { code: '#5E35B1' },
4629
+ { code: '#512DA8' },
4630
+ { code: '#4527A0' },
4631
+ { code: '#311B92' },
4632
+ // Green
4633
+ { code: '#E8F5E9' },
4634
+ { code: '#C8E6C9' },
4635
+ { code: '#A5D6A7' },
4636
+ { code: '#81C784' },
4637
+ { code: '#66BB6A' },
4638
+ { code: '#4CAF50' },
4639
+ { code: '#43A047' },
4640
+ { code: '#388E3C' },
4641
+ { code: '#2E7D32' },
4642
+ { code: '#1B5E20' },
4643
+ // Grey
4644
+ { code: '#FAFAFA' },
4645
+ { code: '#F5F5F5' },
4646
+ { code: '#EEEEEE' },
4647
+ { code: '#E0E0E0' },
4648
+ { code: '#BDBDBD' },
4649
+ { code: '#9E9E9E' },
4650
+ { code: '#757575' },
4651
+ { code: '#616161' },
4652
+ { code: '#424242' },
4653
+ { code: '#212121' },
4654
+ // Indigo
4655
+ { code: '#E8EAF6' },
4656
+ { code: '#C5CAE9' },
4657
+ { code: '#9FA8DA' },
4658
+ { code: '#7986CB' },
4659
+ { code: '#5C6BC0' },
4660
+ { code: '#3F51B5' },
4661
+ { code: '#3949AB' },
4662
+ { code: '#303F9F' },
4663
+ { code: '#283593' },
4664
+ { code: '#1A237E' },
4665
+ // Light Blue
4666
+ { code: '#E1F5FE' },
4667
+ { code: '#B3E5FC' },
4668
+ { code: '#81D4FA' },
4669
+ { code: '#4FC3F7' },
4670
+ { code: '#29B6F6' },
4671
+ { code: '#03A9F4' },
4672
+ { code: '#039BE5' },
4673
+ { code: '#0288D1' },
4674
+ { code: '#0277BD' },
4675
+ { code: '#01579B' },
4676
+ // Light Green
4677
+ { code: '#F1F8E9' },
4678
+ { code: '#DCEDC8' },
4679
+ { code: '#C5E1A5' },
4680
+ { code: '#AED581' },
4681
+ { code: '#9CCC65' },
4682
+ { code: '#8BC34A' },
4683
+ { code: '#7CB342' },
4684
+ { code: '#689F38' },
4685
+ { code: '#558B2F' },
4686
+ { code: '#33691E' },
4687
+ // Lime
4688
+ { code: '#F9FBE7' },
4689
+ { code: '#F0F4C3' },
4690
+ { code: '#E6EE9C' },
4691
+ { code: '#DCE775' },
4692
+ { code: '#D4E157' },
4693
+ { code: '#CDDC39' },
4694
+ { code: '#C0CA33' },
4695
+ { code: '#AFB42B' },
4696
+ { code: '#9E9D24' },
4697
+ { code: '#827717' },
4698
+ // Orange
4699
+ { code: '#FFF3E0' },
4700
+ { code: '#FFE0B2' },
4701
+ { code: '#FFCC80' },
4702
+ { code: '#FFB74D' },
4703
+ { code: '#FFA726' },
4704
+ { code: '#FF9800' },
4705
+ { code: '#FB8C00' },
4706
+ { code: '#F57C00' },
4707
+ { code: '#EF6C00' },
4708
+ { code: '#E65100' },
4709
+ // Pink
4710
+ { code: '#FCE4EC' },
4711
+ { code: '#F8BBD0' },
4712
+ { code: '#F48FB1' },
4713
+ { code: '#F06292' },
4714
+ { code: '#EC407A' },
4715
+ { code: '#E91E63' },
4716
+ { code: '#D81B60' },
4717
+ { code: '#C2185B' },
4718
+ { code: '#AD1457' },
4719
+ { code: '#880E4F' },
4720
+ // Purple
4721
+ { code: '#F3E5F5' },
4722
+ { code: '#E1BEE7' },
4723
+ { code: '#CE93D8' },
4724
+ { code: '#BA68C8' },
4725
+ { code: '#AB47BC' },
4726
+ { code: '#9C27B0' },
4727
+ { code: '#8E24AA' },
4728
+ { code: '#7B1FA2' },
4729
+ { code: '#6A1B9A' },
4730
+ { code: '#4A148C' },
4731
+ // Red
4732
+ { code: '#FFEBEE' },
4733
+ { code: '#FFCDD2' },
4734
+ { code: '#EF9A9A' },
4735
+ { code: '#E57373' },
4736
+ { code: '#EF5350' },
4737
+ { code: '#F44336' },
4738
+ { code: '#E53935' },
4739
+ { code: '#D32F2F' },
4740
+ { code: '#C62828' },
4741
+ { code: '#B71C1C' },
4742
+ // Teal
4743
+ { code: '#E0F2F1' },
4744
+ { code: '#B2DFDB' },
4745
+ { code: '#80CBC4' },
4746
+ { code: '#4DB6AC' },
4747
+ { code: '#26A69A' },
4748
+ { code: '#009688' },
4749
+ { code: '#00897B' },
4750
+ { code: '#00796B' },
4751
+ { code: '#00695C' },
4752
+ { code: '#004D40' },
4753
+ // Yellow
4754
+ { code: '#FFFDE7' },
4755
+ { code: '#FFF9C4' },
4756
+ { code: '#FFF59D' },
4757
+ { code: '#FFF176' },
4758
+ { code: '#FFEE58' },
4759
+ { code: '#FFEB3B' },
4760
+ { code: '#FDD835' },
4761
+ { code: '#FBC02D' },
4762
+ { code: '#F9A825' },
4763
+ { code: '#F57F17' },
4764
+ ];
4765
+ _parent?.onValueChanged.subscribe(e => {
4766
+ this._selected = e.value;
4767
+ });
4768
+ debugger;
4769
+ if (this._getHostElement().tagName.toLocaleLowerCase() != 'ax-color-palette-favorite') {
4770
+ this.colors = this._defaultPalette;
4771
+ }
4772
+ }
4773
+ _handleClick(e, color) {
4774
+ this._parent.value = this._selected = color.code;
4775
+ }
4776
+ }
4777
+ AXColorPaletteSwatchesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteSwatchesComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXColorPalleteComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
4778
+ 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">
4779
+ <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)" >
4780
+ </div>
4781
+ </div>`, isInline: true, directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None });
4782
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteSwatchesComponent, decorators: [{
4783
+ type: Component,
4784
+ args: [{
4785
+ selector: 'ax-color-palette-swatches, ax-color-palette-favorite',
4786
+ template: `<div class="palette-items">
4787
+ <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)" >
4788
+ </div>
4789
+ </div>`,
4790
+ encapsulation: ViewEncapsulation.None
4791
+ }]
4792
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorPalleteComponent, decorators: [{
4793
+ type: Optional
4794
+ }, {
4795
+ type: Inject,
4796
+ args: [AXColorPalleteComponent]
4797
+ }] }]; }, propDecorators: { colors: [{
4798
+ type: Input
4799
+ }] } });
4800
+
4801
+ class AXTextBoxModule {
4802
+ }
4803
+ AXTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4804
+ AXTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [CommonModule,
4805
+ FormsModule,
4806
+ AXButtonModule,
4807
+ AXDecoratorModule, i1$3.NgxMaskModule], exports: [AXTextBoxComponent] });
4808
+ AXTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, providers: [], imports: [[
4809
+ CommonModule,
4810
+ FormsModule,
4811
+ AXButtonModule,
4812
+ AXDecoratorModule,
4813
+ NgxMaskModule.forChild()
4814
+ ]] });
4815
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, decorators: [{
4816
+ type: NgModule,
4817
+ args: [{
4818
+ imports: [
4819
+ CommonModule,
4820
+ FormsModule,
4821
+ AXButtonModule,
4822
+ AXDecoratorModule,
4823
+ NgxMaskModule.forChild()
4824
+ ],
4825
+ exports: [AXTextBoxComponent],
4826
+ declarations: [AXTextBoxComponent],
4827
+ providers: [],
4828
+ }]
4829
+ }] });
4830
+
4831
+ class AXLabelComponent extends AXBaseComponentMixin {
4832
+ constructor(elementRef, cdr) {
4833
+ super(elementRef, cdr);
4834
+ }
4835
+ get target() {
4836
+ return this._target;
4837
+ }
4838
+ set target(v) {
4839
+ this._target = v;
4840
+ this._cdr.markForCheck();
4841
+ }
4842
+ }
4843
+ 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 });
4844
+ 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 });
4845
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelComponent, decorators: [{
4846
+ type: Component,
4847
+ 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>" }]
4848
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { class: [{
4849
+ type: Input
4850
+ }] } });
4851
+
4852
+ const COMPONENT$g = [AXLabelComponent];
4853
+ const MODULES$h = [CommonModule];
4854
+ class AXLabelModule {
4855
+ }
4856
+ AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4857
+ AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
4858
+ AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$h]] });
4859
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, decorators: [{
4860
+ type: NgModule,
4861
+ args: [{
4862
+ declarations: [...COMPONENT$g],
4863
+ imports: [...MODULES$h],
4864
+ exports: [...COMPONENT$g],
4865
+ providers: [],
4866
+ }]
4867
+ }] });
4868
+
4869
+ const COMPONENT$f = [AXNumberBoxComponent];
4870
+ const MODULES$g = [
4871
+ CommonModule,
4872
+ FormsModule,
4873
+ AXButtonModule,
4874
+ AXDecoratorModule,
4875
+ IMaskModule
4876
+ ];
4877
+ class AXNumberBoxModule {
4878
+ }
4879
+ AXNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4880
+ AXNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, declarations: [AXNumberBoxComponent], imports: [CommonModule,
4881
+ FormsModule,
4882
+ AXButtonModule,
4883
+ AXDecoratorModule,
4884
+ IMaskModule], exports: [AXNumberBoxComponent] });
4885
+ AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, providers: [], imports: [[...MODULES$g]] });
4886
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, decorators: [{
4887
+ type: NgModule,
4888
+ args: [{
4889
+ declarations: [...COMPONENT$f],
4890
+ imports: [...MODULES$g],
4891
+ exports: [...COMPONENT$f],
4892
+ providers: [],
4893
+ }]
4894
+ }] });
4895
+
4896
+ const MODULES$f = [
4897
+ AXTextBoxModule,
4898
+ AXLabelModule,
4899
+ AXButtonModule,
4900
+ AXDecoratorModule,
4901
+ AXNumberBoxModule
4902
+ ];
4903
+ const CONPONENTS = [
4904
+ AXColorPalleteComponent,
4905
+ AXColorPalettePreviewComponent,
4906
+ AXColorPaletteSwatchesComponent,
4907
+ AXColorPaletteInputComponent,
4908
+ AXColorPalettePickerComponent
4909
+ ];
4910
+ class AXColorPaletteModule {
4911
+ }
4912
+ AXColorPaletteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4913
+ AXColorPaletteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, declarations: [AXColorPalleteComponent,
4914
+ AXColorPalettePreviewComponent,
4915
+ AXColorPaletteSwatchesComponent,
4916
+ AXColorPaletteInputComponent,
4917
+ AXColorPalettePickerComponent], imports: [CommonModule, AXTextBoxModule,
4918
+ AXLabelModule,
4919
+ AXButtonModule,
4920
+ AXDecoratorModule,
4921
+ AXNumberBoxModule], exports: [AXColorPalleteComponent,
4922
+ AXColorPalettePreviewComponent,
4923
+ AXColorPaletteSwatchesComponent,
4924
+ AXColorPaletteInputComponent,
4925
+ AXColorPalettePickerComponent] });
4926
+ AXColorPaletteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, providers: [], imports: [[CommonModule, ...MODULES$f]] });
4927
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, decorators: [{
4928
+ type: NgModule,
4929
+ args: [{
4930
+ declarations: [...CONPONENTS],
4931
+ imports: [CommonModule, ...MODULES$f],
4932
+ exports: [...CONPONENTS],
4933
+ providers: [],
4934
+ }]
4935
+ }] });
4936
+
4937
+ class AXCollapseComponent extends AXBaseComponent {
4938
+ constructor(elementRef, cdr) {
4939
+ super(elementRef, cdr);
4940
+ this.cdr = cdr;
4941
+ this.isCollapsedChange = new EventEmitter();
4942
+ this._isCollapsed = false;
4943
+ this.caption = null;
4944
+ }
4945
+ get isCollapsed() {
4946
+ return this._isCollapsed;
4947
+ }
4948
+ set isCollapsed(v) {
4949
+ if (v != this._isCollapsed) {
4950
+ this._isCollapsed = v;
4951
+ this.isCollapsedChange.emit(v);
4952
+ this._cdr.detectChanges();
4953
+ }
4954
+ }
4955
+ handleHeaderClick() {
4956
+ this.isCollapsed = !this.isCollapsed;
4957
+ }
4958
+ }
4959
+ 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 });
4960
+ 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 });
4961
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseComponent, decorators: [{
4962
+ type: Component,
4963
+ 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>" }]
4964
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { isCollapsedChange: [{
4965
+ type: Output
4966
+ }], isCollapsed: [{
4967
+ type: Input
4968
+ }], caption: [{
4969
+ type: Input
4970
+ }], headerTemplate: [{
4971
+ type: ContentChild,
4972
+ args: ['header', { static: true }]
4973
+ }] } });
4974
+
4975
+ class AXCollapseGroupComponent extends AXBaseComponent {
4976
+ constructor(elementRef, cdr) {
4977
+ super(elementRef, cdr);
4978
+ this.cdr = cdr;
4979
+ this.accordion = false;
4980
+ this.nonCollapsedIndex = 0;
4981
+ this._subs = [];
4982
+ }
4983
+ onViewInit() {
4984
+ if (this.accordion) {
4985
+ this._items.forEach(c => c.isCollapsed = true);
4986
+ this._items.get(this.nonCollapsedIndex).isCollapsed = false;
4987
+ console.log(this._items[this.nonCollapsedIndex]);
4988
+ this._items.forEach((c1) => {
4989
+ this._subs.push(c1.isCollapsedChange.subscribe(e => {
4990
+ if (!e)
4991
+ this._items.toArray().filter(c2 => c2 != c1).forEach(c => c.isCollapsed = true);
4992
+ }));
4993
+ });
4994
+ }
4995
+ }
4996
+ onDestroy() {
4997
+ this._subs.forEach(s => s.unsubscribe());
4998
+ this._subs = [];
4999
+ }
5000
+ }
5001
+ 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 });
5002
+ 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 });
5003
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseGroupComponent, decorators: [{
5004
+ type: Component,
5005
+ args: [{
5006
+ selector: 'ax-collapse-group',
5007
+ template: `<ng-content select="ax-collapse"></ng-content>`,
5008
+ host: { class: 'ax-collapse-group' },
5009
+ changeDetection: ChangeDetectionStrategy.OnPush,
5010
+ encapsulation: ViewEncapsulation.None,
5011
+ }]
5012
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { accordion: [{
5013
+ type: Input
5014
+ }], nonCollapsedIndex: [{
5015
+ type: Input
5016
+ }], _items: [{
5017
+ type: ContentChildren,
5018
+ args: [AXCollapseComponent]
5019
+ }] } });
5020
+
5021
+ class AXCollapseModule {
5022
+ }
5023
+ AXCollapseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5024
+ AXCollapseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, declarations: [AXCollapseComponent, AXCollapseGroupComponent], imports: [CommonModule], exports: [AXCollapseComponent, AXCollapseGroupComponent] });
5025
+ AXCollapseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, providers: [], imports: [[CommonModule]] });
5026
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, decorators: [{
5027
+ type: NgModule,
5028
+ args: [{
5029
+ declarations: [AXCollapseComponent, AXCollapseGroupComponent],
5030
+ imports: [CommonModule],
5031
+ exports: [AXCollapseComponent, AXCollapseGroupComponent],
5032
+ providers: [],
5033
+ }]
5034
+ }] });
5035
+
5036
+ class AXPopoverComponent extends AXInteractiveComponenetMixin {
5037
+ constructor(_elementRef, _cdr, _zone, _overlay, _platform, _viewContainerRef) {
5038
+ super(_elementRef, _cdr);
5039
+ this._elementRef = _elementRef;
5040
+ this._cdr = _cdr;
5041
+ this._zone = _zone;
5042
+ this._overlay = _overlay;
5043
+ this._platform = _platform;
5044
+ this._viewContainerRef = _viewContainerRef;
5045
+ this.position = [
5046
+ {
5047
+ originX: 'start',
5048
+ originY: 'bottom',
5049
+ overlayX: 'start',
5050
+ overlayY: 'top',
5051
+ },
5052
+ {
5053
+ originX: 'start',
5054
+ originY: 'top',
5055
+ overlayX: 'start',
5056
+ overlayY: 'bottom'
5057
+ }
5058
+ ];
5059
+ this._subs = [];
5060
+ //
5061
+ this.openTrigger = 'toggle';
5062
+ //
5063
+ this.closeTrigger = 'clickout';
5064
+ //
5065
+ this.hasBackdrop = false;
5066
+ this.adaptivityEnabled = false;
5067
+ //
5068
+ this._mousePos = { x: 0, y: 0 };
5069
+ this._isScrollAttached = false;
5070
+ //
5071
+ this.onOpened = new EventEmitter();
5072
+ this.onClosed = new EventEmitter();
5073
+ }
5074
+ get target() {
5075
+ return this._target;
5076
+ }
5077
+ set target(v) {
5078
+ if (v instanceof HTMLElement)
5079
+ this._target = v;
5080
+ else if (v instanceof ElementRef)
5081
+ this._target = v.nativeElement;
5082
+ else if (v instanceof AXBaseComponent)
5083
+ this._target = v._getInnerElement();
5084
+ }
5085
+ _emitOnOpenedEvent() {
5086
+ this.onOpened.emit({
5087
+ component: this,
5088
+ htmlElement: this._getHostElement()
5089
+ });
5090
+ }
5091
+ _emitOnClosedEvent() {
5092
+ this.onClosed.emit({
5093
+ component: this,
5094
+ htmlElement: this._getHostElement()
5095
+ });
5096
+ }
5097
+ //
5098
+ onViewInit() {
5099
+ if (this._target) {
5100
+ if (this.openTrigger === 'mouseover') {
4359
5101
  const mouseEnter$ = fromEvent(this._target, 'mouseover');
4360
5102
  this._addSub(mouseEnter$.subscribe(e => {
4361
5103
  const point = { x: e.clientX, y: e.clientY };
@@ -4503,12 +5245,12 @@ class AXPopoverComponent extends AXInteractiveComponenetMixin {
4503
5245
  this.focus();
4504
5246
  }
4505
5247
  }
4506
- 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 });
5248
+ 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 });
4507
5249
  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 });
4508
5250
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverComponent, decorators: [{
4509
5251
  type: Component,
4510
5252
  args: [{ selector: 'ax-popover', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #baseTemplate>\r\n <ng-content></ng-content>\r\n</ng-template>" }]
4511
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.Overlay }, { type: i1$3.AXPlatform }, { type: i0.ViewContainerRef }]; }, propDecorators: { target: [{
5253
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.Overlay }, { type: i1$4.AXPlatform }, { type: i0.ViewContainerRef }]; }, propDecorators: { target: [{
4512
5254
  type: Input
4513
5255
  }], position: [{
4514
5256
  type: Input
@@ -4549,87 +5291,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
4549
5291
  }]
4550
5292
  }] });
4551
5293
 
4552
- class AXLoadingComponent extends AXBaseComponentMixin {
4553
- /**
4554
- * @ignore
4555
- */
4556
- constructor(elementRef, cdr) {
4557
- super(elementRef, cdr);
4558
- this.visibleChange = new EventEmitter();
4559
- this.type = 'spinner';
4560
- }
4561
- get visible() {
4562
- return this._visible;
4563
- }
4564
- set visible(v) {
4565
- if (v != this._visible) {
4566
- this._visible = v;
4567
- v ? this._getHostElement().classList.remove('ax-hide') : this._getHostElement().classList.add('ax-hide');
4568
- this.visibleChange.emit(v);
4569
- }
4570
- }
4571
- onInit() {
4572
- const loading = AXConfig.get(`layout.loading.${this.type}`);
4573
- this._selectedPortal = new ComponentPortal(loading);
4574
- this._cdr.markForCheck();
4575
- }
4576
- _handleAttched(ref) {
4577
- ref = ref;
4578
- if (ref.instance) {
4579
- ref.instance.text = this.text;
4580
- }
4581
- }
4582
- }
4583
- 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 });
4584
- 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: `
4585
- <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
4586
- `, isInline: true, directives: [{ type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4587
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingComponent, decorators: [{
4588
- type: Component,
4589
- args: [{
4590
- selector: 'ax-loading',
4591
- template: `
4592
- <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
4593
- `,
4594
- changeDetection: ChangeDetectionStrategy.OnPush,
4595
- encapsulation: ViewEncapsulation.None,
4596
- host: { class: 'ax-loading' }
4597
- }]
4598
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { visibleChange: [{
4599
- type: Output
4600
- }], visible: [{
4601
- type: Input
4602
- }], type: [{
4603
- type: Input
4604
- }], text: [{
4605
- type: Input
4606
- }] } });
4607
-
5294
+ const AXBaseColorPickerMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_ValueComponenetMixin(_TextboxComponenetMixin(AXBaseComponent))));
4608
5295
  /**
4609
5296
  * The Button is a component which detects user interaction and triggers a corresponding event
4610
5297
  *
4611
5298
  * @category Components
4612
5299
  */
4613
- class AXColorPickerComponent extends AXBaseSelectionDropdownMixin {
5300
+ class AXColorPickerComponent extends AXBaseColorPickerMixin {
4614
5301
  /**
4615
5302
  * @ignore
4616
5303
  */
4617
5304
  constructor(_elementRef, _cdr, _zone, _platform) {
4618
5305
  super(_elementRef, _cdr);
4619
5306
  this._elementRef = _elementRef;
4620
- this._cdr = _cdr;
4621
5307
  this._zone = _zone;
4622
5308
  this._platform = _platform;
4623
- /**
4624
- * Defines the clearButton.
4625
- */
4626
- this.clearButton = false;
4627
- /**
4628
- * Defines the checkbox.
4629
- */
4630
- this.checkbox = false;
4631
5309
  this._isMobile = false;
4632
- this._forceFocus = false;
4633
5310
  this._isMobile = this._platform.is('Mobile');
4634
5311
  this._platform.resize.subscribe(() => {
4635
5312
  this._isMobile = this._platform.is('Mobile');
@@ -4637,329 +5314,102 @@ class AXColorPickerComponent extends AXBaseSelectionDropdownMixin {
4637
5314
  this._popoverWidth = this._isMobile ? null : this._target.offsetWidth;
4638
5315
  });
4639
5316
  }
4640
- get emptyTemplate() {
4641
- return this._contentEmptyTemplate;
4642
- }
4643
- _handleArrowClickEvent(e) {
4644
- e.nativeEvent.stopPropagation();
4645
- this.toggle();
4646
- }
4647
- _handleInputClickEvent(e) {
4648
- e.stopPropagation();
4649
- this.toggle();
4650
- }
4651
- onInit() {
4652
- super.onInit();
4653
- this._target = this._elementRef.nativeElement;
4654
- this._popoverTitle = this.placeholder || AXTranslator.get('selectbox.popover.title');
4655
- }
4656
- onViewInit() {
4657
- super.onViewInit();
4658
- this._popoverWidth = this._isMobile ? null : this._target.offsetWidth;
4659
- }
4660
- refresh() {
4661
- this.value = null;
4662
- super.refresh();
4663
- }
4664
- _handleOnItemClick(e, item) {
4665
- if (this.isItemDisabled(item)) {
4666
- return;
4667
- }
4668
- if (!this.multiple)
4669
- this.close();
4670
- this.toggleSelect(item);
4671
- this._cdr.detectChanges();
4672
- }
4673
- _handleListScroll(e) {
4674
- const list = e.target;
4675
- if ((list.scrollTop < list.scrollHeight - list.clientHeight)) {
4676
- return;
4677
- }
4678
- this._fetchData();
4679
- }
4680
- _checkForLoadData() {
4681
- const list = this.listContainer.nativeElement;
4682
- if (this.loadedCount < this.totalCount && list.scrollHeight < ((list.parentElement.clientHeight) * 1.5)) {
4683
- this._fetchData();
4684
- }
4685
- }
4686
- _onDataLoaded() {
4687
- if (this.popover.isOpen) {
4688
- setTimeout(() => {
4689
- this._checkForLoadData();
4690
- this.popover.updatePosition();
4691
- if (this._forceFocus) {
4692
- this._focusSelectedItem();
4693
- this._forceFocus = false;
4694
- }
4695
- }, 100);
4696
- }
4697
- }
4698
- _onValueChanged(oldValue, newValue) {
4699
- super._onValueChanged(oldValue, newValue);
4700
- }
4701
- _handleOnRemoveItemClick(e, item) {
4702
- this.unselectItems(item);
4703
- e.stopPropagation();
4704
- }
4705
- _handleBadgeRemove(e, item) {
4706
- this.unselectItems(item);
4707
- e.stopPropagation();
4708
- this.close();
4709
- }
4710
- _handleKeydown(e) {
4711
- const isLetter = new RegExp(/[a-zA-Z0-9\-]/).test(String.fromCharCode(e.keyCode));
4712
- if (e.code === 'Backspace' && e.type === 'keydown' &&
4713
- ((this.allowNull === true && this.selectedItems.length > 0) ||
4714
- (this.allowNull !== true && this.selectedItems.length > 1))) {
4715
- this.isUserInput = true;
4716
- this.unselectItems(this.selectedItems.pop());
4717
- e.preventDefault();
4718
- return;
4719
- }
4720
- else if ((e.code === 'ArrowDown' || e.code === 'ArrowUp' || e.code === 'Space') && !this.popover.isOpen && e.type === 'keydown') {
4721
- if (this.multiple) {
4722
- this.open();
4723
- }
4724
- else {
4725
- this.isUserInput = true;
4726
- if (e.ctrlKey || e.code === 'Space') {
4727
- this.open();
4728
- }
4729
- else {
4730
- this._selectedItemByNav((e.key === 'ArrowDown' ? 1 : -1));
4731
- }
4732
- }
4733
- e.preventDefault();
4734
- return;
4735
- }
4736
- else if (isLetter) {
4737
- this.text = e.key;
4738
- this.open();
4739
- e.preventDefault();
4740
- return;
4741
- }
4742
- }
4743
- _handlePopoverKeydown(e) {
4744
- if (e.target.tagName == "INPUT" && ['Space', 'Backspace'].includes(e.code))
4745
- return;
4746
- if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0) {
4747
- this.isUserInput = true;
4748
- this._focusItemByNav((e.key === 'ArrowDown' ? 1 : -1));
4749
- e.preventDefault();
4750
- }
4751
- else if (e.code === 'Backspace' &&
4752
- ((this.allowNull === true && this.selectedItems.length > 0) ||
4753
- (this.allowNull !== true && this.selectedItems.length > 1))) {
4754
- this.isUserInput = true;
4755
- this.unselectItems(this.selectedItems.pop());
4756
- e.preventDefault();
4757
- }
4758
- else if ((e.code === 'Space' || e.code === 'Enter')) {
4759
- debugger;
4760
- e.preventDefault();
4761
- const focusedItemId = this.listContainer.nativeElement.querySelector('.ax-state-focus')?.dataset?.id;
4762
- const focusedItem = _.findLast(this.flatItems, [this.valueField, focusedItemId]);
4763
- if (focusedItem) {
4764
- if (this.isItemDisabled(focusedItem)) {
4765
- return;
4766
- }
4767
- if (this.multiple) {
4768
- this.isUserInput = true;
4769
- this.toggleSelect(focusedItem);
4770
- }
4771
- else {
4772
- this.isUserInput = true;
4773
- this.selectItems(focusedItem);
4774
- this.close();
4775
- }
4776
- }
4777
- }
4778
- else if (e.code === "Tab") {
4779
- this.close();
4780
- e.preventDefault();
4781
- e.stopPropagation();
4782
- }
4783
- else if (e.key === 'Escape') {
4784
- this.close();
4785
- e.preventDefault();
4786
- e.stopPropagation();
4787
- }
4788
- }
4789
- async _handlePopupOnOpened(e) {
4790
- this.popover.focus();
4791
- if (this.displayItems.length == 0) {
4792
- this._forceFocus = true;
4793
- this._fetchData();
4794
- }
4795
- else {
4796
- this._focusSelectedItem();
4797
- }
4798
- debugger;
4799
- if (this._searchBox && !this._isMobile) {
4800
- this._searchBox.focus();
4801
- }
4802
- }
4803
- _handlePopupOnClosed(e) {
4804
- this.focus();
4805
- }
4806
- _focusItemByNav(sign) {
4807
- const list = this.listContainer.nativeElement;
4808
- const fn = (s) => list.querySelector(s);
4809
- const itemDiv = fn(`.ax-list-item.ax-state-focus`) || fn(`.ax-list-item.ax-state-selected`) || fn(`.ax-list-item`);
4810
- let next = (sign == 1 ? itemDiv.nextElementSibling : itemDiv.previousElementSibling);
4811
- if (next) {
4812
- this._focusItemElement(next);
4813
- }
4814
- else {
4815
- const parent = itemDiv.closest('.ax-list-item-group');
4816
- if (parent) {
4817
- const lis = (sign == 1 ? parent.nextElementSibling : parent.previousElementSibling)?.querySelectorAll('li');
4818
- const a = sign == 1 ? _.first(lis) : _.last(lis);
4819
- if (a) {
4820
- this._focusItemElement(a);
4821
- }
4822
- }
4823
- }
5317
+ _handleArrowClickEvent(e) {
5318
+ e.nativeEvent.stopPropagation();
5319
+ this.toggle();
4824
5320
  }
4825
- _focusSelectedItem() {
4826
- this._zone.runOutsideAngular(() => {
4827
- const list = this.listContainer.nativeElement;
4828
- const fn = (s) => list.querySelector(s);
4829
- const itemDiv = fn(`.ax-list-item.ax-state-selected`) || fn(`.ax-list-item`);
4830
- if (itemDiv) {
4831
- this._focusItemElement(itemDiv);
4832
- }
4833
- });
5321
+ _handleInputClickEvent(e) {
5322
+ e.stopPropagation();
5323
+ this.toggle();
4834
5324
  }
4835
- _focusItemElement(el) {
4836
- this._zone.runOutsideAngular(() => {
4837
- const list = this.listContainer.nativeElement;
4838
- list.querySelectorAll('.ax-list-item').forEach(c => {
4839
- if (c == el) {
4840
- c.classList.add('ax-state-focus');
4841
- el.scrollIntoView({ behavior: 'auto' });
4842
- }
4843
- else {
4844
- c.classList.remove('ax-state-focus');
4845
- }
4846
- });
4847
- if (!this._isMobile && this._searchBox)
4848
- this._searchBox.focus();
4849
- else
4850
- el.focus();
4851
- });
5325
+ onInit() {
5326
+ super.onInit();
5327
+ this._target = this._elementRef.nativeElement;
5328
+ this._popoverTitle = this.placeholder || AXTranslator.get('selectbox.popover.title');
4852
5329
  }
4853
- _selectedItemByNav(sign) {
4854
- const last = _.last(this.selectedItems);
4855
- let i = 0;
4856
- if (last) {
4857
- i = _.findLastIndex(this.flatItems, [this.valueField, last[this.valueField]]);
4858
- }
4859
- i += sign;
4860
- let next = _.nth(this.flatItems, i);
4861
- while (next?.children && next?.children.length) {
4862
- i += sign;
4863
- next = _.nth(this.flatItems, i);
4864
- }
4865
- if (next) {
4866
- this.selectItems(next);
4867
- }
4868
- else if (next == null && sign == 1) {
4869
- this._fetchData();
4870
- }
5330
+ onViewInit() {
5331
+ super.onViewInit();
5332
+ this._popoverWidth = this._isMobile ? null : this._target.offsetWidth;
4871
5333
  }
4872
- _onSearchExprChanged(e) {
4873
- this.empty();
4874
- this._forceFocus = true;
4875
- this._fetchData();
5334
+ _onValueChanged(oldValue, newValue) {
5335
+ super._onValueChanged(oldValue, newValue);
5336
+ this.close();
4876
5337
  }
4877
- search(exp) {
4878
- debugger;
4879
- this.empty();
4880
- this._forceFocus = true;
4881
- this._fetchData();
5338
+ async _handlePopupOnOpened(e) {
4882
5339
  }
4883
- _fetchData() {
4884
- super._fetchData({ searchQuery: this._searchBox?.searchExp });
5340
+ _handlePopupOnClosed(e) {
5341
+ this.focus();
4885
5342
  }
4886
5343
  }
4887
- 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 });
4888
- 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: [
5344
+ 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 });
5345
+ 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: [
4889
5346
  { provide: AXClosbaleComponent, useExisting: AXColorPickerComponent }
4890
- ], 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 });
5347
+ ], 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 class=\"color-badge\" [ngStyle]=\"{'background-color': value}\"></div>\r\n <div>{{value}}</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\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\">\r\n <ax-color-palette [(value)]=\"value\">\r\n <ax-color-palette-preview></ax-color-palette-preview>\r\n <ax-color-palette-swatches></ax-color-palette-swatches>\r\n <ax-color-palette-input></ax-color-palette-input>\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"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { 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.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
4891
5348
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerComponent, decorators: [{
4892
5349
  type: Component,
4893
5350
  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: [
4894
5351
  { provide: AXClosbaleComponent, useExisting: AXColorPickerComponent }
4895
- ], 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> " }]
4896
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$3.AXPlatform }]; }, propDecorators: { popover: [{
5352
+ ], 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=\"color-badge\" [ngStyle]=\"{'background-color': value}\"></div>\r\n <div>{{value}}</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\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\">\r\n <ax-color-palette [(value)]=\"value\">\r\n <ax-color-palette-preview></ax-color-palette-preview>\r\n <ax-color-palette-swatches></ax-color-palette-swatches>\r\n <ax-color-palette-input></ax-color-palette-input>\r\n </ax-color-palette>\r\n </div>\r\n</ax-popover>" }]
5353
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
4897
5354
  type: ViewChild,
4898
5355
  args: [AXPopoverComponent, { static: true }]
4899
- }], clearButton: [{
4900
- type: Input
4901
- }], checkbox: [{
4902
- type: Input
4903
- }], listContainer: [{
4904
- type: ViewChild,
4905
- args: ['listContainer', { static: true }]
4906
- }], _contentEmptyTemplate: [{
4907
- type: ContentChild,
4908
- args: ['emptyTemplate']
4909
- }], _handleKeydown: [{
4910
- type: HostListener,
4911
- args: ['keydown', ['$event']]
4912
5356
  }] } });
4913
5357
 
4914
- /**
4915
- * The Textbox is a component which detects user interaction and triggers a corresponding event
4916
- *
4917
- * @category Components
4918
- */
4919
- class AXTextBoxComponent extends AXBaseTextBoxMixin {
5358
+ class AXLoadingComponent extends AXBaseComponentMixin {
4920
5359
  /**
4921
- * @ignore
4922
- */
5360
+ * @ignore
5361
+ */
4923
5362
  constructor(elementRef, cdr) {
4924
5363
  super(elementRef, cdr);
5364
+ this.visibleChange = new EventEmitter();
5365
+ this.type = 'spinner';
5366
+ }
5367
+ get visible() {
5368
+ return this._visible;
5369
+ }
5370
+ set visible(v) {
5371
+ if (v != this._visible) {
5372
+ this._visible = v;
5373
+ v ? this._getHostElement().classList.remove('ax-hide') : this._getHostElement().classList.add('ax-hide');
5374
+ this.visibleChange.emit(v);
5375
+ }
5376
+ }
5377
+ onInit() {
5378
+ const loading = AXConfig.get(`layout.loading.${this.type}`);
5379
+ this._selectedPortal = new ComponentPortal(loading);
5380
+ this._cdr.markForCheck();
5381
+ }
5382
+ _handleAttched(ref) {
5383
+ ref = ref;
5384
+ if (ref.instance) {
5385
+ ref.instance.text = this.text;
5386
+ }
4925
5387
  }
4926
5388
  }
4927
- 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 });
4928
- 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 });
4929
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxComponent, decorators: [{
5389
+ 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 });
5390
+ 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: `
5391
+ <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
5392
+ `, isInline: true, directives: [{ type: i1$5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
5393
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingComponent, decorators: [{
4930
5394
  type: Component,
4931
- 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>" }]
4932
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
4933
-
4934
- class AXTextBoxModule {
4935
- }
4936
- AXTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4937
- AXTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [CommonModule,
4938
- FormsModule,
4939
- AXButtonModule,
4940
- AXDecoratorModule, i1$5.NgxMaskModule], exports: [AXTextBoxComponent] });
4941
- AXTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, providers: [], imports: [[
4942
- CommonModule,
4943
- FormsModule,
4944
- AXButtonModule,
4945
- AXDecoratorModule,
4946
- NgxMaskModule.forChild()
4947
- ]] });
4948
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, decorators: [{
4949
- type: NgModule,
4950
5395
  args: [{
4951
- imports: [
4952
- CommonModule,
4953
- FormsModule,
4954
- AXButtonModule,
4955
- AXDecoratorModule,
4956
- NgxMaskModule.forChild()
4957
- ],
4958
- exports: [AXTextBoxComponent],
4959
- declarations: [AXTextBoxComponent],
4960
- providers: [],
5396
+ selector: 'ax-loading',
5397
+ template: `
5398
+ <ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
5399
+ `,
5400
+ changeDetection: ChangeDetectionStrategy.OnPush,
5401
+ encapsulation: ViewEncapsulation.None,
5402
+ host: { class: 'ax-loading' }
4961
5403
  }]
4962
- }] });
5404
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { visibleChange: [{
5405
+ type: Output
5406
+ }], visible: [{
5407
+ type: Input
5408
+ }], type: [{
5409
+ type: Input
5410
+ }], text: [{
5411
+ type: Input
5412
+ }] } });
4963
5413
 
4964
5414
  class AXLoadingSpinnerComponent {
4965
5415
  }
@@ -5057,8 +5507,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
5057
5507
  args: ['axIsLoading']
5058
5508
  }] } });
5059
5509
 
5060
- const COMPONENT$g = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
5061
- const MODULES$g = [CommonModule, OverlayModule, PortalModule];
5510
+ const COMPONENT$e = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
5511
+ const MODULES$e = [CommonModule, OverlayModule, PortalModule];
5062
5512
  class AXLoadingModule {
5063
5513
  constructor() {
5064
5514
  AXConfig.set({
@@ -5072,13 +5522,13 @@ class AXLoadingModule {
5072
5522
  }
5073
5523
  AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5074
5524
  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] });
5075
- AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$g]] });
5525
+ AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$e]] });
5076
5526
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, decorators: [{
5077
5527
  type: NgModule,
5078
5528
  args: [{
5079
- declarations: [...COMPONENT$g],
5080
- imports: [...MODULES$g],
5081
- exports: [...COMPONENT$g],
5529
+ declarations: [...COMPONENT$e],
5530
+ imports: [...MODULES$e],
5531
+ exports: [...COMPONENT$e],
5082
5532
  providers: [],
5083
5533
  }]
5084
5534
  }], ctorParameters: function () { return []; } });
@@ -5243,8 +5693,10 @@ AXColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
5243
5693
  A11yModule,
5244
5694
  AXLoadingModule,
5245
5695
  AXTranslationModule,
5246
- AXTextBoxModule], exports: [AXColorPickerComponent] });
5247
- AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[CommonModule,
5696
+ AXTextBoxModule,
5697
+ AXColorPaletteModule], exports: [AXColorPickerComponent] });
5698
+ AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[
5699
+ CommonModule,
5248
5700
  AXCommonModule,
5249
5701
  FormsModule,
5250
5702
  AXDecoratorModule,
@@ -5253,12 +5705,14 @@ AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
5253
5705
  A11yModule,
5254
5706
  AXLoadingModule,
5255
5707
  AXTranslationModule,
5256
- AXTextBoxModule
5708
+ AXTextBoxModule,
5709
+ AXColorPaletteModule
5257
5710
  ]] });
5258
5711
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerModule, decorators: [{
5259
5712
  type: NgModule,
5260
5713
  args: [{
5261
- imports: [CommonModule,
5714
+ imports: [
5715
+ CommonModule,
5262
5716
  AXCommonModule,
5263
5717
  FormsModule,
5264
5718
  AXDecoratorModule,
@@ -5267,7 +5721,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
5267
5721
  A11yModule,
5268
5722
  AXLoadingModule,
5269
5723
  AXTranslationModule,
5270
- AXTextBoxModule
5724
+ AXTextBoxModule,
5725
+ AXColorPaletteModule
5271
5726
  ],
5272
5727
  exports: [AXColorPickerComponent],
5273
5728
  declarations: [AXColorPickerComponent],
@@ -5320,7 +5775,7 @@ class AXDataListComponent extends AXBaseSelectionValueMixin {
5320
5775
  }
5321
5776
  }
5322
5777
  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 });
5323
- 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 });
5778
+ 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 });
5324
5779
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListComponent, decorators: [{
5325
5780
  type: Component,
5326
5781
  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>" }]
@@ -5344,19 +5799,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
5344
5799
  type: Input
5345
5800
  }] } });
5346
5801
 
5347
- const COMPONENT$f = [AXDataListComponent];
5348
- const MODULES$f = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
5802
+ const COMPONENT$d = [AXDataListComponent];
5803
+ const MODULES$d = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
5349
5804
  class AXDataListModule {
5350
5805
  }
5351
5806
  AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5352
5807
  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] });
5353
- AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$f]] });
5808
+ AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$d]] });
5354
5809
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, decorators: [{
5355
5810
  type: NgModule,
5356
5811
  args: [{
5357
- declarations: [...COMPONENT$f],
5358
- imports: [...MODULES$f],
5359
- exports: [...COMPONENT$f],
5812
+ declarations: [...COMPONENT$d],
5813
+ imports: [...MODULES$d],
5814
+ exports: [...COMPONENT$d],
5360
5815
  providers: [],
5361
5816
  }]
5362
5817
  }] });
@@ -5508,12 +5963,12 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
5508
5963
  input.setSelectionRange(start, end);
5509
5964
  }
5510
5965
  }
5511
- 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 });
5966
+ 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 });
5512
5967
  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 });
5513
5968
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatePickerComponent, decorators: [{
5514
5969
  type: Component,
5515
5970
  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>" }]
5516
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$3.AXPlatform }]; }, propDecorators: { popover: [{
5971
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
5517
5972
  type: ViewChild,
5518
5973
  args: [AXPopoverComponent, { static: true }]
5519
5974
  }], _calendar: [{
@@ -5529,8 +5984,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
5529
5984
  type: Input
5530
5985
  }] } });
5531
5986
 
5532
- const COMPONENT$e = [AXDatePickerComponent];
5533
- const MODULES$e = [
5987
+ const COMPONENT$c = [AXDatePickerComponent];
5988
+ const MODULES$c = [
5534
5989
  CommonModule,
5535
5990
  AXCalendarModule,
5536
5991
  AXTextBoxModule,
@@ -5551,13 +6006,13 @@ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
5551
6006
  AXDecoratorModule,
5552
6007
  AXDateTimeModule,
5553
6008
  FormsModule], exports: [AXDatePickerComponent] });
5554
- AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$e]] });
6009
+ AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$c]] });
5555
6010
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, decorators: [{
5556
6011
  type: NgModule,
5557
6012
  args: [{
5558
- declarations: [...COMPONENT$e],
5559
- imports: [...MODULES$e],
5560
- exports: [...COMPONENT$e],
6013
+ declarations: [...COMPONENT$c],
6014
+ imports: [...MODULES$c],
6015
+ exports: [...COMPONENT$c],
5561
6016
  providers: [],
5562
6017
  }]
5563
6018
  }] });
@@ -5589,7 +6044,7 @@ class AXDialogComponent extends AXBaseComponentMixin {
5589
6044
  }
5590
6045
  }
5591
6046
  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 });
5592
- 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 });
6047
+ 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: i10.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 });
5593
6048
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogComponent, decorators: [{
5594
6049
  type: Component,
5595
6050
  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>" }]
@@ -5882,19 +6337,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
5882
6337
  }]
5883
6338
  }] });
5884
6339
 
5885
- const COMPONENT$d = [AXDialogComponent];
5886
- const MODULES$d = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule];
6340
+ const COMPONENT$b = [AXDialogComponent];
6341
+ const MODULES$b = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule];
5887
6342
  class AXDialogModule {
5888
6343
  }
5889
6344
  AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
5890
6345
  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] });
5891
- AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$d]] });
6346
+ AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$b]] });
5892
6347
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, decorators: [{
5893
6348
  type: NgModule,
5894
6349
  args: [{
5895
- declarations: [...COMPONENT$d],
5896
- imports: [...MODULES$d],
5897
- exports: [...COMPONENT$d],
6350
+ declarations: [...COMPONENT$b],
6351
+ imports: [...MODULES$b],
6352
+ exports: [...COMPONENT$b],
5898
6353
  providers: [],
5899
6354
  }]
5900
6355
  }] });
@@ -6138,57 +6593,74 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
6138
6593
  type: Input
6139
6594
  }] } });
6140
6595
 
6141
- const COMPONENT$c = [AXInputMaskComponent];
6142
- const MODULES$c = [CommonModule, NgxMaskModule.forRoot(), IMaskModule];
6596
+ const COMPONENT$a = [AXInputMaskComponent];
6597
+ const MODULES$a = [CommonModule, NgxMaskModule.forRoot(), IMaskModule];
6143
6598
  class AXInputMaskModule {
6144
6599
  }
6145
6600
  AXInputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6146
- 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] });
6147
- AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$c]] });
6601
+ 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] });
6602
+ AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$a]] });
6148
6603
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, decorators: [{
6149
6604
  type: NgModule,
6150
6605
  args: [{
6151
- declarations: [...COMPONENT$c],
6152
- imports: [...MODULES$c],
6153
- exports: [...COMPONENT$c],
6606
+ declarations: [...COMPONENT$a],
6607
+ imports: [...MODULES$a],
6608
+ exports: [...COMPONENT$a],
6154
6609
  providers: [],
6155
6610
  }]
6156
6611
  }] });
6157
6612
 
6158
- class AXLabelComponent extends AXBaseComponentMixin {
6159
- constructor(elementRef, cdr) {
6160
- super(elementRef, cdr);
6613
+ class AXSearchBoxComponent extends AXBaseComponentMixin {
6614
+ constructor(_elementRef, _cdr, _parent) {
6615
+ super(_elementRef, _cdr);
6616
+ this._parent = _parent;
6617
+ this.placeholder = 'common.search';
6618
+ this.debounceTime = 300;
6619
+ this.searchExp = null;
6161
6620
  }
6162
- get target() {
6163
- return this._target;
6621
+ _onSearchExprChanged(e) {
6622
+ if (this._parent && this._parent.search) {
6623
+ this._parent.search(e.value);
6624
+ }
6164
6625
  }
6165
- set target(v) {
6166
- this._target = v;
6167
- this._cdr.markForCheck();
6626
+ focus() {
6627
+ this._textbox?.focus();
6168
6628
  }
6169
6629
  }
6170
- 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 });
6171
- 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 });
6172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelComponent, decorators: [{
6630
+ 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 });
6631
+ 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$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
6632
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, decorators: [{
6173
6633
  type: Component,
6174
- 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>" }]
6175
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { class: [{
6634
+ 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>" }]
6635
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXSearchableComponent, decorators: [{
6636
+ type: Optional
6637
+ }, {
6638
+ type: Inject,
6639
+ args: [AXSearchableComponent]
6640
+ }] }]; }, propDecorators: { _textbox: [{
6641
+ type: ViewChild,
6642
+ args: [AXTextBoxComponent]
6643
+ }], placeholder: [{
6644
+ type: Input
6645
+ }], debounceTime: [{
6646
+ type: Input
6647
+ }], searchExp: [{
6176
6648
  type: Input
6177
6649
  }] } });
6178
6650
 
6179
- const COMPONENT$b = [AXLabelComponent];
6180
- const MODULES$b = [CommonModule];
6181
- class AXLabelModule {
6651
+ const COMPONENT$9 = [AXSearchBoxComponent];
6652
+ const MODULES$9 = [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule];
6653
+ class AXSearchBoxModule {
6182
6654
  }
6183
- AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6184
- AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
6185
- AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$b]] });
6186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, decorators: [{
6655
+ AXSearchBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6656
+ 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] });
6657
+ AXSearchBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, providers: [], imports: [[...MODULES$9]] });
6658
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, decorators: [{
6187
6659
  type: NgModule,
6188
6660
  args: [{
6189
- declarations: [...COMPONENT$b],
6190
- imports: [...MODULES$b],
6191
- exports: [...COMPONENT$b],
6661
+ declarations: [...COMPONENT$9],
6662
+ imports: [...MODULES$9],
6663
+ exports: [...COMPONENT$9],
6192
6664
  providers: [],
6193
6665
  }]
6194
6666
  }] });
@@ -6203,6 +6675,19 @@ class AXMenuComponent extends AXBaseMenuMixin {
6203
6675
  super(elementRef, cdr);
6204
6676
  this.elementRef = elementRef;
6205
6677
  this.cdr = cdr;
6678
+ this._forceFocus = false;
6679
+ window.addEventListener('click', (e) => {
6680
+ if (this.displayItems.length > 0) {
6681
+ const target = document.querySelector('UL');
6682
+ if (e.target != target) {
6683
+ this.displayItems.forEach((element) => {
6684
+ element.isActive = false;
6685
+ element.isOpen = false;
6686
+ });
6687
+ cdr.detectChanges();
6688
+ }
6689
+ }
6690
+ });
6206
6691
  }
6207
6692
  get emptyTemplate() {
6208
6693
  return this._contentEmptyTemplate;
@@ -6250,350 +6735,126 @@ class AXMenuComponent extends AXBaseMenuMixin {
6250
6735
  });
6251
6736
  if (item.isOpen && item[this.hasChildField] && !item.children) {
6252
6737
  item.isLoading = true;
6253
- this._fetchData(item[this.valueField]).then(() => {
6254
- item.isLoading = false;
6255
- });
6256
- }
6257
- }
6258
- e.stopPropagation();
6259
- e.preventDefault();
6260
- }
6261
- _onMouseEnter(e, item) {
6262
- if (this.isLoading) {
6263
- return;
6264
- }
6265
- if (!item[this.disableField] && this.openMode === 'hover') {
6266
- if (item.children?.length > 0 || item[this.hasChildField]) {
6267
- if (item.children?.length > 0) {
6268
- this._closeChild(item.children);
6269
- }
6270
- item.isOpen = true;
6271
- }
6272
- this.onMenuItemClick.emit({
6273
- component: this,
6274
- item: item,
6275
- nativeEvent: e,
6276
- });
6277
- if (item.isOpen && item[this.hasChildField] && !item.children) {
6278
- item.isLoading = true;
6279
- this._fetchData(item[this.valueField]).then(() => {
6280
- item.isLoading = false;
6281
- });
6282
- }
6283
- }
6284
- e.stopPropagation();
6285
- e.preventDefault();
6286
- }
6287
- _onMouseLeave(item) {
6288
- if (!item[this.disableField] && this.openMode === 'hover') {
6289
- if (item.children?.length > 0 || item[this.hasChildField]) {
6290
- if (item.children?.length > 0) {
6291
- this._closeChild(item.children);
6292
- }
6293
- item.isOpen = false;
6294
- }
6295
- }
6296
- }
6297
- _notActive(items) {
6298
- items.forEach((element) => {
6299
- element.isActive = false;
6300
- if (element.children?.length > 0) {
6301
- this._notActive(element.children);
6302
- }
6303
- });
6304
- }
6305
- _closeChild(items) {
6306
- items.forEach((element) => {
6307
- element.isOpen = false;
6308
- if (element.children?.length > 0) {
6309
- this._closeChild(element.children);
6310
- }
6311
- });
6312
- }
6313
- _setParentNode(item, parentId) {
6314
- item.forEach((element) => {
6315
- element.parentId = parentId;
6316
- });
6317
- }
6318
- _getDirection() {
6319
- if (this.direction === 'horizontal') {
6320
- return 'horizontal-mode';
6321
- }
6322
- else {
6323
- return 'vertical-mode';
6324
- }
6325
- }
6326
- }
6327
- 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 });
6328
- 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 });
6329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, decorators: [{
6330
- type: Component,
6331
- 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>" }]
6332
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _contentEmptyTemplate: [{
6333
- type: ContentChild,
6334
- args: ['emptyTemplate']
6335
- }] } });
6336
-
6337
- const COMPONENT$a = [AXMenuComponent];
6338
- const MODULES$a = [CommonModule, AXDecoratorModule];
6339
- class AXMenuModule {
6340
- }
6341
- AXMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6342
- AXMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, declarations: [AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule,
6343
- AXTranslationModule,
6344
- AXPopoverModule], exports: [AXMenuComponent] });
6345
- AXMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, providers: [], imports: [[
6346
- ...MODULES$a,
6347
- AXLoadingModule,
6348
- AXTranslationModule,
6349
- AXPopoverModule,
6350
- ]] });
6351
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, decorators: [{
6352
- type: NgModule,
6353
- args: [{
6354
- declarations: [...COMPONENT$a],
6355
- imports: [
6356
- ...MODULES$a,
6357
- AXLoadingModule,
6358
- AXTranslationModule,
6359
- AXPopoverModule,
6360
- ],
6361
- exports: [...COMPONENT$a],
6362
- providers: [],
6363
- }]
6364
- }] });
6365
-
6366
- /**
6367
- * The NumberBox is a component which detects user interaction and triggers a corresponding event
6368
- *
6369
- * @category Components
6370
- */
6371
- class AXNumberBoxComponent extends AXBaseTextBoxMixin {
6372
- /**
6373
- * @ignore
6374
- */
6375
- constructor(elementRef, cdr) {
6376
- super(elementRef, cdr);
6377
- this.cdr = cdr;
6378
- this._padDecimalZeros = false;
6379
- /**
6380
- * Specifies the value that is used to increment or decrement the **Integer** part of number
6381
- */
6382
- this.step = 1;
6383
- this._decimals = 0;
6384
- /**
6385
- * Specifies the value that is used to increment or decrement the **Deciaml** part of number
6386
- */
6387
- this.decimalStep = 'auto';
6388
- /**
6389
- * Specifies whether the Up and Down spin buttons will be rendered or not
6390
- */
6391
- this.showSpinButtons = true;
6392
- this._minValue = Number.MIN_SAFE_INTEGER;
6393
- this._maxValue = Number.MAX_SAFE_INTEGER;
6394
- }
6395
- /**
6396
- * A character value that specifies the separator character.
6397
- */
6398
- get thousandsSeparator() {
6399
- return this._thousandsSeparator;
6400
- }
6401
- set thousandsSeparator(v) {
6402
- this._setOption({
6403
- name: "thousandsSeparator",
6404
- value: v ?? '',
6405
- });
6406
- }
6407
- /**
6408
- * A character value that specifies the separator character.
6409
- */
6410
- get padDecimalZeros() {
6411
- return this._padDecimalZeros;
6412
- }
6413
- set padDecimalZeros(v) {
6414
- this._setOption({
6415
- name: "padDecimalZeros",
6416
- value: v,
6417
- });
6418
- }
6419
- /**
6420
- * Specifies the number of decimals that the user can enter
6421
- */
6422
- get decimals() {
6423
- return this._decimals;
6424
- }
6425
- set decimals(v) {
6426
- this._setOption({
6427
- name: "decimals",
6428
- value: v ?? 0,
6429
- });
6430
- }
6431
- /**
6432
- * Specifies the smallest value that is valid
6433
- */
6434
- get minValue() {
6435
- return this._minValue;
6436
- }
6437
- set minValue(v) {
6438
- this._setOption({
6439
- name: "minValue",
6440
- value: v != null ? Number(v) : Number.MIN_SAFE_INTEGER,
6441
- });
6442
- }
6443
- /**
6444
- * Specifies the greatest value that is valid
6445
- */
6446
- get maxValue() {
6447
- return this._maxValue;
6448
- }
6449
- set maxValue(v) {
6450
- this._setOption({
6451
- name: "maxValue",
6452
- value: v != null ? Number(v) : Number.MAX_SAFE_INTEGER,
6453
- });
6454
- }
6455
- onViewInit() {
6456
- super.onViewInit();
6457
- this._updateMask();
6458
- }
6459
- _onOptionChanged(option) {
6460
- super._onOptionChanged(option);
6461
- this._updateMask();
6462
- }
6463
- _updateMask() {
6464
- if (!this._maskObj) {
6465
- this._maskObj = IMask.createMask({
6466
- mask: Number,
6467
- min: this.minValue,
6468
- max: this.maxValue,
6469
- thousandsSeparator: this.thousandsSeparator || '',
6470
- scale: this.decimals,
6471
- radix: '.',
6472
- padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
6473
- });
6474
- }
6475
- else {
6476
- this._maskObj.updateOptions({
6477
- min: this.minValue,
6478
- max: this.maxValue,
6479
- thousandsSeparator: this.thousandsSeparator || '',
6480
- scale: this.decimals,
6481
- radix: '.',
6482
- padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
6483
- });
6738
+ this._fetchData(item[this.valueField]).then(() => {
6739
+ item.isLoading = false;
6740
+ });
6741
+ }
6484
6742
  }
6485
- this._maskDirective?.maskRef?.updateValue();
6486
- this._maskDirective?.maskRef?.updateControl();
6743
+ e.stopPropagation();
6744
+ e.preventDefault();
6487
6745
  }
6488
- _handleOnKeydownEvent(e) {
6489
- const ignore = () => {
6490
- e.preventDefault();
6491
- e.stopPropagation();
6492
- };
6493
- const input = e.target;
6494
- const valStr = input.value;
6495
- const decimalPointIndex = valStr.indexOf('.');
6496
- const _cursorPos = input.selectionStart;
6497
- if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
6498
- if (decimalPointIndex > 0 && _cursorPos > decimalPointIndex && this.decimals > 0) {
6499
- e.key === 'ArrowDown' ? this.decimalStepDown() : this.decimalStepUp();
6746
+ _onMouseEnter(e, item) {
6747
+ if (this.isLoading) {
6748
+ return;
6749
+ }
6750
+ if (!item[this.disableField] && this.openMode === 'hover') {
6751
+ if (item.children?.length > 0 || item[this.hasChildField]) {
6752
+ if (item.children?.length > 0) {
6753
+ this._closeChild(item.children);
6754
+ }
6755
+ item.isOpen = true;
6500
6756
  }
6501
- else {
6502
- e.key === 'ArrowDown' ? this.stepDown() : this.stepUp();
6757
+ this.onMenuItemClick.emit({
6758
+ component: this,
6759
+ item: item,
6760
+ nativeEvent: e,
6761
+ });
6762
+ if (item.isOpen && item[this.hasChildField] && !item.children) {
6763
+ item.isLoading = true;
6764
+ this._fetchData(item[this.valueField]).then(() => {
6765
+ item.isLoading = false;
6766
+ });
6503
6767
  }
6504
- ignore();
6505
- setTimeout(() => {
6506
- input.setSelectionRange(_cursorPos, _cursorPos);
6507
- }, 5);
6508
6768
  }
6509
- super._emitOnKeydownEvent(e);
6769
+ e.stopPropagation();
6770
+ e.preventDefault();
6510
6771
  }
6511
- _handleUpDownClick(e, v) {
6512
- v == 1 ? this.stepUp() : this.stepDown();
6772
+ _onMouseLeave(item) {
6773
+ if (!item[this.disableField] && this.openMode === 'hover') {
6774
+ if (item.children?.length > 0 || item[this.hasChildField]) {
6775
+ if (item.children?.length > 0) {
6776
+ this._closeChild(item.children);
6777
+ }
6778
+ item.isOpen = false;
6779
+ }
6780
+ }
6513
6781
  }
6514
- _onValueChanging(value) {
6515
- const v = _.toNumber(value);
6516
- if (v < this.minValue)
6517
- return this.minValue;
6518
- if (v > this.maxValue)
6519
- return this.maxValue;
6520
- return v;
6782
+ _notActive(items) {
6783
+ items.forEach((element) => {
6784
+ element.isActive = false;
6785
+ if (element.children?.length > 0) {
6786
+ this._notActive(element.children);
6787
+ }
6788
+ });
6521
6789
  }
6522
- stepUp() {
6523
- this.value += _.toNumber(this.step);
6790
+ _closeChild(items) {
6791
+ items.forEach((element) => {
6792
+ element.isOpen = false;
6793
+ if (element.children?.length > 0) {
6794
+ this._closeChild(element.children);
6795
+ }
6796
+ });
6524
6797
  }
6525
- stepDown() {
6526
- this.value -= _.toNumber(this.step);
6798
+ _setParentNode(item, parentId) {
6799
+ item.forEach((element) => {
6800
+ element.parentId = parentId;
6801
+ });
6527
6802
  }
6528
- decimalStepUp() {
6529
- this.value += _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
6803
+ _onSearchExprChanged(e) {
6804
+ // this.empty();
6805
+ this._forceFocus = true;
6806
+ this._fetchData(null, this._searchBox?.searchExp);
6530
6807
  }
6531
- decimalStepDown() {
6532
- this.value -= _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
6808
+ _getDirection() {
6809
+ if (this.direction === 'horizontal') {
6810
+ return 'horizontal-mode';
6811
+ }
6812
+ else {
6813
+ return 'vertical-mode';
6814
+ }
6533
6815
  }
6534
6816
  }
6535
- 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 });
6536
- 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 });
6537
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxComponent, decorators: [{
6817
+ 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 });
6818
+ 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 }, { 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: "<div class=\"ax-p-2\">\r\n <ng-content [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\" select=\"ax-search-box\"></ng-content>\r\n</div>\r\n<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 });
6819
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, decorators: [{
6538
6820
  type: Component,
6539
- args: [{ selector: 'ax-number-box', inputs: [
6540
- 'disabled',
6541
- 'readonly',
6542
- 'tabIndex',
6543
- 'size',
6544
- 'value',
6545
- ...TEXTBOX_INPUTS,
6546
- ], outputs: [
6547
- 'valueChange',
6548
- 'onValueChanged',
6549
- 'onBlur',
6550
- 'onFocus',
6551
- ...TEXTBOX_OUTPUT,
6552
- ], 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>" }]
6553
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { thousandsSeparator: [{
6554
- type: Input
6555
- }], padDecimalZeros: [{
6556
- type: Input
6557
- }], step: [{
6558
- type: Input
6559
- }], decimals: [{
6560
- type: Input
6561
- }], decimalStep: [{
6562
- type: Input
6563
- }], showSpinButtons: [{
6564
- type: Input
6565
- }], minValue: [{
6566
- type: Input
6567
- }], maxValue: [{
6568
- type: Input
6569
- }], _maskDirective: [{
6821
+ args: [{ selector: 'ax-menu', inputs: [...INTERACTIVE_INPUTS, ...BASEMENU_INPUTS], outputs: [...INTERACTIVE_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-menu' }, template: "<div class=\"ax-p-2\">\r\n <ng-content [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\" select=\"ax-search-box\"></ng-content>\r\n</div>\r\n<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>" }]
6822
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
6570
6823
  type: ViewChild,
6571
- args: [IMaskDirective]
6824
+ args: [AXPopoverComponent, { static: true }]
6825
+ }], _contentEmptyTemplate: [{
6826
+ type: ContentChild,
6827
+ args: ['emptyTemplate']
6828
+ }], _searchBox: [{
6829
+ type: ContentChild,
6830
+ args: [AXSearchBoxComponent, { static: true }]
6572
6831
  }] } });
6573
6832
 
6574
- const COMPONENT$9 = [AXNumberBoxComponent];
6575
- const MODULES$9 = [
6576
- CommonModule,
6577
- FormsModule,
6578
- AXButtonModule,
6579
- AXDecoratorModule,
6580
- IMaskModule
6581
- ];
6582
- class AXNumberBoxModule {
6833
+ const COMPONENT$8 = [AXMenuComponent];
6834
+ const MODULES$8 = [CommonModule, AXDecoratorModule];
6835
+ class AXMenuModule {
6583
6836
  }
6584
- AXNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6585
- AXNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, declarations: [AXNumberBoxComponent], imports: [CommonModule,
6586
- FormsModule,
6587
- AXButtonModule,
6588
- AXDecoratorModule,
6589
- IMaskModule], exports: [AXNumberBoxComponent] });
6590
- AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, providers: [], imports: [[...MODULES$9]] });
6591
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, decorators: [{
6837
+ AXMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6838
+ AXMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, declarations: [AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule,
6839
+ AXTranslationModule,
6840
+ AXPopoverModule], exports: [AXMenuComponent] });
6841
+ AXMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, providers: [], imports: [[
6842
+ ...MODULES$8,
6843
+ AXLoadingModule,
6844
+ AXTranslationModule,
6845
+ AXPopoverModule,
6846
+ ]] });
6847
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, decorators: [{
6592
6848
  type: NgModule,
6593
6849
  args: [{
6594
- declarations: [...COMPONENT$9],
6595
- imports: [...MODULES$9],
6596
- exports: [...COMPONENT$9],
6850
+ declarations: [...COMPONENT$8],
6851
+ imports: [
6852
+ ...MODULES$8,
6853
+ AXLoadingModule,
6854
+ AXTranslationModule,
6855
+ AXPopoverModule,
6856
+ ],
6857
+ exports: [...COMPONENT$8],
6597
6858
  providers: [],
6598
6859
  }]
6599
6860
  }] });
@@ -6649,8 +6910,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
6649
6910
  type: Input
6650
6911
  }] } });
6651
6912
 
6652
- const COMPONENT$8 = [AXPasswordBoxComponent];
6653
- const MODULES$8 = [
6913
+ const COMPONENT$7 = [AXPasswordBoxComponent];
6914
+ const MODULES$7 = [
6654
6915
  CommonModule,
6655
6916
  FormsModule,
6656
6917
  AXButtonModule,
@@ -6663,13 +6924,13 @@ AXPasswordBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
6663
6924
  FormsModule,
6664
6925
  AXButtonModule,
6665
6926
  AXDecoratorModule], exports: [AXPasswordBoxComponent] });
6666
- AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$8]] });
6927
+ AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$7]] });
6667
6928
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, decorators: [{
6668
6929
  type: NgModule,
6669
6930
  args: [{
6670
- declarations: [...COMPONENT$8],
6671
- imports: [...MODULES$8],
6672
- exports: [...COMPONENT$8],
6931
+ declarations: [...COMPONENT$7],
6932
+ imports: [...MODULES$7],
6933
+ exports: [...COMPONENT$7],
6673
6934
  providers: [],
6674
6935
  }]
6675
6936
  }] });
@@ -6775,12 +7036,12 @@ class AXPopupComponent extends AXBaseComponentMixin {
6775
7036
  }
6776
7037
  onFullScreen() { }
6777
7038
  }
6778
- 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 });
6779
- 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 });
7039
+ 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 });
7040
+ 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: i10.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 });
6780
7041
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupComponent, decorators: [{
6781
7042
  type: Component,
6782
7043
  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>" }]
6783
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i1$3.AXPlatform }]; }, propDecorators: { onKeydownHandler: [{
7044
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i1$4.AXPlatform }]; }, propDecorators: { onKeydownHandler: [{
6784
7045
  type: HostListener,
6785
7046
  args: ['keydown.escape', ['$event']]
6786
7047
  }] } });
@@ -6875,19 +7136,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
6875
7136
  args: [{ providedIn: 'root' }]
6876
7137
  }], ctorParameters: function () { return [{ type: AXOverlayService }]; } });
6877
7138
 
6878
- const COMPONENT$7 = [AXPopupComponent];
6879
- const MODULES$7 = [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule];
7139
+ const COMPONENT$6 = [AXPopupComponent];
7140
+ const MODULES$6 = [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule];
6880
7141
  class AXPopupModule {
6881
7142
  }
6882
7143
  AXPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6883
7144
  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] });
6884
- AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$7]] });
7145
+ AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$6]] });
6885
7146
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, decorators: [{
6886
7147
  type: NgModule,
6887
7148
  args: [{
6888
- declarations: [...COMPONENT$7],
6889
- imports: [...MODULES$7],
6890
- exports: [...COMPONENT$7],
7149
+ declarations: [...COMPONENT$6],
7150
+ imports: [...MODULES$6],
7151
+ exports: [...COMPONENT$6],
6891
7152
  providers: [],
6892
7153
  }]
6893
7154
  }] });
@@ -6965,19 +7226,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
6965
7226
  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>" }]
6966
7227
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
6967
7228
 
6968
- const COMPONENT$6 = [AXRadioComponent];
6969
- const MODULES$6 = [CommonModule, FormsModule];
7229
+ const COMPONENT$5 = [AXRadioComponent];
7230
+ const MODULES$5 = [CommonModule, FormsModule];
6970
7231
  class AXRadioModule {
6971
7232
  }
6972
7233
  AXRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
6973
7234
  AXRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, declarations: [AXRadioComponent], imports: [CommonModule, FormsModule], exports: [AXRadioComponent] });
6974
- AXRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, providers: [], imports: [[...MODULES$6]] });
7235
+ AXRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, providers: [], imports: [[...MODULES$5]] });
6975
7236
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, decorators: [{
6976
7237
  type: NgModule,
6977
7238
  args: [{
6978
- declarations: [...COMPONENT$6],
6979
- imports: [...MODULES$6],
6980
- exports: [...COMPONENT$6],
7239
+ declarations: [...COMPONENT$5],
7240
+ imports: [...MODULES$5],
7241
+ exports: [...COMPONENT$5],
6981
7242
  providers: [],
6982
7243
  }]
6983
7244
  }] });
@@ -6995,19 +7256,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
6995
7256
  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\">" }]
6996
7257
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
6997
7258
 
6998
- const COMPONENT$5 = [AXRangeSliderComponent];
6999
- const MODULES$5 = [CommonModule];
7259
+ const COMPONENT$4 = [AXRangeSliderComponent];
7260
+ const MODULES$4 = [CommonModule];
7000
7261
  class AXRangeSliderModule {
7001
7262
  }
7002
7263
  AXRangeSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7003
7264
  AXRangeSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, declarations: [AXRangeSliderComponent], imports: [CommonModule], exports: [AXRangeSliderComponent] });
7004
- AXRangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, providers: [], imports: [[...MODULES$5]] });
7265
+ AXRangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, providers: [], imports: [[...MODULES$4]] });
7005
7266
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, decorators: [{
7006
7267
  type: NgModule,
7007
7268
  args: [{
7008
- declarations: [...COMPONENT$5],
7009
- imports: [...MODULES$5],
7010
- exports: [...COMPONENT$5],
7269
+ declarations: [...COMPONENT$4],
7270
+ imports: [...MODULES$4],
7271
+ exports: [...COMPONENT$4],
7011
7272
  providers: [],
7012
7273
  }]
7013
7274
  }] });
@@ -7099,61 +7360,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
7099
7360
  }]
7100
7361
  }] });
7101
7362
 
7102
- class AXSearchBoxComponent extends AXBaseComponentMixin {
7103
- constructor(_elementRef, _cdr, _parent) {
7104
- super(_elementRef, _cdr);
7105
- this._parent = _parent;
7106
- this.placeholder = 'common.search';
7107
- this.debounceTime = 300;
7108
- this.searchExp = null;
7109
- }
7110
- _onSearchExprChanged(e) {
7111
- if (this._parent && this._parent.search) {
7112
- this._parent.search(e.value);
7113
- }
7114
- }
7115
- focus() {
7116
- this._textbox?.focus();
7117
- }
7118
- }
7119
- 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 });
7120
- 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 });
7121
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, decorators: [{
7122
- type: Component,
7123
- 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>" }]
7124
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXSearchableComponent, decorators: [{
7125
- type: Optional
7126
- }, {
7127
- type: Inject,
7128
- args: [AXSearchableComponent]
7129
- }] }]; }, propDecorators: { _textbox: [{
7130
- type: ViewChild,
7131
- args: [AXTextBoxComponent]
7132
- }], placeholder: [{
7133
- type: Input
7134
- }], debounceTime: [{
7135
- type: Input
7136
- }], searchExp: [{
7137
- type: Input
7138
- }] } });
7139
-
7140
- const COMPONENT$4 = [AXSearchBoxComponent];
7141
- const MODULES$4 = [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule];
7142
- class AXSearchBoxModule {
7143
- }
7144
- AXSearchBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7145
- 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] });
7146
- AXSearchBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, providers: [], imports: [[...MODULES$4]] });
7147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, decorators: [{
7148
- type: NgModule,
7149
- args: [{
7150
- declarations: [...COMPONENT$4],
7151
- imports: [...MODULES$4],
7152
- exports: [...COMPONENT$4],
7153
- providers: [],
7154
- }]
7155
- }] });
7156
-
7157
7363
  /**
7158
7364
  * The Button is a component which detects user interaction and triggers a corresponding event
7159
7365
  *
@@ -7419,6 +7625,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
7419
7625
  }
7420
7626
  }
7421
7627
  _onSearchExprChanged(e) {
7628
+ debugger;
7422
7629
  this.empty();
7423
7630
  this._forceFocus = true;
7424
7631
  this._fetchData();
@@ -7433,18 +7640,18 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
7433
7640
  super._fetchData({ searchQuery: this._searchBox?.searchExp });
7434
7641
  }
7435
7642
  }
7436
- 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 });
7643
+ 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 });
7437
7644
  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: [
7438
7645
  { provide: AXClosbaleComponent, useExisting: AXSelectBoxComponent },
7439
7646
  { provide: AXSearchableComponent, useExisting: AXSelectBoxComponent }
7440
- ], 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 });
7647
+ ], 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: i10.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 });
7441
7648
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
7442
7649
  type: Component,
7443
7650
  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: [
7444
7651
  { provide: AXClosbaleComponent, useExisting: AXSelectBoxComponent },
7445
7652
  { provide: AXSearchableComponent, useExisting: AXSelectBoxComponent }
7446
7653
  ], 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>" }]
7447
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$3.AXPlatform }]; }, propDecorators: { popover: [{
7654
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
7448
7655
  type: ViewChild,
7449
7656
  args: [AXPopoverComponent, { static: true }]
7450
7657
  }], _searchBox: [{
@@ -8782,5 +8989,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
8782
8989
  * Generated bundle index. Do not edit.
8783
8990
  */
8784
8991
 
8785
- 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 };
8992
+ 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, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
8786
8993
  //# sourceMappingURL=acorex-components.mjs.map