@pepperi-addons/ngx-lib 0.3.15-beta.60 → 0.3.15-beta.61
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 +302 -302
- package/bundles/pepperi-addons-ngx-lib-date.umd.js +667 -667
- package/bundles/pepperi-addons-ngx-lib-dialog.umd.js +519 -519
- 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 +3253 -3253
- 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 +324 -324
- package/bundles/pepperi-addons-ngx-lib-images-filmstrip.umd.js +360 -360
- package/bundles/pepperi-addons-ngx-lib-link.umd.js +388 -388
- package/bundles/pepperi-addons-ngx-lib-list.umd.js +3191 -3191
- 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 +930 -930
- package/bundles/pepperi-addons-ngx-lib-query-builder.umd.js +1181 -1181
- package/bundles/pepperi-addons-ngx-lib-remote-loader.umd.js +683 -683
- 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 +587 -587
- package/bundles/pepperi-addons-ngx-lib-separator.umd.js +79 -79
- package/bundles/pepperi-addons-ngx-lib-side-bar.umd.js +165 -165
- package/bundles/pepperi-addons-ngx-lib-signature.umd.js +286 -286
- 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 +1974 -1974
- package/bundles/pepperi-addons-ngx-lib-snack-bar.umd.js +148 -148
- 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 +553 -553
- package/bundles/pepperi-addons-ngx-lib-top-bar.umd.js +129 -129
- package/bundles/pepperi-addons-ngx-lib.umd.js +4963 -4962
- 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 +54 -54
- package/color/color.component.d.ts +27 -27
- 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/date-ago.pipe.d.ts +8 -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 +38 -38
- 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 +41 -41
- 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 +34 -34
- 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 +266 -266
- package/core/customization/customization.service.d.ts +156 -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 +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 +66 -66
- 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 +9 -9
- package/dialog/dialog.component.d.ts +10 -10
- package/dialog/dialog.model.d.ts +31 -31
- 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 +11 -11
- 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/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 +197 -197
- package/esm2015/color/color.component.js +77 -77
- 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/date-ago.pipe.js +44 -44
- package/esm2015/core/common/pipes/index.js +4 -4
- package/esm2015/core/common/pipes/public-api.js +5 -5
- package/esm2015/core/common/public-api.js +7 -7
- package/esm2015/core/common/services/addon.service.js +160 -160
- 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 +117 -117
- 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 +253 -253
- 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 +777 -777
- 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 +31 -31
- 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 +251 -251
- 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 +31 -31
- package/esm2015/dialog/dialog.component.js +28 -28
- package/esm2015/dialog/dialog.model.js +34 -34
- package/esm2015/dialog/dialog.module.js +39 -39
- package/esm2015/dialog/dialog.service.js +87 -87
- 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 +1200 -1200
- 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 +228 -228
- package/esm2015/image/image.module.js +48 -48
- package/esm2015/image/image.service.js +56 -56
- 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 +316 -316
- package/esm2015/images-filmstrip/images-filmstrip.module.js +51 -51
- 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 +315 -315
- package/esm2015/link/link.module.js +50 -50
- package/esm2015/link/link.pipes.js +13 -13
- 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 +1127 -1127
- 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 +96 -94
- 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 +472 -472
- 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 +265 -265
- 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 +112 -112
- package/esm2015/query-builder/common/services/query-structure.service.js +228 -228
- package/esm2015/query-builder/common/services/type-convertor.service.js +39 -39
- package/esm2015/query-builder/pepperi-addons-ngx-lib-query-builder.js +9 -9
- package/esm2015/query-builder/public-api.js +8 -8
- package/esm2015/query-builder/query-builder-item/query-builder-item.component.js +117 -117
- package/esm2015/query-builder/query-builder-section/query-builder-section.component.js +63 -63
- package/esm2015/query-builder/query-builder.component.js +107 -107
- package/esm2015/query-builder/query-builder.module.js +34 -34
- package/esm2015/query-builder/query-builder.service.js +102 -102
- package/esm2015/remote-loader/addon-block-loader.component.js +77 -77
- package/esm2015/remote-loader/addon-block-loader.service.js +63 -63
- package/esm2015/remote-loader/pepperi-addons-ngx-lib-remote-loader.js +4 -4
- package/esm2015/remote-loader/public-api.js +9 -9
- package/esm2015/remote-loader/remote-loader.component.js +114 -114
- package/esm2015/remote-loader/remote-loader.model.js +1 -1
- package/esm2015/remote-loader/remote-loader.module.js +37 -37
- package/esm2015/remote-loader/remote-loader.service.js +65 -65
- 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 +219 -219
- 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 +132 -132
- 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 +233 -233
- 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 +70 -70
- package/esm2015/smart-filters/common/filter-actions.component.js +25 -25
- package/esm2015/smart-filters/common/model/base-filter-component.js +291 -291
- 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 +270 -270
- package/esm2015/smart-filters/common/model/type.js +1 -1
- package/esm2015/smart-filters/date-filter/date-filter.component.js +163 -163
- package/esm2015/smart-filters/multi-select-filter/multi-select-filter.component.js +190 -190
- package/esm2015/smart-filters/number-filter/number-filter.component.js +109 -109
- 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 +85 -85
- package/esm2015/snack-bar/default-snack-bar.component.js +27 -27
- package/esm2015/snack-bar/pepperi-addons-ngx-lib-snack-bar.js +5 -5
- package/esm2015/snack-bar/public-api.js +7 -7
- package/esm2015/snack-bar/snack-bar.component.js +25 -25
- package/esm2015/snack-bar/snack-bar.model.js +6 -6
- package/esm2015/snack-bar/snack-bar.module.js +41 -41
- package/esm2015/snack-bar/snack-bar.service.js +62 -62
- 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 +411 -411
- 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 +298 -298
- package/fesm2015/pepperi-addons-ngx-lib-date.js +320 -320
- package/fesm2015/pepperi-addons-ngx-lib-dialog.js +192 -192
- 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 +2697 -2697
- 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 +308 -308
- package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.js +347 -347
- package/fesm2015/pepperi-addons-ngx-lib-link.js +358 -358
- package/fesm2015/pepperi-addons-ngx-lib-list.js +2661 -2661
- 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 +561 -561
- package/fesm2015/pepperi-addons-ngx-lib-query-builder.js +1087 -1087
- package/fesm2015/pepperi-addons-ngx-lib-remote-loader.js +327 -327
- 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 +249 -249
- package/fesm2015/pepperi-addons-ngx-lib-separator.js +71 -71
- package/fesm2015/pepperi-addons-ngx-lib-side-bar.js +156 -156
- package/fesm2015/pepperi-addons-ngx-lib-signature.js +270 -270
- 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 +1539 -1539
- package/fesm2015/pepperi-addons-ngx-lib-snack-bar.js +137 -137
- 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 +521 -521
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.js +125 -125
- package/fesm2015/pepperi-addons-ngx-lib.js +4320 -4319
- 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 +90 -90
- 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 +63 -63
- 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 +84 -84
- 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 +131 -131
- 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 +161 -161
- package/list/list.model.d.ts +31 -31
- 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/pepperi-addons-ngx-lib.metadata.json +1 -1
- 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 +98 -98
- 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/query-structure.service.d.ts +78 -78
- package/query-builder/common/services/type-convertor.service.d.ts +10 -10
- package/query-builder/pepperi-addons-ngx-lib-query-builder.d.ts +9 -9
- package/query-builder/public-api.d.ts +5 -5
- package/query-builder/query-builder-item/query-builder-item.component.d.ts +38 -38
- package/query-builder/query-builder-section/query-builder-section.component.d.ts +27 -27
- package/query-builder/query-builder.component.d.ts +36 -36
- package/query-builder/query-builder.module.d.ts +2 -2
- package/query-builder/query-builder.service.d.ts +27 -27
- package/remote-loader/addon-block-loader.component.d.ts +29 -29
- package/remote-loader/addon-block-loader.service.d.ts +13 -13
- package/remote-loader/pepperi-addons-ngx-lib-remote-loader.d.ts +4 -4
- package/remote-loader/public-api.d.ts +6 -6
- package/remote-loader/remote-loader.component.d.ts +24 -24
- package/remote-loader/remote-loader.model.d.ts +36 -36
- package/remote-loader/remote-loader.module.d.ts +2 -2
- package/remote-loader/remote-loader.service.d.ts +14 -14
- 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 +52 -52
- 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 +39 -39
- 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 +65 -65
- 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 +25 -25
- package/smart-filters/common/filter-actions.component.d.ts +9 -9
- package/smart-filters/common/model/base-filter-component.d.ts +70 -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 +56 -56
- package/smart-filters/multi-select-filter/multi-select-filter.component.d.ts +53 -53
- package/smart-filters/number-filter/number-filter.component.d.ts +48 -48
- 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 +25 -25
- package/snack-bar/default-snack-bar.component.d.ts +10 -10
- package/snack-bar/pepperi-addons-ngx-lib-snack-bar.d.ts +5 -5
- package/snack-bar/public-api.d.ts +4 -4
- package/snack-bar/snack-bar.component.d.ts +9 -9
- package/snack-bar/snack-bar.model.d.ts +8 -8
- package/snack-bar/snack-bar.module.d.ts +5 -5
- package/snack-bar/snack-bar.service.d.ts +21 -21
- 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 +141 -141
- 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
|
@@ -1,412 +1,412 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ElementRef, ViewChild, Renderer2, HostBinding, } from '@angular/core';
|
|
2
|
-
import { FormBuilder } from '@angular/forms';
|
|
3
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
-
import { PepCustomizationService, DEFAULT_HORIZONTAL_ALIGNMENT, PepTextboxField, PepUtilitiesService, } from '@pepperi-addons/ngx-lib';
|
|
5
|
-
/**
|
|
6
|
-
* This is a text box input component that can be use to
|
|
7
|
-
*
|
|
8
|
-
* @export
|
|
9
|
-
* @class PepTextboxComponent
|
|
10
|
-
* @implements {OnChanges}
|
|
11
|
-
* @implements {OnInit}
|
|
12
|
-
* @implements {OnDestroy}
|
|
13
|
-
*/
|
|
14
|
-
export class PepTextboxComponent {
|
|
15
|
-
constructor(fb, customizationService, renderer, element, translate, utilitiesService) {
|
|
16
|
-
this.fb = fb;
|
|
17
|
-
this.customizationService = customizationService;
|
|
18
|
-
this.renderer = renderer;
|
|
19
|
-
this.element = element;
|
|
20
|
-
this.translate = translate;
|
|
21
|
-
this.utilitiesService = utilitiesService;
|
|
22
|
-
this.dataQa = '';
|
|
23
|
-
this._key = '';
|
|
24
|
-
this._value = '';
|
|
25
|
-
this._formattedValue = '';
|
|
26
|
-
/**
|
|
27
|
-
* The accessory sign.
|
|
28
|
-
*
|
|
29
|
-
* @memberof PepTextboxComponent
|
|
30
|
-
*/
|
|
31
|
-
this.accessory = '';
|
|
32
|
-
/**
|
|
33
|
-
* The title of the textbox.
|
|
34
|
-
*
|
|
35
|
-
* @memberof PepTextboxComponent
|
|
36
|
-
*/
|
|
37
|
-
this.label = '';
|
|
38
|
-
/**
|
|
39
|
-
* The placeholder (relevant only for children - if parent isn't null).
|
|
40
|
-
*
|
|
41
|
-
* @memberof PepTextboxComponent
|
|
42
|
-
*/
|
|
43
|
-
this.placeholder = '';
|
|
44
|
-
/**
|
|
45
|
-
* The type of the textbox.
|
|
46
|
-
*
|
|
47
|
-
* @type {PepTextboxFieldType}
|
|
48
|
-
* @memberof PepTextboxComponent
|
|
49
|
-
*/
|
|
50
|
-
this._type = 'text';
|
|
51
|
-
/**
|
|
52
|
-
* If the textbox is mandatory
|
|
53
|
-
*
|
|
54
|
-
* @memberof PepTextboxComponent
|
|
55
|
-
*/
|
|
56
|
-
this.mandatory = false;
|
|
57
|
-
// TODO: Check if should remove disabled and keep only readonly.
|
|
58
|
-
/**
|
|
59
|
-
* If the textbox is disabled.
|
|
60
|
-
*
|
|
61
|
-
* @memberof PepTextboxComponent
|
|
62
|
-
*/
|
|
63
|
-
this.disabled = false;
|
|
64
|
-
/**
|
|
65
|
-
* If the textbox is readonly
|
|
66
|
-
*
|
|
67
|
-
* @memberof PepTextboxComponent
|
|
68
|
-
*/
|
|
69
|
-
this.readonly = false;
|
|
70
|
-
this.textColor = '';
|
|
71
|
-
this.xAlignment = DEFAULT_HORIZONTAL_ALIGNMENT;
|
|
72
|
-
this.rowSpan = 1;
|
|
73
|
-
// @Input() lastFocusField: any;
|
|
74
|
-
this.minValue = NaN;
|
|
75
|
-
this.maxValue = NaN;
|
|
76
|
-
this._visible = true;
|
|
77
|
-
this.form = null;
|
|
78
|
-
this.isActive = false;
|
|
79
|
-
this.showTitle = true;
|
|
80
|
-
this.renderTitle = true;
|
|
81
|
-
this.renderError = true;
|
|
82
|
-
this.renderSymbol = true;
|
|
83
|
-
this.layoutType = 'form';
|
|
84
|
-
this.parentFieldKey = null;
|
|
85
|
-
/**
|
|
86
|
-
* The value change event.
|
|
87
|
-
*
|
|
88
|
-
* @type {EventEmitter<string>}
|
|
89
|
-
* @memberof PepTextboxComponent
|
|
90
|
-
*/
|
|
91
|
-
this.valueChange = new EventEmitter();
|
|
92
|
-
this.formValidationChange = new EventEmitter();
|
|
93
|
-
this._calculateFormattedValue = true;
|
|
94
|
-
this.controlType = 'textbox';
|
|
95
|
-
this.standAlone = false;
|
|
96
|
-
this.isInEditMode = false;
|
|
97
|
-
this.isInFocus = false;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* The text box key
|
|
101
|
-
*
|
|
102
|
-
* @memberof PepTextboxComponent
|
|
103
|
-
*/
|
|
104
|
-
set key(value) {
|
|
105
|
-
this._key = value;
|
|
106
|
-
this.dataQa = value;
|
|
107
|
-
}
|
|
108
|
-
get key() {
|
|
109
|
-
return this._key;
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* The value of the text box.
|
|
113
|
-
*
|
|
114
|
-
* @memberof PepTextboxComponent
|
|
115
|
-
*/
|
|
116
|
-
set value(value) {
|
|
117
|
-
if (!value) {
|
|
118
|
-
value = '';
|
|
119
|
-
}
|
|
120
|
-
this._value = value;
|
|
121
|
-
this.setFormattedValue(value);
|
|
122
|
-
}
|
|
123
|
-
get value() {
|
|
124
|
-
return this._value;
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* The formatted value.
|
|
128
|
-
*
|
|
129
|
-
* @memberof PepTextboxComponent
|
|
130
|
-
*/
|
|
131
|
-
set formattedValue(value) {
|
|
132
|
-
// Do nothing.
|
|
133
|
-
// if (!value) {
|
|
134
|
-
// value = '';
|
|
135
|
-
// }
|
|
136
|
-
// if (this._calculateFormattedValue) {
|
|
137
|
-
// this._calculateFormattedValue = false;
|
|
138
|
-
// }
|
|
139
|
-
// this.setFormattedValue(value);
|
|
140
|
-
}
|
|
141
|
-
get formattedValue() {
|
|
142
|
-
return this._formattedValue;
|
|
143
|
-
}
|
|
144
|
-
set type(value) {
|
|
145
|
-
this._type = value;
|
|
146
|
-
if (this.value) {
|
|
147
|
-
this.setFormattedValue(this.value);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
get type() {
|
|
151
|
-
return this._type;
|
|
152
|
-
}
|
|
153
|
-
set visible(visible) {
|
|
154
|
-
this._visible = visible;
|
|
155
|
-
if (visible) {
|
|
156
|
-
this.renderer.removeClass(this.element.nativeElement, 'hidden-element');
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
this.renderer.addClass(this.element.nativeElement, 'hidden-element');
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
get visible() {
|
|
163
|
-
return this._visible;
|
|
164
|
-
}
|
|
165
|
-
get calculateFormattedValue() {
|
|
166
|
-
return this._calculateFormattedValue;
|
|
167
|
-
}
|
|
168
|
-
setFormattedValue(value) {
|
|
169
|
-
if (this._calculateFormattedValue) {
|
|
170
|
-
if (this.type === 'currency') {
|
|
171
|
-
this._formattedValue = this.utilitiesService.formatCurrency(value, this.accessory);
|
|
172
|
-
}
|
|
173
|
-
else if (this.type === 'percentage') {
|
|
174
|
-
this._formattedValue = this.utilitiesService.formatPercent(value);
|
|
175
|
-
}
|
|
176
|
-
else if (this.type === 'real') {
|
|
177
|
-
this._formattedValue = this.utilitiesService.formatDecimal(value);
|
|
178
|
-
}
|
|
179
|
-
else if (this.type === 'int') {
|
|
180
|
-
this._formattedValue = this.utilitiesService.formatNumber(value);
|
|
181
|
-
}
|
|
182
|
-
else if (this.type === 'duration') {
|
|
183
|
-
this._formattedValue = this.utilitiesService.formatDuration(value, { duration: 'seconds' });
|
|
184
|
-
}
|
|
185
|
-
else {
|
|
186
|
-
this._formattedValue = value;
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
this._formattedValue = value;
|
|
191
|
-
}
|
|
192
|
-
this.updateFormFieldValue();
|
|
193
|
-
}
|
|
194
|
-
updateFormFieldValue() {
|
|
195
|
-
this.customizationService.updateFormFieldValue(this.form, this.key, this.formattedValue, this.parentFieldKey);
|
|
196
|
-
}
|
|
197
|
-
get displayValue() {
|
|
198
|
-
let res = '';
|
|
199
|
-
if (this.type == 'link') {
|
|
200
|
-
res = this.formattedValue;
|
|
201
|
-
}
|
|
202
|
-
else if (this.isNumberType()) {
|
|
203
|
-
res = this.isInFocus ? (this.value.length > 0 ? parseFloat(this.value).toString() : '') : this.formattedValue;
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
res = this.isInFocus ? this.value : this.formattedValue;
|
|
207
|
-
}
|
|
208
|
-
return res;
|
|
209
|
-
}
|
|
210
|
-
setDefaultForm() {
|
|
211
|
-
const pepField = new PepTextboxField({
|
|
212
|
-
key: this.key,
|
|
213
|
-
value: this.value,
|
|
214
|
-
mandatory: this.mandatory,
|
|
215
|
-
readonly: this.readonly,
|
|
216
|
-
disabled: this.disabled,
|
|
217
|
-
maxFieldCharacters: this.maxFieldCharacters,
|
|
218
|
-
type: this.type,
|
|
219
|
-
minValue: this.minValue,
|
|
220
|
-
maxValue: this.maxValue,
|
|
221
|
-
});
|
|
222
|
-
this.form = this.customizationService.getDefaultFromGroup(pepField, this.renderError);
|
|
223
|
-
}
|
|
224
|
-
ngOnInit() {
|
|
225
|
-
if (this.form === null) {
|
|
226
|
-
this.standAlone = true;
|
|
227
|
-
this.minValue =
|
|
228
|
-
isNaN(this.minValue) && !isNaN(this.maxValue)
|
|
229
|
-
? 0
|
|
230
|
-
: this.minValue;
|
|
231
|
-
this.maxValue =
|
|
232
|
-
isNaN(this.maxValue) && !isNaN(this.minValue)
|
|
233
|
-
? 99999
|
|
234
|
-
: this.maxValue;
|
|
235
|
-
this.setDefaultForm();
|
|
236
|
-
this.renderer.addClass(this.element.nativeElement, PepCustomizationService.STAND_ALONE_FIELD_CLASS_NAME);
|
|
237
|
-
if (!this.renderTitle) {
|
|
238
|
-
this.renderer.addClass(this.element.nativeElement, PepCustomizationService.STAND_ALONE_FIELD_NO_SPACING_CLASS_NAME);
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
this.readonly = this.type === 'duration' ? true : this.readonly; // Hack until we develop Timer UI for editing Duration field
|
|
242
|
-
this.updateFormFieldValue();
|
|
243
|
-
}
|
|
244
|
-
ngOnChanges(changes) {
|
|
245
|
-
if (this.standAlone) {
|
|
246
|
-
this.setDefaultForm();
|
|
247
|
-
}
|
|
248
|
-
this.readonly = this.type === 'duration' ? true : this.readonly; // Hack until we develop Timer UI for editing Duration field
|
|
249
|
-
}
|
|
250
|
-
ngOnDestroy() {
|
|
251
|
-
//
|
|
252
|
-
}
|
|
253
|
-
onFocus(event) {
|
|
254
|
-
this.isInFocus = true;
|
|
255
|
-
// select the value in focus (DI-18246 improvement)
|
|
256
|
-
setTimeout(() => {
|
|
257
|
-
const eventTarget = event.target || event.srcElement;
|
|
258
|
-
if (eventTarget) {
|
|
259
|
-
eventTarget.select();
|
|
260
|
-
}
|
|
261
|
-
}, 0);
|
|
262
|
-
}
|
|
263
|
-
isDecimal() {
|
|
264
|
-
let res = false;
|
|
265
|
-
if (this.isNumberType()) {
|
|
266
|
-
if (this.type === 'currency' || this.type === 'real') {
|
|
267
|
-
res = true;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
return res;
|
|
271
|
-
}
|
|
272
|
-
isNumberType() {
|
|
273
|
-
return (this.type === 'percentage' ||
|
|
274
|
-
this.type === 'int' ||
|
|
275
|
-
this.type === 'currency' ||
|
|
276
|
-
this.type === 'real');
|
|
277
|
-
}
|
|
278
|
-
isValueValid(value) {
|
|
279
|
-
let res = false;
|
|
280
|
-
if (this.isNumberType()) {
|
|
281
|
-
if (value === '') {
|
|
282
|
-
res = this.mandatory ? false : true;
|
|
283
|
-
}
|
|
284
|
-
else {
|
|
285
|
-
const numberValue = this.utilitiesService.coerceNumberProperty(value);
|
|
286
|
-
res =
|
|
287
|
-
numberValue >= this.minValue &&
|
|
288
|
-
numberValue <= this.maxValue;
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
else {
|
|
292
|
-
// TODO: Maybe need to check other types.
|
|
293
|
-
res = true;
|
|
294
|
-
}
|
|
295
|
-
return res;
|
|
296
|
-
}
|
|
297
|
-
isDifferentValue(value) {
|
|
298
|
-
let res = false;
|
|
299
|
-
if (this.isNumberType()) {
|
|
300
|
-
if (this.value === '' || value === '') {
|
|
301
|
-
res = true;
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
const currentValue = this.utilitiesService.coerceNumberProperty(this.value);
|
|
305
|
-
const newValue = this.utilitiesService.coerceNumberProperty(value);
|
|
306
|
-
res = currentValue !== newValue;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
res = true;
|
|
311
|
-
}
|
|
312
|
-
return res;
|
|
313
|
-
}
|
|
314
|
-
onChange(e) {
|
|
315
|
-
const value = e.target ? e.target.value : e;
|
|
316
|
-
this.valueChange.emit(value);
|
|
317
|
-
}
|
|
318
|
-
onBlur(e) {
|
|
319
|
-
this.isInFocus = false;
|
|
320
|
-
const value = e.target ? e.target.value : e;
|
|
321
|
-
if (value !== this.value && this.isDifferentValue(value)) {
|
|
322
|
-
// If renderError is false and the new value is not valid.
|
|
323
|
-
if (!this.renderError && !this.isValueValid(value)) {
|
|
324
|
-
this.renderer.setProperty(this.input.nativeElement, 'value', this.value);
|
|
325
|
-
}
|
|
326
|
-
else {
|
|
327
|
-
this.value = value;
|
|
328
|
-
// // If the user is setting the formatted value then set the value till the user format it and return it back.
|
|
329
|
-
// if (!this._calculateFormattedValue) {
|
|
330
|
-
// this._formattedValue = value;
|
|
331
|
-
// }
|
|
332
|
-
this.valueChange.emit(value);
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
if (this.isInEditMode) {
|
|
336
|
-
this.isInEditMode = false;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
anchorClicked() {
|
|
340
|
-
const currentValue = this.value;
|
|
341
|
-
if (currentValue.trim().length > 0) {
|
|
342
|
-
switch (this.type) {
|
|
343
|
-
case 'email':
|
|
344
|
-
window.open('mailto:' + currentValue, 'email');
|
|
345
|
-
break;
|
|
346
|
-
case 'phone':
|
|
347
|
-
window.open('tel:' + currentValue, 'tel');
|
|
348
|
-
break;
|
|
349
|
-
case 'link':
|
|
350
|
-
window.open(currentValue);
|
|
351
|
-
break;
|
|
352
|
-
default:
|
|
353
|
-
break;
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
cardTemplateClicked(event) {
|
|
358
|
-
this.isInEditMode = true;
|
|
359
|
-
setTimeout(() => {
|
|
360
|
-
this.input.nativeElement.focus();
|
|
361
|
-
}, 0);
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
PepTextboxComponent.decorators = [
|
|
365
|
-
{ type: Component, args: [{
|
|
366
|
-
selector: 'pep-textbox',
|
|
367
|
-
template: "<ng-container [formGroup]=\"form\">\n <ng-template #pepTemplate let-isFormView=\"isFormView\" let-hasParent=\"hasParent\">\n <pep-field-title *ngIf=\"renderTitle && isFormView && !hasParent\" [label]=\"label\" [mandatory]=\"mandatory\"\n [disabled]=\"disabled\" [maxFieldCharacters]=\"maxFieldCharacters\" [hint]=\"hint\" [xAlignment]=\"xAlignment\"\n [showTitle]=\"showTitle\" [inputLength]=\"input.value?.length\">\n </pep-field-title>\n <mat-form-field appearance=\"outline\">\n <input #input pepTextboxValidation [id]=\"key\" [name]=\"key\" class=\" body-sm \" matInput autocomplete=\"off\"\n maxlength=\"{{ maxFieldCharacters > 0 ? maxFieldCharacters : 99999 }}\"\n [placeholder]=\"hasParent && !disabled ? placeholder : ''\"\n [ngStyle]=\"{ color: textColor, 'text-align': xAlignment == 'center' ? 'center' : xAlignment == 'right' ? 'right' : 'left' }\"\n title=\"{{ formattedValue }}\" [formControlName]=\"key\" [type]=\"type\" [value]=\"displayValue\"\n (keyup.enter)=\"$event?.currentTarget?.blur()\" (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\"\n (change)=\"onChange($event)\"\n [ngClass]=\"{'disable-hidden': disabled && formattedValue?.length > 0 && (type === 'phone' || type === 'email' || type === 'link')}\" />\n\n <span\n *ngIf=\"disabled && formattedValue?.length > 0 && (type === 'phone' || type === 'email' || type === 'link')\"\n class=\"dis-grid\">\n <a href=\"javascript:void(0)\" (click)=\"anchorClicked()\" [id]=\"key\" [name]=\"key\"\n class=\"color-link body-sm \"> {{formattedValue}}</a>\n </span>\n <mat-error *ngIf=\"renderError\">\n <ng-container *ngIf=\"mandatory && input.value.length == 0 then requiredError else otherError\">\n </ng-container>\n <ng-template #requiredError>\n <span class=\"body-xs\" [title]=\"('MESSAGES.ERROR_IS_REQUIRED' | translate: { field: label })\"\n [innerText]=\"('MESSAGES.ERROR_IS_REQUIRED' | translate: { field: label })\">\n </span>\n </ng-template>\n <ng-template #otherError>\n <span class=\"body-xs\" [title]=\"(input.value | pepToNumber) > this.maxValue || (input.value | pepToNumber) < this.minValue ?\n ('MESSAGES.ERROR_RANGE_IS_NOT_VALID' | translate: { min: minValue, max: maxValue }) :\n ('MESSAGES.ERROR_IS_NOT_VALID' | translate: { field: label })\" [innerText]=\"(input.value | pepToNumber) > this.maxValue || (input.value | pepToNumber) < this.minValue ?\n ('MESSAGES.ERROR_RANGE_IS_NOT_VALID' | translate: { min: minValue, max: maxValue }) :\n ('MESSAGES.ERROR_IS_NOT_VALID' | translate: { field: label })\">\n </span>\n </ng-template>\n </mat-error>\n\n <pep-textbox-icon *ngIf=\"renderSymbol && isFormView && xAlignment == 'right'\" matPrefix [value]=\"value\"\n [label]=\"label\" [type]=\"type\" [disabled]=\"disabled\">\n </pep-textbox-icon>\n <pep-textbox-icon *ngIf=\"renderSymbol && isFormView && (xAlignment == 'left')\" matSuffix [value]=\"value\"\n [label]=\"label\" [type]=\"type\" [disabled]=\"disabled\">\n </pep-textbox-icon>\n </mat-form-field>\n </ng-template>\n\n <ng-container *ngIf=\"layoutType === 'form'\">\n <ng-container *ngIf=\"parentFieldKey; then groupedBlock; else regularBlock\"></ng-container>\n <ng-template #regularBlock>\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: true, hasParent: false }\">\n </ng-container>\n </ng-template>\n <ng-template #groupedBlock>\n <ng-container [formGroupName]=\"parentFieldKey\">\n <mat-form-field appearance=\"outline\">\n <!-- (keyup)=\"onKeyUp($event)\" -->\n <input pepTextboxValidation [id]=\"key\" [name]=\"key\" class=\" body-sm \" matInput autocomplete=\"off\"\n [placeholder]=\"!disabled ? placeholder : ''\" title=\"{{ formattedValue }}\"\n [formControlName]=\"key\" [value]=\"value\" (blur)=\"onBlur($event)\" (change)=\"onChange($event)\"\n (keyup.enter)=\"$event?.currentTarget?.blur()\" (focus)=\"onFocus($event)\" />\n </mat-form-field>\n <!-- <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: true, hasParent: true }\"></ng-container> -->\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"layoutType === 'card'\">\n <ng-container *ngIf=\"isInEditMode; then editBlock; else readOnlyBlock\"></ng-container>\n <ng-template #editBlock>\n <div [ngClass]=\"{'one-row': rowSpan === 1}\">\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: false, hasParent: false }\">\n </ng-container>\n </div>\n </ng-template>\n <ng-template #readOnlyBlock>\n <div class=\"pep-card-input card-flex-container\" [ngStyle]=\"{ color: textColor }\"\n [class]=\"'text-align-' + xAlignment\" [ngClass]=\"{'one-row': rowSpan === 1,\n 'multi-rows': rowSpan > 1,\n 'pep-button weak': isActive && !disabled}\"\n (click)=\"!disabled ? cardTemplateClicked($event) : ''\">\n <span *ngIf=\"showTitle && label != ''\" class=\"body-xs title\" title=\"{{ label }}\">{{ label\n }} </span>\n <span [id]=\"key\" title=\"{{ formattedValue }}\" class=\"body-sm value\"\n [ngClass]=\"{'multi-rows-text': rowSpan > 1}\" [ngStyle]=\"{ '-webkit-line-clamp': rowSpan }\">{{\n formattedValue }}</span>\n <button *ngIf=\"isActive && !disabled\" class=\"pep-button weak card-edit-button\" mat-button>\n <mat-icon>\n <pep-icon name=\"system_edit\">\n </pep-icon>\n </mat-icon>\n </button>\n </div>\n </ng-template>\n\n </ng-container>\n\n <ng-container *ngIf=\"layoutType === 'table'\">\n <ng-container *ngIf=\"isActive && !disabled; then selectedBlock; else notSelectedBlock\"></ng-container>\n <ng-template #selectedBlock>\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: false, hasParent: false }\">\n </ng-container>\n </ng-template>\n <ng-template #notSelectedBlock>\n <ng-container *ngIf=\"formattedValue?.length > 0; then notEmptyBlock; else emptyBlock\"></ng-container>\n <ng-template #notEmptyBlock>\n <ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'link'\">\n <a [id]=\"key\" class=\"color-link body-sm pep-report-input\"\n [ngClass]=\"{'disable': (disabled && value === '')}\" *ngIf=\"formattedValue != null\"\n title=\"{{ formattedValue }}\" target=\"_blank\" href=\"{{ value ? value : formattedValue }}\">{{\n formattedValue }}</a>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <span [id]=\"key\" class=\"body-sm pep-report-input\" [ngClass]=\"{'readonly': disabled}\"\n title=\"{{ formattedValue }}\" [ngStyle]=\"{ color: textColor }\">{{ formattedValue }}</span>\n </ng-container>\n </ng-container>\n </ng-template>\n <ng-template #emptyBlock>\n <span [id]=\"key\"> </span>\n </ng-template>\n </ng-template>\n </ng-container>\n\n</ng-container>",
|
|
368
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
369
|
-
styles: [":host{height:inherit;display:grid}:host>*{align-self:center;align-items:baseline}.disable-hidden{display:none}.dis-grid{display:grid}.multi-rows-text{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal!important}", ""]
|
|
370
|
-
},] }
|
|
371
|
-
];
|
|
372
|
-
PepTextboxComponent.ctorParameters = () => [
|
|
373
|
-
{ type: FormBuilder },
|
|
374
|
-
{ type: PepCustomizationService },
|
|
375
|
-
{ type: Renderer2 },
|
|
376
|
-
{ type: ElementRef },
|
|
377
|
-
{ type: TranslateService },
|
|
378
|
-
{ type: PepUtilitiesService }
|
|
379
|
-
];
|
|
380
|
-
PepTextboxComponent.propDecorators = {
|
|
381
|
-
dataQa: [{ type: HostBinding, args: ['attr.data-qa',] }],
|
|
382
|
-
key: [{ type: Input }],
|
|
383
|
-
value: [{ type: Input }],
|
|
384
|
-
formattedValue: [{ type: Input }],
|
|
385
|
-
accessory: [{ type: Input }],
|
|
386
|
-
label: [{ type: Input }],
|
|
387
|
-
placeholder: [{ type: Input }],
|
|
388
|
-
type: [{ type: Input }],
|
|
389
|
-
mandatory: [{ type: Input }],
|
|
390
|
-
disabled: [{ type: Input }],
|
|
391
|
-
readonly: [{ type: Input }],
|
|
392
|
-
maxFieldCharacters: [{ type: Input }],
|
|
393
|
-
hint: [{ type: Input }],
|
|
394
|
-
textColor: [{ type: Input }],
|
|
395
|
-
xAlignment: [{ type: Input }],
|
|
396
|
-
rowSpan: [{ type: Input }],
|
|
397
|
-
minValue: [{ type: Input }],
|
|
398
|
-
maxValue: [{ type: Input }],
|
|
399
|
-
visible: [{ type: Input }],
|
|
400
|
-
form: [{ type: Input }],
|
|
401
|
-
isActive: [{ type: Input }],
|
|
402
|
-
showTitle: [{ type: Input }],
|
|
403
|
-
renderTitle: [{ type: Input }],
|
|
404
|
-
renderError: [{ type: Input }],
|
|
405
|
-
renderSymbol: [{ type: Input }],
|
|
406
|
-
layoutType: [{ type: Input }],
|
|
407
|
-
parentFieldKey: [{ type: Input }],
|
|
408
|
-
valueChange: [{ type: Output }],
|
|
409
|
-
formValidationChange: [{ type: Output }],
|
|
410
|
-
input: [{ type: ViewChild, args: ['input',] }]
|
|
411
|
-
};
|
|
1
|
+
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy, ElementRef, ViewChild, Renderer2, HostBinding, } from '@angular/core';
|
|
2
|
+
import { FormBuilder } from '@angular/forms';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { PepCustomizationService, DEFAULT_HORIZONTAL_ALIGNMENT, PepTextboxField, PepUtilitiesService, } from '@pepperi-addons/ngx-lib';
|
|
5
|
+
/**
|
|
6
|
+
* This is a text box input component that can be use to
|
|
7
|
+
*
|
|
8
|
+
* @export
|
|
9
|
+
* @class PepTextboxComponent
|
|
10
|
+
* @implements {OnChanges}
|
|
11
|
+
* @implements {OnInit}
|
|
12
|
+
* @implements {OnDestroy}
|
|
13
|
+
*/
|
|
14
|
+
export class PepTextboxComponent {
|
|
15
|
+
constructor(fb, customizationService, renderer, element, translate, utilitiesService) {
|
|
16
|
+
this.fb = fb;
|
|
17
|
+
this.customizationService = customizationService;
|
|
18
|
+
this.renderer = renderer;
|
|
19
|
+
this.element = element;
|
|
20
|
+
this.translate = translate;
|
|
21
|
+
this.utilitiesService = utilitiesService;
|
|
22
|
+
this.dataQa = '';
|
|
23
|
+
this._key = '';
|
|
24
|
+
this._value = '';
|
|
25
|
+
this._formattedValue = '';
|
|
26
|
+
/**
|
|
27
|
+
* The accessory sign.
|
|
28
|
+
*
|
|
29
|
+
* @memberof PepTextboxComponent
|
|
30
|
+
*/
|
|
31
|
+
this.accessory = '';
|
|
32
|
+
/**
|
|
33
|
+
* The title of the textbox.
|
|
34
|
+
*
|
|
35
|
+
* @memberof PepTextboxComponent
|
|
36
|
+
*/
|
|
37
|
+
this.label = '';
|
|
38
|
+
/**
|
|
39
|
+
* The placeholder (relevant only for children - if parent isn't null).
|
|
40
|
+
*
|
|
41
|
+
* @memberof PepTextboxComponent
|
|
42
|
+
*/
|
|
43
|
+
this.placeholder = '';
|
|
44
|
+
/**
|
|
45
|
+
* The type of the textbox.
|
|
46
|
+
*
|
|
47
|
+
* @type {PepTextboxFieldType}
|
|
48
|
+
* @memberof PepTextboxComponent
|
|
49
|
+
*/
|
|
50
|
+
this._type = 'text';
|
|
51
|
+
/**
|
|
52
|
+
* If the textbox is mandatory
|
|
53
|
+
*
|
|
54
|
+
* @memberof PepTextboxComponent
|
|
55
|
+
*/
|
|
56
|
+
this.mandatory = false;
|
|
57
|
+
// TODO: Check if should remove disabled and keep only readonly.
|
|
58
|
+
/**
|
|
59
|
+
* If the textbox is disabled.
|
|
60
|
+
*
|
|
61
|
+
* @memberof PepTextboxComponent
|
|
62
|
+
*/
|
|
63
|
+
this.disabled = false;
|
|
64
|
+
/**
|
|
65
|
+
* If the textbox is readonly
|
|
66
|
+
*
|
|
67
|
+
* @memberof PepTextboxComponent
|
|
68
|
+
*/
|
|
69
|
+
this.readonly = false;
|
|
70
|
+
this.textColor = '';
|
|
71
|
+
this.xAlignment = DEFAULT_HORIZONTAL_ALIGNMENT;
|
|
72
|
+
this.rowSpan = 1;
|
|
73
|
+
// @Input() lastFocusField: any;
|
|
74
|
+
this.minValue = NaN;
|
|
75
|
+
this.maxValue = NaN;
|
|
76
|
+
this._visible = true;
|
|
77
|
+
this.form = null;
|
|
78
|
+
this.isActive = false;
|
|
79
|
+
this.showTitle = true;
|
|
80
|
+
this.renderTitle = true;
|
|
81
|
+
this.renderError = true;
|
|
82
|
+
this.renderSymbol = true;
|
|
83
|
+
this.layoutType = 'form';
|
|
84
|
+
this.parentFieldKey = null;
|
|
85
|
+
/**
|
|
86
|
+
* The value change event.
|
|
87
|
+
*
|
|
88
|
+
* @type {EventEmitter<string>}
|
|
89
|
+
* @memberof PepTextboxComponent
|
|
90
|
+
*/
|
|
91
|
+
this.valueChange = new EventEmitter();
|
|
92
|
+
this.formValidationChange = new EventEmitter();
|
|
93
|
+
this._calculateFormattedValue = true;
|
|
94
|
+
this.controlType = 'textbox';
|
|
95
|
+
this.standAlone = false;
|
|
96
|
+
this.isInEditMode = false;
|
|
97
|
+
this.isInFocus = false;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* The text box key
|
|
101
|
+
*
|
|
102
|
+
* @memberof PepTextboxComponent
|
|
103
|
+
*/
|
|
104
|
+
set key(value) {
|
|
105
|
+
this._key = value;
|
|
106
|
+
this.dataQa = value;
|
|
107
|
+
}
|
|
108
|
+
get key() {
|
|
109
|
+
return this._key;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* The value of the text box.
|
|
113
|
+
*
|
|
114
|
+
* @memberof PepTextboxComponent
|
|
115
|
+
*/
|
|
116
|
+
set value(value) {
|
|
117
|
+
if (!value) {
|
|
118
|
+
value = '';
|
|
119
|
+
}
|
|
120
|
+
this._value = value;
|
|
121
|
+
this.setFormattedValue(value);
|
|
122
|
+
}
|
|
123
|
+
get value() {
|
|
124
|
+
return this._value;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* The formatted value.
|
|
128
|
+
*
|
|
129
|
+
* @memberof PepTextboxComponent
|
|
130
|
+
*/
|
|
131
|
+
set formattedValue(value) {
|
|
132
|
+
// Do nothing.
|
|
133
|
+
// if (!value) {
|
|
134
|
+
// value = '';
|
|
135
|
+
// }
|
|
136
|
+
// if (this._calculateFormattedValue) {
|
|
137
|
+
// this._calculateFormattedValue = false;
|
|
138
|
+
// }
|
|
139
|
+
// this.setFormattedValue(value);
|
|
140
|
+
}
|
|
141
|
+
get formattedValue() {
|
|
142
|
+
return this._formattedValue;
|
|
143
|
+
}
|
|
144
|
+
set type(value) {
|
|
145
|
+
this._type = value;
|
|
146
|
+
if (this.value) {
|
|
147
|
+
this.setFormattedValue(this.value);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
get type() {
|
|
151
|
+
return this._type;
|
|
152
|
+
}
|
|
153
|
+
set visible(visible) {
|
|
154
|
+
this._visible = visible;
|
|
155
|
+
if (visible) {
|
|
156
|
+
this.renderer.removeClass(this.element.nativeElement, 'hidden-element');
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
this.renderer.addClass(this.element.nativeElement, 'hidden-element');
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
get visible() {
|
|
163
|
+
return this._visible;
|
|
164
|
+
}
|
|
165
|
+
get calculateFormattedValue() {
|
|
166
|
+
return this._calculateFormattedValue;
|
|
167
|
+
}
|
|
168
|
+
setFormattedValue(value) {
|
|
169
|
+
if (this._calculateFormattedValue) {
|
|
170
|
+
if (this.type === 'currency') {
|
|
171
|
+
this._formattedValue = this.utilitiesService.formatCurrency(value, this.accessory);
|
|
172
|
+
}
|
|
173
|
+
else if (this.type === 'percentage') {
|
|
174
|
+
this._formattedValue = this.utilitiesService.formatPercent(value);
|
|
175
|
+
}
|
|
176
|
+
else if (this.type === 'real') {
|
|
177
|
+
this._formattedValue = this.utilitiesService.formatDecimal(value);
|
|
178
|
+
}
|
|
179
|
+
else if (this.type === 'int') {
|
|
180
|
+
this._formattedValue = this.utilitiesService.formatNumber(value);
|
|
181
|
+
}
|
|
182
|
+
else if (this.type === 'duration') {
|
|
183
|
+
this._formattedValue = this.utilitiesService.formatDuration(value, { duration: 'seconds' });
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
this._formattedValue = value;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
this._formattedValue = value;
|
|
191
|
+
}
|
|
192
|
+
this.updateFormFieldValue();
|
|
193
|
+
}
|
|
194
|
+
updateFormFieldValue() {
|
|
195
|
+
this.customizationService.updateFormFieldValue(this.form, this.key, this.formattedValue, this.parentFieldKey);
|
|
196
|
+
}
|
|
197
|
+
get displayValue() {
|
|
198
|
+
let res = '';
|
|
199
|
+
if (this.type == 'link') {
|
|
200
|
+
res = this.formattedValue;
|
|
201
|
+
}
|
|
202
|
+
else if (this.isNumberType()) {
|
|
203
|
+
res = this.isInFocus ? (this.value.length > 0 ? parseFloat(this.value).toString() : '') : this.formattedValue;
|
|
204
|
+
}
|
|
205
|
+
else {
|
|
206
|
+
res = this.isInFocus ? this.value : this.formattedValue;
|
|
207
|
+
}
|
|
208
|
+
return res;
|
|
209
|
+
}
|
|
210
|
+
setDefaultForm() {
|
|
211
|
+
const pepField = new PepTextboxField({
|
|
212
|
+
key: this.key,
|
|
213
|
+
value: this.value,
|
|
214
|
+
mandatory: this.mandatory,
|
|
215
|
+
readonly: this.readonly,
|
|
216
|
+
disabled: this.disabled,
|
|
217
|
+
maxFieldCharacters: this.maxFieldCharacters,
|
|
218
|
+
type: this.type,
|
|
219
|
+
minValue: this.minValue,
|
|
220
|
+
maxValue: this.maxValue,
|
|
221
|
+
});
|
|
222
|
+
this.form = this.customizationService.getDefaultFromGroup(pepField, this.renderError);
|
|
223
|
+
}
|
|
224
|
+
ngOnInit() {
|
|
225
|
+
if (this.form === null) {
|
|
226
|
+
this.standAlone = true;
|
|
227
|
+
this.minValue =
|
|
228
|
+
isNaN(this.minValue) && !isNaN(this.maxValue)
|
|
229
|
+
? 0
|
|
230
|
+
: this.minValue;
|
|
231
|
+
this.maxValue =
|
|
232
|
+
isNaN(this.maxValue) && !isNaN(this.minValue)
|
|
233
|
+
? 99999
|
|
234
|
+
: this.maxValue;
|
|
235
|
+
this.setDefaultForm();
|
|
236
|
+
this.renderer.addClass(this.element.nativeElement, PepCustomizationService.STAND_ALONE_FIELD_CLASS_NAME);
|
|
237
|
+
if (!this.renderTitle) {
|
|
238
|
+
this.renderer.addClass(this.element.nativeElement, PepCustomizationService.STAND_ALONE_FIELD_NO_SPACING_CLASS_NAME);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
this.readonly = this.type === 'duration' ? true : this.readonly; // Hack until we develop Timer UI for editing Duration field
|
|
242
|
+
this.updateFormFieldValue();
|
|
243
|
+
}
|
|
244
|
+
ngOnChanges(changes) {
|
|
245
|
+
if (this.standAlone) {
|
|
246
|
+
this.setDefaultForm();
|
|
247
|
+
}
|
|
248
|
+
this.readonly = this.type === 'duration' ? true : this.readonly; // Hack until we develop Timer UI for editing Duration field
|
|
249
|
+
}
|
|
250
|
+
ngOnDestroy() {
|
|
251
|
+
//
|
|
252
|
+
}
|
|
253
|
+
onFocus(event) {
|
|
254
|
+
this.isInFocus = true;
|
|
255
|
+
// select the value in focus (DI-18246 improvement)
|
|
256
|
+
setTimeout(() => {
|
|
257
|
+
const eventTarget = event.target || event.srcElement;
|
|
258
|
+
if (eventTarget) {
|
|
259
|
+
eventTarget.select();
|
|
260
|
+
}
|
|
261
|
+
}, 0);
|
|
262
|
+
}
|
|
263
|
+
isDecimal() {
|
|
264
|
+
let res = false;
|
|
265
|
+
if (this.isNumberType()) {
|
|
266
|
+
if (this.type === 'currency' || this.type === 'real') {
|
|
267
|
+
res = true;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
return res;
|
|
271
|
+
}
|
|
272
|
+
isNumberType() {
|
|
273
|
+
return (this.type === 'percentage' ||
|
|
274
|
+
this.type === 'int' ||
|
|
275
|
+
this.type === 'currency' ||
|
|
276
|
+
this.type === 'real');
|
|
277
|
+
}
|
|
278
|
+
isValueValid(value) {
|
|
279
|
+
let res = false;
|
|
280
|
+
if (this.isNumberType()) {
|
|
281
|
+
if (value === '') {
|
|
282
|
+
res = this.mandatory ? false : true;
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
const numberValue = this.utilitiesService.coerceNumberProperty(value);
|
|
286
|
+
res =
|
|
287
|
+
numberValue >= this.minValue &&
|
|
288
|
+
numberValue <= this.maxValue;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
// TODO: Maybe need to check other types.
|
|
293
|
+
res = true;
|
|
294
|
+
}
|
|
295
|
+
return res;
|
|
296
|
+
}
|
|
297
|
+
isDifferentValue(value) {
|
|
298
|
+
let res = false;
|
|
299
|
+
if (this.isNumberType()) {
|
|
300
|
+
if (this.value === '' || value === '') {
|
|
301
|
+
res = true;
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
const currentValue = this.utilitiesService.coerceNumberProperty(this.value);
|
|
305
|
+
const newValue = this.utilitiesService.coerceNumberProperty(value);
|
|
306
|
+
res = currentValue !== newValue;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
else {
|
|
310
|
+
res = true;
|
|
311
|
+
}
|
|
312
|
+
return res;
|
|
313
|
+
}
|
|
314
|
+
onChange(e) {
|
|
315
|
+
const value = e.target ? e.target.value : e;
|
|
316
|
+
this.valueChange.emit(value);
|
|
317
|
+
}
|
|
318
|
+
onBlur(e) {
|
|
319
|
+
this.isInFocus = false;
|
|
320
|
+
const value = e.target ? e.target.value : e;
|
|
321
|
+
if (value !== this.value && this.isDifferentValue(value)) {
|
|
322
|
+
// If renderError is false and the new value is not valid.
|
|
323
|
+
if (!this.renderError && !this.isValueValid(value)) {
|
|
324
|
+
this.renderer.setProperty(this.input.nativeElement, 'value', this.value);
|
|
325
|
+
}
|
|
326
|
+
else {
|
|
327
|
+
this.value = value;
|
|
328
|
+
// // If the user is setting the formatted value then set the value till the user format it and return it back.
|
|
329
|
+
// if (!this._calculateFormattedValue) {
|
|
330
|
+
// this._formattedValue = value;
|
|
331
|
+
// }
|
|
332
|
+
this.valueChange.emit(value);
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
if (this.isInEditMode) {
|
|
336
|
+
this.isInEditMode = false;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
anchorClicked() {
|
|
340
|
+
const currentValue = this.value;
|
|
341
|
+
if (currentValue.trim().length > 0) {
|
|
342
|
+
switch (this.type) {
|
|
343
|
+
case 'email':
|
|
344
|
+
window.open('mailto:' + currentValue, 'email');
|
|
345
|
+
break;
|
|
346
|
+
case 'phone':
|
|
347
|
+
window.open('tel:' + currentValue, 'tel');
|
|
348
|
+
break;
|
|
349
|
+
case 'link':
|
|
350
|
+
window.open(currentValue);
|
|
351
|
+
break;
|
|
352
|
+
default:
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
cardTemplateClicked(event) {
|
|
358
|
+
this.isInEditMode = true;
|
|
359
|
+
setTimeout(() => {
|
|
360
|
+
this.input.nativeElement.focus();
|
|
361
|
+
}, 0);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
PepTextboxComponent.decorators = [
|
|
365
|
+
{ type: Component, args: [{
|
|
366
|
+
selector: 'pep-textbox',
|
|
367
|
+
template: "<ng-container [formGroup]=\"form\">\n <ng-template #pepTemplate let-isFormView=\"isFormView\" let-hasParent=\"hasParent\">\n <pep-field-title *ngIf=\"renderTitle && isFormView && !hasParent\" [label]=\"label\" [mandatory]=\"mandatory\"\n [disabled]=\"disabled\" [maxFieldCharacters]=\"maxFieldCharacters\" [hint]=\"hint\" [xAlignment]=\"xAlignment\"\n [showTitle]=\"showTitle\" [inputLength]=\"input.value?.length\">\n </pep-field-title>\n <mat-form-field appearance=\"outline\">\n <input #input pepTextboxValidation [id]=\"key\" [name]=\"key\" class=\" body-sm \" matInput autocomplete=\"off\"\n maxlength=\"{{ maxFieldCharacters > 0 ? maxFieldCharacters : 99999 }}\"\n [placeholder]=\"hasParent && !disabled ? placeholder : ''\"\n [ngStyle]=\"{ color: textColor, 'text-align': xAlignment == 'center' ? 'center' : xAlignment == 'right' ? 'right' : 'left' }\"\n title=\"{{ formattedValue }}\" [formControlName]=\"key\" [type]=\"type\" [value]=\"displayValue\"\n (keyup.enter)=\"$event?.currentTarget?.blur()\" (focus)=\"onFocus($event)\" (blur)=\"onBlur($event)\"\n (change)=\"onChange($event)\"\n [ngClass]=\"{'disable-hidden': disabled && formattedValue?.length > 0 && (type === 'phone' || type === 'email' || type === 'link')}\" />\n\n <span\n *ngIf=\"disabled && formattedValue?.length > 0 && (type === 'phone' || type === 'email' || type === 'link')\"\n class=\"dis-grid\">\n <a href=\"javascript:void(0)\" (click)=\"anchorClicked()\" [id]=\"key\" [name]=\"key\"\n class=\"color-link body-sm \"> {{formattedValue}}</a>\n </span>\n <mat-error *ngIf=\"renderError\">\n <ng-container *ngIf=\"mandatory && input.value.length == 0 then requiredError else otherError\">\n </ng-container>\n <ng-template #requiredError>\n <span class=\"body-xs\" [title]=\"('MESSAGES.ERROR_IS_REQUIRED' | translate: { field: label })\"\n [innerText]=\"('MESSAGES.ERROR_IS_REQUIRED' | translate: { field: label })\">\n </span>\n </ng-template>\n <ng-template #otherError>\n <span class=\"body-xs\" [title]=\"(input.value | pepToNumber) > this.maxValue || (input.value | pepToNumber) < this.minValue ?\n ('MESSAGES.ERROR_RANGE_IS_NOT_VALID' | translate: { min: minValue, max: maxValue }) :\n ('MESSAGES.ERROR_IS_NOT_VALID' | translate: { field: label })\" [innerText]=\"(input.value | pepToNumber) > this.maxValue || (input.value | pepToNumber) < this.minValue ?\n ('MESSAGES.ERROR_RANGE_IS_NOT_VALID' | translate: { min: minValue, max: maxValue }) :\n ('MESSAGES.ERROR_IS_NOT_VALID' | translate: { field: label })\">\n </span>\n </ng-template>\n </mat-error>\n\n <pep-textbox-icon *ngIf=\"renderSymbol && isFormView && xAlignment == 'right'\" matPrefix [value]=\"value\"\n [label]=\"label\" [type]=\"type\" [disabled]=\"disabled\">\n </pep-textbox-icon>\n <pep-textbox-icon *ngIf=\"renderSymbol && isFormView && (xAlignment == 'left')\" matSuffix [value]=\"value\"\n [label]=\"label\" [type]=\"type\" [disabled]=\"disabled\">\n </pep-textbox-icon>\n </mat-form-field>\n </ng-template>\n\n <ng-container *ngIf=\"layoutType === 'form'\">\n <ng-container *ngIf=\"parentFieldKey; then groupedBlock; else regularBlock\"></ng-container>\n <ng-template #regularBlock>\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: true, hasParent: false }\">\n </ng-container>\n </ng-template>\n <ng-template #groupedBlock>\n <ng-container [formGroupName]=\"parentFieldKey\">\n <mat-form-field appearance=\"outline\">\n <!-- (keyup)=\"onKeyUp($event)\" -->\n <input pepTextboxValidation [id]=\"key\" [name]=\"key\" class=\" body-sm \" matInput autocomplete=\"off\"\n [placeholder]=\"!disabled ? placeholder : ''\" title=\"{{ formattedValue }}\"\n [formControlName]=\"key\" [value]=\"value\" (blur)=\"onBlur($event)\" (change)=\"onChange($event)\"\n (keyup.enter)=\"$event?.currentTarget?.blur()\" (focus)=\"onFocus($event)\" />\n </mat-form-field>\n <!-- <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: true, hasParent: true }\"></ng-container> -->\n </ng-container>\n </ng-template>\n </ng-container>\n\n <ng-container *ngIf=\"layoutType === 'card'\">\n <ng-container *ngIf=\"isInEditMode; then editBlock; else readOnlyBlock\"></ng-container>\n <ng-template #editBlock>\n <div [ngClass]=\"{'one-row': rowSpan === 1}\">\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: false, hasParent: false }\">\n </ng-container>\n </div>\n </ng-template>\n <ng-template #readOnlyBlock>\n <div class=\"pep-card-input card-flex-container\" [ngStyle]=\"{ color: textColor }\"\n [class]=\"'text-align-' + xAlignment\" [ngClass]=\"{'one-row': rowSpan === 1,\n 'multi-rows': rowSpan > 1,\n 'pep-button weak': isActive && !disabled}\"\n (click)=\"!disabled ? cardTemplateClicked($event) : ''\">\n <span *ngIf=\"showTitle && label != ''\" class=\"body-xs title\" title=\"{{ label }}\">{{ label\n }} </span>\n <span [id]=\"key\" title=\"{{ formattedValue }}\" class=\"body-sm value\"\n [ngClass]=\"{'multi-rows-text': rowSpan > 1}\" [ngStyle]=\"{ '-webkit-line-clamp': rowSpan }\">{{\n formattedValue }}</span>\n <button *ngIf=\"isActive && !disabled\" class=\"pep-button weak card-edit-button\" mat-button>\n <mat-icon>\n <pep-icon name=\"system_edit\">\n </pep-icon>\n </mat-icon>\n </button>\n </div>\n </ng-template>\n\n </ng-container>\n\n <ng-container *ngIf=\"layoutType === 'table'\">\n <ng-container *ngIf=\"isActive && !disabled; then selectedBlock; else notSelectedBlock\"></ng-container>\n <ng-template #selectedBlock>\n <ng-container *ngTemplateOutlet=\"pepTemplate; context: { isFormView: false, hasParent: false }\">\n </ng-container>\n </ng-template>\n <ng-template #notSelectedBlock>\n <ng-container *ngIf=\"formattedValue?.length > 0; then notEmptyBlock; else emptyBlock\"></ng-container>\n <ng-template #notEmptyBlock>\n <ng-container [ngSwitch]=\"type\">\n <ng-container *ngSwitchCase=\"'link'\">\n <a [id]=\"key\" class=\"color-link body-sm pep-report-input\"\n [ngClass]=\"{'disable': (disabled && value === '')}\" *ngIf=\"formattedValue != null\"\n title=\"{{ formattedValue }}\" target=\"_blank\" href=\"{{ value ? value : formattedValue }}\">{{\n formattedValue }}</a>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <span [id]=\"key\" class=\"body-sm pep-report-input\" [ngClass]=\"{'readonly': disabled}\"\n title=\"{{ formattedValue }}\" [ngStyle]=\"{ color: textColor }\">{{ formattedValue }}</span>\n </ng-container>\n </ng-container>\n </ng-template>\n <ng-template #emptyBlock>\n <span [id]=\"key\"> </span>\n </ng-template>\n </ng-template>\n </ng-container>\n\n</ng-container>",
|
|
368
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
369
|
+
styles: [":host{height:inherit;display:grid}:host>*{align-self:center;align-items:baseline}.disable-hidden{display:none}.dis-grid{display:grid}.multi-rows-text{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;white-space:normal!important}", ""]
|
|
370
|
+
},] }
|
|
371
|
+
];
|
|
372
|
+
PepTextboxComponent.ctorParameters = () => [
|
|
373
|
+
{ type: FormBuilder },
|
|
374
|
+
{ type: PepCustomizationService },
|
|
375
|
+
{ type: Renderer2 },
|
|
376
|
+
{ type: ElementRef },
|
|
377
|
+
{ type: TranslateService },
|
|
378
|
+
{ type: PepUtilitiesService }
|
|
379
|
+
];
|
|
380
|
+
PepTextboxComponent.propDecorators = {
|
|
381
|
+
dataQa: [{ type: HostBinding, args: ['attr.data-qa',] }],
|
|
382
|
+
key: [{ type: Input }],
|
|
383
|
+
value: [{ type: Input }],
|
|
384
|
+
formattedValue: [{ type: Input }],
|
|
385
|
+
accessory: [{ type: Input }],
|
|
386
|
+
label: [{ type: Input }],
|
|
387
|
+
placeholder: [{ type: Input }],
|
|
388
|
+
type: [{ type: Input }],
|
|
389
|
+
mandatory: [{ type: Input }],
|
|
390
|
+
disabled: [{ type: Input }],
|
|
391
|
+
readonly: [{ type: Input }],
|
|
392
|
+
maxFieldCharacters: [{ type: Input }],
|
|
393
|
+
hint: [{ type: Input }],
|
|
394
|
+
textColor: [{ type: Input }],
|
|
395
|
+
xAlignment: [{ type: Input }],
|
|
396
|
+
rowSpan: [{ type: Input }],
|
|
397
|
+
minValue: [{ type: Input }],
|
|
398
|
+
maxValue: [{ type: Input }],
|
|
399
|
+
visible: [{ type: Input }],
|
|
400
|
+
form: [{ type: Input }],
|
|
401
|
+
isActive: [{ type: Input }],
|
|
402
|
+
showTitle: [{ type: Input }],
|
|
403
|
+
renderTitle: [{ type: Input }],
|
|
404
|
+
renderError: [{ type: Input }],
|
|
405
|
+
renderSymbol: [{ type: Input }],
|
|
406
|
+
layoutType: [{ type: Input }],
|
|
407
|
+
parentFieldKey: [{ type: Input }],
|
|
408
|
+
valueChange: [{ type: Output }],
|
|
409
|
+
formValidationChange: [{ type: Output }],
|
|
410
|
+
input: [{ type: ViewChild, args: ['input',] }]
|
|
411
|
+
};
|
|
412
412
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGJveC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtbGliL3RleHRib3gvdGV4dGJveC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNILFNBQVMsRUFHVCxLQUFLLEVBQ0wsTUFBTSxFQUNOLFlBQVksRUFDWix1QkFBdUIsRUFDdkIsVUFBVSxFQUNWLFNBQVMsRUFDVCxTQUFTLEVBR1QsV0FBVyxHQUNkLE1BQU0sZUFBZSxDQUFDO0FBQ3ZCLE9BQU8sRUFBYSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUN4RCxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN2RCxPQUFPLEVBRUgsdUJBQXVCLEVBRXZCLDRCQUE0QixFQUU1QixlQUFlLEVBRWYsbUJBQW1CLEdBQ3RCLE1BQU0seUJBQXlCLENBQUM7QUFFakM7Ozs7Ozs7O0dBUUc7QUFPSCxNQUFNLE9BQU8sbUJBQW1CO0lBeUw1QixZQUNXLEVBQWUsRUFDZCxvQkFBNkMsRUFDN0MsUUFBbUIsRUFDbkIsT0FBbUIsRUFDbkIsU0FBMkIsRUFDM0IsZ0JBQXFDO1FBTHRDLE9BQUUsR0FBRixFQUFFLENBQWE7UUFDZCx5QkFBb0IsR0FBcEIsb0JBQW9CLEN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UdOTUVOVDtcbiAgICBASW5wdXQoKSByb3dTcGFuID0gMTtcbiAgICAvLyBASW5wdXQoKSBsYXN0Rm9jdXNGaWVsZDogYW55O1xuICAgIEBJbnB1dCgpIG1pblZhbHVlID0gTmFOO1xuICAgIEBJbnB1dCgpIG1heFZhbHVlID0gTmFOO1xuXG4gICAgcHJpdmF0ZSBfdmlzaWJsZSA9IHRydWU7XG4gICAgQElucHV0KClcbiAgICBzZXQgdmlzaWJsZSh2aXNpYmxlOiBib29sZWFuKSB7XG4gICAgICAgIHRoaXMuX3Zpc2libGUgPSB2aXNpYmxlO1xuICAgICAgICBpZiAodmlzaWJsZSkge1xuICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5yZW1vdmVDbGFzcyhcbiAgICAgICAgICAgICAgICB0aGlzLmVsZW1lbnQubmF0aXZlRWxlbWVudCxcbiAgICAgICAgICAgICAgICAnaGlkZGVuLWVsZW1lbnQnXG4gICAgICAgICAgICApO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5hZGRDbGFzcyhcbiAgICAgICAgICAgICAgICB0aGlzLmVsZW1lbnQubmF0aXZlRWxlbWVudCxcbiAgICAgICAgICAgICAgICAnaGlkZGVuLWVsZW1lbnQnXG4gICAgICAgICAgICApO1xuICAgICAgICB9XG4gICAgfVxuICAgIGdldCB2aXNpYmxlKCk6IGJvb2xlYW4ge1xuICAgICAgICByZXR1cm4gdGhpcy5fdmlzaWJsZTtcbiAgICB9XG5cbiAgICBASW5wdXQoKSBmb3JtOiBGb3JtR3JvdXAgPSBudWxsO1xuICAgIEBJbnB1dCgpIGlzQWN0aXZlID0gZmFsc2U7XG4gICAgQElucHV0KCkgc2hvd1RpdGxlID0gdHJ1ZTtcbiAgICBASW5wdXQoKSByZW5kZXJUaXRsZSA9IHRydWU7XG4gICAgQElucHV0KCkgcmVuZGVyRXJyb3IgPSB0cnVlO1xuICAgIEBJbnB1dCgpIHJlbmRlclN5bWJvbCA9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kge1xuICAgICAgICAgICAgcmVzID0gdGhpcy5pc0luRm9jdXMgPyAodGhpcy52YWx1ZS5sZW5ndGggPiAwID8gcGFyc2VGbG9hdCh0aGlzLnZhbHVlKS50b1N0cmluZygpIDogJycpIDogdGhpcy5mb3JtYXR0ZWRWYWx1ZTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJlcyA9IHRoaXMuaXNJbkZvY3VzID8gdGhpcy52YWx1ZSA6IHRoaXMuZm9ybWF0dGVkVmFsdWU7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gcmVzO1xuICAgIH1cblxuICAgIHByaXZhdGUgc2V0RGVmYXVsdEZvcm0oKTogdm9pZCB7XG4gICAgICAgIGNvbnN0IHBlcEZpZWxkID0gbmV3IFBlcFRleHRib3hGaWVsZCh7XG4gICAgICAgICAgICBrZXk6IHRoaXMua2V5LFxuICAgICAgICAgICAgdmFsdWU6IHRoaXMudmFsdWUsXG4gICAgICAgICAgICBtYW5kYXRvcnk6IHRoaXMubWFuZGF0b3J5LFxuICAgICAgICAgICAgcmVhZG9ubHk6IHRoaXMucmVhZG9ubHksXG4gICAgICAgICAgICBkaXNhYmxlZDogdGhpcy5kaXNhYmxlZCxcbiAgICAgICAgICAgIG1heEZpZWxkQ2hhcmFjdGVyczogdGhpcy5tYXhGaWVsZENoYXJhY3RlcnMsXG4gICAgICAgICAgICB0eXBlOiB0aGlzLnR5cGUsXG4gICAgICAgICAgICBtaW5WYWx1ZTogdGhpcy5taW5WYWx1ZSxcbiAgICAgICAgICAgIG1heFZhbHVlOiB0aGlzLm1heFZhbHVlLFxuICAgICAgICB9KTtcbiAgICAgICAgdGhpcy5mb3JtID0gdGhpcy5jdXN0b21pemF0aW9uU2VydmljZS5nZXREZWZhdWx0RnJvbUdyb3VwKFxuICAgICAgICAgICAgcGVwRmllbGQsXG4gICAgICAgICAgICB0aGlzLnJlbmRlckVycm9yXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgICAgIGlmICh0aGlzLmZvcm0gPT09IG51bGwpIHtcbiAgICAgICAgICAgIHRoaXMuc3RhbmRBbG9uZSA9IHRydWU7XG5cbiAgICAgICAgICAgIHRoaXMubWluVmFsdWUgPVxuICAgICAgICAgICAgICAgIGlzTmFOKHRoaXMubWluVmFsdWUpICYmICFpc05hTih0aGlzLm1heFZhbHVlKVxuICAgICAgICAgICAgICAgICAgICA/IDBcbiAgICAgICAgICAgICAgICAgICAgOiB0aGlzLm1pblZhbHVlO1xuICAgICAgICAgICAgdGhpcy5tYXhWYWx1ZSA9XG4gICAgICAgICAgICAgICAgaXNOYU4odGhpcy5tYXhWYWx1ZSkgJiYgIWlzTmFOKHRoaXMubWluVmFsdWUpXG4gICAgICAgICAgICAgICAgICAgID8gOTk5OTlcbiAgICAgICAgICAgICAgICAgICAgOiB0aGlzLm1heFZhbHVlO1xuXG4gICAgICAgICAgICB0aGlzLnNldERlZmF1bHRGb3JtKCk7XG5cbiAgICAgICAgICAgIHRoaXMucmVuZGVyZXIuYWRkQ2xhc3MoXG4gICAgICAgICAgICAgICAgdGhpcy5lbGVtZW50Lm5hdGl2ZUVsZW1lbnQsXG4gICAgICAgICAgICAgICAgUGVwQ3VzdG9taXphdGlvblNlcnZpY2UuU1RBTkRfQUxPTkVfRklFTERfQ0xBU1NfTkFNRVxuICAgICAgICAgICAgKTtcblxuICAgICAgICAgICAgaWYgKCF0aGlzLnJlbmRlclRpdGxlKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5yZW5kZXJlci5hZGRDbGFzcyhcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5lbGVtZW50Lm5hdGl2ZUVsZW1lbnQsXG4gICAgICAgICAgICAgICAgICAgIFBlcEN1c3RvbWl6YXRpb25TZXJ2aWNlLlNUQU5EX0FMT05FX0ZJRUxEX05PX1NQQUNJTkdfQ0xBU1NfTkFNRVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgICAgICB9XG4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ICAgICAgfSwgMCk7XG4gICAgfVxuXG4gICAgaXNEZWNpbWFsKCk6IGJvb2xlYW4ge1xuICAgICAgICBsZXQgcmVzID0gZmFsc2U7XG5cbiAgICAgICAgaWYgKHRoaXMuaXNOdW1iZXJUeXBlKCkpIHtcbiAgICAgICAgICAgIGlmICh0aGlzLnR5cGUgPT09ICdjdXJyZW5jeScgfHwgdGhpcy50eXBlID09PSAncmVhbCcpIHtcbiAgICAgICAgICAgICAgICByZXMgPSB0cnVlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHJlcztcbiAgICB9XG5cbiAgICBpc051bWJlclR5cGUoKTogYm9vbGVhbiB7XG4gICAgICAgIHJldHVybiAoXG4gICAgICAgICAgICB0aGlzLnR5cGUgPT09ICdwZXJjZW50YWdlJyB8fFxuICAgICAgICAgICAgdGhpcy50eXBlID09PSAnaW50JyB8fFxuICAgICAgICAgICAgdGhpcy50eXBlID09PSAnY3VycmVuY3knIHx8XG4gICAgICAgICAgICB0aGlzLnR5cGUgPT09ICdyZWFsJ1xuICAgICAgICApO1xuICAgIH1cblxuICAgIGlzVmFsdWVWYWxpZCh2YWx1ZTogc3RyaW5nKTogYm9vbGVhbiB7XG4gICAgICAgIGxldCByZXMgPSBmYWxzZTtcblxuICAgICAgICBpZiAodGhpcy5pc051bWJlclR5cGUoKSkge1xuICAgICAgICAgICAgaWYgKHZhbHVlID09PSAnJykge1xuICAgICAgICAgICAgICAgIHJlcyA9IHRoaXMubWFuZGF0b3J5ID8gZmFsc2UgOiB0cnVlO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBjb25zdCBudW1iZXJWYWx1ZSA9IHRoaXMudXRpbGl0aWVzU2VydmljZS5jb2VyY2VOdW1iZXJQcm9wZXJ0eShcbiAgICAgICAgICAgICAgICAgICAgdmFsdWVcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICAgICAgICAgIHJlcyA9XG4gICAgICAgICAgICAgICAgICAgIG51bWJlclZhbHVlID49IHRoaXMubWluVmFsdWUgJiZcbiAgICAgICAgICAgICAgICAgICAgbnVtYmVyVmFsdWUgPD0gdGhpcy5tYXhWYWx1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIC8vIFRPRE86IE1heWJlIG5lZWQgdG8gY2hlY2sgb3RoZXIgdHlwZXMuXG4gICAgICAgICAgICByZXMgPSB0cnVlO1xuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHJlcztcbiAgICB9XG5cbiAgICBpc0RpZmZlcmVudFZhbHVlKHZhbHVlOiBzdHJpbmcpOiBib29sZWFuIHtcbiAgICAgICAgbGV0IHJlcyA9IGZhbHNlO1xuXG4gICAgICAgIGlmICh0aGlzLmlzTnVtYmVyVHlwZSgpKSB7XG4gICAgICAgICAgICBpZiAodGhpcy52YWx1ZSA9PT0gJycgfHwgdmFsdWUgPT09ICcnKSB7XG4gICAgICAgICAgICAgICAgcmVzID0gdHJ1ZTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgY29uc3QgY3VycmVudFZhbHVlID0gdGhpcy51dGlsaXRpZXNTZXJ2aWNlLmNvZXJjZU51bWJlclByb3BlcnR5KFxuICAgICAgICAgICAgICAgICAgICB0aGlzLnZhbHVlXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgICAgICAgICBjb25zdCBuZXdWYWx1ZSA9IHRoaXMudXRpbGl0aWVzU2VydmljZS5jb2VyY2VOdW1iZXJQcm9wZXJ0eShcbiAgICAgICAgICAgICAgICAgICAgdmFsdWVcbiAgICAgICAgICAgICAgICApO1xuXG4gICAgICAgICAgICAgICAgcmVzID0gY3VycmVudFZhbHVlICE9PSBuZXdWYWx1ZTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJlcyA9IHRydWU7XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4g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ICAgICAgICAgICAgICAvLyBpZiAoIXRoaXMuX2NhbGN1bGF0ZUZvcm1hdHRlZFZhbHVlKSB7XG4gICAgICAgICAgICAgICAgLy8gICAgIHRoaXMuX2Zvcm1hdHRlZFZhbHVlID0gdmFsdWU7XG4gICAgICAgICAgICAgICAgLy8gfVxuXG4gICAgICAgICAgICAgICAgdGhpcy52YWx1ZUNoYW5nZS5lbWl0KHZhbHVlKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGlmICh0aGlzLmlzSW5FZGl0TW9kZSkge1xuICAgICAgICAgICAgdGhpcy5pc0luRWRpdE1vZGUgPSBmYWxzZTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIGFuY2hvckNsaWNrZWQoKTogdm9pZCB7XG4gICAgICAgIGNvbnN0IGN1cnJlbnRWYWx1ZSA9IHRoaXMudmFsdWU7XG4gICAgICAgIGlmIChjdXJyZW50VmFsdWUudHJpbSgpLmxlbmd0aCA+IDApIHtcbiAgICAgICAgICAgIHN3aXRjaCAodGhpcy50eXBlKSB7XG4gICAgICAgICAgICAgICAgY2FzZSAnZW1haWwnOlxuICAgICAgICAgICAgICAgICAgICB3aW5kb3cub3BlbignbWFpbHRvOicgKyBjdXJyZW50VmFsdWUsICdlbWFpbCcpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBjYXNlICdwaG9uZSc6XG4gICAgICAgICAgICAgICAgICAgIHdpbmRvdy5vcGVuKCd0ZWw6JyArIGN1cnJlbnRWYWx1ZSwgJ3RlbCcpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBjYXNlICdsaW5rJzpcbiAgICAgICAgICAgICAgICAgICAgd2luZG93Lm9wZW4oY3VycmVudFZhbHVlKTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBjYXJkVGVtcGxhdGVDbGlja2VkKGV2ZW50OiBhbnkpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5pc0luRWRpdE1vZGUgPSB0cnVlO1xuXG4gICAgICAgIHNldFRpbWVvdXQoKCkgPT4ge1xuICAgICAgICAgICAgdGhpcy5pbnB1dC5uYXRpdmVFbGVtZW50LmZvY3VzKCk7XG4gICAgICAgIH0sIDApO1xuICAgIH1cbn1cbiJdfQ==
|