@pepperi-addons/ngx-lib 0.4.2-storybook.1 → 0.5.0-ng15.1
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/address/address.component.d.ts +1 -1
- package/attachment/attachment.component.d.ts +2 -1
- package/bread-crumbs/bread-crumbs.component.d.ts +1 -1
- package/bread-crumbs/bread-crumbs.model.d.ts +1 -1
- package/button/button.component.d.ts +1 -1
- package/carousel/carousel-item.directive.d.ts +1 -1
- package/carousel/carousel.component.d.ts +1 -1
- package/checkbox/checkbox.component.d.ts +2 -1
- package/chips/chips.component.d.ts +4 -5
- package/chips/chips.component.theme.scss +15 -5
- package/chips/chips.model.d.ts +2 -2
- package/chips/chips.service.d.ts +0 -3
- package/color/color-picker.component.d.ts +1 -1
- package/color/color-picker.component.theme.scss +2 -1
- package/color/color.component.d.ts +1 -1
- package/color/color.model.d.ts +1 -1
- package/core/clipboard/clipboard.directive.d.ts +1 -1
- package/core/common/directives/auto-width.directive.d.ts +1 -1
- package/core/common/directives/base-destroyer.directive.d.ts +10 -0
- package/core/common/directives/button-blur.directive.d.ts +1 -1
- package/core/common/directives/button-loader.directive.d.ts +1 -1
- package/core/common/directives/data-qa.directive.d.ts +1 -1
- package/core/common/directives/div-loader.directive.d.ts +1 -1
- package/core/common/directives/menu-blur.directive.d.ts +1 -1
- package/core/common/directives/prevent-multi-click.directive.d.ts +1 -1
- package/core/common/directives/print.directive.d.ts +1 -1
- package/core/common/directives/public-api.d.ts +1 -0
- package/core/common/pipes/common-pipes.d.ts +5 -2
- package/core/common/services/addon.service.d.ts +6 -4
- package/core/common/services/file.service.d.ts +1 -1
- package/core/common/services/utilities.service.d.ts +4 -4
- package/core/customization/customization.model.d.ts +15 -12
- package/core/customization/customization.service.d.ts +4 -0
- package/core/layout/layout.service.d.ts +1 -1
- package/core/layout/rtl.directive.d.ts +2 -2
- package/core/portal/attach.directive.d.ts +1 -1
- package/core/portal/target.directive.d.ts +1 -1
- package/date/date.component.d.ts +4 -2
- package/dialog/default-dialog.component.d.ts +1 -1
- package/dialog/dialog.component.d.ts +1 -1
- package/dialog/dialog.model.d.ts +2 -2
- package/draggable-items/draggable-item/draggable-item.component.d.ts +16 -2
- package/draggable-items/draggable-items.component.d.ts +4 -7
- package/draggable-items/draggable-items.model.d.ts +2 -2
- package/draggable-items/draggable-items.module.d.ts +4 -3
- package/esm2020/address/address.component.mjs +16 -16
- package/esm2020/address/address.module.mjs +5 -5
- package/esm2020/attachment/attachment.component.mjs +58 -49
- package/esm2020/attachment/attachment.module.mjs +5 -5
- package/esm2020/bread-crumbs/bread-crumbs.component.mjs +15 -15
- package/esm2020/bread-crumbs/bread-crumbs.module.mjs +5 -5
- package/esm2020/button/button.component.mjs +23 -23
- package/esm2020/button/button.module.mjs +5 -5
- package/esm2020/carousel/carousel-item.directive.mjs +9 -9
- package/esm2020/carousel/carousel.component.mjs +52 -52
- package/esm2020/carousel/carousel.module.mjs +5 -5
- package/esm2020/checkbox/checkbox.component.mjs +40 -31
- package/esm2020/checkbox/checkbox.module.mjs +5 -5
- package/esm2020/chips/chips.component.mjs +26 -28
- package/esm2020/chips/chips.module.mjs +5 -5
- package/esm2020/chips/chips.service.mjs +5 -14
- package/esm2020/color/color-picker.component.mjs +5 -5
- package/esm2020/color/color.component.mjs +5 -5
- package/esm2020/color/color.module.mjs +5 -5
- package/esm2020/core/clipboard/clipboard.directive.mjs +4 -4
- package/esm2020/core/clipboard/clipboard.service.mjs +4 -4
- package/esm2020/core/common/directives/auto-width.directive.mjs +4 -4
- package/esm2020/core/common/directives/base-destroyer.directive.mjs +22 -0
- package/esm2020/core/common/directives/button-blur.directive.mjs +4 -4
- package/esm2020/core/common/directives/button-loader.directive.mjs +10 -10
- package/esm2020/core/common/directives/data-qa.directive.mjs +4 -4
- package/esm2020/core/common/directives/div-loader.directive.mjs +4 -4
- package/esm2020/core/common/directives/menu-blur.directive.mjs +4 -4
- package/esm2020/core/common/directives/prevent-multi-click.directive.mjs +4 -4
- package/esm2020/core/common/directives/print.directive.mjs +4 -4
- package/esm2020/core/common/directives/public-api.mjs +2 -1
- package/esm2020/core/common/pipes/common-pipes.mjs +47 -37
- package/esm2020/core/common/pipes/date-ago.pipe.mjs +4 -4
- package/esm2020/core/common/services/addon.service.mjs +36 -12
- package/esm2020/core/common/services/color.service.mjs +4 -4
- package/esm2020/core/common/services/cookie.service.mjs +4 -4
- package/esm2020/core/common/services/data-convertor.service.mjs +6 -6
- package/esm2020/core/common/services/file.service.mjs +4 -4
- package/esm2020/core/common/services/jwt-helper.service.mjs +4 -4
- package/esm2020/core/common/services/session.service.mjs +4 -4
- package/esm2020/core/common/services/translate.service.mjs +4 -4
- package/esm2020/core/common/services/utilities.service.mjs +10 -10
- package/esm2020/core/common/services/validator.service.mjs +4 -4
- package/esm2020/core/common/services/window-scrolling.service.mjs +4 -4
- package/esm2020/core/customization/customization.model.mjs +40 -5
- package/esm2020/core/customization/customization.service.mjs +23 -4
- package/esm2020/core/http/interceptors/error.interceptor.mjs +4 -4
- package/esm2020/core/http/interceptors/loader.interceptor.mjs +4 -4
- package/esm2020/core/http/interceptors/profiler.interceptor.mjs +4 -4
- package/esm2020/core/http/services/http.service.mjs +4 -4
- package/esm2020/core/http/services/loader.service.mjs +10 -10
- package/esm2020/core/layout/layout.service.mjs +12 -12
- package/esm2020/core/layout/rtl.directive.mjs +7 -7
- package/esm2020/core/portal/attach.directive.mjs +4 -4
- package/esm2020/core/portal/portal.service.mjs +4 -4
- package/esm2020/core/portal/target.directive.mjs +4 -4
- package/esm2020/core/scroll-to/scroll-to.service.mjs +4 -4
- package/esm2020/date/date.component.mjs +81 -59
- package/esm2020/date/date.model.mjs +7 -7
- package/esm2020/date/date.module.mjs +5 -5
- package/esm2020/dialog/default-dialog.component.mjs +4 -4
- package/esm2020/dialog/dialog.component.mjs +4 -4
- package/esm2020/dialog/dialog.module.mjs +5 -5
- package/esm2020/dialog/dialog.service.mjs +4 -4
- package/esm2020/draggable-items/draggable-item/draggable-item.component.mjs +46 -6
- package/esm2020/draggable-items/draggable-items.component.mjs +21 -29
- package/esm2020/draggable-items/draggable-items.module.mjs +9 -5
- package/esm2020/field-title/field-title.component.mjs +8 -5
- package/esm2020/field-title/field-title.module.mjs +5 -5
- package/esm2020/files-uploader/files-uploader.component.mjs +12 -12
- package/esm2020/files-uploader/files-uploader.module.mjs +5 -5
- package/esm2020/form/field-generator.component.mjs +5 -5
- package/esm2020/form/form.component.mjs +30 -28
- package/esm2020/form/form.module.mjs +5 -5
- package/esm2020/form/indicators.component.mjs +4 -4
- package/esm2020/form/internal-button.component.mjs +17 -17
- package/esm2020/form/internal-carusel.component.mjs +24 -20
- package/esm2020/form/internal-carusel.service.mjs +4 -4
- package/esm2020/form/internal-field-generator.component.mjs +5 -5
- package/esm2020/form/internal-form.component.mjs +30 -28
- package/esm2020/form/internal-list.component.mjs +7 -7
- package/esm2020/form/internal-menu.component.mjs +6 -8
- package/esm2020/form/internal-page.component.mjs +4 -4
- package/esm2020/form/internal-page.service.mjs +4 -4
- package/esm2020/group-buttons/group-buttons.component.mjs +5 -5
- package/esm2020/group-buttons/group-buttons.module.mjs +5 -5
- package/esm2020/icon/icon-registry.service.mjs +4 -4
- package/esm2020/icon/icon.component.mjs +11 -11
- package/esm2020/icon/icon.module.mjs +5 -5
- package/esm2020/icon/icon.service.mjs +4 -4
- package/esm2020/image/image.component.mjs +52 -43
- package/esm2020/image/image.module.mjs +5 -5
- package/esm2020/image/image.service.mjs +4 -4
- package/esm2020/images-filmstrip/images-filmstrip.component.mjs +26 -25
- package/esm2020/images-filmstrip/images-filmstrip.module.mjs +5 -5
- package/esm2020/link/link.component.mjs +65 -50
- package/esm2020/link/link.module.mjs +5 -5
- package/esm2020/link/link.pipes.mjs +4 -4
- package/esm2020/list/list-actions.component.mjs +6 -6
- package/esm2020/list/list-carousel.component.mjs +20 -20
- package/esm2020/list/list-chooser.component.mjs +6 -6
- package/esm2020/list/list-pager.component.mjs +12 -12
- package/esm2020/list/list-sorting.component.mjs +6 -6
- package/esm2020/list/list-total.component.mjs +9 -6
- package/esm2020/list/list-views.component.mjs +6 -6
- package/esm2020/list/list.component.mjs +151 -72
- package/esm2020/list/list.module.mjs +5 -5
- package/esm2020/list/list.pipes.mjs +7 -7
- package/esm2020/list/virtual-scroller.mjs +58 -58
- package/esm2020/menu/menu-item.component.mjs +5 -5
- package/esm2020/menu/menu.component.mjs +15 -12
- package/esm2020/menu/menu.model.mjs +2 -1
- package/esm2020/menu/menu.module.mjs +5 -5
- package/esm2020/ngx-lib.module.mjs +5 -5
- package/esm2020/page-layout/page-layout.component.mjs +4 -4
- package/esm2020/page-layout/page-layout.module.mjs +5 -5
- package/esm2020/profile-data-views-list/profile-data-view/profile-data-view.component.mjs +4 -4
- package/esm2020/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.mjs +27 -11
- package/esm2020/profile-data-views-list/profile-data-views-list.component.mjs +70 -38
- package/esm2020/profile-data-views-list/profile-data-views-list.model.mjs +1 -1
- package/esm2020/profile-data-views-list/profile-data-views-list.module.mjs +5 -5
- package/esm2020/quantity-selector/quantity-selector-validation.directive.mjs +4 -4
- package/esm2020/quantity-selector/quantity-selector.component.mjs +102 -89
- package/esm2020/quantity-selector/quantity-selector.module.mjs +5 -5
- package/esm2020/quantity-selector/quantity-selector.pipes.mjs +4 -4
- package/esm2020/query-builder/common/model/legacy.mjs +1 -1
- package/esm2020/query-builder/common/model/operator.mjs +72 -62
- package/esm2020/query-builder/common/services/output-query.service.mjs +8 -6
- package/esm2020/query-builder/common/services/query-structure.service.mjs +37 -5
- package/esm2020/query-builder/common/services/type-convertor.service.mjs +10 -10
- package/esm2020/query-builder/query-builder-item/query-builder-item.component.mjs +25 -23
- package/esm2020/query-builder/query-builder-section/query-builder-section.component.mjs +5 -5
- package/esm2020/query-builder/query-builder.component.mjs +19 -19
- package/esm2020/query-builder/query-builder.module.mjs +17 -6
- package/esm2020/query-builder/query-builder.service.mjs +5 -5
- package/esm2020/remote-loader/addon-block-loader.component.mjs +45 -35
- package/esm2020/remote-loader/addon-block-loader.service.mjs +8 -5
- package/esm2020/remote-loader/remote-loader-element.component.mjs +81 -26
- package/esm2020/remote-loader/remote-loader.component.mjs +13 -13
- package/esm2020/remote-loader/remote-loader.model.mjs +1 -1
- package/esm2020/remote-loader/remote-loader.module.mjs +5 -5
- package/esm2020/remote-loader/remote-loader.service.mjs +38 -15
- package/esm2020/rich-html-textarea/rich-html-textarea.component.mjs +52 -36
- package/esm2020/rich-html-textarea/rich-html-textarea.module.mjs +5 -5
- package/esm2020/search/search.component.mjs +35 -35
- package/esm2020/search/search.module.mjs +5 -5
- package/esm2020/select/select.component.mjs +89 -45
- package/esm2020/select/select.module.mjs +5 -5
- package/esm2020/select-panel/select-panel.component.mjs +26 -28
- package/esm2020/select-panel/select-panel.module.mjs +5 -5
- package/esm2020/separator/separator.component.mjs +16 -16
- package/esm2020/separator/separator.module.mjs +5 -5
- package/esm2020/side-bar/side-bar.component.mjs +29 -15
- package/esm2020/side-bar/side-bar.module.mjs +5 -5
- package/esm2020/signature/signature-dialog.component.mjs +4 -4
- package/esm2020/signature/signature.component.mjs +41 -32
- package/esm2020/signature/signature.module.mjs +5 -5
- package/esm2020/size-detector/size-detector.component.mjs +15 -13
- package/esm2020/size-detector/size-detector.module.mjs +5 -5
- package/esm2020/skeleton-loader/public-api.mjs +2 -2
- package/esm2020/skeleton-loader/skeleton-loader.component.mjs +5 -5
- package/esm2020/skeleton-loader/skeleton-loader.module.mjs +5 -5
- package/esm2020/slider/slider.component.mjs +21 -21
- package/esm2020/slider/slider.module.mjs +5 -5
- package/esm2020/smart-filters/boolean-filter/boolean-filter.component.mjs +4 -4
- package/esm2020/smart-filters/common/filter-actions.component.mjs +4 -4
- package/esm2020/smart-filters/common/model/base-filter-component.mjs +28 -34
- package/esm2020/smart-filters/common/model/field.mjs +7 -7
- package/esm2020/smart-filters/common/model/operator.mjs +15 -6
- package/esm2020/smart-filters/common/model/type.mjs +1 -1
- package/esm2020/smart-filters/date-filter/date-filter.component.mjs +4 -4
- package/esm2020/smart-filters/multi-select-filter/multi-select-filter.component.mjs +5 -5
- package/esm2020/smart-filters/number-filter/number-filter.component.mjs +4 -4
- package/esm2020/smart-filters/smart-filters.component.mjs +19 -19
- package/esm2020/smart-filters/smart-filters.module.mjs +5 -5
- package/esm2020/smart-filters/text-filter/text-filter.component.mjs +29 -9
- package/esm2020/snack-bar/default-snack-bar.component.mjs +4 -4
- package/esm2020/snack-bar/snack-bar.component.mjs +4 -4
- package/esm2020/snack-bar/snack-bar.module.mjs +5 -5
- package/esm2020/snack-bar/snack-bar.service.mjs +4 -4
- package/esm2020/textarea/textarea.component.mjs +40 -31
- package/esm2020/textarea/textarea.module.mjs +5 -5
- package/esm2020/textbox/textbox-validation.directive.mjs +5 -5
- package/esm2020/textbox/textbox.component.mjs +171 -115
- package/esm2020/textbox/textbox.module.mjs +5 -5
- package/esm2020/textbox-icon/textbox-icon.component.mjs +4 -4
- package/esm2020/textbox-icon/textbox-icon.module.mjs +5 -5
- package/esm2020/top-bar/top-bar.component.mjs +5 -5
- package/esm2020/top-bar/top-bar.module.mjs +5 -5
- package/fesm2015/pepperi-addons-ngx-lib-address.mjs +19 -19
- package/fesm2015/pepperi-addons-ngx-lib-address.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs +61 -52
- package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.mjs +18 -18
- package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-button.mjs +26 -26
- package/fesm2015/pepperi-addons-ngx-lib-button.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-carousel.mjs +63 -63
- package/fesm2015/pepperi-addons-ngx-lib-carousel.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-checkbox.mjs +43 -34
- package/fesm2015/pepperi-addons-ngx-lib-checkbox.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-chips.mjs +33 -44
- package/fesm2015/pepperi-addons-ngx-lib-chips.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-color.mjs +12 -12
- package/fesm2015/pepperi-addons-ngx-lib-color.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-date.mjs +91 -68
- package/fesm2015/pepperi-addons-ngx-lib-date.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs +13 -13
- package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs +75 -40
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-field-title.mjs +11 -8
- package/fesm2015/pepperi-addons-ngx-lib-field-title.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs +15 -15
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-form.mjs +132 -126
- package/fesm2015/pepperi-addons-ngx-lib-form.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-group-buttons.mjs +8 -8
- package/fesm2015/pepperi-addons-ngx-lib-group-buttons.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-icon.mjs +20 -20
- package/fesm2015/pepperi-addons-ngx-lib-icon.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-image.mjs +58 -49
- package/fesm2015/pepperi-addons-ngx-lib-image.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs +29 -28
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-link.mjs +71 -56
- package/fesm2015/pepperi-addons-ngx-lib-link.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs +276 -192
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-menu.mjs +23 -19
- package/fesm2015/pepperi-addons-ngx-lib-menu.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-page-layout.mjs +7 -7
- package/fesm2015/pepperi-addons-ngx-lib-page-layout.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs +102 -54
- package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs +110 -97
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs +191 -132
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-remote-loader.mjs +197 -108
- package/fesm2015/pepperi-addons-ngx-lib-remote-loader.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.mjs +55 -39
- package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-search.mjs +38 -38
- package/fesm2015/pepperi-addons-ngx-lib-search.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs +29 -31
- package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-select.mjs +92 -48
- package/fesm2015/pepperi-addons-ngx-lib-select.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-separator.mjs +19 -19
- package/fesm2015/pepperi-addons-ngx-lib-separator.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.mjs +32 -18
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-signature.mjs +48 -38
- package/fesm2015/pepperi-addons-ngx-lib-signature.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-size-detector.mjs +18 -16
- package/fesm2015/pepperi-addons-ngx-lib-size-detector.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-skeleton-loader.mjs +9 -9
- package/fesm2015/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-slider.mjs +24 -24
- package/fesm2015/pepperi-addons-ngx-lib-slider.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs +114 -91
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-snack-bar.mjs +13 -13
- package/fesm2015/pepperi-addons-ngx-lib-snack-bar.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-textarea.mjs +43 -34
- package/fesm2015/pepperi-addons-ngx-lib-textarea.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.mjs +7 -7
- package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs +181 -123
- package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs +8 -8
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib.mjs +760 -653
- package/fesm2015/pepperi-addons-ngx-lib.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-address.mjs +19 -19
- package/fesm2020/pepperi-addons-ngx-lib-address.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-attachment.mjs +61 -52
- package/fesm2020/pepperi-addons-ngx-lib-attachment.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-bread-crumbs.mjs +18 -18
- package/fesm2020/pepperi-addons-ngx-lib-bread-crumbs.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-button.mjs +26 -26
- package/fesm2020/pepperi-addons-ngx-lib-button.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-carousel.mjs +63 -63
- package/fesm2020/pepperi-addons-ngx-lib-carousel.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-checkbox.mjs +43 -34
- package/fesm2020/pepperi-addons-ngx-lib-checkbox.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-chips.mjs +33 -44
- package/fesm2020/pepperi-addons-ngx-lib-chips.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-color.mjs +12 -12
- package/fesm2020/pepperi-addons-ngx-lib-color.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-date.mjs +90 -68
- package/fesm2020/pepperi-addons-ngx-lib-date.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-dialog.mjs +13 -13
- package/fesm2020/pepperi-addons-ngx-lib-dialog.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs +74 -39
- package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-field-title.mjs +11 -8
- package/fesm2020/pepperi-addons-ngx-lib-field-title.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs +15 -15
- package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-form.mjs +132 -126
- package/fesm2020/pepperi-addons-ngx-lib-form.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-group-buttons.mjs +8 -8
- package/fesm2020/pepperi-addons-ngx-lib-group-buttons.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-icon.mjs +20 -20
- package/fesm2020/pepperi-addons-ngx-lib-icon.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-image.mjs +58 -49
- package/fesm2020/pepperi-addons-ngx-lib-image.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs +29 -28
- package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-link.mjs +71 -56
- package/fesm2020/pepperi-addons-ngx-lib-link.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs +274 -192
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-menu.mjs +23 -19
- package/fesm2020/pepperi-addons-ngx-lib-menu.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-page-layout.mjs +7 -7
- package/fesm2020/pepperi-addons-ngx-lib-page-layout.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-profile-data-views-list.mjs +102 -54
- package/fesm2020/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs +110 -97
- package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-query-builder.mjs +187 -131
- package/fesm2020/pepperi-addons-ngx-lib-query-builder.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-remote-loader.mjs +184 -93
- package/fesm2020/pepperi-addons-ngx-lib-remote-loader.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-rich-html-textarea.mjs +55 -39
- package/fesm2020/pepperi-addons-ngx-lib-rich-html-textarea.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-search.mjs +38 -38
- package/fesm2020/pepperi-addons-ngx-lib-search.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-select-panel.mjs +29 -31
- package/fesm2020/pepperi-addons-ngx-lib-select-panel.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-select.mjs +92 -48
- package/fesm2020/pepperi-addons-ngx-lib-select.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-separator.mjs +19 -19
- package/fesm2020/pepperi-addons-ngx-lib-separator.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-side-bar.mjs +32 -18
- package/fesm2020/pepperi-addons-ngx-lib-side-bar.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-signature.mjs +47 -38
- package/fesm2020/pepperi-addons-ngx-lib-signature.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-size-detector.mjs +18 -16
- package/fesm2020/pepperi-addons-ngx-lib-size-detector.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs +9 -9
- package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-slider.mjs +24 -24
- package/fesm2020/pepperi-addons-ngx-lib-slider.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-smart-filters.mjs +114 -91
- package/fesm2020/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-snack-bar.mjs +13 -13
- package/fesm2020/pepperi-addons-ngx-lib-snack-bar.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-textarea.mjs +43 -34
- package/fesm2020/pepperi-addons-ngx-lib-textarea.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-textbox-icon.mjs +7 -7
- package/fesm2020/pepperi-addons-ngx-lib-textbox-icon.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-textbox.mjs +179 -123
- package/fesm2020/pepperi-addons-ngx-lib-textbox.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib-top-bar.mjs +8 -8
- package/fesm2020/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -1
- package/fesm2020/pepperi-addons-ngx-lib.mjs +780 -674
- package/fesm2020/pepperi-addons-ngx-lib.mjs.map +1 -1
- package/field-title/field-title.component.d.ts +2 -1
- package/files-uploader/files-uploader.component.d.ts +1 -1
- package/form/field-generator.component.d.ts +1 -1
- package/form/form.component.d.ts +1 -1
- package/form/indicators.component.d.ts +1 -1
- package/form/internal-button.component.d.ts +1 -1
- package/form/internal-carusel.component.d.ts +2 -1
- package/form/internal-field-generator.component.d.ts +1 -1
- package/form/internal-form.component.d.ts +1 -1
- package/form/internal-list.component.d.ts +2 -2
- package/form/internal-menu.component.d.ts +1 -2
- package/form/internal-page.component.d.ts +1 -1
- package/group-buttons/group-buttons.component.d.ts +2 -2
- package/icon/icon-generated.model.d.ts +2 -2
- package/icon/icon.component.d.ts +1 -1
- package/image/image.component.d.ts +2 -1
- package/image/image.component.theme.scss +4 -2
- package/images-filmstrip/images-filmstrip.component.d.ts +1 -1
- package/link/link.component.d.ts +4 -1
- package/list/list-actions.component.d.ts +1 -1
- package/list/list-carousel.component.d.ts +2 -2
- package/list/list-chooser.component.d.ts +1 -1
- package/list/list-pager.component.d.ts +1 -1
- package/list/list-sorting.component.d.ts +1 -1
- package/list/list-total.component.d.ts +2 -1
- package/list/list-views.component.d.ts +2 -2
- package/list/list.component.d.ts +9 -3
- package/list/list.model.d.ts +6 -6
- package/list/virtual-scroller.d.ts +2 -2
- package/menu/menu-item.component.d.ts +1 -1
- package/menu/menu.component.d.ts +2 -1
- package/menu/menu.model.d.ts +4 -3
- package/package.json +1 -1
- package/page-layout/page-layout.component.d.ts +1 -1
- package/profile-data-views-list/profile-data-view/profile-data-view.component.d.ts +4 -4
- package/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.d.ts +5 -4
- package/profile-data-views-list/profile-data-views-list.component.d.ts +13 -10
- package/profile-data-views-list/profile-data-views-list.model.d.ts +8 -0
- package/quantity-selector/quantity-selector-validation.directive.d.ts +1 -1
- package/quantity-selector/quantity-selector.component.d.ts +8 -9
- package/quantity-selector/quantity-selector.component.theme.scss +12 -6
- package/query-builder/common/model/legacy.d.ts +2 -0
- package/query-builder/common/model/operator.d.ts +11 -1
- package/query-builder/common/services/query-structure.service.d.ts +1 -0
- package/query-builder/query-builder-item/query-builder-item.component.d.ts +4 -2
- package/query-builder/query-builder-section/query-builder-section.component.d.ts +1 -1
- package/query-builder/query-builder.component.d.ts +1 -1
- package/query-builder/query-builder.module.d.ts +7 -3
- package/remote-loader/addon-block-loader.component.d.ts +4 -2
- package/remote-loader/remote-loader-element.component.d.ts +9 -2
- package/remote-loader/remote-loader.component.d.ts +1 -1
- package/remote-loader/remote-loader.model.d.ts +3 -2
- package/remote-loader/remote-loader.service.d.ts +2 -0
- package/rich-html-textarea/rich-html-textarea.component.d.ts +4 -1
- package/rich-html-textarea/rich-html-textarea.component.theme.scss +8 -5
- package/search/search.component.d.ts +1 -1
- package/search/search.model.d.ts +4 -4
- package/select/select.component.d.ts +9 -1
- package/select/select.component.theme.scss +22 -11
- package/select-panel/select-panel.component.d.ts +1 -2
- package/select-panel/select-panel.component.theme.scss +0 -2
- package/separator/separator.component.d.ts +1 -1
- package/side-bar/side-bar.component.d.ts +4 -1
- package/side-bar/side-bar.model.d.ts +1 -1
- package/signature/signature-dialog.component.d.ts +2 -2
- package/signature/signature.component.d.ts +2 -1
- package/size-detector/size-detector.component.d.ts +1 -1
- package/skeleton-loader/skeleton-loader.component.d.ts +4 -4
- package/slider/slider.component.d.ts +1 -1
- package/slider/slider.component.theme.scss +15 -5
- package/smart-filters/boolean-filter/boolean-filter.component.d.ts +4 -1
- package/smart-filters/common/filter-actions.component.d.ts +1 -1
- package/smart-filters/common/model/base-filter-component.d.ts +3 -5
- package/smart-filters/common/model/operator.d.ts +3 -0
- package/smart-filters/common/model/type.d.ts +4 -4
- package/smart-filters/date-filter/date-filter.component.d.ts +4 -1
- package/smart-filters/multi-select-filter/multi-select-filter.component.d.ts +4 -1
- package/smart-filters/number-filter/number-filter.component.d.ts +4 -1
- package/smart-filters/smart-filters.component.d.ts +1 -1
- package/smart-filters/text-filter/text-filter.component.d.ts +5 -1
- package/snack-bar/default-snack-bar.component.d.ts +1 -1
- package/snack-bar/snack-bar.component.d.ts +1 -1
- package/src/assets/i18n/ar.ngx-lib.json +180 -0
- package/src/assets/i18n/de.ngx-lib.json +106 -4
- package/src/assets/i18n/en.ngx-lib.json +10 -3
- package/src/assets/i18n/es.ngx-lib.json +113 -11
- package/src/assets/i18n/fr.ngx-lib.json +105 -4
- package/src/assets/i18n/he.ngx-lib.json +105 -4
- package/src/assets/i18n/it.ngx-lib.json +114 -13
- package/src/assets/i18n/ja.ngx-lib.json +105 -4
- package/src/assets/i18n/pl.ngx-lib.json +105 -4
- package/src/assets/i18n/pt.ngx-lib.json +105 -4
- package/src/assets/i18n/sr.ngx-lib.json +180 -0
- package/src/assets/i18n/zh.ngx-lib.json +105 -2
- package/src/core/style/abstracts/mixins.scss +157 -37
- package/src/core/style/abstracts/variables.scss +10 -1
- package/src/core/style/base/Spacing.stories.mdx +22 -22
- package/src/core/style/base/base.scss +219 -117
- package/src/core/style/base/typography.scss +2 -1
- package/src/core/style/components/button.scss +52 -19
- package/src/core/style/components/checkbox.scss +132 -128
- package/src/core/style/components/file.scss +13 -9
- package/src/core/style/components/general.scss +149 -65
- package/src/core/style/components/radio-button.scss +50 -23
- package/src/core/style/components/textarea.scss +69 -30
- package/textarea/textarea.component.d.ts +2 -1
- package/textbox/textbox-validation.directive.d.ts +1 -1
- package/textbox/textbox.component.d.ts +4 -1
- package/textbox-icon/textbox-icon.component.d.ts +1 -1
- package/theming-offline.scss +2 -1
- package/theming.scss +7 -2
- package/top-bar/top-bar.component.d.ts +1 -1
- package/top-bar/top-bar.model.d.ts +1 -1
- package/src/assets/images/sail-away.jpg +0 -0
|
@@ -5,16 +5,15 @@ import * as i3$1 from '@angular/common/http';
|
|
|
5
5
|
import { HttpResponse, HTTP_INTERCEPTORS, HttpHeaders, HttpClientModule } from '@angular/common/http';
|
|
6
6
|
import * as i3 from '@angular/forms';
|
|
7
7
|
import { FormControl, Validators, ReactiveFormsModule, FormBuilder } from '@angular/forms';
|
|
8
|
-
import { throwError, BehaviorSubject, Subject } from 'rxjs';
|
|
9
|
-
import { catchError, filter, distinctUntilChanged, finalize, tap } from 'rxjs/operators';
|
|
8
|
+
import { throwError, BehaviorSubject, Subject, takeUntil } from 'rxjs';
|
|
9
|
+
import { catchError, debounceTime, filter, distinctUntilChanged, finalize, tap } from 'rxjs/operators';
|
|
10
10
|
import * as i1 from '@ngx-translate/core';
|
|
11
11
|
import { TranslateModule } from '@ngx-translate/core';
|
|
12
|
-
import * as i1$1 from '@angular/platform-browser';
|
|
13
12
|
import { coerceNumberProperty, _isNumberValue } from '@angular/cdk/coercion';
|
|
13
|
+
import * as i1$1 from '@angular/platform-browser';
|
|
14
14
|
import { createCustomElement } from '@angular/elements';
|
|
15
15
|
import * as i6 from '@angular/router';
|
|
16
16
|
import { Router } from '@angular/router';
|
|
17
|
-
import { connectRouter } from '@angular-architects/module-federation-tools';
|
|
18
17
|
import { MultiTranslateHttpLoader } from 'ngx-translate-multi-http-loader';
|
|
19
18
|
|
|
20
19
|
// import { ToastrService } from 'ngx-toastr';
|
|
@@ -34,13 +33,18 @@ class PepErrorInterceptor {
|
|
|
34
33
|
}));
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
|
-
PepErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
38
|
-
PepErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
36
|
+
PepErrorInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepErrorInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
37
|
+
PepErrorInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepErrorInterceptor });
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepErrorInterceptor, decorators: [{
|
|
40
39
|
type: Injectable
|
|
41
40
|
}] });
|
|
42
41
|
|
|
43
42
|
class PepLoaderService {
|
|
43
|
+
get onChanged$() {
|
|
44
|
+
return this.showLoaderSubject
|
|
45
|
+
.asObservable()
|
|
46
|
+
.pipe(debounceTime(500), filter(v => v !== undefined), distinctUntilChanged());
|
|
47
|
+
}
|
|
44
48
|
constructor() {
|
|
45
49
|
this.counter = 0;
|
|
46
50
|
this.showLoaderSubject = new BehaviorSubject(undefined);
|
|
@@ -49,11 +53,6 @@ class PepLoaderService {
|
|
|
49
53
|
this.showLoaderChanged(show);
|
|
50
54
|
});
|
|
51
55
|
}
|
|
52
|
-
get onChanged$() {
|
|
53
|
-
return this.showLoaderSubject
|
|
54
|
-
.asObservable()
|
|
55
|
-
.pipe(filter(v => v !== undefined), distinctUntilChanged());
|
|
56
|
-
}
|
|
57
56
|
showLoaderChanged(show) {
|
|
58
57
|
const eventData = {
|
|
59
58
|
detail: {
|
|
@@ -77,9 +76,9 @@ class PepLoaderService {
|
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
|
-
PepLoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
81
|
-
PepLoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
79
|
+
PepLoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
80
|
+
PepLoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderService, providedIn: 'root' });
|
|
81
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderService, decorators: [{
|
|
83
82
|
type: Injectable,
|
|
84
83
|
args: [{
|
|
85
84
|
providedIn: 'root',
|
|
@@ -107,9 +106,9 @@ class PepLoaderInterceptor {
|
|
|
107
106
|
// }));
|
|
108
107
|
}
|
|
109
108
|
}
|
|
110
|
-
PepLoaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
111
|
-
PepLoaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
109
|
+
PepLoaderInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderInterceptor, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
110
|
+
PepLoaderInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderInterceptor });
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLoaderInterceptor, decorators: [{
|
|
113
112
|
type: Injectable
|
|
114
113
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
115
114
|
|
|
@@ -135,9 +134,9 @@ class PepProfilerInterceptor {
|
|
|
135
134
|
}));
|
|
136
135
|
}
|
|
137
136
|
}
|
|
138
|
-
PepProfilerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
139
|
-
PepProfilerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
137
|
+
PepProfilerInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepProfilerInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
138
|
+
PepProfilerInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepProfilerInterceptor });
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepProfilerInterceptor, decorators: [{
|
|
141
140
|
type: Injectable
|
|
142
141
|
}] });
|
|
143
142
|
|
|
@@ -164,9 +163,9 @@ const httpInterceptorProviders = [
|
|
|
164
163
|
// will be copied to the ClipboardService and a (clipboardCopy) event will be emitted.
|
|
165
164
|
class PepClipboardDirective {
|
|
166
165
|
}
|
|
167
|
-
PepClipboardDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
168
|
-
PepClipboardDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
166
|
+
PepClipboardDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
167
|
+
PepClipboardDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepClipboardDirective, selector: "[pepClipboard]", inputs: { value: ["clipboard", "value"] }, outputs: { copyEvent: "clipboardCopy", errorEvent: "clipboardError" }, host: { listeners: { "click": "copyToClipboard()" } }, ngImport: i0 });
|
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardDirective, decorators: [{
|
|
170
169
|
type: Directive,
|
|
171
170
|
args: [{
|
|
172
171
|
selector: '[pepClipboard]',
|
|
@@ -212,6 +211,14 @@ var PepScreenSizeType;
|
|
|
212
211
|
})(PepScreenSizeType || (PepScreenSizeType = {}));
|
|
213
212
|
// export type PepScreenSizeType = 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
|
214
213
|
class PepLayoutService {
|
|
214
|
+
get onResize$() {
|
|
215
|
+
return this.resizeSubject.asObservable().pipe(distinctUntilChanged());
|
|
216
|
+
}
|
|
217
|
+
get onMouseOver$() {
|
|
218
|
+
return this.deviceHasMouseSubject
|
|
219
|
+
.asObservable()
|
|
220
|
+
.pipe(distinctUntilChanged());
|
|
221
|
+
}
|
|
215
222
|
constructor(translate = null) {
|
|
216
223
|
this.translate = translate;
|
|
217
224
|
this.documentMouseoverListener = (event) => {
|
|
@@ -224,14 +231,6 @@ class PepLayoutService {
|
|
|
224
231
|
document.addEventListener('mouseover', this.documentMouseoverListener, false);
|
|
225
232
|
// document.addEventListener('touchstart', this._documentTouchstartListener, false);
|
|
226
233
|
}
|
|
227
|
-
get onResize$() {
|
|
228
|
-
return this.resizeSubject.asObservable().pipe(distinctUntilChanged());
|
|
229
|
-
}
|
|
230
|
-
get onMouseOver$() {
|
|
231
|
-
return this.deviceHasMouseSubject
|
|
232
|
-
.asObservable()
|
|
233
|
-
.pipe(distinctUntilChanged());
|
|
234
|
-
}
|
|
235
234
|
// private _documentTouchstartListener = (event: TouchEvent) => {
|
|
236
235
|
// debugger;
|
|
237
236
|
// this.isTouchDevice = true;
|
|
@@ -330,9 +329,9 @@ class PepLayoutService {
|
|
|
330
329
|
return isRtl;
|
|
331
330
|
}
|
|
332
331
|
}
|
|
333
|
-
PepLayoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
334
|
-
PepLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
332
|
+
PepLayoutService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLayoutService, deps: [{ token: i1.TranslateService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
333
|
+
PepLayoutService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLayoutService, providedIn: 'root' });
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepLayoutService, decorators: [{
|
|
336
335
|
type: Injectable,
|
|
337
336
|
args: [{
|
|
338
337
|
providedIn: 'root',
|
|
@@ -354,9 +353,9 @@ class PepRtlClassDirective {
|
|
|
354
353
|
}
|
|
355
354
|
}
|
|
356
355
|
}
|
|
357
|
-
PepRtlClassDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
358
|
-
PepRtlClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
356
|
+
PepRtlClassDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepRtlClassDirective, deps: [{ token: PepLayoutService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
357
|
+
PepRtlClassDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepRtlClassDirective, selector: "[pepRtlClass]", ngImport: i0 });
|
|
358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepRtlClassDirective, decorators: [{
|
|
360
359
|
type: Directive,
|
|
361
360
|
args: [{
|
|
362
361
|
selector: '[pepRtlClass]',
|
|
@@ -373,184 +372,489 @@ class PepRtlDirectionDirective {
|
|
|
373
372
|
this.renderer.setAttribute(this.element.nativeElement, 'dir', isRtl ? 'rtl' : 'ltr');
|
|
374
373
|
}
|
|
375
374
|
}
|
|
376
|
-
PepRtlDirectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
377
|
-
PepRtlDirectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
375
|
+
PepRtlDirectionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepRtlDirectionDirective, deps: [{ token: PepLayoutService }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
376
|
+
PepRtlDirectionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepRtlDirectionDirective, selector: "[pepRtlDirection]", ngImport: i0 });
|
|
377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepRtlDirectionDirective, decorators: [{
|
|
379
378
|
type: Directive,
|
|
380
379
|
args: [{
|
|
381
380
|
selector: '[pepRtlDirection]',
|
|
382
381
|
}]
|
|
383
382
|
}], ctorParameters: function () { return [{ type: PepLayoutService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; } });
|
|
384
383
|
|
|
385
|
-
class
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
384
|
+
class PepUtilitiesService {
|
|
385
|
+
constructor(translate = null) {
|
|
386
|
+
this.translate = translate;
|
|
387
|
+
this.culture = 'en-US';
|
|
388
|
+
this.culture = this.translate?.getBrowserCultureLang() || 'en-US';
|
|
389
|
+
// try {
|
|
390
|
+
// import(`@angular/common/locales/global/${this.culture}`);
|
|
391
|
+
// } catch {}
|
|
391
392
|
}
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}] });
|
|
399
|
-
class PepEncodePipe {
|
|
400
|
-
transform(value) {
|
|
401
|
-
if (value) {
|
|
402
|
-
const v = btoa(value);
|
|
403
|
-
return v;
|
|
393
|
+
prepareNumberToFormat(value, fallbackValue = 0) {
|
|
394
|
+
// If the decimal separator is ',' change it to '.'
|
|
395
|
+
if (value?.length > 0) {
|
|
396
|
+
// If the decimal separator is ',' change it to '.' for let the formatting works.
|
|
397
|
+
value = this.changeDecimalSeparatorWhenItsComma(value);
|
|
398
|
+
// console.log('coerceNumberProperty after change decimal separator value is', value);
|
|
404
399
|
}
|
|
405
|
-
return value;
|
|
400
|
+
return coerceNumberProperty(value, fallbackValue);
|
|
406
401
|
}
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
args: [{ name: 'pepEncode' }]
|
|
413
|
-
}] });
|
|
414
|
-
class PepEscapePipe {
|
|
415
|
-
transform(value) {
|
|
416
|
-
if (value) {
|
|
417
|
-
const v = escape(value);
|
|
418
|
-
return v;
|
|
402
|
+
// adapted from https://github.com/sindresorhus/parse-ms.
|
|
403
|
+
// moved to internal function because parse-ms is now pure ESM.
|
|
404
|
+
parseMs(milliseconds) {
|
|
405
|
+
if (typeof milliseconds !== 'number') {
|
|
406
|
+
throw new TypeError('Expected a number');
|
|
419
407
|
}
|
|
420
|
-
return
|
|
408
|
+
return {
|
|
409
|
+
days: Math.trunc(milliseconds / 86400000),
|
|
410
|
+
hours: Math.trunc(milliseconds / 3600000) % 24,
|
|
411
|
+
minutes: Math.trunc(milliseconds / 60000) % 60,
|
|
412
|
+
seconds: Math.trunc(milliseconds / 1000) % 60,
|
|
413
|
+
milliseconds: Math.trunc(milliseconds) % 1000
|
|
414
|
+
};
|
|
421
415
|
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
return newValue;
|
|
416
|
+
// adapted from https://github.com/rafaelrinaldi/add-zero.
|
|
417
|
+
// moved to internal function b/c addZero is unmaintained (7+ years).
|
|
418
|
+
// stripped out negative sign logic since we're already doing it elsewhere.
|
|
419
|
+
addZero(value, digits = 2) {
|
|
420
|
+
digits = digits || 2;
|
|
421
|
+
let str = value.toString();
|
|
422
|
+
let size = 0;
|
|
423
|
+
size = digits - str.length + 1;
|
|
424
|
+
str = new Array(size).join('0').concat(str);
|
|
425
|
+
return str;
|
|
433
426
|
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
value = new Date(value);
|
|
445
|
-
if (value) {
|
|
446
|
-
res = value.toLocaleDateString(culture || 'en-US');
|
|
447
|
-
if (showTime) {
|
|
448
|
-
res +=
|
|
449
|
-
' ' +
|
|
450
|
-
value.toLocaleTimeString(culture || 'en-US', {
|
|
451
|
-
hour: '2-digit',
|
|
452
|
-
minute: '2-digit',
|
|
453
|
-
});
|
|
454
|
-
}
|
|
427
|
+
isCurrencyShouldBeOnRight(currencySymbol) {
|
|
428
|
+
let res = false;
|
|
429
|
+
if (currencySymbol == "€" ||
|
|
430
|
+
currencySymbol == "₪" ||
|
|
431
|
+
currencySymbol == "Ft" ||
|
|
432
|
+
currencySymbol == "Kč" ||
|
|
433
|
+
currencySymbol == "руб" ||
|
|
434
|
+
currencySymbol == "zł" ||
|
|
435
|
+
currencySymbol == "kr.") {
|
|
436
|
+
res = true;
|
|
455
437
|
}
|
|
456
438
|
return res;
|
|
457
439
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
const tmpDate = new Date(value);
|
|
469
|
-
if (value) {
|
|
470
|
-
res = tmpDate.toLocaleDateString(culture || 'en-US');
|
|
471
|
-
if (showTime) {
|
|
472
|
-
res += ' ' + tmpDate.toLocaleTimeString(culture || 'en-US');
|
|
473
|
-
}
|
|
440
|
+
cutValueByFractionDigits(value, maxFractionDigits) {
|
|
441
|
+
let res = value;
|
|
442
|
+
maxFractionDigits = maxFractionDigits || 2;
|
|
443
|
+
const decimalSeparator = this.getDecimalSeparator();
|
|
444
|
+
if (value.includes(decimalSeparator)) {
|
|
445
|
+
const valueArr = value.split(decimalSeparator);
|
|
446
|
+
// if (valueArr[1].length < maxFractionDigits) {
|
|
447
|
+
valueArr[1] = valueArr[1].padEnd(maxFractionDigits, '0');
|
|
448
|
+
// }
|
|
449
|
+
res = `${valueArr[0]}${decimalSeparator}${valueArr[1].slice(0, maxFractionDigits)}`;
|
|
474
450
|
}
|
|
475
451
|
return res;
|
|
476
452
|
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
453
|
+
parseDate(dateStr, isDateTime = false) {
|
|
454
|
+
let retVal = null;
|
|
455
|
+
if (dateStr !== '') {
|
|
456
|
+
retVal = new Date(dateStr);
|
|
457
|
+
// Convert to date with no offset.
|
|
458
|
+
if (!isDateTime) {
|
|
459
|
+
const index = dateStr.indexOf('T');
|
|
460
|
+
if (index > 0) {
|
|
461
|
+
dateStr = dateStr.substring(0, index);
|
|
462
|
+
}
|
|
463
|
+
const dateText = dateStr.split('-');
|
|
464
|
+
if (dateText.length === 3) {
|
|
465
|
+
const year = Number(dateText[0]);
|
|
466
|
+
const month = Number(dateText[1]) - 1;
|
|
467
|
+
const day = Number(dateText[2]);
|
|
468
|
+
retVal = new Date(year, month, day, 0, retVal.getTimezoneOffset() * -1);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
else {
|
|
472
|
+
retVal = new Date(retVal.getFullYear(), retVal.getMonth(), retVal.getDate(), retVal.getHours(), retVal.getMinutes() + retVal.getTimezoneOffset() * -1, retVal.getSeconds());
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
if (retVal && isNaN(retVal.getTime())) {
|
|
476
|
+
retVal = null;
|
|
477
|
+
}
|
|
478
|
+
return retVal;
|
|
501
479
|
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
return
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
throw new Error(`Invalid safe type specified: ${type}`);
|
|
480
|
+
stringifyDate(date, isDateTime = false) {
|
|
481
|
+
if (date) {
|
|
482
|
+
if (isDateTime) {
|
|
483
|
+
return date.toISOString(); // include - offset
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
const dateText = [];
|
|
487
|
+
dateText.push(date.getFullYear(), '-', date.getMonth() + 1, '-', date.getDate());
|
|
488
|
+
return dateText.join('');
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
return '';
|
|
516
493
|
}
|
|
517
494
|
}
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
args: [{ name: 'pepSafe' }]
|
|
524
|
-
}], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
|
|
525
|
-
class PepSplitUppercasePipe {
|
|
526
|
-
transform(value) {
|
|
527
|
-
const newValue = value.replace(/([a-z])([A-Z])/g, '$1 $2');
|
|
528
|
-
return newValue;
|
|
495
|
+
isValueHtml(value) {
|
|
496
|
+
let res = false;
|
|
497
|
+
const REGEXP = /<\/?[a-z][\s\S]*>/i;
|
|
498
|
+
res = REGEXP.test(value);
|
|
499
|
+
return res;
|
|
529
500
|
}
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
transform(value) {
|
|
539
|
-
return parseInt(value);
|
|
501
|
+
isJsonString(str) {
|
|
502
|
+
try {
|
|
503
|
+
JSON.parse(str);
|
|
504
|
+
}
|
|
505
|
+
catch (e) {
|
|
506
|
+
return false;
|
|
507
|
+
}
|
|
508
|
+
return true;
|
|
540
509
|
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
constructor(translateService) {
|
|
551
|
-
this.translateService = translateService;
|
|
510
|
+
getSvgElementFromString(document, svgContent) {
|
|
511
|
+
const div = document.createElement('DIV');
|
|
512
|
+
// div.className = 'svg-icon';
|
|
513
|
+
// Add class svg-icon
|
|
514
|
+
if (svgContent?.length > 0) {
|
|
515
|
+
div.innerHTML = svgContent.replace('<svg ', '<svg class="svg-icon" ');
|
|
516
|
+
}
|
|
517
|
+
return (div.querySelector('svg') ||
|
|
518
|
+
document.createElementNS('http://www.w3.org/2000/svg', 'path'));
|
|
552
519
|
}
|
|
553
|
-
|
|
520
|
+
// formatPercent(value: any, digitsInfo = '1.0-2') {
|
|
521
|
+
formatPercent(value, minFractionDigits = 0, maxFractionDigits = 2) {
|
|
522
|
+
minFractionDigits = coerceNumberProperty(minFractionDigits, null);
|
|
523
|
+
maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
|
|
524
|
+
value = this.cutValueByFractionDigits(value?.toString(), Math.max(minFractionDigits, maxFractionDigits));
|
|
525
|
+
const number = this.prepareNumberToFormat(value);
|
|
526
|
+
if (number === 0) {
|
|
527
|
+
return '0%';
|
|
528
|
+
}
|
|
529
|
+
else {
|
|
530
|
+
// return formatPercent(number / 100, this.culture, digitsInfo);
|
|
531
|
+
return new Intl.NumberFormat(this.culture, {
|
|
532
|
+
style: 'percent',
|
|
533
|
+
minimumFractionDigits: minFractionDigits || 0,
|
|
534
|
+
maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
|
|
535
|
+
}).format(number / 100);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
// formatCurrency(value: any, currencySign = '', digitsInfo = '1.2-2') {
|
|
539
|
+
formatCurrency(value, currencySign = '', minFractionDigits = 2, maxFractionDigits = 2, useGrouping = true) {
|
|
540
|
+
minFractionDigits = coerceNumberProperty(minFractionDigits, null);
|
|
541
|
+
maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
|
|
542
|
+
let res = '';
|
|
543
|
+
// If the decimal separator is the last digit
|
|
544
|
+
// if (value.length > 0 && value.indexOf(this.getDecimalSeparator()) === value.length -1) {
|
|
545
|
+
// res = value;
|
|
546
|
+
// } else {
|
|
547
|
+
value = this.cutValueByFractionDigits(value?.toString(), Math.max(minFractionDigits, maxFractionDigits));
|
|
548
|
+
const number = this.prepareNumberToFormat(value);
|
|
549
|
+
const styleOptions = {
|
|
550
|
+
// style: 'currency',
|
|
551
|
+
// currencySign: currencySign,
|
|
552
|
+
useGrouping: useGrouping,
|
|
553
|
+
minimumFractionDigits: minFractionDigits || Math.min(2, maxFractionDigits || 2),
|
|
554
|
+
maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
|
|
555
|
+
};
|
|
556
|
+
if (number === 0) {
|
|
557
|
+
// return formatCurrency(0, this.culture, currencySign, undefined, digitsInfo);
|
|
558
|
+
res = new Intl.NumberFormat(this.culture, styleOptions).format(0);
|
|
559
|
+
}
|
|
560
|
+
else {
|
|
561
|
+
// return formatCurrency(value, this.culture, currencySign, undefined, digitsInfo);
|
|
562
|
+
res = new Intl.NumberFormat(this.culture, styleOptions).format(number);
|
|
563
|
+
}
|
|
564
|
+
if (currencySign.length > 0) {
|
|
565
|
+
res = this.isCurrencyShouldBeOnRight(currencySign) ? `${res} ${currencySign}` : `${currencySign} ${res}`;
|
|
566
|
+
}
|
|
567
|
+
// }
|
|
568
|
+
return res;
|
|
569
|
+
}
|
|
570
|
+
// formatDecimal(value: any, digitsInfo = '1.2-2') {
|
|
571
|
+
formatDecimal(value, minFractionDigits = 2, maxFractionDigits = 2, useGrouping = true) {
|
|
572
|
+
minFractionDigits = coerceNumberProperty(minFractionDigits, null);
|
|
573
|
+
// console.log('formatDecimal minFractionDigits value is', minFractionDigits);
|
|
574
|
+
maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
|
|
575
|
+
// console.log('formatDecimal minFractionDigits value is', maxFractionDigits);
|
|
576
|
+
value = this.cutValueByFractionDigits(value?.toString(), Math.max(minFractionDigits, maxFractionDigits));
|
|
577
|
+
const number = this.prepareNumberToFormat(value);
|
|
578
|
+
// console.log('number value is', number);
|
|
579
|
+
if (number === 0) {
|
|
580
|
+
return '0';
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
// return formatNumber(value, this.culture, digitsInfo);
|
|
584
|
+
const res = new Intl.NumberFormat(this.culture, {
|
|
585
|
+
useGrouping: useGrouping,
|
|
586
|
+
minimumFractionDigits: minFractionDigits || Math.min(2, maxFractionDigits || 2),
|
|
587
|
+
maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
|
|
588
|
+
}).format(number);
|
|
589
|
+
// console.log('Intl.NumberFormat value is', res);
|
|
590
|
+
return res;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
// formatNumber(value: any, digitsInfo = '1.0-0'): string {
|
|
594
|
+
formatNumber(value, useGrouping = true) {
|
|
595
|
+
const number = this.prepareNumberToFormat(value);
|
|
596
|
+
if (number === 0) {
|
|
597
|
+
return '0';
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
// return formatNumber(value, this.culture, digitsInfo);
|
|
601
|
+
return new Intl.NumberFormat(this.culture, {
|
|
602
|
+
useGrouping: useGrouping,
|
|
603
|
+
minimumFractionDigits: 0,
|
|
604
|
+
maximumFractionDigits: 0,
|
|
605
|
+
}).format(number);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Convert a number in milliseconds to a standard duration string.
|
|
610
|
+
* @param {number} value - duration in milliseconds
|
|
611
|
+
* @param {object} remoteLoaderOptions - formatDuration options object
|
|
612
|
+
* @param {boolean} [remoteLoaderOptions.leading=false] - add leading zero
|
|
613
|
+
* @returns string - formatted duration string
|
|
614
|
+
*/
|
|
615
|
+
formatDuration(value, options = {}) {
|
|
616
|
+
const isNumber = _isNumberValue(value);
|
|
617
|
+
if (!isNumber) {
|
|
618
|
+
return value;
|
|
619
|
+
}
|
|
620
|
+
else {
|
|
621
|
+
let number = this.prepareNumberToFormat(value);
|
|
622
|
+
const leading = options?.leading || true;
|
|
623
|
+
const duration = options?.duration || 'milliseconds';
|
|
624
|
+
if (duration === 'seconds') {
|
|
625
|
+
number = number * 1000;
|
|
626
|
+
}
|
|
627
|
+
const unsignedMs = number < 0 ? -number : number;
|
|
628
|
+
const sign = number <= -1000 ? '-' : '';
|
|
629
|
+
const t = this.parseMs(unsignedMs);
|
|
630
|
+
const seconds = this.addZero(t.seconds);
|
|
631
|
+
if (t.days) {
|
|
632
|
+
return sign + t.days + ':' + this.addZero(t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
|
|
633
|
+
}
|
|
634
|
+
if (t.hours) {
|
|
635
|
+
return sign + (leading ? this.addZero(t.hours) : t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
|
|
636
|
+
}
|
|
637
|
+
return sign + (leading ? this.addZero(t.minutes) : t.minutes) + ':' + seconds;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
incrementNumber(value) {
|
|
641
|
+
let numberValue = coerceNumberProperty(value, 0);
|
|
642
|
+
return (++numberValue).toString();
|
|
643
|
+
}
|
|
644
|
+
decrementNumber(value) {
|
|
645
|
+
let numberValue = coerceNumberProperty(value, 0);
|
|
646
|
+
return (--numberValue).toString();
|
|
647
|
+
}
|
|
648
|
+
getDecimalSeparator() {
|
|
649
|
+
const numberWithDecimalSeparator = 1.1;
|
|
650
|
+
return numberWithDecimalSeparator
|
|
651
|
+
.toLocaleString(this.culture)
|
|
652
|
+
.substring(1, 2);
|
|
653
|
+
}
|
|
654
|
+
changeDecimalSeparatorWhenItsComma(value, reverse = false) {
|
|
655
|
+
// If the decimal separator is ','
|
|
656
|
+
if (this.getDecimalSeparator() === ',') {
|
|
657
|
+
// In case that the value isn't string.
|
|
658
|
+
value = value?.toString() || '';
|
|
659
|
+
// If reverse change the number from '.' to ',' else do the opposite.
|
|
660
|
+
value = reverse ? value.replace('.', ',') : value.replace(',', '.');
|
|
661
|
+
}
|
|
662
|
+
return value;
|
|
663
|
+
}
|
|
664
|
+
isEqualNumber(numberAsString, numberAsString2) {
|
|
665
|
+
const number = this.prepareNumberToFormat(numberAsString);
|
|
666
|
+
const number2 = this.prepareNumberToFormat(numberAsString2);
|
|
667
|
+
return number === number2;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
PepUtilitiesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepUtilitiesService, deps: [{ token: i1.TranslateService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
671
|
+
PepUtilitiesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepUtilitiesService, providedIn: 'root' });
|
|
672
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepUtilitiesService, decorators: [{
|
|
673
|
+
type: Injectable,
|
|
674
|
+
args: [{
|
|
675
|
+
providedIn: 'root',
|
|
676
|
+
}]
|
|
677
|
+
}], ctorParameters: function () { return [{ type: i1.TranslateService, decorators: [{
|
|
678
|
+
type: Optional
|
|
679
|
+
}] }]; } });
|
|
680
|
+
|
|
681
|
+
class PepCapitalizePipe {
|
|
682
|
+
transform(value) {
|
|
683
|
+
if (value) {
|
|
684
|
+
return value.charAt(0).toUpperCase() + value.slice(1);
|
|
685
|
+
}
|
|
686
|
+
return value;
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
PepCapitalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
690
|
+
PepCapitalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepCapitalizePipe, name: "pepCapitalize" });
|
|
691
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCapitalizePipe, decorators: [{
|
|
692
|
+
type: Pipe,
|
|
693
|
+
args: [{ name: 'pepCapitalize' }]
|
|
694
|
+
}] });
|
|
695
|
+
class PepEncodePipe {
|
|
696
|
+
transform(value) {
|
|
697
|
+
if (value) {
|
|
698
|
+
const v = btoa(value);
|
|
699
|
+
return v;
|
|
700
|
+
}
|
|
701
|
+
return value;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
PepEncodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEncodePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
705
|
+
PepEncodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepEncodePipe, name: "pepEncode" });
|
|
706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEncodePipe, decorators: [{
|
|
707
|
+
type: Pipe,
|
|
708
|
+
args: [{ name: 'pepEncode' }]
|
|
709
|
+
}] });
|
|
710
|
+
class PepEscapePipe {
|
|
711
|
+
transform(value) {
|
|
712
|
+
if (value) {
|
|
713
|
+
const v = escape(value);
|
|
714
|
+
return v;
|
|
715
|
+
}
|
|
716
|
+
return value;
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
PepEscapePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEscapePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
720
|
+
PepEscapePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepEscapePipe, name: "pepEscape" });
|
|
721
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepEscapePipe, decorators: [{
|
|
722
|
+
type: Pipe,
|
|
723
|
+
args: [{ name: 'pepEscape' }]
|
|
724
|
+
}] });
|
|
725
|
+
class PepReplaceLineBreaksPipe {
|
|
726
|
+
transform(value) {
|
|
727
|
+
const newValue = value.replace(/(<br\ ?\/?>)/g, ' ');
|
|
728
|
+
return newValue;
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
PepReplaceLineBreaksPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepReplaceLineBreaksPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
732
|
+
PepReplaceLineBreaksPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepReplaceLineBreaksPipe, name: "pepReplaceLineBreaks" });
|
|
733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepReplaceLineBreaksPipe, decorators: [{
|
|
734
|
+
type: Pipe,
|
|
735
|
+
args: [{ name: 'pepReplaceLineBreaks' }]
|
|
736
|
+
}] });
|
|
737
|
+
class PepDateFormatterPipe {
|
|
738
|
+
transform(value, culture, isDateTime = false) {
|
|
739
|
+
let res = '';
|
|
740
|
+
value = new Date(value);
|
|
741
|
+
if (value) {
|
|
742
|
+
res = value.toLocaleDateString(culture || 'en-US');
|
|
743
|
+
if (isDateTime) {
|
|
744
|
+
res +=
|
|
745
|
+
' ' +
|
|
746
|
+
value.toLocaleTimeString(culture || 'en-US', {
|
|
747
|
+
hour: '2-digit',
|
|
748
|
+
minute: '2-digit',
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
return res;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
PepDateFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
756
|
+
PepDateFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepDateFormatterPipe, name: "pepDateFormatter" });
|
|
757
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateFormatterPipe, decorators: [{
|
|
758
|
+
type: Pipe,
|
|
759
|
+
args: [{ name: 'pepDateFormatter' }]
|
|
760
|
+
}] });
|
|
761
|
+
class PepDateStringFormatterPipe {
|
|
762
|
+
transform(value, culture, isDateTime = false) {
|
|
763
|
+
let res = '';
|
|
764
|
+
const tmpDate = new Date(value);
|
|
765
|
+
if (value) {
|
|
766
|
+
res = tmpDate.toLocaleDateString(culture || 'en-US');
|
|
767
|
+
if (isDateTime) {
|
|
768
|
+
res += ' ' + tmpDate.toLocaleTimeString(culture || 'en-US');
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
return res;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
PepDateStringFormatterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateStringFormatterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
775
|
+
PepDateStringFormatterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepDateStringFormatterPipe, name: "pepDateStringFormatter" });
|
|
776
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateStringFormatterPipe, decorators: [{
|
|
777
|
+
type: Pipe,
|
|
778
|
+
args: [{ name: 'pepDateStringFormatter' }]
|
|
779
|
+
}] });
|
|
780
|
+
class PepSafeHtmlPipe {
|
|
781
|
+
constructor(sanitizer) {
|
|
782
|
+
this.sanitizer = sanitizer;
|
|
783
|
+
}
|
|
784
|
+
transform(html) {
|
|
785
|
+
return this.sanitizer.bypassSecurityTrustHtml(html);
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
PepSafeHtmlPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSafeHtmlPipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
789
|
+
PepSafeHtmlPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepSafeHtmlPipe, name: "pepSafeHtml" });
|
|
790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSafeHtmlPipe, decorators: [{
|
|
791
|
+
type: Pipe,
|
|
792
|
+
args: [{ name: 'pepSafeHtml' }]
|
|
793
|
+
}], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
|
|
794
|
+
class PepSafePipe {
|
|
795
|
+
constructor(sanitizer) {
|
|
796
|
+
this.sanitizer = sanitizer;
|
|
797
|
+
}
|
|
798
|
+
transform(value, type) {
|
|
799
|
+
switch (type) {
|
|
800
|
+
case 'html':
|
|
801
|
+
return this.sanitizer.bypassSecurityTrustHtml(value);
|
|
802
|
+
case 'style':
|
|
803
|
+
return this.sanitizer.bypassSecurityTrustStyle(value);
|
|
804
|
+
case 'script':
|
|
805
|
+
return this.sanitizer.bypassSecurityTrustScript(value);
|
|
806
|
+
case 'url':
|
|
807
|
+
return this.sanitizer.bypassSecurityTrustUrl(value);
|
|
808
|
+
case 'resourceUrl':
|
|
809
|
+
return this.sanitizer.bypassSecurityTrustResourceUrl(value);
|
|
810
|
+
default:
|
|
811
|
+
throw new Error(`Invalid safe type specified: ${type}`);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
PepSafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSafePipe, deps: [{ token: i1$1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
816
|
+
PepSafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepSafePipe, name: "pepSafe" });
|
|
817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSafePipe, decorators: [{
|
|
818
|
+
type: Pipe,
|
|
819
|
+
args: [{ name: 'pepSafe' }]
|
|
820
|
+
}], ctorParameters: function () { return [{ type: i1$1.DomSanitizer }]; } });
|
|
821
|
+
class PepSplitUppercasePipe {
|
|
822
|
+
transform(value) {
|
|
823
|
+
const newValue = value.replace(/([a-z])([A-Z])/g, '$1 $2');
|
|
824
|
+
return newValue;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
PepSplitUppercasePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSplitUppercasePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
828
|
+
PepSplitUppercasePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepSplitUppercasePipe, name: "pepSplitUppercase" });
|
|
829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSplitUppercasePipe, decorators: [{
|
|
830
|
+
type: Pipe,
|
|
831
|
+
args: [{ name: 'pepSplitUppercase' }]
|
|
832
|
+
}] });
|
|
833
|
+
class PepToNumberPipe {
|
|
834
|
+
constructor(utilitiesService) {
|
|
835
|
+
this.utilitiesService = utilitiesService;
|
|
836
|
+
}
|
|
837
|
+
transform(value) {
|
|
838
|
+
const decimalSeparator = this.utilitiesService.getDecimalSeparator();
|
|
839
|
+
// We need to remove the thousands separator so - If the decimal separator is '.' we need to remove the ',' from the value else we remove the '.'.
|
|
840
|
+
value = decimalSeparator === '.' ? value.replace(/,/g, '') : value.replace(/./g, '');
|
|
841
|
+
const numberValue = coerceNumberProperty(value);
|
|
842
|
+
return numberValue;
|
|
843
|
+
// return parseInt(value);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
PepToNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepToNumberPipe, deps: [{ token: PepUtilitiesService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
847
|
+
PepToNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepToNumberPipe, name: "pepToNumber" });
|
|
848
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepToNumberPipe, decorators: [{
|
|
849
|
+
type: Pipe,
|
|
850
|
+
args: [{ name: 'pepToNumber' }]
|
|
851
|
+
}], ctorParameters: function () { return [{ type: PepUtilitiesService }]; } });
|
|
852
|
+
|
|
853
|
+
class DateAgoPipe {
|
|
854
|
+
constructor(translateService) {
|
|
855
|
+
this.translateService = translateService;
|
|
856
|
+
}
|
|
857
|
+
getCounterTranslation(counter, key) {
|
|
554
858
|
const intervalText = this.translateService.get(`DATE_AGO.${key.toUpperCase()}`) || key;
|
|
555
859
|
const agoText = this.translateService.get(counter === 1 ? 'DATE_AGO.SINGULAR' : 'DATE_AGO.PLURAL') || counter === 1 ? ' ago' : 's ago';
|
|
556
860
|
return `${intervalText}${agoText}`;
|
|
@@ -575,415 +879,124 @@ class DateAgoPipe {
|
|
|
575
879
|
if (counter > 0) {
|
|
576
880
|
this.getCounterTranslation(counter, i);
|
|
577
881
|
}
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
return value;
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
DateAgoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DateAgoPipe, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
584
|
-
DateAgoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: DateAgoPipe, name: "dateAgo" });
|
|
585
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: DateAgoPipe, decorators: [{
|
|
586
|
-
type: Pipe,
|
|
587
|
-
args: [{
|
|
588
|
-
name: 'dateAgo'
|
|
589
|
-
}]
|
|
590
|
-
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; } });
|
|
591
|
-
|
|
592
|
-
class PepInputAutoWidthDirective {
|
|
593
|
-
constructor(renderer, el) {
|
|
594
|
-
this.renderer = renderer;
|
|
595
|
-
this.el = el;
|
|
596
|
-
this.includePadding = true;
|
|
597
|
-
this.input = null;
|
|
598
|
-
}
|
|
599
|
-
ngAfterViewInit() {
|
|
600
|
-
if (this.el.nativeElement.tagName.toLowerCase() === 'input') {
|
|
601
|
-
this.input = this.el;
|
|
602
|
-
}
|
|
603
|
-
else {
|
|
604
|
-
const list = this.el.nativeElement.querySelectorAll('input');
|
|
605
|
-
this.input = list.length > 0 ? list[0] : null;
|
|
606
|
-
}
|
|
607
|
-
if (this.input) {
|
|
608
|
-
this.input.addEventListener('blur', this.setWidthUsingText.bind(this));
|
|
609
|
-
this.input.addEventListener('keyup', this.setWidthUsingText.bind(this));
|
|
610
|
-
}
|
|
611
|
-
this.setWidthUsingText();
|
|
612
|
-
}
|
|
613
|
-
ngOnDestroy() {
|
|
614
|
-
this.input.removeEventListener('blur', this.setWidthUsingText.bind(this));
|
|
615
|
-
this.input.removeEventListener('keyup', this.setWidthUsingText.bind(this));
|
|
616
|
-
}
|
|
617
|
-
get paddingWidth() {
|
|
618
|
-
return this.includePadding
|
|
619
|
-
? this._sumPropertyValues(['padding-left', 'padding-right'])
|
|
620
|
-
: 0;
|
|
621
|
-
}
|
|
622
|
-
get style() {
|
|
623
|
-
return getComputedStyle(this.input, '');
|
|
624
|
-
}
|
|
625
|
-
setWidth(width) {
|
|
626
|
-
this.renderer.setStyle(this.input, 'width', width + 'px');
|
|
627
|
-
}
|
|
628
|
-
setWidthUsingText() {
|
|
629
|
-
if (this.input) {
|
|
630
|
-
const text = this.input.value;
|
|
631
|
-
this.setWidth(this.textWidth(text) + this.paddingWidth);
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
_sumPropertyValues(properties) {
|
|
635
|
-
return properties
|
|
636
|
-
.map((property) => parseInt(this.style.getPropertyValue(property), 10))
|
|
637
|
-
.reduce((a, b) => a + b, 0);
|
|
638
|
-
}
|
|
639
|
-
textWidth(value) {
|
|
640
|
-
const ctx = this.renderer.createElement('canvas').getContext('2d');
|
|
641
|
-
const { fontStyle, fontVariant, fontWeight, fontSize, fontFamily, } = this.style;
|
|
642
|
-
// font string format: {normal, normal, 700, 20px, Roboto, "Helvetica Neue", sans-serif}
|
|
643
|
-
ctx.font =
|
|
644
|
-
fontStyle +
|
|
645
|
-
' ' +
|
|
646
|
-
fontVariant +
|
|
647
|
-
' ' +
|
|
648
|
-
fontWeight +
|
|
649
|
-
' ' +
|
|
650
|
-
fontSize +
|
|
651
|
-
' ' +
|
|
652
|
-
fontFamily;
|
|
653
|
-
return ctx ? ctx.measureText(value).width : 0;
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
PepInputAutoWidthDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepInputAutoWidthDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
657
|
-
PepInputAutoWidthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepInputAutoWidthDirective, selector: "[pepAutoWidth]", inputs: { includePadding: "includePadding" }, ngImport: i0 });
|
|
658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepInputAutoWidthDirective, decorators: [{
|
|
659
|
-
type: Directive,
|
|
660
|
-
args: [{
|
|
661
|
-
selector: '[pepAutoWidth]',
|
|
662
|
-
}]
|
|
663
|
-
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { includePadding: [{
|
|
664
|
-
type: Input
|
|
665
|
-
}] } });
|
|
666
|
-
|
|
667
|
-
class PepButtonBlurDirective {
|
|
668
|
-
constructor(element) {
|
|
669
|
-
this.element = element;
|
|
670
|
-
}
|
|
671
|
-
onClick() {
|
|
672
|
-
setTimeout(() => {
|
|
673
|
-
this.element.nativeElement.blur();
|
|
674
|
-
}, 0);
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
PepButtonBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepButtonBlurDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
678
|
-
PepButtonBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.2", type: PepButtonBlurDirective, selector: "[pepButtonBlur]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
679
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepButtonBlurDirective, decorators: [{
|
|
680
|
-
type: Directive,
|
|
681
|
-
args: [{
|
|
682
|
-
selector: '[pepButtonBlur]',
|
|
683
|
-
}]
|
|
684
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onClick: [{
|
|
685
|
-
type: HostListener,
|
|
686
|
-
args: ['click']
|
|
687
|
-
}] } });
|
|
688
|
-
|
|
689
|
-
class PepUtilitiesService {
|
|
690
|
-
constructor(translate = null) {
|
|
691
|
-
this.translate = translate;
|
|
692
|
-
this.culture = 'en-US';
|
|
693
|
-
this.culture = this.translate?.getBrowserCultureLang() || 'en-US';
|
|
694
|
-
// try {
|
|
695
|
-
// import(`@angular/common/locales/global/${this.culture}`);
|
|
696
|
-
// } catch {}
|
|
697
|
-
}
|
|
698
|
-
prepareNumberToFormat(value, fallbackValue = 0) {
|
|
699
|
-
// If the decimal separator is ',' change it to '.'
|
|
700
|
-
if (value?.length > 0) {
|
|
701
|
-
// If the decimal separator is ',' change it to '.' for let the formatting works.
|
|
702
|
-
value = this.changeDecimalSeparatorWhenItsComma(value);
|
|
703
|
-
// console.log('coerceNumberProperty after change decimal separator value is', value);
|
|
704
|
-
}
|
|
705
|
-
return coerceNumberProperty(value, fallbackValue);
|
|
706
|
-
}
|
|
707
|
-
// adapted from https://github.com/sindresorhus/parse-ms.
|
|
708
|
-
// moved to internal function because parse-ms is now pure ESM.
|
|
709
|
-
parseMs(milliseconds) {
|
|
710
|
-
if (typeof milliseconds !== 'number') {
|
|
711
|
-
throw new TypeError('Expected a number');
|
|
712
|
-
}
|
|
713
|
-
return {
|
|
714
|
-
days: Math.trunc(milliseconds / 86400000),
|
|
715
|
-
hours: Math.trunc(milliseconds / 3600000) % 24,
|
|
716
|
-
minutes: Math.trunc(milliseconds / 60000) % 60,
|
|
717
|
-
seconds: Math.trunc(milliseconds / 1000) % 60,
|
|
718
|
-
milliseconds: Math.trunc(milliseconds) % 1000
|
|
719
|
-
};
|
|
720
|
-
}
|
|
721
|
-
// adapted from https://github.com/rafaelrinaldi/add-zero.
|
|
722
|
-
// moved to internal function b/c addZero is unmaintained (7+ years).
|
|
723
|
-
// stripped out negative sign logic since we're already doing it elsewhere.
|
|
724
|
-
addZero(value, digits = 2) {
|
|
725
|
-
digits = digits || 2;
|
|
726
|
-
let str = value.toString();
|
|
727
|
-
let size = 0;
|
|
728
|
-
size = digits - str.length + 1;
|
|
729
|
-
str = new Array(size).join('0').concat(str);
|
|
730
|
-
return str;
|
|
731
|
-
}
|
|
732
|
-
isCurrencyShouldBeOnRight(currencySymbol) {
|
|
733
|
-
let res = false;
|
|
734
|
-
if (currencySymbol == "€" ||
|
|
735
|
-
currencySymbol == "₪" ||
|
|
736
|
-
currencySymbol == "Ft" ||
|
|
737
|
-
currencySymbol == "Kč" ||
|
|
738
|
-
currencySymbol == "руб" ||
|
|
739
|
-
currencySymbol == "zł" ||
|
|
740
|
-
currencySymbol == "kr.") {
|
|
741
|
-
res = true;
|
|
742
|
-
}
|
|
743
|
-
return res;
|
|
744
|
-
}
|
|
745
|
-
cutValueByFractionDigits(value, maxFractionDigits) {
|
|
746
|
-
let res = value;
|
|
747
|
-
maxFractionDigits = maxFractionDigits || 2;
|
|
748
|
-
const decimalSeparator = this.getDecimalSeparator();
|
|
749
|
-
if (value.includes(decimalSeparator)) {
|
|
750
|
-
const valueArr = value.split(decimalSeparator);
|
|
751
|
-
// if (valueArr[1].length < maxFractionDigits) {
|
|
752
|
-
valueArr[1] = valueArr[1].padEnd(maxFractionDigits, '0');
|
|
753
|
-
// }
|
|
754
|
-
res = `${valueArr[0]}${decimalSeparator}${valueArr[1].slice(0, maxFractionDigits)}`;
|
|
755
|
-
}
|
|
756
|
-
return res;
|
|
757
|
-
}
|
|
758
|
-
parseDate(dateStr, showTime = false) {
|
|
759
|
-
let retVal = null;
|
|
760
|
-
if (dateStr !== '') {
|
|
761
|
-
retVal = new Date(dateStr);
|
|
762
|
-
// Convert to date with no offset.
|
|
763
|
-
if (!showTime) {
|
|
764
|
-
const index = dateStr.indexOf('T');
|
|
765
|
-
if (index > 0) {
|
|
766
|
-
dateStr = dateStr.substring(0, index);
|
|
767
|
-
}
|
|
768
|
-
const dateText = dateStr.split('-');
|
|
769
|
-
if (dateText.length === 3) {
|
|
770
|
-
const year = Number(dateText[0]);
|
|
771
|
-
const month = Number(dateText[1]) - 1;
|
|
772
|
-
const day = Number(dateText[2]);
|
|
773
|
-
retVal = new Date(year, month, day, 0, retVal.getTimezoneOffset() * -1);
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
else {
|
|
777
|
-
retVal = new Date(retVal.getFullYear(), retVal.getMonth(), retVal.getDate(), retVal.getHours(), retVal.getMinutes() + retVal.getTimezoneOffset() * -1, retVal.getSeconds());
|
|
778
|
-
}
|
|
779
|
-
}
|
|
780
|
-
if (retVal && isNaN(retVal.getTime())) {
|
|
781
|
-
retVal = null;
|
|
782
|
-
}
|
|
783
|
-
return retVal;
|
|
784
|
-
}
|
|
785
|
-
stringifyDate(date, showTime = false) {
|
|
786
|
-
if (date) {
|
|
787
|
-
if (showTime) {
|
|
788
|
-
return date.toISOString(); // include - offset
|
|
789
|
-
}
|
|
790
|
-
else {
|
|
791
|
-
const dateText = [];
|
|
792
|
-
dateText.push(date.getFullYear(), '-', date.getMonth() + 1, '-', date.getDate());
|
|
793
|
-
return dateText.join('');
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
else {
|
|
797
|
-
return '';
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
isValueHtml(value) {
|
|
801
|
-
let res = false;
|
|
802
|
-
const REGEXP = /<\/?[a-z][\s\S]*>/i;
|
|
803
|
-
res = REGEXP.test(value);
|
|
804
|
-
return res;
|
|
805
|
-
}
|
|
806
|
-
isJsonString(str) {
|
|
807
|
-
try {
|
|
808
|
-
JSON.parse(str);
|
|
809
|
-
}
|
|
810
|
-
catch (e) {
|
|
811
|
-
return false;
|
|
812
|
-
}
|
|
813
|
-
return true;
|
|
814
|
-
}
|
|
815
|
-
getSvgElementFromString(document, svgContent) {
|
|
816
|
-
const div = document.createElement('DIV');
|
|
817
|
-
// div.className = 'svg-icon';
|
|
818
|
-
// Add class svg-icon
|
|
819
|
-
if (svgContent?.length > 0) {
|
|
820
|
-
div.innerHTML = svgContent.replace('<svg ', '<svg class="svg-icon" ');
|
|
821
|
-
}
|
|
822
|
-
return (div.querySelector('svg') ||
|
|
823
|
-
document.createElementNS('http://www.w3.org/2000/svg', 'path'));
|
|
824
|
-
}
|
|
825
|
-
// formatPercent(value: any, digitsInfo = '1.0-2') {
|
|
826
|
-
formatPercent(value, minFractionDigits = 0, maxFractionDigits = 2) {
|
|
827
|
-
minFractionDigits = coerceNumberProperty(minFractionDigits, null);
|
|
828
|
-
maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
|
|
829
|
-
value = this.cutValueByFractionDigits(value?.toString(), Math.max(minFractionDigits, maxFractionDigits));
|
|
830
|
-
const number = this.prepareNumberToFormat(value);
|
|
831
|
-
if (number === 0) {
|
|
832
|
-
return '0%';
|
|
833
|
-
}
|
|
834
|
-
else {
|
|
835
|
-
// return formatPercent(number / 100, this.culture, digitsInfo);
|
|
836
|
-
return new Intl.NumberFormat(this.culture, {
|
|
837
|
-
style: 'percent',
|
|
838
|
-
minimumFractionDigits: minFractionDigits || 0,
|
|
839
|
-
maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
|
|
840
|
-
}).format(number / 100);
|
|
882
|
+
}
|
|
841
883
|
}
|
|
884
|
+
return value;
|
|
842
885
|
}
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
|
|
860
|
-
};
|
|
861
|
-
if (number === 0) {
|
|
862
|
-
// return formatCurrency(0, this.culture, currencySign, undefined, digitsInfo);
|
|
863
|
-
res = new Intl.NumberFormat(this.culture, styleOptions).format(0);
|
|
864
|
-
}
|
|
865
|
-
else {
|
|
866
|
-
// return formatCurrency(value, this.culture, currencySign, undefined, digitsInfo);
|
|
867
|
-
res = new Intl.NumberFormat(this.culture, styleOptions).format(number);
|
|
868
|
-
}
|
|
869
|
-
if (currencySign.length > 0) {
|
|
870
|
-
res = this.isCurrencyShouldBeOnRight(currencySign) ? `${res} ${currencySign}` : `${currencySign} ${res}`;
|
|
871
|
-
}
|
|
872
|
-
// }
|
|
873
|
-
return res;
|
|
886
|
+
}
|
|
887
|
+
DateAgoPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateAgoPipe, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
888
|
+
DateAgoPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: DateAgoPipe, name: "dateAgo" });
|
|
889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DateAgoPipe, decorators: [{
|
|
890
|
+
type: Pipe,
|
|
891
|
+
args: [{
|
|
892
|
+
name: 'dateAgo'
|
|
893
|
+
}]
|
|
894
|
+
}], ctorParameters: function () { return [{ type: i1.TranslateService }]; } });
|
|
895
|
+
|
|
896
|
+
class PepInputAutoWidthDirective {
|
|
897
|
+
constructor(renderer, el) {
|
|
898
|
+
this.renderer = renderer;
|
|
899
|
+
this.el = el;
|
|
900
|
+
this.includePadding = true;
|
|
901
|
+
this.input = null;
|
|
874
902
|
}
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
// console.log('formatDecimal minFractionDigits value is', minFractionDigits);
|
|
879
|
-
maxFractionDigits = coerceNumberProperty(maxFractionDigits, null);
|
|
880
|
-
// console.log('formatDecimal minFractionDigits value is', maxFractionDigits);
|
|
881
|
-
value = this.cutValueByFractionDigits(value?.toString(), Math.max(minFractionDigits, maxFractionDigits));
|
|
882
|
-
const number = this.prepareNumberToFormat(value);
|
|
883
|
-
// console.log('number value is', number);
|
|
884
|
-
if (number === 0) {
|
|
885
|
-
return '0';
|
|
903
|
+
ngAfterViewInit() {
|
|
904
|
+
if (this.el.nativeElement.tagName.toLowerCase() === 'input') {
|
|
905
|
+
this.input = this.el;
|
|
886
906
|
}
|
|
887
907
|
else {
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
useGrouping: useGrouping,
|
|
891
|
-
minimumFractionDigits: minFractionDigits || Math.min(2, maxFractionDigits || 2),
|
|
892
|
-
maximumFractionDigits: maxFractionDigits || Math.max(2, minFractionDigits),
|
|
893
|
-
}).format(number);
|
|
894
|
-
// console.log('Intl.NumberFormat value is', res);
|
|
895
|
-
return res;
|
|
896
|
-
}
|
|
897
|
-
}
|
|
898
|
-
// formatNumber(value: any, digitsInfo = '1.0-0'): string {
|
|
899
|
-
formatNumber(value, useGrouping = true) {
|
|
900
|
-
const number = this.prepareNumberToFormat(value);
|
|
901
|
-
if (number === 0) {
|
|
902
|
-
return '0';
|
|
908
|
+
const list = this.el.nativeElement.querySelectorAll('input');
|
|
909
|
+
this.input = list.length > 0 ? list[0] : null;
|
|
903
910
|
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
useGrouping: useGrouping,
|
|
908
|
-
minimumFractionDigits: 0,
|
|
909
|
-
maximumFractionDigits: 0,
|
|
910
|
-
}).format(number);
|
|
911
|
+
if (this.input) {
|
|
912
|
+
this.input.addEventListener('blur', this.setWidthUsingText.bind(this));
|
|
913
|
+
this.input.addEventListener('keyup', this.setWidthUsingText.bind(this));
|
|
911
914
|
}
|
|
915
|
+
this.setWidthUsingText();
|
|
912
916
|
}
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
* @param {object} options - formatDuration options object
|
|
917
|
-
* @param {boolean} [options.leading=false] - add leading zero
|
|
918
|
-
* @returns string - formatted duration string
|
|
919
|
-
*/
|
|
920
|
-
formatDuration(value, options = {}) {
|
|
921
|
-
const isNumber = _isNumberValue(value);
|
|
922
|
-
if (!isNumber) {
|
|
923
|
-
return value;
|
|
924
|
-
}
|
|
925
|
-
else {
|
|
926
|
-
let number = this.prepareNumberToFormat(value);
|
|
927
|
-
const leading = options?.leading || true;
|
|
928
|
-
const duration = options?.duration || 'milliseconds';
|
|
929
|
-
if (duration === 'seconds') {
|
|
930
|
-
number = number * 1000;
|
|
931
|
-
}
|
|
932
|
-
const unsignedMs = number < 0 ? -number : number;
|
|
933
|
-
const sign = number <= -1000 ? '-' : '';
|
|
934
|
-
const t = this.parseMs(unsignedMs);
|
|
935
|
-
const seconds = this.addZero(t.seconds);
|
|
936
|
-
if (t.days) {
|
|
937
|
-
return sign + t.days + ':' + this.addZero(t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
|
|
938
|
-
}
|
|
939
|
-
if (t.hours) {
|
|
940
|
-
return sign + (leading ? this.addZero(t.hours) : t.hours) + ':' + this.addZero(t.minutes) + ':' + seconds;
|
|
941
|
-
}
|
|
942
|
-
return sign + (leading ? this.addZero(t.minutes) : t.minutes) + ':' + seconds;
|
|
943
|
-
}
|
|
917
|
+
ngOnDestroy() {
|
|
918
|
+
this.input.removeEventListener('blur', this.setWidthUsingText.bind(this));
|
|
919
|
+
this.input.removeEventListener('keyup', this.setWidthUsingText.bind(this));
|
|
944
920
|
}
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
921
|
+
get paddingWidth() {
|
|
922
|
+
return this.includePadding
|
|
923
|
+
? this._sumPropertyValues(['padding-left', 'padding-right'])
|
|
924
|
+
: 0;
|
|
948
925
|
}
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
return (--numberValue).toString();
|
|
926
|
+
get style() {
|
|
927
|
+
return getComputedStyle(this.input, '');
|
|
952
928
|
}
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
return numberWithDecimalSeparator
|
|
956
|
-
.toLocaleString(this.culture)
|
|
957
|
-
.substring(1, 2);
|
|
929
|
+
setWidth(width) {
|
|
930
|
+
this.renderer.setStyle(this.input, 'width', width + 'px');
|
|
958
931
|
}
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
value = value?.toString() || '';
|
|
964
|
-
// If reverse change the number from '.' to ',' else do the opposite.
|
|
965
|
-
value = reverse ? value.replace('.', ',') : value.replace(',', '.');
|
|
932
|
+
setWidthUsingText() {
|
|
933
|
+
if (this.input) {
|
|
934
|
+
const text = this.input.value;
|
|
935
|
+
this.setWidth(this.textWidth(text) + this.paddingWidth);
|
|
966
936
|
}
|
|
967
|
-
return value;
|
|
968
937
|
}
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
938
|
+
_sumPropertyValues(properties) {
|
|
939
|
+
return properties
|
|
940
|
+
.map((property) => parseInt(this.style.getPropertyValue(property), 10))
|
|
941
|
+
.reduce((a, b) => a + b, 0);
|
|
942
|
+
}
|
|
943
|
+
textWidth(value) {
|
|
944
|
+
const ctx = this.renderer.createElement('canvas').getContext('2d');
|
|
945
|
+
const { fontStyle, fontVariant, fontWeight, fontSize, fontFamily, } = this.style;
|
|
946
|
+
// font string format: {normal, normal, 700, 20px, Roboto, "Helvetica Neue", sans-serif}
|
|
947
|
+
ctx.font =
|
|
948
|
+
fontStyle +
|
|
949
|
+
' ' +
|
|
950
|
+
fontVariant +
|
|
951
|
+
' ' +
|
|
952
|
+
fontWeight +
|
|
953
|
+
' ' +
|
|
954
|
+
fontSize +
|
|
955
|
+
' ' +
|
|
956
|
+
fontFamily;
|
|
957
|
+
return ctx ? ctx.measureText(value).width : 0;
|
|
973
958
|
}
|
|
974
959
|
}
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
978
|
-
type:
|
|
960
|
+
PepInputAutoWidthDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepInputAutoWidthDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
961
|
+
PepInputAutoWidthDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepInputAutoWidthDirective, selector: "[pepAutoWidth]", inputs: { includePadding: "includePadding" }, ngImport: i0 });
|
|
962
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepInputAutoWidthDirective, decorators: [{
|
|
963
|
+
type: Directive,
|
|
979
964
|
args: [{
|
|
980
|
-
|
|
965
|
+
selector: '[pepAutoWidth]',
|
|
981
966
|
}]
|
|
982
|
-
}], ctorParameters: function () { return [{ type:
|
|
983
|
-
|
|
984
|
-
|
|
967
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { includePadding: [{
|
|
968
|
+
type: Input
|
|
969
|
+
}] } });
|
|
970
|
+
|
|
971
|
+
class PepButtonBlurDirective {
|
|
972
|
+
constructor(element) {
|
|
973
|
+
this.element = element;
|
|
974
|
+
}
|
|
975
|
+
onClick() {
|
|
976
|
+
setTimeout(() => {
|
|
977
|
+
this.element.nativeElement.blur();
|
|
978
|
+
}, 0);
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
PepButtonBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepButtonBlurDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
982
|
+
PepButtonBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepButtonBlurDirective, selector: "[pepButtonBlur]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepButtonBlurDirective, decorators: [{
|
|
984
|
+
type: Directive,
|
|
985
|
+
args: [{
|
|
986
|
+
selector: '[pepButtonBlur]',
|
|
987
|
+
}]
|
|
988
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { onClick: [{
|
|
989
|
+
type: HostListener,
|
|
990
|
+
args: ['click']
|
|
991
|
+
}] } });
|
|
985
992
|
|
|
986
993
|
class PepButtonLoaderDirective {
|
|
994
|
+
set finish(value) {
|
|
995
|
+
this._finish = value;
|
|
996
|
+
if (this._isLoading && value) {
|
|
997
|
+
this.toggleLoading(false);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
987
1000
|
constructor(renderer, element, utilitiesService, document) {
|
|
988
1001
|
this.renderer = renderer;
|
|
989
1002
|
this.element = element;
|
|
@@ -997,12 +1010,6 @@ class PepButtonLoaderDirective {
|
|
|
997
1010
|
this._isLoading = false;
|
|
998
1011
|
this._finish = null;
|
|
999
1012
|
}
|
|
1000
|
-
set finish(value) {
|
|
1001
|
-
this._finish = value;
|
|
1002
|
-
if (this._isLoading && value) {
|
|
1003
|
-
this.toggleLoading(false);
|
|
1004
|
-
}
|
|
1005
|
-
}
|
|
1006
1013
|
clickEvent(event) {
|
|
1007
1014
|
this.toggleLoading(true);
|
|
1008
1015
|
// In case that the finish input is supplied - init it.
|
|
@@ -1062,9 +1069,9 @@ class PepButtonLoaderDirective {
|
|
|
1062
1069
|
}
|
|
1063
1070
|
}
|
|
1064
1071
|
}
|
|
1065
|
-
PepButtonLoaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1066
|
-
PepButtonLoaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1072
|
+
PepButtonLoaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepButtonLoaderDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: PepUtilitiesService }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1073
|
+
PepButtonLoaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepButtonLoaderDirective, selector: "[pepButtonLoader]", inputs: { loaderTime: "loaderTime", loaderColor: "loaderColor", loaderWidth: "loaderWidth", loaderHeight: "loaderHeight", ignoreDisabledStyle: "ignoreDisabledStyle", finish: "finish" }, host: { listeners: { "click": "clickEvent($event)" } }, ngImport: i0 });
|
|
1074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepButtonLoaderDirective, decorators: [{
|
|
1068
1075
|
type: Directive,
|
|
1069
1076
|
args: [{
|
|
1070
1077
|
selector: '[pepButtonLoader]',
|
|
@@ -1106,9 +1113,9 @@ class PepMenuBlurDirective {
|
|
|
1106
1113
|
}, 0);
|
|
1107
1114
|
}
|
|
1108
1115
|
}
|
|
1109
|
-
PepMenuBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1110
|
-
PepMenuBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1116
|
+
PepMenuBlurDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepMenuBlurDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1117
|
+
PepMenuBlurDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepMenuBlurDirective, selector: "[pepMenuBlur]", host: { listeners: { "menuClosed": "menuClosedEvent()", "menuOpened": "menuOpenedEvent()" } }, ngImport: i0 });
|
|
1118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepMenuBlurDirective, decorators: [{
|
|
1112
1119
|
type: Directive,
|
|
1113
1120
|
args: [{
|
|
1114
1121
|
selector: '[pepMenuBlur]',
|
|
@@ -1130,9 +1137,9 @@ class PepDataQaDirective {
|
|
|
1130
1137
|
this.renderer.setAttribute(this.element.nativeElement, 'data-qa', this.dataQa);
|
|
1131
1138
|
}
|
|
1132
1139
|
}
|
|
1133
|
-
PepDataQaDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1134
|
-
PepDataQaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1140
|
+
PepDataQaDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataQaDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1141
|
+
PepDataQaDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepDataQaDirective, selector: "[pepDataQa]", inputs: { dataQa: ["pepDataQa", "dataQa"] }, ngImport: i0 });
|
|
1142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataQaDirective, decorators: [{
|
|
1136
1143
|
type: Directive,
|
|
1137
1144
|
args: [{
|
|
1138
1145
|
selector: '[pepDataQa]',
|
|
@@ -1153,9 +1160,9 @@ class PepPreventMultiClickDirective {
|
|
|
1153
1160
|
}, this.disabledTime);
|
|
1154
1161
|
}
|
|
1155
1162
|
}
|
|
1156
|
-
PepPreventMultiClickDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1157
|
-
PepPreventMultiClickDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1163
|
+
PepPreventMultiClickDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPreventMultiClickDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1164
|
+
PepPreventMultiClickDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepPreventMultiClickDirective, selector: "[pepPreventMultiClick]", inputs: { disabledTime: "disabledTime" }, host: { listeners: { "click": "clickEvent($event)" } }, ngImport: i0 });
|
|
1165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPreventMultiClickDirective, decorators: [{
|
|
1159
1166
|
type: Directive,
|
|
1160
1167
|
args: [{
|
|
1161
1168
|
selector: '[pepPreventMultiClick]',
|
|
@@ -1311,9 +1318,9 @@ class PepPrintDirective {
|
|
|
1311
1318
|
popupWin.document.close();
|
|
1312
1319
|
}
|
|
1313
1320
|
}
|
|
1314
|
-
PepPrintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1315
|
-
PepPrintDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1321
|
+
PepPrintDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPrintDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1322
|
+
PepPrintDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepPrintDirective, selector: "[pepPrint]", inputs: { printSectionId: "printSectionId", printTitle: "printTitle", useExistingCss: "useExistingCss", printDelay: "printDelay", printStyle: "printStyle", styleSheetFile: "styleSheetFile" }, host: { listeners: { "click": "print()" } }, ngImport: i0 });
|
|
1323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPrintDirective, decorators: [{
|
|
1317
1324
|
type: Directive,
|
|
1318
1325
|
args: [{
|
|
1319
1326
|
selector: "[pepPrint]"
|
|
@@ -1430,9 +1437,9 @@ class PepJwtHelperService {
|
|
|
1430
1437
|
return authScheme;
|
|
1431
1438
|
}
|
|
1432
1439
|
}
|
|
1433
|
-
PepJwtHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1434
|
-
PepJwtHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1440
|
+
PepJwtHelperService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepJwtHelperService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1441
|
+
PepJwtHelperService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepJwtHelperService, providedIn: 'root' });
|
|
1442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepJwtHelperService, decorators: [{
|
|
1436
1443
|
type: Injectable,
|
|
1437
1444
|
args: [{
|
|
1438
1445
|
providedIn: 'root',
|
|
@@ -1499,9 +1506,9 @@ class PepSessionService {
|
|
|
1499
1506
|
return tokenObj ? tokenObj[this.PAPI_BASE_URL_KEY] : null;
|
|
1500
1507
|
}
|
|
1501
1508
|
}
|
|
1502
|
-
PepSessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1503
|
-
PepSessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1504
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1509
|
+
PepSessionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSessionService, deps: [{ token: PepJwtHelperService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1510
|
+
PepSessionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSessionService, providedIn: 'root' });
|
|
1511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSessionService, decorators: [{
|
|
1505
1512
|
type: Injectable,
|
|
1506
1513
|
args: [{
|
|
1507
1514
|
providedIn: 'root',
|
|
@@ -1747,9 +1754,9 @@ class PepFileService {
|
|
|
1747
1754
|
return url;
|
|
1748
1755
|
}
|
|
1749
1756
|
}
|
|
1750
|
-
PepFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1751
|
-
PepFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1757
|
+
PepFileService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepFileService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1758
|
+
PepFileService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepFileService, providedIn: 'root' });
|
|
1759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepFileService, decorators: [{
|
|
1753
1760
|
type: Injectable,
|
|
1754
1761
|
args: [{
|
|
1755
1762
|
providedIn: 'root',
|
|
@@ -1806,6 +1813,7 @@ class PepCustomizationService {
|
|
|
1806
1813
|
field.disabled ? formControl.disable() : formControl.enable();
|
|
1807
1814
|
const validators = field.getValidators();
|
|
1808
1815
|
formControl.setValidators(validators);
|
|
1816
|
+
formControl.updateValueAndValidity();
|
|
1809
1817
|
}
|
|
1810
1818
|
}
|
|
1811
1819
|
}
|
|
@@ -2180,6 +2188,14 @@ class PepCustomizationService {
|
|
|
2180
2188
|
themeVars[PepCustomizationService.COLOR_QS_KEY + '-l'] =
|
|
2181
2189
|
'var(' + PepCustomizationService.COLOR_SYSTEM_PRIMARY_KEY + '-l)';
|
|
2182
2190
|
}
|
|
2191
|
+
getDefaultThemeLoaderCustomizationVariables(themeVars) {
|
|
2192
|
+
themeVars[PepCustomizationService.COLOR_LOADER_KEY + '-h'] =
|
|
2193
|
+
'var(' + PepCustomizationService.COLOR_SYSTEM_CAUTION_KEY + '-h)';
|
|
2194
|
+
themeVars[PepCustomizationService.COLOR_LOADER_KEY + '-s'] =
|
|
2195
|
+
'var(' + PepCustomizationService.COLOR_SYSTEM_CAUTION_KEY + '-s)';
|
|
2196
|
+
themeVars[PepCustomizationService.COLOR_LOADER_KEY + '-l'] =
|
|
2197
|
+
'var(' + PepCustomizationService.COLOR_SYSTEM_CAUTION_KEY + '-l)';
|
|
2198
|
+
}
|
|
2183
2199
|
getDefaultThemeTopHeaderCustomizationVariables(themeVars) {
|
|
2184
2200
|
const topHeaderState = 'strong';
|
|
2185
2201
|
themeVars[PepCustomizationService.STYLE_TOP_HEADER_KEY] = topHeaderState;
|
|
@@ -2187,6 +2203,11 @@ class PepCustomizationService {
|
|
|
2187
2203
|
themeVars[PepCustomizationService.COLOR_TOP_HEADER_KEY + '-s'] = '';
|
|
2188
2204
|
themeVars[PepCustomizationService.COLOR_TOP_HEADER_KEY + '-l'] = '';
|
|
2189
2205
|
}
|
|
2206
|
+
getDefaultThemeTopLegacyCustomizationVariables(themeVars) {
|
|
2207
|
+
themeVars[PepCustomizationService.COLOR_TOP_LEGACY_KEY + '-h'] = '';
|
|
2208
|
+
themeVars[PepCustomizationService.COLOR_TOP_LEGACY_KEY + '-s'] = '';
|
|
2209
|
+
themeVars[PepCustomizationService.COLOR_TOP_LEGACY_KEY + '-l'] = '';
|
|
2210
|
+
}
|
|
2190
2211
|
// getDefaultThemeBrandingCustomizationVariables(themeVars: any): void {
|
|
2191
2212
|
// themeVars[PepCustomizationService.BRANDING_LOGO_SRC] = '/assets/images/Pepperi-Logo-HiRes.png';
|
|
2192
2213
|
// themeVars[PepCustomizationService.FAV_ICON_SRC] = '/assets/favicon.ico';
|
|
@@ -2217,6 +2238,8 @@ class PepCustomizationService {
|
|
|
2217
2238
|
this.getDefaultThemeQSCustomizationVariables(themeVars);
|
|
2218
2239
|
// Declare default top header customization.
|
|
2219
2240
|
this.getDefaultThemeTopHeaderCustomizationVariables(themeVars);
|
|
2241
|
+
// Declare default top legacy customization.
|
|
2242
|
+
this.getDefaultThemeTopLegacyCustomizationVariables(themeVars);
|
|
2220
2243
|
// // Declare default branding logo's customization
|
|
2221
2244
|
// this.getDefaultThemeBrandingCustomizationVariables(themeVars);
|
|
2222
2245
|
return themeVars;
|
|
@@ -2445,8 +2468,11 @@ PepCustomizationService.COLOR_STRONG_KEY = '--pep-color-strong';
|
|
|
2445
2468
|
PepCustomizationService.COLOR_REGULAR_KEY = '--pep-color-regular';
|
|
2446
2469
|
PepCustomizationService.COLOR_WEAK_KEY = '--pep-color-weak';
|
|
2447
2470
|
// Top header variables keys
|
|
2471
|
+
PepCustomizationService.COLOR_TOP_LEGACY_KEY = '--pep-color-legacy';
|
|
2448
2472
|
PepCustomizationService.COLOR_TOP_HEADER_KEY = '--pep-color-top-header';
|
|
2449
2473
|
PepCustomizationService.STYLE_TOP_HEADER_KEY = '--pep-style-top-header';
|
|
2474
|
+
// Loader variables keys
|
|
2475
|
+
PepCustomizationService.COLOR_LOADER_KEY = '--pep-color-loader';
|
|
2450
2476
|
// QS variables keys
|
|
2451
2477
|
PepCustomizationService.COLOR_QS_KEY = '--pep-color-qs';
|
|
2452
2478
|
PepCustomizationService.STYLE_QS_KEY = '--pep-style-qs';
|
|
@@ -2521,9 +2547,9 @@ PepCustomizationService.TABLE_BORDER_RADIUS_KEY = '--pep-table-border-radius';
|
|
|
2521
2547
|
PepCustomizationService.DEFAULT_HEADER_HEIGHT = 64; // Default
|
|
2522
2548
|
PepCustomizationService.DEFAULT_SPINNER_COLOR = '#78aa00';
|
|
2523
2549
|
PepCustomizationService.DEFAULT_BRANDING_COLOR = '#fff';
|
|
2524
|
-
PepCustomizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2525
|
-
PepCustomizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2526
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2550
|
+
PepCustomizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCustomizationService, deps: [{ token: PepSessionService }, { token: PepFileService }, { token: i3.FormBuilder }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2551
|
+
PepCustomizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCustomizationService, providedIn: 'root' });
|
|
2552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCustomizationService, decorators: [{
|
|
2527
2553
|
type: Injectable,
|
|
2528
2554
|
args: [{
|
|
2529
2555
|
providedIn: 'root',
|
|
@@ -2566,9 +2592,9 @@ class PepDivLoaderDirective {
|
|
|
2566
2592
|
this.renderer.addClass(this.svgIcon, 'stroke');
|
|
2567
2593
|
}
|
|
2568
2594
|
}
|
|
2569
|
-
PepDivLoaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2570
|
-
PepDivLoaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2571
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2595
|
+
PepDivLoaderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDivLoaderDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: PepUtilitiesService }, { token: PepCustomizationService }, { token: DOCUMENT, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2596
|
+
PepDivLoaderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepDivLoaderDirective, selector: "[pepDivLoader]", inputs: { loaderColor: "loaderColor", loaderWidth: "loaderWidth", loaderHeight: "loaderHeight" }, ngImport: i0 });
|
|
2597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDivLoaderDirective, decorators: [{
|
|
2572
2598
|
type: Directive,
|
|
2573
2599
|
args: [{
|
|
2574
2600
|
selector: '[pepDivLoader]',
|
|
@@ -2611,9 +2637,9 @@ class PepPortalService {
|
|
|
2611
2637
|
: null;
|
|
2612
2638
|
}
|
|
2613
2639
|
}
|
|
2614
|
-
PepPortalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2615
|
-
PepPortalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2616
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2640
|
+
PepPortalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPortalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2641
|
+
PepPortalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPortalService, providedIn: 'root' });
|
|
2642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepPortalService, decorators: [{
|
|
2617
2643
|
type: Injectable,
|
|
2618
2644
|
args: [{
|
|
2619
2645
|
providedIn: 'root',
|
|
@@ -2632,9 +2658,9 @@ class PepAttachDirective {
|
|
|
2632
2658
|
this.portalService.clear(this.targetName);
|
|
2633
2659
|
}
|
|
2634
2660
|
}
|
|
2635
|
-
PepAttachDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2636
|
-
PepAttachDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2637
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2661
|
+
PepAttachDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAttachDirective, deps: [{ token: PepPortalService }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2662
|
+
PepAttachDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepAttachDirective, selector: "[pepAttach]", inputs: { targetName: ["pepAttach", "targetName"] }, ngImport: i0 });
|
|
2663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAttachDirective, decorators: [{
|
|
2638
2664
|
type: Directive,
|
|
2639
2665
|
args: [{
|
|
2640
2666
|
selector: '[pepAttach]',
|
|
@@ -2653,9 +2679,9 @@ class PepTargetDirective {
|
|
|
2653
2679
|
this.portalService.addTarget(this.targetName, this.viewContainer);
|
|
2654
2680
|
}
|
|
2655
2681
|
}
|
|
2656
|
-
PepTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2657
|
-
PepTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2682
|
+
PepTargetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTargetDirective, deps: [{ token: PepPortalService }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2683
|
+
PepTargetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: PepTargetDirective, selector: "[pepTarget]", inputs: { targetName: ["pepTarget", "targetName"] }, ngImport: i0 });
|
|
2684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTargetDirective, decorators: [{
|
|
2659
2685
|
type: Directive,
|
|
2660
2686
|
args: [{
|
|
2661
2687
|
selector: '[pepTarget]',
|
|
@@ -2668,9 +2694,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
2668
2694
|
// Import the core angular services.
|
|
2669
2695
|
class PepClipboardService {
|
|
2670
2696
|
}
|
|
2671
|
-
PepClipboardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2672
|
-
PepClipboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2673
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2697
|
+
PepClipboardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2698
|
+
PepClipboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardService, providedIn: 'root' });
|
|
2699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepClipboardService, decorators: [{
|
|
2674
2700
|
type: Injectable,
|
|
2675
2701
|
args: [{
|
|
2676
2702
|
providedIn: 'root',
|
|
@@ -2685,6 +2711,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
2685
2711
|
* export from ngx-lib/core/clipboard
|
|
2686
2712
|
*/
|
|
2687
2713
|
|
|
2714
|
+
class BaseDestroyerDirective {
|
|
2715
|
+
constructor() {
|
|
2716
|
+
this._destroyed = new Subject();
|
|
2717
|
+
}
|
|
2718
|
+
getDestroyer() {
|
|
2719
|
+
return takeUntil(this._destroyed);
|
|
2720
|
+
}
|
|
2721
|
+
ngOnDestroy() {
|
|
2722
|
+
this._destroyed.next();
|
|
2723
|
+
this._destroyed.complete();
|
|
2724
|
+
}
|
|
2725
|
+
}
|
|
2726
|
+
BaseDestroyerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseDestroyerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2727
|
+
BaseDestroyerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BaseDestroyerDirective, ngImport: i0 });
|
|
2728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseDestroyerDirective, decorators: [{
|
|
2729
|
+
type: Directive,
|
|
2730
|
+
args: [{}]
|
|
2731
|
+
}], ctorParameters: function () { return []; } });
|
|
2732
|
+
|
|
2688
2733
|
/*
|
|
2689
2734
|
* Public API Surface of ngx-lib/core/common/directives
|
|
2690
2735
|
*/
|
|
@@ -3059,9 +3104,9 @@ class PepCookieService {
|
|
|
3059
3104
|
}
|
|
3060
3105
|
}
|
|
3061
3106
|
}
|
|
3062
|
-
PepCookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3063
|
-
PepCookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3064
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3107
|
+
PepCookieService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCookieService, deps: [{ token: DOCUMENT, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3108
|
+
PepCookieService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCookieService, providedIn: 'root' });
|
|
3109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepCookieService, decorators: [{
|
|
3065
3110
|
type: Injectable,
|
|
3066
3111
|
args: [{
|
|
3067
3112
|
providedIn: 'root',
|
|
@@ -3214,9 +3259,9 @@ class PepHttpService {
|
|
|
3214
3259
|
return this.postHttpCall(`${papiBaseUrl}${url}`, body, httpOptions);
|
|
3215
3260
|
}
|
|
3216
3261
|
}
|
|
3217
|
-
PepHttpService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3218
|
-
PepHttpService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3262
|
+
PepHttpService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepHttpService, deps: [{ token: PepSessionService }, { token: PepCookieService }, { token: i3$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3263
|
+
PepHttpService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepHttpService, providedIn: 'root' });
|
|
3264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepHttpService, decorators: [{
|
|
3220
3265
|
type: Injectable,
|
|
3221
3266
|
args: [{
|
|
3222
3267
|
providedIn: 'root',
|
|
@@ -3256,9 +3301,9 @@ class PepTranslateService {
|
|
|
3256
3301
|
});
|
|
3257
3302
|
}
|
|
3258
3303
|
}
|
|
3259
|
-
PepTranslateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3260
|
-
PepTranslateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3304
|
+
PepTranslateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTranslateService, deps: [{ token: i3$1.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3305
|
+
PepTranslateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTranslateService, providedIn: 'root' });
|
|
3306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTranslateService, decorators: [{
|
|
3262
3307
|
type: Injectable,
|
|
3263
3308
|
args: [{
|
|
3264
3309
|
providedIn: 'root',
|
|
@@ -3269,12 +3314,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
3269
3314
|
This service is the webapp api for addon usege.
|
|
3270
3315
|
*/
|
|
3271
3316
|
class PepAddonService {
|
|
3272
|
-
|
|
3317
|
+
get devServer() {
|
|
3318
|
+
return this.route ? this.route.snapshot.queryParamMap.get('devServer') === 'true' : false;
|
|
3319
|
+
}
|
|
3320
|
+
constructor(sessionService, httpService, loaderService, translateService, fileService, router, route) {
|
|
3273
3321
|
this.sessionService = sessionService;
|
|
3274
3322
|
this.httpService = httpService;
|
|
3275
3323
|
this.loaderService = loaderService;
|
|
3276
3324
|
this.translateService = translateService;
|
|
3277
3325
|
this.fileService = fileService;
|
|
3326
|
+
this.router = router;
|
|
3278
3327
|
this.route = route;
|
|
3279
3328
|
this.PAGES_ADDON_UUID = '50062e0c-9967-4ed4-9102-f2bc50602d41';
|
|
3280
3329
|
// private readonly ADDON_ASSETS_PATH_KEY = 'AddonAssetsPath';
|
|
@@ -3283,9 +3332,6 @@ class PepAddonService {
|
|
|
3283
3332
|
this.ADDON_API_ASYNC_RELATIVE_PATH = `${this.ADDON_API_RELATIVE_PATH}/async`;
|
|
3284
3333
|
//
|
|
3285
3334
|
}
|
|
3286
|
-
get devServer() {
|
|
3287
|
-
return this.route ? this.route.snapshot.queryParamMap.get('devServer') === 'true' : false;
|
|
3288
|
-
}
|
|
3289
3335
|
getAddonBaseRelativePath(isAsync = false) {
|
|
3290
3336
|
return isAsync
|
|
3291
3337
|
? this.ADDON_API_ASYNC_RELATIVE_PATH
|
|
@@ -3424,10 +3470,32 @@ class PepAddonService {
|
|
|
3424
3470
|
// Fix internal routing bug.
|
|
3425
3471
|
connectInternalRouter(elementName) {
|
|
3426
3472
|
const customElementObject = PepAddonService._customElementsMap.get(elementName);
|
|
3427
|
-
|
|
3473
|
+
let router = customElementObject?.injector.get(Router);
|
|
3474
|
+
// This cause a refresh (everithing is loading twice) when reloading the page...
|
|
3475
|
+
// But if we remove this the first navigation is clear all history cause the router is not connected.
|
|
3476
|
+
if (!router) {
|
|
3477
|
+
router = this.router;
|
|
3478
|
+
}
|
|
3428
3479
|
if (router) {
|
|
3429
3480
|
const useHash = location.href.includes('#');
|
|
3430
|
-
connectRouter(router, useHash);
|
|
3481
|
+
this.connectRouter(router, useHash);
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
connectRouter(router, useHash = false) {
|
|
3485
|
+
let url;
|
|
3486
|
+
if (!useHash) {
|
|
3487
|
+
url = `${location.pathname.substr(1)}${location.search}`;
|
|
3488
|
+
router.navigateByUrl(url);
|
|
3489
|
+
window.addEventListener('popstate', () => {
|
|
3490
|
+
router.navigateByUrl(url);
|
|
3491
|
+
});
|
|
3492
|
+
}
|
|
3493
|
+
else {
|
|
3494
|
+
url = `${location.hash.substr(1)}${location.search}`;
|
|
3495
|
+
router.navigateByUrl(url);
|
|
3496
|
+
window.addEventListener('hashchange', () => {
|
|
3497
|
+
router.navigateByUrl(url);
|
|
3498
|
+
});
|
|
3431
3499
|
}
|
|
3432
3500
|
}
|
|
3433
3501
|
static createMultiTranslateLoader(addonUUID, addonService, libsName = ['ngx-lib']) {
|
|
@@ -3446,14 +3514,16 @@ class PepAddonService {
|
|
|
3446
3514
|
}
|
|
3447
3515
|
}
|
|
3448
3516
|
PepAddonService._customElementsMap = new Map();
|
|
3449
|
-
PepAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3450
|
-
PepAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3517
|
+
PepAddonService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAddonService, deps: [{ token: PepSessionService }, { token: PepHttpService }, { token: PepLoaderService }, { token: PepTranslateService }, { token: PepFileService }, { token: i6.Router, optional: true }, { token: i6.ActivatedRoute, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3518
|
+
PepAddonService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAddonService, providedIn: 'root' });
|
|
3519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepAddonService, decorators: [{
|
|
3452
3520
|
type: Injectable,
|
|
3453
3521
|
args: [{
|
|
3454
3522
|
providedIn: 'root',
|
|
3455
3523
|
}]
|
|
3456
|
-
}], ctorParameters: function () { return [{ type: PepSessionService }, { type: PepHttpService }, { type: PepLoaderService }, { type: PepTranslateService }, { type: PepFileService }, { type: i6.
|
|
3524
|
+
}], ctorParameters: function () { return [{ type: PepSessionService }, { type: PepHttpService }, { type: PepLoaderService }, { type: PepTranslateService }, { type: PepFileService }, { type: i6.Router, decorators: [{
|
|
3525
|
+
type: Optional
|
|
3526
|
+
}] }, { type: i6.ActivatedRoute, decorators: [{
|
|
3457
3527
|
type: Optional
|
|
3458
3528
|
}] }]; } });
|
|
3459
3529
|
|
|
@@ -3831,9 +3901,9 @@ class PepColorService {
|
|
|
3831
3901
|
return (hsp > 127.5) ? 'light' : 'dark';
|
|
3832
3902
|
}
|
|
3833
3903
|
}
|
|
3834
|
-
PepColorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3835
|
-
PepColorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3904
|
+
PepColorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepColorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3905
|
+
PepColorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepColorService, providedIn: 'root' });
|
|
3906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepColorService, decorators: [{
|
|
3837
3907
|
type: Injectable,
|
|
3838
3908
|
args: [{
|
|
3839
3909
|
providedIn: 'root',
|
|
@@ -3926,13 +3996,13 @@ class PepDataConvertorService {
|
|
|
3926
3996
|
dataField.Enabled = field.Enabled === false ? false : true;
|
|
3927
3997
|
dataField.FieldType = field.FieldType;
|
|
3928
3998
|
dataField.FormattedValue =
|
|
3929
|
-
field.FormattedValue || field.Value
|
|
3999
|
+
field.FormattedValue || field.Value;
|
|
3930
4000
|
dataField.GroupFields = null;
|
|
3931
4001
|
dataField.NotificationInfo = '';
|
|
3932
4002
|
dataField.OptionalValues = field.OptionalValues;
|
|
3933
4003
|
dataField.ReferenceObjectSubType = '';
|
|
3934
4004
|
dataField.TextColor = '';
|
|
3935
|
-
dataField.Value = field.Value
|
|
4005
|
+
dataField.Value = field.Value;
|
|
3936
4006
|
dataField.Visible = true;
|
|
3937
4007
|
return dataField;
|
|
3938
4008
|
}
|
|
@@ -3949,9 +4019,9 @@ class PepDataConvertorService {
|
|
|
3949
4019
|
return layout;
|
|
3950
4020
|
}
|
|
3951
4021
|
}
|
|
3952
|
-
PepDataConvertorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3953
|
-
PepDataConvertorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4022
|
+
PepDataConvertorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataConvertorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4023
|
+
PepDataConvertorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataConvertorService, providedIn: 'root' });
|
|
4024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDataConvertorService, decorators: [{
|
|
3955
4025
|
type: Injectable,
|
|
3956
4026
|
args: [{
|
|
3957
4027
|
providedIn: 'root',
|
|
@@ -4214,9 +4284,9 @@ class PepValidatorService {
|
|
|
4214
4284
|
return isNumber;
|
|
4215
4285
|
}
|
|
4216
4286
|
}
|
|
4217
|
-
PepValidatorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4218
|
-
PepValidatorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4287
|
+
PepValidatorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepValidatorService, deps: [{ token: i1.TranslateService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4288
|
+
PepValidatorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepValidatorService, providedIn: 'root' });
|
|
4289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepValidatorService, decorators: [{
|
|
4220
4290
|
type: Injectable,
|
|
4221
4291
|
args: [{
|
|
4222
4292
|
providedIn: 'root',
|
|
@@ -4250,9 +4320,9 @@ class PepWindowScrollingService {
|
|
|
4250
4320
|
return style;
|
|
4251
4321
|
}
|
|
4252
4322
|
}
|
|
4253
|
-
PepWindowScrollingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4254
|
-
PepWindowScrollingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4323
|
+
PepWindowScrollingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepWindowScrollingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4324
|
+
PepWindowScrollingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepWindowScrollingService, providedIn: 'root' });
|
|
4325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepWindowScrollingService, decorators: [{
|
|
4256
4326
|
type: Injectable,
|
|
4257
4327
|
args: [{
|
|
4258
4328
|
providedIn: 'root',
|
|
@@ -4298,8 +4368,8 @@ class PepFieldBase {
|
|
|
4298
4368
|
this.xAlignment = options.xAlignment ?? DEFAULT_HORIZONTAL_ALIGNMENT;
|
|
4299
4369
|
this.yAlignment = options.yAlignment ?? DEFAULT_VERTICAL_ALIGNMENT;
|
|
4300
4370
|
this.maxFieldCharacters = options.maxFieldCharacters ?? 0;
|
|
4301
|
-
this.minValue = options.minValue ??
|
|
4302
|
-
this.maxValue = options.maxValue ??
|
|
4371
|
+
this.minValue = options.minValue ?? undefined;
|
|
4372
|
+
this.maxValue = options.maxValue ?? undefined;
|
|
4303
4373
|
this.update(options);
|
|
4304
4374
|
}
|
|
4305
4375
|
getBaseValidators(isCheckbox = false) {
|
|
@@ -4318,6 +4388,13 @@ class PepFieldBase {
|
|
|
4318
4388
|
if (this.maxFieldCharacters > 0) {
|
|
4319
4389
|
validators.push(Validators.maxLength(this.maxFieldCharacters));
|
|
4320
4390
|
}
|
|
4391
|
+
//DI-26722
|
|
4392
|
+
// if (this.minValue) {
|
|
4393
|
+
// validators.push(Validators.min(this.minValue));
|
|
4394
|
+
// }
|
|
4395
|
+
// if (this.maxValue) {
|
|
4396
|
+
// validators.push(Validators.max(this.maxValue));
|
|
4397
|
+
// }
|
|
4321
4398
|
return validators;
|
|
4322
4399
|
}
|
|
4323
4400
|
getValidators() {
|
|
@@ -4393,10 +4470,18 @@ class PepTextboxField extends PepFieldBase {
|
|
|
4393
4470
|
}
|
|
4394
4471
|
else if (this.type === 'int' || this.type === 'real') {
|
|
4395
4472
|
validators.push(Validators.pattern(/^[\.,\-\+\d]+$/));
|
|
4396
|
-
if (!isNaN(this.minValue)) {
|
|
4473
|
+
if (this.minValue && !isNaN(this.minValue)) {
|
|
4474
|
+
validators.push(Validators.min(this.minValue));
|
|
4475
|
+
}
|
|
4476
|
+
if (this.maxValue && !isNaN(this.maxValue)) {
|
|
4477
|
+
validators.push(Validators.max(this.maxValue));
|
|
4478
|
+
}
|
|
4479
|
+
}
|
|
4480
|
+
else if (this.type === 'currency' || this.type === 'percentage') {
|
|
4481
|
+
if (this.minValue && !isNaN(this.minValue)) {
|
|
4397
4482
|
validators.push(Validators.min(this.minValue));
|
|
4398
4483
|
}
|
|
4399
|
-
if (!isNaN(this.maxValue)) {
|
|
4484
|
+
if (this.maxValue && !isNaN(this.maxValue)) {
|
|
4400
4485
|
validators.push(Validators.max(this.maxValue));
|
|
4401
4486
|
}
|
|
4402
4487
|
}
|
|
@@ -4489,11 +4574,29 @@ class PepQuantitySelectorField extends PepFieldBase {
|
|
|
4489
4574
|
}
|
|
4490
4575
|
}
|
|
4491
4576
|
class PepDateField extends PepFieldBase {
|
|
4577
|
+
// minDateValue?: Date;
|
|
4578
|
+
// maxDateValue?: Date;
|
|
4492
4579
|
constructor(options = {}) {
|
|
4493
4580
|
super(options);
|
|
4494
4581
|
this.controlType = 'date';
|
|
4495
4582
|
this.type = options.type || 'date';
|
|
4496
4583
|
}
|
|
4584
|
+
getValidators() {
|
|
4585
|
+
const validators = super.getBaseValidators();
|
|
4586
|
+
if (this.minValue && !isNaN(this.minValue)) {
|
|
4587
|
+
validators.push(Validators.min(this.minValue));
|
|
4588
|
+
}
|
|
4589
|
+
if (this.maxValue && !isNaN(this.maxValue)) {
|
|
4590
|
+
validators.push(Validators.max(this.maxValue));
|
|
4591
|
+
}
|
|
4592
|
+
// if (this.minDateValue) {
|
|
4593
|
+
// validators.push(Validators.min(this.minDateValue));
|
|
4594
|
+
// }
|
|
4595
|
+
// if (this.maxDateValue) {
|
|
4596
|
+
// validators.push(Validators.max(this.maxDateValue));
|
|
4597
|
+
// }
|
|
4598
|
+
return validators;
|
|
4599
|
+
}
|
|
4497
4600
|
}
|
|
4498
4601
|
class PepCheckboxField extends PepFieldBase {
|
|
4499
4602
|
constructor(options = {}) {
|
|
@@ -4511,8 +4614,10 @@ class PepSelectField extends PepFieldBase {
|
|
|
4511
4614
|
super(options);
|
|
4512
4615
|
this.controlType = 'select';
|
|
4513
4616
|
this.options = [];
|
|
4617
|
+
this.autoSortOptions = true;
|
|
4514
4618
|
this.type = options.type || 'select';
|
|
4515
4619
|
this.emptyOption = options.emptyOption;
|
|
4620
|
+
this.autoSortOptions = options.autoSortOptions ?? true;
|
|
4516
4621
|
this.update(options);
|
|
4517
4622
|
}
|
|
4518
4623
|
update(options) {
|
|
@@ -4681,9 +4786,9 @@ class PepScrollToService {
|
|
|
4681
4786
|
});
|
|
4682
4787
|
}
|
|
4683
4788
|
}
|
|
4684
|
-
PepScrollToService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4685
|
-
PepScrollToService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4686
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4789
|
+
PepScrollToService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepScrollToService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4790
|
+
PepScrollToService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepScrollToService, providedIn: 'root' });
|
|
4791
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepScrollToService, decorators: [{
|
|
4687
4792
|
type: Injectable,
|
|
4688
4793
|
args: [{
|
|
4689
4794
|
providedIn: 'root',
|
|
@@ -4693,6 +4798,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
4693
4798
|
/*
|
|
4694
4799
|
* Public API Surface of ngx-lib/core/scroll-to
|
|
4695
4800
|
*/
|
|
4801
|
+
// export * from './scroll-to.directive';
|
|
4696
4802
|
|
|
4697
4803
|
/*
|
|
4698
4804
|
* export from ngx-lib/core/scroll-to
|
|
@@ -4735,8 +4841,8 @@ const utilitiesList = [
|
|
|
4735
4841
|
const portalList = [PepAttachDirective, PepTargetDirective];
|
|
4736
4842
|
class PepNgxLibModule {
|
|
4737
4843
|
}
|
|
4738
|
-
PepNgxLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4739
|
-
PepNgxLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4844
|
+
PepNgxLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4845
|
+
PepNgxLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, declarations: [PepCapitalizePipe,
|
|
4740
4846
|
PepEncodePipe,
|
|
4741
4847
|
PepEscapePipe,
|
|
4742
4848
|
PepReplaceLineBreaksPipe,
|
|
@@ -4775,7 +4881,7 @@ PepNgxLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
4775
4881
|
PepPreventMultiClickDirective,
|
|
4776
4882
|
PepPrintDirective,
|
|
4777
4883
|
PepDivLoaderDirective, PepClipboardDirective, PepRtlClassDirective, PepRtlDirectionDirective, PepAttachDirective, PepTargetDirective, TranslateModule] });
|
|
4778
|
-
PepNgxLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4884
|
+
PepNgxLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, providers: [
|
|
4779
4885
|
httpInterceptorProviders,
|
|
4780
4886
|
PepAddonService,
|
|
4781
4887
|
PepColorService,
|
|
@@ -4798,7 +4904,7 @@ PepNgxLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version
|
|
|
4798
4904
|
], imports: [CommonModule,
|
|
4799
4905
|
HttpClientModule,
|
|
4800
4906
|
ReactiveFormsModule, TranslateModule] });
|
|
4801
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4907
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepNgxLibModule, decorators: [{
|
|
4802
4908
|
type: NgModule,
|
|
4803
4909
|
args: [{
|
|
4804
4910
|
declarations: [
|
|
@@ -4853,5 +4959,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
4853
4959
|
* Generated bundle index. Do not edit.
|
|
4854
4960
|
*/
|
|
4855
4961
|
|
|
4856
|
-
export { DEFAULT_HORIZONTAL_ALIGNMENT, DEFAULT_VERTICAL_ALIGNMENT, DateAgoPipe, FIELD_TYPE, FieldLayout, KeyValuePair, ObjectSingleData, ObjectsData, ObjectsDataRow, ObjectsDataRowCell, PepAddonService, PepAddressField, PepAttachDirective, PepAttachmentField, PepButtonBlurDirective, PepButtonLoaderDirective, PepCapitalizePipe, PepCheckboxField, PepClipboardDirective, PepClipboardService, PepColorService, PepCookieService, PepCustomizationService, PepDataConvertorService, PepDataQaDirective, PepDateField, PepDateFormatterPipe, PepDateStringFormatterPipe, PepDivLoaderDirective, PepEncodePipe, PepEscapePipe, PepFieldBase, PepFieldData, PepFileService, PepGuid, PepHttpService, PepImageField, PepImagesField, PepIndicatorsField, PepInputAutoWidthDirective, PepInternalButtonField, PepInternalCaruselField, PepInternalMenuField, PepInternalPageField, PepJwtHelperService, PepLayoutService, PepLinkField, PepLoaderService, PepMenuBlurDirective, PepNgxLibModule, PepPlaceholderField, PepPortalService, PepPreventMultiClickDirective, PepPrintDirective, PepQuantitySelectorField, PepReplaceLineBreaksPipe, PepRichHtmlTextareaField, PepRowData, PepRtlClassDirective, PepRtlDirectionDirective, PepSafeHtmlPipe, PepSafePipe, PepScreenSizeType, PepScrollToService, PepSelectField, PepSeparatorField, PepSessionService, PepSignatureField, PepSplitUppercasePipe, PepTargetDirective, PepTextareaField, PepTextboxField, PepToNumberPipe, PepTranslateService, PepUtilitiesService, PepValidatorService, PepWindowScrollingService, SmartSearchResponse, SmartSearchValues, Test, UIControl, UIControlField, X_ALIGNMENT_TYPE, Y_ALIGNMENT_TYPE };
|
|
4962
|
+
export { BaseDestroyerDirective, DEFAULT_HORIZONTAL_ALIGNMENT, DEFAULT_VERTICAL_ALIGNMENT, DateAgoPipe, FIELD_TYPE, FieldLayout, KeyValuePair, ObjectSingleData, ObjectsData, ObjectsDataRow, ObjectsDataRowCell, PepAddonService, PepAddressField, PepAttachDirective, PepAttachmentField, PepButtonBlurDirective, PepButtonLoaderDirective, PepCapitalizePipe, PepCheckboxField, PepClipboardDirective, PepClipboardService, PepColorService, PepCookieService, PepCustomizationService, PepDataConvertorService, PepDataQaDirective, PepDateField, PepDateFormatterPipe, PepDateStringFormatterPipe, PepDivLoaderDirective, PepEncodePipe, PepEscapePipe, PepFieldBase, PepFieldData, PepFileService, PepGuid, PepHttpService, PepImageField, PepImagesField, PepIndicatorsField, PepInputAutoWidthDirective, PepInternalButtonField, PepInternalCaruselField, PepInternalMenuField, PepInternalPageField, PepJwtHelperService, PepLayoutService, PepLinkField, PepLoaderService, PepMenuBlurDirective, PepNgxLibModule, PepPlaceholderField, PepPortalService, PepPreventMultiClickDirective, PepPrintDirective, PepQuantitySelectorField, PepReplaceLineBreaksPipe, PepRichHtmlTextareaField, PepRowData, PepRtlClassDirective, PepRtlDirectionDirective, PepSafeHtmlPipe, PepSafePipe, PepScreenSizeType, PepScrollToService, PepSelectField, PepSeparatorField, PepSessionService, PepSignatureField, PepSplitUppercasePipe, PepTargetDirective, PepTextareaField, PepTextboxField, PepToNumberPipe, PepTranslateService, PepUtilitiesService, PepValidatorService, PepWindowScrollingService, SmartSearchResponse, SmartSearchValues, Test, UIControl, UIControlField, X_ALIGNMENT_TYPE, Y_ALIGNMENT_TYPE };
|
|
4857
4963
|
//# sourceMappingURL=pepperi-addons-ngx-lib.mjs.map
|