@acorex/components 7.3.1 → 7.4.1
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/button/lib/button-group.component.d.ts +10 -73
- package/button/lib/button-item.class.d.ts +1 -3
- package/button/lib/button-item.component.d.ts +12 -75
- package/button/lib/button.component.d.ts +1 -1
- package/button-group/README.md +3 -0
- package/button-group/index.d.ts +2 -0
- package/button-group/lib/button-group.component.d.ts +21 -0
- package/button-group/lib/button-group.module.d.ts +8 -0
- package/calendar/lib/calendar-range.component.d.ts +2 -1
- package/calendar/lib/calendar.class.d.ts +9 -8
- package/calendar/lib/calendar.component.d.ts +2 -1
- package/check-box/lib/check-box.component.d.ts +3 -2
- package/color-box/README.md +3 -0
- package/color-box/index.d.ts +2 -0
- package/color-box/lib/color-box.component.d.ts +27 -0
- package/color-box/lib/color-box.module.d.ts +11 -0
- package/common/index.d.ts +6 -5
- package/common/lib/classes/styles.class.d.ts +0 -9
- package/common/lib/components/button-base-component.class.d.ts +0 -2
- package/common/lib/components/interactive-component.class.d.ts +7 -1
- package/common/lib/types/direction.d.ts +4 -0
- package/common/lib/types/orientation.d.ts +4 -0
- package/common/lib/types/placement.d.ts +30 -0
- package/common/lib/types/selection-mode.d.ts +4 -0
- package/data-pager/lib/data-pager.module.d.ts +5 -4
- package/data-table/lib/data-column.directive.d.ts +2 -2
- package/datetime-box/README.md +3 -0
- package/datetime-box/index.d.ts +2 -0
- package/datetime-box/lib/datetime-box.component.d.ts +34 -0
- package/datetime-box/lib/datetime-box.module.d.ts +13 -0
- package/datetime-input/README.md +3 -0
- package/datetime-input/index.d.ts +2 -0
- package/datetime-input/lib/datetime-input.component.d.ts +44 -0
- package/datetime-input/lib/datetime-input.module.d.ts +10 -0
- package/datetime-picker/README.md +3 -0
- package/datetime-picker/index.d.ts +2 -0
- package/datetime-picker/lib/datetime-picker.component.d.ts +42 -0
- package/datetime-picker/lib/datetime-picker.module.d.ts +14 -0
- package/decorators/index.d.ts +4 -4
- package/decorators/lib/decorators.module.d.ts +4 -4
- package/dropdown/index.d.ts +2 -0
- package/dropdown/lib/dropdown-box.class.d.ts +15 -0
- package/dropdown/lib/dropdown-box.component.d.ts +25 -0
- package/dropdown/lib/dropdown-panel.component.d.ts +31 -20
- package/dropdown/lib/dropdown.module.d.ts +9 -8
- package/esm2022/action-sheet/lib/action-sheet.class.mjs +1 -1
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +3 -3
- package/esm2022/action-sheet/lib/action-sheet.module.mjs +4 -4
- package/esm2022/action-sheet/lib/action-sheet.service.mjs +3 -3
- package/esm2022/alert/lib/alert.component.mjs +3 -3
- package/esm2022/alert/lib/alert.module.mjs +4 -4
- package/esm2022/avatar/lib/avatar-group.component.mjs +3 -3
- package/esm2022/avatar/lib/avatar.component.mjs +3 -3
- package/esm2022/avatar/lib/avatar.module.mjs +4 -4
- package/esm2022/badge/lib/badge.component.mjs +3 -3
- package/esm2022/badge/lib/badge.module.mjs +4 -4
- package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +3 -3
- package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +3 -3
- package/esm2022/breadcrumbs/lib/breadcrumbs.module.mjs +4 -4
- package/esm2022/button/lib/button-group.component.mjs +36 -29
- package/esm2022/button/lib/button-item.class.mjs +1 -1
- package/esm2022/button/lib/button-item.component.mjs +46 -32
- package/esm2022/button/lib/button.component.mjs +14 -10
- package/esm2022/button/lib/button.module.mjs +4 -4
- package/esm2022/{color-picker/acorex-components-color-picker.mjs → button-group/acorex-components-button-group.mjs} +1 -1
- package/esm2022/button-group/index.mjs +3 -0
- package/esm2022/button-group/lib/button-group.component.mjs +97 -0
- package/esm2022/button-group/lib/button-group.module.mjs +21 -0
- package/esm2022/calendar/lib/calendar-range.component.mjs +14 -13
- package/esm2022/calendar/lib/calendar.class.mjs +19 -18
- package/esm2022/calendar/lib/calendar.component.mjs +80 -40
- package/esm2022/calendar/lib/calendar.module.mjs +4 -4
- package/esm2022/check-box/lib/check-box.component.mjs +9 -5
- package/esm2022/check-box/lib/check-box.module.mjs +4 -4
- package/esm2022/chips/lib/chips.component.mjs +3 -3
- package/esm2022/chips/lib/chips.module.mjs +4 -4
- package/esm2022/collapse/lib/collapse-group.component.mjs +3 -3
- package/esm2022/collapse/lib/collapse.component.mjs +3 -3
- package/esm2022/collapse/lib/collapse.module.mjs +4 -4
- package/esm2022/color-box/acorex-components-color-box.mjs +5 -0
- package/esm2022/color-box/index.mjs +3 -0
- package/esm2022/color-box/lib/color-box.component.mjs +91 -0
- package/esm2022/color-box/lib/color-box.module.mjs +24 -0
- package/esm2022/color-palette/lib/color-palette-input.component.mjs +3 -3
- package/esm2022/color-palette/lib/color-palette-picker.component.mjs +13 -13
- package/esm2022/color-palette/lib/color-palette-preview.component.mjs +3 -3
- package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +3 -3
- package/esm2022/color-palette/lib/color-palette.class.mjs +6 -6
- package/esm2022/color-palette/lib/color-palette.component.mjs +5 -5
- package/esm2022/color-palette/lib/color-palette.module.mjs +4 -4
- package/esm2022/common/index.mjs +7 -6
- package/esm2022/common/lib/classes/components.class.mjs +22 -22
- package/esm2022/common/lib/classes/styles.class.mjs +1 -2
- package/esm2022/common/lib/common.module.mjs +4 -4
- package/esm2022/common/lib/components/base-component.class.mjs +3 -3
- package/esm2022/common/lib/components/button-base-component.class.mjs +4 -18
- package/esm2022/common/lib/components/input-base-value-component.class.mjs +3 -3
- package/esm2022/common/lib/components/interactive-component.class.mjs +14 -1
- package/esm2022/common/lib/components/value-component.class.mjs +6 -6
- package/esm2022/common/lib/directives/auto-focus.directive.mjs +3 -3
- package/esm2022/common/lib/directives/delayed-value-changed.directive.mjs +3 -3
- package/esm2022/common/lib/directives/hotkey.directive.mjs +3 -3
- package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +3 -3
- package/esm2022/common/lib/directives/responsive.directive.mjs +3 -3
- package/esm2022/common/lib/services/dom.service.mjs +3 -3
- package/esm2022/common/lib/services/hotkey.service.mjs +3 -3
- package/esm2022/common/lib/types/direction.mjs +2 -0
- package/esm2022/common/lib/types/orientation.mjs +2 -0
- package/esm2022/common/lib/types/placement.mjs +160 -0
- package/esm2022/common/lib/types/range.mjs +2 -0
- package/esm2022/common/lib/types/selection-mode.mjs +5 -0
- package/esm2022/context-menu/lib/context-menu.component.mjs +3 -3
- package/esm2022/context-menu/lib/context-menu.module.mjs +4 -4
- package/esm2022/data-pager/lib/data-pager-base.component.mjs +6 -6
- package/esm2022/data-pager/lib/data-pager-info.component.mjs +3 -3
- package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +3 -3
- package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +4 -4
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +15 -18
- package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +7 -7
- package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +4 -4
- package/esm2022/data-pager/lib/data-pager.component.mjs +5 -5
- package/esm2022/data-pager/lib/data-pager.module.mjs +8 -7
- package/esm2022/data-table/lib/data-column.directive.mjs +6 -8
- package/esm2022/data-table/lib/data-table.component.mjs +3 -3
- package/esm2022/data-table/lib/data-table.module.mjs +4 -4
- package/esm2022/datetime-box/acorex-components-datetime-box.mjs +5 -0
- package/esm2022/datetime-box/index.mjs +3 -0
- package/esm2022/datetime-box/lib/datetime-box.component.mjs +109 -0
- package/esm2022/datetime-box/lib/datetime-box.module.mjs +38 -0
- package/esm2022/datetime-input/acorex-components-datetime-input.mjs +5 -0
- package/esm2022/datetime-input/index.mjs +3 -0
- package/esm2022/datetime-input/lib/datetime-input.component.mjs +522 -0
- package/esm2022/datetime-input/lib/datetime-input.module.mjs +23 -0
- package/esm2022/datetime-picker/acorex-components-datetime-picker.mjs +5 -0
- package/esm2022/datetime-picker/index.mjs +3 -0
- package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +232 -0
- package/esm2022/datetime-picker/lib/datetime-picker.module.mjs +41 -0
- package/esm2022/decorators/index.mjs +5 -5
- package/esm2022/decorators/lib/components/clear-button.component.mjs +58 -0
- package/esm2022/decorators/lib/components/close-button.component.mjs +43 -0
- package/esm2022/decorators/lib/components/generic-content.component.mjs +17 -0
- package/esm2022/decorators/lib/components/icon.component.mjs +26 -0
- package/esm2022/decorators/lib/decorators.module.mjs +10 -10
- package/esm2022/dialog/lib/dialog.component.mjs +4 -4
- package/esm2022/dialog/lib/dialog.module.mjs +4 -4
- package/esm2022/dialog/lib/dialog.service.mjs +3 -3
- package/esm2022/drawer/lib/drawer-container.component.mjs +3 -3
- package/esm2022/drawer/lib/drawer.component.mjs +3 -3
- package/esm2022/drawer/lib/drawer.module.mjs +4 -4
- package/esm2022/dropdown/index.mjs +3 -1
- package/esm2022/dropdown/lib/dropdown-box.class.mjs +38 -0
- package/esm2022/dropdown/lib/dropdown-box.component.mjs +94 -0
- package/esm2022/dropdown/lib/dropdown-panel.component.mjs +88 -37
- package/esm2022/dropdown/lib/dropdown.module.mjs +8 -7
- package/esm2022/form/index.mjs +2 -1
- package/esm2022/form/lib/form-field.component.mjs +3 -3
- package/esm2022/form/lib/form.component.mjs +3 -3
- package/esm2022/form/lib/form.config.mjs +36 -0
- package/esm2022/form/lib/form.module.mjs +6 -28
- package/esm2022/form/lib/validation-rule.widget.mjs +8 -7
- package/esm2022/form/lib/validation-summary.component.mjs +4 -4
- package/esm2022/image/lib/image.component.mjs +3 -3
- package/esm2022/image/lib/image.module.mjs +4 -4
- package/esm2022/label/lib/label.component.mjs +3 -3
- package/esm2022/label/lib/label.module.mjs +4 -4
- package/esm2022/loading/lib/loading-spinner.component.mjs +3 -3
- package/esm2022/loading/lib/loading.component.mjs +6 -6
- package/esm2022/loading/lib/loading.directive.mjs +20 -51
- package/esm2022/loading/lib/loading.module.mjs +6 -6
- package/esm2022/loading/lib/loading.service.mjs +36 -28
- package/esm2022/menu/lib/menu.component.mjs +3 -3
- package/esm2022/menu/lib/menu.module.mjs +4 -4
- package/esm2022/mixin/index.mjs +1 -2
- package/esm2022/mixin/lib/base-components.class.mjs +3 -3
- package/esm2022/mixin/lib/selection-component.class.mjs +3 -3
- package/esm2022/mixin/lib/value-mixin.class.mjs +3 -3
- package/esm2022/notification/lib/notification.component.mjs +3 -3
- package/esm2022/notification/lib/notification.module.mjs +4 -4
- package/esm2022/notification/lib/notification.service.mjs +3 -3
- package/esm2022/number-box/lib/number-box.component.mjs +3 -3
- package/esm2022/number-box/lib/number-box.module.mjs +4 -4
- package/esm2022/otp/lib/otp.component.mjs +23 -11
- package/esm2022/otp/lib/otp.module.mjs +4 -4
- package/esm2022/page/lib/base-page.class.mjs +20 -21
- package/esm2022/page/lib/page.component.mjs +13 -13
- package/esm2022/page/lib/page.module.mjs +4 -4
- package/esm2022/password-box/lib/password-box.component.mjs +3 -3
- package/esm2022/password-box/lib/password-box.module.mjs +4 -4
- package/esm2022/picker/acorex-components-picker.mjs +5 -0
- package/esm2022/picker/index.mjs +4 -0
- package/esm2022/picker/lib/picker-column.directive.mjs +73 -0
- package/esm2022/picker/lib/picker.component.mjs +148 -0
- package/esm2022/picker/lib/picker.module.mjs +22 -0
- package/esm2022/popover/index.mjs +1 -2
- package/esm2022/popover/lib/popover.component.mjs +270 -166
- package/esm2022/popover/lib/popover.module.mjs +4 -4
- package/esm2022/popup/lib/popup.component.mjs +40 -15
- package/esm2022/popup/lib/popup.module.mjs +6 -6
- package/esm2022/popup/lib/popup.service.mjs +9 -6
- package/esm2022/progress-bar/lib/progress-bar.component.mjs +9 -13
- package/esm2022/progress-bar/lib/progress-bar.module.mjs +4 -4
- package/esm2022/radio/lib/radio.component.mjs +36 -21
- package/esm2022/radio/lib/radio.module.mjs +4 -4
- package/esm2022/range-slider/lib/range-slider.component.mjs +21 -34
- package/esm2022/range-slider/lib/range-slider.module.mjs +4 -4
- package/esm2022/result/lib/result.component.mjs +6 -6
- package/esm2022/result/lib/result.module.mjs +4 -4
- package/esm2022/scheduler/index.mjs +2 -1
- package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +16 -9
- package/esm2022/scheduler/lib/scheduler-week-view.component.mjs +12 -0
- package/esm2022/scheduler/lib/scheduler.component.mjs +27 -14
- package/esm2022/scheduler/lib/scheduler.module.mjs +10 -9
- package/esm2022/search-box/lib/search-box.component.mjs +3 -3
- package/esm2022/search-box/lib/search-box.module.mjs +4 -4
- package/esm2022/select-box/lib/select-box.component.mjs +7 -7
- package/esm2022/select-box/lib/select-box.module.mjs +4 -4
- package/esm2022/selection-list/lib/selection-list.component.mjs +3 -3
- package/esm2022/selection-list/lib/selection-list.module.mjs +4 -4
- package/esm2022/switch/lib/switch-content.component.mjs +3 -3
- package/esm2022/switch/lib/switch.component.mjs +3 -3
- package/esm2022/switch/lib/switch.module.mjs +4 -4
- package/esm2022/tabs/lib/tab-content.directive.mjs +3 -3
- package/esm2022/tabs/lib/tab-item.component.mjs +23 -53
- package/esm2022/tabs/lib/tabs.class.mjs +1 -1
- package/esm2022/tabs/lib/tabs.component.mjs +19 -28
- package/esm2022/tabs/lib/tabs.module.mjs +4 -4
- package/esm2022/tag/lib/tag.component.mjs +8 -10
- package/esm2022/tag/lib/tag.module.mjs +4 -4
- package/esm2022/text-area/lib/text-area.component.mjs +3 -3
- package/esm2022/text-area/lib/text-area.module.mjs +4 -4
- package/esm2022/text-box/lib/mask-options.directive.mjs +3 -3
- package/esm2022/text-box/lib/text-box.component.mjs +3 -3
- package/esm2022/text-box/lib/text-box.module.mjs +4 -4
- package/esm2022/toast/lib/toast.component.mjs +3 -3
- package/esm2022/toast/lib/toast.config.mjs +9 -3
- package/esm2022/toast/lib/toast.module.mjs +10 -6
- package/esm2022/toast/lib/toast.service.mjs +3 -3
- package/esm2022/tooltip/lib/tooltip.component.mjs +9 -13
- package/esm2022/tooltip/lib/tooltip.directive.mjs +35 -143
- package/esm2022/tooltip/lib/tooltip.module.mjs +4 -4
- package/esm2022/uploader/index.mjs +4 -2
- package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +13 -0
- package/esm2022/uploader/lib/uploader-list.component.mjs +14 -0
- package/esm2022/uploader/lib/uploader-overlay.component.mjs +12 -0
- package/esm2022/uploader/lib/uploader.module.mjs +14 -11
- package/fesm2022/acorex-components-action-sheet.mjs +10 -10
- package/fesm2022/acorex-components-alert.mjs +7 -7
- package/fesm2022/acorex-components-avatar.mjs +10 -10
- package/fesm2022/acorex-components-badge.mjs +7 -7
- package/fesm2022/acorex-components-breadcrumbs.mjs +10 -10
- package/fesm2022/acorex-components-button-group.mjs +122 -0
- package/fesm2022/acorex-components-button-group.mjs.map +1 -0
- package/fesm2022/acorex-components-button.mjs +138 -116
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +110 -68
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +12 -8
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +7 -7
- package/fesm2022/acorex-components-collapse.mjs +10 -10
- package/fesm2022/acorex-components-color-box.mjs +116 -0
- package/fesm2022/acorex-components-color-box.mjs.map +1 -0
- package/fesm2022/acorex-components-color-palette.mjs +36 -36
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +238 -301
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-context-menu.mjs +7 -7
- package/fesm2022/acorex-components-data-pager.mjs +52 -54
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +12 -14
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +146 -0
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -0
- package/fesm2022/acorex-components-datetime-input.mjs +547 -0
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -0
- package/fesm2022/acorex-components-datetime-picker.mjs +273 -0
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -0
- package/fesm2022/acorex-components-decorators.mjs +50 -50
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +11 -11
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +10 -10
- package/fesm2022/acorex-components-dropdown.mjs +217 -44
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +58 -44
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +7 -7
- package/fesm2022/acorex-components-label.mjs +7 -7
- package/fesm2022/acorex-components-loading.mjs +93 -116
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +7 -7
- package/fesm2022/acorex-components-mixin.mjs +7 -26
- package/fesm2022/acorex-components-mixin.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +10 -10
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +7 -7
- package/fesm2022/acorex-components-otp.mjs +27 -15
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-page.mjs +55 -56
- package/fesm2022/acorex-components-page.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +7 -7
- package/fesm2022/acorex-components-picker.mjs +242 -0
- package/fesm2022/acorex-components-picker.mjs.map +1 -0
- package/fesm2022/acorex-components-popover.mjs +275 -241
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +52 -24
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +12 -16
- package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +39 -25
- package/fesm2022/acorex-components-radio.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +24 -37
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +9 -9
- package/fesm2022/acorex-components-result.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +50 -25
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +7 -7
- package/fesm2022/acorex-components-select-box.mjs +10 -10
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +7 -7
- package/fesm2022/acorex-components-switch.mjs +10 -10
- package/fesm2022/acorex-components-tabs.mjs +45 -85
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +11 -13
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +7 -7
- package/fesm2022/acorex-components-text-box.mjs +10 -10
- package/fesm2022/acorex-components-toast.mjs +23 -13
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +45 -157
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +38 -103
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/form/index.d.ts +1 -0
- package/form/lib/form.config.d.ts +17 -0
- package/form/lib/form.module.d.ts +0 -1
- package/form/lib/validation-rule.widget.d.ts +1 -0
- package/loading/lib/loading.directive.d.ts +10 -17
- package/loading/lib/loading.module.d.ts +1 -1
- package/loading/lib/loading.service.d.ts +10 -15
- package/mixin/index.d.ts +0 -1
- package/mixin/lib/base-components.class.d.ts +2 -2
- package/mixin/lib/base-menu-mixin.class.d.ts +5 -5
- package/mixin/lib/button-mixin.class.d.ts +2 -2
- package/mixin/lib/clickable-mixin.class.d.ts +2 -2
- package/mixin/lib/color-look-mixing.class.d.ts +2 -2
- package/mixin/lib/datalist-component.class.d.ts +10 -10
- package/mixin/lib/dropdown-mixin.class.d.ts +2 -2
- package/mixin/lib/interactive-mixin.class.d.ts +4 -4
- package/mixin/lib/mixin.class.d.ts +61 -61
- package/mixin/lib/page-component.class.d.ts +2 -2
- package/mixin/lib/selection-component.class.d.ts +2 -2
- package/mixin/lib/sizable-mixin.class.d.ts +2 -2
- package/mixin/lib/textbox-mixin.class.d.ts +2 -2
- package/mixin/lib/value-mixin.class.d.ts +8 -8
- package/otp/lib/otp.component.d.ts +10 -6
- package/package.json +56 -41
- package/page/lib/base-page.class.d.ts +6 -10
- package/page/lib/page.component.d.ts +4 -4
- package/picker/README.md +3 -0
- package/picker/index.d.ts +3 -0
- package/picker/lib/picker-column.directive.d.ts +16 -0
- package/picker/lib/picker.component.d.ts +30 -0
- package/picker/lib/picker.module.d.ts +9 -0
- package/popover/index.d.ts +0 -1
- package/popover/lib/popover.component.d.ts +51 -27
- package/popup/lib/popup.component.d.ts +6 -6
- package/progress-bar/lib/progress-bar.component.d.ts +3 -8
- package/radio/lib/radio.component.d.ts +8 -10
- package/range-slider/lib/range-slider.component.d.ts +12 -12
- package/result/lib/result.component.d.ts +2 -2
- package/scheduler/index.d.ts +1 -0
- package/scheduler/lib/scheduler-month-view.component.d.ts +2 -1
- package/scheduler/lib/scheduler-week-view.component.d.ts +6 -0
- package/scheduler/lib/scheduler.component.d.ts +6 -0
- package/scheduler/lib/scheduler.module.d.ts +7 -6
- package/tabs/lib/tab-item.component.d.ts +7 -38
- package/tabs/lib/tabs.class.d.ts +2 -1
- package/tabs/lib/tabs.component.d.ts +7 -9
- package/tag/lib/tag.component.d.ts +2 -4
- package/tooltip/lib/tooltip.component.d.ts +3 -6
- package/tooltip/lib/tooltip.directive.d.ts +11 -17
- package/uploader/index.d.ts +3 -1
- package/uploader/lib/uploader-drop-zone.component.d.ts +6 -0
- package/uploader/lib/uploader-list.component.d.ts +6 -0
- package/uploader/lib/uploader-overlay.component.d.ts +6 -0
- package/uploader/lib/uploader.module.d.ts +7 -4
- package/color-picker/README.md +0 -3
- package/color-picker/index.d.ts +0 -2
- package/color-picker/lib/color-picker.component.d.ts +0 -191
- package/color-picker/lib/color-picker.module.d.ts +0 -18
- package/common/lib/classes/drawing.class.d.ts +0 -9
- package/common/lib/constant/positions.d.ts +0 -75
- package/common/lib/services/custom-cdk-overlay.service.d.ts +0 -19
- package/common/lib/services/overlay.service.d.ts +0 -34
- package/date-picker/README.md +0 -3
- package/date-picker/index.d.ts +0 -2
- package/date-picker/lib/datepicker.component.d.ts +0 -40
- package/date-picker/lib/datepicker.module.d.ts +0 -15
- package/esm2022/color-picker/index.mjs +0 -3
- package/esm2022/color-picker/lib/color-picker.component.mjs +0 -116
- package/esm2022/color-picker/lib/color-picker.module.mjs +0 -61
- package/esm2022/common/lib/classes/data.class.mjs +0 -2
- package/esm2022/common/lib/classes/drawing.class.mjs +0 -2
- package/esm2022/common/lib/constant/positions.mjs +0 -75
- package/esm2022/common/lib/services/custom-cdk-overlay.service.mjs +0 -49
- package/esm2022/common/lib/services/overlay.service.mjs +0 -113
- package/esm2022/date-picker/acorex-components-date-picker.mjs +0 -5
- package/esm2022/date-picker/index.mjs +0 -3
- package/esm2022/date-picker/lib/datepicker.component.mjs +0 -128
- package/esm2022/date-picker/lib/datepicker.module.mjs +0 -44
- package/esm2022/decorators/lib/clear-button.component.mjs +0 -58
- package/esm2022/decorators/lib/close-button.component.mjs +0 -43
- package/esm2022/decorators/lib/generic-content.component.mjs +0 -17
- package/esm2022/decorators/lib/icon.component.mjs +0 -26
- package/esm2022/mixin/lib/loading-mixin.class.mjs +0 -18
- package/esm2022/popover/lib/dropdown-component.class.mjs +0 -73
- package/esm2022/time-box/acorex-components-time-box.mjs +0 -5
- package/esm2022/time-box/index.mjs +0 -3
- package/esm2022/time-box/lib/time-box.component.mjs +0 -294
- package/esm2022/time-box/lib/time-box.module.mjs +0 -32
- package/esm2022/uploader/lib/uploader.component.mjs +0 -99
- package/fesm2022/acorex-components-color-picker.mjs +0 -178
- package/fesm2022/acorex-components-color-picker.mjs.map +0 -1
- package/fesm2022/acorex-components-date-picker.mjs +0 -173
- package/fesm2022/acorex-components-date-picker.mjs.map +0 -1
- package/fesm2022/acorex-components-time-box.mjs +0 -329
- package/fesm2022/acorex-components-time-box.mjs.map +0 -1
- package/mixin/lib/loading-mixin.class.d.ts +0 -40
- package/popover/lib/dropdown-component.class.d.ts +0 -17
- package/time-box/README.md +0 -3
- package/time-box/index.d.ts +0 -2
- package/time-box/lib/time-box.component.d.ts +0 -50
- package/time-box/lib/time-box.module.d.ts +0 -11
- package/uploader/lib/uploader.component.d.ts +0 -28
- /package/common/lib/{classes/data.class.d.ts → types/range.d.ts} +0 -0
- /package/decorators/lib/{clear-button.component.d.ts → components/clear-button.component.d.ts} +0 -0
- /package/decorators/lib/{close-button.component.d.ts → components/close-button.component.d.ts} +0 -0
- /package/decorators/lib/{generic-content.component.d.ts → components/generic-content.component.d.ts} +0 -0
- /package/decorators/lib/{icon.component.d.ts → components/icon.component.d.ts} +0 -0
@@ -1,19 +1,178 @@
|
|
1
|
+
import { flatten, clone } from 'lodash-es';
|
1
2
|
import * as i0 from '@angular/core';
|
2
|
-
import { Injectable, Directive, Host, Self, Optional, Input, Inject, NgModule, inject, ChangeDetectorRef, ElementRef, ViewContainerRef, EventEmitter, Output
|
3
|
-
import * as i3 from '@angular/common';
|
3
|
+
import { Injectable, Directive, Host, Self, Optional, Input, Inject, NgModule, inject, ChangeDetectorRef, ElementRef, ViewContainerRef, EventEmitter, Output } from '@angular/core';
|
4
4
|
import { DOCUMENT } from '@angular/common';
|
5
5
|
import * as i1 from '@angular/platform-browser';
|
6
6
|
import { Observable } from 'rxjs/internal/Observable';
|
7
|
-
import { fromEvent, noop, skip, distinctUntilChanged, debounceTime
|
7
|
+
import { fromEvent, noop, skip, distinctUntilChanged, debounceTime } from 'rxjs';
|
8
8
|
import { map, pairwise, filter, startWith, exhaustMap } from 'rxjs/operators';
|
9
9
|
import { classes } from 'polytype';
|
10
|
-
import { AXHtmlUtil
|
10
|
+
import { AXHtmlUtil } from '@acorex/core/utils';
|
11
11
|
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
12
12
|
import * as i1$1 from '@angular/forms';
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
|
14
|
+
const defaultOffset = 3;
|
15
|
+
function convertToPlacement(value) {
|
16
|
+
const result = [];
|
17
|
+
if (value == null)
|
18
|
+
return result;
|
19
|
+
if (Array.isArray(value)) {
|
20
|
+
const list = flatten(value.map(m => convertToPlacement(m)).filter(m => m != null)).map(m => (clone(m)));
|
21
|
+
result.push(...list);
|
22
|
+
}
|
23
|
+
else {
|
24
|
+
if (typeof value === 'string') {
|
25
|
+
const p = AX_PLACEMENT_MAP[value];
|
26
|
+
if (p) {
|
27
|
+
result.push(...[clone(p.origin), ...clone(p.alts)]);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
else {
|
31
|
+
if ('originX' in value && 'originY' in value) {
|
32
|
+
result.push(clone(value));
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
return result;
|
37
|
+
}
|
38
|
+
const AX_PLACEMENT_TOP = {
|
39
|
+
originX: 'center',
|
40
|
+
originY: 'top',
|
41
|
+
overlayX: 'center',
|
42
|
+
overlayY: 'bottom',
|
43
|
+
offsetY: -defaultOffset
|
44
|
+
};
|
45
|
+
const AX_PLACEMENT_TOP_START = {
|
46
|
+
originX: 'start',
|
47
|
+
originY: 'top',
|
48
|
+
overlayX: 'start',
|
49
|
+
overlayY: 'bottom',
|
50
|
+
offsetY: -defaultOffset
|
51
|
+
};
|
52
|
+
const AX_PLACEMENT_TOP_END = {
|
53
|
+
originX: 'end',
|
54
|
+
originY: 'top',
|
55
|
+
overlayX: 'start',
|
56
|
+
overlayY: 'bottom',
|
57
|
+
offsetY: -defaultOffset
|
58
|
+
};
|
59
|
+
const AX_PLACEMENT_BOTTOM = {
|
60
|
+
originX: 'center',
|
61
|
+
originY: 'bottom',
|
62
|
+
overlayX: 'center',
|
63
|
+
overlayY: 'top',
|
64
|
+
offsetY: defaultOffset
|
65
|
+
};
|
66
|
+
const AX_PLACEMENT_BOTTOM_START = {
|
67
|
+
originX: 'start',
|
68
|
+
originY: 'bottom',
|
69
|
+
overlayX: 'start',
|
70
|
+
overlayY: 'top',
|
71
|
+
offsetY: defaultOffset
|
72
|
+
};
|
73
|
+
const AX_PLACEMENT_BOTTOM_END = {
|
74
|
+
originX: 'end',
|
75
|
+
originY: 'bottom',
|
76
|
+
overlayX: 'end',
|
77
|
+
overlayY: 'top',
|
78
|
+
offsetY: defaultOffset
|
79
|
+
};
|
80
|
+
const AX_PLACEMENT_START = {
|
81
|
+
originX: 'start',
|
82
|
+
originY: 'center',
|
83
|
+
overlayX: 'end',
|
84
|
+
overlayY: 'center',
|
85
|
+
offsetX: -defaultOffset
|
86
|
+
};
|
87
|
+
const AX_PLACEMENT_START_TOP = {
|
88
|
+
originX: 'start',
|
89
|
+
originY: 'top',
|
90
|
+
overlayX: 'end',
|
91
|
+
overlayY: 'top',
|
92
|
+
offsetX: -defaultOffset
|
93
|
+
};
|
94
|
+
const AX_PLACEMENT_START_BOTTOM = {
|
95
|
+
originX: 'start',
|
96
|
+
originY: 'bottom',
|
97
|
+
overlayX: 'end',
|
98
|
+
overlayY: 'bottom',
|
99
|
+
offsetX: -defaultOffset
|
100
|
+
};
|
101
|
+
const AX_PLACEMENT_END = {
|
102
|
+
originX: 'end',
|
103
|
+
originY: 'center',
|
104
|
+
overlayX: 'start',
|
105
|
+
overlayY: 'center',
|
106
|
+
offsetX: defaultOffset
|
107
|
+
};
|
108
|
+
const AX_PLACEMENT_END_TOP = {
|
109
|
+
originX: 'end',
|
110
|
+
originY: 'top',
|
111
|
+
overlayX: 'start',
|
112
|
+
overlayY: 'top',
|
113
|
+
offsetX: defaultOffset
|
114
|
+
};
|
115
|
+
const AX_PLACEMENT_END_BOTTOM = {
|
116
|
+
originX: 'end',
|
117
|
+
originY: 'bottom',
|
118
|
+
overlayX: 'start',
|
119
|
+
overlayY: 'bottom',
|
120
|
+
offsetX: defaultOffset
|
121
|
+
};
|
122
|
+
const AX_PLACEMENT_MAP = {
|
123
|
+
'top': {
|
124
|
+
origin: AX_PLACEMENT_TOP,
|
125
|
+
alts: [AX_PLACEMENT_BOTTOM]
|
126
|
+
},
|
127
|
+
'top-start': {
|
128
|
+
origin: AX_PLACEMENT_TOP_START,
|
129
|
+
alts: [AX_PLACEMENT_BOTTOM_START]
|
130
|
+
},
|
131
|
+
'top-end': {
|
132
|
+
origin: AX_PLACEMENT_TOP_END,
|
133
|
+
alts: [AX_PLACEMENT_BOTTOM_END]
|
134
|
+
},
|
135
|
+
'bottom': {
|
136
|
+
origin: AX_PLACEMENT_BOTTOM,
|
137
|
+
alts: [AX_PLACEMENT_BOTTOM],
|
138
|
+
},
|
139
|
+
'bottom-start': {
|
140
|
+
origin: AX_PLACEMENT_BOTTOM_START,
|
141
|
+
alts: [AX_PLACEMENT_BOTTOM_END, AX_PLACEMENT_TOP_START, AX_PLACEMENT_TOP_END],
|
142
|
+
},
|
143
|
+
'bottom-end': {
|
144
|
+
origin: AX_PLACEMENT_BOTTOM_END,
|
145
|
+
alts: [AX_PLACEMENT_TOP_END],
|
146
|
+
},
|
147
|
+
'end': {
|
148
|
+
origin: AX_PLACEMENT_END,
|
149
|
+
alts: [AX_PLACEMENT_START],
|
150
|
+
},
|
151
|
+
'end-top': {
|
152
|
+
origin: AX_PLACEMENT_END_TOP,
|
153
|
+
alts: [AX_PLACEMENT_END_BOTTOM, AX_PLACEMENT_START_TOP, AX_PLACEMENT_START_BOTTOM],
|
154
|
+
},
|
155
|
+
'end-bottom': {
|
156
|
+
origin: AX_PLACEMENT_END_BOTTOM,
|
157
|
+
alts: [AX_PLACEMENT_END_TOP, AX_PLACEMENT_START_BOTTOM, AX_PLACEMENT_START_TOP],
|
158
|
+
},
|
159
|
+
'start': {
|
160
|
+
origin: AX_PLACEMENT_START,
|
161
|
+
alts: [AX_PLACEMENT_END],
|
162
|
+
},
|
163
|
+
'start-top': {
|
164
|
+
origin: AX_PLACEMENT_START_TOP,
|
165
|
+
alts: [AX_PLACEMENT_START_BOTTOM, AX_PLACEMENT_END_TOP, AX_PLACEMENT_END_BOTTOM],
|
166
|
+
},
|
167
|
+
'start-bottom': {
|
168
|
+
origin: AX_PLACEMENT_START_BOTTOM,
|
169
|
+
alts: [AX_PLACEMENT_START_TOP, AX_PLACEMENT_END_BOTTOM, AX_PLACEMENT_END_TOP],
|
170
|
+
}
|
171
|
+
};
|
172
|
+
|
173
|
+
/**
|
174
|
+
* A token that specifies the selection mode of component.
|
175
|
+
*/
|
17
176
|
|
18
177
|
/**
|
19
178
|
* Contains native event
|
@@ -118,58 +277,57 @@ class AXComponentClosedPromise extends Promise {
|
|
118
277
|
}
|
119
278
|
}
|
120
279
|
class AXComponent {
|
121
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
122
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
280
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
281
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXComponent }); }
|
123
282
|
}
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXComponent, decorators: [{
|
125
284
|
type: Injectable
|
126
285
|
}] });
|
127
286
|
class AXClosbaleComponent extends AXComponent {
|
128
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
129
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
287
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXClosbaleComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
288
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXClosbaleComponent }); }
|
130
289
|
}
|
131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXClosbaleComponent, decorators: [{
|
132
291
|
type: Injectable
|
133
292
|
}] });
|
134
293
|
class AXClearableComponent extends AXComponent {
|
135
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
136
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
294
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXClearableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
295
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXClearableComponent }); }
|
137
296
|
}
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXClearableComponent, decorators: [{
|
139
298
|
type: Injectable
|
140
299
|
}] });
|
141
300
|
class AXSearchableComponent extends AXComponent {
|
142
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
143
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
301
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXSearchableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
302
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXSearchableComponent }); }
|
144
303
|
}
|
145
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXSearchableComponent, decorators: [{
|
146
305
|
type: Injectable
|
147
306
|
}] });
|
148
307
|
class AXValuableComponent extends AXComponent {
|
149
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
150
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
308
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXValuableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
309
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXValuableComponent }); }
|
151
310
|
}
|
152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXValuableComponent, decorators: [{
|
153
312
|
type: Injectable
|
154
313
|
}] });
|
155
314
|
class AXFocusableComponent extends AXComponent {
|
156
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
157
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
315
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXFocusableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
316
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXFocusableComponent }); }
|
158
317
|
}
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXFocusableComponent, decorators: [{
|
160
319
|
type: Injectable
|
161
320
|
}] });
|
162
321
|
class AXPagedComponent extends AXComponent {
|
163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
164
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
322
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXPagedComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
323
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXPagedComponent }); }
|
165
324
|
}
|
166
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXPagedComponent, decorators: [{
|
167
326
|
type: Injectable
|
168
327
|
}] });
|
169
328
|
|
170
329
|
const AX_STYLE_COLOR_TYPES = ['primary', 'secondary', 'success', 'warning', 'danger', 'info', 'default'];
|
171
330
|
const AX_LOCATIONS = ['bottom-start', 'bottom-center', 'bottom-end', 'top-start', 'top-center', 'top-end', 'center-end', 'center-start'];
|
172
|
-
const AX_DIRECTIONS = ['vertical', 'horizontal'];
|
173
331
|
|
174
332
|
;
|
175
333
|
|
@@ -210,10 +368,10 @@ class AXAutoFocusDirective {
|
|
210
368
|
}, this.time);
|
211
369
|
}
|
212
370
|
}
|
213
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
214
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
371
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXAutoFocusDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: AXFocusableComponent, host: true, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
372
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.9", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: { autoFocus: ["axAutoFocus", "autoFocus"], time: ["focus-time", "time"] }, ngImport: i0 }); }
|
215
373
|
}
|
216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXAutoFocusDirective, decorators: [{
|
217
375
|
type: Directive,
|
218
376
|
args: [{
|
219
377
|
selector: '[axAutoFocus]',
|
@@ -261,10 +419,10 @@ class AXHotkeysService {
|
|
261
419
|
}
|
262
420
|
});
|
263
421
|
}
|
264
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
265
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
422
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXHotkeysService, deps: [{ token: i1.EventManager }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
423
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXHotkeysService, providedIn: 'root' }); }
|
266
424
|
}
|
267
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXHotkeysService, decorators: [{
|
268
426
|
type: Injectable,
|
269
427
|
args: [{ providedIn: 'root' }]
|
270
428
|
}], ctorParameters: function () { return [{ type: i1.EventManager }, { type: Document, decorators: [{
|
@@ -328,10 +486,10 @@ class AXHotkeyDirective {
|
|
328
486
|
s.unsubscribe();
|
329
487
|
});
|
330
488
|
}
|
331
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
332
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
489
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXHotkeyDirective, deps: [{ token: i0.ElementRef }, { token: AXComponent, host: true, optional: true, self: true }, { token: AXHotkeysService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
490
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.9", type: AXHotkeyDirective, selector: "[hotkey]", inputs: { hotkey: "hotkey" }, ngImport: i0 }); }
|
333
491
|
}
|
334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXHotkeyDirective, decorators: [{
|
335
493
|
type: Directive,
|
336
494
|
args: [{
|
337
495
|
selector: '[hotkey]',
|
@@ -390,10 +548,10 @@ class AXInfiniteScrollerDirective {
|
|
390
548
|
}));
|
391
549
|
//.subscribe((data) => { console.log(data) }, (err) => console.log(err));
|
392
550
|
}
|
393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
394
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
551
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXInfiniteScrollerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
552
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.9", type: AXInfiniteScrollerDirective, selector: "[axInfiniteScroller]", inputs: { scrollCallback: "scrollCallback", immediateCallback: "immediateCallback", scrollPercent: "scrollPercent" }, ngImport: i0 }); }
|
395
553
|
}
|
396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
|
397
555
|
type: Directive,
|
398
556
|
args: [{
|
399
557
|
selector: '[axInfiniteScroller]'
|
@@ -433,26 +591,26 @@ class AXResponsiveDirective {
|
|
433
591
|
this._observer?.disconnect();
|
434
592
|
this._observer?.unobserve(this._elementRef.nativeElement);
|
435
593
|
}
|
436
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
437
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
594
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXResponsiveDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
595
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.9", type: AXResponsiveDirective, selector: "[ax-responsive]", ngImport: i0 }); }
|
438
596
|
}
|
439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXResponsiveDirective, decorators: [{
|
440
598
|
type: Directive,
|
441
599
|
args: [{ selector: '[ax-responsive]' }]
|
442
600
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
443
601
|
|
444
602
|
class AXCommonModule {
|
445
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
446
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.
|
603
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
604
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.9", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective,
|
447
605
|
AXInfiniteScrollerDirective,
|
448
606
|
AXAutoFocusDirective,
|
449
607
|
AXHotkeyDirective], exports: [AXResponsiveDirective,
|
450
608
|
AXInfiniteScrollerDirective,
|
451
609
|
AXAutoFocusDirective,
|
452
610
|
AXHotkeyDirective] }); }
|
453
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.
|
611
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXCommonModule }); }
|
454
612
|
}
|
455
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXCommonModule, decorators: [{
|
456
614
|
type: NgModule,
|
457
615
|
args: [{
|
458
616
|
imports: [],
|
@@ -478,10 +636,10 @@ class AXDomService {
|
|
478
636
|
const randomness = Math.random().toString(36).substr(2);
|
479
637
|
return dateString + randomness;
|
480
638
|
}
|
481
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
482
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
639
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXDomService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
640
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXDomService, providedIn: 'root' }); }
|
483
641
|
}
|
484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXDomService, decorators: [{
|
485
643
|
type: Injectable,
|
486
644
|
args: [{ providedIn: 'root' }]
|
487
645
|
}] });
|
@@ -554,10 +712,10 @@ class MXBaseComponent {
|
|
554
712
|
set rtl(value) {
|
555
713
|
this.setOption({ name: 'rtl', value });
|
556
714
|
}
|
557
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
558
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
715
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
716
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXBaseComponent }); }
|
559
717
|
}
|
560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXBaseComponent, decorators: [{
|
561
719
|
type: Injectable
|
562
720
|
}], ctorParameters: function () { return []; } });
|
563
721
|
const BASE_INPUTS = ['rtl'];
|
@@ -677,11 +835,19 @@ class MXInteractiveComponent extends MXBaseComponent {
|
|
677
835
|
nativeEvent: e,
|
678
836
|
});
|
679
837
|
}
|
838
|
+
emitOnClickEvent(e) {
|
839
|
+
this.onClick.emit({
|
840
|
+
component: this,
|
841
|
+
htmlElement: this.getHostElement(),
|
842
|
+
nativeEvent: e
|
843
|
+
});
|
844
|
+
}
|
680
845
|
constructor() {
|
681
846
|
super();
|
682
847
|
this.onTouchedCallback = noop;
|
683
848
|
this._touched = false;
|
684
849
|
this.disabledChange = new EventEmitter();
|
850
|
+
// TODO: we should remove it or rename it
|
685
851
|
this._tabIndex = 0;
|
686
852
|
/**
|
687
853
|
* Fires each time the component gets focused.
|
@@ -693,6 +859,11 @@ class MXInteractiveComponent extends MXBaseComponent {
|
|
693
859
|
* @event
|
694
860
|
*/
|
695
861
|
this.onBlur = new EventEmitter();
|
862
|
+
/**
|
863
|
+
* Fires each time the user clicks the button.
|
864
|
+
* @event
|
865
|
+
*/
|
866
|
+
this.onClick = new EventEmitter();
|
696
867
|
}
|
697
868
|
focus() {
|
698
869
|
AXHtmlUtil.focusElement(this.getHostElement());
|
@@ -761,27 +932,13 @@ class MXButtonBaseComponent extends classes(MXInteractiveComponent, MXColorLookC
|
|
761
932
|
get cssClasses() {
|
762
933
|
const cssClasses = {
|
763
934
|
'ax-button-icon': !this.text,
|
764
|
-
'ax-state-disabled': this
|
935
|
+
'ax-state-disabled': this.disabled,
|
765
936
|
'ax-state-selected': this.selected,
|
766
937
|
};
|
767
938
|
cssClasses[`ax-${this['color'] || 'default'}${this['look'] ? '-' + this['look'] : '-default'}`] = true;
|
768
939
|
return cssClasses;
|
769
940
|
}
|
770
941
|
}
|
771
|
-
const BUTTON_INPUTS = [
|
772
|
-
'text',
|
773
|
-
'toggleable',
|
774
|
-
'selected',
|
775
|
-
...INTERACTIVE_INPUTS,
|
776
|
-
COLOR_LOOK_INPUTS,
|
777
|
-
];
|
778
|
-
const BUTTON_OUTPUT = [
|
779
|
-
'textChange',
|
780
|
-
'toggleableChange',
|
781
|
-
'selectedChange',
|
782
|
-
...INTERACTIVE_OUTPUT,
|
783
|
-
COLOR_LOOK_OUTPUT,
|
784
|
-
];
|
785
942
|
|
786
943
|
class MXValueComponent extends MXInteractiveComponent {
|
787
944
|
constructor() {
|
@@ -840,7 +997,7 @@ class MXValueComponent extends MXInteractiveComponent {
|
|
840
997
|
}
|
841
998
|
set value(v) {
|
842
999
|
v = this.internalSetValue(v);
|
843
|
-
const old =
|
1000
|
+
const old = clone(this.value);
|
844
1001
|
// TODO: check real equality
|
845
1002
|
if (v != old) {
|
846
1003
|
this._value = v;
|
@@ -1002,10 +1159,10 @@ class MXValueComponent extends MXInteractiveComponent {
|
|
1002
1159
|
this.commitValue(null, e);
|
1003
1160
|
this.setState('clear');
|
1004
1161
|
}
|
1005
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
1006
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
1162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
1163
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXValueComponent }); }
|
1007
1164
|
}
|
1008
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
1165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXValueComponent, decorators: [{
|
1009
1166
|
type: Injectable
|
1010
1167
|
}] });
|
1011
1168
|
|
@@ -1046,88 +1203,13 @@ class MXInputBaseValueComponent extends MXValueComponent {
|
|
1046
1203
|
nativeEvent: e
|
1047
1204
|
});
|
1048
1205
|
}
|
1049
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
1050
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.
|
1206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXInputBaseValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
1207
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXInputBaseValueComponent }); }
|
1051
1208
|
}
|
1052
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
1209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXInputBaseValueComponent, decorators: [{
|
1053
1210
|
type: Injectable
|
1054
1211
|
}] });
|
1055
1212
|
|
1056
|
-
const AXPositions = {
|
1057
|
-
topStart: {
|
1058
|
-
originX: 'start',
|
1059
|
-
originY: 'top',
|
1060
|
-
overlayX: 'start',
|
1061
|
-
overlayY: 'bottom',
|
1062
|
-
},
|
1063
|
-
topCenter: {
|
1064
|
-
originX: 'center',
|
1065
|
-
originY: 'top',
|
1066
|
-
overlayX: 'center',
|
1067
|
-
overlayY: 'bottom',
|
1068
|
-
},
|
1069
|
-
topEnd: {
|
1070
|
-
originX: 'end',
|
1071
|
-
originY: 'top',
|
1072
|
-
overlayX: 'end',
|
1073
|
-
overlayY: 'bottom',
|
1074
|
-
},
|
1075
|
-
startStart: {
|
1076
|
-
originX: 'start',
|
1077
|
-
originY: 'top',
|
1078
|
-
overlayX: 'end',
|
1079
|
-
overlayY: 'top',
|
1080
|
-
},
|
1081
|
-
startCenter: {
|
1082
|
-
originX: 'start',
|
1083
|
-
originY: 'center',
|
1084
|
-
overlayX: 'end',
|
1085
|
-
overlayY: 'center',
|
1086
|
-
},
|
1087
|
-
startEnd: {
|
1088
|
-
originX: 'start',
|
1089
|
-
originY: 'bottom',
|
1090
|
-
overlayX: 'end',
|
1091
|
-
overlayY: 'bottom',
|
1092
|
-
},
|
1093
|
-
bottomStart: {
|
1094
|
-
originX: 'start',
|
1095
|
-
originY: 'bottom',
|
1096
|
-
overlayX: 'start',
|
1097
|
-
overlayY: 'top',
|
1098
|
-
},
|
1099
|
-
bottomCenter: {
|
1100
|
-
originX: 'center',
|
1101
|
-
originY: 'bottom',
|
1102
|
-
overlayX: 'center',
|
1103
|
-
overlayY: 'top',
|
1104
|
-
},
|
1105
|
-
bottomEnd: {
|
1106
|
-
originX: 'end',
|
1107
|
-
originY: 'bottom',
|
1108
|
-
overlayX: 'end',
|
1109
|
-
overlayY: 'top',
|
1110
|
-
},
|
1111
|
-
endStart: {
|
1112
|
-
originX: 'end',
|
1113
|
-
originY: 'top',
|
1114
|
-
overlayX: 'start',
|
1115
|
-
overlayY: 'top',
|
1116
|
-
},
|
1117
|
-
endCenter: {
|
1118
|
-
originX: 'end',
|
1119
|
-
originY: 'center',
|
1120
|
-
overlayX: 'start',
|
1121
|
-
overlayY: 'center',
|
1122
|
-
},
|
1123
|
-
endEnd: {
|
1124
|
-
originX: 'end',
|
1125
|
-
originY: 'bottom',
|
1126
|
-
overlayX: 'start',
|
1127
|
-
overlayY: 'bottom',
|
1128
|
-
},
|
1129
|
-
};
|
1130
|
-
|
1131
1213
|
class AXNgModelDelayedValueChangedDirective {
|
1132
1214
|
get delayTime() {
|
1133
1215
|
return this._delayTime;
|
@@ -1155,10 +1237,10 @@ class AXNgModelDelayedValueChangedDirective {
|
|
1155
1237
|
this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), // skip initial value
|
1156
1238
|
distinctUntilChanged(), debounceTime(this.delayTime)).subscribe((value) => this.delayedValueChanged.emit(value));
|
1157
1239
|
}
|
1158
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.
|
1159
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.
|
1240
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXNgModelDelayedValueChangedDirective, deps: [{ token: i1$1.NgModel }], target: i0.ɵɵFactoryTarget.Directive }); }
|
1241
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.9", type: AXNgModelDelayedValueChangedDirective, isStandalone: true, selector: "[delayedValueChanged]", inputs: { delayTime: "delayTime" }, outputs: { delayedValueChanged: "delayedValueChanged", delayTimeChange: "delayTimeChange" }, ngImport: i0 }); }
|
1160
1242
|
}
|
1161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
1243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXNgModelDelayedValueChangedDirective, decorators: [{
|
1162
1244
|
type: Directive,
|
1163
1245
|
args: [{
|
1164
1246
|
selector: '[delayedValueChanged]',
|
@@ -1172,154 +1254,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImpor
|
|
1172
1254
|
type: Input
|
1173
1255
|
}] } });
|
1174
1256
|
|
1175
|
-
class DynamicOverlayContainer extends OverlayContainer {
|
1176
|
-
setContainerElement(containerElement) {
|
1177
|
-
this._containerElement = containerElement;
|
1178
|
-
}
|
1179
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlayContainer, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
1180
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlayContainer, providedIn: 'root' }); }
|
1181
|
-
}
|
1182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlayContainer, decorators: [{
|
1183
|
-
type: Injectable,
|
1184
|
-
args: [{
|
1185
|
-
providedIn: 'root',
|
1186
|
-
}]
|
1187
|
-
}] });
|
1188
|
-
class DynamicOverlay extends Overlay {
|
1189
|
-
constructor(scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, rendererFactory, _location, _outsideClickDispatcher) {
|
1190
|
-
super(scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, _location, _outsideClickDispatcher);
|
1191
|
-
this.renderer = rendererFactory.createRenderer(null, null);
|
1192
|
-
this._dynamicOverlayContainer = _overlayContainer;
|
1193
|
-
}
|
1194
|
-
setContainerElement(containerElement) {
|
1195
|
-
this.renderer.setStyle(containerElement, 'transform', 'translateZ(0)');
|
1196
|
-
this._dynamicOverlayContainer.setContainerElement(containerElement);
|
1197
|
-
}
|
1198
|
-
createOn(containerElement, config) {
|
1199
|
-
this.setContainerElement(containerElement);
|
1200
|
-
return super.create(config);
|
1201
|
-
}
|
1202
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlay, deps: [{ token: i1$2.ScrollStrategyOptions }, { token: DynamicOverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: i1$2.OverlayPositionBuilder }, { token: i1$2.OverlayKeyboardDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i2.Directionality }, { token: i0.RendererFactory2 }, { token: i3.Location }, { token: i1$2.OverlayOutsideClickDispatcher }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1203
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlay, providedIn: 'root' }); }
|
1204
|
-
}
|
1205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: DynamicOverlay, decorators: [{
|
1206
|
-
type: Injectable,
|
1207
|
-
args: [{
|
1208
|
-
providedIn: 'root',
|
1209
|
-
}]
|
1210
|
-
}], ctorParameters: function () { return [{ type: i1$2.ScrollStrategyOptions }, { type: DynamicOverlayContainer }, { type: i0.ComponentFactoryResolver }, { type: i1$2.OverlayPositionBuilder }, { type: i1$2.OverlayKeyboardDispatcher }, { type: i0.Injector }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
1211
|
-
type: Inject,
|
1212
|
-
args: [DOCUMENT]
|
1213
|
-
}] }, { type: i2.Directionality }, { type: i0.RendererFactory2 }, { type: i3.Location }, { type: i1$2.OverlayOutsideClickDispatcher }]; } });
|
1214
|
-
|
1215
|
-
class AXOverlayService {
|
1216
|
-
constructor(overlayService, overlayService2, appRef) {
|
1217
|
-
this.overlayService = overlayService;
|
1218
|
-
this.overlayService2 = overlayService2;
|
1219
|
-
this.appRef = appRef;
|
1220
|
-
}
|
1221
|
-
position() {
|
1222
|
-
return this.overlayService.position();
|
1223
|
-
}
|
1224
|
-
show(content, context, configs) {
|
1225
|
-
configs = Object.assign({
|
1226
|
-
hasBackdrop: true,
|
1227
|
-
transparentBackdrop: true,
|
1228
|
-
closeOnClickOutside: true,
|
1229
|
-
}, configs || {});
|
1230
|
-
// get root viewref
|
1231
|
-
const viewRef = this.appRef.components[0].instance.viewRef;
|
1232
|
-
// let portal: Portal<any>;
|
1233
|
-
// get component by route
|
1234
|
-
if (typeof content === 'string') {
|
1235
|
-
// TODO: ???
|
1236
|
-
}
|
1237
|
-
// create portal from component
|
1238
|
-
else if (content instanceof TemplateRef) {
|
1239
|
-
this.portal = new TemplatePortal(content, viewRef, context);
|
1240
|
-
}
|
1241
|
-
else if (typeof content === 'function') {
|
1242
|
-
this.portal = new ComponentPortal(content, viewRef);
|
1243
|
-
}
|
1244
|
-
let positionStrategy;
|
1245
|
-
if (configs.position && configs.targetElement) {
|
1246
|
-
const p = Array.isArray(configs.position)
|
1247
|
-
? configs.position
|
1248
|
-
: [configs.position];
|
1249
|
-
positionStrategy = this.overlayService
|
1250
|
-
.position()
|
1251
|
-
.flexibleConnectedTo(configs.targetElement)
|
1252
|
-
.withPositions(p)
|
1253
|
-
.withPush(true);
|
1254
|
-
}
|
1255
|
-
else {
|
1256
|
-
positionStrategy = configs.position
|
1257
|
-
? configs.position
|
1258
|
-
: this.overlayService
|
1259
|
-
.position()
|
1260
|
-
.global()
|
1261
|
-
.centerHorizontally()
|
1262
|
-
.centerVertically();
|
1263
|
-
}
|
1264
|
-
let scrollStrategy = this.overlayService.scrollStrategies.reposition({ autoClose: true });
|
1265
|
-
if (configs.scroll === 'block') {
|
1266
|
-
scrollStrategy = this.overlayService.scrollStrategies.block();
|
1267
|
-
}
|
1268
|
-
if (configs.scroll === 'close') {
|
1269
|
-
scrollStrategy = this.overlayService.scrollStrategies.close();
|
1270
|
-
}
|
1271
|
-
const config = {
|
1272
|
-
positionStrategy,
|
1273
|
-
scrollStrategy,
|
1274
|
-
hasBackdrop: configs.hasBackdrop,
|
1275
|
-
disposeOnNavigation: true,
|
1276
|
-
backdropClass: configs.backdropClass
|
1277
|
-
? configs.backdropClass
|
1278
|
-
: configs.transparentBackdrop
|
1279
|
-
? 'cdk-overlay-transparent-backdrop'
|
1280
|
-
: undefined,
|
1281
|
-
panelClass: configs.panelClass
|
1282
|
-
? configs.panelClass
|
1283
|
-
: ['ax-animate-animated', 'ax-animate-zoomIn', 'ax-animate-faster'],
|
1284
|
-
};
|
1285
|
-
let overlayRef = configs.containerElement
|
1286
|
-
? this.overlayService.createOn(configs.containerElement, config)
|
1287
|
-
: this.overlayService2.create(config);
|
1288
|
-
const host = overlayRef.attach(this.portal);
|
1289
|
-
if (host.instance) {
|
1290
|
-
Object.assign(host.instance, context);
|
1291
|
-
setTimeout(() => {
|
1292
|
-
host.changeDetectorRef.detectChanges();
|
1293
|
-
}, 0);
|
1294
|
-
}
|
1295
|
-
if (configs.closeOnClickOutside) {
|
1296
|
-
merge(overlayRef.backdropClick(), overlayRef.detachments()).subscribe(() => {
|
1297
|
-
overlayRef.dispose();
|
1298
|
-
overlayRef = undefined;
|
1299
|
-
if (configs.onBackdropClick) {
|
1300
|
-
configs.onBackdropClick();
|
1301
|
-
}
|
1302
|
-
});
|
1303
|
-
}
|
1304
|
-
return {
|
1305
|
-
instance: host.instance,
|
1306
|
-
dispose: overlayRef.dispose.bind(overlayRef),
|
1307
|
-
isOpen: () => {
|
1308
|
-
return overlayRef.hasAttached();
|
1309
|
-
},
|
1310
|
-
};
|
1311
|
-
}
|
1312
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXOverlayService, deps: [{ token: DynamicOverlay }, { token: i1$2.Overlay }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1313
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXOverlayService, providedIn: 'root' }); }
|
1314
|
-
}
|
1315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.7", ngImport: i0, type: AXOverlayService, decorators: [{
|
1316
|
-
type: Injectable,
|
1317
|
-
args: [{ providedIn: 'root' }]
|
1318
|
-
}], ctorParameters: function () { return [{ type: DynamicOverlay }, { type: i1$2.Overlay }, { type: i0.ApplicationRef }]; } });
|
1319
|
-
|
1320
1257
|
/**
|
1321
1258
|
* Generated bundle index. Do not edit.
|
1322
1259
|
*/
|
1323
1260
|
|
1324
|
-
export { AXAutoFocusDirective, AXButtonClickEvent, AXClearableComponent, AXClickEvent, AXClosbaleComponent, AXCommonModule, AXComponent, AXComponentCloseEvent, AXComponentClosedPromise, AXComponentClosing, AXComponentResult, AXEvent, AXFocusEvent, AXFocusableComponent, AXHotkeyDirective, AXHotkeysService, AXHtmlEvent, AXInfiniteScrollerDirective, AXItemClickEvent, AXNgModelDelayedValueChangedDirective, AXOptionChangedEvent,
|
1261
|
+
export { AXAutoFocusDirective, AXButtonClickEvent, AXClearableComponent, AXClickEvent, AXClosbaleComponent, AXCommonModule, AXComponent, AXComponentCloseEvent, AXComponentClosedPromise, AXComponentClosing, AXComponentResult, AXDomService, AXEvent, AXFocusEvent, AXFocusableComponent, AXHotkeyDirective, AXHotkeysService, AXHtmlEvent, AXInfiniteScrollerDirective, AXItemClickEvent, AXNgModelDelayedValueChangedDirective, AXOptionChangedEvent, AXPagedComponent, AXRangeChangedEvent, AXResponsiveDirective, AXSearchableComponent, AXSelectionValueChangedEvent, AXValuableComponent, AXValueChangedEvent, AX_LOCATIONS, AX_PLACEMENT_BOTTOM, AX_PLACEMENT_BOTTOM_END, AX_PLACEMENT_BOTTOM_START, AX_PLACEMENT_END, AX_PLACEMENT_END_BOTTOM, AX_PLACEMENT_END_TOP, AX_PLACEMENT_MAP, AX_PLACEMENT_START, AX_PLACEMENT_START_BOTTOM, AX_PLACEMENT_START_TOP, AX_PLACEMENT_TOP, AX_PLACEMENT_TOP_END, AX_PLACEMENT_TOP_START, AX_STYLE_COLOR_TYPES, BASE_INPUTS, BASE_OUTPUT, COLOR_INPUTS, COLOR_LOOK_INPUTS, COLOR_LOOK_OUTPUT, COLOR_OUTPUT, INTERACTIVE_INPUTS, INTERACTIVE_OUTPUT, LOOK_INPUTS, LOOK_OUTPUT, MXBaseComponent, MXButtonBaseComponent, MXColorComponent, MXColorLookComponent, MXInputBaseValueComponent, MXInteractiveComponent, MXLookComponent, MXValueComponent, TAB_META_KEY, convertToPlacement };
|
1325
1262
|
//# sourceMappingURL=acorex-components-common.mjs.map
|