@acorex/components 5.0.43 → 5.0.44
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/common.module.mjs +5 -4
- package/esm2020/lib/base/index.mjs +2 -1
- package/esm2020/lib/base/infinite-scroll.directive.mjs +63 -0
- package/esm2020/lib/base/mixin/datalist-component.class.mjs +26 -13
- package/esm2020/lib/base/mixin/datalist.class.mjs +3 -0
- package/esm2020/lib/base/mixin/mixin.class.mjs +2 -1
- package/esm2020/lib/base/mixin/selection-component.class.mjs +7 -3
- package/esm2020/lib/calendar/calendar.component.mjs +1 -2
- package/esm2020/lib/popover/popover.component.mjs +3 -4
- package/esm2020/lib/popup/popup.component.mjs +3 -3
- package/esm2020/lib/selectbox/selectbox.component.mjs +107 -60
- package/esm2020/lib/selectbox/selectbox.module.mjs +44 -5
- package/esm2020/lib/treeview/tree-view.component.mjs +8 -5
- package/fesm2015/acorex-components.mjs +252 -89
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +250 -89
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/base/common.module.d.ts +2 -1
- package/lib/base/index.d.ts +1 -0
- package/lib/base/infinite-scroll.directive.d.ts +25 -0
- package/lib/base/mixin/datalist-component.class.d.ts +11 -4
- package/lib/base/mixin/datalist.class.d.ts +11 -0
- package/lib/base/mixin/mixin.class.d.ts +1 -0
- package/lib/base/mixin/selection-component.class.d.ts +1 -0
- package/lib/selectbox/selectbox.component.d.ts +18 -5
- package/lib/selectbox/selectbox.module.d.ts +11 -10
- package/lib/treeview/tree-view.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, Inject, EventEmitter, Directive, NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation,
|
|
3
|
+
import { Injectable, Inject, EventEmitter, Directive, Input, NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Output, HostBinding, HostListener, ContentChildren, Optional, ViewChild, ContentChild, TemplateRef, ElementRef, ViewChildren } from '@angular/core';
|
|
4
4
|
import _ from 'lodash';
|
|
5
5
|
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
6
6
|
import * as i1$2 from '@acorex/core';
|
|
7
7
|
import { AXObjectUtil, AXDateTime, AXDateTimeRange, AXDateTimeModule, AXConfig, AXTranslationModule, AXDrawingUtil, AXTranslator, AXStringUtil } from '@acorex/core';
|
|
8
|
-
import { Subscription, Subject, merge, asyncScheduler, BehaviorSubject
|
|
9
|
-
import { debounceTime, distinctUntilChanged, observeOn, finalize, throttleTime } from 'rxjs/operators';
|
|
8
|
+
import { Subscription, Subject, fromEvent, merge, asyncScheduler, BehaviorSubject } from 'rxjs';
|
|
9
|
+
import { debounceTime, distinctUntilChanged, map, pairwise, filter, startWith, exhaustMap, observeOn, finalize, throttleTime } from 'rxjs/operators';
|
|
10
10
|
import * as i2 from '@angular/common';
|
|
11
11
|
import { CommonModule, DOCUMENT } from '@angular/common';
|
|
12
12
|
import * as i1 from '@angular/forms';
|
|
@@ -278,16 +278,18 @@ function _ClickableComponenetMixin(Base) {
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
function _DatalistComponenetMixin(Base) {
|
|
281
|
-
var _currentPage, _isLoading, _loadedItems, _totalItems, _isLazy, _items, _a;
|
|
281
|
+
var _instances, _currentPage, _isLoading, _loadedItems, _flatItems, _totalItems, _isLazy, _items, _generateFlatItems, _a;
|
|
282
282
|
return _a = class extends Base {
|
|
283
283
|
constructor(...args) {
|
|
284
284
|
super(...args);
|
|
285
|
+
_instances.add(this);
|
|
285
286
|
this.valueField = 'id';
|
|
286
287
|
this.textField = 'text';
|
|
287
288
|
this.pageSize = 10;
|
|
288
289
|
_currentPage.set(this, 0);
|
|
289
290
|
_isLoading.set(this, false);
|
|
290
291
|
_loadedItems.set(this, []);
|
|
292
|
+
_flatItems.set(this, []);
|
|
291
293
|
_totalItems.set(this, 0);
|
|
292
294
|
_isLazy.set(this, false);
|
|
293
295
|
_items.set(this, []);
|
|
@@ -306,6 +308,7 @@ function _DatalistComponenetMixin(Base) {
|
|
|
306
308
|
if (Array.isArray(v)) {
|
|
307
309
|
__classPrivateFieldSet(this, _items, this._formatData(v), "f");
|
|
308
310
|
this._onDataLoaded();
|
|
311
|
+
__classPrivateFieldGet(this, _instances, "m", _generateFlatItems).call(this);
|
|
309
312
|
}
|
|
310
313
|
else if (typeof v === 'function') {
|
|
311
314
|
__classPrivateFieldSet(this, _isLazy, true, "f");
|
|
@@ -314,17 +317,21 @@ function _DatalistComponenetMixin(Base) {
|
|
|
314
317
|
else {
|
|
315
318
|
__classPrivateFieldSet(this, _items, [], "f");
|
|
316
319
|
this._onDataLoaded();
|
|
320
|
+
__classPrivateFieldGet(this, _instances, "m", _generateFlatItems).call(this);
|
|
317
321
|
}
|
|
318
322
|
}
|
|
319
323
|
get displayItems() {
|
|
320
324
|
if (Array.isArray(this.items)) {
|
|
321
|
-
return __classPrivateFieldGet(this, _items, "f") || [];
|
|
325
|
+
return (__classPrivateFieldGet(this, _items, "f") || []);
|
|
322
326
|
}
|
|
323
327
|
else if (typeof __classPrivateFieldGet(this, _items, "f") == 'function') {
|
|
324
328
|
return __classPrivateFieldGet(this, _loadedItems, "f") || [];
|
|
325
329
|
}
|
|
326
330
|
return [];
|
|
327
331
|
}
|
|
332
|
+
get flatItems() {
|
|
333
|
+
return __classPrivateFieldGet(this, _flatItems, "f") || [];
|
|
334
|
+
}
|
|
328
335
|
get isLoading() {
|
|
329
336
|
return __classPrivateFieldGet(this, _isLoading, "f");
|
|
330
337
|
}
|
|
@@ -340,13 +347,14 @@ function _DatalistComponenetMixin(Base) {
|
|
|
340
347
|
}
|
|
341
348
|
}), this.valueField);
|
|
342
349
|
}
|
|
343
|
-
_fetchData() {
|
|
350
|
+
_fetchData(opts) {
|
|
344
351
|
if ((this.loadedCount >= this.totalCount && this.totalCount != 0) || __classPrivateFieldGet(this, _isLoading, "f") || !__classPrivateFieldGet(this, _isLazy, "f")) {
|
|
345
352
|
return;
|
|
346
353
|
}
|
|
347
354
|
if (__classPrivateFieldGet(this, _items, "f")) {
|
|
348
355
|
__classPrivateFieldSet(this, _isLoading, true, "f");
|
|
349
|
-
|
|
356
|
+
const fetchFn = __classPrivateFieldGet(this, _items, "f");
|
|
357
|
+
fetchFn({ skip: __classPrivateFieldGet(this, _currentPage, "f") * this.pageSize, take: this.pageSize, searchQuery: opts === null || opts === void 0 ? void 0 : opts.searchQuery }).then(c => {
|
|
350
358
|
var _b;
|
|
351
359
|
var _a;
|
|
352
360
|
if (Array.isArray(c)) {
|
|
@@ -362,16 +370,10 @@ function _DatalistComponenetMixin(Base) {
|
|
|
362
370
|
}).finally(() => {
|
|
363
371
|
__classPrivateFieldSet(this, _isLoading, false, "f");
|
|
364
372
|
this._onDataLoaded();
|
|
373
|
+
__classPrivateFieldGet(this, _instances, "m", _generateFlatItems).call(this);
|
|
365
374
|
});
|
|
366
375
|
}
|
|
367
376
|
}
|
|
368
|
-
// _onInternalInit() {
|
|
369
|
-
// if (typeof this.#items == 'function') {
|
|
370
|
-
// this.#isLazy = true;
|
|
371
|
-
// this._fetchData();
|
|
372
|
-
// }
|
|
373
|
-
// super._onInternalInit();
|
|
374
|
-
// }
|
|
375
377
|
_onDataLoaded() {
|
|
376
378
|
}
|
|
377
379
|
_getItemDisplayTextTemplte(item) {
|
|
@@ -386,19 +388,30 @@ function _DatalistComponenetMixin(Base) {
|
|
|
386
388
|
return item[this.valueField];
|
|
387
389
|
}
|
|
388
390
|
refresh() {
|
|
391
|
+
this.empty();
|
|
392
|
+
this._fetchData();
|
|
393
|
+
}
|
|
394
|
+
empty() {
|
|
389
395
|
__classPrivateFieldSet(this, _isLoading, false, "f");
|
|
390
396
|
if (__classPrivateFieldGet(this, _loadedItems, "f")) {
|
|
391
397
|
__classPrivateFieldGet(this, _loadedItems, "f").length = 0;
|
|
392
398
|
}
|
|
393
|
-
this._fetchData();
|
|
394
399
|
}
|
|
395
400
|
},
|
|
396
401
|
_currentPage = new WeakMap(),
|
|
397
402
|
_isLoading = new WeakMap(),
|
|
398
403
|
_loadedItems = new WeakMap(),
|
|
404
|
+
_flatItems = new WeakMap(),
|
|
399
405
|
_totalItems = new WeakMap(),
|
|
400
406
|
_isLazy = new WeakMap(),
|
|
401
407
|
_items = new WeakMap(),
|
|
408
|
+
_instances = new WeakSet(),
|
|
409
|
+
_generateFlatItems = function _generateFlatItems() {
|
|
410
|
+
const flattenFn = (item) => {
|
|
411
|
+
return [item, _.flatMapDeep(item.children, flattenFn)];
|
|
412
|
+
};
|
|
413
|
+
__classPrivateFieldSet(this, _flatItems, _.flatMapDeep(this.displayItems, flattenFn), "f");
|
|
414
|
+
},
|
|
402
415
|
_a;
|
|
403
416
|
}
|
|
404
417
|
const DATALIST_INPUTS = [
|
|
@@ -409,6 +422,8 @@ const DATALIST_INPUTS = [
|
|
|
409
422
|
];
|
|
410
423
|
const DATALIST_OUTPUT = [];
|
|
411
424
|
|
|
425
|
+
;
|
|
426
|
+
|
|
412
427
|
function _DropdownComponenetMixin(Base) {
|
|
413
428
|
class Mixin extends Base {
|
|
414
429
|
constructor(...args) {
|
|
@@ -610,6 +625,9 @@ function _SelectionComponenetMixin(Base) {
|
|
|
610
625
|
get displayItems() {
|
|
611
626
|
return [];
|
|
612
627
|
}
|
|
628
|
+
get flatItems() {
|
|
629
|
+
return [];
|
|
630
|
+
}
|
|
613
631
|
_onInternalInit() {
|
|
614
632
|
super._onInternalInit();
|
|
615
633
|
}
|
|
@@ -655,8 +673,9 @@ function _SelectionComponenetMixin(Base) {
|
|
|
655
673
|
if (this.value == null || this.value == undefined) {
|
|
656
674
|
return [];
|
|
657
675
|
}
|
|
658
|
-
|
|
659
|
-
|
|
676
|
+
const items = this.flatItems;
|
|
677
|
+
if (items.length > 0) {
|
|
678
|
+
return items.filter(i => {
|
|
660
679
|
if (Array.isArray(this.value)) {
|
|
661
680
|
return this.value.some(ii => {
|
|
662
681
|
if (typeof ii === 'object') {
|
|
@@ -1114,17 +1133,76 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
1114
1133
|
args: [{ selector: '[ax-responsive]' }]
|
|
1115
1134
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
1116
1135
|
|
|
1136
|
+
;
|
|
1137
|
+
const AX_DEFAULT_SCROLL_POSITION = {
|
|
1138
|
+
scrollHeight: 0,
|
|
1139
|
+
scrollTop: 0,
|
|
1140
|
+
clientHeight: 0
|
|
1141
|
+
};
|
|
1142
|
+
class AXInfiniteScrollerDirective {
|
|
1143
|
+
constructor(elm) {
|
|
1144
|
+
this.elm = elm;
|
|
1145
|
+
this.scrollPercent = 70;
|
|
1146
|
+
this.isUserScrollingDown = (positions) => {
|
|
1147
|
+
return positions[0].sT < positions[1].sT;
|
|
1148
|
+
};
|
|
1149
|
+
this.isScrollExpectedPercent = (position) => {
|
|
1150
|
+
return ((position.sT + position.cH) / position.sH) > (this.scrollPercent / 100);
|
|
1151
|
+
};
|
|
1152
|
+
}
|
|
1153
|
+
ngAfterViewInit() {
|
|
1154
|
+
this.registerScrollEvent();
|
|
1155
|
+
this.streamScrollEvents();
|
|
1156
|
+
this.requestCallbackOnScroll();
|
|
1157
|
+
}
|
|
1158
|
+
registerScrollEvent() {
|
|
1159
|
+
this.scrollEvent$ = fromEvent(this.elm.nativeElement, 'scroll');
|
|
1160
|
+
}
|
|
1161
|
+
streamScrollEvents() {
|
|
1162
|
+
this.userScrolledDown$ = this.scrollEvent$
|
|
1163
|
+
.pipe(map((e) => ({
|
|
1164
|
+
scrollHeight: e.target.scrollHeight,
|
|
1165
|
+
scrollTop: e.target.scrollTop,
|
|
1166
|
+
clientHeight: e.target.clientHeight
|
|
1167
|
+
})), pairwise(), filter(positions => this.isUserScrollingDown(positions) && this.isScrollExpectedPercent(positions[1])));
|
|
1168
|
+
}
|
|
1169
|
+
requestCallbackOnScroll() {
|
|
1170
|
+
this.requestOnScroll$ = this.userScrolledDown$;
|
|
1171
|
+
if (this.immediateCallback) {
|
|
1172
|
+
this.requestOnScroll$ = this.requestOnScroll$.pipe(startWith([AX_DEFAULT_SCROLL_POSITION, AX_DEFAULT_SCROLL_POSITION]));
|
|
1173
|
+
}
|
|
1174
|
+
this.requestOnScroll$.pipe(exhaustMap(() => {
|
|
1175
|
+
return this.scrollCallback();
|
|
1176
|
+
}));
|
|
1177
|
+
//.subscribe((data) => { console.log(data) }, (err) => console.log(err));
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
AXInfiniteScrollerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXInfiniteScrollerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1181
|
+
AXInfiniteScrollerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.1", type: AXInfiniteScrollerDirective, selector: "[axInfiniteScroller]", inputs: { scrollCallback: "scrollCallback", immediateCallback: "immediateCallback", scrollPercent: "scrollPercent" }, ngImport: i0 });
|
|
1182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
|
|
1183
|
+
type: Directive,
|
|
1184
|
+
args: [{
|
|
1185
|
+
selector: '[axInfiniteScroller]'
|
|
1186
|
+
}]
|
|
1187
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { scrollCallback: [{
|
|
1188
|
+
type: Input
|
|
1189
|
+
}], immediateCallback: [{
|
|
1190
|
+
type: Input
|
|
1191
|
+
}], scrollPercent: [{
|
|
1192
|
+
type: Input
|
|
1193
|
+
}] } });
|
|
1194
|
+
|
|
1117
1195
|
class AXCommonModule {
|
|
1118
1196
|
}
|
|
1119
1197
|
AXCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1120
|
-
AXCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective], exports: [AXResponsiveDirective] });
|
|
1198
|
+
AXCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective, AXInfiniteScrollerDirective], exports: [AXResponsiveDirective, AXInfiniteScrollerDirective] });
|
|
1121
1199
|
AXCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXCommonModule, providers: [], imports: [[]] });
|
|
1122
1200
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXCommonModule, decorators: [{
|
|
1123
1201
|
type: NgModule,
|
|
1124
1202
|
args: [{
|
|
1125
1203
|
imports: [],
|
|
1126
|
-
exports: [AXResponsiveDirective],
|
|
1127
|
-
declarations: [AXResponsiveDirective],
|
|
1204
|
+
exports: [AXResponsiveDirective, AXInfiniteScrollerDirective],
|
|
1205
|
+
declarations: [AXResponsiveDirective, AXInfiniteScrollerDirective],
|
|
1128
1206
|
providers: [],
|
|
1129
1207
|
}]
|
|
1130
1208
|
}] });
|
|
@@ -2229,7 +2307,6 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
|
2229
2307
|
}
|
|
2230
2308
|
focus() {
|
|
2231
2309
|
var _a;
|
|
2232
|
-
debugger;
|
|
2233
2310
|
(_a = this._getHostElement().querySelector('.ax-calendar-slots>div')) === null || _a === void 0 ? void 0 : _a.focus();
|
|
2234
2311
|
}
|
|
2235
2312
|
_navNextPrev(prev) {
|
|
@@ -3477,7 +3554,6 @@ class AXPopoverComponent extends AXInteractiveComponenetMixin {
|
|
|
3477
3554
|
// if (e.key === 'Enter' && e.type === 'keydown') {
|
|
3478
3555
|
// this.toggle();
|
|
3479
3556
|
// }
|
|
3480
|
-
debugger;
|
|
3481
3557
|
if (e.key === 'Escape') {
|
|
3482
3558
|
if (this.isOpen) {
|
|
3483
3559
|
this.close();
|
|
@@ -3515,7 +3591,7 @@ class AXPopoverComponent extends AXInteractiveComponenetMixin {
|
|
|
3515
3591
|
this._overlayRef = this._overlay.create({
|
|
3516
3592
|
positionStrategy: this._overlay.position().global().centerHorizontally().centerVertically(),
|
|
3517
3593
|
disposeOnNavigation: true,
|
|
3518
|
-
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
3594
|
+
panelClass: ['ax-overflow-hidden', 'ax-animate-fadeIn', 'ax-animate-faster'],
|
|
3519
3595
|
hasBackdrop: true
|
|
3520
3596
|
});
|
|
3521
3597
|
}
|
|
@@ -3526,7 +3602,7 @@ class AXPopoverComponent extends AXInteractiveComponenetMixin {
|
|
|
3526
3602
|
.withPositions(Array.isArray(this.position) ? this.position : [this.position])
|
|
3527
3603
|
.withPush(false),
|
|
3528
3604
|
disposeOnNavigation: true,
|
|
3529
|
-
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
3605
|
+
panelClass: ['ax-overflow-hidden', 'ax-animate-fadeIn', 'ax-animate-faster'],
|
|
3530
3606
|
maxHeight: 'unset',
|
|
3531
3607
|
hasBackdrop: this.hasBackdrop,
|
|
3532
3608
|
backdropClass: [this.backdropClass || 'cdk-overlay-transparent-backdrop']
|
|
@@ -5232,10 +5308,10 @@ class AXPopupComponent extends AXBaseComponentMixin {
|
|
|
5232
5308
|
onFullScreen() { }
|
|
5233
5309
|
}
|
|
5234
5310
|
AXPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXPopupComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: AXLoadingService }, { token: i1$2.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
5235
|
-
AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\"
|
|
5311
|
+
AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, 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 <ng-container *ngIf=\"showHeader\">\r\n <div class=\"ax-popup-header\">\r\n <span>{{title}}</span>\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"showCloseButton\" (click)=\"_handleCloseClick()\" tabindex=\"1\"></i>\r\n </div>\r\n </ng-container>\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\r\n </div>\r\n</div>", directives: [{ type: i2$2.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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5236
5312
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXPopupComponent, decorators: [{
|
|
5237
5313
|
type: Component,
|
|
5238
|
-
args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\"
|
|
5314
|
+
args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, 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 <ng-container *ngIf=\"showHeader\">\r\n <div class=\"ax-popup-header\">\r\n <span>{{title}}</span>\r\n <i class=\"ax-ic ax-ic-close\" *ngIf=\"showCloseButton\" (click)=\"_handleCloseClick()\" tabindex=\"1\"></i>\r\n </div>\r\n </ng-container>\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\r\n </div>\r\n</div>" }]
|
|
5239
5315
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i1$2.AXPlatform }]; }, propDecorators: { onKeydownHandler: [{
|
|
5240
5316
|
type: HostListener,
|
|
5241
5317
|
args: ['keydown.escape', ['$event']]
|
|
@@ -5424,9 +5500,16 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5424
5500
|
this._zone = _zone;
|
|
5425
5501
|
this._platform = _platform;
|
|
5426
5502
|
this.clearButton = false;
|
|
5503
|
+
this._searchSettings = { enabled: false, expr: null };
|
|
5427
5504
|
this.checkbox = false;
|
|
5428
|
-
this._currentfocusedIndex = -1;
|
|
5429
5505
|
this._isMobile = false;
|
|
5506
|
+
this._forceFocus = false;
|
|
5507
|
+
}
|
|
5508
|
+
get searchSettings() {
|
|
5509
|
+
return this._searchSettings;
|
|
5510
|
+
}
|
|
5511
|
+
set searchSettings(v) {
|
|
5512
|
+
this._searchSettings = v || { enabled: false, expr: null };
|
|
5430
5513
|
}
|
|
5431
5514
|
get emptyTemplate() {
|
|
5432
5515
|
return this._contentEmptyTemplate;
|
|
@@ -5444,17 +5527,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5444
5527
|
this._target = this._elementRef.nativeElement;
|
|
5445
5528
|
this._isMobile = this._platform.is('Mobile');
|
|
5446
5529
|
this._popoverTitle = this.placeholder || AXTranslator.get('selectbox.popover.title');
|
|
5447
|
-
this.onOpened.subscribe(() => {
|
|
5448
|
-
if (this.displayItems.length == 0) {
|
|
5449
|
-
this._fetchData();
|
|
5450
|
-
}
|
|
5451
|
-
else {
|
|
5452
|
-
this._focusSelectedItem();
|
|
5453
|
-
}
|
|
5454
|
-
});
|
|
5455
|
-
this.onClosed.subscribe(() => {
|
|
5456
|
-
this.focus();
|
|
5457
|
-
});
|
|
5458
5530
|
}
|
|
5459
5531
|
onViewInit() {
|
|
5460
5532
|
super.onViewInit();
|
|
@@ -5489,10 +5561,16 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5489
5561
|
}
|
|
5490
5562
|
}
|
|
5491
5563
|
_onDataLoaded() {
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5564
|
+
if (this.popover.isOpen) {
|
|
5565
|
+
setTimeout(() => {
|
|
5566
|
+
this._checkForLoadData();
|
|
5567
|
+
this.popover.updatePosition();
|
|
5568
|
+
if (this._forceFocus) {
|
|
5569
|
+
this._focusSelectedItem();
|
|
5570
|
+
this._forceFocus = false;
|
|
5571
|
+
}
|
|
5572
|
+
}, 100);
|
|
5573
|
+
}
|
|
5496
5574
|
}
|
|
5497
5575
|
_onValueChanged(oldValue, newValue) {
|
|
5498
5576
|
super._onValueChanged(oldValue, newValue);
|
|
@@ -5507,7 +5585,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5507
5585
|
this.close();
|
|
5508
5586
|
}
|
|
5509
5587
|
_handleKeydown(e) {
|
|
5510
|
-
debugger;
|
|
5511
5588
|
const isLetter = new RegExp(/[a-zA-Z0-9\-]/).test(String.fromCharCode(e.keyCode));
|
|
5512
5589
|
if (e.code === 'Backspace' && e.type === 'keydown' &&
|
|
5513
5590
|
((this.allowNull === true && this.selectedItems.length > 0) ||
|
|
@@ -5527,7 +5604,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5527
5604
|
this.open();
|
|
5528
5605
|
}
|
|
5529
5606
|
else {
|
|
5530
|
-
this.
|
|
5607
|
+
this._selectedItemByNav((e.key === 'ArrowDown' ? 1 : -1));
|
|
5531
5608
|
}
|
|
5532
5609
|
}
|
|
5533
5610
|
e.preventDefault();
|
|
@@ -5541,13 +5618,9 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5541
5618
|
}
|
|
5542
5619
|
}
|
|
5543
5620
|
_handlePopoverKeydown(e) {
|
|
5544
|
-
debugger;
|
|
5545
5621
|
if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0) {
|
|
5546
5622
|
this.isUserInput = true;
|
|
5547
5623
|
this._focusItemByNav((e.key === 'ArrowDown' ? 1 : -1));
|
|
5548
|
-
if (!this.multiple) {
|
|
5549
|
-
this.selectItems(this.displayItems[this._currentfocusedIndex]);
|
|
5550
|
-
}
|
|
5551
5624
|
e.preventDefault();
|
|
5552
5625
|
}
|
|
5553
5626
|
else if (e.code === 'Backspace' &&
|
|
@@ -5559,7 +5632,9 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5559
5632
|
}
|
|
5560
5633
|
else if ((e.code === 'Space' || e.code === 'Enter')) {
|
|
5561
5634
|
e.preventDefault();
|
|
5562
|
-
|
|
5635
|
+
debugger;
|
|
5636
|
+
const focusedItemId = this.listContainer.nativeElement.querySelector('.ax-state-focus').dataset.id;
|
|
5637
|
+
const focusedItem = _.findLast(this.flatItems, [this.valueField, focusedItemId]);
|
|
5563
5638
|
if (focusedItem) {
|
|
5564
5639
|
if (this.isItemDisabled(focusedItem)) {
|
|
5565
5640
|
return;
|
|
@@ -5588,66 +5663,113 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5588
5663
|
}
|
|
5589
5664
|
_handlePopupOnOpened(e) {
|
|
5590
5665
|
this.popover.focus();
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
const lastSelectedItem = this.selectedItems[this.selectedItems.length - 1];
|
|
5595
|
-
this._currentfocusedIndex = lastSelectedItem ? this.displayItems.findIndex(c => c[this.valueField] == lastSelectedItem[this.valueField]) : 0;
|
|
5666
|
+
if (this.displayItems.length == 0) {
|
|
5667
|
+
this._forceFocus = true;
|
|
5668
|
+
this._fetchData();
|
|
5596
5669
|
}
|
|
5597
5670
|
else {
|
|
5598
|
-
|
|
5671
|
+
this._focusSelectedItem();
|
|
5599
5672
|
}
|
|
5600
|
-
if (this.
|
|
5601
|
-
this.
|
|
5673
|
+
if (this._searchBox) {
|
|
5674
|
+
this._searchBox.focus();
|
|
5602
5675
|
}
|
|
5603
|
-
if (this._currentfocusedIndex > this.displayItems.length - 1) {
|
|
5604
|
-
this._currentfocusedIndex = this.displayItems.length - 1;
|
|
5605
|
-
}
|
|
5606
|
-
// set scroll
|
|
5607
|
-
this._focusItemByIndex(this._currentfocusedIndex);
|
|
5608
5676
|
}
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5677
|
+
_handlePopupOnClosed(e) {
|
|
5678
|
+
this.focus();
|
|
5679
|
+
}
|
|
5680
|
+
_focusItemByNav(sign) {
|
|
5681
|
+
var _a;
|
|
5682
|
+
const list = this.listContainer.nativeElement;
|
|
5683
|
+
const fn = (s) => list.querySelector(s);
|
|
5684
|
+
const itemDiv = fn(`.ax-list-item.ax-state-focus`) || fn(`.ax-list-item.ax-state-selected`) || fn(`.ax-list-item`);
|
|
5685
|
+
let next = (sign == 1 ? itemDiv.nextElementSibling : itemDiv.previousElementSibling);
|
|
5686
|
+
if (next) {
|
|
5687
|
+
this._focusItemElement(next);
|
|
5688
|
+
}
|
|
5689
|
+
else {
|
|
5690
|
+
const parent = itemDiv.closest('.ax-list-item-group');
|
|
5691
|
+
if (parent) {
|
|
5692
|
+
const lis = (_a = (sign == 1 ? parent.nextElementSibling : parent.previousElementSibling)) === null || _a === void 0 ? void 0 : _a.querySelectorAll('li');
|
|
5693
|
+
const a = sign == 1 ? _.first(lis) : _.last(lis);
|
|
5694
|
+
if (a) {
|
|
5695
|
+
this._focusItemElement(a);
|
|
5616
5696
|
}
|
|
5617
|
-
}
|
|
5697
|
+
}
|
|
5618
5698
|
}
|
|
5619
5699
|
}
|
|
5620
5700
|
_focusSelectedItem() {
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5701
|
+
this._zone.runOutsideAngular(() => {
|
|
5702
|
+
const list = this.listContainer.nativeElement;
|
|
5703
|
+
const fn = (s) => list.querySelector(s);
|
|
5704
|
+
const itemDiv = fn(`.ax-list-item.ax-state-selected`) || fn(`.ax-list-item`);
|
|
5705
|
+
if (itemDiv) {
|
|
5706
|
+
this._focusItemElement(itemDiv);
|
|
5707
|
+
}
|
|
5708
|
+
});
|
|
5624
5709
|
}
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5710
|
+
_focusItemElement(el) {
|
|
5711
|
+
this._zone.runOutsideAngular(() => {
|
|
5712
|
+
const list = this.listContainer.nativeElement;
|
|
5713
|
+
list.querySelectorAll('.ax-list-item').forEach(c => {
|
|
5714
|
+
if (c == el) {
|
|
5715
|
+
c.classList.add('ax-state-focus');
|
|
5716
|
+
el.scrollIntoView({ behavior: 'auto' });
|
|
5717
|
+
}
|
|
5718
|
+
else {
|
|
5719
|
+
c.classList.remove('ax-state-focus');
|
|
5720
|
+
}
|
|
5721
|
+
});
|
|
5722
|
+
this._searchBox ? this._searchBox.focus() : el.focus();
|
|
5723
|
+
});
|
|
5724
|
+
}
|
|
5725
|
+
_selectedItemByNav(sign) {
|
|
5726
|
+
const last = _.last(this.selectedItems);
|
|
5727
|
+
let i = 0;
|
|
5728
|
+
if (last) {
|
|
5729
|
+
i = _.findLastIndex(this.flatItems, [this.valueField, last[this.valueField]]);
|
|
5730
|
+
}
|
|
5731
|
+
i += sign;
|
|
5732
|
+
let next = _.nth(this.flatItems, i);
|
|
5733
|
+
while ((next === null || next === void 0 ? void 0 : next.children) && (next === null || next === void 0 ? void 0 : next.children.length)) {
|
|
5734
|
+
i += sign;
|
|
5735
|
+
next = _.nth(this.flatItems, i);
|
|
5736
|
+
}
|
|
5737
|
+
if (next) {
|
|
5738
|
+
this.selectItems(next);
|
|
5628
5739
|
}
|
|
5629
|
-
if (
|
|
5630
|
-
|
|
5740
|
+
else if (next == null && sign == 1) {
|
|
5741
|
+
this._fetchData();
|
|
5631
5742
|
}
|
|
5632
|
-
|
|
5633
|
-
|
|
5743
|
+
}
|
|
5744
|
+
_onSearchExprChanged(e) {
|
|
5745
|
+
this.empty();
|
|
5746
|
+
this._fetchData();
|
|
5747
|
+
}
|
|
5748
|
+
_fetchData() {
|
|
5749
|
+
var _a;
|
|
5750
|
+
super._fetchData({ searchQuery: (_a = this._searchBox) === null || _a === void 0 ? void 0 : _a.value });
|
|
5634
5751
|
}
|
|
5635
5752
|
}
|
|
5636
5753
|
AXSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXSelectBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$2.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
5637
|
-
AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", 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", 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" }, 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 <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-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 (onOpened)=\"_handlePopupOnOpened($event)\">\r\n <div class=\"ax-overlay-pane\" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-center]=\"_isMobile\" [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list ax-list-container\" panel>\r\n <div *ngIf=\"_isMobile\" class=\"ax-overlay-pane-header\">\r\n <span>{{_popoverTitle}}</span>\r\n <i class=\"ax-ic {{multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'}}\" (click)=\"close()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n (scroll)=\"_handleListScroll($event)\" #listContainer>\r\n <!--------------- Check loading state --------------->\r\n <ng-container *ngIf=\"!isLoading; else tmpLoading\">\r\n <!--------------- Check empty state ---------------->\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\"></ng-container>\r\n\r\n\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <!-- <li *ngIf=\"item.visible !=false\" (click)=\"onMenuClick($event,item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <span>{{item.text}}</span>\r\n <ax-icon [ngClass]=\"{'active-icon': item.isOpen}\" *ngIf=\"item?.children?.length > 0\" class=\"ax-ic-chevron\">\r\n </ax-icon>\r\n <ax-icon *ngIf=\"item.icon\" class=\"{{item.icon}}\">\r\n </ax-icon>\r\n </a>\r\n <ul *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\"></ng-container>\r\n </ul>\r\n </li> -->\r\n </ng-container>\r\n </ng-template>\r\n\r\n\r\n <!--------------- items iteration ---------------->\r\n <ng-container *ngFor=\"let item of displayItems;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 [class.ax-state-disabled]=\"isItemDisabled(item)\">\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=\"!multiple; then singleTemplate; else multipleTemplate\">\r\n </ng-container>\r\n <ng-template #singleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [attr.tabindex]=\"i\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n (click)=\"_handleOnItemClick($event,item)\">\r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </li>\r\n </ng-template>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n (click)=\"_handleOnItemClick($event,item)\">\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 \r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ul>\r\n </ng-container>\r\n </ng-container>\r\n <!--------------- empty template --------------->\r\n <ng-template #tmpEmpty>\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-template>\r\n <!--------------- loading template --------------->\r\n <ng-template #tmpLoading>\r\n <!--------------- check for custom template --------------->\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-template>\r\n\r\n <!-- <ng-container *ngFor=\"let item of displayItems;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"!multiple; then singleTemplate; else multipleTemplate\"></ng-container>\r\n <ng-template #singleTemplate>\r\n <div class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [attr.tabindex]=\"i\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n (click)=\"_handleOnItemClick($event,item)\">\r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </div>\r\n </ng-template>\r\n <ng-template #multipleTemplate>\r\n <div class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n (click)=\"_handleOnItemClick($event,item)\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\" *ngIf=\"checkbox\"\r\n [checked]=\"isItemSelected(item)\" [disabled]=\"isItemDisabled(item)\">\r\n \r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </div>\r\n </ng-template>\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=\"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-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 </div>\r\n\r\n </div>\r\n </div>\r\n</ax-popover>", components: [{ type: AXBadgeComponent, selector: "ax-badge", inputs: ["text", "color"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"], outputs: ["onOpened", "onClosed"] }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$2.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5754
|
+
AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", 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", pageSize: "pageSize", valueField: "valueField", textField: "textField", items: "items", disabledField: "disabledField", disabledCallback: "disabledCallback", multiple: "multiple", selectionMode: "selectionMode", clearButton: "clearButton", searchSettings: "searchSettings", 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" }, 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 }, { propertyName: "_searchBox", first: true, predicate: ["searchBox"], descendants: 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 (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-center]=\"_isMobile\" [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list ax-list-container\" panel>\r\n <div *ngIf=\"_isMobile\" class=\"ax-overlay-pane-header\">\r\n <span>{{_popoverTitle}}</span>\r\n <i class=\"ax-ic {{multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'}}\" (click)=\"close()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n <div *ngIf=\"searchSettings.enabled\" class=\"ax-p-2\" [cdkTrapFocus]=\"true\">\r\n <ax-text-box #searchBox placeholder=\"{{ 'common.search' | trans }}\" [debounceTime]=\"500\"\r\n [(value)]=\"searchSettings.expr\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n </ax-text-box>\r\n </div>\r\n <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\" (scroll)=\"_handleListScroll($event)\" #listContainer>\r\n <!--------------- Check empty state ---------------->\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <!--------------- recursive template ---------------->\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 <!--------------- items iteration ---------------->\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 <!--------------- children iteration ---------------->\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 >\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 >\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 \r\n \r\n <span> {{ _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 <!--------------- loading template --------------->\r\n <ng-container *ngIf=\"isLoading\">\r\n <!--------------- check for custom template --------------->\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 <!--------------- empty template --------------->\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>\r\n </div>\r\n </div>\r\n </div>\r\n</ax-popover>", components: [{ type: AXBadgeComponent, selector: "ax-badge", inputs: ["text", "color"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "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"], outputs: ["onOpened", "onClosed"] }, { type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "placeholder", "maxLength"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$2.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$2.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5638
5755
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
|
|
5639
5756
|
type: Component,
|
|
5640
|
-
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, 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-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 (onOpened)=\"_handlePopupOnOpened($event)\">\r\n <div class=\"ax-overlay-pane\" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-center]=\"_isMobile\" [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list ax-list-container\" panel>\r\n <div *ngIf=\"_isMobile\" class=\"ax-overlay-pane-header\">\r\n <span>{{_popoverTitle}}</span>\r\n <i class=\"ax-ic {{multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'}}\" (click)=\"close()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n (scroll)=\"_handleListScroll($event)\" #listContainer>\r\n <!--------------- Check loading state --------------->\r\n <ng-container *ngIf=\"!isLoading; else tmpLoading\">\r\n <!--------------- Check empty state ---------------->\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\"></ng-container>\r\n\r\n\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <!-- <li *ngIf=\"item.visible !=false\" (click)=\"onMenuClick($event,item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <span>{{item.text}}</span>\r\n <ax-icon [ngClass]=\"{'active-icon': item.isOpen}\" *ngIf=\"item?.children?.length > 0\" class=\"ax-ic-chevron\">\r\n </ax-icon>\r\n <ax-icon *ngIf=\"item.icon\" class=\"{{item.icon}}\">\r\n </ax-icon>\r\n </a>\r\n <ul *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\"></ng-container>\r\n </ul>\r\n </li> -->\r\n </ng-container>\r\n </ng-template>\r\n\r\n\r\n <!--------------- items iteration ---------------->\r\n <ng-container *ngFor=\"let item of displayItems;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 [class.ax-state-disabled]=\"isItemDisabled(item)\">\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=\"!multiple; then singleTemplate; else multipleTemplate\">\r\n </ng-container>\r\n <ng-template #singleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [attr.tabindex]=\"i\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n (click)=\"_handleOnItemClick($event,item)\">\r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </li>\r\n </ng-template>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n (click)=\"_handleOnItemClick($event,item)\">\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 \r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ul>\r\n </ng-container>\r\n </ng-container>\r\n <!--------------- empty template --------------->\r\n <ng-template #tmpEmpty>\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-template>\r\n <!--------------- loading template --------------->\r\n <ng-template #tmpLoading>\r\n <!--------------- check for custom template --------------->\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-template>\r\n\r\n <!-- <ng-container *ngFor=\"let item of displayItems;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <div class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </div>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"!multiple; then singleTemplate; else multipleTemplate\"></ng-container>\r\n <ng-template #singleTemplate>\r\n <div class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [attr.tabindex]=\"i\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n (click)=\"_handleOnItemClick($event,item)\">\r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </div>\r\n </ng-template>\r\n <ng-template #multipleTemplate>\r\n <div class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n (click)=\"_handleOnItemClick($event,item)\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\" *ngIf=\"checkbox\"\r\n [checked]=\"isItemSelected(item)\" [disabled]=\"isItemDisabled(item)\">\r\n \r\n {{ _getItemDisplayTextTemplte(item) }}\r\n </div>\r\n </ng-template>\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=\"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-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 </div>\r\n\r\n </div>\r\n </div>\r\n</ax-popover>" }]
|
|
5757
|
+
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, 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 (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-center]=\"_isMobile\" [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list ax-list-container\" panel>\r\n <div *ngIf=\"_isMobile\" class=\"ax-overlay-pane-header\">\r\n <span>{{_popoverTitle}}</span>\r\n <i class=\"ax-ic {{multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'}}\" (click)=\"close()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n <div *ngIf=\"searchSettings.enabled\" class=\"ax-p-2\" [cdkTrapFocus]=\"true\">\r\n <ax-text-box #searchBox placeholder=\"{{ 'common.search' | trans }}\" [debounceTime]=\"500\"\r\n [(value)]=\"searchSettings.expr\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n </ax-text-box>\r\n </div>\r\n <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\" (scroll)=\"_handleListScroll($event)\" #listContainer>\r\n <!--------------- Check empty state ---------------->\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <!--------------- recursive template ---------------->\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 <!--------------- items iteration ---------------->\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 <!--------------- children iteration ---------------->\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 >\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 >\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 \r\n \r\n <span> {{ _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 <!--------------- loading template --------------->\r\n <ng-container *ngIf=\"isLoading\">\r\n <!--------------- check for custom template --------------->\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 <!--------------- empty template --------------->\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>\r\n </div>\r\n </div>\r\n </div>\r\n</ax-popover>" }]
|
|
5641
5758
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$2.AXPlatform }]; }, propDecorators: { popover: [{
|
|
5642
5759
|
type: ViewChild,
|
|
5643
5760
|
args: [AXPopoverComponent, { static: true }]
|
|
5644
5761
|
}], clearButton: [{
|
|
5645
5762
|
type: Input
|
|
5763
|
+
}], searchSettings: [{
|
|
5764
|
+
type: Input
|
|
5646
5765
|
}], checkbox: [{
|
|
5647
5766
|
type: Input
|
|
5648
5767
|
}], listContainer: [{
|
|
5649
5768
|
type: ViewChild,
|
|
5650
5769
|
args: ['listContainer', { static: true }]
|
|
5770
|
+
}], _searchBox: [{
|
|
5771
|
+
type: ViewChild,
|
|
5772
|
+
args: ['searchBox']
|
|
5651
5773
|
}], _contentEmptyTemplate: [{
|
|
5652
5774
|
type: ContentChild,
|
|
5653
5775
|
args: ['emptyTemplate']
|
|
@@ -5659,12 +5781,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
5659
5781
|
class AXSelectBoxModule {
|
|
5660
5782
|
}
|
|
5661
5783
|
AXSelectBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXSelectBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5662
|
-
AXSelectBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXSelectBoxModule, declarations: [AXSelectBoxComponent], imports: [CommonModule,
|
|
5663
|
-
|
|
5784
|
+
AXSelectBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXSelectBoxModule, declarations: [AXSelectBoxComponent], imports: [CommonModule,
|
|
5785
|
+
AXCommonModule,
|
|
5786
|
+
FormsModule,
|
|
5787
|
+
AXCheckBoxModule,
|
|
5788
|
+
AXBadgeModule,
|
|
5789
|
+
AXEditorDecoratorModule,
|
|
5790
|
+
AXTranslationModule,
|
|
5791
|
+
AXIconModule,
|
|
5792
|
+
AXPopoverModule,
|
|
5793
|
+
AXButtonModule,
|
|
5794
|
+
AXLoadingModule,
|
|
5795
|
+
A11yModule,
|
|
5796
|
+
AXTextBoxModule], exports: [AXSelectBoxComponent] });
|
|
5797
|
+
AXSelectBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXSelectBoxModule, providers: [], imports: [[CommonModule,
|
|
5798
|
+
AXCommonModule,
|
|
5799
|
+
FormsModule,
|
|
5800
|
+
AXCheckBoxModule,
|
|
5801
|
+
AXBadgeModule,
|
|
5802
|
+
AXEditorDecoratorModule,
|
|
5803
|
+
AXTranslationModule,
|
|
5804
|
+
AXIconModule,
|
|
5805
|
+
AXPopoverModule,
|
|
5806
|
+
AXButtonModule,
|
|
5807
|
+
AXLoadingModule,
|
|
5808
|
+
A11yModule,
|
|
5809
|
+
AXTextBoxModule
|
|
5810
|
+
]] });
|
|
5664
5811
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXSelectBoxModule, decorators: [{
|
|
5665
5812
|
type: NgModule,
|
|
5666
5813
|
args: [{
|
|
5667
|
-
imports: [CommonModule,
|
|
5814
|
+
imports: [CommonModule,
|
|
5815
|
+
AXCommonModule,
|
|
5816
|
+
FormsModule,
|
|
5817
|
+
AXCheckBoxModule,
|
|
5818
|
+
AXBadgeModule,
|
|
5819
|
+
AXEditorDecoratorModule,
|
|
5820
|
+
AXTranslationModule,
|
|
5821
|
+
AXIconModule,
|
|
5822
|
+
AXPopoverModule,
|
|
5823
|
+
AXButtonModule,
|
|
5824
|
+
AXLoadingModule,
|
|
5825
|
+
A11yModule,
|
|
5826
|
+
AXTextBoxModule
|
|
5827
|
+
],
|
|
5668
5828
|
exports: [AXSelectBoxComponent],
|
|
5669
5829
|
declarations: [AXSelectBoxComponent],
|
|
5670
5830
|
providers: [],
|
|
@@ -6591,6 +6751,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
6591
6751
|
|
|
6592
6752
|
class AXTreeViewComponent {
|
|
6593
6753
|
constructor() {
|
|
6754
|
+
this.showLines = "all";
|
|
6594
6755
|
this.list = [
|
|
6595
6756
|
{
|
|
6596
6757
|
title: 'childless',
|
|
@@ -6676,11 +6837,13 @@ class AXTreeViewComponent {
|
|
|
6676
6837
|
ngOnInit() { }
|
|
6677
6838
|
}
|
|
6678
6839
|
AXTreeViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXTreeViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6679
|
-
AXTreeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXTreeViewComponent, selector: "ax-tree-view", host: { classAttribute: "ax-tree-view" }, ngImport: i0, template: "<ul>\r\n <ng-template #recursiveList let-list>\r\n <li *ngFor=\"let item of list\">\r\n <span>\r\n <ax-check-box></ax-check-box>\r\n \r\n <span>{{item.title}}</span>\r\n </span>\r\n <ul *ngIf=\"item.children.length > 0\">\r\n <ng-container *ngTemplateOutlet=\"recursiveList; context:{ $implicit: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-template>\r\n <ng-container *ngTemplateOutlet=\"recursiveList; context:{ $implicit: list }\"></ng-container>\r\n </ul>", components: [{ type: AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
6840
|
+
AXTreeViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.1", type: AXTreeViewComponent, selector: "ax-tree-view", inputs: { showLines: "showLines" }, host: { classAttribute: "ax-tree-view" }, ngImport: i0, template: "<ul class=\"ax-list-{{showLines}}\">\r\n <ng-template #recursiveList let-list>\r\n <li *ngFor=\"let item of list\">\r\n <span>\r\n <ax-check-box></ax-check-box>\r\n \r\n <span>{{item.title}}</span>\r\n </span>\r\n <ul *ngIf=\"item.children.length > 0\">\r\n <ng-container *ngTemplateOutlet=\"recursiveList; context:{ $implicit: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-template>\r\n <ng-container *ngTemplateOutlet=\"recursiveList; context:{ $implicit: list }\"></ng-container>\r\n </ul>", components: [{ type: AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
6680
6841
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: AXTreeViewComponent, decorators: [{
|
|
6681
6842
|
type: Component,
|
|
6682
|
-
args: [{ selector: 'ax-tree-view', encapsulation: ViewEncapsulation.None, host: { class: "ax-tree-view" }, template: "<ul>\r\n <ng-template #recursiveList let-list>\r\n <li *ngFor=\"let item of list\">\r\n <span>\r\n <ax-check-box></ax-check-box>\r\n \r\n <span>{{item.title}}</span>\r\n </span>\r\n <ul *ngIf=\"item.children.length > 0\">\r\n <ng-container *ngTemplateOutlet=\"recursiveList; context:{ $implicit: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-template>\r\n <ng-container *ngTemplateOutlet=\"recursiveList; context:{ $implicit: list }\"></ng-container>\r\n </ul>" }]
|
|
6683
|
-
}], ctorParameters: function () { return []; }
|
|
6843
|
+
args: [{ selector: 'ax-tree-view', encapsulation: ViewEncapsulation.None, host: { class: "ax-tree-view" }, template: "<ul class=\"ax-list-{{showLines}}\">\r\n <ng-template #recursiveList let-list>\r\n <li *ngFor=\"let item of list\">\r\n <span>\r\n <ax-check-box></ax-check-box>\r\n \r\n <span>{{item.title}}</span>\r\n </span>\r\n <ul *ngIf=\"item.children.length > 0\">\r\n <ng-container *ngTemplateOutlet=\"recursiveList; context:{ $implicit: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-template>\r\n <ng-container *ngTemplateOutlet=\"recursiveList; context:{ $implicit: list }\"></ng-container>\r\n </ul>" }]
|
|
6844
|
+
}], ctorParameters: function () { return []; }, propDecorators: { showLines: [{
|
|
6845
|
+
type: Input
|
|
6846
|
+
}] } });
|
|
6684
6847
|
|
|
6685
6848
|
class AXTreeViewModule {
|
|
6686
6849
|
}
|
|
@@ -6842,5 +7005,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImpor
|
|
|
6842
7005
|
* Generated bundle index. Do not edit.
|
|
6843
7006
|
*/
|
|
6844
7007
|
|
|
6845
|
-
export { AXAlertButtonComponent, AXAlertComponent, AXAlertContentComponent, AXAlertFooterComponent, AXAlertModule, AXAlertSuffixComponent, AXAlertTitleComponent, AXAvatarComponent, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEditorDecoratorModule, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXIconComponent, AXIconModule, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageFooterComponent, AXPageHeaderComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXRadioComponent, AXRadioModule, AXRangeSliderComponent, AXRangeSliderModule, AXResponsiveDirective, 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 };
|
|
7008
|
+
export { AXAlertButtonComponent, AXAlertComponent, AXAlertContentComponent, AXAlertFooterComponent, AXAlertModule, AXAlertSuffixComponent, AXAlertTitleComponent, AXAvatarComponent, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEditorDecoratorModule, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXIconComponent, AXIconModule, AXInfiniteScrollerDirective, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageFooterComponent, AXPageHeaderComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXRadioComponent, AXRadioModule, AXRangeSliderComponent, AXRangeSliderModule, AXResponsiveDirective, 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 };
|
|
6846
7009
|
//# sourceMappingURL=acorex-components.mjs.map
|