@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,94 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
ElementRef,
|
|
5
|
-
EventEmitter,
|
|
6
|
-
HostBinding,
|
|
7
|
-
HostListener,
|
|
8
|
-
Input,
|
|
9
|
-
OnDestroy,
|
|
10
|
-
Output
|
|
11
|
-
} from '@angular/core';
|
|
12
|
-
import {SafeHtml} from "@angular/platform-browser";
|
|
13
|
-
import {EventUtils} from "../../core/utils/event-utils";
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: 'co-button',
|
|
17
|
-
template: `
|
|
18
|
-
<co-icon *ngIf="!!iconData" [iconData]="iconData" [class]="iconClass"></co-icon>
|
|
19
|
-
<span *ngIf="!!label" class="label">{{ label }}</span>
|
|
20
|
-
<div class="rippler" md-ripple [mdRippleDisabled]="disabled"></div>
|
|
21
|
-
`,
|
|
22
|
-
styleUrls: [
|
|
23
|
-
'button.scss'
|
|
24
|
-
],
|
|
25
|
-
host: {
|
|
26
|
-
tabindex: "0"
|
|
27
|
-
},
|
|
28
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
29
|
-
})
|
|
30
|
-
export class ButtonComponent implements OnDestroy {
|
|
31
|
-
@Input()
|
|
32
|
-
public label: string;
|
|
33
|
-
|
|
34
|
-
@Input()
|
|
35
|
-
public iconData: SafeHtml | undefined;
|
|
36
|
-
|
|
37
|
-
// The string containing the class(es) of the icon.
|
|
38
|
-
@Input()
|
|
39
|
-
public iconClass: string = 'light';
|
|
40
|
-
|
|
41
|
-
@Input()
|
|
42
|
-
public isToggleButton: boolean;
|
|
43
|
-
|
|
44
|
-
@Input()
|
|
45
|
-
@HostBinding("class.toggled")
|
|
46
|
-
public isToggled: boolean;
|
|
47
|
-
|
|
48
|
-
@Input()
|
|
49
|
-
@HostBinding("class.co-hidden")
|
|
50
|
-
public hidden: boolean = false;
|
|
51
|
-
|
|
52
|
-
@Input()
|
|
53
|
-
@HostBinding("class.disabled")
|
|
54
|
-
public disabled: boolean = false;
|
|
55
|
-
|
|
56
|
-
@Output()
|
|
57
|
-
public readonly onClick: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
|
|
58
|
-
|
|
59
|
-
@Output()
|
|
60
|
-
public readonly clickedWhileDisabled: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
|
|
61
|
-
|
|
62
|
-
@Output()
|
|
63
|
-
public readonly isToggledChange: EventEmitter<boolean> = new EventEmitter<boolean>();
|
|
64
|
-
|
|
65
|
-
@HostBinding("class.has-icon")
|
|
66
|
-
public get hasIcon(): boolean {
|
|
67
|
-
return !!this.iconData;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@HostListener("click", ['$event'])
|
|
71
|
-
public onHostClick(event: MouseEvent): void {
|
|
72
|
-
if (this.disabled) {
|
|
73
|
-
this.clickedWhileDisabled.emit(event);
|
|
74
|
-
EventUtils.KillEvent(event);
|
|
75
|
-
} else {
|
|
76
|
-
this.onClick.emit(event);
|
|
77
|
-
if (this.isToggleButton) {
|
|
78
|
-
this.isToggled = !this.isToggled;
|
|
79
|
-
this.isToggledChange.emit(this.isToggled);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
constructor(private _elementRef: ElementRef) {
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
ngOnDestroy(): void {
|
|
88
|
-
this._elementRef = undefined;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
public focus(): void {
|
|
92
|
-
this._elementRef.nativeElement.focus();
|
|
93
|
-
}
|
|
94
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {NgModule} from "@angular/core";
|
|
2
|
-
import {CommonModule} from "@angular/common";
|
|
3
|
-
|
|
4
|
-
import {IconModule} from "../icon/icon.module";
|
|
5
|
-
import {RippleModule} from "../../directives/ripple/ripple.module";
|
|
6
|
-
import {ButtonComponent} from "./button.component";
|
|
7
|
-
|
|
8
|
-
@NgModule({
|
|
9
|
-
imports: [
|
|
10
|
-
CommonModule,
|
|
11
|
-
IconModule,
|
|
12
|
-
RippleModule
|
|
13
|
-
],
|
|
14
|
-
declarations: [ButtonComponent],
|
|
15
|
-
exports: [ButtonComponent]
|
|
16
|
-
})
|
|
17
|
-
export class ButtonModule {
|
|
18
|
-
}
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
@import "../../style/variables";
|
|
2
|
-
@import "../../style/input.mixins";
|
|
3
|
-
|
|
4
|
-
%transparent-button {
|
|
5
|
-
background-color: transparent;
|
|
6
|
-
&:not(.disabled).action-hover {
|
|
7
|
-
&:hover {
|
|
8
|
-
color: $color-light;
|
|
9
|
-
background-color: $color-action !important;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
:host {
|
|
15
|
-
position: relative;
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
flex-shrink: 0;
|
|
19
|
-
flex-grow: 0;
|
|
20
|
-
height: 40px;
|
|
21
|
-
border-radius: 20px;
|
|
22
|
-
outline: none;
|
|
23
|
-
color: #FFF;
|
|
24
|
-
background-color: #2b60a7;
|
|
25
|
-
z-index: 0; /* to keep ripple effect inside button */
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
padding: 0 20px;
|
|
28
|
-
font-size: 14px;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:host.toggled {
|
|
32
|
-
background-color: #8faba6;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:host.white.toggled {
|
|
36
|
-
background-color: #8faba6;
|
|
37
|
-
border: 1px solid #8faba6;
|
|
38
|
-
color: white;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host.white.toggled co-icon ::ng-deep [fill] {
|
|
42
|
-
fill: #FFF;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
:host.smaller {
|
|
46
|
-
transform: scale(0.8);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
:host.small {
|
|
50
|
-
transform: scale(0.6);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:host.mini {
|
|
54
|
-
transform: scale(0.4);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:host.has-icon {
|
|
58
|
-
padding-left: 10px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:host.circle {
|
|
62
|
-
padding: 0;
|
|
63
|
-
width: 40px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
:host.circle > co-icon {
|
|
67
|
-
position: relative;
|
|
68
|
-
left: 5px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
:host.disabled {
|
|
72
|
-
filter: opacity(50%);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
:host.white {
|
|
76
|
-
background-color: rgba(255, 255, 255, 0.85);
|
|
77
|
-
border: 1px solid $color_border;
|
|
78
|
-
color: #484F60;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
:host.white:hover {
|
|
82
|
-
background-color: #2b60a7;
|
|
83
|
-
border: 1px solid #2b60a7;
|
|
84
|
-
color: #FFF;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
:host.white co-icon ::ng-deep [fill] {
|
|
88
|
-
fill: #22313C;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
:host.white:hover co-icon ::ng-deep [fill] {
|
|
92
|
-
fill: #FFF;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:host.transparent {
|
|
96
|
-
@extend %transparent-button;
|
|
97
|
-
&:hover:not(.disabled):not(.no-hover) {
|
|
98
|
-
::ng-deep > co-icon {
|
|
99
|
-
@include icon-fill($color-light);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
div.rippler {
|
|
105
|
-
position: absolute;
|
|
106
|
-
top: 0;
|
|
107
|
-
right: 0;
|
|
108
|
-
bottom: 0;
|
|
109
|
-
left: 0;
|
|
110
|
-
z-index: 1;
|
|
111
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
.e-dropdown-popup {
|
|
2
|
-
background-color:transparent;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.e-btn.e-active, .e-btn:hover {
|
|
6
|
-
background-color: transparent;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.e-dropdown-popup ul .e-item:hover {
|
|
10
|
-
background-color: transparent;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.e-dropdown-popup ul {
|
|
14
|
-
box-shadow: none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.e-description::before {
|
|
18
|
-
content: '\e30d';
|
|
19
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
|
2
|
-
import {ItemModel} from "@syncfusion/ej2-angular-splitbuttons";
|
|
3
|
-
import {SplitButtonIconPosition} from "@syncfusion/ej2-splitbuttons/src/common/common";
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'button-drop-down',
|
|
7
|
-
template: `
|
|
8
|
-
<button ejs-dropdownbutton
|
|
9
|
-
[content]="content"
|
|
10
|
-
[items]="items"
|
|
11
|
-
[iconCss]="iconCss"
|
|
12
|
-
[iconPosition]="iconPosition"
|
|
13
|
-
[cssClass]="cssClass"
|
|
14
|
-
[ngClass] = "{
|
|
15
|
-
'.e-dropdown-popup': isTransparent,
|
|
16
|
-
'.e-btn.e-active, .e-btn:hover': isTransparent
|
|
17
|
-
}"
|
|
18
|
-
(select)="select.emit($event)"></button>
|
|
19
|
-
`,
|
|
20
|
-
styleUrls: ['./button-drop-down.component.scss']
|
|
21
|
-
})
|
|
22
|
-
export class ButtonDropDownComponent implements OnInit {
|
|
23
|
-
|
|
24
|
-
@Input()
|
|
25
|
-
public content: string;
|
|
26
|
-
|
|
27
|
-
@Input()
|
|
28
|
-
public items: ItemModel[];
|
|
29
|
-
|
|
30
|
-
@Input()
|
|
31
|
-
public iconCss: string
|
|
32
|
-
|
|
33
|
-
@Input()
|
|
34
|
-
public iconPosition: SplitButtonIconPosition = "Left";
|
|
35
|
-
|
|
36
|
-
@Input()
|
|
37
|
-
public cssClass: string;
|
|
38
|
-
|
|
39
|
-
@Input()
|
|
40
|
-
public transparent: boolean = false;
|
|
41
|
-
|
|
42
|
-
@Output()
|
|
43
|
-
public readonly select: EventEmitter<any> = new EventEmitter<any>();
|
|
44
|
-
|
|
45
|
-
public get isTransparent(): boolean {
|
|
46
|
-
return this.transparent;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
constructor() { }
|
|
50
|
-
|
|
51
|
-
ngOnInit(): void {
|
|
52
|
-
}
|
|
53
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import {NgModule} from "@angular/core";
|
|
2
|
-
import {CommonModule} from "@angular/common";
|
|
3
|
-
import {ButtonDropDownComponent} from "./button-drop-down.component";
|
|
4
|
-
import {DropDownButtonModule} from "@syncfusion/ej2-angular-splitbuttons";
|
|
5
|
-
|
|
6
|
-
@NgModule({
|
|
7
|
-
declarations: [
|
|
8
|
-
ButtonDropDownComponent],
|
|
9
|
-
imports: [
|
|
10
|
-
CommonModule,
|
|
11
|
-
DropDownButtonModule
|
|
12
|
-
],
|
|
13
|
-
exports: [
|
|
14
|
-
ButtonDropDownComponent
|
|
15
|
-
]
|
|
16
|
-
})
|
|
17
|
-
export class ButtonDropDownModule { }
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
ChangeDetectorRef,
|
|
4
|
-
Component,
|
|
5
|
-
EventEmitter,
|
|
6
|
-
HostBinding,
|
|
7
|
-
HostListener,
|
|
8
|
-
Input,
|
|
9
|
-
Output
|
|
10
|
-
} from '@angular/core';
|
|
11
|
-
|
|
12
|
-
import {IconCacheService} from "../icon/icon-cache.service";
|
|
13
|
-
import {CoreComponentsIcon} from "../../core/enum/core-components-icon.enum";
|
|
14
|
-
import {LevelIndicatorLevel} from "../level-indicator/level-indicator-level.enum";
|
|
15
|
-
|
|
16
|
-
@Component({
|
|
17
|
-
selector: "co-card",
|
|
18
|
-
template: `
|
|
19
|
-
<div class="co-card-wrapper">
|
|
20
|
-
<div class="content-wrapper">
|
|
21
|
-
<co-icon *ngIf="isSelected" [iconData]="icons.getIcon(Icons.Check)" class="check light circle"></co-icon>
|
|
22
|
-
<co-button *ngIf="hasMagnifierButton" [iconData]="icons.getIcon(Icons.MagnifierPlus)" class="magnify white small circle"
|
|
23
|
-
[stopClick]="true" (click)="magnifierButtonClick.emit($event)"></co-button>
|
|
24
|
-
<div class="image">
|
|
25
|
-
<co-image [source]="imageData"></co-image>
|
|
26
|
-
<ng-content select="[over-image]"></ng-content>
|
|
27
|
-
</div>
|
|
28
|
-
<co-level-indicator class="co-level-indicator" *ngIf="!!level" [model]="level"></co-level-indicator>
|
|
29
|
-
<co-button *ngIf="hasInfoButton" [iconData]="icons.getIcon(Icons.Information)" class="info white small circle"
|
|
30
|
-
[class.small]="!isSmallModus" [stopClick]="true" [class.mini]="isSmallModus"
|
|
31
|
-
(click)="infoButtonClick.emit($event)"></co-button>
|
|
32
|
-
</div>
|
|
33
|
-
<div class="description-wrapper">
|
|
34
|
-
<span *ngIf="!!description" class="description" [innerText]="description"></span>
|
|
35
|
-
<span *ngIf="!!price" class="price" [innerText]="price | priceDisplay"></span>
|
|
36
|
-
<ng-content></ng-content>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
`,
|
|
40
|
-
styleUrls: [
|
|
41
|
-
"card.scss"
|
|
42
|
-
],
|
|
43
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
44
|
-
})
|
|
45
|
-
export class CardComponent {
|
|
46
|
-
@Input()
|
|
47
|
-
public imageData: string;
|
|
48
|
-
|
|
49
|
-
@Input()
|
|
50
|
-
public description: string;
|
|
51
|
-
|
|
52
|
-
@Input()
|
|
53
|
-
public price: number | string;
|
|
54
|
-
|
|
55
|
-
@Input()
|
|
56
|
-
public level: LevelIndicatorLevel;
|
|
57
|
-
|
|
58
|
-
@Input()
|
|
59
|
-
public isSelected: boolean = false;
|
|
60
|
-
|
|
61
|
-
@Input() @HostBinding("class.small-modus")
|
|
62
|
-
public isSmallModus: boolean = false;
|
|
63
|
-
|
|
64
|
-
@Input()
|
|
65
|
-
public hasMagnifierButton: boolean = false;
|
|
66
|
-
|
|
67
|
-
@Input()
|
|
68
|
-
public hasInfoButton: boolean = false;
|
|
69
|
-
|
|
70
|
-
// does not emit when you click one of the predefined buttons, but emits on a click on any of our other content
|
|
71
|
-
@Output()
|
|
72
|
-
public readonly contentClick: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
|
|
73
|
-
|
|
74
|
-
@Output()
|
|
75
|
-
public readonly infoButtonClick: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
|
|
76
|
-
|
|
77
|
-
@Output()
|
|
78
|
-
public readonly magnifierButtonClick: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
|
|
79
|
-
|
|
80
|
-
public readonly Icons: any = CoreComponentsIcon;
|
|
81
|
-
|
|
82
|
-
public heightCard: number = 150;
|
|
83
|
-
|
|
84
|
-
@HostListener("click", ["$event"])
|
|
85
|
-
public onHostClick(event: MouseEvent): void {
|
|
86
|
-
this.contentClick.emit(event);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
constructor(public icons: IconCacheService, private _changeDetector: ChangeDetectorRef) {
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {NgModule} from "@angular/core";
|
|
2
|
-
import {CommonModule} from "@angular/common";
|
|
3
|
-
import {HttpClientModule} from "@angular/common/http";
|
|
4
|
-
|
|
5
|
-
import {CardComponent} from "./card.component";
|
|
6
|
-
import {IconModule} from "../icon/icon.module";
|
|
7
|
-
import {ButtonModule} from "../button/button.module";
|
|
8
|
-
import {ImageModule} from "../image/image.module";
|
|
9
|
-
import {StopClickModule} from "../../directives/stopclick/stop-click.module";
|
|
10
|
-
import {LevelIndicatorModule} from "../level-indicator/level-indicator.module";
|
|
11
|
-
import {PriceDisplayPipeModule} from "../../pipes/price-display-pipe.module";
|
|
12
|
-
import { TileModule } from '../tile/tile.module';
|
|
13
|
-
import { IconCacheService } from '../icon/icon-cache.service';
|
|
14
|
-
|
|
15
|
-
@NgModule({
|
|
16
|
-
imports: [
|
|
17
|
-
CommonModule,
|
|
18
|
-
HttpClientModule,
|
|
19
|
-
IconModule,
|
|
20
|
-
ButtonModule,
|
|
21
|
-
ImageModule,
|
|
22
|
-
StopClickModule,
|
|
23
|
-
LevelIndicatorModule,
|
|
24
|
-
PriceDisplayPipeModule,
|
|
25
|
-
TileModule
|
|
26
|
-
],
|
|
27
|
-
declarations: [CardComponent],
|
|
28
|
-
providers: [
|
|
29
|
-
IconCacheService
|
|
30
|
-
],
|
|
31
|
-
exports: [CardComponent]
|
|
32
|
-
})
|
|
33
|
-
export class CardModule {
|
|
34
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Component,
|
|
3
|
-
EventEmitter,
|
|
4
|
-
Input,
|
|
5
|
-
Output,
|
|
6
|
-
ViewChild,
|
|
7
|
-
ViewEncapsulation
|
|
8
|
-
} from '@angular/core';
|
|
9
|
-
import {DialogComponent,
|
|
10
|
-
PositionDataModel} from "@syncfusion/ej2-angular-popups";
|
|
11
|
-
import { EmitType } from '@syncfusion/ej2-base';
|
|
12
|
-
|
|
13
|
-
@Component({
|
|
14
|
-
selector: 'co-dialog',
|
|
15
|
-
template: `
|
|
16
|
-
<ejs-dialog #template
|
|
17
|
-
[showCloseIcon]='showCloseIcon'
|
|
18
|
-
[target]='targetElement'
|
|
19
|
-
[width]='width'
|
|
20
|
-
[position]="position"
|
|
21
|
-
[isModal]="modal"
|
|
22
|
-
[visible]="visible"
|
|
23
|
-
(overlayClick)="onOverlayClick()"
|
|
24
|
-
(close)="onCloseClick()"
|
|
25
|
-
>
|
|
26
|
-
<ng-template #footerTemplate>
|
|
27
|
-
<ng-content select="[footer]"></ng-content>
|
|
28
|
-
</ng-template>
|
|
29
|
-
<ng-template #content>
|
|
30
|
-
<ng-content></ng-content>
|
|
31
|
-
</ng-template>
|
|
32
|
-
<ng-template #header>
|
|
33
|
-
<ng-content select="[header]"></ng-content>
|
|
34
|
-
</ng-template>
|
|
35
|
-
</ejs-dialog>
|
|
36
|
-
`,
|
|
37
|
-
encapsulation: ViewEncapsulation.None,
|
|
38
|
-
styleUrls: ['./co-dialog.component.scss']
|
|
39
|
-
})
|
|
40
|
-
export class CoDialogComponent {
|
|
41
|
-
@ViewChild('template')
|
|
42
|
-
public coDialog: DialogComponent;
|
|
43
|
-
|
|
44
|
-
@Input()
|
|
45
|
-
public targetElement: HTMLElement = null;
|
|
46
|
-
|
|
47
|
-
@Input()
|
|
48
|
-
public showCloseIcon: boolean = true;
|
|
49
|
-
|
|
50
|
-
@Input()
|
|
51
|
-
public width: string = "50%";
|
|
52
|
-
|
|
53
|
-
@Input()
|
|
54
|
-
public visible: boolean = false;
|
|
55
|
-
|
|
56
|
-
@Input()
|
|
57
|
-
public position: PositionDataModel = {X: 'center', Y: 'center'};
|
|
58
|
-
|
|
59
|
-
@Input()
|
|
60
|
-
public modal: boolean = true;
|
|
61
|
-
|
|
62
|
-
@Output()
|
|
63
|
-
public readonly closeClick: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
|
|
64
|
-
|
|
65
|
-
@Output()
|
|
66
|
-
public readonly overlayClick: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
|
|
67
|
-
|
|
68
|
-
constructor() {}
|
|
69
|
-
|
|
70
|
-
public open(): void {
|
|
71
|
-
this.coDialog.show();
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
public close(): void {
|
|
75
|
-
this.coDialog.hide();
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
public onOverlayClick: EmitType<object> = () => {
|
|
79
|
-
this.coDialog.hide();
|
|
80
|
-
this.overlayClick.emit();
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
public onCloseClick: EmitType<object> = () => {
|
|
84
|
-
this.coDialog.hide();
|
|
85
|
-
this.closeClick.emit();
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {NgModule} from "@angular/core";
|
|
2
|
-
import {CoDialogComponent} from "./co-dialog.component";
|
|
3
|
-
import {DialogModule} from "@syncfusion/ej2-angular-popups";
|
|
4
|
-
|
|
5
|
-
@NgModule({
|
|
6
|
-
imports: [
|
|
7
|
-
DialogModule
|
|
8
|
-
],
|
|
9
|
-
declarations: [CoDialogComponent],
|
|
10
|
-
providers: [
|
|
11
|
-
],
|
|
12
|
-
exports: [CoDialogComponent]
|
|
13
|
-
})
|
|
14
|
-
export class CoDialogModule {
|
|
15
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import {Component, EventEmitter, Input, OnInit, Output, ViewChild} from '@angular/core';
|
|
2
|
-
import {DialogComponent} from "@syncfusion/ej2-angular-popups";
|
|
3
|
-
import { EmitType } from '@syncfusion/ej2-base';
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'co-dialog-prompt',
|
|
7
|
-
template: `
|
|
8
|
-
<div #coDialogPromptRootContainer class='co-dialog-prompt-root-container'></div>
|
|
9
|
-
<ejs-dialog #coDialogPrompt
|
|
10
|
-
[buttons]="buttons"
|
|
11
|
-
[header]="header"
|
|
12
|
-
[content]="content"
|
|
13
|
-
[showCloseIcon]="showCloseIcon"
|
|
14
|
-
[target]="target"
|
|
15
|
-
[visible]="visible"
|
|
16
|
-
[width]="width"
|
|
17
|
-
(close)="onCloseClick()"
|
|
18
|
-
>
|
|
19
|
-
</ejs-dialog>
|
|
20
|
-
`,
|
|
21
|
-
styleUrls: ['./co-dialog-prompt.component.scss']
|
|
22
|
-
})
|
|
23
|
-
export class CoDialogPromptComponent {
|
|
24
|
-
@ViewChild('coDialogPrompt')
|
|
25
|
-
public coDialogPrompt: DialogComponent;
|
|
26
|
-
|
|
27
|
-
@Input()
|
|
28
|
-
public header: string = "header";
|
|
29
|
-
|
|
30
|
-
@Input()
|
|
31
|
-
public content: string = "content";
|
|
32
|
-
|
|
33
|
-
@Input()
|
|
34
|
-
public visible: boolean = false;
|
|
35
|
-
|
|
36
|
-
@Input()
|
|
37
|
-
public width: string = "50%";
|
|
38
|
-
|
|
39
|
-
@Input()
|
|
40
|
-
public showCloseIcon: boolean = true;
|
|
41
|
-
|
|
42
|
-
@Output()
|
|
43
|
-
public readonly closeClick: EventEmitter<MouseEvent> = new EventEmitter<MouseEvent>();
|
|
44
|
-
|
|
45
|
-
public target: string = '.co-dialog-prompt-root-container';
|
|
46
|
-
public buttons: Object[] = [
|
|
47
|
-
{ click: this.buttonClick.bind(this), buttonModel: { content: 'Ja', isPrimary: 'true' } },
|
|
48
|
-
{ click: this.buttonClick.bind(this), buttonModel: { content: 'Nee' } }
|
|
49
|
-
];
|
|
50
|
-
|
|
51
|
-
constructor() {}
|
|
52
|
-
|
|
53
|
-
public open(): void {
|
|
54
|
-
this.coDialogPrompt.show();
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
public close(): void {
|
|
58
|
-
this.coDialogPrompt.hide();
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
public buttonClick(): void {
|
|
62
|
-
this.close();
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
public onCloseClick: EmitType<object> = () => {
|
|
66
|
-
this.close();
|
|
67
|
-
this.closeClick.emit();
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {NgModule} from "@angular/core";
|
|
2
|
-
import {CoDialogPromptComponent} from "./co-dialog-prompt.component";
|
|
3
|
-
import {DialogModule} from "@syncfusion/ej2-angular-popups";
|
|
4
|
-
|
|
5
|
-
@NgModule({
|
|
6
|
-
imports: [
|
|
7
|
-
DialogModule
|
|
8
|
-
],
|
|
9
|
-
declarations: [CoDialogPromptComponent],
|
|
10
|
-
providers: [
|
|
11
|
-
],
|
|
12
|
-
exports: [CoDialogPromptComponent]
|
|
13
|
-
})
|
|
14
|
-
export class CoDialogPromptModule {
|
|
15
|
-
}
|