@acorex/components 5.0.34 → 5.0.38
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/badge/badge.component.mjs +3 -3
- package/esm2020/lib/base/mixin/datalist-component.class.mjs +40 -9
- package/esm2020/lib/base/mixin/dropdown-mixin.class.mjs +21 -10
- package/esm2020/lib/base/mixin/selection-component.class.mjs +17 -3
- package/esm2020/lib/base/mixin/value-mixin.class.mjs +8 -8
- package/esm2020/lib/checkbox/checkbox.component.mjs +5 -14
- package/esm2020/lib/checkbox/checkbox.module.mjs +5 -4
- package/esm2020/lib/datepicker/datepicker.component.mjs +22 -14
- package/esm2020/lib/dropdown/dropdown-panel.component.mjs +3 -3
- package/esm2020/lib/dropdown/dropdown.module.mjs +4 -5
- package/esm2020/lib/dropdown/index.mjs +1 -2
- package/esm2020/lib/form/form-field.component.mjs +3 -3
- package/esm2020/lib/label/label.component.mjs +10 -3
- package/esm2020/lib/popover/popover.component.mjs +27 -14
- package/esm2020/lib/popup/popup.component.mjs +18 -11
- package/esm2020/lib/popup/popup.module.mjs +3 -4
- package/esm2020/lib/popup/popup.service.mjs +6 -4
- package/esm2020/lib/selectbox/selectbox.component.mjs +74 -34
- package/esm2020/lib/selectbox/selectbox.module.mjs +7 -5
- package/esm2020/lib/textbox/textbox.component.mjs +2 -1
- package/fesm2015/acorex-components.mjs +389 -293
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +387 -293
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/base/mixin/datalist-component.class.d.ts +4 -1
- package/lib/base/mixin/dropdown-mixin.class.d.ts +1 -3
- package/lib/base/mixin/mixin.class.d.ts +2 -4
- package/lib/base/mixin/selection-component.class.d.ts +8 -0
- package/lib/base/mixin/value-mixin.class.d.ts +1 -1
- package/lib/checkbox/checkbox.component.d.ts +2 -4
- package/lib/checkbox/checkbox.module.d.ts +2 -1
- package/lib/datepicker/datepicker.component.d.ts +11 -7
- package/lib/dropdown/dropdown.module.d.ts +8 -9
- package/lib/dropdown/index.d.ts +0 -1
- package/lib/label/label.component.d.ts +3 -0
- package/lib/popover/popover.component.d.ts +2 -0
- package/lib/popup/popup.component.d.ts +5 -2
- package/lib/popup/popup.service.d.ts +1 -0
- package/lib/selectbox/selectbox.component.d.ts +19 -11
- package/lib/selectbox/selectbox.module.d.ts +9 -7
- package/package.json +1 -1
- package/esm2020/lib/dropdown/dropdown.component.mjs +0 -28
- package/lib/dropdown/dropdown.component.d.ts +0 -12
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { Injectable, Inject, EventEmitter, Directive, NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, HostBinding, HostListener, ContentChildren, Optional, ViewChild, ContentChild, ElementRef, TemplateRef, ViewChildren } from '@angular/core';
|
|
4
|
+
import _ from 'lodash';
|
|
4
5
|
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
5
6
|
import * as i2 from '@acorex/core';
|
|
6
|
-
import { AXObjectUtil, AXDateTime, AXDateTimeRange, AXDateTimeModule, AXDrawingUtil,
|
|
7
|
+
import { AXObjectUtil, AXDateTime, AXDateTimeRange, AXDateTimeModule, AXDrawingUtil, AXTranslator, AXStringUtil, AXConfig } from '@acorex/core';
|
|
7
8
|
import { Subscription, Subject, fromEvent, merge, asyncScheduler, BehaviorSubject } from 'rxjs';
|
|
8
9
|
import { debounceTime, distinctUntilChanged, throttleTime, observeOn, finalize } from 'rxjs/operators';
|
|
9
10
|
import * as i1 from '@angular/common';
|
|
@@ -12,7 +13,6 @@ import * as i1$1 from '@angular/forms';
|
|
|
12
13
|
import { FormsModule } from '@angular/forms';
|
|
13
14
|
import * as i1$4 from '@angular/cdk/portal';
|
|
14
15
|
import { TemplatePortal, ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
15
|
-
import _ from 'lodash';
|
|
16
16
|
import * as i1$2 from '@angular/cdk/overlay';
|
|
17
17
|
import { OverlayModule, OverlayContainer, Overlay } from '@angular/cdk/overlay';
|
|
18
18
|
import * as i1$3 from 'ngx-mask';
|
|
@@ -288,7 +288,18 @@ function _DatalistComponenetMixin(Base) {
|
|
|
288
288
|
return __classPrivateFieldGet(this, _items, "f");
|
|
289
289
|
}
|
|
290
290
|
set items(v) {
|
|
291
|
-
|
|
291
|
+
if (Array.isArray(v)) {
|
|
292
|
+
__classPrivateFieldSet(this, _items, this._formatData(v), "f");
|
|
293
|
+
this._onDataLoaded();
|
|
294
|
+
}
|
|
295
|
+
else if (typeof v === 'function') {
|
|
296
|
+
__classPrivateFieldSet(this, _isLazy, true, "f");
|
|
297
|
+
__classPrivateFieldSet(this, _items, v, "f");
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
__classPrivateFieldSet(this, _items, [], "f");
|
|
301
|
+
this._onDataLoaded();
|
|
302
|
+
}
|
|
292
303
|
}
|
|
293
304
|
get displayItems() {
|
|
294
305
|
if (Array.isArray(this.items)) {
|
|
@@ -302,6 +313,18 @@ function _DatalistComponenetMixin(Base) {
|
|
|
302
313
|
get isLoading() {
|
|
303
314
|
return __classPrivateFieldGet(this, _isLoading, "f");
|
|
304
315
|
}
|
|
316
|
+
_formatData(v) {
|
|
317
|
+
return _.unionBy(v.map((o, i) => {
|
|
318
|
+
if (typeof o == 'object')
|
|
319
|
+
return o;
|
|
320
|
+
else {
|
|
321
|
+
const no = {};
|
|
322
|
+
no[this.valueField] = o;
|
|
323
|
+
no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
|
324
|
+
return no;
|
|
325
|
+
}
|
|
326
|
+
}), this.valueField);
|
|
327
|
+
}
|
|
305
328
|
_fetchData() {
|
|
306
329
|
if ((this.loadedCount >= this.totalCount && this.totalCount != 0) || __classPrivateFieldGet(this, _isLoading, "f") || !__classPrivateFieldGet(this, _isLazy, "f")) {
|
|
307
330
|
return;
|
|
@@ -326,13 +349,13 @@ function _DatalistComponenetMixin(Base) {
|
|
|
326
349
|
});
|
|
327
350
|
}
|
|
328
351
|
}
|
|
329
|
-
_onInternalInit() {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}
|
|
352
|
+
// _onInternalInit() {
|
|
353
|
+
// if (typeof this.#items == 'function') {
|
|
354
|
+
// this.#isLazy = true;
|
|
355
|
+
// this._fetchData();
|
|
356
|
+
// }
|
|
357
|
+
// super._onInternalInit();
|
|
358
|
+
// }
|
|
336
359
|
_onDataLoaded() {
|
|
337
360
|
}
|
|
338
361
|
_getItemDisplayTextTemplte(item) {
|
|
@@ -354,13 +377,19 @@ function _DatalistComponenetMixin(Base) {
|
|
|
354
377
|
_isLazy = new WeakMap(),
|
|
355
378
|
_items = new WeakMap(),
|
|
356
379
|
_a;
|
|
357
|
-
}
|
|
380
|
+
}
|
|
381
|
+
const DATALIST_INPUTS = [
|
|
382
|
+
'pageSize',
|
|
383
|
+
'valueField',
|
|
384
|
+
'textField',
|
|
385
|
+
'items'
|
|
386
|
+
];
|
|
387
|
+
const DATALIST_OUTPUT = [];
|
|
358
388
|
|
|
359
389
|
function _DropdownComponenetMixin(Base) {
|
|
360
390
|
class Mixin extends Base {
|
|
361
391
|
constructor(...args) {
|
|
362
392
|
super(...args);
|
|
363
|
-
this.fitParent = true;
|
|
364
393
|
this.readonly = false;
|
|
365
394
|
this.onOpened = new EventEmitter();
|
|
366
395
|
this.onClosed = new EventEmitter();
|
|
@@ -381,12 +410,12 @@ function _DropdownComponenetMixin(Base) {
|
|
|
381
410
|
htmlElement: this._getHostElement()
|
|
382
411
|
});
|
|
383
412
|
}
|
|
413
|
+
onInit() {
|
|
414
|
+
super.onInit();
|
|
415
|
+
this.popover.onOpened.subscribe(this.onOpened);
|
|
416
|
+
this.popover.onClosed.subscribe(this.onClosed);
|
|
417
|
+
}
|
|
384
418
|
onViewInit() {
|
|
385
|
-
if (this.dropdownWidth == null) {
|
|
386
|
-
if (this.fitParent === true) {
|
|
387
|
-
this.dropdownWidth = this._getInnerElement().offsetWidth;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
419
|
// wait for documentElement
|
|
391
420
|
setTimeout(() => {
|
|
392
421
|
if (this.position.length == 0) {
|
|
@@ -405,7 +434,21 @@ function _DropdownComponenetMixin(Base) {
|
|
|
405
434
|
overlayX: 'start',
|
|
406
435
|
overlayY: 'bottom',
|
|
407
436
|
offsetY: -offset
|
|
408
|
-
}
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
originX: 'end',
|
|
440
|
+
originY: 'bottom',
|
|
441
|
+
overlayX: 'end',
|
|
442
|
+
overlayY: 'top',
|
|
443
|
+
offsetY: offset
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
originX: 'end',
|
|
447
|
+
originY: 'top',
|
|
448
|
+
overlayX: 'end',
|
|
449
|
+
overlayY: 'bottom',
|
|
450
|
+
offsetY: -offset
|
|
451
|
+
},
|
|
409
452
|
];
|
|
410
453
|
this.position.push(...list);
|
|
411
454
|
}
|
|
@@ -421,14 +464,12 @@ function _DropdownComponenetMixin(Base) {
|
|
|
421
464
|
return;
|
|
422
465
|
}
|
|
423
466
|
this.popover.close();
|
|
424
|
-
this._emitOnClosedEvent();
|
|
425
467
|
}
|
|
426
468
|
open() {
|
|
427
469
|
if (this.isOpen || this['disabled']) {
|
|
428
470
|
return;
|
|
429
471
|
}
|
|
430
472
|
this.popover.open();
|
|
431
|
-
this._emitOnOpenedEvent();
|
|
432
473
|
}
|
|
433
474
|
get isOpen() {
|
|
434
475
|
return this.popover?.isOpen;
|
|
@@ -524,6 +565,7 @@ function _SelectionComponenetMixin(Base) {
|
|
|
524
565
|
super(...args);
|
|
525
566
|
this.valueField = 'id';
|
|
526
567
|
this.textField = 'text';
|
|
568
|
+
this.disabledField = 'disabled';
|
|
527
569
|
this.multiple = false;
|
|
528
570
|
this.selectionMode = 'value';
|
|
529
571
|
this.valueChange = new EventEmitter();
|
|
@@ -562,7 +604,7 @@ function _SelectionComponenetMixin(Base) {
|
|
|
562
604
|
selectedItems: this.selectedItems.slice()
|
|
563
605
|
});
|
|
564
606
|
if (v == null || v == undefined || v == "") {
|
|
565
|
-
this.
|
|
607
|
+
this._setState('clear');
|
|
566
608
|
}
|
|
567
609
|
else {
|
|
568
610
|
if (this._isInited) {
|
|
@@ -660,7 +702,7 @@ function _SelectionComponenetMixin(Base) {
|
|
|
660
702
|
if (items && items.length) {
|
|
661
703
|
items.forEach(item => {
|
|
662
704
|
if (this.multiple) {
|
|
663
|
-
this.
|
|
705
|
+
this.isItemSelected(item) ? this.unselectItems(item) : this.selectItems(item);
|
|
664
706
|
}
|
|
665
707
|
else {
|
|
666
708
|
this.selectItems(item);
|
|
@@ -671,8 +713,20 @@ function _SelectionComponenetMixin(Base) {
|
|
|
671
713
|
isItemSelected(item) {
|
|
672
714
|
return this.selectedItems.some(c => c[this.valueField] === item[this.valueField]);
|
|
673
715
|
}
|
|
716
|
+
isItemDisabled(item) {
|
|
717
|
+
return coerceBooleanProperty(item[this.disabledField]) === true || (this.disabledCallback ? this.disabledCallback({ item, index: -1 }) : false);
|
|
718
|
+
}
|
|
674
719
|
};
|
|
675
|
-
}
|
|
720
|
+
}
|
|
721
|
+
const SELECTION_INPUTS = [
|
|
722
|
+
'valueField',
|
|
723
|
+
'textField',
|
|
724
|
+
'disabledField',
|
|
725
|
+
'disabledCallback',
|
|
726
|
+
'multiple',
|
|
727
|
+
'selectionMode'
|
|
728
|
+
];
|
|
729
|
+
const SELECTION_OUTPUT = ['onValueChanged', 'valueChanged'];
|
|
676
730
|
|
|
677
731
|
function _SizableComponenetMixin(Base) {
|
|
678
732
|
return class extends Base {
|
|
@@ -794,7 +848,7 @@ function _ValueComponenetMixin(Base) {
|
|
|
794
848
|
this._emitOnValueChangedEvent(old, __classPrivateFieldGet(this, _value, "f"));
|
|
795
849
|
this._cdr.markForCheck();
|
|
796
850
|
if (v == null || v == undefined || v == '') {
|
|
797
|
-
this.
|
|
851
|
+
this._setState('clear');
|
|
798
852
|
}
|
|
799
853
|
else {
|
|
800
854
|
if (this._isInited) {
|
|
@@ -810,7 +864,7 @@ function _ValueComponenetMixin(Base) {
|
|
|
810
864
|
const rules = Array.from(this._getHostElement().querySelectorAll('ax-validation-rule')).filter((c) => c.__axContext__.enabled);
|
|
811
865
|
//
|
|
812
866
|
if (!rules || rules.length === 0) {
|
|
813
|
-
this.
|
|
867
|
+
this._setState('clear');
|
|
814
868
|
return Promise.resolve({ result: true, value: this.value });
|
|
815
869
|
}
|
|
816
870
|
return new Promise((resolve) => {
|
|
@@ -821,17 +875,17 @@ function _ValueComponenetMixin(Base) {
|
|
|
821
875
|
})).then((d) => {
|
|
822
876
|
const error = d.find((c) => c.result === false);
|
|
823
877
|
if (error) {
|
|
824
|
-
this.
|
|
878
|
+
this._setState('error', error.message);
|
|
825
879
|
resolve({ result: false, value: this.value });
|
|
826
880
|
}
|
|
827
881
|
else {
|
|
828
|
-
this.
|
|
882
|
+
this._setState('success');
|
|
829
883
|
resolve({ result: true, value: this.value });
|
|
830
884
|
}
|
|
831
885
|
});
|
|
832
886
|
});
|
|
833
887
|
}
|
|
834
|
-
|
|
888
|
+
_setState(state, ...args) {
|
|
835
889
|
const container = this._getHostElement().classList.contains('ax-editor-container') ?
|
|
836
890
|
this._getHostElement() :
|
|
837
891
|
this._getHostElement().querySelector('.ax-editor-container');
|
|
@@ -848,11 +902,11 @@ function _ValueComponenetMixin(Base) {
|
|
|
848
902
|
target.classList.remove('ax-state-error', 'ax-state-success');
|
|
849
903
|
break;
|
|
850
904
|
case 'success':
|
|
851
|
-
this.
|
|
905
|
+
this._setState('clear');
|
|
852
906
|
target.classList.add('ax-state-success');
|
|
853
907
|
break;
|
|
854
908
|
case 'error':
|
|
855
|
-
this.
|
|
909
|
+
this._setState('clear');
|
|
856
910
|
if (args[0]) {
|
|
857
911
|
const span = document.createElement('span');
|
|
858
912
|
span.innerText = args[0];
|
|
@@ -1443,10 +1497,10 @@ class AXBadgeComponent extends AXBaseComponentMixin {
|
|
|
1443
1497
|
}
|
|
1444
1498
|
}
|
|
1445
1499
|
AXBadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXBadgeComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1446
|
-
AXBadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXBadgeComponent, selector: "ax-badge", inputs: { text: "text", color: "color" }, host: { properties: { "class": "this.__hostClass" }, classAttribute: "ax-badge" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\"></ng-content>\r\n<span class=\"ax-font-medium\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\"></ng-content>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1500
|
+
AXBadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXBadgeComponent, selector: "ax-badge", inputs: { text: "text", color: "color" }, host: { properties: { "class": "this.__hostClass" }, classAttribute: "ax-badge" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\"></ng-content>\r\n<span class=\"ax-font-medium ax-truncate\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\"></ng-content>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1447
1501
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXBadgeComponent, decorators: [{
|
|
1448
1502
|
type: Component,
|
|
1449
|
-
args: [{ selector: 'ax-badge', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-badge' }, template: "<ng-content select=\"ax-prefix\"></ng-content>\r\n<span class=\"ax-font-medium\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\"></ng-content>" }]
|
|
1503
|
+
args: [{ selector: 'ax-badge', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-badge' }, template: "<ng-content select=\"ax-prefix\"></ng-content>\r\n<span class=\"ax-font-medium ax-truncate\">{{text}}</span>\r\n<ng-content select=\"ax-suffix\"></ng-content>" }]
|
|
1450
1504
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
|
|
1451
1505
|
type: Input
|
|
1452
1506
|
}], color: [{
|
|
@@ -2669,139 +2723,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2669
2723
|
}]
|
|
2670
2724
|
}] });
|
|
2671
2725
|
|
|
2672
|
-
class AXFormFieldComponent extends AXBaseComponentMixin {
|
|
2673
|
-
constructor(elementRef, cdr) {
|
|
2674
|
-
super(elementRef, cdr);
|
|
2675
|
-
}
|
|
2676
|
-
}
|
|
2677
|
-
AXFormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormFieldComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2678
|
-
AXFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXFormFieldComponent, selector: "ax-form-field", usesInheritance: true, ngImport: i0, template: '<div class="ax-form-field"><ng-content></ng-content></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormFieldComponent, decorators: [{
|
|
2680
|
-
type: Component,
|
|
2681
|
-
args: [{
|
|
2682
|
-
selector: 'ax-form-field',
|
|
2683
|
-
template: '<div class="ax-form-field"><ng-content></ng-content></div>',
|
|
2684
|
-
encapsulation: ViewEncapsulation.None,
|
|
2685
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2686
|
-
}]
|
|
2687
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2688
|
-
|
|
2689
|
-
class AXFormHintComponent extends AXBaseComponentMixin {
|
|
2690
|
-
constructor(elementRef, cdr) {
|
|
2691
|
-
super(elementRef, cdr);
|
|
2692
|
-
}
|
|
2693
|
-
}
|
|
2694
|
-
AXFormHintComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormHintComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2695
|
-
AXFormHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXFormHintComponent, selector: "ax-form-hint", usesInheritance: true, ngImport: i0, template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2696
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormHintComponent, decorators: [{
|
|
2697
|
-
type: Component,
|
|
2698
|
-
args: [{
|
|
2699
|
-
selector: 'ax-form-hint',
|
|
2700
|
-
template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>',
|
|
2701
|
-
encapsulation: ViewEncapsulation.None,
|
|
2702
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2703
|
-
}]
|
|
2704
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2705
|
-
|
|
2706
|
-
class AXFormComponent extends AXBaseComponentMixin {
|
|
2707
|
-
constructor(elementRef, cdr) {
|
|
2708
|
-
super(elementRef, cdr);
|
|
2709
|
-
this.cdr = cdr;
|
|
2710
|
-
}
|
|
2711
|
-
_getComponenets() {
|
|
2712
|
-
return Array.from(this._getHostElement().querySelectorAll('[ax-form-input="true"]'));
|
|
2713
|
-
}
|
|
2714
|
-
validate() {
|
|
2715
|
-
const widgets = this._getComponenets();
|
|
2716
|
-
//
|
|
2717
|
-
return new Promise((resolve, reject) => {
|
|
2718
|
-
if (widgets.length === 0) {
|
|
2719
|
-
return Promise.resolve({ result: true });
|
|
2720
|
-
}
|
|
2721
|
-
Promise.all(widgets.map((c) => c.__axContext__.validate())).then((rules) => {
|
|
2722
|
-
const failed = rules.filter((c) => !c.result);
|
|
2723
|
-
if (failed.length) {
|
|
2724
|
-
reject({
|
|
2725
|
-
result: false,
|
|
2726
|
-
items: failed
|
|
2727
|
-
});
|
|
2728
|
-
}
|
|
2729
|
-
else {
|
|
2730
|
-
resolve({ result: true });
|
|
2731
|
-
}
|
|
2732
|
-
});
|
|
2733
|
-
});
|
|
2734
|
-
}
|
|
2735
|
-
clear() {
|
|
2736
|
-
const widgets = this._getComponenets();
|
|
2737
|
-
widgets.forEach(w => {
|
|
2738
|
-
w.__axContext__.clear();
|
|
2739
|
-
});
|
|
2740
|
-
}
|
|
2741
|
-
}
|
|
2742
|
-
AXFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2743
|
-
AXFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXFormComponent, selector: "ax-form", usesInheritance: true, ngImport: i0, template: '<div class="ax-form"><ng-content></ng-content></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormComponent, decorators: [{
|
|
2745
|
-
type: Component,
|
|
2746
|
-
args: [{
|
|
2747
|
-
selector: 'ax-form',
|
|
2748
|
-
template: '<div class="ax-form"><ng-content></ng-content></div>',
|
|
2749
|
-
encapsulation: ViewEncapsulation.None,
|
|
2750
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2751
|
-
}]
|
|
2752
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2753
|
-
|
|
2754
|
-
class AXFormModule {
|
|
2755
|
-
}
|
|
2756
|
-
AXFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2757
|
-
AXFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, declarations: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent], imports: [CommonModule], exports: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent] });
|
|
2758
|
-
AXFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, providers: [], imports: [[CommonModule]] });
|
|
2759
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, decorators: [{
|
|
2760
|
-
type: NgModule,
|
|
2761
|
-
args: [{
|
|
2762
|
-
imports: [CommonModule],
|
|
2763
|
-
exports: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
|
|
2764
|
-
declarations: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
|
|
2765
|
-
providers: [],
|
|
2766
|
-
}]
|
|
2767
|
-
}] });
|
|
2768
|
-
|
|
2769
|
-
class AXLabelComponent extends AXBaseComponentMixin {
|
|
2770
|
-
constructor(elementRef, cdr) {
|
|
2771
|
-
super(elementRef, cdr);
|
|
2772
|
-
}
|
|
2773
|
-
}
|
|
2774
|
-
AXLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2775
|
-
AXLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXLabelComponent, selector: "ax-label", usesInheritance: true, ngImport: i0, template: "<label>\r\n <ng-content></ng-content>\r\n</label>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelComponent, decorators: [{
|
|
2777
|
-
type: Component,
|
|
2778
|
-
args: [{ selector: 'ax-label', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<label>\r\n <ng-content></ng-content>\r\n</label>" }]
|
|
2779
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2780
|
-
|
|
2781
|
-
const COMPONENT$g = [AXLabelComponent];
|
|
2782
|
-
const MODULES$g = [CommonModule];
|
|
2783
|
-
class AXLabelModule {
|
|
2784
|
-
}
|
|
2785
|
-
AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2786
|
-
AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
|
|
2787
|
-
AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$g]] });
|
|
2788
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, decorators: [{
|
|
2789
|
-
type: NgModule,
|
|
2790
|
-
args: [{
|
|
2791
|
-
declarations: [...COMPONENT$g],
|
|
2792
|
-
imports: [...MODULES$g],
|
|
2793
|
-
exports: [...COMPONENT$g],
|
|
2794
|
-
providers: [],
|
|
2795
|
-
}]
|
|
2796
|
-
}] });
|
|
2797
|
-
|
|
2798
2726
|
class AXCheckBoxComponent extends AXBaseValueComponentMixin {
|
|
2799
2727
|
constructor(elementRef, cdr) {
|
|
2800
2728
|
super(elementRef, cdr);
|
|
2801
2729
|
}
|
|
2802
2730
|
onInit() {
|
|
2803
2731
|
super.onInit();
|
|
2804
|
-
;
|
|
2805
2732
|
if (!this.allowNull && this.value == null) {
|
|
2806
2733
|
this.value = false;
|
|
2807
2734
|
}
|
|
@@ -2825,28 +2752,22 @@ class AXCheckBoxComponent extends AXBaseValueComponentMixin {
|
|
|
2825
2752
|
}
|
|
2826
2753
|
}
|
|
2827
2754
|
AXCheckBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2828
|
-
AXCheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: { disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" },
|
|
2755
|
+
AXCheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: { disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" }, usesInheritance: true, ngImport: i0, template: "<label 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-h-4 ax-w-4\" type=\"checkbox\" [class.ax-state-readonly]=\"readonly\"\r\n [class.ax-state-disabled]=\"disabled\" [indeterminate]=\"_stateIndeterminate\" [(ngModel)]=\"value\"\r\n [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <ng-content select=\"ax-content\"></ng-content>\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n </div>\r\n</label>\r\n<ng-content select=\"ax-validation-rule\"></ng-content>", directives: [{ type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2829
2756
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxComponent, decorators: [{
|
|
2830
2757
|
type: Component,
|
|
2831
|
-
args: [{ selector: 'ax-check-box', inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "
|
|
2832
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }
|
|
2833
|
-
type: ContentChildren,
|
|
2834
|
-
args: [AXFormHintComponent]
|
|
2835
|
-
}], _label: [{
|
|
2836
|
-
type: ContentChildren,
|
|
2837
|
-
args: [AXLabelComponent]
|
|
2838
|
-
}] } });
|
|
2758
|
+
args: [{ selector: 'ax-check-box', inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<label 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-h-4 ax-w-4\" type=\"checkbox\" [class.ax-state-readonly]=\"readonly\"\r\n [class.ax-state-disabled]=\"disabled\" [indeterminate]=\"_stateIndeterminate\" [(ngModel)]=\"value\"\r\n [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <ng-content select=\"ax-content\"></ng-content>\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n </div>\r\n</label>\r\n<ng-content select=\"ax-validation-rule\"></ng-content>" }]
|
|
2759
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2839
2760
|
|
|
2840
2761
|
class AXCheckBoxModule {
|
|
2841
2762
|
}
|
|
2842
2763
|
AXCheckBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2843
|
-
AXCheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, declarations: [AXCheckBoxComponent], imports: [CommonModule, FormsModule], exports: [AXCheckBoxComponent] });
|
|
2844
|
-
AXCheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, providers: [], imports: [[CommonModule, FormsModule]] });
|
|
2764
|
+
AXCheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, declarations: [AXCheckBoxComponent], imports: [CommonModule, FormsModule, AXEditorDecoratorModule], exports: [AXCheckBoxComponent] });
|
|
2765
|
+
AXCheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, providers: [], imports: [[CommonModule, FormsModule, AXEditorDecoratorModule]] });
|
|
2845
2766
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, decorators: [{
|
|
2846
2767
|
type: NgModule,
|
|
2847
2768
|
args: [{
|
|
2848
2769
|
declarations: [AXCheckBoxComponent],
|
|
2849
|
-
imports: [CommonModule, FormsModule],
|
|
2770
|
+
imports: [CommonModule, FormsModule, AXEditorDecoratorModule],
|
|
2850
2771
|
exports: [AXCheckBoxComponent],
|
|
2851
2772
|
providers: [],
|
|
2852
2773
|
}]
|
|
@@ -2921,19 +2842,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2921
2842
|
type: Input
|
|
2922
2843
|
}] } });
|
|
2923
2844
|
|
|
2924
|
-
const COMPONENT$
|
|
2925
|
-
const MODULES$
|
|
2845
|
+
const COMPONENT$g = [AXDataListComponent];
|
|
2846
|
+
const MODULES$g = [CommonModule, AXButtonModule];
|
|
2926
2847
|
class AXDataListModule {
|
|
2927
2848
|
}
|
|
2928
2849
|
AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2929
2850
|
AXDataListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, declarations: [AXDataListComponent], imports: [CommonModule, AXButtonModule], exports: [AXDataListComponent] });
|
|
2930
|
-
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$
|
|
2851
|
+
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$g]] });
|
|
2931
2852
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, decorators: [{
|
|
2932
2853
|
type: NgModule,
|
|
2933
2854
|
args: [{
|
|
2934
|
-
declarations: [...COMPONENT$
|
|
2935
|
-
imports: [...MODULES$
|
|
2936
|
-
exports: [...COMPONENT$
|
|
2855
|
+
declarations: [...COMPONENT$g],
|
|
2856
|
+
imports: [...MODULES$g],
|
|
2857
|
+
exports: [...COMPONENT$g],
|
|
2937
2858
|
providers: [],
|
|
2938
2859
|
}]
|
|
2939
2860
|
}] });
|
|
@@ -2941,6 +2862,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2941
2862
|
class AXPopoverComponent extends AXBaseComponent {
|
|
2942
2863
|
constructor(_elementRef, _cdr, _zone, _overlay, _platform, _viewContainerRef) {
|
|
2943
2864
|
super(_elementRef, _cdr);
|
|
2865
|
+
this._elementRef = _elementRef;
|
|
2944
2866
|
this._cdr = _cdr;
|
|
2945
2867
|
this._zone = _zone;
|
|
2946
2868
|
this._overlay = _overlay;
|
|
@@ -3075,17 +2997,26 @@ class AXPopoverComponent extends AXBaseComponent {
|
|
|
3075
2997
|
if (!targetRef)
|
|
3076
2998
|
return;
|
|
3077
2999
|
if (!this._overlayRef) {
|
|
3078
|
-
|
|
3079
|
-
.
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3000
|
+
if (this._platform.is('Mobile')) {
|
|
3001
|
+
this._overlayRef = this._overlay.create({
|
|
3002
|
+
positionStrategy: this._overlay.position().global().centerHorizontally().centerVertically(),
|
|
3003
|
+
disposeOnNavigation: true,
|
|
3004
|
+
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
3005
|
+
hasBackdrop: true
|
|
3006
|
+
});
|
|
3007
|
+
}
|
|
3008
|
+
else {
|
|
3009
|
+
this._overlayRef = this._overlay.create({
|
|
3010
|
+
positionStrategy: this._overlay.position()
|
|
3011
|
+
.flexibleConnectedTo(targetRef)
|
|
3012
|
+
.withPositions(Array.isArray(this.position) ? this.position : [this.position])
|
|
3013
|
+
.withPush(false),
|
|
3014
|
+
disposeOnNavigation: true,
|
|
3015
|
+
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
3016
|
+
hasBackdrop: this.hasBackdrop,
|
|
3017
|
+
backdropClass: [this.backdropClass || 'cdk-overlay-transparent-backdrop']
|
|
3018
|
+
});
|
|
3019
|
+
}
|
|
3089
3020
|
if (this.closeTrigger == 'clickout') {
|
|
3090
3021
|
this._addSub(this._overlayRef._outsidePointerEvents.subscribe(c => {
|
|
3091
3022
|
const target = c.target;
|
|
@@ -3098,8 +3029,8 @@ class AXPopoverComponent extends AXBaseComponent {
|
|
|
3098
3029
|
this._addSub(this._overlayRef.attachments().subscribe(() => {
|
|
3099
3030
|
if (!this._isScrollAttached) {
|
|
3100
3031
|
this._addSub(this._platform.scroll.subscribe(c => {
|
|
3101
|
-
|
|
3102
|
-
|
|
3032
|
+
if (!c.nativeEvent.target.closest('.ax-overlay-pane'))
|
|
3033
|
+
this.updatePosition();
|
|
3103
3034
|
}));
|
|
3104
3035
|
this._isScrollAttached = true;
|
|
3105
3036
|
}
|
|
@@ -3115,6 +3046,9 @@ class AXPopoverComponent extends AXBaseComponent {
|
|
|
3115
3046
|
_addSub(sub) {
|
|
3116
3047
|
this._subs.push(sub);
|
|
3117
3048
|
}
|
|
3049
|
+
updatePosition() {
|
|
3050
|
+
this._overlayRef?.updatePosition();
|
|
3051
|
+
}
|
|
3118
3052
|
}
|
|
3119
3053
|
AXPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopoverComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$2.Overlay }, { token: i2.AXPlatform }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3120
3054
|
AXPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXPopoverComponent, selector: "ax-popover", inputs: { target: "target", position: "position", openTrigger: "openTrigger", closeTrigger: "closeTrigger", hasBackdrop: "hasBackdrop", backdropClass: "backdropClass" }, outputs: { onOpened: "onOpened", onClosed: "onClosed" }, host: { listeners: { "document: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 });
|
|
@@ -3147,12 +3081,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3147
3081
|
|
|
3148
3082
|
const AXBaseDatePickerMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_ValueComponenetMixin(_TextboxComponenetMixin(AXCalendarBaseComponent))));
|
|
3149
3083
|
class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
3150
|
-
constructor(_elementRef, _cdr) {
|
|
3084
|
+
constructor(_elementRef, _cdr, _platform) {
|
|
3151
3085
|
super(_elementRef, _cdr);
|
|
3086
|
+
this._platform = _platform;
|
|
3152
3087
|
this._cursorPos = 0;
|
|
3088
|
+
this._isMobile = false;
|
|
3153
3089
|
this.formatChange = new EventEmitter();
|
|
3154
3090
|
this._format = 'YYYY-MM-dd';
|
|
3155
3091
|
this._target = this._getHostElement();
|
|
3092
|
+
this._isMobile = this._platform.is('Mobile');
|
|
3156
3093
|
}
|
|
3157
3094
|
get format() {
|
|
3158
3095
|
return this._format;
|
|
@@ -3163,6 +3100,10 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
3163
3100
|
value: v
|
|
3164
3101
|
});
|
|
3165
3102
|
}
|
|
3103
|
+
onViewInit() {
|
|
3104
|
+
super.onViewInit();
|
|
3105
|
+
this._popoverTitle = this.placeholder || AXTranslator.get('datepicker.popover.title');
|
|
3106
|
+
}
|
|
3166
3107
|
_handleArrowClickEvent(e) {
|
|
3167
3108
|
this.toggle();
|
|
3168
3109
|
}
|
|
@@ -3195,7 +3136,6 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
3195
3136
|
switch (part[0]) {
|
|
3196
3137
|
case 'dd':
|
|
3197
3138
|
case 'DD':
|
|
3198
|
-
debugger;
|
|
3199
3139
|
const newVal = Math.max(1, Math.min(31, Number(word + e.key)));
|
|
3200
3140
|
this.value = dateVal.set('day', newVal).date;
|
|
3201
3141
|
break;
|
|
@@ -3267,14 +3207,14 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
3267
3207
|
input.setSelectionRange(start, end);
|
|
3268
3208
|
}
|
|
3269
3209
|
}
|
|
3270
|
-
AXDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3271
|
-
AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: 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\"
|
|
3210
|
+
AXDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i2.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
3211
|
+
AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, 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\">\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\" [tabindex]=\"tabIndex\"\r\n [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\" (mouseup)=\"_handleOnInputClickEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\" (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<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" >\r\n <div *ngIf=\"_isMobile\" class=\"ax-overlay-pane-header\">\r\n <span >{{placeholder || 'Choose a date'}}</span>\r\n <i class=\"ax-ic ax-ic-close \"\r\n (click)=\"close()\" tabindex=\"1\"></i>\r\n </div>\r\n <ax-calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [min]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\">\r\n </ax-calendar>\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"], outputs: ["onOpened", "onClosed"] }, { type: AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "debounceTime", "name", "checked", "disabled", "tabIndex", "depth", "activeView", "min", "max", "disabledDates", "holidayDates"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus", "depthChange"] }], directives: [{ type: i1$1.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$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3272
3212
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatePickerComponent, decorators: [{
|
|
3273
3213
|
type: Component,
|
|
3274
|
-
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, 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\"
|
|
3275
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
|
|
3214
|
+
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, 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\" [tabindex]=\"tabIndex\"\r\n [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\" (mouseup)=\"_handleOnInputClickEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\" (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<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" >\r\n <div *ngIf=\"_isMobile\" class=\"ax-overlay-pane-header\">\r\n <span >{{placeholder || 'Choose a date'}}</span>\r\n <i class=\"ax-ic ax-ic-close \"\r\n (click)=\"close()\" tabindex=\"1\"></i>\r\n </div>\r\n <ax-calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [min]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\">\r\n </ax-calendar>\r\n </div>\r\n</ax-popover>" }]
|
|
3215
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i2.AXPlatform }]; }, propDecorators: { popover: [{
|
|
3276
3216
|
type: ViewChild,
|
|
3277
|
-
args: [AXPopoverComponent]
|
|
3217
|
+
args: [AXPopoverComponent, { static: true }]
|
|
3278
3218
|
}], formatChange: [{
|
|
3279
3219
|
type: Output
|
|
3280
3220
|
}], format: [{
|
|
@@ -3336,19 +3276,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3336
3276
|
type: Input
|
|
3337
3277
|
}] } });
|
|
3338
3278
|
|
|
3339
|
-
const COMPONENT$
|
|
3340
|
-
const MODULES$
|
|
3279
|
+
const COMPONENT$f = [AXInputMaskComponent];
|
|
3280
|
+
const MODULES$f = [CommonModule, NgxMaskModule.forRoot()];
|
|
3341
3281
|
class AXInputMaskModule {
|
|
3342
3282
|
}
|
|
3343
3283
|
AXInputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXInputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3344
3284
|
AXInputMaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXInputMaskModule, declarations: [AXInputMaskComponent], imports: [CommonModule, i1$3.NgxMaskModule], exports: [AXInputMaskComponent] });
|
|
3345
|
-
AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$
|
|
3285
|
+
AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$f]] });
|
|
3346
3286
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXInputMaskModule, decorators: [{
|
|
3347
3287
|
type: NgModule,
|
|
3348
3288
|
args: [{
|
|
3349
|
-
declarations: [...COMPONENT$
|
|
3350
|
-
imports: [...MODULES$
|
|
3351
|
-
exports: [...COMPONENT$
|
|
3289
|
+
declarations: [...COMPONENT$f],
|
|
3290
|
+
imports: [...MODULES$f],
|
|
3291
|
+
exports: [...COMPONENT$f],
|
|
3352
3292
|
providers: [],
|
|
3353
3293
|
}]
|
|
3354
3294
|
}] });
|
|
@@ -3366,6 +3306,7 @@ class AXTextBoxComponent extends AXBaseTextBoxMixin {
|
|
|
3366
3306
|
super(elementRef, cdr);
|
|
3367
3307
|
}
|
|
3368
3308
|
//TODO: prefix suffix text
|
|
3309
|
+
//TODO: HostBinding classes
|
|
3369
3310
|
get hostClass() {
|
|
3370
3311
|
return `${this.cssClass} ax-${this.size}`;
|
|
3371
3312
|
}
|
|
@@ -3429,8 +3370,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3429
3370
|
}]
|
|
3430
3371
|
}] });
|
|
3431
3372
|
|
|
3432
|
-
const COMPONENT$
|
|
3433
|
-
const MODULES$
|
|
3373
|
+
const COMPONENT$e = [AXDatePickerComponent];
|
|
3374
|
+
const MODULES$e = [
|
|
3434
3375
|
CommonModule,
|
|
3435
3376
|
AXCalendarModule,
|
|
3436
3377
|
AXTextBoxModule,
|
|
@@ -3453,13 +3394,13 @@ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
3453
3394
|
AXIconModule,
|
|
3454
3395
|
AXDateTimeModule,
|
|
3455
3396
|
FormsModule], exports: [AXDatePickerComponent] });
|
|
3456
|
-
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$
|
|
3397
|
+
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$e]] });
|
|
3457
3398
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatepickerModule, decorators: [{
|
|
3458
3399
|
type: NgModule,
|
|
3459
3400
|
args: [{
|
|
3460
|
-
declarations: [...COMPONENT$
|
|
3461
|
-
imports: [...MODULES$
|
|
3462
|
-
exports: [...COMPONENT$
|
|
3401
|
+
declarations: [...COMPONENT$e],
|
|
3402
|
+
imports: [...MODULES$e],
|
|
3403
|
+
exports: [...COMPONENT$e],
|
|
3463
3404
|
providers: [],
|
|
3464
3405
|
}]
|
|
3465
3406
|
}] });
|
|
@@ -3778,8 +3719,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3778
3719
|
args: ['axIsLoading']
|
|
3779
3720
|
}] } });
|
|
3780
3721
|
|
|
3781
|
-
const COMPONENT$
|
|
3782
|
-
const MODULES$
|
|
3722
|
+
const COMPONENT$d = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
|
|
3723
|
+
const MODULES$d = [CommonModule, OverlayModule, PortalModule];
|
|
3783
3724
|
class AXLoadingModule {
|
|
3784
3725
|
constructor() {
|
|
3785
3726
|
AXConfig.set({
|
|
@@ -3793,13 +3734,13 @@ class AXLoadingModule {
|
|
|
3793
3734
|
}
|
|
3794
3735
|
AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3795
3736
|
AXLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] });
|
|
3796
|
-
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$
|
|
3737
|
+
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$d]] });
|
|
3797
3738
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLoadingModule, decorators: [{
|
|
3798
3739
|
type: NgModule,
|
|
3799
3740
|
args: [{
|
|
3800
|
-
declarations: [...COMPONENT$
|
|
3801
|
-
imports: [...MODULES$
|
|
3802
|
-
exports: [...COMPONENT$
|
|
3741
|
+
declarations: [...COMPONENT$d],
|
|
3742
|
+
imports: [...MODULES$d],
|
|
3743
|
+
exports: [...COMPONENT$d],
|
|
3803
3744
|
providers: [],
|
|
3804
3745
|
}]
|
|
3805
3746
|
}], ctorParameters: function () { return []; } });
|
|
@@ -4209,19 +4150,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4209
4150
|
}]
|
|
4210
4151
|
}] });
|
|
4211
4152
|
|
|
4212
|
-
const COMPONENT$
|
|
4213
|
-
const MODULES$
|
|
4153
|
+
const COMPONENT$c = [AXDialogComponent];
|
|
4154
|
+
const MODULES$c = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
|
|
4214
4155
|
class AXDialogModule {
|
|
4215
4156
|
}
|
|
4216
4157
|
AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4217
4158
|
AXDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDialogModule, declarations: [AXDialogComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule], exports: [AXDialogComponent] });
|
|
4218
|
-
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$
|
|
4159
|
+
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$c]] });
|
|
4219
4160
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDialogModule, decorators: [{
|
|
4220
4161
|
type: NgModule,
|
|
4221
4162
|
args: [{
|
|
4222
|
-
declarations: [...COMPONENT$
|
|
4223
|
-
imports: [...MODULES$
|
|
4224
|
-
exports: [...COMPONENT$
|
|
4163
|
+
declarations: [...COMPONENT$c],
|
|
4164
|
+
imports: [...MODULES$c],
|
|
4165
|
+
exports: [...COMPONENT$c],
|
|
4225
4166
|
providers: [],
|
|
4226
4167
|
}]
|
|
4227
4168
|
}] });
|
|
@@ -4467,42 +4408,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4467
4408
|
}]
|
|
4468
4409
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4469
4410
|
|
|
4470
|
-
const COMPONENT$
|
|
4471
|
-
const MODULES$
|
|
4411
|
+
const COMPONENT$b = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
|
|
4412
|
+
const MODULES$b = [CommonModule];
|
|
4472
4413
|
class AXDrawerModule {
|
|
4473
4414
|
}
|
|
4474
4415
|
AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4475
4416
|
AXDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDrawerModule, declarations: [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent], imports: [CommonModule], exports: [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent] });
|
|
4476
|
-
AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$
|
|
4417
|
+
AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$b]] });
|
|
4477
4418
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDrawerModule, decorators: [{
|
|
4478
4419
|
type: NgModule,
|
|
4479
4420
|
args: [{
|
|
4480
|
-
declarations: [...COMPONENT$
|
|
4481
|
-
imports: [...MODULES$
|
|
4482
|
-
exports: [...COMPONENT$
|
|
4421
|
+
declarations: [...COMPONENT$b],
|
|
4422
|
+
imports: [...MODULES$b],
|
|
4423
|
+
exports: [...COMPONENT$b],
|
|
4483
4424
|
providers: [],
|
|
4484
4425
|
}]
|
|
4485
4426
|
}] });
|
|
4486
4427
|
|
|
4487
|
-
class AXDropdownComponent extends AXBaseDropdownMixin {
|
|
4488
|
-
constructor(_elementRef, _cdr) {
|
|
4489
|
-
super(_elementRef, _cdr);
|
|
4490
|
-
this._target = this;
|
|
4491
|
-
}
|
|
4492
|
-
_handleArrowClickEvent() {
|
|
4493
|
-
this.toggle();
|
|
4494
|
-
}
|
|
4495
|
-
}
|
|
4496
|
-
AXDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4497
|
-
AXDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXDropdownComponent, selector: "ax-drop-down", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus" }, viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-editor-container\" [class.ax-state-disabled]=\"disabled\">\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <div class=\"ax-dropdown-content\" style=\"display: inline-flex;\" (click)=\"_handleArrowClickEvent()\">\r\n <ng-content select=\"[input]\">\r\n </ng-content>\r\n </div>\r\n <ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" [size]=\"size\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent()\">\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</div>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [style.min-width.px]=\"dropdownWidth\">\r\n <ng-content select=\"[panel]\">\r\n </ng-content>\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "text", "submitBehavior", "cancelBehavior", "color", "look", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"], outputs: ["onOpened", "onClosed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4498
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownComponent, decorators: [{
|
|
4499
|
-
type: Component,
|
|
4500
|
-
args: [{ selector: 'ax-drop-down', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ax-editor-container\" [class.ax-state-disabled]=\"disabled\">\r\n <ng-content select=\"ax-prefix\">\r\n </ng-content>\r\n <div class=\"ax-dropdown-content\" style=\"display: inline-flex;\" (click)=\"_handleArrowClickEvent()\">\r\n <ng-content select=\"[input]\">\r\n </ng-content>\r\n </div>\r\n <ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" [size]=\"size\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent()\">\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</div>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [style.min-width.px]=\"dropdownWidth\">\r\n <ng-content select=\"[panel]\">\r\n </ng-content>\r\n </div>\r\n</ax-popover>" }]
|
|
4501
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
|
|
4502
|
-
type: ViewChild,
|
|
4503
|
-
args: [AXPopoverComponent]
|
|
4504
|
-
}] } });
|
|
4505
|
-
|
|
4506
4428
|
class AXDropdownPanelComponent extends AXBaseDropdownMixin {
|
|
4507
4429
|
constructor(elementRef, cdr, _parent) {
|
|
4508
4430
|
super(elementRef, cdr);
|
|
@@ -4550,7 +4472,7 @@ class AXDropdownPanelComponent extends AXBaseDropdownMixin {
|
|
|
4550
4472
|
}
|
|
4551
4473
|
}
|
|
4552
4474
|
AXDropdownPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownPanelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXButtonComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
4553
|
-
AXDropdownPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", items: "items" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onItemClick: "onItemClick" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true }, { propertyName: "_viewButtons", predicate: AXButtonItemComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\r\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\r\n <ax-prefix *ngIf=\"item.iconClass\">\r\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ng-container>\r\n <ng-template #panelTpl>\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </ng-template>\r\n </div>\r\n</ax-popover>", components: [{ type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"], outputs: ["onOpened", "onClosed"] }, { type: AXButtonItemComponent, selector: "ax-button-item", inputs: ["text", "tooltip", "selected", "seperated", "name", "data", "color"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4475
|
+
AXDropdownPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", items: "items" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onItemClick: "onItemClick" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_viewButtons", predicate: AXButtonItemComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\r\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\r\n <ax-prefix *ngIf=\"item.iconClass\">\r\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ng-container>\r\n <ng-template #panelTpl>\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </ng-template>\r\n </div>\r\n</ax-popover>", components: [{ type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"], outputs: ["onOpened", "onClosed"] }, { type: AXButtonItemComponent, selector: "ax-button-item", inputs: ["text", "tooltip", "selected", "seperated", "name", "data", "color"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4554
4476
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownPanelComponent, decorators: [{
|
|
4555
4477
|
type: Component,
|
|
4556
4478
|
args: [{ selector: 'ax-dropdown-panel', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, inputs: [...DROPDOWN_INPUTS], outputs: [...DROPDOWN_OUTPUT], template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\r\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\r\n <ax-prefix *ngIf=\"item.iconClass\">\r\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ng-container>\r\n <ng-template #panelTpl>\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </ng-template>\r\n </div>\r\n</ax-popover>" }]
|
|
@@ -4566,7 +4488,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4566
4488
|
type: Output
|
|
4567
4489
|
}], popover: [{
|
|
4568
4490
|
type: ViewChild,
|
|
4569
|
-
args: [AXPopoverComponent]
|
|
4491
|
+
args: [AXPopoverComponent, { static: true }]
|
|
4570
4492
|
}], items: [{
|
|
4571
4493
|
type: Input
|
|
4572
4494
|
}] } });
|
|
@@ -4574,14 +4496,147 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4574
4496
|
class AXDropdownModule {
|
|
4575
4497
|
}
|
|
4576
4498
|
AXDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4577
|
-
AXDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownModule, declarations: [
|
|
4499
|
+
AXDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownModule, declarations: [AXDropdownPanelComponent], imports: [CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule], exports: [AXDropdownPanelComponent] });
|
|
4578
4500
|
AXDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownModule, providers: [], imports: [[CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule]] });
|
|
4579
4501
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownModule, decorators: [{
|
|
4580
4502
|
type: NgModule,
|
|
4581
4503
|
args: [{
|
|
4582
4504
|
imports: [CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule],
|
|
4583
|
-
exports: [
|
|
4584
|
-
declarations: [
|
|
4505
|
+
exports: [AXDropdownPanelComponent],
|
|
4506
|
+
declarations: [AXDropdownPanelComponent],
|
|
4507
|
+
providers: [],
|
|
4508
|
+
}]
|
|
4509
|
+
}] });
|
|
4510
|
+
|
|
4511
|
+
class AXFormFieldComponent extends AXBaseComponentMixin {
|
|
4512
|
+
constructor(elementRef, cdr) {
|
|
4513
|
+
super(elementRef, cdr);
|
|
4514
|
+
}
|
|
4515
|
+
}
|
|
4516
|
+
AXFormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormFieldComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4517
|
+
AXFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXFormFieldComponent, selector: "ax-form-field", usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormFieldComponent, decorators: [{
|
|
4519
|
+
type: Component,
|
|
4520
|
+
args: [{
|
|
4521
|
+
selector: 'ax-form-field',
|
|
4522
|
+
template: '<ng-content></ng-content>',
|
|
4523
|
+
encapsulation: ViewEncapsulation.None,
|
|
4524
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4525
|
+
}]
|
|
4526
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4527
|
+
|
|
4528
|
+
class AXFormHintComponent extends AXBaseComponentMixin {
|
|
4529
|
+
constructor(elementRef, cdr) {
|
|
4530
|
+
super(elementRef, cdr);
|
|
4531
|
+
}
|
|
4532
|
+
}
|
|
4533
|
+
AXFormHintComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormHintComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4534
|
+
AXFormHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXFormHintComponent, selector: "ax-form-hint", usesInheritance: true, ngImport: i0, template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormHintComponent, decorators: [{
|
|
4536
|
+
type: Component,
|
|
4537
|
+
args: [{
|
|
4538
|
+
selector: 'ax-form-hint',
|
|
4539
|
+
template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>',
|
|
4540
|
+
encapsulation: ViewEncapsulation.None,
|
|
4541
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4542
|
+
}]
|
|
4543
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4544
|
+
|
|
4545
|
+
class AXFormComponent extends AXBaseComponentMixin {
|
|
4546
|
+
constructor(elementRef, cdr) {
|
|
4547
|
+
super(elementRef, cdr);
|
|
4548
|
+
this.cdr = cdr;
|
|
4549
|
+
}
|
|
4550
|
+
_getComponenets() {
|
|
4551
|
+
return Array.from(this._getHostElement().querySelectorAll('[ax-form-input="true"]'));
|
|
4552
|
+
}
|
|
4553
|
+
validate() {
|
|
4554
|
+
const widgets = this._getComponenets();
|
|
4555
|
+
//
|
|
4556
|
+
return new Promise((resolve, reject) => {
|
|
4557
|
+
if (widgets.length === 0) {
|
|
4558
|
+
return Promise.resolve({ result: true });
|
|
4559
|
+
}
|
|
4560
|
+
Promise.all(widgets.map((c) => c.__axContext__.validate())).then((rules) => {
|
|
4561
|
+
const failed = rules.filter((c) => !c.result);
|
|
4562
|
+
if (failed.length) {
|
|
4563
|
+
reject({
|
|
4564
|
+
result: false,
|
|
4565
|
+
items: failed
|
|
4566
|
+
});
|
|
4567
|
+
}
|
|
4568
|
+
else {
|
|
4569
|
+
resolve({ result: true });
|
|
4570
|
+
}
|
|
4571
|
+
});
|
|
4572
|
+
});
|
|
4573
|
+
}
|
|
4574
|
+
clear() {
|
|
4575
|
+
const widgets = this._getComponenets();
|
|
4576
|
+
widgets.forEach(w => {
|
|
4577
|
+
w.__axContext__.clear();
|
|
4578
|
+
});
|
|
4579
|
+
}
|
|
4580
|
+
}
|
|
4581
|
+
AXFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4582
|
+
AXFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXFormComponent, selector: "ax-form", usesInheritance: true, ngImport: i0, template: '<div class="ax-form"><ng-content></ng-content></div>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormComponent, decorators: [{
|
|
4584
|
+
type: Component,
|
|
4585
|
+
args: [{
|
|
4586
|
+
selector: 'ax-form',
|
|
4587
|
+
template: '<div class="ax-form"><ng-content></ng-content></div>',
|
|
4588
|
+
encapsulation: ViewEncapsulation.None,
|
|
4589
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4590
|
+
}]
|
|
4591
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4592
|
+
|
|
4593
|
+
class AXFormModule {
|
|
4594
|
+
}
|
|
4595
|
+
AXFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4596
|
+
AXFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, declarations: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent], imports: [CommonModule], exports: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent] });
|
|
4597
|
+
AXFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, providers: [], imports: [[CommonModule]] });
|
|
4598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, decorators: [{
|
|
4599
|
+
type: NgModule,
|
|
4600
|
+
args: [{
|
|
4601
|
+
imports: [CommonModule],
|
|
4602
|
+
exports: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
|
|
4603
|
+
declarations: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
|
|
4604
|
+
providers: [],
|
|
4605
|
+
}]
|
|
4606
|
+
}] });
|
|
4607
|
+
|
|
4608
|
+
class AXLabelComponent extends AXBaseComponentMixin {
|
|
4609
|
+
constructor(elementRef, cdr) {
|
|
4610
|
+
super(elementRef, cdr);
|
|
4611
|
+
}
|
|
4612
|
+
get target() {
|
|
4613
|
+
return this._target;
|
|
4614
|
+
}
|
|
4615
|
+
set target(v) {
|
|
4616
|
+
this._target = v;
|
|
4617
|
+
this._cdr.markForCheck();
|
|
4618
|
+
}
|
|
4619
|
+
}
|
|
4620
|
+
AXLabelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4621
|
+
AXLabelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXLabelComponent, selector: "ax-label", usesInheritance: true, ngImport: i0, template: "<label [attr.for]=\"target\">\r\n <ng-content></ng-content>\r\n</label>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelComponent, decorators: [{
|
|
4623
|
+
type: Component,
|
|
4624
|
+
args: [{ selector: 'ax-label', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<label [attr.for]=\"target\">\r\n <ng-content></ng-content>\r\n</label>" }]
|
|
4625
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4626
|
+
|
|
4627
|
+
const COMPONENT$a = [AXLabelComponent];
|
|
4628
|
+
const MODULES$a = [CommonModule];
|
|
4629
|
+
class AXLabelModule {
|
|
4630
|
+
}
|
|
4631
|
+
AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4632
|
+
AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
|
|
4633
|
+
AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$a]] });
|
|
4634
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, decorators: [{
|
|
4635
|
+
type: NgModule,
|
|
4636
|
+
args: [{
|
|
4637
|
+
declarations: [...COMPONENT$a],
|
|
4638
|
+
imports: [...MODULES$a],
|
|
4639
|
+
exports: [...COMPONENT$a],
|
|
4585
4640
|
providers: [],
|
|
4586
4641
|
}]
|
|
4587
4642
|
}] });
|
|
@@ -4968,19 +5023,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4968
5023
|
}] });
|
|
4969
5024
|
|
|
4970
5025
|
class AXPopupComponent extends AXBaseComponentMixin {
|
|
4971
|
-
constructor(elementRef, cdr, _zone, _viewContainerRef, loadingService) {
|
|
5026
|
+
constructor(elementRef, cdr, _zone, _viewContainerRef, loadingService, _platform) {
|
|
4972
5027
|
super(elementRef, cdr);
|
|
4973
5028
|
this._zone = _zone;
|
|
4974
5029
|
this._viewContainerRef = _viewContainerRef;
|
|
4975
5030
|
this.loadingService = loadingService;
|
|
5031
|
+
this._platform = _platform;
|
|
4976
5032
|
this.isLoading = true;
|
|
4977
5033
|
this.onClosed = new EventEmitter();
|
|
4978
5034
|
this.size = 'sm';
|
|
5035
|
+
this.draggable = true;
|
|
4979
5036
|
this.data = {};
|
|
4980
5037
|
this.showCloseButton = true;
|
|
4981
5038
|
this.showHeader = true;
|
|
4982
5039
|
}
|
|
4983
|
-
|
|
5040
|
+
onInit() {
|
|
5041
|
+
super.onInit();
|
|
5042
|
+
if (this._platform.is('Mobile')) {
|
|
5043
|
+
this.draggable = false;
|
|
5044
|
+
}
|
|
4984
5045
|
this._loadingId = this.loadingService.show(this._getHostElement().querySelector('.ax-popup-body-container'));
|
|
4985
5046
|
//
|
|
4986
5047
|
if (typeof this.content === 'string') {
|
|
@@ -5047,12 +5108,12 @@ class AXPopupComponent extends AXBaseComponentMixin {
|
|
|
5047
5108
|
}
|
|
5048
5109
|
onFullScreen() { }
|
|
5049
5110
|
}
|
|
5050
|
-
AXPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: AXLoadingService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5051
|
-
AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.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>\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag>\r\n <ng-container *ngIf=\"showHeader\">\r\n <header cdkDragHandle class=\"ax-cursor-move\">\r\n <div>\r\n <div class=\"ax-text-lg ax-font-medium\">\r\n <span>\r\n {{title}}\r\n </span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showCloseButton\">\r\n <i class=\"ax-ic ax-ic-close ax-text-gray ax-cursor-pointer\" (click)=\"_handleCloseClick()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n </header>\r\n </ng-container>\r\n <main>\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </main>\r\n </div>\r\n</div>", directives: [{ type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5111
|
+
AXPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: AXLoadingService }, { token: i2.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
5112
|
+
AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.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>\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <ng-container *ngIf=\"showHeader\">\r\n <header cdkDragHandle class=\"ax-cursor-move\">\r\n <div>\r\n <div class=\"ax-text-lg ax-font-medium\">\r\n <span>\r\n {{title}}\r\n </span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showCloseButton\">\r\n <i class=\"ax-ic ax-ic-close ax-text-gray ax-cursor-pointer\" (click)=\"_handleCloseClick()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n </header>\r\n </ng-container>\r\n <main>\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </main>\r\n </div>\r\n</div>", directives: [{ type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$4.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5052
5113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupComponent, decorators: [{
|
|
5053
5114
|
type: Component,
|
|
5054
|
-
args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag>\r\n <ng-container *ngIf=\"showHeader\">\r\n <header cdkDragHandle class=\"ax-cursor-move\">\r\n <div>\r\n <div class=\"ax-text-lg ax-font-medium\">\r\n <span>\r\n {{title}}\r\n </span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showCloseButton\">\r\n <i class=\"ax-ic ax-ic-close ax-text-gray ax-cursor-pointer\" (click)=\"_handleCloseClick()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n </header>\r\n </ng-container>\r\n <main>\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </main>\r\n </div>\r\n</div>" }]
|
|
5055
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }]; }, propDecorators: { onKeydownHandler: [{
|
|
5115
|
+
args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" cdkTrapFocus>\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <ng-container *ngIf=\"showHeader\">\r\n <header cdkDragHandle class=\"ax-cursor-move\">\r\n <div>\r\n <div class=\"ax-text-lg ax-font-medium\">\r\n <span>\r\n {{title}}\r\n </span>\r\n </div>\r\n </div>\r\n <div *ngIf=\"showCloseButton\">\r\n <i class=\"ax-ic ax-ic-close ax-text-gray ax-cursor-pointer\" (click)=\"_handleCloseClick()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n </header>\r\n </ng-container>\r\n <main>\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </main>\r\n </div>\r\n</div>" }]
|
|
5116
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i2.AXPlatform }]; }, propDecorators: { onKeydownHandler: [{
|
|
5056
5117
|
type: HostListener,
|
|
5057
5118
|
args: ['keydown.escape', ['$event']]
|
|
5058
5119
|
}] } });
|
|
@@ -5078,7 +5139,8 @@ class AXPopupService {
|
|
|
5078
5139
|
showCloseButton: true,
|
|
5079
5140
|
showHeader: true,
|
|
5080
5141
|
size: 'md',
|
|
5081
|
-
maximizable: false
|
|
5142
|
+
maximizable: false,
|
|
5143
|
+
draggable: true
|
|
5082
5144
|
};
|
|
5083
5145
|
if (typeof arg2 === 'string') {
|
|
5084
5146
|
options.title = arg2;
|
|
@@ -5140,9 +5202,10 @@ class AXPopupService {
|
|
|
5140
5202
|
}
|
|
5141
5203
|
}
|
|
5142
5204
|
AXPopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupService, deps: [{ token: AXOverlayService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5143
|
-
AXPopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupService });
|
|
5205
|
+
AXPopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupService, providedIn: 'root' });
|
|
5144
5206
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupService, decorators: [{
|
|
5145
|
-
type: Injectable
|
|
5207
|
+
type: Injectable,
|
|
5208
|
+
args: [{ providedIn: 'root' }]
|
|
5146
5209
|
}], ctorParameters: function () { return [{ type: AXOverlayService }]; } });
|
|
5147
5210
|
|
|
5148
5211
|
const COMPONENT$7 = [AXPopupComponent];
|
|
@@ -5151,14 +5214,14 @@ class AXPopupModule {
|
|
|
5151
5214
|
}
|
|
5152
5215
|
AXPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5153
5216
|
AXPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupModule, declarations: [AXPopupComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule], exports: [AXPopupComponent] });
|
|
5154
|
-
AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupModule, providers: [
|
|
5217
|
+
AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$7]] });
|
|
5155
5218
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupModule, decorators: [{
|
|
5156
5219
|
type: NgModule,
|
|
5157
5220
|
args: [{
|
|
5158
5221
|
declarations: [...COMPONENT$7],
|
|
5159
5222
|
imports: [...MODULES$7],
|
|
5160
5223
|
exports: [...COMPONENT$7],
|
|
5161
|
-
providers: [
|
|
5224
|
+
providers: [],
|
|
5162
5225
|
}]
|
|
5163
5226
|
}] });
|
|
5164
5227
|
|
|
@@ -5230,31 +5293,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5230
5293
|
}] });
|
|
5231
5294
|
|
|
5232
5295
|
class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
5233
|
-
constructor(
|
|
5234
|
-
super(
|
|
5235
|
-
this.
|
|
5296
|
+
constructor(_elementRef, _cdr, _zone, _platform) {
|
|
5297
|
+
super(_elementRef, _cdr);
|
|
5298
|
+
this._elementRef = _elementRef;
|
|
5299
|
+
this._cdr = _cdr;
|
|
5300
|
+
this._zone = _zone;
|
|
5301
|
+
this._platform = _platform;
|
|
5302
|
+
this.checkbox = false;
|
|
5236
5303
|
this._currentfocusedIndex = -1;
|
|
5304
|
+
this._isMobile = false;
|
|
5237
5305
|
}
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
close() {
|
|
5242
|
-
this.dropdown.close();
|
|
5306
|
+
_handleArrowClickEvent(e) {
|
|
5307
|
+
e.nativeEvent.stopPropagation();
|
|
5308
|
+
this.toggle();
|
|
5243
5309
|
}
|
|
5244
|
-
|
|
5245
|
-
|
|
5310
|
+
_handleInputClickEvent(e) {
|
|
5311
|
+
e.stopPropagation();
|
|
5312
|
+
this.toggle();
|
|
5246
5313
|
}
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5314
|
+
onInit() {
|
|
5315
|
+
super.onInit();
|
|
5316
|
+
this._target = this._elementRef.nativeElement;
|
|
5317
|
+
this._isMobile = this._platform.is('Mobile');
|
|
5318
|
+
this._popoverTitle = this.placeholder || AXTranslator.get('selectbox.popover.title');
|
|
5319
|
+
this.onOpened.subscribe(() => {
|
|
5320
|
+
if (this.displayItems.length == 0) {
|
|
5321
|
+
this._fetchData();
|
|
5322
|
+
}
|
|
5323
|
+
else {
|
|
5324
|
+
this._focusSelectedItem();
|
|
5325
|
+
}
|
|
5326
|
+
});
|
|
5327
|
+
this.onClosed.subscribe(() => {
|
|
5328
|
+
this.focus();
|
|
5250
5329
|
});
|
|
5251
5330
|
}
|
|
5252
|
-
|
|
5253
|
-
|
|
5331
|
+
onViewInit() {
|
|
5332
|
+
super.onViewInit();
|
|
5333
|
+
this._popoverWidth = this._isMobile ? null : this._target.offsetWidth;
|
|
5254
5334
|
}
|
|
5255
5335
|
_handleOnItemClick(e, item) {
|
|
5256
|
-
this.
|
|
5336
|
+
if (this.isItemDisabled(item)) {
|
|
5337
|
+
return;
|
|
5338
|
+
}
|
|
5339
|
+
if (!this.multiple)
|
|
5340
|
+
this.close();
|
|
5257
5341
|
this.toggleSelect(item);
|
|
5342
|
+
this._cdr.detectChanges();
|
|
5258
5343
|
}
|
|
5259
5344
|
_handleListScroll(e) {
|
|
5260
5345
|
const list = e.target;
|
|
@@ -5265,13 +5350,15 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5265
5350
|
}
|
|
5266
5351
|
_checkForLoadData() {
|
|
5267
5352
|
const list = this.listContainer.nativeElement;
|
|
5268
|
-
|
|
5353
|
+
const headerSize = list.parentElement.querySelector('.ax-overlay-pane-header')?.offsetHeight || 0;
|
|
5354
|
+
if (this.loadedCount < this.totalCount && list.scrollHeight < ((list.parentElement.clientHeight - headerSize) * 1.5)) {
|
|
5269
5355
|
this._fetchData();
|
|
5270
5356
|
}
|
|
5271
5357
|
}
|
|
5272
5358
|
_onDataLoaded() {
|
|
5273
5359
|
setTimeout(() => {
|
|
5274
5360
|
this._checkForLoadData();
|
|
5361
|
+
this.popover.updatePosition();
|
|
5275
5362
|
}, 100);
|
|
5276
5363
|
}
|
|
5277
5364
|
_handleOnRemoveItemClick(e, item) {
|
|
@@ -5281,6 +5368,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5281
5368
|
_handleBadgeRemove(e, item) {
|
|
5282
5369
|
this.unselectItems(item);
|
|
5283
5370
|
e.stopPropagation();
|
|
5371
|
+
this.close();
|
|
5284
5372
|
}
|
|
5285
5373
|
_handleKeydown(e) {
|
|
5286
5374
|
if (!(this._getHostElement() == document.activeElement ||
|
|
@@ -5302,7 +5390,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5302
5390
|
e.preventDefault();
|
|
5303
5391
|
return;
|
|
5304
5392
|
}
|
|
5305
|
-
else if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0 && !this.
|
|
5393
|
+
else if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0 && !this.popover.isOpen && e.type === 'keydown') {
|
|
5306
5394
|
if (this.multiple) {
|
|
5307
5395
|
this.open();
|
|
5308
5396
|
}
|
|
@@ -5324,7 +5412,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5324
5412
|
e.preventDefault();
|
|
5325
5413
|
return;
|
|
5326
5414
|
}
|
|
5327
|
-
if (this.
|
|
5415
|
+
if (this.popover.isOpen) {
|
|
5328
5416
|
if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0) {
|
|
5329
5417
|
this.isUserInput = true;
|
|
5330
5418
|
this._focusItemByNav((e.key === 'ArrowDown' ? 1 : -1));
|
|
@@ -5334,9 +5422,14 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5334
5422
|
e.preventDefault();
|
|
5335
5423
|
return;
|
|
5336
5424
|
}
|
|
5337
|
-
|
|
5425
|
+
//e.key === 'Enter' ||
|
|
5426
|
+
if ((e.code === 'Space')) {
|
|
5427
|
+
e.preventDefault();
|
|
5338
5428
|
const focusedItem = this.displayItems[this._currentfocusedIndex];
|
|
5339
5429
|
if (focusedItem) {
|
|
5430
|
+
if (this.isItemDisabled(focusedItem)) {
|
|
5431
|
+
return;
|
|
5432
|
+
}
|
|
5340
5433
|
if (this.multiple) {
|
|
5341
5434
|
this.isUserInput = true;
|
|
5342
5435
|
this.toggleSelect(focusedItem);
|
|
@@ -5347,7 +5440,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5347
5440
|
this.close();
|
|
5348
5441
|
}
|
|
5349
5442
|
}
|
|
5350
|
-
e.preventDefault();
|
|
5351
5443
|
return;
|
|
5352
5444
|
}
|
|
5353
5445
|
}
|
|
@@ -5371,7 +5463,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5371
5463
|
}
|
|
5372
5464
|
_focusItemByIndex(inedx) {
|
|
5373
5465
|
if (this.listContainer) {
|
|
5374
|
-
this.
|
|
5466
|
+
this._zone.runOutsideAngular(() => {
|
|
5375
5467
|
const itemDiv = this.listContainer.nativeElement.querySelector(`.ax-list-item:nth-child(${inedx + 1})`);
|
|
5376
5468
|
if (itemDiv) {
|
|
5377
5469
|
itemDiv.focus();
|
|
@@ -5396,14 +5488,16 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5396
5488
|
this._currentfocusedIndex = index;
|
|
5397
5489
|
}
|
|
5398
5490
|
}
|
|
5399
|
-
AXSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
5400
|
-
AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: {
|
|
5491
|
+
AXSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i2.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
5492
|
+
AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.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", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", pageSize: "pageSize", valueField: "valueField", textField: "textField", items: "items", disabledField: "disabledField", disabledCallback: "disabledCallback", multiple: "multiple", selectionMode: "selectionMode", checkbox: "checkbox" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", valueChanged: "valueChanged" }, host: { listeners: { "document:keydown": "_handleKeydown($event)" }, classAttribute: "ax-editor-container ax-drop-down" }, 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\" (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=\"!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\" (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 </div>\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-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 <div class=\"ax-overlay-pane \" [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-ic-close'}}\" (click)=\"close()\" 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 <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)\" [class.ax-check-box]=\"checkbox\"\r\n [attr.tabindex]=\"i\" [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=\"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><i class=\"fas fa-spinner ax-animate-spin\"></i> Loading ...</div>\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"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5401
5493
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
|
|
5402
5494
|
type: Component,
|
|
5403
|
-
args: [{ selector: 'ax-select-box', inputs: [
|
|
5404
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: {
|
|
5495
|
+
args: [{ selector: 'ax-select-box', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...CALENDAR_INPUTS, ...DATALIST_INPUTS, ...SELECTION_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...CALENDAR_OUTPUTS, ...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\" (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=\"!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\" (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 </div>\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-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 <div class=\"ax-overlay-pane \" [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-ic-close'}}\" (click)=\"close()\" 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 <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)\" [class.ax-check-box]=\"checkbox\"\r\n [attr.tabindex]=\"i\" [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=\"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><i class=\"fas fa-spinner ax-animate-spin\"></i> Loading ...</div>\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>" }]
|
|
5496
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2.AXPlatform }]; }, propDecorators: { popover: [{
|
|
5405
5497
|
type: ViewChild,
|
|
5406
|
-
args: [
|
|
5498
|
+
args: [AXPopoverComponent, { static: true }]
|
|
5499
|
+
}], checkbox: [{
|
|
5500
|
+
type: Input
|
|
5407
5501
|
}], listContainer: [{
|
|
5408
5502
|
type: ViewChild,
|
|
5409
5503
|
args: ['listContainer', { static: true }]
|
|
@@ -5415,12 +5509,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5415
5509
|
class AXSelectBoxModule {
|
|
5416
5510
|
}
|
|
5417
5511
|
AXSelectBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5418
|
-
AXSelectBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxModule, declarations: [AXSelectBoxComponent], imports: [CommonModule,
|
|
5419
|
-
AXSelectBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxModule, providers: [], imports: [[CommonModule,
|
|
5512
|
+
AXSelectBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxModule, declarations: [AXSelectBoxComponent], imports: [CommonModule, FormsModule, AXCheckBoxModule, AXBadgeModule, AXEditorDecoratorModule, AXIconModule, AXPopoverModule, AXButtonModule, AXLabelModule], exports: [AXSelectBoxComponent] });
|
|
5513
|
+
AXSelectBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxModule, providers: [], imports: [[CommonModule, FormsModule, AXCheckBoxModule, AXBadgeModule, AXEditorDecoratorModule, AXIconModule, AXPopoverModule, AXButtonModule, AXLabelModule]] });
|
|
5420
5514
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxModule, decorators: [{
|
|
5421
5515
|
type: NgModule,
|
|
5422
5516
|
args: [{
|
|
5423
|
-
imports: [CommonModule,
|
|
5517
|
+
imports: [CommonModule, FormsModule, AXCheckBoxModule, AXBadgeModule, AXEditorDecoratorModule, AXIconModule, AXPopoverModule, AXButtonModule, AXLabelModule],
|
|
5424
5518
|
exports: [AXSelectBoxComponent],
|
|
5425
5519
|
declarations: [AXSelectBoxComponent],
|
|
5426
5520
|
providers: [],
|
|
@@ -6344,5 +6438,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
6344
6438
|
* Generated bundle index. Do not edit.
|
|
6345
6439
|
*/
|
|
6346
6440
|
|
|
6347
|
-
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, AXDecoratorContentComponent, AXDecoratorHeaderComponent, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent, AXDrawerModule,
|
|
6441
|
+
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, 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, AXNumberBoxComponent, AXNumberBoxModule, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageFooterComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXRadioComponent, AXRadioModule, AXRangeSliderComponent, AXRangeSliderModule, AXResponsiveDirective, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSideMenuComponent, AXSideMenuModule, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
|
|
6348
6442
|
//# sourceMappingURL=acorex-components.mjs.map
|