@acorex/components 16.0.2 → 17.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/action-sheet/README.md +3 -0
- package/action-sheet/index.d.ts +4 -0
- package/action-sheet/lib/action-sheet.class.d.ts +31 -0
- package/action-sheet/lib/action-sheet.component.d.ts +23 -0
- package/action-sheet/lib/action-sheet.module.d.ts +16 -0
- package/action-sheet/lib/action-sheet.service.d.ts +13 -0
- package/alert/README.md +3 -0
- package/alert/index.d.ts +2 -0
- package/alert/lib/alert.component.d.ts +55 -0
- package/alert/lib/alert.module.d.ts +9 -0
- package/avatar/README.md +3 -0
- package/avatar/index.d.ts +3 -0
- package/avatar/lib/avatar-group.component.d.ts +5 -0
- package/avatar/lib/avatar.component.d.ts +17 -0
- package/avatar/lib/avatar.module.d.ts +9 -0
- package/badge/README.md +3 -0
- package/badge/index.d.ts +2 -0
- package/badge/lib/badge.component.d.ts +8 -0
- package/badge/lib/badge.module.d.ts +8 -0
- package/bottom-navigation/README.md +3 -0
- package/bottom-navigation/index.d.ts +3 -0
- package/bottom-navigation/lib/bottom-navigation-item/bottom-navigation-item.component.d.ts +15 -0
- package/bottom-navigation/lib/bottom-navigation.component.d.ts +17 -0
- package/bottom-navigation/lib/bottom-navigation.module.d.ts +9 -0
- package/breadcrumbs/README.md +3 -0
- package/breadcrumbs/index.d.ts +4 -0
- package/breadcrumbs/lib/breadcrumbs-item.class.d.ts +9 -0
- package/breadcrumbs/lib/breadcrumbs-item.component.d.ts +14 -0
- package/breadcrumbs/lib/breadcrumbs.component.d.ts +9 -0
- package/breadcrumbs/lib/breadcrumbs.module.d.ts +10 -0
- package/button/README.md +3 -0
- package/button/index.d.ts +5 -0
- package/button/lib/button-item-list.component.d.ts +19 -0
- package/button/lib/button-item.class.d.ts +24 -0
- package/button/lib/button-item.component.d.ts +30 -0
- package/button/lib/button.component.d.ts +26 -0
- package/button/lib/button.module.d.ts +13 -0
- package/button-group/README.md +3 -0
- package/button-group/index.d.ts +2 -0
- package/button-group/lib/button-group.component.d.ts +24 -0
- package/button-group/lib/button-group.module.d.ts +8 -0
- package/calendar/README.md +3 -0
- package/calendar/index.d.ts +4 -0
- package/calendar/lib/calendar-range.component.d.ts +31 -0
- package/calendar/lib/calendar.class.d.ts +80 -0
- package/calendar/lib/calendar.component.d.ts +51 -0
- package/calendar/lib/calendar.module.d.ts +11 -0
- package/chat/README.md +3 -0
- package/chat/index.d.ts +13 -0
- package/chat/lib/chat-input/chat-input.component.d.ts +35 -0
- package/chat/lib/chat-input/chat-input.interface.d.ts +10 -0
- package/chat/lib/chat-message/chat-message.component.d.ts +12 -0
- package/chat/lib/chat-messages/chat-message-audio.component.d.ts +7 -0
- package/chat/lib/chat-messages/chat-message-text.component.d.ts +8 -0
- package/chat/lib/chat-view/chat-view.component.d.ts +10 -0
- package/chat/lib/chat-voice/chat-voice.component.d.ts +6 -0
- package/chat/lib/chat.module.d.ts +29 -0
- package/chat/lib/chat.types.d.ts +21 -0
- package/chat/lib/classes/events.interface.d.ts +4 -0
- package/chat/lib/services/chat-message-type-registry.service.d.ts +9 -0
- package/chat/lib/services/chat.service.d.ts +5 -0
- package/chat/lib/services/recording.service.d.ts +20 -0
- package/check-box/README.md +3 -0
- package/check-box/index.d.ts +2 -0
- package/check-box/lib/check-box.component.d.ts +16 -0
- package/check-box/lib/check-box.module.d.ts +10 -0
- package/chips/README.md +3 -0
- package/chips/index.d.ts +2 -0
- package/chips/lib/chips.component.d.ts +11 -0
- package/chips/lib/chips.module.d.ts +8 -0
- package/circular-progress/README.md +3 -0
- package/circular-progress/index.d.ts +2 -0
- package/circular-progress/lib/circular-progress.component.d.ts +33 -0
- package/circular-progress/lib/circular-progress.module.d.ts +7 -0
- package/collapse/README.md +3 -0
- package/collapse/index.d.ts +3 -0
- package/collapse/lib/collapse-group.component.d.ts +30 -0
- package/collapse/lib/collapse.component.d.ts +46 -0
- package/collapse/lib/collapse.module.d.ts +10 -0
- package/color-box/README.md +3 -0
- package/color-box/index.d.ts +2 -0
- package/color-box/lib/color-box.component.d.ts +27 -0
- package/color-box/lib/color-box.module.d.ts +11 -0
- package/color-palette/README.md +3 -0
- package/color-palette/index.d.ts +7 -0
- package/color-palette/lib/color-palette-input.component.d.ts +25 -0
- package/color-palette/lib/color-palette-picker.component.d.ts +35 -0
- package/color-palette/lib/color-palette-preview.component.d.ts +16 -0
- package/color-palette/lib/color-palette-swatches.component.d.ts +21 -0
- package/color-palette/lib/color-palette.class.d.ts +28 -0
- package/color-palette/lib/color-palette.component.d.ts +10 -0
- package/color-palette/lib/color-palette.module.d.ts +20 -0
- package/common/README.md +3 -0
- package/common/index.d.ts +28 -0
- package/common/lib/classes/components.class.d.ts +83 -0
- package/common/lib/classes/datalist.class.d.ts +37 -0
- package/common/lib/classes/datasource.class.d.ts +78 -0
- package/common/lib/classes/events.class.d.ts +96 -0
- package/common/lib/classes/styles.class.d.ts +8 -0
- package/common/lib/common.module.d.ts +10 -0
- package/common/lib/components/base-component.class.d.ts +38 -0
- package/common/lib/components/button-base-component.class.d.ts +35 -0
- package/common/lib/components/color-component.class.d.ts +12 -0
- package/common/lib/components/colorlook-component.class.d.ts +6 -0
- package/common/lib/components/input-base-value-component.class.d.ts +27 -0
- package/common/lib/components/interactive-component.class.d.ts +42 -0
- package/common/lib/components/look-component.class.d.ts +18 -0
- package/common/lib/components/selection-base.component.class.d.ts +48 -0
- package/common/lib/components/value-component.class.d.ts +67 -0
- package/common/lib/directives/auto-focus.directive.d.ts +15 -0
- package/common/lib/directives/delayed-value-changed.directive.d.ts +17 -0
- package/common/lib/directives/hotkey.directive.d.ts +22 -0
- package/common/lib/directives/infinite-scroll.directive.d.ts +25 -0
- package/common/lib/directives/responsive.directive.d.ts +10 -0
- package/common/lib/directives/ripple.directive.d.ts +16 -0
- package/common/lib/services/dom.service.d.ts +6 -0
- package/common/lib/services/hotkey.service.d.ts +31 -0
- package/common/lib/types/direction.d.ts +4 -0
- package/common/lib/types/orientation.d.ts +4 -0
- package/common/lib/types/placement.d.ts +30 -0
- package/common/lib/types/range.d.ts +4 -0
- package/common/lib/types/selection-mode.d.ts +4 -0
- package/data-pager/README.md +3 -0
- package/data-pager/index.d.ts +9 -0
- package/data-pager/lib/data-pager-base.component.d.ts +54 -0
- package/data-pager/lib/data-pager-info.component.d.ts +11 -0
- package/data-pager/lib/data-pager-input-selector.component.d.ts +11 -0
- package/data-pager/lib/data-pager-next-buttons.components.d.ts +10 -0
- package/data-pager/lib/data-pager-numeric-selector.component.d.ts +13 -0
- package/data-pager/lib/data-pager-pagesize-dropdown.component.d.ts +14 -0
- package/data-pager/lib/data-pager-prev-buttons.component.d.ts +10 -0
- package/data-pager/lib/data-pager.component.d.ts +34 -0
- package/data-pager/lib/data-pager.module.d.ts +21 -0
- package/data-table/README.md +3 -0
- package/data-table/index.d.ts +10 -0
- package/data-table/lib/base-data-table.class.d.ts +25 -0
- package/data-table/lib/columns/data-table-column-resizable.directive.d.ts +22 -0
- package/data-table/lib/columns/data-table-column.d.ts +20 -0
- package/data-table/lib/columns/data-text-column.component.d.ts +18 -0
- package/data-table/lib/columns/row-command-column.component.d.ts +40 -0
- package/data-table/lib/columns/row-index-column.component.d.ts +18 -0
- package/data-table/lib/columns/row-select-column.component.d.ts +14 -0
- package/data-table/lib/data-table/data-table.component.d.ts +52 -0
- package/data-table/lib/data-table.module.d.ts +26 -0
- package/data-table/lib/infinite-scroll-data-table/infinite-scroll-data-table.component.d.ts +66 -0
- package/datetime-box/README.md +3 -0
- package/datetime-box/index.d.ts +2 -0
- package/datetime-box/lib/datetime-box.component.d.ts +36 -0
- package/datetime-box/lib/datetime-box.module.d.ts +13 -0
- package/datetime-input/README.md +3 -0
- package/datetime-input/index.d.ts +2 -0
- package/datetime-input/lib/datetime-input.component.d.ts +45 -0
- package/datetime-input/lib/datetime-input.module.d.ts +10 -0
- package/datetime-picker/README.md +3 -0
- package/datetime-picker/index.d.ts +3 -0
- package/datetime-picker/lib/datetime-picker.component.d.ts +49 -0
- package/datetime-picker/lib/datetime-picker.config.d.ts +8 -0
- package/datetime-picker/lib/datetime-picker.module.d.ts +15 -0
- package/decorators/README.md +3 -0
- package/decorators/index.d.ts +5 -0
- package/decorators/lib/components/clear-button.component.d.ts +13 -0
- package/decorators/lib/components/close-button.component.d.ts +12 -0
- package/decorators/lib/components/generic-content.component.d.ts +6 -0
- package/decorators/lib/components/icon.component.d.ts +8 -0
- package/decorators/lib/decorators.module.d.ts +11 -0
- package/dialog/README.md +3 -0
- package/dialog/index.d.ts +4 -0
- package/dialog/lib/dialog.class.d.ts +36 -0
- package/dialog/lib/dialog.component.d.ts +19 -0
- package/dialog/lib/dialog.module.d.ts +16 -0
- package/dialog/lib/dialog.service.d.ts +31 -0
- package/drawer/README.md +3 -0
- package/drawer/index.d.ts +3 -0
- package/drawer/lib/drawer-container.component.d.ts +7 -0
- package/drawer/lib/drawer.component.d.ts +39 -0
- package/drawer/lib/drawer.module.d.ts +9 -0
- package/dropdown/README.md +3 -0
- package/dropdown/index.d.ts +4 -0
- package/dropdown/lib/dropdown-box.class.d.ts +15 -0
- package/dropdown/lib/dropdown-box.component.d.ts +30 -0
- package/dropdown/lib/dropdown-panel.component.d.ts +33 -0
- package/dropdown/lib/dropdown.module.d.ts +14 -0
- package/dropdown-button/README.md +3 -0
- package/dropdown-button/index.d.ts +2 -0
- package/dropdown-button/lib/dropdown-button.component.d.ts +28 -0
- package/dropdown-button/lib/dropdown-button.module.d.ts +13 -0
- package/esm2022/action-sheet/acorex-components-action-sheet.mjs +5 -0
- package/esm2022/action-sheet/index.mjs +5 -0
- package/esm2022/action-sheet/lib/action-sheet.class.mjs +2 -0
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +98 -0
- package/esm2022/action-sheet/lib/action-sheet.module.mjs +54 -0
- package/esm2022/action-sheet/lib/action-sheet.service.mjs +57 -0
- package/esm2022/alert/acorex-components-alert.mjs +5 -0
- package/esm2022/alert/index.mjs +3 -0
- package/esm2022/alert/lib/alert.component.mjs +195 -0
- package/esm2022/alert/lib/alert.module.mjs +22 -0
- package/esm2022/avatar/acorex-components-avatar.mjs +5 -0
- package/esm2022/avatar/index.mjs +4 -0
- package/esm2022/avatar/lib/avatar-group.component.mjs +14 -0
- package/esm2022/avatar/lib/avatar.component.mjs +41 -0
- package/esm2022/avatar/lib/avatar.module.mjs +22 -0
- package/esm2022/badge/acorex-components-badge.mjs +5 -0
- package/esm2022/badge/index.mjs +3 -0
- package/esm2022/badge/lib/badge.component.mjs +24 -0
- package/esm2022/badge/lib/badge.module.mjs +19 -0
- package/esm2022/bottom-navigation/acorex-components-bottom-navigation.mjs +5 -0
- package/esm2022/bottom-navigation/index.mjs +4 -0
- package/esm2022/bottom-navigation/lib/bottom-navigation-item/bottom-navigation-item.component.mjs +46 -0
- package/esm2022/bottom-navigation/lib/bottom-navigation.component.mjs +49 -0
- package/esm2022/bottom-navigation/lib/bottom-navigation.module.mjs +27 -0
- package/esm2022/breadcrumbs/acorex-components-breadcrumbs.mjs +5 -0
- package/esm2022/breadcrumbs/index.mjs +5 -0
- package/esm2022/breadcrumbs/lib/breadcrumbs-item.class.mjs +2 -0
- package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +36 -0
- package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +19 -0
- package/esm2022/breadcrumbs/lib/breadcrumbs.module.mjs +21 -0
- package/esm2022/button/acorex-components-button.mjs +5 -0
- package/esm2022/button/index.mjs +6 -0
- package/esm2022/button/lib/button-item-list.component.mjs +114 -0
- package/esm2022/button/lib/button-item.class.mjs +2 -0
- package/esm2022/button/lib/button-item.component.mjs +106 -0
- package/esm2022/button/lib/button.component.mjs +98 -0
- package/esm2022/button/lib/button.module.mjs +47 -0
- package/esm2022/button-group/acorex-components-button-group.mjs +5 -0
- package/esm2022/button-group/index.mjs +3 -0
- package/esm2022/button-group/lib/button-group.component.mjs +118 -0
- package/esm2022/button-group/lib/button-group.module.mjs +21 -0
- package/esm2022/calendar/acorex-components-calendar.mjs +5 -0
- package/esm2022/calendar/index.mjs +5 -0
- package/esm2022/calendar/lib/calendar-range.component.mjs +175 -0
- package/esm2022/calendar/lib/calendar.class.mjs +176 -0
- package/esm2022/calendar/lib/calendar.component.mjs +477 -0
- package/esm2022/calendar/lib/calendar.module.mjs +24 -0
- package/esm2022/chat/acorex-components-chat.mjs +5 -0
- package/esm2022/chat/index.mjs +15 -0
- package/esm2022/chat/lib/chat-input/chat-input.component.mjs +125 -0
- package/esm2022/chat/lib/chat-input/chat-input.interface.mjs +2 -0
- package/esm2022/chat/lib/chat-message/chat-message.component.mjs +30 -0
- package/esm2022/chat/lib/chat-messages/chat-message-audio.component.mjs +17 -0
- package/esm2022/chat/lib/chat-messages/chat-message-text.component.mjs +23 -0
- package/esm2022/chat/lib/chat-view/chat-view.component.mjs +22 -0
- package/esm2022/chat/lib/chat-voice/chat-voice.component.mjs +12 -0
- package/esm2022/chat/lib/chat.module.mjs +125 -0
- package/esm2022/chat/lib/chat.types.mjs +10 -0
- package/esm2022/chat/lib/classes/events.interface.mjs +2 -0
- package/esm2022/chat/lib/services/chat-message-type-registry.service.mjs +20 -0
- package/esm2022/chat/lib/services/chat.service.mjs +10 -0
- package/esm2022/chat/lib/services/recording.service.mjs +78 -0
- package/esm2022/check-box/acorex-components-check-box.mjs +5 -0
- package/esm2022/check-box/index.mjs +3 -0
- package/esm2022/check-box/lib/check-box.component.mjs +100 -0
- package/esm2022/check-box/lib/check-box.module.mjs +21 -0
- package/esm2022/chips/acorex-components-chips.mjs +5 -0
- package/esm2022/chips/index.mjs +3 -0
- package/esm2022/chips/lib/chips.component.mjs +28 -0
- package/esm2022/chips/lib/chips.module.mjs +19 -0
- package/esm2022/circular-progress/acorex-components-circular-progress.mjs +5 -0
- package/esm2022/circular-progress/index.mjs +3 -0
- package/esm2022/circular-progress/lib/circular-progress.component.mjs +96 -0
- package/esm2022/circular-progress/lib/circular-progress.module.mjs +17 -0
- package/esm2022/collapse/acorex-components-collapse.mjs +5 -0
- package/esm2022/collapse/index.mjs +4 -0
- package/esm2022/collapse/lib/collapse-group.component.mjs +131 -0
- package/esm2022/collapse/lib/collapse.component.mjs +146 -0
- package/esm2022/collapse/lib/collapse.module.mjs +21 -0
- package/esm2022/color-box/acorex-components-color-box.mjs +5 -0
- package/esm2022/color-box/index.mjs +3 -0
- package/esm2022/color-box/lib/color-box.component.mjs +71 -0
- package/esm2022/color-box/lib/color-box.module.mjs +32 -0
- package/esm2022/color-palette/acorex-components-color-palette.mjs +5 -0
- package/esm2022/color-palette/index.mjs +8 -0
- package/esm2022/color-palette/lib/color-palette-input.component.mjs +127 -0
- package/esm2022/color-palette/lib/color-palette-picker.component.mjs +175 -0
- package/esm2022/color-palette/lib/color-palette-preview.component.mjs +71 -0
- package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +95 -0
- package/esm2022/color-palette/lib/color-palette.class.mjs +238 -0
- package/esm2022/color-palette/lib/color-palette.component.mjs +66 -0
- package/esm2022/color-palette/lib/color-palette.module.mjs +63 -0
- package/esm2022/common/acorex-components-common.mjs +5 -0
- package/esm2022/common/index.mjs +29 -0
- package/esm2022/common/lib/classes/components.class.mjs +76 -0
- package/esm2022/common/lib/classes/datalist.class.mjs +50 -0
- package/esm2022/common/lib/classes/datasource.class.mjs +133 -0
- package/esm2022/common/lib/classes/events.class.mjs +79 -0
- package/esm2022/common/lib/classes/styles.class.mjs +20 -0
- package/esm2022/common/lib/common.module.mjs +38 -0
- package/esm2022/common/lib/components/base-component.class.mjs +81 -0
- package/esm2022/common/lib/components/button-base-component.class.mjs +67 -0
- package/esm2022/common/lib/components/color-component.class.mjs +25 -0
- package/esm2022/common/lib/components/colorlook-component.class.mjs +6 -0
- package/esm2022/common/lib/components/input-base-value-component.class.mjs +47 -0
- package/esm2022/common/lib/components/interactive-component.class.mjs +107 -0
- package/esm2022/common/lib/components/look-component.class.mjs +33 -0
- package/esm2022/common/lib/components/selection-base.component.class.mjs +196 -0
- package/esm2022/common/lib/components/value-component.class.mjs +223 -0
- package/esm2022/common/lib/directives/auto-focus.directive.mjs +66 -0
- package/esm2022/common/lib/directives/delayed-value-changed.directive.mjs +51 -0
- package/esm2022/common/lib/directives/hotkey.directive.mjs +81 -0
- package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +61 -0
- package/esm2022/common/lib/directives/responsive.directive.mjs +42 -0
- package/esm2022/common/lib/directives/ripple.directive.mjs +62 -0
- package/esm2022/common/lib/services/dom.service.mjs +16 -0
- package/esm2022/common/lib/services/hotkey.service.mjs +53 -0
- package/esm2022/common/lib/types/direction.mjs +2 -0
- package/esm2022/common/lib/types/orientation.mjs +2 -0
- package/esm2022/common/lib/types/placement.mjs +180 -0
- package/esm2022/common/lib/types/range.mjs +2 -0
- package/esm2022/common/lib/types/selection-mode.mjs +5 -0
- package/esm2022/data-pager/acorex-components-data-pager.mjs +5 -0
- package/esm2022/data-pager/index.mjs +10 -0
- package/esm2022/data-pager/lib/data-pager-base.component.mjs +50 -0
- package/esm2022/data-pager/lib/data-pager-info.component.mjs +47 -0
- package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +73 -0
- package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +61 -0
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +129 -0
- package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +109 -0
- package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +97 -0
- package/esm2022/data-pager/lib/data-pager.component.mjs +170 -0
- package/esm2022/data-pager/lib/data-pager.module.mjs +70 -0
- package/esm2022/data-table/acorex-components-data-table.mjs +5 -0
- package/esm2022/data-table/index.mjs +11 -0
- package/esm2022/data-table/lib/base-data-table.class.mjs +36 -0
- package/esm2022/data-table/lib/columns/data-table-column-resizable.directive.mjs +59 -0
- package/esm2022/data-table/lib/columns/data-table-column.mjs +38 -0
- package/esm2022/data-table/lib/columns/data-text-column.component.mjs +81 -0
- package/esm2022/data-table/lib/columns/row-command-column.component.mjs +231 -0
- package/esm2022/data-table/lib/columns/row-index-column.component.mjs +71 -0
- package/esm2022/data-table/lib/columns/row-select-column.component.mjs +61 -0
- package/esm2022/data-table/lib/data-table/data-table.component.mjs +233 -0
- package/esm2022/data-table/lib/data-table.module.mjs +107 -0
- package/esm2022/data-table/lib/infinite-scroll-data-table/infinite-scroll-data-table.component.mjs +272 -0
- package/esm2022/datetime-box/acorex-components-datetime-box.mjs +5 -0
- package/esm2022/datetime-box/index.mjs +3 -0
- package/esm2022/datetime-box/lib/datetime-box.component.mjs +110 -0
- package/esm2022/datetime-box/lib/datetime-box.module.mjs +38 -0
- package/esm2022/datetime-input/acorex-components-datetime-input.mjs +5 -0
- package/esm2022/datetime-input/index.mjs +3 -0
- package/esm2022/datetime-input/lib/datetime-input.component.mjs +553 -0
- package/esm2022/datetime-input/lib/datetime-input.module.mjs +23 -0
- package/esm2022/datetime-picker/acorex-components-datetime-picker.mjs +5 -0
- package/esm2022/datetime-picker/index.mjs +4 -0
- package/esm2022/datetime-picker/lib/datetime-picker.component.mjs +266 -0
- package/esm2022/datetime-picker/lib/datetime-picker.config.mjs +22 -0
- package/esm2022/datetime-picker/lib/datetime-picker.module.mjs +44 -0
- package/esm2022/decorators/acorex-components-decorators.mjs +5 -0
- package/esm2022/decorators/index.mjs +6 -0
- package/esm2022/decorators/lib/components/clear-button.component.mjs +70 -0
- package/esm2022/decorators/lib/components/close-button.component.mjs +52 -0
- package/esm2022/decorators/lib/components/generic-content.component.mjs +38 -0
- package/esm2022/decorators/lib/components/icon.component.mjs +25 -0
- package/esm2022/decorators/lib/decorators.module.mjs +35 -0
- package/esm2022/dialog/acorex-components-dialog.mjs +5 -0
- package/esm2022/dialog/index.mjs +5 -0
- package/esm2022/dialog/lib/dialog.class.mjs +2 -0
- package/esm2022/dialog/lib/dialog.component.mjs +62 -0
- package/esm2022/dialog/lib/dialog.module.mjs +48 -0
- package/esm2022/dialog/lib/dialog.service.mjs +164 -0
- package/esm2022/drawer/acorex-components-drawer.mjs +5 -0
- package/esm2022/drawer/index.mjs +4 -0
- package/esm2022/drawer/lib/drawer-container.component.mjs +33 -0
- package/esm2022/drawer/lib/drawer.component.mjs +151 -0
- package/esm2022/drawer/lib/drawer.module.mjs +22 -0
- package/esm2022/dropdown/acorex-components-dropdown.mjs +5 -0
- package/esm2022/dropdown/index.mjs +5 -0
- package/esm2022/dropdown/lib/dropdown-box.class.mjs +38 -0
- package/esm2022/dropdown/lib/dropdown-box.component.mjs +103 -0
- package/esm2022/dropdown/lib/dropdown-panel.component.mjs +145 -0
- package/esm2022/dropdown/lib/dropdown.module.mjs +42 -0
- package/esm2022/dropdown-button/acorex-components-dropdown-button.mjs +5 -0
- package/esm2022/dropdown-button/index.mjs +3 -0
- package/esm2022/dropdown-button/lib/dropdown-button.component.mjs +97 -0
- package/esm2022/dropdown-button/lib/dropdown-button.module.mjs +45 -0
- package/esm2022/form/acorex-components-form.mjs +5 -0
- package/esm2022/form/index.mjs +7 -0
- package/esm2022/form/lib/form-field.component.mjs +40 -0
- package/esm2022/form/lib/form.component.mjs +122 -0
- package/esm2022/form/lib/form.config.mjs +16 -0
- package/esm2022/form/lib/form.module.mjs +60 -0
- package/esm2022/form/lib/validation-rule.directive.mjs +36 -0
- package/esm2022/form/lib/validation-summary.component.mjs +133 -0
- package/esm2022/image/acorex-components-image.mjs +5 -0
- package/esm2022/image/index.mjs +3 -0
- package/esm2022/image/lib/image.component.mjs +72 -0
- package/esm2022/image/lib/image.module.mjs +19 -0
- package/esm2022/index.mjs +2 -158
- package/esm2022/label/acorex-components-label.mjs +5 -0
- package/esm2022/label/index.mjs +3 -0
- package/esm2022/label/lib/label.component.mjs +47 -0
- package/esm2022/label/lib/label.module.mjs +21 -0
- package/esm2022/list/acorex-components-list.mjs +5 -0
- package/esm2022/list/index.mjs +3 -0
- package/esm2022/list/lib/list.component.mjs +184 -0
- package/esm2022/list/lib/list.module.mjs +23 -0
- package/esm2022/loading/acorex-components-loading.mjs +5 -0
- package/esm2022/loading/index.mjs +7 -0
- package/esm2022/loading/lib/loading-spinner.component.mjs +44 -0
- package/esm2022/loading/lib/loading.component.mjs +62 -0
- package/esm2022/loading/lib/loading.config.mjs +17 -0
- package/esm2022/loading/lib/loading.directive.mjs +39 -0
- package/esm2022/loading/lib/loading.module.mjs +35 -0
- package/esm2022/loading/lib/loading.service.mjs +129 -0
- package/esm2022/loading-dialog/acorex-components-loading-dialog.mjs +5 -0
- package/esm2022/loading-dialog/index.mjs +5 -0
- package/esm2022/loading-dialog/lib/loading-dialog.class.mjs +2 -0
- package/esm2022/loading-dialog/lib/loading-dialog.component.mjs +63 -0
- package/esm2022/loading-dialog/lib/loading-dialog.module.mjs +46 -0
- package/esm2022/loading-dialog/lib/loading-dialog.service.mjs +37 -0
- package/esm2022/menu/acorex-components-menu.mjs +5 -0
- package/esm2022/menu/index.mjs +5 -0
- package/esm2022/menu/lib/class/root-menu.class.mjs +3 -0
- package/esm2022/menu/lib/menu-item/menu-item.component.mjs +140 -0
- package/esm2022/menu/lib/menu.component.mjs +48 -0
- package/esm2022/menu/lib/menu.module.mjs +37 -0
- package/esm2022/nav/acorex-components-nav.mjs +5 -0
- package/esm2022/nav/index.mjs +4 -0
- package/esm2022/nav/lib/nav-item/nav-item.component.mjs +41 -0
- package/esm2022/nav/lib/nav.component.mjs +12 -0
- package/esm2022/nav/lib/nav.module.mjs +23 -0
- package/esm2022/navbar/acorex-components-navbar.mjs +5 -0
- package/esm2022/navbar/index.mjs +3 -0
- package/esm2022/navbar/lib/navbar.component.mjs +18 -0
- package/esm2022/navbar/lib/navbar.module.mjs +18 -0
- package/esm2022/notification/acorex-components-notification.mjs +5 -0
- package/esm2022/notification/index.mjs +6 -0
- package/esm2022/notification/lib/notification.class.mjs +2 -0
- package/esm2022/notification/lib/notification.component.mjs +105 -0
- package/esm2022/notification/lib/notification.config.mjs +20 -0
- package/esm2022/notification/lib/notification.module.mjs +42 -0
- package/esm2022/notification/lib/notification.service.mjs +102 -0
- package/esm2022/number-box/acorex-components-number-box.mjs +5 -0
- package/esm2022/number-box/index.mjs +3 -0
- package/esm2022/number-box/lib/number-box.component.mjs +294 -0
- package/esm2022/number-box/lib/number-box.module.mjs +35 -0
- package/esm2022/otp/acorex-components-otp.mjs +5 -0
- package/esm2022/otp/index.mjs +4 -0
- package/esm2022/otp/lib/otp.class.mjs +4 -0
- package/esm2022/otp/lib/otp.component.mjs +158 -0
- package/esm2022/otp/lib/otp.module.mjs +22 -0
- package/esm2022/page/acorex-components-page.mjs +5 -0
- package/esm2022/page/index.mjs +4 -0
- package/esm2022/page/lib/base-page.class.mjs +62 -0
- package/esm2022/page/lib/page.component.mjs +44 -0
- package/esm2022/page/lib/page.module.mjs +18 -0
- package/esm2022/password-box/acorex-components-password-box.mjs +5 -0
- package/esm2022/password-box/index.mjs +3 -0
- package/esm2022/password-box/lib/password-box.component.mjs +94 -0
- package/esm2022/password-box/lib/password-box.module.mjs +24 -0
- package/esm2022/phone-box/acorex-components-phone-box.mjs +5 -0
- package/esm2022/phone-box/index.mjs +3 -0
- package/esm2022/phone-box/lib/phone-box.component.mjs +135 -0
- package/esm2022/phone-box/lib/phone-box.module.mjs +44 -0
- package/esm2022/picker/acorex-components-picker.mjs +5 -0
- package/esm2022/picker/index.mjs +4 -0
- package/esm2022/picker/lib/picker-column.directive.mjs +66 -0
- package/esm2022/picker/lib/picker.component.mjs +164 -0
- package/esm2022/picker/lib/picker.module.mjs +22 -0
- package/esm2022/popover/acorex-components-popover.mjs +5 -0
- package/esm2022/popover/index.mjs +3 -0
- package/esm2022/popover/lib/popover.component.mjs +379 -0
- package/esm2022/popover/lib/popover.module.mjs +19 -0
- package/esm2022/popup/acorex-components-popup.mjs +5 -0
- package/esm2022/popup/index.mjs +5 -0
- package/esm2022/popup/lib/popup.component.mjs +153 -0
- package/esm2022/popup/lib/popup.interface.mjs +2 -0
- package/esm2022/popup/lib/popup.module.mjs +45 -0
- package/esm2022/popup/lib/popup.service.mjs +65 -0
- package/esm2022/progress-bar/acorex-components-progress-bar.mjs +5 -0
- package/esm2022/progress-bar/index.mjs +3 -0
- package/esm2022/progress-bar/lib/progress-bar.component.mjs +57 -0
- package/esm2022/progress-bar/lib/progress-bar.module.mjs +19 -0
- package/esm2022/radio/acorex-components-radio.mjs +5 -0
- package/esm2022/radio/index.mjs +3 -0
- package/esm2022/radio/lib/radio.component.mjs +62 -0
- package/esm2022/radio/lib/radio.module.mjs +22 -0
- package/esm2022/range-slider/acorex-components-range-slider.mjs +5 -0
- package/esm2022/range-slider/index.mjs +3 -0
- package/esm2022/range-slider/lib/range-slider.component.mjs +117 -0
- package/esm2022/range-slider/lib/range-slider.module.mjs +23 -0
- package/esm2022/result/acorex-components-result.mjs +5 -0
- package/esm2022/result/index.mjs +3 -0
- package/esm2022/result/lib/result.component.mjs +27 -0
- package/esm2022/result/lib/result.module.mjs +19 -0
- package/esm2022/routing-progress/acorex-components-routing-progress.mjs +5 -0
- package/esm2022/routing-progress/index.mjs +3 -0
- package/esm2022/routing-progress/lib/routing-progress.component.mjs +57 -0
- package/esm2022/routing-progress/lib/routing-progress.module.mjs +21 -0
- package/esm2022/scheduler/acorex-components-scheduler.mjs +5 -0
- package/esm2022/scheduler/index.mjs +5 -0
- package/esm2022/scheduler/lib/scheduler-month-view.component.mjs +53 -0
- package/esm2022/scheduler/lib/scheduler-week-view.component.mjs +12 -0
- package/esm2022/scheduler/lib/scheduler.component.mjs +43 -0
- package/esm2022/scheduler/lib/scheduler.module.mjs +45 -0
- package/esm2022/scss/acorex-components-scss.mjs +5 -0
- package/esm2022/scss/index.mjs +2 -0
- package/esm2022/scss/lib/scss.module.mjs +15 -0
- package/esm2022/search-box/acorex-components-search-box.mjs +5 -0
- package/esm2022/search-box/index.mjs +3 -0
- package/esm2022/search-box/lib/search-box.component.mjs +87 -0
- package/esm2022/search-box/lib/search-box.module.mjs +46 -0
- package/esm2022/select-box/acorex-components-select-box.mjs +5 -0
- package/esm2022/select-box/index.mjs +3 -0
- package/esm2022/select-box/lib/select-box.component.mjs +299 -0
- package/esm2022/select-box/lib/select-box.module.mjs +69 -0
- package/esm2022/selection-list/acorex-components-selection-list.mjs +5 -0
- package/esm2022/selection-list/index.mjs +3 -0
- package/esm2022/selection-list/lib/selection-list.component.mjs +135 -0
- package/esm2022/selection-list/lib/selection-list.module.mjs +41 -0
- package/esm2022/side-menu/acorex-components-side-menu.mjs +5 -0
- package/esm2022/side-menu/index.mjs +4 -0
- package/esm2022/side-menu/lib/side-menu-item/side-menu-item.compoent.mjs +147 -0
- package/esm2022/side-menu/lib/side-menu.component.mjs +12 -0
- package/esm2022/side-menu/lib/side-menu.module.mjs +25 -0
- package/esm2022/skeleton/acorex-components-skeleton.mjs +5 -0
- package/esm2022/skeleton/index.mjs +3 -0
- package/esm2022/skeleton/lib/skeleton.component.mjs +24 -0
- package/esm2022/skeleton/lib/skeleton.module.mjs +18 -0
- package/esm2022/step-wizard/acorex-components-step-wizard.mjs +5 -0
- package/esm2022/step-wizard/index.mjs +6 -0
- package/esm2022/step-wizard/lib/step-wizard-item/step-wizard-item.component.mjs +66 -0
- package/esm2022/step-wizard/lib/step-wizard.class.mjs +2 -0
- package/esm2022/step-wizard/lib/step-wizard.component.mjs +102 -0
- package/esm2022/step-wizard/lib/step-wizard.directive.mjs +28 -0
- package/esm2022/step-wizard/lib/step-wizard.module.mjs +33 -0
- package/esm2022/switch/acorex-components-switch.mjs +5 -0
- package/esm2022/switch/index.mjs +4 -0
- package/esm2022/switch/lib/switch-content.component.mjs +15 -0
- package/esm2022/switch/lib/switch.component.mjs +51 -0
- package/esm2022/switch/lib/switch.module.mjs +21 -0
- package/esm2022/tabs/acorex-components-tabs.mjs +5 -0
- package/esm2022/tabs/index.mjs +6 -0
- package/esm2022/tabs/lib/tab-content.directive.mjs +28 -0
- package/esm2022/tabs/lib/tab-item.component.mjs +121 -0
- package/esm2022/tabs/lib/tabs.class.mjs +4 -0
- package/esm2022/tabs/lib/tabs.component.mjs +99 -0
- package/esm2022/tabs/lib/tabs.module.mjs +25 -0
- package/esm2022/tag/acorex-components-tag.mjs +5 -0
- package/esm2022/tag/index.mjs +3 -0
- package/esm2022/tag/lib/tag.component.mjs +20 -0
- package/esm2022/tag/lib/tag.module.mjs +19 -0
- package/esm2022/text-area/acorex-components-text-area.mjs +5 -0
- package/esm2022/text-area/index.mjs +3 -0
- package/esm2022/text-area/lib/text-area.component.mjs +65 -0
- package/esm2022/text-area/lib/text-area.module.mjs +19 -0
- package/esm2022/text-box/acorex-components-text-box.mjs +5 -0
- package/esm2022/text-box/index.mjs +4 -0
- package/esm2022/text-box/lib/mask-options.directive.mjs +17 -0
- package/esm2022/text-box/lib/text-box.component.mjs +131 -0
- package/esm2022/text-box/lib/text-box.module.mjs +38 -0
- package/esm2022/toast/acorex-components-toast.mjs +5 -0
- package/esm2022/toast/index.mjs +6 -0
- package/esm2022/toast/lib/toast.class.mjs +2 -0
- package/esm2022/toast/lib/toast.component.mjs +81 -0
- package/esm2022/toast/lib/toast.config.mjs +25 -0
- package/esm2022/toast/lib/toast.module.mjs +39 -0
- package/esm2022/toast/lib/toast.service.mjs +139 -0
- package/esm2022/tooltip/acorex-components-tooltip.mjs +5 -0
- package/esm2022/tooltip/index.mjs +4 -0
- package/esm2022/tooltip/lib/tooltip.component.mjs +16 -0
- package/esm2022/tooltip/lib/tooltip.directive.mjs +80 -0
- package/esm2022/tooltip/lib/tooltip.module.mjs +22 -0
- package/esm2022/uploader/acorex-components-uploader.mjs +5 -0
- package/esm2022/uploader/index.mjs +8 -0
- package/esm2022/uploader/lib/uploader-browse-handle.directive.mjs +27 -0
- package/esm2022/uploader/lib/uploader-dialog-container.component.mjs +40 -0
- package/esm2022/uploader/lib/uploader-drop-zone.component.mjs +14 -0
- package/esm2022/uploader/lib/uploader-list.component.mjs +21 -0
- package/esm2022/uploader/lib/uploader-zone.directive.mjs +79 -0
- package/esm2022/uploader/lib/uploader.models.mjs +68 -0
- package/esm2022/uploader/lib/uploader.module.mjs +84 -0
- package/esm2022/uploader/lib/uploader.service.mjs +86 -0
- package/fesm2022/acorex-components-action-sheet.mjs +205 -0
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -0
- package/fesm2022/acorex-components-alert.mjs +220 -0
- package/fesm2022/acorex-components-alert.mjs.map +1 -0
- package/fesm2022/acorex-components-avatar.mjs +78 -0
- package/fesm2022/acorex-components-avatar.mjs.map +1 -0
- package/fesm2022/acorex-components-badge.mjs +47 -0
- package/fesm2022/acorex-components-badge.mjs.map +1 -0
- package/fesm2022/acorex-components-bottom-navigation.mjs +120 -0
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -0
- package/fesm2022/acorex-components-breadcrumbs.mjs +73 -0
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -0
- package/fesm2022/acorex-components-button-group.mjs +143 -0
- package/fesm2022/acorex-components-button-group.mjs.map +1 -0
- package/fesm2022/acorex-components-button.mjs +356 -0
- package/fesm2022/acorex-components-button.mjs.map +1 -0
- package/fesm2022/acorex-components-calendar.mjs +840 -0
- package/fesm2022/acorex-components-calendar.mjs.map +1 -0
- package/fesm2022/acorex-components-chat.mjs +441 -0
- package/fesm2022/acorex-components-chat.mjs.map +1 -0
- package/fesm2022/acorex-components-check-box.mjs +124 -0
- package/fesm2022/acorex-components-check-box.mjs.map +1 -0
- package/fesm2022/acorex-components-chips.mjs +51 -0
- package/fesm2022/acorex-components-chips.mjs.map +1 -0
- package/fesm2022/acorex-components-circular-progress.mjs +117 -0
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -0
- package/fesm2022/acorex-components-collapse.mjs +296 -0
- package/fesm2022/acorex-components-collapse.mjs.map +1 -0
- package/fesm2022/acorex-components-color-box.mjs +104 -0
- package/fesm2022/acorex-components-color-box.mjs.map +1 -0
- package/fesm2022/acorex-components-color-palette.mjs +800 -0
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -0
- package/fesm2022/acorex-components-common.mjs +1737 -0
- package/fesm2022/acorex-components-common.mjs.map +1 -0
- package/fesm2022/acorex-components-data-pager.mjs +758 -0
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -0
- package/fesm2022/acorex-components-data-table.mjs +1143 -0
- package/fesm2022/acorex-components-data-table.mjs.map +1 -0
- package/fesm2022/acorex-components-datetime-box.mjs +147 -0
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -0
- package/fesm2022/acorex-components-datetime-input.mjs +578 -0
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -0
- package/fesm2022/acorex-components-datetime-picker.mjs +328 -0
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -0
- package/fesm2022/acorex-components-decorators.mjs +210 -0
- package/fesm2022/acorex-components-decorators.mjs.map +1 -0
- package/fesm2022/acorex-components-dialog.mjs +271 -0
- package/fesm2022/acorex-components-dialog.mjs.map +1 -0
- package/fesm2022/acorex-components-drawer.mjs +206 -0
- package/fesm2022/acorex-components-drawer.mjs.map +1 -0
- package/fesm2022/acorex-components-dropdown-button.mjs +145 -0
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -0
- package/fesm2022/acorex-components-dropdown.mjs +319 -0
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -0
- package/fesm2022/acorex-components-form.mjs +394 -0
- package/fesm2022/acorex-components-form.mjs.map +1 -0
- package/fesm2022/acorex-components-image.mjs +95 -0
- package/fesm2022/acorex-components-image.mjs.map +1 -0
- package/fesm2022/acorex-components-label.mjs +72 -0
- package/fesm2022/acorex-components-label.mjs.map +1 -0
- package/fesm2022/acorex-components-list.mjs +210 -0
- package/fesm2022/acorex-components-list.mjs.map +1 -0
- package/fesm2022/acorex-components-loading-dialog.mjs +144 -0
- package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -0
- package/fesm2022/acorex-components-loading.mjs +313 -0
- package/fesm2022/acorex-components-loading.mjs.map +1 -0
- package/fesm2022/acorex-components-menu.mjs +224 -0
- package/fesm2022/acorex-components-menu.mjs.map +1 -0
- package/fesm2022/acorex-components-nav.mjs +75 -0
- package/fesm2022/acorex-components-nav.mjs.map +1 -0
- package/fesm2022/acorex-components-navbar.mjs +40 -0
- package/fesm2022/acorex-components-navbar.mjs.map +1 -0
- package/fesm2022/acorex-components-notification.mjs +264 -0
- package/fesm2022/acorex-components-notification.mjs.map +1 -0
- package/fesm2022/acorex-components-number-box.mjs +331 -0
- package/fesm2022/acorex-components-number-box.mjs.map +1 -0
- package/fesm2022/acorex-components-otp.mjs +186 -0
- package/fesm2022/acorex-components-otp.mjs.map +1 -0
- package/fesm2022/acorex-components-page.mjs +125 -0
- package/fesm2022/acorex-components-page.mjs.map +1 -0
- package/fesm2022/acorex-components-password-box.mjs +121 -0
- package/fesm2022/acorex-components-password-box.mjs.map +1 -0
- package/fesm2022/acorex-components-phone-box.mjs +182 -0
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -0
- package/fesm2022/acorex-components-picker.mjs +251 -0
- package/fesm2022/acorex-components-picker.mjs.map +1 -0
- package/fesm2022/acorex-components-popover.mjs +402 -0
- package/fesm2022/acorex-components-popover.mjs.map +1 -0
- package/fesm2022/acorex-components-popup.mjs +256 -0
- package/fesm2022/acorex-components-popup.mjs.map +1 -0
- package/fesm2022/acorex-components-progress-bar.mjs +80 -0
- package/fesm2022/acorex-components-progress-bar.mjs.map +1 -0
- package/fesm2022/acorex-components-radio.mjs +87 -0
- package/fesm2022/acorex-components-radio.mjs.map +1 -0
- package/fesm2022/acorex-components-range-slider.mjs +142 -0
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -0
- package/fesm2022/acorex-components-result.mjs +50 -0
- package/fesm2022/acorex-components-result.mjs.map +1 -0
- package/fesm2022/acorex-components-routing-progress.mjs +82 -0
- package/fesm2022/acorex-components-routing-progress.mjs.map +1 -0
- package/fesm2022/acorex-components-scheduler.mjs +142 -0
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -0
- package/fesm2022/acorex-components-scss.mjs +22 -0
- package/fesm2022/acorex-components-scss.mjs.map +1 -0
- package/fesm2022/acorex-components-search-box.mjs +135 -0
- package/fesm2022/acorex-components-search-box.mjs.map +1 -0
- package/fesm2022/acorex-components-select-box.mjs +368 -0
- package/fesm2022/acorex-components-select-box.mjs.map +1 -0
- package/fesm2022/acorex-components-selection-list.mjs +179 -0
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -0
- package/fesm2022/acorex-components-side-menu.mjs +183 -0
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -0
- package/fesm2022/acorex-components-skeleton.mjs +46 -0
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -0
- package/fesm2022/acorex-components-step-wizard.mjs +224 -0
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -0
- package/fesm2022/acorex-components-switch.mjs +86 -0
- package/fesm2022/acorex-components-switch.mjs.map +1 -0
- package/fesm2022/acorex-components-tabs.mjs +271 -0
- package/fesm2022/acorex-components-tabs.mjs.map +1 -0
- package/fesm2022/acorex-components-tag.mjs +43 -0
- package/fesm2022/acorex-components-tag.mjs.map +1 -0
- package/fesm2022/acorex-components-text-area.mjs +87 -0
- package/fesm2022/acorex-components-text-area.mjs.map +1 -0
- package/fesm2022/acorex-components-text-box.mjs +184 -0
- package/fesm2022/acorex-components-text-box.mjs.map +1 -0
- package/fesm2022/acorex-components-toast.mjs +280 -0
- package/fesm2022/acorex-components-toast.mjs.map +1 -0
- package/fesm2022/acorex-components-tooltip.mjs +117 -0
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -0
- package/fesm2022/acorex-components-uploader.mjs +399 -0
- package/fesm2022/acorex-components-uploader.mjs.map +1 -0
- package/fesm2022/acorex-components.mjs +2 -17392
- package/fesm2022/acorex-components.mjs.map +1 -1
- package/form/README.md +3 -0
- package/form/index.d.ts +6 -0
- package/form/lib/form-field.component.d.ts +12 -0
- package/form/lib/form.component.d.ts +42 -0
- package/form/lib/form.config.d.ts +7 -0
- package/form/lib/form.module.d.ts +16 -0
- package/form/lib/validation-rule.directive.d.ts +16 -0
- package/form/lib/validation-summary.component.d.ts +25 -0
- package/image/README.md +3 -0
- package/image/index.d.ts +2 -0
- package/image/lib/image.component.d.ts +21 -0
- package/image/lib/image.module.d.ts +8 -0
- package/index.d.ts +1 -155
- package/label/README.md +3 -0
- package/label/index.d.ts +2 -0
- package/label/lib/label.component.d.ts +14 -0
- package/list/README.md +3 -0
- package/list/index.d.ts +2 -0
- package/list/lib/list.component.d.ts +39 -0
- package/list/lib/list.module.d.ts +10 -0
- package/loading/README.md +3 -0
- package/loading/index.d.ts +6 -0
- package/loading/lib/loading-spinner.component.d.ts +10 -0
- package/loading/lib/loading.component.d.ts +18 -0
- package/loading/lib/loading.config.d.ts +8 -0
- package/loading/lib/loading.directive.d.ts +15 -0
- package/loading/lib/loading.module.d.ts +13 -0
- package/loading/lib/loading.service.d.ts +29 -0
- package/loading-dialog/README.md +3 -0
- package/loading-dialog/index.d.ts +4 -0
- package/loading-dialog/lib/loading-dialog.class.d.ts +35 -0
- package/loading-dialog/lib/loading-dialog.component.d.ts +25 -0
- package/loading-dialog/lib/loading-dialog.module.d.ts +14 -0
- package/loading-dialog/lib/loading-dialog.service.d.ts +8 -0
- package/menu/README.md +3 -0
- package/menu/index.d.ts +4 -0
- package/menu/lib/class/root-menu.class.d.ts +6 -0
- package/menu/lib/menu-item/menu-item.component.d.ts +37 -0
- package/menu/lib/menu.component.d.ts +14 -0
- package/menu/lib/menu.module.d.ts +14 -0
- package/nav/README.md +3 -0
- package/nav/index.d.ts +3 -0
- package/nav/lib/nav-item/nav-item.component.d.ts +15 -0
- package/nav/lib/nav.component.d.ts +6 -0
- package/nav/lib/nav.module.d.ts +10 -0
- package/navbar/README.md +3 -0
- package/navbar/index.d.ts +2 -0
- package/navbar/lib/navbar.component.d.ts +7 -0
- package/navbar/lib/navbar.module.d.ts +8 -0
- package/notification/README.md +3 -0
- package/notification/index.d.ts +5 -0
- package/notification/lib/notification.class.d.ts +40 -0
- package/notification/lib/notification.component.d.ts +29 -0
- package/notification/lib/notification.config.d.ts +13 -0
- package/notification/lib/notification.module.d.ts +14 -0
- package/notification/lib/notification.service.d.ts +12 -0
- package/number-box/README.md +3 -0
- package/number-box/index.d.ts +2 -0
- package/number-box/lib/number-box.component.d.ts +80 -0
- package/number-box/lib/number-box.module.d.ts +12 -0
- package/otp/README.md +3 -0
- package/otp/index.d.ts +3 -0
- package/otp/lib/otp.class.d.ts +5 -0
- package/otp/lib/otp.component.d.ts +31 -0
- package/otp/lib/otp.module.d.ts +9 -0
- package/package.json +403 -6
- package/page/README.md +3 -0
- package/page/index.d.ts +3 -0
- package/page/lib/base-page.class.d.ts +22 -0
- package/page/lib/page.component.d.ts +14 -0
- package/page/lib/page.module.d.ts +6 -0
- package/password-box/README.md +3 -0
- package/password-box/index.d.ts +2 -0
- package/password-box/lib/password-box.component.d.ts +29 -0
- package/password-box/lib/password-box.module.d.ts +11 -0
- package/phone-box/README.md +3 -0
- package/phone-box/index.d.ts +2 -0
- package/phone-box/lib/phone-box.component.d.ts +30 -0
- package/phone-box/lib/phone-box.module.d.ts +15 -0
- package/picker/README.md +3 -0
- package/picker/index.d.ts +3 -0
- package/picker/lib/picker-column.directive.d.ts +16 -0
- package/picker/lib/picker.component.d.ts +31 -0
- package/picker/lib/picker.module.d.ts +9 -0
- package/popover/README.md +3 -0
- package/popover/index.d.ts +2 -0
- package/popover/lib/popover.component.d.ts +72 -0
- package/popup/README.md +3 -0
- package/popup/index.d.ts +4 -0
- package/popup/lib/popup.component.d.ts +40 -0
- package/popup/lib/popup.interface.d.ts +28 -0
- package/popup/lib/popup.module.d.ts +15 -0
- package/popup/lib/popup.service.d.ts +21 -0
- package/progress-bar/README.md +3 -0
- package/progress-bar/index.d.ts +2 -0
- package/progress-bar/lib/progress-bar.component.d.ts +25 -0
- package/radio/README.md +3 -0
- package/radio/index.d.ts +2 -0
- package/radio/lib/radio.component.d.ts +16 -0
- package/radio/lib/radio.module.d.ts +9 -0
- package/range-slider/README.md +3 -0
- package/range-slider/index.d.ts +2 -0
- package/range-slider/lib/range-slider.component.d.ts +40 -0
- package/range-slider/lib/range-slider.module.d.ts +10 -0
- package/result/README.md +3 -0
- package/result/index.d.ts +2 -0
- package/result/lib/result.component.d.ts +10 -0
- package/result/lib/result.module.d.ts +8 -0
- package/routing-progress/README.md +3 -0
- package/routing-progress/index.d.ts +2 -0
- package/routing-progress/lib/routing-progress.component.d.ts +14 -0
- package/routing-progress/lib/routing-progress.module.d.ts +8 -0
- package/scheduler/README.md +3 -0
- package/scheduler/index.d.ts +4 -0
- package/scheduler/lib/scheduler-month-view.component.d.ts +21 -0
- package/scheduler/lib/scheduler-week-view.component.d.ts +6 -0
- package/scheduler/lib/scheduler.component.d.ts +17 -0
- package/scheduler/lib/scheduler.module.d.ts +14 -0
- package/scss/README.md +3 -0
- package/scss/index.d.ts +1 -0
- package/scss/lib/scss.module.d.ts +7 -0
- package/search-box/README.md +3 -0
- package/search-box/index.d.ts +2 -0
- package/search-box/lib/search-box.component.d.ts +17 -0
- package/search-box/lib/search-box.module.d.ts +14 -0
- package/select-box/README.md +3 -0
- package/select-box/index.d.ts +2 -0
- package/select-box/lib/select-box.component.d.ts +60 -0
- package/select-box/lib/select-box.module.d.ts +20 -0
- package/selection-list/README.md +3 -0
- package/selection-list/index.d.ts +2 -0
- package/selection-list/lib/selection-list.component.d.ts +30 -0
- package/selection-list/lib/selection-list.module.d.ts +13 -0
- package/side-menu/README.md +3 -0
- package/side-menu/index.d.ts +3 -0
- package/side-menu/lib/side-menu-item/side-menu-item.compoent.d.ts +48 -0
- package/side-menu/lib/side-menu.component.d.ts +6 -0
- package/side-menu/lib/side-menu.module.d.ts +12 -0
- package/skeleton/README.md +3 -0
- package/skeleton/index.d.ts +2 -0
- package/skeleton/lib/skeleton.component.d.ts +8 -0
- package/skeleton/lib/skeleton.module.d.ts +8 -0
- package/step-wizard/README.md +3 -0
- package/step-wizard/index.d.ts +5 -0
- package/step-wizard/lib/step-wizard-item/step-wizard-item.component.d.ts +23 -0
- package/step-wizard/lib/step-wizard.class.d.ts +5 -0
- package/step-wizard/lib/step-wizard.component.d.ts +28 -0
- package/step-wizard/lib/step-wizard.directive.d.ts +11 -0
- package/step-wizard/lib/step-wizard.module.d.ts +12 -0
- package/switch/README.md +3 -0
- package/switch/index.d.ts +3 -0
- package/switch/lib/switch-content.component.d.ts +6 -0
- package/switch/lib/switch.component.d.ts +15 -0
- package/switch/lib/switch.module.d.ts +10 -0
- package/tabs/README.md +3 -0
- package/tabs/index.d.ts +5 -0
- package/tabs/lib/tab-content.directive.d.ts +11 -0
- package/tabs/lib/tab-item.component.d.ts +18 -0
- package/tabs/lib/tabs.class.d.ts +8 -0
- package/tabs/lib/tabs.component.d.ts +27 -0
- package/tabs/lib/tabs.module.d.ts +12 -0
- package/tag/README.md +3 -0
- package/tag/index.d.ts +2 -0
- package/tag/lib/tag.component.d.ts +8 -0
- package/tag/lib/tag.module.d.ts +8 -0
- package/text-area/README.md +3 -0
- package/text-area/index.d.ts +2 -0
- package/text-area/lib/text-area.component.d.ts +19 -0
- package/text-area/lib/text-area.module.d.ts +9 -0
- package/text-box/README.md +3 -0
- package/text-box/index.d.ts +3 -0
- package/text-box/lib/mask-options.directive.d.ts +13 -0
- package/text-box/lib/text-box.component.d.ts +33 -0
- package/text-box/lib/text-box.module.d.ts +13 -0
- package/toast/README.md +3 -0
- package/toast/index.d.ts +5 -0
- package/toast/lib/toast.class.d.ts +24 -0
- package/toast/lib/toast.component.d.ts +27 -0
- package/toast/lib/toast.config.d.ts +12 -0
- package/toast/lib/toast.module.d.ts +13 -0
- package/toast/lib/toast.service.d.ts +21 -0
- package/tooltip/README.md +3 -0
- package/tooltip/index.d.ts +3 -0
- package/tooltip/lib/tooltip.component.d.ts +8 -0
- package/tooltip/lib/tooltip.directive.d.ts +22 -0
- package/tooltip/lib/tooltip.module.d.ts +10 -0
- package/uploader/README.md +3 -0
- package/uploader/index.d.ts +7 -0
- package/uploader/lib/uploader-browse-handle.directive.d.ts +11 -0
- package/uploader/lib/uploader-dialog-container.component.d.ts +9 -0
- package/uploader/lib/uploader-drop-zone.component.d.ts +6 -0
- package/uploader/lib/uploader-list.component.d.ts +8 -0
- package/uploader/lib/uploader-zone.directive.d.ts +24 -0
- package/uploader/lib/uploader.models.d.ts +19 -0
- package/uploader/lib/uploader.module.d.ts +22 -0
- package/uploader/lib/uploader.service.d.ts +21 -0
- package/esm2022/lib/accordion/accordion.component.mjs +0 -45
- package/esm2022/lib/accordion/accordion.module.mjs +0 -20
- package/esm2022/lib/base/base-page.class.mjs +0 -97
- package/esm2022/lib/base/components.class.mjs +0 -17
- package/esm2022/lib/base/element.class.mjs +0 -301
- package/esm2022/lib/base/events.class.mjs +0 -17
- package/esm2022/lib/button/button.component.mjs +0 -74
- package/esm2022/lib/button/button.module.mjs +0 -21
- package/esm2022/lib/calendar/calendar-box/calendar-box.component.mjs +0 -426
- package/esm2022/lib/calendar/calendar-box/calendar-box.module.mjs +0 -22
- package/esm2022/lib/calendar/scheduler/scheduler-views.property.mjs +0 -59
- package/esm2022/lib/calendar/scheduler/scheduler.class.mjs +0 -16
- package/esm2022/lib/calendar/scheduler/scheduler.component.mjs +0 -226
- package/esm2022/lib/calendar/scheduler/scheduler.module.mjs +0 -68
- package/esm2022/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.mjs +0 -136
- package/esm2022/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.mjs +0 -37
- package/esm2022/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.mjs +0 -49
- package/esm2022/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.mjs +0 -102
- package/esm2022/lib/calendar/scheduler/views/month/scheduler-month-view.component.mjs +0 -214
- package/esm2022/lib/calendar/scheduler/views/scheduler-view.component.mjs +0 -99
- package/esm2022/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.mjs +0 -85
- package/esm2022/lib/checkbox/checkbox.component.mjs +0 -109
- package/esm2022/lib/checkbox/checkbox.module.mjs +0 -20
- package/esm2022/lib/color-picker/color-box/color-box.component.mjs +0 -423
- package/esm2022/lib/color-picker/color-picker.component.mjs +0 -89
- package/esm2022/lib/color-picker/color-picker.module.mjs +0 -24
- package/esm2022/lib/context-menu/context-menu.component.mjs +0 -68
- package/esm2022/lib/context-menu/context-menu.directive.mjs +0 -146
- package/esm2022/lib/context-menu/context-menu.module.mjs +0 -20
- package/esm2022/lib/data-filter/columns/filter-column-date.component.mjs +0 -140
- package/esm2022/lib/data-filter/columns/filter-column-number.component.mjs +0 -119
- package/esm2022/lib/data-filter/columns/filter-column-selection.component.mjs +0 -75
- package/esm2022/lib/data-filter/columns/filter-column-string.component.mjs +0 -119
- package/esm2022/lib/data-filter/filter-panel/filter-panel.component.mjs +0 -267
- package/esm2022/lib/data-filter/filter.class.mjs +0 -46
- package/esm2022/lib/data-filter/filter.module.mjs +0 -88
- package/esm2022/lib/data-filter/toolbar/filter-toolbar.component.mjs +0 -168
- package/esm2022/lib/data-list/core/data-list.component.mjs +0 -37
- package/esm2022/lib/data-list/list/list.component.mjs +0 -134
- package/esm2022/lib/data-list/list/list.module.mjs +0 -22
- package/esm2022/lib/data-list/list/toolbar-list-view.component.mjs +0 -84
- package/esm2022/lib/data-source/datasource.component.mjs +0 -47
- package/esm2022/lib/data-source/datasource.module.mjs +0 -18
- package/esm2022/lib/data-source/read-param.mjs +0 -7
- package/esm2022/lib/date-picker/date-picker.component.mjs +0 -1102
- package/esm2022/lib/date-picker/date-picker.module.mjs +0 -49
- package/esm2022/lib/dialog/dialog.component.mjs +0 -26
- package/esm2022/lib/dialog/dialog.module.mjs +0 -21
- package/esm2022/lib/dialog/dialog.service.mjs +0 -160
- package/esm2022/lib/drawer/content.component.mjs +0 -18
- package/esm2022/lib/drawer/drawer-container.component.mjs +0 -38
- package/esm2022/lib/drawer/drawer.component.mjs +0 -146
- package/esm2022/lib/drawer/drawer.module.mjs +0 -23
- package/esm2022/lib/dropdown/dropdown.component.mjs +0 -186
- package/esm2022/lib/dropdown/dropdown.module.mjs +0 -26
- package/esm2022/lib/fieldset/fieldset.component.mjs +0 -57
- package/esm2022/lib/fieldset/fieldset.module.mjs +0 -19
- package/esm2022/lib/form-group/form-group.component.mjs +0 -37
- package/esm2022/lib/form-group/form-group.module.mjs +0 -21
- package/esm2022/lib/label/label.component.mjs +0 -19
- package/esm2022/lib/label/label.module.mjs +0 -21
- package/esm2022/lib/loading/loading-indicator.component.mjs +0 -18
- package/esm2022/lib/loading/loading-panel.component.mjs +0 -45
- package/esm2022/lib/loading/loading.module.mjs +0 -21
- package/esm2022/lib/loading/loading.service.mjs +0 -47
- package/esm2022/lib/menu/menu-item.component.mjs +0 -50
- package/esm2022/lib/menu/menu.component.mjs +0 -98
- package/esm2022/lib/menu/menu.module.mjs +0 -22
- package/esm2022/lib/menu/menu2.component.mjs +0 -100
- package/esm2022/lib/number-box/number-box.component.mjs +0 -628
- package/esm2022/lib/number-box/number-box.module.mjs +0 -21
- package/esm2022/lib/page/content.component.mjs +0 -27
- package/esm2022/lib/page/footer.component.mjs +0 -19
- package/esm2022/lib/page/page.component.mjs +0 -57
- package/esm2022/lib/page/page.module.mjs +0 -22
- package/esm2022/lib/panel-box/panel-box.component.mjs +0 -87
- package/esm2022/lib/panel-box/panel-box.module.mjs +0 -19
- package/esm2022/lib/password-box/password-box.component.mjs +0 -32
- package/esm2022/lib/password-box/password-box.module.mjs +0 -23
- package/esm2022/lib/popover/custom-cdk-overlay.service.mjs +0 -50
- package/esm2022/lib/popover/overlay.service.mjs +0 -94
- package/esm2022/lib/popover/popover.component.mjs +0 -145
- package/esm2022/lib/popover/popover.module.mjs +0 -19
- package/esm2022/lib/popup/popup.component.mjs +0 -160
- package/esm2022/lib/popup/popup.module.mjs +0 -25
- package/esm2022/lib/popup/popup.service.mjs +0 -94
- package/esm2022/lib/progress-bar/progress-bar.component.mjs +0 -16
- package/esm2022/lib/progress-bar/progress-bar.module.mjs +0 -19
- package/esm2022/lib/property-editor/editors/check-editor/check-editor.mjs +0 -65
- package/esm2022/lib/property-editor/editors/check-editor/check.module.mjs +0 -22
- package/esm2022/lib/property-editor/editors/color-editor/color.editor.mjs +0 -41
- package/esm2022/lib/property-editor/editors/color-editor/color.module.mjs +0 -24
- package/esm2022/lib/property-editor/editors/column-editor/column.editor.mjs +0 -118
- package/esm2022/lib/property-editor/editors/column-editor/column.module.mjs +0 -32
- package/esm2022/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.mjs +0 -216
- package/esm2022/lib/property-editor/editors/conditional-color-editor/conditional-color.module.mjs +0 -76
- package/esm2022/lib/property-editor/editors/date-editor/date.editor.mjs +0 -87
- package/esm2022/lib/property-editor/editors/date-editor/date.module.mjs +0 -24
- package/esm2022/lib/property-editor/editors/number-editor/number.editor.mjs +0 -72
- package/esm2022/lib/property-editor/editors/number-editor/number.module.mjs +0 -24
- package/esm2022/lib/property-editor/editors/range-editor/range.editor.mjs +0 -145
- package/esm2022/lib/property-editor/editors/range-editor/range.module.mjs +0 -59
- package/esm2022/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.mjs +0 -76
- package/esm2022/lib/property-editor/editors/selectbox-editor/selectbox.editor.mjs +0 -75
- package/esm2022/lib/property-editor/editors/selectbox-editor/selectbox.module.mjs +0 -25
- package/esm2022/lib/property-editor/editors/selection-editor/selection-editor.mjs +0 -73
- package/esm2022/lib/property-editor/editors/selection-editor/selection.module.mjs +0 -22
- package/esm2022/lib/property-editor/editors/switch-editor/number.editor.mjs +0 -30
- package/esm2022/lib/property-editor/editors/switch-editor/number.module.mjs +0 -25
- package/esm2022/lib/property-editor/editors/text-editor/text.editor.mjs +0 -36
- package/esm2022/lib/property-editor/editors/text-editor/text.module.mjs +0 -24
- package/esm2022/lib/property-editor/editors/textarea-editor/textarea.editor.mjs +0 -35
- package/esm2022/lib/property-editor/editors/textarea-editor/textarea.module.mjs +0 -24
- package/esm2022/lib/property-editor/editors/time-editor/time.editor.mjs +0 -55
- package/esm2022/lib/property-editor/editors/time-editor/time.module.mjs +0 -24
- package/esm2022/lib/property-editor/property-editor-renderer.directive.mjs +0 -167
- package/esm2022/lib/property-editor/property-editor.class.mjs +0 -108
- package/esm2022/lib/property-editor/property-editor.module.mjs +0 -194
- package/esm2022/lib/query-builder/query-builder-group.component.mjs +0 -129
- package/esm2022/lib/query-builder/query-builder-popup/query-builder-popup.component.mjs +0 -177
- package/esm2022/lib/query-builder/query-builder-rule.component.mjs +0 -428
- package/esm2022/lib/query-builder/query-builder.class.mjs +0 -42
- package/esm2022/lib/query-builder/query-builder.component.mjs +0 -92
- package/esm2022/lib/query-builder/query-builder.module.mjs +0 -62
- package/esm2022/lib/query-builder/query-builder.service.mjs +0 -199
- package/esm2022/lib/search-bar/search-bar.component.mjs +0 -293
- package/esm2022/lib/search-bar/search-bar.module.mjs +0 -61
- package/esm2022/lib/searchbox/searchbox.component.mjs +0 -106
- package/esm2022/lib/searchbox/searchbox.module.mjs +0 -24
- package/esm2022/lib/selectbox/selectbox.component.mjs +0 -1135
- package/esm2022/lib/selectbox/selectbox.module.mjs +0 -44
- package/esm2022/lib/selectbox/selectbox2.component.mjs +0 -617
- package/esm2022/lib/selection-list/selection-list.component.mjs +0 -113
- package/esm2022/lib/selection-list/selection-list.module.mjs +0 -21
- package/esm2022/lib/switch/switch.component.mjs +0 -55
- package/esm2022/lib/switch/switch.module.mjs +0 -20
- package/esm2022/lib/tab-page/tab-page-Renderer.component.mjs +0 -75
- package/esm2022/lib/tab-page/tab-page-host.component.mjs +0 -124
- package/esm2022/lib/tab-page/tab-page.module.mjs +0 -21
- package/esm2022/lib/tab-page/tab-page.service.mjs +0 -159
- package/esm2022/lib/tab-strip/tab-strip.component.mjs +0 -38
- package/esm2022/lib/tab-strip/tab-strip.module.mjs +0 -19
- package/esm2022/lib/tab-view/dynamic-tabs.directive.mjs +0 -25
- package/esm2022/lib/tab-view/tab-view.component.mjs +0 -110
- package/esm2022/lib/tab-view/tab-view.module.mjs +0 -21
- package/esm2022/lib/tab-view/tab.component.mjs +0 -33
- package/esm2022/lib/textarea/textarea.component.mjs +0 -27
- package/esm2022/lib/textarea/textarea.module.mjs +0 -21
- package/esm2022/lib/textbox/textbox.component.mjs +0 -42
- package/esm2022/lib/textbox/textbox.module.mjs +0 -36
- package/esm2022/lib/time-picker/time-picker.component.mjs +0 -1107
- package/esm2022/lib/time-picker/time-picker.module.mjs +0 -34
- package/esm2022/lib/toast/toast-message/toast-message.component.mjs +0 -76
- package/esm2022/lib/toast/toast-wrapper/toast-wrapper.component.mjs +0 -13
- package/esm2022/lib/toast/toast.module.mjs +0 -21
- package/esm2022/lib/toast/toast.service.mjs +0 -45
- package/esm2022/lib/toolbar/group-button/toolbar-group-button.component.mjs +0 -77
- package/esm2022/lib/toolbar/menu/toolbar-menu.component.mjs +0 -62
- package/esm2022/lib/toolbar/search/toolbar-search.component.mjs +0 -56
- package/esm2022/lib/toolbar/title/toolbar-title.component.mjs +0 -37
- package/esm2022/lib/toolbar/toolbar-item.mjs +0 -4
- package/esm2022/lib/toolbar/toolbar.component.mjs +0 -13
- package/esm2022/lib/toolbar/toolbar.module.mjs +0 -40
- package/esm2022/lib/tooltip/tooltip.directive.mjs +0 -104
- package/esm2022/lib/tooltip/tooltip.module.mjs +0 -19
- package/esm2022/lib/tree-side-menu/tree-side-menu.component.mjs +0 -697
- package/esm2022/lib/tree-side-menu/tree-side-menu.module.mjs +0 -33
- package/esm2022/lib/tree-view/tree-view.component.mjs +0 -854
- package/esm2022/lib/tree-view/tree-view.module.mjs +0 -22
- package/esm2022/lib/upload-file/upload-file.component.mjs +0 -226
- package/esm2022/lib/upload-file/upload-file.events.mjs +0 -2
- package/esm2022/lib/upload-file/upload-file.module.mjs +0 -24
- package/esm2022/lib/validation/validation-form.component.mjs +0 -68
- package/esm2022/lib/validation/validation-rule.widget.mjs +0 -114
- package/esm2022/lib/validation/validation.class.mjs +0 -2
- package/esm2022/lib/validation/validation.component.mjs +0 -89
- package/esm2022/lib/validation/validation.module.mjs +0 -34
- package/lib/accordion/accordion.component.d.ts +0 -13
- package/lib/accordion/accordion.module.d.ts +0 -9
- package/lib/base/base-page.class.d.ts +0 -46
- package/lib/base/components.class.d.ts +0 -10
- package/lib/base/element.class.d.ts +0 -106
- package/lib/base/events.class.d.ts +0 -18
- package/lib/button/button.component.d.ts +0 -21
- package/lib/button/button.module.d.ts +0 -8
- package/lib/calendar/calendar-box/calendar-box.component.d.ts +0 -81
- package/lib/calendar/calendar-box/calendar-box.module.d.ts +0 -11
- package/lib/calendar/scheduler/scheduler-views.property.d.ts +0 -19
- package/lib/calendar/scheduler/scheduler.class.d.ts +0 -36
- package/lib/calendar/scheduler/scheduler.component.d.ts +0 -39
- package/lib/calendar/scheduler/scheduler.module.d.ts +0 -21
- package/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.d.ts +0 -25
- package/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.d.ts +0 -14
- package/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.d.ts +0 -16
- package/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.d.ts +0 -26
- package/lib/calendar/scheduler/views/month/scheduler-month-view.component.d.ts +0 -37
- package/lib/calendar/scheduler/views/scheduler-view.component.d.ts +0 -28
- package/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.d.ts +0 -24
- package/lib/checkbox/checkbox.component.d.ts +0 -30
- package/lib/checkbox/checkbox.module.d.ts +0 -9
- package/lib/color-picker/color-box/color-box.component.d.ts +0 -25
- package/lib/color-picker/color-picker.component.d.ts +0 -30
- package/lib/color-picker/color-picker.module.d.ts +0 -13
- package/lib/context-menu/context-menu.component.d.ts +0 -22
- package/lib/context-menu/context-menu.directive.d.ts +0 -38
- package/lib/context-menu/context-menu.module.d.ts +0 -9
- package/lib/data-filter/columns/filter-column-date.component.d.ts +0 -22
- package/lib/data-filter/columns/filter-column-number.component.d.ts +0 -15
- package/lib/data-filter/columns/filter-column-selection.component.d.ts +0 -18
- package/lib/data-filter/columns/filter-column-string.component.d.ts +0 -15
- package/lib/data-filter/filter-panel/filter-panel.component.d.ts +0 -45
- package/lib/data-filter/filter.class.d.ts +0 -40
- package/lib/data-filter/filter.module.d.ts +0 -24
- package/lib/data-filter/toolbar/filter-toolbar.component.d.ts +0 -25
- package/lib/data-list/core/data-list.component.d.ts +0 -15
- package/lib/data-list/list/list.component.d.ts +0 -40
- package/lib/data-list/list/list.module.d.ts +0 -11
- package/lib/data-list/list/toolbar-list-view.component.d.ts +0 -17
- package/lib/data-source/datasource.component.d.ts +0 -16
- package/lib/data-source/datasource.module.d.ts +0 -7
- package/lib/data-source/read-param.d.ts +0 -40
- package/lib/date-picker/date-picker.component.d.ts +0 -84
- package/lib/date-picker/date-picker.module.d.ts +0 -14
- package/lib/dialog/dialog.component.d.ts +0 -14
- package/lib/dialog/dialog.module.d.ts +0 -10
- package/lib/dialog/dialog.service.d.ts +0 -36
- package/lib/drawer/content.component.d.ts +0 -7
- package/lib/drawer/drawer-container.component.d.ts +0 -10
- package/lib/drawer/drawer.component.d.ts +0 -34
- package/lib/drawer/drawer.module.d.ts +0 -10
- package/lib/dropdown/dropdown.component.d.ts +0 -38
- package/lib/dropdown/dropdown.module.d.ts +0 -13
- package/lib/fieldset/fieldset.component.d.ts +0 -11
- package/lib/fieldset/fieldset.module.d.ts +0 -8
- package/lib/form-group/form-group.component.d.ts +0 -14
- package/lib/form-group/form-group.module.d.ts +0 -8
- package/lib/label/label.component.d.ts +0 -9
- package/lib/loading/loading-indicator.component.d.ts +0 -9
- package/lib/loading/loading-panel.component.d.ts +0 -13
- package/lib/loading/loading.module.d.ts +0 -10
- package/lib/loading/loading.service.d.ts +0 -13
- package/lib/menu/menu-item.component.d.ts +0 -18
- package/lib/menu/menu.component.d.ts +0 -35
- package/lib/menu/menu.module.d.ts +0 -11
- package/lib/menu/menu2.component.d.ts +0 -21
- package/lib/number-box/number-box.component.d.ts +0 -52
- package/lib/number-box/number-box.module.d.ts +0 -10
- package/lib/page/content.component.d.ts +0 -8
- package/lib/page/footer.component.d.ts +0 -5
- package/lib/page/page.component.d.ts +0 -16
- package/lib/page/page.module.d.ts +0 -11
- package/lib/panel-box/panel-box.component.d.ts +0 -19
- package/lib/panel-box/panel-box.module.d.ts +0 -8
- package/lib/password-box/password-box.component.d.ts +0 -12
- package/lib/password-box/password-box.module.d.ts +0 -10
- package/lib/popover/custom-cdk-overlay.service.d.ts +0 -19
- package/lib/popover/overlay.service.d.ts +0 -32
- package/lib/popover/popover.component.d.ts +0 -35
- package/lib/popup/popup.component.d.ts +0 -40
- package/lib/popup/popup.module.d.ts +0 -13
- package/lib/popup/popup.service.d.ts +0 -22
- package/lib/progress-bar/progress-bar.component.d.ts +0 -7
- package/lib/property-editor/editors/check-editor/check-editor.d.ts +0 -19
- package/lib/property-editor/editors/check-editor/check.module.d.ts +0 -11
- package/lib/property-editor/editors/color-editor/color.editor.d.ts +0 -13
- package/lib/property-editor/editors/color-editor/color.module.d.ts +0 -12
- package/lib/property-editor/editors/column-editor/column.editor.d.ts +0 -34
- package/lib/property-editor/editors/column-editor/column.module.d.ts +0 -20
- package/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.d.ts +0 -44
- package/lib/property-editor/editors/conditional-color-editor/conditional-color.module.d.ts +0 -19
- package/lib/property-editor/editors/date-editor/date.editor.d.ts +0 -28
- package/lib/property-editor/editors/date-editor/date.module.d.ts +0 -12
- package/lib/property-editor/editors/number-editor/number.editor.d.ts +0 -22
- package/lib/property-editor/editors/number-editor/number.module.d.ts +0 -12
- package/lib/property-editor/editors/range-editor/range.editor.d.ts +0 -29
- package/lib/property-editor/editors/range-editor/range.module.d.ts +0 -18
- package/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.d.ts +0 -29
- package/lib/property-editor/editors/selectbox-editor/selectbox.editor.d.ts +0 -28
- package/lib/property-editor/editors/selectbox-editor/selectbox.module.d.ts +0 -14
- package/lib/property-editor/editors/selection-editor/selection-editor.d.ts +0 -25
- package/lib/property-editor/editors/selection-editor/selection.module.d.ts +0 -11
- package/lib/property-editor/editors/switch-editor/number.editor.d.ts +0 -11
- package/lib/property-editor/editors/switch-editor/number.module.d.ts +0 -13
- package/lib/property-editor/editors/text-editor/text.editor.d.ts +0 -18
- package/lib/property-editor/editors/text-editor/text.module.d.ts +0 -12
- package/lib/property-editor/editors/textarea-editor/textarea.editor.d.ts +0 -17
- package/lib/property-editor/editors/textarea-editor/textarea.module.d.ts +0 -12
- package/lib/property-editor/editors/time-editor/time.editor.d.ts +0 -17
- package/lib/property-editor/editors/time-editor/time.module.d.ts +0 -12
- package/lib/property-editor/property-editor-renderer.directive.d.ts +0 -31
- package/lib/property-editor/property-editor.class.d.ts +0 -93
- package/lib/property-editor/property-editor.module.d.ts +0 -21
- package/lib/query-builder/query-builder-group.component.d.ts +0 -33
- package/lib/query-builder/query-builder-popup/query-builder-popup.component.d.ts +0 -35
- package/lib/query-builder/query-builder-rule.component.d.ts +0 -45
- package/lib/query-builder/query-builder.class.d.ts +0 -45
- package/lib/query-builder/query-builder.component.d.ts +0 -29
- package/lib/query-builder/query-builder.module.d.ts +0 -23
- package/lib/query-builder/query-builder.service.d.ts +0 -18
- package/lib/search-bar/search-bar.component.d.ts +0 -62
- package/lib/search-bar/search-bar.module.d.ts +0 -18
- package/lib/searchbox/searchbox.component.d.ts +0 -23
- package/lib/searchbox/searchbox.module.d.ts +0 -13
- package/lib/selectbox/selectbox.component.d.ts +0 -149
- package/lib/selectbox/selectbox.module.d.ts +0 -15
- package/lib/selectbox/selectbox2.component.d.ts +0 -103
- package/lib/selection-list/selection-list.component.d.ts +0 -32
- package/lib/selection-list/selection-list.module.d.ts +0 -10
- package/lib/switch/switch.component.d.ts +0 -20
- package/lib/switch/switch.module.d.ts +0 -9
- package/lib/tab-page/tab-page-Renderer.component.d.ts +0 -16
- package/lib/tab-page/tab-page-host.component.d.ts +0 -24
- package/lib/tab-page/tab-page.module.d.ts +0 -10
- package/lib/tab-page/tab-page.service.d.ts +0 -30
- package/lib/tab-strip/tab-strip.component.d.ts +0 -28
- package/lib/tab-strip/tab-strip.module.d.ts +0 -8
- package/lib/tab-view/dynamic-tabs.directive.d.ts +0 -16
- package/lib/tab-view/tab-view.component.d.ts +0 -26
- package/lib/tab-view/tab-view.module.d.ts +0 -10
- package/lib/tab-view/tab.component.d.ts +0 -12
- package/lib/textarea/textarea.component.d.ts +0 -12
- package/lib/textarea/textarea.module.d.ts +0 -8
- package/lib/textbox/textbox.component.d.ts +0 -16
- package/lib/textbox/textbox.module.d.ts +0 -11
- package/lib/time-picker/time-picker.component.d.ts +0 -53
- package/lib/time-picker/time-picker.module.d.ts +0 -11
- package/lib/toast/toast-message/toast-message.component.d.ts +0 -18
- package/lib/toast/toast-wrapper/toast-wrapper.component.d.ts +0 -8
- package/lib/toast/toast.module.d.ts +0 -9
- package/lib/toast/toast.service.d.ts +0 -18
- package/lib/toolbar/group-button/toolbar-group-button.component.d.ts +0 -12
- package/lib/toolbar/menu/toolbar-menu.component.d.ts +0 -24
- package/lib/toolbar/search/toolbar-search.component.d.ts +0 -16
- package/lib/toolbar/title/toolbar-title.component.d.ts +0 -9
- package/lib/toolbar/toolbar-item.d.ts +0 -3
- package/lib/toolbar/toolbar.component.d.ts +0 -8
- package/lib/toolbar/toolbar.module.d.ts +0 -14
- package/lib/tooltip/tooltip.directive.d.ts +0 -21
- package/lib/tooltip/tooltip.module.d.ts +0 -8
- package/lib/tree-side-menu/tree-side-menu.component.d.ts +0 -111
- package/lib/tree-side-menu/tree-side-menu.module.d.ts +0 -11
- package/lib/tree-view/tree-view.component.d.ts +0 -121
- package/lib/tree-view/tree-view.module.d.ts +0 -11
- package/lib/upload-file/upload-file.component.d.ts +0 -42
- package/lib/upload-file/upload-file.events.d.ts +0 -10
- package/lib/upload-file/upload-file.module.d.ts +0 -13
- package/lib/validation/validation-form.component.d.ts +0 -19
- package/lib/validation/validation-rule.widget.d.ts +0 -23
- package/lib/validation/validation.class.d.ts +0 -16
- package/lib/validation/validation.component.d.ts +0 -25
- package/lib/validation/validation.module.d.ts +0 -11
- /package/{lib/label → label/lib}/label.module.d.ts +0 -0
- /package/{lib/popover → popover/lib}/popover.module.d.ts +0 -0
- /package/{lib/progress-bar → progress-bar/lib}/progress-bar.module.d.ts +0 -0
|
@@ -0,0 +1,1737 @@
|
|
|
1
|
+
import { flatten, clone, filter, isEqual } from 'lodash-es';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { Injectable, Directive, Host, Self, Optional, Input, Inject, NgModule, inject, ChangeDetectorRef, ElementRef, ViewContainerRef, EventEmitter, InjectionToken, Output } from '@angular/core';
|
|
4
|
+
import { DataSource } from '@angular/cdk/collections';
|
|
5
|
+
import { Subscription, BehaviorSubject, debounceTime, distinctUntilChanged, Subject, fromEvent, noop, skip } from 'rxjs';
|
|
6
|
+
import { DOCUMENT } from '@angular/common';
|
|
7
|
+
import * as i1 from '@angular/platform-browser';
|
|
8
|
+
import { Observable } from 'rxjs/internal/Observable';
|
|
9
|
+
import { map, pairwise, filter as filter$1, startWith, exhaustMap } from 'rxjs/operators';
|
|
10
|
+
import { isBrowser } from '@acorex/core/platform';
|
|
11
|
+
import { classes } from 'polytype';
|
|
12
|
+
import { AXHtmlUtil } from '@acorex/core/utils';
|
|
13
|
+
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
14
|
+
import { AXValidationService } from '@acorex/core/validation';
|
|
15
|
+
import * as i1$1 from '@angular/forms';
|
|
16
|
+
|
|
17
|
+
const defaultOffset = 3;
|
|
18
|
+
function convertToPlacement(value) {
|
|
19
|
+
const result = [];
|
|
20
|
+
if (value == null)
|
|
21
|
+
return result;
|
|
22
|
+
if (Array.isArray(value)) {
|
|
23
|
+
const list = flatten(value.map((m) => convertToPlacement(m)).filter((m) => m != null)).map((m) => clone(m));
|
|
24
|
+
result.push(...list);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
if (typeof value === 'string') {
|
|
28
|
+
const p = AX_PLACEMENT_MAP[value];
|
|
29
|
+
if (p) {
|
|
30
|
+
result.push(...[clone(p.origin), ...clone(p.alts)]);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
if ('originX' in value && 'originY' in value) {
|
|
35
|
+
result.push(clone(value));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
const AX_PLACEMENT_TOP = {
|
|
42
|
+
originX: 'center',
|
|
43
|
+
originY: 'top',
|
|
44
|
+
overlayX: 'center',
|
|
45
|
+
overlayY: 'bottom',
|
|
46
|
+
offsetY: -defaultOffset,
|
|
47
|
+
};
|
|
48
|
+
const AX_PLACEMENT_TOP_START = {
|
|
49
|
+
originX: 'start',
|
|
50
|
+
originY: 'top',
|
|
51
|
+
overlayX: 'start',
|
|
52
|
+
overlayY: 'bottom',
|
|
53
|
+
offsetY: -defaultOffset,
|
|
54
|
+
};
|
|
55
|
+
const AX_PLACEMENT_TOP_END = {
|
|
56
|
+
originX: 'end',
|
|
57
|
+
originY: 'top',
|
|
58
|
+
overlayX: 'start',
|
|
59
|
+
overlayY: 'bottom',
|
|
60
|
+
offsetY: -defaultOffset,
|
|
61
|
+
};
|
|
62
|
+
const AX_PLACEMENT_BOTTOM = {
|
|
63
|
+
originX: 'center',
|
|
64
|
+
originY: 'bottom',
|
|
65
|
+
overlayX: 'center',
|
|
66
|
+
overlayY: 'top',
|
|
67
|
+
offsetY: defaultOffset,
|
|
68
|
+
};
|
|
69
|
+
const AX_PLACEMENT_BOTTOM_START = {
|
|
70
|
+
originX: 'start',
|
|
71
|
+
originY: 'bottom',
|
|
72
|
+
overlayX: 'start',
|
|
73
|
+
overlayY: 'top',
|
|
74
|
+
offsetY: defaultOffset,
|
|
75
|
+
};
|
|
76
|
+
const AX_PLACEMENT_BOTTOM_END = {
|
|
77
|
+
originX: 'end',
|
|
78
|
+
originY: 'bottom',
|
|
79
|
+
overlayX: 'end',
|
|
80
|
+
overlayY: 'top',
|
|
81
|
+
offsetY: defaultOffset,
|
|
82
|
+
};
|
|
83
|
+
const AX_PLACEMENT_START = {
|
|
84
|
+
originX: 'start',
|
|
85
|
+
originY: 'center',
|
|
86
|
+
overlayX: 'end',
|
|
87
|
+
overlayY: 'center',
|
|
88
|
+
offsetX: -defaultOffset,
|
|
89
|
+
};
|
|
90
|
+
const AX_PLACEMENT_START_TOP = {
|
|
91
|
+
originX: 'start',
|
|
92
|
+
originY: 'top',
|
|
93
|
+
overlayX: 'end',
|
|
94
|
+
overlayY: 'top',
|
|
95
|
+
offsetX: -defaultOffset,
|
|
96
|
+
};
|
|
97
|
+
const AX_PLACEMENT_START_BOTTOM = {
|
|
98
|
+
originX: 'start',
|
|
99
|
+
originY: 'bottom',
|
|
100
|
+
overlayX: 'end',
|
|
101
|
+
overlayY: 'bottom',
|
|
102
|
+
offsetX: -defaultOffset,
|
|
103
|
+
};
|
|
104
|
+
const AX_PLACEMENT_END = {
|
|
105
|
+
originX: 'end',
|
|
106
|
+
originY: 'center',
|
|
107
|
+
overlayX: 'start',
|
|
108
|
+
overlayY: 'center',
|
|
109
|
+
offsetX: defaultOffset,
|
|
110
|
+
};
|
|
111
|
+
const AX_PLACEMENT_END_TOP = {
|
|
112
|
+
originX: 'end',
|
|
113
|
+
originY: 'top',
|
|
114
|
+
overlayX: 'start',
|
|
115
|
+
overlayY: 'top',
|
|
116
|
+
offsetX: defaultOffset,
|
|
117
|
+
};
|
|
118
|
+
const AX_PLACEMENT_END_BOTTOM = {
|
|
119
|
+
originX: 'end',
|
|
120
|
+
originY: 'bottom',
|
|
121
|
+
overlayX: 'start',
|
|
122
|
+
overlayY: 'bottom',
|
|
123
|
+
offsetX: defaultOffset,
|
|
124
|
+
};
|
|
125
|
+
const AX_PLACEMENT_MAP = {
|
|
126
|
+
top: {
|
|
127
|
+
origin: AX_PLACEMENT_TOP,
|
|
128
|
+
alts: [AX_PLACEMENT_BOTTOM],
|
|
129
|
+
},
|
|
130
|
+
'top-start': {
|
|
131
|
+
origin: AX_PLACEMENT_TOP_START,
|
|
132
|
+
alts: [AX_PLACEMENT_BOTTOM_START],
|
|
133
|
+
},
|
|
134
|
+
'top-end': {
|
|
135
|
+
origin: AX_PLACEMENT_TOP_END,
|
|
136
|
+
alts: [AX_PLACEMENT_BOTTOM_END],
|
|
137
|
+
},
|
|
138
|
+
bottom: {
|
|
139
|
+
origin: AX_PLACEMENT_BOTTOM,
|
|
140
|
+
alts: [AX_PLACEMENT_BOTTOM],
|
|
141
|
+
},
|
|
142
|
+
'bottom-start': {
|
|
143
|
+
origin: AX_PLACEMENT_BOTTOM_START,
|
|
144
|
+
alts: [
|
|
145
|
+
AX_PLACEMENT_BOTTOM_END,
|
|
146
|
+
AX_PLACEMENT_TOP_START,
|
|
147
|
+
AX_PLACEMENT_TOP_END,
|
|
148
|
+
],
|
|
149
|
+
},
|
|
150
|
+
'bottom-end': {
|
|
151
|
+
origin: AX_PLACEMENT_BOTTOM_END,
|
|
152
|
+
alts: [AX_PLACEMENT_TOP_END],
|
|
153
|
+
},
|
|
154
|
+
end: {
|
|
155
|
+
origin: AX_PLACEMENT_END,
|
|
156
|
+
alts: [AX_PLACEMENT_START],
|
|
157
|
+
},
|
|
158
|
+
'end-top': {
|
|
159
|
+
origin: AX_PLACEMENT_END_TOP,
|
|
160
|
+
alts: [
|
|
161
|
+
AX_PLACEMENT_END_BOTTOM,
|
|
162
|
+
AX_PLACEMENT_START_TOP,
|
|
163
|
+
AX_PLACEMENT_START_BOTTOM,
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
'end-bottom': {
|
|
167
|
+
origin: AX_PLACEMENT_END_BOTTOM,
|
|
168
|
+
alts: [
|
|
169
|
+
AX_PLACEMENT_END_TOP,
|
|
170
|
+
AX_PLACEMENT_START_BOTTOM,
|
|
171
|
+
AX_PLACEMENT_START_TOP,
|
|
172
|
+
],
|
|
173
|
+
},
|
|
174
|
+
start: {
|
|
175
|
+
origin: AX_PLACEMENT_START,
|
|
176
|
+
alts: [AX_PLACEMENT_END],
|
|
177
|
+
},
|
|
178
|
+
'start-top': {
|
|
179
|
+
origin: AX_PLACEMENT_START_TOP,
|
|
180
|
+
alts: [
|
|
181
|
+
AX_PLACEMENT_START_BOTTOM,
|
|
182
|
+
AX_PLACEMENT_END_TOP,
|
|
183
|
+
AX_PLACEMENT_END_BOTTOM,
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
'start-bottom': {
|
|
187
|
+
origin: AX_PLACEMENT_START_BOTTOM,
|
|
188
|
+
alts: [
|
|
189
|
+
AX_PLACEMENT_START_TOP,
|
|
190
|
+
AX_PLACEMENT_END_BOTTOM,
|
|
191
|
+
AX_PLACEMENT_END_TOP,
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* A token that specifies the selection mode of component.
|
|
198
|
+
*/
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Contains native event
|
|
202
|
+
* @category Events
|
|
203
|
+
*/
|
|
204
|
+
class AXEvent {
|
|
205
|
+
constructor() {
|
|
206
|
+
this.isUserInteraction = false;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Contains native event
|
|
211
|
+
* @category Events
|
|
212
|
+
*/
|
|
213
|
+
class AXHtmlEvent extends AXEvent {
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Contains native event
|
|
217
|
+
* @category Events
|
|
218
|
+
*/
|
|
219
|
+
class AXValueChangedEvent extends AXEvent {
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* Contains native event
|
|
223
|
+
* @category Events
|
|
224
|
+
*/
|
|
225
|
+
class AXOptionChangedEvent extends AXEvent {
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Fires each time the user click the element.
|
|
229
|
+
* @category Events
|
|
230
|
+
*/
|
|
231
|
+
class AXClickEvent extends AXHtmlEvent {
|
|
232
|
+
constructor() {
|
|
233
|
+
super(...arguments);
|
|
234
|
+
/**
|
|
235
|
+
* uses for extra data
|
|
236
|
+
*/
|
|
237
|
+
this.data = null;
|
|
238
|
+
this.nativeEvent = null;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Fires each time the user click the element.
|
|
243
|
+
* @category Events
|
|
244
|
+
*/
|
|
245
|
+
class AXButtonClickEvent extends AXClickEvent {
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Fires each time the user click the element.
|
|
249
|
+
* @category Events
|
|
250
|
+
*/
|
|
251
|
+
class AXItemClickEvent extends AXClickEvent {
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Fires each time the component gets focused.
|
|
255
|
+
* @category Events
|
|
256
|
+
*/
|
|
257
|
+
class AXFocusEvent extends AXHtmlEvent {
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Fires each time an item or multiple items selected by the user or value.
|
|
261
|
+
* @category Events
|
|
262
|
+
*/
|
|
263
|
+
class AXSelectionValueChangedEvent extends AXValueChangedEvent {
|
|
264
|
+
constructor() {
|
|
265
|
+
super(...arguments);
|
|
266
|
+
this.value = null;
|
|
267
|
+
this.oldValue = null;
|
|
268
|
+
this.selectedKeys = [];
|
|
269
|
+
this.selectedItems = [];
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Contains range start & end values
|
|
274
|
+
* @category Events
|
|
275
|
+
*/
|
|
276
|
+
class AXRangeChangedEvent extends AXEvent {
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
const TAB_META_KEY = '__meta__';
|
|
280
|
+
class AXComponentCloseEvent extends AXEvent {
|
|
281
|
+
}
|
|
282
|
+
class AXComponentClosing {
|
|
283
|
+
constructor() {
|
|
284
|
+
this.cancel = false;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
class AXComponentResult {
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* 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 after the primary text.
|
|
291
|
+
*/
|
|
292
|
+
class AXComponentClosedPromise extends Promise {
|
|
293
|
+
constructor(executor) {
|
|
294
|
+
super(executor);
|
|
295
|
+
}
|
|
296
|
+
close() {
|
|
297
|
+
if (this.closeMethod) {
|
|
298
|
+
this.closeMethod();
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
class AXComponent {
|
|
303
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
304
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXComponent }); }
|
|
305
|
+
}
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXComponent, decorators: [{
|
|
307
|
+
type: Injectable
|
|
308
|
+
}] });
|
|
309
|
+
class AXClosbaleComponent extends AXComponent {
|
|
310
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXClosbaleComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
311
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXClosbaleComponent }); }
|
|
312
|
+
}
|
|
313
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXClosbaleComponent, decorators: [{
|
|
314
|
+
type: Injectable
|
|
315
|
+
}] });
|
|
316
|
+
class AXClearableComponent extends AXComponent {
|
|
317
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXClearableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
318
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXClearableComponent }); }
|
|
319
|
+
}
|
|
320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXClearableComponent, decorators: [{
|
|
321
|
+
type: Injectable
|
|
322
|
+
}] });
|
|
323
|
+
class AXSearchableComponent extends AXComponent {
|
|
324
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXSearchableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
325
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXSearchableComponent }); }
|
|
326
|
+
}
|
|
327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXSearchableComponent, decorators: [{
|
|
328
|
+
type: Injectable
|
|
329
|
+
}] });
|
|
330
|
+
class AXValuableComponent extends AXComponent {
|
|
331
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXValuableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
332
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXValuableComponent }); }
|
|
333
|
+
}
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXValuableComponent, decorators: [{
|
|
335
|
+
type: Injectable
|
|
336
|
+
}] });
|
|
337
|
+
class AXFocusableComponent extends AXComponent {
|
|
338
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXFocusableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
339
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXFocusableComponent }); }
|
|
340
|
+
}
|
|
341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXFocusableComponent, decorators: [{
|
|
342
|
+
type: Injectable
|
|
343
|
+
}] });
|
|
344
|
+
class AXPagedComponent extends AXComponent {
|
|
345
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXPagedComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
346
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXPagedComponent }); }
|
|
347
|
+
}
|
|
348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXPagedComponent, decorators: [{
|
|
349
|
+
type: Injectable
|
|
350
|
+
}] });
|
|
351
|
+
|
|
352
|
+
class AXListDataSource extends DataSource {
|
|
353
|
+
get range() {
|
|
354
|
+
return this._range;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* @ignore
|
|
358
|
+
*/
|
|
359
|
+
constructor(config) {
|
|
360
|
+
super();
|
|
361
|
+
this.config = config;
|
|
362
|
+
this.debounceTime = 0;
|
|
363
|
+
this.subscription = new Subscription();
|
|
364
|
+
this._range = { start: 0, end: 0 };
|
|
365
|
+
this.source = config.source;
|
|
366
|
+
if (config.debounceTime)
|
|
367
|
+
this.debounceTime = config.debounceTime;
|
|
368
|
+
//
|
|
369
|
+
this.dataStream = new BehaviorSubject(this.config.source.cachedItems);
|
|
370
|
+
this.source.onChanged.subscribe((data) => {
|
|
371
|
+
this.dataStream.next(data.cachedItems);
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
connect(collectionViewer) {
|
|
375
|
+
this.subscription.add(collectionViewer.viewChange
|
|
376
|
+
.pipe(debounceTime(this.debounceTime))
|
|
377
|
+
.pipe(distinctUntilChanged())
|
|
378
|
+
.subscribe((range) => {
|
|
379
|
+
this._range = range;
|
|
380
|
+
const startPage = this.getPageForIndex(range.start);
|
|
381
|
+
const endPage = this.getPageForIndex(range.end - 1);
|
|
382
|
+
for (let i = startPage; i <= endPage; i++) {
|
|
383
|
+
this.source.setPage(i);
|
|
384
|
+
}
|
|
385
|
+
}));
|
|
386
|
+
return this.dataStream;
|
|
387
|
+
}
|
|
388
|
+
disconnect() {
|
|
389
|
+
this.subscription.unsubscribe();
|
|
390
|
+
}
|
|
391
|
+
getPageForIndex(index) {
|
|
392
|
+
return Math.floor(index / this.source.config.pageSize);
|
|
393
|
+
}
|
|
394
|
+
refresh() {
|
|
395
|
+
this.dataStream.next(new Array(this.source.pageSize));
|
|
396
|
+
this.source.refresh();
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
class AXDataSource {
|
|
401
|
+
get totalCount() {
|
|
402
|
+
return this._totalCount;
|
|
403
|
+
}
|
|
404
|
+
get totalPages() {
|
|
405
|
+
return Math.floor(this.totalCount / this.config.pageSize);
|
|
406
|
+
}
|
|
407
|
+
get pageSize() {
|
|
408
|
+
return this.config.pageSize;
|
|
409
|
+
}
|
|
410
|
+
get cachedItems() {
|
|
411
|
+
return this._cachedItems;
|
|
412
|
+
}
|
|
413
|
+
get items() {
|
|
414
|
+
return this._items;
|
|
415
|
+
}
|
|
416
|
+
get query() {
|
|
417
|
+
return this._query;
|
|
418
|
+
}
|
|
419
|
+
get isLoading() {
|
|
420
|
+
return this._isLoading;
|
|
421
|
+
}
|
|
422
|
+
constructor(config) {
|
|
423
|
+
this.useCache = true;
|
|
424
|
+
this._totalCount = 0;
|
|
425
|
+
this._items = [];
|
|
426
|
+
this.fetchedPages = new Set();
|
|
427
|
+
this._page = 0;
|
|
428
|
+
this._query = { skip: 0, take: 0, sort: [] };
|
|
429
|
+
this.onChanged = new Subject();
|
|
430
|
+
this.onLoadingChanged = new Subject();
|
|
431
|
+
this._isLoading = false;
|
|
432
|
+
this.config = config;
|
|
433
|
+
this._cachedItems = new Array(this.config.pageSize);
|
|
434
|
+
this._items = new Array(0);
|
|
435
|
+
this._query.take = this.config.pageSize;
|
|
436
|
+
}
|
|
437
|
+
load() {
|
|
438
|
+
const page = this._page;
|
|
439
|
+
if (this.fetchedPages.has(page) && this.useCache) {
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
this.setLoadingState(true);
|
|
443
|
+
this.fetchedPages.add(page);
|
|
444
|
+
this._query.take = this.config.pageSize;
|
|
445
|
+
this._query.skip = page * this.config.pageSize;
|
|
446
|
+
this.config
|
|
447
|
+
.load({ ...this._query })
|
|
448
|
+
.then((result) => {
|
|
449
|
+
if (this._totalCount != result.total) {
|
|
450
|
+
this._cachedItems = new Array(result.total);
|
|
451
|
+
this._totalCount = result.total;
|
|
452
|
+
}
|
|
453
|
+
this._items = result.items;
|
|
454
|
+
this._cachedItems.splice(page * this.config.pageSize, this.config.pageSize, ...result.items);
|
|
455
|
+
const event = {
|
|
456
|
+
cachedItems: this.cachedItems,
|
|
457
|
+
items: this.items,
|
|
458
|
+
page: page,
|
|
459
|
+
totalCount: this.totalCount,
|
|
460
|
+
totalPages: this.totalPages,
|
|
461
|
+
};
|
|
462
|
+
this.onChanged.next(event);
|
|
463
|
+
})
|
|
464
|
+
.finally(() => {
|
|
465
|
+
this.setLoadingState(false);
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
setLoadingState(value) {
|
|
469
|
+
this._isLoading = value;
|
|
470
|
+
this.onLoadingChanged.next(this._isLoading);
|
|
471
|
+
}
|
|
472
|
+
setPage(page) {
|
|
473
|
+
if (this._page != page || this._items.length == 0) {
|
|
474
|
+
this._page = page;
|
|
475
|
+
this.load();
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
setPageSize(pageSize) {
|
|
479
|
+
this.config.pageSize = pageSize;
|
|
480
|
+
this.load();
|
|
481
|
+
}
|
|
482
|
+
filter(value) {
|
|
483
|
+
this._query.filter = value;
|
|
484
|
+
}
|
|
485
|
+
sort(...value) {
|
|
486
|
+
this._query.sort = value;
|
|
487
|
+
}
|
|
488
|
+
clearFilter() {
|
|
489
|
+
this._query.filter = null;
|
|
490
|
+
}
|
|
491
|
+
reset() {
|
|
492
|
+
this._query.filter = null;
|
|
493
|
+
this._query.sort = [];
|
|
494
|
+
this._query.skip = 0;
|
|
495
|
+
this._cachedItems = new Array(this.config.pageSize);
|
|
496
|
+
this.fetchedPages.clear();
|
|
497
|
+
this._page = 0;
|
|
498
|
+
this._totalCount = 0;
|
|
499
|
+
}
|
|
500
|
+
refresh() {
|
|
501
|
+
const currentFilter = this._query.filter;
|
|
502
|
+
const currentSort = this._query.sort;
|
|
503
|
+
this.reset();
|
|
504
|
+
this._query.filter = currentFilter;
|
|
505
|
+
this._query.sort = currentSort;
|
|
506
|
+
this.load();
|
|
507
|
+
}
|
|
508
|
+
find(key) {
|
|
509
|
+
const fromCache = this.cachedItems.find((c) => (!this.config.key && c == key) || (c && this.config.key && c[this.config.key] == key));
|
|
510
|
+
if (fromCache)
|
|
511
|
+
return fromCache;
|
|
512
|
+
return this.config.byKey ? this.config.byKey(key) : null;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
function convertArrayToDataSource(items, options = { key: 'id', pageSize: 100 }) {
|
|
516
|
+
const config = {
|
|
517
|
+
key: options.key,
|
|
518
|
+
pageSize: options.pageSize,
|
|
519
|
+
load: (e) => {
|
|
520
|
+
const result = e.filter ? filter(items, e.filter) : items;
|
|
521
|
+
return Promise.resolve({
|
|
522
|
+
items: result.slice(e.skip, e.skip + e.take),
|
|
523
|
+
total: result.length,
|
|
524
|
+
});
|
|
525
|
+
},
|
|
526
|
+
byKey: (v) => Promise.resolve(items.find((c) => c[options.key] == v)),
|
|
527
|
+
};
|
|
528
|
+
return new AXDataSource(config);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
const AX_STYLE_COLOR_TYPES = [
|
|
532
|
+
'primary',
|
|
533
|
+
'secondary',
|
|
534
|
+
'success',
|
|
535
|
+
'warning',
|
|
536
|
+
'danger',
|
|
537
|
+
'info',
|
|
538
|
+
'ghost',
|
|
539
|
+
];
|
|
540
|
+
const AX_LOCATIONS = [
|
|
541
|
+
'bottom-start',
|
|
542
|
+
'bottom-center',
|
|
543
|
+
'bottom-end',
|
|
544
|
+
'top-start',
|
|
545
|
+
'top-center',
|
|
546
|
+
'top-end',
|
|
547
|
+
'center-end',
|
|
548
|
+
'center-start',
|
|
549
|
+
];
|
|
550
|
+
|
|
551
|
+
class AXAutoFocusDirective {
|
|
552
|
+
constructor(renderer, el, _host) {
|
|
553
|
+
this.renderer = renderer;
|
|
554
|
+
this.el = el;
|
|
555
|
+
this._host = _host;
|
|
556
|
+
this.autoFocus = true;
|
|
557
|
+
this.time = 50;
|
|
558
|
+
}
|
|
559
|
+
ngAfterViewInit() {
|
|
560
|
+
this.doFocus();
|
|
561
|
+
}
|
|
562
|
+
doFocus() {
|
|
563
|
+
if (this.autoFocus) {
|
|
564
|
+
if (this._host) {
|
|
565
|
+
setTimeout(() => {
|
|
566
|
+
this._host.focus();
|
|
567
|
+
}, this.time);
|
|
568
|
+
return;
|
|
569
|
+
}
|
|
570
|
+
const list = [
|
|
571
|
+
'button',
|
|
572
|
+
'input',
|
|
573
|
+
'[href]',
|
|
574
|
+
'select',
|
|
575
|
+
'textarea',
|
|
576
|
+
'[tabindex]',
|
|
577
|
+
].map((c) => c + ':not([tabindex="-1"])');
|
|
578
|
+
const focusable = this.el.nativeElement.querySelector(list.join(', ')) ??
|
|
579
|
+
this.el.nativeElement;
|
|
580
|
+
const attr = document.createAttribute('autofocus');
|
|
581
|
+
focusable.setAttributeNode(attr);
|
|
582
|
+
const hasTabindex = focusable.hasAttribute('tabindex');
|
|
583
|
+
if (!hasTabindex) {
|
|
584
|
+
focusable.setAttribute('tabindex', '0');
|
|
585
|
+
}
|
|
586
|
+
setTimeout(() => {
|
|
587
|
+
focusable.focus();
|
|
588
|
+
}, this.time);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXAutoFocusDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: AXFocusableComponent, host: true, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
592
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.2", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: { autoFocus: ["axAutoFocus", "autoFocus"], time: ["axAutoFocusTime", "time"] }, ngImport: i0 }); }
|
|
593
|
+
}
|
|
594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXAutoFocusDirective, decorators: [{
|
|
595
|
+
type: Directive,
|
|
596
|
+
args: [{
|
|
597
|
+
selector: '[axAutoFocus]',
|
|
598
|
+
}]
|
|
599
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: AXFocusableComponent, decorators: [{
|
|
600
|
+
type: Host
|
|
601
|
+
}, {
|
|
602
|
+
type: Self
|
|
603
|
+
}, {
|
|
604
|
+
type: Optional
|
|
605
|
+
}] }], propDecorators: { autoFocus: [{
|
|
606
|
+
type: Input,
|
|
607
|
+
args: ['axAutoFocus']
|
|
608
|
+
}], time: [{
|
|
609
|
+
type: Input,
|
|
610
|
+
args: ['axAutoFocusTime']
|
|
611
|
+
}] } });
|
|
612
|
+
|
|
613
|
+
class AXHotkeysService {
|
|
614
|
+
constructor(eventManager, document) {
|
|
615
|
+
this.eventManager = eventManager;
|
|
616
|
+
this.document = document;
|
|
617
|
+
this.defaults = {
|
|
618
|
+
element: this.document,
|
|
619
|
+
};
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* Add shortcut
|
|
623
|
+
*
|
|
624
|
+
*
|
|
625
|
+
* @param options
|
|
626
|
+
* @returns Observable
|
|
627
|
+
*
|
|
628
|
+
*/
|
|
629
|
+
addShortcut(options) {
|
|
630
|
+
const merged = { ...this.defaults, ...options };
|
|
631
|
+
const event = `keydown.${merged.keys}`;
|
|
632
|
+
return new Observable((observer) => {
|
|
633
|
+
const handler = (e) => {
|
|
634
|
+
e.preventDefault();
|
|
635
|
+
observer.next(e);
|
|
636
|
+
};
|
|
637
|
+
if (merged.element) {
|
|
638
|
+
// Todo: check addEventListener is not function
|
|
639
|
+
const dispose = this.eventManager.addEventListener(merged.element, event, handler);
|
|
640
|
+
return () => {
|
|
641
|
+
dispose();
|
|
642
|
+
};
|
|
643
|
+
}
|
|
644
|
+
else {
|
|
645
|
+
// console.error('Element is not accessible');
|
|
646
|
+
return null;
|
|
647
|
+
}
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXHotkeysService, deps: [{ token: i1.EventManager }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
651
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXHotkeysService }); }
|
|
652
|
+
}
|
|
653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXHotkeysService, decorators: [{
|
|
654
|
+
type: Injectable
|
|
655
|
+
}], ctorParameters: () => [{ type: i1.EventManager }, { type: Document, decorators: [{
|
|
656
|
+
type: Inject,
|
|
657
|
+
args: [DOCUMENT]
|
|
658
|
+
}] }] });
|
|
659
|
+
|
|
660
|
+
class AXHotkeyDirective {
|
|
661
|
+
constructor(el, _host, hs) {
|
|
662
|
+
this.el = el;
|
|
663
|
+
this._host = _host;
|
|
664
|
+
this.hs = hs;
|
|
665
|
+
this.axHotkey = '';
|
|
666
|
+
this._subs = [];
|
|
667
|
+
}
|
|
668
|
+
ngAfterViewInit() {
|
|
669
|
+
if (!this.axHotkey || !this._host)
|
|
670
|
+
return;
|
|
671
|
+
if (typeof this.axHotkey == 'string') {
|
|
672
|
+
this._addDefaultAction(this.axHotkey);
|
|
673
|
+
}
|
|
674
|
+
else if (typeof this.axHotkey == 'object' &&
|
|
675
|
+
!Array.isArray(this.axHotkey)) {
|
|
676
|
+
this._addHotKeyAction([this.axHotkey]);
|
|
677
|
+
}
|
|
678
|
+
else if (Array.isArray(this.axHotkey)) {
|
|
679
|
+
this._addHotKeyAction(this.axHotkey);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
_addDefaultAction(hotkey) {
|
|
683
|
+
this._subs.push(this.hs.addShortcut({ keys: hotkey }).subscribe(() => {
|
|
684
|
+
['click', 'toggle', 'open', 'focus'].forEach((a) => {
|
|
685
|
+
if (this._host[a]) {
|
|
686
|
+
this._host[a]();
|
|
687
|
+
return;
|
|
688
|
+
}
|
|
689
|
+
});
|
|
690
|
+
}));
|
|
691
|
+
}
|
|
692
|
+
_addHotKeyAction(hotkeys) {
|
|
693
|
+
hotkeys.forEach((k) => {
|
|
694
|
+
const hotkey = Object.entries(k)[0][0];
|
|
695
|
+
const action = Object.entries(k)[0][1];
|
|
696
|
+
if (!action)
|
|
697
|
+
this._addDefaultAction(hotkey);
|
|
698
|
+
else {
|
|
699
|
+
this._subs.push(this.hs.addShortcut({ keys: hotkey }).subscribe(() => {
|
|
700
|
+
if (typeof action == 'string' && this._host[action]) {
|
|
701
|
+
this._host[action]();
|
|
702
|
+
return;
|
|
703
|
+
}
|
|
704
|
+
if (typeof action == 'function') {
|
|
705
|
+
action();
|
|
706
|
+
return;
|
|
707
|
+
}
|
|
708
|
+
}));
|
|
709
|
+
}
|
|
710
|
+
});
|
|
711
|
+
}
|
|
712
|
+
ngOnDestroy() {
|
|
713
|
+
this._subs.forEach((s) => {
|
|
714
|
+
s.unsubscribe();
|
|
715
|
+
});
|
|
716
|
+
}
|
|
717
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXHotkeyDirective, deps: [{ token: i0.ElementRef }, { token: AXComponent, host: true, optional: true, self: true }, { token: AXHotkeysService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
718
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.2", type: AXHotkeyDirective, selector: "[axHotkey]", inputs: { axHotkey: "axHotkey" }, ngImport: i0 }); }
|
|
719
|
+
}
|
|
720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXHotkeyDirective, decorators: [{
|
|
721
|
+
type: Directive,
|
|
722
|
+
args: [{
|
|
723
|
+
selector: '[axHotkey]',
|
|
724
|
+
}]
|
|
725
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: AXComponent, decorators: [{
|
|
726
|
+
type: Host
|
|
727
|
+
}, {
|
|
728
|
+
type: Self
|
|
729
|
+
}, {
|
|
730
|
+
type: Optional
|
|
731
|
+
}] }, { type: AXHotkeysService }], propDecorators: { axHotkey: [{
|
|
732
|
+
type: Input
|
|
733
|
+
}] } });
|
|
734
|
+
|
|
735
|
+
const AX_DEFAULT_SCROLL_POSITION = {
|
|
736
|
+
scrollHeight: 0,
|
|
737
|
+
scrollTop: 0,
|
|
738
|
+
clientHeight: 0,
|
|
739
|
+
};
|
|
740
|
+
class AXInfiniteScrollerDirective {
|
|
741
|
+
constructor(elm) {
|
|
742
|
+
this.elm = elm;
|
|
743
|
+
this.scrollPercent = 70;
|
|
744
|
+
this.isUserScrollingDown = (positions) => {
|
|
745
|
+
return positions[0].sT < positions[1].sT;
|
|
746
|
+
};
|
|
747
|
+
this.isScrollExpectedPercent = (position) => {
|
|
748
|
+
return (position.sT + position.cH) / position.sH > this.scrollPercent / 100;
|
|
749
|
+
};
|
|
750
|
+
}
|
|
751
|
+
ngAfterViewInit() {
|
|
752
|
+
this.registerScrollEvent();
|
|
753
|
+
this.streamScrollEvents();
|
|
754
|
+
this.requestCallbackOnScroll();
|
|
755
|
+
}
|
|
756
|
+
registerScrollEvent() {
|
|
757
|
+
this.scrollEvent$ = fromEvent(this.elm.nativeElement, 'scroll');
|
|
758
|
+
}
|
|
759
|
+
streamScrollEvents() {
|
|
760
|
+
this.userScrolledDown$ = this.scrollEvent$.pipe(map((e) => ({
|
|
761
|
+
scrollHeight: e.target.scrollHeight,
|
|
762
|
+
scrollTop: e.target.scrollTop,
|
|
763
|
+
clientHeight: e.target.clientHeight,
|
|
764
|
+
})), pairwise(), filter$1((positions) => this.isUserScrollingDown(positions) &&
|
|
765
|
+
this.isScrollExpectedPercent(positions[1])));
|
|
766
|
+
}
|
|
767
|
+
requestCallbackOnScroll() {
|
|
768
|
+
this.requestOnScroll$ = this.userScrolledDown$;
|
|
769
|
+
if (this.immediateCallback) {
|
|
770
|
+
this.requestOnScroll$ = this.requestOnScroll$.pipe(startWith([AX_DEFAULT_SCROLL_POSITION, AX_DEFAULT_SCROLL_POSITION]));
|
|
771
|
+
}
|
|
772
|
+
this.requestOnScroll$.pipe(exhaustMap(() => {
|
|
773
|
+
return this.scrollCallback();
|
|
774
|
+
}));
|
|
775
|
+
}
|
|
776
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXInfiniteScrollerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
777
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.2", type: AXInfiniteScrollerDirective, selector: "[axInfiniteScroller]", inputs: { scrollCallback: "scrollCallback", immediateCallback: "immediateCallback", scrollPercent: "scrollPercent" }, ngImport: i0 }); }
|
|
778
|
+
}
|
|
779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
|
|
780
|
+
type: Directive,
|
|
781
|
+
args: [{
|
|
782
|
+
selector: '[axInfiniteScroller]',
|
|
783
|
+
}]
|
|
784
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { scrollCallback: [{
|
|
785
|
+
type: Input
|
|
786
|
+
}], immediateCallback: [{
|
|
787
|
+
type: Input
|
|
788
|
+
}], scrollPercent: [{
|
|
789
|
+
type: Input
|
|
790
|
+
}] } });
|
|
791
|
+
|
|
792
|
+
class AXResponsiveDirective {
|
|
793
|
+
constructor(_elementRef) {
|
|
794
|
+
this._elementRef = _elementRef;
|
|
795
|
+
this._observer = new ResizeObserver((entries) => {
|
|
796
|
+
for (const entry of entries) {
|
|
797
|
+
if (entry.target) {
|
|
798
|
+
const e = entry.target;
|
|
799
|
+
const elements = [
|
|
800
|
+
e,
|
|
801
|
+
...Array.from(e.querySelectorAll(`[class*='sm:']`)),
|
|
802
|
+
];
|
|
803
|
+
elements
|
|
804
|
+
.map((c) => ({
|
|
805
|
+
element: c,
|
|
806
|
+
classList: Array.from(c.classList)
|
|
807
|
+
.filter((c) => c.includes('sm'))
|
|
808
|
+
.map((c) => c.slice(3)),
|
|
809
|
+
}))
|
|
810
|
+
.forEach((c) => {
|
|
811
|
+
e.clientWidth < 320
|
|
812
|
+
? c.element.classList.add(...c.classList)
|
|
813
|
+
: c.element.classList.remove(...c.classList);
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
});
|
|
818
|
+
this._observer.observe(_elementRef.nativeElement);
|
|
819
|
+
}
|
|
820
|
+
ngOnDestroy() {
|
|
821
|
+
this._observer?.disconnect();
|
|
822
|
+
this._observer?.unobserve(this._elementRef.nativeElement);
|
|
823
|
+
}
|
|
824
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXResponsiveDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
825
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.2", type: AXResponsiveDirective, selector: "[axResponsive]", ngImport: i0 }); }
|
|
826
|
+
}
|
|
827
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXResponsiveDirective, decorators: [{
|
|
828
|
+
type: Directive,
|
|
829
|
+
args: [{ selector: '[axResponsive]' }]
|
|
830
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
831
|
+
|
|
832
|
+
class AXCommonModule {
|
|
833
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
834
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.2", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective,
|
|
835
|
+
AXInfiniteScrollerDirective,
|
|
836
|
+
AXAutoFocusDirective,
|
|
837
|
+
AXHotkeyDirective], exports: [AXResponsiveDirective,
|
|
838
|
+
AXInfiniteScrollerDirective,
|
|
839
|
+
AXAutoFocusDirective,
|
|
840
|
+
AXHotkeyDirective] }); }
|
|
841
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXCommonModule, providers: [AXHotkeysService] }); }
|
|
842
|
+
}
|
|
843
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXCommonModule, decorators: [{
|
|
844
|
+
type: NgModule,
|
|
845
|
+
args: [{
|
|
846
|
+
declarations: [
|
|
847
|
+
AXResponsiveDirective,
|
|
848
|
+
AXInfiniteScrollerDirective,
|
|
849
|
+
AXAutoFocusDirective,
|
|
850
|
+
AXHotkeyDirective,
|
|
851
|
+
],
|
|
852
|
+
imports: [],
|
|
853
|
+
exports: [
|
|
854
|
+
AXResponsiveDirective,
|
|
855
|
+
AXInfiniteScrollerDirective,
|
|
856
|
+
AXAutoFocusDirective,
|
|
857
|
+
AXHotkeyDirective,
|
|
858
|
+
],
|
|
859
|
+
providers: [AXHotkeysService],
|
|
860
|
+
}]
|
|
861
|
+
}] });
|
|
862
|
+
|
|
863
|
+
class AXDomService {
|
|
864
|
+
generateElementId() {
|
|
865
|
+
const dateString = Date.now().toString(36);
|
|
866
|
+
const randomness = Math.random().toString(36).substr(2);
|
|
867
|
+
return dateString + randomness;
|
|
868
|
+
}
|
|
869
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXDomService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
870
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXDomService, providedIn: 'root' }); }
|
|
871
|
+
}
|
|
872
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXDomService, decorators: [{
|
|
873
|
+
type: Injectable,
|
|
874
|
+
args: [{ providedIn: 'root' }]
|
|
875
|
+
}] });
|
|
876
|
+
|
|
877
|
+
class MXBaseComponent {
|
|
878
|
+
constructor() {
|
|
879
|
+
this._cdr = inject(ChangeDetectorRef);
|
|
880
|
+
this._elementRef = inject(ElementRef);
|
|
881
|
+
this._viewRef = inject(ViewContainerRef);
|
|
882
|
+
this._domService = inject(AXDomService);
|
|
883
|
+
this._id = this._domService.generateElementId();
|
|
884
|
+
this.onOptionChanged = new EventEmitter();
|
|
885
|
+
}
|
|
886
|
+
get id() {
|
|
887
|
+
return this._id;
|
|
888
|
+
}
|
|
889
|
+
set id(v) {
|
|
890
|
+
this._id = v;
|
|
891
|
+
}
|
|
892
|
+
get cdr() {
|
|
893
|
+
return this._cdr;
|
|
894
|
+
}
|
|
895
|
+
getHostElement() {
|
|
896
|
+
return this._elementRef?.nativeElement;
|
|
897
|
+
}
|
|
898
|
+
getViewContainer() {
|
|
899
|
+
return this._viewRef;
|
|
900
|
+
}
|
|
901
|
+
internalOptionChanging(option) {
|
|
902
|
+
return option?.value;
|
|
903
|
+
}
|
|
904
|
+
internalOptionChanged(option) { }
|
|
905
|
+
ngOnInit() {
|
|
906
|
+
this.getHostElement().__axContext__ = this;
|
|
907
|
+
this._detectLayout();
|
|
908
|
+
}
|
|
909
|
+
setOption(option) {
|
|
910
|
+
const oldValue = this[option.name];
|
|
911
|
+
let newValue = this.internalOptionChanging({
|
|
912
|
+
name: option.name,
|
|
913
|
+
value: option.value,
|
|
914
|
+
});
|
|
915
|
+
if (option.beforeCallback) {
|
|
916
|
+
newValue = option.beforeCallback(oldValue, newValue);
|
|
917
|
+
}
|
|
918
|
+
//TODO : check real changes if value is object
|
|
919
|
+
if (oldValue != newValue) {
|
|
920
|
+
this[`_${option.name}`] = option.value;
|
|
921
|
+
this.onOptionChanged.emit({
|
|
922
|
+
component: this,
|
|
923
|
+
name: option.name,
|
|
924
|
+
newValue,
|
|
925
|
+
oldValue,
|
|
926
|
+
});
|
|
927
|
+
const emitter = this[`${option.name}Change`];
|
|
928
|
+
emitter?.emit(newValue);
|
|
929
|
+
this.internalOptionChanged({ name: option.name, value: newValue });
|
|
930
|
+
}
|
|
931
|
+
if (option.afterCallback)
|
|
932
|
+
option.afterCallback(oldValue, newValue);
|
|
933
|
+
}
|
|
934
|
+
_detectLayout() {
|
|
935
|
+
if (isBrowser()) {
|
|
936
|
+
this.rtl =
|
|
937
|
+
this.getHostElement().classList.contains('ax-rtl') ||
|
|
938
|
+
window.getComputedStyle(this.getHostElement(), null).getPropertyValue('direction') === 'rtl';
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
get rtl() {
|
|
942
|
+
return this._rtl;
|
|
943
|
+
}
|
|
944
|
+
set rtl(value) {
|
|
945
|
+
this.setOption({ name: 'rtl', value });
|
|
946
|
+
}
|
|
947
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
948
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXBaseComponent }); }
|
|
949
|
+
}
|
|
950
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXBaseComponent, decorators: [{
|
|
951
|
+
type: Injectable
|
|
952
|
+
}] });
|
|
953
|
+
|
|
954
|
+
class MXColorComponent extends MXBaseComponent {
|
|
955
|
+
constructor() {
|
|
956
|
+
super(...arguments);
|
|
957
|
+
this.colorChange = new EventEmitter();
|
|
958
|
+
this._color = 'ghost';
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Predefined color schemes
|
|
962
|
+
*/
|
|
963
|
+
get color() {
|
|
964
|
+
return this._color;
|
|
965
|
+
}
|
|
966
|
+
set color(value) {
|
|
967
|
+
this.setOption({
|
|
968
|
+
name: 'color',
|
|
969
|
+
value,
|
|
970
|
+
afterCallback: () => {
|
|
971
|
+
this.cdr.markForCheck();
|
|
972
|
+
},
|
|
973
|
+
});
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
class MXLookableComponent {
|
|
978
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXLookableComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
979
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXLookableComponent }); }
|
|
980
|
+
}
|
|
981
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXLookableComponent, decorators: [{
|
|
982
|
+
type: Injectable
|
|
983
|
+
}] });
|
|
984
|
+
class MXLookComponent extends MXBaseComponent {
|
|
985
|
+
constructor() {
|
|
986
|
+
super(...arguments);
|
|
987
|
+
this.lookChange = new EventEmitter();
|
|
988
|
+
this._look = 'solid';
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* Predefined look schemes
|
|
992
|
+
*/
|
|
993
|
+
get look() {
|
|
994
|
+
return this._look;
|
|
995
|
+
}
|
|
996
|
+
set look(value) {
|
|
997
|
+
this.setOption({
|
|
998
|
+
name: 'look',
|
|
999
|
+
value,
|
|
1000
|
+
afterCallback: () => {
|
|
1001
|
+
this.cdr.markForCheck();
|
|
1002
|
+
},
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
class MXColorLookComponent extends classes(MXColorComponent, MXLookComponent) {
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
class MXInteractiveComponent extends MXBaseComponent {
|
|
1011
|
+
constructor() {
|
|
1012
|
+
super(...arguments);
|
|
1013
|
+
this.onTouchedCallback = noop;
|
|
1014
|
+
this._touched = false;
|
|
1015
|
+
this.disabledChange = new EventEmitter();
|
|
1016
|
+
this._tabIndex = 0;
|
|
1017
|
+
/**
|
|
1018
|
+
* Fires each time the component gets focused.
|
|
1019
|
+
* @event
|
|
1020
|
+
*/
|
|
1021
|
+
this.onFocus = new EventEmitter();
|
|
1022
|
+
/**
|
|
1023
|
+
* Fires each time the component gets blurred.
|
|
1024
|
+
* @event
|
|
1025
|
+
*/
|
|
1026
|
+
this.onBlur = new EventEmitter();
|
|
1027
|
+
}
|
|
1028
|
+
registerOnTouched(fn) {
|
|
1029
|
+
this.onTouchedCallback = fn;
|
|
1030
|
+
}
|
|
1031
|
+
get touched() {
|
|
1032
|
+
return this._touched;
|
|
1033
|
+
}
|
|
1034
|
+
markAsTouched() {
|
|
1035
|
+
if (!this.touched) {
|
|
1036
|
+
this.onTouchedCallback();
|
|
1037
|
+
this._touched = true;
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
/**
|
|
1041
|
+
* If set to true, it disables the component.
|
|
1042
|
+
*/
|
|
1043
|
+
get disabled() {
|
|
1044
|
+
return this._disabled;
|
|
1045
|
+
}
|
|
1046
|
+
set disabled(value) {
|
|
1047
|
+
value = coerceBooleanProperty(value);
|
|
1048
|
+
this.setOption({
|
|
1049
|
+
name: 'disabled',
|
|
1050
|
+
value,
|
|
1051
|
+
afterCallback: () => {
|
|
1052
|
+
this.cdr.markForCheck();
|
|
1053
|
+
},
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
setDisabledState(isDisabled) {
|
|
1057
|
+
this.disabled = isDisabled;
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Specifies the tabindex of the component.
|
|
1061
|
+
*/
|
|
1062
|
+
get tabIndex() {
|
|
1063
|
+
return this.disabled ? -1 : this._tabIndex;
|
|
1064
|
+
}
|
|
1065
|
+
set tabIndex(value) {
|
|
1066
|
+
this.setOption({
|
|
1067
|
+
name: 'tabIndex',
|
|
1068
|
+
value: value != null ? coerceNumberProperty(value) : 0,
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
emitOnFocusEvent(e) {
|
|
1072
|
+
this.onFocus.emit({
|
|
1073
|
+
component: this,
|
|
1074
|
+
htmlElement: this.getHostElement(),
|
|
1075
|
+
nativeEvent: e,
|
|
1076
|
+
});
|
|
1077
|
+
}
|
|
1078
|
+
emitOnBlurEvent(e) {
|
|
1079
|
+
this.markAsTouched();
|
|
1080
|
+
this.onBlur.emit({
|
|
1081
|
+
component: this,
|
|
1082
|
+
htmlElement: this.getHostElement(),
|
|
1083
|
+
nativeEvent: e,
|
|
1084
|
+
});
|
|
1085
|
+
}
|
|
1086
|
+
// /**
|
|
1087
|
+
// * Fires each time the user clicks the button.
|
|
1088
|
+
// * @event
|
|
1089
|
+
// */
|
|
1090
|
+
// onClick: EventEmitter<AXClickEvent> = new EventEmitter<AXClickEvent>();
|
|
1091
|
+
// protected emitOnClickEvent(e: MouseEvent): void {
|
|
1092
|
+
// this.onClick.emit({
|
|
1093
|
+
// component: this,
|
|
1094
|
+
// htmlElement: this.getHostElement(),
|
|
1095
|
+
// nativeEvent: e,
|
|
1096
|
+
// });
|
|
1097
|
+
// }
|
|
1098
|
+
focus() {
|
|
1099
|
+
AXHtmlUtil.focusElement(this.getHostElement());
|
|
1100
|
+
}
|
|
1101
|
+
blur() {
|
|
1102
|
+
AXHtmlUtil.blurElement(this.getHostElement());
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* Check component is focused or has any focused element.
|
|
1106
|
+
*/
|
|
1107
|
+
hasFocus() {
|
|
1108
|
+
return AXHtmlUtil.hasFocus(this.getHostElement());
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
class MXButtonBaseComponent extends classes(MXInteractiveComponent, MXColorLookComponent) {
|
|
1113
|
+
/**
|
|
1114
|
+
* Defines the primary text to show inside the button.
|
|
1115
|
+
*/
|
|
1116
|
+
get text() {
|
|
1117
|
+
return this._text;
|
|
1118
|
+
}
|
|
1119
|
+
set text(v) {
|
|
1120
|
+
this.setOption({
|
|
1121
|
+
name: 'text',
|
|
1122
|
+
value: v,
|
|
1123
|
+
afterCallback: () => {
|
|
1124
|
+
this.cdr.markForCheck();
|
|
1125
|
+
},
|
|
1126
|
+
});
|
|
1127
|
+
}
|
|
1128
|
+
/**
|
|
1129
|
+
* Provides visual styling that indicates if the Button is active
|
|
1130
|
+
*/
|
|
1131
|
+
get toggleable() {
|
|
1132
|
+
return this._toggleable;
|
|
1133
|
+
}
|
|
1134
|
+
set toggleable(value) {
|
|
1135
|
+
this.setOption({
|
|
1136
|
+
name: 'toggleable',
|
|
1137
|
+
value,
|
|
1138
|
+
});
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Indicates if the Button is selected or not
|
|
1142
|
+
*/
|
|
1143
|
+
get selected() {
|
|
1144
|
+
return this._selected;
|
|
1145
|
+
}
|
|
1146
|
+
set selected(value) {
|
|
1147
|
+
this.setOption({
|
|
1148
|
+
name: 'selected',
|
|
1149
|
+
value,
|
|
1150
|
+
afterCallback: () => {
|
|
1151
|
+
this.cdr.markForCheck();
|
|
1152
|
+
},
|
|
1153
|
+
});
|
|
1154
|
+
}
|
|
1155
|
+
constructor() {
|
|
1156
|
+
super();
|
|
1157
|
+
this.textChange = new EventEmitter();
|
|
1158
|
+
this.toggleableChange = new EventEmitter();
|
|
1159
|
+
this._toggleable = false;
|
|
1160
|
+
this.selectedChange = new EventEmitter();
|
|
1161
|
+
this._selected = false;
|
|
1162
|
+
}
|
|
1163
|
+
get cssClasses() {
|
|
1164
|
+
const cssClasses = {
|
|
1165
|
+
'ax-button-icon': !this.text,
|
|
1166
|
+
'ax-state-disabled': this.disabled,
|
|
1167
|
+
'ax-state-selected': this.selected,
|
|
1168
|
+
'ax-el-interactive': true,
|
|
1169
|
+
};
|
|
1170
|
+
cssClasses[`ax-el-${this['color'] || 'solid'}${this['look'] ? '-' + this['look'] : '-solid'}`] = true;
|
|
1171
|
+
return cssClasses;
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
class MXValueComponent extends MXInteractiveComponent {
|
|
1176
|
+
constructor() {
|
|
1177
|
+
super(...arguments);
|
|
1178
|
+
/**
|
|
1179
|
+
* Fires each time the user press a key.
|
|
1180
|
+
* @event
|
|
1181
|
+
*/
|
|
1182
|
+
this.onValueChanged = new EventEmitter();
|
|
1183
|
+
/**
|
|
1184
|
+
* @deprecated The event should not be used, use ngModelChange instead
|
|
1185
|
+
*/
|
|
1186
|
+
this.valueChange = new EventEmitter();
|
|
1187
|
+
this.readonlyChange = new EventEmitter();
|
|
1188
|
+
this._readonly = false;
|
|
1189
|
+
this._dirty = false;
|
|
1190
|
+
this._isUserInteraction = false;
|
|
1191
|
+
this.stateChange = new EventEmitter();
|
|
1192
|
+
this._state = 'clear';
|
|
1193
|
+
this.validationService = inject(AXValidationService);
|
|
1194
|
+
this.validationRulesChange = new EventEmitter();
|
|
1195
|
+
this.validationRules = [];
|
|
1196
|
+
this.onChangeCallback = noop;
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* If set to true, user cannot change the value of component.
|
|
1200
|
+
*/
|
|
1201
|
+
get readonly() {
|
|
1202
|
+
return this._readonly;
|
|
1203
|
+
}
|
|
1204
|
+
set readonly(value) {
|
|
1205
|
+
value = coerceBooleanProperty(value);
|
|
1206
|
+
this.setOption({
|
|
1207
|
+
name: 'readonly',
|
|
1208
|
+
value,
|
|
1209
|
+
afterCallback: () => {
|
|
1210
|
+
this.cdr.markForCheck();
|
|
1211
|
+
},
|
|
1212
|
+
});
|
|
1213
|
+
}
|
|
1214
|
+
get name() {
|
|
1215
|
+
return this._name;
|
|
1216
|
+
}
|
|
1217
|
+
set name(value) {
|
|
1218
|
+
this._name = value;
|
|
1219
|
+
}
|
|
1220
|
+
get dirty() {
|
|
1221
|
+
return this._dirty;
|
|
1222
|
+
}
|
|
1223
|
+
markAsDirty() {
|
|
1224
|
+
this._dirty = true;
|
|
1225
|
+
}
|
|
1226
|
+
/**
|
|
1227
|
+
* @deprecated The property should not be used, use ngModel instead
|
|
1228
|
+
*/
|
|
1229
|
+
get value() {
|
|
1230
|
+
return this.internalGetValue(this._value) ?? this.defaultValue;
|
|
1231
|
+
}
|
|
1232
|
+
set value(v) {
|
|
1233
|
+
v = this.internalSetValue(v);
|
|
1234
|
+
const old = clone(this.value);
|
|
1235
|
+
if (!isEqual(old, v)) {
|
|
1236
|
+
this._value = v;
|
|
1237
|
+
this.emitOnValueChangedEvent(old, this.value);
|
|
1238
|
+
this.internalValueChanged(this.value);
|
|
1239
|
+
}
|
|
1240
|
+
if (v == null || v == undefined || v == '' || (Array.isArray(v) && v.length == 0)) {
|
|
1241
|
+
this.setState('clear');
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
get state() {
|
|
1245
|
+
return this._state;
|
|
1246
|
+
}
|
|
1247
|
+
set state(value) {
|
|
1248
|
+
this.setState(value);
|
|
1249
|
+
this.stateChange.emit(value);
|
|
1250
|
+
}
|
|
1251
|
+
emitOnValueChangedEvent(oldValue, newValue) {
|
|
1252
|
+
this.valueChange.emit(newValue);
|
|
1253
|
+
this.onValueChanged.emit({
|
|
1254
|
+
component: this,
|
|
1255
|
+
value: newValue,
|
|
1256
|
+
oldValue: oldValue,
|
|
1257
|
+
name: this.name,
|
|
1258
|
+
isUserInteraction: this._isUserInteraction,
|
|
1259
|
+
});
|
|
1260
|
+
this.onChangeCallback(newValue);
|
|
1261
|
+
this.cdr.markForCheck();
|
|
1262
|
+
this._isUserInteraction = false;
|
|
1263
|
+
}
|
|
1264
|
+
internalSetValue(value) {
|
|
1265
|
+
return value;
|
|
1266
|
+
}
|
|
1267
|
+
internalGetValue(value) {
|
|
1268
|
+
return value;
|
|
1269
|
+
}
|
|
1270
|
+
internalValueChanged(value) { }
|
|
1271
|
+
ngOnInit() {
|
|
1272
|
+
super.ngOnInit();
|
|
1273
|
+
//
|
|
1274
|
+
this.registerValidation();
|
|
1275
|
+
}
|
|
1276
|
+
ngOnDestroy() {
|
|
1277
|
+
this.onValueChanged?.unsubscribe();
|
|
1278
|
+
this.onOptionChanged?.unsubscribe();
|
|
1279
|
+
}
|
|
1280
|
+
registerValidation() {
|
|
1281
|
+
const a = this.getHostElement().querySelectorAll('[ax-form-item="true"]');
|
|
1282
|
+
a.forEach((c) => {
|
|
1283
|
+
c.removeAttribute('ax-form-item');
|
|
1284
|
+
});
|
|
1285
|
+
this.getHostElement().setAttribute('ax-form-item', 'true');
|
|
1286
|
+
}
|
|
1287
|
+
get isRequired() {
|
|
1288
|
+
return this.validationRules?.some((c) => c.rule == 'required');
|
|
1289
|
+
}
|
|
1290
|
+
addValidationRule(rule) {
|
|
1291
|
+
this.validationRules.push(rule);
|
|
1292
|
+
this.validationRulesChange.emit(this.validationRules);
|
|
1293
|
+
}
|
|
1294
|
+
removeValidationRule(rule) {
|
|
1295
|
+
this.validationRules = this.validationRules.filter((r) => r.rule !== rule.rule || !isEqual(r.options, rule.options));
|
|
1296
|
+
this.validationRulesChange.emit(this.validationRules);
|
|
1297
|
+
}
|
|
1298
|
+
async validate() {
|
|
1299
|
+
const container_classes = ['ax-editor-container', 'ax-checkbox', 'ax-radio'];
|
|
1300
|
+
const container = container_classes.some((c) => this.getHostElement().classList.contains(c))
|
|
1301
|
+
? this.getHostElement()
|
|
1302
|
+
: this.getHostElement().querySelector('.ax-editor-container');
|
|
1303
|
+
const formField = container?.closest('ax-form-field') || container?.closest('ax-checkbox');
|
|
1304
|
+
const label = formField?.querySelector('ax-label') || formField?.querySelector('label');
|
|
1305
|
+
//
|
|
1306
|
+
const rules = this.validationService.ruleFor(this.value);
|
|
1307
|
+
this.validationRules.forEach((r) => {
|
|
1308
|
+
r.options['title'] = (label?.firstChild?.textContent ?? this.name)?.replace('*', '').trim();
|
|
1309
|
+
rules.addRule(r.rule, r.options);
|
|
1310
|
+
});
|
|
1311
|
+
const result = await rules.validate();
|
|
1312
|
+
if (result.result) {
|
|
1313
|
+
this.setState('clear');
|
|
1314
|
+
}
|
|
1315
|
+
else {
|
|
1316
|
+
const message = result.rules.find((c) => !c.result).message;
|
|
1317
|
+
this.setState('error', message);
|
|
1318
|
+
}
|
|
1319
|
+
return result;
|
|
1320
|
+
}
|
|
1321
|
+
setState(state, ...args) {
|
|
1322
|
+
//TODO: find a better solution
|
|
1323
|
+
if (isBrowser()) {
|
|
1324
|
+
const container = this.getHostElement().classList.contains('ax-editor-container')
|
|
1325
|
+
? this.getHostElement()
|
|
1326
|
+
: this.getHostElement().querySelector('.ax-editor-container');
|
|
1327
|
+
const formField = container?.closest('ax-form-field');
|
|
1328
|
+
const label = formField?.querySelector('ax-label') || formField?.querySelector('label');
|
|
1329
|
+
let target = container || this.getHostElement().firstElementChild;
|
|
1330
|
+
if (target?.querySelector('.ax-error-container')) {
|
|
1331
|
+
target = target.querySelector('.ax-error-container');
|
|
1332
|
+
}
|
|
1333
|
+
const parent = target?.parentElement;
|
|
1334
|
+
if (!target || !parent)
|
|
1335
|
+
return;
|
|
1336
|
+
switch (state) {
|
|
1337
|
+
case 'clear':
|
|
1338
|
+
this._state = 'clear';
|
|
1339
|
+
if (parent.querySelector('span.ax-error-message')) {
|
|
1340
|
+
parent.removeChild(parent.querySelector('span.ax-error-message'));
|
|
1341
|
+
}
|
|
1342
|
+
label?.classList.remove('ax-state-error');
|
|
1343
|
+
target.classList.remove('ax-state-error', 'ax-state-success');
|
|
1344
|
+
break;
|
|
1345
|
+
case 'success':
|
|
1346
|
+
this.setState('clear');
|
|
1347
|
+
target.classList.add('ax-state-success');
|
|
1348
|
+
this._state = 'success';
|
|
1349
|
+
break;
|
|
1350
|
+
case 'error':
|
|
1351
|
+
this.setState('clear');
|
|
1352
|
+
if (args[0]) {
|
|
1353
|
+
const span = document.createElement('span');
|
|
1354
|
+
span.innerHTML = args[0];
|
|
1355
|
+
span.classList.add('ax-error-message');
|
|
1356
|
+
parent.appendChild(span);
|
|
1357
|
+
}
|
|
1358
|
+
label?.classList.add('ax-state-error');
|
|
1359
|
+
target.classList.add('ax-state-error');
|
|
1360
|
+
this._state = 'error';
|
|
1361
|
+
break;
|
|
1362
|
+
}
|
|
1363
|
+
this.cdr.markForCheck();
|
|
1364
|
+
}
|
|
1365
|
+
}
|
|
1366
|
+
registerOnChange(fn) {
|
|
1367
|
+
this.onChangeCallback = fn;
|
|
1368
|
+
}
|
|
1369
|
+
writeValue(value) {
|
|
1370
|
+
this.value = value;
|
|
1371
|
+
}
|
|
1372
|
+
commitValue(value, u = false) {
|
|
1373
|
+
if (u) {
|
|
1374
|
+
this.markAsTouched();
|
|
1375
|
+
this.markAsDirty();
|
|
1376
|
+
this._isUserInteraction = true;
|
|
1377
|
+
}
|
|
1378
|
+
this.writeValue(value);
|
|
1379
|
+
}
|
|
1380
|
+
clear(e = false) {
|
|
1381
|
+
this.commitValue(null, e);
|
|
1382
|
+
}
|
|
1383
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1384
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXValueComponent }); }
|
|
1385
|
+
}
|
|
1386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXValueComponent, decorators: [{
|
|
1387
|
+
type: Injectable
|
|
1388
|
+
}] });
|
|
1389
|
+
|
|
1390
|
+
class MXInputBaseValueComponent extends MXValueComponent {
|
|
1391
|
+
constructor() {
|
|
1392
|
+
super(...arguments);
|
|
1393
|
+
/**
|
|
1394
|
+
* Fires each time the user press a key.
|
|
1395
|
+
* @event
|
|
1396
|
+
*/
|
|
1397
|
+
this.onKeyDown = new EventEmitter();
|
|
1398
|
+
/**
|
|
1399
|
+
* Fires each time the user press a key.
|
|
1400
|
+
* @event
|
|
1401
|
+
*/
|
|
1402
|
+
this.onKeyUp = new EventEmitter();
|
|
1403
|
+
/**
|
|
1404
|
+
* Fires each time the user press a key.
|
|
1405
|
+
* @event
|
|
1406
|
+
*/
|
|
1407
|
+
this.onKeyPress = new EventEmitter();
|
|
1408
|
+
}
|
|
1409
|
+
emitOnKeydownEvent(e) {
|
|
1410
|
+
this.onKeyDown.emit({
|
|
1411
|
+
component: this,
|
|
1412
|
+
nativeEvent: e,
|
|
1413
|
+
});
|
|
1414
|
+
}
|
|
1415
|
+
emitOnKeyupEvent(e) {
|
|
1416
|
+
this.onKeyUp.emit({
|
|
1417
|
+
component: this,
|
|
1418
|
+
nativeEvent: e,
|
|
1419
|
+
});
|
|
1420
|
+
}
|
|
1421
|
+
emitOnKeypressEvent(e) {
|
|
1422
|
+
this.onKeyPress.emit({
|
|
1423
|
+
component: this,
|
|
1424
|
+
nativeEvent: e,
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXInputBaseValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1428
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXInputBaseValueComponent }); }
|
|
1429
|
+
}
|
|
1430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXInputBaseValueComponent, decorators: [{
|
|
1431
|
+
type: Injectable
|
|
1432
|
+
}] });
|
|
1433
|
+
|
|
1434
|
+
class MXSelectionBridgeService {
|
|
1435
|
+
constructor() {
|
|
1436
|
+
this.selectedItems = [];
|
|
1437
|
+
this.cacheList = {};
|
|
1438
|
+
}
|
|
1439
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXSelectionBridgeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1440
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXSelectionBridgeService }); }
|
|
1441
|
+
}
|
|
1442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXSelectionBridgeService, decorators: [{
|
|
1443
|
+
type: Injectable
|
|
1444
|
+
}] });
|
|
1445
|
+
const AX_SELECTION_DATA_TOKEN = new InjectionToken('AX_SELECTION_DATA_TOKEN');
|
|
1446
|
+
class MXSelectionValueComponent extends MXValueComponent {
|
|
1447
|
+
constructor() {
|
|
1448
|
+
super(...arguments);
|
|
1449
|
+
this.dataService = inject(AX_SELECTION_DATA_TOKEN);
|
|
1450
|
+
this._valueField = 'id';
|
|
1451
|
+
this._textField = 'text';
|
|
1452
|
+
this._disabledField = 'disabled';
|
|
1453
|
+
this._multiple = false;
|
|
1454
|
+
}
|
|
1455
|
+
get valueField() {
|
|
1456
|
+
return this._valueField;
|
|
1457
|
+
}
|
|
1458
|
+
set valueField(v) {
|
|
1459
|
+
this.setOption({
|
|
1460
|
+
name: 'valueField',
|
|
1461
|
+
value: v,
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
get textField() {
|
|
1465
|
+
return this._textField;
|
|
1466
|
+
}
|
|
1467
|
+
set textField(v) {
|
|
1468
|
+
this.setOption({
|
|
1469
|
+
name: 'textField',
|
|
1470
|
+
value: v,
|
|
1471
|
+
});
|
|
1472
|
+
}
|
|
1473
|
+
get disabledField() {
|
|
1474
|
+
return this._disabledField;
|
|
1475
|
+
}
|
|
1476
|
+
set disabledField(v) {
|
|
1477
|
+
this.setOption({
|
|
1478
|
+
name: 'disabledField',
|
|
1479
|
+
value: v,
|
|
1480
|
+
});
|
|
1481
|
+
}
|
|
1482
|
+
get multiple() {
|
|
1483
|
+
return this._multiple;
|
|
1484
|
+
}
|
|
1485
|
+
set multiple(v) {
|
|
1486
|
+
this.setOption({
|
|
1487
|
+
name: 'multiple',
|
|
1488
|
+
value: v,
|
|
1489
|
+
afterCallback: () => {
|
|
1490
|
+
this.clear(false);
|
|
1491
|
+
},
|
|
1492
|
+
});
|
|
1493
|
+
}
|
|
1494
|
+
get selectedItems() {
|
|
1495
|
+
return this.dataService.selectedItems || [];
|
|
1496
|
+
}
|
|
1497
|
+
internalSetValue(value) {
|
|
1498
|
+
const isArray = Array.isArray(value);
|
|
1499
|
+
if (value == null || (isArray && value.length == 0)) {
|
|
1500
|
+
return this.multiple ? [] : null;
|
|
1501
|
+
}
|
|
1502
|
+
const normalizedItems = isArray ? this.normalizeItemsList(value, true) : this.normalizeItemsList([value], true);
|
|
1503
|
+
if (normalizedItems.length == 0) {
|
|
1504
|
+
return this.multiple ? [] : null;
|
|
1505
|
+
}
|
|
1506
|
+
const result = this.multiple ? normalizedItems.map((c) => c[this.valueField]) : normalizedItems[0][this.valueField];
|
|
1507
|
+
return result;
|
|
1508
|
+
}
|
|
1509
|
+
emitOnValueChangedEvent(oldValue, newValue) {
|
|
1510
|
+
this._normalizeSelectedItems();
|
|
1511
|
+
super.emitOnValueChangedEvent(oldValue, newValue);
|
|
1512
|
+
}
|
|
1513
|
+
normalizeItemsList(items, findBykey = false) {
|
|
1514
|
+
if (items == null)
|
|
1515
|
+
return [];
|
|
1516
|
+
return items.filter((c) => c != null).map((i) => this.normalizeItem(i, findBykey));
|
|
1517
|
+
}
|
|
1518
|
+
normalizeItem(item, findBykey = false) {
|
|
1519
|
+
const complex = typeof item == 'object';
|
|
1520
|
+
const key = complex ? item[this.valueField] : `${item}`;
|
|
1521
|
+
const cacheKey = `k-${key}`;
|
|
1522
|
+
const hasText = !complex || item[this.textField] != null;
|
|
1523
|
+
//
|
|
1524
|
+
if (this.dataService.cacheList[cacheKey] && this.dataService.cacheList[cacheKey][this.textField])
|
|
1525
|
+
return this.dataService.cacheList[cacheKey];
|
|
1526
|
+
//
|
|
1527
|
+
const obj = {};
|
|
1528
|
+
if (complex && hasText) {
|
|
1529
|
+
Object.assign(obj, item);
|
|
1530
|
+
}
|
|
1531
|
+
else {
|
|
1532
|
+
const existsItem = findBykey ? this.getItemByKey(key) : null;
|
|
1533
|
+
if (existsItem && existsItem instanceof Promise) {
|
|
1534
|
+
obj[this.valueField] = key;
|
|
1535
|
+
obj['isLoading'] = true;
|
|
1536
|
+
//
|
|
1537
|
+
existsItem
|
|
1538
|
+
.then((r) => {
|
|
1539
|
+
if (typeof r === 'object') {
|
|
1540
|
+
obj[this.valueField] = r[this.valueField];
|
|
1541
|
+
obj[this.textField] = r[this.textField];
|
|
1542
|
+
}
|
|
1543
|
+
else {
|
|
1544
|
+
obj[this.valueField] = r || key;
|
|
1545
|
+
}
|
|
1546
|
+
})
|
|
1547
|
+
.finally(() => {
|
|
1548
|
+
obj['isLoading'] = false;
|
|
1549
|
+
this.dataService.cacheList[cacheKey] = obj;
|
|
1550
|
+
this.cdr.markForCheck();
|
|
1551
|
+
});
|
|
1552
|
+
}
|
|
1553
|
+
else if (existsItem) {
|
|
1554
|
+
obj[this.valueField] = complex ? existsItem[this.valueField] : existsItem;
|
|
1555
|
+
}
|
|
1556
|
+
else {
|
|
1557
|
+
obj[this.valueField] = complex ? item[this.valueField] : item;
|
|
1558
|
+
}
|
|
1559
|
+
}
|
|
1560
|
+
this.dataService.cacheList[cacheKey] = obj;
|
|
1561
|
+
return obj;
|
|
1562
|
+
}
|
|
1563
|
+
_normalizeSelectedItems() {
|
|
1564
|
+
const values = Array.isArray(this.value) ? this.value : this.value != null ? [this.value] : [];
|
|
1565
|
+
this.dataService.selectedItems = values.map((v) => this.normalizeItem(v));
|
|
1566
|
+
}
|
|
1567
|
+
unselectItems(...items) {
|
|
1568
|
+
if (!items || items.length === 0) {
|
|
1569
|
+
this.commitValue([], true);
|
|
1570
|
+
return;
|
|
1571
|
+
}
|
|
1572
|
+
const normalizeItems = Array.isArray(items) ? this.normalizeItemsList(items) : [this.normalizeItem(items)];
|
|
1573
|
+
const newSelectedItems = this.selectedItems.filter((i) => !normalizeItems.some((n) => n[this.valueField] == i[this.valueField]));
|
|
1574
|
+
this.commitValue(newSelectedItems, true);
|
|
1575
|
+
}
|
|
1576
|
+
selectItems(...items) {
|
|
1577
|
+
if (items && items.length) {
|
|
1578
|
+
let newSelectedItems = Array.isArray(this.value) ? this.value : [this.value];
|
|
1579
|
+
const normalizeItems = Array.isArray(items) ? this.normalizeItemsList(items) : [this.normalizeItem(items)];
|
|
1580
|
+
if (this.multiple) {
|
|
1581
|
+
newSelectedItems = [...newSelectedItems, ...normalizeItems];
|
|
1582
|
+
}
|
|
1583
|
+
else {
|
|
1584
|
+
newSelectedItems = normalizeItems;
|
|
1585
|
+
}
|
|
1586
|
+
this.commitValue(newSelectedItems, true);
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
toggleSelect(...items) {
|
|
1590
|
+
items?.forEach((item) => {
|
|
1591
|
+
if (this.multiple) {
|
|
1592
|
+
this.isItemSelected(item) ? this.unselectItems(item) : this.selectItems(item);
|
|
1593
|
+
}
|
|
1594
|
+
else {
|
|
1595
|
+
this.selectItems(item);
|
|
1596
|
+
}
|
|
1597
|
+
});
|
|
1598
|
+
}
|
|
1599
|
+
isItemSelected(item) {
|
|
1600
|
+
return this.selectedItems.some((c) => c[this.valueField] === this.normalizeItem(item)[this.valueField]);
|
|
1601
|
+
}
|
|
1602
|
+
isItemDisabled(item) {
|
|
1603
|
+
return (this.disabled ||
|
|
1604
|
+
coerceBooleanProperty(item[this.disabledField]) === true ||
|
|
1605
|
+
(this.disabledCallback ? this.disabledCallback({ item, index: -1 }) : false));
|
|
1606
|
+
}
|
|
1607
|
+
getDisplayText(item) {
|
|
1608
|
+
const normalizeItem = this.normalizeItem(item);
|
|
1609
|
+
return normalizeItem[this.textField] || normalizeItem[this.valueField];
|
|
1610
|
+
}
|
|
1611
|
+
getValue(item) {
|
|
1612
|
+
const normalizeItem = this.normalizeItem(item);
|
|
1613
|
+
return normalizeItem[this.valueField];
|
|
1614
|
+
}
|
|
1615
|
+
clearSelectionCache() {
|
|
1616
|
+
this.dataService.cacheList = {};
|
|
1617
|
+
this.dataService.selectedItems = [];
|
|
1618
|
+
}
|
|
1619
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXSelectionValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1620
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXSelectionValueComponent }); }
|
|
1621
|
+
}
|
|
1622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: MXSelectionValueComponent, decorators: [{
|
|
1623
|
+
type: Injectable
|
|
1624
|
+
}] });
|
|
1625
|
+
|
|
1626
|
+
class AXNgModelDelayedValueChangedDirective {
|
|
1627
|
+
get delayTime() {
|
|
1628
|
+
return this._delayTime;
|
|
1629
|
+
}
|
|
1630
|
+
set delayTime(v) {
|
|
1631
|
+
if (v != this._delayTime) {
|
|
1632
|
+
this._delayTime = v;
|
|
1633
|
+
this.axDelayTimeChange.emit(v);
|
|
1634
|
+
this.update();
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
ngOnDestroy() {
|
|
1638
|
+
this.subscription?.unsubscribe();
|
|
1639
|
+
}
|
|
1640
|
+
constructor(ngModel) {
|
|
1641
|
+
this.ngModel = ngModel;
|
|
1642
|
+
this.axDelayedValueChanged = new EventEmitter();
|
|
1643
|
+
this.axDelayTimeChange = new EventEmitter();
|
|
1644
|
+
this._delayTime = 0;
|
|
1645
|
+
this.delayTime = 0;
|
|
1646
|
+
}
|
|
1647
|
+
update() {
|
|
1648
|
+
this.subscription?.unsubscribe();
|
|
1649
|
+
//
|
|
1650
|
+
this.subscription = this.ngModel.control.valueChanges
|
|
1651
|
+
.pipe(skip(1), // skip initial value
|
|
1652
|
+
distinctUntilChanged(), debounceTime(this.delayTime))
|
|
1653
|
+
.subscribe((value) => this.axDelayedValueChanged.emit(value));
|
|
1654
|
+
}
|
|
1655
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXNgModelDelayedValueChangedDirective, deps: [{ token: i1$1.NgModel }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1656
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.2", type: AXNgModelDelayedValueChangedDirective, isStandalone: true, selector: "[axDelayedValueChanged]", inputs: { delayTime: "delayTime" }, outputs: { axDelayedValueChanged: "axDelayedValueChanged", axDelayTimeChange: "axDelayTimeChange" }, ngImport: i0 }); }
|
|
1657
|
+
}
|
|
1658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXNgModelDelayedValueChangedDirective, decorators: [{
|
|
1659
|
+
type: Directive,
|
|
1660
|
+
args: [{
|
|
1661
|
+
selector: '[axDelayedValueChanged]',
|
|
1662
|
+
standalone: true,
|
|
1663
|
+
}]
|
|
1664
|
+
}], ctorParameters: () => [{ type: i1$1.NgModel }], propDecorators: { axDelayedValueChanged: [{
|
|
1665
|
+
type: Output
|
|
1666
|
+
}], axDelayTimeChange: [{
|
|
1667
|
+
type: Output
|
|
1668
|
+
}], delayTime: [{
|
|
1669
|
+
type: Input
|
|
1670
|
+
}] } });
|
|
1671
|
+
|
|
1672
|
+
class AXRippleDirective {
|
|
1673
|
+
constructor(el, cdr) {
|
|
1674
|
+
this.el = el;
|
|
1675
|
+
this.cdr = cdr;
|
|
1676
|
+
this.enabled = true;
|
|
1677
|
+
this.axRippleColor = 'rgb(255, 255, 255 , 0.3)';
|
|
1678
|
+
}
|
|
1679
|
+
ngOnInit() {
|
|
1680
|
+
if (this.enabled) {
|
|
1681
|
+
this.el.nativeElement.addEventListener('click', (event) => {
|
|
1682
|
+
this.onElementClick(event);
|
|
1683
|
+
});
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
ngOnDestroy() {
|
|
1687
|
+
this.el.nativeElement.removeEventListener('click', this.createRipple.bind(this));
|
|
1688
|
+
}
|
|
1689
|
+
onElementClick(event) {
|
|
1690
|
+
this.createRipple(event);
|
|
1691
|
+
}
|
|
1692
|
+
createRipple(event) {
|
|
1693
|
+
const element = event.currentTarget;
|
|
1694
|
+
const exists = element.querySelector('.ax-ripple');
|
|
1695
|
+
if (exists)
|
|
1696
|
+
exists.remove();
|
|
1697
|
+
this.el.nativeElement.style.overflow = 'hidden';
|
|
1698
|
+
const rect = element.getBoundingClientRect();
|
|
1699
|
+
const x = Math.floor(((event.clientX - rect.left) / (rect.right - rect.left)) *
|
|
1700
|
+
element.clientWidth);
|
|
1701
|
+
const y = Math.floor(((event.clientY - rect.top) / (rect.bottom - rect.top)) *
|
|
1702
|
+
element.clientHeight);
|
|
1703
|
+
const circle = document.createElement('span');
|
|
1704
|
+
const diameter = Math.max(element.clientWidth, element.clientHeight);
|
|
1705
|
+
const radius = diameter / 2;
|
|
1706
|
+
circle.style.width = circle.style.height = `${diameter}px`;
|
|
1707
|
+
circle.style.left = `${x - radius}px`;
|
|
1708
|
+
circle.style.top = `${y - radius}px`;
|
|
1709
|
+
circle.style.backgroundColor = `${this.axRippleColor}`;
|
|
1710
|
+
circle.classList.add('ax-ripple');
|
|
1711
|
+
element.appendChild(circle);
|
|
1712
|
+
circle.addEventListener('animationend', () => {
|
|
1713
|
+
circle?.remove();
|
|
1714
|
+
});
|
|
1715
|
+
}
|
|
1716
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXRippleDirective, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1717
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.2", type: AXRippleDirective, isStandalone: true, selector: "[axRipple]", inputs: { enabled: ["axRipple", "enabled"], axRippleColor: "axRippleColor" }, ngImport: i0 }); }
|
|
1718
|
+
}
|
|
1719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.2", ngImport: i0, type: AXRippleDirective, decorators: [{
|
|
1720
|
+
type: Directive,
|
|
1721
|
+
args: [{
|
|
1722
|
+
selector: '[axRipple]',
|
|
1723
|
+
standalone: true,
|
|
1724
|
+
}]
|
|
1725
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }], propDecorators: { enabled: [{
|
|
1726
|
+
type: Input,
|
|
1727
|
+
args: ['axRipple']
|
|
1728
|
+
}], axRippleColor: [{
|
|
1729
|
+
type: Input
|
|
1730
|
+
}] } });
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* Generated bundle index. Do not edit.
|
|
1734
|
+
*/
|
|
1735
|
+
|
|
1736
|
+
export { AXAutoFocusDirective, AXButtonClickEvent, AXClearableComponent, AXClickEvent, AXClosbaleComponent, AXCommonModule, AXComponent, AXComponentCloseEvent, AXComponentClosedPromise, AXComponentClosing, AXComponentResult, AXDataSource, AXDomService, AXEvent, AXFocusEvent, AXFocusableComponent, AXHotkeyDirective, AXHotkeysService, AXHtmlEvent, AXInfiniteScrollerDirective, AXItemClickEvent, AXListDataSource, AXNgModelDelayedValueChangedDirective, AXOptionChangedEvent, AXPagedComponent, AXRangeChangedEvent, AXResponsiveDirective, AXRippleDirective, AXSearchableComponent, AXSelectionValueChangedEvent, AXValuableComponent, AXValueChangedEvent, AX_LOCATIONS, AX_PLACEMENT_BOTTOM, AX_PLACEMENT_BOTTOM_END, AX_PLACEMENT_BOTTOM_START, AX_PLACEMENT_END, AX_PLACEMENT_END_BOTTOM, AX_PLACEMENT_END_TOP, AX_PLACEMENT_MAP, AX_PLACEMENT_START, AX_PLACEMENT_START_BOTTOM, AX_PLACEMENT_START_TOP, AX_PLACEMENT_TOP, AX_PLACEMENT_TOP_END, AX_PLACEMENT_TOP_START, AX_SELECTION_DATA_TOKEN, AX_STYLE_COLOR_TYPES, MXBaseComponent, MXButtonBaseComponent, MXColorComponent, MXColorLookComponent, MXInputBaseValueComponent, MXInteractiveComponent, MXLookComponent, MXLookableComponent, MXSelectionBridgeService, MXSelectionValueComponent, MXValueComponent, TAB_META_KEY, convertArrayToDataSource, convertToPlacement };
|
|
1737
|
+
//# sourceMappingURL=acorex-components-common.mjs.map
|