@acorex/components 7.5.0 → 7.5.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/action-sheet/index.d.ts +1 -1
- package/action-sheet/lib/action-sheet.component.d.ts +3 -3
- package/avatar/index.d.ts +1 -1
- package/breadcrumbs/index.d.ts +2 -2
- package/breadcrumbs/lib/breadcrumbs-item.component.d.ts +1 -1
- package/button/lib/button-item.class.d.ts +1 -1
- package/button/lib/button.component.d.ts +1 -1
- package/calendar/lib/calendar.class.d.ts +1 -1
- package/calendar/lib/calendar.component.d.ts +1 -1
- package/collapse/lib/collapse-group.component.d.ts +9 -6
- package/collapse/lib/collapse.component.d.ts +6 -6
- package/color-box/lib/color-box.component.d.ts +2 -2
- package/color-palette/lib/color-palette-input.component.d.ts +3 -3
- package/color-palette/lib/color-palette-picker.component.d.ts +1 -1
- package/color-palette/lib/color-palette.class.d.ts +4 -4
- package/common/index.d.ts +0 -1
- package/common/lib/classes/datalist.class.d.ts +31 -0
- package/common/lib/classes/styles.class.d.ts +2 -3
- package/common/lib/components/colorlook-component.class.d.ts +2 -2
- package/common/lib/components/input-base-value-component.class.d.ts +12 -12
- package/common/lib/components/selection-base.component.class.d.ts +2 -1
- package/common/lib/directives/delayed-value-changed.directive.d.ts +5 -5
- package/common/lib/directives/hotkey.directive.d.ts +2 -2
- package/common/lib/directives/responsive.directive.d.ts +1 -1
- package/context-menu/lib/context-menu.component.d.ts +1 -1
- package/data-table/lib/data-table.component.d.ts +2 -2
- package/datetime-box/lib/datetime-box.component.d.ts +3 -3
- package/datetime-input/lib/datetime-input.component.d.ts +1 -1
- package/datetime-picker/index.d.ts +1 -1
- package/datetime-picker/lib/datetime-picker.component.d.ts +1 -2
- package/dropdown/lib/dropdown-box.component.d.ts +5 -3
- package/dropdown/lib/dropdown-panel.component.d.ts +1 -0
- package/esm2022/action-sheet/index.mjs +2 -2
- package/esm2022/action-sheet/lib/action-sheet.class.mjs +1 -1
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +22 -14
- package/esm2022/action-sheet/lib/action-sheet.module.mjs +3 -3
- package/esm2022/action-sheet/lib/action-sheet.service.mjs +5 -5
- package/esm2022/avatar/index.mjs +2 -2
- package/esm2022/avatar/lib/avatar-group.component.mjs +1 -1
- package/esm2022/avatar/lib/avatar.component.mjs +2 -2
- package/esm2022/badge/lib/badge.component.mjs +3 -3
- package/esm2022/badge/lib/badge.module.mjs +2 -2
- package/esm2022/breadcrumbs/index.mjs +3 -3
- package/esm2022/breadcrumbs/lib/breadcrumbs-item.class.mjs +1 -1
- package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +2 -2
- package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +1 -1
- package/esm2022/breadcrumbs/lib/breadcrumbs.module.mjs +3 -3
- package/esm2022/button/lib/button-item.class.mjs +1 -1
- package/esm2022/button/lib/button-item.component.mjs +1 -1
- package/esm2022/button/lib/button.component.mjs +3 -3
- package/esm2022/button-group/lib/button-group.component.mjs +3 -3
- package/esm2022/button-group/lib/button-group.module.mjs +2 -2
- package/esm2022/calendar/lib/calendar-range.component.mjs +4 -7
- package/esm2022/calendar/lib/calendar.class.mjs +3 -11
- package/esm2022/calendar/lib/calendar.component.mjs +28 -29
- package/esm2022/calendar/lib/calendar.module.mjs +4 -4
- package/esm2022/check-box/lib/check-box.component.mjs +9 -9
- package/esm2022/check-box/lib/check-box.module.mjs +3 -3
- package/esm2022/chips/lib/chips.component.mjs +5 -5
- package/esm2022/chips/lib/chips.module.mjs +2 -2
- package/esm2022/collapse/lib/collapse-group.component.mjs +17 -12
- package/esm2022/collapse/lib/collapse.component.mjs +9 -9
- package/esm2022/collapse/lib/collapse.module.mjs +3 -3
- package/esm2022/color-box/lib/color-box.component.mjs +7 -7
- package/esm2022/color-box/lib/color-box.module.mjs +4 -4
- package/esm2022/color-palette/lib/color-palette-input.component.mjs +10 -14
- package/esm2022/color-palette/lib/color-palette-picker.component.mjs +29 -31
- package/esm2022/color-palette/lib/color-palette-preview.component.mjs +8 -16
- package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +5 -5
- package/esm2022/color-palette/lib/color-palette.class.mjs +2 -2
- package/esm2022/color-palette/lib/color-palette.component.mjs +14 -6
- package/esm2022/color-palette/lib/color-palette.module.mjs +12 -12
- package/esm2022/common/index.mjs +1 -2
- package/esm2022/common/lib/classes/components.class.mjs +1 -1
- package/esm2022/common/lib/classes/datalist.class.mjs +41 -54
- package/esm2022/common/lib/classes/styles.class.mjs +2 -10
- package/esm2022/common/lib/common.module.mjs +4 -2
- package/esm2022/common/lib/components/button-base-component.class.mjs +4 -4
- package/esm2022/common/lib/components/color-component.class.mjs +2 -2
- package/esm2022/common/lib/components/colorlook-component.class.mjs +4 -4
- package/esm2022/common/lib/components/input-base-value-component.class.mjs +15 -15
- package/esm2022/common/lib/components/interactive-component.class.mjs +1 -1
- package/esm2022/common/lib/components/look-component.class.mjs +2 -2
- package/esm2022/common/lib/components/selection-base.component.class.mjs +10 -4
- package/esm2022/common/lib/components/value-component.class.mjs +3 -3
- package/esm2022/common/lib/directives/auto-focus.directive.mjs +4 -12
- package/esm2022/common/lib/directives/delayed-value-changed.directive.mjs +16 -14
- package/esm2022/common/lib/directives/hotkey.directive.mjs +14 -15
- package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +7 -9
- package/esm2022/common/lib/directives/responsive.directive.mjs +12 -10
- package/esm2022/common/lib/directives/ripple.directive.mjs +1 -1
- package/esm2022/common/lib/services/dom.service.mjs +2 -2
- package/esm2022/common/lib/services/hotkey.service.mjs +4 -5
- package/esm2022/common/lib/types/direction.mjs +1 -1
- package/esm2022/common/lib/types/orientation.mjs +1 -1
- package/esm2022/common/lib/types/placement.mjs +23 -23
- package/esm2022/common/lib/types/range.mjs +1 -1
- package/esm2022/context-menu/lib/context-menu.component.mjs +3 -3
- package/esm2022/context-menu/lib/context-menu.module.mjs +7 -17
- package/esm2022/data-pager/lib/data-pager-info.component.mjs +3 -3
- package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +1 -1
- package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +21 -8
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +3 -3
- package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +17 -5
- package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +19 -7
- package/esm2022/data-pager/lib/data-pager.component.mjs +2 -2
- package/esm2022/data-pager/lib/data-pager.module.mjs +30 -16
- package/esm2022/data-table/lib/data-column.directive.mjs +2 -2
- package/esm2022/data-table/lib/data-table.component.mjs +2 -2
- package/esm2022/data-table/lib/data-table.module.mjs +7 -7
- package/esm2022/datetime-box/lib/datetime-box.component.mjs +7 -7
- package/esm2022/datetime-box/lib/datetime-box.module.mjs +7 -7
- package/esm2022/datetime-input/lib/datetime-input.component.mjs +134 -134
- package/esm2022/datetime-input/lib/datetime-input.module.mjs +4 -4
- package/esm2022/datetime-picker/index.mjs +2 -2
- package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +4 -4
- package/esm2022/datetime-picker/lib/datetime-picker.config.mjs +4 -4
- package/esm2022/decorators/lib/components/clear-button.component.mjs +2 -2
- package/esm2022/decorators/lib/components/close-button.component.mjs +8 -4
- package/esm2022/decorators/lib/components/generic-content.component.mjs +1 -1
- package/esm2022/decorators/lib/components/icon.component.mjs +2 -2
- package/esm2022/dialog/lib/dialog.component.mjs +3 -3
- package/esm2022/dialog/lib/dialog.module.mjs +26 -10
- package/esm2022/drawer/lib/drawer-container.component.mjs +2 -2
- package/esm2022/drawer/lib/drawer.component.mjs +2 -2
- package/esm2022/drawer/lib/drawer.module.mjs +3 -3
- package/esm2022/dropdown/lib/dropdown-box.class.mjs +1 -1
- package/esm2022/dropdown/lib/dropdown-box.component.mjs +14 -11
- package/esm2022/dropdown/lib/dropdown-panel.component.mjs +5 -4
- package/esm2022/dropdown/lib/dropdown.module.mjs +29 -9
- package/esm2022/form/index.mjs +2 -2
- package/esm2022/form/lib/form-field.component.mjs +4 -4
- package/esm2022/form/lib/form.component.mjs +3 -4
- package/esm2022/form/lib/form.config.mjs +6 -6
- package/esm2022/form/lib/form.module.mjs +3 -11
- package/esm2022/form/lib/validation-summary.component.mjs +40 -30
- package/esm2022/form/lib/validation.class.mjs +1 -1
- package/esm2022/image/lib/image.component.mjs +1 -1
- package/esm2022/image/lib/image.module.mjs +2 -2
- package/esm2022/label/lib/label.component.mjs +4 -8
- package/esm2022/label/lib/label.module.mjs +2 -2
- package/esm2022/list/lib/list.component.mjs +67 -44
- package/esm2022/list/lib/list.module.mjs +3 -3
- package/esm2022/loading/index.mjs +2 -2
- package/esm2022/loading/lib/loading-spinner.component.mjs +13 -7
- package/esm2022/loading/lib/loading.component.mjs +8 -16
- package/esm2022/loading/lib/loading.config.mjs +2 -2
- package/esm2022/loading/lib/loading.directive.mjs +2 -2
- package/esm2022/menu/lib/menu-item/menu-item.component.mjs +1 -2
- package/esm2022/menu/lib/menu.component.mjs +2 -2
- package/esm2022/menu/lib/menu2.component.mjs +2 -2
- package/esm2022/mixin/lib/base-components.class.mjs +2 -3
- package/esm2022/mixin/lib/base-menu-mixin.class.mjs +1 -1
- package/esm2022/mixin/lib/button-mixin.class.mjs +1 -1
- package/esm2022/mixin/lib/clickable-mixin.class.mjs +8 -8
- package/esm2022/mixin/lib/color-look-mixing.class.mjs +3 -3
- package/esm2022/mixin/lib/constratctor.mjs +1 -1
- package/esm2022/mixin/lib/datalist-component.class.mjs +3 -5
- package/esm2022/mixin/lib/datalist.class.mjs +5 -6
- package/esm2022/mixin/lib/dropdown-mixin.class.mjs +2 -4
- package/esm2022/mixin/lib/interactive-mixin.class.mjs +29 -28
- package/esm2022/mixin/lib/mixin.class.mjs +13 -13
- package/esm2022/mixin/lib/page-component.class.mjs +3 -3
- package/esm2022/mixin/lib/selection-component.class.mjs +1 -1
- package/esm2022/mixin/lib/textbox-mixin.class.mjs +29 -20
- package/esm2022/mixin/lib/value-mixin.class.mjs +1 -1
- package/esm2022/notification/index.mjs +2 -2
- package/esm2022/notification/lib/notification.class.mjs +1 -1
- package/esm2022/notification/lib/notification.config.mjs +1 -1
- package/esm2022/notification/lib/notification.module.mjs +21 -9
- package/esm2022/notification/lib/notification.service.mjs +11 -11
- package/esm2022/number-box/lib/number-box.component.mjs +6 -6
- package/esm2022/number-box/lib/number-box.module.mjs +6 -16
- package/esm2022/otp/lib/otp.component.mjs +5 -5
- package/esm2022/otp/lib/otp.module.mjs +2 -2
- package/esm2022/page/lib/base-page.class.mjs +6 -4
- package/esm2022/page/lib/page.component.mjs +3 -3
- package/esm2022/page/lib/page.module.mjs +1 -1
- package/esm2022/password-box/lib/password-box.component.mjs +6 -6
- package/esm2022/password-box/lib/password-box.module.mjs +7 -15
- package/esm2022/picker/lib/picker-column.directive.mjs +9 -16
- package/esm2022/picker/lib/picker.component.mjs +2 -2
- package/esm2022/picker/lib/picker.module.mjs +3 -3
- package/esm2022/popover/lib/popover.component.mjs +1 -1
- package/esm2022/popover/lib/popover.module.mjs +2 -2
- package/esm2022/popup/index.mjs +2 -2
- package/esm2022/popup/lib/popup.interface.mjs +1 -1
- package/esm2022/popup/lib/popup.module.mjs +2 -2
- package/esm2022/progress-bar/lib/progress-bar.component.mjs +5 -5
- package/esm2022/progress-bar/lib/progress-bar.module.mjs +2 -2
- package/esm2022/radio/lib/radio.component.mjs +8 -8
- package/esm2022/radio/lib/radio.module.mjs +2 -2
- package/esm2022/range-slider/lib/range-slider.component.mjs +9 -9
- package/esm2022/range-slider/lib/range-slider.module.mjs +4 -4
- package/esm2022/result/lib/result.component.mjs +4 -4
- package/esm2022/result/lib/result.module.mjs +2 -2
- package/esm2022/routing-progress/acorex-components-routing-progress.mjs +5 -0
- package/esm2022/routing-progress/index.mjs +3 -0
- package/esm2022/routing-progress/lib/routing-progress.component.mjs +58 -0
- package/esm2022/routing-progress/lib/routing-progress.module.mjs +21 -0
- package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +4 -2
- package/esm2022/scheduler/lib/scheduler.component.mjs +1 -1
- package/esm2022/search-box/lib/search-box.component.mjs +43 -19
- package/esm2022/search-box/lib/search-box.module.mjs +8 -8
- package/esm2022/select-box/index.mjs +2 -2
- package/esm2022/select-box/lib/select-box.component.mjs +4 -4
- package/esm2022/select-box/lib/select-box.module.mjs +9 -9
- package/esm2022/select-box/lib/select-box2.component.mjs +110 -16
- package/esm2022/selection-list/lib/selection-list.component.mjs +10 -10
- package/esm2022/selection-list/lib/selection-list.module.mjs +6 -6
- package/esm2022/switch/lib/switch-content.component.mjs +1 -1
- package/esm2022/switch/lib/switch.component.mjs +11 -18
- package/esm2022/switch/lib/switch.module.mjs +4 -4
- package/esm2022/tabs/lib/tab-content.directive.mjs +1 -1
- package/esm2022/tabs/lib/tabs.component.mjs +2 -2
- package/esm2022/tabs/lib/tabs.module.mjs +5 -5
- package/esm2022/tag/lib/tag.component.mjs +4 -4
- package/esm2022/tag/lib/tag.module.mjs +2 -2
- package/esm2022/text-area/lib/text-area.component.mjs +14 -16
- package/esm2022/text-area/lib/text-area.module.mjs +2 -2
- package/esm2022/text-box/lib/text-box.component.mjs +6 -6
- package/esm2022/text-box/lib/text-box.module.mjs +4 -18
- package/esm2022/toast/index.mjs +2 -2
- package/esm2022/toast/lib/toast.class.mjs +1 -1
- package/esm2022/toast/lib/toast.component.mjs +4 -4
- package/esm2022/toast/lib/toast.config.mjs +3 -3
- package/esm2022/toast/lib/toast.module.mjs +6 -10
- package/esm2022/toast/lib/toast.service.mjs +16 -14
- package/esm2022/tooltip/lib/tooltip.component.mjs +2 -2
- package/esm2022/tooltip/lib/tooltip.directive.mjs +4 -4
- package/esm2022/tooltip/lib/tooltip.module.mjs +3 -3
- package/esm2022/uploader/index.mjs +3 -1
- package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +3 -3
- package/esm2022/uploader/lib/uploader-list.component.mjs +41 -7
- package/esm2022/uploader/lib/uploader-overlay.component.mjs +2 -2
- package/esm2022/uploader/lib/uploader-zone.directive.mjs +53 -0
- package/esm2022/uploader/lib/uploader.module.mjs +26 -7
- package/esm2022/uploader/lib/uploader.service.mjs +30 -0
- package/fesm2022/acorex-components-action-sheet.mjs +23 -15
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +15 -15
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +2 -2
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button-group.mjs +2 -2
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +2 -2
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +26 -38
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +9 -9
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +4 -4
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +23 -18
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +6 -6
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +53 -59
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +136 -181
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-context-menu.mjs +6 -16
- package/fesm2022/acorex-components-context-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +70 -19
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +1 -1
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +7 -7
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +133 -133
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +9 -9
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +8 -4
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +20 -4
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +1 -1
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +43 -19
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +76 -75
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs.map +1 -1
- package/fesm2022/acorex-components-label.mjs +2 -6
- package/fesm2022/acorex-components-label.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +66 -43
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +19 -21
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +4 -5
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-mixin.mjs +70 -66
- package/fesm2022/acorex-components-mixin.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +43 -31
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +7 -17
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs +4 -4
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-page.mjs +6 -4
- package/fesm2022/acorex-components-page.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +7 -15
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-picker.mjs +10 -17
- package/fesm2022/acorex-components-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +1 -1
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +3 -3
- package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +6 -6
- package/fesm2022/acorex-components-radio.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +7 -7
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +2 -2
- package/fesm2022/acorex-components-result.mjs.map +1 -1
- package/fesm2022/acorex-components-routing-progress.mjs +83 -0
- package/fesm2022/acorex-components-routing-progress.mjs.map +1 -0
- package/fesm2022/acorex-components-scheduler.mjs +3 -1
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +47 -24
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +197 -106
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +12 -12
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +9 -16
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +3 -3
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +2 -2
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +13 -15
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +8 -22
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +43 -45
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +2 -2
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +146 -18
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/form/index.d.ts +1 -1
- package/form/lib/form.component.d.ts +2 -2
- package/form/lib/validation-summary.component.d.ts +3 -3
- package/list/lib/list.component.d.ts +18 -7
- package/loading/index.d.ts +1 -1
- package/loading/lib/loading.component.d.ts +1 -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 +9 -9
- package/mixin/lib/color-look-mixing.class.d.ts +2 -2
- package/mixin/lib/datalist-component.class.d.ts +10 -10
- package/mixin/lib/datalist.class.d.ts +1 -1
- package/mixin/lib/dropdown-mixin.class.d.ts +3 -3
- package/mixin/lib/interactive-mixin.class.d.ts +25 -22
- package/mixin/lib/mixin.class.d.ts +62 -62
- package/mixin/lib/page-component.class.d.ts +4 -4
- package/mixin/lib/selection-component.class.d.ts +3 -3
- package/mixin/lib/sizable-mixin.class.d.ts +2 -2
- package/mixin/lib/textbox-mixin.class.d.ts +20 -20
- package/mixin/lib/value-mixin.class.d.ts +9 -9
- package/notification/index.d.ts +1 -1
- package/notification/lib/notification.class.d.ts +3 -3
- package/notification/lib/notification.config.d.ts +1 -1
- package/number-box/lib/number-box.component.d.ts +3 -3
- package/otp/lib/otp.component.d.ts +3 -3
- package/package.json +7 -1
- package/page/lib/base-page.class.d.ts +1 -1
- package/page/lib/page.component.d.ts +1 -1
- package/password-box/lib/password-box.component.d.ts +4 -4
- package/popup/index.d.ts +1 -1
- package/popup/lib/popup.interface.d.ts +2 -2
- package/routing-progress/README.md +3 -0
- package/routing-progress/index.d.ts +2 -0
- package/routing-progress/lib/routing-progress.component.d.ts +14 -0
- package/routing-progress/lib/routing-progress.module.d.ts +8 -0
- package/search-box/lib/search-box.component.d.ts +10 -4
- package/select-box/index.d.ts +1 -1
- package/select-box/lib/select-box2.component.d.ts +26 -7
- package/selection-list/lib/selection-list.component.d.ts +3 -3
- package/text-area/lib/text-area.component.d.ts +3 -3
- package/text-box/lib/text-box.component.d.ts +3 -3
- package/toast/index.d.ts +1 -1
- package/toast/lib/toast.class.d.ts +1 -1
- package/toast/lib/toast.component.d.ts +2 -1
- package/toast/lib/toast.config.d.ts +1 -1
- package/tooltip/lib/tooltip.directive.d.ts +1 -1
- package/uploader/index.d.ts +2 -0
- package/uploader/lib/uploader-list.component.d.ts +14 -1
- package/uploader/lib/uploader-zone.directive.d.ts +18 -0
- package/uploader/lib/uploader.module.d.ts +6 -4
- package/uploader/lib/uploader.service.d.ts +10 -0
- package/common/lib/components/appearance-component.class.d.ts +0 -12
- package/esm2022/common/lib/components/appearance-component.class.mjs +0 -25
@@ -1,10 +1,10 @@
|
|
1
1
|
import { flatten, clone } from 'lodash-es';
|
2
2
|
import * as i0 from '@angular/core';
|
3
3
|
import { Injectable, Directive, Host, Self, Optional, Input, Inject, NgModule, inject, ChangeDetectorRef, ElementRef, ViewContainerRef, EventEmitter, Output } from '@angular/core';
|
4
|
+
import { BehaviorSubject, fromEvent, noop, skip, distinctUntilChanged, debounceTime } from 'rxjs';
|
4
5
|
import { DOCUMENT } from '@angular/common';
|
5
6
|
import * as i1 from '@angular/platform-browser';
|
6
7
|
import { Observable } from 'rxjs/internal/Observable';
|
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
10
|
import { AXHtmlUtil } from '@acorex/core/utils';
|
@@ -18,7 +18,7 @@ function convertToPlacement(value) {
|
|
18
18
|
if (value == null)
|
19
19
|
return result;
|
20
20
|
if (Array.isArray(value)) {
|
21
|
-
const list = flatten(value.map(m => convertToPlacement(m)).filter(m => m != null)).map(m =>
|
21
|
+
const list = flatten(value.map((m) => convertToPlacement(m)).filter((m) => m != null)).map((m) => clone(m));
|
22
22
|
result.push(...list);
|
23
23
|
}
|
24
24
|
else {
|
@@ -41,99 +41,99 @@ const AX_PLACEMENT_TOP = {
|
|
41
41
|
originY: 'top',
|
42
42
|
overlayX: 'center',
|
43
43
|
overlayY: 'bottom',
|
44
|
-
offsetY: -defaultOffset
|
44
|
+
offsetY: -defaultOffset,
|
45
45
|
};
|
46
46
|
const AX_PLACEMENT_TOP_START = {
|
47
47
|
originX: 'start',
|
48
48
|
originY: 'top',
|
49
49
|
overlayX: 'start',
|
50
50
|
overlayY: 'bottom',
|
51
|
-
offsetY: -defaultOffset
|
51
|
+
offsetY: -defaultOffset,
|
52
52
|
};
|
53
53
|
const AX_PLACEMENT_TOP_END = {
|
54
54
|
originX: 'end',
|
55
55
|
originY: 'top',
|
56
56
|
overlayX: 'start',
|
57
57
|
overlayY: 'bottom',
|
58
|
-
offsetY: -defaultOffset
|
58
|
+
offsetY: -defaultOffset,
|
59
59
|
};
|
60
60
|
const AX_PLACEMENT_BOTTOM = {
|
61
61
|
originX: 'center',
|
62
62
|
originY: 'bottom',
|
63
63
|
overlayX: 'center',
|
64
64
|
overlayY: 'top',
|
65
|
-
offsetY: defaultOffset
|
65
|
+
offsetY: defaultOffset,
|
66
66
|
};
|
67
67
|
const AX_PLACEMENT_BOTTOM_START = {
|
68
68
|
originX: 'start',
|
69
69
|
originY: 'bottom',
|
70
70
|
overlayX: 'start',
|
71
71
|
overlayY: 'top',
|
72
|
-
offsetY: defaultOffset
|
72
|
+
offsetY: defaultOffset,
|
73
73
|
};
|
74
74
|
const AX_PLACEMENT_BOTTOM_END = {
|
75
75
|
originX: 'end',
|
76
76
|
originY: 'bottom',
|
77
77
|
overlayX: 'end',
|
78
78
|
overlayY: 'top',
|
79
|
-
offsetY: defaultOffset
|
79
|
+
offsetY: defaultOffset,
|
80
80
|
};
|
81
81
|
const AX_PLACEMENT_START = {
|
82
82
|
originX: 'start',
|
83
83
|
originY: 'center',
|
84
84
|
overlayX: 'end',
|
85
85
|
overlayY: 'center',
|
86
|
-
offsetX: -defaultOffset
|
86
|
+
offsetX: -defaultOffset,
|
87
87
|
};
|
88
88
|
const AX_PLACEMENT_START_TOP = {
|
89
89
|
originX: 'start',
|
90
90
|
originY: 'top',
|
91
91
|
overlayX: 'end',
|
92
92
|
overlayY: 'top',
|
93
|
-
offsetX: -defaultOffset
|
93
|
+
offsetX: -defaultOffset,
|
94
94
|
};
|
95
95
|
const AX_PLACEMENT_START_BOTTOM = {
|
96
96
|
originX: 'start',
|
97
97
|
originY: 'bottom',
|
98
98
|
overlayX: 'end',
|
99
99
|
overlayY: 'bottom',
|
100
|
-
offsetX: -defaultOffset
|
100
|
+
offsetX: -defaultOffset,
|
101
101
|
};
|
102
102
|
const AX_PLACEMENT_END = {
|
103
103
|
originX: 'end',
|
104
104
|
originY: 'center',
|
105
105
|
overlayX: 'start',
|
106
106
|
overlayY: 'center',
|
107
|
-
offsetX: defaultOffset
|
107
|
+
offsetX: defaultOffset,
|
108
108
|
};
|
109
109
|
const AX_PLACEMENT_END_TOP = {
|
110
110
|
originX: 'end',
|
111
111
|
originY: 'top',
|
112
112
|
overlayX: 'start',
|
113
113
|
overlayY: 'top',
|
114
|
-
offsetX: defaultOffset
|
114
|
+
offsetX: defaultOffset,
|
115
115
|
};
|
116
116
|
const AX_PLACEMENT_END_BOTTOM = {
|
117
117
|
originX: 'end',
|
118
118
|
originY: 'bottom',
|
119
119
|
overlayX: 'start',
|
120
120
|
overlayY: 'bottom',
|
121
|
-
offsetX: defaultOffset
|
121
|
+
offsetX: defaultOffset,
|
122
122
|
};
|
123
123
|
const AX_PLACEMENT_MAP = {
|
124
|
-
|
124
|
+
top: {
|
125
125
|
origin: AX_PLACEMENT_TOP,
|
126
|
-
alts: [AX_PLACEMENT_BOTTOM]
|
126
|
+
alts: [AX_PLACEMENT_BOTTOM],
|
127
127
|
},
|
128
128
|
'top-start': {
|
129
129
|
origin: AX_PLACEMENT_TOP_START,
|
130
|
-
alts: [AX_PLACEMENT_BOTTOM_START]
|
130
|
+
alts: [AX_PLACEMENT_BOTTOM_START],
|
131
131
|
},
|
132
132
|
'top-end': {
|
133
133
|
origin: AX_PLACEMENT_TOP_END,
|
134
|
-
alts: [AX_PLACEMENT_BOTTOM_END]
|
134
|
+
alts: [AX_PLACEMENT_BOTTOM_END],
|
135
135
|
},
|
136
|
-
|
136
|
+
bottom: {
|
137
137
|
origin: AX_PLACEMENT_BOTTOM,
|
138
138
|
alts: [AX_PLACEMENT_BOTTOM],
|
139
139
|
},
|
@@ -145,7 +145,7 @@ const AX_PLACEMENT_MAP = {
|
|
145
145
|
origin: AX_PLACEMENT_BOTTOM_END,
|
146
146
|
alts: [AX_PLACEMENT_TOP_END],
|
147
147
|
},
|
148
|
-
|
148
|
+
end: {
|
149
149
|
origin: AX_PLACEMENT_END,
|
150
150
|
alts: [AX_PLACEMENT_START],
|
151
151
|
},
|
@@ -157,7 +157,7 @@ const AX_PLACEMENT_MAP = {
|
|
157
157
|
origin: AX_PLACEMENT_END_BOTTOM,
|
158
158
|
alts: [AX_PLACEMENT_END_TOP, AX_PLACEMENT_START_BOTTOM, AX_PLACEMENT_START_TOP],
|
159
159
|
},
|
160
|
-
|
160
|
+
start: {
|
161
161
|
origin: AX_PLACEMENT_START,
|
162
162
|
alts: [AX_PLACEMENT_END],
|
163
163
|
},
|
@@ -168,7 +168,7 @@ const AX_PLACEMENT_MAP = {
|
|
168
168
|
'start-bottom': {
|
169
169
|
origin: AX_PLACEMENT_START_BOTTOM,
|
170
170
|
alts: [AX_PLACEMENT_START_TOP, AX_PLACEMENT_END_BOTTOM, AX_PLACEMENT_END_TOP],
|
171
|
-
}
|
171
|
+
},
|
172
172
|
};
|
173
173
|
|
174
174
|
/**
|
@@ -327,68 +327,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImpor
|
|
327
327
|
type: Injectable
|
328
328
|
}] });
|
329
329
|
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
// if (existsItem) Object.assign(obj, existsItem);
|
370
|
-
// else {
|
371
|
-
// obj.id = item;
|
372
|
-
// obj.text = item?.toString();
|
373
|
-
// }
|
374
|
-
// }
|
375
|
-
// return obj as AXDateSourceRecord;
|
376
|
-
// }
|
377
|
-
// private normalizeItemsList(items: unknown[]): AXDateSourceRecord[] {
|
378
|
-
// if (items == null) return [];
|
379
|
-
// return items.filter((c) => c != null).map((i) => this.normalizeItem(i));
|
380
|
-
// }
|
381
|
-
// }
|
330
|
+
class AXDateSource {
|
331
|
+
get items() {
|
332
|
+
return this._items;
|
333
|
+
}
|
334
|
+
constructor(config) {
|
335
|
+
this.config = config;
|
336
|
+
this._totalCount = 0;
|
337
|
+
this._items = new Array(this.config.pageSize);
|
338
|
+
this.fetchedPages = new Set();
|
339
|
+
this._query = { skip: 0, take: this.config.pageSize };
|
340
|
+
this.loadingChanged = new BehaviorSubject(false);
|
341
|
+
this.dataStream = new BehaviorSubject(this._items);
|
342
|
+
}
|
343
|
+
async fetchPage(page) {
|
344
|
+
if (this.fetchedPages.has(page)) {
|
345
|
+
return;
|
346
|
+
}
|
347
|
+
this.loadingChanged.next(true);
|
348
|
+
this.fetchedPages.add(page);
|
349
|
+
this._query.skip = page * this.config.pageSize;
|
350
|
+
const result = await this.config.load(this._query);
|
351
|
+
if (this._totalCount != result.total) {
|
352
|
+
this._items = new Array(result.total);
|
353
|
+
this._totalCount = result.total;
|
354
|
+
}
|
355
|
+
this._items.splice(page * this.config.pageSize, this.config.pageSize, ...result.items);
|
356
|
+
this.dataStream.next(this.items);
|
357
|
+
this.loadingChanged.next(false);
|
358
|
+
}
|
359
|
+
}
|
360
|
+
function convertArrayToDataSource(key, items) {
|
361
|
+
const config = {
|
362
|
+
key,
|
363
|
+
pageSize: items.length,
|
364
|
+
load: (e) => Promise.resolve({ items, total: items.length }),
|
365
|
+
byKey: (v) => Promise.resolve(items.find((c) => c[key] == v)),
|
366
|
+
};
|
367
|
+
return new AXDateSource(config);
|
368
|
+
}
|
382
369
|
|
383
|
-
const AX_STYLE_COLOR_TYPES = [
|
384
|
-
'primary',
|
385
|
-
'secondary',
|
386
|
-
'success',
|
387
|
-
'warning',
|
388
|
-
'danger',
|
389
|
-
'info',
|
390
|
-
'default',
|
391
|
-
];
|
370
|
+
const AX_STYLE_COLOR_TYPES = ['primary', 'secondary', 'success', 'warning', 'danger', 'info', 'ghost'];
|
392
371
|
const AX_LOCATIONS = [
|
393
372
|
'bottom-start',
|
394
373
|
'bottom-center',
|
@@ -416,16 +395,8 @@ class AXAutoFocusDirective {
|
|
416
395
|
}, this.time);
|
417
396
|
return;
|
418
397
|
}
|
419
|
-
const list = [
|
420
|
-
|
421
|
-
'input',
|
422
|
-
'[href]',
|
423
|
-
'select',
|
424
|
-
'textarea',
|
425
|
-
'[tabindex]',
|
426
|
-
].map((c) => c + ':not([tabindex="-1"])');
|
427
|
-
const focusable = this.el.nativeElement.querySelector(list.join(', ')) ??
|
428
|
-
this.el.nativeElement;
|
398
|
+
const list = ['button', 'input', '[href]', 'select', 'textarea', '[tabindex]'].map((c) => c + ':not([tabindex="-1"])');
|
399
|
+
const focusable = this.el.nativeElement.querySelector(list.join(', ')) ?? this.el.nativeElement;
|
429
400
|
const attr = document.createAttribute('autofocus');
|
430
401
|
focusable.setAttributeNode(attr);
|
431
402
|
const hasTabindex = focusable.hasAttribute('tabindex');
|
@@ -470,7 +441,7 @@ class AXHotkeysService {
|
|
470
441
|
addShortcut(options) {
|
471
442
|
const merged = { ...this.defaults, ...options };
|
472
443
|
const event = `keydown.${merged.keys}`;
|
473
|
-
return new Observable(observer => {
|
444
|
+
return new Observable((observer) => {
|
474
445
|
const handler = (e) => {
|
475
446
|
e.preventDefault();
|
476
447
|
observer.next(e);
|
@@ -489,11 +460,10 @@ class AXHotkeysService {
|
|
489
460
|
});
|
490
461
|
}
|
491
462
|
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 }); }
|
492
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXHotkeysService
|
463
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXHotkeysService }); }
|
493
464
|
}
|
494
465
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXHotkeysService, decorators: [{
|
495
|
-
type: Injectable
|
496
|
-
args: [{ providedIn: 'root' }]
|
466
|
+
type: Injectable
|
497
467
|
}], ctorParameters: function () { return [{ type: i1.EventManager }, { type: Document, decorators: [{
|
498
468
|
type: Inject,
|
499
469
|
args: [DOCUMENT]
|
@@ -504,20 +474,20 @@ class AXHotkeyDirective {
|
|
504
474
|
this.el = el;
|
505
475
|
this._host = _host;
|
506
476
|
this.hs = hs;
|
507
|
-
this.
|
477
|
+
this.axHotkey = '';
|
508
478
|
this._subs = [];
|
509
479
|
}
|
510
480
|
ngAfterViewInit() {
|
511
|
-
if (!this.
|
481
|
+
if (!this.axHotkey || !this._host)
|
512
482
|
return;
|
513
|
-
if (typeof this.
|
514
|
-
this._addDefaultAction(this.
|
483
|
+
if (typeof this.axHotkey == 'string') {
|
484
|
+
this._addDefaultAction(this.axHotkey);
|
515
485
|
}
|
516
|
-
else if (typeof this.
|
517
|
-
this._addHotKeyAction([this.
|
486
|
+
else if (typeof this.axHotkey == 'object' && !Array.isArray(this.axHotkey)) {
|
487
|
+
this._addHotKeyAction([this.axHotkey]);
|
518
488
|
}
|
519
|
-
else if (Array.isArray(this.
|
520
|
-
this._addHotKeyAction(this.
|
489
|
+
else if (Array.isArray(this.axHotkey)) {
|
490
|
+
this._addHotKeyAction(this.axHotkey);
|
521
491
|
}
|
522
492
|
}
|
523
493
|
_addDefaultAction(hotkey) {
|
@@ -556,12 +526,12 @@ class AXHotkeyDirective {
|
|
556
526
|
});
|
557
527
|
}
|
558
528
|
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 }); }
|
559
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.9", type: AXHotkeyDirective, selector: "[
|
529
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.9", type: AXHotkeyDirective, selector: "[axHotkey]", inputs: { axHotkey: "axHotkey" }, ngImport: i0 }); }
|
560
530
|
}
|
561
531
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXHotkeyDirective, decorators: [{
|
562
532
|
type: Directive,
|
563
533
|
args: [{
|
564
|
-
selector: '[
|
534
|
+
selector: '[axHotkey]',
|
565
535
|
}]
|
566
536
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AXComponent, decorators: [{
|
567
537
|
type: Host
|
@@ -569,16 +539,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImpor
|
|
569
539
|
type: Self
|
570
540
|
}, {
|
571
541
|
type: Optional
|
572
|
-
}] }, { type: AXHotkeysService }]; }, propDecorators: {
|
573
|
-
type: Input
|
574
|
-
args: ['hotkey']
|
542
|
+
}] }, { type: AXHotkeysService }]; }, propDecorators: { axHotkey: [{
|
543
|
+
type: Input
|
575
544
|
}] } });
|
576
545
|
|
577
|
-
;
|
578
546
|
const AX_DEFAULT_SCROLL_POSITION = {
|
579
547
|
scrollHeight: 0,
|
580
548
|
scrollTop: 0,
|
581
|
-
clientHeight: 0
|
549
|
+
clientHeight: 0,
|
582
550
|
};
|
583
551
|
class AXInfiniteScrollerDirective {
|
584
552
|
constructor(elm) {
|
@@ -588,7 +556,7 @@ class AXInfiniteScrollerDirective {
|
|
588
556
|
return positions[0].sT < positions[1].sT;
|
589
557
|
};
|
590
558
|
this.isScrollExpectedPercent = (position) => {
|
591
|
-
return (
|
559
|
+
return (position.sT + position.cH) / position.sH > this.scrollPercent / 100;
|
592
560
|
};
|
593
561
|
}
|
594
562
|
ngAfterViewInit() {
|
@@ -600,12 +568,11 @@ class AXInfiniteScrollerDirective {
|
|
600
568
|
this.scrollEvent$ = fromEvent(this.elm.nativeElement, 'scroll');
|
601
569
|
}
|
602
570
|
streamScrollEvents() {
|
603
|
-
this.userScrolledDown$ = this.scrollEvent
|
604
|
-
.pipe(map((e) => ({
|
571
|
+
this.userScrolledDown$ = this.scrollEvent$.pipe(map((e) => ({
|
605
572
|
scrollHeight: e.target.scrollHeight,
|
606
573
|
scrollTop: e.target.scrollTop,
|
607
|
-
clientHeight: e.target.clientHeight
|
608
|
-
})), pairwise(), filter(positions => this.isUserScrollingDown(positions) && this.isScrollExpectedPercent(positions[1])));
|
574
|
+
clientHeight: e.target.clientHeight,
|
575
|
+
})), pairwise(), filter((positions) => this.isUserScrollingDown(positions) && this.isScrollExpectedPercent(positions[1])));
|
609
576
|
}
|
610
577
|
requestCallbackOnScroll() {
|
611
578
|
this.requestOnScroll$ = this.userScrolledDown$;
|
@@ -623,7 +590,7 @@ class AXInfiniteScrollerDirective {
|
|
623
590
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
|
624
591
|
type: Directive,
|
625
592
|
args: [{
|
626
|
-
selector: '[axInfiniteScroller]'
|
593
|
+
selector: '[axInfiniteScroller]',
|
627
594
|
}]
|
628
595
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { scrollCallback: [{
|
629
596
|
type: Input
|
@@ -636,20 +603,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImpor
|
|
636
603
|
class AXResponsiveDirective {
|
637
604
|
constructor(_elementRef) {
|
638
605
|
this._elementRef = _elementRef;
|
639
|
-
this._observer = new ResizeObserver(entries => {
|
640
|
-
for (
|
606
|
+
this._observer = new ResizeObserver((entries) => {
|
607
|
+
for (const entry of entries) {
|
641
608
|
if (entry.target) {
|
642
609
|
const e = entry.target;
|
643
610
|
const elements = [e, ...Array.from(e.querySelectorAll(`[class*='sm:']`))];
|
644
611
|
elements
|
645
|
-
.map(c => ({
|
612
|
+
.map((c) => ({
|
646
613
|
element: c,
|
647
614
|
classList: Array.from(c.classList)
|
648
|
-
.filter(c => c.includes('sm'))
|
649
|
-
.map(c => c.slice(3)),
|
615
|
+
.filter((c) => c.includes('sm'))
|
616
|
+
.map((c) => c.slice(3)),
|
650
617
|
}))
|
651
|
-
.forEach(c => {
|
652
|
-
e.clientWidth < 320
|
618
|
+
.forEach((c) => {
|
619
|
+
e.clientWidth < 320
|
620
|
+
? c.element.classList.add(...c.classList)
|
621
|
+
: c.element.classList.remove(...c.classList);
|
653
622
|
});
|
654
623
|
}
|
655
624
|
}
|
@@ -661,11 +630,11 @@ class AXResponsiveDirective {
|
|
661
630
|
this._observer?.unobserve(this._elementRef.nativeElement);
|
662
631
|
}
|
663
632
|
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 }); }
|
664
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.9", type: AXResponsiveDirective, selector: "[
|
633
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.9", type: AXResponsiveDirective, selector: "[axResponsive]", ngImport: i0 }); }
|
665
634
|
}
|
666
635
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXResponsiveDirective, decorators: [{
|
667
636
|
type: Directive,
|
668
|
-
args: [{ selector: '[
|
637
|
+
args: [{ selector: '[axResponsive]' }]
|
669
638
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
670
639
|
|
671
640
|
class AXRippleDirective {
|
@@ -715,7 +684,7 @@ class AXCommonModule {
|
|
715
684
|
AXAutoFocusDirective,
|
716
685
|
AXHotkeyDirective,
|
717
686
|
AXRippleDirective] }); }
|
718
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXCommonModule }); }
|
687
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXCommonModule, providers: [AXHotkeysService] }); }
|
719
688
|
}
|
720
689
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXCommonModule, decorators: [{
|
721
690
|
type: NgModule,
|
@@ -735,6 +704,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImpor
|
|
735
704
|
AXHotkeyDirective,
|
736
705
|
AXRippleDirective,
|
737
706
|
],
|
707
|
+
providers: [AXHotkeysService],
|
738
708
|
}]
|
739
709
|
}] });
|
740
710
|
|
@@ -826,34 +796,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImpor
|
|
826
796
|
type: Injectable
|
827
797
|
}] });
|
828
798
|
|
829
|
-
class MXAppearanceComponent extends MXBaseComponent {
|
830
|
-
constructor() {
|
831
|
-
super(...arguments);
|
832
|
-
this.appearanceChange = new EventEmitter();
|
833
|
-
this._appearance = 'solid';
|
834
|
-
}
|
835
|
-
/**
|
836
|
-
* Predefined color schemes
|
837
|
-
*/
|
838
|
-
get appearance() {
|
839
|
-
return this._appearance;
|
840
|
-
}
|
841
|
-
set appearance(value) {
|
842
|
-
this.setOption({
|
843
|
-
name: 'appearance',
|
844
|
-
value,
|
845
|
-
afterCallback: () => {
|
846
|
-
this.cdr.markForCheck();
|
847
|
-
},
|
848
|
-
});
|
849
|
-
}
|
850
|
-
}
|
851
|
-
|
852
799
|
class MXColorComponent extends MXBaseComponent {
|
853
800
|
constructor() {
|
854
801
|
super(...arguments);
|
855
802
|
this.colorChange = new EventEmitter();
|
856
|
-
this._color = '
|
803
|
+
this._color = 'ghost';
|
857
804
|
}
|
858
805
|
/**
|
859
806
|
* Predefined color schemes
|
@@ -876,7 +823,7 @@ class MXLookComponent extends MXBaseComponent {
|
|
876
823
|
constructor() {
|
877
824
|
super(...arguments);
|
878
825
|
this.lookChange = new EventEmitter();
|
879
|
-
this._look = '
|
826
|
+
this._look = 'solid';
|
880
827
|
}
|
881
828
|
/**
|
882
829
|
* Predefined look schemes
|
@@ -1055,7 +1002,7 @@ class MXButtonBaseComponent extends classes(MXInteractiveComponent, MXColorLookC
|
|
1055
1002
|
'ax-state-disabled': this.disabled,
|
1056
1003
|
'ax-state-selected': this.selected,
|
1057
1004
|
};
|
1058
|
-
cssClasses[`ax-${this['color'] || '
|
1005
|
+
cssClasses[`ax-${this['color'] || 'solid'}${this['look'] ? '-' + this['look'] : '-solid'}`] = true;
|
1059
1006
|
return cssClasses;
|
1060
1007
|
}
|
1061
1008
|
}
|
@@ -1173,7 +1120,7 @@ class MXValueComponent extends MXInteractiveComponent {
|
|
1173
1120
|
const container = this.getHostElement().classList.contains('ax-editor-container')
|
1174
1121
|
? this.getHostElement()
|
1175
1122
|
: this.getHostElement().querySelector('.ax-editor-container');
|
1176
|
-
const formField = container?.closest('
|
1123
|
+
const formField = container?.closest('ax-form-field');
|
1177
1124
|
const label = formField?.querySelector('ax-label')?.__axContext__;
|
1178
1125
|
if (label)
|
1179
1126
|
label.required = true;
|
@@ -1290,37 +1237,37 @@ class MXInputBaseValueComponent extends MXValueComponent {
|
|
1290
1237
|
constructor() {
|
1291
1238
|
super(...arguments);
|
1292
1239
|
/**
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1240
|
+
* Fires each time the user press a key.
|
1241
|
+
* @event
|
1242
|
+
*/
|
1296
1243
|
this.onKeyDown = new EventEmitter();
|
1297
1244
|
/**
|
1298
|
-
|
1299
|
-
|
1300
|
-
|
1245
|
+
* Fires each time the user press a key.
|
1246
|
+
* @event
|
1247
|
+
*/
|
1301
1248
|
this.onKeyUp = new EventEmitter();
|
1302
1249
|
/**
|
1303
|
-
|
1304
|
-
|
1305
|
-
|
1250
|
+
* Fires each time the user press a key.
|
1251
|
+
* @event
|
1252
|
+
*/
|
1306
1253
|
this.onKeyPress = new EventEmitter();
|
1307
1254
|
}
|
1308
1255
|
emitOnKeydownEvent(e) {
|
1309
1256
|
this.onKeyDown.emit({
|
1310
1257
|
component: this,
|
1311
|
-
nativeEvent: e
|
1258
|
+
nativeEvent: e,
|
1312
1259
|
});
|
1313
1260
|
}
|
1314
1261
|
emitOnKeyupEvent(e) {
|
1315
1262
|
this.onKeyUp.emit({
|
1316
1263
|
component: this,
|
1317
|
-
nativeEvent: e
|
1264
|
+
nativeEvent: e,
|
1318
1265
|
});
|
1319
1266
|
}
|
1320
1267
|
emitOnKeypressEvent(e) {
|
1321
1268
|
this.onKeyPress.emit({
|
1322
1269
|
component: this,
|
1323
|
-
nativeEvent: e
|
1270
|
+
nativeEvent: e,
|
1324
1271
|
});
|
1325
1272
|
}
|
1326
1273
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXInputBaseValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
@@ -1389,7 +1336,6 @@ class MXSelectionValueComponent extends MXValueComponent {
|
|
1389
1336
|
return this._selectedItems || [];
|
1390
1337
|
}
|
1391
1338
|
internalSetValue(value) {
|
1392
|
-
debugger;
|
1393
1339
|
const normalizedItems = Array.isArray(value)
|
1394
1340
|
? this.normalizeItemsList(value)
|
1395
1341
|
: this.normalizeItemsList([value]);
|
@@ -1418,11 +1364,14 @@ class MXSelectionValueComponent extends MXValueComponent {
|
|
1418
1364
|
obj[this.textField] = item.toString();
|
1419
1365
|
}
|
1420
1366
|
}
|
1367
|
+
if (!obj[this.textField]) {
|
1368
|
+
obj[this.textField] = obj[this.valueField];
|
1369
|
+
}
|
1421
1370
|
return obj;
|
1422
1371
|
}
|
1423
1372
|
_normalizeSelectedItems() {
|
1424
|
-
const values = Array.isArray(this.value) ? this.value :
|
1425
|
-
this._selectedItems = values.map(v => this.normalizeItem(v));
|
1373
|
+
const values = Array.isArray(this.value) ? this.value : this.value ? [this.value] : [];
|
1374
|
+
this._selectedItems = values.map((v) => this.normalizeItem(v));
|
1426
1375
|
}
|
1427
1376
|
unselectItems(...items) {
|
1428
1377
|
if (!items || items.length === 0) {
|
@@ -1472,6 +1421,10 @@ class MXSelectionValueComponent extends MXValueComponent {
|
|
1472
1421
|
const normalizeItem = this.normalizeItem(item);
|
1473
1422
|
return normalizeItem[this.textField];
|
1474
1423
|
}
|
1424
|
+
getValue(item) {
|
1425
|
+
const normalizeItem = this.normalizeItem(item);
|
1426
|
+
return normalizeItem[this.valueField];
|
1427
|
+
}
|
1475
1428
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXSelectionValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
1476
1429
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: MXSelectionValueComponent }); }
|
1477
1430
|
}
|
@@ -1486,7 +1439,7 @@ class AXNgModelDelayedValueChangedDirective {
|
|
1486
1439
|
set delayTime(v) {
|
1487
1440
|
if (v != this._delayTime) {
|
1488
1441
|
this._delayTime = v;
|
1489
|
-
this.
|
1442
|
+
this.axDelayTimeChange.emit(v);
|
1490
1443
|
this.update();
|
1491
1444
|
}
|
1492
1445
|
}
|
@@ -1495,29 +1448,31 @@ class AXNgModelDelayedValueChangedDirective {
|
|
1495
1448
|
}
|
1496
1449
|
constructor(ngModel) {
|
1497
1450
|
this.ngModel = ngModel;
|
1498
|
-
this.
|
1499
|
-
this.
|
1451
|
+
this.axDelayedValueChanged = new EventEmitter();
|
1452
|
+
this.axDelayTimeChange = new EventEmitter();
|
1500
1453
|
this._delayTime = 0;
|
1501
1454
|
this.delayTime = 0;
|
1502
1455
|
}
|
1503
1456
|
update() {
|
1504
1457
|
this.subscription?.unsubscribe();
|
1505
1458
|
//
|
1506
|
-
this.subscription = this.ngModel.control.valueChanges
|
1507
|
-
|
1459
|
+
this.subscription = this.ngModel.control.valueChanges
|
1460
|
+
.pipe(skip(1), // skip initial value
|
1461
|
+
distinctUntilChanged(), debounceTime(this.delayTime))
|
1462
|
+
.subscribe((value) => this.axDelayedValueChanged.emit(value));
|
1508
1463
|
}
|
1509
1464
|
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 }); }
|
1510
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.9", type: AXNgModelDelayedValueChangedDirective, isStandalone: true, selector: "[
|
1465
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.9", type: AXNgModelDelayedValueChangedDirective, isStandalone: true, selector: "[axDelayedValueChanged]", inputs: { delayTime: "delayTime" }, outputs: { axDelayedValueChanged: "axDelayedValueChanged", axDelayTimeChange: "axDelayTimeChange" }, ngImport: i0 }); }
|
1511
1466
|
}
|
1512
1467
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXNgModelDelayedValueChangedDirective, decorators: [{
|
1513
1468
|
type: Directive,
|
1514
1469
|
args: [{
|
1515
|
-
selector: '[
|
1516
|
-
standalone: true
|
1470
|
+
selector: '[axDelayedValueChanged]',
|
1471
|
+
standalone: true,
|
1517
1472
|
}]
|
1518
|
-
}], ctorParameters: function () { return [{ type: i1$1.NgModel }]; }, propDecorators: {
|
1473
|
+
}], ctorParameters: function () { return [{ type: i1$1.NgModel }]; }, propDecorators: { axDelayedValueChanged: [{
|
1519
1474
|
type: Output
|
1520
|
-
}],
|
1475
|
+
}], axDelayTimeChange: [{
|
1521
1476
|
type: Output
|
1522
1477
|
}], delayTime: [{
|
1523
1478
|
type: Input
|
@@ -1527,5 +1482,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImpor
|
|
1527
1482
|
* Generated bundle index. Do not edit.
|
1528
1483
|
*/
|
1529
1484
|
|
1530
|
-
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, AXRippleDirective, 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,
|
1485
|
+
export { AXAutoFocusDirective, AXButtonClickEvent, AXClearableComponent, AXClickEvent, AXClosbaleComponent, AXCommonModule, AXComponent, AXComponentCloseEvent, AXComponentClosedPromise, AXComponentClosing, AXComponentResult, AXDateSource, AXDomService, AXEvent, AXFocusEvent, AXFocusableComponent, AXHotkeyDirective, AXHotkeysService, AXHtmlEvent, AXInfiniteScrollerDirective, AXItemClickEvent, AXNgModelDelayedValueChangedDirective, AXOptionChangedEvent, AXPagedComponent, AXRangeChangedEvent, AXResponsiveDirective, AXRippleDirective, 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, MXBaseComponent, MXButtonBaseComponent, MXColorComponent, MXColorLookComponent, MXInputBaseValueComponent, MXInteractiveComponent, MXLookComponent, MXSelectionValueComponent, MXValueComponent, TAB_META_KEY, convertArrayToDataSource, convertToPlacement };
|
1531
1486
|
//# sourceMappingURL=acorex-components-common.mjs.map
|