@wizishop/angular-components 0.0.166 → 14.0.2
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/angular-components.scss +4851 -5487
- package/{esm2015/lib/animations/in-out/in-out-x.animation.js → esm2020/lib/animations/in-out/in-out-x.animation.mjs} +0 -0
- package/{esm2015/lib/animations/in-out/in-out-y.animation.js → esm2020/lib/animations/in-out/in-out-y.animation.mjs} +0 -0
- package/esm2020/lib/components/alert/alert.component.mjs +30 -0
- package/esm2020/lib/components/alert-popup/alert-popup-module.mjs +21 -0
- package/esm2020/lib/components/alert-popup/alert-popup.component.mjs +41 -0
- package/esm2020/lib/components/alert-popup/alert-popup.service.mjs +30 -0
- package/esm2020/lib/components/back/back.component.mjs +12 -0
- package/esm2020/lib/components/block/block.component.mjs +44 -0
- package/esm2020/lib/components/button/button.component.mjs +155 -0
- package/esm2020/lib/components/calendar/calendar.component.mjs +196 -0
- package/esm2020/lib/components/checkbox/checkbox.component.mjs +70 -0
- package/esm2020/lib/components/checkbox/checkbox.module.mjs +25 -0
- package/esm2020/lib/components/delete/delete.component.mjs +12 -0
- package/esm2020/lib/components/dropdown/dropdown.component.mjs +26 -0
- package/esm2020/lib/components/edit-in-place/edit-in-place.component.mjs +202 -0
- package/{esm2015/lib/components/filters/filter-item.dto.js → esm2020/lib/components/filters/filter-item.dto.mjs} +0 -0
- package/esm2020/lib/components/filters/filters.component.mjs +41 -0
- package/esm2020/lib/components/free-popin/free-popin.component.mjs +63 -0
- package/esm2020/lib/components/header-page/header-page.component.mjs +24 -0
- package/esm2020/lib/components/hn/h1/h1.component.mjs +18 -0
- package/esm2020/lib/components/hn/h2/h2.component.mjs +13 -0
- package/esm2020/lib/components/hn/h3/h3.component.mjs +18 -0
- package/esm2020/lib/components/hn/h4/h4.component.mjs +18 -0
- package/esm2020/lib/components/image/image.component.mjs +17 -0
- package/esm2020/lib/components/info/info.component.mjs +12 -0
- package/esm2020/lib/components/inputs/input/input.component.mjs +162 -0
- package/esm2020/lib/components/inputs/input/input.module.mjs +37 -0
- package/esm2020/lib/components/inputs/input-search/input-search.component.mjs +54 -0
- package/esm2020/lib/components/inputs/input-search/input-search.module.mjs +33 -0
- package/esm2020/lib/components/inputs/input-with-select/input-with-select.component.mjs +62 -0
- package/{esm2015/lib/components/inputs/input-with-select/option-item.dto.js → esm2020/lib/components/inputs/input-with-select/option-item.dto.mjs} +0 -0
- package/esm2020/lib/components/label/label.component.mjs +34 -0
- package/esm2020/lib/components/link/link.component.mjs +51 -0
- package/esm2020/lib/components/loader/loader.component.mjs +20 -0
- package/esm2020/lib/components/loader/loader.module.mjs +25 -0
- package/esm2020/lib/components/logo/logo.component.mjs +20 -0
- package/esm2020/lib/components/multiple-search/multiple-search.component.mjs +115 -0
- package/esm2020/lib/components/multiple-search-plus/multiple-search-plus.component.mjs +93 -0
- package/{esm2015/lib/components/multiple-search-plus/shared/multiple-search-plus-option.model.js → esm2020/lib/components/multiple-search-plus/shared/multiple-search-plus-option.model.mjs} +0 -0
- package/{esm2015/lib/components/multiple-search-plus/shared/multiple-search-plus-results.model.js → esm2020/lib/components/multiple-search-plus/shared/multiple-search-plus-results.model.mjs} +0 -0
- package/esm2020/lib/components/pagination/pagination.component.mjs +50 -0
- package/esm2020/lib/components/pagination/pagination.module.mjs +33 -0
- package/esm2020/lib/components/pagination/pipes/array-pages.pipe.mjs +28 -0
- package/esm2020/lib/components/pagination/pipes/custom-text.pipe.mjs +34 -0
- package/esm2020/lib/components/pagination/pipes/is-last-page.pipe.mjs +25 -0
- package/esm2020/lib/components/popin/popin.component.mjs +67 -0
- package/esm2020/lib/components/progress-bar/progress-bar.component.mjs +74 -0
- package/esm2020/lib/components/progress-bar/progress-bar.module.mjs +25 -0
- package/esm2020/lib/components/radio/radio.component.mjs +57 -0
- package/esm2020/lib/components/search/search.component.mjs +86 -0
- package/{esm2015/lib/components/search/shared/search-option.model.js → esm2020/lib/components/search/shared/search-option.model.mjs} +0 -0
- package/esm2020/lib/components/selected-list/selected-list.component.mjs +62 -0
- package/{esm2015/lib/components/selected-list/shared/selected-list-option.model.js → esm2020/lib/components/selected-list/shared/selected-list-option.model.mjs} +0 -0
- package/{esm2015/lib/components/selects/call-to-action.model.js → esm2020/lib/components/selects/call-to-action.model.mjs} +0 -0
- package/esm2020/lib/components/selects/select/select.component.mjs +133 -0
- package/esm2020/lib/components/selects/select-in-text/select-in-text.component.mjs +102 -0
- package/{esm2015/lib/components/selects/select-items.dto.js → esm2020/lib/components/selects/select-items.dto.mjs} +0 -0
- package/esm2020/lib/components/separator/separator.component.mjs +17 -0
- package/esm2020/lib/components/settings/settings.component.mjs +12 -0
- package/esm2020/lib/components/shared-components.module.mjs +301 -0
- package/esm2020/lib/components/snackbar/snackbar.component.mjs +84 -0
- package/esm2020/lib/components/state/state.component.mjs +16 -0
- package/esm2020/lib/components/switch/switch.component.mjs +54 -0
- package/esm2020/lib/components/tab/tab.component.mjs +33 -0
- package/esm2020/lib/components/table/directives/checkBoxRow.directive.mjs +95 -0
- package/{esm2015/lib/components/table/directives/column.directive.js → esm2020/lib/components/table/directives/column.directive.mjs} +20 -17
- package/esm2020/lib/components/table/directives/columnHeader.directive.mjs +205 -0
- package/esm2020/lib/components/table/directives/raw.directive.mjs +30 -0
- package/esm2020/lib/components/table/shared/filters-table.service.mjs +68 -0
- package/esm2020/lib/components/table/shared/table-checkbox-id.service.mjs +20 -0
- package/{esm2015/lib/components/table/shared/table-filters-group.model.js → esm2020/lib/components/table/shared/table-filters-group.model.mjs} +0 -0
- package/{esm2015/lib/components/table/shared/table-filters.model.js → esm2020/lib/components/table/shared/table-filters.model.mjs} +0 -0
- package/esm2020/lib/components/table/table.component.mjs +147 -0
- package/esm2020/lib/components/table/table.module.mjs +46 -0
- package/esm2020/lib/components/tag/tag.component.mjs +35 -0
- package/esm2020/lib/components/text/text.component.mjs +15 -0
- package/esm2020/lib/components/text-area/text-area.component.mjs +73 -0
- package/esm2020/lib/components/tooltip/tooltip.component.mjs +30 -0
- package/esm2020/lib/components/tooltip/tooltip.module.mjs +25 -0
- package/esm2020/lib/components/tree/tree.component.mjs +23 -0
- package/{esm2015/lib/components/tree/tree.dto.js → esm2020/lib/components/tree/tree.dto.mjs} +0 -0
- package/esm2020/lib/components/tree/tree.module.mjs +29 -0
- package/esm2020/lib/components/upload/upload.component.mjs +36 -0
- package/esm2020/lib/components/wrapper/wrapper.component.mjs +18 -0
- package/esm2020/lib/components/wrapper-blocs/wrapper-blocs.component.mjs +19 -0
- package/esm2020/lib/directives/abstract-debounce/abstract-debounce.directive.mjs +37 -0
- package/esm2020/lib/directives/abstract-debounce/debounce-keyup.directive.mjs +24 -0
- package/esm2020/lib/directives/auto-hide/auto-hide.directive.mjs +50 -0
- package/esm2020/lib/directives/keyboard-events/keypress-enter.directive.mjs +25 -0
- package/esm2020/lib/directives/ng-var.directive.mjs +32 -0
- package/esm2020/lib/directives/shared-directives.module.mjs +25 -0
- package/esm2020/lib/directives/zindex-toggle/zindex-toggle.directive.mjs +44 -0
- package/esm2020/lib/pipes/select/select-filters.pipe.mjs +19 -0
- package/esm2020/lib/pipes/selected-list/are-all-options-selected.pipe.mjs +17 -0
- package/esm2020/lib/pipes/shared-pipes.module.mjs +29 -0
- package/esm2020/lib/pipes/tree/format-object-to-recursif-tree.pipe.mjs +41 -0
- package/esm2020/lib/pipes/tree/format-object-to-simple-tree.pipe.mjs +49 -0
- package/esm2020/lib/services/dom.service.mjs +59 -0
- package/esm2020/lib/services/multiple-selection.service.mjs +62 -0
- package/{esm2015/lib/utils/html-container.class.js → esm2020/lib/utils/html-container.class.mjs} +0 -0
- package/{esm2015/lib/utils/slection-item.interface.js → esm2020/lib/utils/slection-item.interface.mjs} +0 -0
- package/esm2020/lib/wizi-components.module.mjs +34 -0
- package/esm2020/public-api.mjs +90 -0
- package/esm2020/wizishop-angular-components.mjs +5 -0
- package/fesm2015/wizishop-angular-components.mjs +4224 -0
- package/fesm2015/wizishop-angular-components.mjs.map +1 -0
- package/fesm2020/wizishop-angular-components.mjs +4214 -0
- package/fesm2020/wizishop-angular-components.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/alert/alert.component.d.ts +3 -0
- package/lib/components/alert-popup/alert-popup-module.d.ts +6 -0
- package/lib/components/alert-popup/alert-popup.component.d.ts +3 -0
- package/lib/components/alert-popup/alert-popup.service.d.ts +3 -0
- package/lib/components/back/back.component.d.ts +3 -0
- package/lib/components/block/block.component.d.ts +3 -0
- package/lib/components/button/button.component.d.ts +3 -2
- package/lib/components/calendar/calendar.component.d.ts +3 -0
- package/lib/components/checkbox/checkbox.component.d.ts +3 -0
- package/lib/components/checkbox/checkbox.module.d.ts +7 -0
- package/lib/components/delete/delete.component.d.ts +3 -0
- package/lib/components/dropdown/dropdown.component.d.ts +3 -0
- package/lib/components/edit-in-place/edit-in-place.component.d.ts +3 -0
- package/lib/components/filters/filters.component.d.ts +3 -0
- package/lib/components/free-popin/free-popin.component.d.ts +3 -0
- package/lib/components/header-page/header-page.component.d.ts +3 -1
- package/lib/components/hn/h1/h1.component.d.ts +3 -2
- package/lib/components/hn/h2/h2.component.d.ts +3 -0
- package/lib/components/hn/h3/h3.component.d.ts +3 -0
- package/lib/components/hn/h4/h4.component.d.ts +3 -0
- package/lib/components/image/image.component.d.ts +4 -1
- package/lib/components/info/info.component.d.ts +3 -0
- package/lib/components/inputs/input/input.component.d.ts +4 -1
- package/lib/components/inputs/input/input.module.d.ts +10 -0
- package/lib/components/inputs/input-search/input-search.component.d.ts +3 -0
- package/lib/components/inputs/input-search/input-search.module.d.ts +9 -0
- package/lib/components/inputs/input-with-select/input-with-select.component.d.ts +3 -0
- package/lib/components/label/label.component.d.ts +3 -0
- package/lib/components/link/link.component.d.ts +3 -0
- package/lib/components/loader/loader.component.d.ts +3 -0
- package/lib/components/loader/loader.module.d.ts +7 -0
- package/lib/components/logo/logo.component.d.ts +5 -2
- package/lib/components/multiple-search/multiple-search.component.d.ts +4 -1
- package/lib/components/multiple-search-plus/multiple-search-plus.component.d.ts +3 -0
- package/lib/components/pagination/pagination.component.d.ts +3 -0
- package/lib/components/pagination/pagination.module.d.ts +11 -0
- package/lib/components/pagination/pipes/array-pages.pipe.d.ts +3 -0
- package/lib/components/pagination/pipes/custom-text.pipe.d.ts +3 -0
- package/lib/components/pagination/pipes/is-last-page.pipe.d.ts +3 -0
- package/lib/components/popin/popin.component.d.ts +3 -0
- package/lib/components/progress-bar/progress-bar.component.d.ts +3 -0
- package/lib/components/progress-bar/progress-bar.module.d.ts +7 -0
- package/lib/components/radio/radio.component.d.ts +4 -1
- package/lib/components/search/search.component.d.ts +3 -0
- package/lib/components/selected-list/selected-list.component.d.ts +3 -0
- package/lib/components/selects/select/select.component.d.ts +3 -0
- package/lib/components/selects/select-in-text/select-in-text.component.d.ts +4 -1
- package/lib/components/separator/separator.component.d.ts +3 -0
- package/lib/components/settings/settings.component.d.ts +3 -0
- package/lib/components/shared-components.module.d.ts +78 -0
- package/lib/components/snackbar/snackbar.component.d.ts +3 -0
- package/lib/components/state/state.component.d.ts +3 -0
- package/lib/components/switch/switch.component.d.ts +4 -1
- package/lib/components/tab/tab.component.d.ts +3 -0
- package/lib/components/table/directives/checkBoxRow.directive.d.ts +3 -0
- package/lib/components/table/directives/column.directive.d.ts +3 -0
- package/lib/components/table/directives/columnHeader.directive.d.ts +3 -0
- package/lib/components/table/directives/raw.directive.d.ts +3 -0
- package/lib/components/table/shared/filters-table.service.d.ts +3 -0
- package/lib/components/table/shared/table-checkbox-id.service.d.ts +3 -0
- package/lib/components/table/table.component.d.ts +3 -0
- package/lib/components/table/table.module.d.ts +15 -0
- package/lib/components/tag/tag.component.d.ts +3 -0
- package/lib/components/text/text.component.d.ts +3 -0
- package/lib/components/text-area/text-area.component.d.ts +3 -2
- package/lib/components/tooltip/tooltip.component.d.ts +3 -0
- package/lib/components/tooltip/tooltip.module.d.ts +7 -0
- package/lib/components/tree/tree.component.d.ts +3 -0
- package/lib/components/tree/tree.module.d.ts +8 -0
- package/lib/components/upload/upload.component.d.ts +3 -0
- package/lib/components/wrapper/wrapper.component.d.ts +3 -0
- package/lib/components/wrapper-blocs/wrapper-blocs.component.d.ts +3 -0
- package/lib/directives/abstract-debounce/abstract-debounce.directive.d.ts +3 -0
- package/lib/directives/abstract-debounce/debounce-keyup.directive.d.ts +3 -0
- package/lib/directives/auto-hide/auto-hide.directive.d.ts +3 -0
- package/lib/directives/keyboard-events/keypress-enter.directive.d.ts +3 -0
- package/lib/directives/ng-var.directive.d.ts +3 -0
- package/lib/directives/shared-directives.module.d.ts +12 -0
- package/lib/directives/zindex-toggle/zindex-toggle.directive.d.ts +3 -0
- package/lib/pipes/select/select-filters.pipe.d.ts +3 -0
- package/lib/pipes/selected-list/are-all-options-selected.pipe.d.ts +3 -0
- package/lib/pipes/shared-pipes.module.d.ts +10 -0
- package/lib/pipes/tree/format-object-to-recursif-tree.pipe.d.ts +3 -0
- package/lib/pipes/tree/format-object-to-simple-tree.pipe.d.ts +3 -0
- package/lib/services/dom.service.d.ts +3 -0
- package/lib/services/multiple-selection.service.d.ts +3 -0
- package/lib/wizi-components.module.d.ts +9 -0
- package/package.json +20 -8
- package/public-api.d.ts +0 -7
- package/wizishop-angular-components-14.0.2.tgz +0 -0
- package/bundles/wizishop-angular-components.umd.js +0 -4672
- package/bundles/wizishop-angular-components.umd.js.map +0 -1
- package/bundles/wizishop-angular-components.umd.min.js +0 -16
- package/bundles/wizishop-angular-components.umd.min.js.map +0 -1
- package/esm2015/lib/components/alert/alert.component.js +0 -26
- package/esm2015/lib/components/alert-popup/alert-popup-module.js +0 -16
- package/esm2015/lib/components/alert-popup/alert-popup.component.js +0 -41
- package/esm2015/lib/components/alert-popup/alert-popup.service.js +0 -30
- package/esm2015/lib/components/back/back.component.js +0 -12
- package/esm2015/lib/components/block/block.component.js +0 -35
- package/esm2015/lib/components/block-with-checkbox/block-with-checkbox.component.js +0 -49
- package/esm2015/lib/components/breadcrumbs/breadcrumbs.component.js +0 -25
- package/esm2015/lib/components/breadcrumbs/breadcrumbs.dto.js +0 -2
- package/esm2015/lib/components/button/button.component.js +0 -134
- package/esm2015/lib/components/calendar/calendar.component.js +0 -185
- package/esm2015/lib/components/card-price/card-price.component.js +0 -37
- package/esm2015/lib/components/checkbox/checkbox.component.js +0 -62
- package/esm2015/lib/components/checkbox/checkbox.module.js +0 -18
- package/esm2015/lib/components/confirm-delete/confirm-delete.component.js +0 -36
- package/esm2015/lib/components/delete/delete.component.js +0 -12
- package/esm2015/lib/components/dropdown/dropdown.component.js +0 -24
- package/esm2015/lib/components/edit-in-place/edit-in-place.component.js +0 -190
- package/esm2015/lib/components/filters/filters.component.js +0 -39
- package/esm2015/lib/components/free-popin/free-popin.component.js +0 -55
- package/esm2015/lib/components/header-page/header-page.component.js +0 -22
- package/esm2015/lib/components/hn/h1/h1.component.js +0 -22
- package/esm2015/lib/components/hn/h2/h2.component.js +0 -13
- package/esm2015/lib/components/hn/h3/h3.component.js +0 -18
- package/esm2015/lib/components/hn/h4/h4.component.js +0 -18
- package/esm2015/lib/components/image/image.component.js +0 -15
- package/esm2015/lib/components/info/info.component.js +0 -12
- package/esm2015/lib/components/inputs/input/input.component.js +0 -128
- package/esm2015/lib/components/inputs/input/input.module.js +0 -24
- package/esm2015/lib/components/inputs/input-search/input-search.component.js +0 -49
- package/esm2015/lib/components/inputs/input-search/input-search.module.js +0 -22
- package/esm2015/lib/components/inputs/input-with-select/input-with-select.component.js +0 -54
- package/esm2015/lib/components/label/label.component.js +0 -33
- package/esm2015/lib/components/link/link.component.js +0 -48
- package/esm2015/lib/components/loader/loader.component.js +0 -19
- package/esm2015/lib/components/loader/loader.module.js +0 -18
- package/esm2015/lib/components/logo/logo.component.js +0 -17
- package/esm2015/lib/components/mosaic/mosaic.component.js +0 -41
- package/esm2015/lib/components/multiple-search/multiple-search.component.js +0 -113
- package/esm2015/lib/components/multiple-search-plus/multiple-search-plus.component.js +0 -83
- package/esm2015/lib/components/pagination/pagination.component.js +0 -44
- package/esm2015/lib/components/pagination/pagination.module.js +0 -24
- package/esm2015/lib/components/pagination/pipes/array-pages.pipe.js +0 -24
- package/esm2015/lib/components/pagination/pipes/custom-text.pipe.js +0 -33
- package/esm2015/lib/components/pagination/pipes/is-last-page.pipe.js +0 -21
- package/esm2015/lib/components/popin/popin.component.js +0 -56
- package/esm2015/lib/components/progress-bar/progress-bar.component.js +0 -74
- package/esm2015/lib/components/progress-bar/progress-bar.module.js +0 -18
- package/esm2015/lib/components/radio/radio.component.js +0 -51
- package/esm2015/lib/components/search/search.component.js +0 -75
- package/esm2015/lib/components/selected-list/selected-list.component.js +0 -51
- package/esm2015/lib/components/selects/select/select.component.js +0 -117
- package/esm2015/lib/components/selects/select-in-text/select-in-text.component.js +0 -89
- package/esm2015/lib/components/separator/separator.component.js +0 -18
- package/esm2015/lib/components/settings/settings.component.js +0 -13
- package/esm2015/lib/components/shared-components.module.js +0 -181
- package/esm2015/lib/components/snackbar/snackbar.component.js +0 -63
- package/esm2015/lib/components/state/state.component.js +0 -18
- package/esm2015/lib/components/switch/switch.component.js +0 -44
- package/esm2015/lib/components/tab/tab.component.js +0 -30
- package/esm2015/lib/components/table/directives/checkBoxRow.directive.js +0 -92
- package/esm2015/lib/components/table/directives/columnHeader.directive.js +0 -192
- package/esm2015/lib/components/table/directives/raw.directive.js +0 -29
- package/esm2015/lib/components/table/shared/filters-table.service.js +0 -70
- package/esm2015/lib/components/table/shared/table-checkbox-id.service.js +0 -18
- package/esm2015/lib/components/table/table.component.js +0 -130
- package/esm2015/lib/components/table/table.module.js +0 -31
- package/esm2015/lib/components/tag/tag.component.js +0 -30
- package/esm2015/lib/components/text/text.component.js +0 -16
- package/esm2015/lib/components/text-area/text-area.component.js +0 -67
- package/esm2015/lib/components/token-check/token-check.component.js +0 -21
- package/esm2015/lib/components/tooltip/tooltip.component.js +0 -27
- package/esm2015/lib/components/tooltip/tooltip.module.js +0 -18
- package/esm2015/lib/components/tree/tree.component.js +0 -20
- package/esm2015/lib/components/tree/tree.module.js +0 -20
- package/esm2015/lib/components/upload/upload.component.js +0 -31
- package/esm2015/lib/components/wrapper/wrapper.component.js +0 -18
- package/esm2015/lib/components/wrapper-blocs/wrapper-blocs.component.js +0 -19
- package/esm2015/lib/components/wrapper-sidebar/wrapper-sidebar.component.js +0 -19
- package/esm2015/lib/directives/abstract-debounce/abstract-debounce.directive.js +0 -34
- package/esm2015/lib/directives/abstract-debounce/debounce-keyup.directive.js +0 -21
- package/esm2015/lib/directives/auto-hide/auto-hide.directive.js +0 -48
- package/esm2015/lib/directives/keyboard-events/keypress-enter.directive.js +0 -21
- package/esm2015/lib/directives/ng-var.directive.js +0 -33
- package/esm2015/lib/directives/shared-directives.module.js +0 -20
- package/esm2015/lib/directives/zindex-toggle/zindex-toggle.directive.js +0 -43
- package/esm2015/lib/pipes/select/select-filters.pipe.js +0 -15
- package/esm2015/lib/pipes/selected-list/are-all-options-selected.pipe.js +0 -13
- package/esm2015/lib/pipes/shared-pipes.module.js +0 -22
- package/esm2015/lib/pipes/tree/format-object-to-recursif-tree.pipe.js +0 -37
- package/esm2015/lib/pipes/tree/format-object-to-simple-tree.pipe.js +0 -45
- package/esm2015/lib/services/dom.service.js +0 -64
- package/esm2015/lib/services/multiple-selection.service.js +0 -61
- package/esm2015/lib/wizi-components.module.js +0 -21
- package/esm2015/public-api.js +0 -97
- package/esm2015/wizishop-angular-components.js +0 -21
- package/fesm2015/wizishop-angular-components.js +0 -4033
- package/fesm2015/wizishop-angular-components.js.map +0 -1
- package/lib/components/block-with-checkbox/block-with-checkbox.component.d.ts +0 -18
- package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +0 -10
- package/lib/components/breadcrumbs/breadcrumbs.dto.d.ts +0 -5
- package/lib/components/card-price/card-price.component.d.ts +0 -18
- package/lib/components/confirm-delete/confirm-delete.component.d.ts +0 -14
- package/lib/components/mosaic/mosaic.component.d.ts +0 -15
- package/lib/components/token-check/token-check.component.d.ts +0 -9
- package/lib/components/wrapper-sidebar/wrapper-sidebar.component.d.ts +0 -6
- package/wizishop-angular-components-0.0.166.tgz +0 -0
- package/wizishop-angular-components.d.ts +0 -20
- package/wizishop-angular-components.metadata.json +0 -1
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output, ViewChild, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
export class WzEditInPlaceComponent {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.config = {};
|
|
6
|
-
this.customChange = new EventEmitter();
|
|
7
|
-
this.objectKeys = Object.keys;
|
|
8
|
-
this.editing = false;
|
|
9
|
-
this.onChange = Function.prototype;
|
|
10
|
-
this.onTouched = Function.prototype;
|
|
11
|
-
}
|
|
12
|
-
get value() {
|
|
13
|
-
return this.currentValue;
|
|
14
|
-
}
|
|
15
|
-
set value(v) {
|
|
16
|
-
if (v !== this.currentValue) {
|
|
17
|
-
this.currentValue = v;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
writeValue(value) {
|
|
21
|
-
if (value !== null) {
|
|
22
|
-
if (this.config.currency) {
|
|
23
|
-
this.currentValue = this.parseValueToNumber(value);
|
|
24
|
-
if (this.config.separator !== '.') {
|
|
25
|
-
this.currentValue = this.parseValueToSeparator(this.currentValue);
|
|
26
|
-
}
|
|
27
|
-
this.currentValue += this.config.currency;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
this.currentValue = value;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
registerOnChange(fn) {
|
|
35
|
-
this.onChange = fn;
|
|
36
|
-
}
|
|
37
|
-
registerOnTouched(fn) {
|
|
38
|
-
this.onTouched = fn;
|
|
39
|
-
}
|
|
40
|
-
_setValue(v) {
|
|
41
|
-
if (this.type === 'select') {
|
|
42
|
-
this.onChange(v);
|
|
43
|
-
}
|
|
44
|
-
else if (typeof this.config.currency === 'string') {
|
|
45
|
-
v = this.parseValueToNumber(v);
|
|
46
|
-
this.onChange(v);
|
|
47
|
-
if (this.config.separator !== '.') {
|
|
48
|
-
v = this.parseValueToSeparator(v);
|
|
49
|
-
}
|
|
50
|
-
v = v + this.config.currency;
|
|
51
|
-
this.customChange.emit(v);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
this.onChange(v);
|
|
55
|
-
}
|
|
56
|
-
this.writeValue(v);
|
|
57
|
-
this.value = v;
|
|
58
|
-
}
|
|
59
|
-
ngAfterViewChecked() {
|
|
60
|
-
if (this.input && this.editing) {
|
|
61
|
-
this.input.nativeElement.focus();
|
|
62
|
-
if (this.config.selectTextUponClick && this.firstEdit && this.preValue && this.input.nativeElement.value) {
|
|
63
|
-
this.input.nativeElement.select();
|
|
64
|
-
this.firstEdit = false;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
this.initialized = true;
|
|
68
|
-
}
|
|
69
|
-
startEditing() {
|
|
70
|
-
if (!this.editing) {
|
|
71
|
-
this.editing = true;
|
|
72
|
-
this.currentValue = this.checkAndRemoveCurrency(this.currentValue);
|
|
73
|
-
this.firstEdit = true;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
edit() {
|
|
77
|
-
this.preValue = this.currentValue;
|
|
78
|
-
this.editing = true;
|
|
79
|
-
}
|
|
80
|
-
onSubmit() {
|
|
81
|
-
this.editing = false;
|
|
82
|
-
if (this.currentValue !== this.preValue) {
|
|
83
|
-
if (typeof this.config.handler === 'function') {
|
|
84
|
-
this.isLoading = true;
|
|
85
|
-
this.config.handler(this.currentValue, this.config.data).subscribe(data => {
|
|
86
|
-
let hasChanged;
|
|
87
|
-
this.isLoading = false;
|
|
88
|
-
if (typeof data !== 'boolean') {
|
|
89
|
-
this.currentValue = data.value;
|
|
90
|
-
hasChanged = data.success;
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
hasChanged = data;
|
|
94
|
-
}
|
|
95
|
-
if (hasChanged) {
|
|
96
|
-
this._setValue(this.currentValue);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
this._setValue(this.preValue);
|
|
100
|
-
}
|
|
101
|
-
}, () => {
|
|
102
|
-
this.isLoading = false;
|
|
103
|
-
this._setValue(this.preValue);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
else {
|
|
107
|
-
this._setValue(this.currentValue);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
if (typeof this.config.currency === 'string') {
|
|
112
|
-
this.currentValue = this.currentValue + this.config.currency;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
checkAndRemoveCurrency(value) {
|
|
117
|
-
if (typeof this.config.currency === 'string') {
|
|
118
|
-
return value.slice(0, -1);
|
|
119
|
-
}
|
|
120
|
-
return value;
|
|
121
|
-
}
|
|
122
|
-
parseValueToNumber(value) {
|
|
123
|
-
if (!isNaN(value) && value !== '') {
|
|
124
|
-
return parseFloat(value);
|
|
125
|
-
}
|
|
126
|
-
if (typeof this.config.currency === 'string') {
|
|
127
|
-
const indexComma = value.indexOf(',');
|
|
128
|
-
const indexDot = value.indexOf('.');
|
|
129
|
-
if (indexComma > 0 && indexDot === -1) {
|
|
130
|
-
const parsedValue = value.replace(',', '.');
|
|
131
|
-
if (!isNaN(parsedValue)) {
|
|
132
|
-
return parseFloat(parsedValue);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
if (indexDot > 0 && indexComma === -1) {
|
|
136
|
-
if (!isNaN(value)) {
|
|
137
|
-
return parseFloat(value);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
return 0;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
parseValueToSeparator(value) {
|
|
144
|
-
if (typeof this.config.separator === 'string') {
|
|
145
|
-
value = parseFloat(value).toFixed(2);
|
|
146
|
-
return value.replace('.', this.config.separator);
|
|
147
|
-
}
|
|
148
|
-
return value;
|
|
149
|
-
}
|
|
150
|
-
ngOnChanges(changes) {
|
|
151
|
-
if (this.initialized) {
|
|
152
|
-
this.currentValue = this.checkAndRemoveCurrency(this.currentValue) + this.config.currency;
|
|
153
|
-
this.customChange.emit(this.value);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
selectOption(event) {
|
|
157
|
-
this.currentValue = event.target.innerText;
|
|
158
|
-
this.closeSelect(event);
|
|
159
|
-
event.stopPropagation();
|
|
160
|
-
this.customChange.emit(event.target.value);
|
|
161
|
-
}
|
|
162
|
-
closeSelect(event) {
|
|
163
|
-
this.editing = false;
|
|
164
|
-
this.isLoading = false;
|
|
165
|
-
event.stopPropagation();
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
WzEditInPlaceComponent.decorators = [
|
|
169
|
-
{ type: Component, args: [{
|
|
170
|
-
selector: 'wac-edit-in-place',
|
|
171
|
-
template: "<div [class.nwb-wrapper--editable]=\"type === 'select' || (!editing && !isLoading)\" class=\"wac-edit-in-place nwb-wrapper\" (click)=\"startEditing()\">\n <span\n data-text=\"dd\"\n [class.nwb-is-loading]=\"type === 'select' ? '' : isLoading\"\n [class.nwb-editing]=\"type === 'select' ? '' : editing\"\n [ngClass]=\"type === 'select' ? 'nwbSelect' : ''\"\n >\n {{ currentValue }}\n </span>\n\n <input\n #input\n *ngIf=\"type !== 'select' && editing\"\n [class.nwb-editable]=\"!editing\"\n [class.nwb-editing]=\"editing\"\n [class.nwb-is-loading]=\"isLoading\"\n type=\"text\"\n [(ngModel)]=\"value\"\n (focus)=\"edit()\"\n (blur)=\"onSubmit()\"\n (keyup.enter)=\"onSubmit()\"\n [ngStyle]=\"{ 'width.px': inputWidth }\"\n />\n <div class=\"nwbSelect__container\" *ngIf=\"type === 'select' && editing\">\n <div class=\"nwbSelect__background\" (click)=\"closeSelect($event)\"></div>\n <ng-container *ngFor=\"let nwbOption of objectKeys(nwbOptions)\">\n <button\n *ngIf=\"nwbOptions[nwbOption]\"\n [ngClass]=\"\n nwbOptions[nwbOption].label === currentValue\n ? 'nwbSelect__container__item nwbSelect__container__item--selected'\n : 'nwbSelect__container__item'\n \"\n (click)=\"selectOption($event)\"\n [value]=\"nwbOptions[nwbOption].value\"\n >\n {{ nwbOptions[nwbOption].label ? nwbOptions[nwbOption].label : nwbOptions[nwbOption].value }}\n </button>\n </ng-container>\n </div>\n\n <span class=\"nwb-loader\" [class.nwb-is-loading]=\"type === 'select' ? '' : isLoading\"></span>\n</div>\n",
|
|
172
|
-
encapsulation: ViewEncapsulation.None,
|
|
173
|
-
providers: [
|
|
174
|
-
{
|
|
175
|
-
provide: NG_VALUE_ACCESSOR,
|
|
176
|
-
useExisting: WzEditInPlaceComponent,
|
|
177
|
-
multi: true
|
|
178
|
-
}
|
|
179
|
-
]
|
|
180
|
-
},] }
|
|
181
|
-
];
|
|
182
|
-
WzEditInPlaceComponent.propDecorators = {
|
|
183
|
-
type: [{ type: Input }],
|
|
184
|
-
nwbOptions: [{ type: Input }],
|
|
185
|
-
config: [{ type: Input }],
|
|
186
|
-
label: [{ type: Input }],
|
|
187
|
-
customChange: [{ type: Output }],
|
|
188
|
-
input: [{ type: ViewChild, args: ['input',] }]
|
|
189
|
-
};
|
|
190
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdC1pbi1wbGFjZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2VkaXQtaW4tcGxhY2UvZWRpdC1pbi1wbGFjZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVMLFNBQVMsRUFFVCxZQUFZLEVBQ1osS0FBSyxFQUVMLE1BQU0sRUFFTixTQUFTLEVBQ1QsaUJBQWlCLEVBQ2xCLE1BQU0sZUFBZSxDQUFDO0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b3BQcm9wYWdhdGlvbigpO1xuICB9XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgTndiRWRpdEluUGxhY2VDb25maWcge1xuICAvKiogV2hldGhlciB0byBzZWxlY3QgdGhlIHdob2xlIHRleHQgaW5zaWRlIHRoZSBpbnB1dCB1cG9uIGNsaWNrICovXG4gIHNlbGVjdFRleHRVcG9uQ2xpY2s/OiBib29sZWFuO1xuXG4gIC8qKiBEYXRhIHRvIHBhc3MgYXMgdGhlIHNlY29uZCBhcmd1bWVudCBmb3IgdGhlIGhhbmRsZXIgbWV0aG9kIGlmIGFueSAqKi9cbiAgZGF0YT86IGFueTtcblxuICBjdXJyZW5jeT86IHN0cmluZztcblxuICBzZXBhcmF0b3I/OiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIGhhbmRsZXIgbWV0aG9kIHRvIGNhbGwgb24gY2hhbmdlLlxuICAgKiBUaGlzIGFsbG93cyB5b3UgdG8gcGVyZm9ybSBhbnkgYWN0aW9uIGJlZm9yZSBzZXR0aW5nIG5ldyB2YWx1ZSB0byB0aGUgbW9kZWxcbiAgICogSXQgaGFzIHRvIHJldHVybiBhIGJvb2xlYW4gb2JzZXJ2YWJsZS4gSWYgdGhlIHJldHVybmVkIHZhbHVlIGlzIHRydWUgdGhlbiB0aGUgbW9kZWwgd2lsbCBjaGFuZ2UuXG4gICAqL1xuICBoYW5kbGVyPzogKHZhbHVlOiBhbnksIGRhdGE6IGFueSkgPT4gT2JzZXJ2YWJsZTxib29sZWFuIHwgUmV0dXJuZWREYXRhPjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBSZXR1cm5lZERhdGEge1xuICBzdWNjZXNzOiBib29sZWFuO1xuICB2YWx1ZTogYW55O1xufVxuIl19
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
export class FiltersComponent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.labelRestart = 'Afficher toutes les catégories';
|
|
5
|
-
this.filterChange = new EventEmitter();
|
|
6
|
-
}
|
|
7
|
-
ngOnInit() {
|
|
8
|
-
this.options.forEach((item, index) => {
|
|
9
|
-
if (item.active) {
|
|
10
|
-
this.filterActiveIndex = '' + index;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
activeFilter(index) {
|
|
15
|
-
this.options[index].active = true;
|
|
16
|
-
this.filterActiveIndex = '' + index;
|
|
17
|
-
this.filterChange.emit(index);
|
|
18
|
-
}
|
|
19
|
-
resetFilter() {
|
|
20
|
-
this.options.forEach((item) => {
|
|
21
|
-
item.active = false;
|
|
22
|
-
});
|
|
23
|
-
this.filterActiveIndex = null;
|
|
24
|
-
this.filterChange.emit(-1);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
FiltersComponent.decorators = [
|
|
28
|
-
{ type: Component, args: [{
|
|
29
|
-
selector: 'wac-filters',
|
|
30
|
-
template: "<div class=\"wac-filters\">\n <div class=\"wac-filters__wrapper\" *ngIf=\"!filterActiveIndex\">\n <button *ngFor=\"let option of options; let i = index\">\n <span class=\"event\" (click)=\"activeFilter(i)\"></span><span [innerHTML]=\"option.name\"></span>\n </button>\n </div>\n <div class=\"wac-filters__wrapper\" *ngIf=\"filterActiveIndex\">\n <button (click)=\"resetFilter()\" class=\"active\">\n <i class=\"fas fa-times\"></i><span [innerHTML]=\"options[filterActiveIndex].name\"></span>\n </button>\n <span (click)=\"resetFilter()\">{{ labelRestart }}</span>\n </div>\n</div>\n"
|
|
31
|
-
},] }
|
|
32
|
-
];
|
|
33
|
-
FiltersComponent.ctorParameters = () => [];
|
|
34
|
-
FiltersComponent.propDecorators = {
|
|
35
|
-
options: [{ type: Input }],
|
|
36
|
-
labelRestart: [{ type: Input }],
|
|
37
|
-
filterChange: [{ type: Output }]
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVycy5jb21wb25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CB7XG4gICAgdGhpcy5vcHRpb25zLmZvckVhY2goKGl0ZW0sIGluZGV4KSA9PiB7XG5cbiAgICAgIGlmIChpdGVtLmFjdGl2ZSkge1xuICAgICAgICB0aGlzLmZpbHRlckFjdGl2ZUluZGV4ID0gJycgKyBpbmRleDtcbiAgICAgIH1cbiAgICB9KTtcblxuICB9XG5cbiAgYWN0aXZlRmlsdGVyKGluZGV4OiBudW1iZXIpIHtcbiAgICB0aGlzLm9wdGlvbnNbaW5kZXhdLmFjdGl2ZSA9IHRydWU7XG4gICAgdGhpcy5maWx0ZXJBY3RpdmVJbmRleCA9ICcnICsgaW5kZXg7XG4gICAgdGhpcy5maWx0ZXJDaGFuZ2UuZW1pdChpbmRleCk7XG4gIH1cblxuICByZXNldEZpbHRlcigpIHtcbiAgICB0aGlzLm9wdGlvbnMuZm9yRWFjaCgoaXRlbSkgPT4ge1xuICAgICAgaXRlbS5hY3RpdmUgPSBmYWxzZTtcbiAgICB9KTtcbiAgICB0aGlzLmZpbHRlckFjdGl2ZUluZGV4ID0gbnVsbDtcbiAgICB0aGlzLmZpbHRlckNoYW5nZS5lbWl0KC0xKTtcbiAgfVxufVxuIl19
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { DomService } from '../../services/dom.service';
|
|
3
|
-
export class FreePopinComponent {
|
|
4
|
-
constructor(domService) {
|
|
5
|
-
this.domService = domService;
|
|
6
|
-
this.visible = false;
|
|
7
|
-
this.disableCloseOutside = false;
|
|
8
|
-
this.visibleChange = new EventEmitter();
|
|
9
|
-
this.response = new EventEmitter();
|
|
10
|
-
this.background = true;
|
|
11
|
-
this.zIndex = 9999;
|
|
12
|
-
this.firstOpen = true;
|
|
13
|
-
}
|
|
14
|
-
ngOnInit() {
|
|
15
|
-
this.domService.setDocumentEventListener();
|
|
16
|
-
}
|
|
17
|
-
validatePopin() {
|
|
18
|
-
this.response.emit(true);
|
|
19
|
-
this.closePopin();
|
|
20
|
-
}
|
|
21
|
-
refusePopin() {
|
|
22
|
-
this.response.emit(false);
|
|
23
|
-
this.closePopin();
|
|
24
|
-
}
|
|
25
|
-
closePopin() {
|
|
26
|
-
if (!this.firstOpen || this.disableCloseOutside) {
|
|
27
|
-
this.visible = false;
|
|
28
|
-
this.visibleChange.emit(this.visible);
|
|
29
|
-
this.firstOpen = true;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
this.firstOpen = false;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
FreePopinComponent.decorators = [
|
|
37
|
-
{ type: Component, args: [{
|
|
38
|
-
selector: 'wac-free-popin',
|
|
39
|
-
template: "<div class=\"wac-free-popin\" *ngIf=\"visible\" [ngStyle]=\"{'z-index': zIndex}\">\n <div class=\"wac-free-popin__wrapper\" wzAutoHide (clickOutside)=\"!disableCloseOutside ? closePopin() : ''\">\n <a class=\"wac-free-popin__wrapper__button-close\" (click)=\"closePopin()\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"wac-free-popin__wrapper__content\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\">\n <ng-content></ng-content>\n </perfect-scrollbar>\n </div>\n <div class=\"wac-free-popin__wrapper__buttons\">\n <div class=\"wac-free-popin__wrapper__buttons__button\" *ngIf=\"okButtonLabel\">\n <wac-button [extraClasses]=\"'is-success'\" [label]=\"okButtonLabel\" hasLoader=\"true\" (click)=\"validatePopin()\"></wac-button>\n </div>\n <div class=\"wac-free-popin__wrapper__buttons__button\" *ngIf=\"koButtonLabel\">\n <wac-button [extraClasses]=\"'is-danger is-outlined'\" [label]=\"koButtonLabel\" hasLoader=\"true\" (click)=\"refusePopin()\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-free-popin__background\" *ngIf=\"background\"></div>\n</div>\n"
|
|
40
|
-
},] }
|
|
41
|
-
];
|
|
42
|
-
FreePopinComponent.ctorParameters = () => [
|
|
43
|
-
{ type: DomService }
|
|
44
|
-
];
|
|
45
|
-
FreePopinComponent.propDecorators = {
|
|
46
|
-
okButtonLabel: [{ type: Input }],
|
|
47
|
-
koButtonLabel: [{ type: Input }],
|
|
48
|
-
visible: [{ type: Input }],
|
|
49
|
-
disableCloseOutside: [{ type: Input }],
|
|
50
|
-
visibleChange: [{ type: Output }],
|
|
51
|
-
response: [{ type: Output }],
|
|
52
|
-
background: [{ type: Input }],
|
|
53
|
-
zIndex: [{ type: Input }]
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnJlZS1wb3Bpbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2ZyZWUtcG9waW4vZnJlZS1wb3Bpbi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFVLE1BQU0sRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMvRSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFNeEQsTUFBTSxPQUFPLGtCQUFrQjtJQTJCN0IsWUFBb0IsVUFBc0I7UUFBdEIsZUFBVSxHQUFWLFVBQVUsQ0FBWTtRQW5CMUMsWUFBTyxHQUFHLEtBQUssQ0FBQztRQUdoQix3QkFBbUIsR0FBRyxLQUFLLENBQUM7UUFHNUIsa0JBQWEsR0FBRyxJQUFJLFlBQVksRUFBRSxDQUFDO1FBR25DLGFBQVEsR0FBRyxJQUFJLFlBQVksRUFBRSxDQUFDO1FBRzlCLGVBQVUsR0FBRyxJQUFJLENBQUM7UUFHbEIsV0FBTSxHQUFXLElBQUksQ0FBQztRQUV0Qixj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4gIHJlZnVzZVBvcGluKCl7XG4gICAgdGhpcy5yZXNwb25zZS5lbWl0KGZhbHNlKTtcbiAgICB0aGlzLmNsb3NlUG9waW4oKTtcbiAgfVxuXG4gIGNsb3NlUG9waW4oKSB7XG4gICAgaWYgKCF0aGlzLmZpcnN0T3BlbiB8fCB0aGlzLmRpc2FibGVDbG9zZU91dHNpZGUpIHtcbiAgICAgIHRoaXMudmlzaWJsZSA9IGZhbHNlO1xuICAgICAgdGhpcy52aXNpYmxlQ2hhbmdlLmVtaXQodGhpcy52aXNpYmxlKTtcbiAgICAgIHRoaXMuZmlyc3RPcGVuID0gdHJ1ZTtcbiAgICB9IGVsc2Uge1xuICAgICAgdGhpcy5maXJzdE9wZW4gPSBmYWxzZTtcbiAgICB9XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
export class HeaderPageComponent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.withImg = false;
|
|
5
|
-
this.center = false;
|
|
6
|
-
}
|
|
7
|
-
ngOnInit() { }
|
|
8
|
-
}
|
|
9
|
-
HeaderPageComponent.decorators = [
|
|
10
|
-
{ type: Component, args: [{
|
|
11
|
-
selector: 'wac-header-page',
|
|
12
|
-
template: "<div class=\"wac-header-page\">\n <div class=\"wac-header-page__maxWidth\">\n <div class=\"wac-header-page__maxWidth__top\" [ngClass]=\"{'center':center}\">\n <div class=\"wac-header-page__maxWidth__top__left\" [ngClass]=\"{'fullsize':center}\">\n <!-- TODO Hard to use when only want a button and not a router link -->\n <a *ngIf=\"linkBack\" [routerLink]=\"linkBack\"><i class=\"fas fa-chevron-left\"></i></a>\n <wac-h1 [center]=\"center\" [withImg]=\"withImg\">{{ title }}<ng-content select=\"[role=header]\"></ng-content></wac-h1>\n </div>\n <div class=\"wac-header-page__maxWidth__top__right\" *ngIf=\"!center\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n"
|
|
13
|
-
},] }
|
|
14
|
-
];
|
|
15
|
-
HeaderPageComponent.ctorParameters = () => [];
|
|
16
|
-
HeaderPageComponent.propDecorators = {
|
|
17
|
-
title: [{ type: Input }],
|
|
18
|
-
linkBack: [{ type: Input }],
|
|
19
|
-
withImg: [{ type: Input }],
|
|
20
|
-
center: [{ type: Input }]
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGVyLXBhZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9oZWFkZXItcGFnZS9oZWFkZXItcGFnZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFLekQsTUFBTSxPQUFPLG1CQUFtQjtJQVM5QjtRQUhBLFlBQU8sR0FBRyxLQUFLLENBQUM7UUFFaEIsV0FBTSxHQUFHLEtBQUssQ0FBQztJQUNBLENBQUM7SUFDaEIsUUFBUSxLQUFVLENBQUM7OztZQWRwQixTQUFTLFNBQUM7Z0JBQ1QsUUFBUSxFQUFFLGlCQUFpQjtnQkFDM0IsOHVCQUEyQzthQUM1Qzs7OztvQkFFRSxLQUFLO3VCQUVMLEtBQUs7c0JBRUwsS0FBSztxQkFFTCxLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCwgT25Jbml0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICd3YWMtaGVhZGVyLXBhZ2UnLFxuICB0ZW1wbGF0ZVVybDogJy4vaGVhZGVyLXBhZ2UuY29tcG9uZW50Lmh0bWwnXG59KVxuZXhwb3J0IGNsYXNzIEhlYWRlclBhZ2VDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuICBASW5wdXQoKVxuICB0aXRsZTogc3RyaW5nO1xuICBASW5wdXQoKVxuICBsaW5rQmFjazogc3RyaW5nO1xuICBASW5wdXQoKVxuICB3aXRoSW1nID0gZmFsc2U7XG4gIEBJbnB1dCgpXG4gIGNlbnRlciA9IGZhbHNlO1xuICBjb25zdHJ1Y3RvcigpIHt9XG4gIG5nT25Jbml0KCk6IHZvaWQge31cbn1cbiJdfQ==
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
export class H1Component {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.annotation = '';
|
|
5
|
-
this.withImg = false;
|
|
6
|
-
this.center = false;
|
|
7
|
-
}
|
|
8
|
-
ngOnInit() { }
|
|
9
|
-
}
|
|
10
|
-
H1Component.decorators = [
|
|
11
|
-
{ type: Component, args: [{
|
|
12
|
-
selector: 'wac-h1',
|
|
13
|
-
template: "<h1 class=\"wac-h1\" [ngClass]=\"{'with-img': withImg, 'center': center}\"><ng-content></ng-content><small *ngIf=\"annotation !== ''\">{{ annotation }}</small></h1>\n"
|
|
14
|
-
},] }
|
|
15
|
-
];
|
|
16
|
-
H1Component.ctorParameters = () => [];
|
|
17
|
-
H1Component.propDecorators = {
|
|
18
|
-
annotation: [{ type: Input }],
|
|
19
|
-
withImg: [{ type: Input }],
|
|
20
|
-
center: [{ type: Input }]
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaDEuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9obi9oMS9oMS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxLQUFLLEVBQVMsTUFBTSxlQUFlLENBQUM7QUFNdkQsTUFBTSxPQUFPLFdBQVc7SUFPdEI7UUFMQSxlQUFVLEdBQUcsRUFBRSxDQUFDO1FBRWhCLFlBQU8sR0FBRyxLQUFLLENBQUM7UUFFaEIsV0FBTSxHQUFHLEtBQUssQ0FBQztJQUNBLENBQUM7SUFFaEIsUUFBUSxLQUFVLENBQUM7OztZQWJwQixTQUFTLFNBQUM7Z0JBQ1QsUUFBUSxFQUFFLFFBQVE7Z0JBQ2xCLGtMQUFrQzthQUNuQzs7Ozt5QkFFRSxLQUFLO3NCQUVMLEtBQUs7cUJBRUwsS0FBSyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7Q29tcG9uZW50LCBJbnB1dCwgT25Jbml0fSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnd2FjLWgxJyxcbiAgdGVtcGxhdGVVcmw6ICcuL2gxLmNvbXBvbmVudC5odG1sJ1xufSlcbmV4cG9ydCBjbGFzcyBIMUNvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XG4gIEBJbnB1dCgpXG4gIGFubm90YXRpb24gPSAnJztcbiAgQElucHV0KClcbiAgd2l0aEltZyA9IGZhbHNlO1xuICBASW5wdXQoKVxuICBjZW50ZXIgPSBmYWxzZTtcbiAgY29uc3RydWN0b3IoKSB7fVxuXG4gIG5nT25Jbml0KCk6IHZvaWQge31cbn1cbiJdfQ==
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
export class H2Component {
|
|
3
|
-
constructor() { }
|
|
4
|
-
ngOnInit() { }
|
|
5
|
-
}
|
|
6
|
-
H2Component.decorators = [
|
|
7
|
-
{ type: Component, args: [{
|
|
8
|
-
selector: 'wac-h2',
|
|
9
|
-
template: "<h2 class=\"wac-h2\"><ng-content></ng-content></h2>\n"
|
|
10
|
-
},] }
|
|
11
|
-
];
|
|
12
|
-
H2Component.ctorParameters = () => [];
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaDIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9obi9oMi9oMi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQU9sRCxNQUFNLE9BQU8sV0FBVztJQUN0QixnQkFBZSxDQUFDO0lBRWhCLFFBQVEsS0FBVSxDQUFDOzs7WUFQcEIsU0FBUyxTQUFDO2dCQUNULFFBQVEsRUFBRSxRQUFRO2dCQUNsQixpRUFBa0M7YUFDbkMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIE9uSW5pdCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ3dhYy1oMicsXG4gIHRlbXBsYXRlVXJsOiAnLi9oMi5jb21wb25lbnQuaHRtbCdcbn0pXG5leHBvcnQgY2xhc3MgSDJDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuICBjb25zdHJ1Y3RvcigpIHt9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7fVxufVxuIl19
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
export class H3Component {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.grey = false;
|
|
5
|
-
}
|
|
6
|
-
ngOnInit() { }
|
|
7
|
-
}
|
|
8
|
-
H3Component.decorators = [
|
|
9
|
-
{ type: Component, args: [{
|
|
10
|
-
selector: 'wac-h3',
|
|
11
|
-
template: "<h3 class=\"wac-h3\" [ngClass]=\"{ grey: grey }\"><ng-content></ng-content></h3>\n"
|
|
12
|
-
},] }
|
|
13
|
-
];
|
|
14
|
-
H3Component.ctorParameters = () => [];
|
|
15
|
-
H3Component.propDecorators = {
|
|
16
|
-
grey: [{ type: Input }]
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaDMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9obi9oMy9oMy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFPekQsTUFBTSxPQUFPLFdBQVc7SUFFdEI7UUFEUyxTQUFJLEdBQUcsS0FBSyxDQUFDO0lBQ1AsQ0FBQztJQUVoQixRQUFRLEtBQVUsQ0FBQzs7O1lBUnBCLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsUUFBUTtnQkFDbEIsOEZBQWtDO2FBQ25DOzs7O21CQUVFLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIElucHV0LCBPbkluaXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICd3YWMtaDMnLFxuICB0ZW1wbGF0ZVVybDogJy4vaDMuY29tcG9uZW50Lmh0bWwnXG59KVxuZXhwb3J0IGNsYXNzIEgzQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcbiAgQElucHV0KCkgZ3JleSA9IGZhbHNlO1xuICBjb25zdHJ1Y3RvcigpIHt9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7fVxufVxuIl19
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
export class H4Component {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.grey = false;
|
|
5
|
-
}
|
|
6
|
-
ngOnInit() { }
|
|
7
|
-
}
|
|
8
|
-
H4Component.decorators = [
|
|
9
|
-
{ type: Component, args: [{
|
|
10
|
-
selector: 'wac-h4',
|
|
11
|
-
template: "<h4 class=\"wac-h4\" [ngClass]=\"{ grey: grey }\"><ng-content></ng-content></h4>\n"
|
|
12
|
-
},] }
|
|
13
|
-
];
|
|
14
|
-
H4Component.ctorParameters = () => [];
|
|
15
|
-
H4Component.propDecorators = {
|
|
16
|
-
grey: [{ type: Input }]
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaDQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9obi9oNC9oNC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFNekQsTUFBTSxPQUFPLFdBQVc7SUFFdEI7UUFEUyxTQUFJLEdBQUcsS0FBSyxDQUFDO0lBQ1AsQ0FBQztJQUVoQixRQUFRLEtBQVUsQ0FBQzs7O1lBUnBCLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsUUFBUTtnQkFDbEIsOEZBQWtDO2FBQ25DOzs7O21CQUVFLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIElucHV0LCBPbkluaXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnd2FjLWg0JyxcbiAgdGVtcGxhdGVVcmw6ICcuL2g0LmNvbXBvbmVudC5odG1sJ1xufSlcbmV4cG9ydCBjbGFzcyBINENvbXBvbmVudCBpbXBsZW1lbnRzIE9uSW5pdCB7XG4gIEBJbnB1dCgpIGdyZXkgPSBmYWxzZTtcbiAgY29uc3RydWN0b3IoKSB7fVxuXG4gIG5nT25Jbml0KCk6IHZvaWQge31cbn1cbiJdfQ==
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
export class ImageComponent {
|
|
3
|
-
constructor() { }
|
|
4
|
-
}
|
|
5
|
-
ImageComponent.decorators = [
|
|
6
|
-
{ type: Component, args: [{
|
|
7
|
-
selector: 'wac-image',
|
|
8
|
-
template: "<div class=\"wac-image\">\n <div class=\"wac-image__wrapper\" [ngClass]=\"src === '' ? 'empty' : ''\" [style.background-image]=\"'url(' + src + ')'\">\n <i class=\"fal fa-images\" *ngIf=\"src === ''\"></i>\n </div>\n</div>\n"
|
|
9
|
-
},] }
|
|
10
|
-
];
|
|
11
|
-
ImageComponent.ctorParameters = () => [];
|
|
12
|
-
ImageComponent.propDecorators = {
|
|
13
|
-
src: [{ type: Input }]
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2UuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5ndWxhci1jb21wb25lbnRzL3NyYy9saWIvY29tcG9uZW50cy9pbWFnZS9pbWFnZS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFNakQsTUFBTSxPQUFPLGNBQWM7SUFJekIsZ0JBQWUsQ0FBQzs7O1lBUmpCLFNBQVMsU0FBQztnQkFDVCxRQUFRLEVBQUUsV0FBVztnQkFDckIsaVBBQXFDO2FBQ3RDOzs7O2tCQUVFLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIElucHV0IH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ3dhYy1pbWFnZScsXG4gIHRlbXBsYXRlVXJsOiAnLi9pbWFnZS5jb21wb25lbnQuaHRtbCdcbn0pXG5leHBvcnQgY2xhc3MgSW1hZ2VDb21wb25lbnQge1xuICBASW5wdXQoKVxuICBzcmM6ICcnO1xuXG4gIGNvbnN0cnVjdG9yKCkge31cbn1cbiJdfQ==
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
export class InfoComponent {
|
|
3
|
-
constructor() { }
|
|
4
|
-
}
|
|
5
|
-
InfoComponent.decorators = [
|
|
6
|
-
{ type: Component, args: [{
|
|
7
|
-
selector: 'wac-info',
|
|
8
|
-
template: "<div class=\"wac-info\">\n <div class=\"wac-info__wrapper\">\n <i class=\"fas fa-info-circle\"></i>\n <div class=\"wac-info__wrapper__sublevel\">\n <div class=\"wac-info__wrapper__sublevel__container\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n"
|
|
9
|
-
},] }
|
|
10
|
-
];
|
|
11
|
-
InfoComponent.ctorParameters = () => [];
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5mby5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLWNvbXBvbmVudHMvc3JjL2xpYi9jb21wb25lbnRzL2luZm8vaW5mby5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQU0xQyxNQUFNLE9BQU8sYUFBYTtJQUN4QixnQkFBZSxDQUFDOzs7WUFMakIsU0FBUyxTQUFDO2dCQUNULFFBQVEsRUFBRSxVQUFVO2dCQUNwQixtVEFBb0M7YUFDckMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnd2FjLWluZm8nLFxuICB0ZW1wbGF0ZVVybDogJy4vaW5mby5jb21wb25lbnQuaHRtbCdcbn0pXG5leHBvcnQgY2xhc3MgSW5mb0NvbXBvbmVudCB7XG4gIGNvbnN0cnVjdG9yKCkge31cbn1cbiJdfQ==
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
export class InputComponent {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.label = '';
|
|
6
|
-
this.value = '';
|
|
7
|
-
this.type = 'text';
|
|
8
|
-
this.placeholder = '';
|
|
9
|
-
this.textInfo = null;
|
|
10
|
-
this.textError = null;
|
|
11
|
-
this.size = null;
|
|
12
|
-
this.isNumber = null;
|
|
13
|
-
this.withoutBlock = false;
|
|
14
|
-
this.icon = '';
|
|
15
|
-
this.big = false;
|
|
16
|
-
this.medium = false;
|
|
17
|
-
this.boldLabel = 'false';
|
|
18
|
-
this.min = null;
|
|
19
|
-
this.max = null;
|
|
20
|
-
this.disableMargin = false;
|
|
21
|
-
this.textPrepend = null;
|
|
22
|
-
this.textAppend = null;
|
|
23
|
-
this.progressBar = false;
|
|
24
|
-
this.extraClasses = '';
|
|
25
|
-
this.keyPreventDefault = [];
|
|
26
|
-
this.showTooltip = false;
|
|
27
|
-
this.textTooltip = '';
|
|
28
|
-
this.iconTooltip = '';
|
|
29
|
-
this.urlTooltip = '';
|
|
30
|
-
this.linkTooltip = '';
|
|
31
|
-
this.padding = false;
|
|
32
|
-
this.disabled = false;
|
|
33
|
-
this.indication = false;
|
|
34
|
-
this.success = false;
|
|
35
|
-
this.indicationLeft = false;
|
|
36
|
-
this.keypressEnter = new EventEmitter();
|
|
37
|
-
this.KEYPRESS_ENTER = "Enter";
|
|
38
|
-
this.id = 'wz-input_' +
|
|
39
|
-
Math.random()
|
|
40
|
-
.toString(36)
|
|
41
|
-
.substr(2, 9);
|
|
42
|
-
}
|
|
43
|
-
registerOnChange(fn) {
|
|
44
|
-
this._onChange = fn;
|
|
45
|
-
}
|
|
46
|
-
registerOnTouched(fn) {
|
|
47
|
-
this._onTouched = fn;
|
|
48
|
-
}
|
|
49
|
-
setDisabledState(isDisabled) {
|
|
50
|
-
this.disabled = isDisabled;
|
|
51
|
-
}
|
|
52
|
-
writeValue(obj) {
|
|
53
|
-
this.value = obj;
|
|
54
|
-
}
|
|
55
|
-
onChange(value) {
|
|
56
|
-
if (this._onChange) {
|
|
57
|
-
this._onChange(value);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
onBlur() {
|
|
61
|
-
if (this._onTouched) {
|
|
62
|
-
this._onTouched();
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
checkNumberValue(value) {
|
|
66
|
-
if (this.min && this.min > value) {
|
|
67
|
-
this.value = this.min;
|
|
68
|
-
}
|
|
69
|
-
if (this.max && this.max < value) {
|
|
70
|
-
this.value = this.max;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
onFocusOut() {
|
|
74
|
-
if (this.type === 'number') {
|
|
75
|
-
this.checkNumberValue(this.value);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
keyPress(event) {
|
|
79
|
-
if (this.keyPreventDefault.includes(event.key)) {
|
|
80
|
-
event.preventDefault();
|
|
81
|
-
}
|
|
82
|
-
if (event.key === this.KEYPRESS_ENTER) {
|
|
83
|
-
this.keypressEnter.next(true);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
InputComponent.decorators = [
|
|
88
|
-
{ type: Component, args: [{
|
|
89
|
-
selector: 'wac-input',
|
|
90
|
-
template: "<div\n class=\"field wac-input\"\n [ngClass]=\"{ 'has-no-block': withoutBlock, 'is-big': big, 'is-medium': medium, 'with-padding': padding, 'indication-left': indicationLeft, 'with-progress-bar': progressBar }\"\n>\n <div class=\"field-label is-normal has-text-left\" *ngIf=\"!withoutBlock\">\n <label\n [ngClass]=\"[boldLabel == 'true' ? 'label has-text-weight-bold' : 'label has-text-weight-normal', showTooltip ? 'label-inline' : '']\"\n [innerHTML]=\"label\"\n [for]=\"id\"\n ></label>\n <wac-tooltip\n *ngIf=\"showTooltip\"\n [tooltipIcon]=\"iconTooltip\"\n [tooltipText]=\"textTooltip\"\n [tooltipLink]=\"linkTooltip\"\n [tooltipUrl]=\"urlTooltip\"\n ></wac-tooltip>\n <!-- Size -->\n <span *ngIf=\"value && size && !progressBar\" class=\"is-size-7 wac-input__size\">\n <strong>{{ value.toString().length }}</strong> / {{ size }}\n </span>\n </div>\n <div class=\"field-body\">\n <div class=\"field\">\n <p\n class=\"control\"\n [ngClass]=\"{ 'has-icons-right': textError || success, 'has-icons-left': icon !== '', 'has-input-group': textAppend || textPrepend }\"\n >\n <!-- Text Prepend -->\n <span *ngIf=\"textPrepend\" class=\"has-input-group\">\n <span class=\"has-input-group-text prepend\">{{ textPrepend }}</span>\n <span *ngIf=\"icon !== ''\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n </span>\n\n <!-- Input -->\n <input\n [class]=\"'input ' + extraClasses\"\n [id]=\"id\"\n [ngClass]=\"{\n 'is-danger': textError,\n 'is-large': big,\n 'is-number': isNumber,\n 'remove-margin': disableMargin,\n 'text-append': textAppend\n }\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [attr.size]=\"size\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n [disabled]=\"disabled\"\n (focusout)=\"onFocusOut()\"\n [min]=\"min\"\n [max]=\"max\"\n (keypress)=\"keyPress($event)\"\n />\n\n <!-- Indication at the end of the input -->\n <span class=\"indication\" *ngIf=\"indication\" [ngClass]=\"{'reverse': indicationLeft}\">\n <span [innerHTML]=\"indication\"></span>\n </span>\n\n <!-- Text Append -->\n <span *ngIf=\"textAppend && !indicationLeft\" class=\"has-input-group\">\n <span class=\"has-input-group-text append\">{{ textAppend }}</span>\n <!-- error if text append not empty -->\n <span *ngIf=\"textError\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n </span>\n\n <!-- Icon Left -->\n <span *ngIf=\"icon !== '' && !textPrepend && !indicationLeft\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n\n <!-- Icon error if textAppend empty -->\n <span *ngIf=\"textError && !textAppend && !indicationLeft\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n\n <!-- Icon success -->\n <span *ngIf=\"success\" class=\"icon is-small is-right\">\n <i class=\"fas fa-check has-text-success\"></i>\n </span>\n\n <!-- Text Info -->\n <span\n *ngIf=\"textInfo && (textError === null || textError === '') && !progressBar && !indicationLeft\"\n class=\"is-size-7 wac-input__info text-info\"\n [innerHtml]=\"textInfo\"\n ></span>\n\n <!-- Text Error -->\n <span *ngIf=\"textError && !progressBar && !indicationLeft\" class=\"is-size-7 wac-input__error has-text-danger\" [innerHtml]=\"textError\"></span>\n </p>\n\n <!-- Progress Bar -->\n <wac-progress-bar *ngIf=\"progressBar && !indicationLeft\" [min]=\"min\" [max]=\"max\" [valueLength]=\"value.length\"></wac-progress-bar>\n </div>\n </div>\n</div>\n",
|
|
91
|
-
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: InputComponent, multi: true }]
|
|
92
|
-
},] }
|
|
93
|
-
];
|
|
94
|
-
InputComponent.propDecorators = {
|
|
95
|
-
label: [{ type: Input }],
|
|
96
|
-
value: [{ type: Input }],
|
|
97
|
-
type: [{ type: Input }],
|
|
98
|
-
placeholder: [{ type: Input }],
|
|
99
|
-
textInfo: [{ type: Input }],
|
|
100
|
-
textError: [{ type: Input }],
|
|
101
|
-
size: [{ type: Input }],
|
|
102
|
-
isNumber: [{ type: Input }],
|
|
103
|
-
withoutBlock: [{ type: Input }],
|
|
104
|
-
icon: [{ type: Input }],
|
|
105
|
-
big: [{ type: Input }],
|
|
106
|
-
medium: [{ type: Input }],
|
|
107
|
-
boldLabel: [{ type: Input }],
|
|
108
|
-
min: [{ type: Input }],
|
|
109
|
-
max: [{ type: Input }],
|
|
110
|
-
disableMargin: [{ type: Input }],
|
|
111
|
-
textPrepend: [{ type: Input }],
|
|
112
|
-
textAppend: [{ type: Input }],
|
|
113
|
-
progressBar: [{ type: Input }],
|
|
114
|
-
extraClasses: [{ type: Input }],
|
|
115
|
-
keyPreventDefault: [{ type: Input }],
|
|
116
|
-
showTooltip: [{ type: Input }],
|
|
117
|
-
textTooltip: [{ type: Input }],
|
|
118
|
-
iconTooltip: [{ type: Input }],
|
|
119
|
-
urlTooltip: [{ type: Input }],
|
|
120
|
-
linkTooltip: [{ type: Input }],
|
|
121
|
-
padding: [{ type: Input }],
|
|
122
|
-
disabled: [{ type: Input }],
|
|
123
|
-
indication: [{ type: Input }],
|
|
124
|
-
success: [{ type: Input }],
|
|
125
|
-
indicationLeft: [{ type: Input }],
|
|
126
|
-
keypressEnter: [{ type: Output }]
|
|
127
|
-
};
|
|
128
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY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