@acorex/components 5.0.36 → 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/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 +16 -2
- package/esm2020/lib/base/mixin/value-mixin.class.mjs +8 -8
- package/esm2020/lib/checkbox/checkbox.component.mjs +5 -18
- package/esm2020/lib/checkbox/checkbox.module.mjs +5 -4
- package/esm2020/lib/datepicker/datepicker.component.mjs +8 -5
- package/esm2020/lib/dropdown/dropdown.module.mjs +4 -5
- package/esm2020/lib/dropdown/index.mjs +1 -2
- package/esm2020/lib/popover/popover.component.mjs +16 -13
- package/esm2020/lib/popup/popup.component.mjs +3 -3
- package/esm2020/lib/popup/popup.module.mjs +3 -4
- package/esm2020/lib/popup/popup.service.mjs +4 -3
- 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 +51 -19
- package/esm2020/lib/textbox/textbox.component.mjs +2 -1
- package/fesm2015/acorex-components.mjs +341 -277
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +339 -277
- 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 -6
- package/lib/checkbox/checkbox.module.d.ts +2 -1
- package/lib/datepicker/datepicker.component.d.ts +7 -6
- package/lib/dropdown/dropdown.module.d.ts +8 -9
- package/lib/dropdown/index.d.ts +0 -1
- package/lib/popover/popover.component.d.ts +2 -0
- package/lib/popup/popup.component.d.ts +1 -1
- package/lib/selectbox/selectbox.component.d.ts +7 -2
- 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
|
-
import { Injectable, Inject, EventEmitter, Directive, NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, HostBinding, HostListener, ContentChildren, Optional,
|
|
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) {
|
|
@@ -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];
|
|
@@ -2675,154 +2729,16 @@ 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: '<ng-content></ng-content>', 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: '<ng-content></ng-content>',
|
|
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
|
-
get target() {
|
|
2780
|
-
return this._target;
|
|
2781
|
-
}
|
|
2782
|
-
set target(v) {
|
|
2783
|
-
this._target = v;
|
|
2784
|
-
this._cdr.markForCheck();
|
|
2785
|
-
}
|
|
2786
|
-
}
|
|
2787
|
-
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 });
|
|
2788
|
-
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 });
|
|
2789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelComponent, decorators: [{
|
|
2790
|
-
type: Component,
|
|
2791
|
-
args: [{ selector: 'ax-label', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<label [attr.for]=\"target\">\r\n <ng-content></ng-content>\r\n</label>" }]
|
|
2792
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2793
|
-
|
|
2794
|
-
const COMPONENT$g = [AXLabelComponent];
|
|
2795
|
-
const MODULES$g = [CommonModule];
|
|
2796
|
-
class AXLabelModule {
|
|
2797
|
-
}
|
|
2798
|
-
AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2799
|
-
AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
|
|
2800
|
-
AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$g]] });
|
|
2801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLabelModule, decorators: [{
|
|
2802
|
-
type: NgModule,
|
|
2803
|
-
args: [{
|
|
2804
|
-
declarations: [...COMPONENT$g],
|
|
2805
|
-
imports: [...MODULES$g],
|
|
2806
|
-
exports: [...COMPONENT$g],
|
|
2807
|
-
providers: [],
|
|
2808
|
-
}]
|
|
2809
|
-
}] });
|
|
2810
|
-
|
|
2811
2732
|
class AXCheckBoxComponent extends AXBaseValueComponentMixin {
|
|
2812
2733
|
constructor(elementRef, cdr) {
|
|
2813
2734
|
super(elementRef, cdr);
|
|
2814
2735
|
}
|
|
2815
2736
|
onInit() {
|
|
2816
2737
|
super.onInit();
|
|
2817
|
-
;
|
|
2818
2738
|
if (!this.allowNull && this.value == null) {
|
|
2819
2739
|
this.value = false;
|
|
2820
2740
|
}
|
|
2821
2741
|
}
|
|
2822
|
-
onViewInit() {
|
|
2823
|
-
if (this._label)
|
|
2824
|
-
this._label.target = this.id;
|
|
2825
|
-
}
|
|
2826
2742
|
_onValueChanging(value) {
|
|
2827
2743
|
if (this.allowNull && value == null) {
|
|
2828
2744
|
this._stateIndeterminate = true;
|
|
@@ -2842,28 +2758,22 @@ class AXCheckBoxComponent extends AXBaseValueComponentMixin {
|
|
|
2842
2758
|
}
|
|
2843
2759
|
}
|
|
2844
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 });
|
|
2845
|
-
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 });
|
|
2846
2762
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxComponent, decorators: [{
|
|
2847
2763
|
type: Component,
|
|
2848
|
-
args: [{ selector: 'ax-check-box', inputs: [...INTERACTIVE_INPUTS, ...VALUE_INPUTS], outputs: [...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "
|
|
2849
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }
|
|
2850
|
-
type: ContentChildren,
|
|
2851
|
-
args: [AXFormHintComponent]
|
|
2852
|
-
}], _label: [{
|
|
2853
|
-
type: ContentChild,
|
|
2854
|
-
args: [AXLabelComponent]
|
|
2855
|
-
}] } });
|
|
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 }]; } });
|
|
2856
2766
|
|
|
2857
2767
|
class AXCheckBoxModule {
|
|
2858
2768
|
}
|
|
2859
2769
|
AXCheckBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2860
|
-
AXCheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, declarations: [AXCheckBoxComponent], imports: [CommonModule, FormsModule], exports: [AXCheckBoxComponent] });
|
|
2861
|
-
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]] });
|
|
2862
2772
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXCheckBoxModule, decorators: [{
|
|
2863
2773
|
type: NgModule,
|
|
2864
2774
|
args: [{
|
|
2865
2775
|
declarations: [AXCheckBoxComponent],
|
|
2866
|
-
imports: [CommonModule, FormsModule],
|
|
2776
|
+
imports: [CommonModule, FormsModule, AXEditorDecoratorModule],
|
|
2867
2777
|
exports: [AXCheckBoxComponent],
|
|
2868
2778
|
providers: [],
|
|
2869
2779
|
}]
|
|
@@ -2938,19 +2848,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2938
2848
|
type: Input
|
|
2939
2849
|
}] } });
|
|
2940
2850
|
|
|
2941
|
-
const COMPONENT$
|
|
2942
|
-
const MODULES$
|
|
2851
|
+
const COMPONENT$g = [AXDataListComponent];
|
|
2852
|
+
const MODULES$g = [CommonModule, AXButtonModule];
|
|
2943
2853
|
class AXDataListModule {
|
|
2944
2854
|
}
|
|
2945
2855
|
AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2946
2856
|
AXDataListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, declarations: [AXDataListComponent], imports: [CommonModule, AXButtonModule], exports: [AXDataListComponent] });
|
|
2947
|
-
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]] });
|
|
2948
2858
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDataListModule, decorators: [{
|
|
2949
2859
|
type: NgModule,
|
|
2950
2860
|
args: [{
|
|
2951
|
-
declarations: [...COMPONENT$
|
|
2952
|
-
imports: [...MODULES$
|
|
2953
|
-
exports: [...COMPONENT$
|
|
2861
|
+
declarations: [...COMPONENT$g],
|
|
2862
|
+
imports: [...MODULES$g],
|
|
2863
|
+
exports: [...COMPONENT$g],
|
|
2954
2864
|
providers: [],
|
|
2955
2865
|
}]
|
|
2956
2866
|
}] });
|
|
@@ -2958,6 +2868,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2958
2868
|
class AXPopoverComponent extends AXBaseComponent {
|
|
2959
2869
|
constructor(_elementRef, _cdr, _zone, _overlay, _platform, _viewContainerRef) {
|
|
2960
2870
|
super(_elementRef, _cdr);
|
|
2871
|
+
this._elementRef = _elementRef;
|
|
2961
2872
|
this._cdr = _cdr;
|
|
2962
2873
|
this._zone = _zone;
|
|
2963
2874
|
this._overlay = _overlay;
|
|
@@ -3094,11 +3005,10 @@ class AXPopoverComponent extends AXBaseComponent {
|
|
|
3094
3005
|
if (!targetRef)
|
|
3095
3006
|
return;
|
|
3096
3007
|
if (!this._overlayRef) {
|
|
3097
|
-
debugger;
|
|
3098
3008
|
if (this._platform.is('Mobile')) {
|
|
3099
3009
|
this._overlayRef = this._overlay.create({
|
|
3100
3010
|
positionStrategy: this._overlay.position().global().centerHorizontally().centerVertically(),
|
|
3101
|
-
|
|
3011
|
+
disposeOnNavigation: true,
|
|
3102
3012
|
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
3103
3013
|
hasBackdrop: true
|
|
3104
3014
|
});
|
|
@@ -3109,7 +3019,7 @@ class AXPopoverComponent extends AXBaseComponent {
|
|
|
3109
3019
|
.flexibleConnectedTo(targetRef)
|
|
3110
3020
|
.withPositions(Array.isArray(this.position) ? this.position : [this.position])
|
|
3111
3021
|
.withPush(false),
|
|
3112
|
-
|
|
3022
|
+
disposeOnNavigation: true,
|
|
3113
3023
|
panelClass: ['ax-animate-fadeIn', 'ax-animate-faster'],
|
|
3114
3024
|
hasBackdrop: this.hasBackdrop,
|
|
3115
3025
|
backdropClass: [this.backdropClass || 'cdk-overlay-transparent-backdrop']
|
|
@@ -3124,15 +3034,15 @@ class AXPopoverComponent extends AXBaseComponent {
|
|
|
3124
3034
|
}
|
|
3125
3035
|
}));
|
|
3126
3036
|
}
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3037
|
+
this._addSub(this._overlayRef.attachments().subscribe(() => {
|
|
3038
|
+
if (!this._isScrollAttached) {
|
|
3039
|
+
this._addSub(this._platform.scroll.subscribe(c => {
|
|
3040
|
+
if (!c.nativeEvent.target.closest('.ax-overlay-pane'))
|
|
3041
|
+
this.updatePosition();
|
|
3042
|
+
}));
|
|
3043
|
+
this._isScrollAttached = true;
|
|
3044
|
+
}
|
|
3045
|
+
}));
|
|
3136
3046
|
}
|
|
3137
3047
|
if (!this._templatePortal) {
|
|
3138
3048
|
this._templatePortal = new TemplatePortal(this._baseTemplate, this._viewContainerRef);
|
|
@@ -3144,6 +3054,10 @@ class AXPopoverComponent extends AXBaseComponent {
|
|
|
3144
3054
|
_addSub(sub) {
|
|
3145
3055
|
this._subs.push(sub);
|
|
3146
3056
|
}
|
|
3057
|
+
updatePosition() {
|
|
3058
|
+
var _a;
|
|
3059
|
+
(_a = this._overlayRef) === null || _a === void 0 ? void 0 : _a.updatePosition();
|
|
3060
|
+
}
|
|
3147
3061
|
}
|
|
3148
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 });
|
|
3149
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 });
|
|
@@ -3195,6 +3109,10 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
3195
3109
|
value: v
|
|
3196
3110
|
});
|
|
3197
3111
|
}
|
|
3112
|
+
onViewInit() {
|
|
3113
|
+
super.onViewInit();
|
|
3114
|
+
this._popoverTitle = this.placeholder || AXTranslator.get('datepicker.popover.title');
|
|
3115
|
+
}
|
|
3198
3116
|
_handleArrowClickEvent(e) {
|
|
3199
3117
|
this.toggle();
|
|
3200
3118
|
}
|
|
@@ -3228,7 +3146,6 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
3228
3146
|
switch (part[0]) {
|
|
3229
3147
|
case 'dd':
|
|
3230
3148
|
case 'DD':
|
|
3231
|
-
debugger;
|
|
3232
3149
|
const newVal = Math.max(1, Math.min(31, Number(word + e.key)));
|
|
3233
3150
|
this.value = dateVal.set('day', newVal).date;
|
|
3234
3151
|
break;
|
|
@@ -3301,10 +3218,10 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
3301
3218
|
}
|
|
3302
3219
|
}
|
|
3303
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 });
|
|
3304
|
-
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\"
|
|
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 });
|
|
3305
3222
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatePickerComponent, decorators: [{
|
|
3306
3223
|
type: Component,
|
|
3307
|
-
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\"
|
|
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>" }]
|
|
3308
3225
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i2.AXPlatform }]; }, propDecorators: { popover: [{
|
|
3309
3226
|
type: ViewChild,
|
|
3310
3227
|
args: [AXPopoverComponent]
|
|
@@ -3369,19 +3286,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3369
3286
|
type: Input
|
|
3370
3287
|
}] } });
|
|
3371
3288
|
|
|
3372
|
-
const COMPONENT$
|
|
3373
|
-
const MODULES$
|
|
3289
|
+
const COMPONENT$f = [AXInputMaskComponent];
|
|
3290
|
+
const MODULES$f = [CommonModule, NgxMaskModule.forRoot()];
|
|
3374
3291
|
class AXInputMaskModule {
|
|
3375
3292
|
}
|
|
3376
3293
|
AXInputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXInputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3377
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] });
|
|
3378
|
-
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]] });
|
|
3379
3296
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXInputMaskModule, decorators: [{
|
|
3380
3297
|
type: NgModule,
|
|
3381
3298
|
args: [{
|
|
3382
|
-
declarations: [...COMPONENT$
|
|
3383
|
-
imports: [...MODULES$
|
|
3384
|
-
exports: [...COMPONENT$
|
|
3299
|
+
declarations: [...COMPONENT$f],
|
|
3300
|
+
imports: [...MODULES$f],
|
|
3301
|
+
exports: [...COMPONENT$f],
|
|
3385
3302
|
providers: [],
|
|
3386
3303
|
}]
|
|
3387
3304
|
}] });
|
|
@@ -3399,6 +3316,7 @@ class AXTextBoxComponent extends AXBaseTextBoxMixin {
|
|
|
3399
3316
|
super(elementRef, cdr);
|
|
3400
3317
|
}
|
|
3401
3318
|
//TODO: prefix suffix text
|
|
3319
|
+
//TODO: HostBinding classes
|
|
3402
3320
|
get hostClass() {
|
|
3403
3321
|
return `${this.cssClass} ax-${this.size}`;
|
|
3404
3322
|
}
|
|
@@ -3462,8 +3380,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3462
3380
|
}]
|
|
3463
3381
|
}] });
|
|
3464
3382
|
|
|
3465
|
-
const COMPONENT$
|
|
3466
|
-
const MODULES$
|
|
3383
|
+
const COMPONENT$e = [AXDatePickerComponent];
|
|
3384
|
+
const MODULES$e = [
|
|
3467
3385
|
CommonModule,
|
|
3468
3386
|
AXCalendarModule,
|
|
3469
3387
|
AXTextBoxModule,
|
|
@@ -3486,13 +3404,13 @@ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
3486
3404
|
AXIconModule,
|
|
3487
3405
|
AXDateTimeModule,
|
|
3488
3406
|
FormsModule], exports: [AXDatePickerComponent] });
|
|
3489
|
-
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]] });
|
|
3490
3408
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDatepickerModule, decorators: [{
|
|
3491
3409
|
type: NgModule,
|
|
3492
3410
|
args: [{
|
|
3493
|
-
declarations: [...COMPONENT$
|
|
3494
|
-
imports: [...MODULES$
|
|
3495
|
-
exports: [...COMPONENT$
|
|
3411
|
+
declarations: [...COMPONENT$e],
|
|
3412
|
+
imports: [...MODULES$e],
|
|
3413
|
+
exports: [...COMPONENT$e],
|
|
3496
3414
|
providers: [],
|
|
3497
3415
|
}]
|
|
3498
3416
|
}] });
|
|
@@ -3812,8 +3730,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
3812
3730
|
args: ['axIsLoading']
|
|
3813
3731
|
}] } });
|
|
3814
3732
|
|
|
3815
|
-
const COMPONENT$
|
|
3816
|
-
const MODULES$
|
|
3733
|
+
const COMPONENT$d = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
|
|
3734
|
+
const MODULES$d = [CommonModule, OverlayModule, PortalModule];
|
|
3817
3735
|
class AXLoadingModule {
|
|
3818
3736
|
constructor() {
|
|
3819
3737
|
AXConfig.set({
|
|
@@ -3827,13 +3745,13 @@ class AXLoadingModule {
|
|
|
3827
3745
|
}
|
|
3828
3746
|
AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3829
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] });
|
|
3830
|
-
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]] });
|
|
3831
3749
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXLoadingModule, decorators: [{
|
|
3832
3750
|
type: NgModule,
|
|
3833
3751
|
args: [{
|
|
3834
|
-
declarations: [...COMPONENT$
|
|
3835
|
-
imports: [...MODULES$
|
|
3836
|
-
exports: [...COMPONENT$
|
|
3752
|
+
declarations: [...COMPONENT$d],
|
|
3753
|
+
imports: [...MODULES$d],
|
|
3754
|
+
exports: [...COMPONENT$d],
|
|
3837
3755
|
providers: [],
|
|
3838
3756
|
}]
|
|
3839
3757
|
}], ctorParameters: function () { return []; } });
|
|
@@ -4248,19 +4166,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4248
4166
|
}]
|
|
4249
4167
|
}] });
|
|
4250
4168
|
|
|
4251
|
-
const COMPONENT$
|
|
4252
|
-
const MODULES$
|
|
4169
|
+
const COMPONENT$c = [AXDialogComponent];
|
|
4170
|
+
const MODULES$c = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXEditorDecoratorModule];
|
|
4253
4171
|
class AXDialogModule {
|
|
4254
4172
|
}
|
|
4255
4173
|
AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4256
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] });
|
|
4257
|
-
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]] });
|
|
4258
4176
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDialogModule, decorators: [{
|
|
4259
4177
|
type: NgModule,
|
|
4260
4178
|
args: [{
|
|
4261
|
-
declarations: [...COMPONENT$
|
|
4262
|
-
imports: [...MODULES$
|
|
4263
|
-
exports: [...COMPONENT$
|
|
4179
|
+
declarations: [...COMPONENT$c],
|
|
4180
|
+
imports: [...MODULES$c],
|
|
4181
|
+
exports: [...COMPONENT$c],
|
|
4264
4182
|
providers: [],
|
|
4265
4183
|
}]
|
|
4266
4184
|
}] });
|
|
@@ -4506,42 +4424,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4506
4424
|
}]
|
|
4507
4425
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
4508
4426
|
|
|
4509
|
-
const COMPONENT$
|
|
4510
|
-
const MODULES$
|
|
4427
|
+
const COMPONENT$b = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
|
|
4428
|
+
const MODULES$b = [CommonModule];
|
|
4511
4429
|
class AXDrawerModule {
|
|
4512
4430
|
}
|
|
4513
4431
|
AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4514
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] });
|
|
4515
|
-
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]] });
|
|
4516
4434
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDrawerModule, decorators: [{
|
|
4517
4435
|
type: NgModule,
|
|
4518
4436
|
args: [{
|
|
4519
|
-
declarations: [...COMPONENT$
|
|
4520
|
-
imports: [...MODULES$
|
|
4521
|
-
exports: [...COMPONENT$
|
|
4437
|
+
declarations: [...COMPONENT$b],
|
|
4438
|
+
imports: [...MODULES$b],
|
|
4439
|
+
exports: [...COMPONENT$b],
|
|
4522
4440
|
providers: [],
|
|
4523
4441
|
}]
|
|
4524
4442
|
}] });
|
|
4525
4443
|
|
|
4526
|
-
class AXDropdownComponent extends AXBaseDropdownMixin {
|
|
4527
|
-
constructor(_elementRef, _cdr) {
|
|
4528
|
-
super(_elementRef, _cdr);
|
|
4529
|
-
this._target = this;
|
|
4530
|
-
}
|
|
4531
|
-
_handleArrowClickEvent() {
|
|
4532
|
-
this.toggle();
|
|
4533
|
-
}
|
|
4534
|
-
}
|
|
4535
|
-
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 });
|
|
4536
|
-
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 });
|
|
4537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownComponent, decorators: [{
|
|
4538
|
-
type: Component,
|
|
4539
|
-
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>" }]
|
|
4540
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { popover: [{
|
|
4541
|
-
type: ViewChild,
|
|
4542
|
-
args: [AXPopoverComponent]
|
|
4543
|
-
}] } });
|
|
4544
|
-
|
|
4545
4444
|
class AXDropdownPanelComponent extends AXBaseDropdownMixin {
|
|
4546
4445
|
constructor(elementRef, cdr, _parent) {
|
|
4547
4446
|
super(elementRef, cdr);
|
|
@@ -4615,14 +4514,147 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4615
4514
|
class AXDropdownModule {
|
|
4616
4515
|
}
|
|
4617
4516
|
AXDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4618
|
-
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] });
|
|
4619
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]] });
|
|
4620
4519
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXDropdownModule, decorators: [{
|
|
4621
4520
|
type: NgModule,
|
|
4622
4521
|
args: [{
|
|
4623
4522
|
imports: [CommonModule, AXButtonModule, OverlayModule, AXIconModule, AXEditorDecoratorModule, AXPopoverModule],
|
|
4624
|
-
exports: [
|
|
4625
|
-
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],
|
|
4626
4658
|
providers: [],
|
|
4627
4659
|
}]
|
|
4628
4660
|
}] });
|
|
@@ -5023,8 +5055,8 @@ class AXPopupComponent extends AXBaseComponentMixin {
|
|
|
5023
5055
|
this.showCloseButton = true;
|
|
5024
5056
|
this.showHeader = true;
|
|
5025
5057
|
}
|
|
5026
|
-
|
|
5027
|
-
|
|
5058
|
+
onInit() {
|
|
5059
|
+
super.onInit();
|
|
5028
5060
|
if (this._platform.is('Mobile')) {
|
|
5029
5061
|
this.draggable = false;
|
|
5030
5062
|
}
|
|
@@ -5189,9 +5221,10 @@ class AXPopupService {
|
|
|
5189
5221
|
}
|
|
5190
5222
|
}
|
|
5191
5223
|
AXPopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupService, deps: [{ token: AXOverlayService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5192
|
-
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' });
|
|
5193
5225
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupService, decorators: [{
|
|
5194
|
-
type: Injectable
|
|
5226
|
+
type: Injectable,
|
|
5227
|
+
args: [{ providedIn: 'root' }]
|
|
5195
5228
|
}], ctorParameters: function () { return [{ type: AXOverlayService }]; } });
|
|
5196
5229
|
|
|
5197
5230
|
const COMPONENT$7 = [AXPopupComponent];
|
|
@@ -5200,14 +5233,14 @@ class AXPopupModule {
|
|
|
5200
5233
|
}
|
|
5201
5234
|
AXPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5202
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] });
|
|
5203
|
-
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]] });
|
|
5204
5237
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXPopupModule, decorators: [{
|
|
5205
5238
|
type: NgModule,
|
|
5206
5239
|
args: [{
|
|
5207
5240
|
declarations: [...COMPONENT$7],
|
|
5208
5241
|
imports: [...MODULES$7],
|
|
5209
5242
|
exports: [...COMPONENT$7],
|
|
5210
|
-
providers: [
|
|
5243
|
+
providers: [],
|
|
5211
5244
|
}]
|
|
5212
5245
|
}] });
|
|
5213
5246
|
|
|
@@ -5225,10 +5258,10 @@ class AXRadioComponent extends AXBaseValueComponentMixin {
|
|
|
5225
5258
|
}
|
|
5226
5259
|
}
|
|
5227
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 });
|
|
5228
|
-
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 });
|
|
5229
5262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXRadioComponent, decorators: [{
|
|
5230
5263
|
type: Component,
|
|
5231
|
-
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>" }]
|
|
5232
5265
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
5233
5266
|
|
|
5234
5267
|
const COMPONENT$6 = [AXRadioComponent];
|
|
@@ -5285,26 +5318,47 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5285
5318
|
this._cdr = _cdr;
|
|
5286
5319
|
this._zone = _zone;
|
|
5287
5320
|
this._platform = _platform;
|
|
5321
|
+
this.checkbox = false;
|
|
5288
5322
|
this._currentfocusedIndex = -1;
|
|
5289
5323
|
this._isMobile = false;
|
|
5290
|
-
this._target = this._getHostElement();
|
|
5291
|
-
this._isMobile = this._platform.is('Mobile');
|
|
5292
5324
|
}
|
|
5293
5325
|
_handleArrowClickEvent(e) {
|
|
5326
|
+
e.nativeEvent.stopPropagation();
|
|
5294
5327
|
this.toggle();
|
|
5295
5328
|
}
|
|
5296
|
-
|
|
5297
|
-
|
|
5298
|
-
this.
|
|
5329
|
+
_handleInputClickEvent(e) {
|
|
5330
|
+
e.stopPropagation();
|
|
5331
|
+
this.toggle();
|
|
5332
|
+
}
|
|
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');
|
|
5299
5338
|
this.onOpened.subscribe(() => {
|
|
5300
|
-
this.
|
|
5339
|
+
if (this.displayItems.length == 0) {
|
|
5340
|
+
this._fetchData();
|
|
5341
|
+
}
|
|
5342
|
+
else {
|
|
5343
|
+
this._focusSelectedItem();
|
|
5344
|
+
}
|
|
5301
5345
|
});
|
|
5346
|
+
this.onClosed.subscribe(() => {
|
|
5347
|
+
this.focus();
|
|
5348
|
+
});
|
|
5349
|
+
}
|
|
5350
|
+
onViewInit() {
|
|
5351
|
+
super.onViewInit();
|
|
5352
|
+
this._popoverWidth = this._isMobile ? null : this._target.offsetWidth;
|
|
5302
5353
|
}
|
|
5303
5354
|
_handleOnItemClick(e, item) {
|
|
5304
|
-
|
|
5355
|
+
if (this.isItemDisabled(item)) {
|
|
5356
|
+
return;
|
|
5357
|
+
}
|
|
5305
5358
|
if (!this.multiple)
|
|
5306
5359
|
this.close();
|
|
5307
5360
|
this.toggleSelect(item);
|
|
5361
|
+
this._cdr.detectChanges();
|
|
5308
5362
|
}
|
|
5309
5363
|
_handleListScroll(e) {
|
|
5310
5364
|
const list = e.target;
|
|
@@ -5314,14 +5368,17 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5314
5368
|
this._fetchData();
|
|
5315
5369
|
}
|
|
5316
5370
|
_checkForLoadData() {
|
|
5371
|
+
var _a;
|
|
5317
5372
|
const list = this.listContainer.nativeElement;
|
|
5318
|
-
|
|
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)) {
|
|
5319
5375
|
this._fetchData();
|
|
5320
5376
|
}
|
|
5321
5377
|
}
|
|
5322
5378
|
_onDataLoaded() {
|
|
5323
5379
|
setTimeout(() => {
|
|
5324
5380
|
this._checkForLoadData();
|
|
5381
|
+
this.popover.updatePosition();
|
|
5325
5382
|
}, 100);
|
|
5326
5383
|
}
|
|
5327
5384
|
_handleOnRemoveItemClick(e, item) {
|
|
@@ -5331,6 +5388,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5331
5388
|
_handleBadgeRemove(e, item) {
|
|
5332
5389
|
this.unselectItems(item);
|
|
5333
5390
|
e.stopPropagation();
|
|
5391
|
+
this.close();
|
|
5334
5392
|
}
|
|
5335
5393
|
_handleKeydown(e) {
|
|
5336
5394
|
if (!(this._getHostElement() == document.activeElement ||
|
|
@@ -5352,7 +5410,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5352
5410
|
e.preventDefault();
|
|
5353
5411
|
return;
|
|
5354
5412
|
}
|
|
5355
|
-
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') {
|
|
5356
5414
|
if (this.multiple) {
|
|
5357
5415
|
this.open();
|
|
5358
5416
|
}
|
|
@@ -5374,7 +5432,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5374
5432
|
e.preventDefault();
|
|
5375
5433
|
return;
|
|
5376
5434
|
}
|
|
5377
|
-
if (this.
|
|
5435
|
+
if (this.popover.isOpen) {
|
|
5378
5436
|
if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0) {
|
|
5379
5437
|
this.isUserInput = true;
|
|
5380
5438
|
this._focusItemByNav((e.key === 'ArrowDown' ? 1 : -1));
|
|
@@ -5384,9 +5442,14 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5384
5442
|
e.preventDefault();
|
|
5385
5443
|
return;
|
|
5386
5444
|
}
|
|
5387
|
-
|
|
5445
|
+
//e.key === 'Enter' ||
|
|
5446
|
+
if ((e.code === 'Space')) {
|
|
5447
|
+
e.preventDefault();
|
|
5388
5448
|
const focusedItem = this.displayItems[this._currentfocusedIndex];
|
|
5389
5449
|
if (focusedItem) {
|
|
5450
|
+
if (this.isItemDisabled(focusedItem)) {
|
|
5451
|
+
return;
|
|
5452
|
+
}
|
|
5390
5453
|
if (this.multiple) {
|
|
5391
5454
|
this.isUserInput = true;
|
|
5392
5455
|
this.toggleSelect(focusedItem);
|
|
@@ -5397,7 +5460,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5397
5460
|
this.close();
|
|
5398
5461
|
}
|
|
5399
5462
|
}
|
|
5400
|
-
e.preventDefault();
|
|
5401
5463
|
return;
|
|
5402
5464
|
}
|
|
5403
5465
|
}
|
|
@@ -5447,13 +5509,15 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
5447
5509
|
}
|
|
5448
5510
|
}
|
|
5449
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 });
|
|
5450
|
-
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", items: "items", multiple: "multiple",
|
|
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 });
|
|
5451
5513
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
|
|
5452
5514
|
type: Component,
|
|
5453
|
-
args: [{ selector: 'ax-select-box', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...CALENDAR_INPUTS,
|
|
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>" }]
|
|
5454
5516
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i2.AXPlatform }]; }, propDecorators: { popover: [{
|
|
5455
5517
|
type: ViewChild,
|
|
5456
|
-
args: [AXPopoverComponent]
|
|
5518
|
+
args: [AXPopoverComponent, { static: true }]
|
|
5519
|
+
}], checkbox: [{
|
|
5520
|
+
type: Input
|
|
5457
5521
|
}], listContainer: [{
|
|
5458
5522
|
type: ViewChild,
|
|
5459
5523
|
args: ['listContainer', { static: true }]
|
|
@@ -6394,5 +6458,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
6394
6458
|
* Generated bundle index. Do not edit.
|
|
6395
6459
|
*/
|
|
6396
6460
|
|
|
6397
|
-
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 };
|
|
6398
6462
|
//# sourceMappingURL=acorex-components.mjs.map
|