@acorex/components 7.5.0 → 7.8.0
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/badge/lib/badge.component.d.ts +3 -3
- 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-item.component.d.ts +3 -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 +6 -4
- package/chips/lib/chips.component.d.ts +1 -1
- package/collapse/lib/collapse-group.component.d.ts +9 -6
- package/collapse/lib/collapse.component.d.ts +21 -8
- package/collapse/lib/collapse.module.d.ts +2 -1
- 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 +1 -1
- package/common/lib/classes/datasource.class.d.ts +55 -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/interactive-component.class.d.ts +1 -7
- package/common/lib/components/selection-base.component.class.d.ts +5 -6
- 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/common/lib/directives/ripple.directive.d.ts +2 -1
- package/data-table/lib/data-table.component.d.ts +2 -2
- package/datetime-box/lib/datetime-box.component.d.ts +4 -3
- package/datetime-input/lib/datetime-input.component.d.ts +2 -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/alert/lib/alert.component.mjs +4 -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 +4 -4
- package/esm2022/badge/lib/badge.component.mjs +6 -6
- 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 +12 -3
- 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 -68
- package/esm2022/calendar/lib/calendar.component.mjs +53 -43
- 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 +6 -6
- package/esm2022/chips/lib/chips.module.mjs +2 -2
- package/esm2022/collapse/lib/collapse-group.component.mjs +23 -14
- package/esm2022/collapse/lib/collapse.component.mjs +68 -20
- package/esm2022/collapse/lib/collapse.module.mjs +7 -6
- 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 +2 -2
- package/esm2022/common/lib/classes/components.class.mjs +1 -1
- package/esm2022/common/lib/classes/datalist.class.mjs +1 -53
- package/esm2022/common/lib/classes/datasource.class.mjs +106 -0
- 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 +13 -13
- package/esm2022/common/lib/components/look-component.class.mjs +2 -2
- package/esm2022/common/lib/components/selection-base.component.class.mjs +63 -29
- 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 +14 -8
- 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/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 +10 -7
- package/esm2022/datetime-box/lib/datetime-box.module.mjs +7 -7
- package/esm2022/datetime-input/lib/datetime-input.component.mjs +144 -137
- 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 +77 -80
- 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/index.mjs +1 -2
- package/esm2022/menu/lib/class/root-menu.class.mjs +1 -1
- package/esm2022/menu/lib/menu-item/menu-item.component.mjs +60 -19
- package/esm2022/menu/lib/menu.component.mjs +37 -342
- package/esm2022/menu/lib/menu.module.mjs +3 -4
- 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.component.mjs +2 -2
- 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 +6 -5
- package/esm2022/otp/lib/otp.module.mjs +5 -4
- 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 +45 -20
- 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 +168 -308
- package/esm2022/select-box/lib/select-box.module.mjs +12 -13
- package/esm2022/selection-list/lib/selection-list.component.mjs +20 -10
- package/esm2022/selection-list/lib/selection-list.module.mjs +6 -6
- package/esm2022/side-menu/acorex-components-side-menu.mjs +5 -0
- package/esm2022/side-menu/index.mjs +4 -0
- package/esm2022/side-menu/lib/side-menu-item/side-menu-item.compoent.mjs +116 -0
- package/esm2022/side-menu/lib/side-menu.component.mjs +15 -0
- package/esm2022/side-menu/lib/side-menu.module.mjs +23 -0
- package/esm2022/skeleton/acorex-components-skeleton.mjs +5 -0
- package/esm2022/skeleton/index.mjs +3 -0
- package/esm2022/skeleton/lib/skeleton.component.mjs +24 -0
- package/esm2022/skeleton/lib/skeleton.module.mjs +18 -0
- 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/tab-item.component.mjs +9 -2
- 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 +7 -13
- 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-alert.mjs +3 -4
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +16 -16
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +5 -5
- 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 +13 -4
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +52 -110
- 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 +5 -5
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +92 -34
- 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 +277 -223
- package/fesm2022/acorex-components-common.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 +10 -7
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +143 -136
- 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 +77 -80
- 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 +78 -382
- 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 +45 -33
- 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 +8 -6
- 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 +48 -25
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +171 -401
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +22 -12
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +153 -0
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -0
- package/fesm2022/acorex-components-skeleton.mjs +46 -0
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -0
- package/fesm2022/acorex-components-switch.mjs +9 -16
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +11 -4
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +5 -11
- 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 +26 -27
- package/loading/index.d.ts +1 -1
- package/loading/lib/loading.component.d.ts +1 -1
- package/menu/index.d.ts +0 -1
- package/menu/lib/class/root-menu.class.d.ts +2 -0
- package/menu/lib/menu-item/menu-item.component.d.ts +19 -6
- package/menu/lib/menu.component.d.ts +10 -40
- package/menu/lib/menu.module.d.ts +7 -8
- 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/otp/lib/otp.module.d.ts +2 -1
- package/package.json +19 -7
- 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 +11 -4
- package/select-box/index.d.ts +1 -1
- package/select-box/lib/select-box.component.d.ts +37 -59
- package/select-box/lib/select-box.module.d.ts +14 -15
- package/selection-list/lib/selection-list.component.d.ts +6 -3
- package/side-menu/README.md +3 -0
- package/side-menu/index.d.ts +3 -0
- package/side-menu/lib/side-menu-item/side-menu-item.compoent.d.ts +37 -0
- package/side-menu/lib/side-menu.component.d.ts +8 -0
- package/side-menu/lib/side-menu.module.d.ts +10 -0
- package/skeleton/README.md +3 -0
- package/skeleton/index.d.ts +2 -0
- package/skeleton/lib/skeleton.component.d.ts +8 -0
- package/skeleton/lib/skeleton.module.d.ts +8 -0
- package/tabs/lib/tab-item.component.d.ts +2 -1
- package/tag/lib/tag.component.d.ts +3 -4
- 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/context-menu/README.md +0 -3
- package/context-menu/index.d.ts +0 -2
- package/context-menu/lib/context-menu.component.d.ts +0 -34
- package/context-menu/lib/context-menu.module.d.ts +0 -13
- package/esm2022/common/lib/components/appearance-component.class.mjs +0 -25
- package/esm2022/context-menu/acorex-components-context-menu.mjs +0 -5
- package/esm2022/context-menu/index.mjs +0 -3
- package/esm2022/context-menu/lib/context-menu.component.mjs +0 -262
- package/esm2022/context-menu/lib/context-menu.module.mjs +0 -36
- package/esm2022/menu/lib/menu2.component.mjs +0 -45
- package/esm2022/select-box/lib/select-box2.component.mjs +0 -97
- package/fesm2022/acorex-components-context-menu.mjs +0 -300
- package/fesm2022/acorex-components-context-menu.mjs.map +0 -1
- package/menu/lib/menu2.component.d.ts +0 -12
- package/select-box/lib/select-box2.component.d.ts +0 -25
@@ -1,5 +1,5 @@
|
|
1
1
|
import { MXCalendarBaseComponent, AXCalendarModule } from '@acorex/components/calendar';
|
2
|
-
import { MXInputBaseValueComponent,
|
2
|
+
import { MXInputBaseValueComponent, MXLookComponent, AXComponent, AXFocusableComponent, AXValuableComponent, AXClearableComponent } from '@acorex/components/common';
|
3
3
|
import * as i2 from '@acorex/components/datetime-input';
|
4
4
|
import { AXDateTimeInputComponent, AXDateTimeInputModule } from '@acorex/components/datetime-input';
|
5
5
|
import * as i4 from '@acorex/components/datetime-picker';
|
@@ -18,7 +18,7 @@ import { CommonModule } from '@angular/common';
|
|
18
18
|
*
|
19
19
|
* @category Components
|
20
20
|
*/
|
21
|
-
class AXDateTimeBoxComponent extends classes((MXInputBaseValueComponent), MXCalendarBaseComponent, MXDropdownBoxBaseComponent,
|
21
|
+
class AXDateTimeBoxComponent extends classes((MXInputBaseValueComponent), MXCalendarBaseComponent, MXDropdownBoxBaseComponent, MXLookComponent) {
|
22
22
|
constructor() {
|
23
23
|
super(...arguments);
|
24
24
|
this.formatChange = new EventEmitter();
|
@@ -52,8 +52,11 @@ class AXDateTimeBoxComponent extends classes((MXInputBaseValueComponent), MXCale
|
|
52
52
|
internalValueChanged() {
|
53
53
|
this.close();
|
54
54
|
}
|
55
|
+
_handleInputOnClick(e) {
|
56
|
+
close();
|
57
|
+
}
|
55
58
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXDateTimeBoxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
56
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.9", type: AXDateTimeBoxComponent, selector: "ax-datetime-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", placeholder: "placeholder", minValue: "minValue", maxValue: "maxValue", value: "value", state: "state", name: "name", id: "id", type: "type",
|
59
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.9", type: AXDateTimeBoxComponent, selector: "ax-datetime-box", inputs: { disabled: "disabled", readonly: "readonly", tabIndex: "tabIndex", placeholder: "placeholder", minValue: "minValue", maxValue: "maxValue", value: "value", state: "state", name: "name", id: "id", type: "type", look: "look", format: "format" }, outputs: { valueChange: "valueChange", stateChange: "stateChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", readonlyChange: "readonlyChange", disabledChange: "disabledChange", formatChange: "formatChange" }, providers: [
|
57
60
|
{ provide: AXComponent, useExisting: AXDateTimeBoxComponent },
|
58
61
|
{ provide: AXFocusableComponent, useExisting: AXDateTimeBoxComponent },
|
59
62
|
{ provide: AXValuableComponent, useExisting: AXDateTimeBoxComponent },
|
@@ -63,7 +66,7 @@ class AXDateTimeBoxComponent extends classes((MXInputBaseValueComponent), MXCale
|
|
63
66
|
useExisting: forwardRef(() => AXDateTimeBoxComponent),
|
64
67
|
multi: true,
|
65
68
|
},
|
66
|
-
], viewQueries: [{ propertyName: "input", first: true, predicate: AXDateTimeInputComponent, descendants: true }, { propertyName: "picker", first: true, predicate: AXDateTimePickerComponent, descendants: true }, { propertyName: "dropdown", first: true, predicate: AXDropdownBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-dropdown-box [disabled]=\"disabled\" (onOpened)=\"_handleOnOpenedEvent()\" (onClosed)=\"_handleOnClosedEvent()\"\n [
|
69
|
+
], viewQueries: [{ propertyName: "input", first: true, predicate: AXDateTimeInputComponent, descendants: true }, { propertyName: "picker", first: true, predicate: AXDateTimePickerComponent, descendants: true }, { propertyName: "dropdown", first: true, predicate: AXDropdownBoxComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ax-dropdown-box [disabled]=\"disabled\" (onOpened)=\"_handleOnOpenedEvent()\" (onClosed)=\"_handleOnClosedEvent()\"\n [look]=\"look\">\n <ng-container input>\n <ng-content select=\"ax-prefix\"> </ng-content>\n <ax-datetime-input id=\"{{ id }}-input\" [ngModel]=\"value\" (ngModelChange)=\"_handleInputModelChange($event)\"\n [placeholder]=\"placeholder\" [format]=\"format\" [disabled]=\"disabled\" [readonly]=\"readonly\" [type]=\"type\"\n (onFocus)=\"emitOnFocusEvent($event.nativeEvent)\" (onBlur)=\"emitOnBlurEvent($event.nativeEvent)\"\n (onClick)=\"_handleInputOnClick($event)\"></ax-datetime-input>\n <ng-content select=\"ax-clear-button\"></ng-content>\n <button type=\"button\" class=\"ax-general-button ax-button-icon\" [tabIndex]=\"-1\" [disabled]=\"disabled\"\n (click)=\"toggle()\">\n <span class=\"ax-icon ax-icon-calendar\"></span>\n </button>\n <ng-content select=\"ax-suffix\"> </ng-content>\n </ng-container>\n <ng-container panel>\n <ax-datetime-picker id=\"{{ id }}-picker\" #picker [ngModel]=\"value\"\n (ngModelChange)=\"_handlePickerModelChange($event)\" [disabled]=\"disabled\" [readonly]=\"readonly\"\n [minValue]=\"minValue\" [maxValue]=\"maxValue\" [format]=\"format\" [disabledDates]=\"disabledDates\"\n [holidayDates]=\"holidayDates\" [depth]=\"depth\" [type]=\"type\"\n (onNavigate)=\"_handleCalendarOnNavigate($event)\"></ax-datetime-picker>\n </ng-container>\n</ax-dropdown-box>\n<ng-content select=\"ax-validation-rule\"> </ng-content>", dependencies: [{ 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: "component", type: i2.AXDateTimeInputComponent, selector: "ax-datetime-input", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "type", "minValue", "maxValue", "format"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "onClick", "readonlyChange", "disabledChange", "formatChange"] }, { kind: "component", type: i3.AXDropdownBoxComponent, selector: "ax-dropdown-box", inputs: ["disabled", "look"], outputs: ["disabledChange", "onBlur", "onFocus", "onClick", "onOpened", "onClosed"] }, { kind: "component", type: i4.AXDateTimePickerComponent, selector: "ax-datetime-picker", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "depth", "activeView", "minValue", "maxValue", "disabledDates", "holidayDates", "type", "cellTemplate", "cellClass", "showNavigation", "currentTimeButton", "format"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "onClick", "readonlyChange", "disabledChange", "depthChange", "typeChange", "activeViewChange", "disabledDatesChange", "holidayDatesChange", "onNavigate", "onSlotClick", "formatChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
67
70
|
}
|
68
71
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXDateTimeBoxComponent, decorators: [{
|
69
72
|
type: Component,
|
@@ -79,7 +82,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImpor
|
|
79
82
|
'name',
|
80
83
|
'id',
|
81
84
|
'type',
|
82
|
-
'
|
85
|
+
'look',
|
83
86
|
], outputs: [
|
84
87
|
'valueChange',
|
85
88
|
'stateChange',
|
@@ -98,7 +101,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImpor
|
|
98
101
|
useExisting: forwardRef(() => AXDateTimeBoxComponent),
|
99
102
|
multi: true,
|
100
103
|
},
|
101
|
-
], template: "<ax-dropdown-box [disabled]=\"disabled\" (onOpened)=\"_handleOnOpenedEvent()\" (onClosed)=\"_handleOnClosedEvent()\"\n [
|
104
|
+
], template: "<ax-dropdown-box [disabled]=\"disabled\" (onOpened)=\"_handleOnOpenedEvent()\" (onClosed)=\"_handleOnClosedEvent()\"\n [look]=\"look\">\n <ng-container input>\n <ng-content select=\"ax-prefix\"> </ng-content>\n <ax-datetime-input id=\"{{ id }}-input\" [ngModel]=\"value\" (ngModelChange)=\"_handleInputModelChange($event)\"\n [placeholder]=\"placeholder\" [format]=\"format\" [disabled]=\"disabled\" [readonly]=\"readonly\" [type]=\"type\"\n (onFocus)=\"emitOnFocusEvent($event.nativeEvent)\" (onBlur)=\"emitOnBlurEvent($event.nativeEvent)\"\n (onClick)=\"_handleInputOnClick($event)\"></ax-datetime-input>\n <ng-content select=\"ax-clear-button\"></ng-content>\n <button type=\"button\" class=\"ax-general-button ax-button-icon\" [tabIndex]=\"-1\" [disabled]=\"disabled\"\n (click)=\"toggle()\">\n <span class=\"ax-icon ax-icon-calendar\"></span>\n </button>\n <ng-content select=\"ax-suffix\"> </ng-content>\n </ng-container>\n <ng-container panel>\n <ax-datetime-picker id=\"{{ id }}-picker\" #picker [ngModel]=\"value\"\n (ngModelChange)=\"_handlePickerModelChange($event)\" [disabled]=\"disabled\" [readonly]=\"readonly\"\n [minValue]=\"minValue\" [maxValue]=\"maxValue\" [format]=\"format\" [disabledDates]=\"disabledDates\"\n [holidayDates]=\"holidayDates\" [depth]=\"depth\" [type]=\"type\"\n (onNavigate)=\"_handleCalendarOnNavigate($event)\"></ax-datetime-picker>\n </ng-container>\n</ax-dropdown-box>\n<ng-content select=\"ax-validation-rule\"> </ng-content>" }]
|
102
105
|
}], propDecorators: { input: [{
|
103
106
|
type: ViewChild,
|
104
107
|
args: [AXDateTimeInputComponent]
|
@@ -121,7 +124,7 @@ const MODULES = [
|
|
121
124
|
AXDateTimeInputModule,
|
122
125
|
AXDropdownModule,
|
123
126
|
AXCalendarModule,
|
124
|
-
AXDateTimePickerModule
|
127
|
+
AXDateTimePickerModule,
|
125
128
|
];
|
126
129
|
class AXDateTimeBoxModule {
|
127
130
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.9", ngImport: i0, type: AXDateTimeBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-datetime-box.mjs","sources":["../../../../libs/components/datetime-box/src/lib/datetime-box.component.ts","../../../../libs/components/datetime-box/src/lib/datetime-box.component.html","../../../../libs/components/datetime-box/src/lib/datetime-box.module.ts","../../../../libs/components/datetime-box/src/acorex-components-datetime-box.ts"],"sourcesContent":["import { AXCalendarNavigateEvent, MXCalendarBaseComponent } from '@acorex/components/calendar';\nimport {\n AXClearableComponent,\n AXComponent,\n AXFocusableComponent,\n AXValuableComponent,\n MXAppearanceComponent,\n MXInputBaseValueComponent,\n} from '@acorex/components/common';\nimport { AXDateTimeInputComponent } from '@acorex/components/datetime-input';\nimport { AXDateTimePickerComponent } from '@acorex/components/datetime-picker';\nimport { AXDropdownBoxComponent, MXDropdownBoxBaseComponent } from '@acorex/components/dropdown';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output,\n ViewChild,\n ViewEncapsulation,\n forwardRef,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { classes } from 'polytype';\n\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-datetime-box',\n templateUrl: './datetime-box.component.html',\n inputs: [\n 'disabled',\n 'readonly',\n 'tabIndex',\n 'placeholder',\n 'minValue',\n 'maxValue',\n 'value',\n 'state',\n 'name',\n 'id',\n 'type',\n 'appearance',\n ],\n outputs: [\n 'valueChange',\n 'stateChange',\n 'onValueChanged',\n 'onBlur',\n 'onFocus',\n 'readonlyChange',\n 'disabledChange',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: AXComponent, useExisting: AXDateTimeBoxComponent },\n { provide: AXFocusableComponent, useExisting: AXDateTimeBoxComponent },\n { provide: AXValuableComponent, useExisting: AXDateTimeBoxComponent },\n { provide: AXClearableComponent, useExisting: AXDateTimeBoxComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXDateTimeBoxComponent),\n multi: true,\n },\n ],\n})\nexport class AXDateTimeBoxComponent extends classes(\n MXInputBaseValueComponent<Date>,\n MXCalendarBaseComponent,\n MXDropdownBoxBaseComponent,\n MXAppearanceComponent,\n) {\n @ViewChild(AXDateTimeInputComponent)\n protected input: AXDateTimeInputComponent;\n\n @ViewChild(AXDateTimePickerComponent)\n protected picker: AXDateTimePickerComponent;\n\n @ViewChild(AXDropdownBoxComponent)\n protected dropdown: AXDropdownBoxComponent;\n\n @Output()\n formatChange = new EventEmitter<string>();\n\n private _format = this.calendarService.calendar.formats.dateTimeInput;\n @Input()\n public get format(): string {\n return this._format;\n }\n public set format(v: string) {\n this.setOption({\n name: 'format',\n value: v,\n });\n }\n\n protected _handleInputModelChange(value: Date | null) {\n this.commitValue(value, true);\n }\n\n protected _handlePickerModelChange(value: Date | null) {\n if (this.isOpen)\n this.commitValue(value, true);\n }\n\n protected _handleOnOpenedEvent() {\n this.picker?.refresh();\n }\n\n protected _handleOnClosedEvent() {\n this.input.focus();\n }\n\n protected _handleCalendarOnNavigate(e: AXCalendarNavigateEvent) {\n this.onNavigate.emit(e);\n }\n\n override internalValueChanged(): void {\n this.close();\n }\n}\n","<ax-dropdown-box [disabled]=\"disabled\" (onOpened)=\"_handleOnOpenedEvent()\" (onClosed)=\"_handleOnClosedEvent()\"\n [appearance]=\"appearance\">\n <ng-container input>\n <ng-content select=\"ax-prefix\"> </ng-content>\n <ax-datetime-input id=\"{{id}}-input\" [ngModel]=\"value\" (ngModelChange)=\"_handleInputModelChange($event)\"\n [placeholder]=\"placeholder\" [format]=\"format\" [disabled]=\"disabled\" [readonly]=\"readonly\" [type]=\"type\"\n (onFocus)=\"emitOnFocusEvent($event.nativeEvent)\" (onBlur)=\"emitOnBlurEvent($event.nativeEvent)\"\n (onClick)=\"emitOnClickEvent($event.nativeEvent); close()\"></ax-datetime-input>\n <ng-content select=\"ax-clear-button\"></ng-content>\n <button type=\"button\" class=\"ax-general-button ax-button-icon\" [tabIndex]=\"-1\" [disabled]=\"disabled\"\n (click)=\"toggle()\">\n <span class=\"ax-icon ax-icon-calendar\"></span>\n </button>\n <ng-content select=\"ax-suffix\"> </ng-content>\n </ng-container>\n <ng-container panel>\n <ax-datetime-picker id=\"{{id}}-picker\" #picker [ngModel]=\"value\" (ngModelChange)=\"_handlePickerModelChange($event)\"\n [disabled]=\"disabled\" [readonly]=\"readonly\" [minValue]=\"minValue\" [maxValue]=\"maxValue\" [format]=\"format\"\n [disabledDates]=\"disabledDates\" [holidayDates]=\"holidayDates\" [depth]=\"depth\" [type]=\"type\"\n (onNavigate)=\"_handleCalendarOnNavigate($event)\"></ax-datetime-picker>\n </ng-container>\n</ax-dropdown-box>\n<ng-content select=\"ax-validation-rule\"> </ng-content>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { AXDateTimeBoxComponent } from './datetime-box.component';\nimport { AXDateTimeInputModule } from '@acorex/components/datetime-input';\nimport { AXCalendarModule } from '@acorex/components/calendar';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { AXDateTimePickerModule } from '@acorex/components/datetime-picker';\nimport { FormsModule } from '@angular/forms';\n\nconst COMPONENT = [AXDateTimeBoxComponent];\nconst MODULES = [\n CommonModule,\n FormsModule,\n AXDateTimeInputModule,\n AXDropdownModule,\n AXCalendarModule,\n AXDateTimePickerModule\n];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDateTimeBoxModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAyBA;;;;AAIG;AAyCU,MAAA,sBAAuB,SAAQ,OAAO,EACjD,yBAA+B,GAC/B,uBAAuB,EACvB,0BAA0B,EAC1B,qBAAqB,CACtB,CAAA;AA7CD,IAAA,WAAA,GAAA;;AAwDE,QAAA,IAAA,CAAA,YAAY,GAAG,IAAI,YAAY,EAAU,CAAC;QAElC,IAAO,CAAA,OAAA,GAAG,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAa,CAAC;AAoCvE,KAAA;AAnCC,IAAA,IACW,MAAM,GAAA;QACf,OAAO,IAAI,CAAC,OAAO,CAAC;KACrB;IACD,IAAW,MAAM,CAAC,CAAS,EAAA;QACzB,IAAI,CAAC,SAAS,CAA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B,oBAAA,OAAO,EAAE,CAAC,GAAG,SAAS,CAAC;AACvB,oBAAA,SAAS,EAAE,EAAE;AAChB,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"acorex-components-datetime-box.mjs","sources":["../../../../libs/components/datetime-box/src/lib/datetime-box.component.ts","../../../../libs/components/datetime-box/src/lib/datetime-box.component.html","../../../../libs/components/datetime-box/src/lib/datetime-box.module.ts","../../../../libs/components/datetime-box/src/acorex-components-datetime-box.ts"],"sourcesContent":["import { AXCalendarNavigateEvent, MXCalendarBaseComponent } from '@acorex/components/calendar';\nimport {\n AXClearableComponent,\n AXClickEvent,\n AXComponent,\n AXFocusableComponent,\n AXValuableComponent,\n MXInputBaseValueComponent,\n MXLookComponent,\n} from '@acorex/components/common';\nimport { AXDateTimeInputComponent } from '@acorex/components/datetime-input';\nimport { AXDateTimePickerComponent } from '@acorex/components/datetime-picker';\nimport { AXDropdownBoxComponent, MXDropdownBoxBaseComponent } from '@acorex/components/dropdown';\nimport {\n ChangeDetectionStrategy,\n Component,\n EventEmitter,\n Input,\n Output,\n ViewChild,\n ViewEncapsulation,\n forwardRef,\n} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { classes } from 'polytype';\n\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-datetime-box',\n templateUrl: './datetime-box.component.html',\n inputs: [\n 'disabled',\n 'readonly',\n 'tabIndex',\n 'placeholder',\n 'minValue',\n 'maxValue',\n 'value',\n 'state',\n 'name',\n 'id',\n 'type',\n 'look',\n ],\n outputs: [\n 'valueChange',\n 'stateChange',\n 'onValueChanged',\n 'onBlur',\n 'onFocus',\n 'readonlyChange',\n 'disabledChange',\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: AXComponent, useExisting: AXDateTimeBoxComponent },\n { provide: AXFocusableComponent, useExisting: AXDateTimeBoxComponent },\n { provide: AXValuableComponent, useExisting: AXDateTimeBoxComponent },\n { provide: AXClearableComponent, useExisting: AXDateTimeBoxComponent },\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AXDateTimeBoxComponent),\n multi: true,\n },\n ],\n})\nexport class AXDateTimeBoxComponent extends classes(\n MXInputBaseValueComponent<Date>,\n MXCalendarBaseComponent,\n MXDropdownBoxBaseComponent,\n MXLookComponent,\n) {\n @ViewChild(AXDateTimeInputComponent)\n protected input: AXDateTimeInputComponent;\n\n @ViewChild(AXDateTimePickerComponent)\n protected picker: AXDateTimePickerComponent;\n\n @ViewChild(AXDropdownBoxComponent)\n protected dropdown: AXDropdownBoxComponent;\n\n @Output()\n formatChange = new EventEmitter<string>();\n\n private _format = this.calendarService.calendar.formats.dateTimeInput;\n @Input()\n public get format(): string {\n return this._format;\n }\n public set format(v: string) {\n this.setOption({\n name: 'format',\n value: v,\n });\n }\n\n protected _handleInputModelChange(value: Date | null) {\n this.commitValue(value, true);\n }\n\n protected _handlePickerModelChange(value: Date | null) {\n if (this.isOpen) this.commitValue(value, true);\n }\n\n protected _handleOnOpenedEvent() {\n this.picker?.refresh();\n }\n\n protected _handleOnClosedEvent() {\n this.input.focus();\n }\n\n protected _handleCalendarOnNavigate(e: AXCalendarNavigateEvent) {\n this.onNavigate.emit(e);\n }\n\n override internalValueChanged(): void {\n this.close();\n }\n\n protected _handleInputOnClick(e: AXClickEvent) {\n close();\n }\n}\n","<ax-dropdown-box [disabled]=\"disabled\" (onOpened)=\"_handleOnOpenedEvent()\" (onClosed)=\"_handleOnClosedEvent()\"\n [look]=\"look\">\n <ng-container input>\n <ng-content select=\"ax-prefix\"> </ng-content>\n <ax-datetime-input id=\"{{ id }}-input\" [ngModel]=\"value\" (ngModelChange)=\"_handleInputModelChange($event)\"\n [placeholder]=\"placeholder\" [format]=\"format\" [disabled]=\"disabled\" [readonly]=\"readonly\" [type]=\"type\"\n (onFocus)=\"emitOnFocusEvent($event.nativeEvent)\" (onBlur)=\"emitOnBlurEvent($event.nativeEvent)\"\n (onClick)=\"_handleInputOnClick($event)\"></ax-datetime-input>\n <ng-content select=\"ax-clear-button\"></ng-content>\n <button type=\"button\" class=\"ax-general-button ax-button-icon\" [tabIndex]=\"-1\" [disabled]=\"disabled\"\n (click)=\"toggle()\">\n <span class=\"ax-icon ax-icon-calendar\"></span>\n </button>\n <ng-content select=\"ax-suffix\"> </ng-content>\n </ng-container>\n <ng-container panel>\n <ax-datetime-picker id=\"{{ id }}-picker\" #picker [ngModel]=\"value\"\n (ngModelChange)=\"_handlePickerModelChange($event)\" [disabled]=\"disabled\" [readonly]=\"readonly\"\n [minValue]=\"minValue\" [maxValue]=\"maxValue\" [format]=\"format\" [disabledDates]=\"disabledDates\"\n [holidayDates]=\"holidayDates\" [depth]=\"depth\" [type]=\"type\"\n (onNavigate)=\"_handleCalendarOnNavigate($event)\"></ax-datetime-picker>\n </ng-container>\n</ax-dropdown-box>\n<ng-content select=\"ax-validation-rule\"> </ng-content>","import { AXCalendarModule } from '@acorex/components/calendar';\nimport { AXDateTimeInputModule } from '@acorex/components/datetime-input';\nimport { AXDateTimePickerModule } from '@acorex/components/datetime-picker';\nimport { AXDropdownModule } from '@acorex/components/dropdown';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { AXDateTimeBoxComponent } from './datetime-box.component';\n\nconst COMPONENT = [AXDateTimeBoxComponent];\nconst MODULES = [\n CommonModule,\n FormsModule,\n AXDateTimeInputModule,\n AXDropdownModule,\n AXCalendarModule,\n AXDateTimePickerModule,\n];\n\n@NgModule({\n declarations: [...COMPONENT],\n imports: [...MODULES],\n exports: [...COMPONENT],\n providers: [],\n})\nexport class AXDateTimeBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AA0BA;;;;AAIG;AAyCU,MAAA,sBAAuB,SAAQ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B;YAChB,gBAAgB;AAChB,YAAA,sBAAsB,aAPL,sBAAsB,CAAA,EAAA,CAAA,CAAA,EAAA;AAgB5B,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,mBAAmB,YAJjB,OAAO,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIT,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,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;AACd,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import * as i0 from '@angular/core';
|
2
|
-
import { inject, EventEmitter, forwardRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ViewChild, Output, HostListener, NgModule } from '@angular/core';
|
3
1
|
import { MXInputBaseValueComponent, AXComponent, AXFocusableComponent, AXValuableComponent, AXClearableComponent } from '@acorex/components/common';
|
4
|
-
import { AXStringUtil } from '@acorex/core/utils';
|
5
2
|
import { AXCalendarService, AXDateTimeModule } from '@acorex/core/dateTime';
|
3
|
+
import { AXStringUtil } from '@acorex/core/utils';
|
4
|
+
import * as i0 from '@angular/core';
|
5
|
+
import { inject, EventEmitter, forwardRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ViewChild, Output, HostListener, NgModule } from '@angular/core';
|
6
6
|
import * as i1 from '@angular/forms';
|
7
7
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
8
8
|
import { CommonModule } from '@angular/common';
|
@@ -13,65 +13,66 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
13
13
|
this.calendarService = inject(AXCalendarService);
|
14
14
|
this._editingParts = {
|
15
15
|
year: {
|
16
|
-
key:
|
17
|
-
placeholder:
|
18
|
-
placeholders: [
|
16
|
+
key: 'year',
|
17
|
+
placeholder: 'yyyy',
|
18
|
+
placeholders: ['YY', 'yy', 'YYYY', 'yyyy'],
|
19
19
|
enabled: false,
|
20
20
|
default: 2023,
|
21
21
|
typedValue: null,
|
22
|
-
realValue: () => this.editingDateObj.format(this._editingParts.year.placeholder)
|
22
|
+
realValue: () => this.editingDateObj.format(this._editingParts.year.placeholder),
|
23
23
|
},
|
24
24
|
month: {
|
25
|
-
key:
|
26
|
-
placeholder:
|
27
|
-
placeholders: [
|
25
|
+
key: 'month',
|
26
|
+
placeholder: 'MM',
|
27
|
+
placeholders: ['MMM', 'MMMM', 'MM', 'M'],
|
28
28
|
enabled: false,
|
29
29
|
default: 1,
|
30
30
|
typedValue: null,
|
31
|
-
realValue: () => this.editingDateObj.format(this._editingParts.month.placeholder)
|
31
|
+
realValue: () => this.editingDateObj.format(this._editingParts.month.placeholder),
|
32
32
|
},
|
33
33
|
day: {
|
34
|
-
key:
|
35
|
-
placeholder:
|
36
|
-
placeholders: [
|
34
|
+
key: 'day',
|
35
|
+
placeholder: 'dd',
|
36
|
+
placeholders: ['dd', 'd', 'DDDD', 'ddd'],
|
37
37
|
enabled: false,
|
38
38
|
default: 1,
|
39
39
|
typedValue: null,
|
40
|
-
realValue: () => this.editingDateObj.format(this._editingParts.day.placeholder)
|
40
|
+
realValue: () => this.editingDateObj.format(this._editingParts.day.placeholder),
|
41
41
|
},
|
42
42
|
hour: {
|
43
|
-
key:
|
44
|
-
placeholder:
|
45
|
-
placeholders: [
|
43
|
+
key: 'hour',
|
44
|
+
placeholder: 'HH',
|
45
|
+
placeholders: ['HH', 'H', 'hh', 'h'],
|
46
46
|
enabled: false,
|
47
47
|
default: 0,
|
48
48
|
typedValue: null,
|
49
|
-
realValue: () => this.editingDateObj.format(this._editingParts.hour.placeholder)
|
49
|
+
realValue: () => this.editingDateObj.format(this._editingParts.hour.placeholder),
|
50
50
|
},
|
51
51
|
minute: {
|
52
|
-
key:
|
53
|
-
placeholder:
|
54
|
-
placeholders: [
|
52
|
+
key: 'minute',
|
53
|
+
placeholder: 'mm',
|
54
|
+
placeholders: ['mm', 'm'],
|
55
55
|
enabled: false,
|
56
56
|
default: 0,
|
57
57
|
typedValue: null,
|
58
|
-
realValue: () => this.editingDateObj.format(this._editingParts.minute.placeholder)
|
58
|
+
realValue: () => this.editingDateObj.format(this._editingParts.minute.placeholder),
|
59
59
|
},
|
60
60
|
second: {
|
61
|
-
key:
|
62
|
-
placeholder:
|
63
|
-
placeholders: [
|
61
|
+
key: 'second',
|
62
|
+
placeholder: 'ss',
|
63
|
+
placeholders: ['ss', 's'],
|
64
64
|
enabled: false,
|
65
65
|
default: 0,
|
66
66
|
typedValue: null,
|
67
|
-
realValue: () => this.editingDateObj.format(this._editingParts.second.placeholder)
|
68
|
-
}
|
67
|
+
realValue: () => this.editingDateObj.format(this._editingParts.second.placeholder),
|
68
|
+
},
|
69
69
|
};
|
70
70
|
this._inputChars = [];
|
71
71
|
this._type = this.calendarService.calendar.name();
|
72
72
|
this._activePart = 'hour';
|
73
73
|
this._editingDateObj = this.calendarService.now(this.type);
|
74
74
|
this.formatChange = new EventEmitter();
|
75
|
+
this.onClick = new EventEmitter();
|
75
76
|
this._format = this.calendarService.calendar.formats.dateTimeInput;
|
76
77
|
}
|
77
78
|
get type() {
|
@@ -116,12 +117,12 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
116
117
|
name: 'format',
|
117
118
|
value: v,
|
118
119
|
afterCallback: (o, n) => {
|
119
|
-
Object.values(this._editingParts).forEach(e => {
|
120
|
+
Object.values(this._editingParts).forEach((e) => {
|
120
121
|
e.enabled = false;
|
121
122
|
});
|
122
123
|
const formatParts = n.split(/[^a-zA-Z]+/);
|
123
|
-
formatParts.forEach(f => {
|
124
|
-
const found = Object.values(this._editingParts).find(c => c.placeholders.some(d => d == f));
|
124
|
+
formatParts.forEach((f) => {
|
125
|
+
const found = Object.values(this._editingParts).find((c) => c.placeholders.some((d) => d == f));
|
125
126
|
if (found) {
|
126
127
|
found.enabled = true;
|
127
128
|
found.placeholder = f;
|
@@ -134,8 +135,8 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
134
135
|
// TODO: better spliter format
|
135
136
|
const formatParts = this.format.split(/[^a-zA-Z]+/);
|
136
137
|
const result = [];
|
137
|
-
formatParts.forEach(f => {
|
138
|
-
const found = Object.values(this._editingParts).find(c => c.placeholders.some(d => d == f));
|
138
|
+
formatParts.forEach((f) => {
|
139
|
+
const found = Object.values(this._editingParts).find((c) => c.placeholders.some((d) => d == f));
|
139
140
|
if (found && found.enabled)
|
140
141
|
result.push(found);
|
141
142
|
});
|
@@ -147,7 +148,7 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
147
148
|
_updateText() {
|
148
149
|
let text = this.format;
|
149
150
|
//
|
150
|
-
Object.values(this._editingParts).forEach(part => {
|
151
|
+
Object.values(this._editingParts).forEach((part) => {
|
151
152
|
if (this.activePart == part.key) {
|
152
153
|
if (part.typedValue)
|
153
154
|
text = text.replace(part.placeholder, part.typedValue);
|
@@ -167,7 +168,7 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
167
168
|
if (value) {
|
168
169
|
let editingDate = this.calendarService.create(value, this.type);
|
169
170
|
let applyChanges = false;
|
170
|
-
Object.values(this._editingParts).forEach(part => {
|
171
|
+
Object.values(this._editingParts).forEach((part) => {
|
171
172
|
if (!part.enabled) {
|
172
173
|
editingDate = editingDate.set(part.key, part.default);
|
173
174
|
applyChanges = true;
|
@@ -183,7 +184,7 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
183
184
|
if (value) {
|
184
185
|
this._editingDateObj = this.calendarService.create(value, this.type);
|
185
186
|
}
|
186
|
-
Object.values(this._editingParts).forEach(part => {
|
187
|
+
Object.values(this._editingParts).forEach((part) => {
|
187
188
|
if (value) {
|
188
189
|
if (part.typedValue != part.placeholder)
|
189
190
|
part.typedValue = part.realValue();
|
@@ -224,8 +225,8 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
224
225
|
ignore();
|
225
226
|
e.code === 'ArrowRight' ? goNext() : goPrev();
|
226
227
|
}
|
227
|
-
/*************** Handle Up and Down **************/
|
228
228
|
else if ((e.code === 'ArrowUp' || e.code === 'ArrowDown') && !e.ctrlKey) {
|
229
|
+
/*************** Handle Up and Down **************/
|
229
230
|
if (this.disabled || this.readonly) {
|
230
231
|
ignore();
|
231
232
|
return;
|
@@ -240,8 +241,8 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
240
241
|
this._detectValueChanges();
|
241
242
|
}
|
242
243
|
}
|
243
|
-
/*************** Handle Backspace **************/
|
244
244
|
else if (e.code == 'Backspace' || e.code == 'Delete') {
|
245
|
+
/*************** Handle Backspace **************/
|
245
246
|
if (this.disabled || this.readonly) {
|
246
247
|
return;
|
247
248
|
}
|
@@ -252,8 +253,8 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
252
253
|
goPrev();
|
253
254
|
}
|
254
255
|
}
|
255
|
-
/*************** Handle Backspace **************/
|
256
256
|
else if (e.code == 'Tab' || e.code == 'Space') {
|
257
|
+
/*************** Handle Backspace **************/
|
257
258
|
if (input.value) {
|
258
259
|
if (!e.shiftKey && nextPart) {
|
259
260
|
ignore();
|
@@ -274,115 +275,114 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
274
275
|
const editing = this._editingParts[part.key];
|
275
276
|
//
|
276
277
|
switch (part.key) {
|
277
|
-
case 'year':
|
278
|
-
{
|
279
|
-
|
280
|
-
|
278
|
+
case 'year': {
|
279
|
+
if (editing.placeholder.length == 2 && this._inputChars.length == 0) {
|
280
|
+
this._inputChars.push(...this.calendarService.now(this.type).format('yyyy').substring(0, 2).split(''));
|
281
|
+
}
|
282
|
+
if (this._inputChars.length < 4) {
|
283
|
+
editing.typedValue = `${this._inputChars.join('')}${e.key}`;
|
284
|
+
this._inputChars.push(e.key);
|
285
|
+
if (this._inputChars.length > 3) {
|
286
|
+
next = true;
|
281
287
|
}
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
+
}
|
289
|
+
else {
|
290
|
+
next = true;
|
291
|
+
}
|
292
|
+
editing.typedValue = ('0000' + editing.typedValue).slice(-4);
|
293
|
+
const nv = parseInt(editing.typedValue);
|
294
|
+
//if (nv > 0) {
|
295
|
+
const newVal = this.editingDateObj.set('year', nv);
|
296
|
+
this._editingDateObj = newVal;
|
297
|
+
this._detectValueChanges();
|
298
|
+
//}
|
299
|
+
break;
|
300
|
+
}
|
301
|
+
case 'month': {
|
302
|
+
if (this._inputChars.length == 0) {
|
303
|
+
this._inputChars.push(e.key);
|
304
|
+
editing.typedValue = `0${e.key}`;
|
305
|
+
if (parseInt(e.key) > 1) {
|
306
|
+
this._clearInputBuffer();
|
307
|
+
next = true;
|
308
|
+
}
|
309
|
+
}
|
310
|
+
else if (this._inputChars.length == 1) {
|
311
|
+
const newStr = parseInt(`${this._inputChars[0]}${e.key}`);
|
312
|
+
if (newStr > 12) {
|
313
|
+
editing.typedValue = `0${e.key}`;
|
288
314
|
}
|
289
315
|
else {
|
290
|
-
|
316
|
+
editing.typedValue = newStr.toString();
|
291
317
|
}
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
318
|
+
this._clearInputBuffer();
|
319
|
+
next = true;
|
320
|
+
}
|
321
|
+
editing.typedValue =
|
322
|
+
editing.typedValue?.length === 1 ? '0' + editing.typedValue : editing.typedValue;
|
323
|
+
const nv = parseInt(editing.typedValue);
|
324
|
+
if (nv > 0) {
|
325
|
+
const newVal = this.editingDateObj.set(part.key, nv);
|
296
326
|
this._editingDateObj = newVal;
|
297
327
|
this._detectValueChanges();
|
298
|
-
//}
|
299
|
-
break;
|
300
328
|
}
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
next = true;
|
309
|
-
}
|
310
|
-
}
|
311
|
-
else if (this._inputChars.length == 1) {
|
312
|
-
const newStr = parseInt(`${this._inputChars[0]}${e.key}`);
|
313
|
-
if (newStr > 12) {
|
314
|
-
editing.typedValue = `0${e.key}`;
|
315
|
-
}
|
316
|
-
else {
|
317
|
-
editing.typedValue = newStr.toString();
|
318
|
-
}
|
329
|
+
break;
|
330
|
+
}
|
331
|
+
case 'day': {
|
332
|
+
if (this._inputChars.length == 0) {
|
333
|
+
this._inputChars.push(e.key);
|
334
|
+
editing.typedValue = `0${e.key}`;
|
335
|
+
if (parseInt(e.key) > 3) {
|
319
336
|
this._clearInputBuffer();
|
320
337
|
next = true;
|
321
338
|
}
|
322
|
-
editing.typedValue = editing.typedValue?.length === 1 ? "0" + editing.typedValue : editing.typedValue;
|
323
|
-
const nv = parseInt(editing.typedValue);
|
324
|
-
if (nv > 0) {
|
325
|
-
const newVal = this.editingDateObj.set(part.key, nv);
|
326
|
-
this._editingDateObj = newVal;
|
327
|
-
this._detectValueChanges();
|
328
|
-
}
|
329
|
-
break;
|
330
339
|
}
|
331
|
-
|
332
|
-
|
333
|
-
if (this.
|
334
|
-
this._inputChars.push(e.key);
|
340
|
+
else if (this._inputChars.length == 1) {
|
341
|
+
const newStr = parseInt(`${this._inputChars[0]}${e.key}`);
|
342
|
+
if (newStr > this._editingDateObj.month.totalDays) {
|
335
343
|
editing.typedValue = `0${e.key}`;
|
336
|
-
if (parseInt(e.key) > 3) {
|
337
|
-
this._clearInputBuffer();
|
338
|
-
next = true;
|
339
|
-
}
|
340
344
|
}
|
341
|
-
else
|
342
|
-
|
343
|
-
if (newStr > this._editingDateObj.month.totalDays) {
|
344
|
-
editing.typedValue = `0${e.key}`;
|
345
|
-
}
|
346
|
-
else {
|
347
|
-
editing.typedValue = newStr.toString();
|
348
|
-
}
|
349
|
-
this._clearInputBuffer();
|
350
|
-
next = true;
|
345
|
+
else {
|
346
|
+
editing.typedValue = newStr.toString();
|
351
347
|
}
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
348
|
+
this._clearInputBuffer();
|
349
|
+
next = true;
|
350
|
+
}
|
351
|
+
editing.typedValue =
|
352
|
+
editing.typedValue?.length === 1 ? '0' + editing.typedValue : editing.typedValue;
|
353
|
+
const nv = parseInt(editing.typedValue);
|
354
|
+
if (nv > 0) {
|
355
|
+
const newVal = this.editingDateObj.set(part.key, nv);
|
356
|
+
this._editingDateObj = newVal;
|
357
|
+
this._detectValueChanges();
|
358
|
+
}
|
359
|
+
break;
|
360
|
+
}
|
361
|
+
case 'hour': {
|
362
|
+
if (this._inputChars.length == 0) {
|
363
|
+
this._inputChars.push(e.key);
|
364
|
+
editing.typedValue = `0${e.key}`;
|
365
|
+
if (parseInt(e.key) > 2) {
|
366
|
+
next = true;
|
358
367
|
}
|
359
|
-
break;
|
360
368
|
}
|
361
|
-
|
362
|
-
|
363
|
-
if (
|
364
|
-
this._inputChars.push(e.key);
|
369
|
+
else if (this._inputChars.length == 1) {
|
370
|
+
const newStr = parseInt(`${this._inputChars[0]}${e.key}`);
|
371
|
+
if (newStr > 23) {
|
365
372
|
editing.typedValue = `0${e.key}`;
|
366
|
-
if (parseInt(e.key) > 2) {
|
367
|
-
next = true;
|
368
|
-
}
|
369
373
|
}
|
370
|
-
else
|
371
|
-
|
372
|
-
if (newStr > 23) {
|
373
|
-
editing.typedValue = `0${e.key}`;
|
374
|
-
}
|
375
|
-
else {
|
376
|
-
editing.typedValue = newStr.toString();
|
377
|
-
}
|
378
|
-
next = true;
|
374
|
+
else {
|
375
|
+
editing.typedValue = newStr.toString();
|
379
376
|
}
|
380
|
-
|
381
|
-
const newVal = this.editingDateObj.set('hour', parseInt(editing.typedValue));
|
382
|
-
this._editingDateObj = newVal;
|
383
|
-
this._detectValueChanges();
|
384
|
-
break;
|
377
|
+
next = true;
|
385
378
|
}
|
379
|
+
editing.typedValue =
|
380
|
+
editing.typedValue?.length === 1 ? '0' + editing.typedValue : editing.typedValue;
|
381
|
+
const newVal = this.editingDateObj.set('hour', parseInt(editing.typedValue));
|
382
|
+
this._editingDateObj = newVal;
|
383
|
+
this._detectValueChanges();
|
384
|
+
break;
|
385
|
+
}
|
386
386
|
case 'minute':
|
387
387
|
case 'second':
|
388
388
|
if (this._inputChars.length == 0) {
|
@@ -404,7 +404,8 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
404
404
|
this._clearInputBuffer();
|
405
405
|
next = true;
|
406
406
|
}
|
407
|
-
editing.typedValue =
|
407
|
+
editing.typedValue =
|
408
|
+
editing.typedValue?.length === 1 ? '0' + editing.typedValue : editing.typedValue;
|
408
409
|
const newVal = this.editingDateObj.set(part.key, parseInt(editing.typedValue));
|
409
410
|
this._editingDateObj = newVal;
|
410
411
|
this._detectValueChanges();
|
@@ -435,7 +436,11 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
435
436
|
setTimeout(() => {
|
436
437
|
this._detectPartAtPosition();
|
437
438
|
}, 0);
|
438
|
-
|
439
|
+
this.onClick.emit({
|
440
|
+
component: this,
|
441
|
+
htmlElement: this.getHostElement(),
|
442
|
+
nativeEvent: e,
|
443
|
+
});
|
439
444
|
}
|
440
445
|
_detectPartAtPosition() {
|
441
446
|
const input = this.input.nativeElement;
|
@@ -445,16 +450,16 @@ class AXDateTimeInputComponent extends MXInputBaseValueComponent {
|
|
445
450
|
const re = /[a-zA-Z0-9]+/gi;
|
446
451
|
const valueParts = Array.from(input.value.matchAll(re));
|
447
452
|
const orderedParts = this._getOrderedParts();
|
448
|
-
const index = valueParts.findIndex((c) => c.index <= sStart &&
|
453
|
+
const index = valueParts.findIndex((c) => c.index <= sStart && c.index + c[0].length >= sStart);
|
449
454
|
this.activePart = orderedParts[index].key;
|
450
455
|
this._highlightActivePart();
|
451
456
|
}
|
452
457
|
_highlightActivePart() {
|
453
|
-
const input = this.input
|
454
|
-
if (!input.value || !this.activePart)
|
458
|
+
const input = this.input?.nativeElement;
|
459
|
+
if (!input || !input.value || !this.activePart)
|
455
460
|
return;
|
456
461
|
const orderedParts = this._getOrderedParts();
|
457
|
-
const index = orderedParts.findIndex(c => c.key == this.activePart);
|
462
|
+
const index = orderedParts.findIndex((c) => c.key == this.activePart);
|
458
463
|
const re = /[a-zA-Z0-9]+/gi;
|
459
464
|
const valueParts = Array.from(input.value.matchAll(re));
|
460
465
|
const { start, end } = AXStringUtil.getWordBoundsAtPosition(input.value, valueParts[index]?.index);
|
@@ -512,14 +517,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.9", ngImpor
|
|
512
517
|
type: Input
|
513
518
|
}], formatChange: [{
|
514
519
|
type: Output
|
520
|
+
}], onClick: [{
|
521
|
+
type: Output
|
515
522
|
}], format: [{
|
516
523
|
type: Input
|
517
524
|
}], _handleOnKeydownEvent: [{
|
518
525
|
type: HostListener,
|
519
|
-
args: [
|
526
|
+
args: ['keydown', ['$event']]
|
520
527
|
}], _handleKeyUpEvent: [{
|
521
528
|
type: HostListener,
|
522
|
-
args: [
|
529
|
+
args: ['keyup', ['$event']]
|
523
530
|
}] } });
|
524
531
|
|
525
532
|
const COMPONENT = [AXDateTimeInputComponent];
|