@acorex/components 4.1.6 → 4.2.0
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/karma.conf.js +32 -0
- package/ng-package.json +10 -0
- package/package.json +13 -33
- 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 +115 -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/{lib/calendar/scheduler/scheduler.class.d.ts → src/lib/calendar/scheduler/scheduler.class.ts} +20 -6
- 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 +106 -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/{lib/data-source/read-param.d.ts → src/lib/data-source/read-param.ts} +13 -3
- 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 +723 -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/drawer.component.html +5 -0
- package/src/lib/drawer/drawer.component.ts +53 -0
- package/src/lib/drawer/drawer.module.ts +11 -0
- package/src/lib/dropdown/dropdown.component.html +25 -0
- package/src/lib/dropdown/dropdown.component.scss +9 -0
- package/src/lib/dropdown/dropdown.component.ts +200 -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 +65 -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/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 +47 -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/selectbox-editor/selectbox.editor.html +15 -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 +21 -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 +4 -0
- package/src/lib/property-editor/editors/text-editor/text.editor.ts +35 -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 +181 -0
- package/src/lib/property-editor/property-editor.class.ts +178 -0
- package/src/lib/property-editor/property-editor.module.ts +97 -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 +134 -0
- package/src/lib/query-builder/query-builder-rule.component.ts +353 -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 +42 -0
- package/src/lib/query-builder/query-builder.service.ts +181 -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 +98 -0
- package/src/lib/selectbox/selectbox.component.ts +980 -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 +103 -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 +68 -0
- package/src/lib/tab-page/tab-page-host.component.ts +103 -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 +77 -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/{public-api.d.ts → src/public-api.ts} +61 -2
- 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/accordion/accordion.component.mjs +0 -44
- package/esm2020/lib/accordion/accordion.module.mjs +0 -20
- package/esm2020/lib/base/base-page.class.mjs +0 -92
- package/esm2020/lib/base/element.class.mjs +0 -294
- package/esm2020/lib/base/events.class.mjs +0 -11
- package/esm2020/lib/button/button.component.mjs +0 -71
- package/esm2020/lib/button/button.module.mjs +0 -21
- package/esm2020/lib/calendar/calendar-box/calendar-box.component.mjs +0 -413
- package/esm2020/lib/calendar/calendar-box/calendar-box.module.mjs +0 -22
- package/esm2020/lib/calendar/scheduler/scheduler-views.property.mjs +0 -54
- package/esm2020/lib/calendar/scheduler/scheduler.class.mjs +0 -18
- package/esm2020/lib/calendar/scheduler/scheduler.component.mjs +0 -213
- package/esm2020/lib/calendar/scheduler/scheduler.module.mjs +0 -68
- package/esm2020/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.mjs +0 -132
- package/esm2020/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.mjs +0 -37
- package/esm2020/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.mjs +0 -47
- package/esm2020/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.mjs +0 -95
- package/esm2020/lib/calendar/scheduler/views/month/scheduler-month-view.component.mjs +0 -204
- package/esm2020/lib/calendar/scheduler/views/scheduler-view.component.mjs +0 -99
- package/esm2020/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.mjs +0 -77
- package/esm2020/lib/checkbox/checkbox.component.mjs +0 -98
- package/esm2020/lib/checkbox/checkbox.module.mjs +0 -20
- package/esm2020/lib/color-picker/color-box/color-box.component.mjs +0 -422
- package/esm2020/lib/color-picker/color-picker.component.mjs +0 -82
- package/esm2020/lib/color-picker/color-picker.module.mjs +0 -24
- package/esm2020/lib/context-menu/context-menu.component.mjs +0 -65
- package/esm2020/lib/context-menu/context-menu.directive.mjs +0 -135
- package/esm2020/lib/context-menu/context-menu.module.mjs +0 -20
- package/esm2020/lib/data-filter/columns/filter-column-date.component.mjs +0 -138
- package/esm2020/lib/data-filter/columns/filter-column-number.component.mjs +0 -117
- package/esm2020/lib/data-filter/columns/filter-column-selection.component.mjs +0 -74
- package/esm2020/lib/data-filter/columns/filter-column-string.component.mjs +0 -117
- package/esm2020/lib/data-filter/filter-panel/filter-panel.component.mjs +0 -258
- package/esm2020/lib/data-filter/filter.class.mjs +0 -44
- package/esm2020/lib/data-filter/filter.module.mjs +0 -90
- package/esm2020/lib/data-filter/toolbar/filter-toolbar.component.mjs +0 -166
- package/esm2020/lib/data-list/core/data-list.component.mjs +0 -40
- package/esm2020/lib/data-list/list/list.component.mjs +0 -124
- package/esm2020/lib/data-list/list/list.module.mjs +0 -22
- package/esm2020/lib/data-list/list/toolbar-list-view.component.mjs +0 -85
- package/esm2020/lib/data-source/datasource.component.mjs +0 -47
- package/esm2020/lib/data-source/datasource.module.mjs +0 -18
- package/esm2020/lib/data-source/read-param.mjs +0 -5
- package/esm2020/lib/date-picker/date-picker.component.mjs +0 -705
- package/esm2020/lib/date-picker/date-picker.module.mjs +0 -25
- package/esm2020/lib/dialog/dialog.component.mjs +0 -24
- package/esm2020/lib/dialog/dialog.module.mjs +0 -21
- package/esm2020/lib/dialog/dialog.service.mjs +0 -150
- package/esm2020/lib/drawer/drawer.component.mjs +0 -54
- package/esm2020/lib/drawer/drawer.module.mjs +0 -20
- package/esm2020/lib/dropdown/dropdown.component.mjs +0 -177
- package/esm2020/lib/dropdown/dropdown.module.mjs +0 -26
- package/esm2020/lib/fieldset/fieldset.component.mjs +0 -59
- package/esm2020/lib/fieldset/fieldset.module.mjs +0 -19
- package/esm2020/lib/form-group/form-group.component.mjs +0 -33
- package/esm2020/lib/form-group/form-group.module.mjs +0 -21
- package/esm2020/lib/label/label.component.mjs +0 -19
- package/esm2020/lib/label/label.module.mjs +0 -21
- package/esm2020/lib/loading/loading-indicator.component.mjs +0 -17
- package/esm2020/lib/loading/loading-panel.component.mjs +0 -44
- package/esm2020/lib/loading/loading.module.mjs +0 -21
- package/esm2020/lib/loading/loading.service.mjs +0 -45
- package/esm2020/lib/menu/menu-item.component.mjs +0 -47
- package/esm2020/lib/menu/menu.component.mjs +0 -86
- package/esm2020/lib/menu/menu.module.mjs +0 -22
- package/esm2020/lib/menu/menu2.component.mjs +0 -96
- package/esm2020/lib/number-box/number-box.component.mjs +0 -622
- package/esm2020/lib/number-box/number-box.module.mjs +0 -21
- package/esm2020/lib/page/content.component.mjs +0 -32
- package/esm2020/lib/page/footer.component.mjs +0 -19
- package/esm2020/lib/page/page.component.mjs +0 -53
- package/esm2020/lib/page/page.module.mjs +0 -22
- package/esm2020/lib/panel-box/panel-box.component.mjs +0 -88
- package/esm2020/lib/panel-box/panel-box.module.mjs +0 -19
- package/esm2020/lib/password-box/password-box.component.mjs +0 -31
- package/esm2020/lib/password-box/password-box.module.mjs +0 -23
- package/esm2020/lib/popover/custom-cdk-overlay.service.mjs +0 -48
- package/esm2020/lib/popover/overlay.service.mjs +0 -87
- package/esm2020/lib/popover/popover.component.mjs +0 -115
- package/esm2020/lib/popover/popover.module.mjs +0 -19
- package/esm2020/lib/popup/popup.component.mjs +0 -146
- package/esm2020/lib/popup/popup.module.mjs +0 -25
- package/esm2020/lib/popup/popup.service.mjs +0 -93
- package/esm2020/lib/progress-bar/progress-bar.component.mjs +0 -19
- package/esm2020/lib/progress-bar/progress-bar.module.mjs +0 -19
- package/esm2020/lib/property-editor/editors/color-editor/color.editor.mjs +0 -38
- package/esm2020/lib/property-editor/editors/color-editor/color.module.mjs +0 -24
- package/esm2020/lib/property-editor/editors/column-editor/column.editor.mjs +0 -115
- package/esm2020/lib/property-editor/editors/column-editor/column.module.mjs +0 -32
- package/esm2020/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.mjs +0 -211
- package/esm2020/lib/property-editor/editors/conditional-color-editor/conditional-color.module.mjs +0 -78
- package/esm2020/lib/property-editor/editors/date-editor/date.editor.mjs +0 -51
- package/esm2020/lib/property-editor/editors/date-editor/date.module.mjs +0 -24
- package/esm2020/lib/property-editor/editors/number-editor/number.editor.mjs +0 -60
- package/esm2020/lib/property-editor/editors/number-editor/number.module.mjs +0 -24
- package/esm2020/lib/property-editor/editors/range-editor/range.editor.mjs +0 -140
- package/esm2020/lib/property-editor/editors/range-editor/range.module.mjs +0 -61
- package/esm2020/lib/property-editor/editors/selectbox-editor/selectbox.editor.mjs +0 -71
- package/esm2020/lib/property-editor/editors/selectbox-editor/selectbox.module.mjs +0 -25
- package/esm2020/lib/property-editor/editors/switch-editor/number.editor.mjs +0 -29
- package/esm2020/lib/property-editor/editors/switch-editor/number.module.mjs +0 -25
- package/esm2020/lib/property-editor/editors/text-editor/text.editor.mjs +0 -30
- package/esm2020/lib/property-editor/editors/text-editor/text.module.mjs +0 -24
- package/esm2020/lib/property-editor/editors/textarea-editor/textarea.editor.mjs +0 -32
- package/esm2020/lib/property-editor/editors/textarea-editor/textarea.module.mjs +0 -24
- package/esm2020/lib/property-editor/editors/time-editor/time.editor.mjs +0 -43
- package/esm2020/lib/property-editor/editors/time-editor/time.module.mjs +0 -24
- package/esm2020/lib/property-editor/property-editor-renderer.directive.mjs +0 -152
- package/esm2020/lib/property-editor/property-editor.class.mjs +0 -101
- package/esm2020/lib/property-editor/property-editor.module.mjs +0 -161
- package/esm2020/lib/query-builder/query-builder-group.component.mjs +0 -124
- package/esm2020/lib/query-builder/query-builder-popup/query-builder-popup.component.mjs +0 -171
- package/esm2020/lib/query-builder/query-builder-rule.component.mjs +0 -357
- package/esm2020/lib/query-builder/query-builder.class.mjs +0 -20
- package/esm2020/lib/query-builder/query-builder.component.mjs +0 -82
- package/esm2020/lib/query-builder/query-builder.module.mjs +0 -59
- package/esm2020/lib/query-builder/query-builder.service.mjs +0 -191
- package/esm2020/lib/searchbox/searchbox.component.mjs +0 -79
- package/esm2020/lib/searchbox/searchbox.module.mjs +0 -24
- package/esm2020/lib/selectbox/selectbox.component.mjs +0 -955
- package/esm2020/lib/selectbox/selectbox.module.mjs +0 -44
- package/esm2020/lib/selectbox/selectbox2.component.mjs +0 -574
- package/esm2020/lib/selection-list/selection-list.component.mjs +0 -101
- package/esm2020/lib/selection-list/selection-list.module.mjs +0 -21
- package/esm2020/lib/switch/switch.component.mjs +0 -51
- package/esm2020/lib/switch/switch.module.mjs +0 -20
- package/esm2020/lib/tab-page/tab-page-Renderer.component.mjs +0 -69
- package/esm2020/lib/tab-page/tab-page-host.component.mjs +0 -109
- package/esm2020/lib/tab-page/tab-page.module.mjs +0 -21
- package/esm2020/lib/tab-page/tab-page.service.mjs +0 -156
- package/esm2020/lib/tab-strip/tab-strip.component.mjs +0 -36
- package/esm2020/lib/tab-strip/tab-strip.module.mjs +0 -19
- package/esm2020/lib/tab-view/dynamic-tabs.directive.mjs +0 -24
- package/esm2020/lib/tab-view/tab-view.component.mjs +0 -105
- package/esm2020/lib/tab-view/tab-view.module.mjs +0 -21
- package/esm2020/lib/tab-view/tab.component.mjs +0 -30
- package/esm2020/lib/textarea/textarea.component.mjs +0 -26
- package/esm2020/lib/textarea/textarea.module.mjs +0 -21
- package/esm2020/lib/textbox/textbox.component.mjs +0 -39
- package/esm2020/lib/textbox/textbox.module.mjs +0 -24
- package/esm2020/lib/time-picker/time-picker.component.mjs +0 -943
- package/esm2020/lib/time-picker/time-picker.module.mjs +0 -22
- package/esm2020/lib/toast/toast-message/toast-message.component.mjs +0 -74
- package/esm2020/lib/toast/toast-wrapper/toast-wrapper.component.mjs +0 -13
- package/esm2020/lib/toast/toast.module.mjs +0 -21
- package/esm2020/lib/toast/toast.service.mjs +0 -44
- package/esm2020/lib/toolbar/group-button/toolbar-group-button.component.mjs +0 -78
- package/esm2020/lib/toolbar/menu/toolbar-menu.component.mjs +0 -57
- package/esm2020/lib/toolbar/search/toolbar-search.component.mjs +0 -54
- package/esm2020/lib/toolbar/title/toolbar-title.component.mjs +0 -47
- package/esm2020/lib/toolbar/toolbar-item.mjs +0 -6
- package/esm2020/lib/toolbar/toolbar.component.mjs +0 -13
- package/esm2020/lib/toolbar/toolbar.module.mjs +0 -40
- package/esm2020/lib/tooltip/tooltip.directive.mjs +0 -100
- package/esm2020/lib/tooltip/tooltip.module.mjs +0 -19
- package/esm2020/lib/tree-side-menu/tree-side-menu.component.mjs +0 -646
- package/esm2020/lib/tree-side-menu/tree-side-menu.module.mjs +0 -35
- package/esm2020/lib/tree-view/tree-view.component.mjs +0 -726
- package/esm2020/lib/tree-view/tree-view.module.mjs +0 -22
- package/esm2020/lib/upload-file/upload-file.component.mjs +0 -170
- package/esm2020/lib/upload-file/upload-file.events.mjs +0 -2
- package/esm2020/lib/upload-file/upload-file.module.mjs +0 -24
- package/esm2020/lib/validation/validation-form.component.mjs +0 -64
- package/esm2020/lib/validation/validation-rule.widget.mjs +0 -111
- package/esm2020/lib/validation/validation.class.mjs +0 -2
- package/esm2020/lib/validation/validation.component.mjs +0 -89
- package/esm2020/lib/validation/validation.module.mjs +0 -34
- package/esm2020/public-api.mjs +0 -154
- package/fesm2015/acorex-components.mjs +0 -15087
- package/fesm2015/acorex-components.mjs.map +0 -1
- package/fesm2020/acorex-components.mjs +0 -15034
- package/fesm2020/acorex-components.mjs.map +0 -1
- package/lib/accordion/accordion.component.d.ts +0 -13
- package/lib/accordion/accordion.module.d.ts +0 -9
- package/lib/base/base-page.class.d.ts +0 -45
- package/lib/base/element.class.d.ts +0 -106
- package/lib/base/events.class.d.ts +0 -18
- package/lib/button/button.component.d.ts +0 -21
- package/lib/button/button.module.d.ts +0 -8
- package/lib/calendar/calendar-box/calendar-box.component.d.ts +0 -81
- package/lib/calendar/calendar-box/calendar-box.module.d.ts +0 -11
- package/lib/calendar/scheduler/scheduler-views.property.d.ts +0 -19
- package/lib/calendar/scheduler/scheduler.component.d.ts +0 -39
- package/lib/calendar/scheduler/scheduler.module.d.ts +0 -21
- package/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.d.ts +0 -25
- package/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.d.ts +0 -14
- package/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.d.ts +0 -16
- package/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.d.ts +0 -26
- package/lib/calendar/scheduler/views/month/scheduler-month-view.component.d.ts +0 -37
- package/lib/calendar/scheduler/views/scheduler-view.component.d.ts +0 -28
- package/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.d.ts +0 -24
- package/lib/checkbox/checkbox.component.d.ts +0 -30
- package/lib/checkbox/checkbox.module.d.ts +0 -9
- package/lib/color-picker/color-box/color-box.component.d.ts +0 -25
- package/lib/color-picker/color-picker.component.d.ts +0 -30
- package/lib/color-picker/color-picker.module.d.ts +0 -13
- package/lib/context-menu/context-menu.component.d.ts +0 -22
- package/lib/context-menu/context-menu.directive.d.ts +0 -38
- package/lib/context-menu/context-menu.module.d.ts +0 -9
- package/lib/data-filter/columns/filter-column-date.component.d.ts +0 -22
- package/lib/data-filter/columns/filter-column-number.component.d.ts +0 -15
- package/lib/data-filter/columns/filter-column-selection.component.d.ts +0 -18
- package/lib/data-filter/columns/filter-column-string.component.d.ts +0 -15
- package/lib/data-filter/filter-panel/filter-panel.component.d.ts +0 -45
- package/lib/data-filter/filter.class.d.ts +0 -40
- package/lib/data-filter/filter.module.d.ts +0 -24
- package/lib/data-filter/toolbar/filter-toolbar.component.d.ts +0 -25
- package/lib/data-list/core/data-list.component.d.ts +0 -15
- package/lib/data-list/list/list.component.d.ts +0 -40
- package/lib/data-list/list/list.module.d.ts +0 -11
- package/lib/data-list/list/toolbar-list-view.component.d.ts +0 -17
- package/lib/data-source/datasource.component.d.ts +0 -16
- package/lib/data-source/datasource.module.d.ts +0 -7
- package/lib/date-picker/date-picker.component.d.ts +0 -81
- package/lib/date-picker/date-picker.module.d.ts +0 -14
- package/lib/dialog/dialog.component.d.ts +0 -14
- package/lib/dialog/dialog.module.d.ts +0 -10
- package/lib/dialog/dialog.service.d.ts +0 -36
- package/lib/drawer/drawer.component.d.ts +0 -10
- package/lib/drawer/drawer.module.d.ts +0 -9
- package/lib/dropdown/dropdown.component.d.ts +0 -38
- package/lib/dropdown/dropdown.module.d.ts +0 -13
- package/lib/fieldset/fieldset.component.d.ts +0 -11
- package/lib/fieldset/fieldset.module.d.ts +0 -8
- package/lib/form-group/form-group.component.d.ts +0 -14
- package/lib/form-group/form-group.module.d.ts +0 -8
- package/lib/label/label.component.d.ts +0 -9
- package/lib/label/label.module.d.ts +0 -8
- package/lib/loading/loading-indicator.component.d.ts +0 -9
- package/lib/loading/loading-panel.component.d.ts +0 -13
- package/lib/loading/loading.module.d.ts +0 -10
- package/lib/loading/loading.service.d.ts +0 -13
- package/lib/menu/menu-item.component.d.ts +0 -18
- package/lib/menu/menu.component.d.ts +0 -35
- package/lib/menu/menu.module.d.ts +0 -11
- package/lib/menu/menu2.component.d.ts +0 -21
- package/lib/number-box/number-box.component.d.ts +0 -52
- package/lib/number-box/number-box.module.d.ts +0 -10
- package/lib/page/content.component.d.ts +0 -8
- package/lib/page/footer.component.d.ts +0 -5
- package/lib/page/page.component.d.ts +0 -16
- package/lib/page/page.module.d.ts +0 -11
- package/lib/panel-box/panel-box.component.d.ts +0 -19
- package/lib/panel-box/panel-box.module.d.ts +0 -8
- package/lib/password-box/password-box.component.d.ts +0 -12
- package/lib/password-box/password-box.module.d.ts +0 -10
- package/lib/popover/custom-cdk-overlay.service.d.ts +0 -19
- package/lib/popover/overlay.service.d.ts +0 -30
- package/lib/popover/popover.component.d.ts +0 -30
- package/lib/popover/popover.module.d.ts +0 -8
- package/lib/popup/popup.component.d.ts +0 -39
- package/lib/popup/popup.module.d.ts +0 -13
- package/lib/popup/popup.service.d.ts +0 -22
- package/lib/progress-bar/progress-bar.component.d.ts +0 -7
- package/lib/progress-bar/progress-bar.module.d.ts +0 -8
- package/lib/property-editor/editors/color-editor/color.editor.d.ts +0 -13
- package/lib/property-editor/editors/color-editor/color.module.d.ts +0 -12
- package/lib/property-editor/editors/column-editor/column.editor.d.ts +0 -34
- package/lib/property-editor/editors/column-editor/column.module.d.ts +0 -20
- package/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.d.ts +0 -44
- package/lib/property-editor/editors/conditional-color-editor/conditional-color.module.d.ts +0 -19
- package/lib/property-editor/editors/date-editor/date.editor.d.ts +0 -28
- package/lib/property-editor/editors/date-editor/date.module.d.ts +0 -12
- package/lib/property-editor/editors/number-editor/number.editor.d.ts +0 -19
- package/lib/property-editor/editors/number-editor/number.module.d.ts +0 -12
- package/lib/property-editor/editors/range-editor/range.editor.d.ts +0 -29
- package/lib/property-editor/editors/range-editor/range.module.d.ts +0 -18
- package/lib/property-editor/editors/selectbox-editor/selectbox.editor.d.ts +0 -28
- package/lib/property-editor/editors/selectbox-editor/selectbox.module.d.ts +0 -13
- package/lib/property-editor/editors/switch-editor/number.editor.d.ts +0 -11
- package/lib/property-editor/editors/switch-editor/number.module.d.ts +0 -13
- package/lib/property-editor/editors/text-editor/text.editor.d.ts +0 -15
- package/lib/property-editor/editors/text-editor/text.module.d.ts +0 -12
- package/lib/property-editor/editors/textarea-editor/textarea.editor.d.ts +0 -17
- package/lib/property-editor/editors/textarea-editor/textarea.module.d.ts +0 -12
- package/lib/property-editor/editors/time-editor/time.editor.d.ts +0 -17
- package/lib/property-editor/editors/time-editor/time.module.d.ts +0 -12
- package/lib/property-editor/property-editor-renderer.directive.d.ts +0 -30
- package/lib/property-editor/property-editor.class.d.ts +0 -67
- package/lib/property-editor/property-editor.module.d.ts +0 -19
- package/lib/query-builder/query-builder-group.component.d.ts +0 -33
- package/lib/query-builder/query-builder-popup/query-builder-popup.component.d.ts +0 -35
- package/lib/query-builder/query-builder-rule.component.d.ts +0 -45
- package/lib/query-builder/query-builder.class.d.ts +0 -45
- package/lib/query-builder/query-builder.component.d.ts +0 -27
- package/lib/query-builder/query-builder.module.d.ts +0 -22
- package/lib/query-builder/query-builder.service.d.ts +0 -18
- package/lib/searchbox/searchbox.component.d.ts +0 -22
- package/lib/searchbox/searchbox.module.d.ts +0 -13
- package/lib/selectbox/selectbox.component.d.ts +0 -116
- package/lib/selectbox/selectbox.module.d.ts +0 -15
- package/lib/selectbox/selectbox2.component.d.ts +0 -103
- package/lib/selection-list/selection-list.component.d.ts +0 -30
- package/lib/selection-list/selection-list.module.d.ts +0 -10
- package/lib/switch/switch.component.d.ts +0 -20
- package/lib/switch/switch.module.d.ts +0 -9
- package/lib/tab-page/tab-page-Renderer.component.d.ts +0 -16
- package/lib/tab-page/tab-page-host.component.d.ts +0 -26
- package/lib/tab-page/tab-page.module.d.ts +0 -10
- package/lib/tab-page/tab-page.service.d.ts +0 -30
- package/lib/tab-strip/tab-strip.component.d.ts +0 -28
- package/lib/tab-strip/tab-strip.module.d.ts +0 -8
- package/lib/tab-view/dynamic-tabs.directive.d.ts +0 -16
- package/lib/tab-view/tab-view.component.d.ts +0 -26
- package/lib/tab-view/tab-view.module.d.ts +0 -10
- package/lib/tab-view/tab.component.d.ts +0 -12
- package/lib/textarea/textarea.component.d.ts +0 -12
- package/lib/textarea/textarea.module.d.ts +0 -8
- package/lib/textbox/textbox.component.d.ts +0 -16
- package/lib/textbox/textbox.module.d.ts +0 -11
- package/lib/time-picker/time-picker.component.d.ts +0 -52
- package/lib/time-picker/time-picker.module.d.ts +0 -11
- package/lib/toast/toast-message/toast-message.component.d.ts +0 -18
- package/lib/toast/toast-wrapper/toast-wrapper.component.d.ts +0 -8
- package/lib/toast/toast.module.d.ts +0 -9
- package/lib/toast/toast.service.d.ts +0 -18
- package/lib/toolbar/group-button/toolbar-group-button.component.d.ts +0 -12
- package/lib/toolbar/menu/toolbar-menu.component.d.ts +0 -24
- package/lib/toolbar/search/toolbar-search.component.d.ts +0 -16
- package/lib/toolbar/title/toolbar-title.component.d.ts +0 -9
- package/lib/toolbar/toolbar-item.d.ts +0 -3
- package/lib/toolbar/toolbar.component.d.ts +0 -8
- package/lib/toolbar/toolbar.module.d.ts +0 -14
- package/lib/tooltip/tooltip.directive.d.ts +0 -21
- package/lib/tooltip/tooltip.module.d.ts +0 -8
- package/lib/tree-side-menu/tree-side-menu.component.d.ts +0 -111
- package/lib/tree-side-menu/tree-side-menu.module.d.ts +0 -11
- package/lib/tree-view/tree-view.component.d.ts +0 -117
- package/lib/tree-view/tree-view.module.d.ts +0 -11
- package/lib/upload-file/upload-file.component.d.ts +0 -38
- package/lib/upload-file/upload-file.events.d.ts +0 -10
- package/lib/upload-file/upload-file.module.d.ts +0 -13
- package/lib/validation/validation-form.component.d.ts +0 -19
- package/lib/validation/validation-rule.widget.d.ts +0 -23
- package/lib/validation/validation.class.d.ts +0 -16
- package/lib/validation/validation.component.d.ts +0 -25
- package/lib/validation/validation.module.d.ts +0 -11
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { AXDatePickerComponent } from './date-picker.component';
|
|
5
|
+
import { AXDropdownModule } from '../dropdown/dropdown.module';
|
|
6
|
+
import { AXCalendarBoxModule } from '../calendar/calendar-box/calendar-box.module';
|
|
7
|
+
import { AXTextBoxModule } from '../textbox/textbox.module';
|
|
8
|
+
import { AXButtonModule } from '../button/button.module';
|
|
9
|
+
import { TextMaskModule } from 'angular2-text-mask';
|
|
10
|
+
|
|
11
|
+
@NgModule({
|
|
12
|
+
declarations: [AXDatePickerComponent],
|
|
13
|
+
imports: [CommonModule, FormsModule, AXDropdownModule, AXCalendarBoxModule, AXButtonModule, AXTextBoxModule, TextMaskModule, FormsModule],
|
|
14
|
+
exports: [AXDatePickerComponent],
|
|
15
|
+
providers: []
|
|
16
|
+
})
|
|
17
|
+
export class AXDatePickerModule {}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.ax-dialog {
|
|
2
|
+
background: var(--ax-white-color);
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
padding: 0.8em;
|
|
6
|
+
|
|
7
|
+
.dialog-content {
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.buttons {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row-reverse;
|
|
16
|
+
|
|
17
|
+
.button {
|
|
18
|
+
margin-inline-end: 0.5em;
|
|
19
|
+
min-width: 100px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
[dir="rtl"] &{
|
|
23
|
+
flex-direction: row !important;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
margin-top: 1em;
|
|
27
|
+
|
|
28
|
+
.btn {
|
|
29
|
+
margin: 0 5px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Component, OnInit, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { AXButtonItem } from '@acorex/core';
|
|
3
|
+
import { AXMenuItemClickEvent } from '../menu/menu.component';
|
|
4
|
+
import { AXBasePopupPageComponent } from '../base/base-page.class';
|
|
5
|
+
|
|
6
|
+
@Component({
|
|
7
|
+
selector: 'ax-dialog',
|
|
8
|
+
templateUrl: './dialog.component.html',
|
|
9
|
+
styleUrls: ['./dialog.component.scss'],
|
|
10
|
+
encapsulation: ViewEncapsulation.None
|
|
11
|
+
})
|
|
12
|
+
export class AXDialogComponent extends AXBasePopupPageComponent {
|
|
13
|
+
message: any;
|
|
14
|
+
|
|
15
|
+
buttons: AXButtonItem[] = [];
|
|
16
|
+
|
|
17
|
+
constructor() {
|
|
18
|
+
super();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
onClick: Function;
|
|
22
|
+
|
|
23
|
+
onFooterButtonClick(e: AXMenuItemClickEvent) {
|
|
24
|
+
if (this.onClick) {
|
|
25
|
+
this.onClick(e.data);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
getFooterButtons(): AXButtonItem[] {
|
|
30
|
+
return this.buttons;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { AXDialogComponent } from './dialog.component';
|
|
4
|
+
import { AXButtonModule } from '../button/button.module';
|
|
5
|
+
import { AXTranslatorModule } from '@acorex/core';
|
|
6
|
+
|
|
7
|
+
@NgModule({
|
|
8
|
+
declarations: [AXDialogComponent],
|
|
9
|
+
imports: [CommonModule, AXButtonModule,AXTranslatorModule],
|
|
10
|
+
exports: [AXDialogComponent],
|
|
11
|
+
providers: [],
|
|
12
|
+
})
|
|
13
|
+
export class AXDialogModule { }
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import { AXDialogComponent } from './dialog.component';
|
|
3
|
+
import { AXPopupService } from '../popup/popup.service';
|
|
4
|
+
import { AXButtonItem, AXTranslator } from '@acorex/core';
|
|
5
|
+
|
|
6
|
+
export class AXDialogAlertResult {
|
|
7
|
+
private _executor: (close: (e?: any) => void) => void;
|
|
8
|
+
constructor(
|
|
9
|
+
executor: (close: (e?: any) => void) => void
|
|
10
|
+
) {
|
|
11
|
+
this._executor = executor;
|
|
12
|
+
setTimeout(() => {
|
|
13
|
+
this._executor(this.closeAction);
|
|
14
|
+
}, 50);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
private closeAction: (e?: any) => void;
|
|
18
|
+
|
|
19
|
+
close(action: (e?: any) => void): AXDialogAlertResult {
|
|
20
|
+
this.closeAction = action;
|
|
21
|
+
return this;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export class AXDialogConfirmResult {
|
|
27
|
+
private _executor: (okay: () => void, cancel: () => void, final: () => void) => void;
|
|
28
|
+
constructor(
|
|
29
|
+
executor: (okay: () => void, cancel: () => void, final: () => void) => void
|
|
30
|
+
) {
|
|
31
|
+
this._executor = executor;
|
|
32
|
+
setTimeout(() => {
|
|
33
|
+
this._executor(this.okayAction, this.cancelAction, this.finalAction);
|
|
34
|
+
}, 50);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
private okayAction: () => void;
|
|
38
|
+
private cancelAction: () => void;
|
|
39
|
+
private finalAction: () => void;
|
|
40
|
+
|
|
41
|
+
okay(action: () => void): AXDialogConfirmResult {
|
|
42
|
+
this.okayAction = action;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
cancel(action: () => void): AXDialogConfirmResult {
|
|
46
|
+
this.cancelAction = action;
|
|
47
|
+
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
final(action: () => void) {
|
|
51
|
+
this.finalAction = action;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
export class AXDialogResult {
|
|
57
|
+
private _executor: (then: (name: string) => void, final: () => void) => void;
|
|
58
|
+
constructor(
|
|
59
|
+
executor: (then: (name: string) => void, final: () => void) => void
|
|
60
|
+
) {
|
|
61
|
+
this._executor = executor;
|
|
62
|
+
setTimeout(() => {
|
|
63
|
+
this._executor(this.thenAction, this.finalAction);
|
|
64
|
+
}, 50);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
private thenAction: (name: string) => void;
|
|
68
|
+
private finalAction: () => void;
|
|
69
|
+
|
|
70
|
+
then(action: (name: string) => void): AXDialogResult {
|
|
71
|
+
this.thenAction = action;
|
|
72
|
+
return this;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
final(action: () => void) {
|
|
76
|
+
this.finalAction = action;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@Injectable({ providedIn: 'root' })
|
|
81
|
+
export class AXDialogService {
|
|
82
|
+
|
|
83
|
+
constructor(private popupService: AXPopupService) {
|
|
84
|
+
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
alert(title: string, message: string): AXDialogAlertResult {
|
|
88
|
+
return new AXDialogAlertResult((close) => {
|
|
89
|
+
const popup = this.popupService.open(AXDialogComponent, {
|
|
90
|
+
title,
|
|
91
|
+
size: 'sm',
|
|
92
|
+
closable: false,
|
|
93
|
+
|
|
94
|
+
data: {
|
|
95
|
+
message,
|
|
96
|
+
buttons: [
|
|
97
|
+
{
|
|
98
|
+
name: 'confirm',
|
|
99
|
+
text: AXTranslator.get('common.confirm'),
|
|
100
|
+
style: 'success',
|
|
101
|
+
submitBehavior: true,
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
onClick: (e) => {
|
|
105
|
+
popup.close()
|
|
106
|
+
close();
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
confirm(title: string, message: string): AXDialogConfirmResult {
|
|
114
|
+
return new AXDialogConfirmResult((okay, cancel, final) => {
|
|
115
|
+
const popup = this.popupService.open(AXDialogComponent, {
|
|
116
|
+
title,
|
|
117
|
+
size: 'sm',
|
|
118
|
+
closable: false,
|
|
119
|
+
|
|
120
|
+
data: {
|
|
121
|
+
buttons: [
|
|
122
|
+
{
|
|
123
|
+
name: 'confirm',
|
|
124
|
+
text: AXTranslator.get('common.confirm'),
|
|
125
|
+
style: 'success',
|
|
126
|
+
submitBehavior: true,
|
|
127
|
+
cancelBehavior: false,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: 'cancel',
|
|
131
|
+
text: AXTranslator.get('common.cancel'),
|
|
132
|
+
style: 'danger blank',
|
|
133
|
+
submitBehavior: false,
|
|
134
|
+
cancelBehavior: true,
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
message,
|
|
138
|
+
onClick: (e) => {
|
|
139
|
+
popup.close()
|
|
140
|
+
if (e.name === 'confirm' && okay) {
|
|
141
|
+
okay();
|
|
142
|
+
}
|
|
143
|
+
if (e.name === 'cancel' && cancel) {
|
|
144
|
+
cancel();
|
|
145
|
+
}
|
|
146
|
+
if (final) {
|
|
147
|
+
final();
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
})
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
show(title: string, message: string, closable: boolean = false, ...buttons: AXButtonItem[]): AXDialogResult {
|
|
157
|
+
return new AXDialogResult((then, final) => {
|
|
158
|
+
const popup = this.popupService.open(AXDialogComponent, {
|
|
159
|
+
title,
|
|
160
|
+
size: 'sm',
|
|
161
|
+
closable,
|
|
162
|
+
data: {
|
|
163
|
+
message,
|
|
164
|
+
buttons,
|
|
165
|
+
onClick: (e) => {
|
|
166
|
+
popup.close();
|
|
167
|
+
if (then) {
|
|
168
|
+
then(e.name);
|
|
169
|
+
}
|
|
170
|
+
if (final) {
|
|
171
|
+
final();
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Component, OnInit, Input } from '@angular/core';
|
|
2
|
+
import {
|
|
3
|
+
trigger,
|
|
4
|
+
state,
|
|
5
|
+
style,
|
|
6
|
+
transition,
|
|
7
|
+
animate,
|
|
8
|
+
} from '@angular/animations';
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'ax-drawer',
|
|
11
|
+
templateUrl: './drawer.component.html',
|
|
12
|
+
animations: [
|
|
13
|
+
trigger('slideInOut', [
|
|
14
|
+
state(
|
|
15
|
+
'in',
|
|
16
|
+
style({
|
|
17
|
+
transform: 'translate3d(0,0,0)',
|
|
18
|
+
})
|
|
19
|
+
),
|
|
20
|
+
state(
|
|
21
|
+
'out',
|
|
22
|
+
style({
|
|
23
|
+
transform: 'translate3d(100%, 0, 0)',
|
|
24
|
+
})
|
|
25
|
+
),
|
|
26
|
+
transition('in => out', animate('200ms ease-in-out')),
|
|
27
|
+
transition('out => in', animate('200ms ease-in-out')),
|
|
28
|
+
]),
|
|
29
|
+
],
|
|
30
|
+
})
|
|
31
|
+
export class AXDrawerComponent {
|
|
32
|
+
constructor() {}
|
|
33
|
+
|
|
34
|
+
@Input()
|
|
35
|
+
width: number = 300;
|
|
36
|
+
|
|
37
|
+
drawerState: string = 'out';
|
|
38
|
+
|
|
39
|
+
ngOnDestroy(): void {
|
|
40
|
+
document.querySelector('body').classList.remove('ax-drawer-underlay');
|
|
41
|
+
}
|
|
42
|
+
toggle() {
|
|
43
|
+
const body = document.querySelector('body');
|
|
44
|
+
|
|
45
|
+
if (this.drawerState === 'out') {
|
|
46
|
+
this.drawerState = 'in';
|
|
47
|
+
body.classList.add('ax-drawer-underlay');
|
|
48
|
+
} else {
|
|
49
|
+
this.drawerState = 'out';
|
|
50
|
+
body.classList.remove('ax-drawer-underlay');
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { AXDrawerComponent } from './drawer.component';
|
|
4
|
+
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
5
|
+
@NgModule({
|
|
6
|
+
declarations: [AXDrawerComponent],
|
|
7
|
+
imports: [CommonModule, BrowserAnimationsModule],
|
|
8
|
+
exports: [AXDrawerComponent],
|
|
9
|
+
providers: []
|
|
10
|
+
})
|
|
11
|
+
export class AXDrawerModule {}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<div class="ax form-item {{size}}" [class.readonly]="readonly" [attr.id]="uid" [class.disabled]="disabled" #el>
|
|
2
|
+
<div class="ax items-wrapper">
|
|
3
|
+
<ng-content select="[start]">
|
|
4
|
+
</ng-content>
|
|
5
|
+
</div>
|
|
6
|
+
<div class="content">
|
|
7
|
+
<ng-content select="ng-container[header]">
|
|
8
|
+
</ng-content>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="ax items-wrapper">
|
|
11
|
+
<ax-button *ngIf="showDropDownButton" [disabled]="disabled || readonly" [loading]="loading" icon="far fa-angle-down icon"
|
|
12
|
+
type="light blank" [size]="size" (click)="handleArrowClick($event)" [tabIndex]="-1">
|
|
13
|
+
</ax-button>
|
|
14
|
+
<ng-content select="[end]">
|
|
15
|
+
</ng-content>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<ng-template #baseTemplate>
|
|
20
|
+
<!-- [ngStyle]="{'width': dropdownWidth ? dropdownWidth + 'px' : 'unset'}" -->
|
|
21
|
+
<div class="ax-dropdown-container-bordered" [ngStyle]="{'width': dropdownWidth ? dropdownWidth + 'px' : 'unset'}" >
|
|
22
|
+
<ng-content select="ng-container[panel]">
|
|
23
|
+
</ng-content>
|
|
24
|
+
</div>
|
|
25
|
+
</ng-template>
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
ViewEncapsulation,
|
|
4
|
+
ChangeDetectionStrategy,
|
|
5
|
+
ViewChild,
|
|
6
|
+
Input,
|
|
7
|
+
ElementRef,
|
|
8
|
+
AfterViewInit,
|
|
9
|
+
HostListener,
|
|
10
|
+
Output,
|
|
11
|
+
EventEmitter,
|
|
12
|
+
ChangeDetectorRef,
|
|
13
|
+
ViewContainerRef,
|
|
14
|
+
TemplateRef,
|
|
15
|
+
OnDestroy,
|
|
16
|
+
DebugElement
|
|
17
|
+
} from '@angular/core';
|
|
18
|
+
import { AXBaseDropdownComponent } from '../base/element.class';
|
|
19
|
+
import { AXHtmlEvent } from '../base/events.class';
|
|
20
|
+
import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
21
|
+
import { TemplatePortal } from '@angular/cdk/portal';
|
|
22
|
+
import { AXConfig } from '@acorex/core';
|
|
23
|
+
|
|
24
|
+
@Component({
|
|
25
|
+
selector: 'ax-drop-down',
|
|
26
|
+
templateUrl: './dropdown.component.html',
|
|
27
|
+
styleUrls: ['./dropdown.component.scss'],
|
|
28
|
+
encapsulation: ViewEncapsulation.None,
|
|
29
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
|
+
host: { style: 'display:contents;' }
|
|
31
|
+
})
|
|
32
|
+
export class AXDropdownComponent extends AXBaseDropdownComponent implements AfterViewInit, OnDestroy {
|
|
33
|
+
@ViewChild('baseTemplate') baseTemplate: TemplateRef<any>;
|
|
34
|
+
@ViewChild('content', { static: false }) content: ElementRef<HTMLDivElement>;
|
|
35
|
+
@ViewChild('endButtons', { static: false }) endButtons: ElementRef<HTMLDivElement>;
|
|
36
|
+
@ViewChild('el', { static: true }) dropdownEL: ElementRef<HTMLDivElement>;
|
|
37
|
+
|
|
38
|
+
@Input()
|
|
39
|
+
rtl: boolean = AXConfig.get('layout.rtl');
|
|
40
|
+
|
|
41
|
+
@Input()
|
|
42
|
+
readonly: boolean = false;
|
|
43
|
+
|
|
44
|
+
@Input()
|
|
45
|
+
loading: boolean = false;
|
|
46
|
+
|
|
47
|
+
@Output()
|
|
48
|
+
dropdownToggle: EventEmitter<any> = new EventEmitter<any>();
|
|
49
|
+
|
|
50
|
+
@Output()
|
|
51
|
+
onButtonClick: EventEmitter<AXHtmlEvent<MouseEvent>> = new EventEmitter<AXHtmlEvent<MouseEvent>>();
|
|
52
|
+
|
|
53
|
+
@HostListener('keydown', ['$event'])
|
|
54
|
+
onKeydownHandler(e: KeyboardEvent) {
|
|
55
|
+
if (!this.disabled && e.key === 'Enter' && e.type === 'keydown') {
|
|
56
|
+
if (!this.readonly) {
|
|
57
|
+
this.toggle();
|
|
58
|
+
// this.dropdownToggle.emit({ mode: 'enter' });
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
if (e.key === 'Escape') {
|
|
62
|
+
if (this.isOpen) {
|
|
63
|
+
this.close();
|
|
64
|
+
e.stopPropagation();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
dropdownWidth: number;
|
|
70
|
+
|
|
71
|
+
private overlayRef: OverlayRef;
|
|
72
|
+
private templatePortal: TemplatePortal;
|
|
73
|
+
|
|
74
|
+
constructor(
|
|
75
|
+
private cdr: ChangeDetectorRef,
|
|
76
|
+
private ref: ElementRef<HTMLDivElement>,
|
|
77
|
+
private overlay: Overlay,
|
|
78
|
+
private viewContainerRef: ViewContainerRef
|
|
79
|
+
) {
|
|
80
|
+
super();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
ngOnInit(): void {
|
|
84
|
+
if (this.rtl == null) {
|
|
85
|
+
this.rtl = window.getComputedStyle(this.ref.nativeElement, null).getPropertyValue('direction') === 'rtl';
|
|
86
|
+
}
|
|
87
|
+
setTimeout(() => {
|
|
88
|
+
this.ref.nativeElement.classList.add(this.rtl ? 'rtl' : 'ltr');
|
|
89
|
+
this.dropdownEL.nativeElement.classList.add(this.rtl ? 'rtl' : 'ltr');
|
|
90
|
+
}, 5);
|
|
91
|
+
}
|
|
92
|
+
ngAfterViewInit(): void {
|
|
93
|
+
// Todo: chech fitparent
|
|
94
|
+
if (this.fitParent === true) {
|
|
95
|
+
this.dropdownWidth = this.dropdownEL.nativeElement.offsetWidth;
|
|
96
|
+
} else {
|
|
97
|
+
this.dropdownWidth = 260;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
setTimeout(() => {
|
|
101
|
+
if (this.endButtons && this.endButtons.nativeElement.childNodes.length !== 0) {
|
|
102
|
+
this.content.nativeElement.style.paddingInlineEnd = this.endButtons.nativeElement.clientWidth + 'px';
|
|
103
|
+
}
|
|
104
|
+
}, 5);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
ngOnDestroy(): void {
|
|
108
|
+
this.overlayRef?.detach();
|
|
109
|
+
this.overlayRef?.dispose();
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
handleArrowClick(e: AXHtmlEvent<MouseEvent>) {
|
|
113
|
+
setTimeout(() => {
|
|
114
|
+
this.toggle();
|
|
115
|
+
}, 0);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
toggle() {
|
|
119
|
+
if (this.disabled !== true) {
|
|
120
|
+
this.isOpen ? this.close() : this.open();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
close() {
|
|
125
|
+
if (!this.isOpen) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
this.overlayRef?.detach();
|
|
129
|
+
this.dropdownToggle.emit({ mode: 'close' });
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
open() {
|
|
133
|
+
if (this.isOpen) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
this.ensureOverlayCreated();
|
|
137
|
+
this.overlayRef.attach(this.templatePortal);
|
|
138
|
+
this.dropdownToggle.emit({ mode: 'open' });
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
private ensureOverlayCreated() {
|
|
142
|
+
if (!this.overlayRef) {
|
|
143
|
+
const targetEl = document.querySelector<HTMLElement>('#' + this.uid);
|
|
144
|
+
const positionStrategy = this.overlay
|
|
145
|
+
.position()
|
|
146
|
+
.flexibleConnectedTo(targetEl)
|
|
147
|
+
.withPositions([
|
|
148
|
+
{
|
|
149
|
+
originX: 'start',
|
|
150
|
+
originY: 'bottom',
|
|
151
|
+
overlayX: 'start',
|
|
152
|
+
overlayY: 'top'
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
originX: 'start',
|
|
156
|
+
originY: 'bottom',
|
|
157
|
+
overlayX: 'start',
|
|
158
|
+
overlayY: 'bottom'
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
originX: 'end',
|
|
162
|
+
originY: 'bottom',
|
|
163
|
+
overlayX: 'end',
|
|
164
|
+
overlayY: 'top'
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
originX: 'end',
|
|
168
|
+
originY: 'bottom',
|
|
169
|
+
overlayX: 'end',
|
|
170
|
+
overlayY: 'bottom'
|
|
171
|
+
}
|
|
172
|
+
])
|
|
173
|
+
.withPush(false);
|
|
174
|
+
this.overlayRef = this.overlay.create({
|
|
175
|
+
positionStrategy,
|
|
176
|
+
|
|
177
|
+
//width: this.dropdownEL.nativeElement.clientWidth,
|
|
178
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition({
|
|
179
|
+
autoClose: true
|
|
180
|
+
}),
|
|
181
|
+
hasBackdrop: true,
|
|
182
|
+
backdropClass: 'cdk-overlay-transparent-backdrop'
|
|
183
|
+
});
|
|
184
|
+
this.overlayRef.setDirection(this.rtl ? 'rtl' : 'ltr');
|
|
185
|
+
this.overlayRef.backdropClick().subscribe(() => this.close());
|
|
186
|
+
}
|
|
187
|
+
if (!this.templatePortal) {
|
|
188
|
+
this.templatePortal = new TemplatePortal(this.baseTemplate, this.viewContainerRef);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
get isOpen(): boolean {
|
|
193
|
+
return this.overlayRef ? this.overlayRef.hasAttached() : false;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
updatePosition(): void {
|
|
197
|
+
this.overlayRef?.updatePosition();
|
|
198
|
+
}
|
|
199
|
+
focus() {}
|
|
200
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { AXDropdownComponent } from './dropdown.component';
|
|
4
|
+
import { AXFormGroupModule } from '../form-group/form-group.module';
|
|
5
|
+
import { AXTextBoxModule } from '../textbox/textbox.module';
|
|
6
|
+
import { AXButtonModule } from '../button/button.module';
|
|
7
|
+
import { AXPopoverModule } from '../popover/popover.module';
|
|
8
|
+
import { OverlayModule } from '@angular/cdk/overlay';
|
|
9
|
+
|
|
10
|
+
const COMPONENT = [AXDropdownComponent];
|
|
11
|
+
const MODULES = [CommonModule, AXFormGroupModule, AXTextBoxModule, AXButtonModule, AXPopoverModule, OverlayModule];
|
|
12
|
+
|
|
13
|
+
@NgModule({
|
|
14
|
+
declarations: [...COMPONENT],
|
|
15
|
+
imports: [...MODULES],
|
|
16
|
+
exports: [...COMPONENT],
|
|
17
|
+
providers: [],
|
|
18
|
+
})
|
|
19
|
+
export class AXDropdownModule { }
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Component, OnInit, ViewEncapsulation, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
2
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
3
|
+
import { AXBaseSizableComponent, AXElementSize } from '../base/element.class';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'ax-fieldset',
|
|
7
|
+
templateUrl: './fieldset.component.html',
|
|
8
|
+
encapsulation: ViewEncapsulation.None,
|
|
9
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
|
+
animations: [
|
|
11
|
+
trigger('visibilityChanged', [
|
|
12
|
+
state(
|
|
13
|
+
'shown',
|
|
14
|
+
style({
|
|
15
|
+
height: '*',
|
|
16
|
+
opacity: 1
|
|
17
|
+
})
|
|
18
|
+
),
|
|
19
|
+
state(
|
|
20
|
+
'hidden',
|
|
21
|
+
style({
|
|
22
|
+
height: '0px',
|
|
23
|
+
opacity: 0,
|
|
24
|
+
padding: 0
|
|
25
|
+
})
|
|
26
|
+
),
|
|
27
|
+
transition('Void => *', animate('0ms')),
|
|
28
|
+
transition('shown => hidden', animate('200ms')),
|
|
29
|
+
transition('hidden => shown', animate('200ms'))
|
|
30
|
+
])
|
|
31
|
+
]
|
|
32
|
+
})
|
|
33
|
+
export class AXFieldsetComponent implements AXBaseSizableComponent {
|
|
34
|
+
@Input()
|
|
35
|
+
size: AXElementSize = "md";
|
|
36
|
+
|
|
37
|
+
@Input()
|
|
38
|
+
caption: string = '';
|
|
39
|
+
|
|
40
|
+
@Input()
|
|
41
|
+
allowCollapse: boolean = false;
|
|
42
|
+
|
|
43
|
+
collapsed: boolean = false;
|
|
44
|
+
toggle() {
|
|
45
|
+
if (this.allowCollapse) {
|
|
46
|
+
this.collapsed = !this.collapsed;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { AXFieldsetComponent } from './fieldset.component';
|
|
4
|
+
|
|
5
|
+
@NgModule({
|
|
6
|
+
declarations: [AXFieldsetComponent],
|
|
7
|
+
imports: [ CommonModule ],
|
|
8
|
+
exports: [AXFieldsetComponent],
|
|
9
|
+
providers: [],
|
|
10
|
+
})
|
|
11
|
+
export class AXFieldsetModule {}
|