@colijnit/corecomponents_v12 12.2.26 → 12.2.27
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 +13684 -13680
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -1
- package/colijnit-corecomponents_v12.d.ts +43 -43
- package/colijnit-corecomponents_v12.metadata.json +1 -1
- package/esm2015/colijnit-corecomponents_v12.js +43 -43
- package/esm2015/lib/components/article-tile/article-tile.component.js +49 -49
- package/esm2015/lib/components/article-tile/article-tile.module.js +34 -34
- package/esm2015/lib/components/base/base-input.component.js +833 -833
- package/esm2015/lib/components/base/base.module.js +21 -21
- package/esm2015/lib/components/base/commit-buttons/commit-buttons.component.js +85 -85
- package/esm2015/lib/components/base/commit-buttons/commit-buttons.module.js +20 -20
- package/esm2015/lib/components/base/dialog-base.component.js +5 -5
- package/esm2015/lib/components/base-input-date-picker/base-input-date-picker.directive.js +24 -24
- package/esm2015/lib/components/button/button.component.js +73 -73
- package/esm2015/lib/components/button/button.module.js +18 -18
- package/esm2015/lib/components/calendar/calendar-template.component.js +281 -281
- package/esm2015/lib/components/calendar/calendar.component.js +32 -32
- package/esm2015/lib/components/calendar/calendar.module.js +27 -27
- package/esm2015/lib/components/card/card.component.js +50 -50
- package/esm2015/lib/components/card/card.module.js +34 -34
- package/esm2015/lib/components/carousel/carousel.component.js +109 -109
- package/esm2015/lib/components/carousel/carousel.module.js +31 -31
- package/esm2015/lib/components/carousel-3d/carousel-3d.component.js +293 -293
- package/esm2015/lib/components/carousel-3d/carousel-3d.module.js +18 -18
- package/esm2015/lib/components/carousel-3d/carouselItem.js +53 -53
- package/esm2015/lib/components/checkmark-overlay/checkmark-overlay.component.js +72 -72
- package/esm2015/lib/components/checkmark-overlay/checkmark-overlay.module.js +18 -18
- package/esm2015/lib/components/co-dialog/co-dialog.component.js +91 -91
- package/esm2015/lib/components/co-dialog/co-dialog.module.js +18 -18
- package/esm2015/lib/components/co-dialog-wizard/co-dialog-wizard.component.js +35 -35
- package/esm2015/lib/components/co-dialog-wizard/co-dialog-wizard.module.js +16 -16
- package/esm2015/lib/components/collapsible/collapsible.component.js +67 -67
- package/esm2015/lib/components/collapsible/collapsible.module.js +18 -18
- package/esm2015/lib/components/color-picker/color-picker.component.js +33 -33
- package/esm2015/lib/components/color-picker/color-picker.module.js +20 -20
- package/esm2015/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.js +46 -46
- package/esm2015/lib/components/core-dialog/core-dialog.module.js +38 -38
- package/esm2015/lib/components/core-dialog/core-dialog.service.js +66 -66
- package/esm2015/lib/components/core-dialog/core-dynamic-component.service.js +92 -92
- package/esm2015/lib/components/double-calendar/double-calendar.component.js +62 -62
- package/esm2015/lib/components/double-calendar/double-calendar.module.js +24 -24
- package/esm2015/lib/components/filter-item/filter-item-viewmodel.js +12 -12
- package/esm2015/lib/components/filter-item/filter-item.component.js +496 -496
- package/esm2015/lib/components/filter-item/filter-item.module.js +42 -42
- package/esm2015/lib/components/filter-item/filter-viewmodel.js +10 -10
- package/esm2015/lib/components/form/form.component.js +181 -181
- package/esm2015/lib/components/form/form.module.js +22 -22
- package/esm2015/lib/components/grid-toolbar/grid-toolbar.component.js +48 -48
- package/esm2015/lib/components/grid-toolbar/grid-toolbar.module.js +22 -22
- package/esm2015/lib/components/grid-toolbar-button/grid-toolbar-button.component.js +23 -23
- package/esm2015/lib/components/grid-toolbar-button/grid-toolbar-button.module.js +18 -18
- package/esm2015/lib/components/icon/icon-cache.service.js +51 -51
- package/esm2015/lib/components/icon/icon.component.js +47 -47
- package/esm2015/lib/components/icon/icon.module.js +24 -24
- package/esm2015/lib/components/icon-collapse-handle/icon-collapse-handle.component.js +56 -56
- package/esm2015/lib/components/icon-collapse-handle/icon-collapse-handle.module.js +22 -22
- package/esm2015/lib/components/image/image.component.js +31 -31
- package/esm2015/lib/components/image/image.module.js +13 -13
- package/esm2015/lib/components/input-checkbox/input-checkbox.component.js +71 -71
- package/esm2015/lib/components/input-checkbox/input-checkbox.module.js +18 -18
- package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +74 -74
- package/esm2015/lib/components/input-date-picker/input-date-picker.module.js +25 -25
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +107 -107
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.module.js +26 -26
- package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +285 -285
- package/esm2015/lib/components/input-number-picker/input-number-picker.module.js +22 -22
- package/esm2015/lib/components/input-radio-button/input-radio-button.component.js +77 -77
- package/esm2015/lib/components/input-radio-button/input-radio-button.module.js +18 -18
- package/esm2015/lib/components/input-scanner/bar-code-scanner.js +22 -22
- package/esm2015/lib/components/input-scanner/input-scanner.component.js +56 -56
- package/esm2015/lib/components/input-scanner/input-scanner.module.js +20 -20
- package/esm2015/lib/components/input-scanner/scanner.service.js +27 -27
- package/esm2015/lib/components/input-search/input-search.component.js +67 -63
- package/esm2015/lib/components/input-search/input-search.module.js +20 -20
- package/esm2015/lib/components/input-text/input-text.component.js +192 -192
- package/esm2015/lib/components/input-text/input-text.module.js +32 -32
- package/esm2015/lib/components/input-textarea/input-textarea.component.js +55 -55
- package/esm2015/lib/components/input-textarea/input-textarea.module.js +26 -26
- package/esm2015/lib/components/level-indicator/level-indicator-level.enum.js +6 -6
- package/esm2015/lib/components/level-indicator/level-indicator.component.js +29 -29
- package/esm2015/lib/components/level-indicator/level-indicator.module.js +14 -14
- package/esm2015/lib/components/list-of-values/list-of-values-multiselect-popup.component.js +87 -87
- package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +218 -218
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +199 -199
- package/esm2015/lib/components/list-of-values/list-of-values.module.js +37 -37
- package/esm2015/lib/components/loader/loader.component.js +16 -16
- package/esm2015/lib/components/loader/loader.module.js +18 -18
- package/esm2015/lib/components/pagination/paginate.pipe.js +98 -98
- package/esm2015/lib/components/pagination/pagination-instance.js +1 -1
- package/esm2015/lib/components/pagination/pagination.component.js +107 -107
- package/esm2015/lib/components/pagination/pagination.module.js +27 -27
- package/esm2015/lib/components/pagination/pagination.service.js +87 -87
- package/esm2015/lib/components/pagination-bar/pagination-bar.component.js +136 -136
- package/esm2015/lib/components/pagination-bar/pagination-bar.module.js +18 -18
- package/esm2015/lib/components/popup/const/popup-window-token.js +2 -2
- package/esm2015/lib/components/popup/interface/popup-button.js +7 -7
- package/esm2015/lib/components/popup/interface/popup-close-event.js +1 -1
- package/esm2015/lib/components/popup/interface/popup-settings.js +41 -41
- package/esm2015/lib/components/popup/interface/popup.js +1 -1
- package/esm2015/lib/components/popup/model/popup-button-globals.js +10 -10
- package/esm2015/lib/components/popup/model/popup-window.js +37 -37
- package/esm2015/lib/components/popup/popup-buttons.component.js +42 -42
- package/esm2015/lib/components/popup/popup-message-display.component.js +37 -37
- package/esm2015/lib/components/popup/popup-window-shell.component.js +141 -141
- package/esm2015/lib/components/popup/popup.module.js +48 -48
- package/esm2015/lib/components/popup/service/popup-shower.service.js +89 -89
- package/esm2015/lib/components/popup/service/prompt.service.js +126 -126
- package/esm2015/lib/components/popup/text-input-popup.component.js +33 -33
- package/esm2015/lib/components/responsive-text/responsive-text.component.js +17 -17
- package/esm2015/lib/components/responsive-text/responsive-text.module.js +18 -18
- package/esm2015/lib/components/simple-grid/base-simple-grid.component.js +163 -163
- package/esm2015/lib/components/simple-grid/simple-grid-cell.component.js +141 -141
- package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +110 -110
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +378 -378
- package/esm2015/lib/components/simple-grid/simple-grid.module.js +40 -40
- package/esm2015/lib/components/tile/tile.component.js +44 -44
- package/esm2015/lib/components/tile/tile.module.js +22 -22
- package/esm2015/lib/components/tile-select/tile-select.component.js +26 -26
- package/esm2015/lib/components/tile-select/tile-select.module.js +20 -20
- package/esm2015/lib/components/tooltip/tooltip.component.js +74 -74
- package/esm2015/lib/components/tooltip/tooltip.module.js +18 -18
- package/esm2015/lib/components/validation-error/validation-error.component.js +30 -30
- package/esm2015/lib/components/validation-error/validation-error.module.js +24 -24
- package/esm2015/lib/components/view-mode-buttons/content-view-mode.enum.js +10 -10
- package/esm2015/lib/components/view-mode-buttons/view-mode-buttons.component.js +41 -41
- package/esm2015/lib/components/view-mode-buttons/view-mode-buttons.module.js +20 -20
- package/esm2015/lib/core/constant/default-upper-bound-for-range-components.js +3 -3
- package/esm2015/lib/core/constant/java-max-int.js +1 -1
- package/esm2015/lib/core/constant/number-inputs-key-down-white-list.js +44 -44
- package/esm2015/lib/core/decorator/input-boolean.decorator.js +33 -33
- package/esm2015/lib/core/enum/co-direction.js +8 -8
- package/esm2015/lib/core/enum/co-document-image-display-kind.enum.js +6 -6
- package/esm2015/lib/core/enum/co-document-type.enum.js +10 -10
- package/esm2015/lib/core/enum/co-orientation.js +16 -16
- package/esm2015/lib/core/enum/core-components-icon.enum.js +299 -299
- package/esm2015/lib/core/enum/file-type-internal.enum.js +16 -16
- package/esm2015/lib/core/enum/file-type.enum.js +10 -10
- package/esm2015/lib/core/enum/filterItem-mode.enum.js +42 -42
- package/esm2015/lib/core/enum/input-number-picker-show-mode.enum.js +7 -7
- package/esm2015/lib/core/enum/keyboard-code.enum.js +73 -73
- package/esm2015/lib/core/enum/keyboard-key.enum.js +75 -75
- package/esm2015/lib/core/enum/object-right-type.enum.js +6 -6
- package/esm2015/lib/core/enum/popup-button-type.enum.js +11 -11
- package/esm2015/lib/core/enum/popup-type.enum.js +10 -10
- package/esm2015/lib/core/enum/table-name.enum.js +80 -80
- package/esm2015/lib/core/function/any-nill.function.js +5 -5
- package/esm2015/lib/core/function/is-nill.function.js +4 -4
- package/esm2015/lib/core/function/none-nill.function.js +16 -16
- package/esm2015/lib/core/function/not-nill.function.js +4 -4
- package/esm2015/lib/core/model/bounds-constrained-number-value.js +170 -170
- package/esm2015/lib/core/model/check-precision-and-scale-result.js +1 -1
- package/esm2015/lib/core/model/check-within-stepped-bounds-result.js +1 -1
- package/esm2015/lib/core/model/co-document-right.bo.js +2 -2
- package/esm2015/lib/core/model/co-document.bo.js +120 -120
- package/esm2015/lib/core/model/core-components-icon-svg.js +298 -298
- package/esm2015/lib/core/model/element-position.js +9 -9
- package/esm2015/lib/core/model/event/string-prompt-result-event.js +7 -7
- package/esm2015/lib/core/service/form-input-user-change-listener.service.js +24 -24
- package/esm2015/lib/core/service/form-master.service.js +101 -101
- package/esm2015/lib/core/service/ng-zone-wrapper.service.js +19 -19
- package/esm2015/lib/core/utils/array-utils.js +263 -263
- package/esm2015/lib/core/utils/browser-utils.js +99 -99
- package/esm2015/lib/core/utils/direction-enum-utils.js +13 -13
- package/esm2015/lib/core/utils/event-utils.js +52 -52
- package/esm2015/lib/core/utils/file-utils.js +266 -266
- package/esm2015/lib/core/utils/number-utils.js +308 -308
- package/esm2015/lib/core/utils/object-utils.js +185 -185
- package/esm2015/lib/core/utils/string-utils.js +93 -93
- package/esm2015/lib/core/validator/email.validator.js +5 -5
- package/esm2015/lib/core/validator/equal.validator.js +10 -10
- package/esm2015/lib/core/validator/max-string-length.validator.js +9 -9
- package/esm2015/lib/core/validator/password.validator.js +30 -30
- package/esm2015/lib/core/validator/precision-scale.validator.js +10 -10
- package/esm2015/lib/core/validator/required.validator.js +4 -4
- package/esm2015/lib/directives/clickoutside/click-outside-master.service.js +56 -56
- package/esm2015/lib/directives/clickoutside/click-outside.directive.js +70 -70
- package/esm2015/lib/directives/clickoutside/clickoutside.module.js +18 -18
- package/esm2015/lib/directives/observe-visibility/observe-visibility.directive.js +52 -52
- package/esm2015/lib/directives/observe-visibility/observe-visibility.module.js +14 -14
- package/esm2015/lib/directives/overlay/overlay-parent.directive.js +18 -18
- package/esm2015/lib/directives/overlay/overlay.directive.js +160 -160
- package/esm2015/lib/directives/overlay/overlay.module.js +17 -17
- package/esm2015/lib/directives/ripple/ripple-ref.js +25 -25
- package/esm2015/lib/directives/ripple/ripple-renderer.js +159 -159
- package/esm2015/lib/directives/ripple/ripple.directive.js +79 -79
- package/esm2015/lib/directives/ripple/ripple.module.js +23 -23
- package/esm2015/lib/directives/ripple/scroll-dispatcher.service.js +107 -107
- package/esm2015/lib/directives/ripple/scrollable.directive.js +39 -39
- package/esm2015/lib/directives/ripple/viewport-ruler.service.js +72 -72
- package/esm2015/lib/directives/screen-configuration/screen-configuration.directive.js +157 -157
- package/esm2015/lib/directives/screen-configuration/screen-configuration.module.js +18 -18
- package/esm2015/lib/directives/stopclick/stop-click.directive.js +37 -37
- package/esm2015/lib/directives/stopclick/stop-click.module.js +14 -14
- package/esm2015/lib/directives/template-wrapper/template-wrapper.directive.js +67 -67
- package/esm2015/lib/directives/template-wrapper/template-wrapper.module.js +14 -14
- package/esm2015/lib/directives/tooltip/tooltip-directive.module.js +18 -18
- package/esm2015/lib/directives/tooltip/tooltip.directive.js +77 -77
- package/esm2015/lib/interfaces/dialog-response.interface.js +1 -1
- package/esm2015/lib/interfaces/scanner-input.interface.js +1 -1
- package/esm2015/lib/interfaces/screen-config-adapter-component-interface-name.js +3 -3
- package/esm2015/lib/interfaces/screen-config-adapter.component.interface.js +1 -1
- package/esm2015/lib/model/enum/app-button-type.enum.js +10 -10
- package/esm2015/lib/model/enum/app-popup-type.enum.js +7 -7
- package/esm2015/lib/pipes/append.pipe.js +16 -16
- package/esm2015/lib/pipes/append.pipe.module.js +14 -14
- package/esm2015/lib/pipes/filter.pipe.js +15 -15
- package/esm2015/lib/pipes/filter.pipe.module.js +14 -14
- package/esm2015/lib/pipes/prepend.pipe.js +16 -16
- package/esm2015/lib/pipes/prepend.pipe.module.js +14 -14
- package/esm2015/lib/pipes/price-display-pipe.module.js +14 -14
- package/esm2015/lib/pipes/price-display.pipe.js +19 -19
- package/esm2015/lib/service/base-module-screen-config.service.js +204 -204
- package/esm2015/lib/service/base-module.service.js +41 -41
- package/esm2015/lib/service/color-sequence.service.js +22 -22
- package/esm2015/lib/service/overlay.service.js +72 -72
- package/esm2015/lib/translation/core-components-translation.module.js +28 -28
- package/esm2015/lib/translation/core-components-translation.service.js +16 -16
- package/esm2015/lib/translation/core-dictionary.service.js +28 -28
- package/esm2015/lib/translation/core-localize.pipe.js +25 -25
- package/esm2015/public-api.js +129 -129
- package/fesm2015/colijnit-corecomponents_v12.js +12090 -12086
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -1
- package/lib/components/article-tile/article-tile.component.d.ts +22 -22
- package/lib/components/article-tile/article-tile.module.d.ts +2 -2
- package/lib/components/base/base-input.component.d.ts +182 -182
- package/lib/components/base/base.module.d.ts +2 -2
- package/lib/components/base/commit-buttons/commit-buttons.component.d.ts +21 -21
- package/lib/components/base/commit-buttons/commit-buttons.module.d.ts +2 -2
- package/lib/components/base/dialog-base.component.d.ts +4 -4
- package/lib/components/base-input-date-picker/base-input-date-picker.directive.d.ts +15 -15
- package/lib/components/button/button.component.d.ts +29 -29
- package/lib/components/button/button.module.d.ts +2 -2
- package/lib/components/calendar/calendar-template.component.d.ts +60 -60
- package/lib/components/calendar/calendar.component.d.ts +13 -13
- package/lib/components/calendar/calendar.module.d.ts +2 -2
- package/lib/components/card/card.component.d.ts +23 -23
- package/lib/components/card/card.module.d.ts +2 -2
- package/lib/components/carousel/carousel.component.d.ts +23 -23
- package/lib/components/carousel/carousel.module.d.ts +6 -6
- package/lib/components/carousel-3d/carousel-3d.component.d.ts +55 -55
- package/lib/components/carousel-3d/carousel-3d.module.d.ts +2 -2
- package/lib/components/carousel-3d/carouselItem.d.ts +13 -13
- package/lib/components/checkmark-overlay/checkmark-overlay.component.d.ts +17 -17
- package/lib/components/checkmark-overlay/checkmark-overlay.module.d.ts +2 -2
- package/lib/components/co-dialog/co-dialog.component.d.ts +23 -23
- package/lib/components/co-dialog/co-dialog.module.d.ts +2 -2
- package/lib/components/co-dialog-wizard/co-dialog-wizard.component.d.ts +9 -9
- package/lib/components/co-dialog-wizard/co-dialog-wizard.module.d.ts +2 -2
- package/lib/components/collapsible/collapsible.component.d.ts +22 -22
- package/lib/components/collapsible/collapsible.module.d.ts +2 -2
- package/lib/components/color-picker/color-picker.component.d.ts +6 -6
- package/lib/components/color-picker/color-picker.module.d.ts +2 -2
- package/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.d.ts +20 -20
- package/lib/components/core-dialog/core-dialog.module.d.ts +4 -4
- package/lib/components/core-dialog/core-dialog.service.d.ts +15 -15
- package/lib/components/core-dialog/core-dynamic-component.service.d.ts +12 -12
- package/lib/components/double-calendar/double-calendar.component.d.ts +18 -18
- package/lib/components/double-calendar/double-calendar.module.d.ts +2 -2
- package/lib/components/filter-item/filter-item-viewmodel.d.ts +9 -9
- package/lib/components/filter-item/filter-item.component.d.ts +80 -80
- package/lib/components/filter-item/filter-item.module.d.ts +2 -2
- package/lib/components/filter-item/filter-viewmodel.d.ts +8 -8
- package/lib/components/form/form.component.d.ts +39 -39
- package/lib/components/form/form.module.d.ts +2 -2
- package/lib/components/grid-toolbar/grid-toolbar.component.d.ts +19 -19
- package/lib/components/grid-toolbar/grid-toolbar.module.d.ts +2 -2
- package/lib/components/grid-toolbar-button/grid-toolbar-button.component.d.ts +8 -8
- package/lib/components/grid-toolbar-button/grid-toolbar-button.module.d.ts +2 -2
- package/lib/components/icon/icon-cache.service.d.ts +20 -20
- package/lib/components/icon/icon.component.d.ts +17 -17
- package/lib/components/icon/icon.module.d.ts +2 -2
- package/lib/components/icon-collapse-handle/icon-collapse-handle.component.d.ts +21 -21
- package/lib/components/icon-collapse-handle/icon-collapse-handle.module.d.ts +2 -2
- package/lib/components/image/image.component.d.ts +20 -20
- package/lib/components/image/image.module.d.ts +2 -2
- package/lib/components/input-checkbox/input-checkbox.component.d.ts +24 -24
- package/lib/components/input-checkbox/input-checkbox.module.d.ts +2 -2
- package/lib/components/input-date-picker/input-date-picker.component.d.ts +12 -12
- package/lib/components/input-date-picker/input-date-picker.module.d.ts +2 -2
- package/lib/components/input-date-range-picker/input-date-range-picker.component.d.ts +20 -20
- package/lib/components/input-date-range-picker/input-date-range-picker.module.d.ts +2 -2
- package/lib/components/input-number-picker/input-number-picker.component.d.ts +73 -73
- package/lib/components/input-number-picker/input-number-picker.module.d.ts +2 -2
- package/lib/components/input-radio-button/input-radio-button.component.d.ts +19 -19
- package/lib/components/input-radio-button/input-radio-button.module.d.ts +2 -2
- package/lib/components/input-scanner/bar-code-scanner.d.ts +7 -7
- package/lib/components/input-scanner/input-scanner.component.d.ts +24 -24
- package/lib/components/input-scanner/input-scanner.module.d.ts +2 -2
- package/lib/components/input-scanner/scanner.service.d.ts +11 -11
- package/lib/components/input-search/input-search.component.d.ts +20 -19
- package/lib/components/input-search/input-search.module.d.ts +2 -2
- package/lib/components/input-text/input-text.component.d.ts +65 -65
- package/lib/components/input-text/input-text.module.d.ts +2 -2
- package/lib/components/input-textarea/input-textarea.component.d.ts +19 -19
- package/lib/components/input-textarea/input-textarea.module.d.ts +2 -2
- package/lib/components/level-indicator/level-indicator-level.enum.d.ts +5 -5
- package/lib/components/level-indicator/level-indicator.component.d.ts +10 -10
- package/lib/components/level-indicator/level-indicator.module.d.ts +2 -2
- package/lib/components/list-of-values/list-of-values-multiselect-popup.component.d.ts +25 -25
- package/lib/components/list-of-values/list-of-values-popup.component.d.ts +47 -47
- package/lib/components/list-of-values/list-of-values.component.d.ts +37 -37
- package/lib/components/list-of-values/list-of-values.module.d.ts +2 -2
- package/lib/components/loader/loader.component.d.ts +3 -3
- package/lib/components/loader/loader.module.d.ts +2 -2
- package/lib/components/pagination/paginate.pipe.d.ts +15 -15
- package/lib/components/pagination/pagination-instance.d.ts +14 -14
- package/lib/components/pagination/pagination.component.d.ts +38 -38
- package/lib/components/pagination/pagination.module.d.ts +2 -2
- package/lib/components/pagination/pagination.service.d.ts +24 -24
- package/lib/components/pagination-bar/pagination-bar.component.d.ts +33 -33
- package/lib/components/pagination-bar/pagination-bar.module.d.ts +2 -2
- package/lib/components/popup/const/popup-window-token.d.ts +3 -3
- package/lib/components/popup/interface/popup-button.d.ts +8 -8
- package/lib/components/popup/interface/popup-close-event.d.ts +5 -5
- package/lib/components/popup/interface/popup-settings.d.ts +21 -21
- package/lib/components/popup/interface/popup.d.ts +9 -9
- package/lib/components/popup/model/popup-button-globals.d.ts +9 -9
- package/lib/components/popup/model/popup-window.d.ts +21 -21
- package/lib/components/popup/popup-buttons.component.d.ts +13 -13
- package/lib/components/popup/popup-message-display.component.d.ts +12 -12
- package/lib/components/popup/popup-window-shell.component.d.ts +42 -42
- package/lib/components/popup/popup.module.d.ts +4 -4
- package/lib/components/popup/service/popup-shower.service.d.ts +17 -17
- package/lib/components/popup/service/prompt.service.d.ts +17 -17
- package/lib/components/popup/text-input-popup.component.d.ts +12 -12
- package/lib/components/responsive-text/responsive-text.component.d.ts +4 -4
- package/lib/components/responsive-text/responsive-text.module.d.ts +2 -2
- package/lib/components/simple-grid/base-simple-grid.component.d.ts +52 -52
- package/lib/components/simple-grid/simple-grid-cell.component.d.ts +30 -30
- package/lib/components/simple-grid/simple-grid-column.directive.d.ts +42 -42
- package/lib/components/simple-grid/simple-grid.component.d.ts +64 -64
- package/lib/components/simple-grid/simple-grid.module.d.ts +2 -2
- package/lib/components/tile/tile.component.d.ts +16 -16
- package/lib/components/tile/tile.module.d.ts +2 -2
- package/lib/components/tile-select/tile-select.component.d.ts +8 -8
- package/lib/components/tile-select/tile-select.module.d.ts +2 -2
- package/lib/components/tooltip/tooltip.component.d.ts +18 -18
- package/lib/components/tooltip/tooltip.module.d.ts +2 -2
- package/lib/components/validation-error/validation-error.component.d.ts +12 -12
- package/lib/components/validation-error/validation-error.module.d.ts +2 -2
- package/lib/components/view-mode-buttons/content-view-mode.enum.d.ts +8 -8
- package/lib/components/view-mode-buttons/view-mode-buttons.component.d.ts +17 -17
- package/lib/components/view-mode-buttons/view-mode-buttons.module.d.ts +2 -2
- package/lib/core/constant/default-upper-bound-for-range-components.d.ts +2 -2
- package/lib/core/constant/java-max-int.d.ts +1 -1
- package/lib/core/constant/number-inputs-key-down-white-list.d.ts +2 -2
- package/lib/core/decorator/input-boolean.decorator.d.ts +8 -8
- package/lib/core/enum/co-direction.d.ts +6 -6
- package/lib/core/enum/co-document-image-display-kind.enum.d.ts +5 -5
- package/lib/core/enum/co-document-type.enum.d.ts +5 -5
- package/lib/core/enum/co-orientation.d.ts +6 -6
- package/lib/core/enum/core-components-icon.enum.d.ts +298 -298
- package/lib/core/enum/file-type-internal.enum.d.ts +15 -15
- package/lib/core/enum/file-type.enum.d.ts +5 -5
- package/lib/core/enum/filterItem-mode.enum.d.ts +15 -15
- package/lib/core/enum/input-number-picker-show-mode.enum.d.ts +5 -5
- package/lib/core/enum/keyboard-code.enum.d.ts +71 -71
- package/lib/core/enum/keyboard-key.enum.d.ts +70 -70
- package/lib/core/enum/object-right-type.enum.d.ts +5 -5
- package/lib/core/enum/popup-button-type.enum.d.ts +9 -9
- package/lib/core/enum/popup-type.enum.d.ts +9 -9
- package/lib/core/enum/table-name.enum.d.ts +79 -79
- package/lib/core/function/any-nill.function.d.ts +1 -1
- package/lib/core/function/is-nill.function.d.ts +1 -1
- package/lib/core/function/none-nill.function.d.ts +1 -1
- package/lib/core/function/not-nill.function.d.ts +1 -1
- package/lib/core/model/bounds-constrained-number-value.d.ts +46 -46
- package/lib/core/model/check-precision-and-scale-result.d.ts +4 -4
- package/lib/core/model/check-within-stepped-bounds-result.d.ts +8 -8
- package/lib/core/model/co-document-right.bo.d.ts +6 -6
- package/lib/core/model/co-document.bo.d.ts +61 -61
- package/lib/core/model/core-components-icon-svg.d.ts +4 -4
- package/lib/core/model/element-position.d.ts +7 -7
- package/lib/core/model/event/string-prompt-result-event.d.ts +6 -6
- package/lib/core/service/form-input-user-change-listener.service.d.ts +10 -10
- package/lib/core/service/form-master.service.d.ts +26 -26
- package/lib/core/service/ng-zone-wrapper.service.d.ts +6 -6
- package/lib/core/utils/array-utils.d.ts +85 -85
- package/lib/core/utils/browser-utils.d.ts +15 -15
- package/lib/core/utils/direction-enum-utils.d.ts +5 -5
- package/lib/core/utils/event-utils.d.ts +12 -12
- package/lib/core/utils/file-utils.d.ts +29 -29
- package/lib/core/utils/number-utils.d.ts +89 -89
- package/lib/core/utils/object-utils.d.ts +31 -31
- package/lib/core/utils/string-utils.d.ts +25 -25
- package/lib/core/validator/email.validator.d.ts +2 -2
- package/lib/core/validator/equal.validator.d.ts +2 -2
- package/lib/core/validator/max-string-length.validator.d.ts +2 -2
- package/lib/core/validator/password.validator.d.ts +3 -3
- package/lib/core/validator/precision-scale.validator.d.ts +2 -2
- package/lib/core/validator/required.validator.d.ts +2 -2
- package/lib/directives/clickoutside/click-outside-master.service.d.ts +15 -15
- package/lib/directives/clickoutside/click-outside.directive.d.ts +18 -18
- package/lib/directives/clickoutside/clickoutside.module.d.ts +2 -2
- package/lib/directives/observe-visibility/observe-visibility.directive.d.ts +14 -14
- package/lib/directives/observe-visibility/observe-visibility.module.d.ts +2 -2
- package/lib/directives/overlay/overlay-parent.directive.d.ts +6 -6
- package/lib/directives/overlay/overlay.directive.d.ts +25 -25
- package/lib/directives/overlay/overlay.module.d.ts +2 -2
- package/lib/directives/ripple/ripple-ref.d.ts +21 -21
- package/lib/directives/ripple/ripple-renderer.d.ts +56 -56
- package/lib/directives/ripple/ripple.directive.d.ts +56 -56
- package/lib/directives/ripple/ripple.module.d.ts +2 -2
- package/lib/directives/ripple/scroll-dispatcher.service.d.ts +51 -51
- package/lib/directives/ripple/scrollable.directive.d.ts +20 -20
- package/lib/directives/ripple/viewport-ruler.service.d.ts +29 -29
- package/lib/directives/screen-configuration/screen-configuration.directive.d.ts +32 -32
- package/lib/directives/screen-configuration/screen-configuration.module.d.ts +2 -2
- package/lib/directives/stopclick/stop-click.directive.d.ts +10 -10
- package/lib/directives/stopclick/stop-click.module.d.ts +2 -2
- package/lib/directives/template-wrapper/template-wrapper.directive.d.ts +13 -13
- package/lib/directives/template-wrapper/template-wrapper.module.d.ts +2 -2
- package/lib/directives/tooltip/tooltip-directive.module.d.ts +2 -2
- package/lib/directives/tooltip/tooltip.directive.d.ts +20 -20
- package/lib/interfaces/dialog-response.interface.d.ts +6 -6
- package/lib/interfaces/scanner-input.interface.d.ts +3 -3
- package/lib/interfaces/screen-config-adapter-component-interface-name.d.ts +3 -3
- package/lib/interfaces/screen-config-adapter.component.interface.d.ts +10 -10
- package/lib/model/enum/app-button-type.enum.d.ts +9 -9
- package/lib/model/enum/app-popup-type.enum.d.ts +6 -6
- package/lib/pipes/append.pipe.d.ts +4 -4
- package/lib/pipes/append.pipe.module.d.ts +2 -2
- package/lib/pipes/filter.pipe.d.ts +4 -4
- package/lib/pipes/filter.pipe.module.d.ts +2 -2
- package/lib/pipes/prepend.pipe.d.ts +4 -4
- package/lib/pipes/prepend.pipe.module.d.ts +2 -2
- package/lib/pipes/price-display-pipe.module.d.ts +2 -2
- package/lib/pipes/price-display.pipe.d.ts +4 -4
- package/lib/service/base-module-screen-config.service.d.ts +47 -47
- package/lib/service/base-module.service.d.ts +22 -22
- package/lib/service/color-sequence.service.d.ts +4 -4
- package/lib/service/overlay.service.d.ts +13 -13
- package/lib/translation/core-components-translation.module.d.ts +4 -4
- package/lib/translation/core-components-translation.service.d.ts +6 -6
- package/lib/translation/core-dictionary.service.d.ts +12 -12
- package/lib/translation/core-localize.pipe.d.ts +7 -7
- package/package.json +1 -1
- package/public-api.d.ts +126 -126
|
@@ -1,158 +1,158 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { Directive, ElementRef, Inject, Input, Renderer2 } from '@angular/core';
|
|
3
|
-
import { InputBoolean } from '../../core/decorator/input-boolean.decorator';
|
|
4
|
-
import { SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME } from '../../interfaces/screen-config-adapter-component-interface-name';
|
|
5
|
-
import { BaseModuleScreenConfigService } from '../../service/base-module-screen-config.service';
|
|
6
|
-
import { BaseModuleService } from '../../service/base-module.service';
|
|
7
|
-
// Directive to represents the marker of "screen config name ID's" of components within a module.
|
|
8
|
-
// Manipulates visibility, readonly and other dynamic states of an input element according to its db-fetched screen configuration object.
|
|
9
|
-
export class ScreenConfigurationDirective {
|
|
10
|
-
constructor(hostComponent, _element,
|
|
11
|
-
// we must always have a config service to fetch config objects with
|
|
12
|
-
_configService, _renderer,
|
|
13
|
-
// to make host readonly when MODULE switches to readonly:
|
|
14
|
-
_moduleService) {
|
|
15
|
-
this.hostComponent = hostComponent;
|
|
16
|
-
this._element = _element;
|
|
17
|
-
this._configService = _configService;
|
|
18
|
-
this._renderer = _renderer;
|
|
19
|
-
this._moduleService = _moduleService;
|
|
20
|
-
this.screenConfigNativeElement = false;
|
|
21
|
-
this.noModuleService = false;
|
|
22
|
-
// feature toggle for devs so you can see the whole screen with all inputs etc by temporarily turning off the hiding effects of this directive on its host
|
|
23
|
-
this._isTurnedOff = false;
|
|
24
|
-
this._subs = [];
|
|
25
|
-
this._subs.push(this._configService.configSet.subscribe((configObjects) => {
|
|
26
|
-
if (configObjects && configObjects.length > 0) {
|
|
27
|
-
this._updateHost();
|
|
28
|
-
}
|
|
29
|
-
}));
|
|
30
|
-
if (this._moduleService && !this.noModuleService) {
|
|
31
|
-
this._subs.push(this._moduleService.readonlyChange.subscribe((moduleInReadonlyState) => {
|
|
32
|
-
if (this.hostComponent) {
|
|
33
|
-
this.hostComponent.readonly = this.hostComponent.forceReadonly || moduleInReadonlyState;
|
|
34
|
-
}
|
|
35
|
-
}), this._moduleService.errorValidationReceived.subscribe((validationResult) => {
|
|
36
|
-
this._setErrorRedBackgroundAfterScrCfgValidate(validationResult);
|
|
37
|
-
}), this._moduleService.successfulUpdate.subscribe(() => {
|
|
38
|
-
if (this.hostComponent) {
|
|
39
|
-
this.hostComponent.redErrorBackground = false;
|
|
40
|
-
}
|
|
41
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
set screenConfigurationObject(value) {
|
|
45
|
-
if (value) {
|
|
46
|
-
this._screenConfigurationObject = value;
|
|
47
|
-
this._updateHost();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
get screenConfigurationObject() {
|
|
51
|
-
return this._screenConfigurationObject;
|
|
52
|
-
}
|
|
53
|
-
ngOnInit() {
|
|
54
|
-
this._updateHost();
|
|
55
|
-
// this._updateHeaderStateOnHostComponent(true);
|
|
56
|
-
// show initial error message if any
|
|
57
|
-
if (!this.noModuleService) {
|
|
58
|
-
// this._setErrorRedBackgroundAfterScrCfgValidate(this._moduleService.lastError);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
ngOnDestroy() {
|
|
62
|
-
this._subs.forEach(sub => sub.unsubscribe());
|
|
63
|
-
if (this._isHeader) {
|
|
64
|
-
// this._doubleClickHeaders.handleCollapseableDestroy(this.screenConfigurationObject);
|
|
65
|
-
}
|
|
66
|
-
this._element = undefined;
|
|
67
|
-
this.hostComponent = undefined;
|
|
68
|
-
}
|
|
69
|
-
// Sets host component visibility, required, readonly etc. if specified in backend screen config OR module readonly status.
|
|
70
|
-
_updateHost() {
|
|
71
|
-
if (this._mayUpdateHost() || this.screenConfigNativeElement) {
|
|
72
|
-
if (!this.screenConfigNativeElement) {
|
|
73
|
-
this.hostComponent.objectConfigName = this.screenConfigurationObject;
|
|
74
|
-
}
|
|
75
|
-
const myCfgObj = this._configService.getObjectConfigurationFor(this.screenConfigurationObject);
|
|
76
|
-
if (myCfgObj) {
|
|
77
|
-
this._setHostVisible(myCfgObj.immediatelyVisible());
|
|
78
|
-
// if (this.hostComponent instanceof GridColumnComponent) {
|
|
79
|
-
// this.hostComponent.rights = myCfgObj.rights;
|
|
80
|
-
// }
|
|
81
|
-
if (!this.screenConfigNativeElement) {
|
|
82
|
-
this.hostComponent.required = myCfgObj.isRequired();
|
|
83
|
-
this.hostComponent.readonly = this.hostComponent.forceReadonly || this._moduleInReadonlyMode() || myCfgObj.isReadonly();
|
|
84
|
-
this.hostComponent.decimals = myCfgObj.scale;
|
|
85
|
-
this.hostComponent.maxLength = myCfgObj.maxLength;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
this._setHostVisible(false);
|
|
90
|
-
if (!this.screenConfigNativeElement) {
|
|
91
|
-
this.hostComponent.readonly = this._moduleInReadonlyMode();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Spawn error message tooltip onto our host comp, if any error was meant for the host (found by screenConfigurationObject);
|
|
98
|
-
* @param errorValidation A top-level full validation result, either from the backend or from some client-side validation error.
|
|
99
|
-
*/
|
|
100
|
-
_setErrorRedBackgroundAfterScrCfgValidate(errorValidation) {
|
|
101
|
-
if (this.hostComponent && errorValidation) {
|
|
102
|
-
const errorMessages = errorValidation.getAllErrorMessagesOfMyValidationFields();
|
|
103
|
-
for (let i = 0, len = errorMessages.length; i < len; i++) {
|
|
104
|
-
const errorMsg = errorMessages[i];
|
|
105
|
-
const configName = this.dataName ? this.dataName : this.screenConfigurationObject;
|
|
106
|
-
if (errorMsg.fieldId === configName && this._element /*&& this._properHost(errorMsg.boId)*/) {
|
|
107
|
-
this.hostComponent.redErrorBackground = true;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
_moduleInReadonlyMode() {
|
|
113
|
-
return !this.noModuleService ? (this._moduleService ? this._moduleService.readonly : false) : false;
|
|
114
|
-
}
|
|
115
|
-
_mayUpdateHost() {
|
|
116
|
-
return !!this.hostComponent && !this._isTurnedOff && !!this.screenConfigurationObject;
|
|
117
|
-
}
|
|
118
|
-
_setHostVisible(visible) {
|
|
119
|
-
if (!this.screenConfigNativeElement) {
|
|
120
|
-
this.hostComponent.hidden = !visible;
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
if (this._element && this._element.nativeElement) {
|
|
124
|
-
if (!visible) {
|
|
125
|
-
this._renderer.addClass(this._element.nativeElement, 'hidden');
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
this._renderer.removeClass(this._element.nativeElement, 'hidden');
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
ScreenConfigurationDirective.decorators = [
|
|
135
|
-
{ type: Directive, args: [{
|
|
136
|
-
selector: '[screenConfigurationObject]'
|
|
137
|
-
},] }
|
|
138
|
-
];
|
|
139
|
-
ScreenConfigurationDirective.ctorParameters = () => [
|
|
140
|
-
{ type: undefined, decorators: [{ type: Inject, args: [SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,] }] },
|
|
141
|
-
{ type: ElementRef },
|
|
142
|
-
{ type: BaseModuleScreenConfigService },
|
|
143
|
-
{ type: Renderer2 },
|
|
144
|
-
{ type: BaseModuleService }
|
|
145
|
-
];
|
|
146
|
-
ScreenConfigurationDirective.propDecorators = {
|
|
147
|
-
screenConfigurationObject: [{ type: Input, args: ['screenConfigurationObject',] }],
|
|
148
|
-
dataName: [{ type: Input }],
|
|
149
|
-
screenConfigNativeElement: [{ type: Input }],
|
|
150
|
-
noModuleService: [{ type: Input }]
|
|
151
|
-
};
|
|
152
|
-
__decorate([
|
|
153
|
-
InputBoolean()
|
|
154
|
-
], ScreenConfigurationDirective.prototype, "screenConfigNativeElement", void 0);
|
|
155
|
-
__decorate([
|
|
156
|
-
InputBoolean()
|
|
157
|
-
], ScreenConfigurationDirective.prototype, "noModuleService", void 0);
|
|
1
|
+
import { __decorate } from "tslib";
|
|
2
|
+
import { Directive, ElementRef, Inject, Input, Renderer2 } from '@angular/core';
|
|
3
|
+
import { InputBoolean } from '../../core/decorator/input-boolean.decorator';
|
|
4
|
+
import { SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME } from '../../interfaces/screen-config-adapter-component-interface-name';
|
|
5
|
+
import { BaseModuleScreenConfigService } from '../../service/base-module-screen-config.service';
|
|
6
|
+
import { BaseModuleService } from '../../service/base-module.service';
|
|
7
|
+
// Directive to represents the marker of "screen config name ID's" of components within a module.
|
|
8
|
+
// Manipulates visibility, readonly and other dynamic states of an input element according to its db-fetched screen configuration object.
|
|
9
|
+
export class ScreenConfigurationDirective {
|
|
10
|
+
constructor(hostComponent, _element,
|
|
11
|
+
// we must always have a config service to fetch config objects with
|
|
12
|
+
_configService, _renderer,
|
|
13
|
+
// to make host readonly when MODULE switches to readonly:
|
|
14
|
+
_moduleService) {
|
|
15
|
+
this.hostComponent = hostComponent;
|
|
16
|
+
this._element = _element;
|
|
17
|
+
this._configService = _configService;
|
|
18
|
+
this._renderer = _renderer;
|
|
19
|
+
this._moduleService = _moduleService;
|
|
20
|
+
this.screenConfigNativeElement = false;
|
|
21
|
+
this.noModuleService = false;
|
|
22
|
+
// feature toggle for devs so you can see the whole screen with all inputs etc by temporarily turning off the hiding effects of this directive on its host
|
|
23
|
+
this._isTurnedOff = false;
|
|
24
|
+
this._subs = [];
|
|
25
|
+
this._subs.push(this._configService.configSet.subscribe((configObjects) => {
|
|
26
|
+
if (configObjects && configObjects.length > 0) {
|
|
27
|
+
this._updateHost();
|
|
28
|
+
}
|
|
29
|
+
}));
|
|
30
|
+
if (this._moduleService && !this.noModuleService) {
|
|
31
|
+
this._subs.push(this._moduleService.readonlyChange.subscribe((moduleInReadonlyState) => {
|
|
32
|
+
if (this.hostComponent) {
|
|
33
|
+
this.hostComponent.readonly = this.hostComponent.forceReadonly || moduleInReadonlyState;
|
|
34
|
+
}
|
|
35
|
+
}), this._moduleService.errorValidationReceived.subscribe((validationResult) => {
|
|
36
|
+
this._setErrorRedBackgroundAfterScrCfgValidate(validationResult);
|
|
37
|
+
}), this._moduleService.successfulUpdate.subscribe(() => {
|
|
38
|
+
if (this.hostComponent) {
|
|
39
|
+
this.hostComponent.redErrorBackground = false;
|
|
40
|
+
}
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
set screenConfigurationObject(value) {
|
|
45
|
+
if (value) {
|
|
46
|
+
this._screenConfigurationObject = value;
|
|
47
|
+
this._updateHost();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
get screenConfigurationObject() {
|
|
51
|
+
return this._screenConfigurationObject;
|
|
52
|
+
}
|
|
53
|
+
ngOnInit() {
|
|
54
|
+
this._updateHost();
|
|
55
|
+
// this._updateHeaderStateOnHostComponent(true);
|
|
56
|
+
// show initial error message if any
|
|
57
|
+
if (!this.noModuleService) {
|
|
58
|
+
// this._setErrorRedBackgroundAfterScrCfgValidate(this._moduleService.lastError);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
ngOnDestroy() {
|
|
62
|
+
this._subs.forEach(sub => sub.unsubscribe());
|
|
63
|
+
if (this._isHeader) {
|
|
64
|
+
// this._doubleClickHeaders.handleCollapseableDestroy(this.screenConfigurationObject);
|
|
65
|
+
}
|
|
66
|
+
this._element = undefined;
|
|
67
|
+
this.hostComponent = undefined;
|
|
68
|
+
}
|
|
69
|
+
// Sets host component visibility, required, readonly etc. if specified in backend screen config OR module readonly status.
|
|
70
|
+
_updateHost() {
|
|
71
|
+
if (this._mayUpdateHost() || this.screenConfigNativeElement) {
|
|
72
|
+
if (!this.screenConfigNativeElement) {
|
|
73
|
+
this.hostComponent.objectConfigName = this.screenConfigurationObject;
|
|
74
|
+
}
|
|
75
|
+
const myCfgObj = this._configService.getObjectConfigurationFor(this.screenConfigurationObject);
|
|
76
|
+
if (myCfgObj) {
|
|
77
|
+
this._setHostVisible(myCfgObj.immediatelyVisible());
|
|
78
|
+
// if (this.hostComponent instanceof GridColumnComponent) {
|
|
79
|
+
// this.hostComponent.rights = myCfgObj.rights;
|
|
80
|
+
// }
|
|
81
|
+
if (!this.screenConfigNativeElement) {
|
|
82
|
+
this.hostComponent.required = myCfgObj.isRequired();
|
|
83
|
+
this.hostComponent.readonly = this.hostComponent.forceReadonly || this._moduleInReadonlyMode() || myCfgObj.isReadonly();
|
|
84
|
+
this.hostComponent.decimals = myCfgObj.scale;
|
|
85
|
+
this.hostComponent.maxLength = myCfgObj.maxLength;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
this._setHostVisible(false);
|
|
90
|
+
if (!this.screenConfigNativeElement) {
|
|
91
|
+
this.hostComponent.readonly = this._moduleInReadonlyMode();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Spawn error message tooltip onto our host comp, if any error was meant for the host (found by screenConfigurationObject);
|
|
98
|
+
* @param errorValidation A top-level full validation result, either from the backend or from some client-side validation error.
|
|
99
|
+
*/
|
|
100
|
+
_setErrorRedBackgroundAfterScrCfgValidate(errorValidation) {
|
|
101
|
+
if (this.hostComponent && errorValidation) {
|
|
102
|
+
const errorMessages = errorValidation.getAllErrorMessagesOfMyValidationFields();
|
|
103
|
+
for (let i = 0, len = errorMessages.length; i < len; i++) {
|
|
104
|
+
const errorMsg = errorMessages[i];
|
|
105
|
+
const configName = this.dataName ? this.dataName : this.screenConfigurationObject;
|
|
106
|
+
if (errorMsg.fieldId === configName && this._element /*&& this._properHost(errorMsg.boId)*/) {
|
|
107
|
+
this.hostComponent.redErrorBackground = true;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
_moduleInReadonlyMode() {
|
|
113
|
+
return !this.noModuleService ? (this._moduleService ? this._moduleService.readonly : false) : false;
|
|
114
|
+
}
|
|
115
|
+
_mayUpdateHost() {
|
|
116
|
+
return !!this.hostComponent && !this._isTurnedOff && !!this.screenConfigurationObject;
|
|
117
|
+
}
|
|
118
|
+
_setHostVisible(visible) {
|
|
119
|
+
if (!this.screenConfigNativeElement) {
|
|
120
|
+
this.hostComponent.hidden = !visible;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
if (this._element && this._element.nativeElement) {
|
|
124
|
+
if (!visible) {
|
|
125
|
+
this._renderer.addClass(this._element.nativeElement, 'hidden');
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
this._renderer.removeClass(this._element.nativeElement, 'hidden');
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
ScreenConfigurationDirective.decorators = [
|
|
135
|
+
{ type: Directive, args: [{
|
|
136
|
+
selector: '[screenConfigurationObject]'
|
|
137
|
+
},] }
|
|
138
|
+
];
|
|
139
|
+
ScreenConfigurationDirective.ctorParameters = () => [
|
|
140
|
+
{ type: undefined, decorators: [{ type: Inject, args: [SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,] }] },
|
|
141
|
+
{ type: ElementRef },
|
|
142
|
+
{ type: BaseModuleScreenConfigService },
|
|
143
|
+
{ type: Renderer2 },
|
|
144
|
+
{ type: BaseModuleService }
|
|
145
|
+
];
|
|
146
|
+
ScreenConfigurationDirective.propDecorators = {
|
|
147
|
+
screenConfigurationObject: [{ type: Input, args: ['screenConfigurationObject',] }],
|
|
148
|
+
dataName: [{ type: Input }],
|
|
149
|
+
screenConfigNativeElement: [{ type: Input }],
|
|
150
|
+
noModuleService: [{ type: Input }]
|
|
151
|
+
};
|
|
152
|
+
__decorate([
|
|
153
|
+
InputBoolean()
|
|
154
|
+
], ScreenConfigurationDirective.prototype, "screenConfigNativeElement", void 0);
|
|
155
|
+
__decorate([
|
|
156
|
+
InputBoolean()
|
|
157
|
+
], ScreenConfigurationDirective.prototype, "noModuleService", void 0);
|
|
158
158
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NyZWVuLWNvbmZpZ3VyYXRpb24uZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY29yZWNvbXBvbmVudHMvc3JjL2xpYi9kaXJlY3RpdmVzL3NjcmVlbi1jb25maWd1cmF0aW9uL3NjcmVlbi1jb25maWd1cmF0aW9uLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FB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1xyXG4gICAgICAgIHRoaXMuX3N1YnMucHVzaCh0aGlzLl9jb25maWdTZXJ2aWNlLmNvbmZpZ1NldC5zdWJzY3JpYmUoKGNvbmZpZ09iamVjdHM6IHN0cmluZ1tdKSA9PiB7XHJcbiAgICAgICAgICAgIGlmIChjb25maWdPYmplY3RzICYmIGNvbmZpZ09iamVjdHMubGVuZ3RoID4gMCkge1xyXG4gICAgICAgICAgICAgICAgdGhpcy5fdXBkYXRlSG9zdCgpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSkpO1xyXG5cclxuICAgICAgICBpZiAodGhpcy5fbW9kdWxlU2VydmljZSAmJiAhdGhpcy5ub01vZHVsZVNlcnZpY2UpIHtcclxuICAgICAgICAgICAgdGhpcy5fc3Vicy5wdXNoKFxyXG4gICAgICAgICAgICAgICAgdGhpcy5fbW9kdWxlU2VydmljZS5yZWFkb25seUNoYW5nZS5zdWJzY3JpYmUoKG1vZHVsZUluUmVhZG9ubHlTdGF0ZTogYm9vbGVhbikgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmhvc3RDb21wb25lbnQpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5ob3N0Q29tcG9uZW50LnJlYWRvbmx5ID0gdGhpcy5ob3N0Q29tcG9uZW50LmZvcmNlUmVhZG9ubHkgfHwgbW9kdWxlSW5SZWFkb25seVN0YXRlO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH0pLFxyXG4gICAgICAgICAgICAgICAgdGhpcy5fbW9kdWxlU2VydmljZS5lcnJvclZhbGlkYXRpb25SZWNlaXZlZC5zdWJzY3JpYmUoKHZhbGlkYXRpb25SZXN1bHQ6IGFueSkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX3NldEVycm9yUmVkQmFja2dyb3VuZEFmdGVyU2NyQ2ZnVmFsaWRhdGUodmFsaWRhdGlvblJlc3VsdCk7XHJcbiAgIC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db21wb25lbnQpIHtcclxuICAgICAgICAgICAgICAgIC8vICAgdGhpcy5ob3N0Q29tcG9uZW50LnJpZ2h0cyA9IG15Q2ZnT2JqLnJpZ2h0cztcclxuICAgICAgICAgICAgICAgIC8vIH1cclxuICAgICAgICAgICAgICAgIGlmICghdGhpcy5zY3JlZW5Db25maWdOYXRpdmVFbGVtZW50KSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5ob3N0Q29tcG9uZW50LnJlcXVpcmVkID0gbXlDZmdPYmouaXNSZXF1aXJlZCgpO1xyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaG9zdENvbXBvbmVudC5yZWFkb25seSA9IHRoaXMuaG9zdENvbXBvbmVudC5mb3JjZVJlYWRvbmx5IHx8IHRoaXMuX21vZHVsZUluUmVhZG9ubHlNb2RlKCkgfHwgbXlDZmdPYmouaXNSZWFkb25seSgpO1xyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaG9zdENvbXBvbmVudC5kZWNpbWFscyA9IG15Q2ZnT2JqLnNjYWxlO1xyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaG9zdENvbXBvbmVudC5tYXhMZW5ndGggPSBteUNmZ09iai5tYXhMZW5ndGg7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICB0aGlzLl9zZXRIb3N0VmlzaWJsZShmYWxzZSk7XHJcbiAgICAgICAgICAgICAgICBpZiAoIXRoaXMuc2NyZWVuQ29uZmlnTmF0aXZlRWxlbWVudCkge1xyXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaG9zdENvbXBvbmVudC5yZWFkb25seSA9IHRoaXMuX21vZHVsZUluUmVhZG9ubHlNb2RlKCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBTcGF3biBlcnJvciBtZ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AgICAgICAgICAgICAgICAgIHRoaXMuX3JlbmRlcmVyLmFkZENsYXNzKHRoaXMuX2VsZW1lbnQubmF0aXZlRWxlbWVudCwgJ2hpZGRlbicpO1xyXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLl9yZW5kZXJlci5yZW1vdmVDbGFzcyh0aGlzLl9lbGVtZW50Lm5hdGl2ZUVsZW1lbnQsICdoaWRkZW4nKTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgIH1cclxufVxyXG4iXX0=
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { ScreenConfigurationDirective } from './screen-configuration.directive';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
export class ScreenConfigurationModule {
|
|
5
|
-
}
|
|
6
|
-
ScreenConfigurationModule.decorators = [
|
|
7
|
-
{ type: NgModule, args: [{
|
|
8
|
-
imports: [
|
|
9
|
-
CommonModule
|
|
10
|
-
],
|
|
11
|
-
declarations: [
|
|
12
|
-
ScreenConfigurationDirective
|
|
13
|
-
],
|
|
14
|
-
exports: [
|
|
15
|
-
ScreenConfigurationDirective,
|
|
16
|
-
]
|
|
17
|
-
},] }
|
|
18
|
-
];
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { ScreenConfigurationDirective } from './screen-configuration.directive';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
export class ScreenConfigurationModule {
|
|
5
|
+
}
|
|
6
|
+
ScreenConfigurationModule.decorators = [
|
|
7
|
+
{ type: NgModule, args: [{
|
|
8
|
+
imports: [
|
|
9
|
+
CommonModule
|
|
10
|
+
],
|
|
11
|
+
declarations: [
|
|
12
|
+
ScreenConfigurationDirective
|
|
13
|
+
],
|
|
14
|
+
exports: [
|
|
15
|
+
ScreenConfigurationDirective,
|
|
16
|
+
]
|
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pb25zOiBbXG4gICAgU2NyZWVuQ29uZmlndXJhdGlvbkRpcmVjdGl2ZVxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgU2NyZWVuQ29uZmlndXJhdGlvbkRpcmVjdGl2ZSxcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBTY3JlZW5Db25maWd1cmF0aW9uTW9kdWxlIHsgfVxuIl19
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { Directive, ElementRef, Input, NgZone } from "@angular/core";
|
|
2
|
-
import { EventUtils } from "../../core/utils/event-utils";
|
|
3
|
-
export class StopClickDirective {
|
|
4
|
-
constructor(_elementRef, _ngZone) {
|
|
5
|
-
this._elementRef = _elementRef;
|
|
6
|
-
this._ngZone = _ngZone;
|
|
7
|
-
this._killEventHandler = (event) => {
|
|
8
|
-
if (this.stopClick) {
|
|
9
|
-
EventUtils.KillEvent(event);
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
ngOnInit() {
|
|
14
|
-
this._ngZone.runOutsideAngular(() => {
|
|
15
|
-
this._elementRef.nativeElement.addEventListener('click', this._killEventHandler);
|
|
16
|
-
this._elementRef.nativeElement.addEventListener('dblclick', this._killEventHandler);
|
|
17
|
-
this._elementRef.nativeElement.addEventListener('mousedown', this._killEventHandler);
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
ngOnDestroy() {
|
|
21
|
-
this._elementRef.nativeElement.removeEventListener('click', this._killEventHandler);
|
|
22
|
-
this._elementRef.nativeElement.removeEventListener('dblclick', this._killEventHandler);
|
|
23
|
-
this._elementRef.nativeElement.removeEventListener('mousedown', this._killEventHandler);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
StopClickDirective.decorators = [
|
|
27
|
-
{ type: Directive, args: [{
|
|
28
|
-
selector: '[stopClick]'
|
|
29
|
-
},] }
|
|
30
|
-
];
|
|
31
|
-
StopClickDirective.ctorParameters = () => [
|
|
32
|
-
{ type: ElementRef },
|
|
33
|
-
{ type: NgZone }
|
|
34
|
-
];
|
|
35
|
-
StopClickDirective.propDecorators = {
|
|
36
|
-
stopClick: [{ type: Input }]
|
|
37
|
-
};
|
|
1
|
+
import { Directive, ElementRef, Input, NgZone } from "@angular/core";
|
|
2
|
+
import { EventUtils } from "../../core/utils/event-utils";
|
|
3
|
+
export class StopClickDirective {
|
|
4
|
+
constructor(_elementRef, _ngZone) {
|
|
5
|
+
this._elementRef = _elementRef;
|
|
6
|
+
this._ngZone = _ngZone;
|
|
7
|
+
this._killEventHandler = (event) => {
|
|
8
|
+
if (this.stopClick) {
|
|
9
|
+
EventUtils.KillEvent(event);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
ngOnInit() {
|
|
14
|
+
this._ngZone.runOutsideAngular(() => {
|
|
15
|
+
this._elementRef.nativeElement.addEventListener('click', this._killEventHandler);
|
|
16
|
+
this._elementRef.nativeElement.addEventListener('dblclick', this._killEventHandler);
|
|
17
|
+
this._elementRef.nativeElement.addEventListener('mousedown', this._killEventHandler);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
ngOnDestroy() {
|
|
21
|
+
this._elementRef.nativeElement.removeEventListener('click', this._killEventHandler);
|
|
22
|
+
this._elementRef.nativeElement.removeEventListener('dblclick', this._killEventHandler);
|
|
23
|
+
this._elementRef.nativeElement.removeEventListener('mousedown', this._killEventHandler);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
StopClickDirective.decorators = [
|
|
27
|
+
{ type: Directive, args: [{
|
|
28
|
+
selector: '[stopClick]'
|
|
29
|
+
},] }
|
|
30
|
+
];
|
|
31
|
+
StopClickDirective.ctorParameters = () => [
|
|
32
|
+
{ type: ElementRef },
|
|
33
|
+
{ type: NgZone }
|
|
34
|
+
];
|
|
35
|
+
StopClickDirective.propDecorators = {
|
|
36
|
+
stopClick: [{ type: Input }]
|
|
37
|
+
};
|
|
38
38
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJz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pcy5fa2lsbEV2ZW50SGFuZGxlcik7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBfa2lsbEV2ZW50SGFuZGxlcjogRXZlbnRMaXN0ZW5lciA9IChldmVudDogTW91c2VFdmVudCk6IHZvaWQgPT4ge1xyXG4gICAgICAgIGlmICh0aGlzLnN0b3BDbGljaykge1xyXG4gICAgICAgICAgICBFdmVudFV0aWxzLktpbGxFdmVudChldmVudCk7XHJcbiAgICAgICAgfVxyXG4gICAgfTtcclxufSJdfQ==
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { StopClickDirective } from "./stop-click.directive";
|
|
3
|
-
export class StopClickModule {
|
|
4
|
-
}
|
|
5
|
-
StopClickModule.decorators = [
|
|
6
|
-
{ type: NgModule, args: [{
|
|
7
|
-
declarations: [
|
|
8
|
-
StopClickDirective
|
|
9
|
-
],
|
|
10
|
-
exports: [
|
|
11
|
-
StopClickDirective
|
|
12
|
-
]
|
|
13
|
-
},] }
|
|
14
|
-
];
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { StopClickDirective } from "./stop-click.directive";
|
|
3
|
+
export class StopClickModule {
|
|
4
|
+
}
|
|
5
|
+
StopClickModule.decorators = [
|
|
6
|
+
{ type: NgModule, args: [{
|
|
7
|
+
declarations: [
|
|
8
|
+
StopClickDirective
|
|
9
|
+
],
|
|
10
|
+
exports: [
|
|
11
|
+
StopClickDirective
|
|
12
|
+
]
|
|
13
|
+
},] }
|
|
14
|
+
];
|
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcC1jbGljay5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb3JlY29tcG9uZW50cy9zcmMvbGliL2RpcmVjdGl2ZXMvc3RvcGNsaWNrL3N0b3AtY2xpY2subW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFdkMsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sd0JBQXdCLENBQUM7QUFVMUQsTUFBTSxPQUFPLGVBQWU7OztZQVIzQixRQUFRLFNBQUM7Z0JBQ04sWUFBWSxFQUFFO29CQUNWLGtCQUFrQjtpQkFDckI7Z0JBQ0QsT0FBTyxFQUFFO29CQUNMLGtCQUFrQjtpQkFDckI7YUFDSiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7TmdNb2R1bGV9IGZyb20gXCJAYW5ndWxhci9jb3JlXCI7XHJcblxyXG5pbXBvcnQge1N0b3BDbGlja0RpcmVjdGl2ZX0gZnJvbSBcIi4vc3RvcC1jbGljay5kaXJlY3RpdmVcIjtcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgICBkZWNsYXJhdGlvbnM6IFtcclxuICAgICAgICBTdG9wQ2xpY2tEaXJlY3RpdmVcclxuICAgIF0sXHJcbiAgICBleHBvcnRzOiBbXHJcbiAgICAgICAgU3RvcENsaWNrRGlyZWN0aXZlXHJcbiAgICBdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBTdG9wQ2xpY2tNb2R1bGUge1xyXG59Il19
|