@acorex/components 7.0.12 → 7.0.14
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/alert/public-api.d.ts +0 -1
- package/alert/src/alert.component.d.ts +4 -3
- package/alert/src/alert.module.d.ts +3 -4
- package/avatar/src/avatar.component.d.ts +2 -1
- package/badge/src/badge.component.d.ts +2 -2
- package/breadcrumbs/src/breadcrumbs-item.component.d.ts +6 -6
- package/button/src/button-group.component.d.ts +6 -6
- package/button/src/button-item.component.d.ts +6 -6
- package/button/src/button.component.d.ts +1 -1
- package/card/index.d.ts +5 -0
- package/card/public-api.d.ts +2 -0
- package/card/src/card.component.d.ts +10 -0
- package/card/src/card.module.d.ts +8 -0
- package/color-picker/src/color-picker.component.d.ts +16 -16
- package/date-picker/src/datepicker.component.d.ts +14 -14
- package/decorators/src/icon.component.d.ts +1 -1
- package/esm2020/action-sheet/src/action-sheet.component.mjs +5 -5
- package/esm2020/action-sheet/src/action-sheet.module.mjs +4 -4
- package/esm2020/action-sheet/src/action-sheet.service.mjs +15 -10
- package/esm2020/alert/public-api.mjs +1 -2
- package/esm2020/alert/src/alert.component.mjs +11 -8
- package/esm2020/alert/src/alert.module.mjs +6 -7
- package/esm2020/avatar/src/avatar-group.component.mjs +3 -3
- package/esm2020/avatar/src/avatar.component.mjs +10 -7
- package/esm2020/avatar/src/avatar.module.mjs +4 -4
- package/esm2020/badge/src/badge.component.mjs +5 -6
- package/esm2020/badge/src/badge.module.mjs +4 -4
- package/esm2020/breadcrumbs/src/breadcrumbs-item.component.mjs +3 -3
- package/esm2020/breadcrumbs/src/breadcrumbs.component.mjs +3 -3
- package/esm2020/breadcrumbs/src/breadcrumbs.module.mjs +4 -4
- package/esm2020/button/src/button-group.component.mjs +3 -3
- package/esm2020/button/src/button-item.component.mjs +3 -3
- package/esm2020/button/src/button.component.mjs +6 -6
- package/esm2020/button/src/button.module.mjs +4 -4
- package/esm2020/calendar/src/calendar.class.mjs +3 -3
- package/esm2020/calendar/src/calendar.component.mjs +5 -5
- package/esm2020/calendar/src/calendar.module.mjs +4 -4
- package/esm2020/card/acorex-components-card.mjs +5 -0
- package/esm2020/card/public-api.mjs +3 -0
- package/esm2020/card/src/card.component.mjs +17 -0
- package/esm2020/card/src/card.module.mjs +19 -0
- package/esm2020/checkbox/src/checkbox.component.mjs +3 -3
- package/esm2020/checkbox/src/checkbox.module.mjs +4 -4
- package/esm2020/chips/src/chips.component.mjs +3 -3
- package/esm2020/chips/src/chips.module.mjs +4 -4
- package/esm2020/collapse/src/collapse-group.component.mjs +4 -6
- package/esm2020/collapse/src/collapse.component.mjs +3 -3
- package/esm2020/collapse/src/collapse.module.mjs +4 -4
- package/esm2020/color-palette/src/color-palette-input.component.mjs +3 -3
- package/esm2020/color-palette/src/color-palette-picker.component.mjs +3 -3
- package/esm2020/color-palette/src/color-palette-preview.component.mjs +3 -3
- package/esm2020/color-palette/src/color-palette-swatches.component.mjs +3 -3
- package/esm2020/color-palette/src/color-palette.class.mjs +6 -6
- package/esm2020/color-palette/src/color-palette.component.mjs +5 -5
- package/esm2020/color-palette/src/color-palette.module.mjs +4 -4
- package/esm2020/color-picker/src/color-picker.component.mjs +3 -3
- package/esm2020/color-picker/src/color-picker.module.mjs +4 -4
- package/esm2020/common/src/classes/components.class.mjs +19 -21
- package/esm2020/common/src/common.module.mjs +4 -4
- package/esm2020/common/src/directives/auto-focus.directive.mjs +3 -3
- package/esm2020/common/src/directives/debounce-time.directive.mjs +3 -3
- package/esm2020/common/src/directives/hotkey.directive.mjs +3 -3
- package/esm2020/common/src/directives/infinite-scroll.directive.mjs +3 -3
- package/esm2020/common/src/directives/responsive.directive.mjs +3 -3
- package/esm2020/common/src/services/custom-cdk-overlay.service.mjs +6 -6
- package/esm2020/common/src/services/hotkey.service.mjs +3 -3
- package/esm2020/common/src/services/overlay.service.mjs +5 -5
- package/esm2020/context-menu/src/context-menu.component.mjs +3 -3
- package/esm2020/context-menu/src/context-menu.module.mjs +4 -4
- package/esm2020/data-pager/src/data-pager-base.component.mjs +6 -6
- package/esm2020/data-pager/src/data-pager-info.component.mjs +3 -3
- package/esm2020/data-pager/src/data-pager-input-selector.component.mjs +3 -3
- package/esm2020/data-pager/src/data-pager-next-buttons.components.mjs +3 -3
- package/esm2020/data-pager/src/data-pager-numeric-selector.component.mjs +3 -3
- package/esm2020/data-pager/src/data-pager-pagesize-dropdown.component.mjs +3 -3
- package/esm2020/data-pager/src/data-pager-prev-buttons.component.mjs +3 -3
- package/esm2020/data-pager/src/data-pager.component.mjs +3 -3
- package/esm2020/data-pager/src/data-pager.module.mjs +4 -4
- package/esm2020/data-table/src/data-column-cell-template.directive.mjs +3 -3
- package/esm2020/data-table/src/data-column.directive.mjs +3 -3
- package/esm2020/data-table/src/data-table.component.mjs +3 -3
- package/esm2020/data-table/src/data-table.module.mjs +4 -4
- package/esm2020/date-picker/src/datepicker.component.mjs +6 -6
- package/esm2020/date-picker/src/datepicker.module.mjs +4 -4
- package/esm2020/decorators/src/close-button.component.mjs +3 -3
- package/esm2020/decorators/src/content.component.mjs +3 -3
- package/esm2020/decorators/src/decorators.module.mjs +4 -4
- package/esm2020/decorators/src/footer.component.mjs +3 -3
- package/esm2020/decorators/src/form-hint.component.mjs +3 -3
- package/esm2020/decorators/src/header.component.mjs +3 -3
- package/esm2020/decorators/src/icon.component.mjs +5 -5
- package/esm2020/decorators/src/overlay.component.mjs +3 -3
- package/esm2020/decorators/src/placeholder.component.mjs +3 -3
- package/esm2020/decorators/src/prefix.component.mjs +3 -3
- package/esm2020/decorators/src/sub-title.component.mjs +3 -3
- package/esm2020/decorators/src/suffix.component.mjs +3 -3
- package/esm2020/decorators/src/text.component.mjs +3 -3
- package/esm2020/decorators/src/title.component.mjs +5 -8
- package/esm2020/dialog/src/dialog.component.mjs +4 -4
- package/esm2020/dialog/src/dialog.module.mjs +4 -4
- package/esm2020/dialog/src/dialog.service.mjs +3 -3
- package/esm2020/drawer/src/drawer-container.component.mjs +3 -3
- package/esm2020/drawer/src/drawer.component.mjs +3 -3
- package/esm2020/drawer/src/drawer.module.mjs +4 -4
- package/esm2020/dropdown/src/dropdown-panel.component.mjs +3 -3
- package/esm2020/dropdown/src/dropdown.module.mjs +4 -4
- package/esm2020/form/src/form-field.component.mjs +4 -4
- package/esm2020/form/src/form.component.mjs +3 -3
- package/esm2020/form/src/form.module.mjs +4 -4
- package/esm2020/form/src/validation-rule.widget.mjs +3 -3
- package/esm2020/form/src/validation-summary.component.mjs +3 -3
- package/esm2020/image/src/image.component.mjs +3 -3
- package/esm2020/image/src/image.module.mjs +4 -4
- package/esm2020/label/src/label.component.mjs +3 -3
- package/esm2020/label/src/label.module.mjs +4 -4
- package/esm2020/loading/src/loading-spinner.component.mjs +3 -3
- package/esm2020/loading/src/loading.component.mjs +3 -3
- package/esm2020/loading/src/loading.directive.mjs +3 -3
- package/esm2020/loading/src/loading.module.mjs +4 -4
- package/esm2020/loading/src/loading.service.mjs +3 -3
- package/esm2020/menu/src/menu.component.mjs +8 -6
- package/esm2020/menu/src/menu.module.mjs +4 -4
- package/esm2020/mixin/src/base-components.class.mjs +3 -3
- package/esm2020/mixin/src/base-menu-mixin.class.mjs +2 -2
- package/esm2020/mixin/src/color-look-mixing.class.mjs +1 -1
- package/esm2020/notification/src/notification.class.mjs +1 -1
- package/esm2020/notification/src/notification.component.mjs +33 -9
- package/esm2020/notification/src/notification.module.mjs +8 -6
- package/esm2020/notification/src/notification.service.mjs +22 -51
- package/esm2020/number-box/src/number-box.component.mjs +3 -3
- package/esm2020/number-box/src/number-box.module.mjs +4 -4
- package/esm2020/page/src/base-page.class.mjs +3 -3
- package/esm2020/page/src/page.component.mjs +3 -3
- package/esm2020/page/src/page.module.mjs +4 -4
- package/esm2020/password-box/src/password-box.component.mjs +3 -3
- package/esm2020/password-box/src/password-box.module.mjs +4 -4
- package/esm2020/picker/acorex-components-picker.mjs +5 -0
- package/esm2020/picker/public-api.mjs +3 -0
- package/esm2020/picker/src/picker.component.mjs +37 -0
- package/esm2020/picker/src/picker.module.mjs +36 -0
- package/esm2020/popover/src/popover.component.mjs +23 -14
- package/esm2020/popover/src/popover.module.mjs +4 -4
- package/esm2020/popup/src/popup.component.mjs +3 -3
- package/esm2020/popup/src/popup.module.mjs +4 -4
- package/esm2020/popup/src/popup.service.mjs +3 -3
- package/esm2020/progress-bar/src/progress-bar.component.mjs +3 -3
- package/esm2020/progress-bar/src/progress-bar.module.mjs +4 -4
- package/esm2020/radio/src/radio.component.mjs +3 -3
- package/esm2020/radio/src/radio.module.mjs +4 -4
- package/esm2020/range-slider/src/range-slider.component.mjs +3 -3
- package/esm2020/range-slider/src/range-slider.module.mjs +4 -4
- package/esm2020/rating/src/rating.component.mjs +3 -3
- package/esm2020/rating/src/rating.component.module.mjs +4 -4
- package/esm2020/result/src/result.component.mjs +3 -3
- package/esm2020/result/src/result.module.mjs +4 -4
- package/esm2020/search-box/src/search-box.component.mjs +3 -3
- package/esm2020/search-box/src/search-box.module.mjs +4 -4
- package/esm2020/select-box/src/selectbox.component.mjs +15 -16
- package/esm2020/select-box/src/selectbox.module.mjs +4 -4
- package/esm2020/selection-list/src/selection-list.component.mjs +3 -3
- package/esm2020/selection-list/src/selection-list.module.mjs +4 -4
- package/esm2020/switch/public-api.mjs +2 -1
- package/esm2020/switch/src/switch-content.component.mjs +16 -0
- package/esm2020/switch/src/switch.component.mjs +18 -7
- package/esm2020/switch/src/switch.module.mjs +8 -7
- package/esm2020/tabs/src/tab-content.directive.mjs +3 -3
- package/esm2020/tabs/src/tab-item.component.mjs +3 -3
- package/esm2020/tabs/src/tabs.component.mjs +5 -5
- package/esm2020/tabs/src/tabs.module.mjs +4 -4
- package/esm2020/tag/src/tag.component.mjs +3 -3
- package/esm2020/tag/src/tag.module.mjs +4 -4
- package/esm2020/textarea/src/textarea.component.mjs +3 -3
- package/esm2020/textarea/src/textarea.module.mjs +4 -4
- package/esm2020/textbox/src/mask-options.directive.mjs +3 -3
- package/esm2020/textbox/src/textbox.component.mjs +3 -3
- package/esm2020/textbox/src/textbox.module.mjs +4 -4
- package/esm2020/time-box/src/time-box.component.mjs +3 -3
- package/esm2020/time-box/src/time-box.module.mjs +4 -4
- package/esm2020/toast/src/toast.class.mjs +1 -1
- package/esm2020/toast/src/toast.component.mjs +5 -5
- package/esm2020/toast/src/toast.module.mjs +4 -4
- package/esm2020/toast/src/toast.service.mjs +4 -6
- package/esm2020/tooltip/src/tooltip.component.mjs +3 -3
- package/esm2020/tooltip/src/tooltip.directive.mjs +3 -3
- package/esm2020/tooltip/src/tooltip.module.mjs +4 -4
- package/esm2020/tree-view/src/tree-view.component.mjs +3 -3
- package/esm2020/tree-view/src/tree-view.module.mjs +4 -4
- package/esm2020/uploader/src/uploader.component.mjs +3 -3
- package/esm2020/uploader/src/uploader.module.mjs +4 -4
- package/fesm2015/acorex-components-action-sheet.mjs +21 -17
- package/fesm2015/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2015/acorex-components-alert.mjs +18 -33
- package/fesm2015/acorex-components-alert.mjs.map +1 -1
- package/fesm2015/acorex-components-avatar.mjs +16 -14
- package/fesm2015/acorex-components-avatar.mjs.map +1 -1
- package/fesm2015/acorex-components-badge.mjs +8 -10
- package/fesm2015/acorex-components-badge.mjs.map +1 -1
- package/fesm2015/acorex-components-breadcrumbs.mjs +10 -11
- package/fesm2015/acorex-components-button.mjs +15 -15
- package/fesm2015/acorex-components-button.mjs.map +1 -1
- package/fesm2015/acorex-components-calendar.mjs +11 -12
- package/fesm2015/acorex-components-calendar.mjs.map +1 -1
- package/fesm2015/acorex-components-card.mjs +40 -0
- package/fesm2015/acorex-components-card.mjs.map +1 -0
- package/fesm2015/acorex-components-checkbox.mjs +7 -8
- package/fesm2015/acorex-components-chips.mjs +7 -8
- package/fesm2015/acorex-components-collapse.mjs +10 -13
- package/fesm2015/acorex-components-collapse.mjs.map +1 -1
- package/fesm2015/acorex-components-color-palette.mjs +27 -28
- package/fesm2015/acorex-components-color-picker.mjs +7 -8
- package/fesm2015/acorex-components-common.mjs +50 -53
- package/fesm2015/acorex-components-common.mjs.map +1 -1
- package/fesm2015/acorex-components-context-menu.mjs +7 -8
- package/fesm2015/acorex-components-data-pager.mjs +31 -32
- package/fesm2015/acorex-components-data-table.mjs +13 -14
- package/fesm2015/acorex-components-date-picker.mjs +9 -10
- package/fesm2015/acorex-components-date-picker.mjs.map +1 -1
- package/fesm2015/acorex-components-decorators.mjs +45 -48
- package/fesm2015/acorex-components-decorators.mjs.map +1 -1
- package/fesm2015/acorex-components-dialog.mjs +11 -11
- package/fesm2015/acorex-components-dialog.mjs.map +1 -1
- package/fesm2015/acorex-components-drawer.mjs +10 -11
- package/fesm2015/acorex-components-dropdown.mjs +7 -8
- package/fesm2015/acorex-components-form.mjs +17 -18
- package/fesm2015/acorex-components-form.mjs.map +1 -1
- package/fesm2015/acorex-components-image.mjs +7 -8
- package/fesm2015/acorex-components-label.mjs +7 -8
- package/fesm2015/acorex-components-loading.mjs +16 -17
- package/fesm2015/acorex-components-menu.mjs +11 -10
- package/fesm2015/acorex-components-menu.mjs.map +1 -1
- package/fesm2015/acorex-components-mixin.mjs +4 -5
- package/fesm2015/acorex-components-mixin.mjs.map +1 -1
- package/fesm2015/acorex-components-notification.mjs +59 -64
- package/fesm2015/acorex-components-notification.mjs.map +1 -1
- package/fesm2015/acorex-components-number-box.mjs +7 -8
- package/fesm2015/acorex-components-page.mjs +10 -11
- package/fesm2015/acorex-components-password-box.mjs +7 -8
- package/fesm2015/acorex-components-picker.mjs +77 -0
- package/fesm2015/acorex-components-picker.mjs.map +1 -0
- package/fesm2015/acorex-components-popover.mjs +26 -18
- package/fesm2015/acorex-components-popover.mjs.map +1 -1
- package/fesm2015/acorex-components-popup.mjs +10 -11
- package/fesm2015/acorex-components-progress-bar.mjs +7 -8
- package/fesm2015/acorex-components-radio.mjs +7 -8
- package/fesm2015/acorex-components-range-slider.mjs +7 -8
- package/fesm2015/acorex-components-rating.mjs +7 -8
- package/fesm2015/acorex-components-result.mjs +7 -8
- package/fesm2015/acorex-components-search-box.mjs +7 -8
- package/fesm2015/acorex-components-select-box.mjs +19 -20
- package/fesm2015/acorex-components-select-box.mjs.map +1 -1
- package/fesm2015/acorex-components-selection-list.mjs +7 -8
- package/fesm2015/acorex-components-switch.mjs +39 -15
- package/fesm2015/acorex-components-switch.mjs.map +1 -1
- package/fesm2015/acorex-components-tabs.mjs +15 -16
- package/fesm2015/acorex-components-tabs.mjs.map +1 -1
- package/fesm2015/acorex-components-tag.mjs +7 -8
- package/fesm2015/acorex-components-textarea.mjs +7 -8
- package/fesm2015/acorex-components-textbox.mjs +10 -11
- package/fesm2015/acorex-components-time-box.mjs +7 -8
- package/fesm2015/acorex-components-toast.mjs +11 -13
- package/fesm2015/acorex-components-toast.mjs.map +1 -1
- package/fesm2015/acorex-components-tooltip.mjs +10 -11
- package/fesm2015/acorex-components-tree-view.mjs +7 -8
- package/fesm2015/acorex-components-uploader.mjs +7 -8
- package/fesm2015/acorex-components.mjs +0 -1
- package/fesm2020/acorex-components-action-sheet.mjs +21 -17
- package/fesm2020/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2020/acorex-components-alert.mjs +18 -33
- package/fesm2020/acorex-components-alert.mjs.map +1 -1
- package/fesm2020/acorex-components-avatar.mjs +16 -14
- package/fesm2020/acorex-components-avatar.mjs.map +1 -1
- package/fesm2020/acorex-components-badge.mjs +8 -10
- package/fesm2020/acorex-components-badge.mjs.map +1 -1
- package/fesm2020/acorex-components-breadcrumbs.mjs +10 -11
- package/fesm2020/acorex-components-button.mjs +15 -15
- package/fesm2020/acorex-components-button.mjs.map +1 -1
- package/fesm2020/acorex-components-calendar.mjs +11 -12
- package/fesm2020/acorex-components-calendar.mjs.map +1 -1
- package/fesm2020/acorex-components-card.mjs +40 -0
- package/fesm2020/acorex-components-card.mjs.map +1 -0
- package/fesm2020/acorex-components-checkbox.mjs +7 -8
- package/fesm2020/acorex-components-chips.mjs +7 -8
- package/fesm2020/acorex-components-collapse.mjs +10 -13
- package/fesm2020/acorex-components-collapse.mjs.map +1 -1
- package/fesm2020/acorex-components-color-palette.mjs +27 -28
- package/fesm2020/acorex-components-color-picker.mjs +7 -8
- package/fesm2020/acorex-components-common.mjs +50 -53
- package/fesm2020/acorex-components-common.mjs.map +1 -1
- package/fesm2020/acorex-components-context-menu.mjs +7 -8
- package/fesm2020/acorex-components-data-pager.mjs +31 -32
- package/fesm2020/acorex-components-data-table.mjs +13 -14
- package/fesm2020/acorex-components-date-picker.mjs +9 -10
- package/fesm2020/acorex-components-date-picker.mjs.map +1 -1
- package/fesm2020/acorex-components-decorators.mjs +45 -48
- package/fesm2020/acorex-components-decorators.mjs.map +1 -1
- package/fesm2020/acorex-components-dialog.mjs +11 -11
- package/fesm2020/acorex-components-dialog.mjs.map +1 -1
- package/fesm2020/acorex-components-drawer.mjs +10 -11
- package/fesm2020/acorex-components-dropdown.mjs +7 -8
- package/fesm2020/acorex-components-form.mjs +17 -18
- package/fesm2020/acorex-components-form.mjs.map +1 -1
- package/fesm2020/acorex-components-image.mjs +7 -8
- package/fesm2020/acorex-components-label.mjs +7 -8
- package/fesm2020/acorex-components-loading.mjs +16 -17
- package/fesm2020/acorex-components-menu.mjs +11 -10
- package/fesm2020/acorex-components-menu.mjs.map +1 -1
- package/fesm2020/acorex-components-mixin.mjs +4 -5
- package/fesm2020/acorex-components-mixin.mjs.map +1 -1
- package/fesm2020/acorex-components-notification.mjs +59 -64
- package/fesm2020/acorex-components-notification.mjs.map +1 -1
- package/fesm2020/acorex-components-number-box.mjs +7 -8
- package/fesm2020/acorex-components-page.mjs +10 -11
- package/fesm2020/acorex-components-password-box.mjs +7 -8
- package/fesm2020/acorex-components-picker.mjs +77 -0
- package/fesm2020/acorex-components-picker.mjs.map +1 -0
- package/fesm2020/acorex-components-popover.mjs +26 -18
- package/fesm2020/acorex-components-popover.mjs.map +1 -1
- package/fesm2020/acorex-components-popup.mjs +10 -11
- package/fesm2020/acorex-components-progress-bar.mjs +7 -8
- package/fesm2020/acorex-components-radio.mjs +7 -8
- package/fesm2020/acorex-components-range-slider.mjs +7 -8
- package/fesm2020/acorex-components-rating.mjs +7 -8
- package/fesm2020/acorex-components-result.mjs +7 -8
- package/fesm2020/acorex-components-search-box.mjs +7 -8
- package/fesm2020/acorex-components-select-box.mjs +18 -20
- package/fesm2020/acorex-components-select-box.mjs.map +1 -1
- package/fesm2020/acorex-components-selection-list.mjs +7 -8
- package/fesm2020/acorex-components-switch.mjs +39 -15
- package/fesm2020/acorex-components-switch.mjs.map +1 -1
- package/fesm2020/acorex-components-tabs.mjs +15 -16
- package/fesm2020/acorex-components-tabs.mjs.map +1 -1
- package/fesm2020/acorex-components-tag.mjs +7 -8
- package/fesm2020/acorex-components-textarea.mjs +7 -8
- package/fesm2020/acorex-components-textbox.mjs +10 -11
- package/fesm2020/acorex-components-time-box.mjs +7 -8
- package/fesm2020/acorex-components-toast.mjs +11 -13
- package/fesm2020/acorex-components-toast.mjs.map +1 -1
- package/fesm2020/acorex-components-tooltip.mjs +10 -11
- package/fesm2020/acorex-components-tree-view.mjs +7 -8
- package/fesm2020/acorex-components-uploader.mjs +7 -8
- package/fesm2020/acorex-components.mjs +0 -1
- package/mixin/src/base-components.class.d.ts +2 -2
- package/mixin/src/base-menu-mixin.class.d.ts +5 -5
- package/mixin/src/button-mixin.class.d.ts +2 -2
- package/mixin/src/clickable-mixin.class.d.ts +2 -2
- package/mixin/src/color-look-mixing.class.d.ts +2 -2
- package/mixin/src/datalist-component.class.d.ts +10 -10
- package/mixin/src/dropdown-mixin.class.d.ts +2 -2
- package/mixin/src/interactive-mixin.class.d.ts +4 -4
- package/mixin/src/loading-mixin.class.d.ts +2 -2
- package/mixin/src/mixin.class.d.ts +61 -61
- package/mixin/src/page-component.class.d.ts +2 -2
- package/mixin/src/selection-component.class.d.ts +2 -2
- package/mixin/src/sizable-mixin.class.d.ts +2 -2
- package/mixin/src/textbox-mixin.class.d.ts +2 -2
- package/mixin/src/value-mixin.class.d.ts +8 -8
- package/notification/src/notification.class.d.ts +3 -1
- package/notification/src/notification.component.d.ts +8 -3
- package/notification/src/notification.module.d.ts +3 -1
- package/notification/src/notification.service.d.ts +0 -5
- package/package.json +18 -2
- package/picker/index.d.ts +5 -0
- package/picker/public-api.d.ts +2 -0
- package/picker/src/picker.component.d.ts +12 -0
- package/picker/src/picker.module.d.ts +13 -0
- package/select-box/src/selectbox.component.d.ts +1 -1
- package/switch/public-api.d.ts +1 -0
- package/switch/src/switch-content.component.d.ts +8 -0
- package/switch/src/switch.component.d.ts +2 -1
- package/switch/src/switch.module.d.ts +5 -4
- package/tabs/src/tab-item.component.d.ts +2 -2
- package/toast/src/toast.class.d.ts +1 -2
- package/alert/src/alert-button.directive.d.ts +0 -8
- package/esm2020/alert/src/alert-button.directive.mjs +0 -19
@@ -1,11 +1,14 @@
|
|
1
1
|
import { AXClosbaleComponent } from '@acorex/components/common';
|
2
2
|
import * as i0 from '@angular/core';
|
3
|
-
import { Component, ChangeDetectionStrategy, ViewEncapsulation, HostBinding, NgModule, Injectable } from '@angular/core';
|
3
|
+
import { TemplateRef, Component, ChangeDetectionStrategy, ViewEncapsulation, HostBinding, NgModule, Injectable } from '@angular/core';
|
4
4
|
import { AXBaseComponentMixin } from '@acorex/components/mixin';
|
5
|
+
import * as i2 from '@angular/cdk/portal';
|
6
|
+
import { TemplatePortal, ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
5
7
|
import * as i1 from '@angular/common';
|
6
8
|
import { CommonModule } from '@angular/common';
|
9
|
+
import * as i3 from '@acorex/components/button';
|
10
|
+
import { AXButtonModule } from '@acorex/components/button';
|
7
11
|
import { AXConfig } from '@acorex/core/config';
|
8
|
-
import { ComponentPortal } from '@angular/cdk/portal';
|
9
12
|
import * as i1$1 from '@angular/cdk/overlay';
|
10
13
|
|
11
14
|
/**
|
@@ -17,16 +20,33 @@ class AXNotificationComponent extends AXBaseComponentMixin {
|
|
17
20
|
/**
|
18
21
|
* @ignore
|
19
22
|
*/
|
20
|
-
constructor(elementRef, cdr) {
|
23
|
+
constructor(elementRef, cdr, viewRef) {
|
21
24
|
super(elementRef, cdr);
|
22
|
-
this.
|
25
|
+
this.viewRef = viewRef;
|
23
26
|
}
|
24
27
|
onInit() {
|
28
|
+
this._initContent();
|
29
|
+
this._initIcon();
|
30
|
+
this._handleTimeOut();
|
31
|
+
}
|
32
|
+
_handleTimeOut() {
|
25
33
|
if (this.options.timeOut) {
|
26
34
|
setTimeout(() => {
|
27
35
|
this.close();
|
28
36
|
}, this.options.timeOut);
|
29
37
|
}
|
38
|
+
}
|
39
|
+
_initContent() {
|
40
|
+
if (this.options.content instanceof (TemplateRef)) {
|
41
|
+
this._selectedPortal = new TemplatePortal(this.options.content, this.viewRef);
|
42
|
+
this._cdr.markForCheck();
|
43
|
+
}
|
44
|
+
else if (typeof this.options.content === 'function') {
|
45
|
+
this._selectedPortal = new ComponentPortal(this.options.content);
|
46
|
+
this._cdr.markForCheck();
|
47
|
+
}
|
48
|
+
}
|
49
|
+
_initIcon() {
|
30
50
|
if (!this.options.icon) {
|
31
51
|
switch (this.options.color) {
|
32
52
|
case 'success':
|
@@ -56,24 +76,28 @@ class AXNotificationComponent extends AXBaseComponentMixin {
|
|
56
76
|
return `ax-${this.options.color}`;
|
57
77
|
}
|
58
78
|
}
|
59
|
-
AXNotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
60
|
-
AXNotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
61
|
-
|
79
|
+
AXNotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNotificationComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
80
|
+
AXNotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: AXNotificationComponent, selector: "ax-notification", host: { properties: { "class": "this.__hostClass" } }, providers: [
|
81
|
+
{ provide: AXClosbaleComponent, useExisting: AXNotificationComponent },
|
82
|
+
], usesInheritance: true, ngImport: i0, template: "<span [class]=\"'ax-notification-icon' + ' ' + _icon\"></span>\r\n<div class=\"ax-notification-content\">\r\n <div class=\"ax-notification-title\">{{ options.title }}</div>\r\n <ng-template *ngIf=\"_selectedPortal\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\"></ng-template>\r\n </ng-template>\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\"></ng-template>\r\n <div *ngIf=\"!_selectedPortal\">{{ options.content }}</div>\r\n <div class=\"ax-notification-buttons\" *ngIf=\"options?.buttons?.length\">\r\n <ax-button\r\n *ngFor=\"let button of options.buttons\"\r\n class=\"ax-xs\"\r\n [text]=\"button.text\"\r\n [color]=\"button.color\"\r\n [look]=\"button.look\"\r\n (onClick)=\"_handleButtonClick(button)\">\r\n {{ button.text }}\r\n </ax-button>\r\n </div>\r\n</div>\r\n<span class=\"ax-icon ax-icon-close\" (click)=\"close()\"></span>\r\n<div\r\n class=\"ax-notification-progress\"\r\n [style.animation-duration.ms]=\"options.timeOut\"\r\n *ngIf=\"options.timeOut\"></div>\r\n", styles: ["html.ax-dark ax-notification{background-color:rgb(var(--ax-color-on-surface))}ax-notification{width:max(20vw,380px);display:flex;padding:1rem;border-radius:var(--ax-rounded-border-default);font-size:.875rem;border:1px solid;background-color:rgb(var(--ax-color-surface));border-color:rgba(var(--ax-color-border-default));position:relative;overflow:hidden;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}ax-notification.ax-primary .ax-notification-icon{color:rgb(var(--ax-color-primary-500))}ax-notification.ax-primary .ax-notification-progress{background-color:rgb(var(--ax-color-primary-500))}ax-notification.ax-secondary .ax-notification-icon{color:rgb(var(--ax-color-secondary-500))}ax-notification.ax-secondary .ax-notification-progress{background-color:rgb(var(--ax-color-secondary-500))}ax-notification.ax-success .ax-notification-icon{color:rgb(var(--ax-color-success-500))}ax-notification.ax-success .ax-notification-progress{background-color:rgb(var(--ax-color-success-500))}ax-notification.ax-warning .ax-notification-icon{color:rgb(var(--ax-color-warning-500))}ax-notification.ax-warning .ax-notification-progress{background-color:rgb(var(--ax-color-warning-500))}ax-notification.ax-danger .ax-notification-icon{color:rgb(var(--ax-color-danger-500))}ax-notification.ax-danger .ax-notification-progress{background-color:rgb(var(--ax-color-danger-500))}@media (max-width: 599px){ax-notification{width:98vw}}ax-notification .ax-notification-icon,ax-notification .ax-icon-close{font-size:1.25rem}ax-notification .ax-notification-icon{padding-inline-end:.75rem}ax-notification .ax-notification-content{display:flex;flex-direction:column;flex:1;color:rgba(var(--ax-color-ghost),.64);font-weight:400}ax-notification .ax-notification-content .ax-notification-title{font-weight:500;margin-bottom:.25rem;color:rgba(var(--ax-color-ghost))}ax-notification .ax-notification-content .ax-notification-buttons{margin-top:.75rem;display:flex;gap:.75rem}ax-notification .ax-icon-close{cursor:pointer;height:-moz-fit-content;height:fit-content;color:rgba(var(--ax-color-ghost),.64)}ax-notification .ax-icon-close:hover{opacity:.6}ax-notification .ax-notification-progress{position:absolute;right:0;left:0;bottom:0;height:.25rem;width:100%;animation-duration:4s;animation-timing-function:linear;animation-name:progressBar;background-color:rgba(var(--ax-color-border-default))}@keyframes progressBar{0%{width:100%}to{width:0%}}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "component", type: i3.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNotificationComponent, decorators: [{
|
62
84
|
type: Component,
|
63
|
-
args: [{ selector: 'ax-notification', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
64
|
-
|
85
|
+
args: [{ selector: 'ax-notification', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
86
|
+
{ provide: AXClosbaleComponent, useExisting: AXNotificationComponent },
|
87
|
+
], template: "<span [class]=\"'ax-notification-icon' + ' ' + _icon\"></span>\r\n<div class=\"ax-notification-content\">\r\n <div class=\"ax-notification-title\">{{ options.title }}</div>\r\n <ng-template *ngIf=\"_selectedPortal\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\"></ng-template>\r\n </ng-template>\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\"></ng-template>\r\n <div *ngIf=\"!_selectedPortal\">{{ options.content }}</div>\r\n <div class=\"ax-notification-buttons\" *ngIf=\"options?.buttons?.length\">\r\n <ax-button\r\n *ngFor=\"let button of options.buttons\"\r\n class=\"ax-xs\"\r\n [text]=\"button.text\"\r\n [color]=\"button.color\"\r\n [look]=\"button.look\"\r\n (onClick)=\"_handleButtonClick(button)\">\r\n {{ button.text }}\r\n </ax-button>\r\n </div>\r\n</div>\r\n<span class=\"ax-icon ax-icon-close\" (click)=\"close()\"></span>\r\n<div\r\n class=\"ax-notification-progress\"\r\n [style.animation-duration.ms]=\"options.timeOut\"\r\n *ngIf=\"options.timeOut\"></div>\r\n", styles: ["html.ax-dark ax-notification{background-color:rgb(var(--ax-color-on-surface))}ax-notification{width:max(20vw,380px);display:flex;padding:1rem;border-radius:var(--ax-rounded-border-default);font-size:.875rem;border:1px solid;background-color:rgb(var(--ax-color-surface));border-color:rgba(var(--ax-color-border-default));position:relative;overflow:hidden;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}ax-notification.ax-primary .ax-notification-icon{color:rgb(var(--ax-color-primary-500))}ax-notification.ax-primary .ax-notification-progress{background-color:rgb(var(--ax-color-primary-500))}ax-notification.ax-secondary .ax-notification-icon{color:rgb(var(--ax-color-secondary-500))}ax-notification.ax-secondary .ax-notification-progress{background-color:rgb(var(--ax-color-secondary-500))}ax-notification.ax-success .ax-notification-icon{color:rgb(var(--ax-color-success-500))}ax-notification.ax-success .ax-notification-progress{background-color:rgb(var(--ax-color-success-500))}ax-notification.ax-warning .ax-notification-icon{color:rgb(var(--ax-color-warning-500))}ax-notification.ax-warning .ax-notification-progress{background-color:rgb(var(--ax-color-warning-500))}ax-notification.ax-danger .ax-notification-icon{color:rgb(var(--ax-color-danger-500))}ax-notification.ax-danger .ax-notification-progress{background-color:rgb(var(--ax-color-danger-500))}@media (max-width: 599px){ax-notification{width:98vw}}ax-notification .ax-notification-icon,ax-notification .ax-icon-close{font-size:1.25rem}ax-notification .ax-notification-icon{padding-inline-end:.75rem}ax-notification .ax-notification-content{display:flex;flex-direction:column;flex:1;color:rgba(var(--ax-color-ghost),.64);font-weight:400}ax-notification .ax-notification-content .ax-notification-title{font-weight:500;margin-bottom:.25rem;color:rgba(var(--ax-color-ghost))}ax-notification .ax-notification-content .ax-notification-buttons{margin-top:.75rem;display:flex;gap:.75rem}ax-notification .ax-icon-close{cursor:pointer;height:-moz-fit-content;height:fit-content;color:rgba(var(--ax-color-ghost),.64)}ax-notification .ax-icon-close:hover{opacity:.6}ax-notification .ax-notification-progress{position:absolute;right:0;left:0;bottom:0;height:.25rem;width:100%;animation-duration:4s;animation-timing-function:linear;animation-name:progressBar;background-color:rgba(var(--ax-color-border-default))}@keyframes progressBar{0%{width:100%}to{width:0%}}\n"] }]
|
88
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { __hostClass: [{
|
65
89
|
type: HostBinding,
|
66
90
|
args: ['class']
|
67
91
|
}] } });
|
68
92
|
|
69
93
|
const COMPONENT = [AXNotificationComponent];
|
70
|
-
const MODULES = [CommonModule];
|
94
|
+
const MODULES = [CommonModule, PortalModule, AXButtonModule];
|
71
95
|
class AXNotificationModule {
|
72
96
|
}
|
73
|
-
AXNotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
74
|
-
AXNotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
75
|
-
AXNotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
97
|
+
AXNotificationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
98
|
+
AXNotificationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: AXNotificationModule, declarations: [AXNotificationComponent], imports: [CommonModule, PortalModule, AXButtonModule], exports: [AXNotificationComponent] });
|
99
|
+
AXNotificationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNotificationModule, imports: [MODULES] });
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNotificationModule, decorators: [{
|
77
101
|
type: NgModule,
|
78
102
|
args: [{
|
79
103
|
declarations: [...COMPONENT],
|
@@ -89,52 +113,16 @@ class AXNotificationService {
|
|
89
113
|
this.parentInjector = parentInjector;
|
90
114
|
this._defaults = {
|
91
115
|
gap: 5,
|
92
|
-
|
93
|
-
location: 'bottom-center',
|
116
|
+
location: 'top-end',
|
94
117
|
};
|
95
118
|
this._activeList = [];
|
96
119
|
}
|
97
|
-
primary(content) {
|
98
|
-
this.show({
|
99
|
-
timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,
|
100
|
-
color: 'primary',
|
101
|
-
content: content
|
102
|
-
});
|
103
|
-
}
|
104
|
-
secondary(content) {
|
105
|
-
this.show({
|
106
|
-
timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,
|
107
|
-
color: 'secondary',
|
108
|
-
content: content
|
109
|
-
});
|
110
|
-
}
|
111
|
-
success(content) {
|
112
|
-
this.show({
|
113
|
-
timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,
|
114
|
-
color: 'success',
|
115
|
-
content: content
|
116
|
-
});
|
117
|
-
}
|
118
|
-
warning(content) {
|
119
|
-
this.show({
|
120
|
-
timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,
|
121
|
-
color: 'warning',
|
122
|
-
content: content
|
123
|
-
});
|
124
|
-
}
|
125
|
-
danger(content) {
|
126
|
-
this.show({
|
127
|
-
timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,
|
128
|
-
color: 'danger',
|
129
|
-
content: content
|
130
|
-
});
|
131
|
-
}
|
132
120
|
show(options) {
|
133
121
|
const opt = Object.assign({
|
134
122
|
closeable: true,
|
135
|
-
location: AXConfig.get('
|
123
|
+
location: AXConfig.get('notification.location') || this._defaults.location,
|
136
124
|
}, options);
|
137
|
-
const gap = AXConfig.get('
|
125
|
+
const gap = AXConfig.get('notification.gap') || this._defaults.gap;
|
138
126
|
let positionStrategy = this.overlayService.position().global();
|
139
127
|
const pos = this.getPosition(opt.location) + gap + 'px';
|
140
128
|
switch (opt.location) {
|
@@ -160,17 +148,23 @@ class AXNotificationService {
|
|
160
148
|
positionStrategy = positionStrategy.centerVertically().left(gap + 'px');
|
161
149
|
break;
|
162
150
|
case 'center-end':
|
163
|
-
positionStrategy = positionStrategy
|
151
|
+
positionStrategy = positionStrategy
|
152
|
+
.centerVertically()
|
153
|
+
.right(gap + 'px');
|
164
154
|
break;
|
165
155
|
default:
|
166
156
|
break;
|
167
157
|
}
|
168
158
|
const overlayRef = this.overlayService.create({
|
169
159
|
positionStrategy,
|
170
|
-
panelClass: [
|
160
|
+
panelClass: [
|
161
|
+
'ax-animate-animated',
|
162
|
+
'ax-animate-fadeIn',
|
163
|
+
'ax-animate-faster',
|
164
|
+
],
|
171
165
|
});
|
172
|
-
const
|
173
|
-
const host = overlayRef.attach(
|
166
|
+
const notificationPortal = new ComponentPortal(AXNotificationComponent, null, this.parentInjector);
|
167
|
+
const host = overlayRef.attach(notificationPortal);
|
174
168
|
host.instance.visibleIndex = this._activeList.length;
|
175
169
|
this._activeList.push(host.instance);
|
176
170
|
if (host.instance) {
|
@@ -179,7 +173,7 @@ class AXNotificationService {
|
|
179
173
|
close: () => {
|
180
174
|
this._activeList = this._activeList.filter(c => c != host.instance);
|
181
175
|
overlayRef.dispose();
|
182
|
-
}
|
176
|
+
},
|
183
177
|
});
|
184
178
|
setTimeout(() => {
|
185
179
|
host.changeDetectorRef.detectChanges();
|
@@ -188,7 +182,7 @@ class AXNotificationService {
|
|
188
182
|
return {
|
189
183
|
close: () => {
|
190
184
|
host.instance.close();
|
191
|
-
}
|
185
|
+
},
|
192
186
|
};
|
193
187
|
}
|
194
188
|
hideAll() {
|
@@ -199,16 +193,17 @@ class AXNotificationService {
|
|
199
193
|
if (list.length == 0)
|
200
194
|
return 0;
|
201
195
|
if (location.split('-')[0] == 'bottom') {
|
202
|
-
return window.innerHeight - list[list.length - 1]._getHostElement().offsetTop;
|
196
|
+
return (window.innerHeight - list[list.length - 1]._getHostElement().offsetTop);
|
203
197
|
}
|
204
198
|
else {
|
205
|
-
return list[list.length - 1]._getHostElement().offsetTop +
|
199
|
+
return (list[list.length - 1]._getHostElement().offsetTop +
|
200
|
+
list[list.length - 1]._getHostElement().offsetHeight);
|
206
201
|
}
|
207
202
|
}
|
208
203
|
}
|
209
|
-
AXNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
210
|
-
AXNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
204
|
+
AXNotificationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNotificationService, deps: [{ token: i1$1.Overlay }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
205
|
+
AXNotificationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNotificationService, providedIn: 'root' });
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNotificationService, decorators: [{
|
212
207
|
type: Injectable,
|
213
208
|
args: [{ providedIn: 'root' }]
|
214
209
|
}], ctorParameters: function () { return [{ type: i1$1.Overlay }, { type: i0.Injector }]; } });
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-notification.mjs","sources":["../../../../projects/acorex/components/notification/src/notification.component.ts","../../../../projects/acorex/components/notification/src/notification.component.html","../../../../projects/acorex/components/notification/src/notification.module.ts","../../../../projects/acorex/components/notification/src/notification.service.ts","../../../../projects/acorex/components/notification/acorex-components-notification.ts"],"sourcesContent":["import { AXClosbaleComponent } from '@acorex/components/common';\r\nimport { AXButtonItem } from '@acorex/components/button';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n HostBinding,\r\n} from '@angular/core';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport { AXNotificationOptions } from './notification.class';\r\n\r\n/**\r\n * The Button is a component which detects user interaction and triggers a corresponding event\r\n *\r\n * @category Components\r\n */\r\n@Component({\r\n selector: 'ax-notification',\r\n templateUrl: './notification.component.html',\r\n styleUrls: ['./notification.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [{ provide: AXClosbaleComponent, useExisting: AXNotificationComponent }],\r\n})\r\nexport class AXNotificationComponent extends AXBaseComponentMixin {\r\n\r\n options: AXNotificationOptions;\r\n\r\n _notificationWidth: number = 100;\r\n\r\n _icon: string;\r\n\r\n close: () => void;\r\n /**\r\n * @ignore\r\n */\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n onInit() {\r\n if (this.options.timeOut) {\r\n setTimeout(() => {\r\n this.close();\r\n }, this.options.timeOut);\r\n }\r\n if (!this.options.icon) {\r\n switch (this.options.color) {\r\n case 'success':\r\n this._icon = 'ax-icon ax-icon-check-circle-fill';\r\n break;\r\n case 'warning':\r\n this._icon = 'ax-icon ax-icon-warning-fill';\r\n break;\r\n case 'danger':\r\n this._icon = 'ax-icon ax-icon-error-fill';\r\n break;\r\n default:\r\n this._icon = this.options.icon || 'ax-icon ax-icon-check-circle-fill';\r\n break;\r\n }\r\n } else {\r\n this._icon = this.options.icon;\r\n }\r\n }\r\n\r\n _handleButtonClick(button: AXButtonItem) {\r\n if (button.onClick) {\r\n button.onClick(this);\r\n }\r\n }\r\n\r\n @HostBinding('class')\r\n private get __hostClass(): string {\r\n return `ax-${this.options.color}`\r\n }\r\n\r\n\r\n}\r\n","<!-- <ax-alert [color]=\"options.color\" [timeOut]=\"options.timeOut\">\r\n <ax-icon *ngIf=\"_icon\" [icon]=\"_icon\"></ax-icon>\r\n <ax-title [text]=\"options.title\"></ax-title>\r\n <ax-close-button *ngIf=\"options.closeable\"></ax-close-button>\r\n <ax-content *ngIf=\"options.content\">\r\n <div [innerHTML]=\"options.content\"></div>\r\n </ax-content>\r\n <ax-footer *ngIf=\"options?.buttons?.length\">\r\n <ax-button *ngFor=\"let button of options.buttons\" [text]=\"button.text\" class=\"ax-sm\"\r\n (onClick)=\"_handleButtonClick(button)\" [color]=\"options.color\" [look]=\"'default'\"></ax-button>\r\n </ax-footer>\r\n</ax-alert> -->\r\n<span [class]=\"'ax-toast-icon '+ _icon \"></span>\r\n<div class=\"ax-toast-content\">\r\n <div class=\"ax-toast-title\">{{options.title}}</div>\r\n <div [innerHTML]=\"options.content\"></div>\r\n <div class=\"ax-toast-buttons\" *ngIf=\"options?.buttons?.length\">\r\n <button *ngFor=\"let button of options.buttons\" (click)=\"_handleButtonClick(button)\">\r\n {{button.text}}\r\n </button>\r\n </div>\r\n</div>\r\n<span class=\"ax-icon ax-icon-close\" (click)=\"close()\"></span>\r\n<div class=\"ax-toast-progress\" [style.animation-duration.ms]=\"options.timeOut\" *ngIf=\"options.timeOut\"></div>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXNotificationComponent } from './notification.component';\r\n\r\nconst COMPONENT = [AXNotificationComponent];\r\nconst MODULES = [CommonModule];\r\n\r\n@NgModule({\r\n declarations: [...COMPONENT],\r\n imports: [...MODULES],\r\n exports: [...COMPONENT],\r\n providers: [],\r\n})\r\nexport class AXNotificationModule {\r\n \r\n}\r\n","import { AXConfig } from '@acorex/core/config';\r\nimport { Overlay } from '@angular/cdk/overlay';\r\nimport { ComponentPortal } from '@angular/cdk/portal';\r\nimport { Injectable, Injector } from '@angular/core';\r\nimport { AXNotificationOptions, AXNotificationRef } from './notification.class';\r\nimport { AXNotificationComponent } from './notification.component';\r\n\r\n\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AXNotificationService {\r\n\r\n\r\n private readonly _defaults = {\r\n gap: 5,\r\n timeOut: 2500,\r\n location: 'bottom-center',\r\n }\r\n\r\n constructor(private overlayService: Overlay, private parentInjector: Injector) {\r\n\r\n }\r\n\r\n private _activeList: AXNotificationComponent[] = [];\r\n\r\n primary(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'primary',\r\n content: content\r\n });\r\n }\r\n secondary(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'secondary',\r\n content: content\r\n });\r\n }\r\n success(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'success',\r\n content: content\r\n });\r\n }\r\n\r\n warning(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'warning',\r\n content: content\r\n });\r\n }\r\n danger(content: string) {\r\n this.show({\r\n timeOut: AXConfig.get('toast.timeOut') || this._defaults.timeOut,\r\n color: 'danger',\r\n content: content\r\n });\r\n }\r\n show(options: AXNotificationOptions): AXNotificationRef {\r\n const opt = Object.assign(\r\n {\r\n closeable: true,\r\n location: AXConfig.get('toast.location') || this._defaults.location\r\n },\r\n options\r\n );\r\n const gap = AXConfig.get('toast.gap') || this._defaults.gap;\r\n\r\n let positionStrategy = this.overlayService.position().global();\r\n const pos = this.getPosition(opt.location) + gap + 'px';\r\n switch (opt.location) {\r\n case 'bottom-center':\r\n positionStrategy = positionStrategy.bottom(pos).centerHorizontally()\r\n break;\r\n case 'bottom-end':\r\n positionStrategy = positionStrategy.bottom(pos).right(gap + 'px');\r\n break;\r\n case 'bottom-start':\r\n positionStrategy = positionStrategy.bottom(pos).left(gap + 'px');\r\n break;\r\n case 'top-center':\r\n positionStrategy = positionStrategy.top(pos).centerHorizontally()\r\n break;\r\n case 'top-end':\r\n positionStrategy = positionStrategy.top(pos).right(gap + 'px');\r\n break;\r\n case 'top-start':\r\n positionStrategy = positionStrategy.top(pos).left(gap + 'px');\r\n break;\r\n case 'center-start':\r\n positionStrategy = positionStrategy.centerVertically().left(gap + 'px');\r\n break;\r\n case 'center-end':\r\n positionStrategy = positionStrategy.centerVertically().right(gap + 'px');\r\n break;\r\n default:\r\n break;\r\n }\r\n const overlayRef = this.overlayService.create(\r\n {\r\n positionStrategy,\r\n panelClass: ['ax-animate-animated', 'ax-animate-fadeIn', 'ax-animate-faster'],\r\n });\r\n const toastPortal = new ComponentPortal(AXNotificationComponent, null, this.parentInjector);\r\n\r\n const host = overlayRef.attach(toastPortal);\r\n (host.instance as any).visibleIndex = this._activeList.length;\r\n this._activeList.push(host.instance);\r\n if (host.instance) {\r\n Object.assign(host.instance, {\r\n options: opt,\r\n close: () => {\r\n this._activeList = this._activeList.filter(c => c != host.instance);\r\n overlayRef.dispose()\r\n }\r\n });\r\n setTimeout(() => {\r\n host.changeDetectorRef.detectChanges();\r\n }, 0);\r\n }\r\n\r\n return {\r\n close: () => {\r\n host.instance.close();\r\n }\r\n }\r\n }\r\n\r\n\r\n\r\n public hideAll() {\r\n this._activeList.forEach(c => c.close());\r\n }\r\n\r\n private getPosition(location: string) {\r\n const list = this._activeList.filter(c => c.options.location == location);\r\n if (list.length == 0) return 0;\r\n if (location.split('-')[0] == 'bottom') {\r\n return window.innerHeight - list[list.length - 1]._getHostElement().offsetTop;\r\n }\r\n else {\r\n return list[list.length - 1]._getHostElement().offsetTop + list[list.length - 1]._getHostElement().offsetHeight;\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAaA;;;;AAIG;AASG,MAAO,uBAAwB,SAAQ,oBAAoB,CAAA;AAS/D;;AAEG;IACH,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACxD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QATzB,IAAkB,CAAA,kBAAA,GAAW,GAAG,CAAC;KAUhC;IAED,MAAM,GAAA;AACJ,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACxB,UAAU,CAAC,MAAK;gBACd,IAAI,CAAC,KAAK,EAAE,CAAC;AACf,aAAC,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC1B,SAAA;AACD,QAAA,I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MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,cADR,MAAM,EAAA,CAAA,CAAA;2FACnB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE,CAAA;;;ACTlC;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"acorex-components-notification.mjs","sources":["../../../../projects/acorex/components/notification/src/notification.component.ts","../../../../projects/acorex/components/notification/src/notification.component.html","../../../../projects/acorex/components/notification/src/notification.module.ts","../../../../projects/acorex/components/notification/src/notification.service.ts","../../../../projects/acorex/components/notification/acorex-components-notification.ts"],"sourcesContent":["import { AXClosbaleComponent } from '@acorex/components/common';\r\nimport { AXButtonItem } from '@acorex/components/button';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n HostBinding,\r\n TemplateRef,\r\n ViewContainerRef,\r\n} from '@angular/core';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport { AXNotificationOptions } from './notification.class';\r\nimport { ComponentPortal, Portal, TemplatePortal } from '@angular/cdk/portal';\r\n\r\n/**\r\n * The Button is a component which detects user interaction and triggers a corresponding event\r\n *\r\n * @category Components\r\n */\r\n@Component({\r\n selector: 'ax-notification',\r\n templateUrl: './notification.component.html',\r\n styleUrls: ['./notification.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n providers: [\r\n { provide: AXClosbaleComponent, useExisting: AXNotificationComponent },\r\n ],\r\n})\r\nexport class AXNotificationComponent extends AXBaseComponentMixin {\r\n options: AXNotificationOptions;\r\n _selectedPortal: Portal<any>;\r\n _icon: string;\r\n\r\n close: () => void;\r\n /**\r\n * @ignore\r\n */\r\n constructor(\r\n elementRef: ElementRef,\r\n cdr: ChangeDetectorRef,\r\n private viewRef: ViewContainerRef\r\n ) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n onInit() {\r\n this._initContent();\r\n this._initIcon();\r\n this._handleTimeOut();\r\n }\r\n\r\n private _handleTimeOut() {\r\n if (this.options.timeOut) {\r\n setTimeout(() => {\r\n this.close();\r\n }, this.options.timeOut);\r\n }\r\n }\r\n private _initContent() {\r\n if (this.options.content instanceof TemplateRef<any>) {\r\n this._selectedPortal = new TemplatePortal(\r\n this.options.content as TemplateRef<any>,\r\n this.viewRef\r\n );\r\n this._cdr.markForCheck();\r\n } else if (typeof this.options.content === 'function') {\r\n this._selectedPortal = new ComponentPortal(this.options.content as any);\r\n this._cdr.markForCheck();\r\n }\r\n }\r\n\r\n private _initIcon() {\r\n if (!this.options.icon) {\r\n switch (this.options.color) {\r\n case 'success':\r\n this._icon = 'ax-icon ax-icon-check-circle-fill';\r\n break;\r\n case 'warning':\r\n this._icon = 'ax-icon ax-icon-warning-fill';\r\n break;\r\n case 'danger':\r\n this._icon = 'ax-icon ax-icon-error-fill';\r\n break;\r\n default:\r\n this._icon = this.options.icon || 'ax-icon ax-icon-check-circle-fill';\r\n break;\r\n }\r\n } else {\r\n this._icon = this.options.icon;\r\n }\r\n }\r\n\r\n _handleButtonClick(button: AXButtonItem) {\r\n if (button.onClick) {\r\n button.onClick(this);\r\n }\r\n }\r\n\r\n @HostBinding('class')\r\n private get __hostClass(): string {\r\n return `ax-${this.options.color}`;\r\n }\r\n}\r\n","<span [class]=\"'ax-notification-icon' + ' ' + _icon\"></span>\r\n<div class=\"ax-notification-content\">\r\n <div class=\"ax-notification-title\">{{ options.title }}</div>\r\n <ng-template *ngIf=\"_selectedPortal\">\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\"></ng-template>\r\n </ng-template>\r\n <ng-template [cdkPortalOutlet]=\"_selectedPortal\"></ng-template>\r\n <div *ngIf=\"!_selectedPortal\">{{ options.content }}</div>\r\n <div class=\"ax-notification-buttons\" *ngIf=\"options?.buttons?.length\">\r\n <ax-button\r\n *ngFor=\"let button of options.buttons\"\r\n class=\"ax-xs\"\r\n [text]=\"button.text\"\r\n [color]=\"button.color\"\r\n [look]=\"button.look\"\r\n (onClick)=\"_handleButtonClick(button)\">\r\n {{ button.text }}\r\n </ax-button>\r\n </div>\r\n</div>\r\n<span class=\"ax-icon ax-icon-close\" (click)=\"close()\"></span>\r\n<div\r\n class=\"ax-notification-progress\"\r\n [style.animation-duration.ms]=\"options.timeOut\"\r\n *ngIf=\"options.timeOut\"></div>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXNotificationComponent } from './notification.component';\r\nimport { PortalModule } from '@angular/cdk/portal';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\n\r\nconst COMPONENT = [AXNotificationComponent];\r\nconst MODULES = [CommonModule, PortalModule, AXButtonModule];\r\n\r\n@NgModule({\r\n declarations: [...COMPONENT],\r\n imports: [...MODULES],\r\n exports: [...COMPONENT],\r\n providers: [],\r\n})\r\nexport class AXNotificationModule {}\r\n","import { AXConfig } from '@acorex/core/config';\r\nimport { Overlay } from '@angular/cdk/overlay';\r\nimport { ComponentPortal } from '@angular/cdk/portal';\r\nimport { Injectable, Injector, TemplateRef } from '@angular/core';\r\nimport { AXNotificationOptions, AXNotificationRef } from './notification.class';\r\nimport { AXNotificationComponent } from './notification.component';\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class AXNotificationService {\r\n private readonly _defaults = {\r\n gap: 5,\r\n location: 'top-end',\r\n };\r\n\r\n constructor(\r\n private overlayService: Overlay,\r\n private parentInjector: Injector\r\n ) {}\r\n\r\n private _activeList: AXNotificationComponent[] = [];\r\n\r\n show(options: AXNotificationOptions): AXNotificationRef {\r\n const opt = Object.assign(\r\n {\r\n closeable: true,\r\n location:\r\n AXConfig.get('notification.location') || this._defaults.location,\r\n },\r\n options\r\n );\r\n const gap = AXConfig.get('notification.gap') || this._defaults.gap;\r\n\r\n let positionStrategy = this.overlayService.position().global();\r\n const pos = this.getPosition(opt.location) + gap + 'px';\r\n switch (opt.location) {\r\n case 'bottom-center':\r\n positionStrategy = positionStrategy.bottom(pos).centerHorizontally();\r\n break;\r\n case 'bottom-end':\r\n positionStrategy = positionStrategy.bottom(pos).right(gap + 'px');\r\n break;\r\n case 'bottom-start':\r\n positionStrategy = positionStrategy.bottom(pos).left(gap + 'px');\r\n break;\r\n case 'top-center':\r\n positionStrategy = positionStrategy.top(pos).centerHorizontally();\r\n break;\r\n case 'top-end':\r\n positionStrategy = positionStrategy.top(pos).right(gap + 'px');\r\n break;\r\n case 'top-start':\r\n positionStrategy = positionStrategy.top(pos).left(gap + 'px');\r\n break;\r\n case 'center-start':\r\n positionStrategy = positionStrategy.centerVertically().left(gap + 'px');\r\n break;\r\n case 'center-end':\r\n positionStrategy = positionStrategy\r\n .centerVertically()\r\n .right(gap + 'px');\r\n break;\r\n default:\r\n break;\r\n }\r\n const overlayRef = this.overlayService.create({\r\n positionStrategy,\r\n panelClass: [\r\n 'ax-animate-animated',\r\n 'ax-animate-fadeIn',\r\n 'ax-animate-faster',\r\n ],\r\n });\r\n const notificationPortal = new ComponentPortal(\r\n AXNotificationComponent,\r\n null,\r\n this.parentInjector\r\n );\r\n\r\n const host = overlayRef.attach(notificationPortal);\r\n (host.instance as any).visibleIndex = this._activeList.length;\r\n this._activeList.push(host.instance);\r\n if (host.instance) {\r\n Object.assign(host.instance, {\r\n options: opt,\r\n close: () => {\r\n this._activeList = this._activeList.filter(c => c != host.instance);\r\n overlayRef.dispose();\r\n },\r\n });\r\n setTimeout(() => {\r\n host.changeDetectorRef.detectChanges();\r\n }, 0);\r\n }\r\n\r\n return {\r\n close: () => {\r\n host.instance.close();\r\n },\r\n };\r\n }\r\n\r\n public hideAll() {\r\n this._activeList.forEach(c => c.close());\r\n }\r\n\r\n private getPosition(location: string) {\r\n const list = this._activeList.filter(c => c.options.location == location);\r\n if (list.length == 0) return 0;\r\n if (location.split('-')[0] == 'bottom') {\r\n return (\r\n window.innerHeight - list[list.length - 1]._getHostElement().offsetTop\r\n );\r\n } else {\r\n return (\r\n list[list.length - 1]._getHostElement().offsetTop +\r\n list[list.length - 1]._getHostElement().offsetHeight\r\n );\r\n }\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;AAgBA;;;;AAIG;AAWG,MAAO,uBAAwB,SAAQ,oBAAoB,CAAA;AAM/D;;AAEG;AACH,IAAA,WAAA,CACE,UAAsB,EACtB,GAAsB,EACd,OAAyB,EAAA;AAEjC,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;QAFf,IAAO,CAAA,OAAA,GAAP,OAAO,CAAkB;KAGlC;IAED,MAAM,GAAA;QACJ,IAAI,CAAC,YAAY,EAAE,CAAC;QACpB,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,cAAc,EAAE,CAAC;KACvB;IAEO,cAAc,GAAA;AACpB,QAAA,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACxB,UAAU,CAAC,MAAK;gBACd,IAAI,CAAC,KAAK,EAAE,CAAC;AACf,aAAC,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAC1B,SAAA;KACF;IACO,YAAY,GAAA;QAClB,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,aAAY,WAAgB,CAAA,EAAE;AACpD,YAAA,IAAI,CAAC,eAAe,GAAG,IAAI,cAAc,CACvC,IAAI,CAAC,OAAO,CAAC,OAA2B,EACxC,IAAI,CAAC,OAAO,CACb,CAAC;AACF,YAAA,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC;AAC1B,SAAA;aAAM,IAAI,OAAO,IAAI,CAAC,OAAO,CA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}
|
213
213
|
}
|
214
|
-
AXNumberBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
215
|
-
AXNumberBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
214
|
+
AXNumberBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNumberBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
215
|
+
AXNumberBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: AXNumberBoxComponent, selector: "ax-number-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", 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: "input", first: true, predicate: ["input"], descendants: true }, { 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 #input class=\"ax-input\" type=\"text\" [attr.placeholder]=\"placeholder\" [attr.autocomplete]=\"autoComplete\"\r\n [imask]=\"_maskObj\" [unmask]=\"'typed'\" [attr.min]=\"minValue\" [attr.max]=\"maxValue\"\r\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\r\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [(ngModel)]=\"value\" (keydown)=\"_handleOnKeydownEvent($event)\"\r\n (keyup)=\"_emitOnKeyupEvent($event)\" (keypress)=\"_emitOnKeypressEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\"\r\n (blur)=\"_emitOnBlurEvent($event)\">\r\n\r\n<div class=\"ax-number-box-control\" *ngIf=\"showSpinButtons\">\r\n <button class=\"ax-general-button ax-button-icon\" (click)=\"_handleUpDownClick(1)\">\r\n <span class=\"ax-icon ax-icon-arrow-up\"></span>\r\n </button>\r\n <button class=\"ax-general-button ax-button-icon\" (click)=\"_handleUpDownClick(-1)\">\r\n <span class=\"ax-icon ax-icon-arrow-down\"></span>\r\n </button>\r\n</div>\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)\" [tabIndex]=\"-1\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-icon-arrow-fill ax-rotation-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)\" [tabIndex]=\"-1\">\r\n <ax-prefix>\r\n <ax-icon class=\"ax-icon-arrow-fill -ax-rotation-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>", styles: [".ax-number-box-control{display:flex;height:100%;align-items:center;justify-content:center;margin-inline-end:.25rem;flex-direction:column}.ax-number-box-control .ax-general-button{display:flex;width:1.25rem;height:1rem;border-radius:.2rem}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.IMaskDirective, selector: "[imask]", inputs: ["imask", "unmask", "imaskElement"], outputs: ["accept", "complete"], exportAs: ["imask"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNumberBoxComponent, decorators: [{
|
217
217
|
type: Component,
|
218
218
|
args: [{ selector: 'ax-number-box', inputs: [
|
219
219
|
'disabled',
|
@@ -271,14 +271,14 @@ const MODULES = [
|
|
271
271
|
];
|
272
272
|
class AXNumberBoxModule {
|
273
273
|
}
|
274
|
-
AXNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
275
|
-
AXNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
274
|
+
AXNumberBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNumberBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
275
|
+
AXNumberBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: AXNumberBoxModule, declarations: [AXNumberBoxComponent], imports: [CommonModule,
|
276
276
|
FormsModule,
|
277
277
|
AXButtonModule,
|
278
278
|
AXDecoratorModule,
|
279
279
|
IMaskModule], exports: [AXNumberBoxComponent] });
|
280
|
-
AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
280
|
+
AXNumberBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNumberBoxModule, imports: [MODULES] });
|
281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXNumberBoxModule, decorators: [{
|
282
282
|
type: NgModule,
|
283
283
|
args: [{
|
284
284
|
declarations: [...COMPONENT],
|
@@ -294,4 +294,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
294
294
|
|
295
295
|
export { AXNumberBoxComponent, AXNumberBoxModule };
|
296
296
|
//# sourceMappingURL=acorex-components-number-box.mjs.map
|
297
|
-
//# sourceMappingURL=acorex-components-number-box.mjs.map
|
@@ -31,9 +31,9 @@ class AXPageComponent extends AXBaseComponentMixin {
|
|
31
31
|
});
|
32
32
|
}
|
33
33
|
}
|
34
|
-
AXPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
35
|
-
AXPageComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
34
|
+
AXPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPageComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXLoadingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
35
|
+
AXPageComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPageComponent });
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPageComponent, decorators: [{
|
37
37
|
type: Injectable
|
38
38
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
39
39
|
type: Inject,
|
@@ -84,9 +84,9 @@ class AXBasePageComponent extends AXBaseComponentMixin {
|
|
84
84
|
this.onClosed.unsubscribe();
|
85
85
|
}
|
86
86
|
}
|
87
|
-
AXBasePageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
88
|
-
AXBasePageComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
87
|
+
AXBasePageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXBasePageComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
88
|
+
AXBasePageComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXBasePageComponent });
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXBasePageComponent, decorators: [{
|
90
90
|
type: Injectable
|
91
91
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { pageContainer: [{
|
92
92
|
type: ViewChild,
|
@@ -103,10 +103,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
103
103
|
// TODO: Module is empty!?
|
104
104
|
class AXPageModule {
|
105
105
|
}
|
106
|
-
AXPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
107
|
-
AXPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
108
|
-
AXPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
106
|
+
AXPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
107
|
+
AXPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: AXPageModule });
|
108
|
+
AXPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPageModule });
|
109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPageModule, decorators: [{
|
110
110
|
type: NgModule,
|
111
111
|
args: [{
|
112
112
|
imports: [],
|
@@ -122,4 +122,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
122
122
|
|
123
123
|
export { AXBasePageComponent, AXPageComponent, AXPageModule };
|
124
124
|
//# sourceMappingURL=acorex-components-page.mjs.map
|
125
|
-
//# sourceMappingURL=acorex-components-page.mjs.map
|
@@ -40,9 +40,9 @@ class AXPasswordBoxComponent extends AXBaseTextBoxMixin {
|
|
40
40
|
}
|
41
41
|
}
|
42
42
|
}
|
43
|
-
AXPasswordBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
44
|
-
AXPasswordBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
43
|
+
AXPasswordBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPasswordBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
44
|
+
AXPasswordBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: AXPasswordBoxComponent, selector: "ax-password-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", cssClass: "cssClass", size: "size", placeholder: "placeholder", maxLength: "maxLength", allowNull: "allowNull", 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" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\r\n</ng-content>\r\n<input #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<button class=\"ax-general-button ax-button-icon\" (click)=\"toggleType()\" [tabIndex]=\"-1\" *ngIf=\"showToggleButton\">\r\n <span class=\"ax-icon {{_icon}}\"></span>\r\n</button>", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPasswordBoxComponent, decorators: [{
|
46
46
|
type: Component,
|
47
47
|
args: [{ selector: 'ax-password-box', inputs: [
|
48
48
|
'disabled',
|
@@ -74,13 +74,13 @@ const MODULES = [
|
|
74
74
|
];
|
75
75
|
class AXPasswordBoxModule {
|
76
76
|
}
|
77
|
-
AXPasswordBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.
|
78
|
-
AXPasswordBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
77
|
+
AXPasswordBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPasswordBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
78
|
+
AXPasswordBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: AXPasswordBoxModule, declarations: [AXPasswordBoxComponent], imports: [CommonModule,
|
79
79
|
FormsModule,
|
80
80
|
AXButtonModule,
|
81
81
|
AXDecoratorModule], exports: [AXPasswordBoxComponent] });
|
82
|
-
AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.
|
82
|
+
AXPasswordBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPasswordBoxModule, imports: [MODULES] });
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPasswordBoxModule, decorators: [{
|
84
84
|
type: NgModule,
|
85
85
|
args: [{
|
86
86
|
declarations: [...COMPONENT],
|
@@ -96,4 +96,3 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImpor
|
|
96
96
|
|
97
97
|
export { AXPasswordBoxComponent, AXPasswordBoxModule };
|
98
98
|
//# sourceMappingURL=acorex-components-password-box.mjs.map
|
99
|
-
//# sourceMappingURL=acorex-components-password-box.mjs.map
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import * as i0 from '@angular/core';
|
2
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, NgModule } from '@angular/core';
|
3
|
+
import { CommonModule } from '@angular/common';
|
4
|
+
import { AXLoadingModule } from '@acorex/components/loading';
|
5
|
+
import { AXTranslationModule } from '@acorex/core/translation';
|
6
|
+
import { AXDecoratorModule } from '@acorex/components/decorators';
|
7
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
8
|
+
import { AXPopoverModule } from '@acorex/components/popover';
|
9
|
+
|
10
|
+
/**
|
11
|
+
* The Button is a component which detects user interaction and triggers a corresponding event
|
12
|
+
*
|
13
|
+
* @category Components
|
14
|
+
*/
|
15
|
+
class AXPickerComponent {
|
16
|
+
ngOnInit() {
|
17
|
+
throw new Error('Method not implemented.');
|
18
|
+
}
|
19
|
+
}
|
20
|
+
AXPickerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
21
|
+
AXPickerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: AXPickerComponent, selector: "ax-picker", inputs: { disabled: "disabled", tabIndex: "tabIndex", textField: "textField", valueField: "valueField", items: "items", parentId: "parentId", iconField: "iconField", tooltip: "tooltip", isOpen: "isOpen", isActive: "isActive", visibleField: "visibleField", disableField: "disableField", hasChildField: "hasChildField", dividerField: "dividerField", openMode: "openMode", displayMode: "displayMode", showModal: "showModal" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", onMenuItemClick: "onMenuItemClick" }, ngImport: i0, template: "", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPickerComponent, decorators: [{
|
23
|
+
type: Component,
|
24
|
+
args: [{ selector: 'ax-picker', inputs: [
|
25
|
+
'disabled',
|
26
|
+
'tabIndex',
|
27
|
+
'textField',
|
28
|
+
'valueField',
|
29
|
+
'items',
|
30
|
+
'parentId',
|
31
|
+
'iconField',
|
32
|
+
'tooltip',
|
33
|
+
'isOpen',
|
34
|
+
'isActive',
|
35
|
+
'visibleField',
|
36
|
+
'disableField',
|
37
|
+
'hasChildField',
|
38
|
+
'dividerField',
|
39
|
+
'openMode',
|
40
|
+
'displayMode',
|
41
|
+
'showModal',
|
42
|
+
], outputs: ['onBlur', 'onFocus', 'onMenuItemClick'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "" }]
|
43
|
+
}] });
|
44
|
+
|
45
|
+
const COMPONENT = [AXPickerComponent];
|
46
|
+
const MODULES = [
|
47
|
+
AXDecoratorModule,
|
48
|
+
AXLoadingModule,
|
49
|
+
AXTranslationModule,
|
50
|
+
OverlayModule,
|
51
|
+
AXPopoverModule
|
52
|
+
];
|
53
|
+
class AXPickerModule {
|
54
|
+
}
|
55
|
+
AXPickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
56
|
+
AXPickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: AXPickerModule, declarations: [AXPickerComponent], imports: [CommonModule, AXDecoratorModule,
|
57
|
+
AXLoadingModule,
|
58
|
+
AXTranslationModule,
|
59
|
+
OverlayModule,
|
60
|
+
AXPopoverModule], exports: [AXPickerComponent] });
|
61
|
+
AXPickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPickerModule, imports: [CommonModule, MODULES] });
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXPickerModule, decorators: [{
|
63
|
+
type: NgModule,
|
64
|
+
args: [{
|
65
|
+
declarations: [...COMPONENT],
|
66
|
+
imports: [CommonModule, ...MODULES],
|
67
|
+
exports: [...COMPONENT],
|
68
|
+
providers: [],
|
69
|
+
}]
|
70
|
+
}] });
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Generated bundle index. Do not edit.
|
74
|
+
*/
|
75
|
+
|
76
|
+
export { AXPickerComponent, AXPickerModule };
|
77
|
+
//# sourceMappingURL=acorex-components-picker.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"acorex-components-picker.mjs","sources":["../../../../projects/acorex/components/picker/src/picker.component.ts","../../../../projects/acorex/components/picker/src/picker.component.html","../../../../projects/acorex/components/picker/src/picker.module.ts","../../../../projects/acorex/components/picker/acorex-components-picker.ts"],"sourcesContent":["\r\nimport {\r\n Component,\r\n ChangeDetectionStrategy,\r\n ViewEncapsulation,\r\n OnInit,\r\n} from '@angular/core';\r\n\r\n/**\r\n * The Button is a component which detects user interaction and triggers a corresponding event\r\n *\r\n * @category Components\r\n */\r\n@Component({\r\n selector: 'ax-picker',\r\n templateUrl: './picker.component.html',\r\n styleUrls: ['./picker.component.scss'],\r\n inputs: [\r\n 'disabled',\r\n 'tabIndex',\r\n 'textField',\r\n 'valueField',\r\n 'items',\r\n 'parentId',\r\n 'iconField',\r\n 'tooltip',\r\n 'isOpen',\r\n 'isActive',\r\n 'visibleField',\r\n 'disableField',\r\n 'hasChildField',\r\n 'dividerField',\r\n 'openMode',\r\n 'displayMode',\r\n 'showModal',\r\n ],\r\n outputs: ['onBlur', 'onFocus', 'onMenuItemClick'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXPickerComponent implements OnInit {\r\n ngOnInit(): void {\r\n throw new Error('Method not implemented.');\r\n }\r\n\r\n}\r\n","","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXLoadingModule } from '@acorex/components/loading';\r\nimport { AXTranslationModule } from '@acorex/core/translation';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { OverlayModule } from '@angular/cdk/overlay';\r\nimport { AXPickerComponent } from './picker.component';\r\nimport { AXPopoverModule } from '@acorex/components/popover';\r\n\r\nconst COMPONENT = [AXPickerComponent];\r\nconst MODULES = [\r\n AXDecoratorModule,\r\n AXLoadingModule,\r\n AXTranslationModule,\r\n OverlayModule,\r\n AXPopoverModule\r\n];\r\n\r\n@NgModule({\r\n declarations: [...COMPONENT],\r\n imports: [CommonModule, ...MODULES],\r\n exports: [...COMPONENT],\r\n providers: [],\r\n})\r\nexport class AXPickerModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;AAQA;;;;AAIG;MA4BU,iBAAiB,CAAA;IAC5B,QAAQ,GAAA;AACN,QAAA,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC5C;;8GAHU,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,U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