@acorex/components 5.3.3 → 5.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/base/components.class.mjs +8 -1
- package/esm2020/lib/base/mixin/base-menu-mixin.class.mjs +6 -3
- package/esm2020/lib/base/mixin/datalist-component.class.mjs +17 -6
- package/esm2020/lib/calendar/calendar.component.mjs +1 -3
- package/esm2020/lib/color-palette/color-palette-input.component.mjs +67 -0
- package/esm2020/lib/color-palette/color-palette-picker.component.mjs +17 -0
- package/esm2020/lib/color-palette/color-palette-preview.component.mjs +36 -0
- package/esm2020/lib/color-palette/color-palette-swatches.component.mjs +261 -0
- package/esm2020/lib/color-palette/color-palette.class.mjs +10 -0
- package/esm2020/lib/color-palette/color-palette.component.mjs +46 -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 -265
- package/esm2020/lib/color-picker/color-picker.module.mjs +12 -6
- package/esm2020/lib/form/form.component.mjs +8 -5
- package/esm2020/lib/menu/menu.component.mjs +33 -7
- package/esm2020/lib/searchbox/searchbox.component.mjs +13 -7
- package/esm2020/lib/searchbox/searchbox.module.mjs +4 -3
- package/esm2020/lib/selectbox/selectbox.component.mjs +16 -14
- package/esm2020/lib/validation/validation-rule.widget.mjs +17 -11
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/acorex-components.mjs +1446 -1185
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +1409 -1152
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/base/components.class.d.ts +8 -0
- 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 +15 -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.class.d.ts +12 -0
- package/lib/color-palette/color-palette.component.d.ts +18 -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 +159 -35
- package/lib/color-picker/color-picker.module.d.ts +2 -1
- package/lib/form/form.component.d.ts +1 -1
- package/lib/menu/menu.component.d.ts +8 -2
- package/lib/searchbox/searchbox.component.d.ts +1 -0
- package/lib/searchbox/searchbox.module.d.ts +2 -1
- package/lib/selectbox/selectbox.component.d.ts +3 -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 } 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,
|
|
7
|
+
import * as i1$4 from '@acorex/core';
|
|
8
|
+
import { AXObjectUtil, AXConfig, AXDateTime, AXDateTimeRange, AXDateTimeModule, AXColorUtil, AXDrawingUtil, AXTranslationModule, AXTranslator, AXStringUtil } from '@acorex/core';
|
|
9
9
|
import { Subscription, Subject, fromEvent, merge, asyncScheduler, BehaviorSubject } from 'rxjs';
|
|
10
10
|
import { debounceTime, distinctUntilChanged, map, pairwise, filter, startWith, exhaustMap, throttleTime, observeOn, finalize } from 'rxjs/operators';
|
|
11
|
-
import * as i1$
|
|
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 i7 from '@angular/cdk/a11y';
|
|
26
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
|
24
27
|
import * as i3 from '@angular/cdk/drag-drop';
|
|
25
28
|
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
26
|
-
import IMask from 'imask';
|
|
27
|
-
import * as i5 from 'angular-imask';
|
|
28
|
-
import { IMaskModule, IMaskDirective } from 'angular-imask';
|
|
29
29
|
|
|
30
30
|
var _AXBaseComponent_elementRef;
|
|
31
31
|
class AXBaseComponent {
|
|
@@ -194,14 +194,17 @@ function _BaseMenuComponentMixin(Base) {
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
_fetchData(parentId) {
|
|
197
|
+
_fetchData(parentId, searchText) {
|
|
198
198
|
return new Promise((resolve) => {
|
|
199
199
|
if (__classPrivateFieldGet(this, _isLoading, "f")) {
|
|
200
200
|
return;
|
|
201
201
|
}
|
|
202
202
|
if (__classPrivateFieldGet(this, _items, "f")) {
|
|
203
203
|
__classPrivateFieldSet(this, _isLoading, true, "f");
|
|
204
|
-
__classPrivateFieldGet(this, _items, "f").call(this, {
|
|
204
|
+
__classPrivateFieldGet(this, _items, "f").call(this, {
|
|
205
|
+
parentId: parentId,
|
|
206
|
+
searchQuery: searchText,
|
|
207
|
+
})
|
|
205
208
|
.then((c) => {
|
|
206
209
|
if (Array.isArray(c)) {
|
|
207
210
|
if (parentId) {
|
|
@@ -481,7 +484,17 @@ function _DatalistComponenetMixin(Base) {
|
|
|
481
484
|
return __classPrivateFieldGet(this, _isLoading, "f");
|
|
482
485
|
}
|
|
483
486
|
_formatData(v) {
|
|
484
|
-
return _.unionBy(v.map((o, i) => {
|
|
487
|
+
// return _.unionBy(v.map((o, i) => {
|
|
488
|
+
// if (typeof o == 'object')
|
|
489
|
+
// return o
|
|
490
|
+
// else {
|
|
491
|
+
// const no: any = {};
|
|
492
|
+
// no[this.valueField] = o;
|
|
493
|
+
// no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
|
494
|
+
// return no;
|
|
495
|
+
// }
|
|
496
|
+
// }), this.valueField);
|
|
497
|
+
return v.map((o, i) => {
|
|
485
498
|
if (typeof o == 'object')
|
|
486
499
|
return o;
|
|
487
500
|
else {
|
|
@@ -490,16 +503,17 @@ function _DatalistComponenetMixin(Base) {
|
|
|
490
503
|
no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
|
491
504
|
return no;
|
|
492
505
|
}
|
|
493
|
-
})
|
|
506
|
+
});
|
|
494
507
|
}
|
|
495
508
|
_fetchData(opts) {
|
|
496
|
-
|
|
509
|
+
const skip = __classPrivateFieldGet(this, _currentPage, "f") * this.pageSize, take = this.pageSize;
|
|
510
|
+
if ((this.loadedCount >= this.totalCount && this.totalCount != 0) || __classPrivateFieldGet(this, _isLoading, "f") || !__classPrivateFieldGet(this, _isLazy, "f") || (skip > this.totalCount)) {
|
|
497
511
|
return;
|
|
498
512
|
}
|
|
499
513
|
if (__classPrivateFieldGet(this, _items, "f")) {
|
|
500
514
|
__classPrivateFieldSet(this, _isLoading, true, "f");
|
|
501
515
|
const fetchFn = __classPrivateFieldGet(this, _items, "f");
|
|
502
|
-
fetchFn({ skip
|
|
516
|
+
fetchFn({ skip, take, searchQuery: opts?.searchQuery }).then(c => {
|
|
503
517
|
var _a;
|
|
504
518
|
if (Array.isArray(c)) {
|
|
505
519
|
__classPrivateFieldSet(this, _loadedItems, this._formatData(c), "f");
|
|
@@ -507,7 +521,7 @@ function _DatalistComponenetMixin(Base) {
|
|
|
507
521
|
}
|
|
508
522
|
else {
|
|
509
523
|
__classPrivateFieldSet(this, _totalItems, c.total || c.items?.length || 0, "f");
|
|
510
|
-
__classPrivateFieldSet(this, _loadedItems, __classPrivateFieldGet(this, _loadedItems, "f").concat(this._formatData(c.items)), "f");
|
|
524
|
+
__classPrivateFieldSet(this, _loadedItems, [...new Set(__classPrivateFieldGet(this, _loadedItems, "f").concat(this._formatData(c.items)))], "f");
|
|
511
525
|
__classPrivateFieldSet(this, _currentPage, (_a = __classPrivateFieldGet(this, _currentPage, "f"), _a++, _a), "f");
|
|
512
526
|
}
|
|
513
527
|
this._cdr.markForCheck();
|
|
@@ -1205,6 +1219,13 @@ AXSearchableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", ve
|
|
|
1205
1219
|
AXSearchableComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchableComponent });
|
|
1206
1220
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchableComponent, decorators: [{
|
|
1207
1221
|
type: Injectable
|
|
1222
|
+
}] });
|
|
1223
|
+
class AXValuableComponent {
|
|
1224
|
+
}
|
|
1225
|
+
AXValuableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXValuableComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1226
|
+
AXValuableComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXValuableComponent });
|
|
1227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXValuableComponent, decorators: [{
|
|
1228
|
+
type: Injectable
|
|
1208
1229
|
}] });
|
|
1209
1230
|
|
|
1210
1231
|
/**
|
|
@@ -1854,17 +1875,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
1854
1875
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; } });
|
|
1855
1876
|
|
|
1856
1877
|
const COMPONENT$o = [AXDrawerComponent, AXDrawerContainerComponent];
|
|
1857
|
-
const MODULES$
|
|
1878
|
+
const MODULES$p = [CommonModule];
|
|
1858
1879
|
class AXDrawerModule {
|
|
1859
1880
|
}
|
|
1860
1881
|
AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1861
1882
|
AXDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, declarations: [AXDrawerComponent, AXDrawerContainerComponent], imports: [CommonModule], exports: [AXDrawerComponent, AXDrawerContainerComponent] });
|
|
1862
|
-
AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$
|
|
1883
|
+
AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$p]] });
|
|
1863
1884
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDrawerModule, decorators: [{
|
|
1864
1885
|
type: NgModule,
|
|
1865
1886
|
args: [{
|
|
1866
1887
|
declarations: [...COMPONENT$o],
|
|
1867
|
-
imports: [...MODULES$
|
|
1888
|
+
imports: [...MODULES$p],
|
|
1868
1889
|
exports: [...COMPONENT$o],
|
|
1869
1890
|
providers: [],
|
|
1870
1891
|
}]
|
|
@@ -2283,7 +2304,7 @@ const COMPONENT$n = [
|
|
|
2283
2304
|
AXDecoratorTitleComponent,
|
|
2284
2305
|
AXDecoratorCloseButtonComponent
|
|
2285
2306
|
];
|
|
2286
|
-
const MODULES$
|
|
2307
|
+
const MODULES$o = [CommonModule];
|
|
2287
2308
|
class AXDecoratorModule {
|
|
2288
2309
|
}
|
|
2289
2310
|
AXDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2304,12 +2325,12 @@ AXDecoratorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
|
|
|
2304
2325
|
AXDecoratorIconComponent,
|
|
2305
2326
|
AXDecoratorTitleComponent,
|
|
2306
2327
|
AXDecoratorCloseButtonComponent] });
|
|
2307
|
-
AXDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, providers: [], imports: [[...MODULES$
|
|
2328
|
+
AXDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, providers: [], imports: [[...MODULES$o]] });
|
|
2308
2329
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDecoratorModule, decorators: [{
|
|
2309
2330
|
type: NgModule,
|
|
2310
2331
|
args: [{
|
|
2311
2332
|
declarations: [...COMPONENT$n],
|
|
2312
|
-
imports: [...MODULES$
|
|
2333
|
+
imports: [...MODULES$o],
|
|
2313
2334
|
exports: [...COMPONENT$n],
|
|
2314
2335
|
providers: [],
|
|
2315
2336
|
}]
|
|
@@ -2320,7 +2341,7 @@ const COMPONENT$m = [
|
|
|
2320
2341
|
AXButtonItemComponent,
|
|
2321
2342
|
AXButtonGroupComponent,
|
|
2322
2343
|
];
|
|
2323
|
-
const MODULES$
|
|
2344
|
+
const MODULES$n = [CommonModule, AXDecoratorModule];
|
|
2324
2345
|
class AXButtonModule {
|
|
2325
2346
|
}
|
|
2326
2347
|
AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -2329,11 +2350,11 @@ AXButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
|
|
|
2329
2350
|
AXButtonGroupComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXButtonComponent,
|
|
2330
2351
|
AXButtonItemComponent,
|
|
2331
2352
|
AXButtonGroupComponent] });
|
|
2332
|
-
AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$
|
|
2353
|
+
AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$n]] });
|
|
2333
2354
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXButtonModule, decorators: [{
|
|
2334
2355
|
type: NgModule,
|
|
2335
2356
|
args: [{
|
|
2336
|
-
imports: [MODULES$
|
|
2357
|
+
imports: [MODULES$n],
|
|
2337
2358
|
exports: [COMPONENT$m],
|
|
2338
2359
|
declarations: [COMPONENT$m],
|
|
2339
2360
|
providers: [],
|
|
@@ -2531,19 +2552,19 @@ const COMPONENT$l = [
|
|
|
2531
2552
|
AXAlertComponent,
|
|
2532
2553
|
AXAlertButtonComponent
|
|
2533
2554
|
];
|
|
2534
|
-
const MODULES$
|
|
2555
|
+
const MODULES$m = [CommonModule, AXDecoratorModule];
|
|
2535
2556
|
class AXAlertModule {
|
|
2536
2557
|
}
|
|
2537
2558
|
AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2538
2559
|
AXAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent,
|
|
2539
2560
|
AXAlertButtonComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXAlertComponent,
|
|
2540
2561
|
AXAlertButtonComponent] });
|
|
2541
|
-
AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$
|
|
2562
|
+
AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$m]] });
|
|
2542
2563
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAlertModule, decorators: [{
|
|
2543
2564
|
type: NgModule,
|
|
2544
2565
|
args: [{
|
|
2545
2566
|
declarations: [...COMPONENT$l],
|
|
2546
|
-
imports: [...MODULES$
|
|
2567
|
+
imports: [...MODULES$m],
|
|
2547
2568
|
exports: [...COMPONENT$l],
|
|
2548
2569
|
providers: [],
|
|
2549
2570
|
}]
|
|
@@ -2602,17 +2623,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
2602
2623
|
}] } });
|
|
2603
2624
|
|
|
2604
2625
|
const COMPONENT$k = [AXAvatarComponent, AXAvatarGroup];
|
|
2605
|
-
const MODULES$
|
|
2626
|
+
const MODULES$l = [CommonModule];
|
|
2606
2627
|
class AXAvatarModule {
|
|
2607
2628
|
}
|
|
2608
2629
|
AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2609
2630
|
AXAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent, AXAvatarGroup], imports: [CommonModule], exports: [AXAvatarComponent, AXAvatarGroup] });
|
|
2610
|
-
AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$
|
|
2631
|
+
AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$l]] });
|
|
2611
2632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXAvatarModule, decorators: [{
|
|
2612
2633
|
type: NgModule,
|
|
2613
2634
|
args: [{
|
|
2614
2635
|
declarations: [...COMPONENT$k],
|
|
2615
|
-
imports: [...MODULES$
|
|
2636
|
+
imports: [...MODULES$l],
|
|
2616
2637
|
exports: [...COMPONENT$k],
|
|
2617
2638
|
providers: [],
|
|
2618
2639
|
}]
|
|
@@ -2643,17 +2664,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
2643
2664
|
}] } });
|
|
2644
2665
|
|
|
2645
2666
|
const COMPONENT$j = [AXBadgeComponent];
|
|
2646
|
-
const MODULES$
|
|
2667
|
+
const MODULES$k = [CommonModule];
|
|
2647
2668
|
class AXBadgeModule {
|
|
2648
2669
|
}
|
|
2649
2670
|
AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2650
2671
|
AXBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, declarations: [AXBadgeComponent], imports: [CommonModule], exports: [AXBadgeComponent] });
|
|
2651
|
-
AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$
|
|
2672
|
+
AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$k]] });
|
|
2652
2673
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXBadgeModule, decorators: [{
|
|
2653
2674
|
type: NgModule,
|
|
2654
2675
|
args: [{
|
|
2655
2676
|
declarations: [...COMPONENT$j],
|
|
2656
|
-
imports: [...MODULES$
|
|
2677
|
+
imports: [...MODULES$k],
|
|
2657
2678
|
exports: [...COMPONENT$j],
|
|
2658
2679
|
providers: [],
|
|
2659
2680
|
}]
|
|
@@ -3373,7 +3394,6 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
|
3373
3394
|
return date.dayOfWeek == 7 || date.dayOfWeek == 1;
|
|
3374
3395
|
}
|
|
3375
3396
|
_generatePickerItems(view) {
|
|
3376
|
-
debugger;
|
|
3377
3397
|
switch (view) {
|
|
3378
3398
|
case 'year':
|
|
3379
3399
|
this._pickerYears = _.range(2000, 2050, 1);
|
|
@@ -3395,7 +3415,6 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
|
3395
3415
|
}
|
|
3396
3416
|
}
|
|
3397
3417
|
_handlePickerChange(item, view) {
|
|
3398
|
-
debugger;
|
|
3399
3418
|
if (!item)
|
|
3400
3419
|
return;
|
|
3401
3420
|
const date = this._viewRange.startTime;
|
|
@@ -4094,17 +4113,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
4094
4113
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXCarouselComponent }]; } });
|
|
4095
4114
|
|
|
4096
4115
|
const COMPONENT$i = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
|
|
4097
|
-
const MODULES$
|
|
4116
|
+
const MODULES$j = [CommonModule];
|
|
4098
4117
|
class AXCarouselModule {
|
|
4099
4118
|
}
|
|
4100
4119
|
AXCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4101
4120
|
AXCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, declarations: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent], imports: [CommonModule], exports: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent] });
|
|
4102
|
-
AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$
|
|
4121
|
+
AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$j]] });
|
|
4103
4122
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCarouselModule, decorators: [{
|
|
4104
4123
|
type: NgModule,
|
|
4105
4124
|
args: [{
|
|
4106
4125
|
declarations: [...COMPONENT$i],
|
|
4107
|
-
imports: [...MODULES$
|
|
4126
|
+
imports: [...MODULES$j],
|
|
4108
4127
|
exports: [...COMPONENT$i],
|
|
4109
4128
|
providers: [],
|
|
4110
4129
|
}]
|
|
@@ -4126,17 +4145,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
4126
4145
|
}] });
|
|
4127
4146
|
|
|
4128
4147
|
const COMPONENT$h = [AXCalendarComponent];
|
|
4129
|
-
const MODULES$
|
|
4148
|
+
const MODULES$i = [CommonModule, AXButtonModule, AXDecoratorModule, AXDateTimeModule, AXPickerModule];
|
|
4130
4149
|
class AXCalendarModule {
|
|
4131
4150
|
}
|
|
4132
4151
|
AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4133
4152
|
AXCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, declarations: [AXCalendarComponent], imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXDateTimeModule, AXPickerModule], exports: [AXCalendarComponent] });
|
|
4134
|
-
AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$
|
|
4153
|
+
AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$i]] });
|
|
4135
4154
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCalendarModule, decorators: [{
|
|
4136
4155
|
type: NgModule,
|
|
4137
4156
|
args: [{
|
|
4138
4157
|
declarations: [...COMPONENT$h],
|
|
4139
|
-
imports: [...MODULES$
|
|
4158
|
+
imports: [...MODULES$i],
|
|
4140
4159
|
exports: [...COMPONENT$h],
|
|
4141
4160
|
providers: [],
|
|
4142
4161
|
}]
|
|
@@ -4192,774 +4211,1242 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
4192
4211
|
}]
|
|
4193
4212
|
}] });
|
|
4194
4213
|
|
|
4195
|
-
class
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
this.
|
|
4209
|
-
this.
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
this.isCollapsed = !this.isCollapsed;
|
|
4214
|
+
class AXColorComponent {
|
|
4215
|
+
}
|
|
4216
|
+
AXColorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4217
|
+
AXColorComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorComponent });
|
|
4218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorComponent, decorators: [{
|
|
4219
|
+
type: Injectable
|
|
4220
|
+
}] });
|
|
4221
|
+
|
|
4222
|
+
class AXColorPalettePreviewComponent extends AXBaseComponent {
|
|
4223
|
+
constructor(_elementRef, _cdr, _parent) {
|
|
4224
|
+
super(_elementRef, _cdr);
|
|
4225
|
+
this._parent = _parent;
|
|
4226
|
+
_parent?._onInternalColorChanged$.subscribe(e => {
|
|
4227
|
+
this._colorCode = AXColorUtil.to(e.color, e.mode);
|
|
4228
|
+
this._getHostElement().style.backgroundColor = e.color;
|
|
4229
|
+
const color = AXColorUtil.toHex(e.color);
|
|
4230
|
+
const ratio = AXColorUtil.contrastToWhite(color);
|
|
4231
|
+
this._getHostElement().style.color = !(ratio > 2.0) ? '#000' : '#fff';
|
|
4232
|
+
});
|
|
4215
4233
|
}
|
|
4234
|
+
ngOnInit() { }
|
|
4216
4235
|
}
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type:
|
|
4236
|
+
AXColorPalettePreviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePreviewComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXColorComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4237
|
+
AXColorPalettePreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXColorPalettePreviewComponent, selector: "ax-color-palette-preview", usesInheritance: true, ngImport: i0, template: `{{_colorCode}}`, isInline: true, encapsulation: i0.ViewEncapsulation.None });
|
|
4238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePreviewComponent, decorators: [{
|
|
4220
4239
|
type: Component,
|
|
4221
|
-
args: [{
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4240
|
+
args: [{
|
|
4241
|
+
selector: 'ax-color-palette-preview',
|
|
4242
|
+
template: `{{_colorCode}}`,
|
|
4243
|
+
encapsulation: ViewEncapsulation.None
|
|
4244
|
+
}]
|
|
4245
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorComponent, decorators: [{
|
|
4246
|
+
type: Optional
|
|
4247
|
+
}, {
|
|
4248
|
+
type: Inject,
|
|
4249
|
+
args: [AXColorComponent]
|
|
4250
|
+
}] }]; } });
|
|
4232
4251
|
|
|
4233
|
-
class
|
|
4234
|
-
constructor(
|
|
4235
|
-
super(
|
|
4236
|
-
this.
|
|
4237
|
-
this.
|
|
4238
|
-
this.
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
}
|
|
4252
|
+
class AXColorPaletteSwatchesComponent extends AXBaseComponent {
|
|
4253
|
+
constructor(_elementRef, _cdr, _parent) {
|
|
4254
|
+
super(_elementRef, _cdr);
|
|
4255
|
+
this._parent = _parent;
|
|
4256
|
+
this.colors = [];
|
|
4257
|
+
this._defaultPalette = [
|
|
4258
|
+
{ code: '#000000' },
|
|
4259
|
+
{ code: '#ffffff' },
|
|
4260
|
+
// Amber
|
|
4261
|
+
{ code: '#fff8e1' },
|
|
4262
|
+
{ code: '#ffecb3' },
|
|
4263
|
+
{ code: '#ffe082' },
|
|
4264
|
+
{ code: '#ffd54f' },
|
|
4265
|
+
{ code: '#ffca28' },
|
|
4266
|
+
{ code: '#ffc107' },
|
|
4267
|
+
{ code: '#ffb300' },
|
|
4268
|
+
{ code: '#ffa000' },
|
|
4269
|
+
{ code: '#ff8f00' },
|
|
4270
|
+
{ code: '#ff6f00' },
|
|
4271
|
+
// Blue Grey
|
|
4272
|
+
{ code: '#ECEFF1' },
|
|
4273
|
+
{ code: '#CFD8DC' },
|
|
4274
|
+
{ code: '#B0BEC5' },
|
|
4275
|
+
{ code: '#90A4AE' },
|
|
4276
|
+
{ code: '#78909C' },
|
|
4277
|
+
{ code: '#607D8B' },
|
|
4278
|
+
{ code: '#546E7A' },
|
|
4279
|
+
{ code: '#455A64' },
|
|
4280
|
+
{ code: '#37474F' },
|
|
4281
|
+
{ code: '#263238' },
|
|
4282
|
+
// Blue
|
|
4283
|
+
{ code: '#E3F2FD' },
|
|
4284
|
+
{ code: '#BBDEFB' },
|
|
4285
|
+
{ code: '#90CAF9' },
|
|
4286
|
+
{ code: '#64B5F6' },
|
|
4287
|
+
{ code: '#42A5F5' },
|
|
4288
|
+
{ code: '#2196F3' },
|
|
4289
|
+
{ code: '#1E88E5' },
|
|
4290
|
+
{ code: '#1976D2' },
|
|
4291
|
+
{ code: '#1565C0' },
|
|
4292
|
+
{ code: '#0D47A1' },
|
|
4293
|
+
// Brown
|
|
4294
|
+
{ code: '#EFEBE9' },
|
|
4295
|
+
{ code: '#D7CCC8' },
|
|
4296
|
+
{ code: '#BCAAA4' },
|
|
4297
|
+
{ code: '#A1887F' },
|
|
4298
|
+
{ code: '#8D6E63' },
|
|
4299
|
+
{ code: '#795548' },
|
|
4300
|
+
{ code: '#6D4C41' },
|
|
4301
|
+
{ code: '#5D4037' },
|
|
4302
|
+
{ code: '#4E342E' },
|
|
4303
|
+
{ code: '#3E2723' },
|
|
4304
|
+
// Cyan
|
|
4305
|
+
{ code: '#E0F7FA' },
|
|
4306
|
+
{ code: '#B2EBF2' },
|
|
4307
|
+
{ code: '#80DEEA' },
|
|
4308
|
+
{ code: '#4DD0E1' },
|
|
4309
|
+
{ code: '#26C6DA' },
|
|
4310
|
+
{ code: '#00BCD4' },
|
|
4311
|
+
{ code: '#00ACC1' },
|
|
4312
|
+
{ code: '#0097A7' },
|
|
4313
|
+
{ code: '#00838F' },
|
|
4314
|
+
{ code: '#006064' },
|
|
4315
|
+
// Deep Orange
|
|
4316
|
+
{ code: '#FBE9E7' },
|
|
4317
|
+
{ code: '#FFCCBC' },
|
|
4318
|
+
{ code: '#FFAB91' },
|
|
4319
|
+
{ code: '#FF8A65' },
|
|
4320
|
+
{ code: '#FF7043' },
|
|
4321
|
+
{ code: '#FF5722' },
|
|
4322
|
+
{ code: '#F4511E' },
|
|
4323
|
+
{ code: '#E64A19' },
|
|
4324
|
+
{ code: '#D84315' },
|
|
4325
|
+
{ code: '#BF360C' },
|
|
4326
|
+
// Deep Purple
|
|
4327
|
+
{ code: '#EDE7F6' },
|
|
4328
|
+
{ code: '#D1C4E9' },
|
|
4329
|
+
{ code: '#B39DDB' },
|
|
4330
|
+
{ code: '#9575CD' },
|
|
4331
|
+
{ code: '#7E57C2' },
|
|
4332
|
+
{ code: '#673AB7' },
|
|
4333
|
+
{ code: '#5E35B1' },
|
|
4334
|
+
{ code: '#512DA8' },
|
|
4335
|
+
{ code: '#4527A0' },
|
|
4336
|
+
{ code: '#311B92' },
|
|
4337
|
+
// Green
|
|
4338
|
+
{ code: '#E8F5E9' },
|
|
4339
|
+
{ code: '#C8E6C9' },
|
|
4340
|
+
{ code: '#A5D6A7' },
|
|
4341
|
+
{ code: '#81C784' },
|
|
4342
|
+
{ code: '#66BB6A' },
|
|
4343
|
+
{ code: '#4CAF50' },
|
|
4344
|
+
{ code: '#43A047' },
|
|
4345
|
+
{ code: '#388E3C' },
|
|
4346
|
+
{ code: '#2E7D32' },
|
|
4347
|
+
{ code: '#1B5E20' },
|
|
4348
|
+
// Grey
|
|
4349
|
+
{ code: '#FAFAFA' },
|
|
4350
|
+
{ code: '#F5F5F5' },
|
|
4351
|
+
{ code: '#EEEEEE' },
|
|
4352
|
+
{ code: '#E0E0E0' },
|
|
4353
|
+
{ code: '#BDBDBD' },
|
|
4354
|
+
{ code: '#9E9E9E' },
|
|
4355
|
+
{ code: '#757575' },
|
|
4356
|
+
{ code: '#616161' },
|
|
4357
|
+
{ code: '#424242' },
|
|
4358
|
+
{ code: '#212121' },
|
|
4359
|
+
// Indigo
|
|
4360
|
+
{ code: '#E8EAF6' },
|
|
4361
|
+
{ code: '#C5CAE9' },
|
|
4362
|
+
{ code: '#9FA8DA' },
|
|
4363
|
+
{ code: '#7986CB' },
|
|
4364
|
+
{ code: '#5C6BC0' },
|
|
4365
|
+
{ code: '#3F51B5' },
|
|
4366
|
+
{ code: '#3949AB' },
|
|
4367
|
+
{ code: '#303F9F' },
|
|
4368
|
+
{ code: '#283593' },
|
|
4369
|
+
{ code: '#1A237E' },
|
|
4370
|
+
// Light Blue
|
|
4371
|
+
{ code: '#E1F5FE' },
|
|
4372
|
+
{ code: '#B3E5FC' },
|
|
4373
|
+
{ code: '#81D4FA' },
|
|
4374
|
+
{ code: '#4FC3F7' },
|
|
4375
|
+
{ code: '#29B6F6' },
|
|
4376
|
+
{ code: '#03A9F4' },
|
|
4377
|
+
{ code: '#039BE5' },
|
|
4378
|
+
{ code: '#0288D1' },
|
|
4379
|
+
{ code: '#0277BD' },
|
|
4380
|
+
{ code: '#01579B' },
|
|
4381
|
+
// Light Green
|
|
4382
|
+
{ code: '#F1F8E9' },
|
|
4383
|
+
{ code: '#DCEDC8' },
|
|
4384
|
+
{ code: '#C5E1A5' },
|
|
4385
|
+
{ code: '#AED581' },
|
|
4386
|
+
{ code: '#9CCC65' },
|
|
4387
|
+
{ code: '#8BC34A' },
|
|
4388
|
+
{ code: '#7CB342' },
|
|
4389
|
+
{ code: '#689F38' },
|
|
4390
|
+
{ code: '#558B2F' },
|
|
4391
|
+
{ code: '#33691E' },
|
|
4392
|
+
// Lime
|
|
4393
|
+
{ code: '#F9FBE7' },
|
|
4394
|
+
{ code: '#F0F4C3' },
|
|
4395
|
+
{ code: '#E6EE9C' },
|
|
4396
|
+
{ code: '#DCE775' },
|
|
4397
|
+
{ code: '#D4E157' },
|
|
4398
|
+
{ code: '#CDDC39' },
|
|
4399
|
+
{ code: '#C0CA33' },
|
|
4400
|
+
{ code: '#AFB42B' },
|
|
4401
|
+
{ code: '#9E9D24' },
|
|
4402
|
+
{ code: '#827717' },
|
|
4403
|
+
// Orange
|
|
4404
|
+
{ code: '#FFF3E0' },
|
|
4405
|
+
{ code: '#FFE0B2' },
|
|
4406
|
+
{ code: '#FFCC80' },
|
|
4407
|
+
{ code: '#FFB74D' },
|
|
4408
|
+
{ code: '#FFA726' },
|
|
4409
|
+
{ code: '#FF9800' },
|
|
4410
|
+
{ code: '#FB8C00' },
|
|
4411
|
+
{ code: '#F57C00' },
|
|
4412
|
+
{ code: '#EF6C00' },
|
|
4413
|
+
{ code: '#E65100' },
|
|
4414
|
+
// Pink
|
|
4415
|
+
{ code: '#FCE4EC' },
|
|
4416
|
+
{ code: '#F8BBD0' },
|
|
4417
|
+
{ code: '#F48FB1' },
|
|
4418
|
+
{ code: '#F06292' },
|
|
4419
|
+
{ code: '#EC407A' },
|
|
4420
|
+
{ code: '#E91E63' },
|
|
4421
|
+
{ code: '#D81B60' },
|
|
4422
|
+
{ code: '#C2185B' },
|
|
4423
|
+
{ code: '#AD1457' },
|
|
4424
|
+
{ code: '#880E4F' },
|
|
4425
|
+
// Purple
|
|
4426
|
+
{ code: '#F3E5F5' },
|
|
4427
|
+
{ code: '#E1BEE7' },
|
|
4428
|
+
{ code: '#CE93D8' },
|
|
4429
|
+
{ code: '#BA68C8' },
|
|
4430
|
+
{ code: '#AB47BC' },
|
|
4431
|
+
{ code: '#9C27B0' },
|
|
4432
|
+
{ code: '#8E24AA' },
|
|
4433
|
+
{ code: '#7B1FA2' },
|
|
4434
|
+
{ code: '#6A1B9A' },
|
|
4435
|
+
{ code: '#4A148C' },
|
|
4436
|
+
// Red
|
|
4437
|
+
{ code: '#FFEBEE' },
|
|
4438
|
+
{ code: '#FFCDD2' },
|
|
4439
|
+
{ code: '#EF9A9A' },
|
|
4440
|
+
{ code: '#E57373' },
|
|
4441
|
+
{ code: '#EF5350' },
|
|
4442
|
+
{ code: '#F44336' },
|
|
4443
|
+
{ code: '#E53935' },
|
|
4444
|
+
{ code: '#D32F2F' },
|
|
4445
|
+
{ code: '#C62828' },
|
|
4446
|
+
{ code: '#B71C1C' },
|
|
4447
|
+
// Teal
|
|
4448
|
+
{ code: '#E0F2F1' },
|
|
4449
|
+
{ code: '#B2DFDB' },
|
|
4450
|
+
{ code: '#80CBC4' },
|
|
4451
|
+
{ code: '#4DB6AC' },
|
|
4452
|
+
{ code: '#26A69A' },
|
|
4453
|
+
{ code: '#009688' },
|
|
4454
|
+
{ code: '#00897B' },
|
|
4455
|
+
{ code: '#00796B' },
|
|
4456
|
+
{ code: '#00695C' },
|
|
4457
|
+
{ code: '#004D40' },
|
|
4458
|
+
// Yellow
|
|
4459
|
+
{ code: '#FFFDE7' },
|
|
4460
|
+
{ code: '#FFF9C4' },
|
|
4461
|
+
{ code: '#FFF59D' },
|
|
4462
|
+
{ code: '#FFF176' },
|
|
4463
|
+
{ code: '#FFEE58' },
|
|
4464
|
+
{ code: '#FFEB3B' },
|
|
4465
|
+
{ code: '#FDD835' },
|
|
4466
|
+
{ code: '#FBC02D' },
|
|
4467
|
+
{ code: '#F9A825' },
|
|
4468
|
+
{ code: '#F57F17' },
|
|
4469
|
+
];
|
|
4470
|
+
_parent?._onInternalColorChanged$.subscribe(e => {
|
|
4471
|
+
this._selected = AXColorUtil.toHex(e.color);
|
|
4472
|
+
});
|
|
4473
|
+
if (this._getHostElement().tagName.toLocaleLowerCase() != 'ax-color-palette-favorite') {
|
|
4474
|
+
this.colors = this._defaultPalette;
|
|
4252
4475
|
}
|
|
4253
4476
|
}
|
|
4254
|
-
|
|
4255
|
-
this.
|
|
4256
|
-
this.
|
|
4477
|
+
_handleClick(e, color) {
|
|
4478
|
+
this._selected = color.code;
|
|
4479
|
+
this._parent._onInternalColorChanged$.next({ color: color.code, mode: this._parent.mode });
|
|
4257
4480
|
}
|
|
4258
4481
|
}
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4482
|
+
AXColorPaletteSwatchesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteSwatchesComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXColorComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4483
|
+
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">
|
|
4484
|
+
<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)" >
|
|
4485
|
+
</div>
|
|
4486
|
+
</div>`, isInline: true, directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
4487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteSwatchesComponent, decorators: [{
|
|
4262
4488
|
type: Component,
|
|
4263
4489
|
args: [{
|
|
4264
|
-
selector: 'ax-
|
|
4265
|
-
template: `<
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4490
|
+
selector: 'ax-color-palette-swatches, ax-color-palette-favorite',
|
|
4491
|
+
template: `<div class="palette-items">
|
|
4492
|
+
<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)" >
|
|
4493
|
+
</div>
|
|
4494
|
+
</div>`,
|
|
4495
|
+
encapsulation: ViewEncapsulation.None
|
|
4269
4496
|
}]
|
|
4270
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }
|
|
4271
|
-
|
|
4272
|
-
|
|
4497
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorComponent, decorators: [{
|
|
4498
|
+
type: Optional
|
|
4499
|
+
}, {
|
|
4500
|
+
type: Inject,
|
|
4501
|
+
args: [AXColorComponent]
|
|
4502
|
+
}] }]; }, propDecorators: { colors: [{
|
|
4273
4503
|
type: Input
|
|
4274
|
-
}], _items: [{
|
|
4275
|
-
type: ContentChildren,
|
|
4276
|
-
args: [AXCollapseComponent]
|
|
4277
4504
|
}] } });
|
|
4278
4505
|
|
|
4279
|
-
|
|
4506
|
+
/**
|
|
4507
|
+
* The Textbox is a component which detects user interaction and triggers a corresponding event
|
|
4508
|
+
*
|
|
4509
|
+
* @category Components
|
|
4510
|
+
*/
|
|
4511
|
+
class AXTextBoxComponent extends AXBaseTextBoxMixin {
|
|
4512
|
+
/**
|
|
4513
|
+
* @ignore
|
|
4514
|
+
*/
|
|
4515
|
+
constructor(elementRef, cdr) {
|
|
4516
|
+
super(elementRef, cdr);
|
|
4517
|
+
}
|
|
4280
4518
|
}
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
declarations: [AXCollapseComponent, AXCollapseGroupComponent],
|
|
4288
|
-
imports: [CommonModule],
|
|
4289
|
-
exports: [AXCollapseComponent, AXCollapseGroupComponent],
|
|
4290
|
-
providers: [],
|
|
4291
|
-
}]
|
|
4292
|
-
}] });
|
|
4519
|
+
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 });
|
|
4520
|
+
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 });
|
|
4521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxComponent, decorators: [{
|
|
4522
|
+
type: Component,
|
|
4523
|
+
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>" }]
|
|
4524
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4293
4525
|
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
this.
|
|
4320
|
-
|
|
4321
|
-
this.
|
|
4322
|
-
//
|
|
4323
|
-
this.hasBackdrop = false;
|
|
4324
|
-
this.adaptivityEnabled = false;
|
|
4325
|
-
//
|
|
4326
|
-
this._mousePos = { x: 0, y: 0 };
|
|
4327
|
-
this._isScrollAttached = false;
|
|
4328
|
-
//
|
|
4329
|
-
this.onOpened = new EventEmitter();
|
|
4330
|
-
this.onClosed = new EventEmitter();
|
|
4331
|
-
}
|
|
4332
|
-
get target() {
|
|
4333
|
-
return this._target;
|
|
4334
|
-
}
|
|
4335
|
-
set target(v) {
|
|
4336
|
-
if (v instanceof HTMLElement)
|
|
4337
|
-
this._target = v;
|
|
4338
|
-
else if (v instanceof ElementRef)
|
|
4339
|
-
this._target = v.nativeElement;
|
|
4340
|
-
else if (v instanceof AXBaseComponent)
|
|
4341
|
-
this._target = v._getInnerElement();
|
|
4526
|
+
/**
|
|
4527
|
+
* The NumberBox is a component which detects user interaction and triggers a corresponding event
|
|
4528
|
+
*
|
|
4529
|
+
* @category Components
|
|
4530
|
+
*/
|
|
4531
|
+
class AXNumberBoxComponent extends AXBaseTextBoxMixin {
|
|
4532
|
+
/**
|
|
4533
|
+
* @ignore
|
|
4534
|
+
*/
|
|
4535
|
+
constructor(elementRef, cdr) {
|
|
4536
|
+
super(elementRef, cdr);
|
|
4537
|
+
this.cdr = cdr;
|
|
4538
|
+
this._padDecimalZeros = false;
|
|
4539
|
+
/**
|
|
4540
|
+
* Specifies the value that is used to increment or decrement the **Integer** part of number
|
|
4541
|
+
*/
|
|
4542
|
+
this.step = 1;
|
|
4543
|
+
this._decimals = 0;
|
|
4544
|
+
/**
|
|
4545
|
+
* Specifies the value that is used to increment or decrement the **Deciaml** part of number
|
|
4546
|
+
*/
|
|
4547
|
+
this.decimalStep = 'auto';
|
|
4548
|
+
/**
|
|
4549
|
+
* Specifies whether the Up and Down spin buttons will be rendered or not
|
|
4550
|
+
*/
|
|
4551
|
+
this.showSpinButtons = true;
|
|
4552
|
+
this._minValue = Number.MIN_SAFE_INTEGER;
|
|
4553
|
+
this._maxValue = Number.MAX_SAFE_INTEGER;
|
|
4342
4554
|
}
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4555
|
+
/**
|
|
4556
|
+
* A character value that specifies the separator character.
|
|
4557
|
+
*/
|
|
4558
|
+
get thousandsSeparator() {
|
|
4559
|
+
return this._thousandsSeparator;
|
|
4348
4560
|
}
|
|
4349
|
-
|
|
4350
|
-
this.
|
|
4351
|
-
|
|
4352
|
-
|
|
4561
|
+
set thousandsSeparator(v) {
|
|
4562
|
+
this._setOption({
|
|
4563
|
+
name: "thousandsSeparator",
|
|
4564
|
+
value: v ?? '',
|
|
4353
4565
|
});
|
|
4354
4566
|
}
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
this._addSub(mouseEnter$.subscribe(e => {
|
|
4361
|
-
const point = { x: e.clientX, y: e.clientY };
|
|
4362
|
-
if (AXDrawingUtil.isInElementBound(point, this._target))
|
|
4363
|
-
this.open();
|
|
4364
|
-
}));
|
|
4365
|
-
}
|
|
4366
|
-
if (this.closeTrigger === 'mouseout') {
|
|
4367
|
-
const mouseMove$ = fromEvent(document, 'mousemove');
|
|
4368
|
-
this._addSub(mouseMove$.pipe(throttleTime(50)).subscribe(e => {
|
|
4369
|
-
this._mousePos.x = e.clientX;
|
|
4370
|
-
this._mousePos.y = e.clientY;
|
|
4371
|
-
if (this.isOpen) {
|
|
4372
|
-
setTimeout(() => {
|
|
4373
|
-
if (!_.some([this._target, this._overlayRef.overlayElement], el => _.includes(document.elementsFromPoint(this._mousePos.x, this._mousePos.y), el)))
|
|
4374
|
-
this.close();
|
|
4375
|
-
}, 100);
|
|
4376
|
-
}
|
|
4377
|
-
}));
|
|
4378
|
-
}
|
|
4379
|
-
//
|
|
4380
|
-
if (this.openTrigger === 'click' || this.openTrigger === 'toggle') {
|
|
4381
|
-
const click$ = fromEvent(this._target, 'click');
|
|
4382
|
-
this._addSub(click$.subscribe(e => {
|
|
4383
|
-
this.openTrigger == 'toggle' ? this.toggle() : this.open();
|
|
4384
|
-
}));
|
|
4385
|
-
}
|
|
4386
|
-
}
|
|
4567
|
+
/**
|
|
4568
|
+
* A character value that specifies the separator character.
|
|
4569
|
+
*/
|
|
4570
|
+
get padDecimalZeros() {
|
|
4571
|
+
return this._padDecimalZeros;
|
|
4387
4572
|
}
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
this._subs.forEach(s => {
|
|
4393
|
-
s?.unsubscribe();
|
|
4573
|
+
set padDecimalZeros(v) {
|
|
4574
|
+
this._setOption({
|
|
4575
|
+
name: "padDecimalZeros",
|
|
4576
|
+
value: v,
|
|
4394
4577
|
});
|
|
4395
4578
|
}
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
if (this.isOpen) {
|
|
4402
|
-
this.close();
|
|
4403
|
-
e.stopPropagation();
|
|
4404
|
-
}
|
|
4405
|
-
}
|
|
4579
|
+
/**
|
|
4580
|
+
* Specifies the number of decimals that the user can enter
|
|
4581
|
+
*/
|
|
4582
|
+
get decimals() {
|
|
4583
|
+
return this._decimals;
|
|
4406
4584
|
}
|
|
4407
|
-
|
|
4408
|
-
this.
|
|
4585
|
+
set decimals(v) {
|
|
4586
|
+
this._setOption({
|
|
4587
|
+
name: "decimals",
|
|
4588
|
+
value: v ?? 0,
|
|
4589
|
+
});
|
|
4409
4590
|
}
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
this._overlayRef?.detach();
|
|
4416
|
-
this._emitOnClosedEvent();
|
|
4591
|
+
/**
|
|
4592
|
+
* Specifies the smallest value that is valid
|
|
4593
|
+
*/
|
|
4594
|
+
get minValue() {
|
|
4595
|
+
return this._minValue;
|
|
4417
4596
|
}
|
|
4418
|
-
|
|
4419
|
-
this.
|
|
4420
|
-
|
|
4421
|
-
|
|
4597
|
+
set minValue(v) {
|
|
4598
|
+
this._setOption({
|
|
4599
|
+
name: "minValue",
|
|
4600
|
+
value: v != null ? Number(v) : Number.MIN_SAFE_INTEGER,
|
|
4601
|
+
});
|
|
4422
4602
|
}
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4603
|
+
/**
|
|
4604
|
+
* Specifies the greatest value that is valid
|
|
4605
|
+
*/
|
|
4606
|
+
get maxValue() {
|
|
4607
|
+
return this._maxValue;
|
|
4608
|
+
}
|
|
4609
|
+
set maxValue(v) {
|
|
4610
|
+
this._setOption({
|
|
4611
|
+
name: "maxValue",
|
|
4612
|
+
value: v != null ? Number(v) : Number.MAX_SAFE_INTEGER,
|
|
4613
|
+
});
|
|
4614
|
+
}
|
|
4615
|
+
onViewInit() {
|
|
4616
|
+
super.onViewInit();
|
|
4617
|
+
this._updateMask();
|
|
4618
|
+
}
|
|
4619
|
+
_onOptionChanged(option) {
|
|
4620
|
+
super._onOptionChanged(option);
|
|
4621
|
+
this._updateMask();
|
|
4622
|
+
}
|
|
4623
|
+
_updateMask() {
|
|
4624
|
+
if (!this._maskObj) {
|
|
4625
|
+
this._maskObj = IMask.createMask({
|
|
4626
|
+
mask: Number,
|
|
4627
|
+
min: this.minValue,
|
|
4628
|
+
max: this.maxValue,
|
|
4629
|
+
thousandsSeparator: this.thousandsSeparator || '',
|
|
4630
|
+
scale: this.decimals,
|
|
4631
|
+
radix: '.',
|
|
4632
|
+
padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
|
|
4633
|
+
});
|
|
4427
4634
|
}
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4635
|
+
else {
|
|
4636
|
+
this._maskObj.updateOptions({
|
|
4637
|
+
min: this.minValue,
|
|
4638
|
+
max: this.maxValue,
|
|
4639
|
+
thousandsSeparator: this.thousandsSeparator || '',
|
|
4640
|
+
scale: this.decimals,
|
|
4641
|
+
radix: '.',
|
|
4642
|
+
padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
|
|
4643
|
+
});
|
|
4644
|
+
}
|
|
4645
|
+
this._maskDirective?.maskRef?.updateValue();
|
|
4646
|
+
this._maskDirective?.maskRef?.updateControl();
|
|
4431
4647
|
}
|
|
4432
|
-
|
|
4433
|
-
const
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4648
|
+
_handleOnKeydownEvent(e) {
|
|
4649
|
+
const ignore = () => {
|
|
4650
|
+
e.preventDefault();
|
|
4651
|
+
e.stopPropagation();
|
|
4652
|
+
};
|
|
4653
|
+
const input = e.target;
|
|
4654
|
+
const valStr = input.value;
|
|
4655
|
+
const decimalPointIndex = valStr.indexOf('.');
|
|
4656
|
+
const _cursorPos = input.selectionStart;
|
|
4657
|
+
if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
|
4658
|
+
if (decimalPointIndex > 0 && _cursorPos > decimalPointIndex && this.decimals > 0) {
|
|
4659
|
+
e.key === 'ArrowDown' ? this.decimalStepDown() : this.decimalStepUp();
|
|
4439
4660
|
}
|
|
4440
4661
|
else {
|
|
4441
|
-
this.
|
|
4442
|
-
}
|
|
4443
|
-
if (this.closeTrigger == 'clickout') {
|
|
4444
|
-
this._addSub(this._overlayRef._outsidePointerEvents.subscribe(c => {
|
|
4445
|
-
const target = c.target;
|
|
4446
|
-
const comElem = targetRef;
|
|
4447
|
-
if (!(comElem.contains(target))) {
|
|
4448
|
-
this.close();
|
|
4449
|
-
}
|
|
4450
|
-
}));
|
|
4662
|
+
e.key === 'ArrowDown' ? this.stepDown() : this.stepUp();
|
|
4451
4663
|
}
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
this.updatePosition();
|
|
4457
|
-
}));
|
|
4458
|
-
this._isScrollAttached = true;
|
|
4459
|
-
}
|
|
4460
|
-
}));
|
|
4461
|
-
}
|
|
4462
|
-
if (!this._templatePortal) {
|
|
4463
|
-
this._templatePortal = new TemplatePortal(this._baseTemplate, this._viewContainerRef);
|
|
4664
|
+
ignore();
|
|
4665
|
+
setTimeout(() => {
|
|
4666
|
+
input.setSelectionRange(_cursorPos, _cursorPos);
|
|
4667
|
+
}, 5);
|
|
4464
4668
|
}
|
|
4669
|
+
super._emitOnKeydownEvent(e);
|
|
4465
4670
|
}
|
|
4466
|
-
|
|
4467
|
-
this.
|
|
4468
|
-
positionStrategy: this._overlay.position()
|
|
4469
|
-
.flexibleConnectedTo(targetRef)
|
|
4470
|
-
.withPositions(Array.isArray(this.position) ? this.position : [this.position])
|
|
4471
|
-
.withPush(false),
|
|
4472
|
-
disposeOnNavigation: true,
|
|
4473
|
-
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
4474
|
-
maxHeight: 'unset',
|
|
4475
|
-
hasBackdrop: this.hasBackdrop,
|
|
4476
|
-
backdropClass: [this.backdropClass || 'cdk-overlay-transparent-backdrop']
|
|
4477
|
-
});
|
|
4671
|
+
_handleUpDownClick(e, v) {
|
|
4672
|
+
v == 1 ? this.stepUp() : this.stepDown();
|
|
4478
4673
|
}
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
overlayY: 'bottom'
|
|
4487
|
-
}
|
|
4488
|
-
]),
|
|
4489
|
-
disposeOnNavigation: true,
|
|
4490
|
-
panelClass: ['ax-animate-slideInUp', 'ax-animate-faster'],
|
|
4491
|
-
hasBackdrop: true,
|
|
4492
|
-
width: '100%'
|
|
4493
|
-
});
|
|
4674
|
+
_onValueChanging(value) {
|
|
4675
|
+
const v = _.toNumber(value);
|
|
4676
|
+
if (v < this.minValue)
|
|
4677
|
+
return this.minValue;
|
|
4678
|
+
if (v > this.maxValue)
|
|
4679
|
+
return this.maxValue;
|
|
4680
|
+
return v;
|
|
4494
4681
|
}
|
|
4495
|
-
|
|
4496
|
-
|
|
4682
|
+
stepUp() {
|
|
4683
|
+
this.value += _.toNumber(this.step);
|
|
4497
4684
|
}
|
|
4498
|
-
|
|
4499
|
-
this.
|
|
4685
|
+
stepDown() {
|
|
4686
|
+
this.value -= _.toNumber(this.step);
|
|
4500
4687
|
}
|
|
4501
|
-
|
|
4502
|
-
this.
|
|
4503
|
-
|
|
4688
|
+
decimalStepUp() {
|
|
4689
|
+
this.value += _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
|
|
4690
|
+
}
|
|
4691
|
+
decimalStepDown() {
|
|
4692
|
+
this.value -= _.toNumber(this.decimalStep == 'auto' ? (1 / Math.pow(10, this.decimals)) : this.decimalStep);
|
|
4504
4693
|
}
|
|
4505
4694
|
}
|
|
4506
|
-
|
|
4507
|
-
|
|
4508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type:
|
|
4695
|
+
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 });
|
|
4696
|
+
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 });
|
|
4697
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxComponent, decorators: [{
|
|
4509
4698
|
type: Component,
|
|
4510
|
-
args: [{ selector: 'ax-
|
|
4511
|
-
|
|
4699
|
+
args: [{ selector: 'ax-number-box', inputs: [
|
|
4700
|
+
'disabled',
|
|
4701
|
+
'readonly',
|
|
4702
|
+
'tabIndex',
|
|
4703
|
+
'size',
|
|
4704
|
+
'value',
|
|
4705
|
+
...TEXTBOX_INPUTS,
|
|
4706
|
+
], outputs: [
|
|
4707
|
+
'valueChange',
|
|
4708
|
+
'onValueChanged',
|
|
4709
|
+
'onBlur',
|
|
4710
|
+
'onFocus',
|
|
4711
|
+
...TEXTBOX_OUTPUT,
|
|
4712
|
+
], 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>" }]
|
|
4713
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { thousandsSeparator: [{
|
|
4512
4714
|
type: Input
|
|
4513
|
-
}],
|
|
4715
|
+
}], padDecimalZeros: [{
|
|
4514
4716
|
type: Input
|
|
4515
|
-
}],
|
|
4516
|
-
type: ViewChild,
|
|
4517
|
-
args: ['baseTemplate']
|
|
4518
|
-
}], openTrigger: [{
|
|
4717
|
+
}], step: [{
|
|
4519
4718
|
type: Input
|
|
4520
|
-
}],
|
|
4719
|
+
}], decimals: [{
|
|
4521
4720
|
type: Input
|
|
4522
|
-
}],
|
|
4721
|
+
}], decimalStep: [{
|
|
4523
4722
|
type: Input
|
|
4524
|
-
}],
|
|
4723
|
+
}], showSpinButtons: [{
|
|
4525
4724
|
type: Input
|
|
4526
|
-
}],
|
|
4725
|
+
}], minValue: [{
|
|
4527
4726
|
type: Input
|
|
4528
|
-
}],
|
|
4529
|
-
type:
|
|
4530
|
-
}],
|
|
4727
|
+
}], maxValue: [{
|
|
4728
|
+
type: Input
|
|
4729
|
+
}], _maskDirective: [{
|
|
4730
|
+
type: ViewChild,
|
|
4731
|
+
args: [IMaskDirective]
|
|
4732
|
+
}] } });
|
|
4733
|
+
|
|
4734
|
+
class AXColorPaletteInputComponent extends AXBaseComponent {
|
|
4735
|
+
constructor(_elementRef, _cdr, _parent) {
|
|
4736
|
+
super(_elementRef, _cdr);
|
|
4737
|
+
this._parent = _parent;
|
|
4738
|
+
this._rgba = {
|
|
4739
|
+
r: 255,
|
|
4740
|
+
g: 255,
|
|
4741
|
+
b: 255,
|
|
4742
|
+
a: 0
|
|
4743
|
+
};
|
|
4744
|
+
this._hex = "#000000";
|
|
4745
|
+
_parent?._onInternalColorChanged$.subscribe(e => {
|
|
4746
|
+
if (this._hex != AXColorUtil.toHex(e.color)) {
|
|
4747
|
+
this._hex = AXColorUtil.toHex(e.color);
|
|
4748
|
+
Object.assign(this._rgba, AXColorUtil.toRGB(e.color));
|
|
4749
|
+
}
|
|
4750
|
+
});
|
|
4751
|
+
}
|
|
4752
|
+
_handleChangeInputMode(e) {
|
|
4753
|
+
// switch (this.inputMode) {
|
|
4754
|
+
// case 'rgba':
|
|
4755
|
+
// this.inputMode = 'hsla'
|
|
4756
|
+
// break;
|
|
4757
|
+
// case 'hsla':
|
|
4758
|
+
// this.inputMode = 'hwba'
|
|
4759
|
+
// break;
|
|
4760
|
+
// case 'hwba':
|
|
4761
|
+
// this.inputMode = 'hex'
|
|
4762
|
+
// break;
|
|
4763
|
+
// case 'hex':
|
|
4764
|
+
// this.inputMode = 'rgba'
|
|
4765
|
+
// break;
|
|
4766
|
+
// }
|
|
4767
|
+
this._parent.mode = (this._parent.mode == 'rgba' ? 'hex' : 'rgba');
|
|
4768
|
+
}
|
|
4769
|
+
_handleRGBAValueChanged(e) {
|
|
4770
|
+
const { r, g, b, a } = this._rgba;
|
|
4771
|
+
const _color = `rgba(${r},${g},${b},${a})`;
|
|
4772
|
+
this._parent._onInternalColorChanged$.next({ color: AXColorUtil.toRGB(_color), mode: 'rgba' });
|
|
4773
|
+
}
|
|
4774
|
+
_handleHEXAValueChanged(e) {
|
|
4775
|
+
this._parent._onInternalColorChanged$.next({ color: AXColorUtil.toHex(e.value), mode: 'hex' });
|
|
4776
|
+
}
|
|
4777
|
+
}
|
|
4778
|
+
AXColorPaletteInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteInputComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXColorComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4779
|
+
AXColorPaletteInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXColorPaletteInputComponent, selector: "ax-color-palette-input", usesInheritance: true, ngImport: i0, template: "<div class=\"palette-input-container\" [ngSwitch]=\"_parent.mode\">\r\n <div class=\"palette-inputs\">\r\n <ng-container *ngSwitchCase=\"'hex'\">\r\n <div>\r\n <ax-text-box class=\"ax-w-full\" [(value)]=\"_hex\" [debounceTime]=\"300\" (onValueChanged)=\"_handleHEXAValueChanged($event)\">\r\n </ax-text-box>\r\n <label>HEX</label>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'rgba'\">\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.r\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>R</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.g\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>G</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.b\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>B</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"1\" [(value)]=\"_rgba.a\" [decimals]=\"2\" [step]=\"0.1\"\r\n [showSpinButtons]=\"false\" (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container>\r\n <!-- <ng-container *ngSwitchCase=\"'hsla'\">\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>H</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>S</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>L</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'hwba'\">\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>H</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>W</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>B</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container> -->\r\n </div>\r\n <ax-button color=\"light\" class=\"ax-w-base\" (onClick)=\"_handleChangeInputMode($event)\">\r\n <ax-icon class=\"ax-ic ax-ic-unfold\"></ax-icon>\r\n </ax-button>\r\n</div>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "placeholder", "maxLength", "type", "autoComplete"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { type: AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "size", "value", "placeholder", "maxLength", "allowNull", "debounceTime", "type", "autoComplete", "name", "checked", "thousandsSeparator", "padDecimalZeros", "step", "decimals", "decimalStep", "showSpinButtons", "minValue", "maxValue"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
4780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteInputComponent, decorators: [{
|
|
4781
|
+
type: Component,
|
|
4782
|
+
args: [{ selector: 'ax-color-palette-input', encapsulation: ViewEncapsulation.None, template: "<div class=\"palette-input-container\" [ngSwitch]=\"_parent.mode\">\r\n <div class=\"palette-inputs\">\r\n <ng-container *ngSwitchCase=\"'hex'\">\r\n <div>\r\n <ax-text-box class=\"ax-w-full\" [(value)]=\"_hex\" [debounceTime]=\"300\" (onValueChanged)=\"_handleHEXAValueChanged($event)\">\r\n </ax-text-box>\r\n <label>HEX</label>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'rgba'\">\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.r\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>R</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.g\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>G</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"255\" [(value)]=\"_rgba.b\" [showSpinButtons]=\"false\"\r\n (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>B</label>\r\n </div>\r\n <div>\r\n <ax-number-box [minValue]=\"0\" [maxValue]=\"1\" [(value)]=\"_rgba.a\" [decimals]=\"2\" [step]=\"0.1\"\r\n [showSpinButtons]=\"false\" (onValueChanged)=\"_handleRGBAValueChanged($event)\">\r\n </ax-number-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container>\r\n <!-- <ng-container *ngSwitchCase=\"'hsla'\">\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>H</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>S</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>L</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'hwba'\">\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>H</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>W</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>B</label>\r\n </div>\r\n <div>\r\n <ax-text-box [value]=\"'255'\">\r\n </ax-text-box>\r\n <label>A</label>\r\n </div>\r\n </ng-container> -->\r\n </div>\r\n <ax-button color=\"light\" class=\"ax-w-base\" (onClick)=\"_handleChangeInputMode($event)\">\r\n <ax-icon class=\"ax-ic ax-ic-unfold\"></ax-icon>\r\n </ax-button>\r\n</div>" }]
|
|
4783
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXColorComponent, decorators: [{
|
|
4784
|
+
type: Optional
|
|
4785
|
+
}, {
|
|
4786
|
+
type: Inject,
|
|
4787
|
+
args: [AXColorComponent]
|
|
4788
|
+
}] }]; } });
|
|
4789
|
+
|
|
4790
|
+
class AXColorPalleteComponent extends AXBaseValueComponentMixin {
|
|
4791
|
+
constructor(elementRef, cdr) {
|
|
4792
|
+
super(elementRef, cdr);
|
|
4793
|
+
this._onInternalColorChanged$ = new Subject();
|
|
4794
|
+
this.modeChange = new EventEmitter();
|
|
4795
|
+
this._mode = 'hex';
|
|
4796
|
+
//
|
|
4797
|
+
this._onInternalColorChanged$.subscribe(e => {
|
|
4798
|
+
this.value = e.color;
|
|
4799
|
+
});
|
|
4800
|
+
}
|
|
4801
|
+
/**
|
|
4802
|
+
* A character value that specifies the separator character.
|
|
4803
|
+
*/
|
|
4804
|
+
get mode() {
|
|
4805
|
+
return this._mode;
|
|
4806
|
+
}
|
|
4807
|
+
set mode(v) {
|
|
4808
|
+
this._setOption({
|
|
4809
|
+
name: "mode",
|
|
4810
|
+
value: v,
|
|
4811
|
+
});
|
|
4812
|
+
}
|
|
4813
|
+
}
|
|
4814
|
+
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 });
|
|
4815
|
+
AXColorPalleteComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXColorPalleteComponent, selector: "ax-color-palette", inputs: { disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", mode: "mode" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", modeChange: "modeChange" }, providers: [{ provide: AXColorComponent, useExisting: AXColorPalleteComponent }], usesInheritance: true, ngImport: i0, template: "<ng-content select='ax-header'></ng-content>\r\n\r\n<ng-container [ngTemplateOutlet]=\"default\"></ng-container>\r\n\r\n<ng-template #default>\r\n <ax-color-palette-preview></ax-color-palette-preview>\r\n <ax-color-palette-swatches></ax-color-palette-swatches>\r\n <ng-content select=\"ax-color-palette-favorite\"></ng-content>\r\n <ax-color-palette-input></ax-color-palette-input>\r\n</ng-template>\r\n<ng-content select='ax-footer'></ng-content>", components: [{ type: AXColorPalettePreviewComponent, selector: "ax-color-palette-preview" }, { type: AXColorPaletteSwatchesComponent, selector: "ax-color-palette-swatches, ax-color-palette-favorite", inputs: ["colors"] }, { type: AXColorPaletteInputComponent, selector: "ax-color-palette-input" }], directives: [{ type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4816
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalleteComponent, decorators: [{
|
|
4817
|
+
type: Component,
|
|
4818
|
+
args: [{ selector: 'ax-color-palette', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], encapsulation: ViewEncapsulation.None, providers: [{ provide: AXColorComponent, useExisting: AXColorPalleteComponent }], template: "<ng-content select='ax-header'></ng-content>\r\n\r\n<ng-container [ngTemplateOutlet]=\"default\"></ng-container>\r\n\r\n<ng-template #default>\r\n <ax-color-palette-preview></ax-color-palette-preview>\r\n <ax-color-palette-swatches></ax-color-palette-swatches>\r\n <ng-content select=\"ax-color-palette-favorite\"></ng-content>\r\n <ax-color-palette-input></ax-color-palette-input>\r\n</ng-template>\r\n<ng-content select='ax-footer'></ng-content>" }]
|
|
4819
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { modeChange: [{
|
|
4531
4820
|
type: Output
|
|
4532
|
-
}],
|
|
4533
|
-
type:
|
|
4534
|
-
|
|
4821
|
+
}], mode: [{
|
|
4822
|
+
type: Input
|
|
4823
|
+
}] } });
|
|
4824
|
+
|
|
4825
|
+
class AXColorPalettePickerComponent {
|
|
4826
|
+
constructor() { }
|
|
4827
|
+
ngOnInit() { }
|
|
4828
|
+
}
|
|
4829
|
+
AXColorPalettePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4830
|
+
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 });
|
|
4831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPalettePickerComponent, decorators: [{
|
|
4832
|
+
type: Component,
|
|
4833
|
+
args: [{
|
|
4834
|
+
selector: 'ax-color-palette-picker',
|
|
4835
|
+
template: ``,
|
|
4836
|
+
encapsulation: ViewEncapsulation.None
|
|
4837
|
+
}]
|
|
4838
|
+
}], ctorParameters: function () { return []; } });
|
|
4839
|
+
|
|
4840
|
+
class AXTextBoxModule {
|
|
4841
|
+
}
|
|
4842
|
+
AXTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4843
|
+
AXTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [CommonModule,
|
|
4844
|
+
FormsModule,
|
|
4845
|
+
AXButtonModule,
|
|
4846
|
+
AXDecoratorModule, i1$3.NgxMaskModule], exports: [AXTextBoxComponent] });
|
|
4847
|
+
AXTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, providers: [], imports: [[
|
|
4848
|
+
CommonModule,
|
|
4849
|
+
FormsModule,
|
|
4850
|
+
AXButtonModule,
|
|
4851
|
+
AXDecoratorModule,
|
|
4852
|
+
NgxMaskModule.forChild()
|
|
4853
|
+
]] });
|
|
4854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, decorators: [{
|
|
4855
|
+
type: NgModule,
|
|
4856
|
+
args: [{
|
|
4857
|
+
imports: [
|
|
4858
|
+
CommonModule,
|
|
4859
|
+
FormsModule,
|
|
4860
|
+
AXButtonModule,
|
|
4861
|
+
AXDecoratorModule,
|
|
4862
|
+
NgxMaskModule.forChild()
|
|
4863
|
+
],
|
|
4864
|
+
exports: [AXTextBoxComponent],
|
|
4865
|
+
declarations: [AXTextBoxComponent],
|
|
4866
|
+
providers: [],
|
|
4867
|
+
}]
|
|
4868
|
+
}] });
|
|
4869
|
+
|
|
4870
|
+
class AXLabelComponent extends AXBaseComponentMixin {
|
|
4871
|
+
constructor(elementRef, cdr) {
|
|
4872
|
+
super(elementRef, cdr);
|
|
4873
|
+
}
|
|
4874
|
+
get target() {
|
|
4875
|
+
return this._target;
|
|
4876
|
+
}
|
|
4877
|
+
set target(v) {
|
|
4878
|
+
this._target = v;
|
|
4879
|
+
this._cdr.markForCheck();
|
|
4880
|
+
}
|
|
4881
|
+
}
|
|
4882
|
+
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 });
|
|
4883
|
+
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 });
|
|
4884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelComponent, decorators: [{
|
|
4885
|
+
type: Component,
|
|
4886
|
+
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>" }]
|
|
4887
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { class: [{
|
|
4888
|
+
type: Input
|
|
4535
4889
|
}] } });
|
|
4536
4890
|
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
i0.ɵɵ
|
|
4891
|
+
const COMPONENT$g = [AXLabelComponent];
|
|
4892
|
+
const MODULES$h = [CommonModule];
|
|
4893
|
+
class AXLabelModule {
|
|
4894
|
+
}
|
|
4895
|
+
AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4896
|
+
AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
|
|
4897
|
+
AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$h]] });
|
|
4898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLabelModule, decorators: [{
|
|
4899
|
+
type: NgModule,
|
|
4900
|
+
args: [{
|
|
4901
|
+
declarations: [...COMPONENT$g],
|
|
4902
|
+
imports: [...MODULES$h],
|
|
4903
|
+
exports: [...COMPONENT$g],
|
|
4904
|
+
providers: [],
|
|
4905
|
+
}]
|
|
4906
|
+
}] });
|
|
4907
|
+
|
|
4908
|
+
const COMPONENT$f = [AXNumberBoxComponent];
|
|
4909
|
+
const MODULES$g = [
|
|
4910
|
+
CommonModule,
|
|
4911
|
+
FormsModule,
|
|
4912
|
+
AXButtonModule,
|
|
4913
|
+
AXDecoratorModule,
|
|
4914
|
+
IMaskModule
|
|
4915
|
+
];
|
|
4916
|
+
class AXNumberBoxModule {
|
|
4917
|
+
}
|
|
4918
|
+
AXNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4919
|
+
AXNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, declarations: [AXNumberBoxComponent], imports: [CommonModule,
|
|
4920
|
+
FormsModule,
|
|
4921
|
+
AXButtonModule,
|
|
4922
|
+
AXDecoratorModule,
|
|
4923
|
+
IMaskModule], exports: [AXNumberBoxComponent] });
|
|
4924
|
+
AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, providers: [], imports: [[...MODULES$g]] });
|
|
4925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXNumberBoxModule, decorators: [{
|
|
4926
|
+
type: NgModule,
|
|
4927
|
+
args: [{
|
|
4928
|
+
declarations: [...COMPONENT$f],
|
|
4929
|
+
imports: [...MODULES$g],
|
|
4930
|
+
exports: [...COMPONENT$f],
|
|
4931
|
+
providers: [],
|
|
4932
|
+
}]
|
|
4933
|
+
}] });
|
|
4934
|
+
|
|
4935
|
+
const MODULES$f = [
|
|
4936
|
+
AXTextBoxModule,
|
|
4937
|
+
AXLabelModule,
|
|
4938
|
+
AXButtonModule,
|
|
4939
|
+
AXDecoratorModule,
|
|
4940
|
+
AXNumberBoxModule
|
|
4941
|
+
];
|
|
4942
|
+
const CONPONENTS = [
|
|
4943
|
+
AXColorPalleteComponent,
|
|
4944
|
+
AXColorPalettePreviewComponent,
|
|
4945
|
+
AXColorPaletteSwatchesComponent,
|
|
4946
|
+
AXColorPaletteInputComponent,
|
|
4947
|
+
AXColorPalettePickerComponent
|
|
4948
|
+
];
|
|
4949
|
+
class AXColorPaletteModule {
|
|
4950
|
+
}
|
|
4951
|
+
AXColorPaletteModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4952
|
+
AXColorPaletteModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, declarations: [AXColorPalleteComponent,
|
|
4953
|
+
AXColorPalettePreviewComponent,
|
|
4954
|
+
AXColorPaletteSwatchesComponent,
|
|
4955
|
+
AXColorPaletteInputComponent,
|
|
4956
|
+
AXColorPalettePickerComponent], imports: [CommonModule, AXTextBoxModule,
|
|
4957
|
+
AXLabelModule,
|
|
4958
|
+
AXButtonModule,
|
|
4959
|
+
AXDecoratorModule,
|
|
4960
|
+
AXNumberBoxModule], exports: [AXColorPalleteComponent,
|
|
4961
|
+
AXColorPalettePreviewComponent,
|
|
4962
|
+
AXColorPaletteSwatchesComponent,
|
|
4963
|
+
AXColorPaletteInputComponent,
|
|
4964
|
+
AXColorPalettePickerComponent] });
|
|
4965
|
+
AXColorPaletteModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, providers: [], imports: [[CommonModule, ...MODULES$f]] });
|
|
4966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPaletteModule, decorators: [{
|
|
4543
4967
|
type: NgModule,
|
|
4544
4968
|
args: [{
|
|
4545
|
-
declarations: [
|
|
4546
|
-
imports: [CommonModule],
|
|
4547
|
-
exports: [
|
|
4548
|
-
providers: []
|
|
4969
|
+
declarations: [...CONPONENTS],
|
|
4970
|
+
imports: [CommonModule, ...MODULES$f],
|
|
4971
|
+
exports: [...CONPONENTS],
|
|
4972
|
+
providers: [],
|
|
4549
4973
|
}]
|
|
4550
4974
|
}] });
|
|
4551
4975
|
|
|
4552
|
-
class
|
|
4553
|
-
/**
|
|
4554
|
-
* @ignore
|
|
4555
|
-
*/
|
|
4976
|
+
class AXCollapseComponent extends AXBaseComponent {
|
|
4556
4977
|
constructor(elementRef, cdr) {
|
|
4557
4978
|
super(elementRef, cdr);
|
|
4558
|
-
this.
|
|
4559
|
-
this.
|
|
4979
|
+
this.cdr = cdr;
|
|
4980
|
+
this.isCollapsedChange = new EventEmitter();
|
|
4981
|
+
this._isCollapsed = false;
|
|
4982
|
+
this.caption = null;
|
|
4560
4983
|
}
|
|
4561
|
-
get
|
|
4562
|
-
return this.
|
|
4984
|
+
get isCollapsed() {
|
|
4985
|
+
return this._isCollapsed;
|
|
4563
4986
|
}
|
|
4564
|
-
set
|
|
4565
|
-
if (v != this.
|
|
4566
|
-
this.
|
|
4567
|
-
|
|
4568
|
-
this.
|
|
4987
|
+
set isCollapsed(v) {
|
|
4988
|
+
if (v != this._isCollapsed) {
|
|
4989
|
+
this._isCollapsed = v;
|
|
4990
|
+
this.isCollapsedChange.emit(v);
|
|
4991
|
+
this._cdr.detectChanges();
|
|
4569
4992
|
}
|
|
4570
4993
|
}
|
|
4571
|
-
|
|
4572
|
-
|
|
4573
|
-
this._selectedPortal = new ComponentPortal(loading);
|
|
4574
|
-
this._cdr.markForCheck();
|
|
4994
|
+
handleHeaderClick() {
|
|
4995
|
+
this.isCollapsed = !this.isCollapsed;
|
|
4575
4996
|
}
|
|
4576
|
-
|
|
4577
|
-
|
|
4578
|
-
|
|
4579
|
-
|
|
4997
|
+
}
|
|
4998
|
+
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 });
|
|
4999
|
+
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 });
|
|
5000
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseComponent, decorators: [{
|
|
5001
|
+
type: Component,
|
|
5002
|
+
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>" }]
|
|
5003
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { isCollapsedChange: [{
|
|
5004
|
+
type: Output
|
|
5005
|
+
}], isCollapsed: [{
|
|
5006
|
+
type: Input
|
|
5007
|
+
}], caption: [{
|
|
5008
|
+
type: Input
|
|
5009
|
+
}], headerTemplate: [{
|
|
5010
|
+
type: ContentChild,
|
|
5011
|
+
args: ['header', { static: true }]
|
|
5012
|
+
}] } });
|
|
5013
|
+
|
|
5014
|
+
class AXCollapseGroupComponent extends AXBaseComponent {
|
|
5015
|
+
constructor(elementRef, cdr) {
|
|
5016
|
+
super(elementRef, cdr);
|
|
5017
|
+
this.cdr = cdr;
|
|
5018
|
+
this.accordion = false;
|
|
5019
|
+
this.nonCollapsedIndex = 0;
|
|
5020
|
+
this._subs = [];
|
|
5021
|
+
}
|
|
5022
|
+
onViewInit() {
|
|
5023
|
+
if (this.accordion) {
|
|
5024
|
+
this._items.forEach(c => c.isCollapsed = true);
|
|
5025
|
+
this._items.get(this.nonCollapsedIndex).isCollapsed = false;
|
|
5026
|
+
console.log(this._items[this.nonCollapsedIndex]);
|
|
5027
|
+
this._items.forEach((c1) => {
|
|
5028
|
+
this._subs.push(c1.isCollapsedChange.subscribe(e => {
|
|
5029
|
+
if (!e)
|
|
5030
|
+
this._items.toArray().filter(c2 => c2 != c1).forEach(c => c.isCollapsed = true);
|
|
5031
|
+
}));
|
|
5032
|
+
});
|
|
4580
5033
|
}
|
|
4581
5034
|
}
|
|
5035
|
+
onDestroy() {
|
|
5036
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
5037
|
+
this._subs = [];
|
|
5038
|
+
}
|
|
4582
5039
|
}
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
`, isInline: true, directives: [{ type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingComponent, decorators: [{
|
|
5040
|
+
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 });
|
|
5041
|
+
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 });
|
|
5042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseGroupComponent, decorators: [{
|
|
4588
5043
|
type: Component,
|
|
4589
5044
|
args: [{
|
|
4590
|
-
selector: 'ax-
|
|
4591
|
-
template:
|
|
4592
|
-
|
|
4593
|
-
`,
|
|
5045
|
+
selector: 'ax-collapse-group',
|
|
5046
|
+
template: `<ng-content select="ax-collapse"></ng-content>`,
|
|
5047
|
+
host: { class: 'ax-collapse-group' },
|
|
4594
5048
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4595
5049
|
encapsulation: ViewEncapsulation.None,
|
|
4596
|
-
host: { class: 'ax-loading' }
|
|
4597
5050
|
}]
|
|
4598
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
4599
|
-
type: Output
|
|
4600
|
-
}], visible: [{
|
|
4601
|
-
type: Input
|
|
4602
|
-
}], type: [{
|
|
5051
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { accordion: [{
|
|
4603
5052
|
type: Input
|
|
4604
|
-
}],
|
|
5053
|
+
}], nonCollapsedIndex: [{
|
|
4605
5054
|
type: Input
|
|
5055
|
+
}], _items: [{
|
|
5056
|
+
type: ContentChildren,
|
|
5057
|
+
args: [AXCollapseComponent]
|
|
4606
5058
|
}] } });
|
|
4607
5059
|
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
5060
|
+
class AXCollapseModule {
|
|
5061
|
+
}
|
|
5062
|
+
AXCollapseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5063
|
+
AXCollapseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, declarations: [AXCollapseComponent, AXCollapseGroupComponent], imports: [CommonModule], exports: [AXCollapseComponent, AXCollapseGroupComponent] });
|
|
5064
|
+
AXCollapseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, providers: [], imports: [[CommonModule]] });
|
|
5065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXCollapseModule, decorators: [{
|
|
5066
|
+
type: NgModule,
|
|
5067
|
+
args: [{
|
|
5068
|
+
declarations: [AXCollapseComponent, AXCollapseGroupComponent],
|
|
5069
|
+
imports: [CommonModule],
|
|
5070
|
+
exports: [AXCollapseComponent, AXCollapseGroupComponent],
|
|
5071
|
+
providers: [],
|
|
5072
|
+
}]
|
|
5073
|
+
}] });
|
|
5074
|
+
|
|
5075
|
+
class AXPopoverComponent extends AXInteractiveComponenetMixin {
|
|
5076
|
+
constructor(_elementRef, _cdr, _zone, _overlay, _platform, _viewContainerRef) {
|
|
4618
5077
|
super(_elementRef, _cdr);
|
|
4619
5078
|
this._elementRef = _elementRef;
|
|
4620
5079
|
this._cdr = _cdr;
|
|
4621
5080
|
this._zone = _zone;
|
|
5081
|
+
this._overlay = _overlay;
|
|
4622
5082
|
this._platform = _platform;
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
5083
|
+
this._viewContainerRef = _viewContainerRef;
|
|
5084
|
+
this.position = [
|
|
5085
|
+
{
|
|
5086
|
+
originX: 'start',
|
|
5087
|
+
originY: 'bottom',
|
|
5088
|
+
overlayX: 'start',
|
|
5089
|
+
overlayY: 'top',
|
|
5090
|
+
},
|
|
5091
|
+
{
|
|
5092
|
+
originX: 'start',
|
|
5093
|
+
originY: 'top',
|
|
5094
|
+
overlayX: 'start',
|
|
5095
|
+
overlayY: 'bottom'
|
|
5096
|
+
}
|
|
5097
|
+
];
|
|
5098
|
+
this._subs = [];
|
|
5099
|
+
//
|
|
5100
|
+
this.openTrigger = 'toggle';
|
|
5101
|
+
//
|
|
5102
|
+
this.closeTrigger = 'clickout';
|
|
5103
|
+
//
|
|
5104
|
+
this.hasBackdrop = false;
|
|
5105
|
+
this.adaptivityEnabled = false;
|
|
5106
|
+
//
|
|
5107
|
+
this._mousePos = { x: 0, y: 0 };
|
|
5108
|
+
this._isScrollAttached = false;
|
|
5109
|
+
//
|
|
5110
|
+
this.onOpened = new EventEmitter();
|
|
5111
|
+
this.onClosed = new EventEmitter();
|
|
4639
5112
|
}
|
|
4640
|
-
get
|
|
4641
|
-
return this.
|
|
5113
|
+
get target() {
|
|
5114
|
+
return this._target;
|
|
4642
5115
|
}
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
5116
|
+
set target(v) {
|
|
5117
|
+
if (v instanceof HTMLElement)
|
|
5118
|
+
this._target = v;
|
|
5119
|
+
else if (v instanceof ElementRef)
|
|
5120
|
+
this._target = v.nativeElement;
|
|
5121
|
+
else if (v instanceof AXBaseComponent)
|
|
5122
|
+
this._target = v._getInnerElement();
|
|
4646
5123
|
}
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
5124
|
+
_emitOnOpenedEvent() {
|
|
5125
|
+
this.onOpened.emit({
|
|
5126
|
+
component: this,
|
|
5127
|
+
htmlElement: this._getHostElement()
|
|
5128
|
+
});
|
|
4650
5129
|
}
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
5130
|
+
_emitOnClosedEvent() {
|
|
5131
|
+
this.onClosed.emit({
|
|
5132
|
+
component: this,
|
|
5133
|
+
htmlElement: this._getHostElement()
|
|
5134
|
+
});
|
|
4655
5135
|
}
|
|
5136
|
+
//
|
|
4656
5137
|
onViewInit() {
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
5138
|
+
if (this._target) {
|
|
5139
|
+
if (this.openTrigger === 'mouseover') {
|
|
5140
|
+
const mouseEnter$ = fromEvent(this._target, 'mouseover');
|
|
5141
|
+
this._addSub(mouseEnter$.subscribe(e => {
|
|
5142
|
+
const point = { x: e.clientX, y: e.clientY };
|
|
5143
|
+
if (AXDrawingUtil.isInElementBound(point, this._target))
|
|
5144
|
+
this.open();
|
|
5145
|
+
}));
|
|
5146
|
+
}
|
|
5147
|
+
if (this.closeTrigger === 'mouseout') {
|
|
5148
|
+
const mouseMove$ = fromEvent(document, 'mousemove');
|
|
5149
|
+
this._addSub(mouseMove$.pipe(throttleTime(50)).subscribe(e => {
|
|
5150
|
+
this._mousePos.x = e.clientX;
|
|
5151
|
+
this._mousePos.y = e.clientY;
|
|
5152
|
+
if (this.isOpen) {
|
|
5153
|
+
setTimeout(() => {
|
|
5154
|
+
if (!_.some([this._target, this._overlayRef.overlayElement], el => _.includes(document.elementsFromPoint(this._mousePos.x, this._mousePos.y), el)))
|
|
5155
|
+
this.close();
|
|
5156
|
+
}, 100);
|
|
5157
|
+
}
|
|
5158
|
+
}));
|
|
5159
|
+
}
|
|
5160
|
+
//
|
|
5161
|
+
if (this.openTrigger === 'click' || this.openTrigger === 'toggle') {
|
|
5162
|
+
const click$ = fromEvent(this._target, 'click');
|
|
5163
|
+
this._addSub(click$.subscribe(e => {
|
|
5164
|
+
this.openTrigger == 'toggle' ? this.toggle() : this.open();
|
|
5165
|
+
}));
|
|
5166
|
+
}
|
|
4677
5167
|
}
|
|
4678
|
-
this._fetchData();
|
|
4679
5168
|
}
|
|
4680
|
-
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
5169
|
+
//
|
|
5170
|
+
onDestroy() {
|
|
5171
|
+
this._overlayRef?.detach();
|
|
5172
|
+
this._overlayRef?.dispose();
|
|
5173
|
+
this._subs.forEach(s => {
|
|
5174
|
+
s?.unsubscribe();
|
|
5175
|
+
});
|
|
4685
5176
|
}
|
|
4686
|
-
|
|
4687
|
-
if (
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
}, 100);
|
|
5177
|
+
_handleKeydownHandler(e) {
|
|
5178
|
+
// if (e.key === 'Enter' && e.type === 'keydown') {
|
|
5179
|
+
// this.toggle();
|
|
5180
|
+
// }
|
|
5181
|
+
if (e.key === 'Escape') {
|
|
5182
|
+
if (this.isOpen) {
|
|
5183
|
+
this.close();
|
|
5184
|
+
e.stopPropagation();
|
|
5185
|
+
}
|
|
4696
5186
|
}
|
|
4697
5187
|
}
|
|
4698
|
-
|
|
4699
|
-
|
|
5188
|
+
toggle() {
|
|
5189
|
+
this.isOpen ? this.close() : this.open();
|
|
4700
5190
|
}
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
5191
|
+
//
|
|
5192
|
+
close() {
|
|
5193
|
+
if (!this.isOpen) {
|
|
5194
|
+
return;
|
|
5195
|
+
}
|
|
5196
|
+
this._overlayRef?.detach();
|
|
5197
|
+
this._emitOnClosedEvent();
|
|
4704
5198
|
}
|
|
4705
|
-
|
|
4706
|
-
this.unselectItems(item);
|
|
4707
|
-
e.stopPropagation();
|
|
5199
|
+
dispose() {
|
|
4708
5200
|
this.close();
|
|
5201
|
+
this._overlayRef?.dispose();
|
|
5202
|
+
this._overlayRef = null;
|
|
4709
5203
|
}
|
|
4710
|
-
|
|
4711
|
-
|
|
4712
|
-
if (
|
|
4713
|
-
((this.allowNull === true && this.selectedItems.length > 0) ||
|
|
4714
|
-
(this.allowNull !== true && this.selectedItems.length > 1))) {
|
|
4715
|
-
this.isUserInput = true;
|
|
4716
|
-
this.unselectItems(this.selectedItems.pop());
|
|
4717
|
-
e.preventDefault();
|
|
5204
|
+
//
|
|
5205
|
+
open() {
|
|
5206
|
+
if (this.isOpen) {
|
|
4718
5207
|
return;
|
|
4719
5208
|
}
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
5209
|
+
this._ensureOverlayCreated();
|
|
5210
|
+
this._overlayRef.attach(this._templatePortal);
|
|
5211
|
+
this._emitOnOpenedEvent();
|
|
5212
|
+
}
|
|
5213
|
+
_ensureOverlayCreated() {
|
|
5214
|
+
const targetRef = this._target;
|
|
5215
|
+
if (!targetRef)
|
|
5216
|
+
return;
|
|
5217
|
+
if (!this._overlayRef) {
|
|
5218
|
+
if (this._platform.is('Mobile') && this.adaptivityEnabled) {
|
|
5219
|
+
this._openAsActionsheet();
|
|
4723
5220
|
}
|
|
4724
5221
|
else {
|
|
4725
|
-
this.
|
|
4726
|
-
if (e.ctrlKey || e.code === 'Space') {
|
|
4727
|
-
this.open();
|
|
4728
|
-
}
|
|
4729
|
-
else {
|
|
4730
|
-
this._selectedItemByNav((e.key === 'ArrowDown' ? 1 : -1));
|
|
4731
|
-
}
|
|
5222
|
+
this._openAsPopover(targetRef);
|
|
4732
5223
|
}
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
}
|
|
4742
|
-
}
|
|
4743
|
-
_handlePopoverKeydown(e) {
|
|
4744
|
-
if (e.target.tagName == "INPUT" && ['Space', 'Backspace'].includes(e.code))
|
|
4745
|
-
return;
|
|
4746
|
-
if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0) {
|
|
4747
|
-
this.isUserInput = true;
|
|
4748
|
-
this._focusItemByNav((e.key === 'ArrowDown' ? 1 : -1));
|
|
4749
|
-
e.preventDefault();
|
|
4750
|
-
}
|
|
4751
|
-
else if (e.code === 'Backspace' &&
|
|
4752
|
-
((this.allowNull === true && this.selectedItems.length > 0) ||
|
|
4753
|
-
(this.allowNull !== true && this.selectedItems.length > 1))) {
|
|
4754
|
-
this.isUserInput = true;
|
|
4755
|
-
this.unselectItems(this.selectedItems.pop());
|
|
4756
|
-
e.preventDefault();
|
|
4757
|
-
}
|
|
4758
|
-
else if ((e.code === 'Space' || e.code === 'Enter')) {
|
|
4759
|
-
debugger;
|
|
4760
|
-
e.preventDefault();
|
|
4761
|
-
const focusedItemId = this.listContainer.nativeElement.querySelector('.ax-state-focus')?.dataset?.id;
|
|
4762
|
-
const focusedItem = _.findLast(this.flatItems, [this.valueField, focusedItemId]);
|
|
4763
|
-
if (focusedItem) {
|
|
4764
|
-
if (this.isItemDisabled(focusedItem)) {
|
|
4765
|
-
return;
|
|
4766
|
-
}
|
|
4767
|
-
if (this.multiple) {
|
|
4768
|
-
this.isUserInput = true;
|
|
4769
|
-
this.toggleSelect(focusedItem);
|
|
4770
|
-
}
|
|
4771
|
-
else {
|
|
4772
|
-
this.isUserInput = true;
|
|
4773
|
-
this.selectItems(focusedItem);
|
|
4774
|
-
this.close();
|
|
4775
|
-
}
|
|
5224
|
+
if (this.closeTrigger == 'clickout') {
|
|
5225
|
+
this._addSub(this._overlayRef._outsidePointerEvents.subscribe(c => {
|
|
5226
|
+
const target = c.target;
|
|
5227
|
+
const comElem = targetRef;
|
|
5228
|
+
if (!(comElem.contains(target))) {
|
|
5229
|
+
this.close();
|
|
5230
|
+
}
|
|
5231
|
+
}));
|
|
4776
5232
|
}
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
this.close();
|
|
4785
|
-
e.preventDefault();
|
|
4786
|
-
e.stopPropagation();
|
|
4787
|
-
}
|
|
4788
|
-
}
|
|
4789
|
-
async _handlePopupOnOpened(e) {
|
|
4790
|
-
this.popover.focus();
|
|
4791
|
-
if (this.displayItems.length == 0) {
|
|
4792
|
-
this._forceFocus = true;
|
|
4793
|
-
this._fetchData();
|
|
4794
|
-
}
|
|
4795
|
-
else {
|
|
4796
|
-
this._focusSelectedItem();
|
|
4797
|
-
}
|
|
4798
|
-
debugger;
|
|
4799
|
-
if (this._searchBox && !this._isMobile) {
|
|
4800
|
-
this._searchBox.focus();
|
|
4801
|
-
}
|
|
4802
|
-
}
|
|
4803
|
-
_handlePopupOnClosed(e) {
|
|
4804
|
-
this.focus();
|
|
4805
|
-
}
|
|
4806
|
-
_focusItemByNav(sign) {
|
|
4807
|
-
const list = this.listContainer.nativeElement;
|
|
4808
|
-
const fn = (s) => list.querySelector(s);
|
|
4809
|
-
const itemDiv = fn(`.ax-list-item.ax-state-focus`) || fn(`.ax-list-item.ax-state-selected`) || fn(`.ax-list-item`);
|
|
4810
|
-
let next = (sign == 1 ? itemDiv.nextElementSibling : itemDiv.previousElementSibling);
|
|
4811
|
-
if (next) {
|
|
4812
|
-
this._focusItemElement(next);
|
|
4813
|
-
}
|
|
4814
|
-
else {
|
|
4815
|
-
const parent = itemDiv.closest('.ax-list-item-group');
|
|
4816
|
-
if (parent) {
|
|
4817
|
-
const lis = (sign == 1 ? parent.nextElementSibling : parent.previousElementSibling)?.querySelectorAll('li');
|
|
4818
|
-
const a = sign == 1 ? _.first(lis) : _.last(lis);
|
|
4819
|
-
if (a) {
|
|
4820
|
-
this._focusItemElement(a);
|
|
5233
|
+
this._addSub(this._overlayRef.attachments().subscribe(() => {
|
|
5234
|
+
if (!this._isScrollAttached) {
|
|
5235
|
+
this._addSub(this._platform.scroll.subscribe(c => {
|
|
5236
|
+
if (!c.nativeEvent.target.closest('.ax-overlay-pane'))
|
|
5237
|
+
this.updatePosition();
|
|
5238
|
+
}));
|
|
5239
|
+
this._isScrollAttached = true;
|
|
4821
5240
|
}
|
|
4822
|
-
}
|
|
5241
|
+
}));
|
|
5242
|
+
}
|
|
5243
|
+
if (!this._templatePortal) {
|
|
5244
|
+
this._templatePortal = new TemplatePortal(this._baseTemplate, this._viewContainerRef);
|
|
4823
5245
|
}
|
|
4824
5246
|
}
|
|
4825
|
-
|
|
4826
|
-
this.
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
5247
|
+
_openAsPopover(targetRef) {
|
|
5248
|
+
this._overlayRef = this._overlay.create({
|
|
5249
|
+
positionStrategy: this._overlay.position()
|
|
5250
|
+
.flexibleConnectedTo(targetRef)
|
|
5251
|
+
.withPositions(Array.isArray(this.position) ? this.position : [this.position])
|
|
5252
|
+
.withPush(false),
|
|
5253
|
+
disposeOnNavigation: true,
|
|
5254
|
+
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
5255
|
+
maxHeight: 'unset',
|
|
5256
|
+
hasBackdrop: this.hasBackdrop,
|
|
5257
|
+
backdropClass: [this.backdropClass || 'cdk-overlay-transparent-backdrop']
|
|
4833
5258
|
});
|
|
4834
5259
|
}
|
|
4835
|
-
|
|
4836
|
-
this.
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
else {
|
|
4844
|
-
c.classList.remove('ax-state-focus');
|
|
5260
|
+
_openAsActionsheet() {
|
|
5261
|
+
this._overlayRef = this._overlay.create({
|
|
5262
|
+
positionStrategy: this._overlay.position().flexibleConnectedTo(document.body).withPositions([
|
|
5263
|
+
{
|
|
5264
|
+
originX: 'center',
|
|
5265
|
+
originY: 'bottom',
|
|
5266
|
+
overlayX: 'center',
|
|
5267
|
+
overlayY: 'bottom'
|
|
4845
5268
|
}
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
5269
|
+
]),
|
|
5270
|
+
disposeOnNavigation: true,
|
|
5271
|
+
panelClass: ['ax-animate-slideInUp', 'ax-animate-faster'],
|
|
5272
|
+
hasBackdrop: true,
|
|
5273
|
+
width: '100%'
|
|
4851
5274
|
});
|
|
4852
5275
|
}
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
let i = 0;
|
|
4856
|
-
if (last) {
|
|
4857
|
-
i = _.findLastIndex(this.flatItems, [this.valueField, last[this.valueField]]);
|
|
4858
|
-
}
|
|
4859
|
-
i += sign;
|
|
4860
|
-
let next = _.nth(this.flatItems, i);
|
|
4861
|
-
while (next?.children && next?.children.length) {
|
|
4862
|
-
i += sign;
|
|
4863
|
-
next = _.nth(this.flatItems, i);
|
|
4864
|
-
}
|
|
4865
|
-
if (next) {
|
|
4866
|
-
this.selectItems(next);
|
|
4867
|
-
}
|
|
4868
|
-
else if (next == null && sign == 1) {
|
|
4869
|
-
this._fetchData();
|
|
4870
|
-
}
|
|
4871
|
-
}
|
|
4872
|
-
_onSearchExprChanged(e) {
|
|
4873
|
-
this.empty();
|
|
4874
|
-
this._forceFocus = true;
|
|
4875
|
-
this._fetchData();
|
|
5276
|
+
get isOpen() {
|
|
5277
|
+
return this._overlayRef ? this._overlayRef.hasAttached() : false;
|
|
4876
5278
|
}
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
this.empty();
|
|
4880
|
-
this._forceFocus = true;
|
|
4881
|
-
this._fetchData();
|
|
5279
|
+
_addSub(sub) {
|
|
5280
|
+
this._subs.push(sub);
|
|
4882
5281
|
}
|
|
4883
|
-
|
|
4884
|
-
|
|
5282
|
+
updatePosition() {
|
|
5283
|
+
this._overlayRef?.updatePosition();
|
|
5284
|
+
this.focus();
|
|
4885
5285
|
}
|
|
4886
5286
|
}
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
], queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n \r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n \r\n </div>\r\n</ax-popover> ", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4891
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerComponent, decorators: [{
|
|
5287
|
+
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 });
|
|
5288
|
+
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 });
|
|
5289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverComponent, decorators: [{
|
|
4892
5290
|
type: Component,
|
|
4893
|
-
args: [{ selector: 'ax-
|
|
4894
|
-
|
|
4895
|
-
], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n \r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n \r\n </div>\r\n</ax-popover> " }]
|
|
4896
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$3.AXPlatform }]; }, propDecorators: { popover: [{
|
|
4897
|
-
type: ViewChild,
|
|
4898
|
-
args: [AXPopoverComponent, { static: true }]
|
|
4899
|
-
}], clearButton: [{
|
|
5291
|
+
args: [{ selector: 'ax-popover', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #baseTemplate>\r\n <ng-content></ng-content>\r\n</ng-template>" }]
|
|
5292
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1.Overlay }, { type: i1$4.AXPlatform }, { type: i0.ViewContainerRef }]; }, propDecorators: { target: [{
|
|
4900
5293
|
type: Input
|
|
4901
|
-
}],
|
|
5294
|
+
}], position: [{
|
|
4902
5295
|
type: Input
|
|
4903
|
-
}],
|
|
5296
|
+
}], _baseTemplate: [{
|
|
4904
5297
|
type: ViewChild,
|
|
4905
|
-
args: ['
|
|
4906
|
-
}],
|
|
4907
|
-
type:
|
|
4908
|
-
|
|
4909
|
-
|
|
5298
|
+
args: ['baseTemplate']
|
|
5299
|
+
}], openTrigger: [{
|
|
5300
|
+
type: Input
|
|
5301
|
+
}], closeTrigger: [{
|
|
5302
|
+
type: Input
|
|
5303
|
+
}], hasBackdrop: [{
|
|
5304
|
+
type: Input
|
|
5305
|
+
}], backdropClass: [{
|
|
5306
|
+
type: Input
|
|
5307
|
+
}], adaptivityEnabled: [{
|
|
5308
|
+
type: Input
|
|
5309
|
+
}], onOpened: [{
|
|
5310
|
+
type: Output
|
|
5311
|
+
}], onClosed: [{
|
|
5312
|
+
type: Output
|
|
5313
|
+
}], _handleKeydownHandler: [{
|
|
4910
5314
|
type: HostListener,
|
|
4911
5315
|
args: ['keydown', ['$event']]
|
|
4912
5316
|
}] } });
|
|
4913
5317
|
|
|
5318
|
+
class AXPopoverModule {
|
|
5319
|
+
}
|
|
5320
|
+
AXPopoverModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5321
|
+
AXPopoverModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, declarations: [AXPopoverComponent], imports: [CommonModule], exports: [AXPopoverComponent] });
|
|
5322
|
+
AXPopoverModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, providers: [], imports: [[CommonModule]] });
|
|
5323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopoverModule, decorators: [{
|
|
5324
|
+
type: NgModule,
|
|
5325
|
+
args: [{
|
|
5326
|
+
declarations: [AXPopoverComponent],
|
|
5327
|
+
imports: [CommonModule],
|
|
5328
|
+
exports: [AXPopoverComponent],
|
|
5329
|
+
providers: []
|
|
5330
|
+
}]
|
|
5331
|
+
}] });
|
|
5332
|
+
|
|
5333
|
+
const AXBaseColorPickerMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_ValueComponenetMixin(_TextboxComponenetMixin(AXBaseComponent))));
|
|
4914
5334
|
/**
|
|
4915
|
-
* The
|
|
5335
|
+
* The Button is a component which detects user interaction and triggers a corresponding event
|
|
4916
5336
|
*
|
|
4917
5337
|
* @category Components
|
|
4918
5338
|
*/
|
|
4919
|
-
class
|
|
5339
|
+
class AXColorPickerComponent extends AXBaseColorPickerMixin {
|
|
4920
5340
|
/**
|
|
4921
5341
|
* @ignore
|
|
4922
5342
|
*/
|
|
4923
|
-
constructor(
|
|
4924
|
-
super(
|
|
5343
|
+
constructor(_elementRef, _cdr, _zone, _platform) {
|
|
5344
|
+
super(_elementRef, _cdr);
|
|
5345
|
+
this._elementRef = _elementRef;
|
|
5346
|
+
this._zone = _zone;
|
|
5347
|
+
this._platform = _platform;
|
|
5348
|
+
this._mode = 'hex';
|
|
5349
|
+
this._isMobile = false;
|
|
5350
|
+
this._isMobile = this._platform.is('Mobile');
|
|
5351
|
+
this._platform.resize.subscribe(() => {
|
|
5352
|
+
this._isMobile = this._platform.is('Mobile');
|
|
5353
|
+
this.popover.dispose();
|
|
5354
|
+
});
|
|
5355
|
+
}
|
|
5356
|
+
_handleArrowClickEvent(e) {
|
|
5357
|
+
e.nativeEvent.stopPropagation();
|
|
5358
|
+
this.toggle();
|
|
5359
|
+
}
|
|
5360
|
+
_handleInputClickEvent(e) {
|
|
5361
|
+
e.stopPropagation();
|
|
5362
|
+
this.toggle();
|
|
5363
|
+
}
|
|
5364
|
+
onInit() {
|
|
5365
|
+
super.onInit();
|
|
5366
|
+
this._target = this._elementRef.nativeElement;
|
|
5367
|
+
}
|
|
5368
|
+
onViewInit() {
|
|
5369
|
+
super.onViewInit();
|
|
5370
|
+
}
|
|
5371
|
+
_onValueChanged(oldValue, newValue) {
|
|
5372
|
+
super._onValueChanged(oldValue, newValue);
|
|
5373
|
+
this._colorCode = AXColorUtil.to(newValue, this._mode);
|
|
5374
|
+
}
|
|
5375
|
+
async _handlePopupOnOpened(e) {
|
|
5376
|
+
}
|
|
5377
|
+
_handlePopupOnClosed(e) {
|
|
5378
|
+
this.focus();
|
|
4925
5379
|
}
|
|
4926
5380
|
}
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
5381
|
+
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 });
|
|
5382
|
+
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: [
|
|
5383
|
+
{ provide: AXClosbaleComponent, useExisting: AXColorPickerComponent }
|
|
5384
|
+
], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div *ngIf=\"value\" class=\"color-badge\" [ngStyle]=\"{'background-color': value}\"></div>\r\n <div class=\"ax-uppercase\">{{_colorCode}}</div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\" *ngIf=\"value && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\"\r\n [adaptivityEnabled]=\"true\" (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\">\r\n <ax-color-palette [(value)]=\"value\" [(mode)]=\"_mode\">\r\n </ax-color-palette>\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXColorPalleteComponent, selector: "ax-color-palette", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "mode"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged", "modeChange"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i7.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerComponent, decorators: [{
|
|
4930
5386
|
type: Component,
|
|
4931
|
-
args: [{ selector: 'ax-
|
|
4932
|
-
|
|
5387
|
+
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: [
|
|
5388
|
+
{ provide: AXClosbaleComponent, useExisting: AXColorPickerComponent }
|
|
5389
|
+
], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div *ngIf=\"value\" class=\"color-badge\" [ngStyle]=\"{'background-color': value}\"></div>\r\n <div class=\"ax-uppercase\">{{_colorCode}}</div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\" *ngIf=\"value && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\"\r\n [adaptivityEnabled]=\"true\" (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\">\r\n <ax-color-palette [(value)]=\"value\" [(mode)]=\"_mode\">\r\n </ax-color-palette>\r\n </div>\r\n</ax-popover>" }]
|
|
5390
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
|
|
5391
|
+
type: ViewChild,
|
|
5392
|
+
args: [AXPopoverComponent, { static: true }]
|
|
5393
|
+
}] } });
|
|
4933
5394
|
|
|
4934
|
-
class
|
|
5395
|
+
class AXLoadingComponent extends AXBaseComponentMixin {
|
|
5396
|
+
/**
|
|
5397
|
+
* @ignore
|
|
5398
|
+
*/
|
|
5399
|
+
constructor(elementRef, cdr) {
|
|
5400
|
+
super(elementRef, cdr);
|
|
5401
|
+
this.visibleChange = new EventEmitter();
|
|
5402
|
+
this.type = 'spinner';
|
|
5403
|
+
}
|
|
5404
|
+
get visible() {
|
|
5405
|
+
return this._visible;
|
|
5406
|
+
}
|
|
5407
|
+
set visible(v) {
|
|
5408
|
+
if (v != this._visible) {
|
|
5409
|
+
this._visible = v;
|
|
5410
|
+
v ? this._getHostElement().classList.remove('ax-hide') : this._getHostElement().classList.add('ax-hide');
|
|
5411
|
+
this.visibleChange.emit(v);
|
|
5412
|
+
}
|
|
5413
|
+
}
|
|
5414
|
+
onInit() {
|
|
5415
|
+
const loading = AXConfig.get(`layout.loading.${this.type}`);
|
|
5416
|
+
this._selectedPortal = new ComponentPortal(loading);
|
|
5417
|
+
this._cdr.markForCheck();
|
|
5418
|
+
}
|
|
5419
|
+
_handleAttched(ref) {
|
|
5420
|
+
ref = ref;
|
|
5421
|
+
if (ref.instance) {
|
|
5422
|
+
ref.instance.text = this.text;
|
|
5423
|
+
}
|
|
5424
|
+
}
|
|
4935
5425
|
}
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
CommonModule,
|
|
4943
|
-
FormsModule,
|
|
4944
|
-
AXButtonModule,
|
|
4945
|
-
AXDecoratorModule,
|
|
4946
|
-
NgxMaskModule.forChild()
|
|
4947
|
-
]] });
|
|
4948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXTextBoxModule, decorators: [{
|
|
4949
|
-
type: NgModule,
|
|
5426
|
+
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 });
|
|
5427
|
+
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: `
|
|
5428
|
+
<ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
|
|
5429
|
+
`, isInline: true, directives: [{ type: i1$5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingComponent, decorators: [{
|
|
5431
|
+
type: Component,
|
|
4950
5432
|
args: [{
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
exports: [AXTextBoxComponent],
|
|
4959
|
-
declarations: [AXTextBoxComponent],
|
|
4960
|
-
providers: [],
|
|
5433
|
+
selector: 'ax-loading',
|
|
5434
|
+
template: `
|
|
5435
|
+
<ng-template [cdkPortalOutlet]="_selectedPortal" (attached)="_handleAttched($event)"></ng-template>
|
|
5436
|
+
`,
|
|
5437
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5438
|
+
encapsulation: ViewEncapsulation.None,
|
|
5439
|
+
host: { class: 'ax-loading' }
|
|
4961
5440
|
}]
|
|
4962
|
-
}] }
|
|
5441
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { visibleChange: [{
|
|
5442
|
+
type: Output
|
|
5443
|
+
}], visible: [{
|
|
5444
|
+
type: Input
|
|
5445
|
+
}], type: [{
|
|
5446
|
+
type: Input
|
|
5447
|
+
}], text: [{
|
|
5448
|
+
type: Input
|
|
5449
|
+
}] } });
|
|
4963
5450
|
|
|
4964
5451
|
class AXLoadingSpinnerComponent {
|
|
4965
5452
|
}
|
|
@@ -5057,8 +5544,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
5057
5544
|
args: ['axIsLoading']
|
|
5058
5545
|
}] } });
|
|
5059
5546
|
|
|
5060
|
-
const COMPONENT$
|
|
5061
|
-
const MODULES$
|
|
5547
|
+
const COMPONENT$e = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
|
|
5548
|
+
const MODULES$e = [CommonModule, OverlayModule, PortalModule];
|
|
5062
5549
|
class AXLoadingModule {
|
|
5063
5550
|
constructor() {
|
|
5064
5551
|
AXConfig.set({
|
|
@@ -5072,13 +5559,13 @@ class AXLoadingModule {
|
|
|
5072
5559
|
}
|
|
5073
5560
|
AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5074
5561
|
AXLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] });
|
|
5075
|
-
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$
|
|
5562
|
+
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$e]] });
|
|
5076
5563
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXLoadingModule, decorators: [{
|
|
5077
5564
|
type: NgModule,
|
|
5078
5565
|
args: [{
|
|
5079
|
-
declarations: [...COMPONENT$
|
|
5080
|
-
imports: [...MODULES$
|
|
5081
|
-
exports: [...COMPONENT$
|
|
5566
|
+
declarations: [...COMPONENT$e],
|
|
5567
|
+
imports: [...MODULES$e],
|
|
5568
|
+
exports: [...COMPONENT$e],
|
|
5082
5569
|
providers: [],
|
|
5083
5570
|
}]
|
|
5084
5571
|
}], ctorParameters: function () { return []; } });
|
|
@@ -5243,8 +5730,10 @@ AXColorPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
|
|
|
5243
5730
|
A11yModule,
|
|
5244
5731
|
AXLoadingModule,
|
|
5245
5732
|
AXTranslationModule,
|
|
5246
|
-
AXTextBoxModule
|
|
5247
|
-
|
|
5733
|
+
AXTextBoxModule,
|
|
5734
|
+
AXColorPaletteModule], exports: [AXColorPickerComponent] });
|
|
5735
|
+
AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerModule, providers: [], imports: [[
|
|
5736
|
+
CommonModule,
|
|
5248
5737
|
AXCommonModule,
|
|
5249
5738
|
FormsModule,
|
|
5250
5739
|
AXDecoratorModule,
|
|
@@ -5253,12 +5742,14 @@ AXColorPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
|
|
|
5253
5742
|
A11yModule,
|
|
5254
5743
|
AXLoadingModule,
|
|
5255
5744
|
AXTranslationModule,
|
|
5256
|
-
AXTextBoxModule
|
|
5745
|
+
AXTextBoxModule,
|
|
5746
|
+
AXColorPaletteModule
|
|
5257
5747
|
]] });
|
|
5258
5748
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXColorPickerModule, decorators: [{
|
|
5259
5749
|
type: NgModule,
|
|
5260
5750
|
args: [{
|
|
5261
|
-
imports: [
|
|
5751
|
+
imports: [
|
|
5752
|
+
CommonModule,
|
|
5262
5753
|
AXCommonModule,
|
|
5263
5754
|
FormsModule,
|
|
5264
5755
|
AXDecoratorModule,
|
|
@@ -5267,7 +5758,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
5267
5758
|
A11yModule,
|
|
5268
5759
|
AXLoadingModule,
|
|
5269
5760
|
AXTranslationModule,
|
|
5270
|
-
AXTextBoxModule
|
|
5761
|
+
AXTextBoxModule,
|
|
5762
|
+
AXColorPaletteModule
|
|
5271
5763
|
],
|
|
5272
5764
|
exports: [AXColorPickerComponent],
|
|
5273
5765
|
declarations: [AXColorPickerComponent],
|
|
@@ -5320,7 +5812,7 @@ class AXDataListComponent extends AXBaseSelectionValueMixin {
|
|
|
5320
5812
|
}
|
|
5321
5813
|
}
|
|
5322
5814
|
AXDataListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5323
|
-
AXDataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDataListComponent, selector: "ax-datalist", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", items: "items", pageSize: "pageSize", itemTemplate: "itemTemplate", emptyTemplate: "emptyTemplate", loadingTemplate: "loadingTemplate" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-list ax-list-container" }, queries: [{ propertyName: "_contentItemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true, static: true }, { propertyName: "_contentloadingTemplate", first: true, predicate: ["loadingTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "_container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-list-items-container ax-default ax-vertical\" (scroll)=\"_handleListScroll($event)\" #container>\r\n <ng-container *ngFor=\"let item of displayItems;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ item ? _getItemDisplayTextTemplte(item) : 'Loading...'}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>", components: [{ type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$
|
|
5815
|
+
AXDataListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDataListComponent, selector: "ax-datalist", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", items: "items", pageSize: "pageSize", itemTemplate: "itemTemplate", emptyTemplate: "emptyTemplate", loadingTemplate: "loadingTemplate" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-list ax-list-container" }, queries: [{ propertyName: "_contentItemTemplate", first: true, predicate: ["itemTemplate"], descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true, static: true }, { propertyName: "_contentloadingTemplate", first: true, predicate: ["loadingTemplate"], descendants: true, static: true }], viewQueries: [{ propertyName: "_container", first: true, predicate: ["container"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-list-items-container ax-default ax-vertical\" (scroll)=\"_handleListScroll($event)\" #container>\r\n <ng-container *ngFor=\"let item of displayItems;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ item ? _getItemDisplayTextTemplte(item) : 'Loading...'}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>", components: [{ type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5324
5816
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListComponent, decorators: [{
|
|
5325
5817
|
type: Component,
|
|
5326
5818
|
args: [{ selector: 'ax-datalist', inputs: ['disabled', 'readonly', 'tabIndex', 'size', 'value', 'items', 'pageSize'], outputs: ['valueChange', 'onValueChanged', 'onBlur', 'onFocus'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-list ax-list-container' }, template: "<div class=\"ax-list-items-container ax-default ax-vertical\" (scroll)=\"_handleListScroll($event)\" #container>\r\n <ng-container *ngFor=\"let item of displayItems;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else elseTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\">\r\n {{ item ? _getItemDisplayTextTemplte(item) : 'Loading...'}}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"(displayItems==null || displayItems.length==0) && !isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"elseEmptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n Empty!\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-list-loading-container\">\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</div>" }]
|
|
@@ -5344,19 +5836,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
5344
5836
|
type: Input
|
|
5345
5837
|
}] } });
|
|
5346
5838
|
|
|
5347
|
-
const COMPONENT$
|
|
5348
|
-
const MODULES$
|
|
5839
|
+
const COMPONENT$d = [AXDataListComponent];
|
|
5840
|
+
const MODULES$d = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
|
|
5349
5841
|
class AXDataListModule {
|
|
5350
5842
|
}
|
|
5351
5843
|
AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5352
5844
|
AXDataListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, declarations: [AXDataListComponent], imports: [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule], exports: [AXDataListComponent] });
|
|
5353
|
-
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$
|
|
5845
|
+
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$d]] });
|
|
5354
5846
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDataListModule, decorators: [{
|
|
5355
5847
|
type: NgModule,
|
|
5356
5848
|
args: [{
|
|
5357
|
-
declarations: [...COMPONENT$
|
|
5358
|
-
imports: [...MODULES$
|
|
5359
|
-
exports: [...COMPONENT$
|
|
5849
|
+
declarations: [...COMPONENT$d],
|
|
5850
|
+
imports: [...MODULES$d],
|
|
5851
|
+
exports: [...COMPONENT$d],
|
|
5360
5852
|
providers: [],
|
|
5361
5853
|
}]
|
|
5362
5854
|
}] });
|
|
@@ -5508,12 +6000,12 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
5508
6000
|
input.setSelectionRange(start, end);
|
|
5509
6001
|
}
|
|
5510
6002
|
}
|
|
5511
|
-
AXDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$
|
|
6003
|
+
AXDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$4.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
5512
6004
|
AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDatePickerComponent, selector: "ax-date-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format", interface: "interface" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", typeChange: "typeChange", disabledDatesChange: "disabledDatesChange", holidayDatesChange: "holidayDatesChange", onNavigate: "onNavigate", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, providers: [{ provide: AXClosbaleComponent, useExisting: AXDatePickerComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_calendar", first: true, predicate: AXCalendarComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-calendar-options\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }, { type: AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "debounceTime", "name", "checked", "disabled", "tabIndex", "depth", "activeView", "min", "max", "disabledDates", "type", "holidayDates", "interface"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus", "depthChange", "typeChange", "disabledDatesChange", "holidayDatesChange", "onNavigate"] }], directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5513
6005
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatePickerComponent, decorators: [{
|
|
5514
6006
|
type: Component,
|
|
5515
6007
|
args: [{ selector: 'ax-date-picker', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...CALENDAR_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...CALENDAR_OUTPUTS], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXDatePickerComponent }], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-calendar-options\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n\r\n </div>\r\n</ax-popover>" }]
|
|
5516
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$
|
|
6008
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
|
|
5517
6009
|
type: ViewChild,
|
|
5518
6010
|
args: [AXPopoverComponent, { static: true }]
|
|
5519
6011
|
}], _calendar: [{
|
|
@@ -5529,8 +6021,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
5529
6021
|
type: Input
|
|
5530
6022
|
}] } });
|
|
5531
6023
|
|
|
5532
|
-
const COMPONENT$
|
|
5533
|
-
const MODULES$
|
|
6024
|
+
const COMPONENT$c = [AXDatePickerComponent];
|
|
6025
|
+
const MODULES$c = [
|
|
5534
6026
|
CommonModule,
|
|
5535
6027
|
AXCalendarModule,
|
|
5536
6028
|
AXTextBoxModule,
|
|
@@ -5551,13 +6043,13 @@ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
5551
6043
|
AXDecoratorModule,
|
|
5552
6044
|
AXDateTimeModule,
|
|
5553
6045
|
FormsModule], exports: [AXDatePickerComponent] });
|
|
5554
|
-
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$
|
|
6046
|
+
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$c]] });
|
|
5555
6047
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDatepickerModule, decorators: [{
|
|
5556
6048
|
type: NgModule,
|
|
5557
6049
|
args: [{
|
|
5558
|
-
declarations: [...COMPONENT$
|
|
5559
|
-
imports: [...MODULES$
|
|
5560
|
-
exports: [...COMPONENT$
|
|
6050
|
+
declarations: [...COMPONENT$c],
|
|
6051
|
+
imports: [...MODULES$c],
|
|
6052
|
+
exports: [...COMPONENT$c],
|
|
5561
6053
|
providers: [],
|
|
5562
6054
|
}]
|
|
5563
6055
|
}] });
|
|
@@ -5589,7 +6081,7 @@ class AXDialogComponent extends AXBaseComponentMixin {
|
|
|
5589
6081
|
}
|
|
5590
6082
|
}
|
|
5591
6083
|
AXDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5592
|
-
AXDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDialogComponent, selector: "ax-dialog", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" tabindex=\"0\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <footer class=\"ax-dialog-footer\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" [submitBehavior]=\"button.submitBehavior\" [cancelBehavior]=\"button.cancelBehavior\" (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\" [color]=\"button.color\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n </footer>\r\n </div>\r\n\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type:
|
|
6084
|
+
AXDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXDialogComponent, selector: "ax-dialog", usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" tabindex=\"0\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <footer class=\"ax-dialog-footer\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" [submitBehavior]=\"button.submitBehavior\" [cancelBehavior]=\"button.cancelBehavior\" (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\" [color]=\"button.color\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n </footer>\r\n </div>\r\n\r\n</div>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i7.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5593
6085
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogComponent, decorators: [{
|
|
5594
6086
|
type: Component,
|
|
5595
6087
|
args: [{ selector: 'ax-dialog', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-dialog ax-{{options.type}}-default\" tabindex=\"0\" cdkDrag role=\"alert\" cdkDragHandle>\r\n <div class=\"ax-dialog-icon-side\">\r\n <i class=\"ax-dialog-icon {{_icon}}\"></i>\r\n </div>\r\n <div class=\"ax-dialog-content-side\">\r\n <div class=\"ax-dialog-title\">{{options.title}}</div>\r\n <div class=\"ax-dialog-content\">{{options.content}}</div>\r\n </div>\r\n <div class=\"ax-dialog-dismiss-icon\">\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"options.dismissible\" (click)=\"close()\"></i>\r\n </div>\r\n <footer class=\"ax-dialog-footer\">\r\n <ng-container *ngFor=\"let button of options.buttons\">\r\n <ax-button [text]=\"button.text\" [submitBehavior]=\"button.submitBehavior\" [cancelBehavior]=\"button.cancelBehavior\" (onClick)=\"_handleButtonClick(button)\" [class]=\"button.cssClass\" [look]=\"button.look\" [color]=\"button.color\"></ax-button>\r\n <div class=\"ax-ml-2\"></div>\r\n </ng-container>\r\n </footer>\r\n </div>\r\n\r\n</div>" }]
|
|
@@ -5882,19 +6374,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
5882
6374
|
}]
|
|
5883
6375
|
}] });
|
|
5884
6376
|
|
|
5885
|
-
const COMPONENT$
|
|
5886
|
-
const MODULES$
|
|
6377
|
+
const COMPONENT$b = [AXDialogComponent];
|
|
6378
|
+
const MODULES$b = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule];
|
|
5887
6379
|
class AXDialogModule {
|
|
5888
6380
|
}
|
|
5889
6381
|
AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5890
6382
|
AXDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, declarations: [AXDialogComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule], exports: [AXDialogComponent] });
|
|
5891
|
-
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$
|
|
6383
|
+
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$b]] });
|
|
5892
6384
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXDialogModule, decorators: [{
|
|
5893
6385
|
type: NgModule,
|
|
5894
6386
|
args: [{
|
|
5895
|
-
declarations: [...COMPONENT$
|
|
5896
|
-
imports: [...MODULES$
|
|
5897
|
-
exports: [...COMPONENT$
|
|
6387
|
+
declarations: [...COMPONENT$b],
|
|
6388
|
+
imports: [...MODULES$b],
|
|
6389
|
+
exports: [...COMPONENT$b],
|
|
5898
6390
|
providers: [],
|
|
5899
6391
|
}]
|
|
5900
6392
|
}] });
|
|
@@ -6032,14 +6524,17 @@ class AXFormComponent extends AXBaseComponentMixin {
|
|
|
6032
6524
|
_getComponenets() {
|
|
6033
6525
|
return Array.from(this._getHostElement().querySelectorAll('[ax-form-input="true"]'));
|
|
6034
6526
|
}
|
|
6035
|
-
validate() {
|
|
6527
|
+
validate(...args) {
|
|
6036
6528
|
const widgets = this._getComponenets();
|
|
6037
6529
|
//
|
|
6038
6530
|
return new Promise((resolve, reject) => {
|
|
6039
6531
|
if (widgets.length === 0) {
|
|
6040
6532
|
return Promise.resolve({ result: true });
|
|
6041
6533
|
}
|
|
6042
|
-
Promise.all(widgets.map((c) => c.__axContext__
|
|
6534
|
+
Promise.all(widgets.map((c) => c.__axContext__)
|
|
6535
|
+
.filter(c => (args == null || args.length == 0) || args.includes(c.name))
|
|
6536
|
+
.map((c) => c.validate()))
|
|
6537
|
+
.then((rules) => {
|
|
6043
6538
|
const failed = rules.filter((c) => !c.result);
|
|
6044
6539
|
if (failed.length) {
|
|
6045
6540
|
reject({
|
|
@@ -6061,12 +6556,12 @@ class AXFormComponent extends AXBaseComponentMixin {
|
|
|
6061
6556
|
}
|
|
6062
6557
|
}
|
|
6063
6558
|
AXFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXFormComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6064
|
-
AXFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXFormComponent, selector: "ax-form", usesInheritance: true, ngImport: i0, template: '<
|
|
6559
|
+
AXFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXFormComponent, selector: "ax-form", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6065
6560
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXFormComponent, decorators: [{
|
|
6066
6561
|
type: Component,
|
|
6067
6562
|
args: [{
|
|
6068
6563
|
selector: 'ax-form',
|
|
6069
|
-
template: '<
|
|
6564
|
+
template: '<ng-content></ng-content>',
|
|
6070
6565
|
encapsulation: ViewEncapsulation.None,
|
|
6071
6566
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6072
6567
|
}]
|
|
@@ -6138,57 +6633,77 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
6138
6633
|
type: Input
|
|
6139
6634
|
}] } });
|
|
6140
6635
|
|
|
6141
|
-
const COMPONENT$
|
|
6142
|
-
const MODULES$
|
|
6636
|
+
const COMPONENT$a = [AXInputMaskComponent];
|
|
6637
|
+
const MODULES$a = [CommonModule, NgxMaskModule.forRoot(), IMaskModule];
|
|
6143
6638
|
class AXInputMaskModule {
|
|
6144
6639
|
}
|
|
6145
6640
|
AXInputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6146
|
-
AXInputMaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, declarations: [AXInputMaskComponent], imports: [CommonModule, i1$
|
|
6147
|
-
AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$
|
|
6641
|
+
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] });
|
|
6642
|
+
AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$a]] });
|
|
6148
6643
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXInputMaskModule, decorators: [{
|
|
6149
6644
|
type: NgModule,
|
|
6150
6645
|
args: [{
|
|
6151
|
-
declarations: [...COMPONENT$
|
|
6152
|
-
imports: [...MODULES$
|
|
6153
|
-
exports: [...COMPONENT$
|
|
6646
|
+
declarations: [...COMPONENT$a],
|
|
6647
|
+
imports: [...MODULES$a],
|
|
6648
|
+
exports: [...COMPONENT$a],
|
|
6154
6649
|
providers: [],
|
|
6155
6650
|
}]
|
|
6156
6651
|
}] });
|
|
6157
6652
|
|
|
6158
|
-
class
|
|
6159
|
-
constructor(
|
|
6160
|
-
super(
|
|
6653
|
+
class AXSearchBoxComponent extends AXBaseComponentMixin {
|
|
6654
|
+
constructor(_elementRef, _cdr, _parent) {
|
|
6655
|
+
super(_elementRef, _cdr);
|
|
6656
|
+
this._parent = _parent;
|
|
6657
|
+
this.placeholder = 'common.search';
|
|
6658
|
+
this.debounceTime = 500;
|
|
6659
|
+
this.searchExp = null;
|
|
6161
6660
|
}
|
|
6162
|
-
|
|
6163
|
-
|
|
6661
|
+
_onSearchExprChanged(e) {
|
|
6662
|
+
if (this._parent && this._parent.search) {
|
|
6663
|
+
this._parent.search(e.value);
|
|
6664
|
+
}
|
|
6164
6665
|
}
|
|
6165
|
-
|
|
6166
|
-
this.
|
|
6167
|
-
|
|
6666
|
+
focus() {
|
|
6667
|
+
this._textbox?.focus();
|
|
6668
|
+
}
|
|
6669
|
+
clear() {
|
|
6670
|
+
this._textbox._setValue(null);
|
|
6168
6671
|
}
|
|
6169
6672
|
}
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type:
|
|
6673
|
+
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 });
|
|
6674
|
+
AXSearchBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXSearchBoxComponent, selector: "ax-search-box", inputs: { placeholder: "placeholder", debounceTime: "debounceTime", searchExp: "searchExp" }, viewQueries: [{ propertyName: "_textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\" >\r\n </ax-icon>\r\n </ax-prefix>\r\n <ax-suffix>\r\n <ax-button look=\"blank\" color=\"danger\" *ngIf=\"searchExp\" (onClick)=\"clear()\">\r\n <ax-icon class=\"ax-ic ax-ic-close\">\r\n </ax-icon>\r\n </ax-button>\r\n </ax-suffix>\r\n</ax-text-box>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "placeholder", "maxLength", "type", "autoComplete"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, decorators: [{
|
|
6173
6676
|
type: Component,
|
|
6174
|
-
args: [{ selector: 'ax-
|
|
6175
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }
|
|
6677
|
+
args: [{ selector: 'ax-search-box', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\" >\r\n </ax-icon>\r\n </ax-prefix>\r\n <ax-suffix>\r\n <ax-button look=\"blank\" color=\"danger\" *ngIf=\"searchExp\" (onClick)=\"clear()\">\r\n <ax-icon class=\"ax-ic ax-ic-close\">\r\n </ax-icon>\r\n </ax-button>\r\n </ax-suffix>\r\n</ax-text-box>" }]
|
|
6678
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXSearchableComponent, decorators: [{
|
|
6679
|
+
type: Optional
|
|
6680
|
+
}, {
|
|
6681
|
+
type: Inject,
|
|
6682
|
+
args: [AXSearchableComponent]
|
|
6683
|
+
}] }]; }, propDecorators: { _textbox: [{
|
|
6684
|
+
type: ViewChild,
|
|
6685
|
+
args: [AXTextBoxComponent]
|
|
6686
|
+
}], placeholder: [{
|
|
6687
|
+
type: Input
|
|
6688
|
+
}], debounceTime: [{
|
|
6689
|
+
type: Input
|
|
6690
|
+
}], searchExp: [{
|
|
6176
6691
|
type: Input
|
|
6177
6692
|
}] } });
|
|
6178
6693
|
|
|
6179
|
-
const COMPONENT$
|
|
6180
|
-
const MODULES$
|
|
6181
|
-
class
|
|
6694
|
+
const COMPONENT$9 = [AXSearchBoxComponent];
|
|
6695
|
+
const MODULES$9 = [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule, AXButtonModule];
|
|
6696
|
+
class AXSearchBoxModule {
|
|
6182
6697
|
}
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type:
|
|
6698
|
+
AXSearchBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6699
|
+
AXSearchBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, declarations: [AXSearchBoxComponent], imports: [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule, AXButtonModule], exports: [AXSearchBoxComponent] });
|
|
6700
|
+
AXSearchBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, providers: [], imports: [[...MODULES$9]] });
|
|
6701
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, decorators: [{
|
|
6187
6702
|
type: NgModule,
|
|
6188
6703
|
args: [{
|
|
6189
|
-
declarations: [...COMPONENT$
|
|
6190
|
-
imports: [...MODULES$
|
|
6191
|
-
exports: [...COMPONENT$
|
|
6704
|
+
declarations: [...COMPONENT$9],
|
|
6705
|
+
imports: [...MODULES$9],
|
|
6706
|
+
exports: [...COMPONENT$9],
|
|
6192
6707
|
providers: [],
|
|
6193
6708
|
}]
|
|
6194
6709
|
}] });
|
|
@@ -6203,6 +6718,19 @@ class AXMenuComponent extends AXBaseMenuMixin {
|
|
|
6203
6718
|
super(elementRef, cdr);
|
|
6204
6719
|
this.elementRef = elementRef;
|
|
6205
6720
|
this.cdr = cdr;
|
|
6721
|
+
this._forceFocus = false;
|
|
6722
|
+
window.addEventListener('click', (e) => {
|
|
6723
|
+
if (this.displayItems.length > 0) {
|
|
6724
|
+
const target = document.querySelector('UL');
|
|
6725
|
+
if (e.target != target) {
|
|
6726
|
+
this.displayItems.forEach((element) => {
|
|
6727
|
+
element.isActive = false;
|
|
6728
|
+
element.isOpen = false;
|
|
6729
|
+
});
|
|
6730
|
+
cdr.detectChanges();
|
|
6731
|
+
}
|
|
6732
|
+
}
|
|
6733
|
+
});
|
|
6206
6734
|
}
|
|
6207
6735
|
get emptyTemplate() {
|
|
6208
6736
|
return this._contentEmptyTemplate;
|
|
@@ -6272,328 +6800,104 @@ class AXMenuComponent extends AXBaseMenuMixin {
|
|
|
6272
6800
|
this.onMenuItemClick.emit({
|
|
6273
6801
|
component: this,
|
|
6274
6802
|
item: item,
|
|
6275
|
-
nativeEvent: e,
|
|
6276
|
-
});
|
|
6277
|
-
if (item.isOpen && item[this.hasChildField] && !item.children) {
|
|
6278
|
-
item.isLoading = true;
|
|
6279
|
-
this._fetchData(item[this.valueField]).then(() => {
|
|
6280
|
-
item.isLoading = false;
|
|
6281
|
-
});
|
|
6282
|
-
}
|
|
6283
|
-
}
|
|
6284
|
-
e.stopPropagation();
|
|
6285
|
-
e.preventDefault();
|
|
6286
|
-
}
|
|
6287
|
-
_onMouseLeave(item) {
|
|
6288
|
-
if (!item[this.disableField] && this.openMode === 'hover') {
|
|
6289
|
-
if (item.children?.length > 0 || item[this.hasChildField]) {
|
|
6290
|
-
if (item.children?.length > 0) {
|
|
6291
|
-
this._closeChild(item.children);
|
|
6292
|
-
}
|
|
6293
|
-
item.isOpen = false;
|
|
6294
|
-
}
|
|
6295
|
-
}
|
|
6296
|
-
}
|
|
6297
|
-
_notActive(items) {
|
|
6298
|
-
items.forEach((element) => {
|
|
6299
|
-
element.isActive = false;
|
|
6300
|
-
if (element.children?.length > 0) {
|
|
6301
|
-
this._notActive(element.children);
|
|
6302
|
-
}
|
|
6303
|
-
});
|
|
6304
|
-
}
|
|
6305
|
-
_closeChild(items) {
|
|
6306
|
-
items.forEach((element) => {
|
|
6307
|
-
element.isOpen = false;
|
|
6308
|
-
if (element.children?.length > 0) {
|
|
6309
|
-
this._closeChild(element.children);
|
|
6310
|
-
}
|
|
6311
|
-
});
|
|
6312
|
-
}
|
|
6313
|
-
_setParentNode(item, parentId) {
|
|
6314
|
-
item.forEach((element) => {
|
|
6315
|
-
element.parentId = parentId;
|
|
6316
|
-
});
|
|
6317
|
-
}
|
|
6318
|
-
_getDirection() {
|
|
6319
|
-
if (this.direction === 'horizontal') {
|
|
6320
|
-
return 'horizontal-mode';
|
|
6321
|
-
}
|
|
6322
|
-
else {
|
|
6323
|
-
return 'vertical-mode';
|
|
6324
|
-
}
|
|
6325
|
-
}
|
|
6326
|
-
}
|
|
6327
|
-
AXMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6328
|
-
AXMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXMenuComponent, selector: "ax-menu", inputs: { disabled: "disabled", tabIndex: "tabIndex", textField: "textField", valueField: "valueField", items: "items", id: "id", parentId: "parentId", iconField: "iconField", tooltip: "tooltip", isOpen: "isOpen", isActive: "isActive", visibleField: "visibleField", disableField: "disableField", hasChildField: "hasChildField", openMode: "openMode", direction: "direction" }, outputs: { onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-menu" }, queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\" (mouseleave)=\"_onMouseLeave(item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div *ngIf=\"item?.children?.length > 0 || item[hasChildField]\" class=\"ax-menu-end-side\">\r\n <ax-icon *ngIf=\"!item.isLoading\" [ngClass]=\"{'active-icon': item.isOpen}\" class=\"ax-ic-chevron\">\r\n </ax-icon>\r\n <ax-loading *ngIf=\"item.isLoading\">\r\n </ax-loading>\r\n </div>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>", components: [{ type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "trans": i1$3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, decorators: [{
|
|
6330
|
-
type: Component,
|
|
6331
|
-
args: [{ selector: 'ax-menu', inputs: [...INTERACTIVE_INPUTS, ...BASEMENU_INPUTS], outputs: [...INTERACTIVE_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-menu' }, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\" (mouseleave)=\"_onMouseLeave(item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div *ngIf=\"item?.children?.length > 0 || item[hasChildField]\" class=\"ax-menu-end-side\">\r\n <ax-icon *ngIf=\"!item.isLoading\" [ngClass]=\"{'active-icon': item.isOpen}\" class=\"ax-ic-chevron\">\r\n </ax-icon>\r\n <ax-loading *ngIf=\"item.isLoading\">\r\n </ax-loading>\r\n </div>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>" }]
|
|
6332
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _contentEmptyTemplate: [{
|
|
6333
|
-
type: ContentChild,
|
|
6334
|
-
args: ['emptyTemplate']
|
|
6335
|
-
}] } });
|
|
6336
|
-
|
|
6337
|
-
const COMPONENT$a = [AXMenuComponent];
|
|
6338
|
-
const MODULES$a = [CommonModule, AXDecoratorModule];
|
|
6339
|
-
class AXMenuModule {
|
|
6340
|
-
}
|
|
6341
|
-
AXMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6342
|
-
AXMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, declarations: [AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule,
|
|
6343
|
-
AXTranslationModule,
|
|
6344
|
-
AXPopoverModule], exports: [AXMenuComponent] });
|
|
6345
|
-
AXMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, providers: [], imports: [[
|
|
6346
|
-
...MODULES$a,
|
|
6347
|
-
AXLoadingModule,
|
|
6348
|
-
AXTranslationModule,
|
|
6349
|
-
AXPopoverModule,
|
|
6350
|
-
]] });
|
|
6351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, decorators: [{
|
|
6352
|
-
type: NgModule,
|
|
6353
|
-
args: [{
|
|
6354
|
-
declarations: [...COMPONENT$a],
|
|
6355
|
-
imports: [
|
|
6356
|
-
...MODULES$a,
|
|
6357
|
-
AXLoadingModule,
|
|
6358
|
-
AXTranslationModule,
|
|
6359
|
-
AXPopoverModule,
|
|
6360
|
-
],
|
|
6361
|
-
exports: [...COMPONENT$a],
|
|
6362
|
-
providers: [],
|
|
6363
|
-
}]
|
|
6364
|
-
}] });
|
|
6365
|
-
|
|
6366
|
-
/**
|
|
6367
|
-
* The NumberBox is a component which detects user interaction and triggers a corresponding event
|
|
6368
|
-
*
|
|
6369
|
-
* @category Components
|
|
6370
|
-
*/
|
|
6371
|
-
class AXNumberBoxComponent extends AXBaseTextBoxMixin {
|
|
6372
|
-
/**
|
|
6373
|
-
* @ignore
|
|
6374
|
-
*/
|
|
6375
|
-
constructor(elementRef, cdr) {
|
|
6376
|
-
super(elementRef, cdr);
|
|
6377
|
-
this.cdr = cdr;
|
|
6378
|
-
this._padDecimalZeros = false;
|
|
6379
|
-
/**
|
|
6380
|
-
* Specifies the value that is used to increment or decrement the **Integer** part of number
|
|
6381
|
-
*/
|
|
6382
|
-
this.step = 1;
|
|
6383
|
-
this._decimals = 0;
|
|
6384
|
-
/**
|
|
6385
|
-
* Specifies the value that is used to increment or decrement the **Deciaml** part of number
|
|
6386
|
-
*/
|
|
6387
|
-
this.decimalStep = 'auto';
|
|
6388
|
-
/**
|
|
6389
|
-
* Specifies whether the Up and Down spin buttons will be rendered or not
|
|
6390
|
-
*/
|
|
6391
|
-
this.showSpinButtons = true;
|
|
6392
|
-
this._minValue = Number.MIN_SAFE_INTEGER;
|
|
6393
|
-
this._maxValue = Number.MAX_SAFE_INTEGER;
|
|
6394
|
-
}
|
|
6395
|
-
/**
|
|
6396
|
-
* A character value that specifies the separator character.
|
|
6397
|
-
*/
|
|
6398
|
-
get thousandsSeparator() {
|
|
6399
|
-
return this._thousandsSeparator;
|
|
6400
|
-
}
|
|
6401
|
-
set thousandsSeparator(v) {
|
|
6402
|
-
this._setOption({
|
|
6403
|
-
name: "thousandsSeparator",
|
|
6404
|
-
value: v ?? '',
|
|
6405
|
-
});
|
|
6406
|
-
}
|
|
6407
|
-
/**
|
|
6408
|
-
* A character value that specifies the separator character.
|
|
6409
|
-
*/
|
|
6410
|
-
get padDecimalZeros() {
|
|
6411
|
-
return this._padDecimalZeros;
|
|
6412
|
-
}
|
|
6413
|
-
set padDecimalZeros(v) {
|
|
6414
|
-
this._setOption({
|
|
6415
|
-
name: "padDecimalZeros",
|
|
6416
|
-
value: v,
|
|
6417
|
-
});
|
|
6418
|
-
}
|
|
6419
|
-
/**
|
|
6420
|
-
* Specifies the number of decimals that the user can enter
|
|
6421
|
-
*/
|
|
6422
|
-
get decimals() {
|
|
6423
|
-
return this._decimals;
|
|
6424
|
-
}
|
|
6425
|
-
set decimals(v) {
|
|
6426
|
-
this._setOption({
|
|
6427
|
-
name: "decimals",
|
|
6428
|
-
value: v ?? 0,
|
|
6429
|
-
});
|
|
6430
|
-
}
|
|
6431
|
-
/**
|
|
6432
|
-
* Specifies the smallest value that is valid
|
|
6433
|
-
*/
|
|
6434
|
-
get minValue() {
|
|
6435
|
-
return this._minValue;
|
|
6436
|
-
}
|
|
6437
|
-
set minValue(v) {
|
|
6438
|
-
this._setOption({
|
|
6439
|
-
name: "minValue",
|
|
6440
|
-
value: v != null ? Number(v) : Number.MIN_SAFE_INTEGER,
|
|
6441
|
-
});
|
|
6442
|
-
}
|
|
6443
|
-
/**
|
|
6444
|
-
* Specifies the greatest value that is valid
|
|
6445
|
-
*/
|
|
6446
|
-
get maxValue() {
|
|
6447
|
-
return this._maxValue;
|
|
6448
|
-
}
|
|
6449
|
-
set maxValue(v) {
|
|
6450
|
-
this._setOption({
|
|
6451
|
-
name: "maxValue",
|
|
6452
|
-
value: v != null ? Number(v) : Number.MAX_SAFE_INTEGER,
|
|
6453
|
-
});
|
|
6454
|
-
}
|
|
6455
|
-
onViewInit() {
|
|
6456
|
-
super.onViewInit();
|
|
6457
|
-
this._updateMask();
|
|
6458
|
-
}
|
|
6459
|
-
_onOptionChanged(option) {
|
|
6460
|
-
super._onOptionChanged(option);
|
|
6461
|
-
this._updateMask();
|
|
6462
|
-
}
|
|
6463
|
-
_updateMask() {
|
|
6464
|
-
if (!this._maskObj) {
|
|
6465
|
-
this._maskObj = IMask.createMask({
|
|
6466
|
-
mask: Number,
|
|
6467
|
-
min: this.minValue,
|
|
6468
|
-
max: this.maxValue,
|
|
6469
|
-
thousandsSeparator: this.thousandsSeparator || '',
|
|
6470
|
-
scale: this.decimals,
|
|
6471
|
-
radix: '.',
|
|
6472
|
-
padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
|
|
6473
|
-
});
|
|
6474
|
-
}
|
|
6475
|
-
else {
|
|
6476
|
-
this._maskObj.updateOptions({
|
|
6477
|
-
min: this.minValue,
|
|
6478
|
-
max: this.maxValue,
|
|
6479
|
-
thousandsSeparator: this.thousandsSeparator || '',
|
|
6480
|
-
scale: this.decimals,
|
|
6481
|
-
radix: '.',
|
|
6482
|
-
padFractionalZeros: this.decimals > 0 && this.padDecimalZeros
|
|
6803
|
+
nativeEvent: e,
|
|
6483
6804
|
});
|
|
6805
|
+
if (item.isOpen && item[this.hasChildField] && !item.children) {
|
|
6806
|
+
item.isLoading = true;
|
|
6807
|
+
this._fetchData(item[this.valueField]).then(() => {
|
|
6808
|
+
item.isLoading = false;
|
|
6809
|
+
});
|
|
6810
|
+
}
|
|
6484
6811
|
}
|
|
6485
|
-
|
|
6486
|
-
|
|
6812
|
+
e.stopPropagation();
|
|
6813
|
+
e.preventDefault();
|
|
6487
6814
|
}
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
const decimalPointIndex = valStr.indexOf('.');
|
|
6496
|
-
const _cursorPos = input.selectionStart;
|
|
6497
|
-
if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
|
6498
|
-
if (decimalPointIndex > 0 && _cursorPos > decimalPointIndex && this.decimals > 0) {
|
|
6499
|
-
e.key === 'ArrowDown' ? this.decimalStepDown() : this.decimalStepUp();
|
|
6500
|
-
}
|
|
6501
|
-
else {
|
|
6502
|
-
e.key === 'ArrowDown' ? this.stepDown() : this.stepUp();
|
|
6815
|
+
_onMouseLeave(item) {
|
|
6816
|
+
if (!item[this.disableField] && this.openMode === 'hover') {
|
|
6817
|
+
if (item.children?.length > 0 || item[this.hasChildField]) {
|
|
6818
|
+
if (item.children?.length > 0) {
|
|
6819
|
+
this._closeChild(item.children);
|
|
6820
|
+
}
|
|
6821
|
+
item.isOpen = false;
|
|
6503
6822
|
}
|
|
6504
|
-
ignore();
|
|
6505
|
-
setTimeout(() => {
|
|
6506
|
-
input.setSelectionRange(_cursorPos, _cursorPos);
|
|
6507
|
-
}, 5);
|
|
6508
6823
|
}
|
|
6509
|
-
super._emitOnKeydownEvent(e);
|
|
6510
|
-
}
|
|
6511
|
-
_handleUpDownClick(e, v) {
|
|
6512
|
-
v == 1 ? this.stepUp() : this.stepDown();
|
|
6513
6824
|
}
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6825
|
+
_notActive(items) {
|
|
6826
|
+
items.forEach((element) => {
|
|
6827
|
+
element.isActive = false;
|
|
6828
|
+
if (element.children?.length > 0) {
|
|
6829
|
+
this._notActive(element.children);
|
|
6830
|
+
}
|
|
6831
|
+
});
|
|
6521
6832
|
}
|
|
6522
|
-
|
|
6523
|
-
|
|
6833
|
+
_closeChild(items) {
|
|
6834
|
+
items.forEach((element) => {
|
|
6835
|
+
element.isOpen = false;
|
|
6836
|
+
if (element.children?.length > 0) {
|
|
6837
|
+
this._closeChild(element.children);
|
|
6838
|
+
}
|
|
6839
|
+
});
|
|
6524
6840
|
}
|
|
6525
|
-
|
|
6526
|
-
|
|
6841
|
+
_setParentNode(item, parentId) {
|
|
6842
|
+
item.forEach((element) => {
|
|
6843
|
+
element.parentId = parentId;
|
|
6844
|
+
});
|
|
6527
6845
|
}
|
|
6528
|
-
|
|
6529
|
-
|
|
6846
|
+
_onSearchExprChanged(e) {
|
|
6847
|
+
// this.empty();
|
|
6848
|
+
this._forceFocus = true;
|
|
6849
|
+
this._fetchData(null, this._searchBox?.searchExp);
|
|
6530
6850
|
}
|
|
6531
|
-
|
|
6532
|
-
|
|
6851
|
+
_getDirection() {
|
|
6852
|
+
if (this.direction === 'horizontal') {
|
|
6853
|
+
return 'horizontal-mode';
|
|
6854
|
+
}
|
|
6855
|
+
else {
|
|
6856
|
+
return 'vertical-mode';
|
|
6857
|
+
}
|
|
6533
6858
|
}
|
|
6534
6859
|
}
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type:
|
|
6860
|
+
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 });
|
|
6861
|
+
AXMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXMenuComponent, selector: "ax-menu", inputs: { disabled: "disabled", tabIndex: "tabIndex", textField: "textField", valueField: "valueField", items: "items", id: "id", parentId: "parentId", iconField: "iconField", tooltip: "tooltip", isOpen: "isOpen", isActive: "isActive", visibleField: "visibleField", disableField: "disableField", hasChildField: "hasChildField", openMode: "openMode", direction: "direction" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onMenuItemClick: "onMenuItemClick" }, host: { classAttribute: "ax-menu" }, queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }, { propertyName: "_searchBox", first: true, predicate: AXSearchBoxComponent, descendants: true, static: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\" (mouseleave)=\"_onMouseLeave(item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div class=\"ax-menu-end-side\">\r\n <ax-icon *ngIf=\"!item.isLoading\"\r\n [ngClass]=\"{'ax-ic-chevron':item?.children?.length > 0 || item[hasChildField],'active-icon': item.isOpen}\">\r\n </ax-icon>\r\n <ax-loading *ngIf=\"item.isLoading\">\r\n </ax-loading>\r\n </div>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>", components: [{ type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6862
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuComponent, decorators: [{
|
|
6538
6863
|
type: Component,
|
|
6539
|
-
args: [{ selector: 'ax-
|
|
6540
|
-
|
|
6541
|
-
'readonly',
|
|
6542
|
-
'tabIndex',
|
|
6543
|
-
'size',
|
|
6544
|
-
'value',
|
|
6545
|
-
...TEXTBOX_INPUTS,
|
|
6546
|
-
], outputs: [
|
|
6547
|
-
'valueChange',
|
|
6548
|
-
'onValueChanged',
|
|
6549
|
-
'onBlur',
|
|
6550
|
-
'onFocus',
|
|
6551
|
-
...TEXTBOX_OUTPUT,
|
|
6552
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-editor-container' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" \r\n [attr.placeholder]=\"placeholder\" \r\n [imask]=\"_maskObj\" \r\n [unmask]=\"'typed'\"\r\n [attr.min]=\"minValue\"\r\n [attr.max]=\"maxValue\" \r\n [class.ax-state-disabled]=\"disabled\" \r\n [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" \r\n [readonly]=\"readonly\" \r\n [tabindex]=\"tabIndex\" \r\n [(ngModel)]=\"value\"\r\n (focus)=\"_emitOnFocusEvent($event)\" \r\n (blur)=\"_emitOnFocusEvent($event)\" \r\n (keydown)=\"_handleOnKeydownEvent($event)\"\r\n [attr.autocomplete]=\"autoComplete\">\r\n\r\n<div class=\"ax-number-box-arrows\" *ngIf=\"showSpinButtons && !(disabled || readonly)\">\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax-rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,-1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax--rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n</div>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>" }]
|
|
6553
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { thousandsSeparator: [{
|
|
6554
|
-
type: Input
|
|
6555
|
-
}], padDecimalZeros: [{
|
|
6556
|
-
type: Input
|
|
6557
|
-
}], step: [{
|
|
6558
|
-
type: Input
|
|
6559
|
-
}], decimals: [{
|
|
6560
|
-
type: Input
|
|
6561
|
-
}], decimalStep: [{
|
|
6562
|
-
type: Input
|
|
6563
|
-
}], showSpinButtons: [{
|
|
6564
|
-
type: Input
|
|
6565
|
-
}], minValue: [{
|
|
6566
|
-
type: Input
|
|
6567
|
-
}], maxValue: [{
|
|
6568
|
-
type: Input
|
|
6569
|
-
}], _maskDirective: [{
|
|
6864
|
+
args: [{ selector: 'ax-menu', inputs: [...INTERACTIVE_INPUTS, ...BASEMENU_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...BASEMENU_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-menu' }, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\" (mouseleave)=\"_onMouseLeave(item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon *ngIf=\"item[iconField]\" [class]=\"item[iconField]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div class=\"ax-menu-end-side\">\r\n <ax-icon *ngIf=\"!item.isLoading\"\r\n [ngClass]=\"{'ax-ic-chevron':item?.children?.length > 0 || item[hasChildField],'active-icon': item.isOpen}\">\r\n </ax-icon>\r\n <ax-loading *ngIf=\"item.isLoading\">\r\n </ax-loading>\r\n </div>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>" }]
|
|
6865
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
|
|
6570
6866
|
type: ViewChild,
|
|
6571
|
-
args: [
|
|
6867
|
+
args: [AXPopoverComponent, { static: true }]
|
|
6868
|
+
}], _contentEmptyTemplate: [{
|
|
6869
|
+
type: ContentChild,
|
|
6870
|
+
args: ['emptyTemplate']
|
|
6871
|
+
}], _searchBox: [{
|
|
6872
|
+
type: ContentChild,
|
|
6873
|
+
args: [AXSearchBoxComponent, { static: true }]
|
|
6572
6874
|
}] } });
|
|
6573
6875
|
|
|
6574
|
-
const COMPONENT$
|
|
6575
|
-
const MODULES$
|
|
6576
|
-
|
|
6577
|
-
FormsModule,
|
|
6578
|
-
AXButtonModule,
|
|
6579
|
-
AXDecoratorModule,
|
|
6580
|
-
IMaskModule
|
|
6581
|
-
];
|
|
6582
|
-
class AXNumberBoxModule {
|
|
6876
|
+
const COMPONENT$8 = [AXMenuComponent];
|
|
6877
|
+
const MODULES$8 = [CommonModule, AXDecoratorModule];
|
|
6878
|
+
class AXMenuModule {
|
|
6583
6879
|
}
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6880
|
+
AXMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6881
|
+
AXMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, declarations: [AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule,
|
|
6882
|
+
AXTranslationModule,
|
|
6883
|
+
AXPopoverModule], exports: [AXMenuComponent] });
|
|
6884
|
+
AXMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, providers: [], imports: [[
|
|
6885
|
+
...MODULES$8,
|
|
6886
|
+
AXLoadingModule,
|
|
6887
|
+
AXTranslationModule,
|
|
6888
|
+
AXPopoverModule,
|
|
6889
|
+
]] });
|
|
6890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXMenuModule, decorators: [{
|
|
6592
6891
|
type: NgModule,
|
|
6593
6892
|
args: [{
|
|
6594
|
-
declarations: [...COMPONENT$
|
|
6595
|
-
imports: [
|
|
6596
|
-
|
|
6893
|
+
declarations: [...COMPONENT$8],
|
|
6894
|
+
imports: [
|
|
6895
|
+
...MODULES$8,
|
|
6896
|
+
AXLoadingModule,
|
|
6897
|
+
AXTranslationModule,
|
|
6898
|
+
AXPopoverModule,
|
|
6899
|
+
],
|
|
6900
|
+
exports: [...COMPONENT$8],
|
|
6597
6901
|
providers: [],
|
|
6598
6902
|
}]
|
|
6599
6903
|
}] });
|
|
@@ -6649,8 +6953,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
6649
6953
|
type: Input
|
|
6650
6954
|
}] } });
|
|
6651
6955
|
|
|
6652
|
-
const COMPONENT$
|
|
6653
|
-
const MODULES$
|
|
6956
|
+
const COMPONENT$7 = [AXPasswordBoxComponent];
|
|
6957
|
+
const MODULES$7 = [
|
|
6654
6958
|
CommonModule,
|
|
6655
6959
|
FormsModule,
|
|
6656
6960
|
AXButtonModule,
|
|
@@ -6663,13 +6967,13 @@ AXPasswordBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ver
|
|
|
6663
6967
|
FormsModule,
|
|
6664
6968
|
AXButtonModule,
|
|
6665
6969
|
AXDecoratorModule], exports: [AXPasswordBoxComponent] });
|
|
6666
|
-
AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$
|
|
6970
|
+
AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$7]] });
|
|
6667
6971
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPasswordBoxModule, decorators: [{
|
|
6668
6972
|
type: NgModule,
|
|
6669
6973
|
args: [{
|
|
6670
|
-
declarations: [...COMPONENT$
|
|
6671
|
-
imports: [...MODULES$
|
|
6672
|
-
exports: [...COMPONENT$
|
|
6974
|
+
declarations: [...COMPONENT$7],
|
|
6975
|
+
imports: [...MODULES$7],
|
|
6976
|
+
exports: [...COMPONENT$7],
|
|
6673
6977
|
providers: [],
|
|
6674
6978
|
}]
|
|
6675
6979
|
}] });
|
|
@@ -6775,12 +7079,12 @@ class AXPopupComponent extends AXBaseComponentMixin {
|
|
|
6775
7079
|
}
|
|
6776
7080
|
onFullScreen() { }
|
|
6777
7081
|
}
|
|
6778
|
-
AXPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: AXLoadingService }, { token: i1$
|
|
6779
|
-
AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <div cdkDragHandle class=\"ax-popup-header-container\">\r\n <ax-header *ngIf=\"showHeader\">\r\n <ax-title [text]=\"title\"></ax-title>\r\n <ax-close-button *ngIf=\"showCloseButton\"></ax-close-button>\r\n </ax-header>\r\n </div>\r\n <div class=\"ax-popup-main-container\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </div>\r\n <div class=\"ax-popup-footer-container\"></div>\r\n </div>\r\n</div>", components: [{ type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type:
|
|
7082
|
+
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 });
|
|
7083
|
+
AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <div cdkDragHandle class=\"ax-popup-header-container\">\r\n <ax-header *ngIf=\"showHeader\">\r\n <ax-title [text]=\"title\"></ax-title>\r\n <ax-close-button *ngIf=\"showCloseButton\"></ax-close-button>\r\n </ax-header>\r\n </div>\r\n <div class=\"ax-popup-main-container\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </div>\r\n <div class=\"ax-popup-footer-container\"></div>\r\n </div>\r\n</div>", components: [{ type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type: i7.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6780
7084
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupComponent, decorators: [{
|
|
6781
7085
|
type: Component,
|
|
6782
7086
|
args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <div cdkDragHandle class=\"ax-popup-header-container\">\r\n <ax-header *ngIf=\"showHeader\">\r\n <ax-title [text]=\"title\"></ax-title>\r\n <ax-close-button *ngIf=\"showCloseButton\"></ax-close-button>\r\n </ax-header>\r\n </div>\r\n <div class=\"ax-popup-main-container\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </div>\r\n <div class=\"ax-popup-footer-container\"></div>\r\n </div>\r\n</div>" }]
|
|
6783
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i1$
|
|
7087
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i1$4.AXPlatform }]; }, propDecorators: { onKeydownHandler: [{
|
|
6784
7088
|
type: HostListener,
|
|
6785
7089
|
args: ['keydown.escape', ['$event']]
|
|
6786
7090
|
}] } });
|
|
@@ -6875,19 +7179,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
6875
7179
|
args: [{ providedIn: 'root' }]
|
|
6876
7180
|
}], ctorParameters: function () { return [{ type: AXOverlayService }]; } });
|
|
6877
7181
|
|
|
6878
|
-
const COMPONENT$
|
|
6879
|
-
const MODULES$
|
|
7182
|
+
const COMPONENT$6 = [AXPopupComponent];
|
|
7183
|
+
const MODULES$6 = [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule];
|
|
6880
7184
|
class AXPopupModule {
|
|
6881
7185
|
}
|
|
6882
7186
|
AXPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6883
7187
|
AXPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, declarations: [AXPopupComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule], exports: [AXPopupComponent] });
|
|
6884
|
-
AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$
|
|
7188
|
+
AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$6]] });
|
|
6885
7189
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXPopupModule, decorators: [{
|
|
6886
7190
|
type: NgModule,
|
|
6887
7191
|
args: [{
|
|
6888
|
-
declarations: [...COMPONENT$
|
|
6889
|
-
imports: [...MODULES$
|
|
6890
|
-
exports: [...COMPONENT$
|
|
7192
|
+
declarations: [...COMPONENT$6],
|
|
7193
|
+
imports: [...MODULES$6],
|
|
7194
|
+
exports: [...COMPONENT$6],
|
|
6891
7195
|
providers: [],
|
|
6892
7196
|
}]
|
|
6893
7197
|
}] });
|
|
@@ -6965,19 +7269,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
6965
7269
|
args: [{ selector: 'ax-radio', inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-radio' }, template: "<div class=\"ax-flex ax-items-start\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id\" class=\"ax-radio\" type=\"radio\" [(ngModel)]=\"value\" [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <ng-content select=\"ax-label\"></ng-content>\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n </div>\r\n</div>\r\n<ng-content select=\"ax-validation-rule\"></ng-content>" }]
|
|
6966
7270
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
6967
7271
|
|
|
6968
|
-
const COMPONENT$
|
|
6969
|
-
const MODULES$
|
|
7272
|
+
const COMPONENT$5 = [AXRadioComponent];
|
|
7273
|
+
const MODULES$5 = [CommonModule, FormsModule];
|
|
6970
7274
|
class AXRadioModule {
|
|
6971
7275
|
}
|
|
6972
7276
|
AXRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6973
7277
|
AXRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, declarations: [AXRadioComponent], imports: [CommonModule, FormsModule], exports: [AXRadioComponent] });
|
|
6974
|
-
AXRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, providers: [], imports: [[...MODULES$
|
|
7278
|
+
AXRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, providers: [], imports: [[...MODULES$5]] });
|
|
6975
7279
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRadioModule, decorators: [{
|
|
6976
7280
|
type: NgModule,
|
|
6977
7281
|
args: [{
|
|
6978
|
-
declarations: [...COMPONENT$
|
|
6979
|
-
imports: [...MODULES$
|
|
6980
|
-
exports: [...COMPONENT$
|
|
7282
|
+
declarations: [...COMPONENT$5],
|
|
7283
|
+
imports: [...MODULES$5],
|
|
7284
|
+
exports: [...COMPONENT$5],
|
|
6981
7285
|
providers: [],
|
|
6982
7286
|
}]
|
|
6983
7287
|
}] });
|
|
@@ -6995,19 +7299,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
6995
7299
|
args: [{ selector: 'ax-range-slider', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-range-slider' }, template: "<input type=\"range\" min=\"1\" max=\"100\" value=\"50\" class=\"ax-range-slider-input\">" }]
|
|
6996
7300
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
6997
7301
|
|
|
6998
|
-
const COMPONENT$
|
|
6999
|
-
const MODULES$
|
|
7302
|
+
const COMPONENT$4 = [AXRangeSliderComponent];
|
|
7303
|
+
const MODULES$4 = [CommonModule];
|
|
7000
7304
|
class AXRangeSliderModule {
|
|
7001
7305
|
}
|
|
7002
7306
|
AXRangeSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7003
7307
|
AXRangeSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, declarations: [AXRangeSliderComponent], imports: [CommonModule], exports: [AXRangeSliderComponent] });
|
|
7004
|
-
AXRangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, providers: [], imports: [[...MODULES$
|
|
7308
|
+
AXRangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, providers: [], imports: [[...MODULES$4]] });
|
|
7005
7309
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXRangeSliderModule, decorators: [{
|
|
7006
7310
|
type: NgModule,
|
|
7007
7311
|
args: [{
|
|
7008
|
-
declarations: [...COMPONENT$
|
|
7009
|
-
imports: [...MODULES$
|
|
7010
|
-
exports: [...COMPONENT$
|
|
7312
|
+
declarations: [...COMPONENT$4],
|
|
7313
|
+
imports: [...MODULES$4],
|
|
7314
|
+
exports: [...COMPONENT$4],
|
|
7011
7315
|
providers: [],
|
|
7012
7316
|
}]
|
|
7013
7317
|
}] });
|
|
@@ -7099,61 +7403,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
7099
7403
|
}]
|
|
7100
7404
|
}] });
|
|
7101
7405
|
|
|
7102
|
-
class AXSearchBoxComponent extends AXBaseComponentMixin {
|
|
7103
|
-
constructor(_elementRef, _cdr, _parent) {
|
|
7104
|
-
super(_elementRef, _cdr);
|
|
7105
|
-
this._parent = _parent;
|
|
7106
|
-
this.placeholder = 'common.search';
|
|
7107
|
-
this.debounceTime = 300;
|
|
7108
|
-
this.searchExp = null;
|
|
7109
|
-
}
|
|
7110
|
-
_onSearchExprChanged(e) {
|
|
7111
|
-
if (this._parent && this._parent.search) {
|
|
7112
|
-
this._parent.search(e.value);
|
|
7113
|
-
}
|
|
7114
|
-
}
|
|
7115
|
-
focus() {
|
|
7116
|
-
this._textbox?.focus();
|
|
7117
|
-
}
|
|
7118
|
-
}
|
|
7119
|
-
AXSearchBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXSearchableComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
7120
|
-
AXSearchBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXSearchBoxComponent, selector: "ax-search-box", inputs: { placeholder: "placeholder", debounceTime: "debounceTime", searchExp: "searchExp" }, viewQueries: [{ propertyName: "_textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\">\r\n </ax-icon>\r\n </ax-prefix>\r\n</ax-text-box>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "placeholder", "maxLength", "type", "autoComplete"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], pipes: { "trans": i1$3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxComponent, decorators: [{
|
|
7122
|
-
type: Component,
|
|
7123
|
-
args: [{ selector: 'ax-search-box', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\">\r\n </ax-icon>\r\n </ax-prefix>\r\n</ax-text-box>" }]
|
|
7124
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXSearchableComponent, decorators: [{
|
|
7125
|
-
type: Optional
|
|
7126
|
-
}, {
|
|
7127
|
-
type: Inject,
|
|
7128
|
-
args: [AXSearchableComponent]
|
|
7129
|
-
}] }]; }, propDecorators: { _textbox: [{
|
|
7130
|
-
type: ViewChild,
|
|
7131
|
-
args: [AXTextBoxComponent]
|
|
7132
|
-
}], placeholder: [{
|
|
7133
|
-
type: Input
|
|
7134
|
-
}], debounceTime: [{
|
|
7135
|
-
type: Input
|
|
7136
|
-
}], searchExp: [{
|
|
7137
|
-
type: Input
|
|
7138
|
-
}] } });
|
|
7139
|
-
|
|
7140
|
-
const COMPONENT$4 = [AXSearchBoxComponent];
|
|
7141
|
-
const MODULES$4 = [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule];
|
|
7142
|
-
class AXSearchBoxModule {
|
|
7143
|
-
}
|
|
7144
|
-
AXSearchBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7145
|
-
AXSearchBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, declarations: [AXSearchBoxComponent], imports: [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule], exports: [AXSearchBoxComponent] });
|
|
7146
|
-
AXSearchBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, providers: [], imports: [[...MODULES$4]] });
|
|
7147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSearchBoxModule, decorators: [{
|
|
7148
|
-
type: NgModule,
|
|
7149
|
-
args: [{
|
|
7150
|
-
declarations: [...COMPONENT$4],
|
|
7151
|
-
imports: [...MODULES$4],
|
|
7152
|
-
exports: [...COMPONENT$4],
|
|
7153
|
-
providers: [],
|
|
7154
|
-
}]
|
|
7155
|
-
}] });
|
|
7156
|
-
|
|
7157
7406
|
/**
|
|
7158
7407
|
* The Button is a component which detects user interaction and triggers a corresponding event
|
|
7159
7408
|
*
|
|
@@ -7200,7 +7449,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
7200
7449
|
onInit() {
|
|
7201
7450
|
super.onInit();
|
|
7202
7451
|
this._target = this._elementRef.nativeElement;
|
|
7203
|
-
this.
|
|
7452
|
+
this._updatePopupTitle();
|
|
7204
7453
|
}
|
|
7205
7454
|
onViewInit() {
|
|
7206
7455
|
super.onViewInit();
|
|
@@ -7210,6 +7459,11 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
7210
7459
|
this.value = null;
|
|
7211
7460
|
super.refresh();
|
|
7212
7461
|
}
|
|
7462
|
+
_updatePopupTitle() {
|
|
7463
|
+
// const count =this.selectedItems?.length;
|
|
7464
|
+
// this._popoverTitle = count > 1 ? `(${count}) items selected`: this.placeholder || AXTranslator.get('selectbox.popover.title')
|
|
7465
|
+
this._popoverTitle = this.placeholder || AXTranslator.get('selectbox.popover.title');
|
|
7466
|
+
}
|
|
7213
7467
|
_handleOnItemClick(e, item) {
|
|
7214
7468
|
if (this.isItemDisabled(item)) {
|
|
7215
7469
|
return;
|
|
@@ -7241,6 +7495,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
7241
7495
|
this._focusSelectedItem();
|
|
7242
7496
|
this._forceFocus = false;
|
|
7243
7497
|
}
|
|
7498
|
+
this._focusSearchBox();
|
|
7244
7499
|
}, 100);
|
|
7245
7500
|
}
|
|
7246
7501
|
}
|
|
@@ -7305,7 +7560,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
7305
7560
|
e.preventDefault();
|
|
7306
7561
|
}
|
|
7307
7562
|
else if ((e.code === 'Space' || e.code === 'Enter')) {
|
|
7308
|
-
debugger;
|
|
7309
7563
|
e.preventDefault();
|
|
7310
7564
|
const focusedItemId = this.listContainer.nativeElement.querySelector('.ax-state-focus')?.dataset?.id;
|
|
7311
7565
|
const focusedItem = _.findLast(this.flatItems, [this.valueField, focusedItemId]);
|
|
@@ -7344,14 +7598,16 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
7344
7598
|
else {
|
|
7345
7599
|
this._focusSelectedItem();
|
|
7346
7600
|
}
|
|
7347
|
-
|
|
7348
|
-
if (this._searchBox && !this._isMobile) {
|
|
7349
|
-
this._searchBox.focus();
|
|
7350
|
-
}
|
|
7601
|
+
this._focusSearchBox();
|
|
7351
7602
|
}
|
|
7352
7603
|
_handlePopupOnClosed(e) {
|
|
7353
7604
|
this.focus();
|
|
7354
7605
|
}
|
|
7606
|
+
_focusSearchBox() {
|
|
7607
|
+
if (this._searchBox && (!this._isMobile || this._searchBox.searchExp)) {
|
|
7608
|
+
this._searchBox.focus();
|
|
7609
|
+
}
|
|
7610
|
+
}
|
|
7355
7611
|
_focusItemByNav(sign) {
|
|
7356
7612
|
const list = this.listContainer.nativeElement;
|
|
7357
7613
|
const fn = (s) => list.querySelector(s);
|
|
@@ -7418,11 +7674,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
7418
7674
|
this._fetchData();
|
|
7419
7675
|
}
|
|
7420
7676
|
}
|
|
7421
|
-
_onSearchExprChanged(e) {
|
|
7422
|
-
this.empty();
|
|
7423
|
-
this._forceFocus = true;
|
|
7424
|
-
this._fetchData();
|
|
7425
|
-
}
|
|
7426
7677
|
search(exp) {
|
|
7427
7678
|
debugger;
|
|
7428
7679
|
this.empty();
|
|
@@ -7433,18 +7684,18 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
7433
7684
|
super._fetchData({ searchQuery: this._searchBox?.searchExp });
|
|
7434
7685
|
}
|
|
7435
7686
|
}
|
|
7436
|
-
AXSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSelectBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$
|
|
7687
|
+
AXSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSelectBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$4.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
7437
7688
|
AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", pageSize: "pageSize", valueField: "valueField", textField: "textField", items: "items", disabledField: "disabledField", disabledCallback: "disabledCallback", multiple: "multiple", selectionMode: "selectionMode", clearButton: "clearButton", checkbox: "checkbox" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", valueChanged: "valueChanged" }, host: { listeners: { "keydown": "_handleKeydown($event)" }, classAttribute: "ax-editor-container ax-drop-down" }, providers: [
|
|
7438
7689
|
{ provide: AXClosbaleComponent, useExisting: AXSelectBoxComponent },
|
|
7439
7690
|
{ provide: AXSearchableComponent, useExisting: AXSelectBoxComponent }
|
|
7440
|
-
], queries: [{ propertyName: "_searchBox", first: true, predicate: AXSearchBoxComponent, descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\" >\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title [text]=\"_popoverTitle\"></ax-title>\r\n <ax-close-button [icon]=\"multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'\"></ax-close-button>\r\n </ax-header>\r\n <div class=\"ax-p-2\" [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\">\r\n <ng-content select=\"ax-search-box\" ></ng-content>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>", components: [{ type: AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i8.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$3.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7691
|
+
], queries: [{ propertyName: "_searchBox", first: true, predicate: AXSearchBoxComponent, descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\"\r\n [adaptivityEnabled]=\"true\" (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\">\r\n <ax-header *ngIf=\"_isMobile\">\r\n <ax-title [text]=\"_popoverTitle\"></ax-title>\r\n <ax-close-button [icon]=\"multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'\"></ax-close-button>\r\n </ax-header>\r\n <div class=\"ax-p-2\" [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\">\r\n <ng-content select=\"ax-search-box\"></ng-content>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\"\r\n [innerHTML]=\"'common.no-result-for' | trans:{exp:this._searchBox? this._searchBox.searchExp :''}\">\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>", components: [{ type: AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i7.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7441
7692
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
|
|
7442
7693
|
type: Component,
|
|
7443
7694
|
args: [{ selector: 'ax-select-box', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...DATALIST_INPUTS, ...SELECTION_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...SELECTION_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
7444
7695
|
{ provide: AXClosbaleComponent, useExisting: AXSelectBoxComponent },
|
|
7445
7696
|
{ provide: AXSearchableComponent, useExisting: AXSelectBoxComponent }
|
|
7446
|
-
], 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'\"
|
|
7447
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$
|
|
7697
|
+
], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\"\r\n [adaptivityEnabled]=\"true\" (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\">\r\n <ax-header *ngIf=\"_isMobile\">\r\n <ax-title [text]=\"_popoverTitle\"></ax-title>\r\n <ax-close-button [icon]=\"multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'\"></ax-close-button>\r\n </ax-header>\r\n <div class=\"ax-p-2\" [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\">\r\n <ng-content select=\"ax-search-box\"></ng-content>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\"\r\n [innerHTML]=\"'common.no-result-for' | trans:{exp:this._searchBox? this._searchBox.searchExp :''}\">\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>" }]
|
|
7698
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
|
|
7448
7699
|
type: ViewChild,
|
|
7449
7700
|
args: [AXPopoverComponent, { static: true }]
|
|
7450
7701
|
}], _searchBox: [{
|
|
@@ -8670,16 +8921,17 @@ class AXValidationRuleComponent extends AXBaseComponentMixin {
|
|
|
8670
8921
|
if (this.enabled === false) {
|
|
8671
8922
|
return Promise.resolve({ result: true });
|
|
8672
8923
|
}
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
return this._internalValidate(this.rule, value, this.message, this.value);
|
|
8924
|
+
if (this.rule == 'custom') {
|
|
8925
|
+
const regRule = AXConfig.get(`form.validation.rules.${this.value}`);
|
|
8926
|
+
if (regRule) {
|
|
8927
|
+
return this._internalValidate(regRule.rule, value, this.message || regRule.message, regRule.value);
|
|
8928
|
+
}
|
|
8679
8929
|
}
|
|
8930
|
+
return this._internalValidate(this.rule, value, this.message, this.value);
|
|
8680
8931
|
}
|
|
8681
8932
|
_internalValidate(type, value, message, ruleValue) {
|
|
8682
8933
|
return new Promise(resolve => {
|
|
8934
|
+
debugger;
|
|
8683
8935
|
switch (type) {
|
|
8684
8936
|
case 'required':
|
|
8685
8937
|
resolve({
|
|
@@ -8694,7 +8946,6 @@ class AXValidationRuleComponent extends AXBaseComponentMixin {
|
|
|
8694
8946
|
result: ex.test(value)
|
|
8695
8947
|
});
|
|
8696
8948
|
break;
|
|
8697
|
-
case 'custom':
|
|
8698
8949
|
case 'callback':
|
|
8699
8950
|
if (typeof ruleValue === 'function') {
|
|
8700
8951
|
const res = {};
|
|
@@ -8715,11 +8966,17 @@ class AXValidationRuleComponent extends AXBaseComponentMixin {
|
|
|
8715
8966
|
}
|
|
8716
8967
|
}
|
|
8717
8968
|
else {
|
|
8718
|
-
resolve({
|
|
8969
|
+
resolve({
|
|
8970
|
+
message: AXTranslator.get('validation.messages.invalid-rull-fn'),
|
|
8971
|
+
result: false
|
|
8972
|
+
});
|
|
8719
8973
|
}
|
|
8720
8974
|
break;
|
|
8721
8975
|
default:
|
|
8722
|
-
resolve({
|
|
8976
|
+
resolve({
|
|
8977
|
+
message: AXTranslator.get('validation.messages.invalid-rull-name'),
|
|
8978
|
+
result: false
|
|
8979
|
+
});
|
|
8723
8980
|
}
|
|
8724
8981
|
});
|
|
8725
8982
|
}
|
|
@@ -8782,5 +9039,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
8782
9039
|
* Generated bundle index. Do not edit.
|
|
8783
9040
|
*/
|
|
8784
9041
|
|
|
8785
|
-
export { AXActionSheetComponent, AXActionSheetItemComponent, AXActionSheetModule, AXAlertButtonComponent, AXAlertComponent, AXAlertModule, AXAvatarComponent, AXAvatarGroup, AXAvatarMixin, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseAlertMixin, AXBaseBadgeMixin, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBaseMenuMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTabItemMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXBreadCrumbsComponent, AXBreadCrumbsItemComponent, AXBreadcrumbsModule, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXClosbaleComponent, AXCollapseComponent, AXCollapseGroupComponent, AXCollapseModule, AXColorPickerComponent, AXColorPickerModule, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorCloseButtonComponent, AXDecoratorContentComponent, AXDecoratorFooterComponent, AXDecoratorHeaderComponent, AXDecoratorIconComponent, AXDecoratorModule, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorTitleComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXInfiniteScrollerDirective, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXOverlayService, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPickerComponent, AXPickerModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXProgressBarComponent, AXProgressBarModule, AXRadioComponent, AXRadioModule, AXRangeChangedEvent, AXRangeSliderComponent, AXRangeSliderModule, AXRatingComponent, AXRatingModule, AXResponsiveDirective, AXResultComponent, AXResultModule, AXSearchBoxComponent, AXSearchBoxModule, AXSearchableComponent, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTextareaComponent, AXTextareaModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXTreeViewComponent, AXTreeViewModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
|
|
9042
|
+
export { AXActionSheetComponent, AXActionSheetItemComponent, AXActionSheetModule, AXAlertButtonComponent, AXAlertComponent, AXAlertModule, AXAvatarComponent, AXAvatarGroup, AXAvatarMixin, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseAlertMixin, AXBaseBadgeMixin, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseColorPickerMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBaseMenuMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTabItemMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXBreadCrumbsComponent, AXBreadCrumbsItemComponent, AXBreadcrumbsModule, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXClosbaleComponent, AXCollapseComponent, AXCollapseGroupComponent, AXCollapseModule, AXColorPaletteInputComponent, AXColorPaletteModule, AXColorPalettePickerComponent, AXColorPalettePreviewComponent, AXColorPaletteSwatchesComponent, AXColorPalleteComponent, AXColorPickerComponent, AXColorPickerModule, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorCloseButtonComponent, AXDecoratorContentComponent, AXDecoratorFooterComponent, AXDecoratorHeaderComponent, AXDecoratorIconComponent, AXDecoratorModule, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorTitleComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXInfiniteScrollerDirective, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXOverlayService, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPickerComponent, AXPickerModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXProgressBarComponent, AXProgressBarModule, AXRadioComponent, AXRadioModule, AXRangeChangedEvent, AXRangeSliderComponent, AXRangeSliderModule, AXRatingComponent, AXRatingModule, AXResponsiveDirective, AXResultComponent, AXResultModule, AXSearchBoxComponent, AXSearchBoxModule, AXSearchableComponent, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTextareaComponent, AXTextareaModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXTreeViewComponent, AXTreeViewModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValuableComponent, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
|
|
8786
9043
|
//# sourceMappingURL=acorex-components.mjs.map
|