@acorex/components 5.2.2 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/alert/alert-button.component.mjs +2 -3
- package/esm2020/lib/alert/alert.component.mjs +33 -23
- package/esm2020/lib/alert/alert.module.mjs +6 -22
- package/esm2020/lib/alert/index.mjs +1 -5
- package/esm2020/lib/base/components.class.mjs +17 -0
- package/esm2020/lib/base/events.class.mjs +1 -1
- package/esm2020/lib/base/index.mjs +2 -1
- package/esm2020/lib/base/mixin/base-components.class.mjs +5 -5
- package/esm2020/lib/base/mixin/base-menu-mixin.class.mjs +4 -3
- package/esm2020/lib/base/mixin/color-look-mixing.class.mjs +1 -1
- package/esm2020/lib/base/mixin/datalist-component.class.mjs +2 -1
- package/esm2020/lib/base/styles.class.mjs +1 -1
- package/esm2020/lib/button/button-group.component.mjs +1 -1
- package/esm2020/lib/button/button-item.class.mjs +1 -1
- package/esm2020/lib/button/button.module.mjs +4 -5
- package/esm2020/lib/calendar/calendar.component.mjs +4 -4
- package/esm2020/lib/calendar/calendar.module.mjs +4 -5
- package/esm2020/lib/checkbox/checkbox.module.mjs +5 -5
- package/esm2020/lib/datepicker/datepicker.component.mjs +11 -7
- package/esm2020/lib/datepicker/datepicker.module.mjs +4 -7
- package/esm2020/lib/decorators/close-button.component.mjs +40 -0
- package/esm2020/lib/decorators/decorators.module.mjs +37 -7
- package/esm2020/lib/decorators/footer.component.mjs +24 -0
- package/esm2020/lib/decorators/header.component.mjs +3 -5
- package/esm2020/lib/decorators/icon.component.mjs +28 -0
- package/esm2020/lib/decorators/index.mjs +5 -1
- package/esm2020/lib/decorators/prefix.component.mjs +3 -3
- package/esm2020/lib/decorators/suffix.component.mjs +3 -3
- package/esm2020/lib/decorators/title.component.mjs +24 -0
- package/esm2020/lib/dialog/dialog.module.mjs +4 -4
- package/esm2020/lib/drawer/drawer-container.component.mjs +17 -57
- package/esm2020/lib/drawer/drawer.component.mjs +97 -127
- package/esm2020/lib/drawer/drawer.module.mjs +3 -4
- package/esm2020/lib/drawer/index.mjs +1 -2
- package/esm2020/lib/dropdown/dropdown-panel.component.mjs +4 -4
- package/esm2020/lib/dropdown/dropdown.module.mjs +5 -6
- package/esm2020/lib/menu/menu.component.mjs +20 -7
- package/esm2020/lib/menu/menu.module.mjs +4 -7
- package/esm2020/lib/number-box/number-box.component.mjs +2 -2
- package/esm2020/lib/number-box/number-box.module.mjs +4 -7
- package/esm2020/lib/page/base-page.class.mjs +3 -3
- package/esm2020/lib/page/index.mjs +1 -3
- package/esm2020/lib/page/page.module.mjs +4 -6
- package/esm2020/lib/password-box/password-box.component.mjs +2 -2
- package/esm2020/lib/password-box/password-box.module.mjs +4 -7
- package/esm2020/lib/picker/picker.component.mjs +260 -25
- package/esm2020/lib/picker/picker.model.class.mjs +2 -0
- package/esm2020/lib/popover/popover.component.mjs +6 -3
- package/esm2020/lib/popup/popup.component.mjs +13 -10
- package/esm2020/lib/popup/popup.module.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/searchbox/index.mjs +3 -0
- package/esm2020/lib/searchbox/searchbox.component.mjs +47 -0
- package/esm2020/lib/searchbox/searchbox.module.mjs +24 -0
- package/esm2020/lib/selectbox/selectbox.component.mjs +33 -26
- package/esm2020/lib/selectbox/selectbox.module.mjs +5 -9
- package/esm2020/lib/tabs/tabs.module.mjs +4 -4
- package/esm2020/lib/textbox/textbox.module.mjs +5 -9
- package/esm2020/lib/toast/toast.class.mjs +1 -1
- package/esm2020/lib/toast/toast.component.mjs +14 -12
- package/esm2020/lib/toast/toast.module.mjs +5 -3
- package/esm2020/lib/toast/toast.service.mjs +37 -9
- package/esm2020/public-api.mjs +2 -2
- package/fesm2015/acorex-components.mjs +849 -662
- package/fesm2015/acorex-components.mjs.map +1 -1
- package/fesm2020/acorex-components.mjs +840 -662
- package/fesm2020/acorex-components.mjs.map +1 -1
- package/lib/alert/alert.component.d.ts +7 -6
- package/lib/alert/alert.module.d.ts +4 -8
- package/lib/alert/index.d.ts +0 -4
- package/lib/badge/badge.component.d.ts +3 -3
- package/lib/base/components.class.d.ts +11 -0
- package/lib/base/index.d.ts +1 -0
- package/lib/base/mixin/base-components.class.d.ts +2 -2
- package/lib/base/mixin/button-mixin.class.d.ts +0 -3
- package/lib/base/mixin/color-look-mixing.class.d.ts +4 -4
- package/lib/base/mixin/mixin.class.d.ts +6 -6
- package/lib/base/mixin/selection-component.class.d.ts +3 -0
- package/lib/base/mixin/textbox-mixin.class.d.ts +3 -3
- package/lib/base/styles.class.d.ts +1 -1
- package/lib/button/button-group.component.d.ts +4 -4
- package/lib/button/button-item.class.d.ts +2 -2
- package/lib/button/button.module.d.ts +2 -3
- package/lib/calendar/calendar.module.d.ts +4 -5
- package/lib/checkbox/checkbox.module.d.ts +1 -1
- package/lib/datepicker/datepicker.module.d.ts +3 -4
- package/lib/decorators/close-button.component.d.ts +13 -0
- package/lib/decorators/decorators.module.d.ts +10 -6
- package/lib/decorators/footer.component.d.ts +8 -0
- package/lib/decorators/header.component.d.ts +1 -1
- package/lib/decorators/icon.component.d.ts +10 -0
- package/lib/decorators/index.d.ts +4 -0
- package/lib/decorators/prefix.component.d.ts +1 -1
- package/lib/decorators/suffix.component.d.ts +1 -1
- package/lib/decorators/title.component.d.ts +9 -0
- package/lib/dialog/dialog.module.d.ts +1 -1
- package/lib/drawer/drawer-container.component.d.ts +5 -8
- package/lib/drawer/drawer.component.d.ts +23 -19
- package/lib/drawer/drawer.module.d.ts +2 -3
- package/lib/drawer/index.d.ts +0 -1
- package/lib/dropdown/dropdown.module.d.ts +3 -4
- package/lib/menu/menu.component.d.ts +1 -0
- package/lib/menu/menu.module.d.ts +2 -2
- package/lib/number-box/number-box.module.d.ts +2 -3
- package/lib/page/base-page.class.d.ts +2 -2
- package/lib/page/index.d.ts +0 -2
- package/lib/page/page.module.d.ts +1 -3
- package/lib/password-box/password-box.module.d.ts +1 -2
- package/lib/picker/picker.component.d.ts +54 -13
- package/lib/picker/picker.model.class.d.ts +10 -0
- package/lib/popover/popover.component.d.ts +2 -1
- package/lib/popup/popup.module.d.ts +2 -1
- package/lib/searchbox/index.d.ts +2 -0
- package/lib/searchbox/searchbox.component.d.ts +16 -0
- package/lib/searchbox/searchbox.module.d.ts +11 -0
- package/lib/selectbox/selectbox.component.d.ts +4 -14
- package/lib/selectbox/selectbox.module.d.ts +6 -7
- package/lib/tabs/tabs.module.d.ts +1 -1
- package/lib/textbox/textbox.module.d.ts +2 -3
- package/lib/toast/toast.class.d.ts +4 -3
- package/lib/toast/toast.component.d.ts +0 -2
- package/lib/toast/toast.module.d.ts +3 -1
- package/lib/toast/toast.service.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/esm2020/lib/alert/alert-content.component.mjs +0 -21
- package/esm2020/lib/alert/alert-footer.component.mjs +0 -27
- package/esm2020/lib/alert/alert-suffix.component.mjs +0 -27
- package/esm2020/lib/alert/alert-title.component.mjs +0 -23
- package/esm2020/lib/drawer/drawer-content.component.mjs +0 -27
- package/esm2020/lib/icon/icon.component.mjs +0 -28
- package/esm2020/lib/icon/icon.module.mjs +0 -21
- package/esm2020/lib/icon/index.mjs +0 -3
- package/esm2020/lib/page/page-footer.component.mjs +0 -28
- package/esm2020/lib/page/page-header.component.mjs +0 -28
- package/lib/alert/alert-content.component.d.ts +0 -5
- package/lib/alert/alert-footer.component.d.ts +0 -5
- package/lib/alert/alert-suffix.component.d.ts +0 -5
- package/lib/alert/alert-title.component.d.ts +0 -5
- package/lib/drawer/drawer-content.component.d.ts +0 -8
- package/lib/icon/icon.component.d.ts +0 -10
- package/lib/icon/icon.module.d.ts +0 -8
- package/lib/icon/index.d.ts +0 -2
- package/lib/page/page-footer.component.d.ts +0 -7
- package/lib/page/page-header.component.d.ts +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, Inject, EventEmitter, Directive, Input, TemplateRef, NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, HostListener, HostBinding, Output, ContentChildren,
|
|
3
|
+
import { Injectable, Inject, EventEmitter, Directive, Input, TemplateRef, NgModule, Component, ChangeDetectionStrategy, ViewEncapsulation, HostListener, HostBinding, Output, ContentChildren, Optional, ContentChild, ViewChildren, ViewChild, ElementRef } from '@angular/core';
|
|
4
4
|
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
5
5
|
import _ from 'lodash';
|
|
6
6
|
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
@@ -90,17 +90,17 @@ class AXBaseComponent {
|
|
|
90
90
|
const oldValue = this[option.name];
|
|
91
91
|
const newValue = this._onOptionChanging({ name: option.name, value: option.value });
|
|
92
92
|
//TODO : check real changes
|
|
93
|
+
if (option.beforeCallback)
|
|
94
|
+
option.beforeCallback(oldValue, newValue);
|
|
93
95
|
if (oldValue != newValue) {
|
|
94
|
-
if (option.beforeCallback)
|
|
95
|
-
option.beforeCallback();
|
|
96
96
|
this[`_${option.name}`] = option.value;
|
|
97
97
|
this._onOptionChanged({ name: option.name, newValue, oldValue });
|
|
98
98
|
const emitter = this[`${option.name}Change`];
|
|
99
99
|
if (emitter)
|
|
100
100
|
emitter.emit(newValue);
|
|
101
|
-
if (option.afterCallback)
|
|
102
|
-
option.afterCallback();
|
|
103
101
|
}
|
|
102
|
+
if (option.afterCallback)
|
|
103
|
+
option.afterCallback(oldValue, newValue);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
_AXBaseComponent_elementRef = new WeakMap();
|
|
@@ -175,15 +175,16 @@ function _BaseMenuComponentMixin(Base) {
|
|
|
175
175
|
return o;
|
|
176
176
|
else {
|
|
177
177
|
const no = {};
|
|
178
|
+
no[this.valueField] = o;
|
|
178
179
|
no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
|
179
180
|
return no;
|
|
180
181
|
}
|
|
181
|
-
}));
|
|
182
|
+
}), this.valueField);
|
|
182
183
|
}
|
|
183
184
|
_findNode(parentId, _children, source) {
|
|
184
185
|
if (source.length > 0) {
|
|
185
186
|
source.forEach((element) => {
|
|
186
|
-
if (element.
|
|
187
|
+
if (element[this.valueField] == parentId) {
|
|
187
188
|
element.children = _children;
|
|
188
189
|
}
|
|
189
190
|
else {
|
|
@@ -536,6 +537,7 @@ function _DatalistComponenetMixin(Base) {
|
|
|
536
537
|
}
|
|
537
538
|
empty() {
|
|
538
539
|
__classPrivateFieldSet(this, _isLoading, false, "f");
|
|
540
|
+
__classPrivateFieldSet(this, _currentPage, 0, "f");
|
|
539
541
|
if (__classPrivateFieldGet(this, _loadedItems, "f")) {
|
|
540
542
|
__classPrivateFieldGet(this, _loadedItems, "f").length = 0;
|
|
541
543
|
}
|
|
@@ -1190,6 +1192,21 @@ const AXBaseDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(
|
|
|
1190
1192
|
const AXBaseMenuMixin = _InteractiveComponenetMixin(_BaseMenuComponentMixin(AXBaseComponent));
|
|
1191
1193
|
const AXAvatarMixin = _ColorLookComponentMixin(AXBaseComponent);
|
|
1192
1194
|
|
|
1195
|
+
class AXClosbaleComponent {
|
|
1196
|
+
}
|
|
1197
|
+
AXClosbaleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXClosbaleComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1198
|
+
AXClosbaleComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXClosbaleComponent });
|
|
1199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXClosbaleComponent, decorators: [{
|
|
1200
|
+
type: Injectable
|
|
1201
|
+
}] });
|
|
1202
|
+
class AXSearchableComponent {
|
|
1203
|
+
}
|
|
1204
|
+
AXSearchableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSearchableComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1205
|
+
AXSearchableComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSearchableComponent });
|
|
1206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSearchableComponent, decorators: [{
|
|
1207
|
+
type: Injectable
|
|
1208
|
+
}] });
|
|
1209
|
+
|
|
1193
1210
|
/**
|
|
1194
1211
|
* Contains native event
|
|
1195
1212
|
* @category Events
|
|
@@ -1658,74 +1675,72 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
1658
1675
|
}] } });
|
|
1659
1676
|
|
|
1660
1677
|
class AXDrawerComponent extends AXBaseComponentMixin {
|
|
1661
|
-
constructor(
|
|
1662
|
-
super(
|
|
1663
|
-
this.
|
|
1664
|
-
this.
|
|
1665
|
-
this.
|
|
1666
|
-
this.
|
|
1667
|
-
this.
|
|
1668
|
-
this.
|
|
1678
|
+
constructor(_elementRef, _cdr, _zone) {
|
|
1679
|
+
super(_elementRef, _cdr);
|
|
1680
|
+
this._elementRef = _elementRef;
|
|
1681
|
+
this._zone = _zone;
|
|
1682
|
+
this.locationChange = new EventEmitter();
|
|
1683
|
+
this.modeChange = new EventEmitter();
|
|
1684
|
+
this._mode = 'overlay';
|
|
1685
|
+
this.collapsedChange = new EventEmitter();
|
|
1686
|
+
this._collapsed = true;
|
|
1687
|
+
this._loaded = false;
|
|
1688
|
+
}
|
|
1689
|
+
get location() {
|
|
1690
|
+
return this._location;
|
|
1691
|
+
}
|
|
1692
|
+
set location(v) {
|
|
1693
|
+
this._setOption({
|
|
1694
|
+
name: 'location',
|
|
1695
|
+
value: v
|
|
1696
|
+
});
|
|
1697
|
+
}
|
|
1698
|
+
get mode() {
|
|
1699
|
+
return this._mode;
|
|
1700
|
+
}
|
|
1701
|
+
set mode(v) {
|
|
1702
|
+
this._setOption({
|
|
1703
|
+
name: 'mode',
|
|
1704
|
+
value: v
|
|
1705
|
+
});
|
|
1669
1706
|
}
|
|
1670
1707
|
get collapsed() {
|
|
1671
1708
|
return this._collapsed;
|
|
1672
1709
|
}
|
|
1673
1710
|
set collapsed(v) {
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
}
|
|
1711
|
+
this._setOption({
|
|
1712
|
+
name: 'collapsed',
|
|
1713
|
+
value: v
|
|
1714
|
+
});
|
|
1679
1715
|
}
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
const hostElementClassList = this._getHostElement().classList;
|
|
1687
|
-
switch (this.location) {
|
|
1688
|
-
case 'start':
|
|
1689
|
-
hostElementClassList.add('ax-drawer-start');
|
|
1690
|
-
break;
|
|
1691
|
-
case 'end':
|
|
1692
|
-
hostElementClassList.add('ax-drawer-end');
|
|
1693
|
-
break;
|
|
1694
|
-
case 'top':
|
|
1695
|
-
hostElementClassList.add('ax-drawer-top');
|
|
1696
|
-
break;
|
|
1697
|
-
case 'bottom':
|
|
1698
|
-
hostElementClassList.add('ax-drawer-bottom');
|
|
1699
|
-
break;
|
|
1700
|
-
default:
|
|
1701
|
-
hostElementClassList.add('ax-drawer-start');
|
|
1702
|
-
break;
|
|
1703
|
-
}
|
|
1716
|
+
onViewInit() {
|
|
1717
|
+
setTimeout(() => {
|
|
1718
|
+
this._loaded = true;
|
|
1719
|
+
this._checkProps();
|
|
1720
|
+
}, 1000);
|
|
1721
|
+
this._detectBoundingSize();
|
|
1704
1722
|
}
|
|
1705
|
-
|
|
1706
|
-
this.
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
}
|
|
1717
|
-
}
|
|
1718
|
-
else {
|
|
1719
|
-
elm.classList.add('ax-expanded');
|
|
1720
|
-
elm.classList.remove('ax-collapsed');
|
|
1721
|
-
if (this._currentMode == 'overlay') {
|
|
1722
|
-
this._addBackdrop();
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1723
|
+
_onOptionChanged(option) {
|
|
1724
|
+
this._checkProps();
|
|
1725
|
+
}
|
|
1726
|
+
ngDoCheck() {
|
|
1727
|
+
this._detectBoundingSize();
|
|
1728
|
+
}
|
|
1729
|
+
_detectBoundingSize() {
|
|
1730
|
+
this._zone.runOutsideAngular(() => {
|
|
1731
|
+
const host = this._getHostElement();
|
|
1732
|
+
if (host.clientWidth)
|
|
1733
|
+
host.style.setProperty('--ax-el-width', `${host.clientWidth}px`);
|
|
1725
1734
|
});
|
|
1726
1735
|
}
|
|
1727
|
-
|
|
1728
|
-
this.
|
|
1736
|
+
_checkProps() {
|
|
1737
|
+
this._detectBoundingSize();
|
|
1738
|
+
this._removeBackdrop();
|
|
1739
|
+
if (this.mode == 'overlay') {
|
|
1740
|
+
if (!this.collapsed) {
|
|
1741
|
+
this._addBackdrop();
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1729
1744
|
}
|
|
1730
1745
|
toggle() {
|
|
1731
1746
|
this.collapsed = !this.collapsed;
|
|
@@ -1736,69 +1751,35 @@ class AXDrawerComponent extends AXBaseComponentMixin {
|
|
|
1736
1751
|
open() {
|
|
1737
1752
|
this.collapsed = false;
|
|
1738
1753
|
}
|
|
1739
|
-
|
|
1740
|
-
this.
|
|
1741
|
-
}
|
|
1742
|
-
_detectSize() {
|
|
1743
|
-
//TODO detect break size
|
|
1744
|
-
const bound = this._getHostElement().parentElement.getBoundingClientRect();
|
|
1745
|
-
if (bound.width == 0) {
|
|
1746
|
-
console.log('Drawer invalid size', bound);
|
|
1747
|
-
setTimeout(() => {
|
|
1748
|
-
this._detectSize();
|
|
1749
|
-
}, 1);
|
|
1750
|
-
return;
|
|
1751
|
-
}
|
|
1752
|
-
if (bound.width < 400) {
|
|
1753
|
-
this._currentMode = 'overlay';
|
|
1754
|
-
this.collapsed = true;
|
|
1755
|
-
}
|
|
1756
|
-
else {
|
|
1757
|
-
this._currentMode = this.mode;
|
|
1758
|
-
}
|
|
1759
|
-
this._updateClass();
|
|
1760
|
-
this._emitChange();
|
|
1761
|
-
}
|
|
1762
|
-
_emitChange() {
|
|
1763
|
-
this.onChanged.emit({
|
|
1764
|
-
component: this,
|
|
1765
|
-
htmlElement: this.elementRef.nativeElement
|
|
1766
|
-
});
|
|
1767
|
-
}
|
|
1768
|
-
_setOverlayMode() {
|
|
1769
|
-
this._currentMode = 'overlay';
|
|
1770
|
-
this._getHostElement().classList.remove('ax-drawer-push');
|
|
1771
|
-
this._getHostElement().classList.add('ax-drawer-overlay');
|
|
1772
|
-
}
|
|
1773
|
-
_setPushMode() {
|
|
1774
|
-
this._currentMode = 'push';
|
|
1775
|
-
this._getHostElement().classList.remove('ax-drawer-overlay');
|
|
1776
|
-
this._getHostElement().classList.add('ax-drawer-push');
|
|
1777
|
-
this._removeBackdrop();
|
|
1754
|
+
get __hostClass() {
|
|
1755
|
+
return `ax-drawer-${this.mode} ax-drawer-${this.location} ${this.collapsed ? 'ax-collapsed' : 'ax-expanded'} ${!this._loaded ? 'ax-preload' : ''}`;
|
|
1778
1756
|
}
|
|
1779
1757
|
_addBackdrop() {
|
|
1780
|
-
|
|
1781
|
-
this.
|
|
1782
|
-
this.
|
|
1783
|
-
this.
|
|
1784
|
-
|
|
1785
|
-
|
|
1758
|
+
this._zone.runOutsideAngular(() => {
|
|
1759
|
+
this._backdropElement = document.createElement('div');
|
|
1760
|
+
this._backdropElement.classList.add('ax-backdrop');
|
|
1761
|
+
this._backdropElement.onclick = () => {
|
|
1762
|
+
this._zone.run(() => {
|
|
1763
|
+
this.close();
|
|
1764
|
+
});
|
|
1765
|
+
};
|
|
1766
|
+
this._getHostElement().parentElement?.appendChild(this._backdropElement);
|
|
1767
|
+
});
|
|
1786
1768
|
}
|
|
1787
1769
|
_removeBackdrop() {
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
_handleBackfropClick(e) {
|
|
1795
|
-
this._removeBackdrop();
|
|
1796
|
-
this.collapsed = true;
|
|
1770
|
+
this._zone.runOutsideAngular(() => {
|
|
1771
|
+
if (this._backdropElement) {
|
|
1772
|
+
this._getHostElement().parentElement?.removeChild(this._backdropElement);
|
|
1773
|
+
this._backdropElement = null;
|
|
1774
|
+
}
|
|
1775
|
+
});
|
|
1797
1776
|
}
|
|
1798
1777
|
}
|
|
1799
1778
|
AXDrawerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1800
|
-
AXDrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDrawerComponent, selector: "ax-drawer", inputs: {
|
|
1801
|
-
<ng-content>
|
|
1779
|
+
AXDrawerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDrawerComponent, selector: "ax-drawer", inputs: { location: "location", mode: "mode", collapsed: "collapsed" }, outputs: { locationChange: "locationChange", modeChange: "modeChange", collapsedChange: "collapsedChange" }, host: { properties: { "class": "this.__hostClass" } }, providers: [{ provide: AXClosbaleComponent, useExisting: AXDrawerComponent }], usesInheritance: true, ngImport: i0, template: `
|
|
1780
|
+
<ng-content select='ax-header'>
|
|
1781
|
+
</ng-content>
|
|
1782
|
+
<ng-content select='ax-content'>
|
|
1802
1783
|
</ng-content>
|
|
1803
1784
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1804
1785
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerComponent, decorators: [{
|
|
@@ -1806,135 +1787,78 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
1806
1787
|
args: [{
|
|
1807
1788
|
selector: 'ax-drawer',
|
|
1808
1789
|
template: `
|
|
1809
|
-
<ng-content>
|
|
1790
|
+
<ng-content select='ax-header'>
|
|
1791
|
+
</ng-content>
|
|
1792
|
+
<ng-content select='ax-content'>
|
|
1810
1793
|
</ng-content>
|
|
1811
1794
|
`,
|
|
1812
1795
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1813
1796
|
encapsulation: ViewEncapsulation.None,
|
|
1814
|
-
|
|
1797
|
+
providers: [{ provide: AXClosbaleComponent, useExisting: AXDrawerComponent }]
|
|
1815
1798
|
}]
|
|
1816
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: {
|
|
1799
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }, propDecorators: { locationChange: [{
|
|
1817
1800
|
type: Output
|
|
1818
|
-
}], mode: [{
|
|
1819
|
-
type: Input
|
|
1820
1801
|
}], location: [{
|
|
1821
1802
|
type: Input
|
|
1803
|
+
}], modeChange: [{
|
|
1804
|
+
type: Output
|
|
1805
|
+
}], mode: [{
|
|
1806
|
+
type: Input
|
|
1807
|
+
}], collapsedChange: [{
|
|
1808
|
+
type: Output
|
|
1822
1809
|
}], collapsed: [{
|
|
1823
1810
|
type: Input
|
|
1824
|
-
}],
|
|
1825
|
-
type:
|
|
1826
|
-
args: ['
|
|
1811
|
+
}], __hostClass: [{
|
|
1812
|
+
type: HostBinding,
|
|
1813
|
+
args: ['class']
|
|
1827
1814
|
}] } });
|
|
1828
1815
|
|
|
1829
1816
|
class AXDrawerContainerComponent extends AXBaseComponentMixin {
|
|
1830
|
-
constructor(elementRef, cdr,
|
|
1817
|
+
constructor(elementRef, cdr, _zone) {
|
|
1831
1818
|
super(elementRef, cdr);
|
|
1832
|
-
this.
|
|
1833
|
-
}
|
|
1834
|
-
onViewInit() {
|
|
1835
|
-
this._updateWidth();
|
|
1836
|
-
// add animation
|
|
1837
|
-
// setTimeout(() => {
|
|
1838
|
-
// this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
|
|
1839
|
-
// c.classList.add('ax-animated');
|
|
1840
|
-
// });
|
|
1841
|
-
// }, 100);
|
|
1842
|
-
this.drawers.forEach(c => {
|
|
1843
|
-
c.onChanged.subscribe(c => {
|
|
1844
|
-
this._updateWidth();
|
|
1845
|
-
});
|
|
1846
|
-
});
|
|
1819
|
+
this._zone = _zone;
|
|
1847
1820
|
}
|
|
1848
|
-
|
|
1849
|
-
this.
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
this._getHostElement().querySelectorAll('ax-drawer').forEach(c => {
|
|
1854
|
-
const elm = c;
|
|
1855
|
-
const width = elm.getBoundingClientRect().width;
|
|
1856
|
-
const height = elm.getBoundingClientRect().height;
|
|
1857
|
-
const overflow = parentWidth < width;
|
|
1858
|
-
const diff = width - parentWidth;
|
|
1859
|
-
w += ['ax-expanded', 'ax-drawer-push'].every(c => elm.classList.contains(c)) ? width : 0;
|
|
1860
|
-
elm.style.setProperty('--attr-width', `${width}px`);
|
|
1861
|
-
elm.style.setProperty('--attr-height', `${height}px`);
|
|
1862
|
-
//TODO check overflow
|
|
1863
|
-
elm.style.setProperty('--attr-diff', `${overflow ? diff : 0}px`);
|
|
1864
|
-
});
|
|
1865
|
-
container.style.setProperty('--attr-content-width', `${parentWidth - w}px`);
|
|
1866
|
-
});
|
|
1821
|
+
ngDoCheck() {
|
|
1822
|
+
const host = this._getHostElement();
|
|
1823
|
+
Array.from(host.querySelectorAll('ax-drawer'))
|
|
1824
|
+
.map(c => c['__axContext__'])
|
|
1825
|
+
.some(c => !c?.collapsed) ? host.classList.add('ax-visible') : host.classList.remove('ax-visible');
|
|
1867
1826
|
}
|
|
1868
1827
|
}
|
|
1869
1828
|
AXDrawerContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContainerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1870
|
-
AXDrawerContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDrawerContainerComponent, selector: "ax-drawer-container",
|
|
1871
|
-
<ng-content select="ax-drawer[location='
|
|
1829
|
+
AXDrawerContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDrawerContainerComponent, selector: "ax-drawer-container", usesInheritance: true, ngImport: i0, template: `
|
|
1830
|
+
<ng-content select="ax-drawer[location='start']" >
|
|
1872
1831
|
</ng-content>
|
|
1873
|
-
<ng-content select="ax-
|
|
1874
|
-
</ng-content>
|
|
1875
|
-
<ng-content select="ax-drawer-content">
|
|
1832
|
+
<ng-content select="ax-content">
|
|
1876
1833
|
</ng-content>
|
|
1877
1834
|
<ng-content select="ax-drawer[location='end']">
|
|
1878
1835
|
</ng-content>
|
|
1879
|
-
|
|
1880
|
-
</ng-content>
|
|
1836
|
+
|
|
1881
1837
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1882
1838
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContainerComponent, decorators: [{
|
|
1883
1839
|
type: Component,
|
|
1884
1840
|
args: [{
|
|
1885
1841
|
selector: 'ax-drawer-container',
|
|
1886
1842
|
template: `
|
|
1887
|
-
<ng-content select="ax-drawer[location='
|
|
1843
|
+
<ng-content select="ax-drawer[location='start']" >
|
|
1888
1844
|
</ng-content>
|
|
1889
|
-
<ng-content select="ax-
|
|
1890
|
-
</ng-content>
|
|
1891
|
-
<ng-content select="ax-drawer-content">
|
|
1845
|
+
<ng-content select="ax-content">
|
|
1892
1846
|
</ng-content>
|
|
1893
1847
|
<ng-content select="ax-drawer[location='end']">
|
|
1894
1848
|
</ng-content>
|
|
1895
|
-
|
|
1896
|
-
</ng-content>
|
|
1849
|
+
|
|
1897
1850
|
`,
|
|
1898
|
-
inputs: ['rtl'],
|
|
1899
1851
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1900
1852
|
encapsulation: ViewEncapsulation.None,
|
|
1901
|
-
host: { class: 'ax-drawer-container' }
|
|
1902
1853
|
}]
|
|
1903
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; }
|
|
1904
|
-
type: ContentChildren,
|
|
1905
|
-
args: [AXDrawerComponent]
|
|
1906
|
-
}] } });
|
|
1854
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }]; } });
|
|
1907
1855
|
|
|
1908
|
-
|
|
1909
|
-
constructor(elementRef, cdr) {
|
|
1910
|
-
super(elementRef, cdr);
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
|
-
AXDrawerContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContentComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1914
|
-
AXDrawerContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDrawerContentComponent, selector: "ax-drawer-content", host: { classAttribute: "ax-drawer-content" }, usesInheritance: true, ngImport: i0, template: `
|
|
1915
|
-
<ng-content>
|
|
1916
|
-
</ng-content>
|
|
1917
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1918
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerContentComponent, decorators: [{
|
|
1919
|
-
type: Component,
|
|
1920
|
-
args: [{
|
|
1921
|
-
selector: 'ax-drawer-content',
|
|
1922
|
-
template: `
|
|
1923
|
-
<ng-content>
|
|
1924
|
-
</ng-content>
|
|
1925
|
-
`,
|
|
1926
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1927
|
-
encapsulation: ViewEncapsulation.None,
|
|
1928
|
-
host: { class: 'ax-drawer-content' }
|
|
1929
|
-
}]
|
|
1930
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
1931
|
-
|
|
1932
|
-
const COMPONENT$o = [AXDrawerComponent, AXDrawerContainerComponent, AXDrawerContentComponent];
|
|
1856
|
+
const COMPONENT$o = [AXDrawerComponent, AXDrawerContainerComponent];
|
|
1933
1857
|
const MODULES$o = [CommonModule];
|
|
1934
1858
|
class AXDrawerModule {
|
|
1935
1859
|
}
|
|
1936
1860
|
AXDrawerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1937
|
-
AXDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, declarations: [AXDrawerComponent, AXDrawerContainerComponent
|
|
1861
|
+
AXDrawerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, declarations: [AXDrawerComponent, AXDrawerContainerComponent], imports: [CommonModule], exports: [AXDrawerComponent, AXDrawerContainerComponent] });
|
|
1938
1862
|
AXDrawerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, providers: [], imports: [[...MODULES$o]] });
|
|
1939
1863
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDrawerModule, decorators: [{
|
|
1940
1864
|
type: NgModule,
|
|
@@ -2187,16 +2111,14 @@ class AXDecoratorHeaderComponent extends AXBaseComponentMixin {
|
|
|
2187
2111
|
}
|
|
2188
2112
|
AXDecoratorHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorHeaderComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2189
2113
|
AXDecoratorHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorHeaderComponent, selector: "ax-header", usesInheritance: true, ngImport: i0, template: `
|
|
2190
|
-
<ng-content>
|
|
2191
|
-
</ng-content>
|
|
2114
|
+
<ng-content select="ax-suffix,ax-prefix,ax-button,ax-icon,ax-title,ax-close-button,ng-container,ng-content"></ng-content>
|
|
2192
2115
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2193
2116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorHeaderComponent, decorators: [{
|
|
2194
2117
|
type: Component,
|
|
2195
2118
|
args: [{
|
|
2196
2119
|
selector: 'ax-header',
|
|
2197
2120
|
template: `
|
|
2198
|
-
<ng-content>
|
|
2199
|
-
</ng-content>
|
|
2121
|
+
<ng-content select="ax-suffix,ax-prefix,ax-button,ax-icon,ax-title,ax-close-button,ng-container,ng-content"></ng-content>
|
|
2200
2122
|
`,
|
|
2201
2123
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2202
2124
|
encapsulation: ViewEncapsulation.None,
|
|
@@ -2210,7 +2132,7 @@ class AXDecoratorPrefixComponent extends AXBaseComponentMixin {
|
|
|
2210
2132
|
}
|
|
2211
2133
|
AXDecoratorPrefixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorPrefixComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2212
2134
|
AXDecoratorPrefixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorPrefixComponent, selector: "ax-prefix", usesInheritance: true, ngImport: i0, template: `
|
|
2213
|
-
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
|
|
2135
|
+
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon,ax-title,ng-container">
|
|
2214
2136
|
</ng-content>
|
|
2215
2137
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2216
2138
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorPrefixComponent, decorators: [{
|
|
@@ -2218,7 +2140,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2218
2140
|
args: [{
|
|
2219
2141
|
selector: 'ax-prefix',
|
|
2220
2142
|
template: `
|
|
2221
|
-
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
|
|
2143
|
+
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon,ax-title,ng-container">
|
|
2222
2144
|
</ng-content>
|
|
2223
2145
|
`,
|
|
2224
2146
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -2233,7 +2155,7 @@ class AXDecoratorSuffixComponent extends AXBaseComponentMixin {
|
|
|
2233
2155
|
}
|
|
2234
2156
|
AXDecoratorSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorSuffixComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2235
2157
|
AXDecoratorSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorSuffixComponent, selector: "ax-suffix", usesInheritance: true, ngImport: i0, template: `
|
|
2236
|
-
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
|
|
2158
|
+
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon,ax-title,ax-alert-button,ng-container">
|
|
2237
2159
|
</ng-content>
|
|
2238
2160
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2239
2161
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorSuffixComponent, decorators: [{
|
|
@@ -2241,7 +2163,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2241
2163
|
args: [{
|
|
2242
2164
|
selector: 'ax-suffix',
|
|
2243
2165
|
template: `
|
|
2244
|
-
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon">
|
|
2166
|
+
<ng-content select="ax-button,ax-loading,ax-icon,ax-content,ax-badge,ax-addon,ax-title,ax-alert-button,ng-container">
|
|
2245
2167
|
</ng-content>
|
|
2246
2168
|
`,
|
|
2247
2169
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
@@ -2249,24 +2171,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2249
2171
|
}]
|
|
2250
2172
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2251
2173
|
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2174
|
+
class AXDecoratorFooterComponent extends AXBaseComponentMixin {
|
|
2175
|
+
constructor(elementRef, cdr) {
|
|
2176
|
+
super(elementRef, cdr);
|
|
2177
|
+
}
|
|
2255
2178
|
}
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2179
|
+
AXDecoratorFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorFooterComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2180
|
+
AXDecoratorFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorFooterComponent, selector: "ax-footer", usesInheritance: true, ngImport: i0, template: `
|
|
2181
|
+
<ng-content select="ax-suffix,ax-prefix,ax-button,ax-title,ax-close-button,ng-container"></ng-content>
|
|
2182
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorFooterComponent, decorators: [{
|
|
2184
|
+
type: Component,
|
|
2261
2185
|
args: [{
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2186
|
+
selector: 'ax-footer',
|
|
2187
|
+
template: `
|
|
2188
|
+
<ng-content select="ax-suffix,ax-prefix,ax-button,ax-title,ax-close-button,ng-container"></ng-content>
|
|
2189
|
+
`,
|
|
2190
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2191
|
+
encapsulation: ViewEncapsulation.None,
|
|
2266
2192
|
}]
|
|
2267
|
-
}] });
|
|
2193
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
2268
2194
|
|
|
2269
|
-
class
|
|
2195
|
+
class AXDecoratorIconComponent extends AXSizableComponentMixin {
|
|
2270
2196
|
constructor(elementRef, cdr) {
|
|
2271
2197
|
super(elementRef, cdr);
|
|
2272
2198
|
}
|
|
@@ -2274,9 +2200,9 @@ class AXIconComponent extends AXSizableComponentMixin {
|
|
|
2274
2200
|
return `ax-ic ${this.icon}`;
|
|
2275
2201
|
}
|
|
2276
2202
|
}
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type:
|
|
2203
|
+
AXDecoratorIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorIconComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2204
|
+
AXDecoratorIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorIconComponent, selector: "ax-icon", inputs: { icon: "icon" }, host: { properties: { "class": "this.__iconClass" } }, usesInheritance: true, ngImport: i0, template: '<ng-content select="i,svg,img"></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorIconComponent, decorators: [{
|
|
2280
2206
|
type: Component,
|
|
2281
2207
|
args: [{
|
|
2282
2208
|
selector: 'ax-icon',
|
|
@@ -2291,44 +2217,125 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2291
2217
|
args: ['class']
|
|
2292
2218
|
}] } });
|
|
2293
2219
|
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2220
|
+
class AXDecoratorTitleComponent extends AXBaseComponentMixin {
|
|
2221
|
+
constructor(_elementRef, _cdr) {
|
|
2222
|
+
super(_elementRef, _cdr);
|
|
2223
|
+
this.text = null;
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
AXDecoratorTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorTitleComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2227
|
+
AXDecoratorTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorTitleComponent, selector: "ax-title", inputs: { text: "text" }, usesInheritance: true, ngImport: i0, template: ` <h4 *ngIf="text">{{text}}</h4><ng-container><ng-content *ngIf="!text"></ng-content></ng-container>`, isInline: true, directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2228
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorTitleComponent, decorators: [{
|
|
2229
|
+
type: Component,
|
|
2230
|
+
args: [{
|
|
2231
|
+
selector: 'ax-title',
|
|
2232
|
+
template: ` <h4 *ngIf="text">{{text}}</h4><ng-container><ng-content *ngIf="!text"></ng-content></ng-container>`,
|
|
2233
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2234
|
+
encapsulation: ViewEncapsulation.None
|
|
2235
|
+
}]
|
|
2236
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
|
|
2237
|
+
type: Input
|
|
2238
|
+
}] } });
|
|
2239
|
+
|
|
2240
|
+
class AXDecoratorCloseButtonComponent extends AXBaseComponentMixin {
|
|
2241
|
+
constructor(_elementRef, _cdr, _parent) {
|
|
2242
|
+
super(_elementRef, _cdr);
|
|
2243
|
+
this._parent = _parent;
|
|
2244
|
+
this._icon = 'ax-ic-close';
|
|
2245
|
+
}
|
|
2246
|
+
get icon() {
|
|
2247
|
+
return this._icon || 'ax-ic-close';
|
|
2248
|
+
}
|
|
2249
|
+
set icon(v) {
|
|
2250
|
+
this._icon = v;
|
|
2251
|
+
}
|
|
2252
|
+
_handleOnClick(e) {
|
|
2253
|
+
this._parent?.close();
|
|
2254
|
+
}
|
|
2297
2255
|
}
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2256
|
+
AXDecoratorCloseButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorCloseButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXClosbaleComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
2257
|
+
AXDecoratorCloseButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: { icon: "icon" }, usesInheritance: true, ngImport: i0, template: `<ax-icon [icon]="icon" (click)="_handleOnClick($event)" tabindex="1"></ax-icon>`, isInline: true, components: [{ type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2258
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorCloseButtonComponent, decorators: [{
|
|
2259
|
+
type: Component,
|
|
2260
|
+
args: [{
|
|
2261
|
+
selector: 'ax-close-button',
|
|
2262
|
+
template: `<ax-icon [icon]="icon" (click)="_handleOnClick($event)" tabindex="1"></ax-icon>`,
|
|
2263
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2264
|
+
encapsulation: ViewEncapsulation.None
|
|
2265
|
+
}]
|
|
2266
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXClosbaleComponent, decorators: [{
|
|
2267
|
+
type: Optional
|
|
2268
|
+
}, {
|
|
2269
|
+
type: Inject,
|
|
2270
|
+
args: [AXClosbaleComponent]
|
|
2271
|
+
}] }]; }, propDecorators: { icon: [{
|
|
2272
|
+
type: Input
|
|
2273
|
+
}] } });
|
|
2274
|
+
|
|
2275
|
+
const COMPONENT$n = [
|
|
2276
|
+
AXDecoratorPrefixComponent,
|
|
2277
|
+
AXDecoratorSuffixComponent,
|
|
2278
|
+
AXDecoratorContentComponent,
|
|
2279
|
+
AXDecoratorHeaderComponent,
|
|
2280
|
+
AXDecoratorFooterComponent,
|
|
2281
|
+
AXDecoratorAddOnComponent,
|
|
2282
|
+
AXDecoratorIconComponent,
|
|
2283
|
+
AXDecoratorTitleComponent,
|
|
2284
|
+
AXDecoratorCloseButtonComponent
|
|
2285
|
+
];
|
|
2286
|
+
const MODULES$n = [CommonModule];
|
|
2287
|
+
class AXDecoratorModule {
|
|
2288
|
+
}
|
|
2289
|
+
AXDecoratorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2290
|
+
AXDecoratorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorModule, declarations: [AXDecoratorPrefixComponent,
|
|
2291
|
+
AXDecoratorSuffixComponent,
|
|
2292
|
+
AXDecoratorContentComponent,
|
|
2293
|
+
AXDecoratorHeaderComponent,
|
|
2294
|
+
AXDecoratorFooterComponent,
|
|
2295
|
+
AXDecoratorAddOnComponent,
|
|
2296
|
+
AXDecoratorIconComponent,
|
|
2297
|
+
AXDecoratorTitleComponent,
|
|
2298
|
+
AXDecoratorCloseButtonComponent], imports: [CommonModule], exports: [AXDecoratorPrefixComponent,
|
|
2299
|
+
AXDecoratorSuffixComponent,
|
|
2300
|
+
AXDecoratorContentComponent,
|
|
2301
|
+
AXDecoratorHeaderComponent,
|
|
2302
|
+
AXDecoratorFooterComponent,
|
|
2303
|
+
AXDecoratorAddOnComponent,
|
|
2304
|
+
AXDecoratorIconComponent,
|
|
2305
|
+
AXDecoratorTitleComponent,
|
|
2306
|
+
AXDecoratorCloseButtonComponent] });
|
|
2307
|
+
AXDecoratorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorModule, providers: [], imports: [[...MODULES$n]] });
|
|
2308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDecoratorModule, decorators: [{
|
|
2302
2309
|
type: NgModule,
|
|
2303
2310
|
args: [{
|
|
2304
|
-
declarations: [...COMPONENT$
|
|
2305
|
-
imports: [...MODULES$
|
|
2306
|
-
exports: [...COMPONENT$
|
|
2311
|
+
declarations: [...COMPONENT$n],
|
|
2312
|
+
imports: [...MODULES$n],
|
|
2313
|
+
exports: [...COMPONENT$n],
|
|
2307
2314
|
providers: [],
|
|
2308
2315
|
}]
|
|
2309
2316
|
}] });
|
|
2310
2317
|
|
|
2311
|
-
const COMPONENT$
|
|
2318
|
+
const COMPONENT$m = [
|
|
2312
2319
|
AXButtonComponent,
|
|
2313
2320
|
AXButtonItemComponent,
|
|
2314
2321
|
AXButtonGroupComponent,
|
|
2315
2322
|
];
|
|
2316
|
-
const MODULES$
|
|
2323
|
+
const MODULES$m = [CommonModule, AXDecoratorModule];
|
|
2317
2324
|
class AXButtonModule {
|
|
2318
2325
|
}
|
|
2319
2326
|
AXButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2320
2327
|
AXButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, declarations: [AXButtonComponent,
|
|
2321
2328
|
AXButtonItemComponent,
|
|
2322
|
-
AXButtonGroupComponent], imports: [CommonModule,
|
|
2329
|
+
AXButtonGroupComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXButtonComponent,
|
|
2323
2330
|
AXButtonItemComponent,
|
|
2324
2331
|
AXButtonGroupComponent] });
|
|
2325
|
-
AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$
|
|
2332
|
+
AXButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, providers: [], imports: [[MODULES$m]] });
|
|
2326
2333
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXButtonModule, decorators: [{
|
|
2327
2334
|
type: NgModule,
|
|
2328
2335
|
args: [{
|
|
2329
|
-
imports: [MODULES$
|
|
2330
|
-
exports: [COMPONENT$
|
|
2331
|
-
declarations: [COMPONENT$
|
|
2336
|
+
imports: [MODULES$m],
|
|
2337
|
+
exports: [COMPONENT$m],
|
|
2338
|
+
declarations: [COMPONENT$m],
|
|
2332
2339
|
providers: [],
|
|
2333
2340
|
}]
|
|
2334
2341
|
}] });
|
|
@@ -2361,25 +2368,32 @@ class AXAlertComponent extends AXBaseAlertMixin {
|
|
|
2361
2368
|
*/
|
|
2362
2369
|
constructor(elementRef, cdr) {
|
|
2363
2370
|
super(elementRef, cdr);
|
|
2364
|
-
this.showIcon = true;
|
|
2365
2371
|
_AXAlertComponent_visible.set(this, void 0);
|
|
2366
2372
|
}
|
|
2367
2373
|
_onOptionChanged(option) {
|
|
2368
2374
|
if (option.name == 'color') {
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2375
|
+
this._setIcon();
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
ngDoCheck() {
|
|
2379
|
+
this._setIcon();
|
|
2380
|
+
}
|
|
2381
|
+
_setIcon() {
|
|
2382
|
+
if (!this._icon || this._icon.icon)
|
|
2383
|
+
return;
|
|
2384
|
+
switch (this.color) {
|
|
2385
|
+
case 'success':
|
|
2386
|
+
this._icon.icon = 'ax-ic ax-ic-check-filled';
|
|
2387
|
+
break;
|
|
2388
|
+
case 'warning':
|
|
2389
|
+
this._icon.icon = 'ax-ic-warning-filled';
|
|
2390
|
+
break;
|
|
2391
|
+
case 'danger':
|
|
2392
|
+
this._icon.icon = 'ax-ic-error-filled';
|
|
2393
|
+
break;
|
|
2394
|
+
default:
|
|
2395
|
+
this._icon.icon = 'ax-ic ax-ic-info-filled';
|
|
2396
|
+
break;
|
|
2383
2397
|
}
|
|
2384
2398
|
}
|
|
2385
2399
|
/**
|
|
@@ -2421,6 +2435,9 @@ class AXAlertComponent extends AXBaseAlertMixin {
|
|
|
2421
2435
|
if (this.visible == undefined) {
|
|
2422
2436
|
this.visible = true;
|
|
2423
2437
|
}
|
|
2438
|
+
if (this._getHostElement().querySelector('ax-header')) {
|
|
2439
|
+
this._getHostElement().querySelector('.ax-alert-body').classList.add('ax-bg-black/10');
|
|
2440
|
+
}
|
|
2424
2441
|
}
|
|
2425
2442
|
/**
|
|
2426
2443
|
* Remove the alert from the container
|
|
@@ -2448,14 +2465,13 @@ class AXAlertComponent extends AXBaseAlertMixin {
|
|
|
2448
2465
|
}
|
|
2449
2466
|
_AXAlertComponent_visible = new WeakMap();
|
|
2450
2467
|
AXAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2451
|
-
AXAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertComponent, selector: "ax-alert", inputs: { color: "color", look: "look",
|
|
2468
|
+
AXAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertComponent, selector: "ax-alert", inputs: { color: "color", look: "look", timeOut: "timeOut", visible: "visible" }, host: { properties: { "class": "this.__hostClass" } }, queries: [{ propertyName: "_icon", first: true, predicate: AXDecoratorIconComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-header\">\r\n</ng-content>\r\n<div class=\"ax-alert-body\">\r\n <div class=\"ax-flex ax-items-center ax-justify-between\">\r\n <div class=\"ax-flex\">\r\n <ng-content select=\"ax-icon\">\r\n </ng-content>\r\n <div class=\"ax-flex ax-flex-col ax-justify-center\">\r\n <ng-content select=\"ax-content\">\r\n </ng-content>\r\n <ng-content select=\"ax-footer\">\r\n </ng-content>\r\n </div>\r\n </div>\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n </div>\r\n</div>\r\n\r\n<div class=\"ax-alert-progress\" [style.animation-duration.ms]=\"timeOut\" *ngIf=\"timeOut\">\r\n</div>", directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2452
2469
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertComponent, decorators: [{
|
|
2453
2470
|
type: Component,
|
|
2454
|
-
args: [{ selector: 'ax-alert', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...COLOR_LOOK_INPUTS], encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-alert-
|
|
2455
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
2456
|
-
type:
|
|
2457
|
-
|
|
2458
|
-
type: Input
|
|
2471
|
+
args: [{ selector: 'ax-alert', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...COLOR_LOOK_INPUTS], encapsulation: ViewEncapsulation.None, template: "<ng-content select=\"ax-header\">\r\n</ng-content>\r\n<div class=\"ax-alert-body\">\r\n <div class=\"ax-flex ax-items-center ax-justify-between\">\r\n <div class=\"ax-flex\">\r\n <ng-content select=\"ax-icon\">\r\n </ng-content>\r\n <div class=\"ax-flex ax-flex-col ax-justify-center\">\r\n <ng-content select=\"ax-content\">\r\n </ng-content>\r\n <ng-content select=\"ax-footer\">\r\n </ng-content>\r\n </div>\r\n </div>\r\n <ng-content select=\"ax-suffix\">\r\n </ng-content>\r\n </div>\r\n</div>\r\n\r\n<div class=\"ax-alert-progress\" [style.animation-duration.ms]=\"timeOut\" *ngIf=\"timeOut\">\r\n</div>" }]
|
|
2472
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { _icon: [{
|
|
2473
|
+
type: ContentChild,
|
|
2474
|
+
args: [AXDecoratorIconComponent]
|
|
2459
2475
|
}], __hostClass: [{
|
|
2460
2476
|
type: HostBinding,
|
|
2461
2477
|
args: ['class']
|
|
@@ -2465,27 +2481,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2465
2481
|
type: Input
|
|
2466
2482
|
}] } });
|
|
2467
2483
|
|
|
2468
|
-
class AXAlertTitleComponent {
|
|
2469
|
-
}
|
|
2470
|
-
AXAlertTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2471
|
-
AXAlertTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertTitleComponent, selector: "ax-alert-title", host: { classAttribute: "ax-alert-title" }, ngImport: i0, template: `
|
|
2472
|
-
<ng-content>
|
|
2473
|
-
</ng-content>
|
|
2474
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2475
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertTitleComponent, decorators: [{
|
|
2476
|
-
type: Component,
|
|
2477
|
-
args: [{
|
|
2478
|
-
selector: 'ax-alert-title',
|
|
2479
|
-
template: `
|
|
2480
|
-
<ng-content>
|
|
2481
|
-
</ng-content>
|
|
2482
|
-
`,
|
|
2483
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2484
|
-
encapsulation: ViewEncapsulation.None,
|
|
2485
|
-
host: { class: 'ax-alert-title' }
|
|
2486
|
-
}]
|
|
2487
|
-
}] });
|
|
2488
|
-
|
|
2489
2484
|
class AXAlertButtonComponent extends AXBaseClickableMixin {
|
|
2490
2485
|
constructor(elementRef, cdr) {
|
|
2491
2486
|
super(elementRef, cdr);
|
|
@@ -2501,7 +2496,7 @@ class AXAlertButtonComponent extends AXBaseClickableMixin {
|
|
|
2501
2496
|
}
|
|
2502
2497
|
}
|
|
2503
2498
|
AXAlertButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2504
|
-
AXAlertButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertButtonComponent, selector: "ax-alert-button", inputs: { text: "text", icon: "icon" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onClick: "onClick", selectedChange: "selectedChange", toggleableChange: "toggleableChange" }, host: { listeners: { "click": "_handleOnClick($event)", "focus": "_handleOnFocus($event)", "blur": "_handleOnBlur($event)" }
|
|
2499
|
+
AXAlertButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertButtonComponent, selector: "ax-alert-button", inputs: { text: "text", icon: "icon" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onClick: "onClick", selectedChange: "selectedChange", toggleableChange: "toggleableChange" }, host: { listeners: { "click": "_handleOnClick($event)", "focus": "_handleOnFocus($event)", "blur": "_handleOnBlur($event)" } }, usesInheritance: true, ngImport: i0, template: `
|
|
2505
2500
|
{{text}}
|
|
2506
2501
|
<ng-content select="ax-icon"></ng-content>
|
|
2507
2502
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
@@ -2516,7 +2511,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2516
2511
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2517
2512
|
encapsulation: ViewEncapsulation.None,
|
|
2518
2513
|
outputs: [...BUTTON_OUTPUT],
|
|
2519
|
-
host: { class: 'ax-alert-button' }
|
|
2520
2514
|
}]
|
|
2521
2515
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { text: [{
|
|
2522
2516
|
type: Input
|
|
@@ -2533,105 +2527,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2533
2527
|
args: ['blur', ['$event']]
|
|
2534
2528
|
}] } });
|
|
2535
2529
|
|
|
2536
|
-
|
|
2537
|
-
}
|
|
2538
|
-
AXAlertContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2539
|
-
AXAlertContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertContentComponent, selector: "ax-alert-content", host: { classAttribute: "ax-alert-content" }, ngImport: i0, template: `<ng-content>
|
|
2540
|
-
</ng-content>
|
|
2541
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2542
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertContentComponent, decorators: [{
|
|
2543
|
-
type: Component,
|
|
2544
|
-
args: [{
|
|
2545
|
-
selector: 'ax-alert-content',
|
|
2546
|
-
template: `<ng-content>
|
|
2547
|
-
</ng-content>
|
|
2548
|
-
`,
|
|
2549
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2550
|
-
encapsulation: ViewEncapsulation.None,
|
|
2551
|
-
host: { class: 'ax-alert-content' }
|
|
2552
|
-
}]
|
|
2553
|
-
}] });
|
|
2554
|
-
|
|
2555
|
-
class AXAlertSuffixComponent {
|
|
2556
|
-
}
|
|
2557
|
-
AXAlertSuffixComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2558
|
-
AXAlertSuffixComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertSuffixComponent, selector: "ax-alert-suffix", host: { classAttribute: "ax-alert-suffix" }, ngImport: i0, template: `
|
|
2559
|
-
<div class="ax-alert-buttons">
|
|
2560
|
-
<ng-content select="ax-alert-button">
|
|
2561
|
-
</ng-content>
|
|
2562
|
-
</div>
|
|
2563
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertSuffixComponent, decorators: [{
|
|
2565
|
-
type: Component,
|
|
2566
|
-
args: [{
|
|
2567
|
-
selector: 'ax-alert-suffix',
|
|
2568
|
-
template: `
|
|
2569
|
-
<div class="ax-alert-buttons">
|
|
2570
|
-
<ng-content select="ax-alert-button">
|
|
2571
|
-
</ng-content>
|
|
2572
|
-
</div>
|
|
2573
|
-
`,
|
|
2574
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2575
|
-
encapsulation: ViewEncapsulation.None,
|
|
2576
|
-
host: { class: 'ax-alert-suffix' }
|
|
2577
|
-
}]
|
|
2578
|
-
}] });
|
|
2579
|
-
|
|
2580
|
-
class AXAlertFooterComponent {
|
|
2581
|
-
}
|
|
2582
|
-
AXAlertFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2583
|
-
AXAlertFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXAlertFooterComponent, selector: "ax-alert-footer", host: { classAttribute: "ax-alert-footer" }, ngImport: i0, template: `
|
|
2584
|
-
<div class="ax-alert-buttons">
|
|
2585
|
-
<ng-content select="ax-alert-button">
|
|
2586
|
-
</ng-content>
|
|
2587
|
-
</div>
|
|
2588
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2589
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertFooterComponent, decorators: [{
|
|
2590
|
-
type: Component,
|
|
2591
|
-
args: [{
|
|
2592
|
-
selector: 'ax-alert-footer',
|
|
2593
|
-
template: `
|
|
2594
|
-
<div class="ax-alert-buttons">
|
|
2595
|
-
<ng-content select="ax-alert-button">
|
|
2596
|
-
</ng-content>
|
|
2597
|
-
</div>
|
|
2598
|
-
`,
|
|
2599
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
2600
|
-
encapsulation: ViewEncapsulation.None,
|
|
2601
|
-
host: { class: 'ax-alert-footer' }
|
|
2602
|
-
}]
|
|
2603
|
-
}] });
|
|
2604
|
-
|
|
2605
|
-
const COMPONENT$k = [
|
|
2530
|
+
const COMPONENT$l = [
|
|
2606
2531
|
AXAlertComponent,
|
|
2607
|
-
|
|
2608
|
-
AXAlertTitleComponent,
|
|
2609
|
-
AXAlertButtonComponent,
|
|
2610
|
-
AXAlertFooterComponent,
|
|
2611
|
-
AXAlertSuffixComponent
|
|
2532
|
+
AXAlertButtonComponent
|
|
2612
2533
|
];
|
|
2613
|
-
const MODULES$
|
|
2534
|
+
const MODULES$l = [CommonModule, AXDecoratorModule];
|
|
2614
2535
|
class AXAlertModule {
|
|
2615
2536
|
}
|
|
2616
2537
|
AXAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2617
2538
|
AXAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, declarations: [AXAlertComponent,
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
AXAlertFooterComponent,
|
|
2622
|
-
AXAlertSuffixComponent], imports: [CommonModule, AXIconModule], exports: [AXAlertComponent,
|
|
2623
|
-
AXAlertContentComponent,
|
|
2624
|
-
AXAlertTitleComponent,
|
|
2625
|
-
AXAlertButtonComponent,
|
|
2626
|
-
AXAlertFooterComponent,
|
|
2627
|
-
AXAlertSuffixComponent] });
|
|
2628
|
-
AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$k]] });
|
|
2539
|
+
AXAlertButtonComponent], imports: [CommonModule, AXDecoratorModule], exports: [AXAlertComponent,
|
|
2540
|
+
AXAlertButtonComponent] });
|
|
2541
|
+
AXAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, providers: [], imports: [[...MODULES$l]] });
|
|
2629
2542
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAlertModule, decorators: [{
|
|
2630
2543
|
type: NgModule,
|
|
2631
2544
|
args: [{
|
|
2632
|
-
declarations: [...COMPONENT$
|
|
2633
|
-
imports: [...MODULES$
|
|
2634
|
-
exports: [...COMPONENT$
|
|
2545
|
+
declarations: [...COMPONENT$l],
|
|
2546
|
+
imports: [...MODULES$l],
|
|
2547
|
+
exports: [...COMPONENT$l],
|
|
2635
2548
|
providers: [],
|
|
2636
2549
|
}]
|
|
2637
2550
|
}] });
|
|
@@ -2688,19 +2601,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2688
2601
|
args: ['class']
|
|
2689
2602
|
}] } });
|
|
2690
2603
|
|
|
2691
|
-
const COMPONENT$
|
|
2692
|
-
const MODULES$
|
|
2604
|
+
const COMPONENT$k = [AXAvatarComponent, AXAvatarGroup];
|
|
2605
|
+
const MODULES$k = [CommonModule];
|
|
2693
2606
|
class AXAvatarModule {
|
|
2694
2607
|
}
|
|
2695
2608
|
AXAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2696
2609
|
AXAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, declarations: [AXAvatarComponent, AXAvatarGroup], imports: [CommonModule], exports: [AXAvatarComponent, AXAvatarGroup] });
|
|
2697
|
-
AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$
|
|
2610
|
+
AXAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, providers: [], imports: [[...MODULES$k]] });
|
|
2698
2611
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXAvatarModule, decorators: [{
|
|
2699
2612
|
type: NgModule,
|
|
2700
2613
|
args: [{
|
|
2701
|
-
declarations: [...COMPONENT$
|
|
2702
|
-
imports: [...MODULES$
|
|
2703
|
-
exports: [...COMPONENT$
|
|
2614
|
+
declarations: [...COMPONENT$k],
|
|
2615
|
+
imports: [...MODULES$k],
|
|
2616
|
+
exports: [...COMPONENT$k],
|
|
2704
2617
|
providers: [],
|
|
2705
2618
|
}]
|
|
2706
2619
|
}] });
|
|
@@ -2729,19 +2642,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
2729
2642
|
args: ['class']
|
|
2730
2643
|
}] } });
|
|
2731
2644
|
|
|
2732
|
-
const COMPONENT$
|
|
2733
|
-
const MODULES$
|
|
2645
|
+
const COMPONENT$j = [AXBadgeComponent];
|
|
2646
|
+
const MODULES$j = [CommonModule];
|
|
2734
2647
|
class AXBadgeModule {
|
|
2735
2648
|
}
|
|
2736
2649
|
AXBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2737
2650
|
AXBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, declarations: [AXBadgeComponent], imports: [CommonModule], exports: [AXBadgeComponent] });
|
|
2738
|
-
AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$
|
|
2651
|
+
AXBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, providers: [], imports: [[...MODULES$j]] });
|
|
2739
2652
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXBadgeModule, decorators: [{
|
|
2740
2653
|
type: NgModule,
|
|
2741
2654
|
args: [{
|
|
2742
|
-
declarations: [...COMPONENT$
|
|
2743
|
-
imports: [...MODULES$
|
|
2744
|
-
exports: [...COMPONENT$
|
|
2655
|
+
declarations: [...COMPONENT$j],
|
|
2656
|
+
imports: [...MODULES$j],
|
|
2657
|
+
exports: [...COMPONENT$j],
|
|
2745
2658
|
providers: [],
|
|
2746
2659
|
}]
|
|
2747
2660
|
}] });
|
|
@@ -2916,47 +2829,281 @@ const CALENDAR_INPUTS = [
|
|
|
2916
2829
|
const CALENDAR_OUTPUTS = ['depthChange', 'typeChange', 'disabledDatesChange', 'holidayDatesChange', 'onNavigate'];
|
|
2917
2830
|
|
|
2918
2831
|
class AXPickerComponent extends AXBaseValueComponentMixin {
|
|
2919
|
-
/**
|
|
2920
|
-
* @ignore
|
|
2921
|
-
*/
|
|
2922
2832
|
constructor(elementRef, cdr) {
|
|
2923
2833
|
super(elementRef, cdr);
|
|
2924
|
-
this.
|
|
2834
|
+
this.cdr = cdr;
|
|
2925
2835
|
this.items = [];
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2836
|
+
this.OnChange = new EventEmitter();
|
|
2837
|
+
this.touchOrMouse = {
|
|
2838
|
+
isTouchable: 'ontouchstart' in window,
|
|
2839
|
+
isMouseDown: false
|
|
2840
|
+
};
|
|
2841
|
+
this.draggingInfo = {
|
|
2842
|
+
isDragging: false,
|
|
2843
|
+
groupIndex: null,
|
|
2844
|
+
startPageY: null
|
|
2845
|
+
};
|
|
2846
|
+
this.itemPerDegree = 23;
|
|
2847
|
+
this.safeDoTimeoutId = null;
|
|
2848
|
+
}
|
|
2849
|
+
ngOnInit() {
|
|
2850
|
+
this.currentIndexList = this.getInitialCurrentIndexList();
|
|
2851
|
+
this.lastCurrentIndexList = [].concat(this.currentIndexList);
|
|
2852
|
+
this.groupsRectList = new Array(this.items.length);
|
|
2853
|
+
this.eventsRegister();
|
|
2854
|
+
window.addEventListener('resize', this.safeGetRectsBindEvents.bind(this));
|
|
2855
|
+
}
|
|
2856
|
+
ngAfterViewInit() {
|
|
2857
|
+
this.getGroupsRectList();
|
|
2858
|
+
}
|
|
2859
|
+
ngOnDestroy() {
|
|
2860
|
+
window.removeEventListener('resize', this.safeGetRectsBindEvents.bind(this));
|
|
2861
|
+
}
|
|
2862
|
+
setGroupData(gIndex, groupData) {
|
|
2863
|
+
if (!this.currentIndexList) {
|
|
2864
|
+
this.currentIndexList = this.getInitialCurrentIndexList();
|
|
2865
|
+
}
|
|
2866
|
+
this.items[gIndex] = groupData;
|
|
2867
|
+
const iCI = groupData.currentIndex;
|
|
2868
|
+
let movedIndex = 0;
|
|
2869
|
+
if (typeof iCI === 'number' && iCI >= 0 && groupData.list && groupData.list.length && iCI <= groupData.list.length - 1) {
|
|
2870
|
+
movedIndex = Math.round(iCI);
|
|
2871
|
+
}
|
|
2872
|
+
this.currentIndexList[gIndex] = movedIndex;
|
|
2873
|
+
this.lastCurrentIndexList = [].concat(this.currentIndexList);
|
|
2874
|
+
}
|
|
2875
|
+
getInitialCurrentIndexList() {
|
|
2876
|
+
return this.items.map((item, index) => {
|
|
2877
|
+
const iCI = item.currentIndex;
|
|
2878
|
+
if (typeof iCI === 'number' && iCI >= 0 && item.list && item.list.length && iCI <= item.list.length - 1) {
|
|
2879
|
+
return Math.round(iCI);
|
|
2880
|
+
}
|
|
2881
|
+
return 0;
|
|
2882
|
+
});
|
|
2930
2883
|
}
|
|
2931
|
-
|
|
2884
|
+
safeGetRectsBindEvents() {
|
|
2885
|
+
if (this.safeDoTimeoutId) {
|
|
2886
|
+
clearTimeout(this.safeDoTimeoutId);
|
|
2887
|
+
}
|
|
2888
|
+
this.safeDoTimeoutId = setTimeout(() => {
|
|
2889
|
+
this.getGroupsRectList();
|
|
2890
|
+
}, 200);
|
|
2932
2891
|
}
|
|
2933
|
-
|
|
2934
|
-
this.
|
|
2892
|
+
getGroupsRectList() {
|
|
2893
|
+
if (this.pickerGroupLayer) {
|
|
2894
|
+
this.pickerGroupLayer.toArray().forEach((item, index) => {
|
|
2895
|
+
this.groupsRectList[index] = item.nativeElement.getBoundingClientRect();
|
|
2896
|
+
});
|
|
2897
|
+
}
|
|
2935
2898
|
}
|
|
2936
|
-
|
|
2899
|
+
eventsRegister() {
|
|
2900
|
+
const handleEventLayer = this.pickerHandleLayer.nativeElement;
|
|
2901
|
+
if (handleEventLayer) {
|
|
2902
|
+
this.addEventsForElement(handleEventLayer);
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
addEventsForElement(el) {
|
|
2906
|
+
const _ = this.touchOrMouse.isTouchable;
|
|
2907
|
+
const eventHandlerList = [
|
|
2908
|
+
{ name: _ ? 'touchstart' : 'mousedown', handler: this.handleStart },
|
|
2909
|
+
{ name: _ ? 'touchmove' : 'mousemove', handler: this.handleMove },
|
|
2910
|
+
{ name: _ ? 'touchend' : 'mouseup', handler: this.handleEnd },
|
|
2911
|
+
{ name: _ ? 'touchcancel' : 'mouseleave', handler: this.handleCancel }
|
|
2912
|
+
];
|
|
2913
|
+
eventHandlerList.forEach((item, index) => {
|
|
2914
|
+
el.removeEventListener(item.name, item.handler, false);
|
|
2915
|
+
el.addEventListener(item.name, item.handler.bind(this), false);
|
|
2916
|
+
});
|
|
2917
|
+
}
|
|
2918
|
+
triggerMiddleLayerGroupClick(gIndex) {
|
|
2919
|
+
const data = this.items;
|
|
2920
|
+
if (typeof gIndex === 'number' && typeof data[gIndex].onClick === 'function') {
|
|
2921
|
+
data[gIndex].onClick(gIndex, this.currentIndexList[gIndex]);
|
|
2922
|
+
}
|
|
2923
|
+
}
|
|
2924
|
+
triggerAboveLayerClick(ev, gIndex) {
|
|
2925
|
+
const movedIndex = this.currentIndexList[gIndex] + 1;
|
|
2926
|
+
this.currentIndexList[gIndex] = movedIndex;
|
|
2927
|
+
this.correctionCurrentIndex(ev, gIndex);
|
|
2928
|
+
}
|
|
2929
|
+
triggerMiddleLayerClick(ev, gIndex) {
|
|
2930
|
+
this.triggerMiddleLayerGroupClick(gIndex);
|
|
2931
|
+
}
|
|
2932
|
+
triggerBelowLayerClick(ev, gIndex) {
|
|
2933
|
+
const movedIndex = this.currentIndexList[gIndex] - 1;
|
|
2934
|
+
this.currentIndexList[gIndex] = movedIndex;
|
|
2935
|
+
this.correctionCurrentIndex(ev, gIndex);
|
|
2936
|
+
}
|
|
2937
|
+
getTouchInfo(ev) {
|
|
2938
|
+
return this.touchOrMouse.isTouchable ? ev.changedTouches[0] || ev.touches[0] : ev;
|
|
2939
|
+
}
|
|
2940
|
+
getGroupIndexBelongsEvent(ev) {
|
|
2941
|
+
const touchInfo = this.getTouchInfo(ev);
|
|
2942
|
+
for (let i = 0; i < this.groupsRectList.length; i++) {
|
|
2943
|
+
const item = this.groupsRectList[i];
|
|
2944
|
+
if (item.left < touchInfo.pageX && touchInfo.pageX < item.right) {
|
|
2945
|
+
return i;
|
|
2946
|
+
}
|
|
2947
|
+
}
|
|
2948
|
+
return null;
|
|
2949
|
+
}
|
|
2950
|
+
handleEventClick(ev) {
|
|
2951
|
+
const gIndex = this.getGroupIndexBelongsEvent(ev);
|
|
2952
|
+
switch (ev.target.dataset.type) {
|
|
2953
|
+
case 'top':
|
|
2954
|
+
this.triggerAboveLayerClick(ev, gIndex);
|
|
2955
|
+
break;
|
|
2956
|
+
case 'middle':
|
|
2957
|
+
this.triggerMiddleLayerClick(ev, gIndex);
|
|
2958
|
+
break;
|
|
2959
|
+
case 'bottom':
|
|
2960
|
+
this.triggerBelowLayerClick(ev, gIndex);
|
|
2961
|
+
break;
|
|
2962
|
+
default:
|
|
2963
|
+
}
|
|
2964
|
+
}
|
|
2965
|
+
handleStart(ev) {
|
|
2966
|
+
if (ev.cancelable) {
|
|
2967
|
+
ev.preventDefault();
|
|
2968
|
+
ev.stopPropagation();
|
|
2969
|
+
}
|
|
2970
|
+
const touchInfo = this.getTouchInfo(ev);
|
|
2971
|
+
this.draggingInfo.startPageY = touchInfo.pageY;
|
|
2972
|
+
if (!this.touchOrMouse.isTouchable) {
|
|
2973
|
+
this.touchOrMouse.isMouseDown = true;
|
|
2974
|
+
}
|
|
2975
|
+
}
|
|
2976
|
+
handleMove(ev) {
|
|
2977
|
+
ev.preventDefault();
|
|
2978
|
+
ev.stopPropagation();
|
|
2979
|
+
if (this.touchOrMouse.isTouchable || this.touchOrMouse.isMouseDown) {
|
|
2980
|
+
this.draggingInfo.isDragging = true;
|
|
2981
|
+
this.setCurrentIndexOnMove(ev);
|
|
2982
|
+
}
|
|
2983
|
+
}
|
|
2984
|
+
handleEnd(ev) {
|
|
2985
|
+
ev.preventDefault();
|
|
2986
|
+
ev.stopPropagation();
|
|
2987
|
+
if (!this.draggingInfo.isDragging) {
|
|
2988
|
+
this.handleEventClick(ev);
|
|
2989
|
+
}
|
|
2990
|
+
this.draggingInfo.isDragging = false;
|
|
2991
|
+
this.touchOrMouse.isMouseDown = false;
|
|
2992
|
+
this.correctionAfterDragging(ev);
|
|
2993
|
+
}
|
|
2994
|
+
handleCancel(ev) {
|
|
2995
|
+
ev.preventDefault();
|
|
2996
|
+
ev.stopPropagation();
|
|
2997
|
+
if (this.touchOrMouse.isTouchable || this.touchOrMouse.isMouseDown) {
|
|
2998
|
+
this.correctionAfterDragging(ev);
|
|
2999
|
+
this.touchOrMouse.isMouseDown = false;
|
|
3000
|
+
this.draggingInfo.isDragging = false;
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
setCurrentIndexOnMove(ev) {
|
|
3004
|
+
const touchInfo = this.getTouchInfo(ev);
|
|
3005
|
+
if (this.draggingInfo.groupIndex === null) {
|
|
3006
|
+
this.draggingInfo.groupIndex = this.getGroupIndexBelongsEvent(ev);
|
|
3007
|
+
}
|
|
3008
|
+
const gIndex = this.draggingInfo.groupIndex;
|
|
3009
|
+
if (typeof gIndex === 'number' && (this.items[gIndex].divider || !this.items[gIndex].list)) {
|
|
3010
|
+
return;
|
|
3011
|
+
}
|
|
3012
|
+
const moveCount = (this.draggingInfo.startPageY - touchInfo.pageY) / 32;
|
|
3013
|
+
const movedIndex = this.currentIndexList[gIndex] + moveCount;
|
|
3014
|
+
this.currentIndexList[gIndex] = movedIndex;
|
|
3015
|
+
this.draggingInfo.startPageY = touchInfo.pageY;
|
|
3016
|
+
}
|
|
3017
|
+
correctionAfterDragging(ev) {
|
|
3018
|
+
const gIndex = this.draggingInfo.groupIndex;
|
|
3019
|
+
this.correctionCurrentIndex(ev, gIndex);
|
|
3020
|
+
this.draggingInfo.groupIndex = null;
|
|
3021
|
+
this.draggingInfo.startPageY = null;
|
|
3022
|
+
}
|
|
3023
|
+
correctionCurrentIndex(ev, gIndex) {
|
|
3024
|
+
setTimeout(() => {
|
|
3025
|
+
if (typeof gIndex === 'number' && this.items[gIndex].divider !== true && this.items[gIndex].list.length > 0) {
|
|
3026
|
+
const unsafeGroupIndex = this.currentIndexList[gIndex];
|
|
3027
|
+
let movedIndex = unsafeGroupIndex;
|
|
3028
|
+
if (unsafeGroupIndex > this.items[gIndex].list.length - 1) {
|
|
3029
|
+
movedIndex = this.items[gIndex].list.length - 1;
|
|
3030
|
+
}
|
|
3031
|
+
else if (unsafeGroupIndex < 0) {
|
|
3032
|
+
movedIndex = 0;
|
|
3033
|
+
}
|
|
3034
|
+
movedIndex = Math.round(movedIndex);
|
|
3035
|
+
this.currentIndexList[gIndex] = movedIndex;
|
|
3036
|
+
if (movedIndex !== this.lastCurrentIndexList[gIndex]) {
|
|
3037
|
+
this.OnChange.emit({ gIndex, iIndex: movedIndex });
|
|
3038
|
+
}
|
|
3039
|
+
this.lastCurrentIndexList = [].concat(this.currentIndexList);
|
|
3040
|
+
}
|
|
3041
|
+
}, 100);
|
|
3042
|
+
}
|
|
3043
|
+
isCurrentItem(gIndex, iIndex) {
|
|
3044
|
+
return this.currentIndexList[gIndex] === iIndex;
|
|
3045
|
+
}
|
|
3046
|
+
getCurrentIndexList() {
|
|
3047
|
+
return this.currentIndexList;
|
|
3048
|
+
}
|
|
3049
|
+
getGroupClass(gIndex) {
|
|
3050
|
+
const group = this.items[gIndex];
|
|
3051
|
+
const defaultWeightClass = 'weight-' + (group.weight || 1);
|
|
3052
|
+
const groupClass = [defaultWeightClass];
|
|
3053
|
+
if (group.className) {
|
|
3054
|
+
groupClass.push(group.className);
|
|
3055
|
+
}
|
|
3056
|
+
return groupClass;
|
|
3057
|
+
}
|
|
3058
|
+
getItemClass(gIndex, iIndex, isDivider = false) {
|
|
3059
|
+
const group = this.items[gIndex];
|
|
3060
|
+
const itemClass = [];
|
|
3061
|
+
if (!isDivider && this.isCurrentItem(gIndex, iIndex)) {
|
|
3062
|
+
itemClass.push('smooth-item-selected');
|
|
3063
|
+
}
|
|
3064
|
+
if (group.textAlign) {
|
|
3065
|
+
itemClass.push('text-' + group.textAlign);
|
|
3066
|
+
}
|
|
3067
|
+
return itemClass;
|
|
3068
|
+
}
|
|
3069
|
+
getItemStyle(gIndex, iIndex) {
|
|
3070
|
+
const gapCount = this.currentIndexList[gIndex] - iIndex;
|
|
3071
|
+
if (Math.abs(gapCount) < (90 / this.itemPerDegree)) {
|
|
3072
|
+
const rotateStyle = {
|
|
3073
|
+
transform: 'rotateX(' + gapCount * this.itemPerDegree + 'deg) translate3d(0, 0, 5.625em)',
|
|
3074
|
+
opacity: (1 - Math.abs(gapCount) / (90 / this.itemPerDegree)).toString()
|
|
3075
|
+
};
|
|
3076
|
+
if (!this.draggingInfo.isDragging) {
|
|
3077
|
+
rotateStyle['transition'] = 'transform 150ms ease-out';
|
|
3078
|
+
}
|
|
3079
|
+
return rotateStyle;
|
|
3080
|
+
}
|
|
3081
|
+
if (gapCount > 0) {
|
|
3082
|
+
return { transform: 'rotateX(90deg) translate3d(0, 0, 5.625em)' };
|
|
3083
|
+
}
|
|
3084
|
+
else {
|
|
3085
|
+
return { transform: 'rotateX(-90deg) translate3d(0, 0, 5.625em)' };
|
|
3086
|
+
}
|
|
2937
3087
|
}
|
|
2938
3088
|
}
|
|
2939
3089
|
AXPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2940
|
-
AXPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPickerComponent, selector: "ax-picker", inputs: { readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked",
|
|
3090
|
+
AXPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPickerComponent, selector: "ax-picker", inputs: { readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", items: "items" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", OnChange: "OnChange" }, host: { classAttribute: "ax-picker" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: TemplateRef, descendants: true }], viewQueries: [{ propertyName: "pickerHandleLayer", first: true, predicate: ["pickerHandleLayer"], descendants: true, static: true }, { propertyName: "pickerGroupLayer", predicate: ["pickerGroupLayer"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<!-- <ax-carousel [width]=\"width\" [height]=\"height\" [fixedWidth]=\"width\" [fixedHeight]=\"itemHeight\" [centered]=\"true\" [vertical]=\"true\" [loop]=\"false\" [wheel]=\"true\" (onSlideChanged)=\"_handleMoveChange($event)\">\r\n <ax-carousel-item class=\"ax-picker-item\" *ngFor=\"let item of items\">\r\n <ng-container [ngTemplateOutlet]=\"itemTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\r\n </ax-carousel-item>\r\n</ax-carousel> -->\r\n<div class=\"ng-data-picker flex-box\">\r\n\r\n <!-- picker-group-layer -->\r\n <div #pickerGroupLayer *ngFor=\"let group of items; let gI = index\" class=\"picker-group\" [ngClass]=\"getGroupClass(gI)\">\r\n\r\n <div class=\"picker-list\">\r\n <div *ngIf=\"group.divider else ngIfElse\" class=\"picker-item divider\" [ngClass]=\"getItemClass(gI, i, true)\">\r\n {{ group.text }}\r\n </div>\r\n\r\n <div #ngIfElse *ngFor=\"let item of group.list; let i = index\" class=\"picker-item\" [ngClass]=\"getItemClass(gI, i)\"\r\n [ngStyle]=\"getItemStyle(gI, i)\">\r\n {{ item.value || item }}\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div #pickerHandleLayer class=\"picker-handle-layer flex-box dir-column\">\r\n <div data-type=\"top\" class=\"picker-top weight-1\"></div>\r\n <div data-type=\"middle\" class=\"picker-middle\"></div>\r\n <div data-type=\"bottom\" class=\"picker-bottom weight-1\"></div>\r\n </div>\r\n\r\n</div>", directives: [{ type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
2941
3091
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPickerComponent, decorators: [{
|
|
2942
3092
|
type: Component,
|
|
2943
|
-
args: [{ selector: 'ax-picker', host: { class: 'ax-picker' }, inputs: [...VALUE_INPUTS], outputs: [...VALUE_OUTPUT], template: "<!-- <ax-carousel [width]=\"width\" [height]=\"height\" [fixedWidth]=\"width\" [fixedHeight]=\"itemHeight\" [centered]=\"true\" [vertical]=\"true\" [loop]=\"false\" [wheel]=\"true\" (onSlideChanged)=\"_handleMoveChange($event)\">\r\n <ax-carousel-item class=\"ax-picker-item\" *ngFor=\"let item of items\">\r\n <ng-container [ngTemplateOutlet]=\"itemTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\r\n </ax-carousel-item>\r\n</ax-carousel> -->\r\n
|
|
2944
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: {
|
|
3093
|
+
args: [{ selector: 'ax-picker', host: { class: 'ax-picker' }, inputs: [...VALUE_INPUTS], outputs: [...VALUE_OUTPUT], template: "<!-- <ax-carousel [width]=\"width\" [height]=\"height\" [fixedWidth]=\"width\" [fixedHeight]=\"itemHeight\" [centered]=\"true\" [vertical]=\"true\" [loop]=\"false\" [wheel]=\"true\" (onSlideChanged)=\"_handleMoveChange($event)\">\r\n <ax-carousel-item class=\"ax-picker-item\" *ngFor=\"let item of items\">\r\n <ng-container [ngTemplateOutlet]=\"itemTemplate\"\r\n [ngTemplateOutletContext]=\"{ $implicit: item }\"></ng-container>\r\n </ax-carousel-item>\r\n</ax-carousel> -->\r\n<div class=\"ng-data-picker flex-box\">\r\n\r\n <!-- picker-group-layer -->\r\n <div #pickerGroupLayer *ngFor=\"let group of items; let gI = index\" class=\"picker-group\" [ngClass]=\"getGroupClass(gI)\">\r\n\r\n <div class=\"picker-list\">\r\n <div *ngIf=\"group.divider else ngIfElse\" class=\"picker-item divider\" [ngClass]=\"getItemClass(gI, i, true)\">\r\n {{ group.text }}\r\n </div>\r\n\r\n <div #ngIfElse *ngFor=\"let item of group.list; let i = index\" class=\"picker-item\" [ngClass]=\"getItemClass(gI, i)\"\r\n [ngStyle]=\"getItemStyle(gI, i)\">\r\n {{ item.value || item }}\r\n </div>\r\n </div>\r\n\r\n </div>\r\n\r\n <div #pickerHandleLayer class=\"picker-handle-layer flex-box dir-column\">\r\n <div data-type=\"top\" class=\"picker-top weight-1\"></div>\r\n <div data-type=\"middle\" class=\"picker-middle\"></div>\r\n <div data-type=\"bottom\" class=\"picker-bottom weight-1\"></div>\r\n </div>\r\n\r\n</div>" }]
|
|
3094
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { pickerGroupLayer: [{
|
|
3095
|
+
type: ViewChildren,
|
|
3096
|
+
args: ['pickerGroupLayer']
|
|
3097
|
+
}], pickerHandleLayer: [{
|
|
2945
3098
|
type: ViewChild,
|
|
2946
|
-
args: ['
|
|
3099
|
+
args: ['pickerHandleLayer', { static: true }]
|
|
2947
3100
|
}], itemTemplate: [{
|
|
2948
3101
|
type: ContentChild,
|
|
2949
3102
|
args: [TemplateRef]
|
|
2950
|
-
}], rows: [{
|
|
2951
|
-
type: Input
|
|
2952
|
-
}], width: [{
|
|
2953
|
-
type: Input
|
|
2954
|
-
}], height: [{
|
|
2955
|
-
type: Input
|
|
2956
|
-
}], itemHeight: [{
|
|
2957
|
-
type: Input
|
|
2958
3103
|
}], items: [{
|
|
2959
3104
|
type: Input
|
|
3105
|
+
}], OnChange: [{
|
|
3106
|
+
type: Output
|
|
2960
3107
|
}] } });
|
|
2961
3108
|
|
|
2962
3109
|
const AXCalendarComponentMixin = _ClickableComponenetMixin(_InteractiveComponenetMixin(_ValueComponenetMixin(AXCalendarBaseComponent)));
|
|
@@ -3267,10 +3414,10 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
|
3267
3414
|
}
|
|
3268
3415
|
}
|
|
3269
3416
|
AXCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3270
|
-
AXCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXCalendarComponent, selector: "ax-calendar", inputs: { readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", disabled: "disabled", tabIndex: "tabIndex", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", type: "type", holidayDates: "holidayDates", interface: "interface" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", depthChange: "depthChange", typeChange: "typeChange", disabledDatesChange: "disabledDatesChange", holidayDatesChange: "holidayDatesChange", onNavigate: "onNavigate" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"interface === 'calendar'; else pickerTemplate\">\r\n <div class=\"ax-calendar-header\">\r\n <div>\r\n <ng-container *ngIf=\"activeView=='days'; else elseTemplate\">\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText.split(' ')[1]\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText.split(' ')[0]\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n </ng-template>\r\n </div>\r\n <div class=\"ax-flex\">\r\n <ax-button class=\"ax-prev-button\" color=\"light\" look=\"blank\" (onClick)=\"_handlePrevClick($event)\"\r\n [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button class=\"ax-next-button\" color=\"light\" look=\"blank\" (onClick)=\"_handleNextClick($event)\"\r\n [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax-rotate-90\"></ax-icon>\r\n\r\n </ax-prefix>\r\n </ax-button>\r\n </div>\r\n\r\n </div>\r\n <div class=\"ax-calendar-body\">\r\n <div [ngSwitch]=\"activeView\">\r\n <ng-container *ngSwitchCase=\"'years'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-year\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'months'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-month\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"ax-calendar-week\">\r\n <div *ngFor=\"let d of _dayNames\">{{d}}</div>\r\n </div>\r\n <div class=\"ax-calendar-slots ax-calendar-slots-day\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n <div class=\"ax-calendar-footer\">\r\n <ax-button class=\"dark:ax-text-danger\" [text]=\"_todayText\" color=\"dark\" look=\"blank\" size=\"sm\"\r\n (onClick)=\"_handleGoToday()\" [disabled]=\"disabled\"></ax-button>\r\n </div>\r\n</ng-container>\r\n<ng-template #pickerTemplate>\r\n <div class=\"ax-calendar-picker\">\r\n <ax-picker width=\"100%%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerYears\"\r\n (onValueChanged)=\"_handlePickerChange($event,'year')\">\r\n <ng-template let-item>\r\n {{item}}\r\n </ng-template>\r\n </ax-picker>\r\n <ax-picker width=\"100%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerMonths\"\r\n (onValueChanged)=\"_handlePickerChange($event,'month')\">\r\n <ng-template let-item>\r\n {{item.text}}\r\n </ng-template>\r\n </ax-picker>\r\n <ax-picker width=\"100%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerDays\"\r\n (onValueChanged)=\"_handlePickerChange($event,'day')\">\r\n <ng-template let-item>\r\n {{item}}\r\n </ng-template
|
|
3417
|
+
AXCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXCalendarComponent, selector: "ax-calendar", inputs: { readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", disabled: "disabled", tabIndex: "tabIndex", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", type: "type", holidayDates: "holidayDates", interface: "interface" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", depthChange: "depthChange", typeChange: "typeChange", disabledDatesChange: "disabledDatesChange", holidayDatesChange: "holidayDatesChange", onNavigate: "onNavigate" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"interface === 'calendar'; else pickerTemplate\">\r\n <div class=\"ax-calendar-header\">\r\n <div>\r\n <ng-container *ngIf=\"activeView=='days'; else elseTemplate\">\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText.split(' ')[1]\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText.split(' ')[0]\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n </ng-template>\r\n </div>\r\n <div class=\"ax-flex\">\r\n <ax-button class=\"ax-prev-button\" color=\"light\" look=\"blank\" (onClick)=\"_handlePrevClick($event)\"\r\n [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button class=\"ax-next-button\" color=\"light\" look=\"blank\" (onClick)=\"_handleNextClick($event)\"\r\n [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax-rotate-90\"></ax-icon>\r\n\r\n </ax-prefix>\r\n </ax-button>\r\n </div>\r\n\r\n </div>\r\n <div class=\"ax-calendar-body\">\r\n <div [ngSwitch]=\"activeView\">\r\n <ng-container *ngSwitchCase=\"'years'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-year\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'months'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-month\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"ax-calendar-week\">\r\n <div *ngFor=\"let d of _dayNames\">{{d}}</div>\r\n </div>\r\n <div class=\"ax-calendar-slots ax-calendar-slots-day\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n <div class=\"ax-calendar-footer\">\r\n <ax-button class=\"dark:ax-text-danger\" [text]=\"_todayText\" color=\"dark\" look=\"blank\" size=\"sm\"\r\n (onClick)=\"_handleGoToday()\" [disabled]=\"disabled\"></ax-button>\r\n </div>\r\n</ng-container>\r\n<ng-template #pickerTemplate>\r\n <div class=\"ax-calendar-picker\">\r\n <ax-picker></ax-picker>\r\n <!-- <ax-picker width=\"100%%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerYears\"\r\n (onValueChanged)=\"_handlePickerChange($event,'year')\">\r\n <ng-template let-item>\r\n {{item}}\r\n </ng-template>\r\n </ax-picker>\r\n <ax-picker width=\"100%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerMonths\"\r\n (onValueChanged)=\"_handlePickerChange($event,'month')\">\r\n <ng-template let-item>\r\n {{item.text}}\r\n </ng-template>\r\n </ax-picker>\r\n <ax-picker width=\"100%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerDays\"\r\n (onValueChanged)=\"_handlePickerChange($event,'day')\">\r\n <ng-template let-item>\r\n {{item}}\r\n </ng-template> \r\n </ax-picker>-->\r\n </div>\r\n</ng-template>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPickerComponent, selector: "ax-picker", inputs: ["readonly", "allowNull", "value", "debounceTime", "name", "checked", "items"], outputs: ["valueChange", "onValueChanged", "OnChange"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3271
3418
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarComponent, decorators: [{
|
|
3272
3419
|
type: Component,
|
|
3273
|
-
args: [{ selector: 'ax-calendar', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...VALUE_INPUTS, ...INTERACTIVE_INPUTS, ...CALENDAR_INPUTS], outputs: [...VALUE_OUTPUT, ...INTERACTIVE_OUTPUT, ...CALENDAR_OUTPUTS], encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"interface === 'calendar'; else pickerTemplate\">\r\n <div class=\"ax-calendar-header\">\r\n <div>\r\n <ng-container *ngIf=\"activeView=='days'; else elseTemplate\">\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText.split(' ')[1]\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText.split(' ')[0]\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n </ng-template>\r\n </div>\r\n <div class=\"ax-flex\">\r\n <ax-button class=\"ax-prev-button\" color=\"light\" look=\"blank\" (onClick)=\"_handlePrevClick($event)\"\r\n [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button class=\"ax-next-button\" color=\"light\" look=\"blank\" (onClick)=\"_handleNextClick($event)\"\r\n [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax-rotate-90\"></ax-icon>\r\n\r\n </ax-prefix>\r\n </ax-button>\r\n </div>\r\n\r\n </div>\r\n <div class=\"ax-calendar-body\">\r\n <div [ngSwitch]=\"activeView\">\r\n <ng-container *ngSwitchCase=\"'years'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-year\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'months'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-month\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"ax-calendar-week\">\r\n <div *ngFor=\"let d of _dayNames\">{{d}}</div>\r\n </div>\r\n <div class=\"ax-calendar-slots ax-calendar-slots-day\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n <div class=\"ax-calendar-footer\">\r\n <ax-button class=\"dark:ax-text-danger\" [text]=\"_todayText\" color=\"dark\" look=\"blank\" size=\"sm\"\r\n (onClick)=\"_handleGoToday()\" [disabled]=\"disabled\"></ax-button>\r\n </div>\r\n</ng-container>\r\n<ng-template #pickerTemplate>\r\n <div class=\"ax-calendar-picker\">\r\n <ax-picker width=\"100%%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerYears\"\r\n (onValueChanged)=\"_handlePickerChange($event,'year')\">\r\n <ng-template let-item>\r\n {{item}}\r\n </ng-template>\r\n </ax-picker>\r\n <ax-picker width=\"100%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerMonths\"\r\n (onValueChanged)=\"_handlePickerChange($event,'month')\">\r\n <ng-template let-item>\r\n {{item.text}}\r\n </ng-template>\r\n </ax-picker>\r\n <ax-picker width=\"100%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerDays\"\r\n (onValueChanged)=\"_handlePickerChange($event,'day')\">\r\n <ng-template let-item>\r\n {{item}}\r\n </ng-template
|
|
3420
|
+
args: [{ selector: 'ax-calendar', changeDetection: ChangeDetectionStrategy.OnPush, inputs: [...VALUE_INPUTS, ...INTERACTIVE_INPUTS, ...CALENDAR_INPUTS], outputs: [...VALUE_OUTPUT, ...INTERACTIVE_OUTPUT, ...CALENDAR_OUTPUTS], encapsulation: ViewEncapsulation.None, template: "<ng-container *ngIf=\"interface === 'calendar'; else pickerTemplate\">\r\n <div class=\"ax-calendar-header\">\r\n <div>\r\n <ng-container *ngIf=\"activeView=='days'; else elseTemplate\">\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText.split(' ')[1]\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText.split(' ')[0]\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <ax-button class=\"ax-nav-button\" [text]=\"_navText\" color=\"light\" look=\"blank\"\r\n (onClick)=\"_handleNavClick($event)\" [disabled]=\"disabled\">\r\n </ax-button>\r\n </ng-template>\r\n </div>\r\n <div class=\"ax-flex\">\r\n <ax-button class=\"ax-prev-button\" color=\"light\" look=\"blank\" (onClick)=\"_handlePrevClick($event)\"\r\n [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button class=\"ax-next-button\" color=\"light\" look=\"blank\" (onClick)=\"_handleNextClick($event)\"\r\n [disabled]=\"disabled\">\r\n <ax-prefix>\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax-rotate-90\"></ax-icon>\r\n\r\n </ax-prefix>\r\n </ax-button>\r\n </div>\r\n\r\n </div>\r\n <div class=\"ax-calendar-body\">\r\n <div [ngSwitch]=\"activeView\">\r\n <ng-container *ngSwitchCase=\"'years'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-year\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'months'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-month\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"ax-calendar-week\">\r\n <div *ngFor=\"let d of _dayNames\">{{d}}</div>\r\n </div>\r\n <div class=\"ax-calendar-slots ax-calendar-slots-day\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n <div class=\"ax-calendar-footer\">\r\n <ax-button class=\"dark:ax-text-danger\" [text]=\"_todayText\" color=\"dark\" look=\"blank\" size=\"sm\"\r\n (onClick)=\"_handleGoToday()\" [disabled]=\"disabled\"></ax-button>\r\n </div>\r\n</ng-container>\r\n<ng-template #pickerTemplate>\r\n <div class=\"ax-calendar-picker\">\r\n <ax-picker></ax-picker>\r\n <!-- <ax-picker width=\"100%%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerYears\"\r\n (onValueChanged)=\"_handlePickerChange($event,'year')\">\r\n <ng-template let-item>\r\n {{item}}\r\n </ng-template>\r\n </ax-picker>\r\n <ax-picker width=\"100%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerMonths\"\r\n (onValueChanged)=\"_handlePickerChange($event,'month')\">\r\n <ng-template let-item>\r\n {{item.text}}\r\n </ng-template>\r\n </ax-picker>\r\n <ax-picker width=\"100%\" height=\"300px\" itemHeight=\"48px\" [items]=\"_pickerDays\"\r\n (onValueChanged)=\"_handlePickerChange($event,'day')\">\r\n <ng-template let-item>\r\n {{item}}\r\n </ng-template> \r\n </ax-picker>-->\r\n </div>\r\n</ng-template>" }]
|
|
3274
3421
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { interface: [{
|
|
3275
3422
|
type: Input
|
|
3276
3423
|
}], __hostClass: [{
|
|
@@ -3946,19 +4093,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3946
4093
|
}]
|
|
3947
4094
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXCarouselComponent }]; } });
|
|
3948
4095
|
|
|
3949
|
-
const COMPONENT$
|
|
3950
|
-
const MODULES$
|
|
4096
|
+
const COMPONENT$i = [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent];
|
|
4097
|
+
const MODULES$i = [CommonModule];
|
|
3951
4098
|
class AXCarouselModule {
|
|
3952
4099
|
}
|
|
3953
4100
|
AXCarouselModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3954
4101
|
AXCarouselModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, declarations: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent], imports: [CommonModule], exports: [AXCarouselComponent, AXCarouselItemComponent, AXCarouselArrowsComponent, AXCarouselPagerComponent] });
|
|
3955
|
-
AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$
|
|
4102
|
+
AXCarouselModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, providers: [], imports: [[...MODULES$i]] });
|
|
3956
4103
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCarouselModule, decorators: [{
|
|
3957
4104
|
type: NgModule,
|
|
3958
4105
|
args: [{
|
|
3959
|
-
declarations: [...COMPONENT$
|
|
3960
|
-
imports: [...MODULES$
|
|
3961
|
-
exports: [...COMPONENT$
|
|
4106
|
+
declarations: [...COMPONENT$i],
|
|
4107
|
+
imports: [...MODULES$i],
|
|
4108
|
+
exports: [...COMPONENT$i],
|
|
3962
4109
|
providers: [],
|
|
3963
4110
|
}]
|
|
3964
4111
|
}] });
|
|
@@ -3978,19 +4125,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
3978
4125
|
}]
|
|
3979
4126
|
}] });
|
|
3980
4127
|
|
|
3981
|
-
const COMPONENT$
|
|
3982
|
-
const MODULES$
|
|
4128
|
+
const COMPONENT$h = [AXCalendarComponent];
|
|
4129
|
+
const MODULES$h = [CommonModule, AXButtonModule, AXDecoratorModule, AXDateTimeModule, AXPickerModule];
|
|
3983
4130
|
class AXCalendarModule {
|
|
3984
4131
|
}
|
|
3985
4132
|
AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3986
|
-
AXCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, declarations: [AXCalendarComponent], imports: [CommonModule, AXButtonModule,
|
|
3987
|
-
AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$
|
|
4133
|
+
AXCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, declarations: [AXCalendarComponent], imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXDateTimeModule, AXPickerModule], exports: [AXCalendarComponent] });
|
|
4134
|
+
AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, providers: [], imports: [[...MODULES$h]] });
|
|
3988
4135
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCalendarModule, decorators: [{
|
|
3989
4136
|
type: NgModule,
|
|
3990
4137
|
args: [{
|
|
3991
|
-
declarations: [...COMPONENT$
|
|
3992
|
-
imports: [...MODULES$
|
|
3993
|
-
exports: [...COMPONENT$
|
|
4138
|
+
declarations: [...COMPONENT$h],
|
|
4139
|
+
imports: [...MODULES$h],
|
|
4140
|
+
exports: [...COMPONENT$h],
|
|
3994
4141
|
providers: [],
|
|
3995
4142
|
}]
|
|
3996
4143
|
}] });
|
|
@@ -4033,13 +4180,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4033
4180
|
class AXCheckBoxModule {
|
|
4034
4181
|
}
|
|
4035
4182
|
AXCheckBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCheckBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4036
|
-
AXCheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCheckBoxModule, declarations: [AXCheckBoxComponent], imports: [CommonModule, FormsModule,
|
|
4037
|
-
AXCheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCheckBoxModule, providers: [], imports: [[CommonModule, FormsModule,
|
|
4183
|
+
AXCheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCheckBoxModule, declarations: [AXCheckBoxComponent], imports: [CommonModule, FormsModule, AXDecoratorModule], exports: [AXCheckBoxComponent] });
|
|
4184
|
+
AXCheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCheckBoxModule, providers: [], imports: [[CommonModule, FormsModule, AXDecoratorModule]] });
|
|
4038
4185
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXCheckBoxModule, decorators: [{
|
|
4039
4186
|
type: NgModule,
|
|
4040
4187
|
args: [{
|
|
4041
4188
|
declarations: [AXCheckBoxComponent],
|
|
4042
|
-
imports: [CommonModule, FormsModule,
|
|
4189
|
+
imports: [CommonModule, FormsModule, AXDecoratorModule],
|
|
4043
4190
|
exports: [AXCheckBoxComponent],
|
|
4044
4191
|
providers: [],
|
|
4045
4192
|
}]
|
|
@@ -4365,8 +4512,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4365
4512
|
args: ['axIsLoading']
|
|
4366
4513
|
}] } });
|
|
4367
4514
|
|
|
4368
|
-
const COMPONENT$
|
|
4369
|
-
const MODULES$
|
|
4515
|
+
const COMPONENT$g = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
|
|
4516
|
+
const MODULES$g = [CommonModule, OverlayModule, PortalModule];
|
|
4370
4517
|
class AXLoadingModule {
|
|
4371
4518
|
constructor() {
|
|
4372
4519
|
AXConfig.set({
|
|
@@ -4380,13 +4527,13 @@ class AXLoadingModule {
|
|
|
4380
4527
|
}
|
|
4381
4528
|
AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4382
4529
|
AXLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] });
|
|
4383
|
-
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$
|
|
4530
|
+
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES$g]] });
|
|
4384
4531
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLoadingModule, decorators: [{
|
|
4385
4532
|
type: NgModule,
|
|
4386
4533
|
args: [{
|
|
4387
|
-
declarations: [...COMPONENT$
|
|
4388
|
-
imports: [...MODULES$
|
|
4389
|
-
exports: [...COMPONENT$
|
|
4534
|
+
declarations: [...COMPONENT$g],
|
|
4535
|
+
imports: [...MODULES$g],
|
|
4536
|
+
exports: [...COMPONENT$g],
|
|
4390
4537
|
providers: [],
|
|
4391
4538
|
}]
|
|
4392
4539
|
}], ctorParameters: function () { return []; } });
|
|
@@ -4539,19 +4686,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4539
4686
|
}]
|
|
4540
4687
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: AXOverlayService }]; } });
|
|
4541
4688
|
|
|
4542
|
-
const COMPONENT$
|
|
4543
|
-
const MODULES$
|
|
4689
|
+
const COMPONENT$f = [AXDataListComponent];
|
|
4690
|
+
const MODULES$f = [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule];
|
|
4544
4691
|
class AXDataListModule {
|
|
4545
4692
|
}
|
|
4546
4693
|
AXDataListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4547
4694
|
AXDataListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, declarations: [AXDataListComponent], imports: [CommonModule, AXButtonModule, AXLoadingModule, AXTranslationModule], exports: [AXDataListComponent] });
|
|
4548
|
-
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$
|
|
4695
|
+
AXDataListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, providers: [], imports: [[...MODULES$f]] });
|
|
4549
4696
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDataListModule, decorators: [{
|
|
4550
4697
|
type: NgModule,
|
|
4551
4698
|
args: [{
|
|
4552
|
-
declarations: [...COMPONENT$
|
|
4553
|
-
imports: [...MODULES$
|
|
4554
|
-
exports: [...COMPONENT$
|
|
4699
|
+
declarations: [...COMPONENT$f],
|
|
4700
|
+
imports: [...MODULES$f],
|
|
4701
|
+
exports: [...COMPONENT$f],
|
|
4555
4702
|
providers: [],
|
|
4556
4703
|
}]
|
|
4557
4704
|
}] });
|
|
@@ -4586,6 +4733,7 @@ class AXPopoverComponent extends AXInteractiveComponenetMixin {
|
|
|
4586
4733
|
this.closeTrigger = 'clickout';
|
|
4587
4734
|
//
|
|
4588
4735
|
this.hasBackdrop = false;
|
|
4736
|
+
this.adaptivityEnabled = false;
|
|
4589
4737
|
//
|
|
4590
4738
|
this._mousePos = { x: 0, y: 0 };
|
|
4591
4739
|
this._isScrollAttached = false;
|
|
@@ -4698,7 +4846,7 @@ class AXPopoverComponent extends AXInteractiveComponenetMixin {
|
|
|
4698
4846
|
if (!targetRef)
|
|
4699
4847
|
return;
|
|
4700
4848
|
if (!this._overlayRef) {
|
|
4701
|
-
if (this._platform.is('Mobile')) {
|
|
4849
|
+
if (this._platform.is('Mobile') && this.adaptivityEnabled) {
|
|
4702
4850
|
this._openAsActionsheet();
|
|
4703
4851
|
}
|
|
4704
4852
|
else {
|
|
@@ -4768,7 +4916,7 @@ class AXPopoverComponent extends AXInteractiveComponenetMixin {
|
|
|
4768
4916
|
}
|
|
4769
4917
|
}
|
|
4770
4918
|
AXPopoverComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPopoverComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1.Overlay }, { token: i1$4.AXPlatform }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4771
|
-
AXPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", 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: { "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 });
|
|
4919
|
+
AXPopoverComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPopoverComponent, selector: "ax-popover", inputs: { target: "target", position: "position", openTrigger: "openTrigger", closeTrigger: "closeTrigger", hasBackdrop: "hasBackdrop", backdropClass: "backdropClass", adaptivityEnabled: "adaptivityEnabled" }, outputs: { onOpened: "onOpened", onClosed: "onClosed" }, host: { listeners: { "keydown": "_handleKeydownHandler($event)" } }, viewQueries: [{ propertyName: "_baseTemplate", first: true, predicate: ["baseTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-template #baseTemplate>\r\n <ng-content></ng-content>\r\n</ng-template>", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4772
4920
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPopoverComponent, decorators: [{
|
|
4773
4921
|
type: Component,
|
|
4774
4922
|
args: [{ selector: 'ax-popover', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #baseTemplate>\r\n <ng-content></ng-content>\r\n</ng-template>" }]
|
|
@@ -4787,6 +4935,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
4787
4935
|
type: Input
|
|
4788
4936
|
}], backdropClass: [{
|
|
4789
4937
|
type: Input
|
|
4938
|
+
}], adaptivityEnabled: [{
|
|
4939
|
+
type: Input
|
|
4790
4940
|
}], onOpened: [{
|
|
4791
4941
|
type: Output
|
|
4792
4942
|
}], onClosed: [{
|
|
@@ -4944,10 +5094,10 @@ class AXDatePickerComponent extends AXBaseDatePickerMixin {
|
|
|
4944
5094
|
}
|
|
4945
5095
|
}
|
|
4946
5096
|
AXDatePickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatePickerComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$4.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
4947
|
-
AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDatePickerComponent, selector: "ax-date-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format", interface: "interface" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", typeChange: "typeChange", disabledDatesChange: "disabledDatesChange", holidayDatesChange: "holidayDatesChange", onNavigate: "onNavigate", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_calendar", first: true, predicate: AXCalendarComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"
|
|
5097
|
+
AXDatePickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDatePickerComponent, selector: "ax-date-picker", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", holidayDates: "holidayDates", format: "format", interface: "interface" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", depthChange: "depthChange", typeChange: "typeChange", disabledDatesChange: "disabledDatesChange", holidayDatesChange: "holidayDatesChange", onNavigate: "onNavigate", formatChange: "formatChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, providers: [{ provide: AXClosbaleComponent, useExisting: AXDatePickerComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_calendar", first: true, predicate: AXCalendarComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-calendar-options\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n\r\n </div>\r\n</ax-popover>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }, { type: AXCalendarComponent, selector: "ax-calendar", inputs: ["readonly", "allowNull", "value", "debounceTime", "name", "checked", "disabled", "tabIndex", "depth", "activeView", "min", "max", "disabledDates", "type", "holidayDates", "interface"], outputs: ["valueChange", "onValueChanged", "onBlur", "onFocus", "depthChange", "typeChange", "disabledDatesChange", "holidayDatesChange", "onNavigate"] }], directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4948
5098
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatePickerComponent, decorators: [{
|
|
4949
5099
|
type: Component,
|
|
4950
|
-
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\"
|
|
5100
|
+
args: [{ selector: 'ax-date-picker', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...CALENDAR_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...CALENDAR_OUTPUTS], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXDatePickerComponent }], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\">\r\n <input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [class.ax-state-disabled]=\"disabled\"\r\n [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\"\r\n [attr.tabindex]=\"_isMobile ? -1 : tabIndex\" [ngModel]=\"displayText\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (mouseup)=\"_handleOnInputClickEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\"\r\n (keydown)=\"_handleOnKeydownEvent($event)\">\r\n</div>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n</ax-button>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-calendar-options\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopoverOpened($event)\">\r\n <div class=\"ax-overlay-pane\" [class.ax-w-full]=\"_isMobile\">\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title text=\"{{placeholder || 'Choose a date'}}\"></ax-title>\r\n <ax-close-button></ax-close-button>\r\n </ax-header>\r\n <ng-container *ngIf=\"interface === 'calendar'; then calendarTemplate; else pickerTemplate\"></ng-container>\r\n <ng-template #calendarTemplate>\r\n <ax-calendar #calendar [disabled]=\"disabled\" [readonly]=\"readonly\" [(value)]=\"value\" [min]=\"min\" [max]=\"max\"\r\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\"\r\n (onNavigate)=\"_handleOnNavigate($event)\" [type]=\"type\">\r\n </ax-calendar>\r\n </ng-template>\r\n <ng-template #pickerTemplate>\r\n </ng-template>\r\n\r\n </div>\r\n</ax-popover>" }]
|
|
4951
5101
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
|
|
4952
5102
|
type: ViewChild,
|
|
4953
5103
|
args: [AXPopoverComponent, { static: true }]
|
|
@@ -5005,14 +5155,12 @@ AXTextBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version:
|
|
|
5005
5155
|
AXTextBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXTextBoxModule, declarations: [AXTextBoxComponent], imports: [CommonModule,
|
|
5006
5156
|
FormsModule,
|
|
5007
5157
|
AXButtonModule,
|
|
5008
|
-
|
|
5009
|
-
AXIconModule, i1$5.NgxMaskModule], exports: [AXTextBoxComponent] });
|
|
5158
|
+
AXDecoratorModule, i1$5.NgxMaskModule], exports: [AXTextBoxComponent] });
|
|
5010
5159
|
AXTextBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXTextBoxModule, providers: [], imports: [[
|
|
5011
5160
|
CommonModule,
|
|
5012
5161
|
FormsModule,
|
|
5013
5162
|
AXButtonModule,
|
|
5014
|
-
|
|
5015
|
-
AXIconModule,
|
|
5163
|
+
AXDecoratorModule,
|
|
5016
5164
|
NgxMaskModule.forChild()
|
|
5017
5165
|
]] });
|
|
5018
5166
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXTextBoxModule, decorators: [{
|
|
@@ -5022,8 +5170,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
5022
5170
|
CommonModule,
|
|
5023
5171
|
FormsModule,
|
|
5024
5172
|
AXButtonModule,
|
|
5025
|
-
|
|
5026
|
-
AXIconModule,
|
|
5173
|
+
AXDecoratorModule,
|
|
5027
5174
|
NgxMaskModule.forChild()
|
|
5028
5175
|
],
|
|
5029
5176
|
exports: [AXTextBoxComponent],
|
|
@@ -5032,15 +5179,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
5032
5179
|
}]
|
|
5033
5180
|
}] });
|
|
5034
5181
|
|
|
5035
|
-
const COMPONENT$
|
|
5036
|
-
const MODULES$
|
|
5182
|
+
const COMPONENT$e = [AXDatePickerComponent];
|
|
5183
|
+
const MODULES$e = [
|
|
5037
5184
|
CommonModule,
|
|
5038
5185
|
AXCalendarModule,
|
|
5039
5186
|
AXTextBoxModule,
|
|
5040
5187
|
AXButtonModule,
|
|
5041
5188
|
AXPopoverModule,
|
|
5042
|
-
|
|
5043
|
-
AXIconModule,
|
|
5189
|
+
AXDecoratorModule,
|
|
5044
5190
|
AXDateTimeModule,
|
|
5045
5191
|
FormsModule
|
|
5046
5192
|
];
|
|
@@ -5052,17 +5198,16 @@ AXDatepickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", vers
|
|
|
5052
5198
|
AXTextBoxModule,
|
|
5053
5199
|
AXButtonModule,
|
|
5054
5200
|
AXPopoverModule,
|
|
5055
|
-
|
|
5056
|
-
AXIconModule,
|
|
5201
|
+
AXDecoratorModule,
|
|
5057
5202
|
AXDateTimeModule,
|
|
5058
5203
|
FormsModule], exports: [AXDatePickerComponent] });
|
|
5059
|
-
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$
|
|
5204
|
+
AXDatepickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, providers: [], imports: [[...MODULES$e]] });
|
|
5060
5205
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDatepickerModule, decorators: [{
|
|
5061
5206
|
type: NgModule,
|
|
5062
5207
|
args: [{
|
|
5063
|
-
declarations: [...COMPONENT$
|
|
5064
|
-
imports: [...MODULES$
|
|
5065
|
-
exports: [...COMPONENT$
|
|
5208
|
+
declarations: [...COMPONENT$e],
|
|
5209
|
+
imports: [...MODULES$e],
|
|
5210
|
+
exports: [...COMPONENT$e],
|
|
5066
5211
|
providers: [],
|
|
5067
5212
|
}]
|
|
5068
5213
|
}] });
|
|
@@ -5292,32 +5437,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
5292
5437
|
type: Input
|
|
5293
5438
|
}] } });
|
|
5294
5439
|
|
|
5295
|
-
class AXPageFooterComponent {
|
|
5296
|
-
}
|
|
5297
|
-
AXPageFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5298
|
-
AXPageFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPageFooterComponent, selector: "ax-page-footer", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `
|
|
5299
|
-
<ng-content select="ax-prefix">
|
|
5300
|
-
</ng-content>
|
|
5301
|
-
<ng-content select="ax-suffix">
|
|
5302
|
-
</ng-content>
|
|
5303
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5304
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageFooterComponent, decorators: [{
|
|
5305
|
-
type: Component,
|
|
5306
|
-
args: [{
|
|
5307
|
-
selector: 'ax-page-footer',
|
|
5308
|
-
template: `
|
|
5309
|
-
<ng-content select="ax-prefix">
|
|
5310
|
-
</ng-content>
|
|
5311
|
-
<ng-content select="ax-suffix">
|
|
5312
|
-
</ng-content>
|
|
5313
|
-
`,
|
|
5314
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
5315
|
-
}]
|
|
5316
|
-
}], propDecorators: { template: [{
|
|
5317
|
-
type: ViewChild,
|
|
5318
|
-
args: [TemplateRef, { static: true }]
|
|
5319
|
-
}] } });
|
|
5320
|
-
|
|
5321
5440
|
const TAB_META_KEY = '__meta__';
|
|
5322
5441
|
class AXPageCloseEvent extends AXEvent {
|
|
5323
5442
|
}
|
|
@@ -5391,67 +5510,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
5391
5510
|
args: [AXPageComponent, { static: true }]
|
|
5392
5511
|
}], footer: [{
|
|
5393
5512
|
type: ViewChild,
|
|
5394
|
-
args: [
|
|
5513
|
+
args: [AXDecoratorFooterComponent, { static: true }]
|
|
5395
5514
|
}], isLoadingChange: [{
|
|
5396
5515
|
type: Output
|
|
5397
5516
|
}], isLoading: [{
|
|
5398
5517
|
type: Input
|
|
5399
5518
|
}] } });
|
|
5400
5519
|
|
|
5401
|
-
class AXPageHeaderComponent {
|
|
5402
|
-
}
|
|
5403
|
-
AXPageHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5404
|
-
AXPageHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPageHeaderComponent, selector: "ax-page-header", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `
|
|
5405
|
-
<ng-content select="ax-prefix">
|
|
5406
|
-
</ng-content>
|
|
5407
|
-
<ng-content select="ax-suffix">
|
|
5408
|
-
</ng-content>
|
|
5409
|
-
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageHeaderComponent, decorators: [{
|
|
5411
|
-
type: Component,
|
|
5412
|
-
args: [{
|
|
5413
|
-
selector: 'ax-page-header',
|
|
5414
|
-
template: `
|
|
5415
|
-
<ng-content select="ax-prefix">
|
|
5416
|
-
</ng-content>
|
|
5417
|
-
<ng-content select="ax-suffix">
|
|
5418
|
-
</ng-content>
|
|
5419
|
-
`,
|
|
5420
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
5421
|
-
}]
|
|
5422
|
-
}], propDecorators: { template: [{
|
|
5423
|
-
type: ViewChild,
|
|
5424
|
-
args: [TemplateRef, { static: true }]
|
|
5425
|
-
}] } });
|
|
5426
|
-
|
|
5427
5520
|
class AXPageModule {
|
|
5428
5521
|
}
|
|
5429
5522
|
AXPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5430
|
-
AXPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule
|
|
5523
|
+
AXPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule });
|
|
5431
5524
|
AXPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule, providers: [], imports: [[]] });
|
|
5432
5525
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPageModule, decorators: [{
|
|
5433
5526
|
type: NgModule,
|
|
5434
5527
|
args: [{
|
|
5435
5528
|
imports: [],
|
|
5436
|
-
exports: [
|
|
5437
|
-
declarations: [
|
|
5529
|
+
exports: [],
|
|
5530
|
+
declarations: [],
|
|
5438
5531
|
providers: [],
|
|
5439
5532
|
}]
|
|
5440
5533
|
}] });
|
|
5441
5534
|
|
|
5442
|
-
const COMPONENT$
|
|
5443
|
-
const MODULES$
|
|
5535
|
+
const COMPONENT$d = [AXDialogComponent];
|
|
5536
|
+
const MODULES$d = [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule];
|
|
5444
5537
|
class AXDialogModule {
|
|
5445
5538
|
}
|
|
5446
5539
|
AXDialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5447
|
-
AXDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, declarations: [AXDialogComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule,
|
|
5448
|
-
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$
|
|
5540
|
+
AXDialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, declarations: [AXDialogComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXPageModule, AXDecoratorModule], exports: [AXDialogComponent] });
|
|
5541
|
+
AXDialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, providers: [], imports: [[...MODULES$d]] });
|
|
5449
5542
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDialogModule, decorators: [{
|
|
5450
5543
|
type: NgModule,
|
|
5451
5544
|
args: [{
|
|
5452
|
-
declarations: [...COMPONENT$
|
|
5453
|
-
imports: [...MODULES$
|
|
5454
|
-
exports: [...COMPONENT$
|
|
5545
|
+
declarations: [...COMPONENT$d],
|
|
5546
|
+
imports: [...MODULES$d],
|
|
5547
|
+
exports: [...COMPONENT$d],
|
|
5455
5548
|
providers: [],
|
|
5456
5549
|
}]
|
|
5457
5550
|
}] });
|
|
@@ -5503,10 +5596,10 @@ class AXDropdownPanelComponent extends AXBaseDropdownMixin {
|
|
|
5503
5596
|
}
|
|
5504
5597
|
}
|
|
5505
5598
|
AXDropdownPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDropdownPanelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXButtonComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
5506
|
-
AXDropdownPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", items: "items" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onItemClick: "onItemClick" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_viewButtons", predicate: AXButtonItemComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\r\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\r\n <ax-prefix *ngIf=\"item.iconClass\">\r\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ng-container>\r\n <ng-template #panelTpl>\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </ng-template>\r\n </div>\r\n</ax-popover>", components: [{ type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"], outputs: ["onOpened", "onClosed"] }, { type: AXButtonItemComponent, selector: "ax-button-item", inputs: ["text", "tooltip", "selected", "seperated", "name", "data", "color"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type:
|
|
5599
|
+
AXDropdownPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", items: "items" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onItemClick: "onItemClick" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "_viewButtons", predicate: AXButtonItemComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"false\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\r\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\r\n <ax-prefix *ngIf=\"item.iconClass\">\r\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ng-container>\r\n <ng-template #panelTpl>\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </ng-template>\r\n </div>\r\n</ax-popover>", components: [{ type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXButtonItemComponent, selector: "ax-button-item", inputs: ["text", "tooltip", "selected", "seperated", "name", "data", "color"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5507
5600
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDropdownPanelComponent, decorators: [{
|
|
5508
5601
|
type: Component,
|
|
5509
|
-
args: [{ selector: 'ax-dropdown-panel', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, inputs: [...DROPDOWN_INPUTS], outputs: [...DROPDOWN_OUTPUT], template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\r\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\r\n <ax-prefix *ngIf=\"item.iconClass\">\r\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ng-container>\r\n <ng-template #panelTpl>\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </ng-template>\r\n </div>\r\n</ax-popover>" }]
|
|
5602
|
+
args: [{ selector: 'ax-dropdown-panel', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, inputs: [...DROPDOWN_INPUTS], outputs: [...DROPDOWN_OUTPUT], template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"false\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-container *ngIf=\"items && items.length;else panelTpl\">\r\n <ax-button-item [text]=\"item.text\" [color]=\"item.color\" *ngFor=\"let item of items\">\r\n <ax-prefix *ngIf=\"item.iconClass\">\r\n <ax-icon [icon]=\"item.iconClass\"></ax-icon>\r\n </ax-prefix>\r\n </ax-button-item>\r\n </ng-container>\r\n <ng-template #panelTpl>\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </ng-template>\r\n </div>\r\n</ax-popover>" }]
|
|
5510
5603
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXButtonComponent, decorators: [{
|
|
5511
5604
|
type: Optional
|
|
5512
5605
|
}] }]; }, propDecorators: { _contentButtons: [{
|
|
@@ -5527,12 +5620,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
5527
5620
|
class AXDropdownModule {
|
|
5528
5621
|
}
|
|
5529
5622
|
AXDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5530
|
-
AXDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDropdownModule, declarations: [AXDropdownPanelComponent], imports: [CommonModule, AXButtonModule, OverlayModule,
|
|
5531
|
-
AXDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDropdownModule, providers: [], imports: [[CommonModule, AXButtonModule, OverlayModule,
|
|
5623
|
+
AXDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDropdownModule, declarations: [AXDropdownPanelComponent], imports: [CommonModule, AXButtonModule, OverlayModule, AXDecoratorModule, AXPopoverModule], exports: [AXDropdownPanelComponent] });
|
|
5624
|
+
AXDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDropdownModule, providers: [], imports: [[CommonModule, AXButtonModule, OverlayModule, AXDecoratorModule, AXPopoverModule]] });
|
|
5532
5625
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXDropdownModule, decorators: [{
|
|
5533
5626
|
type: NgModule,
|
|
5534
5627
|
args: [{
|
|
5535
|
-
imports: [CommonModule, AXButtonModule, OverlayModule,
|
|
5628
|
+
imports: [CommonModule, AXButtonModule, OverlayModule, AXDecoratorModule, AXPopoverModule],
|
|
5536
5629
|
exports: [AXDropdownPanelComponent],
|
|
5537
5630
|
declarations: [AXDropdownPanelComponent],
|
|
5538
5631
|
providers: [],
|
|
@@ -5695,19 +5788,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
5695
5788
|
type: Input
|
|
5696
5789
|
}] } });
|
|
5697
5790
|
|
|
5698
|
-
const COMPONENT$
|
|
5699
|
-
const MODULES$
|
|
5791
|
+
const COMPONENT$c = [AXInputMaskComponent];
|
|
5792
|
+
const MODULES$c = [CommonModule, NgxMaskModule.forRoot(), IMaskModule];
|
|
5700
5793
|
class AXInputMaskModule {
|
|
5701
5794
|
}
|
|
5702
5795
|
AXInputMaskModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXInputMaskModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5703
5796
|
AXInputMaskModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXInputMaskModule, declarations: [AXInputMaskComponent], imports: [CommonModule, i1$5.NgxMaskModule, IMaskModule], exports: [AXInputMaskComponent] });
|
|
5704
|
-
AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$
|
|
5797
|
+
AXInputMaskModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXInputMaskModule, providers: [], imports: [[...MODULES$c]] });
|
|
5705
5798
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXInputMaskModule, decorators: [{
|
|
5706
5799
|
type: NgModule,
|
|
5707
5800
|
args: [{
|
|
5708
|
-
declarations: [...COMPONENT$
|
|
5709
|
-
imports: [...MODULES$
|
|
5710
|
-
exports: [...COMPONENT$
|
|
5801
|
+
declarations: [...COMPONENT$c],
|
|
5802
|
+
imports: [...MODULES$c],
|
|
5803
|
+
exports: [...COMPONENT$c],
|
|
5711
5804
|
providers: [],
|
|
5712
5805
|
}]
|
|
5713
5806
|
}] });
|
|
@@ -5733,19 +5826,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
5733
5826
|
type: Input
|
|
5734
5827
|
}] } });
|
|
5735
5828
|
|
|
5736
|
-
const COMPONENT$
|
|
5737
|
-
const MODULES$
|
|
5829
|
+
const COMPONENT$b = [AXLabelComponent];
|
|
5830
|
+
const MODULES$b = [CommonModule];
|
|
5738
5831
|
class AXLabelModule {
|
|
5739
5832
|
}
|
|
5740
5833
|
AXLabelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLabelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5741
5834
|
AXLabelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLabelModule, declarations: [AXLabelComponent], imports: [CommonModule], exports: [AXLabelComponent] });
|
|
5742
|
-
AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$
|
|
5835
|
+
AXLabelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLabelModule, providers: [], imports: [[...MODULES$b]] });
|
|
5743
5836
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXLabelModule, decorators: [{
|
|
5744
5837
|
type: NgModule,
|
|
5745
5838
|
args: [{
|
|
5746
|
-
declarations: [...COMPONENT$
|
|
5747
|
-
imports: [...MODULES$
|
|
5748
|
-
exports: [...COMPONENT$
|
|
5839
|
+
declarations: [...COMPONENT$b],
|
|
5840
|
+
imports: [...MODULES$b],
|
|
5841
|
+
exports: [...COMPONENT$b],
|
|
5749
5842
|
providers: [],
|
|
5750
5843
|
}]
|
|
5751
5844
|
}] });
|
|
@@ -5775,12 +5868,23 @@ class AXMenuComponent extends AXBaseMenuMixin {
|
|
|
5775
5868
|
}
|
|
5776
5869
|
_onMenuClick(e, item) {
|
|
5777
5870
|
if (!item[this.disableField] && this.openMode === 'click') {
|
|
5871
|
+
if (this.openMode === 'click' && this.direction === 'horizontal') {
|
|
5872
|
+
this.displayItems.forEach((element) => {
|
|
5873
|
+
if (element[this.valueField] != item[this.valueField] &&
|
|
5874
|
+
!item.parentId) {
|
|
5875
|
+
element.isOpen = false;
|
|
5876
|
+
}
|
|
5877
|
+
});
|
|
5878
|
+
}
|
|
5778
5879
|
this._notActive(this.displayItems);
|
|
5779
5880
|
if (item.children?.length > 0 || item[this.hasChildField]) {
|
|
5780
5881
|
if (item.children?.length > 0 && item[this.hasChildField]) {
|
|
5781
5882
|
item.children = [];
|
|
5782
5883
|
}
|
|
5783
5884
|
if (item.children?.length > 0) {
|
|
5885
|
+
if (this.openMode === 'click' && this.direction === 'horizontal') {
|
|
5886
|
+
this._setParentNode(item.children, item[this.valueField]);
|
|
5887
|
+
}
|
|
5784
5888
|
this._closeChild(item.children);
|
|
5785
5889
|
}
|
|
5786
5890
|
item.isOpen = !item.isOpen;
|
|
@@ -5792,7 +5896,7 @@ class AXMenuComponent extends AXBaseMenuMixin {
|
|
|
5792
5896
|
nativeEvent: e,
|
|
5793
5897
|
});
|
|
5794
5898
|
if (item.isOpen && item[this.hasChildField]) {
|
|
5795
|
-
this._fetchData(item.
|
|
5899
|
+
this._fetchData(item[this.valueField]);
|
|
5796
5900
|
}
|
|
5797
5901
|
}
|
|
5798
5902
|
e.stopPropagation();
|
|
@@ -5851,12 +5955,14 @@ class AXMenuComponent extends AXBaseMenuMixin {
|
|
|
5851
5955
|
}
|
|
5852
5956
|
item.isOpen = false;
|
|
5853
5957
|
}
|
|
5854
|
-
if (item.isOpen && item[this.hasChildField]) {
|
|
5855
|
-
this._fetchData(item.id);
|
|
5856
|
-
}
|
|
5857
5958
|
}
|
|
5858
5959
|
}
|
|
5859
5960
|
}
|
|
5961
|
+
_setParentNode(item, parentId) {
|
|
5962
|
+
item.forEach((element) => {
|
|
5963
|
+
element.parentId = parentId;
|
|
5964
|
+
});
|
|
5965
|
+
}
|
|
5860
5966
|
_getDirection() {
|
|
5861
5967
|
if (this.direction === 'horizontal') {
|
|
5862
5968
|
return 'horizontal-mode';
|
|
@@ -5867,7 +5973,7 @@ class AXMenuComponent extends AXBaseMenuMixin {
|
|
|
5867
5973
|
}
|
|
5868
5974
|
}
|
|
5869
5975
|
AXMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXMenuComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5870
|
-
AXMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXMenuComponent, selector: "ax-menu", inputs: { disabled: "disabled", tabIndex: "tabIndex", textField: "textField", valueField: "valueField", items: "items", id: "id", parentId: "parentId", icon: "icon", tooltip: "tooltip", isOpen: "isOpen", isActive: "isActive", visibleField: "visibleField", disableField: "disableField", hasChildField: "hasChildField", openMode: "openMode", direction: "direction" }, outputs: { onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-menu" }, queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\"\r\n (mouseleave)=\"_onMouseLeave($event,item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon [class]=\"item.icon || item[icon]\" *ngIf=\"item.icon || item[icon]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div class=\"ax-menu-end-side\">\r\n <ax-icon [ngClass]=\"{'active-icon': item.isOpen}\"\r\n *ngIf=\"item?.children?.length > 0 && !isLoading || item[hasChildField] && !isLoading\" class=\"ax-ic-chevron\">\r\n </ax-icon>\r\n </div>\r\n <ax-loading *ngIf=\"isLoading && item.isActive && item.isOpen\">\r\n </ax-loading>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>", components: [{ type:
|
|
5976
|
+
AXMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXMenuComponent, selector: "ax-menu", inputs: { disabled: "disabled", tabIndex: "tabIndex", textField: "textField", valueField: "valueField", items: "items", id: "id", parentId: "parentId", icon: "icon", tooltip: "tooltip", isOpen: "isOpen", isActive: "isActive", visibleField: "visibleField", disableField: "disableField", hasChildField: "hasChildField", openMode: "openMode", direction: "direction" }, outputs: { onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-menu" }, queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\"\r\n (mouseleave)=\"_onMouseLeave($event,item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon [class]=\"item.icon || item[icon]\" *ngIf=\"item.icon || item[icon]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div class=\"ax-menu-end-side\">\r\n <ax-icon [ngClass]=\"{'active-icon': item.isOpen}\"\r\n *ngIf=\"item?.children?.length > 0 && !isLoading || item[hasChildField] && !isLoading\" class=\"ax-ic-chevron\">\r\n </ax-icon>\r\n </div>\r\n <ax-loading *ngIf=\"isLoading && item.isActive && item.isOpen\">\r\n </ax-loading>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>", components: [{ type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }], directives: [{ type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5871
5977
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXMenuComponent, decorators: [{
|
|
5872
5978
|
type: Component,
|
|
5873
5979
|
args: [{ selector: 'ax-menu', inputs: [...INTERACTIVE_INPUTS, ...BASEMENU_INPUTS], outputs: [...INTERACTIVE_OUTPUT], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-menu' }, template: "<ul [ngClass]=\"_getDirection()\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: displayItems }\"></ng-container>\r\n</ul>\r\n\r\n<ng-template #recursiveListTmpl let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list; trackBy: _trackLoaded\">\r\n <li *ngIf=\"item[visibleField] !=false\" [class.ax-state-disabled]=\"item[disableField]\"\r\n (click)=\"_onMenuClick($event,item)\" (mouseenter)=\"_onMouseEnter($event,item)\"\r\n (mouseleave)=\"_onMouseLeave($event,item)\">\r\n <a [ngClass]=\"{'active': item.isActive}\">\r\n <div class=\"ax-menu-start-side\">\r\n <ax-icon [class]=\"item.icon || item[icon]\" *ngIf=\"item.icon || item[icon]\"></ax-icon>\r\n <span>{{_getItemDisplayTextTemplte(item)}}</span>\r\n </div>\r\n <div class=\"ax-menu-end-side\">\r\n <ax-icon [ngClass]=\"{'active-icon': item.isOpen}\"\r\n *ngIf=\"item?.children?.length > 0 && !isLoading || item[hasChildField] && !isLoading\" class=\"ax-ic-chevron\">\r\n </ax-icon>\r\n </div>\r\n <ax-loading *ngIf=\"isLoading && item.isActive && item.isOpen\">\r\n </ax-loading>\r\n </a>\r\n <ul [class.ax-state-disabled]=\"item[disableField]\" *ngIf=\"item?.children?.length > 0 && item.isOpen\">\r\n <ng-container *ngTemplateOutlet=\"recursiveListTmpl; context:{ list: item.children }\"></ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n</ng-template>\r\n<ng-container *ngIf=\"isLoading\">\r\n <ng-template>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n</ng-container>\r\n<ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <!--------------- check for custom template --------------->\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n</ng-template>" }]
|
|
@@ -5876,18 +5982,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
5876
5982
|
args: ['emptyTemplate']
|
|
5877
5983
|
}] } });
|
|
5878
5984
|
|
|
5879
|
-
const COMPONENT$
|
|
5880
|
-
const MODULES$
|
|
5985
|
+
const COMPONENT$a = [AXMenuComponent];
|
|
5986
|
+
const MODULES$a = [CommonModule, AXDecoratorModule];
|
|
5881
5987
|
class AXMenuModule {
|
|
5882
5988
|
}
|
|
5883
5989
|
AXMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5884
|
-
AXMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXMenuModule, declarations: [AXMenuComponent], imports: [CommonModule,
|
|
5885
|
-
AXLoadingModule,
|
|
5990
|
+
AXMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXMenuModule, declarations: [AXMenuComponent], imports: [CommonModule, AXDecoratorModule, AXLoadingModule,
|
|
5886
5991
|
AXTranslationModule,
|
|
5887
5992
|
AXPopoverModule], exports: [AXMenuComponent] });
|
|
5888
5993
|
AXMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXMenuModule, providers: [], imports: [[
|
|
5889
|
-
...MODULES$
|
|
5890
|
-
AXIconModule,
|
|
5994
|
+
...MODULES$a,
|
|
5891
5995
|
AXLoadingModule,
|
|
5892
5996
|
AXTranslationModule,
|
|
5893
5997
|
AXPopoverModule,
|
|
@@ -5895,15 +5999,14 @@ AXMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
|
5895
5999
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXMenuModule, decorators: [{
|
|
5896
6000
|
type: NgModule,
|
|
5897
6001
|
args: [{
|
|
5898
|
-
declarations: [...COMPONENT$
|
|
6002
|
+
declarations: [...COMPONENT$a],
|
|
5899
6003
|
imports: [
|
|
5900
|
-
...MODULES$
|
|
5901
|
-
AXIconModule,
|
|
6004
|
+
...MODULES$a,
|
|
5902
6005
|
AXLoadingModule,
|
|
5903
6006
|
AXTranslationModule,
|
|
5904
6007
|
AXPopoverModule,
|
|
5905
6008
|
],
|
|
5906
|
-
exports: [...COMPONENT$
|
|
6009
|
+
exports: [...COMPONENT$a],
|
|
5907
6010
|
providers: [],
|
|
5908
6011
|
}]
|
|
5909
6012
|
}] });
|
|
@@ -6078,7 +6181,7 @@ class AXNumberBoxComponent extends AXBaseTextBoxMixin {
|
|
|
6078
6181
|
}
|
|
6079
6182
|
}
|
|
6080
6183
|
AXNumberBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXNumberBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6081
|
-
AXNumberBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", type: "type", autoComplete: "autoComplete", name: "name", checked: "checked", thousandsSeparator: "thousandsSeparator", padDecimalZeros: "padDecimalZeros", step: "step", decimals: "decimals", decimalStep: "decimalStep", showSpinButtons: "showSpinButtons", minValue: "minValue", maxValue: "maxValue" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-editor-container" }, viewQueries: [{ propertyName: "_maskDirective", first: true, predicate: IMaskDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" \r\n [attr.placeholder]=\"placeholder\" \r\n [imask]=\"_maskObj\" \r\n [unmask]=\"'typed'\"\r\n [attr.min]=\"minValue\"\r\n [attr.max]=\"maxValue\" \r\n [class.ax-state-disabled]=\"disabled\" \r\n [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" \r\n [readonly]=\"readonly\" \r\n [tabindex]=\"tabIndex\" \r\n [(ngModel)]=\"value\"\r\n (focus)=\"_emitOnFocusEvent($event)\" \r\n (blur)=\"_emitOnFocusEvent($event)\" \r\n (keydown)=\"_handleOnKeydownEvent($event)\"\r\n [attr.autocomplete]=\"autoComplete\">\r\n\r\n<div class=\"ax-number-box-arrows\" *ngIf=\"showSpinButtons && !(disabled || readonly)\">\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax-rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,-1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax--rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n</div>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type:
|
|
6184
|
+
AXNumberBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", type: "type", autoComplete: "autoComplete", name: "name", checked: "checked", thousandsSeparator: "thousandsSeparator", padDecimalZeros: "padDecimalZeros", step: "step", decimals: "decimals", decimalStep: "decimalStep", showSpinButtons: "showSpinButtons", minValue: "minValue", maxValue: "maxValue" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-editor-container" }, viewQueries: [{ propertyName: "_maskDirective", first: true, predicate: IMaskDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" type=\"text\" \r\n [attr.placeholder]=\"placeholder\" \r\n [imask]=\"_maskObj\" \r\n [unmask]=\"'typed'\"\r\n [attr.min]=\"minValue\"\r\n [attr.max]=\"maxValue\" \r\n [class.ax-state-disabled]=\"disabled\" \r\n [class.ax-state-readonly]=\"readonly\"\r\n [disabled]=\"disabled\" \r\n [readonly]=\"readonly\" \r\n [tabindex]=\"tabIndex\" \r\n [(ngModel)]=\"value\"\r\n (focus)=\"_emitOnFocusEvent($event)\" \r\n (blur)=\"_emitOnFocusEvent($event)\" \r\n (keydown)=\"_handleOnKeydownEvent($event)\"\r\n [attr.autocomplete]=\"autoComplete\">\r\n\r\n<div class=\"ax-number-box-arrows\" *ngIf=\"showSpinButtons && !(disabled || readonly)\">\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax-rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n <ax-button color=\"light\" look=\"blank\" (onClick)=\"_handleUpDownClick($event,-1)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic-arrow-fill ax--rotate-90\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-button>\r\n</div>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5.IMaskDirective, selector: "[imask]", inputs: ["imask", "unmask", "imaskElement"], outputs: ["accept", "complete"], exportAs: ["imask"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6082
6185
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXNumberBoxComponent, decorators: [{
|
|
6083
6186
|
type: Component,
|
|
6084
6187
|
args: [{ selector: 'ax-number-box', inputs: [
|
|
@@ -6116,13 +6219,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
6116
6219
|
args: [IMaskDirective]
|
|
6117
6220
|
}] } });
|
|
6118
6221
|
|
|
6119
|
-
const COMPONENT$
|
|
6120
|
-
const MODULES$
|
|
6222
|
+
const COMPONENT$9 = [AXNumberBoxComponent];
|
|
6223
|
+
const MODULES$9 = [
|
|
6121
6224
|
CommonModule,
|
|
6122
6225
|
FormsModule,
|
|
6123
6226
|
AXButtonModule,
|
|
6124
|
-
|
|
6125
|
-
AXIconModule,
|
|
6227
|
+
AXDecoratorModule,
|
|
6126
6228
|
IMaskModule
|
|
6127
6229
|
];
|
|
6128
6230
|
class AXNumberBoxModule {
|
|
@@ -6131,16 +6233,15 @@ AXNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", versio
|
|
|
6131
6233
|
AXNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXNumberBoxModule, declarations: [AXNumberBoxComponent], imports: [CommonModule,
|
|
6132
6234
|
FormsModule,
|
|
6133
6235
|
AXButtonModule,
|
|
6134
|
-
|
|
6135
|
-
AXIconModule,
|
|
6236
|
+
AXDecoratorModule,
|
|
6136
6237
|
IMaskModule], exports: [AXNumberBoxComponent] });
|
|
6137
|
-
AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXNumberBoxModule, providers: [], imports: [[...MODULES$
|
|
6238
|
+
AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXNumberBoxModule, providers: [], imports: [[...MODULES$9]] });
|
|
6138
6239
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXNumberBoxModule, decorators: [{
|
|
6139
6240
|
type: NgModule,
|
|
6140
6241
|
args: [{
|
|
6141
|
-
declarations: [...COMPONENT$
|
|
6142
|
-
imports: [...MODULES$
|
|
6143
|
-
exports: [...COMPONENT$
|
|
6242
|
+
declarations: [...COMPONENT$9],
|
|
6243
|
+
imports: [...MODULES$9],
|
|
6244
|
+
exports: [...COMPONENT$9],
|
|
6144
6245
|
providers: [],
|
|
6145
6246
|
}]
|
|
6146
6247
|
}] });
|
|
@@ -6175,7 +6276,7 @@ class AXPasswordBoxComponent extends AXBaseTextBoxMixin {
|
|
|
6175
6276
|
}
|
|
6176
6277
|
}
|
|
6177
6278
|
AXPasswordBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPasswordBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6178
|
-
AXPasswordBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPasswordBoxComponent, selector: "ax-password-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", cssClass: "cssClass", size: "size", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", type: "type", autoComplete: "autoComplete", value: "value", name: "name", checked: "checked", showToggleButton: "showToggleButton" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-password-box ax-editor-container" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" [attr.name]=\"name\" [type]=\"_type\" [attr.placeholder]=\"placeholder\" [attr.maxlength]=\"maxLength\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n [(ngModel)]=\"value\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\" [attr.autocomplete]=\"autoComplete\">\r\n\r\n<ng-content select=\"ax-suffix\">\r\n\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-input-mask\">\r\n</ng-content>\r\n<ax-button color=\"light\" look=\"blank\" [size]=\"size\" (onClick)=\"toggleType()\" [tabIndex]=\"-1\" *ngIf=\"showToggleButton\">\r\n <ax-icon [icon]=\"_icon\"></ax-icon>\r\n</ax-button>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type:
|
|
6279
|
+
AXPasswordBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPasswordBoxComponent, selector: "ax-password-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", cssClass: "cssClass", size: "size", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", debounceTime: "debounceTime", type: "type", autoComplete: "autoComplete", value: "value", name: "name", checked: "checked", showToggleButton: "showToggleButton" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus" }, host: { classAttribute: "ax-password-box ax-editor-container" }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input class=\"ax-input\" [attr.name]=\"name\" [type]=\"_type\" [attr.placeholder]=\"placeholder\" [attr.maxlength]=\"maxLength\" [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n [(ngModel)]=\"value\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\" [attr.autocomplete]=\"autoComplete\">\r\n\r\n<ng-content select=\"ax-suffix\">\r\n\r\n</ng-content>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-input-mask\">\r\n</ng-content>\r\n<ax-button color=\"light\" look=\"blank\" [size]=\"size\" (onClick)=\"toggleType()\" [tabIndex]=\"-1\" *ngIf=\"showToggleButton\">\r\n <ax-icon [icon]=\"_icon\"></ax-icon>\r\n</ax-button>", components: [{ type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], directives: [{ type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6179
6280
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPasswordBoxComponent, decorators: [{
|
|
6180
6281
|
type: Component,
|
|
6181
6282
|
args: [{ selector: 'ax-password-box', inputs: [
|
|
@@ -6196,13 +6297,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
6196
6297
|
type: Input
|
|
6197
6298
|
}] } });
|
|
6198
6299
|
|
|
6199
|
-
const COMPONENT$
|
|
6200
|
-
const MODULES$
|
|
6300
|
+
const COMPONENT$8 = [AXPasswordBoxComponent];
|
|
6301
|
+
const MODULES$8 = [
|
|
6201
6302
|
CommonModule,
|
|
6202
6303
|
FormsModule,
|
|
6203
6304
|
AXButtonModule,
|
|
6204
|
-
|
|
6205
|
-
AXIconModule
|
|
6305
|
+
AXDecoratorModule,
|
|
6206
6306
|
];
|
|
6207
6307
|
class AXPasswordBoxModule {
|
|
6208
6308
|
}
|
|
@@ -6210,15 +6310,14 @@ AXPasswordBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", vers
|
|
|
6210
6310
|
AXPasswordBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPasswordBoxModule, declarations: [AXPasswordBoxComponent], imports: [CommonModule,
|
|
6211
6311
|
FormsModule,
|
|
6212
6312
|
AXButtonModule,
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$7]] });
|
|
6313
|
+
AXDecoratorModule], exports: [AXPasswordBoxComponent] });
|
|
6314
|
+
AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPasswordBoxModule, providers: [], imports: [[...MODULES$8]] });
|
|
6216
6315
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPasswordBoxModule, decorators: [{
|
|
6217
6316
|
type: NgModule,
|
|
6218
6317
|
args: [{
|
|
6219
|
-
declarations: [...COMPONENT$
|
|
6220
|
-
imports: [...MODULES$
|
|
6221
|
-
exports: [...COMPONENT$
|
|
6318
|
+
declarations: [...COMPONENT$8],
|
|
6319
|
+
imports: [...MODULES$8],
|
|
6320
|
+
exports: [...COMPONENT$8],
|
|
6222
6321
|
providers: [],
|
|
6223
6322
|
}]
|
|
6224
6323
|
}] });
|
|
@@ -6286,8 +6385,8 @@ class AXPopupComponent extends AXBaseComponentMixin {
|
|
|
6286
6385
|
const main = this._getHostElement().querySelector('.ax-popup-main-container');
|
|
6287
6386
|
const popHeader = this._getHostElement().querySelector('.ax-popup-header-container');
|
|
6288
6387
|
const popFooter = this._getHostElement().querySelector('.ax-popup-footer-container');
|
|
6289
|
-
const footer = main.querySelector('ax-
|
|
6290
|
-
const header = main.querySelector('ax-
|
|
6388
|
+
const footer = main.querySelector('ax-footer');
|
|
6389
|
+
const header = main.querySelector('ax-header');
|
|
6291
6390
|
if (footer) {
|
|
6292
6391
|
popFooter.append(footer);
|
|
6293
6392
|
}
|
|
@@ -6325,10 +6424,10 @@ class AXPopupComponent extends AXBaseComponentMixin {
|
|
|
6325
6424
|
onFullScreen() { }
|
|
6326
6425
|
}
|
|
6327
6426
|
AXPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPopupComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }, { token: AXLoadingService }, { token: i1$4.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
6328
|
-
AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\"
|
|
6427
|
+
AXPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXPopupComponent, selector: "ax-popup", host: { listeners: { "keydown.escape": "onKeydownHandler($event)" } }, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], usesInheritance: true, ngImport: i0, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <div cdkDragHandle class=\"ax-popup-header-container\">\r\n <ax-header *ngIf=\"showHeader\">\r\n <ax-title [text]=\"title\"></ax-title>\r\n <ax-close-button *ngIf=\"showCloseButton\"></ax-close-button>\r\n </ax-header>\r\n </div>\r\n <div class=\"ax-popup-main-container\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </div>\r\n <div class=\"ax-popup-footer-container\"></div>\r\n </div>\r\n</div>", components: [{ type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i3.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i3.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6329
6428
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPopupComponent, decorators: [{
|
|
6330
6429
|
type: Component,
|
|
6331
|
-
args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\"
|
|
6430
|
+
args: [{ selector: 'ax-popup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXPopupComponent }], template: "<div class=\"ax-popup-wrapper\" aria-modal=\"true\" [cdkTrapFocus]=\"true\">\r\n <div class=\"ax-popup ax-popup-{{size}}\" tabindex=\"0\" cdkDrag [cdkDragDisabled]=\"!draggable\">\r\n <div cdkDragHandle class=\"ax-popup-header-container\">\r\n <ax-header *ngIf=\"showHeader\">\r\n <ax-title [text]=\"title\"></ax-title>\r\n <ax-close-button *ngIf=\"showCloseButton\"></ax-close-button>\r\n </ax-header>\r\n </div>\r\n <div class=\"ax-popup-main-container\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\" (attached)=\"_handleAttched($event)\"></ng-template>\r\n </div>\r\n <div class=\"ax-popup-footer-container\"></div>\r\n </div>\r\n</div>" }]
|
|
6332
6431
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }, { type: AXLoadingService }, { type: i1$4.AXPlatform }]; }, propDecorators: { onKeydownHandler: [{
|
|
6333
6432
|
type: HostListener,
|
|
6334
6433
|
args: ['keydown.escape', ['$event']]
|
|
@@ -6424,19 +6523,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
6424
6523
|
args: [{ providedIn: 'root' }]
|
|
6425
6524
|
}], ctorParameters: function () { return [{ type: AXOverlayService }]; } });
|
|
6426
6525
|
|
|
6427
|
-
const COMPONENT$
|
|
6428
|
-
const MODULES$
|
|
6526
|
+
const COMPONENT$7 = [AXPopupComponent];
|
|
6527
|
+
const MODULES$7 = [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule];
|
|
6429
6528
|
class AXPopupModule {
|
|
6430
6529
|
}
|
|
6431
6530
|
AXPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6432
|
-
AXPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPopupModule, declarations: [AXPopupComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule], exports: [AXPopupComponent] });
|
|
6433
|
-
AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$
|
|
6531
|
+
AXPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPopupModule, declarations: [AXPopupComponent], imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, PortalModule, AXDecoratorModule], exports: [AXPopupComponent] });
|
|
6532
|
+
AXPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPopupModule, providers: [], imports: [[...MODULES$7]] });
|
|
6434
6533
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXPopupModule, decorators: [{
|
|
6435
6534
|
type: NgModule,
|
|
6436
6535
|
args: [{
|
|
6437
|
-
declarations: [...COMPONENT$
|
|
6438
|
-
imports: [...MODULES$
|
|
6439
|
-
exports: [...COMPONENT$
|
|
6536
|
+
declarations: [...COMPONENT$7],
|
|
6537
|
+
imports: [...MODULES$7],
|
|
6538
|
+
exports: [...COMPONENT$7],
|
|
6440
6539
|
providers: [],
|
|
6441
6540
|
}]
|
|
6442
6541
|
}] });
|
|
@@ -6508,25 +6607,25 @@ class AXRadioComponent extends AXBaseValueComponentMixin {
|
|
|
6508
6607
|
}
|
|
6509
6608
|
}
|
|
6510
6609
|
AXRadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRadioComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
6511
|
-
AXRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", 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\">\
|
|
6610
|
+
AXRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", 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$2.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { type: i1$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6512
6611
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRadioComponent, decorators: [{
|
|
6513
6612
|
type: Component,
|
|
6514
|
-
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\">\
|
|
6613
|
+
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>" }]
|
|
6515
6614
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
6516
6615
|
|
|
6517
|
-
const COMPONENT$
|
|
6518
|
-
const MODULES$
|
|
6616
|
+
const COMPONENT$6 = [AXRadioComponent];
|
|
6617
|
+
const MODULES$6 = [CommonModule, FormsModule];
|
|
6519
6618
|
class AXRadioModule {
|
|
6520
6619
|
}
|
|
6521
6620
|
AXRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6522
6621
|
AXRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRadioModule, declarations: [AXRadioComponent], imports: [CommonModule, FormsModule], exports: [AXRadioComponent] });
|
|
6523
|
-
AXRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRadioModule, providers: [], imports: [[...MODULES$
|
|
6622
|
+
AXRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRadioModule, providers: [], imports: [[...MODULES$6]] });
|
|
6524
6623
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRadioModule, decorators: [{
|
|
6525
6624
|
type: NgModule,
|
|
6526
6625
|
args: [{
|
|
6527
|
-
declarations: [...COMPONENT$
|
|
6528
|
-
imports: [...MODULES$
|
|
6529
|
-
exports: [...COMPONENT$
|
|
6626
|
+
declarations: [...COMPONENT$6],
|
|
6627
|
+
imports: [...MODULES$6],
|
|
6628
|
+
exports: [...COMPONENT$6],
|
|
6530
6629
|
providers: [],
|
|
6531
6630
|
}]
|
|
6532
6631
|
}] });
|
|
@@ -6544,19 +6643,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
6544
6643
|
args: [{ selector: 'ax-range-slider', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-range-slider' }, template: "<input type=\"range\" min=\"1\" max=\"100\" value=\"50\" class=\"ax-range-slider-input\">" }]
|
|
6545
6644
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
6546
6645
|
|
|
6547
|
-
const COMPONENT$
|
|
6548
|
-
const MODULES$
|
|
6646
|
+
const COMPONENT$5 = [AXRangeSliderComponent];
|
|
6647
|
+
const MODULES$5 = [CommonModule];
|
|
6549
6648
|
class AXRangeSliderModule {
|
|
6550
6649
|
}
|
|
6551
6650
|
AXRangeSliderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRangeSliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6552
6651
|
AXRangeSliderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRangeSliderModule, declarations: [AXRangeSliderComponent], imports: [CommonModule], exports: [AXRangeSliderComponent] });
|
|
6553
|
-
AXRangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRangeSliderModule, providers: [], imports: [[...MODULES$
|
|
6652
|
+
AXRangeSliderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRangeSliderModule, providers: [], imports: [[...MODULES$5]] });
|
|
6554
6653
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXRangeSliderModule, decorators: [{
|
|
6555
6654
|
type: NgModule,
|
|
6556
6655
|
args: [{
|
|
6557
|
-
declarations: [...COMPONENT$
|
|
6558
|
-
imports: [...MODULES$
|
|
6559
|
-
exports: [...COMPONENT$
|
|
6656
|
+
declarations: [...COMPONENT$5],
|
|
6657
|
+
imports: [...MODULES$5],
|
|
6658
|
+
exports: [...COMPONENT$5],
|
|
6560
6659
|
providers: [],
|
|
6561
6660
|
}]
|
|
6562
6661
|
}] });
|
|
@@ -6648,6 +6747,61 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
6648
6747
|
}]
|
|
6649
6748
|
}] });
|
|
6650
6749
|
|
|
6750
|
+
class AXSearchBoxComponent extends AXBaseComponentMixin {
|
|
6751
|
+
constructor(_elementRef, _cdr, _parent) {
|
|
6752
|
+
super(_elementRef, _cdr);
|
|
6753
|
+
this._parent = _parent;
|
|
6754
|
+
this.placeholder = 'common.search';
|
|
6755
|
+
this.debounceTime = 300;
|
|
6756
|
+
this.searchExp = null;
|
|
6757
|
+
}
|
|
6758
|
+
_onSearchExprChanged(e) {
|
|
6759
|
+
if (this._parent && this._parent.search) {
|
|
6760
|
+
this._parent.search(e.value);
|
|
6761
|
+
}
|
|
6762
|
+
}
|
|
6763
|
+
focus() {
|
|
6764
|
+
this._textbox?.focus();
|
|
6765
|
+
}
|
|
6766
|
+
}
|
|
6767
|
+
AXSearchBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSearchBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXSearchableComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
6768
|
+
AXSearchBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXSearchBoxComponent, selector: "ax-search-box", inputs: { placeholder: "placeholder", debounceTime: "debounceTime", searchExp: "searchExp" }, viewQueries: [{ propertyName: "_textbox", first: true, predicate: AXTextBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\">\r\n </ax-icon>\r\n </ax-prefix>\r\n</ax-text-box>", components: [{ type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "placeholder", "maxLength", "type", "autoComplete"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSearchBoxComponent, decorators: [{
|
|
6770
|
+
type: Component,
|
|
6771
|
+
args: [{ selector: 'ax-search-box', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ax-text-box placeholder=\"{{ placeholder | trans }}\" [debounceTime]=\"debounceTime\" \r\n [(value)]=\"searchExp\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\">\r\n </ax-icon>\r\n </ax-prefix>\r\n</ax-text-box>" }]
|
|
6772
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: AXSearchableComponent, decorators: [{
|
|
6773
|
+
type: Optional
|
|
6774
|
+
}, {
|
|
6775
|
+
type: Inject,
|
|
6776
|
+
args: [AXSearchableComponent]
|
|
6777
|
+
}] }]; }, propDecorators: { _textbox: [{
|
|
6778
|
+
type: ViewChild,
|
|
6779
|
+
args: [AXTextBoxComponent]
|
|
6780
|
+
}], placeholder: [{
|
|
6781
|
+
type: Input
|
|
6782
|
+
}], debounceTime: [{
|
|
6783
|
+
type: Input
|
|
6784
|
+
}], searchExp: [{
|
|
6785
|
+
type: Input
|
|
6786
|
+
}] } });
|
|
6787
|
+
|
|
6788
|
+
const COMPONENT$4 = [AXSearchBoxComponent];
|
|
6789
|
+
const MODULES$4 = [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule];
|
|
6790
|
+
class AXSearchBoxModule {
|
|
6791
|
+
}
|
|
6792
|
+
AXSearchBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSearchBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6793
|
+
AXSearchBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSearchBoxModule, declarations: [AXSearchBoxComponent], imports: [CommonModule, AXTranslationModule, AXDecoratorModule, AXTextBoxModule], exports: [AXSearchBoxComponent] });
|
|
6794
|
+
AXSearchBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSearchBoxModule, providers: [], imports: [[...MODULES$4]] });
|
|
6795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSearchBoxModule, decorators: [{
|
|
6796
|
+
type: NgModule,
|
|
6797
|
+
args: [{
|
|
6798
|
+
declarations: [...COMPONENT$4],
|
|
6799
|
+
imports: [...MODULES$4],
|
|
6800
|
+
exports: [...COMPONENT$4],
|
|
6801
|
+
providers: [],
|
|
6802
|
+
}]
|
|
6803
|
+
}] });
|
|
6804
|
+
|
|
6651
6805
|
/**
|
|
6652
6806
|
* The Button is a component which detects user interaction and triggers a corresponding event
|
|
6653
6807
|
*
|
|
@@ -6667,7 +6821,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
6667
6821
|
* Defines the clearButton.
|
|
6668
6822
|
*/
|
|
6669
6823
|
this.clearButton = false;
|
|
6670
|
-
this._searchSettings = { enabled: false, expr: null };
|
|
6671
6824
|
/**
|
|
6672
6825
|
* Defines the checkbox.
|
|
6673
6826
|
*/
|
|
@@ -6681,15 +6834,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
6681
6834
|
this._popoverWidth = this._isMobile ? null : this._target.offsetWidth;
|
|
6682
6835
|
});
|
|
6683
6836
|
}
|
|
6684
|
-
/**
|
|
6685
|
-
* Defines the search.
|
|
6686
|
-
*/
|
|
6687
|
-
get searchSettings() {
|
|
6688
|
-
return this._searchSettings;
|
|
6689
|
-
}
|
|
6690
|
-
set searchSettings(v) {
|
|
6691
|
-
this._searchSettings = v || { enabled: false, expr: null };
|
|
6692
|
-
}
|
|
6693
6837
|
get emptyTemplate() {
|
|
6694
6838
|
return this._contentEmptyTemplate;
|
|
6695
6839
|
}
|
|
@@ -6732,7 +6876,6 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
6732
6876
|
}
|
|
6733
6877
|
_checkForLoadData() {
|
|
6734
6878
|
const list = this.listContainer.nativeElement;
|
|
6735
|
-
//const headerSize = Array.from(list.parentElement.querySelectorAll<HTMLDivElement>('.ax-header')).reduce((v, s) => v + s.offsetHeight, 0);
|
|
6736
6879
|
if (this.loadedCount < this.totalCount && list.scrollHeight < ((list.parentElement.clientHeight) * 1.5)) {
|
|
6737
6880
|
this._fetchData();
|
|
6738
6881
|
}
|
|
@@ -6795,6 +6938,8 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
6795
6938
|
}
|
|
6796
6939
|
}
|
|
6797
6940
|
_handlePopoverKeydown(e) {
|
|
6941
|
+
if (e.target.tagName == "INPUT" && ['Space', 'Backspace'].includes(e.code))
|
|
6942
|
+
return;
|
|
6798
6943
|
if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && this.displayItems.length > 0) {
|
|
6799
6944
|
this.isUserInput = true;
|
|
6800
6945
|
this._focusItemByNav((e.key === 'ArrowDown' ? 1 : -1));
|
|
@@ -6808,8 +6953,9 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
6808
6953
|
e.preventDefault();
|
|
6809
6954
|
}
|
|
6810
6955
|
else if ((e.code === 'Space' || e.code === 'Enter')) {
|
|
6956
|
+
debugger;
|
|
6811
6957
|
e.preventDefault();
|
|
6812
|
-
const focusedItemId = this.listContainer.nativeElement.querySelector('.ax-state-focus')
|
|
6958
|
+
const focusedItemId = this.listContainer.nativeElement.querySelector('.ax-state-focus')?.dataset?.id;
|
|
6813
6959
|
const focusedItem = _.findLast(this.flatItems, [this.valueField, focusedItemId]);
|
|
6814
6960
|
if (focusedItem) {
|
|
6815
6961
|
if (this.isItemDisabled(focusedItem)) {
|
|
@@ -6846,6 +6992,7 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
6846
6992
|
else {
|
|
6847
6993
|
this._focusSelectedItem();
|
|
6848
6994
|
}
|
|
6995
|
+
debugger;
|
|
6849
6996
|
if (this._searchBox && !this._isMobile) {
|
|
6850
6997
|
this._searchBox.focus();
|
|
6851
6998
|
}
|
|
@@ -6921,32 +7068,43 @@ class AXSelectBoxComponent extends AXBaseSelectionDropdownMixin {
|
|
|
6921
7068
|
}
|
|
6922
7069
|
_onSearchExprChanged(e) {
|
|
6923
7070
|
this.empty();
|
|
7071
|
+
this._forceFocus = true;
|
|
7072
|
+
this._fetchData();
|
|
7073
|
+
}
|
|
7074
|
+
search(exp) {
|
|
7075
|
+
debugger;
|
|
7076
|
+
this.empty();
|
|
7077
|
+
this._forceFocus = true;
|
|
6924
7078
|
this._fetchData();
|
|
6925
7079
|
}
|
|
6926
7080
|
_fetchData() {
|
|
6927
|
-
super._fetchData({ searchQuery: this._searchBox?.
|
|
7081
|
+
super._fetchData({ searchQuery: this._searchBox?.searchExp });
|
|
6928
7082
|
}
|
|
6929
7083
|
}
|
|
6930
7084
|
AXSelectBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSelectBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i1$4.AXPlatform }], target: i0.ɵɵFactoryTarget.Component });
|
|
6931
|
-
AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", pageSize: "pageSize", valueField: "valueField", textField: "textField", items: "items", disabledField: "disabledField", disabledCallback: "disabledCallback", multiple: "multiple", selectionMode: "selectionMode", clearButton: "clearButton", searchSettings: "searchSettings", checkbox: "checkbox" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", valueChanged: "valueChanged" }, host: { listeners: { "keydown": "_handleKeydown($event)" }, classAttribute: "ax-editor-container ax-drop-down" }, queries: [{ propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }, { propertyName: "_searchBox", first: true, predicate: ["searchBox"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"searchSettings.enabled || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\">\r\n <div *ngIf=\"_isMobile\" class=\"ax-header\">\r\n <span>{{_popoverTitle}}</span>\r\n <i class=\"ax-ic {{multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'}}\" (click)=\"close()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n <div *ngIf=\"searchSettings.enabled\" class=\"ax-p-2\" [cdkTrapFocus]=\"true\" class=\"ax-header\">\r\n <ax-text-box #searchBox placeholder=\"{{ 'common.search' | trans }}\" [debounceTime]=\"500\" \r\n class=\"ax-w-full ax-sm\" [(value)]=\"searchSettings.expr\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-text-box>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>", components: [{ type: AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass"], outputs: ["onOpened", "onClosed"] }, { type: AXTextBoxComponent, selector: "ax-text-box", inputs: ["disabled", "tabIndex", "readonly", "allowNull", "value", "debounceTime", "name", "checked", "placeholder", "maxLength", "type", "autoComplete"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7085
|
+
AXSelectBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXSelectBoxComponent, selector: "ax-select-box", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position", disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", debounceTime: "debounceTime", name: "name", checked: "checked", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", pageSize: "pageSize", valueField: "valueField", textField: "textField", items: "items", disabledField: "disabledField", disabledCallback: "disabledCallback", multiple: "multiple", selectionMode: "selectionMode", clearButton: "clearButton", checkbox: "checkbox" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged", valueChanged: "valueChanged" }, host: { listeners: { "keydown": "_handleKeydown($event)" }, classAttribute: "ax-editor-container ax-drop-down" }, providers: [
|
|
7086
|
+
{ provide: AXClosbaleComponent, useExisting: AXSelectBoxComponent },
|
|
7087
|
+
{ provide: AXSearchableComponent, useExisting: AXSelectBoxComponent }
|
|
7088
|
+
], queries: [{ propertyName: "_searchBox", first: true, predicate: AXSearchBoxComponent, descendants: true, static: true }, { propertyName: "_contentEmptyTemplate", first: true, predicate: ["emptyTemplate"], descendants: true }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }, { propertyName: "listContainer", first: true, predicate: ["listContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\" >\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title [text]=\"_popoverTitle\"></ax-title>\r\n <ax-close-button [icon]=\"multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'\"></ax-close-button>\r\n </ax-header>\r\n <div class=\"ax-p-2\" [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\">\r\n <ng-content select=\"ax-search-box\" ></ng-content>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>", components: [{ type: AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { type: AXDecoratorSuffixComponent, selector: "ax-suffix" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }, { type: AXDecoratorPrefixComponent, selector: "ax-prefix" }, { type: AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "text"], outputs: ["visibleChange"] }, { type: AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["icon"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "trans": i1$4.AXTranslatorPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
6932
7089
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXSelectBoxComponent, decorators: [{
|
|
6933
7090
|
type: Component,
|
|
6934
|
-
args: [{ selector: 'ax-select-box', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...DATALIST_INPUTS, ...SELECTION_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...SELECTION_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"searchSettings.enabled || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\">\r\n <div *ngIf=\"_isMobile\" class=\"ax-header\">\r\n <span>{{_popoverTitle}}</span>\r\n <i class=\"ax-ic {{multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'}}\" (click)=\"close()\"\r\n tabindex=\"1\"></i>\r\n </div>\r\n <div *ngIf=\"searchSettings.enabled\" class=\"ax-p-2\" [cdkTrapFocus]=\"true\" class=\"ax-header\">\r\n <ax-text-box #searchBox placeholder=\"{{ 'common.search' | trans }}\" [debounceTime]=\"500\" \r\n class=\"ax-w-full ax-sm\" [(value)]=\"searchSettings.expr\" (onValueChanged)=\"_onSearchExprChanged($event)\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-ic ax-ic-magnify\">\r\n </ax-icon>\r\n </ax-prefix>\r\n </ax-text-box>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>" }]
|
|
7091
|
+
args: [{ selector: 'ax-select-box', inputs: [...DROPDOWN_INPUTS, ...INTERACTIVE_INPUTS, ...VALUE_INPUTS, ...TEXTBOX_INPUTS, ...DATALIST_INPUTS, ...SELECTION_INPUTS], outputs: [...DROPDOWN_OUTPUT, ...INTERACTIVE_OUTPUT, ...VALUE_OUTPUT, ...TEXTBOX_OUTPUT, ...SELECTION_OUTPUT], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
7092
|
+
{ provide: AXClosbaleComponent, useExisting: AXSelectBoxComponent },
|
|
7093
|
+
{ provide: AXSearchableComponent, useExisting: AXSelectBoxComponent }
|
|
7094
|
+
], host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<div class=\"ax-dropdown-content\" [class.ax-state-disabled]=\"disabled\" (click)=\"_handleInputClickEvent($event)\">\r\n <div class=\"ax-select-box-selection\" [tabindex]=\"tabIndex\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n <ng-container *ngIf=\"selectedItems && selectedItems.length; else showPlaceholder\">\r\n <ng-container *ngIf=\"!multiple; then singleSelectedTemplate; else multipleSelectedTemplate\"></ng-container>\r\n <ng-template #singleSelectedTemplate>\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <span class=\"ax-mx-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </ng-container>\r\n </ng-template>\r\n <ng-template #multipleSelectedTemplate>\r\n <div class=\"ax-flex ax-mx-2\">\r\n <ng-container *ngFor=\"let item of selectedItems\">\r\n <ax-badge [text]=\"_getItemDisplayTextTemplte(item)\" color=\"light\" class=\"ax-me-2\">\r\n <ax-suffix>\r\n <ax-icon icon=\"ax-ic ax-ic-close ax-cursor-pointer\"\r\n (click)=\"_handleBadgeRemove($event,item)\"></ax-icon>\r\n </ax-suffix>\r\n </ax-badge>\r\n </ng-container>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #showPlaceholder>\r\n <div class=\"ax-placeholder\" role=\"textbox\" area-readonly=\"true\"> {{placeholder}}</div>\r\n </ng-template>\r\n </div>\r\n</div>\r\n<ax-button color=\"light\" look=\"blank\" (onClick)=\"clear()\" [tabIndex]=\"-1\"\r\n *ngIf=\"value && clearButton && !(disabled || readonly)\">\r\n <ax-icon icon=\"ax-ic ax-ic-close\"></ax-icon>\r\n</ax-button>\r\n<ax-button [disabled]=\"disabled\" [tabIndex]=\"-1\" color=\"light\" look=\"blank\" (onClick)=\"_handleArrowClickEvent($event)\">\r\n <ax-prefix *ngIf=\"(isLoading && !this.popover.isOpen);else icon\">\r\n <ax-loading type=\"spinner\"></ax-loading>\r\n </ax-prefix>\r\n <ng-template #icon>\r\n <ax-icon #icon icon=\"ax-ic ax-ic-chevron ax-transform ax--rotate-90\"></ax-icon>\r\n </ng-template>\r\n</ax-button>\r\n<ng-content select=\"ax-validation-rule\">\r\n</ng-content>\r\n<ng-content select=\"ax-suffix\">\r\n</ng-content>\r\n<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'manual'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"true\"\r\n (onOpened)=\"_handlePopupOnOpened($event)\" (onClosed)=\"_handlePopupOnClosed($event)\">\r\n <div class=\"ax-overlay-pane \" (keydown)=\"_handlePopoverKeydown($event)\" tabindex=\"0\" aria-modal=\"true\" cdkTrapFocus\r\n [class.ax-overlay-actionsheet]=\"_isMobile\" [class.ax-full]=\"_searchBox || isLazy\"\r\n [style.min-width.px]=\"_popoverWidth\">\r\n <div class=\"ax-list\" >\r\n <ax-header *ngIf=\"_isMobile\" >\r\n <ax-title [text]=\"_popoverTitle\"></ax-title>\r\n <ax-close-button [icon]=\"multiple?'ax-ic-check !ax-text-primary-500':'ax-ic-close'\"></ax-close-button>\r\n </ax-header>\r\n <div class=\"ax-p-2\" [class.ax-hidden]=\"!_searchBox\" [cdkTrapFocus]=\"_searchBox!=null\">\r\n <ng-content select=\"ax-search-box\" ></ng-content>\r\n </div>\r\n <div class=\"ax-content ax-list-items-container ax-default\" (scroll)=\"_handleListScroll($event)\"\r\n #listContainer>\r\n <ng-container *ngIf=\"displayItems.length; else tmpEmpty\">\r\n <ul>\r\n <ng-container *ngTemplateOutlet=\"tmpTree; context:{ list: displayItems }\">\r\n </ng-container>\r\n <ng-template #tmpTree let-list=\"list\">\r\n <ng-container *ngFor=\"let item of list;let i = index;trackBy : _trackByFunction\">\r\n <ng-container *ngIf=\"itemTemplate; else defualtTemplate\">\r\n <li class=\"ax-list-item\" (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <ng-container\r\n *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item,direction:direction}\">\r\n </ng-container>\r\n </li>\r\n </ng-container>\r\n <ng-template #defualtTemplate>\r\n <ng-container *ngIf=\"item.children?.length > 0;else tmpItem\">\r\n <li class=\"ax-list-item-group\" [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n <ul *ngIf=\"item.children?.length > 0\">\r\n <ng-container\r\n *ngTemplateOutlet=\"tmpTree; context:{ list: item.children }\">\r\n </ng-container>\r\n </ul>\r\n </li>\r\n </ng-container>\r\n <ng-template #tmpItem>\r\n <ng-container *ngIf=\"!multiple; else multipleTemplate\">\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <span> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-container>\r\n <ng-template #multipleTemplate>\r\n <li class=\"ax-list-item\" [class.ax-state-selected]=\"isItemSelected(item)\"\r\n [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n [class.ax-check-box]=\"checkbox\" [attr.tabindex]=\"i\"\r\n (click)=\"_handleOnItemClick($event,item)\"\r\n [attr.data-id]=\"item[this.valueField]\">\r\n <input type=\"checkbox\" [class.ax-state-disabled]=\"isItemDisabled(item)\"\r\n *ngIf=\"checkbox\" [checked]=\"isItemSelected(item)\"\r\n [disabled]=\"isItemDisabled(item)\">\r\n <span class=\"ax-ms-2\"> {{ _getItemDisplayTextTemplte(item) }}</span>\r\n </li>\r\n </ng-template>\r\n </ng-template>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n </ul>\r\n </ng-container>\r\n <ng-container *ngIf=\"isLoading\">\r\n <ng-container *ngIf=\"loadingTemplate; else elseLoadingTemplate\">\r\n <ng-container *ngTemplateOutlet=\"loadingTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseLoadingTemplate>\r\n <div class=\"ax-flex ax-items-center ax-justify-center ax-p-4\">\r\n <ax-loading text=\"{{ 'layout.loading.text' | trans }}\"></ax-loading>\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n <ng-template #tmpEmpty>\r\n <ng-container *ngIf=\"!isLoading\">\r\n <ng-container *ngIf=\"emptyTemplate; else elseEmptyTemplate\">\r\n <ng-container *ngTemplateOutlet=\"emptyTemplate\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #elseEmptyTemplate>\r\n <div class=\"ax-list-item\">\r\n {{ 'common.no-result-found' | trans }}\r\n </div>\r\n </ng-template>\r\n </ng-container>\r\n </ng-template>\r\n\r\n </div>\r\n <!-- <div class=\"ax-list-items-container ax-vertical ax-default\" [class.ax-full]=\"_isMobile\"\r\n >\r\n \r\n </div> -->\r\n <!-- <div class=\"ax-footer\">footer</div> -->\r\n </div>\r\n </div>\r\n</ax-popover>" }]
|
|
6935
7095
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i1$4.AXPlatform }]; }, propDecorators: { popover: [{
|
|
6936
7096
|
type: ViewChild,
|
|
6937
7097
|
args: [AXPopoverComponent, { static: true }]
|
|
7098
|
+
}], _searchBox: [{
|
|
7099
|
+
type: ContentChild,
|
|
7100
|
+
args: [AXSearchBoxComponent, { static: true }]
|
|
6938
7101
|
}], clearButton: [{
|
|
6939
7102
|
type: Input
|
|
6940
|
-
}], searchSettings: [{
|
|
6941
|
-
type: Input
|
|
6942
7103
|
}], checkbox: [{
|
|
6943
7104
|
type: Input
|
|
6944
7105
|
}], listContainer: [{
|
|
6945
7106
|
type: ViewChild,
|
|
6946
7107
|
args: ['listContainer', { static: true }]
|
|
6947
|
-
}], _searchBox: [{
|
|
6948
|
-
type: ViewChild,
|
|
6949
|
-
args: ['searchBox']
|
|
6950
7108
|
}], _contentEmptyTemplate: [{
|
|
6951
7109
|
type: ContentChild,
|
|
6952
7110
|
args: ['emptyTemplate']
|
|
@@ -6963,9 +7121,8 @@ AXSelectBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", versi
|
|
|
6963
7121
|
FormsModule,
|
|
6964
7122
|
AXCheckBoxModule,
|
|
6965
7123
|
AXBadgeModule,
|
|
6966
|
-
|
|
7124
|
+
AXDecoratorModule,
|
|
6967
7125
|
AXTranslationModule,
|
|
6968
|
-
AXIconModule,
|
|
6969
7126
|
AXPopoverModule,
|
|
6970
7127
|
AXButtonModule,
|
|
6971
7128
|
AXLoadingModule,
|
|
@@ -6976,9 +7133,8 @@ AXSelectBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versi
|
|
|
6976
7133
|
FormsModule,
|
|
6977
7134
|
AXCheckBoxModule,
|
|
6978
7135
|
AXBadgeModule,
|
|
6979
|
-
|
|
7136
|
+
AXDecoratorModule,
|
|
6980
7137
|
AXTranslationModule,
|
|
6981
|
-
AXIconModule,
|
|
6982
7138
|
AXPopoverModule,
|
|
6983
7139
|
AXButtonModule,
|
|
6984
7140
|
AXLoadingModule,
|
|
@@ -6993,9 +7149,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
6993
7149
|
FormsModule,
|
|
6994
7150
|
AXCheckBoxModule,
|
|
6995
7151
|
AXBadgeModule,
|
|
6996
|
-
|
|
7152
|
+
AXDecoratorModule,
|
|
6997
7153
|
AXTranslationModule,
|
|
6998
|
-
AXIconModule,
|
|
6999
7154
|
AXPopoverModule,
|
|
7000
7155
|
AXButtonModule,
|
|
7001
7156
|
AXLoadingModule,
|
|
@@ -7349,11 +7504,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
7349
7504
|
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
|
|
7350
7505
|
|
|
7351
7506
|
const COMPONENT$3 = [AXTabsComponent, AXTabItemComponent, AXTabContentDirective];
|
|
7352
|
-
const MODULES$3 = [CommonModule, PortalModule,
|
|
7507
|
+
const MODULES$3 = [CommonModule, PortalModule, AXDecoratorModule];
|
|
7353
7508
|
class AXTabsModule {
|
|
7354
7509
|
}
|
|
7355
7510
|
AXTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7356
|
-
AXTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXTabsModule, declarations: [AXTabsComponent, AXTabItemComponent, AXTabContentDirective], imports: [CommonModule, PortalModule,
|
|
7511
|
+
AXTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXTabsModule, declarations: [AXTabsComponent, AXTabItemComponent, AXTabContentDirective], imports: [CommonModule, PortalModule, AXDecoratorModule], exports: [AXTabsComponent, AXTabItemComponent, AXTabContentDirective] });
|
|
7357
7512
|
AXTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXTabsModule, providers: [], imports: [[...MODULES$3]] });
|
|
7358
7513
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXTabsModule, decorators: [{
|
|
7359
7514
|
type: NgModule,
|
|
@@ -7696,13 +7851,13 @@ class AXToastComponent extends AXBaseComponentMixin {
|
|
|
7696
7851
|
this._toastWidth = 100;
|
|
7697
7852
|
}
|
|
7698
7853
|
onInit() {
|
|
7699
|
-
this._getHostElement().classList.add(`ax-${this.options.
|
|
7854
|
+
this._getHostElement().classList.add(`ax-${this.options.color}`);
|
|
7700
7855
|
if (this.options.timeOut) {
|
|
7701
7856
|
setTimeout(() => {
|
|
7702
7857
|
this.close();
|
|
7703
7858
|
}, this.options.timeOut);
|
|
7704
7859
|
}
|
|
7705
|
-
switch (this.options.
|
|
7860
|
+
switch (this.options.color) {
|
|
7706
7861
|
case 'success':
|
|
7707
7862
|
this._icon = 'ax-ic ax-ic-check-filled';
|
|
7708
7863
|
break;
|
|
@@ -7717,25 +7872,20 @@ class AXToastComponent extends AXBaseComponentMixin {
|
|
|
7717
7872
|
break;
|
|
7718
7873
|
}
|
|
7719
7874
|
}
|
|
7720
|
-
_handleButtonClick(button) {
|
|
7721
|
-
if (button.onClick) {
|
|
7722
|
-
button.onClick(this);
|
|
7723
|
-
}
|
|
7724
|
-
}
|
|
7725
7875
|
}
|
|
7726
7876
|
AXToastComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXToastComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
7727
|
-
AXToastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXToastComponent, selector: "ax-toast",
|
|
7877
|
+
AXToastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.2", type: AXToastComponent, selector: "ax-toast", providers: [{ provide: AXClosbaleComponent, useExisting: AXToastComponent }], usesInheritance: true, ngImport: i0, template: "<!-- <div class=\"ax-toast-header\">\r\n <div class=\"ax-toast-title\">\r\n <i class=\"ax-toast-icon {{_icon}}\"></i>\r\n <span>{{options.title}}</span>\r\n </div>\r\n <i class=\"ax-ic ax-ic-close ax-toast-dismiss-icon\" *ngIf=\"options.closeable\" (click)=\"close()\"></i>\r\n</div>\r\n<div class=\"ax-toast-content\" *ngIf=\"options.content\">{{options.content}}</div> -->\r\n\r\n<!-- <ax-header>\r\n <ax-prefix>\r\n <ax-icon *ngIf=\"_icon\" [icon]=\"_icon\"></ax-icon>\r\n <ax-title [text]=\"options.title\"></ax-title>\r\n </ax-prefix>\r\n <ax-close-button *ngIf=\"options.closeable\"></ax-close-button>\r\n</ax-header>\r\n<ax-content *ngIf=\"options.content\">\r\n {{options.content}}\r\n <ax-footer *ngIf=\"options?.buttons?.length\">\r\n <ng-container >\r\n <ax-button *ngFor=\"let button of options.buttons\" [text]=\"button.text\" [text]=\"button.text\"\r\n (onClick)=\"button.onClick\" [class]=\"button.cssClass\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n</ax-content>\r\n<div class=\"ax-toast-progress ax-{{options.type}}\" [style.animation-duration.ms]=\"options.timeOut\"\r\n *ngIf=\"options.timeOut\">\r\n</div> -->\r\n<ax-alert [color]=\"options.color\" [look]=\"options.look\" [timeOut]=\"options.timeOut\">\r\n <ax-header *ngIf=\"options.title\">\r\n <ax-icon *ngIf=\"_icon\" [icon]=\"_icon\"></ax-icon>\r\n <ax-title [text]=\"options.title\"></ax-title>\r\n </ax-header>\r\n <ax-content *ngIf=\"options.content\">\r\n <ax-icon *ngIf=\"_icon && !options.title\" [icon]=\"_icon\"></ax-icon>\r\n {{options.content}}\r\n </ax-content>\r\n <ax-footer *ngIf=\"options?.buttons?.length\">\r\n <ng-container>\r\n <ax-button *ngFor=\"let button of options.buttons\" [text]=\"button.text\" [text]=\"button.text\"\r\n (onClick)=\"button.onClick\" [class]=\"button.cssClass\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n</ax-alert>", components: [{ type: AXAlertComponent, selector: "ax-alert", inputs: ["color", "look", "timeOut", "visible"] }, { type: AXDecoratorHeaderComponent, selector: "ax-header" }, { type: AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { type: AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { type: AXDecoratorContentComponent, selector: "ax-content" }, { type: AXDecoratorFooterComponent, selector: "ax-footer" }, { type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "size", "color", "look", "text", "submitBehavior", "cancelBehavior", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
7728
7878
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXToastComponent, decorators: [{
|
|
7729
7879
|
type: Component,
|
|
7730
|
-
args: [{ selector: 'ax-toast', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None,
|
|
7880
|
+
args: [{ selector: 'ax-toast', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{ provide: AXClosbaleComponent, useExisting: AXToastComponent }], template: "<!-- <div class=\"ax-toast-header\">\r\n <div class=\"ax-toast-title\">\r\n <i class=\"ax-toast-icon {{_icon}}\"></i>\r\n <span>{{options.title}}</span>\r\n </div>\r\n <i class=\"ax-ic ax-ic-close ax-toast-dismiss-icon\" *ngIf=\"options.closeable\" (click)=\"close()\"></i>\r\n</div>\r\n<div class=\"ax-toast-content\" *ngIf=\"options.content\">{{options.content}}</div> -->\r\n\r\n<!-- <ax-header>\r\n <ax-prefix>\r\n <ax-icon *ngIf=\"_icon\" [icon]=\"_icon\"></ax-icon>\r\n <ax-title [text]=\"options.title\"></ax-title>\r\n </ax-prefix>\r\n <ax-close-button *ngIf=\"options.closeable\"></ax-close-button>\r\n</ax-header>\r\n<ax-content *ngIf=\"options.content\">\r\n {{options.content}}\r\n <ax-footer *ngIf=\"options?.buttons?.length\">\r\n <ng-container >\r\n <ax-button *ngFor=\"let button of options.buttons\" [text]=\"button.text\" [text]=\"button.text\"\r\n (onClick)=\"button.onClick\" [class]=\"button.cssClass\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n</ax-content>\r\n<div class=\"ax-toast-progress ax-{{options.type}}\" [style.animation-duration.ms]=\"options.timeOut\"\r\n *ngIf=\"options.timeOut\">\r\n</div> -->\r\n<ax-alert [color]=\"options.color\" [look]=\"options.look\" [timeOut]=\"options.timeOut\">\r\n <ax-header *ngIf=\"options.title\">\r\n <ax-icon *ngIf=\"_icon\" [icon]=\"_icon\"></ax-icon>\r\n <ax-title [text]=\"options.title\"></ax-title>\r\n </ax-header>\r\n <ax-content *ngIf=\"options.content\">\r\n <ax-icon *ngIf=\"_icon && !options.title\" [icon]=\"_icon\"></ax-icon>\r\n {{options.content}}\r\n </ax-content>\r\n <ax-footer *ngIf=\"options?.buttons?.length\">\r\n <ng-container>\r\n <ax-button *ngFor=\"let button of options.buttons\" [text]=\"button.text\" [text]=\"button.text\"\r\n (onClick)=\"button.onClick\" [class]=\"button.cssClass\"></ax-button>\r\n </ng-container>\r\n </ax-footer>\r\n</ax-alert>" }]
|
|
7731
7881
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
7732
7882
|
|
|
7733
7883
|
const COMPONENT$1 = [AXToastComponent];
|
|
7734
|
-
const MODULES$1 = [CommonModule, AXButtonModule];
|
|
7884
|
+
const MODULES$1 = [CommonModule, AXButtonModule, AXDecoratorModule, AXAlertModule];
|
|
7735
7885
|
class AXToastModule {
|
|
7736
7886
|
}
|
|
7737
7887
|
AXToastModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7738
|
-
AXToastModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXToastModule, declarations: [AXToastComponent], imports: [CommonModule, AXButtonModule], exports: [AXToastComponent] });
|
|
7888
|
+
AXToastModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXToastModule, declarations: [AXToastComponent], imports: [CommonModule, AXButtonModule, AXDecoratorModule, AXAlertModule], exports: [AXToastComponent] });
|
|
7739
7889
|
AXToastModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXToastModule, providers: [], imports: [[...MODULES$1]] });
|
|
7740
7890
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImport: i0, type: AXToastModule, decorators: [{
|
|
7741
7891
|
type: NgModule,
|
|
@@ -7753,32 +7903,60 @@ class AXToastService {
|
|
|
7753
7903
|
this.parentInjector = parentInjector;
|
|
7754
7904
|
this._activeList = [];
|
|
7755
7905
|
}
|
|
7906
|
+
primary(content) {
|
|
7907
|
+
this.show({
|
|
7908
|
+
timeOut: 2500,
|
|
7909
|
+
color: 'primary',
|
|
7910
|
+
content: content
|
|
7911
|
+
});
|
|
7912
|
+
}
|
|
7913
|
+
secondary(content) {
|
|
7914
|
+
this.show({
|
|
7915
|
+
timeOut: 2500,
|
|
7916
|
+
color: 'secondary',
|
|
7917
|
+
content: content
|
|
7918
|
+
});
|
|
7919
|
+
}
|
|
7756
7920
|
info(content) {
|
|
7757
7921
|
this.show({
|
|
7758
7922
|
timeOut: 2500,
|
|
7759
|
-
|
|
7760
|
-
|
|
7923
|
+
color: 'info',
|
|
7924
|
+
content: content
|
|
7761
7925
|
});
|
|
7762
7926
|
}
|
|
7763
7927
|
success(content) {
|
|
7764
7928
|
this.show({
|
|
7765
7929
|
timeOut: 2500,
|
|
7766
|
-
|
|
7767
|
-
|
|
7930
|
+
color: 'success',
|
|
7931
|
+
content: content
|
|
7768
7932
|
});
|
|
7769
7933
|
}
|
|
7770
7934
|
warning(content) {
|
|
7771
7935
|
this.show({
|
|
7772
7936
|
timeOut: 2500,
|
|
7773
|
-
|
|
7774
|
-
|
|
7937
|
+
color: 'warning',
|
|
7938
|
+
content: content
|
|
7775
7939
|
});
|
|
7776
7940
|
}
|
|
7777
7941
|
danger(content) {
|
|
7778
7942
|
this.show({
|
|
7779
7943
|
timeOut: 2500,
|
|
7780
|
-
|
|
7781
|
-
|
|
7944
|
+
color: 'danger',
|
|
7945
|
+
content: content
|
|
7946
|
+
});
|
|
7947
|
+
}
|
|
7948
|
+
light(content) {
|
|
7949
|
+
this.show({
|
|
7950
|
+
timeOut: 2500,
|
|
7951
|
+
color: 'light',
|
|
7952
|
+
content: content
|
|
7953
|
+
});
|
|
7954
|
+
}
|
|
7955
|
+
dark(content) {
|
|
7956
|
+
this.show({
|
|
7957
|
+
timeOut: 2500,
|
|
7958
|
+
color: 'dark',
|
|
7959
|
+
content: content
|
|
7782
7960
|
});
|
|
7783
7961
|
}
|
|
7784
7962
|
show(options) {
|
|
@@ -8252,5 +8430,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.2", ngImpor
|
|
|
8252
8430
|
* Generated bundle index. Do not edit.
|
|
8253
8431
|
*/
|
|
8254
8432
|
|
|
8255
|
-
export { AXActionSheetComponent, AXActionSheetItemComponent, AXActionSheetModule, AXAlertButtonComponent, AXAlertComponent,
|
|
8433
|
+
export { AXActionSheetComponent, AXActionSheetItemComponent, AXActionSheetModule, AXAlertButtonComponent, AXAlertComponent, AXAlertModule, AXAvatarComponent, AXAvatarGroup, AXAvatarMixin, AXAvatarModule, AXBadgeComponent, AXBadgeModule, AXBaseAlertMixin, AXBaseBadgeMixin, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDatePickerMixin, AXBaseDropdownMixin, AXBaseItemButtonMixin, AXBaseMenuMixin, AXBasePageComponent, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTabItemMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXBreadCrumbsComponent, AXBreadCrumbsItemComponent, AXBreadcrumbsModule, AXButtonClickEvent, AXButtonComponent, AXButtonGroupComponent, AXButtonItemComponent, AXButtonModule, AXCalendarComponent, AXCalendarComponentMixin, AXCalendarModule, AXCarouselArrowsComponent, AXCarouselComponent, AXCarouselCore, AXCarouselItemComponent, AXCarouselModule, AXCarouselPagerComponent, AXCheckBoxComponent, AXCheckBoxModule, AXClickEvent, AXClosbaleComponent, AXCollapseComponent, AXCollapseGroupComponent, AXCollapseModule, AXCommonModule, AXDataListComponent, AXDataListModule, AXDatePickerComponent, AXDatepickerModule, AXDecoratorAddOnComponent, AXDecoratorCloseButtonComponent, AXDecoratorContentComponent, AXDecoratorFooterComponent, AXDecoratorHeaderComponent, AXDecoratorIconComponent, AXDecoratorModule, AXDecoratorPrefixComponent, AXDecoratorSuffixComponent, AXDecoratorTitleComponent, AXDialogComponent, AXDialogModule, AXDialogService, AXDrawerComponent, AXDrawerContainerComponent, AXDrawerModule, AXDropdownModule, AXDropdownPanelComponent, AXEvent, AXFocusEvent, AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXHtmlEvent, AXInfiniteScrollerDirective, AXInputMaskComponent, AXInputMaskModule, AXInteractiveComponenetMixin, AXItemClickEvent, AXLabelComponent, AXLabelModule, AXLoadingComponent, AXLoadingDirective, AXLoadingModule, AXLoadingService, AXLoadingSpinnerComponent, AXMenuComponent, AXMenuModule, AXNumberBoxComponent, AXNumberBoxModule, AXOverlayService, AXPageCloseEvent, AXPageClosedPromise, AXPageClosing, AXPageComponent, AXPageModule, AXPageResult, AXPasswordBoxComponent, AXPasswordBoxModule, AXPickerComponent, AXPickerModule, AXPopoverComponent, AXPopoverModule, AXPopupComponent, AXPopupModule, AXPopupService, AXProgressBarComponent, AXProgressBarModule, AXRadioComponent, AXRadioModule, AXRangeChangedEvent, AXRangeSliderComponent, AXRangeSliderModule, AXRatingComponent, AXRatingModule, AXResponsiveDirective, AXResultComponent, AXResultModule, AXSearchBoxComponent, AXSearchBoxModule, AXSearchableComponent, AXSelectBoxComponent, AXSelectBoxModule, AXSelectionListComponent, AXSelectionListModule, AXSelectionValueChangedEvent, AXSizableComponentMixin, AXSwitchComponent, AXSwitchModule, AXTabContentDirective, AXTabItemComponent, AXTabStripChangedEvent, AXTabsComponent, AXTabsModule, AXTextBoxComponent, AXTextBoxModule, AXTextareaComponent, AXTextareaModule, AXTimeBoxComponent, AXTimeBoxModule, AXToastComponent, AXToastModule, AXToastService, AXTooltipComponent, AXTooltipDirective, AXTooltipModule, AXTreeViewComponent, AXTreeViewModule, AXValidationModule, AXValidationRuleComponent, AXValidationRules, AXValueChangedEvent, AX_DIRECTIONS, AX_LOCATIONS, AX_STYLE_TYPES, BASE_INPUTS, BASE_OUTPUT, TAB_META_KEY, _BaseComponenetMixin };
|
|
8256
8434
|
//# sourceMappingURL=acorex-components.mjs.map
|