@acorex/components 5.1.2 → 5.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -23
- package/karma.conf.js +32 -0
- package/ng-package.json +10 -0
- package/package.json +13 -35
- package/src/lib/accordion/accordion.component.ts +43 -0
- package/src/lib/accordion/accordion.module.ts +11 -0
- package/src/lib/accordion/api.ts +2 -0
- package/src/lib/base/base-page.class.ts +116 -0
- package/src/lib/base/components.class.ts +9 -0
- package/src/lib/base/element.class.ts +344 -0
- package/src/lib/base/events.class.ts +32 -0
- package/src/lib/button/button.component.html +17 -0
- package/src/lib/button/button.component.ts +72 -0
- package/src/lib/button/button.module.ts +14 -0
- package/src/lib/calendar/calendar-box/calendar-box.component.html +68 -0
- package/src/lib/calendar/calendar-box/calendar-box.component.ts +461 -0
- package/src/lib/calendar/calendar-box/calendar-box.module.ts +16 -0
- package/src/lib/calendar/scheduler/scheduler-views.property.ts +38 -0
- package/src/lib/calendar/scheduler/scheduler.class.ts +50 -0
- package/src/lib/calendar/scheduler/scheduler.component.html +9 -0
- package/src/lib/calendar/scheduler/scheduler.component.scss +181 -0
- package/src/lib/calendar/scheduler/scheduler.component.ts +249 -0
- package/src/lib/calendar/scheduler/scheduler.module.ts +45 -0
- package/src/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.ts +133 -0
- package/src/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.ts +33 -0
- package/src/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.html +43 -0
- package/src/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.scss +66 -0
- package/src/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.ts +50 -0
- package/src/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.html +45 -0
- package/src/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.scss +19 -0
- package/src/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.ts +103 -0
- package/src/lib/calendar/scheduler/views/month/scheduler-month-view.component.html +39 -0
- package/src/lib/calendar/scheduler/views/month/scheduler-month-view.component.scss +55 -0
- package/src/lib/calendar/scheduler/views/month/scheduler-month-view.component.ts +233 -0
- package/src/lib/calendar/scheduler/views/scheduler-view.component.ts +124 -0
- package/src/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.html +50 -0
- package/src/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.scss +4 -0
- package/src/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.ts +92 -0
- package/src/lib/checkbox/checkbox.component.html +22 -0
- package/src/lib/checkbox/checkbox.component.ts +107 -0
- package/src/lib/checkbox/checkbox.module.ts +11 -0
- package/src/lib/color-picker/color-box/color-box.component.html +37 -0
- package/src/lib/color-picker/color-box/color-box.component.scss +60 -0
- package/src/lib/color-picker/color-box/color-box.component.ts +438 -0
- package/src/lib/color-picker/color-picker.component.html +31 -0
- package/src/lib/color-picker/color-picker.component.ts +87 -0
- package/src/lib/color-picker/color-picker.module.ts +16 -0
- package/src/lib/context-menu/context-menu.component.html +42 -0
- package/src/lib/context-menu/context-menu.component.ts +78 -0
- package/src/lib/context-menu/context-menu.directive.ts +159 -0
- package/src/lib/context-menu/context-menu.module.ts +15 -0
- package/src/lib/data-filter/columns/filter-column-date.component.ts +123 -0
- package/src/lib/data-filter/columns/filter-column-number.component.ts +100 -0
- package/src/lib/data-filter/columns/filter-column-selection.component.ts +69 -0
- package/src/lib/data-filter/columns/filter-column-string.component.ts +100 -0
- package/src/lib/data-filter/filter-panel/filter-panel.component.html +120 -0
- package/src/lib/data-filter/filter-panel/filter-panel.component.scss +143 -0
- package/src/lib/data-filter/filter-panel/filter-panel.component.ts +266 -0
- package/src/lib/data-filter/filter.class.ts +73 -0
- package/src/lib/data-filter/filter.module.ts +52 -0
- package/src/lib/data-filter/toolbar/filter-toolbar.component.html +5 -0
- package/src/lib/data-filter/toolbar/filter-toolbar.component.scss +17 -0
- package/src/lib/data-filter/toolbar/filter-toolbar.component.ts +179 -0
- package/src/lib/data-list/core/data-list.component.ts +62 -0
- package/src/lib/data-list/list/list.component.html +32 -0
- package/src/lib/data-list/list/list.component.scss +64 -0
- package/src/lib/data-list/list/list.component.ts +149 -0
- package/src/lib/data-list/list/list.module.ts +14 -0
- package/src/lib/data-list/list/toolbar-list-view.component.ts +63 -0
- package/src/lib/data-source/datasource.component.ts +50 -0
- package/src/lib/data-source/datasource.module.ts +11 -0
- package/src/lib/data-source/read-param.ts +50 -0
- package/src/lib/date-picker/date-picker.component.html +30 -0
- package/src/lib/date-picker/date-picker.component.scss +5 -0
- package/src/lib/date-picker/date-picker.component.ts +720 -0
- package/src/lib/date-picker/date-picker.module.ts +17 -0
- package/src/lib/dialog/dialog.component.html +5 -0
- package/src/lib/dialog/dialog.component.scss +32 -0
- package/src/lib/dialog/dialog.component.ts +32 -0
- package/src/lib/dialog/dialog.module.ts +13 -0
- package/src/lib/dialog/dialog.service.ts +178 -0
- package/src/lib/drawer/content.component.ts +18 -0
- package/src/lib/drawer/drawer-container.component.ts +37 -0
- package/src/lib/drawer/drawer.component.ts +151 -0
- package/src/lib/drawer/drawer.module.ts +16 -0
- package/src/lib/dropdown/dropdown.component.html +26 -0
- package/src/lib/dropdown/dropdown.component.scss +8 -0
- package/src/lib/dropdown/dropdown.component.ts +197 -0
- package/src/lib/dropdown/dropdown.module.ts +19 -0
- package/src/lib/fieldset/fieldset.component.html +6 -0
- package/src/lib/fieldset/fieldset.component.ts +49 -0
- package/src/lib/fieldset/fieldset.module.ts +11 -0
- package/src/lib/form-group/form-group.component.html +15 -0
- package/src/lib/form-group/form-group.component.ts +39 -0
- package/src/lib/form-group/form-group.module.ts +14 -0
- package/src/lib/label/label.component.html +5 -0
- package/src/lib/label/label.component.ts +18 -0
- package/src/lib/label/label.module.ts +14 -0
- package/src/lib/loading/loading-indicator.component.html +27 -0
- package/src/lib/loading/loading-indicator.component.ts +16 -0
- package/src/lib/loading/loading-panel.component.ts +37 -0
- package/src/lib/loading/loading.module.ts +13 -0
- package/src/lib/loading/loading.service.ts +44 -0
- package/src/lib/menu/menu-item.component.ts +41 -0
- package/src/lib/menu/menu.component.html +74 -0
- package/src/lib/menu/menu.component.ts +111 -0
- package/src/lib/menu/menu.module.ts +13 -0
- package/src/lib/menu/menu2.component.scss +59 -0
- package/src/lib/menu/menu2.component.ts +98 -0
- package/src/lib/number-box/number-box.component.html +32 -0
- package/src/lib/number-box/number-box.component.ts +641 -0
- package/src/lib/number-box/number-box.module.ts +13 -0
- package/src/lib/page/content.component.ts +18 -0
- package/src/lib/page/footer.component.ts +13 -0
- package/src/lib/page/page.component.ts +43 -0
- package/src/lib/page/page.module.ts +14 -0
- package/src/lib/panel-box/panel-box.component.html +19 -0
- package/src/lib/panel-box/panel-box.component.scss +25 -0
- package/src/lib/panel-box/panel-box.component.ts +87 -0
- package/src/lib/panel-box/panel-box.module.ts +10 -0
- package/src/lib/password-box/password-box.component.html +22 -0
- package/src/lib/password-box/password-box.component.ts +30 -0
- package/src/lib/password-box/password-box.module.ts +16 -0
- package/src/lib/popover/custom-cdk-overlay.service.ts +82 -0
- package/src/lib/popover/overlay.service.ts +110 -0
- package/src/lib/popover/popover.component.html +5 -0
- package/src/lib/popover/popover.component.scss +9 -0
- package/src/lib/popover/popover.component.ts +117 -0
- package/src/lib/popover/popover.module.ts +11 -0
- package/src/lib/popup/popup.component.html +33 -0
- package/src/lib/popup/popup.component.scss +173 -0
- package/src/lib/popup/popup.component.ts +182 -0
- package/src/lib/popup/popup.module.ts +16 -0
- package/src/lib/popup/popup.service.ts +103 -0
- package/src/lib/progress-bar/progress-bar.component.html +5 -0
- package/src/lib/progress-bar/progress-bar.component.ts +10 -0
- package/src/lib/progress-bar/progress-bar.module.ts +11 -0
- package/src/lib/property-editor/editors/check-editor/check-editor.ts +44 -0
- package/src/lib/property-editor/editors/check-editor/check.module.ts +14 -0
- package/src/lib/property-editor/editors/color-editor/color.editor.ts +30 -0
- package/src/lib/property-editor/editors/color-editor/color.module.ts +20 -0
- package/src/lib/property-editor/editors/column-editor/column.editor.html +75 -0
- package/src/lib/property-editor/editors/column-editor/column.editor.scss +193 -0
- package/src/lib/property-editor/editors/column-editor/column.editor.ts +124 -0
- package/src/lib/property-editor/editors/column-editor/column.module.ts +28 -0
- package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.html +80 -0
- package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.scss +71 -0
- package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.ts +232 -0
- package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.module.ts +52 -0
- package/src/lib/property-editor/editors/date-editor/date.editor.ts +49 -0
- package/src/lib/property-editor/editors/date-editor/date.module.ts +20 -0
- package/src/lib/property-editor/editors/number-editor/number.editor.ts +46 -0
- package/src/lib/property-editor/editors/number-editor/number.module.ts +20 -0
- package/src/lib/property-editor/editors/range-editor/range.editor.html +67 -0
- package/src/lib/property-editor/editors/range-editor/range.editor.scss +68 -0
- package/src/lib/property-editor/editors/range-editor/range.editor.ts +153 -0
- package/src/lib/property-editor/editors/range-editor/range.module.ts +37 -0
- package/src/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.html +8 -0
- package/src/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.ts +70 -0
- package/src/lib/property-editor/editors/selectbox-editor/selectbox.editor.html +8 -0
- package/src/lib/property-editor/editors/selectbox-editor/selectbox.editor.ts +77 -0
- package/src/lib/property-editor/editors/selectbox-editor/selectbox.module.ts +18 -0
- package/src/lib/property-editor/editors/selection-editor/selection-editor.ts +52 -0
- package/src/lib/property-editor/editors/selection-editor/selection.module.ts +14 -0
- package/src/lib/property-editor/editors/switch-editor/number.editor.ts +26 -0
- package/src/lib/property-editor/editors/switch-editor/number.module.ts +21 -0
- package/src/lib/property-editor/editors/text-editor/text.editor.html +5 -0
- package/src/lib/property-editor/editors/text-editor/text.editor.ts +31 -0
- package/src/lib/property-editor/editors/text-editor/text.module.ts +20 -0
- package/src/lib/property-editor/editors/textarea-editor/textarea.editor.html +9 -0
- package/src/lib/property-editor/editors/textarea-editor/textarea.editor.ts +37 -0
- package/src/lib/property-editor/editors/textarea-editor/textarea.module.ts +20 -0
- package/src/lib/property-editor/editors/time-editor/time.editor.ts +38 -0
- package/src/lib/property-editor/editors/time-editor/time.module.ts +20 -0
- package/src/lib/property-editor/property-editor-renderer.directive.ts +165 -0
- package/src/lib/property-editor/property-editor.class.ts +178 -0
- package/src/lib/property-editor/property-editor.module.ts +115 -0
- package/src/lib/query-builder/query-builder-group.component.html +68 -0
- package/src/lib/query-builder/query-builder-group.component.ts +122 -0
- package/src/lib/query-builder/query-builder-popup/query-builder-popup.component.html +82 -0
- package/src/lib/query-builder/query-builder-popup/query-builder-popup.component.ts +178 -0
- package/src/lib/query-builder/query-builder-rule.component.html +135 -0
- package/src/lib/query-builder/query-builder-rule.component.ts +390 -0
- package/src/lib/query-builder/query-builder.class.ts +53 -0
- package/src/lib/query-builder/query-builder.component.html +3 -0
- package/src/lib/query-builder/query-builder.component.scss +286 -0
- package/src/lib/query-builder/query-builder.component.ts +220 -0
- package/src/lib/query-builder/query-builder.module.ts +44 -0
- package/src/lib/query-builder/query-builder.service.ts +188 -0
- package/src/lib/search-bar/search-bar.component.html +31 -0
- package/src/lib/search-bar/search-bar.component.scss +24 -0
- package/src/lib/search-bar/search-bar.component.ts +250 -0
- package/src/lib/search-bar/search-bar.module.ts +33 -0
- package/src/lib/searchbox/searchbox.component.html +25 -0
- package/src/lib/searchbox/searchbox.component.ts +85 -0
- package/src/lib/searchbox/searchbox.module.ts +17 -0
- package/src/lib/selectbox/selectbox.component.html +100 -0
- package/src/lib/selectbox/selectbox.component.ts +984 -0
- package/src/lib/selectbox/selectbox.module.ts +31 -0
- package/src/lib/selectbox/selectbox2.component.html +78 -0
- package/src/lib/selectbox/selectbox2.component.ts +603 -0
- package/src/lib/selection-list/selection-list.component.html +21 -0
- package/src/lib/selection-list/selection-list.component.ts +115 -0
- package/src/lib/selection-list/selection-list.module.ts +13 -0
- package/src/lib/switch/switch.component.html +4 -0
- package/src/lib/switch/switch.component.scss +65 -0
- package/src/lib/switch/switch.component.ts +57 -0
- package/src/lib/switch/switch.module.ts +14 -0
- package/src/lib/tab-page/tab-page-Renderer.component.ts +70 -0
- package/src/lib/tab-page/tab-page-host.component.ts +110 -0
- package/src/lib/tab-page/tab-page.module.ts +13 -0
- package/src/lib/tab-page/tab-page.service.ts +176 -0
- package/src/lib/tab-strip/tab-strip.component.html +6 -0
- package/src/lib/tab-strip/tab-strip.component.ts +47 -0
- package/src/lib/tab-strip/tab-strip.module.ts +11 -0
- package/src/lib/tab-view/dynamic-tabs.directive.ts +17 -0
- package/src/lib/tab-view/tab-view.component.html +33 -0
- package/src/lib/tab-view/tab-view.component.scss +0 -0
- package/src/lib/tab-view/tab-view.component.ts +129 -0
- package/src/lib/tab-view/tab-view.module.ts +12 -0
- package/src/lib/tab-view/tab.component.html +8 -0
- package/src/lib/tab-view/tab.component.ts +15 -0
- package/src/lib/textarea/textarea.component.html +13 -0
- package/src/lib/textarea/textarea.component.ts +24 -0
- package/src/lib/textarea/textarea.module.ts +14 -0
- package/src/lib/textbox/textbox.component.html +22 -0
- package/src/lib/textbox/textbox.component.ts +38 -0
- package/src/lib/textbox/textbox.module.ts +16 -0
- package/src/lib/time-picker/time-picker.component.html +21 -0
- package/src/lib/time-picker/time-picker.component.ts +1003 -0
- package/src/lib/time-picker/time-picker.module.ts +15 -0
- package/src/lib/toast/toast-message/toast-message.component.html +17 -0
- package/src/lib/toast/toast-message/toast-message.component.scss +75 -0
- package/src/lib/toast/toast-message/toast-message.component.ts +64 -0
- package/src/lib/toast/toast-wrapper/toast-wrapper.component.scss +15 -0
- package/src/lib/toast/toast-wrapper/toast-wrapper.component.ts +13 -0
- package/src/lib/toast/toast.module.ts +12 -0
- package/src/lib/toast/toast.service.ts +64 -0
- package/src/lib/toolbar/group-button/toolbar-group-button.component.ts +54 -0
- package/src/lib/toolbar/menu/toolbar-menu.component.html +4 -0
- package/src/lib/toolbar/menu/toolbar-menu.component.ts +81 -0
- package/src/lib/toolbar/search/toolbar-search.component.html +4 -0
- package/src/lib/toolbar/search/toolbar-search.component.scss +24 -0
- package/src/lib/toolbar/search/toolbar-search.component.ts +61 -0
- package/src/lib/toolbar/title/toolbar-title.component.ts +35 -0
- package/src/lib/toolbar/toolbar-item.ts +4 -0
- package/src/lib/toolbar/toolbar.component.html +4 -0
- package/src/lib/toolbar/toolbar.component.scss +9 -0
- package/src/lib/toolbar/toolbar.component.ts +16 -0
- package/src/lib/toolbar/toolbar.module.ts +25 -0
- package/src/lib/tooltip/tooltip.directive.ts +101 -0
- package/src/lib/tooltip/tooltip.module.ts +11 -0
- package/src/lib/tree-side-menu/tree-side-menu.component.html +43 -0
- package/src/lib/tree-side-menu/tree-side-menu.component.ts +698 -0
- package/src/lib/tree-side-menu/tree-side-menu.module.ts +19 -0
- package/src/lib/tree-view/tree-view.component.html +45 -0
- package/src/lib/tree-view/tree-view.component.ts +781 -0
- package/src/lib/tree-view/tree-view.module.ts +16 -0
- package/src/lib/upload-file/upload-file.component.html +16 -0
- package/src/lib/upload-file/upload-file.component.ts +189 -0
- package/src/lib/upload-file/upload-file.events.ts +11 -0
- package/src/lib/upload-file/upload-file.module.ts +16 -0
- package/src/lib/validation/validation-form.component.ts +78 -0
- package/src/lib/validation/validation-rule.widget.ts +112 -0
- package/src/lib/validation/validation.class.ts +22 -0
- package/src/lib/validation/validation.component.ts +92 -0
- package/src/lib/validation/validation.module.ts +28 -0
- package/src/public-api.ts +214 -0
- package/src/test.ts +28 -0
- package/tsconfig.lib.json +25 -0
- package/tsconfig.lib.prod.json +6 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/acorex-components.d.ts +0 -5
- package/esm2020/acorex-components.mjs +0 -5
- package/esm2020/lib/action-sheet/action-sheet-item.component.mjs +0 -37
- package/esm2020/lib/action-sheet/action-sheet.component.mjs +0 -87
- package/esm2020/lib/action-sheet/action-sheet.module.mjs +0 -22
- package/esm2020/lib/action-sheet/index.mjs +0 -4
- package/esm2020/lib/alert/alert-button.component.mjs +0 -51
- package/esm2020/lib/alert/alert-content.component.mjs +0 -21
- package/esm2020/lib/alert/alert-footer.component.mjs +0 -27
- package/esm2020/lib/alert/alert-suffix.component.mjs +0 -27
- package/esm2020/lib/alert/alert-title.component.mjs +0 -23
- package/esm2020/lib/alert/alert.component.mjs +0 -123
- package/esm2020/lib/alert/alert.module.mjs +0 -44
- package/esm2020/lib/alert/index.mjs +0 -8
- package/esm2020/lib/avatar/avatar-group.component.mjs +0 -17
- package/esm2020/lib/avatar/avatar.component.mjs +0 -42
- package/esm2020/lib/avatar/avatar.module.mjs +0 -22
- package/esm2020/lib/avatar/index.mjs +0 -4
- package/esm2020/lib/badge/badge.component.mjs +0 -28
- package/esm2020/lib/badge/badge.module.mjs +0 -21
- package/esm2020/lib/badge/index.mjs +0 -3
- package/esm2020/lib/base/common.module.mjs +0 -19
- package/esm2020/lib/base/custom-cdk-overlay.service.mjs +0 -47
- package/esm2020/lib/base/drawing.class.mjs +0 -11
- package/esm2020/lib/base/events.class.mjs +0 -58
- package/esm2020/lib/base/index.mjs +0 -8
- package/esm2020/lib/base/infinite-scroll.directive.mjs +0 -63
- package/esm2020/lib/base/mixin/base-components.class.mjs +0 -100
- package/esm2020/lib/base/mixin/base-menu-mixin.class.mjs +0 -135
- package/esm2020/lib/base/mixin/button-mixin.class.mjs +0 -91
- package/esm2020/lib/base/mixin/clickable-mixin.class.mjs +0 -24
- package/esm2020/lib/base/mixin/color-look-mixing.class.mjs +0 -48
- package/esm2020/lib/base/mixin/constratctor.mjs +0 -2
- package/esm2020/lib/base/mixin/datalist-component.class.mjs +0 -145
- package/esm2020/lib/base/mixin/datalist.class.mjs +0 -3
- package/esm2020/lib/base/mixin/dropdown-mixin.class.mjs +0 -102
- package/esm2020/lib/base/mixin/index.mjs +0 -3
- package/esm2020/lib/base/mixin/interactive-mixin.class.mjs +0 -83
- package/esm2020/lib/base/mixin/loading-mixin.class.mjs +0 -18
- package/esm2020/lib/base/mixin/mixin.class.mjs +0 -27
- package/esm2020/lib/base/mixin/selection-component.class.mjs +0 -181
- package/esm2020/lib/base/mixin/sizable-mixin.class.mjs +0 -18
- package/esm2020/lib/base/mixin/textbox-mixin.class.mjs +0 -34
- package/esm2020/lib/base/mixin/value-mixin.class.mjs +0 -209
- package/esm2020/lib/base/overlay.service.mjs +0 -91
- package/esm2020/lib/base/responsive.directive.mjs +0 -34
- package/esm2020/lib/base/styles.class.mjs +0 -4
- package/esm2020/lib/breadcrumbs/breadcrumbs-item.class.mjs +0 -2
- package/esm2020/lib/breadcrumbs/breadcrumbs-item.component.mjs +0 -20
- package/esm2020/lib/breadcrumbs/breadcrumbs.component.mjs +0 -18
- package/esm2020/lib/breadcrumbs/breadcrumbs.module.mjs +0 -20
- package/esm2020/lib/breadcrumbs/index.mjs +0 -5
- package/esm2020/lib/button/button-group.component.mjs +0 -124
- package/esm2020/lib/button/button-item.class.mjs +0 -2
- package/esm2020/lib/button/button-item.component.mjs +0 -80
- package/esm2020/lib/button/button.component.mjs +0 -63
- package/esm2020/lib/button/button.module.mjs +0 -33
- package/esm2020/lib/button/index.mjs +0 -6
- package/esm2020/lib/calendar/calendar.class.mjs +0 -126
- package/esm2020/lib/calendar/calendar.component.mjs +0 -279
- package/esm2020/lib/calendar/calendar.module.mjs +0 -25
- package/esm2020/lib/calendar/index.mjs +0 -3
- package/esm2020/lib/carousel/carousel-arrows.component.mjs +0 -54
- package/esm2020/lib/carousel/carousel-item.component.mjs +0 -21
- package/esm2020/lib/carousel/carousel-pager.component.mjs +0 -74
- package/esm2020/lib/carousel/carousel-splidejs.class.mjs +0 -88
- package/esm2020/lib/carousel/carousel.class.mjs +0 -10
- package/esm2020/lib/carousel/carousel.component.mjs +0 -389
- package/esm2020/lib/carousel/carousel.module.mjs +0 -24
- package/esm2020/lib/carousel/index.mjs +0 -7
- package/esm2020/lib/checkbox/checkbox.component.mjs +0 -41
- package/esm2020/lib/checkbox/checkbox.module.mjs +0 -21
- package/esm2020/lib/checkbox/index.mjs +0 -3
- package/esm2020/lib/collapse/collapse-group.component.mjs +0 -46
- package/esm2020/lib/collapse/collapse.component.mjs +0 -43
- package/esm2020/lib/collapse/collapse.module.mjs +0 -20
- package/esm2020/lib/collapse/index.mjs +0 -4
- package/esm2020/lib/datalist/datalist.component.mjs +0 -75
- package/esm2020/lib/datalist/datalist.module.mjs +0 -24
- package/esm2020/lib/datalist/index.mjs +0 -3
- package/esm2020/lib/datepicker/datepicker.component.mjs +0 -178
- package/esm2020/lib/datepicker/datepicker.module.mjs +0 -47
- package/esm2020/lib/datepicker/index.mjs +0 -3
- package/esm2020/lib/decorators/addon.component.mjs +0 -20
- package/esm2020/lib/decorators/content.component.mjs +0 -26
- package/esm2020/lib/decorators/decorators.module.mjs +0 -25
- package/esm2020/lib/decorators/header.component.mjs +0 -26
- package/esm2020/lib/decorators/index.mjs +0 -8
- package/esm2020/lib/decorators/prefix.component.mjs +0 -26
- package/esm2020/lib/decorators/suffix.component.mjs +0 -26
- package/esm2020/lib/dialog/dialog.class.mjs +0 -2
- package/esm2020/lib/dialog/dialog.component.mjs +0 -40
- package/esm2020/lib/dialog/dialog.module.mjs +0 -26
- package/esm2020/lib/dialog/dialog.service.mjs +0 -144
- package/esm2020/lib/dialog/index.mjs +0 -5
- package/esm2020/lib/drawer/drawer-container.component.mjs +0 -83
- package/esm2020/lib/drawer/drawer-content.component.mjs +0 -27
- package/esm2020/lib/drawer/drawer.component.mjs +0 -172
- package/esm2020/lib/drawer/drawer.module.mjs +0 -23
- package/esm2020/lib/drawer/index.mjs +0 -5
- package/esm2020/lib/dropdown/dropdown-panel.component.mjs +0 -80
- package/esm2020/lib/dropdown/dropdown.module.mjs +0 -24
- package/esm2020/lib/dropdown/index.mjs +0 -3
- package/esm2020/lib/form/form-field.component.mjs +0 -20
- package/esm2020/lib/form/form-field.module.mjs +0 -21
- package/esm2020/lib/form/form-hint.component.mjs +0 -20
- package/esm2020/lib/form/form.component.mjs +0 -59
- package/esm2020/lib/form/index.mjs +0 -5
- package/esm2020/lib/icon/icon.component.mjs +0 -28
- package/esm2020/lib/icon/icon.module.mjs +0 -21
- package/esm2020/lib/icon/index.mjs +0 -3
- package/esm2020/lib/input-mask/index.mjs +0 -3
- package/esm2020/lib/input-mask/input-mask.component.mjs +0 -56
- package/esm2020/lib/input-mask/input-mask.module.mjs +0 -24
- package/esm2020/lib/label/index.mjs +0 -3
- package/esm2020/lib/label/label.component.mjs +0 -25
- package/esm2020/lib/label/label.module.mjs +0 -21
- package/esm2020/lib/loading/index.mjs +0 -6
- package/esm2020/lib/loading/loading-spinner.component.mjs +0 -35
- package/esm2020/lib/loading/loading.component.mjs +0 -62
- package/esm2020/lib/loading/loading.directive.mjs +0 -67
- package/esm2020/lib/loading/loading.module.mjs +0 -35
- package/esm2020/lib/loading/loading.service.mjs +0 -154
- package/esm2020/lib/menu/index.mjs +0 -3
- package/esm2020/lib/menu/menu.component.mjs +0 -76
- package/esm2020/lib/menu/menu.module.mjs +0 -24
- package/esm2020/lib/number-box/index.mjs +0 -3
- package/esm2020/lib/number-box/number-box.component.mjs +0 -221
- package/esm2020/lib/number-box/number-box.module.mjs +0 -38
- package/esm2020/lib/page/base-page.class.mjs +0 -86
- package/esm2020/lib/page/index.mjs +0 -6
- package/esm2020/lib/page/page-footer.component.mjs +0 -28
- package/esm2020/lib/page/page-header.component.mjs +0 -28
- package/esm2020/lib/page/page.component.mjs +0 -58
- package/esm2020/lib/page/page.module.mjs +0 -19
- package/esm2020/lib/password-box/index.mjs +0 -3
- package/esm2020/lib/password-box/password-box.component.mjs +0 -59
- package/esm2020/lib/password-box/password-box.module.mjs +0 -35
- package/esm2020/lib/picker/index.mjs +0 -3
- package/esm2020/lib/picker/picker.component.mjs +0 -24
- package/esm2020/lib/picker/picker.module.mjs +0 -20
- package/esm2020/lib/popover/index.mjs +0 -3
- package/esm2020/lib/popover/popover.component.mjs +0 -231
- package/esm2020/lib/popover/popover.module.mjs +0 -19
- package/esm2020/lib/popup/index.mjs +0 -4
- package/esm2020/lib/popup/popup.component.mjs +0 -122
- package/esm2020/lib/popup/popup.module.mjs +0 -25
- package/esm2020/lib/popup/popup.service.mjs +0 -95
- package/esm2020/lib/progress-bar/index.mjs +0 -3
- package/esm2020/lib/progress-bar/progress-bar.component.mjs +0 -34
- package/esm2020/lib/progress-bar/progress-bar.module.mjs +0 -19
- package/esm2020/lib/radio/index.mjs +0 -3
- package/esm2020/lib/radio/radio.component.mjs +0 -34
- package/esm2020/lib/radio/radio.module.mjs +0 -22
- package/esm2020/lib/range-slider/index.mjs +0 -3
- package/esm2020/lib/range-slider/range-slider.component.mjs +0 -16
- package/esm2020/lib/range-slider/range-slider.module.mjs +0 -21
- package/esm2020/lib/rating/index.mjs +0 -3
- package/esm2020/lib/rating/rating.component.mjs +0 -41
- package/esm2020/lib/rating/rating.component.module.mjs +0 -19
- package/esm2020/lib/result/index.mjs +0 -3
- package/esm2020/lib/result/result.component.mjs +0 -23
- package/esm2020/lib/result/result.module.mjs +0 -19
- package/esm2020/lib/selectbox/index.mjs +0 -3
- package/esm2020/lib/selectbox/selectbox.component.mjs +0 -322
- package/esm2020/lib/selectbox/selectbox.module.mjs +0 -69
- package/esm2020/lib/selection-list/index.mjs +0 -3
- package/esm2020/lib/selection-list/selection-list.component.mjs +0 -50
- package/esm2020/lib/selection-list/selection-list.module.mjs +0 -24
- package/esm2020/lib/switch/index.mjs +0 -3
- package/esm2020/lib/switch/switch.component.mjs +0 -33
- package/esm2020/lib/switch/switch.module.mjs +0 -21
- package/esm2020/lib/tabs/index.mjs +0 -6
- package/esm2020/lib/tabs/tab-content.directive.mjs +0 -29
- package/esm2020/lib/tabs/tab-item.component.mjs +0 -121
- package/esm2020/lib/tabs/tabs.class.mjs +0 -4
- package/esm2020/lib/tabs/tabs.component.mjs +0 -95
- package/esm2020/lib/tabs/tabs.module.mjs +0 -25
- package/esm2020/lib/textarea/index.mjs +0 -3
- package/esm2020/lib/textarea/textarea.component.mjs +0 -25
- package/esm2020/lib/textarea/textarea.module.mjs +0 -26
- package/esm2020/lib/textbox/index.mjs +0 -3
- package/esm2020/lib/textbox/textbox.component.mjs +0 -27
- package/esm2020/lib/textbox/textbox.module.mjs +0 -43
- package/esm2020/lib/time-box/index.mjs +0 -3
- package/esm2020/lib/time-box/time-box.component.mjs +0 -262
- package/esm2020/lib/time-box/time-box.module.mjs +0 -32
- package/esm2020/lib/toast/index.mjs +0 -5
- package/esm2020/lib/toast/toast.class.mjs +0 -2
- package/esm2020/lib/toast/toast.component.mjs +0 -52
- package/esm2020/lib/toast/toast.module.mjs +0 -22
- package/esm2020/lib/toast/toast.service.mjs +0 -114
- package/esm2020/lib/tooltip/index.mjs +0 -4
- package/esm2020/lib/tooltip/tooltip.component.mjs +0 -38
- package/esm2020/lib/tooltip/tooltip.directive.mjs +0 -86
- package/esm2020/lib/tooltip/tooltip.module.mjs +0 -23
- package/esm2020/lib/treeview/index.mjs +0 -3
- package/esm2020/lib/treeview/tree-view.component.mjs +0 -108
- package/esm2020/lib/treeview/tree-view.module.mjs +0 -20
- package/esm2020/lib/validation/index.mjs +0 -3
- package/esm2020/lib/validation/validation-rule.widget.mjs +0 -113
- package/esm2020/lib/validation/validation.class.mjs +0 -2
- package/esm2020/lib/validation/validation.module.mjs +0 -32
- package/esm2020/public-api.mjs +0 -51
- package/fesm2015/acorex-components.mjs +0 -8045
- package/fesm2015/acorex-components.mjs.map +0 -1
- package/fesm2020/acorex-components.mjs +0 -8012
- package/fesm2020/acorex-components.mjs.map +0 -1
- package/lib/action-sheet/action-sheet-item.component.d.ts +0 -15
- package/lib/action-sheet/action-sheet.component.d.ts +0 -19
- package/lib/action-sheet/action-sheet.module.d.ts +0 -11
- package/lib/action-sheet/index.d.ts +0 -3
- package/lib/alert/alert-button.component.d.ts +0 -13
- package/lib/alert/alert-content.component.d.ts +0 -5
- package/lib/alert/alert-footer.component.d.ts +0 -5
- package/lib/alert/alert-suffix.component.d.ts +0 -5
- package/lib/alert/alert-title.component.d.ts +0 -5
- package/lib/alert/alert.component.d.ts +0 -75
- package/lib/alert/alert.module.d.ts +0 -14
- package/lib/alert/index.d.ts +0 -7
- package/lib/avatar/avatar-group.component.d.ts +0 -8
- package/lib/avatar/avatar.component.d.ts +0 -22
- package/lib/avatar/avatar.module.d.ts +0 -9
- package/lib/avatar/index.d.ts +0 -3
- package/lib/badge/badge.component.d.ts +0 -41
- package/lib/badge/badge.module.d.ts +0 -8
- package/lib/badge/index.d.ts +0 -2
- package/lib/base/common.module.d.ts +0 -8
- package/lib/base/custom-cdk-overlay.service.d.ts +0 -19
- package/lib/base/drawing.class.d.ts +0 -9
- package/lib/base/events.class.d.ts +0 -85
- package/lib/base/index.d.ts +0 -7
- package/lib/base/infinite-scroll.directive.d.ts +0 -25
- package/lib/base/mixin/base-components.class.d.ts +0 -85
- package/lib/base/mixin/base-menu-mixin.class.d.ts +0 -51
- package/lib/base/mixin/button-mixin.class.d.ts +0 -63
- package/lib/base/mixin/clickable-mixin.class.d.ts +0 -35
- package/lib/base/mixin/color-look-mixing.class.d.ts +0 -43
- package/lib/base/mixin/constratctor.d.ts +0 -4
- package/lib/base/mixin/datalist-component.class.d.ts +0 -57
- package/lib/base/mixin/datalist.class.d.ts +0 -11
- package/lib/base/mixin/dropdown-mixin.class.d.ts +0 -48
- package/lib/base/mixin/index.d.ts +0 -2
- package/lib/base/mixin/interactive-mixin.class.d.ts +0 -59
- package/lib/base/mixin/loading-mixin.class.d.ts +0 -39
- package/lib/base/mixin/mixin.class.d.ts +0 -686
- package/lib/base/mixin/selection-component.class.d.ts +0 -60
- package/lib/base/mixin/sizable-mixin.class.d.ts +0 -33
- package/lib/base/mixin/textbox-mixin.class.d.ts +0 -56
- package/lib/base/mixin/value-mixin.class.d.ts +0 -64
- package/lib/base/overlay.service.d.ts +0 -31
- package/lib/base/responsive.directive.d.ts +0 -10
- package/lib/base/styles.class.d.ts +0 -17
- package/lib/breadcrumbs/breadcrumbs-item.class.d.ts +0 -9
- package/lib/breadcrumbs/breadcrumbs-item.component.d.ts +0 -12
- package/lib/breadcrumbs/breadcrumbs.component.d.ts +0 -11
- package/lib/breadcrumbs/breadcrumbs.module.d.ts +0 -9
- package/lib/breadcrumbs/index.d.ts +0 -4
- package/lib/button/button-group.component.d.ts +0 -36
- package/lib/button/button-item.class.d.ts +0 -22
- package/lib/button/button-item.component.d.ts +0 -79
- package/lib/button/button.component.d.ts +0 -21
- package/lib/button/button.module.d.ts +0 -12
- package/lib/button/index.d.ts +0 -5
- package/lib/calendar/calendar.class.d.ts +0 -50
- package/lib/calendar/calendar.component.d.ts +0 -41
- package/lib/calendar/calendar.module.d.ts +0 -12
- package/lib/calendar/index.d.ts +0 -2
- package/lib/carousel/carousel-arrows.component.d.ts +0 -14
- package/lib/carousel/carousel-item.component.d.ts +0 -8
- package/lib/carousel/carousel-pager.component.d.ts +0 -22
- package/lib/carousel/carousel-splidejs.class.d.ts +0 -18
- package/lib/carousel/carousel.class.d.ts +0 -66
- package/lib/carousel/carousel.component.d.ts +0 -98
- package/lib/carousel/carousel.module.d.ts +0 -11
- package/lib/carousel/index.d.ts +0 -6
- package/lib/checkbox/checkbox.component.d.ts +0 -11
- package/lib/checkbox/checkbox.module.d.ts +0 -10
- package/lib/checkbox/index.d.ts +0 -2
- package/lib/collapse/collapse-group.component.d.ts +0 -14
- package/lib/collapse/collapse.component.d.ts +0 -17
- package/lib/collapse/collapse.module.d.ts +0 -9
- package/lib/collapse/index.d.ts +0 -3
- package/lib/datalist/datalist.component.d.ts +0 -25
- package/lib/datalist/datalist.module.d.ts +0 -11
- package/lib/datalist/index.d.ts +0 -2
- package/lib/datepicker/datepicker.component.d.ts +0 -150
- package/lib/datepicker/datepicker.module.d.ts +0 -16
- package/lib/datepicker/index.d.ts +0 -2
- package/lib/decorators/addon.component.d.ts +0 -8
- package/lib/decorators/content.component.d.ts +0 -8
- package/lib/decorators/decorators.module.d.ts +0 -12
- package/lib/decorators/header.component.d.ts +0 -8
- package/lib/decorators/index.d.ts +0 -7
- package/lib/decorators/prefix.component.d.ts +0 -8
- package/lib/decorators/suffix.component.d.ts +0 -8
- package/lib/dialog/dialog.class.d.ts +0 -12
- package/lib/dialog/dialog.component.d.ts +0 -15
- package/lib/dialog/dialog.module.d.ts +0 -13
- package/lib/dialog/dialog.service.d.ts +0 -36
- package/lib/dialog/index.d.ts +0 -4
- package/lib/drawer/drawer-container.component.d.ts +0 -13
- package/lib/drawer/drawer-content.component.d.ts +0 -8
- package/lib/drawer/drawer.component.d.ts +0 -33
- package/lib/drawer/drawer.module.d.ts +0 -10
- package/lib/drawer/index.d.ts +0 -4
- package/lib/dropdown/dropdown-panel.component.d.ts +0 -27
- package/lib/dropdown/dropdown.module.d.ts +0 -13
- package/lib/dropdown/index.d.ts +0 -2
- package/lib/form/form-field.component.d.ts +0 -8
- package/lib/form/form-field.module.d.ts +0 -10
- package/lib/form/form-hint.component.d.ts +0 -8
- package/lib/form/form.component.d.ts +0 -21
- package/lib/form/index.d.ts +0 -4
- package/lib/icon/icon.component.d.ts +0 -10
- package/lib/icon/icon.module.d.ts +0 -8
- package/lib/icon/index.d.ts +0 -2
- package/lib/input-mask/index.d.ts +0 -2
- package/lib/input-mask/input-mask.component.d.ts +0 -25
- package/lib/input-mask/input-mask.module.d.ts +0 -10
- package/lib/label/index.d.ts +0 -2
- package/lib/label/label.component.d.ts +0 -12
- package/lib/label/label.module.d.ts +0 -8
- package/lib/loading/index.d.ts +0 -5
- package/lib/loading/loading-spinner.component.d.ts +0 -6
- package/lib/loading/loading.component.d.ts +0 -21
- package/lib/loading/loading.directive.d.ts +0 -22
- package/lib/loading/loading.module.d.ts +0 -13
- package/lib/loading/loading.service.d.ts +0 -48
- package/lib/menu/index.d.ts +0 -2
- package/lib/menu/menu.component.d.ts +0 -37
- package/lib/menu/menu.module.d.ts +0 -11
- package/lib/number-box/index.d.ts +0 -2
- package/lib/number-box/number-box.component.d.ts +0 -75
- package/lib/number-box/number-box.module.d.ts +0 -13
- package/lib/page/base-page.class.d.ts +0 -45
- package/lib/page/index.d.ts +0 -5
- package/lib/page/page-footer.component.d.ts +0 -7
- package/lib/page/page-header.component.d.ts +0 -7
- package/lib/page/page.component.d.ts +0 -14
- package/lib/page/page.module.d.ts +0 -8
- package/lib/password-box/index.d.ts +0 -2
- package/lib/password-box/password-box.component.d.ts +0 -23
- package/lib/password-box/password-box.module.d.ts +0 -12
- package/lib/picker/index.d.ts +0 -2
- package/lib/picker/picker.component.d.ts +0 -18
- package/lib/picker/picker.module.d.ts +0 -9
- package/lib/popover/index.d.ts +0 -2
- package/lib/popover/popover.component.d.ts +0 -46
- package/lib/popover/popover.module.d.ts +0 -8
- package/lib/popup/index.d.ts +0 -3
- package/lib/popup/popup.component.d.ts +0 -45
- package/lib/popup/popup.module.d.ts +0 -12
- package/lib/popup/popup.service.d.ts +0 -38
- package/lib/progress-bar/index.d.ts +0 -2
- package/lib/progress-bar/progress-bar.component.d.ts +0 -18
- package/lib/progress-bar/progress-bar.module.d.ts +0 -8
- package/lib/radio/index.d.ts +0 -2
- package/lib/radio/radio.component.d.ts +0 -17
- package/lib/radio/radio.module.d.ts +0 -9
- package/lib/range-slider/index.d.ts +0 -2
- package/lib/range-slider/range-slider.component.d.ts +0 -8
- package/lib/range-slider/range-slider.module.d.ts +0 -8
- package/lib/rating/index.d.ts +0 -2
- package/lib/rating/rating.component.d.ts +0 -21
- package/lib/rating/rating.component.module.d.ts +0 -8
- package/lib/result/index.d.ts +0 -2
- package/lib/result/result.component.d.ts +0 -12
- package/lib/result/result.module.d.ts +0 -8
- package/lib/selectbox/index.d.ts +0 -2
- package/lib/selectbox/selectbox.component.d.ts +0 -74
- package/lib/selectbox/selectbox.module.d.ts +0 -20
- package/lib/selection-list/index.d.ts +0 -2
- package/lib/selection-list/selection-list.component.d.ts +0 -21
- package/lib/selection-list/selection-list.module.d.ts +0 -13
- package/lib/switch/index.d.ts +0 -2
- package/lib/switch/switch.component.d.ts +0 -12
- package/lib/switch/switch.module.d.ts +0 -10
- package/lib/tabs/index.d.ts +0 -5
- package/lib/tabs/tab-content.directive.d.ts +0 -11
- package/lib/tabs/tab-item.component.d.ts +0 -49
- package/lib/tabs/tabs.class.d.ts +0 -6
- package/lib/tabs/tabs.component.d.ts +0 -24
- package/lib/tabs/tabs.module.d.ts +0 -12
- package/lib/textarea/index.d.ts +0 -2
- package/lib/textarea/textarea.component.d.ts +0 -12
- package/lib/textarea/textarea.module.d.ts +0 -9
- package/lib/textbox/index.d.ts +0 -2
- package/lib/textbox/textbox.component.d.ts +0 -16
- package/lib/textbox/textbox.module.d.ts +0 -13
- package/lib/time-box/index.d.ts +0 -2
- package/lib/time-box/time-box.component.d.ts +0 -48
- package/lib/time-box/time-box.module.d.ts +0 -11
- package/lib/toast/index.d.ts +0 -4
- package/lib/toast/toast.class.d.ts +0 -14
- package/lib/toast/toast.component.d.ts +0 -24
- package/lib/toast/toast.module.d.ts +0 -9
- package/lib/toast/toast.service.d.ts +0 -18
- package/lib/tooltip/index.d.ts +0 -3
- package/lib/tooltip/tooltip.component.d.ts +0 -10
- package/lib/tooltip/tooltip.directive.d.ts +0 -18
- package/lib/tooltip/tooltip.module.d.ts +0 -10
- package/lib/treeview/index.d.ts +0 -2
- package/lib/treeview/tree-view.component.d.ts +0 -33
- package/lib/treeview/tree-view.module.d.ts +0 -9
- package/lib/validation/index.d.ts +0 -2
- package/lib/validation/validation-rule.widget.d.ts +0 -25
- package/lib/validation/validation.class.d.ts +0 -17
- package/lib/validation/validation.module.d.ts +0 -9
- package/public-api.d.ts +0 -49
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
.popup-wrapper {
|
|
2
|
+
.popup-container {
|
|
3
|
+
opacity: 1;
|
|
4
|
+
background: var(--ax-white-color);
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
border-radius: var(--ax-size-border-radius);
|
|
8
|
+
-webkit-border-radius: var(--ax-size-border-radius);
|
|
9
|
+
-moz-border-radius: var(--ax-size-border-radius);
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
max-height: 95vh;
|
|
12
|
+
height: fit-content;
|
|
13
|
+
height: -moz-fit-content;
|
|
14
|
+
|
|
15
|
+
&.has-border {
|
|
16
|
+
border: 1px solid var(--ax-border-color);
|
|
17
|
+
box-shadow: 1px 1px 10px var(--ax-border-color);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
&:focus {
|
|
22
|
+
box-shadow: 0 0 0 0.2rem rgba(var(--outline-color), 0.8);
|
|
23
|
+
outline-color: transparent;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.full {
|
|
27
|
+
width: 95vw;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.ax-popup-header {
|
|
31
|
+
background: var(--ax-gray-light-color);
|
|
32
|
+
color: var(--ax-gray-fore-color);
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: row;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
align-items: center;
|
|
37
|
+
font-size: 1rem;
|
|
38
|
+
font-weight: 500;
|
|
39
|
+
padding: 0.5rem 0.7rem;
|
|
40
|
+
.ax-buttons-containers {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: row;
|
|
43
|
+
|
|
44
|
+
.ax-popup-header-button {
|
|
45
|
+
border-radius: 50%;
|
|
46
|
+
font-size: 1.1rem;
|
|
47
|
+
display: flex;
|
|
48
|
+
-webkit-box-pack: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
-webkit-box-align: center;
|
|
51
|
+
align-items: center;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
margin-inline-start: 0.5em;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ax-popup-body {
|
|
59
|
+
max-height: 90vh;
|
|
60
|
+
// min-height: 100px;
|
|
61
|
+
position: relative;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2) {
|
|
66
|
+
min-height: 93vh !important;
|
|
67
|
+
}
|
|
68
|
+
.ax-popup-body-container {
|
|
69
|
+
overflow: auto;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.ax-footer {
|
|
73
|
+
background: var(--ax-white-color);
|
|
74
|
+
border-top: 1px solid;
|
|
75
|
+
border-color: var(--ax-border-color);
|
|
76
|
+
margin-block-start: 0.5em;
|
|
77
|
+
padding: 0.4em 0.5em;
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
|
|
81
|
+
.button {
|
|
82
|
+
min-width: 100px;
|
|
83
|
+
margin-inline-end: 0.5em;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ax-popup-footer {
|
|
88
|
+
background-color: var(--ax-white-color);
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: row;
|
|
91
|
+
align-items: center;
|
|
92
|
+
padding: 0.5em;
|
|
93
|
+
border-top: 1px solid var(--ax-border-color);
|
|
94
|
+
margin-block-start: 0.5em;
|
|
95
|
+
|
|
96
|
+
.ax-buttons-containers {
|
|
97
|
+
flex: 1;
|
|
98
|
+
max-width: fit-content;
|
|
99
|
+
max-width: -moz-fit-content;
|
|
100
|
+
|
|
101
|
+
.button {
|
|
102
|
+
margin-inline-end: 0.5em;
|
|
103
|
+
min-width: 80px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
@media all and (min-width: 1280px) {
|
|
109
|
+
&.sm {
|
|
110
|
+
width: 420px !important;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.md {
|
|
114
|
+
width: 680px !important;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.lg {
|
|
118
|
+
width: 1024px !important;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@media all and (min-width: 1024px) and (max-width: 1279px) {
|
|
123
|
+
&.sm {
|
|
124
|
+
width: 100vw;
|
|
125
|
+
max-height: 100vh;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.md {
|
|
129
|
+
width: 500px !important;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&.lg {
|
|
133
|
+
width: 900px !important;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@media all and (min-width: 768px) and (max-width: 1023px) {
|
|
138
|
+
&.sm {
|
|
139
|
+
width: 100vw;
|
|
140
|
+
max-height: 100vh;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.md {
|
|
144
|
+
width: 500px !important;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.lg {
|
|
148
|
+
width: 700px !important;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@media all and (min-width: 425px) and (max-width: 767px) {
|
|
153
|
+
&.sm {
|
|
154
|
+
width: 100vw;
|
|
155
|
+
max-height: 100vh;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
&.md,
|
|
159
|
+
&.lg {
|
|
160
|
+
width: 460px !important;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
@media all and (min-width: 0px) and (max-width: 424px) {
|
|
165
|
+
&.sm,
|
|
166
|
+
&.md,
|
|
167
|
+
&.lg {
|
|
168
|
+
width: 100vw;
|
|
169
|
+
max-height: 100vh;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
Input,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
ViewChild,
|
|
6
|
+
ViewContainerRef,
|
|
7
|
+
OnInit,
|
|
8
|
+
ComponentFactoryResolver,
|
|
9
|
+
ViewEncapsulation,
|
|
10
|
+
HostListener,
|
|
11
|
+
ElementRef,
|
|
12
|
+
ComponentRef,
|
|
13
|
+
OnDestroy,
|
|
14
|
+
Output,
|
|
15
|
+
ChangeDetectorRef,
|
|
16
|
+
ChangeDetectionStrategy,
|
|
17
|
+
SimpleChanges,
|
|
18
|
+
TemplateRef
|
|
19
|
+
} from '@angular/core';
|
|
20
|
+
import { AXBaseComponent } from '../base/element.class';
|
|
21
|
+
import { AXPageCloseEvent, TAB_META_KEY } from '../base/base-page.class';
|
|
22
|
+
import { AXButtonItem, AXRenderService } from '@acorex/core';
|
|
23
|
+
import { AXLoadingService } from '../loading/loading.service';
|
|
24
|
+
import { Subscription } from 'rxjs';
|
|
25
|
+
|
|
26
|
+
@Component({
|
|
27
|
+
templateUrl: './popup.component.html',
|
|
28
|
+
styleUrls: ['./popup.component.scss'],
|
|
29
|
+
encapsulation: ViewEncapsulation.None,
|
|
30
|
+
})
|
|
31
|
+
export class AXPopupComponent extends AXBaseComponent implements OnDestroy {
|
|
32
|
+
|
|
33
|
+
isLoading: boolean = true;
|
|
34
|
+
_loadingId: number;
|
|
35
|
+
private onFooterButtonsSubscription: Subscription;
|
|
36
|
+
|
|
37
|
+
constructor(
|
|
38
|
+
private resolver: ComponentFactoryResolver,
|
|
39
|
+
private ref: ElementRef<HTMLDivElement>,
|
|
40
|
+
private rendererService: AXRenderService,
|
|
41
|
+
private loadingService: AXLoadingService,
|
|
42
|
+
private cdr: ChangeDetectorRef,
|
|
43
|
+
) {
|
|
44
|
+
super();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
ngAfterViewInit() {
|
|
48
|
+
this._loadingId = this.loadingService.show(this.ref.nativeElement.querySelector('.ax-popup-body-container'));
|
|
49
|
+
if (typeof this.content === 'string') {
|
|
50
|
+
this.rendererService.findLoadedComponentByRoute(this.content, 20).then(route => {
|
|
51
|
+
setTimeout(() => {
|
|
52
|
+
this.loadComponent(route?.component);
|
|
53
|
+
}, 300);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
else if (this.content instanceof TemplateRef) {
|
|
57
|
+
const view = this.content.createEmbeddedView({ $implicit: this.data });
|
|
58
|
+
this.popupBody.insert(view);
|
|
59
|
+
this.isLoading = false;
|
|
60
|
+
this.loadingService.hide(this._loadingId);
|
|
61
|
+
}
|
|
62
|
+
else if (typeof this.content === 'function') {
|
|
63
|
+
setTimeout(() => {
|
|
64
|
+
this.loadComponent(this.content);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
private loadComponent(component: any) {
|
|
71
|
+
|
|
72
|
+
if (component == null) {
|
|
73
|
+
//TODO: 404 page component
|
|
74
|
+
console.error(`Invalid page Component! ${this.content}`);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
///
|
|
78
|
+
try {
|
|
79
|
+
const factory = this.resolver.resolveComponentFactory(component);
|
|
80
|
+
this.comRef = this.popupBody.createComponent(factory);
|
|
81
|
+
const com = this.comRef.instance as any;
|
|
82
|
+
if (com.onClosed) {
|
|
83
|
+
com.onClosed.subscribe((e: AXPageCloseEvent) => {
|
|
84
|
+
this.onClosed.emit(e);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
this[TAB_META_KEY].component = com;
|
|
88
|
+
Object.assign(this[TAB_META_KEY].component, this.data);
|
|
89
|
+
//
|
|
90
|
+
if (com.getFooterButtons) {
|
|
91
|
+
this.footerButtons = com.getFooterButtons();
|
|
92
|
+
}
|
|
93
|
+
if (com.onFooterButtonsChanged) {
|
|
94
|
+
this.onFooterButtonsSubscription = (com.onFooterButtonsChanged as EventEmitter<AXButtonItem[]>).subscribe(c => {
|
|
95
|
+
this.footerButtons = c;
|
|
96
|
+
this.cdr.detectChanges();
|
|
97
|
+
}) as any;
|
|
98
|
+
}
|
|
99
|
+
//
|
|
100
|
+
this.focus();
|
|
101
|
+
this.isLoading = false;
|
|
102
|
+
this.loadingService.hide(this._loadingId);
|
|
103
|
+
setTimeout(() => {
|
|
104
|
+
this.comRef.changeDetectorRef.detectChanges();
|
|
105
|
+
}, 100);
|
|
106
|
+
this.cdr.detectChanges();
|
|
107
|
+
} catch (error) {
|
|
108
|
+
//TODO: 404 page component
|
|
109
|
+
console.error(error);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@ViewChild('popupBody', { read: ViewContainerRef, static: true })
|
|
114
|
+
private popupBody: ViewContainerRef;
|
|
115
|
+
|
|
116
|
+
@HostListener('keydown.escape', ['$event'])
|
|
117
|
+
onKeydownHandler(event: KeyboardEvent) {
|
|
118
|
+
if (this.closable) {
|
|
119
|
+
this.onCloseClick();
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
private comRef: ComponentRef<any>;
|
|
124
|
+
|
|
125
|
+
title: string;
|
|
126
|
+
|
|
127
|
+
onClosed: EventEmitter<AXPageCloseEvent> = new EventEmitter<AXPageCloseEvent>();
|
|
128
|
+
|
|
129
|
+
size: 'sm' | 'md' | 'lg' | 'full' = 'sm';
|
|
130
|
+
modal: boolean = true;
|
|
131
|
+
|
|
132
|
+
data: any = {};
|
|
133
|
+
|
|
134
|
+
maximizable: boolean = false;
|
|
135
|
+
|
|
136
|
+
closable: boolean = true;
|
|
137
|
+
|
|
138
|
+
content: any;
|
|
139
|
+
|
|
140
|
+
headerButtons: AXButtonItem[] = [];
|
|
141
|
+
|
|
142
|
+
footerButtons: AXButtonItem[] = [];
|
|
143
|
+
|
|
144
|
+
onCloseClick() {
|
|
145
|
+
this.onClosed.emit({
|
|
146
|
+
component: this[TAB_META_KEY].component,
|
|
147
|
+
htmlElement: this.ref.nativeElement,
|
|
148
|
+
});
|
|
149
|
+
this.cdr.detectChanges();
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
ngOnDestroy() {
|
|
153
|
+
if (this.comRef) {
|
|
154
|
+
this.comRef.destroy();
|
|
155
|
+
}
|
|
156
|
+
if (this.onFooterButtonsSubscription) {
|
|
157
|
+
this.onFooterButtonsSubscription.unsubscribe();
|
|
158
|
+
}
|
|
159
|
+
this.cdr.detectChanges();
|
|
160
|
+
this.loadingService.hide(this._loadingId);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
focus() {
|
|
164
|
+
setTimeout(() => this.ref.nativeElement.focus());
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
onFullScreen() { }
|
|
168
|
+
|
|
169
|
+
handleFooterButtonClick(e: AXButtonItem) {
|
|
170
|
+
if (e.onClick) {
|
|
171
|
+
e.onClick();
|
|
172
|
+
}
|
|
173
|
+
else if (this[TAB_META_KEY].component.onFooterButtonClick) {
|
|
174
|
+
this[TAB_META_KEY].component.onFooterButtonClick({
|
|
175
|
+
component: this[TAB_META_KEY].component,
|
|
176
|
+
name: e.name,
|
|
177
|
+
data: e,
|
|
178
|
+
htmlElement: this.ref.nativeElement,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { AXPopupComponent } from './popup.component';
|
|
4
|
+
import { AXPopupService } from './popup.service';
|
|
5
|
+
import { DragDropModule } from '@angular/cdk/drag-drop';
|
|
6
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
|
7
|
+
import { AXButtonModule } from '../button/button.module';
|
|
8
|
+
import { AXTranslatorModule } from '@acorex/core';
|
|
9
|
+
import { AXLoadingModule } from '../loading/loading.module';
|
|
10
|
+
@NgModule({
|
|
11
|
+
declarations: [AXPopupComponent],
|
|
12
|
+
imports: [CommonModule, DragDropModule, A11yModule, AXButtonModule, AXTranslatorModule, AXLoadingModule],
|
|
13
|
+
exports: [AXPopupComponent],
|
|
14
|
+
providers: [AXPopupService]
|
|
15
|
+
})
|
|
16
|
+
export class AXPopupModule { }
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { AXPopupComponent } from './popup.component';
|
|
3
|
+
import { AXButtonItem } from '@acorex/core';
|
|
4
|
+
import { TAB_META_KEY, AXPageClosedPromise, AXPageCloseEvent } from '../base/base-page.class';
|
|
5
|
+
import { AXOverlayService, AXOverlayViewRef } from '../popover/overlay.service';
|
|
6
|
+
import { options } from '@amcharts/amcharts4/core';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@Injectable({ providedIn: 'root' })
|
|
10
|
+
export class AXPopupService {
|
|
11
|
+
private stack: Array<AXPopupComponent> = [];
|
|
12
|
+
|
|
13
|
+
constructor(private overlayService: AXOverlayService) { }
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
open(content: any, title: string): AXPageClosedPromise;
|
|
17
|
+
open(
|
|
18
|
+
content: any,
|
|
19
|
+
options?: {
|
|
20
|
+
title: string;
|
|
21
|
+
closable?: boolean;
|
|
22
|
+
maximizable?: boolean;
|
|
23
|
+
size?: 'sm' | 'md' | 'lg' | 'full';
|
|
24
|
+
data?: any;
|
|
25
|
+
footerButtons?: AXButtonItem[],
|
|
26
|
+
modal?: boolean
|
|
27
|
+
}
|
|
28
|
+
): AXPageClosedPromise;
|
|
29
|
+
|
|
30
|
+
open(arg1, arg2): AXPageClosedPromise {
|
|
31
|
+
const options: any = {
|
|
32
|
+
closable: true,
|
|
33
|
+
size: 'md',
|
|
34
|
+
maximizable: false,
|
|
35
|
+
footerButtons: [],
|
|
36
|
+
modal: true,
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
if (typeof arg2 === 'string') {
|
|
40
|
+
options.title = arg2;
|
|
41
|
+
} else {
|
|
42
|
+
Object.assign(options, arg2);
|
|
43
|
+
}
|
|
44
|
+
const com = this.overlayService.show(AXPopupComponent, options, {
|
|
45
|
+
transparentBackdrop: false,
|
|
46
|
+
hasBackdrop: options.modal,
|
|
47
|
+
closeOnClickOutside: false,
|
|
48
|
+
scroll: 'block'
|
|
49
|
+
});
|
|
50
|
+
const popup = com.instance as AXPopupComponent;
|
|
51
|
+
popup.content = arg1;
|
|
52
|
+
popup[TAB_META_KEY] = {};
|
|
53
|
+
if (options.size) {
|
|
54
|
+
popup.size = options.size;
|
|
55
|
+
}
|
|
56
|
+
if (options.footerButtons) {
|
|
57
|
+
popup.footerButtons = options.footerButtons;
|
|
58
|
+
}
|
|
59
|
+
this.stack.push(popup);
|
|
60
|
+
popup.onClosed.subscribe(c => {
|
|
61
|
+
this.closePopup(popup, com, c);
|
|
62
|
+
});
|
|
63
|
+
const promise = new AXPageClosedPromise((resolve) => {
|
|
64
|
+
popup[TAB_META_KEY].close = (e) => {
|
|
65
|
+
if (resolve) {
|
|
66
|
+
resolve(e);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
});
|
|
70
|
+
promise['closeMethod'] = () => { popup.onCloseClick(); };
|
|
71
|
+
return promise;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
private closePopup(popup: AXPopupComponent, com: AXOverlayViewRef, result: AXPageCloseEvent) {
|
|
76
|
+
const closeFunc = (e) => {
|
|
77
|
+
com.dispose();
|
|
78
|
+
this.stack.pop();
|
|
79
|
+
delete e.cancel;
|
|
80
|
+
popup[TAB_META_KEY].close(e);
|
|
81
|
+
if (this.stack.length) { this.stack.reverse()[0].focus(); }
|
|
82
|
+
};
|
|
83
|
+
const e = { cancel: false };
|
|
84
|
+
const closingFunc = popup[TAB_META_KEY]?.component?.onClosing;
|
|
85
|
+
if (closingFunc) {
|
|
86
|
+
const res = closingFunc(e);
|
|
87
|
+
if (res instanceof Promise) {
|
|
88
|
+
res.then(() => {
|
|
89
|
+
if (e == null || e.cancel !== true) {
|
|
90
|
+
closeFunc(result);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
if (e == null || e.cancel !== true) {
|
|
96
|
+
closeFunc(result);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
} else {
|
|
100
|
+
closeFunc(result);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { AXBaseComponent } from '../base/element.class';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: 'ax-progress-bar',
|
|
6
|
+
templateUrl: './progress-bar.component.html'
|
|
7
|
+
})
|
|
8
|
+
export class AXProgressBarComponent extends AXBaseComponent {
|
|
9
|
+
@Input() progress: number = 0;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { AXProgressBarComponent } from './progress-bar.component';
|
|
4
|
+
|
|
5
|
+
@NgModule({
|
|
6
|
+
declarations: [AXProgressBarComponent],
|
|
7
|
+
imports: [CommonModule],
|
|
8
|
+
exports: [AXProgressBarComponent],
|
|
9
|
+
providers: []
|
|
10
|
+
})
|
|
11
|
+
export class AXProgressBarModule {}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, OnInit, ViewChild } from '@angular/core';
|
|
2
|
+
import { AXCheckBoxComponent } from '../../../checkbox/checkbox.component';
|
|
3
|
+
import { AXValidation } from '../../../validation/validation.component';
|
|
4
|
+
import { AXProperyEditorComponent } from '../../property-editor.class';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
template: `
|
|
8
|
+
<ax-check-box
|
|
9
|
+
[disabled]="disabled"
|
|
10
|
+
[label]="label"
|
|
11
|
+
[size]="size"
|
|
12
|
+
[indeterminate]="indeterminate"
|
|
13
|
+
[readonly]="readonly"
|
|
14
|
+
[value]="value"
|
|
15
|
+
(onValueChanged)="handleValueChange($event)"
|
|
16
|
+
>
|
|
17
|
+
<ax-validation [rules]="validation?.rules">
|
|
18
|
+
</ax-validation>
|
|
19
|
+
</ax-check-box>
|
|
20
|
+
`,
|
|
21
|
+
})
|
|
22
|
+
export class AXCheckBoxPropertyEditorComponent extends AXProperyEditorComponent<any> {
|
|
23
|
+
constructor(protected cdr: ChangeDetectorRef) {
|
|
24
|
+
super(cdr)
|
|
25
|
+
}
|
|
26
|
+
@ViewChild(AXCheckBoxComponent, { static: true })
|
|
27
|
+
private checkBox: AXCheckBoxComponent;
|
|
28
|
+
|
|
29
|
+
disabled: boolean = false;
|
|
30
|
+
indeterminate: boolean = false;
|
|
31
|
+
label: string;
|
|
32
|
+
readonly: boolean = false;
|
|
33
|
+
size: 'sm' | 'md' | 'lg' = 'md';
|
|
34
|
+
validation: AXValidation;
|
|
35
|
+
|
|
36
|
+
handleValueChange(e: any) {
|
|
37
|
+
super.handleValueChange(e.value);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
ngAfterViewInit() {
|
|
41
|
+
this.registerForValidationForm(this.checkBox);
|
|
42
|
+
this.onRenderCompleted.emit();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { AXCheckBoxModule } from '../../../checkbox/checkbox.module';
|
|
4
|
+
import { AXValidationModule } from '../../../validation/validation.module';
|
|
5
|
+
import { FormsModule } from '@angular/forms';
|
|
6
|
+
import { AXCheckBoxPropertyEditorComponent } from './check-editor';
|
|
7
|
+
|
|
8
|
+
@NgModule({
|
|
9
|
+
declarations: [AXCheckBoxPropertyEditorComponent],
|
|
10
|
+
imports: [CommonModule, AXCheckBoxModule, FormsModule, AXValidationModule],
|
|
11
|
+
exports: [AXCheckBoxPropertyEditorComponent],
|
|
12
|
+
providers: [],
|
|
13
|
+
})
|
|
14
|
+
export class AXCheckPropertyEditorModule { }
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Component, OnInit, ChangeDetectorRef, ViewChild } from '@angular/core';
|
|
2
|
+
import { AXColorPickerComponent } from '../../../color-picker/color-picker.component';
|
|
3
|
+
import { AXValidation } from '../../../validation/validation.component';
|
|
4
|
+
import { AXProperyEditorComponent } from '../../property-editor.class';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
template: `
|
|
8
|
+
<ax-color-picker [(value)]="value">
|
|
9
|
+
<ax-validation [rules]="validation?.rules">
|
|
10
|
+
</ax-validation>
|
|
11
|
+
</ax-color-picker>
|
|
12
|
+
`,
|
|
13
|
+
})
|
|
14
|
+
export class AXColorPropertyEditorComponent extends AXProperyEditorComponent<string> {
|
|
15
|
+
|
|
16
|
+
validation: AXValidation;
|
|
17
|
+
|
|
18
|
+
@ViewChild(AXColorPickerComponent)
|
|
19
|
+
private textBox: AXColorPickerComponent;
|
|
20
|
+
|
|
21
|
+
constructor(protected cdr: ChangeDetectorRef) {
|
|
22
|
+
super(cdr);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
ngAfterViewInit() {
|
|
26
|
+
this.registerForValidationForm(this.textBox);
|
|
27
|
+
this.onRenderCompleted.emit();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { AXColorPropertyEditorComponent } from './color.editor';
|
|
5
|
+
import { AXColorPickerModule } from '../../../color-picker/color-picker.module';
|
|
6
|
+
import { AXValidationModule } from '../../../validation/validation.module';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
@NgModule({
|
|
12
|
+
declarations: [AXColorPropertyEditorComponent],
|
|
13
|
+
imports: [CommonModule, FormsModule, AXColorPickerModule, AXValidationModule],
|
|
14
|
+
exports: [AXColorPropertyEditorComponent],
|
|
15
|
+
providers: []
|
|
16
|
+
})
|
|
17
|
+
export class AXColorPropertyEditorModule {
|
|
18
|
+
constructor() {
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<div *ngFor="let c of columns" class="column-item">
|
|
2
|
+
<div>
|
|
3
|
+
<div>{{c.fieldName}} - {{c.caption}}</div>
|
|
4
|
+
</div>
|
|
5
|
+
<div>
|
|
6
|
+
<div>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="remove-button" (click)="handleRemoveClick(c)"><i class="far fa-trash-alt"></i></div>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
<ax-button icon="far fa-plus" size="sm" type="success outline" (click)="handleAddClick()">ستون ها</ax-button>
|
|
12
|
+
<ng-template #tplEdit>
|
|
13
|
+
<ax-page>
|
|
14
|
+
<ax-page-content>
|
|
15
|
+
<div class="container">
|
|
16
|
+
<div class="ax-mrg-md"></div>
|
|
17
|
+
<div class="table">
|
|
18
|
+
<div class="thead">
|
|
19
|
+
<div class="tr">
|
|
20
|
+
<div class="th">
|
|
21
|
+
<div style="width: 5px;"></div>
|
|
22
|
+
نام
|
|
23
|
+
</div>
|
|
24
|
+
<div class="th">عنوان</div>
|
|
25
|
+
<div class="th">نوع</div>
|
|
26
|
+
<div class="th">نوع نمایش</div>
|
|
27
|
+
<div class="th">به عنوان هدر</div>
|
|
28
|
+
<div class="th">تکمیل توسط کاربر</div>
|
|
29
|
+
<div class="th">عملیات</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="tbody">
|
|
33
|
+
<div cdkDropList class="drag-drop-table-item" (cdkDropListDropped)="drop($event)">
|
|
34
|
+
<div class="tr drag-drop-item-box" *ngFor="let c of columns" cdkDrag>
|
|
35
|
+
<div class="td">
|
|
36
|
+
<div>
|
|
37
|
+
</div>
|
|
38
|
+
<ax-text-box size="sm" [(value)]="c.fieldName" [allowClear]="true"></ax-text-box>
|
|
39
|
+
</div>
|
|
40
|
+
<div class="td">
|
|
41
|
+
<ax-text-box size="sm" [(value)]="c.caption" [allowClear]="true"></ax-text-box>
|
|
42
|
+
</div>
|
|
43
|
+
<div class="td">
|
|
44
|
+
<ax-select-box size="sm" textField="title" valueField="id">
|
|
45
|
+
<ax-data-source [provideData]="handleDataReceived"></ax-data-source>
|
|
46
|
+
</ax-select-box>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="td">
|
|
49
|
+
<ax-text-box size="sm" [(value)]="c.displayType"></ax-text-box>
|
|
50
|
+
</div>
|
|
51
|
+
<div class="td">
|
|
52
|
+
<ax-check-box size="md" [(value)]="c.rowHeader"></ax-check-box>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="td">
|
|
55
|
+
<ax-check-box size="md" [(value)]="c.fillByUser"></ax-check-box>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="td">
|
|
58
|
+
<ax-button type="danger blank" icon="far fa-trash-alt" (click)="handleRemoveClick(c)">
|
|
59
|
+
</ax-button>
|
|
60
|
+
<ax-button type="primary blank" icon="far fa-ellipsis-v">
|
|
61
|
+
</ax-button>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="ax-mrg-md"></div>
|
|
69
|
+
<div style="display: flex; justify-content: flex-end;margin-left: 15px;">
|
|
70
|
+
<ax-button icon="far fa-plus" size="sm" type="primary" (click)="handleAddColumn()">افزودن ستون جدید
|
|
71
|
+
</ax-button>
|
|
72
|
+
</div>
|
|
73
|
+
</ax-page-content>
|
|
74
|
+
</ax-page>
|
|
75
|
+
</ng-template>
|