@colijnit/corecomponents_v12 12.0.13 → 12.0.16
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/bundles/colijnit-corecomponents_v12.umd.js +7619 -0
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -0
- package/colijnit-corecomponents_v12.d.ts +26 -0
- package/colijnit-corecomponents_v12.metadata.json +1 -0
- package/esm2015/colijnit-corecomponents_v12.js +27 -0
- package/esm2015/lib/components/article-tile/article-tile.component.js +80 -0
- package/esm2015/lib/components/article-tile/article-tile.module.js +35 -0
- package/esm2015/lib/components/base/base-input.component.js +571 -0
- package/esm2015/lib/components/base/base.module.js +22 -0
- package/esm2015/lib/components/base/component-interface-name.js +4 -0
- package/esm2015/lib/components/base/configuration-adapter-component.interface.js +2 -0
- package/esm2015/lib/components/button/button.component.js +70 -0
- package/esm2015/lib/components/button/button.module.js +19 -0
- package/esm2015/lib/components/button-drop-down/button-drop-down.component.js +47 -0
- package/esm2015/lib/components/button-drop-down/button-drop-down.module.js +21 -0
- package/esm2015/lib/components/co-dialog/co-dialog.component.js +67 -0
- package/esm2015/lib/components/co-dialog/co-dialog.module.js +19 -0
- package/esm2015/lib/components/co-dialog-prompt/co-dialog-prompt.component.js +60 -0
- package/esm2015/lib/components/co-dialog-prompt/co-dialog-prompt.module.js +16 -0
- package/esm2015/lib/components/co-kanban/co-kanban.component.js +107 -0
- package/esm2015/lib/components/co-kanban/co-kanban.module.js +21 -0
- package/esm2015/lib/components/co-rich-text-editor/co-rich-text-editor.component.js +53 -0
- package/esm2015/lib/components/co-rich-text-editor/co-rich-text-editor.module.js +21 -0
- package/esm2015/lib/components/co-schedule/co-schedule.component.js +64 -0
- package/esm2015/lib/components/co-schedule/co-schedule.module.js +21 -0
- package/esm2015/lib/components/co-sidebar/co-sidebar.component.js +39 -0
- package/esm2015/lib/components/co-sidebar/co-sidebar.module.js +15 -0
- package/esm2015/lib/components/co-toggle/co-toggle.component.js +35 -0
- package/esm2015/lib/components/co-toggle/co-toggle.module.js +21 -0
- package/esm2015/lib/components/collapsible/collapsible.component.js +58 -0
- package/esm2015/lib/components/collapsible/collapsible.module.js +17 -0
- package/esm2015/lib/components/drop-down-list/drop-down-list.component.js +61 -0
- package/esm2015/lib/components/drop-down-list/drop-down.module.js +20 -0
- package/esm2015/lib/components/form/form.component.js +198 -0
- package/esm2015/lib/components/form/form.module.js +23 -0
- package/esm2015/lib/components/grid/base/base-grid.component.js +77 -0
- package/esm2015/lib/components/grid/base/base-inline-edit-grid.component.js +41 -0
- package/esm2015/lib/components/grid/base/base-selection-grid.component.js +83 -0
- package/esm2015/lib/components/grid/base/base-toolbar-grid.component.js +79 -0
- package/esm2015/lib/components/grid/co-grid.component.js +57 -0
- package/esm2015/lib/components/grid/co-grid.module.js +36 -0
- package/esm2015/lib/components/grid/enum/grid-lines.enum.js +9 -0
- package/esm2015/lib/components/grid/interface/grid-menu-event-args.js +2 -0
- package/esm2015/lib/components/grid/interface/grid-row-drag-event-args.js +2 -0
- package/esm2015/lib/components/grid/interface/grid-row-drop-event-args.js +2 -0
- package/esm2015/lib/components/icon/icon-cache.service.js +52 -0
- package/esm2015/lib/components/icon/icon.component.js +28 -0
- package/esm2015/lib/components/icon/icon.module.js +25 -0
- package/esm2015/lib/components/image/image.component.js +20 -0
- package/esm2015/lib/components/image/image.module.js +13 -0
- package/esm2015/lib/components/input-checkbox/input-checkbox.component.js +58 -0
- package/esm2015/lib/components/input-checkbox/input-checkbox.module.js +23 -0
- package/esm2015/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.component.js +68 -0
- package/esm2015/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.module.js +25 -0
- package/esm2015/lib/components/input-combo-box/input-combo-box.component.js +77 -0
- package/esm2015/lib/components/input-combo-box/input-combo-box.module.js +25 -0
- package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +95 -0
- package/esm2015/lib/components/input-date-picker/input-date-picker.module.js +28 -0
- package/esm2015/lib/components/input-listbox/input-listbox.component.js +66 -0
- package/esm2015/lib/components/input-listbox/input-listbox.module.js +25 -0
- package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +284 -0
- package/esm2015/lib/components/input-number-picker/input-number-picker.module.js +21 -0
- package/esm2015/lib/components/input-radio-button/input-radio-button.component.js +52 -0
- package/esm2015/lib/components/input-radio-button/input-radio-button.module.js +22 -0
- package/esm2015/lib/components/input-text/input-text.component.js +126 -0
- package/esm2015/lib/components/input-text/input-text.module.js +29 -0
- package/esm2015/lib/components/level-indicator/level-indicator-level.enum.js +7 -0
- package/esm2015/lib/components/level-indicator/level-indicator.component.js +34 -0
- package/esm2015/lib/components/level-indicator/level-indicator.module.js +15 -0
- package/esm2015/lib/components/multi-select-list/multi-select-list.component.js +69 -0
- package/esm2015/lib/components/multi-select-list/multi-select-list.module.js +19 -0
- package/esm2015/lib/components/pivot/co-pivot.component.js +171 -0
- package/esm2015/lib/components/pivot/co-pivot.module.js +19 -0
- package/esm2015/lib/components/popup/const/popup-window-token.js +3 -0
- package/esm2015/lib/components/popup/interface/popup-button.js +8 -0
- package/esm2015/lib/components/popup/interface/popup-close-event.js +2 -0
- package/esm2015/lib/components/popup/interface/popup-settings.js +42 -0
- package/esm2015/lib/components/popup/interface/popup.js +2 -0
- package/esm2015/lib/components/popup/model/popup-button-globals.js +11 -0
- package/esm2015/lib/components/popup/model/popup-window.js +38 -0
- package/esm2015/lib/components/popup/popup-buttons.component.js +53 -0
- package/esm2015/lib/components/popup/popup-message-display.component.js +47 -0
- package/esm2015/lib/components/popup/popup-window-shell.component.js +159 -0
- package/esm2015/lib/components/popup/popup.module.js +49 -0
- package/esm2015/lib/components/popup/service/popup-shower.service.js +87 -0
- package/esm2015/lib/components/popup/service/prompt.service.js +124 -0
- package/esm2015/lib/components/popup/text-input-popup.component.js +36 -0
- package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +36 -0
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +112 -0
- package/esm2015/lib/components/simple-grid/simple-grid.module.js +24 -0
- package/esm2015/lib/components/tile/tile.component.js +71 -0
- package/esm2015/lib/components/tile/tile.module.js +23 -0
- package/esm2015/lib/core/constant/default-upper-bound-for-range-components.js +3 -0
- package/esm2015/lib/core/constant/java-max-int.js +2 -0
- package/esm2015/lib/core/constant/number-inputs-key-down-white-list.js +44 -0
- package/esm2015/lib/core/decorator/input-boolean.decorator.js +34 -0
- package/esm2015/lib/core/enum/co-document-image-display-kind.enum.js +7 -0
- package/esm2015/lib/core/enum/co-document-type.enum.js +11 -0
- package/esm2015/lib/core/enum/core-components-icon.enum.js +58 -0
- package/esm2015/lib/core/enum/file-type-internal.enum.js +17 -0
- package/esm2015/lib/core/enum/file-type.enum.js +11 -0
- package/esm2015/lib/core/enum/float-label-type.enum.js +7 -0
- package/esm2015/lib/core/enum/input-number-picker-show-mode.enum.js +8 -0
- package/esm2015/lib/core/enum/input-text-type.enum.js +6 -0
- package/esm2015/lib/core/enum/keyboard-code.enum.js +74 -0
- package/esm2015/lib/core/enum/object-right-type.enum.js +7 -0
- package/esm2015/lib/core/enum/popup-button-type.enum.js +12 -0
- package/esm2015/lib/core/enum/popup-type.enum.js +11 -0
- package/esm2015/lib/core/enum/schedule-view.enum.js +16 -0
- package/esm2015/lib/core/enum/table-name.enum.js +81 -0
- package/esm2015/lib/core/function/any-nill.function.js +6 -0
- package/esm2015/lib/core/function/is-nill.function.js +5 -0
- package/esm2015/lib/core/function/none-nill.function.js +17 -0
- package/esm2015/lib/core/function/not-nill.function.js +5 -0
- package/esm2015/lib/core/model/bounds-constrained-number-value.js +171 -0
- package/esm2015/lib/core/model/check-precision-and-scale-result.js +2 -0
- package/esm2015/lib/core/model/check-within-stepped-bounds-result.js +2 -0
- package/esm2015/lib/core/model/co-document-right.bo.js +3 -0
- package/esm2015/lib/core/model/co-document.bo.js +121 -0
- package/esm2015/lib/core/model/core-components-icon-svg.js +56 -0
- package/esm2015/lib/core/model/element-position.js +10 -0
- package/esm2015/lib/core/model/event/string-prompt-result-event.js +8 -0
- package/esm2015/lib/core/model/numerical-range.js +14 -0
- package/esm2015/lib/core/service/form-input-user-change-listener.service.js +25 -0
- package/esm2015/lib/core/service/form-master.service.js +102 -0
- package/esm2015/lib/core/service/ng-zone-wrapper.service.js +20 -0
- package/esm2015/lib/core/utils/array-utils.js +264 -0
- package/esm2015/lib/core/utils/browser-utils.js +100 -0
- package/esm2015/lib/core/utils/event-utils.js +53 -0
- package/esm2015/lib/core/utils/file-utils.js +267 -0
- package/esm2015/lib/core/utils/number-utils.js +309 -0
- package/esm2015/lib/core/utils/object-utils.js +186 -0
- package/esm2015/lib/core/utils/string-utils.js +94 -0
- package/esm2015/lib/core/validator/max-string-length.validator.js +10 -0
- package/esm2015/lib/core/validator/precision-scale.validator.js +11 -0
- package/esm2015/lib/core/validator/required.validator.js +5 -0
- package/esm2015/lib/directives/ripple/ripple-ref.js +26 -0
- package/esm2015/lib/directives/ripple/ripple-renderer.js +160 -0
- package/esm2015/lib/directives/ripple/ripple.directive.js +80 -0
- package/esm2015/lib/directives/ripple/ripple.module.js +24 -0
- package/esm2015/lib/directives/ripple/scroll-dispatcher.service.js +108 -0
- package/esm2015/lib/directives/ripple/scrollable.directive.js +40 -0
- package/esm2015/lib/directives/ripple/viewport-ruler.service.js +73 -0
- package/esm2015/lib/directives/stopclick/stop-click.directive.js +38 -0
- package/esm2015/lib/directives/stopclick/stop-click.module.js +15 -0
- package/esm2015/lib/pipes/append.pipe.js +17 -0
- package/esm2015/lib/pipes/append.pipe.module.js +15 -0
- package/esm2015/lib/pipes/price-display-pipe.module.js +15 -0
- package/esm2015/lib/pipes/price-display.pipe.js +20 -0
- package/esm2015/public-api.js +72 -0
- package/fesm2015/colijnit-corecomponents_v12.js +6985 -0
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -0
- package/lib/components/article-tile/article-tile.component.d.ts +22 -0
- package/{src/lib → lib}/components/article-tile/article-tile.component.scss +0 -0
- package/lib/components/article-tile/article-tile.module.d.ts +2 -0
- package/lib/components/base/base-input.component.d.ts +146 -0
- package/lib/components/base/base.module.d.ts +2 -0
- package/lib/components/base/component-interface-name.d.ts +3 -0
- package/{src/lib/components/base/configuration-adapter-component.interface.ts → lib/components/base/configuration-adapter-component.interface.d.ts} +0 -0
- package/lib/components/button/button.component.d.ts +20 -0
- package/lib/components/button/button.module.d.ts +2 -0
- package/lib/components/button/style/_co-ripple.scss +69 -0
- package/lib/components/button/style/_layout.scss +64 -0
- package/lib/components/button/style/_material-definition.scss +9 -0
- package/lib/components/button/style/_theme.scss +81 -0
- package/lib/components/button/style/material.scss +22 -0
- package/lib/components/button-drop-down/button-drop-down.component.d.ts +16 -0
- package/lib/components/button-drop-down/button-drop-down.module.d.ts +2 -0
- package/lib/components/button-drop-down/style/_layout.scss +7 -0
- package/{src/lib/components/co-dialog-prompt/co-dialog-prompt.component.scss → lib/components/button-drop-down/style/_material-definition.scss} +0 -0
- package/lib/components/button-drop-down/style/_theme.scss +5 -0
- package/lib/components/button-drop-down/style/material.scss +4 -0
- package/{src/lib → lib}/components/card/card.scss +3 -1
- package/lib/components/co-dialog/co-dialog.component.d.ts +12 -0
- package/lib/components/co-dialog/co-dialog.module.d.ts +2 -0
- package/lib/components/co-dialog/style/_layout.scss +47 -0
- package/lib/components/co-dialog/style/_material-definition.scss +23 -0
- package/lib/components/co-dialog/style/_theme.scss +27 -0
- package/lib/components/co-dialog/style/material.scss +4 -0
- package/lib/components/co-dialog-prompt/co-dialog-prompt.component.d.ts +19 -0
- package/{src/lib/components/co-dialog/co-dialog.component.scss → lib/components/co-dialog-prompt/co-dialog-prompt.component.scss} +0 -0
- package/lib/components/co-dialog-prompt/co-dialog-prompt.module.d.ts +2 -0
- package/lib/components/co-kanban/co-kanban.component.d.ts +28 -0
- package/lib/components/co-kanban/co-kanban.module.d.ts +2 -0
- package/lib/components/co-kanban/style/_layout.scss +51 -0
- package/lib/components/co-kanban/style/_material-definition.scss +25 -0
- package/lib/components/co-kanban/style/_theme.scss +7 -0
- package/lib/components/co-kanban/style/material.scss +13 -0
- package/lib/components/co-rich-text-editor/co-rich-text-editor.component.d.ts +13 -0
- package/lib/components/co-rich-text-editor/co-rich-text-editor.module.d.ts +2 -0
- package/lib/components/co-rich-text-editor/style/_layout.scss +5 -0
- package/lib/components/co-rich-text-editor/style/_material-definition.scss +9 -0
- package/lib/components/co-rich-text-editor/style/_theme.scss +5 -0
- package/lib/components/co-rich-text-editor/style/material.scss +4 -0
- package/lib/components/co-schedule/co-schedule.component.d.ts +18 -0
- package/{src/lib → lib}/components/co-schedule/co-schedule.component.scss +0 -0
- package/lib/components/co-schedule/co-schedule.module.d.ts +2 -0
- package/lib/components/co-sidebar/co-sidebar.component.d.ts +10 -0
- package/{src/lib → lib}/components/co-sidebar/co-sidebar.component.scss +0 -0
- package/lib/components/co-sidebar/co-sidebar.module.d.ts +2 -0
- package/lib/components/co-toggle/co-toggle.component.d.ts +9 -0
- package/lib/components/co-toggle/co-toggle.component.scss +1 -0
- package/lib/components/co-toggle/co-toggle.module.d.ts +2 -0
- package/lib/components/collapsible/collapsible.component.d.ts +16 -0
- package/lib/components/collapsible/collapsible.module.d.ts +2 -0
- package/lib/components/collapsible/style/_layout.scss +53 -0
- package/lib/components/collapsible/style/_material-definition.scss +9 -0
- package/lib/components/collapsible/style/_theme.scss +9 -0
- package/lib/components/collapsible/style/material.scss +4 -0
- package/lib/components/drop-down-list/drop-down-list.component.d.ts +16 -0
- package/{src/lib → lib}/components/drop-down-list/drop-down-list.component.scss +0 -0
- package/lib/components/drop-down-list/drop-down.module.d.ts +2 -0
- package/lib/components/drop-down-list/style/_layout.scss +7 -0
- package/{src/lib/components/co-rich-text-editor/co-rich-text-editor.component.scss → lib/components/drop-down-list/style/_material-definition.scss} +0 -0
- package/lib/components/drop-down-list/style/_theme.scss +5 -0
- package/lib/components/drop-down-list/style/material.scss +4 -0
- package/lib/components/form/form.component.d.ts +40 -0
- package/lib/components/form/form.module.d.ts +2 -0
- package/lib/components/grid/base/base-grid.component.d.ts +24 -0
- package/lib/components/grid/base/base-inline-edit-grid.component.d.ts +9 -0
- package/lib/components/grid/base/base-selection-grid.component.d.ts +27 -0
- package/lib/components/grid/base/base-toolbar-grid.component.d.ts +17 -0
- package/lib/components/grid/co-grid.component.d.ts +6 -0
- package/lib/components/grid/co-grid.module.d.ts +2 -0
- package/{src/lib/components/grid/enum/grid-lines.enum.ts → lib/components/grid/enum/grid-lines.enum.d.ts} +2 -2
- package/lib/components/grid/interface/grid-menu-event-args.d.ts +3 -0
- package/lib/components/grid/interface/grid-row-drag-event-args.d.ts +3 -0
- package/lib/components/grid/interface/grid-row-drop-event-args.d.ts +3 -0
- package/lib/components/grid/style/_layout.scss +38 -0
- package/lib/components/grid/style/_material-definition.scss +17 -0
- package/lib/components/grid/style/_theme.scss +5 -0
- package/lib/components/grid/style/material.scss +4 -0
- package/lib/components/icon/icon-cache.service.d.ts +20 -0
- package/lib/components/icon/icon.component.d.ts +10 -0
- package/lib/components/icon/icon.module.d.ts +2 -0
- package/{src/lib → lib}/components/icon/icon.scss +3 -2
- package/lib/components/image/image.component.d.ts +4 -0
- package/lib/components/image/image.module.d.ts +2 -0
- package/lib/components/input-checkbox/input-checkbox.component.d.ts +16 -0
- package/lib/components/input-checkbox/input-checkbox.module.d.ts +2 -0
- package/lib/components/input-checkbox/style/_layout.scss +5 -0
- package/lib/components/input-checkbox/style/_material-definition.scss +2 -0
- package/lib/components/input-checkbox/style/_theme.scss +5 -0
- package/lib/components/input-checkbox/style/material.scss +4 -0
- package/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.component.d.ts +22 -0
- package/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.module.d.ts +2 -0
- package/lib/components/input-checkbox-multi-select/style/_layout.scss +5 -0
- package/lib/components/input-checkbox-multi-select/style/_material-definition.scss +7 -0
- package/lib/components/input-checkbox-multi-select/style/_theme.scss +5 -0
- package/lib/components/input-checkbox-multi-select/style/material.scss +4 -0
- package/lib/components/input-combo-box/input-combo-box.component.d.ts +25 -0
- package/lib/components/input-combo-box/input-combo-box.module.d.ts +2 -0
- package/lib/components/input-combo-box/style/_layout.scss +5 -0
- package/lib/components/input-combo-box/style/_material-definition.scss +7 -0
- package/lib/components/input-combo-box/style/_theme.scss +5 -0
- package/lib/components/input-combo-box/style/material.scss +4 -0
- package/lib/components/input-date-picker/input-date-picker.component.d.ts +30 -0
- package/lib/components/input-date-picker/input-date-picker.module.d.ts +2 -0
- package/lib/components/input-date-picker/style/_layout.scss +5 -0
- package/lib/components/input-date-picker/style/_material-definition.scss +8 -0
- package/lib/components/input-date-picker/style/_theme.scss +5 -0
- package/lib/components/input-date-picker/style/material.scss +4 -0
- package/lib/components/input-listbox/input-listbox.component.d.ts +14 -0
- package/lib/components/input-listbox/input-listbox.module.d.ts +2 -0
- package/lib/components/input-listbox/style/_layout.scss +22 -0
- package/lib/components/input-listbox/style/_material-definition.scss +10 -0
- package/lib/components/input-listbox/style/_theme.scss +14 -0
- package/lib/components/input-listbox/style/material.scss +4 -0
- package/lib/components/input-number-picker/input-number-picker.component.d.ts +65 -0
- package/lib/components/input-number-picker/input-number-picker.module.d.ts +2 -0
- package/lib/components/input-number-picker/style/_layout.scss +43 -0
- package/lib/components/input-number-picker/style/_material-definition.scss +17 -0
- package/lib/components/input-number-picker/style/_theme.scss +22 -0
- package/lib/components/input-number-picker/style/material.scss +4 -0
- package/lib/components/input-radio-button/input-radio-button.component.d.ts +15 -0
- package/lib/components/input-radio-button/input-radio-button.module.d.ts +2 -0
- package/lib/components/input-radio-button/style/_layout.scss +28 -0
- package/lib/components/input-radio-button/style/_material-definition.scss +9 -0
- package/lib/components/input-radio-button/style/_theme.scss +11 -0
- package/lib/components/input-radio-button/style/material.scss +4 -0
- package/lib/components/input-search/style/_layout.scss +42 -0
- package/lib/components/input-search/style/_material-definition.scss +6 -0
- package/lib/components/input-search/style/_theme.scss +10 -0
- package/lib/components/input-search/style/material.scss +4 -0
- package/lib/components/input-text/input-text.component.d.ts +47 -0
- package/lib/components/input-text/input-text.module.d.ts +2 -0
- package/lib/components/input-text/style/_layout.scss +5 -0
- package/lib/components/input-text/style/_material-definition.scss +3 -0
- package/lib/components/input-text/style/_theme.scss +5 -0
- package/lib/components/input-text/style/material.scss +4 -0
- package/{src/lib/components/level-indicator/level-indicator-level.enum.ts → lib/components/level-indicator/level-indicator-level.enum.d.ts} +2 -2
- package/lib/components/level-indicator/level-indicator.component.d.ts +9 -0
- package/lib/components/level-indicator/level-indicator.module.d.ts +2 -0
- package/{src/lib → lib}/components/level-indicator/level-indicator.scss +4 -2
- package/lib/components/multi-select-list/multi-select-list.component.d.ts +19 -0
- package/lib/components/multi-select-list/multi-select-list.module.d.ts +2 -0
- package/lib/components/multi-select-list/style/_layout.scss +5 -0
- package/lib/components/multi-select-list/style/_material-definition.scss +7 -0
- package/lib/components/multi-select-list/style/_theme.scss +5 -0
- package/lib/components/multi-select-list/style/material.scss +4 -0
- package/lib/components/pivot/co-pivot.component.d.ts +40 -0
- package/lib/components/pivot/co-pivot.module.d.ts +2 -0
- package/lib/components/pivot/style/_layout.scss +5 -0
- package/lib/components/pivot/style/_material-definition.scss +10 -0
- package/lib/components/pivot/style/_theme.scss +5 -0
- package/lib/components/pivot/style/material.scss +4 -0
- package/lib/components/popup/const/popup-window-token.d.ts +3 -0
- package/lib/components/popup/interface/popup-button.d.ts +8 -0
- package/{src/lib/components/popup/interface/popup-close-event.ts → lib/components/popup/interface/popup-close-event.d.ts} +0 -3
- package/lib/components/popup/interface/popup-settings.d.ts +21 -0
- package/lib/components/popup/interface/popup.d.ts +9 -0
- package/lib/components/popup/model/popup-button-globals.d.ts +9 -0
- package/lib/components/popup/model/popup-window.d.ts +21 -0
- package/lib/components/popup/popup-buttons.component.d.ts +13 -0
- package/{src/lib → lib}/components/popup/popup-buttons.component.scss +0 -0
- package/lib/components/popup/popup-message-display.component.d.ts +12 -0
- package/lib/components/popup/popup-window-shell.component.d.ts +42 -0
- package/{src/lib → lib}/components/popup/popup-window-shell.component.scss +8 -8
- package/lib/components/popup/popup.module.d.ts +4 -0
- package/lib/components/popup/service/popup-shower.service.d.ts +17 -0
- package/lib/components/popup/service/prompt.service.d.ts +17 -0
- package/lib/components/popup/text-input-popup.component.d.ts +12 -0
- package/lib/components/simple-grid/simple-grid-column.directive.d.ts +18 -0
- package/lib/components/simple-grid/simple-grid.component.d.ts +26 -0
- package/lib/components/simple-grid/simple-grid.module.d.ts +2 -0
- package/lib/components/simple-grid/style/_layout.scss +80 -0
- package/lib/components/simple-grid/style/_material-definition.scss +16 -0
- package/lib/components/simple-grid/style/_theme.scss +17 -0
- package/lib/components/simple-grid/style/material.scss +4 -0
- package/lib/components/tile/tile.component.d.ts +15 -0
- package/{src/lib → lib}/components/tile/tile.component.scss +4 -4
- package/lib/components/tile/tile.module.d.ts +2 -0
- package/lib/core/constant/default-upper-bound-for-range-components.d.ts +1 -0
- package/lib/core/constant/java-max-int.d.ts +1 -0
- package/lib/core/constant/number-inputs-key-down-white-list.d.ts +2 -0
- package/lib/core/decorator/input-boolean.decorator.d.ts +8 -0
- package/{src/lib/core/enum/co-document-image-display-kind.enum.ts → lib/core/enum/co-document-image-display-kind.enum.d.ts} +1 -1
- package/lib/core/enum/co-document-type.enum.d.ts +5 -0
- package/{src/lib/core/enum/core-components-icon.enum.ts → lib/core/enum/core-components-icon.enum.d.ts} +56 -57
- package/{src/lib/core/enum/file-type-internal.enum.ts → lib/core/enum/file-type-internal.enum.d.ts} +10 -10
- package/lib/core/enum/file-type.enum.d.ts +5 -0
- package/lib/core/enum/float-label-type.enum.d.ts +5 -0
- package/lib/core/enum/input-number-picker-show-mode.enum.d.ts +5 -0
- package/lib/core/enum/input-text-type.enum.d.ts +4 -0
- package/{src/lib/core/enum/keyboard-code.enum.ts → lib/core/enum/keyboard-code.enum.d.ts} +23 -24
- package/{src/lib/core/enum/object-right-type.enum.ts → lib/core/enum/object-right-type.enum.d.ts} +1 -1
- package/lib/core/enum/popup-button-type.enum.d.ts +9 -0
- package/lib/core/enum/popup-type.enum.d.ts +9 -0
- package/{src/lib/core/enum/schedule-view.enum.ts → lib/core/enum/schedule-view.enum.d.ts} +2 -2
- package/{src/lib/core/enum/table-name.enum.ts → lib/core/enum/table-name.enum.d.ts} +1 -1
- package/lib/core/function/any-nill.function.d.ts +1 -0
- package/lib/core/function/is-nill.function.d.ts +1 -0
- package/lib/core/function/none-nill.function.d.ts +1 -0
- package/lib/core/function/not-nill.function.d.ts +1 -0
- package/lib/core/model/bounds-constrained-number-value.d.ts +46 -0
- package/{src/lib/core/model/check-precision-and-scale-result.ts → lib/core/model/check-precision-and-scale-result.d.ts} +1 -2
- package/{src/lib/core/model/check-within-stepped-bounds-result.ts → lib/core/model/check-within-stepped-bounds-result.d.ts} +3 -3
- package/lib/core/model/co-document-right.bo.d.ts +6 -0
- package/lib/core/model/co-document.bo.d.ts +61 -0
- package/lib/core/model/core-components-icon-svg.d.ts +4 -0
- package/lib/core/model/element-position.d.ts +7 -0
- package/lib/core/model/event/string-prompt-result-event.d.ts +6 -0
- package/lib/core/model/numerical-range.d.ts +7 -0
- package/lib/core/service/form-input-user-change-listener.service.d.ts +10 -0
- package/lib/core/service/form-master.service.d.ts +26 -0
- package/lib/core/service/ng-zone-wrapper.service.d.ts +6 -0
- package/lib/core/utils/array-utils.d.ts +85 -0
- package/lib/core/utils/browser-utils.d.ts +15 -0
- package/lib/core/utils/event-utils.d.ts +12 -0
- package/lib/core/utils/file-utils.d.ts +29 -0
- package/lib/core/utils/number-utils.d.ts +89 -0
- package/lib/core/utils/object-utils.d.ts +31 -0
- package/lib/core/utils/string-utils.d.ts +25 -0
- package/lib/core/validator/max-string-length.validator.d.ts +2 -0
- package/lib/core/validator/precision-scale.validator.d.ts +2 -0
- package/lib/core/validator/required.validator.d.ts +2 -0
- package/lib/directives/ripple/ripple-ref.d.ts +21 -0
- package/lib/directives/ripple/ripple-renderer.d.ts +56 -0
- package/lib/directives/ripple/ripple.directive.d.ts +56 -0
- package/lib/directives/ripple/ripple.module.d.ts +2 -0
- package/lib/directives/ripple/scroll-dispatcher.service.d.ts +51 -0
- package/lib/directives/ripple/scrollable.directive.d.ts +20 -0
- package/lib/directives/ripple/viewport-ruler.service.d.ts +29 -0
- package/lib/directives/stopclick/stop-click.directive.d.ts +10 -0
- package/lib/directives/stopclick/stop-click.module.d.ts +2 -0
- package/{src/lib → lib}/modules/pagination/pagination.scss +4 -4
- package/lib/pipes/append.pipe.d.ts +4 -0
- package/lib/pipes/append.pipe.module.d.ts +2 -0
- package/lib/pipes/price-display-pipe.module.d.ts +2 -0
- package/lib/pipes/price-display.pipe.d.ts +4 -0
- package/{src/lib → lib}/style/_extendables.scss +0 -0
- package/{src/lib → lib}/style/_input.mixins.scss +0 -0
- package/lib/style/_mixin.scss +9 -0
- package/{src/lib → lib}/style/_responsiveness.mixins.scss +0 -0
- package/{src/lib → lib}/style/_responsiveness.scss +0 -0
- package/{src/lib → lib}/style/_transition.mixins.scss +0 -0
- package/{src/lib/style/_base-input.scss → lib/style/_variables.scss} +77 -95
- package/{src/lib → lib}/style/main.scss +0 -0
- package/{src/lib → lib}/style/material2/_core.scss +3 -3
- package/lib/style/material2/_material2-scss-barrel.scss +16 -0
- package/{src/lib → lib}/style/material2/ripple/_co-ripple.scss +0 -0
- package/{src/lib → lib}/style/material2/style/_elevation.scss +0 -0
- package/{src/lib → lib}/style/material2/style/_list-common.scss +0 -0
- package/{src/lib → lib}/style/material2/style/_variables.scss +0 -0
- package/{src/lib → lib}/style/material2/theming/_palette.scss +0 -0
- package/{src/lib → lib}/style/material2/theming/_theming.scss +0 -0
- package/{src/lib → lib}/style/material2/typography/_typography.scss +0 -0
- package/package.json +11 -3
- package/{src/public-api.ts → public-api.d.ts} +68 -66
- package/colijnit-corecomponents_v12-12.0.13.tgz +0 -0
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -10
- package/src/lib/components/article-tile/article-tile.component.ts +0 -95
- package/src/lib/components/article-tile/article-tile.module.ts +0 -34
- package/src/lib/components/base/base-input.component.ts +0 -681
- package/src/lib/components/base/base.module.ts +0 -22
- package/src/lib/components/base/component-interface-name.ts +0 -6
- package/src/lib/components/button/button.component.ts +0 -94
- package/src/lib/components/button/button.module.ts +0 -18
- package/src/lib/components/button/button.scss +0 -111
- package/src/lib/components/button-drop-down/button-drop-down.component.scss +0 -19
- package/src/lib/components/button-drop-down/button-drop-down.component.ts +0 -53
- package/src/lib/components/button-drop-down/button-drop-down.module.ts +0 -17
- package/src/lib/components/card/card.component.ts +0 -92
- package/src/lib/components/card/card.module.ts +0 -34
- package/src/lib/components/co-dialog/co-dialog.component.ts +0 -88
- package/src/lib/components/co-dialog/co-dialog.module.ts +0 -15
- package/src/lib/components/co-dialog-prompt/co-dialog-prompt.component.ts +0 -70
- package/src/lib/components/co-dialog-prompt/co-dialog-prompt.module.ts +0 -15
- package/src/lib/components/co-kanban/co-kanban.component.ts +0 -128
- package/src/lib/components/co-kanban/co-kanban.module.ts +0 -18
- package/src/lib/components/co-rich-text-editor/co-rich-text-editor.component.ts +0 -69
- package/src/lib/components/co-rich-text-editor/co-rich-text-editor.module.ts +0 -18
- package/src/lib/components/co-schedule/co-schedule.component.ts +0 -96
- package/src/lib/components/co-schedule/co-schedule.module.ts +0 -19
- package/src/lib/components/co-sidebar/co-sidebar.component.ts +0 -42
- package/src/lib/components/co-sidebar/co-sidebar.module.ts +0 -13
- package/src/lib/components/co-toggle/co-toggle.component.scss +0 -0
- package/src/lib/components/co-toggle/co-toggle.component.ts +0 -46
- package/src/lib/components/co-toggle/co-toggle.module.ts +0 -18
- package/src/lib/components/drop-down-list/drop-down-list.component.ts +0 -65
- package/src/lib/components/drop-down-list/drop-down.module.ts +0 -18
- package/src/lib/components/form/form.component.ts +0 -223
- package/src/lib/components/form/form.module.ts +0 -22
- package/src/lib/components/grid/base/base-grid.component.ts +0 -83
- package/src/lib/components/grid/base/base-inline-edit-grid.component.ts +0 -36
- package/src/lib/components/grid/base/base-selection-grid.component.ts +0 -98
- package/src/lib/components/grid/base/base-toolbar-grid.component.ts +0 -75
- package/src/lib/components/grid/co-grid.component.scss +0 -29
- package/src/lib/components/grid/co-grid.component.ts +0 -70
- package/src/lib/components/grid/co-grid.module.ts +0 -49
- package/src/lib/components/grid/enum/column-align.enum.ts +0 -5
- package/src/lib/components/grid/interface/grid-menu-event-args.ts +0 -5
- package/src/lib/components/grid/interface/grid-row-drag-event-args.ts +0 -5
- package/src/lib/components/grid/interface/grid-row-drop-event-args.ts +0 -5
- package/src/lib/components/grid/model/co-grid-column.ts +0 -9
- package/src/lib/components/icon/icon-cache.service.ts +0 -57
- package/src/lib/components/icon/icon.component.ts +0 -30
- package/src/lib/components/icon/icon.module.ts +0 -24
- package/src/lib/components/image/image.component.ts +0 -20
- package/src/lib/components/image/image.css +0 -9
- package/src/lib/components/image/image.module.ts +0 -11
- package/src/lib/components/input-checkbox/input-checkbox.component.scss +0 -14
- package/src/lib/components/input-checkbox/input-checkbox.component.ts +0 -69
- package/src/lib/components/input-checkbox/input-checkbox.module.ts +0 -22
- package/src/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.component.scss +0 -8
- package/src/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.component.ts +0 -84
- package/src/lib/components/input-checkbox-multi-select/input-checkbox-multi-select.module.ts +0 -24
- package/src/lib/components/input-combo-box/input-combo-box.component.scss +0 -8
- package/src/lib/components/input-combo-box/input-combo-box.component.ts +0 -96
- package/src/lib/components/input-combo-box/input-combo-box.module.ts +0 -24
- package/src/lib/components/input-date-picker/input-date-picker.component.scss +0 -30
- package/src/lib/components/input-date-picker/input-date-picker.component.ts +0 -121
- package/src/lib/components/input-date-picker/input-date-picker.module.ts +0 -27
- package/src/lib/components/input-number-picker/input-number-picker.component.scss +0 -49
- package/src/lib/components/input-number-picker/input-number-picker.component.ts +0 -316
- package/src/lib/components/input-number-picker/input-number-picker.module.ts +0 -16
- package/src/lib/components/input-radio-button/input-radio-button.component.scss +0 -89
- package/src/lib/components/input-radio-button/input-radio-button.component.ts +0 -74
- package/src/lib/components/input-radio-button/input-radio-button.module.ts +0 -20
- package/src/lib/components/input-text/input-text.component.ts +0 -155
- package/src/lib/components/input-text/input-text.module.ts +0 -27
- package/src/lib/components/input-text/input-text.scss +0 -4
- package/src/lib/components/level-indicator/level-indicator.component.ts +0 -41
- package/src/lib/components/level-indicator/level-indicator.module.ts +0 -13
- package/src/lib/components/multi-select-list/multi-select-list.component.scss +0 -1
- package/src/lib/components/multi-select-list/multi-select-list.component.ts +0 -78
- package/src/lib/components/multi-select-list/multi-select-list.module.ts +0 -17
- package/src/lib/components/pivot/co-pivot.component.scss +0 -0
- package/src/lib/components/pivot/co-pivot.component.ts +0 -246
- package/src/lib/components/pivot/co-pivot.module.ts +0 -16
- package/src/lib/components/popup/const/popup-window-token.ts +0 -4
- package/src/lib/components/popup/interface/popup-button.ts +0 -14
- package/src/lib/components/popup/interface/popup-settings.ts +0 -70
- package/src/lib/components/popup/interface/popup.ts +0 -17
- package/src/lib/components/popup/model/popup-button-globals.ts +0 -11
- package/src/lib/components/popup/model/popup-window.ts +0 -51
- package/src/lib/components/popup/popup-buttons.component.ts +0 -61
- package/src/lib/components/popup/popup-message-display.component.ts +0 -49
- package/src/lib/components/popup/popup-window-shell.component.ts +0 -222
- package/src/lib/components/popup/popup.module.ts +0 -48
- package/src/lib/components/popup/service/popup-shower.service.ts +0 -98
- package/src/lib/components/popup/service/prompt.service.ts +0 -127
- package/src/lib/components/popup/text-input-popup.component.ts +0 -36
- package/src/lib/components/tile/tile.component.ts +0 -70
- package/src/lib/components/tile/tile.module.ts +0 -21
- package/src/lib/core/abstract/collection-based-component.ts +0 -488
- package/src/lib/core/config/device-environment.ts +0 -26
- package/src/lib/core/constant/default-upper-bound-for-range-components.ts +0 -3
- package/src/lib/core/constant/java-max-int.ts +0 -1
- package/src/lib/core/constant/number-inputs-key-down-white-list.ts +0 -45
- package/src/lib/core/decorator/input-boolean.decorator.ts +0 -35
- package/src/lib/core/enum/co-direction.ts +0 -7
- package/src/lib/core/enum/co-document-type.enum.ts +0 -9
- package/src/lib/core/enum/co-orientation.ts +0 -18
- package/src/lib/core/enum/collection-based-component-input-driver-prop.enum.ts +0 -10
- package/src/lib/core/enum/color-sequence-name.enum.ts +0 -5
- package/src/lib/core/enum/file-type.enum.ts +0 -9
- package/src/lib/core/enum/float-label-type.enum.ts +0 -5
- package/src/lib/core/enum/input-number-picker-show-mode.enum.ts +0 -6
- package/src/lib/core/enum/input-text-type.enum.ts +0 -4
- package/src/lib/core/enum/keyboard-key.enum.ts +0 -77
- package/src/lib/core/enum/logical-operator-type.enum.ts +0 -5
- package/src/lib/core/enum/popup-button-type.enum.ts +0 -10
- package/src/lib/core/enum/popup-type.enum.ts +0 -9
- package/src/lib/core/enum/search-data-type.ts +0 -4
- package/src/lib/core/enum/search-property-state.ts +0 -5
- package/src/lib/core/enum/sort-data-type.ts +0 -6
- package/src/lib/core/enum/sort-direction.ts +0 -9
- package/src/lib/core/enum/value-comparison-type.ts +0 -11
- package/src/lib/core/function/any-nill.function.ts +0 -6
- package/src/lib/core/function/is-nill.function.ts +0 -4
- package/src/lib/core/function/none-nill.function.ts +0 -16
- package/src/lib/core/function/not-nill.function.ts +0 -4
- package/src/lib/core/interface/search-property.ts +0 -15
- package/src/lib/core/interface/sort-property.ts +0 -16
- package/src/lib/core/model/bounds-constrained-number-value.ts +0 -219
- package/src/lib/core/model/co-document-right.bo.ts +0 -9
- package/src/lib/core/model/co-document.bo.ts +0 -193
- package/src/lib/core/model/color-sequence.ts +0 -39
- package/src/lib/core/model/color.ts +0 -29
- package/src/lib/core/model/core-components-icon-svg.ts +0 -56
- package/src/lib/core/model/element-position.ts +0 -14
- package/src/lib/core/model/event/number-prompt-result-event.ts +0 -10
- package/src/lib/core/model/event/string-prompt-result-event.ts +0 -10
- package/src/lib/core/model/numerical-range.ts +0 -19
- package/src/lib/core/service/color-sequence.service.ts +0 -104
- package/src/lib/core/service/form-input-user-change-listener.service.ts +0 -31
- package/src/lib/core/service/form-master.service.ts +0 -119
- package/src/lib/core/service/ng-zone-wrapper.service.ts +0 -15
- package/src/lib/core/utils/array-utils.spec.ts +0 -588
- package/src/lib/core/utils/array-utils.ts +0 -301
- package/src/lib/core/utils/browser-utils.ts +0 -123
- package/src/lib/core/utils/business-object-utils.ts +0 -42
- package/src/lib/core/utils/css-utils.ts +0 -276
- package/src/lib/core/utils/element-ref.utils.ts +0 -12
- package/src/lib/core/utils/event-utils.ts +0 -61
- package/src/lib/core/utils/file-utils.ts +0 -291
- package/src/lib/core/utils/number-utils.spec.ts +0 -657
- package/src/lib/core/utils/number-utils.ts +0 -350
- package/src/lib/core/utils/object-utils.ts +0 -205
- package/src/lib/core/utils/parameter-value-conversion-utils.ts +0 -116
- package/src/lib/core/utils/search-utils.ts +0 -121
- package/src/lib/core/utils/sort-utils.ts +0 -108
- package/src/lib/core/utils/string-utils.ts +0 -100
- package/src/lib/core/validator/email.validator.ts +0 -10
- package/src/lib/core/validator/max-string-length.validator.ts +0 -11
- package/src/lib/core/validator/precision-scale.validator.ts +0 -14
- package/src/lib/core/validator/required.validator.ts +0 -9
- package/src/lib/directives/align-with/align-with.directive.ts +0 -158
- package/src/lib/directives/align-with/align-with.module.ts +0 -13
- package/src/lib/directives/clickoutside/click-outside-master.service.ts +0 -64
- package/src/lib/directives/clickoutside/click-outside.directive.ts +0 -72
- package/src/lib/directives/clickoutside/clickoutside.module.ts +0 -17
- package/src/lib/directives/parsevalue/parse-value.directive.ts +0 -42
- package/src/lib/directives/parsevalue/parse-value.module.ts +0 -13
- package/src/lib/directives/resize/resize-detect.directive.ts +0 -54
- package/src/lib/directives/resize/resize-detect.module.ts +0 -13
- package/src/lib/directives/ripple/ripple-ref.ts +0 -28
- package/src/lib/directives/ripple/ripple-renderer.ts +0 -217
- package/src/lib/directives/ripple/ripple.directive.ts +0 -116
- package/src/lib/directives/ripple/ripple.module.ts +0 -24
- package/src/lib/directives/ripple/scroll-dispatcher.service.ts +0 -129
- package/src/lib/directives/ripple/scrollable.directive.ts +0 -37
- package/src/lib/directives/ripple/viewport-ruler.service.ts +0 -84
- package/src/lib/directives/stopclick/stop-click.directive.ts +0 -35
- package/src/lib/directives/stopclick/stop-click.module.ts +0 -14
- package/src/lib/directives/template-wrapper/template-wrapper.directive.ts +0 -71
- package/src/lib/directives/template-wrapper/template-wrapper.module.ts +0 -13
- package/src/lib/model/data-item.ts +0 -9
- package/src/lib/model/enum/currency-code.enum.ts +0 -7
- package/src/lib/model/enum/language-code.enum.ts +0 -8
- package/src/lib/model/map/currencies.map.ts +0 -6
- package/src/lib/modules/drag-drop/drag-drop-container.component.ts +0 -115
- package/src/lib/modules/drag-drop/drag-drop-container.css +0 -34
- package/src/lib/modules/drag-drop/drag-drop-manager.service.ts +0 -414
- package/src/lib/modules/drag-drop/drag-drop.module.ts +0 -20
- package/src/lib/modules/drag-drop/draggable.directive.ts +0 -70
- package/src/lib/modules/drag-drop/model/co-drag-event.ts +0 -5
- package/src/lib/modules/drag-drop/model/co-drop-event.ts +0 -9
- package/src/lib/modules/drag-drop/model/drag-drop-container-element.ts +0 -7
- package/src/lib/modules/drag-drop/model/drag-drop-container.ts +0 -9
- package/src/lib/modules/media-monitor/flex-layout-breakpoint.enum.ts +0 -5
- package/src/lib/modules/media-monitor/media-monitor.module.ts +0 -14
- package/src/lib/modules/media-monitor/media-monitor.service.ts +0 -36
- package/src/lib/modules/pagination/paginate.pipe.ts +0 -122
- package/src/lib/modules/pagination/pagination-instance.ts +0 -18
- package/src/lib/modules/pagination/pagination.component.ts +0 -217
- package/src/lib/modules/pagination/pagination.module.ts +0 -25
- package/src/lib/modules/pagination/pagination.service.ts +0 -98
- package/src/lib/pipes/append.pipe.module.ts +0 -13
- package/src/lib/pipes/append.pipe.ts +0 -17
- package/src/lib/pipes/co-currency-pipe.module.ts +0 -13
- package/src/lib/pipes/co-currency.pipe.ts +0 -45
- package/src/lib/pipes/emun-keys.pipe.ts +0 -20
- package/src/lib/pipes/enum-keys-pipe.module.ts +0 -13
- package/src/lib/pipes/file-type-image-pipe.module.ts +0 -13
- package/src/lib/pipes/file-type-image.pipe.ts +0 -45
- package/src/lib/pipes/master-pipe.module.ts +0 -13
- package/src/lib/pipes/master.pipe.ts +0 -71
- package/src/lib/pipes/price-display-pipe.module.ts +0 -14
- package/src/lib/pipes/price-display.pipe.ts +0 -20
- package/src/lib/pipes/safe-style.pipe.module.ts +0 -13
- package/src/lib/pipes/safe-style.pipe.ts +0 -14
- package/src/lib/pipes/ucfirst-pipe.module.ts +0 -13
- package/src/lib/pipes/ucfirst.pipe.ts +0 -14
- package/src/lib/style/_variables.scss +0 -76
- package/src/lib/style/material2/_material2-scss-barrel.scss +0 -16
- package/src/test.ts +0 -28
- package/tsconfig.lib.json +0 -20
- package/tsconfig.lib.prod.json +0 -16
- package/tsconfig.spec.json +0 -17
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
import {AfterViewInit, Component, EventEmitter, HostBinding, HostListener, Input, OnDestroy, OnInit, Output} from "@angular/core";
|
|
2
|
-
import {FormControl, FormGroup} from "@angular/forms";
|
|
3
|
-
import {Subject, Subscription} from "rxjs";
|
|
4
|
-
import { BaseInputComponent } from '../base/base-input.component';
|
|
5
|
-
import { FormMasterService } from '../../core/service/form-master.service';
|
|
6
|
-
import { StringUtils } from '../../core/utils/string-utils';
|
|
7
|
-
|
|
8
|
-
const FormGroupStatus: any = {
|
|
9
|
-
VALID: "VALID",
|
|
10
|
-
INVALID: "INVALID",
|
|
11
|
-
PENDING: "PENDING",
|
|
12
|
-
DISABLED: "DISABLED"
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: "co-form",
|
|
17
|
-
template: `<ng-content></ng-content>`,
|
|
18
|
-
})
|
|
19
|
-
// The iOneJS version of the form tag, representing a form with controls.
|
|
20
|
-
export class FormComponent implements AfterViewInit, OnDestroy, OnInit {
|
|
21
|
-
@Input()
|
|
22
|
-
set readonly(value: boolean) {
|
|
23
|
-
this._readonly = value;
|
|
24
|
-
this.readonlyChange.emit(value);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
get readonly(): boolean {
|
|
28
|
-
return this._readonly;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@Input()
|
|
32
|
-
public keepInView: Element;
|
|
33
|
-
|
|
34
|
-
@Output()
|
|
35
|
-
public onChange: EventEmitter<FormControl> = new EventEmitter<FormControl>();
|
|
36
|
-
|
|
37
|
-
@HostBinding("class.submitted")
|
|
38
|
-
public submitted: boolean = false;
|
|
39
|
-
|
|
40
|
-
// Emits true after every valid submit.
|
|
41
|
-
@Output()
|
|
42
|
-
public readonly validSubmit: EventEmitter<void> = new EventEmitter<void>();
|
|
43
|
-
|
|
44
|
-
// Emits void after every 'submit' (either valid or invalid, eg a submit attempt)
|
|
45
|
-
@Output()
|
|
46
|
-
public readonly anySubmit: EventEmitter<void> = new EventEmitter<void>();
|
|
47
|
-
|
|
48
|
-
// note: a disabled control is considered valid
|
|
49
|
-
@Output()
|
|
50
|
-
public readonly validityChange: EventEmitter<boolean> = new EventEmitter<boolean>();
|
|
51
|
-
|
|
52
|
-
@Output()
|
|
53
|
-
public readonly readonlyChange: EventEmitter<boolean> = new EventEmitter<boolean>();
|
|
54
|
-
|
|
55
|
-
// The Angular in-memory representation of the form controls on this form. Performs actual logic, emits 'input field' (Control) state change events, etc.
|
|
56
|
-
public formGroup: FormGroup = new FormGroup({});
|
|
57
|
-
|
|
58
|
-
@Output()
|
|
59
|
-
public invalidSubmit: Subject<void> = new Subject<void>();
|
|
60
|
-
|
|
61
|
-
private _readonly: boolean = false;
|
|
62
|
-
private _valueChangeSub: Subscription;
|
|
63
|
-
private _statusChangeSub: Subscription;
|
|
64
|
-
|
|
65
|
-
private _init: boolean;
|
|
66
|
-
|
|
67
|
-
// key: name of form inputs, values: the component for that name
|
|
68
|
-
private _componentMap: Map<string, BaseInputComponent<any>> = new Map<string, BaseInputComponent<any>>([]);
|
|
69
|
-
|
|
70
|
-
constructor(
|
|
71
|
-
private _formMaster: FormMasterService
|
|
72
|
-
) {
|
|
73
|
-
this._formMaster.addSlave(this);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
ngAfterViewInit(): void {
|
|
77
|
-
this._init = true;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
ngOnInit(): void {
|
|
81
|
-
this._valueChangeSub = this.formGroup.valueChanges.subscribe((e) => {
|
|
82
|
-
this.onChange.emit(e);
|
|
83
|
-
});
|
|
84
|
-
this._statusChangeSub = this.formGroup.statusChanges.subscribe((e) => {
|
|
85
|
-
if (e === FormGroupStatus.VALID || e === FormGroupStatus.DISABLED) {
|
|
86
|
-
this.validityChange.emit(true);
|
|
87
|
-
} else if (e === FormGroupStatus.INVALID) {
|
|
88
|
-
this.validityChange.emit(false);
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
ngOnDestroy(): void {
|
|
94
|
-
if (this._valueChangeSub) {
|
|
95
|
-
this._valueChangeSub.unsubscribe();
|
|
96
|
-
}
|
|
97
|
-
if (this._statusChangeSub) {
|
|
98
|
-
this._statusChangeSub.unsubscribe();
|
|
99
|
-
}
|
|
100
|
-
this._componentMap.clear();
|
|
101
|
-
this._componentMap = undefined;
|
|
102
|
-
this._formMaster.removeSlave(this);
|
|
103
|
-
this.keepInView = undefined;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
public addFormInput(formInput: BaseInputComponent<any>): void {
|
|
107
|
-
this.formGroup.addControl(formInput.name, formInput.control);
|
|
108
|
-
if (formInput.elementRef) {
|
|
109
|
-
this._componentMap.set(formInput.name, formInput);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
public removeFormInput(formInput: BaseInputComponent<any>): void {
|
|
114
|
-
this.formGroup.removeControl(formInput.name);
|
|
115
|
-
this._componentMap.delete(formInput.name);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
public updateFormInput(formInput: BaseInputComponent<any>): void {
|
|
119
|
-
this.formGroup.setControl(formInput.name, formInput.control);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// Marks form as touched, checks validity and returns true if indeed valid, else false. Visuals of form inputs can change after calling this.
|
|
123
|
-
public checkUpdateValidity(): boolean {
|
|
124
|
-
this.formGroup.markAsTouched();
|
|
125
|
-
this.formGroup.updateValueAndValidity();
|
|
126
|
-
if (!this.isValid()) {
|
|
127
|
-
this._setFirstInvalidElementOnMaster();
|
|
128
|
-
}
|
|
129
|
-
return this.isValid();
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
public isTouched(): boolean {
|
|
133
|
-
return this.formGroup.touched;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
public isValid(): boolean {
|
|
137
|
-
return this._init && this.formGroup.valid;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
@HostListener('keyup.enter', ['$event'])
|
|
141
|
-
onEnterKey(event: KeyboardEvent): void {
|
|
142
|
-
const target: HTMLElement = <HTMLElement>event.target;
|
|
143
|
-
if (['TEXTAREA', 'SELECT'].indexOf(target.tagName) !== -1) {
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
if (target.isContentEditable) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
if (target.tagName === 'BUTTON-COLIJN' && target.getAttribute('type') === 'submit') {
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
this.submit();
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
public reset(): void {
|
|
156
|
-
this.submitted = false;
|
|
157
|
-
this.formGroup.markAsUntouched();
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
// returns validity
|
|
161
|
-
public submit(throughFormMaster: boolean = false): boolean {
|
|
162
|
-
this.submitted = true;
|
|
163
|
-
if (!throughFormMaster) {
|
|
164
|
-
this.anySubmit.emit();
|
|
165
|
-
}
|
|
166
|
-
if (this.checkUpdateValidity()) {
|
|
167
|
-
this.validSubmit.emit();
|
|
168
|
-
} else {
|
|
169
|
-
if (!throughFormMaster) {
|
|
170
|
-
this.invalidSubmit.next();
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
return this.isValid();
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
public showErrorTooltipOnFormGroupControl(key: string): void {
|
|
177
|
-
for (const controlKey in this.formGroup.controls) {
|
|
178
|
-
if (this.formGroup.controls.hasOwnProperty(controlKey)) {
|
|
179
|
-
if (this._componentMap.has(controlKey)) {
|
|
180
|
-
const comp: BaseInputComponent<any> = this._componentMap.get(controlKey);
|
|
181
|
-
for (const errorKey in this.formGroup.controls[controlKey].errors) {
|
|
182
|
-
if (this.formGroup.controls[controlKey].errors.hasOwnProperty(errorKey)) {
|
|
183
|
-
const error: any = this.formGroup.controls[controlKey].errors[errorKey];
|
|
184
|
-
const errorText: string = this._getValidationErrorText(error);
|
|
185
|
-
const controlElement: HTMLElement = comp.elementRef.nativeElement;
|
|
186
|
-
if (controlKey === key) {
|
|
187
|
-
// this._tooltipService.spawnErrorTooltip(controlElement, errorText, this.keepInView ? this.keepInView : undefined);
|
|
188
|
-
}
|
|
189
|
-
comp.redErrorBackground = true;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
private _getValidationErrorText(validationError: any): string {
|
|
198
|
-
return "";
|
|
199
|
-
if (StringUtils.IsString(validationError)) {
|
|
200
|
-
// return this._dictionary.get(validationError);
|
|
201
|
-
} else if (validationError.message) {
|
|
202
|
-
if (validationError.placeholder) {
|
|
203
|
-
// see e.g. maxStringLengthValidator, where we return this {message: string, placeholder: string} object shape as validation error obj
|
|
204
|
-
// return this._dictionary.get(validationError.message, true, validationError.placeholder);
|
|
205
|
-
} else {
|
|
206
|
-
// return this._dictionary.get(validationError.message);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
private _setFirstInvalidElementOnMaster(): void {
|
|
212
|
-
const elements: any = Array.from(this._componentMap);
|
|
213
|
-
const len: number = elements.length;
|
|
214
|
-
for (let i: number = 0; i < len; i++) {
|
|
215
|
-
const key: string = elements[i][0];
|
|
216
|
-
const value: BaseInputComponent<any> = elements[i][1];
|
|
217
|
-
if (this.formGroup.controls.hasOwnProperty(key) && this.formGroup.controls[key].status.toLowerCase() === "invalid") {
|
|
218
|
-
this._formMaster.setFirstInvalidField(this, key, value.elementRef ? value.elementRef.nativeElement : undefined);
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
|
|
4
|
-
import { FormComponent } from './form.component';
|
|
5
|
-
import {FormMasterService} from "../../core/service/form-master.service";
|
|
6
|
-
|
|
7
|
-
@NgModule({
|
|
8
|
-
imports: [
|
|
9
|
-
CommonModule
|
|
10
|
-
],
|
|
11
|
-
declarations: [
|
|
12
|
-
FormComponent
|
|
13
|
-
],
|
|
14
|
-
providers: [
|
|
15
|
-
FormMasterService
|
|
16
|
-
],
|
|
17
|
-
exports: [
|
|
18
|
-
FormComponent
|
|
19
|
-
]
|
|
20
|
-
})
|
|
21
|
-
export class FormModule {
|
|
22
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import {Directive, Input, ViewChild} from "@angular/core";
|
|
2
|
-
import {
|
|
3
|
-
ContextMenuItemModel,
|
|
4
|
-
GridComponent,
|
|
5
|
-
PageSettingsModel,
|
|
6
|
-
RowDropSettingsModel
|
|
7
|
-
} from "@syncfusion/ej2-angular-grids";
|
|
8
|
-
import {InputBoolean} from "../../../core/decorator/input-boolean.decorator";
|
|
9
|
-
import {GridLines} from "../enum/grid-lines.enum";
|
|
10
|
-
import {LanguageCode} from "../../../model/enum/language-code.enum";
|
|
11
|
-
|
|
12
|
-
@Directive()
|
|
13
|
-
export class BaseGridComponent<T> {
|
|
14
|
-
public readonly languageCode: typeof LanguageCode = LanguageCode;
|
|
15
|
-
|
|
16
|
-
@ViewChild('grid', {static: false})
|
|
17
|
-
public grid: GridComponent;
|
|
18
|
-
|
|
19
|
-
@Input()
|
|
20
|
-
public data: T[];
|
|
21
|
-
|
|
22
|
-
@Input()
|
|
23
|
-
public gridLines: GridLines = GridLines.None;
|
|
24
|
-
|
|
25
|
-
@Input()
|
|
26
|
-
public contextMenuItems: ContextMenuItemModel[] = [];
|
|
27
|
-
|
|
28
|
-
@Input()
|
|
29
|
-
public frozenColumns: number;
|
|
30
|
-
|
|
31
|
-
@Input()
|
|
32
|
-
public frozenRows: number;
|
|
33
|
-
|
|
34
|
-
@Input()
|
|
35
|
-
@InputBoolean()
|
|
36
|
-
public sortingEnabled: boolean = false;
|
|
37
|
-
|
|
38
|
-
@Input()
|
|
39
|
-
@InputBoolean()
|
|
40
|
-
public filteringEnabled: boolean = false;
|
|
41
|
-
|
|
42
|
-
@Input()
|
|
43
|
-
@InputBoolean()
|
|
44
|
-
public pagingEnabled: boolean = false;
|
|
45
|
-
|
|
46
|
-
@Input()
|
|
47
|
-
@InputBoolean()
|
|
48
|
-
public groupingEnabled: boolean = false;
|
|
49
|
-
|
|
50
|
-
@Input()
|
|
51
|
-
@InputBoolean()
|
|
52
|
-
public reorderingEnabled: boolean = false;
|
|
53
|
-
|
|
54
|
-
@Input()
|
|
55
|
-
@InputBoolean()
|
|
56
|
-
public rowDragAndDropEnabled: boolean = false;
|
|
57
|
-
|
|
58
|
-
@Input()
|
|
59
|
-
public rowDropSettings: RowDropSettingsModel;
|
|
60
|
-
|
|
61
|
-
@Input()
|
|
62
|
-
@InputBoolean()
|
|
63
|
-
public resizingEnabled: boolean = false;
|
|
64
|
-
|
|
65
|
-
@Input()
|
|
66
|
-
@InputBoolean()
|
|
67
|
-
public showColumnMenu: boolean = false;
|
|
68
|
-
|
|
69
|
-
@Input()
|
|
70
|
-
public set maxNumberOfRows(value: number) {
|
|
71
|
-
if (value) {
|
|
72
|
-
this.pageSettings.pageSize = value;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@Input()
|
|
77
|
-
public columns: {}[];
|
|
78
|
-
|
|
79
|
-
@Input()
|
|
80
|
-
public locale: LanguageCode = this.languageCode.Dutch;
|
|
81
|
-
|
|
82
|
-
public pageSettings: PageSettingsModel = {};
|
|
83
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import {Directive, EventEmitter, Input, Output} from "@angular/core";
|
|
2
|
-
import {EditSettingsModel} from "@syncfusion/ej2-angular-grids";
|
|
3
|
-
import {InputBoolean} from "../../../core/decorator/input-boolean.decorator";
|
|
4
|
-
import {BaseToolbarGridComponent} from "./base-toolbar-grid.component";
|
|
5
|
-
|
|
6
|
-
@Directive()
|
|
7
|
-
export class BaseInlineEditGridComponent<T> extends BaseToolbarGridComponent<T> {
|
|
8
|
-
|
|
9
|
-
@Input()
|
|
10
|
-
@InputBoolean()
|
|
11
|
-
public set inlineEdit(value: boolean) {
|
|
12
|
-
if (value) {
|
|
13
|
-
this.editSettings = { allowEditing: true, allowAdding: true, allowDeleting: true };
|
|
14
|
-
} else {
|
|
15
|
-
this.editSettings = {};
|
|
16
|
-
}
|
|
17
|
-
this.updateToolbar("Add", value);
|
|
18
|
-
this.updateToolbar("Edit", value);
|
|
19
|
-
this.updateToolbar("Delete", value);
|
|
20
|
-
this.updateToolbar("Update", value);
|
|
21
|
-
this.updateToolbar("Cancel", value);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
@Output()
|
|
25
|
-
public rowSaved: EventEmitter<T> = new EventEmitter<T>();
|
|
26
|
-
|
|
27
|
-
public editSettings: EditSettingsModel;
|
|
28
|
-
|
|
29
|
-
public handleActionComplete(action: any): void {
|
|
30
|
-
if (action) {
|
|
31
|
-
if (action.requestType === "save") {
|
|
32
|
-
this.rowSaved.next(action.data);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import {Directive, EventEmitter, HostBinding, Input, OnInit, Output, TemplateRef} from "@angular/core";
|
|
2
|
-
import {RowDropEventArgs, SelectionSettingsModel} from "@syncfusion/ej2-angular-grids";
|
|
3
|
-
import {BaseInlineEditGridComponent} from "./base-inline-edit-grid.component";
|
|
4
|
-
import {InputBoolean} from "../../../core/decorator/input-boolean.decorator";
|
|
5
|
-
import {MenuEventArgs} from "@syncfusion/ej2-navigations";
|
|
6
|
-
import {GridRowDragEventArgs} from "../interface/grid-row-drag-event-args";
|
|
7
|
-
import {GridRowDropEventArgs} from "../interface/grid-row-drop-event-args";
|
|
8
|
-
import {RowDragEventArgs} from "@syncfusion/ej2-angular-grids";
|
|
9
|
-
import {GridMenuEventArgs} from "../interface/grid-menu-event-args";
|
|
10
|
-
|
|
11
|
-
const defaultColumn: string = `<div class="detail-wrapper"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><polygon points="34.55 26.18 34.55 37.49 12.44 37.49 12.44 15.38 24.68 15.38 25.59 14.48 24.05 12.94 10 12.94 10 39.94 36.99 39.94 36.99 25.88 35.92 24.81 34.55 26.18" fill="#484f60"/><polygon points="40 10.4 27.92 10.4 32 14.48 22.24 26.23 24.16 28.15 35.92 18.4 40 22.48 40 10.4" fill="#484f60"/></svg></div>`;
|
|
12
|
-
|
|
13
|
-
@Directive()
|
|
14
|
-
export class BaseSelectionGridComponent<T> extends BaseInlineEditGridComponent<T> implements OnInit {
|
|
15
|
-
|
|
16
|
-
@Input()
|
|
17
|
-
@InputBoolean()
|
|
18
|
-
public set multipleSelect(value: boolean) {
|
|
19
|
-
this.selectionOptions = { type: value ? "Multiple" : "Single" };
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@HostBinding("class.detail-column")
|
|
23
|
-
@Input()
|
|
24
|
-
@InputBoolean()
|
|
25
|
-
public includeDetailColumn: boolean = false;
|
|
26
|
-
|
|
27
|
-
@Input()
|
|
28
|
-
public detailColumnTemplate: TemplateRef<any>;
|
|
29
|
-
|
|
30
|
-
@Output()
|
|
31
|
-
public rowsSelected: EventEmitter<T[]> = new EventEmitter<T[]>();
|
|
32
|
-
|
|
33
|
-
@Output()
|
|
34
|
-
public rowDoubleClick: EventEmitter<T> = new EventEmitter<T>();
|
|
35
|
-
|
|
36
|
-
@Output()
|
|
37
|
-
public detailColumnClick: EventEmitter<T> = new EventEmitter<T>();
|
|
38
|
-
|
|
39
|
-
@Output()
|
|
40
|
-
public contextMenuItemClick: EventEmitter<GridMenuEventArgs> = new EventEmitter<GridMenuEventArgs>();
|
|
41
|
-
|
|
42
|
-
@Output()
|
|
43
|
-
public rowDragStartEvent: EventEmitter<GridRowDragEventArgs> = new EventEmitter<GridRowDragEventArgs>();
|
|
44
|
-
|
|
45
|
-
@Output()
|
|
46
|
-
public rowDropEvent: EventEmitter<GridRowDropEventArgs> = new EventEmitter<GridRowDropEventArgs>();
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
public selectionOptions: SelectionSettingsModel = { type: "Single" };
|
|
50
|
-
|
|
51
|
-
ngOnInit(): void {
|
|
52
|
-
if (this.includeDetailColumn) {
|
|
53
|
-
this.columns.unshift({
|
|
54
|
-
field: "", headerText: "", lockColumn: true, maxWidth: 30, width: 30,
|
|
55
|
-
allowFiltering: false, allowResizing: false, allowReordering: false, allowEditing: false, allowSearching: false,
|
|
56
|
-
showColumnMenu: false, showInColumnChooser: false,
|
|
57
|
-
template: this.detailColumnTemplate ? this.detailColumnTemplate : defaultColumn,
|
|
58
|
-
headerTemplate: this.detailColumnTemplate ? this.detailColumnTemplate : defaultColumn});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
public handleRowSelected(rowData: any): void {
|
|
63
|
-
if (this.grid) {
|
|
64
|
-
const rows: T[] = <T[]>this.grid.getSelectedRecords();
|
|
65
|
-
this.rowsSelected.next(rows);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
public handleDoubleClick(clickData: any): void {
|
|
70
|
-
this.rowDoubleClick.next(<T>clickData.rowData);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
public handleRecordClick(clickData: any): void {
|
|
74
|
-
if (clickData && this.includeDetailColumn && clickData.cellIndex === 0) {
|
|
75
|
-
this.detailColumnClick.next(clickData.rowData);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
public selectRow(index: number): void {
|
|
80
|
-
if (this.grid) {
|
|
81
|
-
const rowIndexes: number[] = [];
|
|
82
|
-
rowIndexes.push(index);
|
|
83
|
-
this.grid.selectionModule.selectRows(rowIndexes);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
public contextMenuClick(args: MenuEventArgs): void {
|
|
88
|
-
this.contextMenuItemClick.next(args);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
public rowDragStartClick(args: RowDragEventArgs): void {
|
|
92
|
-
this.rowDragStartEvent.next(args);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
public rowDropClick(args: RowDropEventArgs): void {
|
|
96
|
-
this.rowDropEvent.next(args);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import {Directive, Input} from "@angular/core";
|
|
2
|
-
import {ToolbarItems} from "@syncfusion/ej2-angular-grids";
|
|
3
|
-
import {ClickEventArgs} from "@syncfusion/ej2-angular-navigations";
|
|
4
|
-
import {InputBoolean} from "../../../core/decorator/input-boolean.decorator";
|
|
5
|
-
import {BaseGridComponent} from "./base-grid.component";
|
|
6
|
-
import {ArrayUtils} from "../../../core/utils/array-utils";
|
|
7
|
-
|
|
8
|
-
@Directive()
|
|
9
|
-
export class BaseToolbarGridComponent<T> extends BaseGridComponent<T> {
|
|
10
|
-
|
|
11
|
-
@Input()
|
|
12
|
-
@InputBoolean()
|
|
13
|
-
public set showColumnChooser(value: boolean) {
|
|
14
|
-
this._showColumnChooser = value;
|
|
15
|
-
this.updateToolbar("ColumnChooser", this._showColumnChooser);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
public get showColumnChooser(): boolean {
|
|
19
|
-
return this._showColumnChooser;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@Input()
|
|
23
|
-
@InputBoolean()
|
|
24
|
-
public set exportExcelEnabled(value: boolean) {
|
|
25
|
-
this._exportExcelEnabled = value;
|
|
26
|
-
this.updateToolbar("ExcelExport", this._exportExcelEnabled);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public get exportExcelEnabled(): boolean {
|
|
30
|
-
return this._exportExcelEnabled;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
@Input()
|
|
34
|
-
@InputBoolean()
|
|
35
|
-
public set exportPdfEnabled(value: boolean) {
|
|
36
|
-
this._exportPdfEnabled = value;
|
|
37
|
-
this.updateToolbar("PdfExport", this._exportPdfEnabled);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
public get exportPdfEnabled(): boolean {
|
|
41
|
-
return this._exportPdfEnabled;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
public toolbarOptions: ToolbarItems[];
|
|
45
|
-
|
|
46
|
-
private _exportExcelEnabled: boolean = false;
|
|
47
|
-
private _exportPdfEnabled: boolean = false;
|
|
48
|
-
private _showColumnChooser: boolean = false;
|
|
49
|
-
|
|
50
|
-
public toolbarClick(args: ClickEventArgs): void {
|
|
51
|
-
if (this.grid) {
|
|
52
|
-
if (args.item.id === 'grid_excelexport') {
|
|
53
|
-
this.grid.excelExport();
|
|
54
|
-
} else if (args.item.id === 'grid_pdfexport') {
|
|
55
|
-
this.grid.pdfExport();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
protected updateToolbar(option: ToolbarItems, add: boolean): void {
|
|
61
|
-
if (add) {
|
|
62
|
-
if (!this.toolbarOptions) {
|
|
63
|
-
this.toolbarOptions = [];
|
|
64
|
-
}
|
|
65
|
-
this.toolbarOptions.push(option);
|
|
66
|
-
} else {
|
|
67
|
-
ArrayUtils.RemoveElement(option, this.toolbarOptions);
|
|
68
|
-
}
|
|
69
|
-
if (this.toolbarOptions && this.toolbarOptions.length > 0) {
|
|
70
|
-
this.toolbarOptions = this.toolbarOptions.slice();
|
|
71
|
-
} else {
|
|
72
|
-
this.toolbarOptions = undefined;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
@import "../../style/_base-input.scss";
|
|
2
|
-
|
|
3
|
-
:host {
|
|
4
|
-
&.detail-column {
|
|
5
|
-
::ng-deep .e-grid {
|
|
6
|
-
.e-gridheader tr.e-columnheader th.e-headercell:first-child {
|
|
7
|
-
padding: 0;
|
|
8
|
-
.e-headercelldiv {
|
|
9
|
-
height: 30px;
|
|
10
|
-
}
|
|
11
|
-
svg {
|
|
12
|
-
height: 30px;
|
|
13
|
-
width: 30px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
.e-gridcontent tr td:first-child {
|
|
17
|
-
padding: 0;
|
|
18
|
-
.detail-wrapper {
|
|
19
|
-
height: 30px;
|
|
20
|
-
}
|
|
21
|
-
svg {
|
|
22
|
-
height: 30px;
|
|
23
|
-
width: 30px;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import {AfterViewInit, Component, OnInit, ViewEncapsulation} from '@angular/core';
|
|
2
|
-
import { BaseSelectionGridComponent } from './base/base-selection-grid.component';
|
|
3
|
-
import {RowDDService} from "@syncfusion/ej2-angular-grids";
|
|
4
|
-
import {L10n} from "@syncfusion/ej2-base";
|
|
5
|
-
import {LanguageCode} from "../../model/enum/language-code.enum";
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'co-grid',
|
|
9
|
-
template: `
|
|
10
|
-
<ejs-grid #grid id="grid"
|
|
11
|
-
[dataSource]="data"
|
|
12
|
-
[contextMenuItems]="contextMenuItems"
|
|
13
|
-
[pageSettings]="pageSettings"
|
|
14
|
-
[toolbar]="toolbarOptions"
|
|
15
|
-
[gridLines]="gridLines"
|
|
16
|
-
[frozenColumns]="frozenColumns"
|
|
17
|
-
[frozenRows]="frozenRows"
|
|
18
|
-
[selectionSettings]="selectionOptions"
|
|
19
|
-
[editSettings]="editSettings"
|
|
20
|
-
[allowPaging]="pagingEnabled"
|
|
21
|
-
[allowSorting]="sortingEnabled"
|
|
22
|
-
[allowFiltering]="filteringEnabled"
|
|
23
|
-
[allowGrouping]="groupingEnabled"
|
|
24
|
-
[allowReordering]="reorderingEnabled"
|
|
25
|
-
[allowResizing]="resizingEnabled"
|
|
26
|
-
[allowRowDragAndDrop]="rowDragAndDropEnabled"
|
|
27
|
-
[showColumnMenu]="showColumnMenu"
|
|
28
|
-
[showColumnChooser]="showColumnChooser"
|
|
29
|
-
[allowExcelExport]="exportExcelEnabled"
|
|
30
|
-
[allowPdfExport]="exportPdfEnabled"
|
|
31
|
-
[locale]="locale"
|
|
32
|
-
(toolbarClick)="toolbarClick($event)"
|
|
33
|
-
(rowSelected)="handleRowSelected($event)"
|
|
34
|
-
(recordDoubleClick)="handleDoubleClick($event)"
|
|
35
|
-
(recordClick)="handleRecordClick($event)"
|
|
36
|
-
(actionComplete)="handleActionComplete($event)"
|
|
37
|
-
(contextMenuClick)="contextMenuClick($event)"
|
|
38
|
-
(rowDragStart)="rowDragStartClick($event)"
|
|
39
|
-
(rowDrop)="rowDropClick($event)">
|
|
40
|
-
</ejs-grid>
|
|
41
|
-
`,
|
|
42
|
-
styleUrls: [
|
|
43
|
-
'./co-grid.component.scss'
|
|
44
|
-
],
|
|
45
|
-
providers: [
|
|
46
|
-
RowDDService
|
|
47
|
-
],
|
|
48
|
-
encapsulation: ViewEncapsulation.None
|
|
49
|
-
})
|
|
50
|
-
export class CoGridComponent<T> extends BaseSelectionGridComponent<T> implements OnInit {
|
|
51
|
-
public readonly languageCode: typeof LanguageCode = LanguageCode;
|
|
52
|
-
|
|
53
|
-
ngOnInit(): void {
|
|
54
|
-
super.ngOnInit();
|
|
55
|
-
|
|
56
|
-
L10n.load({
|
|
57
|
-
[this.languageCode.Dutch]: {
|
|
58
|
-
'grid': {
|
|
59
|
-
'GroupDropArea': 'Versleep een colom',
|
|
60
|
-
'Add': 'Toevoegen',
|
|
61
|
-
'Edit': 'Bewerken',
|
|
62
|
-
'Delete': 'Verwijderen',
|
|
63
|
-
'Update': 'Bijwerken',
|
|
64
|
-
'Cancel': 'Annuleren',
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { FormsModule } from '@angular/forms';
|
|
4
|
-
import {
|
|
5
|
-
ColumnChooserService,
|
|
6
|
-
ColumnMenuService,
|
|
7
|
-
ContextMenuService,
|
|
8
|
-
EditService,
|
|
9
|
-
ExcelExportService,
|
|
10
|
-
FilterService,
|
|
11
|
-
GridModule,
|
|
12
|
-
GroupService,
|
|
13
|
-
PageService,
|
|
14
|
-
PdfExportService,
|
|
15
|
-
ReorderService,
|
|
16
|
-
ResizeService,
|
|
17
|
-
SortService,
|
|
18
|
-
ToolbarService
|
|
19
|
-
} from '@syncfusion/ej2-angular-grids';
|
|
20
|
-
import { CoGridComponent } from './co-grid.component';
|
|
21
|
-
import { IconCacheService } from '../icon/icon-cache.service';
|
|
22
|
-
|
|
23
|
-
@NgModule({
|
|
24
|
-
imports: [
|
|
25
|
-
CommonModule,
|
|
26
|
-
FormsModule,
|
|
27
|
-
GridModule
|
|
28
|
-
],
|
|
29
|
-
declarations: [CoGridComponent],
|
|
30
|
-
exports: [CoGridComponent],
|
|
31
|
-
providers: [
|
|
32
|
-
IconCacheService,
|
|
33
|
-
PageService,
|
|
34
|
-
SortService,
|
|
35
|
-
FilterService,
|
|
36
|
-
GroupService,
|
|
37
|
-
ReorderService,
|
|
38
|
-
ResizeService,
|
|
39
|
-
ExcelExportService,
|
|
40
|
-
PdfExportService,
|
|
41
|
-
EditService,
|
|
42
|
-
ToolbarService,
|
|
43
|
-
ColumnChooserService,
|
|
44
|
-
ColumnMenuService,
|
|
45
|
-
ContextMenuService
|
|
46
|
-
]
|
|
47
|
-
})
|
|
48
|
-
export class CoGridModule {
|
|
49
|
-
}
|