@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,164 +1,164 @@
|
|
|
1
|
-
import { ContentChildren, Directive, EventEmitter, HostListener, Input, Output } from "@angular/core";
|
|
2
|
-
import { SimpleGridColumnDirective } from "./simple-grid-column.directive";
|
|
3
|
-
import { moveItemInArray } from "@angular/cdk/drag-drop";
|
|
4
|
-
import { Subject } from "rxjs";
|
|
5
|
-
export class BaseSimpleGridComponent {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.MIN_COLUMN_WIDTH = 50;
|
|
8
|
-
this.dataChanged = new Subject();
|
|
9
|
-
this.dragDropEnabled = false;
|
|
10
|
-
this.resizable = false;
|
|
11
|
-
this.inlineEdit = false;
|
|
12
|
-
this.showEdit = false;
|
|
13
|
-
this.showToolbar = false;
|
|
14
|
-
this.autoAddRow = false;
|
|
15
|
-
/**
|
|
16
|
-
* Should component emit drag and drop actions instead of handle
|
|
17
|
-
* (update collection) by itself
|
|
18
|
-
*/
|
|
19
|
-
this.emitDragDrop = false;
|
|
20
|
-
this.onDrop = new EventEmitter();
|
|
21
|
-
this.selectRow = new EventEmitter();
|
|
22
|
-
this.dblClickRow = new EventEmitter();
|
|
23
|
-
this.saveRow = new EventEmitter();
|
|
24
|
-
this.deleteRow = new EventEmitter();
|
|
25
|
-
this.addRow = new EventEmitter();
|
|
26
|
-
this.rowVisible = new EventEmitter();
|
|
27
|
-
this.columns = [];
|
|
28
|
-
this.headerColumns = [];
|
|
29
|
-
this._data = [];
|
|
30
|
-
this.disabledRows = [];
|
|
31
|
-
this._prepared = false;
|
|
32
|
-
}
|
|
33
|
-
set content(columnComponents) {
|
|
34
|
-
this._setColumns(columnComponents.toArray());
|
|
35
|
-
this._prepareData();
|
|
36
|
-
}
|
|
37
|
-
set data(value) {
|
|
38
|
-
this._data = value;
|
|
39
|
-
this._prepareData();
|
|
40
|
-
this.dataChanged.next();
|
|
41
|
-
}
|
|
42
|
-
get data() {
|
|
43
|
-
return this._data;
|
|
44
|
-
}
|
|
45
|
-
set extraColumns(value) {
|
|
46
|
-
this._setColumns(value);
|
|
47
|
-
}
|
|
48
|
-
handleMouseMove(event) {
|
|
49
|
-
if (this.resizable && event.buttons === 1 && this._columnForResize) {
|
|
50
|
-
// this._columnForResize.width = this._columnForResize.originalWidth - (this._startMousePositionX - event.clientX);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
handleMouseUp(event) {
|
|
54
|
-
this._startMousePositionX = undefined;
|
|
55
|
-
this._columnForResize = undefined;
|
|
56
|
-
}
|
|
57
|
-
handleSizerMouseDown(event, column) {
|
|
58
|
-
this._setWidthOfAllColumns();
|
|
59
|
-
this._startMousePositionX = event.clientX;
|
|
60
|
-
this._columnForResize = column;
|
|
61
|
-
this._columnForResize.originalWidth = this._columnForResize.width;
|
|
62
|
-
}
|
|
63
|
-
handleCanDragDrop(drag, drop) {
|
|
64
|
-
return true;
|
|
65
|
-
}
|
|
66
|
-
handleDrop(event) {
|
|
67
|
-
try {
|
|
68
|
-
const from = event.previousIndex;
|
|
69
|
-
const to = event.currentIndex;
|
|
70
|
-
if (from === to) {
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
if (this.emitDragDrop) {
|
|
74
|
-
this.onDrop.next({ from: from, to: to });
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
moveItemInArray(this.data, from, to);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e) {
|
|
81
|
-
console.error(e);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
isSingleColumnRow(row) {
|
|
85
|
-
return row.hasOwnProperty('singleColumnIndex');
|
|
86
|
-
}
|
|
87
|
-
singleColumnIndex(row) {
|
|
88
|
-
return row.singleColumnIndex;
|
|
89
|
-
}
|
|
90
|
-
prepareDataRow(row, index) {
|
|
91
|
-
}
|
|
92
|
-
_setColumns(columns) {
|
|
93
|
-
this.columns.push(...columns);
|
|
94
|
-
this.columns.sort((a, b) => a.order < b.order ? -1 : 1);
|
|
95
|
-
}
|
|
96
|
-
_prepareData() {
|
|
97
|
-
if (this._prepared) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
this.disabledRows.length = 0;
|
|
101
|
-
if (this.columns && this.columns.length > 0) {
|
|
102
|
-
this.headerColumns = this.columns.filter(c => !c.singleColumn);
|
|
103
|
-
let singleColumnIndex = -1;
|
|
104
|
-
for (let i = 0; i < this.columns.length; i++) {
|
|
105
|
-
if (this.columns[i].singleColumn) {
|
|
106
|
-
singleColumnIndex = i;
|
|
107
|
-
break;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
// first check if there's single column data
|
|
111
|
-
if (singleColumnIndex > -1 && this.data && this.data.length > 0) {
|
|
112
|
-
const field = this.columns[singleColumnIndex].field;
|
|
113
|
-
for (let i = 0; i < this.data.length; i++) { // then mark row as single column row
|
|
114
|
-
if (this.data[i][field] !== undefined && this.data[i][field] !== null && this.data[i][field] !== "") {
|
|
115
|
-
// bit nasty to add prop, but cool for now
|
|
116
|
-
this.data[i].singleColumnIndex = singleColumnIndex;
|
|
117
|
-
}
|
|
118
|
-
this.prepareDataRow(this.data[i], i);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
this._prepared = true;
|
|
122
|
-
}
|
|
123
|
-
this._resizeColumnsToFit();
|
|
124
|
-
}
|
|
125
|
-
_resizeColumnsToFit() {
|
|
126
|
-
const calculateColumns = this.columns.filter(c => !c.autoFit && !c.width);
|
|
127
|
-
for (let i = 0; i < calculateColumns.length; i++) {
|
|
128
|
-
calculateColumns[i].width = `${100 / calculateColumns.length}%`;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
_setWidthOfAllColumns() {
|
|
132
|
-
this.columns.forEach((column) => {
|
|
133
|
-
if ((column.width === undefined || column.width === null) && column.elementRef && column.elementRef.nativeElement) {
|
|
134
|
-
const rect = column.elementRef.nativeElement.getBoundingClientRect();
|
|
135
|
-
column.width = rect.width;
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
BaseSimpleGridComponent.decorators = [
|
|
141
|
-
{ type: Directive }
|
|
142
|
-
];
|
|
143
|
-
BaseSimpleGridComponent.propDecorators = {
|
|
144
|
-
content: [{ type: ContentChildren, args: [SimpleGridColumnDirective,] }],
|
|
145
|
-
data: [{ type: Input }],
|
|
146
|
-
dragDropEnabled: [{ type: Input }],
|
|
147
|
-
resizable: [{ type: Input }],
|
|
148
|
-
inlineEdit: [{ type: Input }],
|
|
149
|
-
showEdit: [{ type: Input }],
|
|
150
|
-
showToolbar: [{ type: Input }],
|
|
151
|
-
autoAddRow: [{ type: Input }],
|
|
152
|
-
emitDragDrop: [{ type: Input }],
|
|
153
|
-
extraColumns: [{ type: Input }],
|
|
154
|
-
onDrop: [{ type: Output }],
|
|
155
|
-
selectRow: [{ type: Output }],
|
|
156
|
-
dblClickRow: [{ type: Output }],
|
|
157
|
-
saveRow: [{ type: Output }],
|
|
158
|
-
deleteRow: [{ type: Output }],
|
|
159
|
-
addRow: [{ type: Output }],
|
|
160
|
-
rowVisible: [{ type: Output }],
|
|
161
|
-
handleMouseMove: [{ type: HostListener, args: ['document:mousemove', ['$event'],] }],
|
|
162
|
-
handleMouseUp: [{ type: HostListener, args: ['document:mouseup', ['$event'],] }]
|
|
163
|
-
};
|
|
1
|
+
import { ContentChildren, Directive, EventEmitter, HostListener, Input, Output } from "@angular/core";
|
|
2
|
+
import { SimpleGridColumnDirective } from "./simple-grid-column.directive";
|
|
3
|
+
import { moveItemInArray } from "@angular/cdk/drag-drop";
|
|
4
|
+
import { Subject } from "rxjs";
|
|
5
|
+
export class BaseSimpleGridComponent {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.MIN_COLUMN_WIDTH = 50;
|
|
8
|
+
this.dataChanged = new Subject();
|
|
9
|
+
this.dragDropEnabled = false;
|
|
10
|
+
this.resizable = false;
|
|
11
|
+
this.inlineEdit = false;
|
|
12
|
+
this.showEdit = false;
|
|
13
|
+
this.showToolbar = false;
|
|
14
|
+
this.autoAddRow = false;
|
|
15
|
+
/**
|
|
16
|
+
* Should component emit drag and drop actions instead of handle
|
|
17
|
+
* (update collection) by itself
|
|
18
|
+
*/
|
|
19
|
+
this.emitDragDrop = false;
|
|
20
|
+
this.onDrop = new EventEmitter();
|
|
21
|
+
this.selectRow = new EventEmitter();
|
|
22
|
+
this.dblClickRow = new EventEmitter();
|
|
23
|
+
this.saveRow = new EventEmitter();
|
|
24
|
+
this.deleteRow = new EventEmitter();
|
|
25
|
+
this.addRow = new EventEmitter();
|
|
26
|
+
this.rowVisible = new EventEmitter();
|
|
27
|
+
this.columns = [];
|
|
28
|
+
this.headerColumns = [];
|
|
29
|
+
this._data = [];
|
|
30
|
+
this.disabledRows = [];
|
|
31
|
+
this._prepared = false;
|
|
32
|
+
}
|
|
33
|
+
set content(columnComponents) {
|
|
34
|
+
this._setColumns(columnComponents.toArray());
|
|
35
|
+
this._prepareData();
|
|
36
|
+
}
|
|
37
|
+
set data(value) {
|
|
38
|
+
this._data = value;
|
|
39
|
+
this._prepareData();
|
|
40
|
+
this.dataChanged.next();
|
|
41
|
+
}
|
|
42
|
+
get data() {
|
|
43
|
+
return this._data;
|
|
44
|
+
}
|
|
45
|
+
set extraColumns(value) {
|
|
46
|
+
this._setColumns(value);
|
|
47
|
+
}
|
|
48
|
+
handleMouseMove(event) {
|
|
49
|
+
if (this.resizable && event.buttons === 1 && this._columnForResize) {
|
|
50
|
+
// this._columnForResize.width = this._columnForResize.originalWidth - (this._startMousePositionX - event.clientX);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
handleMouseUp(event) {
|
|
54
|
+
this._startMousePositionX = undefined;
|
|
55
|
+
this._columnForResize = undefined;
|
|
56
|
+
}
|
|
57
|
+
handleSizerMouseDown(event, column) {
|
|
58
|
+
this._setWidthOfAllColumns();
|
|
59
|
+
this._startMousePositionX = event.clientX;
|
|
60
|
+
this._columnForResize = column;
|
|
61
|
+
this._columnForResize.originalWidth = this._columnForResize.width;
|
|
62
|
+
}
|
|
63
|
+
handleCanDragDrop(drag, drop) {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
handleDrop(event) {
|
|
67
|
+
try {
|
|
68
|
+
const from = event.previousIndex;
|
|
69
|
+
const to = event.currentIndex;
|
|
70
|
+
if (from === to) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (this.emitDragDrop) {
|
|
74
|
+
this.onDrop.next({ from: from, to: to });
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
moveItemInArray(this.data, from, to);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (e) {
|
|
81
|
+
console.error(e);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
isSingleColumnRow(row) {
|
|
85
|
+
return row.hasOwnProperty('singleColumnIndex');
|
|
86
|
+
}
|
|
87
|
+
singleColumnIndex(row) {
|
|
88
|
+
return row.singleColumnIndex;
|
|
89
|
+
}
|
|
90
|
+
prepareDataRow(row, index) {
|
|
91
|
+
}
|
|
92
|
+
_setColumns(columns) {
|
|
93
|
+
this.columns.push(...columns);
|
|
94
|
+
this.columns.sort((a, b) => a.order < b.order ? -1 : 1);
|
|
95
|
+
}
|
|
96
|
+
_prepareData() {
|
|
97
|
+
if (this._prepared) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
this.disabledRows.length = 0;
|
|
101
|
+
if (this.columns && this.columns.length > 0) {
|
|
102
|
+
this.headerColumns = this.columns.filter(c => !c.singleColumn);
|
|
103
|
+
let singleColumnIndex = -1;
|
|
104
|
+
for (let i = 0; i < this.columns.length; i++) {
|
|
105
|
+
if (this.columns[i].singleColumn) {
|
|
106
|
+
singleColumnIndex = i;
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// first check if there's single column data
|
|
111
|
+
if (singleColumnIndex > -1 && this.data && this.data.length > 0) {
|
|
112
|
+
const field = this.columns[singleColumnIndex].field;
|
|
113
|
+
for (let i = 0; i < this.data.length; i++) { // then mark row as single column row
|
|
114
|
+
if (this.data[i][field] !== undefined && this.data[i][field] !== null && this.data[i][field] !== "") {
|
|
115
|
+
// bit nasty to add prop, but cool for now
|
|
116
|
+
this.data[i].singleColumnIndex = singleColumnIndex;
|
|
117
|
+
}
|
|
118
|
+
this.prepareDataRow(this.data[i], i);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
this._prepared = true;
|
|
122
|
+
}
|
|
123
|
+
this._resizeColumnsToFit();
|
|
124
|
+
}
|
|
125
|
+
_resizeColumnsToFit() {
|
|
126
|
+
const calculateColumns = this.columns.filter(c => !c.autoFit && !c.width);
|
|
127
|
+
for (let i = 0; i < calculateColumns.length; i++) {
|
|
128
|
+
calculateColumns[i].width = `${100 / calculateColumns.length}%`;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
_setWidthOfAllColumns() {
|
|
132
|
+
this.columns.forEach((column) => {
|
|
133
|
+
if ((column.width === undefined || column.width === null) && column.elementRef && column.elementRef.nativeElement) {
|
|
134
|
+
const rect = column.elementRef.nativeElement.getBoundingClientRect();
|
|
135
|
+
column.width = rect.width;
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
BaseSimpleGridComponent.decorators = [
|
|
141
|
+
{ type: Directive }
|
|
142
|
+
];
|
|
143
|
+
BaseSimpleGridComponent.propDecorators = {
|
|
144
|
+
content: [{ type: ContentChildren, args: [SimpleGridColumnDirective,] }],
|
|
145
|
+
data: [{ type: Input }],
|
|
146
|
+
dragDropEnabled: [{ type: Input }],
|
|
147
|
+
resizable: [{ type: Input }],
|
|
148
|
+
inlineEdit: [{ type: Input }],
|
|
149
|
+
showEdit: [{ type: Input }],
|
|
150
|
+
showToolbar: [{ type: Input }],
|
|
151
|
+
autoAddRow: [{ type: Input }],
|
|
152
|
+
emitDragDrop: [{ type: Input }],
|
|
153
|
+
extraColumns: [{ type: Input }],
|
|
154
|
+
onDrop: [{ type: Output }],
|
|
155
|
+
selectRow: [{ type: Output }],
|
|
156
|
+
dblClickRow: [{ type: Output }],
|
|
157
|
+
saveRow: [{ type: Output }],
|
|
158
|
+
deleteRow: [{ type: Output }],
|
|
159
|
+
addRow: [{ type: Output }],
|
|
160
|
+
rowVisible: [{ type: Output }],
|
|
161
|
+
handleMouseMove: [{ type: HostListener, args: ['document:mousemove', ['$event'],] }],
|
|
162
|
+
handleMouseUp: [{ type: HostListener, args: ['document:mouseup', ['$event'],] }]
|
|
163
|
+
};
|
|
164
164
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1zaW1wbGUtZ3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