@pepperi-addons/ngx-lib 0.3.9-beta.21 → 0.3.9-beta.22
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 +27 -27
- package/address/address.module.d.ts +2 -2
- package/address/pepperi-addons-ngx-lib-address.d.ts +4 -4
- package/address/public-api.d.ts +2 -2
- package/attachment/attachment.component.d.ts +82 -82
- package/attachment/attachment.module.d.ts +2 -2
- package/attachment/pepperi-addons-ngx-lib-attachment.d.ts +4 -4
- package/attachment/public-api.d.ts +2 -2
- package/bread-crumbs/bread-crumbs.component.d.ts +23 -23
- package/bread-crumbs/bread-crumbs.model.d.ts +11 -11
- package/bread-crumbs/bread-crumbs.module.d.ts +5 -5
- package/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.d.ts +4 -4
- package/bread-crumbs/public-api.d.ts +3 -3
- package/bundles/pepperi-addons-ngx-lib-address.umd.js +124 -124
- package/bundles/pepperi-addons-ngx-lib-attachment.umd.js +247 -247
- package/bundles/pepperi-addons-ngx-lib-bread-crumbs.umd.js +121 -121
- package/bundles/pepperi-addons-ngx-lib-button.umd.js +158 -158
- package/bundles/pepperi-addons-ngx-lib-carousel.umd.js +788 -788
- package/bundles/pepperi-addons-ngx-lib-checkbox.umd.js +192 -192
- package/bundles/pepperi-addons-ngx-lib-color.umd.js +296 -296
- package/bundles/pepperi-addons-ngx-lib-date.umd.js +660 -660
- package/bundles/pepperi-addons-ngx-lib-dialog.umd.js +171 -171
- package/bundles/pepperi-addons-ngx-lib-draggable-items.umd.js +151 -151
- package/bundles/pepperi-addons-ngx-lib-field-title.umd.js +57 -57
- package/bundles/pepperi-addons-ngx-lib-files-uploader.umd.js +260 -260
- package/bundles/pepperi-addons-ngx-lib-form.umd.js +3237 -3229
- package/bundles/pepperi-addons-ngx-lib-form.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-group-buttons.umd.js +87 -87
- package/bundles/pepperi-addons-ngx-lib-icon.umd.js +681 -681
- package/bundles/pepperi-addons-ngx-lib-image.umd.js +316 -316
- package/bundles/pepperi-addons-ngx-lib-images-filmstrip.umd.js +413 -413
- package/bundles/pepperi-addons-ngx-lib-link.umd.js +464 -464
- package/bundles/pepperi-addons-ngx-lib-list.umd.js +3187 -3187
- package/bundles/pepperi-addons-ngx-lib-menu.umd.js +646 -646
- package/bundles/pepperi-addons-ngx-lib-page-layout.umd.js +60 -60
- package/bundles/pepperi-addons-ngx-lib-profile-data-views-list.umd.js +543 -543
- package/bundles/pepperi-addons-ngx-lib-quantity-selector.umd.js +914 -914
- package/bundles/pepperi-addons-ngx-lib-query-builder.umd.js +1060 -1060
- package/bundles/pepperi-addons-ngx-lib-rich-html-textarea.umd.js +275 -275
- package/bundles/pepperi-addons-ngx-lib-search.umd.js +326 -326
- package/bundles/pepperi-addons-ngx-lib-select.umd.js +576 -576
- package/bundles/pepperi-addons-ngx-lib-separator.umd.js +79 -79
- package/bundles/pepperi-addons-ngx-lib-side-bar.umd.js +163 -163
- package/bundles/pepperi-addons-ngx-lib-signature.umd.js +283 -283
- package/bundles/pepperi-addons-ngx-lib-size-detector.umd.js +113 -113
- package/bundles/pepperi-addons-ngx-lib-slider.umd.js +124 -124
- package/bundles/pepperi-addons-ngx-lib-smart-filters.umd.js +1780 -1780
- package/bundles/pepperi-addons-ngx-lib-textarea.umd.js +211 -211
- package/bundles/pepperi-addons-ngx-lib-textbox-icon.umd.js +80 -80
- package/bundles/pepperi-addons-ngx-lib-textbox.umd.js +506 -506
- package/bundles/pepperi-addons-ngx-lib-top-bar.umd.js +129 -129
- package/bundles/pepperi-addons-ngx-lib.umd.js +4719 -4719
- package/bundles/pepperi-addons-ngx-lib.umd.js.map +1 -1
- package/button/button.component.d.ts +99 -99
- package/button/button.model.d.ts +14 -14
- package/button/button.module.d.ts +2 -2
- package/button/pepperi-addons-ngx-lib-button.d.ts +4 -4
- package/button/public-api.d.ts +3 -3
- package/carousel/carousel-item.directive.d.ts +9 -9
- package/carousel/carousel.component.d.ts +145 -145
- package/carousel/carousel.module.d.ts +2 -2
- package/carousel/pepperi-addons-ngx-lib-carousel.d.ts +4 -4
- package/carousel/public-api.d.ts +3 -3
- package/checkbox/checkbox.component.d.ts +47 -47
- package/checkbox/checkbox.module.d.ts +5 -5
- package/checkbox/pepperi-addons-ngx-lib-checkbox.d.ts +4 -4
- package/checkbox/public-api.d.ts +2 -2
- package/color/color-picker.component.d.ts +52 -52
- package/color/color.component.d.ts +26 -26
- package/color/color.model.d.ts +1 -1
- package/color/color.module.d.ts +5 -5
- package/color/pepperi-addons-ngx-lib-color.d.ts +5 -5
- package/color/public-api.d.ts +3 -3
- package/core/clipboard/clipboard.directive.d.ts +2 -2
- package/core/clipboard/clipboard.service.d.ts +2 -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 +16 -16
- package/core/common/directives/button-blur.directive.d.ts +6 -6
- package/core/common/directives/button-loader.directive.d.ts +23 -23
- package/core/common/directives/data-qa.directive.d.ts +8 -8
- package/core/common/directives/index.d.ts +1 -1
- package/core/common/directives/menu-blur.directive.d.ts +7 -7
- package/core/common/directives/prevent-multi-click.directive.d.ts +4 -4
- package/core/common/directives/print.directive.d.ts +72 -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 +36 -36
- package/core/common/pipes/index.d.ts +1 -1
- package/core/common/pipes/public-api.d.ts +1 -1
- package/core/common/public-api.d.ts +4 -4
- package/core/common/services/addon.service.d.ts +32 -32
- package/core/common/services/color.service.d.ts +48 -48
- package/core/common/services/cookie.service.d.ts +50 -50
- package/core/common/services/data-convertor.service.d.ts +39 -39
- package/core/common/services/file.service.d.ts +24 -24
- package/core/common/services/index.d.ts +1 -1
- package/core/common/services/jwt-helper.service.d.ts +10 -10
- package/core/common/services/public-api.d.ts +11 -11
- package/core/common/services/session.service.d.ts +15 -15
- package/core/common/services/translate.service.d.ts +9 -9
- package/core/common/services/utilities.service.d.ts +18 -18
- package/core/common/services/validator.service.d.ts +28 -28
- package/core/common/services/window-scrolling.service.d.ts +7 -7
- package/core/customization/customization.model.d.ts +264 -264
- package/core/customization/customization.service.d.ts +155 -155
- 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 +5 -5
- package/core/http/interceptors/index.d.ts +11 -11
- package/core/http/interceptors/loader.interceptor.d.ts +8 -8
- package/core/http/interceptors/profiler.interceptor.d.ts +5 -5
- package/core/http/public-api.d.ts +2 -2
- package/core/http/services/http.service.d.ts +25 -25
- package/core/http/services/loader.service.d.ts +10 -10
- package/core/index.d.ts +1 -1
- package/core/layout/index.d.ts +1 -1
- package/core/layout/layout.service.d.ts +33 -33
- package/core/layout/public-api.d.ts +2 -2
- package/core/layout/rtl.directive.d.ts +16 -16
- package/core/portal/attach.directive.d.ts +10 -10
- package/core/portal/index.d.ts +1 -1
- package/core/portal/portal.service.d.ts +9 -9
- package/core/portal/public-api.d.ts +3 -3
- package/core/portal/target.directive.d.ts +9 -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 +8 -8
- package/date/date.component.d.ts +65 -65
- package/date/date.model.d.ts +26 -26
- package/date/date.module.d.ts +5 -5
- package/date/pepperi-addons-ngx-lib-date.d.ts +5 -5
- package/date/public-api.d.ts +2 -2
- package/dialog/default-dialog.component.d.ts +8 -8
- package/dialog/dialog.component.d.ts +6 -6
- package/dialog/dialog.model.d.ts +27 -27
- package/dialog/dialog.module.d.ts +5 -5
- package/dialog/dialog.service.d.ts +24 -24
- package/dialog/pepperi-addons-ngx-lib-dialog.d.ts +5 -5
- package/dialog/public-api.d.ts +4 -4
- package/draggable-items/draggable-item/draggable-item.component.d.ts +8 -8
- package/draggable-items/draggable-items.component.d.ts +33 -33
- package/draggable-items/draggable-items.model.d.ts +7 -7
- package/draggable-items/draggable-items.module.d.ts +5 -5
- package/draggable-items/pepperi-addons-ngx-lib-draggable-items.d.ts +4 -4
- package/draggable-items/pepperi-addons-ngx-lib-draggable-items.metadata.json +1 -1
- package/draggable-items/public-api.d.ts +4 -4
- package/esm2015/address/address.component.js +96 -96
- package/esm2015/address/address.module.js +30 -30
- package/esm2015/address/pepperi-addons-ngx-lib-address.js +4 -4
- package/esm2015/address/public-api.js +5 -5
- package/esm2015/attachment/attachment.component.js +208 -208
- package/esm2015/attachment/attachment.module.js +28 -28
- package/esm2015/attachment/pepperi-addons-ngx-lib-attachment.js +4 -4
- package/esm2015/attachment/public-api.js +5 -5
- package/esm2015/bread-crumbs/bread-crumbs.component.js +78 -78
- package/esm2015/bread-crumbs/bread-crumbs.model.js +6 -6
- package/esm2015/bread-crumbs/bread-crumbs.module.js +34 -34
- package/esm2015/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.js +4 -4
- package/esm2015/bread-crumbs/public-api.js +6 -6
- package/esm2015/button/button.component.js +127 -127
- package/esm2015/button/button.model.js +5 -5
- package/esm2015/button/button.module.js +26 -26
- package/esm2015/button/pepperi-addons-ngx-lib-button.js +4 -4
- package/esm2015/button/public-api.js +6 -6
- package/esm2015/carousel/carousel-item.directive.js +26 -26
- package/esm2015/carousel/carousel.component.js +699 -699
- package/esm2015/carousel/carousel.module.js +11 -11
- package/esm2015/carousel/pepperi-addons-ngx-lib-carousel.js +4 -4
- package/esm2015/carousel/public-api.js +7 -7
- package/esm2015/checkbox/checkbox.component.js +151 -151
- package/esm2015/checkbox/checkbox.module.js +39 -39
- package/esm2015/checkbox/pepperi-addons-ngx-lib-checkbox.js +4 -4
- package/esm2015/checkbox/public-api.js +5 -5
- package/esm2015/color/color-picker.component.js +194 -194
- package/esm2015/color/color.component.js +74 -74
- package/esm2015/color/color.model.js +1 -1
- package/esm2015/color/color.module.js +57 -57
- package/esm2015/color/pepperi-addons-ngx-lib-color.js +5 -5
- package/esm2015/color/public-api.js +6 -6
- package/esm2015/core/clipboard/clipboard.directive.js +19 -19
- package/esm2015/core/clipboard/clipboard.service.js +11 -11
- package/esm2015/core/clipboard/index.js +4 -4
- package/esm2015/core/clipboard/public-api.js +5 -5
- package/esm2015/core/common/directives/auto-width.directive.js +77 -77
- package/esm2015/core/common/directives/button-blur.directive.js +22 -22
- package/esm2015/core/common/directives/button-loader.directive.js +102 -102
- package/esm2015/core/common/directives/data-qa.directive.js +22 -22
- package/esm2015/core/common/directives/index.js +4 -4
- package/esm2015/core/common/directives/menu-blur.directive.js +28 -28
- package/esm2015/core/common/directives/prevent-multi-click.directive.js +21 -21
- package/esm2015/core/common/directives/print.directive.js +134 -134
- package/esm2015/core/common/directives/public-api.js +11 -11
- package/esm2015/core/common/index.js +4 -4
- package/esm2015/core/common/model/index.js +4 -4
- package/esm2015/core/common/model/papi.model.js +2 -2
- package/esm2015/core/common/model/public-api.js +6 -6
- package/esm2015/core/common/model/utilities.model.js +56 -56
- package/esm2015/core/common/model/wapi.model.js +155 -155
- package/esm2015/core/common/pipes/common-pipes.js +141 -141
- package/esm2015/core/common/pipes/index.js +4 -4
- package/esm2015/core/common/pipes/public-api.js +4 -4
- package/esm2015/core/common/public-api.js +7 -7
- package/esm2015/core/common/services/addon.service.js +123 -123
- package/esm2015/core/common/services/color.service.js +356 -356
- package/esm2015/core/common/services/cookie.service.js +147 -147
- package/esm2015/core/common/services/data-convertor.service.js +111 -111
- package/esm2015/core/common/services/file.service.js +211 -211
- package/esm2015/core/common/services/index.js +4 -4
- package/esm2015/core/common/services/jwt-helper.service.js +103 -103
- package/esm2015/core/common/services/public-api.js +14 -14
- package/esm2015/core/common/services/session.service.js +72 -72
- package/esm2015/core/common/services/translate.service.js +47 -47
- package/esm2015/core/common/services/utilities.service.js +123 -123
- package/esm2015/core/common/services/validator.service.js +272 -272
- package/esm2015/core/common/services/window-scrolling.service.js +30 -30
- package/esm2015/core/customization/customization.model.js +290 -290
- package/esm2015/core/customization/customization.service.js +774 -774
- package/esm2015/core/customization/index.js +4 -4
- package/esm2015/core/customization/public-api.js +5 -5
- package/esm2015/core/http/index.js +4 -4
- package/esm2015/core/http/interceptors/error.interceptor.js +23 -23
- package/esm2015/core/http/interceptors/index.js +23 -23
- package/esm2015/core/http/interceptors/loader.interceptor.js +32 -32
- package/esm2015/core/http/interceptors/profiler.interceptor.js +28 -28
- package/esm2015/core/http/public-api.js +5 -5
- package/esm2015/core/http/services/http.service.js +160 -160
- package/esm2015/core/http/services/loader.service.js +48 -48
- package/esm2015/core/index.js +4 -4
- package/esm2015/core/layout/index.js +4 -4
- package/esm2015/core/layout/layout.service.js +168 -168
- package/esm2015/core/layout/public-api.js +5 -5
- package/esm2015/core/layout/rtl.directive.js +46 -46
- package/esm2015/core/portal/attach.directive.js +26 -26
- package/esm2015/core/portal/index.js +4 -4
- package/esm2015/core/portal/portal.service.js +34 -34
- package/esm2015/core/portal/public-api.js +6 -6
- package/esm2015/core/portal/target.directive.js +23 -23
- package/esm2015/core/public-api.js +10 -10
- package/esm2015/core/scroll-to/index.js +4 -4
- package/esm2015/core/scroll-to/public-api.js +5 -5
- package/esm2015/core/scroll-to/scroll-to.service.js +81 -81
- package/esm2015/date/date.component.js +244 -244
- package/esm2015/date/date.model.js +44 -44
- package/esm2015/date/date.module.js +50 -50
- package/esm2015/date/pepperi-addons-ngx-lib-date.js +5 -5
- package/esm2015/date/public-api.js +5 -5
- package/esm2015/dialog/default-dialog.component.js +28 -28
- package/esm2015/dialog/dialog.component.js +21 -21
- package/esm2015/dialog/dialog.model.js +21 -21
- package/esm2015/dialog/dialog.module.js +39 -39
- package/esm2015/dialog/dialog.service.js +73 -73
- package/esm2015/dialog/pepperi-addons-ngx-lib-dialog.js +5 -5
- package/esm2015/dialog/public-api.js +7 -7
- package/esm2015/draggable-items/draggable-item/draggable-item.component.js +24 -24
- package/esm2015/draggable-items/draggable-items.component.js +91 -91
- package/esm2015/draggable-items/draggable-items.model.js +1 -1
- package/esm2015/draggable-items/draggable-items.module.js +42 -42
- package/esm2015/draggable-items/pepperi-addons-ngx-lib-draggable-items.js +4 -4
- package/esm2015/draggable-items/public-api.js +7 -7
- package/esm2015/field-title/field-title.component.js +31 -31
- package/esm2015/field-title/field-title.module.js +31 -31
- package/esm2015/field-title/pepperi-addons-ngx-lib-field-title.js +4 -4
- package/esm2015/field-title/public-api.js +5 -5
- package/esm2015/files-uploader/files-uploader.component.js +220 -220
- package/esm2015/files-uploader/files-uploader.module.js +49 -49
- package/esm2015/files-uploader/pepperi-addons-ngx-lib-files-uploader.js +4 -4
- package/esm2015/files-uploader/public-api.js +5 -5
- package/esm2015/form/field-generator.component.js +121 -121
- package/esm2015/form/form.component.js +1189 -1181
- package/esm2015/form/form.model.js +1 -1
- package/esm2015/form/form.module.js +107 -107
- package/esm2015/form/indicators.component.js +20 -20
- package/esm2015/form/internal-button.component.js +165 -165
- package/esm2015/form/internal-carusel.component.js +115 -115
- package/esm2015/form/internal-carusel.service.js +31 -31
- package/esm2015/form/internal-list.component.js +494 -494
- package/esm2015/form/internal-menu.component.js +54 -54
- package/esm2015/form/internal-page.component.js +350 -350
- package/esm2015/form/internal-page.service.js +120 -120
- package/esm2015/form/pepperi-addons-ngx-lib-form.js +13 -13
- package/esm2015/form/public-api.js +6 -6
- package/esm2015/group-buttons/group-buttons.component.js +57 -57
- package/esm2015/group-buttons/group-buttons.module.js +37 -37
- package/esm2015/group-buttons/pepperi-addons-ngx-lib-group-buttons.js +4 -4
- package/esm2015/group-buttons/public-api.js +5 -5
- package/esm2015/icon/icon-generated-all.model.js +100 -100
- package/esm2015/icon/icon-generated.model.js +389 -389
- package/esm2015/icon/icon-registry.service.js +22 -22
- package/esm2015/icon/icon.component.js +124 -124
- package/esm2015/icon/icon.module.js +14 -14
- package/esm2015/icon/icon.service.js +31 -31
- package/esm2015/icon/pepperi-addons-ngx-lib-icon.js +4 -4
- package/esm2015/icon/public-api.js +10 -10
- package/esm2015/image/image.component.js +222 -222
- package/esm2015/image/image.module.js +48 -48
- package/esm2015/image/image.service.js +54 -54
- package/esm2015/image/pepperi-addons-ngx-lib-image.js +4 -4
- package/esm2015/image/public-api.js +6 -6
- package/esm2015/images-filmstrip/images-filmstrip.component.js +363 -363
- package/esm2015/images-filmstrip/images-filmstrip.module.js +70 -70
- package/esm2015/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.js +4 -4
- package/esm2015/images-filmstrip/public-api.js +5 -5
- package/esm2015/link/link.component.js +390 -390
- package/esm2015/link/link.module.js +50 -50
- package/esm2015/link/link.pipes.js +14 -14
- package/esm2015/link/pepperi-addons-ngx-lib-link.js +5 -5
- package/esm2015/link/public-api.js +5 -5
- package/esm2015/list/list-actions.component.js +35 -35
- package/esm2015/list/list-carousel.component.js +94 -94
- package/esm2015/list/list-chooser.component.js +57 -57
- package/esm2015/list/list-pager.component.js +112 -112
- package/esm2015/list/list-sorting.component.js +54 -54
- package/esm2015/list/list-total.component.js +23 -23
- package/esm2015/list/list-views.component.js +71 -71
- package/esm2015/list/list.component.js +1123 -1123
- package/esm2015/list/list.model.js +3 -3
- package/esm2015/list/list.module.js +87 -87
- package/esm2015/list/list.pipes.js +39 -39
- package/esm2015/list/pepperi-addons-ngx-lib-list.js +6 -6
- package/esm2015/list/public-api.js +14 -14
- package/esm2015/list/virtual-scroller.js +1018 -1018
- package/esm2015/menu/menu-item.component.js +102 -102
- package/esm2015/menu/menu.component.js +173 -173
- package/esm2015/menu/menu.model.js +18 -18
- package/esm2015/menu/menu.module.js +39 -39
- package/esm2015/menu/pepperi-addons-ngx-lib-menu.js +5 -5
- package/esm2015/menu/public-api.js +6 -6
- package/esm2015/ngx-lib.module.js +76 -76
- package/esm2015/page-layout/page-layout.component.js +41 -41
- package/esm2015/page-layout/page-layout.module.js +20 -20
- package/esm2015/page-layout/pepperi-addons-ngx-lib-page-layout.js +4 -4
- package/esm2015/page-layout/public-api.js +5 -5
- package/esm2015/pepperi-addons-ngx-lib.js +8 -8
- package/esm2015/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.js +4 -4
- package/esm2015/profile-data-views-list/profile-data-view/profile-data-view.component.js +38 -38
- package/esm2015/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.js +59 -59
- package/esm2015/profile-data-views-list/profile-data-views-list.component.js +86 -86
- package/esm2015/profile-data-views-list/profile-data-views-list.model.js +1 -1
- package/esm2015/profile-data-views-list/profile-data-views-list.module.js +56 -56
- package/esm2015/profile-data-views-list/public-api.js +8 -8
- package/esm2015/public-api.js +5 -5
- package/esm2015/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.js +6 -6
- package/esm2015/quantity-selector/public-api.js +5 -5
- package/esm2015/quantity-selector/quantity-selector-validation.directive.js +43 -43
- package/esm2015/quantity-selector/quantity-selector.component.js +460 -460
- package/esm2015/quantity-selector/quantity-selector.module.js +52 -52
- package/esm2015/quantity-selector/quantity-selector.pipes.js +18 -18
- package/esm2015/query-builder/common/model/field.js +1 -1
- package/esm2015/query-builder/common/model/filter.js +1 -1
- package/esm2015/query-builder/common/model/legacy.js +1 -1
- package/esm2015/query-builder/common/model/operator-unit.js +41 -41
- package/esm2015/query-builder/common/model/operator.js +206 -206
- package/esm2015/query-builder/common/model/structure.js +1 -1
- package/esm2015/query-builder/common/model/type-map.js +26 -26
- package/esm2015/query-builder/common/model/type.js +5 -5
- package/esm2015/query-builder/common/services/output-query.service.js +110 -110
- package/esm2015/query-builder/common/services/type-convertor.service.js +39 -39
- package/esm2015/query-builder/pepperi-addons-ngx-lib-query-builder.js +8 -8
- package/esm2015/query-builder/public-api.js +7 -7
- package/esm2015/query-builder/query-builder-item/query-builder-item.component.js +115 -115
- package/esm2015/query-builder/query-builder-section/query-builder-section.component.js +63 -63
- package/esm2015/query-builder/query-builder.component.js +103 -103
- package/esm2015/query-builder/query-builder.module.js +34 -34
- package/esm2015/query-builder/query-builder.service.js +281 -281
- package/esm2015/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.js +4 -4
- package/esm2015/rich-html-textarea/public-api.js +5 -5
- package/esm2015/rich-html-textarea/rich-html-textarea.component.js +219 -219
- package/esm2015/rich-html-textarea/rich-html-textarea.module.js +56 -56
- package/esm2015/search/pepperi-addons-ngx-lib-search.js +4 -4
- package/esm2015/search/public-api.js +6 -6
- package/esm2015/search/search.component.js +273 -273
- package/esm2015/search/search.model.js +1 -1
- package/esm2015/search/search.module.js +44 -44
- package/esm2015/select/pepperi-addons-ngx-lib-select.js +4 -4
- package/esm2015/select/public-api.js +5 -5
- package/esm2015/select/select.component.js +212 -212
- package/esm2015/select/select.module.js +42 -42
- package/esm2015/separator/pepperi-addons-ngx-lib-separator.js +4 -4
- package/esm2015/separator/public-api.js +5 -5
- package/esm2015/separator/separator.component.js +62 -62
- package/esm2015/separator/separator.module.js +12 -12
- package/esm2015/side-bar/pepperi-addons-ngx-lib-side-bar.js +4 -4
- package/esm2015/side-bar/public-api.js +6 -6
- package/esm2015/side-bar/side-bar.component.js +130 -130
- package/esm2015/side-bar/side-bar.model.js +1 -1
- package/esm2015/side-bar/side-bar.module.js +33 -33
- package/esm2015/signature/pepperi-addons-ngx-lib-signature.js +4 -4
- package/esm2015/signature/public-api.js +5 -5
- package/esm2015/signature/signature.component.js +230 -230
- package/esm2015/signature/signature.module.js +54 -54
- package/esm2015/size-detector/pepperi-addons-ngx-lib-size-detector.js +4 -4
- package/esm2015/size-detector/public-api.js +5 -5
- package/esm2015/size-detector/size-detector.component.js +88 -88
- package/esm2015/size-detector/size-detector.module.js +21 -21
- package/esm2015/slider/pepperi-addons-ngx-lib-slider.js +4 -4
- package/esm2015/slider/public-api.js +5 -5
- package/esm2015/slider/slider.component.js +95 -95
- package/esm2015/slider/slider.module.js +24 -24
- package/esm2015/smart-filters/boolean-filter/boolean-filter.component.js +41 -41
- package/esm2015/smart-filters/common/filter-actions.component.js +25 -25
- package/esm2015/smart-filters/common/model/base-filter-component.js +259 -259
- package/esm2015/smart-filters/common/model/creator.js +75 -75
- package/esm2015/smart-filters/common/model/field.js +116 -116
- package/esm2015/smart-filters/common/model/filter.js +1 -1
- package/esm2015/smart-filters/common/model/operator.js +215 -215
- package/esm2015/smart-filters/common/model/type.js +1 -1
- package/esm2015/smart-filters/date-filter/date-filter.component.js +143 -143
- package/esm2015/smart-filters/multi-select-filter/multi-select-filter.component.js +152 -152
- package/esm2015/smart-filters/number-filter/number-filter.component.js +102 -102
- package/esm2015/smart-filters/pepperi-addons-ngx-lib-smart-filters.js +4 -4
- package/esm2015/smart-filters/public-api.js +18 -18
- package/esm2015/smart-filters/smart-filters.component.js +129 -129
- package/esm2015/smart-filters/smart-filters.module.js +90 -90
- package/esm2015/smart-filters/text-filter/text-filter.component.js +78 -78
- package/esm2015/textarea/pepperi-addons-ngx-lib-textarea.js +4 -4
- package/esm2015/textarea/public-api.js +5 -5
- package/esm2015/textarea/textarea.component.js +160 -160
- package/esm2015/textarea/textarea.module.js +50 -50
- package/esm2015/textbox/pepperi-addons-ngx-lib-textbox.js +5 -5
- package/esm2015/textbox/public-api.js +5 -5
- package/esm2015/textbox/textbox-validation.directive.js +85 -85
- package/esm2015/textbox/textbox.component.js +368 -368
- package/esm2015/textbox/textbox.module.js +44 -44
- package/esm2015/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.js +4 -4
- package/esm2015/textbox-icon/public-api.js +5 -5
- package/esm2015/textbox-icon/textbox-icon.component.js +40 -40
- package/esm2015/textbox-icon/textbox-icon.module.js +46 -46
- package/esm2015/top-bar/pepperi-addons-ngx-lib-top-bar.js +4 -4
- package/esm2015/top-bar/public-api.js +6 -6
- package/esm2015/top-bar/top-bar.component.js +98 -98
- package/esm2015/top-bar/top-bar.model.js +1 -1
- package/esm2015/top-bar/top-bar.module.js +40 -40
- package/fesm2015/pepperi-addons-ngx-lib-address.js +116 -116
- package/fesm2015/pepperi-addons-ngx-lib-attachment.js +227 -227
- package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.js +109 -109
- package/fesm2015/pepperi-addons-ngx-lib-button.js +149 -149
- package/fesm2015/pepperi-addons-ngx-lib-carousel.js +731 -731
- package/fesm2015/pepperi-addons-ngx-lib-checkbox.js +178 -178
- package/fesm2015/pepperi-addons-ngx-lib-color.js +292 -292
- package/fesm2015/pepperi-addons-ngx-lib-date.js +313 -313
- package/fesm2015/pepperi-addons-ngx-lib-dialog.js +157 -157
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.js +143 -143
- package/fesm2015/pepperi-addons-ngx-lib-field-title.js +55 -55
- package/fesm2015/pepperi-addons-ngx-lib-files-uploader.js +252 -252
- package/fesm2015/pepperi-addons-ngx-lib-form.js +2685 -2677
- package/fesm2015/pepperi-addons-ngx-lib-form.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-group-buttons.js +84 -84
- package/fesm2015/pepperi-addons-ngx-lib-icon.js +662 -662
- package/fesm2015/pepperi-addons-ngx-lib-image.js +300 -300
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.js +400 -400
- package/fesm2015/pepperi-addons-ngx-lib-link.js +434 -434
- package/fesm2015/pepperi-addons-ngx-lib-list.js +2657 -2657
- package/fesm2015/pepperi-addons-ngx-lib-menu.js +314 -314
- package/fesm2015/pepperi-addons-ngx-lib-page-layout.js +55 -55
- package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.js +219 -219
- package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.js +549 -549
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.js +976 -976
- package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.js +256 -256
- package/fesm2015/pepperi-addons-ngx-lib-search.js +301 -301
- package/fesm2015/pepperi-addons-ngx-lib-select.js +242 -242
- package/fesm2015/pepperi-addons-ngx-lib-separator.js +71 -71
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.js +154 -154
- package/fesm2015/pepperi-addons-ngx-lib-signature.js +267 -267
- package/fesm2015/pepperi-addons-ngx-lib-size-detector.js +103 -103
- package/fesm2015/pepperi-addons-ngx-lib-slider.js +112 -112
- package/fesm2015/pepperi-addons-ngx-lib-smart-filters.js +1351 -1351
- package/fesm2015/pepperi-addons-ngx-lib-textarea.js +194 -194
- package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.js +78 -78
- package/fesm2015/pepperi-addons-ngx-lib-textbox.js +478 -478
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.js +125 -125
- package/fesm2015/pepperi-addons-ngx-lib.js +4087 -4087
- package/fesm2015/pepperi-addons-ngx-lib.js.map +1 -1
- package/field-title/field-title.component.d.ts +11 -11
- package/field-title/field-title.module.d.ts +5 -5
- package/field-title/pepperi-addons-ngx-lib-field-title.d.ts +4 -4
- package/field-title/public-api.d.ts +2 -2
- package/files-uploader/files-uploader.component.d.ts +53 -53
- package/files-uploader/files-uploader.module.d.ts +5 -5
- package/files-uploader/pepperi-addons-ngx-lib-files-uploader.d.ts +4 -4
- package/files-uploader/public-api.d.ts +2 -2
- package/form/field-generator.component.d.ts +36 -36
- package/form/form.component.d.ts +88 -88
- package/form/form.model.d.ts +20 -20
- package/form/form.module.d.ts +5 -5
- package/form/indicators.component.d.ts +7 -7
- package/form/internal-button.component.d.ts +39 -39
- package/form/internal-carusel.component.d.ts +38 -38
- package/form/internal-carusel.service.d.ts +7 -7
- package/form/internal-list.component.d.ts +92 -92
- package/form/internal-menu.component.d.ts +16 -16
- package/form/internal-page.component.d.ts +72 -72
- package/form/internal-page.service.d.ts +19 -19
- package/form/pepperi-addons-ngx-lib-form.d.ts +13 -13
- package/form/public-api.d.ts +3 -3
- package/group-buttons/group-buttons.component.d.ts +20 -20
- package/group-buttons/group-buttons.module.d.ts +5 -5
- package/group-buttons/pepperi-addons-ngx-lib-group-buttons.d.ts +4 -4
- 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 +6 -6
- package/icon/icon.component.d.ts +46 -46
- package/icon/icon.module.d.ts +2 -2
- package/icon/icon.service.d.ts +10 -10
- package/icon/pepperi-addons-ngx-lib-icon.d.ts +4 -4
- package/icon/public-api.d.ts +6 -6
- package/image/image.component.d.ts +62 -62
- package/image/image.module.d.ts +5 -5
- package/image/image.service.d.ts +11 -11
- package/image/pepperi-addons-ngx-lib-image.d.ts +4 -4
- package/image/public-api.d.ts +3 -3
- package/images-filmstrip/images-filmstrip.component.d.ts +82 -82
- package/images-filmstrip/images-filmstrip.module.d.ts +5 -5
- package/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.d.ts +4 -4
- package/images-filmstrip/public-api.d.ts +2 -2
- package/link/link.component.d.ts +136 -136
- package/link/link.module.d.ts +5 -5
- package/link/link.pipes.d.ts +4 -4
- package/link/pepperi-addons-ngx-lib-link.d.ts +5 -5
- package/link/public-api.d.ts +2 -2
- package/list/list-actions.component.d.ts +14 -14
- package/list/list-carousel.component.d.ts +36 -36
- package/list/list-chooser.component.d.ts +25 -25
- package/list/list-pager.component.d.ts +35 -35
- package/list/list-sorting.component.d.ts +26 -26
- package/list/list-total.component.d.ts +7 -7
- package/list/list-views.component.d.ts +31 -31
- package/list/list.component.d.ts +159 -159
- package/list/list.model.d.ts +30 -30
- package/list/list.module.d.ts +5 -5
- package/list/list.pipes.d.ts +11 -11
- package/list/pepperi-addons-ngx-lib-list.d.ts +6 -6
- package/list/public-api.d.ts +10 -10
- package/list/virtual-scroller.d.ts +176 -176
- package/menu/menu-item.component.d.ts +25 -25
- package/menu/menu.component.d.ts +43 -43
- package/menu/menu.model.d.ts +25 -25
- package/menu/menu.module.d.ts +5 -5
- package/menu/pepperi-addons-ngx-lib-menu.d.ts +5 -5
- package/menu/public-api.d.ts +3 -3
- package/ngx-lib.module.d.ts +2 -2
- package/package.json +1 -1
- package/page-layout/page-layout.component.d.ts +16 -16
- package/page-layout/page-layout.module.d.ts +2 -2
- package/page-layout/pepperi-addons-ngx-lib-page-layout.d.ts +4 -4
- package/page-layout/public-api.d.ts +2 -2
- package/pepperi-addons-ngx-lib.d.ts +8 -8
- package/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.d.ts +4 -4
- package/profile-data-views-list/profile-data-view/profile-data-view.component.d.ts +15 -15
- package/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.d.ts +21 -21
- package/profile-data-views-list/profile-data-views-list.component.d.ts +32 -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 +5 -5
- package/profile-data-views-list/public-api.d.ts +5 -5
- package/public-api.d.ts +2 -2
- package/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.d.ts +6 -6
- package/quantity-selector/public-api.d.ts +2 -2
- package/quantity-selector/quantity-selector-validation.directive.d.ts +13 -13
- package/quantity-selector/quantity-selector.component.d.ts +96 -96
- package/quantity-selector/quantity-selector.module.d.ts +5 -5
- package/quantity-selector/quantity-selector.pipes.d.ts +4 -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 +44 -44
- package/query-builder/common/services/type-convertor.service.d.ts +10 -10
- package/query-builder/pepperi-addons-ngx-lib-query-builder.d.ts +8 -8
- package/query-builder/public-api.d.ts +4 -4
- package/query-builder/query-builder-item/query-builder-item.component.d.ts +37 -37
- package/query-builder/query-builder-section/query-builder-section.component.d.ts +27 -27
- package/query-builder/query-builder.component.d.ts +35 -35
- package/query-builder/query-builder.module.d.ts +2 -2
- package/query-builder/query-builder.service.d.ts +94 -94
- package/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.d.ts +4 -4
- package/rich-html-textarea/public-api.d.ts +2 -2
- package/rich-html-textarea/rich-html-textarea.component.d.ts +75 -75
- package/rich-html-textarea/rich-html-textarea.module.d.ts +5 -5
- package/search/pepperi-addons-ngx-lib-search.d.ts +4 -4
- package/search/public-api.d.ts +3 -3
- package/search/search.component.d.ts +61 -61
- package/search/search.model.d.ts +14 -14
- package/search/search.module.d.ts +5 -5
- package/select/pepperi-addons-ngx-lib-select.d.ts +4 -4
- package/select/public-api.d.ts +2 -2
- package/select/select.component.d.ts +50 -50
- package/select/select.module.d.ts +5 -5
- package/separator/pepperi-addons-ngx-lib-separator.d.ts +4 -4
- package/separator/public-api.d.ts +2 -2
- package/separator/separator.component.d.ts +19 -19
- package/separator/separator.module.d.ts +2 -2
- package/side-bar/pepperi-addons-ngx-lib-side-bar.d.ts +4 -4
- package/side-bar/public-api.d.ts +3 -3
- package/side-bar/side-bar.component.d.ts +38 -38
- package/side-bar/side-bar.model.d.ts +4 -4
- package/side-bar/side-bar.module.d.ts +5 -5
- package/signature/pepperi-addons-ngx-lib-signature.d.ts +4 -4
- package/signature/public-api.d.ts +2 -2
- package/signature/signature.component.d.ts +64 -64
- package/signature/signature.module.d.ts +5 -5
- package/size-detector/pepperi-addons-ngx-lib-size-detector.d.ts +4 -4
- package/size-detector/public-api.d.ts +2 -2
- package/size-detector/size-detector.component.d.ts +26 -26
- package/size-detector/size-detector.module.d.ts +2 -2
- package/slider/pepperi-addons-ngx-lib-slider.d.ts +4 -4
- package/slider/public-api.d.ts +2 -2
- package/slider/slider.component.d.ts +36 -36
- package/slider/slider.module.d.ts +2 -2
- package/smart-filters/boolean-filter/boolean-filter.component.d.ts +12 -12
- package/smart-filters/common/filter-actions.component.d.ts +9 -9
- package/smart-filters/common/model/base-filter-component.d.ts +67 -67
- 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 +38 -38
- package/smart-filters/common/model/type.d.ts +4 -4
- package/smart-filters/date-filter/date-filter.component.d.ts +41 -41
- package/smart-filters/multi-select-filter/multi-select-filter.component.d.ts +39 -39
- package/smart-filters/number-filter/number-filter.component.d.ts +38 -38
- package/smart-filters/pepperi-addons-ngx-lib-smart-filters.d.ts +4 -4
- package/smart-filters/public-api.d.ts +14 -14
- package/smart-filters/smart-filters.component.d.ts +32 -32
- package/smart-filters/smart-filters.module.d.ts +5 -5
- package/smart-filters/text-filter/text-filter.component.d.ts +17 -17
- package/textarea/pepperi-addons-ngx-lib-textarea.d.ts +4 -4
- package/textarea/public-api.d.ts +2 -2
- package/textarea/textarea.component.d.ts +51 -51
- package/textarea/textarea.module.d.ts +5 -5
- package/textbox/pepperi-addons-ngx-lib-textbox.d.ts +5 -5
- package/textbox/public-api.d.ts +2 -2
- package/textbox/textbox-validation.directive.d.ts +18 -18
- package/textbox/textbox.component.d.ts +131 -131
- package/textbox/textbox.module.d.ts +5 -5
- package/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.d.ts +4 -4
- package/textbox-icon/public-api.d.ts +2 -2
- package/textbox-icon/textbox-icon.component.d.ts +10 -10
- package/textbox-icon/textbox-icon.module.d.ts +5 -5
- package/top-bar/pepperi-addons-ngx-lib-top-bar.d.ts +4 -4
- package/top-bar/public-api.d.ts +3 -3
- package/top-bar/top-bar.component.d.ts +36 -36
- package/top-bar/top-bar.model.d.ts +4 -4
- package/top-bar/top-bar.module.d.ts +5 -5
|
@@ -4,135 +4,135 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['pepperi-addons'] = global['pepperi-addons'] || {}, global['pepperi-addons']['ngx-lib'] = global['pepperi-addons']['ngx-lib'] || {}, global['pepperi-addons']['ngx-lib']['bread-crumbs'] = {}), global.ng.core, global.ng.common, global.ng.material.icon, global.ng.material.menu, global['pepperi-addons']['ngx-lib'], global['pepperi-addons']['ngx-lib'].icon));
|
|
5
5
|
}(this, (function (exports, core, common, icon$1, menu, ngxLib, icon) { 'use strict';
|
|
6
6
|
|
|
7
|
-
var PepBreadCrumbsComponent = /** @class */ (function () {
|
|
8
|
-
function PepBreadCrumbsComponent(layoutService) {
|
|
9
|
-
this.layoutService = layoutService;
|
|
10
|
-
this._items = [];
|
|
11
|
-
this._displayType = 'label';
|
|
12
|
-
this.addSpacing = false;
|
|
13
|
-
this.itemClick = new core.EventEmitter();
|
|
14
|
-
this.charSeparator = ' / ';
|
|
15
|
-
this.iconSeparator = icon.pepIconArrowRight.name;
|
|
16
|
-
this.shrinkItems = false;
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(PepBreadCrumbsComponent.prototype, "items", {
|
|
19
|
-
get: function () {
|
|
20
|
-
return this._items;
|
|
21
|
-
},
|
|
22
|
-
set: function (value) {
|
|
23
|
-
this._items = value;
|
|
24
|
-
this.setupShrinkItems();
|
|
25
|
-
},
|
|
26
|
-
enumerable: false,
|
|
27
|
-
configurable: true
|
|
28
|
-
});
|
|
29
|
-
Object.defineProperty(PepBreadCrumbsComponent.prototype, "displayType", {
|
|
30
|
-
get: function () {
|
|
31
|
-
return this._displayType;
|
|
32
|
-
},
|
|
33
|
-
set: function (value) {
|
|
34
|
-
this._displayType = value;
|
|
35
|
-
this.setupShrinkItems();
|
|
36
|
-
},
|
|
37
|
-
enumerable: false,
|
|
38
|
-
configurable: true
|
|
39
|
-
});
|
|
40
|
-
PepBreadCrumbsComponent.prototype.ngOnInit = function () {
|
|
41
|
-
var _this = this;
|
|
42
|
-
this.layoutService.onResize$.pipe().subscribe(function (size) {
|
|
43
|
-
_this.screenSize = size;
|
|
44
|
-
_this.setupShrinkItems();
|
|
45
|
-
});
|
|
46
|
-
if (this.layoutService.isRtl()) {
|
|
47
|
-
this.charSeparator = ' \\ ';
|
|
48
|
-
this.iconSeparator = icon.pepIconArrowLeft.name;
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
PepBreadCrumbsComponent.prototype.setupShrinkItems = function () {
|
|
52
|
-
if (this.displayType === 'items' && this.items.length > 1) {
|
|
53
|
-
this.shrinkItems = this.screenSize > ngxLib.PepScreenSizeType.SM;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
PepBreadCrumbsComponent.prototype.getLabelTitle = function () {
|
|
57
|
-
var labelTitle = '';
|
|
58
|
-
if (this.items && this.items.length > 0) {
|
|
59
|
-
for (var index = 0; index < this.items.length; index++) {
|
|
60
|
-
if (index < this.items.length - 1) {
|
|
61
|
-
if (index > 0) {
|
|
62
|
-
labelTitle += this.charSeparator;
|
|
63
|
-
}
|
|
64
|
-
labelTitle += this.items[index].text;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return labelTitle;
|
|
69
|
-
};
|
|
70
|
-
PepBreadCrumbsComponent.prototype.onBreadCrumbItemClick = function (item) {
|
|
71
|
-
this.itemClick.emit({ source: item });
|
|
72
|
-
};
|
|
73
|
-
return PepBreadCrumbsComponent;
|
|
74
|
-
}());
|
|
75
|
-
PepBreadCrumbsComponent.decorators = [
|
|
76
|
-
{ type: core.Component, args: [{
|
|
77
|
-
selector: 'pep-bread-crumbs',
|
|
78
|
-
template: "<ng-container *ngIf=\"displayType === 'label'; then labelTemplate; else itemsTemplate\">\n</ng-container>\n<ng-template #labelTemplate>\n <div *ngIf=\"items?.length > 0\" class=\"bread-crumbs-label ellipsis\" [ngClass]=\"{ 'pep-spacing-element': addSpacing }\"\n [title]=\"getLabelTitle()\">\n <div class=\"body-xs ellipsis\">\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <span *ngIf=\"!isFirst && !isLast\"> {{ charSeparator }} </span>\n <span *ngIf=\"!isLast\">{{ item.text }}</span>\n </ng-container>\n </div>\n <div class=\" title-md ellipsis current\" title=\"{{ items[items.length - 1]?.text }}\">\n <span>{{ items[items.length - 1]?.text }}</span>\n </div>\n </div>\n</ng-template>\n\n<ng-template #itemsTemplate>\n <ul *ngIf=\"items?.length > 0\" class=\"bread-crumbs-items body-sm ellipsis\">\n <ng-container *ngIf=\"shrinkItems; then shrinkTemplate; else regularTemplate\">\n </ng-container>\n\n <ng-template #shrinkTemplate>\n <li>\n <a class=\"color-link\" [matMenuTriggerFor]=\"menu\" href=\"javascript:void(0)\">...</a>\n <mat-menu #menu=\"matMenu\">\n <ng-container *ngFor=\"let menuItem of items; let isLast = last\">\n <button mat-menu-item *ngIf=\"!isLast\" (click)=\"onBreadCrumbItemClick(menuItem)\"\n [title]=\"menuItem.title || menuItem.text\" [disabled]=\"menuItem.disabled\"\n [ngClass]=\"{ disabled: menuItem.disabled }\">\n <span>\n {{ menuItem.text }}\n </span>\n </button>\n </ng-container>\n </mat-menu>\n </li>\n <li>\n <mat-icon class=\"seperator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n <li>\n <span [title]=\"items[items.length - 1]?.title || items[items.length - 1]?.text\">\n {{ items[items.length - 1]?.text }}\n </span>\n </li>\n </ng-template>\n <ng-template #regularTemplate>\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <li>\n <a *ngIf=\"!item.disabled\" [title]=\"item.title || item.text\" href=\"javascript:void(0)\"\n class=\" color-link\" (click)=\"onBreadCrumbItemClick(item)\">{{ item.text }}</a>\n <span *ngIf=\"item.disabled\" [title]=\"item.title || item.text\">{{ item.text }}</span>\n </li>\n <li *ngIf=\"!isLast\">\n <mat-icon class=\"seperator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n </ng-container>\n </ng-template>\n </ul>\n</ng-template>",
|
|
79
|
-
styles: [":host{display:grid}.bread-crumbs-label{height:calc(.5rem + 2.5rem);height:calc(var(--pep-top-bar-spacing-bottom, .5rem) + var(--pep-top-bar-field-height, 2.5rem));display:flex;flex-flow:wrap;align-items:center}ul.bread-crumbs-items{padding:0;margin:0;list-style-type:none;display:flex;align-items:center}ul.bread-crumbs-items li{display:inline-flex}ul.bread-crumbs-items li .seperator{height:1rem;width:1rem}ul.bread-crumbs-items li a{text-decoration:unset}", ".bread-crumbs-label{color:rgba(26,26,26,.7);color:hsla(var(--pep-color-system-primary-h,0),var(--pep-color-system-primary-s,0%),var(--pep-color-system-primary-l,10%),.7)}.bread-crumbs-label .current{color:#1a1a1a;color:hsl(var(--pep-color-system-primary-h,0),var(--pep-color-system-primary-s,0%),var(--pep-color-system-primary-l,10%))}"]
|
|
80
|
-
},] },
|
|
81
|
-
{ type: core.Injectable }
|
|
82
|
-
];
|
|
83
|
-
PepBreadCrumbsComponent.ctorParameters = function () { return [
|
|
84
|
-
{ type: ngxLib.PepLayoutService }
|
|
85
|
-
]; };
|
|
86
|
-
PepBreadCrumbsComponent.propDecorators = {
|
|
87
|
-
items: [{ type: core.Input }],
|
|
88
|
-
displayType: [{ type: core.Input }],
|
|
89
|
-
addSpacing: [{ type: core.Input }],
|
|
90
|
-
itemClick: [{ type: core.Output }]
|
|
7
|
+
var PepBreadCrumbsComponent = /** @class */ (function () {
|
|
8
|
+
function PepBreadCrumbsComponent(layoutService) {
|
|
9
|
+
this.layoutService = layoutService;
|
|
10
|
+
this._items = [];
|
|
11
|
+
this._displayType = 'label';
|
|
12
|
+
this.addSpacing = false;
|
|
13
|
+
this.itemClick = new core.EventEmitter();
|
|
14
|
+
this.charSeparator = ' / ';
|
|
15
|
+
this.iconSeparator = icon.pepIconArrowRight.name;
|
|
16
|
+
this.shrinkItems = false;
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(PepBreadCrumbsComponent.prototype, "items", {
|
|
19
|
+
get: function () {
|
|
20
|
+
return this._items;
|
|
21
|
+
},
|
|
22
|
+
set: function (value) {
|
|
23
|
+
this._items = value;
|
|
24
|
+
this.setupShrinkItems();
|
|
25
|
+
},
|
|
26
|
+
enumerable: false,
|
|
27
|
+
configurable: true
|
|
28
|
+
});
|
|
29
|
+
Object.defineProperty(PepBreadCrumbsComponent.prototype, "displayType", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this._displayType;
|
|
32
|
+
},
|
|
33
|
+
set: function (value) {
|
|
34
|
+
this._displayType = value;
|
|
35
|
+
this.setupShrinkItems();
|
|
36
|
+
},
|
|
37
|
+
enumerable: false,
|
|
38
|
+
configurable: true
|
|
39
|
+
});
|
|
40
|
+
PepBreadCrumbsComponent.prototype.ngOnInit = function () {
|
|
41
|
+
var _this = this;
|
|
42
|
+
this.layoutService.onResize$.pipe().subscribe(function (size) {
|
|
43
|
+
_this.screenSize = size;
|
|
44
|
+
_this.setupShrinkItems();
|
|
45
|
+
});
|
|
46
|
+
if (this.layoutService.isRtl()) {
|
|
47
|
+
this.charSeparator = ' \\ ';
|
|
48
|
+
this.iconSeparator = icon.pepIconArrowLeft.name;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
PepBreadCrumbsComponent.prototype.setupShrinkItems = function () {
|
|
52
|
+
if (this.displayType === 'items' && this.items.length > 1) {
|
|
53
|
+
this.shrinkItems = this.screenSize > ngxLib.PepScreenSizeType.SM;
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
PepBreadCrumbsComponent.prototype.getLabelTitle = function () {
|
|
57
|
+
var labelTitle = '';
|
|
58
|
+
if (this.items && this.items.length > 0) {
|
|
59
|
+
for (var index = 0; index < this.items.length; index++) {
|
|
60
|
+
if (index < this.items.length - 1) {
|
|
61
|
+
if (index > 0) {
|
|
62
|
+
labelTitle += this.charSeparator;
|
|
63
|
+
}
|
|
64
|
+
labelTitle += this.items[index].text;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return labelTitle;
|
|
69
|
+
};
|
|
70
|
+
PepBreadCrumbsComponent.prototype.onBreadCrumbItemClick = function (item) {
|
|
71
|
+
this.itemClick.emit({ source: item });
|
|
72
|
+
};
|
|
73
|
+
return PepBreadCrumbsComponent;
|
|
74
|
+
}());
|
|
75
|
+
PepBreadCrumbsComponent.decorators = [
|
|
76
|
+
{ type: core.Component, args: [{
|
|
77
|
+
selector: 'pep-bread-crumbs',
|
|
78
|
+
template: "<ng-container *ngIf=\"displayType === 'label'; then labelTemplate; else itemsTemplate\">\n</ng-container>\n<ng-template #labelTemplate>\n <div *ngIf=\"items?.length > 0\" class=\"bread-crumbs-label ellipsis\" [ngClass]=\"{ 'pep-spacing-element': addSpacing }\"\n [title]=\"getLabelTitle()\">\n <div class=\"body-xs ellipsis\">\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <span *ngIf=\"!isFirst && !isLast\"> {{ charSeparator }} </span>\n <span *ngIf=\"!isLast\">{{ item.text }}</span>\n </ng-container>\n </div>\n <div class=\" title-md ellipsis current\" title=\"{{ items[items.length - 1]?.text }}\">\n <span>{{ items[items.length - 1]?.text }}</span>\n </div>\n </div>\n</ng-template>\n\n<ng-template #itemsTemplate>\n <ul *ngIf=\"items?.length > 0\" class=\"bread-crumbs-items body-sm ellipsis\">\n <ng-container *ngIf=\"shrinkItems; then shrinkTemplate; else regularTemplate\">\n </ng-container>\n\n <ng-template #shrinkTemplate>\n <li>\n <a class=\"color-link\" [matMenuTriggerFor]=\"menu\" href=\"javascript:void(0)\">...</a>\n <mat-menu #menu=\"matMenu\">\n <ng-container *ngFor=\"let menuItem of items; let isLast = last\">\n <button mat-menu-item *ngIf=\"!isLast\" (click)=\"onBreadCrumbItemClick(menuItem)\"\n [title]=\"menuItem.title || menuItem.text\" [disabled]=\"menuItem.disabled\"\n [ngClass]=\"{ disabled: menuItem.disabled }\">\n <span>\n {{ menuItem.text }}\n </span>\n </button>\n </ng-container>\n </mat-menu>\n </li>\n <li>\n <mat-icon class=\"seperator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n <li>\n <span [title]=\"items[items.length - 1]?.title || items[items.length - 1]?.text\">\n {{ items[items.length - 1]?.text }}\n </span>\n </li>\n </ng-template>\n <ng-template #regularTemplate>\n <ng-container *ngFor=\"let item of items; let isFirst = first; let isLast = last\">\n <li>\n <a *ngIf=\"!item.disabled\" [title]=\"item.title || item.text\" href=\"javascript:void(0)\"\n class=\" color-link\" (click)=\"onBreadCrumbItemClick(item)\">{{ item.text }}</a>\n <span *ngIf=\"item.disabled\" [title]=\"item.title || item.text\">{{ item.text }}</span>\n </li>\n <li *ngIf=\"!isLast\">\n <mat-icon class=\"seperator pep-spacing-element\">\n <pep-icon [name]=\"iconSeparator\">\n </pep-icon>\n </mat-icon>\n </li>\n </ng-container>\n </ng-template>\n </ul>\n</ng-template>",
|
|
79
|
+
styles: [":host{display:grid}.bread-crumbs-label{height:calc(.5rem + 2.5rem);height:calc(var(--pep-top-bar-spacing-bottom, .5rem) + var(--pep-top-bar-field-height, 2.5rem));display:flex;flex-flow:wrap;align-items:center}ul.bread-crumbs-items{padding:0;margin:0;list-style-type:none;display:flex;align-items:center}ul.bread-crumbs-items li{display:inline-flex}ul.bread-crumbs-items li .seperator{height:1rem;width:1rem}ul.bread-crumbs-items li a{text-decoration:unset}", ".bread-crumbs-label{color:rgba(26,26,26,.7);color:hsla(var(--pep-color-system-primary-h,0),var(--pep-color-system-primary-s,0%),var(--pep-color-system-primary-l,10%),.7)}.bread-crumbs-label .current{color:#1a1a1a;color:hsl(var(--pep-color-system-primary-h,0),var(--pep-color-system-primary-s,0%),var(--pep-color-system-primary-l,10%))}"]
|
|
80
|
+
},] },
|
|
81
|
+
{ type: core.Injectable }
|
|
82
|
+
];
|
|
83
|
+
PepBreadCrumbsComponent.ctorParameters = function () { return [
|
|
84
|
+
{ type: ngxLib.PepLayoutService }
|
|
85
|
+
]; };
|
|
86
|
+
PepBreadCrumbsComponent.propDecorators = {
|
|
87
|
+
items: [{ type: core.Input }],
|
|
88
|
+
displayType: [{ type: core.Input }],
|
|
89
|
+
addSpacing: [{ type: core.Input }],
|
|
90
|
+
itemClick: [{ type: core.Output }]
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
var PepBreadCrumbsModule = /** @class */ (function () {
|
|
94
|
-
function PepBreadCrumbsModule(pepIconRegistry) {
|
|
95
|
-
this.pepIconRegistry = pepIconRegistry;
|
|
96
|
-
this.pepIconRegistry.registerIcons([
|
|
97
|
-
icon.pepIconArrowRight,
|
|
98
|
-
icon.pepIconArrowLeft,
|
|
99
|
-
]);
|
|
100
|
-
}
|
|
101
|
-
return PepBreadCrumbsModule;
|
|
102
|
-
}());
|
|
103
|
-
PepBreadCrumbsModule.decorators = [
|
|
104
|
-
{ type: core.NgModule, args: [{
|
|
105
|
-
imports: [
|
|
106
|
-
common.CommonModule,
|
|
107
|
-
// Material modules
|
|
108
|
-
icon$1.MatIconModule,
|
|
109
|
-
menu.MatMenuModule,
|
|
110
|
-
// ngx-lib modules
|
|
111
|
-
ngxLib.PepNgxLibModule,
|
|
112
|
-
icon.PepIconModule
|
|
113
|
-
],
|
|
114
|
-
exports: [PepBreadCrumbsComponent],
|
|
115
|
-
declarations: [PepBreadCrumbsComponent]
|
|
116
|
-
},] }
|
|
117
|
-
];
|
|
118
|
-
PepBreadCrumbsModule.ctorParameters = function () { return [
|
|
119
|
-
{ type: icon.PepIconRegistry }
|
|
93
|
+
var PepBreadCrumbsModule = /** @class */ (function () {
|
|
94
|
+
function PepBreadCrumbsModule(pepIconRegistry) {
|
|
95
|
+
this.pepIconRegistry = pepIconRegistry;
|
|
96
|
+
this.pepIconRegistry.registerIcons([
|
|
97
|
+
icon.pepIconArrowRight,
|
|
98
|
+
icon.pepIconArrowLeft,
|
|
99
|
+
]);
|
|
100
|
+
}
|
|
101
|
+
return PepBreadCrumbsModule;
|
|
102
|
+
}());
|
|
103
|
+
PepBreadCrumbsModule.decorators = [
|
|
104
|
+
{ type: core.NgModule, args: [{
|
|
105
|
+
imports: [
|
|
106
|
+
common.CommonModule,
|
|
107
|
+
// Material modules
|
|
108
|
+
icon$1.MatIconModule,
|
|
109
|
+
menu.MatMenuModule,
|
|
110
|
+
// ngx-lib modules
|
|
111
|
+
ngxLib.PepNgxLibModule,
|
|
112
|
+
icon.PepIconModule
|
|
113
|
+
],
|
|
114
|
+
exports: [PepBreadCrumbsComponent],
|
|
115
|
+
declarations: [PepBreadCrumbsComponent]
|
|
116
|
+
},] }
|
|
117
|
+
];
|
|
118
|
+
PepBreadCrumbsModule.ctorParameters = function () { return [
|
|
119
|
+
{ type: icon.PepIconRegistry }
|
|
120
120
|
]; };
|
|
121
121
|
|
|
122
|
-
var PepBreadCrumbItem = /** @class */ (function () {
|
|
123
|
-
function PepBreadCrumbItem(data) {
|
|
124
|
-
this.disabled = false;
|
|
125
|
-
Object.assign(this, data);
|
|
126
|
-
}
|
|
127
|
-
return PepBreadCrumbItem;
|
|
122
|
+
var PepBreadCrumbItem = /** @class */ (function () {
|
|
123
|
+
function PepBreadCrumbItem(data) {
|
|
124
|
+
this.disabled = false;
|
|
125
|
+
Object.assign(this, data);
|
|
126
|
+
}
|
|
127
|
+
return PepBreadCrumbItem;
|
|
128
128
|
}());
|
|
129
129
|
|
|
130
|
-
/*
|
|
131
|
-
* Public API Surface of ngx-lib/bread-crumbs
|
|
130
|
+
/*
|
|
131
|
+
* Public API Surface of ngx-lib/bread-crumbs
|
|
132
132
|
*/
|
|
133
133
|
|
|
134
|
-
/**
|
|
135
|
-
* Generated bundle index. Do not edit.
|
|
134
|
+
/**
|
|
135
|
+
* Generated bundle index. Do not edit.
|
|
136
136
|
*/
|
|
137
137
|
|
|
138
138
|
exports.PepBreadCrumbItem = PepBreadCrumbItem;
|
|
@@ -4,172 +4,172 @@
|
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['pepperi-addons'] = global['pepperi-addons'] || {}, global['pepperi-addons']['ngx-lib'] = global['pepperi-addons']['ngx-lib'] || {}, global['pepperi-addons']['ngx-lib'].button = {}), global.ng.core, global.ng.common, global.ng.material.core, global.ng.material.button, global.ng.material.icon, global['pepperi-addons']['ngx-lib'].icon, global['pepperi-addons']['ngx-lib']));
|
|
5
5
|
}(this, (function (exports, core, common, core$1, button, icon, icon$1, ngxLib) { 'use strict';
|
|
6
6
|
|
|
7
|
-
var PepButton = /** @class */ (function () {
|
|
8
|
-
function PepButton(data) {
|
|
9
|
-
Object.assign(this, data);
|
|
10
|
-
}
|
|
11
|
-
return PepButton;
|
|
7
|
+
var PepButton = /** @class */ (function () {
|
|
8
|
+
function PepButton(data) {
|
|
9
|
+
Object.assign(this, data);
|
|
10
|
+
}
|
|
11
|
+
return PepButton;
|
|
12
12
|
}());
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* This is a button component that support pepperi theme
|
|
16
|
-
* style & state & sizes
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @class PepButtonComponent
|
|
20
|
-
* @implements {OnDestroy}
|
|
21
|
-
*/
|
|
22
|
-
var PepButtonComponent = /** @class */ (function () {
|
|
23
|
-
function PepButtonComponent(renderer, element) {
|
|
24
|
-
this.renderer = renderer;
|
|
25
|
-
this.element = element;
|
|
26
|
-
/**
|
|
27
|
-
* The style of the button.
|
|
28
|
-
*
|
|
29
|
-
* @type {PepStyleType}
|
|
30
|
-
* @memberof PepButtonComponent
|
|
31
|
-
*/
|
|
32
|
-
this.styleType = 'weak';
|
|
33
|
-
/**
|
|
34
|
-
* The style state of the button.
|
|
35
|
-
*
|
|
36
|
-
* @type {PepStyleStateType}
|
|
37
|
-
* @memberof PepButtonComponent
|
|
38
|
-
*/
|
|
39
|
-
this.styleStateType = 'system';
|
|
40
|
-
/**
|
|
41
|
-
* The size of the button.
|
|
42
|
-
*
|
|
43
|
-
* @type {PepSizeType}
|
|
44
|
-
* @memberof PepButtonComponent
|
|
45
|
-
*/
|
|
46
|
-
this.sizeType = 'md';
|
|
47
|
-
/**
|
|
48
|
-
* Class names that should be on the button element tag like classNames="class1 class2"
|
|
49
|
-
*
|
|
50
|
-
* @memberof PepButtonComponent
|
|
51
|
-
*/
|
|
52
|
-
this.classNames = '';
|
|
53
|
-
/**
|
|
54
|
-
* If the button is disable or not.
|
|
55
|
-
*
|
|
56
|
-
* @type {boolean}
|
|
57
|
-
* @memberof PepButtonComponent
|
|
58
|
-
*/
|
|
59
|
-
this.disabled = false;
|
|
60
|
-
/**
|
|
61
|
-
* The icon position.
|
|
62
|
-
*
|
|
63
|
-
* @type {('start' | 'end')}
|
|
64
|
-
* @memberof PepButtonComponent
|
|
65
|
-
*/
|
|
66
|
-
this.iconPosition = 'end';
|
|
67
|
-
this._visible = true;
|
|
68
|
-
/**
|
|
69
|
-
* The button click event.
|
|
70
|
-
*
|
|
71
|
-
* @type {EventEmitter<IPepButtonClickEvent>}
|
|
72
|
-
* @memberof PepButtonComponent
|
|
73
|
-
*/
|
|
74
|
-
this.buttonClick = new core.EventEmitter();
|
|
75
|
-
}
|
|
76
|
-
Object.defineProperty(PepButtonComponent.prototype, "visible", {
|
|
77
|
-
get: function () {
|
|
78
|
-
return this._visible;
|
|
79
|
-
},
|
|
80
|
-
/**
|
|
81
|
-
* If the button is visible or not.
|
|
82
|
-
*
|
|
83
|
-
* @memberof PepButtonComponent
|
|
84
|
-
*/
|
|
85
|
-
set: function (visible) {
|
|
86
|
-
if (visible !== undefined) {
|
|
87
|
-
this._visible = !!visible;
|
|
88
|
-
if (visible) {
|
|
89
|
-
this.renderer.removeClass(this.element.nativeElement, 'hidden-element');
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
this.renderer.addClass(this.element.nativeElement, 'hidden-element');
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
enumerable: false,
|
|
97
|
-
configurable: true
|
|
98
|
-
});
|
|
99
|
-
PepButtonComponent.prototype.ngOnDestroy = function () {
|
|
100
|
-
// if (this.buttonClick) {
|
|
101
|
-
// this.buttonClick.unsubscribe();
|
|
102
|
-
// }
|
|
103
|
-
};
|
|
104
|
-
/**
|
|
105
|
-
* The button click
|
|
106
|
-
*/
|
|
107
|
-
PepButtonComponent.prototype.onButtonClicked = function (event) {
|
|
108
|
-
var button = new PepButton({
|
|
109
|
-
key: this.key,
|
|
110
|
-
value: this.value,
|
|
111
|
-
});
|
|
112
|
-
var buttonClick = {
|
|
113
|
-
source: button,
|
|
114
|
-
event: event,
|
|
115
|
-
};
|
|
116
|
-
this.buttonClick.emit(buttonClick);
|
|
117
|
-
};
|
|
118
|
-
return PepButtonComponent;
|
|
119
|
-
}());
|
|
120
|
-
PepButtonComponent.decorators = [
|
|
121
|
-
{ type: core.Component, args: [{
|
|
122
|
-
selector: 'pep-button',
|
|
123
|
-
template: "<button mat-button [pepDataQa]=\"key ? key : value\"\n class=\"pep-button {{ sizeType }} {{ styleType }} {{ styleStateType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': iconName && !value }\" [disabled]=\"disabled\" (click)=\"onButtonClicked($event)\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\">\n </ng-container>\n</button>\n\n<ng-template #contentTemplate>\n <mat-icon *ngIf=\"iconName && iconPosition === 'start'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n <span *ngIf=\"value\" class=\"ellipsis pull-left flip\"\n [ngClass]=\"{ 'button-title-with-icon': iconName, 'icon-before': iconPosition === 'start' }\" [title]=\"value\">\n {{value}}\n </span>\n <mat-icon *ngIf=\"iconName && iconPosition === 'end'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n</ng-template>",
|
|
124
|
-
styles: [":host{display:grid}", ""]
|
|
125
|
-
},] }
|
|
126
|
-
];
|
|
127
|
-
PepButtonComponent.ctorParameters = function () { return [
|
|
128
|
-
{ type: core.Renderer2 },
|
|
129
|
-
{ type: core.ElementRef }
|
|
130
|
-
]; };
|
|
131
|
-
PepButtonComponent.propDecorators = {
|
|
132
|
-
key: [{ type: core.Input }],
|
|
133
|
-
value: [{ type: core.Input }],
|
|
134
|
-
styleType: [{ type: core.Input }],
|
|
135
|
-
styleStateType: [{ type: core.Input }],
|
|
136
|
-
sizeType: [{ type: core.Input }],
|
|
137
|
-
classNames: [{ type: core.Input }],
|
|
138
|
-
disabled: [{ type: core.Input }],
|
|
139
|
-
iconName: [{ type: core.Input }],
|
|
140
|
-
iconPosition: [{ type: core.Input }],
|
|
141
|
-
visible: [{ type: core.Input }],
|
|
142
|
-
buttonClick: [{ type: core.Output }]
|
|
14
|
+
/**
|
|
15
|
+
* This is a button component that support pepperi theme
|
|
16
|
+
* style & state & sizes
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @class PepButtonComponent
|
|
20
|
+
* @implements {OnDestroy}
|
|
21
|
+
*/
|
|
22
|
+
var PepButtonComponent = /** @class */ (function () {
|
|
23
|
+
function PepButtonComponent(renderer, element) {
|
|
24
|
+
this.renderer = renderer;
|
|
25
|
+
this.element = element;
|
|
26
|
+
/**
|
|
27
|
+
* The style of the button.
|
|
28
|
+
*
|
|
29
|
+
* @type {PepStyleType}
|
|
30
|
+
* @memberof PepButtonComponent
|
|
31
|
+
*/
|
|
32
|
+
this.styleType = 'weak';
|
|
33
|
+
/**
|
|
34
|
+
* The style state of the button.
|
|
35
|
+
*
|
|
36
|
+
* @type {PepStyleStateType}
|
|
37
|
+
* @memberof PepButtonComponent
|
|
38
|
+
*/
|
|
39
|
+
this.styleStateType = 'system';
|
|
40
|
+
/**
|
|
41
|
+
* The size of the button.
|
|
42
|
+
*
|
|
43
|
+
* @type {PepSizeType}
|
|
44
|
+
* @memberof PepButtonComponent
|
|
45
|
+
*/
|
|
46
|
+
this.sizeType = 'md';
|
|
47
|
+
/**
|
|
48
|
+
* Class names that should be on the button element tag like classNames="class1 class2"
|
|
49
|
+
*
|
|
50
|
+
* @memberof PepButtonComponent
|
|
51
|
+
*/
|
|
52
|
+
this.classNames = '';
|
|
53
|
+
/**
|
|
54
|
+
* If the button is disable or not.
|
|
55
|
+
*
|
|
56
|
+
* @type {boolean}
|
|
57
|
+
* @memberof PepButtonComponent
|
|
58
|
+
*/
|
|
59
|
+
this.disabled = false;
|
|
60
|
+
/**
|
|
61
|
+
* The icon position.
|
|
62
|
+
*
|
|
63
|
+
* @type {('start' | 'end')}
|
|
64
|
+
* @memberof PepButtonComponent
|
|
65
|
+
*/
|
|
66
|
+
this.iconPosition = 'end';
|
|
67
|
+
this._visible = true;
|
|
68
|
+
/**
|
|
69
|
+
* The button click event.
|
|
70
|
+
*
|
|
71
|
+
* @type {EventEmitter<IPepButtonClickEvent>}
|
|
72
|
+
* @memberof PepButtonComponent
|
|
73
|
+
*/
|
|
74
|
+
this.buttonClick = new core.EventEmitter();
|
|
75
|
+
}
|
|
76
|
+
Object.defineProperty(PepButtonComponent.prototype, "visible", {
|
|
77
|
+
get: function () {
|
|
78
|
+
return this._visible;
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* If the button is visible or not.
|
|
82
|
+
*
|
|
83
|
+
* @memberof PepButtonComponent
|
|
84
|
+
*/
|
|
85
|
+
set: function (visible) {
|
|
86
|
+
if (visible !== undefined) {
|
|
87
|
+
this._visible = !!visible;
|
|
88
|
+
if (visible) {
|
|
89
|
+
this.renderer.removeClass(this.element.nativeElement, 'hidden-element');
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
this.renderer.addClass(this.element.nativeElement, 'hidden-element');
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
enumerable: false,
|
|
97
|
+
configurable: true
|
|
98
|
+
});
|
|
99
|
+
PepButtonComponent.prototype.ngOnDestroy = function () {
|
|
100
|
+
// if (this.buttonClick) {
|
|
101
|
+
// this.buttonClick.unsubscribe();
|
|
102
|
+
// }
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* The button click
|
|
106
|
+
*/
|
|
107
|
+
PepButtonComponent.prototype.onButtonClicked = function (event) {
|
|
108
|
+
var button = new PepButton({
|
|
109
|
+
key: this.key,
|
|
110
|
+
value: this.value,
|
|
111
|
+
});
|
|
112
|
+
var buttonClick = {
|
|
113
|
+
source: button,
|
|
114
|
+
event: event,
|
|
115
|
+
};
|
|
116
|
+
this.buttonClick.emit(buttonClick);
|
|
117
|
+
};
|
|
118
|
+
return PepButtonComponent;
|
|
119
|
+
}());
|
|
120
|
+
PepButtonComponent.decorators = [
|
|
121
|
+
{ type: core.Component, args: [{
|
|
122
|
+
selector: 'pep-button',
|
|
123
|
+
template: "<button mat-button [pepDataQa]=\"key ? key : value\"\n class=\"pep-button {{ sizeType }} {{ styleType }} {{ styleStateType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': iconName && !value }\" [disabled]=\"disabled\" (click)=\"onButtonClicked($event)\">\n <ng-container *ngTemplateOutlet=\"contentTemplate\">\n </ng-container>\n</button>\n\n<ng-template #contentTemplate>\n <mat-icon *ngIf=\"iconName && iconPosition === 'start'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n <span *ngIf=\"value\" class=\"ellipsis pull-left flip\"\n [ngClass]=\"{ 'button-title-with-icon': iconName, 'icon-before': iconPosition === 'start' }\" [title]=\"value\">\n {{value}}\n </span>\n <mat-icon *ngIf=\"iconName && iconPosition === 'end'\" [ngClass]=\"{ 'pull-left flip': value }\">\n <pep-icon name=\"{{iconName}}\"></pep-icon>\n </mat-icon>\n</ng-template>",
|
|
124
|
+
styles: [":host{display:grid}", ""]
|
|
125
|
+
},] }
|
|
126
|
+
];
|
|
127
|
+
PepButtonComponent.ctorParameters = function () { return [
|
|
128
|
+
{ type: core.Renderer2 },
|
|
129
|
+
{ type: core.ElementRef }
|
|
130
|
+
]; };
|
|
131
|
+
PepButtonComponent.propDecorators = {
|
|
132
|
+
key: [{ type: core.Input }],
|
|
133
|
+
value: [{ type: core.Input }],
|
|
134
|
+
styleType: [{ type: core.Input }],
|
|
135
|
+
styleStateType: [{ type: core.Input }],
|
|
136
|
+
sizeType: [{ type: core.Input }],
|
|
137
|
+
classNames: [{ type: core.Input }],
|
|
138
|
+
disabled: [{ type: core.Input }],
|
|
139
|
+
iconName: [{ type: core.Input }],
|
|
140
|
+
iconPosition: [{ type: core.Input }],
|
|
141
|
+
visible: [{ type: core.Input }],
|
|
142
|
+
buttonClick: [{ type: core.Output }]
|
|
143
143
|
};
|
|
144
144
|
|
|
145
|
-
var PepButtonModule = /** @class */ (function () {
|
|
146
|
-
function PepButtonModule() {
|
|
147
|
-
}
|
|
148
|
-
return PepButtonModule;
|
|
149
|
-
}());
|
|
150
|
-
PepButtonModule.decorators = [
|
|
151
|
-
{ type: core.NgModule, args: [{
|
|
152
|
-
imports: [
|
|
153
|
-
common.CommonModule,
|
|
154
|
-
// Material modules
|
|
155
|
-
core$1.MatCommonModule,
|
|
156
|
-
button.MatButtonModule,
|
|
157
|
-
icon.MatIconModule,
|
|
158
|
-
// ngx-lib modules
|
|
159
|
-
ngxLib.PepNgxLibModule,
|
|
160
|
-
icon$1.PepIconModule,
|
|
161
|
-
],
|
|
162
|
-
exports: [PepButtonComponent],
|
|
163
|
-
declarations: [PepButtonComponent],
|
|
164
|
-
},] }
|
|
145
|
+
var PepButtonModule = /** @class */ (function () {
|
|
146
|
+
function PepButtonModule() {
|
|
147
|
+
}
|
|
148
|
+
return PepButtonModule;
|
|
149
|
+
}());
|
|
150
|
+
PepButtonModule.decorators = [
|
|
151
|
+
{ type: core.NgModule, args: [{
|
|
152
|
+
imports: [
|
|
153
|
+
common.CommonModule,
|
|
154
|
+
// Material modules
|
|
155
|
+
core$1.MatCommonModule,
|
|
156
|
+
button.MatButtonModule,
|
|
157
|
+
icon.MatIconModule,
|
|
158
|
+
// ngx-lib modules
|
|
159
|
+
ngxLib.PepNgxLibModule,
|
|
160
|
+
icon$1.PepIconModule,
|
|
161
|
+
],
|
|
162
|
+
exports: [PepButtonComponent],
|
|
163
|
+
declarations: [PepButtonComponent],
|
|
164
|
+
},] }
|
|
165
165
|
];
|
|
166
166
|
|
|
167
|
-
/*
|
|
168
|
-
* Public API Surface of ngx-lib/button
|
|
167
|
+
/*
|
|
168
|
+
* Public API Surface of ngx-lib/button
|
|
169
169
|
*/
|
|
170
170
|
|
|
171
|
-
/**
|
|
172
|
-
* Generated bundle index. Do not edit.
|
|
171
|
+
/**
|
|
172
|
+
* Generated bundle index. Do not edit.
|
|
173
173
|
*/
|
|
174
174
|
|
|
175
175
|
exports.PepButton = PepButton;
|