@acorex/components 5.0.30 → 5.0.37
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 +21 -13
- 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/radio/index.mjs +1 -1
- package/esm2020/lib/radio/radio.component.mjs +3 -3
- package/esm2020/lib/radio/radio.module.mjs +1 -1
- 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 +388 -292
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +386 -292
- 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';
|
|
@@ -291,7 +291,18 @@ function _DatalistComponenetMixin(Base) {
|
|
|
291
291
|
return __classPrivateFieldGet(this, _items, "f");
|
|
292
292
|
}
|
|
293
293
|
set items(v) {
|
|
294
|
-
|
|
294
|
+
if (Array.isArray(v)) {
|
|
295
|
+
__classPrivateFieldSet(this, _items, this._formatData(v), "f");
|
|
296
|
+
this._onDataLoaded();
|
|
297
|
+
}
|
|
298
|
+
else if (typeof v === 'function') {
|
|
299
|
+
__classPrivateFieldSet(this, _isLazy, true, "f");
|
|
300
|
+
__classPrivateFieldSet(this, _items, v, "f");
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
__classPrivateFieldSet(this, _items, [], "f");
|
|
304
|
+
this._onDataLoaded();
|
|
305
|
+
}
|
|
295
306
|
}
|
|
296
307
|
get displayItems() {
|
|
297
308
|
if (Array.isArray(this.items)) {
|
|
@@ -305,6 +316,18 @@ function _DatalistComponenetMixin(Base) {
|
|
|
305
316
|
get isLoading() {
|
|
306
317
|
return __classPrivateFieldGet(this, _isLoading, "f");
|
|
307
318
|
}
|
|
319
|
+
_formatData(v) {
|
|
320
|
+
return _.unionBy(v.map((o, i) => {
|
|
321
|
+
if (typeof o == 'object')
|
|
322
|
+
return o;
|
|
323
|
+
else {
|
|
324
|
+
const no = {};
|
|
325
|
+
no[this.valueField] = o;
|
|
326
|
+
no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
|
327
|
+
return no;
|
|
328
|
+
}
|
|
329
|
+
}), this.valueField);
|
|
330
|
+
}
|
|
308
331
|
_fetchData() {
|
|
309
332
|
if ((this.loadedCount >= this.totalCount && this.totalCount != 0) || __classPrivateFieldGet(this, _isLoading, "f") || !__classPrivateFieldGet(this, _isLazy, "f")) {
|
|
310
333
|
return;
|
|
@@ -330,13 +353,13 @@ function _DatalistComponenetMixin(Base) {
|
|
|
330
353
|
});
|
|
331
354
|
}
|
|
332
355
|
}
|
|
333
|
-
_onInternalInit() {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
356
|
+
// _onInternalInit() {
|
|
357
|
+
// if (typeof this.#items == 'function') {
|
|
358
|
+
// this.#isLazy = true;
|
|
359
|
+
// this._fetchData();
|
|
360
|
+
// }
|
|
361
|
+
// super._onInternalInit();
|
|
362
|
+
// }
|
|
340
363
|
_onDataLoaded() {
|
|
341
364
|
}
|
|
342
365
|
_getItemDisplayTextTemplte(item) {
|
|
@@ -358,13 +381,19 @@ function _DatalistComponenetMixin(Base) {
|
|
|
358
381
|
_isLazy = new WeakMap(),
|
|
359
382
|
_items = new WeakMap(),
|
|
360
383
|
_a;
|
|
361
|
-
}
|
|
384
|
+
}
|
|
385
|
+
const DATALIST_INPUTS = [
|
|
386
|
+
'pageSize',
|
|
387
|
+
'valueField',
|
|
388
|
+
'textField',
|
|
389
|
+
'items'
|
|
390
|
+
];
|
|
391
|
+
const DATALIST_OUTPUT = [];
|
|
362
392
|
|
|
363
393
|
function _DropdownComponenetMixin(Base) {
|
|
364
394
|
class Mixin extends Base {
|
|
365
395
|
constructor(...args) {
|
|
366
396
|
super(...args);
|
|
367
|
-
this.fitParent = true;
|
|
368
397
|
this.readonly = false;
|
|
369
398
|
this.onOpened = new EventEmitter();
|
|
370
399
|
this.onClosed = new EventEmitter();
|
|
@@ -385,12 +414,12 @@ function _DropdownComponenetMixin(Base) {
|
|
|
385
414
|
htmlElement: this._getHostElement()
|
|
386
415
|
});
|
|
387
416
|
}
|
|
417
|
+
onInit() {
|
|
418
|
+
super.onInit();
|
|
419
|
+
this.popover.onOpened.subscribe(this.onOpened);
|
|
420
|
+
this.popover.onClosed.subscribe(this.onClosed);
|
|
421
|
+
}
|
|
388
422
|
onViewInit() {
|
|
389
|
-
if (this.dropdownWidth == null) {
|
|
390
|
-
if (this.fitParent === true) {
|
|
391
|
-
this.dropdownWidth = this._getInnerElement().offsetWidth;
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
423
|
// wait for documentElement
|
|
395
424
|
setTimeout(() => {
|
|
396
425
|
if (this.position.length == 0) {
|
|
@@ -409,7 +438,21 @@ function _DropdownComponenetMixin(Base) {
|
|
|
409
438
|
overlayX: 'start',
|
|
410
439
|
overlayY: 'bottom',
|
|
411
440
|
offsetY: -offset
|
|
412
|
-
}
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
originX: 'end',
|
|
444
|
+
originY: 'bottom',
|
|
445
|
+
overlayX: 'end',
|
|
446
|
+
overlayY: 'top',
|
|
447
|
+
offsetY: offset
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
originX: 'end',
|
|
451
|
+
originY: 'top',
|
|
452
|
+
overlayX: 'end',
|
|
453
|
+
overlayY: 'bottom',
|
|
454
|
+
offsetY: -offset
|
|
455
|
+
},
|
|
413
456
|
];
|
|
414
457
|
this.position.push(...list);
|
|
415
458
|
}
|
|
@@ -425,14 +468,12 @@ function _DropdownComponenetMixin(Base) {
|
|
|
425
468
|
return;
|
|
426
469
|
}
|
|
427
470
|
this.popover.close();
|
|
428
|
-
this._emitOnClosedEvent();
|
|
429
471
|
}
|
|
430
472
|
open() {
|
|
431
473
|
if (this.isOpen || this['disabled']) {
|
|
432
474
|
return;
|
|
433
475
|
}
|
|
434
476
|
this.popover.open();
|
|
435
|
-
this._emitOnOpenedEvent();
|
|
436
477
|
}
|
|
437
478
|
get isOpen() {
|
|
438
479
|
var _a;
|
|
@@ -529,6 +570,7 @@ function _SelectionComponenetMixin(Base) {
|
|
|
529
570
|
super(...args);
|
|
530
571
|
this.valueField = 'id';
|
|
531
572
|
this.textField = 'text';
|
|
573
|
+
this.disabledField = 'disabled';
|
|
532
574
|
this.multiple = false;
|
|
533
575
|
this.selectionMode = 'value';
|
|
534
576
|
this.valueChange = new EventEmitter();
|
|
@@ -567,7 +609,7 @@ function _SelectionComponenetMixin(Base) {
|
|
|
567
609
|
selectedItems: this.selectedItems.slice()
|
|
568
610
|
});
|
|
569
611
|
if (v == null || v == undefined || v == "") {
|
|
570
|
-
this.
|
|
612
|
+
this._setState('clear');
|
|
571
613
|
}
|
|
572
614
|
else {
|
|
573
615
|
if (this._isInited) {
|
|
@@ -665,7 +707,7 @@ function _SelectionComponenetMixin(Base) {
|
|
|
665
707
|
if (items && items.length) {
|
|
666
708
|
items.forEach(item => {
|
|
667
709
|
if (this.multiple) {
|
|
668
|
-
this.
|
|
710
|
+
this.isItemSelected(item) ? this.unselectItems(item) : this.selectItems(item);
|
|
669
711
|
}
|
|
670
712
|
else {
|
|
671
713
|
this.selectItems(item);
|
|
@@ -676,8 +718,20 @@ function _SelectionComponenetMixin(Base) {
|
|
|
676
718
|
isItemSelected(item) {
|
|
677
719
|
return this.selectedItems.some(c => c[this.valueField] === item[this.valueField]);
|
|
678
720
|
}
|
|
721
|
+
isItemDisabled(item) {
|
|
722
|
+
return coerceBooleanProperty(item[this.disabledField]) === true || (this.disabledCallback ? this.disabledCallback({ item, index: -1 }) : false);
|
|
723
|
+
}
|
|
679
724
|
};
|
|
680
|
-
}
|
|
725
|
+
}
|
|
726
|
+
const SELECTION_INPUTS = [
|
|
727
|
+
'valueField',
|
|
728
|
+
'textField',
|
|
729
|
+
'disabledField',
|
|
730
|
+
'disabledCallback',
|
|
731
|
+
'multiple',
|
|
732
|
+
'selectionMode'
|
|
733
|
+
];
|
|
734
|
+
const SELECTION_OUTPUT = ['onValueChanged', 'valueChanged'];
|
|
681
735
|
|
|
682
736
|
function _SizableComponenetMixin(Base) {
|
|
683
737
|
return class extends Base {
|
|
@@ -799,7 +853,7 @@ function _ValueComponenetMixin(Base) {
|
|
|
799
853
|
this._emitOnValueChangedEvent(old, __classPrivateFieldGet(this, _value, "f"));
|
|
800
854
|
this._cdr.markForCheck();
|
|
801
855
|
if (v == null || v == undefined || v == '') {
|
|
802
|
-
this.
|
|
856
|
+
this._setState('clear');
|
|
803
857
|
}
|
|
804
858
|
else {
|
|
805
859
|
if (this._isInited) {
|
|
@@ -815,7 +869,7 @@ function _ValueComponenetMixin(Base) {
|
|
|
815
869
|
const rules = Array.from(this._getHostElement().querySelectorAll('ax-validation-rule')).filter((c) => c.__axContext__.enabled);
|
|
816
870
|
//
|
|
817
871
|
if (!rules || rules.length === 0) {
|
|
818
|
-
this.
|
|
872
|
+
this._setState('clear');
|
|
819
873
|
return Promise.resolve({ result: true, value: this.value });
|
|
820
874
|
}
|
|
821
875
|
return new Promise((resolve) => {
|
|
@@ -826,17 +880,17 @@ function _ValueComponenetMixin(Base) {
|
|
|
826
880
|
})).then((d) => {
|
|
827
881
|
const error = d.find((c) => c.result === false);
|
|
828
882
|
if (error) {
|
|
829
|
-
this.
|
|
883
|
+
this._setState('error', error.message);
|
|
830
884
|
resolve({ result: false, value: this.value });
|
|
831
885
|
}
|
|
832
886
|
else {
|
|
833
|
-
this.
|
|
887
|
+
this._setState('success');
|
|
834
888
|
resolve({ result: true, value: this.value });
|
|
835
889
|
}
|
|
836
890
|
});
|
|
837
891
|
});
|
|
838
892
|
}
|
|
839
|
-
|
|
893
|
+
_setState(state, ...args) {
|
|
840
894
|
const container = this._getHostElement().classList.contains('ax-editor-container') ?
|
|
841
895
|
this._getHostElement() :
|
|
842
896
|
this._getHostElement().querySelector('.ax-editor-container');
|
|
@@ -853,11 +907,11 @@ function _ValueComponenetMixin(Base) {
|
|
|
853
907
|
target.classList.remove('ax-state-error', 'ax-state-success');
|
|
854
908
|
break;
|
|
855
909
|
case 'success':
|
|
856
|
-
this.
|
|
910
|
+
this._setState('clear');
|
|
857
911
|
target.classList.add('ax-state-success');
|
|
858
912
|
break;
|
|
859
913
|
case 'error':
|
|
860
|
-
this.
|
|
914
|
+
this._setState('clear');
|
|
861
915
|
if (args[0]) {
|
|
862
916
|
const span = document.createElement('span');
|
|
863
917
|
span.innerText = args[0];
|
|
@@ -1446,10 +1500,10 @@ class AXBadgeComponent extends AXBaseComponentMixin {
|
|
|
1446
1500
|
}
|
|
1447
1501
|
}
|
|
1448
1502
|
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 });
|
|
1449
|
-
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 });
|
|
1503
|
+
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 });
|
|
1450
1504
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXBadgeComponent, decorators: [{
|
|
1451
1505
|
type: Component,
|
|
1452
|
-
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>" }]
|
|
1506
|
+
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>" }]
|
|
1453
1507
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
|
|
1454
1508
|
type: Input
|
|
1455
1509
|
}], color: [{
|
|
@@ -2675,139 +2729,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2675
2729
|
}]
|
|
2676
2730
|
}] });
|
|
2677
2731
|
|
|
2678
|
-
class AXFormFieldComponent extends AXBaseComponentMixin {
|
|
2679
|
-
constructor(elementRef, cdr) {
|
|
2680
|
-
super(elementRef, cdr);
|
|
2681
|
-
}
|
|
2682
|
-
}
|
|
2683
|
-
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 });
|
|
2684
|
-
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 });
|
|
2685
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormFieldComponent, decorators: [{
|
|
2686
|
-
type: Component,
|
|
2687
|
-
args: [{
|
|
2688
|
-
selector: 'ax-form-field',
|
|
2689
|
-
template: '<div class="ax-form-field"><ng-content></ng-content></div>',
|
|
2690
|
-
encapsulation: ViewEncapsulation.None,
|
|
2691
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2692
|
-
}]
|
|
2693
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2694
|
-
|
|
2695
|
-
class AXFormHintComponent extends AXBaseComponentMixin {
|
|
2696
|
-
constructor(elementRef, cdr) {
|
|
2697
|
-
super(elementRef, cdr);
|
|
2698
|
-
}
|
|
2699
|
-
}
|
|
2700
|
-
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 });
|
|
2701
|
-
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 });
|
|
2702
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormHintComponent, decorators: [{
|
|
2703
|
-
type: Component,
|
|
2704
|
-
args: [{
|
|
2705
|
-
selector: 'ax-form-hint',
|
|
2706
|
-
template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>',
|
|
2707
|
-
encapsulation: ViewEncapsulation.None,
|
|
2708
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2709
|
-
}]
|
|
2710
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2711
|
-
|
|
2712
|
-
class AXFormComponent extends AXBaseComponentMixin {
|
|
2713
|
-
constructor(elementRef, cdr) {
|
|
2714
|
-
super(elementRef, cdr);
|
|
2715
|
-
this.cdr = cdr;
|
|
2716
|
-
}
|
|
2717
|
-
_getComponenets() {
|
|
2718
|
-
return Array.from(this._getHostElement().querySelectorAll('[ax-form-input="true"]'));
|
|
2719
|
-
}
|
|
2720
|
-
validate() {
|
|
2721
|
-
const widgets = this._getComponenets();
|
|
2722
|
-
//
|
|
2723
|
-
return new Promise((resolve, reject) => {
|
|
2724
|
-
if (widgets.length === 0) {
|
|
2725
|
-
return Promise.resolve({ result: true });
|
|
2726
|
-
}
|
|
2727
|
-
Promise.all(widgets.map((c) => c.__axContext__.validate())).then((rules) => {
|
|
2728
|
-
const failed = rules.filter((c) => !c.result);
|
|
2729
|
-
if (failed.length) {
|
|
2730
|
-
reject({
|
|
2731
|
-
result: false,
|
|
2732
|
-
items: failed
|
|
2733
|
-
});
|
|
2734
|
-
}
|
|
2735
|
-
else {
|
|
2736
|
-
resolve({ result: true });
|
|
2737
|
-
}
|
|
2738
|
-
});
|
|
2739
|
-
});
|
|
2740
|
-
}
|
|
2741
|
-
clear() {
|
|
2742
|
-
const widgets = this._getComponenets();
|
|
2743
|
-
widgets.forEach(w => {
|
|
2744
|
-
w.__axContext__.clear();
|
|
2745
|
-
});
|
|
2746
|
-
}
|
|
2747
|
-
}
|
|
2748
|
-
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 });
|
|
2749
|
-
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 });
|
|
2750
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormComponent, decorators: [{
|
|
2751
|
-
type: Component,
|
|
2752
|
-
args: [{
|
|
2753
|
-
selector: 'ax-form',
|
|
2754
|
-
template: '<div class="ax-form"><ng-content></ng-content></div>',
|
|
2755
|
-
encapsulation: ViewEncapsulation.None,
|
|
2756
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2757
|
-
}]
|
|
2758
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2759
|
-
|
|
2760
|
-
class AXFormModule {
|
|
2761
|
-
}
|
|
2762
|
-
AXFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2763
|
-
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] });
|
|
2764
|
-
AXFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, providers: [], imports: [[CommonModule]] });
|
|
2765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, decorators: [{
|
|
2766
|
-
type: NgModule,
|
|
2767
|
-
args: [{
|
|
2768
|
-
imports: [CommonModule],
|
|
2769
|
-
exports: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
|
|
2770
|
-
declarations: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
|
|
2771
|
-
providers: [],
|
|
2772
|
-
}]
|
|
2773
|
-
}] });
|
|
2774
|
-
|
|
2775
|
-
class AXLabelComponent extends AXBaseComponentMixin {
|
|
2776
|
-
constructor(elementRef, cdr) {
|
|
2777
|
-
super(elementRef, cdr);
|
|
2778
|
-
}
|
|
2779
|
-
}
|
|
2780
|
-
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 });
|
|
2781
|
-
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 });
|
|
2782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelComponent, decorators: [{
|
|
2783
|
-
type: Component,
|
|
2784
|
-
args: [{ selector: 'ax-label', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<label>\r\n <ng-content></ng-content>\r\n</label>" }]
|
|
2785
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2786
|
-
|
|
2787
|
-
const COMPONENT$g = [AXLabelComponent];
|
|
2788
|
-
const MODULES$g = [CommonModule];
|
|
2789
|
-
class AXLabelModule {
|
|
2790
|
-
}
|
|
2791
|
-
AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2792
|
-
AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
|
|
2793
|
-
AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$g]] });
|
|
2794
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, decorators: [{
|
|
2795
|
-
type: NgModule,
|
|
2796
|
-
args: [{
|
|
2797
|
-
declarations: [...COMPONENT$g],
|
|
2798
|
-
imports: [...MODULES$g],
|
|
2799
|
-
exports: [...COMPONENT$g],
|
|
2800
|
-
providers: [],
|
|
2801
|
-
}]
|
|
2802
|
-
}] });
|
|
2803
|
-
|
|
2804
2732
|
class AXCheckBoxComponent extends AXBaseValueComponentMixin {
|
|
2805
2733
|
constructor(elementRef, cdr) {
|
|
2806
2734
|
super(elementRef, cdr);
|
|
2807
2735
|
}
|
|
2808
2736
|
onInit() {
|
|
2809
2737
|
super.onInit();
|
|
2810
|
-
;
|
|
2811
2738
|
if (!this.allowNull && this.value == null) {
|
|
2812
2739
|
this.value = false;
|
|
2813
2740
|
}
|
|
@@ -2831,28 +2758,22 @@ class AXCheckBoxComponent extends AXBaseValueComponentMixin {
|
|
|
2831
2758
|
}
|
|
2832
2759
|
}
|
|
2833
2760
|
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 });
|
|
2834
|
-
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" },
|
|
2761
|
+
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 });
|
|
2835
2762
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxComponent, decorators: [{
|
|
2836
2763
|
type: Component,
|
|
2837
|
-
args: [{ selector: 'ax-check-box', inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "
|
|
2838
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }
|
|
2839
|
-
type: ContentChildren,
|
|
2840
|
-
args: [AXFormHintComponent]
|
|
2841
|
-
}], _label: [{
|
|
2842
|
-
type: ContentChildren,
|
|
2843
|
-
args: [AXLabelComponent]
|
|
2844
|
-
}] } });
|
|
2764
|
+
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>" }]
|
|
2765
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2845
2766
|
|
|
2846
2767
|
class AXCheckBoxModule {
|
|
2847
2768
|
}
|
|
2848
2769
|
AXCheckBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2849
|
-
AXCheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, declarations: [AXCheckBoxComponent], imports: [CommonModule, FormsModule], exports: [AXCheckBoxComponent] });
|
|
2850
|
-
AXCheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, providers: [], imports: [[CommonModule, FormsModule]] });
|
|
2770
|
+
AXCheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, declarations: [AXCheckBoxComponent], imports: [CommonModule, FormsModule, AXEditorDecoratorModule], exports: [AXCheckBoxComponent] });
|
|
2771
|
+
AXCheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, providers: [], imports: [[CommonModule, FormsModule, AXEditorDecoratorModule]] });
|
|
2851
2772
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, decorators: [{
|
|
2852
2773
|
type: NgModule,
|
|
2853
2774
|
args: [{
|
|
2854
2775
|
declarations: [AXCheckBoxComponent],
|
|
2855
|
-
imports: [CommonModule, FormsModule],
|
|
2776
|
+
imports: [CommonModule, FormsModule, AXEditorDecoratorModule],
|
|
2856
2777
|
exports: [AXCheckBoxComponent],
|
|
2857
2778
|
providers: [],
|
|
2858
2779
|
}]
|
|
@@ -2927,19 +2848,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2927
2848
|
type: Input
|
|
2928
2849
|
}] } });
|
|
2929
2850
|
|
|
2930
|
-
const COMPONENT$
|
|
2931
|
-
const MODULES$
|
|
2851
|
+
const COMPONENT$g = [AXDataListComponent];
|
|
2852
|
+
const MODULES$g = [CommonModule, AXButtonModule];
|
|
2932
2853
|
class AXDataListModule {
|
|
2933
2854
|
}
|
|
2934
2855
|
AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2935
2856
|
AXDataListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, declarations: [AXDataListComponent], imports: [CommonModule, AXButtonModule], exports: [AXDataListComponent] });
|
|
2936
|
-
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$
|
|
2857
|
+
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$g]] });
|
|
2937
2858
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, decorators: [{
|
|
2938
2859
|
type: NgModule,
|
|
2939
2860
|
args: [{
|
|
2940
|
-
declarations: [...COMPONENT$
|
|
2941
|
-
imports: [...MODULES$
|
|
2942
|
-
exports: [...COMPONENT$
|
|
2861
|
+
declarations: [...COMPONENT$g],
|
|
2862
|
+
imports: [...MODULES$g],
|
|
2863
|
+
exports: [...COMPONENT$g],
|
|
2943
2864
|
providers: [],
|
|
2944
2865
|
}]
|
|
2945
2866
|
}] });
|
|
@@ -2947,6 +2868,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2947
2868
|
class AXPopoverComponent extends AXBaseComponent {
|
|
2948
2869
|
constructor(_elementRef, _cdr, _zone, _overlay, _platform, _viewContainerRef) {
|
|
2949
2870
|
super(_elementRef, _cdr);
|
|
2871
|
+
this._elementRef = _elementRef;
|
|
2950
2872
|
this._cdr = _cdr;
|
|
2951
2873
|
this._zone = _zone;
|
|
2952
2874
|
this._overlay = _overlay;
|
|
@@ -3083,17 +3005,26 @@ class AXPopoverComponent extends AXBaseComponent {
|
|
|
3083
3005
|
if (!targetRef)
|
|
3084
3006
|
return;
|
|
3085
3007
|
if (!this._overlayRef) {
|
|
3086
|
-
|
|
3087
|
-
.
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3008
|
+
if (this._platform.is('Mobile')) {
|
|
3009
|
+
this._overlayRef = this._overlay.create({
|
|
3010
|
+
positionStrategy: this._overlay.position().global().centerHorizontally().centerVertically(),
|
|
3011
|
+
disposeOnNavigation: true,
|
|
3012
|
+
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
3013
|
+
hasBackdrop: true
|
|
3014
|
+
});
|
|
3015
|
+
}
|
|
3016
|
+
else {
|
|
3017
|
+
this._overlayRef = this._overlay.create({
|
|
3018
|
+
positionStrategy: this._overlay.position()
|
|
3019
|
+
.flexibleConnectedTo(targetRef)
|
|
3020
|
+
.withPositions(Array.isArray(this.position) ? this.position : [this.position])
|
|
3021
|
+
.withPush(false),
|
|
3022
|
+
disposeOnNavigation: true,
|
|
3023
|
+
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
3024
|
+
hasBackdrop: this.hasBackdrop,
|
|
3025
|
+
backdropClass: [this.backdropClass || 'cdk-overlay-transparent-backdrop']
|
|
3026
|
+
});
|
|
3027
|
+
}
|
|
3097
3028
|
if (this.closeTrigger == 'clickout') {
|
|
3098
3029
|
this._addSub(this._overlayRef._outsidePointerEvents.subscribe(c => {
|
|
3099
3030
|
const target = c.target;
|
|
@@ -3106,8 +3037,8 @@ class AXPopoverComponent extends AXBaseComponent {
|
|
|
3106
3037
|
this._addSub(this._overlayRef.attachments().subscribe(() => {
|
|
3107
3038
|
if (!this._isScrollAttached) {
|
|
3108
3039
|
this._addSub(this._platform.scroll.subscribe(c => {
|
|
3109
|
-
|
|
3110
|
-
|
|
3040
|
+
if (!c.nativeEvent.target.closest('.ax-overlay-pane'))
|
|
3041
|
+
this.updatePosition();
|
|
3111
3042
|
}));
|
|
3112
3043
|
this._isScrollAttached = true;
|
|
3113
3044
|
}
|
|
@@ -3123,6 +3054,10 @@ class AXPopoverComponent extends AXBaseComponent {
|
|
|
3123
3054
|
_addSub(sub) {
|
|
3124
3055
|
this._subs.push(sub);
|
|
3125
3056
|
}
|
|
3057
|
+
updatePosition() {
|
|
3058
|
+
var _a;
|
|
3059
|
+
(_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.updatePosition();
|
|
3060
|
+
}
|
|
3126
3061
|
}
|
|
3127
3062
|
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 });
|
|
3128
3063
|
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 });
|
|
@@ -3155,12 +3090,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3155
3090
|
|
|
3156
3091
|
const AXBaseDatePickerMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_ValueComponenetMixin(_TextboxComponenetMixin(AXCalendarBaseComponent))));
|
|
3157
3092
|
class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
3158
|
-
constructor(_elementRef, _cdr) {
|
|
3093
|
+
constructor(_elementRef, _cdr, _platform) {
|
|
3159
3094
|
super(_elementRef, _cdr);
|
|
3095
|
+
this._platform = _platform;
|
|
3160
3096
|
this._cursorPos = 0;
|
|
3097
|
+
this._isMobile = false;
|
|
3161
3098
|
this.formatChange = new EventEmitter();
|
|
3162
3099
|
this._format = 'YYYY-MM-dd';
|
|
3163
3100
|
this._target = this._getHostElement();
|
|
3101
|
+
this._isMobile = this._platform.is('Mobile');
|
|
3164
3102
|
}
|
|
3165
3103
|
get format() {
|
|
3166
3104
|
return this._format;
|
|
@@ -3171,6 +3109,10 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
3171
3109
|
value: v
|
|
3172
3110
|
});
|
|
3173
3111
|
}
|
|
3112
|
+
onViewInit() {
|
|
3113
|
+
super.onViewInit();
|
|
3114
|
+
this._popoverTitle = this.placeholder || AXTranslator.get('datepicker.popover.title');
|
|
3115
|
+
}
|
|
3174
3116
|
_handleArrowClickEvent(e) {
|
|
3175
3117
|
this.toggle();
|
|
3176
3118
|
}
|
|
@@ -3204,7 +3146,6 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
3204
3146
|
switch (part[0]) {
|
|
3205
3147
|
case 'dd':
|
|
3206
3148
|
case 'DD':
|
|
3207
|
-
debugger;
|
|
3208
3149
|
const newVal = Math.max(1, Math.min(31, Number(word + e.key)));
|
|
3209
3150
|
this.value = dateVal.set('day', newVal).date;
|
|
3210
3151
|
break;
|
|
@@ -3276,12 +3217,12 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
3276
3217
|
input.setSelectionRange(start, end);
|
|
3277
3218
|
}
|
|
3278
3219
|
}
|
|
3279
|
-
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 });
|
|
3280
|
-
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\"
|
|
3220
|
+
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 });
|
|
3221
|
+
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\" [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 });
|
|
3281
3222
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatePickerComponent, decorators: [{
|
|
3282
3223
|
type: Component,
|
|
3283
|
-
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\"
|
|
3284
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
|
|
3224
|
+
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>" }]
|
|
3225
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i2.AXPlatform }]; }, propDecorators: { popover: [{
|
|
3285
3226
|
type: ViewChild,
|
|
3286
3227
|
args: [AXPopoverComponent]
|
|
3287
3228
|
}], formatChange: [{
|
|
@@ -3345,19 +3286,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3345
3286
|
type: Input
|
|
3346
3287
|
}] } });
|
|
3347
3288
|
|
|
3348
|
-
const COMPONENT$
|
|
3349
|
-
const MODULES$
|
|
3289
|
+
const COMPONENT$f = [AXInputMaskComponent];
|
|
3290
|
+
const MODULES$f = [CommonModule, NgxMaskModule.forRoot()];
|
|
3350
3291
|
class AXInputMaskModule {
|
|
3351
3292
|
}
|
|
3352
3293
|
AXInputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXInputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3353
3294
|
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] });
|
|
3354
|
-
AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$
|
|
3295
|
+
AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$f]] });
|
|
3355
3296
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXInputMaskModule, decorators: [{
|
|
3356
3297
|
type: NgModule,
|
|
3357
3298
|
args: [{
|
|
3358
|
-
declarations: [...COMPONENT$
|
|
3359
|
-
imports: [...MODULES$
|
|
3360
|
-
exports: [...COMPONENT$
|
|
3299
|
+
declarations: [...COMPONENT$f],
|
|
3300
|
+
imports: [...MODULES$f],
|
|
3301
|
+
exports: [...COMPONENT$f],
|
|
3361
3302
|
providers: [],
|
|
3362
3303
|
}]
|
|
3363
3304
|
}] });
|
|
@@ -3375,6 +3316,7 @@ class AXTextBoxComponent extends AXBaseTextBoxMixin {
|
|
|
3375
3316
|
super(elementRef, cdr);
|
|
3376
3317
|
}
|
|
3377
3318
|
//TODO: prefix suffix text
|
|
3319
|
+
//TODO: HostBinding classes
|
|
3378
3320
|
get hostClass() {
|
|
3379
3321
|
return `${this.cssClass} ax-${this.size}`;
|
|
3380
3322
|
}
|
|
@@ -3438,8 +3380,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3438
3380
|
}]
|
|
3439
3381
|
}] });
|
|
3440
3382
|
|
|
3441
|
-
const COMPONENT$
|
|
3442
|
-
const MODULES$
|
|
3383
|
+
const COMPONENT$e = [AXDatePickerComponent];
|
|
3384
|
+
const MODULES$e = [
|
|
3443
3385
|
CommonModule,
|
|
3444
3386
|
AXCalendarModule,
|
|
3445
3387
|
AXTextBoxModule,
|
|
@@ -3462,13 +3404,13 @@ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
3462
3404
|
AXIconModule,
|
|
3463
3405
|
AXDateTimeModule,
|
|
3464
3406
|
FormsModule], exports: [AXDatePickerComponent] });
|
|
3465
|
-
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$
|
|
3407
|
+
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$e]] });
|
|
3466
3408
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatepickerModule, decorators: [{
|
|
3467
3409
|
type: NgModule,
|
|
3468
3410
|
args: [{
|
|
3469
|
-
declarations: [...COMPONENT$
|
|
3470
|
-
imports: [...MODULES$
|
|
3471
|
-
exports: [...COMPONENT$
|
|
3411
|
+
declarations: [...COMPONENT$e],
|
|
3412
|
+
imports: [...MODULES$e],
|
|
3413
|
+
exports: [...COMPONENT$e],
|
|
3472
3414
|
providers: [],
|
|
3473
3415
|
}]
|
|
3474
3416
|
}] });
|
|
@@ -3788,8 +3730,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3788
3730
|
args: ['axIsLoading']
|
|
3789
3731
|
}] } });
|
|
3790
3732
|
|
|
3791
|
-
const COMPONENT$
|
|
3792
|
-
const MODULES$
|
|
3733
|
+
const COMPONENT$d = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
|
|
3734
|
+
const MODULES$d = [CommonModule, OverlayModule, PortalModule];
|
|
3793
3735
|
class AXLoadingModule {
|
|
3794
3736
|
constructor() {
|
|
3795
3737
|
AXConfig.set({
|
|
@@ -3803,13 +3745,13 @@ class AXLoadingModule {
|
|
|
3803
3745
|
}
|
|
3804
3746
|
AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3805
3747
|
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] });
|
|
3806
|
-
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$
|
|
3748
|
+
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$d]] });
|
|
3807
3749
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLoadingModule, decorators: [{
|
|
3808
3750
|
type: NgModule,
|
|
3809
3751
|
args: [{
|
|
3810
|
-
declarations: [...COMPONENT$
|
|
3811
|
-
imports: [...MODULES$
|
|
3812
|
-
exports: [...COMPONENT$
|
|
3752
|
+
declarations: [...COMPONENT$d],
|
|
3753
|
+
imports: [...MODULES$d],
|
|
3754
|
+
exports: [...COMPONENT$d],
|
|
3813
3755
|
providers: [],
|
|
3814
3756
|
}]
|
|
3815
3757
|
}], ctorParameters: function () { return []; } });
|
|
@@ -4224,19 +4166,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4224
4166
|
}]
|
|
4225
4167
|
}] });
|
|
4226
4168
|
|
|
4227
|
-
const COMPONENT$
|
|
4228
|
-
const MODULES$
|
|
4169
|
+
const COMPONENT$c = [AXDialogComponent];
|
|
4170
|
+
const MODULES$c = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
|
|
4229
4171
|
class AXDialogModule {
|
|
4230
4172
|
}
|
|
4231
4173
|
AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4232
4174
|
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] });
|
|
4233
|
-
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$
|
|
4175
|
+
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$c]] });
|
|
4234
4176
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDialogModule, decorators: [{
|
|
4235
4177
|
type: NgModule,
|
|
4236
4178
|
args: [{
|
|
4237
|
-
declarations: [...COMPONENT$
|
|
4238
|
-
imports: [...MODULES$
|
|
4239
|
-
exports: [...COMPONENT$
|
|
4179
|
+
declarations: [...COMPONENT$c],
|
|
4180
|
+
imports: [...MODULES$c],
|
|
4181
|
+
exports: [...COMPONENT$c],
|
|
4240
4182
|
providers: [],
|
|
4241
4183
|
}]
|
|
4242
4184
|
}] });
|
|
@@ -4482,42 +4424,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4482
4424
|
}]
|
|
4483
4425
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4484
4426
|
|
|
4485
|
-
const COMPONENT$
|
|
4486
|
-
const MODULES$
|
|
4427
|
+
const COMPONENT$b = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
|
|
4428
|
+
const MODULES$b = [CommonModule];
|
|
4487
4429
|
class AXDrawerModule {
|
|
4488
4430
|
}
|
|
4489
4431
|
AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4490
4432
|
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] });
|
|
4491
|
-
AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$
|
|
4433
|
+
AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$b]] });
|
|
4492
4434
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDrawerModule, decorators: [{
|
|
4493
4435
|
type: NgModule,
|
|
4494
4436
|
args: [{
|
|
4495
|
-
declarations: [...COMPONENT$
|
|
4496
|
-
imports: [...MODULES$
|
|
4497
|
-
exports: [...COMPONENT$
|
|
4437
|
+
declarations: [...COMPONENT$b],
|
|
4438
|
+
imports: [...MODULES$b],
|
|
4439
|
+
exports: [...COMPONENT$b],
|
|
4498
4440
|
providers: [],
|
|
4499
4441
|
}]
|
|
4500
4442
|
}] });
|
|
4501
4443
|
|
|
4502
|
-
class AXDropdownComponent extends AXBaseDropdownMixin {
|
|
4503
|
-
constructor(_elementRef, _cdr) {
|
|
4504
|
-
super(_elementRef, _cdr);
|
|
4505
|
-
this._target = this;
|
|
4506
|
-
}
|
|
4507
|
-
_handleArrowClickEvent() {
|
|
4508
|
-
this.toggle();
|
|
4509
|
-
}
|
|
4510
|
-
}
|
|
4511
|
-
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 });
|
|
4512
|
-
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 });
|
|
4513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownComponent, decorators: [{
|
|
4514
|
-
type: Component,
|
|
4515
|
-
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>" }]
|
|
4516
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
|
|
4517
|
-
type: ViewChild,
|
|
4518
|
-
args: [AXPopoverComponent]
|
|
4519
|
-
}] } });
|
|
4520
|
-
|
|
4521
4444
|
class AXDropdownPanelComponent extends AXBaseDropdownMixin {
|
|
4522
4445
|
constructor(elementRef, cdr, _parent) {
|
|
4523
4446
|
super(elementRef, cdr);
|
|
@@ -4591,14 +4514,147 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4591
4514
|
class AXDropdownModule {
|
|
4592
4515
|
}
|
|
4593
4516
|
AXDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4594
|
-
AXDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownModule, declarations: [
|
|
4517
|
+
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] });
|
|
4595
4518
|
AXDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownModule, providers: [], imports: [[CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule]] });
|
|
4596
4519
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownModule, decorators: [{
|
|
4597
4520
|
type: NgModule,
|
|
4598
4521
|
args: [{
|
|
4599
4522
|
imports: [CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule],
|
|
4600
|
-
exports: [
|
|
4601
|
-
declarations: [
|
|
4523
|
+
exports: [AXDropdownPanelComponent],
|
|
4524
|
+
declarations: [AXDropdownPanelComponent],
|
|
4525
|
+
providers: [],
|
|
4526
|
+
}]
|
|
4527
|
+
}] });
|
|
4528
|
+
|
|
4529
|
+
class AXFormFieldComponent extends AXBaseComponentMixin {
|
|
4530
|
+
constructor(elementRef, cdr) {
|
|
4531
|
+
super(elementRef, cdr);
|
|
4532
|
+
}
|
|
4533
|
+
}
|
|
4534
|
+
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 });
|
|
4535
|
+
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 });
|
|
4536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormFieldComponent, decorators: [{
|
|
4537
|
+
type: Component,
|
|
4538
|
+
args: [{
|
|
4539
|
+
selector: 'ax-form-field',
|
|
4540
|
+
template: '<ng-content></ng-content>',
|
|
4541
|
+
encapsulation: ViewEncapsulation.None,
|
|
4542
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4543
|
+
}]
|
|
4544
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4545
|
+
|
|
4546
|
+
class AXFormHintComponent extends AXBaseComponentMixin {
|
|
4547
|
+
constructor(elementRef, cdr) {
|
|
4548
|
+
super(elementRef, cdr);
|
|
4549
|
+
}
|
|
4550
|
+
}
|
|
4551
|
+
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 });
|
|
4552
|
+
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 });
|
|
4553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormHintComponent, decorators: [{
|
|
4554
|
+
type: Component,
|
|
4555
|
+
args: [{
|
|
4556
|
+
selector: 'ax-form-hint',
|
|
4557
|
+
template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>',
|
|
4558
|
+
encapsulation: ViewEncapsulation.None,
|
|
4559
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4560
|
+
}]
|
|
4561
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4562
|
+
|
|
4563
|
+
class AXFormComponent extends AXBaseComponentMixin {
|
|
4564
|
+
constructor(elementRef, cdr) {
|
|
4565
|
+
super(elementRef, cdr);
|
|
4566
|
+
this.cdr = cdr;
|
|
4567
|
+
}
|
|
4568
|
+
_getComponenets() {
|
|
4569
|
+
return Array.from(this._getHostElement().querySelectorAll('[ax-form-input="true"]'));
|
|
4570
|
+
}
|
|
4571
|
+
validate() {
|
|
4572
|
+
const widgets = this._getComponenets();
|
|
4573
|
+
//
|
|
4574
|
+
return new Promise((resolve, reject) => {
|
|
4575
|
+
if (widgets.length === 0) {
|
|
4576
|
+
return Promise.resolve({ result: true });
|
|
4577
|
+
}
|
|
4578
|
+
Promise.all(widgets.map((c) => c.__axContext__.validate())).then((rules) => {
|
|
4579
|
+
const failed = rules.filter((c) => !c.result);
|
|
4580
|
+
if (failed.length) {
|
|
4581
|
+
reject({
|
|
4582
|
+
result: false,
|
|
4583
|
+
items: failed
|
|
4584
|
+
});
|
|
4585
|
+
}
|
|
4586
|
+
else {
|
|
4587
|
+
resolve({ result: true });
|
|
4588
|
+
}
|
|
4589
|
+
});
|
|
4590
|
+
});
|
|
4591
|
+
}
|
|
4592
|
+
clear() {
|
|
4593
|
+
const widgets = this._getComponenets();
|
|
4594
|
+
widgets.forEach(w => {
|
|
4595
|
+
w.__axContext__.clear();
|
|
4596
|
+
});
|
|
4597
|
+
}
|
|
4598
|
+
}
|
|
4599
|
+
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 });
|
|
4600
|
+
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 });
|
|
4601
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormComponent, decorators: [{
|
|
4602
|
+
type: Component,
|
|
4603
|
+
args: [{
|
|
4604
|
+
selector: 'ax-form',
|
|
4605
|
+
template: '<div class="ax-form"><ng-content></ng-content></div>',
|
|
4606
|
+
encapsulation: ViewEncapsulation.None,
|
|
4607
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4608
|
+
}]
|
|
4609
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4610
|
+
|
|
4611
|
+
class AXFormModule {
|
|
4612
|
+
}
|
|
4613
|
+
AXFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4614
|
+
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] });
|
|
4615
|
+
AXFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, providers: [], imports: [[CommonModule]] });
|
|
4616
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXFormModule, decorators: [{
|
|
4617
|
+
type: NgModule,
|
|
4618
|
+
args: [{
|
|
4619
|
+
imports: [CommonModule],
|
|
4620
|
+
exports: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
|
|
4621
|
+
declarations: [AXFormFieldComponent, AXFormComponent, AXFormHintComponent],
|
|
4622
|
+
providers: [],
|
|
4623
|
+
}]
|
|
4624
|
+
}] });
|
|
4625
|
+
|
|
4626
|
+
class AXLabelComponent extends AXBaseComponentMixin {
|
|
4627
|
+
constructor(elementRef, cdr) {
|
|
4628
|
+
super(elementRef, cdr);
|
|
4629
|
+
}
|
|
4630
|
+
get target() {
|
|
4631
|
+
return this._target;
|
|
4632
|
+
}
|
|
4633
|
+
set target(v) {
|
|
4634
|
+
this._target = v;
|
|
4635
|
+
this._cdr.markForCheck();
|
|
4636
|
+
}
|
|
4637
|
+
}
|
|
4638
|
+
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 });
|
|
4639
|
+
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 });
|
|
4640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelComponent, decorators: [{
|
|
4641
|
+
type: Component,
|
|
4642
|
+
args: [{ selector: 'ax-label', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<label [attr.for]=\"target\">\r\n <ng-content></ng-content>\r\n</label>" }]
|
|
4643
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4644
|
+
|
|
4645
|
+
const COMPONENT$a = [AXLabelComponent];
|
|
4646
|
+
const MODULES$a = [CommonModule];
|
|
4647
|
+
class AXLabelModule {
|
|
4648
|
+
}
|
|
4649
|
+
AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4650
|
+
AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
|
|
4651
|
+
AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$a]] });
|
|
4652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, decorators: [{
|
|
4653
|
+
type: NgModule,
|
|
4654
|
+
args: [{
|
|
4655
|
+
declarations: [...COMPONENT$a],
|
|
4656
|
+
imports: [...MODULES$a],
|
|
4657
|
+
exports: [...COMPONENT$a],
|
|
4602
4658
|
providers: [],
|
|
4603
4659
|
}]
|
|
4604
4660
|
}] });
|
|
@@ -4985,19 +5041,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4985
5041
|
}] });
|
|
4986
5042
|
|
|
4987
5043
|
class AXPopupComponent extends AXBaseComponentMixin {
|
|
4988
|
-
constructor(elementRef, cdr, _zone, _viewContainerRef, loadingService) {
|
|
5044
|
+
constructor(elementRef, cdr, _zone, _viewContainerRef, loadingService, _platform) {
|
|
4989
5045
|
super(elementRef, cdr);
|
|
4990
5046
|
this._zone = _zone;
|
|
4991
5047
|
this._viewContainerRef = _viewContainerRef;
|
|
4992
5048
|
this.loadingService = loadingService;
|
|
5049
|
+
this._platform = _platform;
|
|
4993
5050
|
this.isLoading = true;
|
|
4994
5051
|
this.onClosed = new EventEmitter();
|
|
4995
5052
|
this.size = 'sm';
|
|
5053
|
+
this.draggable = true;
|
|
4996
5054
|
this.data = {};
|
|
4997
5055
|
this.showCloseButton = true;
|
|
4998
5056
|
this.showHeader = true;
|
|
4999
5057
|
}
|
|
5000
|
-
|
|
5058
|
+
onInit() {
|
|
5059
|
+
super.onInit();
|
|
5060
|
+
if (this._platform.is('Mobile')) {
|
|
5061
|
+
this.draggable = false;
|
|
5062
|
+
}
|
|
5001
5063
|
this._loadingId = this.loadingService.show(this._getHostElement().querySelector('.ax-popup-body-container'));
|
|
5002
5064
|
//
|
|
5003
5065
|
if (typeof this.content === 'string') {
|
|
@@ -5064,12 +5126,12 @@ class AXPopupComponent extends AXBaseComponentMixin {
|
|
|
5064
5126
|
}
|
|
5065
5127
|
onFullScreen() { }
|
|
5066
5128
|
}
|
|
5067
|
-
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 });
|
|
5068
|
-
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 });
|
|
5129
|
+
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 });
|
|
5130
|
+
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 });
|
|
5069
5131
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupComponent, decorators: [{
|
|
5070
5132
|
type: Component,
|
|
5071
|
-
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>" }]
|
|
5072
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }]; }, propDecorators: { onKeydownHandler: [{
|
|
5133
|
+
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>" }]
|
|
5134
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i2.AXPlatform }]; }, propDecorators: { onKeydownHandler: [{
|
|
5073
5135
|
type: HostListener,
|
|
5074
5136
|
args: ['keydown.escape', ['$event']]
|
|
5075
5137
|
}] } });
|
|
@@ -5095,7 +5157,8 @@ class AXPopupService {
|
|
|
5095
5157
|
showCloseButton: true,
|
|
5096
5158
|
showHeader: true,
|
|
5097
5159
|
size: 'md',
|
|
5098
|
-
maximizable: false
|
|
5160
|
+
maximizable: false,
|
|
5161
|
+
draggable: true
|
|
5099
5162
|
};
|
|
5100
5163
|
if (typeof arg2 === 'string') {
|
|
5101
5164
|
options.title = arg2;
|
|
@@ -5158,9 +5221,10 @@ class AXPopupService {
|
|
|
5158
5221
|
}
|
|
5159
5222
|
}
|
|
5160
5223
|
AXPopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupService, deps: [{ token: AXOverlayService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5161
|
-
AXPopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupService });
|
|
5224
|
+
AXPopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupService, providedIn: 'root' });
|
|
5162
5225
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupService, decorators: [{
|
|
5163
|
-
type: Injectable
|
|
5226
|
+
type: Injectable,
|
|
5227
|
+
args: [{ providedIn: 'root' }]
|
|
5164
5228
|
}], ctorParameters: function () { return [{ type: AXOverlayService }]; } });
|
|
5165
5229
|
|
|
5166
5230
|
const COMPONENT$7 = [AXPopupComponent];
|
|
@@ -5169,14 +5233,14 @@ class AXPopupModule {
|
|
|
5169
5233
|
}
|
|
5170
5234
|
AXPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5171
5235
|
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] });
|
|
5172
|
-
AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupModule, providers: [
|
|
5236
|
+
AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$7]] });
|
|
5173
5237
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupModule, decorators: [{
|
|
5174
5238
|
type: NgModule,
|
|
5175
5239
|
args: [{
|
|
5176
5240
|
declarations: [...COMPONENT$7],
|
|
5177
5241
|
imports: [...MODULES$7],
|
|
5178
5242
|
exports: [...COMPONENT$7],
|
|
5179
|
-
providers: [
|
|
5243
|
+
providers: [],
|
|
5180
5244
|
}]
|
|
5181
5245
|
}] });
|
|
5182
5246
|
|
|
@@ -5194,10 +5258,10 @@ class AXRadioComponent extends AXBaseValueComponentMixin {
|
|
|
5194
5258
|
}
|
|
5195
5259
|
}
|
|
5196
5260
|
AXRadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXRadioComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5197
|
-
AXRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXRadioComponent, selector: "ax-radio", 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" }, host: { classAttribute: "ax-radio" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-flex ax-items-start\">\n <div class=\"ax-flex ax-items-center ax-h-5\">\n <input [id]=\"id\" class=\"ax-radio\" type=\"radio\" [(ngModel)]=\"value\" [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\"\n (blur)=\"_emitOnBlurEvent($event)\">\n </div>\n <div class=\"ax-ms-3 ax-text-sm\">\n <ng-content select=\"ax-label\"></ng-content>\n <ng-content select=\"ax-form-hint\"></ng-content>\n </div>\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>", directives: [{ type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5261
|
+
AXRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXRadioComponent, selector: "ax-radio", 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" }, host: { classAttribute: "ax-radio" }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-flex ax-items-start\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id\" class=\"ax-radio\" type=\"radio\" [(ngModel)]=\"value\" [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <ng-content select=\"ax-label\"></ng-content>\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n </div>\r\n</div>\r\n<ng-content select=\"ax-validation-rule\"></ng-content>", directives: [{ type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5198
5262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXRadioComponent, decorators: [{
|
|
5199
5263
|
type: Component,
|
|
5200
|
-
args: [{ selector: 'ax-radio', inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-radio' }, template: "<div class=\"ax-flex ax-items-start\">\n <div class=\"ax-flex ax-items-center ax-h-5\">\n <input [id]=\"id\" class=\"ax-radio\" type=\"radio\" [(ngModel)]=\"value\" [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\"\n (blur)=\"_emitOnBlurEvent($event)\">\n </div>\n <div class=\"ax-ms-3 ax-text-sm\">\n <ng-content select=\"ax-label\"></ng-content>\n <ng-content select=\"ax-form-hint\"></ng-content>\n </div>\n</div>\n<ng-content select=\"ax-validation-rule\"></ng-content>" }]
|
|
5264
|
+
args: [{ selector: 'ax-radio', inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-radio' }, template: "<div class=\"ax-flex ax-items-start\">\r\n <div class=\"ax-flex ax-items-center ax-h-5\">\r\n <input [id]=\"id\" class=\"ax-radio\" type=\"radio\" [(ngModel)]=\"value\" [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\" (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-ms-3 ax-text-sm\">\r\n <ng-content select=\"ax-label\"></ng-content>\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n </div>\r\n</div>\r\n<ng-content select=\"ax-validation-rule\"></ng-content>" }]
|
|
5201
5265
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
5202
5266
|
|
|
5203
5267
|
const COMPONENT$6 = [AXRadioComponent];
|
|
@@ -5248,31 +5312,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5248
5312
|
}] });
|
|
5249
5313
|
|
|
5250
5314
|
class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
5251
|
-
constructor(
|
|
5252
|
-
super(
|
|
5253
|
-
this.
|
|
5315
|
+
constructor(_elementRef, _cdr, _zone, _platform) {
|
|
5316
|
+
super(_elementRef, _cdr);
|
|
5317
|
+
this._elementRef = _elementRef;
|
|
5318
|
+
this._cdr = _cdr;
|
|
5319
|
+
this._zone = _zone;
|
|
5320
|
+
this._platform = _platform;
|
|
5321
|
+
this.checkbox = false;
|
|
5254
5322
|
this._currentfocusedIndex = -1;
|
|
5323
|
+
this._isMobile = false;
|
|
5255
5324
|
}
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
close() {
|
|
5260
|
-
this.dropdown.close();
|
|
5325
|
+
_handleArrowClickEvent(e) {
|
|
5326
|
+
e.nativeEvent.stopPropagation();
|
|
5327
|
+
this.toggle();
|
|
5261
5328
|
}
|
|
5262
|
-
|
|
5263
|
-
|
|
5329
|
+
_handleInputClickEvent(e) {
|
|
5330
|
+
e.stopPropagation();
|
|
5331
|
+
this.toggle();
|
|
5264
5332
|
}
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5333
|
+
onInit() {
|
|
5334
|
+
super.onInit();
|
|
5335
|
+
this._target = this._elementRef.nativeElement;
|
|
5336
|
+
this._isMobile = this._platform.is('Mobile');
|
|
5337
|
+
this._popoverTitle = this.placeholder || AXTranslator.get('selectbox.popover.title');
|
|
5338
|
+
this.onOpened.subscribe(() => {
|
|
5339
|
+
if (this.displayItems.length == 0) {
|
|
5340
|
+
this._fetchData();
|
|
5341
|
+
}
|
|
5342
|
+
else {
|
|
5343
|
+
this._focusSelectedItem();
|
|
5344
|
+
}
|
|
5345
|
+
});
|
|
5346
|
+
this.onClosed.subscribe(() => {
|
|
5347
|
+
this.focus();
|
|
5268
5348
|
});
|
|
5269
5349
|
}
|
|
5270
|
-
|
|
5271
|
-
|
|
5350
|
+
onViewInit() {
|
|
5351
|
+
super.onViewInit();
|
|
5352
|
+
this._popoverWidth = this._isMobile ? null : this._target.offsetWidth;
|
|
5272
5353
|
}
|
|
5273
5354
|
_handleOnItemClick(e, item) {
|
|
5274
|
-
this.
|
|
5355
|
+
if (this.isItemDisabled(item)) {
|
|
5356
|
+
return;
|
|
5357
|
+
}
|
|
5358
|
+
if (!this.multiple)
|
|
5359
|
+
this.close();
|
|
5275
5360
|
this.toggleSelect(item);
|
|
5361
|
+
this._cdr.detectChanges();
|
|
5276
5362
|
}
|
|
5277
5363
|
_handleListScroll(e) {
|
|
5278
5364
|
const list = e.target;
|
|
@@ -5282,14 +5368,17 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5282
5368
|
this._fetchData();
|
|
5283
5369
|
}
|
|
5284
5370
|
_checkForLoadData() {
|
|
5371
|
+
var _a;
|
|
5285
5372
|
const list = this.listContainer.nativeElement;
|
|
5286
|
-
|
|
5373
|
+
const headerSize = ((_a = list.parentElement.querySelector('.ax-overlay-pane-header')) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
|
|
5374
|
+
if (this.loadedCount < this.totalCount && list.scrollHeight < ((list.parentElement.clientHeight - headerSize) * 1.5)) {
|
|
5287
5375
|
this._fetchData();
|
|
5288
5376
|
}
|
|
5289
5377
|
}
|
|
5290
5378
|
_onDataLoaded() {
|
|
5291
5379
|
setTimeout(() => {
|
|
5292
5380
|
this._checkForLoadData();
|
|
5381
|
+
this.popover.updatePosition();
|
|
5293
5382
|
}, 100);
|
|
5294
5383
|
}
|
|
5295
5384
|
_handleOnRemoveItemClick(e, item) {
|
|
@@ -5299,6 +5388,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5299
5388
|
_handleBadgeRemove(e, item) {
|
|
5300
5389
|
this.unselectItems(item);
|
|
5301
5390
|
e.stopPropagation();
|
|
5391
|
+
this.close();
|
|
5302
5392
|
}
|
|
5303
5393
|
_handleKeydown(e) {
|
|
5304
5394
|
if (!(this._getHostElement() == document.activeElement ||
|
|
@@ -5320,7 +5410,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5320
5410
|
e.preventDefault();
|
|
5321
5411
|
return;
|
|
5322
5412
|
}
|
|
5323
|
-
else if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0 && !this.
|
|
5413
|
+
else if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0 && !this.popover.isOpen && e.type === 'keydown') {
|
|
5324
5414
|
if (this.multiple) {
|
|
5325
5415
|
this.open();
|
|
5326
5416
|
}
|
|
@@ -5342,7 +5432,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5342
5432
|
e.preventDefault();
|
|
5343
5433
|
return;
|
|
5344
5434
|
}
|
|
5345
|
-
if (this.
|
|
5435
|
+
if (this.popover.isOpen) {
|
|
5346
5436
|
if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0) {
|
|
5347
5437
|
this.isUserInput = true;
|
|
5348
5438
|
this._focusItemByNav((e.key === 'ArrowDown' ? 1 : -1));
|
|
@@ -5352,9 +5442,14 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5352
5442
|
e.preventDefault();
|
|
5353
5443
|
return;
|
|
5354
5444
|
}
|
|
5355
|
-
|
|
5445
|
+
//e.key === 'Enter' ||
|
|
5446
|
+
if ((e.code === 'Space')) {
|
|
5447
|
+
e.preventDefault();
|
|
5356
5448
|
const focusedItem = this.displayItems[this._currentfocusedIndex];
|
|
5357
5449
|
if (focusedItem) {
|
|
5450
|
+
if (this.isItemDisabled(focusedItem)) {
|
|
5451
|
+
return;
|
|
5452
|
+
}
|
|
5358
5453
|
if (this.multiple) {
|
|
5359
5454
|
this.isUserInput = true;
|
|
5360
5455
|
this.toggleSelect(focusedItem);
|
|
@@ -5365,7 +5460,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5365
5460
|
this.close();
|
|
5366
5461
|
}
|
|
5367
5462
|
}
|
|
5368
|
-
e.preventDefault();
|
|
5369
5463
|
return;
|
|
5370
5464
|
}
|
|
5371
5465
|
}
|
|
@@ -5389,7 +5483,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5389
5483
|
}
|
|
5390
5484
|
_focusItemByIndex(inedx) {
|
|
5391
5485
|
if (this.listContainer) {
|
|
5392
|
-
this.
|
|
5486
|
+
this._zone.runOutsideAngular(() => {
|
|
5393
5487
|
const itemDiv = this.listContainer.nativeElement.querySelector(`.ax-list-item:nth-child(${inedx + 1})`);
|
|
5394
5488
|
if (itemDiv) {
|
|
5395
5489
|
itemDiv.focus();
|
|
@@ -5414,14 +5508,16 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5414
5508
|
this._currentfocusedIndex = index;
|
|
5415
5509
|
}
|
|
5416
5510
|
}
|
|
5417
|
-
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 });
|
|
5418
|
-
AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: {
|
|
5511
|
+
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 });
|
|
5512
|
+
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 });
|
|
5419
5513
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
|
|
5420
5514
|
type: Component,
|
|
5421
|
-
args: [{ selector: 'ax-select-box', inputs: [
|
|
5422
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: {
|
|
5515
|
+
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>" }]
|
|
5516
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2.AXPlatform }]; }, propDecorators: { popover: [{
|
|
5423
5517
|
type: ViewChild,
|
|
5424
|
-
args: [
|
|
5518
|
+
args: [AXPopoverComponent, { static: true }]
|
|
5519
|
+
}], checkbox: [{
|
|
5520
|
+
type: Input
|
|
5425
5521
|
}], listContainer: [{
|
|
5426
5522
|
type: ViewChild,
|
|
5427
5523
|
args: ['listContainer', { static: true }]
|
|
@@ -5433,12 +5529,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
5433
5529
|
class AXSelectBoxModule {
|
|
5434
5530
|
}
|
|
5435
5531
|
AXSelectBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5436
|
-
AXSelectBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxModule, declarations: [AXSelectBoxComponent], imports: [CommonModule,
|
|
5437
|
-
AXSelectBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxModule, providers: [], imports: [[CommonModule,
|
|
5532
|
+
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] });
|
|
5533
|
+
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]] });
|
|
5438
5534
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxModule, decorators: [{
|
|
5439
5535
|
type: NgModule,
|
|
5440
5536
|
args: [{
|
|
5441
|
-
imports: [CommonModule,
|
|
5537
|
+
imports: [CommonModule, FormsModule, AXCheckBoxModule, AXBadgeModule, AXEditorDecoratorModule, AXIconModule, AXPopoverModule, AXButtonModule, AXLabelModule],
|
|
5442
5538
|
exports: [AXSelectBoxComponent],
|
|
5443
5539
|
declarations: [AXSelectBoxComponent],
|
|
5444
5540
|
providers: [],
|
|
@@ -6362,5 +6458,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
6362
6458
|
* Generated bundle index. Do not edit.
|
|
6363
6459
|
*/
|
|
6364
6460
|
|
|
6365
|
-
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,
|
|
6461
|
+
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 };
|
|
6366
6462
|
//# sourceMappingURL=acorex-components.mjs.map
|