@acorex/components 7.0.41 → 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
@@ -1,1259 +0,0 @@
|
|
1
|
-
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
2
|
-
import * as i0 from '@angular/core';
|
3
|
-
import { Injectable, Inject, EventEmitter } from '@angular/core';
|
4
|
-
import _ from 'lodash';
|
5
|
-
import { unionBy, flatMapDeep } from 'lodash-es';
|
6
|
-
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
7
|
-
import { AXObjectUtil } from '@acorex/core/utils';
|
8
|
-
|
9
|
-
var _AXBaseComponent_rtl, _AXBaseComponent_elementRef;
|
10
|
-
class AXBaseComponent {
|
11
|
-
/**
|
12
|
-
* @ignore
|
13
|
-
*/
|
14
|
-
constructor(...args) {
|
15
|
-
this.id = `AX${Math.round(Math.random() * Math.pow(10, 10))}`;
|
16
|
-
/**
|
17
|
-
* A token that specifies the layout direction of component.
|
18
|
-
*/
|
19
|
-
//rtl: boolean;
|
20
|
-
_AXBaseComponent_rtl.set(this, void 0);
|
21
|
-
_AXBaseComponent_elementRef.set(this, void 0);
|
22
|
-
__classPrivateFieldSet(this, _AXBaseComponent_elementRef, args[0], "f");
|
23
|
-
this._cdr = args[1];
|
24
|
-
}
|
25
|
-
get rtl() {
|
26
|
-
if (__classPrivateFieldGet(this, _AXBaseComponent_rtl, "f"))
|
27
|
-
return __classPrivateFieldGet(this, _AXBaseComponent_rtl, "f");
|
28
|
-
else
|
29
|
-
return this._getHostElement().classList.contains('ax-rtl') ||
|
30
|
-
window
|
31
|
-
.getComputedStyle(this._getHostElement(), null)
|
32
|
-
.getPropertyValue('direction') === 'rtl';
|
33
|
-
}
|
34
|
-
set rtl(value) {
|
35
|
-
__classPrivateFieldSet(this, _AXBaseComponent_rtl, value, "f");
|
36
|
-
}
|
37
|
-
ngOnInit() {
|
38
|
-
this._isInited = true;
|
39
|
-
this._onInternalInit();
|
40
|
-
}
|
41
|
-
ngAfterViewInit() {
|
42
|
-
this._isRendered = true;
|
43
|
-
this._onInternalViewInit();
|
44
|
-
}
|
45
|
-
ngOnDestroy() {
|
46
|
-
this._onInternalDestroy();
|
47
|
-
}
|
48
|
-
_getHostElement() {
|
49
|
-
return __classPrivateFieldGet(this, _AXBaseComponent_elementRef, "f").nativeElement;
|
50
|
-
}
|
51
|
-
_getInnerElement() {
|
52
|
-
return this._getHostElement().firstElementChild;
|
53
|
-
}
|
54
|
-
_onInternalInit() {
|
55
|
-
this._getHostElement().__axContext__ = this;
|
56
|
-
this._applyRtl();
|
57
|
-
this.onInit();
|
58
|
-
}
|
59
|
-
_onInternalViewInit() {
|
60
|
-
this.onViewInit();
|
61
|
-
}
|
62
|
-
_onInternalDestroy() {
|
63
|
-
this.onDestroy();
|
64
|
-
}
|
65
|
-
onInit() { }
|
66
|
-
onViewInit() { }
|
67
|
-
onDestroy() { }
|
68
|
-
_applyRtl() {
|
69
|
-
if (this.rtl) {
|
70
|
-
this._getHostElement().classList.add('ax-rtl');
|
71
|
-
}
|
72
|
-
}
|
73
|
-
_onOptionChanging(option) {
|
74
|
-
return option?.value;
|
75
|
-
}
|
76
|
-
_onOptionChanged(option) { }
|
77
|
-
_setOption(option) {
|
78
|
-
const oldValue = this[option.name];
|
79
|
-
const newValue = this._onOptionChanging({
|
80
|
-
name: option.name,
|
81
|
-
value: option.value,
|
82
|
-
});
|
83
|
-
//TODO : check real changes
|
84
|
-
if (option.beforeCallback)
|
85
|
-
option.beforeCallback(oldValue, newValue);
|
86
|
-
if (oldValue != newValue) {
|
87
|
-
this[`_${option.name}`] = option.value;
|
88
|
-
this._onOptionChanged({ name: option.name, newValue, oldValue });
|
89
|
-
const emitter = this[`${option.name}Change`];
|
90
|
-
if (emitter)
|
91
|
-
emitter.emit(newValue);
|
92
|
-
}
|
93
|
-
if (option.afterCallback)
|
94
|
-
option.afterCallback(oldValue, newValue);
|
95
|
-
}
|
96
|
-
}
|
97
|
-
_AXBaseComponent_rtl = new WeakMap(), _AXBaseComponent_elementRef = new WeakMap();
|
98
|
-
AXBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXBaseComponent, deps: [{ token: Array }], target: i0.ɵɵFactoryTarget.Injectable });
|
99
|
-
AXBaseComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXBaseComponent });
|
100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AXBaseComponent, decorators: [{
|
101
|
-
type: Injectable
|
102
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
103
|
-
type: Inject,
|
104
|
-
args: [Array]
|
105
|
-
}] }]; } });
|
106
|
-
function _BaseComponenetMixin(Base) {
|
107
|
-
return class extends Base {
|
108
|
-
constructor(...args) {
|
109
|
-
super(...args);
|
110
|
-
}
|
111
|
-
};
|
112
|
-
}
|
113
|
-
const BASE_INPUTS = ['rtl'];
|
114
|
-
const BASE_OUTPUT = [];
|
115
|
-
|
116
|
-
function _BaseMenuComponentMixin(Base) {
|
117
|
-
var _isLoading, _loadedItems, _items, _a;
|
118
|
-
return _a = class extends Base {
|
119
|
-
constructor(...args) {
|
120
|
-
super(...args);
|
121
|
-
this.textField = 'text';
|
122
|
-
this.valueField = 'id';
|
123
|
-
_isLoading.set(this, false);
|
124
|
-
_loadedItems.set(this, []);
|
125
|
-
this.disableField = 'disabled';
|
126
|
-
this.iconField = 'icon';
|
127
|
-
this.openMode = 'click';
|
128
|
-
this.displayMode = 'sidemenu';
|
129
|
-
this.dividerField = 'divider';
|
130
|
-
this.onMenuItemClick = new EventEmitter();
|
131
|
-
_items.set(this, []);
|
132
|
-
}
|
133
|
-
get items() {
|
134
|
-
return __classPrivateFieldGet(this, _items, "f");
|
135
|
-
}
|
136
|
-
set items(v) {
|
137
|
-
if (Array.isArray(v)) {
|
138
|
-
__classPrivateFieldSet(this, _items, v, "f");
|
139
|
-
}
|
140
|
-
else if (typeof v === 'function') {
|
141
|
-
__classPrivateFieldSet(this, _items, v, "f");
|
142
|
-
}
|
143
|
-
else {
|
144
|
-
__classPrivateFieldSet(this, _items, [], "f");
|
145
|
-
}
|
146
|
-
}
|
147
|
-
get displayItems() {
|
148
|
-
if (Array.isArray(this.items)) {
|
149
|
-
return __classPrivateFieldGet(this, _items, "f") || [];
|
150
|
-
}
|
151
|
-
else if (typeof __classPrivateFieldGet(this, _items, "f") == 'function') {
|
152
|
-
return __classPrivateFieldGet(this, _loadedItems, "f") || [];
|
153
|
-
}
|
154
|
-
return [];
|
155
|
-
}
|
156
|
-
get isLoading() {
|
157
|
-
return __classPrivateFieldGet(this, _isLoading, "f");
|
158
|
-
}
|
159
|
-
_formatData(v) {
|
160
|
-
return _.unionBy(v.map((o, i) => {
|
161
|
-
if (typeof o == 'object')
|
162
|
-
return o;
|
163
|
-
else {
|
164
|
-
const no = {};
|
165
|
-
no[this.valueField] = o;
|
166
|
-
no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
167
|
-
return no;
|
168
|
-
}
|
169
|
-
}), this.valueField);
|
170
|
-
}
|
171
|
-
_findNode(parentId, _children, source) {
|
172
|
-
if (source.length > 0) {
|
173
|
-
source.forEach(element => {
|
174
|
-
if (element[this.valueField] == parentId) {
|
175
|
-
element.children = _children;
|
176
|
-
}
|
177
|
-
else {
|
178
|
-
if (element?.children)
|
179
|
-
this._findNode(parentId, _children, element.children);
|
180
|
-
}
|
181
|
-
});
|
182
|
-
}
|
183
|
-
}
|
184
|
-
_fetchData(parentId, searchText) {
|
185
|
-
return new Promise(resolve => {
|
186
|
-
if (__classPrivateFieldGet(this, _isLoading, "f")) {
|
187
|
-
return;
|
188
|
-
}
|
189
|
-
if (__classPrivateFieldGet(this, _items, "f")) {
|
190
|
-
__classPrivateFieldSet(this, _isLoading, true, "f");
|
191
|
-
__classPrivateFieldGet(this, _items, "f").call(this, {
|
192
|
-
parentId: parentId,
|
193
|
-
searchQuery: searchText,
|
194
|
-
})
|
195
|
-
.then(c => {
|
196
|
-
if (Array.isArray(c)) {
|
197
|
-
if (parentId) {
|
198
|
-
resolve(this._findNode(parentId, c, this.displayItems));
|
199
|
-
}
|
200
|
-
else {
|
201
|
-
resolve((__classPrivateFieldSet(this, _loadedItems, c, "f")));
|
202
|
-
}
|
203
|
-
}
|
204
|
-
this._cdr.markForCheck();
|
205
|
-
})
|
206
|
-
.finally(() => {
|
207
|
-
__classPrivateFieldSet(this, _isLoading, false, "f");
|
208
|
-
});
|
209
|
-
}
|
210
|
-
});
|
211
|
-
}
|
212
|
-
_onInternalInit() {
|
213
|
-
if (typeof __classPrivateFieldGet(this, _items, "f") == 'function') {
|
214
|
-
this._fetchData();
|
215
|
-
}
|
216
|
-
super._onInternalInit();
|
217
|
-
}
|
218
|
-
_getItemDisplayTextTemplte(item) {
|
219
|
-
if (item)
|
220
|
-
return Array.isArray(this.textField) ? this.textField.map(c => item[c]).join(',') : item[this.textField];
|
221
|
-
else
|
222
|
-
return 'Loading...';
|
223
|
-
}
|
224
|
-
refresh() {
|
225
|
-
this._fetchData();
|
226
|
-
}
|
227
|
-
},
|
228
|
-
_isLoading = new WeakMap(),
|
229
|
-
_loadedItems = new WeakMap(),
|
230
|
-
_items = new WeakMap(),
|
231
|
-
_a;
|
232
|
-
}
|
233
|
-
const BASEMENU_INPUTS = [
|
234
|
-
'textField',
|
235
|
-
'valueField',
|
236
|
-
'items',
|
237
|
-
'parentId',
|
238
|
-
'iconField',
|
239
|
-
'tooltip',
|
240
|
-
'opened',
|
241
|
-
'active',
|
242
|
-
'visibleField',
|
243
|
-
'disableField',
|
244
|
-
'hasChildField',
|
245
|
-
'openMode',
|
246
|
-
'displayMode',
|
247
|
-
'dividerField',
|
248
|
-
];
|
249
|
-
const BASEMENU_OUTPUT = ['onMenuItemClick'];
|
250
|
-
|
251
|
-
function _ButtonComponentMixin(Base) {
|
252
|
-
return class extends Base {
|
253
|
-
constructor(...args) {
|
254
|
-
super(...args);
|
255
|
-
this.toggleableChange = new EventEmitter();
|
256
|
-
this._toggleable = false;
|
257
|
-
this.selectedChange = new EventEmitter();
|
258
|
-
this._selected = false;
|
259
|
-
}
|
260
|
-
/**
|
261
|
-
* Defines the primary text to show inside the button.
|
262
|
-
*/
|
263
|
-
get text() {
|
264
|
-
return this._text;
|
265
|
-
}
|
266
|
-
set text(v) {
|
267
|
-
this._setOption({
|
268
|
-
name: 'text',
|
269
|
-
value: v,
|
270
|
-
afterCallback: () => {
|
271
|
-
this._cdr.markForCheck();
|
272
|
-
}
|
273
|
-
});
|
274
|
-
}
|
275
|
-
/**
|
276
|
-
* Provides visual styling that indicates if the Button is active
|
277
|
-
*/
|
278
|
-
get toggleable() {
|
279
|
-
return this._toggleable;
|
280
|
-
}
|
281
|
-
set toggleable(value) {
|
282
|
-
this._setOption({
|
283
|
-
name: 'toggleable',
|
284
|
-
value
|
285
|
-
});
|
286
|
-
}
|
287
|
-
/**
|
288
|
-
* Indicates if the Button is selected or not
|
289
|
-
*/
|
290
|
-
get selected() {
|
291
|
-
return this._selected;
|
292
|
-
}
|
293
|
-
set selected(value) {
|
294
|
-
this._setOption({
|
295
|
-
name: 'selected',
|
296
|
-
value,
|
297
|
-
afterCallback: () => {
|
298
|
-
this._cdr.markForCheck();
|
299
|
-
}
|
300
|
-
});
|
301
|
-
}
|
302
|
-
get _classes() {
|
303
|
-
const cssClasses = {
|
304
|
-
'ax-button-icon': !this.text,
|
305
|
-
'ax-state-disabled': this["disabled"],
|
306
|
-
'ax-state-selected': this.selected
|
307
|
-
};
|
308
|
-
cssClasses[`ax-${this['color'] || 'default'}${this['look'] ? '-' + this['look'] : '-default'}`] = true;
|
309
|
-
return cssClasses;
|
310
|
-
}
|
311
|
-
};
|
312
|
-
}
|
313
|
-
const BUTTON_INPUTS = [
|
314
|
-
'text',
|
315
|
-
'toggleable',
|
316
|
-
'selected',
|
317
|
-
];
|
318
|
-
const BUTTON_OUTPUT = ['onBlur', 'onFocus', 'onClick', 'selectedChange', 'toggleableChange'];
|
319
|
-
|
320
|
-
function _ClickableComponenetMixin(Base) {
|
321
|
-
return class extends Base {
|
322
|
-
/**
|
323
|
-
* @ignore
|
324
|
-
*/
|
325
|
-
constructor(...args) {
|
326
|
-
super(...args);
|
327
|
-
/**
|
328
|
-
* Fires each time the user clicks the button.
|
329
|
-
* @event
|
330
|
-
*/
|
331
|
-
this.onClick = new EventEmitter();
|
332
|
-
}
|
333
|
-
_emitOnClickEvent(e) {
|
334
|
-
this.onClick.emit({
|
335
|
-
component: this,
|
336
|
-
htmlElement: this._getHostElement(),
|
337
|
-
nativeEvent: e
|
338
|
-
});
|
339
|
-
}
|
340
|
-
};
|
341
|
-
}
|
342
|
-
|
343
|
-
function _ColorLookComponentMixin(Base) {
|
344
|
-
return class extends Base {
|
345
|
-
constructor(...args) {
|
346
|
-
super(...args);
|
347
|
-
this.colorChange = new EventEmitter();
|
348
|
-
this._color = 'primary';
|
349
|
-
this.lookChange = new EventEmitter();
|
350
|
-
this._look = 'default';
|
351
|
-
}
|
352
|
-
/**
|
353
|
-
* Predefined color schemes
|
354
|
-
*/
|
355
|
-
get color() {
|
356
|
-
return this._color;
|
357
|
-
}
|
358
|
-
set color(value) {
|
359
|
-
this._setOption({
|
360
|
-
name: 'color',
|
361
|
-
value,
|
362
|
-
afterCallback: () => {
|
363
|
-
this._cdr.markForCheck();
|
364
|
-
}
|
365
|
-
});
|
366
|
-
}
|
367
|
-
/**
|
368
|
-
* Predefined look schemes
|
369
|
-
*/
|
370
|
-
get look() {
|
371
|
-
return this._look;
|
372
|
-
}
|
373
|
-
set look(value) {
|
374
|
-
this._setOption({
|
375
|
-
name: 'look',
|
376
|
-
value,
|
377
|
-
afterCallback: () => {
|
378
|
-
this._cdr.markForCheck();
|
379
|
-
}
|
380
|
-
});
|
381
|
-
}
|
382
|
-
};
|
383
|
-
}
|
384
|
-
const COLOR_LOOK_INPUTS = [
|
385
|
-
'color',
|
386
|
-
'look',
|
387
|
-
];
|
388
|
-
const COLOR_LOOK_OUTPUT = ['lookChange', 'colorChange'];
|
389
|
-
|
390
|
-
function _DatalistComponenetMixin(Base) {
|
391
|
-
var _instances, _currentPage, _isLoading, _loadedItems, _flatItems, _totalItems, _isLazy, _items, _generateFlatItems, _a;
|
392
|
-
return _a = class extends Base {
|
393
|
-
constructor(...args) {
|
394
|
-
super(...args);
|
395
|
-
_instances.add(this);
|
396
|
-
this.valueField = 'id';
|
397
|
-
this.textField = 'text';
|
398
|
-
this.pageSize = 10;
|
399
|
-
_currentPage.set(this, 0);
|
400
|
-
_isLoading.set(this, false);
|
401
|
-
_loadedItems.set(this, []);
|
402
|
-
_flatItems.set(this, []);
|
403
|
-
_totalItems.set(this, 0);
|
404
|
-
_isLazy.set(this, false);
|
405
|
-
_items.set(this, []);
|
406
|
-
}
|
407
|
-
get totalCount() {
|
408
|
-
return __classPrivateFieldGet(this, _totalItems, "f");
|
409
|
-
}
|
410
|
-
get isLazy() {
|
411
|
-
return __classPrivateFieldGet(this, _isLazy, "f");
|
412
|
-
}
|
413
|
-
get loadedCount() {
|
414
|
-
return __classPrivateFieldGet(this, _loadedItems, "f")?.length || 0;
|
415
|
-
}
|
416
|
-
get items() {
|
417
|
-
return __classPrivateFieldGet(this, _items, "f");
|
418
|
-
}
|
419
|
-
set items(v) {
|
420
|
-
if (Array.isArray(v)) {
|
421
|
-
__classPrivateFieldSet(this, _items, this._formatData(v), "f");
|
422
|
-
this._onDataLoaded();
|
423
|
-
__classPrivateFieldGet(this, _instances, "m", _generateFlatItems).call(this);
|
424
|
-
}
|
425
|
-
else if (typeof v === 'function') {
|
426
|
-
__classPrivateFieldSet(this, _isLazy, true, "f");
|
427
|
-
__classPrivateFieldSet(this, _items, v, "f");
|
428
|
-
}
|
429
|
-
else {
|
430
|
-
__classPrivateFieldSet(this, _items, [], "f");
|
431
|
-
this._onDataLoaded();
|
432
|
-
__classPrivateFieldGet(this, _instances, "m", _generateFlatItems).call(this);
|
433
|
-
}
|
434
|
-
}
|
435
|
-
get displayItems() {
|
436
|
-
if (Array.isArray(this.items)) {
|
437
|
-
return (__classPrivateFieldGet(this, _items, "f") || []);
|
438
|
-
}
|
439
|
-
else if (typeof __classPrivateFieldGet(this, _items, "f") == 'function') {
|
440
|
-
return __classPrivateFieldGet(this, _loadedItems, "f") || [];
|
441
|
-
}
|
442
|
-
return [];
|
443
|
-
}
|
444
|
-
get flatItems() {
|
445
|
-
return __classPrivateFieldGet(this, _flatItems, "f") || [];
|
446
|
-
}
|
447
|
-
get isLoading() {
|
448
|
-
return __classPrivateFieldGet(this, _isLoading, "f");
|
449
|
-
}
|
450
|
-
_formatData(v) {
|
451
|
-
return unionBy(v.map((o, i) => {
|
452
|
-
if (typeof o == 'object')
|
453
|
-
return o;
|
454
|
-
else {
|
455
|
-
const no = {};
|
456
|
-
no[this.valueField] = o;
|
457
|
-
no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
458
|
-
return no;
|
459
|
-
}
|
460
|
-
}), this.valueField);
|
461
|
-
// return v.map((o, i) => {
|
462
|
-
// if (typeof o == 'object')
|
463
|
-
// return o
|
464
|
-
// else {
|
465
|
-
// const no: any = {};
|
466
|
-
// no[this.valueField] = o;
|
467
|
-
// no[Array.isArray(this.textField) ? this.textField[0] : this.textField] = o;
|
468
|
-
// return no;
|
469
|
-
// }
|
470
|
-
// });
|
471
|
-
}
|
472
|
-
_fetchData(opts) {
|
473
|
-
const skip = __classPrivateFieldGet(this, _currentPage, "f") * this.pageSize, take = this.pageSize;
|
474
|
-
if ((this.loadedCount >= this.totalCount && this.totalCount != 0) ||
|
475
|
-
__classPrivateFieldGet(this, _isLoading, "f") ||
|
476
|
-
!__classPrivateFieldGet(this, _isLazy, "f") ||
|
477
|
-
skip > this.totalCount) {
|
478
|
-
return;
|
479
|
-
}
|
480
|
-
if (__classPrivateFieldGet(this, _items, "f")) {
|
481
|
-
__classPrivateFieldSet(this, _isLoading, true, "f");
|
482
|
-
const fetchFn = __classPrivateFieldGet(this, _items, "f");
|
483
|
-
fetchFn({ skip, take, searchQuery: opts?.searchQuery })
|
484
|
-
.then((c) => {
|
485
|
-
var _a;
|
486
|
-
if (Array.isArray(c)) {
|
487
|
-
__classPrivateFieldSet(this, _loadedItems, this._formatData(c), "f");
|
488
|
-
__classPrivateFieldSet(this, _totalItems, c.length, "f");
|
489
|
-
}
|
490
|
-
else {
|
491
|
-
__classPrivateFieldSet(this, _totalItems, c.total || c.items?.length || 0, "f");
|
492
|
-
__classPrivateFieldSet(this, _loadedItems, [
|
493
|
-
...new Set(__classPrivateFieldGet(this, _loadedItems, "f").concat(this._formatData(c.items))),
|
494
|
-
], "f");
|
495
|
-
__classPrivateFieldSet(this, _currentPage, (_a = __classPrivateFieldGet(this, _currentPage, "f"), _a++, _a), "f");
|
496
|
-
}
|
497
|
-
this._cdr.markForCheck();
|
498
|
-
})
|
499
|
-
.finally(() => {
|
500
|
-
__classPrivateFieldSet(this, _isLoading, false, "f");
|
501
|
-
this._onDataLoaded();
|
502
|
-
__classPrivateFieldGet(this, _instances, "m", _generateFlatItems).call(this);
|
503
|
-
});
|
504
|
-
}
|
505
|
-
}
|
506
|
-
_onDataLoaded() { }
|
507
|
-
_getItemDisplayTextTemplte(item) {
|
508
|
-
if (item)
|
509
|
-
return Array.isArray(this.textField)
|
510
|
-
? this.textField.map((c) => item[c]).join(',')
|
511
|
-
: item[this.textField];
|
512
|
-
else
|
513
|
-
return 'Loading...';
|
514
|
-
}
|
515
|
-
_trackByFunction(item) {
|
516
|
-
if (!item)
|
517
|
-
return null;
|
518
|
-
return item[this.valueField];
|
519
|
-
}
|
520
|
-
refresh() {
|
521
|
-
this.empty();
|
522
|
-
this._fetchData();
|
523
|
-
}
|
524
|
-
empty() {
|
525
|
-
__classPrivateFieldSet(this, _isLoading, false, "f");
|
526
|
-
__classPrivateFieldSet(this, _currentPage, 0, "f");
|
527
|
-
if (__classPrivateFieldGet(this, _loadedItems, "f")) {
|
528
|
-
__classPrivateFieldGet(this, _loadedItems, "f").length = 0;
|
529
|
-
}
|
530
|
-
}
|
531
|
-
},
|
532
|
-
_currentPage = new WeakMap(),
|
533
|
-
_isLoading = new WeakMap(),
|
534
|
-
_loadedItems = new WeakMap(),
|
535
|
-
_flatItems = new WeakMap(),
|
536
|
-
_totalItems = new WeakMap(),
|
537
|
-
_isLazy = new WeakMap(),
|
538
|
-
_items = new WeakMap(),
|
539
|
-
_instances = new WeakSet(),
|
540
|
-
_generateFlatItems = function _generateFlatItems() {
|
541
|
-
const flattenFn = (item) => {
|
542
|
-
return [item, flatMapDeep(item.children, flattenFn)];
|
543
|
-
};
|
544
|
-
__classPrivateFieldSet(this, _flatItems, flatMapDeep(this.displayItems, flattenFn), "f");
|
545
|
-
},
|
546
|
-
_a;
|
547
|
-
}
|
548
|
-
const DATALIST_INPUTS = ['pageSize', 'valueField', 'textField', 'items'];
|
549
|
-
const DATALIST_OUTPUT = [];
|
550
|
-
|
551
|
-
;
|
552
|
-
|
553
|
-
function _DropdownComponenetMixin(Base) {
|
554
|
-
class Mixin extends Base {
|
555
|
-
constructor(...args) {
|
556
|
-
super(...args);
|
557
|
-
this.readonly = false;
|
558
|
-
this.onOpened = new EventEmitter();
|
559
|
-
this.onClosed = new EventEmitter();
|
560
|
-
this.position = [];
|
561
|
-
}
|
562
|
-
_emitOnOpenedEvent() {
|
563
|
-
this.onOpened.emit({
|
564
|
-
component: this,
|
565
|
-
htmlElement: this._getHostElement()
|
566
|
-
});
|
567
|
-
}
|
568
|
-
_emitOnClosedEvent() {
|
569
|
-
this.onClosed.emit({
|
570
|
-
component: this,
|
571
|
-
htmlElement: this._getHostElement()
|
572
|
-
});
|
573
|
-
}
|
574
|
-
onInit() {
|
575
|
-
super.onInit();
|
576
|
-
this.popover.onOpened.subscribe(this.onOpened);
|
577
|
-
this.popover.onClosed.subscribe(this.onClosed);
|
578
|
-
}
|
579
|
-
onViewInit() {
|
580
|
-
// wait for documentElement
|
581
|
-
setTimeout(() => {
|
582
|
-
if (this.position.length == 0) {
|
583
|
-
const offset = Number(getComputedStyle(document.documentElement).getPropertyValue('--ax-base-size').replace('px', ''));
|
584
|
-
const list = [
|
585
|
-
{
|
586
|
-
originX: 'start',
|
587
|
-
originY: 'bottom',
|
588
|
-
overlayX: 'start',
|
589
|
-
overlayY: 'top',
|
590
|
-
offsetY: offset
|
591
|
-
},
|
592
|
-
{
|
593
|
-
originX: 'start',
|
594
|
-
originY: 'top',
|
595
|
-
overlayX: 'start',
|
596
|
-
overlayY: 'bottom',
|
597
|
-
offsetY: -offset
|
598
|
-
},
|
599
|
-
{
|
600
|
-
originX: 'end',
|
601
|
-
originY: 'bottom',
|
602
|
-
overlayX: 'end',
|
603
|
-
overlayY: 'top',
|
604
|
-
offsetY: offset
|
605
|
-
},
|
606
|
-
{
|
607
|
-
originX: 'end',
|
608
|
-
originY: 'top',
|
609
|
-
overlayX: 'end',
|
610
|
-
overlayY: 'bottom',
|
611
|
-
offsetY: -offset
|
612
|
-
},
|
613
|
-
];
|
614
|
-
this.position.push(...list);
|
615
|
-
}
|
616
|
-
}, 500);
|
617
|
-
}
|
618
|
-
toggle() {
|
619
|
-
if (this['disabled'] !== true) {
|
620
|
-
this.popover.toggle();
|
621
|
-
}
|
622
|
-
}
|
623
|
-
close() {
|
624
|
-
if (!this.isOpen || this['disabled']) {
|
625
|
-
return;
|
626
|
-
}
|
627
|
-
this.popover.close();
|
628
|
-
this?.focus();
|
629
|
-
}
|
630
|
-
open() {
|
631
|
-
if (this.isOpen || this['disabled']) {
|
632
|
-
return;
|
633
|
-
}
|
634
|
-
this.popover.open();
|
635
|
-
this.popover.focus();
|
636
|
-
}
|
637
|
-
get isOpen() {
|
638
|
-
return this.popover?.isOpen;
|
639
|
-
}
|
640
|
-
}
|
641
|
-
return Mixin;
|
642
|
-
}
|
643
|
-
const DROPDOWN_INPUTS = [
|
644
|
-
'isOpen',
|
645
|
-
'fitParent',
|
646
|
-
'dropdownWidth',
|
647
|
-
'position'
|
648
|
-
];
|
649
|
-
const DROPDOWN_OUTPUT = ['onOpened', 'onClosed'];
|
650
|
-
|
651
|
-
function _InteractiveComponenetMixin(Base) {
|
652
|
-
var _Mixin_disabled, _Mixin_tabIndex;
|
653
|
-
class Mixin extends Base {
|
654
|
-
/**
|
655
|
-
* @ignore
|
656
|
-
*/
|
657
|
-
constructor(...args) {
|
658
|
-
super(...args);
|
659
|
-
_Mixin_disabled.set(this, false);
|
660
|
-
_Mixin_tabIndex.set(this, 0);
|
661
|
-
/**
|
662
|
-
* Fires each time the component gets focused.
|
663
|
-
* @event
|
664
|
-
*/
|
665
|
-
this.onFocus = new EventEmitter();
|
666
|
-
/**
|
667
|
-
* Fires each time the component gets blurred.
|
668
|
-
* @event
|
669
|
-
*/
|
670
|
-
this.onBlur = new EventEmitter();
|
671
|
-
}
|
672
|
-
/**
|
673
|
-
* If set to true, it disables the component.
|
674
|
-
*/
|
675
|
-
get disabled() { return __classPrivateFieldGet(this, _Mixin_disabled, "f"); }
|
676
|
-
set disabled(value) {
|
677
|
-
value = this._onOptionChanging({ name: 'disabled', value: value });
|
678
|
-
if (value != this.disabled) {
|
679
|
-
const oldValue = this.disabled;
|
680
|
-
__classPrivateFieldSet(this, _Mixin_disabled, coerceBooleanProperty(value), "f");
|
681
|
-
this._onOptionChanged({ name: 'disabled', oldValue, newValue: value });
|
682
|
-
this._cdr.markForCheck();
|
683
|
-
}
|
684
|
-
}
|
685
|
-
/**
|
686
|
-
* Specifies the tabindex of the component.
|
687
|
-
*/
|
688
|
-
get tabIndex() { return this.disabled ? -1 : __classPrivateFieldGet(this, _Mixin_tabIndex, "f"); }
|
689
|
-
set tabIndex(value) {
|
690
|
-
__classPrivateFieldSet(this, _Mixin_tabIndex, value != null ? coerceNumberProperty(value) : 0, "f");
|
691
|
-
}
|
692
|
-
_emitOnFocusEvent(e) {
|
693
|
-
this.onFocus.emit({
|
694
|
-
component: this,
|
695
|
-
htmlElement: this._getHostElement(),
|
696
|
-
nativeEvent: e
|
697
|
-
});
|
698
|
-
}
|
699
|
-
_emitOnBlurEvent(e) {
|
700
|
-
this.onBlur.emit({
|
701
|
-
component: this,
|
702
|
-
htmlElement: this._getHostElement(),
|
703
|
-
nativeEvent: e
|
704
|
-
});
|
705
|
-
}
|
706
|
-
/**
|
707
|
-
* Focuses the component.
|
708
|
-
*/
|
709
|
-
focus() {
|
710
|
-
const list = ['button', 'input', '[href]', 'select', 'textarea', '[tabindex]'].map(c => c + ':not([tabindex="-1"])');
|
711
|
-
const focusable = this._getHostElement().querySelector(list.join(', '));
|
712
|
-
if (focusable) {
|
713
|
-
focusable.focus();
|
714
|
-
}
|
715
|
-
}
|
716
|
-
/**
|
717
|
-
* Check component is focused or has any focused element.
|
718
|
-
*/
|
719
|
-
hasFocus() {
|
720
|
-
return this._getHostElement().matches(':focus-within') || this._getHostElement().matches(':focus');
|
721
|
-
}
|
722
|
-
}
|
723
|
-
_Mixin_disabled = new WeakMap(), _Mixin_tabIndex = new WeakMap();
|
724
|
-
return Mixin;
|
725
|
-
}
|
726
|
-
const INTERACTIVE_INPUTS = [
|
727
|
-
'disabled',
|
728
|
-
'tabIndex',
|
729
|
-
];
|
730
|
-
const INTERACTIVE_OUTPUT = ['onBlur', 'onFocus'];
|
731
|
-
|
732
|
-
function _LoadingComponenetMixin(Base) {
|
733
|
-
return class extends Base {
|
734
|
-
constructor(...args) {
|
735
|
-
super(...args.slice(0, 2));
|
736
|
-
/**
|
737
|
-
* Defines a CSS class—or multiple classes separated by spaces— which are applied to a span element inside the Button. Allows the usage of custom icons.
|
738
|
-
*/
|
739
|
-
this.loading = false;
|
740
|
-
}
|
741
|
-
_onInternalInit() {
|
742
|
-
// if (!this.size) {
|
743
|
-
// this.size = AXConfig.get('layout.size', 'sm');
|
744
|
-
// }
|
745
|
-
super._onInternalInit();
|
746
|
-
}
|
747
|
-
};
|
748
|
-
}
|
749
|
-
|
750
|
-
function _SelectionComponenetMixin(Base) {
|
751
|
-
return class extends Base {
|
752
|
-
constructor(...args) {
|
753
|
-
super(...args);
|
754
|
-
this.valueField = 'id';
|
755
|
-
this.textField = 'text';
|
756
|
-
this.disabledField = 'disabled';
|
757
|
-
this.multiple = false;
|
758
|
-
this.selectionMode = 'value';
|
759
|
-
this.valueChange = new EventEmitter();
|
760
|
-
this.onValueChanged = new EventEmitter();
|
761
|
-
}
|
762
|
-
/**
|
763
|
-
* Defines the primary text to show inside the button.
|
764
|
-
*/
|
765
|
-
get items() {
|
766
|
-
return [];
|
767
|
-
}
|
768
|
-
get displayItems() {
|
769
|
-
return [];
|
770
|
-
}
|
771
|
-
get flatItems() {
|
772
|
-
return [];
|
773
|
-
}
|
774
|
-
_onInternalInit() {
|
775
|
-
super._onInternalInit();
|
776
|
-
}
|
777
|
-
get value() {
|
778
|
-
return this._value;
|
779
|
-
}
|
780
|
-
set value(v) {
|
781
|
-
v = this._internalSetValue(v);
|
782
|
-
if (v !== this._value) {
|
783
|
-
const oldValue = AXObjectUtil.deepJSONClone(this._value);
|
784
|
-
if (this.multiple) {
|
785
|
-
this._value = Array.isArray(v) ? v : (v ? [v] : []);
|
786
|
-
}
|
787
|
-
else {
|
788
|
-
this._value = Array.isArray(v) ? v[0] : v;
|
789
|
-
}
|
790
|
-
this._renderSelection();
|
791
|
-
this.valueChange.emit(this._value);
|
792
|
-
this.onValueChanged.emit({
|
793
|
-
component: this,
|
794
|
-
htmlElement: this._getHostElement(),
|
795
|
-
isUserInteraction: false,
|
796
|
-
oldValue,
|
797
|
-
value: this._value,
|
798
|
-
selectedKeys: this.selectedItems.map(c => c[this.valueField]),
|
799
|
-
selectedItems: this.selectedItems.slice()
|
800
|
-
});
|
801
|
-
if (v == null || v == undefined || v == "") {
|
802
|
-
this._setState('clear');
|
803
|
-
}
|
804
|
-
else {
|
805
|
-
if (this._isInited) {
|
806
|
-
this.validate();
|
807
|
-
}
|
808
|
-
}
|
809
|
-
}
|
810
|
-
}
|
811
|
-
get selectedItems() {
|
812
|
-
return this._selectedItems || [];
|
813
|
-
}
|
814
|
-
_renderSelection() {
|
815
|
-
const func = () => {
|
816
|
-
if (this.value == null || this.value == undefined) {
|
817
|
-
return [];
|
818
|
-
}
|
819
|
-
const items = this.flatItems;
|
820
|
-
if (items.length > 0) {
|
821
|
-
return items.filter(i => {
|
822
|
-
if (Array.isArray(this.value)) {
|
823
|
-
return this.value.some(ii => {
|
824
|
-
if (typeof ii === 'object') {
|
825
|
-
return i[this.valueField] === ii[this.valueField];
|
826
|
-
}
|
827
|
-
else {
|
828
|
-
return i[this.valueField] === ii;
|
829
|
-
}
|
830
|
-
});
|
831
|
-
}
|
832
|
-
else {
|
833
|
-
if (typeof this.value === 'object') {
|
834
|
-
return i[this.valueField] === this.value[this.valueField];
|
835
|
-
}
|
836
|
-
else {
|
837
|
-
return i[this.valueField] === this.value;
|
838
|
-
}
|
839
|
-
}
|
840
|
-
});
|
841
|
-
}
|
842
|
-
if (Array.isArray(this.value)) {
|
843
|
-
return this.value.map(ii => {
|
844
|
-
if (typeof ii === 'object') {
|
845
|
-
return ii;
|
846
|
-
}
|
847
|
-
else {
|
848
|
-
const fake = {};
|
849
|
-
fake[this.valueField] = this.value;
|
850
|
-
fake[this.textField] = this.value;
|
851
|
-
return fake;
|
852
|
-
}
|
853
|
-
});
|
854
|
-
}
|
855
|
-
else {
|
856
|
-
if (typeof this.value === 'object') {
|
857
|
-
return [this.value];
|
858
|
-
}
|
859
|
-
else {
|
860
|
-
const fake = {};
|
861
|
-
fake[this.valueField] = this.value;
|
862
|
-
fake[this.textField] = this.value;
|
863
|
-
return [fake];
|
864
|
-
}
|
865
|
-
}
|
866
|
-
};
|
867
|
-
this._selectedItems = func();
|
868
|
-
}
|
869
|
-
_getItemByDataMode(item) {
|
870
|
-
return this.selectionMode === 'item' ? item : item[this.valueField];
|
871
|
-
}
|
872
|
-
_getItemValue(item) {
|
873
|
-
return typeof item === 'object' ? item[this.valueField] : item;
|
874
|
-
}
|
875
|
-
unselectItems(...items) {
|
876
|
-
if (!items || items.length === 0) {
|
877
|
-
this.value = null;
|
878
|
-
}
|
879
|
-
else if (Array.isArray(this.value)) {
|
880
|
-
this.value = this.value.filter(c => !items.some(d => this._getItemValue(c) === this._getItemValue(d)));
|
881
|
-
}
|
882
|
-
else {
|
883
|
-
this.value = null;
|
884
|
-
}
|
885
|
-
}
|
886
|
-
selectItems(...items) {
|
887
|
-
debugger;
|
888
|
-
if (items && items.length) {
|
889
|
-
if (this.multiple) {
|
890
|
-
this.value = (this.value || []).concat(items.map(c => this._getItemByDataMode(c)));
|
891
|
-
}
|
892
|
-
else {
|
893
|
-
this.value = this._getItemByDataMode(items[0]);
|
894
|
-
}
|
895
|
-
}
|
896
|
-
}
|
897
|
-
toggleSelect(...items) {
|
898
|
-
if (items && items.length) {
|
899
|
-
items.forEach(item => {
|
900
|
-
if (this.multiple) {
|
901
|
-
this.isItemSelected(item) ? this.unselectItems(item) : this.selectItems(item);
|
902
|
-
}
|
903
|
-
else {
|
904
|
-
this.selectItems(item);
|
905
|
-
}
|
906
|
-
});
|
907
|
-
}
|
908
|
-
}
|
909
|
-
isItemSelected(item) {
|
910
|
-
return this.selectedItems.some(c => c[this.valueField] === item[this.valueField]);
|
911
|
-
}
|
912
|
-
isItemDisabled(item) {
|
913
|
-
return coerceBooleanProperty(item[this.disabledField]) === true || (this.disabledCallback ? this.disabledCallback({ item, index: -1 }) : false);
|
914
|
-
}
|
915
|
-
};
|
916
|
-
}
|
917
|
-
const SELECTION_INPUTS = [
|
918
|
-
'valueField',
|
919
|
-
'textField',
|
920
|
-
'disabledField',
|
921
|
-
'disabledCallback',
|
922
|
-
'multiple',
|
923
|
-
'selectionMode'
|
924
|
-
];
|
925
|
-
const SELECTION_OUTPUT = ['onValueChanged', 'valueChanged'];
|
926
|
-
|
927
|
-
function _SizableComponenetMixin(Base) {
|
928
|
-
return class extends Base {
|
929
|
-
/**
|
930
|
-
* @ignore
|
931
|
-
*/
|
932
|
-
constructor(...args) {
|
933
|
-
super(...args.slice(0, 2));
|
934
|
-
}
|
935
|
-
_onInternalInit() {
|
936
|
-
super._onInternalInit();
|
937
|
-
}
|
938
|
-
};
|
939
|
-
}
|
940
|
-
const SIZABLE_INPUTS = [
|
941
|
-
'size',
|
942
|
-
];
|
943
|
-
const SIZABLE_OUTPUT = [];
|
944
|
-
|
945
|
-
function _TextboxComponenetMixin(Base) {
|
946
|
-
return class extends Base {
|
947
|
-
/**
|
948
|
-
* @ignore
|
949
|
-
*/
|
950
|
-
constructor(...args) {
|
951
|
-
super(...args.slice(0, 2));
|
952
|
-
/**
|
953
|
-
* A string value that specifies the type of text box.
|
954
|
-
*/
|
955
|
-
this.type = 'text';
|
956
|
-
/**
|
957
|
-
* A string value that specifies the placeholder of text box.
|
958
|
-
*/
|
959
|
-
this.placeholder = '';
|
960
|
-
/**
|
961
|
-
* Fires each time the user press a key.
|
962
|
-
* @event
|
963
|
-
*/
|
964
|
-
this.onKeyDown = new EventEmitter();
|
965
|
-
/**
|
966
|
-
* Fires each time the user press a key.
|
967
|
-
* @event
|
968
|
-
*/
|
969
|
-
this.onKeyUp = new EventEmitter();
|
970
|
-
/**
|
971
|
-
* Fires each time the user press a key.
|
972
|
-
* @event
|
973
|
-
*/
|
974
|
-
this.onKeyPress = new EventEmitter();
|
975
|
-
}
|
976
|
-
_emitOnKeydownEvent(e) {
|
977
|
-
this.onKeyDown.emit({
|
978
|
-
component: this,
|
979
|
-
nativeEvent: e
|
980
|
-
});
|
981
|
-
this._setUserInteraction();
|
982
|
-
}
|
983
|
-
_emitOnKeyupEvent(e) {
|
984
|
-
this.onKeyUp.emit({
|
985
|
-
component: this,
|
986
|
-
nativeEvent: e
|
987
|
-
});
|
988
|
-
this._setUserInteraction();
|
989
|
-
}
|
990
|
-
_emitOnKeypressEvent(e) {
|
991
|
-
this.onKeyPress.emit({
|
992
|
-
component: this,
|
993
|
-
nativeEvent: e
|
994
|
-
});
|
995
|
-
this._setUserInteraction();
|
996
|
-
}
|
997
|
-
};
|
998
|
-
}
|
999
|
-
const TEXTBOX_INPUTS = ['placeholder', 'maxLength', 'allowNull', 'type', 'autoComplete', 'readonly', 'value', 'name'];
|
1000
|
-
const TEXTBOX_OUTPUT = ['valueChange', 'onValueChanged'];
|
1001
|
-
|
1002
|
-
function _ValueComponenetMixin(Base) {
|
1003
|
-
var _readonly, _allowNull, _name, _isUserInteraction, _value, _state, _a;
|
1004
|
-
return _a = class extends Base {
|
1005
|
-
/**
|
1006
|
-
* @ignore
|
1007
|
-
*/
|
1008
|
-
constructor(...args) {
|
1009
|
-
super(...args);
|
1010
|
-
/**
|
1011
|
-
* Fires each time the user press a key.
|
1012
|
-
* @event
|
1013
|
-
*/
|
1014
|
-
this.onValueChanged = new EventEmitter();
|
1015
|
-
this.valueChange = new EventEmitter();
|
1016
|
-
this.stateChange = new EventEmitter();
|
1017
|
-
_readonly.set(this, false);
|
1018
|
-
_allowNull.set(this, true);
|
1019
|
-
_name.set(this, void 0);
|
1020
|
-
_isUserInteraction.set(this, false);
|
1021
|
-
_value.set(this, void 0);
|
1022
|
-
_state.set(this, 'clear');
|
1023
|
-
}
|
1024
|
-
/**
|
1025
|
-
* If set to true, user cannot change the value of component.
|
1026
|
-
*/
|
1027
|
-
get readonly() {
|
1028
|
-
return __classPrivateFieldGet(this, _readonly, "f");
|
1029
|
-
}
|
1030
|
-
set readonly(value) {
|
1031
|
-
__classPrivateFieldSet(this, _readonly, coerceBooleanProperty(value), "f");
|
1032
|
-
}
|
1033
|
-
get allowNull() {
|
1034
|
-
return __classPrivateFieldGet(this, _allowNull, "f");
|
1035
|
-
}
|
1036
|
-
set allowNull(value) {
|
1037
|
-
__classPrivateFieldSet(this, _allowNull, coerceBooleanProperty(value), "f");
|
1038
|
-
}
|
1039
|
-
get name() {
|
1040
|
-
return __classPrivateFieldGet(this, _name, "f");
|
1041
|
-
}
|
1042
|
-
set name(value) {
|
1043
|
-
__classPrivateFieldSet(this, _name, value, "f");
|
1044
|
-
}
|
1045
|
-
get isUserInteraction() {
|
1046
|
-
return __classPrivateFieldGet(this, _isUserInteraction, "f");
|
1047
|
-
}
|
1048
|
-
get value() {
|
1049
|
-
return this._internalGetValue();
|
1050
|
-
}
|
1051
|
-
set value(v) {
|
1052
|
-
v = this._internalSetValue(v);
|
1053
|
-
//if (!this._isInited ) {
|
1054
|
-
const old = AXObjectUtil.deepJSONClone(this.value);
|
1055
|
-
// TODO: check real equality
|
1056
|
-
if (v != old) {
|
1057
|
-
__classPrivateFieldSet(this, _value, v, "f");
|
1058
|
-
this._emitOnValueChangedEvent(old, this.value);
|
1059
|
-
this._cdr.markForCheck();
|
1060
|
-
if (v == null || v == undefined || v == '' || (Array.isArray(v) && v.length == 0)) {
|
1061
|
-
this._setState('clear');
|
1062
|
-
}
|
1063
|
-
// else {
|
1064
|
-
// if (this._isInited) {
|
1065
|
-
// this.validate();
|
1066
|
-
// }
|
1067
|
-
// }
|
1068
|
-
}
|
1069
|
-
__classPrivateFieldSet(this, _isUserInteraction, false, "f");
|
1070
|
-
//}
|
1071
|
-
}
|
1072
|
-
get state() {
|
1073
|
-
return __classPrivateFieldGet(this, _state, "f");
|
1074
|
-
}
|
1075
|
-
set state(value) {
|
1076
|
-
this._setState(value);
|
1077
|
-
this.stateChange.emit(value);
|
1078
|
-
}
|
1079
|
-
_emitOnValueChangedEvent(oldValue, newValue) {
|
1080
|
-
this.valueChange.emit(newValue);
|
1081
|
-
this.onValueChanged.emit({
|
1082
|
-
component: this,
|
1083
|
-
value: newValue,
|
1084
|
-
oldValue: oldValue,
|
1085
|
-
name: this.name,
|
1086
|
-
isUserInteraction: this.isUserInteraction,
|
1087
|
-
});
|
1088
|
-
this._onValueChanged(oldValue, __classPrivateFieldGet(this, _value, "f"));
|
1089
|
-
__classPrivateFieldSet(this, _isUserInteraction, false, "f");
|
1090
|
-
}
|
1091
|
-
_internalSetValue(value) {
|
1092
|
-
return this._setValue(value);
|
1093
|
-
}
|
1094
|
-
_internalGetValue() {
|
1095
|
-
return this._getValue(__classPrivateFieldGet(this, _value, "f"));
|
1096
|
-
}
|
1097
|
-
_setValue(value) {
|
1098
|
-
return value;
|
1099
|
-
}
|
1100
|
-
_getValue(value) {
|
1101
|
-
return value;
|
1102
|
-
}
|
1103
|
-
_setUserInteraction() {
|
1104
|
-
__classPrivateFieldSet(this, _isUserInteraction, true, "f");
|
1105
|
-
}
|
1106
|
-
_onValueChanged(oldValue, newValue) { }
|
1107
|
-
_onInternalInit() {
|
1108
|
-
this._getHostElement().setAttribute('ax-form-input', 'true');
|
1109
|
-
super._onInternalInit();
|
1110
|
-
}
|
1111
|
-
_onInternalViewInit() {
|
1112
|
-
this._checkRequired();
|
1113
|
-
super._onInternalViewInit();
|
1114
|
-
}
|
1115
|
-
_onInternalDestroy() {
|
1116
|
-
super.onDestroy();
|
1117
|
-
}
|
1118
|
-
clear() {
|
1119
|
-
this.value = null;
|
1120
|
-
}
|
1121
|
-
_checkRequired() {
|
1122
|
-
debugger;
|
1123
|
-
const isRequired = Array.from(this._getHostElement().querySelectorAll('ax-validation-rule')).some(c => c.__axContext__.enabled && c.__axContext__.rule == 'required');
|
1124
|
-
//
|
1125
|
-
if (isRequired) {
|
1126
|
-
const container = this._getHostElement().classList.contains('ax-editor-container')
|
1127
|
-
? this._getHostElement()
|
1128
|
-
: this._getHostElement().querySelector('.ax-editor-container');
|
1129
|
-
const formField = container?.closest('.ax-form-field');
|
1130
|
-
const label = formField?.querySelector('ax-label')?.__axContext__;
|
1131
|
-
if (label)
|
1132
|
-
label.required = true;
|
1133
|
-
}
|
1134
|
-
}
|
1135
|
-
validate() {
|
1136
|
-
const rules = Array.from(this._getHostElement().querySelectorAll('ax-validation-rule')).filter(c => c.__axContext__.enabled);
|
1137
|
-
//
|
1138
|
-
if (!rules || rules.length === 0) {
|
1139
|
-
this._setState('clear');
|
1140
|
-
return Promise.resolve({
|
1141
|
-
result: true,
|
1142
|
-
value: this.value,
|
1143
|
-
name: this.name,
|
1144
|
-
id: this.id,
|
1145
|
-
});
|
1146
|
-
}
|
1147
|
-
return new Promise(resolve => {
|
1148
|
-
Promise.all(rules
|
1149
|
-
.filter(c => typeof c?.validate === 'function')
|
1150
|
-
.map(c => {
|
1151
|
-
return c.validate(this.value);
|
1152
|
-
})).then(d => {
|
1153
|
-
const error = d.find(c => c.result === false);
|
1154
|
-
if (error) {
|
1155
|
-
this._setState('error', error.message);
|
1156
|
-
resolve({
|
1157
|
-
result: false,
|
1158
|
-
value: this.value,
|
1159
|
-
message: error.message,
|
1160
|
-
name: this.name,
|
1161
|
-
id: this.id,
|
1162
|
-
});
|
1163
|
-
}
|
1164
|
-
else {
|
1165
|
-
this._setState('success');
|
1166
|
-
resolve({
|
1167
|
-
result: true,
|
1168
|
-
value: this.value,
|
1169
|
-
name: this.name,
|
1170
|
-
id: this.id,
|
1171
|
-
});
|
1172
|
-
}
|
1173
|
-
});
|
1174
|
-
});
|
1175
|
-
}
|
1176
|
-
_setState(state, ...args) {
|
1177
|
-
const container = this._getHostElement().classList.contains('ax-editor-container')
|
1178
|
-
? this._getHostElement()
|
1179
|
-
: this._getHostElement().querySelector('.ax-editor-container');
|
1180
|
-
const formField = container?.closest('.ax-form-field');
|
1181
|
-
const label = formField?.querySelector('ax-label') || formField?.querySelector('label');
|
1182
|
-
let target = container || this._getInnerElement();
|
1183
|
-
if (target?.querySelector('.ax-error-container')) {
|
1184
|
-
target = target.querySelector('.ax-error-container');
|
1185
|
-
}
|
1186
|
-
const parent = target?.parentElement;
|
1187
|
-
if (!target || !parent)
|
1188
|
-
return;
|
1189
|
-
switch (state) {
|
1190
|
-
case 'clear':
|
1191
|
-
__classPrivateFieldSet(this, _state, 'clear', "f");
|
1192
|
-
if (parent.querySelector('span.ax-error-message')) {
|
1193
|
-
parent.removeChild(parent.querySelector('span.ax-error-message'));
|
1194
|
-
}
|
1195
|
-
label?.classList.remove('ax-state-error');
|
1196
|
-
target.classList.remove('ax-state-error', 'ax-state-success');
|
1197
|
-
break;
|
1198
|
-
case 'success':
|
1199
|
-
this._setState('clear');
|
1200
|
-
target.classList.add('ax-state-success');
|
1201
|
-
__classPrivateFieldSet(this, _state, 'success', "f");
|
1202
|
-
break;
|
1203
|
-
case 'error':
|
1204
|
-
this._setState('clear');
|
1205
|
-
if (args[0]) {
|
1206
|
-
const span = document.createElement('span');
|
1207
|
-
span.innerText = args[0];
|
1208
|
-
span.classList.add('ax-error-message');
|
1209
|
-
parent.appendChild(span);
|
1210
|
-
}
|
1211
|
-
label?.classList.add('ax-state-error');
|
1212
|
-
target.classList.add('ax-state-error');
|
1213
|
-
__classPrivateFieldSet(this, _state, 'error', "f");
|
1214
|
-
break;
|
1215
|
-
}
|
1216
|
-
this._cdr.markForCheck();
|
1217
|
-
}
|
1218
|
-
},
|
1219
|
-
_readonly = new WeakMap(),
|
1220
|
-
_allowNull = new WeakMap(),
|
1221
|
-
_name = new WeakMap(),
|
1222
|
-
_isUserInteraction = new WeakMap(),
|
1223
|
-
_value = new WeakMap(),
|
1224
|
-
_state = new WeakMap(),
|
1225
|
-
_a;
|
1226
|
-
}
|
1227
|
-
|
1228
|
-
const AXBaseComponentMixin = _BaseComponenetMixin(AXBaseComponent);
|
1229
|
-
const AXSizableComponentMixin = _SizableComponenetMixin(_BaseComponenetMixin(AXBaseComponent));
|
1230
|
-
const AXInteractiveComponenetMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(AXBaseComponent));
|
1231
|
-
const AXBaseClickableMixin = _InteractiveComponenetMixin(_ClickableComponenetMixin(AXBaseComponent));
|
1232
|
-
const AXBaseButtonMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_ClickableComponenetMixin(_ColorLookComponentMixin(_ButtonComponentMixin(AXBaseComponent)))));
|
1233
|
-
const AXBaseValueComponentMixin = _InteractiveComponenetMixin(_ValueComponenetMixin(AXBaseComponent));
|
1234
|
-
const AXBaseTextBoxMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_ValueComponenetMixin(_TextboxComponenetMixin(AXBaseComponent))));
|
1235
|
-
const AXBaseSelectionValueMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DatalistComponenetMixin(_SelectionComponenetMixin(_ValueComponenetMixin(AXBaseComponent)))));
|
1236
|
-
const AXBaseValueDropdownMixin = _InteractiveComponenetMixin(_DropdownComponenetMixin(_DatalistComponenetMixin(_ValueComponenetMixin(AXBaseComponent))));
|
1237
|
-
const AXBaseSelectionDropdownMixin = _DropdownComponenetMixin(AXBaseSelectionValueMixin);
|
1238
|
-
const AXBaseDropdownMixin = _SizableComponenetMixin(_InteractiveComponenetMixin(_DropdownComponenetMixin(AXBaseComponent)));
|
1239
|
-
const AXBaseMenuMixin = _BaseMenuComponentMixin(AXBaseComponent);
|
1240
|
-
const AXAvatarMixin = _ColorLookComponentMixin(AXBaseComponent);
|
1241
|
-
|
1242
|
-
function _PageComponenetMixin(Base) {
|
1243
|
-
return class extends Base {
|
1244
|
-
/**
|
1245
|
-
* @ignore
|
1246
|
-
*/
|
1247
|
-
constructor(...args) {
|
1248
|
-
super(...args.slice(0, 2));
|
1249
|
-
}
|
1250
|
-
};
|
1251
|
-
}
|
1252
|
-
|
1253
|
-
/**
|
1254
|
-
* Generated bundle index. Do not edit.
|
1255
|
-
*/
|
1256
|
-
|
1257
|
-
export { AXAvatarMixin, AXBaseButtonMixin, AXBaseClickableMixin, AXBaseComponent, AXBaseComponentMixin, AXBaseDropdownMixin, AXBaseMenuMixin, AXBaseSelectionDropdownMixin, AXBaseSelectionValueMixin, AXBaseTextBoxMixin, AXBaseValueComponentMixin, AXBaseValueDropdownMixin, AXInteractiveComponenetMixin, AXSizableComponentMixin, BASEMENU_INPUTS, BASEMENU_OUTPUT, BASE_INPUTS, BASE_OUTPUT, BUTTON_INPUTS, BUTTON_OUTPUT, COLOR_LOOK_INPUTS, COLOR_LOOK_OUTPUT, DATALIST_INPUTS, DATALIST_OUTPUT, DROPDOWN_INPUTS, DROPDOWN_OUTPUT, INTERACTIVE_INPUTS, INTERACTIVE_OUTPUT, SELECTION_INPUTS, SELECTION_OUTPUT, SIZABLE_INPUTS, SIZABLE_OUTPUT, TEXTBOX_INPUTS, TEXTBOX_OUTPUT, _BaseComponenetMixin, _BaseMenuComponentMixin, _ButtonComponentMixin, _ClickableComponenetMixin, _ColorLookComponentMixin, _DatalistComponenetMixin, _DropdownComponenetMixin, _InteractiveComponenetMixin, _LoadingComponenetMixin, _PageComponenetMixin, _SelectionComponenetMixin, _SizableComponenetMixin, _TextboxComponenetMixin, _ValueComponenetMixin };
|
1258
|
-
//# sourceMappingURL=acorex-components-mixin.mjs.map
|
1259
|
-
//# sourceMappingURL=acorex-components-mixin.mjs.map
|