@acorex/components 7.0.40 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-sheet/src/action-sheet.interface.d.ts +1 -1
- package/alert/src/alert.component.d.ts +3 -3
- 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 +7 -7
- package/button/src/button-group.component.d.ts +7 -7
- package/button/src/button-item.class.d.ts +1 -1
- package/button/src/button-item.component.d.ts +7 -7
- package/button/src/button.component.d.ts +1 -1
- package/calendar/public-api.d.ts +1 -0
- package/calendar/src/calendar-range.component.d.ts +29 -0
- package/calendar/src/calendar.class.d.ts +55 -6
- package/calendar/src/calendar.component.d.ts +17 -24
- package/calendar/src/calendar.module.d.ts +4 -3
- package/checkbox/src/checkbox.component.d.ts +1 -1
- package/chips/src/chips.component.d.ts +7 -7
- 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-swatches.component.d.ts +1 -1
- package/color-palette/src/color-palette.class.d.ts +1 -1
- package/color-palette/src/color-palette.component.d.ts +1 -1
- package/color-picker/src/color-picker.component.d.ts +20 -17
- package/common/public-api.d.ts +1 -0
- package/common/src/classes/data.class.d.ts +4 -0
- package/common/src/classes/events.class.d.ts +9 -0
- package/common/src/classes/styles.class.d.ts +5 -5
- package/common/src/components/base-component.class.d.ts +6 -9
- package/common/src/components/index.d.ts +1 -0
- package/common/src/components/value-component.class.d.ts +45 -0
- package/common/src/constant/positions.d.ts +1 -1
- package/common/src/directives/auto-focus.directive.d.ts +1 -1
- package/common/src/directives/debounce-time.directive.d.ts +1 -1
- package/common/src/directives/hotkey.directive.d.ts +2 -2
- package/common/src/directives/infinite-scroll.directive.d.ts +1 -1
- package/common/src/services/hotkey.service.d.ts +1 -1
- package/context-menu/src/context-menu.component.d.ts +1 -1
- package/data-pager/src/data-pager-base.component.d.ts +1 -1
- package/data-pager/src/data-pager-info.component.d.ts +1 -1
- package/data-pager/src/data-pager-pagesize-dropdown.component.d.ts +1 -1
- package/data-pager/src/data-pager.component.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 +15 -15
- package/decorators/src/close-button.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/sub-title.component.d.ts +1 -1
- package/decorators/src/text.component.d.ts +1 -1
- package/drawer/src/drawer.component.d.ts +3 -3
- package/dropdown/src/dropdown-panel.component.d.ts +1 -1
- package/esm2022/action-sheet/src/action-sheet.component.mjs +80 -0
- package/{esm2020 → esm2022}/action-sheet/src/action-sheet.module.mjs +5 -5
- package/esm2022/action-sheet/src/action-sheet.service.mjs +93 -0
- package/esm2022/alert/src/alert.component.mjs +188 -0
- package/{esm2020 → esm2022}/alert/src/alert.module.mjs +5 -5
- package/{esm2020 → esm2022}/avatar/src/avatar-group.component.mjs +4 -4
- package/esm2022/avatar/src/avatar.component.mjs +43 -0
- package/{esm2020 → esm2022}/avatar/src/avatar.module.mjs +5 -5
- package/esm2022/badge/src/badge.component.mjs +28 -0
- package/{esm2020 → esm2022}/badge/src/badge.module.mjs +5 -5
- package/esm2022/breadcrumbs/src/breadcrumbs-item.component.mjs +50 -0
- package/esm2022/breadcrumbs/src/breadcrumbs.component.mjs +27 -0
- package/{esm2020 → esm2022}/breadcrumbs/src/breadcrumbs.module.mjs +5 -5
- package/esm2022/button/src/button-group.component.mjs +91 -0
- package/esm2022/button/src/button-item.component.mjs +79 -0
- package/esm2022/button/src/button.component.mjs +78 -0
- package/{esm2020 → esm2022}/button/src/button.module.mjs +9 -9
- package/{esm2020 → esm2022}/calendar/public-api.mjs +2 -1
- package/esm2022/calendar/src/calendar-range.component.mjs +174 -0
- package/esm2022/calendar/src/calendar.class.mjs +280 -0
- package/esm2022/calendar/src/calendar.component.mjs +372 -0
- package/esm2022/calendar/src/calendar.module.mjs +23 -0
- package/esm2022/card/src/card.component.mjs +18 -0
- package/{esm2020 → esm2022}/card/src/card.module.mjs +5 -5
- package/esm2022/checkbox/src/checkbox.component.mjs +42 -0
- package/{esm2020 → esm2022}/checkbox/src/checkbox.module.mjs +5 -5
- package/{esm2020 → esm2022}/chips/src/chips.component.mjs +7 -7
- package/{esm2020 → esm2022}/chips/src/chips.module.mjs +5 -5
- package/esm2022/collapse/src/collapse-group.component.mjs +52 -0
- package/esm2022/collapse/src/collapse.component.mjs +47 -0
- package/{esm2020 → esm2022}/collapse/src/collapse.module.mjs +5 -5
- package/esm2022/color-palette/src/color-palette-input.component.mjs +130 -0
- package/esm2022/color-palette/src/color-palette-picker.component.mjs +159 -0
- package/esm2022/color-palette/src/color-palette-preview.component.mjs +62 -0
- package/esm2022/color-palette/src/color-palette-swatches.component.mjs +304 -0
- package/{esm2020 → esm2022}/color-palette/src/color-palette.class.mjs +7 -7
- package/esm2022/color-palette/src/color-palette.component.mjs +75 -0
- package/{esm2020 → esm2022}/color-palette/src/color-palette.module.mjs +19 -19
- package/esm2022/color-picker/src/color-picker.component.mjs +119 -0
- package/{esm2020 → esm2022}/color-picker/src/color-picker.module.mjs +25 -25
- package/esm2022/common/public-api.mjs +17 -0
- package/esm2022/common/src/classes/components.class.mjs +72 -0
- package/esm2022/common/src/classes/data.class.mjs +2 -0
- package/esm2022/common/src/classes/events.class.mjs +96 -0
- package/{esm2020 → esm2022}/common/src/common.module.mjs +13 -13
- package/esm2022/common/src/components/base-component.class.mjs +57 -0
- package/esm2022/common/src/components/button-base-component.class.mjs +69 -0
- package/esm2022/common/src/components/color-component.class.mjs +27 -0
- package/{esm2020 → esm2022}/common/src/components/index.mjs +2 -1
- package/esm2022/common/src/components/interactive-component.class.mjs +63 -0
- package/{esm2020 → esm2022}/common/src/components/look-component.class.mjs +3 -3
- package/esm2022/common/src/components/value-component.class.mjs +206 -0
- package/esm2022/common/src/directives/auto-focus.directive.mjs +57 -0
- package/esm2022/common/src/directives/debounce-time.directive.mjs +49 -0
- package/esm2022/common/src/directives/hotkey.directive.mjs +82 -0
- package/esm2022/common/src/directives/infinite-scroll.directive.mjs +69 -0
- package/esm2022/common/src/directives/responsive.directive.mjs +35 -0
- package/esm2022/common/src/services/custom-cdk-overlay.service.mjs +50 -0
- package/esm2022/common/src/services/hotkey.service.mjs +40 -0
- package/esm2022/common/src/services/overlay.service.mjs +115 -0
- package/esm2022/context-menu/src/context-menu.component.mjs +270 -0
- package/{esm2020 → esm2022}/context-menu/src/context-menu.module.mjs +9 -9
- package/esm2022/data-pager/src/data-pager-base.component.mjs +35 -0
- package/esm2022/data-pager/src/data-pager-info.component.mjs +61 -0
- package/esm2022/data-pager/src/data-pager-input-selector.component.mjs +53 -0
- package/esm2022/data-pager/src/data-pager-next-buttons.components.mjs +66 -0
- package/esm2022/data-pager/src/data-pager-numeric-selector.component.mjs +100 -0
- package/esm2022/data-pager/src/data-pager-pagesize-dropdown.component.mjs +88 -0
- package/esm2022/data-pager/src/data-pager-prev-buttons.component.mjs +61 -0
- package/esm2022/data-pager/src/data-pager.component.mjs +146 -0
- package/{esm2020 → esm2022}/data-pager/src/data-pager.module.mjs +17 -17
- package/esm2022/data-table/src/data-column-cell-template.directive.mjs +18 -0
- package/esm2022/data-table/src/data-column.directive.mjs +50 -0
- package/esm2022/data-table/src/data-table.component.mjs +139 -0
- package/{esm2020 → esm2022}/data-table/src/data-table.module.mjs +5 -5
- package/esm2022/date-picker/src/datepicker.component.mjs +240 -0
- package/{esm2020 → esm2022}/date-picker/src/datepicker.module.mjs +12 -12
- package/esm2022/decorators/src/close-button.component.mjs +51 -0
- package/{esm2020 → esm2022}/decorators/src/content.component.mjs +4 -4
- package/{esm2020 → esm2022}/decorators/src/decorators.module.mjs +29 -29
- package/{esm2020 → esm2022}/decorators/src/footer.component.mjs +5 -5
- package/{esm2020 → esm2022}/decorators/src/form-hint.component.mjs +4 -4
- package/{esm2020 → esm2022}/decorators/src/header.component.mjs +5 -5
- package/esm2022/decorators/src/icon.component.mjs +30 -0
- package/esm2022/decorators/src/overlay.component.mjs +20 -0
- package/{esm2020 → esm2022}/decorators/src/placeholder.component.mjs +4 -4
- package/{esm2020 → esm2022}/decorators/src/prefix.component.mjs +4 -4
- package/esm2022/decorators/src/sub-title.component.mjs +27 -0
- package/{esm2020 → esm2022}/decorators/src/suffix.component.mjs +4 -4
- package/esm2022/decorators/src/text.component.mjs +22 -0
- package/{esm2020 → esm2022}/decorators/src/title.component.mjs +4 -4
- package/{esm2020 → esm2022}/dialog/src/dialog.component.mjs +7 -4
- package/{esm2020 → esm2022}/dialog/src/dialog.module.mjs +5 -5
- package/esm2022/dialog/src/dialog.service.mjs +154 -0
- package/esm2022/drawer/src/drawer-container.component.mjs +38 -0
- package/esm2022/drawer/src/drawer.component.mjs +144 -0
- package/{esm2020 → esm2022}/drawer/src/drawer.module.mjs +5 -5
- package/esm2022/dropdown/src/dropdown-panel.component.mjs +105 -0
- package/{esm2020 → esm2022}/dropdown/src/dropdown.module.mjs +5 -5
- package/{esm2020 → esm2022}/form/src/form-field.component.mjs +4 -4
- package/esm2022/form/src/form.component.mjs +163 -0
- package/{esm2020 → esm2022}/form/src/form.module.mjs +11 -11
- package/esm2022/form/src/validation-rule.widget.mjs +113 -0
- package/esm2022/form/src/validation-summary.component.mjs +109 -0
- package/esm2022/image/src/image.component.mjs +79 -0
- package/{esm2020 → esm2022}/image/src/image.module.mjs +5 -5
- package/esm2022/label/src/label.component.mjs +48 -0
- package/{esm2020 → esm2022}/label/src/label.module.mjs +5 -5
- package/{esm2020 → esm2022}/loading/src/loading-spinner.component.mjs +6 -5
- package/esm2022/loading/src/loading.component.mjs +67 -0
- package/esm2022/loading/src/loading.directive.mjs +76 -0
- package/{esm2020 → esm2022}/loading/src/loading.module.mjs +5 -5
- package/esm2022/loading/src/loading.service.mjs +158 -0
- package/esm2022/menu/src/menu.component.mjs +346 -0
- package/{esm2020 → esm2022}/menu/src/menu.module.mjs +8 -8
- package/esm2022/mixin/src/base-components.class.mjs +110 -0
- package/esm2022/mixin/src/base-menu-mixin.class.mjs +134 -0
- package/esm2022/mixin/src/button-mixin.class.mjs +71 -0
- package/esm2022/mixin/src/clickable-mixin.class.mjs +24 -0
- package/esm2022/mixin/src/color-look-mixing.class.mjs +48 -0
- package/esm2022/mixin/src/datalist-component.class.mjs +151 -0
- package/esm2022/mixin/src/dropdown-mixin.class.mjs +99 -0
- package/esm2022/mixin/src/interactive-mixin.class.mjs +81 -0
- package/esm2022/mixin/src/loading-mixin.class.mjs +26 -0
- package/esm2022/mixin/src/selection-component.class.mjs +183 -0
- package/esm2022/mixin/src/sizable-mixin.class.mjs +22 -0
- package/esm2022/mixin/src/textbox-mixin.class.mjs +66 -0
- package/esm2022/mixin/src/value-mixin.class.mjs +220 -0
- package/esm2022/notification/src/notification.component.mjs +92 -0
- package/{esm2020 → esm2022}/notification/src/notification.module.mjs +5 -5
- package/esm2022/notification/src/notification.service.mjs +109 -0
- package/esm2022/number-box/src/number-box.component.mjs +268 -0
- package/{esm2020 → esm2022}/number-box/src/number-box.module.mjs +9 -9
- package/esm2022/page/src/base-page.class.mjs +63 -0
- package/esm2022/page/src/page.component.mjs +46 -0
- package/{esm2020 → esm2022}/page/src/page.module.mjs +5 -5
- package/esm2022/password-box/src/password-box.component.mjs +63 -0
- package/{esm2020 → esm2022}/password-box/src/password-box.module.mjs +8 -8
- package/esm2022/picker/src/picker-column.component.mjs +20 -0
- package/{esm2020 → esm2022}/picker/src/picker.component.mjs +4 -4
- package/{esm2020 → esm2022}/picker/src/picker.module.mjs +9 -9
- package/esm2022/popover/src/popover.component.mjs +262 -0
- package/{esm2020 → esm2022}/popover/src/popover.module.mjs +5 -5
- package/esm2022/popup/src/popup.component.mjs +145 -0
- package/{esm2020 → esm2022}/popup/src/popup.module.mjs +5 -5
- package/esm2022/popup/src/popup.service.mjs +116 -0
- package/{esm2020 → esm2022}/progress-bar/src/progress-bar.component.mjs +5 -5
- package/{esm2020 → esm2022}/progress-bar/src/progress-bar.module.mjs +5 -5
- package/{esm2020 → esm2022}/radio/src/radio.component.mjs +4 -4
- package/{esm2020 → esm2022}/radio/src/radio.module.mjs +5 -5
- package/esm2022/range-slider/src/range-slider.component.mjs +117 -0
- package/{esm2020 → esm2022}/range-slider/src/range-slider.module.mjs +5 -5
- package/esm2022/rating/src/rating.component.mjs +41 -0
- package/{esm2020 → esm2022}/rating/src/rating.component.module.mjs +5 -5
- package/esm2022/result/src/result.component.mjs +26 -0
- package/{esm2020 → esm2022}/result/src/result.module.mjs +5 -5
- package/esm2022/search-box/src/search-box.component.mjs +54 -0
- package/{esm2020 → esm2022}/search-box/src/search-box.module.mjs +5 -5
- package/esm2022/select-box/src/selectbox.component.mjs +391 -0
- package/{esm2020 → esm2022}/select-box/src/selectbox.module.mjs +27 -27
- package/{esm2020 → esm2022}/selection-list/src/selection-list.component.mjs +8 -8
- package/{esm2020 → esm2022}/selection-list/src/selection-list.module.mjs +5 -5
- package/{esm2020 → esm2022}/switch/src/switch-content.component.mjs +4 -4
- package/{esm2020 → esm2022}/switch/src/switch.component.mjs +7 -4
- package/{esm2020 → esm2022}/switch/src/switch.module.mjs +5 -5
- package/esm2022/tabs/src/tab-content.directive.mjs +31 -0
- package/esm2022/tabs/src/tab-item.component.mjs +140 -0
- package/esm2022/tabs/src/tabs.class.mjs +6 -0
- package/{esm2020 → esm2022}/tabs/src/tabs.component.mjs +14 -11
- package/{esm2020 → esm2022}/tabs/src/tabs.module.mjs +5 -5
- package/{esm2020 → esm2022}/tag/src/tag.component.mjs +6 -6
- package/{esm2020 → esm2022}/tag/src/tag.module.mjs +5 -5
- package/esm2022/textarea/src/textarea.component.mjs +29 -0
- package/{esm2020 → esm2022}/textarea/src/textarea.module.mjs +5 -5
- package/esm2022/textbox/src/mask-options.directive.mjs +19 -0
- package/esm2022/textbox/src/textbox.component.mjs +95 -0
- package/{esm2020 → esm2022}/textbox/src/textbox.module.mjs +13 -13
- package/esm2022/time-box/src/time-box.component.mjs +305 -0
- package/{esm2020 → esm2022}/time-box/src/time-box.module.mjs +8 -8
- package/esm2022/toast/src/toast.component.mjs +67 -0
- package/{esm2020 → esm2022}/toast/src/toast.module.mjs +5 -5
- package/esm2022/toast/src/toast.service.mjs +136 -0
- package/esm2022/tooltip/src/tooltip.component.mjs +21 -0
- package/esm2022/tooltip/src/tooltip.directive.mjs +163 -0
- package/{esm2020 → esm2022}/tooltip/src/tooltip.module.mjs +5 -5
- package/esm2022/tree-view/src/tree-view.component.mjs +107 -0
- package/{esm2020 → esm2022}/tree-view/src/tree-view.module.mjs +5 -5
- package/esm2022/uploader/src/uploader.component.mjs +101 -0
- package/{esm2020 → esm2022}/uploader/src/uploader.module.mjs +5 -5
- package/{fesm2020 → fesm2022}/acorex-components-action-sheet.mjs +21 -16
- package/{fesm2020 → fesm2022}/acorex-components-action-sheet.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-alert.mjs +41 -32
- package/{fesm2020 → fesm2022}/acorex-components-alert.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-avatar.mjs +12 -11
- package/{fesm2020 → fesm2022}/acorex-components-avatar.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/acorex-components-badge.mjs +9 -9
- package/{fesm2015 → fesm2022}/acorex-components-badge.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-breadcrumbs.mjs +16 -11
- package/{fesm2020 → fesm2022}/acorex-components-breadcrumbs.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-button.mjs +45 -48
- package/fesm2022/acorex-components-button.mjs.map +1 -0
- package/fesm2022/acorex-components-calendar.mjs +837 -0
- package/fesm2022/acorex-components-calendar.mjs.map +1 -0
- package/fesm2022/acorex-components-card.mjs +41 -0
- package/{fesm2015 → fesm2022}/acorex-components-card.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-checkbox.mjs +8 -8
- package/{fesm2015 → fesm2022}/acorex-components-checkbox.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/acorex-components-chips.mjs +10 -11
- package/{fesm2020 → fesm2022}/acorex-components-chips.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/acorex-components-collapse.mjs +21 -18
- package/{fesm2020 → fesm2022}/acorex-components-collapse.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-color-palette.mjs +337 -331
- package/{fesm2020 → fesm2022}/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-color-picker.mjs +182 -0
- package/fesm2022/acorex-components-color-picker.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/acorex-components-common.mjs +405 -140
- package/fesm2022/acorex-components-common.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/acorex-components-context-menu.mjs +29 -20
- package/{fesm2015 → fesm2022}/acorex-components-context-menu.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-data-pager.mjs +95 -80
- package/{fesm2020 → fesm2022}/acorex-components-data-pager.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-data-table.mjs +40 -31
- package/{fesm2020 → fesm2022}/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-date-picker.mjs +285 -0
- package/fesm2022/acorex-components-date-picker.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/acorex-components-decorators.mjs +80 -80
- package/{fesm2015 → fesm2022}/acorex-components-decorators.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-dialog.mjs +16 -11
- package/{fesm2015 → fesm2022}/acorex-components-dialog.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-drawer.mjs +25 -21
- package/{fesm2020 → fesm2022}/acorex-components-drawer.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-dropdown.mjs +19 -16
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/acorex-components-form.mjs +65 -61
- package/fesm2022/acorex-components-form.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/acorex-components-image.mjs +17 -15
- package/{fesm2015 → fesm2022}/acorex-components-image.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/acorex-components-label.mjs +12 -10
- package/fesm2022/acorex-components-label.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/acorex-components-loading.mjs +42 -29
- package/{fesm2020 → fesm2022}/acorex-components-loading.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-menu.mjs +26 -19
- package/{fesm2020 → fesm2022}/acorex-components-menu.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/acorex-components-mixin.mjs +276 -284
- package/{fesm2020 → fesm2022}/acorex-components-mixin.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-notification.mjs +24 -18
- package/{fesm2020 → fesm2022}/acorex-components-notification.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-number-box.mjs +42 -35
- package/{fesm2015 → fesm2022}/acorex-components-number-box.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-page.mjs +20 -17
- package/{fesm2020 → fesm2022}/acorex-components-page.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +99 -0
- package/{fesm2015 → fesm2022}/acorex-components-password-box.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-picker.mjs +15 -18
- package/{fesm2015 → fesm2022}/acorex-components-picker.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-popover.mjs +50 -37
- package/{fesm2015 → fesm2022}/acorex-components-popover.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-popup.mjs +30 -19
- package/{fesm2020 → fesm2022}/acorex-components-popup.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-progress-bar.mjs +8 -9
- package/{fesm2015 → fesm2022}/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +65 -0
- package/{fesm2015 → fesm2022}/acorex-components-radio.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-range-slider.mjs +16 -16
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -0
- package/fesm2022/acorex-components-rating.mjs +64 -0
- package/{fesm2015 → fesm2022}/acorex-components-rating.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-result.mjs +10 -10
- package/{fesm2020 → fesm2022}/acorex-components-result.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-search-box.mjs +12 -11
- package/{fesm2020 → fesm2022}/acorex-components-search-box.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-select-box.mjs +56 -46
- package/{fesm2020 → fesm2022}/acorex-components-select-box.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-selection-list.mjs +11 -12
- package/{fesm2015 → fesm2022}/acorex-components-selection-list.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-switch.mjs +13 -11
- package/{fesm2015 → fesm2022}/acorex-components-switch.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-tabs.mjs +36 -26
- package/{fesm2015 → fesm2022}/acorex-components-tabs.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-tag.mjs +9 -10
- package/{fesm2020 → fesm2022}/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-textarea.mjs +52 -0
- package/{fesm2020 → fesm2022}/acorex-components-textarea.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-textbox.mjs +34 -30
- package/{fesm2020 → fesm2022}/acorex-components-textbox.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-time-box.mjs +30 -22
- package/{fesm2020 → fesm2022}/acorex-components-time-box.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-toast.mjs +22 -18
- package/{fesm2020 → fesm2022}/acorex-components-toast.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-tooltip.mjs +20 -14
- package/{fesm2020 → fesm2022}/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +131 -0
- package/{fesm2015 → fesm2022}/acorex-components-tree-view.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/acorex-components-uploader.mjs +15 -13
- package/{fesm2020 → fesm2022}/acorex-components-uploader.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/acorex-components.mjs +0 -1
- package/form/src/form.component.d.ts +2 -2
- package/form/src/validation-rule.widget.d.ts +1 -1
- package/form/src/validation-summary.component.d.ts +2 -2
- package/form/src/validation.class.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.component.d.ts +1 -1
- package/loading/src/loading.directive.d.ts +1 -1
- package/loading/src/loading.service.d.ts +2 -2
- package/menu/src/menu.component.d.ts +1 -1
- package/mixin/src/base-components.class.d.ts +7 -7
- 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/constratctor.d.ts +2 -2
- package/mixin/src/datalist-component.class.d.ts +10 -10
- package/mixin/src/datalist.class.d.ts +2 -2
- 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/notification/src/notification.class.d.ts +1 -1
- package/number-box/src/number-box.component.d.ts +1 -1
- package/package.json +172 -284
- package/password-box/src/password-box.component.d.ts +1 -1
- package/picker/src/picker-column.component.d.ts +1 -1
- package/popover/src/popover.component.d.ts +1 -1
- package/popup/src/popup.service.d.ts +2 -2
- package/progress-bar/src/progress-bar.component.d.ts +1 -1
- package/radio/src/radio.component.d.ts +1 -1
- package/range-slider/src/range-slider.component.d.ts +1 -1
- package/result/src/result.component.d.ts +1 -1
- package/search-box/src/search-box.component.d.ts +1 -1
- package/select-box/src/selectbox.component.d.ts +1 -1
- 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/src/tag.component.d.ts +1 -1
- package/textarea/src/textarea.component.d.ts +1 -1
- package/textbox/src/mask-options.directive.d.ts +2 -2
- package/textbox/src/textbox.component.d.ts +1 -1
- package/time-box/src/time-box.component.d.ts +2 -2
- 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
- package/esm2020/action-sheet/src/action-sheet.component.mjs +0 -76
- package/esm2020/action-sheet/src/action-sheet.service.mjs +0 -91
- package/esm2020/alert/src/alert.component.mjs +0 -178
- package/esm2020/avatar/src/avatar.component.mjs +0 -41
- package/esm2020/badge/src/badge.component.mjs +0 -27
- package/esm2020/breadcrumbs/src/breadcrumbs-item.component.mjs +0 -46
- package/esm2020/breadcrumbs/src/breadcrumbs.component.mjs +0 -25
- package/esm2020/button/src/button-group.component.mjs +0 -88
- package/esm2020/button/src/button-item.component.mjs +0 -77
- package/esm2020/button/src/button.component.mjs +0 -85
- package/esm2020/calendar/src/calendar.class.mjs +0 -127
- package/esm2020/calendar/src/calendar.component.mjs +0 -382
- package/esm2020/calendar/src/calendar.module.mjs +0 -22
- package/esm2020/card/src/card.component.mjs +0 -17
- package/esm2020/checkbox/src/checkbox.component.mjs +0 -41
- package/esm2020/collapse/src/collapse-group.component.mjs +0 -50
- package/esm2020/collapse/src/collapse.component.mjs +0 -45
- package/esm2020/color-palette/src/color-palette-input.component.mjs +0 -129
- package/esm2020/color-palette/src/color-palette-picker.component.mjs +0 -158
- package/esm2020/color-palette/src/color-palette-preview.component.mjs +0 -60
- package/esm2020/color-palette/src/color-palette-swatches.component.mjs +0 -302
- package/esm2020/color-palette/src/color-palette.component.mjs +0 -74
- package/esm2020/color-picker/src/color-picker.component.mjs +0 -105
- package/esm2020/common/public-api.mjs +0 -16
- package/esm2020/common/src/classes/components.class.mjs +0 -69
- package/esm2020/common/src/classes/events.class.mjs +0 -58
- package/esm2020/common/src/components/base-component.class.mjs +0 -57
- package/esm2020/common/src/components/button-base-component.class.mjs +0 -68
- package/esm2020/common/src/components/color-component.class.mjs +0 -27
- package/esm2020/common/src/components/interactive-component.class.mjs +0 -62
- package/esm2020/common/src/directives/auto-focus.directive.mjs +0 -55
- package/esm2020/common/src/directives/debounce-time.directive.mjs +0 -47
- package/esm2020/common/src/directives/hotkey.directive.mjs +0 -79
- package/esm2020/common/src/directives/infinite-scroll.directive.mjs +0 -63
- package/esm2020/common/src/directives/responsive.directive.mjs +0 -34
- package/esm2020/common/src/services/custom-cdk-overlay.service.mjs +0 -48
- package/esm2020/common/src/services/hotkey.service.mjs +0 -38
- package/esm2020/common/src/services/overlay.service.mjs +0 -111
- package/esm2020/context-menu/src/context-menu.component.mjs +0 -260
- package/esm2020/data-pager/src/data-pager-base.component.mjs +0 -38
- package/esm2020/data-pager/src/data-pager-info.component.mjs +0 -57
- package/esm2020/data-pager/src/data-pager-input-selector.component.mjs +0 -51
- package/esm2020/data-pager/src/data-pager-next-buttons.components.mjs +0 -63
- package/esm2020/data-pager/src/data-pager-numeric-selector.component.mjs +0 -98
- package/esm2020/data-pager/src/data-pager-pagesize-dropdown.component.mjs +0 -85
- package/esm2020/data-pager/src/data-pager-prev-buttons.component.mjs +0 -59
- package/esm2020/data-pager/src/data-pager.component.mjs +0 -143
- package/esm2020/data-table/src/data-column-cell-template.directive.mjs +0 -17
- package/esm2020/data-table/src/data-column.directive.mjs +0 -43
- package/esm2020/data-table/src/data-table.component.mjs +0 -137
- package/esm2020/date-picker/src/datepicker.component.mjs +0 -249
- package/esm2020/decorators/src/close-button.component.mjs +0 -50
- package/esm2020/decorators/src/icon.component.mjs +0 -29
- package/esm2020/decorators/src/overlay.component.mjs +0 -22
- package/esm2020/decorators/src/sub-title.component.mjs +0 -27
- package/esm2020/decorators/src/text.component.mjs +0 -21
- package/esm2020/dialog/src/dialog.service.mjs +0 -151
- package/esm2020/drawer/src/drawer-container.component.mjs +0 -37
- package/esm2020/drawer/src/drawer.component.mjs +0 -140
- package/esm2020/dropdown/src/dropdown-panel.component.mjs +0 -101
- package/esm2020/form/src/form.component.mjs +0 -160
- package/esm2020/form/src/validation-rule.widget.mjs +0 -115
- package/esm2020/form/src/validation-summary.component.mjs +0 -105
- package/esm2020/image/src/image.component.mjs +0 -76
- package/esm2020/label/src/label.component.mjs +0 -45
- package/esm2020/loading/src/loading.component.mjs +0 -64
- package/esm2020/loading/src/loading.directive.mjs +0 -68
- package/esm2020/loading/src/loading.service.mjs +0 -156
- package/esm2020/menu/src/menu.component.mjs +0 -338
- package/esm2020/mixin/src/base-components.class.mjs +0 -110
- package/esm2020/mixin/src/base-menu-mixin.class.mjs +0 -138
- package/esm2020/mixin/src/button-mixin.class.mjs +0 -70
- package/esm2020/mixin/src/clickable-mixin.class.mjs +0 -24
- package/esm2020/mixin/src/color-look-mixing.class.mjs +0 -48
- package/esm2020/mixin/src/datalist-component.class.mjs +0 -163
- package/esm2020/mixin/src/dropdown-mixin.class.mjs +0 -99
- package/esm2020/mixin/src/interactive-mixin.class.mjs +0 -84
- package/esm2020/mixin/src/loading-mixin.class.mjs +0 -18
- package/esm2020/mixin/src/selection-component.class.mjs +0 -180
- package/esm2020/mixin/src/sizable-mixin.class.mjs +0 -18
- package/esm2020/mixin/src/textbox-mixin.class.mjs +0 -58
- package/esm2020/mixin/src/value-mixin.class.mjs +0 -230
- package/esm2020/notification/src/notification.component.mjs +0 -87
- package/esm2020/notification/src/notification.service.mjs +0 -107
- package/esm2020/number-box/src/number-box.component.mjs +0 -260
- package/esm2020/page/src/base-page.class.mjs +0 -61
- package/esm2020/page/src/page.component.mjs +0 -44
- package/esm2020/password-box/src/password-box.component.mjs +0 -62
- package/esm2020/picker/src/picker-column.component.mjs +0 -22
- package/esm2020/popover/src/popover.component.mjs +0 -248
- package/esm2020/popup/src/popup.component.mjs +0 -135
- package/esm2020/popup/src/popup.service.mjs +0 -114
- package/esm2020/range-slider/src/range-slider.component.mjs +0 -116
- package/esm2020/rating/src/rating.component.mjs +0 -41
- package/esm2020/result/src/result.component.mjs +0 -25
- package/esm2020/search-box/src/search-box.component.mjs +0 -52
- package/esm2020/select-box/src/selectbox.component.mjs +0 -380
- package/esm2020/tabs/src/tab-content.directive.mjs +0 -29
- package/esm2020/tabs/src/tab-item.component.mjs +0 -136
- package/esm2020/tabs/src/tabs.class.mjs +0 -4
- package/esm2020/textarea/src/textarea.component.mjs +0 -28
- package/esm2020/textbox/src/mask-options.directive.mjs +0 -17
- package/esm2020/textbox/src/textbox.component.mjs +0 -92
- package/esm2020/time-box/src/time-box.component.mjs +0 -296
- package/esm2020/toast/src/toast.component.mjs +0 -64
- package/esm2020/toast/src/toast.service.mjs +0 -134
- package/esm2020/tooltip/src/tooltip.component.mjs +0 -20
- package/esm2020/tooltip/src/tooltip.directive.mjs +0 -157
- package/esm2020/tree-view/src/tree-view.component.mjs +0 -108
- package/esm2020/uploader/src/uploader.component.mjs +0 -98
- package/fesm2015/acorex-components-action-sheet.mjs +0 -193
- package/fesm2015/acorex-components-action-sheet.mjs.map +0 -1
- package/fesm2015/acorex-components-alert.mjs +0 -208
- package/fesm2015/acorex-components-alert.mjs.map +0 -1
- package/fesm2015/acorex-components-avatar.mjs +0 -81
- package/fesm2015/acorex-components-avatar.mjs.map +0 -1
- package/fesm2015/acorex-components-breadcrumbs.mjs +0 -91
- package/fesm2015/acorex-components-breadcrumbs.mjs.map +0 -1
- package/fesm2015/acorex-components-button.mjs +0 -281
- package/fesm2015/acorex-components-button.mjs.map +0 -1
- package/fesm2015/acorex-components-calendar.mjs +0 -531
- package/fesm2015/acorex-components-calendar.mjs.map +0 -1
- package/fesm2015/acorex-components-card.mjs +0 -41
- package/fesm2015/acorex-components-checkbox.mjs +0 -67
- package/fesm2015/acorex-components-chips.mjs.map +0 -1
- package/fesm2015/acorex-components-collapse.mjs.map +0 -1
- package/fesm2015/acorex-components-color-palette.mjs +0 -772
- package/fesm2015/acorex-components-color-palette.mjs.map +0 -1
- package/fesm2015/acorex-components-color-picker.mjs +0 -172
- package/fesm2015/acorex-components-color-picker.mjs.map +0 -1
- package/fesm2015/acorex-components-common.mjs +0 -955
- package/fesm2015/acorex-components-common.mjs.map +0 -1
- package/fesm2015/acorex-components-context-menu.mjs +0 -301
- package/fesm2015/acorex-components-data-pager.mjs +0 -615
- package/fesm2015/acorex-components-data-pager.mjs.map +0 -1
- package/fesm2015/acorex-components-data-table.mjs +0 -224
- package/fesm2015/acorex-components-data-table.mjs.map +0 -1
- package/fesm2015/acorex-components-date-picker.mjs +0 -297
- package/fesm2015/acorex-components-date-picker.mjs.map +0 -1
- package/fesm2015/acorex-components-decorators.mjs +0 -356
- package/fesm2015/acorex-components-dialog.mjs +0 -233
- package/fesm2015/acorex-components-drawer.mjs +0 -202
- package/fesm2015/acorex-components-drawer.mjs.map +0 -1
- package/fesm2015/acorex-components-dropdown.mjs +0 -135
- package/fesm2015/acorex-components-dropdown.mjs.map +0 -1
- package/fesm2015/acorex-components-form.mjs +0 -450
- package/fesm2015/acorex-components-form.mjs.map +0 -1
- package/fesm2015/acorex-components-label.mjs.map +0 -1
- package/fesm2015/acorex-components-loading.mjs +0 -385
- package/fesm2015/acorex-components-loading.mjs.map +0 -1
- package/fesm2015/acorex-components-menu.mjs +0 -381
- package/fesm2015/acorex-components-menu.mjs.map +0 -1
- package/fesm2015/acorex-components-mixin.mjs.map +0 -1
- package/fesm2015/acorex-components-notification.mjs +0 -217
- package/fesm2015/acorex-components-notification.mjs.map +0 -1
- package/fesm2015/acorex-components-number-box.mjs +0 -300
- package/fesm2015/acorex-components-page.mjs +0 -127
- package/fesm2015/acorex-components-page.mjs.map +0 -1
- package/fesm2015/acorex-components-password-box.mjs +0 -99
- package/fesm2015/acorex-components-picker.mjs +0 -77
- package/fesm2015/acorex-components-popover.mjs +0 -278
- package/fesm2015/acorex-components-popup.mjs +0 -275
- package/fesm2015/acorex-components-popup.mjs.map +0 -1
- package/fesm2015/acorex-components-progress-bar.mjs +0 -57
- package/fesm2015/acorex-components-radio.mjs +0 -66
- package/fesm2015/acorex-components-range-slider.mjs +0 -148
- package/fesm2015/acorex-components-range-slider.mjs.map +0 -1
- package/fesm2015/acorex-components-rating.mjs +0 -65
- package/fesm2015/acorex-components-result.mjs +0 -49
- package/fesm2015/acorex-components-result.mjs.map +0 -1
- package/fesm2015/acorex-components-search-box.mjs +0 -84
- package/fesm2015/acorex-components-search-box.mjs.map +0 -1
- package/fesm2015/acorex-components-select-box.mjs +0 -453
- package/fesm2015/acorex-components-select-box.mjs.map +0 -1
- package/fesm2015/acorex-components-selection-list.mjs +0 -89
- package/fesm2015/acorex-components-switch.mjs +0 -91
- package/fesm2015/acorex-components-tabs.mjs +0 -299
- package/fesm2015/acorex-components-tag.mjs +0 -53
- package/fesm2015/acorex-components-tag.mjs.map +0 -1
- package/fesm2015/acorex-components-textarea.mjs +0 -52
- package/fesm2015/acorex-components-textarea.mjs.map +0 -1
- package/fesm2015/acorex-components-textbox.mjs +0 -149
- package/fesm2015/acorex-components-textbox.mjs.map +0 -1
- package/fesm2015/acorex-components-time-box.mjs +0 -336
- package/fesm2015/acorex-components-time-box.mjs.map +0 -1
- package/fesm2015/acorex-components-toast.mjs +0 -222
- package/fesm2015/acorex-components-toast.mjs.map +0 -1
- package/fesm2015/acorex-components-tooltip.mjs +0 -164
- package/fesm2015/acorex-components-tooltip.mjs.map +0 -1
- package/fesm2015/acorex-components-tree-view.mjs +0 -133
- package/fesm2015/acorex-components-uploader.mjs +0 -129
- package/fesm2015/acorex-components-uploader.mjs.map +0 -1
- package/fesm2020/acorex-components-badge.mjs +0 -53
- package/fesm2020/acorex-components-badge.mjs.map +0 -1
- package/fesm2020/acorex-components-button.mjs.map +0 -1
- package/fesm2020/acorex-components-calendar.mjs +0 -530
- package/fesm2020/acorex-components-calendar.mjs.map +0 -1
- package/fesm2020/acorex-components-card.mjs +0 -41
- package/fesm2020/acorex-components-card.mjs.map +0 -1
- package/fesm2020/acorex-components-checkbox.mjs.map +0 -1
- package/fesm2020/acorex-components-chips.mjs +0 -57
- package/fesm2020/acorex-components-collapse.mjs +0 -115
- package/fesm2020/acorex-components-color-picker.mjs +0 -169
- package/fesm2020/acorex-components-color-picker.mjs.map +0 -1
- package/fesm2020/acorex-components-common.mjs.map +0 -1
- package/fesm2020/acorex-components-context-menu.mjs.map +0 -1
- package/fesm2020/acorex-components-date-picker.mjs +0 -295
- package/fesm2020/acorex-components-date-picker.mjs.map +0 -1
- package/fesm2020/acorex-components-decorators.mjs.map +0 -1
- package/fesm2020/acorex-components-dialog.mjs.map +0 -1
- package/fesm2020/acorex-components-dropdown.mjs.map +0 -1
- package/fesm2020/acorex-components-form.mjs.map +0 -1
- package/fesm2020/acorex-components-image.mjs +0 -100
- package/fesm2020/acorex-components-image.mjs.map +0 -1
- package/fesm2020/acorex-components-label.mjs +0 -71
- package/fesm2020/acorex-components-label.mjs.map +0 -1
- package/fesm2020/acorex-components-mixin.mjs +0 -1259
- package/fesm2020/acorex-components-number-box.mjs.map +0 -1
- package/fesm2020/acorex-components-password-box.mjs +0 -99
- package/fesm2020/acorex-components-password-box.mjs.map +0 -1
- package/fesm2020/acorex-components-picker.mjs.map +0 -1
- package/fesm2020/acorex-components-popover.mjs.map +0 -1
- package/fesm2020/acorex-components-progress-bar.mjs.map +0 -1
- package/fesm2020/acorex-components-radio.mjs +0 -66
- package/fesm2020/acorex-components-radio.mjs.map +0 -1
- package/fesm2020/acorex-components-range-slider.mjs.map +0 -1
- package/fesm2020/acorex-components-rating.mjs +0 -65
- package/fesm2020/acorex-components-rating.mjs.map +0 -1
- package/fesm2020/acorex-components-selection-list.mjs.map +0 -1
- package/fesm2020/acorex-components-switch.mjs.map +0 -1
- package/fesm2020/acorex-components-tabs.mjs.map +0 -1
- package/fesm2020/acorex-components-textarea.mjs +0 -52
- package/fesm2020/acorex-components-tree-view.mjs +0 -133
- package/fesm2020/acorex-components-tree-view.mjs.map +0 -1
- package/fesm2020/acorex-components.mjs +0 -12
- package/fesm2020/acorex-components.mjs.map +0 -1
- /package/{esm2020 → esm2022}/acorex-components.mjs +0 -0
- /package/{esm2020 → esm2022}/action-sheet/acorex-components-action-sheet.mjs +0 -0
- /package/{esm2020 → esm2022}/action-sheet/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/action-sheet/src/action-sheet.interface.mjs +0 -0
- /package/{esm2020 → esm2022}/alert/acorex-components-alert.mjs +0 -0
- /package/{esm2020 → esm2022}/alert/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/acorex-components-avatar.mjs +0 -0
- /package/{esm2020 → esm2022}/avatar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/badge/acorex-components-badge.mjs +0 -0
- /package/{esm2020 → esm2022}/badge/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/breadcrumbs/acorex-components-breadcrumbs.mjs +0 -0
- /package/{esm2020 → esm2022}/breadcrumbs/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/breadcrumbs/src/breadcrumbs-item.class.mjs +0 -0
- /package/{esm2020 → esm2022}/button/acorex-components-button.mjs +0 -0
- /package/{esm2020 → esm2022}/button/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/button/src/button-item.class.mjs +0 -0
- /package/{esm2020 → esm2022}/calendar/acorex-components-calendar.mjs +0 -0
- /package/{esm2020 → esm2022}/card/acorex-components-card.mjs +0 -0
- /package/{esm2020 → esm2022}/card/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/acorex-components-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/chips/acorex-components-chips.mjs +0 -0
- /package/{esm2020 → esm2022}/chips/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/collapse/acorex-components-collapse.mjs +0 -0
- /package/{esm2020 → esm2022}/collapse/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/color-palette/acorex-components-color-palette.mjs +0 -0
- /package/{esm2020 → esm2022}/color-palette/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/color-picker/acorex-components-color-picker.mjs +0 -0
- /package/{esm2020 → esm2022}/color-picker/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/common/acorex-components-common.mjs +0 -0
- /package/{esm2020 → esm2022}/common/src/classes/drawing.class.mjs +0 -0
- /package/{esm2020 → esm2022}/common/src/classes/styles.class.mjs +0 -0
- /package/{esm2020 → esm2022}/common/src/components/colorlook-component.class.mjs +0 -0
- /package/{esm2020 → esm2022}/common/src/constant/positions.mjs +0 -0
- /package/{esm2020 → esm2022}/context-menu/acorex-components-context-menu.mjs +0 -0
- /package/{esm2020 → esm2022}/context-menu/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/data-pager/acorex-components-data-pager.mjs +0 -0
- /package/{esm2020 → esm2022}/data-pager/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/data-table/acorex-components-data-table.mjs +0 -0
- /package/{esm2020 → esm2022}/data-table/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/date-picker/acorex-components-date-picker.mjs +0 -0
- /package/{esm2020 → esm2022}/date-picker/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/acorex-components-decorators.mjs +0 -0
- /package/{esm2020 → esm2022}/decorators/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/acorex-components-dialog.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/src/dialog.class.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/acorex-components-drawer.mjs +0 -0
- /package/{esm2020 → esm2022}/drawer/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/acorex-components-dropdown.mjs +0 -0
- /package/{esm2020 → esm2022}/dropdown/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/form/acorex-components-form.mjs +0 -0
- /package/{esm2020 → esm2022}/form/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/form/src/validation.class.mjs +0 -0
- /package/{esm2020 → esm2022}/image/acorex-components-image.mjs +0 -0
- /package/{esm2020 → esm2022}/image/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/label/acorex-components-label.mjs +0 -0
- /package/{esm2020 → esm2022}/label/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/loading/acorex-components-loading.mjs +0 -0
- /package/{esm2020 → esm2022}/loading/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/acorex-components-menu.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/mixin/acorex-components-mixin.mjs +0 -0
- /package/{esm2020 → esm2022}/mixin/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/mixin/src/constratctor.mjs +0 -0
- /package/{esm2020 → esm2022}/mixin/src/datalist.class.mjs +0 -0
- /package/{esm2020 → esm2022}/mixin/src/mixin.class.mjs +0 -0
- /package/{esm2020 → esm2022}/mixin/src/page-component.class.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/acorex-components-notification.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/notification/src/notification.class.mjs +0 -0
- /package/{esm2020 → esm2022}/number-box/acorex-components-number-box.mjs +0 -0
- /package/{esm2020 → esm2022}/number-box/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/page/acorex-components-page.mjs +0 -0
- /package/{esm2020 → esm2022}/page/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/password-box/acorex-components-password-box.mjs +0 -0
- /package/{esm2020 → esm2022}/password-box/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/picker/acorex-components-picker.mjs +0 -0
- /package/{esm2020 → esm2022}/picker/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/acorex-components-popover.mjs +0 -0
- /package/{esm2020 → esm2022}/popover/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/popup/acorex-components-popup.mjs +0 -0
- /package/{esm2020 → esm2022}/popup/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-bar/acorex-components-progress-bar.mjs +0 -0
- /package/{esm2020 → esm2022}/progress-bar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/acorex-components-radio.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/range-slider/acorex-components-range-slider.mjs +0 -0
- /package/{esm2020 → esm2022}/range-slider/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/rating/acorex-components-rating.mjs +0 -0
- /package/{esm2020 → esm2022}/rating/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/result/acorex-components-result.mjs +0 -0
- /package/{esm2020 → esm2022}/result/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/search-box/acorex-components-search-box.mjs +0 -0
- /package/{esm2020 → esm2022}/search-box/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/select-box/acorex-components-select-box.mjs +0 -0
- /package/{esm2020 → esm2022}/select-box/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/selection-list/acorex-components-selection-list.mjs +0 -0
- /package/{esm2020 → esm2022}/selection-list/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/switch/acorex-components-switch.mjs +0 -0
- /package/{esm2020 → esm2022}/switch/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/acorex-components-tabs.mjs +0 -0
- /package/{esm2020 → esm2022}/tabs/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tag/acorex-components-tag.mjs +0 -0
- /package/{esm2020 → esm2022}/tag/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/acorex-components-textarea.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/textbox/acorex-components-textbox.mjs +0 -0
- /package/{esm2020 → esm2022}/textbox/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/time-box/acorex-components-time-box.mjs +0 -0
- /package/{esm2020 → esm2022}/time-box/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/acorex-components-toast.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/toast/src/toast.class.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/acorex-components-tooltip.mjs +0 -0
- /package/{esm2020 → esm2022}/tooltip/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-view/acorex-components-tree-view.mjs +0 -0
- /package/{esm2020 → esm2022}/tree-view/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/uploader/acorex-components-uploader.mjs +0 -0
- /package/{esm2020 → esm2022}/uploader/public-api.mjs +0 -0
- /package/{fesm2015 → fesm2022}/acorex-components.mjs.map +0 -0
@@ -0,0 +1,61 @@
|
|
1
|
+
import { AXTranslator } from '@acorex/core/translation';
|
2
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Inject, } from '@angular/core';
|
3
|
+
import { AXDataPagerChild, AXPagerComponent, } from './data-pager-base.component';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "./data-pager-base.component";
|
6
|
+
export class AXDataPagerInfoComponent extends AXDataPagerChild {
|
7
|
+
elementRef;
|
8
|
+
cdr;
|
9
|
+
_parent;
|
10
|
+
constructor(elementRef, cdr, _parent) {
|
11
|
+
super(elementRef, cdr);
|
12
|
+
this.elementRef = elementRef;
|
13
|
+
this.cdr = cdr;
|
14
|
+
this._parent = _parent;
|
15
|
+
}
|
16
|
+
text = AXTranslator.get('datapager.info.text');
|
17
|
+
_textFormatted;
|
18
|
+
onViewInit() {
|
19
|
+
this._updateText();
|
20
|
+
this._parent.onStateChanged.subscribe((c) => {
|
21
|
+
this._updateText();
|
22
|
+
});
|
23
|
+
}
|
24
|
+
_updateText() {
|
25
|
+
const info = this._parent.state;
|
26
|
+
if ([info.range, info.range.from, info.totalItems].every((c) => c)) {
|
27
|
+
this._textFormatted = this.text
|
28
|
+
.replace('[from]', info.range.from.toString())
|
29
|
+
.replace('[to]', info.range.to.toString())
|
30
|
+
.replace('[totalItems]', info.totalItems.toString())
|
31
|
+
.replace('[page]', info.page.toString())
|
32
|
+
.replace('[totalPages]', info.totalPages.toString());
|
33
|
+
this.cdr.markForCheck();
|
34
|
+
}
|
35
|
+
else {
|
36
|
+
}
|
37
|
+
}
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerInfoComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXPagerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
39
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDataPagerInfoComponent, selector: "ax-data-pager-info", inputs: { text: "text" }, host: { classAttribute: "ax-data-pager-info" }, providers: [
|
40
|
+
{ provide: AXDataPagerChild, useExisting: AXDataPagerInfoComponent },
|
41
|
+
], usesInheritance: true, ngImport: i0, template: `{{ _textFormatted }}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
42
|
+
}
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerInfoComponent, decorators: [{
|
44
|
+
type: Component,
|
45
|
+
args: [{
|
46
|
+
selector: 'ax-data-pager-info',
|
47
|
+
template: `{{ _textFormatted }}`,
|
48
|
+
host: { class: 'ax-data-pager-info' },
|
49
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
50
|
+
encapsulation: ViewEncapsulation.None,
|
51
|
+
providers: [
|
52
|
+
{ provide: AXDataPagerChild, useExisting: AXDataPagerInfoComponent },
|
53
|
+
],
|
54
|
+
}]
|
55
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.AXPagerComponent, decorators: [{
|
56
|
+
type: Inject,
|
57
|
+
args: [AXPagerComponent]
|
58
|
+
}] }]; }, propDecorators: { text: [{
|
59
|
+
type: Input
|
60
|
+
}] } });
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1pbmZvLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb21wb25lbnRzL2RhdGEtcGFnZXIvc3JjL2RhdGEtcGFnZXItaW5mby5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQ3hELE9BQU8sRUFDTCxTQUFTLEVBQ1QsdUJBQXVCLEVBQ3ZCLGlCQUFpQixFQUdqQixLQUFLLEVBQ0wsTUFBTSxHQUNQLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFDTCxnQkFBZ0IsRUFDaEIsZ0JBQWdCLEdBQ2pCLE1BQU0sNkJBQTZCLENBQUM7OztBQVlyQyxNQUFNLE9BQU8sd0JBQXlCLFNBQVEsZ0JBQWdCO0lBRWxEO0lBQ0E7SUFFQTt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YWNlKCdbdG90YWxQYWdlc10nLCBpbmZvLnRvdGFsUGFnZXMudG9TdHJpbmcoKSk7XHJcbiAgICAgIHRoaXMuY2RyLm1hcmtGb3JDaGVjaygpO1xyXG4gICAgfSBlbHNlIHtcclxuICAgIH1cclxuICB9XHJcbn1cclxuIl19
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Inject } from "@angular/core";
|
2
|
+
import { AXDataPagerChild, AXPagerComponent } from "./data-pager-base.component";
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@acorex/components/number-box";
|
5
|
+
import * as i2 from "./data-pager-base.component";
|
6
|
+
export class AXDataPagerInputSelectorComponent extends AXDataPagerChild {
|
7
|
+
_parent;
|
8
|
+
cdr;
|
9
|
+
constructor(elementRef, _parent, cdr) {
|
10
|
+
super(elementRef, cdr);
|
11
|
+
this._parent = _parent;
|
12
|
+
this.cdr = cdr;
|
13
|
+
}
|
14
|
+
_totalPages = 1;
|
15
|
+
_currentPage = 1;
|
16
|
+
onViewInit() {
|
17
|
+
this._currentPage = this._parent.state.page;
|
18
|
+
this._totalPages = this._parent.state.totalPages;
|
19
|
+
this._parent.onStateChanged.subscribe(c => {
|
20
|
+
this._currentPage = c.page;
|
21
|
+
this._totalPages = c.totalPages;
|
22
|
+
this.cdr.markForCheck();
|
23
|
+
});
|
24
|
+
}
|
25
|
+
_handleValueChanged(e) {
|
26
|
+
//TODO: debounceTime
|
27
|
+
this._parent.goToPage(e.value);
|
28
|
+
}
|
29
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerInputSelectorComponent, deps: [{ token: i0.ElementRef }, { token: AXPagerComponent }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
30
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDataPagerInputSelectorComponent, selector: "ax-data-pager-input-selector", providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerInputSelectorComponent }], usesInheritance: true, ngImport: i0, template: `
|
31
|
+
<ax-number-box [value]="_currentPage" class="ax-sm" (onValueChanged)="_handleValueChanged($event)" [showSpinButtons]="false"
|
32
|
+
[minValue]="1" [maxValue]="_totalPages" allowNull="false">
|
33
|
+
</ax-number-box>
|
34
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.AXNumberBoxComponent, selector: "ax-number-box", inputs: ["disabled", "readonly", "tabIndex", "size", "value", "state", "placeholder", "maxLength", "allowNull", "type", "autoComplete", "name", "checked", "thousandsSeparator", "padDecimalZeros", "step", "decimals", "decimalStep", "showSpinButtons", "minValue", "maxValue"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
35
|
+
}
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerInputSelectorComponent, decorators: [{
|
37
|
+
type: Component,
|
38
|
+
args: [{
|
39
|
+
selector: 'ax-data-pager-input-selector',
|
40
|
+
template: `
|
41
|
+
<ax-number-box [value]="_currentPage" class="ax-sm" (onValueChanged)="_handleValueChanged($event)" [showSpinButtons]="false"
|
42
|
+
[minValue]="1" [maxValue]="_totalPages" allowNull="false">
|
43
|
+
</ax-number-box>
|
44
|
+
`,
|
45
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
46
|
+
encapsulation: ViewEncapsulation.None,
|
47
|
+
providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerInputSelectorComponent }]
|
48
|
+
}]
|
49
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i2.AXPagerComponent, decorators: [{
|
50
|
+
type: Inject,
|
51
|
+
args: [AXPagerComponent]
|
52
|
+
}] }, { type: i0.ChangeDetectorRef }]; } });
|
53
|
+
//# sourceM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66 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Inject } from "@angular/core";
|
2
|
+
import { AXDataPagerChild, AXPagerComponent } from "./data-pager-base.component";
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/common";
|
5
|
+
import * as i2 from "@acorex/components/button";
|
6
|
+
import * as i3 from "@acorex/components/decorators";
|
7
|
+
import * as i4 from "./data-pager-base.component";
|
8
|
+
export class AXDataPagerNextButtonsComponent extends AXDataPagerChild {
|
9
|
+
elementRef;
|
10
|
+
cdr;
|
11
|
+
_parent;
|
12
|
+
constructor(elementRef, cdr, _parent) {
|
13
|
+
super(elementRef, cdr);
|
14
|
+
this.elementRef = elementRef;
|
15
|
+
this.cdr = cdr;
|
16
|
+
this._parent = _parent;
|
17
|
+
}
|
18
|
+
onViewInit() {
|
19
|
+
this._checkDisabled();
|
20
|
+
//
|
21
|
+
this._parent.onStateChanged.subscribe(c => {
|
22
|
+
this._checkDisabled();
|
23
|
+
});
|
24
|
+
}
|
25
|
+
_checkDisabled() {
|
26
|
+
this.disabled = this._parent.state.page == this._parent.state.totalPages;
|
27
|
+
}
|
28
|
+
_emitOnLastPageClick(e) {
|
29
|
+
this._parent.goLastPage();
|
30
|
+
}
|
31
|
+
_emitOnNextPageClick(e) {
|
32
|
+
this._parent.goNextPage();
|
33
|
+
}
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerNextButtonsComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXPagerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
35
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDataPagerNextButtonsComponent, selector: "ax-data-pager-next-buttons", providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerNextButtonsComponent }], usesInheritance: true, ngImport: i0, template: `
|
36
|
+
<ax-button [disabled]="disabled" look="blank" color="ghost" class="ax-sm" title="Go to the next page" (onClick)="_emitOnNextPageClick($event)" >
|
37
|
+
<ax-icon [ngClass]="{'ax-icon-chevron-left': rtl,'ax-icon-chevron-right': !rtl}"></ax-icon>
|
38
|
+
<i ></i>
|
39
|
+
</ax-button>
|
40
|
+
<ax-button [disabled]="disabled" look="blank" color="ghost" class="ax-sm" title="Go to the last page" (onClick)="_emitOnLastPageClick($event)">
|
41
|
+
<ax-icon [ngClass]="{'ax-icon-first-page': rtl,'ax-icon-last-page': !rtl}"></ax-icon>
|
42
|
+
</ax-button>
|
43
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
44
|
+
}
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerNextButtonsComponent, decorators: [{
|
46
|
+
type: Component,
|
47
|
+
args: [{
|
48
|
+
selector: 'ax-data-pager-next-buttons',
|
49
|
+
template: `
|
50
|
+
<ax-button [disabled]="disabled" look="blank" color="ghost" class="ax-sm" title="Go to the next page" (onClick)="_emitOnNextPageClick($event)" >
|
51
|
+
<ax-icon [ngClass]="{'ax-icon-chevron-left': rtl,'ax-icon-chevron-right': !rtl}"></ax-icon>
|
52
|
+
<i ></i>
|
53
|
+
</ax-button>
|
54
|
+
<ax-button [disabled]="disabled" look="blank" color="ghost" class="ax-sm" title="Go to the last page" (onClick)="_emitOnLastPageClick($event)">
|
55
|
+
<ax-icon [ngClass]="{'ax-icon-first-page': rtl,'ax-icon-last-page': !rtl}"></ax-icon>
|
56
|
+
</ax-button>
|
57
|
+
`,
|
58
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
59
|
+
encapsulation: ViewEncapsulation.None,
|
60
|
+
providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerNextButtonsComponent }]
|
61
|
+
}]
|
62
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i4.AXPagerComponent, decorators: [{
|
63
|
+
type: Inject,
|
64
|
+
args: [AXPagerComponent]
|
65
|
+
}] }]; } });
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1uZXh0LWJ1dHRvbnMuY29tcG9uZW50cy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb21wb25lbnRzL2RhdGEtcGFnZXIvc3JjL2RhdGEtcGFnZXItbmV4dC1idXR0b25zLmNvbXBvbmVudHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBaUMsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTdILE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLDZCQUE2QixDQUFDOzs7Ozs7QUFpQmpGLE1BQU0sT0FBTywrQkFBZ0MsU0FBUSxnQkFBZ0I7SUFHckQ7SUFDQTtJQUVBO0lBSlosWUFDWSxVQUFzQixFQUN0QixHQUFzQixFQUV0QixPQUF5QjtRQUVqQyxLQUFLLENBQUMsVUFBVSxFQUFFLEdBQUcsQ0FBQyxDQUFDO1FBTGYsZUFBVSxHQUFWLFVBQVUsQ0FBWTtRQUN0QixRQUFHLEdBQUgsR0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HtcclxuICAgICAgICBzdXBlcihlbGVtZW50UmVmLCBjZHIpO1xyXG4gICAgfVxyXG5cclxuICAgIG9uVmlld0luaXQoKSB7XHJcbiAgICAgICAgdGhpcy5fY2hlY2tEaXNhYmxlZCgpO1xyXG4gICAgICAgIC8vXHJcbiAgICAgICAgdGhpcy5fcGFyZW50Lm9uU3RhdGVDaGFuZ2VkLnN1YnNjcmliZShjID0+IHtcclxuICAgICAgICAgICAgdGhpcy5fY2hlY2tEaXNhYmxlZCgpO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgX2NoZWNrRGlzYWJsZWQoKSB7XHJcbiAgICAgICAgdGhpcy5kaXNhYmxlZCA9IHRoaXMuX3BhcmVudC5zdGF0ZS5wYWdlID09IHRoaXMuX3BhcmVudC5zdGF0ZS50b3RhbFBhZ2VzO1xyXG4gICAgfVxyXG5cclxuICAgIF9lbWl0T25MYXN0UGFnZUNsaWNrKGU6IEFYQ2xpY2tFdmVudCkge1xyXG4gICAgICAgIHRoaXMuX3BhcmVudC5nb0xhc3RQYWdlKCk7XHJcbiAgICB9XHJcblxyXG4gICAgX2VtaXRPbk5leHRQYWdlQ2xpY2soZTogQVhDbGlja0V2ZW50KSB7XHJcbiAgICAgICAgdGhpcy5fcGFyZW50LmdvTmV4dFBhZ2UoKTtcclxuICAgIH1cclxufSJdfQ==
|
@@ -0,0 +1,100 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Inject } from "@angular/core";
|
2
|
+
import { AXDataPagerChild, AXPagerComponent } from "./data-pager-base.component";
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/common";
|
5
|
+
import * as i2 from "@acorex/components/button";
|
6
|
+
import * as i3 from "@acorex/components/decorators";
|
7
|
+
import * as i4 from "./data-pager-base.component";
|
8
|
+
export class AXDataPagerNumericSelectorComponent extends AXDataPagerChild {
|
9
|
+
_parent;
|
10
|
+
_zone;
|
11
|
+
constructor(_elementRef, _cdr, _parent, _zone) {
|
12
|
+
super(_elementRef, _cdr);
|
13
|
+
this._parent = _parent;
|
14
|
+
this._zone = _zone;
|
15
|
+
}
|
16
|
+
_items = [];
|
17
|
+
_currentPage = 1;
|
18
|
+
_lastPage = 1;
|
19
|
+
_displayCount = 5;
|
20
|
+
onViewInit() {
|
21
|
+
this._generateDisplayItems();
|
22
|
+
this._parent.onStateChanged.subscribe(c => {
|
23
|
+
this._generateDisplayItems();
|
24
|
+
});
|
25
|
+
}
|
26
|
+
_generateDisplayItems() {
|
27
|
+
this._currentPage = this._parent.state.page;
|
28
|
+
this._lastPage = this._parent.state.totalPages;
|
29
|
+
//
|
30
|
+
this._items = [];
|
31
|
+
const start = Math.max(0, ((Math.ceil(this._currentPage / this._displayCount) - 1) * this._displayCount) + 1);
|
32
|
+
const end = Math.min(start + this._displayCount - 1, this._lastPage);
|
33
|
+
//
|
34
|
+
if (start > this._displayCount) {
|
35
|
+
this._items.push({
|
36
|
+
iconClass: 'ax-icon-more ax-rotation-90',
|
37
|
+
data: start - 1
|
38
|
+
});
|
39
|
+
}
|
40
|
+
//
|
41
|
+
for (let i = start; i <= end; i++) {
|
42
|
+
this._items.push({
|
43
|
+
text: i.toString(),
|
44
|
+
data: i
|
45
|
+
});
|
46
|
+
}
|
47
|
+
if (end < this._lastPage) {
|
48
|
+
this._items.push({
|
49
|
+
iconClass: 'ax-icon-more ax-rotation-90',
|
50
|
+
data: end + 1
|
51
|
+
});
|
52
|
+
}
|
53
|
+
this._cdr.detectChanges();
|
54
|
+
}
|
55
|
+
_handleOnItemClick(e) {
|
56
|
+
this._parent.goToPage(Number(e.data));
|
57
|
+
}
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerNumericSelectorComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXPagerComponent }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
59
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDataPagerNumericSelectorComponent, selector: "ax-data-pager-numeric-selector", providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerNumericSelectorComponent }], usesInheritance: true, ngImport: i0, template: `
|
60
|
+
<ax-button [disabled]="_currentPage==1" look="blank" color="ghost" class="ax-sm" (onClick)="_handleOnItemClick({data:1})">
|
61
|
+
<ax-icon [ngClass]="{'ax-icon-last-page': rtl,'ax-icon-first-page': !rtl}"></ax-icon>
|
62
|
+
</ax-button>
|
63
|
+
<ax-button-group color="ghost" look="blank" class="ax-sm" >
|
64
|
+
<ax-button *ngFor="let item of _items" color="ghost" look="blank" [selected]="_currentPage==item.data" class="ax-sm" [text]="item.text" (onClick)="_handleOnItemClick(item)">
|
65
|
+
<ax-icon [class]="item.iconClass" *ngIf="item.iconClass">
|
66
|
+
</ax-icon>
|
67
|
+
</ax-button>
|
68
|
+
</ax-button-group>
|
69
|
+
<ax-button [disabled]="_currentPage==_lastPage" look="blank" color="ghost" class="ax-sm" (onClick)="_handleOnItemClick({data:_lastPage})">
|
70
|
+
<ax-icon [ngClass]="{'ax-icon-last-page': !rtl,'ax-icon-first-page': rtl}"></ax-icon>
|
71
|
+
</ax-button>
|
72
|
+
`, isInline: true, 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: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }, { kind: "component", type: i2.AXButtonGroupComponent, selector: "ax-button-group", inputs: ["disabled", "tabIndex", "color", "look", "selection"], outputs: ["onBlur", "onFocus", "lookChange", "colorChange", "selectionChange", "onItemClick"] }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
73
|
+
}
|
74
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerNumericSelectorComponent, decorators: [{
|
75
|
+
type: Component,
|
76
|
+
args: [{
|
77
|
+
selector: 'ax-data-pager-numeric-selector',
|
78
|
+
template: `
|
79
|
+
<ax-button [disabled]="_currentPage==1" look="blank" color="ghost" class="ax-sm" (onClick)="_handleOnItemClick({data:1})">
|
80
|
+
<ax-icon [ngClass]="{'ax-icon-last-page': rtl,'ax-icon-first-page': !rtl}"></ax-icon>
|
81
|
+
</ax-button>
|
82
|
+
<ax-button-group color="ghost" look="blank" class="ax-sm" >
|
83
|
+
<ax-button *ngFor="let item of _items" color="ghost" look="blank" [selected]="_currentPage==item.data" class="ax-sm" [text]="item.text" (onClick)="_handleOnItemClick(item)">
|
84
|
+
<ax-icon [class]="item.iconClass" *ngIf="item.iconClass">
|
85
|
+
</ax-icon>
|
86
|
+
</ax-button>
|
87
|
+
</ax-button-group>
|
88
|
+
<ax-button [disabled]="_currentPage==_lastPage" look="blank" color="ghost" class="ax-sm" (onClick)="_handleOnItemClick({data:_lastPage})">
|
89
|
+
<ax-icon [ngClass]="{'ax-icon-last-page': !rtl,'ax-icon-first-page': rtl}"></ax-icon>
|
90
|
+
</ax-button>
|
91
|
+
`,
|
92
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
93
|
+
encapsulation: ViewEncapsulation.None,
|
94
|
+
providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerNumericSelectorComponent }]
|
95
|
+
}]
|
96
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i4.AXPagerComponent, decorators: [{
|
97
|
+
type: Inject,
|
98
|
+
args: [AXPagerComponent]
|
99
|
+
}] }, { type: i0.NgZone }]; } });
|
100
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1udW1lcmljLXNlbGVjdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Fjb3JleC9jb21wb25lbnRzL2RhdGEtcGFnZXIvc3JjL2RhdGEtcGFnZXItbnVtZXJpYy1zZWxlY3Rvci5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxpQkFBaUIsRUFBaUMsTUFBTSxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBRXJJLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLDZCQUE2QixDQUFDOzs7Ozs7QUFzQmpGLE1BQU0sT0FBTyxtQ0FBb0MsU0FBUSxnQkFBZ0I7SUFNekQ7SUFDQTtJQUxaLFlBQ0ksV0FBdUIsRUFDdkIsSUFBdUIsRUFFZixPQUF5QixFQUN6QixLQUFhO1FBRXJCLEtBQUssQ0FBQyxXQUFXLEVBQUUsSUFBSSxDQUFDLENBQUM7UUFIakIsWUFBTyxHQUFQLE9BQU8sQ0FBa0I7UUFDekIsVUFBSyxHQUFMLEtBQUssQ0FBUTtJQUd6QixDQUFDO0lBR0QsTUFBTSxHQUFtQixFQUFFLENBQUM7SUFDNUIsWUFBWSxHQUFXLENBQUMsQ0FBQztJQUN6QixTQUFTLEdBQVcsQ0FBQyxDQUFDO0lBRWQsYUFBYSxHQUFXLENBQUMsQ0FBQztJQUVsQyxVQUFVO1FBQ04sSUFBSSxDQUFDLHFCQU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cbiAgICAgICAgfVxyXG4gICAgICAgIGlmIChlbmQgPCB0aGlzLl9sYXN0UGFnZSkge1xyXG4gICAgICAgICAgICB0aGlzLl9pdGVtcy5wdXNoKHtcclxuICAgICAgICAgICAgICAgIGljb25DbGFzczogJ2F4LWljb24tbW9yZSBheC1yb3RhdGlvbi05MCcsXHJcbiAgICAgICAgICAgICAgICBkYXRhOiBlbmQgKyAxXHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH1cclxuICAgICAgICB0aGlzLl9jZHIuZGV0ZWN0Q2hhbmdlcygpO1xyXG4gICAgfVxyXG5cclxuICAgIF9oYW5kbGVPbkl0ZW1DbGljayhlOiBhbnkpIHtcclxuICAgICAgICB0aGlzLl9wYXJlbnQuZ29Ub1BhZ2UoTnVtYmVyKGUuZGF0YSkpO1xyXG4gICAgfVxyXG59Il19
|
@@ -0,0 +1,88 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Inject } from "@angular/core";
|
2
|
+
import { AXDataPagerChild, AXPagerComponent } from "./data-pager-base.component";
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/common";
|
5
|
+
import * as i2 from "@acorex/components/button";
|
6
|
+
import * as i3 from "@acorex/components/dropdown";
|
7
|
+
import * as i4 from "@acorex/components/decorators";
|
8
|
+
import * as i5 from "./data-pager-base.component";
|
9
|
+
export class AXDataPagerPageSizesComponent extends AXDataPagerChild {
|
10
|
+
_parent;
|
11
|
+
constructor(elementRef, cdr, _parent) {
|
12
|
+
super(elementRef, cdr);
|
13
|
+
this._parent = _parent;
|
14
|
+
}
|
15
|
+
_size;
|
16
|
+
onViewInit() {
|
17
|
+
this._generateDisplayItems();
|
18
|
+
//
|
19
|
+
this._parent.onStateChanged.subscribe(c => {
|
20
|
+
this._generateDisplayItems();
|
21
|
+
});
|
22
|
+
}
|
23
|
+
//TODO: AXButtonItems type error
|
24
|
+
_items = [];
|
25
|
+
_sizes;
|
26
|
+
get sizes() {
|
27
|
+
return this._sizes || [5, 10, 20, 50, 100];
|
28
|
+
}
|
29
|
+
set sizes(v) {
|
30
|
+
this._sizes = v;
|
31
|
+
this._generateDisplayItems();
|
32
|
+
}
|
33
|
+
_generateDisplayItems() {
|
34
|
+
this._size = this._parent.state.take;
|
35
|
+
this._items = this.sizes.map((s) => ({
|
36
|
+
text: s.toString(),
|
37
|
+
selected: s == this._size,
|
38
|
+
data: {
|
39
|
+
size: s
|
40
|
+
}
|
41
|
+
}));
|
42
|
+
this._cdr.detectChanges();
|
43
|
+
}
|
44
|
+
_emitOnItemClick(e) {
|
45
|
+
this._size = this._parent.size = Number(e.data.size);
|
46
|
+
}
|
47
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerPageSizesComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXPagerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
48
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDataPagerPageSizesComponent, selector: "ax-data-pager-page-sizes", inputs: { sizes: "sizes" }, providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerPageSizesComponent }], usesInheritance: true, ngImport: i0, template: `
|
49
|
+
<ax-button [text]="_size" color="ghost" look="blank" class="ax-sm">
|
50
|
+
<ax-dropdown-panel (onItemClick)="_emitOnItemClick($event)">
|
51
|
+
<ax-button-item *ngFor="let item of _items" [text]="item.text" [data]="item.data" [selected]="item.selected" >
|
52
|
+
</ax-button-item>
|
53
|
+
</ax-dropdown-panel>
|
54
|
+
<ax-suffix>
|
55
|
+
<ax-icon icon="ax-icon-arrow-down"></ax-icon>
|
56
|
+
</ax-suffix>
|
57
|
+
</ax-button>
|
58
|
+
<!-- <span >items per page</span> -->
|
59
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }, { kind: "component", type: i2.AXButtonItemComponent, selector: "ax-button-item", inputs: ["text", "tooltip", "selected", "seperated", "name", "data", "color"], outputs: ["onClick"] }, { kind: "component", type: i3.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "target"], outputs: ["onOpened", "onClosed", "onItemClick"] }, { kind: "component", type: i4.AXDecoratorSuffixComponent, selector: "ax-suffix" }, { kind: "component", type: i4.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
60
|
+
}
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerPageSizesComponent, decorators: [{
|
62
|
+
type: Component,
|
63
|
+
args: [{
|
64
|
+
selector: 'ax-data-pager-page-sizes',
|
65
|
+
template: `
|
66
|
+
<ax-button [text]="_size" color="ghost" look="blank" class="ax-sm">
|
67
|
+
<ax-dropdown-panel (onItemClick)="_emitOnItemClick($event)">
|
68
|
+
<ax-button-item *ngFor="let item of _items" [text]="item.text" [data]="item.data" [selected]="item.selected" >
|
69
|
+
</ax-button-item>
|
70
|
+
</ax-dropdown-panel>
|
71
|
+
<ax-suffix>
|
72
|
+
<ax-icon icon="ax-icon-arrow-down"></ax-icon>
|
73
|
+
</ax-suffix>
|
74
|
+
</ax-button>
|
75
|
+
<!-- <span >items per page</span> -->
|
76
|
+
`,
|
77
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
78
|
+
encapsulation: ViewEncapsulation.None,
|
79
|
+
outputs: [],
|
80
|
+
providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerPageSizesComponent }]
|
81
|
+
}]
|
82
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i5.AXPagerComponent, decorators: [{
|
83
|
+
type: Inject,
|
84
|
+
args: [AXPagerComponent]
|
85
|
+
}] }]; }, propDecorators: { sizes: [{
|
86
|
+
type: Input
|
87
|
+
}] } });
|
88
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wYWdlci1wYWdlc2l6ZS1kcm9wZG93bi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hY29yZXgvY29tcG9uZW50cy9kYXRhLXBhZ2VyL3NyYy9kYXRhLXBhZ2VyLXBhZ2VzaXplLWRyb3Bkb3duLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLHVCQUF1QixFQUFFLGlCQUFpQixFQUFpQyxLQUFLLEVBQUUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRXBJLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLDZCQUE2QixDQUFDOzs7Ozs7O0FBcUJqRixNQUFNLE9BQU8sNkJBQThCLFNBQVEsZ0JBQWdCO0lBTW5EO0lBSlosWUFDSSxVQUFzQixFQUN0QixHQUFzQixFQUVkLE9BQXlCO1FBRWpDLEtBQUssQ0FBQyxVQUFVLEVBQUUsR0FBRyxDQUFDLENBQUM7UUFGZixZQUFPLEdBQVAsT0FBTyxDQUFrQjtJQUdyQyxDQUFDO0lBR0QsS0FBSyxDQUFTO0lBR2QsVUFBVTtRQUNOLElBQUksQ0FBQyxxQkFBcUIsRUFBRSxDQUFDO1FBQzdCLEVBQUU7UUFDRixJQUFJLENBQUMsT0FBTyx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uX3NpemVzIHx8IFs1LCAxMCwgMjAsIDUwLCAxMDBdO1xyXG4gICAgfVxyXG4gICAgcHVibGljIHNldCBzaXplcyh2OiBudW1iZXJbXSkge1xyXG4gICAgICAgIHRoaXMuX3NpemVzID0gdjtcclxuICAgICAgICB0aGlzLl9nZW5lcmF0ZURpc3BsYXlJdGVtcygpO1xyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgX2dlbmVyYXRlRGlzcGxheUl0ZW1zKCk6IHZvaWQge1xyXG4gICAgICAgIHRoaXMuX3NpemUgPSB0aGlzLl9wYXJlbnQuc3RhdGUudGFrZTtcclxuICAgICAgICB0aGlzLl9pdGVtcyA9IHRoaXMuc2l6ZXMubWFwKChzOmFueSkgPT4gKHtcclxuICAgICAgICAgICAgdGV4dDogcy50b1N0cmluZygpLFxyXG4gICAgICAgICAgICBzZWxlY3RlZDogcyA9PSB0aGlzLl9zaXplLFxyXG4gICAgICAgICAgICBkYXRhOiB7XHJcbiAgICAgICAgICAgICAgICBzaXplOiBzXHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KSk7XHJcbiAgICAgICAgdGhpcy5fY2RyLmRldGVjdENoYW5nZXMoKTtcclxuICAgIH1cclxuXHJcblxyXG4gICAgX2VtaXRPbkl0ZW1DbGljayhlOiBBWENsaWNrRXZlbnQpIHtcclxuICAgICAgICB0aGlzLl9zaXplID0gdGhpcy5fcGFyZW50LnNpemUgPSBOdW1iZXIoZS5kYXRhLnNpemUpO1xyXG4gICAgfVxyXG59Il19
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { Component, ChangeDetectionStrategy, ViewEncapsulation, Inject } from "@angular/core";
|
2
|
+
import { AXDataPagerChild, AXPagerComponent } from "./data-pager-base.component";
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
import * as i1 from "@angular/common";
|
5
|
+
import * as i2 from "@acorex/components/button";
|
6
|
+
import * as i3 from "@acorex/components/decorators";
|
7
|
+
import * as i4 from "./data-pager-base.component";
|
8
|
+
export class AXDataPagerPrevButtonsComponent extends AXDataPagerChild {
|
9
|
+
elementRef;
|
10
|
+
_parent;
|
11
|
+
constructor(elementRef, cdr, _parent) {
|
12
|
+
super(elementRef, cdr);
|
13
|
+
this.elementRef = elementRef;
|
14
|
+
this._parent = _parent;
|
15
|
+
}
|
16
|
+
onViewInit() {
|
17
|
+
this._checkDisabled();
|
18
|
+
this._parent.onStateChanged.subscribe(c => {
|
19
|
+
this._checkDisabled();
|
20
|
+
});
|
21
|
+
}
|
22
|
+
_checkDisabled() {
|
23
|
+
this.disabled = this._parent.state.page == 1;
|
24
|
+
}
|
25
|
+
_emitOnFirstPageClick(e) {
|
26
|
+
this._parent.goFirstPage();
|
27
|
+
}
|
28
|
+
_emitOnPrevPageClick(e) {
|
29
|
+
this._parent.goPrevPage();
|
30
|
+
}
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerPrevButtonsComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: AXPagerComponent }], target: i0.ɵɵFactoryTarget.Component });
|
32
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: AXDataPagerPrevButtonsComponent, selector: "ax-data-pager-prev-buttons", providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerPrevButtonsComponent }], usesInheritance: true, ngImport: i0, template: `
|
33
|
+
<ax-button [disabled]="disabled" look="blank" color="ghost" class="ax-sm" title="Go to the last page" (onClick)="_emitOnFirstPageClick($event)">
|
34
|
+
<ax-icon [ngClass]="{'ax-icon-last-page': rtl,'ax-icon-first-page': !rtl}"></ax-icon>
|
35
|
+
</ax-button>
|
36
|
+
<ax-button [disabled]="disabled" look="blank" color="ghost" class="ax-sm" title="Go to the next page" (onClick)="_emitOnPrevPageClick($event)">
|
37
|
+
<ax-icon [ngClass]="{'ax-icon-chevron-left': !rtl,'ax-icon-chevron-right': rtl}"></ax-icon>
|
38
|
+
</ax-button>
|
39
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
40
|
+
}
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: AXDataPagerPrevButtonsComponent, decorators: [{
|
42
|
+
type: Component,
|
43
|
+
args: [{
|
44
|
+
selector: 'ax-data-pager-prev-buttons',
|
45
|
+
template: `
|
46
|
+
<ax-button [disabled]="disabled" look="blank" color="ghost" class="ax-sm" title="Go to the last page" (onClick)="_emitOnFirstPageClick($event)">
|
47
|
+
<ax-icon [ngClass]="{'ax-icon-last-page': rtl,'ax-icon-first-page': !rtl}"></ax-icon>
|
48
|
+
</ax-button>
|
49
|
+
<ax-button [disabled]="disabled" look="blank" color="ghost" class="ax-sm" title="Go to the next page" (onClick)="_emitOnPrevPageClick($event)">
|
50
|
+
<ax-icon [ngClass]="{'ax-icon-chevron-left': !rtl,'ax-icon-chevron-right': rtl}"></ax-icon>
|
51
|
+
</ax-button>
|
52
|
+
`,
|
53
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
54
|
+
encapsulation: ViewEncapsulation.None,
|
55
|
+
providers: [{ provide: AXDataPagerChild, useExisting: AXDataPagerPrevButtonsComponent }]
|
56
|
+
}]
|
57
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i4.AXPagerComponent, decorators: [{
|
58
|
+
type: Inject,
|
59
|
+
args: [AXPagerComponent]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