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