@pepperi-addons/ngx-lib 0.5.0-ng15.3 → 0.5.0-ng16.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 +1 -1
- package/bread-crumbs/bread-crumbs.component.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 +1 -1
- package/chips/chips.component.d.ts +1 -1
- package/color/color.component.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/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/prevent-multi-click.directive.d.ts +1 -1
- package/core/common/directives/print.directive.d.ts +1 -1
- package/core/portal/attach.directive.d.ts +1 -1
- package/core/portal/target.directive.d.ts +1 -1
- package/date/date.component.d.ts +1 -1
- package/dialog/dialog.component.d.ts +1 -1
- package/draggable-items/draggable-item/draggable-item.component.d.ts +1 -1
- package/draggable-items/draggable-items.component.d.ts +1 -1
- package/esm2022/address/address.component.mjs +112 -0
- package/{esm2020 → esm2022}/address/address.module.mjs +23 -23
- package/{esm2020 → esm2022}/attachment/attachment.component.mjs +65 -61
- package/{esm2020 → esm2022}/attachment/attachment.module.mjs +21 -21
- package/esm2022/bread-crumbs/bread-crumbs.component.mjs +87 -0
- package/esm2022/bread-crumbs/bread-crumbs.model.mjs +10 -0
- package/esm2022/bread-crumbs/bread-crumbs.module.mjs +51 -0
- package/{esm2020 → esm2022}/button/button.component.mjs +76 -53
- package/esm2022/button/button.model.mjs +13 -0
- package/{esm2020 → esm2022}/button/button.module.mjs +19 -19
- package/esm2022/carousel/carousel-item.directive.mjs +34 -0
- package/esm2022/carousel/carousel.component.mjs +765 -0
- package/{esm2020 → esm2022}/carousel/carousel.module.mjs +5 -5
- package/esm2022/checkbox/checkbox.component.mjs +182 -0
- package/esm2022/checkbox/checkbox.module.mjs +64 -0
- package/esm2022/chips/chips.component.mjs +187 -0
- package/esm2022/chips/chips.module.mjs +82 -0
- package/{esm2020 → esm2022}/chips/chips.service.mjs +5 -5
- package/esm2022/color/color-picker.component.mjs +229 -0
- package/esm2022/color/color.component.mjs +93 -0
- package/esm2022/color/color.module.mjs +93 -0
- package/{esm2020 → esm2022}/core/clipboard/clipboard.directive.mjs +4 -4
- package/{esm2020 → esm2022}/core/clipboard/clipboard.service.mjs +4 -4
- package/esm2022/core/common/directives/auto-width.directive.mjs +79 -0
- package/esm2022/core/common/directives/base-destroyer.directive.mjs +23 -0
- package/esm2022/core/common/directives/button-blur.directive.mjs +25 -0
- package/esm2022/core/common/directives/button-loader.directive.mjs +117 -0
- package/esm2022/core/common/directives/data-qa.directive.mjs +26 -0
- package/esm2022/core/common/directives/div-loader.directive.mjs +67 -0
- package/esm2022/core/common/directives/menu-blur.directive.mjs +33 -0
- package/esm2022/core/common/directives/prevent-multi-click.directive.mjs +25 -0
- package/esm2022/core/common/directives/print.directive.mjs +176 -0
- package/esm2022/core/common/model/wapi.model.mjs +247 -0
- package/esm2022/core/common/pipes/common-pipes.mjs +180 -0
- package/esm2022/core/common/pipes/date-ago.pipe.mjs +47 -0
- package/esm2022/core/common/services/addon.service.mjs +234 -0
- package/esm2022/core/common/services/color.service.mjs +383 -0
- package/esm2022/core/common/services/cookie.service.mjs +156 -0
- package/esm2022/core/common/services/data-convertor.service.mjs +139 -0
- package/esm2022/core/common/services/file.service.mjs +252 -0
- package/{esm2020 → esm2022}/core/common/services/jwt-helper.service.mjs +4 -4
- package/esm2022/core/common/services/session.service.mjs +73 -0
- package/esm2022/core/common/services/translate.service.mjs +47 -0
- package/esm2022/core/common/services/utilities.service.mjs +302 -0
- package/esm2022/core/common/services/validator.service.mjs +273 -0
- package/esm2022/core/common/services/window-scrolling.service.mjs +38 -0
- package/esm2022/core/customization/customization.model.mjs +377 -0
- package/esm2022/core/customization/customization.service.mjs +802 -0
- package/{esm2020 → esm2022}/core/http/interceptors/error.interceptor.mjs +4 -4
- package/esm2022/core/http/interceptors/loader.interceptor.mjs +33 -0
- package/{esm2020 → esm2022}/core/http/interceptors/profiler.interceptor.mjs +4 -4
- package/esm2022/core/http/services/http.service.mjs +158 -0
- package/{esm2020 → esm2022}/core/http/services/loader.service.mjs +6 -6
- package/esm2022/core/layout/layout.service.mjs +171 -0
- package/esm2022/core/layout/rtl.directive.mjs +50 -0
- package/esm2022/core/portal/attach.directive.mjs +30 -0
- package/esm2022/core/portal/portal.service.mjs +37 -0
- package/esm2022/core/portal/target.directive.mjs +27 -0
- package/{esm2020 → esm2022}/core/scroll-to/scroll-to.service.mjs +4 -4
- package/esm2022/date/date.component.mjs +345 -0
- package/{esm2020 → esm2022}/date/date.model.mjs +7 -7
- package/esm2022/date/date.module.mjs +89 -0
- package/esm2022/dialog/default-dialog.component.mjs +39 -0
- package/esm2022/dialog/dialog.component.mjs +37 -0
- package/esm2022/dialog/dialog.model.mjs +41 -0
- package/esm2022/dialog/dialog.module.mjs +59 -0
- package/esm2022/dialog/dialog.service.mjs +106 -0
- package/esm2022/draggable-items/draggable-item/draggable-item.component.mjs +68 -0
- package/esm2022/draggable-items/draggable-items.component.mjs +95 -0
- package/esm2022/draggable-items/draggable-items.module.mjs +65 -0
- package/esm2022/field-title/field-title.component.mjs +46 -0
- package/esm2022/field-title/field-title.module.mjs +48 -0
- package/{esm2020 → esm2022}/files-uploader/files-uploader.component.mjs +36 -27
- package/esm2022/files-uploader/files-uploader.module.mjs +80 -0
- package/esm2022/form/field-generator.component.mjs +152 -0
- package/esm2022/form/form.component.mjs +1258 -0
- package/esm2022/form/form.module.mjs +180 -0
- package/esm2022/form/indicators.component.mjs +23 -0
- package/esm2022/form/internal-button.component.mjs +188 -0
- package/esm2022/form/internal-carusel.component.mjs +126 -0
- package/esm2022/form/internal-carusel.service.mjs +34 -0
- package/esm2022/form/internal-field-generator.component.mjs +146 -0
- package/esm2022/form/internal-form.component.mjs +1236 -0
- package/esm2022/form/internal-list.component.mjs +524 -0
- package/esm2022/form/internal-menu.component.mjs +62 -0
- package/esm2022/form/internal-page.component.mjs +380 -0
- package/esm2022/form/internal-page.service.mjs +125 -0
- package/esm2022/group-buttons/group-buttons.component.mjs +73 -0
- package/esm2022/group-buttons/group-buttons.module.mjs +60 -0
- package/esm2022/icon/icon-registry.service.mjs +24 -0
- package/esm2022/icon/icon.component.mjs +95 -0
- package/{esm2020 → esm2022}/icon/icon.module.mjs +5 -5
- package/esm2022/icon/icon.service.mjs +34 -0
- package/{esm2020 → esm2022}/image/image.component.mjs +45 -39
- package/esm2022/image/image.module.mjs +74 -0
- package/esm2022/image/image.service.mjs +53 -0
- package/esm2022/images-filmstrip/images-filmstrip.component.mjs +360 -0
- package/esm2022/images-filmstrip/images-filmstrip.module.mjs +84 -0
- package/esm2022/link/link.component.mjs +324 -0
- package/esm2022/link/link.module.mjs +81 -0
- package/{esm2020 → esm2022}/link/link.pipes.mjs +4 -4
- package/esm2022/list/list-actions.component.mjs +42 -0
- package/esm2022/list/list-carousel.component.mjs +110 -0
- package/esm2022/list/list-chooser.component.mjs +64 -0
- package/esm2022/list/list-pager.component.mjs +126 -0
- package/{esm2020 → esm2022}/list/list-sorting.component.mjs +15 -13
- package/esm2022/list/list-total.component.mjs +31 -0
- package/esm2022/list/list-views.component.mjs +86 -0
- package/esm2022/list/list.component.mjs +1394 -0
- package/{esm2020 → esm2022}/list/list.model.mjs +4 -1
- package/esm2022/list/list.module.mjs +145 -0
- package/esm2022/list/list.pipes.mjs +45 -0
- package/esm2022/list/virtual-scroller.mjs +1124 -0
- package/esm2022/menu/menu-item.component.mjs +111 -0
- package/esm2022/menu/menu.component.mjs +218 -0
- package/esm2022/menu/menu.model.mjs +23 -0
- package/esm2022/menu/menu.module.mjs +60 -0
- package/{esm2020 → esm2022}/ngx-lib.module.mjs +65 -65
- package/esm2022/page-layout/page-layout.component.mjs +41 -0
- package/{esm2020 → esm2022}/page-layout/page-layout.module.mjs +13 -13
- package/esm2022/profile-data-views-list/profile-data-view/profile-data-view.component.mjs +48 -0
- package/esm2022/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.mjs +82 -0
- package/esm2022/profile-data-views-list/profile-data-views-list.component.mjs +131 -0
- package/esm2022/profile-data-views-list/profile-data-views-list.module.mjs +89 -0
- package/esm2022/quantity-selector/quantity-selector-validation.directive.mjs +53 -0
- package/{esm2020 → esm2022}/quantity-selector/quantity-selector.component.mjs +83 -73
- package/esm2022/quantity-selector/quantity-selector.module.mjs +83 -0
- package/{esm2020 → esm2022}/quantity-selector/quantity-selector.pipes.mjs +4 -4
- package/esm2022/query-builder/common/model/type-map.mjs +28 -0
- package/esm2022/query-builder/common/services/output-query.service.mjs +118 -0
- package/esm2022/query-builder/common/services/query-structure.service.mjs +263 -0
- package/esm2022/query-builder/common/services/type-convertor.service.mjs +42 -0
- package/esm2022/query-builder/query-builder-item/query-builder-item.component.mjs +134 -0
- package/esm2022/query-builder/query-builder-section/query-builder-section.component.mjs +76 -0
- package/esm2022/query-builder/query-builder.component.mjs +116 -0
- package/esm2022/query-builder/query-builder.module.mjs +71 -0
- package/{esm2020 → esm2022}/query-builder/query-builder.service.mjs +4 -4
- package/esm2022/remote-loader/addon-block-loader.component.mjs +115 -0
- package/esm2022/remote-loader/addon-block-loader.service.mjs +66 -0
- package/esm2022/remote-loader/remote-loader-element.component.mjs +179 -0
- package/esm2022/remote-loader/remote-loader.component.mjs +120 -0
- package/{esm2020 → esm2022}/remote-loader/remote-loader.module.mjs +26 -26
- package/esm2022/remote-loader/remote-loader.service.mjs +107 -0
- package/{esm2020 → esm2022}/rich-html-textarea/rich-html-textarea.component.mjs +38 -30
- package/esm2022/rich-html-textarea/rich-html-textarea.module.mjs +96 -0
- package/esm2022/search/search.component.mjs +322 -0
- package/esm2022/search/search.module.mjs +71 -0
- package/esm2022/select/select.component.mjs +341 -0
- package/esm2022/select/select.module.mjs +71 -0
- package/esm2022/select-panel/select-panel.component.mjs +161 -0
- package/{esm2020 → esm2022}/select-panel/select-panel.module.mjs +31 -31
- package/esm2022/separator/separator.component.mjs +65 -0
- package/{esm2020 → esm2022}/separator/separator.module.mjs +5 -5
- package/esm2022/side-bar/side-bar.component.mjs +141 -0
- package/esm2022/side-bar/side-bar.module.mjs +56 -0
- package/esm2022/signature/signature-dialog.component.mjs +82 -0
- package/{esm2020 → esm2022}/signature/signature.component.mjs +41 -31
- package/esm2022/signature/signature.module.mjs +92 -0
- package/esm2022/size-detector/size-detector.component.mjs +97 -0
- package/{esm2020 → esm2022}/size-detector/size-detector.module.mjs +13 -13
- package/esm2022/skeleton-loader/skeleton-loader.component.mjs +46 -0
- package/{esm2020 → esm2022}/skeleton-loader/skeleton-loader.module.mjs +7 -7
- package/esm2022/slider/slider.component.mjs +105 -0
- package/{esm2020 → esm2022}/slider/slider.module.mjs +17 -17
- package/esm2022/smart-filters/boolean-filter/boolean-filter.component.mjs +74 -0
- package/esm2022/smart-filters/common/filter-actions.component.mjs +28 -0
- package/esm2022/smart-filters/common/model/base-filter-component.mjs +307 -0
- package/esm2022/smart-filters/common/model/field.mjs +125 -0
- package/esm2022/smart-filters/common/model/operator.mjs +287 -0
- package/esm2022/smart-filters/date-filter/date-filter.component.mjs +181 -0
- package/esm2022/smart-filters/multi-select-filter/multi-select-filter.component.mjs +202 -0
- package/esm2022/smart-filters/number-filter/number-filter.component.mjs +133 -0
- package/esm2022/smart-filters/smart-filters.component.mjs +143 -0
- package/esm2022/smart-filters/smart-filters.module.mjs +159 -0
- package/esm2022/smart-filters/text-filter/text-filter.component.mjs +110 -0
- package/esm2022/snack-bar/default-snack-bar.component.mjs +31 -0
- package/esm2022/snack-bar/snack-bar.component.mjs +28 -0
- package/esm2022/snack-bar/snack-bar.model.mjs +9 -0
- package/esm2022/snack-bar/snack-bar.module.mjs +63 -0
- package/esm2022/snack-bar/snack-bar.service.mjs +62 -0
- package/{esm2020 → esm2022}/textarea/textarea.component.mjs +35 -27
- package/esm2022/textarea/textarea.module.mjs +83 -0
- package/esm2022/textbox/textbox-validation.directive.mjs +96 -0
- package/esm2022/textbox/textbox.component.mjs +646 -0
- package/esm2022/textbox/textbox.module.mjs +73 -0
- package/esm2022/textbox-icon/textbox-icon.component.mjs +50 -0
- package/esm2022/textbox-icon/textbox-icon.module.mjs +65 -0
- package/esm2022/top-bar/top-bar.component.mjs +127 -0
- package/esm2022/top-bar/top-bar.module.mjs +63 -0
- package/fesm2022/pepperi-addons-ngx-lib-address.mjs +173 -0
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-address.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-attachment.mjs +84 -80
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-attachment.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-bread-crumbs.mjs +34 -28
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-bread-crumbs.mjs.map +1 -1
- package/fesm2022/pepperi-addons-ngx-lib-button.mjs +227 -0
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-button.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-carousel.mjs +76 -55
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-carousel.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-checkbox.mjs +54 -48
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-checkbox.mjs.map +1 -1
- package/fesm2022/pepperi-addons-ngx-lib-chips.mjs +308 -0
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-chips.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-color.mjs +92 -84
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-color.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-date.mjs +116 -104
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-date.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-dialog.mjs +50 -36
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-dialog.mjs.map +1 -1
- package/fesm2022/pepperi-addons-ngx-lib-draggable-items.mjs +229 -0
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -1
- package/fesm2022/pepperi-addons-ngx-lib-field-title.mjs +101 -0
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-field-title.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-files-uploader.mjs +66 -56
- package/fesm2022/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-form.mjs +391 -310
- package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-form.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-group-buttons.mjs +38 -35
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-group-buttons.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-icon.mjs +23 -18
- package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-icon.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-image.mjs +77 -68
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-image.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-images-filmstrip.mjs +83 -60
- package/fesm2022/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-link.mjs +113 -103
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-link.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-list.mjs +339 -273
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-list.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-menu.mjs +89 -87
- package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-menu.mjs.map +1 -1
- package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-page-layout.mjs +23 -17
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-page-layout.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-profile-data-views-list.mjs +72 -63
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-quantity-selector.mjs +125 -110
- package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-query-builder.mjs +93 -66
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-query-builder.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-remote-loader.mjs +84 -64
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-remote-loader.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-rich-html-textarea.mjs +76 -67
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-rich-html-textarea.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-search.mjs +85 -79
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-search.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-select-panel.mjs +53 -49
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-select-panel.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-select.mjs +74 -66
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-select.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-separator.mjs +18 -16
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-separator.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-side-bar.mjs +44 -38
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-side-bar.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-signature.mjs +95 -81
- package/fesm2022/pepperi-addons-ngx-lib-signature.mjs.map +1 -0
- package/fesm2022/pepperi-addons-ngx-lib-size-detector.mjs +139 -0
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-size-detector.mjs.map +1 -1
- package/fesm2022/pepperi-addons-ngx-lib-skeleton-loader.mjs +78 -0
- package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +1 -1
- package/fesm2022/pepperi-addons-ngx-lib-slider.mjs +154 -0
- package/fesm2022/pepperi-addons-ngx-lib-slider.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-smart-filters.mjs +186 -158
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-snack-bar.mjs +42 -34
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-snack-bar.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-textarea.mjs +67 -58
- package/{fesm2015 → fesm2022}/pepperi-addons-ngx-lib-textarea.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-textbox-icon.mjs +28 -25
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-textbox-icon.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-textbox.mjs +156 -144
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-textbox.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-top-bar.mjs +48 -32
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib.mjs +661 -449
- package/{fesm2020 → fesm2022}/pepperi-addons-ngx-lib.mjs.map +1 -1
- package/field-title/field-title.component.d.ts +1 -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/form.module.d.ts +2 -2
- package/form/indicators.component.d.ts +1 -1
- package/form/internal-button.component.d.ts +1 -1
- package/form/internal-carusel.component.d.ts +1 -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 +1 -1
- package/form/internal-menu.component.d.ts +1 -1
- package/form/internal-page.component.d.ts +1 -1
- package/group-buttons/group-buttons.component.d.ts +1 -1
- package/icon/icon.component.d.ts +1 -1
- package/image/image.component.d.ts +1 -1
- package/images-filmstrip/images-filmstrip.component.d.ts +1 -1
- package/link/link.component.d.ts +1 -1
- package/list/list-actions.component.d.ts +1 -1
- package/list/list-carousel.component.d.ts +1 -1
- 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 +1 -1
- package/list/list-views.component.d.ts +1 -1
- package/list/list.component.d.ts +1 -1
- package/list/virtual-scroller.d.ts +1 -1
- package/menu/menu-item.component.d.ts +1 -1
- package/menu/menu.component.d.ts +1 -1
- package/package.json +145 -235
- package/page-layout/page-layout.component.d.ts +1 -1
- package/profile-data-views-list/profile-data-view/profile-data-view.component.d.ts +1 -1
- package/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.d.ts +1 -1
- package/profile-data-views-list/profile-data-views-list.component.d.ts +1 -1
- package/quantity-selector/quantity-selector-validation.directive.d.ts +1 -1
- package/quantity-selector/quantity-selector.component.d.ts +1 -1
- package/query-builder/query-builder-item/query-builder-item.component.d.ts +1 -1
- 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/remote-loader/addon-block-loader.component.d.ts +1 -1
- package/remote-loader/remote-loader-element.component.d.ts +1 -1
- package/remote-loader/remote-loader.component.d.ts +1 -1
- package/rich-html-textarea/rich-html-textarea.component.d.ts +1 -1
- package/search/search.component.d.ts +1 -1
- package/select/select.component.d.ts +1 -1
- package/select-panel/select-panel.component.d.ts +1 -1
- package/separator/separator.component.d.ts +1 -1
- package/side-bar/side-bar.component.d.ts +1 -1
- package/signature/signature-dialog.component.d.ts +2 -2
- package/signature/signature.component.d.ts +1 -1
- package/signature/signature.module.d.ts +2 -2
- package/size-detector/size-detector.component.d.ts +1 -1
- package/skeleton-loader/skeleton-loader.component.d.ts +1 -1
- package/slider/slider.component.d.ts +1 -1
- package/slider/slider.component.theme.scss +13 -6
- package/smart-filters/boolean-filter/boolean-filter.component.d.ts +1 -1
- package/smart-filters/common/filter-actions.component.d.ts +1 -1
- package/smart-filters/common/model/base-filter-component.d.ts +1 -1
- package/smart-filters/smart-filters.component.d.ts +1 -1
- package/snack-bar/snack-bar.component.d.ts +1 -1
- package/textarea/textarea.component.d.ts +1 -1
- package/textbox/textbox-validation.directive.d.ts +1 -1
- package/textbox/textbox.component.d.ts +1 -1
- package/textbox-icon/textbox-icon.component.d.ts +1 -1
- package/top-bar/top-bar.component.d.ts +1 -1
- package/esm2020/address/address.component.mjs +0 -109
- package/esm2020/bread-crumbs/bread-crumbs.component.mjs +0 -85
- package/esm2020/bread-crumbs/bread-crumbs.model.mjs +0 -7
- package/esm2020/bread-crumbs/bread-crumbs.module.mjs +0 -50
- package/esm2020/button/button.model.mjs +0 -6
- package/esm2020/carousel/carousel-item.directive.mjs +0 -33
- package/esm2020/carousel/carousel.component.mjs +0 -745
- package/esm2020/checkbox/checkbox.component.mjs +0 -177
- package/esm2020/checkbox/checkbox.module.mjs +0 -63
- package/esm2020/chips/chips.component.mjs +0 -185
- package/esm2020/chips/chips.module.mjs +0 -81
- package/esm2020/color/color-picker.component.mjs +0 -224
- package/esm2020/color/color.component.mjs +0 -90
- package/esm2020/color/color.module.mjs +0 -93
- package/esm2020/core/common/directives/auto-width.directive.mjs +0 -77
- package/esm2020/core/common/directives/base-destroyer.directive.mjs +0 -22
- package/esm2020/core/common/directives/button-blur.directive.mjs +0 -24
- package/esm2020/core/common/directives/button-loader.directive.mjs +0 -112
- package/esm2020/core/common/directives/data-qa.directive.mjs +0 -23
- package/esm2020/core/common/directives/div-loader.directive.mjs +0 -61
- package/esm2020/core/common/directives/menu-blur.directive.mjs +0 -32
- package/esm2020/core/common/directives/prevent-multi-click.directive.mjs +0 -27
- package/esm2020/core/common/directives/print.directive.mjs +0 -170
- package/esm2020/core/common/model/wapi.model.mjs +0 -157
- package/esm2020/core/common/pipes/common-pipes.mjs +0 -177
- package/esm2020/core/common/pipes/date-ago.pipe.mjs +0 -46
- package/esm2020/core/common/services/addon.service.mjs +0 -227
- package/esm2020/core/common/services/color.service.mjs +0 -385
- package/esm2020/core/common/services/cookie.service.mjs +0 -153
- package/esm2020/core/common/services/data-convertor.service.mjs +0 -122
- package/esm2020/core/common/services/file.service.mjs +0 -250
- package/esm2020/core/common/services/session.service.mjs +0 -72
- package/esm2020/core/common/services/translate.service.mjs +0 -46
- package/esm2020/core/common/services/utilities.service.mjs +0 -301
- package/esm2020/core/common/services/validator.service.mjs +0 -272
- package/esm2020/core/common/services/window-scrolling.service.mjs +0 -36
- package/esm2020/core/customization/customization.model.mjs +0 -338
- package/esm2020/core/customization/customization.service.mjs +0 -799
- package/esm2020/core/http/interceptors/loader.interceptor.mjs +0 -32
- package/esm2020/core/http/services/http.service.mjs +0 -155
- package/esm2020/core/layout/layout.service.mjs +0 -168
- package/esm2020/core/layout/rtl.directive.mjs +0 -44
- package/esm2020/core/portal/attach.directive.mjs +0 -27
- package/esm2020/core/portal/portal.service.mjs +0 -36
- package/esm2020/core/portal/target.directive.mjs +0 -24
- package/esm2020/date/date.component.mjs +0 -334
- package/esm2020/date/date.module.mjs +0 -88
- package/esm2020/dialog/default-dialog.component.mjs +0 -37
- package/esm2020/dialog/dialog.component.mjs +0 -36
- package/esm2020/dialog/dialog.model.mjs +0 -33
- package/esm2020/dialog/dialog.module.mjs +0 -59
- package/esm2020/dialog/dialog.service.mjs +0 -103
- package/esm2020/draggable-items/draggable-item/draggable-item.component.mjs +0 -67
- package/esm2020/draggable-items/draggable-items.component.mjs +0 -94
- package/esm2020/draggable-items/draggable-items.module.mjs +0 -64
- package/esm2020/field-title/field-title.component.mjs +0 -48
- package/esm2020/field-title/field-title.module.mjs +0 -47
- package/esm2020/files-uploader/files-uploader.module.mjs +0 -79
- package/esm2020/form/field-generator.component.mjs +0 -152
- package/esm2020/form/form.component.mjs +0 -1240
- package/esm2020/form/form.module.mjs +0 -179
- package/esm2020/form/indicators.component.mjs +0 -23
- package/esm2020/form/internal-button.component.mjs +0 -184
- package/esm2020/form/internal-carusel.component.mjs +0 -121
- package/esm2020/form/internal-carusel.service.mjs +0 -32
- package/esm2020/form/internal-field-generator.component.mjs +0 -146
- package/esm2020/form/internal-form.component.mjs +0 -1218
- package/esm2020/form/internal-list.component.mjs +0 -513
- package/esm2020/form/internal-menu.component.mjs +0 -64
- package/esm2020/form/internal-page.component.mjs +0 -361
- package/esm2020/form/internal-page.service.mjs +0 -120
- package/esm2020/group-buttons/group-buttons.component.mjs +0 -71
- package/esm2020/group-buttons/group-buttons.module.mjs +0 -59
- package/esm2020/icon/icon-registry.service.mjs +0 -26
- package/esm2020/icon/icon.component.mjs +0 -91
- package/esm2020/icon/icon.service.mjs +0 -31
- package/esm2020/image/image.module.mjs +0 -74
- package/esm2020/image/image.service.mjs +0 -50
- package/esm2020/images-filmstrip/images-filmstrip.component.mjs +0 -338
- package/esm2020/images-filmstrip/images-filmstrip.module.mjs +0 -83
- package/esm2020/link/link.component.mjs +0 -315
- package/esm2020/link/link.module.mjs +0 -80
- package/esm2020/list/list-actions.component.mjs +0 -44
- package/esm2020/list/list-carousel.component.mjs +0 -107
- package/esm2020/list/list-chooser.component.mjs +0 -64
- package/esm2020/list/list-pager.component.mjs +0 -120
- package/esm2020/list/list-total.component.mjs +0 -33
- package/esm2020/list/list-views.component.mjs +0 -85
- package/esm2020/list/list.component.mjs +0 -1382
- package/esm2020/list/list.module.mjs +0 -144
- package/esm2020/list/list.pipes.mjs +0 -47
- package/esm2020/list/virtual-scroller.mjs +0 -1080
- package/esm2020/menu/menu-item.component.mjs +0 -115
- package/esm2020/menu/menu.component.mjs +0 -216
- package/esm2020/menu/menu.model.mjs +0 -20
- package/esm2020/menu/menu.module.mjs +0 -59
- package/esm2020/page-layout/page-layout.component.mjs +0 -35
- package/esm2020/profile-data-views-list/profile-data-view/profile-data-view.component.mjs +0 -45
- package/esm2020/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.mjs +0 -81
- package/esm2020/profile-data-views-list/profile-data-views-list.component.mjs +0 -127
- package/esm2020/profile-data-views-list/profile-data-views-list.module.mjs +0 -88
- package/esm2020/quantity-selector/quantity-selector-validation.directive.mjs +0 -49
- package/esm2020/quantity-selector/quantity-selector.module.mjs +0 -82
- package/esm2020/query-builder/common/model/type-map.mjs +0 -27
- package/esm2020/query-builder/common/services/output-query.service.mjs +0 -116
- package/esm2020/query-builder/common/services/query-structure.service.mjs +0 -258
- package/esm2020/query-builder/common/services/type-convertor.service.mjs +0 -42
- package/esm2020/query-builder/query-builder-item/query-builder-item.component.mjs +0 -127
- package/esm2020/query-builder/query-builder-section/query-builder-section.component.mjs +0 -71
- package/esm2020/query-builder/query-builder.component.mjs +0 -110
- package/esm2020/query-builder/query-builder.module.mjs +0 -70
- package/esm2020/remote-loader/addon-block-loader.component.mjs +0 -112
- package/esm2020/remote-loader/addon-block-loader.service.mjs +0 -65
- package/esm2020/remote-loader/remote-loader-element.component.mjs +0 -171
- package/esm2020/remote-loader/remote-loader.component.mjs +0 -115
- package/esm2020/remote-loader/remote-loader.service.mjs +0 -104
- package/esm2020/rich-html-textarea/rich-html-textarea.module.mjs +0 -95
- package/esm2020/search/search.component.mjs +0 -317
- package/esm2020/search/search.module.mjs +0 -70
- package/esm2020/select/select.component.mjs +0 -334
- package/esm2020/select/select.module.mjs +0 -70
- package/esm2020/select-panel/select-panel.component.mjs +0 -157
- package/esm2020/separator/separator.component.mjs +0 -63
- package/esm2020/side-bar/side-bar.component.mjs +0 -136
- package/esm2020/side-bar/side-bar.module.mjs +0 -55
- package/esm2020/signature/signature-dialog.component.mjs +0 -79
- package/esm2020/signature/signature.module.mjs +0 -91
- package/esm2020/size-detector/size-detector.component.mjs +0 -94
- package/esm2020/skeleton-loader/skeleton-loader.component.mjs +0 -44
- package/esm2020/slider/slider.component.mjs +0 -101
- package/esm2020/smart-filters/boolean-filter/boolean-filter.component.mjs +0 -75
- package/esm2020/smart-filters/common/filter-actions.component.mjs +0 -29
- package/esm2020/smart-filters/common/model/base-filter-component.mjs +0 -290
- package/esm2020/smart-filters/common/model/field.mjs +0 -117
- package/esm2020/smart-filters/common/model/operator.mjs +0 -280
- package/esm2020/smart-filters/date-filter/date-filter.component.mjs +0 -182
- package/esm2020/smart-filters/multi-select-filter/multi-select-filter.component.mjs +0 -200
- package/esm2020/smart-filters/number-filter/number-filter.component.mjs +0 -136
- package/esm2020/smart-filters/smart-filters.component.mjs +0 -141
- package/esm2020/smart-filters/smart-filters.module.mjs +0 -158
- package/esm2020/smart-filters/text-filter/text-filter.component.mjs +0 -113
- package/esm2020/snack-bar/default-snack-bar.component.mjs +0 -29
- package/esm2020/snack-bar/snack-bar.component.mjs +0 -26
- package/esm2020/snack-bar/snack-bar.model.mjs +0 -7
- package/esm2020/snack-bar/snack-bar.module.mjs +0 -63
- package/esm2020/snack-bar/snack-bar.service.mjs +0 -60
- package/esm2020/textarea/textarea.module.mjs +0 -82
- package/esm2020/textbox/textbox-validation.directive.mjs +0 -93
- package/esm2020/textbox/textbox.component.mjs +0 -638
- package/esm2020/textbox/textbox.module.mjs +0 -72
- package/esm2020/textbox-icon/textbox-icon.component.mjs +0 -48
- package/esm2020/textbox-icon/textbox-icon.module.mjs +0 -64
- package/esm2020/top-bar/top-bar.component.mjs +0 -112
- package/esm2020/top-bar/top-bar.module.mjs +0 -62
- package/fesm2015/pepperi-addons-ngx-lib-address.mjs +0 -170
- package/fesm2015/pepperi-addons-ngx-lib-address.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs +0 -306
- package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.mjs +0 -147
- package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-button.mjs +0 -197
- package/fesm2015/pepperi-addons-ngx-lib-button.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-carousel.mjs +0 -804
- package/fesm2015/pepperi-addons-ngx-lib-carousel.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-checkbox.mjs +0 -246
- package/fesm2015/pepperi-addons-ngx-lib-checkbox.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-chips.mjs +0 -306
- package/fesm2015/pepperi-addons-ngx-lib-chips.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-color.mjs +0 -404
- package/fesm2015/pepperi-addons-ngx-lib-color.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-date.mjs +0 -481
- package/fesm2015/pepperi-addons-ngx-lib-date.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs +0 -263
- package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs +0 -227
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-field-title.mjs +0 -102
- package/fesm2015/pepperi-addons-ngx-lib-field-title.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs +0 -331
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-form.mjs +0 -4232
- package/fesm2015/pepperi-addons-ngx-lib-group-buttons.mjs +0 -136
- package/fesm2015/pepperi-addons-ngx-lib-group-buttons.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-icon.mjs +0 -741
- package/fesm2015/pepperi-addons-ngx-lib-image.mjs +0 -397
- package/fesm2015/pepperi-addons-ngx-lib-image.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs +0 -426
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-link.mjs +0 -414
- package/fesm2015/pepperi-addons-ngx-lib-link.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs +0 -3131
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-menu.mjs +0 -403
- package/fesm2015/pepperi-addons-ngx-lib-page-layout.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs +0 -337
- package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs +0 -741
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs +0 -1226
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-remote-loader.mjs +0 -644
- package/fesm2015/pepperi-addons-ngx-lib-remote-loader.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.mjs +0 -363
- package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-search.mjs +0 -393
- package/fesm2015/pepperi-addons-ngx-lib-search.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs +0 -235
- package/fesm2015/pepperi-addons-ngx-lib-select-panel.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-select.mjs +0 -410
- package/fesm2015/pepperi-addons-ngx-lib-select.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-separator.mjs +0 -89
- package/fesm2015/pepperi-addons-ngx-lib-separator.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.mjs +0 -196
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-signature.mjs +0 -464
- package/fesm2015/pepperi-addons-ngx-lib-signature.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-size-detector.mjs +0 -136
- package/fesm2015/pepperi-addons-ngx-lib-size-detector.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-skeleton-loader.mjs +0 -78
- package/fesm2015/pepperi-addons-ngx-lib-slider.mjs +0 -151
- package/fesm2015/pepperi-addons-ngx-lib-slider.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs +0 -1731
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-snack-bar.mjs +0 -183
- package/fesm2015/pepperi-addons-ngx-lib-snack-bar.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-textarea.mjs +0 -286
- package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.mjs +0 -118
- package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs +0 -806
- package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs +0 -180
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib.mjs +0 -4995
- package/fesm2015/pepperi-addons-ngx-lib.mjs.map +0 -1
- package/fesm2020/pepperi-addons-ngx-lib-address.mjs +0 -170
- package/fesm2020/pepperi-addons-ngx-lib-button.mjs +0 -197
- package/fesm2020/pepperi-addons-ngx-lib-chips.mjs +0 -305
- package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs +0 -226
- package/fesm2020/pepperi-addons-ngx-lib-field-title.mjs +0 -102
- package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs.map +0 -1
- package/fesm2020/pepperi-addons-ngx-lib-form.mjs.map +0 -1
- package/fesm2020/pepperi-addons-ngx-lib-icon.mjs.map +0 -1
- package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +0 -1
- package/fesm2020/pepperi-addons-ngx-lib-menu.mjs.map +0 -1
- package/fesm2020/pepperi-addons-ngx-lib-page-layout.mjs +0 -77
- package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs.map +0 -1
- package/fesm2020/pepperi-addons-ngx-lib-signature.mjs.map +0 -1
- package/fesm2020/pepperi-addons-ngx-lib-size-detector.mjs +0 -136
- package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs +0 -76
- package/fesm2020/pepperi-addons-ngx-lib-skeleton-loader.mjs.map +0 -1
- package/fesm2020/pepperi-addons-ngx-lib-slider.mjs +0 -150
- package/fesm2020/pepperi-addons-ngx-lib-slider.mjs.map +0 -1
- package/fesm2020/pepperi-addons-ngx-lib-textarea.mjs.map +0 -1
- /package/{esm2020 → esm2022}/address/pepperi-addons-ngx-lib-address.mjs +0 -0
- /package/{esm2020 → esm2022}/address/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/attachment/pepperi-addons-ngx-lib-attachment.mjs +0 -0
- /package/{esm2020 → esm2022}/attachment/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.mjs +0 -0
- /package/{esm2020 → esm2022}/bread-crumbs/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/button/pepperi-addons-ngx-lib-button.mjs +0 -0
- /package/{esm2020 → esm2022}/button/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/carousel/pepperi-addons-ngx-lib-carousel.mjs +0 -0
- /package/{esm2020 → esm2022}/carousel/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/pepperi-addons-ngx-lib-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/checkbox/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/chips/chips.model.mjs +0 -0
- /package/{esm2020 → esm2022}/chips/pepperi-addons-ngx-lib-chips.mjs +0 -0
- /package/{esm2020 → esm2022}/chips/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/color/color.model.mjs +0 -0
- /package/{esm2020 → esm2022}/color/pepperi-addons-ngx-lib-color.mjs +0 -0
- /package/{esm2020 → esm2022}/color/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/clipboard/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/clipboard/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/directives/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/directives/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/model/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/model/papi.model.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/model/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/model/utilities.model.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/pipes/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/pipes/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/common/services/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/customization/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/customization/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/http/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/http/interceptors/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/http/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/layout/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/layout/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/portal/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/portal/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/core/scroll-to/index.mjs +0 -0
- /package/{esm2020 → esm2022}/core/scroll-to/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/date/pepperi-addons-ngx-lib-date.mjs +0 -0
- /package/{esm2020 → esm2022}/date/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/pepperi-addons-ngx-lib-dialog.mjs +0 -0
- /package/{esm2020 → esm2022}/dialog/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/draggable-items/draggable-items.model.mjs +0 -0
- /package/{esm2020 → esm2022}/draggable-items/pepperi-addons-ngx-lib-draggable-items.mjs +0 -0
- /package/{esm2020 → esm2022}/draggable-items/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/field-title/pepperi-addons-ngx-lib-field-title.mjs +0 -0
- /package/{esm2020 → esm2022}/field-title/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/files-uploader/pepperi-addons-ngx-lib-files-uploader.mjs +0 -0
- /package/{esm2020 → esm2022}/files-uploader/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/form/form.model.mjs +0 -0
- /package/{esm2020 → esm2022}/form/pepperi-addons-ngx-lib-form.mjs +0 -0
- /package/{esm2020 → esm2022}/form/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/group-buttons/pepperi-addons-ngx-lib-group-buttons.mjs +0 -0
- /package/{esm2020 → esm2022}/group-buttons/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/icon-generated-all.model.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/icon-generated.model.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/pepperi-addons-ngx-lib-icon.mjs +0 -0
- /package/{esm2020 → esm2022}/icon/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/image/pepperi-addons-ngx-lib-image.mjs +0 -0
- /package/{esm2020 → esm2022}/image/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.mjs +0 -0
- /package/{esm2020 → esm2022}/images-filmstrip/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/link/pepperi-addons-ngx-lib-link.mjs +0 -0
- /package/{esm2020 → esm2022}/link/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/list/pepperi-addons-ngx-lib-list.mjs +0 -0
- /package/{esm2020 → esm2022}/list/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/pepperi-addons-ngx-lib-menu.mjs +0 -0
- /package/{esm2020 → esm2022}/menu/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/page-layout/pepperi-addons-ngx-lib-page-layout.mjs +0 -0
- /package/{esm2020 → esm2022}/page-layout/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/pepperi-addons-ngx-lib.mjs +0 -0
- /package/{esm2020 → esm2022}/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.mjs +0 -0
- /package/{esm2020 → esm2022}/profile-data-views-list/profile-data-views-list.model.mjs +0 -0
- /package/{esm2020 → esm2022}/profile-data-views-list/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.mjs +0 -0
- /package/{esm2020 → esm2022}/quantity-selector/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/query-builder/common/model/field.mjs +0 -0
- /package/{esm2020 → esm2022}/query-builder/common/model/filter.mjs +0 -0
- /package/{esm2020 → esm2022}/query-builder/common/model/legacy.mjs +0 -0
- /package/{esm2020 → esm2022}/query-builder/common/model/operator-unit.mjs +0 -0
- /package/{esm2020 → esm2022}/query-builder/common/model/operator.mjs +0 -0
- /package/{esm2020 → esm2022}/query-builder/common/model/structure.mjs +0 -0
- /package/{esm2020 → esm2022}/query-builder/common/model/type.mjs +0 -0
- /package/{esm2020 → esm2022}/query-builder/pepperi-addons-ngx-lib-query-builder.mjs +0 -0
- /package/{esm2020 → esm2022}/query-builder/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/remote-loader/pepperi-addons-ngx-lib-remote-loader.mjs +0 -0
- /package/{esm2020 → esm2022}/remote-loader/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/remote-loader/remote-loader.model.mjs +0 -0
- /package/{esm2020 → esm2022}/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.mjs +0 -0
- /package/{esm2020 → esm2022}/rich-html-textarea/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/search/pepperi-addons-ngx-lib-search.mjs +0 -0
- /package/{esm2020 → esm2022}/search/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/search/search.model.mjs +0 -0
- /package/{esm2020 → esm2022}/select/pepperi-addons-ngx-lib-select.mjs +0 -0
- /package/{esm2020 → esm2022}/select/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/select-panel/pepperi-addons-ngx-lib-select-panel.mjs +0 -0
- /package/{esm2020 → esm2022}/select-panel/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/select-panel/select-panel.model.mjs +0 -0
- /package/{esm2020 → esm2022}/separator/pepperi-addons-ngx-lib-separator.mjs +0 -0
- /package/{esm2020 → esm2022}/separator/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/side-bar/pepperi-addons-ngx-lib-side-bar.mjs +0 -0
- /package/{esm2020 → esm2022}/side-bar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/side-bar/side-bar.model.mjs +0 -0
- /package/{esm2020 → esm2022}/signature/pepperi-addons-ngx-lib-signature.mjs +0 -0
- /package/{esm2020 → esm2022}/signature/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/size-detector/pepperi-addons-ngx-lib-size-detector.mjs +0 -0
- /package/{esm2020 → esm2022}/size-detector/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/skeleton-loader/pepperi-addons-ngx-lib-skeleton-loader.mjs +0 -0
- /package/{esm2020 → esm2022}/skeleton-loader/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/pepperi-addons-ngx-lib-slider.mjs +0 -0
- /package/{esm2020 → esm2022}/slider/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/smart-filters/common/model/creator.mjs +0 -0
- /package/{esm2020 → esm2022}/smart-filters/common/model/filter.mjs +0 -0
- /package/{esm2020 → esm2022}/smart-filters/common/model/type.mjs +0 -0
- /package/{esm2020 → esm2022}/smart-filters/pepperi-addons-ngx-lib-smart-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/smart-filters/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/snack-bar/pepperi-addons-ngx-lib-snack-bar.mjs +0 -0
- /package/{esm2020 → esm2022}/snack-bar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/pepperi-addons-ngx-lib-textarea.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/textbox/pepperi-addons-ngx-lib-textbox.mjs +0 -0
- /package/{esm2020 → esm2022}/textbox/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.mjs +0 -0
- /package/{esm2020 → esm2022}/textbox-icon/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/top-bar/pepperi-addons-ngx-lib-top-bar.mjs +0 -0
- /package/{esm2020 → esm2022}/top-bar/public-api.mjs +0 -0
- /package/{esm2020 → esm2022}/top-bar/top-bar.model.mjs +0 -0
|
@@ -1,1731 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Component, Input, Output, Directive, ViewChild, ChangeDetectionStrategy, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i2 from '@angular/forms';
|
|
6
|
-
import { Validators, FormControl, ReactiveFormsModule, FormBuilder } from '@angular/forms';
|
|
7
|
-
import { FlexLayoutModule } from '@ngbracket/ngx-layout';
|
|
8
|
-
import { MatCommonModule } from '@angular/material/core';
|
|
9
|
-
import * as i5$2 from '@angular/material/checkbox';
|
|
10
|
-
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
11
|
-
import * as i4$3 from '@angular/material/chips';
|
|
12
|
-
import { MatChipsModule } from '@angular/material/chips';
|
|
13
|
-
import * as i5$3 from '@angular/material/expansion';
|
|
14
|
-
import { MatExpansionModule } from '@angular/material/expansion';
|
|
15
|
-
import * as i6$1 from '@angular/material/icon';
|
|
16
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
17
|
-
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
18
|
-
import { MatInputModule } from '@angular/material/input';
|
|
19
|
-
import * as i4$1 from '@angular/material/radio';
|
|
20
|
-
import { MatRadioModule } from '@angular/material/radio';
|
|
21
|
-
import * as i6 from 'ngx-virtual-scroller';
|
|
22
|
-
import { VirtualScrollerComponent, VirtualScrollerModule } from 'ngx-virtual-scroller';
|
|
23
|
-
import * as i3 from '@pepperi-addons/ngx-lib';
|
|
24
|
-
import { BaseDestroyerDirective, PepNgxLibModule } from '@pepperi-addons/ngx-lib';
|
|
25
|
-
import { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';
|
|
26
|
-
import * as i5$1 from '@pepperi-addons/ngx-lib/date';
|
|
27
|
-
import { PepDateModule } from '@pepperi-addons/ngx-lib/date';
|
|
28
|
-
import * as i4 from '@pepperi-addons/ngx-lib/select';
|
|
29
|
-
import { PepSelectModule } from '@pepperi-addons/ngx-lib/select';
|
|
30
|
-
import * as i5 from '@pepperi-addons/ngx-lib/textbox';
|
|
31
|
-
import { PepTextboxModule } from '@pepperi-addons/ngx-lib/textbox';
|
|
32
|
-
import * as i9 from '@pepperi-addons/ngx-lib/search';
|
|
33
|
-
import { PepSearchModule } from '@pepperi-addons/ngx-lib/search';
|
|
34
|
-
import { PepButtonModule } from '@pepperi-addons/ngx-lib/button';
|
|
35
|
-
import * as i1$1 from '@pepperi-addons/ngx-lib/icon';
|
|
36
|
-
import { pepIconNumberMinus, pepIconNumberPlus, PepIconModule } from '@pepperi-addons/ngx-lib/icon';
|
|
37
|
-
import { PepGroupButtonsModule } from '@pepperi-addons/ngx-lib/group-buttons';
|
|
38
|
-
import * as i3$2 from '@angular/cdk/bidi';
|
|
39
|
-
import { distinctUntilChanged, startWith, map } from 'rxjs/operators';
|
|
40
|
-
import * as i2$1 from '@ngx-translate/core';
|
|
41
|
-
import * as i3$1 from '@ngbracket/ngx-layout/flex';
|
|
42
|
-
import * as i4$2 from '@ngbracket/ngx-layout/extended';
|
|
43
|
-
|
|
44
|
-
class IPepSmartFilterOperator {
|
|
45
|
-
}
|
|
46
|
-
const Equals = {
|
|
47
|
-
id: 'eq',
|
|
48
|
-
name: 'EQUAL',
|
|
49
|
-
short: '=',
|
|
50
|
-
componentType: [
|
|
51
|
-
'number',
|
|
52
|
-
'boolean',
|
|
53
|
-
// 'multi-select',
|
|
54
|
-
// 'date',
|
|
55
|
-
'text',
|
|
56
|
-
// 'auto-complete',
|
|
57
|
-
// 'select',
|
|
58
|
-
],
|
|
59
|
-
};
|
|
60
|
-
const NotEqual = {
|
|
61
|
-
id: 'neq',
|
|
62
|
-
name: 'NOT_EQUAL',
|
|
63
|
-
short: '<>',
|
|
64
|
-
componentType: [
|
|
65
|
-
'number',
|
|
66
|
-
// 'multi-select',
|
|
67
|
-
// 'date',
|
|
68
|
-
'text',
|
|
69
|
-
// 'auto-complete',
|
|
70
|
-
// 'select',
|
|
71
|
-
],
|
|
72
|
-
};
|
|
73
|
-
const LessThan = {
|
|
74
|
-
id: 'lt',
|
|
75
|
-
name: 'LESS_THEN',
|
|
76
|
-
short: '<',
|
|
77
|
-
componentType: ['number'],
|
|
78
|
-
};
|
|
79
|
-
// const LessThanOrEquals: IPepSmartFilterOperator = {
|
|
80
|
-
// id: 'ltoe',
|
|
81
|
-
// name: 'LESS_THEN_OR_EQUAL',
|
|
82
|
-
// short: '<=',
|
|
83
|
-
// type: ['number'],
|
|
84
|
-
// };
|
|
85
|
-
const GreaterThan = {
|
|
86
|
-
id: 'gt',
|
|
87
|
-
name: 'GREATER_THEN',
|
|
88
|
-
short: '>',
|
|
89
|
-
componentType: ['number'],
|
|
90
|
-
};
|
|
91
|
-
// const GreaterThanOrEquals: IPepSmartFilterOperator = {
|
|
92
|
-
// id: 'gtoe',
|
|
93
|
-
// name: 'GREATER_THEN_OR_EQUAL',
|
|
94
|
-
// short: '>=',
|
|
95
|
-
// type: ['number'],
|
|
96
|
-
// };
|
|
97
|
-
const NumberRange = {
|
|
98
|
-
id: 'numberRange',
|
|
99
|
-
name: 'NUMBER_RANGE',
|
|
100
|
-
short: 'Range',
|
|
101
|
-
componentType: ['number'],
|
|
102
|
-
};
|
|
103
|
-
const Contains = {
|
|
104
|
-
id: 'contains',
|
|
105
|
-
name: 'CONTAINS',
|
|
106
|
-
short: 'Contains',
|
|
107
|
-
componentType: ['text'],
|
|
108
|
-
};
|
|
109
|
-
const BeginsWith = {
|
|
110
|
-
id: 'beginsWith',
|
|
111
|
-
name: 'BEGINS_WITH',
|
|
112
|
-
short: 'Begins With',
|
|
113
|
-
componentType: ['text'],
|
|
114
|
-
};
|
|
115
|
-
const EndsWith = {
|
|
116
|
-
id: 'endsWith',
|
|
117
|
-
name: 'ENDS_WITH',
|
|
118
|
-
short: 'End With',
|
|
119
|
-
componentType: ['text'],
|
|
120
|
-
};
|
|
121
|
-
// const After: Operator = {
|
|
122
|
-
// id: 'after',
|
|
123
|
-
// name: 'After',
|
|
124
|
-
// short: 'After',
|
|
125
|
-
// type: ['date'],
|
|
126
|
-
// };
|
|
127
|
-
// const Before: Operator = {
|
|
128
|
-
// id: 'before',
|
|
129
|
-
// name: 'Before',
|
|
130
|
-
// short: 'Before',
|
|
131
|
-
// type: ['date'],
|
|
132
|
-
// };
|
|
133
|
-
const InTheLast = {
|
|
134
|
-
id: 'inTheLast',
|
|
135
|
-
name: 'IN_THE_LAST',
|
|
136
|
-
short: 'In the last',
|
|
137
|
-
componentType: ['date'],
|
|
138
|
-
};
|
|
139
|
-
const Today = {
|
|
140
|
-
id: 'today',
|
|
141
|
-
name: 'TODAY',
|
|
142
|
-
short: 'Today',
|
|
143
|
-
componentType: ['date'],
|
|
144
|
-
};
|
|
145
|
-
const ThisWeek = {
|
|
146
|
-
id: 'thisWeek',
|
|
147
|
-
name: 'THIS_WEEK',
|
|
148
|
-
short: 'This week',
|
|
149
|
-
componentType: ['date'],
|
|
150
|
-
};
|
|
151
|
-
const ThisMonth = {
|
|
152
|
-
id: 'thisMonth',
|
|
153
|
-
name: 'THIS_MONTH',
|
|
154
|
-
short: 'This month',
|
|
155
|
-
componentType: ['date'],
|
|
156
|
-
};
|
|
157
|
-
const DateRange = {
|
|
158
|
-
id: 'dateRange',
|
|
159
|
-
name: 'DATE_RANGE',
|
|
160
|
-
short: 'Range',
|
|
161
|
-
componentType: ['date'],
|
|
162
|
-
};
|
|
163
|
-
const DueIn = {
|
|
164
|
-
id: 'dueIn',
|
|
165
|
-
name: 'DUE_IN',
|
|
166
|
-
short: 'Due in',
|
|
167
|
-
componentType: ['date'],
|
|
168
|
-
};
|
|
169
|
-
const On = {
|
|
170
|
-
id: 'on',
|
|
171
|
-
name: 'ON',
|
|
172
|
-
short: 'On',
|
|
173
|
-
componentType: ['date'],
|
|
174
|
-
};
|
|
175
|
-
const NotInTheLast = {
|
|
176
|
-
id: 'notInTheLast',
|
|
177
|
-
name: 'NOT_IN_THE_LAST',
|
|
178
|
-
short: 'Not in the last',
|
|
179
|
-
componentType: ['date'],
|
|
180
|
-
};
|
|
181
|
-
const NotDueIn = {
|
|
182
|
-
id: 'notDueIn',
|
|
183
|
-
name: 'NOT_DUE_IN',
|
|
184
|
-
short: 'Not due in',
|
|
185
|
-
componentType: ['date'],
|
|
186
|
-
};
|
|
187
|
-
const IsEmpty = {
|
|
188
|
-
id: 'isEmpty',
|
|
189
|
-
name: 'IS_EMPTY',
|
|
190
|
-
short: 'Is empty',
|
|
191
|
-
componentType: ['date', 'text'],
|
|
192
|
-
};
|
|
193
|
-
const IsNotEmpty = {
|
|
194
|
-
id: 'isNotEmpty',
|
|
195
|
-
name: 'IS_NOT_EMPTY',
|
|
196
|
-
short: 'Is not empty',
|
|
197
|
-
componentType: ['date', 'text'],
|
|
198
|
-
};
|
|
199
|
-
const In = {
|
|
200
|
-
id: 'in',
|
|
201
|
-
name: 'IN',
|
|
202
|
-
short: 'In',
|
|
203
|
-
componentType: ['multi-select'],
|
|
204
|
-
};
|
|
205
|
-
const InVariable = {
|
|
206
|
-
id: 'inv',
|
|
207
|
-
name: 'IN_VARIABLE',
|
|
208
|
-
short: 'In',
|
|
209
|
-
componentType: ['multi-select', 'text'],
|
|
210
|
-
};
|
|
211
|
-
const PepSmartFilterOperators = {
|
|
212
|
-
Equals: Equals,
|
|
213
|
-
NotEqual: NotEqual,
|
|
214
|
-
LessThan: LessThan,
|
|
215
|
-
// LessThanOrEquals: LessThanOrEquals,
|
|
216
|
-
GreaterThan: GreaterThan,
|
|
217
|
-
// GreaterThanOrEquals: GreaterThanOrEquals,
|
|
218
|
-
NumberRange: NumberRange,
|
|
219
|
-
Contains: Contains,
|
|
220
|
-
BeginsWith: BeginsWith,
|
|
221
|
-
EndsWith: EndsWith,
|
|
222
|
-
// After: After,
|
|
223
|
-
// Before: Before,
|
|
224
|
-
InTheLast: InTheLast,
|
|
225
|
-
Today: Today,
|
|
226
|
-
ThisWeek: ThisWeek,
|
|
227
|
-
ThisMonth: ThisMonth,
|
|
228
|
-
DateRange: DateRange,
|
|
229
|
-
DueIn: DueIn,
|
|
230
|
-
On: On,
|
|
231
|
-
NotInTheLast: NotInTheLast,
|
|
232
|
-
NotDueIn: NotDueIn,
|
|
233
|
-
IsEmpty: IsEmpty,
|
|
234
|
-
IsNotEmpty: IsNotEmpty,
|
|
235
|
-
In: In,
|
|
236
|
-
};
|
|
237
|
-
//additional operators to be added upon input flag
|
|
238
|
-
const InTheLastCalendar = {
|
|
239
|
-
id: 'inTheLastCalendar',
|
|
240
|
-
name: 'IN_THE_LAST_CALENDAR',
|
|
241
|
-
short: 'In the last (calendar)',
|
|
242
|
-
componentType: ['date'],
|
|
243
|
-
};
|
|
244
|
-
const NotInTheLastCalendar = {
|
|
245
|
-
id: 'notInTheLastCalendar',
|
|
246
|
-
name: 'NOT_IN_THE_LAST_CALENDAR',
|
|
247
|
-
short: 'Not in the last (calendar)',
|
|
248
|
-
componentType: ['date'],
|
|
249
|
-
};
|
|
250
|
-
const PepSmartFilterAdditionalOperators = {
|
|
251
|
-
InTheLastCalendar: InTheLastCalendar,
|
|
252
|
-
NotInTheLastCalendar: NotInTheLastCalendar
|
|
253
|
-
};
|
|
254
|
-
//additional variable operators to be added upon input variable fields
|
|
255
|
-
const EqualsToVariable = {
|
|
256
|
-
id: 'eqv',
|
|
257
|
-
name: 'EQUAL_TO_VARIABLE',
|
|
258
|
-
short: '=',
|
|
259
|
-
componentType: ['text', 'number', 'boolean']
|
|
260
|
-
};
|
|
261
|
-
const NotEqualsToVariable = {
|
|
262
|
-
id: 'neqv',
|
|
263
|
-
name: 'NOT_EQUAL_TO_VARIABLE',
|
|
264
|
-
short: '<>',
|
|
265
|
-
componentType: ['boolean']
|
|
266
|
-
};
|
|
267
|
-
const LessThanVariable = {
|
|
268
|
-
id: 'ltv',
|
|
269
|
-
name: 'LESS_THAN_VARIABLE',
|
|
270
|
-
short: '<',
|
|
271
|
-
componentType: ['number'],
|
|
272
|
-
};
|
|
273
|
-
const GreaterThanVariable = {
|
|
274
|
-
id: 'gtv',
|
|
275
|
-
name: 'GREATER_THAN_VARIABLE',
|
|
276
|
-
short: '>',
|
|
277
|
-
componentType: ['number'],
|
|
278
|
-
};
|
|
279
|
-
const DateRangeVariable = {
|
|
280
|
-
id: 'dateRangeVariable',
|
|
281
|
-
name: 'DATE_RANGE_VARIABLE',
|
|
282
|
-
short: 'Range Variable',
|
|
283
|
-
componentType: ['date'],
|
|
284
|
-
};
|
|
285
|
-
const PepSmartFilterVariableOperators = {
|
|
286
|
-
EqualsToVariable: EqualsToVariable,
|
|
287
|
-
NotEqualsToVariable: NotEqualsToVariable,
|
|
288
|
-
LessThanVariable: LessThanVariable,
|
|
289
|
-
GreaterThanVariable: GreaterThanVariable,
|
|
290
|
-
DateRangeVariable: DateRangeVariable,
|
|
291
|
-
InVariable: InVariable,
|
|
292
|
-
IsEmpty: IsEmpty,
|
|
293
|
-
IsNotEmpty: IsNotEmpty
|
|
294
|
-
};
|
|
295
|
-
class IPepSmartFilterOperatorUnit {
|
|
296
|
-
}
|
|
297
|
-
const Days = {
|
|
298
|
-
id: 'days',
|
|
299
|
-
name: 'DAYS',
|
|
300
|
-
componentType: ['date'],
|
|
301
|
-
};
|
|
302
|
-
const Weeks = {
|
|
303
|
-
id: 'weeks',
|
|
304
|
-
name: 'WEEKS',
|
|
305
|
-
componentType: ['date'],
|
|
306
|
-
};
|
|
307
|
-
const Months = {
|
|
308
|
-
id: 'months',
|
|
309
|
-
name: 'MONTHS',
|
|
310
|
-
componentType: ['date'],
|
|
311
|
-
};
|
|
312
|
-
const Years = {
|
|
313
|
-
id: 'years',
|
|
314
|
-
name: 'YEARS',
|
|
315
|
-
componentType: ['date'],
|
|
316
|
-
};
|
|
317
|
-
const PepSmartFilterOperatorUnits = {
|
|
318
|
-
Days: Days,
|
|
319
|
-
Weeks: Weeks,
|
|
320
|
-
Months: Months,
|
|
321
|
-
Years: Years,
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
class PepFilterActionsComponent {
|
|
325
|
-
constructor() {
|
|
326
|
-
this.clearClick = new EventEmitter();
|
|
327
|
-
this.applyClick = new EventEmitter();
|
|
328
|
-
}
|
|
329
|
-
clear() {
|
|
330
|
-
this.clearClick.emit();
|
|
331
|
-
}
|
|
332
|
-
apply() {
|
|
333
|
-
this.applyClick.emit();
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
PepFilterActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepFilterActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
337
|
-
PepFilterActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepFilterActionsComponent, selector: "pep-filter-actions", inputs: { form: "form" }, outputs: { clearClick: "clearClick", applyClick: "applyClick" }, ngImport: i0, template: "<div [formGroup]=\"form\" class=\"filter-actions pep-spacing-element-negative\">\n <button mat-button class=\"pep-spacing-element pep-button sm weak\" (click)=\"clear()\">\n {{ 'ACTIONS.CLEAR' | translate }}\n </button>\n <button mat-button class=\"pep-spacing-element pep-button sm strong\" (click)=\"apply()\" [disabled]=\"form.invalid\">\n {{ 'ACTIONS.APPLY' | translate }}\n </button>\n</div>", styles: [".filter-actions{margin:var(--pep-spacing-lg, 1rem) 0 calc(var(--pep-spacing-lg, 1rem) / 2);display:flex;justify-content:flex-end}\n"], dependencies: [{ kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
|
|
338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepFilterActionsComponent, decorators: [{
|
|
339
|
-
type: Component,
|
|
340
|
-
args: [{ selector: 'pep-filter-actions', template: "<div [formGroup]=\"form\" class=\"filter-actions pep-spacing-element-negative\">\n <button mat-button class=\"pep-spacing-element pep-button sm weak\" (click)=\"clear()\">\n {{ 'ACTIONS.CLEAR' | translate }}\n </button>\n <button mat-button class=\"pep-spacing-element pep-button sm strong\" (click)=\"apply()\" [disabled]=\"form.invalid\">\n {{ 'ACTIONS.APPLY' | translate }}\n </button>\n</div>", styles: [".filter-actions{margin:var(--pep-spacing-lg, 1rem) 0 calc(var(--pep-spacing-lg, 1rem) / 2);display:flex;justify-content:flex-end}\n"] }]
|
|
341
|
-
}], propDecorators: { form: [{
|
|
342
|
-
type: Input
|
|
343
|
-
}], clearClick: [{
|
|
344
|
-
type: Output
|
|
345
|
-
}], applyClick: [{
|
|
346
|
-
type: Output
|
|
347
|
-
}] } });
|
|
348
|
-
|
|
349
|
-
class BaseFilterComponent extends BaseDestroyerDirective {
|
|
350
|
-
set field(value) {
|
|
351
|
-
this._field = value;
|
|
352
|
-
this._fieldIdWithNoDots = value ? value.id.replace(/\./g, '_') : '';
|
|
353
|
-
this.setupForm();
|
|
354
|
-
}
|
|
355
|
-
get field() {
|
|
356
|
-
return this._field;
|
|
357
|
-
}
|
|
358
|
-
set variableField(list) {
|
|
359
|
-
if (list === null || list === void 0 ? void 0 : list.length) {
|
|
360
|
-
this.variableFieldOptions = list.map(item => {
|
|
361
|
-
return {
|
|
362
|
-
key: item,
|
|
363
|
-
value: item
|
|
364
|
-
};
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
set filter(value) {
|
|
369
|
-
this._filter = value;
|
|
370
|
-
this.setupFilter();
|
|
371
|
-
}
|
|
372
|
-
get filter() {
|
|
373
|
-
return this._filter;
|
|
374
|
-
}
|
|
375
|
-
set parentForm(form) {
|
|
376
|
-
this._parentForm = form;
|
|
377
|
-
this.updateParentForm();
|
|
378
|
-
}
|
|
379
|
-
set operator(operator) {
|
|
380
|
-
var _a;
|
|
381
|
-
if ((operator === null || operator === void 0 ? void 0 : operator.id) != ((_a = this._operator) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
382
|
-
// Validate operator
|
|
383
|
-
const index = this.operators.findIndex((o) => o.id === operator.id);
|
|
384
|
-
if (index >= 0) {
|
|
385
|
-
this._operator = this.operators[index];
|
|
386
|
-
}
|
|
387
|
-
else {
|
|
388
|
-
this._operator = this.operators[0];
|
|
389
|
-
}
|
|
390
|
-
this.form.reset();
|
|
391
|
-
this.updateValidity();
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
get operator() {
|
|
395
|
-
return this._operator;
|
|
396
|
-
}
|
|
397
|
-
set operatorUnit(operatorUnit) {
|
|
398
|
-
// Validate operator unit
|
|
399
|
-
if (operatorUnit) {
|
|
400
|
-
const index = this.operatorUnits.findIndex((ou) => ou.id === operatorUnit.id);
|
|
401
|
-
if (index >= 0) {
|
|
402
|
-
this._operatorUnit = this.operatorUnits[index];
|
|
403
|
-
}
|
|
404
|
-
else {
|
|
405
|
-
this._operatorUnit = this.operatorUnits[0];
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
else {
|
|
409
|
-
this._operatorUnit = undefined;
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
get operatorUnit() {
|
|
413
|
-
return this._operatorUnit;
|
|
414
|
-
}
|
|
415
|
-
get firstControlKey() {
|
|
416
|
-
return this.field ? `${this._fieldIdWithNoDots}_first` : 'first';
|
|
417
|
-
}
|
|
418
|
-
get firstControl() {
|
|
419
|
-
return this.form.get(this.firstControlKey);
|
|
420
|
-
}
|
|
421
|
-
get secondControlKey() {
|
|
422
|
-
return this.field ? `${this._fieldIdWithNoDots}_second` : 'second';
|
|
423
|
-
}
|
|
424
|
-
get secondControl() {
|
|
425
|
-
return this.form.get(this.secondControlKey);
|
|
426
|
-
}
|
|
427
|
-
constructor(viewContainerRef, injector, resolver, builder, translate, validator, utilitiesService, renderer) {
|
|
428
|
-
super();
|
|
429
|
-
this.viewContainerRef = viewContainerRef;
|
|
430
|
-
this.injector = injector;
|
|
431
|
-
this.resolver = resolver;
|
|
432
|
-
this.builder = builder;
|
|
433
|
-
this.translate = translate;
|
|
434
|
-
this.validator = validator;
|
|
435
|
-
this.utilitiesService = utilitiesService;
|
|
436
|
-
this.renderer = renderer;
|
|
437
|
-
this._fieldIdWithNoDots = '';
|
|
438
|
-
this.variableFieldOptions = [];
|
|
439
|
-
this.emitOnChange = false;
|
|
440
|
-
this.inline = false;
|
|
441
|
-
this.showActionButtons = true;
|
|
442
|
-
this.renderTitle = true;
|
|
443
|
-
this.showAdditionalOperators = false;
|
|
444
|
-
this.filterClear = new EventEmitter();
|
|
445
|
-
this.filterChange = new EventEmitter();
|
|
446
|
-
this.OPERATORS_TRANSLATION_PREFIX = 'SMART_FILTERS.OPERATORS';
|
|
447
|
-
this.OPERATOR_UNITS_TRANSLATION_PREFIX = 'SMART_FILTERS.OPERATOR_UNITS';
|
|
448
|
-
}
|
|
449
|
-
createActionsComponent() {
|
|
450
|
-
const factory = this.resolver.resolveComponentFactory(PepFilterActionsComponent);
|
|
451
|
-
this.actionsContainerRef = factory.create(this.injector);
|
|
452
|
-
this.actionsContainerRef.instance.form = this.form;
|
|
453
|
-
this.actionsContainerRef.instance.applyClick.subscribe(() => this.applyFilter());
|
|
454
|
-
this.actionsContainerRef.instance.clearClick.subscribe(() => this.clearFilter());
|
|
455
|
-
this.viewContainerRef.insert(this.actionsContainerRef.hostView);
|
|
456
|
-
}
|
|
457
|
-
setupForm() {
|
|
458
|
-
const formValue = {};
|
|
459
|
-
formValue[this.firstControlKey] = [];
|
|
460
|
-
formValue[this.secondControlKey] = [];
|
|
461
|
-
// this.form.patchValue(formValue);
|
|
462
|
-
this.form = this.builder.group(formValue);
|
|
463
|
-
// this.form[this.firstControlKey] = [];
|
|
464
|
-
// this.form[this.secondControlKey] = [];
|
|
465
|
-
this.setupOperators();
|
|
466
|
-
if (this.showActionButtons) {
|
|
467
|
-
this.createActionsComponent();
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
setupOperators() {
|
|
471
|
-
var _a, _b, _c;
|
|
472
|
-
// Get the operators by componentType.
|
|
473
|
-
this.operators = Object.keys(PepSmartFilterOperators)
|
|
474
|
-
.filter((key) => {
|
|
475
|
-
return PepSmartFilterOperators[key].componentType.includes(this.field.componentType);
|
|
476
|
-
})
|
|
477
|
-
.map((key) => PepSmartFilterOperators[key]);
|
|
478
|
-
// Add additional operators
|
|
479
|
-
if (this.showAdditionalOperators) {
|
|
480
|
-
const additional = Object.keys(PepSmartFilterAdditionalOperators)
|
|
481
|
-
.filter((key) => {
|
|
482
|
-
return PepSmartFilterAdditionalOperators[key].componentType.includes(this.field.componentType);
|
|
483
|
-
})
|
|
484
|
-
.map((key) => PepSmartFilterAdditionalOperators[key]);
|
|
485
|
-
this.operators = [...this.operators, ...additional];
|
|
486
|
-
}
|
|
487
|
-
//add variable operators
|
|
488
|
-
if ((_a = this.variableFieldOptions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
489
|
-
const variables = Object.keys(PepSmartFilterVariableOperators)
|
|
490
|
-
.filter((key) => {
|
|
491
|
-
return PepSmartFilterVariableOperators[key].componentType.includes(this.field.componentType);
|
|
492
|
-
})
|
|
493
|
-
.map((key) => PepSmartFilterVariableOperators[key]);
|
|
494
|
-
this.operators = [...this.operators, ...variables];
|
|
495
|
-
}
|
|
496
|
-
// Filter by from field.operators input if exist.
|
|
497
|
-
if (((_b = this.field.operators) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
498
|
-
this.operators = this.operators.filter((o1) => this.field.operators.some((o2) => o1.id === o2));
|
|
499
|
-
}
|
|
500
|
-
// Get the operator units by componentType.
|
|
501
|
-
this.operatorUnits = Object.keys(PepSmartFilterOperatorUnits)
|
|
502
|
-
.filter((key) => {
|
|
503
|
-
return PepSmartFilterOperatorUnits[key].componentType.includes(this.field.componentType);
|
|
504
|
-
})
|
|
505
|
-
.map((key) => PepSmartFilterOperatorUnits[key]);
|
|
506
|
-
// Filter by from field.operatorsUnits input if exist.
|
|
507
|
-
if (((_c = this.field.operatorUnits) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
508
|
-
this.operatorUnits = this.operatorUnits.filter((o1) => this.field.operatorUnits.some((o2) => o1.id === o2));
|
|
509
|
-
}
|
|
510
|
-
// Load translation before get the options in the children.
|
|
511
|
-
this.translate.get('SMART_FILTERS.TITLE').subscribe((res) => {
|
|
512
|
-
this.loadOperatorsOptions();
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
setupFilter() {
|
|
516
|
-
if (this._filter) {
|
|
517
|
-
this.operator = this._filter.operator;
|
|
518
|
-
this.operatorUnit = this._filter.operatorUnit;
|
|
519
|
-
const formValue = {};
|
|
520
|
-
formValue[this.firstControlKey] = this._filter.value.first;
|
|
521
|
-
formValue[this.secondControlKey] = this._filter.value.second;
|
|
522
|
-
this.form.patchValue(formValue);
|
|
523
|
-
}
|
|
524
|
-
else {
|
|
525
|
-
this.operator = this.getDefaultOperator();
|
|
526
|
-
this.operatorUnit = this.getDefaultOperatorUnit();
|
|
527
|
-
this.clearFilter(false);
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
updateParentForm() {
|
|
531
|
-
this._parentForm.setControl('fieldId', this.builder.control(this.field.id));
|
|
532
|
-
this._parentForm.setControl('fieldType', this.builder.control(this.field.type));
|
|
533
|
-
this._parentForm.setControl('operator', this.builder.control(this.operator));
|
|
534
|
-
this._parentForm.setControl('operatorUnit', this.builder.control(this.operatorUnit));
|
|
535
|
-
this._parentForm.setControl('values', this.builder.group({
|
|
536
|
-
first: this.firstControl,
|
|
537
|
-
second: this.secondControl
|
|
538
|
-
}));
|
|
539
|
-
}
|
|
540
|
-
updateValidity() {
|
|
541
|
-
this.setFieldsStateAndValidators();
|
|
542
|
-
this.firstControl.updateValueAndValidity();
|
|
543
|
-
this.secondControl.updateValueAndValidity();
|
|
544
|
-
}
|
|
545
|
-
// Load the operators options from the translation.
|
|
546
|
-
loadOperatorsOptions() {
|
|
547
|
-
// Not implemented in the base
|
|
548
|
-
}
|
|
549
|
-
// Set default validators - some childs override this.
|
|
550
|
-
setFieldsStateAndValidators() {
|
|
551
|
-
this.firstControl.setValidators(Validators.required);
|
|
552
|
-
this.secondControl.setValidators(Validators.required);
|
|
553
|
-
this.secondControl.disable();
|
|
554
|
-
}
|
|
555
|
-
// Return undefined - some childs override this.
|
|
556
|
-
getDefaultOperatorUnit() {
|
|
557
|
-
return undefined;
|
|
558
|
-
}
|
|
559
|
-
initFilter() {
|
|
560
|
-
// Not implemented in the base
|
|
561
|
-
}
|
|
562
|
-
clearFilter(emitEvent = true) {
|
|
563
|
-
this._filter = null;
|
|
564
|
-
this.form.reset();
|
|
565
|
-
this.initFilter();
|
|
566
|
-
if (emitEvent) {
|
|
567
|
-
this.filterClear.emit();
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
applyFilter() {
|
|
571
|
-
const filterValue = this.getFilterValue();
|
|
572
|
-
// If the filter is not null declare it, else - clear it.
|
|
573
|
-
if (filterValue) {
|
|
574
|
-
const filter = {
|
|
575
|
-
fieldId: this.field.id,
|
|
576
|
-
operator: this.operator,
|
|
577
|
-
operatorUnit: this.operatorUnit,
|
|
578
|
-
value: filterValue,
|
|
579
|
-
};
|
|
580
|
-
this._filter = filter;
|
|
581
|
-
this.filterChange.emit(filter);
|
|
582
|
-
}
|
|
583
|
-
else {
|
|
584
|
-
this.clearFilter();
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
ngOnInit() {
|
|
588
|
-
if (this.form) {
|
|
589
|
-
this.updateValidity();
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
ngOnChanges() {
|
|
593
|
-
// if (this.form) {
|
|
594
|
-
// this.updateValidity();
|
|
595
|
-
// }
|
|
596
|
-
}
|
|
597
|
-
ngOnDestroy() {
|
|
598
|
-
if (this.showActionButtons) {
|
|
599
|
-
this.actionsContainerRef.destroy();
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
BaseFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseFilterComponent, deps: [{ token: i0.ViewContainerRef }, { token: i0.Injector }, { token: i0.ComponentFactoryResolver }, { token: i2.FormBuilder }, { token: i2$1.TranslateService }, { token: i3.PepValidatorService }, { token: i3.PepUtilitiesService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
604
|
-
BaseFilterComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: BaseFilterComponent, inputs: { field: "field", variableField: "variableField", filter: "filter", parentForm: "parentForm", emitOnChange: "emitOnChange", inline: "inline", showActionButtons: "showActionButtons", renderTitle: "renderTitle", showAdditionalOperators: "showAdditionalOperators" }, outputs: { filterClear: "filterClear", filterChange: "filterChange" }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
605
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BaseFilterComponent, decorators: [{
|
|
606
|
-
type: Directive,
|
|
607
|
-
args: [{}]
|
|
608
|
-
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.ComponentFactoryResolver }, { type: i2.FormBuilder }, { type: i2$1.TranslateService }, { type: i3.PepValidatorService }, { type: i3.PepUtilitiesService }, { type: i0.Renderer2 }]; }, propDecorators: { field: [{
|
|
609
|
-
type: Input
|
|
610
|
-
}], variableField: [{
|
|
611
|
-
type: Input
|
|
612
|
-
}], filter: [{
|
|
613
|
-
type: Input
|
|
614
|
-
}], parentForm: [{
|
|
615
|
-
type: Input
|
|
616
|
-
}], emitOnChange: [{
|
|
617
|
-
type: Input
|
|
618
|
-
}], inline: [{
|
|
619
|
-
type: Input
|
|
620
|
-
}], showActionButtons: [{
|
|
621
|
-
type: Input
|
|
622
|
-
}], renderTitle: [{
|
|
623
|
-
type: Input
|
|
624
|
-
}], showAdditionalOperators: [{
|
|
625
|
-
type: Input
|
|
626
|
-
}], filterClear: [{
|
|
627
|
-
type: Output
|
|
628
|
-
}], filterChange: [{
|
|
629
|
-
type: Output
|
|
630
|
-
}] } });
|
|
631
|
-
|
|
632
|
-
class PepTextFilterComponent extends BaseFilterComponent {
|
|
633
|
-
constructor() {
|
|
634
|
-
super(...arguments);
|
|
635
|
-
this.PepSmartFilterVariableOperators = PepSmartFilterVariableOperators;
|
|
636
|
-
this.chooseTypeOptions = [];
|
|
637
|
-
this.operatorWidth = '38%';
|
|
638
|
-
this.firstControlWidth = '62%';
|
|
639
|
-
}
|
|
640
|
-
ngOnInit() {
|
|
641
|
-
this.firstControl.valueChanges
|
|
642
|
-
.pipe(this.getDestroyer(), distinctUntilChanged())
|
|
643
|
-
.subscribe(() => {
|
|
644
|
-
this.setFieldsStateAndValidators();
|
|
645
|
-
});
|
|
646
|
-
if (this.inline) {
|
|
647
|
-
this.setControlsWidth();
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
// Override
|
|
651
|
-
getDefaultOperator() {
|
|
652
|
-
return PepSmartFilterOperators.Equals;
|
|
653
|
-
}
|
|
654
|
-
// Override
|
|
655
|
-
getFilterValue() {
|
|
656
|
-
const filterValue = {
|
|
657
|
-
first: this.firstControl.value,
|
|
658
|
-
};
|
|
659
|
-
if (this.operator === PepSmartFilterOperators.NumberRange) {
|
|
660
|
-
filterValue['second'] = this.secondControl.value;
|
|
661
|
-
}
|
|
662
|
-
return filterValue;
|
|
663
|
-
}
|
|
664
|
-
// Override
|
|
665
|
-
loadOperatorsOptions() {
|
|
666
|
-
this.chooseTypeOptions = this.operators.map((operator) => {
|
|
667
|
-
return {
|
|
668
|
-
key: operator.id,
|
|
669
|
-
value: this.translate.instant(`${this.OPERATORS_TRANSLATION_PREFIX}.${operator.name}`),
|
|
670
|
-
};
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
// Override
|
|
674
|
-
setFieldsStateAndValidators() {
|
|
675
|
-
this.firstControl.enable();
|
|
676
|
-
if (this.operator === PepSmartFilterOperators.NumberRange) {
|
|
677
|
-
const firstValidators = [Validators.required];
|
|
678
|
-
if (this.secondControl.value) {
|
|
679
|
-
firstValidators.push(this.validator.isLessThan(this.secondControl));
|
|
680
|
-
}
|
|
681
|
-
this.firstControl.setValidators(firstValidators);
|
|
682
|
-
this.firstControl.updateValueAndValidity();
|
|
683
|
-
}
|
|
684
|
-
else if (this.operator === PepSmartFilterOperators.IsEmpty ||
|
|
685
|
-
this.operator === PepSmartFilterOperators.IsNotEmpty) {
|
|
686
|
-
this.firstControl.disable();
|
|
687
|
-
}
|
|
688
|
-
super.setFieldsStateAndValidators();
|
|
689
|
-
}
|
|
690
|
-
setControlsWidth() {
|
|
691
|
-
if (this.operator === PepSmartFilterOperators.IsEmpty ||
|
|
692
|
-
this.operator === PepSmartFilterOperators.IsNotEmpty) {
|
|
693
|
-
this.operatorWidth = 'auto';
|
|
694
|
-
}
|
|
695
|
-
else {
|
|
696
|
-
this.operatorWidth = '38%';
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
onOperatorChanged(value) {
|
|
700
|
-
const operator = Object.values(this.operators).find((operator) => operator.id === value);
|
|
701
|
-
this.operator = operator;
|
|
702
|
-
if (this.inline) {
|
|
703
|
-
this.setControlsWidth();
|
|
704
|
-
}
|
|
705
|
-
if (this._parentForm) {
|
|
706
|
-
this.updateParentForm();
|
|
707
|
-
}
|
|
708
|
-
setTimeout(() => {
|
|
709
|
-
if (this.emitOnChange) {
|
|
710
|
-
this.applyFilter();
|
|
711
|
-
}
|
|
712
|
-
}, 0);
|
|
713
|
-
}
|
|
714
|
-
onVariableChanged(value) {
|
|
715
|
-
this.firstControl.setValue(value);
|
|
716
|
-
if (this.emitOnChange) {
|
|
717
|
-
this.applyFilter();
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
onValueChanged() {
|
|
721
|
-
if (this.emitOnChange) {
|
|
722
|
-
this.applyFilter();
|
|
723
|
-
}
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
PepTextFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTextFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
727
|
-
PepTextFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepTextFilterComponent, selector: "pep-text-filter", usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"form\" [fxLayout]=\"inline ? 'row' : 'column'\" [fxLayoutGap]=\"inline ? '.5rem' : '0rem'\">\n <pep-select [fxFlex]=\"inline ? operatorWidth : null\" [key]=\"'typeOperator'\" [value]=\"operator.id\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"chooseTypeOptions\" (valueChange)=\"onOperatorChanged($event)\">\n </pep-select>\n <ng-container *ngIf=\"operator !== PepSmartFilterVariableOperators.EqualsToVariable && \n operator !== PepSmartFilterVariableOperators.InVariable &&\n operator !== PepSmartFilterVariableOperators.IsEmpty &&\n operator !== PepSmartFilterVariableOperators.IsNotEmpty\">\n <pep-textbox [fxFlex]=\"inline ? firstControlWidth : null\" [form]=\"form\" [key]=\"firstControlKey\"\n [label]=\"'SMART_FILTERS.VALUE' | translate\" [renderError]=\"false\" [renderTitle]=\"renderTitle\"\n [type]=\"field.type\" [value]=\"firstControl?.value || ''\"\n (valueChange)=\"onValueChanged()\">\n </pep-textbox>\n </ng-container>\n <ng-container *ngIf=\"operator === PepSmartFilterVariableOperators.EqualsToVariable ||\n operator === PepSmartFilterVariableOperators.InVariable\">\n <pep-select [fxFlex]=\"inline ? firstControlWidth : null\" [key]=\"firstControlKey\"\n [value]=\"firstControl?.value || ''\" [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\"\n [emptyOption]=\"false\" [options]=\"variableFieldOptions\" (valueChange)=\"onVariableChanged($event)\">\n </pep-select>\n </ng-container>\n <!-- <ng-container *ngIf=\"operator === PepSmartFilterVariableOperators.IsEmpty || \n operator === PepSmartFilterVariableOperators.IsNotEmpty\">\n\n </ng-container> -->\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i3$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: i4.PepSelectComponent, selector: "pep-select", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "placeholder", "placeholderWhenDisabled", "autoSortOptions", "options", "visible", "emptyOption", "form", "layoutType", "parentFieldKey", "isActive", "showTitle", "renderTitle", "typeaheadDebounceInterval", "addValueToOptionsIfNotExist"], outputs: ["valueChange", "validationChange"] }, { kind: "component", type: i5.PepTextboxComponent, selector: "pep-textbox", inputs: ["key", "value", "minFractionDigits", "maxFractionDigits", "accessory", "label", "placeholder", "type", "mandatory", "disabled", "readonly", "maxFieldCharacters", "hint", "textColor", "xAlignment", "rowSpan", "minValue", "maxValue", "visible", "form", "isActive", "showTitle", "renderTitle", "renderError", "renderSymbol", "layoutType", "parentFieldKey", "regex", "regexError", "isInFocus"], outputs: ["valueChange", "keyup", "validationChange"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
|
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepTextFilterComponent, decorators: [{
|
|
729
|
-
type: Component,
|
|
730
|
-
args: [{ selector: 'pep-text-filter', template: "<div [formGroup]=\"form\" [fxLayout]=\"inline ? 'row' : 'column'\" [fxLayoutGap]=\"inline ? '.5rem' : '0rem'\">\n <pep-select [fxFlex]=\"inline ? operatorWidth : null\" [key]=\"'typeOperator'\" [value]=\"operator.id\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"chooseTypeOptions\" (valueChange)=\"onOperatorChanged($event)\">\n </pep-select>\n <ng-container *ngIf=\"operator !== PepSmartFilterVariableOperators.EqualsToVariable && \n operator !== PepSmartFilterVariableOperators.InVariable &&\n operator !== PepSmartFilterVariableOperators.IsEmpty &&\n operator !== PepSmartFilterVariableOperators.IsNotEmpty\">\n <pep-textbox [fxFlex]=\"inline ? firstControlWidth : null\" [form]=\"form\" [key]=\"firstControlKey\"\n [label]=\"'SMART_FILTERS.VALUE' | translate\" [renderError]=\"false\" [renderTitle]=\"renderTitle\"\n [type]=\"field.type\" [value]=\"firstControl?.value || ''\"\n (valueChange)=\"onValueChanged()\">\n </pep-textbox>\n </ng-container>\n <ng-container *ngIf=\"operator === PepSmartFilterVariableOperators.EqualsToVariable ||\n operator === PepSmartFilterVariableOperators.InVariable\">\n <pep-select [fxFlex]=\"inline ? firstControlWidth : null\" [key]=\"firstControlKey\"\n [value]=\"firstControl?.value || ''\" [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\"\n [emptyOption]=\"false\" [options]=\"variableFieldOptions\" (valueChange)=\"onVariableChanged($event)\">\n </pep-select>\n </ng-container>\n <!-- <ng-container *ngIf=\"operator === PepSmartFilterVariableOperators.IsEmpty || \n operator === PepSmartFilterVariableOperators.IsNotEmpty\">\n\n </ng-container> -->\n</div>" }]
|
|
731
|
-
}] });
|
|
732
|
-
|
|
733
|
-
class PepBooleanFilterComponent extends BaseFilterComponent {
|
|
734
|
-
constructor() {
|
|
735
|
-
super(...arguments);
|
|
736
|
-
this.options = [];
|
|
737
|
-
this.PepSmartFilterVariableOperators = PepSmartFilterVariableOperators;
|
|
738
|
-
this.chooseTypeOptions = [];
|
|
739
|
-
}
|
|
740
|
-
ngOnInit() {
|
|
741
|
-
if (this.inline) {
|
|
742
|
-
this.setControlsWidth();
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
// Override
|
|
746
|
-
getDefaultOperator() {
|
|
747
|
-
return PepSmartFilterOperators.Equals;
|
|
748
|
-
}
|
|
749
|
-
// Override
|
|
750
|
-
getFilterValue() {
|
|
751
|
-
const filterValue = { first: this.firstControl.value || false };
|
|
752
|
-
return filterValue;
|
|
753
|
-
}
|
|
754
|
-
// Override
|
|
755
|
-
loadOperatorsOptions() {
|
|
756
|
-
this.chooseTypeOptions = this.operators.map((operator) => {
|
|
757
|
-
return {
|
|
758
|
-
key: operator.id,
|
|
759
|
-
value: this.translate.instant(`${this.OPERATORS_TRANSLATION_PREFIX}.${operator.name}`),
|
|
760
|
-
};
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
setControlsWidth() {
|
|
764
|
-
var _a;
|
|
765
|
-
if ((_a = this.variableFieldOptions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
766
|
-
this.operatorWidth = '38%';
|
|
767
|
-
this.valueWidth = '62%';
|
|
768
|
-
}
|
|
769
|
-
else {
|
|
770
|
-
this.valueWidth = '100%';
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
onOperatorChanged(value) {
|
|
774
|
-
const operator = Object.values(this.operators).find((operator) => operator.id === value);
|
|
775
|
-
this.operator = operator;
|
|
776
|
-
if (this._parentForm) {
|
|
777
|
-
this.updateParentForm();
|
|
778
|
-
}
|
|
779
|
-
if (this.emitOnChange) {
|
|
780
|
-
this.applyFilter();
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
onValueChanged(value) {
|
|
784
|
-
this.firstControl.setValue(value);
|
|
785
|
-
if (this.emitOnChange) {
|
|
786
|
-
this.applyFilter();
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
PepBooleanFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepBooleanFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
791
|
-
PepBooleanFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepBooleanFilterComponent, selector: "pep-boolean-filter", inputs: { options: "options" }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"inline; then inlineBlock; else notInlineBlock\"></ng-container>\n<ng-template #inlineBlock>\n <ng-container *ngIf=\"variableFieldOptions?.length\">\n <div fxLayout=\"row\" fxLayoutGap=\".5rem\">\n <pep-select [fxFlex]=\"operatorWidth\" [key]=\"'typeOperator'\" [value]=\"operator.id\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"chooseTypeOptions\" (valueChange)=\"onOperatorChanged($event)\">\n </pep-select>\n <ng-container *ngIf=\"operator === PepSmartFilterVariableOperators.EqualsToVariable || \n operator === PepSmartFilterVariableOperators.NotEqualsToVariable\">\n <pep-select [fxFlex]=\"valueWidth\" [key]=\"firstControlKey\" [value]=\"firstControl?.value || ''\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"variableFieldOptions\" (valueChange)=\"onValueChanged($event)\">\n </pep-select>\n </ng-container>\n <ng-container *ngIf=\"operator !== PepSmartFilterVariableOperators.EqualsToVariable && \n operator !== PepSmartFilterVariableOperators.NotEqualsToVariable\">\n <pep-select [fxFlex]=\"valueWidth\" [value]=\"firstControl?.value || ''\" xAlignment=\"left\"\n [options]=\"options\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n (valueChange)=\"onValueChanged($event)\">\n </pep-select>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!variableFieldOptions || !variableFieldOptions.length\">\n <pep-select [fxFlex]=\"valueWidth\" [value]=\"firstControl?.value || ''\" xAlignment=\"left\" [options]=\"options\"\n [renderTitle]=\"renderTitle\" [emptyOption]=\"false\" (valueChange)=\"onValueChanged($event)\">\n </pep-select>\n </ng-container>\n</ng-template>\n<ng-template #notInlineBlock>\n <div [formGroup]=\"form\">\n <mat-radio-group class=\"radio-group \" [formControlName]=\"firstControlKey\">\n <mat-radio-button class=\"pep-radio-button md pep-input no-default-background\" value=\"true\">\n <span class=\"body-sm ellipsis\">{{ 'CHECKBOX.TRUE' | translate }}</span>\n </mat-radio-button>\n <mat-radio-button class=\"pep-radio-button md pep-input no-default-background\" value=\"false\">\n <span class=\"body-sm ellipsis\">{{ 'CHECKBOX.FALSE' | translate }}</span>\n </mat-radio-button>\n </mat-radio-group>\n </div>\n</ng-template>", styles: [".radio-group{display:flex;flex-direction:column}.radio-group .pep-radio-button.pep-input{height:2.25rem;display:flex}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i3$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i3$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i4$1.MatRadioGroup, selector: "mat-radio-group", exportAs: ["matRadioGroup"] }, { kind: "component", type: i4$1.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "component", type: i4.PepSelectComponent, selector: "pep-select", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "placeholder", "placeholderWhenDisabled", "autoSortOptions", "options", "visible", "emptyOption", "form", "layoutType", "parentFieldKey", "isActive", "showTitle", "renderTitle", "typeaheadDebounceInterval", "addValueToOptionsIfNotExist"], outputs: ["valueChange", "validationChange"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
|
|
792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepBooleanFilterComponent, decorators: [{
|
|
793
|
-
type: Component,
|
|
794
|
-
args: [{ selector: 'pep-boolean-filter', template: "<ng-container *ngIf=\"inline; then inlineBlock; else notInlineBlock\"></ng-container>\n<ng-template #inlineBlock>\n <ng-container *ngIf=\"variableFieldOptions?.length\">\n <div fxLayout=\"row\" fxLayoutGap=\".5rem\">\n <pep-select [fxFlex]=\"operatorWidth\" [key]=\"'typeOperator'\" [value]=\"operator.id\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"chooseTypeOptions\" (valueChange)=\"onOperatorChanged($event)\">\n </pep-select>\n <ng-container *ngIf=\"operator === PepSmartFilterVariableOperators.EqualsToVariable || \n operator === PepSmartFilterVariableOperators.NotEqualsToVariable\">\n <pep-select [fxFlex]=\"valueWidth\" [key]=\"firstControlKey\" [value]=\"firstControl?.value || ''\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"variableFieldOptions\" (valueChange)=\"onValueChanged($event)\">\n </pep-select>\n </ng-container>\n <ng-container *ngIf=\"operator !== PepSmartFilterVariableOperators.EqualsToVariable && \n operator !== PepSmartFilterVariableOperators.NotEqualsToVariable\">\n <pep-select [fxFlex]=\"valueWidth\" [value]=\"firstControl?.value || ''\" xAlignment=\"left\"\n [options]=\"options\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n (valueChange)=\"onValueChanged($event)\">\n </pep-select>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!variableFieldOptions || !variableFieldOptions.length\">\n <pep-select [fxFlex]=\"valueWidth\" [value]=\"firstControl?.value || ''\" xAlignment=\"left\" [options]=\"options\"\n [renderTitle]=\"renderTitle\" [emptyOption]=\"false\" (valueChange)=\"onValueChanged($event)\">\n </pep-select>\n </ng-container>\n</ng-template>\n<ng-template #notInlineBlock>\n <div [formGroup]=\"form\">\n <mat-radio-group class=\"radio-group \" [formControlName]=\"firstControlKey\">\n <mat-radio-button class=\"pep-radio-button md pep-input no-default-background\" value=\"true\">\n <span class=\"body-sm ellipsis\">{{ 'CHECKBOX.TRUE' | translate }}</span>\n </mat-radio-button>\n <mat-radio-button class=\"pep-radio-button md pep-input no-default-background\" value=\"false\">\n <span class=\"body-sm ellipsis\">{{ 'CHECKBOX.FALSE' | translate }}</span>\n </mat-radio-button>\n </mat-radio-group>\n </div>\n</ng-template>", styles: [".radio-group{display:flex;flex-direction:column}.radio-group .pep-radio-button.pep-input{height:2.25rem;display:flex}\n"] }]
|
|
795
|
-
}], propDecorators: { options: [{
|
|
796
|
-
type: Input
|
|
797
|
-
}] } });
|
|
798
|
-
|
|
799
|
-
class PepDateFilterComponent extends BaseFilterComponent {
|
|
800
|
-
constructor() {
|
|
801
|
-
super(...arguments);
|
|
802
|
-
this.PepSmartFilterOperators = PepSmartFilterOperators;
|
|
803
|
-
this.PepSmartFilterAdditionalOperators = PepSmartFilterAdditionalOperators;
|
|
804
|
-
this.PepSmartFilterVariableOperators = PepSmartFilterVariableOperators;
|
|
805
|
-
this.chooseTimeOptions = [];
|
|
806
|
-
this.chooseTimeUnitOptions = [];
|
|
807
|
-
}
|
|
808
|
-
ngOnInit() {
|
|
809
|
-
if (this.inline) {
|
|
810
|
-
this.setControlsWidth();
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
// Override
|
|
814
|
-
getDefaultOperator() {
|
|
815
|
-
return PepSmartFilterOperators.InTheLast;
|
|
816
|
-
}
|
|
817
|
-
// Override
|
|
818
|
-
getDefaultOperatorUnit() {
|
|
819
|
-
if (this.operator === PepSmartFilterOperators.InTheLast ||
|
|
820
|
-
this.operator === PepSmartFilterAdditionalOperators.InTheLastCalendar ||
|
|
821
|
-
this.operator === PepSmartFilterOperators.NotInTheLast ||
|
|
822
|
-
this.operator === PepSmartFilterAdditionalOperators.NotInTheLastCalendar ||
|
|
823
|
-
this.operator === PepSmartFilterOperators.DueIn ||
|
|
824
|
-
this.operator === PepSmartFilterOperators.NotDueIn) {
|
|
825
|
-
return PepSmartFilterOperatorUnits.Months;
|
|
826
|
-
}
|
|
827
|
-
else {
|
|
828
|
-
return undefined;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
// Override
|
|
832
|
-
getFilterValue() {
|
|
833
|
-
const filterValue = {
|
|
834
|
-
first: this.firstControl.value,
|
|
835
|
-
};
|
|
836
|
-
if (this.operator === PepSmartFilterOperators.DateRange ||
|
|
837
|
-
this.operator === PepSmartFilterVariableOperators.DateRangeVariable) {
|
|
838
|
-
filterValue['second'] = this.secondControl.value;
|
|
839
|
-
}
|
|
840
|
-
return filterValue;
|
|
841
|
-
}
|
|
842
|
-
// Override
|
|
843
|
-
initFilter() {
|
|
844
|
-
setTimeout(() => {
|
|
845
|
-
if (this.emitOnChange) {
|
|
846
|
-
this.applyFilter();
|
|
847
|
-
}
|
|
848
|
-
}, 0);
|
|
849
|
-
}
|
|
850
|
-
// Override
|
|
851
|
-
loadOperatorsOptions() {
|
|
852
|
-
this.chooseTimeOptions = this.operators.map((operator) => {
|
|
853
|
-
return {
|
|
854
|
-
key: operator.id,
|
|
855
|
-
value: this.translate.instant(`${this.OPERATORS_TRANSLATION_PREFIX}.${operator.name}`),
|
|
856
|
-
};
|
|
857
|
-
});
|
|
858
|
-
this.chooseTimeUnitOptions = this.operatorUnits.map((operatorUnit) => {
|
|
859
|
-
return {
|
|
860
|
-
key: operatorUnit.id,
|
|
861
|
-
value: this.translate.instant(`${this.OPERATOR_UNITS_TRANSLATION_PREFIX}.${operatorUnit.name}`),
|
|
862
|
-
};
|
|
863
|
-
});
|
|
864
|
-
}
|
|
865
|
-
// Override
|
|
866
|
-
setFieldsStateAndValidators() {
|
|
867
|
-
this.firstControl.enable();
|
|
868
|
-
if (this.operator === PepSmartFilterOperators.DateRange ||
|
|
869
|
-
this.operator === PepSmartFilterVariableOperators.DateRangeVariable) {
|
|
870
|
-
this.firstControl.setValidators(Validators.required);
|
|
871
|
-
this.secondControl.enable();
|
|
872
|
-
this.secondControl.setValidators(Validators.required);
|
|
873
|
-
}
|
|
874
|
-
else if (this.operator === PepSmartFilterOperators.InTheLast ||
|
|
875
|
-
this.operator === PepSmartFilterAdditionalOperators.InTheLastCalendar ||
|
|
876
|
-
this.operator === PepSmartFilterOperators.NotInTheLast ||
|
|
877
|
-
this.operator === PepSmartFilterAdditionalOperators.NotInTheLastCalendar ||
|
|
878
|
-
this.operator === PepSmartFilterOperators.DueIn ||
|
|
879
|
-
this.operator === PepSmartFilterOperators.NotDueIn) {
|
|
880
|
-
this.firstControl.setValidators([
|
|
881
|
-
Validators.required,
|
|
882
|
-
this.validator.numberValidator(),
|
|
883
|
-
]);
|
|
884
|
-
this.secondControl.disable();
|
|
885
|
-
}
|
|
886
|
-
else {
|
|
887
|
-
// Disable 'first' field.
|
|
888
|
-
if (this.operator === PepSmartFilterOperators.Today ||
|
|
889
|
-
this.operator === PepSmartFilterOperators.ThisWeek ||
|
|
890
|
-
this.operator === PepSmartFilterOperators.ThisMonth ||
|
|
891
|
-
this.operator === PepSmartFilterOperators.IsEmpty ||
|
|
892
|
-
this.operator === PepSmartFilterOperators.IsNotEmpty) {
|
|
893
|
-
this.firstControl.disable();
|
|
894
|
-
}
|
|
895
|
-
// Default disable 'second' field.
|
|
896
|
-
super.setFieldsStateAndValidators();
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
setControlsWidth() {
|
|
900
|
-
if (this.operator === PepSmartFilterOperators.Today ||
|
|
901
|
-
this.operator === PepSmartFilterOperators.ThisWeek ||
|
|
902
|
-
this.operator === PepSmartFilterOperators.ThisMonth ||
|
|
903
|
-
this.operator === PepSmartFilterOperators.IsEmpty ||
|
|
904
|
-
this.operator === PepSmartFilterOperators.IsNotEmpty) {
|
|
905
|
-
this.operatorWidth = 'auto';
|
|
906
|
-
this.fieldsWidth = '0%';
|
|
907
|
-
}
|
|
908
|
-
else if (this.operator === PepSmartFilterOperators.On) {
|
|
909
|
-
this.operatorWidth = '38%';
|
|
910
|
-
this.fieldsWidth = '62%';
|
|
911
|
-
}
|
|
912
|
-
else {
|
|
913
|
-
this.operatorWidth = '30%';
|
|
914
|
-
this.fieldsWidth = '70%';
|
|
915
|
-
}
|
|
916
|
-
}
|
|
917
|
-
onOperatorChanged(value) {
|
|
918
|
-
const operator = Object.values(this.operators).find((operator) => operator.id === value);
|
|
919
|
-
this.operator = operator;
|
|
920
|
-
this.operatorUnit = this.getDefaultOperatorUnit();
|
|
921
|
-
if (this.inline) {
|
|
922
|
-
this.setControlsWidth();
|
|
923
|
-
}
|
|
924
|
-
if (this._parentForm) {
|
|
925
|
-
this.updateParentForm();
|
|
926
|
-
}
|
|
927
|
-
setTimeout(() => {
|
|
928
|
-
if (this.emitOnChange) {
|
|
929
|
-
this.applyFilter();
|
|
930
|
-
}
|
|
931
|
-
}, 0);
|
|
932
|
-
}
|
|
933
|
-
onTimeUnitChanged(value) {
|
|
934
|
-
const operatorUnit = Object.values(PepSmartFilterOperatorUnits).find((operatorUnit) => operatorUnit.id === value);
|
|
935
|
-
this.operatorUnit = operatorUnit;
|
|
936
|
-
if (this._parentForm) {
|
|
937
|
-
this.updateParentForm();
|
|
938
|
-
}
|
|
939
|
-
if (this.emitOnChange) {
|
|
940
|
-
this.applyFilter();
|
|
941
|
-
}
|
|
942
|
-
}
|
|
943
|
-
onVariableChanged(value) {
|
|
944
|
-
this.firstControl.setValue(value);
|
|
945
|
-
if (this.emitOnChange) {
|
|
946
|
-
this.applyFilter();
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
onSecondVariableChanged(value) {
|
|
950
|
-
this.secondControl.setValue(value);
|
|
951
|
-
if (this.emitOnChange) {
|
|
952
|
-
this.applyFilter();
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
onDateValueChanged() {
|
|
956
|
-
if (this.emitOnChange) {
|
|
957
|
-
this.applyFilter();
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
PepDateFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
962
|
-
PepDateFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepDateFilterComponent, selector: "pep-date-filter", usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"form\" [fxLayout]=\"inline ? 'row' : 'column'\" [fxLayoutGap]=\"inline ? '.5rem' : '0rem'\">\n <ng-container>\n <pep-select [key]=\"'timeOperator'\" [value]=\"operator.id\" [label]=\"'SMART_FILTERS.CHOOSE_TIME' | translate\"\n [renderTitle]=\"renderTitle\" [emptyOption]=\"false\" [options]=\"chooseTimeOptions\"\n [fxFlex]=\"inline ? operatorWidth : null\" (valueChange)=\"onOperatorChanged($event)\">\n </pep-select>\n </ng-container>\n <div *ngIf=\"operator === PepSmartFilterOperators.InTheLast ||\n operator === PepSmartFilterAdditionalOperators.InTheLastCalendar || \n operator === PepSmartFilterOperators.NotInTheLast ||\n operator === PepSmartFilterAdditionalOperators.NotInTheLastCalendar || \n operator === PepSmartFilterOperators.DueIn ||\n operator === PepSmartFilterOperators.NotDueIn\" fxLayout=\"row\" fxLayout.xs=\"column\"\n [fxLayoutGap]=\"inline ? '.5rem' : '1rem'\" [fxFlex]=\"inline ? fieldsWidth : null\">\n <!-- Amount -->\n <pep-textbox [form]=\"form\" [key]=\"firstControlKey\" [label]=\"'SMART_FILTERS.AMOUNT' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" fxFlex=\"50%\" [type]=\"'int'\"\n [value]=\"firstControl?.value || ''\"\n (valueChange)=\"onDateValueChanged()\">\n </pep-textbox>\n <!-- Time unit -->\n <pep-select [form]=\"form\" [key]=\"'timeUnit'\" [value]=\"operatorUnit?.id\"\n [label]=\"'SMART_FILTERS.TIME_UNIT' | translate\" [renderTitle]=\"renderTitle\" fxFlex=\"50%\"\n [emptyOption]=\"false\" [options]=\"chooseTimeUnitOptions\" (valueChange)=\"onTimeUnitChanged($event)\">\n </pep-select>\n </div>\n <div pepRtlDirection *ngIf=\"operator === PepSmartFilterOperators.DateRange\" fxLayout=\"row\" fxLayout.xs=\"column\"\n [fxLayoutGap]=\"inline ? '.5rem' : '1rem'\" [fxFlex]=\"inline ? fieldsWidth : null\">\n <!-- Start date -->\n <pep-date [form]=\"form\" [key]=\"firstControlKey\" [label]=\"'SMART_FILTERS.START_DATE' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" fxFlex=\"50%\"\n [type]=\"field.type === 'date' ? 'date' : 'datetime'\" [value]=\"firstControl?.value || ''\"\n [maxDateValue]=\"secondControl?.value\" (valueChange)=\"onDateValueChanged()\">\n </pep-date>\n <!-- End date -->\n <pep-date [form]=\"form\" [key]=\"secondControlKey\" [label]=\"'SMART_FILTERS.END_DATE' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" fxFlex=\"50%\"\n [type]=\"field.type === 'date' ? 'date' : 'datetime'\" [value]=\"secondControl?.value || ''\"\n [minDateValue]=\"firstControl?.value\" (valueChange)=\"onDateValueChanged()\">\n </pep-date>\n </div>\n <ng-container *ngIf=\"operator === PepSmartFilterOperators.On\">\n <!-- Choose a date -->\n <pep-date [form]=\"form\" [key]=\"firstControlKey\" [label]=\"'SMART_FILTERS.CHOOSE_DATE' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" [type]=\"field.type === 'date' ? 'date' : 'datetime'\"\n [fxFlex]=\"inline ? fieldsWidth : null\" [value]=\"firstControl?.value || ''\"\n (valueChange)=\"onDateValueChanged()\">\n </pep-date>\n </ng-container>\n <div pepRtlDirection *ngIf=\"operator === PepSmartFilterVariableOperators.DateRangeVariable\" fxLayout=\"row\"\n fxLayout.xs=\"column\" fxLayoutGap=\".5rem\" fxFlex=\"fieldsWidth\">\n <pep-select fxFlex=\"50%\" [key]=\"firstControlKey\" [value]=\"firstControl?.value || ''\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"variableFieldOptions\" (valueChange)=\"onVariableChanged($event)\"></pep-select>\n <pep-select fxFlex=\"50%\" [key]=\"secondControlKey\" [value]=\"secondControl?.value || ''\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"variableFieldOptions\" (valueChange)=\"onSecondVariableChanged($event)\"></pep-select>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i3$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i3.PepRtlDirectionDirective, selector: "[pepRtlDirection]" }, { kind: "component", type: i5$1.PepDateComponent, selector: "pep-date", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "textColor", "xAlignment", "rowSpan", "chooseTime", "visible", "minValue", "maxValue", "minDateValue", "maxDateValue", "form", "isActive", "showTitle", "renderTitle", "renderError", "renderSymbol", "layoutType"], outputs: ["valueChange", "validationChange"] }, { kind: "component", type: i4.PepSelectComponent, selector: "pep-select", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "placeholder", "placeholderWhenDisabled", "autoSortOptions", "options", "visible", "emptyOption", "form", "layoutType", "parentFieldKey", "isActive", "showTitle", "renderTitle", "typeaheadDebounceInterval", "addValueToOptionsIfNotExist"], outputs: ["valueChange", "validationChange"] }, { kind: "component", type: i5.PepTextboxComponent, selector: "pep-textbox", inputs: ["key", "value", "minFractionDigits", "maxFractionDigits", "accessory", "label", "placeholder", "type", "mandatory", "disabled", "readonly", "maxFieldCharacters", "hint", "textColor", "xAlignment", "rowSpan", "minValue", "maxValue", "visible", "form", "isActive", "showTitle", "renderTitle", "renderError", "renderSymbol", "layoutType", "parentFieldKey", "regex", "regexError", "isInFocus"], outputs: ["valueChange", "keyup", "validationChange"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
|
|
963
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepDateFilterComponent, decorators: [{
|
|
964
|
-
type: Component,
|
|
965
|
-
args: [{ selector: 'pep-date-filter', template: "<div [formGroup]=\"form\" [fxLayout]=\"inline ? 'row' : 'column'\" [fxLayoutGap]=\"inline ? '.5rem' : '0rem'\">\n <ng-container>\n <pep-select [key]=\"'timeOperator'\" [value]=\"operator.id\" [label]=\"'SMART_FILTERS.CHOOSE_TIME' | translate\"\n [renderTitle]=\"renderTitle\" [emptyOption]=\"false\" [options]=\"chooseTimeOptions\"\n [fxFlex]=\"inline ? operatorWidth : null\" (valueChange)=\"onOperatorChanged($event)\">\n </pep-select>\n </ng-container>\n <div *ngIf=\"operator === PepSmartFilterOperators.InTheLast ||\n operator === PepSmartFilterAdditionalOperators.InTheLastCalendar || \n operator === PepSmartFilterOperators.NotInTheLast ||\n operator === PepSmartFilterAdditionalOperators.NotInTheLastCalendar || \n operator === PepSmartFilterOperators.DueIn ||\n operator === PepSmartFilterOperators.NotDueIn\" fxLayout=\"row\" fxLayout.xs=\"column\"\n [fxLayoutGap]=\"inline ? '.5rem' : '1rem'\" [fxFlex]=\"inline ? fieldsWidth : null\">\n <!-- Amount -->\n <pep-textbox [form]=\"form\" [key]=\"firstControlKey\" [label]=\"'SMART_FILTERS.AMOUNT' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" fxFlex=\"50%\" [type]=\"'int'\"\n [value]=\"firstControl?.value || ''\"\n (valueChange)=\"onDateValueChanged()\">\n </pep-textbox>\n <!-- Time unit -->\n <pep-select [form]=\"form\" [key]=\"'timeUnit'\" [value]=\"operatorUnit?.id\"\n [label]=\"'SMART_FILTERS.TIME_UNIT' | translate\" [renderTitle]=\"renderTitle\" fxFlex=\"50%\"\n [emptyOption]=\"false\" [options]=\"chooseTimeUnitOptions\" (valueChange)=\"onTimeUnitChanged($event)\">\n </pep-select>\n </div>\n <div pepRtlDirection *ngIf=\"operator === PepSmartFilterOperators.DateRange\" fxLayout=\"row\" fxLayout.xs=\"column\"\n [fxLayoutGap]=\"inline ? '.5rem' : '1rem'\" [fxFlex]=\"inline ? fieldsWidth : null\">\n <!-- Start date -->\n <pep-date [form]=\"form\" [key]=\"firstControlKey\" [label]=\"'SMART_FILTERS.START_DATE' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" fxFlex=\"50%\"\n [type]=\"field.type === 'date' ? 'date' : 'datetime'\" [value]=\"firstControl?.value || ''\"\n [maxDateValue]=\"secondControl?.value\" (valueChange)=\"onDateValueChanged()\">\n </pep-date>\n <!-- End date -->\n <pep-date [form]=\"form\" [key]=\"secondControlKey\" [label]=\"'SMART_FILTERS.END_DATE' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" fxFlex=\"50%\"\n [type]=\"field.type === 'date' ? 'date' : 'datetime'\" [value]=\"secondControl?.value || ''\"\n [minDateValue]=\"firstControl?.value\" (valueChange)=\"onDateValueChanged()\">\n </pep-date>\n </div>\n <ng-container *ngIf=\"operator === PepSmartFilterOperators.On\">\n <!-- Choose a date -->\n <pep-date [form]=\"form\" [key]=\"firstControlKey\" [label]=\"'SMART_FILTERS.CHOOSE_DATE' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" [type]=\"field.type === 'date' ? 'date' : 'datetime'\"\n [fxFlex]=\"inline ? fieldsWidth : null\" [value]=\"firstControl?.value || ''\"\n (valueChange)=\"onDateValueChanged()\">\n </pep-date>\n </ng-container>\n <div pepRtlDirection *ngIf=\"operator === PepSmartFilterVariableOperators.DateRangeVariable\" fxLayout=\"row\"\n fxLayout.xs=\"column\" fxLayoutGap=\".5rem\" fxFlex=\"fieldsWidth\">\n <pep-select fxFlex=\"50%\" [key]=\"firstControlKey\" [value]=\"firstControl?.value || ''\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"variableFieldOptions\" (valueChange)=\"onVariableChanged($event)\"></pep-select>\n <pep-select fxFlex=\"50%\" [key]=\"secondControlKey\" [value]=\"secondControl?.value || ''\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"variableFieldOptions\" (valueChange)=\"onSecondVariableChanged($event)\"></pep-select>\n </div>\n</div>\n" }]
|
|
966
|
-
}] });
|
|
967
|
-
|
|
968
|
-
class PepMultiSelectFilterOption {
|
|
969
|
-
constructor() {
|
|
970
|
-
this.selected = false;
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
class PepMultiSelectFilterComponent extends BaseFilterComponent {
|
|
974
|
-
constructor() {
|
|
975
|
-
super(...arguments);
|
|
976
|
-
this.PepSmartFilterVariableOperators = PepSmartFilterVariableOperators;
|
|
977
|
-
this.options = [];
|
|
978
|
-
this.chooseTypeOptions = [];
|
|
979
|
-
this.searchControl = new FormControl();
|
|
980
|
-
//inline props
|
|
981
|
-
this.selected = '';
|
|
982
|
-
this.inlineOptions = [];
|
|
983
|
-
this.MAX_OPTIONS_TO_SHOW = 6.35;
|
|
984
|
-
this.numberOptionsToShowSearch = 10;
|
|
985
|
-
}
|
|
986
|
-
ngOnInit() {
|
|
987
|
-
super.ngOnInit;
|
|
988
|
-
if (this.inline) {
|
|
989
|
-
this.inlineControlInit();
|
|
990
|
-
this.setControlsWidth();
|
|
991
|
-
}
|
|
992
|
-
else {
|
|
993
|
-
this.noneInlineControlInit();
|
|
994
|
-
}
|
|
995
|
-
}
|
|
996
|
-
ngAfterViewInit() {
|
|
997
|
-
// Calc for the first time.
|
|
998
|
-
this.calcOptionsHeight(this.options.length);
|
|
999
|
-
}
|
|
1000
|
-
inlineControlInit() {
|
|
1001
|
-
var _a, _b, _c;
|
|
1002
|
-
//load options from field
|
|
1003
|
-
this.inlineOptions = ((_b = (_a = this.field) === null || _a === void 0 ? void 0 : _a.options) === null || _b === void 0 ? void 0 : _b.length) > 0 ? this.field.options : [];
|
|
1004
|
-
// init the selected values from first value.
|
|
1005
|
-
if (((_c = this.firstControl) === null || _c === void 0 ? void 0 : _c.value) && Array.isArray(this.firstControl.value)) {
|
|
1006
|
-
this.selected = this.firstControl.value.join(';');
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
noneInlineControlInit() {
|
|
1010
|
-
var _a;
|
|
1011
|
-
if (((_a = this.field.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
1012
|
-
this.options = this.field.options.map((opt) => {
|
|
1013
|
-
return { value: opt.value, count: opt.count, selected: false };
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
else {
|
|
1017
|
-
this.searchControl.disable();
|
|
1018
|
-
}
|
|
1019
|
-
// Init the selected values from first value.
|
|
1020
|
-
const firstControl = this.firstControl;
|
|
1021
|
-
if (firstControl.value) {
|
|
1022
|
-
this.initOptionsSelectedValues(firstControl.value);
|
|
1023
|
-
}
|
|
1024
|
-
// Add subscription for the first value change to set the selected options.
|
|
1025
|
-
firstControl.valueChanges
|
|
1026
|
-
.pipe(this.getDestroyer(), distinctUntilChanged())
|
|
1027
|
-
.subscribe((selectedValues) => {
|
|
1028
|
-
this.initOptionsSelectedValues(selectedValues);
|
|
1029
|
-
});
|
|
1030
|
-
// Filter the options by the search control.
|
|
1031
|
-
this.filteredOptions$ = this.searchControl.valueChanges.pipe(this.getDestroyer(), startWith(''), map((option) => typeof option === 'string' ? option : option && option.value), map((value) => (value ? this.filterOptions(value) : this.options)));
|
|
1032
|
-
// Each time the filter change.
|
|
1033
|
-
this.filteredOptions$.subscribe((filterdOptions) => {
|
|
1034
|
-
this.calcOptionsHeight(filterdOptions.length);
|
|
1035
|
-
setTimeout(() => {
|
|
1036
|
-
// 8 is the padding top of the multi-select-options
|
|
1037
|
-
this.virtualScroller.scrollToPosition(-8);
|
|
1038
|
-
}, 125);
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
initOptionsSelectedValues(selectedValues) {
|
|
1042
|
-
this.options.forEach((opt) => {
|
|
1043
|
-
const isValueSelected = selectedValues && selectedValues.includes(opt.value);
|
|
1044
|
-
opt.selected = isValueSelected;
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
calcOptionsHeight(optionsCount) {
|
|
1048
|
-
if (this.optionsContainer) {
|
|
1049
|
-
const optionsToShow = optionsCount > this.MAX_OPTIONS_TO_SHOW
|
|
1050
|
-
? this.MAX_OPTIONS_TO_SHOW
|
|
1051
|
-
: optionsCount;
|
|
1052
|
-
// optionsToShow * 2.25 is 1 option height + 1 is the padding top & bottom of the container.
|
|
1053
|
-
const optionsHeight = optionsToShow * 2.25 + 1 + 'rem';
|
|
1054
|
-
this.renderer.setStyle(this.optionsContainer.nativeElement, 'height', optionsHeight);
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
filterOptions(value) {
|
|
1058
|
-
const filterValue = value.toLowerCase();
|
|
1059
|
-
return this.options.filter((opt) => opt.value &&
|
|
1060
|
-
opt.value.toLowerCase().includes(filterValue.toLowerCase()));
|
|
1061
|
-
}
|
|
1062
|
-
// Override
|
|
1063
|
-
getDefaultOperator() {
|
|
1064
|
-
return PepSmartFilterOperators.In;
|
|
1065
|
-
}
|
|
1066
|
-
// Override
|
|
1067
|
-
getFilterValue() {
|
|
1068
|
-
if (this.inline) {
|
|
1069
|
-
return {
|
|
1070
|
-
first: this.firstControl.value
|
|
1071
|
-
};
|
|
1072
|
-
}
|
|
1073
|
-
else {
|
|
1074
|
-
const selectedValues = this.options
|
|
1075
|
-
.filter((opt) => opt.selected)
|
|
1076
|
-
.map((opt) => opt.value);
|
|
1077
|
-
const filterValue = {
|
|
1078
|
-
first: selectedValues,
|
|
1079
|
-
};
|
|
1080
|
-
return selectedValues.length > 0 ? filterValue : null;
|
|
1081
|
-
}
|
|
1082
|
-
}
|
|
1083
|
-
// Override
|
|
1084
|
-
loadOperatorsOptions() {
|
|
1085
|
-
this.chooseTypeOptions = this.operators.map((operator) => {
|
|
1086
|
-
return {
|
|
1087
|
-
key: operator.id,
|
|
1088
|
-
value: this.translate.instant(`${this.OPERATORS_TRANSLATION_PREFIX}.${operator.name}`),
|
|
1089
|
-
};
|
|
1090
|
-
});
|
|
1091
|
-
}
|
|
1092
|
-
setControlsWidth() {
|
|
1093
|
-
var _a;
|
|
1094
|
-
if ((_a = this.variableFieldOptions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1095
|
-
this.operatorWidth = '38%';
|
|
1096
|
-
this.valueWidth = '62%';
|
|
1097
|
-
}
|
|
1098
|
-
else {
|
|
1099
|
-
this.valueWidth = '100%';
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
onOperatorChanged(value) {
|
|
1103
|
-
const operator = Object.values(this.operators).find((operator) => operator.id === value);
|
|
1104
|
-
this.operator = operator;
|
|
1105
|
-
if (this._parentForm) {
|
|
1106
|
-
this.updateParentForm();
|
|
1107
|
-
}
|
|
1108
|
-
if (this.emitOnChange) {
|
|
1109
|
-
this.applyFilter();
|
|
1110
|
-
}
|
|
1111
|
-
}
|
|
1112
|
-
// Override
|
|
1113
|
-
initFilter() {
|
|
1114
|
-
this.options.forEach((opt) => (opt.selected = false));
|
|
1115
|
-
this.searchControl.setValue('');
|
|
1116
|
-
}
|
|
1117
|
-
onOptionChange(option, event) {
|
|
1118
|
-
option.selected = event.checked;
|
|
1119
|
-
this.firstControl.setValue(this.options.filter((opt) => opt.selected).map((opt) => opt.value), { emitEvent: false });
|
|
1120
|
-
}
|
|
1121
|
-
onMultiSelectChanged(value) {
|
|
1122
|
-
if (value) {
|
|
1123
|
-
const selected = value.split(';');
|
|
1124
|
-
this.firstControl.setValue(selected);
|
|
1125
|
-
}
|
|
1126
|
-
else {
|
|
1127
|
-
this.firstControl.setValue(null);
|
|
1128
|
-
}
|
|
1129
|
-
if (this.emitOnChange) {
|
|
1130
|
-
this.applyFilter();
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
onValueChanged(value) {
|
|
1134
|
-
this.firstControl.setValue(value);
|
|
1135
|
-
if (this.emitOnChange) {
|
|
1136
|
-
this.applyFilter();
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
PepMultiSelectFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepMultiSelectFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1141
|
-
PepMultiSelectFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepMultiSelectFilterComponent, selector: "pep-multi-select-filter", viewQueries: [{ propertyName: "optionsContainer", first: true, predicate: ["optionsContainer"], descendants: true }, { propertyName: "virtualScroller", first: true, predicate: VirtualScrollerComponent, descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"inline\">\n <ng-container *ngIf=\"variableFieldOptions?.length\">\n <div fxLayout=\"row\" fxLayoutGap=\".5rem\">\n <pep-select [fxFlex]=\"operatorWidth\" [key]=\"'typeOperator'\" [value]=\"operator.id\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"chooseTypeOptions\" (valueChange)=\"onOperatorChanged($event)\">\n </pep-select>\n <ng-container *ngIf=\"operator === PepSmartFilterVariableOperators.EqualsToVariable || \n operator === PepSmartFilterVariableOperators.NotEqualsToVariable || \n operator === PepSmartFilterVariableOperators.InVariable\">\n <pep-select [fxFlex]=\"valueWidth\" [key]=\"firstControlKey\" [value]=\"firstControl?.value || ''\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"variableFieldOptions\" (valueChange)=\"onValueChanged($event)\">\n </pep-select>\n </ng-container>\n <ng-container *ngIf=\"operator !== PepSmartFilterVariableOperators.EqualsToVariable && \n operator !== PepSmartFilterVariableOperators.NotEqualsToVariable &&\n operator !== PepSmartFilterVariableOperators.InVariable\">\n <pep-select [fxFlex]=\"valueWidth\" [label]=\"'Pepperi Multi Select'\" [type]=\"'multi'\"\n [value]=\"selected\" [xAlignment]=\"'left'\" [renderTitle]=\"renderTitle\" [options]='inlineOptions'\n (valueChange)=\"onMultiSelectChanged($event)\">\n </pep-select>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!variableFieldOptions || !variableFieldOptions.length\">\n <pep-select [label]=\"'Pepperi Multi Select'\" [type]=\"'multi'\" [value]=\"selected\"\n [xAlignment]=\"'left'\" [renderTitle]=\"renderTitle\" [options]='inlineOptions'\n (valueChange)=\"onMultiSelectChanged($event)\">\n </pep-select>\n </ng-container>\n</ng-container>\n<div *ngIf=\"!inline\" [formGroup]=\"form\">\n <pep-search *ngIf=\"options?.length > numberOptionsToShowSearch\" [searchControl]=\"searchControl\"\n [triggerOn]=\"'keydown'\" shrink=\"never\"></pep-search>\n <div pepRtlClass class=\"multi-select-options pep-border-top pep-border-bottom\"\n [ngClass]=\"{'with-no-search': options?.length <= numberOptionsToShowSearch}\">\n <div #optionsContainer class=\"flip-scroll\" pepRtlClass>\n <virtual-scroller #scroll [items]=\"filteredOptions$ | async\" [parentScroll]=\"optionsContainer\">\n <mat-checkbox *ngFor=\"let opt of scroll.viewPortItems\"\n class=\"pep-checkbox-container pep-input no-default-background md\" [title]=\"opt.value\"\n [checked]=\"opt.selected\" (change)=\"onOptionChange(opt, $event)\">\n <div class=\"title\">\n <span class=\"body-sm ellipsis\">{{ opt.value }}</span>\n <span *ngIf=\"opt.count\" class=\"color-dimmed body-xs ellipsis\">({{opt.count}})</span>\n </div>\n </mat-checkbox>\n <ng-container *ngIf=\"scroll.viewPortItems?.length === 0\">\n <span class=\"no-options body-sm ellipsis\" [title]=\"field.name\">\n {{ ( options.length > 0 ? \"SMART_FILTERS.NO_SEARCH_RESULTS\" : \"SMART_FILTERS.NO_OPTIONS\") |\n translate }}\n </span>\n </ng-container>\n </virtual-scroller>\n </div>\n </div>\n</div>", styles: [".multi-select-options{margin:var(--pep-spacing-sm, .5rem) calc(var(--pep-spacing-xs, .25rem) * -1) 0}.multi-select-options.with-no-search{margin:calc(var(--pep-spacing-sm, .5rem) * -1) calc(var(--pep-spacing-xs, .25rem) * -1) 0}.multi-select-options .no-options{display:flex;padding:var(--pep-spacing-sm, .5rem) var(--pep-spacing-md, .75rem)}.multi-select-options .flip-scroll{padding:var(--pep-spacing-sm, .5rem) var(--pep-spacing-xs, .25rem);min-height:3.25rem;max-height:34.75rem;direction:rtl}.multi-select-options .flip-scroll virtual-scroller{direction:ltr}.multi-select-options .flip-scroll.rtl{direction:ltr}.multi-select-options .flip-scroll.rtl virtual-scroller{direction:rtl}.multi-select-options .pep-checkbox-container{height:2.25rem;padding-inline-end:0}.multi-select-options .pep-checkbox-container ::ng-deep .mat-checkbox-layout,.multi-select-options .pep-checkbox-container ::ng-deep .mat-mdc-checkbox-layout{width:100%;height:100%;grid-template-columns:auto 1fr}.multi-select-options .pep-checkbox-container ::ng-deep .mat-checkbox-layout .mat-checkbox-label,.multi-select-options .pep-checkbox-container ::ng-deep .mat-checkbox-layout .mat-mdc-checkbox-label,.multi-select-options .pep-checkbox-container ::ng-deep .mat-mdc-checkbox-layout .mat-checkbox-label,.multi-select-options .pep-checkbox-container ::ng-deep .mat-mdc-checkbox-layout .mat-mdc-checkbox-label{align-self:center}.multi-select-options .pep-checkbox-container .title{display:grid;grid-auto-flow:column;justify-content:space-between;align-items:center;margin:0 var(--pep-spacing-xs, .25rem)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i3$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i4$2.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: i5$2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i6.VirtualScrollerComponent, selector: "virtual-scroller,[virtualScroller]", inputs: ["executeRefreshOutsideAngularZone", "RTL", "useMarginInsteadOfTranslate", "ssrViewportWidth", "ssrViewportHeight", "compareItems", "checkResizeInterval", "modifyOverflowStyleOfParentScroll", "resizeBypassRefreshThreshold", "scrollAnimationTime", "scrollDebounceTime", "scrollThrottlingTime", "scrollbarHeight", "scrollbarWidth", "stripedTable", "horizontal", "enableUnequalChildrenSizes", "bufferAmount", "items", "parentScroll", "childWidth", "childHeight", "ssrChildWidth", "ssrChildHeight"], outputs: ["vsUpdate", "vsChange", "vsStart", "vsEnd"], exportAs: ["virtualScroller"] }, { kind: "directive", type: i3.PepRtlClassDirective, selector: "[pepRtlClass]" }, { kind: "component", type: i4.PepSelectComponent, selector: "pep-select", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "placeholder", "placeholderWhenDisabled", "autoSortOptions", "options", "visible", "emptyOption", "form", "layoutType", "parentFieldKey", "isActive", "showTitle", "renderTitle", "typeaheadDebounceInterval", "addValueToOptionsIfNotExist"], outputs: ["valueChange", "validationChange"] }, { kind: "component", type: i9.PepSearchComponent, selector: "pep-search", inputs: ["triggerOn", "autoCompleteTop", "autoCompleteValues", "shrink", "value", "searchControl", "useAsWebComponent", "sizeType"], outputs: ["search", "autocompleteChange", "stateChange"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
|
|
1142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepMultiSelectFilterComponent, decorators: [{
|
|
1143
|
-
type: Component,
|
|
1144
|
-
args: [{ selector: 'pep-multi-select-filter', template: "<ng-container *ngIf=\"inline\">\n <ng-container *ngIf=\"variableFieldOptions?.length\">\n <div fxLayout=\"row\" fxLayoutGap=\".5rem\">\n <pep-select [fxFlex]=\"operatorWidth\" [key]=\"'typeOperator'\" [value]=\"operator.id\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"chooseTypeOptions\" (valueChange)=\"onOperatorChanged($event)\">\n </pep-select>\n <ng-container *ngIf=\"operator === PepSmartFilterVariableOperators.EqualsToVariable || \n operator === PepSmartFilterVariableOperators.NotEqualsToVariable || \n operator === PepSmartFilterVariableOperators.InVariable\">\n <pep-select [fxFlex]=\"valueWidth\" [key]=\"firstControlKey\" [value]=\"firstControl?.value || ''\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"variableFieldOptions\" (valueChange)=\"onValueChanged($event)\">\n </pep-select>\n </ng-container>\n <ng-container *ngIf=\"operator !== PepSmartFilterVariableOperators.EqualsToVariable && \n operator !== PepSmartFilterVariableOperators.NotEqualsToVariable &&\n operator !== PepSmartFilterVariableOperators.InVariable\">\n <pep-select [fxFlex]=\"valueWidth\" [label]=\"'Pepperi Multi Select'\" [type]=\"'multi'\"\n [value]=\"selected\" [xAlignment]=\"'left'\" [renderTitle]=\"renderTitle\" [options]='inlineOptions'\n (valueChange)=\"onMultiSelectChanged($event)\">\n </pep-select>\n </ng-container>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!variableFieldOptions || !variableFieldOptions.length\">\n <pep-select [label]=\"'Pepperi Multi Select'\" [type]=\"'multi'\" [value]=\"selected\"\n [xAlignment]=\"'left'\" [renderTitle]=\"renderTitle\" [options]='inlineOptions'\n (valueChange)=\"onMultiSelectChanged($event)\">\n </pep-select>\n </ng-container>\n</ng-container>\n<div *ngIf=\"!inline\" [formGroup]=\"form\">\n <pep-search *ngIf=\"options?.length > numberOptionsToShowSearch\" [searchControl]=\"searchControl\"\n [triggerOn]=\"'keydown'\" shrink=\"never\"></pep-search>\n <div pepRtlClass class=\"multi-select-options pep-border-top pep-border-bottom\"\n [ngClass]=\"{'with-no-search': options?.length <= numberOptionsToShowSearch}\">\n <div #optionsContainer class=\"flip-scroll\" pepRtlClass>\n <virtual-scroller #scroll [items]=\"filteredOptions$ | async\" [parentScroll]=\"optionsContainer\">\n <mat-checkbox *ngFor=\"let opt of scroll.viewPortItems\"\n class=\"pep-checkbox-container pep-input no-default-background md\" [title]=\"opt.value\"\n [checked]=\"opt.selected\" (change)=\"onOptionChange(opt, $event)\">\n <div class=\"title\">\n <span class=\"body-sm ellipsis\">{{ opt.value }}</span>\n <span *ngIf=\"opt.count\" class=\"color-dimmed body-xs ellipsis\">({{opt.count}})</span>\n </div>\n </mat-checkbox>\n <ng-container *ngIf=\"scroll.viewPortItems?.length === 0\">\n <span class=\"no-options body-sm ellipsis\" [title]=\"field.name\">\n {{ ( options.length > 0 ? \"SMART_FILTERS.NO_SEARCH_RESULTS\" : \"SMART_FILTERS.NO_OPTIONS\") |\n translate }}\n </span>\n </ng-container>\n </virtual-scroller>\n </div>\n </div>\n</div>", styles: [".multi-select-options{margin:var(--pep-spacing-sm, .5rem) calc(var(--pep-spacing-xs, .25rem) * -1) 0}.multi-select-options.with-no-search{margin:calc(var(--pep-spacing-sm, .5rem) * -1) calc(var(--pep-spacing-xs, .25rem) * -1) 0}.multi-select-options .no-options{display:flex;padding:var(--pep-spacing-sm, .5rem) var(--pep-spacing-md, .75rem)}.multi-select-options .flip-scroll{padding:var(--pep-spacing-sm, .5rem) var(--pep-spacing-xs, .25rem);min-height:3.25rem;max-height:34.75rem;direction:rtl}.multi-select-options .flip-scroll virtual-scroller{direction:ltr}.multi-select-options .flip-scroll.rtl{direction:ltr}.multi-select-options .flip-scroll.rtl virtual-scroller{direction:rtl}.multi-select-options .pep-checkbox-container{height:2.25rem;padding-inline-end:0}.multi-select-options .pep-checkbox-container ::ng-deep .mat-checkbox-layout,.multi-select-options .pep-checkbox-container ::ng-deep .mat-mdc-checkbox-layout{width:100%;height:100%;grid-template-columns:auto 1fr}.multi-select-options .pep-checkbox-container ::ng-deep .mat-checkbox-layout .mat-checkbox-label,.multi-select-options .pep-checkbox-container ::ng-deep .mat-checkbox-layout .mat-mdc-checkbox-label,.multi-select-options .pep-checkbox-container ::ng-deep .mat-mdc-checkbox-layout .mat-checkbox-label,.multi-select-options .pep-checkbox-container ::ng-deep .mat-mdc-checkbox-layout .mat-mdc-checkbox-label{align-self:center}.multi-select-options .pep-checkbox-container .title{display:grid;grid-auto-flow:column;justify-content:space-between;align-items:center;margin:0 var(--pep-spacing-xs, .25rem)}\n"] }]
|
|
1145
|
-
}], propDecorators: { optionsContainer: [{
|
|
1146
|
-
type: ViewChild,
|
|
1147
|
-
args: ['optionsContainer']
|
|
1148
|
-
}], virtualScroller: [{
|
|
1149
|
-
type: ViewChild,
|
|
1150
|
-
args: [VirtualScrollerComponent]
|
|
1151
|
-
}] } });
|
|
1152
|
-
|
|
1153
|
-
class PepNumberFilterComponent extends BaseFilterComponent {
|
|
1154
|
-
constructor() {
|
|
1155
|
-
super(...arguments);
|
|
1156
|
-
this.PepSmartFilterOperators = PepSmartFilterOperators;
|
|
1157
|
-
this.PepSmartFilterVariableOperators = PepSmartFilterVariableOperators;
|
|
1158
|
-
this.chooseTypeOptions = [];
|
|
1159
|
-
this.operatorWidth = '38%';
|
|
1160
|
-
this.fieldsWidth = '70%';
|
|
1161
|
-
}
|
|
1162
|
-
ngOnInit() {
|
|
1163
|
-
this.firstControl.valueChanges
|
|
1164
|
-
// .pipe(debounceTime(3000), this.getDestroyer(), distinctUntilChanged())
|
|
1165
|
-
// .pipe(this.getDestroyer(), distinctUntilChanged((pre: any, curr: any) =>
|
|
1166
|
-
// this.utilitiesService.isEqualNumber(pre, curr)
|
|
1167
|
-
// ))
|
|
1168
|
-
.pipe(this.getDestroyer(), distinctUntilChanged())
|
|
1169
|
-
.subscribe(() => {
|
|
1170
|
-
console.log(`firstControl.valueChanges - ${this.firstControl.value}`);
|
|
1171
|
-
this.setFieldsStateAndValidators();
|
|
1172
|
-
});
|
|
1173
|
-
this.secondControl.valueChanges
|
|
1174
|
-
.pipe(this.getDestroyer(), distinctUntilChanged())
|
|
1175
|
-
// .pipe(debounceTime(3000), this.getDestroyer(), distinctUntilChanged())
|
|
1176
|
-
.subscribe(() => {
|
|
1177
|
-
this.setFieldsStateAndValidators();
|
|
1178
|
-
});
|
|
1179
|
-
this.setControlsWidth();
|
|
1180
|
-
}
|
|
1181
|
-
// Override
|
|
1182
|
-
getDefaultOperator() {
|
|
1183
|
-
return PepSmartFilterOperators.Equals;
|
|
1184
|
-
}
|
|
1185
|
-
// Override
|
|
1186
|
-
getFilterValue() {
|
|
1187
|
-
const filterValue = {
|
|
1188
|
-
first: this.firstControl.value,
|
|
1189
|
-
};
|
|
1190
|
-
if (this.operator === PepSmartFilterOperators.NumberRange) {
|
|
1191
|
-
filterValue['second'] = this.secondControl.value;
|
|
1192
|
-
}
|
|
1193
|
-
return filterValue;
|
|
1194
|
-
}
|
|
1195
|
-
// Override
|
|
1196
|
-
initFilter() {
|
|
1197
|
-
setTimeout(() => {
|
|
1198
|
-
if (this.emitOnChange) {
|
|
1199
|
-
this.applyFilter();
|
|
1200
|
-
}
|
|
1201
|
-
}, 0);
|
|
1202
|
-
}
|
|
1203
|
-
// Override
|
|
1204
|
-
loadOperatorsOptions() {
|
|
1205
|
-
this.chooseTypeOptions = this.operators.map((operator) => {
|
|
1206
|
-
return {
|
|
1207
|
-
key: operator.id,
|
|
1208
|
-
value: this.translate.instant(`${this.OPERATORS_TRANSLATION_PREFIX}.${operator.name}`),
|
|
1209
|
-
};
|
|
1210
|
-
});
|
|
1211
|
-
}
|
|
1212
|
-
// Override
|
|
1213
|
-
setFieldsStateAndValidators() {
|
|
1214
|
-
if (this.operator === PepSmartFilterOperators.NumberRange) {
|
|
1215
|
-
const firstValidators = [Validators.required];
|
|
1216
|
-
if (this.secondControl.value) {
|
|
1217
|
-
firstValidators.push(this.validator.isLessThan(this.secondControl));
|
|
1218
|
-
}
|
|
1219
|
-
this.firstControl.setValidators(firstValidators);
|
|
1220
|
-
this.firstControl.updateValueAndValidity();
|
|
1221
|
-
this.secondControl.enable();
|
|
1222
|
-
const secondValidators = [Validators.required];
|
|
1223
|
-
if (this.firstControl.value) {
|
|
1224
|
-
secondValidators.push(this.validator.isGreaterThan(this.firstControl));
|
|
1225
|
-
}
|
|
1226
|
-
this.secondControl.setValidators(secondValidators);
|
|
1227
|
-
this.secondControl.updateValueAndValidity();
|
|
1228
|
-
}
|
|
1229
|
-
else {
|
|
1230
|
-
super.setFieldsStateAndValidators();
|
|
1231
|
-
}
|
|
1232
|
-
}
|
|
1233
|
-
setControlsWidth() {
|
|
1234
|
-
if (this.operator === PepSmartFilterOperators.NumberRange) {
|
|
1235
|
-
this.operatorWidth = '30%';
|
|
1236
|
-
this.fieldsWidth = '70%';
|
|
1237
|
-
}
|
|
1238
|
-
else {
|
|
1239
|
-
this.operatorWidth = '38%';
|
|
1240
|
-
this.fieldsWidth = '62%';
|
|
1241
|
-
}
|
|
1242
|
-
}
|
|
1243
|
-
onOperatorChanged(value) {
|
|
1244
|
-
const operator = Object.values(this.operators).find((operator) => operator.id === value);
|
|
1245
|
-
this.operator = operator;
|
|
1246
|
-
if (this._parentForm) {
|
|
1247
|
-
this.updateParentForm();
|
|
1248
|
-
}
|
|
1249
|
-
this.setControlsWidth();
|
|
1250
|
-
setTimeout(() => {
|
|
1251
|
-
if (this.emitOnChange) {
|
|
1252
|
-
this.applyFilter();
|
|
1253
|
-
}
|
|
1254
|
-
}, 0);
|
|
1255
|
-
}
|
|
1256
|
-
onVariableChanged(value) {
|
|
1257
|
-
this.firstControl.setValue(value);
|
|
1258
|
-
if (this.emitOnChange) {
|
|
1259
|
-
this.applyFilter();
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
onValueChanged() {
|
|
1263
|
-
// this.firstControl.setValue(value);
|
|
1264
|
-
// console.log(`onValueChanged ${this.firstControl.value}`);
|
|
1265
|
-
if (this.emitOnChange) {
|
|
1266
|
-
this.applyFilter();
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
}
|
|
1270
|
-
PepNumberFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepNumberFilterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1271
|
-
PepNumberFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepNumberFilterComponent, selector: "pep-number-filter", usesInheritance: true, ngImport: i0, template: "<div [formGroup]=\"form\" [fxLayout]=\"inline ? 'row' : 'column'\" [fxLayoutGap]=\"inline ? '.5rem' : '0rem'\">\n <ng-container>\n <pep-select [fxFlex]=\"inline ? operatorWidth : null\" [key]=\"'typeOperator'\" [value]=\"operator.id\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"chooseTypeOptions\" (valueChange)=\"onOperatorChanged($event)\">\n </pep-select>\n </ng-container>\n <ng-container *ngIf=\"operator === PepSmartFilterOperators.NumberRange\">\n <div fxLayout=\"row\" fxLayout.xs=\"column\" [fxLayoutGap]=\"inline ? '.5rem' : '1rem'\"\n [fxFlex]=\"inline ? fieldsWidth : null\">\n <!-- Min number -->\n <pep-textbox [form]=\"form\" [key]=\"firstControlKey\" [label]=\"'SMART_FILTERS.MIN' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" [type]=\"field.type\" fxFlex=\"50%\"\n [value]=\"firstControl?.value || ''\"\n [maxValue]=\"secondControl?.value || ''\" (valueChange)=\"onValueChanged()\">\n </pep-textbox>\n <!-- Max number -->\n <pep-textbox [form]=\"form\" [key]=\"secondControlKey\" [label]=\"'SMART_FILTERS.MAX' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" [type]=\"field.type\" fxFlex=\"50%\"\n [value]=\"secondControl?.value || ''\"\n [minValue]=\"firstControl?.value || ''\" (valueChange)=\"onValueChanged()\">\n </pep-textbox>\n </div>\n </ng-container>\n <ng-container *ngIf=\"operator === PepSmartFilterVariableOperators.LessThanVariable || \n operator === PepSmartFilterVariableOperators.GreaterThanVariable || \n operator === PepSmartFilterVariableOperators.EqualsToVariable\">\n <pep-select [fxFlex]=\"inline ? fieldsWidth : null\" [key]=\"firstControlKey\" [value]=\"firstControl?.value || ''\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"variableFieldOptions\" (valueChange)=\"onVariableChanged($event)\">\n </pep-select>\n </ng-container>\n <ng-container *ngIf=\"operator !== PepSmartFilterOperators.NumberRange && operator !== PepSmartFilterVariableOperators.LessThanVariable &&\n operator !== PepSmartFilterVariableOperators.GreaterThanVariable && \n operator !== PepSmartFilterVariableOperators.EqualsToVariable\">\n <div [fxFlex]=\"inline ? fieldsWidth : null\">\n <!-- Amount -->\n <pep-textbox [form]=\"form\" [key]=\"firstControlKey\" [label]=\"'SMART_FILTERS.AMOUNT' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" [type]=\"field.type\"\n [value]=\"firstControl?.value || ''\" \n (valueChange)=\"onValueChanged()\">\n </pep-textbox>\n </div>\n </ng-container>\n</div>", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i3$1.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i3$1.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: i4.PepSelectComponent, selector: "pep-select", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "placeholder", "placeholderWhenDisabled", "autoSortOptions", "options", "visible", "emptyOption", "form", "layoutType", "parentFieldKey", "isActive", "showTitle", "renderTitle", "typeaheadDebounceInterval", "addValueToOptionsIfNotExist"], outputs: ["valueChange", "validationChange"] }, { kind: "component", type: i5.PepTextboxComponent, selector: "pep-textbox", inputs: ["key", "value", "minFractionDigits", "maxFractionDigits", "accessory", "label", "placeholder", "type", "mandatory", "disabled", "readonly", "maxFieldCharacters", "hint", "textColor", "xAlignment", "rowSpan", "minValue", "maxValue", "visible", "form", "isActive", "showTitle", "renderTitle", "renderError", "renderSymbol", "layoutType", "parentFieldKey", "regex", "regexError", "isInFocus"], outputs: ["valueChange", "keyup", "validationChange"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
|
|
1272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepNumberFilterComponent, decorators: [{
|
|
1273
|
-
type: Component,
|
|
1274
|
-
args: [{ selector: 'pep-number-filter', template: "<div [formGroup]=\"form\" [fxLayout]=\"inline ? 'row' : 'column'\" [fxLayoutGap]=\"inline ? '.5rem' : '0rem'\">\n <ng-container>\n <pep-select [fxFlex]=\"inline ? operatorWidth : null\" [key]=\"'typeOperator'\" [value]=\"operator.id\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"chooseTypeOptions\" (valueChange)=\"onOperatorChanged($event)\">\n </pep-select>\n </ng-container>\n <ng-container *ngIf=\"operator === PepSmartFilterOperators.NumberRange\">\n <div fxLayout=\"row\" fxLayout.xs=\"column\" [fxLayoutGap]=\"inline ? '.5rem' : '1rem'\"\n [fxFlex]=\"inline ? fieldsWidth : null\">\n <!-- Min number -->\n <pep-textbox [form]=\"form\" [key]=\"firstControlKey\" [label]=\"'SMART_FILTERS.MIN' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" [type]=\"field.type\" fxFlex=\"50%\"\n [value]=\"firstControl?.value || ''\"\n [maxValue]=\"secondControl?.value || ''\" (valueChange)=\"onValueChanged()\">\n </pep-textbox>\n <!-- Max number -->\n <pep-textbox [form]=\"form\" [key]=\"secondControlKey\" [label]=\"'SMART_FILTERS.MAX' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" [type]=\"field.type\" fxFlex=\"50%\"\n [value]=\"secondControl?.value || ''\"\n [minValue]=\"firstControl?.value || ''\" (valueChange)=\"onValueChanged()\">\n </pep-textbox>\n </div>\n </ng-container>\n <ng-container *ngIf=\"operator === PepSmartFilterVariableOperators.LessThanVariable || \n operator === PepSmartFilterVariableOperators.GreaterThanVariable || \n operator === PepSmartFilterVariableOperators.EqualsToVariable\">\n <pep-select [fxFlex]=\"inline ? fieldsWidth : null\" [key]=\"firstControlKey\" [value]=\"firstControl?.value || ''\"\n [label]=\"'SMART_FILTERS.TYPE' | translate\" [renderTitle]=\"renderTitle\" [emptyOption]=\"false\"\n [options]=\"variableFieldOptions\" (valueChange)=\"onVariableChanged($event)\">\n </pep-select>\n </ng-container>\n <ng-container *ngIf=\"operator !== PepSmartFilterOperators.NumberRange && operator !== PepSmartFilterVariableOperators.LessThanVariable &&\n operator !== PepSmartFilterVariableOperators.GreaterThanVariable && \n operator !== PepSmartFilterVariableOperators.EqualsToVariable\">\n <div [fxFlex]=\"inline ? fieldsWidth : null\">\n <!-- Amount -->\n <pep-textbox [form]=\"form\" [key]=\"firstControlKey\" [label]=\"'SMART_FILTERS.AMOUNT' | translate\"\n [renderError]=\"false\" [renderTitle]=\"renderTitle\" [type]=\"field.type\"\n [value]=\"firstControl?.value || ''\" \n (valueChange)=\"onValueChanged()\">\n </pep-textbox>\n </div>\n </ng-container>\n</div>" }]
|
|
1275
|
-
}] });
|
|
1276
|
-
|
|
1277
|
-
class PepSmartFiltersComponent {
|
|
1278
|
-
set filters(value) {
|
|
1279
|
-
this._filters = value;
|
|
1280
|
-
this.setupFilters(value);
|
|
1281
|
-
}
|
|
1282
|
-
get filters() {
|
|
1283
|
-
this._filters = [...this.filtersDataMap.keys()]
|
|
1284
|
-
// .filter((key) => this.filtersDataMap.get(key) !== null)
|
|
1285
|
-
.map((key) => {
|
|
1286
|
-
if (key) {
|
|
1287
|
-
return this.filtersDataMap.get(key);
|
|
1288
|
-
}
|
|
1289
|
-
});
|
|
1290
|
-
return this._filters;
|
|
1291
|
-
}
|
|
1292
|
-
set fields(value) {
|
|
1293
|
-
this._fields = value;
|
|
1294
|
-
}
|
|
1295
|
-
get fields() {
|
|
1296
|
-
return this._fields;
|
|
1297
|
-
}
|
|
1298
|
-
set useAsWebComponent(value) {
|
|
1299
|
-
if (value) {
|
|
1300
|
-
this.exportFunctionsOnHostElement();
|
|
1301
|
-
}
|
|
1302
|
-
}
|
|
1303
|
-
get useAsWebComponent() {
|
|
1304
|
-
return this._useAsWebComponent;
|
|
1305
|
-
}
|
|
1306
|
-
constructor(hostElement, layoutService) {
|
|
1307
|
-
this.hostElement = hostElement;
|
|
1308
|
-
this.layoutService = layoutService;
|
|
1309
|
-
this.title = '';
|
|
1310
|
-
this.filtersDataMap = new Map();
|
|
1311
|
-
this._filters = [];
|
|
1312
|
-
this._fields = [];
|
|
1313
|
-
this._useAsWebComponent = false;
|
|
1314
|
-
// @Output()
|
|
1315
|
-
// filtersClear: EventEmitter<void> = new EventEmitter<void>();
|
|
1316
|
-
this.filtersChange = new EventEmitter();
|
|
1317
|
-
this.fieldToggleChange = new EventEmitter();
|
|
1318
|
-
this.expansionPanelHeaderHeight = '*';
|
|
1319
|
-
}
|
|
1320
|
-
exportFunctionsOnHostElement() {
|
|
1321
|
-
// This is for web component usage for use those functions.
|
|
1322
|
-
this.hostElement.nativeElement.clearFilters = this.clearFilters.bind(this);
|
|
1323
|
-
this.hostElement.nativeElement.clearFilter = this.clearFilter.bind(this);
|
|
1324
|
-
this.hostElement.nativeElement.toggleField = this.toggleField.bind(this);
|
|
1325
|
-
}
|
|
1326
|
-
setupFilters(value) {
|
|
1327
|
-
this.filtersDataMap.clear();
|
|
1328
|
-
if (value) {
|
|
1329
|
-
value.forEach((filter) => {
|
|
1330
|
-
// Validate before add the filter into the map.
|
|
1331
|
-
let currentField = null;
|
|
1332
|
-
if (this.fields && this.fields.length > 0) {
|
|
1333
|
-
currentField = this.fields.find((field) => field.id === filter.fieldId);
|
|
1334
|
-
}
|
|
1335
|
-
if (currentField) {
|
|
1336
|
-
// Only if the operator is from the same type
|
|
1337
|
-
if (filter.operator.componentType.includes(currentField.componentType)) {
|
|
1338
|
-
let isOperatorUnitValid = true;
|
|
1339
|
-
if (filter.operatorUnit) {
|
|
1340
|
-
// Only if the operator unit is not from the same type
|
|
1341
|
-
if (!filter.operatorUnit.componentType.includes(currentField.componentType)) {
|
|
1342
|
-
isOperatorUnitValid = false;
|
|
1343
|
-
}
|
|
1344
|
-
}
|
|
1345
|
-
// Add the filter.
|
|
1346
|
-
if (isOperatorUnitValid) {
|
|
1347
|
-
this.filtersDataMap.set(filter.fieldId, filter);
|
|
1348
|
-
}
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
});
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
raiseFiltersChange() {
|
|
1355
|
-
this.filtersChange.emit(this.filters);
|
|
1356
|
-
}
|
|
1357
|
-
toggleField(index, isOpen) {
|
|
1358
|
-
this.fields[index].isOpen = isOpen;
|
|
1359
|
-
this.fieldToggleChange.emit(this.fields[index]);
|
|
1360
|
-
}
|
|
1361
|
-
clearFilters() {
|
|
1362
|
-
this.filtersDataMap.clear();
|
|
1363
|
-
}
|
|
1364
|
-
clearFilter(fieldId) {
|
|
1365
|
-
this.filtersDataMap.delete(fieldId);
|
|
1366
|
-
}
|
|
1367
|
-
// Clear all the filters and raise event that filters has change.
|
|
1368
|
-
onFiltersClear() {
|
|
1369
|
-
this.clearFilters();
|
|
1370
|
-
this.raiseFiltersChange();
|
|
1371
|
-
}
|
|
1372
|
-
// Clear the filter and raise event that filters has change.
|
|
1373
|
-
onFilterClear(field) {
|
|
1374
|
-
this.clearFilter(field.id);
|
|
1375
|
-
this.raiseFiltersChange();
|
|
1376
|
-
}
|
|
1377
|
-
// Set the filter and raise event that filters has change.
|
|
1378
|
-
onFilterChange(field, filterData) {
|
|
1379
|
-
this.clearFilter(field.id);
|
|
1380
|
-
this.filtersDataMap.set(field.id, filterData);
|
|
1381
|
-
this.raiseFiltersChange();
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1384
|
-
PepSmartFiltersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSmartFiltersComponent, deps: [{ token: i0.ElementRef }, { token: i3.PepLayoutService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1385
|
-
PepSmartFiltersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: PepSmartFiltersComponent, selector: "pep-smart-filters", inputs: { title: "title", filters: "filters", fields: "fields", useAsWebComponent: "useAsWebComponent" }, outputs: { filtersChange: "filtersChange", fieldToggleChange: "fieldToggleChange" }, ngImport: i0, template: "<div class=\"smart-filters-container\" dir=\"{{ layoutService.isRtl() ? 'rtl' : 'ltr' }}\">\n <div *ngIf=\"fields?.length > 0\" class=\"title\">\n <span class=\"body-md bold\">{{ title?.length > 0 ? title : (\"SMART_FILTERS.TITLE\" | translate)}}</span>\n <mat-chip-option *ngIf=\"filtersDataMap.size > 0\" [selectable]=\"false\" [removable]=\"true\" (click)=\"onFiltersClear()\"\n class=\"clear-filter pep-button chip xs weak\">\n <span class=\"body-xs ellipsis \">\n {{ \"ACTIONS.CLEAR\" | translate}}\n </span>\n </mat-chip-option>\n </div>\n\n <mat-accordion [displayMode]=\"'flat'\" [multi]=\"true\" class=\"pep-accordion2\">\n <mat-expansion-panel *ngFor=\"let field of fields; let i = index\" hideToggle=\"true\" [expanded]=\"field.isOpen\"\n (opened)=\"toggleField(i, true)\" (closed)=\"toggleField(i, false)\">\n <mat-expansion-panel-header [collapsedHeight]=\"expansionPanelHeaderHeight\"\n [expandedHeight]=\"expansionPanelHeaderHeight\">\n <mat-panel-title class=\"pep-spacing-element-negative\">\n <div class=\"smart-filter-title-container\">\n <mat-icon class=\"pep-spacing-element\">\n <pep-icon [name]=\"field.isOpen ? 'number_minus' : 'number_plus'\"></pep-icon>\n </mat-icon>\n <span class=\"body-sm ellipsis\" [title]=\"field.name\">\n {{ field.name }}\n </span>\n <mat-chip-option *ngIf=\"filtersDataMap.get(field.id)\" [selectable]=\"false\" [removable]=\"true\"\n (click)=\"onFilterClear(field)\" class=\"clear-filter pep-button chip xs weak\">\n <span *ngIf=\"field.componentType === 'multi-select'\" class=\"body-xs pep-spacing-element\">\n {{ filtersDataMap.get(field.id).value?.first?.length }}\n <!-- {{ field.componentType === 'multi-select' ?\n filtersDataMap.get(field.id).value?.first?.length : 1 }} -->\n </span>\n <mat-icon>\n <pep-icon name=\"system_close\"></pep-icon>\n </mat-icon>\n </mat-chip-option>\n </div>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"expansion-content smart-filter-content\">\n <ng-container [ngSwitch]=\"field.componentType\">\n <ng-container *ngSwitchCase=\"'boolean'\">\n <pep-boolean-filter [field]=\"field\" [filter]=\"filtersDataMap.get(field.id)\"\n (filterChange)=\"onFilterChange(field, $event)\" (filterClear)=\"onFilterClear(field)\">\n </pep-boolean-filter>\n </ng-container>\n <ng-container *ngSwitchCase=\"'date'\">\n <pep-date-filter [field]=\"field\" [filter]=\"filtersDataMap.get(field.id)\"\n (filterChange)=\"onFilterChange(field, $event)\" (filterClear)=\"onFilterClear(field)\">\n </pep-date-filter>\n </ng-container>\n <ng-container *ngSwitchCase=\"'multi-select'\">\n <pep-multi-select-filter [field]=\"field\" [filter]=\"filtersDataMap.get(field.id)\"\n (filterChange)=\"onFilterChange(field, $event)\" (filterClear)=\"onFilterClear(field)\">\n </pep-multi-select-filter>\n </ng-container>\n <ng-container *ngSwitchCase=\"'number'\">\n <pep-number-filter [field]=\"field\" [filter]=\"filtersDataMap.get(field.id)\"\n (filterChange)=\"onFilterChange(field, $event)\" (filterClear)=\"onFilterClear(field)\">\n </pep-number-filter>\n </ng-container>\n <ng-container *ngSwitchCase=\"'text'\">\n <pep-text-filter [field]=\"field\" [filter]=\"filtersDataMap.get(field.id)\"\n (filterChange)=\"onFilterChange(field, $event)\" (filterClear)=\"onFilterClear(field)\">\n </pep-text-filter>\n </ng-container>\n <!-- <div *ngSwitchDefault>\n </div> -->\n </ng-container>\n </div>\n </mat-expansion-panel>\n </mat-accordion>\n</div>", styles: [".smart-filters-container .title{height:calc(var(--pep-top-bar-spacing-bottom, .5rem) + var(--pep-top-bar-field-height, 2.5rem));display:flex;flex-flow:wrap;align-items:center;justify-content:space-between}.smart-filters-container .title .clear-filter{display:flex;flex-direction:row;align-items:center;justify-content:center;margin:0 var(--pep-spacing-xs, .25rem);padding:0 var(--pep-spacing-md, .75rem)}.smart-filters-container .title .clear-filter:after{background-color:transparent}.smart-filters-container .smart-filter-title-container{display:grid;grid-auto-flow:column;grid-template-columns:auto 1fr auto;width:100%}.smart-filters-container .smart-filter-title-container>*{align-self:center}.smart-filters-container .smart-filter-title-container .clear-filter{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-inline-end:var(--pep-spacing-sm, .5rem)}.smart-filters-container .smart-filter-title-container .clear-filter:after{background-color:transparent}.smart-filters-container .smart-filter-title-container .mat-icon pep-icon{height:.75rem;width:.75rem}\n", ".smart-filters-container .clear-filter.weak{background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.08)}.smart-filters-container .clear-filter.weak:hover{background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.16)}.smart-filters-container .clear-filter.weak:focus{box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);position:relative;box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsla(var(--pep-color-text-link-h, 207),var(--pep-color-text-link-s, 76%),var(--pep-color-text-link-l, 37%),.5)}.smart-filters-container .clear-filter.weak:focus:not(.keep-background-on-focus){background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.smart-filters-container .clear-filter.weak:focus:after{z-index:0;content:\"\";transition:all .25s;display:block;position:absolute;inset:0;border-radius:inherit;border:1px solid hsl(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%))}.smart-filters-container .clear-filter.weak:active{box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);position:relative}.smart-filters-container .clear-filter.weak:active:not(.keep-background-on-focus){background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.smart-filters-container .clear-filter.weak:active:after{z-index:0;content:\"\";transition:all .25s;display:block;position:absolute;inset:0;border-radius:inherit;border:1px solid hsl(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%))}.smart-filters-container .clear-filter.weak:disabled:not(.ignore-disabled){box-shadow:unset;border:unset}.smart-filters-container .clear-filter.weak:disabled:not(.ignore-disabled):after{border:unset}.smart-filters-container .clear-filter.weak:disabled:not(.ignore-disabled) .svg-icon{fill:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)}.smart-filters-container .clear-filter.weak:disabled:not(.ignore-disabled) .svg-icon.stroke{fill:unset;stroke:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)}.smart-filters-container .clear-filter.weak:disabled:not(.ignore-disabled):not(.disabled-no-background-no-color){color:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)!important;background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.04)!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i3$2.Dir, selector: "[dir]", inputs: ["dir"], outputs: ["dirChange"], exportAs: ["dir"] }, { kind: "component", type: i4$3.MatChipOption, selector: "mat-basic-chip-option, [mat-basic-chip-option], mat-chip-option, [mat-chip-option]", inputs: ["color", "disabled", "disableRipple", "tabIndex", "selectable", "selected"], outputs: ["selectionChange"] }, { kind: "directive", type: i5$3.MatAccordion, selector: "mat-accordion", inputs: ["multi", "hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i5$3.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i5$3.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i5$3.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i1$1.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }, { kind: "component", type: PepTextFilterComponent, selector: "pep-text-filter" }, { kind: "component", type: PepBooleanFilterComponent, selector: "pep-boolean-filter", inputs: ["options"] }, { kind: "component", type: PepDateFilterComponent, selector: "pep-date-filter" }, { kind: "component", type: PepMultiSelectFilterComponent, selector: "pep-multi-select-filter" }, { kind: "component", type: PepNumberFilterComponent, selector: "pep-number-filter" }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSmartFiltersComponent, decorators: [{
|
|
1387
|
-
type: Component,
|
|
1388
|
-
args: [{ selector: 'pep-smart-filters', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"smart-filters-container\" dir=\"{{ layoutService.isRtl() ? 'rtl' : 'ltr' }}\">\n <div *ngIf=\"fields?.length > 0\" class=\"title\">\n <span class=\"body-md bold\">{{ title?.length > 0 ? title : (\"SMART_FILTERS.TITLE\" | translate)}}</span>\n <mat-chip-option *ngIf=\"filtersDataMap.size > 0\" [selectable]=\"false\" [removable]=\"true\" (click)=\"onFiltersClear()\"\n class=\"clear-filter pep-button chip xs weak\">\n <span class=\"body-xs ellipsis \">\n {{ \"ACTIONS.CLEAR\" | translate}}\n </span>\n </mat-chip-option>\n </div>\n\n <mat-accordion [displayMode]=\"'flat'\" [multi]=\"true\" class=\"pep-accordion2\">\n <mat-expansion-panel *ngFor=\"let field of fields; let i = index\" hideToggle=\"true\" [expanded]=\"field.isOpen\"\n (opened)=\"toggleField(i, true)\" (closed)=\"toggleField(i, false)\">\n <mat-expansion-panel-header [collapsedHeight]=\"expansionPanelHeaderHeight\"\n [expandedHeight]=\"expansionPanelHeaderHeight\">\n <mat-panel-title class=\"pep-spacing-element-negative\">\n <div class=\"smart-filter-title-container\">\n <mat-icon class=\"pep-spacing-element\">\n <pep-icon [name]=\"field.isOpen ? 'number_minus' : 'number_plus'\"></pep-icon>\n </mat-icon>\n <span class=\"body-sm ellipsis\" [title]=\"field.name\">\n {{ field.name }}\n </span>\n <mat-chip-option *ngIf=\"filtersDataMap.get(field.id)\" [selectable]=\"false\" [removable]=\"true\"\n (click)=\"onFilterClear(field)\" class=\"clear-filter pep-button chip xs weak\">\n <span *ngIf=\"field.componentType === 'multi-select'\" class=\"body-xs pep-spacing-element\">\n {{ filtersDataMap.get(field.id).value?.first?.length }}\n <!-- {{ field.componentType === 'multi-select' ?\n filtersDataMap.get(field.id).value?.first?.length : 1 }} -->\n </span>\n <mat-icon>\n <pep-icon name=\"system_close\"></pep-icon>\n </mat-icon>\n </mat-chip-option>\n </div>\n </mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"expansion-content smart-filter-content\">\n <ng-container [ngSwitch]=\"field.componentType\">\n <ng-container *ngSwitchCase=\"'boolean'\">\n <pep-boolean-filter [field]=\"field\" [filter]=\"filtersDataMap.get(field.id)\"\n (filterChange)=\"onFilterChange(field, $event)\" (filterClear)=\"onFilterClear(field)\">\n </pep-boolean-filter>\n </ng-container>\n <ng-container *ngSwitchCase=\"'date'\">\n <pep-date-filter [field]=\"field\" [filter]=\"filtersDataMap.get(field.id)\"\n (filterChange)=\"onFilterChange(field, $event)\" (filterClear)=\"onFilterClear(field)\">\n </pep-date-filter>\n </ng-container>\n <ng-container *ngSwitchCase=\"'multi-select'\">\n <pep-multi-select-filter [field]=\"field\" [filter]=\"filtersDataMap.get(field.id)\"\n (filterChange)=\"onFilterChange(field, $event)\" (filterClear)=\"onFilterClear(field)\">\n </pep-multi-select-filter>\n </ng-container>\n <ng-container *ngSwitchCase=\"'number'\">\n <pep-number-filter [field]=\"field\" [filter]=\"filtersDataMap.get(field.id)\"\n (filterChange)=\"onFilterChange(field, $event)\" (filterClear)=\"onFilterClear(field)\">\n </pep-number-filter>\n </ng-container>\n <ng-container *ngSwitchCase=\"'text'\">\n <pep-text-filter [field]=\"field\" [filter]=\"filtersDataMap.get(field.id)\"\n (filterChange)=\"onFilterChange(field, $event)\" (filterClear)=\"onFilterClear(field)\">\n </pep-text-filter>\n </ng-container>\n <!-- <div *ngSwitchDefault>\n </div> -->\n </ng-container>\n </div>\n </mat-expansion-panel>\n </mat-accordion>\n</div>", styles: [".smart-filters-container .title{height:calc(var(--pep-top-bar-spacing-bottom, .5rem) + var(--pep-top-bar-field-height, 2.5rem));display:flex;flex-flow:wrap;align-items:center;justify-content:space-between}.smart-filters-container .title .clear-filter{display:flex;flex-direction:row;align-items:center;justify-content:center;margin:0 var(--pep-spacing-xs, .25rem);padding:0 var(--pep-spacing-md, .75rem)}.smart-filters-container .title .clear-filter:after{background-color:transparent}.smart-filters-container .smart-filter-title-container{display:grid;grid-auto-flow:column;grid-template-columns:auto 1fr auto;width:100%}.smart-filters-container .smart-filter-title-container>*{align-self:center}.smart-filters-container .smart-filter-title-container .clear-filter{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-inline-end:var(--pep-spacing-sm, .5rem)}.smart-filters-container .smart-filter-title-container .clear-filter:after{background-color:transparent}.smart-filters-container .smart-filter-title-container .mat-icon pep-icon{height:.75rem;width:.75rem}\n", ".smart-filters-container .clear-filter.weak{background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.08)}.smart-filters-container .clear-filter.weak:hover{background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.16)}.smart-filters-container .clear-filter.weak:focus{box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);position:relative;box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsla(var(--pep-color-text-link-h, 207),var(--pep-color-text-link-s, 76%),var(--pep-color-text-link-l, 37%),.5)}.smart-filters-container .clear-filter.weak:focus:not(.keep-background-on-focus){background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.smart-filters-container .clear-filter.weak:focus:after{z-index:0;content:\"\";transition:all .25s;display:block;position:absolute;inset:0;border-radius:inherit;border:1px solid hsl(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%))}.smart-filters-container .clear-filter.weak:active{box-shadow:var(--pep-shadow-xs-offset, 0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);position:relative}.smart-filters-container .clear-filter.weak:active:not(.keep-background-on-focus){background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.smart-filters-container .clear-filter.weak:active:after{z-index:0;content:\"\";transition:all .25s;display:block;position:absolute;inset:0;border-radius:inherit;border:1px solid hsl(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%))}.smart-filters-container .clear-filter.weak:disabled:not(.ignore-disabled){box-shadow:unset;border:unset}.smart-filters-container .clear-filter.weak:disabled:not(.ignore-disabled):after{border:unset}.smart-filters-container .clear-filter.weak:disabled:not(.ignore-disabled) .svg-icon{fill:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)}.smart-filters-container .clear-filter.weak:disabled:not(.ignore-disabled) .svg-icon.stroke{fill:unset;stroke:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)}.smart-filters-container .clear-filter.weak:disabled:not(.ignore-disabled):not(.disabled-no-background-no-color){color:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.35)!important;background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.04)!important}\n"] }]
|
|
1389
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i3.PepLayoutService }]; }, propDecorators: { title: [{
|
|
1390
|
-
type: Input
|
|
1391
|
-
}], filters: [{
|
|
1392
|
-
type: Input
|
|
1393
|
-
}], fields: [{
|
|
1394
|
-
type: Input
|
|
1395
|
-
}], useAsWebComponent: [{
|
|
1396
|
-
type: Input
|
|
1397
|
-
}], filtersChange: [{
|
|
1398
|
-
type: Output
|
|
1399
|
-
}], fieldToggleChange: [{
|
|
1400
|
-
type: Output
|
|
1401
|
-
}] } });
|
|
1402
|
-
|
|
1403
|
-
class PepSmartFiltersModule {
|
|
1404
|
-
constructor(pepIconRegistry) {
|
|
1405
|
-
this.pepIconRegistry = pepIconRegistry;
|
|
1406
|
-
this.pepIconRegistry.registerIcons([
|
|
1407
|
-
pepIconNumberMinus,
|
|
1408
|
-
pepIconNumberPlus,
|
|
1409
|
-
]);
|
|
1410
|
-
}
|
|
1411
|
-
}
|
|
1412
|
-
PepSmartFiltersModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSmartFiltersModule, deps: [{ token: i1$1.PepIconRegistry }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1413
|
-
PepSmartFiltersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: PepSmartFiltersModule, declarations: [
|
|
1414
|
-
// BaseFilterComponent,
|
|
1415
|
-
PepSmartFiltersComponent,
|
|
1416
|
-
PepFilterActionsComponent,
|
|
1417
|
-
PepTextFilterComponent,
|
|
1418
|
-
PepBooleanFilterComponent,
|
|
1419
|
-
PepDateFilterComponent,
|
|
1420
|
-
PepMultiSelectFilterComponent,
|
|
1421
|
-
PepNumberFilterComponent
|
|
1422
|
-
], imports: [CommonModule,
|
|
1423
|
-
ReactiveFormsModule,
|
|
1424
|
-
FlexLayoutModule,
|
|
1425
|
-
// Material modules
|
|
1426
|
-
MatCommonModule,
|
|
1427
|
-
MatCheckboxModule,
|
|
1428
|
-
MatChipsModule,
|
|
1429
|
-
MatExpansionModule,
|
|
1430
|
-
MatIconModule,
|
|
1431
|
-
MatFormFieldModule,
|
|
1432
|
-
MatInputModule,
|
|
1433
|
-
MatRadioModule,
|
|
1434
|
-
// External modules
|
|
1435
|
-
VirtualScrollerModule,
|
|
1436
|
-
// ngx-lib modules
|
|
1437
|
-
PepNgxLibModule,
|
|
1438
|
-
PepCheckboxModule,
|
|
1439
|
-
PepDateModule,
|
|
1440
|
-
PepSelectModule,
|
|
1441
|
-
PepTextboxModule,
|
|
1442
|
-
PepSearchModule,
|
|
1443
|
-
PepIconModule,
|
|
1444
|
-
PepButtonModule,
|
|
1445
|
-
PepGroupButtonsModule], exports: [PepSmartFiltersComponent,
|
|
1446
|
-
PepTextFilterComponent,
|
|
1447
|
-
PepBooleanFilterComponent,
|
|
1448
|
-
PepDateFilterComponent,
|
|
1449
|
-
PepMultiSelectFilterComponent,
|
|
1450
|
-
PepNumberFilterComponent] });
|
|
1451
|
-
PepSmartFiltersModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSmartFiltersModule, providers: [
|
|
1452
|
-
FormBuilder
|
|
1453
|
-
], imports: [CommonModule,
|
|
1454
|
-
ReactiveFormsModule,
|
|
1455
|
-
FlexLayoutModule,
|
|
1456
|
-
// Material modules
|
|
1457
|
-
MatCommonModule,
|
|
1458
|
-
MatCheckboxModule,
|
|
1459
|
-
MatChipsModule,
|
|
1460
|
-
MatExpansionModule,
|
|
1461
|
-
MatIconModule,
|
|
1462
|
-
MatFormFieldModule,
|
|
1463
|
-
MatInputModule,
|
|
1464
|
-
MatRadioModule,
|
|
1465
|
-
// External modules
|
|
1466
|
-
VirtualScrollerModule,
|
|
1467
|
-
// ngx-lib modules
|
|
1468
|
-
PepNgxLibModule,
|
|
1469
|
-
PepCheckboxModule,
|
|
1470
|
-
PepDateModule,
|
|
1471
|
-
PepSelectModule,
|
|
1472
|
-
PepTextboxModule,
|
|
1473
|
-
PepSearchModule,
|
|
1474
|
-
PepIconModule,
|
|
1475
|
-
PepButtonModule,
|
|
1476
|
-
PepGroupButtonsModule] });
|
|
1477
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PepSmartFiltersModule, decorators: [{
|
|
1478
|
-
type: NgModule,
|
|
1479
|
-
args: [{
|
|
1480
|
-
imports: [
|
|
1481
|
-
CommonModule,
|
|
1482
|
-
ReactiveFormsModule,
|
|
1483
|
-
FlexLayoutModule,
|
|
1484
|
-
// Material modules
|
|
1485
|
-
MatCommonModule,
|
|
1486
|
-
MatCheckboxModule,
|
|
1487
|
-
MatChipsModule,
|
|
1488
|
-
MatExpansionModule,
|
|
1489
|
-
MatIconModule,
|
|
1490
|
-
MatFormFieldModule,
|
|
1491
|
-
MatInputModule,
|
|
1492
|
-
MatRadioModule,
|
|
1493
|
-
// External modules
|
|
1494
|
-
VirtualScrollerModule,
|
|
1495
|
-
// ngx-lib modules
|
|
1496
|
-
PepNgxLibModule,
|
|
1497
|
-
PepCheckboxModule,
|
|
1498
|
-
PepDateModule,
|
|
1499
|
-
PepSelectModule,
|
|
1500
|
-
PepTextboxModule,
|
|
1501
|
-
PepSearchModule,
|
|
1502
|
-
PepIconModule,
|
|
1503
|
-
PepButtonModule,
|
|
1504
|
-
PepGroupButtonsModule
|
|
1505
|
-
],
|
|
1506
|
-
exports: [
|
|
1507
|
-
PepSmartFiltersComponent,
|
|
1508
|
-
PepTextFilterComponent,
|
|
1509
|
-
PepBooleanFilterComponent,
|
|
1510
|
-
PepDateFilterComponent,
|
|
1511
|
-
PepMultiSelectFilterComponent,
|
|
1512
|
-
PepNumberFilterComponent
|
|
1513
|
-
],
|
|
1514
|
-
declarations: [
|
|
1515
|
-
// BaseFilterComponent,
|
|
1516
|
-
PepSmartFiltersComponent,
|
|
1517
|
-
PepFilterActionsComponent,
|
|
1518
|
-
PepTextFilterComponent,
|
|
1519
|
-
PepBooleanFilterComponent,
|
|
1520
|
-
PepDateFilterComponent,
|
|
1521
|
-
PepMultiSelectFilterComponent,
|
|
1522
|
-
PepNumberFilterComponent
|
|
1523
|
-
],
|
|
1524
|
-
providers: [
|
|
1525
|
-
FormBuilder
|
|
1526
|
-
]
|
|
1527
|
-
}]
|
|
1528
|
-
}], ctorParameters: function () { return [{ type: i1$1.PepIconRegistry }]; } });
|
|
1529
|
-
|
|
1530
|
-
// Base field
|
|
1531
|
-
// ------------------------------
|
|
1532
|
-
class PepSmartFilterBaseField {
|
|
1533
|
-
get componentType() {
|
|
1534
|
-
return this._componentType;
|
|
1535
|
-
}
|
|
1536
|
-
get type() {
|
|
1537
|
-
return this._type;
|
|
1538
|
-
}
|
|
1539
|
-
constructor(field) {
|
|
1540
|
-
this.id = field.id;
|
|
1541
|
-
this.name = field.name;
|
|
1542
|
-
this.isOpen = field.isOpen;
|
|
1543
|
-
this.options = field.options;
|
|
1544
|
-
this.operators = field.operators;
|
|
1545
|
-
this.operatorUnits = field.operatorUnits;
|
|
1546
|
-
this._type = this.getType();
|
|
1547
|
-
}
|
|
1548
|
-
}
|
|
1549
|
-
// Text field
|
|
1550
|
-
// ------------------------------
|
|
1551
|
-
class PepSmartFilterTextField extends PepSmartFilterBaseField {
|
|
1552
|
-
constructor(field) {
|
|
1553
|
-
super(field);
|
|
1554
|
-
this._componentType = 'text';
|
|
1555
|
-
}
|
|
1556
|
-
getType() {
|
|
1557
|
-
return 'text';
|
|
1558
|
-
}
|
|
1559
|
-
}
|
|
1560
|
-
// Boolean field
|
|
1561
|
-
// ------------------------------
|
|
1562
|
-
class PepSmartFilterBooleanField extends PepSmartFilterBaseField {
|
|
1563
|
-
constructor(field) {
|
|
1564
|
-
super(field);
|
|
1565
|
-
this._componentType = 'boolean';
|
|
1566
|
-
}
|
|
1567
|
-
getType() {
|
|
1568
|
-
return 'boolean';
|
|
1569
|
-
}
|
|
1570
|
-
}
|
|
1571
|
-
// Date fields
|
|
1572
|
-
// ------------------------------
|
|
1573
|
-
class PepSmartFilterDateBaseField extends PepSmartFilterBaseField {
|
|
1574
|
-
constructor(field) {
|
|
1575
|
-
super(field);
|
|
1576
|
-
this._componentType = 'date';
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
class PepSmartFilterDateField extends PepSmartFilterDateBaseField {
|
|
1580
|
-
constructor(field) {
|
|
1581
|
-
super(field);
|
|
1582
|
-
}
|
|
1583
|
-
getType() {
|
|
1584
|
-
return 'date';
|
|
1585
|
-
}
|
|
1586
|
-
}
|
|
1587
|
-
class PepSmartFilterDateTimeField extends PepSmartFilterDateBaseField {
|
|
1588
|
-
constructor(field) {
|
|
1589
|
-
super(field);
|
|
1590
|
-
}
|
|
1591
|
-
getType() {
|
|
1592
|
-
return 'date-time';
|
|
1593
|
-
}
|
|
1594
|
-
}
|
|
1595
|
-
// Multi select field
|
|
1596
|
-
// ------------------------------
|
|
1597
|
-
class PepSmartFilterMultiSelectField extends PepSmartFilterBaseField {
|
|
1598
|
-
constructor(field) {
|
|
1599
|
-
super(field);
|
|
1600
|
-
this._componentType = 'multi-select';
|
|
1601
|
-
}
|
|
1602
|
-
getType() {
|
|
1603
|
-
return 'multi-select';
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
// Number fields
|
|
1607
|
-
// ------------------------------
|
|
1608
|
-
class PepSmartFilterNumberBaseField extends PepSmartFilterBaseField {
|
|
1609
|
-
constructor(field) {
|
|
1610
|
-
super(field);
|
|
1611
|
-
this._componentType = 'number';
|
|
1612
|
-
}
|
|
1613
|
-
}
|
|
1614
|
-
class PepSmartFilterIntField extends PepSmartFilterNumberBaseField {
|
|
1615
|
-
constructor(field) {
|
|
1616
|
-
super(field);
|
|
1617
|
-
}
|
|
1618
|
-
getType() {
|
|
1619
|
-
return 'int';
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
class PepSmartFilterRealField extends PepSmartFilterNumberBaseField {
|
|
1623
|
-
constructor(field) {
|
|
1624
|
-
super(field);
|
|
1625
|
-
}
|
|
1626
|
-
getType() {
|
|
1627
|
-
return 'real';
|
|
1628
|
-
}
|
|
1629
|
-
}
|
|
1630
|
-
class PepSmartFilterCurrencyField extends PepSmartFilterNumberBaseField {
|
|
1631
|
-
constructor(field) {
|
|
1632
|
-
super(field);
|
|
1633
|
-
}
|
|
1634
|
-
getType() {
|
|
1635
|
-
return 'currency';
|
|
1636
|
-
}
|
|
1637
|
-
}
|
|
1638
|
-
class PepSmartFilterPercentageField extends PepSmartFilterNumberBaseField {
|
|
1639
|
-
constructor(field) {
|
|
1640
|
-
super(field);
|
|
1641
|
-
}
|
|
1642
|
-
getType() {
|
|
1643
|
-
return 'percentage';
|
|
1644
|
-
}
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
function createTextSmartFilterField(data) {
|
|
1648
|
-
return new PepSmartFilterTextField(data);
|
|
1649
|
-
}
|
|
1650
|
-
function createBooleanSmartFilterField(data) {
|
|
1651
|
-
return new PepSmartFilterBooleanField(data);
|
|
1652
|
-
}
|
|
1653
|
-
function createDateSmartFilterField(data) {
|
|
1654
|
-
return new PepSmartFilterDateField(data);
|
|
1655
|
-
}
|
|
1656
|
-
function createDateTimeSmartFilterField(data) {
|
|
1657
|
-
return new PepSmartFilterDateTimeField(data);
|
|
1658
|
-
}
|
|
1659
|
-
function createMultiSelectSmartFilterField(data) {
|
|
1660
|
-
return new PepSmartFilterMultiSelectField(data);
|
|
1661
|
-
}
|
|
1662
|
-
function createIntSmartFilterField(data) {
|
|
1663
|
-
return new PepSmartFilterIntField(data);
|
|
1664
|
-
}
|
|
1665
|
-
function createRealSmartFilterField(data) {
|
|
1666
|
-
return new PepSmartFilterRealField(data);
|
|
1667
|
-
}
|
|
1668
|
-
function createCurrencySmartFilterField(data) {
|
|
1669
|
-
return new PepSmartFilterCurrencyField(data);
|
|
1670
|
-
}
|
|
1671
|
-
function createPercentageSmartFilterField(data) {
|
|
1672
|
-
return new PepSmartFilterPercentageField(data);
|
|
1673
|
-
}
|
|
1674
|
-
function createSmartFilterField(data, type) {
|
|
1675
|
-
let field;
|
|
1676
|
-
switch (type) {
|
|
1677
|
-
case 'text':
|
|
1678
|
-
field = createTextSmartFilterField(data);
|
|
1679
|
-
break;
|
|
1680
|
-
case 'boolean':
|
|
1681
|
-
field = createBooleanSmartFilterField(data);
|
|
1682
|
-
break;
|
|
1683
|
-
case 'date':
|
|
1684
|
-
field = createDateSmartFilterField(data);
|
|
1685
|
-
break;
|
|
1686
|
-
case 'date-time':
|
|
1687
|
-
field = createDateTimeSmartFilterField(data);
|
|
1688
|
-
break;
|
|
1689
|
-
case 'multi-select':
|
|
1690
|
-
field = createMultiSelectSmartFilterField(data);
|
|
1691
|
-
break;
|
|
1692
|
-
case 'int':
|
|
1693
|
-
field = createIntSmartFilterField(data);
|
|
1694
|
-
break;
|
|
1695
|
-
case 'real':
|
|
1696
|
-
field = createRealSmartFilterField(data);
|
|
1697
|
-
break;
|
|
1698
|
-
case 'currency':
|
|
1699
|
-
field = createCurrencySmartFilterField(data);
|
|
1700
|
-
break;
|
|
1701
|
-
case 'percentage':
|
|
1702
|
-
field = createPercentageSmartFilterField(data);
|
|
1703
|
-
break;
|
|
1704
|
-
default:
|
|
1705
|
-
field = createMultiSelectSmartFilterField(data);
|
|
1706
|
-
break;
|
|
1707
|
-
}
|
|
1708
|
-
return field;
|
|
1709
|
-
}
|
|
1710
|
-
function createSmartFilter(fieldId, operator, first, second, operatorUnit) {
|
|
1711
|
-
return {
|
|
1712
|
-
fieldId: fieldId,
|
|
1713
|
-
operator: operator,
|
|
1714
|
-
operatorUnit: operatorUnit,
|
|
1715
|
-
value: {
|
|
1716
|
-
first: first,
|
|
1717
|
-
second: second,
|
|
1718
|
-
},
|
|
1719
|
-
};
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
/*
|
|
1723
|
-
* Public API Surface of ngx-lib/smart-filters
|
|
1724
|
-
*/
|
|
1725
|
-
|
|
1726
|
-
/**
|
|
1727
|
-
* Generated bundle index. Do not edit.
|
|
1728
|
-
*/
|
|
1729
|
-
|
|
1730
|
-
export { BaseFilterComponent, IPepSmartFilterOperator, IPepSmartFilterOperatorUnit, PepBooleanFilterComponent, PepDateFilterComponent, PepFilterActionsComponent, PepMultiSelectFilterComponent, PepNumberFilterComponent, PepSmartFilterAdditionalOperators, PepSmartFilterBaseField, PepSmartFilterBooleanField, PepSmartFilterCurrencyField, PepSmartFilterDateBaseField, PepSmartFilterDateField, PepSmartFilterDateTimeField, PepSmartFilterIntField, PepSmartFilterMultiSelectField, PepSmartFilterNumberBaseField, PepSmartFilterOperatorUnits, PepSmartFilterOperators, PepSmartFilterPercentageField, PepSmartFilterRealField, PepSmartFilterTextField, PepSmartFilterVariableOperators, PepSmartFiltersComponent, PepSmartFiltersModule, PepTextFilterComponent, createSmartFilter, createSmartFilterField };
|
|
1731
|
-
//# sourceMappingURL=pepperi-addons-ngx-lib-smart-filters.mjs.map
|