@colijnit/corecomponents_v12 12.2.21 → 12.2.23
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 +14029 -0
- package/bundles/colijnit-corecomponents_v12.umd.js.map +1 -0
- package/colijnit-corecomponents_v12.d.ts +43 -0
- package/colijnit-corecomponents_v12.metadata.json +1 -0
- package/esm2015/colijnit-corecomponents_v12.js +44 -0
- package/esm2015/lib/components/article-tile/article-tile.component.js +80 -0
- package/esm2015/lib/components/article-tile/article-tile.module.js +35 -0
- package/esm2015/lib/components/base/base-input.component.js +834 -0
- package/esm2015/lib/components/base/base.module.js +22 -0
- package/esm2015/lib/components/base/commit-buttons/commit-buttons.component.js +103 -0
- package/esm2015/lib/components/base/commit-buttons/commit-buttons.module.js +21 -0
- package/esm2015/lib/components/base/dialog-base.component.js +6 -0
- package/esm2015/lib/components/base-input-date-picker/base-input-date-picker.directive.js +25 -0
- package/esm2015/lib/components/button/button.component.js +79 -0
- package/esm2015/lib/components/button/button.module.js +19 -0
- package/esm2015/lib/components/calendar/calendar-template.component.js +342 -0
- package/esm2015/lib/components/calendar/calendar.component.js +45 -0
- package/esm2015/lib/components/calendar/calendar.module.js +28 -0
- package/esm2015/lib/components/card/card.component.js +72 -0
- package/esm2015/lib/components/card/card.module.js +35 -0
- package/esm2015/lib/components/carousel/carousel.component.js +130 -0
- package/esm2015/lib/components/carousel/carousel.module.js +32 -0
- package/esm2015/lib/components/carousel-3d/carousel-3d.component.js +315 -0
- package/esm2015/lib/components/carousel-3d/carousel-3d.module.js +19 -0
- package/esm2015/lib/components/carousel-3d/carouselItem.js +54 -0
- package/esm2015/lib/components/checkmark-overlay/checkmark-overlay.component.js +87 -0
- package/esm2015/lib/components/checkmark-overlay/checkmark-overlay.module.js +19 -0
- package/esm2015/lib/components/co-dialog/co-dialog.component.js +113 -0
- package/esm2015/lib/components/co-dialog/co-dialog.module.js +19 -0
- package/esm2015/lib/components/co-dialog-wizard/co-dialog-wizard.component.js +51 -0
- package/esm2015/lib/components/co-dialog-wizard/co-dialog-wizard.module.js +17 -0
- package/esm2015/lib/components/collapsible/collapsible.component.js +92 -0
- package/esm2015/lib/components/collapsible/collapsible.module.js +19 -0
- package/esm2015/lib/components/color-picker/color-picker.component.js +41 -0
- package/esm2015/lib/components/color-picker/color-picker.module.js +21 -0
- package/esm2015/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.js +79 -0
- package/esm2015/lib/components/core-dialog/core-dialog.module.js +39 -0
- package/esm2015/lib/components/core-dialog/core-dialog.service.js +67 -0
- package/esm2015/lib/components/core-dialog/core-dynamic-component.service.js +93 -0
- package/esm2015/lib/components/double-calendar/double-calendar.component.js +80 -0
- package/esm2015/lib/components/double-calendar/double-calendar.module.js +25 -0
- package/esm2015/lib/components/filter-item/filter-item-viewmodel.js +13 -0
- package/esm2015/lib/components/filter-item/filter-item.component.js +646 -0
- package/esm2015/lib/components/filter-item/filter-item.module.js +43 -0
- package/esm2015/lib/components/filter-item/filter-viewmodel.js +11 -0
- package/esm2015/lib/components/form/form.component.js +184 -0
- package/esm2015/lib/components/form/form.module.js +23 -0
- package/esm2015/lib/components/grid-toolbar/grid-toolbar.component.js +57 -0
- package/esm2015/lib/components/grid-toolbar/grid-toolbar.module.js +23 -0
- package/esm2015/lib/components/grid-toolbar-button/grid-toolbar-button.component.js +28 -0
- package/esm2015/lib/components/grid-toolbar-button/grid-toolbar-button.module.js +19 -0
- package/esm2015/lib/components/icon/icon-cache.service.js +52 -0
- package/esm2015/lib/components/icon/icon.component.js +48 -0
- package/esm2015/lib/components/icon/icon.module.js +25 -0
- package/esm2015/lib/components/icon-collapse-handle/icon-collapse-handle.component.js +64 -0
- package/esm2015/lib/components/icon-collapse-handle/icon-collapse-handle.module.js +23 -0
- package/esm2015/lib/components/image/image.component.js +42 -0
- package/esm2015/lib/components/image/image.module.js +14 -0
- package/esm2015/lib/components/input-checkbox/input-checkbox.component.js +79 -0
- package/esm2015/lib/components/input-checkbox/input-checkbox.module.js +19 -0
- package/esm2015/lib/components/input-date-picker/input-date-picker.component.js +91 -0
- package/esm2015/lib/components/input-date-picker/input-date-picker.module.js +26 -0
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.component.js +134 -0
- package/esm2015/lib/components/input-date-range-picker/input-date-range-picker.module.js +27 -0
- package/esm2015/lib/components/input-number-picker/input-number-picker.component.js +314 -0
- package/esm2015/lib/components/input-number-picker/input-number-picker.module.js +23 -0
- package/esm2015/lib/components/input-radio-button/input-radio-button.component.js +84 -0
- package/esm2015/lib/components/input-radio-button/input-radio-button.module.js +19 -0
- package/esm2015/lib/components/input-scanner/bar-code-scanner.js +23 -0
- package/esm2015/lib/components/input-scanner/input-scanner.component.js +69 -0
- package/esm2015/lib/components/input-scanner/input-scanner.module.js +21 -0
- package/esm2015/lib/components/input-scanner/scanner.service.js +28 -0
- package/esm2015/lib/components/input-search/input-search.component.js +76 -0
- package/esm2015/lib/components/input-search/input-search.module.js +21 -0
- package/esm2015/lib/components/input-text/input-text.component.js +224 -0
- package/esm2015/lib/components/input-text/input-text.module.js +33 -0
- package/esm2015/lib/components/input-textarea/input-textarea.component.js +78 -0
- package/esm2015/lib/components/input-textarea/input-textarea.module.js +27 -0
- package/esm2015/lib/components/level-indicator/level-indicator-level.enum.js +7 -0
- package/esm2015/lib/components/level-indicator/level-indicator.component.js +36 -0
- package/esm2015/lib/components/level-indicator/level-indicator.module.js +15 -0
- package/esm2015/lib/components/list-of-values/list-of-values-multiselect-popup.component.js +112 -0
- package/esm2015/lib/components/list-of-values/list-of-values-popup.component.js +242 -0
- package/esm2015/lib/components/list-of-values/list-of-values.component.js +233 -0
- package/esm2015/lib/components/list-of-values/list-of-values.module.js +38 -0
- package/esm2015/lib/components/loader/loader.component.js +84 -0
- package/esm2015/lib/components/loader/loader.module.js +19 -0
- package/esm2015/lib/components/pagination/paginate.pipe.js +99 -0
- package/esm2015/lib/components/pagination/pagination-instance.js +2 -0
- package/esm2015/lib/components/pagination/pagination.component.js +126 -0
- package/esm2015/lib/components/pagination/pagination.module.js +28 -0
- package/esm2015/lib/components/pagination/pagination.service.js +88 -0
- package/esm2015/lib/components/pagination-bar/pagination-bar.component.js +151 -0
- package/esm2015/lib/components/pagination-bar/pagination-bar.module.js +19 -0
- package/esm2015/lib/components/popup/const/popup-window-token.js +3 -0
- package/esm2015/lib/components/popup/interface/popup-button.js +8 -0
- package/esm2015/lib/components/popup/interface/popup-close-event.js +2 -0
- package/esm2015/lib/components/popup/interface/popup-settings.js +42 -0
- package/esm2015/lib/components/popup/interface/popup.js +2 -0
- package/esm2015/lib/components/popup/model/popup-button-globals.js +11 -0
- package/esm2015/lib/components/popup/model/popup-window.js +38 -0
- package/esm2015/lib/components/popup/popup-buttons.component.js +53 -0
- package/esm2015/lib/components/popup/popup-message-display.component.js +47 -0
- package/esm2015/lib/components/popup/popup-window-shell.component.js +159 -0
- package/esm2015/lib/components/popup/popup.module.js +49 -0
- package/esm2015/lib/components/popup/service/popup-shower.service.js +90 -0
- package/esm2015/lib/components/popup/service/prompt.service.js +127 -0
- package/esm2015/lib/components/popup/text-input-popup.component.js +36 -0
- package/esm2015/lib/components/responsive-text/responsive-text.component.js +24 -0
- package/esm2015/lib/components/responsive-text/responsive-text.module.js +19 -0
- package/esm2015/lib/components/simple-grid/base-simple-grid.component.js +164 -0
- package/esm2015/lib/components/simple-grid/simple-grid-cell.component.js +172 -0
- package/esm2015/lib/components/simple-grid/simple-grid-column.directive.js +111 -0
- package/esm2015/lib/components/simple-grid/simple-grid.component.js +465 -0
- package/esm2015/lib/components/simple-grid/simple-grid.module.js +41 -0
- package/esm2015/lib/components/tile/tile.component.js +73 -0
- package/esm2015/lib/components/tile/tile.module.js +23 -0
- package/esm2015/lib/components/tile-select/tile-select.component.js +36 -0
- package/esm2015/lib/components/tile-select/tile-select.module.js +21 -0
- package/esm2015/lib/components/tooltip/tooltip.component.js +77 -0
- package/esm2015/lib/components/tooltip/tooltip.module.js +19 -0
- package/esm2015/lib/components/validation-error/validation-error.component.js +38 -0
- package/esm2015/lib/components/validation-error/validation-error.module.js +25 -0
- package/esm2015/lib/components/view-mode-buttons/content-view-mode.enum.js +11 -0
- package/esm2015/lib/components/view-mode-buttons/view-mode-buttons.component.js +61 -0
- package/esm2015/lib/components/view-mode-buttons/view-mode-buttons.module.js +21 -0
- package/esm2015/lib/core/constant/default-upper-bound-for-range-components.js +4 -0
- package/esm2015/lib/core/constant/java-max-int.js +2 -0
- package/esm2015/lib/core/constant/number-inputs-key-down-white-list.js +45 -0
- package/esm2015/lib/core/decorator/input-boolean.decorator.js +34 -0
- package/esm2015/lib/core/enum/co-direction.js +9 -0
- package/esm2015/lib/core/enum/co-document-image-display-kind.enum.js +7 -0
- package/esm2015/lib/core/enum/co-document-type.enum.js +11 -0
- package/esm2015/lib/core/enum/co-orientation.js +17 -0
- package/esm2015/lib/core/enum/core-components-icon.enum.js +300 -0
- package/esm2015/lib/core/enum/file-type-internal.enum.js +17 -0
- package/esm2015/lib/core/enum/file-type.enum.js +11 -0
- package/esm2015/lib/core/enum/filterItem-mode.enum.js +43 -0
- package/esm2015/lib/core/enum/input-number-picker-show-mode.enum.js +8 -0
- package/esm2015/lib/core/enum/keyboard-code.enum.js +74 -0
- package/esm2015/lib/core/enum/keyboard-key.enum.js +76 -0
- package/esm2015/lib/core/enum/object-right-type.enum.js +7 -0
- package/esm2015/lib/core/enum/popup-button-type.enum.js +12 -0
- package/esm2015/lib/core/enum/popup-type.enum.js +11 -0
- package/esm2015/lib/core/enum/table-name.enum.js +81 -0
- package/esm2015/lib/core/function/any-nill.function.js +6 -0
- package/esm2015/lib/core/function/is-nill.function.js +5 -0
- package/esm2015/lib/core/function/none-nill.function.js +17 -0
- package/esm2015/lib/core/function/not-nill.function.js +5 -0
- package/esm2015/lib/core/model/bounds-constrained-number-value.js +171 -0
- package/esm2015/lib/core/model/check-precision-and-scale-result.js +2 -0
- package/esm2015/lib/core/model/check-within-stepped-bounds-result.js +2 -0
- package/esm2015/lib/core/model/co-document-right.bo.js +3 -0
- package/esm2015/lib/core/model/co-document.bo.js +121 -0
- package/esm2015/lib/core/model/core-components-icon-svg.js +299 -0
- package/esm2015/lib/core/model/element-position.js +10 -0
- package/esm2015/lib/core/model/event/string-prompt-result-event.js +8 -0
- package/esm2015/lib/core/service/form-input-user-change-listener.service.js +25 -0
- package/esm2015/lib/core/service/form-master.service.js +102 -0
- package/esm2015/lib/core/service/ng-zone-wrapper.service.js +20 -0
- package/esm2015/lib/core/utils/array-utils.js +264 -0
- package/esm2015/lib/core/utils/browser-utils.js +100 -0
- package/esm2015/lib/core/utils/direction-enum-utils.js +14 -0
- package/esm2015/lib/core/utils/event-utils.js +53 -0
- package/esm2015/lib/core/utils/file-utils.js +267 -0
- package/esm2015/lib/core/utils/number-utils.js +309 -0
- package/esm2015/lib/core/utils/object-utils.js +186 -0
- package/esm2015/lib/core/utils/string-utils.js +94 -0
- package/esm2015/lib/core/validator/email.validator.js +6 -0
- package/esm2015/lib/core/validator/equal.validator.js +11 -0
- package/esm2015/lib/core/validator/max-string-length.validator.js +10 -0
- package/esm2015/lib/core/validator/password.validator.js +31 -0
- package/esm2015/lib/core/validator/precision-scale.validator.js +11 -0
- package/esm2015/lib/core/validator/required.validator.js +5 -0
- package/esm2015/lib/directives/clickoutside/click-outside-master.service.js +57 -0
- package/esm2015/lib/directives/clickoutside/click-outside.directive.js +71 -0
- package/esm2015/lib/directives/clickoutside/clickoutside.module.js +19 -0
- package/esm2015/lib/directives/observe-visibility/observe-visibility.directive.js +53 -0
- package/esm2015/lib/directives/observe-visibility/observe-visibility.module.js +15 -0
- package/esm2015/lib/directives/overlay/overlay-parent.directive.js +19 -0
- package/esm2015/lib/directives/overlay/overlay.directive.js +161 -0
- package/esm2015/lib/directives/overlay/overlay.module.js +18 -0
- package/esm2015/lib/directives/ripple/ripple-ref.js +26 -0
- package/esm2015/lib/directives/ripple/ripple-renderer.js +160 -0
- package/esm2015/lib/directives/ripple/ripple.directive.js +80 -0
- package/esm2015/lib/directives/ripple/ripple.module.js +24 -0
- package/esm2015/lib/directives/ripple/scroll-dispatcher.service.js +108 -0
- package/esm2015/lib/directives/ripple/scrollable.directive.js +40 -0
- package/esm2015/lib/directives/ripple/viewport-ruler.service.js +73 -0
- package/esm2015/lib/directives/screen-configuration/screen-configuration.directive.js +158 -0
- package/esm2015/lib/directives/screen-configuration/screen-configuration.module.js +19 -0
- package/esm2015/lib/directives/stopclick/stop-click.directive.js +38 -0
- package/esm2015/lib/directives/stopclick/stop-click.module.js +15 -0
- package/esm2015/lib/directives/template-wrapper/template-wrapper.directive.js +68 -0
- package/esm2015/lib/directives/template-wrapper/template-wrapper.module.js +15 -0
- package/esm2015/lib/directives/tooltip/tooltip-directive.module.js +19 -0
- package/esm2015/lib/directives/tooltip/tooltip.directive.js +78 -0
- package/esm2015/lib/interfaces/dialog-response.interface.js +2 -0
- package/esm2015/lib/interfaces/scanner-input.interface.js +2 -0
- package/esm2015/lib/interfaces/screen-config-adapter-component-interface-name.js +4 -0
- package/esm2015/lib/interfaces/screen-config-adapter.component.interface.js +2 -0
- package/esm2015/lib/model/enum/app-button-type.enum.js +11 -0
- package/esm2015/lib/model/enum/app-popup-type.enum.js +8 -0
- package/esm2015/lib/pipes/append.pipe.js +17 -0
- package/esm2015/lib/pipes/append.pipe.module.js +15 -0
- package/esm2015/lib/pipes/filter.pipe.js +16 -0
- package/esm2015/lib/pipes/filter.pipe.module.js +15 -0
- package/esm2015/lib/pipes/prepend.pipe.js +17 -0
- package/esm2015/lib/pipes/prepend.pipe.module.js +15 -0
- package/esm2015/lib/pipes/price-display-pipe.module.js +15 -0
- package/esm2015/lib/pipes/price-display.pipe.js +20 -0
- package/esm2015/lib/service/base-module-screen-config.service.js +205 -0
- package/esm2015/lib/service/base-module.service.js +42 -0
- package/esm2015/lib/service/color-sequence.service.js +23 -0
- package/esm2015/lib/service/overlay.service.js +73 -0
- package/esm2015/lib/translation/core-components-translation.module.js +29 -0
- package/esm2015/lib/translation/core-components-translation.service.js +17 -0
- package/esm2015/lib/translation/core-dictionary.service.js +29 -0
- package/esm2015/lib/translation/core-localize.pipe.js +26 -0
- package/esm2015/public-api.js +130 -0
- package/fesm2015/colijnit-corecomponents_v12.js +13366 -0
- package/fesm2015/colijnit-corecomponents_v12.js.map +1 -0
- package/lib/components/article-tile/article-tile.component.d.ts +22 -0
- package/lib/components/article-tile/article-tile.module.d.ts +2 -0
- package/lib/components/base/base-input.component.d.ts +182 -0
- package/lib/components/base/base.module.d.ts +2 -0
- package/lib/components/base/commit-buttons/commit-buttons.component.d.ts +21 -0
- package/lib/components/base/commit-buttons/commit-buttons.module.d.ts +2 -0
- package/lib/components/base/dialog-base.component.d.ts +4 -0
- package/lib/components/base-input-date-picker/base-input-date-picker.directive.d.ts +15 -0
- package/lib/components/button/button.component.d.ts +29 -0
- package/lib/components/button/button.module.d.ts +2 -0
- package/lib/components/calendar/calendar-template.component.d.ts +60 -0
- package/lib/components/calendar/calendar.component.d.ts +13 -0
- package/lib/components/calendar/calendar.module.d.ts +2 -0
- package/lib/components/card/card.component.d.ts +23 -0
- package/lib/components/card/card.module.d.ts +2 -0
- package/lib/components/carousel/carousel.component.d.ts +23 -0
- package/lib/components/carousel/carousel.module.d.ts +6 -0
- package/lib/components/carousel-3d/carousel-3d.component.d.ts +55 -0
- package/lib/components/carousel-3d/carousel-3d.module.d.ts +2 -0
- package/lib/components/carousel-3d/carouselItem.d.ts +13 -0
- package/lib/components/checkmark-overlay/checkmark-overlay.component.d.ts +17 -0
- package/lib/components/checkmark-overlay/checkmark-overlay.module.d.ts +2 -0
- package/lib/components/co-dialog/co-dialog.component.d.ts +23 -0
- package/lib/components/co-dialog/co-dialog.module.d.ts +2 -0
- package/lib/components/co-dialog-wizard/co-dialog-wizard.component.d.ts +9 -0
- package/lib/components/co-dialog-wizard/co-dialog-wizard.module.d.ts +2 -0
- package/lib/components/collapsible/collapsible.component.d.ts +22 -0
- package/lib/components/collapsible/collapsible.module.d.ts +2 -0
- package/lib/components/color-picker/color-picker.component.d.ts +6 -0
- package/lib/components/color-picker/color-picker.module.d.ts +2 -0
- package/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.d.ts +20 -0
- package/lib/components/core-dialog/core-dialog.module.d.ts +4 -0
- package/lib/components/core-dialog/core-dialog.service.d.ts +15 -0
- package/lib/components/core-dialog/core-dynamic-component.service.d.ts +12 -0
- package/lib/components/double-calendar/double-calendar.component.d.ts +18 -0
- package/lib/components/double-calendar/double-calendar.module.d.ts +2 -0
- package/lib/components/filter-item/filter-item-viewmodel.d.ts +9 -0
- package/lib/components/filter-item/filter-item.component.d.ts +80 -0
- package/lib/components/filter-item/filter-item.module.d.ts +2 -0
- package/lib/components/filter-item/filter-viewmodel.d.ts +8 -0
- package/lib/components/form/form.component.d.ts +39 -0
- package/lib/components/form/form.module.d.ts +2 -0
- package/lib/components/grid-toolbar/grid-toolbar.component.d.ts +19 -0
- package/lib/components/grid-toolbar/grid-toolbar.module.d.ts +2 -0
- package/lib/components/grid-toolbar-button/grid-toolbar-button.component.d.ts +8 -0
- package/lib/components/grid-toolbar-button/grid-toolbar-button.module.d.ts +2 -0
- package/lib/components/icon/icon-cache.service.d.ts +20 -0
- package/lib/components/icon/icon.component.d.ts +17 -0
- package/lib/components/icon/icon.module.d.ts +2 -0
- package/lib/components/icon-collapse-handle/icon-collapse-handle.component.d.ts +21 -0
- package/lib/components/icon-collapse-handle/icon-collapse-handle.module.d.ts +2 -0
- package/lib/components/image/image.component.d.ts +20 -0
- package/lib/components/image/image.module.d.ts +2 -0
- package/lib/components/input-checkbox/input-checkbox.component.d.ts +24 -0
- package/lib/components/input-checkbox/input-checkbox.module.d.ts +2 -0
- package/lib/components/input-date-picker/input-date-picker.component.d.ts +12 -0
- package/lib/components/input-date-picker/input-date-picker.module.d.ts +2 -0
- package/lib/components/input-date-range-picker/input-date-range-picker.component.d.ts +20 -0
- package/lib/components/input-date-range-picker/input-date-range-picker.module.d.ts +2 -0
- package/lib/components/input-number-picker/input-number-picker.component.d.ts +73 -0
- package/lib/components/input-number-picker/input-number-picker.module.d.ts +2 -0
- package/lib/components/input-radio-button/input-radio-button.component.d.ts +19 -0
- package/lib/components/input-radio-button/input-radio-button.module.d.ts +2 -0
- package/lib/components/input-scanner/bar-code-scanner.d.ts +7 -0
- package/lib/components/input-scanner/input-scanner.component.d.ts +23 -0
- package/lib/components/input-scanner/input-scanner.module.d.ts +2 -0
- package/lib/components/input-scanner/scanner.service.d.ts +11 -0
- package/lib/components/input-search/input-search.component.d.ts +18 -0
- package/lib/components/input-search/input-search.module.d.ts +2 -0
- package/lib/components/input-text/input-text.component.d.ts +62 -0
- package/lib/components/input-text/input-text.module.d.ts +2 -0
- package/lib/components/input-textarea/input-textarea.component.d.ts +19 -0
- package/lib/components/input-textarea/input-textarea.module.d.ts +2 -0
- package/lib/components/level-indicator/level-indicator-level.enum.d.ts +5 -0
- package/lib/components/level-indicator/level-indicator.component.d.ts +10 -0
- package/lib/components/level-indicator/level-indicator.module.d.ts +2 -0
- package/lib/components/list-of-values/list-of-values-multiselect-popup.component.d.ts +25 -0
- package/lib/components/list-of-values/list-of-values-popup.component.d.ts +47 -0
- package/lib/components/list-of-values/list-of-values.component.d.ts +37 -0
- package/lib/components/list-of-values/list-of-values.module.d.ts +2 -0
- package/lib/components/loader/loader.component.d.ts +3 -0
- package/lib/components/loader/loader.module.d.ts +2 -0
- package/lib/components/pagination/paginate.pipe.d.ts +15 -0
- package/lib/components/pagination/pagination-instance.d.ts +14 -0
- package/lib/components/pagination/pagination.component.d.ts +38 -0
- package/lib/components/pagination/pagination.module.d.ts +2 -0
- package/lib/components/pagination/pagination.service.d.ts +24 -0
- package/lib/components/pagination-bar/pagination-bar.component.d.ts +33 -0
- package/lib/components/pagination-bar/pagination-bar.module.d.ts +2 -0
- package/lib/components/popup/const/popup-window-token.d.ts +3 -0
- package/lib/components/popup/interface/popup-button.d.ts +8 -0
- package/lib/components/popup/interface/popup-close-event.d.ts +5 -0
- package/lib/components/popup/interface/popup-settings.d.ts +21 -0
- package/lib/components/popup/interface/popup.d.ts +9 -0
- package/lib/components/popup/model/popup-button-globals.d.ts +9 -0
- package/lib/components/popup/model/popup-window.d.ts +21 -0
- package/lib/components/popup/popup-buttons.component.d.ts +13 -0
- package/lib/components/popup/popup-message-display.component.d.ts +12 -0
- package/lib/components/popup/popup-window-shell.component.d.ts +42 -0
- package/lib/components/popup/popup.module.d.ts +4 -0
- package/lib/components/popup/service/popup-shower.service.d.ts +17 -0
- package/lib/components/popup/service/prompt.service.d.ts +17 -0
- package/lib/components/popup/text-input-popup.component.d.ts +12 -0
- package/lib/components/responsive-text/responsive-text.component.d.ts +4 -0
- package/lib/components/responsive-text/responsive-text.module.d.ts +2 -0
- package/lib/components/simple-grid/base-simple-grid.component.d.ts +52 -0
- package/lib/components/simple-grid/simple-grid-cell.component.d.ts +30 -0
- package/lib/components/simple-grid/simple-grid-column.directive.d.ts +42 -0
- package/lib/components/simple-grid/simple-grid.component.d.ts +64 -0
- package/lib/components/simple-grid/simple-grid.module.d.ts +2 -0
- package/lib/components/tile/tile.component.d.ts +16 -0
- package/lib/components/tile/tile.module.d.ts +2 -0
- package/lib/components/tile-select/tile-select.component.d.ts +8 -0
- package/lib/components/tile-select/tile-select.module.d.ts +2 -0
- package/lib/components/tooltip/tooltip.component.d.ts +18 -0
- package/lib/components/tooltip/tooltip.module.d.ts +2 -0
- package/lib/components/validation-error/validation-error.component.d.ts +12 -0
- package/lib/components/validation-error/validation-error.module.d.ts +2 -0
- package/lib/components/view-mode-buttons/content-view-mode.enum.d.ts +8 -0
- package/lib/components/view-mode-buttons/view-mode-buttons.component.d.ts +17 -0
- package/lib/components/view-mode-buttons/view-mode-buttons.module.d.ts +2 -0
- package/lib/core/constant/default-upper-bound-for-range-components.d.ts +2 -0
- package/lib/core/constant/java-max-int.d.ts +1 -0
- package/lib/core/constant/number-inputs-key-down-white-list.d.ts +2 -0
- package/lib/core/decorator/input-boolean.decorator.d.ts +8 -0
- package/lib/core/enum/co-direction.d.ts +6 -0
- package/lib/core/enum/co-document-image-display-kind.enum.d.ts +5 -0
- package/lib/core/enum/co-document-type.enum.d.ts +5 -0
- package/lib/core/enum/co-orientation.d.ts +6 -0
- package/lib/core/enum/core-components-icon.enum.d.ts +298 -0
- package/lib/core/enum/file-type-internal.enum.d.ts +15 -0
- package/lib/core/enum/file-type.enum.d.ts +5 -0
- package/lib/core/enum/filterItem-mode.enum.d.ts +15 -0
- package/lib/core/enum/input-number-picker-show-mode.enum.d.ts +5 -0
- package/lib/core/enum/keyboard-code.enum.d.ts +71 -0
- package/lib/core/enum/keyboard-key.enum.d.ts +70 -0
- package/lib/core/enum/object-right-type.enum.d.ts +5 -0
- package/lib/core/enum/popup-button-type.enum.d.ts +9 -0
- package/lib/core/enum/popup-type.enum.d.ts +9 -0
- package/lib/core/enum/table-name.enum.d.ts +79 -0
- package/lib/core/function/any-nill.function.d.ts +1 -0
- package/lib/core/function/is-nill.function.d.ts +1 -0
- package/lib/core/function/none-nill.function.d.ts +1 -0
- package/lib/core/function/not-nill.function.d.ts +1 -0
- package/lib/core/model/bounds-constrained-number-value.d.ts +46 -0
- package/lib/core/model/check-precision-and-scale-result.d.ts +4 -0
- package/lib/core/model/check-within-stepped-bounds-result.d.ts +8 -0
- package/lib/core/model/co-document-right.bo.d.ts +6 -0
- package/lib/core/model/co-document.bo.d.ts +61 -0
- package/lib/core/model/core-components-icon-svg.d.ts +4 -0
- package/lib/core/model/element-position.d.ts +7 -0
- package/lib/core/model/event/string-prompt-result-event.d.ts +6 -0
- package/lib/core/service/form-input-user-change-listener.service.d.ts +10 -0
- package/lib/core/service/form-master.service.d.ts +26 -0
- package/lib/core/service/ng-zone-wrapper.service.d.ts +6 -0
- package/lib/core/utils/array-utils.d.ts +85 -0
- package/lib/core/utils/browser-utils.d.ts +15 -0
- package/lib/core/utils/direction-enum-utils.d.ts +5 -0
- package/lib/core/utils/event-utils.d.ts +12 -0
- package/lib/core/utils/file-utils.d.ts +29 -0
- package/lib/core/utils/number-utils.d.ts +89 -0
- package/lib/core/utils/object-utils.d.ts +31 -0
- package/lib/core/utils/string-utils.d.ts +25 -0
- package/lib/core/validator/email.validator.d.ts +2 -0
- package/lib/core/validator/equal.validator.d.ts +2 -0
- package/lib/core/validator/max-string-length.validator.d.ts +2 -0
- package/lib/core/validator/password.validator.d.ts +3 -0
- package/lib/core/validator/precision-scale.validator.d.ts +2 -0
- package/lib/core/validator/required.validator.d.ts +2 -0
- package/lib/directives/clickoutside/click-outside-master.service.d.ts +15 -0
- package/lib/directives/clickoutside/click-outside.directive.d.ts +18 -0
- package/lib/directives/clickoutside/clickoutside.module.d.ts +2 -0
- package/lib/directives/observe-visibility/observe-visibility.directive.d.ts +14 -0
- package/lib/directives/observe-visibility/observe-visibility.module.d.ts +2 -0
- package/lib/directives/overlay/overlay-parent.directive.d.ts +6 -0
- package/lib/directives/overlay/overlay.directive.d.ts +25 -0
- package/lib/directives/overlay/overlay.module.d.ts +2 -0
- package/lib/directives/ripple/ripple-ref.d.ts +21 -0
- package/lib/directives/ripple/ripple-renderer.d.ts +56 -0
- package/lib/directives/ripple/ripple.directive.d.ts +56 -0
- package/lib/directives/ripple/ripple.module.d.ts +2 -0
- package/lib/directives/ripple/scroll-dispatcher.service.d.ts +51 -0
- package/lib/directives/ripple/scrollable.directive.d.ts +20 -0
- package/lib/directives/ripple/viewport-ruler.service.d.ts +29 -0
- package/lib/directives/screen-configuration/screen-configuration.directive.d.ts +32 -0
- package/lib/directives/screen-configuration/screen-configuration.module.d.ts +2 -0
- package/lib/directives/stopclick/stop-click.directive.d.ts +10 -0
- package/lib/directives/stopclick/stop-click.module.d.ts +2 -0
- package/lib/directives/template-wrapper/template-wrapper.directive.d.ts +13 -0
- package/lib/directives/template-wrapper/template-wrapper.module.d.ts +2 -0
- package/lib/directives/tooltip/tooltip-directive.module.d.ts +2 -0
- package/lib/directives/tooltip/tooltip.directive.d.ts +20 -0
- package/lib/interfaces/dialog-response.interface.d.ts +6 -0
- package/lib/interfaces/scanner-input.interface.d.ts +3 -0
- package/lib/interfaces/screen-config-adapter-component-interface-name.d.ts +3 -0
- package/lib/interfaces/screen-config-adapter.component.interface.d.ts +10 -0
- package/lib/model/enum/app-button-type.enum.d.ts +9 -0
- package/lib/model/enum/app-popup-type.enum.d.ts +6 -0
- package/lib/pipes/append.pipe.d.ts +4 -0
- package/lib/pipes/append.pipe.module.d.ts +2 -0
- package/lib/pipes/filter.pipe.d.ts +4 -0
- package/lib/pipes/filter.pipe.module.d.ts +2 -0
- package/lib/pipes/prepend.pipe.d.ts +4 -0
- package/lib/pipes/prepend.pipe.module.d.ts +2 -0
- package/lib/pipes/price-display-pipe.module.d.ts +2 -0
- package/lib/pipes/price-display.pipe.d.ts +4 -0
- package/lib/service/base-module-screen-config.service.d.ts +47 -0
- package/lib/service/base-module.service.d.ts +22 -0
- package/lib/service/color-sequence.service.d.ts +4 -0
- package/lib/service/overlay.service.d.ts +13 -0
- package/lib/translation/core-components-translation.module.d.ts +4 -0
- package/lib/translation/core-components-translation.service.d.ts +6 -0
- package/lib/translation/core-dictionary.service.d.ts +12 -0
- package/lib/translation/core-localize.pipe.d.ts +7 -0
- package/package.json +12 -4
- package/public-api.d.ts +126 -0
- package/karma.conf.js +0 -44
- package/ng-package.json +0 -10
- package/src/lib/components/article-tile/article-tile.component.ts +0 -95
- package/src/lib/components/article-tile/article-tile.module.ts +0 -34
- package/src/lib/components/base/base-input.component.ts +0 -988
- package/src/lib/components/base/base.module.ts +0 -22
- package/src/lib/components/base/commit-buttons/commit-buttons.component.ts +0 -120
- package/src/lib/components/base/commit-buttons/commit-buttons.module.ts +0 -19
- package/src/lib/components/base/dialog-base.component.ts +0 -8
- package/src/lib/components/base-input-date-picker/base-input-date-picker.directive.ts +0 -32
- package/src/lib/components/base-input-time/base-input-time-directive.ts +0 -31
- package/src/lib/components/button/button.component.ts +0 -117
- package/src/lib/components/button/button.module.ts +0 -18
- package/src/lib/components/calendar/calendar-template.component.ts +0 -392
- package/src/lib/components/calendar/calendar.component.ts +0 -54
- package/src/lib/components/calendar/calendar.module.ts +0 -26
- package/src/lib/components/card/card.component.ts +0 -94
- package/src/lib/components/card/card.module.ts +0 -34
- package/src/lib/components/carousel/carousel.component.ts +0 -128
- package/src/lib/components/carousel/carousel.module.ts +0 -28
- package/src/lib/components/carousel-3d/carousel-3d.component.ts +0 -392
- package/src/lib/components/carousel-3d/carousel-3d.module.ts +0 -17
- package/src/lib/components/carousel-3d/carouselItem.ts +0 -77
- package/src/lib/components/checkmark-overlay/checkmark-overlay.component.ts +0 -99
- package/src/lib/components/checkmark-overlay/checkmark-overlay.module.ts +0 -18
- package/src/lib/components/co-dialog/animation.ts +0 -2
- package/src/lib/components/co-dialog/co-dialog.component.ts +0 -130
- package/src/lib/components/co-dialog/co-dialog.module.ts +0 -17
- package/src/lib/components/co-dialog-wizard/co-dialog-wizard.component.ts +0 -50
- package/src/lib/components/co-dialog-wizard/co-dialog-wizard.module.ts +0 -15
- package/src/lib/components/collapsible/collapsible.component.ts +0 -114
- package/src/lib/components/collapsible/collapsible.module.ts +0 -17
- package/src/lib/components/color-picker/color-picker.component.ts +0 -40
- package/src/lib/components/color-picker/color-picker.module.ts +0 -19
- package/src/lib/components/core-dialog/confirmation-dialog/confirmation-dialog.component.ts +0 -86
- package/src/lib/components/core-dialog/core-dialog.module.ts +0 -37
- package/src/lib/components/core-dialog/core-dialog.service.ts +0 -61
- package/src/lib/components/core-dialog/core-dynamic-component.service.ts +0 -101
- package/src/lib/components/double-calendar/double-calendar.component.ts +0 -102
- package/src/lib/components/double-calendar/double-calendar.module.ts +0 -23
- package/src/lib/components/filter-item/filter-item-viewmodel.ts +0 -20
- package/src/lib/components/filter-item/filter-item.component.ts +0 -715
- package/src/lib/components/filter-item/filter-item.module.ts +0 -42
- package/src/lib/components/filter-item/filter-viewmodel.ts +0 -11
- package/src/lib/components/form/form.component.ts +0 -211
- package/src/lib/components/form/form.module.ts +0 -22
- package/src/lib/components/grid-toolbar/grid-toolbar.component.ts +0 -62
- package/src/lib/components/grid-toolbar/grid-toolbar.module.ts +0 -21
- package/src/lib/components/grid-toolbar-button/grid-toolbar-button.component.ts +0 -28
- package/src/lib/components/grid-toolbar-button/grid-toolbar-button.module.ts +0 -17
- package/src/lib/components/icon/icon-cache.service.ts +0 -57
- package/src/lib/components/icon/icon.component.ts +0 -54
- package/src/lib/components/icon/icon.module.ts +0 -24
- package/src/lib/components/icon-collapse-handle/icon-collapse-handle.component.ts +0 -75
- package/src/lib/components/icon-collapse-handle/icon-collapse-handle.module.ts +0 -21
- package/src/lib/components/image/image.component.ts +0 -51
- package/src/lib/components/image/image.module.ts +0 -12
- package/src/lib/components/input-checkbox/input-checkbox.component.ts +0 -85
- package/src/lib/components/input-checkbox/input-checkbox.module.ts +0 -17
- package/src/lib/components/input-date-picker/input-date-picker.component.ts +0 -103
- package/src/lib/components/input-date-picker/input-date-picker.module.ts +0 -24
- package/src/lib/components/input-date-range-picker/input-date-range-picker.component.ts +0 -155
- package/src/lib/components/input-date-range-picker/input-date-range-picker.module.ts +0 -25
- package/src/lib/components/input-number-picker/input-number-picker.component.ts +0 -378
- package/src/lib/components/input-number-picker/input-number-picker.module.ts +0 -20
- package/src/lib/components/input-radio-button/input-radio-button.component.ts +0 -86
- package/src/lib/components/input-radio-button/input-radio-button.module.ts +0 -17
- package/src/lib/components/input-scanner/bar-code-scanner.ts +0 -25
- package/src/lib/components/input-scanner/input-scanner.component.ts +0 -85
- package/src/lib/components/input-scanner/input-scanner.module.ts +0 -19
- package/src/lib/components/input-scanner/scanner.service.ts +0 -28
- package/src/lib/components/input-search/input-search.component.ts +0 -81
- package/src/lib/components/input-search/input-search.module.ts +0 -20
- package/src/lib/components/input-text/input-text.component.ts +0 -276
- package/src/lib/components/input-text/input-text.module.ts +0 -31
- package/src/lib/components/input-textarea/input-textarea.component.ts +0 -81
- package/src/lib/components/input-textarea/input-textarea.module.ts +0 -25
- package/src/lib/components/input-time/input-time.component.ts +0 -72
- package/src/lib/components/input-time/input-time.module.ts +0 -22
- package/src/lib/components/level-indicator/level-indicator-level.enum.ts +0 -5
- package/src/lib/components/level-indicator/level-indicator.component.ts +0 -42
- package/src/lib/components/level-indicator/level-indicator.module.ts +0 -13
- package/src/lib/components/list-of-values/list-of-values-multiselect-popup.component.ts +0 -132
- package/src/lib/components/list-of-values/list-of-values-popup.component.ts +0 -281
- package/src/lib/components/list-of-values/list-of-values.component.ts +0 -257
- package/src/lib/components/list-of-values/list-of-values.module.ts +0 -35
- package/src/lib/components/loader/loader.component.ts +0 -82
- package/src/lib/components/loader/loader.module.ts +0 -17
- package/src/lib/components/pagination/paginate.pipe.ts +0 -116
- package/src/lib/components/pagination/pagination-instance.ts +0 -18
- package/src/lib/components/pagination/pagination.component.ts +0 -160
- package/src/lib/components/pagination/pagination.module.ts +0 -26
- package/src/lib/components/pagination/pagination.service.ts +0 -99
- package/src/lib/components/pagination-bar/pagination-bar.component.ts +0 -178
- package/src/lib/components/pagination-bar/pagination-bar.module.ts +0 -17
- package/src/lib/components/popup/const/popup-window-token.ts +0 -4
- package/src/lib/components/popup/interface/popup-button.ts +0 -14
- package/src/lib/components/popup/interface/popup-close-event.ts +0 -8
- package/src/lib/components/popup/interface/popup-settings.ts +0 -70
- package/src/lib/components/popup/interface/popup.ts +0 -17
- package/src/lib/components/popup/model/popup-button-globals.ts +0 -11
- package/src/lib/components/popup/model/popup-window.ts +0 -51
- package/src/lib/components/popup/popup-buttons.component.ts +0 -61
- package/src/lib/components/popup/popup-message-display.component.ts +0 -49
- package/src/lib/components/popup/popup-window-shell.component.ts +0 -222
- package/src/lib/components/popup/popup.module.ts +0 -48
- package/src/lib/components/popup/service/popup-shower.service.ts +0 -98
- package/src/lib/components/popup/service/prompt.service.ts +0 -127
- package/src/lib/components/popup/text-input-popup.component.ts +0 -36
- package/src/lib/components/responsive-text/responsive-text.component.ts +0 -24
- package/src/lib/components/responsive-text/responsive-text.module.ts +0 -17
- package/src/lib/components/simple-grid/base-simple-grid.component.ts +0 -194
- package/src/lib/components/simple-grid/simple-grid-cell.component.ts +0 -192
- package/src/lib/components/simple-grid/simple-grid-column.directive.ts +0 -143
- package/src/lib/components/simple-grid/simple-grid.component.ts +0 -489
- package/src/lib/components/simple-grid/simple-grid.module.ts +0 -38
- package/src/lib/components/tile/tile.component.ts +0 -71
- package/src/lib/components/tile/tile.module.ts +0 -21
- package/src/lib/components/tile-select/tile-select.component.ts +0 -36
- package/src/lib/components/tile-select/tile-select.module.ts +0 -19
- package/src/lib/components/tooltip/tooltip.component.ts +0 -96
- package/src/lib/components/tooltip/tooltip.module.ts +0 -17
- package/src/lib/components/validation-error/validation-error.component.ts +0 -45
- package/src/lib/components/validation-error/validation-error.module.ts +0 -24
- package/src/lib/components/view-mode-buttons/content-view-mode.enum.ts +0 -9
- package/src/lib/components/view-mode-buttons/view-mode-buttons.component.ts +0 -63
- package/src/lib/components/view-mode-buttons/view-mode-buttons.module.ts +0 -19
- package/src/lib/core/abstract/collection-based-component.ts +0 -488
- package/src/lib/core/config/device-environment.ts +0 -26
- package/src/lib/core/constant/default-upper-bound-for-range-components.ts +0 -4
- package/src/lib/core/constant/java-max-int.ts +0 -1
- package/src/lib/core/constant/number-inputs-key-down-white-list.ts +0 -46
- package/src/lib/core/decorator/input-boolean.decorator.ts +0 -35
- package/src/lib/core/enum/co-direction.ts +0 -7
- package/src/lib/core/enum/co-document-image-display-kind.enum.ts +0 -5
- package/src/lib/core/enum/co-document-type.enum.ts +0 -9
- package/src/lib/core/enum/co-orientation.ts +0 -18
- package/src/lib/core/enum/collection-based-component-input-driver-prop.enum.ts +0 -10
- package/src/lib/core/enum/color-sequence-name.enum.ts +0 -5
- package/src/lib/core/enum/core-components-icon.enum.ts +0 -299
- package/src/lib/core/enum/file-type-internal.enum.ts +0 -15
- package/src/lib/core/enum/file-type.enum.ts +0 -9
- package/src/lib/core/enum/filterItem-mode.enum.ts +0 -57
- package/src/lib/core/enum/float-label-type.enum.ts +0 -5
- package/src/lib/core/enum/input-number-picker-show-mode.enum.ts +0 -6
- package/src/lib/core/enum/input-text-type.enum.ts +0 -4
- package/src/lib/core/enum/keyboard-code.enum.ts +0 -72
- package/src/lib/core/enum/keyboard-key.enum.ts +0 -78
- package/src/lib/core/enum/logical-operator-type.enum.ts +0 -5
- package/src/lib/core/enum/object-right-type.enum.ts +0 -5
- package/src/lib/core/enum/popup-button-type.enum.ts +0 -10
- package/src/lib/core/enum/popup-type.enum.ts +0 -9
- package/src/lib/core/enum/schedule-view.enum.ts +0 -14
- package/src/lib/core/enum/search-data-type.ts +0 -4
- package/src/lib/core/enum/search-property-state.ts +0 -5
- package/src/lib/core/enum/sort-data-type.ts +0 -6
- package/src/lib/core/enum/sort-direction.ts +0 -9
- package/src/lib/core/enum/table-name.enum.ts +0 -79
- package/src/lib/core/enum/value-comparison-type.ts +0 -11
- package/src/lib/core/function/any-nill.function.ts +0 -6
- package/src/lib/core/function/is-nill.function.ts +0 -4
- package/src/lib/core/function/none-nill.function.ts +0 -16
- package/src/lib/core/function/not-nill.function.ts +0 -4
- package/src/lib/core/interface/search-property.ts +0 -15
- package/src/lib/core/interface/sort-property.ts +0 -16
- package/src/lib/core/model/bounds-constrained-number-value.ts +0 -222
- package/src/lib/core/model/check-precision-and-scale-result.ts +0 -5
- package/src/lib/core/model/check-within-stepped-bounds-result.ts +0 -8
- package/src/lib/core/model/co-document-right.bo.ts +0 -9
- package/src/lib/core/model/co-document.bo.ts +0 -193
- package/src/lib/core/model/color-sequence.ts +0 -39
- package/src/lib/core/model/color.ts +0 -29
- package/src/lib/core/model/core-components-icon-svg.ts +0 -299
- package/src/lib/core/model/element-position.ts +0 -14
- package/src/lib/core/model/event/number-prompt-result-event.ts +0 -10
- package/src/lib/core/model/event/string-prompt-result-event.ts +0 -10
- package/src/lib/core/model/numerical-range.ts +0 -19
- package/src/lib/core/service/form-input-user-change-listener.service.ts +0 -31
- package/src/lib/core/service/form-master.service.ts +0 -119
- package/src/lib/core/service/ng-zone-wrapper.service.ts +0 -15
- package/src/lib/core/utils/array-utils.spec.ts +0 -588
- package/src/lib/core/utils/array-utils.ts +0 -301
- package/src/lib/core/utils/browser-utils.ts +0 -123
- package/src/lib/core/utils/business-object-utils.ts +0 -42
- package/src/lib/core/utils/css-utils.ts +0 -276
- package/src/lib/core/utils/direction-enum-utils.ts +0 -15
- package/src/lib/core/utils/element-ref.utils.ts +0 -12
- package/src/lib/core/utils/event-utils.ts +0 -61
- package/src/lib/core/utils/file-utils.ts +0 -291
- package/src/lib/core/utils/number-utils.spec.ts +0 -657
- package/src/lib/core/utils/number-utils.ts +0 -350
- package/src/lib/core/utils/object-utils.ts +0 -205
- package/src/lib/core/utils/parameter-value-conversion-utils.ts +0 -116
- package/src/lib/core/utils/search-utils.ts +0 -121
- package/src/lib/core/utils/sort-utils.ts +0 -108
- package/src/lib/core/utils/string-utils.ts +0 -100
- package/src/lib/core/validator/email.validator.ts +0 -10
- package/src/lib/core/validator/equal.validator.ts +0 -14
- package/src/lib/core/validator/max-string-length.validator.ts +0 -11
- package/src/lib/core/validator/password.validator.ts +0 -35
- package/src/lib/core/validator/precision-scale.validator.ts +0 -14
- package/src/lib/core/validator/required.validator.ts +0 -9
- package/src/lib/directives/align-with/align-with.directive.ts +0 -158
- package/src/lib/directives/align-with/align-with.module.ts +0 -13
- package/src/lib/directives/clickoutside/click-outside-master.service.ts +0 -64
- package/src/lib/directives/clickoutside/click-outside.directive.ts +0 -72
- package/src/lib/directives/clickoutside/clickoutside.module.ts +0 -17
- package/src/lib/directives/observe-visibility/observe-visibility.directive.ts +0 -55
- package/src/lib/directives/observe-visibility/observe-visibility.module.ts +0 -13
- package/src/lib/directives/overlay/overlay-parent.directive.ts +0 -20
- package/src/lib/directives/overlay/overlay.directive.ts +0 -170
- package/src/lib/directives/overlay/overlay.module.ts +0 -16
- package/src/lib/directives/parsevalue/parse-value.directive.ts +0 -42
- package/src/lib/directives/parsevalue/parse-value.module.ts +0 -13
- package/src/lib/directives/resize/resize-detect.directive.ts +0 -54
- package/src/lib/directives/resize/resize-detect.module.ts +0 -13
- package/src/lib/directives/ripple/ripple-ref.ts +0 -28
- package/src/lib/directives/ripple/ripple-renderer.ts +0 -217
- package/src/lib/directives/ripple/ripple.directive.ts +0 -116
- package/src/lib/directives/ripple/ripple.module.ts +0 -24
- package/src/lib/directives/ripple/scroll-dispatcher.service.ts +0 -129
- package/src/lib/directives/ripple/scrollable.directive.ts +0 -37
- package/src/lib/directives/ripple/viewport-ruler.service.ts +0 -84
- package/src/lib/directives/screen-configuration/screen-configuration.directive.ts +0 -170
- package/src/lib/directives/screen-configuration/screen-configuration.module.ts +0 -16
- package/src/lib/directives/stopclick/stop-click.directive.ts +0 -35
- package/src/lib/directives/stopclick/stop-click.module.ts +0 -14
- package/src/lib/directives/template-wrapper/template-wrapper.directive.ts +0 -71
- package/src/lib/directives/template-wrapper/template-wrapper.module.ts +0 -13
- package/src/lib/directives/tooltip/tooltip-directive.module.ts +0 -17
- package/src/lib/directives/tooltip/tooltip.directive.ts +0 -94
- package/src/lib/interfaces/dialog-response.interface.ts +0 -7
- package/src/lib/interfaces/lov-options.component.interface.ts +0 -4
- package/src/lib/interfaces/scanner-input.interface.ts +0 -3
- package/src/lib/interfaces/screen-config-adapter-component-interface-name.ts +0 -6
- package/src/lib/interfaces/screen-config-adapter.component.interface.ts +0 -10
- package/src/lib/model/data-item.ts +0 -9
- package/src/lib/model/enum/app-button-type.enum.ts +0 -9
- package/src/lib/model/enum/app-popup-type.enum.ts +0 -6
- package/src/lib/model/enum/currency-code.enum.ts +0 -7
- package/src/lib/model/enum/language-code.enum.ts +0 -8
- package/src/lib/model/map/currencies.map.ts +0 -6
- package/src/lib/modules/drag-drop/drag-drop-container.component.ts +0 -115
- package/src/lib/modules/drag-drop/drag-drop-container.css +0 -34
- package/src/lib/modules/drag-drop/drag-drop-manager.service.ts +0 -414
- package/src/lib/modules/drag-drop/drag-drop.module.ts +0 -20
- package/src/lib/modules/drag-drop/draggable.directive.ts +0 -70
- package/src/lib/modules/drag-drop/model/co-drag-event.ts +0 -5
- package/src/lib/modules/drag-drop/model/co-drop-event.ts +0 -9
- package/src/lib/modules/drag-drop/model/drag-drop-container-element.ts +0 -7
- package/src/lib/modules/drag-drop/model/drag-drop-container.ts +0 -9
- package/src/lib/modules/media-monitor/flex-layout-breakpoint.enum.ts +0 -5
- package/src/lib/modules/media-monitor/media-monitor.module.ts +0 -14
- package/src/lib/modules/media-monitor/media-monitor.service.ts +0 -36
- package/src/lib/modules/pagination/paginate.pipe.ts +0 -116
- package/src/lib/modules/pagination/pagination-instance.ts +0 -18
- package/src/lib/modules/pagination/pagination.component.ts +0 -229
- package/src/lib/modules/pagination/pagination.module.ts +0 -25
- package/src/lib/modules/pagination/pagination.service.ts +0 -98
- package/src/lib/pipes/append.pipe.module.ts +0 -13
- package/src/lib/pipes/append.pipe.ts +0 -17
- package/src/lib/pipes/co-currency-pipe.module.ts +0 -13
- package/src/lib/pipes/co-currency.pipe.ts +0 -45
- package/src/lib/pipes/emun-keys.pipe.ts +0 -20
- package/src/lib/pipes/enum-keys-pipe.module.ts +0 -13
- package/src/lib/pipes/file-type-image-pipe.module.ts +0 -13
- package/src/lib/pipes/file-type-image.pipe.ts +0 -45
- package/src/lib/pipes/filter.pipe.module.ts +0 -13
- package/src/lib/pipes/filter.pipe.ts +0 -14
- package/src/lib/pipes/master-pipe.module.ts +0 -13
- package/src/lib/pipes/master.pipe.ts +0 -71
- package/src/lib/pipes/prepend.pipe.module.ts +0 -13
- package/src/lib/pipes/prepend.pipe.ts +0 -17
- package/src/lib/pipes/price-display-pipe.module.ts +0 -14
- package/src/lib/pipes/price-display.pipe.ts +0 -20
- package/src/lib/pipes/safe-style.pipe.module.ts +0 -13
- package/src/lib/pipes/safe-style.pipe.ts +0 -14
- package/src/lib/pipes/ucfirst-pipe.module.ts +0 -13
- package/src/lib/pipes/ucfirst.pipe.ts +0 -14
- package/src/lib/service/base-module-screen-config.service.ts +0 -241
- package/src/lib/service/base-module.service.ts +0 -50
- package/src/lib/service/color-sequence.service.ts +0 -20
- package/src/lib/service/overlay.service.ts +0 -81
- package/src/lib/translation/core-components-translation.module.ts +0 -27
- package/src/lib/translation/core-components-translation.service.ts +0 -15
- package/src/lib/translation/core-dictionary.service.ts +0 -27
- package/src/lib/translation/core-localize.pipe.ts +0 -21
- package/src/public-api.ts +0 -137
- package/src/res/icons/Barcode.svg +0 -1
- package/src/res/icons/CashRegister.svg +0 -1
- package/src/res/icons/CirclePlusSkinny.svg +0 -1
- package/src/res/icons/CrossSkinny.svg +0 -1
- package/src/res/icons/FolderArrow.svg +0 -1
- package/src/res/icons/Home.svg +0 -1
- package/src/res/icons/POS.svg +0 -1
- package/src/res/icons/Shop.svg +0 -1
- package/src/res/icons/SinglePerson.svg +0 -1
- package/src/res/icons/Star.svg +0 -1
- package/src/res/icons/TrashBin.svg +0 -1
- package/src/res/icons/account.svg +0 -1
- package/src/res/icons/account_round_open.svg +0 -1
- package/src/res/icons/activities.svg +0 -1
- package/src/res/icons/add_to_cart_drop.svg +0 -1
- package/src/res/icons/arrow_down.svg +0 -1
- package/src/res/icons/arrow_fat_left.svg +0 -1
- package/src/res/icons/arrow_fat_right.svg +0 -1
- package/src/res/icons/arrow_left.svg +0 -4
- package/src/res/icons/arrow_left_round_open.svg +0 -1
- package/src/res/icons/arrow_point_down.svg +0 -6
- package/src/res/icons/arrow_point_left.svg +0 -8
- package/src/res/icons/arrow_point_right.svg +0 -8
- package/src/res/icons/arrow_point_up.svg +0 -8
- package/src/res/icons/arrow_right_round_open.svg +0 -1
- package/src/res/icons/arrow_scroll_down.svg +0 -6
- package/src/res/icons/arrow_scroll_left.svg +0 -22
- package/src/res/icons/arrow_scroll_right.svg +0 -22
- package/src/res/icons/arrow_scroll_up.svg +0 -6
- package/src/res/icons/arrow_up.svg +0 -3
- package/src/res/icons/article.svg +0 -1
- package/src/res/icons/article_with_fold.svg +0 -1
- package/src/res/icons/asterisk_small.svg +0 -1
- package/src/res/icons/attachments.svg +0 -1
- package/src/res/icons/back_to_top.svg +0 -1
- package/src/res/icons/big_mac.svg +0 -6
- package/src/res/icons/boxes.svg +0 -1
- package/src/res/icons/brush.svg +0 -1
- package/src/res/icons/brush_round_open.svg +0 -1
- package/src/res/icons/building_columns.svg +0 -1
- package/src/res/icons/businessrules.svg +0 -1
- package/src/res/icons/calendar.svg +0 -1
- package/src/res/icons/calendar_day.svg +0 -37
- package/src/res/icons/calendar_day_regular.svg +0 -1
- package/src/res/icons/calendar_empty.svg +0 -16
- package/src/res/icons/calendar_range.svg +0 -1
- package/src/res/icons/calendar_round_open.svg +0 -16
- package/src/res/icons/camera.svg +0 -1
- package/src/res/icons/cancel.svg +0 -1
- package/src/res/icons/cancel_round_filled.svg +0 -1
- package/src/res/icons/cancel_round_open.svg +0 -1
- package/src/res/icons/cart.svg +0 -1
- package/src/res/icons/cart_open.svg +0 -8
- package/src/res/icons/case_manager.svg +0 -1
- package/src/res/icons/cash_register_simple.svg +0 -1
- package/src/res/icons/change_location.svg +0 -1
- package/src/res/icons/check.svg +0 -1
- package/src/res/icons/check_duotone.svg +0 -1
- package/src/res/icons/check_round.svg +0 -1
- package/src/res/icons/check_round_open.svg +0 -10
- package/src/res/icons/check_simple.svg +0 -3
- package/src/res/icons/check_thin.svg +0 -1
- package/src/res/icons/chevron_down_regular.svg +0 -1
- package/src/res/icons/chevron_up_regular.svg +0 -1
- package/src/res/icons/client.svg +0 -1
- package/src/res/icons/clock.svg +0 -1
- package/src/res/icons/clockArrow.svg +0 -1
- package/src/res/icons/cogWheelPlus.svg +0 -1
- package/src/res/icons/cogWheels.svg +0 -1
- package/src/res/icons/column_options.svg +0 -18
- package/src/res/icons/company.svg +0 -1
- package/src/res/icons/company_flat.svg +0 -4
- package/src/res/icons/configurable.svg +0 -1
- package/src/res/icons/consultant.svg +0 -1
- package/src/res/icons/copy.svg +0 -1
- package/src/res/icons/crosshair_1.svg +0 -1
- package/src/res/icons/dashboard.svg +0 -1
- package/src/res/icons/delivery_method.svg +0 -32
- package/src/res/icons/delivery_status_uncheck.svg +0 -9
- package/src/res/icons/delivery_truck.svg +0 -1
- package/src/res/icons/detail_record.svg +0 -1
- package/src/res/icons/detail_view.svg +0 -1
- package/src/res/icons/dictionary.svg +0 -1
- package/src/res/icons/documentWrench.svg +0 -1
- package/src/res/icons/documents.svg +0 -1
- package/src/res/icons/dollar.svg +0 -1
- package/src/res/icons/download.svg +0 -1
- package/src/res/icons/dropdown.svg +0 -4
- package/src/res/icons/dropzone.svg +0 -1
- package/src/res/icons/edit_pencil.svg +0 -1
- package/src/res/icons/edit_pencil_circle.svg +0 -1
- package/src/res/icons/edit_pencil_round.svg +0 -11
- package/src/res/icons/edit_pencil_simple.svg +0 -16
- package/src/res/icons/email.svg +0 -1
- package/src/res/icons/email_round_open.svg +0 -6
- package/src/res/icons/employee.svg +0 -1
- package/src/res/icons/employee_two.svg +0 -1
- package/src/res/icons/employer.svg +0 -1
- package/src/res/icons/employment.svg +0 -1
- package/src/res/icons/employment_end.svg +0 -7
- package/src/res/icons/equal.svg +0 -1
- package/src/res/icons/euro.svg +0 -1
- package/src/res/icons/exclamation.svg +0 -1
- package/src/res/icons/exclamation_round_open.svg +0 -1
- package/src/res/icons/eye_circle.svg +0 -1
- package/src/res/icons/eye_circle_large.svg +0 -1
- package/src/res/icons/eye_round_filled.svg +0 -11
- package/src/res/icons/factory.svg +0 -1
- package/src/res/icons/fasttrack.svg +0 -1
- package/src/res/icons/filter.svg +0 -1
- package/src/res/icons/finish.svg +0 -1
- package/src/res/icons/fixed_option_value_tree.svg +0 -1
- package/src/res/icons/fixed_tree_option_value.svg +0 -1
- package/src/res/icons/floppy_disk_solid.svg +0 -1
- package/src/res/icons/folder_arrow_in.svg +0 -8
- package/src/res/icons/formula.svg +0 -1
- package/src/res/icons/fullscreen.svg +0 -6
- package/src/res/icons/gear_double.svg +0 -21
- package/src/res/icons/global_search.svg +0 -45
- package/src/res/icons/globe.svg +0 -1
- package/src/res/icons/greater_than.svg +0 -1
- package/src/res/icons/groupby.svg +0 -1
- package/src/res/icons/hamburger.svg +0 -1
- package/src/res/icons/hand_pointer.svg +0 -1
- package/src/res/icons/hbarchart.svg +0 -6
- package/src/res/icons/home_circle.svg +0 -9
- package/src/res/icons/home_open.svg +0 -7
- package/src/res/icons/home_round_open.svg +0 -11
- package/src/res/icons/hourglass.svg +0 -1
- package/src/res/icons/icon_3d.svg +0 -1
- package/src/res/icons/id.svg +0 -1
- package/src/res/icons/image.svg +0 -1
- package/src/res/icons/incoming_storage.svg +0 -1
- package/src/res/icons/information.svg +0 -1
- package/src/res/icons/information_round_open.svg +0 -6
- package/src/res/icons/input_multiplechoice.svg +0 -1
- package/src/res/icons/input_text.svg +0 -1
- package/src/res/icons/input_textarea.svg +0 -1
- package/src/res/icons/inventory.svg +0 -1
- package/src/res/icons/invoice.svg +0 -20
- package/src/res/icons/ione_logo.svg +0 -1
- package/src/res/icons/ione_logo_fat.svg +0 -1
- package/src/res/icons/ione_status_next.svg +0 -43
- package/src/res/icons/ione_workflow.svg +0 -62
- package/src/res/icons/keyboard.svg +0 -1
- package/src/res/icons/keychain.svg +0 -1
- package/src/res/icons/label.svg +0 -5
- package/src/res/icons/label_round_open.svg +0 -6
- package/src/res/icons/landmark_flag.svg +0 -1
- package/src/res/icons/library.svg +0 -21
- package/src/res/icons/linechart.svg +0 -1
- package/src/res/icons/link_circle.svg +0 -1
- package/src/res/icons/linked_products.svg +0 -1
- package/src/res/icons/list_view.svg +0 -8
- package/src/res/icons/location.svg +0 -1
- package/src/res/icons/lock.svg +0 -1
- package/src/res/icons/lock_round_open.svg +0 -8
- package/src/res/icons/logo.svg +0 -1
- package/src/res/icons/logout.svg +0 -1
- package/src/res/icons/magic_wand.svg +0 -1
- package/src/res/icons/magnifier.svg +0 -5
- package/src/res/icons/manager.svg +0 -12
- package/src/res/icons/mask.svg +0 -1
- package/src/res/icons/master_detail.svg +0 -1
- package/src/res/icons/material_circle_large.svg +0 -1
- package/src/res/icons/medal_bronze.svg +0 -23
- package/src/res/icons/medal_gold.svg +0 -23
- package/src/res/icons/medal_silver.svg +0 -23
- package/src/res/icons/medical_officer.svg +0 -14
- package/src/res/icons/microphone.svg +0 -1
- package/src/res/icons/minus_round_open.svg +0 -1
- package/src/res/icons/minus_simple.svg +0 -1
- package/src/res/icons/mobile.svg +0 -1
- package/src/res/icons/multi_select_check.svg +0 -10
- package/src/res/icons/new_task.svg +0 -1
- package/src/res/icons/not_equal.svg +0 -4
- package/src/res/icons/note.svg +0 -1
- package/src/res/icons/note_bordered.svg +0 -1
- package/src/res/icons/notification.svg +0 -1
- package/src/res/icons/option.svg +0 -1
- package/src/res/icons/optionset.svg +0 -1
- package/src/res/icons/order.svg +0 -1
- package/src/res/icons/orderpicking.svg +0 -1
- package/src/res/icons/outgoing_storage.svg +0 -1
- package/src/res/icons/over_booking.svg +0 -1
- package/src/res/icons/pause_circle.svg +0 -12
- package/src/res/icons/pen_to_square_solid.svg +0 -1
- package/src/res/icons/pencil_round_open.svg +0 -10
- package/src/res/icons/phone.svg +0 -1
- package/src/res/icons/phone_round_open.svg +0 -10
- package/src/res/icons/piechart.svg +0 -24
- package/src/res/icons/pin.svg +0 -9
- package/src/res/icons/pin_round_open.svg +0 -11
- package/src/res/icons/play_circle.svg +0 -1
- package/src/res/icons/plus_round.svg +0 -9
- package/src/res/icons/plus_round_open.svg +0 -1
- package/src/res/icons/plus_simple.svg +0 -1
- package/src/res/icons/plus_skinny.svg +0 -8
- package/src/res/icons/plus_solid.svg +0 -1
- package/src/res/icons/plus_stars.svg +0 -1
- package/src/res/icons/pointer.svg +0 -7
- package/src/res/icons/pointer_3d.svg +0 -8
- package/src/res/icons/pointer_filled.svg +0 -6
- package/src/res/icons/positioning.svg +0 -1
- package/src/res/icons/pregnancy.svg +0 -18
- package/src/res/icons/preset.svg +0 -1
- package/src/res/icons/print.svg +0 -1
- package/src/res/icons/product_properties.svg +0 -1
- package/src/res/icons/purchase.svg +0 -15
- package/src/res/icons/qrcode.svg +0 -59
- package/src/res/icons/question.svg +0 -1
- package/src/res/icons/radio_uncheck.svg +0 -1
- package/src/res/icons/range.svg +0 -1
- package/src/res/icons/range_select.svg +0 -1
- package/src/res/icons/rectangles.svg +0 -15
- package/src/res/icons/refresh.svg +0 -1
- package/src/res/icons/relations.svg +0 -20
- package/src/res/icons/remark.svg +0 -1
- package/src/res/icons/remark_round_open.svg +0 -6
- package/src/res/icons/report_in_type.svg +0 -1
- package/src/res/icons/resize.svg +0 -3
- package/src/res/icons/resize_down.svg +0 -1
- package/src/res/icons/resize_up.svg +0 -1
- package/src/res/icons/return_goods.svg +0 -4
- package/src/res/icons/returns.svg +0 -1
- package/src/res/icons/rotate_left_solid.svg +0 -1
- package/src/res/icons/save_disk.svg +0 -15
- package/src/res/icons/save_skinny.svg +0 -3
- package/src/res/icons/scale_balanced.svg +0 -1
- package/src/res/icons/scanner.svg +0 -1
- package/src/res/icons/search_round_open.svg +0 -9
- package/src/res/icons/sections.svg +0 -1
- package/src/res/icons/select_all_round.svg +0 -5
- package/src/res/icons/services.svg +0 -1
- package/src/res/icons/settings.svg +0 -20
- package/src/res/icons/shopping_cart.svg +0 -1
- package/src/res/icons/shopping_cart_nr.svg +0 -1
- package/src/res/icons/shortcut.svg +0 -1
- package/src/res/icons/skills.svg +0 -1
- package/src/res/icons/slide_in.svg +0 -1
- package/src/res/icons/slider_panel.svg +0 -7
- package/src/res/icons/small_tiles.svg +0 -1
- package/src/res/icons/smaller_than.svg +0 -1
- package/src/res/icons/sort_asc.svg +0 -1
- package/src/res/icons/sort_desc.svg +0 -1
- package/src/res/icons/star_round_open.svg +0 -6
- package/src/res/icons/status_active.svg +0 -1
- package/src/res/icons/status_adoption.svg +0 -1
- package/src/res/icons/status_fostercare.svg +0 -1
- package/src/res/icons/status_ill.svg +0 -10
- package/src/res/icons/status_leave.svg +0 -1
- package/src/res/icons/status_pregnancy.svg +0 -10
- package/src/res/icons/stock.svg +0 -1
- package/src/res/icons/stock_management.svg +0 -25
- package/src/res/icons/storage.svg +0 -1
- package/src/res/icons/supervisor.svg +0 -1
- package/src/res/icons/supplier.svg +0 -18
- package/src/res/icons/surgery.svg +0 -35
- package/src/res/icons/tablechart.svg +0 -15
- package/src/res/icons/tag.svg +0 -1
- package/src/res/icons/talk_too_much.svg +0 -7
- package/src/res/icons/target.svg +0 -1
- package/src/res/icons/task.svg +0 -1
- package/src/res/icons/thick_lines.svg +0 -1
- package/src/res/icons/thin_lines.svg +0 -1
- package/src/res/icons/three_sixty_view.svg +0 -1
- package/src/res/icons/thumb_bronze.svg +0 -29
- package/src/res/icons/thumb_gold.svg +0 -29
- package/src/res/icons/thumb_silver.svg +0 -29
- package/src/res/icons/timeline.svg +0 -1
- package/src/res/icons/transaction_detail.svg +0 -19
- package/src/res/icons/transactions.svg +0 -12
- package/src/res/icons/trash_can_solid.svg +0 -1
- package/src/res/icons/triangle_down.svg +0 -1
- package/src/res/icons/triangle_large.svg +0 -5
- package/src/res/icons/triangle_left.svg +0 -1
- package/src/res/icons/triangle_right.svg +0 -1
- package/src/res/icons/triangle_up.svg +0 -1
- package/src/res/icons/truck.svg +0 -1
- package/src/res/icons/truck_calendar.svg +0 -15
- package/src/res/icons/undo_round_open.svg +0 -1
- package/src/res/icons/user.svg +0 -9
- package/src/res/icons/variants.svg +0 -1
- package/src/res/icons/vbarchart.svg +0 -6
- package/src/res/icons/view.svg +0 -1
- package/src/res/icons/warehouse.svg +0 -1
- package/src/res/icons/watermark.svg +0 -10
- package/src/res/icons/website.svg +0 -1
- package/src/res/icons/wizard.svg +0 -18
- package/src/res/icons/wms.svg +0 -24
- package/src/res/icons/work_in_progress.svg +0 -10
- package/src/res/icons/work_in_progress_round_open.svg +0 -9
- package/src/res/icons/wrench.svg +0 -4
- package/src/res/icons/x_axis.svg +0 -5
- package/src/res/icons/y_axis.svg +0 -5
- package/src/test.ts +0 -28
- package/tsconfig.lib.json +0 -20
- package/tsconfig.lib.prod.json +0 -16
- package/tsconfig.spec.json +0 -17
- /package/{src/lib → lib}/components/article-tile/article-tile.component.scss +0 -0
- /package/{src/lib → lib}/components/base/commit-buttons/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/base/commit-buttons/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/base/commit-buttons/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/base/commit-buttons/style/material.scss +0 -0
- /package/{src/lib → lib}/components/button/style/_co-ripple.scss +0 -0
- /package/{src/lib → lib}/components/button/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/button/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/button/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/button/style/material.scss +0 -0
- /package/{src/lib → lib}/components/calendar/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/calendar/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/calendar/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/calendar/style/material.scss +0 -0
- /package/{src/lib → lib}/components/card/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/card/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/card/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/card/style/material.scss +0 -0
- /package/{src/lib → lib}/components/carousel/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/carousel/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/carousel/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/carousel/style/material.scss +0 -0
- /package/{src/lib → lib}/components/carousel-3d/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/carousel-3d/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/carousel-3d/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/carousel-3d/style/material.scss +0 -0
- /package/{src/lib → lib}/components/checkmark-overlay/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/checkmark-overlay/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/checkmark-overlay/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/checkmark-overlay/style/material.scss +0 -0
- /package/{src/lib → lib}/components/co-dialog/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/co-dialog/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/co-dialog/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/co-dialog/style/material.scss +0 -0
- /package/{src/lib → lib}/components/co-dialog-wizard/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/co-dialog-wizard/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/co-dialog-wizard/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/co-dialog-wizard/style/material.scss +0 -0
- /package/{src/lib → lib}/components/collapsible/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/collapsible/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/collapsible/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/collapsible/style/material.scss +0 -0
- /package/{src/lib → lib}/components/color-picker/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/color-picker/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/color-picker/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/color-picker/style/material.scss +0 -0
- /package/{src/lib → lib}/components/core-dialog/confirmation-dialog/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/core-dialog/confirmation-dialog/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/core-dialog/confirmation-dialog/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/core-dialog/confirmation-dialog/style/material.scss +0 -0
- /package/{src/lib → lib}/components/core-dialog/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/core-dialog/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/core-dialog/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/core-dialog/style/material.scss +0 -0
- /package/{src/lib → lib}/components/double-calendar/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/double-calendar/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/double-calendar/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/double-calendar/style/material.scss +0 -0
- /package/{src/lib → lib}/components/filter-item/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/filter-item/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/filter-item/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/filter-item/style/material.scss +0 -0
- /package/{src/lib → lib}/components/grid-toolbar/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/grid-toolbar/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/grid-toolbar/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/grid-toolbar/style/material.scss +0 -0
- /package/{src/lib → lib}/components/grid-toolbar-button/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/grid-toolbar-button/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/grid-toolbar-button/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/grid-toolbar-button/style/material.scss +0 -0
- /package/{src/lib → lib}/components/icon/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/icon/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/icon/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/icon/style/material.scss +0 -0
- /package/{src/lib → lib}/components/icon-collapse-handle/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/icon-collapse-handle/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/icon-collapse-handle/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/icon-collapse-handle/style/material.scss +0 -0
- /package/{src/lib → lib}/components/image/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/image/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/image/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/image/style/material.scss +0 -0
- /package/{src/lib → lib}/components/input-checkbox/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/input-checkbox/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/input-checkbox/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/input-checkbox/style/material.scss +0 -0
- /package/{src/lib → lib}/components/input-date-picker/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/input-date-picker/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/input-date-picker/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/input-date-picker/style/material.scss +0 -0
- /package/{src/lib → lib}/components/input-date-range-picker/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/input-date-range-picker/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/input-date-range-picker/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/input-date-range-picker/style/material.scss +0 -0
- /package/{src/lib → lib}/components/input-number-picker/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/input-number-picker/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/input-number-picker/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/input-number-picker/style/material.scss +0 -0
- /package/{src/lib → lib}/components/input-radio-button/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/input-radio-button/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/input-radio-button/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/input-radio-button/style/material.scss +0 -0
- /package/{src/lib → lib}/components/input-scanner/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/input-scanner/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/input-scanner/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/input-scanner/style/material.scss +0 -0
- /package/{src/lib → lib}/components/input-search/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/input-search/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/input-search/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/input-search/style/material.scss +0 -0
- /package/{src/lib → lib}/components/input-text/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/input-text/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/input-text/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/input-text/style/material.scss +0 -0
- /package/{src/lib → lib}/components/input-textarea/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/input-textarea/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/input-textarea/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/input-textarea/style/material.scss +0 -0
- /package/{src/lib → lib}/components/level-indicator/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/level-indicator/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/level-indicator/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/level-indicator/style/material.scss +0 -0
- /package/{src/lib → lib}/components/list-of-values/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/list-of-values/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/list-of-values/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/list-of-values/style/material.scss +0 -0
- /package/{src/lib → lib}/components/loader/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/loader/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/loader/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/loader/style/material.scss +0 -0
- /package/{src/lib → lib}/components/pagination/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/pagination/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/pagination/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/pagination/style/material.scss +0 -0
- /package/{src/lib → lib}/components/pagination-bar/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/pagination-bar/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/pagination-bar/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/pagination-bar/style/material.scss +0 -0
- /package/{src/lib → lib}/components/popup/popup-buttons.component.scss +0 -0
- /package/{src/lib → lib}/components/popup/popup-window-shell.component.scss +0 -0
- /package/{src/lib → lib}/components/responsive-text/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/responsive-text/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/responsive-text/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/responsive-text/style/material.scss +0 -0
- /package/{src/lib → lib}/components/simple-grid/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/simple-grid/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/simple-grid/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/simple-grid/style/material.scss +0 -0
- /package/{src/lib → lib}/components/tile/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/tile/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/tile/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/tile/style/material.scss +0 -0
- /package/{src/lib → lib}/components/tile-select/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/tile-select/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/tile-select/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/tile-select/style/material.scss +0 -0
- /package/{src/lib → lib}/components/tooltip/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/tooltip/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/tooltip/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/tooltip/style/material.scss +0 -0
- /package/{src/lib → lib}/components/validation-error/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/validation-error/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/validation-error/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/validation-error/style/material.scss +0 -0
- /package/{src/lib → lib}/components/view-mode-buttons/style/_layout.scss +0 -0
- /package/{src/lib → lib}/components/view-mode-buttons/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/components/view-mode-buttons/style/_theme.scss +0 -0
- /package/{src/lib → lib}/components/view-mode-buttons/style/material.scss +0 -0
- /package/{src/lib → lib}/modules/pagination/style/_layout.scss +0 -0
- /package/{src/lib → lib}/modules/pagination/style/_material-definition.scss +0 -0
- /package/{src/lib → lib}/modules/pagination/style/_theme.scss +0 -0
- /package/{src/lib → lib}/modules/pagination/style/material.scss +0 -0
- /package/{src/lib → lib}/style/_input.mixins.scss +0 -0
- /package/{src/lib → lib}/style/_mixin.scss +0 -0
- /package/{src/lib → lib}/style/_variables.scss +0 -0
- /package/{src/lib → lib}/style/corecomponents-globals.scss +0 -0
- /package/{src/lib → lib}/style/material2/_core.scss +0 -0
- /package/{src/lib → lib}/style/material2/_material2-scss-barrel.scss +0 -0
- /package/{src/lib → lib}/style/material2/ripple/_co-ripple.scss +0 -0
- /package/{src/lib → lib}/style/material2/style/_elevation.scss +0 -0
- /package/{src/lib → lib}/style/material2/style/_list-common.scss +0 -0
- /package/{src/lib → lib}/style/material2/style/_variables.scss +0 -0
- /package/{src/lib → lib}/style/material2/theming/_palette.scss +0 -0
- /package/{src/lib → lib}/style/material2/theming/_theming.scss +0 -0
- /package/{src/lib → lib}/style/material2/typography/_typography.scss +0 -0
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
import {anyNill} from "../function/any-nill.function";
|
|
2
|
-
import {ArrayUtils} from "./array-utils";
|
|
3
|
-
import {CheckWithinSteppedBoundsResult} from "../model/check-within-stepped-bounds-result";
|
|
4
|
-
import {isNill} from "../function/is-nill.function";
|
|
5
|
-
import { ObjectUtils } from './object-utils';
|
|
6
|
-
import { CheckPrecisionAndScaleResult } from '../model/check-precision-and-scale-result';
|
|
7
|
-
|
|
8
|
-
// @dynamic
|
|
9
|
-
export class NumberUtils {
|
|
10
|
-
// @returns The inclusive max value
|
|
11
|
-
public static PrecisionScaleToMaxValue(precision: number, scale: number): number {
|
|
12
|
-
const oneStep: number = this.DecimalsToStepIncrement(scale);
|
|
13
|
-
const maxExclusive: number = Math.pow(10, precision - scale);
|
|
14
|
-
return maxExclusive - oneStep;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// Parses given argument to an integer, using a native parseInt() function with a radix of 10. Returns NaN if parsing was not possible.
|
|
18
|
-
public static ParseInt(arg: any): number {
|
|
19
|
-
if (isNill(arg) || Array.isArray(arg)) {
|
|
20
|
-
return undefined;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return parseInt(arg, 10);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
public static DecimalsToStepIncrement(numberOfDecimals: number): number {
|
|
27
|
-
return Math.pow(10, -1 * numberOfDecimals);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Returns the given argument as a number. Returns given defaultValue if conversion of argument was impossible.
|
|
31
|
-
public static ParseNumberOrDefault(arg: any, defaultValue: number = 0): number {
|
|
32
|
-
if (Array.isArray(arg)) {
|
|
33
|
-
return defaultValue;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
if (!NumberUtils.IsNumber(arg)) {
|
|
37
|
-
arg = parseFloat(arg);
|
|
38
|
-
arg = isNaN(arg) ? defaultValue : arg;
|
|
39
|
-
}
|
|
40
|
-
return arg;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Parses given numberInput to a number, or returns given defaultValue if parse not possible. Allows ',' char as decimal delimiter.
|
|
44
|
-
public static ParseNumberInputOrDefault(numberInput: any, defaultValue: number = 0): number {
|
|
45
|
-
return NumberUtils.ParseNumberOrDefault(NumberUtils._NumberInputToNumberStr(numberInput), defaultValue);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
public static IsParsableNumberInput(numberInput: any): boolean {
|
|
49
|
-
return NumberUtils.IsParsableNumber(NumberUtils._NumberInputToNumberStr(numberInput));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Returns whether the type of given argument is 'number'.
|
|
53
|
-
public static IsNumber(arg: any): boolean {
|
|
54
|
-
return typeof arg === 'number';
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Returns whether the value is parasable as a number.
|
|
58
|
-
public static IsParsableNumber(arg: any): boolean {
|
|
59
|
-
if (Array.isArray(arg)) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return !isNaN(parseFloat(arg));
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Returns given arg as a float number with given decimal precision, if possible. Returns NaN if parse conversion failed.
|
|
68
|
-
*
|
|
69
|
-
* @param The argument to parse to a float
|
|
70
|
-
* @param The number of decimals, or the precision, the parsed return float should have
|
|
71
|
-
* @returns NaN if not possible, else the parsed float value
|
|
72
|
-
*/
|
|
73
|
-
public static ParseFloat(arg: any, decimalPrecision: number = 2): number {
|
|
74
|
-
if (anyNill(arg, decimalPrecision) || Array.isArray(arg)) {
|
|
75
|
-
return NaN;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (!NumberUtils.IsInteger(decimalPrecision) || decimalPrecision < 0) {
|
|
79
|
-
decimalPrecision = 2;
|
|
80
|
-
// toFixed() can only handle up until 20
|
|
81
|
-
} else if (decimalPrecision > 20) {
|
|
82
|
-
decimalPrecision = 20;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return parseFloat(parseFloat(arg).toFixed(decimalPrecision));
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Returns given arg as a float number with given decimal precision, if possible. Returns NaN if parse conversion failed.
|
|
90
|
-
*
|
|
91
|
-
* @param The argument to parse to a float
|
|
92
|
-
* @returns The argument as a float with its original decimal precision intact
|
|
93
|
-
*/
|
|
94
|
-
public static ParseFloatKeepPrecision(arg: any): number {
|
|
95
|
-
let decimalPrecision: number = this.GetDecimalPlaces(arg);
|
|
96
|
-
return this.ParseFloat(arg, decimalPrecision);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
public static ParseFloatNumberInputKeepPrecision(arg: any): number {
|
|
100
|
-
let correctedInputStr: string = NumberUtils._NumberInputToNumberStr(arg);
|
|
101
|
-
let decimalPrecision: number = this.GetDecimalPlaces(correctedInputStr);
|
|
102
|
-
return NumberUtils.ParseFloat(correctedInputStr, decimalPrecision);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Finds the number closest to the originalNumber, that adheres to the given bounds. That is, for which it holds that
|
|
107
|
-
* nr = min + N * step with N integer or 0.
|
|
108
|
-
* @param originalNr Find closest answer to this number
|
|
109
|
-
* @param min Inclusive
|
|
110
|
-
* @param max Inclusive
|
|
111
|
-
* @param stepSize
|
|
112
|
-
* @returns The closest OK number for bounds.
|
|
113
|
-
*/
|
|
114
|
-
public static GetNearestNumberWithinSteppedBounds(originalNr: number, min: number, max: number, stepSize: number = 1): number {
|
|
115
|
-
if (originalNr < min) {
|
|
116
|
-
return min;
|
|
117
|
-
} else if (originalNr > max) {
|
|
118
|
-
return NumberUtils.GetTrueSteppedBoundsMax(min, max, stepSize);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
let boundsCheck: CheckWithinSteppedBoundsResult = NumberUtils.CheckWithinSteppedBounds(originalNr, min, max, stepSize);
|
|
122
|
-
if (boundsCheck.isOk) {
|
|
123
|
-
return originalNr;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
let answer: number = undefined;
|
|
127
|
-
|
|
128
|
-
let remainder: number = boundsCheck.remainder;
|
|
129
|
-
if (remainder) {
|
|
130
|
-
// round up or down?
|
|
131
|
-
if ((remainder / stepSize) < 0.5) {
|
|
132
|
-
// round down, but not below min
|
|
133
|
-
answer = (originalNr - remainder >= min ? originalNr - remainder : min);
|
|
134
|
-
} else {
|
|
135
|
-
// round up, but not above max
|
|
136
|
-
answer = (originalNr + stepSize - remainder <= max ? originalNr + stepSize - remainder :
|
|
137
|
-
NumberUtils.GetTrueSteppedBoundsMax(min, max, stepSize));
|
|
138
|
-
}
|
|
139
|
-
} else {
|
|
140
|
-
// is this real life, why wasn't our stepped bounds check OK?
|
|
141
|
-
answer = originalNr;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
// 'correct' float errors
|
|
145
|
-
answer = NumberUtils.ParseFloat(answer, NumberUtils._GetLargestDecimalPrecisionOf(originalNr, min, max, stepSize));
|
|
146
|
-
return answer;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
// Returns the number of decimal places of the given number. Returns 0 if no decimals whatsoever could be found on given arg.
|
|
150
|
-
public static GetDecimalPlaces(arg: any, maxAnswer: number = 1000): number {
|
|
151
|
-
let match: RegExpMatchArray = ('' + arg).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
|
|
152
|
-
if (!match) {
|
|
153
|
-
return 0;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
let answer: number = Math.max(0,
|
|
157
|
-
// number of digits right of decimal point.
|
|
158
|
-
(match[1] ? match[1].length : 0)
|
|
159
|
-
// adjust for scientific notation
|
|
160
|
-
- (match[2] ? +match[2] : 0));
|
|
161
|
-
|
|
162
|
-
if (answer > maxAnswer) {
|
|
163
|
-
answer = maxAnswer;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
return answer;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// Returns true iff given argument is an integer number. Returns false on non-numbers or numbers with significant decimals.
|
|
170
|
-
public static IsInteger(arg: any): boolean {
|
|
171
|
-
if (isNaN(arg) || Array.isArray(arg)) {
|
|
172
|
-
return false;
|
|
173
|
-
}
|
|
174
|
-
let argAsFloat: number = parseFloat(arg);
|
|
175
|
-
return ((argAsFloat | 0) === argAsFloat); // returns whether 'arg converted to an integer equals arg'
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Returns whether given arg is parseable as a number, and whether the lengts of its number parse result is equal to its original length.
|
|
180
|
-
* I.e. this function returns FALSE with given number-parsable strings, but that have non-numeric appendices, eg '2233ff'. That arg
|
|
181
|
-
* IS number-parseable, but not a strict 'string number', the latter being what this method actually checks for.
|
|
182
|
-
*/
|
|
183
|
-
public static IsStringNumber(arg: string): boolean {
|
|
184
|
-
if (!NumberUtils.IsParsableNumber(arg)) {
|
|
185
|
-
return false;
|
|
186
|
-
} else {
|
|
187
|
-
return arg.toString().length === parseFloat(arg).toString().length;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Returns a random integer in range [lowerBound .. upperBound], an inclusive range. Returns NaN if not possible.
|
|
193
|
-
* Given bounds are truncated first, before serving as the true lower- and upper bounds for the random int.
|
|
194
|
-
*/
|
|
195
|
-
public static RandomInt(lowerBoundInt: number, upperBoundInt: number): number {
|
|
196
|
-
if (!NumberUtils.IsNumber(lowerBoundInt) || !NumberUtils.IsNumber(upperBoundInt) || lowerBoundInt > upperBoundInt) {
|
|
197
|
-
return NaN;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
lowerBoundInt = Math.trunc(lowerBoundInt);
|
|
201
|
-
upperBoundInt = Math.trunc(upperBoundInt);
|
|
202
|
-
|
|
203
|
-
if (lowerBoundInt === upperBoundInt) {
|
|
204
|
-
return lowerBoundInt;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
const delta: number = upperBoundInt - lowerBoundInt;
|
|
208
|
-
return (Math.round(Math.random() * delta) + lowerBoundInt);
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Returns the true maximum allowed value for the given "stepped bounds": min, stepSize and max, for which it holds that each allowed
|
|
213
|
-
* value Y = min + stepSize * N, for any INTEGER or 0 N where it also holds, of course, that Y <= max.
|
|
214
|
-
* @param min
|
|
215
|
-
* @param max
|
|
216
|
-
* @param stepSize
|
|
217
|
-
*/
|
|
218
|
-
public static GetTrueSteppedBoundsMax(min: number, max: number, stepSize: number = 1): number {
|
|
219
|
-
// solve max integer X in formula min + X * step <= max, and return min + X * stepSize for that X
|
|
220
|
-
let maxSteps: number = Math.floor((max - min) / stepSize);
|
|
221
|
-
// 'correct' float errors
|
|
222
|
-
return NumberUtils.ParseFloat(min + maxSteps * stepSize, NumberUtils._GetLargestDecimalPrecisionOf(min, min, max));
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
// Returns the string representation of given number. If it's not a number, returns the empty string.
|
|
226
|
-
public static ToString(nr: number): string {
|
|
227
|
-
if (!NumberUtils.IsNaN(nr)) {
|
|
228
|
-
return "" + nr;
|
|
229
|
-
} else {
|
|
230
|
-
return "";
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
// Returns whether given arg is indeed not a number (it's NaN or it has another type than 'number').
|
|
235
|
-
public static IsNaN(arg: any): boolean {
|
|
236
|
-
return isNaN(arg) || !NumberUtils.IsNumber(arg);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Returns whether given x is OK within the given min, max and step boundaries, where it should hold that nrToCheck = min + N * step,
|
|
241
|
-
* with N integer or 0.
|
|
242
|
-
* @param nrToCheck Number to check whether it's within the given bounds
|
|
243
|
-
* @param min Inclusive
|
|
244
|
-
* @param max Inclusive
|
|
245
|
-
* @param stepSize
|
|
246
|
-
* @returns Returns remainder of undefined when nrToCheck was OUTSIDE [min, max], else full result object.
|
|
247
|
-
*/
|
|
248
|
-
public static CheckWithinSteppedBounds(
|
|
249
|
-
nrToCheck: number,
|
|
250
|
-
min: number,
|
|
251
|
-
max: number,
|
|
252
|
-
stepSize: number = 1
|
|
253
|
-
): CheckWithinSteppedBoundsResult {
|
|
254
|
-
if (nrToCheck < min || nrToCheck > max) {
|
|
255
|
-
return {isOk: false, remainder: undefined};
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// we're in [min, max], but still check if nrToCheck = min + N * step holds (for N integer or 0)
|
|
259
|
-
let remainder: number = (nrToCheck - min) % stepSize;
|
|
260
|
-
// correct float for largest precision amongst input numbers
|
|
261
|
-
remainder = NumberUtils.ParseFloat(remainder, NumberUtils._GetLargestDecimalPrecisionOf(nrToCheck, min, stepSize));
|
|
262
|
-
return {isOk: (remainder === 0), remainder: remainder};
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
// Adds thousands comma's to given value, E.g. '1000' to '1,000'. Returns empty string if value was undefined.
|
|
266
|
-
public static AddThousandsCommasTo(value: any): string {
|
|
267
|
-
if (isNill(value)) {
|
|
268
|
-
return "";
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
// Returns the nearest number, relative to the given originalNr, that is within the given [min, max] inclusive bounds.
|
|
275
|
-
public static GetNearestNumberWithinBounds(originalNr: number, min: number, max: number): number {
|
|
276
|
-
let answer: number = originalNr;
|
|
277
|
-
|
|
278
|
-
if (originalNr < min) {
|
|
279
|
-
answer = min;
|
|
280
|
-
} else if (originalNr > max) {
|
|
281
|
-
answer = max;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
return answer;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* Returns whether given nrToCheck is within the given precision and scale limits. Precision and scale, here, are Oracle DB terms.
|
|
289
|
-
* This function can thus be used to check whether the given number is safe to send to the 'database' beforehand, if we know the
|
|
290
|
-
* precision and scale of the number in the db declaration.
|
|
291
|
-
*
|
|
292
|
-
* I.e. A number declared in the Oracle DB as number(5, 2) has a precision of 5 and a scale of 2.
|
|
293
|
-
*
|
|
294
|
-
* @param nrToCheck
|
|
295
|
-
* @param precision The number of significant digits, including possibly negative scale. E.g. 3 in '123' and 5 in '51.123'
|
|
296
|
-
* @param [scale = 0] The number of significant digits AFTER the decimal point. E.g. 1 in 5432.1 and 3 in 54000.003
|
|
297
|
-
* @returns Whether given nrToCheck is ok for given precision and scale, and if not, the
|
|
298
|
-
* nearest number that IS ok for those constraints.
|
|
299
|
-
*/
|
|
300
|
-
public static CheckPrecisionAndScale(nrToCheck: number, precision: number, scale: number = 0): CheckPrecisionAndScaleResult {
|
|
301
|
-
// let's say any undefined number is checked OK, and all numbers are checked OK for an undefined precision
|
|
302
|
-
if (!ObjectUtils.AllExist(nrToCheck, precision, scale)) {
|
|
303
|
-
return {isOk: true, nearestOkNr: NaN};
|
|
304
|
-
}
|
|
305
|
-
// no number can have 0 or less than 0 significant digits, in our universe
|
|
306
|
-
if (precision < 1 || precision - scale < 1) {
|
|
307
|
-
return {isOk: false, nearestOkNr: NaN};
|
|
308
|
-
}
|
|
309
|
-
// begin check
|
|
310
|
-
const isNegative: boolean = (nrToCheck < 0);
|
|
311
|
-
const nrParts: string[] = nrToCheck.toString().split(".");
|
|
312
|
-
// remove minus sign if negative
|
|
313
|
-
if (isNegative) {
|
|
314
|
-
nrParts[0] = nrParts[0].slice(1);
|
|
315
|
-
}
|
|
316
|
-
const numCountBeforeDot: number = nrParts[0].length;
|
|
317
|
-
const allowedNumCountBeforeDot: number = precision - scale;
|
|
318
|
-
if (numCountBeforeDot <= allowedNumCountBeforeDot) {
|
|
319
|
-
return {isOk: true, nearestOkNr: nrToCheck};
|
|
320
|
-
} else {
|
|
321
|
-
// cut a part from the "before decimal number" so that the number is not too big anymore
|
|
322
|
-
const numCountToRemove: number = numCountBeforeDot - allowedNumCountBeforeDot;
|
|
323
|
-
// remove the right-most numbers before the decimal dot
|
|
324
|
-
nrParts[0] = nrParts[0].slice(0, -1 * numCountToRemove);
|
|
325
|
-
// add minus sign again if it was negative
|
|
326
|
-
if (isNegative) {
|
|
327
|
-
nrParts[0] = "-" + nrParts[0];
|
|
328
|
-
}
|
|
329
|
-
// build and return composite number again
|
|
330
|
-
let nearestOkNr: number;
|
|
331
|
-
if (nrParts[1]) {
|
|
332
|
-
nearestOkNr = Number(nrParts[0] + "." + nrParts[1]);
|
|
333
|
-
} else {
|
|
334
|
-
nearestOkNr = Number(nrParts[0]);
|
|
335
|
-
}
|
|
336
|
-
return {isOk: false, nearestOkNr: nearestOkNr};
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
private static _GetLargestDecimalPrecisionOf(...args: number[]): number {
|
|
341
|
-
return ArrayUtils.GetMaxCalculatedValue(args, (arg: number) => {
|
|
342
|
-
return NumberUtils.GetDecimalPlaces(arg);
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
// Returns given number input as a number that's useable by Javascript. Allows for incoming ',' decimal delimiter.
|
|
347
|
-
private static _NumberInputToNumberStr(numberInput: string): string {
|
|
348
|
-
return (numberInput + '').replace(',', '.');
|
|
349
|
-
}
|
|
350
|
-
}
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
import {isNill} from "../function/is-nill.function";
|
|
2
|
-
import {notNill} from "../function/not-nill.function";
|
|
3
|
-
|
|
4
|
-
// Static utility function holder related to objects.
|
|
5
|
-
export class ObjectUtils {
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Returns whether all given values exist: for all values it holds that they are not null nor undefined. Short-circuit check.
|
|
9
|
-
* @param values Rest parameters with all objects to check existence for.
|
|
10
|
-
* @returns True if ALL given values are not null nor undefined, otherwise false (if at least one value was null or undefined)
|
|
11
|
-
*/
|
|
12
|
-
public static AllExist(...values: any[]): boolean {
|
|
13
|
-
let allExist: boolean = true;
|
|
14
|
-
for (let i: number = 0, len: number = values.length; i < len; i++) {
|
|
15
|
-
if (isNill(values[i])) {
|
|
16
|
-
allExist = false;
|
|
17
|
-
break;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return allExist;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// Returns a shallow clone of the given original object. The clone is a SIMPLE OBJECT with the same properties as the original.
|
|
24
|
-
public static GetShallowClone(originalObject: any, objectClass?: any): any {
|
|
25
|
-
let clonedObject: any = undefined;
|
|
26
|
-
|
|
27
|
-
if (objectClass) {
|
|
28
|
-
clonedObject = new objectClass();
|
|
29
|
-
} else {
|
|
30
|
-
clonedObject = {};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
ObjectUtils.ForOwnProperty(originalObject, (value: any, key: string) => {
|
|
34
|
-
clonedObject[key] = value;
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
return clonedObject;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Copies all properties from object 'from' to object 'to'. Overwrites properties on object 'to' if property already exists.
|
|
42
|
-
* Does not copy functions, only properties.
|
|
43
|
-
* @param from The source object from which to copy all properties of to the 'to' object.
|
|
44
|
-
* @param to The object to which the properties of the 'from' object will be copied.
|
|
45
|
-
* @param [allowUndefined = true] wether the 'to' object may be assigned null or undefined values to any of its properties.
|
|
46
|
-
*/
|
|
47
|
-
public static CopyPropertiesFrom<T>(from: Object, to: T, allowUndefined: boolean = true): T {
|
|
48
|
-
if (!to) {
|
|
49
|
-
to = {} as T;
|
|
50
|
-
}
|
|
51
|
-
if (!from) {
|
|
52
|
-
return to;
|
|
53
|
-
}
|
|
54
|
-
ObjectUtils.ForOwnProperty(from, (value: any, key: string) => {
|
|
55
|
-
if (allowUndefined || notNill(value)) {
|
|
56
|
-
to[key] = value;
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
return to;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Returns the display value of the given property on the given object, as a string (== the string representation of the property value).
|
|
64
|
-
* Does not return null or undefined, but returns the given defaultValue instead.
|
|
65
|
-
*/
|
|
66
|
-
public static GetDisplayValueOfPropertyOn(object: Object, property: string, defaultValue: string = ""): string {
|
|
67
|
-
if (!object || !property) {
|
|
68
|
-
return defaultValue;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
let returnValue: string = defaultValue;
|
|
72
|
-
let propertyValue: any = object[property];
|
|
73
|
-
if (propertyValue) {
|
|
74
|
-
returnValue = propertyValue.toString();
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return returnValue;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// Performs given callback function for each own property of given plain object. Also works on string enums.
|
|
81
|
-
public static ForOwnProperty(plainObject: any, callback: (propVal: any, key: string) => any): void {
|
|
82
|
-
if (ObjectUtils.IsPlainObject(plainObject)) {
|
|
83
|
-
for (let key in plainObject) {
|
|
84
|
-
if (plainObject.hasOwnProperty(key) && typeof plainObject[key] !== 'function') {
|
|
85
|
-
let response: boolean = callback(plainObject[key], key);
|
|
86
|
-
if (response === false) {
|
|
87
|
-
break;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
// Returns whether given object is an existing, plain object. That is, it defined, its type if 'object' and it is NOT an array or func.
|
|
95
|
-
public static IsPlainObject(object: any): boolean {
|
|
96
|
-
return object !== null && !Array.isArray(object) && typeof object !== 'function' && typeof object === 'object';
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
public static DeepEquals(actual: any, expected: any): boolean {
|
|
100
|
-
if (actual === expected) {
|
|
101
|
-
return true;
|
|
102
|
-
} else if (actual instanceof Date && expected instanceof Date) {
|
|
103
|
-
return actual.getTime() === expected.getTime();
|
|
104
|
-
} else if (!actual || !expected || typeof actual !== 'object' && typeof expected !== 'object') {
|
|
105
|
-
return actual === expected;
|
|
106
|
-
} else {
|
|
107
|
-
return this._objEquiv(actual, expected);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
private static _objEquiv(a: any, b: any): boolean {
|
|
112
|
-
let i: number, key: string;
|
|
113
|
-
if (isNill(a) || isNill(b)) {
|
|
114
|
-
return false;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (a.prototype !== b.prototype) {
|
|
118
|
-
return false;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (this._isArguments(a)) {
|
|
122
|
-
if (!this._isArguments(b)) {
|
|
123
|
-
return false;
|
|
124
|
-
}
|
|
125
|
-
a = Array.prototype.slice.call(a);
|
|
126
|
-
b = Array.prototype.slice.call(b);
|
|
127
|
-
return this.DeepEquals(a, b);
|
|
128
|
-
}
|
|
129
|
-
if (this._isBuffer(a)) {
|
|
130
|
-
if (!this._isBuffer(b)) {
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
133
|
-
if (a.length !== b.length) {
|
|
134
|
-
return false;
|
|
135
|
-
}
|
|
136
|
-
for (i = 0; i < a.length; i++) {
|
|
137
|
-
if (a[i] !== b[i]) {
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return true;
|
|
142
|
-
}
|
|
143
|
-
let ka: string[];
|
|
144
|
-
let kb: string[];
|
|
145
|
-
try {
|
|
146
|
-
ka = Object.keys(a);
|
|
147
|
-
kb = Object.keys(b);
|
|
148
|
-
} catch (e) {
|
|
149
|
-
return false;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
if (ka.length !== kb.length) {
|
|
153
|
-
return false;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
ka.sort();
|
|
157
|
-
kb.sort();
|
|
158
|
-
|
|
159
|
-
for (i = ka.length - 1; i >= 0; i--) {
|
|
160
|
-
if (ka[i] !== kb[i]) {
|
|
161
|
-
return false;
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
for (i = ka.length - 1; i >= 0; i--) {
|
|
166
|
-
key = ka[i];
|
|
167
|
-
if (!this.DeepEquals(a[key], b[key])) {
|
|
168
|
-
return false;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
return typeof a === typeof b;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
private static _isBuffer(x: any): boolean {
|
|
175
|
-
if (!x || typeof x !== 'object' || typeof x.length !== 'number') {
|
|
176
|
-
return false;
|
|
177
|
-
}
|
|
178
|
-
if (typeof x.copy !== 'function' || typeof x.slice !== 'function') {
|
|
179
|
-
return false;
|
|
180
|
-
}
|
|
181
|
-
return !(x.length > 0 && typeof x[0] !== 'number');
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
private static _isArguments(x: any): boolean {
|
|
185
|
-
let supportsArgsClass: boolean = this._supportsArgumentsClass();
|
|
186
|
-
return supportsArgsClass ? this._isArgumentsWhenArgsClassSupported(x) : this._isArgumentsWhenArgsClassNotSupported(x);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
private static _isArgumentsWhenArgsClassNotSupported(object: any): boolean {
|
|
190
|
-
return object &&
|
|
191
|
-
typeof object === 'object' &&
|
|
192
|
-
typeof object.length === 'number' &&
|
|
193
|
-
Object.prototype.hasOwnProperty.call(object, 'callee') &&
|
|
194
|
-
!Object.prototype.propertyIsEnumerable.call(object, 'callee') ||
|
|
195
|
-
false;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
private static _isArgumentsWhenArgsClassSupported(object: any): boolean {
|
|
199
|
-
return Object.prototype.toString.call(object) === '[object Arguments]';
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
private static _supportsArgumentsClass(): boolean {
|
|
203
|
-
return Object.prototype.toString.call(arguments) === '[object Arguments]';
|
|
204
|
-
}
|
|
205
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import {StringUtils} from "./string-utils";
|
|
2
|
-
import {LogicalOperatorType} from "../enum/logical-operator-type.enum";
|
|
3
|
-
import {ValueComparisonType} from "../enum/value-comparison-type";
|
|
4
|
-
import {NumberUtils} from "./number-utils";
|
|
5
|
-
import {JAVA_MAX_INT} from "../constant/java-max-int";
|
|
6
|
-
|
|
7
|
-
export class ParameterValueConversionUtils {
|
|
8
|
-
// A character to indicate the NEXT character should be interpreted as a value comparison type (when not in quotes data-value mode)
|
|
9
|
-
private static readonly _ComparatorPrefix: string = "?";
|
|
10
|
-
// The character that's used to separate (user) data values (which are between quotes) from the logical part of the search string markup.
|
|
11
|
-
private static readonly _QuoteChar: string = "'";
|
|
12
|
-
private static readonly _OrChar: string = ",";
|
|
13
|
-
private static readonly _AndChar: string = "&";
|
|
14
|
-
private static readonly _EqualChar: string = "=";
|
|
15
|
-
private static readonly _NotEqualChar: string = "!";
|
|
16
|
-
private static readonly _LargerThanChar: string = ">";
|
|
17
|
-
private static readonly _SmallerThanChar: string = "<";
|
|
18
|
-
// The between comparison notation has a slightly different syntax; the '?' is included in the middle of the two values, e.g. '1'<=?<'5'
|
|
19
|
-
private static readonly _BetweenChars: string = "<=?<=";
|
|
20
|
-
|
|
21
|
-
private static readonly _LogicalOperatorChars: Map<LogicalOperatorType, string> = new Map<LogicalOperatorType, string>([
|
|
22
|
-
[LogicalOperatorType.Or, ParameterValueConversionUtils._OrChar],
|
|
23
|
-
[LogicalOperatorType.And, ParameterValueConversionUtils._AndChar]
|
|
24
|
-
]);
|
|
25
|
-
|
|
26
|
-
private static readonly _ValueComparisonTypeChars: Map<ValueComparisonType, string> = new Map<ValueComparisonType, string>([
|
|
27
|
-
[ValueComparisonType.Equal, ParameterValueConversionUtils._EqualChar],
|
|
28
|
-
[ValueComparisonType.NotEqual, ParameterValueConversionUtils._NotEqualChar],
|
|
29
|
-
[ValueComparisonType.LargerThan, ParameterValueConversionUtils._LargerThanChar],
|
|
30
|
-
[ValueComparisonType.SmallerThan, ParameterValueConversionUtils._SmallerThanChar]
|
|
31
|
-
]);
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @param searchString like ?='1',?='2',?='5', or any other valid search string.
|
|
36
|
-
* @returns Array with all data values between quotes from given string, like ['1', '2', '4']
|
|
37
|
-
*/
|
|
38
|
-
public static ExtractDataValuesFromSearchString(searchString: string): string[] {
|
|
39
|
-
if (!searchString) {
|
|
40
|
-
return [];
|
|
41
|
-
}
|
|
42
|
-
const dataValues: string[] = [];
|
|
43
|
-
let matches: any[] = searchString.match(/'(.*?)'/g);
|
|
44
|
-
if (matches) {
|
|
45
|
-
// remove quotes (if you know an improvement in above regexp that already does this for us, please let me know)
|
|
46
|
-
matches = matches.map(match => match.substring(1, match.length - 1));
|
|
47
|
-
}
|
|
48
|
-
dataValues.push(...matches);
|
|
49
|
-
return dataValues;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// E.g. returns the string "?='1',?='2',?='3'" from a given array [1, 2, 3]. For use in backend search filters strings.
|
|
53
|
-
public static ArrayValuesToOrList(array: any[], defaultReturnVal: any = null): string {
|
|
54
|
-
if (!Array.isArray(array) || array.length === 0) {
|
|
55
|
-
return defaultReturnVal;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
return ParameterValueConversionUtils.ArrayToComplexSearchFilter(array, LogicalOperatorType.Or);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Takes values from given array and returns a complex filter string which represents the following logical filter based on given operator
|
|
63
|
-
* type: '1 OR 2 OR 3 OR ..' or '1 AND 2 AND 3'.
|
|
64
|
-
* @returns Complex search filter in string representation, e.g. "?='1','2','3'"
|
|
65
|
-
*/
|
|
66
|
-
public static ArrayToComplexSearchFilter<T>(array: T[], logicalOperator: LogicalOperatorType = LogicalOperatorType.Or): string {
|
|
67
|
-
if (!array) {
|
|
68
|
-
return undefined;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
let returnValue: string = "";
|
|
72
|
-
let logicalOperChar: string = this._LogicalOperatorChars.get(logicalOperator);
|
|
73
|
-
for (let i: number = 0, len: number = array.length; i < len; i++) {
|
|
74
|
-
returnValue += this._ComparatorPrefix + this._EqualChar + this._QuoteChar + array[i] + this._QuoteChar + logicalOperChar;
|
|
75
|
-
}
|
|
76
|
-
returnValue = StringUtils.RemoveLastChars(returnValue, 1); // last comma
|
|
77
|
-
return returnValue;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Returns [upperBound, lowerBound] num array from given range string. A range string's format is like "1 - 4". NOTE: negative
|
|
82
|
-
* numbers not supported!
|
|
83
|
-
* @param rangeString A "range string", formatted like '0 - 1000'.
|
|
84
|
-
* @returns Numerical bounds as [lower, upper]
|
|
85
|
-
*/
|
|
86
|
-
public static RangeStringToBounds(rangeString: string): number[] {
|
|
87
|
-
if (rangeString) {
|
|
88
|
-
let split: string[] = rangeString.split("-");
|
|
89
|
-
let lowerBound: number = NumberUtils.ParseFloatKeepPrecision(split[0]);
|
|
90
|
-
let upperBound: number = NumberUtils.ParseFloatKeepPrecision(split[1]);
|
|
91
|
-
return [lowerBound, upperBound];
|
|
92
|
-
} else {
|
|
93
|
-
return [];
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Takes given numerical lower and upper bounds, and returns it as a "range string", fit for use to send to the middle-tier. Not to be
|
|
99
|
-
* confused with a between-inclusive search string.
|
|
100
|
-
* @param lowerBound
|
|
101
|
-
* @param upperBound
|
|
102
|
-
* @returns A "range string" representation of given bounds, formatted like '0 - 1000'.
|
|
103
|
-
*/
|
|
104
|
-
public static BoundsToRangeString(lowerBound: number, upperBound: number): string {
|
|
105
|
-
if (!lowerBound && !upperBound) {
|
|
106
|
-
return undefined;
|
|
107
|
-
}
|
|
108
|
-
if (!lowerBound) {
|
|
109
|
-
lowerBound = 0;
|
|
110
|
-
}
|
|
111
|
-
if (!upperBound) {
|
|
112
|
-
upperBound = JAVA_MAX_INT;
|
|
113
|
-
}
|
|
114
|
-
return "" + lowerBound + " - " + upperBound;
|
|
115
|
-
}
|
|
116
|
-
}
|