@acorex/components 6.1.12 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-sheet/src/action-sheet-item.component.d.ts +1 -1
- package/action-sheet/src/action-sheet.component.d.ts +1 -1
- package/alert/src/alert-button.directive.d.ts +1 -1
- package/alert/src/alert.component.d.ts +3 -3
- package/avatar/src/avatar-group.component.d.ts +1 -1
- package/avatar/src/avatar.component.d.ts +1 -1
- package/badge/src/badge.component.d.ts +3 -3
- package/breadcrumbs/src/breadcrumbs-item.component.d.ts +9 -7
- package/breadcrumbs/src/breadcrumbs.component.d.ts +1 -1
- package/button/src/button-group.component.d.ts +7 -7
- package/button/src/button-item.component.d.ts +7 -7
- package/button/src/button.component.d.ts +1 -1
- package/calendar/src/calendar.component.d.ts +1 -2
- package/checkbox/src/checkbox.component.d.ts +1 -1
- package/chips/index.d.ts +5 -0
- package/chips/public-api.d.ts +2 -0
- package/chips/src/chips.component.d.ts +13 -0
- package/chips/src/chips.module.d.ts +8 -0
- package/collapse/src/collapse-group.component.d.ts +1 -1
- package/collapse/src/collapse.component.d.ts +1 -1
- package/color-palette/src/color-palette-input.component.d.ts +3 -3
- package/color-palette/src/color-palette-picker.component.d.ts +1 -1
- package/color-palette/src/color-palette-preview.component.d.ts +1 -1
- package/color-palette/src/color-palette-swatches.component.d.ts +1 -1
- package/color-palette/src/color-palette.component.d.ts +1 -1
- package/color-picker/src/color-picker.component.d.ts +25 -23
- package/common/src/auto-focus.directive.d.ts +1 -1
- package/common/src/debounce-time.directive.d.ts +1 -1
- package/common/src/hotkey.directive.d.ts +1 -1
- package/common/src/infinite-scroll.directive.d.ts +1 -1
- package/common/src/responsive.directive.d.ts +1 -1
- package/common/src/styles.class.d.ts +2 -2
- package/context-menu/src/context-menu.component.d.ts +1 -1
- package/data-pager/src/data-pager-info.component.d.ts +1 -1
- package/data-pager/src/data-pager-input-selector.component.d.ts +1 -1
- package/data-pager/src/data-pager-next-buttons.components.d.ts +1 -1
- package/data-pager/src/data-pager-numeric-selector.component.d.ts +1 -1
- package/data-pager/src/data-pager-pagesize-dropdown.component.d.ts +1 -1
- package/data-pager/src/data-pager-prev-buttons.component.d.ts +1 -1
- package/data-pager/src/data-pager.component.d.ts +1 -1
- package/data-table/src/data-column-cell-template.directive.d.ts +1 -1
- package/data-table/src/data-column.directive.d.ts +1 -1
- package/data-table/src/data-table.component.d.ts +1 -1
- package/date-picker/src/datepicker.component.d.ts +16 -17
- package/decorators/src/close-button.component.d.ts +1 -1
- package/decorators/src/content.component.d.ts +1 -1
- package/decorators/src/footer.component.d.ts +1 -1
- package/decorators/src/header.component.d.ts +1 -1
- package/decorators/src/icon.component.d.ts +1 -1
- package/decorators/src/overlay.component.d.ts +1 -1
- package/decorators/src/placeholder.component.d.ts +1 -1
- package/decorators/src/prefix.component.d.ts +1 -1
- package/decorators/src/sub-title.component.d.ts +1 -1
- package/decorators/src/suffix.component.d.ts +1 -1
- package/decorators/src/text.component.d.ts +1 -1
- package/decorators/src/title.component.d.ts +1 -1
- package/dialog/src/dialog.component.d.ts +1 -1
- package/drawer/src/drawer-container.component.d.ts +1 -1
- package/drawer/src/drawer.component.d.ts +1 -1
- package/dropdown/src/dropdown-panel.component.d.ts +1 -1
- package/esm2020/action-sheet/src/action-sheet-item.component.mjs +5 -5
- package/esm2020/action-sheet/src/action-sheet.component.mjs +8 -8
- package/esm2020/action-sheet/src/action-sheet.module.mjs +4 -4
- package/esm2020/alert/src/alert-button.directive.mjs +3 -3
- package/esm2020/alert/src/alert.component.mjs +9 -12
- package/esm2020/alert/src/alert.module.mjs +4 -4
- package/esm2020/avatar/src/avatar-group.component.mjs +4 -5
- package/esm2020/avatar/src/avatar.component.mjs +5 -5
- package/esm2020/avatar/src/avatar.module.mjs +4 -4
- package/esm2020/badge/src/badge.component.mjs +7 -9
- package/esm2020/badge/src/badge.module.mjs +4 -4
- package/esm2020/breadcrumbs/src/breadcrumbs-item.component.mjs +14 -6
- package/esm2020/breadcrumbs/src/breadcrumbs.component.mjs +6 -6
- package/esm2020/breadcrumbs/src/breadcrumbs.module.mjs +4 -4
- package/esm2020/button/src/button-group.component.mjs +5 -5
- package/esm2020/button/src/button-item.component.mjs +5 -5
- package/esm2020/button/src/button.component.mjs +10 -7
- package/esm2020/button/src/button.module.mjs +4 -4
- package/esm2020/calendar/src/calendar.class.mjs +3 -3
- package/esm2020/calendar/src/calendar.component.mjs +6 -8
- package/esm2020/calendar/src/calendar.module.mjs +4 -4
- package/esm2020/checkbox/src/checkbox.component.mjs +5 -5
- package/esm2020/checkbox/src/checkbox.module.mjs +4 -4
- package/esm2020/chips/acorex-components-chips.mjs +5 -0
- package/esm2020/chips/public-api.mjs +3 -0
- package/esm2020/chips/src/chips.component.mjs +32 -0
- package/esm2020/chips/src/chips.module.mjs +19 -0
- package/esm2020/collapse/src/collapse-group.component.mjs +3 -3
- package/esm2020/collapse/src/collapse.component.mjs +5 -5
- package/esm2020/collapse/src/collapse.module.mjs +4 -4
- package/esm2020/color-palette/src/color-palette-input.component.mjs +10 -12
- package/esm2020/color-palette/src/color-palette-picker.component.mjs +3 -3
- package/esm2020/color-palette/src/color-palette-preview.component.mjs +3 -3
- package/esm2020/color-palette/src/color-palette-swatches.component.mjs +3 -3
- package/esm2020/color-palette/src/color-palette.class.mjs +6 -6
- package/esm2020/color-palette/src/color-palette.component.mjs +7 -7
- package/esm2020/color-palette/src/color-palette.module.mjs +4 -4
- package/esm2020/color-picker/src/color-picker.component.mjs +10 -12
- package/esm2020/color-picker/src/color-picker.module.mjs +4 -4
- package/esm2020/common/src/auto-focus.directive.mjs +3 -3
- package/esm2020/common/src/common.module.mjs +4 -4
- package/esm2020/common/src/components.class.mjs +18 -18
- package/esm2020/common/src/custom-cdk-overlay.service.mjs +6 -6
- package/esm2020/common/src/debounce-time.directive.mjs +3 -3
- package/esm2020/common/src/hotkey.directive.mjs +3 -3
- package/esm2020/common/src/hotkey.service.mjs +3 -3
- package/esm2020/common/src/infinite-scroll.directive.mjs +3 -3
- package/esm2020/common/src/overlay.service.mjs +3 -3
- package/esm2020/common/src/responsive.directive.mjs +3 -3
- package/esm2020/common/src/styles.class.mjs +1 -1
- package/esm2020/context-menu/src/context-menu.component.mjs +5 -5
- package/esm2020/context-menu/src/context-menu.module.mjs +4 -4
- package/esm2020/data-pager/src/data-pager-base.component.mjs +6 -6
- package/esm2020/data-pager/src/data-pager-info.component.mjs +3 -3
- package/esm2020/data-pager/src/data-pager-input-selector.component.mjs +6 -6
- package/esm2020/data-pager/src/data-pager-next-buttons.components.mjs +12 -12
- package/esm2020/data-pager/src/data-pager-numeric-selector.component.mjs +18 -18
- package/esm2020/data-pager/src/data-pager-pagesize-dropdown.component.mjs +8 -8
- package/esm2020/data-pager/src/data-pager-prev-buttons.component.mjs +12 -12
- package/esm2020/data-pager/src/data-pager.component.mjs +5 -5
- package/esm2020/data-pager/src/data-pager.module.mjs +4 -4
- package/esm2020/data-table/src/data-column-cell-template.directive.mjs +3 -3
- package/esm2020/data-table/src/data-column.directive.mjs +3 -3
- package/esm2020/data-table/src/data-table.component.mjs +5 -5
- package/esm2020/data-table/src/data-table.module.mjs +4 -4
- package/esm2020/date-picker/src/datepicker.component.mjs +10 -11
- package/esm2020/date-picker/src/datepicker.module.mjs +4 -4
- package/esm2020/decorators/src/close-button.component.mjs +6 -6
- package/esm2020/decorators/src/content.component.mjs +3 -3
- package/esm2020/decorators/src/decorators.module.mjs +4 -4
- package/esm2020/decorators/src/footer.component.mjs +3 -3
- package/esm2020/decorators/src/header.component.mjs +3 -3
- package/esm2020/decorators/src/icon.component.mjs +5 -5
- package/esm2020/decorators/src/overlay.component.mjs +3 -3
- package/esm2020/decorators/src/placeholder.component.mjs +3 -3
- package/esm2020/decorators/src/prefix.component.mjs +3 -3
- package/esm2020/decorators/src/sub-title.component.mjs +3 -3
- package/esm2020/decorators/src/suffix.component.mjs +3 -3
- package/esm2020/decorators/src/text.component.mjs +3 -3
- package/esm2020/decorators/src/title.component.mjs +3 -3
- package/esm2020/dialog/src/dialog.component.mjs +9 -9
- package/esm2020/dialog/src/dialog.module.mjs +4 -4
- package/esm2020/dialog/src/dialog.service.mjs +5 -5
- package/esm2020/drawer/src/drawer-container.component.mjs +4 -5
- package/esm2020/drawer/src/drawer.component.mjs +12 -19
- package/esm2020/drawer/src/drawer.module.mjs +4 -4
- package/esm2020/dropdown/src/dropdown-panel.component.mjs +4 -4
- package/esm2020/dropdown/src/dropdown.module.mjs +4 -4
- package/esm2020/form/src/form-field.component.mjs +5 -11
- package/esm2020/form/src/form-hint.component.mjs +5 -5
- package/esm2020/form/src/form.component.mjs +3 -3
- package/esm2020/form/src/form.module.mjs +4 -4
- package/esm2020/form/src/validation-rule.widget.mjs +3 -3
- package/esm2020/form/src/validation-summary.component.mjs +3 -3
- package/esm2020/image/src/image.component.mjs +5 -5
- package/esm2020/image/src/image.module.mjs +4 -4
- package/esm2020/label/src/label.component.mjs +5 -5
- package/esm2020/label/src/label.module.mjs +4 -4
- package/esm2020/loading/src/loading-spinner.component.mjs +6 -6
- package/esm2020/loading/src/loading.component.mjs +7 -13
- package/esm2020/loading/src/loading.directive.mjs +3 -3
- package/esm2020/loading/src/loading.module.mjs +4 -4
- package/esm2020/loading/src/loading.service.mjs +3 -3
- package/esm2020/menu/src/menu.component.mjs +7 -8
- package/esm2020/menu/src/menu.module.mjs +4 -4
- package/esm2020/mixin/src/base-components.class.mjs +3 -3
- package/esm2020/mixin/src/value-mixin.class.mjs +4 -4
- package/esm2020/number-box/src/number-box.component.mjs +7 -9
- package/esm2020/number-box/src/number-box.module.mjs +4 -4
- package/esm2020/page/src/base-page.class.mjs +3 -3
- package/esm2020/page/src/page.component.mjs +3 -3
- package/esm2020/page/src/page.module.mjs +4 -4
- package/esm2020/password-box/src/password-box.component.mjs +8 -10
- package/esm2020/password-box/src/password-box.module.mjs +4 -4
- package/esm2020/popover/src/popover.component.mjs +3 -3
- package/esm2020/popover/src/popover.module.mjs +4 -4
- package/esm2020/popup/src/popup.component.mjs +5 -6
- package/esm2020/popup/src/popup.module.mjs +4 -4
- package/esm2020/popup/src/popup.service.mjs +3 -3
- package/esm2020/progress-bar/src/progress-bar.component.mjs +6 -6
- package/esm2020/progress-bar/src/progress-bar.module.mjs +4 -4
- package/esm2020/radio/src/radio.component.mjs +13 -8
- package/esm2020/radio/src/radio.module.mjs +4 -4
- package/esm2020/range-slider/src/range-slider.component.mjs +6 -6
- package/esm2020/range-slider/src/range-slider.module.mjs +4 -4
- package/esm2020/rating/src/rating.component.mjs +5 -5
- package/esm2020/rating/src/rating.component.module.mjs +4 -4
- package/esm2020/result/src/result.component.mjs +6 -6
- package/esm2020/result/src/result.module.mjs +4 -4
- package/esm2020/search-box/src/search-box.component.mjs +9 -10
- package/esm2020/search-box/src/search-box.module.mjs +4 -4
- package/esm2020/select-box/src/selectbox.component.mjs +14 -14
- package/esm2020/select-box/src/selectbox.module.mjs +4 -4
- package/esm2020/selection-list/src/selection-list.component.mjs +5 -5
- package/esm2020/selection-list/src/selection-list.module.mjs +4 -4
- package/esm2020/switch/src/switch.component.mjs +5 -5
- package/esm2020/switch/src/switch.module.mjs +4 -4
- package/esm2020/tabs/src/tab-content.directive.mjs +3 -3
- package/esm2020/tabs/src/tab-item.component.mjs +3 -3
- package/esm2020/tabs/src/tabs.class.mjs +1 -1
- package/esm2020/tabs/src/tabs.component.mjs +8 -14
- package/esm2020/tabs/src/tabs.module.mjs +4 -4
- package/esm2020/tag/acorex-components-tag.mjs +5 -0
- package/esm2020/tag/public-api.mjs +3 -0
- package/esm2020/tag/src/tag.component.mjs +29 -0
- package/esm2020/tag/src/tag.module.mjs +19 -0
- package/esm2020/textarea/src/textarea.component.mjs +5 -5
- package/esm2020/textarea/src/textarea.module.mjs +4 -4
- package/esm2020/textbox/src/mask-options.directive.mjs +3 -3
- package/esm2020/textbox/src/textbox.component.mjs +3 -3
- package/esm2020/textbox/src/textbox.module.mjs +4 -4
- package/esm2020/time-box/src/time-box.component.mjs +3 -3
- package/esm2020/time-box/src/time-box.module.mjs +4 -4
- package/esm2020/toast/src/toast.component.mjs +8 -8
- package/esm2020/toast/src/toast.module.mjs +4 -4
- package/esm2020/toast/src/toast.service.mjs +4 -25
- package/esm2020/tooltip/src/tooltip.component.mjs +6 -6
- package/esm2020/tooltip/src/tooltip.directive.mjs +5 -5
- package/esm2020/tooltip/src/tooltip.module.mjs +4 -4
- package/esm2020/tree-view/src/tree-view.component.mjs +5 -5
- package/esm2020/tree-view/src/tree-view.module.mjs +4 -4
- package/esm2020/uploader/src/uploader.component.mjs +5 -5
- package/esm2020/uploader/src/uploader.module.mjs +4 -4
- package/fesm2015/acorex-components-action-sheet.mjs +15 -15
- package/fesm2015/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2015/acorex-components-alert.mjs +15 -18
- package/fesm2015/acorex-components-alert.mjs.map +1 -1
- package/fesm2015/acorex-components-avatar.mjs +11 -12
- package/fesm2015/acorex-components-avatar.mjs.map +1 -1
- package/fesm2015/acorex-components-badge.mjs +10 -12
- package/fesm2015/acorex-components-badge.mjs.map +1 -1
- package/fesm2015/acorex-components-breadcrumbs.mjs +21 -13
- package/fesm2015/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2015/acorex-components-button.mjs +21 -18
- package/fesm2015/acorex-components-button.mjs.map +1 -1
- package/fesm2015/acorex-components-calendar.mjs +12 -14
- package/fesm2015/acorex-components-calendar.mjs.map +1 -1
- package/fesm2015/acorex-components-checkbox.mjs +8 -8
- package/fesm2015/acorex-components-checkbox.mjs.map +1 -1
- package/fesm2015/acorex-components-chips.mjs +55 -0
- package/fesm2015/acorex-components-chips.mjs.map +1 -0
- package/fesm2015/acorex-components-collapse.mjs +11 -11
- package/fesm2015/acorex-components-collapse.mjs.map +1 -1
- package/fesm2015/acorex-components-color-palette.mjs +34 -36
- package/fesm2015/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2015/acorex-components-color-picker.mjs +15 -17
- package/fesm2015/acorex-components-color-picker.mjs.map +1 -1
- package/fesm2015/acorex-components-common.mjs +49 -49
- package/fesm2015/acorex-components-common.mjs.map +1 -1
- package/fesm2015/acorex-components-context-menu.mjs +8 -8
- package/fesm2015/acorex-components-context-menu.mjs.map +1 -1
- package/fesm2015/acorex-components-data-pager.mjs +68 -68
- package/fesm2015/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2015/acorex-components-data-table.mjs +14 -14
- package/fesm2015/acorex-components-data-table.mjs.map +1 -1
- package/fesm2015/acorex-components-date-picker.mjs +14 -15
- package/fesm2015/acorex-components-date-picker.mjs.map +1 -1
- package/fesm2015/acorex-components-decorators.mjs +43 -43
- package/fesm2015/acorex-components-decorators.mjs.map +1 -1
- package/fesm2015/acorex-components-dialog.mjs +16 -16
- package/fesm2015/acorex-components-dialog.mjs.map +1 -1
- package/fesm2015/acorex-components-drawer.mjs +18 -26
- package/fesm2015/acorex-components-drawer.mjs.map +1 -1
- package/fesm2015/acorex-components-dropdown.mjs +7 -7
- package/fesm2015/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2015/acorex-components-form.mjs +21 -27
- package/fesm2015/acorex-components-form.mjs.map +1 -1
- package/fesm2015/acorex-components-image.mjs +8 -8
- package/fesm2015/acorex-components-image.mjs.map +1 -1
- package/fesm2015/acorex-components-label.mjs +8 -8
- package/fesm2015/acorex-components-label.mjs.map +1 -1
- package/fesm2015/acorex-components-loading.mjs +21 -27
- package/fesm2015/acorex-components-loading.mjs.map +1 -1
- package/fesm2015/acorex-components-menu.mjs +11 -12
- package/fesm2015/acorex-components-menu.mjs.map +1 -1
- package/fesm2015/acorex-components-mixin.mjs +6 -6
- package/fesm2015/acorex-components-mixin.mjs.map +1 -1
- package/fesm2015/acorex-components-number-box.mjs +10 -12
- package/fesm2015/acorex-components-number-box.mjs.map +1 -1
- package/fesm2015/acorex-components-page.mjs +10 -10
- package/fesm2015/acorex-components-password-box.mjs +11 -13
- package/fesm2015/acorex-components-password-box.mjs.map +1 -1
- package/fesm2015/acorex-components-popover.mjs +7 -7
- package/fesm2015/acorex-components-popup.mjs +12 -13
- package/fesm2015/acorex-components-popup.mjs.map +1 -1
- package/fesm2015/acorex-components-progress-bar.mjs +9 -9
- package/fesm2015/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2015/acorex-components-radio.mjs +16 -11
- package/fesm2015/acorex-components-radio.mjs.map +1 -1
- package/fesm2015/acorex-components-range-slider.mjs +9 -9
- package/fesm2015/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2015/acorex-components-rating.mjs +8 -8
- package/fesm2015/acorex-components-rating.mjs.map +1 -1
- package/fesm2015/acorex-components-result.mjs +9 -9
- package/fesm2015/acorex-components-result.mjs.map +1 -1
- package/fesm2015/acorex-components-search-box.mjs +13 -14
- package/fesm2015/acorex-components-search-box.mjs.map +1 -1
- package/fesm2015/acorex-components-select-box.mjs +18 -18
- package/fesm2015/acorex-components-select-box.mjs.map +1 -1
- package/fesm2015/acorex-components-selection-list.mjs +8 -8
- package/fesm2015/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2015/acorex-components-switch.mjs +8 -8
- package/fesm2015/acorex-components-switch.mjs.map +1 -1
- package/fesm2015/acorex-components-tabs.mjs +17 -23
- package/fesm2015/acorex-components-tabs.mjs.map +1 -1
- package/fesm2015/acorex-components-tag.mjs +52 -0
- package/fesm2015/acorex-components-tag.mjs.map +1 -0
- package/fesm2015/acorex-components-textarea.mjs +8 -8
- package/fesm2015/acorex-components-textarea.mjs.map +1 -1
- package/fesm2015/acorex-components-textbox.mjs +10 -10
- package/fesm2015/acorex-components-time-box.mjs +7 -7
- package/fesm2015/acorex-components-toast.mjs +14 -35
- package/fesm2015/acorex-components-toast.mjs.map +1 -1
- package/fesm2015/acorex-components-tooltip.mjs +13 -13
- package/fesm2015/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2015/acorex-components-tree-view.mjs +8 -8
- package/fesm2015/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2015/acorex-components-uploader.mjs +8 -8
- package/fesm2015/acorex-components-uploader.mjs.map +1 -1
- package/fesm2020/acorex-components-action-sheet.mjs +15 -15
- package/fesm2020/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2020/acorex-components-alert.mjs +15 -18
- package/fesm2020/acorex-components-alert.mjs.map +1 -1
- package/fesm2020/acorex-components-avatar.mjs +11 -12
- package/fesm2020/acorex-components-avatar.mjs.map +1 -1
- package/fesm2020/acorex-components-badge.mjs +10 -12
- package/fesm2020/acorex-components-badge.mjs.map +1 -1
- package/fesm2020/acorex-components-breadcrumbs.mjs +21 -13
- package/fesm2020/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2020/acorex-components-button.mjs +21 -18
- package/fesm2020/acorex-components-button.mjs.map +1 -1
- package/fesm2020/acorex-components-calendar.mjs +12 -14
- package/fesm2020/acorex-components-calendar.mjs.map +1 -1
- package/fesm2020/acorex-components-checkbox.mjs +8 -8
- package/fesm2020/acorex-components-checkbox.mjs.map +1 -1
- package/fesm2020/acorex-components-chips.mjs +55 -0
- package/fesm2020/acorex-components-chips.mjs.map +1 -0
- package/fesm2020/acorex-components-collapse.mjs +11 -11
- package/fesm2020/acorex-components-collapse.mjs.map +1 -1
- package/fesm2020/acorex-components-color-palette.mjs +34 -36
- package/fesm2020/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2020/acorex-components-color-picker.mjs +15 -17
- package/fesm2020/acorex-components-color-picker.mjs.map +1 -1
- package/fesm2020/acorex-components-common.mjs +49 -49
- package/fesm2020/acorex-components-common.mjs.map +1 -1
- package/fesm2020/acorex-components-context-menu.mjs +8 -8
- package/fesm2020/acorex-components-context-menu.mjs.map +1 -1
- package/fesm2020/acorex-components-data-pager.mjs +68 -68
- package/fesm2020/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2020/acorex-components-data-table.mjs +14 -14
- package/fesm2020/acorex-components-data-table.mjs.map +1 -1
- package/fesm2020/acorex-components-date-picker.mjs +14 -15
- package/fesm2020/acorex-components-date-picker.mjs.map +1 -1
- package/fesm2020/acorex-components-decorators.mjs +43 -43
- package/fesm2020/acorex-components-decorators.mjs.map +1 -1
- package/fesm2020/acorex-components-dialog.mjs +16 -16
- package/fesm2020/acorex-components-dialog.mjs.map +1 -1
- package/fesm2020/acorex-components-drawer.mjs +18 -26
- package/fesm2020/acorex-components-drawer.mjs.map +1 -1
- package/fesm2020/acorex-components-dropdown.mjs +7 -7
- package/fesm2020/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2020/acorex-components-form.mjs +21 -27
- package/fesm2020/acorex-components-form.mjs.map +1 -1
- package/fesm2020/acorex-components-image.mjs +8 -8
- package/fesm2020/acorex-components-image.mjs.map +1 -1
- package/fesm2020/acorex-components-label.mjs +8 -8
- package/fesm2020/acorex-components-label.mjs.map +1 -1
- package/fesm2020/acorex-components-loading.mjs +21 -27
- package/fesm2020/acorex-components-loading.mjs.map +1 -1
- package/fesm2020/acorex-components-menu.mjs +11 -12
- package/fesm2020/acorex-components-menu.mjs.map +1 -1
- package/fesm2020/acorex-components-mixin.mjs +6 -6
- package/fesm2020/acorex-components-mixin.mjs.map +1 -1
- package/fesm2020/acorex-components-number-box.mjs +10 -12
- package/fesm2020/acorex-components-number-box.mjs.map +1 -1
- package/fesm2020/acorex-components-page.mjs +10 -10
- package/fesm2020/acorex-components-password-box.mjs +11 -13
- package/fesm2020/acorex-components-password-box.mjs.map +1 -1
- package/fesm2020/acorex-components-popover.mjs +7 -7
- package/fesm2020/acorex-components-popup.mjs +12 -13
- package/fesm2020/acorex-components-popup.mjs.map +1 -1
- package/fesm2020/acorex-components-progress-bar.mjs +9 -9
- package/fesm2020/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2020/acorex-components-radio.mjs +16 -11
- package/fesm2020/acorex-components-radio.mjs.map +1 -1
- package/fesm2020/acorex-components-range-slider.mjs +9 -9
- package/fesm2020/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2020/acorex-components-rating.mjs +8 -8
- package/fesm2020/acorex-components-rating.mjs.map +1 -1
- package/fesm2020/acorex-components-result.mjs +9 -9
- package/fesm2020/acorex-components-result.mjs.map +1 -1
- package/fesm2020/acorex-components-search-box.mjs +13 -14
- package/fesm2020/acorex-components-search-box.mjs.map +1 -1
- package/fesm2020/acorex-components-select-box.mjs +18 -18
- package/fesm2020/acorex-components-select-box.mjs.map +1 -1
- package/fesm2020/acorex-components-selection-list.mjs +8 -8
- package/fesm2020/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2020/acorex-components-switch.mjs +8 -8
- package/fesm2020/acorex-components-switch.mjs.map +1 -1
- package/fesm2020/acorex-components-tabs.mjs +17 -23
- package/fesm2020/acorex-components-tabs.mjs.map +1 -1
- package/fesm2020/acorex-components-tag.mjs +52 -0
- package/fesm2020/acorex-components-tag.mjs.map +1 -0
- package/fesm2020/acorex-components-textarea.mjs +8 -8
- package/fesm2020/acorex-components-textarea.mjs.map +1 -1
- package/fesm2020/acorex-components-textbox.mjs +10 -10
- package/fesm2020/acorex-components-time-box.mjs +7 -7
- package/fesm2020/acorex-components-toast.mjs +14 -35
- package/fesm2020/acorex-components-toast.mjs.map +1 -1
- package/fesm2020/acorex-components-tooltip.mjs +13 -13
- package/fesm2020/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2020/acorex-components-tree-view.mjs +8 -8
- package/fesm2020/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2020/acorex-components-uploader.mjs +8 -8
- package/fesm2020/acorex-components-uploader.mjs.map +1 -1
- package/form/src/form-field.component.d.ts +1 -1
- package/form/src/form-hint.component.d.ts +1 -1
- package/form/src/form.component.d.ts +1 -1
- package/form/src/validation-rule.widget.d.ts +1 -1
- package/form/src/validation-summary.component.d.ts +1 -1
- package/image/src/image.component.d.ts +1 -1
- package/label/src/label.component.d.ts +1 -1
- package/loading/src/loading-spinner.component.d.ts +1 -1
- package/loading/src/loading.component.d.ts +1 -1
- package/loading/src/loading.directive.d.ts +1 -1
- package/menu/src/menu.component.d.ts +1 -1
- package/mixin/src/base-components.class.d.ts +2 -2
- package/mixin/src/base-menu-mixin.class.d.ts +5 -5
- package/mixin/src/button-mixin.class.d.ts +2 -2
- package/mixin/src/clickable-mixin.class.d.ts +2 -2
- package/mixin/src/color-look-mixing.class.d.ts +2 -2
- package/mixin/src/datalist-component.class.d.ts +10 -10
- package/mixin/src/dropdown-mixin.class.d.ts +2 -2
- package/mixin/src/interactive-mixin.class.d.ts +4 -4
- package/mixin/src/loading-mixin.class.d.ts +2 -2
- package/mixin/src/mixin.class.d.ts +61 -61
- package/mixin/src/page-component.class.d.ts +2 -2
- package/mixin/src/selection-component.class.d.ts +2 -2
- package/mixin/src/sizable-mixin.class.d.ts +2 -2
- package/mixin/src/textbox-mixin.class.d.ts +2 -2
- package/mixin/src/value-mixin.class.d.ts +8 -8
- package/number-box/src/number-box.component.d.ts +2 -3
- package/package.json +20 -4
- package/password-box/src/password-box.component.d.ts +2 -2
- package/popover/src/popover.component.d.ts +1 -1
- package/popup/src/popup.component.d.ts +1 -1
- package/progress-bar/src/progress-bar.component.d.ts +1 -1
- package/radio/src/radio.component.d.ts +2 -1
- package/range-slider/src/range-slider.component.d.ts +1 -1
- package/rating/src/rating.component.d.ts +1 -1
- package/result/src/result.component.d.ts +2 -2
- package/scss/_mixin.scss +1 -0
- package/scss/_variable.scss +1 -0
- package/scss/index.scss +2 -0
- package/search-box/src/search-box.component.d.ts +1 -1
- package/select-box/src/selectbox.component.d.ts +2 -3
- package/selection-list/src/selection-list.component.d.ts +1 -1
- package/switch/src/switch.component.d.ts +1 -1
- package/tabs/src/tab-content.directive.d.ts +1 -1
- package/tabs/src/tab-item.component.d.ts +3 -3
- package/tabs/src/tabs.class.d.ts +1 -1
- package/tabs/src/tabs.component.d.ts +1 -1
- package/tag/index.d.ts +5 -0
- package/tag/public-api.d.ts +2 -0
- package/tag/src/tag.component.d.ts +11 -0
- package/tag/src/tag.module.d.ts +8 -0
- package/textarea/src/textarea.component.d.ts +1 -1
- package/textbox/src/mask-options.directive.d.ts +1 -1
- package/textbox/src/textbox.component.d.ts +1 -1
- package/time-box/src/time-box.component.d.ts +1 -1
- package/toast/src/toast.component.d.ts +1 -1
- package/toast/src/toast.service.d.ts +0 -3
- package/tooltip/src/tooltip.component.d.ts +1 -1
- package/tooltip/src/tooltip.directive.d.ts +1 -1
- package/tree-view/src/tree-view.component.d.ts +1 -1
- package/uploader/src/uploader.component.d.ts +1 -1
@@ -5,7 +5,6 @@ import { AXRangeChangedEvent } from '@acorex/components/common';
|
|
5
5
|
import { AXBaseComponent, _ClickableComponenetMixin, _InteractiveComponenetMixin, _ValueComponenetMixin } from '@acorex/components/mixin';
|
6
6
|
import { range } from 'lodash-es';
|
7
7
|
import { AXDateTime, AXDateTimeRange, AXDateTimeModule } from '@acorex/core/dateTime';
|
8
|
-
import { AXTranslator } from '@acorex/core/translation';
|
9
8
|
import * as i1 from '@angular/common';
|
10
9
|
import { CommonModule } from '@angular/common';
|
11
10
|
|
@@ -83,9 +82,9 @@ class AXCalendarBaseComponent extends AXBaseComponent {
|
|
83
82
|
this._setOption({ name: 'holidayDates', value: v });
|
84
83
|
}
|
85
84
|
}
|
86
|
-
AXCalendarBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
87
|
-
AXCalendarBaseComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
85
|
+
AXCalendarBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCalendarBaseComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
86
|
+
AXCalendarBaseComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCalendarBaseComponent });
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCalendarBaseComponent, decorators: [{
|
89
88
|
type: Injectable
|
90
89
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onSlotClick: [{
|
91
90
|
type: Output
|
@@ -137,7 +136,6 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
137
136
|
super(elementRef, cdr);
|
138
137
|
this.cdr = cdr;
|
139
138
|
this.interface = 'calendar';
|
140
|
-
this.todayText = AXTranslator.get('dateTime.today');
|
141
139
|
this._today = new AXDateTime(new Date(), this.type);
|
142
140
|
this._navText = '';
|
143
141
|
this._todayText = '';
|
@@ -272,7 +270,7 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
272
270
|
'ax-state-today': d.equal(this._today, 'day'),
|
273
271
|
'ax-state-selected': this.value && d.equal(this.value, 'day'),
|
274
272
|
'ax-state-holiday': this.isHoliday(d) || this.isWeekend(d),
|
275
|
-
// 'ax-state-event-
|
273
|
+
// 'ax-state-event-danger': d.dayOfMonth == 12,
|
276
274
|
// 'ax-state-event': d.dayOfMonth == 12,
|
277
275
|
};
|
278
276
|
}
|
@@ -469,9 +467,9 @@ class AXCalendarComponent extends AXCalendarComponentMixin {
|
|
469
467
|
}
|
470
468
|
}
|
471
469
|
}
|
472
|
-
AXCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
473
|
-
AXCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
474
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
470
|
+
AXCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCalendarComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
471
|
+
AXCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AXCalendarComponent, selector: "ax-calendar", inputs: { rtl: "rtl", readonly: "readonly", allowNull: "allowNull", value: "value", name: "name", checked: "checked", disabled: "disabled", tabIndex: "tabIndex", depth: "depth", activeView: "activeView", min: "min", max: "max", disabledDates: "disabledDates", type: "type", holidayDates: "holidayDates", interface: "interface" }, outputs: { valueChange: "valueChange", onValueChanged: "onValueChanged", onBlur: "onBlur", onFocus: "onFocus", depthChange: "depthChange", typeChange: "typeChange", disabledDatesChange: "disabledDatesChange", holidayDatesChange: "holidayDatesChange", onNavigate: "onNavigate" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"interface === 'calendar'; else pickerTemplate\">\r\n <div class=\"ax-calendar-header\">\r\n <div class=\"ax-calendar-header-info\">\r\n <ng-container *ngIf=\"activeView == 'days'; else elseTemplate\">\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button\"\r\n (click)=\"_handleNavClick($event)\">{{_navText.split(' ')[1]}}</button>\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button\"\r\n (click)=\"_handleNavClick($event)\">{{_navText.split(' ')[0]}}</button>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button\"\r\n (click)=\"_handleNavClick($event)\">{{_navText}}</button>\r\n </ng-template>\r\n </div>\r\n <div class=\"ax-calendar-header-buttons\">\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button ax-button-icon\"\r\n (click)=\"_handlePrevClick()\">\r\n <i class=\"ax-icon\" [ngClass]=\"{'ax-icon-chevron-left': !rtl,'ax-icon-chevron-right': rtl}\"></i>\r\n </button>\r\n\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button ax-button-icon\"\r\n (click)=\"_handleNextClick()\">\r\n <i class=\"ax-icon\" [ngClass]=\"{'ax-icon-chevron-left': rtl,'ax-icon-chevron-right': !rtl}\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"ax-calendar-body\">\r\n <div [ngSwitch]=\"activeView\">\r\n <ng-container *ngSwitchCase=\"'years'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-year\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'months'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-month\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"ax-calendar-week\">\r\n <div *ngFor=\"let d of _dayNames\">{{d}}</div>\r\n </div>\r\n <div class=\"ax-calendar-slots ax-calendar-slots-day\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"ax-calendar-footer\">\r\n <button class=\"ax-today-button\" [class.ax-state-disabled]=\"disabled\" [attr.disabled]=\"disabled || isDisabled(_today)\" (click)=\"_handleGoToday()\"\r\n *ngIf=\"activeView=='days'\">\r\n {{ _todayText }}\r\n </button>\r\n </div>\r\n</ng-container>\r\n<ng-template #pickerTemplate>\r\n <div class=\"ax-calendar-picker\">\r\n //TODO: picker\r\n </div>\r\n</ng-template>", styles: [".ax-dark ax-calendar{background:rgba(var(--ax-color-on-surface))}ax-calendar{display:block;background:rgba(var(--ax-color-surface));color:rgba(var(--ax-color-text-default));padding:.5rem}@media (max-width: 599px){ax-calendar{@apply ax-w-full;width:100%}}@media (min-width: 600px){ax-calendar{width:100%}}@media (min-width: 1200px){ax-calendar{width:20rem}}@media (min-width: 1800px){ax-calendar{width:20rem}}ax-calendar.ax-state-disabled .ax-calendar-slots{opacity:.5;cursor:default}ax-calendar .ax-calendar-header{display:flex;justify-content:space-between;padding:.25rem .5rem;margin-bottom:1.125rem}ax-calendar .ax-calendar-header .ax-calendar-header-info{font-weight:500}ax-calendar .ax-calendar-header .ax-calendar-header-buttons{display:flex}ax-calendar .ax-calendar-body{margin:.5rem}ax-calendar .ax-calendar-body .ax-calendar-slots{display:grid;gap:.25rem}ax-calendar .ax-calendar-body .ax-calendar-slots>div{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;font-size:.875rem;color:rgba(var(--ax-color-text-default));border-radius:var(--ax-rounded-border-default);cursor:pointer}ax-calendar .ax-calendar-body .ax-calendar-slots>div:before{content:\"\";padding-top:100%;float:left}ax-calendar .ax-calendar-body .ax-calendar-slots>div:after{content:\"\";display:block;clear:both}ax-calendar .ax-calendar-body .ax-calendar-slots>div:hover:not(ax-calendar .ax-calendar-body .ax-calendar-slots > div:hover.ax-state-disabled,ax-calendar .ax-calendar-body .ax-calendar-slots > div:hover.ax-state-selected,ax-calendar .ax-calendar-body .ax-calendar-slots > div:hover.ax-state-today){background-color:rgba(var(--ax-color-surface-08))}ax-calendar .ax-calendar-body .ax-calendar-slots>div:focus:not(ax-calendar .ax-calendar-body .ax-calendar-slots > div:focus.ax-state-disabled){outline-width:2px;outline-style:solid;outline-color:rgb(var(--ax-color-primary))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-holiday{color:rgba(var(--ax-color-danger))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-today{border:1px solid;border-color:rgba(var(--ax-color-primary));color:rgba(var(--ax-color-primary));border-radius:999rem}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-other{opacity:.5}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-selected{background-color:rgba(var(--ax-color-primary));color:rgba(var(--ax-color-primary-fore));border-radius:var(--ax-rounded-border-default)}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event:after{content:\"\";position:absolute;top:80%;left:0;right:0;margin:auto;width:.25rem;height:.25rem;border-radius:999rem}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event-primary:after{background-color:rgb(var(--ax-color-primary))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event-secondary:after{background-color:rgb(var(--ax-color-secondary))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event-success:after{background-color:rgb(var(--ax-color-success))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event-warning:after{background-color:rgb(var(--ax-color-warning))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event-danger:after{background-color:rgb(var(--ax-color-danger))}ax-calendar .ax-calendar-body .ax-calendar-slots.ax-calendar-slots-day{grid-template-columns:repeat(7,minmax(0,1fr))}ax-calendar .ax-calendar-body .ax-calendar-slots.ax-calendar-slots-year,ax-calendar .ax-calendar-body .ax-calendar-slots.ax-calendar-slots-month{grid-template-columns:repeat(4,minmax(0,1fr))}ax-calendar .ax-calendar-body .ax-calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin-top:.5rem;margin-bottom:.5rem}ax-calendar .ax-calendar-body .ax-calendar-week>div{font-size:.875rem;text-align:center;position:relative;display:flex;align-items:center;justify-content:center;cursor:text;margin:.125rem}ax-calendar .ax-calendar-footer{display:flex;justify-content:center;align-items:center;margin-top:1.125rem}ax-calendar .ax-calendar-footer .ax-today-button{width:100%;height:var(--ax-size-default);padding:0 1rem;font-size:.875rem;text-align:center;display:block;background-color:rgba(var(--ax-color-surface));color:rgba(var(--ax-color-text-default));border:1px solid;border-color:rgb(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);cursor:pointer}ax-calendar .ax-calendar-footer .ax-today-button.ax-state-disabled{opacity:.5;cursor:not-allowed}ax-calendar .ax-calendar-footer .ax-today-button:hover{opacity:.8}.ax-calendar-picker{display:flex;width:100%}.ax-calendar-picker ax-picker{flex:1 1 0%}.ax-overlay-pane ax-calendar{border-style:none}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
472
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCalendarComponent, decorators: [{
|
475
473
|
type: Component,
|
476
474
|
args: [{ selector: 'ax-calendar', inputs: [
|
477
475
|
'rtl',
|
@@ -499,7 +497,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
499
497
|
'disabledDatesChange',
|
500
498
|
'holidayDatesChange',
|
501
499
|
'onNavigate',
|
502
|
-
],
|
500
|
+
], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"interface === 'calendar'; else pickerTemplate\">\r\n <div class=\"ax-calendar-header\">\r\n <div class=\"ax-calendar-header-info\">\r\n <ng-container *ngIf=\"activeView == 'days'; else elseTemplate\">\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button\"\r\n (click)=\"_handleNavClick($event)\">{{_navText.split(' ')[1]}}</button>\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button\"\r\n (click)=\"_handleNavClick($event)\">{{_navText.split(' ')[0]}}</button>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button\"\r\n (click)=\"_handleNavClick($event)\">{{_navText}}</button>\r\n </ng-template>\r\n </div>\r\n <div class=\"ax-calendar-header-buttons\">\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button ax-button-icon\"\r\n (click)=\"_handlePrevClick()\">\r\n <i class=\"ax-icon\" [ngClass]=\"{'ax-icon-chevron-left': !rtl,'ax-icon-chevron-right': rtl}\"></i>\r\n </button>\r\n\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button ax-button-icon\"\r\n (click)=\"_handleNextClick()\">\r\n <i class=\"ax-icon\" [ngClass]=\"{'ax-icon-chevron-left': rtl,'ax-icon-chevron-right': !rtl}\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"ax-calendar-body\">\r\n <div [ngSwitch]=\"activeView\">\r\n <ng-container *ngSwitchCase=\"'years'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-year\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'months'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-month\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"ax-calendar-week\">\r\n <div *ngFor=\"let d of _dayNames\">{{d}}</div>\r\n </div>\r\n <div class=\"ax-calendar-slots ax-calendar-slots-day\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"ax-calendar-footer\">\r\n <button class=\"ax-today-button\" [class.ax-state-disabled]=\"disabled\" [attr.disabled]=\"disabled || isDisabled(_today)\" (click)=\"_handleGoToday()\"\r\n *ngIf=\"activeView=='days'\">\r\n {{ _todayText }}\r\n </button>\r\n </div>\r\n</ng-container>\r\n<ng-template #pickerTemplate>\r\n <div class=\"ax-calendar-picker\">\r\n //TODO: picker\r\n </div>\r\n</ng-template>", styles: [".ax-dark ax-calendar{background:rgba(var(--ax-color-on-surface))}ax-calendar{display:block;background:rgba(var(--ax-color-surface));color:rgba(var(--ax-color-text-default));padding:.5rem}@media (max-width: 599px){ax-calendar{@apply ax-w-full;width:100%}}@media (min-width: 600px){ax-calendar{width:100%}}@media (min-width: 1200px){ax-calendar{width:20rem}}@media (min-width: 1800px){ax-calendar{width:20rem}}ax-calendar.ax-state-disabled .ax-calendar-slots{opacity:.5;cursor:default}ax-calendar .ax-calendar-header{display:flex;justify-content:space-between;padding:.25rem .5rem;margin-bottom:1.125rem}ax-calendar .ax-calendar-header .ax-calendar-header-info{font-weight:500}ax-calendar .ax-calendar-header .ax-calendar-header-buttons{display:flex}ax-calendar .ax-calendar-body{margin:.5rem}ax-calendar .ax-calendar-body .ax-calendar-slots{display:grid;gap:.25rem}ax-calendar .ax-calendar-body .ax-calendar-slots>div{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;font-size:.875rem;color:rgba(var(--ax-color-text-default));border-radius:var(--ax-rounded-border-default);cursor:pointer}ax-calendar .ax-calendar-body .ax-calendar-slots>div:before{content:\"\";padding-top:100%;float:left}ax-calendar .ax-calendar-body .ax-calendar-slots>div:after{content:\"\";display:block;clear:both}ax-calendar .ax-calendar-body .ax-calendar-slots>div:hover:not(ax-calendar .ax-calendar-body .ax-calendar-slots > div:hover.ax-state-disabled,ax-calendar .ax-calendar-body .ax-calendar-slots > div:hover.ax-state-selected,ax-calendar .ax-calendar-body .ax-calendar-slots > div:hover.ax-state-today){background-color:rgba(var(--ax-color-surface-08))}ax-calendar .ax-calendar-body .ax-calendar-slots>div:focus:not(ax-calendar .ax-calendar-body .ax-calendar-slots > div:focus.ax-state-disabled){outline-width:2px;outline-style:solid;outline-color:rgb(var(--ax-color-primary))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-disabled{cursor:not-allowed;opacity:.5}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-holiday{color:rgba(var(--ax-color-danger))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-today{border:1px solid;border-color:rgba(var(--ax-color-primary));color:rgba(var(--ax-color-primary));border-radius:999rem}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-other{opacity:.5}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-selected{background-color:rgba(var(--ax-color-primary));color:rgba(var(--ax-color-primary-fore));border-radius:var(--ax-rounded-border-default)}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event:after{content:\"\";position:absolute;top:80%;left:0;right:0;margin:auto;width:.25rem;height:.25rem;border-radius:999rem}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event-primary:after{background-color:rgb(var(--ax-color-primary))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event-secondary:after{background-color:rgb(var(--ax-color-secondary))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event-success:after{background-color:rgb(var(--ax-color-success))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event-warning:after{background-color:rgb(var(--ax-color-warning))}ax-calendar .ax-calendar-body .ax-calendar-slots>div.ax-state-event-danger:after{background-color:rgb(var(--ax-color-danger))}ax-calendar .ax-calendar-body .ax-calendar-slots.ax-calendar-slots-day{grid-template-columns:repeat(7,minmax(0,1fr))}ax-calendar .ax-calendar-body .ax-calendar-slots.ax-calendar-slots-year,ax-calendar .ax-calendar-body .ax-calendar-slots.ax-calendar-slots-month{grid-template-columns:repeat(4,minmax(0,1fr))}ax-calendar .ax-calendar-body .ax-calendar-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));margin-top:.5rem;margin-bottom:.5rem}ax-calendar .ax-calendar-body .ax-calendar-week>div{font-size:.875rem;text-align:center;position:relative;display:flex;align-items:center;justify-content:center;cursor:text;margin:.125rem}ax-calendar .ax-calendar-footer{display:flex;justify-content:center;align-items:center;margin-top:1.125rem}ax-calendar .ax-calendar-footer .ax-today-button{width:100%;height:var(--ax-size-default);padding:0 1rem;font-size:.875rem;text-align:center;display:block;background-color:rgba(var(--ax-color-surface));color:rgba(var(--ax-color-text-default));border:1px solid;border-color:rgb(var(--ax-color-border-default));border-radius:var(--ax-rounded-border-default);cursor:pointer}ax-calendar .ax-calendar-footer .ax-today-button.ax-state-disabled{opacity:.5;cursor:not-allowed}ax-calendar .ax-calendar-footer .ax-today-button:hover{opacity:.8}.ax-calendar-picker{display:flex;width:100%}.ax-calendar-picker ax-picker{flex:1 1 0%}.ax-overlay-pane ax-calendar{border-style:none}\n"] }]
|
503
501
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { interface: [{
|
504
502
|
type: Input
|
505
503
|
}], __hostClass: [{
|
@@ -511,10 +509,10 @@ const COMPONENT = [AXCalendarComponent];
|
|
511
509
|
const MODULES = [CommonModule, AXDateTimeModule];
|
512
510
|
class AXCalendarModule {
|
513
511
|
}
|
514
|
-
AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
515
|
-
AXCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
516
|
-
AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
517
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
512
|
+
AXCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
513
|
+
AXCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: AXCalendarModule, declarations: [AXCalendarComponent], imports: [CommonModule, AXDateTimeModule], exports: [AXCalendarComponent] });
|
514
|
+
AXCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCalendarModule, imports: [MODULES] });
|
515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCalendarModule, decorators: [{
|
518
516
|
type: NgModule,
|
519
517
|
args: [{
|
520
518
|
declarations: [...COMPONENT],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-calendar.mjs","sources":["../../../../projects/acorex/components/calendar/src/calendar.class.ts","../../../../projects/acorex/components/calendar/src/calendar.component.ts","../../../../projects/acorex/components/calendar/src/calendar.component.html","../../../../projects/acorex/components/calendar/src/calendar.module.ts","../../../../projects/acorex/components/calendar/acorex-components-calendar.ts"],"sourcesContent":["import { AXConfig } from \"@acorex/core/config\";\r\nimport { ChangeDetectorRef, ElementRef, EventEmitter, Injectable, Input, Output } from \"@angular/core\";\r\nimport { AXItemClickEvent, AXRangeChangedEvent } from \"@acorex/components/common\";\r\nimport { AXBaseComponent } from \"@acorex/components/mixin\";\r\n\r\nexport type AXCalendarViewType = 'years' | 'months' | 'days';\r\nexport type AXCalendarViewDepth = AXCalendarViewType;\r\nexport type AXCalendarDisabledDates = Date[] | ((date: Date) => boolean);\r\nexport type AXCalendarHolidayDates = Date[] | ((date: Date) => boolean);\r\n\r\n\r\n/**\r\n* Contains native event\r\n* @category Events\r\n*/\r\nexport class AXCalendarNavigateEvent extends AXRangeChangedEvent<Date> {\r\n\r\n}\r\n\r\n@Injectable()\r\nexport class AXCalendarBaseComponent extends AXBaseComponent {\r\n\r\n\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n @Output()\r\n onSlotClick: EventEmitter<AXItemClickEvent<Date>> = new EventEmitter<AXItemClickEvent<Date>>();\r\n \r\n @Output()\r\n onNavigate: EventEmitter<AXCalendarNavigateEvent> = new EventEmitter<AXCalendarNavigateEvent>();\r\n\r\n @Output()\r\n activeViewChange: EventEmitter<AXCalendarViewType> = new EventEmitter<AXCalendarViewType>();\r\n\r\n private _activeView: AXCalendarViewType = 'days';\r\n @Input()\r\n public get activeView(): AXCalendarViewType {\r\n return this._activeView;\r\n }\r\n public set activeView(v: AXCalendarViewType) {\r\n this._setOption({ name: 'activeView', value: v });\r\n }\r\n\r\n\r\n @Output()\r\n public typeChange: EventEmitter<string> = new EventEmitter<string>();\r\n \r\n private _type: string = AXConfig.get(`dateTime.calendar`);\r\n \r\n @Input()\r\n public get type(): string {\r\n return this._type || AXConfig.get(`dateTime.calendar`);\r\n }\r\n public set type(v: string) {\r\n this._setOption({\r\n name: 'type',\r\n value: v\r\n })\r\n }\r\n\r\n\r\n @Output()\r\n depthChange: EventEmitter<AXCalendarViewDepth> = new EventEmitter<AXCalendarViewDepth>();\r\n\r\n private _depth: AXCalendarViewDepth = 'days';\r\n @Input()\r\n public get depth(): AXCalendarViewDepth {\r\n return this._depth;\r\n }\r\n public set depth(v: AXCalendarViewDepth) {\r\n this._setOption({\r\n name: 'depth', \r\n value: v, \r\n beforeCallback: () => {\r\n this._activeView = v;\r\n }\r\n });\r\n }\r\n\r\n @Output()\r\n minChange: EventEmitter<Date> = new EventEmitter<Date>();\r\n\r\n private _min: Date;\r\n @Input()\r\n public get min(): Date {\r\n return this._min;\r\n }\r\n public set min(v: Date) {\r\n this._setOption({ name: 'min', value: v });\r\n }\r\n\r\n\r\n @Output()\r\n maxChange: EventEmitter<Date> = new EventEmitter<Date>();\r\n\r\n private _max: Date;\r\n @Input()\r\n public get max(): Date {\r\n return this._max;\r\n }\r\n public set max(v: Date) {\r\n this._setOption({ name: 'max', value: v });\r\n }\r\n\r\n @Output()\r\n disabledDatesChange: EventEmitter<AXCalendarDisabledDates> = new EventEmitter<AXCalendarDisabledDates>();\r\n\r\n private _disabledDates: AXCalendarDisabledDates;\r\n @Input()\r\n public get disabledDates(): AXCalendarDisabledDates {\r\n return this._disabledDates;\r\n }\r\n public set disabledDates(v: AXCalendarDisabledDates) {\r\n this._setOption({ name: 'disabledDates', value: v });\r\n }\r\n\r\n @Output()\r\n holidayDatesChange: EventEmitter<AXCalendarHolidayDates> = new EventEmitter<AXCalendarHolidayDates>();\r\n\r\n private _holidayDates: AXCalendarHolidayDates;\r\n @Input()\r\n public get holidayDates(): AXCalendarHolidayDates {\r\n return this._holidayDates;\r\n }\r\n public set holidayDates(v: AXCalendarHolidayDates) {\r\n this._setOption({ name: 'holidayDates', value: v });\r\n }\r\n}\r\n\r\n\r\n\r\nexport const CALENDAR_INPUTS = [\r\n 'depth',\r\n 'activeView',\r\n 'min',\r\n 'max',\r\n 'disabledDates',\r\n 'type',\r\n 'holidayDates',\r\n];\r\nexport const CALENDAR_OUTPUTS = ['depthChange','typeChange','disabledDatesChange','holidayDatesChange','onNavigate'];\r\n","import { range } from 'lodash-es';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n HostBinding,\r\n Input,\r\n} from '@angular/core';\r\nimport { AXDateTime, AXDateTimeRange } from '@acorex/core/dateTime';\r\nimport { AXClickEvent } from '@acorex/components/common';\r\n\r\nimport { AXCalendarBaseComponent } from './calendar.class';\r\nimport {\r\n AXComponentOptionChanged,\r\n _ClickableComponenetMixin,\r\n _InteractiveComponenetMixin,\r\n _ValueComponenetMixin,\r\n} from '@acorex/components/mixin';\r\nimport { AXConfig } from '@acorex/core/config';\r\nimport { AXTranslator } from '@acorex/core/translation';\r\n\r\nexport const AXCalendarComponentMixin = _ClickableComponenetMixin(\r\n _InteractiveComponenetMixin(\r\n _ValueComponenetMixin<any>(AXCalendarBaseComponent)\r\n )\r\n);\r\n\r\n@Component({\r\n selector: 'ax-calendar',\r\n templateUrl: './calendar.component.html',\r\n inputs: [\r\n 'rtl',\r\n 'readonly',\r\n 'allowNull',\r\n 'value',\r\n 'name',\r\n 'checked',\r\n 'disabled',\r\n 'tabIndex',\r\n 'depth',\r\n 'activeView',\r\n 'min',\r\n 'max',\r\n 'disabledDates',\r\n 'type',\r\n 'holidayDates',\r\n ],\r\n outputs: [\r\n 'valueChange',\r\n 'onValueChanged',\r\n 'onBlur',\r\n 'onFocus',\r\n 'depthChange',\r\n 'typeChange',\r\n 'disabledDatesChange',\r\n 'holidayDatesChange',\r\n 'onNavigate',\r\n ],\r\n host: { class: 'ax-calendar' },\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXCalendarComponent extends AXCalendarComponentMixin {\r\n @Input()\r\n interface: 'calendar' | 'picker' = 'calendar';\r\n\r\n todayText = AXTranslator.get('dateTime.today');\r\n\r\n private get _viewRange(): AXDateTimeRange {\r\n const current = this._viewStartDate || this._today;\r\n switch (this.activeView) {\r\n case 'years':\r\n let y = current.startOf('year').year;\r\n let min = y - (y % 10) - 1;\r\n let max = min + 11;\r\n return new AXDateTimeRange(\r\n AXDateTime.from({\r\n year: min,\r\n month: 1,\r\n date: 1,\r\n calendar: this._viewStartDate.calendar.name(),\r\n }),\r\n AXDateTime.from({\r\n year: max,\r\n month: 12,\r\n date: 28,\r\n calendar: this._viewStartDate.calendar.name(),\r\n })\r\n );\r\n case 'months':\r\n return new AXDateTimeRange(\r\n current.startOf('year'),\r\n current.endOf('year').add('day', -1)\r\n );\r\n default:\r\n return new AXDateTimeRange(\r\n current.startOf('month'),\r\n current.endOf('month')\r\n );\r\n }\r\n }\r\n\r\n protected _today = new AXDateTime(new Date(), this.type);\r\n private _viewStartDate!: AXDateTime;\r\n\r\n protected _navText: string = '';\r\n protected _todayText: string = '';\r\n\r\n protected _slots: any[] = [];\r\n protected _dayNames: string[] = [];\r\n\r\n private _isUserInteraction: boolean = false;\r\n\r\n constructor(elementRef: ElementRef, private cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n private _initValues() {\r\n this._today = new AXDateTime(new Date(), this.type);\r\n this._dayNames = this._today.calendar.dayShortNames;\r\n }\r\n\r\n private _refresh() {\r\n this._initValues();\r\n this.navTo(this.value || this._today);\r\n }\r\n\r\n protected onInit() {\r\n this._initValues();\r\n if (!this.value) this.goToday();\r\n }\r\n\r\n private _genearteSlots() {\r\n if (!this._viewStartDate) return;\r\n const vr = this._viewRange;\r\n // just for tailwind\r\n //'ax-col-start-1','ax-col-start-2','ax-col-start-3','ax-col-start-4','ax-col-start-5','ax-col-start-6','ax-col-start-7'\r\n // year view\r\n if (this.activeView == 'years') {\r\n const a = vr.enumurate('year');\r\n this._slots = a.map((d, i) => {\r\n const r: any = {};\r\n r.date = d.date;\r\n r.text = d.format('YYYY');\r\n r.disabled =\r\n (this.min && d.compare(this.min, 'year') == -1) ||\r\n (this.max && d.compare(this.max, 'year') == 1);\r\n if (r.disabled) {\r\n r.cssClass = {\r\n 'ax-state-disabled': r.disabled,\r\n };\r\n } else {\r\n r.cssClass = {\r\n 'ax-state-today': d.equal(this._today, 'year'),\r\n 'ax-state-selected':\r\n this.value &&\r\n this.depth == 'years' &&\r\n d.equal(this.value, 'year'),\r\n };\r\n }\r\n // r.cssClass[`ax-col-start-2`] = i == 0;\r\n return r;\r\n });\r\n\r\n this._navText = `${vr.startTime.year} - ${vr.endTime.year}`;\r\n this._todayText = this._today.format('YYYY');\r\n }\r\n // month view\r\n else if (this.activeView == 'months') {\r\n const a = vr.enumurate('month');\r\n this._slots = a.map((d, i) => {\r\n const r: any = {};\r\n r.date = d.date;\r\n r.text = d.format('MMM');\r\n r.tooltip = d.format('MMMM YYYY');\r\n r.disabled =\r\n (this.min && d.compare(this.min, 'month') == -1) ||\r\n (this.max && d.compare(this.max, 'month') == 1);\r\n if (r.disabled) {\r\n r.cssClass = {\r\n 'ax-state-disabled': r.disabled,\r\n };\r\n } else {\r\n r.cssClass = {\r\n 'ax-state-today': d.equal(this._today, 'month'),\r\n 'ax-state-selected':\r\n this.value &&\r\n this.depth == 'months' &&\r\n d.equal(this.value, 'month'),\r\n 'ax-state-other': d.year != this._viewStartDate.year,\r\n };\r\n }\r\n return r;\r\n });\r\n this._navText = this._viewStartDate.format('YYYY');\r\n this._todayText = this._today.format('MMMM YYYY');\r\n }\r\n // day view\r\n else {\r\n const a = vr.enumurate('day');\r\n this._slots = a.map((d, i) => {\r\n const r: any = {};\r\n r.date = d.date;\r\n r.text = d.dayOfMonth;\r\n r.tooltip = d.format();\r\n r.disabled =\r\n (this.min && d.compare(this.min, 'day') == -1) ||\r\n (this.max && d.compare(this.max, 'day') == 1) ||\r\n this.isDisabled(d);\r\n if (r.disabled) {\r\n r.cssClass = {\r\n 'ax-state-disabled': true,\r\n };\r\n } else {\r\n r.cssClass = {\r\n 'ax-state-today': d.equal(this._today, 'day'),\r\n 'ax-state-selected': this.value && d.equal(this.value, 'day'),\r\n 'ax-state-holiday': this.isHoliday(d) || this.isWeekend(d),\r\n // 'ax-state-event-info': d.dayOfMonth == 12,\r\n // 'ax-state-event': d.dayOfMonth == 12,\r\n };\r\n }\r\n\r\n r.cssClass[`ax-col-start-${vr.startTime.dayOfWeek}`] = i == 0;\r\n return r;\r\n });\r\n this._navText = this._viewStartDate.format('MMMM YYYY');\r\n this._todayText = this._today.format();\r\n }\r\n }\r\n\r\n protected _handlePrevClick() {\r\n this._isUserInteraction = true;\r\n this.prev();\r\n this._isUserInteraction = false;\r\n }\r\n\r\n protected _handleNextClick() {\r\n this._isUserInteraction = true;\r\n this.next();\r\n this._isUserInteraction = false;\r\n }\r\n\r\n protected _handleSlotClick(e: MouseEvent, slot) {\r\n if (slot.disabled || this.disabled) return;\r\n if (this.activeView == 'days') {\r\n this._setDate(slot.date);\r\n } else if (this.activeView == 'months' && this.depth == 'days') {\r\n this.activeView = 'days';\r\n this.navTo(slot.date);\r\n } else if (this.activeView == 'months' && this.depth == 'months') {\r\n this._setDate(slot.date);\r\n } else if (\r\n this.activeView == 'years' &&\r\n (this.depth == 'days' || this.depth == 'months')\r\n ) {\r\n this.activeView = 'months';\r\n this.navTo(slot.date);\r\n } else if (this.activeView == 'years' && this.depth == 'years') {\r\n this._setDate(slot.date);\r\n }\r\n this.onSlotClick.emit({\r\n component: this,\r\n item: slot.date,\r\n isUserInteraction: true,\r\n nativeEvent: e,\r\n });\r\n }\r\n\r\n protected _handleNavClick(e: AXClickEvent | any) {\r\n this._isUserInteraction = true;\r\n if (this.activeView == 'days') this.activeView = 'months';\r\n else if (this.activeView == 'months') this.activeView = 'years';\r\n this._isUserInteraction = false;\r\n }\r\n\r\n protected _onOptionChanged(option: AXComponentOptionChanged) {\r\n if (\r\n option.name == 'depth' ||\r\n option.name == 'activeView' ||\r\n option.name == 'disabledDates' ||\r\n option.name == 'holidayDates'\r\n ) {\r\n this._genearteSlots();\r\n }\r\n if (option.name == 'type') {\r\n this._refresh();\r\n }\r\n }\r\n\r\n protected _onValueChanged(oldValue, newValue) {\r\n this._viewStartDate = new AXDateTime(newValue, this.type);\r\n this._genearteSlots();\r\n }\r\n\r\n protected _handleGoToday() {\r\n this._isUserInteraction = true;\r\n this._setDate(this._today.date);\r\n this.goToday();\r\n this._isUserInteraction = false;\r\n }\r\n\r\n next() {\r\n this._navNextPrev(false);\r\n }\r\n\r\n prev() {\r\n this._navNextPrev(true);\r\n }\r\n\r\n focus() {\r\n const func = (s: string) =>\r\n (this._getHostElement() as HTMLDivElement).querySelector<HTMLDivElement>(\r\n s\r\n );\r\n const div =\r\n func('.ax-calendar-slots>div.ax-state-selected') ||\r\n func('.ax-calendar-slots>div');\r\n div?.focus();\r\n }\r\n\r\n private _navNextPrev(prev: boolean) {\r\n const sign = prev ? -1 : 1;\r\n if (this.activeView == 'days')\r\n this.navTo(this._viewStartDate.add('month', sign * 1));\r\n else if (this.activeView == 'months')\r\n this.navTo(this._viewStartDate.add('year', sign * 1));\r\n else this.navTo(this._viewStartDate.add('year', sign * 10));\r\n }\r\n\r\n goToday() {\r\n this.navTo(this._today);\r\n }\r\n\r\n navTo(date: Date | AXDateTime) {\r\n this._viewStartDate = AXDateTime.convert(\r\n date,\r\n this._today.calendar.name()\r\n ).startOf();\r\n const vr = this._viewRange;\r\n this.onNavigate.emit({\r\n component: this,\r\n isUserInteraction: this._isUserInteraction,\r\n start: vr.startTime?.date,\r\n end: vr.endTime?.date,\r\n htmlElement: this._getHostElement(),\r\n });\r\n if (this.interface == 'calendar') this._genearteSlots();\r\n else {\r\n this._generatePickerItems('year');\r\n this._generatePickerItems('month');\r\n }\r\n setTimeout(() => {\r\n this.focus();\r\n }, 50);\r\n }\r\n\r\n @HostBinding('class')\r\n private get __hostClass(): string {\r\n const _classes = {\r\n 'ax-state-disabled': this.disabled,\r\n };\r\n return Object.entries(_classes)\r\n .filter((c) => c[1])\r\n .map((c) => c[0])\r\n .join(' ');\r\n }\r\n\r\n private _setDate(value: Date) {\r\n this.value = AXDateTime.convert(\r\n value,\r\n this._today.calendar.name()\r\n ).startOf().date;\r\n }\r\n\r\n protected isDisabled(date: AXDateTime): boolean {\r\n if (Array.isArray(this.disabledDates) && this.disabledDates.length != 0) {\r\n return this.disabledDates.some((d) => date.equal(d, 'day'));\r\n } else if (typeof this.disabledDates == 'function') {\r\n return this.disabledDates(date.date);\r\n }\r\n return false;\r\n }\r\n\r\n protected isHoliday(date: AXDateTime): boolean {\r\n if (Array.isArray(this.holidayDates) && this.holidayDates.length != 0) {\r\n return this.holidayDates.some((d) => date.equal(d, 'day'));\r\n } else if (typeof this.holidayDates == 'function') {\r\n return this.holidayDates(date.date);\r\n }\r\n return false;\r\n }\r\n\r\n protected isWeekend(date: AXDateTime): boolean {\r\n //return date.dayOfWeek == 7 || date.dayOfWeek == 1;\r\n const weekend = AXConfig.get(\r\n `dateTime.calendars.${this.type}.weekend`\r\n ) as number[];\r\n return weekend.includes(date.dayOfWeek);\r\n }\r\n\r\n protected _pickerDays: number[] = [];\r\n protected _pickerMonths: { text: string; value: number }[] = [];\r\n protected _pickerYears: number[] = [];\r\n\r\n private _generatePickerItems(view) {\r\n switch (view) {\r\n case 'year':\r\n this._pickerYears = range(2000, 2050, 1);\r\n break;\r\n case 'month':\r\n this._pickerMonths = new AXDateTimeRange(\r\n this._viewRange.startTime.startOf('year'),\r\n this._viewRange.startTime.endOf('year')\r\n )\r\n .enumurate('month')\r\n .map((c) => ({\r\n text: c.format('MMM'),\r\n value: c.monthOfYear,\r\n }));\r\n break;\r\n default:\r\n this._pickerDays = new AXDateTimeRange(\r\n this._viewRange.startTime.startOf('month'),\r\n this._viewRange.startTime.endOf('month')\r\n )\r\n .enumurate('day')\r\n .map((c) => c.dayOfMonth);\r\n this.cdr.detectChanges();\r\n break;\r\n }\r\n }\r\n\r\n protected _handlePickerChange(item: any, view) {\r\n if (!item) return;\r\n const date = this._viewRange.startTime;\r\n switch (view) {\r\n case 'year':\r\n this._setDate(date.set('year', item.value).date);\r\n break;\r\n case 'month':\r\n this._setDate(date.set('month', item.value.value).date);\r\n this._generatePickerItems('day');\r\n break;\r\n default:\r\n this._setDate(date.set('day', item.value).date);\r\n break;\r\n }\r\n }\r\n}\r\n","<ng-container *ngIf=\"interface === 'calendar'; else pickerTemplate\">\r\n <div class=\"ax-calendar-header\">\r\n <div class=\"ax-flex ax-items-center\">\r\n <ng-container *ngIf=\"activeView=='days'; else elseTemplate\">\r\n <button [disabled]=\"disabled\" class=\"ax-button-control\"\r\n (click)=\"_handleNavClick($event)\">{{_navText.split(' ')[1]}}</button>\r\n <button [disabled]=\"disabled\" class=\"ax-button-control\"\r\n (click)=\"_handleNavClick($event)\">{{_navText.split(' ')[0]}}</button>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <button [disabled]=\"disabled\" class=\"ax-button-control\"\r\n (click)=\"_handleNavClick($event)\">{{_navText}}</button>\r\n </ng-template>\r\n </div>\r\n <div class=\"ax-calendar-header-buttons\">\r\n <button [disabled]=\"disabled\" class=\"ax-button-control\" (click)=\"_handlePrevClick()\">\r\n <i [ngClass]=\"{'ax-ic-chevron-left': !rtl,'ax-ic-chevron-right': rtl}\"></i>\r\n </button>\r\n <button [disabled]=\"disabled || isDisabled(_today)\" class=\"ax-button-control !ax-text-primary-500\" (click)=\"_handleGoToday()\" *ngIf=\"activeView=='days'\">\r\n {{ todayText }}\r\n </button>\r\n <button [disabled]=\"disabled\" class=\"ax-button-control\" (click)=\"_handleNextClick()\">\r\n <i [ngClass]=\"{'ax-ic-chevron-left': rtl,'ax-ic-chevron-right': !rtl}\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"ax-calendar-body\">\r\n <div [ngSwitch]=\"activeView\">\r\n <ng-container *ngSwitchCase=\"'years'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-year\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'months'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-month\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"ax-calendar-week\">\r\n <div *ngFor=\"let d of _dayNames\">{{d}}</div>\r\n </div>\r\n <div class=\"ax-calendar-slots ax-calendar-slots-day\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n</ng-container>\r\n<ng-template #pickerTemplate>\r\n <div class=\"ax-calendar-picker\">\r\n //TODO: picker\r\n </div>\r\n</ng-template>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXDateTimeModule } from '@acorex/core/dateTime';\r\nimport { AXCalendarComponent } from './calendar.component';\r\n\r\nconst COMPONENT = [AXCalendarComponent];\r\nconst MODULES = [CommonModule, AXDateTimeModule];\r\n\r\n@NgModule({\r\n declarations: [...COMPONENT],\r\n imports: [...MODULES],\r\n exports: [...COMPONENT],\r\n providers: [],\r\n})\r\nexport class AXCalendarModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAWA;;;AAGE;AACI,MAAO,uBAAwB,SAAQ,mBAAyB,CAAA;AAErE,CAAA;AAGK,MAAO,uBAAwB,SAAQ,eAAe,CAAA;IAGxD,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACtD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AAI3B,QAAA,IAAA,CAAA,WAAW,GAAyC,IAAI,YAAY,EAA0B,CAAC;AAG/F,QAAA,IAAA,CAAA,UAAU,GAA0C,IAAI,YAAY,EAA2B,CAAC;AAGhG,QAAA,IAAA,CAAA,gBAAgB,GAAqC,IAAI,YAAY,EAAsB,CAAC;AAEpF,QAAA,IAAW,CAAA,WAAA,GAAuB,MAAM,CAAC;AAW1C,QAAA,IAAA,CAAA,UAAU,GAAyB,IAAI,YAAY,EAAU,CAAC;QAE7D,IAAA,CAAA,KAAK,GAAW,QAAQ,CAAC,GAAG,CAAC,CAAmB,iBAAA,CAAA,CAAC,CAAC;AAe1D,QAAA,IAAA,CAAA,WAAW,GAAsC,IAAI,YAA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AG,gBAAgB,aAD7B,mBAAmB,CAAA,EAAA,CAAA,CAAA;AASzB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAJZ,OAAO,CAAA,EAAA,CAAA,CAAA;2FAIX,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,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;iBAChB,CAAA;;;ACbD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"acorex-components-calendar.mjs","sources":["../../../../projects/acorex/components/calendar/src/calendar.class.ts","../../../../projects/acorex/components/calendar/src/calendar.component.ts","../../../../projects/acorex/components/calendar/src/calendar.component.html","../../../../projects/acorex/components/calendar/src/calendar.module.ts","../../../../projects/acorex/components/calendar/acorex-components-calendar.ts"],"sourcesContent":["import { AXConfig } from \"@acorex/core/config\";\r\nimport { ChangeDetectorRef, ElementRef, EventEmitter, Injectable, Input, Output } from \"@angular/core\";\r\nimport { AXItemClickEvent, AXRangeChangedEvent } from \"@acorex/components/common\";\r\nimport { AXBaseComponent } from \"@acorex/components/mixin\";\r\n\r\nexport type AXCalendarViewType = 'years' | 'months' | 'days';\r\nexport type AXCalendarViewDepth = AXCalendarViewType;\r\nexport type AXCalendarDisabledDates = Date[] | ((date: Date) => boolean);\r\nexport type AXCalendarHolidayDates = Date[] | ((date: Date) => boolean);\r\n\r\n\r\n/**\r\n* Contains native event\r\n* @category Events\r\n*/\r\nexport class AXCalendarNavigateEvent extends AXRangeChangedEvent<Date> {\r\n\r\n}\r\n\r\n@Injectable()\r\nexport class AXCalendarBaseComponent extends AXBaseComponent {\r\n\r\n\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n @Output()\r\n onSlotClick: EventEmitter<AXItemClickEvent<Date>> = new EventEmitter<AXItemClickEvent<Date>>();\r\n \r\n @Output()\r\n onNavigate: EventEmitter<AXCalendarNavigateEvent> = new EventEmitter<AXCalendarNavigateEvent>();\r\n\r\n @Output()\r\n activeViewChange: EventEmitter<AXCalendarViewType> = new EventEmitter<AXCalendarViewType>();\r\n\r\n private _activeView: AXCalendarViewType = 'days';\r\n @Input()\r\n public get activeView(): AXCalendarViewType {\r\n return this._activeView;\r\n }\r\n public set activeView(v: AXCalendarViewType) {\r\n this._setOption({ name: 'activeView', value: v });\r\n }\r\n\r\n\r\n @Output()\r\n public typeChange: EventEmitter<string> = new EventEmitter<string>();\r\n \r\n private _type: string = AXConfig.get(`dateTime.calendar`);\r\n \r\n @Input()\r\n public get type(): string {\r\n return this._type || AXConfig.get(`dateTime.calendar`);\r\n }\r\n public set type(v: string) {\r\n this._setOption({\r\n name: 'type',\r\n value: v\r\n })\r\n }\r\n\r\n\r\n @Output()\r\n depthChange: EventEmitter<AXCalendarViewDepth> = new EventEmitter<AXCalendarViewDepth>();\r\n\r\n private _depth: AXCalendarViewDepth = 'days';\r\n @Input()\r\n public get depth(): AXCalendarViewDepth {\r\n return this._depth;\r\n }\r\n public set depth(v: AXCalendarViewDepth) {\r\n this._setOption({\r\n name: 'depth', \r\n value: v, \r\n beforeCallback: () => {\r\n this._activeView = v;\r\n }\r\n });\r\n }\r\n\r\n @Output()\r\n minChange: EventEmitter<Date> = new EventEmitter<Date>();\r\n\r\n private _min: Date;\r\n @Input()\r\n public get min(): Date {\r\n return this._min;\r\n }\r\n public set min(v: Date) {\r\n this._setOption({ name: 'min', value: v });\r\n }\r\n\r\n\r\n @Output()\r\n maxChange: EventEmitter<Date> = new EventEmitter<Date>();\r\n\r\n private _max: Date;\r\n @Input()\r\n public get max(): Date {\r\n return this._max;\r\n }\r\n public set max(v: Date) {\r\n this._setOption({ name: 'max', value: v });\r\n }\r\n\r\n @Output()\r\n disabledDatesChange: EventEmitter<AXCalendarDisabledDates> = new EventEmitter<AXCalendarDisabledDates>();\r\n\r\n private _disabledDates: AXCalendarDisabledDates;\r\n @Input()\r\n public get disabledDates(): AXCalendarDisabledDates {\r\n return this._disabledDates;\r\n }\r\n public set disabledDates(v: AXCalendarDisabledDates) {\r\n this._setOption({ name: 'disabledDates', value: v });\r\n }\r\n\r\n @Output()\r\n holidayDatesChange: EventEmitter<AXCalendarHolidayDates> = new EventEmitter<AXCalendarHolidayDates>();\r\n\r\n private _holidayDates: AXCalendarHolidayDates;\r\n @Input()\r\n public get holidayDates(): AXCalendarHolidayDates {\r\n return this._holidayDates;\r\n }\r\n public set holidayDates(v: AXCalendarHolidayDates) {\r\n this._setOption({ name: 'holidayDates', value: v });\r\n }\r\n}\r\n\r\n\r\n\r\nexport const CALENDAR_INPUTS = [\r\n 'depth',\r\n 'activeView',\r\n 'min',\r\n 'max',\r\n 'disabledDates',\r\n 'type',\r\n 'holidayDates',\r\n];\r\nexport const CALENDAR_OUTPUTS = ['depthChange','typeChange','disabledDatesChange','holidayDatesChange','onNavigate'];\r\n","import { range } from 'lodash-es';\r\nimport {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n HostBinding,\r\n Input,\r\n} from '@angular/core';\r\nimport { AXDateTime, AXDateTimeRange } from '@acorex/core/dateTime';\r\nimport { AXClickEvent } from '@acorex/components/common';\r\n\r\nimport { AXCalendarBaseComponent } from './calendar.class';\r\nimport {\r\n AXComponentOptionChanged,\r\n _ClickableComponenetMixin,\r\n _InteractiveComponenetMixin,\r\n _ValueComponenetMixin,\r\n} from '@acorex/components/mixin';\r\nimport { AXConfig } from '@acorex/core/config';\r\nimport { AXTranslator } from '@acorex/core/translation';\r\n\r\nexport const AXCalendarComponentMixin = _ClickableComponenetMixin(\r\n _InteractiveComponenetMixin(\r\n _ValueComponenetMixin<any>(AXCalendarBaseComponent)\r\n )\r\n);\r\n\r\n@Component({\r\n selector: 'ax-calendar',\r\n templateUrl: './calendar.component.html',\r\n styleUrls: ['./calendar.component.scss'],\r\n inputs: [\r\n 'rtl',\r\n 'readonly',\r\n 'allowNull',\r\n 'value',\r\n 'name',\r\n 'checked',\r\n 'disabled',\r\n 'tabIndex',\r\n 'depth',\r\n 'activeView',\r\n 'min',\r\n 'max',\r\n 'disabledDates',\r\n 'type',\r\n 'holidayDates',\r\n ],\r\n outputs: [\r\n 'valueChange',\r\n 'onValueChanged',\r\n 'onBlur',\r\n 'onFocus',\r\n 'depthChange',\r\n 'typeChange',\r\n 'disabledDatesChange',\r\n 'holidayDatesChange',\r\n 'onNavigate',\r\n ],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXCalendarComponent extends AXCalendarComponentMixin {\r\n @Input()\r\n interface: 'calendar' | 'picker' = 'calendar';\r\n\r\n\r\n private get _viewRange(): AXDateTimeRange {\r\n const current = this._viewStartDate || this._today;\r\n switch (this.activeView) {\r\n case 'years':\r\n let y = current.startOf('year').year;\r\n let min = y - (y % 10) - 1;\r\n let max = min + 11;\r\n return new AXDateTimeRange(\r\n AXDateTime.from({\r\n year: min,\r\n month: 1,\r\n date: 1,\r\n calendar: this._viewStartDate.calendar.name(),\r\n }),\r\n AXDateTime.from({\r\n year: max,\r\n month: 12,\r\n date: 28,\r\n calendar: this._viewStartDate.calendar.name(),\r\n })\r\n );\r\n case 'months':\r\n return new AXDateTimeRange(\r\n current.startOf('year'),\r\n current.endOf('year').add('day', -1)\r\n );\r\n default:\r\n return new AXDateTimeRange(\r\n current.startOf('month'),\r\n current.endOf('month')\r\n );\r\n }\r\n }\r\n\r\n protected _today = new AXDateTime(new Date(), this.type);\r\n private _viewStartDate!: AXDateTime;\r\n\r\n protected _navText: string = '';\r\n protected _todayText: string = '';\r\n\r\n protected _slots: any[] = [];\r\n protected _dayNames: string[] = [];\r\n\r\n private _isUserInteraction: boolean = false;\r\n\r\n constructor(elementRef: ElementRef, private cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n private _initValues() {\r\n this._today = new AXDateTime(new Date(), this.type);\r\n this._dayNames = this._today.calendar.dayShortNames;\r\n }\r\n\r\n private _refresh() {\r\n this._initValues();\r\n this.navTo(this.value || this._today);\r\n }\r\n\r\n protected onInit() {\r\n this._initValues();\r\n if (!this.value) this.goToday();\r\n }\r\n\r\n private _genearteSlots() {\r\n if (!this._viewStartDate) return;\r\n const vr = this._viewRange;\r\n // just for tailwind\r\n //'ax-col-start-1','ax-col-start-2','ax-col-start-3','ax-col-start-4','ax-col-start-5','ax-col-start-6','ax-col-start-7'\r\n // year view\r\n if (this.activeView == 'years') {\r\n const a = vr.enumurate('year');\r\n this._slots = a.map((d, i) => {\r\n const r: any = {};\r\n r.date = d.date;\r\n r.text = d.format('YYYY');\r\n r.disabled =\r\n (this.min && d.compare(this.min, 'year') == -1) ||\r\n (this.max && d.compare(this.max, 'year') == 1);\r\n if (r.disabled) {\r\n r.cssClass = {\r\n 'ax-state-disabled': r.disabled,\r\n };\r\n } else {\r\n r.cssClass = {\r\n 'ax-state-today': d.equal(this._today, 'year'),\r\n 'ax-state-selected':\r\n this.value &&\r\n this.depth == 'years' &&\r\n d.equal(this.value, 'year'),\r\n };\r\n }\r\n // r.cssClass[`ax-col-start-2`] = i == 0;\r\n return r;\r\n });\r\n\r\n this._navText = `${vr.startTime.year} - ${vr.endTime.year}`;\r\n this._todayText = this._today.format('YYYY');\r\n }\r\n // month view\r\n else if (this.activeView == 'months') {\r\n const a = vr.enumurate('month');\r\n this._slots = a.map((d, i) => {\r\n const r: any = {};\r\n r.date = d.date;\r\n r.text = d.format('MMM');\r\n r.tooltip = d.format('MMMM YYYY');\r\n r.disabled =\r\n (this.min && d.compare(this.min, 'month') == -1) ||\r\n (this.max && d.compare(this.max, 'month') == 1);\r\n if (r.disabled) {\r\n r.cssClass = {\r\n 'ax-state-disabled': r.disabled,\r\n };\r\n } else {\r\n r.cssClass = {\r\n 'ax-state-today': d.equal(this._today, 'month'),\r\n 'ax-state-selected':\r\n this.value &&\r\n this.depth == 'months' &&\r\n d.equal(this.value, 'month'),\r\n 'ax-state-other': d.year != this._viewStartDate.year,\r\n };\r\n }\r\n return r;\r\n });\r\n this._navText = this._viewStartDate.format('YYYY');\r\n this._todayText = this._today.format('MMMM YYYY');\r\n }\r\n // day view\r\n else {\r\n const a = vr.enumurate('day');\r\n this._slots = a.map((d, i) => {\r\n const r: any = {};\r\n r.date = d.date;\r\n r.text = d.dayOfMonth;\r\n r.tooltip = d.format();\r\n r.disabled =\r\n (this.min && d.compare(this.min, 'day') == -1) ||\r\n (this.max && d.compare(this.max, 'day') == 1) ||\r\n this.isDisabled(d);\r\n if (r.disabled) {\r\n r.cssClass = {\r\n 'ax-state-disabled': true,\r\n };\r\n } else {\r\n r.cssClass = {\r\n 'ax-state-today': d.equal(this._today, 'day'),\r\n 'ax-state-selected': this.value && d.equal(this.value, 'day'),\r\n 'ax-state-holiday': this.isHoliday(d) || this.isWeekend(d),\r\n // 'ax-state-event-danger': d.dayOfMonth == 12,\r\n // 'ax-state-event': d.dayOfMonth == 12,\r\n };\r\n }\r\n\r\n r.cssClass[`ax-col-start-${vr.startTime.dayOfWeek}`] = i == 0;\r\n return r;\r\n });\r\n this._navText = this._viewStartDate.format('MMMM YYYY');\r\n this._todayText = this._today.format();\r\n }\r\n }\r\n\r\n protected _handlePrevClick() {\r\n this._isUserInteraction = true;\r\n this.prev();\r\n this._isUserInteraction = false;\r\n }\r\n\r\n protected _handleNextClick() {\r\n this._isUserInteraction = true;\r\n this.next();\r\n this._isUserInteraction = false;\r\n }\r\n\r\n protected _handleSlotClick(e: MouseEvent, slot) {\r\n if (slot.disabled || this.disabled) return;\r\n if (this.activeView == 'days') {\r\n this._setDate(slot.date);\r\n } else if (this.activeView == 'months' && this.depth == 'days') {\r\n this.activeView = 'days';\r\n this.navTo(slot.date);\r\n } else if (this.activeView == 'months' && this.depth == 'months') {\r\n this._setDate(slot.date);\r\n } else if (\r\n this.activeView == 'years' &&\r\n (this.depth == 'days' || this.depth == 'months')\r\n ) {\r\n this.activeView = 'months';\r\n this.navTo(slot.date);\r\n } else if (this.activeView == 'years' && this.depth == 'years') {\r\n this._setDate(slot.date);\r\n }\r\n this.onSlotClick.emit({\r\n component: this,\r\n item: slot.date,\r\n isUserInteraction: true,\r\n nativeEvent: e,\r\n });\r\n }\r\n\r\n protected _handleNavClick(e: AXClickEvent | any) {\r\n this._isUserInteraction = true;\r\n if (this.activeView == 'days') this.activeView = 'months';\r\n else if (this.activeView == 'months') this.activeView = 'years';\r\n this._isUserInteraction = false;\r\n }\r\n\r\n protected _onOptionChanged(option: AXComponentOptionChanged) {\r\n if (\r\n option.name == 'depth' ||\r\n option.name == 'activeView' ||\r\n option.name == 'disabledDates' ||\r\n option.name == 'holidayDates'\r\n ) {\r\n this._genearteSlots();\r\n }\r\n if (option.name == 'type') {\r\n this._refresh();\r\n }\r\n }\r\n\r\n protected _onValueChanged(oldValue, newValue) {\r\n this._viewStartDate = new AXDateTime(newValue, this.type);\r\n this._genearteSlots();\r\n }\r\n\r\n protected _handleGoToday() {\r\n this._isUserInteraction = true;\r\n this._setDate(this._today.date);\r\n this.goToday();\r\n this._isUserInteraction = false;\r\n }\r\n\r\n next() {\r\n this._navNextPrev(false);\r\n }\r\n\r\n prev() {\r\n this._navNextPrev(true);\r\n }\r\n\r\n focus() {\r\n const func = (s: string) =>\r\n (this._getHostElement() as HTMLDivElement).querySelector<HTMLDivElement>(\r\n s\r\n );\r\n const div =\r\n func('.ax-calendar-slots>div.ax-state-selected') ||\r\n func('.ax-calendar-slots>div');\r\n div?.focus();\r\n }\r\n\r\n private _navNextPrev(prev: boolean) {\r\n const sign = prev ? -1 : 1;\r\n if (this.activeView == 'days')\r\n this.navTo(this._viewStartDate.add('month', sign * 1));\r\n else if (this.activeView == 'months')\r\n this.navTo(this._viewStartDate.add('year', sign * 1));\r\n else this.navTo(this._viewStartDate.add('year', sign * 10));\r\n }\r\n\r\n goToday() {\r\n this.navTo(this._today);\r\n }\r\n\r\n navTo(date: Date | AXDateTime) {\r\n this._viewStartDate = AXDateTime.convert(\r\n date,\r\n this._today.calendar.name()\r\n ).startOf();\r\n const vr = this._viewRange;\r\n this.onNavigate.emit({\r\n component: this,\r\n isUserInteraction: this._isUserInteraction,\r\n start: vr.startTime?.date,\r\n end: vr.endTime?.date,\r\n htmlElement: this._getHostElement(),\r\n });\r\n if (this.interface == 'calendar') this._genearteSlots();\r\n else {\r\n this._generatePickerItems('year');\r\n this._generatePickerItems('month');\r\n }\r\n setTimeout(() => {\r\n this.focus();\r\n }, 50);\r\n }\r\n\r\n @HostBinding('class')\r\n private get __hostClass(): string {\r\n const _classes = {\r\n 'ax-state-disabled': this.disabled,\r\n };\r\n return Object.entries(_classes)\r\n .filter((c) => c[1])\r\n .map((c) => c[0])\r\n .join(' ');\r\n }\r\n\r\n private _setDate(value: Date) {\r\n this.value = AXDateTime.convert(\r\n value,\r\n this._today.calendar.name()\r\n ).startOf().date;\r\n }\r\n\r\n protected isDisabled(date: AXDateTime): boolean {\r\n if (Array.isArray(this.disabledDates) && this.disabledDates.length != 0) {\r\n return this.disabledDates.some((d) => date.equal(d, 'day'));\r\n } else if (typeof this.disabledDates == 'function') {\r\n return this.disabledDates(date.date);\r\n }\r\n return false;\r\n }\r\n\r\n protected isHoliday(date: AXDateTime): boolean {\r\n if (Array.isArray(this.holidayDates) && this.holidayDates.length != 0) {\r\n return this.holidayDates.some((d) => date.equal(d, 'day'));\r\n } else if (typeof this.holidayDates == 'function') {\r\n return this.holidayDates(date.date);\r\n }\r\n return false;\r\n }\r\n\r\n protected isWeekend(date: AXDateTime): boolean {\r\n //return date.dayOfWeek == 7 || date.dayOfWeek == 1;\r\n const weekend = AXConfig.get(\r\n `dateTime.calendars.${this.type}.weekend`\r\n ) as number[];\r\n return weekend.includes(date.dayOfWeek);\r\n }\r\n\r\n protected _pickerDays: number[] = [];\r\n protected _pickerMonths: { text: string; value: number }[] = [];\r\n protected _pickerYears: number[] = [];\r\n\r\n private _generatePickerItems(view) {\r\n switch (view) {\r\n case 'year':\r\n this._pickerYears = range(2000, 2050, 1);\r\n break;\r\n case 'month':\r\n this._pickerMonths = new AXDateTimeRange(\r\n this._viewRange.startTime.startOf('year'),\r\n this._viewRange.startTime.endOf('year')\r\n )\r\n .enumurate('month')\r\n .map((c) => ({\r\n text: c.format('MMM'),\r\n value: c.monthOfYear,\r\n }));\r\n break;\r\n default:\r\n this._pickerDays = new AXDateTimeRange(\r\n this._viewRange.startTime.startOf('month'),\r\n this._viewRange.startTime.endOf('month')\r\n )\r\n .enumurate('day')\r\n .map((c) => c.dayOfMonth);\r\n this.cdr.detectChanges();\r\n break;\r\n }\r\n }\r\n\r\n protected _handlePickerChange(item: any, view) {\r\n if (!item) return;\r\n const date = this._viewRange.startTime;\r\n switch (view) {\r\n case 'year':\r\n this._setDate(date.set('year', item.value).date);\r\n break;\r\n case 'month':\r\n this._setDate(date.set('month', item.value.value).date);\r\n this._generatePickerItems('day');\r\n break;\r\n default:\r\n this._setDate(date.set('day', item.value).date);\r\n break;\r\n }\r\n }\r\n}\r\n","<ng-container *ngIf=\"interface === 'calendar'; else pickerTemplate\">\r\n <div class=\"ax-calendar-header\">\r\n <div class=\"ax-calendar-header-info\">\r\n <ng-container *ngIf=\"activeView == 'days'; else elseTemplate\">\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button\"\r\n (click)=\"_handleNavClick($event)\">{{_navText.split(' ')[1]}}</button>\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button\"\r\n (click)=\"_handleNavClick($event)\">{{_navText.split(' ')[0]}}</button>\r\n </ng-container>\r\n <ng-template #elseTemplate>\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button\"\r\n (click)=\"_handleNavClick($event)\">{{_navText}}</button>\r\n </ng-template>\r\n </div>\r\n <div class=\"ax-calendar-header-buttons\">\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button ax-button-icon\"\r\n (click)=\"_handlePrevClick()\">\r\n <i class=\"ax-icon\" [ngClass]=\"{'ax-icon-chevron-left': !rtl,'ax-icon-chevron-right': rtl}\"></i>\r\n </button>\r\n\r\n <button [attr.disabled]=\"disabled ?'': null\" class=\"ax-general-button ax-button-icon\"\r\n (click)=\"_handleNextClick()\">\r\n <i class=\"ax-icon\" [ngClass]=\"{'ax-icon-chevron-left': rtl,'ax-icon-chevron-right': !rtl}\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"ax-calendar-body\">\r\n <div [ngSwitch]=\"activeView\">\r\n <ng-container *ngSwitchCase=\"'years'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-year\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'months'\">\r\n <div class=\"ax-calendar-slots ax-calendar-slots-month\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <div class=\"ax-calendar-week\">\r\n <div *ngFor=\"let d of _dayNames\">{{d}}</div>\r\n </div>\r\n <div class=\"ax-calendar-slots ax-calendar-slots-day\">\r\n <div tabindex=\"0\" *ngFor=\"let slot of _slots\" [title]=\"slot.tooltip\" [ngClass]=\"slot.cssClass\"\r\n (click)=\"_handleSlotClick($event,slot)\">{{slot.text}}</div>\r\n </div>\r\n </ng-container>\r\n </div>\r\n\r\n </div>\r\n\r\n <div class=\"ax-calendar-footer\">\r\n <button class=\"ax-today-button\" [class.ax-state-disabled]=\"disabled\" [attr.disabled]=\"disabled || isDisabled(_today)\" (click)=\"_handleGoToday()\"\r\n *ngIf=\"activeView=='days'\">\r\n {{ _todayText }}\r\n </button>\r\n </div>\r\n</ng-container>\r\n<ng-template #pickerTemplate>\r\n <div class=\"ax-calendar-picker\">\r\n //TODO: picker\r\n </div>\r\n</ng-template>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXDateTimeModule } from '@acorex/core/dateTime';\r\nimport { AXCalendarComponent } from './calendar.component';\r\n\r\nconst COMPONENT = [AXCalendarComponent];\r\nconst MODULES = [CommonModule, AXDateTimeModule];\r\n\r\n@NgModule({\r\n declarations: [...COMPONENT],\r\n imports: [...MODULES],\r\n exports: [...COMPONENT],\r\n providers: [],\r\n})\r\nexport class AXCalendarModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;AAWA;;;AAGE;AACI,MAAO,uBAAwB,SAAQ,mBAAyB,CAAA;AAErE,CAAA;AAGK,MAAO,uBAAwB,SAAQ,eAAe,CAAA;IAGxD,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACtD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;AAI3B,QAAA,IAAA,CAAA,WAAW,GAAyC,IAAI,YAAY,EAA0B,CAAC;AAG/F,QAAA,IAAA,CAAA,UAAU,GAA0C,IAAI,YAAY,EAA2B,CAAC;AAGhG,QAAA,IAAA,CAAA,gBAAgB,GAAqC,IAAI,YAAY,EAAsB,CAAC;AAEpF,QAAA,IAAW,CAAA,WAAA,GAAuB,MAAM,CAAC;AAW1C,QAAA,IAAA,CAAA,UAAU,GAAyB,IAAI,YAAY,EAAU,CAAC;QAE7D,IAAA,CAAA,KAAK,GAAW,QAAQ,CAAC,GAAG,CAAC,CAAmB,i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A,EAAA,CACrB,YAAY,EAAG,gBAAgB,aAD7B,mBAAmB,CAAA,EAAA,CAAA,CAAA;AASzB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,gBAAgB,YAJZ,OAAO,CAAA,EAAA,CAAA,CAAA;2FAIX,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,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;iBAChB,CAAA;;;ACbD;;AAEG;;;;"}
|
@@ -36,19 +36,19 @@ class AXCheckBoxComponent extends AXBaseValueComponentMixin {
|
|
36
36
|
return true;
|
37
37
|
}
|
38
38
|
}
|
39
|
-
AXCheckBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
40
|
-
AXCheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
39
|
+
AXCheckBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCheckBoxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
40
|
+
AXCheckBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: { disabled: "disabled", tabIndex: "tabIndex", readonly: "readonly", allowNull: "allowNull", value: "value", name: "name", checked: "checked" }, outputs: { onBlur: "onBlur", onFocus: "onFocus", valueChange: "valueChange", onValueChanged: "onValueChanged" }, usesInheritance: true, ngImport: i0, template: "<label class=\"ax-checkbox-label\" [class.ax-state-readonly]=\"readonly\" [class.ax-state-disabled]=\"disabled\">\r\n <div class=\"ax-checkbox-start-side\">\r\n <input [id]=\"id\" class=\"ax-checkbox\" type=\"checkbox\" \r\n [indeterminate]=\"_stateIndeterminate\" [(ngModel)]=\"value\"\r\n [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-checkbox-end-side\">\r\n <ng-content></ng-content>\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n <span class=\"ax-error-container\"></span>\r\n </div>\r\n</label>\r\n<ng-content select=\"ax-validation-rule\"></ng-content>", styles: [".ax-checkbox-label{display:flex;align-items:flex-start;width:-moz-fit-content;width:fit-content;font-size:.875rem;line-height:1.25rem}.ax-checkbox-label .ax-checkbox-start-side{display:flex;align-items:center;height:1.25rem}.ax-checkbox-label .ax-checkbox-end-side{margin-inline-start:.75rem}\n"], dependencies: [{ kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { 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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCheckBoxComponent, decorators: [{
|
42
42
|
type: Component,
|
43
|
-
args: [{ selector: 'ax-check-box', inputs: ['disabled', 'tabIndex', 'readonly', 'allowNull', 'value', 'name', 'checked'], outputs: ['onBlur', 'onFocus', 'valueChange', 'onValueChanged'],
|
43
|
+
args: [{ selector: 'ax-check-box', inputs: ['disabled', 'tabIndex', 'readonly', 'allowNull', 'value', 'name', 'checked'], outputs: ['onBlur', 'onFocus', 'valueChange', 'onValueChanged'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<label class=\"ax-checkbox-label\" [class.ax-state-readonly]=\"readonly\" [class.ax-state-disabled]=\"disabled\">\r\n <div class=\"ax-checkbox-start-side\">\r\n <input [id]=\"id\" class=\"ax-checkbox\" type=\"checkbox\" \r\n [indeterminate]=\"_stateIndeterminate\" [(ngModel)]=\"value\"\r\n [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-checkbox-end-side\">\r\n <ng-content></ng-content>\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n <span class=\"ax-error-container\"></span>\r\n </div>\r\n</label>\r\n<ng-content select=\"ax-validation-rule\"></ng-content>", styles: [".ax-checkbox-label{display:flex;align-items:flex-start;width:-moz-fit-content;width:fit-content;font-size:.875rem;line-height:1.25rem}.ax-checkbox-label .ax-checkbox-start-side{display:flex;align-items:center;height:1.25rem}.ax-checkbox-label .ax-checkbox-end-side{margin-inline-start:.75rem}\n"] }]
|
44
44
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
45
45
|
|
46
46
|
class AXCheckBoxModule {
|
47
47
|
}
|
48
|
-
AXCheckBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
49
|
-
AXCheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
50
|
-
AXCheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
48
|
+
AXCheckBoxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCheckBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
49
|
+
AXCheckBoxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: AXCheckBoxModule, declarations: [AXCheckBoxComponent], imports: [CommonModule, FormsModule, AXDecoratorModule], exports: [AXCheckBoxComponent] });
|
50
|
+
AXCheckBoxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCheckBoxModule, imports: [CommonModule, FormsModule, AXDecoratorModule] });
|
51
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXCheckBoxModule, decorators: [{
|
52
52
|
type: NgModule,
|
53
53
|
args: [{
|
54
54
|
declarations: [AXCheckBoxComponent],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"acorex-components-checkbox.mjs","sources":["../../../../projects/acorex/components/checkbox/src/checkbox.component.ts","../../../../projects/acorex/components/checkbox/src/checkbox.component.html","../../../../projects/acorex/components/checkbox/src/checkbox.module.ts","../../../../projects/acorex/components/checkbox/acorex-components-checkbox.ts"],"sourcesContent":["import { AXBaseValueComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ChangeDetectorRef,\r\n ChangeDetectionStrategy,\r\n ViewEncapsulation,\r\n ElementRef,\r\n} from '@angular/core';\r\n\r\n\r\n@Component({\r\n selector: 'ax-check-box',\r\n templateUrl: './checkbox.component.html',\r\n inputs: ['disabled', 'tabIndex', 'readonly','allowNull','value','name', 'checked'],\r\n outputs: ['onBlur', 'onFocus', 'valueChange', 'onValueChanged'],\r\n
|
1
|
+
{"version":3,"file":"acorex-components-checkbox.mjs","sources":["../../../../projects/acorex/components/checkbox/src/checkbox.component.ts","../../../../projects/acorex/components/checkbox/src/checkbox.component.html","../../../../projects/acorex/components/checkbox/src/checkbox.module.ts","../../../../projects/acorex/components/checkbox/acorex-components-checkbox.ts"],"sourcesContent":["import { AXBaseValueComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n Component,\r\n ChangeDetectorRef,\r\n ChangeDetectionStrategy,\r\n ViewEncapsulation,\r\n ElementRef,\r\n} from '@angular/core';\r\n\r\n\r\n@Component({\r\n selector: 'ax-check-box',\r\n templateUrl: './checkbox.component.html',\r\n styleUrls: ['./checkbox.component.scss'],\r\n inputs: ['disabled', 'tabIndex', 'readonly', 'allowNull', 'value', 'name', 'checked'],\r\n outputs: ['onBlur', 'onFocus', 'valueChange', 'onValueChanged'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXCheckBoxComponent extends AXBaseValueComponentMixin {\r\n constructor(elementRef: ElementRef, private _cdr: ChangeDetectorRef) {\r\n super(elementRef, _cdr);\r\n }\r\n\r\n onInit() {\r\n super.onInit();\r\n if (!this.allowNull && this.value == null) {\r\n this.value = false;\r\n }\r\n }\r\n\r\n _setValue(value) {\r\n if (this.allowNull && value == null) {\r\n this._stateIndeterminate = true;\r\n } else {\r\n this._stateIndeterminate = false;\r\n value = value == true ? true : false;\r\n }\r\n return value;\r\n }\r\n\r\n _handleOnClickEvent(e: MouseEvent) {\r\n if (this.readonly || this.disabled) {\r\n e.preventDefault();\r\n e.stopPropagation();\r\n return false;\r\n }\r\n return true;\r\n }\r\n}\r\n","<label class=\"ax-checkbox-label\" [class.ax-state-readonly]=\"readonly\" [class.ax-state-disabled]=\"disabled\">\r\n <div class=\"ax-checkbox-start-side\">\r\n <input [id]=\"id\" class=\"ax-checkbox\" type=\"checkbox\" \r\n [indeterminate]=\"_stateIndeterminate\" [(ngModel)]=\"value\"\r\n [checked]=\"value\" [disabled]=\"disabled\" [readonly]=\"readonly\" [tabindex]=\"tabIndex\"\r\n (click)=\"_handleOnClickEvent($event)\" (focus)=\"_emitOnFocusEvent($event)\" (blur)=\"_emitOnBlurEvent($event)\">\r\n </div>\r\n <div class=\"ax-checkbox-end-side\">\r\n <ng-content></ng-content>\r\n <ng-content select=\"ax-form-hint\"></ng-content>\r\n <span class=\"ax-error-container\"></span>\r\n </div>\r\n</label>\r\n<ng-content select=\"ax-validation-rule\"></ng-content>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXCheckBoxComponent } from './checkbox.component';\r\n@NgModule({\r\n declarations: [AXCheckBoxComponent],\r\n imports: [CommonModule, FormsModule, AXDecoratorModule],\r\n exports: [AXCheckBoxComponent],\r\n providers: [],\r\n})\r\nexport class AXCheckBoxModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAmBM,MAAO,mBAAoB,SAAQ,yBAAyB,CAAA;IAChE,WAAY,CAAA,UAAsB,EAAU,IAAuB,EAAA;AACjE,QAAA,KAAK,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AADkB,QAAA,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAmB;KAElE;IAED,MAAM,GAAA;QACJ,KAAK,CAAC,MAAM,EAAE,CAAC;QACf,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE;AACzC,YAAA,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;AACpB,SAAA;KACF;AAED,IAAA,SAAS,CAAC,KAAK,EAAA;AACb,QAAA,IAAI,IAAI,CAAC,SAAS,IAAI,KAAK,IAAI,IAAI,EAAE;AACnC,YAAA,IAAI,CAAC,mBA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AA;kBAN5B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,iBAAiB,CAAC;oBACvD,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC9B,oBAAA,SAAS,EAAE,EAAE;iBACd,CAAA;;;ACVD;;AAEG;;;;"}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
import { AXBaseComponent } from '@acorex/components/mixin';
|
2
|
+
import * as i0 from '@angular/core';
|
3
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, HostBinding, NgModule } from '@angular/core';
|
4
|
+
import * as i1 from '@angular/common';
|
5
|
+
import { CommonModule } from '@angular/common';
|
6
|
+
|
7
|
+
class AXChipsComponent extends AXBaseComponent {
|
8
|
+
constructor() {
|
9
|
+
super();
|
10
|
+
this.look = 'default';
|
11
|
+
this.color = 'ghost';
|
12
|
+
this.text = '';
|
13
|
+
}
|
14
|
+
ngOnInit() { }
|
15
|
+
get __hostClass() {
|
16
|
+
return `ax-${this.color}-${this.look}`;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
AXChipsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXChipsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
20
|
+
AXChipsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: AXChipsComponent, selector: "ax-chips", inputs: { look: "look", color: "color", text: "text" }, host: { properties: { "class": "this.__hostClass" } }, usesInheritance: true, ngImport: i0, template: "<ng-content select=\"ax-prefix\"></ng-content>\r\n<div class=\"ax-chips-text\" *ngIf=\"text\">{{text }}</div>\r\n<ng-content select=\"ax-suffix\"></ng-content>", styles: ["ax-chips{font-size:.875rem;padding:.375rem .5rem;border-radius:var(--ax-rounded-border-default);display:inline-flex;align-items:center;cursor:pointer;transition:background-color .3s;-webkit-user-select:none;user-select:none}ax-chips:focus-within{outline-offset:2px;outline-width:2px;outline-style:solid;outline-color:rgb(var(--ax-color-primary))}ax-chips .ax-chips-text{padding:0 .5rem}ax-chips ax-prefix,ax-chips ax-suffix{display:flex;align-items:center;font-size:1rem}ax-chips ax-prefix ax-icon,ax-chips ax-suffix ax-icon{font-size:1rem!important}ax-chips.ax-primary-default{background-color:rgb(var(--ax-color-primary));color:rgb(var(--ax-color-primary-fore))}ax-chips.ax-primary-default:hover{background-color:rgba(var(--ax-color-primary),.8)}ax-chips.ax-primary-outline{border:1px solid;border-color:rgb(var(--ax-color-primary));color:rgba(var(--ax-color-primary),.87)}ax-chips.ax-primary-outline:hover{background:rgba(var(--ax-color-primary));color:rgba(var(--ax-color-primary-fore))}ax-chips.ax-secondary-default{background-color:rgb(var(--ax-color-secondary));color:rgb(var(--ax-color-secondary-fore))}ax-chips.ax-secondary-default:hover{background-color:rgba(var(--ax-color-secondary),.8)}ax-chips.ax-secondary-outline{border:1px solid;border-color:rgb(var(--ax-color-secondary));color:rgba(var(--ax-color-secondary),.87)}ax-chips.ax-secondary-outline:hover{background:rgba(var(--ax-color-secondary));color:rgba(var(--ax-color-secondary-fore))}ax-chips.ax-success-default{background-color:rgb(var(--ax-color-success));color:rgb(var(--ax-color-success-fore))}ax-chips.ax-success-default:hover{background-color:rgba(var(--ax-color-success),.8)}ax-chips.ax-success-outline{border:1px solid;border-color:rgb(var(--ax-color-success));color:rgba(var(--ax-color-success),.87)}ax-chips.ax-success-outline:hover{background:rgba(var(--ax-color-success));color:rgba(var(--ax-color-success-fore))}ax-chips.ax-warning-default{background-color:rgb(var(--ax-color-warning));color:rgb(var(--ax-color-warning-fore))}ax-chips.ax-warning-default:hover{background-color:rgba(var(--ax-color-warning),.8)}ax-chips.ax-warning-outline{border:1px solid;border-color:rgb(var(--ax-color-warning));color:rgba(var(--ax-color-warning),.87)}ax-chips.ax-warning-outline:hover{background:rgba(var(--ax-color-warning));color:rgba(var(--ax-color-warning-fore))}ax-chips.ax-danger-default{background-color:rgb(var(--ax-color-danger));color:rgb(var(--ax-color-danger-fore))}ax-chips.ax-danger-default:hover{background-color:rgba(var(--ax-color-danger),.8)}ax-chips.ax-danger-outline{border:1px solid;border-color:rgb(var(--ax-color-danger));color:rgba(var(--ax-color-danger),.87)}ax-chips.ax-danger-outline:hover{background:rgba(var(--ax-color-danger));color:rgba(var(--ax-color-danger-fore))}ax-chips.ax-ghost-default{background-color:rgba(var(--ax-color-ghost),.08);color:rgba(var(--ax-color-ghost),.87)}ax-chips.ax-ghost-default:hover{background-color:rgba(var(--ax-color-ghost),.16)}ax-chips.ax-ghost-outline{border:1px solid;border-color:rgba(var(--ax-color-ghost),.16);color:rgba(var(--ax-color-ghost),.87)}ax-chips.ax-ghost-outline:hover{background:rgba(var(--ax-color-ghost),.08);border-color:rgba(var(--ax-color-ghost),.16)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXChipsComponent, decorators: [{
|
22
|
+
type: Component,
|
23
|
+
args: [{ selector: 'ax-chips', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ng-content select=\"ax-prefix\"></ng-content>\r\n<div class=\"ax-chips-text\" *ngIf=\"text\">{{text }}</div>\r\n<ng-content select=\"ax-suffix\"></ng-content>", styles: ["ax-chips{font-size:.875rem;padding:.375rem .5rem;border-radius:var(--ax-rounded-border-default);display:inline-flex;align-items:center;cursor:pointer;transition:background-color .3s;-webkit-user-select:none;user-select:none}ax-chips:focus-within{outline-offset:2px;outline-width:2px;outline-style:solid;outline-color:rgb(var(--ax-color-primary))}ax-chips .ax-chips-text{padding:0 .5rem}ax-chips ax-prefix,ax-chips ax-suffix{display:flex;align-items:center;font-size:1rem}ax-chips ax-prefix ax-icon,ax-chips ax-suffix ax-icon{font-size:1rem!important}ax-chips.ax-primary-default{background-color:rgb(var(--ax-color-primary));color:rgb(var(--ax-color-primary-fore))}ax-chips.ax-primary-default:hover{background-color:rgba(var(--ax-color-primary),.8)}ax-chips.ax-primary-outline{border:1px solid;border-color:rgb(var(--ax-color-primary));color:rgba(var(--ax-color-primary),.87)}ax-chips.ax-primary-outline:hover{background:rgba(var(--ax-color-primary));color:rgba(var(--ax-color-primary-fore))}ax-chips.ax-secondary-default{background-color:rgb(var(--ax-color-secondary));color:rgb(var(--ax-color-secondary-fore))}ax-chips.ax-secondary-default:hover{background-color:rgba(var(--ax-color-secondary),.8)}ax-chips.ax-secondary-outline{border:1px solid;border-color:rgb(var(--ax-color-secondary));color:rgba(var(--ax-color-secondary),.87)}ax-chips.ax-secondary-outline:hover{background:rgba(var(--ax-color-secondary));color:rgba(var(--ax-color-secondary-fore))}ax-chips.ax-success-default{background-color:rgb(var(--ax-color-success));color:rgb(var(--ax-color-success-fore))}ax-chips.ax-success-default:hover{background-color:rgba(var(--ax-color-success),.8)}ax-chips.ax-success-outline{border:1px solid;border-color:rgb(var(--ax-color-success));color:rgba(var(--ax-color-success),.87)}ax-chips.ax-success-outline:hover{background:rgba(var(--ax-color-success));color:rgba(var(--ax-color-success-fore))}ax-chips.ax-warning-default{background-color:rgb(var(--ax-color-warning));color:rgb(var(--ax-color-warning-fore))}ax-chips.ax-warning-default:hover{background-color:rgba(var(--ax-color-warning),.8)}ax-chips.ax-warning-outline{border:1px solid;border-color:rgb(var(--ax-color-warning));color:rgba(var(--ax-color-warning),.87)}ax-chips.ax-warning-outline:hover{background:rgba(var(--ax-color-warning));color:rgba(var(--ax-color-warning-fore))}ax-chips.ax-danger-default{background-color:rgb(var(--ax-color-danger));color:rgb(var(--ax-color-danger-fore))}ax-chips.ax-danger-default:hover{background-color:rgba(var(--ax-color-danger),.8)}ax-chips.ax-danger-outline{border:1px solid;border-color:rgb(var(--ax-color-danger));color:rgba(var(--ax-color-danger),.87)}ax-chips.ax-danger-outline:hover{background:rgba(var(--ax-color-danger));color:rgba(var(--ax-color-danger-fore))}ax-chips.ax-ghost-default{background-color:rgba(var(--ax-color-ghost),.08);color:rgba(var(--ax-color-ghost),.87)}ax-chips.ax-ghost-default:hover{background-color:rgba(var(--ax-color-ghost),.16)}ax-chips.ax-ghost-outline{border:1px solid;border-color:rgba(var(--ax-color-ghost),.16);color:rgba(var(--ax-color-ghost),.87)}ax-chips.ax-ghost-outline:hover{background:rgba(var(--ax-color-ghost),.08);border-color:rgba(var(--ax-color-ghost),.16)}\n"] }]
|
24
|
+
}], ctorParameters: function () { return []; }, propDecorators: { look: [{
|
25
|
+
type: Input
|
26
|
+
}], color: [{
|
27
|
+
type: Input
|
28
|
+
}], text: [{
|
29
|
+
type: Input
|
30
|
+
}], __hostClass: [{
|
31
|
+
type: HostBinding,
|
32
|
+
args: ['class']
|
33
|
+
}] } });
|
34
|
+
|
35
|
+
class AXChipsModule {
|
36
|
+
}
|
37
|
+
AXChipsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXChipsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
38
|
+
AXChipsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: AXChipsModule, declarations: [AXChipsComponent], imports: [CommonModule], exports: [AXChipsComponent] });
|
39
|
+
AXChipsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXChipsModule, imports: [CommonModule] });
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: AXChipsModule, decorators: [{
|
41
|
+
type: NgModule,
|
42
|
+
args: [{
|
43
|
+
declarations: [AXChipsComponent],
|
44
|
+
imports: [CommonModule],
|
45
|
+
exports: [AXChipsComponent],
|
46
|
+
providers: [],
|
47
|
+
}]
|
48
|
+
}] });
|
49
|
+
|
50
|
+
/**
|
51
|
+
* Generated bundle index. Do not edit.
|
52
|
+
*/
|
53
|
+
|
54
|
+
export { AXChipsComponent, AXChipsModule };
|
55
|
+
//# sourceMappingURL=acorex-components-chips.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"acorex-components-chips.mjs","sources":["../../../../projects/acorex/components/chips/src/chips.component.ts","../../../../projects/acorex/components/chips/src/chips.component.html","../../../../projects/acorex/components/chips/src/chips.module.ts","../../../../projects/acorex/components/chips/acorex-components-chips.ts"],"sourcesContent":["import { AXStyleColorType } from '@acorex/components/common';\r\nimport { AXBaseComponent } from '@acorex/components/mixin';\r\nimport { AXColorMode } from '@acorex/core/utils';\r\nimport { Component, Input, HostBinding, ChangeDetectionStrategy, ViewEncapsulation, Attribute } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-chips',\r\n templateUrl: './chips.component.html',\r\n styleUrls: ['./chips.component.scss'],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\n\r\nexport class AXChipsComponent extends AXBaseComponent {\r\n\r\n @Input()\r\n look: 'default' | 'outline' = 'default'\r\n\r\n @Input()\r\n color: AXStyleColorType = 'ghost';\r\n\r\n @Input()\r\n text: string = ''\r\n\r\n constructor() {\r\n super()\r\n }\r\n\r\n ngOnInit(): void { }\r\n\r\n\r\n @HostBinding('class')\r\n private get __hostClass(): string {\r\n return `ax-${this.color}-${this.look}`;\r\n }\r\n}\r\n","<ng-content select=\"ax-prefix\"></ng-content>\r\n<div class=\"ax-chips-text\" *ngIf=\"text\">{{text }}</div>\r\n<ng-content select=\"ax-suffix\"></ng-content>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { AXChipsComponent } from './chips.component';\r\n\r\n@NgModule({\r\n declarations: [AXChipsComponent],\r\n imports: [CommonModule],\r\n exports: [AXChipsComponent],\r\n providers: [],\r\n})\r\nexport class AXChipsModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAaM,MAAO,gBAAiB,SAAQ,eAAe,CAAA;AAWjD,IAAA,WAAA,GAAA;AACI,QAAA,KAAK,EAAE,CAAA;AATX,QAAA,IAAI,CAAA,IAAA,GAA0B,SAAS,CAAA;AAGvC,QAAA,IAAK,CAAA,KAAA,GAAqB,OAAO,CAAC;AAGlC,QAAA,IAAI,CAAA,IAAA,GAAW,EAAE,CAAA;KAIhB;AAED,IAAA,QAAQ,MAAY;AAGpB,IAAA,IACY,WAAW,GAAA;QACnB,OAAO,CAAA,GAAA,EAAM,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,IAAI,CAAA,CAAE,CAAC;KAC1C;;6GArBQ,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,sLCb7B,iKAE4C,EAAA,MAAA,EAAA,CAAA,0oGAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;2FDW/B,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAR5B,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,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