@acorex/components 5.0.5 → 5.0.9
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/acorex-components.d.ts +5 -0
- package/bundles/acorex-components.umd.js +7633 -0
- package/bundles/acorex-components.umd.js.map +1 -0
- package/esm2015/acorex-components.js +5 -0
- package/esm2015/lib/alert/alert-button.component.js +52 -0
- package/esm2015/lib/alert/alert-contnet.component.js +21 -0
- package/esm2015/lib/alert/alert-footer.component.js +27 -0
- package/esm2015/lib/alert/alert-suffix.component.js +27 -0
- package/esm2015/lib/alert/alert-title.component.js +23 -0
- package/esm2015/lib/alert/alert.component.js +130 -0
- package/esm2015/lib/alert/alert.module.js +43 -0
- package/esm2015/lib/alert/index.js +8 -0
- package/esm2015/lib/avatar/avatar.component.js +55 -0
- package/esm2015/lib/avatar/avatar.module.js +21 -0
- package/esm2015/lib/avatar/index.js +3 -0
- package/esm2015/lib/badge/badge.component.js +34 -0
- package/esm2015/lib/badge/badge.module.js +21 -0
- package/esm2015/lib/badge/index.js +3 -0
- package/esm2015/lib/base/common.module.js +18 -0
- package/esm2015/lib/base/custom-cdk-overlay.service.js +47 -0
- package/esm2015/lib/base/drawing.class.js +11 -0
- package/esm2015/lib/base/events.class.js +53 -0
- package/esm2015/lib/base/index.js +7 -0
- package/esm2015/lib/base/mixin/base-components.class.js +86 -0
- package/esm2015/lib/base/mixin/button-mixin.class.js +129 -0
- package/esm2015/lib/base/mixin/clickable-mixin.class.js +24 -0
- package/esm2015/lib/base/mixin/constratctor.js +2 -0
- package/esm2015/lib/base/mixin/datalist-component.class.js +97 -0
- package/esm2015/lib/base/mixin/dropdown-mixin.class.js +36 -0
- package/esm2015/lib/base/mixin/index.js +3 -0
- package/esm2015/lib/base/mixin/interactive-mixin.class.js +77 -0
- package/esm2015/lib/base/mixin/loading-mixin.class.js +18 -0
- package/esm2015/lib/base/mixin/mixin.class.js +22 -0
- package/esm2015/lib/base/mixin/selection-component.class.js +158 -0
- package/esm2015/lib/base/mixin/sizable-mixin.class.js +18 -0
- package/esm2015/lib/base/mixin/textbox-mixin.class.js +38 -0
- package/esm2015/lib/base/mixin/value-mixin.class.js +190 -0
- package/esm2015/lib/base/overlay.service.js +91 -0
- package/esm2015/lib/base/responsive.directive.js +34 -0
- package/esm2015/lib/base/styles.class.js +4 -0
- package/esm2015/lib/button/button-group.component.js +131 -0
- package/esm2015/lib/button/button-item.class.js +2 -0
- package/esm2015/lib/button/button-item.component.js +81 -0
- package/esm2015/lib/button/button.component.js +73 -0
- package/esm2015/lib/button/button.module.js +33 -0
- package/esm2015/lib/button/index.js +6 -0
- package/esm2015/lib/calendar/calendar.component.js +287 -0
- package/esm2015/lib/calendar/calendar.module.js +25 -0
- package/esm2015/lib/calendar/index.js +3 -0
- package/esm2015/lib/carousel/carousel-arrows.component.js +53 -0
- package/esm2015/lib/carousel/carousel-item.component.js +21 -0
- package/esm2015/lib/carousel/carousel-pager.component.js +74 -0
- package/esm2015/lib/carousel/carousel-splidejs.class.js +82 -0
- package/esm2015/lib/carousel/carousel.class.js +10 -0
- package/esm2015/lib/carousel/carousel.component.js +246 -0
- package/esm2015/lib/carousel/carousel.module.js +24 -0
- package/esm2015/lib/carousel/index.js +7 -0
- package/esm2015/lib/checkbox/checkbox.component.js +59 -0
- package/esm2015/lib/checkbox/checkbox.module.js +20 -0
- package/esm2015/lib/checkbox/index.js +3 -0
- package/esm2015/lib/datalist/datalist.component.js +81 -0
- package/esm2015/lib/datalist/datalist.module.js +22 -0
- package/esm2015/lib/datalist/index.js +3 -0
- package/esm2015/lib/datepicker/datepicker.component.js +80 -0
- package/esm2015/lib/datepicker/datepicker.module.js +23 -0
- package/esm2015/lib/datepicker/index.js +3 -0
- package/esm2015/lib/decorators/content.component.js +26 -0
- package/esm2015/lib/decorators/decorators.module.js +23 -0
- package/esm2015/lib/decorators/index.js +5 -0
- package/esm2015/lib/decorators/prefix.component.js +26 -0
- package/esm2015/lib/decorators/suffix.component.js +26 -0
- package/esm2015/lib/dialog/dialog.class.js +2 -0
- package/esm2015/lib/dialog/dialog.component.js +45 -0
- package/esm2015/lib/dialog/dialog.module.js +26 -0
- package/esm2015/lib/dialog/dialog.service.js +146 -0
- package/esm2015/lib/dialog/index.js +5 -0
- package/esm2015/lib/drawer/drawer-container.component.js +73 -0
- package/esm2015/lib/drawer/drawer-content.component.js +27 -0
- package/esm2015/lib/drawer/drawer.component.js +145 -0
- package/esm2015/lib/drawer/drawer.module.js +23 -0
- package/esm2015/lib/drawer/index.js +5 -0
- package/esm2015/lib/dropdown/dropdown-base.class.js +98 -0
- package/esm2015/lib/dropdown/dropdown-panel.component.js +84 -0
- package/esm2015/lib/dropdown/dropdown.component.js +32 -0
- package/esm2015/lib/dropdown/dropdown.module.js +25 -0
- package/esm2015/lib/dropdown/index.js +4 -0
- package/esm2015/lib/form/form-field.component.js +20 -0
- package/esm2015/lib/form/form-field.module.js +21 -0
- package/esm2015/lib/form/form-hint.component.js +20 -0
- package/esm2015/lib/form/form.component.js +51 -0
- package/esm2015/lib/form/index.js +5 -0
- package/esm2015/lib/icon/icon.component.js +28 -0
- package/esm2015/lib/icon/icon.module.js +21 -0
- package/esm2015/lib/icon/index.js +3 -0
- package/esm2015/lib/input-mask/index.js +3 -0
- package/esm2015/lib/input-mask/input-mask.component.js +42 -0
- package/esm2015/lib/input-mask/input-mask.module.js +23 -0
- package/esm2015/lib/label/index.js +3 -0
- package/esm2015/lib/label/label.component.js +20 -0
- package/esm2015/lib/label/label.module.js +21 -0
- package/esm2015/lib/loading/index.js +6 -0
- package/esm2015/lib/loading/loading-spinner.component.js +32 -0
- package/esm2015/lib/loading/loading.component.js +54 -0
- package/esm2015/lib/loading/loading.directive.js +67 -0
- package/esm2015/lib/loading/loading.module.js +35 -0
- package/esm2015/lib/loading/loading.service.js +155 -0
- package/esm2015/lib/number-box/index.js +3 -0
- package/esm2015/lib/number-box/number-box.component.js +289 -0
- package/esm2015/lib/number-box/number-box.module.js +32 -0
- package/esm2015/lib/page/base-page.class.js +67 -0
- package/esm2015/lib/page/index.js +5 -0
- package/esm2015/lib/page/page-footer.component.js +28 -0
- package/esm2015/lib/page/page.component.js +33 -0
- package/esm2015/lib/page/page.module.js +18 -0
- package/esm2015/lib/password-box/index.js +3 -0
- package/esm2015/lib/password-box/password-box.component.js +74 -0
- package/esm2015/lib/password-box/password-box.module.js +35 -0
- package/esm2015/lib/popover/index.js +3 -0
- package/esm2015/lib/popover/popover.component.js +220 -0
- package/esm2015/lib/popover/popover.module.js +19 -0
- package/esm2015/lib/popup/index.js +4 -0
- package/esm2015/lib/popup/popup.component.js +105 -0
- package/esm2015/lib/popup/popup.module.js +26 -0
- package/esm2015/lib/popup/popup.service.js +94 -0
- package/esm2015/lib/radio/index.js +3 -0
- package/esm2015/lib/radio/radio.component.js +22 -0
- package/esm2015/lib/radio/radio.module.js +21 -0
- 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 -0
- package/esm2015/lib/selectbox/selectbox.component.js +201 -0
- package/esm2015/lib/selectbox/selectbox.module.js +25 -0
- package/esm2015/lib/selection-list/index.js +3 -0
- package/esm2015/lib/selection-list/selection-list.component.js +47 -0
- package/esm2015/lib/selection-list/selection-list.module.js +21 -0
- package/esm2015/lib/side-menu/index.js +3 -0
- package/esm2015/lib/side-menu/side-menu.component.js +21 -0
- package/esm2015/lib/side-menu/side-menu.module.js +21 -0
- package/esm2015/lib/switch/index.js +3 -0
- package/esm2015/lib/switch/switch.component.js +30 -0
- package/esm2015/lib/switch/switch.module.js +21 -0
- package/esm2015/lib/tabs/index.js +8 -0
- package/esm2015/lib/tabs/tab-content.directive.js +29 -0
- package/esm2015/lib/tabs/tab-item.component.js +91 -0
- package/esm2015/lib/tabs/tab-strip.component.js +69 -0
- package/esm2015/lib/tabs/tab-view.component.js +45 -0
- package/esm2015/lib/tabs/tab.component.js +58 -0
- package/esm2015/lib/tabs/tabs.class.js +4 -0
- package/esm2015/lib/tabs/tabs.component.js +67 -0
- package/esm2015/lib/tabs/tabs.module.js +25 -0
- package/esm2015/lib/textbox/index.js +3 -0
- package/esm2015/lib/textbox/textbox.component.js +62 -0
- package/esm2015/lib/textbox/textbox.module.js +43 -0
- package/esm2015/lib/time-box/index.js +3 -0
- package/esm2015/lib/time-box/time-box.component.js +134 -0
- package/esm2015/lib/time-box/time-box.module.js +32 -0
- package/esm2015/lib/toast/index.js +5 -0
- package/esm2015/lib/toast/toast.class.js +2 -0
- package/esm2015/lib/toast/toast.component.js +50 -0
- package/esm2015/lib/toast/toast.module.js +22 -0
- package/esm2015/lib/toast/toast.service.js +114 -0
- package/esm2015/lib/tooltip/index.js +4 -0
- package/esm2015/lib/tooltip/tooltip.component.js +45 -0
- package/esm2015/lib/tooltip/tooltip.directive.js +86 -0
- package/esm2015/lib/tooltip/tooltip.module.js +23 -0
- package/esm2015/lib/validation/index.js +3 -0
- package/esm2015/lib/validation/validation-rule.widget.js +113 -0
- package/esm2015/lib/validation/validation.class.js +2 -0
- package/esm2015/lib/validation/validation.module.js +32 -0
- package/esm2015/public-api.js +42 -0
- package/fesm2015/acorex-components.js +6537 -0
- package/fesm2015/acorex-components.js.map +1 -0
- package/lib/alert/alert-button.component.d.ts +13 -0
- package/lib/alert/alert-contnet.component.d.ts +5 -0
- package/lib/alert/alert-footer.component.d.ts +5 -0
- package/lib/alert/alert-suffix.component.d.ts +5 -0
- package/lib/alert/alert-title.component.d.ts +5 -0
- package/lib/alert/alert.component.d.ts +46 -0
- package/lib/alert/alert.module.d.ts +13 -0
- package/{src/lib/alert/index.ts → lib/alert/index.d.ts} +0 -0
- package/lib/avatar/avatar.component.d.ts +20 -0
- package/lib/avatar/avatar.module.d.ts +8 -0
- package/{src/lib/avatar/index.ts → lib/avatar/index.d.ts} +0 -0
- package/lib/badge/badge.component.d.ts +11 -0
- package/lib/badge/badge.module.d.ts +8 -0
- package/lib/badge/index.d.ts +2 -0
- package/lib/base/common.module.d.ts +7 -0
- package/lib/base/custom-cdk-overlay.service.d.ts +19 -0
- package/{src/lib/base/drawing.class.ts → lib/base/drawing.class.d.ts} +1 -12
- package/{src/lib/base/events.class.ts → lib/base/events.class.d.ts} +11 -20
- package/{src/lib/base/index.ts → lib/base/index.d.ts} +0 -0
- package/lib/base/mixin/base-components.class.d.ts +86 -0
- package/lib/base/mixin/button-mixin.class.d.ts +82 -0
- package/lib/base/mixin/clickable-mixin.class.d.ts +43 -0
- package/lib/base/mixin/constratctor.d.ts +4 -0
- package/lib/base/mixin/datalist-component.class.d.ts +55 -0
- package/lib/base/mixin/dropdown-mixin.class.d.ts +48 -0
- package/{src/lib/base/mixin/index.ts → lib/base/mixin/index.d.ts} +1 -1
- package/lib/base/mixin/interactive-mixin.class.d.ts +65 -0
- package/lib/base/mixin/loading-mixin.class.d.ts +47 -0
- package/lib/base/mixin/mixin.class.d.ts +607 -0
- package/lib/base/mixin/selection-component.class.d.ts +56 -0
- package/lib/base/mixin/sizable-mixin.class.d.ts +41 -0
- package/lib/base/mixin/textbox-mixin.class.d.ts +59 -0
- package/lib/base/mixin/value-mixin.class.d.ts +71 -0
- package/lib/base/overlay.service.d.ts +31 -0
- package/lib/base/responsive.directive.d.ts +10 -0
- package/lib/base/styles.class.d.ts +17 -0
- package/lib/button/button-group.component.d.ts +36 -0
- package/{src/lib/button/button-item.class.ts → lib/button/button-item.class.d.ts} +4 -6
- package/lib/button/button-item.component.d.ts +94 -0
- package/lib/button/button.component.d.ts +21 -0
- package/lib/button/button.module.d.ts +12 -0
- package/{src/lib/button/index.ts → lib/button/index.d.ts} +1 -1
- package/lib/calendar/calendar.component.d.ts +56 -0
- package/lib/calendar/calendar.module.d.ts +12 -0
- package/{src/lib/calendar/index.ts → lib/calendar/index.d.ts} +0 -0
- package/lib/carousel/carousel-arrows.component.d.ts +14 -0
- package/lib/carousel/carousel-item.component.d.ts +8 -0
- package/lib/carousel/carousel-pager.component.d.ts +22 -0
- package/lib/carousel/carousel-splidejs.class.d.ts +18 -0
- package/{src/lib/carousel/carousel.class.ts → lib/carousel/carousel.class.d.ts} +13 -32
- package/lib/carousel/carousel.component.d.ts +62 -0
- package/lib/carousel/carousel.module.d.ts +11 -0
- package/{src/lib/carousel/index.ts → lib/carousel/index.d.ts} +0 -0
- package/lib/checkbox/checkbox.component.d.ts +13 -0
- package/lib/checkbox/checkbox.module.d.ts +9 -0
- package/{src/lib/checkbox/index.ts → lib/checkbox/index.d.ts} +1 -1
- package/lib/datalist/datalist.component.d.ts +25 -0
- package/lib/datalist/datalist.module.d.ts +9 -0
- package/{src/lib/datalist/index.ts → lib/datalist/index.d.ts} +0 -0
- package/lib/datepicker/datepicker.component.d.ts +18 -0
- package/lib/datepicker/datepicker.module.d.ts +10 -0
- package/{src/lib/datepicker/index.ts → lib/datepicker/index.d.ts} +0 -0
- package/lib/decorators/content.component.d.ts +8 -0
- package/lib/decorators/decorators.module.d.ts +10 -0
- package/{src/lib/decorators/index.ts → lib/decorators/index.d.ts} +1 -0
- package/lib/decorators/prefix.component.d.ts +8 -0
- package/lib/decorators/suffix.component.d.ts +8 -0
- package/{src/lib/dialog/dialog.class.ts → lib/dialog/dialog.class.d.ts} +1 -2
- package/lib/dialog/dialog.component.d.ts +15 -0
- package/lib/dialog/dialog.module.d.ts +13 -0
- package/lib/dialog/dialog.service.d.ts +36 -0
- package/{src/lib/dialog/index.ts → lib/dialog/index.d.ts} +0 -0
- package/lib/drawer/drawer-container.component.d.ts +13 -0
- package/lib/drawer/drawer-content.component.d.ts +8 -0
- package/lib/drawer/drawer.component.d.ts +30 -0
- package/lib/drawer/drawer.module.d.ts +10 -0
- package/{src/lib/drawer/index.ts → lib/drawer/index.d.ts} +0 -0
- package/lib/dropdown/dropdown-base.class.d.ts +94 -0
- package/lib/dropdown/dropdown-panel.component.d.ts +28 -0
- package/lib/dropdown/dropdown.component.d.ts +13 -0
- package/lib/dropdown/dropdown.module.d.ts +14 -0
- package/{src/lib/dropdown/index.ts → lib/dropdown/index.d.ts} +1 -1
- package/lib/form/form-field.component.d.ts +8 -0
- package/lib/form/form-field.module.d.ts +10 -0
- package/lib/form/form-hint.component.d.ts +8 -0
- package/lib/form/form.component.d.ts +13 -0
- package/{src/lib/form/index.ts → lib/form/index.d.ts} +1 -1
- package/lib/icon/icon.component.d.ts +10 -0
- package/lib/icon/icon.module.d.ts +8 -0
- package/{src/lib/icon/index.ts → lib/icon/index.d.ts} +0 -0
- package/{src/lib/input-mask/index.ts → lib/input-mask/index.d.ts} +0 -0
- package/lib/input-mask/input-mask.component.d.ts +14 -0
- package/lib/input-mask/input-mask.module.d.ts +9 -0
- package/{src/lib/label/index.ts → lib/label/index.d.ts} +1 -1
- package/lib/label/label.component.d.ts +8 -0
- package/lib/label/label.module.d.ts +8 -0
- package/{src/lib/loading/index.ts → lib/loading/index.d.ts} +0 -0
- package/lib/loading/loading-spinner.component.d.ts +5 -0
- package/lib/loading/loading.component.d.ts +19 -0
- package/lib/loading/loading.directive.d.ts +22 -0
- package/lib/loading/loading.module.d.ts +13 -0
- package/lib/loading/loading.service.d.ts +48 -0
- package/{src/lib/number-box/index.ts → lib/number-box/index.d.ts} +0 -0
- package/lib/number-box/number-box.component.d.ts +69 -0
- package/lib/number-box/number-box.module.d.ts +11 -0
- package/lib/page/base-page.class.d.ts +37 -0
- package/{src/lib/page/index.ts → lib/page/index.d.ts} +0 -1
- package/lib/page/page-footer.component.d.ts +7 -0
- package/lib/page/page.component.d.ts +13 -0
- package/lib/page/page.module.d.ts +7 -0
- package/lib/password-box/index.d.ts +2 -0
- package/lib/password-box/password-box.component.d.ts +24 -0
- package/lib/password-box/password-box.module.d.ts +12 -0
- package/{src/lib/popover/index.ts → lib/popover/index.d.ts} +1 -2
- package/lib/popover/popover.component.d.ts +44 -0
- package/lib/popover/popover.module.d.ts +8 -0
- package/{src/lib/popup/index.ts → lib/popup/index.d.ts} +0 -0
- package/lib/popup/popup.component.d.ts +34 -0
- package/lib/popup/popup.module.d.ts +12 -0
- package/lib/popup/popup.service.d.ts +37 -0
- package/lib/radio/index.d.ts +2 -0
- package/lib/radio/radio.component.d.ts +8 -0
- package/lib/radio/radio.module.d.ts +8 -0
- package/{src/lib/range-slider/index.ts → lib/range-slider/index.d.ts} +0 -0
- package/lib/range-slider/range-slider.component.d.ts +8 -0
- package/lib/range-slider/range-slider.module.d.ts +8 -0
- package/{src/lib/selectbox/index.ts → lib/selectbox/index.d.ts} +1 -1
- package/lib/selectbox/selectbox.component.d.ts +29 -0
- package/lib/selectbox/selectbox.module.d.ts +14 -0
- package/{src/lib/selection-list/index.ts → lib/selection-list/index.d.ts} +1 -1
- package/lib/selection-list/selection-list.component.d.ts +10 -0
- package/lib/selection-list/selection-list.module.d.ts +10 -0
- package/{src/lib/side-menu/index.ts → lib/side-menu/index.d.ts} +0 -0
- package/lib/side-menu/side-menu.component.d.ts +8 -0
- package/lib/side-menu/side-menu.module.d.ts +8 -0
- package/{src/lib/switch/index.ts → lib/switch/index.d.ts} +1 -1
- package/lib/switch/switch.component.d.ts +9 -0
- package/lib/switch/switch.module.d.ts +9 -0
- package/{src/lib/tabs/index.ts → lib/tabs/index.d.ts} +3 -1
- package/lib/tabs/tab-content.directive.d.ts +11 -0
- package/lib/tabs/tab-item.component.d.ts +17 -0
- package/lib/tabs/tab-strip.component.d.ts +19 -0
- package/lib/tabs/tab-view.component.d.ts +14 -0
- package/lib/tabs/tab.component.d.ts +18 -0
- package/{src/lib/tabs/tabs.class.ts → lib/tabs/tabs.class.d.ts} +5 -8
- package/lib/tabs/tabs.component.d.ts +17 -0
- package/lib/tabs/tabs.module.d.ts +12 -0
- package/{src/lib/textbox/index.ts → lib/textbox/index.d.ts} +1 -1
- package/lib/textbox/textbox.component.d.ts +19 -0
- package/lib/textbox/textbox.module.d.ts +13 -0
- package/{src/lib/time-box/index.ts → lib/time-box/index.d.ts} +0 -0
- package/lib/time-box/time-box.component.d.ts +29 -0
- package/lib/time-box/time-box.module.d.ts +11 -0
- package/{src/lib/toast/index.ts → lib/toast/index.d.ts} +0 -0
- package/{src/lib/toast/toast.class.ts → lib/toast/toast.class.d.ts} +1 -4
- package/lib/toast/toast.component.d.ts +16 -0
- package/lib/toast/toast.module.d.ts +9 -0
- package/lib/toast/toast.service.d.ts +18 -0
- package/{src/lib/tooltip/index.ts → lib/tooltip/index.d.ts} +0 -0
- package/lib/tooltip/tooltip.component.d.ts +10 -0
- package/lib/tooltip/tooltip.directive.d.ts +18 -0
- package/lib/tooltip/tooltip.module.d.ts +10 -0
- package/{src/lib/validation/index.ts → lib/validation/index.d.ts} +1 -1
- package/lib/validation/validation-rule.widget.d.ts +25 -0
- package/lib/validation/validation.class.d.ts +17 -0
- package/lib/validation/validation.module.d.ts +9 -0
- package/package.json +19 -12
- package/{src/public-api.ts → public-api.d.ts} +5 -3
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -11
- package/src/lib/alert/alert-button.component.ts +0 -45
- package/src/lib/alert/alert-contnet.component.ts +0 -14
- package/src/lib/alert/alert-footer.component.ts +0 -16
- package/src/lib/alert/alert-suffix.component.ts +0 -16
- package/src/lib/alert/alert-title.component.ts +0 -14
- package/src/lib/alert/alert.component.html +0 -13
- package/src/lib/alert/alert.component.ts +0 -139
- package/src/lib/alert/alert.module.ts +0 -26
- package/src/lib/avatar/avatar.component.html +0 -2
- package/src/lib/avatar/avatar.component.ts +0 -64
- package/src/lib/avatar/avatar.module.ts +0 -14
- package/src/lib/base/common.module.ts +0 -13
- package/src/lib/base/custom-cdk-overlay.service.ts +0 -83
- package/src/lib/base/mixin/base-components.class.ts +0 -112
- package/src/lib/base/mixin/button-mixin.class.ts +0 -145
- package/src/lib/base/mixin/clickable-mixin.class.ts +0 -33
- package/src/lib/base/mixin/constratctor.ts +0 -3
- package/src/lib/base/mixin/datalist-component.class.ts +0 -105
- package/src/lib/base/mixin/dropdown-mixin.class.ts +0 -55
- package/src/lib/base/mixin/interactive-mixin.class.ts +0 -83
- package/src/lib/base/mixin/loading-mixin.class.ts +0 -32
- package/src/lib/base/mixin/mixin.class.ts +0 -70
- package/src/lib/base/mixin/page-component.class.ts +0 -15
- package/src/lib/base/mixin/selection-component.class.ts +0 -185
- package/src/lib/base/mixin/sizable-mixin.class.ts +0 -30
- package/src/lib/base/mixin/textbox-mixin.class.ts +0 -51
- package/src/lib/base/mixin/value-mixin.class.ts +0 -215
- package/src/lib/base/overlay.service.ts +0 -117
- package/src/lib/base/responsive.directive.ts +0 -31
- package/src/lib/base/styles.class.ts +0 -24
- package/src/lib/button/button-group.component.html +0 -2
- package/src/lib/button/button-group.component.ts +0 -142
- package/src/lib/button/button-item.component.ts +0 -79
- package/src/lib/button/button.component.html +0 -18
- package/src/lib/button/button.component.ts +0 -71
- package/src/lib/button/button.module.ts +0 -23
- package/src/lib/calendar/calendar.component.html +0 -74
- package/src/lib/calendar/calendar.component.ts +0 -60
- package/src/lib/calendar/calendar.module.ts +0 -17
- package/src/lib/carousel/carousel-arrows.component.ts +0 -46
- package/src/lib/carousel/carousel-item.component.ts +0 -19
- package/src/lib/carousel/carousel-pager.component.ts +0 -83
- package/src/lib/carousel/carousel-splidejs.class.ts +0 -104
- package/src/lib/carousel/carousel.component.html +0 -11
- package/src/lib/carousel/carousel.component.ts +0 -273
- package/src/lib/carousel/carousel.module.ts +0 -19
- package/src/lib/checkbox/checkbox.component.html +0 -15
- package/src/lib/checkbox/checkbox.component.ts +0 -43
- package/src/lib/checkbox/checkbox.module.ts +0 -11
- package/src/lib/datalist/datalist.component.html +0 -35
- package/src/lib/datalist/datalist.component.ts +0 -86
- package/src/lib/datalist/datalist.module.ts +0 -17
- package/src/lib/datapager/datapager-base.component.ts +0 -29
- package/src/lib/datapager/datapager-dots-selector.component.ts +0 -0
- package/src/lib/datapager/datapager-info.component.ts +0 -64
- package/src/lib/datapager/datapager-input-selector.component.ts +0 -54
- package/src/lib/datapager/datapager-next-buttons.components.ts +0 -52
- package/src/lib/datapager/datapager-numeric-selector.component.ts +0 -94
- package/src/lib/datapager/datapager-pagesize-dropdown.component.ts +0 -77
- package/src/lib/datapager/datapager-prev-buttons.component.ts +0 -50
- package/src/lib/datapager/datapager.component.html +0 -19
- package/src/lib/datapager/datapager.component.ts +0 -146
- package/src/lib/datapager/datapager.module.ts +0 -32
- package/src/lib/datapager/index.ts +0 -8
- package/src/lib/datepicker/datepicker.component.html +0 -11
- package/src/lib/datepicker/datepicker.component.ts +0 -86
- package/src/lib/datepicker/datepicker.module.ts +0 -16
- package/src/lib/decorators/decorators.module.ts +0 -15
- package/src/lib/decorators/prefix.component.ts +0 -23
- package/src/lib/decorators/suffix.component.ts +0 -25
- package/src/lib/dialog/dialog.component.html +0 -22
- package/src/lib/dialog/dialog.component.ts +0 -48
- package/src/lib/dialog/dialog.module.ts +0 -19
- package/src/lib/dialog/dialog.service.ts +0 -154
- package/src/lib/drawer/drawer-container.component.ts +0 -69
- package/src/lib/drawer/drawer-content.component.ts +0 -24
- package/src/lib/drawer/drawer.component.ts +0 -156
- package/src/lib/drawer/drawer.module.ts +0 -16
- package/src/lib/dropdown/dropdown-base.class.ts +0 -107
- package/src/lib/dropdown/dropdown-panel.component.html +0 -15
- package/src/lib/dropdown/dropdown-panel.component.ts +0 -105
- package/src/lib/dropdown/dropdown.component.html +0 -19
- package/src/lib/dropdown/dropdown.component.ts +0 -31
- package/src/lib/dropdown/dropdown.module.ts +0 -17
- package/src/lib/form/form-field.component.ts +0 -18
- package/src/lib/form/form-field.module.ts +0 -14
- package/src/lib/form/form-hint.component.ts +0 -18
- package/src/lib/form/form.component.ts +0 -54
- package/src/lib/icon/icon.component.ts +0 -27
- package/src/lib/icon/icon.module.ts +0 -14
- package/src/lib/input-mask/input-mask.component.ts +0 -43
- package/src/lib/input-mask/input-mask.module.ts +0 -15
- package/src/lib/label/label.component.html +0 -3
- package/src/lib/label/label.component.ts +0 -16
- package/src/lib/label/label.module.ts +0 -14
- package/src/lib/loading/loading-spinner.component.ts +0 -17
- package/src/lib/loading/loading.component.ts +0 -55
- package/src/lib/loading/loading.directive.ts +0 -86
- package/src/lib/loading/loading.module.ts +0 -32
- package/src/lib/loading/loading.service.ts +0 -172
- package/src/lib/number-box/number-box.component.html +0 -15
- package/src/lib/number-box/number-box.component.ts +0 -297
- package/src/lib/number-box/number-box.module.ts +0 -22
- package/src/lib/page/base-page.class.ts +0 -80
- package/src/lib/page/page-footer.component.ts +0 -19
- package/src/lib/page/page.component.ts +0 -32
- package/src/lib/page/page.module.ts +0 -11
- package/src/lib/popover/popover.component.html +0 -3
- package/src/lib/popover/popover.component.ts +0 -229
- package/src/lib/popover/popover.module.ts +0 -11
- package/src/lib/popup/popup.component.html +0 -25
- package/src/lib/popup/popup.component.ts +0 -118
- package/src/lib/popup/popup.module.ts +0 -19
- package/src/lib/popup/popup.service.ts +0 -112
- package/src/lib/range-slider/range-slider.component.html +0 -1
- package/src/lib/range-slider/range-slider.component.ts +0 -21
- package/src/lib/range-slider/range-slider.module.ts +0 -14
- package/src/lib/selectbox/selectbox.component.html +0 -63
- package/src/lib/selectbox/selectbox.component.ts +0 -211
- package/src/lib/selectbox/selectbox.module.ts +0 -15
- package/src/lib/selection-list/selection-list.component.html +0 -31
- package/src/lib/selection-list/selection-list.component.ts +0 -56
- package/src/lib/selection-list/selection-list.module.ts +0 -13
- package/src/lib/side-menu/side-menu.component.html +0 -2
- package/src/lib/side-menu/side-menu.component.ts +0 -20
- package/src/lib/side-menu/side-menu.module.ts +0 -14
- package/src/lib/switch/switch.component.html +0 -8
- package/src/lib/switch/switch.component.ts +0 -25
- package/src/lib/switch/switch.module.ts +0 -15
- package/src/lib/tabs/tab-strip.component.html +0 -20
- package/src/lib/tabs/tab-strip.component.ts +0 -71
- package/src/lib/tabs/tab-view.component.html +0 -8
- package/src/lib/tabs/tab-view.component.ts +0 -50
- package/src/lib/tabs/tab.component.ts +0 -56
- package/src/lib/tabs/tabs.module.ts +0 -16
- package/src/lib/textbox/textbox.component.html +0 -20
- package/src/lib/textbox/textbox.component.ts +0 -64
- package/src/lib/textbox/textbox.module.ts +0 -24
- package/src/lib/time-box/time-box.component.html +0 -14
- package/src/lib/time-box/time-box.component.ts +0 -145
- package/src/lib/time-box/time-box.module.ts +0 -22
- package/src/lib/toast/toast.component.html +0 -12
- package/src/lib/toast/toast.component.ts +0 -57
- package/src/lib/toast/toast.module.ts +0 -15
- package/src/lib/toast/toast.service.ts +0 -122
- package/src/lib/tooltip/tooltip.component.html +0 -6
- package/src/lib/tooltip/tooltip.component.ts +0 -36
- package/src/lib/tooltip/tooltip.directive.ts +0 -93
- package/src/lib/tooltip/tooltip.module.ts +0 -16
- package/src/lib/validation/validation-rule.widget.ts +0 -120
- package/src/lib/validation/validation.class.ts +0 -23
- package/src/lib/validation/validation.module.ts +0 -26
- package/tsconfig.lib.json +0 -20
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -17
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, ElementRef, ChangeDetectorRef, Input, Attribute, HostListener } from '@angular/core';
|
|
2
|
-
import { AXBaseClickableMixin } from '../base';
|
|
3
|
-
import { BUTTON_OUTPUT } from '../base/mixin/button-mixin.class';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'ax-alert-button',
|
|
7
|
-
template: `
|
|
8
|
-
{{title}}
|
|
9
|
-
<i *ngIf="icon" class="{{icon}}"></i>
|
|
10
|
-
`,
|
|
11
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
-
encapsulation: ViewEncapsulation.None,
|
|
13
|
-
outputs: [...BUTTON_OUTPUT],
|
|
14
|
-
host: { class: 'ax-alert-button' }
|
|
15
|
-
})
|
|
16
|
-
export class AXAlertButtonComponent extends AXBaseClickableMixin {
|
|
17
|
-
|
|
18
|
-
@Input()
|
|
19
|
-
title: string;
|
|
20
|
-
|
|
21
|
-
@Input()
|
|
22
|
-
icon: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {
|
|
26
|
-
super(elementRef, cdr)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@HostListener('click', ['$event'])
|
|
30
|
-
_handleOnClick(e) {
|
|
31
|
-
this._emitOnClickEvent(e);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@HostListener('focus', ['$event'])
|
|
35
|
-
_handleOnFocus(e) {
|
|
36
|
-
this._emitOnFocusEvent(e);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@HostListener('blur', ['$event'])
|
|
40
|
-
_handleOnBlur(e) {
|
|
41
|
-
this._emitOnBlurEvent(e);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, ElementRef, ChangeDetectorRef, Input, Attribute } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'ax-alert-content',
|
|
5
|
-
template:
|
|
6
|
-
`<ng-content>
|
|
7
|
-
</ng-content>
|
|
8
|
-
`,
|
|
9
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
|
-
encapsulation: ViewEncapsulation.None,
|
|
11
|
-
host: { class: 'ax-alert-content' }
|
|
12
|
-
})
|
|
13
|
-
export class AXAlertContentComponent {
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'ax-alert-footer',
|
|
5
|
-
template: `
|
|
6
|
-
<div class="ax-alert-buttons">
|
|
7
|
-
<ng-content select="ax-alert-button">
|
|
8
|
-
</ng-content>
|
|
9
|
-
</div>
|
|
10
|
-
`,
|
|
11
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
-
encapsulation: ViewEncapsulation.None,
|
|
13
|
-
host: { class: 'ax-alert-footer' }
|
|
14
|
-
})
|
|
15
|
-
export class AXAlertFooterComponent {
|
|
16
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'ax-alert-suffix',
|
|
5
|
-
template: `
|
|
6
|
-
<div class="ax-alert-buttons">
|
|
7
|
-
<ng-content select="ax-alert-button">
|
|
8
|
-
</ng-content>
|
|
9
|
-
</div>
|
|
10
|
-
`,
|
|
11
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
-
encapsulation: ViewEncapsulation.None,
|
|
13
|
-
host: { class: 'ax-alert-suffix' }
|
|
14
|
-
})
|
|
15
|
-
export class AXAlertSuffixComponent {
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, ElementRef, ChangeDetectorRef, Input, Attribute } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'ax-alert-title',
|
|
5
|
-
template: `
|
|
6
|
-
<ng-content>
|
|
7
|
-
</ng-content>
|
|
8
|
-
`,
|
|
9
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
|
-
encapsulation: ViewEncapsulation.None,
|
|
11
|
-
host: { class: 'ax-alert-title' }
|
|
12
|
-
})
|
|
13
|
-
export class AXAlertTitleComponent {
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<div class="ax-alert-icon" *ngIf="icon">
|
|
2
|
-
<i class="{{icon}} fa-lg"></i>
|
|
3
|
-
</div>
|
|
4
|
-
<div class="ax-alert-body">
|
|
5
|
-
<ng-content select="ax-alert-title">
|
|
6
|
-
</ng-content>
|
|
7
|
-
<ng-content select="ax-alert-content">
|
|
8
|
-
</ng-content>
|
|
9
|
-
<ng-content select="ax-alert-footer">
|
|
10
|
-
</ng-content>
|
|
11
|
-
</div>
|
|
12
|
-
<ng-content select="ax-alert-suffix">
|
|
13
|
-
</ng-content>
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, ElementRef, ChangeDetectorRef, Input, ViewChildren, QueryList, EventEmitter, Output, HostBinding } from '@angular/core';
|
|
2
|
-
import { AXBaseComponentMixin, AXStyleColorType } from '../base';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Regular description
|
|
7
|
-
*
|
|
8
|
-
* @category Components
|
|
9
|
-
*/
|
|
10
|
-
@Component({
|
|
11
|
-
selector: 'ax-alert',
|
|
12
|
-
templateUrl: './alert.component.html',
|
|
13
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
|
-
encapsulation: ViewEncapsulation.None,
|
|
15
|
-
host: { class: 'ax-alert ax-none' }
|
|
16
|
-
})
|
|
17
|
-
export class AXAlertComponent extends AXBaseComponentMixin {
|
|
18
|
-
|
|
19
|
-
@Input()
|
|
20
|
-
icon: string;
|
|
21
|
-
|
|
22
|
-
@Output()
|
|
23
|
-
typeChange: EventEmitter<AXStyleColorType> = new EventEmitter<AXStyleColorType>();
|
|
24
|
-
|
|
25
|
-
private _color: AXStyleColorType;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The Alert allows you to set different types of alerts
|
|
29
|
-
*/
|
|
30
|
-
@Input()
|
|
31
|
-
public get color(): AXStyleColorType {
|
|
32
|
-
return this._color;
|
|
33
|
-
}
|
|
34
|
-
public set color(v: AXStyleColorType) {
|
|
35
|
-
this._color = v;
|
|
36
|
-
this.typeChange.emit(v);
|
|
37
|
-
switch (this.color) {
|
|
38
|
-
case 'success':
|
|
39
|
-
this.icon = 'ax-ic ax-ic-check-filled';
|
|
40
|
-
break;
|
|
41
|
-
case 'warning':
|
|
42
|
-
this.icon = 'ax-ic-warning-filled';
|
|
43
|
-
break;
|
|
44
|
-
case 'danger':
|
|
45
|
-
this.icon = 'ax-ic-error-filled';
|
|
46
|
-
break;
|
|
47
|
-
default:
|
|
48
|
-
this.icon = 'ax-ic ax-ic-info-filled';
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
@HostBinding('class')
|
|
54
|
-
get hostClass(): string {
|
|
55
|
-
return `ax-${this.color}`;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
@Input()
|
|
62
|
-
timeOut: number;
|
|
63
|
-
|
|
64
|
-
#visible: boolean;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* set the visibility of the Alert
|
|
68
|
-
*/
|
|
69
|
-
@Input()
|
|
70
|
-
public get visible(): boolean {
|
|
71
|
-
return this.#visible;
|
|
72
|
-
}
|
|
73
|
-
public set visible(v: boolean) {
|
|
74
|
-
if (this.#visible != v) {
|
|
75
|
-
this.#visible = v;
|
|
76
|
-
const host = this._getHostElement();
|
|
77
|
-
if (v) {
|
|
78
|
-
host.classList.remove('ax-state-hidden');
|
|
79
|
-
host.classList.add('ax-state-visible');
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
host.classList.add('ax-state-hidden');
|
|
83
|
-
host.classList.toggle('ax-state-visible');
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @ignore
|
|
91
|
-
*/
|
|
92
|
-
constructor(
|
|
93
|
-
elementRef: ElementRef,
|
|
94
|
-
cdr: ChangeDetectorRef
|
|
95
|
-
) {
|
|
96
|
-
super(elementRef, cdr);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
onInit() {
|
|
100
|
-
if (this.timeOut) {
|
|
101
|
-
setTimeout(() => {
|
|
102
|
-
this.dismiss()
|
|
103
|
-
}, this.timeOut);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
onViewInit() {
|
|
108
|
-
if (this.visible == undefined) {
|
|
109
|
-
this.visible = true;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Remove the alert from the container
|
|
115
|
-
*/
|
|
116
|
-
dismiss(): void {
|
|
117
|
-
const host = this._getHostElement();
|
|
118
|
-
this.visible = false;
|
|
119
|
-
const func = () => {
|
|
120
|
-
host.parentElement.removeChild(host);
|
|
121
|
-
}
|
|
122
|
-
host.addEventListener('transitionend', func);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Hide the alert
|
|
128
|
-
*/
|
|
129
|
-
hide(): void {
|
|
130
|
-
this.visible = false;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Show the alert
|
|
135
|
-
*/
|
|
136
|
-
show() {
|
|
137
|
-
this.visible = true;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { AXAlertComponent } from './alert.component';
|
|
4
|
-
import { AXAlertContentComponent } from './alert-contnet.component';
|
|
5
|
-
import { AXAlertTitleComponent } from './alert-title.component';
|
|
6
|
-
import { AXAlertButtonComponent } from './alert-button.component';
|
|
7
|
-
import { AXAlertFooterComponent } from './alert-footer.component';
|
|
8
|
-
import { AXAlertSuffixComponent } from './alert-suffix.component';
|
|
9
|
-
|
|
10
|
-
const COMPONENT = [
|
|
11
|
-
AXAlertComponent,
|
|
12
|
-
AXAlertContentComponent,
|
|
13
|
-
AXAlertTitleComponent,
|
|
14
|
-
AXAlertButtonComponent,
|
|
15
|
-
AXAlertFooterComponent,
|
|
16
|
-
AXAlertSuffixComponent
|
|
17
|
-
];
|
|
18
|
-
const MODULES = [CommonModule];
|
|
19
|
-
|
|
20
|
-
@NgModule({
|
|
21
|
-
declarations: [...COMPONENT],
|
|
22
|
-
imports: [...MODULES],
|
|
23
|
-
exports: [...COMPONENT],
|
|
24
|
-
providers: [],
|
|
25
|
-
})
|
|
26
|
-
export class AXAlertModule { }
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, ElementRef, ChangeDetectorRef, Input } from '@angular/core';
|
|
2
|
-
import { AXSizableComponentMixin, BASE_INPUTS } from '../base';
|
|
3
|
-
import { SIZABLE_INPUTS } from '../base/mixin/sizable-mixin.class';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'ax-avatar',
|
|
7
|
-
templateUrl: './avatar.component.html',
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
-
encapsulation: ViewEncapsulation.None,
|
|
10
|
-
inputs: [...BASE_INPUTS, ...SIZABLE_INPUTS],
|
|
11
|
-
host: { class: 'ax-avatar' }
|
|
12
|
-
})
|
|
13
|
-
export class AXAvatarComponent extends AXSizableComponentMixin {
|
|
14
|
-
|
|
15
|
-
constructor(
|
|
16
|
-
elementRef: ElementRef,
|
|
17
|
-
cdr: ChangeDetectorRef
|
|
18
|
-
) {
|
|
19
|
-
super(elementRef, cdr);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
private _image: string;
|
|
25
|
-
@Input()
|
|
26
|
-
public get image(): string {
|
|
27
|
-
return this._image;
|
|
28
|
-
}
|
|
29
|
-
public set image(v: string) {
|
|
30
|
-
this._image = v;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
private _title: string;
|
|
35
|
-
@Input()
|
|
36
|
-
public get title(): string {
|
|
37
|
-
return this._title;
|
|
38
|
-
}
|
|
39
|
-
public set title(v: string) {
|
|
40
|
-
this._title = v;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
private _icon: string;
|
|
45
|
-
@Input()
|
|
46
|
-
public get icon(): string {
|
|
47
|
-
return this._icon;
|
|
48
|
-
}
|
|
49
|
-
public set icon(v: string) {
|
|
50
|
-
this._icon = v;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
private _abbr: string;
|
|
55
|
-
@Input()
|
|
56
|
-
public get abbr(): string {
|
|
57
|
-
return this._abbr;
|
|
58
|
-
}
|
|
59
|
-
public set abbr(v: string) {
|
|
60
|
-
this._abbr = v;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { AXAvatarComponent } from './avatar.component';
|
|
4
|
-
|
|
5
|
-
const COMPONENT = [AXAvatarComponent];
|
|
6
|
-
const MODULES = [CommonModule];
|
|
7
|
-
|
|
8
|
-
@NgModule({
|
|
9
|
-
declarations: [...COMPONENT],
|
|
10
|
-
imports: [...MODULES],
|
|
11
|
-
exports: [...COMPONENT],
|
|
12
|
-
providers: [],
|
|
13
|
-
})
|
|
14
|
-
export class AXAvatarModule { }
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { AXResponsiveDirective } from './responsive.directive';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: [],
|
|
9
|
-
exports: [AXResponsiveDirective],
|
|
10
|
-
declarations: [AXResponsiveDirective],
|
|
11
|
-
providers: [],
|
|
12
|
-
})
|
|
13
|
-
export class AXCommonModule { }
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Overlay,
|
|
3
|
-
OverlayKeyboardDispatcher,
|
|
4
|
-
OverlayPositionBuilder,
|
|
5
|
-
ScrollStrategyOptions,
|
|
6
|
-
OverlayContainer,
|
|
7
|
-
OverlayRef,
|
|
8
|
-
OverlayConfig,
|
|
9
|
-
OverlayOutsideClickDispatcher
|
|
10
|
-
} from '@angular/cdk/overlay';
|
|
11
|
-
import {
|
|
12
|
-
ComponentFactoryResolver,
|
|
13
|
-
Inject,
|
|
14
|
-
Injector,
|
|
15
|
-
NgZone,
|
|
16
|
-
Renderer2,
|
|
17
|
-
RendererFactory2,
|
|
18
|
-
Injectable,
|
|
19
|
-
} from '@angular/core';
|
|
20
|
-
|
|
21
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
22
|
-
import { DOCUMENT, Location } from '@angular/common';
|
|
23
|
-
|
|
24
|
-
@Injectable({
|
|
25
|
-
providedIn: 'root'
|
|
26
|
-
})
|
|
27
|
-
export class DynamicOverlayContainer extends OverlayContainer {
|
|
28
|
-
public setContainerElement(containerElement: HTMLElement): void {
|
|
29
|
-
this._containerElement = containerElement;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
@Injectable({
|
|
36
|
-
providedIn: 'root'
|
|
37
|
-
})
|
|
38
|
-
export class DynamicOverlay extends Overlay {
|
|
39
|
-
private readonly _dynamicOverlayContainer: DynamicOverlayContainer;
|
|
40
|
-
private renderer: Renderer2;
|
|
41
|
-
|
|
42
|
-
constructor(
|
|
43
|
-
scrollStrategies: ScrollStrategyOptions,
|
|
44
|
-
_overlayContainer: DynamicOverlayContainer,
|
|
45
|
-
_componentFactoryResolver: ComponentFactoryResolver,
|
|
46
|
-
_positionBuilder: OverlayPositionBuilder,
|
|
47
|
-
_keyboardDispatcher: OverlayKeyboardDispatcher,
|
|
48
|
-
_injector: Injector,
|
|
49
|
-
_ngZone: NgZone,
|
|
50
|
-
@Inject(DOCUMENT) _document: any,
|
|
51
|
-
_directionality: Directionality,
|
|
52
|
-
rendererFactory: RendererFactory2,
|
|
53
|
-
_location: Location,
|
|
54
|
-
_outsideClickDispatcher: OverlayOutsideClickDispatcher,
|
|
55
|
-
) {
|
|
56
|
-
super(
|
|
57
|
-
scrollStrategies,
|
|
58
|
-
_overlayContainer,
|
|
59
|
-
_componentFactoryResolver,
|
|
60
|
-
_positionBuilder,
|
|
61
|
-
_keyboardDispatcher,
|
|
62
|
-
_injector,
|
|
63
|
-
_ngZone,
|
|
64
|
-
_document,
|
|
65
|
-
_directionality,
|
|
66
|
-
_location,
|
|
67
|
-
_outsideClickDispatcher,
|
|
68
|
-
);
|
|
69
|
-
this.renderer = rendererFactory.createRenderer(null, null);
|
|
70
|
-
|
|
71
|
-
this._dynamicOverlayContainer = _overlayContainer;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
private setContainerElement(containerElement: HTMLElement): void {
|
|
75
|
-
this.renderer.setStyle(containerElement, 'transform', 'translateZ(0)');
|
|
76
|
-
this._dynamicOverlayContainer.setContainerElement(containerElement);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
public createOn(containerElement: HTMLElement, config?: OverlayConfig): OverlayRef {
|
|
80
|
-
this.setContainerElement(containerElement);
|
|
81
|
-
return super.create(config);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Inject, Injectable } from "@angular/core";
|
|
2
|
-
import { ElementRef } from "@angular/core";
|
|
3
|
-
import { Constructor } from "./constratctor";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* A token that specifies the size of component.
|
|
8
|
-
*/
|
|
9
|
-
export type AXElementSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
10
|
-
|
|
11
|
-
@Injectable()
|
|
12
|
-
export class AXBaseComponent {
|
|
13
|
-
id: string = `ax-${new Date().getTime().toString()}`;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* A token that specifies the layout direction of component.
|
|
17
|
-
*/
|
|
18
|
-
rtl: boolean;
|
|
19
|
-
|
|
20
|
-
cssClass: string;
|
|
21
|
-
cssStyle: string;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
#elementRef: ElementRef;
|
|
25
|
-
_cdr: ChangeDetectorRef;
|
|
26
|
-
|
|
27
|
-
_isInited: boolean;
|
|
28
|
-
_isRendered: boolean;
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @ignore
|
|
32
|
-
*/
|
|
33
|
-
constructor(@Inject(Array) ...args: any[]) {
|
|
34
|
-
this.#elementRef = args[0];
|
|
35
|
-
this._cdr = args[1];
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
ngOnInit() {
|
|
39
|
-
this._isInited = true;
|
|
40
|
-
this._onInternalInit();
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
ngAfterViewInit() {
|
|
44
|
-
this._isRendered = true;
|
|
45
|
-
this._onInternalViewInit();
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
ngOnDestroy() {
|
|
49
|
-
this._onInternalDestroy();
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
_getHostElement<T = HTMLElement>(): T {
|
|
53
|
-
return this.#elementRef.nativeElement as T;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
_getInnerElement<T = HTMLElement>(): T {
|
|
57
|
-
return this._getHostElement().firstElementChild as unknown as T;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
_onInternalInit() {
|
|
62
|
-
(this._getHostElement() as any).__axContext__ = this;
|
|
63
|
-
this._getHostElement().setAttribute('data-id', this.id);
|
|
64
|
-
if (this.rtl == null) {
|
|
65
|
-
this.rtl = window.getComputedStyle(this._getHostElement(), null).getPropertyValue('direction') === 'rtl';
|
|
66
|
-
}
|
|
67
|
-
this._getHostElement().classList.add(this.rtl ? 'ax-rtl' : 'ax-ltr');
|
|
68
|
-
this._getInnerElement()?.classList.add(this.rtl ? 'ax-rtl' : 'ax-ltr');
|
|
69
|
-
this.onInit();
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
_onInternalViewInit() {
|
|
73
|
-
this.onViewInit();
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
_onInternalDestroy() {
|
|
77
|
-
this.onDestroy();
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
onInit() {
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
onViewInit() {
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
onDestroy() {
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
onOptionChanging(option: { name: string, value?: any }) {
|
|
90
|
-
return option?.value;
|
|
91
|
-
}
|
|
92
|
-
onOptionChanged(option: { name: string, oldValue?: any, newValue?: any }): void {
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
export function _BaseComponenetMixin<TBase extends Constructor<AXBaseComponent>>(Base: TBase) {
|
|
99
|
-
return class extends Base {
|
|
100
|
-
constructor(...args: any[]) {
|
|
101
|
-
super(...args);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
export const BASE_INPUTS = [
|
|
108
|
-
'rtl',
|
|
109
|
-
'cssClass',
|
|
110
|
-
'cssStyle'
|
|
111
|
-
];
|
|
112
|
-
export const BASE_OUTPUT = [];
|