@acorex/components 6.0.0 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +16 -0
- package/action-sheet/index.ts +1 -0
- package/action-sheet/ng-package.json +6 -0
- package/action-sheet/public-api.ts +3 -0
- package/action-sheet/src/action-sheet-item.component.ts +46 -0
- package/action-sheet/src/action-sheet.component.html +12 -0
- package/action-sheet/src/action-sheet.component.ts +82 -0
- package/action-sheet/src/action-sheet.module.ts +13 -0
- package/alert/index.ts +1 -0
- package/alert/ng-package.json +6 -0
- package/alert/public-api.ts +2 -0
- package/alert/src/alert.component.html +21 -0
- package/alert/src/alert.component.ts +179 -0
- package/alert/src/alert.module.ts +15 -0
- package/avatar/index.ts +1 -0
- package/avatar/ng-package.json +6 -0
- package/avatar/{public-api.d.ts → public-api.ts} +0 -0
- package/avatar/src/avatar-group.component.ts +12 -0
- package/avatar/src/avatar.component.html +30 -0
- package/avatar/src/avatar.component.ts +41 -0
- package/avatar/src/avatar.module.ts +15 -0
- package/avatar/src/index.ts +3 -0
- package/badge/index.ts +1 -0
- package/badge/ng-package.json +6 -0
- package/badge/public-api.ts +2 -0
- package/badge/src/badge.component.html +3 -0
- package/badge/src/badge.component.ts +37 -0
- package/badge/src/badge.module.ts +14 -0
- package/breadcrumbs/index.ts +4 -0
- package/breadcrumbs/ng-package.json +6 -0
- package/breadcrumbs/public-api.ts +4 -0
- package/breadcrumbs/src/breadcrumbs-item.class.ts +9 -0
- package/breadcrumbs/src/breadcrumbs-item.component.html +11 -0
- package/breadcrumbs/src/breadcrumbs-item.component.ts +42 -0
- package/breadcrumbs/src/breadcrumbs.component.html +8 -0
- package/breadcrumbs/src/breadcrumbs.component.ts +28 -0
- package/breadcrumbs/src/breadcrumbs.module.ts +12 -0
- package/button/index.ts +1 -0
- package/button/ng-package.json +6 -0
- package/button/public-api.ts +5 -0
- package/button/src/button-group.component.html +2 -0
- package/button/src/button-group.component.ts +126 -0
- package/button/src/button-item.class.ts +24 -0
- package/button/src/button-item.component.ts +78 -0
- package/button/src/button.component.html +10 -0
- package/button/src/button.component.ts +79 -0
- package/button/src/button.module.ts +22 -0
- package/calendar/index.ts +1 -0
- package/calendar/ng-package.json +6 -0
- package/calendar/public-api.ts +3 -0
- package/calendar/src/calendar.class.ts +143 -0
- package/calendar/src/calendar.component.html +70 -0
- package/calendar/src/calendar.component.ts +416 -0
- package/calendar/src/calendar.module.ts +17 -0
- package/carousel/index.ts +1 -0
- package/carousel/ng-package.json +6 -0
- package/carousel/{public-api.d.ts → public-api.ts} +0 -0
- package/carousel/src/carousel-arrows.component.ts +70 -0
- package/carousel/src/carousel-item.component.ts +19 -0
- package/carousel/src/carousel-pager.component.ts +83 -0
- package/carousel/src/carousel-splidejs.class.ts +115 -0
- package/carousel/src/carousel.class.ts +103 -0
- package/carousel/src/carousel.component.html +11 -0
- package/carousel/src/carousel.component.ts +477 -0
- package/carousel/src/carousel.module.ts +17 -0
- package/checkbox/index.ts +1 -0
- package/checkbox/ng-package.json +6 -0
- package/checkbox/public-api.ts +2 -0
- package/checkbox/src/checkbox.component.html +14 -0
- package/checkbox/src/checkbox.component.ts +50 -0
- package/checkbox/src/checkbox.module.ts +12 -0
- package/collapse/index.ts +1 -0
- package/collapse/ng-package.json +6 -0
- package/collapse/public-api.ts +3 -0
- package/collapse/src/collapse-group.component.ts +53 -0
- package/collapse/src/collapse.component.html +25 -0
- package/collapse/src/collapse.component.ts +52 -0
- package/collapse/src/collapse.module.ts +12 -0
- package/color-palette/index.ts +1 -0
- package/color-palette/ng-package.json +6 -0
- package/color-palette/public-api.ts +7 -0
- package/color-palette/src/color-palette-input.component.html +40 -0
- package/color-palette/src/color-palette-input.component.ts +102 -0
- package/color-palette/src/color-palette-picker.component.html +11 -0
- package/color-palette/src/color-palette-picker.component.ts +105 -0
- package/color-palette/src/color-palette-preview.component.ts +59 -0
- package/color-palette/src/color-palette-swatches.component.ts +296 -0
- package/color-palette/src/color-palette.class.ts +23 -0
- package/color-palette/src/color-palette.component.html +21 -0
- package/color-palette/src/color-palette.component.ts +99 -0
- package/color-palette/src/color-palette.module.ts +39 -0
- package/color-picker/index.ts +1 -0
- package/color-picker/ng-package.json +6 -0
- package/color-picker/public-api.ts +2 -0
- package/color-picker/src/color-picker.component.html +24 -0
- package/color-picker/src/color-picker.component.ts +125 -0
- package/color-picker/src/color-picker.module.ts +34 -0
- package/common/index.ts +1 -0
- package/common/ng-package.json +6 -0
- package/common/{public-api.d.ts → public-api.ts} +0 -0
- package/common/src/auto-focus.directive.ts +51 -0
- package/common/src/common.module.ts +22 -0
- package/common/src/components.class.ts +44 -0
- package/common/src/custom-cdk-overlay.service.ts +86 -0
- package/common/src/drawing.class.ts +9 -0
- package/common/src/events.class.ts +97 -0
- package/common/src/hotkey.directive.ts +86 -0
- package/common/src/hotkey.service.ts +43 -0
- package/common/src/infinite-scroll.directive.ts +95 -0
- package/common/src/overlay.service.ts +117 -0
- package/common/src/responsive.directive.ts +31 -0
- package/common/src/styles.class.ts +47 -0
- package/data-pager/index.ts +1 -0
- package/data-pager/ng-package.json +6 -0
- package/data-pager/{public-api.d.ts → public-api.ts} +0 -0
- package/data-pager/src/data-pager-base.component.ts +50 -0
- package/data-pager/src/data-pager-info.component.ts +61 -0
- package/data-pager/src/data-pager-input-selector.component.ts +43 -0
- package/data-pager/src/data-pager-next-buttons.components.ts +49 -0
- package/data-pager/src/data-pager-numeric-selector.component.ts +86 -0
- package/data-pager/src/data-pager-pagesize-dropdown.component.ts +77 -0
- package/data-pager/src/data-pager-prev-buttons.component.ts +51 -0
- package/data-pager/src/data-pager.component.html +33 -0
- package/data-pager/src/data-pager.component.ts +163 -0
- package/data-pager/src/data-pager.module.ts +32 -0
- package/data-table/index.ts +1 -0
- package/data-table/ng-package.json +6 -0
- package/data-table/{public-api.d.ts → public-api.ts} +0 -0
- package/data-table/src/data-column-cell-template.directive.ts +13 -0
- package/data-table/src/data-column.directive.ts +45 -0
- package/data-table/src/data-table.component.html +89 -0
- package/data-table/src/data-table.component.ts +159 -0
- package/data-table/src/data-table.module.ts +20 -0
- package/data-table/src/index.ts +4 -0
- package/date-picker/index.ts +1 -0
- package/date-picker/ng-package.json +6 -0
- package/date-picker/{public-api.d.ts → public-api.ts} +0 -0
- package/date-picker/src/datepicker.component.html +37 -0
- package/date-picker/src/datepicker.component.ts +289 -0
- package/date-picker/src/datepicker.module.ts +31 -0
- package/decorators/index.ts +1 -0
- package/decorators/ng-package.json +6 -0
- package/decorators/{public-api.d.ts → public-api.ts} +0 -0
- package/decorators/src/addon.component.ts +21 -0
- package/decorators/src/close-button.component.ts +48 -0
- package/decorators/src/content.component.ts +21 -0
- package/decorators/src/decorators.module.ts +32 -0
- package/decorators/src/footer.component.ts +25 -0
- package/decorators/src/header.component.ts +25 -0
- package/decorators/src/icon.component.ts +31 -0
- package/decorators/src/prefix.component.ts +21 -0
- package/decorators/src/suffix.component.ts +21 -0
- package/decorators/src/title.component.ts +26 -0
- package/dialog/index.ts +1 -0
- package/dialog/ng-package.json +6 -0
- package/dialog/{public-api.d.ts → public-api.ts} +0 -0
- package/dialog/src/dialog.class.ts +13 -0
- package/dialog/src/dialog.component.html +21 -0
- package/dialog/src/dialog.component.ts +61 -0
- package/dialog/src/dialog.module.ts +20 -0
- package/dialog/src/dialog.service.ts +159 -0
- package/drawer/index.ts +1 -0
- package/drawer/ng-package.json +6 -0
- package/drawer/{public-api.d.ts → public-api.ts} +0 -0
- package/drawer/src/drawer-container.component.ts +40 -0
- package/drawer/src/drawer.component.ts +168 -0
- package/drawer/src/drawer.module.ts +15 -0
- package/dropdown/index.ts +1 -0
- package/dropdown/ng-package.json +6 -0
- package/dropdown/public-api.ts +2 -0
- package/dropdown/src/dropdown-panel.component.html +6 -0
- package/dropdown/src/dropdown-panel.component.ts +113 -0
- package/dropdown/src/dropdown.module.ts +15 -0
- package/form/index.ts +1 -0
- package/form/ng-package.json +6 -0
- package/form/{public-api.d.ts → public-api.ts} +0 -0
- package/form/src/form-field.component.ts +21 -0
- package/form/src/form-field.module.ts +55 -0
- package/form/src/form-hint.component.ts +18 -0
- package/form/src/form.component.ts +89 -0
- package/form/src/validation-rule.widget.ts +133 -0
- package/form/src/validation-summary.component.ts +82 -0
- package/form/src/validation.class.ts +25 -0
- package/index.ts +1 -0
- package/input-mask/index.ts +1 -0
- package/input-mask/ng-package.json +6 -0
- package/input-mask/{public-api.d.ts → public-api.ts} +0 -0
- package/input-mask/src/input-mask.component.ts +70 -0
- package/input-mask/src/input-mask.module.ts +16 -0
- package/karma.conf.js +44 -0
- package/label/index.ts +1 -0
- package/label/ng-package.json +6 -0
- package/label/public-api.ts +2 -0
- package/label/src/label.component.html +3 -0
- package/label/src/label.component.ts +34 -0
- package/label/src/label.module.ts +14 -0
- package/loading/index.ts +1 -0
- package/loading/ng-package.json +6 -0
- package/loading/{public-api.d.ts → public-api.ts} +0 -0
- package/loading/src/loading-spinner.component.ts +39 -0
- package/loading/src/loading.component.ts +79 -0
- package/loading/src/loading.directive.ts +88 -0
- package/loading/src/loading.module.ts +32 -0
- package/loading/src/loading.service.ts +205 -0
- package/menu/index.ts +1 -0
- package/menu/ng-package.json +6 -0
- package/menu/{public-api.d.ts → public-api.ts} +0 -0
- package/menu/src/menu.component.html +64 -0
- package/menu/src/menu.component.ts +234 -0
- package/menu/src/menu.module.ts +18 -0
- package/mixin/index.ts +1 -0
- package/mixin/ng-package.json +7 -0
- package/mixin/public-api.ts +17 -0
- package/mixin/src/base-components.class.ts +140 -0
- package/mixin/src/base-menu-mixin.class.ts +165 -0
- package/mixin/src/button-mixin.class.ts +84 -0
- package/mixin/src/clickable-mixin.class.ts +32 -0
- package/mixin/src/color-look-mixing.class.ts +56 -0
- package/mixin/src/constratctor.ts +3 -0
- package/mixin/src/datalist-component.class.ts +176 -0
- package/mixin/src/datalist.class.ts +14 -0
- package/mixin/src/dropdown-mixin.class.ts +135 -0
- package/mixin/src/interactive-mixin.class.ts +97 -0
- package/mixin/src/loading-mixin.class.ts +31 -0
- package/mixin/src/mixin.class.ts +70 -0
- package/mixin/src/page-component.class.ts +15 -0
- package/mixin/src/selection-component.class.ts +212 -0
- package/mixin/src/sizable-mixin.class.ts +29 -0
- package/mixin/src/textbox-mixin.class.ts +116 -0
- package/mixin/src/value-mixin.class.ts +230 -0
- package/ng-package.json +7 -0
- package/number-box/index.ts +1 -0
- package/number-box/ng-package.json +6 -0
- package/number-box/{public-api.d.ts → public-api.ts} +0 -0
- package/number-box/src/number-box.component.html +40 -0
- package/number-box/src/number-box.component.ts +272 -0
- package/number-box/src/number-box.module.ts +24 -0
- package/package.json +33 -429
- package/page/index.ts +1 -0
- package/page/ng-package.json +6 -0
- package/page/public-api.ts +4 -0
- package/page/src/base-page.class.ts +109 -0
- package/page/src/page.component.ts +42 -0
- package/page/src/page.module.ts +11 -0
- package/password-box/index.ts +1 -0
- package/password-box/ng-package.json +6 -0
- package/password-box/{public-api.d.ts → public-api.ts} +0 -0
- package/password-box/src/password-box.component.html +15 -0
- package/password-box/src/password-box.component.ts +65 -0
- package/password-box/src/password-box.module.ts +22 -0
- package/popover/index.ts +1 -0
- package/popover/ng-package.json +6 -0
- package/popover/public-api.ts +3 -0
- package/popover/src/popover.component.html +3 -0
- package/popover/src/popover.component.ts +309 -0
- package/popover/src/popover.module.ts +11 -0
- package/popup/index.ts +1 -0
- package/popup/ng-package.json +6 -0
- package/popup/{public-api.d.ts → public-api.ts} +0 -0
- package/popup/src/popup.component.html +14 -0
- package/popup/src/popup.component.ts +178 -0
- package/popup/src/popup.module.ts +20 -0
- package/popup/src/popup.service.ts +114 -0
- package/progress-bar/index.ts +1 -0
- package/progress-bar/ng-package.json +6 -0
- package/progress-bar/public-api.ts +2 -0
- package/progress-bar/src/progress-bar.component.html +6 -0
- package/progress-bar/src/progress-bar.component.ts +32 -0
- package/progress-bar/src/progress-bar.module.ts +11 -0
- package/public-api.ts +5 -0
- package/radio/index.ts +1 -0
- package/radio/ng-package.json +6 -0
- package/radio/{public-api.d.ts → public-api.ts} +0 -0
- package/radio/src/radio.component.html +11 -0
- package/radio/src/radio.component.ts +44 -0
- package/radio/src/radio.module.ts +15 -0
- package/range-slider/index.ts +1 -0
- package/range-slider/ng-package.json +6 -0
- package/range-slider/{public-api.d.ts → public-api.ts} +0 -0
- package/range-slider/src/range-slider.component.html +1 -0
- package/range-slider/src/range-slider.component.ts +132 -0
- package/range-slider/src/range-slider.module.ts +15 -0
- package/rating/index.ts +1 -0
- package/rating/ng-package.json +6 -0
- package/rating/public-api.ts +2 -0
- package/rating/src/rating.component.html +5 -0
- package/rating/src/rating.component.module.ts +11 -0
- package/rating/src/rating.component.ts +43 -0
- package/result/index.ts +1 -0
- package/result/ng-package.json +6 -0
- package/result/{public-api.d.ts → public-api.ts} +0 -0
- package/result/src/result.component.html +1958 -0
- package/result/src/result.component.ts +29 -0
- package/result/src/result.module.ts +11 -0
- package/search-box/index.ts +1 -0
- package/search-box/ng-package.json +6 -0
- package/search-box/{public-api.d.ts → public-api.ts} +0 -0
- package/search-box/src/search-box.component.html +13 -0
- package/search-box/src/search-box.component.ts +62 -0
- package/search-box/src/search-box.module.ts +18 -0
- package/select-box/index.ts +1 -0
- package/select-box/ng-package.json +6 -0
- package/select-box/public-api.ts +2 -0
- package/select-box/src/selectbox.component.html +147 -0
- package/select-box/src/selectbox.component.ts +410 -0
- package/select-box/src/selectbox.module.ts +35 -0
- package/selection-list/index.ts +1 -0
- package/selection-list/ng-package.json +6 -0
- package/selection-list/public-api.ts +2 -0
- package/selection-list/src/selection-list.component.html +62 -0
- package/selection-list/src/selection-list.component.ts +69 -0
- package/selection-list/src/selection-list.module.ts +17 -0
- package/switch/index.ts +1 -0
- package/switch/ng-package.json +6 -0
- package/switch/public-api.ts +2 -0
- package/switch/src/switch.component.html +14 -0
- package/switch/src/switch.component.ts +52 -0
- package/switch/src/switch.module.ts +13 -0
- package/tabs/index.ts +1 -0
- package/tabs/ng-package.json +6 -0
- package/tabs/{public-api.d.ts → public-api.ts} +0 -0
- package/tabs/src/tab-content.directive.ts +23 -0
- package/tabs/src/tab-item.component.ts +125 -0
- package/tabs/src/tabs.class.ts +7 -0
- package/tabs/src/tabs.component.ts +108 -0
- package/tabs/src/tabs.module.ts +18 -0
- package/test.ts +27 -0
- package/textarea/index.ts +1 -0
- package/textarea/ng-package.json +6 -0
- package/textarea/{public-api.d.ts → public-api.ts} +0 -0
- package/textarea/src/textarea.component.html +6 -0
- package/textarea/src/textarea.component.ts +32 -0
- package/textarea/src/textarea.module.ts +11 -0
- package/textbox/index.ts +1 -0
- package/textbox/ng-package.json +6 -0
- package/textbox/public-api.ts +2 -0
- package/textbox/src/textbox.component.html +17 -0
- package/textbox/src/textbox.component.ts +37 -0
- package/textbox/src/textbox.module.ts +22 -0
- package/time-box/index.ts +1 -0
- package/time-box/ng-package.json +6 -0
- package/time-box/{public-api.d.ts → public-api.ts} +0 -0
- package/time-box/src/time-box.component.html +16 -0
- package/time-box/src/time-box.component.ts +315 -0
- package/time-box/src/time-box.module.ts +22 -0
- package/toast/index.ts +1 -0
- package/toast/ng-package.json +6 -0
- package/toast/{public-api.d.ts → public-api.ts} +0 -0
- package/toast/src/toast.class.ts +18 -0
- package/toast/src/toast.component.html +21 -0
- package/toast/src/toast.component.ts +65 -0
- package/toast/src/toast.module.ts +19 -0
- package/toast/src/toast.service.ts +160 -0
- package/tooltip/index.ts +1 -0
- package/tooltip/ng-package.json +6 -0
- package/tooltip/{public-api.d.ts → public-api.ts} +0 -0
- package/tooltip/src/tooltip.component.html +6 -0
- package/tooltip/src/tooltip.component.ts +36 -0
- package/tooltip/src/tooltip.directive.ts +93 -0
- package/tooltip/src/tooltip.module.ts +16 -0
- package/tree-view/index.ts +1 -0
- package/tree-view/ng-package.json +6 -0
- package/tree-view/public-api.ts +2 -0
- package/tree-view/src/tree-view.component.html +15 -0
- package/tree-view/src/tree-view.component.ts +105 -0
- package/tree-view/src/tree-view.module.ts +12 -0
- package/tsconfig.lib.json +15 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/action-sheet/index.d.ts +0 -5
- package/action-sheet/public-api.d.ts +0 -3
- package/action-sheet/src/action-sheet-item.component.d.ts +0 -16
- package/action-sheet/src/action-sheet.component.d.ts +0 -19
- package/action-sheet/src/action-sheet.module.d.ts +0 -10
- package/alert/index.d.ts +0 -5
- package/alert/public-api.d.ts +0 -2
- package/alert/src/alert.component.d.ts +0 -79
- package/alert/src/alert.module.d.ts +0 -9
- package/avatar/index.d.ts +0 -5
- package/avatar/src/avatar-group.component.d.ts +0 -8
- package/avatar/src/avatar.component.d.ts +0 -22
- package/avatar/src/avatar.module.d.ts +0 -9
- package/badge/index.d.ts +0 -5
- package/badge/public-api.d.ts +0 -2
- package/badge/src/badge.component.d.ts +0 -40
- package/badge/src/badge.module.d.ts +0 -8
- package/breadcrumbs/index.d.ts +0 -5
- package/breadcrumbs/public-api.d.ts +0 -4
- package/breadcrumbs/src/breadcrumbs-item.class.d.ts +0 -9
- package/breadcrumbs/src/breadcrumbs-item.component.d.ts +0 -75
- package/breadcrumbs/src/breadcrumbs.component.d.ts +0 -13
- package/breadcrumbs/src/breadcrumbs.module.d.ts +0 -9
- package/button/index.d.ts +0 -5
- package/button/public-api.d.ts +0 -5
- package/button/src/button-group.component.d.ts +0 -84
- package/button/src/button-item.class.d.ts +0 -23
- package/button/src/button-item.component.d.ts +0 -78
- package/button/src/button.component.d.ts +0 -20
- package/button/src/button.module.d.ts +0 -11
- package/calendar/index.d.ts +0 -5
- package/calendar/public-api.d.ts +0 -3
- package/calendar/src/calendar.class.d.ts +0 -51
- package/calendar/src/calendar.component.d.ts +0 -51
- package/calendar/src/calendar.module.d.ts +0 -11
- package/carousel/index.d.ts +0 -5
- package/carousel/src/carousel-arrows.component.d.ts +0 -16
- package/carousel/src/carousel-item.component.d.ts +0 -8
- package/carousel/src/carousel-pager.component.d.ts +0 -22
- package/carousel/src/carousel-splidejs.class.d.ts +0 -18
- package/carousel/src/carousel.class.d.ts +0 -71
- package/carousel/src/carousel.component.d.ts +0 -111
- package/carousel/src/carousel.module.d.ts +0 -11
- package/checkbox/index.d.ts +0 -5
- package/checkbox/public-api.d.ts +0 -2
- package/checkbox/src/checkbox.component.d.ts +0 -12
- package/checkbox/src/checkbox.module.d.ts +0 -10
- package/collapse/index.d.ts +0 -5
- package/collapse/public-api.d.ts +0 -3
- package/collapse/src/collapse-group.component.d.ts +0 -15
- package/collapse/src/collapse.component.d.ts +0 -16
- package/collapse/src/collapse.module.d.ts +0 -9
- package/color-palette/index.d.ts +0 -5
- package/color-palette/public-api.d.ts +0 -7
- package/color-palette/src/color-palette-input.component.d.ts +0 -16
- package/color-palette/src/color-palette-picker.component.d.ts +0 -23
- package/color-palette/src/color-palette-preview.component.d.ts +0 -11
- package/color-palette/src/color-palette-swatches.component.d.ts +0 -17
- package/color-palette/src/color-palette.class.d.ts +0 -23
- package/color-palette/src/color-palette.component.d.ts +0 -24
- package/color-palette/src/color-palette.module.d.ts +0 -18
- package/color-picker/index.d.ts +0 -5
- package/color-picker/public-api.d.ts +0 -2
- package/color-picker/src/color-picker.component.d.ts +0 -191
- package/color-picker/src/color-picker.module.d.ts +0 -18
- package/common/index.d.ts +0 -5
- package/common/src/auto-focus.directive.d.ts +0 -12
- package/common/src/common.module.d.ts +0 -10
- package/common/src/components.class.d.ts +0 -42
- package/common/src/custom-cdk-overlay.service.d.ts +0 -19
- package/common/src/drawing.class.d.ts +0 -9
- package/common/src/events.class.d.ts +0 -86
- package/common/src/hotkey.directive.d.ts +0 -22
- package/common/src/hotkey.service.d.ts +0 -17
- package/common/src/infinite-scroll.directive.d.ts +0 -25
- package/common/src/overlay.service.d.ts +0 -31
- package/common/src/responsive.directive.d.ts +0 -10
- package/common/src/styles.class.d.ts +0 -17
- package/data-pager/index.d.ts +0 -5
- package/data-pager/src/data-pager-base.component.d.ts +0 -49
- package/data-pager/src/data-pager-info.component.d.ts +0 -15
- package/data-pager/src/data-pager-input-selector.component.d.ts +0 -15
- package/data-pager/src/data-pager-next-buttons.components.d.ts +0 -16
- package/data-pager/src/data-pager-numeric-selector.component.d.ts +0 -18
- package/data-pager/src/data-pager-pagesize-dropdown.component.d.ts +0 -18
- package/data-pager/src/data-pager-prev-buttons.component.d.ts +0 -15
- package/data-pager/src/data-pager.component.d.ts +0 -35
- package/data-pager/src/data-pager.module.d.ts +0 -18
- package/data-table/index.d.ts +0 -5
- package/data-table/src/data-column-cell-template.directive.d.ts +0 -8
- package/data-table/src/data-column.directive.d.ts +0 -16
- package/data-table/src/data-table.component.d.ts +0 -35
- package/data-table/src/data-table.module.d.ts +0 -14
- package/date-picker/index.d.ts +0 -5
- package/date-picker/src/datepicker.component.d.ts +0 -150
- package/date-picker/src/datepicker.module.d.ts +0 -15
- package/decorators/index.d.ts +0 -5
- package/decorators/src/addon.component.d.ts +0 -8
- package/decorators/src/close-button.component.d.ts +0 -14
- package/decorators/src/content.component.d.ts +0 -8
- package/decorators/src/decorators.module.d.ts +0 -16
- package/decorators/src/footer.component.d.ts +0 -8
- package/decorators/src/header.component.d.ts +0 -8
- package/decorators/src/icon.component.d.ts +0 -10
- package/decorators/src/prefix.component.d.ts +0 -8
- package/decorators/src/suffix.component.d.ts +0 -8
- package/decorators/src/title.component.d.ts +0 -9
- package/dialog/index.d.ts +0 -5
- package/dialog/src/dialog.class.d.ts +0 -12
- package/dialog/src/dialog.component.d.ts +0 -16
- package/dialog/src/dialog.module.d.ts +0 -14
- package/dialog/src/dialog.service.d.ts +0 -36
- package/drawer/index.d.ts +0 -5
- package/drawer/src/drawer-container.component.d.ts +0 -10
- package/drawer/src/drawer.component.d.ts +0 -36
- package/drawer/src/drawer.module.d.ts +0 -9
- package/dropdown/index.d.ts +0 -5
- package/dropdown/public-api.d.ts +0 -2
- package/dropdown/src/dropdown-panel.component.d.ts +0 -27
- package/dropdown/src/dropdown.module.d.ts +0 -12
- package/esm2020/acorex-components.mjs +0 -5
- package/esm2020/action-sheet/acorex-components-action-sheet.mjs +0 -5
- package/esm2020/action-sheet/public-api.mjs +0 -4
- package/esm2020/action-sheet/src/action-sheet-item.component.mjs +0 -47
- package/esm2020/action-sheet/src/action-sheet.component.mjs +0 -87
- package/esm2020/action-sheet/src/action-sheet.module.mjs +0 -21
- package/esm2020/alert/acorex-components-alert.mjs +0 -5
- package/esm2020/alert/public-api.mjs +0 -3
- package/esm2020/alert/src/alert.component.mjs +0 -154
- package/esm2020/alert/src/alert.module.mjs +0 -22
- package/esm2020/avatar/acorex-components-avatar.mjs +0 -5
- package/esm2020/avatar/public-api.mjs +0 -4
- package/esm2020/avatar/src/avatar-group.component.mjs +0 -17
- package/esm2020/avatar/src/avatar.component.mjs +0 -45
- package/esm2020/avatar/src/avatar.module.mjs +0 -22
- package/esm2020/badge/acorex-components-badge.mjs +0 -5
- package/esm2020/badge/public-api.mjs +0 -3
- package/esm2020/badge/src/badge.component.mjs +0 -30
- package/esm2020/badge/src/badge.module.mjs +0 -21
- package/esm2020/breadcrumbs/acorex-components-breadcrumbs.mjs +0 -5
- package/esm2020/breadcrumbs/public-api.mjs +0 -5
- package/esm2020/breadcrumbs/src/breadcrumbs-item.class.mjs +0 -2
- package/esm2020/breadcrumbs/src/breadcrumbs-item.component.mjs +0 -36
- package/esm2020/breadcrumbs/src/breadcrumbs.component.mjs +0 -25
- package/esm2020/breadcrumbs/src/breadcrumbs.module.mjs +0 -20
- package/esm2020/button/acorex-components-button.mjs +0 -5
- package/esm2020/button/public-api.mjs +0 -6
- package/esm2020/button/src/button-group.component.mjs +0 -88
- package/esm2020/button/src/button-item.class.mjs +0 -2
- package/esm2020/button/src/button-item.component.mjs +0 -76
- package/esm2020/button/src/button.component.mjs +0 -70
- package/esm2020/button/src/button.module.mjs +0 -32
- package/esm2020/calendar/acorex-components-calendar.mjs +0 -5
- package/esm2020/calendar/public-api.mjs +0 -4
- package/esm2020/calendar/src/calendar.class.mjs +0 -127
- package/esm2020/calendar/src/calendar.component.mjs +0 -355
- package/esm2020/calendar/src/calendar.module.mjs +0 -24
- package/esm2020/carousel/acorex-components-carousel.mjs +0 -5
- package/esm2020/carousel/public-api.mjs +0 -8
- package/esm2020/carousel/src/carousel-arrows.component.mjs +0 -80
- package/esm2020/carousel/src/carousel-item.component.mjs +0 -21
- package/esm2020/carousel/src/carousel-pager.component.mjs +0 -74
- package/esm2020/carousel/src/carousel-splidejs.class.mjs +0 -91
- package/esm2020/carousel/src/carousel.class.mjs +0 -10
- package/esm2020/carousel/src/carousel.component.mjs +0 -438
- package/esm2020/carousel/src/carousel.module.mjs +0 -24
- package/esm2020/checkbox/acorex-components-checkbox.mjs +0 -5
- package/esm2020/checkbox/public-api.mjs +0 -3
- package/esm2020/checkbox/src/checkbox.component.mjs +0 -41
- package/esm2020/checkbox/src/checkbox.module.mjs +0 -21
- package/esm2020/collapse/acorex-components-collapse.mjs +0 -5
- package/esm2020/collapse/public-api.mjs +0 -4
- package/esm2020/collapse/src/collapse-group.component.mjs +0 -52
- package/esm2020/collapse/src/collapse.component.mjs +0 -42
- package/esm2020/collapse/src/collapse.module.mjs +0 -20
- package/esm2020/color-palette/acorex-components-color-palette.mjs +0 -5
- package/esm2020/color-palette/public-api.mjs +0 -8
- package/esm2020/color-palette/src/color-palette-input.component.mjs +0 -97
- package/esm2020/color-palette/src/color-palette-picker.component.mjs +0 -97
- package/esm2020/color-palette/src/color-palette-preview.component.mjs +0 -62
- package/esm2020/color-palette/src/color-palette-swatches.component.mjs +0 -294
- package/esm2020/color-palette/src/color-palette.class.mjs +0 -17
- package/esm2020/color-palette/src/color-palette.component.mjs +0 -84
- package/esm2020/color-palette/src/color-palette.module.mjs +0 -57
- package/esm2020/color-picker/acorex-components-color-picker.mjs +0 -5
- package/esm2020/color-picker/public-api.mjs +0 -3
- package/esm2020/color-picker/src/color-picker.component.mjs +0 -96
- package/esm2020/color-picker/src/color-picker.module.mjs +0 -61
- package/esm2020/common/acorex-components-common.mjs +0 -5
- package/esm2020/common/public-api.mjs +0 -13
- package/esm2020/common/src/auto-focus.directive.mjs +0 -51
- package/esm2020/common/src/common.module.mjs +0 -37
- package/esm2020/common/src/components.class.mjs +0 -45
- package/esm2020/common/src/custom-cdk-overlay.service.mjs +0 -48
- package/esm2020/common/src/drawing.class.mjs +0 -2
- package/esm2020/common/src/events.class.mjs +0 -58
- package/esm2020/common/src/hotkey.directive.mjs +0 -79
- package/esm2020/common/src/hotkey.service.mjs +0 -38
- package/esm2020/common/src/infinite-scroll.directive.mjs +0 -63
- package/esm2020/common/src/overlay.service.mjs +0 -91
- package/esm2020/common/src/responsive.directive.mjs +0 -34
- package/esm2020/common/src/styles.class.mjs +0 -11
- package/esm2020/data-pager/acorex-components-data-pager.mjs +0 -5
- package/esm2020/data-pager/public-api.mjs +0 -10
- package/esm2020/data-pager/src/data-pager-base.component.mjs +0 -38
- package/esm2020/data-pager/src/data-pager-info.component.mjs +0 -57
- package/esm2020/data-pager/src/data-pager-input-selector.component.mjs +0 -50
- package/esm2020/data-pager/src/data-pager-next-buttons.components.mjs +0 -60
- package/esm2020/data-pager/src/data-pager-numeric-selector.component.mjs +0 -98
- package/esm2020/data-pager/src/data-pager-pagesize-dropdown.component.mjs +0 -85
- package/esm2020/data-pager/src/data-pager-prev-buttons.component.mjs +0 -58
- package/esm2020/data-pager/src/data-pager.component.mjs +0 -135
- package/esm2020/data-pager/src/data-pager.module.mjs +0 -51
- package/esm2020/data-table/acorex-components-data-table.mjs +0 -5
- package/esm2020/data-table/public-api.mjs +0 -5
- package/esm2020/data-table/src/data-column-cell-template.directive.mjs +0 -17
- package/esm2020/data-table/src/data-column.directive.mjs +0 -43
- package/esm2020/data-table/src/data-table.component.mjs +0 -130
- package/esm2020/data-table/src/data-table.module.mjs +0 -27
- package/esm2020/date-picker/acorex-components-date-picker.mjs +0 -5
- package/esm2020/date-picker/public-api.mjs +0 -3
- package/esm2020/date-picker/src/datepicker.component.mjs +0 -247
- package/esm2020/date-picker/src/datepicker.module.mjs +0 -44
- package/esm2020/decorators/acorex-components-decorators.mjs +0 -5
- package/esm2020/decorators/public-api.mjs +0 -11
- package/esm2020/decorators/src/addon.component.mjs +0 -21
- package/esm2020/decorators/src/close-button.component.mjs +0 -50
- package/esm2020/decorators/src/content.component.mjs +0 -21
- package/esm2020/decorators/src/decorators.module.mjs +0 -55
- package/esm2020/decorators/src/footer.component.mjs +0 -29
- package/esm2020/decorators/src/header.component.mjs +0 -29
- package/esm2020/decorators/src/icon.component.mjs +0 -29
- package/esm2020/decorators/src/prefix.component.mjs +0 -21
- package/esm2020/decorators/src/suffix.component.mjs +0 -21
- package/esm2020/decorators/src/title.component.mjs +0 -27
- package/esm2020/dialog/acorex-components-dialog.mjs +0 -5
- package/esm2020/dialog/public-api.mjs +0 -5
- package/esm2020/dialog/src/dialog.class.mjs +0 -2
- package/esm2020/dialog/src/dialog.component.mjs +0 -52
- package/esm2020/dialog/src/dialog.module.mjs +0 -27
- package/esm2020/dialog/src/dialog.service.mjs +0 -150
- package/esm2020/drawer/acorex-components-drawer.mjs +0 -5
- package/esm2020/drawer/public-api.mjs +0 -4
- package/esm2020/drawer/src/drawer-container.component.mjs +0 -38
- package/esm2020/drawer/src/drawer.component.mjs +0 -147
- package/esm2020/drawer/src/drawer.module.mjs +0 -22
- package/esm2020/dropdown/acorex-components-dropdown.mjs +0 -5
- package/esm2020/dropdown/public-api.mjs +0 -3
- package/esm2020/dropdown/src/dropdown-panel.component.mjs +0 -82
- package/esm2020/dropdown/src/dropdown.module.mjs +0 -23
- package/esm2020/form/acorex-components-form.mjs +0 -5
- package/esm2020/form/public-api.mjs +0 -8
- package/esm2020/form/src/form-field.component.mjs +0 -21
- package/esm2020/form/src/form-field.module.mjs +0 -68
- package/esm2020/form/src/form-hint.component.mjs +0 -20
- package/esm2020/form/src/form.component.mjs +0 -85
- package/esm2020/form/src/validation-rule.widget.mjs +0 -110
- package/esm2020/form/src/validation-summary.component.mjs +0 -97
- package/esm2020/form/src/validation.class.mjs +0 -2
- package/esm2020/input-mask/acorex-components-input-mask.mjs +0 -5
- package/esm2020/input-mask/public-api.mjs +0 -3
- package/esm2020/input-mask/src/input-mask.component.mjs +0 -58
- package/esm2020/input-mask/src/input-mask.module.mjs +0 -24
- package/esm2020/label/acorex-components-label.mjs +0 -5
- package/esm2020/label/public-api.mjs +0 -3
- package/esm2020/label/src/label.component.mjs +0 -27
- package/esm2020/label/src/label.module.mjs +0 -21
- package/esm2020/loading/acorex-components-loading.mjs +0 -5
- package/esm2020/loading/public-api.mjs +0 -6
- package/esm2020/loading/src/loading-spinner.component.mjs +0 -74
- package/esm2020/loading/src/loading.component.mjs +0 -70
- package/esm2020/loading/src/loading.directive.mjs +0 -68
- package/esm2020/loading/src/loading.module.mjs +0 -35
- package/esm2020/loading/src/loading.service.mjs +0 -156
- package/esm2020/menu/acorex-components-menu.mjs +0 -5
- package/esm2020/menu/public-api.mjs +0 -3
- package/esm2020/menu/src/menu.component.mjs +0 -193
- package/esm2020/menu/src/menu.module.mjs +0 -25
- package/esm2020/mixin/acorex-components-mixin.mjs +0 -5
- package/esm2020/mixin/public-api.mjs +0 -18
- package/esm2020/mixin/src/base-components.class.mjs +0 -99
- package/esm2020/mixin/src/base-menu-mixin.class.mjs +0 -140
- package/esm2020/mixin/src/button-mixin.class.mjs +0 -70
- package/esm2020/mixin/src/clickable-mixin.class.mjs +0 -24
- package/esm2020/mixin/src/color-look-mixing.class.mjs +0 -48
- package/esm2020/mixin/src/constratctor.mjs +0 -2
- package/esm2020/mixin/src/datalist-component.class.mjs +0 -163
- package/esm2020/mixin/src/datalist.class.mjs +0 -3
- package/esm2020/mixin/src/dropdown-mixin.class.mjs +0 -99
- package/esm2020/mixin/src/interactive-mixin.class.mjs +0 -84
- package/esm2020/mixin/src/loading-mixin.class.mjs +0 -18
- package/esm2020/mixin/src/mixin.class.mjs +0 -26
- package/esm2020/mixin/src/page-component.class.mjs +0 -11
- package/esm2020/mixin/src/selection-component.class.mjs +0 -181
- package/esm2020/mixin/src/sizable-mixin.class.mjs +0 -18
- package/esm2020/mixin/src/textbox-mixin.class.mjs +0 -89
- package/esm2020/mixin/src/value-mixin.class.mjs +0 -197
- package/esm2020/number-box/acorex-components-number-box.mjs +0 -5
- package/esm2020/number-box/public-api.mjs +0 -3
- package/esm2020/number-box/src/number-box.component.mjs +0 -245
- package/esm2020/number-box/src/number-box.module.mjs +0 -35
- package/esm2020/page/acorex-components-page.mjs +0 -5
- package/esm2020/page/public-api.mjs +0 -4
- package/esm2020/page/src/base-page.class.mjs +0 -87
- package/esm2020/page/src/page.component.mjs +0 -44
- package/esm2020/page/src/page.module.mjs +0 -18
- package/esm2020/password-box/acorex-components-password-box.mjs +0 -5
- package/esm2020/password-box/public-api.mjs +0 -3
- package/esm2020/password-box/src/password-box.component.mjs +0 -58
- package/esm2020/password-box/src/password-box.module.mjs +0 -32
- package/esm2020/popover/acorex-components-popover.mjs +0 -5
- package/esm2020/popover/public-api.mjs +0 -3
- package/esm2020/popover/src/popover.component.mjs +0 -256
- package/esm2020/popover/src/popover.module.mjs +0 -19
- package/esm2020/popup/acorex-components-popup.mjs +0 -5
- package/esm2020/popup/public-api.mjs +0 -4
- package/esm2020/popup/src/popup.component.mjs +0 -131
- package/esm2020/popup/src/popup.module.mjs +0 -26
- package/esm2020/popup/src/popup.service.mjs +0 -95
- package/esm2020/progress-bar/acorex-components-progress-bar.mjs +0 -5
- package/esm2020/progress-bar/public-api.mjs +0 -3
- package/esm2020/progress-bar/src/progress-bar.component.mjs +0 -33
- package/esm2020/progress-bar/src/progress-bar.module.mjs +0 -19
- package/esm2020/public-api.mjs +0 -5
- package/esm2020/radio/acorex-components-radio.mjs +0 -5
- package/esm2020/radio/public-api.mjs +0 -3
- package/esm2020/radio/src/radio.component.mjs +0 -34
- package/esm2020/radio/src/radio.module.mjs +0 -22
- package/esm2020/range-slider/acorex-components-range-slider.mjs +0 -5
- package/esm2020/range-slider/public-api.mjs +0 -3
- package/esm2020/range-slider/src/range-slider.component.mjs +0 -113
- package/esm2020/range-slider/src/range-slider.module.mjs +0 -22
- package/esm2020/rating/acorex-components-rating.mjs +0 -5
- package/esm2020/rating/public-api.mjs +0 -3
- package/esm2020/rating/src/rating.component.mjs +0 -41
- package/esm2020/rating/src/rating.component.module.mjs +0 -19
- package/esm2020/result/acorex-components-result.mjs +0 -5
- package/esm2020/result/public-api.mjs +0 -3
- package/esm2020/result/src/result.component.mjs +0 -25
- package/esm2020/result/src/result.module.mjs +0 -19
- package/esm2020/search-box/acorex-components-search-box.mjs +0 -5
- package/esm2020/search-box/public-api.mjs +0 -3
- package/esm2020/search-box/src/search-box.component.mjs +0 -52
- package/esm2020/search-box/src/search-box.module.mjs +0 -25
- package/esm2020/select-box/acorex-components-select-box.mjs +0 -5
- package/esm2020/select-box/public-api.mjs +0 -3
- package/esm2020/select-box/src/selectbox.component.mjs +0 -362
- package/esm2020/select-box/src/selectbox.module.mjs +0 -64
- package/esm2020/selection-list/acorex-components-selection-list.mjs +0 -5
- package/esm2020/selection-list/public-api.mjs +0 -3
- package/esm2020/selection-list/src/selection-list.component.mjs +0 -50
- package/esm2020/selection-list/src/selection-list.module.mjs +0 -24
- package/esm2020/switch/acorex-components-switch.mjs +0 -5
- package/esm2020/switch/public-api.mjs +0 -3
- package/esm2020/switch/src/switch.component.mjs +0 -40
- package/esm2020/switch/src/switch.module.mjs +0 -21
- package/esm2020/tabs/acorex-components-tabs.mjs +0 -5
- package/esm2020/tabs/public-api.mjs +0 -6
- package/esm2020/tabs/src/tab-content.directive.mjs +0 -29
- package/esm2020/tabs/src/tab-item.component.mjs +0 -142
- package/esm2020/tabs/src/tabs.class.mjs +0 -4
- package/esm2020/tabs/src/tabs.component.mjs +0 -94
- package/esm2020/tabs/src/tabs.module.mjs +0 -25
- package/esm2020/textarea/acorex-components-textarea.mjs +0 -5
- package/esm2020/textarea/public-api.mjs +0 -3
- package/esm2020/textarea/src/textarea.component.mjs +0 -22
- package/esm2020/textarea/src/textarea.module.mjs +0 -19
- package/esm2020/textbox/acorex-components-textbox.mjs +0 -5
- package/esm2020/textbox/public-api.mjs +0 -3
- package/esm2020/textbox/src/textbox.component.mjs +0 -31
- package/esm2020/textbox/src/textbox.module.mjs +0 -37
- package/esm2020/time-box/acorex-components-time-box.mjs +0 -5
- package/esm2020/time-box/public-api.mjs +0 -3
- package/esm2020/time-box/src/time-box.component.mjs +0 -287
- package/esm2020/time-box/src/time-box.module.mjs +0 -32
- package/esm2020/toast/acorex-components-toast.mjs +0 -5
- package/esm2020/toast/public-api.mjs +0 -5
- package/esm2020/toast/src/toast.class.mjs +0 -2
- package/esm2020/toast/src/toast.component.mjs +0 -55
- package/esm2020/toast/src/toast.module.mjs +0 -24
- package/esm2020/toast/src/toast.service.mjs +0 -148
- package/esm2020/tooltip/acorex-components-tooltip.mjs +0 -5
- package/esm2020/tooltip/public-api.mjs +0 -4
- package/esm2020/tooltip/src/tooltip.component.mjs +0 -38
- package/esm2020/tooltip/src/tooltip.directive.mjs +0 -86
- package/esm2020/tooltip/src/tooltip.module.mjs +0 -23
- package/esm2020/tree-view/acorex-components-tree-view.mjs +0 -5
- package/esm2020/tree-view/public-api.mjs +0 -3
- package/esm2020/tree-view/src/tree-view.component.mjs +0 -108
- package/esm2020/tree-view/src/tree-view.module.mjs +0 -20
- package/fesm2015/acorex-components-action-sheet.mjs +0 -155
- package/fesm2015/acorex-components-action-sheet.mjs.map +0 -1
- package/fesm2015/acorex-components-alert.mjs +0 -181
- package/fesm2015/acorex-components-alert.mjs.map +0 -1
- package/fesm2015/acorex-components-avatar.mjs +0 -85
- package/fesm2015/acorex-components-avatar.mjs.map +0 -1
- package/fesm2015/acorex-components-badge.mjs +0 -55
- package/fesm2015/acorex-components-badge.mjs.map +0 -1
- package/fesm2015/acorex-components-breadcrumbs.mjs +0 -80
- package/fesm2015/acorex-components-breadcrumbs.mjs.map +0 -1
- package/fesm2015/acorex-components-button.mjs +0 -263
- package/fesm2015/acorex-components-button.mjs.map +0 -1
- package/fesm2015/acorex-components-calendar.mjs +0 -506
- package/fesm2015/acorex-components-calendar.mjs.map +0 -1
- package/fesm2015/acorex-components-carousel.mjs +0 -726
- package/fesm2015/acorex-components-carousel.mjs.map +0 -1
- package/fesm2015/acorex-components-checkbox.mjs +0 -66
- package/fesm2015/acorex-components-checkbox.mjs.map +0 -1
- package/fesm2015/acorex-components-collapse.mjs +0 -113
- package/fesm2015/acorex-components-collapse.mjs.map +0 -1
- package/fesm2015/acorex-components-color-palette.mjs +0 -678
- package/fesm2015/acorex-components-color-palette.mjs.map +0 -1
- package/fesm2015/acorex-components-color-picker.mjs +0 -162
- package/fesm2015/acorex-components-color-picker.mjs.map +0 -1
- package/fesm2015/acorex-components-common.mjs +0 -542
- package/fesm2015/acorex-components-common.mjs.map +0 -1
- package/fesm2015/acorex-components-data-pager.mjs +0 -603
- package/fesm2015/acorex-components-data-pager.mjs.map +0 -1
- package/fesm2015/acorex-components-data-table.mjs +0 -216
- package/fesm2015/acorex-components-data-table.mjs.map +0 -1
- package/fesm2015/acorex-components-date-picker.mjs +0 -293
- package/fesm2015/acorex-components-date-picker.mjs.map +0 -1
- package/fesm2015/acorex-components-decorators.mjs +0 -277
- package/fesm2015/acorex-components-decorators.mjs.map +0 -1
- package/fesm2015/acorex-components-dialog.mjs +0 -231
- package/fesm2015/acorex-components-dialog.mjs.map +0 -1
- package/fesm2015/acorex-components-drawer.mjs +0 -209
- package/fesm2015/acorex-components-drawer.mjs.map +0 -1
- package/fesm2015/acorex-components-dropdown.mjs +0 -112
- package/fesm2015/acorex-components-dropdown.mjs.map +0 -1
- package/fesm2015/acorex-components-form.mjs +0 -387
- package/fesm2015/acorex-components-form.mjs.map +0 -1
- package/fesm2015/acorex-components-input-mask.mjs +0 -86
- package/fesm2015/acorex-components-input-mask.mjs.map +0 -1
- package/fesm2015/acorex-components-label.mjs +0 -52
- package/fesm2015/acorex-components-label.mjs.map +0 -1
- package/fesm2015/acorex-components-loading.mjs +0 -396
- package/fesm2015/acorex-components-loading.mjs.map +0 -1
- package/fesm2015/acorex-components-menu.mjs +0 -227
- package/fesm2015/acorex-components-menu.mjs.map +0 -1
- package/fesm2015/acorex-components-mixin.mjs +0 -1253
- package/fesm2015/acorex-components-mixin.mjs.map +0 -1
- package/fesm2015/acorex-components-number-box.mjs +0 -284
- package/fesm2015/acorex-components-number-box.mjs.map +0 -1
- package/fesm2015/acorex-components-page.mjs +0 -152
- package/fesm2015/acorex-components-page.mjs.map +0 -1
- package/fesm2015/acorex-components-password-box.mjs +0 -94
- package/fesm2015/acorex-components-password-box.mjs.map +0 -1
- package/fesm2015/acorex-components-popover.mjs +0 -284
- package/fesm2015/acorex-components-popover.mjs.map +0 -1
- package/fesm2015/acorex-components-popup.mjs +0 -251
- package/fesm2015/acorex-components-popup.mjs.map +0 -1
- package/fesm2015/acorex-components-progress-bar.mjs +0 -56
- package/fesm2015/acorex-components-progress-bar.mjs.map +0 -1
- package/fesm2015/acorex-components-radio.mjs +0 -60
- package/fesm2015/acorex-components-radio.mjs.map +0 -1
- package/fesm2015/acorex-components-range-slider.mjs +0 -144
- package/fesm2015/acorex-components-range-slider.mjs.map +0 -1
- package/fesm2015/acorex-components-rating.mjs +0 -64
- package/fesm2015/acorex-components-rating.mjs.map +0 -1
- package/fesm2015/acorex-components-result.mjs +0 -48
- package/fesm2015/acorex-components-result.mjs.map +0 -1
- package/fesm2015/acorex-components-search-box.mjs +0 -83
- package/fesm2015/acorex-components-search-box.mjs.map +0 -1
- package/fesm2015/acorex-components-select-box.mjs +0 -433
- package/fesm2015/acorex-components-select-box.mjs.map +0 -1
- package/fesm2015/acorex-components-selection-list.mjs +0 -78
- package/fesm2015/acorex-components-selection-list.mjs.map +0 -1
- package/fesm2015/acorex-components-switch.mjs +0 -65
- package/fesm2015/acorex-components-switch.mjs.map +0 -1
- package/fesm2015/acorex-components-tabs.mjs +0 -291
- package/fesm2015/acorex-components-tabs.mjs.map +0 -1
- package/fesm2015/acorex-components-textarea.mjs +0 -45
- package/fesm2015/acorex-components-textarea.mjs.map +0 -1
- package/fesm2015/acorex-components-textbox.mjs +0 -72
- package/fesm2015/acorex-components-textbox.mjs.map +0 -1
- package/fesm2015/acorex-components-time-box.mjs +0 -326
- package/fesm2015/acorex-components-time-box.mjs.map +0 -1
- package/fesm2015/acorex-components-toast.mjs +0 -228
- package/fesm2015/acorex-components-toast.mjs.map +0 -1
- package/fesm2015/acorex-components-tooltip.mjs +0 -147
- package/fesm2015/acorex-components-tooltip.mjs.map +0 -1
- package/fesm2015/acorex-components-tree-view.mjs +0 -132
- package/fesm2015/acorex-components-tree-view.mjs.map +0 -1
- package/fesm2015/acorex-components.mjs +0 -11
- package/fesm2015/acorex-components.mjs.map +0 -1
- package/fesm2020/acorex-components-action-sheet.mjs +0 -155
- package/fesm2020/acorex-components-action-sheet.mjs.map +0 -1
- package/fesm2020/acorex-components-alert.mjs +0 -179
- package/fesm2020/acorex-components-alert.mjs.map +0 -1
- package/fesm2020/acorex-components-avatar.mjs +0 -85
- package/fesm2020/acorex-components-avatar.mjs.map +0 -1
- package/fesm2020/acorex-components-badge.mjs +0 -55
- package/fesm2020/acorex-components-badge.mjs.map +0 -1
- package/fesm2020/acorex-components-breadcrumbs.mjs +0 -78
- package/fesm2020/acorex-components-breadcrumbs.mjs.map +0 -1
- package/fesm2020/acorex-components-button.mjs +0 -260
- package/fesm2020/acorex-components-button.mjs.map +0 -1
- package/fesm2020/acorex-components-calendar.mjs +0 -505
- package/fesm2020/acorex-components-calendar.mjs.map +0 -1
- package/fesm2020/acorex-components-carousel.mjs +0 -722
- package/fesm2020/acorex-components-carousel.mjs.map +0 -1
- package/fesm2020/acorex-components-checkbox.mjs +0 -66
- package/fesm2020/acorex-components-checkbox.mjs.map +0 -1
- package/fesm2020/acorex-components-collapse.mjs +0 -113
- package/fesm2020/acorex-components-collapse.mjs.map +0 -1
- package/fesm2020/acorex-components-color-palette.mjs +0 -672
- package/fesm2020/acorex-components-color-palette.mjs.map +0 -1
- package/fesm2020/acorex-components-color-picker.mjs +0 -159
- package/fesm2020/acorex-components-color-picker.mjs.map +0 -1
- package/fesm2020/acorex-components-common.mjs +0 -534
- package/fesm2020/acorex-components-common.mjs.map +0 -1
- package/fesm2020/acorex-components-data-pager.mjs +0 -586
- package/fesm2020/acorex-components-data-pager.mjs.map +0 -1
- package/fesm2020/acorex-components-data-table.mjs +0 -214
- package/fesm2020/acorex-components-data-table.mjs.map +0 -1
- package/fesm2020/acorex-components-date-picker.mjs +0 -292
- package/fesm2020/acorex-components-date-picker.mjs.map +0 -1
- package/fesm2020/acorex-components-decorators.mjs +0 -274
- package/fesm2020/acorex-components-decorators.mjs.map +0 -1
- package/fesm2020/acorex-components-dialog.mjs +0 -230
- package/fesm2020/acorex-components-dialog.mjs.map +0 -1
- package/fesm2020/acorex-components-drawer.mjs +0 -207
- package/fesm2020/acorex-components-drawer.mjs.map +0 -1
- package/fesm2020/acorex-components-dropdown.mjs +0 -107
- package/fesm2020/acorex-components-dropdown.mjs.map +0 -1
- package/fesm2020/acorex-components-form.mjs +0 -384
- package/fesm2020/acorex-components-form.mjs.map +0 -1
- package/fesm2020/acorex-components-input-mask.mjs +0 -86
- package/fesm2020/acorex-components-input-mask.mjs.map +0 -1
- package/fesm2020/acorex-components-label.mjs +0 -52
- package/fesm2020/acorex-components-label.mjs.map +0 -1
- package/fesm2020/acorex-components-loading.mjs +0 -395
- package/fesm2020/acorex-components-loading.mjs.map +0 -1
- package/fesm2020/acorex-components-menu.mjs +0 -221
- package/fesm2020/acorex-components-menu.mjs.map +0 -1
- package/fesm2020/acorex-components-mixin.mjs +0 -1247
- package/fesm2020/acorex-components-mixin.mjs.map +0 -1
- package/fesm2020/acorex-components-number-box.mjs +0 -283
- package/fesm2020/acorex-components-number-box.mjs.map +0 -1
- package/fesm2020/acorex-components-page.mjs +0 -150
- package/fesm2020/acorex-components-page.mjs.map +0 -1
- package/fesm2020/acorex-components-password-box.mjs +0 -94
- package/fesm2020/acorex-components-password-box.mjs.map +0 -1
- package/fesm2020/acorex-components-popover.mjs +0 -279
- package/fesm2020/acorex-components-popover.mjs.map +0 -1
- package/fesm2020/acorex-components-popup.mjs +0 -251
- package/fesm2020/acorex-components-popup.mjs.map +0 -1
- package/fesm2020/acorex-components-progress-bar.mjs +0 -56
- package/fesm2020/acorex-components-progress-bar.mjs.map +0 -1
- package/fesm2020/acorex-components-radio.mjs +0 -60
- package/fesm2020/acorex-components-radio.mjs.map +0 -1
- package/fesm2020/acorex-components-range-slider.mjs +0 -139
- package/fesm2020/acorex-components-range-slider.mjs.map +0 -1
- package/fesm2020/acorex-components-rating.mjs +0 -64
- package/fesm2020/acorex-components-rating.mjs.map +0 -1
- package/fesm2020/acorex-components-result.mjs +0 -48
- package/fesm2020/acorex-components-result.mjs.map +0 -1
- package/fesm2020/acorex-components-search-box.mjs +0 -80
- package/fesm2020/acorex-components-search-box.mjs.map +0 -1
- package/fesm2020/acorex-components-select-box.mjs +0 -427
- package/fesm2020/acorex-components-select-box.mjs.map +0 -1
- package/fesm2020/acorex-components-selection-list.mjs +0 -78
- package/fesm2020/acorex-components-selection-list.mjs.map +0 -1
- package/fesm2020/acorex-components-switch.mjs +0 -65
- package/fesm2020/acorex-components-switch.mjs.map +0 -1
- package/fesm2020/acorex-components-tabs.mjs +0 -290
- package/fesm2020/acorex-components-tabs.mjs.map +0 -1
- package/fesm2020/acorex-components-textarea.mjs +0 -45
- package/fesm2020/acorex-components-textarea.mjs.map +0 -1
- package/fesm2020/acorex-components-textbox.mjs +0 -72
- package/fesm2020/acorex-components-textbox.mjs.map +0 -1
- package/fesm2020/acorex-components-time-box.mjs +0 -322
- package/fesm2020/acorex-components-time-box.mjs.map +0 -1
- package/fesm2020/acorex-components-toast.mjs +0 -228
- package/fesm2020/acorex-components-toast.mjs.map +0 -1
- package/fesm2020/acorex-components-tooltip.mjs +0 -147
- package/fesm2020/acorex-components-tooltip.mjs.map +0 -1
- package/fesm2020/acorex-components-tree-view.mjs +0 -132
- package/fesm2020/acorex-components-tree-view.mjs.map +0 -1
- package/fesm2020/acorex-components.mjs +0 -11
- package/fesm2020/acorex-components.mjs.map +0 -1
- package/form/index.d.ts +0 -5
- package/form/src/form-field.component.d.ts +0 -8
- package/form/src/form-field.module.d.ts +0 -16
- package/form/src/form-hint.component.d.ts +0 -8
- package/form/src/form.component.d.ts +0 -31
- package/form/src/validation-rule.widget.d.ts +0 -17
- package/form/src/validation-summary.component.d.ts +0 -21
- package/form/src/validation.class.d.ts +0 -18
- package/index.d.ts +0 -5
- package/input-mask/index.d.ts +0 -5
- package/input-mask/src/input-mask.component.d.ts +0 -25
- package/input-mask/src/input-mask.module.d.ts +0 -10
- package/label/index.d.ts +0 -5
- package/label/public-api.d.ts +0 -2
- package/label/src/label.component.d.ts +0 -13
- package/label/src/label.module.d.ts +0 -8
- package/loading/index.d.ts +0 -5
- package/loading/src/loading-spinner.component.d.ts +0 -6
- package/loading/src/loading.component.d.ts +0 -21
- package/loading/src/loading.directive.d.ts +0 -22
- package/loading/src/loading.module.d.ts +0 -13
- package/loading/src/loading.service.d.ts +0 -48
- package/menu/index.d.ts +0 -5
- package/menu/src/menu.component.d.ts +0 -53
- package/menu/src/menu.module.d.ts +0 -12
- package/mixin/index.d.ts +0 -5
- 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 -52
- package/mixin/src/button-mixin.class.d.ts +0 -52
- package/mixin/src/clickable-mixin.class.d.ts +0 -37
- package/mixin/src/color-look-mixing.class.d.ts +0 -43
- package/mixin/src/constratctor.d.ts +0 -4
- package/mixin/src/datalist-component.class.d.ts +0 -58
- package/mixin/src/datalist.class.d.ts +0 -11
- package/mixin/src/dropdown-mixin.class.d.ts +0 -46
- package/mixin/src/interactive-mixin.class.d.ts +0 -59
- package/mixin/src/loading-mixin.class.d.ts +0 -39
- package/mixin/src/mixin.class.d.ts +0 -693
- package/mixin/src/page-component.class.d.ts +0 -27
- package/mixin/src/selection-component.class.d.ts +0 -62
- package/mixin/src/sizable-mixin.class.d.ts +0 -33
- package/mixin/src/textbox-mixin.class.d.ts +0 -74
- package/mixin/src/value-mixin.class.d.ts +0 -62
- package/number-box/index.d.ts +0 -5
- package/number-box/src/number-box.component.d.ts +0 -76
- package/number-box/src/number-box.module.d.ts +0 -12
- package/page/index.d.ts +0 -5
- package/page/public-api.d.ts +0 -3
- package/page/src/base-page.class.d.ts +0 -45
- package/page/src/page.component.d.ts +0 -14
- package/page/src/page.module.d.ts +0 -6
- package/password-box/index.d.ts +0 -5
- package/password-box/src/password-box.component.d.ts +0 -23
- package/password-box/src/password-box.module.d.ts +0 -11
- package/popover/index.d.ts +0 -5
- package/popover/public-api.d.ts +0 -2
- package/popover/src/popover.component.d.ts +0 -51
- package/popover/src/popover.module.d.ts +0 -8
- package/popup/index.d.ts +0 -5
- package/popup/src/popup.component.d.ts +0 -45
- package/popup/src/popup.module.d.ts +0 -13
- package/popup/src/popup.service.d.ts +0 -38
- package/progress-bar/index.d.ts +0 -5
- package/progress-bar/public-api.d.ts +0 -2
- package/progress-bar/src/progress-bar.component.d.ts +0 -18
- package/progress-bar/src/progress-bar.module.d.ts +0 -8
- package/public-api.d.ts +0 -1
- package/radio/index.d.ts +0 -5
- package/radio/src/radio.component.d.ts +0 -17
- package/radio/src/radio.module.d.ts +0 -9
- package/range-slider/index.d.ts +0 -5
- package/range-slider/src/range-slider.component.d.ts +0 -40
- package/range-slider/src/range-slider.module.d.ts +0 -9
- 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/index.d.ts +0 -5
- package/result/src/result.component.d.ts +0 -12
- package/result/src/result.module.d.ts +0 -8
- package/search-box/index.d.ts +0 -5
- package/search-box/src/search-box.component.d.ts +0 -18
- package/search-box/src/search-box.module.d.ts +0 -12
- package/select-box/index.d.ts +0 -5
- package/select-box/public-api.d.ts +0 -2
- package/select-box/src/selectbox.component.d.ts +0 -66
- package/select-box/src/selectbox.module.d.ts +0 -19
- package/selection-list/index.d.ts +0 -5
- package/selection-list/public-api.d.ts +0 -2
- package/selection-list/src/selection-list.component.d.ts +0 -22
- package/selection-list/src/selection-list.module.d.ts +0 -13
- package/switch/index.d.ts +0 -5
- package/switch/public-api.d.ts +0 -2
- package/switch/src/switch.component.d.ts +0 -12
- package/switch/src/switch.module.d.ts +0 -10
- package/tabs/index.d.ts +0 -5
- package/tabs/src/tab-content.directive.d.ts +0 -11
- package/tabs/src/tab-item.component.d.ts +0 -47
- package/tabs/src/tabs.class.d.ts +0 -6
- package/tabs/src/tabs.component.d.ts +0 -24
- package/tabs/src/tabs.module.d.ts +0 -12
- package/textarea/index.d.ts +0 -5
- package/textarea/src/textarea.component.d.ts +0 -12
- package/textarea/src/textarea.module.d.ts +0 -9
- package/textbox/index.d.ts +0 -5
- package/textbox/public-api.d.ts +0 -2
- package/textbox/src/textbox.component.d.ts +0 -16
- package/textbox/src/textbox.module.d.ts +0 -12
- package/time-box/index.d.ts +0 -5
- package/time-box/src/time-box.component.d.ts +0 -48
- package/time-box/src/time-box.module.d.ts +0 -11
- package/toast/index.d.ts +0 -5
- package/toast/src/toast.class.d.ts +0 -15
- package/toast/src/toast.component.d.ts +0 -24
- package/toast/src/toast.module.d.ts +0 -11
- package/toast/src/toast.service.d.ts +0 -23
- package/tooltip/index.d.ts +0 -5
- package/tooltip/src/tooltip.component.d.ts +0 -10
- package/tooltip/src/tooltip.directive.d.ts +0 -18
- package/tooltip/src/tooltip.module.d.ts +0 -10
- 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
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, ContentChildren, Output, ViewChild, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@acorex/components/button';
|
|
4
|
-
import { AXButtonItemComponent, AXButtonModule } from '@acorex/components/button';
|
|
5
|
-
import * as i2 from '@acorex/components/popover';
|
|
6
|
-
import { AXPopoverComponent, AXPopoverModule } from '@acorex/components/popover';
|
|
7
|
-
import { AXBaseDropdownMixin } from '@acorex/components/mixin';
|
|
8
|
-
import { OverlayModule } from '@angular/cdk/overlay';
|
|
9
|
-
import { CommonModule } from '@angular/common';
|
|
10
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
11
|
-
|
|
12
|
-
class AXDropdownPanelComponent extends AXBaseDropdownMixin {
|
|
13
|
-
constructor(elementRef, cdr, _parent) {
|
|
14
|
-
super(elementRef, cdr);
|
|
15
|
-
this._parent = _parent;
|
|
16
|
-
this.onItemClick = new EventEmitter();
|
|
17
|
-
this._needBorder = false;
|
|
18
|
-
this._subs = [];
|
|
19
|
-
this._target = this._parent._getHostElement();
|
|
20
|
-
}
|
|
21
|
-
ngAfterContentInit() {
|
|
22
|
-
this._initContents();
|
|
23
|
-
this._contentButtons.changes.subscribe(() => {
|
|
24
|
-
this._initContents();
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
_initContents() {
|
|
28
|
-
this._needBorder = this._contentButtons.length > 0;
|
|
29
|
-
this._bindEvents();
|
|
30
|
-
this._bindProps();
|
|
31
|
-
this._cdr.markForCheck();
|
|
32
|
-
}
|
|
33
|
-
_bindEvents() {
|
|
34
|
-
this._contentButtons?.forEach((b) => {
|
|
35
|
-
if (!b.onClick.length)
|
|
36
|
-
b.onClick.subscribe((c) => {
|
|
37
|
-
this._handleOnItemClick(c);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
_bindProps() {
|
|
42
|
-
this._contentButtons?.forEach((b) => {
|
|
43
|
-
//b.look = this.look ?? this.look;
|
|
44
|
-
b.disabled = b.disabled ?? this.disabled;
|
|
45
|
-
//b.toggleable = false;
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
onOptionChanged(options) {
|
|
49
|
-
this._bindProps();
|
|
50
|
-
}
|
|
51
|
-
onDestroy() {
|
|
52
|
-
this._subs.forEach((s) => {
|
|
53
|
-
s?.unsubscribe();
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
_emitOnItemClickEvent(e, item) {
|
|
57
|
-
this.onItemClick.emit({
|
|
58
|
-
component: this,
|
|
59
|
-
htmlElement: this._getHostElement(),
|
|
60
|
-
nativeEvent: e.nativeEvent,
|
|
61
|
-
name: item.name,
|
|
62
|
-
data: item.data,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
_handleOnItemClick(e) {
|
|
66
|
-
this.close();
|
|
67
|
-
this._emitOnItemClickEvent(e, e.component);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
AXDropdownPanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDropdownPanelComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.AXButtonComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
71
|
-
AXDropdownPanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: { isOpen: "isOpen", fitParent: "fitParent", dropdownWidth: "dropdownWidth", position: "position" }, outputs: { onOpened: "onOpened", onClosed: "onClosed", onItemClick: "onItemClick" }, host: { classAttribute: "ax-dropdown-panel" }, queries: [{ propertyName: "_contentButtons", predicate: AXButtonItemComponent }], viewQueries: [{ propertyName: "popover", first: true, predicate: AXPopoverComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"false\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </div>\r\n</ax-popover>", dependencies: [{ kind: "component", type: i2.AXPopoverComponent, selector: "ax-popover", inputs: ["target", "position", "openTrigger", "closeTrigger", "hasBackdrop", "backdropClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDropdownPanelComponent, decorators: [{
|
|
73
|
-
type: Component,
|
|
74
|
-
args: [{ selector: 'ax-dropdown-panel', inputs: ['isOpen', 'fitParent', 'dropdownWidth', 'position'], outputs: ['onOpened', 'onClosed'], host: { class: 'ax-dropdown-panel' }, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"false\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </div>\r\n</ax-popover>" }]
|
|
75
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.AXButtonComponent, decorators: [{
|
|
76
|
-
type: Optional
|
|
77
|
-
}] }]; }, propDecorators: { _contentButtons: [{
|
|
78
|
-
type: ContentChildren,
|
|
79
|
-
args: [AXButtonItemComponent]
|
|
80
|
-
}], onItemClick: [{
|
|
81
|
-
type: Output
|
|
82
|
-
}], popover: [{
|
|
83
|
-
type: ViewChild,
|
|
84
|
-
args: [AXPopoverComponent, { static: true }]
|
|
85
|
-
}] } });
|
|
86
|
-
|
|
87
|
-
class AXDropdownModule {
|
|
88
|
-
}
|
|
89
|
-
AXDropdownModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDropdownModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
90
|
-
AXDropdownModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: AXDropdownModule, declarations: [AXDropdownPanelComponent], imports: [CommonModule, AXButtonModule, OverlayModule, AXDecoratorModule, AXPopoverModule], exports: [AXDropdownPanelComponent] });
|
|
91
|
-
AXDropdownModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDropdownModule, imports: [CommonModule, AXButtonModule, OverlayModule, AXDecoratorModule, AXPopoverModule] });
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXDropdownModule, decorators: [{
|
|
93
|
-
type: NgModule,
|
|
94
|
-
args: [{
|
|
95
|
-
imports: [CommonModule, AXButtonModule, OverlayModule, AXDecoratorModule, AXPopoverModule],
|
|
96
|
-
exports: [AXDropdownPanelComponent],
|
|
97
|
-
declarations: [AXDropdownPanelComponent],
|
|
98
|
-
providers: [],
|
|
99
|
-
}]
|
|
100
|
-
}] });
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Generated bundle index. Do not edit.
|
|
104
|
-
*/
|
|
105
|
-
|
|
106
|
-
export { AXDropdownModule, AXDropdownPanelComponent };
|
|
107
|
-
//# sourceMappingURL=acorex-components-dropdown.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-components-dropdown.mjs","sources":["../../../../projects/acorex/components/dropdown/src/dropdown-panel.component.ts","../../../../projects/acorex/components/dropdown/src/dropdown-panel.component.html","../../../../projects/acorex/components/dropdown/src/dropdown.module.ts","../../../../projects/acorex/components/dropdown/acorex-components-dropdown.ts"],"sourcesContent":["import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n ContentChildren,\r\n QueryList,\r\n EventEmitter,\r\n Output,\r\n ViewChild,\r\n Optional,\r\n} from '@angular/core';\r\nimport { Subscription } from 'rxjs';\r\n\r\nimport { AXButtonClickEvent, AXClickEvent } from '@acorex/components/common';\r\nimport {\r\n AXButtonComponent,\r\n AXButtonItemComponent,\r\n} from '@acorex/components/button';\r\nimport { AXPopoverComponent } from '@acorex/components/popover';\r\nimport { AXBaseDropdownMixin } from '@acorex/components/mixin';\r\n\r\n\r\n@Component({\r\n selector: 'ax-dropdown-panel',\r\n templateUrl: './dropdown-panel.component.html',\r\n inputs: ['isOpen','fitParent', 'dropdownWidth','position'],\r\n outputs: ['onOpened', 'onClosed'],\r\n host: { class: 'ax-dropdown-panel' },\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXDropdownPanelComponent extends AXBaseDropdownMixin {\r\n constructor(\r\n elementRef: ElementRef,\r\n cdr: ChangeDetectorRef,\r\n @Optional()\r\n public _parent: AXButtonComponent\r\n ) {\r\n super(elementRef, cdr);\r\n this._target = this._parent._getHostElement();\r\n }\r\n\r\n @ContentChildren(AXButtonItemComponent)\r\n _contentButtons: QueryList<AXButtonItemComponent>;\r\n\r\n @Output()\r\n onItemClick: EventEmitter<AXButtonClickEvent> = new EventEmitter<AXButtonClickEvent>();\r\n\r\n @ViewChild(AXPopoverComponent, { static: true })\r\n popover: AXPopoverComponent;\r\n\r\n _needBorder: boolean = false;\r\n _subs: Subscription[] = [];\r\n _target: HTMLElement;\r\n\r\n ngAfterContentInit() {\r\n this._initContents();\r\n this._contentButtons.changes.subscribe(() => {\r\n this._initContents();\r\n });\r\n }\r\n\r\n private _initContents() {\r\n this._needBorder = this._contentButtons.length > 0;\r\n this._bindEvents();\r\n this._bindProps();\r\n this._cdr.markForCheck();\r\n }\r\n\r\n private _bindEvents() {\r\n this._contentButtons?.forEach((b) => {\r\n if (!b.onClick.length)\r\n b.onClick.subscribe((c) => {\r\n this._handleOnItemClick(c);\r\n });\r\n });\r\n }\r\n\r\n private _bindProps() {\r\n this._contentButtons?.forEach((b) => {\r\n //b.look = this.look ?? this.look;\r\n b.disabled = b.disabled ?? this.disabled;\r\n //b.toggleable = false;\r\n });\r\n }\r\n\r\n onOptionChanged(options) {\r\n this._bindProps();\r\n }\r\n\r\n onDestroy(): void {\r\n this._subs.forEach((s) => {\r\n s?.unsubscribe();\r\n });\r\n }\r\n\r\n _emitOnItemClickEvent(e: AXClickEvent, item: AXButtonItemComponent): void {\r\n this.onItemClick.emit({\r\n component: this,\r\n htmlElement: this._getHostElement(),\r\n nativeEvent: e.nativeEvent,\r\n name: item.name,\r\n data: item.data,\r\n });\r\n }\r\n\r\n private _handleOnItemClick(e: AXClickEvent) {\r\n this.close();\r\n this._emitOnItemClickEvent(e, e.component);\r\n }\r\n}\r\n","<ax-popover [target]=\"_target\" [position]=\"position\" [openTrigger]=\"'toggle'\" [closeTrigger]=\"'clickout'\" [adaptivityEnabled]=\"false\">\r\n <div class=\"ax-overlay-pane\" [class.ax-dropdown-list]=\"_needBorder\" >\r\n <ng-content select=\"[panel],ax-button-item\">\r\n </ng-content>\r\n </div>\r\n</ax-popover>","import { OverlayModule } from '@angular/cdk/overlay';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXPopoverModule } from '@acorex/components/popover';\r\nimport { AXDropdownPanelComponent } from './dropdown-panel.component';\r\n\r\n@NgModule({\r\n imports: [CommonModule, AXButtonModule, OverlayModule, AXDecoratorModule, AXPopoverModule],\r\n exports: [ AXDropdownPanelComponent],\r\n declarations: [ AXDropdownPanelComponent],\r\n providers: [],\r\n})\r\nexport class AXDropdownModule { }\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;AAiCM,MAAO,wBAAyB,SAAQ,mBAAmB,CAAA;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
3
|
-
import { Component, ViewEncapsulation, ChangeDetectionStrategy, EventEmitter, Output, Input, Optional, Inject, NgModule } from '@angular/core';
|
|
4
|
-
import * as i4 from '@acorex/components/alert';
|
|
5
|
-
import { AXAlertModule } from '@acorex/components/alert';
|
|
6
|
-
import * as i5 from '@acorex/components/button';
|
|
7
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
8
|
-
import * as i3 from '@acorex/components/decorators';
|
|
9
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
10
|
-
import { AXConfig } from '@acorex/core/config';
|
|
11
|
-
import { AXTranslator } from '@acorex/core/translation';
|
|
12
|
-
import * as i2 from '@angular/common';
|
|
13
|
-
import { CommonModule } from '@angular/common';
|
|
14
|
-
import { AXEvent } from '@acorex/components/common';
|
|
15
|
-
import * as i1 from '@acorex/components/toast';
|
|
16
|
-
|
|
17
|
-
class AXFormFieldComponent extends AXBaseComponentMixin {
|
|
18
|
-
constructor(elementRef, cdr) {
|
|
19
|
-
super(elementRef, cdr);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
AXFormFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXFormFieldComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
AXFormFieldComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXFormFieldComponent, selector: "ax-form-field", host: { classAttribute: "ax-form-field" }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXFormFieldComponent, decorators: [{
|
|
25
|
-
type: Component,
|
|
26
|
-
args: [{
|
|
27
|
-
selector: 'ax-form-field',
|
|
28
|
-
template: '<ng-content></ng-content>',
|
|
29
|
-
host: { class: 'ax-form-field' },
|
|
30
|
-
encapsulation: ViewEncapsulation.None,
|
|
31
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
32
|
-
}]
|
|
33
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
34
|
-
|
|
35
|
-
class AXFormHintComponent extends AXBaseComponentMixin {
|
|
36
|
-
constructor(elementRef, cdr) {
|
|
37
|
-
super(elementRef, cdr);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
AXFormHintComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXFormHintComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
41
|
-
AXFormHintComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXFormHintComponent, selector: "ax-form-hint", usesInheritance: true, ngImport: i0, template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXFormHintComponent, decorators: [{
|
|
43
|
-
type: Component,
|
|
44
|
-
args: [{
|
|
45
|
-
selector: 'ax-form-hint',
|
|
46
|
-
template: ' <p class="ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300"><ng-content></ng-content></p>',
|
|
47
|
-
encapsulation: ViewEncapsulation.None,
|
|
48
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
49
|
-
}]
|
|
50
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; } });
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Contains native event
|
|
54
|
-
* @category Events
|
|
55
|
-
*/
|
|
56
|
-
class AXFormValidationEvent extends AXEvent {
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* The Button is a component which detects user interaction and triggers a corresponding event
|
|
60
|
-
*
|
|
61
|
-
* @category Components
|
|
62
|
-
*/
|
|
63
|
-
class AXFormComponent extends AXBaseComponentMixin {
|
|
64
|
-
/**
|
|
65
|
-
* @ignore
|
|
66
|
-
*/
|
|
67
|
-
constructor(elementRef, cdr) {
|
|
68
|
-
super(elementRef, cdr);
|
|
69
|
-
this.cdr = cdr;
|
|
70
|
-
this.onValidate = new EventEmitter();
|
|
71
|
-
}
|
|
72
|
-
_getComponenets() {
|
|
73
|
-
return Array.from(this._getHostElement().querySelectorAll('[ax-form-input="true"]'));
|
|
74
|
-
}
|
|
75
|
-
validate(...args) {
|
|
76
|
-
const widgets = this._getComponenets();
|
|
77
|
-
if (widgets.length === 0) {
|
|
78
|
-
this._emitOnValidateEvent({ result: true });
|
|
79
|
-
return Promise.resolve({ result: true });
|
|
80
|
-
}
|
|
81
|
-
//
|
|
82
|
-
return new Promise((resolve, reject) => {
|
|
83
|
-
Promise.all(widgets.map((c) => c.__axContext__)
|
|
84
|
-
.filter(c => (args == null || args.length == 0) || args.includes(c.name))
|
|
85
|
-
.map((c) => c.validate()))
|
|
86
|
-
.then((rules) => {
|
|
87
|
-
const failed = rules.filter((c) => !c.result);
|
|
88
|
-
if (failed.length) {
|
|
89
|
-
this._emitOnValidateEvent({
|
|
90
|
-
result: false,
|
|
91
|
-
items: failed
|
|
92
|
-
});
|
|
93
|
-
reject({
|
|
94
|
-
result: false,
|
|
95
|
-
items: failed
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
this._emitOnValidateEvent({ result: true });
|
|
100
|
-
resolve({ result: true });
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
_emitOnValidateEvent(e) {
|
|
106
|
-
this.onValidate.emit({
|
|
107
|
-
component: this,
|
|
108
|
-
result: e,
|
|
109
|
-
htmlElement: this._getHostElement(),
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
clear() {
|
|
113
|
-
const widgets = this._getComponenets();
|
|
114
|
-
widgets.forEach(w => {
|
|
115
|
-
w.__axContext__.clear();
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
AXFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXFormComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
120
|
-
AXFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXFormComponent, selector: "ax-form", outputs: { onValidate: "onValidate" }, usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXFormComponent, decorators: [{
|
|
122
|
-
type: Component,
|
|
123
|
-
args: [{
|
|
124
|
-
selector: 'ax-form',
|
|
125
|
-
template: '<ng-content></ng-content>',
|
|
126
|
-
encapsulation: ViewEncapsulation.None,
|
|
127
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
128
|
-
}]
|
|
129
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { onValidate: [{
|
|
130
|
-
type: Output
|
|
131
|
-
}] } });
|
|
132
|
-
|
|
133
|
-
class AXValidationRuleComponent extends AXBaseComponentMixin {
|
|
134
|
-
constructor(elementRef, cdr) {
|
|
135
|
-
super(elementRef, cdr);
|
|
136
|
-
this.rule = 'required';
|
|
137
|
-
this.showMessage = true;
|
|
138
|
-
this.enabled = true;
|
|
139
|
-
}
|
|
140
|
-
onInit() {
|
|
141
|
-
this._getHostElement().validate = this.validate.bind(this);
|
|
142
|
-
}
|
|
143
|
-
validate(value) {
|
|
144
|
-
if (this.enabled === false) {
|
|
145
|
-
return Promise.resolve({ result: true });
|
|
146
|
-
}
|
|
147
|
-
if (this.rule == 'custom') {
|
|
148
|
-
const regRule = AXConfig.get(`form.validation.rules.${this.value}`);
|
|
149
|
-
if (regRule) {
|
|
150
|
-
return this._internalValidate(regRule.rule, value, this.message || regRule.message, regRule.value);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
return this._internalValidate(this.rule, value, this.message, this.value);
|
|
154
|
-
}
|
|
155
|
-
_internalValidate(type, value, message, ruleValue) {
|
|
156
|
-
return new Promise((resolve) => {
|
|
157
|
-
switch (type) {
|
|
158
|
-
case 'required':
|
|
159
|
-
resolve({
|
|
160
|
-
message: this.showMessage
|
|
161
|
-
? message || AXTranslator.get('validation.messages.required')
|
|
162
|
-
: '',
|
|
163
|
-
result: value != null &&
|
|
164
|
-
value != '' &&
|
|
165
|
-
(!Array.isArray(value) ||
|
|
166
|
-
(Array.isArray(value) && value.length > 0)),
|
|
167
|
-
});
|
|
168
|
-
break;
|
|
169
|
-
case 'regex':
|
|
170
|
-
const ex = new RegExp(ruleValue);
|
|
171
|
-
resolve({
|
|
172
|
-
message: this.showMessage
|
|
173
|
-
? message || AXTranslator.get('validation.messages.regex')
|
|
174
|
-
: '',
|
|
175
|
-
result: ex.test(value),
|
|
176
|
-
});
|
|
177
|
-
break;
|
|
178
|
-
case 'callback':
|
|
179
|
-
if (typeof ruleValue === 'function') {
|
|
180
|
-
const res = {};
|
|
181
|
-
res.message = this.showMessage ? message : null;
|
|
182
|
-
const val = ruleValue({ value, message });
|
|
183
|
-
if (val instanceof Promise) {
|
|
184
|
-
val
|
|
185
|
-
.then((c) => {
|
|
186
|
-
res.result = c;
|
|
187
|
-
})
|
|
188
|
-
.catch((c) => {
|
|
189
|
-
res.result = false;
|
|
190
|
-
})
|
|
191
|
-
.finally(() => {
|
|
192
|
-
resolve(res);
|
|
193
|
-
});
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
res.result = val;
|
|
197
|
-
resolve(res);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
resolve({
|
|
202
|
-
message: AXTranslator.get('validation.messages.invalid-rull-fn'),
|
|
203
|
-
result: false,
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
break;
|
|
207
|
-
default:
|
|
208
|
-
resolve({
|
|
209
|
-
message: AXTranslator.get('validation.messages.invalid-rull-name'),
|
|
210
|
-
result: false,
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
AXValidationRuleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXValidationRuleComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
217
|
-
AXValidationRuleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXValidationRuleComponent, selector: "ax-validation-rule", inputs: { rule: "rule", message: "message", showMessage: "showMessage", value: "value", enabled: "enabled" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXValidationRuleComponent, decorators: [{
|
|
219
|
-
type: Component,
|
|
220
|
-
args: [{
|
|
221
|
-
selector: 'ax-validation-rule',
|
|
222
|
-
template: '',
|
|
223
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
224
|
-
encapsulation: ViewEncapsulation.None,
|
|
225
|
-
}]
|
|
226
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { rule: [{
|
|
227
|
-
type: Input
|
|
228
|
-
}], message: [{
|
|
229
|
-
type: Input
|
|
230
|
-
}], showMessage: [{
|
|
231
|
-
type: Input
|
|
232
|
-
}], value: [{
|
|
233
|
-
type: Input
|
|
234
|
-
}], enabled: [{
|
|
235
|
-
type: Input
|
|
236
|
-
}] } });
|
|
237
|
-
|
|
238
|
-
class AXValidationSummaryComponent extends AXBaseComponentMixin {
|
|
239
|
-
constructor(_elementRef, _cdr, _tosatService, _parent) {
|
|
240
|
-
super(_elementRef, _cdr);
|
|
241
|
-
this._tosatService = _tosatService;
|
|
242
|
-
this._parent = _parent;
|
|
243
|
-
this._content = '';
|
|
244
|
-
this._title = AXTranslator.get('validation.messages.title');
|
|
245
|
-
this.displayMode = 'toast';
|
|
246
|
-
this.autoHide = false;
|
|
247
|
-
//
|
|
248
|
-
_parent.onValidate.subscribe((c) => {
|
|
249
|
-
if (!c.result.result) {
|
|
250
|
-
this._content = `<ul>${c.result.items.map(c => `<li>${c.message}</li>`).join('')}</ul>`;
|
|
251
|
-
this._timeOut = this.autoHide ? (this.timeOut ?? Math.max(c.result.items.length * 1500, 2000)) : 0;
|
|
252
|
-
//
|
|
253
|
-
if (this.displayMode == 'toast') {
|
|
254
|
-
this._tosatService.show({
|
|
255
|
-
color: 'danger',
|
|
256
|
-
closeable: true,
|
|
257
|
-
timeOut: this._timeOut,
|
|
258
|
-
content: this._content,
|
|
259
|
-
title: AXTranslator.get('validation.messages.title')
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
this._content = '';
|
|
265
|
-
}
|
|
266
|
-
_cdr.markForCheck();
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
_handleOnDismissed(e) {
|
|
270
|
-
this._content = '';
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
AXValidationSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXValidationSummaryComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.AXToastService }, { token: AXFormComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
274
|
-
AXValidationSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: AXValidationSummaryComponent, selector: "ax-validation-summary", inputs: { displayMode: "displayMode", timeOut: "timeOut", autoHide: "autoHide" }, usesInheritance: true, ngImport: i0, template: `
|
|
275
|
-
<ax-alert color="danger" look="twotone" *ngIf="displayMode=='alert' && _content" [timeOut]="_timeOut" #a (onDismissed)="_handleOnDismissed($event)">
|
|
276
|
-
<ax-header>
|
|
277
|
-
<ax-icon></ax-icon>
|
|
278
|
-
<ax-title>{{_title}}</ax-title>
|
|
279
|
-
</ax-header>
|
|
280
|
-
<ax-content>
|
|
281
|
-
<div [innerHTML]="_content">
|
|
282
|
-
</div>
|
|
283
|
-
</ax-content>
|
|
284
|
-
<ax-suffix>
|
|
285
|
-
<ax-button text="Dismiss" (onClick)="a.dismiss()"></ax-button>
|
|
286
|
-
</ax-suffix>
|
|
287
|
-
</ax-alert>
|
|
288
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.AXDecoratorSuffixComponent, selector: "ax-suffix" }, { kind: "component", type: i3.AXDecoratorContentComponent, selector: "ax-content" }, { kind: "component", type: i3.AXDecoratorHeaderComponent, selector: "ax-header" }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorTitleComponent, selector: "ax-title", inputs: ["text"] }, { kind: "component", type: i4.AXAlertComponent, selector: "ax-alert", inputs: ["color", "look", "timeOut", "visible"], outputs: ["onDismissed"] }, { kind: "component", type: i5.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXValidationSummaryComponent, decorators: [{
|
|
290
|
-
type: Component,
|
|
291
|
-
args: [{
|
|
292
|
-
selector: 'ax-validation-summary',
|
|
293
|
-
template: `
|
|
294
|
-
<ax-alert color="danger" look="twotone" *ngIf="displayMode=='alert' && _content" [timeOut]="_timeOut" #a (onDismissed)="_handleOnDismissed($event)">
|
|
295
|
-
<ax-header>
|
|
296
|
-
<ax-icon></ax-icon>
|
|
297
|
-
<ax-title>{{_title}}</ax-title>
|
|
298
|
-
</ax-header>
|
|
299
|
-
<ax-content>
|
|
300
|
-
<div [innerHTML]="_content">
|
|
301
|
-
</div>
|
|
302
|
-
</ax-content>
|
|
303
|
-
<ax-suffix>
|
|
304
|
-
<ax-button text="Dismiss" (onClick)="a.dismiss()"></ax-button>
|
|
305
|
-
</ax-suffix>
|
|
306
|
-
</ax-alert>
|
|
307
|
-
`,
|
|
308
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
309
|
-
encapsulation: ViewEncapsulation.None
|
|
310
|
-
}]
|
|
311
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.AXToastService }, { type: AXFormComponent, decorators: [{
|
|
312
|
-
type: Optional
|
|
313
|
-
}, {
|
|
314
|
-
type: Inject,
|
|
315
|
-
args: [AXFormComponent]
|
|
316
|
-
}] }]; }, propDecorators: { displayMode: [{
|
|
317
|
-
type: Input
|
|
318
|
-
}], timeOut: [{
|
|
319
|
-
type: Input
|
|
320
|
-
}], autoHide: [{
|
|
321
|
-
type: Input
|
|
322
|
-
}] } });
|
|
323
|
-
|
|
324
|
-
class AXFormModule {
|
|
325
|
-
constructor() {
|
|
326
|
-
AXConfig.set({
|
|
327
|
-
form: {
|
|
328
|
-
validation: {
|
|
329
|
-
rules: {
|
|
330
|
-
email: {
|
|
331
|
-
rule: 'regex',
|
|
332
|
-
value: /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,
|
|
333
|
-
message: AXTranslator.get('validation.messages.email'),
|
|
334
|
-
},
|
|
335
|
-
phone: {
|
|
336
|
-
rule: 'regex',
|
|
337
|
-
value: /^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/,
|
|
338
|
-
message: AXTranslator.get('validation.messages.phone'),
|
|
339
|
-
},
|
|
340
|
-
},
|
|
341
|
-
},
|
|
342
|
-
},
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
AXFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
347
|
-
AXFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: AXFormModule, declarations: [AXFormFieldComponent,
|
|
348
|
-
AXFormComponent,
|
|
349
|
-
AXFormHintComponent,
|
|
350
|
-
AXValidationRuleComponent,
|
|
351
|
-
AXValidationSummaryComponent], imports: [CommonModule, AXDecoratorModule, AXAlertModule, AXButtonModule], exports: [AXFormFieldComponent,
|
|
352
|
-
AXFormComponent,
|
|
353
|
-
AXFormHintComponent,
|
|
354
|
-
AXValidationRuleComponent,
|
|
355
|
-
AXValidationSummaryComponent] });
|
|
356
|
-
AXFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXFormModule, imports: [CommonModule, AXDecoratorModule, AXAlertModule, AXButtonModule] });
|
|
357
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: AXFormModule, decorators: [{
|
|
358
|
-
type: NgModule,
|
|
359
|
-
args: [{
|
|
360
|
-
declarations: [
|
|
361
|
-
AXFormFieldComponent,
|
|
362
|
-
AXFormComponent,
|
|
363
|
-
AXFormHintComponent,
|
|
364
|
-
AXValidationRuleComponent,
|
|
365
|
-
AXValidationSummaryComponent,
|
|
366
|
-
],
|
|
367
|
-
imports: [CommonModule, AXDecoratorModule, AXAlertModule, AXButtonModule],
|
|
368
|
-
exports: [
|
|
369
|
-
AXFormFieldComponent,
|
|
370
|
-
AXFormComponent,
|
|
371
|
-
AXFormHintComponent,
|
|
372
|
-
AXValidationRuleComponent,
|
|
373
|
-
AXValidationSummaryComponent,
|
|
374
|
-
],
|
|
375
|
-
providers: [],
|
|
376
|
-
}]
|
|
377
|
-
}], ctorParameters: function () { return []; } });
|
|
378
|
-
|
|
379
|
-
/**
|
|
380
|
-
* Generated bundle index. Do not edit.
|
|
381
|
-
*/
|
|
382
|
-
|
|
383
|
-
export { AXFormComponent, AXFormFieldComponent, AXFormHintComponent, AXFormModule, AXFormValidationEvent, AXValidationRuleComponent, AXValidationSummaryComponent };
|
|
384
|
-
//# sourceMappingURL=acorex-components-form.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-components-form.mjs","sources":["../../../../projects/acorex/components/form/src/form-field.component.ts","../../../../projects/acorex/components/form/src/form-hint.component.ts","../../../../projects/acorex/components/form/src/form.component.ts","../../../../projects/acorex/components/form/src/validation-rule.widget.ts","../../../../projects/acorex/components/form/src/validation-summary.component.ts","../../../../projects/acorex/components/form/src/form-field.module.ts","../../../../projects/acorex/components/form/acorex-components-form.ts"],"sourcesContent":["import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport {\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n ElementRef,\r\n ViewEncapsulation,\r\n} from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-form-field',\r\n template: '<ng-content></ng-content>',\r\n host: { class: 'ax-form-field' },\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXFormFieldComponent extends AXBaseComponentMixin {\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n}\r\n","import { AXBaseComponentMixin } from '@acorex/components/mixin';\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, ViewEncapsulation } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ax-form-hint',\r\n template: ' <p class=\"ax-text-light-400 ax-text-xs ax-py-1 dark:ax-text-light-300\"><ng-content></ng-content></p>',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXFormHintComponent extends AXBaseComponentMixin {\r\n\r\n constructor(\r\n elementRef: ElementRef,\r\n cdr: ChangeDetectorRef\r\n ) {\r\n super(elementRef, cdr);\r\n }\r\n}","import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, Output, ViewEncapsulation } from '@angular/core';\r\nimport { AXEvent } from '@acorex/components/common';\r\nimport { AXFormValidationResult } from './validation.class';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\n\r\n/**\r\n* Contains native event\r\n* @category Events\r\n*/\r\nexport class AXFormValidationEvent extends AXEvent {\r\n result: AXFormValidationResult;\r\n}\r\n\r\n/**\r\n * The Button is a component which detects user interaction and triggers a corresponding event\r\n *\r\n * @category Components\r\n */\r\n@Component({\r\n selector: 'ax-form',\r\n template: '<ng-content></ng-content>',\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n})\r\nexport class AXFormComponent extends AXBaseComponentMixin {\r\n /**\r\n * @ignore\r\n */\r\n constructor(\r\n elementRef: ElementRef,\r\n private cdr: ChangeDetectorRef\r\n ) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n\r\n @Output()\r\n onValidate: EventEmitter<AXFormValidationEvent> = new EventEmitter<AXFormValidationEvent>();\r\n\r\n\r\n private _getComponenets() {\r\n return Array.from(this._getHostElement().querySelectorAll('[ax-form-input=\"true\"]'));\r\n }\r\n\r\n validate(...args: string[]): Promise<AXFormValidationResult> {\r\n const widgets = this._getComponenets();\r\n if (widgets.length === 0) {\r\n this._emitOnValidateEvent({ result: true });\r\n return Promise.resolve({ result: true });\r\n }\r\n //\r\n return new Promise<AXFormValidationResult>((resolve, reject) => {\r\n Promise.all(widgets.map((c) => (c as any).__axContext__)\r\n .filter(c => (args == null || args.length == 0) || args.includes(c.name))\r\n .map((c) => c.validate()))\r\n .then((rules: any) => {\r\n const failed = rules.filter((c: any) => !c.result);\r\n if (failed.length) {\r\n this._emitOnValidateEvent({\r\n result: false,\r\n items: failed\r\n });\r\n reject({\r\n result: false,\r\n items: failed\r\n });\r\n }\r\n else {\r\n this._emitOnValidateEvent({ result: true });\r\n resolve({ result: true });\r\n }\r\n });\r\n });\r\n }\r\n private _emitOnValidateEvent(e: AXFormValidationResult) {\r\n this.onValidate.emit({\r\n component: this,\r\n result: e,\r\n htmlElement: this._getHostElement(),\r\n })\r\n }\r\n\r\n clear() {\r\n const widgets = this._getComponenets();\r\n widgets.forEach(w => {\r\n (w as any).__axContext__.clear();\r\n });\r\n }\r\n}","import {\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n ElementRef,\r\n Input,\r\n ViewEncapsulation,\r\n} from '@angular/core';\r\nimport {\r\n AXValidationRuleResult,\r\n AXValidationRule,\r\n AXValidationRuleTypes,\r\n} from './validation.class';\r\nimport { AXConfig } from '@acorex/core/config';\r\nimport { AXTranslator } from '@acorex/core/translation';\r\nimport { AXBaseComponentMixin } from '@acorex/components/mixin';\r\n\r\n@Component({\r\n selector: 'ax-validation-rule',\r\n template: '',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None,\r\n})\r\nexport class AXValidationRuleComponent\r\n extends AXBaseComponentMixin\r\n implements AXValidationRule\r\n{\r\n @Input()\r\n rule: AXValidationRuleTypes = 'required';\r\n\r\n @Input()\r\n message: string;\r\n\r\n @Input()\r\n showMessage: boolean = true;\r\n\r\n @Input()\r\n value: any;\r\n\r\n @Input()\r\n enabled: boolean = true;\r\n\r\n constructor(elementRef: ElementRef, cdr: ChangeDetectorRef) {\r\n super(elementRef, cdr);\r\n }\r\n\r\n onInit() {\r\n (this._getHostElement() as any).validate = this.validate.bind(this);\r\n }\r\n\r\n validate(value: any): Promise<AXValidationRuleResult> {\r\n if (this.enabled === false) {\r\n return Promise.resolve({ result: true });\r\n }\r\n if (this.rule == 'custom') {\r\n const regRule = AXConfig.get(`form.validation.rules.${this.value}`);\r\n if (regRule) {\r\n return this._internalValidate(\r\n regRule.rule,\r\n value,\r\n this.message || regRule.message,\r\n regRule.value\r\n );\r\n }\r\n }\r\n return this._internalValidate(this.rule, value, this.message, this.value);\r\n }\r\n\r\n private _internalValidate(\r\n type: string,\r\n value?: any,\r\n message?: string,\r\n ruleValue?: any\r\n ): Promise<AXValidationRuleResult> {\r\n return new Promise<AXValidationRuleResult>((resolve) => {\r\n switch (type) {\r\n case 'required':\r\n resolve({\r\n message: this.showMessage\r\n ? message || AXTranslator.get('validation.messages.required')\r\n : '',\r\n result:\r\n value != null &&\r\n value != '' &&\r\n (!Array.isArray(value) ||\r\n (Array.isArray(value) && value.length > 0)),\r\n });\r\n break;\r\n case 'regex':\r\n const ex = new RegExp(ruleValue);\r\n resolve({\r\n message: this.showMessage\r\n ? message || AXTranslator.get('validation.messages.regex')\r\n : '',\r\n result: ex.test(value),\r\n });\r\n break;\r\n case 'callback':\r\n if (typeof ruleValue === 'function') {\r\n const res: any = {};\r\n res.message = this.showMessage ? message : null;\r\n const val = ruleValue({ value, message });\r\n if (val instanceof Promise) {\r\n val\r\n .then((c) => {\r\n res.result = c;\r\n })\r\n .catch((c) => {\r\n res.result = false;\r\n })\r\n .finally(() => {\r\n resolve(res);\r\n });\r\n } else {\r\n res.result = val;\r\n resolve(res);\r\n }\r\n } else {\r\n resolve({\r\n message: AXTranslator.get('validation.messages.invalid-rull-fn'),\r\n result: false,\r\n });\r\n }\r\n break;\r\n default:\r\n resolve({\r\n message: AXTranslator.get('validation.messages.invalid-rull-name'),\r\n result: false,\r\n });\r\n }\r\n });\r\n }\r\n}\r\n","import { AXTranslator } from \"@acorex/core/translation\";\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, Input, Optional, ViewEncapsulation } from \"@angular/core\";\r\nimport { AXEvent } from \"@acorex/components/common\";\r\nimport { AXToastService } from \"@acorex/components/toast\";\r\nimport { AXFormComponent } from \"./form.component\";\r\nimport { AXBaseComponentMixin } from \"@acorex/components/mixin\";\r\n\r\n\r\nexport type AXValidationSummaryDisplayMode = 'toast' | 'alert'\r\n\r\n@Component({\r\n selector: 'ax-validation-summary',\r\n template: `\r\n <ax-alert color=\"danger\" look=\"twotone\" *ngIf=\"displayMode=='alert' && _content\" [timeOut]=\"_timeOut\" #a (onDismissed)=\"_handleOnDismissed($event)\">\r\n <ax-header>\r\n <ax-icon></ax-icon>\r\n <ax-title>{{_title}}</ax-title>\r\n </ax-header>\r\n <ax-content>\r\n <div [innerHTML]=\"_content\">\r\n </div>\r\n </ax-content>\r\n <ax-suffix>\r\n <ax-button text=\"Dismiss\" (onClick)=\"a.dismiss()\"></ax-button>\r\n </ax-suffix>\r\n </ax-alert>\r\n `,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n encapsulation: ViewEncapsulation.None\r\n})\r\nexport class AXValidationSummaryComponent extends AXBaseComponentMixin {\r\n\r\n _content?: string = '';\r\n _title: string = AXTranslator.get('validation.messages.title');\r\n\r\n @Input()\r\n displayMode: AXValidationSummaryDisplayMode = 'toast';\r\n\r\n @Input()\r\n timeOut?: number;\r\n\r\n @Input()\r\n autoHide: boolean = false;\r\n\r\n _timeOut: number;\r\n\r\n constructor(\r\n _elementRef: ElementRef,\r\n _cdr: ChangeDetectorRef,\r\n private _tosatService: AXToastService,\r\n @Optional()\r\n @Inject(AXFormComponent)\r\n private _parent: AXFormComponent\r\n ) {\r\n super(_elementRef, _cdr);\r\n //\r\n _parent.onValidate.subscribe((c:any) => {\r\n if (!c.result.result) {\r\n this._content = `<ul>${c.result.items.map(c => `<li>${c.message}</li>`).join('')}</ul>`;\r\n this._timeOut = this.autoHide ? (this.timeOut ?? Math.max(c.result.items.length * 1500, 2000)) : 0;\r\n //\r\n if (this.displayMode == 'toast') {\r\n this._tosatService.show({\r\n color: 'danger',\r\n closeable: true,\r\n timeOut: this._timeOut,\r\n content: this._content,\r\n title: AXTranslator.get('validation.messages.title')\r\n });\r\n }\r\n }\r\n else {\r\n this._content = '';\r\n }\r\n _cdr.markForCheck();\r\n });\r\n }\r\n\r\n _handleOnDismissed(e: AXEvent) {\r\n this._content = '';\r\n }\r\n}","import { AXAlertModule } from '@acorex/components/alert';\r\nimport { AXButtonModule } from '@acorex/components/button';\r\nimport { AXDecoratorModule } from '@acorex/components/decorators';\r\nimport { AXConfig } from '@acorex/core/config';\r\nimport { AXTranslator } from '@acorex/core/translation';\r\nimport { CommonModule } from '@angular/common';\r\nimport { NgModule } from '@angular/core';\r\n\r\nimport { AXFormFieldComponent } from './form-field.component';\r\nimport { AXFormHintComponent } from './form-hint.component';\r\nimport { AXFormComponent } from './form.component';\r\nimport { AXValidationRuleComponent } from './validation-rule.widget';\r\nimport { AXValidationSummaryComponent } from './validation-summary.component';\r\n\r\n@NgModule({\r\n declarations: [\r\n AXFormFieldComponent,\r\n AXFormComponent,\r\n AXFormHintComponent,\r\n AXValidationRuleComponent,\r\n AXValidationSummaryComponent,\r\n ],\r\n imports: [CommonModule, AXDecoratorModule, AXAlertModule, AXButtonModule],\r\n exports: [\r\n AXFormFieldComponent,\r\n AXFormComponent,\r\n AXFormHintComponent,\r\n AXValidationRuleComponent,\r\n AXValidationSummaryComponent,\r\n ],\r\n providers: [],\r\n})\r\nexport class AXFormModule {\r\n constructor() {\r\n AXConfig.set({\r\n form: {\r\n validation: {\r\n rules: {\r\n email: {\r\n rule: 'regex',\r\n value:\r\n /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/,\r\n message: AXTranslator.get('validation.messages.email'),\r\n },\r\n phone: {\r\n rule: 'regex',\r\n value: /^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\\s\\./0-9]*$/,\r\n message: AXTranslator.get('validation.messages.phone'),\r\n },\r\n },\r\n },\r\n },\r\n });\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAgBM,MAAO,oBAAqB,SAAQ,oBAAoB,CAAA;IAC5D,WAAY,CAAA,UAAsB,EAAE,GAAsB,EAAA;AACxD,QAAA,KAAK,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC;KACxB;;iHAHU,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,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