@acorex/components 7.3.2 → 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 +5 -3
- 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 +10 -7
- 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 +6 -4
- 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 +3 -3
- package/esm2022/loading/lib/loading.directive.mjs +3 -3
- package/esm2022/loading/lib/loading.module.mjs +4 -4
- package/esm2022/loading/lib/loading.service.mjs +3 -3
- package/esm2022/menu/lib/menu.component.mjs +3 -3
- package/esm2022/menu/lib/menu.module.mjs +4 -4
- 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 +3 -3
- package/esm2022/page/lib/page.component.mjs +3 -3
- 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 +241 -176
- package/esm2022/popover/lib/popover.module.mjs +4 -4
- package/esm2022/popup/lib/popup.component.mjs +37 -12
- package/esm2022/popup/lib/popup.module.mjs +4 -4
- package/esm2022/popup/lib/popup.service.mjs +9 -6
- package/esm2022/progress-bar/lib/progress-bar.component.mjs +4 -4
- 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.module.mjs +4 -4
- 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 +134 -113
- 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 +236 -149
- 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 +16 -16
- package/fesm2022/acorex-components-menu.mjs +7 -7
- package/fesm2022/acorex-components-mixin.mjs +6 -7
- 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 +10 -10
- 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 +246 -251
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +48 -20
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +8 -8
- 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 +10 -10
- 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/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 +42 -24
- 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 +43 -27
- package/popup/lib/popup.component.d.ts +6 -6
- 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/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/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/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/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,329 +0,0 @@
|
|
1
|
-
import { AXStringUtil } from '@acorex/core/utils';
|
2
|
-
import { AXDateTime } from '@acorex/core/dateTime';
|
3
|
-
import * as i0 from '@angular/core';
|
4
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, Input, Output, NgModule } from '@angular/core';
|
5
|
-
import { createMask, MaskedRange } from 'imask';
|
6
|
-
import * as i2 from 'angular-imask';
|
7
|
-
import { IMaskDirective, IMaskModule } from 'angular-imask';
|
8
|
-
import { AXBaseTextBoxMixin } from '@acorex/components/mixin';
|
9
|
-
import * as i1 from '@angular/forms';
|
10
|
-
import { FormsModule } from '@angular/forms';
|
11
|
-
import { CommonModule } from '@angular/common';
|
12
|
-
import { AXButtonModule } from '@acorex/components/button';
|
13
|
-
|
14
|
-
/**
|
15
|
-
* The Button is a component which detects user interaction and triggers a corresponding event
|
16
|
-
*
|
17
|
-
* @category Components
|
18
|
-
*/
|
19
|
-
class AXTimeBoxComponent extends AXBaseTextBoxMixin {
|
20
|
-
get minValue() {
|
21
|
-
return this._minValue;
|
22
|
-
}
|
23
|
-
set minValue(v) {
|
24
|
-
this._minValue = v;
|
25
|
-
}
|
26
|
-
get maxValue() {
|
27
|
-
return this._maxValue;
|
28
|
-
}
|
29
|
-
set maxValue(v) {
|
30
|
-
this._maxValue = v;
|
31
|
-
}
|
32
|
-
get format() {
|
33
|
-
return this._format;
|
34
|
-
}
|
35
|
-
set format(v) {
|
36
|
-
this._setOption({
|
37
|
-
name: 'format',
|
38
|
-
value: v,
|
39
|
-
});
|
40
|
-
}
|
41
|
-
get displayText() {
|
42
|
-
return this._displayText;
|
43
|
-
}
|
44
|
-
set displayText(v) {
|
45
|
-
this._displayText = v;
|
46
|
-
this.displayTextChange.emit(v);
|
47
|
-
}
|
48
|
-
/**
|
49
|
-
* @ignore
|
50
|
-
*/
|
51
|
-
constructor(elementRef, cdr) {
|
52
|
-
super(elementRef, cdr);
|
53
|
-
this.cdr = cdr;
|
54
|
-
this.formatChange = new EventEmitter();
|
55
|
-
this._format = 'HH:mm';
|
56
|
-
this.displayTextChange = new EventEmitter();
|
57
|
-
this._displayText = '';
|
58
|
-
}
|
59
|
-
onViewInit() {
|
60
|
-
super.onViewInit();
|
61
|
-
this._updateMask();
|
62
|
-
}
|
63
|
-
_onValueChanged(oldValue, newValue) {
|
64
|
-
this._updateText();
|
65
|
-
this._maskDirective?.maskRef?.updateValue();
|
66
|
-
this._maskDirective?.maskRef?.updateControl();
|
67
|
-
}
|
68
|
-
_updateText() {
|
69
|
-
this.displayText = this.value ? AXDateTime.convert(this.value).format(this.format) : '';
|
70
|
-
}
|
71
|
-
_onOptionChanged(option) {
|
72
|
-
super._onOptionChanged(option);
|
73
|
-
this._updateMask();
|
74
|
-
}
|
75
|
-
focus() {
|
76
|
-
this.input.nativeElement.focus();
|
77
|
-
}
|
78
|
-
_updateMask() {
|
79
|
-
if (!this._maskObj) {
|
80
|
-
this._maskObj = createMask({
|
81
|
-
mask: this.format,
|
82
|
-
lazy: false,
|
83
|
-
autofix: true,
|
84
|
-
overwrite: true,
|
85
|
-
blocks: {
|
86
|
-
HH: {
|
87
|
-
mask: MaskedRange,
|
88
|
-
from: 0,
|
89
|
-
to: 23,
|
90
|
-
maxLength: 2,
|
91
|
-
placeholderChar: '0',
|
92
|
-
autofix: 'pad',
|
93
|
-
},
|
94
|
-
mm: {
|
95
|
-
mask: MaskedRange,
|
96
|
-
from: 0,
|
97
|
-
to: 59,
|
98
|
-
maxLength: 2,
|
99
|
-
placeholderChar: '0',
|
100
|
-
autofix: 'pad',
|
101
|
-
},
|
102
|
-
ss: {
|
103
|
-
mask: MaskedRange,
|
104
|
-
from: 0,
|
105
|
-
to: 59,
|
106
|
-
maxLength: 2,
|
107
|
-
placeholderChar: '0',
|
108
|
-
autofix: 'pad',
|
109
|
-
},
|
110
|
-
},
|
111
|
-
});
|
112
|
-
}
|
113
|
-
else {
|
114
|
-
this._maskObj.updateOptions({
|
115
|
-
mask: this.format,
|
116
|
-
});
|
117
|
-
}
|
118
|
-
this._maskDirective?.maskRef?.updateValue();
|
119
|
-
this._maskDirective?.maskRef?.updateControl();
|
120
|
-
}
|
121
|
-
_handleOnKeydownEvent(e) {
|
122
|
-
const ignore = () => {
|
123
|
-
e.preventDefault();
|
124
|
-
e.stopPropagation();
|
125
|
-
};
|
126
|
-
const nums = Array(10)
|
127
|
-
.fill(0)
|
128
|
-
.map((v, i) => i.toString());
|
129
|
-
const chars = [
|
130
|
-
'Backspace',
|
131
|
-
'ArrowDown',
|
132
|
-
'ArrowUp',
|
133
|
-
'ArrowRight',
|
134
|
-
'ArrowLeft',
|
135
|
-
'Tab',
|
136
|
-
'Enter',
|
137
|
-
];
|
138
|
-
const input = e.target;
|
139
|
-
const key = e.key;
|
140
|
-
const valStr = input.value;
|
141
|
-
const sStart = input.selectionStart || 0;
|
142
|
-
const sEnd = input.selectionEnd || 0;
|
143
|
-
const dateVal = new AXDateTime(this.value);
|
144
|
-
//
|
145
|
-
const re = /[a-zA-Z0-9]+/gi;
|
146
|
-
const parts = Array.from(this.format.matchAll(re));
|
147
|
-
const word = valStr.substring(sStart, sEnd);
|
148
|
-
const part = parts.find((c) => c.index >= sStart);
|
149
|
-
const next = Array.from(valStr.substr(sEnd).matchAll(re));
|
150
|
-
const prev = Array.from(valStr.substring(0, sStart).matchAll(re));
|
151
|
-
//const part = parts[Array.from(valStr.matchAll(re)).findIndex(c => c[0] == word)];
|
152
|
-
//
|
153
|
-
const goNext = () => {
|
154
|
-
this._highlightPart(input, sEnd + (next[0]?.index || 0));
|
155
|
-
};
|
156
|
-
const goPrev = () => {
|
157
|
-
this._highlightPart(input, prev[prev.length - 1]?.index);
|
158
|
-
};
|
159
|
-
//
|
160
|
-
if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {
|
161
|
-
ignore();
|
162
|
-
e.key === 'ArrowRight' ? goNext() : goPrev();
|
163
|
-
}
|
164
|
-
else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {
|
165
|
-
if (e.ctrlKey && e.key === 'ArrowDown') {
|
166
|
-
//this.open();
|
167
|
-
}
|
168
|
-
else {
|
169
|
-
const sign = e.key === 'ArrowUp' ? +1 : -1;
|
170
|
-
if (part) {
|
171
|
-
switch (part[0]) {
|
172
|
-
case 'hh':
|
173
|
-
case 'h':
|
174
|
-
case 'HH':
|
175
|
-
case 'H':
|
176
|
-
this.value = dateVal.add('hour', sign).date;
|
177
|
-
break;
|
178
|
-
case 'mm':
|
179
|
-
this.value = dateVal.add('minute', sign).date;
|
180
|
-
break;
|
181
|
-
case 'ss':
|
182
|
-
case 'SS':
|
183
|
-
this.value = dateVal.add('second', sign).date;
|
184
|
-
break;
|
185
|
-
}
|
186
|
-
setTimeout(() => {
|
187
|
-
this._highlightPart(input, sStart);
|
188
|
-
}, 10);
|
189
|
-
}
|
190
|
-
}
|
191
|
-
ignore();
|
192
|
-
}
|
193
|
-
else if (e.key == 'Backspace') {
|
194
|
-
// if (this.allowNull) {
|
195
|
-
// this.value = null;
|
196
|
-
// }
|
197
|
-
// ignore();
|
198
|
-
}
|
199
|
-
else if (e.key == 'Tab') {
|
200
|
-
if (sEnd < valStr.length && !e.shiftKey) {
|
201
|
-
goNext();
|
202
|
-
ignore();
|
203
|
-
}
|
204
|
-
else if (sStart != 0 && e.shiftKey) {
|
205
|
-
goPrev();
|
206
|
-
ignore();
|
207
|
-
}
|
208
|
-
}
|
209
|
-
else {
|
210
|
-
// const keys = {
|
211
|
-
// h: {
|
212
|
-
// v: /^[0-9]$|^[1][0-2]$/,
|
213
|
-
// p: '0'
|
214
|
-
// },
|
215
|
-
// H: {
|
216
|
-
// v: /^[0-9]$|^1[0-9]$|2[0-3]$/,
|
217
|
-
// p: '0'
|
218
|
-
// },
|
219
|
-
// m: {
|
220
|
-
// v: /^[0-9]$|^[1-5][0-9]$/,
|
221
|
-
// p: '0'
|
222
|
-
// }
|
223
|
-
// }
|
224
|
-
// // const re = new RegExp(_.orderBy(Object.keys(keys), c => c.length, ['desc']).join("|"), "gi");
|
225
|
-
// // return format.replace(re, function (matched) {
|
226
|
-
// // return keys[matched]();
|
227
|
-
// // });
|
228
|
-
// const t = keys[part[0]];
|
229
|
-
// if (!t.v.test(key)) {
|
230
|
-
// ignore();
|
231
|
-
// }
|
232
|
-
// else {
|
233
|
-
// this._updateText()
|
234
|
-
// }
|
235
|
-
}
|
236
|
-
// super._emitOnKeydownEvent(e);
|
237
|
-
}
|
238
|
-
_handleKeyUpEvent(e) {
|
239
|
-
// const input = (e.target as HTMLInputElement);
|
240
|
-
// setTimeout(() => {
|
241
|
-
// this._highlightPart(input);
|
242
|
-
// }, 700);
|
243
|
-
}
|
244
|
-
_emitOnFocusEvent(e) {
|
245
|
-
const input = e.target;
|
246
|
-
this._highlightPart(input);
|
247
|
-
super._emitOnFocusEvent(e);
|
248
|
-
}
|
249
|
-
_handleOnInputClickEvent(e) {
|
250
|
-
const input = e.target;
|
251
|
-
this._highlightPart(input);
|
252
|
-
e.preventDefault();
|
253
|
-
e.stopPropagation();
|
254
|
-
}
|
255
|
-
_highlightPart(input, pos) {
|
256
|
-
const { start, end } = AXStringUtil.getWordBoundsAtPosition(input.value, pos != null ? pos : input.selectionStart || 0);
|
257
|
-
input.setSelectionRange(start, end);
|
258
|
-
}
|
259
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXTimeBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
260
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.8", type: AXTimeBoxComponent, selector: "ax-time-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", size: "size", value: "value", placeholder: "placeholder", maxLength: "maxLength", type: "type", autoComplete: "autoComplete", name: "name", checked: "checked", minValue: "minValue", maxValue: "maxValue", format: "format", displayText: "displayText" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", formatChange: "formatChange", displayTextChange: "displayTextChange" }, host: { classAttribute: "ax-editor-container ax-drop-down" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "_maskDirective", first: true, predicate: IMaskDirective, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\">\n</ng-content>\n<input #input class=\"ax-input\" [imask]=\"_maskObj\" [unmask]=\"false\" type=\"text\" [attr.placeholder]=\"placeholder\"\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"displayText\" (mouseup)=\"_handleOnInputClickEvent($event)\"\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\" (keyup)=\"_handleKeyUpEvent($event)\"\n (keydown)=\"_handleOnKeydownEvent($event)\" autocomplete=\"off\">\n<ng-content select=\"ax-clear-button\"></ng-content>\n<ng-content select=\"ax-suffix\">\n</ng-content>\n<ng-content select=\"ax-validation-rule\">\n</ng-content>", dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.IMaskDirective, selector: "[imask]", inputs: ["imask", "unmask", "imaskElement"], outputs: ["accept", "complete"], exportAs: ["imask"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
261
|
-
}
|
262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXTimeBoxComponent, decorators: [{
|
263
|
-
type: Component,
|
264
|
-
args: [{ selector: 'ax-time-box', inputs: [
|
265
|
-
'disabled',
|
266
|
-
'readonly',
|
267
|
-
'tabIndex',
|
268
|
-
'size',
|
269
|
-
'value',
|
270
|
-
'placeholder',
|
271
|
-
'maxLength',
|
272
|
-
'type',
|
273
|
-
'autoComplete',
|
274
|
-
'readonly',
|
275
|
-
'value',
|
276
|
-
'name',
|
277
|
-
'checked',
|
278
|
-
], outputs: ['valueChange', 'onValueChanged', 'onBlur', 'onFocus', 'valueChange', 'onValueChanged'], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { class: 'ax-editor-container ax-drop-down' }, template: "<ng-content select=\"ax-prefix\">\n</ng-content>\n<input #input class=\"ax-input\" [imask]=\"_maskObj\" [unmask]=\"false\" type=\"text\" [attr.placeholder]=\"placeholder\"\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"displayText\" (mouseup)=\"_handleOnInputClickEvent($event)\"\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\" (keyup)=\"_handleKeyUpEvent($event)\"\n (keydown)=\"_handleOnKeydownEvent($event)\" autocomplete=\"off\">\n<ng-content select=\"ax-clear-button\"></ng-content>\n<ng-content select=\"ax-suffix\">\n</ng-content>\n<ng-content select=\"ax-validation-rule\">\n</ng-content>" }]
|
279
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { input: [{
|
280
|
-
type: ViewChild,
|
281
|
-
args: ['input']
|
282
|
-
}], minValue: [{
|
283
|
-
type: Input
|
284
|
-
}], maxValue: [{
|
285
|
-
type: Input
|
286
|
-
}], formatChange: [{
|
287
|
-
type: Output
|
288
|
-
}], format: [{
|
289
|
-
type: Input
|
290
|
-
}], displayTextChange: [{
|
291
|
-
type: Output
|
292
|
-
}], displayText: [{
|
293
|
-
type: Input
|
294
|
-
}], _maskDirective: [{
|
295
|
-
type: ViewChild,
|
296
|
-
args: [IMaskDirective]
|
297
|
-
}] } });
|
298
|
-
|
299
|
-
const COMPONENT = [AXTimeBoxComponent];
|
300
|
-
const MODULES = [
|
301
|
-
CommonModule,
|
302
|
-
FormsModule,
|
303
|
-
AXButtonModule,
|
304
|
-
IMaskModule
|
305
|
-
];
|
306
|
-
class AXTimeBoxModule {
|
307
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXTimeBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
308
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.8", ngImport: i0, type: AXTimeBoxModule, declarations: [AXTimeBoxComponent], imports: [CommonModule,
|
309
|
-
FormsModule,
|
310
|
-
AXButtonModule,
|
311
|
-
IMaskModule], exports: [AXTimeBoxComponent] }); }
|
312
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXTimeBoxModule, imports: [MODULES] }); }
|
313
|
-
}
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.8", ngImport: i0, type: AXTimeBoxModule, decorators: [{
|
315
|
-
type: NgModule,
|
316
|
-
args: [{
|
317
|
-
declarations: [...COMPONENT],
|
318
|
-
imports: [...MODULES],
|
319
|
-
exports: [...COMPONENT],
|
320
|
-
providers: [],
|
321
|
-
}]
|
322
|
-
}] });
|
323
|
-
|
324
|
-
/**
|
325
|
-
* Generated bundle index. Do not edit.
|
326
|
-
*/
|
327
|
-
|
328
|
-
export { AXTimeBoxComponent, AXTimeBoxModule };
|
329
|
-
//# sourceMappingURL=acorex-components-time-box.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-time-box.mjs","sources":["../../../../libs/components/time-box/src/lib/time-box.component.ts","../../../../libs/components/time-box/src/lib/time-box.component.html","../../../../libs/components/time-box/src/lib/time-box.module.ts","../../../../libs/components/time-box/src/acorex-components-time-box.ts"],"sourcesContent":["import { AXStringUtil } from '@acorex/core/utils';\nimport { AXDateTime } from '@acorex/core/dateTime';\nimport {\n Component,\n ViewEncapsulation,\n ChangeDetectionStrategy,\n ElementRef,\n ChangeDetectorRef,\n EventEmitter,\n Output,\n Input,\n ViewChild,\n} from '@angular/core';\nimport { MaskedPattern, MaskedNumber, MaskedRange, createMask } from 'imask';\nimport { IMaskDirective } from 'angular-imask';\nimport { AXBaseTextBoxMixin, AXComponentOptionChanged } from '@acorex/components/mixin';\n\nexport type AX_TIME_FORMAT = 'HH:mm' | 'HH:mm:ss';\n/**\n * The Button is a component which detects user interaction and triggers a corresponding event\n *\n * @category Components\n */\n@Component({\n selector: 'ax-time-box',\n templateUrl: './time-box.component.html',\n inputs: [\n 'disabled',\n 'readonly',\n 'tabIndex',\n 'size',\n 'value',\n 'placeholder',\n 'maxLength',\n 'type',\n 'autoComplete',\n 'readonly',\n 'value',\n 'name',\n 'checked',\n ],\n outputs: ['valueChange', 'onValueChanged', 'onBlur', 'onFocus', 'valueChange', 'onValueChanged'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: { class: 'ax-editor-container ax-drop-down' },\n})\nexport class AXTimeBoxComponent extends AXBaseTextBoxMixin {\n @ViewChild('input')\n input: ElementRef<HTMLInputElement>;\n\n private _minValue: Date;\n @Input()\n public get minValue(): Date {\n return this._minValue;\n }\n public set minValue(v: Date) {\n this._minValue = v;\n }\n\n private _maxValue: Date;\n @Input()\n public get maxValue(): Date {\n return this._maxValue;\n }\n public set maxValue(v: Date) {\n this._maxValue = v;\n }\n\n @Output()\n formatChange = new EventEmitter<string>();\n\n private _format: AX_TIME_FORMAT = 'HH:mm';\n @Input()\n public get format(): AX_TIME_FORMAT {\n return this._format;\n }\n public set format(v: AX_TIME_FORMAT) {\n this._setOption({\n name: 'format',\n value: v,\n });\n }\n\n @Output()\n public displayTextChange: EventEmitter<string> = new EventEmitter<string>();\n private _displayText: string = '';\n\n @Input()\n public get displayText(): string {\n return this._displayText;\n }\n\n public set displayText(v: string) {\n this._displayText = v;\n this.displayTextChange.emit(v);\n }\n\n /**\n * @ignore\n */\n protected _maskObj: MaskedPattern;\n\n @ViewChild(IMaskDirective)\n private _maskDirective: IMaskDirective<MaskedNumber>;\n\n /**\n * @ignore\n */\n constructor(elementRef: ElementRef, private cdr: ChangeDetectorRef) {\n super(elementRef, cdr);\n }\n\n override onViewInit(): void {\n super.onViewInit();\n this._updateMask();\n }\n\n override _onValueChanged(oldValue?: any, newValue?: any) {\n this._updateText();\n this._maskDirective?.maskRef?.updateValue();\n this._maskDirective?.maskRef?.updateControl();\n }\n\n _updateText() {\n this.displayText = this.value ? AXDateTime.convert(this.value).format(this.format) : '';\n }\n\n override _onOptionChanged(option: AXComponentOptionChanged): void {\n super._onOptionChanged(option);\n this._updateMask();\n }\n\n override focus(): void {\n this.input.nativeElement.focus();\n }\n\n private _updateMask() {\n if (!this._maskObj) {\n this._maskObj = createMask({\n mask: this.format,\n lazy: false,\n autofix: true,\n overwrite: true,\n blocks: {\n HH: {\n mask: MaskedRange,\n from: 0,\n to: 23,\n maxLength: 2,\n placeholderChar: '0',\n autofix: 'pad',\n },\n mm: {\n mask: MaskedRange,\n from: 0,\n to: 59,\n maxLength: 2,\n placeholderChar: '0',\n autofix: 'pad',\n },\n ss: {\n mask: MaskedRange,\n from: 0,\n to: 59,\n maxLength: 2,\n placeholderChar: '0',\n autofix: 'pad',\n },\n },\n });\n } else {\n this._maskObj.updateOptions({\n mask: this.format,\n });\n }\n this._maskDirective?.maskRef?.updateValue();\n this._maskDirective?.maskRef?.updateControl();\n }\n\n _handleOnKeydownEvent(e: KeyboardEvent) {\n const ignore = () => {\n e.preventDefault();\n e.stopPropagation();\n };\n\n const nums: string[] = Array(10)\n .fill(0)\n .map((v, i) => i.toString());\n const chars: string[] = [\n 'Backspace',\n 'ArrowDown',\n 'ArrowUp',\n 'ArrowRight',\n 'ArrowLeft',\n 'Tab',\n 'Enter',\n ];\n const input = e.target as HTMLInputElement;\n const key = e.key;\n const valStr = input.value;\n const sStart = input.selectionStart || 0;\n const sEnd = input.selectionEnd || 0;\n const dateVal = new AXDateTime(this.value);\n //\n const re = /[a-zA-Z0-9]+/gi;\n const parts = Array.from(this.format.matchAll(re));\n const word = valStr.substring(sStart, sEnd);\n const part = parts.find((c: any) => c.index >= sStart);\n const next = Array.from(valStr.substr(sEnd).matchAll(re));\n const prev = Array.from(valStr.substring(0, sStart).matchAll(re));\n //const part = parts[Array.from(valStr.matchAll(re)).findIndex(c => c[0] == word)];\n //\n\n const goNext = () => {\n this._highlightPart(input, sEnd + (next[0]?.index || 0));\n };\n const goPrev = () => {\n this._highlightPart(input, prev[prev.length - 1]?.index);\n };\n\n //\n if (e.key === 'ArrowRight' || e.key === 'ArrowLeft') {\n ignore();\n e.key === 'ArrowRight' ? goNext() : goPrev();\n } else if (e.key === 'ArrowUp' || e.key === 'ArrowDown') {\n if (e.ctrlKey && e.key === 'ArrowDown') {\n //this.open();\n } else {\n const sign = e.key === 'ArrowUp' ? +1 : -1;\n if (part) {\n switch (part[0]) {\n case 'hh':\n case 'h':\n case 'HH':\n case 'H':\n this.value = dateVal.add('hour', sign).date;\n break;\n case 'mm':\n this.value = dateVal.add('minute', sign).date;\n break;\n case 'ss':\n case 'SS':\n this.value = dateVal.add('second', sign).date;\n break;\n }\n setTimeout(() => {\n this._highlightPart(input, sStart);\n }, 10);\n }\n }\n ignore();\n } else if (e.key == 'Backspace') {\n // if (this.allowNull) {\n // this.value = null;\n // }\n // ignore();\n } else if (e.key == 'Tab') {\n if (sEnd < valStr.length && !e.shiftKey) {\n goNext();\n ignore();\n } else if (sStart != 0 && e.shiftKey) {\n goPrev();\n ignore();\n }\n } else {\n // const keys = {\n // h: {\n // v: /^[0-9]$|^[1][0-2]$/,\n // p: '0'\n // },\n // H: {\n // v: /^[0-9]$|^1[0-9]$|2[0-3]$/,\n // p: '0'\n // },\n // m: {\n // v: /^[0-9]$|^[1-5][0-9]$/,\n // p: '0'\n // }\n // }\n // // const re = new RegExp(_.orderBy(Object.keys(keys), c => c.length, ['desc']).join(\"|\"), \"gi\");\n // // return format.replace(re, function (matched) {\n // // return keys[matched]();\n // // });\n // const t = keys[part[0]];\n // if (!t.v.test(key)) {\n // ignore();\n // }\n // else {\n // this._updateText()\n // }\n }\n // super._emitOnKeydownEvent(e);\n }\n\n _handleKeyUpEvent(e: KeyboardEvent) {\n // const input = (e.target as HTMLInputElement);\n // setTimeout(() => {\n // this._highlightPart(input);\n // }, 700);\n }\n\n override _emitOnFocusEvent(e: FocusEvent): void {\n const input = e.target as HTMLInputElement;\n this._highlightPart(input);\n super._emitOnFocusEvent(e);\n }\n\n _handleOnInputClickEvent(e: MouseEvent): void {\n const input = e.target as HTMLInputElement;\n this._highlightPart(input);\n e.preventDefault();\n e.stopPropagation();\n }\n\n private _highlightPart(input: HTMLInputElement, pos?: number) {\n const { start, end } = AXStringUtil.getWordBoundsAtPosition(\n input.value,\n pos != null ? pos : input.selectionStart || 0\n );\n input.setSelectionRange(start, end);\n }\n}\n","<ng-content select=\"ax-prefix\">\n</ng-content>\n<input #input class=\"ax-input\" [imask]=\"_maskObj\" [unmask]=\"false\" type=\"text\" [attr.placeholder]=\"placeholder\"\n [class.ax-state-disabled]=\"disabled\" [class.ax-state-readonly]=\"readonly\" [disabled]=\"disabled\"\n [readonly]=\"readonly\" [tabindex]=\"tabIndex\" [ngModel]=\"displayText\" (mouseup)=\"_handleOnInputClickEvent($event)\"\n (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\" (keyup)=\"_handleKeyUpEvent($event)\"\n (keydown)=\"_handleOnKeydownEvent($event)\" autocomplete=\"off\">\n<ng-content select=\"ax-clear-button\"></ng-content>\n<ng-content select=\"ax-suffix\">\n</ng-content>\n<ng-content select=\"ax-validation-rule\">\n</ng-content>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { AXTimeBoxComponent } from './time-box.component';\nimport { FormsModule } from '@angular/forms';\nimport { IMaskModule } from 'angular-imask';\nimport { AXButtonModule } from '@acorex/components/button';\n\nconst COMPONENT = [AXTimeBoxComponent];\nconst MODULES = [\n CommonModule,\n FormsModule,\n AXButtonModule,\n IMaskModule\n];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXTimeBoxModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAkBA;;;;AAIG;AAwBG,MAAO,kBAAmB,SAAQ,kBAAkB,CAAA;AAKxD,IAAA,IACW,QAAQ,GAAA;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IACD,IAAW,QAAQ,CAAC,CAAO,EAAA;AACzB,QAAA,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;KACpB;AAGD,IAAA,IACW,QAAQ,GAAA;QACjB,OAAO,IAAI,CAAC,SAAS,CAAC;KACvB;IACD,IAAW,QAAQ,CAAC,CAAO,EAAA;AACzB,QAAA,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;KACpB;AAMD,IAAA,IACW,MAAM,GAAA;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;KACrB;IACD,IAAW,MAAM,CAAC,CAAiB,EAAA;QACjC,IAAI,CAAC,UAAU,CAAC;AACd,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,KAAK,EAAE,CAAC;AACT,SAAA,CAAC,CAAC;KACJ;AAMD,IAAA,IACW,WAAW,GAAA;QACpB,OAAO,IAAI,CAAC,YAAY,CAAC;KAC1B;IAED,IAAW,WAAW,CAAC,CAAS,EAAA;AA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C;AACvC,MAAM,OAAO,GAAG;IACZ,YAAY;IACZ,WAAW;IACX,cAAc;IACd,WAAW;CACd,CAAC;MAQW,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAf,eAAe,EAAA,YAAA,EAAA,CAdT,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAEjC,YAAY;YACZ,WAAW;YACX,cAAc;AACd,YAAA,WAAW,aALI,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;AAcxB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YAJX,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIX,eAAe,EAAA,UAAA,EAAA,CAAA;kBAN3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,GAAG,SAAS,CAAC;AAC5B,oBAAA,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;AACrB,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AAChB,iBAAA,CAAA;;;ACpBD;;AAEG;;;;"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import { AXConnectedPosition, AXEvent, MXInteractiveComponent } from '@acorex/components/common';
|
2
|
-
import { EventEmitter } from '@angular/core';
|
3
|
-
import { AXPopoverComponent } from './popover.component';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export declare abstract class MXDropDownComponent extends MXInteractiveComponent {
|
6
|
-
onOpened: EventEmitter<AXEvent>;
|
7
|
-
onClosed: EventEmitter<AXEvent>;
|
8
|
-
protected abstract popover: AXPopoverComponent;
|
9
|
-
protected popOverPositions: AXConnectedPosition[];
|
10
|
-
protected initPopOverPositions(): void;
|
11
|
-
toggle(): void;
|
12
|
-
close(): void;
|
13
|
-
open(): void;
|
14
|
-
get isOpen(): boolean;
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MXDropDownComponent, never>;
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MXDropDownComponent>;
|
17
|
-
}
|
package/time-box/README.md
DELETED
package/time-box/index.d.ts
DELETED
@@ -1,50 +0,0 @@
|
|
1
|
-
import { ElementRef, ChangeDetectorRef, EventEmitter } from '@angular/core';
|
2
|
-
import { MaskedPattern } from 'imask';
|
3
|
-
import { AXBaseTextBoxMixin, AXComponentOptionChanged } from '@acorex/components/mixin';
|
4
|
-
import * as i0 from "@angular/core";
|
5
|
-
export type AX_TIME_FORMAT = 'HH:mm' | 'HH:mm:ss';
|
6
|
-
/**
|
7
|
-
* The Button is a component which detects user interaction and triggers a corresponding event
|
8
|
-
*
|
9
|
-
* @category Components
|
10
|
-
*/
|
11
|
-
export declare class AXTimeBoxComponent extends AXBaseTextBoxMixin {
|
12
|
-
private cdr;
|
13
|
-
input: ElementRef<HTMLInputElement>;
|
14
|
-
private _minValue;
|
15
|
-
get minValue(): Date;
|
16
|
-
set minValue(v: Date);
|
17
|
-
private _maxValue;
|
18
|
-
get maxValue(): Date;
|
19
|
-
set maxValue(v: Date);
|
20
|
-
formatChange: EventEmitter<string>;
|
21
|
-
private _format;
|
22
|
-
get format(): AX_TIME_FORMAT;
|
23
|
-
set format(v: AX_TIME_FORMAT);
|
24
|
-
displayTextChange: EventEmitter<string>;
|
25
|
-
private _displayText;
|
26
|
-
get displayText(): string;
|
27
|
-
set displayText(v: string);
|
28
|
-
/**
|
29
|
-
* @ignore
|
30
|
-
*/
|
31
|
-
protected _maskObj: MaskedPattern;
|
32
|
-
private _maskDirective;
|
33
|
-
/**
|
34
|
-
* @ignore
|
35
|
-
*/
|
36
|
-
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef);
|
37
|
-
onViewInit(): void;
|
38
|
-
_onValueChanged(oldValue?: any, newValue?: any): void;
|
39
|
-
_updateText(): void;
|
40
|
-
_onOptionChanged(option: AXComponentOptionChanged): void;
|
41
|
-
focus(): void;
|
42
|
-
private _updateMask;
|
43
|
-
_handleOnKeydownEvent(e: KeyboardEvent): void;
|
44
|
-
_handleKeyUpEvent(e: KeyboardEvent): void;
|
45
|
-
_emitOnFocusEvent(e: FocusEvent): void;
|
46
|
-
_handleOnInputClickEvent(e: MouseEvent): void;
|
47
|
-
private _highlightPart;
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXTimeBoxComponent, never>;
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXTimeBoxComponent, "ax-time-box", never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "size": { "alias": "size"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "type": { "alias": "type"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; "name": { "alias": "name"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "format": { "alias": "format"; "required": false; }; "displayText": { "alias": "displayText"; "required": false; }; }, { "valueChange": "valueChange"; "onValueChanged": "onValueChanged"; "onBlur": "onBlur"; "onFocus": "onFocus"; "formatChange": "formatChange"; "displayTextChange": "displayTextChange"; }, never, ["ax-prefix", "ax-clear-button", "ax-suffix", "ax-validation-rule"], false, never>;
|
50
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./time-box.component";
|
3
|
-
import * as i2 from "@angular/common";
|
4
|
-
import * as i3 from "@angular/forms";
|
5
|
-
import * as i4 from "@acorex/components/button";
|
6
|
-
import * as i5 from "angular-imask";
|
7
|
-
export declare class AXTimeBoxModule {
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXTimeBoxModule, never>;
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXTimeBoxModule, [typeof i1.AXTimeBoxComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.AXButtonModule, typeof i5.IMaskModule], [typeof i1.AXTimeBoxComponent]>;
|
10
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<AXTimeBoxModule>;
|
11
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { AXValueChangedEvent } from '@acorex/components/common';
|
2
|
-
import { AXBaseComponentMixin } from '@acorex/components/mixin';
|
3
|
-
import { AXFileService } from '@acorex/core/file';
|
4
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
5
|
-
import * as i0 from "@angular/core";
|
6
|
-
export declare class AXUploaderComponent extends AXBaseComponentMixin {
|
7
|
-
private _fileService;
|
8
|
-
onValueChanged: EventEmitter<AXValueChangedEvent<File[]>>;
|
9
|
-
firstInit: boolean;
|
10
|
-
_showText: boolean;
|
11
|
-
constructor(elementRef: ElementRef, cdr: ChangeDetectorRef, _fileService: AXFileService);
|
12
|
-
_placeholder: ElementRef;
|
13
|
-
multiple: boolean;
|
14
|
-
accept: string;
|
15
|
-
private _dropArea;
|
16
|
-
_handleClick(e: MouseEvent): Promise<void>;
|
17
|
-
_handleDrop(e: any): Promise<void>;
|
18
|
-
_handleFiles(files: File[]): void;
|
19
|
-
onInit(): void;
|
20
|
-
ngDoCheck(): void;
|
21
|
-
checkIsBoxHasMinWidth(): void;
|
22
|
-
preventDefaults(e: any): void;
|
23
|
-
_handleHighlight(e: any): void;
|
24
|
-
_handleUnhighlight(e: any): void;
|
25
|
-
get __defaultClass(): boolean;
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AXUploaderComponent, never>;
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXUploaderComponent, "ax-uploader", never, { "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; }, { "onValueChanged": "onValueChanged"; }, never, ["*"], false, never>;
|
28
|
-
}
|
File without changes
|
/package/decorators/lib/{clear-button.component.d.ts → components/clear-button.component.d.ts}
RENAMED
File without changes
|
/package/decorators/lib/{close-button.component.d.ts → components/close-button.component.d.ts}
RENAMED
File without changes
|
/package/decorators/lib/{generic-content.component.d.ts → components/generic-content.component.d.ts}
RENAMED
File without changes
|
File without changes
|