@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.
- package/esm2020/lib/base/mixin/base-menu-mixin.class.mjs +6 -3
- package/esm2020/lib/color-palette/color-palette-input.component.mjs +77 -0
- package/esm2020/lib/color-palette/color-palette-picker.component.mjs +17 -0
- package/esm2020/lib/color-palette/color-palette-preview.component.mjs +33 -0
- package/esm2020/lib/color-palette/color-palette-swatches.component.mjs +260 -0
- package/esm2020/lib/color-palette/color-palette.component.mjs +18 -0
- package/esm2020/lib/color-palette/color-palette.module.mjs +54 -0
- package/esm2020/lib/color-palette/index.mjs +7 -0
- package/esm2020/lib/color-picker/color-picker.component.mjs +19 -260
- package/esm2020/lib/color-picker/color-picker.module.mjs +12 -6
- package/esm2020/lib/menu/menu.component.mjs +31 -5
- package/esm2020/lib/selectbox/selectbox.component.mjs +2 -1
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/acorex-components.mjs +1362 -1151
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +1225 -1018
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/base/mixin/base-menu-mixin.class.d.ts +1 -1
- package/lib/base/mixin/mixin.class.d.ts +1 -1
- package/lib/color-palette/color-palette-input.component.d.ts +16 -0
- package/lib/color-palette/color-palette-picker.component.d.ts +8 -0
- package/lib/color-palette/color-palette-preview.component.d.ts +12 -0
- package/lib/color-palette/color-palette-swatches.component.d.ts +16 -0
- package/lib/color-palette/color-palette.component.d.ts +9 -0
- package/lib/color-palette/color-palette.module.d.ts +17 -0
- package/lib/color-palette/index.d.ts +6 -0
- package/lib/color-picker/color-picker.component.d.ts +149 -34
- package/lib/color-picker/color-picker.module.d.ts +2 -1
- package/lib/menu/menu.component.d.ts +8 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -4,11 +4,11 @@ import { Injectable, Inject, EventEmitter, Directive, Input, TemplateRef, NgModu
|
|
|
4
4
|
import { __classPrivateFieldSet, __classPrivateFieldGet, __awaiter } from 'tslib';
|
|
5
5
|
import _ from 'lodash';
|
|
6
6
|
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
7
|
-
import * as i1$
|
|
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$
|
|
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
|
|
21
|
-
import
|
|
22
|
-
import
|
|
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 {
|
|
@@ -197,14 +197,17 @@ function _BaseMenuComponentMixin(Base) {
|
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
_fetchData(parentId) {
|
|
200
|
+
_fetchData(parentId, searchText) {
|
|
201
201
|
return new Promise((resolve) => {
|
|
202
202
|
if (__classPrivateFieldGet(this, _isLoading, "f")) {
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
205
|
if (__classPrivateFieldGet(this, _items, "f")) {
|
|
206
206
|
__classPrivateFieldSet(this, _isLoading, true, "f");
|
|
207
|
-
__classPrivateFieldGet(this, _items, "f").call(this, {
|
|
207
|
+
__classPrivateFieldGet(this, _items, "f").call(this, {
|
|
208
|
+
parentId: parentId,
|
|
209
|
+
searchQuery: searchText,
|
|
210
|
+
})
|
|
208
211
|
.then((c) => {
|
|
209
212
|
if (Array.isArray(c)) {
|
|
210
213
|
if (parentId) {
|
|
@@ -1862,17 +1865,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
1862
1865
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; } });
|
|
1863
1866
|
|
|
1864
1867
|
const COMPONENT$o = [AXDrawerComponent, AXDrawerContainerComponent];
|
|
1865
|
-
const MODULES$
|
|
1868
|
+
const MODULES$p = [CommonModule];
|
|
1866
1869
|
class AXDrawerModule {
|
|
1867
1870
|
}
|
|
1868
1871
|
AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1869
1872
|
AXDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, declarations: [AXDrawerComponent, AXDrawerContainerComponent], imports: [CommonModule], exports: [AXDrawerComponent, AXDrawerContainerComponent] });
|
|
1870
|
-
AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$
|
|
1873
|
+
AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$p]] });
|
|
1871
1874
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, decorators: [{
|
|
1872
1875
|
type: NgModule,
|
|
1873
1876
|
args: [{
|
|
1874
1877
|
declarations: [...COMPONENT$o],
|
|
1875
|
-
imports: [...MODULES$
|
|
1878
|
+
imports: [...MODULES$p],
|
|
1876
1879
|
exports: [...COMPONENT$o],
|
|
1877
1880
|
providers: [],
|
|
1878
1881
|
}]
|
|
@@ -2294,7 +2297,7 @@ const COMPONENT$n = [
|
|
|
2294
2297
|
AXDecoratorTitleComponent,
|
|
2295
2298
|
AXDecoratorCloseButtonComponent
|
|
2296
2299
|
];
|
|
2297
|
-
const MODULES$
|
|
2300
|
+
const MODULES$o = [CommonModule];
|
|
2298
2301
|
class AXDecoratorModule {
|
|
2299
2302
|
}
|
|
2300
2303
|
AXDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2315,12 +2318,12 @@ AXDecoratorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
|
|
|
2315
2318
|
AXDecoratorIconComponent,
|
|
2316
2319
|
AXDecoratorTitleComponent,
|
|
2317
2320
|
AXDecoratorCloseButtonComponent] });
|
|
2318
|
-
AXDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, providers: [], imports: [[...MODULES$
|
|
2321
|
+
AXDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, providers: [], imports: [[...MODULES$o]] });
|
|
2319
2322
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, decorators: [{
|
|
2320
2323
|
type: NgModule,
|
|
2321
2324
|
args: [{
|
|
2322
2325
|
declarations: [...COMPONENT$n],
|
|
2323
|
-
imports: [...MODULES$
|
|
2326
|
+
imports: [...MODULES$o],
|
|
2324
2327
|
exports: [...COMPONENT$n],
|
|
2325
2328
|
providers: [],
|
|
2326
2329
|
}]
|
|
@@ -2331,7 +2334,7 @@ const COMPONENT$m = [
|
|
|
2331
2334
|
AXButtonItemComponent,
|
|
2332
2335
|
AXButtonGroupComponent,
|
|
2333
2336
|
];
|
|
2334
|
-
const MODULES$
|
|
2337
|
+
const MODULES$n = [CommonModule, AXDecoratorModule];
|
|
2335
2338
|
class AXButtonModule {
|
|
2336
2339
|
}
|
|
2337
2340
|
AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2340,11 +2343,11 @@ AXButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
2340
2343
|
AXButtonGroupComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXButtonComponent,
|
|
2341
2344
|
AXButtonItemComponent,
|
|
2342
2345
|
AXButtonGroupComponent] });
|
|
2343
|
-
AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$
|
|
2346
|
+
AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$n]] });
|
|
2344
2347
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, decorators: [{
|
|
2345
2348
|
type: NgModule,
|
|
2346
2349
|
args: [{
|
|
2347
|
-
imports: [MODULES$
|
|
2350
|
+
imports: [MODULES$n],
|
|
2348
2351
|
exports: [COMPONENT$m],
|
|
2349
2352
|
declarations: [COMPONENT$m],
|
|
2350
2353
|
providers: [],
|
|
@@ -2542,19 +2545,19 @@ const COMPONENT$l = [
|
|
|
2542
2545
|
AXAlertComponent,
|
|
2543
2546
|
AXAlertButtonComponent
|
|
2544
2547
|
];
|
|
2545
|
-
const MODULES$
|
|
2548
|
+
const MODULES$m = [CommonModule, AXDecoratorModule];
|
|
2546
2549
|
class AXAlertModule {
|
|
2547
2550
|
}
|
|
2548
2551
|
AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2549
2552
|
AXAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent,
|
|
2550
2553
|
AXAlertButtonComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXAlertComponent,
|
|
2551
2554
|
AXAlertButtonComponent] });
|
|
2552
|
-
AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$
|
|
2555
|
+
AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$m]] });
|
|
2553
2556
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, decorators: [{
|
|
2554
2557
|
type: NgModule,
|
|
2555
2558
|
args: [{
|
|
2556
2559
|
declarations: [...COMPONENT$l],
|
|
2557
|
-
imports: [...MODULES$
|
|
2560
|
+
imports: [...MODULES$m],
|
|
2558
2561
|
exports: [...COMPONENT$l],
|
|
2559
2562
|
providers: [],
|
|
2560
2563
|
}]
|
|
@@ -2613,17 +2616,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
2613
2616
|
}] } });
|
|
2614
2617
|
|
|
2615
2618
|
const COMPONENT$k = [AXAvatarComponent, AXAvatarGroup];
|
|
2616
|
-
const MODULES$
|
|
2619
|
+
const MODULES$l = [CommonModule];
|
|
2617
2620
|
class AXAvatarModule {
|
|
2618
2621
|
}
|
|
2619
2622
|
AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2620
2623
|
AXAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent, AXAvatarGroup], imports: [CommonModule], exports: [AXAvatarComponent, AXAvatarGroup] });
|
|
2621
|
-
AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$
|
|
2624
|
+
AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$l]] });
|
|
2622
2625
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, decorators: [{
|
|
2623
2626
|
type: NgModule,
|
|
2624
2627
|
args: [{
|
|
2625
2628
|
declarations: [...COMPONENT$k],
|
|
2626
|
-
imports: [...MODULES$
|
|
2629
|
+
imports: [...MODULES$l],
|
|
2627
2630
|
exports: [...COMPONENT$k],
|
|
2628
2631
|
providers: [],
|
|
2629
2632
|
}]
|
|
@@ -2654,17 +2657,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
2654
2657
|
}] } });
|
|
2655
2658
|
|
|
2656
2659
|
const COMPONENT$j = [AXBadgeComponent];
|
|
2657
|
-
const MODULES$
|
|
2660
|
+
const MODULES$k = [CommonModule];
|
|
2658
2661
|
class AXBadgeModule {
|
|
2659
2662
|
}
|
|
2660
2663
|
AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2661
2664
|
AXBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, declarations: [AXBadgeComponent], imports: [CommonModule], exports: [AXBadgeComponent] });
|
|
2662
|
-
AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$
|
|
2665
|
+
AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$k]] });
|
|
2663
2666
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, decorators: [{
|
|
2664
2667
|
type: NgModule,
|
|
2665
2668
|
args: [{
|
|
2666
2669
|
declarations: [...COMPONENT$j],
|
|
2667
|
-
imports: [...MODULES$
|
|
2670
|
+
imports: [...MODULES$k],
|
|
2668
2671
|
exports: [...COMPONENT$j],
|
|
2669
2672
|
providers: [],
|
|
2670
2673
|
}]
|
|
@@ -4109,17 +4112,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
4109
4112
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXCarouselComponent }]; } });
|
|
4110
4113
|
|
|
4111
4114
|
const COMPONENT$i = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
|
|
4112
|
-
const MODULES$
|
|
4115
|
+
const MODULES$j = [CommonModule];
|
|
4113
4116
|
class AXCarouselModule {
|
|
4114
4117
|
}
|
|
4115
4118
|
AXCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4116
4119
|
AXCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, declarations: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent], imports: [CommonModule], exports: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent] });
|
|
4117
|
-
AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$
|
|
4120
|
+
AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$j]] });
|
|
4118
4121
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, decorators: [{
|
|
4119
4122
|
type: NgModule,
|
|
4120
4123
|
args: [{
|
|
4121
4124
|
declarations: [...COMPONENT$i],
|
|
4122
|
-
imports: [...MODULES$
|
|
4125
|
+
imports: [...MODULES$j],
|
|
4123
4126
|
exports: [...COMPONENT$i],
|
|
4124
4127
|
providers: [],
|
|
4125
4128
|
}]
|
|
@@ -4141,17 +4144,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
4141
4144
|
}] });
|
|
4142
4145
|
|
|
4143
4146
|
const COMPONENT$h = [AXCalendarComponent];
|
|
4144
|
-
const MODULES$
|
|
4147
|
+
const MODULES$i = [CommonModule, AXButtonModule, AXDecoratorModule, AXDateTimeModule, AXPickerModule];
|
|
4145
4148
|
class AXCalendarModule {
|
|
4146
4149
|
}
|
|
4147
4150
|
AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4148
4151
|
AXCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, declarations: [AXCalendarComponent], imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXDateTimeModule, AXPickerModule], exports: [AXCalendarComponent] });
|
|
4149
|
-
AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$
|
|
4152
|
+
AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$i]] });
|
|
4150
4153
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, decorators: [{
|
|
4151
4154
|
type: NgModule,
|
|
4152
4155
|
args: [{
|
|
4153
4156
|
declarations: [...COMPONENT$h],
|
|
4154
|
-
imports: [...MODULES$
|
|
4157
|
+
imports: [...MODULES$i],
|
|
4155
4158
|
exports: [...COMPONENT$h],
|
|
4156
4159
|
providers: [],
|
|
4157
4160
|
}]
|
|
@@ -4207,783 +4210,1234 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
4207
4210
|
}]
|
|
4208
4211
|
}] });
|
|
4209
4212
|
|
|
4210
|
-
class
|
|
4213
|
+
class AXColorPalleteComponent extends AXBaseValueComponentMixin {
|
|
4211
4214
|
constructor(elementRef, cdr) {
|
|
4212
4215
|
super(elementRef, cdr);
|
|
4213
|
-
this.cdr = cdr;
|
|
4214
|
-
this.isCollapsedChange = new EventEmitter();
|
|
4215
|
-
this._isCollapsed = false;
|
|
4216
|
-
this.caption = null;
|
|
4217
|
-
}
|
|
4218
|
-
get isCollapsed() {
|
|
4219
|
-
return this._isCollapsed;
|
|
4220
|
-
}
|
|
4221
|
-
set isCollapsed(v) {
|
|
4222
|
-
if (v != this._isCollapsed) {
|
|
4223
|
-
this._isCollapsed = v;
|
|
4224
|
-
this.isCollapsedChange.emit(v);
|
|
4225
|
-
this._cdr.detectChanges();
|
|
4226
|
-
}
|
|
4227
|
-
}
|
|
4228
|
-
handleHeaderClick() {
|
|
4229
|
-
this.isCollapsed = !this.isCollapsed;
|
|
4230
4216
|
}
|
|
4217
|
+
ngOnInit() { }
|
|
4231
4218
|
}
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type:
|
|
4219
|
+
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 });
|
|
4220
|
+
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 });
|
|
4221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalleteComponent, decorators: [{
|
|
4235
4222
|
type: Component,
|
|
4236
|
-
args: [{ selector: 'ax-
|
|
4237
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }
|
|
4238
|
-
type: Output
|
|
4239
|
-
}], isCollapsed: [{
|
|
4240
|
-
type: Input
|
|
4241
|
-
}], caption: [{
|
|
4242
|
-
type: Input
|
|
4243
|
-
}], headerTemplate: [{
|
|
4244
|
-
type: ContentChild,
|
|
4245
|
-
args: ['header', { static: true }]
|
|
4246
|
-
}] } });
|
|
4223
|
+
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>" }]
|
|
4224
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4247
4225
|
|
|
4248
|
-
class
|
|
4249
|
-
constructor(
|
|
4250
|
-
super(
|
|
4251
|
-
this.
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
onViewInit() {
|
|
4257
|
-
if (this.accordion) {
|
|
4258
|
-
this._items.forEach(c => c.isCollapsed = true);
|
|
4259
|
-
this._items.get(this.nonCollapsedIndex).isCollapsed = false;
|
|
4260
|
-
console.log(this._items[this.nonCollapsedIndex]);
|
|
4261
|
-
this._items.forEach((c1) => {
|
|
4262
|
-
this._subs.push(c1.isCollapsedChange.subscribe(e => {
|
|
4263
|
-
if (!e)
|
|
4264
|
-
this._items.toArray().filter(c2 => c2 != c1).forEach(c => c.isCollapsed = true);
|
|
4265
|
-
}));
|
|
4266
|
-
});
|
|
4267
|
-
}
|
|
4268
|
-
}
|
|
4269
|
-
onDestroy() {
|
|
4270
|
-
this._subs.forEach(s => s.unsubscribe());
|
|
4271
|
-
this._subs = [];
|
|
4226
|
+
class AXColorPalettePreviewComponent extends AXBaseComponent {
|
|
4227
|
+
constructor(_elementRef, _cdr, _parent) {
|
|
4228
|
+
super(_elementRef, _cdr);
|
|
4229
|
+
this._parent = _parent;
|
|
4230
|
+
_parent === null || _parent === void 0 ? void 0 : _parent.onValueChanged.subscribe(e => {
|
|
4231
|
+
this._getHostElement().style.backgroundColor = this._hex = e.value;
|
|
4232
|
+
this._getHostElement().style.color = !(AXColorUtil.contrastToWhite(this._hex) > 2.0) ? '#000' : '#fff';
|
|
4233
|
+
});
|
|
4272
4234
|
}
|
|
4235
|
+
ngOnInit() { }
|
|
4273
4236
|
}
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type:
|
|
4237
|
+
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 });
|
|
4238
|
+
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 });
|
|
4239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePreviewComponent, decorators: [{
|
|
4277
4240
|
type: Component,
|
|
4278
4241
|
args: [{
|
|
4279
|
-
selector: 'ax-
|
|
4280
|
-
template:
|
|
4281
|
-
|
|
4282
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4283
|
-
encapsulation: ViewEncapsulation.None,
|
|
4242
|
+
selector: 'ax-color-palette-preview',
|
|
4243
|
+
template: `{{_hex}}`,
|
|
4244
|
+
encapsulation: ViewEncapsulation.None
|
|
4284
4245
|
}]
|
|
4285
|
-
}], ctorParameters: function () {
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
|
|
4246
|
+
}], ctorParameters: function () {
|
|
4247
|
+
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorPalleteComponent, decorators: [{
|
|
4248
|
+
type: Optional
|
|
4249
|
+
}, {
|
|
4250
|
+
type: Inject,
|
|
4251
|
+
args: [AXColorPalleteComponent]
|
|
4252
|
+
}] }];
|
|
4253
|
+
} });
|
|
4293
4254
|
|
|
4294
|
-
|
|
4255
|
+
/**
|
|
4256
|
+
* The Textbox is a component which detects user interaction and triggers a corresponding event
|
|
4257
|
+
*
|
|
4258
|
+
* @category Components
|
|
4259
|
+
*/
|
|
4260
|
+
class AXTextBoxComponent extends AXBaseTextBoxMixin {
|
|
4261
|
+
/**
|
|
4262
|
+
* @ignore
|
|
4263
|
+
*/
|
|
4264
|
+
constructor(elementRef, cdr) {
|
|
4265
|
+
super(elementRef, cdr);
|
|
4266
|
+
}
|
|
4295
4267
|
}
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
declarations: [AXCollapseComponent, AXCollapseGroupComponent],
|
|
4303
|
-
imports: [CommonModule],
|
|
4304
|
-
exports: [AXCollapseComponent, AXCollapseGroupComponent],
|
|
4305
|
-
providers: [],
|
|
4306
|
-
}]
|
|
4307
|
-
}] });
|
|
4268
|
+
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 });
|
|
4269
|
+
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 });
|
|
4270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxComponent, decorators: [{
|
|
4271
|
+
type: Component,
|
|
4272
|
+
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>" }]
|
|
4273
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4308
4274
|
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
this.
|
|
4335
|
-
|
|
4336
|
-
this.
|
|
4337
|
-
//
|
|
4338
|
-
this.hasBackdrop = false;
|
|
4339
|
-
this.adaptivityEnabled = false;
|
|
4340
|
-
//
|
|
4341
|
-
this._mousePos = { x: 0, y: 0 };
|
|
4342
|
-
this._isScrollAttached = false;
|
|
4343
|
-
//
|
|
4344
|
-
this.onOpened = new EventEmitter();
|
|
4345
|
-
this.onClosed = new EventEmitter();
|
|
4275
|
+
/**
|
|
4276
|
+
* The NumberBox is a component which detects user interaction and triggers a corresponding event
|
|
4277
|
+
*
|
|
4278
|
+
* @category Components
|
|
4279
|
+
*/
|
|
4280
|
+
class AXNumberBoxComponent extends AXBaseTextBoxMixin {
|
|
4281
|
+
/**
|
|
4282
|
+
* @ignore
|
|
4283
|
+
*/
|
|
4284
|
+
constructor(elementRef, cdr) {
|
|
4285
|
+
super(elementRef, cdr);
|
|
4286
|
+
this.cdr = cdr;
|
|
4287
|
+
this._padDecimalZeros = false;
|
|
4288
|
+
/**
|
|
4289
|
+
* Specifies the value that is used to increment or decrement the **Integer** part of number
|
|
4290
|
+
*/
|
|
4291
|
+
this.step = 1;
|
|
4292
|
+
this._decimals = 0;
|
|
4293
|
+
/**
|
|
4294
|
+
* Specifies the value that is used to increment or decrement the **Deciaml** part of number
|
|
4295
|
+
*/
|
|
4296
|
+
this.decimalStep = 'auto';
|
|
4297
|
+
/**
|
|
4298
|
+
* Specifies whether the Up and Down spin buttons will be rendered or not
|
|
4299
|
+
*/
|
|
4300
|
+
this.showSpinButtons = true;
|
|
4301
|
+
this._minValue = Number.MIN_SAFE_INTEGER;
|
|
4302
|
+
this._maxValue = Number.MAX_SAFE_INTEGER;
|
|
4346
4303
|
}
|
|
4347
|
-
|
|
4348
|
-
|
|
4304
|
+
/**
|
|
4305
|
+
* A character value that specifies the separator character.
|
|
4306
|
+
*/
|
|
4307
|
+
get thousandsSeparator() {
|
|
4308
|
+
return this._thousandsSeparator;
|
|
4349
4309
|
}
|
|
4350
|
-
set
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
else if (v instanceof AXBaseComponent)
|
|
4356
|
-
this._target = v._getInnerElement();
|
|
4310
|
+
set thousandsSeparator(v) {
|
|
4311
|
+
this._setOption({
|
|
4312
|
+
name: "thousandsSeparator",
|
|
4313
|
+
value: v !== null && v !== void 0 ? v : '',
|
|
4314
|
+
});
|
|
4357
4315
|
}
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4316
|
+
/**
|
|
4317
|
+
* A character value that specifies the separator character.
|
|
4318
|
+
*/
|
|
4319
|
+
get padDecimalZeros() {
|
|
4320
|
+
return this._padDecimalZeros;
|
|
4321
|
+
}
|
|
4322
|
+
set padDecimalZeros(v) {
|
|
4323
|
+
this._setOption({
|
|
4324
|
+
name: "padDecimalZeros",
|
|
4325
|
+
value: v,
|
|
4362
4326
|
});
|
|
4363
4327
|
}
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4328
|
+
/**
|
|
4329
|
+
* Specifies the number of decimals that the user can enter
|
|
4330
|
+
*/
|
|
4331
|
+
get decimals() {
|
|
4332
|
+
return this._decimals;
|
|
4333
|
+
}
|
|
4334
|
+
set decimals(v) {
|
|
4335
|
+
this._setOption({
|
|
4336
|
+
name: "decimals",
|
|
4337
|
+
value: v !== null && v !== void 0 ? v : 0,
|
|
4368
4338
|
});
|
|
4369
4339
|
}
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
this._addSub(mouseEnter$.subscribe(e => {
|
|
4376
|
-
const point = { x: e.clientX, y: e.clientY };
|
|
4377
|
-
if (AXDrawingUtil.isInElementBound(point, this._target))
|
|
4378
|
-
this.open();
|
|
4379
|
-
}));
|
|
4380
|
-
}
|
|
4381
|
-
if (this.closeTrigger === 'mouseout') {
|
|
4382
|
-
const mouseMove$ = fromEvent(document, 'mousemove');
|
|
4383
|
-
this._addSub(mouseMove$.pipe(throttleTime(50)).subscribe(e => {
|
|
4384
|
-
this._mousePos.x = e.clientX;
|
|
4385
|
-
this._mousePos.y = e.clientY;
|
|
4386
|
-
if (this.isOpen) {
|
|
4387
|
-
setTimeout(() => {
|
|
4388
|
-
if (!_.some([this._target, this._overlayRef.overlayElement], el => _.includes(document.elementsFromPoint(this._mousePos.x, this._mousePos.y), el)))
|
|
4389
|
-
this.close();
|
|
4390
|
-
}, 100);
|
|
4391
|
-
}
|
|
4392
|
-
}));
|
|
4393
|
-
}
|
|
4394
|
-
//
|
|
4395
|
-
if (this.openTrigger === 'click' || this.openTrigger === 'toggle') {
|
|
4396
|
-
const click$ = fromEvent(this._target, 'click');
|
|
4397
|
-
this._addSub(click$.subscribe(e => {
|
|
4398
|
-
this.openTrigger == 'toggle' ? this.toggle() : this.open();
|
|
4399
|
-
}));
|
|
4400
|
-
}
|
|
4401
|
-
}
|
|
4340
|
+
/**
|
|
4341
|
+
* Specifies the smallest value that is valid
|
|
4342
|
+
*/
|
|
4343
|
+
get minValue() {
|
|
4344
|
+
return this._minValue;
|
|
4402
4345
|
}
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
(_b = this._overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
4408
|
-
this._subs.forEach(s => {
|
|
4409
|
-
s === null || s === void 0 ? void 0 : s.unsubscribe();
|
|
4346
|
+
set minValue(v) {
|
|
4347
|
+
this._setOption({
|
|
4348
|
+
name: "minValue",
|
|
4349
|
+
value: v != null ? Number(v) : Number.MIN_SAFE_INTEGER,
|
|
4410
4350
|
});
|
|
4411
4351
|
}
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
|
|
4417
|
-
if (this.isOpen) {
|
|
4418
|
-
this.close();
|
|
4419
|
-
e.stopPropagation();
|
|
4420
|
-
}
|
|
4421
|
-
}
|
|
4352
|
+
/**
|
|
4353
|
+
* Specifies the greatest value that is valid
|
|
4354
|
+
*/
|
|
4355
|
+
get maxValue() {
|
|
4356
|
+
return this._maxValue;
|
|
4422
4357
|
}
|
|
4423
|
-
|
|
4424
|
-
this.
|
|
4358
|
+
set maxValue(v) {
|
|
4359
|
+
this._setOption({
|
|
4360
|
+
name: "maxValue",
|
|
4361
|
+
value: v != null ? Number(v) : Number.MAX_SAFE_INTEGER,
|
|
4362
|
+
});
|
|
4425
4363
|
}
|
|
4426
|
-
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
if (!this.isOpen) {
|
|
4430
|
-
return;
|
|
4431
|
-
}
|
|
4432
|
-
(_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
|
|
4433
|
-
this._emitOnClosedEvent();
|
|
4364
|
+
onViewInit() {
|
|
4365
|
+
super.onViewInit();
|
|
4366
|
+
this._updateMask();
|
|
4434
4367
|
}
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
this.
|
|
4438
|
-
(_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
4439
|
-
this._overlayRef = null;
|
|
4368
|
+
_onOptionChanged(option) {
|
|
4369
|
+
super._onOptionChanged(option);
|
|
4370
|
+
this._updateMask();
|
|
4440
4371
|
}
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
if (this.
|
|
4444
|
-
|
|
4372
|
+
_updateMask() {
|
|
4373
|
+
var _a, _b, _c, _d;
|
|
4374
|
+
if (!this._maskObj) {
|
|
4375
|
+
this._maskObj = IMask.createMask({
|
|
4376
|
+
mask: Number,
|
|
4377
|
+
min: this.minValue,
|
|
4378
|
+
max: this.maxValue,
|
|
4379
|
+
thousandsSeparator: this.thousandsSeparator || '',
|
|
4380
|
+
scale: this.decimals,
|
|
4381
|
+
radix: '.',
|
|
4382
|
+
padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
|
|
4383
|
+
});
|
|
4445
4384
|
}
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4385
|
+
else {
|
|
4386
|
+
this._maskObj.updateOptions({
|
|
4387
|
+
min: this.minValue,
|
|
4388
|
+
max: this.maxValue,
|
|
4389
|
+
thousandsSeparator: this.thousandsSeparator || '',
|
|
4390
|
+
scale: this.decimals,
|
|
4391
|
+
radix: '.',
|
|
4392
|
+
padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
|
|
4393
|
+
});
|
|
4394
|
+
}
|
|
4395
|
+
(_b = (_a = this._maskDirective) === null || _a === void 0 ? void 0 : _a.maskRef) === null || _b === void 0 ? void 0 : _b.updateValue();
|
|
4396
|
+
(_d = (_c = this._maskDirective) === null || _c === void 0 ? void 0 : _c.maskRef) === null || _d === void 0 ? void 0 : _d.updateControl();
|
|
4449
4397
|
}
|
|
4450
|
-
|
|
4451
|
-
const
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4398
|
+
_handleOnKeydownEvent(e) {
|
|
4399
|
+
const ignore = () => {
|
|
4400
|
+
e.preventDefault();
|
|
4401
|
+
e.stopPropagation();
|
|
4402
|
+
};
|
|
4403
|
+
const input = e.target;
|
|
4404
|
+
const valStr = input.value;
|
|
4405
|
+
const decimalPointIndex = valStr.indexOf('.');
|
|
4406
|
+
const _cursorPos = input.selectionStart;
|
|
4407
|
+
if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
|
4408
|
+
if (decimalPointIndex > 0 && _cursorPos > decimalPointIndex && this.decimals > 0) {
|
|
4409
|
+
e.key === 'ArrowDown' ? this.decimalStepDown() : this.decimalStepUp();
|
|
4457
4410
|
}
|
|
4458
4411
|
else {
|
|
4459
|
-
this.
|
|
4460
|
-
}
|
|
4461
|
-
if (this.closeTrigger == 'clickout') {
|
|
4462
|
-
this._addSub(this._overlayRef._outsidePointerEvents.subscribe(c => {
|
|
4463
|
-
const target = c.target;
|
|
4464
|
-
const comElem = targetRef;
|
|
4465
|
-
if (!(comElem.contains(target))) {
|
|
4466
|
-
this.close();
|
|
4467
|
-
}
|
|
4468
|
-
}));
|
|
4412
|
+
e.key === 'ArrowDown' ? this.stepDown() : this.stepUp();
|
|
4469
4413
|
}
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
this.updatePosition();
|
|
4475
|
-
}));
|
|
4476
|
-
this._isScrollAttached = true;
|
|
4477
|
-
}
|
|
4478
|
-
}));
|
|
4479
|
-
}
|
|
4480
|
-
if (!this._templatePortal) {
|
|
4481
|
-
this._templatePortal = new TemplatePortal(this._baseTemplate, this._viewContainerRef);
|
|
4414
|
+
ignore();
|
|
4415
|
+
setTimeout(() => {
|
|
4416
|
+
input.setSelectionRange(_cursorPos, _cursorPos);
|
|
4417
|
+
}, 5);
|
|
4482
4418
|
}
|
|
4419
|
+
super._emitOnKeydownEvent(e);
|
|
4483
4420
|
}
|
|
4484
|
-
|
|
4485
|
-
this.
|
|
4486
|
-
positionStrategy: this._overlay.position()
|
|
4487
|
-
.flexibleConnectedTo(targetRef)
|
|
4488
|
-
.withPositions(Array.isArray(this.position) ? this.position : [this.position])
|
|
4489
|
-
.withPush(false),
|
|
4490
|
-
disposeOnNavigation: true,
|
|
4491
|
-
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
4492
|
-
maxHeight: 'unset',
|
|
4493
|
-
hasBackdrop: this.hasBackdrop,
|
|
4494
|
-
backdropClass: [this.backdropClass || 'cdk-overlay-transparent-backdrop']
|
|
4495
|
-
});
|
|
4421
|
+
_handleUpDownClick(e, v) {
|
|
4422
|
+
v == 1 ? this.stepUp() : this.stepDown();
|
|
4496
4423
|
}
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
overlayY: 'bottom'
|
|
4505
|
-
}
|
|
4506
|
-
]),
|
|
4507
|
-
disposeOnNavigation: true,
|
|
4508
|
-
panelClass: ['ax-animate-slideInUp', 'ax-animate-faster'],
|
|
4509
|
-
hasBackdrop: true,
|
|
4510
|
-
width: '100%'
|
|
4511
|
-
});
|
|
4424
|
+
_onValueChanging(value) {
|
|
4425
|
+
const v = _.toNumber(value);
|
|
4426
|
+
if (v < this.minValue)
|
|
4427
|
+
return this.minValue;
|
|
4428
|
+
if (v > this.maxValue)
|
|
4429
|
+
return this.maxValue;
|
|
4430
|
+
return v;
|
|
4512
4431
|
}
|
|
4513
|
-
|
|
4514
|
-
|
|
4432
|
+
stepUp() {
|
|
4433
|
+
this.value += _.toNumber(this.step);
|
|
4515
4434
|
}
|
|
4516
|
-
|
|
4517
|
-
this.
|
|
4435
|
+
stepDown() {
|
|
4436
|
+
this.value -= _.toNumber(this.step);
|
|
4518
4437
|
}
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4438
|
+
decimalStepUp() {
|
|
4439
|
+
this.value += _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
|
|
4440
|
+
}
|
|
4441
|
+
decimalStepDown() {
|
|
4442
|
+
this.value -= _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
|
|
4523
4443
|
}
|
|
4524
4444
|
}
|
|
4525
|
-
|
|
4526
|
-
|
|
4527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type:
|
|
4445
|
+
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 });
|
|
4446
|
+
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 });
|
|
4447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxComponent, decorators: [{
|
|
4528
4448
|
type: Component,
|
|
4529
|
-
args: [{ selector: 'ax-
|
|
4530
|
-
|
|
4449
|
+
args: [{ selector: 'ax-number-box', inputs: [
|
|
4450
|
+
'disabled',
|
|
4451
|
+
'readonly',
|
|
4452
|
+
'tabIndex',
|
|
4453
|
+
'size',
|
|
4454
|
+
'value',
|
|
4455
|
+
...TEXTBOX_INPUTS,
|
|
4456
|
+
], outputs: [
|
|
4457
|
+
'valueChange',
|
|
4458
|
+
'onValueChanged',
|
|
4459
|
+
'onBlur',
|
|
4460
|
+
'onFocus',
|
|
4461
|
+
...TEXTBOX_OUTPUT,
|
|
4462
|
+
], 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>" }]
|
|
4463
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { thousandsSeparator: [{
|
|
4531
4464
|
type: Input
|
|
4532
|
-
}],
|
|
4465
|
+
}], padDecimalZeros: [{
|
|
4533
4466
|
type: Input
|
|
4534
|
-
}],
|
|
4535
|
-
type: ViewChild,
|
|
4536
|
-
args: ['baseTemplate']
|
|
4537
|
-
}], openTrigger: [{
|
|
4467
|
+
}], step: [{
|
|
4538
4468
|
type: Input
|
|
4539
|
-
}],
|
|
4469
|
+
}], decimals: [{
|
|
4540
4470
|
type: Input
|
|
4541
|
-
}],
|
|
4471
|
+
}], decimalStep: [{
|
|
4542
4472
|
type: Input
|
|
4543
|
-
}],
|
|
4473
|
+
}], showSpinButtons: [{
|
|
4544
4474
|
type: Input
|
|
4545
|
-
}],
|
|
4475
|
+
}], minValue: [{
|
|
4546
4476
|
type: Input
|
|
4547
|
-
}],
|
|
4548
|
-
type:
|
|
4549
|
-
}],
|
|
4550
|
-
type:
|
|
4551
|
-
|
|
4552
|
-
type: HostListener,
|
|
4553
|
-
args: ['keydown', ['$event']]
|
|
4477
|
+
}], maxValue: [{
|
|
4478
|
+
type: Input
|
|
4479
|
+
}], _maskDirective: [{
|
|
4480
|
+
type: ViewChild,
|
|
4481
|
+
args: [IMaskDirective]
|
|
4554
4482
|
}] } });
|
|
4555
4483
|
|
|
4556
|
-
class
|
|
4484
|
+
class AXColorPaletteInputComponent extends AXBaseComponent {
|
|
4485
|
+
constructor(_elementRef, _cdr, _parent) {
|
|
4486
|
+
super(_elementRef, _cdr);
|
|
4487
|
+
this._parent = _parent;
|
|
4488
|
+
this._rgba = {
|
|
4489
|
+
r: 255,
|
|
4490
|
+
g: 255,
|
|
4491
|
+
b: 255,
|
|
4492
|
+
a: 0
|
|
4493
|
+
};
|
|
4494
|
+
this._hex = "#000000";
|
|
4495
|
+
this.inputMode = 'rgba';
|
|
4496
|
+
_parent === null || _parent === void 0 ? void 0 : _parent.onValueChanged.subscribe(e => {
|
|
4497
|
+
if (this._hex != e.value) {
|
|
4498
|
+
this._hex = e.value;
|
|
4499
|
+
Object.assign(this._rgba, AXColorUtil.hex2Rgb(e.value));
|
|
4500
|
+
}
|
|
4501
|
+
});
|
|
4502
|
+
}
|
|
4503
|
+
_handleChangeInputMode(e) {
|
|
4504
|
+
// switch (this.inputMode) {
|
|
4505
|
+
// case 'rgba':
|
|
4506
|
+
// this.inputMode = 'hsla'
|
|
4507
|
+
// break;
|
|
4508
|
+
// case 'hsla':
|
|
4509
|
+
// this.inputMode = 'hwba'
|
|
4510
|
+
// break;
|
|
4511
|
+
// case 'hwba':
|
|
4512
|
+
// this.inputMode = 'hex'
|
|
4513
|
+
// break;
|
|
4514
|
+
// case 'hex':
|
|
4515
|
+
// this.inputMode = 'rgba'
|
|
4516
|
+
// break;
|
|
4517
|
+
// }
|
|
4518
|
+
this.inputMode = this.inputMode == 'rgba' ? 'hex' : 'rgba';
|
|
4519
|
+
}
|
|
4520
|
+
_handleRGBAValueChanged(e) {
|
|
4521
|
+
if (this._parent) {
|
|
4522
|
+
this._parent.value = AXColorUtil.rgba2Hex(this._rgba);
|
|
4523
|
+
}
|
|
4524
|
+
}
|
|
4525
|
+
_handleHEXAValueChanged(e) {
|
|
4526
|
+
debugger;
|
|
4527
|
+
const color = AXColorUtil.hex2Rgb(e.value);
|
|
4528
|
+
if (this._parent && color) {
|
|
4529
|
+
Object.assign(this._rgba, color);
|
|
4530
|
+
this._parent.value = e.value;
|
|
4531
|
+
}
|
|
4532
|
+
else {
|
|
4533
|
+
this._hex = this._parent.value;
|
|
4534
|
+
this._cdr.markForCheck();
|
|
4535
|
+
}
|
|
4536
|
+
}
|
|
4557
4537
|
}
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4538
|
+
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 });
|
|
4539
|
+
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 });
|
|
4540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteInputComponent, decorators: [{
|
|
4541
|
+
type: Component,
|
|
4542
|
+
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>" }]
|
|
4543
|
+
}], ctorParameters: function () {
|
|
4544
|
+
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorPalleteComponent, decorators: [{
|
|
4545
|
+
type: Optional
|
|
4546
|
+
}, {
|
|
4547
|
+
type: Inject,
|
|
4548
|
+
args: [AXColorPalleteComponent]
|
|
4549
|
+
}] }];
|
|
4550
|
+
} });
|
|
4551
|
+
|
|
4552
|
+
class AXColorPalettePickerComponent {
|
|
4553
|
+
constructor() { }
|
|
4554
|
+
ngOnInit() { }
|
|
4555
|
+
}
|
|
4556
|
+
AXColorPalettePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4557
|
+
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 });
|
|
4558
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePickerComponent, decorators: [{
|
|
4559
|
+
type: Component,
|
|
4560
|
+
args: [{
|
|
4561
|
+
selector: 'ax-color-palette-picker',
|
|
4562
|
+
template: ``,
|
|
4563
|
+
encapsulation: ViewEncapsulation.None
|
|
4564
|
+
}]
|
|
4565
|
+
}], ctorParameters: function () { return []; } });
|
|
4566
|
+
|
|
4567
|
+
class AXColorPaletteSwatchesComponent extends AXBaseComponent {
|
|
4568
|
+
constructor(_elementRef, _cdr, _parent) {
|
|
4569
|
+
super(_elementRef, _cdr);
|
|
4570
|
+
this._parent = _parent;
|
|
4571
|
+
this.colors = [];
|
|
4572
|
+
this._defaultPalette = [
|
|
4573
|
+
{ code: '#000000' },
|
|
4574
|
+
{ code: '#ffffff' },
|
|
4575
|
+
// Amber
|
|
4576
|
+
{ code: '#fff8e1' },
|
|
4577
|
+
{ code: '#ffecb3' },
|
|
4578
|
+
{ code: '#ffe082' },
|
|
4579
|
+
{ code: '#ffd54f' },
|
|
4580
|
+
{ code: '#ffca28' },
|
|
4581
|
+
{ code: '#ffc107' },
|
|
4582
|
+
{ code: '#ffb300' },
|
|
4583
|
+
{ code: '#ffa000' },
|
|
4584
|
+
{ code: '#ff8f00' },
|
|
4585
|
+
{ code: '#ff6f00' },
|
|
4586
|
+
// Blue Grey
|
|
4587
|
+
{ code: '#ECEFF1' },
|
|
4588
|
+
{ code: '#CFD8DC' },
|
|
4589
|
+
{ code: '#B0BEC5' },
|
|
4590
|
+
{ code: '#90A4AE' },
|
|
4591
|
+
{ code: '#78909C' },
|
|
4592
|
+
{ code: '#607D8B' },
|
|
4593
|
+
{ code: '#546E7A' },
|
|
4594
|
+
{ code: '#455A64' },
|
|
4595
|
+
{ code: '#37474F' },
|
|
4596
|
+
{ code: '#263238' },
|
|
4597
|
+
// Blue
|
|
4598
|
+
{ code: '#E3F2FD' },
|
|
4599
|
+
{ code: '#BBDEFB' },
|
|
4600
|
+
{ code: '#90CAF9' },
|
|
4601
|
+
{ code: '#64B5F6' },
|
|
4602
|
+
{ code: '#42A5F5' },
|
|
4603
|
+
{ code: '#2196F3' },
|
|
4604
|
+
{ code: '#1E88E5' },
|
|
4605
|
+
{ code: '#1976D2' },
|
|
4606
|
+
{ code: '#1565C0' },
|
|
4607
|
+
{ code: '#0D47A1' },
|
|
4608
|
+
// Brown
|
|
4609
|
+
{ code: '#EFEBE9' },
|
|
4610
|
+
{ code: '#D7CCC8' },
|
|
4611
|
+
{ code: '#BCAAA4' },
|
|
4612
|
+
{ code: '#A1887F' },
|
|
4613
|
+
{ code: '#8D6E63' },
|
|
4614
|
+
{ code: '#795548' },
|
|
4615
|
+
{ code: '#6D4C41' },
|
|
4616
|
+
{ code: '#5D4037' },
|
|
4617
|
+
{ code: '#4E342E' },
|
|
4618
|
+
{ code: '#3E2723' },
|
|
4619
|
+
// Cyan
|
|
4620
|
+
{ code: '#E0F7FA' },
|
|
4621
|
+
{ code: '#B2EBF2' },
|
|
4622
|
+
{ code: '#80DEEA' },
|
|
4623
|
+
{ code: '#4DD0E1' },
|
|
4624
|
+
{ code: '#26C6DA' },
|
|
4625
|
+
{ code: '#00BCD4' },
|
|
4626
|
+
{ code: '#00ACC1' },
|
|
4627
|
+
{ code: '#0097A7' },
|
|
4628
|
+
{ code: '#00838F' },
|
|
4629
|
+
{ code: '#006064' },
|
|
4630
|
+
// Deep Orange
|
|
4631
|
+
{ code: '#FBE9E7' },
|
|
4632
|
+
{ code: '#FFCCBC' },
|
|
4633
|
+
{ code: '#FFAB91' },
|
|
4634
|
+
{ code: '#FF8A65' },
|
|
4635
|
+
{ code: '#FF7043' },
|
|
4636
|
+
{ code: '#FF5722' },
|
|
4637
|
+
{ code: '#F4511E' },
|
|
4638
|
+
{ code: '#E64A19' },
|
|
4639
|
+
{ code: '#D84315' },
|
|
4640
|
+
{ code: '#BF360C' },
|
|
4641
|
+
// Deep Purple
|
|
4642
|
+
{ code: '#EDE7F6' },
|
|
4643
|
+
{ code: '#D1C4E9' },
|
|
4644
|
+
{ code: '#B39DDB' },
|
|
4645
|
+
{ code: '#9575CD' },
|
|
4646
|
+
{ code: '#7E57C2' },
|
|
4647
|
+
{ code: '#673AB7' },
|
|
4648
|
+
{ code: '#5E35B1' },
|
|
4649
|
+
{ code: '#512DA8' },
|
|
4650
|
+
{ code: '#4527A0' },
|
|
4651
|
+
{ code: '#311B92' },
|
|
4652
|
+
// Green
|
|
4653
|
+
{ code: '#E8F5E9' },
|
|
4654
|
+
{ code: '#C8E6C9' },
|
|
4655
|
+
{ code: '#A5D6A7' },
|
|
4656
|
+
{ code: '#81C784' },
|
|
4657
|
+
{ code: '#66BB6A' },
|
|
4658
|
+
{ code: '#4CAF50' },
|
|
4659
|
+
{ code: '#43A047' },
|
|
4660
|
+
{ code: '#388E3C' },
|
|
4661
|
+
{ code: '#2E7D32' },
|
|
4662
|
+
{ code: '#1B5E20' },
|
|
4663
|
+
// Grey
|
|
4664
|
+
{ code: '#FAFAFA' },
|
|
4665
|
+
{ code: '#F5F5F5' },
|
|
4666
|
+
{ code: '#EEEEEE' },
|
|
4667
|
+
{ code: '#E0E0E0' },
|
|
4668
|
+
{ code: '#BDBDBD' },
|
|
4669
|
+
{ code: '#9E9E9E' },
|
|
4670
|
+
{ code: '#757575' },
|
|
4671
|
+
{ code: '#616161' },
|
|
4672
|
+
{ code: '#424242' },
|
|
4673
|
+
{ code: '#212121' },
|
|
4674
|
+
// Indigo
|
|
4675
|
+
{ code: '#E8EAF6' },
|
|
4676
|
+
{ code: '#C5CAE9' },
|
|
4677
|
+
{ code: '#9FA8DA' },
|
|
4678
|
+
{ code: '#7986CB' },
|
|
4679
|
+
{ code: '#5C6BC0' },
|
|
4680
|
+
{ code: '#3F51B5' },
|
|
4681
|
+
{ code: '#3949AB' },
|
|
4682
|
+
{ code: '#303F9F' },
|
|
4683
|
+
{ code: '#283593' },
|
|
4684
|
+
{ code: '#1A237E' },
|
|
4685
|
+
// Light Blue
|
|
4686
|
+
{ code: '#E1F5FE' },
|
|
4687
|
+
{ code: '#B3E5FC' },
|
|
4688
|
+
{ code: '#81D4FA' },
|
|
4689
|
+
{ code: '#4FC3F7' },
|
|
4690
|
+
{ code: '#29B6F6' },
|
|
4691
|
+
{ code: '#03A9F4' },
|
|
4692
|
+
{ code: '#039BE5' },
|
|
4693
|
+
{ code: '#0288D1' },
|
|
4694
|
+
{ code: '#0277BD' },
|
|
4695
|
+
{ code: '#01579B' },
|
|
4696
|
+
// Light Green
|
|
4697
|
+
{ code: '#F1F8E9' },
|
|
4698
|
+
{ code: '#DCEDC8' },
|
|
4699
|
+
{ code: '#C5E1A5' },
|
|
4700
|
+
{ code: '#AED581' },
|
|
4701
|
+
{ code: '#9CCC65' },
|
|
4702
|
+
{ code: '#8BC34A' },
|
|
4703
|
+
{ code: '#7CB342' },
|
|
4704
|
+
{ code: '#689F38' },
|
|
4705
|
+
{ code: '#558B2F' },
|
|
4706
|
+
{ code: '#33691E' },
|
|
4707
|
+
// Lime
|
|
4708
|
+
{ code: '#F9FBE7' },
|
|
4709
|
+
{ code: '#F0F4C3' },
|
|
4710
|
+
{ code: '#E6EE9C' },
|
|
4711
|
+
{ code: '#DCE775' },
|
|
4712
|
+
{ code: '#D4E157' },
|
|
4713
|
+
{ code: '#CDDC39' },
|
|
4714
|
+
{ code: '#C0CA33' },
|
|
4715
|
+
{ code: '#AFB42B' },
|
|
4716
|
+
{ code: '#9E9D24' },
|
|
4717
|
+
{ code: '#827717' },
|
|
4718
|
+
// Orange
|
|
4719
|
+
{ code: '#FFF3E0' },
|
|
4720
|
+
{ code: '#FFE0B2' },
|
|
4721
|
+
{ code: '#FFCC80' },
|
|
4722
|
+
{ code: '#FFB74D' },
|
|
4723
|
+
{ code: '#FFA726' },
|
|
4724
|
+
{ code: '#FF9800' },
|
|
4725
|
+
{ code: '#FB8C00' },
|
|
4726
|
+
{ code: '#F57C00' },
|
|
4727
|
+
{ code: '#EF6C00' },
|
|
4728
|
+
{ code: '#E65100' },
|
|
4729
|
+
// Pink
|
|
4730
|
+
{ code: '#FCE4EC' },
|
|
4731
|
+
{ code: '#F8BBD0' },
|
|
4732
|
+
{ code: '#F48FB1' },
|
|
4733
|
+
{ code: '#F06292' },
|
|
4734
|
+
{ code: '#EC407A' },
|
|
4735
|
+
{ code: '#E91E63' },
|
|
4736
|
+
{ code: '#D81B60' },
|
|
4737
|
+
{ code: '#C2185B' },
|
|
4738
|
+
{ code: '#AD1457' },
|
|
4739
|
+
{ code: '#880E4F' },
|
|
4740
|
+
// Purple
|
|
4741
|
+
{ code: '#F3E5F5' },
|
|
4742
|
+
{ code: '#E1BEE7' },
|
|
4743
|
+
{ code: '#CE93D8' },
|
|
4744
|
+
{ code: '#BA68C8' },
|
|
4745
|
+
{ code: '#AB47BC' },
|
|
4746
|
+
{ code: '#9C27B0' },
|
|
4747
|
+
{ code: '#8E24AA' },
|
|
4748
|
+
{ code: '#7B1FA2' },
|
|
4749
|
+
{ code: '#6A1B9A' },
|
|
4750
|
+
{ code: '#4A148C' },
|
|
4751
|
+
// Red
|
|
4752
|
+
{ code: '#FFEBEE' },
|
|
4753
|
+
{ code: '#FFCDD2' },
|
|
4754
|
+
{ code: '#EF9A9A' },
|
|
4755
|
+
{ code: '#E57373' },
|
|
4756
|
+
{ code: '#EF5350' },
|
|
4757
|
+
{ code: '#F44336' },
|
|
4758
|
+
{ code: '#E53935' },
|
|
4759
|
+
{ code: '#D32F2F' },
|
|
4760
|
+
{ code: '#C62828' },
|
|
4761
|
+
{ code: '#B71C1C' },
|
|
4762
|
+
// Teal
|
|
4763
|
+
{ code: '#E0F2F1' },
|
|
4764
|
+
{ code: '#B2DFDB' },
|
|
4765
|
+
{ code: '#80CBC4' },
|
|
4766
|
+
{ code: '#4DB6AC' },
|
|
4767
|
+
{ code: '#26A69A' },
|
|
4768
|
+
{ code: '#009688' },
|
|
4769
|
+
{ code: '#00897B' },
|
|
4770
|
+
{ code: '#00796B' },
|
|
4771
|
+
{ code: '#00695C' },
|
|
4772
|
+
{ code: '#004D40' },
|
|
4773
|
+
// Yellow
|
|
4774
|
+
{ code: '#FFFDE7' },
|
|
4775
|
+
{ code: '#FFF9C4' },
|
|
4776
|
+
{ code: '#FFF59D' },
|
|
4777
|
+
{ code: '#FFF176' },
|
|
4778
|
+
{ code: '#FFEE58' },
|
|
4779
|
+
{ code: '#FFEB3B' },
|
|
4780
|
+
{ code: '#FDD835' },
|
|
4781
|
+
{ code: '#FBC02D' },
|
|
4782
|
+
{ code: '#F9A825' },
|
|
4783
|
+
{ code: '#F57F17' },
|
|
4784
|
+
];
|
|
4785
|
+
_parent === null || _parent === void 0 ? void 0 : _parent.onValueChanged.subscribe(e => {
|
|
4786
|
+
this._selected = e.value;
|
|
4787
|
+
});
|
|
4788
|
+
debugger;
|
|
4789
|
+
if (this._getHostElement().tagName.toLocaleLowerCase() != 'ax-color-palette-favorite') {
|
|
4790
|
+
this.colors = this._defaultPalette;
|
|
4791
|
+
}
|
|
4792
|
+
}
|
|
4793
|
+
_handleClick(e, color) {
|
|
4794
|
+
this._parent.value = this._selected = color.code;
|
|
4795
|
+
}
|
|
4796
|
+
}
|
|
4797
|
+
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 });
|
|
4798
|
+
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">
|
|
4799
|
+
<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)" >
|
|
4800
|
+
</div>
|
|
4801
|
+
</div>`, isInline: true, directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
4802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteSwatchesComponent, decorators: [{
|
|
4803
|
+
type: Component,
|
|
4804
|
+
args: [{
|
|
4805
|
+
selector: 'ax-color-palette-swatches, ax-color-palette-favorite',
|
|
4806
|
+
template: `<div class="palette-items">
|
|
4807
|
+
<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)" >
|
|
4808
|
+
</div>
|
|
4809
|
+
</div>`,
|
|
4810
|
+
encapsulation: ViewEncapsulation.None
|
|
4811
|
+
}]
|
|
4812
|
+
}], ctorParameters: function () {
|
|
4813
|
+
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorPalleteComponent, decorators: [{
|
|
4814
|
+
type: Optional
|
|
4815
|
+
}, {
|
|
4816
|
+
type: Inject,
|
|
4817
|
+
args: [AXColorPalleteComponent]
|
|
4818
|
+
}] }];
|
|
4819
|
+
}, propDecorators: { colors: [{
|
|
4820
|
+
type: Input
|
|
4821
|
+
}] } });
|
|
4822
|
+
|
|
4823
|
+
class AXTextBoxModule {
|
|
4824
|
+
}
|
|
4825
|
+
AXTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4826
|
+
AXTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [CommonModule,
|
|
4827
|
+
FormsModule,
|
|
4828
|
+
AXButtonModule,
|
|
4829
|
+
AXDecoratorModule, i1$3.NgxMaskModule], exports: [AXTextBoxComponent] });
|
|
4830
|
+
AXTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, providers: [], imports: [[
|
|
4831
|
+
CommonModule,
|
|
4832
|
+
FormsModule,
|
|
4833
|
+
AXButtonModule,
|
|
4834
|
+
AXDecoratorModule,
|
|
4835
|
+
NgxMaskModule.forChild()
|
|
4836
|
+
]] });
|
|
4837
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, decorators: [{
|
|
4562
4838
|
type: NgModule,
|
|
4563
4839
|
args: [{
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4840
|
+
imports: [
|
|
4841
|
+
CommonModule,
|
|
4842
|
+
FormsModule,
|
|
4843
|
+
AXButtonModule,
|
|
4844
|
+
AXDecoratorModule,
|
|
4845
|
+
NgxMaskModule.forChild()
|
|
4846
|
+
],
|
|
4847
|
+
exports: [AXTextBoxComponent],
|
|
4848
|
+
declarations: [AXTextBoxComponent],
|
|
4849
|
+
providers: [],
|
|
4568
4850
|
}]
|
|
4569
4851
|
}] });
|
|
4570
4852
|
|
|
4571
|
-
class
|
|
4572
|
-
/**
|
|
4573
|
-
* @ignore
|
|
4574
|
-
*/
|
|
4853
|
+
class AXLabelComponent extends AXBaseComponentMixin {
|
|
4575
4854
|
constructor(elementRef, cdr) {
|
|
4576
4855
|
super(elementRef, cdr);
|
|
4577
|
-
this.visibleChange = new EventEmitter();
|
|
4578
|
-
this.type = 'spinner';
|
|
4579
4856
|
}
|
|
4580
|
-
get
|
|
4581
|
-
return this.
|
|
4857
|
+
get target() {
|
|
4858
|
+
return this._target;
|
|
4582
4859
|
}
|
|
4583
|
-
set
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4860
|
+
set target(v) {
|
|
4861
|
+
this._target = v;
|
|
4862
|
+
this._cdr.markForCheck();
|
|
4863
|
+
}
|
|
4864
|
+
}
|
|
4865
|
+
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 });
|
|
4866
|
+
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 });
|
|
4867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelComponent, decorators: [{
|
|
4868
|
+
type: Component,
|
|
4869
|
+
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>" }]
|
|
4870
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { class: [{
|
|
4871
|
+
type: Input
|
|
4872
|
+
}] } });
|
|
4873
|
+
|
|
4874
|
+
const COMPONENT$g = [AXLabelComponent];
|
|
4875
|
+
const MODULES$h = [CommonModule];
|
|
4876
|
+
class AXLabelModule {
|
|
4877
|
+
}
|
|
4878
|
+
AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4879
|
+
AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
|
|
4880
|
+
AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$h]] });
|
|
4881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, decorators: [{
|
|
4882
|
+
type: NgModule,
|
|
4883
|
+
args: [{
|
|
4884
|
+
declarations: [...COMPONENT$g],
|
|
4885
|
+
imports: [...MODULES$h],
|
|
4886
|
+
exports: [...COMPONENT$g],
|
|
4887
|
+
providers: [],
|
|
4888
|
+
}]
|
|
4889
|
+
}] });
|
|
4890
|
+
|
|
4891
|
+
const COMPONENT$f = [AXNumberBoxComponent];
|
|
4892
|
+
const MODULES$g = [
|
|
4893
|
+
CommonModule,
|
|
4894
|
+
FormsModule,
|
|
4895
|
+
AXButtonModule,
|
|
4896
|
+
AXDecoratorModule,
|
|
4897
|
+
IMaskModule
|
|
4898
|
+
];
|
|
4899
|
+
class AXNumberBoxModule {
|
|
4900
|
+
}
|
|
4901
|
+
AXNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4902
|
+
AXNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, declarations: [AXNumberBoxComponent], imports: [CommonModule,
|
|
4903
|
+
FormsModule,
|
|
4904
|
+
AXButtonModule,
|
|
4905
|
+
AXDecoratorModule,
|
|
4906
|
+
IMaskModule], exports: [AXNumberBoxComponent] });
|
|
4907
|
+
AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, providers: [], imports: [[...MODULES$g]] });
|
|
4908
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, decorators: [{
|
|
4909
|
+
type: NgModule,
|
|
4910
|
+
args: [{
|
|
4911
|
+
declarations: [...COMPONENT$f],
|
|
4912
|
+
imports: [...MODULES$g],
|
|
4913
|
+
exports: [...COMPONENT$f],
|
|
4914
|
+
providers: [],
|
|
4915
|
+
}]
|
|
4916
|
+
}] });
|
|
4917
|
+
|
|
4918
|
+
const MODULES$f = [
|
|
4919
|
+
AXTextBoxModule,
|
|
4920
|
+
AXLabelModule,
|
|
4921
|
+
AXButtonModule,
|
|
4922
|
+
AXDecoratorModule,
|
|
4923
|
+
AXNumberBoxModule
|
|
4924
|
+
];
|
|
4925
|
+
const CONPONENTS = [
|
|
4926
|
+
AXColorPalleteComponent,
|
|
4927
|
+
AXColorPalettePreviewComponent,
|
|
4928
|
+
AXColorPaletteSwatchesComponent,
|
|
4929
|
+
AXColorPaletteInputComponent,
|
|
4930
|
+
AXColorPalettePickerComponent
|
|
4931
|
+
];
|
|
4932
|
+
class AXColorPaletteModule {
|
|
4933
|
+
}
|
|
4934
|
+
AXColorPaletteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4935
|
+
AXColorPaletteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, declarations: [AXColorPalleteComponent,
|
|
4936
|
+
AXColorPalettePreviewComponent,
|
|
4937
|
+
AXColorPaletteSwatchesComponent,
|
|
4938
|
+
AXColorPaletteInputComponent,
|
|
4939
|
+
AXColorPalettePickerComponent], imports: [CommonModule, AXTextBoxModule,
|
|
4940
|
+
AXLabelModule,
|
|
4941
|
+
AXButtonModule,
|
|
4942
|
+
AXDecoratorModule,
|
|
4943
|
+
AXNumberBoxModule], exports: [AXColorPalleteComponent,
|
|
4944
|
+
AXColorPalettePreviewComponent,
|
|
4945
|
+
AXColorPaletteSwatchesComponent,
|
|
4946
|
+
AXColorPaletteInputComponent,
|
|
4947
|
+
AXColorPalettePickerComponent] });
|
|
4948
|
+
AXColorPaletteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, providers: [], imports: [[CommonModule, ...MODULES$f]] });
|
|
4949
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, decorators: [{
|
|
4950
|
+
type: NgModule,
|
|
4951
|
+
args: [{
|
|
4952
|
+
declarations: [...CONPONENTS],
|
|
4953
|
+
imports: [CommonModule, ...MODULES$f],
|
|
4954
|
+
exports: [...CONPONENTS],
|
|
4955
|
+
providers: [],
|
|
4956
|
+
}]
|
|
4957
|
+
}] });
|
|
4958
|
+
|
|
4959
|
+
class AXCollapseComponent extends AXBaseComponent {
|
|
4960
|
+
constructor(elementRef, cdr) {
|
|
4961
|
+
super(elementRef, cdr);
|
|
4962
|
+
this.cdr = cdr;
|
|
4963
|
+
this.isCollapsedChange = new EventEmitter();
|
|
4964
|
+
this._isCollapsed = false;
|
|
4965
|
+
this.caption = null;
|
|
4966
|
+
}
|
|
4967
|
+
get isCollapsed() {
|
|
4968
|
+
return this._isCollapsed;
|
|
4969
|
+
}
|
|
4970
|
+
set isCollapsed(v) {
|
|
4971
|
+
if (v != this._isCollapsed) {
|
|
4972
|
+
this._isCollapsed = v;
|
|
4973
|
+
this.isCollapsedChange.emit(v);
|
|
4974
|
+
this._cdr.detectChanges();
|
|
4588
4975
|
}
|
|
4589
4976
|
}
|
|
4590
|
-
|
|
4591
|
-
|
|
4592
|
-
this._selectedPortal = new ComponentPortal(loading);
|
|
4593
|
-
this._cdr.markForCheck();
|
|
4977
|
+
handleHeaderClick() {
|
|
4978
|
+
this.isCollapsed = !this.isCollapsed;
|
|
4594
4979
|
}
|
|
4595
|
-
|
|
4596
|
-
|
|
4597
|
-
|
|
4598
|
-
|
|
4980
|
+
}
|
|
4981
|
+
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 });
|
|
4982
|
+
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 });
|
|
4983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseComponent, decorators: [{
|
|
4984
|
+
type: Component,
|
|
4985
|
+
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>" }]
|
|
4986
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { isCollapsedChange: [{
|
|
4987
|
+
type: Output
|
|
4988
|
+
}], isCollapsed: [{
|
|
4989
|
+
type: Input
|
|
4990
|
+
}], caption: [{
|
|
4991
|
+
type: Input
|
|
4992
|
+
}], headerTemplate: [{
|
|
4993
|
+
type: ContentChild,
|
|
4994
|
+
args: ['header', { static: true }]
|
|
4995
|
+
}] } });
|
|
4996
|
+
|
|
4997
|
+
class AXCollapseGroupComponent extends AXBaseComponent {
|
|
4998
|
+
constructor(elementRef, cdr) {
|
|
4999
|
+
super(elementRef, cdr);
|
|
5000
|
+
this.cdr = cdr;
|
|
5001
|
+
this.accordion = false;
|
|
5002
|
+
this.nonCollapsedIndex = 0;
|
|
5003
|
+
this._subs = [];
|
|
5004
|
+
}
|
|
5005
|
+
onViewInit() {
|
|
5006
|
+
if (this.accordion) {
|
|
5007
|
+
this._items.forEach(c => c.isCollapsed = true);
|
|
5008
|
+
this._items.get(this.nonCollapsedIndex).isCollapsed = false;
|
|
5009
|
+
console.log(this._items[this.nonCollapsedIndex]);
|
|
5010
|
+
this._items.forEach((c1) => {
|
|
5011
|
+
this._subs.push(c1.isCollapsedChange.subscribe(e => {
|
|
5012
|
+
if (!e)
|
|
5013
|
+
this._items.toArray().filter(c2 => c2 != c1).forEach(c => c.isCollapsed = true);
|
|
5014
|
+
}));
|
|
5015
|
+
});
|
|
4599
5016
|
}
|
|
4600
5017
|
}
|
|
5018
|
+
onDestroy() {
|
|
5019
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
5020
|
+
this._subs = [];
|
|
5021
|
+
}
|
|
4601
5022
|
}
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
`, isInline: true, directives: [{ type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4606
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingComponent, decorators: [{
|
|
5023
|
+
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 });
|
|
5024
|
+
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 });
|
|
5025
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseGroupComponent, decorators: [{
|
|
4607
5026
|
type: Component,
|
|
4608
5027
|
args: [{
|
|
4609
|
-
selector: 'ax-
|
|
4610
|
-
template:
|
|
4611
|
-
|
|
4612
|
-
`,
|
|
5028
|
+
selector: 'ax-collapse-group',
|
|
5029
|
+
template: `<ng-content select="ax-collapse"></ng-content>`,
|
|
5030
|
+
host: { class: 'ax-collapse-group' },
|
|
4613
5031
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4614
5032
|
encapsulation: ViewEncapsulation.None,
|
|
4615
|
-
host: { class: 'ax-loading' }
|
|
4616
5033
|
}]
|
|
4617
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
4618
|
-
type: Output
|
|
4619
|
-
}], visible: [{
|
|
4620
|
-
type: Input
|
|
4621
|
-
}], type: [{
|
|
5034
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { accordion: [{
|
|
4622
5035
|
type: Input
|
|
4623
|
-
}],
|
|
5036
|
+
}], nonCollapsedIndex: [{
|
|
4624
5037
|
type: Input
|
|
5038
|
+
}], _items: [{
|
|
5039
|
+
type: ContentChildren,
|
|
5040
|
+
args: [AXCollapseComponent]
|
|
4625
5041
|
}] } });
|
|
4626
5042
|
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
5043
|
+
class AXCollapseModule {
|
|
5044
|
+
}
|
|
5045
|
+
AXCollapseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5046
|
+
AXCollapseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, declarations: [AXCollapseComponent, AXCollapseGroupComponent], imports: [CommonModule], exports: [AXCollapseComponent, AXCollapseGroupComponent] });
|
|
5047
|
+
AXCollapseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, providers: [], imports: [[CommonModule]] });
|
|
5048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, decorators: [{
|
|
5049
|
+
type: NgModule,
|
|
5050
|
+
args: [{
|
|
5051
|
+
declarations: [AXCollapseComponent, AXCollapseGroupComponent],
|
|
5052
|
+
imports: [CommonModule],
|
|
5053
|
+
exports: [AXCollapseComponent, AXCollapseGroupComponent],
|
|
5054
|
+
providers: [],
|
|
5055
|
+
}]
|
|
5056
|
+
}] });
|
|
5057
|
+
|
|
5058
|
+
class AXPopoverComponent extends AXInteractiveComponenetMixin {
|
|
5059
|
+
constructor(_elementRef, _cdr, _zone, _overlay, _platform, _viewContainerRef) {
|
|
4637
5060
|
super(_elementRef, _cdr);
|
|
4638
5061
|
this._elementRef = _elementRef;
|
|
4639
5062
|
this._cdr = _cdr;
|
|
4640
5063
|
this._zone = _zone;
|
|
5064
|
+
this._overlay = _overlay;
|
|
4641
5065
|
this._platform = _platform;
|
|
4642
|
-
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
5066
|
+
this._viewContainerRef = _viewContainerRef;
|
|
5067
|
+
this.position = [
|
|
5068
|
+
{
|
|
5069
|
+
originX: 'start',
|
|
5070
|
+
originY: 'bottom',
|
|
5071
|
+
overlayX: 'start',
|
|
5072
|
+
overlayY: 'top',
|
|
5073
|
+
},
|
|
5074
|
+
{
|
|
5075
|
+
originX: 'start',
|
|
5076
|
+
originY: 'top',
|
|
5077
|
+
overlayX: 'start',
|
|
5078
|
+
overlayY: 'bottom'
|
|
5079
|
+
}
|
|
5080
|
+
];
|
|
5081
|
+
this._subs = [];
|
|
5082
|
+
//
|
|
5083
|
+
this.openTrigger = 'toggle';
|
|
5084
|
+
//
|
|
5085
|
+
this.closeTrigger = 'clickout';
|
|
5086
|
+
//
|
|
5087
|
+
this.hasBackdrop = false;
|
|
5088
|
+
this.adaptivityEnabled = false;
|
|
5089
|
+
//
|
|
5090
|
+
this._mousePos = { x: 0, y: 0 };
|
|
5091
|
+
this._isScrollAttached = false;
|
|
5092
|
+
//
|
|
5093
|
+
this.onOpened = new EventEmitter();
|
|
5094
|
+
this.onClosed = new EventEmitter();
|
|
4658
5095
|
}
|
|
4659
|
-
get
|
|
4660
|
-
return this.
|
|
5096
|
+
get target() {
|
|
5097
|
+
return this._target;
|
|
4661
5098
|
}
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
5099
|
+
set target(v) {
|
|
5100
|
+
if (v instanceof HTMLElement)
|
|
5101
|
+
this._target = v;
|
|
5102
|
+
else if (v instanceof ElementRef)
|
|
5103
|
+
this._target = v.nativeElement;
|
|
5104
|
+
else if (v instanceof AXBaseComponent)
|
|
5105
|
+
this._target = v._getInnerElement();
|
|
4665
5106
|
}
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
5107
|
+
_emitOnOpenedEvent() {
|
|
5108
|
+
this.onOpened.emit({
|
|
5109
|
+
component: this,
|
|
5110
|
+
htmlElement: this._getHostElement()
|
|
5111
|
+
});
|
|
4669
5112
|
}
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
5113
|
+
_emitOnClosedEvent() {
|
|
5114
|
+
this.onClosed.emit({
|
|
5115
|
+
component: this,
|
|
5116
|
+
htmlElement: this._getHostElement()
|
|
5117
|
+
});
|
|
4674
5118
|
}
|
|
5119
|
+
//
|
|
4675
5120
|
onViewInit() {
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
if (this.isItemDisabled(item)) {
|
|
4685
|
-
return;
|
|
4686
|
-
}
|
|
4687
|
-
if (!this.multiple)
|
|
4688
|
-
this.close();
|
|
4689
|
-
this.toggleSelect(item);
|
|
4690
|
-
this._cdr.detectChanges();
|
|
4691
|
-
}
|
|
4692
|
-
_handleListScroll(e) {
|
|
4693
|
-
const list = e.target;
|
|
4694
|
-
if ((list.scrollTop < list.scrollHeight - list.clientHeight)) {
|
|
4695
|
-
return;
|
|
4696
|
-
}
|
|
4697
|
-
this._fetchData();
|
|
4698
|
-
}
|
|
4699
|
-
_checkForLoadData() {
|
|
4700
|
-
const list = this.listContainer.nativeElement;
|
|
4701
|
-
if (this.loadedCount < this.totalCount && list.scrollHeight < ((list.parentElement.clientHeight) * 1.5)) {
|
|
4702
|
-
this._fetchData();
|
|
4703
|
-
}
|
|
4704
|
-
}
|
|
4705
|
-
_onDataLoaded() {
|
|
4706
|
-
if (this.popover.isOpen) {
|
|
4707
|
-
setTimeout(() => {
|
|
4708
|
-
this._checkForLoadData();
|
|
4709
|
-
this.popover.updatePosition();
|
|
4710
|
-
if (this._forceFocus) {
|
|
4711
|
-
this._focusSelectedItem();
|
|
4712
|
-
this._forceFocus = false;
|
|
4713
|
-
}
|
|
4714
|
-
}, 100);
|
|
4715
|
-
}
|
|
4716
|
-
}
|
|
4717
|
-
_onValueChanged(oldValue, newValue) {
|
|
4718
|
-
super._onValueChanged(oldValue, newValue);
|
|
4719
|
-
}
|
|
4720
|
-
_handleOnRemoveItemClick(e, item) {
|
|
4721
|
-
this.unselectItems(item);
|
|
4722
|
-
e.stopPropagation();
|
|
4723
|
-
}
|
|
4724
|
-
_handleBadgeRemove(e, item) {
|
|
4725
|
-
this.unselectItems(item);
|
|
4726
|
-
e.stopPropagation();
|
|
4727
|
-
this.close();
|
|
4728
|
-
}
|
|
4729
|
-
_handleKeydown(e) {
|
|
4730
|
-
const isLetter = new RegExp(/[a-zA-Z0-9\-]/).test(String.fromCharCode(e.keyCode));
|
|
4731
|
-
if (e.code === 'Backspace' && e.type === 'keydown' &&
|
|
4732
|
-
((this.allowNull === true && this.selectedItems.length > 0) ||
|
|
4733
|
-
(this.allowNull !== true && this.selectedItems.length > 1))) {
|
|
4734
|
-
this.isUserInput = true;
|
|
4735
|
-
this.unselectItems(this.selectedItems.pop());
|
|
4736
|
-
e.preventDefault();
|
|
4737
|
-
return;
|
|
4738
|
-
}
|
|
4739
|
-
else if ((e.code === 'ArrowDown' || e.code === 'ArrowUp' || e.code === 'Space') && !this.popover.isOpen && e.type === 'keydown') {
|
|
4740
|
-
if (this.multiple) {
|
|
4741
|
-
this.open();
|
|
5121
|
+
if (this._target) {
|
|
5122
|
+
if (this.openTrigger === 'mouseover') {
|
|
5123
|
+
const mouseEnter$ = fromEvent(this._target, 'mouseover');
|
|
5124
|
+
this._addSub(mouseEnter$.subscribe(e => {
|
|
5125
|
+
const point = { x: e.clientX, y: e.clientY };
|
|
5126
|
+
if (AXDrawingUtil.isInElementBound(point, this._target))
|
|
5127
|
+
this.open();
|
|
5128
|
+
}));
|
|
4742
5129
|
}
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
this.
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
5130
|
+
if (this.closeTrigger === 'mouseout') {
|
|
5131
|
+
const mouseMove$ = fromEvent(document, 'mousemove');
|
|
5132
|
+
this._addSub(mouseMove$.pipe(throttleTime(50)).subscribe(e => {
|
|
5133
|
+
this._mousePos.x = e.clientX;
|
|
5134
|
+
this._mousePos.y = e.clientY;
|
|
5135
|
+
if (this.isOpen) {
|
|
5136
|
+
setTimeout(() => {
|
|
5137
|
+
if (!_.some([this._target, this._overlayRef.overlayElement], el => _.includes(document.elementsFromPoint(this._mousePos.x, this._mousePos.y), el)))
|
|
5138
|
+
this.close();
|
|
5139
|
+
}, 100);
|
|
5140
|
+
}
|
|
5141
|
+
}));
|
|
5142
|
+
}
|
|
5143
|
+
//
|
|
5144
|
+
if (this.openTrigger === 'click' || this.openTrigger === 'toggle') {
|
|
5145
|
+
const click$ = fromEvent(this._target, 'click');
|
|
5146
|
+
this._addSub(click$.subscribe(e => {
|
|
5147
|
+
this.openTrigger == 'toggle' ? this.toggle() : this.open();
|
|
5148
|
+
}));
|
|
4751
5149
|
}
|
|
4752
|
-
e.preventDefault();
|
|
4753
|
-
return;
|
|
4754
|
-
}
|
|
4755
|
-
else if (isLetter) {
|
|
4756
|
-
this.text = e.key;
|
|
4757
|
-
this.open();
|
|
4758
|
-
e.preventDefault();
|
|
4759
|
-
return;
|
|
4760
5150
|
}
|
|
4761
5151
|
}
|
|
4762
|
-
|
|
5152
|
+
//
|
|
5153
|
+
onDestroy() {
|
|
4763
5154
|
var _a, _b;
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
4778
|
-
else if ((e.code === 'Space' || e.code === 'Enter')) {
|
|
4779
|
-
debugger;
|
|
4780
|
-
e.preventDefault();
|
|
4781
|
-
const focusedItemId = (_b = (_a = this.listContainer.nativeElement.querySelector('.ax-state-focus')) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.id;
|
|
4782
|
-
const focusedItem = _.findLast(this.flatItems, [this.valueField, focusedItemId]);
|
|
4783
|
-
if (focusedItem) {
|
|
4784
|
-
if (this.isItemDisabled(focusedItem)) {
|
|
4785
|
-
return;
|
|
4786
|
-
}
|
|
4787
|
-
if (this.multiple) {
|
|
4788
|
-
this.isUserInput = true;
|
|
4789
|
-
this.toggleSelect(focusedItem);
|
|
4790
|
-
}
|
|
4791
|
-
else {
|
|
4792
|
-
this.isUserInput = true;
|
|
4793
|
-
this.selectItems(focusedItem);
|
|
4794
|
-
this.close();
|
|
4795
|
-
}
|
|
5155
|
+
(_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
|
|
5156
|
+
(_b = this._overlayRef) === null || _b === void 0 ? void 0 : _b.dispose();
|
|
5157
|
+
this._subs.forEach(s => {
|
|
5158
|
+
s === null || s === void 0 ? void 0 : s.unsubscribe();
|
|
5159
|
+
});
|
|
5160
|
+
}
|
|
5161
|
+
_handleKeydownHandler(e) {
|
|
5162
|
+
// if (e.key === 'Enter' && e.type === 'keydown') {
|
|
5163
|
+
// this.toggle();
|
|
5164
|
+
// }
|
|
5165
|
+
if (e.key === 'Escape') {
|
|
5166
|
+
if (this.isOpen) {
|
|
5167
|
+
this.close();
|
|
5168
|
+
e.stopPropagation();
|
|
4796
5169
|
}
|
|
4797
5170
|
}
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
5171
|
+
}
|
|
5172
|
+
toggle() {
|
|
5173
|
+
this.isOpen ? this.close() : this.open();
|
|
5174
|
+
}
|
|
5175
|
+
//
|
|
5176
|
+
close() {
|
|
5177
|
+
var _a;
|
|
5178
|
+
if (!this.isOpen) {
|
|
5179
|
+
return;
|
|
4802
5180
|
}
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
5181
|
+
(_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.detach();
|
|
5182
|
+
this._emitOnClosedEvent();
|
|
5183
|
+
}
|
|
5184
|
+
dispose() {
|
|
5185
|
+
var _a;
|
|
5186
|
+
this.close();
|
|
5187
|
+
(_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
5188
|
+
this._overlayRef = null;
|
|
5189
|
+
}
|
|
5190
|
+
//
|
|
5191
|
+
open() {
|
|
5192
|
+
if (this.isOpen) {
|
|
5193
|
+
return;
|
|
4807
5194
|
}
|
|
5195
|
+
this._ensureOverlayCreated();
|
|
5196
|
+
this._overlayRef.attach(this._templatePortal);
|
|
5197
|
+
this._emitOnOpenedEvent();
|
|
4808
5198
|
}
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
|
|
4813
|
-
|
|
4814
|
-
|
|
5199
|
+
_ensureOverlayCreated() {
|
|
5200
|
+
const targetRef = this._target;
|
|
5201
|
+
if (!targetRef)
|
|
5202
|
+
return;
|
|
5203
|
+
if (!this._overlayRef) {
|
|
5204
|
+
if (this._platform.is('Mobile') && this.adaptivityEnabled) {
|
|
5205
|
+
this._openAsActionsheet();
|
|
4815
5206
|
}
|
|
4816
5207
|
else {
|
|
4817
|
-
this.
|
|
5208
|
+
this._openAsPopover(targetRef);
|
|
4818
5209
|
}
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
5210
|
+
if (this.closeTrigger == 'clickout') {
|
|
5211
|
+
this._addSub(this._overlayRef._outsidePointerEvents.subscribe(c => {
|
|
5212
|
+
const target = c.target;
|
|
5213
|
+
const comElem = targetRef;
|
|
5214
|
+
if (!(comElem.contains(target))) {
|
|
5215
|
+
this.close();
|
|
5216
|
+
}
|
|
5217
|
+
}));
|
|
4822
5218
|
}
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
const list = this.listContainer.nativeElement;
|
|
4831
|
-
const fn = (s) => list.querySelector(s);
|
|
4832
|
-
const itemDiv = fn(`.ax-list-item.ax-state-focus`) || fn(`.ax-list-item.ax-state-selected`) || fn(`.ax-list-item`);
|
|
4833
|
-
let next = (sign == 1 ? itemDiv.nextElementSibling : itemDiv.previousElementSibling);
|
|
4834
|
-
if (next) {
|
|
4835
|
-
this._focusItemElement(next);
|
|
4836
|
-
}
|
|
4837
|
-
else {
|
|
4838
|
-
const parent = itemDiv.closest('.ax-list-item-group');
|
|
4839
|
-
if (parent) {
|
|
4840
|
-
const lis = (_a = (sign == 1 ? parent.nextElementSibling : parent.previousElementSibling)) === null || _a === void 0 ? void 0 : _a.querySelectorAll('li');
|
|
4841
|
-
const a = sign == 1 ? _.first(lis) : _.last(lis);
|
|
4842
|
-
if (a) {
|
|
4843
|
-
this._focusItemElement(a);
|
|
5219
|
+
this._addSub(this._overlayRef.attachments().subscribe(() => {
|
|
5220
|
+
if (!this._isScrollAttached) {
|
|
5221
|
+
this._addSub(this._platform.scroll.subscribe(c => {
|
|
5222
|
+
if (!c.nativeEvent.target.closest('.ax-overlay-pane'))
|
|
5223
|
+
this.updatePosition();
|
|
5224
|
+
}));
|
|
5225
|
+
this._isScrollAttached = true;
|
|
4844
5226
|
}
|
|
4845
|
-
}
|
|
5227
|
+
}));
|
|
5228
|
+
}
|
|
5229
|
+
if (!this._templatePortal) {
|
|
5230
|
+
this._templatePortal = new TemplatePortal(this._baseTemplate, this._viewContainerRef);
|
|
4846
5231
|
}
|
|
4847
5232
|
}
|
|
4848
|
-
|
|
4849
|
-
this.
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
5233
|
+
_openAsPopover(targetRef) {
|
|
5234
|
+
this._overlayRef = this._overlay.create({
|
|
5235
|
+
positionStrategy: this._overlay.position()
|
|
5236
|
+
.flexibleConnectedTo(targetRef)
|
|
5237
|
+
.withPositions(Array.isArray(this.position) ? this.position : [this.position])
|
|
5238
|
+
.withPush(false),
|
|
5239
|
+
disposeOnNavigation: true,
|
|
5240
|
+
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
5241
|
+
maxHeight: 'unset',
|
|
5242
|
+
hasBackdrop: this.hasBackdrop,
|
|
5243
|
+
backdropClass: [this.backdropClass || 'cdk-overlay-transparent-backdrop']
|
|
4856
5244
|
});
|
|
4857
5245
|
}
|
|
4858
|
-
|
|
4859
|
-
this.
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4865
|
-
|
|
4866
|
-
else {
|
|
4867
|
-
c.classList.remove('ax-state-focus');
|
|
5246
|
+
_openAsActionsheet() {
|
|
5247
|
+
this._overlayRef = this._overlay.create({
|
|
5248
|
+
positionStrategy: this._overlay.position().flexibleConnectedTo(document.body).withPositions([
|
|
5249
|
+
{
|
|
5250
|
+
originX: 'center',
|
|
5251
|
+
originY: 'bottom',
|
|
5252
|
+
overlayX: 'center',
|
|
5253
|
+
overlayY: 'bottom'
|
|
4868
5254
|
}
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
5255
|
+
]),
|
|
5256
|
+
disposeOnNavigation: true,
|
|
5257
|
+
panelClass: ['ax-animate-slideInUp', 'ax-animate-faster'],
|
|
5258
|
+
hasBackdrop: true,
|
|
5259
|
+
width: '100%'
|
|
4874
5260
|
});
|
|
4875
5261
|
}
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
let i = 0;
|
|
4879
|
-
if (last) {
|
|
4880
|
-
i = _.findLastIndex(this.flatItems, [this.valueField, last[this.valueField]]);
|
|
4881
|
-
}
|
|
4882
|
-
i += sign;
|
|
4883
|
-
let next = _.nth(this.flatItems, i);
|
|
4884
|
-
while ((next === null || next === void 0 ? void 0 : next.children) && (next === null || next === void 0 ? void 0 : next.children.length)) {
|
|
4885
|
-
i += sign;
|
|
4886
|
-
next = _.nth(this.flatItems, i);
|
|
4887
|
-
}
|
|
4888
|
-
if (next) {
|
|
4889
|
-
this.selectItems(next);
|
|
4890
|
-
}
|
|
4891
|
-
else if (next == null && sign == 1) {
|
|
4892
|
-
this._fetchData();
|
|
4893
|
-
}
|
|
4894
|
-
}
|
|
4895
|
-
_onSearchExprChanged(e) {
|
|
4896
|
-
this.empty();
|
|
4897
|
-
this._forceFocus = true;
|
|
4898
|
-
this._fetchData();
|
|
5262
|
+
get isOpen() {
|
|
5263
|
+
return this._overlayRef ? this._overlayRef.hasAttached() : false;
|
|
4899
5264
|
}
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
this.empty();
|
|
4903
|
-
this._forceFocus = true;
|
|
4904
|
-
this._fetchData();
|
|
5265
|
+
_addSub(sub) {
|
|
5266
|
+
this._subs.push(sub);
|
|
4905
5267
|
}
|
|
4906
|
-
|
|
5268
|
+
updatePosition() {
|
|
4907
5269
|
var _a;
|
|
4908
|
-
|
|
5270
|
+
(_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.updatePosition();
|
|
5271
|
+
this.focus();
|
|
4909
5272
|
}
|
|
4910
5273
|
}
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
], queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n \r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n \r\n </div>\r\n</ax-popover> ", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4915
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerComponent, decorators: [{
|
|
5274
|
+
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 });
|
|
5275
|
+
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 });
|
|
5276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverComponent, decorators: [{
|
|
4916
5277
|
type: Component,
|
|
4917
|
-
args: [{ selector: 'ax-
|
|
4918
|
-
|
|
4919
|
-
], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n \r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n \r\n </div>\r\n</ax-popover> " }]
|
|
4920
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$3.AXPlatform }]; }, propDecorators: { popover: [{
|
|
4921
|
-
type: ViewChild,
|
|
4922
|
-
args: [AXPopoverComponent, { static: true }]
|
|
4923
|
-
}], clearButton: [{
|
|
5278
|
+
args: [{ selector: 'ax-popover', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #baseTemplate>\r\n <ng-content></ng-content>\r\n</ng-template>" }]
|
|
5279
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.Overlay }, { type: i1$4.AXPlatform }, { type: i0.ViewContainerRef }]; }, propDecorators: { target: [{
|
|
4924
5280
|
type: Input
|
|
4925
|
-
}],
|
|
5281
|
+
}], position: [{
|
|
4926
5282
|
type: Input
|
|
4927
|
-
}],
|
|
5283
|
+
}], _baseTemplate: [{
|
|
4928
5284
|
type: ViewChild,
|
|
4929
|
-
args: ['
|
|
4930
|
-
}],
|
|
4931
|
-
type:
|
|
4932
|
-
|
|
4933
|
-
|
|
5285
|
+
args: ['baseTemplate']
|
|
5286
|
+
}], openTrigger: [{
|
|
5287
|
+
type: Input
|
|
5288
|
+
}], closeTrigger: [{
|
|
5289
|
+
type: Input
|
|
5290
|
+
}], hasBackdrop: [{
|
|
5291
|
+
type: Input
|
|
5292
|
+
}], backdropClass: [{
|
|
5293
|
+
type: Input
|
|
5294
|
+
}], adaptivityEnabled: [{
|
|
5295
|
+
type: Input
|
|
5296
|
+
}], onOpened: [{
|
|
5297
|
+
type: Output
|
|
5298
|
+
}], onClosed: [{
|
|
5299
|
+
type: Output
|
|
5300
|
+
}], _handleKeydownHandler: [{
|
|
4934
5301
|
type: HostListener,
|
|
4935
5302
|
args: ['keydown', ['$event']]
|
|
4936
5303
|
}] } });
|
|
4937
5304
|
|
|
5305
|
+
class AXPopoverModule {
|
|
5306
|
+
}
|
|
5307
|
+
AXPopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5308
|
+
AXPopoverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, declarations: [AXPopoverComponent], imports: [CommonModule], exports: [AXPopoverComponent] });
|
|
5309
|
+
AXPopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, providers: [], imports: [[CommonModule]] });
|
|
5310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, decorators: [{
|
|
5311
|
+
type: NgModule,
|
|
5312
|
+
args: [{
|
|
5313
|
+
declarations: [AXPopoverComponent],
|
|
5314
|
+
imports: [CommonModule],
|
|
5315
|
+
exports: [AXPopoverComponent],
|
|
5316
|
+
providers: []
|
|
5317
|
+
}]
|
|
5318
|
+
}] });
|
|
5319
|
+
|
|
5320
|
+
const AXBaseColorPickerMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_ValueComponenetMixin(_TextboxComponenetMixin(AXBaseComponent))));
|
|
4938
5321
|
/**
|
|
4939
|
-
* The
|
|
5322
|
+
* The Button is a component which detects user interaction and triggers a corresponding event
|
|
4940
5323
|
*
|
|
4941
5324
|
* @category Components
|
|
4942
5325
|
*/
|
|
4943
|
-
class
|
|
5326
|
+
class AXColorPickerComponent extends AXBaseColorPickerMixin {
|
|
4944
5327
|
/**
|
|
4945
5328
|
* @ignore
|
|
4946
5329
|
*/
|
|
4947
|
-
constructor(
|
|
4948
|
-
super(
|
|
5330
|
+
constructor(_elementRef, _cdr, _zone, _platform) {
|
|
5331
|
+
super(_elementRef, _cdr);
|
|
5332
|
+
this._elementRef = _elementRef;
|
|
5333
|
+
this._zone = _zone;
|
|
5334
|
+
this._platform = _platform;
|
|
5335
|
+
this._isMobile = false;
|
|
5336
|
+
this._isMobile = this._platform.is('Mobile');
|
|
5337
|
+
this._platform.resize.subscribe(() => {
|
|
5338
|
+
this._isMobile = this._platform.is('Mobile');
|
|
5339
|
+
this.popover.dispose();
|
|
5340
|
+
this._popoverWidth = this._isMobile ? null : this._target.offsetWidth;
|
|
5341
|
+
});
|
|
5342
|
+
}
|
|
5343
|
+
_handleArrowClickEvent(e) {
|
|
5344
|
+
e.nativeEvent.stopPropagation();
|
|
5345
|
+
this.toggle();
|
|
5346
|
+
}
|
|
5347
|
+
_handleInputClickEvent(e) {
|
|
5348
|
+
e.stopPropagation();
|
|
5349
|
+
this.toggle();
|
|
5350
|
+
}
|
|
5351
|
+
onInit() {
|
|
5352
|
+
super.onInit();
|
|
5353
|
+
this._target = this._elementRef.nativeElement;
|
|
5354
|
+
this._popoverTitle = this.placeholder || AXTranslator.get('selectbox.popover.title');
|
|
5355
|
+
}
|
|
5356
|
+
onViewInit() {
|
|
5357
|
+
super.onViewInit();
|
|
5358
|
+
this._popoverWidth = this._isMobile ? null : this._target.offsetWidth;
|
|
5359
|
+
}
|
|
5360
|
+
_onValueChanged(oldValue, newValue) {
|
|
5361
|
+
super._onValueChanged(oldValue, newValue);
|
|
5362
|
+
this.close();
|
|
5363
|
+
}
|
|
5364
|
+
_handlePopupOnOpened(e) {
|
|
5365
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5366
|
+
});
|
|
5367
|
+
}
|
|
5368
|
+
_handlePopupOnClosed(e) {
|
|
5369
|
+
this.focus();
|
|
4949
5370
|
}
|
|
4950
5371
|
}
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
5372
|
+
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 });
|
|
5373
|
+
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: [
|
|
5374
|
+
{ provide: AXClosbaleComponent, useExisting: AXColorPickerComponent }
|
|
5375
|
+
], 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 });
|
|
5376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerComponent, decorators: [{
|
|
4954
5377
|
type: Component,
|
|
4955
|
-
args: [{ selector: 'ax-
|
|
4956
|
-
|
|
5378
|
+
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: [
|
|
5379
|
+
{ provide: AXClosbaleComponent, useExisting: AXColorPickerComponent }
|
|
5380
|
+
], 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>" }]
|
|
5381
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
|
|
5382
|
+
type: ViewChild,
|
|
5383
|
+
args: [AXPopoverComponent, { static: true }]
|
|
5384
|
+
}] } });
|
|
4957
5385
|
|
|
4958
|
-
class
|
|
5386
|
+
class AXLoadingComponent extends AXBaseComponentMixin {
|
|
5387
|
+
/**
|
|
5388
|
+
* @ignore
|
|
5389
|
+
*/
|
|
5390
|
+
constructor(elementRef, cdr) {
|
|
5391
|
+
super(elementRef, cdr);
|
|
5392
|
+
this.visibleChange = new EventEmitter();
|
|
5393
|
+
this.type = 'spinner';
|
|
5394
|
+
}
|
|
5395
|
+
get visible() {
|
|
5396
|
+
return this._visible;
|
|
5397
|
+
}
|
|
5398
|
+
set visible(v) {
|
|
5399
|
+
if (v != this._visible) {
|
|
5400
|
+
this._visible = v;
|
|
5401
|
+
v ? this._getHostElement().classList.remove('ax-hide') : this._getHostElement().classList.add('ax-hide');
|
|
5402
|
+
this.visibleChange.emit(v);
|
|
5403
|
+
}
|
|
5404
|
+
}
|
|
5405
|
+
onInit() {
|
|
5406
|
+
const loading = AXConfig.get(`layout.loading.${this.type}`);
|
|
5407
|
+
this._selectedPortal = new ComponentPortal(loading);
|
|
5408
|
+
this._cdr.markForCheck();
|
|
5409
|
+
}
|
|
5410
|
+
_handleAttched(ref) {
|
|
5411
|
+
ref = ref;
|
|
5412
|
+
if (ref.instance) {
|
|
5413
|
+
ref.instance.text = this.text;
|
|
5414
|
+
}
|
|
5415
|
+
}
|
|
4959
5416
|
}
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
CommonModule,
|
|
4967
|
-
FormsModule,
|
|
4968
|
-
AXButtonModule,
|
|
4969
|
-
AXDecoratorModule,
|
|
4970
|
-
NgxMaskModule.forChild()
|
|
4971
|
-
]] });
|
|
4972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, decorators: [{
|
|
4973
|
-
type: NgModule,
|
|
5417
|
+
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 });
|
|
5418
|
+
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: `
|
|
5419
|
+
<ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
|
|
5420
|
+
`, isInline: true, directives: [{ type: i1$5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingComponent, decorators: [{
|
|
5422
|
+
type: Component,
|
|
4974
5423
|
args: [{
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
exports: [AXTextBoxComponent],
|
|
4983
|
-
declarations: [AXTextBoxComponent],
|
|
4984
|
-
providers: [],
|
|
5424
|
+
selector: 'ax-loading',
|
|
5425
|
+
template: `
|
|
5426
|
+
<ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
|
|
5427
|
+
`,
|
|
5428
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5429
|
+
encapsulation: ViewEncapsulation.None,
|
|
5430
|
+
host: { class: 'ax-loading' }
|
|
4985
5431
|
}]
|
|
4986
|
-
}] }
|
|
5432
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { visibleChange: [{
|
|
5433
|
+
type: Output
|
|
5434
|
+
}], visible: [{
|
|
5435
|
+
type: Input
|
|
5436
|
+
}], type: [{
|
|
5437
|
+
type: Input
|
|
5438
|
+
}], text: [{
|
|
5439
|
+
type: Input
|
|
5440
|
+
}] } });
|
|
4987
5441
|
|
|
4988
5442
|
class AXLoadingSpinnerComponent {
|
|
4989
5443
|
}
|
|
@@ -5081,8 +5535,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
5081
5535
|
args: ['axIsLoading']
|
|
5082
5536
|
}] } });
|
|
5083
5537
|
|
|
5084
|
-
const COMPONENT$
|
|
5085
|
-
const MODULES$
|
|
5538
|
+
const COMPONENT$e = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
|
|
5539
|
+
const MODULES$e = [CommonModule, OverlayModule, PortalModule];
|
|
5086
5540
|
class AXLoadingModule {
|
|
5087
5541
|
constructor() {
|
|
5088
5542
|
AXConfig.set({
|
|
@@ -5096,13 +5550,13 @@ class AXLoadingModule {
|
|
|
5096
5550
|
}
|
|
5097
5551
|
AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5098
5552
|
AXLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] });
|
|
5099
|
-
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$
|
|
5553
|
+
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$e]] });
|
|
5100
5554
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, decorators: [{
|
|
5101
5555
|
type: NgModule,
|
|
5102
5556
|
args: [{
|
|
5103
|
-
declarations: [...COMPONENT$
|
|
5104
|
-
imports: [...MODULES$
|
|
5105
|
-
exports: [...COMPONENT$
|
|
5557
|
+
declarations: [...COMPONENT$e],
|
|
5558
|
+
imports: [...MODULES$e],
|
|
5559
|
+
exports: [...COMPONENT$e],
|
|
5106
5560
|
providers: [],
|
|
5107
5561
|
}]
|
|
5108
5562
|
}], ctorParameters: function () { return []; } });
|
|
@@ -5268,8 +5722,10 @@ AXColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
|
|
|
5268
5722
|
A11yModule,
|
|
5269
5723
|
AXLoadingModule,
|
|
5270
5724
|
AXTranslationModule,
|
|
5271
|
-
AXTextBoxModule
|
|
5272
|
-
|
|
5725
|
+
AXTextBoxModule,
|
|
5726
|
+
AXColorPaletteModule], exports: [AXColorPickerComponent] });
|
|
5727
|
+
AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[
|
|
5728
|
+
CommonModule,
|
|
5273
5729
|
AXCommonModule,
|
|
5274
5730
|
FormsModule,
|
|
5275
5731
|
AXDecoratorModule,
|
|
@@ -5278,12 +5734,14 @@ AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
5278
5734
|
A11yModule,
|
|
5279
5735
|
AXLoadingModule,
|
|
5280
5736
|
AXTranslationModule,
|
|
5281
|
-
AXTextBoxModule
|
|
5737
|
+
AXTextBoxModule,
|
|
5738
|
+
AXColorPaletteModule
|
|
5282
5739
|
]] });
|
|
5283
5740
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerModule, decorators: [{
|
|
5284
5741
|
type: NgModule,
|
|
5285
5742
|
args: [{
|
|
5286
|
-
imports: [
|
|
5743
|
+
imports: [
|
|
5744
|
+
CommonModule,
|
|
5287
5745
|
AXCommonModule,
|
|
5288
5746
|
FormsModule,
|
|
5289
5747
|
AXDecoratorModule,
|
|
@@ -5292,7 +5750,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
5292
5750
|
A11yModule,
|
|
5293
5751
|
AXLoadingModule,
|
|
5294
5752
|
AXTranslationModule,
|
|
5295
|
-
AXTextBoxModule
|
|
5753
|
+
AXTextBoxModule,
|
|
5754
|
+
AXColorPaletteModule
|
|
5296
5755
|
],
|
|
5297
5756
|
exports: [AXColorPickerComponent],
|
|
5298
5757
|
declarations: [AXColorPickerComponent],
|
|
@@ -5345,7 +5804,7 @@ class AXDataListComponent extends AXBaseSelectionValueMixin {
|
|
|
5345
5804
|
}
|
|
5346
5805
|
}
|
|
5347
5806
|
AXDataListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5348
|
-
AXDataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDataListComponent, selector: "ax-datalist", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", items: "items", pageSize: "pageSize", itemTemplate: "itemTemplate", emptyTemplate: "emptyTemplate", loadingTemplate: "loadingTemplate" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-list ax-list-container" }, queries: [{ propertyName: "_contentItemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true, static: true }, { propertyName: "_contentloadingTemplate", first: true, predicate: ["loadingTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "_container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-list-items-container ax-default ax-vertical\" (scroll)=\"_handleListScroll($event)\" #container>\r\n <ng-container *ngFor=\"let item of displayItems;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ item ? _getItemDisplayTextTemplte(item) : 'Loading...'}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>", components: [{ type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$
|
|
5807
|
+
AXDataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDataListComponent, selector: "ax-datalist", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", items: "items", pageSize: "pageSize", itemTemplate: "itemTemplate", emptyTemplate: "emptyTemplate", loadingTemplate: "loadingTemplate" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-list ax-list-container" }, queries: [{ propertyName: "_contentItemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true, static: true }, { propertyName: "_contentloadingTemplate", first: true, predicate: ["loadingTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "_container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-list-items-container ax-default ax-vertical\" (scroll)=\"_handleListScroll($event)\" #container>\r\n <ng-container *ngFor=\"let item of displayItems;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ item ? _getItemDisplayTextTemplte(item) : 'Loading...'}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>", components: [{ type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5349
5808
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListComponent, decorators: [{
|
|
5350
5809
|
type: Component,
|
|
5351
5810
|
args: [{ selector: 'ax-datalist', inputs: ['disabled', 'readonly', 'tabIndex', 'size', 'value', 'items', 'pageSize'], outputs: ['valueChange', 'onValueChanged', 'onBlur', 'onFocus'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-list ax-list-container' }, template: "<div class=\"ax-list-items-container ax-default ax-vertical\" (scroll)=\"_handleListScroll($event)\" #container>\r\n <ng-container *ngFor=\"let item of displayItems;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ item ? _getItemDisplayTextTemplte(item) : 'Loading...'}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>" }]
|
|
@@ -5369,19 +5828,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
5369
5828
|
type: Input
|
|
5370
5829
|
}] } });
|
|
5371
5830
|
|
|
5372
|
-
const COMPONENT$
|
|
5373
|
-
const MODULES$
|
|
5831
|
+
const COMPONENT$d = [AXDataListComponent];
|
|
5832
|
+
const MODULES$d = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
|
|
5374
5833
|
class AXDataListModule {
|
|
5375
5834
|
}
|
|
5376
5835
|
AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5377
5836
|
AXDataListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, declarations: [AXDataListComponent], imports: [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule], exports: [AXDataListComponent] });
|
|
5378
|
-
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$
|
|
5837
|
+
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$d]] });
|
|
5379
5838
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, decorators: [{
|
|
5380
5839
|
type: NgModule,
|
|
5381
5840
|
args: [{
|
|
5382
|
-
declarations: [...COMPONENT$
|
|
5383
|
-
imports: [...MODULES$
|
|
5384
|
-
exports: [...COMPONENT$
|
|
5841
|
+
declarations: [...COMPONENT$d],
|
|
5842
|
+
imports: [...MODULES$d],
|
|
5843
|
+
exports: [...COMPONENT$d],
|
|
5385
5844
|
providers: [],
|
|
5386
5845
|
}]
|
|
5387
5846
|
}] });
|
|
@@ -5534,12 +5993,12 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
5534
5993
|
input.setSelectionRange(start, end);
|
|
5535
5994
|
}
|
|
5536
5995
|
}
|
|
5537
|
-
AXDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$
|
|
5996
|
+
AXDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$4.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
5538
5997
|
AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDatePickerComponent, selector: "ax-date-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format", interface: "interface" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", typeChange: "typeChange", disabledDatesChange: "disabledDatesChange", holidayDatesChange: "holidayDatesChange", onNavigate: "onNavigate", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, providers: [{ provide: AXClosbaleComponent, useExisting: AXDatePickerComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_calendar", first: true, predicate: AXCalendarComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-calendar-options\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }, { type: AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "debounceTime", "name", "checked", "disabled", "tabIndex", "depth", "activeView", "min", "max", "disabledDates", "type", "holidayDates", "interface"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus", "depthChange", "typeChange", "disabledDatesChange", "holidayDatesChange", "onNavigate"] }], directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5539
5998
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatePickerComponent, decorators: [{
|
|
5540
5999
|
type: Component,
|
|
5541
6000
|
args: [{ selector: 'ax-date-picker', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...CALENDAR_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...CALENDAR_OUTPUTS], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXDatePickerComponent }], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-calendar-options\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n\r\n </div>\r\n</ax-popover>" }]
|
|
5542
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$
|
|
6001
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
|
|
5543
6002
|
type: ViewChild,
|
|
5544
6003
|
args: [AXPopoverComponent, { static: true }]
|
|
5545
6004
|
}], _calendar: [{
|
|
@@ -5555,8 +6014,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
5555
6014
|
type: Input
|
|
5556
6015
|
}] } });
|
|
5557
6016
|
|
|
5558
|
-
const COMPONENT$
|
|
5559
|
-
const MODULES$
|
|
6017
|
+
const COMPONENT$c = [AXDatePickerComponent];
|
|
6018
|
+
const MODULES$c = [
|
|
5560
6019
|
CommonModule,
|
|
5561
6020
|
AXCalendarModule,
|
|
5562
6021
|
AXTextBoxModule,
|
|
@@ -5577,13 +6036,13 @@ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
5577
6036
|
AXDecoratorModule,
|
|
5578
6037
|
AXDateTimeModule,
|
|
5579
6038
|
FormsModule], exports: [AXDatePickerComponent] });
|
|
5580
|
-
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$
|
|
6039
|
+
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$c]] });
|
|
5581
6040
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, decorators: [{
|
|
5582
6041
|
type: NgModule,
|
|
5583
6042
|
args: [{
|
|
5584
|
-
declarations: [...COMPONENT$
|
|
5585
|
-
imports: [...MODULES$
|
|
5586
|
-
exports: [...COMPONENT$
|
|
6043
|
+
declarations: [...COMPONENT$c],
|
|
6044
|
+
imports: [...MODULES$c],
|
|
6045
|
+
exports: [...COMPONENT$c],
|
|
5587
6046
|
providers: [],
|
|
5588
6047
|
}]
|
|
5589
6048
|
}] });
|
|
@@ -5615,7 +6074,7 @@ class AXDialogComponent extends AXBaseComponentMixin {
|
|
|
5615
6074
|
}
|
|
5616
6075
|
}
|
|
5617
6076
|
AXDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5618
|
-
AXDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDialogComponent, selector: "ax-dialog", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" tabindex=\"0\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <footer class=\"ax-dialog-footer\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" [submitBehavior]=\"button.submitBehavior\" [cancelBehavior]=\"button.cancelBehavior\" (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\" [color]=\"button.color\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n </footer>\r\n </div>\r\n\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type:
|
|
6077
|
+
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 });
|
|
5619
6078
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogComponent, decorators: [{
|
|
5620
6079
|
type: Component,
|
|
5621
6080
|
args: [{ selector: 'ax-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" tabindex=\"0\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <footer class=\"ax-dialog-footer\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" [submitBehavior]=\"button.submitBehavior\" [cancelBehavior]=\"button.cancelBehavior\" (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\" [color]=\"button.color\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n </footer>\r\n </div>\r\n\r\n</div>" }]
|
|
@@ -5911,19 +6370,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
5911
6370
|
}]
|
|
5912
6371
|
}] });
|
|
5913
6372
|
|
|
5914
|
-
const COMPONENT$
|
|
5915
|
-
const MODULES$
|
|
6373
|
+
const COMPONENT$b = [AXDialogComponent];
|
|
6374
|
+
const MODULES$b = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule];
|
|
5916
6375
|
class AXDialogModule {
|
|
5917
6376
|
}
|
|
5918
6377
|
AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5919
6378
|
AXDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, declarations: [AXDialogComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule], exports: [AXDialogComponent] });
|
|
5920
|
-
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$
|
|
6379
|
+
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$b]] });
|
|
5921
6380
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, decorators: [{
|
|
5922
6381
|
type: NgModule,
|
|
5923
6382
|
args: [{
|
|
5924
|
-
declarations: [...COMPONENT$
|
|
5925
|
-
imports: [...MODULES$
|
|
5926
|
-
exports: [...COMPONENT$
|
|
6383
|
+
declarations: [...COMPONENT$b],
|
|
6384
|
+
imports: [...MODULES$b],
|
|
6385
|
+
exports: [...COMPONENT$b],
|
|
5927
6386
|
providers: [],
|
|
5928
6387
|
}]
|
|
5929
6388
|
}] });
|
|
@@ -6169,57 +6628,77 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
6169
6628
|
type: Input
|
|
6170
6629
|
}] } });
|
|
6171
6630
|
|
|
6172
|
-
const COMPONENT$
|
|
6173
|
-
const MODULES$
|
|
6631
|
+
const COMPONENT$a = [AXInputMaskComponent];
|
|
6632
|
+
const MODULES$a = [CommonModule, NgxMaskModule.forRoot(), IMaskModule];
|
|
6174
6633
|
class AXInputMaskModule {
|
|
6175
6634
|
}
|
|
6176
6635
|
AXInputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6177
|
-
AXInputMaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, declarations: [AXInputMaskComponent], imports: [CommonModule, i1$
|
|
6178
|
-
AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$
|
|
6636
|
+
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] });
|
|
6637
|
+
AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$a]] });
|
|
6179
6638
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, decorators: [{
|
|
6180
6639
|
type: NgModule,
|
|
6181
6640
|
args: [{
|
|
6182
|
-
declarations: [...COMPONENT$
|
|
6183
|
-
imports: [...MODULES$
|
|
6184
|
-
exports: [...COMPONENT$
|
|
6641
|
+
declarations: [...COMPONENT$a],
|
|
6642
|
+
imports: [...MODULES$a],
|
|
6643
|
+
exports: [...COMPONENT$a],
|
|
6185
6644
|
providers: [],
|
|
6186
6645
|
}]
|
|
6187
6646
|
}] });
|
|
6188
6647
|
|
|
6189
|
-
class
|
|
6190
|
-
constructor(
|
|
6191
|
-
super(
|
|
6648
|
+
class AXSearchBoxComponent extends AXBaseComponentMixin {
|
|
6649
|
+
constructor(_elementRef, _cdr, _parent) {
|
|
6650
|
+
super(_elementRef, _cdr);
|
|
6651
|
+
this._parent = _parent;
|
|
6652
|
+
this.placeholder = 'common.search';
|
|
6653
|
+
this.debounceTime = 300;
|
|
6654
|
+
this.searchExp = null;
|
|
6192
6655
|
}
|
|
6193
|
-
|
|
6194
|
-
|
|
6656
|
+
_onSearchExprChanged(e) {
|
|
6657
|
+
if (this._parent && this._parent.search) {
|
|
6658
|
+
this._parent.search(e.value);
|
|
6659
|
+
}
|
|
6195
6660
|
}
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
this.
|
|
6661
|
+
focus() {
|
|
6662
|
+
var _a;
|
|
6663
|
+
(_a = this._textbox) === null || _a === void 0 ? void 0 : _a.focus();
|
|
6199
6664
|
}
|
|
6200
6665
|
}
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type:
|
|
6666
|
+
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 });
|
|
6667
|
+
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 });
|
|
6668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, decorators: [{
|
|
6204
6669
|
type: Component,
|
|
6205
|
-
args: [{ selector: 'ax-
|
|
6206
|
-
}], ctorParameters: function () {
|
|
6670
|
+
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>" }]
|
|
6671
|
+
}], ctorParameters: function () {
|
|
6672
|
+
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXSearchableComponent, decorators: [{
|
|
6673
|
+
type: Optional
|
|
6674
|
+
}, {
|
|
6675
|
+
type: Inject,
|
|
6676
|
+
args: [AXSearchableComponent]
|
|
6677
|
+
}] }];
|
|
6678
|
+
}, propDecorators: { _textbox: [{
|
|
6679
|
+
type: ViewChild,
|
|
6680
|
+
args: [AXTextBoxComponent]
|
|
6681
|
+
}], placeholder: [{
|
|
6682
|
+
type: Input
|
|
6683
|
+
}], debounceTime: [{
|
|
6684
|
+
type: Input
|
|
6685
|
+
}], searchExp: [{
|
|
6207
6686
|
type: Input
|
|
6208
6687
|
}] } });
|
|
6209
6688
|
|
|
6210
|
-
const COMPONENT$
|
|
6211
|
-
const MODULES$
|
|
6212
|
-
class
|
|
6689
|
+
const COMPONENT$9 = [AXSearchBoxComponent];
|
|
6690
|
+
const MODULES$9 = [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule];
|
|
6691
|
+
class AXSearchBoxModule {
|
|
6213
6692
|
}
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type:
|
|
6693
|
+
AXSearchBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6694
|
+
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] });
|
|
6695
|
+
AXSearchBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, providers: [], imports: [[...MODULES$9]] });
|
|
6696
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, decorators: [{
|
|
6218
6697
|
type: NgModule,
|
|
6219
6698
|
args: [{
|
|
6220
|
-
declarations: [...COMPONENT$
|
|
6221
|
-
imports: [...MODULES$
|
|
6222
|
-
exports: [...COMPONENT$
|
|
6699
|
+
declarations: [...COMPONENT$9],
|
|
6700
|
+
imports: [...MODULES$9],
|
|
6701
|
+
exports: [...COMPONENT$9],
|
|
6223
6702
|
providers: [],
|
|
6224
6703
|
}]
|
|
6225
6704
|
}] });
|
|
@@ -6234,6 +6713,19 @@ class AXMenuComponent extends AXBaseMenuMixin {
|
|
|
6234
6713
|
super(elementRef, cdr);
|
|
6235
6714
|
this.elementRef = elementRef;
|
|
6236
6715
|
this.cdr = cdr;
|
|
6716
|
+
this._forceFocus = false;
|
|
6717
|
+
window.addEventListener('click', (e) => {
|
|
6718
|
+
if (this.displayItems.length > 0) {
|
|
6719
|
+
const target = document.querySelector('UL');
|
|
6720
|
+
if (e.target != target) {
|
|
6721
|
+
this.displayItems.forEach((element) => {
|
|
6722
|
+
element.isActive = false;
|
|
6723
|
+
element.isOpen = false;
|
|
6724
|
+
});
|
|
6725
|
+
cdr.detectChanges();
|
|
6726
|
+
}
|
|
6727
|
+
}
|
|
6728
|
+
});
|
|
6237
6729
|
}
|
|
6238
6730
|
get emptyTemplate() {
|
|
6239
6731
|
return this._contentEmptyTemplate;
|
|
@@ -6290,347 +6782,123 @@ class AXMenuComponent extends AXBaseMenuMixin {
|
|
|
6290
6782
|
e.stopPropagation();
|
|
6291
6783
|
e.preventDefault();
|
|
6292
6784
|
}
|
|
6293
|
-
_onMouseEnter(e, item) {
|
|
6294
|
-
var _a, _b;
|
|
6295
|
-
if (this.isLoading) {
|
|
6296
|
-
return;
|
|
6297
|
-
}
|
|
6298
|
-
if (!item[this.disableField] && this.openMode === 'hover') {
|
|
6299
|
-
if (((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 || item[this.hasChildField]) {
|
|
6300
|
-
if (((_b = item.children) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
6301
|
-
this._closeChild(item.children);
|
|
6302
|
-
}
|
|
6303
|
-
item.isOpen = true;
|
|
6304
|
-
}
|
|
6305
|
-
this.onMenuItemClick.emit({
|
|
6306
|
-
component: this,
|
|
6307
|
-
item: item,
|
|
6308
|
-
nativeEvent: e,
|
|
6309
|
-
});
|
|
6310
|
-
if (item.isOpen && item[this.hasChildField] && !item.children) {
|
|
6311
|
-
item.isLoading = true;
|
|
6312
|
-
this._fetchData(item[this.valueField]).then(() => {
|
|
6313
|
-
item.isLoading = false;
|
|
6314
|
-
});
|
|
6315
|
-
}
|
|
6316
|
-
}
|
|
6317
|
-
e.stopPropagation();
|
|
6318
|
-
e.preventDefault();
|
|
6319
|
-
}
|
|
6320
|
-
_onMouseLeave(item) {
|
|
6321
|
-
var _a, _b;
|
|
6322
|
-
if (!item[this.disableField] && this.openMode === 'hover') {
|
|
6323
|
-
if (((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 || item[this.hasChildField]) {
|
|
6324
|
-
if (((_b = item.children) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
6325
|
-
this._closeChild(item.children);
|
|
6326
|
-
}
|
|
6327
|
-
item.isOpen = false;
|
|
6328
|
-
}
|
|
6329
|
-
}
|
|
6330
|
-
}
|
|
6331
|
-
_notActive(items) {
|
|
6332
|
-
items.forEach((element) => {
|
|
6333
|
-
var _a;
|
|
6334
|
-
element.isActive = false;
|
|
6335
|
-
if (((_a = element.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
6336
|
-
this._notActive(element.children);
|
|
6337
|
-
}
|
|
6338
|
-
});
|
|
6339
|
-
}
|
|
6340
|
-
_closeChild(items) {
|
|
6341
|
-
items.forEach((element) => {
|
|
6342
|
-
var _a;
|
|
6343
|
-
element.isOpen = false;
|
|
6344
|
-
if (((_a = element.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
6345
|
-
this._closeChild(element.children);
|
|
6346
|
-
}
|
|
6347
|
-
});
|
|
6348
|
-
}
|
|
6349
|
-
_setParentNode(item, parentId) {
|
|
6350
|
-
item.forEach((element) => {
|
|
6351
|
-
element.parentId = parentId;
|
|
6352
|
-
});
|
|
6353
|
-
}
|
|
6354
|
-
_getDirection() {
|
|
6355
|
-
if (this.direction === 'horizontal') {
|
|
6356
|
-
return 'horizontal-mode';
|
|
6357
|
-
}
|
|
6358
|
-
else {
|
|
6359
|
-
return 'vertical-mode';
|
|
6360
|
-
}
|
|
6361
|
-
}
|
|
6362
|
-
}
|
|
6363
|
-
AXMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6364
|
-
AXMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXMenuComponent, selector: "ax-menu", inputs: { disabled: "disabled", tabIndex: "tabIndex", textField: "textField", valueField: "valueField", items: "items", id: "id", parentId: "parentId", iconField: "iconField", tooltip: "tooltip", isOpen: "isOpen", isActive: "isActive", visibleField: "visibleField", disableField: "disableField", hasChildField: "hasChildField", openMode: "openMode", direction: "direction" }, outputs: { onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-menu" }, queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\" (mouseleave)=\"_onMouseLeave(item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div *ngIf=\"item?.children?.length > 0 || item[hasChildField]\" class=\"ax-menu-end-side\">\r\n <ax-icon *ngIf=\"!item.isLoading\" [ngClass]=\"{'active-icon': item.isOpen}\" class=\"ax-ic-chevron\">\r\n </ax-icon>\r\n <ax-loading *ngIf=\"item.isLoading\">\r\n </ax-loading>\r\n </div>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>", components: [{ type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "trans": i1$3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, decorators: [{
|
|
6366
|
-
type: Component,
|
|
6367
|
-
args: [{ selector: 'ax-menu', inputs: [...INTERACTIVE_INPUTS, ...BASEMENU_INPUTS], outputs: [...INTERACTIVE_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-menu' }, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\" (mouseleave)=\"_onMouseLeave(item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div *ngIf=\"item?.children?.length > 0 || item[hasChildField]\" class=\"ax-menu-end-side\">\r\n <ax-icon *ngIf=\"!item.isLoading\" [ngClass]=\"{'active-icon': item.isOpen}\" class=\"ax-ic-chevron\">\r\n </ax-icon>\r\n <ax-loading *ngIf=\"item.isLoading\">\r\n </ax-loading>\r\n </div>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>" }]
|
|
6368
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _contentEmptyTemplate: [{
|
|
6369
|
-
type: ContentChild,
|
|
6370
|
-
args: ['emptyTemplate']
|
|
6371
|
-
}] } });
|
|
6372
|
-
|
|
6373
|
-
const COMPONENT$a = [AXMenuComponent];
|
|
6374
|
-
const MODULES$a = [CommonModule, AXDecoratorModule];
|
|
6375
|
-
class AXMenuModule {
|
|
6376
|
-
}
|
|
6377
|
-
AXMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6378
|
-
AXMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, declarations: [AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule,
|
|
6379
|
-
AXTranslationModule,
|
|
6380
|
-
AXPopoverModule], exports: [AXMenuComponent] });
|
|
6381
|
-
AXMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, providers: [], imports: [[
|
|
6382
|
-
...MODULES$a,
|
|
6383
|
-
AXLoadingModule,
|
|
6384
|
-
AXTranslationModule,
|
|
6385
|
-
AXPopoverModule,
|
|
6386
|
-
]] });
|
|
6387
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, decorators: [{
|
|
6388
|
-
type: NgModule,
|
|
6389
|
-
args: [{
|
|
6390
|
-
declarations: [...COMPONENT$a],
|
|
6391
|
-
imports: [
|
|
6392
|
-
...MODULES$a,
|
|
6393
|
-
AXLoadingModule,
|
|
6394
|
-
AXTranslationModule,
|
|
6395
|
-
AXPopoverModule,
|
|
6396
|
-
],
|
|
6397
|
-
exports: [...COMPONENT$a],
|
|
6398
|
-
providers: [],
|
|
6399
|
-
}]
|
|
6400
|
-
}] });
|
|
6401
|
-
|
|
6402
|
-
/**
|
|
6403
|
-
* The NumberBox is a component which detects user interaction and triggers a corresponding event
|
|
6404
|
-
*
|
|
6405
|
-
* @category Components
|
|
6406
|
-
*/
|
|
6407
|
-
class AXNumberBoxComponent extends AXBaseTextBoxMixin {
|
|
6408
|
-
/**
|
|
6409
|
-
* @ignore
|
|
6410
|
-
*/
|
|
6411
|
-
constructor(elementRef, cdr) {
|
|
6412
|
-
super(elementRef, cdr);
|
|
6413
|
-
this.cdr = cdr;
|
|
6414
|
-
this._padDecimalZeros = false;
|
|
6415
|
-
/**
|
|
6416
|
-
* Specifies the value that is used to increment or decrement the **Integer** part of number
|
|
6417
|
-
*/
|
|
6418
|
-
this.step = 1;
|
|
6419
|
-
this._decimals = 0;
|
|
6420
|
-
/**
|
|
6421
|
-
* Specifies the value that is used to increment or decrement the **Deciaml** part of number
|
|
6422
|
-
*/
|
|
6423
|
-
this.decimalStep = 'auto';
|
|
6424
|
-
/**
|
|
6425
|
-
* Specifies whether the Up and Down spin buttons will be rendered or not
|
|
6426
|
-
*/
|
|
6427
|
-
this.showSpinButtons = true;
|
|
6428
|
-
this._minValue = Number.MIN_SAFE_INTEGER;
|
|
6429
|
-
this._maxValue = Number.MAX_SAFE_INTEGER;
|
|
6430
|
-
}
|
|
6431
|
-
/**
|
|
6432
|
-
* A character value that specifies the separator character.
|
|
6433
|
-
*/
|
|
6434
|
-
get thousandsSeparator() {
|
|
6435
|
-
return this._thousandsSeparator;
|
|
6436
|
-
}
|
|
6437
|
-
set thousandsSeparator(v) {
|
|
6438
|
-
this._setOption({
|
|
6439
|
-
name: "thousandsSeparator",
|
|
6440
|
-
value: v !== null && v !== void 0 ? v : '',
|
|
6441
|
-
});
|
|
6442
|
-
}
|
|
6443
|
-
/**
|
|
6444
|
-
* A character value that specifies the separator character.
|
|
6445
|
-
*/
|
|
6446
|
-
get padDecimalZeros() {
|
|
6447
|
-
return this._padDecimalZeros;
|
|
6448
|
-
}
|
|
6449
|
-
set padDecimalZeros(v) {
|
|
6450
|
-
this._setOption({
|
|
6451
|
-
name: "padDecimalZeros",
|
|
6452
|
-
value: v,
|
|
6453
|
-
});
|
|
6454
|
-
}
|
|
6455
|
-
/**
|
|
6456
|
-
* Specifies the number of decimals that the user can enter
|
|
6457
|
-
*/
|
|
6458
|
-
get decimals() {
|
|
6459
|
-
return this._decimals;
|
|
6460
|
-
}
|
|
6461
|
-
set decimals(v) {
|
|
6462
|
-
this._setOption({
|
|
6463
|
-
name: "decimals",
|
|
6464
|
-
value: v !== null && v !== void 0 ? v : 0,
|
|
6465
|
-
});
|
|
6466
|
-
}
|
|
6467
|
-
/**
|
|
6468
|
-
* Specifies the smallest value that is valid
|
|
6469
|
-
*/
|
|
6470
|
-
get minValue() {
|
|
6471
|
-
return this._minValue;
|
|
6472
|
-
}
|
|
6473
|
-
set minValue(v) {
|
|
6474
|
-
this._setOption({
|
|
6475
|
-
name: "minValue",
|
|
6476
|
-
value: v != null ? Number(v) : Number.MIN_SAFE_INTEGER,
|
|
6477
|
-
});
|
|
6478
|
-
}
|
|
6479
|
-
/**
|
|
6480
|
-
* Specifies the greatest value that is valid
|
|
6481
|
-
*/
|
|
6482
|
-
get maxValue() {
|
|
6483
|
-
return this._maxValue;
|
|
6484
|
-
}
|
|
6485
|
-
set maxValue(v) {
|
|
6486
|
-
this._setOption({
|
|
6487
|
-
name: "maxValue",
|
|
6488
|
-
value: v != null ? Number(v) : Number.MAX_SAFE_INTEGER,
|
|
6489
|
-
});
|
|
6490
|
-
}
|
|
6491
|
-
onViewInit() {
|
|
6492
|
-
super.onViewInit();
|
|
6493
|
-
this._updateMask();
|
|
6494
|
-
}
|
|
6495
|
-
_onOptionChanged(option) {
|
|
6496
|
-
super._onOptionChanged(option);
|
|
6497
|
-
this._updateMask();
|
|
6498
|
-
}
|
|
6499
|
-
_updateMask() {
|
|
6500
|
-
var _a, _b, _c, _d;
|
|
6501
|
-
if (!this._maskObj) {
|
|
6502
|
-
this._maskObj = IMask.createMask({
|
|
6503
|
-
mask: Number,
|
|
6504
|
-
min: this.minValue,
|
|
6505
|
-
max: this.maxValue,
|
|
6506
|
-
thousandsSeparator: this.thousandsSeparator || '',
|
|
6507
|
-
scale: this.decimals,
|
|
6508
|
-
radix: '.',
|
|
6509
|
-
padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
|
|
6510
|
-
});
|
|
6511
|
-
}
|
|
6512
|
-
else {
|
|
6513
|
-
this._maskObj.updateOptions({
|
|
6514
|
-
min: this.minValue,
|
|
6515
|
-
max: this.maxValue,
|
|
6516
|
-
thousandsSeparator: this.thousandsSeparator || '',
|
|
6517
|
-
scale: this.decimals,
|
|
6518
|
-
radix: '.',
|
|
6519
|
-
padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
|
|
6520
|
-
});
|
|
6521
|
-
}
|
|
6522
|
-
(_b = (_a = this._maskDirective) === null || _a === void 0 ? void 0 : _a.maskRef) === null || _b === void 0 ? void 0 : _b.updateValue();
|
|
6523
|
-
(_d = (_c = this._maskDirective) === null || _c === void 0 ? void 0 : _c.maskRef) === null || _d === void 0 ? void 0 : _d.updateControl();
|
|
6524
|
-
}
|
|
6525
|
-
_handleOnKeydownEvent(e) {
|
|
6526
|
-
const ignore = () => {
|
|
6527
|
-
e.preventDefault();
|
|
6528
|
-
e.stopPropagation();
|
|
6529
|
-
};
|
|
6530
|
-
const input = e.target;
|
|
6531
|
-
const valStr = input.value;
|
|
6532
|
-
const decimalPointIndex = valStr.indexOf('.');
|
|
6533
|
-
const _cursorPos = input.selectionStart;
|
|
6534
|
-
if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
|
6535
|
-
if (decimalPointIndex > 0 && _cursorPos > decimalPointIndex && this.decimals > 0) {
|
|
6536
|
-
e.key === 'ArrowDown' ? this.decimalStepDown() : this.decimalStepUp();
|
|
6785
|
+
_onMouseEnter(e, item) {
|
|
6786
|
+
var _a, _b;
|
|
6787
|
+
if (this.isLoading) {
|
|
6788
|
+
return;
|
|
6789
|
+
}
|
|
6790
|
+
if (!item[this.disableField] && this.openMode === 'hover') {
|
|
6791
|
+
if (((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 || item[this.hasChildField]) {
|
|
6792
|
+
if (((_b = item.children) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
6793
|
+
this._closeChild(item.children);
|
|
6794
|
+
}
|
|
6795
|
+
item.isOpen = true;
|
|
6537
6796
|
}
|
|
6538
|
-
|
|
6539
|
-
|
|
6797
|
+
this.onMenuItemClick.emit({
|
|
6798
|
+
component: this,
|
|
6799
|
+
item: item,
|
|
6800
|
+
nativeEvent: e,
|
|
6801
|
+
});
|
|
6802
|
+
if (item.isOpen && item[this.hasChildField] && !item.children) {
|
|
6803
|
+
item.isLoading = true;
|
|
6804
|
+
this._fetchData(item[this.valueField]).then(() => {
|
|
6805
|
+
item.isLoading = false;
|
|
6806
|
+
});
|
|
6540
6807
|
}
|
|
6541
|
-
ignore();
|
|
6542
|
-
setTimeout(() => {
|
|
6543
|
-
input.setSelectionRange(_cursorPos, _cursorPos);
|
|
6544
|
-
}, 5);
|
|
6545
6808
|
}
|
|
6546
|
-
|
|
6809
|
+
e.stopPropagation();
|
|
6810
|
+
e.preventDefault();
|
|
6547
6811
|
}
|
|
6548
|
-
|
|
6549
|
-
|
|
6812
|
+
_onMouseLeave(item) {
|
|
6813
|
+
var _a, _b;
|
|
6814
|
+
if (!item[this.disableField] && this.openMode === 'hover') {
|
|
6815
|
+
if (((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 || item[this.hasChildField]) {
|
|
6816
|
+
if (((_b = item.children) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
6817
|
+
this._closeChild(item.children);
|
|
6818
|
+
}
|
|
6819
|
+
item.isOpen = false;
|
|
6820
|
+
}
|
|
6821
|
+
}
|
|
6550
6822
|
}
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6823
|
+
_notActive(items) {
|
|
6824
|
+
items.forEach((element) => {
|
|
6825
|
+
var _a;
|
|
6826
|
+
element.isActive = false;
|
|
6827
|
+
if (((_a = element.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
6828
|
+
this._notActive(element.children);
|
|
6829
|
+
}
|
|
6830
|
+
});
|
|
6558
6831
|
}
|
|
6559
|
-
|
|
6560
|
-
|
|
6832
|
+
_closeChild(items) {
|
|
6833
|
+
items.forEach((element) => {
|
|
6834
|
+
var _a;
|
|
6835
|
+
element.isOpen = false;
|
|
6836
|
+
if (((_a = element.children) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
6837
|
+
this._closeChild(element.children);
|
|
6838
|
+
}
|
|
6839
|
+
});
|
|
6561
6840
|
}
|
|
6562
|
-
|
|
6563
|
-
|
|
6841
|
+
_setParentNode(item, parentId) {
|
|
6842
|
+
item.forEach((element) => {
|
|
6843
|
+
element.parentId = parentId;
|
|
6844
|
+
});
|
|
6564
6845
|
}
|
|
6565
|
-
|
|
6566
|
-
|
|
6846
|
+
_onSearchExprChanged(e) {
|
|
6847
|
+
var _a;
|
|
6848
|
+
// this.empty();
|
|
6849
|
+
this._forceFocus = true;
|
|
6850
|
+
this._fetchData(null, (_a = this._searchBox) === null || _a === void 0 ? void 0 : _a.searchExp);
|
|
6567
6851
|
}
|
|
6568
|
-
|
|
6569
|
-
|
|
6852
|
+
_getDirection() {
|
|
6853
|
+
if (this.direction === 'horizontal') {
|
|
6854
|
+
return 'horizontal-mode';
|
|
6855
|
+
}
|
|
6856
|
+
else {
|
|
6857
|
+
return 'vertical-mode';
|
|
6858
|
+
}
|
|
6570
6859
|
}
|
|
6571
6860
|
}
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type:
|
|
6861
|
+
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 });
|
|
6862
|
+
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 });
|
|
6863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, decorators: [{
|
|
6575
6864
|
type: Component,
|
|
6576
|
-
args: [{ selector: 'ax-
|
|
6577
|
-
|
|
6578
|
-
'readonly',
|
|
6579
|
-
'tabIndex',
|
|
6580
|
-
'size',
|
|
6581
|
-
'value',
|
|
6582
|
-
...TEXTBOX_INPUTS,
|
|
6583
|
-
], outputs: [
|
|
6584
|
-
'valueChange',
|
|
6585
|
-
'onValueChanged',
|
|
6586
|
-
'onBlur',
|
|
6587
|
-
'onFocus',
|
|
6588
|
-
...TEXTBOX_OUTPUT,
|
|
6589
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-editor-container' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" \r\n [attr.placeholder]=\"placeholder\" \r\n [imask]=\"_maskObj\" \r\n [unmask]=\"'typed'\"\r\n [attr.min]=\"minValue\"\r\n [attr.max]=\"maxValue\" \r\n [class.ax-state-disabled]=\"disabled\" \r\n [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" \r\n [readonly]=\"readonly\" \r\n [tabindex]=\"tabIndex\" \r\n [(ngModel)]=\"value\"\r\n (focus)=\"_emitOnFocusEvent($event)\" \r\n (blur)=\"_emitOnFocusEvent($event)\" \r\n (keydown)=\"_handleOnKeydownEvent($event)\"\r\n [attr.autocomplete]=\"autoComplete\">\r\n\r\n<div class=\"ax-number-box-arrows\" *ngIf=\"showSpinButtons && !(disabled || readonly)\">\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax-rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,-1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax--rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n</div>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>" }]
|
|
6590
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { thousandsSeparator: [{
|
|
6591
|
-
type: Input
|
|
6592
|
-
}], padDecimalZeros: [{
|
|
6593
|
-
type: Input
|
|
6594
|
-
}], step: [{
|
|
6595
|
-
type: Input
|
|
6596
|
-
}], decimals: [{
|
|
6597
|
-
type: Input
|
|
6598
|
-
}], decimalStep: [{
|
|
6599
|
-
type: Input
|
|
6600
|
-
}], showSpinButtons: [{
|
|
6601
|
-
type: Input
|
|
6602
|
-
}], minValue: [{
|
|
6603
|
-
type: Input
|
|
6604
|
-
}], maxValue: [{
|
|
6605
|
-
type: Input
|
|
6606
|
-
}], _maskDirective: [{
|
|
6865
|
+
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>" }]
|
|
6866
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
|
|
6607
6867
|
type: ViewChild,
|
|
6608
|
-
args: [
|
|
6868
|
+
args: [AXPopoverComponent, { static: true }]
|
|
6869
|
+
}], _contentEmptyTemplate: [{
|
|
6870
|
+
type: ContentChild,
|
|
6871
|
+
args: ['emptyTemplate']
|
|
6872
|
+
}], _searchBox: [{
|
|
6873
|
+
type: ContentChild,
|
|
6874
|
+
args: [AXSearchBoxComponent, { static: true }]
|
|
6609
6875
|
}] } });
|
|
6610
6876
|
|
|
6611
|
-
const COMPONENT$
|
|
6612
|
-
const MODULES$
|
|
6613
|
-
|
|
6614
|
-
FormsModule,
|
|
6615
|
-
AXButtonModule,
|
|
6616
|
-
AXDecoratorModule,
|
|
6617
|
-
IMaskModule
|
|
6618
|
-
];
|
|
6619
|
-
class AXNumberBoxModule {
|
|
6877
|
+
const COMPONENT$8 = [AXMenuComponent];
|
|
6878
|
+
const MODULES$8 = [CommonModule, AXDecoratorModule];
|
|
6879
|
+
class AXMenuModule {
|
|
6620
6880
|
}
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6881
|
+
AXMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6882
|
+
AXMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, declarations: [AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule,
|
|
6883
|
+
AXTranslationModule,
|
|
6884
|
+
AXPopoverModule], exports: [AXMenuComponent] });
|
|
6885
|
+
AXMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, providers: [], imports: [[
|
|
6886
|
+
...MODULES$8,
|
|
6887
|
+
AXLoadingModule,
|
|
6888
|
+
AXTranslationModule,
|
|
6889
|
+
AXPopoverModule,
|
|
6890
|
+
]] });
|
|
6891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, decorators: [{
|
|
6629
6892
|
type: NgModule,
|
|
6630
6893
|
args: [{
|
|
6631
|
-
declarations: [...COMPONENT$
|
|
6632
|
-
imports: [
|
|
6633
|
-
|
|
6894
|
+
declarations: [...COMPONENT$8],
|
|
6895
|
+
imports: [
|
|
6896
|
+
...MODULES$8,
|
|
6897
|
+
AXLoadingModule,
|
|
6898
|
+
AXTranslationModule,
|
|
6899
|
+
AXPopoverModule,
|
|
6900
|
+
],
|
|
6901
|
+
exports: [...COMPONENT$8],
|
|
6634
6902
|
providers: [],
|
|
6635
6903
|
}]
|
|
6636
6904
|
}] });
|
|
@@ -6686,8 +6954,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
6686
6954
|
type: Input
|
|
6687
6955
|
}] } });
|
|
6688
6956
|
|
|
6689
|
-
const COMPONENT$
|
|
6690
|
-
const MODULES$
|
|
6957
|
+
const COMPONENT$7 = [AXPasswordBoxComponent];
|
|
6958
|
+
const MODULES$7 = [
|
|
6691
6959
|
CommonModule,
|
|
6692
6960
|
FormsModule,
|
|
6693
6961
|
AXButtonModule,
|
|
@@ -6700,13 +6968,13 @@ AXPasswordBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
|
|
|
6700
6968
|
FormsModule,
|
|
6701
6969
|
AXButtonModule,
|
|
6702
6970
|
AXDecoratorModule], exports: [AXPasswordBoxComponent] });
|
|
6703
|
-
AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$
|
|
6971
|
+
AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$7]] });
|
|
6704
6972
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, decorators: [{
|
|
6705
6973
|
type: NgModule,
|
|
6706
6974
|
args: [{
|
|
6707
|
-
declarations: [...COMPONENT$
|
|
6708
|
-
imports: [...MODULES$
|
|
6709
|
-
exports: [...COMPONENT$
|
|
6975
|
+
declarations: [...COMPONENT$7],
|
|
6976
|
+
imports: [...MODULES$7],
|
|
6977
|
+
exports: [...COMPONENT$7],
|
|
6710
6978
|
providers: [],
|
|
6711
6979
|
}]
|
|
6712
6980
|
}] });
|
|
@@ -6812,12 +7080,12 @@ class AXPopupComponent extends AXBaseComponentMixin {
|
|
|
6812
7080
|
}
|
|
6813
7081
|
onFullScreen() { }
|
|
6814
7082
|
}
|
|
6815
|
-
AXPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: AXLoadingService }, { token: i1$
|
|
6816
|
-
AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <div cdkDragHandle class=\"ax-popup-header-container\">\r\n <ax-header *ngIf=\"showHeader\">\r\n <ax-title [text]=\"title\"></ax-title>\r\n <ax-close-button *ngIf=\"showCloseButton\"></ax-close-button>\r\n </ax-header>\r\n </div>\r\n <div class=\"ax-popup-main-container\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </div>\r\n <div class=\"ax-popup-footer-container\"></div>\r\n </div>\r\n</div>", components: [{ type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type:
|
|
7083
|
+
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 });
|
|
7084
|
+
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 });
|
|
6817
7085
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupComponent, decorators: [{
|
|
6818
7086
|
type: Component,
|
|
6819
7087
|
args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <div cdkDragHandle class=\"ax-popup-header-container\">\r\n <ax-header *ngIf=\"showHeader\">\r\n <ax-title [text]=\"title\"></ax-title>\r\n <ax-close-button *ngIf=\"showCloseButton\"></ax-close-button>\r\n </ax-header>\r\n </div>\r\n <div class=\"ax-popup-main-container\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </div>\r\n <div class=\"ax-popup-footer-container\"></div>\r\n </div>\r\n</div>" }]
|
|
6820
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i1$
|
|
7088
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i1$4.AXPlatform }]; }, propDecorators: { onKeydownHandler: [{
|
|
6821
7089
|
type: HostListener,
|
|
6822
7090
|
args: ['keydown.escape', ['$event']]
|
|
6823
7091
|
}] } });
|
|
@@ -6913,19 +7181,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
6913
7181
|
args: [{ providedIn: 'root' }]
|
|
6914
7182
|
}], ctorParameters: function () { return [{ type: AXOverlayService }]; } });
|
|
6915
7183
|
|
|
6916
|
-
const COMPONENT$
|
|
6917
|
-
const MODULES$
|
|
7184
|
+
const COMPONENT$6 = [AXPopupComponent];
|
|
7185
|
+
const MODULES$6 = [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule];
|
|
6918
7186
|
class AXPopupModule {
|
|
6919
7187
|
}
|
|
6920
7188
|
AXPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6921
7189
|
AXPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, declarations: [AXPopupComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule], exports: [AXPopupComponent] });
|
|
6922
|
-
AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$
|
|
7190
|
+
AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$6]] });
|
|
6923
7191
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, decorators: [{
|
|
6924
7192
|
type: NgModule,
|
|
6925
7193
|
args: [{
|
|
6926
|
-
declarations: [...COMPONENT$
|
|
6927
|
-
imports: [...MODULES$
|
|
6928
|
-
exports: [...COMPONENT$
|
|
7194
|
+
declarations: [...COMPONENT$6],
|
|
7195
|
+
imports: [...MODULES$6],
|
|
7196
|
+
exports: [...COMPONENT$6],
|
|
6929
7197
|
providers: [],
|
|
6930
7198
|
}]
|
|
6931
7199
|
}] });
|
|
@@ -7003,19 +7271,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
7003
7271
|
args: [{ selector: 'ax-radio', inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-radio' }, template: "<div class=\"ax-flex ax-items-start\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id\" class=\"ax-radio\" type=\"radio\" [(ngModel)]=\"value\" [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <ng-content select=\"ax-label\"></ng-content>\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n </div>\r\n</div>\r\n<ng-content select=\"ax-validation-rule\"></ng-content>" }]
|
|
7004
7272
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
7005
7273
|
|
|
7006
|
-
const COMPONENT$
|
|
7007
|
-
const MODULES$
|
|
7274
|
+
const COMPONENT$5 = [AXRadioComponent];
|
|
7275
|
+
const MODULES$5 = [CommonModule, FormsModule];
|
|
7008
7276
|
class AXRadioModule {
|
|
7009
7277
|
}
|
|
7010
7278
|
AXRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7011
7279
|
AXRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, declarations: [AXRadioComponent], imports: [CommonModule, FormsModule], exports: [AXRadioComponent] });
|
|
7012
|
-
AXRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, providers: [], imports: [[...MODULES$
|
|
7280
|
+
AXRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, providers: [], imports: [[...MODULES$5]] });
|
|
7013
7281
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, decorators: [{
|
|
7014
7282
|
type: NgModule,
|
|
7015
7283
|
args: [{
|
|
7016
|
-
declarations: [...COMPONENT$
|
|
7017
|
-
imports: [...MODULES$
|
|
7018
|
-
exports: [...COMPONENT$
|
|
7284
|
+
declarations: [...COMPONENT$5],
|
|
7285
|
+
imports: [...MODULES$5],
|
|
7286
|
+
exports: [...COMPONENT$5],
|
|
7019
7287
|
providers: [],
|
|
7020
7288
|
}]
|
|
7021
7289
|
}] });
|
|
@@ -7033,19 +7301,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
7033
7301
|
args: [{ selector: 'ax-range-slider', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-range-slider' }, template: "<input type=\"range\" min=\"1\" max=\"100\" value=\"50\" class=\"ax-range-slider-input\">" }]
|
|
7034
7302
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
7035
7303
|
|
|
7036
|
-
const COMPONENT$
|
|
7037
|
-
const MODULES$
|
|
7304
|
+
const COMPONENT$4 = [AXRangeSliderComponent];
|
|
7305
|
+
const MODULES$4 = [CommonModule];
|
|
7038
7306
|
class AXRangeSliderModule {
|
|
7039
7307
|
}
|
|
7040
7308
|
AXRangeSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7041
7309
|
AXRangeSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, declarations: [AXRangeSliderComponent], imports: [CommonModule], exports: [AXRangeSliderComponent] });
|
|
7042
|
-
AXRangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, providers: [], imports: [[...MODULES$
|
|
7310
|
+
AXRangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, providers: [], imports: [[...MODULES$4]] });
|
|
7043
7311
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, decorators: [{
|
|
7044
7312
|
type: NgModule,
|
|
7045
7313
|
args: [{
|
|
7046
|
-
declarations: [...COMPONENT$
|
|
7047
|
-
imports: [...MODULES$
|
|
7048
|
-
exports: [...COMPONENT$
|
|
7314
|
+
declarations: [...COMPONENT$4],
|
|
7315
|
+
imports: [...MODULES$4],
|
|
7316
|
+
exports: [...COMPONENT$4],
|
|
7049
7317
|
providers: [],
|
|
7050
7318
|
}]
|
|
7051
7319
|
}] });
|
|
@@ -7137,64 +7405,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
7137
7405
|
}]
|
|
7138
7406
|
}] });
|
|
7139
7407
|
|
|
7140
|
-
class AXSearchBoxComponent extends AXBaseComponentMixin {
|
|
7141
|
-
constructor(_elementRef, _cdr, _parent) {
|
|
7142
|
-
super(_elementRef, _cdr);
|
|
7143
|
-
this._parent = _parent;
|
|
7144
|
-
this.placeholder = 'common.search';
|
|
7145
|
-
this.debounceTime = 300;
|
|
7146
|
-
this.searchExp = null;
|
|
7147
|
-
}
|
|
7148
|
-
_onSearchExprChanged(e) {
|
|
7149
|
-
if (this._parent && this._parent.search) {
|
|
7150
|
-
this._parent.search(e.value);
|
|
7151
|
-
}
|
|
7152
|
-
}
|
|
7153
|
-
focus() {
|
|
7154
|
-
var _a;
|
|
7155
|
-
(_a = this._textbox) === null || _a === void 0 ? void 0 : _a.focus();
|
|
7156
|
-
}
|
|
7157
|
-
}
|
|
7158
|
-
AXSearchBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXSearchableComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
7159
|
-
AXSearchBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXSearchBoxComponent, selector: "ax-search-box", inputs: { placeholder: "placeholder", debounceTime: "debounceTime", searchExp: "searchExp" }, viewQueries: [{ propertyName: "_textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\">\r\n </ax-icon>\r\n </ax-prefix>\r\n</ax-text-box>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "placeholder", "maxLength", "type", "autoComplete"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], pipes: { "trans": i1$3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, decorators: [{
|
|
7161
|
-
type: Component,
|
|
7162
|
-
args: [{ selector: 'ax-search-box', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\">\r\n </ax-icon>\r\n </ax-prefix>\r\n</ax-text-box>" }]
|
|
7163
|
-
}], ctorParameters: function () {
|
|
7164
|
-
return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXSearchableComponent, decorators: [{
|
|
7165
|
-
type: Optional
|
|
7166
|
-
}, {
|
|
7167
|
-
type: Inject,
|
|
7168
|
-
args: [AXSearchableComponent]
|
|
7169
|
-
}] }];
|
|
7170
|
-
}, propDecorators: { _textbox: [{
|
|
7171
|
-
type: ViewChild,
|
|
7172
|
-
args: [AXTextBoxComponent]
|
|
7173
|
-
}], placeholder: [{
|
|
7174
|
-
type: Input
|
|
7175
|
-
}], debounceTime: [{
|
|
7176
|
-
type: Input
|
|
7177
|
-
}], searchExp: [{
|
|
7178
|
-
type: Input
|
|
7179
|
-
}] } });
|
|
7180
|
-
|
|
7181
|
-
const COMPONENT$4 = [AXSearchBoxComponent];
|
|
7182
|
-
const MODULES$4 = [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule];
|
|
7183
|
-
class AXSearchBoxModule {
|
|
7184
|
-
}
|
|
7185
|
-
AXSearchBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7186
|
-
AXSearchBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, declarations: [AXSearchBoxComponent], imports: [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule], exports: [AXSearchBoxComponent] });
|
|
7187
|
-
AXSearchBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, providers: [], imports: [[...MODULES$4]] });
|
|
7188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, decorators: [{
|
|
7189
|
-
type: NgModule,
|
|
7190
|
-
args: [{
|
|
7191
|
-
declarations: [...COMPONENT$4],
|
|
7192
|
-
imports: [...MODULES$4],
|
|
7193
|
-
exports: [...COMPONENT$4],
|
|
7194
|
-
providers: [],
|
|
7195
|
-
}]
|
|
7196
|
-
}] });
|
|
7197
|
-
|
|
7198
7408
|
/**
|
|
7199
7409
|
* The Button is a component which detects user interaction and triggers a corresponding event
|
|
7200
7410
|
*
|
|
@@ -7464,6 +7674,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
7464
7674
|
}
|
|
7465
7675
|
}
|
|
7466
7676
|
_onSearchExprChanged(e) {
|
|
7677
|
+
debugger;
|
|
7467
7678
|
this.empty();
|
|
7468
7679
|
this._forceFocus = true;
|
|
7469
7680
|
this._fetchData();
|
|
@@ -7479,18 +7690,18 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
7479
7690
|
super._fetchData({ searchQuery: (_a = this._searchBox) === null || _a === void 0 ? void 0 : _a.searchExp });
|
|
7480
7691
|
}
|
|
7481
7692
|
}
|
|
7482
|
-
AXSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSelectBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$
|
|
7693
|
+
AXSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSelectBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$4.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
7483
7694
|
AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", pageSize: "pageSize", valueField: "valueField", textField: "textField", items: "items", disabledField: "disabledField", disabledCallback: "disabledCallback", multiple: "multiple", selectionMode: "selectionMode", clearButton: "clearButton", checkbox: "checkbox" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", valueChanged: "valueChanged" }, host: { listeners: { "keydown": "_handleKeydown($event)" }, classAttribute: "ax-editor-container ax-drop-down" }, providers: [
|
|
7484
7695
|
{ provide: AXClosbaleComponent, useExisting: AXSelectBoxComponent },
|
|
7485
7696
|
{ provide: AXSearchableComponent, useExisting: AXSelectBoxComponent }
|
|
7486
|
-
], queries: [{ propertyName: "_searchBox", first: true, predicate: AXSearchBoxComponent, descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\" >\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title [text]=\"_popoverTitle\"></ax-title>\r\n <ax-close-button [icon]=\"multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'\"></ax-close-button>\r\n </ax-header>\r\n <div class=\"ax-p-2\" [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\">\r\n <ng-content select=\"ax-search-box\" ></ng-content>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>", components: [{ type: AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7697
|
+
], 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 });
|
|
7487
7698
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
|
|
7488
7699
|
type: Component,
|
|
7489
7700
|
args: [{ selector: 'ax-select-box', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...DATALIST_INPUTS, ...SELECTION_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...SELECTION_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
7490
7701
|
{ provide: AXClosbaleComponent, useExisting: AXSelectBoxComponent },
|
|
7491
7702
|
{ provide: AXSearchableComponent, useExisting: AXSelectBoxComponent }
|
|
7492
7703
|
], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\" >\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title [text]=\"_popoverTitle\"></ax-title>\r\n <ax-close-button [icon]=\"multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'\"></ax-close-button>\r\n </ax-header>\r\n <div class=\"ax-p-2\" [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\">\r\n <ng-content select=\"ax-search-box\" ></ng-content>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>" }]
|
|
7493
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$
|
|
7704
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
|
|
7494
7705
|
type: ViewChild,
|
|
7495
7706
|
args: [AXPopoverComponent, { static: true }]
|
|
7496
7707
|
}], _searchBox: [{
|
|
@@ -8833,5 +9044,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
8833
9044
|
* Generated bundle index. Do not edit.
|
|
8834
9045
|
*/
|
|
8835
9046
|
|
|
8836
|
-
export { AXActionSheetComponent, AXActionSheetItemComponent, AXActionSheetModule, AXAlertButtonComponent, AXAlertComponent, AXAlertModule, AXAvatarComponent, AXAvatarGroup, AXAvatarMixin, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseAlertMixin, AXBaseBadgeMixin, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBaseMenuMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTabItemMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXBreadCrumbsComponent, AXBreadCrumbsItemComponent, AXBreadcrumbsModule, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXClosbaleComponent, AXCollapseComponent, AXCollapseGroupComponent, AXCollapseModule, AXColorPickerComponent, AXColorPickerModule, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorCloseButtonComponent, AXDecoratorContentComponent, AXDecoratorFooterComponent, AXDecoratorHeaderComponent, AXDecoratorIconComponent, AXDecoratorModule, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorTitleComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXInfiniteScrollerDirective, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXOverlayService, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPickerComponent, AXPickerModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXProgressBarComponent, AXProgressBarModule, AXRadioComponent, AXRadioModule, AXRangeChangedEvent, AXRangeSliderComponent, AXRangeSliderModule, AXRatingComponent, AXRatingModule, AXResponsiveDirective, AXResultComponent, AXResultModule, AXSearchBoxComponent, AXSearchBoxModule, AXSearchableComponent, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTextareaComponent, AXTextareaModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXTreeViewComponent, AXTreeViewModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
|
|
9047
|
+
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 };
|
|
8837
9048
|
//# sourceMappingURL=acorex-components.mjs.map
|