@pepperi-addons/ngx-lib 0.3.15-loader.9 → 0.4.0-angular14.11
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 +30 -27
- package/address/address.module.d.ts +15 -2
- package/address/index.d.ts +5 -0
- package/address/public-api.d.ts +2 -2
- package/attachment/attachment.component.d.ts +85 -82
- package/attachment/attachment.module.d.ts +14 -2
- package/attachment/index.d.ts +5 -0
- package/attachment/public-api.d.ts +2 -2
- package/bread-crumbs/bread-crumbs.component.d.ts +27 -23
- package/bread-crumbs/bread-crumbs.model.d.ts +11 -11
- package/bread-crumbs/bread-crumbs.module.d.ts +15 -5
- package/bread-crumbs/index.d.ts +5 -0
- package/bread-crumbs/public-api.d.ts +3 -3
- package/button/button.component.d.ts +102 -99
- package/button/button.model.d.ts +14 -14
- package/button/button.module.d.ts +13 -2
- package/button/index.d.ts +5 -0
- package/button/public-api.d.ts +3 -3
- package/carousel/carousel-item.directive.d.ts +12 -9
- package/carousel/carousel.component.d.ts +148 -145
- package/carousel/carousel.module.d.ts +8 -2
- package/carousel/index.d.ts +5 -0
- package/carousel/public-api.d.ts +3 -3
- package/checkbox/checkbox.component.d.ts +50 -47
- package/checkbox/checkbox.module.d.ts +19 -5
- package/checkbox/index.d.ts +5 -0
- package/checkbox/public-api.d.ts +2 -2
- package/color/color-picker.component.d.ts +57 -54
- package/color/color.component.d.ts +30 -27
- package/color/color.model.d.ts +1 -1
- package/color/color.module.d.ts +26 -5
- package/color/index.d.ts +5 -0
- package/color/public-api.d.ts +3 -3
- package/core/clipboard/clipboard.directive.d.ts +5 -2
- package/core/clipboard/clipboard.service.d.ts +5 -2
- package/core/clipboard/index.d.ts +1 -1
- package/core/clipboard/public-api.d.ts +2 -2
- package/core/common/directives/auto-width.directive.d.ts +19 -16
- package/core/common/directives/button-blur.directive.d.ts +9 -6
- package/core/common/directives/button-loader.directive.d.ts +26 -23
- package/core/common/directives/data-qa.directive.d.ts +11 -8
- package/core/common/directives/index.d.ts +1 -1
- package/core/common/directives/menu-blur.directive.d.ts +10 -7
- package/core/common/directives/prevent-multi-click.directive.d.ts +7 -4
- package/core/common/directives/print.directive.d.ts +75 -72
- package/core/common/directives/public-api.d.ts +7 -7
- package/core/common/index.d.ts +1 -1
- package/core/common/model/index.d.ts +1 -1
- package/core/common/model/papi.model.d.ts +2 -2
- package/core/common/model/public-api.d.ts +3 -3
- package/core/common/model/utilities.model.d.ts +5 -5
- package/core/common/model/wapi.model.d.ts +200 -200
- package/core/common/pipes/common-pipes.d.ts +57 -36
- package/core/common/pipes/date-ago.pipe.d.ts +11 -8
- package/core/common/pipes/index.d.ts +1 -1
- package/core/common/pipes/public-api.d.ts +2 -2
- package/core/common/public-api.d.ts +4 -4
- package/core/common/services/addon.service.d.ts +41 -38
- package/core/common/services/color.service.d.ts +51 -48
- package/core/common/services/cookie.service.d.ts +53 -50
- package/core/common/services/data-convertor.service.d.ts +44 -41
- package/core/common/services/file.service.d.ts +27 -24
- package/core/common/services/index.d.ts +1 -1
- package/core/common/services/jwt-helper.service.d.ts +13 -10
- package/core/common/services/public-api.d.ts +11 -11
- package/core/common/services/session.service.d.ts +18 -15
- package/core/common/services/translate.service.d.ts +12 -9
- package/core/common/services/utilities.service.d.ts +36 -33
- package/core/common/services/validator.service.d.ts +31 -28
- package/core/common/services/window-scrolling.service.d.ts +10 -7
- package/core/customization/customization.model.d.ts +264 -264
- package/core/customization/customization.service.d.ts +159 -156
- package/core/customization/index.d.ts +1 -1
- package/core/customization/public-api.d.ts +2 -2
- package/core/http/index.d.ts +1 -1
- package/core/http/interceptors/error.interceptor.d.ts +8 -5
- package/core/http/interceptors/index.d.ts +11 -11
- package/core/http/interceptors/loader.interceptor.d.ts +11 -8
- package/core/http/interceptors/profiler.interceptor.d.ts +8 -5
- package/core/http/public-api.d.ts +2 -2
- package/core/http/services/http.service.d.ts +28 -25
- package/core/http/services/loader.service.d.ts +13 -10
- package/core/index.d.ts +1 -1
- package/core/layout/index.d.ts +1 -1
- package/core/layout/layout.service.d.ts +36 -33
- package/core/layout/public-api.d.ts +2 -2
- package/core/layout/rtl.directive.d.ts +21 -16
- package/core/portal/attach.directive.d.ts +13 -10
- package/core/portal/index.d.ts +1 -1
- package/core/portal/portal.service.d.ts +12 -9
- package/core/portal/public-api.d.ts +3 -3
- package/core/portal/target.directive.d.ts +12 -9
- package/core/public-api.d.ts +7 -7
- package/core/scroll-to/index.d.ts +1 -1
- package/core/scroll-to/public-api.d.ts +1 -1
- package/core/scroll-to/scroll-to.service.d.ts +11 -8
- package/date/date.component.d.ts +69 -66
- package/date/date.model.d.ts +31 -26
- package/date/date.module.d.ts +23 -5
- package/date/index.d.ts +5 -0
- package/date/public-api.d.ts +2 -2
- package/dialog/default-dialog.component.d.ts +12 -9
- package/dialog/dialog.component.d.ts +13 -10
- package/dialog/dialog.model.d.ts +31 -31
- package/dialog/dialog.module.d.ts +18 -5
- package/dialog/dialog.service.d.ts +27 -24
- package/dialog/index.d.ts +5 -0
- package/dialog/public-api.d.ts +4 -4
- package/draggable-items/draggable-item/draggable-item.component.d.ts +11 -8
- package/draggable-items/draggable-items.component.d.ts +36 -33
- package/draggable-items/draggable-items.model.d.ts +11 -11
- package/draggable-items/draggable-items.module.d.ts +18 -5
- package/draggable-items/index.d.ts +5 -0
- package/draggable-items/public-api.d.ts +4 -4
- package/esm2020/address/address.component.mjs +109 -0
- package/esm2020/address/address.module.mjs +54 -0
- package/esm2020/address/pepperi-addons-ngx-lib-address.mjs +5 -0
- package/esm2020/address/public-api.mjs +6 -0
- package/esm2020/attachment/attachment.component.mjs +220 -0
- package/esm2020/attachment/attachment.module.mjs +50 -0
- package/esm2020/attachment/pepperi-addons-ngx-lib-attachment.mjs +5 -0
- package/esm2020/attachment/public-api.mjs +6 -0
- package/esm2020/bread-crumbs/bread-crumbs.component.mjs +85 -0
- package/esm2020/bread-crumbs/bread-crumbs.model.mjs +7 -0
- package/esm2020/bread-crumbs/bread-crumbs.module.mjs +50 -0
- package/esm2020/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.mjs +5 -0
- package/esm2020/bread-crumbs/public-api.mjs +7 -0
- package/esm2020/button/button.component.mjs +138 -0
- package/esm2020/button/button.model.mjs +6 -0
- package/esm2020/button/button.module.mjs +46 -0
- package/esm2020/button/pepperi-addons-ngx-lib-button.mjs +5 -0
- package/esm2020/button/public-api.mjs +7 -0
- package/esm2020/carousel/carousel-item.directive.mjs +33 -0
- package/esm2020/carousel/carousel.component.mjs +745 -0
- package/esm2020/carousel/carousel.module.mjs +17 -0
- package/esm2020/carousel/pepperi-addons-ngx-lib-carousel.mjs +5 -0
- package/esm2020/carousel/public-api.mjs +8 -0
- package/esm2020/checkbox/checkbox.component.mjs +168 -0
- package/esm2020/checkbox/checkbox.module.mjs +63 -0
- package/esm2020/checkbox/pepperi-addons-ngx-lib-checkbox.mjs +5 -0
- package/esm2020/checkbox/public-api.mjs +6 -0
- package/esm2020/color/color-picker.component.mjs +224 -0
- package/esm2020/color/color.component.mjs +90 -0
- package/esm2020/color/color.model.mjs +2 -0
- package/esm2020/color/color.module.mjs +93 -0
- package/esm2020/color/pepperi-addons-ngx-lib-color.mjs +5 -0
- package/esm2020/color/public-api.mjs +7 -0
- package/esm2020/core/clipboard/clipboard.directive.mjs +24 -0
- package/esm2020/core/clipboard/clipboard.service.mjs +14 -0
- package/esm2020/core/clipboard/index.mjs +5 -0
- package/esm2020/core/clipboard/public-api.mjs +6 -0
- package/esm2020/core/common/directives/auto-width.directive.mjs +77 -0
- package/esm2020/core/common/directives/button-blur.directive.mjs +24 -0
- package/esm2020/core/common/directives/button-loader.directive.mjs +112 -0
- package/esm2020/core/common/directives/data-qa.directive.mjs +23 -0
- package/esm2020/core/common/directives/index.mjs +5 -0
- package/esm2020/core/common/directives/menu-blur.directive.mjs +32 -0
- package/esm2020/core/common/directives/prevent-multi-click.directive.mjs +27 -0
- package/esm2020/core/common/directives/print.directive.mjs +170 -0
- package/esm2020/core/common/directives/public-api.mjs +12 -0
- package/esm2020/core/common/index.mjs +5 -0
- package/esm2020/core/common/model/index.mjs +5 -0
- package/esm2020/core/common/model/papi.model.mjs +3 -0
- package/esm2020/core/common/model/public-api.mjs +7 -0
- package/esm2020/core/common/model/utilities.model.mjs +57 -0
- package/esm2020/core/common/model/wapi.model.mjs +156 -0
- package/esm2020/core/common/pipes/common-pipes.mjs +167 -0
- package/esm2020/core/common/pipes/date-ago.pipe.mjs +46 -0
- package/esm2020/core/common/pipes/index.mjs +5 -0
- package/esm2020/core/common/pipes/public-api.mjs +6 -0
- package/esm2020/core/common/public-api.mjs +8 -0
- package/esm2020/core/common/services/addon.service.mjs +148 -0
- package/esm2020/core/common/services/color.service.mjs +359 -0
- package/esm2020/core/common/services/cookie.service.mjs +153 -0
- package/esm2020/core/common/services/data-convertor.service.mjs +119 -0
- package/esm2020/core/common/services/file.service.mjs +213 -0
- package/esm2020/core/common/services/index.mjs +5 -0
- package/esm2020/core/common/services/jwt-helper.service.mjs +106 -0
- package/esm2020/core/common/services/public-api.mjs +15 -0
- package/esm2020/core/common/services/session.service.mjs +71 -0
- package/esm2020/core/common/services/translate.service.mjs +46 -0
- package/esm2020/core/common/services/utilities.service.mjs +210 -0
- package/esm2020/core/common/services/validator.service.mjs +272 -0
- package/esm2020/core/common/services/window-scrolling.service.mjs +36 -0
- package/esm2020/core/customization/customization.model.mjs +289 -0
- package/esm2020/core/customization/customization.service.mjs +771 -0
- package/esm2020/core/customization/index.mjs +5 -0
- package/esm2020/core/customization/public-api.mjs +6 -0
- package/esm2020/core/http/index.mjs +5 -0
- package/esm2020/core/http/interceptors/error.interceptor.mjs +27 -0
- package/esm2020/core/http/interceptors/index.mjs +24 -0
- package/esm2020/core/http/interceptors/loader.interceptor.mjs +33 -0
- package/esm2020/core/http/interceptors/profiler.interceptor.mjs +32 -0
- package/esm2020/core/http/public-api.mjs +6 -0
- package/esm2020/core/http/services/http.service.mjs +155 -0
- package/esm2020/core/http/services/loader.service.mjs +50 -0
- package/esm2020/core/index.mjs +5 -0
- package/esm2020/core/layout/index.mjs +5 -0
- package/esm2020/core/layout/layout.service.mjs +168 -0
- package/esm2020/core/layout/public-api.mjs +6 -0
- package/esm2020/core/layout/rtl.directive.mjs +44 -0
- package/esm2020/core/portal/attach.directive.mjs +27 -0
- package/esm2020/core/portal/index.mjs +5 -0
- package/esm2020/core/portal/portal.service.mjs +36 -0
- package/esm2020/core/portal/public-api.mjs +7 -0
- package/esm2020/core/portal/target.directive.mjs +24 -0
- package/esm2020/core/public-api.mjs +11 -0
- package/esm2020/core/scroll-to/index.mjs +5 -0
- package/esm2020/core/scroll-to/public-api.mjs +6 -0
- package/esm2020/core/scroll-to/scroll-to.service.mjs +84 -0
- package/esm2020/date/date.component.mjs +295 -0
- package/esm2020/date/date.model.mjs +54 -0
- package/esm2020/date/date.module.mjs +88 -0
- package/esm2020/date/pepperi-addons-ngx-lib-date.mjs +5 -0
- package/esm2020/date/public-api.mjs +6 -0
- package/esm2020/dialog/default-dialog.component.mjs +37 -0
- package/esm2020/dialog/dialog.component.mjs +36 -0
- package/esm2020/dialog/dialog.model.mjs +33 -0
- package/esm2020/dialog/dialog.module.mjs +59 -0
- package/esm2020/dialog/dialog.service.mjs +82 -0
- package/esm2020/dialog/pepperi-addons-ngx-lib-dialog.mjs +5 -0
- package/esm2020/dialog/public-api.mjs +8 -0
- package/esm2020/draggable-items/draggable-item/draggable-item.component.mjs +27 -0
- package/esm2020/draggable-items/draggable-items.component.mjs +102 -0
- package/esm2020/draggable-items/draggable-items.model.mjs +2 -0
- package/esm2020/draggable-items/draggable-items.module.mjs +60 -0
- package/esm2020/draggable-items/pepperi-addons-ngx-lib-draggable-items.mjs +5 -0
- package/esm2020/draggable-items/public-api.mjs +8 -0
- package/esm2020/field-title/field-title.component.mjs +42 -0
- package/esm2020/field-title/field-title.module.mjs +47 -0
- package/esm2020/field-title/pepperi-addons-ngx-lib-field-title.mjs +5 -0
- package/esm2020/field-title/public-api.mjs +6 -0
- package/esm2020/files-uploader/files-uploader.component.mjs +241 -0
- package/esm2020/files-uploader/files-uploader.module.mjs +79 -0
- package/esm2020/files-uploader/pepperi-addons-ngx-lib-files-uploader.mjs +5 -0
- package/esm2020/files-uploader/public-api.mjs +6 -0
- package/esm2020/form/field-generator.component.mjs +153 -0
- package/esm2020/form/form.component.mjs +1218 -0
- package/esm2020/form/form.model.mjs +2 -0
- package/esm2020/form/form.module.mjs +176 -0
- package/esm2020/form/indicators.component.mjs +23 -0
- package/esm2020/form/internal-button.component.mjs +184 -0
- package/esm2020/form/internal-carusel.component.mjs +117 -0
- package/esm2020/form/internal-carusel.service.mjs +32 -0
- package/esm2020/form/internal-field-generator.component.mjs +147 -0
- package/esm2020/form/internal-form.component.mjs +1214 -0
- package/esm2020/form/internal-list.component.mjs +510 -0
- package/esm2020/form/internal-menu.component.mjs +66 -0
- package/esm2020/form/internal-page.component.mjs +362 -0
- package/esm2020/form/internal-page.service.mjs +120 -0
- package/esm2020/form/pepperi-addons-ngx-lib-form.mjs +5 -0
- package/esm2020/form/public-api.mjs +7 -0
- package/esm2020/group-buttons/group-buttons.component.mjs +67 -0
- package/esm2020/group-buttons/group-buttons.module.mjs +59 -0
- package/esm2020/group-buttons/pepperi-addons-ngx-lib-group-buttons.mjs +5 -0
- package/esm2020/group-buttons/public-api.mjs +6 -0
- package/esm2020/icon/icon-generated-all.model.mjs +101 -0
- package/esm2020/icon/icon-generated.model.mjs +390 -0
- package/esm2020/icon/icon-registry.service.mjs +26 -0
- package/esm2020/icon/icon.component.mjs +91 -0
- package/esm2020/icon/icon.module.mjs +20 -0
- package/esm2020/icon/icon.service.mjs +31 -0
- package/esm2020/icon/pepperi-addons-ngx-lib-icon.mjs +5 -0
- package/esm2020/icon/public-api.mjs +11 -0
- package/esm2020/image/image.component.mjs +247 -0
- package/esm2020/image/image.module.mjs +74 -0
- package/esm2020/image/image.service.mjs +52 -0
- package/esm2020/image/pepperi-addons-ngx-lib-image.mjs +5 -0
- package/esm2020/image/public-api.mjs +7 -0
- package/esm2020/images-filmstrip/images-filmstrip.component.mjs +425 -0
- package/esm2020/images-filmstrip/images-filmstrip.module.mjs +138 -0
- package/esm2020/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.mjs +5 -0
- package/esm2020/images-filmstrip/public-api.mjs +6 -0
- package/esm2020/link/link.component.mjs +339 -0
- package/esm2020/link/link.module.mjs +80 -0
- package/esm2020/link/link.pipes.mjs +18 -0
- package/esm2020/link/pepperi-addons-ngx-lib-link.mjs +5 -0
- package/esm2020/link/public-api.mjs +6 -0
- package/esm2020/list/list-actions.component.mjs +44 -0
- package/esm2020/list/list-carousel.component.mjs +107 -0
- package/esm2020/list/list-chooser.component.mjs +64 -0
- package/esm2020/list/list-pager.component.mjs +120 -0
- package/esm2020/list/list-sorting.component.mjs +61 -0
- package/esm2020/list/list-total.component.mjs +30 -0
- package/esm2020/list/list-views.component.mjs +85 -0
- package/esm2020/list/list.component.mjs +1160 -0
- package/esm2020/list/list.model.mjs +4 -0
- package/esm2020/list/list.module.mjs +144 -0
- package/esm2020/list/list.pipes.mjs +47 -0
- package/esm2020/list/pepperi-addons-ngx-lib-list.mjs +5 -0
- package/esm2020/list/public-api.mjs +15 -0
- package/esm2020/list/virtual-scroller.mjs +1071 -0
- package/esm2020/menu/menu-item.component.mjs +115 -0
- package/esm2020/menu/menu.component.mjs +205 -0
- package/esm2020/menu/menu.model.mjs +19 -0
- package/esm2020/menu/menu.module.mjs +59 -0
- package/esm2020/menu/pepperi-addons-ngx-lib-menu.mjs +5 -0
- package/esm2020/menu/public-api.mjs +7 -0
- package/esm2020/ngx-lib.module.mjs +158 -0
- package/esm2020/page-layout/page-layout.component.mjs +35 -0
- package/esm2020/page-layout/page-layout.module.mjs +34 -0
- package/esm2020/page-layout/pepperi-addons-ngx-lib-page-layout.mjs +5 -0
- package/esm2020/page-layout/public-api.mjs +6 -0
- package/esm2020/pepperi-addons-ngx-lib.mjs +5 -0
- package/esm2020/plugin/pepperi-addons-ngx-lib-plugin.mjs +5 -0
- package/esm2020/plugin/plugin-proxy.component.mjs +97 -0
- package/esm2020/plugin/plugin.model.mjs +2 -0
- package/esm2020/plugin/public-api.mjs +6 -0
- package/esm2020/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.mjs +5 -0
- package/esm2020/profile-data-views-list/profile-data-view/profile-data-view.component.mjs +45 -0
- package/esm2020/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.mjs +65 -0
- package/esm2020/profile-data-views-list/profile-data-views-list.component.mjs +95 -0
- package/esm2020/profile-data-views-list/profile-data-views-list.model.mjs +2 -0
- package/esm2020/profile-data-views-list/profile-data-views-list.module.mjs +88 -0
- package/esm2020/profile-data-views-list/public-api.mjs +9 -0
- package/esm2020/public-api.mjs +6 -0
- package/esm2020/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.mjs +5 -0
- package/esm2020/quantity-selector/public-api.mjs +6 -0
- package/esm2020/quantity-selector/quantity-selector-validation.directive.mjs +47 -0
- package/esm2020/quantity-selector/quantity-selector.component.mjs +511 -0
- package/esm2020/quantity-selector/quantity-selector.module.mjs +82 -0
- package/esm2020/quantity-selector/quantity-selector.pipes.mjs +23 -0
- package/esm2020/query-builder/common/model/field.mjs +2 -0
- package/esm2020/query-builder/common/model/filter.mjs +2 -0
- package/esm2020/query-builder/common/model/legacy.mjs +2 -0
- package/esm2020/query-builder/common/model/operator-unit.mjs +42 -0
- package/esm2020/query-builder/common/model/operator.mjs +266 -0
- package/esm2020/query-builder/common/model/structure.mjs +2 -0
- package/esm2020/query-builder/common/model/type-map.mjs +27 -0
- package/esm2020/query-builder/common/model/type.mjs +6 -0
- package/esm2020/query-builder/common/services/output-query.service.mjs +114 -0
- package/esm2020/query-builder/common/services/query-structure.service.mjs +226 -0
- package/esm2020/query-builder/common/services/type-convertor.service.mjs +42 -0
- package/esm2020/query-builder/pepperi-addons-ngx-lib-query-builder.mjs +5 -0
- package/esm2020/query-builder/public-api.mjs +9 -0
- package/esm2020/query-builder/query-builder-item/query-builder-item.component.mjs +125 -0
- package/esm2020/query-builder/query-builder-section/query-builder-section.component.mjs +71 -0
- package/esm2020/query-builder/query-builder.component.mjs +110 -0
- package/esm2020/query-builder/query-builder.module.mjs +59 -0
- package/esm2020/query-builder/query-builder.service.mjs +102 -0
- package/esm2020/remote-loader/addon-block-loader.component.mjs +84 -0
- package/esm2020/remote-loader/addon-block-loader.service.mjs +61 -0
- package/esm2020/remote-loader/pepperi-addons-ngx-lib-remote-loader.mjs +5 -0
- package/esm2020/remote-loader/public-api.mjs +10 -0
- package/esm2020/remote-loader/remote-loader.component.mjs +137 -0
- package/esm2020/remote-loader/remote-loader.model.mjs +2 -0
- package/esm2020/remote-loader/remote-loader.module.mjs +60 -0
- package/esm2020/remote-loader/remote-loader.service.mjs +57 -0
- package/esm2020/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.mjs +5 -0
- package/esm2020/rich-html-textarea/public-api.mjs +6 -0
- package/esm2020/rich-html-textarea/rich-html-textarea.component.mjs +245 -0
- package/esm2020/rich-html-textarea/rich-html-textarea.module.mjs +95 -0
- package/esm2020/search/pepperi-addons-ngx-lib-search.mjs +5 -0
- package/esm2020/search/public-api.mjs +7 -0
- package/esm2020/search/search.component.mjs +317 -0
- package/esm2020/search/search.model.mjs +2 -0
- package/esm2020/search/search.module.mjs +70 -0
- package/esm2020/select/pepperi-addons-ngx-lib-select.mjs +5 -0
- package/esm2020/select/public-api.mjs +6 -0
- package/esm2020/select/select.component.mjs +238 -0
- package/esm2020/select/select.module.mjs +70 -0
- package/esm2020/separator/pepperi-addons-ngx-lib-separator.mjs +5 -0
- package/esm2020/separator/public-api.mjs +6 -0
- package/esm2020/separator/separator.component.mjs +63 -0
- package/esm2020/separator/separator.module.mjs +18 -0
- package/esm2020/side-bar/pepperi-addons-ngx-lib-side-bar.mjs +5 -0
- package/esm2020/side-bar/public-api.mjs +7 -0
- package/esm2020/side-bar/side-bar.component.mjs +138 -0
- package/esm2020/side-bar/side-bar.model.mjs +2 -0
- package/esm2020/side-bar/side-bar.module.mjs +51 -0
- package/esm2020/signature/pepperi-addons-ngx-lib-signature.mjs +5 -0
- package/esm2020/signature/public-api.mjs +6 -0
- package/esm2020/signature/signature.component.mjs +254 -0
- package/esm2020/signature/signature.module.mjs +90 -0
- package/esm2020/size-detector/pepperi-addons-ngx-lib-size-detector.mjs +5 -0
- package/esm2020/size-detector/public-api.mjs +6 -0
- package/esm2020/size-detector/size-detector.component.mjs +92 -0
- package/esm2020/size-detector/size-detector.module.mjs +35 -0
- package/esm2020/slider/pepperi-addons-ngx-lib-slider.mjs +5 -0
- package/esm2020/slider/public-api.mjs +6 -0
- package/esm2020/slider/slider.component.mjs +101 -0
- package/esm2020/slider/slider.module.mjs +42 -0
- package/esm2020/smart-filters/boolean-filter/boolean-filter.component.mjs +75 -0
- package/esm2020/smart-filters/common/filter-actions.component.mjs +29 -0
- package/esm2020/smart-filters/common/model/base-filter-component.mjs +295 -0
- package/esm2020/smart-filters/common/model/creator.mjs +76 -0
- package/esm2020/smart-filters/common/model/field.mjs +117 -0
- package/esm2020/smart-filters/common/model/filter.mjs +2 -0
- package/esm2020/smart-filters/common/model/operator.mjs +271 -0
- package/esm2020/smart-filters/common/model/type.mjs +2 -0
- package/esm2020/smart-filters/date-filter/date-filter.component.mjs +172 -0
- package/esm2020/smart-filters/multi-select-filter/multi-select-filter.component.mjs +200 -0
- package/esm2020/smart-filters/number-filter/number-filter.component.mjs +116 -0
- package/esm2020/smart-filters/pepperi-addons-ngx-lib-smart-filters.mjs +5 -0
- package/esm2020/smart-filters/public-api.mjs +19 -0
- package/esm2020/smart-filters/smart-filters.component.mjs +141 -0
- package/esm2020/smart-filters/smart-filters.module.mjs +158 -0
- package/esm2020/smart-filters/text-filter/text-filter.component.mjs +92 -0
- package/esm2020/snack-bar/default-snack-bar.component.mjs +29 -0
- package/esm2020/snack-bar/pepperi-addons-ngx-lib-snack-bar.mjs +5 -0
- package/esm2020/snack-bar/public-api.mjs +8 -0
- package/esm2020/snack-bar/snack-bar.component.mjs +26 -0
- package/esm2020/snack-bar/snack-bar.model.mjs +7 -0
- package/esm2020/snack-bar/snack-bar.module.mjs +63 -0
- package/esm2020/snack-bar/snack-bar.service.mjs +60 -0
- package/esm2020/textarea/pepperi-addons-ngx-lib-textarea.mjs +5 -0
- package/esm2020/textarea/public-api.mjs +6 -0
- package/esm2020/textarea/textarea.component.mjs +182 -0
- package/esm2020/textarea/textarea.module.mjs +82 -0
- package/esm2020/textbox/pepperi-addons-ngx-lib-textbox.mjs +5 -0
- package/esm2020/textbox/public-api.mjs +6 -0
- package/esm2020/textbox/textbox-validation.directive.mjs +89 -0
- package/esm2020/textbox/textbox.component.mjs +442 -0
- package/esm2020/textbox/textbox.module.mjs +72 -0
- package/esm2020/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.mjs +5 -0
- package/esm2020/textbox-icon/public-api.mjs +6 -0
- package/esm2020/textbox-icon/textbox-icon.component.mjs +48 -0
- package/esm2020/textbox-icon/textbox-icon.module.mjs +64 -0
- package/esm2020/top-bar/pepperi-addons-ngx-lib-top-bar.mjs +5 -0
- package/esm2020/top-bar/public-api.mjs +7 -0
- package/esm2020/top-bar/top-bar.component.mjs +112 -0
- package/esm2020/top-bar/top-bar.model.mjs +2 -0
- package/esm2020/top-bar/top-bar.module.mjs +62 -0
- package/fesm2015/pepperi-addons-ngx-lib-address.mjs +170 -0
- package/fesm2015/pepperi-addons-ngx-lib-address.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs +277 -0
- package/fesm2015/pepperi-addons-ngx-lib-attachment.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.mjs +147 -0
- package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-button.mjs +197 -0
- package/fesm2015/pepperi-addons-ngx-lib-button.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-carousel.mjs +804 -0
- package/fesm2015/pepperi-addons-ngx-lib-carousel.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-checkbox.mjs +237 -0
- package/fesm2015/pepperi-addons-ngx-lib-checkbox.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-color.mjs +404 -0
- package/fesm2015/pepperi-addons-ngx-lib-color.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-date.mjs +441 -0
- package/fesm2015/pepperi-addons-ngx-lib-date.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs +242 -0
- package/fesm2015/pepperi-addons-ngx-lib-dialog.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs +192 -0
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-field-title.mjs +96 -0
- package/fesm2015/pepperi-addons-ngx-lib-field-title.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs +326 -0
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-form.mjs +4204 -0
- package/fesm2015/pepperi-addons-ngx-lib-form.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-group-buttons.mjs +132 -0
- package/fesm2015/pepperi-addons-ngx-lib-group-buttons.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-icon.mjs +661 -0
- package/fesm2015/pepperi-addons-ngx-lib-icon.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-image.mjs +374 -0
- package/fesm2015/pepperi-addons-ngx-lib-image.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs +552 -0
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-link.mjs +438 -0
- package/fesm2015/pepperi-addons-ngx-lib-link.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs +2896 -0
- package/fesm2015/pepperi-addons-ngx-lib-list.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-menu.mjs +391 -0
- package/fesm2015/pepperi-addons-ngx-lib-menu.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-page-layout.mjs +77 -0
- package/fesm2015/pepperi-addons-ngx-lib-page-layout.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-plugin.mjs +114 -0
- package/fesm2015/pepperi-addons-ngx-lib-plugin.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs +289 -0
- package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs +662 -0
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs +1167 -0
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-remote-loader.mjs +404 -0
- package/fesm2015/pepperi-addons-ngx-lib-remote-loader.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.mjs +344 -0
- package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-search.mjs +393 -0
- package/fesm2015/pepperi-addons-ngx-lib-search.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-select.mjs +314 -0
- package/fesm2015/pepperi-addons-ngx-lib-select.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-separator.mjs +89 -0
- package/fesm2015/pepperi-addons-ngx-lib-separator.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.mjs +194 -0
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-signature.mjs +350 -0
- package/fesm2015/pepperi-addons-ngx-lib-signature.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-size-detector.mjs +134 -0
- package/fesm2015/pepperi-addons-ngx-lib-size-detector.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-slider.mjs +151 -0
- package/fesm2015/pepperi-addons-ngx-lib-slider.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs +1676 -0
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-snack-bar.mjs +183 -0
- package/fesm2015/pepperi-addons-ngx-lib-snack-bar.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-textarea.mjs +271 -0
- package/fesm2015/pepperi-addons-ngx-lib-textarea.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.mjs +118 -0
- package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs +604 -0
- package/fesm2015/pepperi-addons-ngx-lib-textbox.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs +180 -0
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib.mjs +4579 -0
- package/fesm2015/pepperi-addons-ngx-lib.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-address.mjs +170 -0
- package/fesm2020/pepperi-addons-ngx-lib-address.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-attachment.mjs +277 -0
- package/fesm2020/pepperi-addons-ngx-lib-attachment.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-bread-crumbs.mjs +147 -0
- package/fesm2020/pepperi-addons-ngx-lib-bread-crumbs.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-button.mjs +197 -0
- package/fesm2020/pepperi-addons-ngx-lib-button.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-carousel.mjs +800 -0
- package/fesm2020/pepperi-addons-ngx-lib-carousel.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-checkbox.mjs +237 -0
- package/fesm2020/pepperi-addons-ngx-lib-checkbox.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-color.mjs +401 -0
- package/fesm2020/pepperi-addons-ngx-lib-color.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-date.mjs +437 -0
- package/fesm2020/pepperi-addons-ngx-lib-date.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-dialog.mjs +237 -0
- package/fesm2020/pepperi-addons-ngx-lib-dialog.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs +191 -0
- package/fesm2020/pepperi-addons-ngx-lib-draggable-items.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-field-title.mjs +96 -0
- package/fesm2020/pepperi-addons-ngx-lib-field-title.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs +323 -0
- package/fesm2020/pepperi-addons-ngx-lib-files-uploader.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-form.mjs +4200 -0
- package/fesm2020/pepperi-addons-ngx-lib-form.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-group-buttons.mjs +132 -0
- package/fesm2020/pepperi-addons-ngx-lib-group-buttons.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-icon.mjs +659 -0
- package/fesm2020/pepperi-addons-ngx-lib-icon.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-image.mjs +372 -0
- package/fesm2020/pepperi-addons-ngx-lib-image.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs +549 -0
- package/fesm2020/pepperi-addons-ngx-lib-images-filmstrip.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-link.mjs +438 -0
- package/fesm2020/pepperi-addons-ngx-lib-link.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs +2882 -0
- package/fesm2020/pepperi-addons-ngx-lib-list.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-menu.mjs +391 -0
- package/fesm2020/pepperi-addons-ngx-lib-menu.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-page-layout.mjs +77 -0
- package/fesm2020/pepperi-addons-ngx-lib-page-layout.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-plugin.mjs +108 -0
- package/fesm2020/pepperi-addons-ngx-lib-plugin.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-profile-data-views-list.mjs +288 -0
- package/fesm2020/pepperi-addons-ngx-lib-profile-data-views-list.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs +661 -0
- package/fesm2020/pepperi-addons-ngx-lib-quantity-selector.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-query-builder.mjs +1156 -0
- package/fesm2020/pepperi-addons-ngx-lib-query-builder.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-remote-loader.mjs +393 -0
- package/fesm2020/pepperi-addons-ngx-lib-remote-loader.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-rich-html-textarea.mjs +344 -0
- package/fesm2020/pepperi-addons-ngx-lib-rich-html-textarea.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-search.mjs +392 -0
- package/fesm2020/pepperi-addons-ngx-lib-search.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-select.mjs +314 -0
- package/fesm2020/pepperi-addons-ngx-lib-select.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-separator.mjs +89 -0
- package/fesm2020/pepperi-addons-ngx-lib-separator.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-side-bar.mjs +194 -0
- package/fesm2020/pepperi-addons-ngx-lib-side-bar.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-signature.mjs +350 -0
- package/fesm2020/pepperi-addons-ngx-lib-signature.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-size-detector.mjs +134 -0
- package/fesm2020/pepperi-addons-ngx-lib-size-detector.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-slider.mjs +150 -0
- package/fesm2020/pepperi-addons-ngx-lib-slider.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-smart-filters.mjs +1669 -0
- package/fesm2020/pepperi-addons-ngx-lib-smart-filters.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-snack-bar.mjs +180 -0
- package/fesm2020/pepperi-addons-ngx-lib-snack-bar.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-textarea.mjs +270 -0
- package/fesm2020/pepperi-addons-ngx-lib-textarea.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-textbox-icon.mjs +118 -0
- package/fesm2020/pepperi-addons-ngx-lib-textbox-icon.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-textbox.mjs +604 -0
- package/fesm2020/pepperi-addons-ngx-lib-textbox.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib-top-bar.mjs +179 -0
- package/fesm2020/pepperi-addons-ngx-lib-top-bar.mjs.map +1 -0
- package/fesm2020/pepperi-addons-ngx-lib.mjs +4561 -0
- package/fesm2020/pepperi-addons-ngx-lib.mjs.map +1 -0
- package/field-title/field-title.component.d.ts +14 -11
- package/field-title/field-title.module.d.ts +15 -5
- package/field-title/index.d.ts +5 -0
- package/field-title/public-api.d.ts +2 -2
- package/files-uploader/files-uploader.component.d.ts +57 -53
- package/files-uploader/files-uploader.module.d.ts +21 -5
- package/files-uploader/index.d.ts +5 -0
- package/files-uploader/public-api.d.ts +2 -2
- package/form/field-generator.component.d.ts +39 -45
- package/form/form.component.d.ts +93 -90
- package/form/form.model.d.ts +20 -20
- package/form/form.module.d.ts +49 -5
- package/form/index.d.ts +5 -0
- package/form/indicators.component.d.ts +10 -7
- package/form/internal-button.component.d.ts +42 -39
- package/form/internal-carusel.component.d.ts +39 -38
- package/form/internal-carusel.service.d.ts +10 -7
- package/form/internal-field-generator.component.d.ts +35 -0
- package/form/internal-form.component.d.ts +89 -0
- package/form/internal-list.component.d.ts +95 -92
- package/form/internal-menu.component.d.ts +19 -16
- package/form/internal-page.component.d.ts +73 -72
- package/form/internal-page.service.d.ts +22 -19
- package/form/public-api.d.ts +3 -3
- package/group-buttons/group-buttons.component.d.ts +23 -20
- package/group-buttons/group-buttons.module.d.ts +18 -5
- package/group-buttons/index.d.ts +5 -0
- package/group-buttons/public-api.d.ts +2 -2
- package/icon/icon-generated-all.model.d.ts +99 -99
- package/icon/icon-generated.model.d.ts +394 -394
- package/icon/icon-registry.service.d.ts +9 -6
- package/icon/icon.component.d.ts +49 -46
- package/icon/icon.module.d.ts +7 -2
- package/icon/icon.service.d.ts +13 -10
- package/icon/index.d.ts +5 -0
- package/icon/public-api.d.ts +6 -6
- package/image/image.component.d.ts +66 -63
- package/image/image.module.d.ts +20 -5
- package/image/image.service.d.ts +14 -11
- package/image/index.d.ts +5 -0
- package/image/public-api.d.ts +3 -3
- package/images-filmstrip/images-filmstrip.component.d.ts +87 -87
- package/images-filmstrip/images-filmstrip.module.d.ts +22 -5
- package/images-filmstrip/index.d.ts +5 -0
- package/images-filmstrip/public-api.d.ts +2 -2
- package/index.d.ts +5 -0
- package/link/index.d.ts +5 -0
- package/link/link.component.d.ts +133 -131
- package/link/link.module.d.ts +22 -5
- package/link/link.pipes.d.ts +7 -4
- package/link/public-api.d.ts +2 -2
- package/list/index.d.ts +5 -0
- package/list/list-actions.component.d.ts +18 -14
- package/list/list-carousel.component.d.ts +40 -36
- package/list/list-chooser.component.d.ts +29 -25
- package/list/list-pager.component.d.ts +39 -35
- package/list/list-sorting.component.d.ts +30 -26
- package/list/list-total.component.d.ts +11 -7
- package/list/list-views.component.d.ts +35 -31
- package/list/list.component.d.ts +164 -161
- package/list/list.model.d.ts +31 -31
- package/list/list.module.d.ts +34 -5
- package/list/list.pipes.d.ts +16 -11
- package/list/public-api.d.ts +10 -10
- package/list/virtual-scroller.d.ts +183 -176
- package/menu/index.d.ts +5 -0
- package/menu/menu-item.component.d.ts +28 -25
- package/menu/menu.component.d.ts +46 -43
- package/menu/menu.model.d.ts +25 -25
- package/menu/menu.module.d.ts +18 -5
- package/menu/public-api.d.ts +3 -3
- package/ngx-lib.module.d.ts +23 -2
- package/package.json +353 -20
- package/page-layout/index.d.ts +5 -0
- package/page-layout/page-layout.component.d.ts +19 -16
- package/page-layout/page-layout.module.d.ts +10 -2
- package/page-layout/public-api.d.ts +2 -2
- package/plugin/index.d.ts +5 -0
- package/plugin/plugin-proxy.component.d.ts +25 -0
- package/plugin/plugin.model.d.ts +6 -0
- package/plugin/public-api.d.ts +2 -0
- package/profile-data-views-list/index.d.ts +5 -0
- package/profile-data-views-list/profile-data-view/profile-data-view.component.d.ts +18 -15
- package/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.d.ts +24 -21
- package/profile-data-views-list/profile-data-views-list.component.d.ts +35 -32
- package/profile-data-views-list/profile-data-views-list.model.d.ts +18 -18
- package/profile-data-views-list/profile-data-views-list.module.d.ts +23 -5
- package/profile-data-views-list/public-api.d.ts +5 -5
- package/public-api.d.ts +2 -2
- package/quantity-selector/index.d.ts +5 -0
- package/quantity-selector/public-api.d.ts +2 -2
- package/quantity-selector/quantity-selector-validation.directive.d.ts +16 -13
- package/quantity-selector/quantity-selector.component.d.ts +101 -98
- package/quantity-selector/quantity-selector.module.d.ts +23 -5
- package/quantity-selector/quantity-selector.pipes.d.ts +7 -4
- package/query-builder/common/model/field.d.ts +8 -8
- package/query-builder/common/model/filter.d.ts +6 -6
- package/query-builder/common/model/legacy.d.ts +29 -29
- package/query-builder/common/model/operator-unit.d.ts +13 -13
- package/query-builder/common/model/operator.d.ts +21 -21
- package/query-builder/common/model/structure.d.ts +4 -4
- package/query-builder/common/model/type-map.d.ts +12 -12
- package/query-builder/common/model/type.d.ts +4 -4
- package/query-builder/common/services/output-query.service.d.ts +47 -44
- package/query-builder/common/services/query-structure.service.d.ts +82 -78
- package/query-builder/common/services/type-convertor.service.d.ts +13 -10
- package/query-builder/index.d.ts +5 -0
- package/query-builder/public-api.d.ts +5 -5
- package/query-builder/query-builder-item/query-builder-item.component.d.ts +41 -38
- package/query-builder/query-builder-section/query-builder-section.component.d.ts +30 -27
- package/query-builder/query-builder.component.d.ts +39 -36
- package/query-builder/query-builder.module.d.ts +16 -2
- package/query-builder/query-builder.service.d.ts +30 -27
- package/remote-loader/addon-block-loader.component.d.ts +32 -29
- package/remote-loader/addon-block-loader.service.d.ts +16 -13
- package/remote-loader/index.d.ts +5 -0
- package/remote-loader/public-api.d.ts +6 -6
- package/remote-loader/remote-loader.component.d.ts +27 -24
- package/remote-loader/remote-loader.model.d.ts +36 -36
- package/remote-loader/remote-loader.module.d.ts +13 -2
- package/remote-loader/remote-loader.service.d.ts +17 -14
- package/rich-html-textarea/index.d.ts +5 -0
- package/rich-html-textarea/public-api.d.ts +2 -2
- package/rich-html-textarea/rich-html-textarea.component.d.ts +78 -75
- package/rich-html-textarea/rich-html-textarea.module.d.ts +25 -5
- package/search/index.d.ts +5 -0
- package/search/public-api.d.ts +3 -3
- package/search/search.component.d.ts +65 -61
- package/search/search.model.d.ts +14 -14
- package/search/search.module.d.ts +20 -5
- package/select/index.d.ts +5 -0
- package/select/public-api.d.ts +2 -2
- package/select/select.component.d.ts +53 -50
- package/select/select.module.d.ts +20 -5
- package/separator/index.d.ts +5 -0
- package/separator/public-api.d.ts +2 -2
- package/separator/separator.component.d.ts +22 -19
- package/separator/separator.module.d.ts +8 -2
- package/side-bar/index.d.ts +5 -0
- package/side-bar/public-api.d.ts +3 -3
- package/side-bar/side-bar.component.d.ts +42 -38
- package/side-bar/side-bar.model.d.ts +4 -4
- package/side-bar/side-bar.module.d.ts +16 -5
- package/signature/index.d.ts +5 -0
- package/signature/public-api.d.ts +2 -2
- package/signature/signature.component.d.ts +68 -65
- package/signature/signature.module.d.ts +24 -5
- package/size-detector/index.d.ts +5 -0
- package/size-detector/public-api.d.ts +2 -2
- package/size-detector/size-detector.component.d.ts +29 -26
- package/size-detector/size-detector.module.d.ts +11 -2
- package/slider/index.d.ts +5 -0
- package/slider/public-api.d.ts +2 -2
- package/slider/slider.component.d.ts +39 -36
- package/slider/slider.module.d.ts +12 -2
- package/smart-filters/boolean-filter/boolean-filter.component.d.ts +28 -25
- package/smart-filters/common/filter-actions.component.d.ts +12 -9
- package/smart-filters/common/model/base-filter-component.d.ts +73 -70
- package/smart-filters/common/model/creator.d.ts +6 -6
- package/smart-filters/common/model/field.d.ts +69 -69
- package/smart-filters/common/model/filter.d.ts +11 -11
- package/smart-filters/common/model/operator.d.ts +51 -51
- package/smart-filters/common/model/type.d.ts +4 -4
- package/smart-filters/date-filter/date-filter.component.d.ts +59 -56
- package/smart-filters/index.d.ts +5 -0
- package/smart-filters/multi-select-filter/multi-select-filter.component.d.ts +56 -53
- package/smart-filters/number-filter/number-filter.component.d.ts +51 -48
- package/smart-filters/public-api.d.ts +14 -14
- package/smart-filters/smart-filters.component.d.ts +35 -32
- package/smart-filters/smart-filters.module.d.ts +37 -5
- package/smart-filters/text-filter/text-filter.component.d.ts +28 -25
- package/snack-bar/default-snack-bar.component.d.ts +13 -10
- package/snack-bar/index.d.ts +5 -0
- package/snack-bar/public-api.d.ts +4 -4
- package/snack-bar/snack-bar.component.d.ts +12 -9
- package/snack-bar/snack-bar.model.d.ts +8 -8
- package/snack-bar/snack-bar.module.d.ts +19 -5
- package/snack-bar/snack-bar.service.d.ts +24 -21
- package/src/core/style/themes/black-theme.scss +1 -1
- package/src/core/style/themes/default-theme.scss +1 -1
- package/src/core/style/themes/light-theme.scss +1 -1
- package/src/core/style/themes/nature-theme.scss +1 -1
- package/textarea/index.d.ts +5 -0
- package/textarea/public-api.d.ts +2 -2
- package/textarea/textarea.component.d.ts +54 -51
- package/textarea/textarea.module.d.ts +23 -5
- package/textbox/index.d.ts +5 -0
- package/textbox/public-api.d.ts +2 -2
- package/textbox/textbox-validation.directive.d.ts +21 -18
- package/textbox/textbox.component.d.ts +143 -141
- package/textbox/textbox.module.d.ts +22 -5
- package/textbox-icon/index.d.ts +5 -0
- package/textbox-icon/public-api.d.ts +2 -2
- package/textbox-icon/textbox-icon.component.d.ts +13 -10
- package/textbox-icon/textbox-icon.module.d.ts +16 -5
- package/theming.scss +1 -1
- package/top-bar/index.d.ts +5 -0
- package/top-bar/public-api.d.ts +3 -3
- package/top-bar/top-bar.component.d.ts +39 -36
- package/top-bar/top-bar.model.d.ts +4 -4
- package/top-bar/top-bar.module.d.ts +18 -5
- package/address/package.json +0 -11
- package/address/pepperi-addons-ngx-lib-address.d.ts +0 -4
- package/address/pepperi-addons-ngx-lib-address.metadata.json +0 -1
- package/attachment/package.json +0 -11
- package/attachment/pepperi-addons-ngx-lib-attachment.d.ts +0 -4
- package/attachment/pepperi-addons-ngx-lib-attachment.metadata.json +0 -1
- package/bread-crumbs/package.json +0 -11
- package/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.d.ts +0 -4
- package/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.metadata.json +0 -1
- package/bundles/pepperi-addons-ngx-lib-address.umd.js +0 -145
- package/bundles/pepperi-addons-ngx-lib-address.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-attachment.umd.js +0 -268
- package/bundles/pepperi-addons-ngx-lib-attachment.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-bread-crumbs.umd.js +0 -145
- package/bundles/pepperi-addons-ngx-lib-bread-crumbs.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-button.umd.js +0 -182
- package/bundles/pepperi-addons-ngx-lib-button.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-carousel.umd.js +0 -812
- package/bundles/pepperi-addons-ngx-lib-carousel.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-checkbox.umd.js +0 -213
- package/bundles/pepperi-addons-ngx-lib-checkbox.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-color.umd.js +0 -326
- package/bundles/pepperi-addons-ngx-lib-color.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-date.umd.js +0 -698
- package/bundles/pepperi-addons-ngx-lib-date.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-dialog.umd.js +0 -578
- package/bundles/pepperi-addons-ngx-lib-dialog.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-draggable-items.umd.js +0 -175
- package/bundles/pepperi-addons-ngx-lib-draggable-items.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-field-title.umd.js +0 -78
- package/bundles/pepperi-addons-ngx-lib-field-title.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-files-uploader.umd.js +0 -281
- package/bundles/pepperi-addons-ngx-lib-files-uploader.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-form.umd.js +0 -3401
- package/bundles/pepperi-addons-ngx-lib-form.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-group-buttons.umd.js +0 -108
- package/bundles/pepperi-addons-ngx-lib-group-buttons.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-icon.umd.js +0 -834
- package/bundles/pepperi-addons-ngx-lib-icon.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-image.umd.js +0 -372
- package/bundles/pepperi-addons-ngx-lib-image.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-images-filmstrip.umd.js +0 -446
- package/bundles/pepperi-addons-ngx-lib-images-filmstrip.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-link.umd.js +0 -412
- package/bundles/pepperi-addons-ngx-lib-link.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-list.umd.js +0 -3274
- package/bundles/pepperi-addons-ngx-lib-list.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-menu.umd.js +0 -676
- package/bundles/pepperi-addons-ngx-lib-menu.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-page-layout.umd.js +0 -81
- package/bundles/pepperi-addons-ngx-lib-page-layout.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-profile-data-views-list.umd.js +0 -572
- package/bundles/pepperi-addons-ngx-lib-profile-data-views-list.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-quantity-selector.umd.js +0 -959
- package/bundles/pepperi-addons-ngx-lib-quantity-selector.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-query-builder.umd.js +0 -1250
- package/bundles/pepperi-addons-ngx-lib-query-builder.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-remote-loader.umd.js +0 -738
- package/bundles/pepperi-addons-ngx-lib-remote-loader.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-rich-html-textarea.umd.js +0 -296
- package/bundles/pepperi-addons-ngx-lib-rich-html-textarea.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-search.umd.js +0 -347
- package/bundles/pepperi-addons-ngx-lib-search.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-select.umd.js +0 -598
- package/bundles/pepperi-addons-ngx-lib-select.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-separator.umd.js +0 -100
- package/bundles/pepperi-addons-ngx-lib-separator.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-side-bar.umd.js +0 -184
- package/bundles/pepperi-addons-ngx-lib-side-bar.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-signature.umd.js +0 -307
- package/bundles/pepperi-addons-ngx-lib-signature.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-size-detector.umd.js +0 -134
- package/bundles/pepperi-addons-ngx-lib-size-detector.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-slider.umd.js +0 -145
- package/bundles/pepperi-addons-ngx-lib-slider.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-smart-filters.umd.js +0 -2044
- package/bundles/pepperi-addons-ngx-lib-smart-filters.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-snack-bar.umd.js +0 -202
- package/bundles/pepperi-addons-ngx-lib-snack-bar.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-textarea.umd.js +0 -232
- package/bundles/pepperi-addons-ngx-lib-textarea.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-textbox-icon.umd.js +0 -101
- package/bundles/pepperi-addons-ngx-lib-textbox-icon.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-textbox.umd.js +0 -577
- package/bundles/pepperi-addons-ngx-lib-textbox.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib-top-bar.umd.js +0 -150
- package/bundles/pepperi-addons-ngx-lib-top-bar.umd.js.map +0 -1
- package/bundles/pepperi-addons-ngx-lib.umd.js +0 -5183
- package/bundles/pepperi-addons-ngx-lib.umd.js.map +0 -1
- package/button/package.json +0 -11
- package/button/pepperi-addons-ngx-lib-button.d.ts +0 -4
- package/button/pepperi-addons-ngx-lib-button.metadata.json +0 -1
- package/carousel/package.json +0 -11
- package/carousel/pepperi-addons-ngx-lib-carousel.d.ts +0 -4
- package/carousel/pepperi-addons-ngx-lib-carousel.metadata.json +0 -1
- package/checkbox/package.json +0 -14
- package/checkbox/pepperi-addons-ngx-lib-checkbox.d.ts +0 -4
- package/checkbox/pepperi-addons-ngx-lib-checkbox.metadata.json +0 -1
- package/color/package.json +0 -14
- package/color/pepperi-addons-ngx-lib-color.d.ts +0 -5
- package/color/pepperi-addons-ngx-lib-color.metadata.json +0 -1
- package/date/package.json +0 -18
- package/date/pepperi-addons-ngx-lib-date.d.ts +0 -5
- package/date/pepperi-addons-ngx-lib-date.metadata.json +0 -1
- package/dialog/package.json +0 -15
- package/dialog/pepperi-addons-ngx-lib-dialog.d.ts +0 -5
- package/dialog/pepperi-addons-ngx-lib-dialog.metadata.json +0 -1
- package/draggable-items/package.json +0 -14
- package/draggable-items/pepperi-addons-ngx-lib-draggable-items.d.ts +0 -4
- package/draggable-items/pepperi-addons-ngx-lib-draggable-items.metadata.json +0 -1
- package/esm2015/address/address.component.js +0 -97
- package/esm2015/address/address.module.js +0 -31
- package/esm2015/address/pepperi-addons-ngx-lib-address.js +0 -5
- package/esm2015/address/public-api.js +0 -6
- package/esm2015/attachment/attachment.component.js +0 -209
- package/esm2015/attachment/attachment.module.js +0 -29
- package/esm2015/attachment/pepperi-addons-ngx-lib-attachment.js +0 -5
- package/esm2015/attachment/public-api.js +0 -6
- package/esm2015/bread-crumbs/bread-crumbs.component.js +0 -79
- package/esm2015/bread-crumbs/bread-crumbs.model.js +0 -7
- package/esm2015/bread-crumbs/bread-crumbs.module.js +0 -35
- package/esm2015/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.js +0 -5
- package/esm2015/bread-crumbs/public-api.js +0 -7
- package/esm2015/button/button.component.js +0 -128
- package/esm2015/button/button.model.js +0 -6
- package/esm2015/button/button.module.js +0 -27
- package/esm2015/button/pepperi-addons-ngx-lib-button.js +0 -5
- package/esm2015/button/public-api.js +0 -7
- package/esm2015/carousel/carousel-item.directive.js +0 -27
- package/esm2015/carousel/carousel.component.js +0 -714
- package/esm2015/carousel/carousel.module.js +0 -12
- package/esm2015/carousel/pepperi-addons-ngx-lib-carousel.js +0 -5
- package/esm2015/carousel/public-api.js +0 -8
- package/esm2015/checkbox/checkbox.component.js +0 -152
- package/esm2015/checkbox/checkbox.module.js +0 -40
- package/esm2015/checkbox/pepperi-addons-ngx-lib-checkbox.js +0 -5
- package/esm2015/checkbox/public-api.js +0 -6
- package/esm2015/color/color-picker.component.js +0 -224
- package/esm2015/color/color.component.js +0 -78
- package/esm2015/color/color.model.js +0 -2
- package/esm2015/color/color.module.js +0 -58
- package/esm2015/color/pepperi-addons-ngx-lib-color.js +0 -6
- package/esm2015/color/public-api.js +0 -7
- package/esm2015/core/clipboard/clipboard.directive.js +0 -20
- package/esm2015/core/clipboard/clipboard.service.js +0 -12
- package/esm2015/core/clipboard/index.js +0 -5
- package/esm2015/core/clipboard/public-api.js +0 -6
- package/esm2015/core/common/directives/auto-width.directive.js +0 -78
- package/esm2015/core/common/directives/button-blur.directive.js +0 -23
- package/esm2015/core/common/directives/button-loader.directive.js +0 -103
- package/esm2015/core/common/directives/data-qa.directive.js +0 -23
- package/esm2015/core/common/directives/index.js +0 -5
- package/esm2015/core/common/directives/menu-blur.directive.js +0 -29
- package/esm2015/core/common/directives/prevent-multi-click.directive.js +0 -22
- package/esm2015/core/common/directives/print.directive.js +0 -160
- package/esm2015/core/common/directives/public-api.js +0 -12
- package/esm2015/core/common/index.js +0 -5
- package/esm2015/core/common/model/index.js +0 -5
- package/esm2015/core/common/model/papi.model.js +0 -3
- package/esm2015/core/common/model/public-api.js +0 -7
- package/esm2015/core/common/model/utilities.model.js +0 -57
- package/esm2015/core/common/model/wapi.model.js +0 -156
- package/esm2015/core/common/pipes/common-pipes.js +0 -142
- package/esm2015/core/common/pipes/date-ago.pipe.js +0 -45
- package/esm2015/core/common/pipes/index.js +0 -5
- package/esm2015/core/common/pipes/public-api.js +0 -6
- package/esm2015/core/common/public-api.js +0 -8
- package/esm2015/core/common/services/addon.service.js +0 -161
- package/esm2015/core/common/services/color.service.js +0 -357
- package/esm2015/core/common/services/cookie.service.js +0 -148
- package/esm2015/core/common/services/data-convertor.service.js +0 -118
- package/esm2015/core/common/services/file.service.js +0 -212
- package/esm2015/core/common/services/index.js +0 -5
- package/esm2015/core/common/services/jwt-helper.service.js +0 -104
- package/esm2015/core/common/services/public-api.js +0 -15
- package/esm2015/core/common/services/session.service.js +0 -73
- package/esm2015/core/common/services/translate.service.js +0 -48
- package/esm2015/core/common/services/utilities.service.js +0 -211
- package/esm2015/core/common/services/validator.service.js +0 -273
- package/esm2015/core/common/services/window-scrolling.service.js +0 -35
- package/esm2015/core/customization/customization.model.js +0 -290
- package/esm2015/core/customization/customization.service.js +0 -778
- package/esm2015/core/customization/index.js +0 -5
- package/esm2015/core/customization/public-api.js +0 -6
- package/esm2015/core/http/index.js +0 -5
- package/esm2015/core/http/interceptors/error.interceptor.js +0 -24
- package/esm2015/core/http/interceptors/index.js +0 -24
- package/esm2015/core/http/interceptors/loader.interceptor.js +0 -39
- package/esm2015/core/http/interceptors/profiler.interceptor.js +0 -29
- package/esm2015/core/http/public-api.js +0 -6
- package/esm2015/core/http/services/http.service.js +0 -161
- package/esm2015/core/http/services/loader.service.js +0 -49
- package/esm2015/core/index.js +0 -5
- package/esm2015/core/layout/index.js +0 -5
- package/esm2015/core/layout/layout.service.js +0 -169
- package/esm2015/core/layout/public-api.js +0 -6
- package/esm2015/core/layout/rtl.directive.js +0 -47
- package/esm2015/core/portal/attach.directive.js +0 -27
- package/esm2015/core/portal/index.js +0 -5
- package/esm2015/core/portal/portal.service.js +0 -35
- package/esm2015/core/portal/public-api.js +0 -7
- package/esm2015/core/portal/target.directive.js +0 -24
- package/esm2015/core/public-api.js +0 -11
- package/esm2015/core/scroll-to/index.js +0 -5
- package/esm2015/core/scroll-to/public-api.js +0 -6
- package/esm2015/core/scroll-to/scroll-to.service.js +0 -82
- package/esm2015/date/date.component.js +0 -252
- package/esm2015/date/date.model.js +0 -45
- package/esm2015/date/date.module.js +0 -51
- package/esm2015/date/pepperi-addons-ngx-lib-date.js +0 -6
- package/esm2015/date/public-api.js +0 -6
- package/esm2015/dialog/default-dialog.component.js +0 -32
- package/esm2015/dialog/dialog.component.js +0 -29
- package/esm2015/dialog/dialog.model.js +0 -35
- package/esm2015/dialog/dialog.module.js +0 -40
- package/esm2015/dialog/dialog.service.js +0 -88
- package/esm2015/dialog/pepperi-addons-ngx-lib-dialog.js +0 -6
- package/esm2015/dialog/public-api.js +0 -8
- package/esm2015/draggable-items/draggable-item/draggable-item.component.js +0 -25
- package/esm2015/draggable-items/draggable-items.component.js +0 -92
- package/esm2015/draggable-items/draggable-items.model.js +0 -2
- package/esm2015/draggable-items/draggable-items.module.js +0 -43
- package/esm2015/draggable-items/pepperi-addons-ngx-lib-draggable-items.js +0 -5
- package/esm2015/draggable-items/public-api.js +0 -8
- package/esm2015/field-title/field-title.component.js +0 -32
- package/esm2015/field-title/field-title.module.js +0 -32
- package/esm2015/field-title/pepperi-addons-ngx-lib-field-title.js +0 -5
- package/esm2015/field-title/public-api.js +0 -6
- package/esm2015/files-uploader/files-uploader.component.js +0 -221
- package/esm2015/files-uploader/files-uploader.module.js +0 -50
- package/esm2015/files-uploader/pepperi-addons-ngx-lib-files-uploader.js +0 -5
- package/esm2015/files-uploader/public-api.js +0 -6
- package/esm2015/form/field-generator.component.js +0 -220
- package/esm2015/form/form.component.js +0 -1197
- package/esm2015/form/form.model.js +0 -2
- package/esm2015/form/form.module.js +0 -108
- package/esm2015/form/indicators.component.js +0 -21
- package/esm2015/form/internal-button.component.js +0 -166
- package/esm2015/form/internal-carusel.component.js +0 -116
- package/esm2015/form/internal-carusel.service.js +0 -32
- package/esm2015/form/internal-list.component.js +0 -495
- package/esm2015/form/internal-menu.component.js +0 -55
- package/esm2015/form/internal-page.component.js +0 -351
- package/esm2015/form/internal-page.service.js +0 -121
- package/esm2015/form/pepperi-addons-ngx-lib-form.js +0 -14
- package/esm2015/form/public-api.js +0 -7
- package/esm2015/group-buttons/group-buttons.component.js +0 -58
- package/esm2015/group-buttons/group-buttons.module.js +0 -38
- package/esm2015/group-buttons/pepperi-addons-ngx-lib-group-buttons.js +0 -5
- package/esm2015/group-buttons/public-api.js +0 -6
- package/esm2015/icon/icon-generated-all.model.js +0 -101
- package/esm2015/icon/icon-generated.model.js +0 -390
- package/esm2015/icon/icon-registry.service.js +0 -24
- package/esm2015/icon/icon.component.js +0 -125
- package/esm2015/icon/icon.module.js +0 -15
- package/esm2015/icon/icon.service.js +0 -32
- package/esm2015/icon/pepperi-addons-ngx-lib-icon.js +0 -5
- package/esm2015/icon/public-api.js +0 -11
- package/esm2015/image/image.component.js +0 -229
- package/esm2015/image/image.module.js +0 -49
- package/esm2015/image/image.service.js +0 -57
- package/esm2015/image/pepperi-addons-ngx-lib-image.js +0 -5
- package/esm2015/image/public-api.js +0 -7
- package/esm2015/images-filmstrip/images-filmstrip.component.js +0 -375
- package/esm2015/images-filmstrip/images-filmstrip.module.js +0 -71
- package/esm2015/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.js +0 -5
- package/esm2015/images-filmstrip/public-api.js +0 -6
- package/esm2015/link/link.component.js +0 -316
- package/esm2015/link/link.module.js +0 -51
- package/esm2015/link/link.pipes.js +0 -14
- package/esm2015/link/pepperi-addons-ngx-lib-link.js +0 -6
- package/esm2015/link/public-api.js +0 -6
- package/esm2015/list/list-actions.component.js +0 -36
- package/esm2015/list/list-carousel.component.js +0 -95
- package/esm2015/list/list-chooser.component.js +0 -58
- package/esm2015/list/list-pager.component.js +0 -113
- package/esm2015/list/list-sorting.component.js +0 -55
- package/esm2015/list/list-total.component.js +0 -24
- package/esm2015/list/list-views.component.js +0 -72
- package/esm2015/list/list.component.js +0 -1128
- package/esm2015/list/list.model.js +0 -4
- package/esm2015/list/list.module.js +0 -88
- package/esm2015/list/list.pipes.js +0 -40
- package/esm2015/list/pepperi-addons-ngx-lib-list.js +0 -7
- package/esm2015/list/public-api.js +0 -15
- package/esm2015/list/virtual-scroller.js +0 -1079
- package/esm2015/menu/menu-item.component.js +0 -103
- package/esm2015/menu/menu.component.js +0 -174
- package/esm2015/menu/menu.model.js +0 -19
- package/esm2015/menu/menu.module.js +0 -40
- package/esm2015/menu/pepperi-addons-ngx-lib-menu.js +0 -6
- package/esm2015/menu/public-api.js +0 -7
- package/esm2015/ngx-lib.module.js +0 -94
- package/esm2015/page-layout/page-layout.component.js +0 -42
- package/esm2015/page-layout/page-layout.module.js +0 -21
- package/esm2015/page-layout/pepperi-addons-ngx-lib-page-layout.js +0 -5
- package/esm2015/page-layout/public-api.js +0 -6
- package/esm2015/pepperi-addons-ngx-lib.js +0 -9
- package/esm2015/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.js +0 -5
- package/esm2015/profile-data-views-list/profile-data-view/profile-data-view.component.js +0 -39
- package/esm2015/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.js +0 -60
- package/esm2015/profile-data-views-list/profile-data-views-list.component.js +0 -87
- package/esm2015/profile-data-views-list/profile-data-views-list.model.js +0 -2
- package/esm2015/profile-data-views-list/profile-data-views-list.module.js +0 -57
- package/esm2015/profile-data-views-list/public-api.js +0 -9
- package/esm2015/public-api.js +0 -6
- package/esm2015/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.js +0 -7
- package/esm2015/quantity-selector/public-api.js +0 -6
- package/esm2015/quantity-selector/quantity-selector-validation.directive.js +0 -44
- package/esm2015/quantity-selector/quantity-selector.component.js +0 -473
- package/esm2015/quantity-selector/quantity-selector.module.js +0 -53
- package/esm2015/quantity-selector/quantity-selector.pipes.js +0 -19
- package/esm2015/query-builder/common/model/field.js +0 -2
- package/esm2015/query-builder/common/model/filter.js +0 -2
- package/esm2015/query-builder/common/model/legacy.js +0 -2
- package/esm2015/query-builder/common/model/operator-unit.js +0 -42
- package/esm2015/query-builder/common/model/operator.js +0 -266
- package/esm2015/query-builder/common/model/structure.js +0 -2
- package/esm2015/query-builder/common/model/type-map.js +0 -27
- package/esm2015/query-builder/common/model/type.js +0 -6
- package/esm2015/query-builder/common/services/output-query.service.js +0 -113
- package/esm2015/query-builder/common/services/query-structure.service.js +0 -229
- package/esm2015/query-builder/common/services/type-convertor.service.js +0 -40
- package/esm2015/query-builder/pepperi-addons-ngx-lib-query-builder.js +0 -10
- package/esm2015/query-builder/public-api.js +0 -9
- package/esm2015/query-builder/query-builder-item/query-builder-item.component.js +0 -118
- package/esm2015/query-builder/query-builder-section/query-builder-section.component.js +0 -64
- package/esm2015/query-builder/query-builder.component.js +0 -108
- package/esm2015/query-builder/query-builder.module.js +0 -35
- package/esm2015/query-builder/query-builder.service.js +0 -103
- package/esm2015/remote-loader/addon-block-loader.component.js +0 -78
- package/esm2015/remote-loader/addon-block-loader.service.js +0 -62
- package/esm2015/remote-loader/pepperi-addons-ngx-lib-remote-loader.js +0 -5
- package/esm2015/remote-loader/public-api.js +0 -10
- package/esm2015/remote-loader/remote-loader.component.js +0 -118
- package/esm2015/remote-loader/remote-loader.model.js +0 -2
- package/esm2015/remote-loader/remote-loader.module.js +0 -38
- package/esm2015/remote-loader/remote-loader.service.js +0 -66
- package/esm2015/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.js +0 -5
- package/esm2015/rich-html-textarea/public-api.js +0 -6
- package/esm2015/rich-html-textarea/rich-html-textarea.component.js +0 -220
- package/esm2015/rich-html-textarea/rich-html-textarea.module.js +0 -57
- package/esm2015/search/pepperi-addons-ngx-lib-search.js +0 -5
- package/esm2015/search/public-api.js +0 -7
- package/esm2015/search/search.component.js +0 -274
- package/esm2015/search/search.model.js +0 -2
- package/esm2015/search/search.module.js +0 -45
- package/esm2015/select/pepperi-addons-ngx-lib-select.js +0 -5
- package/esm2015/select/public-api.js +0 -6
- package/esm2015/select/select.component.js +0 -212
- package/esm2015/select/select.module.js +0 -43
- package/esm2015/separator/pepperi-addons-ngx-lib-separator.js +0 -5
- package/esm2015/separator/public-api.js +0 -6
- package/esm2015/separator/separator.component.js +0 -63
- package/esm2015/separator/separator.module.js +0 -13
- package/esm2015/side-bar/pepperi-addons-ngx-lib-side-bar.js +0 -5
- package/esm2015/side-bar/public-api.js +0 -7
- package/esm2015/side-bar/side-bar.component.js +0 -131
- package/esm2015/side-bar/side-bar.model.js +0 -2
- package/esm2015/side-bar/side-bar.module.js +0 -34
- package/esm2015/signature/pepperi-addons-ngx-lib-signature.js +0 -5
- package/esm2015/signature/public-api.js +0 -6
- package/esm2015/signature/signature.component.js +0 -234
- package/esm2015/signature/signature.module.js +0 -55
- package/esm2015/size-detector/pepperi-addons-ngx-lib-size-detector.js +0 -5
- package/esm2015/size-detector/public-api.js +0 -6
- package/esm2015/size-detector/size-detector.component.js +0 -89
- package/esm2015/size-detector/size-detector.module.js +0 -22
- package/esm2015/slider/pepperi-addons-ngx-lib-slider.js +0 -5
- package/esm2015/slider/public-api.js +0 -6
- package/esm2015/slider/slider.component.js +0 -96
- package/esm2015/slider/slider.module.js +0 -25
- package/esm2015/smart-filters/boolean-filter/boolean-filter.component.js +0 -71
- package/esm2015/smart-filters/common/filter-actions.component.js +0 -26
- package/esm2015/smart-filters/common/model/base-filter-component.js +0 -292
- package/esm2015/smart-filters/common/model/creator.js +0 -76
- package/esm2015/smart-filters/common/model/field.js +0 -117
- package/esm2015/smart-filters/common/model/filter.js +0 -2
- package/esm2015/smart-filters/common/model/operator.js +0 -271
- package/esm2015/smart-filters/common/model/type.js +0 -2
- package/esm2015/smart-filters/date-filter/date-filter.component.js +0 -164
- package/esm2015/smart-filters/multi-select-filter/multi-select-filter.component.js +0 -191
- package/esm2015/smart-filters/number-filter/number-filter.component.js +0 -110
- package/esm2015/smart-filters/pepperi-addons-ngx-lib-smart-filters.js +0 -5
- package/esm2015/smart-filters/public-api.js +0 -19
- package/esm2015/smart-filters/smart-filters.component.js +0 -130
- package/esm2015/smart-filters/smart-filters.module.js +0 -91
- package/esm2015/smart-filters/text-filter/text-filter.component.js +0 -86
- package/esm2015/snack-bar/default-snack-bar.component.js +0 -28
- package/esm2015/snack-bar/pepperi-addons-ngx-lib-snack-bar.js +0 -6
- package/esm2015/snack-bar/public-api.js +0 -8
- package/esm2015/snack-bar/snack-bar.component.js +0 -26
- package/esm2015/snack-bar/snack-bar.model.js +0 -7
- package/esm2015/snack-bar/snack-bar.module.js +0 -42
- package/esm2015/snack-bar/snack-bar.service.js +0 -63
- package/esm2015/textarea/pepperi-addons-ngx-lib-textarea.js +0 -5
- package/esm2015/textarea/public-api.js +0 -6
- package/esm2015/textarea/textarea.component.js +0 -161
- package/esm2015/textarea/textarea.module.js +0 -51
- package/esm2015/textbox/pepperi-addons-ngx-lib-textbox.js +0 -6
- package/esm2015/textbox/public-api.js +0 -6
- package/esm2015/textbox/textbox-validation.directive.js +0 -86
- package/esm2015/textbox/textbox.component.js +0 -412
- package/esm2015/textbox/textbox.module.js +0 -45
- package/esm2015/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.js +0 -5
- package/esm2015/textbox-icon/public-api.js +0 -6
- package/esm2015/textbox-icon/textbox-icon.component.js +0 -41
- package/esm2015/textbox-icon/textbox-icon.module.js +0 -47
- package/esm2015/top-bar/pepperi-addons-ngx-lib-top-bar.js +0 -5
- package/esm2015/top-bar/public-api.js +0 -7
- package/esm2015/top-bar/top-bar.component.js +0 -99
- package/esm2015/top-bar/top-bar.model.js +0 -2
- package/esm2015/top-bar/top-bar.module.js +0 -41
- package/fesm2015/pepperi-addons-ngx-lib-address.js +0 -136
- package/fesm2015/pepperi-addons-ngx-lib-address.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-attachment.js +0 -246
- package/fesm2015/pepperi-addons-ngx-lib-attachment.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.js +0 -128
- package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-button.js +0 -169
- package/fesm2015/pepperi-addons-ngx-lib-button.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-carousel.js +0 -760
- package/fesm2015/pepperi-addons-ngx-lib-carousel.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-checkbox.js +0 -200
- package/fesm2015/pepperi-addons-ngx-lib-checkbox.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-color.js +0 -353
- package/fesm2015/pepperi-addons-ngx-lib-color.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-date.js +0 -350
- package/fesm2015/pepperi-addons-ngx-lib-date.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-dialog.js +0 -223
- package/fesm2015/pepperi-addons-ngx-lib-dialog.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.js +0 -166
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-field-title.js +0 -73
- package/fesm2015/pepperi-addons-ngx-lib-field-title.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.js +0 -276
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-form.js +0 -2854
- package/fesm2015/pepperi-addons-ngx-lib-form.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-group-buttons.js +0 -104
- package/fesm2015/pepperi-addons-ngx-lib-group-buttons.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-icon.js +0 -688
- package/fesm2015/pepperi-addons-ngx-lib-icon.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-image.js +0 -337
- package/fesm2015/pepperi-addons-ngx-lib-image.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.js +0 -438
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-link.js +0 -384
- package/fesm2015/pepperi-addons-ngx-lib-link.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-list.js +0 -2770
- package/fesm2015/pepperi-addons-ngx-lib-list.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-menu.js +0 -338
- package/fesm2015/pepperi-addons-ngx-lib-menu.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-page-layout.js +0 -70
- package/fesm2015/pepperi-addons-ngx-lib-page-layout.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.js +0 -247
- package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.js +0 -592
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.js +0 -1128
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-remote-loader.js +0 -358
- package/fesm2015/pepperi-addons-ngx-lib-remote-loader.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.js +0 -284
- package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-search.js +0 -326
- package/fesm2015/pepperi-addons-ngx-lib-search.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-select.js +0 -263
- package/fesm2015/pepperi-addons-ngx-lib-select.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-separator.js +0 -85
- package/fesm2015/pepperi-addons-ngx-lib-separator.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.js +0 -172
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-signature.js +0 -296
- package/fesm2015/pepperi-addons-ngx-lib-signature.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-size-detector.js +0 -119
- package/fesm2015/pepperi-addons-ngx-lib-size-detector.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-slider.js +0 -129
- package/fesm2015/pepperi-addons-ngx-lib-slider.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.js +0 -1595
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-snack-bar.js +0 -166
- package/fesm2015/pepperi-addons-ngx-lib-snack-bar.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-textarea.js +0 -219
- package/fesm2015/pepperi-addons-ngx-lib-textarea.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.js +0 -96
- package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-textbox.js +0 -547
- package/fesm2015/pepperi-addons-ngx-lib-textbox.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.js +0 -146
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.js.map +0 -1
- package/fesm2015/pepperi-addons-ngx-lib.js +0 -4461
- package/fesm2015/pepperi-addons-ngx-lib.js.map +0 -1
- package/field-title/package.json +0 -11
- package/field-title/pepperi-addons-ngx-lib-field-title.d.ts +0 -4
- package/field-title/pepperi-addons-ngx-lib-field-title.metadata.json +0 -1
- package/files-uploader/package.json +0 -15
- package/files-uploader/pepperi-addons-ngx-lib-files-uploader.d.ts +0 -4
- package/files-uploader/pepperi-addons-ngx-lib-files-uploader.metadata.json +0 -1
- package/form/package.json +0 -15
- package/form/pepperi-addons-ngx-lib-form.d.ts +0 -13
- package/form/pepperi-addons-ngx-lib-form.metadata.json +0 -1
- package/group-buttons/package.json +0 -11
- package/group-buttons/pepperi-addons-ngx-lib-group-buttons.d.ts +0 -4
- package/group-buttons/pepperi-addons-ngx-lib-group-buttons.metadata.json +0 -1
- package/icon/package.json +0 -11
- package/icon/pepperi-addons-ngx-lib-icon.d.ts +0 -4
- package/icon/pepperi-addons-ngx-lib-icon.metadata.json +0 -1
- package/image/package.json +0 -14
- package/image/pepperi-addons-ngx-lib-image.d.ts +0 -4
- package/image/pepperi-addons-ngx-lib-image.metadata.json +0 -1
- package/images-filmstrip/package.json +0 -17
- package/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.d.ts +0 -4
- package/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.metadata.json +0 -1
- package/link/package.json +0 -14
- package/link/pepperi-addons-ngx-lib-link.d.ts +0 -5
- package/link/pepperi-addons-ngx-lib-link.metadata.json +0 -1
- package/list/package.json +0 -15
- package/list/pepperi-addons-ngx-lib-list.d.ts +0 -6
- package/list/pepperi-addons-ngx-lib-list.metadata.json +0 -1
- package/menu/package.json +0 -11
- package/menu/pepperi-addons-ngx-lib-menu.d.ts +0 -5
- package/menu/pepperi-addons-ngx-lib-menu.metadata.json +0 -1
- package/page-layout/package.json +0 -11
- package/page-layout/pepperi-addons-ngx-lib-page-layout.d.ts +0 -4
- package/page-layout/pepperi-addons-ngx-lib-page-layout.metadata.json +0 -1
- package/pepperi-addons-ngx-lib.d.ts +0 -8
- package/pepperi-addons-ngx-lib.metadata.json +0 -1
- package/profile-data-views-list/package.json +0 -15
- package/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.d.ts +0 -4
- package/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.metadata.json +0 -1
- package/quantity-selector/package.json +0 -15
- package/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.d.ts +0 -6
- package/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.metadata.json +0 -1
- package/query-builder/package.json +0 -14
- package/query-builder/pepperi-addons-ngx-lib-query-builder.d.ts +0 -9
- package/query-builder/pepperi-addons-ngx-lib-query-builder.metadata.json +0 -1
- package/remote-loader/package.json +0 -14
- package/remote-loader/pepperi-addons-ngx-lib-remote-loader.d.ts +0 -4
- package/remote-loader/pepperi-addons-ngx-lib-remote-loader.metadata.json +0 -1
- package/rich-html-textarea/package.json +0 -15
- package/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.d.ts +0 -4
- package/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.metadata.json +0 -1
- package/search/package.json +0 -14
- package/search/pepperi-addons-ngx-lib-search.d.ts +0 -4
- package/search/pepperi-addons-ngx-lib-search.metadata.json +0 -1
- package/select/package.json +0 -14
- package/select/pepperi-addons-ngx-lib-select.d.ts +0 -4
- package/select/pepperi-addons-ngx-lib-select.metadata.json +0 -1
- package/separator/package.json +0 -11
- package/separator/pepperi-addons-ngx-lib-separator.d.ts +0 -4
- package/separator/pepperi-addons-ngx-lib-separator.metadata.json +0 -1
- package/side-bar/package.json +0 -11
- package/side-bar/pepperi-addons-ngx-lib-side-bar.d.ts +0 -4
- package/side-bar/pepperi-addons-ngx-lib-side-bar.metadata.json +0 -1
- package/signature/package.json +0 -15
- package/signature/pepperi-addons-ngx-lib-signature.d.ts +0 -4
- package/signature/pepperi-addons-ngx-lib-signature.metadata.json +0 -1
- package/size-detector/package.json +0 -14
- package/size-detector/pepperi-addons-ngx-lib-size-detector.d.ts +0 -4
- package/size-detector/pepperi-addons-ngx-lib-size-detector.metadata.json +0 -1
- package/slider/package.json +0 -11
- package/slider/pepperi-addons-ngx-lib-slider.d.ts +0 -4
- package/slider/pepperi-addons-ngx-lib-slider.metadata.json +0 -1
- package/smart-filters/package.json +0 -20
- package/smart-filters/pepperi-addons-ngx-lib-smart-filters.d.ts +0 -4
- package/smart-filters/pepperi-addons-ngx-lib-smart-filters.metadata.json +0 -1
- package/snack-bar/package.json +0 -15
- package/snack-bar/pepperi-addons-ngx-lib-snack-bar.d.ts +0 -5
- package/snack-bar/pepperi-addons-ngx-lib-snack-bar.metadata.json +0 -1
- package/textarea/package.json +0 -14
- package/textarea/pepperi-addons-ngx-lib-textarea.d.ts +0 -4
- package/textarea/pepperi-addons-ngx-lib-textarea.metadata.json +0 -1
- package/textbox/package.json +0 -14
- package/textbox/pepperi-addons-ngx-lib-textbox.d.ts +0 -5
- package/textbox/pepperi-addons-ngx-lib-textbox.metadata.json +0 -1
- package/textbox-icon/package.json +0 -11
- package/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.d.ts +0 -4
- package/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.metadata.json +0 -1
- package/top-bar/package.json +0 -11
- package/top-bar/pepperi-addons-ngx-lib-top-bar.d.ts +0 -4
- package/top-bar/pepperi-addons-ngx-lib-top-bar.metadata.json +0 -1
|
@@ -0,0 +1,2896 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, PLATFORM_ID, ElementRef, Component, Inject, Optional, Input, Output, ViewChild, ContentChild, NgModule, Injectable, Pipe } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { isPlatformServer, CommonModule } from '@angular/common';
|
|
5
|
+
import { MatCommonModule } from '@angular/material/core';
|
|
6
|
+
import * as i3 from '@angular/material/button';
|
|
7
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
8
|
+
import * as i3$1 from '@angular/material/checkbox';
|
|
9
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
10
|
+
import * as i4$1 from '@angular/material/radio';
|
|
11
|
+
import { MatRadioModule } from '@angular/material/radio';
|
|
12
|
+
import * as i4 from '@angular/material/icon';
|
|
13
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
14
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
15
|
+
import * as i1 from '@pepperi-addons/ngx-lib';
|
|
16
|
+
import { FIELD_TYPE, PepScreenSizeType, PepNgxLibModule } from '@pepperi-addons/ngx-lib';
|
|
17
|
+
import * as i2$2 from '@pepperi-addons/ngx-lib/bread-crumbs';
|
|
18
|
+
import { PepBreadCrumbItem, PepBreadCrumbsModule } from '@pepperi-addons/ngx-lib/bread-crumbs';
|
|
19
|
+
import * as i3$2 from '@pepperi-addons/ngx-lib/button';
|
|
20
|
+
import { PepButtonModule } from '@pepperi-addons/ngx-lib/button';
|
|
21
|
+
import * as i4$2 from '@pepperi-addons/ngx-lib/carousel';
|
|
22
|
+
import { PepCarouselComponent, PepCarouselModule } from '@pepperi-addons/ngx-lib/carousel';
|
|
23
|
+
import * as i5 from '@pepperi-addons/ngx-lib/icon';
|
|
24
|
+
import { pepIconArrowDown, pepIconArrowEither, pepIconArrowUp, pepIconSystemMust, pepIconArrowRight, pepIconArrowRightAlt, pepIconArrowLeft, pepIconArrowLeftAlt, PepIconModule } from '@pepperi-addons/ngx-lib/icon';
|
|
25
|
+
import * as i7 from '@pepperi-addons/ngx-lib/form';
|
|
26
|
+
import { PepFormModule } from '@pepperi-addons/ngx-lib/form';
|
|
27
|
+
import * as i1$1 from '@pepperi-addons/ngx-lib/menu';
|
|
28
|
+
import { PepMenuModule } from '@pepperi-addons/ngx-lib/menu';
|
|
29
|
+
import * as i6 from '@pepperi-addons/ngx-lib/textbox';
|
|
30
|
+
import { PepTextboxModule } from '@pepperi-addons/ngx-lib/textbox';
|
|
31
|
+
import * as tween from '@tweenjs/tween.js';
|
|
32
|
+
import { coerceNumberProperty } from '@angular/cdk/coercion';
|
|
33
|
+
import * as i2$1 from '@ngx-translate/core';
|
|
34
|
+
|
|
35
|
+
function VIRTUAL_SCROLLER_DEFAULT_OPTIONS_FACTORY() {
|
|
36
|
+
return {
|
|
37
|
+
checkResizeInterval: 1000,
|
|
38
|
+
modifyOverflowStyleOfParentScroll: true,
|
|
39
|
+
resizeBypassRefreshThreshold: 5,
|
|
40
|
+
scrollAnimationTime: 750,
|
|
41
|
+
scrollDebounceTime: 0,
|
|
42
|
+
scrollThrottlingTime: 0,
|
|
43
|
+
stripedTable: false
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
class VirtualScrollerComponent {
|
|
47
|
+
constructor(element, renderer, zone, changeDetectorRef, platformId, options) {
|
|
48
|
+
this.element = element;
|
|
49
|
+
this.renderer = renderer;
|
|
50
|
+
this.zone = zone;
|
|
51
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
52
|
+
this.window = window;
|
|
53
|
+
this._disable = false;
|
|
54
|
+
this.executeRefreshOutsideAngularZone = false;
|
|
55
|
+
this._enableUnequalChildrenSizes = false;
|
|
56
|
+
this.RTL = false;
|
|
57
|
+
this.useMarginInsteadOfTranslate = false;
|
|
58
|
+
this.ssrViewportWidth = 1920;
|
|
59
|
+
this.ssrViewportHeight = 1080;
|
|
60
|
+
this._items = [];
|
|
61
|
+
this.compareItems = (item1, item2) => item1 === item2;
|
|
62
|
+
this.vsChildRectChange = new EventEmitter();
|
|
63
|
+
this.vsUpdate = new EventEmitter();
|
|
64
|
+
this.vsChange = new EventEmitter();
|
|
65
|
+
this.vsStart = new EventEmitter();
|
|
66
|
+
this.vsEnd = new EventEmitter();
|
|
67
|
+
this.calculatedScrollbarWidth = 0;
|
|
68
|
+
this.calculatedScrollbarHeight = 0;
|
|
69
|
+
this.padding = 0;
|
|
70
|
+
this.previousViewPort = {};
|
|
71
|
+
this.cachedPageSize = 0;
|
|
72
|
+
this.previousScrollNumberElements = 0;
|
|
73
|
+
this.isAngularUniversalSSR = isPlatformServer(platformId);
|
|
74
|
+
this.checkResizeInterval = options.checkResizeInterval;
|
|
75
|
+
this.modifyOverflowStyleOfParentScroll = options.modifyOverflowStyleOfParentScroll;
|
|
76
|
+
this.resizeBypassRefreshThreshold = options.resizeBypassRefreshThreshold;
|
|
77
|
+
this.scrollAnimationTime = options.scrollAnimationTime;
|
|
78
|
+
this.scrollDebounceTime = options.scrollDebounceTime;
|
|
79
|
+
this.scrollThrottlingTime = options.scrollThrottlingTime;
|
|
80
|
+
this.scrollbarHeight = options.scrollbarHeight;
|
|
81
|
+
this.scrollbarWidth = options.scrollbarWidth;
|
|
82
|
+
this.stripedTable = options.stripedTable;
|
|
83
|
+
this.horizontal = false;
|
|
84
|
+
this.resetWrapGroupDimensions();
|
|
85
|
+
}
|
|
86
|
+
get viewPortInfo() {
|
|
87
|
+
const pageInfo = this.previousViewPort || {};
|
|
88
|
+
return {
|
|
89
|
+
startIndex: pageInfo.startIndex || 0,
|
|
90
|
+
endIndex: pageInfo.endIndex || 0,
|
|
91
|
+
scrollStartPosition: pageInfo.scrollStartPosition || 0,
|
|
92
|
+
scrollEndPosition: pageInfo.scrollEndPosition || 0,
|
|
93
|
+
scrollDirection: pageInfo.scrollDirection || 'forward',
|
|
94
|
+
maxScrollPosition: pageInfo.maxScrollPosition || 0,
|
|
95
|
+
startIndexWithBuffer: pageInfo.startIndexWithBuffer || 0,
|
|
96
|
+
endIndexWithBuffer: pageInfo.endIndexWithBuffer || 0,
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
get disable() {
|
|
100
|
+
return this._disable;
|
|
101
|
+
}
|
|
102
|
+
set disable(value) {
|
|
103
|
+
if (this._disable === value) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
this._disable = value;
|
|
107
|
+
if (this._disable) {
|
|
108
|
+
this.removeScrollEventHandlers();
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
this.addScrollEventHandlers();
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
get enableUnequalChildrenSizes() {
|
|
115
|
+
return this._enableUnequalChildrenSizes;
|
|
116
|
+
}
|
|
117
|
+
set enableUnequalChildrenSizes(value) {
|
|
118
|
+
if (this._enableUnequalChildrenSizes === value) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
this._enableUnequalChildrenSizes = value;
|
|
122
|
+
this.minMeasuredChildWidth = undefined;
|
|
123
|
+
this.minMeasuredChildHeight = undefined;
|
|
124
|
+
}
|
|
125
|
+
get bufferAmount() {
|
|
126
|
+
if (typeof (this._bufferAmount) === 'number' && this._bufferAmount > 0) {
|
|
127
|
+
return this._bufferAmount;
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
return this.enableUnequalChildrenSizes ? 5 : 1;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
set bufferAmount(value) {
|
|
134
|
+
this._bufferAmount = value;
|
|
135
|
+
}
|
|
136
|
+
get scrollThrottlingTime() {
|
|
137
|
+
return this._scrollThrottlingTime;
|
|
138
|
+
}
|
|
139
|
+
set scrollThrottlingTime(value) {
|
|
140
|
+
this._scrollThrottlingTime = value;
|
|
141
|
+
this.updateOnScrollFunction();
|
|
142
|
+
}
|
|
143
|
+
get scrollDebounceTime() {
|
|
144
|
+
return this._scrollDebounceTime;
|
|
145
|
+
}
|
|
146
|
+
set scrollDebounceTime(value) {
|
|
147
|
+
this._scrollDebounceTime = value;
|
|
148
|
+
this.updateOnScrollFunction();
|
|
149
|
+
}
|
|
150
|
+
updateOnScrollFunction() {
|
|
151
|
+
if (this.scrollDebounceTime) {
|
|
152
|
+
this.onScroll = this.debounce(() => {
|
|
153
|
+
this.refresh_internal(false);
|
|
154
|
+
}, this.scrollDebounceTime);
|
|
155
|
+
}
|
|
156
|
+
else if (this.scrollThrottlingTime) {
|
|
157
|
+
this.onScroll = this.throttleTrailing(() => {
|
|
158
|
+
this.refresh_internal(false);
|
|
159
|
+
}, this.scrollThrottlingTime);
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
this.onScroll = () => {
|
|
163
|
+
this.refresh_internal(false);
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
get checkResizeInterval() {
|
|
168
|
+
return this._checkResizeInterval;
|
|
169
|
+
}
|
|
170
|
+
set checkResizeInterval(value) {
|
|
171
|
+
if (this._checkResizeInterval === value) {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
this._checkResizeInterval = value;
|
|
175
|
+
this.addScrollEventHandlers();
|
|
176
|
+
}
|
|
177
|
+
get items() {
|
|
178
|
+
return this._items;
|
|
179
|
+
}
|
|
180
|
+
set items(value) {
|
|
181
|
+
if (value === this._items) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
this._items = value || [];
|
|
185
|
+
this.refresh_internal(true);
|
|
186
|
+
}
|
|
187
|
+
get horizontal() {
|
|
188
|
+
return this._horizontal;
|
|
189
|
+
}
|
|
190
|
+
set horizontal(value) {
|
|
191
|
+
this._horizontal = value;
|
|
192
|
+
this.updateDirection();
|
|
193
|
+
}
|
|
194
|
+
revertParentOverscroll() {
|
|
195
|
+
const scrollElement = this.getScrollElement();
|
|
196
|
+
if (scrollElement && this.oldParentScrollOverflow) {
|
|
197
|
+
scrollElement.style['overflow-y'] = this.oldParentScrollOverflow.y;
|
|
198
|
+
scrollElement.style['overflow-x'] = this.oldParentScrollOverflow.x;
|
|
199
|
+
}
|
|
200
|
+
this.oldParentScrollOverflow = undefined;
|
|
201
|
+
}
|
|
202
|
+
get parentScroll() {
|
|
203
|
+
return this._parentScroll;
|
|
204
|
+
}
|
|
205
|
+
set parentScroll(value) {
|
|
206
|
+
if (this._parentScroll === value) {
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
this.revertParentOverscroll();
|
|
210
|
+
this._parentScroll = value;
|
|
211
|
+
this.addScrollEventHandlers();
|
|
212
|
+
const scrollElement = this.getScrollElement();
|
|
213
|
+
if (this.modifyOverflowStyleOfParentScroll && scrollElement !== this.element.nativeElement) {
|
|
214
|
+
this.oldParentScrollOverflow = { x: scrollElement.style['overflow-x'], y: scrollElement.style['overflow-y'] };
|
|
215
|
+
scrollElement.style['overflow-y'] = this.horizontal ? 'visible' : 'auto';
|
|
216
|
+
scrollElement.style['overflow-x'] = this.horizontal ? 'auto' : 'visible';
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
ngOnInit() {
|
|
220
|
+
this.addScrollEventHandlers();
|
|
221
|
+
}
|
|
222
|
+
ngOnDestroy() {
|
|
223
|
+
this.removeScrollEventHandlers();
|
|
224
|
+
this.revertParentOverscroll();
|
|
225
|
+
}
|
|
226
|
+
ngOnChanges(changes) {
|
|
227
|
+
const indexLengthChanged = this.cachedItemsLength !== this.items.length;
|
|
228
|
+
this.cachedItemsLength = this.items.length;
|
|
229
|
+
const firstRun = !changes.items || !changes.items.previousValue || changes.items.previousValue.length === 0;
|
|
230
|
+
this.refresh_internal(indexLengthChanged || firstRun);
|
|
231
|
+
}
|
|
232
|
+
ngDoCheck() {
|
|
233
|
+
if (this.cachedItemsLength !== this.items.length) {
|
|
234
|
+
this.cachedItemsLength = this.items.length;
|
|
235
|
+
this.refresh_internal(true);
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
if (this.previousViewPort && this.viewPortItems && this.viewPortItems.length > 0) {
|
|
239
|
+
let itemsArrayChanged = false;
|
|
240
|
+
for (let i = 0; i < this.viewPortItems.length; ++i) {
|
|
241
|
+
if (!this.compareItems(this.items[this.previousViewPort.startIndexWithBuffer + i], this.viewPortItems[i])) {
|
|
242
|
+
itemsArrayChanged = true;
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
if (itemsArrayChanged) {
|
|
247
|
+
this.refresh_internal(true);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
refresh() {
|
|
252
|
+
this.refresh_internal(true);
|
|
253
|
+
}
|
|
254
|
+
invalidateAllCachedMeasurements() {
|
|
255
|
+
this.wrapGroupDimensions = {
|
|
256
|
+
maxChildSizePerWrapGroup: [],
|
|
257
|
+
numberOfKnownWrapGroupChildSizes: 0,
|
|
258
|
+
sumOfKnownWrapGroupChildWidths: 0,
|
|
259
|
+
sumOfKnownWrapGroupChildHeights: 0
|
|
260
|
+
};
|
|
261
|
+
this.minMeasuredChildWidth = undefined;
|
|
262
|
+
this.minMeasuredChildHeight = undefined;
|
|
263
|
+
this.refresh_internal(false);
|
|
264
|
+
}
|
|
265
|
+
invalidateCachedMeasurementForItem(item) {
|
|
266
|
+
if (this.enableUnequalChildrenSizes) {
|
|
267
|
+
const index = this.items && this.items.indexOf(item);
|
|
268
|
+
if (index >= 0) {
|
|
269
|
+
this.invalidateCachedMeasurementAtIndex(index);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
this.minMeasuredChildWidth = undefined;
|
|
274
|
+
this.minMeasuredChildHeight = undefined;
|
|
275
|
+
}
|
|
276
|
+
this.refresh_internal(false);
|
|
277
|
+
}
|
|
278
|
+
invalidateCachedMeasurementAtIndex(index) {
|
|
279
|
+
if (this.enableUnequalChildrenSizes) {
|
|
280
|
+
const cachedMeasurement = this.wrapGroupDimensions.maxChildSizePerWrapGroup[index];
|
|
281
|
+
if (cachedMeasurement) {
|
|
282
|
+
this.wrapGroupDimensions.maxChildSizePerWrapGroup[index] = undefined;
|
|
283
|
+
--this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
|
|
284
|
+
this.wrapGroupDimensions.sumOfKnownWrapGroupChildWidths -= cachedMeasurement.childWidth || 0;
|
|
285
|
+
this.wrapGroupDimensions.sumOfKnownWrapGroupChildHeights -= cachedMeasurement.childHeight || 0;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
this.minMeasuredChildWidth = undefined;
|
|
290
|
+
this.minMeasuredChildHeight = undefined;
|
|
291
|
+
}
|
|
292
|
+
this.refresh_internal(false);
|
|
293
|
+
}
|
|
294
|
+
scrollInto(item, alignToBeginning = true, additionalOffset = 0, animationMilliseconds = undefined, animationCompletedCallback = undefined) {
|
|
295
|
+
const index = this.items.indexOf(item);
|
|
296
|
+
if (index === -1) {
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
this.scrollToIndex(index, alignToBeginning, additionalOffset, animationMilliseconds, animationCompletedCallback);
|
|
300
|
+
}
|
|
301
|
+
scrollToIndex(index, alignToBeginning = true, additionalOffset = 0, animationMilliseconds = undefined, animationCompletedCallback = undefined) {
|
|
302
|
+
let maxRetries = 5;
|
|
303
|
+
const retryIfNeeded = () => {
|
|
304
|
+
--maxRetries;
|
|
305
|
+
if (maxRetries <= 0) {
|
|
306
|
+
if (animationCompletedCallback) {
|
|
307
|
+
animationCompletedCallback();
|
|
308
|
+
}
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
const dimensions = this.calculateDimensions();
|
|
312
|
+
const desiredStartIndex = Math.min(Math.max(index, 0), dimensions.itemCount - 1);
|
|
313
|
+
if (this.previousViewPort.startIndex === desiredStartIndex) {
|
|
314
|
+
if (animationCompletedCallback) {
|
|
315
|
+
animationCompletedCallback();
|
|
316
|
+
}
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
this.scrollToIndex_internal(index, alignToBeginning, additionalOffset, 0, retryIfNeeded);
|
|
320
|
+
};
|
|
321
|
+
this.scrollToIndex_internal(index, alignToBeginning, additionalOffset, animationMilliseconds, retryIfNeeded);
|
|
322
|
+
}
|
|
323
|
+
scrollToIndex_internal(index, alignToBeginning = true, additionalOffset = 0, animationMilliseconds = undefined, animationCompletedCallback = undefined) {
|
|
324
|
+
animationMilliseconds = animationMilliseconds === undefined ? this.scrollAnimationTime : animationMilliseconds;
|
|
325
|
+
const dimensions = this.calculateDimensions();
|
|
326
|
+
let scroll = this.calculatePadding(index, dimensions) + additionalOffset;
|
|
327
|
+
if (!alignToBeginning) {
|
|
328
|
+
scroll -= dimensions.wrapGroupsPerPage * dimensions[this._childScrollDim];
|
|
329
|
+
}
|
|
330
|
+
this.scrollToPosition(scroll, animationMilliseconds, animationCompletedCallback);
|
|
331
|
+
}
|
|
332
|
+
scrollToPosition(scrollPosition, animationMilliseconds = undefined, animationCompletedCallback = undefined) {
|
|
333
|
+
scrollPosition += this.getElementsOffset();
|
|
334
|
+
animationMilliseconds = animationMilliseconds === undefined ? this.scrollAnimationTime : animationMilliseconds;
|
|
335
|
+
const scrollElement = this.getScrollElement();
|
|
336
|
+
let animationRequest;
|
|
337
|
+
if (this.currentTween) {
|
|
338
|
+
this.currentTween.stop();
|
|
339
|
+
this.currentTween = undefined;
|
|
340
|
+
}
|
|
341
|
+
if (!animationMilliseconds) {
|
|
342
|
+
this.renderer.setProperty(scrollElement, this._scrollType, scrollPosition);
|
|
343
|
+
this.refresh_internal(false, animationCompletedCallback);
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
const tweenConfigObj = { scrollPosition: scrollElement[this._scrollType] };
|
|
347
|
+
const newTween = new tween.Tween(tweenConfigObj)
|
|
348
|
+
.to({ scrollPosition }, animationMilliseconds)
|
|
349
|
+
.easing(tween.Easing.Quadratic.Out)
|
|
350
|
+
.onUpdate((data) => {
|
|
351
|
+
if (isNaN(data.scrollPosition)) {
|
|
352
|
+
return;
|
|
353
|
+
}
|
|
354
|
+
this.renderer.setProperty(scrollElement, this._scrollType, data.scrollPosition);
|
|
355
|
+
this.refresh_internal(false);
|
|
356
|
+
})
|
|
357
|
+
.onStop(() => {
|
|
358
|
+
cancelAnimationFrame(animationRequest);
|
|
359
|
+
})
|
|
360
|
+
.start();
|
|
361
|
+
const animate = (time) => {
|
|
362
|
+
if (!newTween["isPlaying"]()) {
|
|
363
|
+
return;
|
|
364
|
+
}
|
|
365
|
+
newTween.update(time);
|
|
366
|
+
if (tweenConfigObj.scrollPosition === scrollPosition) {
|
|
367
|
+
this.refresh_internal(false, animationCompletedCallback);
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
this.zone.runOutsideAngular(() => {
|
|
371
|
+
animationRequest = requestAnimationFrame(animate);
|
|
372
|
+
});
|
|
373
|
+
};
|
|
374
|
+
animate();
|
|
375
|
+
this.currentTween = newTween;
|
|
376
|
+
}
|
|
377
|
+
getElementSize(element) {
|
|
378
|
+
const result = element.getBoundingClientRect();
|
|
379
|
+
const styles = getComputedStyle(element);
|
|
380
|
+
const marginTop = parseInt(styles['margin-top'], 10) || 0;
|
|
381
|
+
const marginBottom = parseInt(styles['margin-bottom'], 10) || 0;
|
|
382
|
+
const marginLeft = parseInt(styles['margin-left'], 10) || 0;
|
|
383
|
+
const marginRight = parseInt(styles['margin-right'], 10) || 0;
|
|
384
|
+
return {
|
|
385
|
+
top: result.top + marginTop,
|
|
386
|
+
bottom: result.bottom + marginBottom,
|
|
387
|
+
left: result.left + marginLeft,
|
|
388
|
+
right: result.right + marginRight,
|
|
389
|
+
width: result.width + marginLeft + marginRight,
|
|
390
|
+
height: result.height + marginTop + marginBottom
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
checkScrollElementResized() {
|
|
394
|
+
const boundingRect = this.getElementSize(this.getScrollElement());
|
|
395
|
+
let sizeChanged;
|
|
396
|
+
if (!this.previousScrollBoundingRect) {
|
|
397
|
+
sizeChanged = true;
|
|
398
|
+
}
|
|
399
|
+
else {
|
|
400
|
+
const widthChange = Math.abs(boundingRect.width - this.previousScrollBoundingRect.width);
|
|
401
|
+
const heightChange = Math.abs(boundingRect.height - this.previousScrollBoundingRect.height);
|
|
402
|
+
sizeChanged = widthChange > this.resizeBypassRefreshThreshold || heightChange > this.resizeBypassRefreshThreshold;
|
|
403
|
+
}
|
|
404
|
+
if (sizeChanged) {
|
|
405
|
+
this.previousScrollBoundingRect = boundingRect;
|
|
406
|
+
if (boundingRect.width > 0 && boundingRect.height > 0) {
|
|
407
|
+
this.refresh_internal(false);
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
updateDirection() {
|
|
412
|
+
if (this.horizontal) {
|
|
413
|
+
this._childScrollDim = 'childWidth';
|
|
414
|
+
this._invisiblePaddingProperty = 'scaleX';
|
|
415
|
+
this._marginDir = 'margin-left';
|
|
416
|
+
this._offsetType = 'offsetLeft';
|
|
417
|
+
this._pageOffsetType = 'pageXOffset';
|
|
418
|
+
this._scrollType = 'scrollLeft';
|
|
419
|
+
this._translateDir = 'translateX';
|
|
420
|
+
}
|
|
421
|
+
else {
|
|
422
|
+
this._childScrollDim = 'childHeight';
|
|
423
|
+
this._invisiblePaddingProperty = 'scaleY';
|
|
424
|
+
this._marginDir = 'margin-top';
|
|
425
|
+
this._offsetType = 'offsetTop';
|
|
426
|
+
this._pageOffsetType = 'pageYOffset';
|
|
427
|
+
this._scrollType = 'scrollTop';
|
|
428
|
+
this._translateDir = 'translateY';
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
debounce(func, wait, ...args) {
|
|
432
|
+
const throttled = this.throttleTrailing(func, wait);
|
|
433
|
+
const result = function () {
|
|
434
|
+
throttled['cancel']();
|
|
435
|
+
throttled.apply(this, args);
|
|
436
|
+
};
|
|
437
|
+
result['cancel'] = function () {
|
|
438
|
+
throttled['cancel']();
|
|
439
|
+
};
|
|
440
|
+
return result;
|
|
441
|
+
}
|
|
442
|
+
throttleTrailing(func, wait, ...args) {
|
|
443
|
+
let timeout = undefined;
|
|
444
|
+
let _arguments = args;
|
|
445
|
+
const result = function () {
|
|
446
|
+
const _this = this;
|
|
447
|
+
_arguments = args;
|
|
448
|
+
if (timeout) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
if (wait <= 0) {
|
|
452
|
+
func.apply(_this, _arguments);
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
timeout = setTimeout(function () {
|
|
456
|
+
timeout = undefined;
|
|
457
|
+
func.apply(_this, _arguments);
|
|
458
|
+
}, wait);
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
result['cancel'] = function () {
|
|
462
|
+
if (timeout) {
|
|
463
|
+
clearTimeout(timeout);
|
|
464
|
+
timeout = undefined;
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
return result;
|
|
468
|
+
}
|
|
469
|
+
refresh_internal(itemsArrayModified, refreshCompletedCallback = undefined, maxRunTimes = 2) {
|
|
470
|
+
//note: maxRunTimes is to force it to keep recalculating if the previous iteration caused a re-render (different sliced items in viewport or scrollPosition changed).
|
|
471
|
+
//The default of 2x max will probably be accurate enough without causing too large a performance bottleneck
|
|
472
|
+
//The code would typically quit out on the 2nd iteration anyways. The main time it'd think more than 2 runs would be necessary would be for vastly different sized child items or if this is the 1st time the items array was initialized.
|
|
473
|
+
//Without maxRunTimes, If the user is actively scrolling this code would become an infinite loop until they stopped scrolling. This would be okay, except each scroll event would start an additional infinte loop. We want to short-circuit it to prevent this.
|
|
474
|
+
if (itemsArrayModified && this.previousViewPort && this.previousViewPort.scrollStartPosition > 0) {
|
|
475
|
+
//if items were prepended, scroll forward to keep same items visible
|
|
476
|
+
const oldViewPort = this.previousViewPort;
|
|
477
|
+
const oldViewPortItems = this.viewPortItems;
|
|
478
|
+
const oldRefreshCompletedCallback = refreshCompletedCallback;
|
|
479
|
+
refreshCompletedCallback = () => {
|
|
480
|
+
const scrollLengthDelta = this.previousViewPort.scrollLength - oldViewPort.scrollLength;
|
|
481
|
+
if (scrollLengthDelta > 0 && this.viewPortItems) {
|
|
482
|
+
const oldStartItem = oldViewPortItems[0];
|
|
483
|
+
const oldStartItemIndex = this.items.findIndex(x => this.compareItems(oldStartItem, x));
|
|
484
|
+
if (oldStartItemIndex > this.previousViewPort.startIndexWithBuffer) {
|
|
485
|
+
let itemOrderChanged = false;
|
|
486
|
+
for (let i = 1; i < this.viewPortItems.length; ++i) {
|
|
487
|
+
if (!this.compareItems(this.items[oldStartItemIndex + i], oldViewPortItems[i])) {
|
|
488
|
+
itemOrderChanged = true;
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
if (!itemOrderChanged) {
|
|
493
|
+
this.scrollToPosition(this.previousViewPort.scrollStartPosition + scrollLengthDelta, 0, oldRefreshCompletedCallback);
|
|
494
|
+
return;
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
if (oldRefreshCompletedCallback) {
|
|
499
|
+
oldRefreshCompletedCallback();
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
this.zone.runOutsideAngular(() => {
|
|
504
|
+
requestAnimationFrame(() => {
|
|
505
|
+
if (itemsArrayModified) {
|
|
506
|
+
this.resetWrapGroupDimensions();
|
|
507
|
+
}
|
|
508
|
+
const viewport = this.calculateViewport();
|
|
509
|
+
const startChanged = itemsArrayModified || viewport.startIndex !== this.previousViewPort.startIndex;
|
|
510
|
+
const endChanged = itemsArrayModified || viewport.endIndex !== this.previousViewPort.endIndex;
|
|
511
|
+
const scrollLengthChanged = viewport.scrollLength !== this.previousViewPort.scrollLength;
|
|
512
|
+
const paddingChanged = viewport.padding !== this.previousViewPort.padding;
|
|
513
|
+
const scrollPositionChanged = viewport.scrollStartPosition !== this.previousViewPort.scrollStartPosition || viewport.scrollEndPosition !== this.previousViewPort.scrollEndPosition || viewport.maxScrollPosition !== this.previousViewPort.maxScrollPosition;
|
|
514
|
+
const scrollDirection = this.previousViewPort.endIndex <= viewport.endIndex ? 'forward' : 'backward';
|
|
515
|
+
this.previousViewPort = viewport;
|
|
516
|
+
if (scrollLengthChanged) {
|
|
517
|
+
this.renderer.setStyle(this.invisiblePaddingElementRef.nativeElement, 'transform', `${this._invisiblePaddingProperty}(${viewport.scrollLength})`);
|
|
518
|
+
this.renderer.setStyle(this.invisiblePaddingElementRef.nativeElement, 'webkitTransform', `${this._invisiblePaddingProperty}(${viewport.scrollLength})`);
|
|
519
|
+
}
|
|
520
|
+
if (paddingChanged) {
|
|
521
|
+
if (this.useMarginInsteadOfTranslate) {
|
|
522
|
+
this.renderer.setStyle(this.contentElementRef.nativeElement, this._marginDir, `${viewport.padding}px`);
|
|
523
|
+
}
|
|
524
|
+
else {
|
|
525
|
+
this.renderer.setStyle(this.contentElementRef.nativeElement, 'transform', `${this._translateDir}(${viewport.padding}px)`);
|
|
526
|
+
this.renderer.setStyle(this.contentElementRef.nativeElement, 'webkitTransform', `${this._translateDir}(${viewport.padding}px)`);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
if (this.headerElementRef) {
|
|
530
|
+
const scrollPosition = this.getScrollElement()[this._scrollType];
|
|
531
|
+
const containerOffset = this.getElementsOffset();
|
|
532
|
+
const offset = Math.max(scrollPosition - viewport.padding - containerOffset + this.headerElementRef.nativeElement.clientHeight, 0);
|
|
533
|
+
this.renderer.setStyle(this.headerElementRef.nativeElement, 'transform', `${this._translateDir}(${offset}px)`);
|
|
534
|
+
this.renderer.setStyle(this.headerElementRef.nativeElement, 'webkitTransform', `${this._translateDir}(${offset}px)`);
|
|
535
|
+
}
|
|
536
|
+
const changeEventArg = (startChanged || endChanged) ? {
|
|
537
|
+
startIndex: viewport.startIndex,
|
|
538
|
+
endIndex: viewport.endIndex,
|
|
539
|
+
scrollStartPosition: viewport.scrollStartPosition,
|
|
540
|
+
scrollEndPosition: viewport.scrollEndPosition,
|
|
541
|
+
scrollDirection: scrollDirection,
|
|
542
|
+
startIndexWithBuffer: viewport.startIndexWithBuffer,
|
|
543
|
+
endIndexWithBuffer: viewport.endIndexWithBuffer,
|
|
544
|
+
maxScrollPosition: viewport.maxScrollPosition,
|
|
545
|
+
} : undefined;
|
|
546
|
+
if (startChanged || endChanged || scrollPositionChanged) {
|
|
547
|
+
const handleChanged = () => {
|
|
548
|
+
// update the scroll list to trigger re-render of components in viewport
|
|
549
|
+
this.viewPortItems = viewport.startIndexWithBuffer >= 0 && viewport.endIndexWithBuffer >= 0 ? this.items.slice(viewport.startIndexWithBuffer, viewport.endIndexWithBuffer + 1) : [];
|
|
550
|
+
this.vsUpdate.emit(this.viewPortItems);
|
|
551
|
+
if (startChanged) {
|
|
552
|
+
this.vsStart.emit(changeEventArg);
|
|
553
|
+
}
|
|
554
|
+
if (endChanged) {
|
|
555
|
+
this.vsEnd.emit(changeEventArg);
|
|
556
|
+
}
|
|
557
|
+
if (startChanged || endChanged) {
|
|
558
|
+
this.changeDetectorRef.markForCheck();
|
|
559
|
+
this.vsChange.emit(changeEventArg);
|
|
560
|
+
}
|
|
561
|
+
if (maxRunTimes > 0) {
|
|
562
|
+
this.refresh_internal(false, refreshCompletedCallback, maxRunTimes - 1);
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
565
|
+
if (refreshCompletedCallback) {
|
|
566
|
+
refreshCompletedCallback();
|
|
567
|
+
}
|
|
568
|
+
};
|
|
569
|
+
if (this.executeRefreshOutsideAngularZone) {
|
|
570
|
+
handleChanged();
|
|
571
|
+
}
|
|
572
|
+
else {
|
|
573
|
+
this.zone.run(handleChanged);
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
else {
|
|
577
|
+
if (maxRunTimes > 0 && (scrollLengthChanged || paddingChanged)) {
|
|
578
|
+
this.refresh_internal(false, refreshCompletedCallback, maxRunTimes - 1);
|
|
579
|
+
return;
|
|
580
|
+
}
|
|
581
|
+
if (refreshCompletedCallback) {
|
|
582
|
+
refreshCompletedCallback();
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
getScrollElement() {
|
|
589
|
+
return this.parentScroll instanceof Window ? document.scrollingElement || document.documentElement || document.body : this.parentScroll || this.element.nativeElement;
|
|
590
|
+
}
|
|
591
|
+
addScrollEventHandlers() {
|
|
592
|
+
if (this.isAngularUniversalSSR) {
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
const scrollElement = this.getScrollElement();
|
|
596
|
+
this.removeScrollEventHandlers();
|
|
597
|
+
this.zone.runOutsideAngular(() => {
|
|
598
|
+
if (this.parentScroll instanceof Window) {
|
|
599
|
+
this.disposeScrollHandler = this.renderer.listen('window', 'scroll', this.onScroll);
|
|
600
|
+
this.disposeResizeHandler = this.renderer.listen('window', 'resize', this.onScroll);
|
|
601
|
+
}
|
|
602
|
+
else {
|
|
603
|
+
this.disposeScrollHandler = this.renderer.listen(scrollElement, 'scroll', this.onScroll);
|
|
604
|
+
if (this._checkResizeInterval > 0) {
|
|
605
|
+
this.checkScrollElementResizedTimer = setInterval(() => { this.checkScrollElementResized(); }, this._checkResizeInterval);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
removeScrollEventHandlers() {
|
|
611
|
+
if (this.checkScrollElementResizedTimer) {
|
|
612
|
+
clearInterval(this.checkScrollElementResizedTimer);
|
|
613
|
+
}
|
|
614
|
+
if (this.disposeScrollHandler) {
|
|
615
|
+
this.disposeScrollHandler();
|
|
616
|
+
this.disposeScrollHandler = undefined;
|
|
617
|
+
}
|
|
618
|
+
if (this.disposeResizeHandler) {
|
|
619
|
+
this.disposeResizeHandler();
|
|
620
|
+
this.disposeResizeHandler = undefined;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
getElementsOffset() {
|
|
624
|
+
if (this.isAngularUniversalSSR) {
|
|
625
|
+
return 0;
|
|
626
|
+
}
|
|
627
|
+
let offset = 0;
|
|
628
|
+
if (this.containerElementRef && this.containerElementRef.nativeElement) {
|
|
629
|
+
offset += this.containerElementRef.nativeElement[this._offsetType];
|
|
630
|
+
}
|
|
631
|
+
if (this.parentScroll) {
|
|
632
|
+
const scrollElement = this.getScrollElement();
|
|
633
|
+
const elementClientRect = this.getElementSize(this.element.nativeElement);
|
|
634
|
+
const scrollClientRect = this.getElementSize(scrollElement);
|
|
635
|
+
if (this.horizontal) {
|
|
636
|
+
offset += elementClientRect.left - scrollClientRect.left;
|
|
637
|
+
}
|
|
638
|
+
else {
|
|
639
|
+
offset += elementClientRect.top - scrollClientRect.top;
|
|
640
|
+
}
|
|
641
|
+
if (!(this.parentScroll instanceof Window)) {
|
|
642
|
+
offset += scrollElement[this._scrollType];
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
return offset;
|
|
646
|
+
}
|
|
647
|
+
countItemsPerWrapGroup() {
|
|
648
|
+
if (this.isAngularUniversalSSR) {
|
|
649
|
+
return Math.round(this.horizontal ? this.ssrViewportHeight / this.ssrChildHeight : this.ssrViewportWidth / this.ssrChildWidth);
|
|
650
|
+
}
|
|
651
|
+
const propertyName = this.horizontal ? 'offsetLeft' : 'offsetTop';
|
|
652
|
+
const children = ((this.containerElementRef && this.containerElementRef.nativeElement) || this.contentElementRef.nativeElement).children;
|
|
653
|
+
const childrenLength = children ? children.length : 0;
|
|
654
|
+
if (childrenLength === 0) {
|
|
655
|
+
return 1;
|
|
656
|
+
}
|
|
657
|
+
const firstOffset = children[0][propertyName];
|
|
658
|
+
let result = 1;
|
|
659
|
+
while (result < childrenLength && firstOffset === children[result][propertyName]) {
|
|
660
|
+
++result;
|
|
661
|
+
}
|
|
662
|
+
return result;
|
|
663
|
+
}
|
|
664
|
+
getScrollStartPosition() {
|
|
665
|
+
let windowScrollValue = undefined;
|
|
666
|
+
if (this.parentScroll instanceof Window) {
|
|
667
|
+
windowScrollValue = window[this._pageOffsetType];
|
|
668
|
+
}
|
|
669
|
+
return windowScrollValue || this.getScrollElement()[this._scrollType] || 0;
|
|
670
|
+
}
|
|
671
|
+
resetWrapGroupDimensions() {
|
|
672
|
+
const oldWrapGroupDimensions = this.wrapGroupDimensions;
|
|
673
|
+
this.invalidateAllCachedMeasurements();
|
|
674
|
+
if (!this.enableUnequalChildrenSizes || !oldWrapGroupDimensions || oldWrapGroupDimensions.numberOfKnownWrapGroupChildSizes === 0) {
|
|
675
|
+
return;
|
|
676
|
+
}
|
|
677
|
+
const itemsPerWrapGroup = this.countItemsPerWrapGroup();
|
|
678
|
+
for (let wrapGroupIndex = 0; wrapGroupIndex < oldWrapGroupDimensions.maxChildSizePerWrapGroup.length; ++wrapGroupIndex) {
|
|
679
|
+
const oldWrapGroupDimension = oldWrapGroupDimensions.maxChildSizePerWrapGroup[wrapGroupIndex];
|
|
680
|
+
if (!oldWrapGroupDimension || !oldWrapGroupDimension.items || !oldWrapGroupDimension.items.length) {
|
|
681
|
+
continue;
|
|
682
|
+
}
|
|
683
|
+
if (oldWrapGroupDimension.items.length !== itemsPerWrapGroup) {
|
|
684
|
+
return;
|
|
685
|
+
}
|
|
686
|
+
let itemsChanged = false;
|
|
687
|
+
const arrayStartIndex = itemsPerWrapGroup * wrapGroupIndex;
|
|
688
|
+
for (let i = 0; i < itemsPerWrapGroup; ++i) {
|
|
689
|
+
if (!this.compareItems(oldWrapGroupDimension.items[i], this.items[arrayStartIndex + i])) {
|
|
690
|
+
itemsChanged = true;
|
|
691
|
+
break;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
if (!itemsChanged) {
|
|
695
|
+
++this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
|
|
696
|
+
this.wrapGroupDimensions.sumOfKnownWrapGroupChildWidths += oldWrapGroupDimension.childWidth || 0;
|
|
697
|
+
this.wrapGroupDimensions.sumOfKnownWrapGroupChildHeights += oldWrapGroupDimension.childHeight || 0;
|
|
698
|
+
this.wrapGroupDimensions.maxChildSizePerWrapGroup[wrapGroupIndex] = oldWrapGroupDimension;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
calculateDimensions() {
|
|
703
|
+
var _a, _b;
|
|
704
|
+
const scrollElement = this.getScrollElement();
|
|
705
|
+
const maxCalculatedScrollBarSize = 25; // Note: Formula to auto-calculate doesn't work for ParentScroll, so we default to this if not set by consuming application
|
|
706
|
+
this.calculatedScrollbarHeight = Math.max(Math.min(scrollElement.offsetHeight - scrollElement.clientHeight, maxCalculatedScrollBarSize), this.calculatedScrollbarHeight);
|
|
707
|
+
this.calculatedScrollbarWidth = Math.max(Math.min(scrollElement.offsetWidth - scrollElement.clientWidth, maxCalculatedScrollBarSize), this.calculatedScrollbarWidth);
|
|
708
|
+
let viewportWidth = scrollElement.offsetWidth - (this.scrollbarWidth || this.calculatedScrollbarWidth || (this.horizontal ? 0 : maxCalculatedScrollBarSize));
|
|
709
|
+
let viewportHeight = scrollElement.offsetHeight - (this.scrollbarHeight || this.calculatedScrollbarHeight || (this.horizontal ? maxCalculatedScrollBarSize : 0));
|
|
710
|
+
const content = (this.containerElementRef && this.containerElementRef.nativeElement) || this.contentElementRef.nativeElement;
|
|
711
|
+
const itemsPerWrapGroup = this.countItemsPerWrapGroup();
|
|
712
|
+
let wrapGroupsPerPage;
|
|
713
|
+
let defaultChildWidth;
|
|
714
|
+
let defaultChildHeight;
|
|
715
|
+
if (this.isAngularUniversalSSR) {
|
|
716
|
+
viewportWidth = this.ssrViewportWidth;
|
|
717
|
+
viewportHeight = this.ssrViewportHeight;
|
|
718
|
+
defaultChildWidth = this.ssrChildWidth;
|
|
719
|
+
defaultChildHeight = this.ssrChildHeight;
|
|
720
|
+
const itemsPerRow = Math.max(Math.ceil(viewportWidth / defaultChildWidth), 1);
|
|
721
|
+
const itemsPerCol = Math.max(Math.ceil(viewportHeight / defaultChildHeight), 1);
|
|
722
|
+
wrapGroupsPerPage = this.horizontal ? itemsPerRow : itemsPerCol;
|
|
723
|
+
}
|
|
724
|
+
else if (!this.enableUnequalChildrenSizes) {
|
|
725
|
+
if (content.children.length > 0) {
|
|
726
|
+
if (!this.childWidth || !this.childHeight) {
|
|
727
|
+
if (!this.minMeasuredChildWidth && viewportWidth > 0) {
|
|
728
|
+
this.minMeasuredChildWidth = viewportWidth;
|
|
729
|
+
}
|
|
730
|
+
if (!this.minMeasuredChildHeight && viewportHeight > 0) {
|
|
731
|
+
this.minMeasuredChildHeight = viewportHeight;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
const child = content.children[0];
|
|
735
|
+
const clientRect = this.getElementSize(child);
|
|
736
|
+
this.minMeasuredChildWidth = Math.min(this.minMeasuredChildWidth, clientRect.width);
|
|
737
|
+
this.minMeasuredChildHeight = Math.min(this.minMeasuredChildHeight, clientRect.height);
|
|
738
|
+
// Added for getting the child height (for card view, return all the clientRect object).
|
|
739
|
+
if (((_a = this._lastChildRect) === null || _a === void 0 ? void 0 : _a.height) !== (clientRect === null || clientRect === void 0 ? void 0 : clientRect.height) ||
|
|
740
|
+
((_b = this._lastChildRect) === null || _b === void 0 ? void 0 : _b.width) !== (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width)) {
|
|
741
|
+
this._lastChildRect = clientRect;
|
|
742
|
+
this.vsChildRectChange.emit(clientRect);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
defaultChildWidth = this.childWidth || this.minMeasuredChildWidth || viewportWidth;
|
|
746
|
+
defaultChildHeight = this.childHeight || this.minMeasuredChildHeight || viewportHeight;
|
|
747
|
+
const itemsPerRow = Math.max(Math.ceil(viewportWidth / defaultChildWidth), 1);
|
|
748
|
+
const itemsPerCol = Math.max(Math.ceil(viewportHeight / defaultChildHeight), 1);
|
|
749
|
+
wrapGroupsPerPage = this.horizontal ? itemsPerRow : itemsPerCol;
|
|
750
|
+
}
|
|
751
|
+
else {
|
|
752
|
+
let scrollOffset = scrollElement[this._scrollType] - (this.previousViewPort ? this.previousViewPort.padding : 0);
|
|
753
|
+
let arrayStartIndex = this.previousViewPort.startIndexWithBuffer || 0;
|
|
754
|
+
let wrapGroupIndex = Math.ceil(arrayStartIndex / itemsPerWrapGroup);
|
|
755
|
+
let maxWidthForWrapGroup = 0;
|
|
756
|
+
let maxHeightForWrapGroup = 0;
|
|
757
|
+
let sumOfVisibleMaxWidths = 0;
|
|
758
|
+
let sumOfVisibleMaxHeights = 0;
|
|
759
|
+
wrapGroupsPerPage = 0;
|
|
760
|
+
for (let i = 0; i < content.children.length; ++i) {
|
|
761
|
+
++arrayStartIndex;
|
|
762
|
+
const child = content.children[i];
|
|
763
|
+
const clientRect = this.getElementSize(child);
|
|
764
|
+
maxWidthForWrapGroup = Math.max(maxWidthForWrapGroup, clientRect.width);
|
|
765
|
+
maxHeightForWrapGroup = Math.max(maxHeightForWrapGroup, clientRect.height);
|
|
766
|
+
if (arrayStartIndex % itemsPerWrapGroup === 0) {
|
|
767
|
+
const oldValue = this.wrapGroupDimensions.maxChildSizePerWrapGroup[wrapGroupIndex];
|
|
768
|
+
if (oldValue) {
|
|
769
|
+
--this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
|
|
770
|
+
this.wrapGroupDimensions.sumOfKnownWrapGroupChildWidths -= oldValue.childWidth || 0;
|
|
771
|
+
this.wrapGroupDimensions.sumOfKnownWrapGroupChildHeights -= oldValue.childHeight || 0;
|
|
772
|
+
}
|
|
773
|
+
++this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
|
|
774
|
+
const items = this.items.slice(arrayStartIndex - itemsPerWrapGroup, arrayStartIndex);
|
|
775
|
+
this.wrapGroupDimensions.maxChildSizePerWrapGroup[wrapGroupIndex] = {
|
|
776
|
+
childWidth: maxWidthForWrapGroup,
|
|
777
|
+
childHeight: maxHeightForWrapGroup,
|
|
778
|
+
items: items
|
|
779
|
+
};
|
|
780
|
+
this.wrapGroupDimensions.sumOfKnownWrapGroupChildWidths += maxWidthForWrapGroup;
|
|
781
|
+
this.wrapGroupDimensions.sumOfKnownWrapGroupChildHeights += maxHeightForWrapGroup;
|
|
782
|
+
if (this.horizontal) {
|
|
783
|
+
let maxVisibleWidthForWrapGroup = Math.min(maxWidthForWrapGroup, Math.max(viewportWidth - sumOfVisibleMaxWidths, 0));
|
|
784
|
+
if (scrollOffset > 0) {
|
|
785
|
+
const scrollOffsetToRemove = Math.min(scrollOffset, maxVisibleWidthForWrapGroup);
|
|
786
|
+
maxVisibleWidthForWrapGroup -= scrollOffsetToRemove;
|
|
787
|
+
scrollOffset -= scrollOffsetToRemove;
|
|
788
|
+
}
|
|
789
|
+
sumOfVisibleMaxWidths += maxVisibleWidthForWrapGroup;
|
|
790
|
+
if (maxVisibleWidthForWrapGroup > 0 && viewportWidth >= sumOfVisibleMaxWidths) {
|
|
791
|
+
++wrapGroupsPerPage;
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
else {
|
|
795
|
+
let maxVisibleHeightForWrapGroup = Math.min(maxHeightForWrapGroup, Math.max(viewportHeight - sumOfVisibleMaxHeights, 0));
|
|
796
|
+
if (scrollOffset > 0) {
|
|
797
|
+
const scrollOffsetToRemove = Math.min(scrollOffset, maxVisibleHeightForWrapGroup);
|
|
798
|
+
maxVisibleHeightForWrapGroup -= scrollOffsetToRemove;
|
|
799
|
+
scrollOffset -= scrollOffsetToRemove;
|
|
800
|
+
}
|
|
801
|
+
sumOfVisibleMaxHeights += maxVisibleHeightForWrapGroup;
|
|
802
|
+
if (maxVisibleHeightForWrapGroup > 0 && viewportHeight >= sumOfVisibleMaxHeights) {
|
|
803
|
+
++wrapGroupsPerPage;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
++wrapGroupIndex;
|
|
807
|
+
maxWidthForWrapGroup = 0;
|
|
808
|
+
maxHeightForWrapGroup = 0;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
const averageChildWidth = this.wrapGroupDimensions.sumOfKnownWrapGroupChildWidths / this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
|
|
812
|
+
const averageChildHeight = this.wrapGroupDimensions.sumOfKnownWrapGroupChildHeights / this.wrapGroupDimensions.numberOfKnownWrapGroupChildSizes;
|
|
813
|
+
defaultChildWidth = this.childWidth || averageChildWidth || viewportWidth;
|
|
814
|
+
defaultChildHeight = this.childHeight || averageChildHeight || viewportHeight;
|
|
815
|
+
if (this.horizontal) {
|
|
816
|
+
if (viewportWidth > sumOfVisibleMaxWidths) {
|
|
817
|
+
wrapGroupsPerPage += Math.ceil((viewportWidth - sumOfVisibleMaxWidths) / defaultChildWidth);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
else {
|
|
821
|
+
if (viewportHeight > sumOfVisibleMaxHeights) {
|
|
822
|
+
wrapGroupsPerPage += Math.ceil((viewportHeight - sumOfVisibleMaxHeights) / defaultChildHeight);
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
const itemCount = this.items.length;
|
|
827
|
+
const itemsPerPage = itemsPerWrapGroup * wrapGroupsPerPage;
|
|
828
|
+
const pageCount_fractional = itemCount / itemsPerPage;
|
|
829
|
+
const numberOfWrapGroups = Math.ceil(itemCount / itemsPerWrapGroup);
|
|
830
|
+
let scrollLength = 0;
|
|
831
|
+
const defaultScrollLengthPerWrapGroup = this.horizontal ? defaultChildWidth : defaultChildHeight;
|
|
832
|
+
if (this.enableUnequalChildrenSizes) {
|
|
833
|
+
let numUnknownChildSizes = 0;
|
|
834
|
+
for (let i = 0; i < numberOfWrapGroups; ++i) {
|
|
835
|
+
const childSize = this.wrapGroupDimensions.maxChildSizePerWrapGroup[i] && this.wrapGroupDimensions.maxChildSizePerWrapGroup[i][this._childScrollDim];
|
|
836
|
+
if (childSize) {
|
|
837
|
+
scrollLength += childSize;
|
|
838
|
+
}
|
|
839
|
+
else {
|
|
840
|
+
++numUnknownChildSizes;
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
scrollLength += Math.round(numUnknownChildSizes * defaultScrollLengthPerWrapGroup);
|
|
844
|
+
}
|
|
845
|
+
else {
|
|
846
|
+
scrollLength = numberOfWrapGroups * defaultScrollLengthPerWrapGroup;
|
|
847
|
+
}
|
|
848
|
+
if (this.headerElementRef) {
|
|
849
|
+
scrollLength += this.headerElementRef.nativeElement.clientHeight;
|
|
850
|
+
}
|
|
851
|
+
const viewportLength = this.horizontal ? viewportWidth : viewportHeight;
|
|
852
|
+
const maxScrollPosition = Math.max(scrollLength - viewportLength, 0);
|
|
853
|
+
return {
|
|
854
|
+
childHeight: defaultChildHeight,
|
|
855
|
+
childWidth: defaultChildWidth,
|
|
856
|
+
itemCount: itemCount,
|
|
857
|
+
itemsPerPage: itemsPerPage,
|
|
858
|
+
itemsPerWrapGroup: itemsPerWrapGroup,
|
|
859
|
+
maxScrollPosition: maxScrollPosition,
|
|
860
|
+
pageCount_fractional: pageCount_fractional,
|
|
861
|
+
scrollLength: scrollLength,
|
|
862
|
+
viewportLength: viewportLength,
|
|
863
|
+
wrapGroupsPerPage: wrapGroupsPerPage,
|
|
864
|
+
};
|
|
865
|
+
}
|
|
866
|
+
calculatePadding(arrayStartIndexWithBuffer, dimensions) {
|
|
867
|
+
if (dimensions.itemCount === 0) {
|
|
868
|
+
return 0;
|
|
869
|
+
}
|
|
870
|
+
const defaultScrollLengthPerWrapGroup = dimensions[this._childScrollDim];
|
|
871
|
+
const startingWrapGroupIndex = Math.floor(arrayStartIndexWithBuffer / dimensions.itemsPerWrapGroup) || 0;
|
|
872
|
+
if (!this.enableUnequalChildrenSizes) {
|
|
873
|
+
return defaultScrollLengthPerWrapGroup * startingWrapGroupIndex;
|
|
874
|
+
}
|
|
875
|
+
let numUnknownChildSizes = 0;
|
|
876
|
+
let result = 0;
|
|
877
|
+
for (let i = 0; i < startingWrapGroupIndex; ++i) {
|
|
878
|
+
const childSize = this.wrapGroupDimensions.maxChildSizePerWrapGroup[i] && this.wrapGroupDimensions.maxChildSizePerWrapGroup[i][this._childScrollDim];
|
|
879
|
+
if (childSize) {
|
|
880
|
+
result += childSize;
|
|
881
|
+
}
|
|
882
|
+
else {
|
|
883
|
+
++numUnknownChildSizes;
|
|
884
|
+
}
|
|
885
|
+
}
|
|
886
|
+
result += Math.round(numUnknownChildSizes * defaultScrollLengthPerWrapGroup);
|
|
887
|
+
return result;
|
|
888
|
+
}
|
|
889
|
+
calculatePageInfo(scrollPosition, dimensions) {
|
|
890
|
+
let scrollPercentage = 0;
|
|
891
|
+
if (this.enableUnequalChildrenSizes) {
|
|
892
|
+
const numberOfWrapGroups = Math.ceil(dimensions.itemCount / dimensions.itemsPerWrapGroup);
|
|
893
|
+
let totalScrolledLength = 0;
|
|
894
|
+
const defaultScrollLengthPerWrapGroup = dimensions[this._childScrollDim];
|
|
895
|
+
for (let i = 0; i < numberOfWrapGroups; ++i) {
|
|
896
|
+
const childSize = this.wrapGroupDimensions.maxChildSizePerWrapGroup[i] && this.wrapGroupDimensions.maxChildSizePerWrapGroup[i][this._childScrollDim];
|
|
897
|
+
if (childSize) {
|
|
898
|
+
totalScrolledLength += childSize;
|
|
899
|
+
}
|
|
900
|
+
else {
|
|
901
|
+
totalScrolledLength += defaultScrollLengthPerWrapGroup;
|
|
902
|
+
}
|
|
903
|
+
if (scrollPosition < totalScrolledLength) {
|
|
904
|
+
scrollPercentage = i / numberOfWrapGroups;
|
|
905
|
+
break;
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
else {
|
|
910
|
+
scrollPercentage = scrollPosition / dimensions.scrollLength;
|
|
911
|
+
}
|
|
912
|
+
const startingArrayIndex_fractional = Math.min(Math.max(scrollPercentage * dimensions.pageCount_fractional, 0), dimensions.pageCount_fractional) * dimensions.itemsPerPage;
|
|
913
|
+
const maxStart = dimensions.itemCount - dimensions.itemsPerPage - 1;
|
|
914
|
+
let arrayStartIndex = Math.min(Math.floor(startingArrayIndex_fractional), maxStart);
|
|
915
|
+
arrayStartIndex -= arrayStartIndex % dimensions.itemsPerWrapGroup; // round down to start of wrapGroup
|
|
916
|
+
if (this.stripedTable) {
|
|
917
|
+
const bufferBoundary = 2 * dimensions.itemsPerWrapGroup;
|
|
918
|
+
if (arrayStartIndex % bufferBoundary !== 0) {
|
|
919
|
+
arrayStartIndex = Math.max(arrayStartIndex - arrayStartIndex % bufferBoundary, 0);
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
let arrayEndIndex = Math.ceil(startingArrayIndex_fractional) + dimensions.itemsPerPage - 1;
|
|
923
|
+
const endIndexWithinWrapGroup = (arrayEndIndex + 1) % dimensions.itemsPerWrapGroup;
|
|
924
|
+
if (endIndexWithinWrapGroup > 0) {
|
|
925
|
+
arrayEndIndex += dimensions.itemsPerWrapGroup - endIndexWithinWrapGroup; // round up to end of wrapGroup
|
|
926
|
+
}
|
|
927
|
+
if (isNaN(arrayStartIndex)) {
|
|
928
|
+
arrayStartIndex = 0;
|
|
929
|
+
}
|
|
930
|
+
if (isNaN(arrayEndIndex)) {
|
|
931
|
+
arrayEndIndex = 0;
|
|
932
|
+
}
|
|
933
|
+
arrayStartIndex = Math.min(Math.max(arrayStartIndex, 0), dimensions.itemCount - 1);
|
|
934
|
+
arrayEndIndex = Math.min(Math.max(arrayEndIndex, 0), dimensions.itemCount - 1);
|
|
935
|
+
const bufferSize = this.bufferAmount * dimensions.itemsPerWrapGroup;
|
|
936
|
+
const startIndexWithBuffer = Math.min(Math.max(arrayStartIndex - bufferSize, 0), dimensions.itemCount - 1);
|
|
937
|
+
const endIndexWithBuffer = Math.min(Math.max(arrayEndIndex + bufferSize, 0), dimensions.itemCount - 1);
|
|
938
|
+
return {
|
|
939
|
+
startIndex: arrayStartIndex,
|
|
940
|
+
endIndex: arrayEndIndex,
|
|
941
|
+
startIndexWithBuffer: startIndexWithBuffer,
|
|
942
|
+
endIndexWithBuffer: endIndexWithBuffer,
|
|
943
|
+
scrollStartPosition: scrollPosition,
|
|
944
|
+
scrollEndPosition: scrollPosition + dimensions.viewportLength,
|
|
945
|
+
maxScrollPosition: dimensions.maxScrollPosition
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
calculateViewport() {
|
|
949
|
+
const dimensions = this.calculateDimensions();
|
|
950
|
+
const offset = this.getElementsOffset();
|
|
951
|
+
let scrollStartPosition = this.getScrollStartPosition();
|
|
952
|
+
if (scrollStartPosition > (dimensions.scrollLength + offset) && !(this.parentScroll instanceof Window)) {
|
|
953
|
+
scrollStartPosition = dimensions.scrollLength;
|
|
954
|
+
}
|
|
955
|
+
else {
|
|
956
|
+
scrollStartPosition -= offset;
|
|
957
|
+
}
|
|
958
|
+
scrollStartPosition = Math.max(0, scrollStartPosition);
|
|
959
|
+
const pageInfo = this.calculatePageInfo(scrollStartPosition, dimensions);
|
|
960
|
+
const newPadding = this.calculatePadding(pageInfo.startIndexWithBuffer, dimensions);
|
|
961
|
+
const newScrollLength = dimensions.scrollLength;
|
|
962
|
+
return {
|
|
963
|
+
startIndex: pageInfo.startIndex,
|
|
964
|
+
endIndex: pageInfo.endIndex,
|
|
965
|
+
startIndexWithBuffer: pageInfo.startIndexWithBuffer,
|
|
966
|
+
endIndexWithBuffer: pageInfo.endIndexWithBuffer,
|
|
967
|
+
padding: Math.round(newPadding),
|
|
968
|
+
scrollLength: Math.round(newScrollLength),
|
|
969
|
+
scrollStartPosition: pageInfo.scrollStartPosition,
|
|
970
|
+
scrollEndPosition: pageInfo.scrollEndPosition,
|
|
971
|
+
maxScrollPosition: pageInfo.maxScrollPosition
|
|
972
|
+
};
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
VirtualScrollerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: VirtualScrollerComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: PLATFORM_ID }, { token: 'virtual-scroller-default-options', optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
976
|
+
VirtualScrollerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: VirtualScrollerComponent, selector: "virtual-scroller,[virtualScroller]", inputs: { disable: "disable", executeRefreshOutsideAngularZone: "executeRefreshOutsideAngularZone", enableUnequalChildrenSizes: "enableUnequalChildrenSizes", RTL: "RTL", useMarginInsteadOfTranslate: "useMarginInsteadOfTranslate", modifyOverflowStyleOfParentScroll: "modifyOverflowStyleOfParentScroll", stripedTable: "stripedTable", scrollbarWidth: "scrollbarWidth", scrollbarHeight: "scrollbarHeight", childWidth: "childWidth", childHeight: "childHeight", ssrChildWidth: "ssrChildWidth", ssrChildHeight: "ssrChildHeight", ssrViewportWidth: "ssrViewportWidth", ssrViewportHeight: "ssrViewportHeight", bufferAmount: "bufferAmount", scrollAnimationTime: "scrollAnimationTime", resizeBypassRefreshThreshold: "resizeBypassRefreshThreshold", scrollThrottlingTime: "scrollThrottlingTime", scrollDebounceTime: "scrollDebounceTime", checkResizeInterval: "checkResizeInterval", items: "items", compareItems: "compareItems", horizontal: "horizontal", parentScroll: "parentScroll" }, outputs: { vsChildRectChange: "vsChildRectChange", vsUpdate: "vsUpdate", vsChange: "vsChange", vsStart: "vsStart", vsEnd: "vsEnd" }, host: { properties: { "class.horizontal": "horizontal", "class.vertical": "!horizontal", "class.selfScroll": "!parentScroll", "class.rtl": "RTL" } }, queries: [{ propertyName: "headerElementRef", first: true, predicate: ["header"], descendants: true, read: ElementRef }, { propertyName: "containerElementRef", first: true, predicate: ["container"], descendants: true, read: ElementRef }], viewQueries: [{ propertyName: "contentElementRef", first: true, predicate: ["content"], descendants: true, read: ElementRef, static: true }, { propertyName: "invisiblePaddingElementRef", first: true, predicate: ["invisiblePadding"], descendants: true, read: ElementRef, static: true }], exportAs: ["virtualScroller"], usesOnChanges: true, ngImport: i0, template: `
|
|
977
|
+
<div class="total-padding" #invisiblePadding></div>
|
|
978
|
+
<div class="scrollable-content" #content>
|
|
979
|
+
<ng-content></ng-content>
|
|
980
|
+
</div>
|
|
981
|
+
`, isInline: true, styles: [":host{position:relative;display:block;-webkit-overflow-scrolling:touch}:host.horizontal.selfScroll{overflow-y:visible;overflow-x:auto}:host.horizontal.selfScroll.rtl{transform:scaleX(-1)}:host.vertical.selfScroll{overflow-y:auto;overflow-x:visible}.scrollable-content{top:0;left:0;width:100%;height:100%;max-width:100vw;max-height:100vh;position:absolute}.scrollable-content ::ng-deep>*{box-sizing:border-box}:host.horizontal{white-space:nowrap}:host.horizontal .scrollable-content{display:flex}:host.horizontal .scrollable-content ::ng-deep>*{flex-shrink:0;flex-grow:0;white-space:initial}:host.horizontal.rtl .scrollable-content ::ng-deep>*{transform:scaleX(-1)}.total-padding{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;opacity:0}:host.horizontal .total-padding{height:100%}\n"] });
|
|
982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: VirtualScrollerComponent, decorators: [{
|
|
983
|
+
type: Component,
|
|
984
|
+
args: [{ selector: 'virtual-scroller,[virtualScroller]', exportAs: 'virtualScroller', template: `
|
|
985
|
+
<div class="total-padding" #invisiblePadding></div>
|
|
986
|
+
<div class="scrollable-content" #content>
|
|
987
|
+
<ng-content></ng-content>
|
|
988
|
+
</div>
|
|
989
|
+
`, host: {
|
|
990
|
+
'[class.horizontal]': "horizontal",
|
|
991
|
+
'[class.vertical]': "!horizontal",
|
|
992
|
+
'[class.selfScroll]': "!parentScroll",
|
|
993
|
+
'[class.rtl]': "RTL"
|
|
994
|
+
}, styles: [":host{position:relative;display:block;-webkit-overflow-scrolling:touch}:host.horizontal.selfScroll{overflow-y:visible;overflow-x:auto}:host.horizontal.selfScroll.rtl{transform:scaleX(-1)}:host.vertical.selfScroll{overflow-y:auto;overflow-x:visible}.scrollable-content{top:0;left:0;width:100%;height:100%;max-width:100vw;max-height:100vh;position:absolute}.scrollable-content ::ng-deep>*{box-sizing:border-box}:host.horizontal{white-space:nowrap}:host.horizontal .scrollable-content{display:flex}:host.horizontal .scrollable-content ::ng-deep>*{flex-shrink:0;flex-grow:0;white-space:initial}:host.horizontal.rtl .scrollable-content ::ng-deep>*{transform:scaleX(-1)}.total-padding{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;opacity:0}:host.horizontal .total-padding{height:100%}\n"] }]
|
|
995
|
+
}], ctorParameters: function () {
|
|
996
|
+
return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
997
|
+
type: Inject,
|
|
998
|
+
args: [PLATFORM_ID]
|
|
999
|
+
}] }, { type: undefined, decorators: [{
|
|
1000
|
+
type: Optional
|
|
1001
|
+
}, {
|
|
1002
|
+
type: Inject,
|
|
1003
|
+
args: ['virtual-scroller-default-options']
|
|
1004
|
+
}] }];
|
|
1005
|
+
}, propDecorators: { disable: [{
|
|
1006
|
+
type: Input
|
|
1007
|
+
}], executeRefreshOutsideAngularZone: [{
|
|
1008
|
+
type: Input
|
|
1009
|
+
}], enableUnequalChildrenSizes: [{
|
|
1010
|
+
type: Input
|
|
1011
|
+
}], RTL: [{
|
|
1012
|
+
type: Input
|
|
1013
|
+
}], useMarginInsteadOfTranslate: [{
|
|
1014
|
+
type: Input
|
|
1015
|
+
}], modifyOverflowStyleOfParentScroll: [{
|
|
1016
|
+
type: Input
|
|
1017
|
+
}], stripedTable: [{
|
|
1018
|
+
type: Input
|
|
1019
|
+
}], scrollbarWidth: [{
|
|
1020
|
+
type: Input
|
|
1021
|
+
}], scrollbarHeight: [{
|
|
1022
|
+
type: Input
|
|
1023
|
+
}], childWidth: [{
|
|
1024
|
+
type: Input
|
|
1025
|
+
}], childHeight: [{
|
|
1026
|
+
type: Input
|
|
1027
|
+
}], ssrChildWidth: [{
|
|
1028
|
+
type: Input
|
|
1029
|
+
}], ssrChildHeight: [{
|
|
1030
|
+
type: Input
|
|
1031
|
+
}], ssrViewportWidth: [{
|
|
1032
|
+
type: Input
|
|
1033
|
+
}], ssrViewportHeight: [{
|
|
1034
|
+
type: Input
|
|
1035
|
+
}], bufferAmount: [{
|
|
1036
|
+
type: Input
|
|
1037
|
+
}], scrollAnimationTime: [{
|
|
1038
|
+
type: Input
|
|
1039
|
+
}], resizeBypassRefreshThreshold: [{
|
|
1040
|
+
type: Input
|
|
1041
|
+
}], scrollThrottlingTime: [{
|
|
1042
|
+
type: Input
|
|
1043
|
+
}], scrollDebounceTime: [{
|
|
1044
|
+
type: Input
|
|
1045
|
+
}], checkResizeInterval: [{
|
|
1046
|
+
type: Input
|
|
1047
|
+
}], items: [{
|
|
1048
|
+
type: Input
|
|
1049
|
+
}], compareItems: [{
|
|
1050
|
+
type: Input
|
|
1051
|
+
}], horizontal: [{
|
|
1052
|
+
type: Input
|
|
1053
|
+
}], parentScroll: [{
|
|
1054
|
+
type: Input
|
|
1055
|
+
}], vsChildRectChange: [{
|
|
1056
|
+
type: Output
|
|
1057
|
+
}], vsUpdate: [{
|
|
1058
|
+
type: Output
|
|
1059
|
+
}], vsChange: [{
|
|
1060
|
+
type: Output
|
|
1061
|
+
}], vsStart: [{
|
|
1062
|
+
type: Output
|
|
1063
|
+
}], vsEnd: [{
|
|
1064
|
+
type: Output
|
|
1065
|
+
}], contentElementRef: [{
|
|
1066
|
+
type: ViewChild,
|
|
1067
|
+
args: ['content', { read: ElementRef, static: true }]
|
|
1068
|
+
}], invisiblePaddingElementRef: [{
|
|
1069
|
+
type: ViewChild,
|
|
1070
|
+
args: ['invisiblePadding', { read: ElementRef, static: true }]
|
|
1071
|
+
}], headerElementRef: [{
|
|
1072
|
+
type: ContentChild,
|
|
1073
|
+
args: ['header', { read: ElementRef, static: false }]
|
|
1074
|
+
}], containerElementRef: [{
|
|
1075
|
+
type: ContentChild,
|
|
1076
|
+
args: ['container', { read: ElementRef, static: false }]
|
|
1077
|
+
}] } });
|
|
1078
|
+
class VirtualScrollerModule {
|
|
1079
|
+
}
|
|
1080
|
+
VirtualScrollerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: VirtualScrollerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1081
|
+
VirtualScrollerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: VirtualScrollerModule, declarations: [VirtualScrollerComponent], imports: [CommonModule], exports: [VirtualScrollerComponent] });
|
|
1082
|
+
VirtualScrollerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: VirtualScrollerModule, providers: [
|
|
1083
|
+
{
|
|
1084
|
+
provide: 'virtual-scroller-default-options',
|
|
1085
|
+
useFactory: VIRTUAL_SCROLLER_DEFAULT_OPTIONS_FACTORY
|
|
1086
|
+
}
|
|
1087
|
+
], imports: [CommonModule] });
|
|
1088
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: VirtualScrollerModule, decorators: [{
|
|
1089
|
+
type: NgModule,
|
|
1090
|
+
args: [{
|
|
1091
|
+
exports: [VirtualScrollerComponent],
|
|
1092
|
+
declarations: [VirtualScrollerComponent],
|
|
1093
|
+
imports: [CommonModule],
|
|
1094
|
+
providers: [
|
|
1095
|
+
{
|
|
1096
|
+
provide: 'virtual-scroller-default-options',
|
|
1097
|
+
useFactory: VIRTUAL_SCROLLER_DEFAULT_OPTIONS_FACTORY
|
|
1098
|
+
}
|
|
1099
|
+
]
|
|
1100
|
+
}]
|
|
1101
|
+
}] });
|
|
1102
|
+
|
|
1103
|
+
class PepSelectionData {
|
|
1104
|
+
}
|
|
1105
|
+
const DEFAULT_PAGE_SIZE = 50;
|
|
1106
|
+
|
|
1107
|
+
class IPepListPagerChangeEvent {
|
|
1108
|
+
}
|
|
1109
|
+
class PepListPagerComponent {
|
|
1110
|
+
constructor(_changeDetectorRef, layoutService) {
|
|
1111
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
1112
|
+
this.layoutService = layoutService;
|
|
1113
|
+
this.disabled = false;
|
|
1114
|
+
this._pageIndex = 0;
|
|
1115
|
+
this.length = 0;
|
|
1116
|
+
this.pageSize = DEFAULT_PAGE_SIZE;
|
|
1117
|
+
this.pagerChange = new EventEmitter();
|
|
1118
|
+
}
|
|
1119
|
+
set pageIndex(value) {
|
|
1120
|
+
this.setPageIndex(value);
|
|
1121
|
+
}
|
|
1122
|
+
get pageIndex() {
|
|
1123
|
+
return this._pageIndex;
|
|
1124
|
+
}
|
|
1125
|
+
nextPage() {
|
|
1126
|
+
if (!this.hasNextPage()) {
|
|
1127
|
+
return;
|
|
1128
|
+
}
|
|
1129
|
+
this.setPageIndex(this.pageIndex + 1);
|
|
1130
|
+
}
|
|
1131
|
+
previousPage() {
|
|
1132
|
+
if (!this.hasPreviousPage()) {
|
|
1133
|
+
return;
|
|
1134
|
+
}
|
|
1135
|
+
this.setPageIndex(this.pageIndex - 1);
|
|
1136
|
+
}
|
|
1137
|
+
firstPage() {
|
|
1138
|
+
if (!this.hasPreviousPage()) {
|
|
1139
|
+
return;
|
|
1140
|
+
}
|
|
1141
|
+
this.setPageIndex(0);
|
|
1142
|
+
}
|
|
1143
|
+
lastPage() {
|
|
1144
|
+
if (!this.hasNextPage()) {
|
|
1145
|
+
return;
|
|
1146
|
+
}
|
|
1147
|
+
this.setPageIndex(this.getNumberOfPages() - 1);
|
|
1148
|
+
}
|
|
1149
|
+
hasPreviousPage() {
|
|
1150
|
+
return this.pageIndex >= 1 && this.pageSize != 0;
|
|
1151
|
+
}
|
|
1152
|
+
hasNextPage() {
|
|
1153
|
+
const maxPageIndex = this.getNumberOfPages() - 1;
|
|
1154
|
+
return this.pageIndex < maxPageIndex && this.pageSize != 0;
|
|
1155
|
+
}
|
|
1156
|
+
getNumberOfPages() {
|
|
1157
|
+
if (!this.pageSize) {
|
|
1158
|
+
return 0;
|
|
1159
|
+
}
|
|
1160
|
+
return Math.ceil(this.length / this.pageSize);
|
|
1161
|
+
}
|
|
1162
|
+
/** Checks whether the buttons for going forwards should be disabled. */
|
|
1163
|
+
_nextButtonsDisabled() {
|
|
1164
|
+
return this.disabled || !this.hasNextPage();
|
|
1165
|
+
}
|
|
1166
|
+
/** Checks whether the buttons for going backwards should be disabled. */
|
|
1167
|
+
_previousButtonsDisabled() {
|
|
1168
|
+
return this.disabled || !this.hasPreviousPage();
|
|
1169
|
+
}
|
|
1170
|
+
onValueChange(value) {
|
|
1171
|
+
const pageNumber = coerceNumberProperty(value);
|
|
1172
|
+
this.setPageIndex(pageNumber - 1); // - 1 to convert number into index.
|
|
1173
|
+
}
|
|
1174
|
+
setPageIndex(newIndex) {
|
|
1175
|
+
const previousPageIndex = this.pageIndex;
|
|
1176
|
+
if (newIndex >= 0 && newIndex < this.getNumberOfPages()) {
|
|
1177
|
+
this._pageIndex = newIndex;
|
|
1178
|
+
}
|
|
1179
|
+
else {
|
|
1180
|
+
this._pageIndex = 0;
|
|
1181
|
+
}
|
|
1182
|
+
if (this.pageIndex !== previousPageIndex) {
|
|
1183
|
+
this._emitChangeEvent(previousPageIndex);
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
/** Emits an event notifying that a change of the paginator's properties has been triggered. */
|
|
1187
|
+
_emitChangeEvent(previousPageIndex) {
|
|
1188
|
+
this.pagerChange.emit({
|
|
1189
|
+
previousPageIndex,
|
|
1190
|
+
pageIndex: this.pageIndex,
|
|
1191
|
+
pageSize: this.pageSize,
|
|
1192
|
+
length: this.length,
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
}
|
|
1196
|
+
PepListPagerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListPagerComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.PepLayoutService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1197
|
+
PepListPagerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepListPagerComponent, selector: "pep-list-pager", inputs: { disabled: "disabled", pageIndex: "pageIndex", length: "length", pageSize: "pageSize" }, outputs: { pagerChange: "pagerChange" }, ngImport: i0, template: "<div class=\"pager-container body-sm\">\n <span class=\"pep-spacing-element\">{{ 'LIST.PAGER_PAGE' | translate }}</span>\n <pep-textbox pepAutoWidth class=\"page-index pep-spacing-element\" [key]=\"'pageIndex'\" [type]=\"'int'\"\n [disabled]=\"disabled\" [xAlignment]=\"'center'\" [renderTitle]=\"false\" [renderError]=\"false\" [renderSymbol]=\"false\"\n [value]=\"pageIndex + 1\" [formattedValue]=\"pageIndex + 1\" [minValue]=\"1\" [maxValue]=\"this.getNumberOfPages()\"\n [maxFieldCharacters]=\"6\" [mandatory]=\"true\" (valueChange)=\"onValueChange($event)\">\n </pep-textbox>\n <span class=\"pep-spacing-element\">{{ 'LIST.PAGER_OUT_OF' | translate }}</span>\n <span class=\"pep-spacing-element\">{{ getNumberOfPages() }}</span>\n <button mat-button [disabled]=\"disabled || _previousButtonsDisabled()\"\n [ngClass]=\"{ disabled: disabled || _previousButtonsDisabled() }\"\n class=\"pep-button icon-button pep-spacing-element sm weak\" pepRtlDirection pepMenuBlur (click)=\"previousPage()\"\n [title]=\"('LIST.PAGER_PREVIOUS' | translate)\">\n <mat-icon>\n <pep-icon [name]=\"layoutService.isRtl() ? 'arrow_right' : 'arrow_left'\"></pep-icon>\n </mat-icon>\n </button>\n <button mat-button [disabled]=\"disabled || _nextButtonsDisabled()\"\n [ngClass]=\"{ disabled: disabled || _nextButtonsDisabled() }\"\n class=\"pep-button icon-button pep-spacing-element sm weak\" pepRtlDirection pepMenuBlur (click)=\"nextPage()\"\n [title]=\"('LIST.PAGER_NEXT' | translate)\">\n <mat-icon>\n <pep-icon [name]=\"layoutService.isRtl() ? 'arrow_left' : 'arrow_right'\"></pep-icon>\n </mat-icon>\n </button>\n</div>", styles: [".pager-container{display:flex;justify-content:center;align-items:center;height:calc(2rem + calc(var(--pep-spacing-sm, .5rem) * 2));padding:var(--pep-spacing-sm, .5rem)}.pager-container .page-index{min-height:unset;margin-bottom:0}.pager-container .page-index ::ng-deep .mat-form-field-flex{padding:0 .5rem;min-height:2rem}.pager-container .page-index ::ng-deep .mat-form-field-flex .mat-input-element{min-width:1.25rem}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1.PepInputAutoWidthDirective, selector: "[pepAutoWidth]", inputs: ["includePadding"] }, { kind: "directive", type: i1.PepMenuBlurDirective, selector: "[pepMenuBlur]" }, { kind: "directive", type: i1.PepRtlDirectionDirective, selector: "[pepRtlDirection]" }, { kind: "component", type: i5.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }, { kind: "component", type: i6.PepTextboxComponent, selector: "pep-textbox", inputs: ["key", "value", "formattedValue", "accessory", "label", "placeholder", "type", "mandatory", "disabled", "readonly", "maxFieldCharacters", "hint", "textColor", "xAlignment", "rowSpan", "minValue", "maxValue", "visible", "form", "isActive", "showTitle", "renderTitle", "renderError", "renderSymbol", "layoutType", "parentFieldKey"], outputs: ["valueChange", "formValidationChange"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
|
|
1198
|
+
PepListPagerComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListPagerComponent });
|
|
1199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListPagerComponent, decorators: [{
|
|
1200
|
+
type: Component,
|
|
1201
|
+
args: [{ selector: 'pep-list-pager', template: "<div class=\"pager-container body-sm\">\n <span class=\"pep-spacing-element\">{{ 'LIST.PAGER_PAGE' | translate }}</span>\n <pep-textbox pepAutoWidth class=\"page-index pep-spacing-element\" [key]=\"'pageIndex'\" [type]=\"'int'\"\n [disabled]=\"disabled\" [xAlignment]=\"'center'\" [renderTitle]=\"false\" [renderError]=\"false\" [renderSymbol]=\"false\"\n [value]=\"pageIndex + 1\" [formattedValue]=\"pageIndex + 1\" [minValue]=\"1\" [maxValue]=\"this.getNumberOfPages()\"\n [maxFieldCharacters]=\"6\" [mandatory]=\"true\" (valueChange)=\"onValueChange($event)\">\n </pep-textbox>\n <span class=\"pep-spacing-element\">{{ 'LIST.PAGER_OUT_OF' | translate }}</span>\n <span class=\"pep-spacing-element\">{{ getNumberOfPages() }}</span>\n <button mat-button [disabled]=\"disabled || _previousButtonsDisabled()\"\n [ngClass]=\"{ disabled: disabled || _previousButtonsDisabled() }\"\n class=\"pep-button icon-button pep-spacing-element sm weak\" pepRtlDirection pepMenuBlur (click)=\"previousPage()\"\n [title]=\"('LIST.PAGER_PREVIOUS' | translate)\">\n <mat-icon>\n <pep-icon [name]=\"layoutService.isRtl() ? 'arrow_right' : 'arrow_left'\"></pep-icon>\n </mat-icon>\n </button>\n <button mat-button [disabled]=\"disabled || _nextButtonsDisabled()\"\n [ngClass]=\"{ disabled: disabled || _nextButtonsDisabled() }\"\n class=\"pep-button icon-button pep-spacing-element sm weak\" pepRtlDirection pepMenuBlur (click)=\"nextPage()\"\n [title]=\"('LIST.PAGER_NEXT' | translate)\">\n <mat-icon>\n <pep-icon [name]=\"layoutService.isRtl() ? 'arrow_left' : 'arrow_right'\"></pep-icon>\n </mat-icon>\n </button>\n</div>", styles: [".pager-container{display:flex;justify-content:center;align-items:center;height:calc(2rem + calc(var(--pep-spacing-sm, .5rem) * 2));padding:var(--pep-spacing-sm, .5rem)}.pager-container .page-index{min-height:unset;margin-bottom:0}.pager-container .page-index ::ng-deep .mat-form-field-flex{padding:0 .5rem;min-height:2rem}.pager-container .page-index ::ng-deep .mat-form-field-flex .mat-input-element{min-width:1.25rem}\n"] }]
|
|
1202
|
+
}, {
|
|
1203
|
+
type: Injectable
|
|
1204
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.PepLayoutService }]; }, propDecorators: { disabled: [{
|
|
1205
|
+
type: Input
|
|
1206
|
+
}], pageIndex: [{
|
|
1207
|
+
type: Input
|
|
1208
|
+
}], length: [{
|
|
1209
|
+
type: Input
|
|
1210
|
+
}], pageSize: [{
|
|
1211
|
+
type: Input
|
|
1212
|
+
}], pagerChange: [{
|
|
1213
|
+
type: Output
|
|
1214
|
+
}] } });
|
|
1215
|
+
|
|
1216
|
+
class IsItemSelectedPipe {
|
|
1217
|
+
constructor() {
|
|
1218
|
+
this.SEPARATOR = ',';
|
|
1219
|
+
}
|
|
1220
|
+
getUniqItemId(itemId, itemType = '') {
|
|
1221
|
+
return itemId + this.SEPARATOR + itemType;
|
|
1222
|
+
}
|
|
1223
|
+
transform(item, selectionTypeForActions, selectedItemId, isAllSelected, selectedItems, unSelectedItems) {
|
|
1224
|
+
let isSelected = false;
|
|
1225
|
+
if (selectionTypeForActions === 'single') {
|
|
1226
|
+
isSelected = selectedItemId === this.getUniqItemId(item === null || item === void 0 ? void 0 : item.UID, item === null || item === void 0 ? void 0 : item.Type.toString());
|
|
1227
|
+
}
|
|
1228
|
+
// else if (selectionTypeForActions === 'single-action') {
|
|
1229
|
+
// isSelected = (isAllSelected && !unSelectedItems.has(item?.UID)) || selectedItems.has(item?.UID);
|
|
1230
|
+
// }
|
|
1231
|
+
else if (selectionTypeForActions === 'multi') {
|
|
1232
|
+
if (item === null || item === void 0 ? void 0 : item.IsSelectableForActions) {
|
|
1233
|
+
isSelected = (isAllSelected && !unSelectedItems.has(item === null || item === void 0 ? void 0 : item.UID)) || selectedItems.has(item === null || item === void 0 ? void 0 : item.UID);
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
return isSelected;
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
IsItemSelectedPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: IsItemSelectedPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1240
|
+
IsItemSelectedPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: IsItemSelectedPipe, name: "isItemSelected" });
|
|
1241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: IsItemSelectedPipe, decorators: [{
|
|
1242
|
+
type: Pipe,
|
|
1243
|
+
args: [{
|
|
1244
|
+
name: 'isItemSelected'
|
|
1245
|
+
}]
|
|
1246
|
+
}] });
|
|
1247
|
+
class IsItemDisabledPipe {
|
|
1248
|
+
transform(item, lockItemInnerEvents, printMode) {
|
|
1249
|
+
return (printMode || lockItemInnerEvents || (item && !item.IsSelectableForActions));
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
IsItemDisabledPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: IsItemDisabledPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1253
|
+
IsItemDisabledPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: IsItemDisabledPipe, name: "isItemDisabled" });
|
|
1254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: IsItemDisabledPipe, decorators: [{
|
|
1255
|
+
type: Pipe,
|
|
1256
|
+
args: [{
|
|
1257
|
+
name: 'isItemDisabled'
|
|
1258
|
+
}]
|
|
1259
|
+
}] });
|
|
1260
|
+
|
|
1261
|
+
class PepListComponent {
|
|
1262
|
+
constructor(hostElement, layoutService, sessionService, cd, renderer, zone) {
|
|
1263
|
+
this.hostElement = hostElement;
|
|
1264
|
+
this.layoutService = layoutService;
|
|
1265
|
+
this.sessionService = sessionService;
|
|
1266
|
+
this.cd = cd;
|
|
1267
|
+
this.renderer = renderer;
|
|
1268
|
+
this.zone = zone;
|
|
1269
|
+
this.noDataFoundMsg = null;
|
|
1270
|
+
this.selectionTypeForActions = 'multi';
|
|
1271
|
+
this.showCardSelection = false;
|
|
1272
|
+
this.hideAllSelectionInMulti = false;
|
|
1273
|
+
this.cardSize = 'md';
|
|
1274
|
+
this.tableViewType = 'regular';
|
|
1275
|
+
this._viewType = '';
|
|
1276
|
+
this.firstFieldAsLink = false;
|
|
1277
|
+
this.supportSorting = true;
|
|
1278
|
+
this.supportResizing = true;
|
|
1279
|
+
this._parentScroll = null;
|
|
1280
|
+
this.disabled = false;
|
|
1281
|
+
this._lockEvents = false;
|
|
1282
|
+
this.lockItemInnerEvents = false;
|
|
1283
|
+
this.printMode = false;
|
|
1284
|
+
this.isReport = false;
|
|
1285
|
+
this.zebraStripes = false;
|
|
1286
|
+
this.totalsRow = [];
|
|
1287
|
+
this.pagerType = 'scroll';
|
|
1288
|
+
this.pageSize = DEFAULT_PAGE_SIZE;
|
|
1289
|
+
this.pageIndex = 0;
|
|
1290
|
+
// @Input() startIndex = 0;
|
|
1291
|
+
this.scrollAnimationTime = 500;
|
|
1292
|
+
this.scrollDebounceTime = 0;
|
|
1293
|
+
this.scrollThrottlingTime = 0;
|
|
1294
|
+
this._useAsWebComponent = false;
|
|
1295
|
+
this.itemClick = new EventEmitter();
|
|
1296
|
+
this.fieldClick = new EventEmitter();
|
|
1297
|
+
this.valueChange = new EventEmitter();
|
|
1298
|
+
this.sortingChange = new EventEmitter();
|
|
1299
|
+
this.selectedItemsChange = new EventEmitter();
|
|
1300
|
+
this.selectedItemChange = new EventEmitter();
|
|
1301
|
+
this.selectAllClick = new EventEmitter();
|
|
1302
|
+
// @Output()
|
|
1303
|
+
// singleActionClick: EventEmitter<any> = new EventEmitter<any>();
|
|
1304
|
+
this.listLoad = new EventEmitter();
|
|
1305
|
+
this.loadItems = new EventEmitter();
|
|
1306
|
+
this.loadPage = new EventEmitter();
|
|
1307
|
+
this.startIndexChange = new EventEmitter();
|
|
1308
|
+
this._layout = null;
|
|
1309
|
+
this.totalRows = -1;
|
|
1310
|
+
this.isTable = false;
|
|
1311
|
+
this.hasColumnWidthOfTypePercentage = true;
|
|
1312
|
+
this._items = null;
|
|
1313
|
+
this.itemsCounter = 0;
|
|
1314
|
+
this.SEPARATOR = ',';
|
|
1315
|
+
this.isAllSelected = false;
|
|
1316
|
+
this.selectedItems = new Map();
|
|
1317
|
+
this.unSelectedItems = new Map();
|
|
1318
|
+
this.selectedItemId = '';
|
|
1319
|
+
this.hoveredItemId = '';
|
|
1320
|
+
this.containerWidth = 0;
|
|
1321
|
+
this.tableScrollWidth = 0;
|
|
1322
|
+
this._loadingItemsFromApi = false;
|
|
1323
|
+
this.deviceHasMouse = false;
|
|
1324
|
+
// For resize
|
|
1325
|
+
this.pressedColumn = '';
|
|
1326
|
+
this.startX = 0;
|
|
1327
|
+
this.startWidth = 0;
|
|
1328
|
+
this.tableStartWidth = 0;
|
|
1329
|
+
// For sorting
|
|
1330
|
+
this.isAsc = true;
|
|
1331
|
+
this.sortBy = '';
|
|
1332
|
+
this.isUserSelected = false;
|
|
1333
|
+
this.checkForChanges = null;
|
|
1334
|
+
// this.nativeWindow = window;
|
|
1335
|
+
this.layoutService.onResize$.subscribe((size) => {
|
|
1336
|
+
this.screenSize = size;
|
|
1337
|
+
});
|
|
1338
|
+
this.layoutService.onMouseOver$.subscribe((deviceHasMouse) => {
|
|
1339
|
+
this.deviceHasMouse = deviceHasMouse;
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1342
|
+
set viewType(value) {
|
|
1343
|
+
this._viewType = value;
|
|
1344
|
+
this.isTable = value === 'table';
|
|
1345
|
+
}
|
|
1346
|
+
get viewType() {
|
|
1347
|
+
return this._viewType;
|
|
1348
|
+
}
|
|
1349
|
+
set parentScroll(value) {
|
|
1350
|
+
this._parentScroll = value;
|
|
1351
|
+
}
|
|
1352
|
+
get parentScroll() {
|
|
1353
|
+
return this._parentScroll;
|
|
1354
|
+
}
|
|
1355
|
+
set lockEvents(value) {
|
|
1356
|
+
this._lockEvents = value;
|
|
1357
|
+
if (this._lockEvents) {
|
|
1358
|
+
this.renderer.addClass(this.hostElement.nativeElement, 'lock-events');
|
|
1359
|
+
}
|
|
1360
|
+
else {
|
|
1361
|
+
this.renderer.removeClass(this.hostElement.nativeElement, 'lock-events');
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
get lockEvents() {
|
|
1365
|
+
return this._lockEvents;
|
|
1366
|
+
}
|
|
1367
|
+
set useAsWebComponent(value) {
|
|
1368
|
+
this._useAsWebComponent = value;
|
|
1369
|
+
if (value) {
|
|
1370
|
+
this.exportFunctionsOnHostElement();
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
get useAsWebComponent() {
|
|
1374
|
+
return this._useAsWebComponent;
|
|
1375
|
+
}
|
|
1376
|
+
get layout() {
|
|
1377
|
+
return this._layout;
|
|
1378
|
+
}
|
|
1379
|
+
get items() {
|
|
1380
|
+
return this._items;
|
|
1381
|
+
}
|
|
1382
|
+
get loadingItemsFromApi() {
|
|
1383
|
+
return this._loadingItemsFromApi;
|
|
1384
|
+
}
|
|
1385
|
+
ngOnInit() {
|
|
1386
|
+
this.containerWidth = 0;
|
|
1387
|
+
this.deviceHasMouse = this.layoutService.getDeviceHasMouse();
|
|
1388
|
+
}
|
|
1389
|
+
ngOnChanges(changes) {
|
|
1390
|
+
if (this.containerWidth <= 0) {
|
|
1391
|
+
this.setContainerWidth();
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
ngOnDestroy() {
|
|
1395
|
+
// if (this.valueChange) {
|
|
1396
|
+
// this.valueChange.unsubscribe();
|
|
1397
|
+
// }
|
|
1398
|
+
// if (this.loadItems) {
|
|
1399
|
+
// this.loadItems.unsubscribe();
|
|
1400
|
+
// }
|
|
1401
|
+
// if (this.loadPage) {
|
|
1402
|
+
// this.loadPage.unsubscribe();
|
|
1403
|
+
// }
|
|
1404
|
+
// if (this.sortingChange) {
|
|
1405
|
+
// this.sortingChange.unsubscribe();
|
|
1406
|
+
// }
|
|
1407
|
+
// if (this.fieldClick) {
|
|
1408
|
+
// this.fieldClick.unsubscribe();
|
|
1409
|
+
// }
|
|
1410
|
+
// if (this.itemClick) {
|
|
1411
|
+
// this.itemClick.unsubscribe();
|
|
1412
|
+
// }
|
|
1413
|
+
// if (this.listLoad) {
|
|
1414
|
+
// this.listLoad.unsubscribe();
|
|
1415
|
+
// }
|
|
1416
|
+
this.saveSortingToSession();
|
|
1417
|
+
}
|
|
1418
|
+
getScrollingElement() {
|
|
1419
|
+
var _a;
|
|
1420
|
+
return this.parentScroll ? this.parentScroll : (_a = this.virtualScroller) === null || _a === void 0 ? void 0 : _a.contentElementRef.nativeElement.parentElement;
|
|
1421
|
+
}
|
|
1422
|
+
scrollToTop(animate = true) {
|
|
1423
|
+
const scrollingElement = this.getScrollingElement();
|
|
1424
|
+
if (scrollingElement) {
|
|
1425
|
+
const scrollTop = 0;
|
|
1426
|
+
// totally disable animate
|
|
1427
|
+
if (!animate || this.scrollAnimationTime === 0) {
|
|
1428
|
+
if (scrollingElement instanceof Window) {
|
|
1429
|
+
window.scrollTo(0, scrollTop);
|
|
1430
|
+
}
|
|
1431
|
+
else {
|
|
1432
|
+
scrollingElement.scrollTop = scrollTop;
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
else {
|
|
1436
|
+
let animationRequest;
|
|
1437
|
+
const isWindow = scrollingElement instanceof Window;
|
|
1438
|
+
const currentScrollTop = scrollingElement instanceof Window
|
|
1439
|
+
? window.pageYOffset
|
|
1440
|
+
: scrollingElement.scrollTop;
|
|
1441
|
+
if (this.currentTween !== undefined) {
|
|
1442
|
+
this.currentTween.stop();
|
|
1443
|
+
}
|
|
1444
|
+
this.currentTween = new tween.Tween({ scrollTop: currentScrollTop })
|
|
1445
|
+
.to({ scrollTop }, this.scrollAnimationTime)
|
|
1446
|
+
.easing(tween.Easing.Quadratic.Out)
|
|
1447
|
+
.onUpdate((data) => {
|
|
1448
|
+
if (isNaN(data.scrollTop)) {
|
|
1449
|
+
return;
|
|
1450
|
+
}
|
|
1451
|
+
if (isWindow) {
|
|
1452
|
+
window.scrollTo(0, data.scrollTop);
|
|
1453
|
+
}
|
|
1454
|
+
else {
|
|
1455
|
+
this.renderer.setProperty(scrollingElement, 'scrollTop', data.scrollTop);
|
|
1456
|
+
}
|
|
1457
|
+
})
|
|
1458
|
+
.onStop(() => {
|
|
1459
|
+
cancelAnimationFrame(animationRequest);
|
|
1460
|
+
})
|
|
1461
|
+
.start();
|
|
1462
|
+
const animate = (time) => {
|
|
1463
|
+
this.currentTween.update(time);
|
|
1464
|
+
if (this.currentTween._object.scrollTop !== scrollTop) {
|
|
1465
|
+
this.zone.runOutsideAngular(() => {
|
|
1466
|
+
animationRequest = requestAnimationFrame(animate);
|
|
1467
|
+
});
|
|
1468
|
+
}
|
|
1469
|
+
};
|
|
1470
|
+
animate();
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
setContainerWidth() {
|
|
1475
|
+
const selectionCheckBoxWidth = this.selectionTypeForActions === 'multi' ? 44 : 0;
|
|
1476
|
+
const rowHeight = 40; // the table row height (2.5rem * 16font-size).
|
|
1477
|
+
const style = window.getComputedStyle(this.hostElement.nativeElement.parentElement);
|
|
1478
|
+
// The container-fluid class padding left + right + border
|
|
1479
|
+
const containerFluidSpacing = parseInt(style.paddingLeft, 10) + parseInt(style.paddingRight, 10);
|
|
1480
|
+
const parentContainer = this.hostElement.nativeElement.parentElement.parentElement > 0
|
|
1481
|
+
? this.hostElement.nativeElement.parentElement.parentElement
|
|
1482
|
+
: this.hostElement.nativeElement.parentElement;
|
|
1483
|
+
// Calculate if vertical scroll should appear, if so set the scroll width. (this.totalRows + 1) + 1 is for the header row.
|
|
1484
|
+
this.tableScrollWidth = parentContainer.clientHeight < rowHeight * (this.totalRows + 1)
|
|
1485
|
+
? this.layoutService.getScrollbarWidth()
|
|
1486
|
+
: 0;
|
|
1487
|
+
// The selectionCheckBoxWidth width + containerFluidSpacing + this.tableScrollWidth.
|
|
1488
|
+
const rowHeaderWidthToSub = containerFluidSpacing + selectionCheckBoxWidth + this.tableScrollWidth;
|
|
1489
|
+
this.containerWidth = parentContainer.offsetWidth - rowHeaderWidthToSub;
|
|
1490
|
+
}
|
|
1491
|
+
saveSortingToSession() {
|
|
1492
|
+
this.sessionService.setObject(PepListComponent.SORT_BY_STATE_KEY, this.sortBy);
|
|
1493
|
+
this.sessionService.setObject(PepListComponent.ASCENDING_STATE_KEY, this.isAsc);
|
|
1494
|
+
}
|
|
1495
|
+
getTopItems() {
|
|
1496
|
+
return this.isTable
|
|
1497
|
+
? PepListComponent.TOP_ITEMS_TABLE
|
|
1498
|
+
: PepListComponent.TOP_ITEMS_THUMBNAILS;
|
|
1499
|
+
}
|
|
1500
|
+
// private disableScroll(disable: boolean) {
|
|
1501
|
+
// if (disable) {
|
|
1502
|
+
// this.renderer.addClass(this.getParentContainer(), 'lock-events');
|
|
1503
|
+
// } else {
|
|
1504
|
+
// this.renderer.removeClass(this.getParentContainer(), 'lock-events');
|
|
1505
|
+
// }
|
|
1506
|
+
// }
|
|
1507
|
+
toggleLoadingItemsFropApi(loadingItemsFromApi) {
|
|
1508
|
+
this._loadingItemsFromApi = loadingItemsFromApi;
|
|
1509
|
+
// this.disableScroll(loadingItemsFromApi);
|
|
1510
|
+
}
|
|
1511
|
+
updateCurrentPageItems(startIndex, endIndex) {
|
|
1512
|
+
this.currentPageItems = this.items.slice(startIndex, endIndex);
|
|
1513
|
+
}
|
|
1514
|
+
setSelectionItems(itemId, uniqItemId, isChecked) {
|
|
1515
|
+
// Set selected item checkbox
|
|
1516
|
+
if (this.isAllSelected) {
|
|
1517
|
+
if (isChecked) {
|
|
1518
|
+
this.unSelectedItems.delete(itemId);
|
|
1519
|
+
this.selectedItems.set(itemId, uniqItemId);
|
|
1520
|
+
}
|
|
1521
|
+
else {
|
|
1522
|
+
this.selectedItems.delete(itemId);
|
|
1523
|
+
this.unSelectedItems.set(itemId, uniqItemId);
|
|
1524
|
+
}
|
|
1525
|
+
}
|
|
1526
|
+
else {
|
|
1527
|
+
if (isChecked) {
|
|
1528
|
+
this.unSelectedItems.delete(itemId);
|
|
1529
|
+
this.selectedItems.set(itemId, uniqItemId);
|
|
1530
|
+
}
|
|
1531
|
+
else {
|
|
1532
|
+
this.selectedItems.delete(itemId);
|
|
1533
|
+
this.unSelectedItems.set(itemId, uniqItemId);
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
getUniqItemId(itemId, itemType = '') {
|
|
1538
|
+
return itemId + this.SEPARATOR + itemType;
|
|
1539
|
+
}
|
|
1540
|
+
setLayout() {
|
|
1541
|
+
if (this.totalRows === 0 ||
|
|
1542
|
+
!this._layout ||
|
|
1543
|
+
!this._layout.ControlFields ||
|
|
1544
|
+
this._layout.ControlFields.length === 0) {
|
|
1545
|
+
return;
|
|
1546
|
+
}
|
|
1547
|
+
this._layout.ControlFields.forEach((cf) => {
|
|
1548
|
+
if (cf.ColumnWidth === 0) {
|
|
1549
|
+
cf.ColumnWidth = 10;
|
|
1550
|
+
}
|
|
1551
|
+
if (this.isTable &&
|
|
1552
|
+
(cf.FieldType === FIELD_TYPE.Image ||
|
|
1553
|
+
// cf.FieldType === FIELD_TYPE.Indicators || ???
|
|
1554
|
+
cf.FieldType === FIELD_TYPE.Signature ||
|
|
1555
|
+
cf.FieldType === FIELD_TYPE.NumberIntegerQuantitySelector ||
|
|
1556
|
+
cf.FieldType === FIELD_TYPE.NumberRealQuantitySelector ||
|
|
1557
|
+
cf.FieldType === FIELD_TYPE.NumberIntegerForMatrix ||
|
|
1558
|
+
cf.FieldType === FIELD_TYPE.NumberRealForMatrix ||
|
|
1559
|
+
cf.FieldType === FIELD_TYPE.Package ||
|
|
1560
|
+
cf.ApiName === 'UnitsQuantity' ||
|
|
1561
|
+
cf.ApiName === 'QuantitySelector')) {
|
|
1562
|
+
cf.Layout.XAlignment = 3;
|
|
1563
|
+
}
|
|
1564
|
+
});
|
|
1565
|
+
if (!this.cd['destroyed']) {
|
|
1566
|
+
this.cd.detectChanges();
|
|
1567
|
+
}
|
|
1568
|
+
// Set the columns width.
|
|
1569
|
+
if (this.containerWidth <= 0) {
|
|
1570
|
+
this.setContainerWidth();
|
|
1571
|
+
}
|
|
1572
|
+
this.calcColumnsWidth();
|
|
1573
|
+
this.checkForChanges = new Date().getTime();
|
|
1574
|
+
}
|
|
1575
|
+
calcColumnsWidth() {
|
|
1576
|
+
const fixedMultiple = 3.78; // for converting em to pixel.
|
|
1577
|
+
const length = this._layout.ControlFields.length;
|
|
1578
|
+
const selectionCheckBoxWidth = this.selectionTypeForActions === 'multi' ? 44 : 0;
|
|
1579
|
+
// Is table AND there is at least one column of width type of percentage.
|
|
1580
|
+
if (this.isTable) {
|
|
1581
|
+
if (this._layout && this._layout.ControlFields) {
|
|
1582
|
+
this.hasColumnWidthOfTypePercentage =
|
|
1583
|
+
this._layout.ControlFields.filter((cf) => cf.ColumnWidthType === 1).length === 0;
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
// If the columns size is fixed and the total is small then the container change it to percentage.
|
|
1587
|
+
if (!this.hasColumnWidthOfTypePercentage) {
|
|
1588
|
+
const totalFixedColsWidth = this._layout.ControlFields.map((cf) => cf.ColumnWidth * fixedMultiple).reduce((sum, current) => sum + current);
|
|
1589
|
+
if (window.innerWidth > totalFixedColsWidth) {
|
|
1590
|
+
this.hasColumnWidthOfTypePercentage = true;
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
let totalCalcColsWidth = 0;
|
|
1594
|
+
// Calc by percentage
|
|
1595
|
+
if (this.hasColumnWidthOfTypePercentage) {
|
|
1596
|
+
const totalColsWidth = this._layout.ControlFields.map((cf) => cf.ColumnWidth).reduce((sum, current) => sum + current);
|
|
1597
|
+
for (let index = 0; index < length; index++) {
|
|
1598
|
+
const uiControlField = this._layout.ControlFields[index];
|
|
1599
|
+
const calcColumnWidthPercentage = (100 / totalColsWidth) * uiControlField.ColumnWidth;
|
|
1600
|
+
uiControlField.calcColumnWidth = Math.floor((this.containerWidth * calcColumnWidthPercentage) / 100);
|
|
1601
|
+
if (index === length - 1) {
|
|
1602
|
+
uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidthString = 'calc(100% - ' + totalCalcColsWidth + 'px)'; // For 100%
|
|
1603
|
+
}
|
|
1604
|
+
else {
|
|
1605
|
+
uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidthString = uiControlField.calcColumnWidth + 'px';
|
|
1606
|
+
totalCalcColsWidth += uiControlField.calcColumnWidth;
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
this.renderer.setStyle(this.hostElement.nativeElement, 'width', 'inherit');
|
|
1610
|
+
}
|
|
1611
|
+
else {
|
|
1612
|
+
for (let index = 0; index < length; index++) {
|
|
1613
|
+
const uiControlField = this._layout
|
|
1614
|
+
.ControlFields[index];
|
|
1615
|
+
const currentFixedWidth = Math.floor(uiControlField.ColumnWidth * fixedMultiple);
|
|
1616
|
+
if (index === length - 1) {
|
|
1617
|
+
uiControlField.calcTitleColumnWidthString = currentFixedWidth + 'px';
|
|
1618
|
+
uiControlField.calcColumnWidthString = currentFixedWidth + 'px';
|
|
1619
|
+
}
|
|
1620
|
+
else {
|
|
1621
|
+
uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidthString = currentFixedWidth + 'px';
|
|
1622
|
+
}
|
|
1623
|
+
totalCalcColsWidth += currentFixedWidth;
|
|
1624
|
+
}
|
|
1625
|
+
this.renderer.setStyle(this.hostElement.nativeElement, 'width', totalCalcColsWidth + selectionCheckBoxWidth + 'px');
|
|
1626
|
+
}
|
|
1627
|
+
}
|
|
1628
|
+
initResizeData() {
|
|
1629
|
+
this.startX = 0;
|
|
1630
|
+
this.startWidth = 0;
|
|
1631
|
+
this.tableStartWidth = 0;
|
|
1632
|
+
this.pressedColumn = '';
|
|
1633
|
+
}
|
|
1634
|
+
getParent(el, parentSelector) {
|
|
1635
|
+
// If no parentSelector defined will bubble up all the way to *document*
|
|
1636
|
+
if (parentSelector === undefined) {
|
|
1637
|
+
parentSelector = document;
|
|
1638
|
+
}
|
|
1639
|
+
const parent = [];
|
|
1640
|
+
let p = el.parentNode;
|
|
1641
|
+
while (p &&
|
|
1642
|
+
p.className !== '' &&
|
|
1643
|
+
p.className.indexOf(parentSelector) === -1 &&
|
|
1644
|
+
parentSelector !== document) {
|
|
1645
|
+
const o = p;
|
|
1646
|
+
p = o.parentNode;
|
|
1647
|
+
}
|
|
1648
|
+
if (p.className.indexOf(parentSelector) > -1) {
|
|
1649
|
+
parent.push(p); // Push that parentSelector you wanted to stop at
|
|
1650
|
+
}
|
|
1651
|
+
return parent;
|
|
1652
|
+
}
|
|
1653
|
+
cleanItems() {
|
|
1654
|
+
this.itemsCounter = 0;
|
|
1655
|
+
this._items =
|
|
1656
|
+
this.totalRows > 0 ? Array(this.totalRows) : [];
|
|
1657
|
+
this.currentPageItems = [];
|
|
1658
|
+
this.calculatedObjectHeight = '';
|
|
1659
|
+
}
|
|
1660
|
+
initVariablesFromSession(items) {
|
|
1661
|
+
const selectedItemsObject = this.sessionService.getObject(PepListComponent.SELECTED_ITEMS_STATE_KEY);
|
|
1662
|
+
const selectedItemsFromMap = selectedItemsObject && selectedItemsObject.length > 0
|
|
1663
|
+
? new Map(selectedItemsObject)
|
|
1664
|
+
: null;
|
|
1665
|
+
if (selectedItemsFromMap != null &&
|
|
1666
|
+
typeof selectedItemsFromMap.size !== 'undefined' &&
|
|
1667
|
+
selectedItemsFromMap.size > 0) {
|
|
1668
|
+
this.selectedItems = selectedItemsFromMap;
|
|
1669
|
+
this.sessionService.removeObject(PepListComponent.SELECTED_ITEMS_STATE_KEY);
|
|
1670
|
+
}
|
|
1671
|
+
else {
|
|
1672
|
+
this.selectedItems.clear();
|
|
1673
|
+
}
|
|
1674
|
+
const unSelectedItemsObject = this.sessionService.getObject(PepListComponent.UN_SELECTED_ITEMS_STATE_KEY);
|
|
1675
|
+
const unSelectedItemsMap = unSelectedItemsObject && unSelectedItemsObject.length > 0
|
|
1676
|
+
? new Map(unSelectedItemsObject)
|
|
1677
|
+
: null;
|
|
1678
|
+
if (unSelectedItemsMap != null &&
|
|
1679
|
+
typeof unSelectedItemsMap.size !== 'undefined' &&
|
|
1680
|
+
unSelectedItemsMap.size > 0) {
|
|
1681
|
+
this.unSelectedItems = unSelectedItemsMap;
|
|
1682
|
+
this.sessionService.removeObject(PepListComponent.UN_SELECTED_ITEMS_STATE_KEY);
|
|
1683
|
+
}
|
|
1684
|
+
else {
|
|
1685
|
+
this.unSelectedItems.clear();
|
|
1686
|
+
}
|
|
1687
|
+
const isAllSelected = this.sessionService.getObject(PepListComponent.ALL_SELECTED_STATE_KEY);
|
|
1688
|
+
if (isAllSelected != null) {
|
|
1689
|
+
this.isAllSelected = isAllSelected && this.getIsAllSelected(items);
|
|
1690
|
+
this.sessionService.removeObject(PepListComponent.ALL_SELECTED_STATE_KEY);
|
|
1691
|
+
}
|
|
1692
|
+
else {
|
|
1693
|
+
this.isAllSelected = false;
|
|
1694
|
+
}
|
|
1695
|
+
const sortBy = this.sessionService.getObject(PepListComponent.SORT_BY_STATE_KEY);
|
|
1696
|
+
if (sortBy && sortBy !== '') {
|
|
1697
|
+
this.sortBy = sortBy;
|
|
1698
|
+
this.sessionService.removeObject(PepListComponent.SORT_BY_STATE_KEY);
|
|
1699
|
+
}
|
|
1700
|
+
else {
|
|
1701
|
+
this.sortBy = '';
|
|
1702
|
+
}
|
|
1703
|
+
const isAsc = this.sessionService.getObject(PepListComponent.ASCENDING_STATE_KEY);
|
|
1704
|
+
if (isAsc != null) {
|
|
1705
|
+
this.isAsc = isAsc;
|
|
1706
|
+
this.sessionService.removeObject(PepListComponent.ASCENDING_STATE_KEY);
|
|
1707
|
+
}
|
|
1708
|
+
else {
|
|
1709
|
+
this.isAsc = true;
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
getIsAllSelected(items) {
|
|
1713
|
+
var _a;
|
|
1714
|
+
let result = true;
|
|
1715
|
+
if (((_a = this.selectedItems) === null || _a === void 0 ? void 0 : _a.size) > 0 && (items === null || items === void 0 ? void 0 : items.length) > 0) {
|
|
1716
|
+
for (const item of items) {
|
|
1717
|
+
if (!(item && this.selectedItems.has(item === null || item === void 0 ? void 0 : item.UID.toString()))) {
|
|
1718
|
+
result = false;
|
|
1719
|
+
break;
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
}
|
|
1723
|
+
else {
|
|
1724
|
+
result = false;
|
|
1725
|
+
}
|
|
1726
|
+
return result;
|
|
1727
|
+
}
|
|
1728
|
+
getNumberOfStartItems() {
|
|
1729
|
+
let numberOfStartItems = 20;
|
|
1730
|
+
if (this.screenSize === PepScreenSizeType.XL ||
|
|
1731
|
+
this.screenSize === PepScreenSizeType.LG) {
|
|
1732
|
+
numberOfStartItems = this.isTable ? 50 : 40;
|
|
1733
|
+
}
|
|
1734
|
+
else if (this.screenSize === PepScreenSizeType.MD) {
|
|
1735
|
+
numberOfStartItems = this.isTable ? 30 : 20;
|
|
1736
|
+
}
|
|
1737
|
+
else if (this.screenSize === PepScreenSizeType.SM) {
|
|
1738
|
+
numberOfStartItems = this.isTable ? 20 : 10;
|
|
1739
|
+
}
|
|
1740
|
+
else if (this.screenSize === PepScreenSizeType.XS) {
|
|
1741
|
+
numberOfStartItems = this.isTable ? 15 : 5;
|
|
1742
|
+
}
|
|
1743
|
+
return numberOfStartItems;
|
|
1744
|
+
}
|
|
1745
|
+
setItemClicked(itemId, isSelectableForActions, itemType, isChecked) {
|
|
1746
|
+
const uniqItemId = this.getUniqItemId(itemId, itemType);
|
|
1747
|
+
// select the selected item.
|
|
1748
|
+
if (isChecked) {
|
|
1749
|
+
// Set seleted item
|
|
1750
|
+
this.selectedItemId = uniqItemId;
|
|
1751
|
+
}
|
|
1752
|
+
else {
|
|
1753
|
+
if (this.selectedItemId === uniqItemId) {
|
|
1754
|
+
this.selectedItemId = '';
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
if (this.selectionTypeForActions === 'single') {
|
|
1758
|
+
this.selectedItemsChange.emit(this.selectedItemId.length === 0 ? 0 : 1);
|
|
1759
|
+
}
|
|
1760
|
+
else if (this.selectionTypeForActions === 'multi') {
|
|
1761
|
+
if (isSelectableForActions) {
|
|
1762
|
+
this.setSelectionItems(itemId, uniqItemId, isChecked);
|
|
1763
|
+
const currentList = this.isAllSelected
|
|
1764
|
+
? this.unSelectedItems
|
|
1765
|
+
: this.selectedItems;
|
|
1766
|
+
const currentListCount = this.isAllSelected
|
|
1767
|
+
? this.totalRows - currentList.size
|
|
1768
|
+
: currentList.size;
|
|
1769
|
+
this.selectedItemsChange.emit(currentListCount);
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1772
|
+
// Raise selected item change event
|
|
1773
|
+
if (this.selectionTypeForActions !== 'none') {
|
|
1774
|
+
this.selectedItemChange.emit({
|
|
1775
|
+
id: itemId,
|
|
1776
|
+
selected: isChecked,
|
|
1777
|
+
});
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
exportFunctionsOnHostElement() {
|
|
1781
|
+
// This is for web component usage for use those functions.
|
|
1782
|
+
this.hostElement.nativeElement.clear = this.clear.bind(this);
|
|
1783
|
+
this.hostElement.nativeElement.initListData = this.initListData.bind(this);
|
|
1784
|
+
this.hostElement.nativeElement.updateItems = this.updateItems.bind(this);
|
|
1785
|
+
this.hostElement.nativeElement.updatePage = this.updatePage.bind(this);
|
|
1786
|
+
this.hostElement.nativeElement.updateItem = this.updateItem.bind(this);
|
|
1787
|
+
}
|
|
1788
|
+
// getIsDisabled(item: ObjectsDataRow): boolean {
|
|
1789
|
+
// return (
|
|
1790
|
+
// this.lockItemInnerEvents || (item && !item.IsSelectableForActions)
|
|
1791
|
+
// );
|
|
1792
|
+
// }
|
|
1793
|
+
getIsAllSelectedForActions() {
|
|
1794
|
+
var _a;
|
|
1795
|
+
let res = false;
|
|
1796
|
+
if (this.isAllSelected) {
|
|
1797
|
+
if (this.unSelectedItems.size === 0) {
|
|
1798
|
+
res = true;
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
else {
|
|
1802
|
+
if ((_a = this.virtualScroller) === null || _a === void 0 ? void 0 : _a.viewPortItems) {
|
|
1803
|
+
if (this.selectedItems.size === this.totalRows) {
|
|
1804
|
+
res = this.getIsAllSelected(this.virtualScroller.viewPortItems);
|
|
1805
|
+
}
|
|
1806
|
+
else if (this.selectedItems.size < this.totalRows) {
|
|
1807
|
+
for (const item of this.virtualScroller.viewPortItems) {
|
|
1808
|
+
res =
|
|
1809
|
+
item && this.selectedItems.has(item === null || item === void 0 ? void 0 : item.UID.toString());
|
|
1810
|
+
if (!res) {
|
|
1811
|
+
break;
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
return res;
|
|
1818
|
+
}
|
|
1819
|
+
setIsAllSelected(isChecked) {
|
|
1820
|
+
if (this.selectionTypeForActions === 'multi') {
|
|
1821
|
+
this.selectAllCB.checked = isChecked;
|
|
1822
|
+
this.isAllSelected = isChecked;
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
selectAllItemsForActions(e) {
|
|
1826
|
+
// For material checkbox || radio.
|
|
1827
|
+
const isChecked = e.source.checked;
|
|
1828
|
+
// Indeterminate mode
|
|
1829
|
+
let isIndeterminate = false;
|
|
1830
|
+
const currentList = this.isAllSelected
|
|
1831
|
+
? this.unSelectedItems
|
|
1832
|
+
: this.selectedItems;
|
|
1833
|
+
if (currentList.size > 0) {
|
|
1834
|
+
isIndeterminate = true;
|
|
1835
|
+
this.isAllSelected = false;
|
|
1836
|
+
this.selectedItemsChange.emit(0);
|
|
1837
|
+
e.source.checked = false;
|
|
1838
|
+
}
|
|
1839
|
+
this.selectedItems.clear();
|
|
1840
|
+
this.unSelectedItems.clear();
|
|
1841
|
+
if (!isIndeterminate) {
|
|
1842
|
+
this.isAllSelected = isChecked;
|
|
1843
|
+
this.selectAllClick.emit(isChecked);
|
|
1844
|
+
if (this.selectionTypeForActions === 'multi') {
|
|
1845
|
+
if (!isChecked) {
|
|
1846
|
+
this.selectedItemsChange.emit(0);
|
|
1847
|
+
this.selectedItemId = '';
|
|
1848
|
+
}
|
|
1849
|
+
else {
|
|
1850
|
+
const filteredItems = this.items.filter((item) => item && item.IsSelectableForActions);
|
|
1851
|
+
this.selectedItemsChange.emit(filteredItems.length);
|
|
1852
|
+
}
|
|
1853
|
+
}
|
|
1854
|
+
}
|
|
1855
|
+
else {
|
|
1856
|
+
// Remove all
|
|
1857
|
+
if (this.selectionTypeForActions === 'multi') {
|
|
1858
|
+
this.selectAllClick.emit(false);
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
raiseStartIndexChange(startIndex = 0) {
|
|
1863
|
+
// this.startIndex = startIndex;
|
|
1864
|
+
this.startIndexChange.emit({ startIndex });
|
|
1865
|
+
}
|
|
1866
|
+
getIsItemSelected(item) {
|
|
1867
|
+
let isSelected = false;
|
|
1868
|
+
if (item) {
|
|
1869
|
+
if (this.selectionTypeForActions === 'single') {
|
|
1870
|
+
isSelected = this.selectedItemId === this.getUniqItemId(item.UID, item.Type.toString());
|
|
1871
|
+
}
|
|
1872
|
+
else if (this.selectionTypeForActions === 'multi') {
|
|
1873
|
+
if (item.IsSelectableForActions) {
|
|
1874
|
+
isSelected = (this.isAllSelected && !this.unSelectedItems.has(item.UID)) || this.selectedItems.has(item.UID);
|
|
1875
|
+
}
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
return isSelected;
|
|
1879
|
+
}
|
|
1880
|
+
selectItemForActions(e, itemId, isSelectableForActions, itemType = '') {
|
|
1881
|
+
// For material checkbox || radio.
|
|
1882
|
+
const isChecked = e.source.checked;
|
|
1883
|
+
this.setItemClicked(itemId, isSelectableForActions, itemType, isChecked);
|
|
1884
|
+
}
|
|
1885
|
+
itemClicked(e, item) {
|
|
1886
|
+
// Set seleted item
|
|
1887
|
+
const itemId = item === null || item === void 0 ? void 0 : item.UID.toString();
|
|
1888
|
+
const itemType = item === null || item === void 0 ? void 0 : item.Type.toString();
|
|
1889
|
+
let isChecked = false;
|
|
1890
|
+
if (item && item.IsSelectableForActions) {
|
|
1891
|
+
this.selectedItemId = this.getUniqItemId(itemId, itemType);
|
|
1892
|
+
isChecked = true;
|
|
1893
|
+
}
|
|
1894
|
+
if (this.isTable) {
|
|
1895
|
+
if (this.selectionTypeForActions === 'single') {
|
|
1896
|
+
this.setItemClicked(itemId, item.IsSelectableForActions, itemType, isChecked);
|
|
1897
|
+
}
|
|
1898
|
+
else if (this.selectionTypeForActions === 'none') {
|
|
1899
|
+
// Just mark the row as highlighted
|
|
1900
|
+
this.setItemClicked(itemId, item.IsSelectableForActions, itemType, true);
|
|
1901
|
+
}
|
|
1902
|
+
}
|
|
1903
|
+
else {
|
|
1904
|
+
if (this.disabled) {
|
|
1905
|
+
return;
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
this.itemClick.emit({ source: item, viewType: this.viewType });
|
|
1909
|
+
}
|
|
1910
|
+
onTableRowMouseEnter(event, itemId, itemType) {
|
|
1911
|
+
if (!this.deviceHasMouse) {
|
|
1912
|
+
return;
|
|
1913
|
+
}
|
|
1914
|
+
const uniqItemId = this.getUniqItemId(itemId, itemType);
|
|
1915
|
+
this.hoveredItemId = uniqItemId;
|
|
1916
|
+
}
|
|
1917
|
+
onTableRowMouseLeave(event, itemId, itemType) {
|
|
1918
|
+
this.hoveredItemId = '';
|
|
1919
|
+
}
|
|
1920
|
+
onCardMouseEnter(event, itemId, itemType) {
|
|
1921
|
+
if (!this.deviceHasMouse) {
|
|
1922
|
+
return;
|
|
1923
|
+
}
|
|
1924
|
+
const uniqItemId = this.getUniqItemId(itemId, itemType);
|
|
1925
|
+
this.hoveredItemId = uniqItemId;
|
|
1926
|
+
}
|
|
1927
|
+
onCardMouseLeave(event, itemId, itemType) {
|
|
1928
|
+
this.hoveredItemId = '';
|
|
1929
|
+
}
|
|
1930
|
+
// trackByFunc(index: number, item: ObjectsDataRow): any {
|
|
1931
|
+
// return item && item?.UID ? item?.UID : index;
|
|
1932
|
+
// // let res: string = "";
|
|
1933
|
+
// // if (item && item?.UID) {
|
|
1934
|
+
// // res = item?.UID + "_" + this.listType + "_" + (this.isTable ? "Table" : "Thumbnails");
|
|
1935
|
+
// // }
|
|
1936
|
+
// // else {
|
|
1937
|
+
// // res = index + "_" + this.listType + "_" + (this.isTable ? "Table" : "Thumbnails");
|
|
1938
|
+
// // }
|
|
1939
|
+
// // return res;
|
|
1940
|
+
// }
|
|
1941
|
+
clear() {
|
|
1942
|
+
this.cleanItems();
|
|
1943
|
+
this._layout = null;
|
|
1944
|
+
}
|
|
1945
|
+
setSelectedIds(selectedIds, items = null) {
|
|
1946
|
+
var _a;
|
|
1947
|
+
this.selectedItems.clear();
|
|
1948
|
+
this.isAllSelected = false;
|
|
1949
|
+
if (selectedIds) {
|
|
1950
|
+
// for (let i = 0; i < selected.length; i++) {
|
|
1951
|
+
for (const selectedId of selectedIds) {
|
|
1952
|
+
const tmp = selectedId.split(this.SEPARATOR);
|
|
1953
|
+
if (tmp && tmp.length > 0) {
|
|
1954
|
+
const itemId = tmp[0];
|
|
1955
|
+
const itemType = tmp.length > 1 ? tmp[1] : '';
|
|
1956
|
+
this.selectedItems.set(itemId, this.getUniqItemId(itemId, itemType));
|
|
1957
|
+
}
|
|
1958
|
+
}
|
|
1959
|
+
this.isAllSelected = this.getIsAllSelected(items ? items : (_a = this.virtualScroller) === null || _a === void 0 ? void 0 : _a.viewPortItems);
|
|
1960
|
+
this.setSelectionDataInSession();
|
|
1961
|
+
}
|
|
1962
|
+
this.refresh();
|
|
1963
|
+
}
|
|
1964
|
+
setSelectionDataInSession() {
|
|
1965
|
+
if (this.selectedItems.size > 0) {
|
|
1966
|
+
this.sessionService.setObject(PepListComponent.SELECTED_ITEMS_STATE_KEY, JSON.stringify([...this.selectedItems]));
|
|
1967
|
+
}
|
|
1968
|
+
if (this.unSelectedItems.size > 0) {
|
|
1969
|
+
this.sessionService.setObject(PepListComponent.UN_SELECTED_ITEMS_STATE_KEY, JSON.stringify([...this.unSelectedItems]));
|
|
1970
|
+
}
|
|
1971
|
+
this.sessionService.setObject(PepListComponent.ALL_SELECTED_STATE_KEY, this.isAllSelected);
|
|
1972
|
+
}
|
|
1973
|
+
initListData(layout, totalRows, items) {
|
|
1974
|
+
this.initVariablesFromSession(items);
|
|
1975
|
+
const currentList = this.isAllSelected
|
|
1976
|
+
? this.unSelectedItems
|
|
1977
|
+
: this.selectedItems;
|
|
1978
|
+
const currentListCount = this.isAllSelected
|
|
1979
|
+
? this.totalRows - currentList.size
|
|
1980
|
+
: currentList.size;
|
|
1981
|
+
this.selectedItemsChange.emit(currentListCount);
|
|
1982
|
+
this._layout = layout;
|
|
1983
|
+
this.selectedItemId = '';
|
|
1984
|
+
this.totalRows = totalRows;
|
|
1985
|
+
this.scrollToTop(false);
|
|
1986
|
+
this.cleanItems();
|
|
1987
|
+
if (items) {
|
|
1988
|
+
if (this.pagerType === 'pages') {
|
|
1989
|
+
// If page index out of bounds - init to 0.
|
|
1990
|
+
const numberOfPages = Math.ceil(totalRows / this.pageSize);
|
|
1991
|
+
if (this.pageIndex >= numberOfPages) {
|
|
1992
|
+
this.pageIndex = 0;
|
|
1993
|
+
}
|
|
1994
|
+
this.updatePage(items, {
|
|
1995
|
+
pageIndex: this.pageIndex,
|
|
1996
|
+
pageSize: this.pageSize,
|
|
1997
|
+
});
|
|
1998
|
+
}
|
|
1999
|
+
else {
|
|
2000
|
+
const numberOfStartItems = this.getNumberOfStartItems();
|
|
2001
|
+
const event = {
|
|
2002
|
+
fromIndex: 0,
|
|
2003
|
+
toIndex: numberOfStartItems,
|
|
2004
|
+
};
|
|
2005
|
+
this.updateItems(items, event);
|
|
2006
|
+
this.refresh();
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
this.setLayout();
|
|
2010
|
+
this.onListLoad();
|
|
2011
|
+
}
|
|
2012
|
+
updateItems(items, event = null) {
|
|
2013
|
+
var _a;
|
|
2014
|
+
if (!event) {
|
|
2015
|
+
return; // Event isn't supplied.
|
|
2016
|
+
}
|
|
2017
|
+
// Clean array
|
|
2018
|
+
if (this.itemsCounter + items.length > PepListComponent.TOP_ITEMS_ARRAY) {
|
|
2019
|
+
this.cleanItems();
|
|
2020
|
+
}
|
|
2021
|
+
const startIndex = (_a = event.fromIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2022
|
+
for (let i = 0; i < items.length; i++) {
|
|
2023
|
+
if (!this.items[i + startIndex]) {
|
|
2024
|
+
this.items[i + startIndex] = items[i];
|
|
2025
|
+
this.itemsCounter += 1;
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
this.toggleLoadingItemsFropApi(false);
|
|
2029
|
+
}
|
|
2030
|
+
updatePage(items, event) {
|
|
2031
|
+
if (!event) {
|
|
2032
|
+
return; // Event isn't supplied.
|
|
2033
|
+
}
|
|
2034
|
+
// Clean array
|
|
2035
|
+
if (this.itemsCounter + items.length > PepListComponent.TOP_ITEMS_ARRAY) {
|
|
2036
|
+
this.cleanItems();
|
|
2037
|
+
}
|
|
2038
|
+
// const loadInChunks = this.itemsCounter === 0;
|
|
2039
|
+
const startIndex = Math.min(event.pageIndex * event.pageSize, this.totalRows);
|
|
2040
|
+
const endIndex = Math.min(startIndex + event.pageSize, this.totalRows);
|
|
2041
|
+
for (let i = 0; i < items.length; i++) {
|
|
2042
|
+
if (!this.items[i + startIndex]) {
|
|
2043
|
+
this.items[i + startIndex] = items[i];
|
|
2044
|
+
this.itemsCounter += 1;
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
this.updateCurrentPageItems(startIndex, endIndex);
|
|
2048
|
+
this.toggleLoadingItemsFropApi(false);
|
|
2049
|
+
}
|
|
2050
|
+
updateItem(data) {
|
|
2051
|
+
const index = this.items.findIndex((i) => i && (i === null || i === void 0 ? void 0 : i.UID) === (data === null || data === void 0 ? void 0 : data.UID));
|
|
2052
|
+
if (index >= 0 && index < this.items.length) {
|
|
2053
|
+
this.updateItemProperties(this.items[index], data);
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
scrollToIndex(index, alignToBeginning = true, additionalOffset = 0, animationMilliseconds = undefined, animationCompletedCallback = undefined) {
|
|
2057
|
+
var _a;
|
|
2058
|
+
(_a = this.virtualScroller) === null || _a === void 0 ? void 0 : _a.scrollToIndex(index, alignToBeginning, additionalOffset, animationMilliseconds, animationCompletedCallback);
|
|
2059
|
+
}
|
|
2060
|
+
updateItemProperties(itemToUpdate, data) {
|
|
2061
|
+
Object.assign(itemToUpdate, data);
|
|
2062
|
+
}
|
|
2063
|
+
getSelectedItemsData(isForEdit = false) {
|
|
2064
|
+
const res = new PepSelectionData();
|
|
2065
|
+
let selectionType = 1;
|
|
2066
|
+
const items = [];
|
|
2067
|
+
const itemTypes = [];
|
|
2068
|
+
if (this.selectionTypeForActions === 'single') {
|
|
2069
|
+
if (this.selectedItemId.length > 0) {
|
|
2070
|
+
const tmp = this.selectedItemId.split(this.SEPARATOR);
|
|
2071
|
+
items.push(tmp[0]);
|
|
2072
|
+
itemTypes.push(tmp[1]);
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
else if (this.selectionTypeForActions === 'multi') {
|
|
2076
|
+
let currentList = [];
|
|
2077
|
+
// For edit - only the selected items.
|
|
2078
|
+
if (isForEdit) {
|
|
2079
|
+
if (!this.isAllSelected) {
|
|
2080
|
+
currentList = Array.from(this.selectedItems.values());
|
|
2081
|
+
}
|
|
2082
|
+
else {
|
|
2083
|
+
// Get the id's of the items that not founded in unSelectedItems.
|
|
2084
|
+
this.items.forEach((item) => {
|
|
2085
|
+
if (item &&
|
|
2086
|
+
!this.unSelectedItems.has(item === null || item === void 0 ? void 0 : item.UID.toString())) {
|
|
2087
|
+
currentList.push(this.getUniqItemId(item === null || item === void 0 ? void 0 : item.UID.toString(), item === null || item === void 0 ? void 0 : item.Type.toString()));
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
2090
|
+
}
|
|
2091
|
+
}
|
|
2092
|
+
else {
|
|
2093
|
+
// For delete - can be the unselected with select_all functionality.
|
|
2094
|
+
currentList = Array.from(this.isAllSelected
|
|
2095
|
+
? this.unSelectedItems.values()
|
|
2096
|
+
: this.selectedItems.values());
|
|
2097
|
+
selectionType = this.isAllSelected ? 0 : 1;
|
|
2098
|
+
}
|
|
2099
|
+
currentList.forEach((item) => {
|
|
2100
|
+
const tmp = item.split(this.SEPARATOR);
|
|
2101
|
+
if (tmp.length === 2) {
|
|
2102
|
+
items.push(tmp[0]);
|
|
2103
|
+
itemTypes.push(tmp[1]);
|
|
2104
|
+
}
|
|
2105
|
+
});
|
|
2106
|
+
}
|
|
2107
|
+
res.selectionType = selectionType;
|
|
2108
|
+
res.rows = items;
|
|
2109
|
+
res.rowTypes = itemTypes;
|
|
2110
|
+
return res;
|
|
2111
|
+
}
|
|
2112
|
+
getIsItemEditable(uid) {
|
|
2113
|
+
const item = this.items.filter((x) => (x === null || x === void 0 ? void 0 : x.UID.toString()) === uid);
|
|
2114
|
+
if (item.length > 0) {
|
|
2115
|
+
return item[0].IsEditable;
|
|
2116
|
+
}
|
|
2117
|
+
else {
|
|
2118
|
+
return false;
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
getItemDataByID(uid) {
|
|
2122
|
+
return this.items.find((item) => (item === null || item === void 0 ? void 0 : item.UID.toString()) === uid);
|
|
2123
|
+
}
|
|
2124
|
+
refresh() {
|
|
2125
|
+
var _a;
|
|
2126
|
+
(_a = this.virtualScroller) === null || _a === void 0 ? void 0 : _a.refresh();
|
|
2127
|
+
}
|
|
2128
|
+
// ---------------------------------------------------------------
|
|
2129
|
+
// Events handlers.
|
|
2130
|
+
// ---------------------------------------------------------------
|
|
2131
|
+
onWinResize(e) {
|
|
2132
|
+
this.refresh();
|
|
2133
|
+
this.containerWidth = 0;
|
|
2134
|
+
this.setLayout();
|
|
2135
|
+
}
|
|
2136
|
+
onListResizeStart(event, columnKey) {
|
|
2137
|
+
var _a;
|
|
2138
|
+
this.pressedColumn = columnKey;
|
|
2139
|
+
this.startX = event.x;
|
|
2140
|
+
this.startWidth = event.target.closest('.header-column').offsetWidth;
|
|
2141
|
+
this.tableStartWidth = (_a = this.virtualScroller) === null || _a === void 0 ? void 0 : _a.contentElementRef.nativeElement.offsetWidth;
|
|
2142
|
+
}
|
|
2143
|
+
onListResize(event) {
|
|
2144
|
+
if (this.pressedColumn.length > 0) {
|
|
2145
|
+
let widthToAdd = this.layoutService.isRtl() ? this.startX - event.x : event.x - this.startX;
|
|
2146
|
+
// Set the width of the column and the container of the whole columns.
|
|
2147
|
+
if (this.startWidth + widthToAdd >= PepListComponent.MINIMUM_COLUMN_WIDTH || widthToAdd > 0) {
|
|
2148
|
+
const length = this._layout.ControlFields.length;
|
|
2149
|
+
let totalCalcColsWidth = 0;
|
|
2150
|
+
for (let index = 0; index < length; index++) {
|
|
2151
|
+
const uiControlField = this._layout
|
|
2152
|
+
.ControlFields[index];
|
|
2153
|
+
if (index === length - 1) {
|
|
2154
|
+
// Calc the last column only in percentage type.
|
|
2155
|
+
if (this.hasColumnWidthOfTypePercentage) {
|
|
2156
|
+
const scrollWidth = this.layoutService.getScrollbarWidth();
|
|
2157
|
+
widthToAdd += scrollWidth;
|
|
2158
|
+
uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidthString = 'calc(100% - ' + (totalCalcColsWidth + scrollWidth) + 'px)'; // For 100%
|
|
2159
|
+
}
|
|
2160
|
+
else {
|
|
2161
|
+
if (uiControlField.ApiName === this.pressedColumn) {
|
|
2162
|
+
uiControlField.calcColumnWidth = this.startWidth + widthToAdd;
|
|
2163
|
+
uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidth + 'px';
|
|
2164
|
+
uiControlField.calcColumnWidthString = uiControlField.calcColumnWidth + 'px';
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
else if (uiControlField.ApiName === this.pressedColumn) {
|
|
2169
|
+
uiControlField.calcColumnWidth = this.startWidth + widthToAdd;
|
|
2170
|
+
uiControlField.calcTitleColumnWidthString = uiControlField.calcColumnWidthString = uiControlField.calcColumnWidth + 'px';
|
|
2171
|
+
}
|
|
2172
|
+
totalCalcColsWidth += uiControlField.calcColumnWidth;
|
|
2173
|
+
}
|
|
2174
|
+
this.renderer.setStyle(this.hostElement.nativeElement, 'width', this.tableStartWidth + widthToAdd + 'px');
|
|
2175
|
+
}
|
|
2176
|
+
this.checkForChanges = new Date().getTime();
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
onListResizeEnd(event) {
|
|
2180
|
+
if (this.pressedColumn.length > 0) {
|
|
2181
|
+
if (event &&
|
|
2182
|
+
this.getParent(event.srcElement, 'resize-box').length > 0) {
|
|
2183
|
+
this.initResizeData();
|
|
2184
|
+
}
|
|
2185
|
+
else {
|
|
2186
|
+
// Set timeout 0 for onListSortingChange will have the pressedColumn.
|
|
2187
|
+
setTimeout(() => {
|
|
2188
|
+
this.initResizeData();
|
|
2189
|
+
}, 0);
|
|
2190
|
+
}
|
|
2191
|
+
event.stopPropagation();
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
onListSortingChange(sortBy, isAsc, event = null) {
|
|
2195
|
+
if (this.pressedColumn.length > 0 ||
|
|
2196
|
+
(event && this.getParent(event.srcElement, 'resize-box').length > 0)) {
|
|
2197
|
+
return;
|
|
2198
|
+
}
|
|
2199
|
+
if (this.sortBy !== sortBy || this.isAsc !== isAsc) {
|
|
2200
|
+
this.sortBy = sortBy;
|
|
2201
|
+
this.isAsc = isAsc;
|
|
2202
|
+
this.saveSortingToSession();
|
|
2203
|
+
this.sortingChange.emit({ sortBy, isAsc });
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
onListHeaderMouseEnter(event) {
|
|
2207
|
+
// this.headerIsInFocus = true;
|
|
2208
|
+
}
|
|
2209
|
+
onListHeaderMouseLeave(event) {
|
|
2210
|
+
// this.headerIsInFocus = false;
|
|
2211
|
+
this.onListResizeEnd(event);
|
|
2212
|
+
this.initResizeData();
|
|
2213
|
+
}
|
|
2214
|
+
onPagerChange(event) {
|
|
2215
|
+
this.pageIndex = event.pageIndex;
|
|
2216
|
+
// Scroll to top.
|
|
2217
|
+
this.scrollToTop();
|
|
2218
|
+
const startIndex = event.pageIndex * event.pageSize;
|
|
2219
|
+
const endIndex = Math.min(startIndex + event.pageSize, this.totalRows);
|
|
2220
|
+
let shouldGetItemsFromApi = false;
|
|
2221
|
+
let index = startIndex;
|
|
2222
|
+
while (!shouldGetItemsFromApi && index < endIndex) {
|
|
2223
|
+
if (!this.items[index]) {
|
|
2224
|
+
shouldGetItemsFromApi = true;
|
|
2225
|
+
}
|
|
2226
|
+
index++;
|
|
2227
|
+
}
|
|
2228
|
+
// Get bulk from api.
|
|
2229
|
+
if (shouldGetItemsFromApi) {
|
|
2230
|
+
if (!this.loadingItemsFromApi) {
|
|
2231
|
+
this.toggleLoadingItemsFropApi(true);
|
|
2232
|
+
this.loadPage.emit({
|
|
2233
|
+
pageIndex: event.pageIndex,
|
|
2234
|
+
pageSize: event.pageSize,
|
|
2235
|
+
});
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
else {
|
|
2239
|
+
setTimeout(() => {
|
|
2240
|
+
this.updateCurrentPageItems(startIndex, endIndex);
|
|
2241
|
+
}, this.scrollAnimationTime);
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
onVirtualScrollerChange(event) {
|
|
2245
|
+
this.raiseStartIndexChange(event.startIndex);
|
|
2246
|
+
if (this.pagerType === 'scroll') {
|
|
2247
|
+
// For other events do nothing.
|
|
2248
|
+
if (typeof event.startIndex === 'undefined' || event.startIndex < 0 ||
|
|
2249
|
+
typeof event.endIndex === 'undefined' || event.endIndex < 0) {
|
|
2250
|
+
return;
|
|
2251
|
+
}
|
|
2252
|
+
const addAtStart = event.scrollDirection === 'backward';
|
|
2253
|
+
let shouldGetItemsFromApi = false;
|
|
2254
|
+
let indexOfMissingItem;
|
|
2255
|
+
if (addAtStart) {
|
|
2256
|
+
indexOfMissingItem = event.endIndex;
|
|
2257
|
+
while (!shouldGetItemsFromApi && indexOfMissingItem >= event.startIndex) {
|
|
2258
|
+
if (!this.items[indexOfMissingItem]) {
|
|
2259
|
+
shouldGetItemsFromApi = true;
|
|
2260
|
+
}
|
|
2261
|
+
if (!shouldGetItemsFromApi) {
|
|
2262
|
+
indexOfMissingItem--;
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
else {
|
|
2267
|
+
indexOfMissingItem = event.startIndex;
|
|
2268
|
+
while (!shouldGetItemsFromApi && indexOfMissingItem <= event.endIndex) {
|
|
2269
|
+
if (!this.items[indexOfMissingItem]) {
|
|
2270
|
+
shouldGetItemsFromApi = true;
|
|
2271
|
+
}
|
|
2272
|
+
if (!shouldGetItemsFromApi) {
|
|
2273
|
+
indexOfMissingItem++;
|
|
2274
|
+
}
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
// Get bulk from api.
|
|
2278
|
+
if (shouldGetItemsFromApi) {
|
|
2279
|
+
if (!this.loadingItemsFromApi) {
|
|
2280
|
+
this.toggleLoadingItemsFropApi(true);
|
|
2281
|
+
const top = this.getTopItems() - 1;
|
|
2282
|
+
const fromIndex = addAtStart ? Math.max(indexOfMissingItem - top, 0) : indexOfMissingItem;
|
|
2283
|
+
const toIndex = addAtStart ? indexOfMissingItem : Math.min(indexOfMissingItem + top, this.totalRows);
|
|
2284
|
+
this.loadItems.emit({
|
|
2285
|
+
fromIndex,
|
|
2286
|
+
toIndex,
|
|
2287
|
+
});
|
|
2288
|
+
}
|
|
2289
|
+
}
|
|
2290
|
+
}
|
|
2291
|
+
}
|
|
2292
|
+
onListLoad() {
|
|
2293
|
+
setTimeout(() => {
|
|
2294
|
+
this.listLoad.emit();
|
|
2295
|
+
}, 0);
|
|
2296
|
+
}
|
|
2297
|
+
onChildRectChange(event) {
|
|
2298
|
+
setTimeout(() => {
|
|
2299
|
+
this.calculatedObjectHeight = (event === null || event === void 0 ? void 0 : event.height) + 'px';
|
|
2300
|
+
}, 0);
|
|
2301
|
+
}
|
|
2302
|
+
onValueChanged(valueChange) {
|
|
2303
|
+
if (this.disabled) {
|
|
2304
|
+
return;
|
|
2305
|
+
}
|
|
2306
|
+
this.valueChange.emit(valueChange);
|
|
2307
|
+
}
|
|
2308
|
+
onCustomizeFieldClick(customizeFieldClickedData) {
|
|
2309
|
+
if (this.disabled) {
|
|
2310
|
+
return;
|
|
2311
|
+
}
|
|
2312
|
+
this.fieldClick.emit(customizeFieldClickedData);
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
PepListComponent.TOP_ITEMS_DEFAULT = 100;
|
|
2316
|
+
PepListComponent.TOP_ITEMS_TABLE = 100;
|
|
2317
|
+
PepListComponent.TOP_ITEMS_THUMBNAILS = 100;
|
|
2318
|
+
PepListComponent.TOP_ITEMS_ARRAY = 2500;
|
|
2319
|
+
PepListComponent.SELECTED_ITEMS_STATE_KEY = 'SelectedItems';
|
|
2320
|
+
PepListComponent.UN_SELECTED_ITEMS_STATE_KEY = 'UnSelectedItems';
|
|
2321
|
+
PepListComponent.ALL_SELECTED_STATE_KEY = 'AllSelected';
|
|
2322
|
+
PepListComponent.SORT_BY_STATE_KEY = 'SortBy';
|
|
2323
|
+
PepListComponent.ASCENDING_STATE_KEY = 'IsAscending';
|
|
2324
|
+
PepListComponent.MINIMUM_COLUMN_WIDTH = 48;
|
|
2325
|
+
PepListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListComponent, deps: [{ token: i0.ElementRef }, { token: i1.PepLayoutService }, { token: i1.PepSessionService }, { token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
2326
|
+
PepListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepListComponent, selector: "pep-list", inputs: { noDataFoundMsg: "noDataFoundMsg", selectionTypeForActions: "selectionTypeForActions", showCardSelection: "showCardSelection", hideAllSelectionInMulti: "hideAllSelectionInMulti", cardSize: "cardSize", tableViewType: "tableViewType", viewType: "viewType", firstFieldAsLink: "firstFieldAsLink", supportSorting: "supportSorting", supportResizing: "supportResizing", parentScroll: "parentScroll", disabled: "disabled", lockEvents: "lockEvents", lockItemInnerEvents: "lockItemInnerEvents", printMode: "printMode", isReport: "isReport", zebraStripes: "zebraStripes", totalsRow: "totalsRow", pagerType: "pagerType", pageSize: "pageSize", pageIndex: "pageIndex", scrollAnimationTime: "scrollAnimationTime", scrollDebounceTime: "scrollDebounceTime", scrollThrottlingTime: "scrollThrottlingTime", useAsWebComponent: "useAsWebComponent" }, outputs: { itemClick: "itemClick", fieldClick: "fieldClick", valueChange: "valueChange", sortingChange: "sortingChange", selectedItemsChange: "selectedItemsChange", selectedItemChange: "selectedItemChange", selectAllClick: "selectAllClick", listLoad: "listLoad", loadItems: "loadItems", loadPage: "loadPage", startIndexChange: "startIndexChange" }, host: { listeners: { "window:resize": "onWinResize($event)" } }, viewQueries: [{ propertyName: "virtualScroller", first: true, predicate: VirtualScrollerComponent, descendants: true }, { propertyName: "selectAllCB", first: true, predicate: ["selectAllCB"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"totalRows == 0\">\n <ng-container *ngIf=\"noDataFoundMsg; then noDataMsgInputBlock; else noDataMsgDefaultBlock\"></ng-container>\n <ng-template #noDataMsgInputBlock>\n <div class=\"pep-border-bottom\">\n <p class=\"title-xl no-data\">\n {{ noDataFoundMsg }}\n </p>\n </div>\n </ng-template>\n <ng-template #noDataMsgDefaultBlock>\n <div class=\"pep-border-bottom\">\n <p class=\"title-xl no-data\">\n {{ 'LIST.NO_DATA_FOUND' | translate}}\n </p>\n </div>\n <div class=\"no-data-suggestions\">\n <p class=\"suggestions-title title-lg\">\n {{ 'LIST.NO_DATA_FOUND_SUGGESTIONS_TITLE' | translate}}\n </p>\n <ul class=\"suggestions-list body-lg\" [innerHtml]=\"'LIST.NO_DATA_FOUND_SUGGESTIONS_LIST' | translate\"></ul>\n </div>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"totalRows > 0\">\n <ng-container *ngTemplateOutlet=\"tableHeader\"></ng-container>\n\n <virtual-scroller #scroller [items]=\"pagerType === 'pages' ? currentPageItems : items\"\n [scrollDebounceTime]=\"scrollDebounceTime\" [scrollThrottlingTime]=\"scrollThrottlingTime\"\n [bufferAmount]=\"printMode ? totalRows : -1\" [parentScroll]=\"parentScroll\" [disable]=\"loadingItemsFromApi\"\n class=\"virtual-scroller\" [ngClass]=\"{ 'table-body': isTable, 'cards-body': !isTable }\"\n (vsChange)=\"onVirtualScrollerChange($event)\" (vsChildRectChange)=\"onChildRectChange($event)\">\n <ng-container *ngFor=\"let item of scroller.viewPortItems; let index = index; let isFirst = first;\">\n <ng-container *ngTemplateOutlet=\"listData; context: {item: item, index:index}\"></ng-container>\n </ng-container>\n </virtual-scroller>\n\n <pep-list-pager *ngIf=\"pagerType === 'pages'\" class=\" list-pager\" [disabled]=\"loadingItemsFromApi\"\n [length]=\"totalRows\" [pageSize]=\"pageSize\" [pageIndex]=\"pageIndex\" (pagerChange)=\"onPagerChange($event)\">\n </pep-list-pager>\n\n <ng-container *ngTemplateOutlet=\"tableTotal\"></ng-container>\n</ng-container>\n\n<ng-template #listData let-item=\"item\" let-index=\"index\">\n <ng-container *ngIf=\"isTable\">\n <!-- getIsItemSelected(item) -> item | isItemSelected: selectionTypeForActions : selectedItemId : isAllSelected : selectedItems : unSelectedItems -->\n <div class=\"table-row\" (mouseenter)=\"onTableRowMouseEnter($event, item?.UID, item?.Type)\" \n (mouseleave)=\"onTableRowMouseLeave($event, item?.UID, item?.Type)\" [ngClass]=\"{\n 'compact-view': tableViewType === 'compact',\n even: zebraStripes && index % 2 !== 0,\n selected: getIsItemSelected(item),\n highlighted: item?.UID + SEPARATOR + item?.Type === selectedItemId}\" [ngStyle]=\"{ visibility: !loadingItemsFromApi || item ? 'visible' : 'hidden' }\">\n <fieldset class=\"table-row-fieldset\" [ngStyle]=\"{ 'background-color': item?.BackgroundColor }\">\n <mat-checkbox *ngIf=\"selectionTypeForActions == 'multi'\" type=\"checkbox\"\n class=\"pull-left flip row-selection\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n [disabled]=\"item | isItemDisabled: lockItemInnerEvents : printMode\" [ngStyle]=\"{\n visibility: !deviceHasMouse ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId || isAllSelected || selectedItems.size > 0 ? 'visible' : 'hidden'\n }\" [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-checkbox>\n <mat-radio-button *ngIf=\"selectionTypeForActions == 'single'\" name=\"selection\"\n class=\"pull-left flip row-selection pep-radio-button\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n [disabled]=\"item | isItemDisabled: lockItemInnerEvents : printMode\"\n [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-radio-button>\n <pep-form [layoutType]=\"'table'\" [checkForChanges]=\"checkForChanges\" [layout]=\"layout\"\n [firstFieldAsLink]=\"firstFieldAsLink\" [data]=\"item\" [canEditObject]=\"!disabled\"\n [lockEvents]=\"lockItemInnerEvents || printMode\" [isReport]=\"isReport\" [isActive]=\"\n (item?.UID + SEPARATOR + item?.Type === selectedItemId ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId) && deviceHasMouse\n \" (valueChange)=\"onValueChanged($event)\" (fieldClick)=\"onCustomizeFieldClick($event)\"\n (click)=\"itemClicked($event, item)\">\n </pep-form>\n </fieldset>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!isTable\">\n <div (mouseenter)=\"onCardMouseEnter($event, item?.UID, item?.Type)\"\n (mouseleave)=\"onCardMouseLeave($event, item?.UID, item?.Type)\" [ngClass]=\"{\n selected: getIsItemSelected(item),\n highlighted: item?.UID + SEPARATOR + item?.Type === selectedItemId,\n 'line-view': viewType === 'lines',\n 'card-view': viewType === 'cards',\n 'small-card': cardSize === 'sm'\n }\" class=\"pull-left flip\"\n [ngStyle]=\"{ height: 'initial', visibility: !loadingItemsFromApi || item ? 'visible' : 'hidden' }\">\n <mat-checkbox *ngIf=\"showCardSelection\" class=\"pull-left flip card-selection\"\n [disabled]=\"item | isItemDisabled: lockItemInnerEvents : printMode\" [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-checkbox>\n <pep-form [layoutType]=\"'card'\" [firstFieldAsLink]=\"firstFieldAsLink\" [checkForChanges]=\"checkForChanges\"\n [layout]=\"layout\" [data]=\"item\" [canEditObject]=\"!disabled\"\n [lockEvents]=\"lockItemInnerEvents || printMode\" [isActive]=\"\n (item?.UID + SEPARATOR + item?.Type === selectedItemId ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId) && deviceHasMouse\n \" (valueChange)=\"onValueChanged($event)\" (fieldClick)=\"onCustomizeFieldClick($event)\"\n (click)=\"itemClicked($event, item)\">\n </pep-form>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #tableHeader>\n <div *ngIf=\"isTable\" class=\"table-header\" (mouseup)=\"onListResizeEnd($event)\"\n (mouseenter)=\"onListHeaderMouseEnter($event)\" (mouseleave)=\"onListHeaderMouseLeave($event)\"\n (mousemove)=\"onListResize($event)\">\n\n <div class=\"table-header-padding-top\"></div>\n <fieldset class=\"table-header-fieldset\">\n <mat-checkbox *ngIf=\"selectionTypeForActions !== 'none'\" #selectAllCB class=\"pull-left flip row-selection\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n type=\"checkbox\" [ngStyle]=\"{\n visibility:\n selectionTypeForActions == 'single' || \n (selectionTypeForActions == 'multi' && hideAllSelectionInMulti) ? 'hidden' : 'visible'\n }\"\n [indeterminate]=\"isAllSelected ? unSelectedItems.size > 0 && unSelectedItems.size < totalRows : (selectedItems.size > 0 && !getIsAllSelectedForActions())\"\n [disabled]=\"disabled || selectionTypeForActions === 'single'\" [checked]=\"getIsAllSelectedForActions()\"\n (change)=\"selectAllItemsForActions($event)\"></mat-checkbox>\n <fieldset>\n <div *ngFor=\"let field of layout?.ControlFields; let j = index\" class=\"header-column pull-left flip\"\n [ngStyle]=\"{ width: field.calcTitleColumnWidthString }\" [ngClass]=\"{\n 'compact-view': tableViewType === 'compact',\n 'support-sorting': supportSorting,\n 'has-sorting': field.ApiName === sortBy,\n 'is-resizing': field.ApiName === pressedColumn,\n 'is-first': j === 0 && selectionTypeForActions !== 'multi',\n 'is-last': j === layout?.ControlFields?.length - 1\n }\"\n (click)=\"supportSorting ? (onListSortingChange(field.ApiName, sortBy !== null && sortBy != field.ApiName ? true : !isAsc, $event)) : false\">\n\n <label id=\"{{ field.ApiName }}\"\n class=\"header-label body-sm pull-left flip text-align-{{ field.Layout.XAlignment }}\"\n title=\"{{ field.Title }}\">\n <span *ngIf=\"field.Mandatory\" class=\"mandatory\">\n <pep-icon name=\"system_must\"></pep-icon>\n </span>\n {{ field.Title != '' ? field.Title : ' '}}\n </label>\n\n <div *ngIf=\"supportResizing\" class=\"resize-box pull-right flip\"\n (mousedown)=\"onListResizeStart($event, field.ApiName)\">\n <div class=\"splitter\"></div>\n </div>\n\n <div *ngIf=\"supportSorting\" class=\"sorting-box pull-left flip\"\n [ngClass]=\"{ 'has-sorting': field.ApiName === sortBy }\">\n <mat-icon *ngIf=\"field.ApiName !== sortBy\">\n <pep-icon name=\"arrow_either\" class=\"asc\"></pep-icon>\n </mat-icon>\n <ng-container *ngIf=\"field.ApiName === sortBy\">\n <mat-icon *ngIf=\"!isAsc\" [ngClass]=\"{ 'sort-by': field.ApiName === sortBy && isAsc }\"\n title=\"{{ 'LIST.SORT_ASC' | translate }}\">\n <pep-icon name=\"arrow_up\" class=\"asc\"></pep-icon>\n </mat-icon>\n <mat-icon *ngIf=\"isAsc\" [ngClass]=\"{ 'sort-by': field.ApiName === sortBy && !isAsc }\"\n title=\"{{ 'LIST.SORT_DESC' | translate }}\">\n <pep-icon name=\"arrow_down\" class=\"desc\"></pep-icon>\n </mat-icon>\n </ng-container>\n </div>\n </div>\n </fieldset>\n </fieldset>\n </div>\n</ng-template>\n\n<ng-template #tableTotal>\n <div *ngIf=\"isTable && totalsRow?.length > 0 && totalsRow.length <= layout?.ControlFields.length\"\n class=\"table-total\">\n <fieldset class=\"table-header-fieldset\">\n <div *ngFor=\"let field of layout?.ControlFields; let j = index\" class=\"total-column pull-left flip\"\n [ngStyle]=\"{ width: field.calcTitleColumnWidthString }\">\n <label class=\"total-label body-sm text-align-{{ field.Layout.XAlignment }}\">\n {{ totalsRow[j] }}\n </label>\n </div>\n </fieldset>\n </div>\n</ng-template>", styles: [":host{height:inherit;display:flex;flex-direction:column}.no-data{margin:var(--pep-spacing-2xl, 2rem) 0}.no-data-suggestions .suggestions-title{margin:var(--pep-spacing-lg, 1rem) 0 var(--pep-spacing-sm, .5rem)}.no-data-suggestions .suggestions-list{margin:0;padding:0;padding-inline-start:var(--pep-spacing-2xl, 2rem)}.virtual-scroller{min-height:5rem;height:inherit}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i4$1.MatRadioButton, selector: "mat-radio-button", inputs: ["disableRipple", "tabIndex"], exportAs: ["matRadioButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i5.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }, { kind: "component", type: i7.PepFormComponent, selector: "pep-form", inputs: ["isInternal", "isReport", "layout", "lockEvents", "canEditObject", "data", "lockFields", "isActive", "layoutType", "objectId", "parentId", "searchCode", "showTitle", "firstFieldAsLink", "checkForChanges"], outputs: ["valueChange", "formValidationChange", "fieldClick", "internalFormFieldClick", "internalFormFieldChange"] }, { kind: "component", type: VirtualScrollerComponent, selector: "virtual-scroller,[virtualScroller]", inputs: ["disable", "executeRefreshOutsideAngularZone", "enableUnequalChildrenSizes", "RTL", "useMarginInsteadOfTranslate", "modifyOverflowStyleOfParentScroll", "stripedTable", "scrollbarWidth", "scrollbarHeight", "childWidth", "childHeight", "ssrChildWidth", "ssrChildHeight", "ssrViewportWidth", "ssrViewportHeight", "bufferAmount", "scrollAnimationTime", "resizeBypassRefreshThreshold", "scrollThrottlingTime", "scrollDebounceTime", "checkResizeInterval", "items", "compareItems", "horizontal", "parentScroll"], outputs: ["vsChildRectChange", "vsUpdate", "vsChange", "vsStart", "vsEnd"], exportAs: ["virtualScroller"] }, { kind: "component", type: PepListPagerComponent, selector: "pep-list-pager", inputs: ["disabled", "pageIndex", "length", "pageSize"], outputs: ["pagerChange"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }, { kind: "pipe", type: IsItemDisabledPipe, name: "isItemDisabled" }] });
|
|
2327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListComponent, decorators: [{
|
|
2328
|
+
type: Component,
|
|
2329
|
+
args: [{ selector: 'pep-list', host: {
|
|
2330
|
+
'(window:resize)': 'onWinResize($event)',
|
|
2331
|
+
}, template: "<ng-container *ngIf=\"totalRows == 0\">\n <ng-container *ngIf=\"noDataFoundMsg; then noDataMsgInputBlock; else noDataMsgDefaultBlock\"></ng-container>\n <ng-template #noDataMsgInputBlock>\n <div class=\"pep-border-bottom\">\n <p class=\"title-xl no-data\">\n {{ noDataFoundMsg }}\n </p>\n </div>\n </ng-template>\n <ng-template #noDataMsgDefaultBlock>\n <div class=\"pep-border-bottom\">\n <p class=\"title-xl no-data\">\n {{ 'LIST.NO_DATA_FOUND' | translate}}\n </p>\n </div>\n <div class=\"no-data-suggestions\">\n <p class=\"suggestions-title title-lg\">\n {{ 'LIST.NO_DATA_FOUND_SUGGESTIONS_TITLE' | translate}}\n </p>\n <ul class=\"suggestions-list body-lg\" [innerHtml]=\"'LIST.NO_DATA_FOUND_SUGGESTIONS_LIST' | translate\"></ul>\n </div>\n </ng-template>\n</ng-container>\n<ng-container *ngIf=\"totalRows > 0\">\n <ng-container *ngTemplateOutlet=\"tableHeader\"></ng-container>\n\n <virtual-scroller #scroller [items]=\"pagerType === 'pages' ? currentPageItems : items\"\n [scrollDebounceTime]=\"scrollDebounceTime\" [scrollThrottlingTime]=\"scrollThrottlingTime\"\n [bufferAmount]=\"printMode ? totalRows : -1\" [parentScroll]=\"parentScroll\" [disable]=\"loadingItemsFromApi\"\n class=\"virtual-scroller\" [ngClass]=\"{ 'table-body': isTable, 'cards-body': !isTable }\"\n (vsChange)=\"onVirtualScrollerChange($event)\" (vsChildRectChange)=\"onChildRectChange($event)\">\n <ng-container *ngFor=\"let item of scroller.viewPortItems; let index = index; let isFirst = first;\">\n <ng-container *ngTemplateOutlet=\"listData; context: {item: item, index:index}\"></ng-container>\n </ng-container>\n </virtual-scroller>\n\n <pep-list-pager *ngIf=\"pagerType === 'pages'\" class=\" list-pager\" [disabled]=\"loadingItemsFromApi\"\n [length]=\"totalRows\" [pageSize]=\"pageSize\" [pageIndex]=\"pageIndex\" (pagerChange)=\"onPagerChange($event)\">\n </pep-list-pager>\n\n <ng-container *ngTemplateOutlet=\"tableTotal\"></ng-container>\n</ng-container>\n\n<ng-template #listData let-item=\"item\" let-index=\"index\">\n <ng-container *ngIf=\"isTable\">\n <!-- getIsItemSelected(item) -> item | isItemSelected: selectionTypeForActions : selectedItemId : isAllSelected : selectedItems : unSelectedItems -->\n <div class=\"table-row\" (mouseenter)=\"onTableRowMouseEnter($event, item?.UID, item?.Type)\" \n (mouseleave)=\"onTableRowMouseLeave($event, item?.UID, item?.Type)\" [ngClass]=\"{\n 'compact-view': tableViewType === 'compact',\n even: zebraStripes && index % 2 !== 0,\n selected: getIsItemSelected(item),\n highlighted: item?.UID + SEPARATOR + item?.Type === selectedItemId}\" [ngStyle]=\"{ visibility: !loadingItemsFromApi || item ? 'visible' : 'hidden' }\">\n <fieldset class=\"table-row-fieldset\" [ngStyle]=\"{ 'background-color': item?.BackgroundColor }\">\n <mat-checkbox *ngIf=\"selectionTypeForActions == 'multi'\" type=\"checkbox\"\n class=\"pull-left flip row-selection\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n [disabled]=\"item | isItemDisabled: lockItemInnerEvents : printMode\" [ngStyle]=\"{\n visibility: !deviceHasMouse ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId || isAllSelected || selectedItems.size > 0 ? 'visible' : 'hidden'\n }\" [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-checkbox>\n <mat-radio-button *ngIf=\"selectionTypeForActions == 'single'\" name=\"selection\"\n class=\"pull-left flip row-selection pep-radio-button\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n [disabled]=\"item | isItemDisabled: lockItemInnerEvents : printMode\"\n [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-radio-button>\n <pep-form [layoutType]=\"'table'\" [checkForChanges]=\"checkForChanges\" [layout]=\"layout\"\n [firstFieldAsLink]=\"firstFieldAsLink\" [data]=\"item\" [canEditObject]=\"!disabled\"\n [lockEvents]=\"lockItemInnerEvents || printMode\" [isReport]=\"isReport\" [isActive]=\"\n (item?.UID + SEPARATOR + item?.Type === selectedItemId ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId) && deviceHasMouse\n \" (valueChange)=\"onValueChanged($event)\" (fieldClick)=\"onCustomizeFieldClick($event)\"\n (click)=\"itemClicked($event, item)\">\n </pep-form>\n </fieldset>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"!isTable\">\n <div (mouseenter)=\"onCardMouseEnter($event, item?.UID, item?.Type)\"\n (mouseleave)=\"onCardMouseLeave($event, item?.UID, item?.Type)\" [ngClass]=\"{\n selected: getIsItemSelected(item),\n highlighted: item?.UID + SEPARATOR + item?.Type === selectedItemId,\n 'line-view': viewType === 'lines',\n 'card-view': viewType === 'cards',\n 'small-card': cardSize === 'sm'\n }\" class=\"pull-left flip\"\n [ngStyle]=\"{ height: 'initial', visibility: !loadingItemsFromApi || item ? 'visible' : 'hidden' }\">\n <mat-checkbox *ngIf=\"showCardSelection\" class=\"pull-left flip card-selection\"\n [disabled]=\"item | isItemDisabled: lockItemInnerEvents : printMode\" [checked]=\"getIsItemSelected(item)\"\n (change)=\"selectItemForActions($event, item?.UID, item?.IsSelectableForActions, item?.Type)\">\n </mat-checkbox>\n <pep-form [layoutType]=\"'card'\" [firstFieldAsLink]=\"firstFieldAsLink\" [checkForChanges]=\"checkForChanges\"\n [layout]=\"layout\" [data]=\"item\" [canEditObject]=\"!disabled\"\n [lockEvents]=\"lockItemInnerEvents || printMode\" [isActive]=\"\n (item?.UID + SEPARATOR + item?.Type === selectedItemId ||\n item?.UID + SEPARATOR + item?.Type === hoveredItemId) && deviceHasMouse\n \" (valueChange)=\"onValueChanged($event)\" (fieldClick)=\"onCustomizeFieldClick($event)\"\n (click)=\"itemClicked($event, item)\">\n </pep-form>\n </div>\n </ng-container>\n</ng-template>\n\n<ng-template #tableHeader>\n <div *ngIf=\"isTable\" class=\"table-header\" (mouseup)=\"onListResizeEnd($event)\"\n (mouseenter)=\"onListHeaderMouseEnter($event)\" (mouseleave)=\"onListHeaderMouseLeave($event)\"\n (mousemove)=\"onListResize($event)\">\n\n <div class=\"table-header-padding-top\"></div>\n <fieldset class=\"table-header-fieldset\">\n <mat-checkbox *ngIf=\"selectionTypeForActions !== 'none'\" #selectAllCB class=\"pull-left flip row-selection\" [ngClass]=\"{ 'md': tableViewType === 'compact' }\"\n type=\"checkbox\" [ngStyle]=\"{\n visibility:\n selectionTypeForActions == 'single' || \n (selectionTypeForActions == 'multi' && hideAllSelectionInMulti) ? 'hidden' : 'visible'\n }\"\n [indeterminate]=\"isAllSelected ? unSelectedItems.size > 0 && unSelectedItems.size < totalRows : (selectedItems.size > 0 && !getIsAllSelectedForActions())\"\n [disabled]=\"disabled || selectionTypeForActions === 'single'\" [checked]=\"getIsAllSelectedForActions()\"\n (change)=\"selectAllItemsForActions($event)\"></mat-checkbox>\n <fieldset>\n <div *ngFor=\"let field of layout?.ControlFields; let j = index\" class=\"header-column pull-left flip\"\n [ngStyle]=\"{ width: field.calcTitleColumnWidthString }\" [ngClass]=\"{\n 'compact-view': tableViewType === 'compact',\n 'support-sorting': supportSorting,\n 'has-sorting': field.ApiName === sortBy,\n 'is-resizing': field.ApiName === pressedColumn,\n 'is-first': j === 0 && selectionTypeForActions !== 'multi',\n 'is-last': j === layout?.ControlFields?.length - 1\n }\"\n (click)=\"supportSorting ? (onListSortingChange(field.ApiName, sortBy !== null && sortBy != field.ApiName ? true : !isAsc, $event)) : false\">\n\n <label id=\"{{ field.ApiName }}\"\n class=\"header-label body-sm pull-left flip text-align-{{ field.Layout.XAlignment }}\"\n title=\"{{ field.Title }}\">\n <span *ngIf=\"field.Mandatory\" class=\"mandatory\">\n <pep-icon name=\"system_must\"></pep-icon>\n </span>\n {{ field.Title != '' ? field.Title : ' '}}\n </label>\n\n <div *ngIf=\"supportResizing\" class=\"resize-box pull-right flip\"\n (mousedown)=\"onListResizeStart($event, field.ApiName)\">\n <div class=\"splitter\"></div>\n </div>\n\n <div *ngIf=\"supportSorting\" class=\"sorting-box pull-left flip\"\n [ngClass]=\"{ 'has-sorting': field.ApiName === sortBy }\">\n <mat-icon *ngIf=\"field.ApiName !== sortBy\">\n <pep-icon name=\"arrow_either\" class=\"asc\"></pep-icon>\n </mat-icon>\n <ng-container *ngIf=\"field.ApiName === sortBy\">\n <mat-icon *ngIf=\"!isAsc\" [ngClass]=\"{ 'sort-by': field.ApiName === sortBy && isAsc }\"\n title=\"{{ 'LIST.SORT_ASC' | translate }}\">\n <pep-icon name=\"arrow_up\" class=\"asc\"></pep-icon>\n </mat-icon>\n <mat-icon *ngIf=\"isAsc\" [ngClass]=\"{ 'sort-by': field.ApiName === sortBy && !isAsc }\"\n title=\"{{ 'LIST.SORT_DESC' | translate }}\">\n <pep-icon name=\"arrow_down\" class=\"desc\"></pep-icon>\n </mat-icon>\n </ng-container>\n </div>\n </div>\n </fieldset>\n </fieldset>\n </div>\n</ng-template>\n\n<ng-template #tableTotal>\n <div *ngIf=\"isTable && totalsRow?.length > 0 && totalsRow.length <= layout?.ControlFields.length\"\n class=\"table-total\">\n <fieldset class=\"table-header-fieldset\">\n <div *ngFor=\"let field of layout?.ControlFields; let j = index\" class=\"total-column pull-left flip\"\n [ngStyle]=\"{ width: field.calcTitleColumnWidthString }\">\n <label class=\"total-label body-sm text-align-{{ field.Layout.XAlignment }}\">\n {{ totalsRow[j] }}\n </label>\n </div>\n </fieldset>\n </div>\n</ng-template>", styles: [":host{height:inherit;display:flex;flex-direction:column}.no-data{margin:var(--pep-spacing-2xl, 2rem) 0}.no-data-suggestions .suggestions-title{margin:var(--pep-spacing-lg, 1rem) 0 var(--pep-spacing-sm, .5rem)}.no-data-suggestions .suggestions-list{margin:0;padding:0;padding-inline-start:var(--pep-spacing-2xl, 2rem)}.virtual-scroller{min-height:5rem;height:inherit}\n"] }]
|
|
2332
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1.PepLayoutService }, { type: i1.PepSessionService }, { type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: i0.NgZone }]; }, propDecorators: { noDataFoundMsg: [{
|
|
2333
|
+
type: Input
|
|
2334
|
+
}], selectionTypeForActions: [{
|
|
2335
|
+
type: Input
|
|
2336
|
+
}], showCardSelection: [{
|
|
2337
|
+
type: Input
|
|
2338
|
+
}], hideAllSelectionInMulti: [{
|
|
2339
|
+
type: Input
|
|
2340
|
+
}], cardSize: [{
|
|
2341
|
+
type: Input
|
|
2342
|
+
}], tableViewType: [{
|
|
2343
|
+
type: Input
|
|
2344
|
+
}], viewType: [{
|
|
2345
|
+
type: Input
|
|
2346
|
+
}], firstFieldAsLink: [{
|
|
2347
|
+
type: Input
|
|
2348
|
+
}], supportSorting: [{
|
|
2349
|
+
type: Input
|
|
2350
|
+
}], supportResizing: [{
|
|
2351
|
+
type: Input
|
|
2352
|
+
}], parentScroll: [{
|
|
2353
|
+
type: Input
|
|
2354
|
+
}], disabled: [{
|
|
2355
|
+
type: Input
|
|
2356
|
+
}], lockEvents: [{
|
|
2357
|
+
type: Input
|
|
2358
|
+
}], lockItemInnerEvents: [{
|
|
2359
|
+
type: Input
|
|
2360
|
+
}], printMode: [{
|
|
2361
|
+
type: Input
|
|
2362
|
+
}], isReport: [{
|
|
2363
|
+
type: Input
|
|
2364
|
+
}], zebraStripes: [{
|
|
2365
|
+
type: Input
|
|
2366
|
+
}], totalsRow: [{
|
|
2367
|
+
type: Input
|
|
2368
|
+
}], pagerType: [{
|
|
2369
|
+
type: Input
|
|
2370
|
+
}], pageSize: [{
|
|
2371
|
+
type: Input
|
|
2372
|
+
}], pageIndex: [{
|
|
2373
|
+
type: Input
|
|
2374
|
+
}], scrollAnimationTime: [{
|
|
2375
|
+
type: Input
|
|
2376
|
+
}], scrollDebounceTime: [{
|
|
2377
|
+
type: Input
|
|
2378
|
+
}], scrollThrottlingTime: [{
|
|
2379
|
+
type: Input
|
|
2380
|
+
}], useAsWebComponent: [{
|
|
2381
|
+
type: Input
|
|
2382
|
+
}], itemClick: [{
|
|
2383
|
+
type: Output
|
|
2384
|
+
}], fieldClick: [{
|
|
2385
|
+
type: Output
|
|
2386
|
+
}], valueChange: [{
|
|
2387
|
+
type: Output
|
|
2388
|
+
}], sortingChange: [{
|
|
2389
|
+
type: Output
|
|
2390
|
+
}], selectedItemsChange: [{
|
|
2391
|
+
type: Output
|
|
2392
|
+
}], selectedItemChange: [{
|
|
2393
|
+
type: Output
|
|
2394
|
+
}], selectAllClick: [{
|
|
2395
|
+
type: Output
|
|
2396
|
+
}], listLoad: [{
|
|
2397
|
+
type: Output
|
|
2398
|
+
}], loadItems: [{
|
|
2399
|
+
type: Output
|
|
2400
|
+
}], loadPage: [{
|
|
2401
|
+
type: Output
|
|
2402
|
+
}], startIndexChange: [{
|
|
2403
|
+
type: Output
|
|
2404
|
+
}], virtualScroller: [{
|
|
2405
|
+
type: ViewChild,
|
|
2406
|
+
args: [VirtualScrollerComponent]
|
|
2407
|
+
}], selectAllCB: [{
|
|
2408
|
+
type: ViewChild,
|
|
2409
|
+
args: ['selectAllCB']
|
|
2410
|
+
}] } });
|
|
2411
|
+
|
|
2412
|
+
class PepListActionsComponent {
|
|
2413
|
+
constructor() {
|
|
2414
|
+
this.actions = null;
|
|
2415
|
+
this.sizeType = 'md';
|
|
2416
|
+
this.xPosition = 'before';
|
|
2417
|
+
this.hidden = false;
|
|
2418
|
+
this.actionClick = new EventEmitter();
|
|
2419
|
+
this.stateChange = new EventEmitter();
|
|
2420
|
+
this.menuClick = new EventEmitter();
|
|
2421
|
+
}
|
|
2422
|
+
onActionClicked(action) {
|
|
2423
|
+
this.actionClick.emit(action);
|
|
2424
|
+
}
|
|
2425
|
+
onStateChanged(menuStateChangeEvent) {
|
|
2426
|
+
this.stateChange.emit(menuStateChangeEvent);
|
|
2427
|
+
}
|
|
2428
|
+
}
|
|
2429
|
+
PepListActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListActionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2430
|
+
PepListActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepListActionsComponent, selector: "pep-list-actions", inputs: { actions: "actions", sizeType: "sizeType", xPosition: "xPosition", hidden: "hidden" }, outputs: { actionClick: "actionClick", stateChange: "stateChange", menuClick: "menuClick" }, ngImport: i0, template: "<pep-menu [xPosition]=\"xPosition\" [styleType]=\"'strong'\" [sizeType]=\"sizeType\" [items]=\"!hidden ? actions : null\"\n [hideOnEmptyItems]=\"true\" [iconName]=\"'system_edit'\" (menuItemClick)=\"onActionClicked($event)\"\n (stateChange)=\"onStateChanged($event)\" (menuClick)=\"menuClick.emit();\">\n</pep-menu>\n", styles: [""], dependencies: [{ kind: "component", type: i1$1.PepMenuComponent, selector: "pep-menu", inputs: ["text", "iconName", "type", "styleType", "sizeType", "classNames", "xPosition", "hideOnEmptyItems", "items", "selectedItem", "disabled"], outputs: ["stateChange", "menuItemClick", "menuClick"] }] });
|
|
2431
|
+
PepListActionsComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListActionsComponent });
|
|
2432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListActionsComponent, decorators: [{
|
|
2433
|
+
type: Component,
|
|
2434
|
+
args: [{ selector: 'pep-list-actions', template: "<pep-menu [xPosition]=\"xPosition\" [styleType]=\"'strong'\" [sizeType]=\"sizeType\" [items]=\"!hidden ? actions : null\"\n [hideOnEmptyItems]=\"true\" [iconName]=\"'system_edit'\" (menuItemClick)=\"onActionClicked($event)\"\n (stateChange)=\"onStateChanged($event)\" (menuClick)=\"menuClick.emit();\">\n</pep-menu>\n" }]
|
|
2435
|
+
}, {
|
|
2436
|
+
type: Injectable
|
|
2437
|
+
}], propDecorators: { actions: [{
|
|
2438
|
+
type: Input
|
|
2439
|
+
}], sizeType: [{
|
|
2440
|
+
type: Input
|
|
2441
|
+
}], xPosition: [{
|
|
2442
|
+
type: Input
|
|
2443
|
+
}], hidden: [{
|
|
2444
|
+
type: Input
|
|
2445
|
+
}], actionClick: [{
|
|
2446
|
+
type: Output
|
|
2447
|
+
}], stateChange: [{
|
|
2448
|
+
type: Output
|
|
2449
|
+
}], menuClick: [{
|
|
2450
|
+
type: Output
|
|
2451
|
+
}] } });
|
|
2452
|
+
|
|
2453
|
+
class PepListCarouselComponent {
|
|
2454
|
+
// deviceHasMouse = false;
|
|
2455
|
+
constructor(layoutService) {
|
|
2456
|
+
this.layoutService = layoutService;
|
|
2457
|
+
this.duration = 1000;
|
|
2458
|
+
this.layout = null;
|
|
2459
|
+
this.itemsToMove = 3;
|
|
2460
|
+
this.lockItemInnerEvents = true;
|
|
2461
|
+
this.hideArrowsInSmallScreen = true;
|
|
2462
|
+
this._items = null;
|
|
2463
|
+
this._itemSize = 'xs';
|
|
2464
|
+
this.itemClick = new EventEmitter();
|
|
2465
|
+
this.prevDisabled = false;
|
|
2466
|
+
this.nextDisabled = false;
|
|
2467
|
+
this.PepScreenSizeType = PepScreenSizeType;
|
|
2468
|
+
// this.deviceHasMouse = this.layoutService.getDeviceHasMouse();
|
|
2469
|
+
}
|
|
2470
|
+
set items(value) {
|
|
2471
|
+
this._items = value;
|
|
2472
|
+
this.moveTo(0);
|
|
2473
|
+
}
|
|
2474
|
+
get items() {
|
|
2475
|
+
return this._items;
|
|
2476
|
+
}
|
|
2477
|
+
set itemSize(value) {
|
|
2478
|
+
this._itemSize = value;
|
|
2479
|
+
this.moveTo(0);
|
|
2480
|
+
}
|
|
2481
|
+
get itemSize() {
|
|
2482
|
+
return this._itemSize;
|
|
2483
|
+
}
|
|
2484
|
+
ngAfterViewInit() {
|
|
2485
|
+
this.layoutService.onResize$.subscribe((size) => {
|
|
2486
|
+
this.screenSize = size;
|
|
2487
|
+
});
|
|
2488
|
+
// this.layoutService.onMouseOver$.subscribe((deviceHasMouse: boolean) => {
|
|
2489
|
+
// this.deviceHasMouse = deviceHasMouse;
|
|
2490
|
+
// });
|
|
2491
|
+
}
|
|
2492
|
+
ngOnDestroy() {
|
|
2493
|
+
// if (this.itemClick) {
|
|
2494
|
+
// this.itemClick.unsubscribe();
|
|
2495
|
+
// }
|
|
2496
|
+
}
|
|
2497
|
+
itemClicked(item) {
|
|
2498
|
+
this.itemClick.emit({ source: item });
|
|
2499
|
+
}
|
|
2500
|
+
moveLeft() {
|
|
2501
|
+
// this.carousel.moveLeft();
|
|
2502
|
+
const indexToMove = Math.max(this.carousel.currIndex - this.itemsToMove, 0);
|
|
2503
|
+
this.moveTo(indexToMove);
|
|
2504
|
+
}
|
|
2505
|
+
moveRight() {
|
|
2506
|
+
// this.carousel.moveRight();
|
|
2507
|
+
const indexToMove = Math.min(this.carousel.currIndex + this.itemsToMove, this.items.length);
|
|
2508
|
+
this.moveTo(indexToMove);
|
|
2509
|
+
}
|
|
2510
|
+
moveTo(index) {
|
|
2511
|
+
if (this.carousel) {
|
|
2512
|
+
this.carousel.moveTo(index);
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
onReachesLeftBound(event) {
|
|
2516
|
+
this.prevDisabled = event;
|
|
2517
|
+
}
|
|
2518
|
+
onReachesRightBound(event) {
|
|
2519
|
+
this.nextDisabled = event;
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
PepListCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListCarouselComponent, deps: [{ token: i1.PepLayoutService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2523
|
+
PepListCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepListCarouselComponent, selector: "pep-list-carousel", inputs: { duration: "duration", layout: "layout", itemsToMove: "itemsToMove", lockItemInnerEvents: "lockItemInnerEvents", hideArrowsInSmallScreen: "hideArrowsInSmallScreen", items: "items", itemSize: "itemSize" }, outputs: { itemClick: "itemClick" }, viewQueries: [{ propertyName: "carousel", first: true, predicate: ["carousel"], descendants: true, read: PepCarouselComponent }], ngImport: i0, template: "<div class=\"carousel-container\">\n <ng-container *ngIf=\"items?.length > 0; then carouselBlock; else emptyBlock\"></ng-container>\n <ng-template #emptyBlock>\n <!-- No items -->\n </ng-template>\n <ng-template #carouselBlock>\n <pep-button *ngIf=\"!(hideArrowsInSmallScreen && screenSize > PepScreenSizeType.SM)\"\n [iconName]=\"'arrow_left_alt'\" [styleType]=\"'regular'\" [disabled]=\"prevDisabled\" (click)=\"moveLeft()\"\n class=\"carousel-arrow start-arrow\">\n </pep-button>\n <pep-carousel #carousel [xWheelEnabled]=\"false\" [snapDuration]=\"duration\"\n (reachesLeftBound)=\"onReachesLeftBound($event)\" (reachesRightBound)=\"onReachesRightBound($event)\">\n <ng-container *ngFor=\"let item of items\">\n <pep-form pepCarouselItem [layout]=\"layout\" [data]=\"item\" [layoutType]=\"'card'\"\n (click)=\"itemClicked(item)\" class=\"card-view \" [lockEvents]=\"lockItemInnerEvents\"\n [ngClass]=\"{ 'x-small-card': itemSize === 'xs', 'small-card': itemSize === 'sm'}\">\n </pep-form>\n </ng-container>\n </pep-carousel>\n <pep-button *ngIf=\"!(hideArrowsInSmallScreen && screenSize > PepScreenSizeType.SM)\"\n [iconName]=\"'arrow_right_alt'\" [styleType]=\"'regular'\" [disabled]=\"nextDisabled\" (click)=\"moveRight()\"\n class=\"carousel-arrow end-arrow\">\n </pep-button>\n </ng-template>\n</div>", styles: [".carousel-container{position:relative;margin:0 calc(var(--pep-spacing-sm, .5rem) * -1);display:grid}.carousel-container .carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:1}.carousel-container .carousel-arrow.start-arrow{left:0}.carousel-container .carousel-arrow.end-arrow{right:0}.carousel-container ::ng-deep .carousel-content .card-view{padding:var(--pep-spacing-sm, .5rem) 0!important}.carousel-container ::ng-deep .carousel-content .card-view:first-child{padding-inline-start:var(--pep-spacing-sm, .5rem)!important}.carousel-container ::ng-deep .carousel-content .card-view:last-child{padding-inline-end:var(--pep-spacing-sm, .5rem)!important}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$2.PepButtonComponent, selector: "pep-button", inputs: ["key", "value", "styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconName", "iconPosition", "visible"], outputs: ["buttonClick"] }, { kind: "component", type: i4$2.PepCarouselComponent, selector: "pep-carousel", inputs: ["scrollbarHidden", "disabled", "xDisabled", "yDisabled", "xWheelEnabled", "dragDisabled", "snapDisabled", "snapOffset", "snapDuration"], outputs: ["dsInitialized", "indexChanged", "reachesLeftBound", "reachesRightBound", "snapAnimationFinished", "dragStart", "dragEnd"] }, { kind: "directive", type: i4$2.PepCarouselItemDirective, selector: "[pepCarouselItem]", inputs: ["dragDisabled"] }, { kind: "component", type: i7.PepFormComponent, selector: "pep-form", inputs: ["isInternal", "isReport", "layout", "lockEvents", "canEditObject", "data", "lockFields", "isActive", "layoutType", "objectId", "parentId", "searchCode", "showTitle", "firstFieldAsLink", "checkForChanges"], outputs: ["valueChange", "formValidationChange", "fieldClick", "internalFormFieldClick", "internalFormFieldChange"] }] });
|
|
2524
|
+
PepListCarouselComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListCarouselComponent });
|
|
2525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListCarouselComponent, decorators: [{
|
|
2526
|
+
type: Component,
|
|
2527
|
+
args: [{ selector: 'pep-list-carousel', template: "<div class=\"carousel-container\">\n <ng-container *ngIf=\"items?.length > 0; then carouselBlock; else emptyBlock\"></ng-container>\n <ng-template #emptyBlock>\n <!-- No items -->\n </ng-template>\n <ng-template #carouselBlock>\n <pep-button *ngIf=\"!(hideArrowsInSmallScreen && screenSize > PepScreenSizeType.SM)\"\n [iconName]=\"'arrow_left_alt'\" [styleType]=\"'regular'\" [disabled]=\"prevDisabled\" (click)=\"moveLeft()\"\n class=\"carousel-arrow start-arrow\">\n </pep-button>\n <pep-carousel #carousel [xWheelEnabled]=\"false\" [snapDuration]=\"duration\"\n (reachesLeftBound)=\"onReachesLeftBound($event)\" (reachesRightBound)=\"onReachesRightBound($event)\">\n <ng-container *ngFor=\"let item of items\">\n <pep-form pepCarouselItem [layout]=\"layout\" [data]=\"item\" [layoutType]=\"'card'\"\n (click)=\"itemClicked(item)\" class=\"card-view \" [lockEvents]=\"lockItemInnerEvents\"\n [ngClass]=\"{ 'x-small-card': itemSize === 'xs', 'small-card': itemSize === 'sm'}\">\n </pep-form>\n </ng-container>\n </pep-carousel>\n <pep-button *ngIf=\"!(hideArrowsInSmallScreen && screenSize > PepScreenSizeType.SM)\"\n [iconName]=\"'arrow_right_alt'\" [styleType]=\"'regular'\" [disabled]=\"nextDisabled\" (click)=\"moveRight()\"\n class=\"carousel-arrow end-arrow\">\n </pep-button>\n </ng-template>\n</div>", styles: [".carousel-container{position:relative;margin:0 calc(var(--pep-spacing-sm, .5rem) * -1);display:grid}.carousel-container .carousel-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:1}.carousel-container .carousel-arrow.start-arrow{left:0}.carousel-container .carousel-arrow.end-arrow{right:0}.carousel-container ::ng-deep .carousel-content .card-view{padding:var(--pep-spacing-sm, .5rem) 0!important}.carousel-container ::ng-deep .carousel-content .card-view:first-child{padding-inline-start:var(--pep-spacing-sm, .5rem)!important}.carousel-container ::ng-deep .carousel-content .card-view:last-child{padding-inline-end:var(--pep-spacing-sm, .5rem)!important}\n"] }]
|
|
2528
|
+
}, {
|
|
2529
|
+
type: Injectable
|
|
2530
|
+
}], ctorParameters: function () { return [{ type: i1.PepLayoutService }]; }, propDecorators: { duration: [{
|
|
2531
|
+
type: Input
|
|
2532
|
+
}], layout: [{
|
|
2533
|
+
type: Input
|
|
2534
|
+
}], itemsToMove: [{
|
|
2535
|
+
type: Input
|
|
2536
|
+
}], lockItemInnerEvents: [{
|
|
2537
|
+
type: Input
|
|
2538
|
+
}], hideArrowsInSmallScreen: [{
|
|
2539
|
+
type: Input
|
|
2540
|
+
}], items: [{
|
|
2541
|
+
type: Input
|
|
2542
|
+
}], itemSize: [{
|
|
2543
|
+
type: Input
|
|
2544
|
+
}], itemClick: [{
|
|
2545
|
+
type: Output
|
|
2546
|
+
}], carousel: [{
|
|
2547
|
+
type: ViewChild,
|
|
2548
|
+
args: ['carousel', { read: PepCarouselComponent }]
|
|
2549
|
+
}] } });
|
|
2550
|
+
|
|
2551
|
+
class IPepListChooserOption {
|
|
2552
|
+
}
|
|
2553
|
+
class PepListChooserComponent {
|
|
2554
|
+
constructor() {
|
|
2555
|
+
this._options = null;
|
|
2556
|
+
this._currentList = null;
|
|
2557
|
+
this.sizeType = 'md';
|
|
2558
|
+
this.change = new EventEmitter();
|
|
2559
|
+
this.breadCrumbsItems = null;
|
|
2560
|
+
this.menuItems = null;
|
|
2561
|
+
this.currentItem = null;
|
|
2562
|
+
}
|
|
2563
|
+
set options(value) {
|
|
2564
|
+
var _a;
|
|
2565
|
+
this._options = value;
|
|
2566
|
+
this.menuItems = value.map((opt) => {
|
|
2567
|
+
return { key: opt.key, text: opt.text };
|
|
2568
|
+
});
|
|
2569
|
+
if (((_a = this.menuItems) === null || _a === void 0 ? void 0 : _a.length) === 1) {
|
|
2570
|
+
this.breadCrumbsItems = [];
|
|
2571
|
+
this.breadCrumbsItems.push(new PepBreadCrumbItem({
|
|
2572
|
+
key: this.menuItems[0].key,
|
|
2573
|
+
text: this.menuItems[0].text,
|
|
2574
|
+
}));
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
get options() {
|
|
2578
|
+
return this._options;
|
|
2579
|
+
}
|
|
2580
|
+
set currentList(value) {
|
|
2581
|
+
this._currentList = value;
|
|
2582
|
+
this.currentItem = this.menuItems.find((mi) => mi.key === value.key);
|
|
2583
|
+
}
|
|
2584
|
+
get currentList() {
|
|
2585
|
+
return this._currentList;
|
|
2586
|
+
}
|
|
2587
|
+
onMenuItemClicked(menuItemClickEvent) {
|
|
2588
|
+
this.currentList = this.options.find((list) => list.key === menuItemClickEvent.source.key);
|
|
2589
|
+
this.change.emit({ source: this.currentList });
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
PepListChooserComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListChooserComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2593
|
+
PepListChooserComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepListChooserComponent, selector: "pep-list-chooser", inputs: { options: "options", currentList: "currentList", sizeType: "sizeType" }, outputs: { change: "change" }, ngImport: i0, template: "<ng-container *ngIf=\"menuItems?.length > 1\">\n <pep-menu [type]=\"'select'\" [sizeType]=\"sizeType\" [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"'arrow_down'\" (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</ng-container>\n<ng-container *ngIf=\"menuItems?.length == 1\">\n <pep-bread-crumbs [items]=\"breadCrumbsItems\" [addSpacing]=\"true\"></pep-bread-crumbs>\n</ng-container>", styles: [""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.PepBreadCrumbsComponent, selector: "pep-bread-crumbs", inputs: ["items", "displayType", "addSpacing"], outputs: ["itemClick"] }, { kind: "component", type: i1$1.PepMenuComponent, selector: "pep-menu", inputs: ["text", "iconName", "type", "styleType", "sizeType", "classNames", "xPosition", "hideOnEmptyItems", "items", "selectedItem", "disabled"], outputs: ["stateChange", "menuItemClick", "menuClick"] }] });
|
|
2594
|
+
PepListChooserComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListChooserComponent });
|
|
2595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListChooserComponent, decorators: [{
|
|
2596
|
+
type: Component,
|
|
2597
|
+
args: [{ selector: 'pep-list-chooser', template: "<ng-container *ngIf=\"menuItems?.length > 1\">\n <pep-menu [type]=\"'select'\" [sizeType]=\"sizeType\" [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"'arrow_down'\" (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</ng-container>\n<ng-container *ngIf=\"menuItems?.length == 1\">\n <pep-bread-crumbs [items]=\"breadCrumbsItems\" [addSpacing]=\"true\"></pep-bread-crumbs>\n</ng-container>" }]
|
|
2598
|
+
}, {
|
|
2599
|
+
type: Injectable
|
|
2600
|
+
}], propDecorators: { options: [{
|
|
2601
|
+
type: Input
|
|
2602
|
+
}], currentList: [{
|
|
2603
|
+
type: Input
|
|
2604
|
+
}], sizeType: [{
|
|
2605
|
+
type: Input
|
|
2606
|
+
}], change: [{
|
|
2607
|
+
type: Output
|
|
2608
|
+
}] } });
|
|
2609
|
+
|
|
2610
|
+
class IPepListSortingOption {
|
|
2611
|
+
}
|
|
2612
|
+
class PepListSortingComponent {
|
|
2613
|
+
constructor() {
|
|
2614
|
+
this._options = null;
|
|
2615
|
+
this._currentSorting = null;
|
|
2616
|
+
this.sizeType = 'md';
|
|
2617
|
+
this.change = new EventEmitter();
|
|
2618
|
+
this.menuItems = null;
|
|
2619
|
+
this.currentItem = null;
|
|
2620
|
+
}
|
|
2621
|
+
set options(value) {
|
|
2622
|
+
this._options = value;
|
|
2623
|
+
this.menuItems = value.map((opt) => {
|
|
2624
|
+
return { key: opt.sortBy, text: opt.title, iconName: opt.iconName };
|
|
2625
|
+
});
|
|
2626
|
+
}
|
|
2627
|
+
get options() {
|
|
2628
|
+
return this._options;
|
|
2629
|
+
}
|
|
2630
|
+
set currentSorting(value) {
|
|
2631
|
+
this._currentSorting = value;
|
|
2632
|
+
this.currentItem = this.menuItems.find((mi) => mi.key === value.sortBy);
|
|
2633
|
+
}
|
|
2634
|
+
get currentSorting() {
|
|
2635
|
+
return this._currentSorting;
|
|
2636
|
+
}
|
|
2637
|
+
ngOnInit() {
|
|
2638
|
+
if (this.currentSorting === null &&
|
|
2639
|
+
this.options &&
|
|
2640
|
+
this.options.length > 0) {
|
|
2641
|
+
this.currentSorting = this.options[0];
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
onMenuItemClicked(menuItemClickEvent) {
|
|
2645
|
+
this.currentSorting = this.options.find((sorting) => sorting.sortBy === menuItemClickEvent.source.key);
|
|
2646
|
+
this.change.emit({ source: this.currentSorting });
|
|
2647
|
+
}
|
|
2648
|
+
}
|
|
2649
|
+
PepListSortingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListSortingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2650
|
+
PepListSortingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepListSortingComponent, selector: "pep-list-sorting", inputs: { options: "options", currentSorting: "currentSorting", sizeType: "sizeType" }, outputs: { change: "change" }, ngImport: i0, template: "<div class=\"sorting-container\">\n <div class=\"body-xs sort-by\">\n <span>{{ 'LIST.SORT_BY' | translate }}</span>\n </div>\n <pep-menu [type]=\"'select'\" [sizeType]=\"sizeType\" [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"'arrow_down'\" (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</div>", styles: [".sorting-container{display:flex;align-items:center}.sorting-container .sort-by{margin-inline-end:var(--pep-spacing-sm, .5rem)}\n"], dependencies: [{ kind: "component", type: i1$1.PepMenuComponent, selector: "pep-menu", inputs: ["text", "iconName", "type", "styleType", "sizeType", "classNames", "xPosition", "hideOnEmptyItems", "items", "selectedItem", "disabled"], outputs: ["stateChange", "menuItemClick", "menuClick"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
|
|
2651
|
+
PepListSortingComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListSortingComponent });
|
|
2652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListSortingComponent, decorators: [{
|
|
2653
|
+
type: Component,
|
|
2654
|
+
args: [{ selector: 'pep-list-sorting', template: "<div class=\"sorting-container\">\n <div class=\"body-xs sort-by\">\n <span>{{ 'LIST.SORT_BY' | translate }}</span>\n </div>\n <pep-menu [type]=\"'select'\" [sizeType]=\"sizeType\" [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"'arrow_down'\" (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</div>", styles: [".sorting-container{display:flex;align-items:center}.sorting-container .sort-by{margin-inline-end:var(--pep-spacing-sm, .5rem)}\n"] }]
|
|
2655
|
+
}, {
|
|
2656
|
+
type: Injectable
|
|
2657
|
+
}], propDecorators: { options: [{
|
|
2658
|
+
type: Input
|
|
2659
|
+
}], currentSorting: [{
|
|
2660
|
+
type: Input
|
|
2661
|
+
}], sizeType: [{
|
|
2662
|
+
type: Input
|
|
2663
|
+
}], change: [{
|
|
2664
|
+
type: Output
|
|
2665
|
+
}] } });
|
|
2666
|
+
|
|
2667
|
+
class PepListTotalComponent {
|
|
2668
|
+
constructor() {
|
|
2669
|
+
this.totalRows = -1;
|
|
2670
|
+
this.totalAmount = -1;
|
|
2671
|
+
this.isMapView = false;
|
|
2672
|
+
this.sizeType = 'md';
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
PepListTotalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListTotalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2676
|
+
PepListTotalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepListTotalComponent, selector: "pep-list-total", inputs: { totalRows: "totalRows", totalAmount: "totalAmount", isMapView: "isMapView", sizeType: "sizeType" }, ngImport: i0, template: "<div class=\"total-items-container\">\n <ng-container *ngIf=\"isMapView; then mapTemplate; else notMapTemplate\"></ng-container>\n\n <ng-template #notMapTemplate>\n <ng-container *ngIf=\"totalRows >= 0\">\n <div class=\"body-{{sizeType}} total-items color-dimmed\"\n [innerHtml]=\"(totalRows === 1 ? 'LIST.TOTAL_RESULT' : 'LIST.TOTAL_RESULTS') | translate: { totalRows: totalRows }\">\n </div>\n </ng-container>\n <ng-container *ngIf=\"totalAmount > 0\"> {{ 'LIST.TOTAL_OF' | translate }} {{ totalAmount }} </ng-container>\n </ng-template>\n\n <ng-template #mapTemplate>\n <ng-container *ngIf=\"totalAmount >= 0\">\n </ng-container>\n <ng-container *ngIf=\"totalRows >= 0\">\n <div class=\"body-{{sizeType}} total-items color-dimmed\"\n [innerHtml]=\"(totalRows === 1 ? 'LIST.TOTAL_RESULT_OUT_OF_RESULT' : 'LIST.TOTAL_RESULTS_OUT_OF') | translate: { xRows: totalAmount, totalRows: totalRows }\">\n </div>\n </ng-container>\n </ng-template>\n</div>", styles: [":host{height:inherit}.total-items-container{height:100%;display:flex;align-items:center}\n", ""], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2$1.TranslatePipe, name: "translate" }] });
|
|
2677
|
+
PepListTotalComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListTotalComponent });
|
|
2678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListTotalComponent, decorators: [{
|
|
2679
|
+
type: Component,
|
|
2680
|
+
args: [{ selector: 'pep-list-total', template: "<div class=\"total-items-container\">\n <ng-container *ngIf=\"isMapView; then mapTemplate; else notMapTemplate\"></ng-container>\n\n <ng-template #notMapTemplate>\n <ng-container *ngIf=\"totalRows >= 0\">\n <div class=\"body-{{sizeType}} total-items color-dimmed\"\n [innerHtml]=\"(totalRows === 1 ? 'LIST.TOTAL_RESULT' : 'LIST.TOTAL_RESULTS') | translate: { totalRows: totalRows }\">\n </div>\n </ng-container>\n <ng-container *ngIf=\"totalAmount > 0\"> {{ 'LIST.TOTAL_OF' | translate }} {{ totalAmount }} </ng-container>\n </ng-template>\n\n <ng-template #mapTemplate>\n <ng-container *ngIf=\"totalAmount >= 0\">\n </ng-container>\n <ng-container *ngIf=\"totalRows >= 0\">\n <div class=\"body-{{sizeType}} total-items color-dimmed\"\n [innerHtml]=\"(totalRows === 1 ? 'LIST.TOTAL_RESULT_OUT_OF_RESULT' : 'LIST.TOTAL_RESULTS_OUT_OF') | translate: { xRows: totalAmount, totalRows: totalRows }\">\n </div>\n </ng-container>\n </ng-template>\n</div>", styles: [":host{height:inherit}.total-items-container{height:100%;display:flex;align-items:center}\n"] }]
|
|
2681
|
+
}, {
|
|
2682
|
+
type: Injectable
|
|
2683
|
+
}], propDecorators: { totalRows: [{
|
|
2684
|
+
type: Input
|
|
2685
|
+
}], totalAmount: [{
|
|
2686
|
+
type: Input
|
|
2687
|
+
}], isMapView: [{
|
|
2688
|
+
type: Input
|
|
2689
|
+
}], sizeType: [{
|
|
2690
|
+
type: Input
|
|
2691
|
+
}] } });
|
|
2692
|
+
|
|
2693
|
+
class IPepListView {
|
|
2694
|
+
}
|
|
2695
|
+
class PepListViewsComponent {
|
|
2696
|
+
constructor() {
|
|
2697
|
+
this._views = null;
|
|
2698
|
+
this._currentView = null;
|
|
2699
|
+
this.displayType = 'menu';
|
|
2700
|
+
this.styleType = 'weak';
|
|
2701
|
+
this.sizeType = 'md';
|
|
2702
|
+
this.classNames = '';
|
|
2703
|
+
this.change = new EventEmitter();
|
|
2704
|
+
this.menuItems = null;
|
|
2705
|
+
this.currentItem = null;
|
|
2706
|
+
}
|
|
2707
|
+
set views(value) {
|
|
2708
|
+
this._views = value;
|
|
2709
|
+
this.menuItems = value.map((opt) => {
|
|
2710
|
+
return { key: opt.key, text: opt.title, iconName: opt.iconName };
|
|
2711
|
+
});
|
|
2712
|
+
}
|
|
2713
|
+
get views() {
|
|
2714
|
+
return this._views;
|
|
2715
|
+
}
|
|
2716
|
+
set currentView(value) {
|
|
2717
|
+
this._currentView = value;
|
|
2718
|
+
if (this.displayType === 'menu') {
|
|
2719
|
+
this.currentItem = this.menuItems.find((mi) => mi.key === value.key);
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
get currentView() {
|
|
2723
|
+
return this._currentView;
|
|
2724
|
+
}
|
|
2725
|
+
ngOnInit() {
|
|
2726
|
+
if (this.displayType === 'buttons') {
|
|
2727
|
+
if (this.currentView === null &&
|
|
2728
|
+
this.views &&
|
|
2729
|
+
this.views.length > 0) {
|
|
2730
|
+
this.currentView = this.views[0];
|
|
2731
|
+
}
|
|
2732
|
+
}
|
|
2733
|
+
}
|
|
2734
|
+
onMenuItemClicked(menuItemClickEvent) {
|
|
2735
|
+
this.currentView = this.views.find((list) => list.key === menuItemClickEvent.source.key);
|
|
2736
|
+
this.raiseChangeEvent();
|
|
2737
|
+
}
|
|
2738
|
+
onViewChanged(view) {
|
|
2739
|
+
this.currentView = view;
|
|
2740
|
+
this.raiseChangeEvent();
|
|
2741
|
+
}
|
|
2742
|
+
raiseChangeEvent() {
|
|
2743
|
+
this.change.emit({ source: this.currentView });
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
PepListViewsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListViewsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2747
|
+
PepListViewsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepListViewsComponent, selector: "pep-list-views", inputs: { views: "views", currentView: "currentView", displayType: "displayType", styleType: "styleType", sizeType: "sizeType", classNames: "classNames" }, outputs: { change: "change" }, ngImport: i0, template: "<ng-container *ngIf=\"displayType === 'menu' then menuTemplate else buttonsTemplate\">\n</ng-container>\n<ng-template #menuTemplate>\n <pep-menu [type]=\"'select'\" [styleType]=\"styleType\" [sizeType]=\"sizeType\" [classNames]=\"classNames\"\n [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"currentItem?.iconName ? currentItem?.iconName : 'arrow_down'\"\n (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</ng-template>\n<ng-template #buttonsTemplate>\n <div class=\"buttons-wrapper pep-spacing-element-negative\">\n <button *ngFor=\"let view of views\" mat-button [title]=\"view.title\" [disabled]=\"view.key === currentView?.key\"\n class=\"pep-button icon-button pep-spacing-element {{ sizeType }} {{ styleType }} {{ classNames }}\"\n pepRtlDirection pepMenuBlur (click)=\"onViewChanged(view)\">\n <mat-icon>\n <pep-icon name=\"{{ view?.iconName }}\"></pep-icon>\n </mat-icon>\n </button>\n </div>\n</ng-template>", styles: [".buttons-wrapper{display:flex}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i1.PepMenuBlurDirective, selector: "[pepMenuBlur]" }, { kind: "directive", type: i1.PepRtlDirectionDirective, selector: "[pepRtlDirection]" }, { kind: "component", type: i5.PepIconComponent, selector: "pep-icon", inputs: ["spin", "name", "fill"] }, { kind: "component", type: i1$1.PepMenuComponent, selector: "pep-menu", inputs: ["text", "iconName", "type", "styleType", "sizeType", "classNames", "xPosition", "hideOnEmptyItems", "items", "selectedItem", "disabled"], outputs: ["stateChange", "menuItemClick", "menuClick"] }] });
|
|
2748
|
+
PepListViewsComponent.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListViewsComponent });
|
|
2749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListViewsComponent, decorators: [{
|
|
2750
|
+
type: Component,
|
|
2751
|
+
args: [{ selector: 'pep-list-views', template: "<ng-container *ngIf=\"displayType === 'menu' then menuTemplate else buttonsTemplate\">\n</ng-container>\n<ng-template #menuTemplate>\n <pep-menu [type]=\"'select'\" [styleType]=\"styleType\" [sizeType]=\"sizeType\" [classNames]=\"classNames\"\n [items]=\"menuItems\" [selectedItem]=\"currentItem\"\n [iconName]=\"currentItem?.iconName ? currentItem?.iconName : 'arrow_down'\"\n (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu>\n</ng-template>\n<ng-template #buttonsTemplate>\n <div class=\"buttons-wrapper pep-spacing-element-negative\">\n <button *ngFor=\"let view of views\" mat-button [title]=\"view.title\" [disabled]=\"view.key === currentView?.key\"\n class=\"pep-button icon-button pep-spacing-element {{ sizeType }} {{ styleType }} {{ classNames }}\"\n pepRtlDirection pepMenuBlur (click)=\"onViewChanged(view)\">\n <mat-icon>\n <pep-icon name=\"{{ view?.iconName }}\"></pep-icon>\n </mat-icon>\n </button>\n </div>\n</ng-template>", styles: [".buttons-wrapper{display:flex}\n"] }]
|
|
2752
|
+
}, {
|
|
2753
|
+
type: Injectable
|
|
2754
|
+
}], propDecorators: { views: [{
|
|
2755
|
+
type: Input
|
|
2756
|
+
}], currentView: [{
|
|
2757
|
+
type: Input
|
|
2758
|
+
}], displayType: [{
|
|
2759
|
+
type: Input
|
|
2760
|
+
}], styleType: [{
|
|
2761
|
+
type: Input
|
|
2762
|
+
}], sizeType: [{
|
|
2763
|
+
type: Input
|
|
2764
|
+
}], classNames: [{
|
|
2765
|
+
type: Input
|
|
2766
|
+
}], change: [{
|
|
2767
|
+
type: Output
|
|
2768
|
+
}] } });
|
|
2769
|
+
|
|
2770
|
+
const listComponents = [
|
|
2771
|
+
// PepListOldComponent,
|
|
2772
|
+
PepListComponent,
|
|
2773
|
+
PepListActionsComponent,
|
|
2774
|
+
PepListCarouselComponent,
|
|
2775
|
+
PepListChooserComponent,
|
|
2776
|
+
PepListPagerComponent,
|
|
2777
|
+
PepListSortingComponent,
|
|
2778
|
+
PepListTotalComponent,
|
|
2779
|
+
PepListViewsComponent,
|
|
2780
|
+
];
|
|
2781
|
+
const listPipes = [
|
|
2782
|
+
IsItemSelectedPipe,
|
|
2783
|
+
IsItemDisabledPipe
|
|
2784
|
+
];
|
|
2785
|
+
// import { PepVirtualScrollComponent } from './virtual-scroll.component';
|
|
2786
|
+
class PepListModule {
|
|
2787
|
+
constructor(pepIconRegistry) {
|
|
2788
|
+
this.pepIconRegistry = pepIconRegistry;
|
|
2789
|
+
this.pepIconRegistry.registerIcons([
|
|
2790
|
+
pepIconArrowDown,
|
|
2791
|
+
pepIconArrowEither,
|
|
2792
|
+
pepIconArrowUp,
|
|
2793
|
+
pepIconSystemMust,
|
|
2794
|
+
pepIconArrowRight,
|
|
2795
|
+
pepIconArrowRightAlt,
|
|
2796
|
+
pepIconArrowLeft,
|
|
2797
|
+
pepIconArrowLeftAlt,
|
|
2798
|
+
]);
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
PepListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListModule, deps: [{ token: i5.PepIconRegistry }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2802
|
+
PepListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepListModule, declarations: [
|
|
2803
|
+
// PepListOldComponent,
|
|
2804
|
+
PepListComponent,
|
|
2805
|
+
PepListActionsComponent,
|
|
2806
|
+
PepListCarouselComponent,
|
|
2807
|
+
PepListChooserComponent,
|
|
2808
|
+
PepListPagerComponent,
|
|
2809
|
+
PepListSortingComponent,
|
|
2810
|
+
PepListTotalComponent,
|
|
2811
|
+
PepListViewsComponent, IsItemSelectedPipe,
|
|
2812
|
+
IsItemDisabledPipe
|
|
2813
|
+
], imports: [CommonModule,
|
|
2814
|
+
// Material modules,
|
|
2815
|
+
MatCommonModule,
|
|
2816
|
+
MatButtonModule,
|
|
2817
|
+
MatCheckboxModule,
|
|
2818
|
+
MatRadioModule,
|
|
2819
|
+
MatIconModule,
|
|
2820
|
+
MatMenuModule,
|
|
2821
|
+
// ngx-lib modules
|
|
2822
|
+
PepNgxLibModule,
|
|
2823
|
+
PepBreadCrumbsModule,
|
|
2824
|
+
PepButtonModule,
|
|
2825
|
+
PepCarouselModule,
|
|
2826
|
+
PepIconModule,
|
|
2827
|
+
PepFormModule,
|
|
2828
|
+
PepMenuModule,
|
|
2829
|
+
PepTextboxModule,
|
|
2830
|
+
VirtualScrollerModule], exports: [
|
|
2831
|
+
// PepListOldComponent,
|
|
2832
|
+
PepListComponent,
|
|
2833
|
+
PepListActionsComponent,
|
|
2834
|
+
PepListCarouselComponent,
|
|
2835
|
+
PepListChooserComponent,
|
|
2836
|
+
PepListPagerComponent,
|
|
2837
|
+
PepListSortingComponent,
|
|
2838
|
+
PepListTotalComponent,
|
|
2839
|
+
PepListViewsComponent
|
|
2840
|
+
] });
|
|
2841
|
+
PepListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListModule, imports: [CommonModule,
|
|
2842
|
+
// Material modules,
|
|
2843
|
+
MatCommonModule,
|
|
2844
|
+
MatButtonModule,
|
|
2845
|
+
MatCheckboxModule,
|
|
2846
|
+
MatRadioModule,
|
|
2847
|
+
MatIconModule,
|
|
2848
|
+
MatMenuModule,
|
|
2849
|
+
// ngx-lib modules
|
|
2850
|
+
PepNgxLibModule,
|
|
2851
|
+
PepBreadCrumbsModule,
|
|
2852
|
+
PepButtonModule,
|
|
2853
|
+
PepCarouselModule,
|
|
2854
|
+
PepIconModule,
|
|
2855
|
+
PepFormModule,
|
|
2856
|
+
PepMenuModule,
|
|
2857
|
+
PepTextboxModule,
|
|
2858
|
+
VirtualScrollerModule] });
|
|
2859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepListModule, decorators: [{
|
|
2860
|
+
type: NgModule,
|
|
2861
|
+
args: [{
|
|
2862
|
+
imports: [
|
|
2863
|
+
CommonModule,
|
|
2864
|
+
// Material modules,
|
|
2865
|
+
MatCommonModule,
|
|
2866
|
+
MatButtonModule,
|
|
2867
|
+
MatCheckboxModule,
|
|
2868
|
+
MatRadioModule,
|
|
2869
|
+
MatIconModule,
|
|
2870
|
+
MatMenuModule,
|
|
2871
|
+
// ngx-lib modules
|
|
2872
|
+
PepNgxLibModule,
|
|
2873
|
+
PepBreadCrumbsModule,
|
|
2874
|
+
PepButtonModule,
|
|
2875
|
+
PepCarouselModule,
|
|
2876
|
+
PepIconModule,
|
|
2877
|
+
PepFormModule,
|
|
2878
|
+
PepMenuModule,
|
|
2879
|
+
PepTextboxModule,
|
|
2880
|
+
VirtualScrollerModule
|
|
2881
|
+
],
|
|
2882
|
+
exports: [listComponents],
|
|
2883
|
+
declarations: [listComponents, listPipes],
|
|
2884
|
+
}]
|
|
2885
|
+
}], ctorParameters: function () { return [{ type: i5.PepIconRegistry }]; } });
|
|
2886
|
+
|
|
2887
|
+
/*
|
|
2888
|
+
* Public API Surface of ngx-lib/list
|
|
2889
|
+
*/
|
|
2890
|
+
|
|
2891
|
+
/**
|
|
2892
|
+
* Generated bundle index. Do not edit.
|
|
2893
|
+
*/
|
|
2894
|
+
|
|
2895
|
+
export { DEFAULT_PAGE_SIZE, IPepListChooserOption, IPepListPagerChangeEvent, IPepListSortingOption, IPepListView, PepListActionsComponent, PepListCarouselComponent, PepListChooserComponent, PepListComponent, PepListModule, PepListPagerComponent, PepListSortingComponent, PepListTotalComponent, PepListViewsComponent, PepSelectionData };
|
|
2896
|
+
//# sourceMappingURL=pepperi-addons-ngx-lib-list.mjs.map
|