@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,70 +0,0 @@
|
|
|
1
|
-
import { PopupButton } from './popup-button';
|
|
2
|
-
import { PopupType } from '../../../core/enum/popup-type.enum';
|
|
3
|
-
import { PopupButtonType } from '../../../core/enum/popup-button-type.enum';
|
|
4
|
-
|
|
5
|
-
export class PopupSettings {
|
|
6
|
-
// Title text for the header of a popup window. Will be localized.
|
|
7
|
-
public title: string;
|
|
8
|
-
// Whether to close the popup automatically when the user clicks outside of it.
|
|
9
|
-
public autoClose: boolean;
|
|
10
|
-
// Kind of popup to adjust styling.
|
|
11
|
-
public type: PopupType;
|
|
12
|
-
// Defines which buttons are shown.
|
|
13
|
-
public buttons?: PopupButton[];
|
|
14
|
-
// Set to true to hide the 'X' close icon in the top-right corner of the popup.
|
|
15
|
-
public hideCloseIcon?: boolean;
|
|
16
|
-
// Do not focus on first button when popping up (default behavior is to focus on the first button)
|
|
17
|
-
public noButtonFocus?: boolean;
|
|
18
|
-
// Whether the popup can be moved around
|
|
19
|
-
public fixed?: boolean;
|
|
20
|
-
// Whether content of the popup can be downloaded
|
|
21
|
-
public downloadable?: boolean;
|
|
22
|
-
|
|
23
|
-
constructor() {
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
public enableButtonByType(buttonType: PopupButtonType): void {
|
|
27
|
-
const button: PopupButton = this._getButtonByType(buttonType);
|
|
28
|
-
if (button) {
|
|
29
|
-
button.disabled = false;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
public disableButtonByType(buttonType: PopupButtonType): void {
|
|
34
|
-
const button: PopupButton = this._getButtonByType(buttonType);
|
|
35
|
-
if (button) {
|
|
36
|
-
button.disabled = true;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
public enableSaveButton(): void {
|
|
41
|
-
this.enableButtonByType(PopupButtonType.Save);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
public disableSaveButton(): void {
|
|
45
|
-
this.disableButtonByType(PopupButtonType.Save);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
public enableOpenButton(): void {
|
|
49
|
-
this.enableButtonByType(PopupButtonType.Open);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
public disableOpenButton(): void {
|
|
53
|
-
this.disableButtonByType(PopupButtonType.Open);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
private _getButtonByType(buttonType: PopupButtonType): PopupButton {
|
|
57
|
-
let button: PopupButton = undefined;
|
|
58
|
-
|
|
59
|
-
if (this.buttons) {
|
|
60
|
-
for (let i: number = 0, len: number = this.buttons.length; i < len; i++) {
|
|
61
|
-
if (this.buttons[i].closeType === buttonType) {
|
|
62
|
-
button = this.buttons[i];
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
return button;
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {EventEmitter} from "@angular/core";
|
|
2
|
-
import { PopupWindowModel } from '../model/popup-window';
|
|
3
|
-
import { PopupButtonType } from '../../../core/enum/popup-button-type.enum';
|
|
4
|
-
|
|
5
|
-
// Base for all app popup components.
|
|
6
|
-
export interface Popup<T = any> {
|
|
7
|
-
// usable by AppPopups to request the closing of the mother AppPopupWindowComponent
|
|
8
|
-
readonly closeRequest?: EventEmitter<PopupButtonType>;
|
|
9
|
-
|
|
10
|
-
popupModel?: PopupWindowModel;
|
|
11
|
-
|
|
12
|
-
// is called when the popup was just spawned
|
|
13
|
-
onOpen?(): void;
|
|
14
|
-
|
|
15
|
-
// Is called when the popup is closed by its mother AppPopupWindowComponent. Supply the output data in promise resolve.
|
|
16
|
-
onClose(eventType: PopupButtonType): Promise<T>;
|
|
17
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PopupButtonType } from '../../../core/enum/popup-button-type.enum';
|
|
2
|
-
import { PopupButton } from '../interface/popup-button';
|
|
3
|
-
|
|
4
|
-
export class PopupButtonGlobals {
|
|
5
|
-
public static readonly Ok: PopupButton = new PopupButton('OK', 'ok-button', PopupButtonType.Ok);
|
|
6
|
-
public static readonly Open: PopupButton = new PopupButton('OPEN', 'open-button', PopupButtonType.Open);
|
|
7
|
-
public static readonly Save: PopupButton = new PopupButton('SAVE', 'save-button', PopupButtonType.Save);
|
|
8
|
-
public static readonly Cancel: PopupButton = new PopupButton('CANCEL', 'cancel-button', PopupButtonType.Cancel);
|
|
9
|
-
public static readonly Yes: PopupButton = new PopupButton('JA', 'ok-button', PopupButtonType.Yes);
|
|
10
|
-
public static readonly No: PopupButton = new PopupButton('NEE', 'cancel-button', PopupButtonType.No);
|
|
11
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import {ComponentFactory} from "@angular/core";
|
|
2
|
-
import { PopupType } from '../../../core/enum/popup-type.enum';
|
|
3
|
-
import { StringUtils } from '../../../core/utils/string-utils';
|
|
4
|
-
import { PopupWindowShellComponent } from '../popup-window-shell.component';
|
|
5
|
-
import { PopupButtonType } from '../../../core/enum/popup-button-type.enum';
|
|
6
|
-
import { Popup } from '../interface/popup';
|
|
7
|
-
import { PopupSettings } from '../interface/popup-settings';
|
|
8
|
-
|
|
9
|
-
// Represent the base for app popup windows, with common fields and methods that each popup window has.
|
|
10
|
-
export class PopupWindowModel {
|
|
11
|
-
public static readonly closeDefaultOutputStr: string = "PopupWindowModel.closeDefault()";
|
|
12
|
-
|
|
13
|
-
public get type(): PopupType {
|
|
14
|
-
return this.settings ? this.settings.type : undefined;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
public uuid: string = StringUtils.CreateGuid();
|
|
18
|
-
|
|
19
|
-
// Reference to the actual popup window component.
|
|
20
|
-
public popupWindowComponent?: PopupWindowShellComponent;
|
|
21
|
-
|
|
22
|
-
constructor(public factory: ComponentFactory<Popup>, public settings: PopupSettings, public inputs: any) {
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
public closeDefault(): void {
|
|
26
|
-
this.onClose(PopupButtonType.NoButton, PopupWindowModel.closeDefaultOutputStr);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
public enableOpenButton(): void {
|
|
30
|
-
if (this.settings) {
|
|
31
|
-
this.settings.enableOpenButton();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
public disableOpenButton(): void {
|
|
36
|
-
if (this.settings) {
|
|
37
|
-
this.settings.disableOpenButton();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
public getTitle(): string {
|
|
42
|
-
if (this.settings) {
|
|
43
|
-
return this.settings.title;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
//noinspection JSUnusedLocalSymbols
|
|
48
|
-
onClose(eventType: PopupButtonType, output?: any): void {
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import {Component, EventEmitter, Input, OnInit, Output, ViewChild} from "@angular/core";
|
|
2
|
-
import {ButtonComponent} from "../button/button.component";
|
|
3
|
-
import {PopupButtonGlobals} from "./model/popup-button-globals";
|
|
4
|
-
import {PopupButton} from "./interface/popup-button";
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: 'co-popup-buttons',
|
|
8
|
-
template: `
|
|
9
|
-
<div class="popup-buttons">
|
|
10
|
-
<co-button
|
|
11
|
-
*ngFor="let button of buttons"
|
|
12
|
-
[label]="button.label"
|
|
13
|
-
[class]="button.cssClass"
|
|
14
|
-
[disabled]="button.disabled"
|
|
15
|
-
(click)="handleClick($event, button)"
|
|
16
|
-
></co-button>
|
|
17
|
-
</div>
|
|
18
|
-
`,
|
|
19
|
-
styleUrls: [
|
|
20
|
-
'./popup-buttons.component.scss'
|
|
21
|
-
]
|
|
22
|
-
})
|
|
23
|
-
// Component that is part of the WindowComponent, and represents the panel with buttons on the bottom of app popups.
|
|
24
|
-
export class PopupButtonsComponent implements OnInit {
|
|
25
|
-
|
|
26
|
-
@Input()
|
|
27
|
-
public popupWindow: any;
|
|
28
|
-
|
|
29
|
-
@Output()
|
|
30
|
-
public readonly buttonClick: EventEmitter<PopupButton> = new EventEmitter<PopupButton>();
|
|
31
|
-
|
|
32
|
-
@ViewChild(ButtonComponent)
|
|
33
|
-
public firstButton: ButtonComponent;
|
|
34
|
-
|
|
35
|
-
public buttons: PopupButton[] = [PopupButtonGlobals.Ok, PopupButtonGlobals.Cancel];
|
|
36
|
-
|
|
37
|
-
constructor() {
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
ngOnInit(): void {
|
|
41
|
-
if (!this.popupWindow || !this.popupWindow.settings) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
if (this.popupWindow.settings.buttons) {
|
|
45
|
-
this.buttons = this.popupWindow.settings.buttons;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
public handleClick(event: MouseEvent, button: PopupButton): void {
|
|
50
|
-
event.preventDefault();
|
|
51
|
-
event.stopImmediatePropagation();
|
|
52
|
-
event.stopPropagation();
|
|
53
|
-
this.buttonClick.emit(button);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
public focusFirstButton(): void {
|
|
57
|
-
if (this.firstButton) {
|
|
58
|
-
this.firstButton.focus();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import { PopupButtonType } from '../../core/enum/popup-button-type.enum';
|
|
3
|
-
import { FileUtils } from '../../core/utils/file-utils';
|
|
4
|
-
import { BrowserUtils } from '../../core/utils/browser-utils';
|
|
5
|
-
import { Popup } from './interface/popup';
|
|
6
|
-
|
|
7
|
-
@Component({
|
|
8
|
-
selector: "co-popup-message-display",
|
|
9
|
-
template: `
|
|
10
|
-
<span *ngIf="!image" class="message" [textContent]="message"></span>
|
|
11
|
-
<img *ngIf="image" [src]="message"/>
|
|
12
|
-
<ng-container *ngIf="details" label="DETAILS">
|
|
13
|
-
<div class="overflow-y-auto overflow-x-hidden details">
|
|
14
|
-
<span class="message wrap" [textContent]="details" style="overflow-wrap: break-word;"></span>
|
|
15
|
-
</div>
|
|
16
|
-
<span class="details-link" [textContent]="'COPY_MESSAGE_TO_CLIPBOARD'" (click)="handleCopyClick()"></span>
|
|
17
|
-
</ng-container>
|
|
18
|
-
`
|
|
19
|
-
})
|
|
20
|
-
export class PopupMessageDisplayComponent implements Popup<PopupButtonType> {
|
|
21
|
-
@Input()
|
|
22
|
-
public set message(value: string) {
|
|
23
|
-
this._message = value;
|
|
24
|
-
this.image = FileUtils.StringContainsDataUri(value);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
public get message(): string {
|
|
28
|
-
return this._message;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@Input()
|
|
32
|
-
public details: string;
|
|
33
|
-
|
|
34
|
-
public image: boolean = false;
|
|
35
|
-
|
|
36
|
-
private _message: string = "";
|
|
37
|
-
|
|
38
|
-
constructor() {
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// @implements AppPopup
|
|
42
|
-
async onClose(eventType: PopupButtonType): Promise<PopupButtonType> {
|
|
43
|
-
return eventType;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
public handleCopyClick(): void {
|
|
47
|
-
BrowserUtils.CopyToClipboard(this.details);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AfterViewInit,
|
|
3
|
-
ChangeDetectionStrategy,
|
|
4
|
-
ChangeDetectorRef,
|
|
5
|
-
Component,
|
|
6
|
-
ComponentRef,
|
|
7
|
-
HostBinding,
|
|
8
|
-
Inject,
|
|
9
|
-
Input,
|
|
10
|
-
OnDestroy,
|
|
11
|
-
OnInit,
|
|
12
|
-
ViewChild,
|
|
13
|
-
ViewContainerRef
|
|
14
|
-
} from "@angular/core";
|
|
15
|
-
import {PopupButtonsComponent} from "./popup-buttons.component";
|
|
16
|
-
import {Subscription} from "rxjs";
|
|
17
|
-
import {PopupButtonType} from "../../core/enum/popup-button-type.enum";
|
|
18
|
-
import {FileUtils} from "../../core/utils/file-utils";
|
|
19
|
-
import {ObjectUtils} from "../../core/utils/object-utils";
|
|
20
|
-
import {PopupType} from "../../core/enum/popup-type.enum";
|
|
21
|
-
import {PopupMessageDisplayComponent} from "./popup-message-display.component";
|
|
22
|
-
import {PopupWindowModel} from "./model/popup-window";
|
|
23
|
-
import {Popup} from "./interface/popup";
|
|
24
|
-
import {PopupButton} from "./interface/popup-button";
|
|
25
|
-
import {POPUP_WINDOW_DATA} from "./const/popup-window-token";
|
|
26
|
-
import {CoreComponentsIcon} from "../../core/enum/core-components-icon.enum";
|
|
27
|
-
import {IconCacheService} from "../icon/icon-cache.service";
|
|
28
|
-
import {SafeHtml} from "@angular/platform-browser";
|
|
29
|
-
|
|
30
|
-
@Component({
|
|
31
|
-
selector: "co-popup-window-shell",
|
|
32
|
-
template: `
|
|
33
|
-
<ng-container *ngIf="!isBlank">
|
|
34
|
-
<co-button *ngIf="popupWindow?.settings.downloadable" class="circle shadowed popup-downloadable" [iconData]="downloadIcon"
|
|
35
|
-
iconClass="light"
|
|
36
|
-
(click)="onDownloadClick()"></co-button>
|
|
37
|
-
<co-button *ngIf="!popupWindow?.settings.hideCloseIcon" class="circle shadowed popup-close" [iconData]="closeIcon"
|
|
38
|
-
iconClass="light"
|
|
39
|
-
(click)="onCloseClick()"></co-button>
|
|
40
|
-
<div class="popup-wrapper" *ngIf="!isBlank">
|
|
41
|
-
<div class="popup-title"><h2 [textContent]="popupWindow?.settings.title"></h2></div>
|
|
42
|
-
<div class="popup-content" (mousedown)="$event.stopImmediatePropagation()">
|
|
43
|
-
<ng-template #popupContent></ng-template>
|
|
44
|
-
</div>
|
|
45
|
-
<co-popup-buttons [popupWindow]="popupWindow" (buttonClick)="onButtonClick($event)"></co-popup-buttons>
|
|
46
|
-
</div>
|
|
47
|
-
</ng-container>
|
|
48
|
-
<ng-template #popupContent *ngIf="isBlank"></ng-template>
|
|
49
|
-
`,
|
|
50
|
-
styleUrls: [
|
|
51
|
-
"popup-window-shell.component.scss"
|
|
52
|
-
],
|
|
53
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
54
|
-
})
|
|
55
|
-
// The main component for app popups. Visually represents the outer edges of the components.
|
|
56
|
-
export class PopupWindowShellComponent implements AfterViewInit, OnDestroy, OnInit {
|
|
57
|
-
|
|
58
|
-
public readonly icons: typeof CoreComponentsIcon = CoreComponentsIcon;
|
|
59
|
-
|
|
60
|
-
@Input()
|
|
61
|
-
public popupWindow: PopupWindowModel;
|
|
62
|
-
|
|
63
|
-
@Input()
|
|
64
|
-
@HostBinding("class.mobile-sizings")
|
|
65
|
-
public hasMobileSizings: boolean;
|
|
66
|
-
|
|
67
|
-
@ViewChild("popupContent", {read: ViewContainerRef})
|
|
68
|
-
protected _viewContainer: ViewContainerRef;
|
|
69
|
-
|
|
70
|
-
@ViewChild(PopupButtonsComponent)
|
|
71
|
-
protected _appPopupButtons: PopupButtonsComponent;
|
|
72
|
-
|
|
73
|
-
@HostBinding("class.popup-error")
|
|
74
|
-
public isError: boolean;
|
|
75
|
-
|
|
76
|
-
@HostBinding("class.popup-warning")
|
|
77
|
-
public isWarning: boolean;
|
|
78
|
-
|
|
79
|
-
@HostBinding("class.popup-notification")
|
|
80
|
-
public isNotification: boolean;
|
|
81
|
-
|
|
82
|
-
@HostBinding("class.popup-question")
|
|
83
|
-
public isQuestion: boolean;
|
|
84
|
-
|
|
85
|
-
@HostBinding("class.movable")
|
|
86
|
-
public isMovable: boolean;
|
|
87
|
-
|
|
88
|
-
public isBlank: boolean;
|
|
89
|
-
|
|
90
|
-
public closeIcon: SafeHtml;
|
|
91
|
-
public downloadIcon: SafeHtml;
|
|
92
|
-
|
|
93
|
-
// @HostBinding('style.top.px')
|
|
94
|
-
// public top: number = -1000; //start off-screen
|
|
95
|
-
//
|
|
96
|
-
// @HostBinding('style.left.px')
|
|
97
|
-
// public left: number = -1000; //start off-screen
|
|
98
|
-
|
|
99
|
-
private _popupCompRef: ComponentRef<Popup>;
|
|
100
|
-
|
|
101
|
-
private _filterClickSub: Subscription;
|
|
102
|
-
|
|
103
|
-
private _popupCloseRequestSub: Subscription;
|
|
104
|
-
|
|
105
|
-
constructor(
|
|
106
|
-
private _iconCache: IconCacheService,
|
|
107
|
-
private _changeDetector: ChangeDetectorRef,
|
|
108
|
-
public viewContainerRef: ViewContainerRef
|
|
109
|
-
) {
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
ngOnInit(): void {
|
|
113
|
-
this.closeIcon = this._iconCache.getIcon(this.icons.CrossSkinny);
|
|
114
|
-
this.downloadIcon = this._iconCache.getIcon(this.icons.Download);
|
|
115
|
-
this._setHostBindings();
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
ngAfterViewInit(): void {
|
|
119
|
-
this.popupWindow.popupWindowComponent = this;
|
|
120
|
-
this._createPopupComponent();
|
|
121
|
-
this._initOnClickAutoClose();
|
|
122
|
-
this._initAppPopupCloseRequestHandler();
|
|
123
|
-
|
|
124
|
-
if (!this.popupWindow.settings.noButtonFocus && this._appPopupButtons) {
|
|
125
|
-
setTimeout(() => {
|
|
126
|
-
this._appPopupButtons.focusFirstButton();
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
this._changeDetector.detectChanges();
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
ngOnDestroy(): void {
|
|
134
|
-
this._close();
|
|
135
|
-
this._viewContainer.clear();
|
|
136
|
-
this._popupCompRef = undefined;
|
|
137
|
-
this._viewContainer = undefined;
|
|
138
|
-
this._changeDetector = undefined;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
public async close(eventType: PopupButtonType): Promise<void> {
|
|
142
|
-
if (this._popupCompRef && this._popupCompRef.instance && this._popupCompRef.instance.onClose) {
|
|
143
|
-
const onCloseOutput: any = await this._popupCompRef.instance.onClose(eventType);
|
|
144
|
-
this.popupWindow.onClose(eventType, onCloseOutput);
|
|
145
|
-
} else {
|
|
146
|
-
this.popupWindow.onClose(eventType);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
public onButtonClick(button: PopupButton): void {
|
|
151
|
-
if (!button.disabled) {
|
|
152
|
-
this.close(button.closeType);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
public onDownloadClick(): void {
|
|
157
|
-
try {
|
|
158
|
-
const dataUri: string = (this._popupCompRef.instance as PopupMessageDisplayComponent).message;
|
|
159
|
-
FileUtils.DownloadFromDataUri(dataUri, FileUtils.CreateDownloadFileNameFromBase64(dataUri));
|
|
160
|
-
} catch (e) {
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
public onCloseClick(): void {
|
|
166
|
-
this.close(PopupButtonType.Cancel);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
private _close = (): void => {
|
|
170
|
-
this.onCloseClick();
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
private _createPopupComponent(): void {
|
|
174
|
-
this._popupCompRef = this._viewContainer.createComponent(this.popupWindow.factory);
|
|
175
|
-
ObjectUtils.ForOwnProperty(this.popupWindow.inputs, (value: any, key: string) => {
|
|
176
|
-
this._popupCompRef.instance[key] = value;
|
|
177
|
-
});
|
|
178
|
-
// give the concrete popup component access to its underlying model (with settings etc, e.g. for dynamic disabling/enabling of popup buttons on bottom)
|
|
179
|
-
this._popupCompRef.instance.popupModel = this.popupWindow;
|
|
180
|
-
if (this._popupCompRef.instance.onOpen) {
|
|
181
|
-
this._popupCompRef.instance.onOpen();
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
private _initOnClickAutoClose(): void {
|
|
186
|
-
if (this.popupWindow && this.popupWindow.settings && this.popupWindow.settings.autoClose) {
|
|
187
|
-
if (this._filterClickSub) {
|
|
188
|
-
this._filterClickSub.unsubscribe();
|
|
189
|
-
}
|
|
190
|
-
// this._filterClickSub = this._filterService.onClick.subscribe(() => {
|
|
191
|
-
// this.onCloseClick();
|
|
192
|
-
// });
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
private _initAppPopupCloseRequestHandler(): void {
|
|
197
|
-
if (!this._popupCompRef || !this._popupCompRef.instance || !this._popupCompRef.instance.closeRequest) {
|
|
198
|
-
return;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
if (this._popupCloseRequestSub) {
|
|
202
|
-
this._popupCloseRequestSub.unsubscribe();
|
|
203
|
-
}
|
|
204
|
-
this._popupCloseRequestSub = this._popupCompRef.instance.closeRequest.subscribe((closeButton: PopupButtonType) => {
|
|
205
|
-
if (!closeButton) {
|
|
206
|
-
closeButton = PopupButtonType.NoButton;
|
|
207
|
-
}
|
|
208
|
-
this.close(closeButton);
|
|
209
|
-
});
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
private _setHostBindings(): void {
|
|
213
|
-
if (this.popupWindow) {
|
|
214
|
-
this.isError = this.popupWindow.type === PopupType.Error;
|
|
215
|
-
this.isWarning = this.popupWindow.type === PopupType.Warning;
|
|
216
|
-
this.isNotification = this.popupWindow.type === PopupType.Notification;
|
|
217
|
-
this.isQuestion = this.popupWindow.type === PopupType.Question;
|
|
218
|
-
this.isBlank = this.popupWindow.type === PopupType.Blank;
|
|
219
|
-
this.isMovable = !this.popupWindow.settings.fixed;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ModuleWithProviders, NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
|
|
4
|
-
import { InputTextModule } from '../input-text/input-text.module';
|
|
5
|
-
import { TextInputPopupComponent } from './text-input-popup.component';
|
|
6
|
-
import { PopupMessageDisplayComponent } from './popup-message-display.component';
|
|
7
|
-
import { PopupWindowShellComponent } from './popup-window-shell.component';
|
|
8
|
-
import { PopupButtonsComponent } from './popup-buttons.component';
|
|
9
|
-
import { ButtonModule } from '../button/button.module';
|
|
10
|
-
import { PromptService } from './service/prompt.service';
|
|
11
|
-
import { PopupShowerService } from './service/popup-shower.service';
|
|
12
|
-
import { Overlay } from '@angular/cdk/overlay';
|
|
13
|
-
import { IconCacheService } from '../icon/icon-cache.service';
|
|
14
|
-
|
|
15
|
-
@NgModule({
|
|
16
|
-
imports: [
|
|
17
|
-
CommonModule,
|
|
18
|
-
InputTextModule,
|
|
19
|
-
ButtonModule
|
|
20
|
-
],
|
|
21
|
-
declarations: [
|
|
22
|
-
TextInputPopupComponent,
|
|
23
|
-
PopupMessageDisplayComponent,
|
|
24
|
-
PopupWindowShellComponent,
|
|
25
|
-
PopupButtonsComponent
|
|
26
|
-
],
|
|
27
|
-
entryComponents: [
|
|
28
|
-
PopupMessageDisplayComponent,
|
|
29
|
-
PopupWindowShellComponent
|
|
30
|
-
],
|
|
31
|
-
exports: [
|
|
32
|
-
TextInputPopupComponent,
|
|
33
|
-
PopupWindowShellComponent
|
|
34
|
-
]
|
|
35
|
-
})
|
|
36
|
-
export class PopupModule {
|
|
37
|
-
static forRoot(): ModuleWithProviders<PopupModule> {
|
|
38
|
-
return {
|
|
39
|
-
ngModule: PopupModule,
|
|
40
|
-
providers: [
|
|
41
|
-
PromptService,
|
|
42
|
-
PopupShowerService,
|
|
43
|
-
Overlay,
|
|
44
|
-
IconCacheService
|
|
45
|
-
]
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ApplicationRef,
|
|
3
|
-
ComponentFactory,
|
|
4
|
-
ComponentFactoryResolver,
|
|
5
|
-
ComponentRef,
|
|
6
|
-
EmbeddedViewRef,
|
|
7
|
-
Injectable,
|
|
8
|
-
Injector
|
|
9
|
-
} from "@angular/core";
|
|
10
|
-
import { PopupSettings } from '../interface/popup-settings';
|
|
11
|
-
import { PopupCloseEvent } from '../interface/popup-close-event';
|
|
12
|
-
import { Popup } from '../interface/popup';
|
|
13
|
-
import { PopupWindowModel } from '../model/popup-window';
|
|
14
|
-
import { PopupWindowShellComponent } from '../popup-window-shell.component';
|
|
15
|
-
import { GlobalPositionStrategy, Overlay, OverlayConfig, OverlayRef } from '@angular/cdk/overlay';
|
|
16
|
-
import { ComponentPortal } from '@angular/cdk/portal';
|
|
17
|
-
import { POPUP_WINDOW_DATA } from '../const/popup-window-token';
|
|
18
|
-
import { PopupButtonType } from '../../../core/enum/popup-button-type.enum';
|
|
19
|
-
|
|
20
|
-
// Class responsible for showing popups throughout the application and returning results from user interaction with those popups.
|
|
21
|
-
@Injectable()
|
|
22
|
-
export class PopupShowerService {
|
|
23
|
-
|
|
24
|
-
constructor(
|
|
25
|
-
private _compFactoryResolver: ComponentFactoryResolver,
|
|
26
|
-
private _appRef: ApplicationRef,
|
|
27
|
-
private _overlay: Overlay,
|
|
28
|
-
private _injector: Injector) {
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
public async showPopup<T = any>(popupCompClazz: any, popupSettings: PopupSettings, inputs: any = {}): Promise<PopupCloseEvent<T>> {
|
|
32
|
-
const popupShellRef: ComponentRef<PopupWindowShellComponent> = this._createWindowShell();
|
|
33
|
-
const popupShell: PopupWindowShellComponent = popupShellRef.instance;
|
|
34
|
-
const config: OverlayConfig = this._getConfig();
|
|
35
|
-
const popupCompFactory: ComponentFactory<Popup<T>> = this._compFactoryResolver.resolveComponentFactory(popupCompClazz);
|
|
36
|
-
|
|
37
|
-
return new Promise<PopupCloseEvent>((resolve: Function) => {
|
|
38
|
-
|
|
39
|
-
const popupWindow: PopupWindowModel = new PopupWindowModel(popupCompFactory, popupSettings, inputs);
|
|
40
|
-
// the generic onClose handler: remove the closed popup and resolve our original createPopup call with its output data
|
|
41
|
-
popupWindow.onClose = (eventType: PopupButtonType, output: any) => {
|
|
42
|
-
this._appRef.detachView(popupShellRef.hostView);
|
|
43
|
-
popupShellRef.destroy();
|
|
44
|
-
resolve({
|
|
45
|
-
eventType: eventType,
|
|
46
|
-
output: output
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
popupShell.popupWindow = popupWindow;
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
private _createWindowShell(): ComponentRef<PopupWindowShellComponent> {
|
|
54
|
-
const componentRef = this._compFactoryResolver
|
|
55
|
-
.resolveComponentFactory(PopupWindowShellComponent)
|
|
56
|
-
.create(this._injector);
|
|
57
|
-
this._appRef.attachView(componentRef.hostView);
|
|
58
|
-
const domElem = (componentRef.hostView as EmbeddedViewRef<any>).rootNodes[0] as HTMLElement;
|
|
59
|
-
document.body.appendChild(domElem);
|
|
60
|
-
return componentRef;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
private _createOverlay(config: OverlayConfig): OverlayRef {
|
|
64
|
-
return this._overlay.create(config);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
private _getConfig(): OverlayConfig {
|
|
68
|
-
const positionStrategy: GlobalPositionStrategy = this._overlay.position()
|
|
69
|
-
.global()
|
|
70
|
-
.centerHorizontally()
|
|
71
|
-
.centerVertically();
|
|
72
|
-
|
|
73
|
-
return new OverlayConfig({
|
|
74
|
-
hasBackdrop: true,
|
|
75
|
-
backdropClass: 'message-overlay-backdrop',
|
|
76
|
-
panelClass: 'message-overlay',
|
|
77
|
-
scrollStrategy: this._overlay.scrollStrategies.block(),
|
|
78
|
-
positionStrategy
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
private _attachDialogContainer(overlayRef: OverlayRef, popupWindow: PopupWindowModel /*, dialogRef: FilePreviewOverlayRef*/): PopupWindowShellComponent {
|
|
83
|
-
const injector: Injector = this._createInjector(popupWindow);
|
|
84
|
-
const containerPortal: ComponentPortal<PopupWindowShellComponent> = new ComponentPortal(PopupWindowShellComponent, null, injector);
|
|
85
|
-
const containerRef: ComponentRef<PopupWindowShellComponent> = overlayRef.attach(containerPortal);
|
|
86
|
-
return containerRef.instance;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
private _createInjector(popupWindow: PopupWindowModel): Injector {
|
|
90
|
-
const injectionTokens: any = new WeakMap();
|
|
91
|
-
injectionTokens.set(POPUP_WINDOW_DATA, popupWindow);
|
|
92
|
-
const options = {
|
|
93
|
-
parent: this._injector,
|
|
94
|
-
providers: injectionTokens
|
|
95
|
-
};
|
|
96
|
-
return Injector.create(options);
|
|
97
|
-
}
|
|
98
|
-
}
|