@acorex/components 5.0.2 → 5.0.4
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/README.md +24 -24
- package/acorex-components.d.ts +5 -5
- package/bundles/acorex-components.umd.js +6719 -6658
- package/bundles/acorex-components.umd.js.map +1 -1
- package/esm2015/acorex-components.js +4 -4
- package/esm2015/lib/alert/alert-button.component.js +52 -52
- package/esm2015/lib/alert/alert-contnet.component.js +21 -21
- package/esm2015/lib/alert/alert-footer.component.js +27 -27
- package/esm2015/lib/alert/alert-suffix.component.js +27 -27
- package/esm2015/lib/alert/alert-title.component.js +23 -23
- package/esm2015/lib/alert/alert.component.js +131 -130
- package/esm2015/lib/alert/alert.module.js +43 -43
- package/esm2015/lib/alert/index.js +8 -8
- package/esm2015/lib/avatar/avatar.component.js +55 -55
- package/esm2015/lib/avatar/avatar.module.js +21 -21
- package/esm2015/lib/avatar/index.js +3 -3
- package/esm2015/lib/base/common.module.js +18 -18
- package/esm2015/lib/base/custom-cdk-overlay.service.js +47 -47
- package/esm2015/lib/base/drawing.class.js +11 -11
- package/esm2015/lib/base/events.class.js +53 -47
- package/esm2015/lib/base/index.js +7 -7
- package/esm2015/lib/base/mixin/base-components.class.js +83 -83
- package/esm2015/lib/base/mixin/button-mixin.class.js +129 -129
- package/esm2015/lib/base/mixin/clickable-mixin.class.js +24 -24
- package/esm2015/lib/base/mixin/constratctor.js +2 -2
- package/esm2015/lib/base/mixin/datalist-component.class.js +97 -97
- package/esm2015/lib/base/mixin/dropdown-mixin.class.js +36 -36
- package/esm2015/lib/base/mixin/index.js +3 -3
- package/esm2015/lib/base/mixin/interactive-mixin.class.js +72 -72
- package/esm2015/lib/base/mixin/loading-mixin.class.js +18 -18
- package/esm2015/lib/base/mixin/mixin.class.js +23 -23
- package/esm2015/lib/base/mixin/selection-component.class.js +158 -158
- package/esm2015/lib/base/mixin/sizable-mixin.class.js +18 -18
- package/esm2015/lib/base/mixin/textbox-mixin.class.js +38 -38
- package/esm2015/lib/base/mixin/value-mixin.class.js +190 -190
- package/esm2015/lib/base/overlay.service.js +91 -91
- package/esm2015/lib/base/responsive.directive.js +34 -34
- package/esm2015/lib/base/styles.class.js +4 -4
- package/esm2015/lib/button/button-group.component.js +131 -131
- package/esm2015/lib/button/button-item.class.js +2 -2
- package/esm2015/lib/button/button-item.component.js +81 -81
- package/esm2015/lib/button/button.component.js +51 -52
- package/esm2015/lib/button/button.module.js +37 -37
- package/esm2015/lib/button/dropdown-button.component.js +200 -200
- package/esm2015/lib/button/index.js +7 -7
- package/esm2015/lib/calendar/calendar.component.js +59 -59
- package/esm2015/lib/calendar/calendar.module.js +24 -24
- package/esm2015/lib/calendar/index.js +3 -3
- package/esm2015/lib/carousel/carousel-arrows.component.js +53 -53
- package/esm2015/lib/carousel/carousel-item.component.js +21 -21
- package/esm2015/lib/carousel/carousel-pager.component.js +74 -74
- package/esm2015/lib/carousel/carousel-splidejs.class.js +82 -82
- package/esm2015/lib/carousel/carousel.class.js +10 -10
- package/esm2015/lib/carousel/carousel.component.js +246 -246
- package/esm2015/lib/carousel/carousel.module.js +24 -24
- package/esm2015/lib/carousel/index.js +7 -7
- package/esm2015/lib/checkbox/checkbox.component.js +40 -40
- package/esm2015/lib/checkbox/checkbox.module.js +20 -20
- package/esm2015/lib/checkbox/index.js +3 -3
- package/esm2015/lib/datalist/datalist.component.js +81 -81
- package/esm2015/lib/datalist/datalist.module.js +22 -22
- package/esm2015/lib/datalist/index.js +3 -3
- package/esm2015/lib/datepicker/datepicker.component.js +64 -64
- package/esm2015/lib/datepicker/datepicker.module.js +23 -23
- package/esm2015/lib/datepicker/index.js +3 -3
- package/esm2015/lib/decorators/decorators.module.js +22 -22
- package/esm2015/lib/decorators/index.js +4 -4
- package/esm2015/lib/decorators/prefix.component.js +27 -27
- package/esm2015/lib/decorators/suffix.component.js +35 -35
- package/esm2015/lib/dialog/dialog.class.js +2 -2
- package/esm2015/lib/dialog/dialog.component.js +45 -45
- package/esm2015/lib/dialog/dialog.module.js +26 -26
- package/esm2015/lib/dialog/dialog.service.js +127 -127
- package/esm2015/lib/dialog/index.js +5 -5
- package/esm2015/lib/drawer/drawer-container.component.js +73 -73
- package/esm2015/lib/drawer/drawer-content.component.js +27 -27
- package/esm2015/lib/drawer/drawer.component.js +145 -145
- package/esm2015/lib/drawer/drawer.module.js +23 -23
- package/esm2015/lib/drawer/index.js +5 -5
- package/esm2015/lib/dropdown/dropdown-panel.component.js +194 -191
- package/esm2015/lib/dropdown/dropdown.component.js +139 -139
- package/esm2015/lib/dropdown/dropdown.module.js +24 -24
- package/esm2015/lib/dropdown/index.js +4 -4
- package/esm2015/lib/form/form-field.component.js +20 -20
- package/esm2015/lib/form/form-field.module.js +21 -21
- package/esm2015/lib/form/form-hint.component.js +20 -20
- package/esm2015/lib/form/form.component.js +51 -51
- package/esm2015/lib/form/index.js +5 -5
- package/esm2015/lib/icon/icon.component.js +28 -28
- package/esm2015/lib/icon/icon.module.js +21 -21
- package/esm2015/lib/icon/index.js +3 -3
- package/esm2015/lib/input-mask/index.js +3 -3
- package/esm2015/lib/input-mask/input-mask.component.js +42 -42
- package/esm2015/lib/input-mask/input-mask.module.js +23 -23
- package/esm2015/lib/label/index.js +3 -3
- package/esm2015/lib/label/label.component.js +20 -20
- package/esm2015/lib/label/label.module.js +21 -21
- package/esm2015/lib/loading/index.js +6 -6
- package/esm2015/lib/loading/loading-spinner.component.js +32 -32
- package/esm2015/lib/loading/loading.component.js +54 -54
- package/esm2015/lib/loading/loading.directive.js +67 -67
- package/esm2015/lib/loading/loading.module.js +35 -35
- package/esm2015/lib/loading/loading.service.js +155 -155
- package/esm2015/lib/number-box/index.js +3 -3
- package/esm2015/lib/number-box/number-box.component.js +289 -289
- package/esm2015/lib/number-box/number-box.module.js +32 -32
- package/esm2015/lib/page/base-page.class.js +66 -66
- package/esm2015/lib/page/index.js +5 -5
- package/esm2015/lib/page/page-footer.component.js +32 -32
- package/esm2015/lib/page/page.component.js +33 -33
- package/esm2015/lib/page/page.module.js +18 -18
- package/esm2015/lib/popover/index.js +3 -3
- package/esm2015/lib/popover/popover.component.js +119 -119
- package/esm2015/lib/popover/popover.module.js +19 -19
- package/esm2015/lib/popup/index.js +4 -4
- package/esm2015/lib/popup/popup.component.js +97 -97
- package/esm2015/lib/popup/popup.module.js +26 -26
- package/esm2015/lib/popup/popup.service.js +94 -94
- package/esm2015/lib/range-slider/index.js +3 -0
- package/esm2015/lib/range-slider/range-slider.component.js +22 -0
- package/esm2015/lib/range-slider/range-slider.module.js +21 -0
- package/esm2015/lib/selectbox/index.js +3 -3
- package/esm2015/lib/selectbox/selectbox.component.js +193 -193
- package/esm2015/lib/selectbox/selectbox.module.js +21 -21
- package/esm2015/lib/selection-list/index.js +3 -3
- package/esm2015/lib/selection-list/selection-list.component.js +46 -46
- package/esm2015/lib/selection-list/selection-list.module.js +21 -21
- package/esm2015/lib/side-menu/index.js +3 -3
- package/esm2015/lib/side-menu/side-menu.component.js +21 -21
- package/esm2015/lib/side-menu/side-menu.module.js +21 -21
- package/esm2015/lib/switch/index.js +3 -3
- package/esm2015/lib/switch/switch.component.js +30 -30
- package/esm2015/lib/switch/switch.module.js +21 -21
- package/esm2015/lib/tabs/index.js +6 -6
- package/esm2015/lib/tabs/tab-strip.component.js +61 -61
- package/esm2015/lib/tabs/tab-view.component.js +46 -46
- package/esm2015/lib/tabs/tab.component.js +59 -59
- package/esm2015/lib/tabs/tabs.class.js +4 -4
- package/esm2015/lib/tabs/tabs.module.js +23 -23
- package/esm2015/lib/textbox/index.js +3 -3
- package/esm2015/lib/textbox/textbox.component.js +62 -60
- package/esm2015/lib/textbox/textbox.module.js +43 -39
- package/esm2015/lib/time-box/index.js +3 -3
- package/esm2015/lib/time-box/time-box.component.js +134 -134
- package/esm2015/lib/time-box/time-box.module.js +32 -32
- package/esm2015/lib/toast/index.js +5 -5
- package/esm2015/lib/toast/toast.class.js +2 -2
- package/esm2015/lib/toast/toast.component.js +50 -50
- package/esm2015/lib/toast/toast.module.js +22 -22
- package/esm2015/lib/toast/toast.service.js +114 -114
- package/esm2015/lib/tooltip/index.js +4 -4
- package/esm2015/lib/tooltip/tooltip.component.js +45 -45
- package/esm2015/lib/tooltip/tooltip.directive.js +86 -86
- package/esm2015/lib/tooltip/tooltip.module.js +23 -23
- package/esm2015/lib/validation/index.js +3 -3
- package/esm2015/lib/validation/validation-rule.widget.js +113 -113
- package/esm2015/lib/validation/validation.class.js +2 -2
- package/esm2015/lib/validation/validation.module.js +32 -32
- package/esm2015/public-api.js +39 -38
- package/fesm2015/acorex-components.js +5811 -5763
- package/fesm2015/acorex-components.js.map +1 -1
- package/lib/alert/alert-button.component.d.ts +13 -13
- package/lib/alert/alert-contnet.component.d.ts +5 -5
- package/lib/alert/alert-footer.component.d.ts +5 -5
- package/lib/alert/alert-suffix.component.d.ts +5 -5
- package/lib/alert/alert-title.component.d.ts +5 -5
- package/lib/alert/alert.component.d.ts +46 -46
- package/lib/alert/alert.module.d.ts +13 -13
- package/lib/alert/index.d.ts +7 -7
- package/lib/avatar/avatar.component.d.ts +20 -20
- package/lib/avatar/avatar.module.d.ts +8 -8
- package/lib/avatar/index.d.ts +2 -2
- package/lib/base/common.module.d.ts +7 -7
- package/lib/base/custom-cdk-overlay.service.d.ts +19 -19
- package/lib/base/drawing.class.d.ts +9 -9
- package/lib/base/events.class.d.ts +72 -65
- package/lib/base/index.d.ts +6 -6
- package/lib/base/mixin/base-components.class.d.ts +84 -84
- package/lib/base/mixin/button-mixin.class.d.ts +79 -79
- package/lib/base/mixin/clickable-mixin.class.d.ts +42 -42
- package/lib/base/mixin/constratctor.d.ts +4 -4
- package/lib/base/mixin/datalist-component.class.d.ts +54 -54
- package/lib/base/mixin/dropdown-mixin.class.d.ts +47 -47
- package/lib/base/mixin/index.d.ts +2 -2
- package/lib/base/mixin/interactive-mixin.class.d.ts +60 -63
- package/lib/base/mixin/loading-mixin.class.d.ts +46 -48
- package/lib/base/mixin/mixin.class.d.ts +814 -814
- package/lib/base/mixin/selection-component.class.d.ts +55 -55
- package/lib/base/mixin/sizable-mixin.class.d.ts +40 -40
- package/lib/base/mixin/textbox-mixin.class.d.ts +59 -61
- package/lib/base/mixin/value-mixin.class.d.ts +68 -71
- package/lib/base/overlay.service.d.ts +31 -31
- package/lib/base/responsive.directive.d.ts +10 -10
- package/lib/base/styles.class.d.ts +17 -17
- package/lib/button/button-group.component.d.ts +36 -35
- package/lib/button/button-item.class.d.ts +22 -22
- package/lib/button/button-item.component.d.ts +92 -92
- package/lib/button/button.component.d.ts +18 -18
- package/lib/button/button.module.d.ts +13 -13
- package/lib/button/dropdown-button.component.d.ts +234 -234
- package/lib/button/index.d.ts +6 -6
- package/lib/calendar/calendar.component.d.ts +16 -16
- package/lib/calendar/calendar.module.d.ts +11 -11
- package/lib/calendar/index.d.ts +2 -2
- package/lib/carousel/carousel-arrows.component.d.ts +14 -14
- package/lib/carousel/carousel-item.component.d.ts +8 -8
- package/lib/carousel/carousel-pager.component.d.ts +22 -22
- package/lib/carousel/carousel-splidejs.class.d.ts +18 -18
- package/lib/carousel/carousel.class.d.ts +48 -48
- package/lib/carousel/carousel.component.d.ts +62 -62
- package/lib/carousel/carousel.module.d.ts +11 -11
- package/lib/carousel/index.d.ts +6 -6
- package/lib/checkbox/checkbox.component.d.ts +12 -12
- package/lib/checkbox/checkbox.module.d.ts +9 -9
- package/lib/checkbox/index.d.ts +2 -2
- package/lib/datalist/datalist.component.d.ts +25 -25
- package/lib/datalist/datalist.module.d.ts +9 -9
- package/lib/datalist/index.d.ts +2 -2
- package/lib/datepicker/datepicker.component.d.ts +18 -18
- package/lib/datepicker/datepicker.module.d.ts +10 -10
- package/lib/datepicker/index.d.ts +2 -2
- package/lib/decorators/decorators.module.d.ts +9 -9
- package/lib/decorators/index.d.ts +3 -3
- package/lib/decorators/prefix.component.d.ts +8 -8
- package/lib/decorators/suffix.component.d.ts +8 -8
- package/lib/dialog/dialog.class.d.ts +12 -12
- package/lib/dialog/dialog.component.d.ts +15 -15
- package/lib/dialog/dialog.module.d.ts +13 -13
- package/lib/dialog/dialog.service.d.ts +18 -18
- package/lib/dialog/index.d.ts +4 -4
- package/lib/drawer/drawer-container.component.d.ts +13 -13
- package/lib/drawer/drawer-content.component.d.ts +8 -8
- package/lib/drawer/drawer.component.d.ts +30 -30
- package/lib/drawer/drawer.module.d.ts +10 -10
- package/lib/drawer/index.d.ts +4 -4
- package/lib/dropdown/dropdown-panel.component.d.ts +117 -116
- package/lib/dropdown/dropdown.component.d.ts +31 -31
- package/lib/dropdown/dropdown.module.d.ts +13 -13
- package/lib/dropdown/index.d.ts +3 -3
- package/lib/form/form-field.component.d.ts +8 -8
- package/lib/form/form-field.module.d.ts +10 -10
- package/lib/form/form-hint.component.d.ts +8 -8
- package/lib/form/form.component.d.ts +13 -13
- package/lib/form/index.d.ts +4 -4
- package/lib/icon/icon.component.d.ts +10 -10
- package/lib/icon/icon.module.d.ts +8 -8
- package/lib/icon/index.d.ts +2 -2
- package/lib/input-mask/index.d.ts +2 -2
- package/lib/input-mask/input-mask.component.d.ts +14 -14
- package/lib/input-mask/input-mask.module.d.ts +9 -9
- package/lib/label/index.d.ts +2 -2
- package/lib/label/label.component.d.ts +8 -8
- package/lib/label/label.module.d.ts +8 -8
- package/lib/loading/index.d.ts +5 -5
- package/lib/loading/loading-spinner.component.d.ts +5 -5
- package/lib/loading/loading.component.d.ts +19 -19
- package/lib/loading/loading.directive.d.ts +22 -22
- package/lib/loading/loading.module.d.ts +13 -13
- package/lib/loading/loading.service.d.ts +48 -48
- package/lib/number-box/index.d.ts +2 -2
- package/lib/number-box/number-box.component.d.ts +69 -69
- package/lib/number-box/number-box.module.d.ts +11 -11
- package/lib/page/base-page.class.d.ts +37 -37
- package/lib/page/index.d.ts +4 -4
- package/lib/page/page-footer.component.d.ts +7 -7
- package/lib/page/page.component.d.ts +13 -13
- package/lib/page/page.module.d.ts +7 -7
- package/lib/popover/index.d.ts +2 -2
- package/lib/popover/popover.component.d.ts +30 -30
- package/lib/popover/popover.module.d.ts +8 -8
- package/lib/popup/index.d.ts +3 -3
- package/lib/popup/popup.component.d.ts +33 -33
- package/lib/popup/popup.module.d.ts +12 -12
- package/lib/popup/popup.service.d.ts +37 -37
- package/lib/range-slider/index.d.ts +2 -0
- package/lib/range-slider/range-slider.component.d.ts +8 -0
- package/lib/range-slider/range-slider.module.d.ts +8 -0
- package/lib/selectbox/index.d.ts +2 -2
- package/lib/selectbox/selectbox.component.d.ts +28 -28
- package/lib/selectbox/selectbox.module.d.ts +10 -10
- package/lib/selection-list/index.d.ts +2 -2
- package/lib/selection-list/selection-list.component.d.ts +10 -10
- package/lib/selection-list/selection-list.module.d.ts +10 -10
- package/lib/side-menu/index.d.ts +2 -2
- package/lib/side-menu/side-menu.component.d.ts +8 -8
- package/lib/side-menu/side-menu.module.d.ts +8 -8
- package/lib/switch/index.d.ts +2 -2
- package/lib/switch/switch.component.d.ts +9 -9
- package/lib/switch/switch.module.d.ts +9 -9
- package/lib/tabs/index.d.ts +5 -5
- package/lib/tabs/tab-strip.component.d.ts +17 -17
- package/lib/tabs/tab-view.component.d.ts +14 -14
- package/lib/tabs/tab.component.d.ts +18 -18
- package/lib/tabs/tabs.class.d.ts +18 -18
- package/lib/tabs/tabs.module.d.ts +10 -10
- package/lib/textbox/index.d.ts +2 -2
- package/lib/textbox/textbox.component.d.ts +19 -19
- package/lib/textbox/textbox.module.d.ts +13 -12
- package/lib/time-box/index.d.ts +2 -2
- package/lib/time-box/time-box.component.d.ts +29 -29
- package/lib/time-box/time-box.module.d.ts +11 -11
- package/lib/toast/index.d.ts +4 -4
- package/lib/toast/toast.class.d.ts +14 -14
- package/lib/toast/toast.component.d.ts +16 -16
- package/lib/toast/toast.module.d.ts +9 -9
- package/lib/toast/toast.service.d.ts +18 -18
- package/lib/tooltip/index.d.ts +3 -3
- package/lib/tooltip/tooltip.component.d.ts +10 -10
- package/lib/tooltip/tooltip.directive.d.ts +18 -18
- package/lib/tooltip/tooltip.module.d.ts +10 -10
- package/lib/validation/index.d.ts +2 -2
- package/lib/validation/validation-rule.widget.d.ts +25 -25
- package/lib/validation/validation.class.d.ts +17 -17
- package/lib/validation/validation.module.d.ts +9 -9
- package/package.json +18 -18
- package/public-api.d.ts +37 -36
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class AXLoadingSpinnerComponent {
|
|
4
|
-
}
|
|
5
|
-
AXLoadingSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
-
AXLoadingSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXLoadingSpinnerComponent, selector: "ax-loading-spinner", ngImport: i0, template: `
|
|
7
|
-
<svg version="1.1" width="100" id="loader-1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
8
|
-
x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve">
|
|
9
|
-
<path fill="current"
|
|
10
|
-
d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z">
|
|
11
|
-
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25"
|
|
12
|
-
dur="0.6s" repeatCount="indefinite" />
|
|
13
|
-
</path>
|
|
14
|
-
</svg>
|
|
15
|
-
`, isInline: true });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingSpinnerComponent, decorators: [{
|
|
17
|
-
type: Component,
|
|
18
|
-
args: [{
|
|
19
|
-
selector: 'ax-loading-spinner',
|
|
20
|
-
template: `
|
|
21
|
-
<svg version="1.1" width="100" id="loader-1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
22
|
-
x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve">
|
|
23
|
-
<path fill="current"
|
|
24
|
-
d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z">
|
|
25
|
-
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25"
|
|
26
|
-
dur="0.6s" repeatCount="indefinite" />
|
|
27
|
-
</path>
|
|
28
|
-
</svg>
|
|
29
|
-
`
|
|
30
|
-
}]
|
|
31
|
-
}] });
|
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export class AXLoadingSpinnerComponent {
|
|
4
|
+
}
|
|
5
|
+
AXLoadingSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6
|
+
AXLoadingSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXLoadingSpinnerComponent, selector: "ax-loading-spinner", ngImport: i0, template: `
|
|
7
|
+
<svg version="1.1" width="100" id="loader-1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
8
|
+
x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve">
|
|
9
|
+
<path fill="current"
|
|
10
|
+
d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z">
|
|
11
|
+
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25"
|
|
12
|
+
dur="0.6s" repeatCount="indefinite" />
|
|
13
|
+
</path>
|
|
14
|
+
</svg>
|
|
15
|
+
`, isInline: true });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingSpinnerComponent, decorators: [{
|
|
17
|
+
type: Component,
|
|
18
|
+
args: [{
|
|
19
|
+
selector: 'ax-loading-spinner',
|
|
20
|
+
template: `
|
|
21
|
+
<svg version="1.1" width="100" id="loader-1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
22
|
+
x="0px" y="0px" viewBox="0 0 50 50" xml:space="preserve">
|
|
23
|
+
<path fill="current"
|
|
24
|
+
d="M25.251,6.461c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615V6.461z">
|
|
25
|
+
<animateTransform attributeType="xml" attributeName="transform" type="rotate" from="0 25 25" to="360 25 25"
|
|
26
|
+
dur="0.6s" repeatCount="indefinite" />
|
|
27
|
+
</path>
|
|
28
|
+
</svg>
|
|
29
|
+
`
|
|
30
|
+
}]
|
|
31
|
+
}] });
|
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy1zcGlubmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb21wb25lbnRzL3NyYy9saWIvbG9hZGluZy9sb2FkaW5nLXNwaW5uZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUM7O0FBZTFDLE1BQU0sT0FBTyx5QkFBeUI7O3NIQUF6Qix5QkFBeUI7MEdBQXpCLHlCQUF5QiwwREFYeEI7Ozs7Ozs7OztLQVNUOzJGQUVRLHlCQUF5QjtrQkFickMsU0FBUzttQkFBQztvQkFDUCxRQUFRLEVBQUUsb0JB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@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { AXConfig } from '@acorex/core';
|
|
2
|
-
import { ComponentPortal } from '@angular/cdk/portal';
|
|
3
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
-
import { AXBaseComponentMixin } from '../base';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/cdk/portal";
|
|
7
|
-
export class AXLoadingComponent extends AXBaseComponentMixin {
|
|
8
|
-
/**
|
|
9
|
-
* @ignore
|
|
10
|
-
*/
|
|
11
|
-
constructor(elementRef, cdr) {
|
|
12
|
-
super(elementRef, cdr);
|
|
13
|
-
this.visibleChange = new EventEmitter();
|
|
14
|
-
this.type = 'spinner';
|
|
15
|
-
}
|
|
16
|
-
get visible() {
|
|
17
|
-
return this._visible;
|
|
18
|
-
}
|
|
19
|
-
set visible(v) {
|
|
20
|
-
if (v != this._visible) {
|
|
21
|
-
this._visible = v;
|
|
22
|
-
v ? this._getHostElement().classList.remove('ax-hide') : this._getHostElement().classList.add('ax-hide');
|
|
23
|
-
this.visibleChange.emit(v);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
onInit() {
|
|
27
|
-
const loading = AXConfig.get(`layout.loading.${this.type}`);
|
|
28
|
-
this._selectedPortal = new ComponentPortal(loading);
|
|
29
|
-
this._cdr.markForCheck();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
AXLoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
-
AXLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXLoadingComponent, selector: "ax-loading", inputs: { visible: "visible", type: "type" }, outputs: { visibleChange: "visibleChange" }, host: { classAttribute: "ax-loading" }, usesInheritance: true, ngImport: i0, template: `
|
|
34
|
-
<ng-template [cdkPortalOutlet]="_selectedPortal" ></ng-template>
|
|
35
|
-
`, isInline: true, directives: [{ type: i1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingComponent, decorators: [{
|
|
37
|
-
type: Component,
|
|
38
|
-
args: [{
|
|
39
|
-
selector: 'ax-loading',
|
|
40
|
-
template: `
|
|
41
|
-
<ng-template [cdkPortalOutlet]="_selectedPortal" ></ng-template>
|
|
42
|
-
`,
|
|
43
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
44
|
-
encapsulation: ViewEncapsulation.None,
|
|
45
|
-
host: { class: 'ax-loading' }
|
|
46
|
-
}]
|
|
47
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { visibleChange: [{
|
|
48
|
-
type: Output
|
|
49
|
-
}], visible: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], type: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}] } });
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { AXConfig } from '@acorex/core';
|
|
2
|
+
import { ComponentPortal } from '@angular/cdk/portal';
|
|
3
|
+
import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, EventEmitter } from '@angular/core';
|
|
4
|
+
import { AXBaseComponentMixin } from '../base';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@angular/cdk/portal";
|
|
7
|
+
export class AXLoadingComponent extends AXBaseComponentMixin {
|
|
8
|
+
/**
|
|
9
|
+
* @ignore
|
|
10
|
+
*/
|
|
11
|
+
constructor(elementRef, cdr) {
|
|
12
|
+
super(elementRef, cdr);
|
|
13
|
+
this.visibleChange = new EventEmitter();
|
|
14
|
+
this.type = 'spinner';
|
|
15
|
+
}
|
|
16
|
+
get visible() {
|
|
17
|
+
return this._visible;
|
|
18
|
+
}
|
|
19
|
+
set visible(v) {
|
|
20
|
+
if (v != this._visible) {
|
|
21
|
+
this._visible = v;
|
|
22
|
+
v ? this._getHostElement().classList.remove('ax-hide') : this._getHostElement().classList.add('ax-hide');
|
|
23
|
+
this.visibleChange.emit(v);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
onInit() {
|
|
27
|
+
const loading = AXConfig.get(`layout.loading.${this.type}`);
|
|
28
|
+
this._selectedPortal = new ComponentPortal(loading);
|
|
29
|
+
this._cdr.markForCheck();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
AXLoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
AXLoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: AXLoadingComponent, selector: "ax-loading", inputs: { visible: "visible", type: "type" }, outputs: { visibleChange: "visibleChange" }, host: { classAttribute: "ax-loading" }, usesInheritance: true, ngImport: i0, template: `
|
|
34
|
+
<ng-template [cdkPortalOutlet]="_selectedPortal" ></ng-template>
|
|
35
|
+
`, isInline: true, directives: [{ type: i1.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingComponent, decorators: [{
|
|
37
|
+
type: Component,
|
|
38
|
+
args: [{
|
|
39
|
+
selector: 'ax-loading',
|
|
40
|
+
template: `
|
|
41
|
+
<ng-template [cdkPortalOutlet]="_selectedPortal" ></ng-template>
|
|
42
|
+
`,
|
|
43
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
44
|
+
encapsulation: ViewEncapsulation.None,
|
|
45
|
+
host: { class: 'ax-loading' }
|
|
46
|
+
}]
|
|
47
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { visibleChange: [{
|
|
48
|
+
type: Output
|
|
49
|
+
}], visible: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], type: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}] } });
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29tcG9uZW50cy9zcmMvbGliL2xvYWRpbmcvbG9hZGluZy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGNBQWMsQ0FBQztBQUN4QyxPQUFPLEVBQUUsZUFBZSxFQUFVLE1BQU0scUJBQXFCLENBQUM7QUFDOUQsT0FBTyxFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSx1QkFBdUIsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBOEMsTUFBTSxlQUFlLENBQUM7QUFDL0osT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sU0FBUyxDQUFDOzs7QUFXL0MsTUFBTSxPQUFPLGtCQUFtQixTQUFRLG9CQUFvQjtJQUl4RDs7T0FFRztJQUNILFlBQ0ksVUFBc0IsRU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W5nID0gJ3NwaW5uZXInO1xuXG4gICAgb25Jbml0KCkge1xuICAgICAgICBjb25zdCBsb2FkaW5nID0gQVhDb25maWcuZ2V0KGBsYXlvdXQubG9hZGluZy4ke3RoaXMudHlwZX1gKTtcbiAgICAgICAgdGhpcy5fc2VsZWN0ZWRQb3J0YWwgPSBuZXcgQ29tcG9uZW50UG9ydGFsKGxvYWRpbmcpO1xuICAgICAgICB0aGlzLl9jZHIubWFya0ZvckNoZWNrKCk7XG4gICAgfVxufVxuIl19
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import { Directive, Input } from '@angular/core';
|
|
2
|
-
import { AXLoadingComponent } from './loading.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
const OVERLAY_CLASS = 'loading-overlay';
|
|
5
|
-
// This directive places an overlay with a loading spinner over its host element
|
|
6
|
-
// if isLoading equals to true and hides the overlay when isLoading becomes false.
|
|
7
|
-
export class AXLoadingDirective {
|
|
8
|
-
constructor(elementRef, renderer, changeDetectorRef, viewContainerRef, componentFactoryResolver) {
|
|
9
|
-
this.elementRef = elementRef;
|
|
10
|
-
this.renderer = renderer;
|
|
11
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
12
|
-
this.viewContainerRef = viewContainerRef;
|
|
13
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
14
|
-
this.isLoading = false;
|
|
15
|
-
this.hostElement = this.elementRef.nativeElement;
|
|
16
|
-
this.hostElement.style.position = 'relative';
|
|
17
|
-
}
|
|
18
|
-
ngOnChanges(changes) {
|
|
19
|
-
if (!this.overlayElement || !this.spinnerElement) {
|
|
20
|
-
this.init();
|
|
21
|
-
}
|
|
22
|
-
if (changes.isLoading) {
|
|
23
|
-
const isLoadingValue = changes.isLoading.currentValue;
|
|
24
|
-
if (isLoadingValue) {
|
|
25
|
-
this.addLoadingIndicator();
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
this.removeLoadingIndicator();
|
|
29
|
-
}
|
|
30
|
-
this.changeDetectorRef.markForCheck();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
addLoadingIndicator() {
|
|
34
|
-
this.renderer.appendChild(this.hostElement, this.overlayElement);
|
|
35
|
-
this.renderer.appendChild(this.overlayElement, this.spinnerElement);
|
|
36
|
-
}
|
|
37
|
-
removeLoadingIndicator() {
|
|
38
|
-
this.renderer.removeChild(this.overlayElement, this.spinnerElement);
|
|
39
|
-
this.renderer.removeChild(this.hostElement, this.overlayElement);
|
|
40
|
-
this.viewContainerRef.clear();
|
|
41
|
-
}
|
|
42
|
-
init() {
|
|
43
|
-
this.initOverlayElement();
|
|
44
|
-
this.initSpinnerComponent();
|
|
45
|
-
}
|
|
46
|
-
initSpinnerComponent() {
|
|
47
|
-
const spinnerComponentFactory = this.componentFactoryResolver.resolveComponentFactory(AXLoadingComponent);
|
|
48
|
-
const spinnerComponent = this.viewContainerRef.createComponent(spinnerComponentFactory);
|
|
49
|
-
this.spinnerElement = spinnerComponent.location.nativeElement;
|
|
50
|
-
}
|
|
51
|
-
initOverlayElement() {
|
|
52
|
-
this.overlayElement = this.renderer.createElement('div');
|
|
53
|
-
this.renderer.addClass(this.overlayElement, OVERLAY_CLASS);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
AXLoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Directive });
|
|
57
|
-
AXLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: AXLoadingDirective, selector: "[axIsLoading]", inputs: { isLoading: ["axIsLoading", "isLoading"] }, usesOnChanges: true, ngImport: i0 });
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingDirective, decorators: [{
|
|
59
|
-
type: Directive,
|
|
60
|
-
args: [{
|
|
61
|
-
selector: '[axIsLoading]'
|
|
62
|
-
}]
|
|
63
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }]; }, propDecorators: { isLoading: [{
|
|
64
|
-
type: Input,
|
|
65
|
-
args: ['axIsLoading']
|
|
66
|
-
}] } });
|
|
67
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Directive, Input } from '@angular/core';
|
|
2
|
+
import { AXLoadingComponent } from './loading.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const OVERLAY_CLASS = 'loading-overlay';
|
|
5
|
+
// This directive places an overlay with a loading spinner over its host element
|
|
6
|
+
// if isLoading equals to true and hides the overlay when isLoading becomes false.
|
|
7
|
+
export class AXLoadingDirective {
|
|
8
|
+
constructor(elementRef, renderer, changeDetectorRef, viewContainerRef, componentFactoryResolver) {
|
|
9
|
+
this.elementRef = elementRef;
|
|
10
|
+
this.renderer = renderer;
|
|
11
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
12
|
+
this.viewContainerRef = viewContainerRef;
|
|
13
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
14
|
+
this.isLoading = false;
|
|
15
|
+
this.hostElement = this.elementRef.nativeElement;
|
|
16
|
+
this.hostElement.style.position = 'relative';
|
|
17
|
+
}
|
|
18
|
+
ngOnChanges(changes) {
|
|
19
|
+
if (!this.overlayElement || !this.spinnerElement) {
|
|
20
|
+
this.init();
|
|
21
|
+
}
|
|
22
|
+
if (changes.isLoading) {
|
|
23
|
+
const isLoadingValue = changes.isLoading.currentValue;
|
|
24
|
+
if (isLoadingValue) {
|
|
25
|
+
this.addLoadingIndicator();
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
this.removeLoadingIndicator();
|
|
29
|
+
}
|
|
30
|
+
this.changeDetectorRef.markForCheck();
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
addLoadingIndicator() {
|
|
34
|
+
this.renderer.appendChild(this.hostElement, this.overlayElement);
|
|
35
|
+
this.renderer.appendChild(this.overlayElement, this.spinnerElement);
|
|
36
|
+
}
|
|
37
|
+
removeLoadingIndicator() {
|
|
38
|
+
this.renderer.removeChild(this.overlayElement, this.spinnerElement);
|
|
39
|
+
this.renderer.removeChild(this.hostElement, this.overlayElement);
|
|
40
|
+
this.viewContainerRef.clear();
|
|
41
|
+
}
|
|
42
|
+
init() {
|
|
43
|
+
this.initOverlayElement();
|
|
44
|
+
this.initSpinnerComponent();
|
|
45
|
+
}
|
|
46
|
+
initSpinnerComponent() {
|
|
47
|
+
const spinnerComponentFactory = this.componentFactoryResolver.resolveComponentFactory(AXLoadingComponent);
|
|
48
|
+
const spinnerComponent = this.viewContainerRef.createComponent(spinnerComponentFactory);
|
|
49
|
+
this.spinnerElement = spinnerComponent.location.nativeElement;
|
|
50
|
+
}
|
|
51
|
+
initOverlayElement() {
|
|
52
|
+
this.overlayElement = this.renderer.createElement('div');
|
|
53
|
+
this.renderer.addClass(this.overlayElement, OVERLAY_CLASS);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
AXLoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Directive });
|
|
57
|
+
AXLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: AXLoadingDirective, selector: "[axIsLoading]", inputs: { isLoading: ["axIsLoading", "isLoading"] }, usesOnChanges: true, ngImport: i0 });
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingDirective, decorators: [{
|
|
59
|
+
type: Directive,
|
|
60
|
+
args: [{
|
|
61
|
+
selector: '[axIsLoading]'
|
|
62
|
+
}]
|
|
63
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }]; }, propDecorators: { isLoading: [{
|
|
64
|
+
type: Input,
|
|
65
|
+
args: ['axIsLoading']
|
|
66
|
+
}] } });
|
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29tcG9uZW50cy9zcmMvbGliL2xvYWRpbmcvbG9hZGluZy5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUdILFNBQVMsRUFFVCxLQUFLLEVBSU4sTUFBTSxlQUFlLENBQUM7QUFDekIsT0FBTyxFQUFFLGtCQUFrQixFQUFFLE1BQU0scUJBQXFCLENBQUM7O0FBR3ZELE1BQU0sYUFBYSxHQUFHLGlCQUFpQixDQUFDO0FBRXhDLGdGQUFnRjtBQUNoRixrRkFBa0Y7QUFJbEYsTUFBTSxPQUFPLGtCQUFrQjtJQVE3QixZQUNxQixVQUFzQixFQUN0QixRQUFtQixFQUNuQixpQkFBb0MsRUFDcEMsZ0JBQWtDLEVBQ2xDLHdCQUFrRDtRQUpsRCxlQUFVLEdBQVYsVUFBVSxDQUFZO1FBQ3RCLGFBQVEsR0FBUixRQUFRLENBQVc7UUFDbkIsc0JBQWlCLEdBQWpCLGlCQUFpQixDQUFtQjtRQUNwQyxxQkFBZ0IsR0FBaEIsZ0JBQWdCLENBQWt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mVudCk7XG4gICAgICBjb25zdCBzcGlubmVyQ29tcG9uZW50ID0gdGhpcy52aWV3Q29udGFpbmVyUmVmLmNyZWF0ZUNvbXBvbmVudChzcGlubmVyQ29tcG9uZW50RmFjdG9yeSk7XG4gICAgICB0aGlzLnNwaW5uZXJFbGVtZW50ID0gc3Bpbm5lckNvbXBvbmVudC5sb2NhdGlvbi5uYXRpdmVFbGVtZW50O1xuICAgIH1cbiAgXG4gICAgcHJvdGVjdGVkIGluaXRPdmVybGF5RWxlbWVudCgpOiB2b2lkIHtcbiAgICAgIHRoaXMub3ZlcmxheUVsZW1lbnQgPSB0aGlzLnJlbmRlcmVyLmNyZWF0ZUVsZW1lbnQoJ2RpdicpO1xuICAgICAgdGhpcy5yZW5kZXJlci5hZGRDbGFzcyh0aGlzLm92ZXJsYXlFbGVtZW50LCBPVkVSTEFZX0NMQVNTKTtcbiAgICB9XG4gIH1cbiAgIl19
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { AXLoadingComponent } from './loading.component';
|
|
4
|
-
import { AXLoadingDirective } from './loading.directive';
|
|
5
|
-
import { OverlayModule } from '@angular/cdk/overlay';
|
|
6
|
-
import { PortalModule } from '@angular/cdk/portal';
|
|
7
|
-
import { AXLoadingSpinnerComponent } from './loading-spinner.component';
|
|
8
|
-
import { AXConfig } from '@acorex/core';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
const COMPONENT = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
|
|
11
|
-
const MODULES = [CommonModule, OverlayModule, PortalModule];
|
|
12
|
-
export class AXLoadingModule {
|
|
13
|
-
constructor() {
|
|
14
|
-
AXConfig.set({
|
|
15
|
-
layout: {
|
|
16
|
-
loading: {
|
|
17
|
-
spinner: AXLoadingSpinnerComponent
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
24
|
-
AXLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] });
|
|
25
|
-
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES]] });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, decorators: [{
|
|
27
|
-
type: NgModule,
|
|
28
|
-
args: [{
|
|
29
|
-
declarations: [...COMPONENT],
|
|
30
|
-
imports: [...MODULES],
|
|
31
|
-
exports: [...COMPONENT],
|
|
32
|
-
providers: [],
|
|
33
|
-
}]
|
|
34
|
-
}], ctorParameters: function () { return []; } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { AXLoadingComponent } from './loading.component';
|
|
4
|
+
import { AXLoadingDirective } from './loading.directive';
|
|
5
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
6
|
+
import { PortalModule } from '@angular/cdk/portal';
|
|
7
|
+
import { AXLoadingSpinnerComponent } from './loading-spinner.component';
|
|
8
|
+
import { AXConfig } from '@acorex/core';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
const COMPONENT = [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent];
|
|
11
|
+
const MODULES = [CommonModule, OverlayModule, PortalModule];
|
|
12
|
+
export class AXLoadingModule {
|
|
13
|
+
constructor() {
|
|
14
|
+
AXConfig.set({
|
|
15
|
+
layout: {
|
|
16
|
+
loading: {
|
|
17
|
+
spinner: AXLoadingSpinnerComponent
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
AXLoadingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
24
|
+
AXLoadingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, declarations: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent], imports: [CommonModule, OverlayModule, PortalModule], exports: [AXLoadingComponent, AXLoadingDirective, AXLoadingSpinnerComponent] });
|
|
25
|
+
AXLoadingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, providers: [], imports: [[...MODULES]] });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: AXLoadingModule, decorators: [{
|
|
27
|
+
type: NgModule,
|
|
28
|
+
args: [{
|
|
29
|
+
declarations: [...COMPONENT],
|
|
30
|
+
imports: [...MODULES],
|
|
31
|
+
exports: [...COMPONENT],
|
|
32
|
+
providers: [],
|
|
33
|
+
}]
|
|
34
|
+
}], ctorParameters: function () { return []; } });
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9hZGluZy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29tcG9uZW50cy9zcmMvbGliL2xvYWRp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