@acorex/components 7.1.52 → 7.2.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/README.md +3 -20
- package/action-sheet/README.md +3 -0
- package/action-sheet/index.d.ts +4 -5
- package/alert/README.md +3 -0
- package/alert/index.d.ts +2 -5
- package/avatar/README.md +3 -0
- package/avatar/index.d.ts +3 -5
- package/badge/README.md +3 -0
- package/badge/index.d.ts +2 -5
- package/breadcrumbs/README.md +3 -0
- package/breadcrumbs/index.d.ts +4 -5
- package/breadcrumbs/lib/breadcrumbs-item.component.d.ts +80 -0
- package/button/README.md +3 -0
- package/button/index.d.ts +5 -5
- package/button/lib/button-group.component.d.ts +86 -0
- package/button/lib/button-item.component.d.ts +82 -0
- package/calendar/README.md +3 -0
- package/calendar/index.d.ts +4 -5
- package/calendar/lib/calendar.class.d.ts +81 -0
- package/checkbox/README.md +3 -0
- package/checkbox/index.d.ts +2 -5
- package/chips/README.md +3 -0
- package/chips/index.d.ts +2 -5
- package/chips/lib/chips.component.d.ts +71 -0
- package/collapse/README.md +3 -0
- package/collapse/index.d.ts +3 -5
- package/color-palette/README.md +3 -0
- package/color-palette/index.d.ts +7 -5
- package/color-picker/README.md +3 -0
- package/color-picker/index.d.ts +2 -5
- package/color-picker/lib/color-picker.component.d.ts +197 -0
- package/common/README.md +3 -0
- package/common/index.d.ts +22 -5
- package/common/lib/components/button-base-component.class.d.ts +36 -0
- package/common/lib/components/interactive-component.class.d.ts +37 -0
- package/common/lib/components/look-component.class.d.ts +15 -0
- package/context-menu/README.md +3 -0
- package/context-menu/index.d.ts +2 -5
- package/data-pager/README.md +3 -0
- package/data-pager/index.d.ts +9 -5
- package/data-pager/lib/data-pager-input-selector.component.d.ts +15 -0
- package/data-table/README.md +3 -0
- package/data-table/index.d.ts +4 -5
- package/date-picker/README.md +3 -0
- package/date-picker/index.d.ts +2 -5
- package/decorators/README.md +3 -0
- package/decorators/index.d.ts +14 -5
- package/dialog/README.md +3 -0
- package/dialog/index.d.ts +4 -5
- package/drawer/README.md +3 -0
- package/drawer/index.d.ts +3 -5
- package/dropdown/README.md +3 -0
- package/dropdown/index.d.ts +2 -5
- package/esm2022/acorex-components.mjs +2 -2
- package/esm2022/action-sheet/acorex-components-action-sheet.mjs +2 -2
- package/esm2022/action-sheet/index.mjs +5 -0
- package/esm2022/action-sheet/lib/action-sheet.component.mjs +78 -0
- package/esm2022/action-sheet/lib/action-sheet.interface.mjs +3 -0
- package/esm2022/action-sheet/lib/action-sheet.module.mjs +26 -0
- package/esm2022/action-sheet/lib/action-sheet.service.mjs +88 -0
- package/esm2022/alert/acorex-components-alert.mjs +2 -2
- package/esm2022/alert/index.mjs +3 -0
- package/esm2022/alert/lib/alert.component.mjs +191 -0
- package/esm2022/alert/lib/alert.module.mjs +22 -0
- package/esm2022/avatar/acorex-components-avatar.mjs +2 -2
- package/esm2022/avatar/index.mjs +4 -0
- package/esm2022/avatar/lib/avatar-group.component.mjs +16 -0
- package/esm2022/avatar/lib/avatar.component.mjs +36 -0
- package/esm2022/avatar/lib/avatar.module.mjs +22 -0
- package/esm2022/badge/acorex-components-badge.mjs +2 -2
- package/esm2022/badge/index.mjs +3 -0
- package/esm2022/badge/lib/badge.component.mjs +26 -0
- package/esm2022/badge/lib/badge.module.mjs +19 -0
- package/esm2022/breadcrumbs/acorex-components-breadcrumbs.mjs +2 -2
- package/esm2022/breadcrumbs/index.mjs +5 -0
- package/esm2022/breadcrumbs/lib/breadcrumbs-item.class.mjs +2 -0
- package/esm2022/breadcrumbs/lib/breadcrumbs-item.component.mjs +46 -0
- package/esm2022/breadcrumbs/lib/breadcrumbs.component.mjs +19 -0
- package/esm2022/breadcrumbs/lib/breadcrumbs.module.mjs +20 -0
- package/esm2022/button/acorex-components-button.mjs +2 -2
- package/esm2022/button/index.mjs +6 -0
- package/esm2022/button/lib/button-group.component.mjs +88 -0
- package/esm2022/button/lib/button-item.class.mjs +2 -0
- package/esm2022/button/lib/button-item.component.mjs +77 -0
- package/esm2022/button/lib/button.component.mjs +64 -0
- package/esm2022/button/lib/button.module.mjs +32 -0
- package/esm2022/calendar/acorex-components-calendar.mjs +2 -2
- package/esm2022/calendar/index.mjs +5 -0
- package/esm2022/calendar/lib/calendar-range.component.mjs +175 -0
- package/esm2022/calendar/lib/calendar.class.mjs +233 -0
- package/esm2022/calendar/lib/calendar.component.mjs +417 -0
- package/esm2022/calendar/lib/calendar.module.mjs +23 -0
- package/esm2022/checkbox/acorex-components-checkbox.mjs +2 -2
- package/esm2022/checkbox/index.mjs +3 -0
- package/esm2022/checkbox/lib/checkbox.component.mjs +41 -0
- package/esm2022/checkbox/lib/checkbox.module.mjs +21 -0
- package/esm2022/chips/acorex-components-chips.mjs +2 -2
- package/esm2022/chips/index.mjs +3 -0
- package/esm2022/chips/lib/chips.component.mjs +32 -0
- package/esm2022/chips/lib/chips.module.mjs +19 -0
- package/esm2022/collapse/acorex-components-collapse.mjs +2 -2
- package/esm2022/collapse/index.mjs +4 -0
- package/esm2022/collapse/lib/collapse-group.component.mjs +53 -0
- package/esm2022/collapse/lib/collapse.component.mjs +45 -0
- package/esm2022/collapse/lib/collapse.module.mjs +20 -0
- package/esm2022/color-palette/acorex-components-color-palette.mjs +2 -2
- package/esm2022/color-palette/index.mjs +8 -0
- package/esm2022/color-palette/lib/color-palette-input.component.mjs +129 -0
- package/esm2022/color-palette/lib/color-palette-picker.component.mjs +159 -0
- package/esm2022/color-palette/lib/color-palette-preview.component.mjs +60 -0
- package/esm2022/color-palette/lib/color-palette-swatches.component.mjs +302 -0
- package/esm2022/color-palette/lib/color-palette.class.mjs +17 -0
- package/esm2022/color-palette/lib/color-palette.component.mjs +74 -0
- package/esm2022/color-palette/lib/color-palette.module.mjs +60 -0
- package/esm2022/color-picker/acorex-components-color-picker.mjs +2 -2
- package/esm2022/color-picker/index.mjs +3 -0
- package/esm2022/color-picker/lib/color-picker.component.mjs +113 -0
- package/esm2022/color-picker/lib/color-picker.module.mjs +61 -0
- package/esm2022/common/acorex-components-common.mjs +2 -2
- package/esm2022/common/index.mjs +23 -0
- package/esm2022/common/lib/classes/components.class.mjs +69 -0
- package/esm2022/common/lib/classes/data.class.mjs +2 -0
- package/esm2022/common/lib/classes/drawing.class.mjs +2 -0
- package/esm2022/common/lib/classes/events.class.mjs +79 -0
- package/esm2022/common/lib/classes/styles.class.mjs +4 -0
- package/esm2022/common/lib/common.module.mjs +42 -0
- package/esm2022/common/lib/components/base-component.class.mjs +67 -0
- package/esm2022/common/lib/components/button-base-component.class.mjs +80 -0
- package/esm2022/common/lib/components/color-component.class.mjs +27 -0
- package/esm2022/common/lib/components/colorlook-component.class.mjs +11 -0
- package/esm2022/common/lib/components/interactive-component.class.mjs +64 -0
- package/esm2022/common/lib/components/look-component.class.mjs +27 -0
- package/esm2022/common/lib/components/value-component.class.mjs +202 -0
- package/esm2022/common/lib/constant/positions.mjs +75 -0
- package/esm2022/common/lib/directives/auto-focus.directive.mjs +56 -0
- package/esm2022/common/lib/directives/debounce-time.directive.mjs +48 -0
- package/esm2022/common/lib/directives/hotkey.directive.mjs +81 -0
- package/esm2022/common/lib/directives/infinite-scroll.directive.mjs +63 -0
- package/esm2022/common/lib/directives/responsive.directive.mjs +37 -0
- package/esm2022/common/lib/services/custom-cdk-overlay.service.mjs +49 -0
- package/esm2022/common/lib/services/hotkey.service.mjs +46 -0
- package/esm2022/common/lib/services/overlay.service.mjs +113 -0
- package/esm2022/context-menu/acorex-components-context-menu.mjs +2 -2
- package/esm2022/context-menu/index.mjs +3 -0
- package/esm2022/context-menu/lib/context-menu.component.mjs +262 -0
- package/esm2022/context-menu/lib/context-menu.module.mjs +36 -0
- package/esm2022/data-pager/acorex-components-data-pager.mjs +2 -2
- package/esm2022/data-pager/index.mjs +10 -0
- package/esm2022/data-pager/lib/data-pager-base.component.mjs +38 -0
- package/esm2022/data-pager/lib/data-pager-info.component.mjs +53 -0
- package/esm2022/data-pager/lib/data-pager-input-selector.component.mjs +65 -0
- package/esm2022/data-pager/lib/data-pager-next-buttons.components.mjs +87 -0
- package/esm2022/data-pager/lib/data-pager-numeric-selector.component.mjs +130 -0
- package/esm2022/data-pager/lib/data-pager-pagesize-dropdown.component.mjs +95 -0
- package/esm2022/data-pager/lib/data-pager-prev-buttons.component.mjs +83 -0
- package/esm2022/data-pager/lib/data-pager.component.mjs +143 -0
- package/esm2022/data-pager/lib/data-pager.module.mjs +51 -0
- package/esm2022/data-table/acorex-components-data-table.mjs +2 -2
- package/esm2022/data-table/index.mjs +5 -0
- package/esm2022/data-table/lib/data-column-cell-template.directive.mjs +17 -0
- package/esm2022/data-table/lib/data-column.directive.mjs +43 -0
- package/esm2022/data-table/lib/data-table.component.mjs +137 -0
- package/esm2022/data-table/lib/data-table.module.mjs +27 -0
- package/esm2022/date-picker/acorex-components-date-picker.mjs +2 -2
- package/esm2022/date-picker/index.mjs +3 -0
- package/esm2022/date-picker/lib/datepicker.component.mjs +125 -0
- package/esm2022/date-picker/lib/datepicker.module.mjs +44 -0
- package/esm2022/decorators/acorex-components-decorators.mjs +2 -2
- package/esm2022/decorators/index.mjs +15 -0
- package/esm2022/decorators/lib/close-button.component.mjs +50 -0
- package/esm2022/decorators/lib/content.component.mjs +21 -0
- package/esm2022/decorators/lib/decorators.module.mjs +71 -0
- package/esm2022/decorators/lib/footer.component.mjs +29 -0
- package/esm2022/decorators/lib/form-hint.component.mjs +20 -0
- package/esm2022/decorators/lib/header.component.mjs +29 -0
- package/esm2022/decorators/lib/icon.component.mjs +29 -0
- package/esm2022/decorators/lib/overlay.component.mjs +22 -0
- package/esm2022/decorators/lib/placeholder.component.mjs +14 -0
- package/esm2022/decorators/lib/prefix.component.mjs +21 -0
- package/esm2022/decorators/lib/sub-title.component.mjs +27 -0
- package/esm2022/decorators/lib/suffix.component.mjs +21 -0
- package/esm2022/decorators/lib/text.component.mjs +21 -0
- package/esm2022/decorators/lib/title.component.mjs +20 -0
- package/esm2022/dialog/acorex-components-dialog.mjs +2 -2
- package/esm2022/dialog/index.mjs +5 -0
- package/esm2022/dialog/lib/dialog.class.mjs +2 -0
- package/esm2022/dialog/lib/dialog.component.mjs +52 -0
- package/esm2022/dialog/lib/dialog.module.mjs +27 -0
- package/esm2022/dialog/lib/dialog.service.mjs +152 -0
- package/esm2022/drawer/acorex-components-drawer.mjs +2 -2
- package/esm2022/drawer/index.mjs +4 -0
- package/esm2022/drawer/lib/drawer-container.component.mjs +37 -0
- package/esm2022/drawer/lib/drawer.component.mjs +140 -0
- package/esm2022/drawer/lib/drawer.module.mjs +22 -0
- package/esm2022/dropdown/acorex-components-dropdown.mjs +2 -2
- package/esm2022/dropdown/index.mjs +3 -0
- package/esm2022/dropdown/lib/dropdown-panel.component.mjs +102 -0
- package/esm2022/dropdown/lib/dropdown.module.mjs +25 -0
- package/esm2022/form/acorex-components-form.mjs +2 -2
- package/esm2022/form/index.mjs +7 -0
- package/esm2022/form/lib/form-field.component.mjs +15 -0
- package/esm2022/form/lib/form.component.mjs +166 -0
- package/esm2022/form/lib/form.module.mjs +63 -0
- package/esm2022/form/lib/validation-rule.widget.mjs +115 -0
- package/esm2022/form/lib/validation-summary.component.mjs +106 -0
- package/esm2022/form/lib/validation.class.mjs +2 -0
- package/esm2022/image/acorex-components-image.mjs +2 -2
- package/esm2022/image/index.mjs +3 -0
- package/esm2022/image/lib/image.component.mjs +76 -0
- package/esm2022/image/lib/image.module.mjs +19 -0
- package/esm2022/index.mjs +2 -0
- package/esm2022/label/acorex-components-label.mjs +2 -2
- package/esm2022/label/index.mjs +3 -0
- package/esm2022/label/lib/label.component.mjs +45 -0
- package/esm2022/label/lib/label.module.mjs +21 -0
- package/esm2022/loading/acorex-components-loading.mjs +2 -2
- package/esm2022/loading/index.mjs +6 -0
- package/esm2022/loading/lib/loading-spinner.component.mjs +68 -0
- package/esm2022/loading/lib/loading.component.mjs +64 -0
- package/esm2022/loading/lib/loading.directive.mjs +68 -0
- package/esm2022/loading/lib/loading.module.mjs +35 -0
- package/esm2022/loading/lib/loading.service.mjs +151 -0
- package/esm2022/menu/acorex-components-menu.mjs +2 -2
- package/esm2022/menu/index.mjs +3 -0
- package/esm2022/menu/lib/menu.component.mjs +346 -0
- package/esm2022/menu/lib/menu.module.mjs +33 -0
- package/esm2022/mixin/acorex-components-mixin.mjs +2 -2
- package/esm2022/mixin/index.mjs +18 -0
- package/esm2022/mixin/lib/base-components.class.mjs +109 -0
- package/esm2022/mixin/lib/base-menu-mixin.class.mjs +137 -0
- package/esm2022/mixin/lib/button-mixin.class.mjs +66 -0
- package/esm2022/mixin/lib/clickable-mixin.class.mjs +24 -0
- package/esm2022/mixin/lib/color-look-mixing.class.mjs +45 -0
- package/esm2022/mixin/lib/constratctor.mjs +2 -0
- package/esm2022/mixin/lib/datalist-component.class.mjs +157 -0
- package/esm2022/mixin/lib/datalist.class.mjs +3 -0
- package/esm2022/mixin/lib/dropdown-mixin.class.mjs +97 -0
- package/esm2022/mixin/lib/interactive-mixin.class.mjs +83 -0
- package/esm2022/mixin/lib/loading-mixin.class.mjs +18 -0
- package/esm2022/mixin/lib/mixin.class.mjs +26 -0
- package/esm2022/mixin/lib/page-component.class.mjs +11 -0
- package/esm2022/mixin/lib/selection-component.class.mjs +180 -0
- package/esm2022/mixin/lib/sizable-mixin.class.mjs +16 -0
- package/esm2022/mixin/lib/textbox-mixin.class.mjs +58 -0
- package/esm2022/mixin/lib/value-mixin.class.mjs +224 -0
- package/esm2022/notification/acorex-components-notification.mjs +2 -2
- package/esm2022/notification/index.mjs +5 -0
- package/esm2022/notification/lib/notification.class.mjs +2 -0
- package/esm2022/notification/lib/notification.component.mjs +83 -0
- package/esm2022/notification/lib/notification.module.mjs +23 -0
- package/esm2022/notification/lib/notification.service.mjs +108 -0
- package/esm2022/number-box/acorex-components-number-box.mjs +2 -2
- package/esm2022/number-box/index.mjs +3 -0
- package/esm2022/number-box/lib/number-box.component.mjs +248 -0
- package/esm2022/number-box/lib/number-box.module.mjs +35 -0
- package/esm2022/otp/acorex-components-otp.mjs +5 -0
- package/esm2022/otp/index.mjs +4 -0
- package/esm2022/otp/lib/otp.class.mjs +4 -0
- package/esm2022/otp/lib/otp.component.mjs +113 -0
- package/esm2022/otp/lib/otp.module.mjs +21 -0
- package/esm2022/page/acorex-components-page.mjs +2 -2
- package/esm2022/page/index.mjs +4 -0
- package/esm2022/page/lib/base-page.class.mjs +61 -0
- package/esm2022/page/lib/page.component.mjs +44 -0
- package/esm2022/page/lib/page.module.mjs +18 -0
- package/esm2022/password-box/acorex-components-password-box.mjs +2 -2
- package/esm2022/password-box/index.mjs +3 -0
- package/esm2022/password-box/lib/password-box.component.mjs +65 -0
- package/esm2022/password-box/lib/password-box.module.mjs +32 -0
- package/esm2022/popover/acorex-components-popover.mjs +2 -2
- package/esm2022/popover/index.mjs +4 -0
- package/esm2022/popover/lib/dropdown-component.class.mjs +73 -0
- package/esm2022/popover/lib/popover.component.mjs +264 -0
- package/esm2022/popover/lib/popover.module.mjs +19 -0
- package/esm2022/popup/acorex-components-popup.mjs +2 -2
- package/esm2022/popup/index.mjs +4 -0
- package/esm2022/popup/lib/popup.component.mjs +141 -0
- package/esm2022/popup/lib/popup.module.mjs +27 -0
- package/esm2022/popup/lib/popup.service.mjs +114 -0
- package/esm2022/progress-bar/acorex-components-progress-bar.mjs +2 -2
- package/esm2022/progress-bar/index.mjs +3 -0
- package/esm2022/progress-bar/lib/progress-bar.component.mjs +33 -0
- package/esm2022/progress-bar/lib/progress-bar.module.mjs +19 -0
- package/esm2022/radio/acorex-components-radio.mjs +2 -2
- package/esm2022/radio/index.mjs +3 -0
- package/esm2022/radio/lib/radio.component.mjs +39 -0
- package/esm2022/radio/lib/radio.module.mjs +22 -0
- package/esm2022/range-slider/acorex-components-range-slider.mjs +2 -2
- package/esm2022/range-slider/index.mjs +3 -0
- package/esm2022/range-slider/lib/range-slider.component.mjs +109 -0
- package/esm2022/range-slider/lib/range-slider.module.mjs +22 -0
- package/esm2022/result/acorex-components-result.mjs +2 -2
- package/esm2022/result/index.mjs +3 -0
- package/esm2022/result/lib/result.component.mjs +24 -0
- package/esm2022/result/lib/result.module.mjs +19 -0
- package/esm2022/search-box/acorex-components-search-box.mjs +2 -2
- package/esm2022/search-box/index.mjs +3 -0
- package/esm2022/search-box/lib/search-box.component.mjs +60 -0
- package/esm2022/search-box/lib/search-box.module.mjs +25 -0
- package/esm2022/select-box/acorex-components-select-box.mjs +2 -2
- package/esm2022/select-box/index.mjs +3 -0
- package/esm2022/select-box/lib/select-box.component.mjs +366 -0
- package/esm2022/select-box/lib/select-box.module.mjs +61 -0
- package/esm2022/selection-list/acorex-components-selection-list.mjs +2 -2
- package/esm2022/selection-list/index.mjs +3 -0
- package/esm2022/selection-list/lib/selection-list.component.mjs +60 -0
- package/esm2022/selection-list/lib/selection-list.module.mjs +24 -0
- package/esm2022/switch/acorex-components-switch.mjs +2 -2
- package/esm2022/switch/index.mjs +4 -0
- package/esm2022/switch/lib/switch-content.component.mjs +16 -0
- package/esm2022/switch/lib/switch.component.mjs +51 -0
- package/esm2022/switch/lib/switch.module.mjs +22 -0
- package/esm2022/tabs/acorex-components-tabs.mjs +2 -2
- package/esm2022/tabs/index.mjs +6 -0
- package/esm2022/tabs/lib/tab-content.directive.mjs +29 -0
- package/esm2022/tabs/lib/tab-item.component.mjs +142 -0
- package/esm2022/tabs/lib/tabs.class.mjs +4 -0
- package/esm2022/tabs/lib/tabs.component.mjs +108 -0
- package/esm2022/tabs/lib/tabs.module.mjs +25 -0
- package/esm2022/tag/acorex-components-tag.mjs +2 -2
- package/esm2022/tag/index.mjs +3 -0
- package/esm2022/tag/lib/tag.component.mjs +29 -0
- package/esm2022/tag/lib/tag.module.mjs +19 -0
- package/esm2022/textarea/acorex-components-textarea.mjs +2 -2
- package/esm2022/textarea/index.mjs +3 -0
- package/esm2022/textarea/lib/textarea.component.mjs +37 -0
- package/esm2022/textarea/lib/textarea.module.mjs +19 -0
- package/esm2022/textbox/acorex-components-textbox.mjs +2 -2
- package/esm2022/textbox/index.mjs +4 -0
- package/esm2022/textbox/lib/mask-options.directive.mjs +17 -0
- package/esm2022/textbox/lib/textbox.component.mjs +93 -0
- package/esm2022/textbox/lib/textbox.module.mjs +38 -0
- package/esm2022/time-box/acorex-components-time-box.mjs +2 -2
- package/esm2022/time-box/index.mjs +3 -0
- package/esm2022/time-box/lib/time-box.component.mjs +296 -0
- package/esm2022/time-box/lib/time-box.module.mjs +32 -0
- package/esm2022/toast/acorex-components-toast.mjs +2 -2
- package/esm2022/toast/index.mjs +5 -0
- package/esm2022/toast/lib/toast.class.mjs +2 -0
- package/esm2022/toast/lib/toast.component.mjs +67 -0
- package/esm2022/toast/lib/toast.module.mjs +22 -0
- package/esm2022/toast/lib/toast.service.mjs +135 -0
- package/esm2022/tooltip/acorex-components-tooltip.mjs +2 -2
- package/esm2022/tooltip/index.mjs +4 -0
- package/esm2022/tooltip/lib/tooltip.component.mjs +20 -0
- package/esm2022/tooltip/lib/tooltip.directive.mjs +158 -0
- package/esm2022/tooltip/lib/tooltip.module.mjs +22 -0
- package/esm2022/uploader/acorex-components-uploader.mjs +2 -2
- package/esm2022/uploader/index.mjs +3 -0
- package/esm2022/uploader/lib/uploader.component.mjs +99 -0
- package/esm2022/uploader/lib/uploader.module.mjs +20 -0
- package/fesm2022/acorex-components-action-sheet.mjs +20 -22
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +15 -19
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +22 -24
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +11 -8
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +12 -18
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +33 -35
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +133 -85
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-checkbox.mjs +7 -8
- package/fesm2022/acorex-components-checkbox.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +11 -12
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-collapse.mjs +24 -25
- package/fesm2022/acorex-components-collapse.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +294 -301
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-color-picker.mjs +13 -20
- package/fesm2022/acorex-components-color-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-common.mjs +838 -868
- package/fesm2022/acorex-components-common.mjs.map +1 -1
- package/fesm2022/acorex-components-context-menu.mjs +12 -22
- package/fesm2022/acorex-components-context-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +198 -110
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +40 -50
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-date-picker.mjs +51 -25
- package/fesm2022/acorex-components-date-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +53 -54
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +11 -17
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +17 -22
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +17 -20
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +59 -62
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +18 -21
- package/fesm2022/acorex-components-image.mjs.map +1 -1
- package/fesm2022/acorex-components-label.mjs +9 -12
- package/fesm2022/acorex-components-label.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +86 -88
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +45 -32
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-mixin.mjs +170 -174
- package/fesm2022/acorex-components-mixin.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +17 -28
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +42 -33
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs +141 -0
- package/fesm2022/acorex-components-otp.mjs.map +1 -0
- package/fesm2022/acorex-components-page.mjs +17 -21
- package/fesm2022/acorex-components-page.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +25 -23
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +66 -68
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +39 -48
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +9 -9
- package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +7 -7
- package/fesm2022/acorex-components-radio.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +17 -25
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +9 -11
- package/fesm2022/acorex-components-result.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +12 -14
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +42 -43
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +12 -11
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +10 -13
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +63 -68
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +9 -9
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-textarea.mjs +18 -10
- package/fesm2022/acorex-components-textarea.mjs.map +1 -1
- package/fesm2022/acorex-components-textbox.mjs +30 -22
- package/fesm2022/acorex-components-textbox.mjs.map +1 -1
- package/fesm2022/acorex-components-time-box.mjs +38 -23
- package/fesm2022/acorex-components-time-box.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +22 -24
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +15 -22
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +13 -16
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components.mjs +1 -6
- package/fesm2022/acorex-components.mjs.map +1 -1
- package/form/README.md +3 -0
- package/form/index.d.ts +6 -5
- package/image/README.md +3 -0
- package/image/index.d.ts +2 -5
- package/image/lib/image.component.d.ts +27 -0
- package/index.d.ts +2 -5
- package/label/README.md +3 -0
- package/label/index.d.ts +2 -5
- package/loading/README.md +3 -0
- package/loading/index.d.ts +5 -5
- package/loading/lib/loading.directive.d.ts +22 -0
- package/menu/README.md +3 -0
- package/menu/index.d.ts +2 -5
- package/menu/lib/menu.component.d.ts +42 -0
- package/mixin/README.md +3 -0
- package/mixin/index.d.ts +17 -5
- package/mixin/lib/base-components.class.d.ts +84 -0
- package/mixin/lib/base-menu-mixin.class.d.ts +53 -0
- package/mixin/lib/button-mixin.class.d.ts +53 -0
- package/mixin/lib/clickable-mixin.class.d.ts +36 -0
- package/mixin/lib/color-look-mixing.class.d.ts +44 -0
- package/mixin/lib/datalist-component.class.d.ts +59 -0
- package/mixin/lib/dropdown-mixin.class.d.ts +47 -0
- package/mixin/lib/interactive-mixin.class.d.ts +60 -0
- package/mixin/lib/loading-mixin.class.d.ts +40 -0
- package/mixin/lib/mixin.class.d.ts +679 -0
- package/mixin/lib/page-component.class.d.ts +28 -0
- package/mixin/lib/selection-component.class.d.ts +61 -0
- package/mixin/lib/sizable-mixin.class.d.ts +34 -0
- package/mixin/lib/textbox-mixin.class.d.ts +68 -0
- package/mixin/lib/value-mixin.class.d.ts +63 -0
- package/notification/README.md +3 -0
- package/notification/index.d.ts +4 -5
- package/number-box/README.md +3 -0
- package/number-box/index.d.ts +2 -5
- package/otp/README.md +3 -0
- package/otp/index.d.ts +3 -0
- package/otp/lib/otp.class.d.ts +4 -0
- package/otp/lib/otp.component.d.ts +25 -0
- package/otp/lib/otp.module.d.ts +8 -0
- package/package.json +18 -34
- package/page/README.md +3 -0
- package/page/index.d.ts +3 -5
- package/page/lib/page.component.d.ts +14 -0
- package/password-box/README.md +3 -0
- package/password-box/index.d.ts +2 -5
- package/popover/README.md +3 -0
- package/popover/index.d.ts +3 -5
- package/popup/README.md +3 -0
- package/popup/index.d.ts +3 -5
- package/progress-bar/README.md +3 -0
- package/progress-bar/index.d.ts +2 -5
- package/radio/README.md +3 -0
- package/radio/index.d.ts +2 -5
- package/range-slider/README.md +3 -0
- package/range-slider/index.d.ts +2 -5
- package/result/README.md +3 -0
- package/result/index.d.ts +2 -5
- package/result/lib/result.component.d.ts +10 -0
- package/search-box/README.md +3 -0
- package/search-box/index.d.ts +2 -5
- package/select-box/README.md +3 -0
- package/select-box/index.d.ts +2 -5
- package/select-box/lib/select-box.module.d.ts +18 -0
- package/selection-list/README.md +3 -0
- package/selection-list/index.d.ts +2 -5
- package/switch/README.md +3 -0
- package/switch/index.d.ts +3 -5
- package/tabs/README.md +3 -0
- package/tabs/index.d.ts +5 -5
- package/tabs/lib/tab-item.component.d.ts +48 -0
- package/tag/README.md +3 -0
- package/tag/index.d.ts +2 -5
- package/textarea/README.md +3 -0
- package/textarea/index.d.ts +2 -5
- package/textbox/README.md +3 -0
- package/textbox/index.d.ts +3 -5
- package/time-box/README.md +3 -0
- package/time-box/index.d.ts +2 -5
- package/toast/README.md +3 -0
- package/toast/index.d.ts +4 -5
- package/tooltip/README.md +3 -0
- package/tooltip/index.d.ts +3 -5
- package/uploader/README.md +3 -0
- package/uploader/index.d.ts +2 -5
- package/action-sheet/public-api.d.ts +0 -4
- package/alert/public-api.d.ts +0 -2
- package/avatar/public-api.d.ts +0 -3
- package/badge/public-api.d.ts +0 -2
- package/breadcrumbs/public-api.d.ts +0 -4
- package/breadcrumbs/src/breadcrumbs-item.component.d.ts +0 -79
- package/button/public-api.d.ts +0 -5
- package/button/src/button-group.component.d.ts +0 -86
- package/button/src/button-item.component.d.ts +0 -80
- package/calendar/public-api.d.ts +0 -4
- package/calendar/src/calendar.class.d.ts +0 -81
- package/card/index.d.ts +0 -5
- package/card/public-api.d.ts +0 -2
- package/card/src/card.component.d.ts +0 -10
- package/card/src/card.module.d.ts +0 -8
- package/checkbox/public-api.d.ts +0 -2
- package/chips/public-api.d.ts +0 -2
- package/chips/src/chips.component.d.ts +0 -72
- package/collapse/public-api.d.ts +0 -3
- package/color-palette/public-api.d.ts +0 -7
- package/color-picker/public-api.d.ts +0 -2
- package/color-picker/src/color-picker.component.d.ts +0 -195
- package/common/public-api.d.ts +0 -16
- package/common/src/components/button-base-component.class.d.ts +0 -36
- package/common/src/components/index.d.ts +0 -7
- package/common/src/components/interactive-component.class.d.ts +0 -37
- package/common/src/components/look-component.class.d.ts +0 -15
- package/context-menu/public-api.d.ts +0 -2
- package/data-pager/public-api.d.ts +0 -9
- package/data-pager/src/data-pager-input-selector.component.d.ts +0 -15
- package/data-table/public-api.d.ts +0 -4
- package/date-picker/public-api.d.ts +0 -2
- package/decorators/public-api.d.ts +0 -14
- package/dialog/public-api.d.ts +0 -4
- package/drawer/public-api.d.ts +0 -3
- package/dropdown/public-api.d.ts +0 -2
- package/esm2022/action-sheet/public-api.mjs +0 -5
- package/esm2022/action-sheet/src/action-sheet.component.mjs +0 -79
- package/esm2022/action-sheet/src/action-sheet.interface.mjs +0 -3
- package/esm2022/action-sheet/src/action-sheet.module.mjs +0 -27
- package/esm2022/action-sheet/src/action-sheet.service.mjs +0 -90
- package/esm2022/alert/public-api.mjs +0 -3
- package/esm2022/alert/src/alert.component.mjs +0 -196
- package/esm2022/alert/src/alert.module.mjs +0 -23
- package/esm2022/avatar/public-api.mjs +0 -4
- package/esm2022/avatar/src/avatar-group.component.mjs +0 -17
- package/esm2022/avatar/src/avatar.component.mjs +0 -39
- package/esm2022/avatar/src/avatar.module.mjs +0 -23
- package/esm2022/badge/public-api.mjs +0 -3
- package/esm2022/badge/src/badge.component.mjs +0 -24
- package/esm2022/badge/src/badge.module.mjs +0 -20
- package/esm2022/breadcrumbs/public-api.mjs +0 -5
- package/esm2022/breadcrumbs/src/breadcrumbs-item.class.mjs +0 -2
- package/esm2022/breadcrumbs/src/breadcrumbs-item.component.mjs +0 -51
- package/esm2022/breadcrumbs/src/breadcrumbs.component.mjs +0 -22
- package/esm2022/breadcrumbs/src/breadcrumbs.module.mjs +0 -21
- package/esm2022/button/public-api.mjs +0 -6
- package/esm2022/button/src/button-group.component.mjs +0 -92
- package/esm2022/button/src/button-item.class.mjs +0 -2
- package/esm2022/button/src/button-item.component.mjs +0 -80
- package/esm2022/button/src/button.component.mjs +0 -62
- package/esm2022/button/src/button.module.mjs +0 -33
- package/esm2022/calendar/public-api.mjs +0 -5
- package/esm2022/calendar/src/calendar-range.component.mjs +0 -174
- package/esm2022/calendar/src/calendar.class.mjs +0 -231
- package/esm2022/calendar/src/calendar.component.mjs +0 -374
- package/esm2022/calendar/src/calendar.module.mjs +0 -24
- package/esm2022/card/acorex-components-card.mjs +0 -5
- package/esm2022/card/public-api.mjs +0 -3
- package/esm2022/card/src/card.component.mjs +0 -19
- package/esm2022/card/src/card.module.mjs +0 -20
- package/esm2022/checkbox/public-api.mjs +0 -3
- package/esm2022/checkbox/src/checkbox.component.mjs +0 -43
- package/esm2022/checkbox/src/checkbox.module.mjs +0 -22
- package/esm2022/chips/public-api.mjs +0 -3
- package/esm2022/chips/src/chips.component.mjs +0 -34
- package/esm2022/chips/src/chips.module.mjs +0 -20
- package/esm2022/collapse/public-api.mjs +0 -4
- package/esm2022/collapse/src/collapse-group.component.mjs +0 -53
- package/esm2022/collapse/src/collapse.component.mjs +0 -48
- package/esm2022/collapse/src/collapse.module.mjs +0 -21
- package/esm2022/color-palette/public-api.mjs +0 -8
- package/esm2022/color-palette/src/color-palette-input.component.mjs +0 -131
- package/esm2022/color-palette/src/color-palette-picker.component.mjs +0 -160
- package/esm2022/color-palette/src/color-palette-preview.component.mjs +0 -63
- package/esm2022/color-palette/src/color-palette-swatches.component.mjs +0 -305
- package/esm2022/color-palette/src/color-palette.class.mjs +0 -19
- package/esm2022/color-palette/src/color-palette.component.mjs +0 -76
- package/esm2022/color-palette/src/color-palette.module.mjs +0 -61
- package/esm2022/color-picker/public-api.mjs +0 -3
- package/esm2022/color-picker/src/color-picker.component.mjs +0 -120
- package/esm2022/color-picker/src/color-picker.module.mjs +0 -62
- package/esm2022/common/public-api.mjs +0 -17
- package/esm2022/common/src/classes/components.class.mjs +0 -78
- package/esm2022/common/src/classes/data.class.mjs +0 -2
- package/esm2022/common/src/classes/drawing.class.mjs +0 -2
- package/esm2022/common/src/classes/events.class.mjs +0 -96
- package/esm2022/common/src/classes/styles.class.mjs +0 -4
- package/esm2022/common/src/common.module.mjs +0 -43
- package/esm2022/common/src/components/base-component.class.mjs +0 -67
- package/esm2022/common/src/components/button-base-component.class.mjs +0 -69
- package/esm2022/common/src/components/color-component.class.mjs +0 -27
- package/esm2022/common/src/components/colorlook-component.class.mjs +0 -11
- package/esm2022/common/src/components/index.mjs +0 -8
- package/esm2022/common/src/components/interactive-component.class.mjs +0 -63
- package/esm2022/common/src/components/look-component.class.mjs +0 -27
- package/esm2022/common/src/components/value-component.class.mjs +0 -204
- package/esm2022/common/src/constant/positions.mjs +0 -75
- package/esm2022/common/src/directives/auto-focus.directive.mjs +0 -58
- package/esm2022/common/src/directives/debounce-time.directive.mjs +0 -50
- package/esm2022/common/src/directives/hotkey.directive.mjs +0 -83
- package/esm2022/common/src/directives/infinite-scroll.directive.mjs +0 -70
- package/esm2022/common/src/directives/responsive.directive.mjs +0 -39
- package/esm2022/common/src/services/custom-cdk-overlay.service.mjs +0 -52
- package/esm2022/common/src/services/hotkey.service.mjs +0 -48
- package/esm2022/common/src/services/overlay.service.mjs +0 -116
- package/esm2022/context-menu/public-api.mjs +0 -3
- package/esm2022/context-menu/src/context-menu.component.mjs +0 -271
- package/esm2022/context-menu/src/context-menu.module.mjs +0 -37
- package/esm2022/data-pager/public-api.mjs +0 -10
- package/esm2022/data-pager/src/data-pager-base.component.mjs +0 -37
- package/esm2022/data-pager/src/data-pager-info.component.mjs +0 -62
- package/esm2022/data-pager/src/data-pager-input-selector.component.mjs +0 -54
- package/esm2022/data-pager/src/data-pager-next-buttons.components.mjs +0 -67
- package/esm2022/data-pager/src/data-pager-numeric-selector.component.mjs +0 -99
- package/esm2022/data-pager/src/data-pager-pagesize-dropdown.component.mjs +0 -87
- package/esm2022/data-pager/src/data-pager-prev-buttons.component.mjs +0 -62
- package/esm2022/data-pager/src/data-pager.component.mjs +0 -147
- package/esm2022/data-pager/src/data-pager.module.mjs +0 -52
- package/esm2022/data-table/public-api.mjs +0 -5
- package/esm2022/data-table/src/data-column-cell-template.directive.mjs +0 -19
- package/esm2022/data-table/src/data-column.directive.mjs +0 -51
- package/esm2022/data-table/src/data-table.component.mjs +0 -140
- package/esm2022/data-table/src/data-table.module.mjs +0 -28
- package/esm2022/date-picker/public-api.mjs +0 -3
- package/esm2022/date-picker/src/datepicker.component.mjs +0 -100
- package/esm2022/date-picker/src/datepicker.module.mjs +0 -45
- package/esm2022/decorators/public-api.mjs +0 -15
- package/esm2022/decorators/src/close-button.component.mjs +0 -52
- package/esm2022/decorators/src/content.component.mjs +0 -22
- package/esm2022/decorators/src/decorators.module.mjs +0 -72
- package/esm2022/decorators/src/footer.component.mjs +0 -30
- package/esm2022/decorators/src/form-hint.component.mjs +0 -21
- package/esm2022/decorators/src/header.component.mjs +0 -30
- package/esm2022/decorators/src/icon.component.mjs +0 -31
- package/esm2022/decorators/src/overlay.component.mjs +0 -21
- package/esm2022/decorators/src/placeholder.component.mjs +0 -15
- package/esm2022/decorators/src/prefix.component.mjs +0 -22
- package/esm2022/decorators/src/sub-title.component.mjs +0 -28
- package/esm2022/decorators/src/suffix.component.mjs +0 -22
- package/esm2022/decorators/src/text.component.mjs +0 -23
- package/esm2022/decorators/src/title.component.mjs +0 -21
- package/esm2022/dialog/public-api.mjs +0 -5
- package/esm2022/dialog/src/dialog.class.mjs +0 -2
- package/esm2022/dialog/src/dialog.component.mjs +0 -56
- package/esm2022/dialog/src/dialog.module.mjs +0 -28
- package/esm2022/dialog/src/dialog.service.mjs +0 -155
- package/esm2022/drawer/public-api.mjs +0 -4
- package/esm2022/drawer/src/drawer-container.component.mjs +0 -39
- package/esm2022/drawer/src/drawer.component.mjs +0 -145
- package/esm2022/drawer/src/drawer.module.mjs +0 -23
- package/esm2022/dropdown/public-api.mjs +0 -3
- package/esm2022/dropdown/src/dropdown-panel.component.mjs +0 -106
- package/esm2022/dropdown/src/dropdown.module.mjs +0 -26
- package/esm2022/form/public-api.mjs +0 -7
- package/esm2022/form/src/form-field.component.mjs +0 -16
- package/esm2022/form/src/form.component.mjs +0 -168
- package/esm2022/form/src/form.module.mjs +0 -64
- package/esm2022/form/src/validation-rule.widget.mjs +0 -114
- package/esm2022/form/src/validation-summary.component.mjs +0 -110
- package/esm2022/form/src/validation.class.mjs +0 -2
- package/esm2022/image/public-api.mjs +0 -3
- package/esm2022/image/src/image.component.mjs +0 -80
- package/esm2022/image/src/image.module.mjs +0 -20
- package/esm2022/label/public-api.mjs +0 -3
- package/esm2022/label/src/label.component.mjs +0 -49
- package/esm2022/label/src/label.module.mjs +0 -22
- package/esm2022/loading/public-api.mjs +0 -6
- package/esm2022/loading/src/loading-spinner.component.mjs +0 -70
- package/esm2022/loading/src/loading.component.mjs +0 -56
- package/esm2022/loading/src/loading.directive.mjs +0 -77
- package/esm2022/loading/src/loading.module.mjs +0 -36
- package/esm2022/loading/src/loading.service.mjs +0 -153
- package/esm2022/menu/public-api.mjs +0 -3
- package/esm2022/menu/src/menu.component.mjs +0 -333
- package/esm2022/menu/src/menu.module.mjs +0 -34
- package/esm2022/mixin/public-api.mjs +0 -18
- package/esm2022/mixin/src/base-components.class.mjs +0 -108
- package/esm2022/mixin/src/base-menu-mixin.class.mjs +0 -134
- package/esm2022/mixin/src/button-mixin.class.mjs +0 -71
- package/esm2022/mixin/src/clickable-mixin.class.mjs +0 -24
- package/esm2022/mixin/src/color-look-mixing.class.mjs +0 -45
- package/esm2022/mixin/src/constratctor.mjs +0 -2
- package/esm2022/mixin/src/datalist-component.class.mjs +0 -151
- package/esm2022/mixin/src/datalist.class.mjs +0 -3
- package/esm2022/mixin/src/dropdown-mixin.class.mjs +0 -95
- package/esm2022/mixin/src/interactive-mixin.class.mjs +0 -81
- package/esm2022/mixin/src/loading-mixin.class.mjs +0 -26
- package/esm2022/mixin/src/mixin.class.mjs +0 -26
- package/esm2022/mixin/src/page-component.class.mjs +0 -11
- package/esm2022/mixin/src/selection-component.class.mjs +0 -176
- package/esm2022/mixin/src/sizable-mixin.class.mjs +0 -22
- package/esm2022/mixin/src/textbox-mixin.class.mjs +0 -66
- package/esm2022/mixin/src/value-mixin.class.mjs +0 -220
- package/esm2022/notification/public-api.mjs +0 -5
- package/esm2022/notification/src/notification.class.mjs +0 -2
- package/esm2022/notification/src/notification.component.mjs +0 -93
- package/esm2022/notification/src/notification.module.mjs +0 -24
- package/esm2022/notification/src/notification.service.mjs +0 -110
- package/esm2022/number-box/public-api.mjs +0 -3
- package/esm2022/number-box/src/number-box.component.mjs +0 -240
- package/esm2022/number-box/src/number-box.module.mjs +0 -36
- package/esm2022/page/public-api.mjs +0 -4
- package/esm2022/page/src/base-page.class.mjs +0 -64
- package/esm2022/page/src/page.component.mjs +0 -47
- package/esm2022/page/src/page.module.mjs +0 -19
- package/esm2022/password-box/public-api.mjs +0 -3
- package/esm2022/password-box/src/password-box.component.mjs +0 -64
- package/esm2022/password-box/src/password-box.module.mjs +0 -33
- package/esm2022/picker/acorex-components-picker.mjs +0 -5
- package/esm2022/picker/public-api.mjs +0 -4
- package/esm2022/picker/src/picker-column.component.mjs +0 -21
- package/esm2022/picker/src/picker.component.mjs +0 -17
- package/esm2022/picker/src/picker.module.mjs +0 -38
- package/esm2022/popover/public-api.mjs +0 -4
- package/esm2022/popover/src/dropdown-component.class.mjs +0 -71
- package/esm2022/popover/src/popover.component.mjs +0 -270
- package/esm2022/popover/src/popover.module.mjs +0 -20
- package/esm2022/popup/public-api.mjs +0 -4
- package/esm2022/popup/src/popup.component.mjs +0 -147
- package/esm2022/popup/src/popup.module.mjs +0 -28
- package/esm2022/popup/src/popup.service.mjs +0 -117
- package/esm2022/progress-bar/public-api.mjs +0 -3
- package/esm2022/progress-bar/src/progress-bar.component.mjs +0 -34
- package/esm2022/progress-bar/src/progress-bar.module.mjs +0 -20
- package/esm2022/public-api.mjs +0 -5
- package/esm2022/radio/public-api.mjs +0 -3
- package/esm2022/radio/src/radio.component.mjs +0 -40
- package/esm2022/radio/src/radio.module.mjs +0 -23
- package/esm2022/range-slider/public-api.mjs +0 -3
- package/esm2022/range-slider/src/range-slider.component.mjs +0 -118
- package/esm2022/range-slider/src/range-slider.module.mjs +0 -23
- package/esm2022/rating/acorex-components-rating.mjs +0 -5
- package/esm2022/rating/public-api.mjs +0 -3
- package/esm2022/rating/src/rating.component.mjs +0 -42
- package/esm2022/rating/src/rating.component.module.mjs +0 -20
- package/esm2022/result/public-api.mjs +0 -3
- package/esm2022/result/src/result.component.mjs +0 -27
- package/esm2022/result/src/result.module.mjs +0 -20
- package/esm2022/search-box/public-api.mjs +0 -3
- package/esm2022/search-box/src/search-box.component.mjs +0 -63
- package/esm2022/search-box/src/search-box.module.mjs +0 -26
- package/esm2022/select-box/public-api.mjs +0 -3
- package/esm2022/select-box/src/selectbox.component.mjs +0 -367
- package/esm2022/select-box/src/selectbox.module.mjs +0 -62
- package/esm2022/selection-list/public-api.mjs +0 -3
- package/esm2022/selection-list/src/selection-list.component.mjs +0 -60
- package/esm2022/selection-list/src/selection-list.module.mjs +0 -25
- package/esm2022/switch/public-api.mjs +0 -4
- package/esm2022/switch/src/switch-content.component.mjs +0 -17
- package/esm2022/switch/src/switch.component.mjs +0 -55
- package/esm2022/switch/src/switch.module.mjs +0 -23
- package/esm2022/tabs/public-api.mjs +0 -6
- package/esm2022/tabs/src/tab-content.directive.mjs +0 -32
- package/esm2022/tabs/src/tab-item.component.mjs +0 -141
- package/esm2022/tabs/src/tabs.class.mjs +0 -6
- package/esm2022/tabs/src/tabs.component.mjs +0 -111
- package/esm2022/tabs/src/tabs.module.mjs +0 -26
- package/esm2022/tag/public-api.mjs +0 -3
- package/esm2022/tag/src/tag.component.mjs +0 -30
- package/esm2022/tag/src/tag.module.mjs +0 -20
- package/esm2022/textarea/public-api.mjs +0 -3
- package/esm2022/textarea/src/textarea.component.mjs +0 -30
- package/esm2022/textarea/src/textarea.module.mjs +0 -20
- package/esm2022/textbox/public-api.mjs +0 -4
- package/esm2022/textbox/src/mask-options.directive.mjs +0 -20
- package/esm2022/textbox/src/textbox.component.mjs +0 -84
- package/esm2022/textbox/src/textbox.module.mjs +0 -39
- package/esm2022/time-box/public-api.mjs +0 -3
- package/esm2022/time-box/src/time-box.component.mjs +0 -282
- package/esm2022/time-box/src/time-box.module.mjs +0 -33
- package/esm2022/toast/public-api.mjs +0 -5
- package/esm2022/toast/src/toast.class.mjs +0 -2
- package/esm2022/toast/src/toast.component.mjs +0 -68
- package/esm2022/toast/src/toast.module.mjs +0 -23
- package/esm2022/toast/src/toast.service.mjs +0 -137
- package/esm2022/tooltip/public-api.mjs +0 -4
- package/esm2022/tooltip/src/tooltip.component.mjs +0 -22
- package/esm2022/tooltip/src/tooltip.directive.mjs +0 -164
- package/esm2022/tooltip/src/tooltip.module.mjs +0 -23
- package/esm2022/tree-view/acorex-components-tree-view.mjs +0 -5
- package/esm2022/tree-view/public-api.mjs +0 -3
- package/esm2022/tree-view/src/tree-view.component.mjs +0 -108
- package/esm2022/tree-view/src/tree-view.module.mjs +0 -21
- package/esm2022/uploader/public-api.mjs +0 -3
- package/esm2022/uploader/src/uploader.component.mjs +0 -102
- package/esm2022/uploader/src/uploader.module.mjs +0 -21
- package/fesm2022/acorex-components-card.mjs +0 -41
- package/fesm2022/acorex-components-card.mjs.map +0 -1
- package/fesm2022/acorex-components-picker.mjs +0 -74
- package/fesm2022/acorex-components-picker.mjs.map +0 -1
- package/fesm2022/acorex-components-rating.mjs +0 -64
- package/fesm2022/acorex-components-rating.mjs.map +0 -1
- package/fesm2022/acorex-components-tree-view.mjs +0 -131
- package/fesm2022/acorex-components-tree-view.mjs.map +0 -1
- package/form/public-api.d.ts +0 -6
- package/image/public-api.d.ts +0 -2
- package/image/src/image.component.d.ts +0 -27
- package/label/public-api.d.ts +0 -2
- package/loading/public-api.d.ts +0 -5
- package/loading/src/loading.directive.d.ts +0 -22
- package/menu/public-api.d.ts +0 -2
- package/menu/src/menu.component.d.ts +0 -42
- package/mixin/public-api.d.ts +0 -17
- package/mixin/src/base-components.class.d.ts +0 -84
- package/mixin/src/base-menu-mixin.class.d.ts +0 -53
- package/mixin/src/button-mixin.class.d.ts +0 -53
- package/mixin/src/clickable-mixin.class.d.ts +0 -36
- package/mixin/src/color-look-mixing.class.d.ts +0 -44
- package/mixin/src/datalist-component.class.d.ts +0 -59
- package/mixin/src/dropdown-mixin.class.d.ts +0 -47
- package/mixin/src/interactive-mixin.class.d.ts +0 -60
- package/mixin/src/loading-mixin.class.d.ts +0 -40
- package/mixin/src/mixin.class.d.ts +0 -679
- package/mixin/src/page-component.class.d.ts +0 -28
- package/mixin/src/selection-component.class.d.ts +0 -61
- package/mixin/src/sizable-mixin.class.d.ts +0 -34
- package/mixin/src/textbox-mixin.class.d.ts +0 -66
- package/mixin/src/value-mixin.class.d.ts +0 -63
- package/notification/public-api.d.ts +0 -4
- package/number-box/public-api.d.ts +0 -2
- package/page/public-api.d.ts +0 -3
- package/page/src/page.component.d.ts +0 -14
- package/password-box/public-api.d.ts +0 -2
- package/picker/index.d.ts +0 -5
- package/picker/public-api.d.ts +0 -3
- package/picker/src/picker-column.component.d.ts +0 -11
- package/picker/src/picker.component.d.ts +0 -10
- package/picker/src/picker.module.d.ts +0 -14
- package/popover/public-api.d.ts +0 -3
- package/popup/public-api.d.ts +0 -3
- package/progress-bar/public-api.d.ts +0 -2
- package/public-api.d.ts +0 -1
- package/radio/public-api.d.ts +0 -2
- package/range-slider/public-api.d.ts +0 -2
- package/rating/index.d.ts +0 -5
- package/rating/public-api.d.ts +0 -2
- package/rating/src/rating.component.d.ts +0 -21
- package/rating/src/rating.component.module.d.ts +0 -8
- package/result/public-api.d.ts +0 -2
- package/result/src/result.component.d.ts +0 -12
- package/scss/_mixin.scss +0 -1
- package/scss/_variable.scss +0 -1
- package/scss/index.scss +0 -2
- package/search-box/public-api.d.ts +0 -2
- package/select-box/public-api.d.ts +0 -2
- package/select-box/src/selectbox.module.d.ts +0 -18
- package/selection-list/public-api.d.ts +0 -2
- package/switch/public-api.d.ts +0 -3
- package/tabs/public-api.d.ts +0 -5
- package/tabs/src/tab-item.component.d.ts +0 -48
- package/tag/public-api.d.ts +0 -2
- package/textarea/public-api.d.ts +0 -2
- package/textbox/public-api.d.ts +0 -3
- package/time-box/public-api.d.ts +0 -2
- package/toast/public-api.d.ts +0 -4
- package/tooltip/public-api.d.ts +0 -3
- package/tree-view/index.d.ts +0 -5
- package/tree-view/public-api.d.ts +0 -2
- package/tree-view/src/tree-view.component.d.ts +0 -33
- package/tree-view/src/tree-view.module.d.ts +0 -9
- package/uploader/public-api.d.ts +0 -2
- /package/action-sheet/{src → lib}/action-sheet.component.d.ts +0 -0
- /package/action-sheet/{src → lib}/action-sheet.interface.d.ts +0 -0
- /package/action-sheet/{src → lib}/action-sheet.module.d.ts +0 -0
- /package/action-sheet/{src → lib}/action-sheet.service.d.ts +0 -0
- /package/alert/{src → lib}/alert.component.d.ts +0 -0
- /package/alert/{src → lib}/alert.module.d.ts +0 -0
- /package/avatar/{src → lib}/avatar-group.component.d.ts +0 -0
- /package/avatar/{src → lib}/avatar.component.d.ts +0 -0
- /package/avatar/{src → lib}/avatar.module.d.ts +0 -0
- /package/badge/{src → lib}/badge.component.d.ts +0 -0
- /package/badge/{src → lib}/badge.module.d.ts +0 -0
- /package/breadcrumbs/{src → lib}/breadcrumbs-item.class.d.ts +0 -0
- /package/breadcrumbs/{src → lib}/breadcrumbs.component.d.ts +0 -0
- /package/breadcrumbs/{src → lib}/breadcrumbs.module.d.ts +0 -0
- /package/button/{src → lib}/button-item.class.d.ts +0 -0
- /package/button/{src → lib}/button.component.d.ts +0 -0
- /package/button/{src → lib}/button.module.d.ts +0 -0
- /package/calendar/{src → lib}/calendar-range.component.d.ts +0 -0
- /package/calendar/{src → lib}/calendar.component.d.ts +0 -0
- /package/calendar/{src → lib}/calendar.module.d.ts +0 -0
- /package/checkbox/{src → lib}/checkbox.component.d.ts +0 -0
- /package/checkbox/{src → lib}/checkbox.module.d.ts +0 -0
- /package/chips/{src → lib}/chips.module.d.ts +0 -0
- /package/collapse/{src → lib}/collapse-group.component.d.ts +0 -0
- /package/collapse/{src → lib}/collapse.component.d.ts +0 -0
- /package/collapse/{src → lib}/collapse.module.d.ts +0 -0
- /package/color-palette/{src → lib}/color-palette-input.component.d.ts +0 -0
- /package/color-palette/{src → lib}/color-palette-picker.component.d.ts +0 -0
- /package/color-palette/{src → lib}/color-palette-preview.component.d.ts +0 -0
- /package/color-palette/{src → lib}/color-palette-swatches.component.d.ts +0 -0
- /package/color-palette/{src → lib}/color-palette.class.d.ts +0 -0
- /package/color-palette/{src → lib}/color-palette.component.d.ts +0 -0
- /package/color-palette/{src → lib}/color-palette.module.d.ts +0 -0
- /package/color-picker/{src → lib}/color-picker.module.d.ts +0 -0
- /package/common/{src → lib}/classes/components.class.d.ts +0 -0
- /package/common/{src → lib}/classes/data.class.d.ts +0 -0
- /package/common/{src → lib}/classes/drawing.class.d.ts +0 -0
- /package/common/{src → lib}/classes/events.class.d.ts +0 -0
- /package/common/{src → lib}/classes/styles.class.d.ts +0 -0
- /package/common/{src → lib}/common.module.d.ts +0 -0
- /package/common/{src → lib}/components/base-component.class.d.ts +0 -0
- /package/common/{src → lib}/components/color-component.class.d.ts +0 -0
- /package/common/{src → lib}/components/colorlook-component.class.d.ts +0 -0
- /package/common/{src → lib}/components/value-component.class.d.ts +0 -0
- /package/common/{src → lib}/constant/positions.d.ts +0 -0
- /package/common/{src → lib}/directives/auto-focus.directive.d.ts +0 -0
- /package/common/{src → lib}/directives/debounce-time.directive.d.ts +0 -0
- /package/common/{src → lib}/directives/hotkey.directive.d.ts +0 -0
- /package/common/{src → lib}/directives/infinite-scroll.directive.d.ts +0 -0
- /package/common/{src → lib}/directives/responsive.directive.d.ts +0 -0
- /package/common/{src → lib}/services/custom-cdk-overlay.service.d.ts +0 -0
- /package/common/{src → lib}/services/hotkey.service.d.ts +0 -0
- /package/common/{src → lib}/services/overlay.service.d.ts +0 -0
- /package/context-menu/{src → lib}/context-menu.component.d.ts +0 -0
- /package/context-menu/{src → lib}/context-menu.module.d.ts +0 -0
- /package/data-pager/{src → lib}/data-pager-base.component.d.ts +0 -0
- /package/data-pager/{src → lib}/data-pager-info.component.d.ts +0 -0
- /package/data-pager/{src → lib}/data-pager-next-buttons.components.d.ts +0 -0
- /package/data-pager/{src → lib}/data-pager-numeric-selector.component.d.ts +0 -0
- /package/data-pager/{src → lib}/data-pager-pagesize-dropdown.component.d.ts +0 -0
- /package/data-pager/{src → lib}/data-pager-prev-buttons.component.d.ts +0 -0
- /package/data-pager/{src → lib}/data-pager.component.d.ts +0 -0
- /package/data-pager/{src → lib}/data-pager.module.d.ts +0 -0
- /package/data-table/{src → lib}/data-column-cell-template.directive.d.ts +0 -0
- /package/data-table/{src → lib}/data-column.directive.d.ts +0 -0
- /package/data-table/{src → lib}/data-table.component.d.ts +0 -0
- /package/data-table/{src → lib}/data-table.module.d.ts +0 -0
- /package/date-picker/{src → lib}/datepicker.component.d.ts +0 -0
- /package/date-picker/{src → lib}/datepicker.module.d.ts +0 -0
- /package/decorators/{src → lib}/close-button.component.d.ts +0 -0
- /package/decorators/{src → lib}/content.component.d.ts +0 -0
- /package/decorators/{src → lib}/decorators.module.d.ts +0 -0
- /package/decorators/{src → lib}/footer.component.d.ts +0 -0
- /package/decorators/{src → lib}/form-hint.component.d.ts +0 -0
- /package/decorators/{src → lib}/header.component.d.ts +0 -0
- /package/decorators/{src → lib}/icon.component.d.ts +0 -0
- /package/decorators/{src → lib}/overlay.component.d.ts +0 -0
- /package/decorators/{src → lib}/placeholder.component.d.ts +0 -0
- /package/decorators/{src → lib}/prefix.component.d.ts +0 -0
- /package/decorators/{src → lib}/sub-title.component.d.ts +0 -0
- /package/decorators/{src → lib}/suffix.component.d.ts +0 -0
- /package/decorators/{src → lib}/text.component.d.ts +0 -0
- /package/decorators/{src → lib}/title.component.d.ts +0 -0
- /package/dialog/{src → lib}/dialog.class.d.ts +0 -0
- /package/dialog/{src → lib}/dialog.component.d.ts +0 -0
- /package/dialog/{src → lib}/dialog.module.d.ts +0 -0
- /package/dialog/{src → lib}/dialog.service.d.ts +0 -0
- /package/drawer/{src → lib}/drawer-container.component.d.ts +0 -0
- /package/drawer/{src → lib}/drawer.component.d.ts +0 -0
- /package/drawer/{src → lib}/drawer.module.d.ts +0 -0
- /package/dropdown/{src → lib}/dropdown-panel.component.d.ts +0 -0
- /package/dropdown/{src → lib}/dropdown.module.d.ts +0 -0
- /package/form/{src → lib}/form-field.component.d.ts +0 -0
- /package/form/{src → lib}/form.component.d.ts +0 -0
- /package/form/{src → lib}/form.module.d.ts +0 -0
- /package/form/{src → lib}/validation-rule.widget.d.ts +0 -0
- /package/form/{src → lib}/validation-summary.component.d.ts +0 -0
- /package/form/{src → lib}/validation.class.d.ts +0 -0
- /package/image/{src → lib}/image.module.d.ts +0 -0
- /package/label/{src → lib}/label.component.d.ts +0 -0
- /package/label/{src → lib}/label.module.d.ts +0 -0
- /package/loading/{src → lib}/loading-spinner.component.d.ts +0 -0
- /package/loading/{src → lib}/loading.component.d.ts +0 -0
- /package/loading/{src → lib}/loading.module.d.ts +0 -0
- /package/loading/{src → lib}/loading.service.d.ts +0 -0
- /package/menu/{src → lib}/menu.module.d.ts +0 -0
- /package/mixin/{src → lib}/constratctor.d.ts +0 -0
- /package/mixin/{src → lib}/datalist.class.d.ts +0 -0
- /package/notification/{src → lib}/notification.class.d.ts +0 -0
- /package/notification/{src → lib}/notification.component.d.ts +0 -0
- /package/notification/{src → lib}/notification.module.d.ts +0 -0
- /package/notification/{src → lib}/notification.service.d.ts +0 -0
- /package/number-box/{src → lib}/number-box.component.d.ts +0 -0
- /package/number-box/{src → lib}/number-box.module.d.ts +0 -0
- /package/page/{src → lib}/base-page.class.d.ts +0 -0
- /package/page/{src → lib}/page.module.d.ts +0 -0
- /package/password-box/{src → lib}/password-box.component.d.ts +0 -0
- /package/password-box/{src → lib}/password-box.module.d.ts +0 -0
- /package/popover/{src → lib}/dropdown-component.class.d.ts +0 -0
- /package/popover/{src → lib}/popover.component.d.ts +0 -0
- /package/popover/{src → lib}/popover.module.d.ts +0 -0
- /package/popup/{src → lib}/popup.component.d.ts +0 -0
- /package/popup/{src → lib}/popup.module.d.ts +0 -0
- /package/popup/{src → lib}/popup.service.d.ts +0 -0
- /package/progress-bar/{src → lib}/progress-bar.component.d.ts +0 -0
- /package/progress-bar/{src → lib}/progress-bar.module.d.ts +0 -0
- /package/radio/{src → lib}/radio.component.d.ts +0 -0
- /package/radio/{src → lib}/radio.module.d.ts +0 -0
- /package/range-slider/{src → lib}/range-slider.component.d.ts +0 -0
- /package/range-slider/{src → lib}/range-slider.module.d.ts +0 -0
- /package/result/{src → lib}/result.module.d.ts +0 -0
- /package/search-box/{src → lib}/search-box.component.d.ts +0 -0
- /package/search-box/{src → lib}/search-box.module.d.ts +0 -0
- /package/select-box/{src/selectbox.component.d.ts → lib/select-box.component.d.ts} +0 -0
- /package/selection-list/{src → lib}/selection-list.component.d.ts +0 -0
- /package/selection-list/{src → lib}/selection-list.module.d.ts +0 -0
- /package/switch/{src → lib}/switch-content.component.d.ts +0 -0
- /package/switch/{src → lib}/switch.component.d.ts +0 -0
- /package/switch/{src → lib}/switch.module.d.ts +0 -0
- /package/tabs/{src → lib}/tab-content.directive.d.ts +0 -0
- /package/tabs/{src → lib}/tabs.class.d.ts +0 -0
- /package/tabs/{src → lib}/tabs.component.d.ts +0 -0
- /package/tabs/{src → lib}/tabs.module.d.ts +0 -0
- /package/tag/{src → lib}/tag.component.d.ts +0 -0
- /package/tag/{src → lib}/tag.module.d.ts +0 -0
- /package/textarea/{src → lib}/textarea.component.d.ts +0 -0
- /package/textarea/{src → lib}/textarea.module.d.ts +0 -0
- /package/textbox/{src → lib}/mask-options.directive.d.ts +0 -0
- /package/textbox/{src → lib}/textbox.component.d.ts +0 -0
- /package/textbox/{src → lib}/textbox.module.d.ts +0 -0
- /package/time-box/{src → lib}/time-box.component.d.ts +0 -0
- /package/time-box/{src → lib}/time-box.module.d.ts +0 -0
- /package/toast/{src → lib}/toast.class.d.ts +0 -0
- /package/toast/{src → lib}/toast.component.d.ts +0 -0
- /package/toast/{src → lib}/toast.module.d.ts +0 -0
- /package/toast/{src → lib}/toast.service.d.ts +0 -0
- /package/tooltip/{src → lib}/tooltip.component.d.ts +0 -0
- /package/tooltip/{src → lib}/tooltip.directive.d.ts +0 -0
- /package/tooltip/{src → lib}/tooltip.module.d.ts +0 -0
- /package/uploader/{src → lib}/uploader.component.d.ts +0 -0
- /package/uploader/{src → lib}/uploader.module.d.ts +0 -0
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
|
-
import { Injectable,
|
3
|
-
import { AXHtmlUtil, AXObjectUtil } from '@acorex/core/utils';
|
4
|
-
import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
|
5
|
-
import { classes } from 'polytype';
|
6
|
-
import { skip, distinctUntilChanged, debounceTime, fromEvent, merge } from 'rxjs';
|
2
|
+
import { Injectable, Directive, Host, Self, Optional, Input, EventEmitter, Output, Inject, NgModule, inject, ChangeDetectorRef, ElementRef, ViewContainerRef, TemplateRef } from '@angular/core';
|
7
3
|
import * as i1 from '@angular/forms';
|
4
|
+
import { skip, distinctUntilChanged, debounceTime, fromEvent, merge } from 'rxjs';
|
8
5
|
import * as i3 from '@angular/common';
|
9
6
|
import { DOCUMENT } from '@angular/common';
|
10
|
-
import { Observable } from 'rxjs/internal/Observable';
|
11
7
|
import * as i1$1 from '@angular/platform-browser';
|
8
|
+
import { Observable } from 'rxjs/internal/Observable';
|
12
9
|
import { map, pairwise, filter, startWith, exhaustMap } from 'rxjs/operators';
|
10
|
+
import { classes } from 'polytype';
|
11
|
+
import { AXHtmlUtil, AXObjectUtil } from '@acorex/core/utils';
|
12
|
+
import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
|
13
13
|
import * as i1$2 from '@angular/cdk/overlay';
|
14
14
|
import { OverlayContainer, Overlay } from '@angular/cdk/overlay';
|
15
15
|
import * as i2 from '@angular/cdk/bidi';
|
@@ -20,65 +20,53 @@ import { TemplatePortal, ComponentPortal } from '@angular/cdk/portal';
|
|
20
20
|
* @category Events
|
21
21
|
*/
|
22
22
|
class AXEvent {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
component;
|
27
|
-
/**
|
28
|
-
* The root native element
|
29
|
-
*/
|
30
|
-
htmlElement;
|
31
|
-
isUserInteraction = false;
|
23
|
+
constructor() {
|
24
|
+
this.isUserInteraction = false;
|
25
|
+
}
|
32
26
|
}
|
33
27
|
/**
|
34
28
|
* Contains native event
|
35
29
|
* @category Events
|
36
30
|
*/
|
37
31
|
class AXHtmlEvent extends AXEvent {
|
38
|
-
nativeEvent;
|
39
32
|
}
|
40
33
|
/**
|
41
34
|
* Contains native event
|
42
35
|
* @category Events
|
43
36
|
*/
|
44
37
|
class AXValueChangedEvent extends AXEvent {
|
45
|
-
name;
|
46
|
-
value;
|
47
|
-
oldValue;
|
48
38
|
}
|
49
39
|
/**
|
50
40
|
* Contains native event
|
51
41
|
* @category Events
|
52
42
|
*/
|
53
43
|
class AXOptionChangedEvent extends AXEvent {
|
54
|
-
name;
|
55
|
-
newValue;
|
56
|
-
oldValue;
|
57
44
|
}
|
58
45
|
/**
|
59
46
|
* Fires each time the user click the element.
|
60
47
|
* @category Events
|
61
48
|
*/
|
62
49
|
class AXClickEvent extends AXHtmlEvent {
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
50
|
+
constructor() {
|
51
|
+
super(...arguments);
|
52
|
+
/**
|
53
|
+
* uses for extra data
|
54
|
+
*/
|
55
|
+
this.data = null;
|
56
|
+
this.nativeEvent = null;
|
57
|
+
}
|
68
58
|
}
|
69
59
|
/**
|
70
60
|
* Fires each time the user click the element.
|
71
61
|
* @category Events
|
72
62
|
*/
|
73
63
|
class AXButtonClickEvent extends AXClickEvent {
|
74
|
-
name;
|
75
64
|
}
|
76
65
|
/**
|
77
66
|
* Fires each time the user click the element.
|
78
67
|
* @category Events
|
79
68
|
*/
|
80
69
|
class AXItemClickEvent extends AXHtmlEvent {
|
81
|
-
item;
|
82
70
|
}
|
83
71
|
/**
|
84
72
|
* Fires each time the component gets focused.
|
@@ -91,43 +79,35 @@ class AXFocusEvent extends AXHtmlEvent {
|
|
91
79
|
* @category Events
|
92
80
|
*/
|
93
81
|
class AXSelectionValueChangedEvent extends AXValueChangedEvent {
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
82
|
+
constructor() {
|
83
|
+
super(...arguments);
|
84
|
+
this.value = null;
|
85
|
+
this.oldValue = null;
|
86
|
+
this.selectedKeys = [];
|
87
|
+
this.selectedItems = [];
|
88
|
+
}
|
98
89
|
}
|
99
90
|
/**
|
100
91
|
* Contains range start & end values
|
101
92
|
* @category Events
|
102
93
|
*/
|
103
94
|
class AXRangeChangedEvent extends AXEvent {
|
104
|
-
/**
|
105
|
-
* The range start value
|
106
|
-
*/
|
107
|
-
start;
|
108
|
-
/**
|
109
|
-
* The range end value
|
110
|
-
*/
|
111
|
-
end;
|
112
95
|
}
|
113
96
|
|
114
97
|
const TAB_META_KEY = '__meta__';
|
115
98
|
class AXComponentCloseEvent extends AXEvent {
|
116
|
-
data;
|
117
99
|
}
|
118
100
|
class AXComponentClosing {
|
119
|
-
|
120
|
-
|
101
|
+
constructor() {
|
102
|
+
this.cancel = false;
|
103
|
+
}
|
121
104
|
}
|
122
105
|
class AXComponentResult {
|
123
|
-
sender;
|
124
|
-
data;
|
125
106
|
}
|
126
107
|
/**
|
127
108
|
* Defines a CSS class—or multiple classes separated by spaces— which are applied to a span element inside the Button. Allows the usage of custom icons after the primary text.
|
128
109
|
*/
|
129
110
|
class AXComponentClosedPromise extends Promise {
|
130
|
-
closeMethod;
|
131
111
|
constructor(executor) {
|
132
112
|
super(executor);
|
133
113
|
}
|
@@ -138,45 +118,45 @@ class AXComponentClosedPromise extends Promise {
|
|
138
118
|
}
|
139
119
|
}
|
140
120
|
class AXComponent {
|
141
|
-
static
|
142
|
-
static
|
121
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
122
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXComponent }); }
|
143
123
|
}
|
144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXComponent, decorators: [{
|
145
125
|
type: Injectable
|
146
126
|
}] });
|
147
127
|
class AXClosbaleComponent extends AXComponent {
|
148
|
-
static
|
149
|
-
static
|
128
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXClosbaleComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
129
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXClosbaleComponent }); }
|
150
130
|
}
|
151
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
131
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXClosbaleComponent, decorators: [{
|
152
132
|
type: Injectable
|
153
133
|
}] });
|
154
134
|
class AXSearchableComponent extends AXComponent {
|
155
|
-
static
|
156
|
-
static
|
135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXSearchableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
136
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXSearchableComponent }); }
|
157
137
|
}
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXSearchableComponent, decorators: [{
|
159
139
|
type: Injectable
|
160
140
|
}] });
|
161
141
|
class AXValuableComponent extends AXComponent {
|
162
|
-
static
|
163
|
-
static
|
142
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXValuableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
143
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXValuableComponent }); }
|
164
144
|
}
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXValuableComponent, decorators: [{
|
166
146
|
type: Injectable
|
167
147
|
}] });
|
168
148
|
class AXFocusableComponent extends AXComponent {
|
169
|
-
static
|
170
|
-
static
|
149
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXFocusableComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
150
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXFocusableComponent }); }
|
171
151
|
}
|
172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXFocusableComponent, decorators: [{
|
173
153
|
type: Injectable
|
174
154
|
}] });
|
175
155
|
class AXPagedComponent extends AXComponent {
|
176
|
-
static
|
177
|
-
static
|
156
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXPagedComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
157
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXPagedComponent }); }
|
178
158
|
}
|
179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXPagedComponent, decorators: [{
|
180
160
|
type: Injectable
|
181
161
|
}] });
|
182
162
|
|
@@ -184,861 +164,890 @@ const AX_STYLE_COLOR_TYPES = ['primary', 'secondary', 'success', 'warning', 'dan
|
|
184
164
|
const AX_LOCATIONS = ['bottom-start', 'bottom-center', 'bottom-end', 'top-start', 'top-center', 'top-end', 'center-end', 'center-start'];
|
185
165
|
const AX_DIRECTIONS = ['vertical', 'horizontal'];
|
186
166
|
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
},
|
194
|
-
topCenter: {
|
195
|
-
originX: 'center',
|
196
|
-
originY: 'top',
|
197
|
-
overlayX: 'center',
|
198
|
-
overlayY: 'bottom',
|
199
|
-
},
|
200
|
-
topEnd: {
|
201
|
-
originX: 'end',
|
202
|
-
originY: 'top',
|
203
|
-
overlayX: 'end',
|
204
|
-
overlayY: 'bottom',
|
205
|
-
},
|
206
|
-
startStart: {
|
207
|
-
originX: 'start',
|
208
|
-
originY: 'top',
|
209
|
-
overlayX: 'end',
|
210
|
-
overlayY: 'top',
|
211
|
-
},
|
212
|
-
startCenter: {
|
213
|
-
originX: 'start',
|
214
|
-
originY: 'center',
|
215
|
-
overlayX: 'end',
|
216
|
-
overlayY: 'center',
|
217
|
-
},
|
218
|
-
startEnd: {
|
219
|
-
originX: 'start',
|
220
|
-
originY: 'bottom',
|
221
|
-
overlayX: 'end',
|
222
|
-
overlayY: 'bottom',
|
223
|
-
},
|
224
|
-
bottomStart: {
|
225
|
-
originX: 'start',
|
226
|
-
originY: 'bottom',
|
227
|
-
overlayX: 'start',
|
228
|
-
overlayY: 'top',
|
229
|
-
},
|
230
|
-
bottomCenter: {
|
231
|
-
originX: 'center',
|
232
|
-
originY: 'bottom',
|
233
|
-
overlayX: 'center',
|
234
|
-
overlayY: 'top',
|
235
|
-
},
|
236
|
-
bottomEnd: {
|
237
|
-
originX: 'end',
|
238
|
-
originY: 'bottom',
|
239
|
-
overlayX: 'end',
|
240
|
-
overlayY: 'top',
|
241
|
-
},
|
242
|
-
endStart: {
|
243
|
-
originX: 'end',
|
244
|
-
originY: 'top',
|
245
|
-
overlayX: 'start',
|
246
|
-
overlayY: 'top',
|
247
|
-
},
|
248
|
-
endCenter: {
|
249
|
-
originX: 'end',
|
250
|
-
originY: 'center',
|
251
|
-
overlayX: 'start',
|
252
|
-
overlayY: 'center',
|
253
|
-
},
|
254
|
-
endEnd: {
|
255
|
-
originX: 'end',
|
256
|
-
originY: 'bottom',
|
257
|
-
overlayX: 'start',
|
258
|
-
overlayY: 'bottom',
|
259
|
-
},
|
260
|
-
};
|
261
|
-
|
262
|
-
class MXBaseComponent {
|
263
|
-
id;
|
264
|
-
_cdr = inject(ChangeDetectorRef);
|
265
|
-
_elementRef = inject(ElementRef);
|
266
|
-
_viewRef = inject(ViewContainerRef);
|
267
|
-
get cdr() {
|
268
|
-
return this._cdr;
|
269
|
-
}
|
270
|
-
getHostElement() {
|
271
|
-
return this._elementRef.nativeElement;
|
272
|
-
}
|
273
|
-
getViewContainer() {
|
274
|
-
return this._viewRef;
|
275
|
-
}
|
276
|
-
onOptionChanging(option) {
|
277
|
-
return option?.value;
|
278
|
-
}
|
279
|
-
init() {
|
280
|
-
debugger;
|
281
|
-
this.getHostElement().__axContext__ = this;
|
167
|
+
class AXAutoFocusDirective {
|
168
|
+
constructor(el, _host) {
|
169
|
+
this.el = el;
|
170
|
+
this._host = _host;
|
171
|
+
this.autoFocus = true;
|
172
|
+
this.time = 100;
|
282
173
|
}
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
}
|
301
|
-
|
302
|
-
|
174
|
+
ngAfterContentInit() {
|
175
|
+
if (this.autoFocus) {
|
176
|
+
const list = [
|
177
|
+
'button',
|
178
|
+
'input',
|
179
|
+
'[href]',
|
180
|
+
'select',
|
181
|
+
'textarea',
|
182
|
+
'[tabindex]',
|
183
|
+
].map((c) => c + ':not([tabindex="-1"])');
|
184
|
+
const focusable = this.el.nativeElement.querySelector(list.join(', ')) ??
|
185
|
+
this.el.nativeElement;
|
186
|
+
const attr = document.createAttribute('autofocus');
|
187
|
+
focusable.setAttributeNode(attr);
|
188
|
+
const hasTabindex = focusable.hasAttribute('tabindex');
|
189
|
+
if (!hasTabindex) {
|
190
|
+
focusable.setAttribute('tabIndex', '0');
|
191
|
+
}
|
192
|
+
setTimeout(() => {
|
193
|
+
focusable.focus();
|
194
|
+
}, 100);
|
303
195
|
}
|
304
|
-
if (option.afterCallback)
|
305
|
-
option.afterCallback(oldValue, newValue);
|
306
|
-
}
|
307
|
-
_rtl;
|
308
|
-
get rtl() {
|
309
|
-
if (this._rtl)
|
310
|
-
return this._rtl;
|
311
|
-
else
|
312
|
-
return this.getHostElement().classList.contains('ax-rtl') || window.getComputedStyle(this.getHostElement(), null).getPropertyValue('direction') === 'rtl';
|
313
|
-
}
|
314
|
-
set rtl(value) {
|
315
|
-
this.setOption({ name: 'rtl', value });
|
316
196
|
}
|
317
|
-
static
|
318
|
-
static
|
197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXAutoFocusDirective, deps: [{ token: i0.ElementRef }, { token: AXFocusableComponent, host: true, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
198
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: { autoFocus: ["axAutoFocus", "autoFocus"], time: ["focus-time", "time"] }, ngImport: i0 }); }
|
319
199
|
}
|
320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
321
|
-
type:
|
322
|
-
|
323
|
-
|
324
|
-
|
200
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXAutoFocusDirective, decorators: [{
|
201
|
+
type: Directive,
|
202
|
+
args: [{
|
203
|
+
selector: '[axAutoFocus]',
|
204
|
+
}]
|
205
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AXFocusableComponent, decorators: [{
|
206
|
+
type: Host
|
207
|
+
}, {
|
208
|
+
type: Self
|
209
|
+
}, {
|
210
|
+
type: Optional
|
211
|
+
}] }]; }, propDecorators: { autoFocus: [{
|
212
|
+
type: Input,
|
213
|
+
args: ['axAutoFocus']
|
214
|
+
}], time: [{
|
215
|
+
type: Input,
|
216
|
+
args: ['focus-time']
|
217
|
+
}] } });
|
325
218
|
|
326
|
-
class
|
327
|
-
|
328
|
-
|
329
|
-
* If set to true, it disables the component.
|
330
|
-
*/
|
331
|
-
get disabled() {
|
332
|
-
return this._disabled;
|
333
|
-
}
|
334
|
-
set disabled(value) {
|
335
|
-
this.setOption({ name: "disabled", value });
|
336
|
-
}
|
337
|
-
_tabIndex = 0;
|
338
|
-
/**
|
339
|
-
* Specifies the tabindex of the component.
|
340
|
-
*/
|
341
|
-
get tabIndex() { return this.disabled ? -1 : this._tabIndex; }
|
342
|
-
set tabIndex(value) {
|
343
|
-
this.setOption({ name: "tabIndex", value: value != null ? coerceNumberProperty(value) : 0 });
|
344
|
-
}
|
345
|
-
/**
|
346
|
-
* Fires each time the component gets focused.
|
347
|
-
* @event
|
348
|
-
*/
|
349
|
-
onFocus = new EventEmitter();
|
350
|
-
emitOnFocusEvent(e) {
|
351
|
-
this.onFocus.emit({
|
352
|
-
component: this,
|
353
|
-
htmlElement: this.getHostElement(),
|
354
|
-
nativeEvent: e
|
355
|
-
});
|
219
|
+
class AXNgModelChangeDebouncedDirective {
|
220
|
+
get ngModelChangeDebounceTime() {
|
221
|
+
return this._ngModelChangeDebounceTime;
|
356
222
|
}
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
this.onBlur.emit({
|
364
|
-
component: this,
|
365
|
-
htmlElement: this.getHostElement(),
|
366
|
-
nativeEvent: e
|
367
|
-
});
|
223
|
+
set ngModelChangeDebounceTime(v) {
|
224
|
+
if (v != this._ngModelChangeDebounceTime) {
|
225
|
+
this._ngModelChangeDebounceTime = v;
|
226
|
+
this.ngModelChangeDebounceTimeChange.emit(v);
|
227
|
+
this.update();
|
228
|
+
}
|
368
229
|
}
|
369
|
-
|
370
|
-
|
230
|
+
ngOnDestroy() {
|
231
|
+
this.subscription.unsubscribe();
|
371
232
|
}
|
372
|
-
|
373
|
-
|
233
|
+
constructor(ngModel) {
|
234
|
+
this.ngModel = ngModel;
|
235
|
+
this.ngModelChangeDebounced = new EventEmitter();
|
236
|
+
this.ngModelChangeDebounceTimeChange = new EventEmitter();
|
237
|
+
this._ngModelChangeDebounceTime = 0;
|
238
|
+
this.ngModelChangeDebounceTime = 0;
|
374
239
|
}
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
240
|
+
update() {
|
241
|
+
this.subscription?.unsubscribe();
|
242
|
+
//
|
243
|
+
this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), // skip initial value
|
244
|
+
distinctUntilChanged(), debounceTime(this.ngModelChangeDebounceTime)).subscribe((value) => this.ngModelChangeDebounced.emit(value));
|
380
245
|
}
|
246
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXNgModelChangeDebouncedDirective, deps: [{ token: i1.NgModel }], target: i0.ɵɵFactoryTarget.Directive }); }
|
247
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AXNgModelChangeDebouncedDirective, selector: "[ngModelChangeDebounced]", inputs: { ngModelChangeDebounceTime: "ngModelChangeDebounceTime" }, outputs: { ngModelChangeDebounced: "ngModelChangeDebounced", ngModelChangeDebounceTimeChange: "ngModelChangeDebounceTimeChange" }, ngImport: i0 }); }
|
381
248
|
}
|
382
|
-
|
383
|
-
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXNgModelChangeDebouncedDirective, decorators: [{
|
250
|
+
type: Directive,
|
251
|
+
args: [{
|
252
|
+
selector: '[ngModelChangeDebounced]',
|
253
|
+
}]
|
254
|
+
}], ctorParameters: function () { return [{ type: i1.NgModel }]; }, propDecorators: { ngModelChangeDebounced: [{
|
255
|
+
type: Output
|
256
|
+
}], ngModelChangeDebounceTimeChange: [{
|
257
|
+
type: Output
|
258
|
+
}], ngModelChangeDebounceTime: [{
|
259
|
+
type: Input
|
260
|
+
}] } });
|
384
261
|
|
385
|
-
class
|
386
|
-
constructor() {
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
* Predefined color schemes
|
393
|
-
*/
|
394
|
-
get color() {
|
395
|
-
return this._color;
|
262
|
+
class AXHotkeysService {
|
263
|
+
constructor(eventManager, document) {
|
264
|
+
this.eventManager = eventManager;
|
265
|
+
this.document = document;
|
266
|
+
this.defaults = {
|
267
|
+
element: this.document,
|
268
|
+
};
|
396
269
|
}
|
397
|
-
|
398
|
-
this.
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
270
|
+
addShortcut(options) {
|
271
|
+
const merged = { ...this.defaults, ...options };
|
272
|
+
const event = `keydown.${merged.keys}`;
|
273
|
+
return new Observable(observer => {
|
274
|
+
const handler = (e) => {
|
275
|
+
e.preventDefault();
|
276
|
+
observer.next(e);
|
277
|
+
};
|
278
|
+
if (merged.element) {
|
279
|
+
// Todo: check addEventListener is not function
|
280
|
+
const dispose = this.eventManager.addEventListener(merged.element, event, handler);
|
281
|
+
return () => {
|
282
|
+
dispose();
|
283
|
+
};
|
284
|
+
}
|
285
|
+
else {
|
286
|
+
// console.error('Element is not accessible');
|
287
|
+
return null;
|
288
|
+
}
|
404
289
|
});
|
405
290
|
}
|
291
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeysService, deps: [{ token: i1$1.EventManager }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
292
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeysService, providedIn: 'root' }); }
|
406
293
|
}
|
407
|
-
|
408
|
-
|
294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeysService, decorators: [{
|
295
|
+
type: Injectable,
|
296
|
+
args: [{ providedIn: 'root' }]
|
297
|
+
}], ctorParameters: function () { return [{ type: i1$1.EventManager }, { type: Document, decorators: [{
|
298
|
+
type: Inject,
|
299
|
+
args: [DOCUMENT]
|
300
|
+
}] }]; } });
|
409
301
|
|
410
|
-
class
|
411
|
-
constructor() {
|
412
|
-
|
302
|
+
class AXHotkeyDirective {
|
303
|
+
constructor(el, _host, hs) {
|
304
|
+
this.el = el;
|
305
|
+
this._host = _host;
|
306
|
+
this.hs = hs;
|
307
|
+
this.hotkey = '';
|
308
|
+
this._subs = [];
|
413
309
|
}
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
310
|
+
ngAfterViewInit() {
|
311
|
+
if (!this.hotkey || !this._host)
|
312
|
+
return;
|
313
|
+
if (typeof this.hotkey == 'string') {
|
314
|
+
this._addDefaultAction(this.hotkey);
|
315
|
+
}
|
316
|
+
else if (typeof this.hotkey == 'object' && !Array.isArray(this.hotkey)) {
|
317
|
+
this._addHotKeyAction([this.hotkey]);
|
318
|
+
}
|
319
|
+
else if (Array.isArray(this.hotkey)) {
|
320
|
+
this._addHotKeyAction(this.hotkey);
|
321
|
+
}
|
421
322
|
}
|
422
|
-
|
423
|
-
this.
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
323
|
+
_addDefaultAction(hotkey) {
|
324
|
+
this._subs.push(this.hs.addShortcut({ keys: hotkey }).subscribe(() => {
|
325
|
+
['click', 'toggle', 'open', 'focus'].forEach((a) => {
|
326
|
+
if (this._host[a]) {
|
327
|
+
this._host[a]();
|
328
|
+
return;
|
329
|
+
}
|
330
|
+
});
|
331
|
+
}));
|
332
|
+
}
|
333
|
+
_addHotKeyAction(hotkeys) {
|
334
|
+
hotkeys.forEach((k) => {
|
335
|
+
const hotkey = Object.entries(k)[0][0];
|
336
|
+
const action = Object.entries(k)[0][1];
|
337
|
+
if (!action)
|
338
|
+
this._addDefaultAction(hotkey);
|
339
|
+
else {
|
340
|
+
this._subs.push(this.hs.addShortcut({ keys: hotkey }).subscribe(() => {
|
341
|
+
if (typeof action == 'string' && this._host[action]) {
|
342
|
+
this._host[action]();
|
343
|
+
return;
|
344
|
+
}
|
345
|
+
if (typeof action == 'function') {
|
346
|
+
action();
|
347
|
+
return;
|
348
|
+
}
|
349
|
+
}));
|
428
350
|
}
|
429
351
|
});
|
430
352
|
}
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
class MXColorLookComponent extends classes(MXColorComponent, MXLookComponent) {
|
436
|
-
constructor() {
|
437
|
-
super();
|
353
|
+
ngOnDestroy() {
|
354
|
+
this._subs.forEach((s) => {
|
355
|
+
s.unsubscribe();
|
356
|
+
});
|
438
357
|
}
|
358
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeyDirective, deps: [{ token: i0.ElementRef }, { token: AXComponent, host: true, optional: true, self: true }, { token: AXHotkeysService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
359
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AXHotkeyDirective, selector: "[hotkey]", inputs: { hotkey: "hotkey" }, ngImport: i0 }); }
|
439
360
|
}
|
440
|
-
|
441
|
-
|
361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXHotkeyDirective, decorators: [{
|
362
|
+
type: Directive,
|
363
|
+
args: [{
|
364
|
+
selector: '[hotkey]',
|
365
|
+
}]
|
366
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AXComponent, decorators: [{
|
367
|
+
type: Host
|
368
|
+
}, {
|
369
|
+
type: Self
|
370
|
+
}, {
|
371
|
+
type: Optional
|
372
|
+
}] }, { type: AXHotkeysService }]; }, propDecorators: { hotkey: [{
|
373
|
+
type: Input,
|
374
|
+
args: ['hotkey']
|
375
|
+
}] } });
|
442
376
|
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
377
|
+
;
|
378
|
+
const AX_DEFAULT_SCROLL_POSITION = {
|
379
|
+
scrollHeight: 0,
|
380
|
+
scrollTop: 0,
|
381
|
+
clientHeight: 0
|
382
|
+
};
|
383
|
+
class AXInfiniteScrollerDirective {
|
384
|
+
constructor(elm) {
|
385
|
+
this.elm = elm;
|
386
|
+
this.scrollPercent = 70;
|
387
|
+
this.isUserScrollingDown = (positions) => {
|
388
|
+
return positions[0].sT < positions[1].sT;
|
389
|
+
};
|
390
|
+
this.isScrollExpectedPercent = (position) => {
|
391
|
+
return ((position.sT + position.cH) / position.sH) > (this.scrollPercent / 100);
|
392
|
+
};
|
451
393
|
}
|
452
|
-
|
453
|
-
this.
|
454
|
-
|
455
|
-
|
456
|
-
afterCallback: () => {
|
457
|
-
this.cdr.markForCheck();
|
458
|
-
}
|
459
|
-
});
|
394
|
+
ngAfterViewInit() {
|
395
|
+
this.registerScrollEvent();
|
396
|
+
this.streamScrollEvents();
|
397
|
+
this.requestCallbackOnScroll();
|
460
398
|
}
|
461
|
-
|
462
|
-
|
463
|
-
/**
|
464
|
-
* Provides visual styling that indicates if the Button is active
|
465
|
-
*/
|
466
|
-
get toggleable() {
|
467
|
-
return this._toggleable;
|
399
|
+
registerScrollEvent() {
|
400
|
+
this.scrollEvent$ = fromEvent(this.elm.nativeElement, 'scroll');
|
468
401
|
}
|
469
|
-
|
470
|
-
this.
|
471
|
-
|
472
|
-
|
473
|
-
|
402
|
+
streamScrollEvents() {
|
403
|
+
this.userScrolledDown$ = this.scrollEvent$
|
404
|
+
.pipe(map((e) => ({
|
405
|
+
scrollHeight: e.target.scrollHeight,
|
406
|
+
scrollTop: e.target.scrollTop,
|
407
|
+
clientHeight: e.target.clientHeight
|
408
|
+
})), pairwise(), filter(positions => this.isUserScrollingDown(positions) && this.isScrollExpectedPercent(positions[1])));
|
474
409
|
}
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
410
|
+
requestCallbackOnScroll() {
|
411
|
+
this.requestOnScroll$ = this.userScrolledDown$;
|
412
|
+
if (this.immediateCallback) {
|
413
|
+
this.requestOnScroll$ = this.requestOnScroll$.pipe(startWith([AX_DEFAULT_SCROLL_POSITION, AX_DEFAULT_SCROLL_POSITION]));
|
414
|
+
}
|
415
|
+
this.requestOnScroll$.pipe(exhaustMap(() => {
|
416
|
+
return this.scrollCallback();
|
417
|
+
}));
|
418
|
+
//.subscribe((data) => { console.log(data) }, (err) => console.log(err));
|
482
419
|
}
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
420
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXInfiniteScrollerDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
421
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AXInfiniteScrollerDirective, selector: "[axInfiniteScroller]", inputs: { scrollCallback: "scrollCallback", immediateCallback: "immediateCallback", scrollPercent: "scrollPercent" }, ngImport: i0 }); }
|
422
|
+
}
|
423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXInfiniteScrollerDirective, decorators: [{
|
424
|
+
type: Directive,
|
425
|
+
args: [{
|
426
|
+
selector: '[axInfiniteScroller]'
|
427
|
+
}]
|
428
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { scrollCallback: [{
|
429
|
+
type: Input
|
430
|
+
}], immediateCallback: [{
|
431
|
+
type: Input
|
432
|
+
}], scrollPercent: [{
|
433
|
+
type: Input
|
434
|
+
}] } });
|
435
|
+
|
436
|
+
class AXResponsiveDirective {
|
437
|
+
constructor(_elementRef) {
|
438
|
+
this._elementRef = _elementRef;
|
439
|
+
this._observer = new ResizeObserver(entries => {
|
440
|
+
for (let entry of entries) {
|
441
|
+
if (entry.target) {
|
442
|
+
const e = entry.target;
|
443
|
+
const elements = [e, ...Array.from(e.querySelectorAll(`[class*='sm:']`))];
|
444
|
+
elements
|
445
|
+
.map(c => ({
|
446
|
+
element: c,
|
447
|
+
classList: Array.from(c.classList)
|
448
|
+
.filter(c => c.includes('sm'))
|
449
|
+
.map(c => c.slice(3)),
|
450
|
+
}))
|
451
|
+
.forEach(c => {
|
452
|
+
e.clientWidth < 320 ? c.element.classList.add(...c.classList) : c.element.classList.remove(...c.classList);
|
453
|
+
});
|
454
|
+
}
|
489
455
|
}
|
490
456
|
});
|
457
|
+
this._observer.observe(_elementRef.nativeElement);
|
491
458
|
}
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
get cssClasses() {
|
496
|
-
const cssClasses = {
|
497
|
-
'ax-button-icon': !this.text,
|
498
|
-
'ax-state-disabled': this["disabled"],
|
499
|
-
'ax-state-selected': this.selected
|
500
|
-
};
|
501
|
-
cssClasses[`ax-${this['color'] || 'default'}${this['look'] ? '-' + this['look'] : '-default'}`] = true;
|
502
|
-
return cssClasses;
|
459
|
+
ngOnDestroy() {
|
460
|
+
this._observer?.disconnect();
|
461
|
+
this._observer?.unobserve(this._elementRef.nativeElement);
|
503
462
|
}
|
463
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXResponsiveDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
464
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: AXResponsiveDirective, selector: "[ax-responsive]", ngImport: i0 }); }
|
504
465
|
}
|
505
|
-
|
506
|
-
|
466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXResponsiveDirective, decorators: [{
|
467
|
+
type: Directive,
|
468
|
+
args: [{ selector: '[ax-responsive]' }]
|
469
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
507
470
|
|
508
|
-
class
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
const old = AXObjectUtil.deepJSONClone(this.value);
|
550
|
-
// TODO: check real equality
|
551
|
-
if (v != old) {
|
552
|
-
this._value = v;
|
553
|
-
this.emitOnValueChangedEvent(old, this.value);
|
554
|
-
this.cdr.markForCheck();
|
555
|
-
if (v == null || v == undefined || v == '' || (Array.isArray(v) && v.length == 0)) {
|
556
|
-
this.setState('clear');
|
557
|
-
}
|
558
|
-
// else {
|
559
|
-
// if (this._isInited) {
|
560
|
-
// this.validate();
|
561
|
-
// }
|
562
|
-
// }
|
563
|
-
}
|
564
|
-
this._isUserInteraction = false;
|
565
|
-
//}
|
471
|
+
class AXCommonModule {
|
472
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
473
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective,
|
474
|
+
AXInfiniteScrollerDirective,
|
475
|
+
AXNgModelChangeDebouncedDirective,
|
476
|
+
AXAutoFocusDirective,
|
477
|
+
AXHotkeyDirective], exports: [AXResponsiveDirective,
|
478
|
+
AXInfiniteScrollerDirective,
|
479
|
+
AXAutoFocusDirective,
|
480
|
+
AXNgModelChangeDebouncedDirective,
|
481
|
+
AXHotkeyDirective] }); }
|
482
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule }); }
|
483
|
+
}
|
484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXCommonModule, decorators: [{
|
485
|
+
type: NgModule,
|
486
|
+
args: [{
|
487
|
+
imports: [],
|
488
|
+
exports: [
|
489
|
+
AXResponsiveDirective,
|
490
|
+
AXInfiniteScrollerDirective,
|
491
|
+
AXAutoFocusDirective,
|
492
|
+
AXNgModelChangeDebouncedDirective,
|
493
|
+
AXHotkeyDirective,
|
494
|
+
],
|
495
|
+
declarations: [
|
496
|
+
AXResponsiveDirective,
|
497
|
+
AXInfiniteScrollerDirective,
|
498
|
+
AXNgModelChangeDebouncedDirective,
|
499
|
+
AXAutoFocusDirective,
|
500
|
+
AXHotkeyDirective,
|
501
|
+
],
|
502
|
+
providers: [],
|
503
|
+
}]
|
504
|
+
}] });
|
505
|
+
|
506
|
+
class MXBaseComponent {
|
507
|
+
constructor() {
|
508
|
+
this._cdr = inject(ChangeDetectorRef);
|
509
|
+
this._elementRef = inject(ElementRef);
|
510
|
+
this._viewRef = inject(ViewContainerRef);
|
511
|
+
this.onOptionChanged = new EventEmitter();
|
566
512
|
}
|
567
|
-
|
568
|
-
|
569
|
-
return this._state;
|
513
|
+
get cdr() {
|
514
|
+
return this._cdr;
|
570
515
|
}
|
571
|
-
|
572
|
-
this.
|
573
|
-
this.stateChange.emit(value);
|
516
|
+
getHostElement() {
|
517
|
+
return this._elementRef.nativeElement;
|
574
518
|
}
|
575
|
-
|
576
|
-
this.
|
577
|
-
this.onValueChanged.emit({
|
578
|
-
component: this,
|
579
|
-
value: newValue,
|
580
|
-
oldValue: oldValue,
|
581
|
-
name: this.name,
|
582
|
-
isUserInteraction: this.isUserInteraction,
|
583
|
-
});
|
584
|
-
this._isUserInteraction = false;
|
519
|
+
getViewContainer() {
|
520
|
+
return this._viewRef;
|
585
521
|
}
|
586
|
-
|
587
|
-
return value;
|
522
|
+
onOptionChanging(option) {
|
523
|
+
return option?.value;
|
588
524
|
}
|
589
|
-
|
590
|
-
|
525
|
+
init() {
|
526
|
+
debugger;
|
527
|
+
this.getHostElement().__axContext__ = this;
|
591
528
|
}
|
592
|
-
|
593
|
-
|
594
|
-
this.
|
529
|
+
setOption(option) {
|
530
|
+
const oldValue = this[option.name];
|
531
|
+
const newValue = this.onOptionChanging({
|
532
|
+
name: option.name,
|
533
|
+
value: option.value,
|
534
|
+
});
|
535
|
+
//TODO : check real changes
|
536
|
+
if (option.beforeCallback)
|
537
|
+
option.beforeCallback(oldValue, newValue);
|
538
|
+
if (oldValue != newValue) {
|
539
|
+
this[`_${option.name}`] = option.value;
|
540
|
+
this.onOptionChanged.emit({
|
541
|
+
component: this,
|
542
|
+
name: option.name,
|
543
|
+
newValue,
|
544
|
+
oldValue,
|
545
|
+
});
|
546
|
+
const emitter = this[`${option.name}Change`];
|
547
|
+
emitter?.emit(newValue);
|
548
|
+
}
|
549
|
+
if (option.afterCallback)
|
550
|
+
option.afterCallback(oldValue, newValue);
|
595
551
|
}
|
596
|
-
|
597
|
-
this.
|
552
|
+
get rtl() {
|
553
|
+
if (this._rtl)
|
554
|
+
return this._rtl;
|
555
|
+
else
|
556
|
+
return (this.getHostElement().classList.contains('ax-rtl') ||
|
557
|
+
window.getComputedStyle(this.getHostElement(), null).getPropertyValue('direction') === 'rtl');
|
598
558
|
}
|
599
|
-
|
600
|
-
this.
|
601
|
-
this.onOptionChanged?.unsubscribe();
|
559
|
+
set rtl(value) {
|
560
|
+
this.setOption({ name: 'rtl', value });
|
602
561
|
}
|
603
|
-
|
604
|
-
|
562
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXBaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
563
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXBaseComponent }); }
|
564
|
+
}
|
565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXBaseComponent, decorators: [{
|
566
|
+
type: Injectable
|
567
|
+
}] });
|
568
|
+
const BASE_INPUTS = ['rtl'];
|
569
|
+
const BASE_OUTPUT = [];
|
570
|
+
|
571
|
+
class MXColorComponent extends MXBaseComponent {
|
572
|
+
constructor() {
|
573
|
+
super();
|
574
|
+
this.colorChange = new EventEmitter();
|
575
|
+
this._color = 'default';
|
605
576
|
}
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
const formField = container?.closest('.ax-form-field');
|
612
|
-
const label = formField?.querySelector('ax-label')?.__axContext__;
|
613
|
-
if (label)
|
614
|
-
label.required = true;
|
615
|
-
}
|
577
|
+
/**
|
578
|
+
* Predefined color schemes
|
579
|
+
*/
|
580
|
+
get color() {
|
581
|
+
return this._color;
|
616
582
|
}
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
result: true,
|
625
|
-
value: this.value,
|
626
|
-
name: this.name,
|
627
|
-
id: this.id,
|
628
|
-
});
|
629
|
-
}
|
630
|
-
return new Promise(resolve => {
|
631
|
-
Promise.all(rules
|
632
|
-
.filter(c => typeof c?.validate === 'function')
|
633
|
-
.map(c => {
|
634
|
-
return c.validate(this.value);
|
635
|
-
})).then(d => {
|
636
|
-
const error = d.find(c => c.result === false);
|
637
|
-
if (error) {
|
638
|
-
this.setState('error', error.message);
|
639
|
-
resolve({
|
640
|
-
result: false,
|
641
|
-
value: this.value,
|
642
|
-
message: error.message,
|
643
|
-
name: this.name,
|
644
|
-
id: this.id,
|
645
|
-
});
|
646
|
-
}
|
647
|
-
else {
|
648
|
-
this.setState('success');
|
649
|
-
resolve({
|
650
|
-
result: true,
|
651
|
-
value: this.value,
|
652
|
-
name: this.name,
|
653
|
-
id: this.id,
|
654
|
-
});
|
655
|
-
}
|
656
|
-
});
|
583
|
+
set color(value) {
|
584
|
+
this.setOption({
|
585
|
+
name: 'color',
|
586
|
+
value,
|
587
|
+
afterCallback: () => {
|
588
|
+
this.cdr.markForCheck();
|
589
|
+
},
|
657
590
|
});
|
658
591
|
}
|
659
|
-
setState(state, ...args) {
|
660
|
-
const container = this.getHostElement().classList.contains('ax-editor-container') ? this.getHostElement() : this.getHostElement().querySelector('.ax-editor-container');
|
661
|
-
const formField = container?.closest('.ax-form-field');
|
662
|
-
const label = formField?.querySelector('ax-label') || formField?.querySelector('label');
|
663
|
-
let target = container || this.getHostElement().firstElementChild;
|
664
|
-
if (target?.querySelector('.ax-error-container')) {
|
665
|
-
target = target.querySelector('.ax-error-container');
|
666
|
-
}
|
667
|
-
const parent = target?.parentElement;
|
668
|
-
if (!target || !parent)
|
669
|
-
return;
|
670
|
-
switch (state) {
|
671
|
-
case 'clear':
|
672
|
-
this._state = 'clear';
|
673
|
-
if (parent.querySelector('span.ax-error-message')) {
|
674
|
-
parent.removeChild(parent.querySelector('span.ax-error-message'));
|
675
|
-
}
|
676
|
-
label?.classList.remove('ax-state-error');
|
677
|
-
target.classList.remove('ax-state-error', 'ax-state-success');
|
678
|
-
break;
|
679
|
-
case 'success':
|
680
|
-
this.setState('clear');
|
681
|
-
target.classList.add('ax-state-success');
|
682
|
-
this._state = 'success';
|
683
|
-
break;
|
684
|
-
case 'error':
|
685
|
-
this.setState('clear');
|
686
|
-
if (args[0]) {
|
687
|
-
const span = document.createElement('span');
|
688
|
-
span.innerText = args[0];
|
689
|
-
span.classList.add('ax-error-message');
|
690
|
-
parent.appendChild(span);
|
691
|
-
}
|
692
|
-
label?.classList.add('ax-state-error');
|
693
|
-
target.classList.add('ax-state-error');
|
694
|
-
this._state = 'error';
|
695
|
-
break;
|
696
|
-
}
|
697
|
-
this.cdr.markForCheck();
|
698
|
-
}
|
699
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: MXValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
700
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: MXValueComponent });
|
701
592
|
}
|
702
|
-
|
703
|
-
|
704
|
-
}] });
|
593
|
+
const COLOR_INPUTS = ['color', ...BASE_INPUTS];
|
594
|
+
const COLOR_OUTPUT = ['colorChange', ...BASE_OUTPUT];
|
705
595
|
|
706
|
-
class
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
this.el = el;
|
712
|
-
this._host = _host;
|
596
|
+
class MXLookComponent extends MXBaseComponent {
|
597
|
+
constructor() {
|
598
|
+
super();
|
599
|
+
this.lookChange = new EventEmitter();
|
600
|
+
this._look = 'default';
|
713
601
|
}
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
focusable.setAttributeNode(attr);
|
729
|
-
const hasTabindex = focusable.hasAttribute('tabindex');
|
730
|
-
if (!hasTabindex) {
|
731
|
-
focusable.setAttribute('tabIndex', '0');
|
732
|
-
}
|
733
|
-
setTimeout(() => {
|
734
|
-
focusable.focus();
|
735
|
-
}, 100);
|
736
|
-
}
|
602
|
+
/**
|
603
|
+
* Predefined look schemes
|
604
|
+
*/
|
605
|
+
get look() {
|
606
|
+
return this._look;
|
607
|
+
}
|
608
|
+
set look(value) {
|
609
|
+
this.setOption({
|
610
|
+
name: 'look',
|
611
|
+
value,
|
612
|
+
afterCallback: () => {
|
613
|
+
this.cdr.markForCheck();
|
614
|
+
},
|
615
|
+
});
|
737
616
|
}
|
738
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AXAutoFocusDirective, deps: [{ token: i0.ElementRef }, { token: AXFocusableComponent, host: true, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive });
|
739
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.3", type: AXAutoFocusDirective, selector: "[axAutoFocus]", inputs: { autoFocus: ["axAutoFocus", "autoFocus"], time: ["focus-time", "time"] }, ngImport: i0 });
|
740
617
|
}
|
741
|
-
|
742
|
-
|
743
|
-
args: [{
|
744
|
-
selector: '[axAutoFocus]',
|
745
|
-
}]
|
746
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: AXFocusableComponent, decorators: [{
|
747
|
-
type: Host
|
748
|
-
}, {
|
749
|
-
type: Self
|
750
|
-
}, {
|
751
|
-
type: Optional
|
752
|
-
}] }]; }, propDecorators: { autoFocus: [{
|
753
|
-
type: Input,
|
754
|
-
args: ['axAutoFocus']
|
755
|
-
}], time: [{
|
756
|
-
type: Input,
|
757
|
-
args: ['focus-time']
|
758
|
-
}] } });
|
618
|
+
const LOOK_INPUTS = ['look', ...BASE_INPUTS];
|
619
|
+
const LOOK_OUTPUT = ['lookChange', ...BASE_OUTPUT];
|
759
620
|
|
760
|
-
class
|
761
|
-
|
762
|
-
|
763
|
-
ngModelChangeDebounceTimeChange = new EventEmitter();
|
764
|
-
_ngModelChangeDebounceTime = 0;
|
765
|
-
get ngModelChangeDebounceTime() {
|
766
|
-
return this._ngModelChangeDebounceTime;
|
621
|
+
class MXColorLookComponent extends classes(MXColorComponent, MXLookComponent) {
|
622
|
+
constructor() {
|
623
|
+
super();
|
767
624
|
}
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
625
|
+
}
|
626
|
+
const COLOR_LOOK_INPUTS = [...COLOR_INPUTS, ...LOOK_INPUTS];
|
627
|
+
const COLOR_LOOK_OUTPUT = [...COLOR_OUTPUT, ...LOOK_OUTPUT];
|
628
|
+
|
629
|
+
class MXInteractiveComponent extends MXBaseComponent {
|
630
|
+
/**
|
631
|
+
* If set to true, it disables the component.
|
632
|
+
*/
|
633
|
+
get disabled() {
|
634
|
+
return this._disabled;
|
774
635
|
}
|
775
|
-
|
776
|
-
|
777
|
-
this.subscription.unsubscribe();
|
636
|
+
set disabled(value) {
|
637
|
+
this.setOption({ name: 'disabled', value });
|
778
638
|
}
|
779
|
-
|
780
|
-
|
781
|
-
|
639
|
+
/**
|
640
|
+
* Specifies the tabindex of the component.
|
641
|
+
*/
|
642
|
+
get tabIndex() {
|
643
|
+
return this.disabled ? -1 : this._tabIndex;
|
782
644
|
}
|
783
|
-
|
784
|
-
this.
|
785
|
-
//
|
786
|
-
this.subscription = this.ngModel.control.valueChanges.pipe(skip(1), // skip initial value
|
787
|
-
distinctUntilChanged(), debounceTime(this.ngModelChangeDebounceTime)).subscribe((value) => this.ngModelChangeDebounced.emit(value));
|
645
|
+
set tabIndex(value) {
|
646
|
+
this.setOption({ name: 'tabIndex', value: value != null ? coerceNumberProperty(value) : 0 });
|
788
647
|
}
|
789
|
-
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
|
795
|
-
selector: '[ngModelChangeDebounced]',
|
796
|
-
}]
|
797
|
-
}], ctorParameters: function () { return [{ type: i1.NgModel }]; }, propDecorators: { ngModelChangeDebounced: [{
|
798
|
-
type: Output
|
799
|
-
}], ngModelChangeDebounceTimeChange: [{
|
800
|
-
type: Output
|
801
|
-
}], ngModelChangeDebounceTime: [{
|
802
|
-
type: Input
|
803
|
-
}] } });
|
804
|
-
|
805
|
-
class AXHotkeysService {
|
806
|
-
eventManager;
|
807
|
-
document;
|
808
|
-
defaults = {
|
809
|
-
element: this.document,
|
810
|
-
};
|
811
|
-
constructor(eventManager, document) {
|
812
|
-
this.eventManager = eventManager;
|
813
|
-
this.document = document;
|
648
|
+
emitOnFocusEvent(e) {
|
649
|
+
this.onFocus.emit({
|
650
|
+
component: this,
|
651
|
+
htmlElement: this.getHostElement(),
|
652
|
+
nativeEvent: e,
|
653
|
+
});
|
814
654
|
}
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
e.preventDefault();
|
821
|
-
observer.next(e);
|
822
|
-
};
|
823
|
-
if (merged.element) {
|
824
|
-
// Todo: check addEventListener is not function
|
825
|
-
const dispose = this.eventManager.addEventListener(merged.element, event, handler);
|
826
|
-
return () => {
|
827
|
-
dispose();
|
828
|
-
};
|
829
|
-
}
|
830
|
-
else {
|
831
|
-
// console.error('Element is not accessible');
|
832
|
-
return null;
|
833
|
-
}
|
655
|
+
emitOnBlurEvent(e) {
|
656
|
+
this.onBlur.emit({
|
657
|
+
component: this,
|
658
|
+
htmlElement: this.getHostElement(),
|
659
|
+
nativeEvent: e,
|
834
660
|
});
|
835
661
|
}
|
836
|
-
|
837
|
-
|
662
|
+
constructor() {
|
663
|
+
super();
|
664
|
+
this._tabIndex = 0;
|
665
|
+
/**
|
666
|
+
* Fires each time the component gets focused.
|
667
|
+
* @event
|
668
|
+
*/
|
669
|
+
this.onFocus = new EventEmitter();
|
670
|
+
/**
|
671
|
+
* Fires each time the component gets blurred.
|
672
|
+
* @event
|
673
|
+
*/
|
674
|
+
this.onBlur = new EventEmitter();
|
675
|
+
}
|
676
|
+
focus() {
|
677
|
+
AXHtmlUtil.focusElement(this.getHostElement());
|
678
|
+
}
|
679
|
+
/**
|
680
|
+
* Check component is focused or has any focused element.
|
681
|
+
*/
|
682
|
+
hasFocus() {
|
683
|
+
return AXHtmlUtil.hasFocus(this.getHostElement());
|
684
|
+
}
|
838
685
|
}
|
839
|
-
|
840
|
-
|
841
|
-
args: [{ providedIn: 'root' }]
|
842
|
-
}], ctorParameters: function () { return [{ type: i1$1.EventManager }, { type: Document, decorators: [{
|
843
|
-
type: Inject,
|
844
|
-
args: [DOCUMENT]
|
845
|
-
}] }]; } });
|
686
|
+
const INTERACTIVE_INPUTS = ['disabled', 'tabIndex', ...BASE_INPUTS];
|
687
|
+
const INTERACTIVE_OUTPUT = ['onFocus', 'onBlur', ...BASE_OUTPUT];
|
846
688
|
|
847
|
-
class
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
constructor(el, _host, hs) {
|
854
|
-
this.el = el;
|
855
|
-
this._host = _host;
|
856
|
-
this.hs = hs;
|
689
|
+
class MXButtonBaseComponent extends classes(MXInteractiveComponent, MXColorLookComponent) {
|
690
|
+
/**
|
691
|
+
* Defines the primary text to show inside the button.
|
692
|
+
*/
|
693
|
+
get text() {
|
694
|
+
return this._text;
|
857
695
|
}
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
|
863
|
-
|
864
|
-
|
865
|
-
|
866
|
-
}
|
867
|
-
else if (Array.isArray(this.hotkey)) {
|
868
|
-
this._addHotKeyAction(this.hotkey);
|
869
|
-
}
|
696
|
+
set text(v) {
|
697
|
+
this.setOption({
|
698
|
+
name: 'text',
|
699
|
+
value: v,
|
700
|
+
afterCallback: () => {
|
701
|
+
this.cdr.markForCheck();
|
702
|
+
},
|
703
|
+
});
|
870
704
|
}
|
871
|
-
|
872
|
-
|
873
|
-
|
874
|
-
|
875
|
-
|
876
|
-
return;
|
877
|
-
}
|
878
|
-
});
|
879
|
-
}));
|
705
|
+
/**
|
706
|
+
* Provides visual styling that indicates if the Button is active
|
707
|
+
*/
|
708
|
+
get toggleable() {
|
709
|
+
return this._toggleable;
|
880
710
|
}
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
if (!action)
|
886
|
-
this._addDefaultAction(hotkey);
|
887
|
-
else {
|
888
|
-
this._subs.push(this.hs.addShortcut({ keys: hotkey }).subscribe(() => {
|
889
|
-
if (typeof action == 'string' && this._host[action]) {
|
890
|
-
this._host[action]();
|
891
|
-
return;
|
892
|
-
}
|
893
|
-
if (typeof action == 'function') {
|
894
|
-
action();
|
895
|
-
return;
|
896
|
-
}
|
897
|
-
}));
|
898
|
-
}
|
711
|
+
set toggleable(value) {
|
712
|
+
this.setOption({
|
713
|
+
name: 'toggleable',
|
714
|
+
value,
|
899
715
|
});
|
900
716
|
}
|
901
|
-
|
902
|
-
|
903
|
-
|
717
|
+
/**
|
718
|
+
* Indicates if the Button is selected or not
|
719
|
+
*/
|
720
|
+
get selected() {
|
721
|
+
return this._selected;
|
722
|
+
}
|
723
|
+
set selected(value) {
|
724
|
+
this.setOption({
|
725
|
+
name: 'selected',
|
726
|
+
value,
|
727
|
+
afterCallback: () => {
|
728
|
+
this.cdr.markForCheck();
|
729
|
+
},
|
904
730
|
});
|
905
731
|
}
|
906
|
-
|
907
|
-
|
732
|
+
constructor() {
|
733
|
+
super();
|
734
|
+
this.textChange = new EventEmitter();
|
735
|
+
this.toggleableChange = new EventEmitter();
|
736
|
+
this._toggleable = false;
|
737
|
+
this.selectedChange = new EventEmitter();
|
738
|
+
this._selected = false;
|
739
|
+
}
|
740
|
+
get cssClasses() {
|
741
|
+
const cssClasses = {
|
742
|
+
'ax-button-icon': !this.text,
|
743
|
+
'ax-state-disabled': this['disabled'],
|
744
|
+
'ax-state-selected': this.selected,
|
745
|
+
};
|
746
|
+
cssClasses[`ax-${this['color'] || 'default'}${this['look'] ? '-' + this['look'] : '-default'}`] = true;
|
747
|
+
return cssClasses;
|
748
|
+
}
|
908
749
|
}
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
|
916
|
-
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
}] } });
|
750
|
+
const BUTTON_INPUTS = [
|
751
|
+
'text',
|
752
|
+
'toggleable',
|
753
|
+
'selected',
|
754
|
+
...INTERACTIVE_INPUTS,
|
755
|
+
COLOR_LOOK_INPUTS,
|
756
|
+
];
|
757
|
+
const BUTTON_OUTPUT = [
|
758
|
+
'textChange',
|
759
|
+
'toggleableChange',
|
760
|
+
'selectedChange',
|
761
|
+
...INTERACTIVE_OUTPUT,
|
762
|
+
COLOR_LOOK_OUTPUT,
|
763
|
+
];
|
924
764
|
|
925
|
-
|
926
|
-
|
927
|
-
|
928
|
-
|
929
|
-
|
930
|
-
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
|
940
|
-
|
765
|
+
class MXValueComponent extends MXBaseComponent {
|
766
|
+
constructor() {
|
767
|
+
super(...arguments);
|
768
|
+
/**
|
769
|
+
* Fires each time the user press a key.
|
770
|
+
* @event
|
771
|
+
*/
|
772
|
+
this.onValueChanged = new EventEmitter();
|
773
|
+
this.valueChange = new EventEmitter();
|
774
|
+
this.stateChange = new EventEmitter();
|
775
|
+
this._readonly = false;
|
776
|
+
this._isUserInteraction = false;
|
777
|
+
this._state = 'clear';
|
778
|
+
}
|
779
|
+
/**
|
780
|
+
* If set to true, user cannot change the value of component.
|
781
|
+
*/
|
782
|
+
get readonly() {
|
783
|
+
return this._readonly;
|
784
|
+
}
|
785
|
+
set readonly(value) {
|
786
|
+
this._readonly = coerceBooleanProperty(value);
|
787
|
+
}
|
788
|
+
get name() {
|
789
|
+
return this._name;
|
790
|
+
}
|
791
|
+
set name(value) {
|
792
|
+
this._name = value;
|
793
|
+
}
|
794
|
+
get isUserInteraction() {
|
795
|
+
return this._isUserInteraction;
|
796
|
+
}
|
797
|
+
set isUserInteraction(value) {
|
798
|
+
this._isUserInteraction = value;
|
799
|
+
}
|
800
|
+
get value() {
|
801
|
+
return this.getValue(this._value) || this.defaultValue;
|
802
|
+
}
|
803
|
+
set value(v) {
|
804
|
+
v = this.setValue(v);
|
805
|
+
//if (!this._isInited ) {
|
806
|
+
const old = AXObjectUtil.deepJSONClone(this.value);
|
807
|
+
// TODO: check real equality
|
808
|
+
if (v != old) {
|
809
|
+
this._value = v;
|
810
|
+
this.emitOnValueChangedEvent(old, this.value);
|
811
|
+
this.cdr.markForCheck();
|
812
|
+
if (v == null || v == undefined || v == '' || (Array.isArray(v) && v.length == 0)) {
|
813
|
+
this.setState('clear');
|
814
|
+
}
|
815
|
+
// else {
|
816
|
+
// if (this._isInited) {
|
817
|
+
// this.validate();
|
818
|
+
// }
|
819
|
+
// }
|
820
|
+
}
|
821
|
+
this._isUserInteraction = false;
|
822
|
+
//}
|
823
|
+
}
|
824
|
+
get state() {
|
825
|
+
return this._state;
|
826
|
+
}
|
827
|
+
set state(value) {
|
828
|
+
this.setState(value);
|
829
|
+
this.stateChange.emit(value);
|
830
|
+
}
|
831
|
+
emitOnValueChangedEvent(oldValue, newValue) {
|
832
|
+
this.valueChange.emit(newValue);
|
833
|
+
this.onValueChanged.emit({
|
834
|
+
component: this,
|
835
|
+
value: newValue,
|
836
|
+
oldValue: oldValue,
|
837
|
+
name: this.name,
|
838
|
+
isUserInteraction: this.isUserInteraction,
|
839
|
+
});
|
840
|
+
this._isUserInteraction = false;
|
841
|
+
}
|
842
|
+
setValue(value) {
|
843
|
+
return value;
|
844
|
+
}
|
845
|
+
getValue(value) {
|
846
|
+
return value;
|
847
|
+
}
|
848
|
+
ngOnInit() {
|
849
|
+
super.init();
|
850
|
+
this.getHostElement().setAttribute('ax-form-input', 'true');
|
941
851
|
}
|
942
852
|
ngAfterViewInit() {
|
943
|
-
this.
|
944
|
-
this.streamScrollEvents();
|
945
|
-
this.requestCallbackOnScroll();
|
853
|
+
this._checkRequired();
|
946
854
|
}
|
947
|
-
|
948
|
-
this.
|
855
|
+
ngOnDestroy() {
|
856
|
+
this.onValueChanged?.unsubscribe();
|
857
|
+
this.onOptionChanged?.unsubscribe();
|
949
858
|
}
|
950
|
-
|
951
|
-
this.
|
952
|
-
.pipe(map((e) => ({
|
953
|
-
scrollHeight: e.target.scrollHeight,
|
954
|
-
scrollTop: e.target.scrollTop,
|
955
|
-
clientHeight: e.target.clientHeight
|
956
|
-
})), pairwise(), filter(positions => this.isUserScrollingDown(positions) && this.isScrollExpectedPercent(positions[1])));
|
859
|
+
clear() {
|
860
|
+
this.value = null;
|
957
861
|
}
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
862
|
+
_checkRequired() {
|
863
|
+
const isRequired = Array.from(this.getHostElement().querySelectorAll('ax-validation-rule')).some(c => c.__axContext__.enabled && c.__axContext__.rule == 'required');
|
864
|
+
//
|
865
|
+
if (isRequired) {
|
866
|
+
const container = this.getHostElement().classList.contains('ax-editor-container') ? this.getHostElement() : this.getHostElement().querySelector('.ax-editor-container');
|
867
|
+
const formField = container?.closest('.ax-form-field');
|
868
|
+
const label = formField?.querySelector('ax-label')?.__axContext__;
|
869
|
+
if (label)
|
870
|
+
label.required = true;
|
962
871
|
}
|
963
|
-
this.requestOnScroll$.pipe(exhaustMap(() => {
|
964
|
-
return this.scrollCallback();
|
965
|
-
}));
|
966
|
-
//.subscribe((data) => { console.log(data) }, (err) => console.log(err));
|
967
872
|
}
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
selector: '[axInfiniteScroller]'
|
981
|
-
}]
|
982
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { scrollCallback: [{
|
983
|
-
type: Input
|
984
|
-
}], immediateCallback: [{
|
985
|
-
type: Input
|
986
|
-
}], scrollPercent: [{
|
987
|
-
type: Input
|
988
|
-
}] } });
|
989
|
-
|
990
|
-
class AXResponsiveDirective {
|
991
|
-
_elementRef;
|
992
|
-
_observer = new ResizeObserver(entries => {
|
993
|
-
for (let entry of entries) {
|
994
|
-
if (entry.target) {
|
995
|
-
const e = entry.target;
|
996
|
-
const elements = [e, ...Array.from(e.querySelectorAll(`[class*='sm:']`))];
|
997
|
-
elements
|
998
|
-
.map(c => ({
|
999
|
-
element: c,
|
1000
|
-
classList: Array.from(c.classList)
|
1001
|
-
.filter(c => c.includes('sm'))
|
1002
|
-
.map(c => c.slice(3)),
|
1003
|
-
}))
|
1004
|
-
.forEach(c => {
|
1005
|
-
e.clientWidth < 320 ? c.element.classList.add(...c.classList) : c.element.classList.remove(...c.classList);
|
1006
|
-
});
|
1007
|
-
}
|
873
|
+
validate() {
|
874
|
+
debugger;
|
875
|
+
const rules = Array.from(this.getHostElement().querySelectorAll('ax-validation-rule')).filter(c => c.__axContext__.enabled);
|
876
|
+
//
|
877
|
+
if (!rules || rules.length === 0) {
|
878
|
+
this.setState('clear');
|
879
|
+
return Promise.resolve({
|
880
|
+
result: true,
|
881
|
+
value: this.value,
|
882
|
+
name: this.name,
|
883
|
+
id: this.id,
|
884
|
+
});
|
1008
885
|
}
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
886
|
+
return new Promise(resolve => {
|
887
|
+
Promise.all(rules
|
888
|
+
.filter(c => typeof c?.validate === 'function')
|
889
|
+
.map(c => {
|
890
|
+
return c.validate(this.value);
|
891
|
+
})).then(d => {
|
892
|
+
const error = d.find(c => c.result === false);
|
893
|
+
if (error) {
|
894
|
+
this.setState('error', error.message);
|
895
|
+
resolve({
|
896
|
+
result: false,
|
897
|
+
value: this.value,
|
898
|
+
message: error.message,
|
899
|
+
name: this.name,
|
900
|
+
id: this.id,
|
901
|
+
});
|
902
|
+
}
|
903
|
+
else {
|
904
|
+
this.setState('success');
|
905
|
+
resolve({
|
906
|
+
result: true,
|
907
|
+
value: this.value,
|
908
|
+
name: this.name,
|
909
|
+
id: this.id,
|
910
|
+
});
|
911
|
+
}
|
912
|
+
});
|
913
|
+
});
|
1013
914
|
}
|
1014
|
-
|
1015
|
-
this.
|
1016
|
-
|
915
|
+
setState(state, ...args) {
|
916
|
+
const container = this.getHostElement().classList.contains('ax-editor-container') ? this.getHostElement() : this.getHostElement().querySelector('.ax-editor-container');
|
917
|
+
const formField = container?.closest('.ax-form-field');
|
918
|
+
const label = formField?.querySelector('ax-label') || formField?.querySelector('label');
|
919
|
+
let target = container || this.getHostElement().firstElementChild;
|
920
|
+
if (target?.querySelector('.ax-error-container')) {
|
921
|
+
target = target.querySelector('.ax-error-container');
|
922
|
+
}
|
923
|
+
const parent = target?.parentElement;
|
924
|
+
if (!target || !parent)
|
925
|
+
return;
|
926
|
+
switch (state) {
|
927
|
+
case 'clear':
|
928
|
+
this._state = 'clear';
|
929
|
+
if (parent.querySelector('span.ax-error-message')) {
|
930
|
+
parent.removeChild(parent.querySelector('span.ax-error-message'));
|
931
|
+
}
|
932
|
+
label?.classList.remove('ax-state-error');
|
933
|
+
target.classList.remove('ax-state-error', 'ax-state-success');
|
934
|
+
break;
|
935
|
+
case 'success':
|
936
|
+
this.setState('clear');
|
937
|
+
target.classList.add('ax-state-success');
|
938
|
+
this._state = 'success';
|
939
|
+
break;
|
940
|
+
case 'error':
|
941
|
+
this.setState('clear');
|
942
|
+
if (args[0]) {
|
943
|
+
const span = document.createElement('span');
|
944
|
+
span.innerText = args[0];
|
945
|
+
span.classList.add('ax-error-message');
|
946
|
+
parent.appendChild(span);
|
947
|
+
}
|
948
|
+
label?.classList.add('ax-state-error');
|
949
|
+
target.classList.add('ax-state-error');
|
950
|
+
this._state = 'error';
|
951
|
+
break;
|
952
|
+
}
|
953
|
+
this.cdr.markForCheck();
|
1017
954
|
}
|
1018
|
-
static
|
1019
|
-
static
|
955
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXValueComponent, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
956
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXValueComponent }); }
|
1020
957
|
}
|
1021
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
1022
|
-
type:
|
1023
|
-
|
1024
|
-
|
958
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: MXValueComponent, decorators: [{
|
959
|
+
type: Injectable
|
960
|
+
}] });
|
961
|
+
|
962
|
+
const AXPositions = {
|
963
|
+
topStart: {
|
964
|
+
originX: 'start',
|
965
|
+
originY: 'top',
|
966
|
+
overlayX: 'start',
|
967
|
+
overlayY: 'bottom',
|
968
|
+
},
|
969
|
+
topCenter: {
|
970
|
+
originX: 'center',
|
971
|
+
originY: 'top',
|
972
|
+
overlayX: 'center',
|
973
|
+
overlayY: 'bottom',
|
974
|
+
},
|
975
|
+
topEnd: {
|
976
|
+
originX: 'end',
|
977
|
+
originY: 'top',
|
978
|
+
overlayX: 'end',
|
979
|
+
overlayY: 'bottom',
|
980
|
+
},
|
981
|
+
startStart: {
|
982
|
+
originX: 'start',
|
983
|
+
originY: 'top',
|
984
|
+
overlayX: 'end',
|
985
|
+
overlayY: 'top',
|
986
|
+
},
|
987
|
+
startCenter: {
|
988
|
+
originX: 'start',
|
989
|
+
originY: 'center',
|
990
|
+
overlayX: 'end',
|
991
|
+
overlayY: 'center',
|
992
|
+
},
|
993
|
+
startEnd: {
|
994
|
+
originX: 'start',
|
995
|
+
originY: 'bottom',
|
996
|
+
overlayX: 'end',
|
997
|
+
overlayY: 'bottom',
|
998
|
+
},
|
999
|
+
bottomStart: {
|
1000
|
+
originX: 'start',
|
1001
|
+
originY: 'bottom',
|
1002
|
+
overlayX: 'start',
|
1003
|
+
overlayY: 'top',
|
1004
|
+
},
|
1005
|
+
bottomCenter: {
|
1006
|
+
originX: 'center',
|
1007
|
+
originY: 'bottom',
|
1008
|
+
overlayX: 'center',
|
1009
|
+
overlayY: 'top',
|
1010
|
+
},
|
1011
|
+
bottomEnd: {
|
1012
|
+
originX: 'end',
|
1013
|
+
originY: 'bottom',
|
1014
|
+
overlayX: 'end',
|
1015
|
+
overlayY: 'top',
|
1016
|
+
},
|
1017
|
+
endStart: {
|
1018
|
+
originX: 'end',
|
1019
|
+
originY: 'top',
|
1020
|
+
overlayX: 'start',
|
1021
|
+
overlayY: 'top',
|
1022
|
+
},
|
1023
|
+
endCenter: {
|
1024
|
+
originX: 'end',
|
1025
|
+
originY: 'center',
|
1026
|
+
overlayX: 'start',
|
1027
|
+
overlayY: 'center',
|
1028
|
+
},
|
1029
|
+
endEnd: {
|
1030
|
+
originX: 'end',
|
1031
|
+
originY: 'bottom',
|
1032
|
+
overlayX: 'start',
|
1033
|
+
overlayY: 'bottom',
|
1034
|
+
},
|
1035
|
+
};
|
1025
1036
|
|
1026
1037
|
class DynamicOverlayContainer extends OverlayContainer {
|
1027
1038
|
setContainerElement(containerElement) {
|
1028
1039
|
this._containerElement = containerElement;
|
1029
1040
|
}
|
1030
|
-
static
|
1031
|
-
static
|
1041
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlayContainer, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
1042
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlayContainer, providedIn: 'root' }); }
|
1032
1043
|
}
|
1033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
1044
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlayContainer, decorators: [{
|
1034
1045
|
type: Injectable,
|
1035
1046
|
args: [{
|
1036
1047
|
providedIn: 'root',
|
1037
1048
|
}]
|
1038
1049
|
}] });
|
1039
1050
|
class DynamicOverlay extends Overlay {
|
1040
|
-
_dynamicOverlayContainer;
|
1041
|
-
renderer;
|
1042
1051
|
constructor(scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, rendererFactory, _location, _outsideClickDispatcher) {
|
1043
1052
|
super(scrollStrategies, _overlayContainer, _componentFactoryResolver, _positionBuilder, _keyboardDispatcher, _injector, _ngZone, _document, _directionality, _location, _outsideClickDispatcher);
|
1044
1053
|
this.renderer = rendererFactory.createRenderer(null, null);
|
@@ -1052,10 +1061,10 @@ class DynamicOverlay extends Overlay {
|
|
1052
1061
|
this.setContainerElement(containerElement);
|
1053
1062
|
return super.create(config);
|
1054
1063
|
}
|
1055
|
-
static
|
1056
|
-
static
|
1064
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlay, deps: [{ token: i1$2.ScrollStrategyOptions }, { token: DynamicOverlayContainer }, { token: i0.ComponentFactoryResolver }, { token: i1$2.OverlayPositionBuilder }, { token: i1$2.OverlayKeyboardDispatcher }, { token: i0.Injector }, { token: i0.NgZone }, { token: DOCUMENT }, { token: i2.Directionality }, { token: i0.RendererFactory2 }, { token: i3.Location }, { token: i1$2.OverlayOutsideClickDispatcher }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1065
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlay, providedIn: 'root' }); }
|
1057
1066
|
}
|
1058
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
1067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DynamicOverlay, decorators: [{
|
1059
1068
|
type: Injectable,
|
1060
1069
|
args: [{
|
1061
1070
|
providedIn: 'root',
|
@@ -1066,10 +1075,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImpor
|
|
1066
1075
|
}] }, { type: i2.Directionality }, { type: i0.RendererFactory2 }, { type: i3.Location }, { type: i1$2.OverlayOutsideClickDispatcher }]; } });
|
1067
1076
|
|
1068
1077
|
class AXOverlayService {
|
1069
|
-
overlayService;
|
1070
|
-
overlayService2;
|
1071
|
-
appRef;
|
1072
|
-
portal;
|
1073
1078
|
constructor(overlayService, overlayService2, appRef) {
|
1074
1079
|
this.overlayService = overlayService;
|
1075
1080
|
this.overlayService2 = overlayService2;
|
@@ -1166,49 +1171,14 @@ class AXOverlayService {
|
|
1166
1171
|
},
|
1167
1172
|
};
|
1168
1173
|
}
|
1169
|
-
static
|
1170
|
-
static
|
1174
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXOverlayService, deps: [{ token: DynamicOverlay }, { token: i1$2.Overlay }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1175
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXOverlayService, providedIn: 'root' }); }
|
1171
1176
|
}
|
1172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.
|
1177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: AXOverlayService, decorators: [{
|
1173
1178
|
type: Injectable,
|
1174
1179
|
args: [{ providedIn: 'root' }]
|
1175
1180
|
}], ctorParameters: function () { return [{ type: DynamicOverlay }, { type: i1$2.Overlay }, { type: i0.ApplicationRef }]; } });
|
1176
1181
|
|
1177
|
-
class AXCommonModule {
|
1178
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AXCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
1179
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.3", ngImport: i0, type: AXCommonModule, declarations: [AXResponsiveDirective,
|
1180
|
-
AXInfiniteScrollerDirective,
|
1181
|
-
AXNgModelChangeDebouncedDirective,
|
1182
|
-
AXAutoFocusDirective,
|
1183
|
-
AXHotkeyDirective], exports: [AXResponsiveDirective,
|
1184
|
-
AXInfiniteScrollerDirective,
|
1185
|
-
AXAutoFocusDirective,
|
1186
|
-
AXNgModelChangeDebouncedDirective,
|
1187
|
-
AXHotkeyDirective] });
|
1188
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AXCommonModule });
|
1189
|
-
}
|
1190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImport: i0, type: AXCommonModule, decorators: [{
|
1191
|
-
type: NgModule,
|
1192
|
-
args: [{
|
1193
|
-
imports: [],
|
1194
|
-
exports: [
|
1195
|
-
AXResponsiveDirective,
|
1196
|
-
AXInfiniteScrollerDirective,
|
1197
|
-
AXAutoFocusDirective,
|
1198
|
-
AXNgModelChangeDebouncedDirective,
|
1199
|
-
AXHotkeyDirective,
|
1200
|
-
],
|
1201
|
-
declarations: [
|
1202
|
-
AXResponsiveDirective,
|
1203
|
-
AXInfiniteScrollerDirective,
|
1204
|
-
AXNgModelChangeDebouncedDirective,
|
1205
|
-
AXAutoFocusDirective,
|
1206
|
-
AXHotkeyDirective,
|
1207
|
-
],
|
1208
|
-
providers: [],
|
1209
|
-
}]
|
1210
|
-
}] });
|
1211
|
-
|
1212
1182
|
/**
|
1213
1183
|
* Generated bundle index. Do not edit.
|
1214
1184
|
*/
|