@acorex/components 6.5.27 → 6.5.29
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/acorex-components.d.ts +5 -0
- package/esm2020/acorex-components.mjs +5 -0
- package/esm2020/lib/accordion/accordion.component.mjs +44 -0
- package/esm2020/lib/accordion/accordion.module.mjs +20 -0
- package/esm2020/lib/base/base-page.class.mjs +94 -0
- package/esm2020/lib/base/components.class.mjs +17 -0
- package/esm2020/lib/base/element.class.mjs +294 -0
- package/esm2020/lib/base/events.class.mjs +11 -0
- package/esm2020/lib/button/button.component.mjs +71 -0
- package/esm2020/lib/button/button.module.mjs +21 -0
- package/esm2020/lib/calendar/calendar-box/calendar-box.component.mjs +413 -0
- package/esm2020/lib/calendar/calendar-box/calendar-box.module.mjs +22 -0
- package/esm2020/lib/calendar/scheduler/scheduler-views.property.mjs +54 -0
- package/esm2020/lib/calendar/scheduler/scheduler.class.mjs +18 -0
- package/esm2020/lib/calendar/scheduler/scheduler.component.mjs +213 -0
- package/esm2020/lib/calendar/scheduler/scheduler.module.mjs +68 -0
- package/esm2020/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.mjs +132 -0
- package/esm2020/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.mjs +37 -0
- package/esm2020/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.mjs +47 -0
- package/esm2020/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.mjs +95 -0
- package/esm2020/lib/calendar/scheduler/views/month/scheduler-month-view.component.mjs +204 -0
- package/esm2020/lib/calendar/scheduler/views/scheduler-view.component.mjs +99 -0
- package/esm2020/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.mjs +77 -0
- package/esm2020/lib/checkbox/checkbox.component.mjs +98 -0
- package/esm2020/lib/checkbox/checkbox.module.mjs +20 -0
- package/esm2020/lib/color-picker/color-box/color-box.component.mjs +422 -0
- package/esm2020/lib/color-picker/color-picker.component.mjs +82 -0
- package/esm2020/lib/color-picker/color-picker.module.mjs +24 -0
- package/esm2020/lib/context-menu/context-menu.component.mjs +65 -0
- package/esm2020/lib/context-menu/context-menu.directive.mjs +135 -0
- package/esm2020/lib/context-menu/context-menu.module.mjs +20 -0
- package/esm2020/lib/data-filter/columns/filter-column-date.component.mjs +138 -0
- package/esm2020/lib/data-filter/columns/filter-column-number.component.mjs +117 -0
- package/esm2020/lib/data-filter/columns/filter-column-selection.component.mjs +74 -0
- package/esm2020/lib/data-filter/columns/filter-column-string.component.mjs +117 -0
- package/esm2020/lib/data-filter/filter-panel/filter-panel.component.mjs +258 -0
- package/esm2020/lib/data-filter/filter.class.mjs +44 -0
- package/esm2020/lib/data-filter/filter.module.mjs +90 -0
- package/esm2020/lib/data-filter/toolbar/filter-toolbar.component.mjs +166 -0
- package/esm2020/lib/data-list/core/data-list.component.mjs +40 -0
- package/esm2020/lib/data-list/list/list.component.mjs +124 -0
- package/esm2020/lib/data-list/list/list.module.mjs +22 -0
- package/esm2020/lib/data-list/list/toolbar-list-view.component.mjs +85 -0
- package/esm2020/lib/data-source/datasource.component.mjs +47 -0
- package/esm2020/lib/data-source/datasource.module.mjs +18 -0
- package/esm2020/lib/data-source/read-param.mjs +5 -0
- package/esm2020/lib/date-picker/date-picker.component.mjs +702 -0
- package/esm2020/lib/date-picker/date-picker.module.mjs +25 -0
- package/esm2020/lib/dialog/dialog.component.mjs +24 -0
- package/esm2020/lib/dialog/dialog.module.mjs +21 -0
- package/esm2020/lib/dialog/dialog.service.mjs +150 -0
- package/esm2020/lib/drawer/content.component.mjs +18 -0
- package/esm2020/lib/drawer/drawer-container.component.mjs +36 -0
- package/esm2020/lib/drawer/drawer.component.mjs +142 -0
- package/esm2020/lib/drawer/drawer.module.mjs +23 -0
- package/esm2020/lib/dropdown/dropdown.component.mjs +176 -0
- package/esm2020/lib/dropdown/dropdown.module.mjs +26 -0
- package/esm2020/lib/fieldset/fieldset.component.mjs +59 -0
- package/esm2020/lib/fieldset/fieldset.module.mjs +19 -0
- package/esm2020/lib/form-group/form-group.component.mjs +34 -0
- package/esm2020/lib/form-group/form-group.module.mjs +21 -0
- package/esm2020/lib/label/label.component.mjs +19 -0
- package/esm2020/lib/label/label.module.mjs +21 -0
- package/esm2020/lib/loading/loading-indicator.component.mjs +17 -0
- package/esm2020/lib/loading/loading-panel.component.mjs +44 -0
- package/esm2020/lib/loading/loading.module.mjs +21 -0
- package/esm2020/lib/loading/loading.service.mjs +45 -0
- package/esm2020/lib/menu/menu-item.component.mjs +47 -0
- package/esm2020/lib/menu/menu.component.mjs +86 -0
- package/esm2020/lib/menu/menu.module.mjs +22 -0
- package/esm2020/lib/menu/menu2.component.mjs +96 -0
- package/esm2020/lib/number-box/number-box.component.mjs +622 -0
- package/esm2020/lib/number-box/number-box.module.mjs +21 -0
- package/esm2020/lib/page/content.component.mjs +32 -0
- package/esm2020/lib/page/footer.component.mjs +19 -0
- package/esm2020/lib/page/page.component.mjs +53 -0
- package/esm2020/lib/page/page.module.mjs +22 -0
- package/esm2020/lib/panel-box/panel-box.component.mjs +88 -0
- package/esm2020/lib/panel-box/panel-box.module.mjs +19 -0
- package/esm2020/lib/password-box/password-box.component.mjs +31 -0
- package/esm2020/lib/password-box/password-box.module.mjs +23 -0
- package/esm2020/lib/popover/custom-cdk-overlay.service.mjs +48 -0
- package/esm2020/lib/popover/overlay.service.mjs +90 -0
- package/esm2020/lib/popover/popover.component.mjs +127 -0
- package/esm2020/lib/popover/popover.module.mjs +19 -0
- package/esm2020/lib/popup/popup.component.mjs +147 -0
- package/esm2020/lib/popup/popup.module.mjs +25 -0
- package/esm2020/lib/popup/popup.service.mjs +93 -0
- package/esm2020/lib/progress-bar/progress-bar.component.mjs +19 -0
- package/esm2020/lib/progress-bar/progress-bar.module.mjs +19 -0
- package/esm2020/lib/property-editor/editors/check-editor/check-editor.mjs +61 -0
- package/esm2020/lib/property-editor/editors/check-editor/check.module.mjs +22 -0
- package/esm2020/lib/property-editor/editors/color-editor/color.editor.mjs +38 -0
- package/esm2020/lib/property-editor/editors/color-editor/color.module.mjs +24 -0
- package/esm2020/lib/property-editor/editors/column-editor/column.editor.mjs +115 -0
- package/esm2020/lib/property-editor/editors/column-editor/column.module.mjs +32 -0
- package/esm2020/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.mjs +211 -0
- package/esm2020/lib/property-editor/editors/conditional-color-editor/conditional-color.module.mjs +78 -0
- package/esm2020/lib/property-editor/editors/date-editor/date.editor.mjs +51 -0
- package/esm2020/lib/property-editor/editors/date-editor/date.module.mjs +24 -0
- package/esm2020/lib/property-editor/editors/number-editor/number.editor.mjs +63 -0
- package/esm2020/lib/property-editor/editors/number-editor/number.module.mjs +24 -0
- package/esm2020/lib/property-editor/editors/range-editor/range.editor.mjs +140 -0
- package/esm2020/lib/property-editor/editors/range-editor/range.module.mjs +61 -0
- package/esm2020/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.mjs +72 -0
- package/esm2020/lib/property-editor/editors/selectbox-editor/selectbox.editor.mjs +71 -0
- package/esm2020/lib/property-editor/editors/selectbox-editor/selectbox.module.mjs +25 -0
- package/esm2020/lib/property-editor/editors/selection-editor/selection-editor.mjs +69 -0
- package/esm2020/lib/property-editor/editors/selection-editor/selection.module.mjs +22 -0
- package/esm2020/lib/property-editor/editors/switch-editor/number.editor.mjs +29 -0
- package/esm2020/lib/property-editor/editors/switch-editor/number.module.mjs +25 -0
- package/esm2020/lib/property-editor/editors/text-editor/text.editor.mjs +32 -0
- package/esm2020/lib/property-editor/editors/text-editor/text.module.mjs +24 -0
- package/esm2020/lib/property-editor/editors/textarea-editor/textarea.editor.mjs +32 -0
- package/esm2020/lib/property-editor/editors/textarea-editor/textarea.module.mjs +24 -0
- package/esm2020/lib/property-editor/editors/time-editor/time.editor.mjs +43 -0
- package/esm2020/lib/property-editor/editors/time-editor/time.module.mjs +24 -0
- package/esm2020/lib/property-editor/property-editor-renderer.directive.mjs +154 -0
- package/esm2020/lib/property-editor/property-editor.class.mjs +101 -0
- package/esm2020/lib/property-editor/property-editor.module.mjs +196 -0
- package/esm2020/lib/query-builder/query-builder-group.component.mjs +124 -0
- package/esm2020/lib/query-builder/query-builder-popup/query-builder-popup.component.mjs +171 -0
- package/esm2020/lib/query-builder/query-builder-rule.component.mjs +395 -0
- package/esm2020/lib/query-builder/query-builder.class.mjs +20 -0
- package/esm2020/lib/query-builder/query-builder.component.mjs +82 -0
- package/esm2020/lib/query-builder/query-builder.module.mjs +62 -0
- package/esm2020/lib/query-builder/query-builder.service.mjs +197 -0
- package/esm2020/lib/search-bar/search-bar.component.mjs +283 -0
- package/esm2020/lib/search-bar/search-bar.module.mjs +63 -0
- package/esm2020/lib/searchbox/searchbox.component.mjs +79 -0
- package/esm2020/lib/searchbox/searchbox.module.mjs +24 -0
- package/esm2020/lib/selectbox/selectbox.component.mjs +961 -0
- package/esm2020/lib/selectbox/selectbox.module.mjs +44 -0
- package/esm2020/lib/selectbox/selectbox2.component.mjs +574 -0
- package/esm2020/lib/selection-list/selection-list.component.mjs +108 -0
- package/esm2020/lib/selection-list/selection-list.module.mjs +21 -0
- package/esm2020/lib/switch/switch.component.mjs +51 -0
- package/esm2020/lib/switch/switch.module.mjs +20 -0
- package/esm2020/lib/tab-page/tab-page-Renderer.component.mjs +71 -0
- package/esm2020/lib/tab-page/tab-page-host.component.mjs +116 -0
- package/esm2020/lib/tab-page/tab-page.module.mjs +21 -0
- package/esm2020/lib/tab-page/tab-page.service.mjs +156 -0
- package/esm2020/lib/tab-strip/tab-strip.component.mjs +36 -0
- package/esm2020/lib/tab-strip/tab-strip.module.mjs +19 -0
- package/esm2020/lib/tab-view/dynamic-tabs.directive.mjs +24 -0
- package/esm2020/lib/tab-view/tab-view.component.mjs +105 -0
- package/esm2020/lib/tab-view/tab-view.module.mjs +21 -0
- package/esm2020/lib/tab-view/tab.component.mjs +30 -0
- package/esm2020/lib/textarea/textarea.component.mjs +26 -0
- package/esm2020/lib/textarea/textarea.module.mjs +21 -0
- package/esm2020/lib/textbox/textbox.component.mjs +39 -0
- package/esm2020/lib/textbox/textbox.module.mjs +24 -0
- package/esm2020/lib/time-picker/time-picker.component.mjs +943 -0
- package/esm2020/lib/time-picker/time-picker.module.mjs +22 -0
- package/esm2020/lib/toast/toast-message/toast-message.component.mjs +74 -0
- package/esm2020/lib/toast/toast-wrapper/toast-wrapper.component.mjs +13 -0
- package/esm2020/lib/toast/toast.module.mjs +21 -0
- package/esm2020/lib/toast/toast.service.mjs +44 -0
- package/esm2020/lib/toolbar/group-button/toolbar-group-button.component.mjs +78 -0
- package/esm2020/lib/toolbar/menu/toolbar-menu.component.mjs +57 -0
- package/esm2020/lib/toolbar/search/toolbar-search.component.mjs +54 -0
- package/esm2020/lib/toolbar/title/toolbar-title.component.mjs +47 -0
- package/esm2020/lib/toolbar/toolbar-item.mjs +6 -0
- package/esm2020/lib/toolbar/toolbar.component.mjs +13 -0
- package/esm2020/lib/toolbar/toolbar.module.mjs +40 -0
- package/esm2020/lib/tooltip/tooltip.directive.mjs +100 -0
- package/esm2020/lib/tooltip/tooltip.module.mjs +19 -0
- package/esm2020/lib/tree-side-menu/tree-side-menu.component.mjs +646 -0
- package/esm2020/lib/tree-side-menu/tree-side-menu.module.mjs +35 -0
- package/esm2020/lib/tree-view/tree-view.component.mjs +775 -0
- package/esm2020/lib/tree-view/tree-view.module.mjs +22 -0
- package/esm2020/lib/upload-file/upload-file.component.mjs +208 -0
- package/esm2020/lib/upload-file/upload-file.events.mjs +2 -0
- package/esm2020/lib/upload-file/upload-file.module.mjs +24 -0
- package/esm2020/lib/validation/validation-form.component.mjs +65 -0
- package/esm2020/lib/validation/validation-rule.widget.mjs +111 -0
- package/esm2020/lib/validation/validation.class.mjs +2 -0
- package/esm2020/lib/validation/validation.component.mjs +89 -0
- package/esm2020/lib/validation/validation.module.mjs +34 -0
- package/esm2020/public-api.mjs +158 -0
- package/fesm2015/acorex-components.mjs +15988 -0
- package/fesm2015/acorex-components.mjs.map +1 -0
- package/fesm2020/acorex-components.mjs +15923 -0
- package/fesm2020/acorex-components.mjs.map +1 -0
- package/lib/accordion/accordion.component.d.ts +13 -0
- package/lib/accordion/accordion.module.d.ts +9 -0
- package/lib/base/base-page.class.d.ts +46 -0
- package/lib/base/components.class.d.ts +10 -0
- package/lib/base/element.class.d.ts +106 -0
- package/lib/base/events.class.d.ts +18 -0
- package/lib/button/button.component.d.ts +21 -0
- package/lib/button/button.module.d.ts +8 -0
- package/lib/calendar/calendar-box/calendar-box.component.d.ts +81 -0
- package/lib/calendar/calendar-box/calendar-box.module.d.ts +11 -0
- package/lib/calendar/scheduler/scheduler-views.property.d.ts +19 -0
- package/{src/lib/calendar/scheduler/scheduler.class.ts → lib/calendar/scheduler/scheduler.class.d.ts} +6 -20
- package/lib/calendar/scheduler/scheduler.component.d.ts +39 -0
- package/lib/calendar/scheduler/scheduler.module.d.ts +21 -0
- package/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.d.ts +25 -0
- package/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.d.ts +14 -0
- package/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.d.ts +16 -0
- package/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.d.ts +26 -0
- package/lib/calendar/scheduler/views/month/scheduler-month-view.component.d.ts +37 -0
- package/lib/calendar/scheduler/views/scheduler-view.component.d.ts +28 -0
- package/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.d.ts +24 -0
- package/lib/checkbox/checkbox.component.d.ts +30 -0
- package/lib/checkbox/checkbox.module.d.ts +9 -0
- package/lib/color-picker/color-box/color-box.component.d.ts +25 -0
- package/lib/color-picker/color-picker.component.d.ts +30 -0
- package/lib/color-picker/color-picker.module.d.ts +13 -0
- package/lib/context-menu/context-menu.component.d.ts +22 -0
- package/lib/context-menu/context-menu.directive.d.ts +38 -0
- package/lib/context-menu/context-menu.module.d.ts +9 -0
- package/lib/data-filter/columns/filter-column-date.component.d.ts +22 -0
- package/lib/data-filter/columns/filter-column-number.component.d.ts +15 -0
- package/lib/data-filter/columns/filter-column-selection.component.d.ts +18 -0
- package/lib/data-filter/columns/filter-column-string.component.d.ts +15 -0
- package/lib/data-filter/filter-panel/filter-panel.component.d.ts +45 -0
- package/lib/data-filter/filter.class.d.ts +40 -0
- package/lib/data-filter/filter.module.d.ts +24 -0
- package/lib/data-filter/toolbar/filter-toolbar.component.d.ts +25 -0
- package/lib/data-list/core/data-list.component.d.ts +15 -0
- package/lib/data-list/list/list.component.d.ts +40 -0
- package/lib/data-list/list/list.module.d.ts +11 -0
- package/lib/data-list/list/toolbar-list-view.component.d.ts +17 -0
- package/lib/data-source/datasource.component.d.ts +16 -0
- package/lib/data-source/datasource.module.d.ts +7 -0
- package/{src/lib/data-source/read-param.ts → lib/data-source/read-param.d.ts} +3 -13
- package/lib/date-picker/date-picker.component.d.ts +81 -0
- package/lib/date-picker/date-picker.module.d.ts +14 -0
- package/lib/dialog/dialog.component.d.ts +14 -0
- package/lib/dialog/dialog.module.d.ts +10 -0
- package/lib/dialog/dialog.service.d.ts +36 -0
- package/lib/drawer/content.component.d.ts +7 -0
- package/lib/drawer/drawer-container.component.d.ts +10 -0
- package/lib/drawer/drawer.component.d.ts +34 -0
- package/lib/drawer/drawer.module.d.ts +10 -0
- package/lib/dropdown/dropdown.component.d.ts +38 -0
- package/lib/dropdown/dropdown.module.d.ts +13 -0
- package/lib/fieldset/fieldset.component.d.ts +11 -0
- package/lib/fieldset/fieldset.module.d.ts +8 -0
- package/lib/form-group/form-group.component.d.ts +14 -0
- package/lib/form-group/form-group.module.d.ts +8 -0
- package/lib/label/label.component.d.ts +9 -0
- package/lib/label/label.module.d.ts +8 -0
- package/lib/loading/loading-indicator.component.d.ts +9 -0
- package/lib/loading/loading-panel.component.d.ts +13 -0
- package/lib/loading/loading.module.d.ts +10 -0
- package/lib/loading/loading.service.d.ts +13 -0
- package/lib/menu/menu-item.component.d.ts +18 -0
- package/lib/menu/menu.component.d.ts +35 -0
- package/lib/menu/menu.module.d.ts +11 -0
- package/lib/menu/menu2.component.d.ts +21 -0
- package/lib/number-box/number-box.component.d.ts +52 -0
- package/lib/number-box/number-box.module.d.ts +10 -0
- package/lib/page/content.component.d.ts +8 -0
- package/lib/page/footer.component.d.ts +5 -0
- package/lib/page/page.component.d.ts +16 -0
- package/lib/page/page.module.d.ts +11 -0
- package/lib/panel-box/panel-box.component.d.ts +19 -0
- package/lib/panel-box/panel-box.module.d.ts +8 -0
- package/lib/password-box/password-box.component.d.ts +12 -0
- package/lib/password-box/password-box.module.d.ts +10 -0
- package/lib/popover/custom-cdk-overlay.service.d.ts +19 -0
- package/lib/popover/overlay.service.d.ts +31 -0
- package/lib/popover/popover.component.d.ts +34 -0
- package/lib/popover/popover.module.d.ts +8 -0
- package/lib/popup/popup.component.d.ts +40 -0
- package/lib/popup/popup.module.d.ts +13 -0
- package/lib/popup/popup.service.d.ts +22 -0
- package/lib/progress-bar/progress-bar.component.d.ts +7 -0
- package/lib/progress-bar/progress-bar.module.d.ts +8 -0
- package/lib/property-editor/editors/check-editor/check-editor.d.ts +19 -0
- package/lib/property-editor/editors/check-editor/check.module.d.ts +11 -0
- package/lib/property-editor/editors/color-editor/color.editor.d.ts +13 -0
- package/lib/property-editor/editors/color-editor/color.module.d.ts +12 -0
- package/lib/property-editor/editors/column-editor/column.editor.d.ts +34 -0
- package/lib/property-editor/editors/column-editor/column.module.d.ts +20 -0
- package/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.d.ts +44 -0
- package/lib/property-editor/editors/conditional-color-editor/conditional-color.module.d.ts +19 -0
- package/lib/property-editor/editors/date-editor/date.editor.d.ts +28 -0
- package/lib/property-editor/editors/date-editor/date.module.d.ts +12 -0
- package/lib/property-editor/editors/number-editor/number.editor.d.ts +20 -0
- package/lib/property-editor/editors/number-editor/number.module.d.ts +12 -0
- package/lib/property-editor/editors/range-editor/range.editor.d.ts +29 -0
- package/lib/property-editor/editors/range-editor/range.module.d.ts +18 -0
- package/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.d.ts +29 -0
- package/lib/property-editor/editors/selectbox-editor/selectbox.editor.d.ts +28 -0
- package/lib/property-editor/editors/selectbox-editor/selectbox.module.d.ts +14 -0
- package/lib/property-editor/editors/selection-editor/selection-editor.d.ts +25 -0
- package/lib/property-editor/editors/selection-editor/selection.module.d.ts +11 -0
- package/lib/property-editor/editors/switch-editor/number.editor.d.ts +11 -0
- package/lib/property-editor/editors/switch-editor/number.module.d.ts +13 -0
- package/lib/property-editor/editors/text-editor/text.editor.d.ts +18 -0
- package/lib/property-editor/editors/text-editor/text.module.d.ts +12 -0
- package/lib/property-editor/editors/textarea-editor/textarea.editor.d.ts +17 -0
- package/lib/property-editor/editors/textarea-editor/textarea.module.d.ts +12 -0
- package/lib/property-editor/editors/time-editor/time.editor.d.ts +17 -0
- package/lib/property-editor/editors/time-editor/time.module.d.ts +12 -0
- package/lib/property-editor/property-editor-renderer.directive.d.ts +30 -0
- package/lib/property-editor/property-editor.class.d.ts +92 -0
- package/lib/property-editor/property-editor.module.d.ts +21 -0
- package/lib/query-builder/query-builder-group.component.d.ts +33 -0
- package/lib/query-builder/query-builder-popup/query-builder-popup.component.d.ts +35 -0
- package/lib/query-builder/query-builder-rule.component.d.ts +45 -0
- package/lib/query-builder/query-builder.class.d.ts +45 -0
- package/lib/query-builder/query-builder.component.d.ts +27 -0
- package/lib/query-builder/query-builder.module.d.ts +23 -0
- package/lib/query-builder/query-builder.service.d.ts +18 -0
- package/lib/search-bar/search-bar.component.d.ts +61 -0
- package/lib/search-bar/search-bar.module.d.ts +18 -0
- package/lib/searchbox/searchbox.component.d.ts +22 -0
- package/lib/searchbox/searchbox.module.d.ts +13 -0
- package/lib/selectbox/selectbox.component.d.ts +118 -0
- package/lib/selectbox/selectbox.module.d.ts +15 -0
- package/lib/selectbox/selectbox2.component.d.ts +103 -0
- package/lib/selection-list/selection-list.component.d.ts +32 -0
- package/lib/selection-list/selection-list.module.d.ts +10 -0
- package/lib/switch/switch.component.d.ts +20 -0
- package/lib/switch/switch.module.d.ts +9 -0
- package/lib/tab-page/tab-page-Renderer.component.d.ts +16 -0
- package/lib/tab-page/tab-page-host.component.d.ts +25 -0
- package/lib/tab-page/tab-page.module.d.ts +10 -0
- package/lib/tab-page/tab-page.service.d.ts +30 -0
- package/lib/tab-strip/tab-strip.component.d.ts +28 -0
- package/lib/tab-strip/tab-strip.module.d.ts +8 -0
- package/lib/tab-view/dynamic-tabs.directive.d.ts +16 -0
- package/lib/tab-view/tab-view.component.d.ts +26 -0
- package/lib/tab-view/tab-view.module.d.ts +10 -0
- package/lib/tab-view/tab.component.d.ts +12 -0
- package/lib/textarea/textarea.component.d.ts +12 -0
- package/lib/textarea/textarea.module.d.ts +8 -0
- package/lib/textbox/textbox.component.d.ts +16 -0
- package/lib/textbox/textbox.module.d.ts +11 -0
- package/lib/time-picker/time-picker.component.d.ts +52 -0
- package/lib/time-picker/time-picker.module.d.ts +11 -0
- package/lib/toast/toast-message/toast-message.component.d.ts +18 -0
- package/lib/toast/toast-wrapper/toast-wrapper.component.d.ts +8 -0
- package/lib/toast/toast.module.d.ts +9 -0
- package/lib/toast/toast.service.d.ts +18 -0
- package/lib/toolbar/group-button/toolbar-group-button.component.d.ts +12 -0
- package/lib/toolbar/menu/toolbar-menu.component.d.ts +24 -0
- package/lib/toolbar/search/toolbar-search.component.d.ts +16 -0
- package/lib/toolbar/title/toolbar-title.component.d.ts +9 -0
- package/lib/toolbar/toolbar-item.d.ts +3 -0
- package/lib/toolbar/toolbar.component.d.ts +8 -0
- package/lib/toolbar/toolbar.module.d.ts +14 -0
- package/lib/tooltip/tooltip.directive.d.ts +21 -0
- package/lib/tooltip/tooltip.module.d.ts +8 -0
- package/lib/tree-side-menu/tree-side-menu.component.d.ts +111 -0
- package/lib/tree-side-menu/tree-side-menu.module.d.ts +11 -0
- package/lib/tree-view/tree-view.component.d.ts +121 -0
- package/lib/tree-view/tree-view.module.d.ts +11 -0
- package/lib/upload-file/upload-file.component.d.ts +42 -0
- package/lib/upload-file/upload-file.events.d.ts +10 -0
- package/lib/upload-file/upload-file.module.d.ts +13 -0
- package/lib/validation/validation-form.component.d.ts +19 -0
- package/lib/validation/validation-rule.widget.d.ts +23 -0
- package/lib/validation/validation.class.d.ts +16 -0
- package/lib/validation/validation.component.d.ts +25 -0
- package/lib/validation/validation.module.d.ts +11 -0
- package/package.json +32 -12
- package/{src/public-api.ts → public-api.d.ts} +2 -61
- package/karma.conf.js +0 -32
- package/ng-package.json +0 -10
- package/src/lib/accordion/accordion.component.ts +0 -43
- package/src/lib/accordion/accordion.module.ts +0 -11
- package/src/lib/accordion/api.ts +0 -2
- package/src/lib/base/base-page.class.ts +0 -116
- package/src/lib/base/components.class.ts +0 -9
- package/src/lib/base/element.class.ts +0 -344
- package/src/lib/base/events.class.ts +0 -32
- package/src/lib/button/button.component.html +0 -17
- package/src/lib/button/button.component.ts +0 -72
- package/src/lib/button/button.module.ts +0 -14
- package/src/lib/calendar/calendar-box/calendar-box.component.html +0 -68
- package/src/lib/calendar/calendar-box/calendar-box.component.ts +0 -461
- package/src/lib/calendar/calendar-box/calendar-box.module.ts +0 -16
- package/src/lib/calendar/scheduler/scheduler-views.property.ts +0 -38
- package/src/lib/calendar/scheduler/scheduler.component.html +0 -9
- package/src/lib/calendar/scheduler/scheduler.component.scss +0 -181
- package/src/lib/calendar/scheduler/scheduler.component.ts +0 -249
- package/src/lib/calendar/scheduler/scheduler.module.ts +0 -45
- package/src/lib/calendar/scheduler/toolbars/scheduler-toolbar-navigator.ts +0 -133
- package/src/lib/calendar/scheduler/toolbars/scheduler-toolbar-views.ts +0 -33
- package/src/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.html +0 -43
- package/src/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.scss +0 -66
- package/src/lib/calendar/scheduler/views/agenda/scheduler-agenda-view.component.ts +0 -50
- package/src/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.html +0 -45
- package/src/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.scss +0 -19
- package/src/lib/calendar/scheduler/views/daytime/scheduler-daytime-view.component.ts +0 -103
- package/src/lib/calendar/scheduler/views/month/scheduler-month-view.component.html +0 -39
- package/src/lib/calendar/scheduler/views/month/scheduler-month-view.component.scss +0 -55
- package/src/lib/calendar/scheduler/views/month/scheduler-month-view.component.ts +0 -233
- package/src/lib/calendar/scheduler/views/scheduler-view.component.ts +0 -124
- package/src/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.html +0 -50
- package/src/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.scss +0 -4
- package/src/lib/calendar/scheduler/views/timeline/scheduler-timeline-view.component.ts +0 -92
- package/src/lib/checkbox/checkbox.component.html +0 -22
- package/src/lib/checkbox/checkbox.component.ts +0 -107
- package/src/lib/checkbox/checkbox.module.ts +0 -11
- package/src/lib/color-picker/color-box/color-box.component.html +0 -37
- package/src/lib/color-picker/color-box/color-box.component.scss +0 -60
- package/src/lib/color-picker/color-box/color-box.component.ts +0 -438
- package/src/lib/color-picker/color-picker.component.html +0 -31
- package/src/lib/color-picker/color-picker.component.ts +0 -87
- package/src/lib/color-picker/color-picker.module.ts +0 -16
- package/src/lib/context-menu/context-menu.component.html +0 -42
- package/src/lib/context-menu/context-menu.component.ts +0 -78
- package/src/lib/context-menu/context-menu.directive.ts +0 -159
- package/src/lib/context-menu/context-menu.module.ts +0 -15
- package/src/lib/data-filter/columns/filter-column-date.component.ts +0 -123
- package/src/lib/data-filter/columns/filter-column-number.component.ts +0 -100
- package/src/lib/data-filter/columns/filter-column-selection.component.ts +0 -69
- package/src/lib/data-filter/columns/filter-column-string.component.ts +0 -100
- package/src/lib/data-filter/filter-panel/filter-panel.component.html +0 -120
- package/src/lib/data-filter/filter-panel/filter-panel.component.scss +0 -143
- package/src/lib/data-filter/filter-panel/filter-panel.component.ts +0 -266
- package/src/lib/data-filter/filter.class.ts +0 -73
- package/src/lib/data-filter/filter.module.ts +0 -52
- package/src/lib/data-filter/toolbar/filter-toolbar.component.html +0 -5
- package/src/lib/data-filter/toolbar/filter-toolbar.component.scss +0 -17
- package/src/lib/data-filter/toolbar/filter-toolbar.component.ts +0 -179
- package/src/lib/data-list/core/data-list.component.ts +0 -62
- package/src/lib/data-list/list/list.component.html +0 -32
- package/src/lib/data-list/list/list.component.scss +0 -64
- package/src/lib/data-list/list/list.component.ts +0 -149
- package/src/lib/data-list/list/list.module.ts +0 -14
- package/src/lib/data-list/list/toolbar-list-view.component.ts +0 -63
- package/src/lib/data-source/datasource.component.ts +0 -50
- package/src/lib/data-source/datasource.module.ts +0 -11
- package/src/lib/date-picker/date-picker.component.html +0 -30
- package/src/lib/date-picker/date-picker.component.scss +0 -5
- package/src/lib/date-picker/date-picker.component.ts +0 -720
- package/src/lib/date-picker/date-picker.module.ts +0 -17
- package/src/lib/dialog/dialog.component.html +0 -5
- package/src/lib/dialog/dialog.component.scss +0 -32
- package/src/lib/dialog/dialog.component.ts +0 -32
- package/src/lib/dialog/dialog.module.ts +0 -13
- package/src/lib/dialog/dialog.service.ts +0 -178
- package/src/lib/drawer/content.component.ts +0 -18
- package/src/lib/drawer/drawer-container.component.ts +0 -37
- package/src/lib/drawer/drawer.component.ts +0 -151
- package/src/lib/drawer/drawer.module.ts +0 -16
- package/src/lib/dropdown/dropdown.component.html +0 -26
- package/src/lib/dropdown/dropdown.component.scss +0 -8
- package/src/lib/dropdown/dropdown.component.ts +0 -197
- package/src/lib/dropdown/dropdown.module.ts +0 -19
- package/src/lib/fieldset/fieldset.component.html +0 -6
- package/src/lib/fieldset/fieldset.component.ts +0 -49
- package/src/lib/fieldset/fieldset.module.ts +0 -11
- package/src/lib/form-group/form-group.component.html +0 -15
- package/src/lib/form-group/form-group.component.ts +0 -39
- package/src/lib/form-group/form-group.module.ts +0 -14
- package/src/lib/label/label.component.html +0 -5
- package/src/lib/label/label.component.ts +0 -18
- package/src/lib/label/label.module.ts +0 -14
- package/src/lib/loading/loading-indicator.component.html +0 -27
- package/src/lib/loading/loading-indicator.component.ts +0 -16
- package/src/lib/loading/loading-panel.component.ts +0 -37
- package/src/lib/loading/loading.module.ts +0 -13
- package/src/lib/loading/loading.service.ts +0 -44
- package/src/lib/menu/menu-item.component.ts +0 -41
- package/src/lib/menu/menu.component.html +0 -74
- package/src/lib/menu/menu.component.ts +0 -111
- package/src/lib/menu/menu.module.ts +0 -13
- package/src/lib/menu/menu2.component.scss +0 -59
- package/src/lib/menu/menu2.component.ts +0 -98
- package/src/lib/number-box/number-box.component.html +0 -32
- package/src/lib/number-box/number-box.component.ts +0 -641
- package/src/lib/number-box/number-box.module.ts +0 -13
- package/src/lib/page/content.component.ts +0 -18
- package/src/lib/page/footer.component.ts +0 -13
- package/src/lib/page/page.component.ts +0 -43
- package/src/lib/page/page.module.ts +0 -14
- package/src/lib/panel-box/panel-box.component.html +0 -19
- package/src/lib/panel-box/panel-box.component.scss +0 -25
- package/src/lib/panel-box/panel-box.component.ts +0 -87
- package/src/lib/panel-box/panel-box.module.ts +0 -10
- package/src/lib/password-box/password-box.component.html +0 -22
- package/src/lib/password-box/password-box.component.ts +0 -30
- package/src/lib/password-box/password-box.module.ts +0 -16
- package/src/lib/popover/custom-cdk-overlay.service.ts +0 -82
- package/src/lib/popover/overlay.service.ts +0 -102
- package/src/lib/popover/popover.component.html +0 -5
- package/src/lib/popover/popover.component.scss +0 -9
- package/src/lib/popover/popover.component.ts +0 -130
- package/src/lib/popover/popover.module.ts +0 -11
- package/src/lib/popup/popup.component.html +0 -33
- package/src/lib/popup/popup.component.scss +0 -167
- package/src/lib/popup/popup.component.ts +0 -184
- package/src/lib/popup/popup.module.ts +0 -16
- package/src/lib/popup/popup.service.ts +0 -103
- package/src/lib/progress-bar/progress-bar.component.html +0 -5
- package/src/lib/progress-bar/progress-bar.component.ts +0 -10
- package/src/lib/progress-bar/progress-bar.module.ts +0 -11
- package/src/lib/property-editor/editors/check-editor/check-editor.ts +0 -44
- package/src/lib/property-editor/editors/check-editor/check.module.ts +0 -14
- package/src/lib/property-editor/editors/color-editor/color.editor.ts +0 -30
- package/src/lib/property-editor/editors/color-editor/color.module.ts +0 -20
- package/src/lib/property-editor/editors/column-editor/column.editor.html +0 -75
- package/src/lib/property-editor/editors/column-editor/column.editor.scss +0 -193
- package/src/lib/property-editor/editors/column-editor/column.editor.ts +0 -124
- package/src/lib/property-editor/editors/column-editor/column.module.ts +0 -28
- package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.html +0 -80
- package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.scss +0 -71
- package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.editor.ts +0 -232
- package/src/lib/property-editor/editors/conditional-color-editor/conditional-color.module.ts +0 -52
- package/src/lib/property-editor/editors/date-editor/date.editor.ts +0 -49
- package/src/lib/property-editor/editors/date-editor/date.module.ts +0 -20
- package/src/lib/property-editor/editors/number-editor/number.editor.ts +0 -46
- package/src/lib/property-editor/editors/number-editor/number.module.ts +0 -20
- package/src/lib/property-editor/editors/range-editor/range.editor.html +0 -67
- package/src/lib/property-editor/editors/range-editor/range.editor.scss +0 -68
- package/src/lib/property-editor/editors/range-editor/range.editor.ts +0 -153
- package/src/lib/property-editor/editors/range-editor/range.module.ts +0 -37
- package/src/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.html +0 -8
- package/src/lib/property-editor/editors/searchbar-selectbox-editor/searchbar-selectbox-editor.ts +0 -70
- package/src/lib/property-editor/editors/selectbox-editor/selectbox.editor.html +0 -8
- package/src/lib/property-editor/editors/selectbox-editor/selectbox.editor.ts +0 -77
- package/src/lib/property-editor/editors/selectbox-editor/selectbox.module.ts +0 -18
- package/src/lib/property-editor/editors/selection-editor/selection-editor.ts +0 -52
- package/src/lib/property-editor/editors/selection-editor/selection.module.ts +0 -14
- package/src/lib/property-editor/editors/switch-editor/number.editor.ts +0 -26
- package/src/lib/property-editor/editors/switch-editor/number.module.ts +0 -21
- package/src/lib/property-editor/editors/text-editor/text.editor.html +0 -5
- package/src/lib/property-editor/editors/text-editor/text.editor.ts +0 -31
- package/src/lib/property-editor/editors/text-editor/text.module.ts +0 -20
- package/src/lib/property-editor/editors/textarea-editor/textarea.editor.html +0 -9
- package/src/lib/property-editor/editors/textarea-editor/textarea.editor.ts +0 -37
- package/src/lib/property-editor/editors/textarea-editor/textarea.module.ts +0 -20
- package/src/lib/property-editor/editors/time-editor/time.editor.ts +0 -38
- package/src/lib/property-editor/editors/time-editor/time.module.ts +0 -20
- package/src/lib/property-editor/property-editor-renderer.directive.ts +0 -165
- package/src/lib/property-editor/property-editor.class.ts +0 -178
- package/src/lib/property-editor/property-editor.module.ts +0 -115
- package/src/lib/query-builder/query-builder-group.component.html +0 -68
- package/src/lib/query-builder/query-builder-group.component.ts +0 -122
- package/src/lib/query-builder/query-builder-popup/query-builder-popup.component.html +0 -82
- package/src/lib/query-builder/query-builder-popup/query-builder-popup.component.ts +0 -178
- package/src/lib/query-builder/query-builder-rule.component.html +0 -135
- package/src/lib/query-builder/query-builder-rule.component.ts +0 -390
- package/src/lib/query-builder/query-builder.class.ts +0 -53
- package/src/lib/query-builder/query-builder.component.html +0 -3
- package/src/lib/query-builder/query-builder.component.scss +0 -286
- package/src/lib/query-builder/query-builder.component.ts +0 -220
- package/src/lib/query-builder/query-builder.module.ts +0 -44
- package/src/lib/query-builder/query-builder.service.ts +0 -188
- package/src/lib/search-bar/search-bar.component.html +0 -30
- package/src/lib/search-bar/search-bar.component.scss +0 -114
- package/src/lib/search-bar/search-bar.component.ts +0 -287
- package/src/lib/search-bar/search-bar.module.ts +0 -33
- package/src/lib/searchbox/searchbox.component.html +0 -25
- package/src/lib/searchbox/searchbox.component.ts +0 -85
- package/src/lib/searchbox/searchbox.module.ts +0 -17
- package/src/lib/selectbox/selectbox.component.html +0 -100
- package/src/lib/selectbox/selectbox.component.ts +0 -984
- package/src/lib/selectbox/selectbox.module.ts +0 -31
- package/src/lib/selectbox/selectbox2.component.html +0 -78
- package/src/lib/selectbox/selectbox2.component.ts +0 -603
- package/src/lib/selection-list/selection-list.component.html +0 -21
- package/src/lib/selection-list/selection-list.component.ts +0 -115
- package/src/lib/selection-list/selection-list.module.ts +0 -13
- package/src/lib/switch/switch.component.html +0 -4
- package/src/lib/switch/switch.component.scss +0 -65
- package/src/lib/switch/switch.component.ts +0 -57
- package/src/lib/switch/switch.module.ts +0 -14
- package/src/lib/tab-page/tab-page-Renderer.component.ts +0 -70
- package/src/lib/tab-page/tab-page-host.component.ts +0 -110
- package/src/lib/tab-page/tab-page.module.ts +0 -13
- package/src/lib/tab-page/tab-page.service.ts +0 -176
- package/src/lib/tab-strip/tab-strip.component.html +0 -6
- package/src/lib/tab-strip/tab-strip.component.ts +0 -47
- package/src/lib/tab-strip/tab-strip.module.ts +0 -11
- package/src/lib/tab-view/dynamic-tabs.directive.ts +0 -17
- package/src/lib/tab-view/tab-view.component.html +0 -33
- package/src/lib/tab-view/tab-view.component.scss +0 -0
- package/src/lib/tab-view/tab-view.component.ts +0 -129
- package/src/lib/tab-view/tab-view.module.ts +0 -12
- package/src/lib/tab-view/tab.component.html +0 -8
- package/src/lib/tab-view/tab.component.ts +0 -15
- package/src/lib/textarea/textarea.component.html +0 -13
- package/src/lib/textarea/textarea.component.ts +0 -24
- package/src/lib/textarea/textarea.module.ts +0 -14
- package/src/lib/textbox/textbox.component.html +0 -22
- package/src/lib/textbox/textbox.component.ts +0 -38
- package/src/lib/textbox/textbox.module.ts +0 -16
- package/src/lib/time-picker/time-picker.component.html +0 -21
- package/src/lib/time-picker/time-picker.component.ts +0 -1003
- package/src/lib/time-picker/time-picker.module.ts +0 -15
- package/src/lib/toast/toast-message/toast-message.component.html +0 -17
- package/src/lib/toast/toast-message/toast-message.component.scss +0 -75
- package/src/lib/toast/toast-message/toast-message.component.ts +0 -64
- package/src/lib/toast/toast-wrapper/toast-wrapper.component.scss +0 -15
- package/src/lib/toast/toast-wrapper/toast-wrapper.component.ts +0 -13
- package/src/lib/toast/toast.module.ts +0 -12
- package/src/lib/toast/toast.service.ts +0 -64
- package/src/lib/toolbar/group-button/toolbar-group-button.component.ts +0 -54
- package/src/lib/toolbar/menu/toolbar-menu.component.html +0 -4
- package/src/lib/toolbar/menu/toolbar-menu.component.ts +0 -81
- package/src/lib/toolbar/search/toolbar-search.component.html +0 -4
- package/src/lib/toolbar/search/toolbar-search.component.scss +0 -24
- package/src/lib/toolbar/search/toolbar-search.component.ts +0 -61
- package/src/lib/toolbar/title/toolbar-title.component.ts +0 -35
- package/src/lib/toolbar/toolbar-item.ts +0 -4
- package/src/lib/toolbar/toolbar.component.html +0 -4
- package/src/lib/toolbar/toolbar.component.scss +0 -9
- package/src/lib/toolbar/toolbar.component.ts +0 -16
- package/src/lib/toolbar/toolbar.module.ts +0 -25
- package/src/lib/tooltip/tooltip.directive.ts +0 -101
- package/src/lib/tooltip/tooltip.module.ts +0 -11
- package/src/lib/tree-side-menu/tree-side-menu.component.html +0 -43
- package/src/lib/tree-side-menu/tree-side-menu.component.ts +0 -698
- package/src/lib/tree-side-menu/tree-side-menu.module.ts +0 -19
- package/src/lib/tree-view/tree-view.component.html +0 -46
- package/src/lib/tree-view/tree-view.component.ts +0 -835
- package/src/lib/tree-view/tree-view.module.ts +0 -16
- package/src/lib/upload-file/upload-file.component.html +0 -16
- package/src/lib/upload-file/upload-file.component.ts +0 -230
- package/src/lib/upload-file/upload-file.events.ts +0 -11
- package/src/lib/upload-file/upload-file.module.ts +0 -16
- package/src/lib/validation/validation-form.component.ts +0 -78
- package/src/lib/validation/validation-rule.widget.ts +0 -112
- package/src/lib/validation/validation.class.ts +0 -22
- package/src/lib/validation/validation.component.ts +0 -92
- package/src/lib/validation/validation.module.ts +0 -28
- package/src/test.ts +0 -28
- package/tsconfig.lib.json +0 -25
- package/tsconfig.lib.prod.json +0 -6
- package/tsconfig.spec.json +0 -17
- package/tslint.json +0 -17
@@ -1,16 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { AXTreeViewComponent } from './tree-view.component';
|
3
|
-
import { CommonModule } from '@angular/common';
|
4
|
-
import { AXDataSourceModule } from '../data-source/datasource.module';
|
5
|
-
import { AXCheckBoxModule } from '../checkbox/checkbox.module';
|
6
|
-
import { AXContextMenuModule } from '../context-menu/context-menu.module';
|
7
|
-
|
8
|
-
|
9
|
-
@NgModule({
|
10
|
-
declarations: [AXTreeViewComponent],
|
11
|
-
imports: [AXDataSourceModule, CommonModule, AXCheckBoxModule, AXContextMenuModule],
|
12
|
-
exports: [AXTreeViewComponent],
|
13
|
-
providers: []
|
14
|
-
})
|
15
|
-
|
16
|
-
export class AXTreeViewModule { }
|
@@ -1,16 +0,0 @@
|
|
1
|
-
<input #fileInput type="file" [accept]="accessTypes.join(',')" style="display: none;" (change)="onFileChange($event)" />
|
2
|
-
|
3
|
-
<ng-container *ngIf="type == 'inline'; else elseTemplate">
|
4
|
-
<ax-form-group size="{{size}}">
|
5
|
-
<ax-text-box [value]="fileName" readonly="true" [disabled]="disabled"></ax-text-box>
|
6
|
-
<ax-button type="blank light" icon="far fa-times" (click)="remove()" *ngIf="fileName" [tabIndex]="-1">
|
7
|
-
</ax-button>
|
8
|
-
<ax-button type="primary blank" icon="far fa-upload" (click)="open()" [disabled]="disabled" [tabIndex]="-1">
|
9
|
-
</ax-button>
|
10
|
-
</ax-form-group>
|
11
|
-
</ng-container>
|
12
|
-
|
13
|
-
<ng-template #elseTemplate>
|
14
|
-
<div class="ax upload-file-box" (click)="open()" #dropRef>
|
15
|
-
</div>
|
16
|
-
</ng-template>
|
@@ -1,230 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
Component,
|
3
|
-
ViewChild,
|
4
|
-
Input,
|
5
|
-
ElementRef,
|
6
|
-
ViewEncapsulation,
|
7
|
-
TemplateRef,
|
8
|
-
Renderer2,
|
9
|
-
EventEmitter,
|
10
|
-
Output,
|
11
|
-
ChangeDetectorRef
|
12
|
-
} from '@angular/core';
|
13
|
-
import { AXUploadFileLoadEvent, AXUploadFileProgressEvent } from './upload-file.events';
|
14
|
-
import { AXProgressBarComponent } from '../progress-bar/progress-bar.component';
|
15
|
-
import { AXBaseTextComponent, AXElementSize, AXBaseSizableComponent, AXBaseComponent } from '../base/element.class';
|
16
|
-
import { AXRenderService } from '@acorex/core';
|
17
|
-
|
18
|
-
@Component({
|
19
|
-
selector: 'ax-upload-file',
|
20
|
-
templateUrl: './upload-file.component.html',
|
21
|
-
encapsulation: ViewEncapsulation.None,
|
22
|
-
host: { style: 'display: block; width:100%; position: relative' }
|
23
|
-
})
|
24
|
-
export class AXUploadFileComponent extends AXBaseComponent implements AXBaseSizableComponent {
|
25
|
-
private overlayDiv: HTMLElement;
|
26
|
-
|
27
|
-
@Input()
|
28
|
-
contentType: 'image' | 'excel' | 'audio' | 'video' | 'video/image' = 'image';
|
29
|
-
|
30
|
-
@Input()
|
31
|
-
dropRef: HTMLElement;
|
32
|
-
|
33
|
-
@Input()
|
34
|
-
progressRef: HTMLElement;
|
35
|
-
|
36
|
-
@Input()
|
37
|
-
label: string;
|
38
|
-
|
39
|
-
@Input()
|
40
|
-
size: AXElementSize = "md";
|
41
|
-
|
42
|
-
@ViewChild('fileInput') fileInput: ElementRef;
|
43
|
-
|
44
|
-
@Input()
|
45
|
-
type: 'box' | 'inline' | 'hidden' = 'inline';
|
46
|
-
|
47
|
-
@Input()
|
48
|
-
public template: TemplateRef<any>;
|
49
|
-
|
50
|
-
@Input() disabled: boolean = false;
|
51
|
-
@Output()
|
52
|
-
onLoad: EventEmitter<AXUploadFileLoadEvent> = new EventEmitter<AXUploadFileLoadEvent>();
|
53
|
-
|
54
|
-
@Output()
|
55
|
-
onProgress: EventEmitter<AXUploadFileProgressEvent> = new EventEmitter<AXUploadFileProgressEvent>();
|
56
|
-
|
57
|
-
@Output()
|
58
|
-
onRemove: EventEmitter<any> = new EventEmitter();
|
59
|
-
|
60
|
-
fileTypes:any[] = [
|
61
|
-
{
|
62
|
-
type: 'image',
|
63
|
-
accept: ['image/gif', 'image/jpeg', 'image/png'],
|
64
|
-
},
|
65
|
-
{
|
66
|
-
type: 'audio',
|
67
|
-
accept: ['audio/mp3'],
|
68
|
-
},
|
69
|
-
{
|
70
|
-
type: 'ebook',
|
71
|
-
accept: ['application/pdf'],
|
72
|
-
},
|
73
|
-
{
|
74
|
-
type: 'excel',
|
75
|
-
accept: ['application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'],
|
76
|
-
},
|
77
|
-
{
|
78
|
-
type: 'video',
|
79
|
-
accept: ['video/*'],
|
80
|
-
},
|
81
|
-
{
|
82
|
-
type: 'video/image',
|
83
|
-
accept: ['image/gif', 'image/jpeg', 'image/png', 'video/*'],
|
84
|
-
},
|
85
|
-
];
|
86
|
-
|
87
|
-
|
88
|
-
files: File[] = [];
|
89
|
-
focus() { }
|
90
|
-
|
91
|
-
fileName: string = '';
|
92
|
-
constructor(
|
93
|
-
private el: ElementRef<HTMLElement>,
|
94
|
-
private injectionService: AXRenderService,
|
95
|
-
private rendrer: Renderer2,
|
96
|
-
protected cdr: ChangeDetectorRef
|
97
|
-
) {
|
98
|
-
super();
|
99
|
-
}
|
100
|
-
|
101
|
-
|
102
|
-
onDeleteClick(e) {
|
103
|
-
e.stopPropagation();
|
104
|
-
}
|
105
|
-
|
106
|
-
onFileChange(e) {
|
107
|
-
const files = e.target.files;
|
108
|
-
this.addFile(files[0]);
|
109
|
-
(this.fileInput.nativeElement as HTMLInputElement).value = null;
|
110
|
-
}
|
111
|
-
|
112
|
-
open() {
|
113
|
-
this.fileInput.nativeElement.click({accept:this.accessTypes});
|
114
|
-
}
|
115
|
-
remove() {
|
116
|
-
this.fileInput.nativeElement.value = ''
|
117
|
-
this.files = [];
|
118
|
-
this.fileName = null
|
119
|
-
this.onRemove.emit()
|
120
|
-
}
|
121
|
-
ngAfterViewInit(): void {
|
122
|
-
if (this.dropRef != null) {
|
123
|
-
} else {
|
124
|
-
this.dropRef = this.el.nativeElement;
|
125
|
-
}
|
126
|
-
//
|
127
|
-
if (this.progressRef != null) {
|
128
|
-
} else {
|
129
|
-
this.progressRef = this.el.nativeElement;
|
130
|
-
}
|
131
|
-
//
|
132
|
-
if (this.type === 'hidden' || this.type === 'box') {
|
133
|
-
this.overlayDiv = this.rendrer.createElement('div') as HTMLElement;
|
134
|
-
this.overlayDiv.classList.add('overlay');
|
135
|
-
this.overlayDiv.innerHTML = `
|
136
|
-
<div class="icon-wrapper">
|
137
|
-
<i class="far fa-cloud-upload-alt fa-3x"></i>
|
138
|
-
<span>Drop File(s) Here</span>
|
139
|
-
</div>
|
140
|
-
`;
|
141
|
-
this.overlayDiv.addEventListener('drag', this.handleOverlayDragOver);
|
142
|
-
this.overlayDiv.addEventListener('dragover', this.handleOverlayDragOver);
|
143
|
-
this.overlayDiv.addEventListener('dragleave', this.handleOverlayDragOver);
|
144
|
-
this.rendrer.appendChild(this.dropRef, this.overlayDiv);
|
145
|
-
}
|
146
|
-
//
|
147
|
-
this.dropRef.classList.add('ax-upload-drop-over');
|
148
|
-
this.dropRef.addEventListener('dragover', this.handleDragOver.bind(this));
|
149
|
-
this.dropRef.addEventListener('dragleave', this.handleDragLeave.bind(this));
|
150
|
-
this.dropRef.addEventListener('drop', this.handleDrop.bind(this));
|
151
|
-
}
|
152
|
-
|
153
|
-
private handleOverlayDragOver(e: DragEvent) {
|
154
|
-
e.preventDefault();
|
155
|
-
e.stopPropagation();
|
156
|
-
return false;
|
157
|
-
}
|
158
|
-
|
159
|
-
private handleDragOver(e: DragEvent) {
|
160
|
-
e.preventDefault();
|
161
|
-
e.stopPropagation();
|
162
|
-
this.overlayDiv.classList.add('show');
|
163
|
-
return false;
|
164
|
-
}
|
165
|
-
|
166
|
-
private handleDragLeave(e: DragEvent) {
|
167
|
-
e.preventDefault();
|
168
|
-
e.stopPropagation();
|
169
|
-
this.overlayDiv.classList.remove('show');
|
170
|
-
return false;
|
171
|
-
}
|
172
|
-
|
173
|
-
handleDrop(e: DragEvent) {
|
174
|
-
this.handleDragLeave(e);
|
175
|
-
for (let i = 0; i < e.dataTransfer.files.length; i++) {
|
176
|
-
const file = e.dataTransfer.files[i];
|
177
|
-
this.addFile(file);
|
178
|
-
}
|
179
|
-
}
|
180
|
-
|
181
|
-
private addFile(file: File) {
|
182
|
-
const progressDiv = this.rendrer.createElement('div') as HTMLElement;
|
183
|
-
progressDiv.classList.add('ax-upload-progress-panel');
|
184
|
-
const progressLabel = this.rendrer.createElement('small') as HTMLElement;
|
185
|
-
progressLabel.innerText = file.name;
|
186
|
-
this.fileName = file.name;
|
187
|
-
this.rendrer.appendChild(this.progressRef, progressDiv);
|
188
|
-
const com = this.injectionService.appendComponent(AXProgressBarComponent, { progress: 0 }, progressDiv).instance as AXProgressBarComponent;
|
189
|
-
this.rendrer.appendChild(progressDiv, progressLabel);
|
190
|
-
|
191
|
-
const reader = new FileReader();
|
192
|
-
reader.addEventListener('load', (e) => {
|
193
|
-
this.onLoad.emit({
|
194
|
-
file,
|
195
|
-
data: (e as any).target.result
|
196
|
-
});
|
197
|
-
//
|
198
|
-
// Fake Upload
|
199
|
-
let pv = 0;
|
200
|
-
let uploaded = 0;
|
201
|
-
const intv = setInterval(() => {
|
202
|
-
uploaded += 1024 * 1000;
|
203
|
-
if (uploaded > e.total) {
|
204
|
-
uploaded = e.total;
|
205
|
-
}
|
206
|
-
pv = Math.ceil((uploaded / e.total) * 100);
|
207
|
-
com.progress = pv;
|
208
|
-
this.onProgress.emit({
|
209
|
-
file,
|
210
|
-
total: e.total,
|
211
|
-
uploaded,
|
212
|
-
value: pv
|
213
|
-
});
|
214
|
-
//
|
215
|
-
if (com.progress >= 100) {
|
216
|
-
clearInterval(intv);
|
217
|
-
setTimeout(() => {
|
218
|
-
this.rendrer.removeChild(this.progressRef, progressDiv);
|
219
|
-
}, 1000);
|
220
|
-
}
|
221
|
-
}, 100);
|
222
|
-
});
|
223
|
-
reader.readAsDataURL(file);
|
224
|
-
this.files.push(file);
|
225
|
-
}
|
226
|
-
|
227
|
-
get accessTypes(): string[] {
|
228
|
-
return this.fileTypes.find((item) => item.type == this.contentType).accept;
|
229
|
-
}
|
230
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { AXUploadFileComponent } from './upload-file.component';
|
4
|
-
import { AXButtonModule } from '../button/button.module';
|
5
|
-
import { AXTextBoxModule } from '../textbox/textbox.module';
|
6
|
-
import { AXProgressBarModule } from '../progress-bar/progress-bar.module';
|
7
|
-
import { AXLabelModule } from '../label/label.module';
|
8
|
-
import { AXFormGroupModule } from '../form-group/form-group.module';
|
9
|
-
|
10
|
-
@NgModule({
|
11
|
-
declarations: [AXUploadFileComponent],
|
12
|
-
imports: [CommonModule, AXButtonModule, AXTextBoxModule, AXProgressBarModule, AXLabelModule, AXFormGroupModule],
|
13
|
-
exports: [AXUploadFileComponent],
|
14
|
-
providers: []
|
15
|
-
})
|
16
|
-
export class AXUploadFileModule {}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
Component,
|
3
|
-
OnInit,
|
4
|
-
QueryList,
|
5
|
-
ContentChildren,
|
6
|
-
Input,
|
7
|
-
Output,
|
8
|
-
EventEmitter,
|
9
|
-
ElementRef,
|
10
|
-
ChangeDetectorRef
|
11
|
-
} from '@angular/core';
|
12
|
-
import { AXValidationResult } from './validation.class';
|
13
|
-
import { AXValidatableComponent } from '../base/element.class';
|
14
|
-
import { AXBaseEvent } from '../base/events.class';
|
15
|
-
@Component({
|
16
|
-
selector: 'ax-validation-form',
|
17
|
-
template: '<ng-content></ng-content>'
|
18
|
-
})
|
19
|
-
export class AXValidationFormComponent {
|
20
|
-
|
21
|
-
constructor(private ref: ElementRef, private cdr: ChangeDetectorRef) { }
|
22
|
-
|
23
|
-
|
24
|
-
private widgets: AXValidatableComponent[] = [];
|
25
|
-
|
26
|
-
|
27
|
-
@ContentChildren(AXValidatableComponent, { descendants: true })
|
28
|
-
private widgetsQuery: QueryList<AXValidatableComponent>;
|
29
|
-
|
30
|
-
@Input()
|
31
|
-
validateOn: 'blur' | 'change' | 'submit' = 'submit';
|
32
|
-
|
33
|
-
@Output()
|
34
|
-
onInit: EventEmitter<AXBaseEvent> = new EventEmitter<AXBaseEvent>();
|
35
|
-
|
36
|
-
|
37
|
-
ngAfterViewInit() {
|
38
|
-
this.onInit.emit({
|
39
|
-
component: this,
|
40
|
-
htmlElement: this.ref.nativeElement
|
41
|
-
});
|
42
|
-
}
|
43
|
-
|
44
|
-
validate(): Promise<AXValidationResult> {
|
45
|
-
this.widgets.push(...this.widgetsQuery.toArray().filter(c => !this.widgets.includes(c)));
|
46
|
-
//
|
47
|
-
this.widgets.forEach(w => {
|
48
|
-
if (w.validation && w.validation.validateOn == null) {
|
49
|
-
w.validation.validateOn = this.validateOn;
|
50
|
-
}
|
51
|
-
});
|
52
|
-
|
53
|
-
return new Promise<AXValidationResult>(resolve => {
|
54
|
-
if (!this.widgets || this.widgets.length === 0) {
|
55
|
-
return Promise.resolve({ result: true });
|
56
|
-
}
|
57
|
-
Promise.all(this.widgets.map((c) => c.validate())).then((rules: any) => {
|
58
|
-
const failed = rules.filter((c: any) => !c.result);
|
59
|
-
if (failed.length) {
|
60
|
-
resolve({
|
61
|
-
result: false,
|
62
|
-
items: failed
|
63
|
-
});
|
64
|
-
}
|
65
|
-
else {
|
66
|
-
resolve({ result: true });
|
67
|
-
}
|
68
|
-
});
|
69
|
-
});
|
70
|
-
}
|
71
|
-
|
72
|
-
|
73
|
-
addWidget(widget: AXValidatableComponent) {
|
74
|
-
if(widget)
|
75
|
-
this.widgets.push(widget);
|
76
|
-
}
|
77
|
-
|
78
|
-
}
|
@@ -1,112 +0,0 @@
|
|
1
|
-
import { Component, ElementRef, Inject, inject, Input, Optional } from '@angular/core';
|
2
|
-
import { AXValidationRuleResult, AXValidationRule, AXValidationRuleTypes } from './validation.class';
|
3
|
-
import { AXTranslator } from '@acorex/core';
|
4
|
-
|
5
|
-
|
6
|
-
// @dynamic
|
7
|
-
export class AXValidationRules {
|
8
|
-
private static registredRules: { name: string, rule: AXValidationRule }[] = [];
|
9
|
-
|
10
|
-
public static addRule(name: string, rule: AXValidationRule) {
|
11
|
-
const exists = AXValidationRules.get(name);
|
12
|
-
if (exists) {
|
13
|
-
exists.rule = rule;
|
14
|
-
}
|
15
|
-
else {
|
16
|
-
AXValidationRules.registredRules.push({
|
17
|
-
name,
|
18
|
-
rule
|
19
|
-
});
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
public static get(name: string) {
|
24
|
-
return this.registredRules.find(c => c.name === name);
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
|
29
|
-
@Component({
|
30
|
-
selector: 'ax-validation-rule',
|
31
|
-
template: ''
|
32
|
-
})
|
33
|
-
export class AXValidationRuleComponent implements AXValidationRule {
|
34
|
-
@Input()
|
35
|
-
type: AXValidationRuleTypes = 'required';
|
36
|
-
@Input()
|
37
|
-
message: string;
|
38
|
-
@Input()
|
39
|
-
value: any;
|
40
|
-
|
41
|
-
@Input()
|
42
|
-
enabled: boolean = true;
|
43
|
-
|
44
|
-
|
45
|
-
constructor(
|
46
|
-
@Inject(ElementRef)
|
47
|
-
@Optional()
|
48
|
-
private ref?: ElementRef) {
|
49
|
-
if (ref)
|
50
|
-
ref.nativeElement["__axContext__"] = this;
|
51
|
-
}
|
52
|
-
|
53
|
-
validate(value: any): Promise<AXValidationRuleResult> {
|
54
|
-
if (this.enabled === false) {
|
55
|
-
return Promise.resolve({ result: true });
|
56
|
-
}
|
57
|
-
const regRule = AXValidationRules.get(this.type);
|
58
|
-
if (regRule) {
|
59
|
-
return this.internalValidate(regRule.rule.type, value, this.message || regRule.rule.message, regRule.rule.value);
|
60
|
-
}
|
61
|
-
else {
|
62
|
-
return this.internalValidate(this.type, value, this.message, this.value);
|
63
|
-
}
|
64
|
-
}
|
65
|
-
|
66
|
-
|
67
|
-
private internalValidate(type: string, value?: any, message?: string, ruleValue?: any): Promise<AXValidationRuleResult> {
|
68
|
-
return new Promise<AXValidationRuleResult>(resolve => {
|
69
|
-
switch (type) {
|
70
|
-
case 'required':
|
71
|
-
resolve({
|
72
|
-
message: message || AXTranslator.get('validation.messages.required'),
|
73
|
-
result: value != null && value != '' && (!Array.isArray(value) || (Array.isArray(value) && value.length > 0))
|
74
|
-
});
|
75
|
-
break;
|
76
|
-
case 'regex':
|
77
|
-
const ex = new RegExp(ruleValue);
|
78
|
-
resolve({
|
79
|
-
message: message || AXTranslator.get('validation.messages.regex'),
|
80
|
-
result: ex.test(value)
|
81
|
-
});
|
82
|
-
break;
|
83
|
-
case 'custom':
|
84
|
-
case 'callback':
|
85
|
-
if (typeof ruleValue === 'function') {
|
86
|
-
const res: any = {};
|
87
|
-
res.message = message;
|
88
|
-
const val = ruleValue({ value, message });
|
89
|
-
if (val instanceof Promise) {
|
90
|
-
val.then(c => {
|
91
|
-
res.result = c;
|
92
|
-
}).catch(c => {
|
93
|
-
res.result = false;
|
94
|
-
}).finally(() => {
|
95
|
-
resolve(res);
|
96
|
-
});
|
97
|
-
}
|
98
|
-
else {
|
99
|
-
res.result = val;
|
100
|
-
resolve(res);
|
101
|
-
}
|
102
|
-
}
|
103
|
-
else {
|
104
|
-
resolve({ result: true });
|
105
|
-
}
|
106
|
-
break;
|
107
|
-
default:
|
108
|
-
resolve({ result: true });
|
109
|
-
}
|
110
|
-
});
|
111
|
-
}
|
112
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
|
2
|
-
export type AXValidationRuleTypes = 'required' | 'regex' | 'callback' | 'custom';
|
3
|
-
|
4
|
-
export interface AXValidationRule {
|
5
|
-
message?: string;
|
6
|
-
type: AXValidationRuleTypes;
|
7
|
-
value?: any;
|
8
|
-
enabled?: boolean;
|
9
|
-
}
|
10
|
-
|
11
|
-
export interface AXValidationRuleResult {
|
12
|
-
message?: string;
|
13
|
-
result: boolean;
|
14
|
-
target?: any;
|
15
|
-
}
|
16
|
-
|
17
|
-
export interface AXValidationResult {
|
18
|
-
result: boolean;
|
19
|
-
items?: AXValidationRuleResult[];
|
20
|
-
}
|
21
|
-
|
22
|
-
|
@@ -1,92 +0,0 @@
|
|
1
|
-
import { Component, ContentChildren, QueryList, Input, Output, EventEmitter, Injectable, ElementRef, Optional, Inject } from '@angular/core';
|
2
|
-
import { AXValidatableComponent } from '../base/element.class';
|
3
|
-
import { AXValidationRuleComponent } from './validation-rule.widget';
|
4
|
-
import { AXValidationRule, AXValidationRuleResult } from './validation.class';
|
5
|
-
|
6
|
-
|
7
|
-
@Injectable()
|
8
|
-
export abstract class AXValidation {
|
9
|
-
|
10
|
-
abstract rules: AXValidationRule[];
|
11
|
-
validateOn: 'blur' | 'change' | 'submit' = 'submit';
|
12
|
-
showMessage: boolean;
|
13
|
-
|
14
|
-
validate(value: any): Promise<AXValidationRuleResult> {
|
15
|
-
if (!this.rules || this.rules.length === 0) {
|
16
|
-
return Promise.resolve({ result: true });
|
17
|
-
}
|
18
|
-
return new Promise<AXValidationRuleResult>(resolve => {
|
19
|
-
Promise.all(
|
20
|
-
this.rules.map(c => {
|
21
|
-
if (c instanceof AXValidationRuleComponent) {
|
22
|
-
return c.validate(value);
|
23
|
-
}
|
24
|
-
else {
|
25
|
-
const v = new AXValidationRuleComponent();
|
26
|
-
Object.assign(v, c);
|
27
|
-
return v.validate(value);
|
28
|
-
}
|
29
|
-
})
|
30
|
-
).then(d => {
|
31
|
-
const error = d.find(c => c.result === false);
|
32
|
-
if (error) {
|
33
|
-
resolve(error);
|
34
|
-
} else {
|
35
|
-
resolve({ result: true });
|
36
|
-
}
|
37
|
-
});
|
38
|
-
});
|
39
|
-
}
|
40
|
-
|
41
|
-
}
|
42
|
-
|
43
|
-
|
44
|
-
@Component({
|
45
|
-
selector: 'ax-validation',
|
46
|
-
template: '<ng-content></ng-content>',
|
47
|
-
providers: [{ provide: AXValidation, useExisting: AXValidationComponent }]
|
48
|
-
})
|
49
|
-
export class AXValidationComponent extends AXValidation {
|
50
|
-
|
51
|
-
_getComponenets(): AXValidationRule[] {
|
52
|
-
return Array.from(this.ref?.nativeElement.querySelectorAll('ax-validation-rule')).map(c => c["__axContext__"] as AXValidationRule);
|
53
|
-
}
|
54
|
-
|
55
|
-
constructor(
|
56
|
-
@Inject(ElementRef)
|
57
|
-
@Optional()
|
58
|
-
private ref?: ElementRef
|
59
|
-
) {
|
60
|
-
super();
|
61
|
-
}
|
62
|
-
|
63
|
-
|
64
|
-
@Output()
|
65
|
-
rulesChange: EventEmitter<AXValidationRule[]> = new EventEmitter<AXValidationRule[]>();
|
66
|
-
|
67
|
-
@Output()
|
68
|
-
showMessage: boolean = true;
|
69
|
-
|
70
|
-
private _rules: AXValidationRule[] = [];
|
71
|
-
|
72
|
-
@Input()
|
73
|
-
public get rules(): AXValidationRule[] {
|
74
|
-
return this._rules;
|
75
|
-
}
|
76
|
-
public set rules(v: AXValidationRule[]) {
|
77
|
-
this._rules = v;
|
78
|
-
if (this.rulesChange) {
|
79
|
-
this.rulesChange.emit(v);
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
@Input()
|
84
|
-
validateOn: 'blur' | 'change' | 'submit' = null;
|
85
|
-
|
86
|
-
|
87
|
-
ngAfterContentInit() {
|
88
|
-
if (this.rules && this.rules.length === 0) {
|
89
|
-
this.rules.push(...this._getComponenets());
|
90
|
-
}
|
91
|
-
}
|
92
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { NgModule } from '@angular/core';
|
2
|
-
import { CommonModule } from '@angular/common';
|
3
|
-
import { AXValidationFormComponent } from './validation-form.component';
|
4
|
-
import { AXValidationComponent } from './validation.component';
|
5
|
-
import { AXValidationRuleComponent, AXValidationRules } from './validation-rule.widget';
|
6
|
-
import { AXTranslator } from '@acorex/core';
|
7
|
-
|
8
|
-
|
9
|
-
@NgModule({
|
10
|
-
declarations: [AXValidationFormComponent, AXValidationComponent, AXValidationRuleComponent],
|
11
|
-
imports: [CommonModule],
|
12
|
-
exports: [AXValidationFormComponent, AXValidationComponent, AXValidationRuleComponent],
|
13
|
-
providers: []
|
14
|
-
})
|
15
|
-
export class AXValidationModule {
|
16
|
-
constructor() {
|
17
|
-
AXValidationRules.addRule('email', {
|
18
|
-
message: AXTranslator.get('validation.messages.email'),
|
19
|
-
type: 'regex',
|
20
|
-
value: /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/
|
21
|
-
})
|
22
|
-
AXValidationRules.addRule('phone', {
|
23
|
-
message: AXTranslator.get('validation.messages.phone'),
|
24
|
-
type: 'regex',
|
25
|
-
value: /^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$/
|
26
|
-
})
|
27
|
-
}
|
28
|
-
}
|
package/src/test.ts
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
2
|
-
|
3
|
-
import 'zone.js';
|
4
|
-
import 'zone.js/testing';
|
5
|
-
import { getTestBed } from '@angular/core/testing';
|
6
|
-
import {
|
7
|
-
BrowserDynamicTestingModule,
|
8
|
-
platformBrowserDynamicTesting
|
9
|
-
} from '@angular/platform-browser-dynamic/testing';
|
10
|
-
|
11
|
-
declare const require: {
|
12
|
-
context(path: string, deep?: boolean, filter?: RegExp): {
|
13
|
-
keys(): string[];
|
14
|
-
<T>(id: string): T;
|
15
|
-
};
|
16
|
-
};
|
17
|
-
|
18
|
-
// First, initialize the Angular testing environment.
|
19
|
-
getTestBed().initTestEnvironment(
|
20
|
-
BrowserDynamicTestingModule,
|
21
|
-
platformBrowserDynamicTesting(), {
|
22
|
-
teardown: { destroyAfterEach: false }
|
23
|
-
}
|
24
|
-
);
|
25
|
-
// Then we find all the tests.
|
26
|
-
const context = require.context('./', true, /\.spec\.ts$/);
|
27
|
-
// And load the modules.
|
28
|
-
context.keys().map(context);
|
package/tsconfig.lib.json
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"extends": "../../../tsconfig.json",
|
3
|
-
"compilerOptions": {
|
4
|
-
"outDir": "../../../out-tsc/lib",
|
5
|
-
"target": "es2015",
|
6
|
-
"declaration": true,
|
7
|
-
"inlineSources": true,
|
8
|
-
"esModuleInterop": true,
|
9
|
-
"skipLibCheck": true,
|
10
|
-
"types": [],
|
11
|
-
"lib": [
|
12
|
-
"dom",
|
13
|
-
"es2018"
|
14
|
-
]
|
15
|
-
},
|
16
|
-
"angularCompilerOptions": {
|
17
|
-
"skipTemplateCodegen": true,
|
18
|
-
"strictMetadataEmit": true,
|
19
|
-
"enableResourceInlining": true
|
20
|
-
},
|
21
|
-
"exclude": [
|
22
|
-
"src/test.ts",
|
23
|
-
"**/*.spec.ts"
|
24
|
-
]
|
25
|
-
}
|