@wizishop/angular-components 0.0.164 → 14.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/angular-components.scss +4248 -4845
- 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 +15 -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 +17 -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 +4219 -0
- package/fesm2015/wizishop-angular-components.mjs.map +1 -0
- package/fesm2020/wizishop-angular-components.mjs +4209 -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 +3 -0
- package/lib/components/info/info.component.d.ts +3 -0
- package/lib/components/inputs/input/input.component.d.ts +3 -0
- 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 +3 -0
- package/lib/components/multiple-search/multiple-search.component.d.ts +3 -0
- 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 +3 -0
- 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 +3 -0
- 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 +3 -0
- 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.1.tgz +0 -0
- package/bundles/wizishop-angular-components.umd.js +0 -4656
- 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 -40
- 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 -34
- 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 -4017
- package/fesm2015/wizishop-angular-components.js.map +0 -1
- package/lib/components/block-with-checkbox/block-with-checkbox.component.d.ts +0 -14
- 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 -11
- 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.164.tgz +0 -0
- package/wizishop-angular-components.d.ts +0 -20
- package/wizishop-angular-components.metadata.json +0 -1
|
@@ -1,4656 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@wizishop/ng-wizi-bulma'), require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-perfect-scrollbar'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/overlay'), require('@angular/cdk/table'), require('@angular/animations'), require('ngx-chips'), require('@ngx-translate/core'), require('@angular/router'), require('ngx-autosize')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@wizishop/angular-components', ['exports', '@wizishop/ng-wizi-bulma', '@angular/core', '@angular/common', '@angular/forms', 'ngx-perfect-scrollbar', 'rxjs', 'rxjs/operators', '@angular/cdk/overlay', '@angular/cdk/table', '@angular/animations', 'ngx-chips', '@ngx-translate/core', '@angular/router', 'ngx-autosize'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wizishop = global.wizishop || {}, global.wizishop['angular-components'] = {}), global['ng-wizi-bulma'], global.ng.core, global.ng.common, global.ng.forms, global['ngx-perfect-scrollbar'], global.rxjs, global.rxjs.operators, global.ng.cdk.overlay, global.ng.cdk.table, global.ng.animations, global['ngx-chips'], global['@ngx-translate/core'], global.ng.router, global.ngxAutosize));
|
|
5
|
-
}(this, (function (exports, i1$1, i0, common, forms, ngxPerfectScrollbar, rxjs, operators, i1, table, animations, ngxChips, core, router, ngxAutosize) { 'use strict';
|
|
6
|
-
|
|
7
|
-
/*! *****************************************************************************
|
|
8
|
-
Copyright (c) Microsoft Corporation.
|
|
9
|
-
|
|
10
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
11
|
-
purpose with or without fee is hereby granted.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
14
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
15
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
16
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
17
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
18
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
20
|
-
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise */
|
|
22
|
-
var extendStatics = function (d, b) {
|
|
23
|
-
extendStatics = Object.setPrototypeOf ||
|
|
24
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
25
|
-
function (d, b) { for (var p in b)
|
|
26
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
27
|
-
d[p] = b[p]; };
|
|
28
|
-
return extendStatics(d, b);
|
|
29
|
-
};
|
|
30
|
-
function __extends(d, b) {
|
|
31
|
-
if (typeof b !== "function" && b !== null)
|
|
32
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
33
|
-
extendStatics(d, b);
|
|
34
|
-
function __() { this.constructor = d; }
|
|
35
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
36
|
-
}
|
|
37
|
-
var __assign = function () {
|
|
38
|
-
__assign = Object.assign || function __assign(t) {
|
|
39
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
40
|
-
s = arguments[i];
|
|
41
|
-
for (var p in s)
|
|
42
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
43
|
-
t[p] = s[p];
|
|
44
|
-
}
|
|
45
|
-
return t;
|
|
46
|
-
};
|
|
47
|
-
return __assign.apply(this, arguments);
|
|
48
|
-
};
|
|
49
|
-
function __rest(s, e) {
|
|
50
|
-
var t = {};
|
|
51
|
-
for (var p in s)
|
|
52
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
53
|
-
t[p] = s[p];
|
|
54
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
55
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
56
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
57
|
-
t[p[i]] = s[p[i]];
|
|
58
|
-
}
|
|
59
|
-
return t;
|
|
60
|
-
}
|
|
61
|
-
function __decorate(decorators, target, key, desc) {
|
|
62
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
63
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
64
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
65
|
-
else
|
|
66
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
67
|
-
if (d = decorators[i])
|
|
68
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
69
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
70
|
-
}
|
|
71
|
-
function __param(paramIndex, decorator) {
|
|
72
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
73
|
-
}
|
|
74
|
-
function __metadata(metadataKey, metadataValue) {
|
|
75
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
76
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
77
|
-
}
|
|
78
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
79
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
80
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
81
|
-
function fulfilled(value) { try {
|
|
82
|
-
step(generator.next(value));
|
|
83
|
-
}
|
|
84
|
-
catch (e) {
|
|
85
|
-
reject(e);
|
|
86
|
-
} }
|
|
87
|
-
function rejected(value) { try {
|
|
88
|
-
step(generator["throw"](value));
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
reject(e);
|
|
92
|
-
} }
|
|
93
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
94
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function __generator(thisArg, body) {
|
|
98
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
99
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
100
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
101
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
102
|
-
function step(op) {
|
|
103
|
-
if (f)
|
|
104
|
-
throw new TypeError("Generator is already executing.");
|
|
105
|
-
while (_)
|
|
106
|
-
try {
|
|
107
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
108
|
-
return t;
|
|
109
|
-
if (y = 0, t)
|
|
110
|
-
op = [op[0] & 2, t.value];
|
|
111
|
-
switch (op[0]) {
|
|
112
|
-
case 0:
|
|
113
|
-
case 1:
|
|
114
|
-
t = op;
|
|
115
|
-
break;
|
|
116
|
-
case 4:
|
|
117
|
-
_.label++;
|
|
118
|
-
return { value: op[1], done: false };
|
|
119
|
-
case 5:
|
|
120
|
-
_.label++;
|
|
121
|
-
y = op[1];
|
|
122
|
-
op = [0];
|
|
123
|
-
continue;
|
|
124
|
-
case 7:
|
|
125
|
-
op = _.ops.pop();
|
|
126
|
-
_.trys.pop();
|
|
127
|
-
continue;
|
|
128
|
-
default:
|
|
129
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
130
|
-
_ = 0;
|
|
131
|
-
continue;
|
|
132
|
-
}
|
|
133
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
134
|
-
_.label = op[1];
|
|
135
|
-
break;
|
|
136
|
-
}
|
|
137
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
138
|
-
_.label = t[1];
|
|
139
|
-
t = op;
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
if (t && _.label < t[2]) {
|
|
143
|
-
_.label = t[2];
|
|
144
|
-
_.ops.push(op);
|
|
145
|
-
break;
|
|
146
|
-
}
|
|
147
|
-
if (t[2])
|
|
148
|
-
_.ops.pop();
|
|
149
|
-
_.trys.pop();
|
|
150
|
-
continue;
|
|
151
|
-
}
|
|
152
|
-
op = body.call(thisArg, _);
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
op = [6, e];
|
|
156
|
-
y = 0;
|
|
157
|
-
}
|
|
158
|
-
finally {
|
|
159
|
-
f = t = 0;
|
|
160
|
-
}
|
|
161
|
-
if (op[0] & 5)
|
|
162
|
-
throw op[1];
|
|
163
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
167
|
-
if (k2 === undefined)
|
|
168
|
-
k2 = k;
|
|
169
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
170
|
-
}) : (function (o, m, k, k2) {
|
|
171
|
-
if (k2 === undefined)
|
|
172
|
-
k2 = k;
|
|
173
|
-
o[k2] = m[k];
|
|
174
|
-
});
|
|
175
|
-
function __exportStar(m, o) {
|
|
176
|
-
for (var p in m)
|
|
177
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
178
|
-
__createBinding(o, m, p);
|
|
179
|
-
}
|
|
180
|
-
function __values(o) {
|
|
181
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
182
|
-
if (m)
|
|
183
|
-
return m.call(o);
|
|
184
|
-
if (o && typeof o.length === "number")
|
|
185
|
-
return {
|
|
186
|
-
next: function () {
|
|
187
|
-
if (o && i >= o.length)
|
|
188
|
-
o = void 0;
|
|
189
|
-
return { value: o && o[i++], done: !o };
|
|
190
|
-
}
|
|
191
|
-
};
|
|
192
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
193
|
-
}
|
|
194
|
-
function __read(o, n) {
|
|
195
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
196
|
-
if (!m)
|
|
197
|
-
return o;
|
|
198
|
-
var i = m.call(o), r, ar = [], e;
|
|
199
|
-
try {
|
|
200
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
201
|
-
ar.push(r.value);
|
|
202
|
-
}
|
|
203
|
-
catch (error) {
|
|
204
|
-
e = { error: error };
|
|
205
|
-
}
|
|
206
|
-
finally {
|
|
207
|
-
try {
|
|
208
|
-
if (r && !r.done && (m = i["return"]))
|
|
209
|
-
m.call(i);
|
|
210
|
-
}
|
|
211
|
-
finally {
|
|
212
|
-
if (e)
|
|
213
|
-
throw e.error;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
return ar;
|
|
217
|
-
}
|
|
218
|
-
/** @deprecated */
|
|
219
|
-
function __spread() {
|
|
220
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
221
|
-
ar = ar.concat(__read(arguments[i]));
|
|
222
|
-
return ar;
|
|
223
|
-
}
|
|
224
|
-
/** @deprecated */
|
|
225
|
-
function __spreadArrays() {
|
|
226
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
227
|
-
s += arguments[i].length;
|
|
228
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
229
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
230
|
-
r[k] = a[j];
|
|
231
|
-
return r;
|
|
232
|
-
}
|
|
233
|
-
function __spreadArray(to, from) {
|
|
234
|
-
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
235
|
-
to[j] = from[i];
|
|
236
|
-
return to;
|
|
237
|
-
}
|
|
238
|
-
function __await(v) {
|
|
239
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
240
|
-
}
|
|
241
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
242
|
-
if (!Symbol.asyncIterator)
|
|
243
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
244
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
245
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
246
|
-
function verb(n) { if (g[n])
|
|
247
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
248
|
-
function resume(n, v) { try {
|
|
249
|
-
step(g[n](v));
|
|
250
|
-
}
|
|
251
|
-
catch (e) {
|
|
252
|
-
settle(q[0][3], e);
|
|
253
|
-
} }
|
|
254
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
255
|
-
function fulfill(value) { resume("next", value); }
|
|
256
|
-
function reject(value) { resume("throw", value); }
|
|
257
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
258
|
-
resume(q[0][0], q[0][1]); }
|
|
259
|
-
}
|
|
260
|
-
function __asyncDelegator(o) {
|
|
261
|
-
var i, p;
|
|
262
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
263
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
264
|
-
}
|
|
265
|
-
function __asyncValues(o) {
|
|
266
|
-
if (!Symbol.asyncIterator)
|
|
267
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
268
|
-
var m = o[Symbol.asyncIterator], i;
|
|
269
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
270
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
271
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
272
|
-
}
|
|
273
|
-
function __makeTemplateObject(cooked, raw) {
|
|
274
|
-
if (Object.defineProperty) {
|
|
275
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
cooked.raw = raw;
|
|
279
|
-
}
|
|
280
|
-
return cooked;
|
|
281
|
-
}
|
|
282
|
-
;
|
|
283
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
284
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
285
|
-
}) : function (o, v) {
|
|
286
|
-
o["default"] = v;
|
|
287
|
-
};
|
|
288
|
-
function __importStar(mod) {
|
|
289
|
-
if (mod && mod.__esModule)
|
|
290
|
-
return mod;
|
|
291
|
-
var result = {};
|
|
292
|
-
if (mod != null)
|
|
293
|
-
for (var k in mod)
|
|
294
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
295
|
-
__createBinding(result, mod, k);
|
|
296
|
-
__setModuleDefault(result, mod);
|
|
297
|
-
return result;
|
|
298
|
-
}
|
|
299
|
-
function __importDefault(mod) {
|
|
300
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
301
|
-
}
|
|
302
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
303
|
-
if (kind === "a" && !f)
|
|
304
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
305
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
306
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
307
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
308
|
-
}
|
|
309
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
310
|
-
if (kind === "m")
|
|
311
|
-
throw new TypeError("Private method is not writable");
|
|
312
|
-
if (kind === "a" && !f)
|
|
313
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
314
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
315
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
316
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
var LoaderComponent = /** @class */ (function () {
|
|
320
|
-
function LoaderComponent() {
|
|
321
|
-
this.text = '';
|
|
322
|
-
this.small = false;
|
|
323
|
-
}
|
|
324
|
-
return LoaderComponent;
|
|
325
|
-
}());
|
|
326
|
-
LoaderComponent.decorators = [
|
|
327
|
-
{ type: i0.Component, args: [{
|
|
328
|
-
selector: 'wac-loader',
|
|
329
|
-
template: "<div class=\"wac-loader\" [ngClass]=\"{ 'is-small': small }\">\n <div class=\"loader loader1\">\n <div>\n <div>\n <div>\n <div>\n <div>\n <div></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <p class=\"is-textcentered\" *ngIf=\"text != ''\" [innerHTML]=\"text\"></p>\n</div>\n",
|
|
330
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
331
|
-
},] }
|
|
332
|
-
];
|
|
333
|
-
LoaderComponent.propDecorators = {
|
|
334
|
-
text: [{ type: i0.Input }],
|
|
335
|
-
small: [{ type: i0.Input }]
|
|
336
|
-
};
|
|
337
|
-
|
|
338
|
-
var InputSearchComponent = /** @class */ (function () {
|
|
339
|
-
function InputSearchComponent() {
|
|
340
|
-
this.placeholder = '';
|
|
341
|
-
this.smallPadding = false; // todo Try to be more flexible like changing type : export type PaddingConfig = "default" | "small" | "big" | "no-padding";
|
|
342
|
-
this.innerValue = '';
|
|
343
|
-
this.changeDebounced = new i0.EventEmitter(); // debounced
|
|
344
|
-
this.onTouchedCallback = function () { };
|
|
345
|
-
this.onChangeCallback = function () { };
|
|
346
|
-
}
|
|
347
|
-
Object.defineProperty(InputSearchComponent.prototype, "value", {
|
|
348
|
-
get: function () {
|
|
349
|
-
return this.innerValue;
|
|
350
|
-
},
|
|
351
|
-
set: function (v) {
|
|
352
|
-
if (v !== this.innerValue) {
|
|
353
|
-
this.innerValue = v;
|
|
354
|
-
this.onChangeCallback(v);
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
|
-
enumerable: false,
|
|
358
|
-
configurable: true
|
|
359
|
-
});
|
|
360
|
-
InputSearchComponent.prototype.writeValue = function (value) {
|
|
361
|
-
if (value !== this.innerValue) {
|
|
362
|
-
this.innerValue = value;
|
|
363
|
-
}
|
|
364
|
-
};
|
|
365
|
-
InputSearchComponent.prototype.registerOnChange = function (fn) {
|
|
366
|
-
this.onChangeCallback = fn;
|
|
367
|
-
};
|
|
368
|
-
InputSearchComponent.prototype.registerOnTouched = function (fn) {
|
|
369
|
-
this.onTouchedCallback = fn;
|
|
370
|
-
};
|
|
371
|
-
InputSearchComponent.prototype.handleDebouncedKeyUp = function () {
|
|
372
|
-
this.changeDebounced.emit(this.value);
|
|
373
|
-
};
|
|
374
|
-
return InputSearchComponent;
|
|
375
|
-
}());
|
|
376
|
-
InputSearchComponent.decorators = [
|
|
377
|
-
{ type: i0.Component, args: [{
|
|
378
|
-
selector: 'wac-input-search',
|
|
379
|
-
template: "<div class=\"wac-field-input-search\" [ngClass]=\"smallPadding ? 'small-padding' : ''\">\n <p class=\"control has-icons-left has-icons-right\">\n <input\n [placeholder]=\"placeholder\"\n value=\"\"\n class=\"input\"\n type=\"text\"\n [attr.id]=\"id\"\n [(ngModel)]=\"value\"\n debounceKeyUp\n [debounceTime]=\"1000\"\n (onEventChange)=\"handleDebouncedKeyUp()\"\n />\n <i class=\"icon fal fa-search\"></i>\n </p>\n</div>\n",
|
|
380
|
-
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: InputSearchComponent, multi: true }]
|
|
381
|
-
},] }
|
|
382
|
-
];
|
|
383
|
-
InputSearchComponent.propDecorators = {
|
|
384
|
-
placeholder: [{ type: i0.Input }],
|
|
385
|
-
smallPadding: [{ type: i0.Input }],
|
|
386
|
-
id: [{ type: i0.Input }],
|
|
387
|
-
changeDebounced: [{ type: i0.Output }]
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
var AbstractDebounceDirective = /** @class */ (function () {
|
|
391
|
-
function AbstractDebounceDirective() {
|
|
392
|
-
this.debounceTime = 500;
|
|
393
|
-
this.onEventChange = new i0.EventEmitter();
|
|
394
|
-
this.emitEvent$ = new rxjs.Subject();
|
|
395
|
-
this.subscription$ = new rxjs.Subject();
|
|
396
|
-
}
|
|
397
|
-
AbstractDebounceDirective.prototype.ngOnInit = function () {
|
|
398
|
-
var _this = this;
|
|
399
|
-
this.emitEvent$
|
|
400
|
-
.pipe(operators.takeUntil(this.subscription$), operators.debounceTime(this.debounceTime), operators.distinctUntilChanged(), operators.tap(function (value) { return _this.emitChange(value); }))
|
|
401
|
-
.subscribe();
|
|
402
|
-
};
|
|
403
|
-
AbstractDebounceDirective.prototype.emitChange = function (value) {
|
|
404
|
-
this.onEventChange.emit(value);
|
|
405
|
-
};
|
|
406
|
-
AbstractDebounceDirective.prototype.ngOnDestroy = function () {
|
|
407
|
-
this.subscription$.next();
|
|
408
|
-
this.subscription$.complete();
|
|
409
|
-
};
|
|
410
|
-
return AbstractDebounceDirective;
|
|
411
|
-
}());
|
|
412
|
-
AbstractDebounceDirective.decorators = [
|
|
413
|
-
{ type: i0.Directive, args: [{
|
|
414
|
-
selector: 'AbstractDebounceDirective'
|
|
415
|
-
},] }
|
|
416
|
-
];
|
|
417
|
-
AbstractDebounceDirective.ctorParameters = function () { return []; };
|
|
418
|
-
AbstractDebounceDirective.propDecorators = {
|
|
419
|
-
debounceTime: [{ type: i0.Input }],
|
|
420
|
-
onEventChange: [{ type: i0.Output }]
|
|
421
|
-
};
|
|
422
|
-
|
|
423
|
-
var DebounceKeyupDirective = /** @class */ (function (_super) {
|
|
424
|
-
__extends(DebounceKeyupDirective, _super);
|
|
425
|
-
function DebounceKeyupDirective() {
|
|
426
|
-
return _super.call(this) || this;
|
|
427
|
-
}
|
|
428
|
-
DebounceKeyupDirective.prototype.onKeyUp = function (event) {
|
|
429
|
-
event.preventDefault();
|
|
430
|
-
this.emitEvent$.next(event);
|
|
431
|
-
};
|
|
432
|
-
return DebounceKeyupDirective;
|
|
433
|
-
}(AbstractDebounceDirective));
|
|
434
|
-
DebounceKeyupDirective.decorators = [
|
|
435
|
-
{ type: i0.Directive, args: [{
|
|
436
|
-
selector: 'input[debounceKeyUp]'
|
|
437
|
-
},] }
|
|
438
|
-
];
|
|
439
|
-
DebounceKeyupDirective.ctorParameters = function () { return []; };
|
|
440
|
-
DebounceKeyupDirective.propDecorators = {
|
|
441
|
-
onKeyUp: [{ type: i0.HostListener, args: ['keyup', ['$event'],] }]
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
var DomService = /** @class */ (function () {
|
|
445
|
-
function DomService(componentFactoryResolver, appRef, injector, overlayContainer) {
|
|
446
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
447
|
-
this.appRef = appRef;
|
|
448
|
-
this.injector = injector;
|
|
449
|
-
this.overlayContainer = overlayContainer;
|
|
450
|
-
this.documentEventSource = new rxjs.Subject();
|
|
451
|
-
this.documentEventDone = this.documentEventSource.asObservable();
|
|
452
|
-
this.eventInitialisation = true;
|
|
453
|
-
this.documentScrollSource = new rxjs.Subject();
|
|
454
|
-
this.documentScrollDone = this.documentScrollSource.asObservable();
|
|
455
|
-
}
|
|
456
|
-
DomService.prototype.documentEvent = function () {
|
|
457
|
-
this.setDocumentEventListener();
|
|
458
|
-
return this.documentEventDone;
|
|
459
|
-
};
|
|
460
|
-
DomService.prototype.setDocumentEventListener = function () {
|
|
461
|
-
var _this = this;
|
|
462
|
-
if (!this.eventInitialisation) {
|
|
463
|
-
return;
|
|
464
|
-
}
|
|
465
|
-
this.eventInitialisation = false;
|
|
466
|
-
document.body.addEventListener('click', function (event) {
|
|
467
|
-
_this.documentEventSource.next(event.target);
|
|
468
|
-
});
|
|
469
|
-
};
|
|
470
|
-
DomService.prototype.documentScroll = function () {
|
|
471
|
-
return this.documentScrollDone;
|
|
472
|
-
};
|
|
473
|
-
DomService.prototype.setScrollEventListener = function () {
|
|
474
|
-
var _this = this;
|
|
475
|
-
window.onscroll = function () {
|
|
476
|
-
_this.documentScrollSource.next(window);
|
|
477
|
-
};
|
|
478
|
-
};
|
|
479
|
-
DomService.prototype.attachComponentPortal = function (component, injector) {
|
|
480
|
-
var componentRef = this.componentFactoryResolver
|
|
481
|
-
.resolveComponentFactory(component)
|
|
482
|
-
.create(injector ? injector : this.injector);
|
|
483
|
-
this.appRef.attachView(componentRef.hostView);
|
|
484
|
-
this.overlayContainer.getContainerElement().appendChild(this._getComponentRootNode(componentRef));
|
|
485
|
-
return componentRef;
|
|
486
|
-
};
|
|
487
|
-
/** Gets the root HTMLElement for an instantiated component. */
|
|
488
|
-
DomService.prototype._getComponentRootNode = function (componentRef) {
|
|
489
|
-
return componentRef.hostView.rootNodes[0];
|
|
490
|
-
};
|
|
491
|
-
return DomService;
|
|
492
|
-
}());
|
|
493
|
-
DomService.ɵprov = i0.ɵɵdefineInjectable({ factory: function DomService_Factory() { return new DomService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1.OverlayContainer)); }, token: DomService, providedIn: "root" });
|
|
494
|
-
DomService.decorators = [
|
|
495
|
-
{ type: i0.Injectable, args: [{
|
|
496
|
-
providedIn: 'root'
|
|
497
|
-
},] }
|
|
498
|
-
];
|
|
499
|
-
DomService.ctorParameters = function () { return [
|
|
500
|
-
{ type: i0.ComponentFactoryResolver },
|
|
501
|
-
{ type: i0.ApplicationRef },
|
|
502
|
-
{ type: i0.Injector },
|
|
503
|
-
{ type: i1.OverlayContainer }
|
|
504
|
-
]; };
|
|
505
|
-
|
|
506
|
-
var AutoHideDirective = /** @class */ (function () {
|
|
507
|
-
function AutoHideDirective(_elementRef, domService) {
|
|
508
|
-
this._elementRef = _elementRef;
|
|
509
|
-
this.domService = domService;
|
|
510
|
-
this.forceOn = null;
|
|
511
|
-
this.clickOutside = new i0.EventEmitter();
|
|
512
|
-
}
|
|
513
|
-
AutoHideDirective.prototype.ngAfterViewInit = function () {
|
|
514
|
-
var _this = this;
|
|
515
|
-
this.subscription = this.domService.documentEvent().subscribe(function (targetElement) {
|
|
516
|
-
var clickedInside = _this._elementRef.nativeElement.contains(targetElement);
|
|
517
|
-
var classNameFromElement = targetElement.getAttribute('class');
|
|
518
|
-
if (!clickedInside && (classNameFromElement === null || !classNameFromElement.includes(_this.triggerElement))) {
|
|
519
|
-
_this.clickOutside.emit(null);
|
|
520
|
-
}
|
|
521
|
-
if (_this.forceOn != null && classNameFromElement !== null) {
|
|
522
|
-
var needToClose_1 = true;
|
|
523
|
-
_this.forceOn.forEach(function (v) {
|
|
524
|
-
if (!classNameFromElement.includes(v)) {
|
|
525
|
-
needToClose_1 = false;
|
|
526
|
-
}
|
|
527
|
-
});
|
|
528
|
-
if (needToClose_1) {
|
|
529
|
-
_this.clickOutside.emit(null);
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
};
|
|
534
|
-
AutoHideDirective.prototype.ngOnDestroy = function () {
|
|
535
|
-
this.subscription.unsubscribe();
|
|
536
|
-
};
|
|
537
|
-
return AutoHideDirective;
|
|
538
|
-
}());
|
|
539
|
-
AutoHideDirective.decorators = [
|
|
540
|
-
{ type: i0.Directive, args: [{
|
|
541
|
-
selector: '[wzAutoHide]'
|
|
542
|
-
},] }
|
|
543
|
-
];
|
|
544
|
-
AutoHideDirective.ctorParameters = function () { return [
|
|
545
|
-
{ type: i0.ElementRef },
|
|
546
|
-
{ type: DomService }
|
|
547
|
-
]; };
|
|
548
|
-
AutoHideDirective.propDecorators = {
|
|
549
|
-
triggerElement: [{ type: i0.Input }],
|
|
550
|
-
forceOn: [{ type: i0.Input }],
|
|
551
|
-
clickOutside: [{ type: i0.Output, args: ['clickOutside',] }]
|
|
552
|
-
};
|
|
553
|
-
|
|
554
|
-
var ZindexToggleDirective = /** @class */ (function () {
|
|
555
|
-
function ZindexToggleDirective(currentElement, renderer) {
|
|
556
|
-
this.currentElement = currentElement;
|
|
557
|
-
this.renderer = renderer;
|
|
558
|
-
this.isActived = false;
|
|
559
|
-
}
|
|
560
|
-
Object.defineProperty(ZindexToggleDirective.prototype, "isActive", {
|
|
561
|
-
get: function () {
|
|
562
|
-
return this.isActived;
|
|
563
|
-
},
|
|
564
|
-
set: function (value) {
|
|
565
|
-
this.isActived = value;
|
|
566
|
-
this.switchToggle();
|
|
567
|
-
},
|
|
568
|
-
enumerable: false,
|
|
569
|
-
configurable: true
|
|
570
|
-
});
|
|
571
|
-
ZindexToggleDirective.prototype.ngOnInit = function () {
|
|
572
|
-
};
|
|
573
|
-
ZindexToggleDirective.prototype.switchToggle = function () {
|
|
574
|
-
if (this.isActived) {
|
|
575
|
-
this.renderer.addClass(this.currentElement.nativeElement.parentElement.parentNode, 'zindexToggle');
|
|
576
|
-
this.renderer.addClass(this.currentElement.nativeElement.parentElement.parentNode.parentNode, 'zindexToggle');
|
|
577
|
-
}
|
|
578
|
-
else {
|
|
579
|
-
this.renderer.removeClass(this.currentElement.nativeElement.parentElement.parentNode, 'zindexToggle');
|
|
580
|
-
this.renderer.removeClass(this.currentElement.nativeElement.parentElement.parentNode.parentNode, 'zindexToggle');
|
|
581
|
-
}
|
|
582
|
-
};
|
|
583
|
-
ZindexToggleDirective.prototype.ngOnDestroy = function () {
|
|
584
|
-
};
|
|
585
|
-
return ZindexToggleDirective;
|
|
586
|
-
}());
|
|
587
|
-
ZindexToggleDirective.decorators = [
|
|
588
|
-
{ type: i0.Directive, args: [{
|
|
589
|
-
selector: '[zIndexToggle]'
|
|
590
|
-
},] }
|
|
591
|
-
];
|
|
592
|
-
ZindexToggleDirective.ctorParameters = function () { return [
|
|
593
|
-
{ type: i0.ElementRef },
|
|
594
|
-
{ type: i0.Renderer2 }
|
|
595
|
-
]; };
|
|
596
|
-
ZindexToggleDirective.propDecorators = {
|
|
597
|
-
onEventChange: [{ type: i0.Output }],
|
|
598
|
-
isActive: [{ type: i0.Input, args: ['zIndexToggle',] }]
|
|
599
|
-
};
|
|
600
|
-
|
|
601
|
-
var VarDirective = /** @class */ (function () {
|
|
602
|
-
function VarDirective(templateRef, vcRef) {
|
|
603
|
-
this.templateRef = templateRef;
|
|
604
|
-
this.vcRef = vcRef;
|
|
605
|
-
this.context = {
|
|
606
|
-
$implicit: null,
|
|
607
|
-
ngVar: null,
|
|
608
|
-
};
|
|
609
|
-
this.hasView = false;
|
|
610
|
-
}
|
|
611
|
-
Object.defineProperty(VarDirective.prototype, "ngVar", {
|
|
612
|
-
// https://stackoverflow.com/questions/38582293/how-to-declare-a-variable-in-a-template-in-angular
|
|
613
|
-
set: function (context) {
|
|
614
|
-
this.context.$implicit = this.context.ngVar = context;
|
|
615
|
-
if (!this.hasView) {
|
|
616
|
-
this.vcRef.createEmbeddedView(this.templateRef, this.context);
|
|
617
|
-
this.hasView = true;
|
|
618
|
-
}
|
|
619
|
-
},
|
|
620
|
-
enumerable: false,
|
|
621
|
-
configurable: true
|
|
622
|
-
});
|
|
623
|
-
return VarDirective;
|
|
624
|
-
}());
|
|
625
|
-
VarDirective.decorators = [
|
|
626
|
-
{ type: i0.Directive, args: [{
|
|
627
|
-
selector: '[ngVar]',
|
|
628
|
-
},] }
|
|
629
|
-
];
|
|
630
|
-
VarDirective.ctorParameters = function () { return [
|
|
631
|
-
{ type: i0.TemplateRef },
|
|
632
|
-
{ type: i0.ViewContainerRef }
|
|
633
|
-
]; };
|
|
634
|
-
VarDirective.propDecorators = {
|
|
635
|
-
ngVar: [{ type: i0.Input }]
|
|
636
|
-
};
|
|
637
|
-
|
|
638
|
-
var KeypressEnterDirective = /** @class */ (function () {
|
|
639
|
-
function KeypressEnterDirective() {
|
|
640
|
-
this.KEYPRESS_ENTER = "Enter";
|
|
641
|
-
this.keypressEnter = new i0.EventEmitter();
|
|
642
|
-
}
|
|
643
|
-
KeypressEnterDirective.prototype.onKeypress = function (event) {
|
|
644
|
-
if (event.key === this.KEYPRESS_ENTER) {
|
|
645
|
-
this.keypressEnter.next(true);
|
|
646
|
-
}
|
|
647
|
-
};
|
|
648
|
-
return KeypressEnterDirective;
|
|
649
|
-
}());
|
|
650
|
-
KeypressEnterDirective.decorators = [
|
|
651
|
-
{ type: i0.Directive, args: [{ selector: '[keypressEnter]' },] }
|
|
652
|
-
];
|
|
653
|
-
KeypressEnterDirective.ctorParameters = function () { return []; };
|
|
654
|
-
KeypressEnterDirective.propDecorators = {
|
|
655
|
-
onKeypress: [{ type: i0.HostListener, args: ['keypress', ['$event'],] }],
|
|
656
|
-
keypressEnter: [{ type: i0.Output }]
|
|
657
|
-
};
|
|
658
|
-
|
|
659
|
-
var directives = [DebounceKeyupDirective, AbstractDebounceDirective, AutoHideDirective, ZindexToggleDirective, VarDirective, KeypressEnterDirective];
|
|
660
|
-
var SharedDirectives = /** @class */ (function () {
|
|
661
|
-
function SharedDirectives() {
|
|
662
|
-
}
|
|
663
|
-
return SharedDirectives;
|
|
664
|
-
}());
|
|
665
|
-
SharedDirectives.decorators = [
|
|
666
|
-
{ type: i0.NgModule, args: [{
|
|
667
|
-
imports: [common.CommonModule, forms.FormsModule],
|
|
668
|
-
declarations: directives,
|
|
669
|
-
exports: directives
|
|
670
|
-
},] }
|
|
671
|
-
];
|
|
672
|
-
|
|
673
|
-
var inOutY = animations.trigger('inOutYAnimation', [
|
|
674
|
-
animations.transition(':enter', [
|
|
675
|
-
animations.style({ transform: 'scaleY(0)', height: 0, opacity: 0 }),
|
|
676
|
-
animations.animate('.3s ease-out', animations.style({ transform: 'scaleY(1)', height: 'auto', opacity: 1 }))
|
|
677
|
-
]),
|
|
678
|
-
animations.transition(':leave', [
|
|
679
|
-
animations.style({ transform: 'scaleY(1)', height: 'auto', opacity: 1 }),
|
|
680
|
-
animations.animate('.3s ease-in', animations.style({ transform: 'scaleY(0)', height: 0, opacity: 0 }))
|
|
681
|
-
])
|
|
682
|
-
]);
|
|
683
|
-
|
|
684
|
-
var CheckboxComponent = /** @class */ (function () {
|
|
685
|
-
function CheckboxComponent() {
|
|
686
|
-
this.label = '';
|
|
687
|
-
this.alone = false;
|
|
688
|
-
this.checked = false;
|
|
689
|
-
this.hasInput = false;
|
|
690
|
-
this.inputPlaceholder = '';
|
|
691
|
-
this.id = '';
|
|
692
|
-
this.whiteSpace = true;
|
|
693
|
-
this.disabled = false;
|
|
694
|
-
}
|
|
695
|
-
CheckboxComponent.prototype.registerOnChange = function (fn) {
|
|
696
|
-
this._onChange = fn;
|
|
697
|
-
};
|
|
698
|
-
CheckboxComponent.prototype.registerOnTouched = function (fn) {
|
|
699
|
-
this._onTouched = fn;
|
|
700
|
-
};
|
|
701
|
-
CheckboxComponent.prototype.setDisabledState = function (isDisabled) {
|
|
702
|
-
this.disabled = isDisabled;
|
|
703
|
-
};
|
|
704
|
-
CheckboxComponent.prototype.writeValue = function (obj) {
|
|
705
|
-
this.value = obj;
|
|
706
|
-
};
|
|
707
|
-
CheckboxComponent.prototype.onChange = function (value) {
|
|
708
|
-
if (this._onChange) {
|
|
709
|
-
this._onChange(value);
|
|
710
|
-
}
|
|
711
|
-
};
|
|
712
|
-
CheckboxComponent.prototype.onTextInputChange = function (value) {
|
|
713
|
-
if (this._onTextInputChange) {
|
|
714
|
-
this._onTextInputChange(value);
|
|
715
|
-
}
|
|
716
|
-
};
|
|
717
|
-
CheckboxComponent.prototype.inputClick = function ($event) {
|
|
718
|
-
$event.stopPropagation();
|
|
719
|
-
};
|
|
720
|
-
return CheckboxComponent;
|
|
721
|
-
}());
|
|
722
|
-
CheckboxComponent.decorators = [
|
|
723
|
-
{ type: i0.Component, args: [{
|
|
724
|
-
selector: 'wac-checkbox',
|
|
725
|
-
template: "<div class=\"wac-field-checkbox\" [ngClass]=\"{ 'wac-field-checkbox--nowrap': type === 'column', 'disable-wt' : !whiteSpace, alone: alone }\">\n <div class=\"wac-field-checkbox__row\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"is-checkradio\"\n [name]=\"name\"\n [value]=\"value\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n [checked]=\"checked\"\n (ngModelChange)=\"onChange($event)\"\n />\n <label [attr.for]=\"id\"><span [innerHTML]=\"label\"></span></label>\n </div>\n <input\n *ngIf=\"hasInput && checked\"\n [@inOutYAnimation]\n type=\"text\"\n [placeholder]=\"inputPlaceholder\"\n (click)=\"inputClick($event)\"\n />\n</div>\n",
|
|
726
|
-
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }],
|
|
727
|
-
animations: [inOutY]
|
|
728
|
-
},] }
|
|
729
|
-
];
|
|
730
|
-
CheckboxComponent.ctorParameters = function () { return []; };
|
|
731
|
-
CheckboxComponent.propDecorators = {
|
|
732
|
-
label: [{ type: i0.Input }],
|
|
733
|
-
value: [{ type: i0.Input }],
|
|
734
|
-
type: [{ type: i0.Input }],
|
|
735
|
-
alone: [{ type: i0.Input }],
|
|
736
|
-
checked: [{ type: i0.Input }],
|
|
737
|
-
hasInput: [{ type: i0.Input }],
|
|
738
|
-
inputPlaceholder: [{ type: i0.Input }],
|
|
739
|
-
id: [{ type: i0.Input }],
|
|
740
|
-
name: [{ type: i0.Input }],
|
|
741
|
-
whiteSpace: [{ type: i0.Input }]
|
|
742
|
-
};
|
|
743
|
-
|
|
744
|
-
var FiltersTableService = /** @class */ (function () {
|
|
745
|
-
function FiltersTableService(filterRoutingBuilder) {
|
|
746
|
-
this.filterRoutingBuilder = filterRoutingBuilder;
|
|
747
|
-
this.filterGroups = new Map();
|
|
748
|
-
this.sortSubject = new rxjs.Subject();
|
|
749
|
-
}
|
|
750
|
-
FiltersTableService.prototype.getTableFilterGroup = function (dataTableName) {
|
|
751
|
-
if (this.filterGroups.has(dataTableName)) {
|
|
752
|
-
return this.filterGroups.get(dataTableName);
|
|
753
|
-
}
|
|
754
|
-
var dataTableFilters = {
|
|
755
|
-
sort: undefined,
|
|
756
|
-
order: undefined,
|
|
757
|
-
searchValue: undefined,
|
|
758
|
-
totalItems: 0,
|
|
759
|
-
itemsPerPage: 0,
|
|
760
|
-
currentPage: 0
|
|
761
|
-
};
|
|
762
|
-
var filterGroup = this.filterRoutingBuilder.group(dataTableFilters, dataTableName);
|
|
763
|
-
filterGroup.tableFiltersValuesChange$ = new rxjs.ReplaySubject(1);
|
|
764
|
-
filterGroup.tableFiltersValuesDebouncedChange$ = filterGroup.tableFiltersValuesChange$.pipe(operators.debounceTime(300));
|
|
765
|
-
this.filterGroups.set(dataTableName, filterGroup);
|
|
766
|
-
return filterGroup;
|
|
767
|
-
};
|
|
768
|
-
/**
|
|
769
|
-
* Use to reset the others sorts of the table
|
|
770
|
-
* @param dataTableName
|
|
771
|
-
* @param sortName
|
|
772
|
-
* @param order
|
|
773
|
-
*/
|
|
774
|
-
FiltersTableService.prototype.emitSortChange = function (dataTableName, sortName, order) {
|
|
775
|
-
this.sortSubject.next({ dataTableName: dataTableName, sortName: sortName, order: order });
|
|
776
|
-
};
|
|
777
|
-
FiltersTableService.prototype.getSortChangeListner = function () {
|
|
778
|
-
return this.sortSubject.asObservable();
|
|
779
|
-
};
|
|
780
|
-
FiltersTableService.prototype.setPaginationFilters = function (dataTableName, totalItems, itemsPerPage, currentPage) {
|
|
781
|
-
var filterGroup = this.getTableFilterGroup(dataTableName);
|
|
782
|
-
filterGroup.setValues({
|
|
783
|
-
itemsPerPage: itemsPerPage,
|
|
784
|
-
currentPage: currentPage
|
|
785
|
-
});
|
|
786
|
-
};
|
|
787
|
-
/*
|
|
788
|
-
Add defaults filters in the URL if they not exists.
|
|
789
|
-
*/
|
|
790
|
-
FiltersTableService.prototype.setInitialPaginationFiltersIfNotExist = function (dataTableName, itemsPerPage, currentPage) {
|
|
791
|
-
var filterGroup = this.getTableFilterGroup(dataTableName);
|
|
792
|
-
filterGroup.setValues({
|
|
793
|
-
itemsPerPage: filterGroup.get('itemsPerPage') ? parseInt(filterGroup.get('itemsPerPage')) : itemsPerPage,
|
|
794
|
-
currentPage: filterGroup.get('currentPage') ? parseInt(filterGroup.get('currentPage')) : currentPage
|
|
795
|
-
});
|
|
796
|
-
};
|
|
797
|
-
return FiltersTableService;
|
|
798
|
-
}());
|
|
799
|
-
FiltersTableService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FiltersTableService_Factory() { return new FiltersTableService(i0.ɵɵinject(i1$1.NwbFilterRoutingBuilder)); }, token: FiltersTableService, providedIn: "root" });
|
|
800
|
-
FiltersTableService.decorators = [
|
|
801
|
-
{ type: i0.Injectable, args: [{
|
|
802
|
-
providedIn: 'root'
|
|
803
|
-
},] }
|
|
804
|
-
];
|
|
805
|
-
FiltersTableService.ctorParameters = function () { return [
|
|
806
|
-
{ type: i1$1.NwbFilterRoutingBuilder }
|
|
807
|
-
]; };
|
|
808
|
-
|
|
809
|
-
var HtmlContainer = /** @class */ (function () {
|
|
810
|
-
function HtmlContainer(hostElement, appRef, componentFactoryResolver, injector) {
|
|
811
|
-
this.hostElement = hostElement;
|
|
812
|
-
this.appRef = appRef;
|
|
813
|
-
this.componentFactoryResolver = componentFactoryResolver;
|
|
814
|
-
this.injector = injector;
|
|
815
|
-
this.attached = false;
|
|
816
|
-
}
|
|
817
|
-
HtmlContainer.prototype.attach = function (component) {
|
|
818
|
-
var _this = this;
|
|
819
|
-
if (this.attached) {
|
|
820
|
-
throw new Error('component has already been attached');
|
|
821
|
-
}
|
|
822
|
-
this.attached = true;
|
|
823
|
-
var childComponentFactory = this.componentFactoryResolver.resolveComponentFactory(component);
|
|
824
|
-
var componentRef = childComponentFactory.create(this.injector);
|
|
825
|
-
this.appRef.attachView(componentRef.hostView);
|
|
826
|
-
this.disposeFn = function () {
|
|
827
|
-
_this.appRef.detachView(componentRef.hostView);
|
|
828
|
-
componentRef.destroy();
|
|
829
|
-
};
|
|
830
|
-
this.hostElement.appendChild(componentRef.hostView.rootNodes[0]);
|
|
831
|
-
return componentRef;
|
|
832
|
-
};
|
|
833
|
-
HtmlContainer.prototype.dispose = function () {
|
|
834
|
-
if (this.attached) {
|
|
835
|
-
this.disposeFn();
|
|
836
|
-
}
|
|
837
|
-
};
|
|
838
|
-
return HtmlContainer;
|
|
839
|
-
}());
|
|
840
|
-
|
|
841
|
-
var TableCheckboxIdService = /** @class */ (function () {
|
|
842
|
-
function TableCheckboxIdService() {
|
|
843
|
-
this.nbCheckboxInstances = 0;
|
|
844
|
-
TableCheckboxIdService.tableInstance++;
|
|
845
|
-
this.currentTableInstance = TableCheckboxIdService.tableInstance;
|
|
846
|
-
}
|
|
847
|
-
TableCheckboxIdService.prototype.getUniqueId = function () {
|
|
848
|
-
this.nbCheckboxInstances++;
|
|
849
|
-
return "wac-table-" + this.currentTableInstance + "-" + this.nbCheckboxInstances;
|
|
850
|
-
};
|
|
851
|
-
return TableCheckboxIdService;
|
|
852
|
-
}());
|
|
853
|
-
TableCheckboxIdService.tableInstance = 0;
|
|
854
|
-
TableCheckboxIdService.decorators = [
|
|
855
|
-
{ type: i0.Injectable }
|
|
856
|
-
];
|
|
857
|
-
TableCheckboxIdService.ctorParameters = function () { return []; };
|
|
858
|
-
|
|
859
|
-
var CheckBoxRow = /** @class */ (function () {
|
|
860
|
-
function CheckBoxRow(currentRow, appRef, renderer, document, resolver, injector, tableCheckboxIdService) {
|
|
861
|
-
this.currentRow = currentRow;
|
|
862
|
-
this.appRef = appRef;
|
|
863
|
-
this.renderer = renderer;
|
|
864
|
-
this.document = document;
|
|
865
|
-
this.resolver = resolver;
|
|
866
|
-
this.injector = injector;
|
|
867
|
-
this.tableCheckboxIdService = tableCheckboxIdService;
|
|
868
|
-
this.checkBoxValueChange = new i0.EventEmitter();
|
|
869
|
-
}
|
|
870
|
-
Object.defineProperty(CheckBoxRow.prototype, "checkBoxValue", {
|
|
871
|
-
get: function () {
|
|
872
|
-
return this._value;
|
|
873
|
-
},
|
|
874
|
-
set: function (value) {
|
|
875
|
-
this._value = value;
|
|
876
|
-
if (this.checkboxComponentRef) {
|
|
877
|
-
this.setCheckBoxValue();
|
|
878
|
-
}
|
|
879
|
-
},
|
|
880
|
-
enumerable: false,
|
|
881
|
-
configurable: true
|
|
882
|
-
});
|
|
883
|
-
CheckBoxRow.prototype.ngOnInit = function () {
|
|
884
|
-
this.createCheckBoxComponent();
|
|
885
|
-
this.handleChecboxInputs();
|
|
886
|
-
this.handleCheckboxOutputs();
|
|
887
|
-
};
|
|
888
|
-
CheckBoxRow.prototype.createCheckBoxComponent = function () {
|
|
889
|
-
// Create the container
|
|
890
|
-
this.checkBoxElement = document.createElement('div');
|
|
891
|
-
this.checkBoxElement.className = 'wac-table__body__line__cell wac-table__body__line__cell--checkbox';
|
|
892
|
-
// Insert divCheckBox in the DOM as the first child of the row
|
|
893
|
-
this.renderer.insertBefore(this.currentRow.nativeElement, this.checkBoxElement, this.currentRow.nativeElement.firstChild);
|
|
894
|
-
// Insert the CheckBoxComponent inside the container (DOM and Angular DOM)
|
|
895
|
-
this.htmlContainer = new HtmlContainer(this.checkBoxElement, this.appRef, this.resolver, this.injector);
|
|
896
|
-
this.checkboxComponentRef = this.htmlContainer.attach(CheckboxComponent);
|
|
897
|
-
};
|
|
898
|
-
CheckBoxRow.prototype.handleChecboxInputs = function () {
|
|
899
|
-
this.checkboxComponentRef.instance.id = this.checkBoxId ? '' + this.checkBoxId : this.tableCheckboxIdService.getUniqueId();
|
|
900
|
-
this.checkboxComponentRef.instance.name = this.checkBoxName ? this.checkBoxName : undefined;
|
|
901
|
-
this.checkboxComponentRef.instance.alone = true;
|
|
902
|
-
this.setCheckBoxValue();
|
|
903
|
-
};
|
|
904
|
-
CheckBoxRow.prototype.setCheckBoxValue = function () {
|
|
905
|
-
this.checkboxComponentRef.instance.value = this.checkBoxValue;
|
|
906
|
-
};
|
|
907
|
-
CheckBoxRow.prototype.handleCheckboxOutputs = function () {
|
|
908
|
-
var _this = this;
|
|
909
|
-
// Detect checkbox changes
|
|
910
|
-
this.checkboxComponentRef.instance.registerOnChange(function () {
|
|
911
|
-
_this._toggleCheckbox();
|
|
912
|
-
});
|
|
913
|
-
};
|
|
914
|
-
CheckBoxRow.prototype._toggleCheckbox = function () {
|
|
915
|
-
this.checkBoxValueChange.emit(this.checkBoxValue);
|
|
916
|
-
};
|
|
917
|
-
CheckBoxRow.prototype.getElement = function () {
|
|
918
|
-
return this.checkBoxElement.querySelector('.wac-field-checkbox');
|
|
919
|
-
};
|
|
920
|
-
CheckBoxRow.prototype.isActive = function () {
|
|
921
|
-
return !!this.checkboxComponentRef.instance.value;
|
|
922
|
-
};
|
|
923
|
-
CheckBoxRow.prototype.setActive = function (isActive) {
|
|
924
|
-
this.checkboxComponentRef.instance.value = isActive; //? does not trigger output
|
|
925
|
-
};
|
|
926
|
-
CheckBoxRow.prototype.ngOnDestroy = function () {
|
|
927
|
-
this.htmlContainer.dispose();
|
|
928
|
-
};
|
|
929
|
-
return CheckBoxRow;
|
|
930
|
-
}());
|
|
931
|
-
CheckBoxRow.decorators = [
|
|
932
|
-
{ type: i0.Directive, args: [{
|
|
933
|
-
selector: '[checkBoxRow]'
|
|
934
|
-
},] }
|
|
935
|
-
];
|
|
936
|
-
CheckBoxRow.ctorParameters = function () { return [
|
|
937
|
-
{ type: i0.ElementRef },
|
|
938
|
-
{ type: i0.ApplicationRef },
|
|
939
|
-
{ type: i0.Renderer2 },
|
|
940
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] },
|
|
941
|
-
{ type: i0.ComponentFactoryResolver },
|
|
942
|
-
{ type: i0.Injector },
|
|
943
|
-
{ type: TableCheckboxIdService }
|
|
944
|
-
]; };
|
|
945
|
-
CheckBoxRow.propDecorators = {
|
|
946
|
-
checkBoxId: [{ type: i0.Input, args: ['checkBoxId',] }],
|
|
947
|
-
checkBoxName: [{ type: i0.Input, args: ['checkBoxName',] }],
|
|
948
|
-
checkBoxValue: [{ type: i0.Input, args: ['checkBoxValue',] }],
|
|
949
|
-
checkBoxValueChange: [{ type: i0.Output }]
|
|
950
|
-
};
|
|
951
|
-
|
|
952
|
-
var MultiSelectionService = /** @class */ (function () {
|
|
953
|
-
function MultiSelectionService() {
|
|
954
|
-
this.activeChanges = new rxjs.Subject();
|
|
955
|
-
this.activeChanges$ = this.activeChanges.asObservable();
|
|
956
|
-
}
|
|
957
|
-
MultiSelectionService.prototype.handle = function (items, toggleSingleItem) {
|
|
958
|
-
var _this = this;
|
|
959
|
-
if (toggleSingleItem === void 0) { toggleSingleItem = false; }
|
|
960
|
-
if (!items || !items.first) {
|
|
961
|
-
this.destroy();
|
|
962
|
-
return;
|
|
963
|
-
}
|
|
964
|
-
this.destroy(); // close previous subsciption
|
|
965
|
-
this.items = items;
|
|
966
|
-
var clicks$ = this.getListeners();
|
|
967
|
-
this.subscription = rxjs.merge.apply(void 0, __spread(clicks$)).subscribe(function (_b) {
|
|
968
|
-
var component = _b.component, isShiftKeyPressed = _b.isShift, index = _b.index;
|
|
969
|
-
if (!isShiftKeyPressed) {
|
|
970
|
-
if (toggleSingleItem) {
|
|
971
|
-
component.setActive(!component.isActive());
|
|
972
|
-
}
|
|
973
|
-
_this.activeChanges.next([index]);
|
|
974
|
-
_this.lastIndex = index;
|
|
975
|
-
return;
|
|
976
|
-
}
|
|
977
|
-
var start = index;
|
|
978
|
-
var end = _this.lastIndex;
|
|
979
|
-
var _c = __read([Math.min(start, end), Math.max(start, end) + 1], 2), first = _c[0], last = _c[1];
|
|
980
|
-
var itemsSelection = _this.items.toArray().slice(first, last);
|
|
981
|
-
var isBeginnerItemActive = _this.items.get(end).isActive();
|
|
982
|
-
itemsSelection.forEach(function (current) { return current.setActive(isBeginnerItemActive); });
|
|
983
|
-
window.getSelection().removeAllRanges(); // remove text selection
|
|
984
|
-
var indexInRange = Array.from({ length: last - first }, function (x, i) { return i + first; });
|
|
985
|
-
_this.activeChanges.next(indexInRange);
|
|
986
|
-
});
|
|
987
|
-
};
|
|
988
|
-
MultiSelectionService.prototype.getListeners = function () {
|
|
989
|
-
return this.items.map(function (item, index) {
|
|
990
|
-
return rxjs.fromEvent(item.getElement(), 'click').pipe(operators.map(function (event) {
|
|
991
|
-
return {
|
|
992
|
-
index: index,
|
|
993
|
-
isShift: event.shiftKey,
|
|
994
|
-
component: item
|
|
995
|
-
};
|
|
996
|
-
}))
|
|
997
|
-
.pipe(operators.debounceTime(100)); // debounced, because when clicking on a wac-checkbox it is emitted twice and can not find why
|
|
998
|
-
});
|
|
999
|
-
};
|
|
1000
|
-
MultiSelectionService.prototype.getActives = function () {
|
|
1001
|
-
return this.items.filter(function (item) { return item.isActive(); });
|
|
1002
|
-
};
|
|
1003
|
-
MultiSelectionService.prototype.destroy = function () {
|
|
1004
|
-
var _a;
|
|
1005
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
1006
|
-
};
|
|
1007
|
-
return MultiSelectionService;
|
|
1008
|
-
}());
|
|
1009
|
-
MultiSelectionService.decorators = [
|
|
1010
|
-
{ type: i0.Injectable }
|
|
1011
|
-
];
|
|
1012
|
-
MultiSelectionService.ctorParameters = function () { return []; };
|
|
1013
|
-
|
|
1014
|
-
var TableRow = /** @class */ (function () {
|
|
1015
|
-
function TableRow(currentCell, renderer, document) {
|
|
1016
|
-
this.currentCell = currentCell;
|
|
1017
|
-
this.renderer = renderer;
|
|
1018
|
-
this.document = document;
|
|
1019
|
-
}
|
|
1020
|
-
TableRow.prototype.ngAfterViewInit = function () {
|
|
1021
|
-
this.applyCustomStylesOnCell();
|
|
1022
|
-
};
|
|
1023
|
-
TableRow.prototype.applyCustomStylesOnCell = function () {
|
|
1024
|
-
this.renderer.addClass(this.currentCell.nativeElement, 'wac-table__body__line');
|
|
1025
|
-
};
|
|
1026
|
-
return TableRow;
|
|
1027
|
-
}());
|
|
1028
|
-
TableRow.decorators = [
|
|
1029
|
-
{ type: i0.Directive, args: [{
|
|
1030
|
-
// The selector has the same name as the tableRaw selector in table.component.html
|
|
1031
|
-
selector: '[tableRow]'
|
|
1032
|
-
},] }
|
|
1033
|
-
];
|
|
1034
|
-
TableRow.ctorParameters = function () { return [
|
|
1035
|
-
{ type: i0.ElementRef },
|
|
1036
|
-
{ type: i0.Renderer2 },
|
|
1037
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] }
|
|
1038
|
-
]; };
|
|
1039
|
-
|
|
1040
|
-
var TableComponent = /** @class */ (function () {
|
|
1041
|
-
function TableComponent(filtersTableService, tableCheckboxIdService, multiSelectionService) {
|
|
1042
|
-
this.filtersTableService = filtersTableService;
|
|
1043
|
-
this.tableCheckboxIdService = tableCheckboxIdService;
|
|
1044
|
-
this.multiSelectionService = multiSelectionService;
|
|
1045
|
-
this.tableFiltersChange = new i0.EventEmitter();
|
|
1046
|
-
this.placeholder = '';
|
|
1047
|
-
/// Input/Output of checkbox ///
|
|
1048
|
-
/** Pass to true to display checkbox in the header table */
|
|
1049
|
-
this.checkbox = false;
|
|
1050
|
-
this.toggleAllCheckBox = new i0.EventEmitter(); // todo replace by checkBoxSelectionChange
|
|
1051
|
-
this.checkBoxSelectionChange = new i0.EventEmitter(); // todo add to doc
|
|
1052
|
-
/// Input to disable section ///
|
|
1053
|
-
/** Pass to true to hide search input */
|
|
1054
|
-
this.disableSearch = false;
|
|
1055
|
-
/** Pass to true to hide the pagniator */
|
|
1056
|
-
this.disablePagniation = false;
|
|
1057
|
-
/// Input for loader on table body ///
|
|
1058
|
-
this.isLoading = false;
|
|
1059
|
-
}
|
|
1060
|
-
TableComponent.prototype.ngOnInit = function () {
|
|
1061
|
-
var _this = this;
|
|
1062
|
-
this.headerCheckBoxId = this.tableCheckboxIdService.getUniqueId(); // Create checkbox unique id
|
|
1063
|
-
/* Handle routing filters */
|
|
1064
|
-
if (this.tableRoutingName) {
|
|
1065
|
-
this.filtersTableService.setInitialPaginationFiltersIfNotExist(this.tableRoutingName, this.tableFilters.itemsPerPage, this.tableFilters.currentPage);
|
|
1066
|
-
this._tableFiltersGroup = this.filtersTableService.getTableFilterGroup(this.tableRoutingName);
|
|
1067
|
-
this.setTablesFilters();
|
|
1068
|
-
// Listen to filters changes with debounced time to limit multiple api calls
|
|
1069
|
-
this.filterGroupChangeSub = this._tableFiltersGroup.valuesChange$.subscribe(function () {
|
|
1070
|
-
_this.setTablesFilters();
|
|
1071
|
-
});
|
|
1072
|
-
}
|
|
1073
|
-
this.multiSelectionService.activeChanges$.subscribe(function (selectionIndexRawCheckChange) {
|
|
1074
|
-
_this.checkBoxSelectionChange.emit(selectionIndexRawCheckChange);
|
|
1075
|
-
});
|
|
1076
|
-
};
|
|
1077
|
-
TableComponent.prototype.ngAfterViewInit = function () {
|
|
1078
|
-
var _this = this;
|
|
1079
|
-
this.multiSelectionService.handle(this.checkBoxRows);
|
|
1080
|
-
this.checkBoxRows.changes.subscribe(function () {
|
|
1081
|
-
_this.multiSelectionService.handle(_this.checkBoxRows);
|
|
1082
|
-
});
|
|
1083
|
-
console.log('this.tableRows', this.tableRows);
|
|
1084
|
-
};
|
|
1085
|
-
TableComponent.prototype.onToggleAllCheckBox = function (event) {
|
|
1086
|
-
this.toggleAllCheckBox.emit(event.target.checked);
|
|
1087
|
-
};
|
|
1088
|
-
TableComponent.prototype.searchChange = function () {
|
|
1089
|
-
// Reset table filters
|
|
1090
|
-
this.tableFilters.sort = undefined;
|
|
1091
|
-
this.tableFilters.order = undefined;
|
|
1092
|
-
this.tableFilters.currentPage = 1;
|
|
1093
|
-
this.tableFiltersChange.emit(this.tableFilters);
|
|
1094
|
-
// Reset routing filters
|
|
1095
|
-
if (this._tableFiltersGroup) {
|
|
1096
|
-
this._tableFiltersGroup.setValues({
|
|
1097
|
-
searchValue: this.tableFilters.searchValue,
|
|
1098
|
-
sort: undefined,
|
|
1099
|
-
order: undefined,
|
|
1100
|
-
currentPage: 1
|
|
1101
|
-
});
|
|
1102
|
-
}
|
|
1103
|
-
};
|
|
1104
|
-
TableComponent.prototype.pageChange = function () {
|
|
1105
|
-
this.tableFiltersChange.emit(this.tableFilters);
|
|
1106
|
-
if (this._tableFiltersGroup) {
|
|
1107
|
-
this._tableFiltersGroup.setValues({
|
|
1108
|
-
itemsPerPage: this.tableFilters.itemsPerPage,
|
|
1109
|
-
currentPage: this.tableFilters.currentPage
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
};
|
|
1113
|
-
/**
|
|
1114
|
-
* Set tableFilters from routing data existing in the url
|
|
1115
|
-
* */
|
|
1116
|
-
TableComponent.prototype.setTablesFilters = function () {
|
|
1117
|
-
this.tableFilters = {
|
|
1118
|
-
sort: this._tableFiltersGroup.get('sort'),
|
|
1119
|
-
order: this._tableFiltersGroup.get('order') ? this._tableFiltersGroup.get('order') === 'true' : undefined,
|
|
1120
|
-
searchValue: this._tableFiltersGroup.get('searchValue'),
|
|
1121
|
-
itemsPerPage: this._tableFiltersGroup.get('itemsPerPage') ? parseInt(this._tableFiltersGroup.get('itemsPerPage')) : 0,
|
|
1122
|
-
currentPage: this._tableFiltersGroup.get('currentPage') ? parseInt(this._tableFiltersGroup.get('currentPage')) : 0,
|
|
1123
|
-
totalItems: this.tableFilters.totalItems
|
|
1124
|
-
};
|
|
1125
|
-
this.tableFiltersChange.emit(this.tableFilters);
|
|
1126
|
-
this._tableFiltersGroup.tableFiltersValuesChange$.next(this.tableFilters);
|
|
1127
|
-
};
|
|
1128
|
-
TableComponent.prototype.ngOnDestroy = function () {
|
|
1129
|
-
if (this.filterGroupChangeSub) {
|
|
1130
|
-
this.filterGroupChangeSub.unsubscribe();
|
|
1131
|
-
}
|
|
1132
|
-
this.multiSelectionService.destroy();
|
|
1133
|
-
};
|
|
1134
|
-
return TableComponent;
|
|
1135
|
-
}());
|
|
1136
|
-
TableComponent.decorators = [
|
|
1137
|
-
{ type: i0.Component, args: [{
|
|
1138
|
-
selector: 'wac-table',
|
|
1139
|
-
template: "<div class=\"wac-table\">\n <!-- Header section -->\n <div class=\"wac-table__head\" id=\"headerTable\">\n <div *ngIf=\"checkbox\" class=\"wac-table__head__cell wac-table__head__cell--checkbox\">\n <wac-checkbox [id]=\"headerCheckBoxId\" (change)=\"onToggleAllCheckBox($event)\" [alone]=\"true\"></wac-checkbox>\n </div>\n\n <!-- Header contents are added with the headerCell directive -->\n <ng-content select=\"[headerCell]\"></ng-content>\n </div>\n\n <!-- Search section -->\n <div *ngIf=\"!disableSearch\" class=\"wac-table__search\">\n <wac-input-search\n [(ngModel)]=\"tableFilters.searchValue\"\n (changeDebounced)=\"searchChange()\"\n [placeholder]=\"placeholder\"\n [smallPadding]=\"true\"\n ></wac-input-search>\n </div>\n\n <!-- Body section -->\n <div class=\"wac-table__body\">\n <!-- Loader on body -->\n <div class=\"wac-table__body__loader\" *ngIf=\"isLoading\">\n <wac-loader [small]=\"true\"></wac-loader>\n </div>\n <!-- Body contents are added with the tableRow directive -->\n <ng-content select=\".complex-table\" *ngIf=\"!isLoading\"></ng-content>\n <ng-content select=\"[tableRow]\" *ngIf=\"!isLoading\"></ng-content>\n </div>\n\n <!-- Pagination section -->\n <wac-pagination *ngIf=\"!disablePagniation\" [pagination]=\"tableFilters\" (pageChange)=\"pageChange()\"></wac-pagination>\n</div>\n",
|
|
1140
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1141
|
-
providers: [
|
|
1142
|
-
TableCheckboxIdService,
|
|
1143
|
-
MultiSelectionService
|
|
1144
|
-
]
|
|
1145
|
-
},] }
|
|
1146
|
-
];
|
|
1147
|
-
TableComponent.ctorParameters = function () { return [
|
|
1148
|
-
{ type: FiltersTableService },
|
|
1149
|
-
{ type: TableCheckboxIdService },
|
|
1150
|
-
{ type: MultiSelectionService }
|
|
1151
|
-
]; };
|
|
1152
|
-
TableComponent.propDecorators = {
|
|
1153
|
-
checkBoxRows: [{ type: i0.ContentChildren, args: [CheckBoxRow,] }],
|
|
1154
|
-
tableRows: [{ type: i0.ContentChildren, args: [TableRow,] }],
|
|
1155
|
-
tableFilters: [{ type: i0.Input }],
|
|
1156
|
-
tableFiltersChange: [{ type: i0.Output }],
|
|
1157
|
-
tableRoutingName: [{ type: i0.Input }],
|
|
1158
|
-
placeholder: [{ type: i0.Input }],
|
|
1159
|
-
checkbox: [{ type: i0.Input }],
|
|
1160
|
-
toggleAllCheckBox: [{ type: i0.Output }],
|
|
1161
|
-
checkBoxSelectionChange: [{ type: i0.Output }],
|
|
1162
|
-
disableSearch: [{ type: i0.Input }],
|
|
1163
|
-
disablePagniation: [{ type: i0.Input }],
|
|
1164
|
-
isLoading: [{ type: i0.Input }]
|
|
1165
|
-
};
|
|
1166
|
-
|
|
1167
|
-
var TagComponent = /** @class */ (function () {
|
|
1168
|
-
function TagComponent() {
|
|
1169
|
-
this.label = '';
|
|
1170
|
-
this.hasClose = false;
|
|
1171
|
-
this.big = false;
|
|
1172
|
-
this.isOpen = true;
|
|
1173
|
-
this.isOpenChange = new i0.EventEmitter();
|
|
1174
|
-
}
|
|
1175
|
-
TagComponent.prototype.toggleTag = function () {
|
|
1176
|
-
this.isOpen = !this.isOpen;
|
|
1177
|
-
this.isOpenChange.next(this.isOpen);
|
|
1178
|
-
};
|
|
1179
|
-
return TagComponent;
|
|
1180
|
-
}());
|
|
1181
|
-
TagComponent.decorators = [
|
|
1182
|
-
{ type: i0.Component, args: [{
|
|
1183
|
-
selector: 'wac-tag',
|
|
1184
|
-
template: "<div class=\"wac-tag\" [classList]=\"'wac-tag--' + class\" [ngClass]=\"{ hover: hasClose, 'big': big }\">\n {{ label }}\n <span class=\"wac-tag__close\" *ngIf=\"hasClose\" (click)=\"toggleTag()\"><i class=\"fas fa-times\"></i></span>\n</div>\n"
|
|
1185
|
-
},] }
|
|
1186
|
-
];
|
|
1187
|
-
TagComponent.ctorParameters = function () { return []; };
|
|
1188
|
-
TagComponent.propDecorators = {
|
|
1189
|
-
label: [{ type: i0.Input }],
|
|
1190
|
-
class: [{ type: i0.Input }],
|
|
1191
|
-
hasClose: [{ type: i0.Input }],
|
|
1192
|
-
big: [{ type: i0.Input }],
|
|
1193
|
-
isOpen: [{ type: i0.Input }],
|
|
1194
|
-
isOpenChange: [{ type: i0.Output }]
|
|
1195
|
-
};
|
|
1196
|
-
|
|
1197
|
-
var TabComponent = /** @class */ (function () {
|
|
1198
|
-
function TabComponent() {
|
|
1199
|
-
this.underline = false;
|
|
1200
|
-
this.button = false;
|
|
1201
|
-
this.tabs = [];
|
|
1202
|
-
this.index = 0;
|
|
1203
|
-
this.indexChange = new i0.EventEmitter();
|
|
1204
|
-
}
|
|
1205
|
-
TabComponent.prototype.valueChanged = function (i) {
|
|
1206
|
-
this.index = i;
|
|
1207
|
-
this.indexChange.emit(this.index);
|
|
1208
|
-
};
|
|
1209
|
-
return TabComponent;
|
|
1210
|
-
}());
|
|
1211
|
-
TabComponent.decorators = [
|
|
1212
|
-
{ type: i0.Component, args: [{
|
|
1213
|
-
selector: 'wac-tab',
|
|
1214
|
-
template: "<div class=\"wac-tab\" [ngClass]=\"{'wac-tab--underline': underline, 'wac-tab--button' : button}\">\n <div class=\"wac-tab__wrapper\">\n <a\n *ngFor=\"let tab of tabs\"\n class=\"wac-tab__wrapper__tab\"\n [ngClass]=\"index === tab.index ? 'wac-tab__wrapper__tab--selected' : ''\"\n (click)=\"valueChanged(tab.index)\"\n >\n {{ tab.label }}\n </a>\n </div>\n</div>\n",
|
|
1215
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
1216
|
-
},] }
|
|
1217
|
-
];
|
|
1218
|
-
TabComponent.ctorParameters = function () { return []; };
|
|
1219
|
-
TabComponent.propDecorators = {
|
|
1220
|
-
underline: [{ type: i0.Input }],
|
|
1221
|
-
button: [{ type: i0.Input }],
|
|
1222
|
-
tabs: [{ type: i0.Input }],
|
|
1223
|
-
index: [{ type: i0.Input }],
|
|
1224
|
-
indexChange: [{ type: i0.Output }]
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1227
|
-
var ButtonComponent = /** @class */ (function () {
|
|
1228
|
-
function ButtonComponent() {
|
|
1229
|
-
this.extraClasses = 'is-info'; // todo make a list of existing class
|
|
1230
|
-
this.label = '';
|
|
1231
|
-
this.icon = '';
|
|
1232
|
-
this.textcolor = null;
|
|
1233
|
-
this.widthAuto = false;
|
|
1234
|
-
this.contentHorizontalPosition = 'center';
|
|
1235
|
-
this.iconFontSize = 12;
|
|
1236
|
-
this.hasLoader = false;
|
|
1237
|
-
this.disabled = false;
|
|
1238
|
-
this.whiteSpaceNowrap = false;
|
|
1239
|
-
this.opacity = false;
|
|
1240
|
-
// TODO MAKE ANNIMATION AVAILABLE FOR MOBILE as CONFIRM DELETE DO (because, its doeant show the text and trigger click)
|
|
1241
|
-
this.animation = false;
|
|
1242
|
-
this.animationRight = false;
|
|
1243
|
-
this.animationText = '';
|
|
1244
|
-
this.confirmDelete = false;
|
|
1245
|
-
this.confirmDeleteText = '';
|
|
1246
|
-
this.confirmDeletePosition = 'right';
|
|
1247
|
-
this.click = new i0.EventEmitter();
|
|
1248
|
-
this.isLoadingChange = new i0.EventEmitter();
|
|
1249
|
-
this._isLoading = false;
|
|
1250
|
-
this.interval = null;
|
|
1251
|
-
this.waitForConfirmDelete = false;
|
|
1252
|
-
this.buttonMaxWidth = '0px';
|
|
1253
|
-
this.buttonWidth = '0px';
|
|
1254
|
-
this.buttonMaxWidthDelete = '0px';
|
|
1255
|
-
this.buttonWidthDelete = '0px';
|
|
1256
|
-
this.currentLoading = 0;
|
|
1257
|
-
}
|
|
1258
|
-
Object.defineProperty(ButtonComponent.prototype, "isLoading", {
|
|
1259
|
-
get: function () {
|
|
1260
|
-
return this._isLoading;
|
|
1261
|
-
},
|
|
1262
|
-
set: function (isLoading) {
|
|
1263
|
-
this._isLoading = isLoading;
|
|
1264
|
-
this.isLoadingChange.next(isLoading);
|
|
1265
|
-
this.toggleLoading();
|
|
1266
|
-
},
|
|
1267
|
-
enumerable: false,
|
|
1268
|
-
configurable: true
|
|
1269
|
-
});
|
|
1270
|
-
ButtonComponent.prototype.ngOnInit = function () {
|
|
1271
|
-
if (this.confirmDelete) {
|
|
1272
|
-
this.waitForConfirmDelete = true;
|
|
1273
|
-
}
|
|
1274
|
-
};
|
|
1275
|
-
ButtonComponent.prototype.toggleLoading = function () {
|
|
1276
|
-
var _this = this;
|
|
1277
|
-
this.currentLoading = this.isLoading ? 10 : 100;
|
|
1278
|
-
rxjs.interval(200).pipe(operators.takeWhile(function (time) { return _this.isLoading; })).subscribe(function () {
|
|
1279
|
-
if (_this.currentLoading < 85) {
|
|
1280
|
-
_this.currentLoading += Math.floor(Math.random() * 15);
|
|
1281
|
-
}
|
|
1282
|
-
});
|
|
1283
|
-
};
|
|
1284
|
-
ButtonComponent.prototype.addMaxWidth = function () {
|
|
1285
|
-
this.buttonMaxWidth = this.buttonWidth + 'px';
|
|
1286
|
-
};
|
|
1287
|
-
ButtonComponent.prototype.resetMaxWidth = function () {
|
|
1288
|
-
this.buttonMaxWidth = '0px';
|
|
1289
|
-
};
|
|
1290
|
-
ButtonComponent.prototype.addMaxWidthDelete = function () {
|
|
1291
|
-
this.buttonMaxWidthDelete = this.buttonWidthDelete + 'px';
|
|
1292
|
-
};
|
|
1293
|
-
ButtonComponent.prototype.resetMaxWidthDelete = function () {
|
|
1294
|
-
this.buttonMaxWidthDelete = '0px';
|
|
1295
|
-
this.waitForConfirmDelete = true;
|
|
1296
|
-
};
|
|
1297
|
-
ButtonComponent.prototype.onButtonClick = function (event) {
|
|
1298
|
-
var _this = this;
|
|
1299
|
-
event.stopPropagation();
|
|
1300
|
-
if (this.disabled) {
|
|
1301
|
-
return;
|
|
1302
|
-
}
|
|
1303
|
-
if (this.hasLoader) {
|
|
1304
|
-
this.isLoading = false;
|
|
1305
|
-
setTimeout(function () {
|
|
1306
|
-
_this.isLoading = true;
|
|
1307
|
-
}, 0);
|
|
1308
|
-
}
|
|
1309
|
-
if (!this.waitForConfirmDelete) {
|
|
1310
|
-
this.click.emit(event);
|
|
1311
|
-
if (this.confirmDelete) {
|
|
1312
|
-
this.resetMaxWidthDelete();
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
else {
|
|
1316
|
-
this.waitForConfirmDelete = false;
|
|
1317
|
-
}
|
|
1318
|
-
};
|
|
1319
|
-
ButtonComponent.prototype.ngAfterViewInit = function () {
|
|
1320
|
-
var _this = this;
|
|
1321
|
-
setTimeout(function () {
|
|
1322
|
-
if (_this.animation) {
|
|
1323
|
-
_this.buttonWidth = _this.calculWidth.nativeElement.offsetWidth;
|
|
1324
|
-
}
|
|
1325
|
-
if (_this.confirmDelete) {
|
|
1326
|
-
_this.buttonWidthDelete = _this.calculWidthDelete.nativeElement.offsetWidth;
|
|
1327
|
-
}
|
|
1328
|
-
}, 1000);
|
|
1329
|
-
};
|
|
1330
|
-
return ButtonComponent;
|
|
1331
|
-
}());
|
|
1332
|
-
ButtonComponent.decorators = [
|
|
1333
|
-
{ type: i0.Component, args: [{
|
|
1334
|
-
selector: 'wac-button',
|
|
1335
|
-
template: "<a\n [class]=\"'wac-button ' + extraClasses\"\n (click)=\"confirmDelete && waitForConfirmDelete ? addMaxWidthDelete() : '';onButtonClick($event);\"\n (mouseleave)=\"animation ? resetMaxWidth() : '';\"\n (mouseenter)=\"animation ? addMaxWidth() : '';\"\n wzAutoHide (clickOutside)=\"confirmDelete && !waitForConfirmDelete ? resetMaxWidthDelete() : ''\"\n [ngClass]=\"[\n label === '' ? 'alone' : '',\n coin ? 'has-coin width-auto' : '',\n animationRight ? 'animation-right' : '',\n animation ? 'animationText' : '',\n isLoading ? 'is-loading' : '',\n opacity ? 'opacity' : '',\n disabled ? 'disabled' : '',\n widthAuto ? 'width-auto' : '',\n whiteSpaceNowrap ? 'white-space-no-wrap' : '',\n !waitForConfirmDelete && confirmDelete ? 'step-delete' : '',\n confirmDelete ? 'deletePosition-' + confirmDeletePosition : ''\n ]\"\n [ngStyle]=\"{\n 'text-align': contentHorizontalPosition\n }\"\n>\n <span class=\"wac-button__wrapper\" [style.color]=\"textcolor ? textcolor : ''\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n <span class=\"wac-button__animation\" [style.maxWidth]=\"buttonMaxWidth\" [style.width]=\"buttonWidth + 'px'\">\n <span #calculWidth class=\"wac-button__animation__text\" [innerHTML]=\"animationText\"></span>\n </span>\n <span class=\"wac-button__confirmDelete\" [style.maxWidth]=\"buttonMaxWidthDelete\" [style.width]=\"buttonWidthDelete + 'px'\">\n <span #calculWidthDelete class=\"wac-button__confirmDelete__text\" [innerHTML]=\"confirmDeleteText\"></span>\n </span>\n <span *ngIf=\"coin\" class=\"wac-button__coin\"><i class=\"fa-solid fa-coin-front\"></i><span [innerHTML]=\"coin\"></span></span>\n <span\n class=\"wac-button__loader\"\n [ngClass]=\"extraClasses.includes('is-outlined') ? 'outlined' : ''\"\n *ngIf=\"isLoading\"\n [style.width]=\"currentLoading + '%'\"\n >\n <span *ngIf=\"extraClasses.includes('is-outlined')\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n\n </span>\n</a>\n"
|
|
1336
|
-
},] }
|
|
1337
|
-
];
|
|
1338
|
-
ButtonComponent.ctorParameters = function () { return []; };
|
|
1339
|
-
ButtonComponent.propDecorators = {
|
|
1340
|
-
extraClasses: [{ type: i0.Input }],
|
|
1341
|
-
label: [{ type: i0.Input }],
|
|
1342
|
-
icon: [{ type: i0.Input }],
|
|
1343
|
-
iconNext: [{ type: i0.Input }],
|
|
1344
|
-
textcolor: [{ type: i0.Input }],
|
|
1345
|
-
widthAuto: [{ type: i0.Input }],
|
|
1346
|
-
contentHorizontalPosition: [{ type: i0.Input }],
|
|
1347
|
-
iconFontSize: [{ type: i0.Input }],
|
|
1348
|
-
hasLoader: [{ type: i0.Input }],
|
|
1349
|
-
disabled: [{ type: i0.Input }],
|
|
1350
|
-
whiteSpaceNowrap: [{ type: i0.Input }],
|
|
1351
|
-
opacity: [{ type: i0.Input }],
|
|
1352
|
-
animation: [{ type: i0.Input }],
|
|
1353
|
-
animationRight: [{ type: i0.Input }],
|
|
1354
|
-
animationText: [{ type: i0.Input }],
|
|
1355
|
-
confirmDelete: [{ type: i0.Input }],
|
|
1356
|
-
confirmDeleteText: [{ type: i0.Input }],
|
|
1357
|
-
coin: [{ type: i0.Input }],
|
|
1358
|
-
confirmDeletePosition: [{ type: i0.Input }],
|
|
1359
|
-
click: [{ type: i0.Output }],
|
|
1360
|
-
isLoading: [{ type: i0.Input }],
|
|
1361
|
-
isLoadingChange: [{ type: i0.Output }],
|
|
1362
|
-
calculWidth: [{ type: i0.ViewChild, args: ['calculWidth',] }],
|
|
1363
|
-
calculWidthDelete: [{ type: i0.ViewChild, args: ['calculWidthDelete',] }]
|
|
1364
|
-
};
|
|
1365
|
-
|
|
1366
|
-
var InfoComponent = /** @class */ (function () {
|
|
1367
|
-
function InfoComponent() {
|
|
1368
|
-
}
|
|
1369
|
-
return InfoComponent;
|
|
1370
|
-
}());
|
|
1371
|
-
InfoComponent.decorators = [
|
|
1372
|
-
{ type: i0.Component, args: [{
|
|
1373
|
-
selector: 'wac-info',
|
|
1374
|
-
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"
|
|
1375
|
-
},] }
|
|
1376
|
-
];
|
|
1377
|
-
InfoComponent.ctorParameters = function () { return []; };
|
|
1378
|
-
|
|
1379
|
-
var SettingsComponent = /** @class */ (function () {
|
|
1380
|
-
function SettingsComponent() {
|
|
1381
|
-
}
|
|
1382
|
-
return SettingsComponent;
|
|
1383
|
-
}());
|
|
1384
|
-
SettingsComponent.decorators = [
|
|
1385
|
-
{ type: i0.Component, args: [{
|
|
1386
|
-
selector: 'wac-settings',
|
|
1387
|
-
template: "<div class=\"wac-settings\">\n <div class=\"wac-settings__wrapper\">\n <i class=\"fas fa-cog\"></i>\n </div>\n</div>\n",
|
|
1388
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
1389
|
-
},] }
|
|
1390
|
-
];
|
|
1391
|
-
SettingsComponent.ctorParameters = function () { return []; };
|
|
1392
|
-
|
|
1393
|
-
var DeleteComponent = /** @class */ (function () {
|
|
1394
|
-
function DeleteComponent() {
|
|
1395
|
-
}
|
|
1396
|
-
return DeleteComponent;
|
|
1397
|
-
}());
|
|
1398
|
-
DeleteComponent.decorators = [
|
|
1399
|
-
{ type: i0.Component, args: [{
|
|
1400
|
-
selector: 'wac-delete',
|
|
1401
|
-
template: "<div class=\"wac-delete\">\n <div class=\"wac-delete__wrapper\">\n <i class=\"fas fa-trash\"></i>\n </div>\n</div>\n"
|
|
1402
|
-
},] }
|
|
1403
|
-
];
|
|
1404
|
-
DeleteComponent.ctorParameters = function () { return []; };
|
|
1405
|
-
|
|
1406
|
-
var DropdownComponent = /** @class */ (function () {
|
|
1407
|
-
function DropdownComponent() {
|
|
1408
|
-
this.hasIcons = false;
|
|
1409
|
-
this.items = [];
|
|
1410
|
-
this.userInput = new i0.EventEmitter();
|
|
1411
|
-
}
|
|
1412
|
-
DropdownComponent.prototype.onUserInput = function (itemIndex) {
|
|
1413
|
-
this.userInput.emit(itemIndex);
|
|
1414
|
-
};
|
|
1415
|
-
return DropdownComponent;
|
|
1416
|
-
}());
|
|
1417
|
-
DropdownComponent.decorators = [
|
|
1418
|
-
{ type: i0.Component, args: [{
|
|
1419
|
-
selector: 'wac-dropdown',
|
|
1420
|
-
template: "<div class=\"wac-dropdown\">\n <div class=\"wac-dropdown__wrapper\">\n <i class=\"wac-dropdown__wrapper__icon far fa-ellipsis-v\"></i>\n <div class=\"wac-dropdown__wrapper__sublevel\">\n <ul class=\"wac-dropdown__wrapper__sublevel__container\">\n <li\n *ngFor=\"let item of items\"\n class=\"wac-dropdown__wrapper__sublevel__container__item\"\n (click)=\"onUserInput(item.index)\"\n >\n <i\n *ngIf=\"hasIcons\"\n [class]=\"item.icon\"\n [style.font-size.px]=\"item.iconFontSize ? item.iconFontSize : '14'\"\n ></i>\n <span>{{ item.label }}</span>\n </li>\n </ul>\n </div>\n </div>\n</div>\n"
|
|
1421
|
-
},] }
|
|
1422
|
-
];
|
|
1423
|
-
DropdownComponent.ctorParameters = function () { return []; };
|
|
1424
|
-
DropdownComponent.propDecorators = {
|
|
1425
|
-
hasIcons: [{ type: i0.Input }],
|
|
1426
|
-
items: [{ type: i0.Input }],
|
|
1427
|
-
userInput: [{ type: i0.Output }]
|
|
1428
|
-
};
|
|
1429
|
-
|
|
1430
|
-
var ImageComponent = /** @class */ (function () {
|
|
1431
|
-
function ImageComponent() {
|
|
1432
|
-
}
|
|
1433
|
-
return ImageComponent;
|
|
1434
|
-
}());
|
|
1435
|
-
ImageComponent.decorators = [
|
|
1436
|
-
{ type: i0.Component, args: [{
|
|
1437
|
-
selector: 'wac-image',
|
|
1438
|
-
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"
|
|
1439
|
-
},] }
|
|
1440
|
-
];
|
|
1441
|
-
ImageComponent.ctorParameters = function () { return []; };
|
|
1442
|
-
ImageComponent.propDecorators = {
|
|
1443
|
-
src: [{ type: i0.Input }]
|
|
1444
|
-
};
|
|
1445
|
-
|
|
1446
|
-
var BackComponent = /** @class */ (function () {
|
|
1447
|
-
function BackComponent() {
|
|
1448
|
-
}
|
|
1449
|
-
return BackComponent;
|
|
1450
|
-
}());
|
|
1451
|
-
BackComponent.decorators = [
|
|
1452
|
-
{ type: i0.Component, args: [{
|
|
1453
|
-
selector: 'wac-back',
|
|
1454
|
-
template: "<div class=\"wac-back\">\n <div class=\"wac-back__wrapper\">\n <i class=\"fas fa-chevron-left\"></i>\n </div>\n</div>\n"
|
|
1455
|
-
},] }
|
|
1456
|
-
];
|
|
1457
|
-
BackComponent.ctorParameters = function () { return []; };
|
|
1458
|
-
|
|
1459
|
-
var SeparatorComponent = /** @class */ (function () {
|
|
1460
|
-
function SeparatorComponent() {
|
|
1461
|
-
this.dashed = false;
|
|
1462
|
-
}
|
|
1463
|
-
return SeparatorComponent;
|
|
1464
|
-
}());
|
|
1465
|
-
SeparatorComponent.decorators = [
|
|
1466
|
-
{ type: i0.Component, args: [{
|
|
1467
|
-
selector: 'wac-separator',
|
|
1468
|
-
template: "<div class=\"wac-separator\" [ngClass]=\"dashed ? 'dashed' : ''\"></div>\n",
|
|
1469
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
1470
|
-
},] }
|
|
1471
|
-
];
|
|
1472
|
-
SeparatorComponent.ctorParameters = function () { return []; };
|
|
1473
|
-
SeparatorComponent.propDecorators = {
|
|
1474
|
-
dashed: [{ type: i0.Input }]
|
|
1475
|
-
};
|
|
1476
|
-
|
|
1477
|
-
var LogoComponent = /** @class */ (function () {
|
|
1478
|
-
function LogoComponent() {
|
|
1479
|
-
}
|
|
1480
|
-
return LogoComponent;
|
|
1481
|
-
}());
|
|
1482
|
-
LogoComponent.decorators = [
|
|
1483
|
-
{ type: i0.Component, args: [{
|
|
1484
|
-
selector: 'wac-logo',
|
|
1485
|
-
template: "<div class=\"wac-logo\">\n <div class=\"wac-logo__wrapper\" [ngClass]=\"isWhite ? 'white' : ''\" *ngIf=\"isDropizi\">\n <svg id=\"Calque_1\" data-name=\"Calque 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 102.33 40\">\n <defs>\n <style>\n .cls-0 {\n fill: #fa096a;\n }\n </style>\n </defs>\n <title>Logo_Dropizi</title>\n <path\n id=\"Logo_Dropizi-2\"\n data-name=\"Logo Dropizi-2\"\n class=\"cls-0\"\n d=\"M83,44.94a4.87,4.87,0,0,1-4.36-7,3.81,3.81,0,0,1-.72-2l-.3-5.69a9.61,9.61,0,0,1-3.43,2,13.51,13.51,0,0,1-3.34.63l-1.06,0L70,36.29a3.75,3.75,0,0,1-3.54,3.94l-2.25.11H64a3.69,3.69,0,0,1-3-1.56,12.82,12.82,0,0,1-7.68,2.61,13.45,13.45,0,0,1-5.37-1.14,3.67,3.67,0,0,1-2.46,1.09l-2.15.12h-.2a3.76,3.76,0,0,1-3.17-1.74l-3.29-5.25L36.84,38a3.78,3.78,0,0,1-1,2.7A3.74,3.74,0,0,1,33.28,42L31,42.09h-.19a3.77,3.77,0,0,1-3.06-1.58,12.62,12.62,0,0,1-1.62.87,15,15,0,0,1-5.35,1.24L13.49,43H13.3a3.76,3.76,0,0,1-3.74-3.54L8.5,19.3A3.75,3.75,0,0,1,12,15.36L19.37,15c.3,0,.59,0,.88,0a14.67,14.67,0,0,1,4.56.7,13.17,13.17,0,0,1,1.74.7,3.73,3.73,0,0,1,3.06-1.91l7.14-.37c.35,0,.69,0,1,0,3.65,0,6,1.12,7.41,2.57A13.29,13.29,0,0,1,49,14.33a12.05,12.05,0,0,1,4.44-.82c.23,0,.45,0,.69,0a13.63,13.63,0,0,1,5.2,1.35l.22.11a3.75,3.75,0,0,1,3.25-2.29l5.32-.27c.7,0,1.38-.06,2-.06.92,0,1.78,0,2.57.11a10.17,10.17,0,0,1,4.16,1.26l.37.24a3.78,3.78,0,0,1,3.22-2.2l2.18-.12h.2a3.89,3.89,0,0,1,2,.57,3.63,3.63,0,0,1,2.07-.79l12.9-.67h.11c0-.24-.07-.47-.09-.71a4.88,4.88,0,0,1,4.62-5.12h.25a4.86,4.86,0,0,1,4.88,4.62v.26A4.89,4.89,0,0,1,109,12a3.62,3.62,0,0,1,.72,2l1.06,20.14,0,0a3.75,3.75,0,0,1-3.54,3.94l-2.18.11h-.2a3.83,3.83,0,0,1-2-.57,3.54,3.54,0,0,1-2.06.78l-12.9.68h-.1c0,.24.07.47.09.71a4.87,4.87,0,0,1-1.25,3.51,4.82,4.82,0,0,1-3.37,1.6Zm-2-4.87v.11a2,2,0,0,0,2.1,1.9h0a2,2,0,0,0,1.9-2V40a2,2,0,0,0-2-1.9H83A2,2,0,0,0,81.05,40.07ZM19.54,17.84l-7.34.39a.89.89,0,0,0-.84.93l1.06,20.17a.89.89,0,0,0,.92.83l7.33-.39a11.89,11.89,0,0,0,4.32-1,9.7,9.7,0,0,0,3.3-2.36,8.91,8.91,0,0,0,1.46-2.14L30,38.4a.88.88,0,0,0,.92.84l2.25-.12A.88.88,0,0,0,34,38.2h0l-.34-6.38a.88.88,0,0,1,.84-.93h0l2.67-.14a.89.89,0,0,1,.8.41l4.41,7a.92.92,0,0,0,.8.42l2.17-.12a.88.88,0,0,0,.72-1.34l-4.25-7A.88.88,0,0,1,42,29c.22-.18.44-.37.64-.56a10.07,10.07,0,0,0,.5,3,9.65,9.65,0,0,0,2,3.45,11.39,11.39,0,0,0,3.45,2.5,10,10,0,0,0,8.09.47,11,11,0,0,0,6.08-6l.08-.18.26,4.91a.89.89,0,0,0,.92.84l2.25-.12a.89.89,0,0,0,.84-.92L66.86,31a.87.87,0,0,1,.83-.92h0l3-.16a10.49,10.49,0,0,0,2.6-.5A6.87,6.87,0,0,0,75.75,28a6.67,6.67,0,0,0,1.68-2.36l0-.12A8.77,8.77,0,0,0,78,21.73a9,9,0,0,0-.77-3.49,4.1,4.1,0,0,0-.22-.41,4.71,4.71,0,0,0-1.63-1.63,7.28,7.28,0,0,0-3-.87,28.9,28.9,0,0,0-4.16,0l-5.33.28a.86.86,0,0,0-.61.29.9.9,0,0,0-.22.63L62.33,21a10.85,10.85,0,0,0-.8-1A11.54,11.54,0,0,0,54,16.38,9.3,9.3,0,0,0,50,17a10.46,10.46,0,0,0-3.46,2.22,11.5,11.5,0,0,0-1.92,2.41q-1-5.05-7.73-4.7l-7.14.37a.88.88,0,0,0-.84.93l.22,4.15a9.5,9.5,0,0,0-5.19-4,12.2,12.2,0,0,0-3.65-.56C20.05,17.82,19.79,17.82,19.54,17.84Zm63.22-3.31-2.17.12a.9.9,0,0,0-.61.29.87.87,0,0,0-.23.64l1.06,20.15a.88.88,0,0,0,.93.84L84,36.45a.83.83,0,0,0,.61-.29.87.87,0,0,0,.23-.63l-1-20.09a1,1,0,0,0-1-.9Zm11.48,3.85a.9.9,0,0,1,.07.87L86.94,35a.88.88,0,0,0,.06.86.85.85,0,0,0,.76.4l12.9-.67h0a.76.76,0,0,0,.72-.8h0l-.13-2.48a.75.75,0,0,0-.8-.72l-6.21.33a.89.89,0,0,1-.84-1.26l7.37-15.74a.9.9,0,0,0-.07-.87.87.87,0,0,0-.78-.39L87,14.31a.75.75,0,0,0-.71.8l.13,2.49a.74.74,0,0,0,.25.52.75.75,0,0,0,.55.2L93.46,18h.05A.89.89,0,0,1,94.24,18.38ZM106,13.31l-2.24.12a.89.89,0,0,0-.85.93l.85,16.15v.1l.2,3.83a1,1,0,0,0,1,.91l2.18-.11h0a.9.9,0,0,0,.83-.93l-1.06-20.16a.88.88,0,0,0-.88-.84Zm-3.32-3.5v.1a2,2,0,0,0,4-.1V9.7a2,2,0,0,0-2-1.9h-.1a2,2,0,0,0-1.91,2ZM16.25,35.28l-.66-12.51a.87.87,0,0,1,.23-.64.83.83,0,0,1,.61-.29l3.3-.18a6,6,0,0,1,4.87,1.62,7.74,7.74,0,0,1,1.92,5.19,7.71,7.71,0,0,1-1.37,5.35A6,6,0,0,1,20.47,36l-3.31.17h0a.88.88,0,0,1-.88-.84Zm36.61-.55A6.9,6.9,0,0,1,48,32.44a5.3,5.3,0,0,1-1.12-2.17,6.7,6.7,0,0,1-.09-2.6,11,11,0,0,1,2.57-5.41,6.42,6.42,0,0,1,2.07-1.58,5.52,5.52,0,0,1,2.4-.52,6.36,6.36,0,0,1,2.64.66,5.45,5.45,0,0,1,3.3,3.78A8.32,8.32,0,0,1,59,30.1a10.69,10.69,0,0,1-1.66,2.54,6.76,6.76,0,0,1-2.07,1.57,5.42,5.42,0,0,1-2.31.52.27.27,0,0,1-.09,0Zm-19.2-7.84a.83.83,0,0,1-.29-.61l-.26-4.91a.87.87,0,0,1,.83-.92l2.22-.12a5.2,5.2,0,0,1,3.39.63,3.08,3.08,0,0,1,1,2.41,3.29,3.29,0,0,1-.8,2.6,5.23,5.23,0,0,1-3.43,1l-2.07.11h0a.89.89,0,0,1-.59-.23Zm32.93-1.41-.31-5.84a.9.9,0,0,1,.23-.64.86.86,0,0,1,.61-.29l2.4-.12a8.81,8.81,0,0,1,2,.09,3.1,3.1,0,0,1,1.33.57,2.58,2.58,0,0,1,.75,1.09A6.22,6.22,0,0,1,73.94,22a4.16,4.16,0,0,1-.79,3.14A4.63,4.63,0,0,1,70,26.19l-2.51.13h0a.9.9,0,0,1-.89-.84Z\"\n transform=\"translate(-8.49 -4.94)\"\n />\n </svg>\n </div>\n <div class=\"wac-logo__wrapper\" [ngClass]=\"isWhite ? 'white' : ''\" *ngIf=\"!isDropizi\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 128.044 40\">\n <defs>\n <style>\n .cls-1 {\n fill: #a4c445;\n }\n .cls-2 {\n fill: #52aecd;\n }\n </style>\n </defs>\n <g id=\"Logo_WiziShop\" transform=\"translate(0.024 0)\">\n <path\n id=\"Shop\"\n class=\"cls-1\"\n d=\"M50.812,38.431V12.3a2.468,2.468,0,0,1,2.452-1.643A2.307,2.307,0,0,1,55.446,12a7.058,7.058,0,0,1,4.107-1.348A5.245,5.245,0,0,1,63.218,12,6.1,6.1,0,0,1,64.7,16.365v7.208h-.012q0,7.282-5.835,7.282a8.453,8.453,0,0,1-3.224-.674v8.25A2.471,2.471,0,0,1,53.178,40,2.419,2.419,0,0,1,50.812,38.431Zm4.805-21.845V26a7.046,7.046,0,0,0,2.709.834c1.1-.012,1.655-1.091,1.655-3.248V15.912c0-.65-.4-.981-1.226-.981A3.59,3.59,0,0,0,55.617,16.586ZM33.858,19.614q0-9.727,7.159-9.721,4.1,0,5.762,3.065a15.8,15.8,0,0,1,1.067,6.656q0,4.56-1.226,6.8-1.655,3.144-6.031,3.138Q33.858,29.556,33.858,19.614Zm4.462,0c0,3.947.846,5.909,2.538,5.909,1.741.012,2.623-1.961,2.623-5.909q0-5.682-2.538-5.688Q38.315,13.926,38.321,19.614Zm-35.8,8.4A5.577,5.577,0,0,1,.172,23.917L0,22.262l4.536-.6a12.942,12.942,0,0,0,.613,2.317,1.976,1.976,0,0,0,2.01,1.189,1.375,1.375,0,0,0,1.226-.674A4.161,4.161,0,0,0,9,22.4c0-1.2-.736-2.623-2.219-4.266s-2.954-3.273-4.4-4.867A10,10,0,0,1,.025,7.2a9.322,9.322,0,0,1,.441-2.77Q1.955.012,6.84.012a7.629,7.629,0,0,1,4.585,1.5,5.555,5.555,0,0,1,2.317,4.131l.172,1.655-4.585.588a12.943,12.943,0,0,0-.613-2.317,1.976,1.976,0,0,0-2.01-1.189c-.7,0-1.189.429-1.483,1.275A3.756,3.756,0,0,0,4.965,7q0,2.537,4.622,7.416t4.622,8.017a7.691,7.691,0,0,1-1.876,4.72,6.225,6.225,0,0,1-5.185,2.39A7.665,7.665,0,0,1,2.525,28.011Zm23.488-.368V15.3c0-.552-.343-.821-1.042-.821a3.356,3.356,0,0,0-2.954,1.569v11.6a2.629,2.629,0,0,1-2.538,1.716,2.589,2.589,0,0,1-2.452-1.728V1.729A2.578,2.578,0,0,1,19.479,0a2.641,2.641,0,0,1,2.538,1.729v9.292a7.611,7.611,0,0,1,3.751-1.042,5.039,5.039,0,0,1,3.665,1.459,5.748,5.748,0,0,1,1.483,4.3V27.631a2.548,2.548,0,0,1-2.366,1.728l-.136,0A2.521,2.521,0,0,1,26.013,27.643Z\"\n transform=\"translate(63.32 0)\"\n />\n <path\n id=\"Wizi\"\n class=\"cls-2\"\n d=\"M13.341,28.661,12.2,22.617l-1.226,6.044a2.9,2.9,0,0,1-2.353,1.189,3.26,3.26,0,0,1-2.44-1.1L.064,2.55A1.793,1.793,0,0,1,.591.674,2.977,2.977,0,0,1,2.6,0c1.287,0,2.047.478,2.28,1.422L8.535,18.707l1.312-6.055a2.228,2.228,0,0,1,2.524-1.876,2.035,2.035,0,0,1,2.183,1.876l1.213,6.142Q16.816,12.6,18,6.3c.785-4.2,2.06-6.3,3.8-6.3a2.717,2.717,0,0,1,1.054.221,1.774,1.774,0,0,1,1.41,2.329l-6.032,26.1a2.881,2.881,0,0,1-2.354,1.2A3.247,3.247,0,0,1,13.341,28.661Zm39.816-.356V11.67c.293-.6,1.139-.895,2.537-.895,1.336,0,2.182.294,2.538.895V28.305c-.355.65-1.2.968-2.538.968C54.3,29.273,53.451,28.955,53.157,28.305Zm-15.667.968c-1.287-.147-1.924-.772-1.924-1.863a2.936,2.936,0,0,1,.343-1.5l7.16-10.984H37.33a2.307,2.307,0,0,1-1.765-2.182,2.226,2.226,0,0,1,1.778-2.182h10.1a2.144,2.144,0,0,1,1.679,2.1q0,1.8-2.574,5.529-2.483,3.366-4.879,6.73h5.7v-.013a2.235,2.235,0,0,1,0,4.364Zm-11.5-.968V11.67c.294-.6,1.14-.895,2.538-.895,1.336,0,2.182.294,2.537.895V28.305c-.355.65-1.2.968-2.537.968C27.131,29.273,26.285,28.955,25.991,28.305ZM53.9,8.054a2,2,0,0,1-.747-1.544A1.858,1.858,0,0,1,53.9,5a2.969,2.969,0,0,1,3.58,0,1.859,1.859,0,0,1,.748,1.508,1.962,1.962,0,0,1-.748,1.544,2.833,2.833,0,0,1-3.58,0Zm-27.165,0a2,2,0,0,1-.748-1.544A1.859,1.859,0,0,1,26.739,5a2.968,2.968,0,0,1,3.579,0,1.892,1.892,0,0,1,.748,1.508,1.959,1.959,0,0,1-.748,1.544,2.832,2.832,0,0,1-3.579,0Z\"\n transform=\"translate(-0.024 0.086)\"\n />\n </g>\n </svg>\n </div>\n</div>\n",
|
|
1486
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
1487
|
-
},] }
|
|
1488
|
-
];
|
|
1489
|
-
LogoComponent.ctorParameters = function () { return []; };
|
|
1490
|
-
LogoComponent.propDecorators = {
|
|
1491
|
-
isDropizi: [{ type: i0.Input }],
|
|
1492
|
-
isWhite: [{ type: i0.Input }]
|
|
1493
|
-
};
|
|
1494
|
-
|
|
1495
|
-
var RadioComponent = /** @class */ (function () {
|
|
1496
|
-
function RadioComponent() {
|
|
1497
|
-
this.label = '';
|
|
1498
|
-
this.id = '';
|
|
1499
|
-
this.alone = false;
|
|
1500
|
-
this.changeInput = new i0.EventEmitter();
|
|
1501
|
-
this.disabled = false;
|
|
1502
|
-
}
|
|
1503
|
-
RadioComponent.prototype.registerOnChange = function (fn) {
|
|
1504
|
-
this._onChange = fn;
|
|
1505
|
-
};
|
|
1506
|
-
RadioComponent.prototype.registerOnTouched = function (fn) {
|
|
1507
|
-
this._onTouched = fn;
|
|
1508
|
-
};
|
|
1509
|
-
RadioComponent.prototype.setDisabledState = function (isDisabled) {
|
|
1510
|
-
this.disabled = isDisabled;
|
|
1511
|
-
};
|
|
1512
|
-
RadioComponent.prototype.writeValue = function (obj) {
|
|
1513
|
-
this.value = obj;
|
|
1514
|
-
};
|
|
1515
|
-
RadioComponent.prototype.onChange = function (value) {
|
|
1516
|
-
if (this._onChange) {
|
|
1517
|
-
this._onChange(value);
|
|
1518
|
-
}
|
|
1519
|
-
};
|
|
1520
|
-
RadioComponent.prototype.valueInput = function (value) {
|
|
1521
|
-
this.changeInput.emit(value);
|
|
1522
|
-
};
|
|
1523
|
-
return RadioComponent;
|
|
1524
|
-
}());
|
|
1525
|
-
RadioComponent.decorators = [
|
|
1526
|
-
{ type: i0.Component, args: [{
|
|
1527
|
-
selector: 'wac-radio',
|
|
1528
|
-
template: "<div class=\"wac-radio\" *ngFor=\"let option of options\" [ngClass]=\"{ 'wac-radio--nowrap': type === 'column', alone: alone }\">\n <div class=\"wac-radio__row\">\n <input\n type=\"radio\"\n [id]=\"option.id\"\n class=\"is-checkradio\"\n [name]=\"option.name\"\n [value]=\"option.value\"\n [disabled]=\"option.disabled\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n />\n <label [attr.for]=\"option.id\">{{ option.label }}</label>\n <div class=\"wac-radio__input\" *ngIf=\"value && option.value && option.hasInput\">\n <input type=\"text\" [placeholder]=\"option.placeholderInput\" (blur)=\"valueInput($event)\" />\n </div>\n </div>\n</div>\n",
|
|
1529
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1530
|
-
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: RadioComponent, multi: true }]
|
|
1531
|
-
},] }
|
|
1532
|
-
];
|
|
1533
|
-
RadioComponent.ctorParameters = function () { return []; };
|
|
1534
|
-
RadioComponent.propDecorators = {
|
|
1535
|
-
label: [{ type: i0.Input }],
|
|
1536
|
-
options: [{ type: i0.Input }],
|
|
1537
|
-
value: [{ type: i0.Input }],
|
|
1538
|
-
type: [{ type: i0.Input }],
|
|
1539
|
-
id: [{ type: i0.Input }],
|
|
1540
|
-
name: [{ type: i0.Input }],
|
|
1541
|
-
alone: [{ type: i0.Input }],
|
|
1542
|
-
changeInput: [{ type: i0.Output }]
|
|
1543
|
-
};
|
|
1544
|
-
|
|
1545
|
-
var StateComponent = /** @class */ (function () {
|
|
1546
|
-
function StateComponent() {
|
|
1547
|
-
this.state = 'success';
|
|
1548
|
-
}
|
|
1549
|
-
return StateComponent;
|
|
1550
|
-
}());
|
|
1551
|
-
StateComponent.decorators = [
|
|
1552
|
-
{ type: i0.Component, args: [{
|
|
1553
|
-
selector: 'wac-state',
|
|
1554
|
-
template: "<div [class]=\"'wac-state ' + state\"></div>\n",
|
|
1555
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
1556
|
-
},] }
|
|
1557
|
-
];
|
|
1558
|
-
StateComponent.ctorParameters = function () { return []; };
|
|
1559
|
-
StateComponent.propDecorators = {
|
|
1560
|
-
state: [{ type: i0.Input }]
|
|
1561
|
-
};
|
|
1562
|
-
|
|
1563
|
-
var inOutX = animations.trigger('inOutXAnimation', [
|
|
1564
|
-
animations.transition(':enter', [
|
|
1565
|
-
animations.style({ zIndex: -1, transform: 'scaleX(0)', width: 0, opacity: 0 }),
|
|
1566
|
-
animations.animate('.3s ease-out', animations.style({ zIndex: 1, transform: 'scaleX(1)', width: 'auto', opacity: 1 }))
|
|
1567
|
-
]),
|
|
1568
|
-
animations.transition(':leave', [
|
|
1569
|
-
animations.style({ zIndex: 1, transform: 'scaleX(1)', width: 'auto', opacity: 1 }),
|
|
1570
|
-
animations.animate('.3s ease-in', animations.style({ zIndex: -1, transform: 'scaleX(0)', width: 0, opacity: 0 }))
|
|
1571
|
-
])
|
|
1572
|
-
]);
|
|
1573
|
-
|
|
1574
|
-
var LabelComponent = /** @class */ (function () {
|
|
1575
|
-
function LabelComponent() {
|
|
1576
|
-
this.index = 0;
|
|
1577
|
-
this.label = '';
|
|
1578
|
-
this.deleted = false;
|
|
1579
|
-
this.onDeleteLabel = new i0.EventEmitter();
|
|
1580
|
-
}
|
|
1581
|
-
LabelComponent.prototype.deleteLabel = function () {
|
|
1582
|
-
this.deleted = true;
|
|
1583
|
-
this.onDeleteLabel.emit({
|
|
1584
|
-
index: this.index,
|
|
1585
|
-
label: this.label
|
|
1586
|
-
});
|
|
1587
|
-
};
|
|
1588
|
-
return LabelComponent;
|
|
1589
|
-
}());
|
|
1590
|
-
LabelComponent.decorators = [
|
|
1591
|
-
{ type: i0.Component, args: [{
|
|
1592
|
-
selector: 'wac-label',
|
|
1593
|
-
template: "<div *ngIf=\"!deleted\" [@inOutXAnimation] class=\"wac-label\">\n <div class=\"wac-label__wrapper\">\n {{ label }}\n <i class=\"far fa-times\" (click)=\"deleteLabel()\"></i>\n </div>\n</div>\n",
|
|
1594
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1595
|
-
animations: [inOutX]
|
|
1596
|
-
},] }
|
|
1597
|
-
];
|
|
1598
|
-
LabelComponent.ctorParameters = function () { return []; };
|
|
1599
|
-
LabelComponent.propDecorators = {
|
|
1600
|
-
index: [{ type: i0.Input }],
|
|
1601
|
-
label: [{ type: i0.Input }],
|
|
1602
|
-
deleted: [{ type: i0.Input }],
|
|
1603
|
-
onDeleteLabel: [{ type: i0.Output }]
|
|
1604
|
-
};
|
|
1605
|
-
|
|
1606
|
-
var CalendarComponent = /** @class */ (function () {
|
|
1607
|
-
function CalendarComponent() {
|
|
1608
|
-
this.type = 'input';
|
|
1609
|
-
this.options = {
|
|
1610
|
-
displayMode: 'inline',
|
|
1611
|
-
showHeader: false,
|
|
1612
|
-
showFooter: true,
|
|
1613
|
-
showButton: true
|
|
1614
|
-
};
|
|
1615
|
-
this.position = 'bottom';
|
|
1616
|
-
this.dateSelected = new Date();
|
|
1617
|
-
this.typeDate = 'datetime-local';
|
|
1618
|
-
this.noMargin = false;
|
|
1619
|
-
this.selected = new i0.EventEmitter();
|
|
1620
|
-
this.changeData = new i0.EventEmitter();
|
|
1621
|
-
this.open = false;
|
|
1622
|
-
this.startLabel = '';
|
|
1623
|
-
this.endLabel = '';
|
|
1624
|
-
}
|
|
1625
|
-
CalendarComponent.prototype.changeDate = function (event) {
|
|
1626
|
-
this.currentDate = new Date(new Date(event.startDate).setHours(0, 0, 0, 0));
|
|
1627
|
-
this.dateSelected = new Date(new Date(new Date(event.startDate).setHours(0, 0, 0, 0)).getTime() +
|
|
1628
|
-
parseInt(this.currentHours, 0) * 60 * 60 * 1000 +
|
|
1629
|
-
parseInt(this.currentMinutes, 0) * 60000);
|
|
1630
|
-
this.triggerChange({
|
|
1631
|
-
startDate: this.dateSelected,
|
|
1632
|
-
endDate: this.dateSelected
|
|
1633
|
-
});
|
|
1634
|
-
};
|
|
1635
|
-
CalendarComponent.prototype.triggerChange = function (event) {
|
|
1636
|
-
this.changeData.emit(event);
|
|
1637
|
-
};
|
|
1638
|
-
CalendarComponent.prototype.openCalendar = function (value) {
|
|
1639
|
-
if (value === void 0) { value = null; }
|
|
1640
|
-
if (value === 'close') {
|
|
1641
|
-
if (this.open) {
|
|
1642
|
-
this.open = false;
|
|
1643
|
-
}
|
|
1644
|
-
}
|
|
1645
|
-
else {
|
|
1646
|
-
this.open = !this.open;
|
|
1647
|
-
}
|
|
1648
|
-
};
|
|
1649
|
-
CalendarComponent.prototype.ngOnInit = function () {
|
|
1650
|
-
if (this.type === 'edit' && this.label) {
|
|
1651
|
-
var splitLabel = this.label.split('{x}');
|
|
1652
|
-
if (splitLabel.length > 1) {
|
|
1653
|
-
this.startLabel = splitLabel[0];
|
|
1654
|
-
this.endLabel = splitLabel[1];
|
|
1655
|
-
}
|
|
1656
|
-
else {
|
|
1657
|
-
this.startLabel = this.label;
|
|
1658
|
-
}
|
|
1659
|
-
}
|
|
1660
|
-
this.currentHours =
|
|
1661
|
-
new Date(this.dateSelected).getHours() < 10 ? '0' + new Date(this.dateSelected).getHours() : new Date(this.dateSelected).getHours();
|
|
1662
|
-
this.currentMinutes =
|
|
1663
|
-
new Date(this.dateSelected).getMinutes() < 10
|
|
1664
|
-
? '0' + new Date(this.dateSelected).getMinutes()
|
|
1665
|
-
: new Date(this.dateSelected).getMinutes();
|
|
1666
|
-
this.currentDate = new Date(this.dateSelected).setHours(0, 0, 0, 0);
|
|
1667
|
-
if (this.typeDate === 'date') {
|
|
1668
|
-
this.currentHours = '00';
|
|
1669
|
-
this.currentMinutes = '00';
|
|
1670
|
-
}
|
|
1671
|
-
};
|
|
1672
|
-
CalendarComponent.prototype.verifKeyup = function (events) {
|
|
1673
|
-
events.target.value = events.target.value.replace(/\D+/g, '');
|
|
1674
|
-
};
|
|
1675
|
-
CalendarComponent.prototype.verifHours = function (events) {
|
|
1676
|
-
var value = parseInt(events.target.value, 0);
|
|
1677
|
-
events.target.value = this.currentHours = value < 24 ? (value < 10 ? '0' + value : value) : 23;
|
|
1678
|
-
var dateData = new Date(new Date(new Date(this.currentDate).setHours(0, 0, 0, 0)).getTime() +
|
|
1679
|
-
parseInt(this.currentHours, 0) * 60 * 60 * 1000 +
|
|
1680
|
-
parseInt(this.currentMinutes, 0) * 60000);
|
|
1681
|
-
this.dateSelected = dateData;
|
|
1682
|
-
this.triggerChange({
|
|
1683
|
-
startDate: dateData,
|
|
1684
|
-
endDate: dateData
|
|
1685
|
-
});
|
|
1686
|
-
};
|
|
1687
|
-
CalendarComponent.prototype.verifMinutes = function (events) {
|
|
1688
|
-
var value = parseInt(events.target.value, 0);
|
|
1689
|
-
events.target.value = this.currentMinutes = value < 60 ? (value < 10 ? '0' + value : value) : 59;
|
|
1690
|
-
var dateData = new Date(new Date(new Date(this.currentDate).setHours(0, 0, 0, 0)).getTime() +
|
|
1691
|
-
parseInt(this.currentHours, 0) * 60 * 60 * 1000 +
|
|
1692
|
-
parseInt(this.currentMinutes, 0) * 60000);
|
|
1693
|
-
this.dateSelected = dateData;
|
|
1694
|
-
this.triggerChange({
|
|
1695
|
-
startDate: dateData,
|
|
1696
|
-
endDate: dateData
|
|
1697
|
-
});
|
|
1698
|
-
};
|
|
1699
|
-
CalendarComponent.prototype.addHours = function (target) {
|
|
1700
|
-
target.value = this.currentHours =
|
|
1701
|
-
parseInt(target.value, 0) + 1 < 24
|
|
1702
|
-
? parseInt(target.value, 0) + 1 < 10
|
|
1703
|
-
? '0' + (parseInt(target.value, 0) + 1)
|
|
1704
|
-
: parseInt(target.value, 0) + 1
|
|
1705
|
-
: parseInt(target.value, 0) < 10
|
|
1706
|
-
? '0' + parseInt(target.value, 0)
|
|
1707
|
-
: parseInt(target.value, 0);
|
|
1708
|
-
var dateData = new Date(new Date(new Date(this.currentDate).setHours(0, 0, 0, 0)).getTime() +
|
|
1709
|
-
parseInt(this.currentHours, 0) * 60 * 60 * 1000 +
|
|
1710
|
-
parseInt(this.currentMinutes, 0) * 60000);
|
|
1711
|
-
this.dateSelected = dateData;
|
|
1712
|
-
this.triggerChange({
|
|
1713
|
-
startDate: dateData,
|
|
1714
|
-
endDate: dateData
|
|
1715
|
-
});
|
|
1716
|
-
};
|
|
1717
|
-
CalendarComponent.prototype.removeHours = function (target) {
|
|
1718
|
-
target.value = this.currentHours =
|
|
1719
|
-
parseInt(target.value, 0) - 1 > -1
|
|
1720
|
-
? parseInt(target.value, 0) - 1 < 10
|
|
1721
|
-
? '0' + (parseInt(target.value, 0) - 1)
|
|
1722
|
-
: parseInt(target.value, 0) - 1
|
|
1723
|
-
: parseInt(target.value, 0) < 10
|
|
1724
|
-
? '0' + parseInt(target.value, 0)
|
|
1725
|
-
: parseInt(target.value, 0);
|
|
1726
|
-
var dateData = new Date(new Date(new Date(this.currentDate).setHours(0, 0, 0, 0)).getTime() +
|
|
1727
|
-
parseInt(this.currentHours, 0) * 60 * 60 * 1000 +
|
|
1728
|
-
parseInt(this.currentMinutes, 0) * 60000);
|
|
1729
|
-
this.dateSelected = dateData;
|
|
1730
|
-
this.triggerChange({
|
|
1731
|
-
startDate: dateData,
|
|
1732
|
-
endDate: dateData
|
|
1733
|
-
});
|
|
1734
|
-
};
|
|
1735
|
-
CalendarComponent.prototype.addMinutes = function (target) {
|
|
1736
|
-
target.value = this.currentMinutes =
|
|
1737
|
-
parseInt(target.value, 0) + 1 < 60
|
|
1738
|
-
? parseInt(target.value, 0) + 1 < 10
|
|
1739
|
-
? '0' + (parseInt(target.value, 0) + 1)
|
|
1740
|
-
: parseInt(target.value, 0) + 1
|
|
1741
|
-
: parseInt(target.value, 0) < 10
|
|
1742
|
-
? '0' + parseInt(target.value, 0)
|
|
1743
|
-
: parseInt(target.value, 0);
|
|
1744
|
-
var dateData = new Date(new Date(new Date(this.currentDate).setHours(0, 0, 0, 0)).getTime() +
|
|
1745
|
-
parseInt(this.currentHours, 0) * 60 * 60 * 1000 +
|
|
1746
|
-
parseInt(this.currentMinutes, 0) * 60000);
|
|
1747
|
-
this.dateSelected = dateData;
|
|
1748
|
-
this.triggerChange({
|
|
1749
|
-
startDate: dateData,
|
|
1750
|
-
endDate: dateData
|
|
1751
|
-
});
|
|
1752
|
-
};
|
|
1753
|
-
CalendarComponent.prototype.removeMinutes = function (target) {
|
|
1754
|
-
target.value = this.currentMinutes =
|
|
1755
|
-
parseInt(target.value, 0) - 1 > -1
|
|
1756
|
-
? parseInt(target.value, 0) - 1 < 10
|
|
1757
|
-
? '0' + (parseInt(target.value, 0) - 1)
|
|
1758
|
-
: parseInt(target.value, 0) - 1
|
|
1759
|
-
: parseInt(target.value, 0) < 10
|
|
1760
|
-
? '0' + parseInt(target.value, 0)
|
|
1761
|
-
: parseInt(target.value, 0);
|
|
1762
|
-
var dateData = new Date(new Date(new Date(this.currentDate).setHours(0, 0, 0, 0)).getTime() +
|
|
1763
|
-
parseInt(this.currentHours, 0) * 60 * 60 * 1000 +
|
|
1764
|
-
parseInt(this.currentMinutes, 0) * 60000);
|
|
1765
|
-
this.dateSelected = dateData;
|
|
1766
|
-
this.triggerChange({
|
|
1767
|
-
startDate: dateData,
|
|
1768
|
-
endDate: dateData
|
|
1769
|
-
});
|
|
1770
|
-
};
|
|
1771
|
-
return CalendarComponent;
|
|
1772
|
-
}());
|
|
1773
|
-
CalendarComponent.decorators = [
|
|
1774
|
-
{ type: i0.Component, args: [{
|
|
1775
|
-
selector: 'wac-calendar',
|
|
1776
|
-
template: "<div\n class=\"wac-calendar\"\n [ngClass]=\"{\n 'wac-calendar--input': type === 'input',\n 'wac-calendar--edit': type === 'edit',\n 'wac-calendar--select': type === 'select',\n 'wac-calendar--no-margin': noMargin,\n 'wac-calendar--open': open\n }\"\n [zIndexToggle]=\"open\"\n>\n <p class=\"wac-calendar__label\" *ngIf=\"label && (type === 'input' || type === 'select')\" (click)=\"openCalendar()\">{{ label }}</p>\n <p class=\"wac-calendar__startLabel\" *ngIf=\"type === 'edit'\">{{ startLabel }}</p>\n <div class=\"wac-calendar__autoHide\" wzAutoHide (clickOutside)=\"openCalendar('close')\">\n <div class=\"wac-calendar__wrapper\">\n <div class=\"wac-calendar__wrapper__input\" *ngIf=\"type === 'input'\" (click)=\"openCalendar()\">\n <div class=\"wac-calendar__wrapper__input__icon\">\n <i class=\"far fa-calendar-alt\"></i>\n </div>\n <div class=\"wac-calendar__wrapper__input__date\">\n {{ dateSelected | date: 'dd/MM/yyyy' }}\n </div>\n <div class=\"wac-calendar__wrapper__input__time\">\n {{ dateSelected | date: 'HH:mm' }}\n </div>\n </div>\n <div class=\"wac-calendar__wrapper__editInPlace\" *ngIf=\"type === 'edit'\" (click)=\"openCalendar()\">\n <div class=\"wac-calendar__wrapper__editInPlace__icon\">\n <i class=\"fal fa-calendar-alt\"></i>\n </div>\n <div class=\"wac-calendar__wrapper__editInPlace__date\">\n {{ dateSelected | date: 'dd/MM/yyyy HH:mm' }}\n </div>\n </div>\n <div class=\"wac-calendar__wrapper__select\" *ngIf=\"type === 'select'\" (click)=\"openCalendar()\">\n <div class=\"wac-calendar__wrapper__select__icon\">\n <i class=\"fal fa-calendar-alt\"></i>\n </div>\n <div class=\"wac-calendar__wrapper__select__date\">\n {{ dateSelected | date: 'dd/MM/yyyy HH:mm' }}\n </div>\n </div>\n </div>\n <div\n class=\"wac-calendar__absolute\"\n [ngClass]=\"{\n top: position === 'top',\n bottom: position === 'bottom',\n left: position === 'left',\n right: position === 'right',\n 'right-top': position === 'right-top',\n 'right-bottom': position === 'right-bottom',\n 'left-top': position === 'left-top',\n 'left-bottom': position === 'left-bottom',\n 'with-time': typeDate === 'datetime-local' || typeDate === 'datetime'\n }\"\n >\n <nwb-date-picker #datePicker (change)=\"changeDate($event)\" [options]=\"options\">\n <input [nwbDatepickerStart]=\"datePicker\" type=\"date\" [value]=\"dateSelected\" />\n </nwb-date-picker>\n <div class=\"wac-calendar__absolute__time\" *ngIf=\"typeDate === 'datetime-local' || typeDate === 'datetime'\">\n <div class=\"wac-calendar__absolute__time__wrapper\">\n <div class=\"wac-calendar__absolute__time__wrapper__hours\">\n <div class=\"wac-calendar__absolute__time__wrapper__hours__left\">\n <button class=\"wac-calendar__absolute__time__wrapper__hours__btn\" (click)=\"addHours(hours)\">\n <i class=\"fas fa-plus\"></i>\n </button>\n <button class=\"wac-calendar__absolute__time__wrapper__hours__btn\" (click)=\"removeHours(hours)\">\n <i class=\"fas fa-minus\"></i>\n </button>\n </div>\n <div class=\"wac-calendar__absolute__time__wrapper__hours__right\">\n <input #hours type=\"text\" value=\"{{ currentHours }}\" (keyup)=\"verifKeyup($event)\" (blur)=\"verifHours($event)\" />\n </div>\n </div>\n <div class=\"wac-calendar__absolute__time__wrapper__minutes\">\n <div class=\"wac-calendar__absolute__time__wrapper__minutes__left\">\n <input #minutes type=\"text\" value=\"{{ currentMinutes }}\" (keyup)=\"verifKeyup($event)\" (blur)=\"verifMinutes($event)\" />\n </div>\n <div class=\"wac-calendar__absolute__time__wrapper__minutes__right\">\n <button class=\"wac-calendar__absolute__time__wrapper__minutes__btn\" (click)=\"addMinutes(minutes)\">\n <i class=\"fas fa-plus\"></i>\n </button>\n <button class=\"wac-calendar__absolute__time__wrapper__minutes__btn\" (click)=\"removeMinutes(minutes)\">\n <i class=\"fas fa-minus\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <p class=\"wac-calendar__endLabel\" *ngIf=\"type === 'edit'\">{{ endLabel }}</p>\n</div>\n"
|
|
1777
|
-
},] }
|
|
1778
|
-
];
|
|
1779
|
-
CalendarComponent.ctorParameters = function () { return []; };
|
|
1780
|
-
CalendarComponent.propDecorators = {
|
|
1781
|
-
label: [{ type: i0.Input }],
|
|
1782
|
-
type: [{ type: i0.Input }],
|
|
1783
|
-
options: [{ type: i0.Input }],
|
|
1784
|
-
position: [{ type: i0.Input }],
|
|
1785
|
-
dateSelected: [{ type: i0.Input }],
|
|
1786
|
-
typeDate: [{ type: i0.Input }],
|
|
1787
|
-
noMargin: [{ type: i0.Input }],
|
|
1788
|
-
selected: [{ type: i0.Output }],
|
|
1789
|
-
changeData: [{ type: i0.Output }]
|
|
1790
|
-
};
|
|
1791
|
-
|
|
1792
|
-
var WzEditInPlaceComponent = /** @class */ (function () {
|
|
1793
|
-
function WzEditInPlaceComponent() {
|
|
1794
|
-
this.config = {};
|
|
1795
|
-
this.customChange = new i0.EventEmitter();
|
|
1796
|
-
this.objectKeys = Object.keys;
|
|
1797
|
-
this.editing = false;
|
|
1798
|
-
this.onChange = Function.prototype;
|
|
1799
|
-
this.onTouched = Function.prototype;
|
|
1800
|
-
}
|
|
1801
|
-
Object.defineProperty(WzEditInPlaceComponent.prototype, "value", {
|
|
1802
|
-
get: function () {
|
|
1803
|
-
return this.currentValue;
|
|
1804
|
-
},
|
|
1805
|
-
set: function (v) {
|
|
1806
|
-
if (v !== this.currentValue) {
|
|
1807
|
-
this.currentValue = v;
|
|
1808
|
-
}
|
|
1809
|
-
},
|
|
1810
|
-
enumerable: false,
|
|
1811
|
-
configurable: true
|
|
1812
|
-
});
|
|
1813
|
-
WzEditInPlaceComponent.prototype.writeValue = function (value) {
|
|
1814
|
-
if (value !== null) {
|
|
1815
|
-
if (this.config.currency) {
|
|
1816
|
-
this.currentValue = this.parseValueToNumber(value);
|
|
1817
|
-
if (this.config.separator !== '.') {
|
|
1818
|
-
this.currentValue = this.parseValueToSeparator(this.currentValue);
|
|
1819
|
-
}
|
|
1820
|
-
this.currentValue += this.config.currency;
|
|
1821
|
-
}
|
|
1822
|
-
else {
|
|
1823
|
-
this.currentValue = value;
|
|
1824
|
-
}
|
|
1825
|
-
}
|
|
1826
|
-
};
|
|
1827
|
-
WzEditInPlaceComponent.prototype.registerOnChange = function (fn) {
|
|
1828
|
-
this.onChange = fn;
|
|
1829
|
-
};
|
|
1830
|
-
WzEditInPlaceComponent.prototype.registerOnTouched = function (fn) {
|
|
1831
|
-
this.onTouched = fn;
|
|
1832
|
-
};
|
|
1833
|
-
WzEditInPlaceComponent.prototype._setValue = function (v) {
|
|
1834
|
-
if (this.type === 'select') {
|
|
1835
|
-
this.onChange(v);
|
|
1836
|
-
}
|
|
1837
|
-
else if (typeof this.config.currency === 'string') {
|
|
1838
|
-
v = this.parseValueToNumber(v);
|
|
1839
|
-
this.onChange(v);
|
|
1840
|
-
if (this.config.separator !== '.') {
|
|
1841
|
-
v = this.parseValueToSeparator(v);
|
|
1842
|
-
}
|
|
1843
|
-
v = v + this.config.currency;
|
|
1844
|
-
this.customChange.emit(v);
|
|
1845
|
-
}
|
|
1846
|
-
else {
|
|
1847
|
-
this.onChange(v);
|
|
1848
|
-
}
|
|
1849
|
-
this.writeValue(v);
|
|
1850
|
-
this.value = v;
|
|
1851
|
-
};
|
|
1852
|
-
WzEditInPlaceComponent.prototype.ngAfterViewChecked = function () {
|
|
1853
|
-
if (this.input && this.editing) {
|
|
1854
|
-
this.input.nativeElement.focus();
|
|
1855
|
-
if (this.config.selectTextUponClick && this.firstEdit && this.preValue && this.input.nativeElement.value) {
|
|
1856
|
-
this.input.nativeElement.select();
|
|
1857
|
-
this.firstEdit = false;
|
|
1858
|
-
}
|
|
1859
|
-
}
|
|
1860
|
-
this.initialized = true;
|
|
1861
|
-
};
|
|
1862
|
-
WzEditInPlaceComponent.prototype.startEditing = function () {
|
|
1863
|
-
if (!this.editing) {
|
|
1864
|
-
this.editing = true;
|
|
1865
|
-
this.currentValue = this.checkAndRemoveCurrency(this.currentValue);
|
|
1866
|
-
this.firstEdit = true;
|
|
1867
|
-
}
|
|
1868
|
-
};
|
|
1869
|
-
WzEditInPlaceComponent.prototype.edit = function () {
|
|
1870
|
-
this.preValue = this.currentValue;
|
|
1871
|
-
this.editing = true;
|
|
1872
|
-
};
|
|
1873
|
-
WzEditInPlaceComponent.prototype.onSubmit = function () {
|
|
1874
|
-
var _this = this;
|
|
1875
|
-
this.editing = false;
|
|
1876
|
-
if (this.currentValue !== this.preValue) {
|
|
1877
|
-
if (typeof this.config.handler === 'function') {
|
|
1878
|
-
this.isLoading = true;
|
|
1879
|
-
this.config.handler(this.currentValue, this.config.data).subscribe(function (data) {
|
|
1880
|
-
var hasChanged;
|
|
1881
|
-
_this.isLoading = false;
|
|
1882
|
-
if (typeof data !== 'boolean') {
|
|
1883
|
-
_this.currentValue = data.value;
|
|
1884
|
-
hasChanged = data.success;
|
|
1885
|
-
}
|
|
1886
|
-
else {
|
|
1887
|
-
hasChanged = data;
|
|
1888
|
-
}
|
|
1889
|
-
if (hasChanged) {
|
|
1890
|
-
_this._setValue(_this.currentValue);
|
|
1891
|
-
}
|
|
1892
|
-
else {
|
|
1893
|
-
_this._setValue(_this.preValue);
|
|
1894
|
-
}
|
|
1895
|
-
}, function () {
|
|
1896
|
-
_this.isLoading = false;
|
|
1897
|
-
_this._setValue(_this.preValue);
|
|
1898
|
-
});
|
|
1899
|
-
}
|
|
1900
|
-
else {
|
|
1901
|
-
this._setValue(this.currentValue);
|
|
1902
|
-
}
|
|
1903
|
-
}
|
|
1904
|
-
else {
|
|
1905
|
-
if (typeof this.config.currency === 'string') {
|
|
1906
|
-
this.currentValue = this.currentValue + this.config.currency;
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
};
|
|
1910
|
-
WzEditInPlaceComponent.prototype.checkAndRemoveCurrency = function (value) {
|
|
1911
|
-
if (typeof this.config.currency === 'string') {
|
|
1912
|
-
return value.slice(0, -1);
|
|
1913
|
-
}
|
|
1914
|
-
return value;
|
|
1915
|
-
};
|
|
1916
|
-
WzEditInPlaceComponent.prototype.parseValueToNumber = function (value) {
|
|
1917
|
-
if (!isNaN(value) && value !== '') {
|
|
1918
|
-
return parseFloat(value);
|
|
1919
|
-
}
|
|
1920
|
-
if (typeof this.config.currency === 'string') {
|
|
1921
|
-
var indexComma = value.indexOf(',');
|
|
1922
|
-
var indexDot = value.indexOf('.');
|
|
1923
|
-
if (indexComma > 0 && indexDot === -1) {
|
|
1924
|
-
var parsedValue = value.replace(',', '.');
|
|
1925
|
-
if (!isNaN(parsedValue)) {
|
|
1926
|
-
return parseFloat(parsedValue);
|
|
1927
|
-
}
|
|
1928
|
-
}
|
|
1929
|
-
if (indexDot > 0 && indexComma === -1) {
|
|
1930
|
-
if (!isNaN(value)) {
|
|
1931
|
-
return parseFloat(value);
|
|
1932
|
-
}
|
|
1933
|
-
}
|
|
1934
|
-
return 0;
|
|
1935
|
-
}
|
|
1936
|
-
};
|
|
1937
|
-
WzEditInPlaceComponent.prototype.parseValueToSeparator = function (value) {
|
|
1938
|
-
if (typeof this.config.separator === 'string') {
|
|
1939
|
-
value = parseFloat(value).toFixed(2);
|
|
1940
|
-
return value.replace('.', this.config.separator);
|
|
1941
|
-
}
|
|
1942
|
-
return value;
|
|
1943
|
-
};
|
|
1944
|
-
WzEditInPlaceComponent.prototype.ngOnChanges = function (changes) {
|
|
1945
|
-
if (this.initialized) {
|
|
1946
|
-
this.currentValue = this.checkAndRemoveCurrency(this.currentValue) + this.config.currency;
|
|
1947
|
-
this.customChange.emit(this.value);
|
|
1948
|
-
}
|
|
1949
|
-
};
|
|
1950
|
-
WzEditInPlaceComponent.prototype.selectOption = function (event) {
|
|
1951
|
-
this.currentValue = event.target.innerText;
|
|
1952
|
-
this.closeSelect(event);
|
|
1953
|
-
event.stopPropagation();
|
|
1954
|
-
this.customChange.emit(event.target.value);
|
|
1955
|
-
};
|
|
1956
|
-
WzEditInPlaceComponent.prototype.closeSelect = function (event) {
|
|
1957
|
-
this.editing = false;
|
|
1958
|
-
this.isLoading = false;
|
|
1959
|
-
event.stopPropagation();
|
|
1960
|
-
};
|
|
1961
|
-
return WzEditInPlaceComponent;
|
|
1962
|
-
}());
|
|
1963
|
-
WzEditInPlaceComponent.decorators = [
|
|
1964
|
-
{ type: i0.Component, args: [{
|
|
1965
|
-
selector: 'wac-edit-in-place',
|
|
1966
|
-
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",
|
|
1967
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
1968
|
-
providers: [
|
|
1969
|
-
{
|
|
1970
|
-
provide: forms.NG_VALUE_ACCESSOR,
|
|
1971
|
-
useExisting: WzEditInPlaceComponent,
|
|
1972
|
-
multi: true
|
|
1973
|
-
}
|
|
1974
|
-
]
|
|
1975
|
-
},] }
|
|
1976
|
-
];
|
|
1977
|
-
WzEditInPlaceComponent.propDecorators = {
|
|
1978
|
-
type: [{ type: i0.Input }],
|
|
1979
|
-
nwbOptions: [{ type: i0.Input }],
|
|
1980
|
-
config: [{ type: i0.Input }],
|
|
1981
|
-
label: [{ type: i0.Input }],
|
|
1982
|
-
customChange: [{ type: i0.Output }],
|
|
1983
|
-
input: [{ type: i0.ViewChild, args: ['input',] }]
|
|
1984
|
-
};
|
|
1985
|
-
|
|
1986
|
-
var TextAreaComponent = /** @class */ (function () {
|
|
1987
|
-
function TextAreaComponent() {
|
|
1988
|
-
// todo simplify and improve progress bar
|
|
1989
|
-
this.label = '';
|
|
1990
|
-
this.value = '';
|
|
1991
|
-
this.placeholder = '';
|
|
1992
|
-
this.textInfo = null;
|
|
1993
|
-
this.textError = null;
|
|
1994
|
-
this.size = null;
|
|
1995
|
-
this.min = null;
|
|
1996
|
-
this.max = null;
|
|
1997
|
-
this.dynamicSize = false;
|
|
1998
|
-
this.progressBar = false;
|
|
1999
|
-
this.disabled = false;
|
|
2000
|
-
this.id = 'wac-textarea__' +
|
|
2001
|
-
Math.random()
|
|
2002
|
-
.toString(36)
|
|
2003
|
-
.substr(2, 9);
|
|
2004
|
-
}
|
|
2005
|
-
TextAreaComponent.prototype.registerOnChange = function (fn) {
|
|
2006
|
-
this._onChange = fn;
|
|
2007
|
-
};
|
|
2008
|
-
TextAreaComponent.prototype.registerOnTouched = function (fn) {
|
|
2009
|
-
this._onTouched = fn;
|
|
2010
|
-
};
|
|
2011
|
-
TextAreaComponent.prototype.setDisabledState = function (isDisabled) {
|
|
2012
|
-
this.disabled = isDisabled;
|
|
2013
|
-
};
|
|
2014
|
-
TextAreaComponent.prototype.writeValue = function (obj) {
|
|
2015
|
-
this.value = obj;
|
|
2016
|
-
};
|
|
2017
|
-
TextAreaComponent.prototype.onChange = function (value) {
|
|
2018
|
-
if (this._onChange) {
|
|
2019
|
-
this._onChange(value);
|
|
2020
|
-
this.writeValue(value);
|
|
2021
|
-
}
|
|
2022
|
-
};
|
|
2023
|
-
TextAreaComponent.prototype.onBlur = function () {
|
|
2024
|
-
if (this._onTouched) {
|
|
2025
|
-
this._onTouched();
|
|
2026
|
-
}
|
|
2027
|
-
};
|
|
2028
|
-
return TextAreaComponent;
|
|
2029
|
-
}());
|
|
2030
|
-
TextAreaComponent.decorators = [
|
|
2031
|
-
{ type: i0.Component, args: [{
|
|
2032
|
-
selector: 'wac-text-area',
|
|
2033
|
-
template: "<div class=\"field wac-text-area\" [ngClass]=\"{'dynamic': dynamicSize}\">\n <div class=\"field-label is-normal has-text-left\">\n <label class=\"label has-text-weight-normal\" [innerHTML]=\"label\" [for]=\"id\"></label>\n </div>\n <div class=\"field-body\">\n <div class=\"field\">\n <p class=\"control\" [ngClass]=\"{ 'has-icons-right': textError }\">\n <textarea\n class=\"textarea\"\n [id]=\"id\"\n [ngClass]=\"{ 'is-danger': textError, 'has-help-text': textInfo != '' || size }\"\n [placeholder]=\"placeholder\"\n [attr.size]=\"size\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n [disabled]=\"disabled\"\n [autosize]=\"dynamicSize\"\n [onlyGrow]=\"true\"\n [maxlength]=\"maxlength ? maxlength : 524288\"\n ></textarea>\n\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 *ngIf=\"textInfo && (textError === null || textError === '')\"\n class=\"is-size-7 wac-text-area__info text-info\"\n [innerHtml]=\"textInfo\"\n ></span>\n <span *ngIf=\"textError\" class=\"is-size-7 wac-text-area__error has-text-danger\" [innerHtml]=\"textError\"></span>\n <span\n *ngIf=\"size && !progressBar\"\n class=\"is-size-7 wac-text-area__size\"\n [ngClass]=\"value && value.length > size ? 'has-text-danger' : ''\"\n >{{ value ? value.length : 0 }}/{{ size }}</span\n >\n </p>\n <wac-progress-bar *ngIf=\"progressBar && value\" [min]=\"min\" [max]=\"max\" [valueLength]=\"value.length\"></wac-progress-bar>\n </div>\n </div>\n</div>\n",
|
|
2034
|
-
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: TextAreaComponent, multi: true }]
|
|
2035
|
-
},] }
|
|
2036
|
-
];
|
|
2037
|
-
TextAreaComponent.propDecorators = {
|
|
2038
|
-
label: [{ type: i0.Input }],
|
|
2039
|
-
value: [{ type: i0.Input }],
|
|
2040
|
-
placeholder: [{ type: i0.Input }],
|
|
2041
|
-
textInfo: [{ type: i0.Input }],
|
|
2042
|
-
textError: [{ type: i0.Input }],
|
|
2043
|
-
size: [{ type: i0.Input }],
|
|
2044
|
-
min: [{ type: i0.Input }],
|
|
2045
|
-
maxlength: [{ type: i0.Input }],
|
|
2046
|
-
max: [{ type: i0.Input }],
|
|
2047
|
-
dynamicSize: [{ type: i0.Input }],
|
|
2048
|
-
progressBar: [{ type: i0.Input }],
|
|
2049
|
-
disabled: [{ type: i0.Input }]
|
|
2050
|
-
};
|
|
2051
|
-
|
|
2052
|
-
var H1Component = /** @class */ (function () {
|
|
2053
|
-
function H1Component() {
|
|
2054
|
-
this.annotation = '';
|
|
2055
|
-
this.withImg = false;
|
|
2056
|
-
this.center = false;
|
|
2057
|
-
}
|
|
2058
|
-
H1Component.prototype.ngOnInit = function () { };
|
|
2059
|
-
return H1Component;
|
|
2060
|
-
}());
|
|
2061
|
-
H1Component.decorators = [
|
|
2062
|
-
{ type: i0.Component, args: [{
|
|
2063
|
-
selector: 'wac-h1',
|
|
2064
|
-
template: "<h1 class=\"wac-h1\" [ngClass]=\"{'with-img': withImg, 'center': center}\"><ng-content></ng-content><small *ngIf=\"annotation !== ''\">{{ annotation }}</small></h1>\n"
|
|
2065
|
-
},] }
|
|
2066
|
-
];
|
|
2067
|
-
H1Component.ctorParameters = function () { return []; };
|
|
2068
|
-
H1Component.propDecorators = {
|
|
2069
|
-
annotation: [{ type: i0.Input }],
|
|
2070
|
-
withImg: [{ type: i0.Input }],
|
|
2071
|
-
center: [{ type: i0.Input }]
|
|
2072
|
-
};
|
|
2073
|
-
|
|
2074
|
-
var H2Component = /** @class */ (function () {
|
|
2075
|
-
function H2Component() {
|
|
2076
|
-
}
|
|
2077
|
-
H2Component.prototype.ngOnInit = function () { };
|
|
2078
|
-
return H2Component;
|
|
2079
|
-
}());
|
|
2080
|
-
H2Component.decorators = [
|
|
2081
|
-
{ type: i0.Component, args: [{
|
|
2082
|
-
selector: 'wac-h2',
|
|
2083
|
-
template: "<h2 class=\"wac-h2\"><ng-content></ng-content></h2>\n"
|
|
2084
|
-
},] }
|
|
2085
|
-
];
|
|
2086
|
-
H2Component.ctorParameters = function () { return []; };
|
|
2087
|
-
|
|
2088
|
-
var H3Component = /** @class */ (function () {
|
|
2089
|
-
function H3Component() {
|
|
2090
|
-
this.grey = false;
|
|
2091
|
-
}
|
|
2092
|
-
H3Component.prototype.ngOnInit = function () { };
|
|
2093
|
-
return H3Component;
|
|
2094
|
-
}());
|
|
2095
|
-
H3Component.decorators = [
|
|
2096
|
-
{ type: i0.Component, args: [{
|
|
2097
|
-
selector: 'wac-h3',
|
|
2098
|
-
template: "<h3 class=\"wac-h3\" [ngClass]=\"{ grey: grey }\"><ng-content></ng-content></h3>\n"
|
|
2099
|
-
},] }
|
|
2100
|
-
];
|
|
2101
|
-
H3Component.ctorParameters = function () { return []; };
|
|
2102
|
-
H3Component.propDecorators = {
|
|
2103
|
-
grey: [{ type: i0.Input }]
|
|
2104
|
-
};
|
|
2105
|
-
|
|
2106
|
-
var HeaderPageComponent = /** @class */ (function () {
|
|
2107
|
-
function HeaderPageComponent() {
|
|
2108
|
-
this.withImg = false;
|
|
2109
|
-
this.center = false;
|
|
2110
|
-
}
|
|
2111
|
-
HeaderPageComponent.prototype.ngOnInit = function () { };
|
|
2112
|
-
return HeaderPageComponent;
|
|
2113
|
-
}());
|
|
2114
|
-
HeaderPageComponent.decorators = [
|
|
2115
|
-
{ type: i0.Component, args: [{
|
|
2116
|
-
selector: 'wac-header-page',
|
|
2117
|
-
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"
|
|
2118
|
-
},] }
|
|
2119
|
-
];
|
|
2120
|
-
HeaderPageComponent.ctorParameters = function () { return []; };
|
|
2121
|
-
HeaderPageComponent.propDecorators = {
|
|
2122
|
-
title: [{ type: i0.Input }],
|
|
2123
|
-
linkBack: [{ type: i0.Input }],
|
|
2124
|
-
withImg: [{ type: i0.Input }],
|
|
2125
|
-
center: [{ type: i0.Input }]
|
|
2126
|
-
};
|
|
2127
|
-
|
|
2128
|
-
var InputComponent = /** @class */ (function () {
|
|
2129
|
-
function InputComponent() {
|
|
2130
|
-
this.label = '';
|
|
2131
|
-
this.value = '';
|
|
2132
|
-
this.type = 'text';
|
|
2133
|
-
this.placeholder = '';
|
|
2134
|
-
this.textInfo = null;
|
|
2135
|
-
this.textError = null;
|
|
2136
|
-
this.size = null;
|
|
2137
|
-
this.isNumber = null;
|
|
2138
|
-
this.withoutBlock = false;
|
|
2139
|
-
this.icon = '';
|
|
2140
|
-
this.big = false;
|
|
2141
|
-
this.medium = false;
|
|
2142
|
-
this.boldLabel = 'false';
|
|
2143
|
-
this.min = null;
|
|
2144
|
-
this.max = null;
|
|
2145
|
-
this.disableMargin = false;
|
|
2146
|
-
this.textPrepend = null;
|
|
2147
|
-
this.textAppend = null;
|
|
2148
|
-
this.progressBar = false;
|
|
2149
|
-
this.extraClasses = '';
|
|
2150
|
-
this.keyPreventDefault = [];
|
|
2151
|
-
this.showTooltip = false;
|
|
2152
|
-
this.textTooltip = '';
|
|
2153
|
-
this.iconTooltip = '';
|
|
2154
|
-
this.urlTooltip = '';
|
|
2155
|
-
this.linkTooltip = '';
|
|
2156
|
-
this.padding = false;
|
|
2157
|
-
this.disabled = false;
|
|
2158
|
-
this.indication = false;
|
|
2159
|
-
this.success = false;
|
|
2160
|
-
this.indicationLeft = false;
|
|
2161
|
-
this.keypressEnter = new i0.EventEmitter();
|
|
2162
|
-
this.KEYPRESS_ENTER = "Enter";
|
|
2163
|
-
this.id = 'wz-input_' +
|
|
2164
|
-
Math.random()
|
|
2165
|
-
.toString(36)
|
|
2166
|
-
.substr(2, 9);
|
|
2167
|
-
}
|
|
2168
|
-
InputComponent.prototype.registerOnChange = function (fn) {
|
|
2169
|
-
this._onChange = fn;
|
|
2170
|
-
};
|
|
2171
|
-
InputComponent.prototype.registerOnTouched = function (fn) {
|
|
2172
|
-
this._onTouched = fn;
|
|
2173
|
-
};
|
|
2174
|
-
InputComponent.prototype.setDisabledState = function (isDisabled) {
|
|
2175
|
-
this.disabled = isDisabled;
|
|
2176
|
-
};
|
|
2177
|
-
InputComponent.prototype.writeValue = function (obj) {
|
|
2178
|
-
this.value = obj;
|
|
2179
|
-
};
|
|
2180
|
-
InputComponent.prototype.onChange = function (value) {
|
|
2181
|
-
if (this._onChange) {
|
|
2182
|
-
this._onChange(value);
|
|
2183
|
-
}
|
|
2184
|
-
};
|
|
2185
|
-
InputComponent.prototype.onBlur = function () {
|
|
2186
|
-
if (this._onTouched) {
|
|
2187
|
-
this._onTouched();
|
|
2188
|
-
}
|
|
2189
|
-
};
|
|
2190
|
-
InputComponent.prototype.checkNumberValue = function (value) {
|
|
2191
|
-
if (this.min && this.min > value) {
|
|
2192
|
-
this.value = this.min;
|
|
2193
|
-
}
|
|
2194
|
-
if (this.max && this.max < value) {
|
|
2195
|
-
this.value = this.max;
|
|
2196
|
-
}
|
|
2197
|
-
};
|
|
2198
|
-
InputComponent.prototype.onFocusOut = function () {
|
|
2199
|
-
if (this.type === 'number') {
|
|
2200
|
-
this.checkNumberValue(this.value);
|
|
2201
|
-
}
|
|
2202
|
-
};
|
|
2203
|
-
InputComponent.prototype.keyPress = function (event) {
|
|
2204
|
-
if (this.keyPreventDefault.includes(event.key)) {
|
|
2205
|
-
event.preventDefault();
|
|
2206
|
-
}
|
|
2207
|
-
if (event.key === this.KEYPRESS_ENTER) {
|
|
2208
|
-
this.keypressEnter.next(true);
|
|
2209
|
-
}
|
|
2210
|
-
};
|
|
2211
|
-
return InputComponent;
|
|
2212
|
-
}());
|
|
2213
|
-
InputComponent.decorators = [
|
|
2214
|
-
{ type: i0.Component, args: [{
|
|
2215
|
-
selector: 'wac-input',
|
|
2216
|
-
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",
|
|
2217
|
-
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: InputComponent, multi: true }]
|
|
2218
|
-
},] }
|
|
2219
|
-
];
|
|
2220
|
-
InputComponent.propDecorators = {
|
|
2221
|
-
label: [{ type: i0.Input }],
|
|
2222
|
-
value: [{ type: i0.Input }],
|
|
2223
|
-
type: [{ type: i0.Input }],
|
|
2224
|
-
placeholder: [{ type: i0.Input }],
|
|
2225
|
-
textInfo: [{ type: i0.Input }],
|
|
2226
|
-
textError: [{ type: i0.Input }],
|
|
2227
|
-
size: [{ type: i0.Input }],
|
|
2228
|
-
isNumber: [{ type: i0.Input }],
|
|
2229
|
-
withoutBlock: [{ type: i0.Input }],
|
|
2230
|
-
icon: [{ type: i0.Input }],
|
|
2231
|
-
big: [{ type: i0.Input }],
|
|
2232
|
-
medium: [{ type: i0.Input }],
|
|
2233
|
-
boldLabel: [{ type: i0.Input }],
|
|
2234
|
-
min: [{ type: i0.Input }],
|
|
2235
|
-
max: [{ type: i0.Input }],
|
|
2236
|
-
disableMargin: [{ type: i0.Input }],
|
|
2237
|
-
textPrepend: [{ type: i0.Input }],
|
|
2238
|
-
textAppend: [{ type: i0.Input }],
|
|
2239
|
-
progressBar: [{ type: i0.Input }],
|
|
2240
|
-
extraClasses: [{ type: i0.Input }],
|
|
2241
|
-
keyPreventDefault: [{ type: i0.Input }],
|
|
2242
|
-
showTooltip: [{ type: i0.Input }],
|
|
2243
|
-
textTooltip: [{ type: i0.Input }],
|
|
2244
|
-
iconTooltip: [{ type: i0.Input }],
|
|
2245
|
-
urlTooltip: [{ type: i0.Input }],
|
|
2246
|
-
linkTooltip: [{ type: i0.Input }],
|
|
2247
|
-
padding: [{ type: i0.Input }],
|
|
2248
|
-
disabled: [{ type: i0.Input }],
|
|
2249
|
-
indication: [{ type: i0.Input }],
|
|
2250
|
-
success: [{ type: i0.Input }],
|
|
2251
|
-
indicationLeft: [{ type: i0.Input }],
|
|
2252
|
-
keypressEnter: [{ type: i0.Output }]
|
|
2253
|
-
};
|
|
2254
|
-
|
|
2255
|
-
var LinkComponent = /** @class */ (function () {
|
|
2256
|
-
function LinkComponent(renderer2) {
|
|
2257
|
-
this.renderer2 = renderer2;
|
|
2258
|
-
this.target = '_self';
|
|
2259
|
-
}
|
|
2260
|
-
Object.defineProperty(LinkComponent.prototype, "href", {
|
|
2261
|
-
get: function () {
|
|
2262
|
-
return this._link;
|
|
2263
|
-
},
|
|
2264
|
-
set: function (link) {
|
|
2265
|
-
this._link = link;
|
|
2266
|
-
this.setAttributesLink();
|
|
2267
|
-
},
|
|
2268
|
-
enumerable: false,
|
|
2269
|
-
configurable: true
|
|
2270
|
-
});
|
|
2271
|
-
LinkComponent.prototype.ngOnInit = function () { };
|
|
2272
|
-
LinkComponent.prototype.ngAfterViewInit = function () {
|
|
2273
|
-
this.setAttributesLink();
|
|
2274
|
-
};
|
|
2275
|
-
LinkComponent.prototype.setAttributesLink = function () {
|
|
2276
|
-
if (!this.linkComponent) {
|
|
2277
|
-
return;
|
|
2278
|
-
}
|
|
2279
|
-
if (this.href) {
|
|
2280
|
-
this.renderer2.setAttribute(this.linkComponent.nativeElement, "href", this.href);
|
|
2281
|
-
this.renderer2.setAttribute(this.linkComponent.nativeElement, "target", this.target);
|
|
2282
|
-
}
|
|
2283
|
-
else {
|
|
2284
|
-
this.renderer2.removeAttribute(this.linkComponent.nativeElement, "href");
|
|
2285
|
-
this.renderer2.removeAttribute(this.linkComponent.nativeElement, "target");
|
|
2286
|
-
}
|
|
2287
|
-
};
|
|
2288
|
-
return LinkComponent;
|
|
2289
|
-
}());
|
|
2290
|
-
LinkComponent.decorators = [
|
|
2291
|
-
{ type: i0.Component, args: [{
|
|
2292
|
-
selector: 'wac-link',
|
|
2293
|
-
template: "<a #linkComponent class=\"wac-link\" [ngClass]=\"{ class: class }\" [id]=\"{ id: id }\"><ng-content></ng-content></a>\n"
|
|
2294
|
-
},] }
|
|
2295
|
-
];
|
|
2296
|
-
LinkComponent.ctorParameters = function () { return [
|
|
2297
|
-
{ type: i0.Renderer2 }
|
|
2298
|
-
]; };
|
|
2299
|
-
LinkComponent.propDecorators = {
|
|
2300
|
-
href: [{ type: i0.Input }],
|
|
2301
|
-
target: [{ type: i0.Input }],
|
|
2302
|
-
id: [{ type: i0.Input }],
|
|
2303
|
-
class: [{ type: i0.Input }],
|
|
2304
|
-
linkComponent: [{ type: i0.ViewChild, args: ['linkComponent',] }]
|
|
2305
|
-
};
|
|
2306
|
-
|
|
2307
|
-
var ProgressBarComponent = /** @class */ (function () {
|
|
2308
|
-
function ProgressBarComponent(translateService) {
|
|
2309
|
-
this.translateService = translateService;
|
|
2310
|
-
this.valueLength = null;
|
|
2311
|
-
this.min = null;
|
|
2312
|
-
this.max = null;
|
|
2313
|
-
}
|
|
2314
|
-
ProgressBarComponent.prototype.progressBarClass = function (spanNumber) {
|
|
2315
|
-
if (spanNumber === void 0) { spanNumber = -1; }
|
|
2316
|
-
var length = this.valueLength;
|
|
2317
|
-
var min = this.min;
|
|
2318
|
-
var max = this.max;
|
|
2319
|
-
if (spanNumber === 1) {
|
|
2320
|
-
return {
|
|
2321
|
-
'is-danger': length > max,
|
|
2322
|
-
'is-success': length >= min && length <= max
|
|
2323
|
-
};
|
|
2324
|
-
}
|
|
2325
|
-
else if (spanNumber === 2) {
|
|
2326
|
-
return {
|
|
2327
|
-
'is-success': length === max,
|
|
2328
|
-
'is-danger': length > max
|
|
2329
|
-
};
|
|
2330
|
-
}
|
|
2331
|
-
else {
|
|
2332
|
-
return {
|
|
2333
|
-
'is-warning': length < min,
|
|
2334
|
-
'is-danger': length > max,
|
|
2335
|
-
'is-success': length >= min && length <= max
|
|
2336
|
-
};
|
|
2337
|
-
}
|
|
2338
|
-
};
|
|
2339
|
-
ProgressBarComponent.prototype.progressBarSpanPosition = function (index) {
|
|
2340
|
-
var min = this.min;
|
|
2341
|
-
var max = this.max;
|
|
2342
|
-
var maxSize = this.progressBarGetMaxSize(max);
|
|
2343
|
-
var successMin = (min / maxSize) * 100;
|
|
2344
|
-
var successMax = (max / maxSize) * 100;
|
|
2345
|
-
return index === 1 ? successMin : successMax;
|
|
2346
|
-
};
|
|
2347
|
-
ProgressBarComponent.prototype.progressBarGetMaxSize = function (max) {
|
|
2348
|
-
return max + max / 4;
|
|
2349
|
-
};
|
|
2350
|
-
ProgressBarComponent.prototype.progressBarGetTextInfo = function () {
|
|
2351
|
-
var length = this.valueLength;
|
|
2352
|
-
var min = this.min;
|
|
2353
|
-
var max = this.max;
|
|
2354
|
-
if (length < min) {
|
|
2355
|
-
return this.translateService.instant('wac.input.progressbar.information.too.short');
|
|
2356
|
-
}
|
|
2357
|
-
else if (length > max) {
|
|
2358
|
-
return this.translateService.instant('wac.input.progressbar.information.too.long');
|
|
2359
|
-
}
|
|
2360
|
-
else {
|
|
2361
|
-
return this.translateService.instant('wac.input.progressbar.information.good');
|
|
2362
|
-
}
|
|
2363
|
-
};
|
|
2364
|
-
return ProgressBarComponent;
|
|
2365
|
-
}());
|
|
2366
|
-
ProgressBarComponent.decorators = [
|
|
2367
|
-
{ type: i0.Component, args: [{
|
|
2368
|
-
selector: 'wac-progress-bar',
|
|
2369
|
-
template: "<div class=\"wac-progressBarContent\">\n <div class=\"progressBar\">\n <progress class=\"progress\" [ngClass]=\"progressBarClass()\" [max]=\"progressBarGetMaxSize(max)\" [value]=\"valueLength\"></progress>\n <span [ngClass]=\"progressBarClass(1)\" [ngStyle]=\"{ 'left.%': progressBarSpanPosition(1) }\"></span>\n <span [ngClass]=\"progressBarClass(2)\" [ngStyle]=\"{ 'left.%': progressBarSpanPosition(2) }\"></span>\n </div>\n <div class=\"size\">\n <span class=\"is-size-7 wac-input__size\">\n <span *ngIf=\"valueLength\">\n <span [ngClass]=\"progressBarClass()\">{{ progressBarGetTextInfo() }}</span> -\n </span>\n <strong>{{ valueLength }}</strong> / {{ max }}\n </span>\n </div>\n</div>\n"
|
|
2370
|
-
},] }
|
|
2371
|
-
];
|
|
2372
|
-
ProgressBarComponent.ctorParameters = function () { return [
|
|
2373
|
-
{ type: core.TranslateService }
|
|
2374
|
-
]; };
|
|
2375
|
-
ProgressBarComponent.propDecorators = {
|
|
2376
|
-
valueLength: [{ type: i0.Input }],
|
|
2377
|
-
min: [{ type: i0.Input }],
|
|
2378
|
-
max: [{ type: i0.Input }]
|
|
2379
|
-
};
|
|
2380
|
-
|
|
2381
|
-
var SwitchComponent = /** @class */ (function () {
|
|
2382
|
-
function SwitchComponent() {
|
|
2383
|
-
// todo add ngmodel and review texts display (textState is mandaoty in order to display textStateEnable and textStateDisable)
|
|
2384
|
-
this.value = false;
|
|
2385
|
-
this.textState = false;
|
|
2386
|
-
this.textStateEnable = '';
|
|
2387
|
-
this.textStateDisable = '';
|
|
2388
|
-
this.showInput = false;
|
|
2389
|
-
this.danger = false;
|
|
2390
|
-
this.whiteSpace = false;
|
|
2391
|
-
this.switchChange = new i0.EventEmitter(); // todo set emitted type
|
|
2392
|
-
this.changeInput = new i0.EventEmitter(); // todo set emitted type
|
|
2393
|
-
}
|
|
2394
|
-
SwitchComponent.prototype.ngOnInit = function () {
|
|
2395
|
-
this.id = 'switch-' + Math.floor(Math.random() * Math.floor(1000));
|
|
2396
|
-
};
|
|
2397
|
-
SwitchComponent.prototype.changeValue = function (event) {
|
|
2398
|
-
this.switchChange.emit(event.target.checked);
|
|
2399
|
-
};
|
|
2400
|
-
SwitchComponent.prototype.triggerInput = function () {
|
|
2401
|
-
this.changeInput.emit(this.valueInput);
|
|
2402
|
-
};
|
|
2403
|
-
return SwitchComponent;
|
|
2404
|
-
}());
|
|
2405
|
-
SwitchComponent.decorators = [
|
|
2406
|
-
{ type: i0.Component, args: [{
|
|
2407
|
-
selector: 'wac-switch',
|
|
2408
|
-
template: "<div class=\"wac-switch\">\n <input type=\"checkbox\" [checked]=\"value\" (change)=\"changeValue($event)\" [id]=\"id\" [ngClass]=\"{ danger: danger }\"/>\n <label [for]=\"id\" class=\"wac-switch__label\">\n <span class=\"wac-switch__label__text\"\n ><ng-content></ng-content\n ><span\n *ngIf=\"textState\"\n [ngStyle]=\"{'whiteSpace': whiteSpace ? 'nowrap' :'normal'}\"\n >{{ textState }} <strong class=\"disable\" *ngIf=\"textStateDisable\">{{ textStateDisable }}</strong>\n <strong class=\"enable\" *ngIf=\"textStateEnable\">{{ textStateEnable }}</strong></span\n ></span\n >\n </label>\n</div>\n<div class=\"wac-show-input\" *ngIf=\"showInput && value\">\n <input [placeholder]=\"placholderInput\" type=\"text\" [(ngModel)]=\"valueInput\" (blur)=\"triggerInput()\" />\n</div>\n"
|
|
2409
|
-
},] }
|
|
2410
|
-
];
|
|
2411
|
-
SwitchComponent.ctorParameters = function () { return []; };
|
|
2412
|
-
SwitchComponent.propDecorators = {
|
|
2413
|
-
value: [{ type: i0.Input }],
|
|
2414
|
-
textState: [{ type: i0.Input }],
|
|
2415
|
-
textStateEnable: [{ type: i0.Input }],
|
|
2416
|
-
textStateDisable: [{ type: i0.Input }],
|
|
2417
|
-
showInput: [{ type: i0.Input }],
|
|
2418
|
-
placholderInput: [{ type: i0.Input }],
|
|
2419
|
-
danger: [{ type: i0.Input }],
|
|
2420
|
-
whiteSpace: [{ type: i0.Input }],
|
|
2421
|
-
switchChange: [{ type: i0.Output }],
|
|
2422
|
-
changeInput: [{ type: i0.Output }]
|
|
2423
|
-
};
|
|
2424
|
-
|
|
2425
|
-
var TooltipComponent = /** @class */ (function () {
|
|
2426
|
-
function TooltipComponent() {
|
|
2427
|
-
this.tooltipText = '';
|
|
2428
|
-
this.tooltipLink = '';
|
|
2429
|
-
this.tooltipUrl = '#';
|
|
2430
|
-
}
|
|
2431
|
-
TooltipComponent.prototype.ngOnInit = function () {
|
|
2432
|
-
if (this.tooltipIcon === '') {
|
|
2433
|
-
this.tooltipIcon = 'fas fa-info-circle';
|
|
2434
|
-
}
|
|
2435
|
-
};
|
|
2436
|
-
return TooltipComponent;
|
|
2437
|
-
}());
|
|
2438
|
-
TooltipComponent.decorators = [
|
|
2439
|
-
{ type: i0.Component, args: [{
|
|
2440
|
-
selector: 'wac-tooltip',
|
|
2441
|
-
template: "<span class=\"wac-tooltip\">\n <i [class]=\"tooltipIcon\"></i>\n <span class=\"tooltip-content\"\n >{{ tooltipText }}\n <span *ngIf=\"tooltipUrl\"\n ><a [href]=\"tooltipUrl\" target=\"_blank\">{{ tooltipLink }}</a></span\n >\n </span>\n</span>\n"
|
|
2442
|
-
},] }
|
|
2443
|
-
];
|
|
2444
|
-
TooltipComponent.ctorParameters = function () { return []; };
|
|
2445
|
-
TooltipComponent.propDecorators = {
|
|
2446
|
-
tooltipIcon: [{ type: i0.Input }],
|
|
2447
|
-
tooltipText: [{ type: i0.Input }],
|
|
2448
|
-
tooltipLink: [{ type: i0.Input }],
|
|
2449
|
-
tooltipUrl: [{ type: i0.Input }]
|
|
2450
|
-
};
|
|
2451
|
-
|
|
2452
|
-
var AlertComponent = /** @class */ (function () {
|
|
2453
|
-
function AlertComponent() {
|
|
2454
|
-
this.icon = true;
|
|
2455
|
-
this.warning = false;
|
|
2456
|
-
this.success = false;
|
|
2457
|
-
this.alert = false;
|
|
2458
|
-
this.iconClass = 'fas fa-info';
|
|
2459
|
-
}
|
|
2460
|
-
AlertComponent.prototype.ngOnInit = function () { };
|
|
2461
|
-
return AlertComponent;
|
|
2462
|
-
}());
|
|
2463
|
-
AlertComponent.decorators = [
|
|
2464
|
-
{ type: i0.Component, args: [{
|
|
2465
|
-
selector: 'wac-alert',
|
|
2466
|
-
template: "<div class=\"wac-alert\" [ngClass]=\"{ success: success, warning: warning, alert: alert }\">\n <i *ngIf=\"icon\" [ngClass]=\"iconClass\"></i>\n <p><ng-content></ng-content></p> <!-- ! Refacto : Remove p tag, attention \u00E0 wizi-admin -->\n</div>\n"
|
|
2467
|
-
},] }
|
|
2468
|
-
];
|
|
2469
|
-
AlertComponent.ctorParameters = function () { return []; };
|
|
2470
|
-
AlertComponent.propDecorators = {
|
|
2471
|
-
icon: [{ type: i0.Input }],
|
|
2472
|
-
warning: [{ type: i0.Input }],
|
|
2473
|
-
success: [{ type: i0.Input }],
|
|
2474
|
-
alert: [{ type: i0.Input }],
|
|
2475
|
-
iconClass: [{ type: i0.Input }]
|
|
2476
|
-
};
|
|
2477
|
-
|
|
2478
|
-
var TextComponent = /** @class */ (function () {
|
|
2479
|
-
function TextComponent() {
|
|
2480
|
-
}
|
|
2481
|
-
TextComponent.prototype.ngOnInit = function () { };
|
|
2482
|
-
return TextComponent;
|
|
2483
|
-
}());
|
|
2484
|
-
TextComponent.decorators = [
|
|
2485
|
-
{ type: i0.Component, args: [{
|
|
2486
|
-
selector: 'wac-text',
|
|
2487
|
-
template: "<div class=\"wac-text\" [class]=\"textClass\">\n <p><ng-content></ng-content></p>\n</div>\n"
|
|
2488
|
-
},] }
|
|
2489
|
-
];
|
|
2490
|
-
TextComponent.ctorParameters = function () { return []; };
|
|
2491
|
-
TextComponent.propDecorators = {
|
|
2492
|
-
textClass: [{ type: i0.Input }]
|
|
2493
|
-
};
|
|
2494
|
-
|
|
2495
|
-
var PagniationIsLastPage = /** @class */ (function () {
|
|
2496
|
-
function PagniationIsLastPage() {
|
|
2497
|
-
}
|
|
2498
|
-
/**
|
|
2499
|
-
* Return true, if the current page is the last page. Otherwise, return false.
|
|
2500
|
-
* @param currentPage
|
|
2501
|
-
* @param totalItems
|
|
2502
|
-
* @param itemsPerPage
|
|
2503
|
-
*/
|
|
2504
|
-
PagniationIsLastPage.prototype.transform = function (currentPage, totalItems, itemsPerPage) {
|
|
2505
|
-
if (!(currentPage >= 0 && totalItems >= 0 && itemsPerPage >= 0)) {
|
|
2506
|
-
throw new Error('currentPage or totalItems or itemsPerPage is/are missing in PagniationIsLastPage pipe.');
|
|
2507
|
-
}
|
|
2508
|
-
return currentPage === Math.ceil(totalItems / itemsPerPage);
|
|
2509
|
-
};
|
|
2510
|
-
return PagniationIsLastPage;
|
|
2511
|
-
}());
|
|
2512
|
-
PagniationIsLastPage.decorators = [
|
|
2513
|
-
{ type: i0.Pipe, args: [{
|
|
2514
|
-
name: 'IsLastPage'
|
|
2515
|
-
},] }
|
|
2516
|
-
];
|
|
2517
|
-
|
|
2518
|
-
var PaginationComponent = /** @class */ (function () {
|
|
2519
|
-
function PaginationComponent() {
|
|
2520
|
-
this.pageChange = new i0.EventEmitter();
|
|
2521
|
-
}
|
|
2522
|
-
Object.defineProperty(PaginationComponent.prototype, "pagination", {
|
|
2523
|
-
get: function () {
|
|
2524
|
-
return this._pagination;
|
|
2525
|
-
},
|
|
2526
|
-
set: function (pagination) {
|
|
2527
|
-
this._pagination = pagination;
|
|
2528
|
-
},
|
|
2529
|
-
enumerable: false,
|
|
2530
|
-
configurable: true
|
|
2531
|
-
});
|
|
2532
|
-
PaginationComponent.prototype.decrementPage = function () {
|
|
2533
|
-
if (this.pagination.currentPage <= 1) {
|
|
2534
|
-
return;
|
|
2535
|
-
}
|
|
2536
|
-
this.pagination.currentPage--;
|
|
2537
|
-
this.pageChange.emit(this.pagination);
|
|
2538
|
-
};
|
|
2539
|
-
PaginationComponent.prototype.incrementPage = function () {
|
|
2540
|
-
var isLastPage = new PagniationIsLastPage().transform(this.pagination.currentPage, this.pagination.totalItems, this.pagination.itemsPerPage);
|
|
2541
|
-
if (isLastPage) {
|
|
2542
|
-
return;
|
|
2543
|
-
}
|
|
2544
|
-
this.pagination.currentPage++;
|
|
2545
|
-
this.pageChange.emit(this.pagination);
|
|
2546
|
-
};
|
|
2547
|
-
PaginationComponent.prototype.onGotoPageChange = function (event) {
|
|
2548
|
-
this.pagination.currentPage = parseInt(event.target.value);
|
|
2549
|
-
this.pageChange.emit(this.pagination);
|
|
2550
|
-
};
|
|
2551
|
-
return PaginationComponent;
|
|
2552
|
-
}());
|
|
2553
|
-
PaginationComponent.decorators = [
|
|
2554
|
-
{ type: i0.Component, args: [{
|
|
2555
|
-
selector: 'wac-pagination',
|
|
2556
|
-
template: "<div class=\"wac-pagination\" *ngIf=\"pagination && pagination.itemsPerPage\">\n <div class=\"wac-pagination__wrapper\">\n <div class=\"wac-pagination__wrapper__page\">\n <p>{{ 'wac.PaginationComponent.page' | translate }}</p>\n\n <select name=\"page\" (change)=\"onGotoPageChange($event)\">\n <ng-container *ngFor=\"let pageIndex of pagination.totalItems | ArrayTotalPages: pagination.itemsPerPage\">\n <option [selected]=\"pageIndex === pagination.currentPage\" [value]=\"pageIndex\">\n {{ pageIndex }}\n </option>\n </ng-container>\n </select>\n </div>\n\n <div class=\"wac-pagination__wrapper__elements\">\n <p>{{ pagination.currentPage | customPagniationText: pagination.totalItems:pagination.itemsPerPage | async}}</p>\n </div>\n\n <div class=\"wac-pagination__wrapper__arrows\">\n <div\n (click)=\"decrementPage()\"\n class=\"wac-pagination__wrapper__arrows__arrow wac-pagination__wrapper__arrows__arrow--left\"\n [ngClass]=\"{ 'wac-pagination__wrapper__arrows__arrow--disabled': pagination.currentPage === 1 }\"\n >\n <span class=\"wac-pagination__wrapper__arrows__arrow__icon\"></span>\n </div>\n <div\n (click)=\"incrementPage()\"\n class=\"wac-pagination__wrapper__arrows__arrow wac-pagination__wrapper__arrows__arrow--right\"\n [ngClass]=\"{\n 'wac-pagination__wrapper__arrows__arrow--disabled':\n pagination.currentPage | IsLastPage: pagination.totalItems:pagination.itemsPerPage\n }\"\n >\n <span class=\"wac-pagination__wrapper__arrows__arrow__icon\"></span>\n </div>\n </div>\n </div>\n</div>\n"
|
|
2557
|
-
},] }
|
|
2558
|
-
];
|
|
2559
|
-
PaginationComponent.ctorParameters = function () { return []; };
|
|
2560
|
-
PaginationComponent.propDecorators = {
|
|
2561
|
-
pagination: [{ type: i0.Input }],
|
|
2562
|
-
pageChange: [{ type: i0.Output }]
|
|
2563
|
-
};
|
|
2564
|
-
|
|
2565
|
-
var PagniationArrayTotalPages = /** @class */ (function () {
|
|
2566
|
-
function PagniationArrayTotalPages() {
|
|
2567
|
-
}
|
|
2568
|
-
/**
|
|
2569
|
-
* Return an incremental array corresponding with the number page
|
|
2570
|
-
* [ 1, 2, 3 ..., last page number ]
|
|
2571
|
-
* @param totalItems
|
|
2572
|
-
* @param itemsPerPage
|
|
2573
|
-
*/
|
|
2574
|
-
PagniationArrayTotalPages.prototype.transform = function (totalItems, itemsPerPage) {
|
|
2575
|
-
if (!(totalItems >= 0 && itemsPerPage >= 0)) {
|
|
2576
|
-
throw new Error('totalItems or itemsPerPage missing in ArrayTotalPages pipe.');
|
|
2577
|
-
}
|
|
2578
|
-
var arrayLength = Math.ceil(totalItems / itemsPerPage);
|
|
2579
|
-
return Array.apply(null, { length: arrayLength })
|
|
2580
|
-
.map(Number.call, Number)
|
|
2581
|
-
.map(function (x) { return x + 1; });
|
|
2582
|
-
};
|
|
2583
|
-
return PagniationArrayTotalPages;
|
|
2584
|
-
}());
|
|
2585
|
-
PagniationArrayTotalPages.decorators = [
|
|
2586
|
-
{ type: i0.Pipe, args: [{
|
|
2587
|
-
name: 'ArrayTotalPages'
|
|
2588
|
-
},] }
|
|
2589
|
-
];
|
|
2590
|
-
|
|
2591
|
-
var PagniationText = /** @class */ (function () {
|
|
2592
|
-
function PagniationText(translateService) {
|
|
2593
|
-
this.translateService = translateService;
|
|
2594
|
-
}
|
|
2595
|
-
/**
|
|
2596
|
-
* Update pagination text if at least one entrie change
|
|
2597
|
-
* @param currentPage
|
|
2598
|
-
* @param totalItems
|
|
2599
|
-
* @param itemsPerPage
|
|
2600
|
-
*/
|
|
2601
|
-
PagniationText.prototype.transform = function (currentPage, totalItems, itemsPerPage) {
|
|
2602
|
-
var currentItemsLow = 0, currentItemsHigh = 0;
|
|
2603
|
-
if (totalItems) {
|
|
2604
|
-
currentItemsLow = (parseInt(currentPage) - 1) * parseInt(itemsPerPage) + 1;
|
|
2605
|
-
currentItemsHigh = parseInt(currentPage) * parseInt(itemsPerPage);
|
|
2606
|
-
}
|
|
2607
|
-
if (currentItemsHigh > totalItems) {
|
|
2608
|
-
currentItemsHigh = totalItems;
|
|
2609
|
-
}
|
|
2610
|
-
return this.translateService.get('wac.PaginationComponent.on', { low: currentItemsLow, high: currentItemsHigh, total: totalItems });
|
|
2611
|
-
};
|
|
2612
|
-
return PagniationText;
|
|
2613
|
-
}());
|
|
2614
|
-
PagniationText.decorators = [
|
|
2615
|
-
{ type: i0.Pipe, args: [{
|
|
2616
|
-
name: 'customPagniationText'
|
|
2617
|
-
},] }
|
|
2618
|
-
];
|
|
2619
|
-
PagniationText.ctorParameters = function () { return [
|
|
2620
|
-
{ type: core.TranslateService }
|
|
2621
|
-
]; };
|
|
2622
|
-
|
|
2623
|
-
var pipes = [PagniationArrayTotalPages, PagniationIsLastPage, PagniationText];
|
|
2624
|
-
var PaginationModule = /** @class */ (function () {
|
|
2625
|
-
function PaginationModule() {
|
|
2626
|
-
}
|
|
2627
|
-
return PaginationModule;
|
|
2628
|
-
}());
|
|
2629
|
-
PaginationModule.decorators = [
|
|
2630
|
-
{ type: i0.NgModule, args: [{
|
|
2631
|
-
imports: [
|
|
2632
|
-
common.CommonModule,
|
|
2633
|
-
forms.FormsModule,
|
|
2634
|
-
core.TranslateModule
|
|
2635
|
-
],
|
|
2636
|
-
exports: [PaginationComponent],
|
|
2637
|
-
declarations: __spread([PaginationComponent], pipes),
|
|
2638
|
-
providers: [],
|
|
2639
|
-
},] }
|
|
2640
|
-
];
|
|
2641
|
-
|
|
2642
|
-
var CheckboxModule = /** @class */ (function () {
|
|
2643
|
-
function CheckboxModule() {
|
|
2644
|
-
}
|
|
2645
|
-
return CheckboxModule;
|
|
2646
|
-
}());
|
|
2647
|
-
CheckboxModule.decorators = [
|
|
2648
|
-
{ type: i0.NgModule, args: [{
|
|
2649
|
-
imports: [
|
|
2650
|
-
common.CommonModule,
|
|
2651
|
-
forms.FormsModule,
|
|
2652
|
-
],
|
|
2653
|
-
exports: [CheckboxComponent],
|
|
2654
|
-
declarations: [CheckboxComponent],
|
|
2655
|
-
providers: [],
|
|
2656
|
-
},] }
|
|
2657
|
-
];
|
|
2658
|
-
|
|
2659
|
-
var ProgressBarModule = /** @class */ (function () {
|
|
2660
|
-
function ProgressBarModule() {
|
|
2661
|
-
}
|
|
2662
|
-
return ProgressBarModule;
|
|
2663
|
-
}());
|
|
2664
|
-
ProgressBarModule.decorators = [
|
|
2665
|
-
{ type: i0.NgModule, args: [{
|
|
2666
|
-
imports: [
|
|
2667
|
-
common.CommonModule,
|
|
2668
|
-
forms.FormsModule,
|
|
2669
|
-
],
|
|
2670
|
-
exports: [ProgressBarComponent],
|
|
2671
|
-
declarations: [ProgressBarComponent],
|
|
2672
|
-
providers: [],
|
|
2673
|
-
},] }
|
|
2674
|
-
];
|
|
2675
|
-
|
|
2676
|
-
var TooltipModule = /** @class */ (function () {
|
|
2677
|
-
function TooltipModule() {
|
|
2678
|
-
}
|
|
2679
|
-
return TooltipModule;
|
|
2680
|
-
}());
|
|
2681
|
-
TooltipModule.decorators = [
|
|
2682
|
-
{ type: i0.NgModule, args: [{
|
|
2683
|
-
imports: [
|
|
2684
|
-
common.CommonModule,
|
|
2685
|
-
forms.FormsModule
|
|
2686
|
-
],
|
|
2687
|
-
exports: [TooltipComponent],
|
|
2688
|
-
declarations: [TooltipComponent],
|
|
2689
|
-
providers: [],
|
|
2690
|
-
},] }
|
|
2691
|
-
];
|
|
2692
|
-
|
|
2693
|
-
var InputModule = /** @class */ (function () {
|
|
2694
|
-
function InputModule() {
|
|
2695
|
-
}
|
|
2696
|
-
return InputModule;
|
|
2697
|
-
}());
|
|
2698
|
-
InputModule.decorators = [
|
|
2699
|
-
{ type: i0.NgModule, args: [{
|
|
2700
|
-
imports: [
|
|
2701
|
-
common.CommonModule,
|
|
2702
|
-
forms.FormsModule,
|
|
2703
|
-
SharedDirectives,
|
|
2704
|
-
TooltipModule,
|
|
2705
|
-
ProgressBarModule
|
|
2706
|
-
],
|
|
2707
|
-
exports: [InputComponent],
|
|
2708
|
-
declarations: [InputComponent],
|
|
2709
|
-
providers: [],
|
|
2710
|
-
},] }
|
|
2711
|
-
];
|
|
2712
|
-
|
|
2713
|
-
var InputSearchModule = /** @class */ (function () {
|
|
2714
|
-
function InputSearchModule() {
|
|
2715
|
-
}
|
|
2716
|
-
return InputSearchModule;
|
|
2717
|
-
}());
|
|
2718
|
-
InputSearchModule.decorators = [
|
|
2719
|
-
{ type: i0.NgModule, args: [{
|
|
2720
|
-
imports: [
|
|
2721
|
-
common.CommonModule,
|
|
2722
|
-
forms.FormsModule,
|
|
2723
|
-
InputModule,
|
|
2724
|
-
SharedDirectives
|
|
2725
|
-
],
|
|
2726
|
-
exports: [InputSearchComponent],
|
|
2727
|
-
declarations: [InputSearchComponent],
|
|
2728
|
-
providers: [],
|
|
2729
|
-
},] }
|
|
2730
|
-
];
|
|
2731
|
-
|
|
2732
|
-
var LoaderModule = /** @class */ (function () {
|
|
2733
|
-
function LoaderModule() {
|
|
2734
|
-
}
|
|
2735
|
-
return LoaderModule;
|
|
2736
|
-
}());
|
|
2737
|
-
LoaderModule.decorators = [
|
|
2738
|
-
{ type: i0.NgModule, args: [{
|
|
2739
|
-
imports: [
|
|
2740
|
-
common.CommonModule,
|
|
2741
|
-
forms.FormsModule,
|
|
2742
|
-
],
|
|
2743
|
-
exports: [LoaderComponent],
|
|
2744
|
-
declarations: [LoaderComponent],
|
|
2745
|
-
providers: [],
|
|
2746
|
-
},] }
|
|
2747
|
-
];
|
|
2748
|
-
|
|
2749
|
-
var TableColumn = /** @class */ (function () {
|
|
2750
|
-
function TableColumn(currentCell, renderer, document) {
|
|
2751
|
-
this.currentCell = currentCell;
|
|
2752
|
-
this.renderer = renderer;
|
|
2753
|
-
this.document = document;
|
|
2754
|
-
this.centerCellValue = ['left', 'center', 'right'];
|
|
2755
|
-
}
|
|
2756
|
-
TableColumn.prototype.ngAfterViewInit = function () {
|
|
2757
|
-
this.applyCustomStylesOnCell();
|
|
2758
|
-
};
|
|
2759
|
-
TableColumn.prototype.applyCustomStylesOnCell = function () {
|
|
2760
|
-
this.currentCell.nativeElement.style.flexGrow = typeof this.columnSize !== 'undefined' ? this.columnSize : '1';
|
|
2761
|
-
this.renderer.addClass(this.currentCell.nativeElement, 'wac-table__body__line__cell');
|
|
2762
|
-
if (this.centerCell) {
|
|
2763
|
-
if (this.centerCellValue.indexOf(this.centerCell) === -1) {
|
|
2764
|
-
throw 'Error : The centerCell directive has no matched value. The value must be one of the following : left, center, right.';
|
|
2765
|
-
}
|
|
2766
|
-
var className = 'wac-table__body__line__cell--center' + '--' + this.centerCell;
|
|
2767
|
-
this.renderer.addClass(this.currentCell.nativeElement, className);
|
|
2768
|
-
}
|
|
2769
|
-
};
|
|
2770
|
-
return TableColumn;
|
|
2771
|
-
}());
|
|
2772
|
-
TableColumn.decorators = [
|
|
2773
|
-
{ type: i0.Directive, args: [{
|
|
2774
|
-
selector: '[tableColumn]'
|
|
2775
|
-
},] }
|
|
2776
|
-
];
|
|
2777
|
-
TableColumn.ctorParameters = function () { return [
|
|
2778
|
-
{ type: i0.ElementRef },
|
|
2779
|
-
{ type: i0.Renderer2 },
|
|
2780
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] }
|
|
2781
|
-
]; };
|
|
2782
|
-
TableColumn.propDecorators = {
|
|
2783
|
-
columnSize: [{ type: i0.Input, args: ['columnSize',] }],
|
|
2784
|
-
centerCell: [{ type: i0.Input, args: ['centerCell',] }]
|
|
2785
|
-
};
|
|
2786
|
-
|
|
2787
|
-
var TableColumnHeader = /** @class */ (function () {
|
|
2788
|
-
function TableColumnHeader(currentCell, renderer, document, filtersTableService) {
|
|
2789
|
-
this.currentCell = currentCell;
|
|
2790
|
-
this.renderer = renderer;
|
|
2791
|
-
this.document = document;
|
|
2792
|
-
this.filtersTableService = filtersTableService;
|
|
2793
|
-
this._headerName = '';
|
|
2794
|
-
this.filterRouting = false; // Optional. Set to true to use Filter Routing.
|
|
2795
|
-
this.onSortChange = new i0.EventEmitter(); // Emit the sort value (true, false, undefuned) of the current sort icon when clicking
|
|
2796
|
-
this.tableFiltersChange = new i0.EventEmitter();
|
|
2797
|
-
this.centerCellValue = ['left', 'center', 'right'];
|
|
2798
|
-
this.subscriptions = [];
|
|
2799
|
-
}
|
|
2800
|
-
Object.defineProperty(TableColumnHeader.prototype, "headerName", {
|
|
2801
|
-
get: function () {
|
|
2802
|
-
return this._headerName;
|
|
2803
|
-
},
|
|
2804
|
-
set: function (value) {
|
|
2805
|
-
this._headerName = value;
|
|
2806
|
-
this.setHeaderName();
|
|
2807
|
-
},
|
|
2808
|
-
enumerable: false,
|
|
2809
|
-
configurable: true
|
|
2810
|
-
});
|
|
2811
|
-
TableColumnHeader.prototype.ngOnInit = function () {
|
|
2812
|
-
if (this.tableName && this.sortName) {
|
|
2813
|
-
if (this.filterRouting) {
|
|
2814
|
-
this.handleSortRouting();
|
|
2815
|
-
}
|
|
2816
|
-
else {
|
|
2817
|
-
this.handleSortBasic();
|
|
2818
|
-
}
|
|
2819
|
-
}
|
|
2820
|
-
};
|
|
2821
|
-
TableColumnHeader.prototype.ngAfterViewInit = function () {
|
|
2822
|
-
this.applyCustomStylesOnCell();
|
|
2823
|
-
this.renderHeaderColumn();
|
|
2824
|
-
};
|
|
2825
|
-
TableColumnHeader.prototype.handleSortRouting = function () {
|
|
2826
|
-
var _this = this;
|
|
2827
|
-
this.filterGroup = this.filtersTableService.getTableFilterGroup(this.tableName);
|
|
2828
|
-
var filterGroupChangeSub = this.filterGroup.valuesChange$.subscribe(function (filters) {
|
|
2829
|
-
if (!filters || !filters.length) {
|
|
2830
|
-
return;
|
|
2831
|
-
}
|
|
2832
|
-
var filterSort = filters.filter(function (filter) { return filter.key === 'sort'; })[0];
|
|
2833
|
-
if (_this.sortName !== filterSort.value) {
|
|
2834
|
-
_this.resetSortIcon();
|
|
2835
|
-
}
|
|
2836
|
-
});
|
|
2837
|
-
this.subscriptions.push(filterGroupChangeSub);
|
|
2838
|
-
};
|
|
2839
|
-
TableColumnHeader.prototype.handleSortBasic = function () {
|
|
2840
|
-
var _this = this;
|
|
2841
|
-
var sortChangeSub = this.filtersTableService.getSortChangeListner().subscribe(function (sort) {
|
|
2842
|
-
if (_this.tableName === sort.dataTableName && _this.sortName !== sort.sortName) {
|
|
2843
|
-
// Reset the current sort icon
|
|
2844
|
-
_this.resetSortIcon();
|
|
2845
|
-
}
|
|
2846
|
-
});
|
|
2847
|
-
this.subscriptions.push(sortChangeSub);
|
|
2848
|
-
};
|
|
2849
|
-
TableColumnHeader.prototype.resetSortIcon = function () {
|
|
2850
|
-
// Replace current icon with default icon
|
|
2851
|
-
this.contentHeader.className = this.contentHeader.className.replace(this.getCurrentSortIcon(), 'idle');
|
|
2852
|
-
};
|
|
2853
|
-
TableColumnHeader.prototype.applyCustomStylesOnCell = function () {
|
|
2854
|
-
this.currentCell.nativeElement.style.flexGrow = typeof this.columnSize !== 'undefined' ? this.columnSize : '1';
|
|
2855
|
-
this.renderer.addClass(this.currentCell.nativeElement, 'wac-table__head__cell');
|
|
2856
|
-
if (this.centerCell) {
|
|
2857
|
-
if (this.centerCellValue.indexOf(this.centerCell) === -1) {
|
|
2858
|
-
throw 'Error : The centerCell directive has no matched value. The value must be one of the following : left, center, right.';
|
|
2859
|
-
}
|
|
2860
|
-
var className = 'wac-table__head__cell--center' + '--' + this.centerCell;
|
|
2861
|
-
this.renderer.addClass(this.currentCell.nativeElement, className);
|
|
2862
|
-
}
|
|
2863
|
-
};
|
|
2864
|
-
TableColumnHeader.prototype.renderHeaderColumn = function () {
|
|
2865
|
-
this.createHeaderContent();
|
|
2866
|
-
this.renderer.appendChild(this.currentCell.nativeElement, this.contentHeader);
|
|
2867
|
-
};
|
|
2868
|
-
TableColumnHeader.prototype.createHeaderContent = function () {
|
|
2869
|
-
this.contentHeader = document.createElement('a');
|
|
2870
|
-
this.contentHeader.className = 'wac-table__head__cell__search';
|
|
2871
|
-
this.setHeaderName();
|
|
2872
|
-
if (this.tableName && this.sortName) {
|
|
2873
|
-
this.handleSort();
|
|
2874
|
-
}
|
|
2875
|
-
};
|
|
2876
|
-
TableColumnHeader.prototype.setHeaderName = function () {
|
|
2877
|
-
if (!this.contentHeader) {
|
|
2878
|
-
return;
|
|
2879
|
-
}
|
|
2880
|
-
this.contentHeader.innerHTML = this.headerName;
|
|
2881
|
-
};
|
|
2882
|
-
TableColumnHeader.prototype.handleSort = function () {
|
|
2883
|
-
var _this = this;
|
|
2884
|
-
// Set icon in the header column cell
|
|
2885
|
-
this.contentHeader.className += ' wac-table__head__cell__search--' + this.getInitialSortIcon();
|
|
2886
|
-
// On click on the content header, change the icon and emit event
|
|
2887
|
-
this.renderer.listen(this.contentHeader, 'click', function () {
|
|
2888
|
-
var currentIcon = _this.getCurrentSortIcon();
|
|
2889
|
-
var newIcon;
|
|
2890
|
-
var newSort, newOrder;
|
|
2891
|
-
switch (currentIcon) {
|
|
2892
|
-
case 'idle':
|
|
2893
|
-
newIcon = 'up';
|
|
2894
|
-
newSort = _this.sortName;
|
|
2895
|
-
newOrder = true;
|
|
2896
|
-
break;
|
|
2897
|
-
case 'up':
|
|
2898
|
-
newIcon = 'down';
|
|
2899
|
-
newSort = _this.sortName;
|
|
2900
|
-
newOrder = false;
|
|
2901
|
-
break;
|
|
2902
|
-
case 'down':
|
|
2903
|
-
newIcon = 'idle';
|
|
2904
|
-
break;
|
|
2905
|
-
default:
|
|
2906
|
-
newIcon = 'idle';
|
|
2907
|
-
break;
|
|
2908
|
-
}
|
|
2909
|
-
// Replace the icon
|
|
2910
|
-
_this.contentHeader.className = _this.contentHeader.className.replace(currentIcon, newIcon);
|
|
2911
|
-
_this.emitEvents(newSort, newOrder);
|
|
2912
|
-
});
|
|
2913
|
-
};
|
|
2914
|
-
TableColumnHeader.prototype.getInitialSortIcon = function () {
|
|
2915
|
-
if (!this.filterRouting) {
|
|
2916
|
-
return 'idle';
|
|
2917
|
-
}
|
|
2918
|
-
// Get Initial Sort Icon for Routing Filter
|
|
2919
|
-
var initialSortIcon = 'idle';
|
|
2920
|
-
if (this.filterGroup.get('sort') === this.sortName) {
|
|
2921
|
-
initialSortIcon = this.filterGroup.get('order') == 'true' ? 'up' : 'down';
|
|
2922
|
-
}
|
|
2923
|
-
return initialSortIcon;
|
|
2924
|
-
};
|
|
2925
|
-
TableColumnHeader.prototype.getCurrentSortIcon = function () {
|
|
2926
|
-
var regexp = /wac-table__head__cell__search--(?<icon>\w+)/;
|
|
2927
|
-
var groups = regexp.exec(this.contentHeader.className).groups;
|
|
2928
|
-
return groups.icon;
|
|
2929
|
-
};
|
|
2930
|
-
TableColumnHeader.prototype.emitEvents = function (newSort, newOrder) {
|
|
2931
|
-
if (this.filterRouting) {
|
|
2932
|
-
// Will send the filter routing value has changes event
|
|
2933
|
-
this.filterGroup.setValues({
|
|
2934
|
-
sort: newSort,
|
|
2935
|
-
order: newOrder,
|
|
2936
|
-
currentPage: 1
|
|
2937
|
-
});
|
|
2938
|
-
}
|
|
2939
|
-
else {
|
|
2940
|
-
// Send the event sort change
|
|
2941
|
-
this.filtersTableService.emitSortChange(this.tableName, this.sortName, newOrder);
|
|
2942
|
-
}
|
|
2943
|
-
if (this.tableFilters) {
|
|
2944
|
-
this.tableFilters.sort = this.sortName;
|
|
2945
|
-
this.tableFilters.order = newOrder;
|
|
2946
|
-
this.tableFilters.currentPage = 1;
|
|
2947
|
-
this.tableFiltersChange.emit(this.tableFilters);
|
|
2948
|
-
}
|
|
2949
|
-
this.onSortChange.emit(newOrder);
|
|
2950
|
-
};
|
|
2951
|
-
TableColumnHeader.prototype.ngOnDestroy = function () {
|
|
2952
|
-
this.subscriptions.forEach(function (subscription) {
|
|
2953
|
-
subscription.unsubscribe();
|
|
2954
|
-
});
|
|
2955
|
-
};
|
|
2956
|
-
return TableColumnHeader;
|
|
2957
|
-
}());
|
|
2958
|
-
TableColumnHeader.decorators = [
|
|
2959
|
-
{ type: i0.Directive, args: [{
|
|
2960
|
-
// The selector has the same name as the headerCell selector in table.component.html
|
|
2961
|
-
selector: '[headerCell]'
|
|
2962
|
-
},] }
|
|
2963
|
-
];
|
|
2964
|
-
TableColumnHeader.ctorParameters = function () { return [
|
|
2965
|
-
{ type: i0.ElementRef },
|
|
2966
|
-
{ type: i0.Renderer2 },
|
|
2967
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: [common.DOCUMENT,] }] },
|
|
2968
|
-
{ type: FiltersTableService }
|
|
2969
|
-
]; };
|
|
2970
|
-
TableColumnHeader.propDecorators = {
|
|
2971
|
-
headerName: [{ type: i0.Input, args: ['headerName',] }],
|
|
2972
|
-
columnSize: [{ type: i0.Input, args: ['columnSize',] }],
|
|
2973
|
-
filterRouting: [{ type: i0.Input, args: ['filterRouting',] }],
|
|
2974
|
-
tableName: [{ type: i0.Input, args: ['tableName',] }],
|
|
2975
|
-
sortName: [{ type: i0.Input, args: ['sortName',] }],
|
|
2976
|
-
centerCell: [{ type: i0.Input, args: ['centerCell',] }],
|
|
2977
|
-
onSortChange: [{ type: i0.Output }],
|
|
2978
|
-
tableFilters: [{ type: i0.Input }],
|
|
2979
|
-
tableFiltersChange: [{ type: i0.Output }]
|
|
2980
|
-
};
|
|
2981
|
-
|
|
2982
|
-
var directives$1 = [TableColumn, CheckBoxRow, TableColumnHeader, TableRow,];
|
|
2983
|
-
var TableModule = /** @class */ (function () {
|
|
2984
|
-
function TableModule() {
|
|
2985
|
-
}
|
|
2986
|
-
return TableModule;
|
|
2987
|
-
}());
|
|
2988
|
-
TableModule.decorators = [
|
|
2989
|
-
{ type: i0.NgModule, args: [{
|
|
2990
|
-
imports: [
|
|
2991
|
-
common.CommonModule,
|
|
2992
|
-
forms.FormsModule,
|
|
2993
|
-
InputSearchModule,
|
|
2994
|
-
LoaderModule,
|
|
2995
|
-
CheckboxModule,
|
|
2996
|
-
PaginationModule
|
|
2997
|
-
],
|
|
2998
|
-
exports: __spread([TableComponent], directives$1),
|
|
2999
|
-
declarations: __spread([TableComponent], directives$1),
|
|
3000
|
-
providers: [],
|
|
3001
|
-
},] }
|
|
3002
|
-
];
|
|
3003
|
-
|
|
3004
|
-
var UploadComponent = /** @class */ (function () {
|
|
3005
|
-
function UploadComponent() {
|
|
3006
|
-
this.label = 'Choisir les images à importer';
|
|
3007
|
-
this.type = 'button';
|
|
3008
|
-
this.icon = 'far fa-images';
|
|
3009
|
-
this.image = 'assets/angular-components/images/upload/icon_picture.svg';
|
|
3010
|
-
this.labelImage = 'Glisser-déposer votre image ici';
|
|
3011
|
-
this.open = new i0.EventEmitter();
|
|
3012
|
-
}
|
|
3013
|
-
UploadComponent.prototype.ngOnInit = function () { };
|
|
3014
|
-
UploadComponent.prototype.triggerEvent = function (event) {
|
|
3015
|
-
this.open.emit(event);
|
|
3016
|
-
};
|
|
3017
|
-
return UploadComponent;
|
|
3018
|
-
}());
|
|
3019
|
-
UploadComponent.decorators = [
|
|
3020
|
-
{ type: i0.Component, args: [{
|
|
3021
|
-
selector: 'wac-upload',
|
|
3022
|
-
template: "<div class=\"wac-upload\" [ngClass]=\"{ portrait: type === 'portrait', landscape: type === 'landscape' }\">\n <div class=\"wac-upload__wrapper\">\n <div *ngIf=\"(type === 'portrait' || type === 'landscape') && image\" class=\"wac-upload__wrapper__visual\">\n <img [src]=\"image\" />\n <strong [innerHTML]=\"labelImage\"></strong>\n </div>\n <span *ngIf=\"(type === 'portrait' || type === 'landscape') && image\">ou</span>\n <button (click)=\"triggerEvent($event)\">\n <span *ngIf=\"icon\"><i [classList]=\"icon\"></i></span>\n <span [innerHTML]=\"label\"></span>\n </button>\n </div>\n</div>\n"
|
|
3023
|
-
},] }
|
|
3024
|
-
];
|
|
3025
|
-
UploadComponent.ctorParameters = function () { return []; };
|
|
3026
|
-
UploadComponent.propDecorators = {
|
|
3027
|
-
label: [{ type: i0.Input }],
|
|
3028
|
-
type: [{ type: i0.Input }],
|
|
3029
|
-
icon: [{ type: i0.Input }],
|
|
3030
|
-
image: [{ type: i0.Input }],
|
|
3031
|
-
labelImage: [{ type: i0.Input }],
|
|
3032
|
-
open: [{ type: i0.Output }]
|
|
3033
|
-
};
|
|
3034
|
-
|
|
3035
|
-
var H4Component = /** @class */ (function () {
|
|
3036
|
-
function H4Component() {
|
|
3037
|
-
this.grey = false;
|
|
3038
|
-
}
|
|
3039
|
-
H4Component.prototype.ngOnInit = function () { };
|
|
3040
|
-
return H4Component;
|
|
3041
|
-
}());
|
|
3042
|
-
H4Component.decorators = [
|
|
3043
|
-
{ type: i0.Component, args: [{
|
|
3044
|
-
selector: 'wac-h4',
|
|
3045
|
-
template: "<h4 class=\"wac-h4\" [ngClass]=\"{ grey: grey }\"><ng-content></ng-content></h4>\n"
|
|
3046
|
-
},] }
|
|
3047
|
-
];
|
|
3048
|
-
H4Component.ctorParameters = function () { return []; };
|
|
3049
|
-
H4Component.propDecorators = {
|
|
3050
|
-
grey: [{ type: i0.Input }]
|
|
3051
|
-
};
|
|
3052
|
-
|
|
3053
|
-
var SelectInTextComponent = /** @class */ (function () {
|
|
3054
|
-
function SelectInTextComponent() {
|
|
3055
|
-
this.type = 'default';
|
|
3056
|
-
this.alwaysOpen = false;
|
|
3057
|
-
this.openCategories = false;
|
|
3058
|
-
this.currentLabel = '';
|
|
3059
|
-
this.currentLabelIcon = '';
|
|
3060
|
-
this.maxWidth = '100%';
|
|
3061
|
-
this.selectValue = new i0.EventEmitter();
|
|
3062
|
-
this.clickOnCallToAction = new i0.EventEmitter();
|
|
3063
|
-
}
|
|
3064
|
-
Object.defineProperty(SelectInTextComponent.prototype, "items", {
|
|
3065
|
-
get: function () {
|
|
3066
|
-
return this._items;
|
|
3067
|
-
},
|
|
3068
|
-
set: function (items) {
|
|
3069
|
-
this._items = items;
|
|
3070
|
-
this.setInitialValues();
|
|
3071
|
-
},
|
|
3072
|
-
enumerable: false,
|
|
3073
|
-
configurable: true
|
|
3074
|
-
});
|
|
3075
|
-
SelectInTextComponent.prototype.ngOnInit = function () {
|
|
3076
|
-
this.currentLabel = this.placeholder;
|
|
3077
|
-
this.setInitialValues();
|
|
3078
|
-
};
|
|
3079
|
-
SelectInTextComponent.prototype.setInitialValues = function () {
|
|
3080
|
-
if (!this.items.length) {
|
|
3081
|
-
return;
|
|
3082
|
-
}
|
|
3083
|
-
var itemSelected = this.getItemSelected();
|
|
3084
|
-
this.setCurrentItem(itemSelected);
|
|
3085
|
-
};
|
|
3086
|
-
SelectInTextComponent.prototype.onClose = function () {
|
|
3087
|
-
this.openCategories = false;
|
|
3088
|
-
};
|
|
3089
|
-
SelectInTextComponent.prototype.customTB = function (item, index) {
|
|
3090
|
-
return item.id + "-" + index;
|
|
3091
|
-
};
|
|
3092
|
-
SelectInTextComponent.prototype.onSelectItem = function (index) {
|
|
3093
|
-
this.unselectAll();
|
|
3094
|
-
var itemSelected = this.items[index];
|
|
3095
|
-
this.setCurrentItem(itemSelected);
|
|
3096
|
-
this.selectValue.emit(index);
|
|
3097
|
-
};
|
|
3098
|
-
SelectInTextComponent.prototype.onClickCallToAction = function () {
|
|
3099
|
-
this.clickOnCallToAction.emit(this.callToAction.value);
|
|
3100
|
-
};
|
|
3101
|
-
SelectInTextComponent.prototype.getItemSelected = function () {
|
|
3102
|
-
var itemSelected = null;
|
|
3103
|
-
this.items.forEach(function (item) {
|
|
3104
|
-
if (!item.selected) {
|
|
3105
|
-
return;
|
|
3106
|
-
}
|
|
3107
|
-
itemSelected = item;
|
|
3108
|
-
});
|
|
3109
|
-
return itemSelected;
|
|
3110
|
-
};
|
|
3111
|
-
SelectInTextComponent.prototype.setCurrentItem = function (itemSelected) {
|
|
3112
|
-
if (!itemSelected) {
|
|
3113
|
-
return;
|
|
3114
|
-
}
|
|
3115
|
-
itemSelected.selected = true;
|
|
3116
|
-
this.currentLabel = itemSelected.name;
|
|
3117
|
-
this.currentLabelIcon = itemSelected.icon;
|
|
3118
|
-
};
|
|
3119
|
-
SelectInTextComponent.prototype.unselectAll = function () {
|
|
3120
|
-
this.items.forEach(function (item) { return item.selected = false; });
|
|
3121
|
-
};
|
|
3122
|
-
return SelectInTextComponent;
|
|
3123
|
-
}());
|
|
3124
|
-
SelectInTextComponent.decorators = [
|
|
3125
|
-
{ type: i0.Component, args: [{
|
|
3126
|
-
selector: 'wac-select-in-text',
|
|
3127
|
-
template: "<div class=\"wac-select-in-text\" wzAutoHide (clickOutside)=\"onClose()\" [ngStyle]=\"{ 'max-width': maxWidth }\" [zIndexToggle]=\"openCategories\">\n <div class=\"wac-select-in-text__prepend\" [innerHTML]=\"preText\" *ngIf=\"preText\"></div>\n <div #current class=\"wac-select-in-text__current\" (click)=\"openCategories = !openCategories\">\n <span>{{ currentLabel }}</span>\n <div\n class=\"wac-select-in-text__content\"\n [ngClass]=\"{ hidden: !openCategories && !alwaysOpen, open: type === 'open' }\"\n [ngStyle]=\"{ 'max-width': maxWidthItems }\"\n >\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\" *ngIf=\"items.length > 0\">\n <div class=\"wac-select-in-text__content__item\" *ngFor=\"let item of items; trackBy: customTB; let index = index;\">\n <div [ngClass]=\"{ selected: item.selected }\" (click)=\"onSelectItem(index)\">\n <span class=\"icon\" [innerHTML]=\"item.icon\" *ngIf=\"item.icon\"></span>{{ item.name }}\n </div>\n </div>\n </perfect-scrollbar>\n </div>\n </div>\n <div class=\"wac-select-in-text__after\" [innerHTML]=\"postText\" *ngIf=\"postText\"></div>\n</div>\n"
|
|
3128
|
-
},] }
|
|
3129
|
-
];
|
|
3130
|
-
SelectInTextComponent.ctorParameters = function () { return []; };
|
|
3131
|
-
SelectInTextComponent.propDecorators = {
|
|
3132
|
-
items: [{ type: i0.Input }],
|
|
3133
|
-
placeholder: [{ type: i0.Input }],
|
|
3134
|
-
label: [{ type: i0.Input }],
|
|
3135
|
-
maxWidthItems: [{ type: i0.Input }],
|
|
3136
|
-
type: [{ type: i0.Input }],
|
|
3137
|
-
callToAction: [{ type: i0.Input }],
|
|
3138
|
-
preText: [{ type: i0.Input }],
|
|
3139
|
-
postText: [{ type: i0.Input }],
|
|
3140
|
-
alwaysOpen: [{ type: i0.Input }],
|
|
3141
|
-
maxWidth: [{ type: i0.Input }],
|
|
3142
|
-
selectValue: [{ type: i0.Output }],
|
|
3143
|
-
clickOnCallToAction: [{ type: i0.Output }]
|
|
3144
|
-
};
|
|
3145
|
-
|
|
3146
|
-
var SelectComponent = /** @class */ (function () {
|
|
3147
|
-
function SelectComponent(translateService) {
|
|
3148
|
-
this.translateService = translateService;
|
|
3149
|
-
this.search = false;
|
|
3150
|
-
this.searchValue = '';
|
|
3151
|
-
this.searchValueChange = new i0.EventEmitter();
|
|
3152
|
-
this.type = 'default';
|
|
3153
|
-
this.maxWidth = '100%';
|
|
3154
|
-
this.disabled = false;
|
|
3155
|
-
this.selectValue = new i0.EventEmitter(); // todo rename more explicit
|
|
3156
|
-
this.clickOnCallToAction = new i0.EventEmitter();
|
|
3157
|
-
this.openCategories = false;
|
|
3158
|
-
this.indexItemSelected = -1;
|
|
3159
|
-
// ControlValueAccessor methods
|
|
3160
|
-
this.onChange = function () { };
|
|
3161
|
-
this.onTouch = function () { };
|
|
3162
|
-
}
|
|
3163
|
-
Object.defineProperty(SelectComponent.prototype, "items", {
|
|
3164
|
-
get: function () {
|
|
3165
|
-
return this._items;
|
|
3166
|
-
},
|
|
3167
|
-
set: function (items) {
|
|
3168
|
-
this._items = items;
|
|
3169
|
-
this.setIndexItemSelected();
|
|
3170
|
-
},
|
|
3171
|
-
enumerable: false,
|
|
3172
|
-
configurable: true
|
|
3173
|
-
});
|
|
3174
|
-
Object.defineProperty(SelectComponent.prototype, "callToAction", {
|
|
3175
|
-
get: function () {
|
|
3176
|
-
return this._calllToAction;
|
|
3177
|
-
},
|
|
3178
|
-
set: function (callToAction) {
|
|
3179
|
-
this._calllToAction = callToAction;
|
|
3180
|
-
},
|
|
3181
|
-
enumerable: false,
|
|
3182
|
-
configurable: true
|
|
3183
|
-
});
|
|
3184
|
-
SelectComponent.prototype.ngOnInit = function () {
|
|
3185
|
-
};
|
|
3186
|
-
SelectComponent.prototype.onClose = function () {
|
|
3187
|
-
this.openCategories = false;
|
|
3188
|
-
};
|
|
3189
|
-
SelectComponent.prototype.customTB = function (item, index) {
|
|
3190
|
-
return item.id + "-" + index;
|
|
3191
|
-
};
|
|
3192
|
-
SelectComponent.prototype.onSelectItem = function (id) {
|
|
3193
|
-
this.unselectAll();
|
|
3194
|
-
this.setIndexItemSelectedById(id);
|
|
3195
|
-
var itemSelected = this.getItemSelected();
|
|
3196
|
-
itemSelected.selected = true;
|
|
3197
|
-
this.selectValue.emit(this.indexItemSelected);
|
|
3198
|
-
this.onChange(itemSelected);
|
|
3199
|
-
};
|
|
3200
|
-
SelectComponent.prototype.onClickCallToAction = function () {
|
|
3201
|
-
this.onClose();
|
|
3202
|
-
this.clickOnCallToAction.emit(this.callToAction.value);
|
|
3203
|
-
};
|
|
3204
|
-
SelectComponent.prototype.onSearcheValueChange = function () {
|
|
3205
|
-
this.searchValueChange.emit(this.searchValue);
|
|
3206
|
-
};
|
|
3207
|
-
SelectComponent.prototype.getItemSelected = function () {
|
|
3208
|
-
return this.items[this.indexItemSelected];
|
|
3209
|
-
};
|
|
3210
|
-
SelectComponent.prototype.showCategories = function () {
|
|
3211
|
-
var _this = this;
|
|
3212
|
-
this.openCategories = true;
|
|
3213
|
-
setTimeout(function () {
|
|
3214
|
-
var _a;
|
|
3215
|
-
(_a = _this.searchElement.nativeElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
3216
|
-
}, 0);
|
|
3217
|
-
};
|
|
3218
|
-
SelectComponent.prototype.unselectAll = function () {
|
|
3219
|
-
this.items.forEach(function (item) { return item.selected = false; });
|
|
3220
|
-
};
|
|
3221
|
-
SelectComponent.prototype.setIndexItemSelectedById = function (id) {
|
|
3222
|
-
this.indexItemSelected = this.items.findIndex(function (item) { return item.id === id; });
|
|
3223
|
-
};
|
|
3224
|
-
SelectComponent.prototype.setIndexItemSelected = function () {
|
|
3225
|
-
this.indexItemSelected = this.items.findIndex(function (item) { return item.selected; });
|
|
3226
|
-
};
|
|
3227
|
-
SelectComponent.prototype.writeValue = function (selectItem) {
|
|
3228
|
-
if (!selectItem) {
|
|
3229
|
-
return;
|
|
3230
|
-
}
|
|
3231
|
-
this.unselectAll();
|
|
3232
|
-
selectItem.selected = true;
|
|
3233
|
-
this.setIndexItemSelectedById(selectItem.id);
|
|
3234
|
-
};
|
|
3235
|
-
SelectComponent.prototype.registerOnChange = function (fn) {
|
|
3236
|
-
this.onChange = fn;
|
|
3237
|
-
};
|
|
3238
|
-
SelectComponent.prototype.registerOnTouched = function (fn) {
|
|
3239
|
-
this.onTouch = fn;
|
|
3240
|
-
};
|
|
3241
|
-
return SelectComponent;
|
|
3242
|
-
}());
|
|
3243
|
-
SelectComponent.decorators = [
|
|
3244
|
-
{ type: i0.Component, args: [{
|
|
3245
|
-
selector: 'wac-select',
|
|
3246
|
-
template: "<p *ngIf=\"label\" [innerHTML]=\"label\" class=\"wac-select__label\"></p>\n\n<div class=\"wac-select\" wzAutoHide (clickOutside)=\"onClose()\" [ngStyle]=\"{ 'max-width': maxWidth }\" [zIndexToggle]=\"openCategories\">\n\n <div class=\"wac-select__current\" [ngClass]=\"{ 'select-disabled' : disabled }\" (click)=\"!disabled && openCategories = !openCategories\" *ngIf=\"!search\">\n <span *ngIf=\"indexItemSelected !== -1\" class=\"icon\" [innerHTML]=\"items[indexItemSelected].icon\"></span>\n <span [innerHTML]=\"indexItemSelected !== -1 ? items[indexItemSelected].name : placeholder\"></span><span><i class=\"fas fa-chevron-down\"></i></span>\n </div>\n\n <div class=\"wac-select__current wac-select__current--withSearch\" [ngClass]=\"{ 'select-disabled' : disabled, 'open-search': openCategories }\" *ngIf=\"search\">\n <div class=\"wac-select__current__search\" *ngIf=\"openCategories && !disabled\">\n <i class=\"far fa-search\"></i>\n <input #search type=\"text\" [(ngModel)]=\"searchValue\" (ngModelChange)=\"onSearcheValueChange()\" (keypressEnter)=\"onClickCallToAction()\"/>\n </div>\n <span (click)=\"openCategories = !openCategories;\" *ngIf=\"items[indexItemSelected]?.icon && !openCategories\" class=\"icon\" [innerHTML]=\"items[indexItemSelected].icon\"></span>\n <span (click)=\"showCategories()\" [innerHTML]=\"items[indexItemSelected]?.name ? items[indexItemSelected].name : placeholder\"></span>\n <span (click)=\"openCategories = !openCategories;\"><i class=\"fas fa-chevron-down\"></i></span>\n </div>\n\n <div class=\"wac-select__content\" *ngIf=\"!disabled\" [ngClass]=\"{ hidden: !openCategories, open: type === 'open' }\" [ngStyle]=\"{ 'max-width': maxWidthItems }\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\" *ngIf=\"items.length\">\n\n <div *ngIf=\"callToAction\" class=\"wac-select__content__cta\">\n <div (click)=\"onClickCallToAction()\">\n <i *ngIf=\"callToAction.icon\" [classList]=\"callToAction.icon\"></i><strong *ngIf=\"callToAction.boldText\">{{ callToAction.boldText }}</strong\n ><span>{{ callToAction?.name }}</span>\n </div>\n </div>\n\n <div\n *ngFor=\"let item of items | selectFilters: searchValue; let index = index;\"\n (click)=\"onClose()\"\n class=\"wac-select__content__item\"\n >\n <div [ngClass]=\"{ selected: item.selected }\" (click)=\"onSelectItem(item.id)\">\n <span class=\"icon\" [innerHTML]=\"item.icon\" *ngIf=\"item.icon\"></span>{{ item.name }}\n </div>\n </div>\n\n </perfect-scrollbar>\n\n <div *ngIf=\"!(items | selectFilters: searchValue)?.length\" class=\"wac-select__content__empty\">\n <span>{{'wac.datatable.noresult' | translate}}</span>\n </div>\n\n </div>\n</div>",
|
|
3247
|
-
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: SelectComponent, multi: true }]
|
|
3248
|
-
},] }
|
|
3249
|
-
];
|
|
3250
|
-
SelectComponent.ctorParameters = function () { return [
|
|
3251
|
-
{ type: core.TranslateService }
|
|
3252
|
-
]; };
|
|
3253
|
-
SelectComponent.propDecorators = {
|
|
3254
|
-
items: [{ type: i0.Input }],
|
|
3255
|
-
placeholder: [{ type: i0.Input }],
|
|
3256
|
-
label: [{ type: i0.Input }],
|
|
3257
|
-
maxWidthItems: [{ type: i0.Input }],
|
|
3258
|
-
search: [{ type: i0.Input }],
|
|
3259
|
-
searchValue: [{ type: i0.Input }],
|
|
3260
|
-
searchValueChange: [{ type: i0.Output }],
|
|
3261
|
-
type: [{ type: i0.Input }],
|
|
3262
|
-
callToAction: [{ type: i0.Input }],
|
|
3263
|
-
maxWidth: [{ type: i0.Input }],
|
|
3264
|
-
disabled: [{ type: i0.Input }],
|
|
3265
|
-
selectValue: [{ type: i0.Output }],
|
|
3266
|
-
clickOnCallToAction: [{ type: i0.Output }],
|
|
3267
|
-
searchElement: [{ type: i0.ViewChild, args: ['search',] }]
|
|
3268
|
-
};
|
|
3269
|
-
|
|
3270
|
-
var MultipleSearchComponent = /** @class */ (function () {
|
|
3271
|
-
function MultipleSearchComponent(translateService) {
|
|
3272
|
-
this.translateService = translateService;
|
|
3273
|
-
this.options = {};
|
|
3274
|
-
this.alwaysOpen = false;
|
|
3275
|
-
this.label = '';
|
|
3276
|
-
this.placeholder = '';
|
|
3277
|
-
this.icon = '';
|
|
3278
|
-
this.query = '';
|
|
3279
|
-
this.search = '';
|
|
3280
|
-
this.openSelect = false;
|
|
3281
|
-
this.error = 'wac.simpleSearchComponent.error';
|
|
3282
|
-
this.showError = false;
|
|
3283
|
-
}
|
|
3284
|
-
MultipleSearchComponent.prototype.ngOnInit = function () {
|
|
3285
|
-
this.setPlaceholder();
|
|
3286
|
-
this.setLabel();
|
|
3287
|
-
this.setQuery();
|
|
3288
|
-
this.setIcon();
|
|
3289
|
-
};
|
|
3290
|
-
MultipleSearchComponent.prototype.setSearchValueToQuery = function (value) {
|
|
3291
|
-
if (value.code !== 'Enter') {
|
|
3292
|
-
this.search = encodeURI(value.target.value);
|
|
3293
|
-
}
|
|
3294
|
-
else {
|
|
3295
|
-
this.submitForm();
|
|
3296
|
-
}
|
|
3297
|
-
};
|
|
3298
|
-
MultipleSearchComponent.prototype.submitForm = function () {
|
|
3299
|
-
if (this.search) {
|
|
3300
|
-
if (this.search.length > 0) {
|
|
3301
|
-
window.location.href = this.query.replace('{s}', this.search);
|
|
3302
|
-
}
|
|
3303
|
-
else {
|
|
3304
|
-
this.displayError();
|
|
3305
|
-
}
|
|
3306
|
-
}
|
|
3307
|
-
else {
|
|
3308
|
-
this.displayError();
|
|
3309
|
-
}
|
|
3310
|
-
};
|
|
3311
|
-
MultipleSearchComponent.prototype.setPlaceholder = function (value) {
|
|
3312
|
-
if (value) {
|
|
3313
|
-
this.placeholder = this.options[value].placeholder;
|
|
3314
|
-
}
|
|
3315
|
-
else {
|
|
3316
|
-
this.placeholder = this.options[0].placeholder;
|
|
3317
|
-
}
|
|
3318
|
-
};
|
|
3319
|
-
MultipleSearchComponent.prototype.setLabel = function (value) {
|
|
3320
|
-
if (value) {
|
|
3321
|
-
this.label = this.options[value].label;
|
|
3322
|
-
}
|
|
3323
|
-
else {
|
|
3324
|
-
this.label = this.options[0].label;
|
|
3325
|
-
}
|
|
3326
|
-
};
|
|
3327
|
-
MultipleSearchComponent.prototype.setQuery = function (value) {
|
|
3328
|
-
if (value) {
|
|
3329
|
-
this.query = this.options[value].queries;
|
|
3330
|
-
}
|
|
3331
|
-
else {
|
|
3332
|
-
this.query = this.options[0].queries;
|
|
3333
|
-
}
|
|
3334
|
-
};
|
|
3335
|
-
MultipleSearchComponent.prototype.displayError = function () {
|
|
3336
|
-
var _this = this;
|
|
3337
|
-
this.showError = true;
|
|
3338
|
-
setTimeout(function () {
|
|
3339
|
-
_this.hideError();
|
|
3340
|
-
}, 2000);
|
|
3341
|
-
};
|
|
3342
|
-
MultipleSearchComponent.prototype.hideError = function () {
|
|
3343
|
-
this.showError = false;
|
|
3344
|
-
};
|
|
3345
|
-
MultipleSearchComponent.prototype.setIcon = function (value) {
|
|
3346
|
-
if (value) {
|
|
3347
|
-
this.icon = this.options[value].icon;
|
|
3348
|
-
}
|
|
3349
|
-
else {
|
|
3350
|
-
this.icon = this.options[0].icon;
|
|
3351
|
-
}
|
|
3352
|
-
};
|
|
3353
|
-
MultipleSearchComponent.prototype.openFuncSelect = function () {
|
|
3354
|
-
this.openSelect = !this.openSelect;
|
|
3355
|
-
};
|
|
3356
|
-
MultipleSearchComponent.prototype.closeSelect = function () {
|
|
3357
|
-
this.openSelect = false;
|
|
3358
|
-
};
|
|
3359
|
-
MultipleSearchComponent.prototype.resetAllVue = function (value) {
|
|
3360
|
-
this.setPlaceholder(value);
|
|
3361
|
-
this.setLabel(value);
|
|
3362
|
-
this.setQuery(value);
|
|
3363
|
-
this.setIcon(value);
|
|
3364
|
-
this.search = '';
|
|
3365
|
-
this.closeSelect();
|
|
3366
|
-
};
|
|
3367
|
-
return MultipleSearchComponent;
|
|
3368
|
-
}());
|
|
3369
|
-
MultipleSearchComponent.decorators = [
|
|
3370
|
-
{ type: i0.Component, args: [{
|
|
3371
|
-
selector: 'wac-multiple-search',
|
|
3372
|
-
template: "<div class=\"wac-multiple-search\" [ngClass]=\"{ open: openSelect || alwaysOpen }\" [zIndexToggle]=\"openSelect\">\n <div class=\"wac-multiple-search__wrapper\">\n <div class=\"wac-multiple-search__wrapper__left\" [ngClass]=\"{ open: openSelect || alwaysOpen }\" wzAutoHide (clickOutside)=\"closeSelect()\">\n <span>{{ label }}</span>\n <i class=\"fal fa-chevron-down\"></i>\n <div class=\"wac-multiple-search__wrapper__left__background\" (click)=\"openFuncSelect()\"></div>\n <div class=\"wac-multiple-search__wrapper__left__select\" *ngIf=\"openSelect || alwaysOpen\">\n <div\n class=\"wac-multiple-search__wrapper__left__select__item\"\n *ngFor=\"let option of options; let i = index\"\n [attr.data-index]=\"i\"\n (click)=\"resetAllVue(i); inputSearch.value = ''\"\n >\n <i [ngClass]=\"option.icon\"></i>\n <span>{{ option.label }}</span>\n <input type=\"hidden\" value=\"\" />\n </div>\n </div>\n </div>\n <div class=\"wac-multiple-search__wrapper__right\">\n <form [action]=\"query\" method=\"get\">\n <button type=\"submit\" (click)=\"submitForm()\"><i class=\"fal fa-search\"></i></button>\n <input #inputSearch type=\"text\" required [placeholder]=\"placeholder\" (keyup)=\"setSearchValueToQuery($event)\" />\n </form>\n </div>\n </div>\n <div class=\"wac-multiple-search__error\" *ngIf=\"showError\">{{ error | translate}}</div>\n</div>\n"
|
|
3373
|
-
},] }
|
|
3374
|
-
];
|
|
3375
|
-
MultipleSearchComponent.ctorParameters = function () { return [
|
|
3376
|
-
{ type: core.TranslateService }
|
|
3377
|
-
]; };
|
|
3378
|
-
MultipleSearchComponent.propDecorators = {
|
|
3379
|
-
options: [{ type: i0.Input }],
|
|
3380
|
-
alwaysOpen: [{ type: i0.Input }]
|
|
3381
|
-
};
|
|
3382
|
-
|
|
3383
|
-
var MultipleSearchPlusComponent = /** @class */ (function () {
|
|
3384
|
-
function MultipleSearchPlusComponent() {
|
|
3385
|
-
this.label = '';
|
|
3386
|
-
this.placeholder = '';
|
|
3387
|
-
this.openSelect = false;
|
|
3388
|
-
this.openSearchResults = false;
|
|
3389
|
-
this.isLoading = true;
|
|
3390
|
-
this.searchValue = new i0.EventEmitter();
|
|
3391
|
-
this.optionsChange = new i0.EventEmitter();
|
|
3392
|
-
}
|
|
3393
|
-
MultipleSearchPlusComponent.prototype.ngOnInit = function () {
|
|
3394
|
-
this.setCurrentOption();
|
|
3395
|
-
this.setPlaceholder();
|
|
3396
|
-
this.setLabel();
|
|
3397
|
-
};
|
|
3398
|
-
MultipleSearchPlusComponent.prototype.setSearchValue = function (value) {
|
|
3399
|
-
if (value.target.value != '') {
|
|
3400
|
-
this.openSearchResults = true;
|
|
3401
|
-
}
|
|
3402
|
-
else {
|
|
3403
|
-
this.openSearchResults = false;
|
|
3404
|
-
}
|
|
3405
|
-
this.searchValue.emit({ currentOption: this.options[this.currentOption].code, value: value.target.value });
|
|
3406
|
-
};
|
|
3407
|
-
MultipleSearchPlusComponent.prototype.setCurrentOption = function (value) {
|
|
3408
|
-
this.currentOption = value || 0;
|
|
3409
|
-
};
|
|
3410
|
-
MultipleSearchPlusComponent.prototype.setPlaceholder = function (value) {
|
|
3411
|
-
this.placeholder = value ? this.options[value].placeholder : this.options[0].placeholder;
|
|
3412
|
-
};
|
|
3413
|
-
MultipleSearchPlusComponent.prototype.setLabel = function (value) {
|
|
3414
|
-
this.label = value ? this.options[value].label : this.options[0].label;
|
|
3415
|
-
};
|
|
3416
|
-
MultipleSearchPlusComponent.prototype.onToggleSelect = function () {
|
|
3417
|
-
this.openSelect = !this.openSelect;
|
|
3418
|
-
};
|
|
3419
|
-
MultipleSearchPlusComponent.prototype.closeSelect = function () {
|
|
3420
|
-
this.openSelect = false;
|
|
3421
|
-
};
|
|
3422
|
-
MultipleSearchPlusComponent.prototype.closeSearchResults = function () {
|
|
3423
|
-
this.openSearchResults = false;
|
|
3424
|
-
};
|
|
3425
|
-
MultipleSearchPlusComponent.prototype.resetAllVue = function (value) {
|
|
3426
|
-
this.searchResults = undefined;
|
|
3427
|
-
this.setCurrentOption(value);
|
|
3428
|
-
this.setPlaceholder(value);
|
|
3429
|
-
this.setLabel(value);
|
|
3430
|
-
this.openSearchResults = false;
|
|
3431
|
-
this.closeSelect();
|
|
3432
|
-
};
|
|
3433
|
-
MultipleSearchPlusComponent.prototype.addResult = function (index) {
|
|
3434
|
-
var _this = this;
|
|
3435
|
-
var alreadyExist = false;
|
|
3436
|
-
this.options[this.currentOption].table.forEach(function (elem) {
|
|
3437
|
-
if (elem.id == _this.searchResults[index].id) {
|
|
3438
|
-
alreadyExist = true;
|
|
3439
|
-
}
|
|
3440
|
-
});
|
|
3441
|
-
if (!alreadyExist) {
|
|
3442
|
-
this.options[this.currentOption].table.push(this.searchResults[index]);
|
|
3443
|
-
}
|
|
3444
|
-
this.resetAllVue(this.currentOption);
|
|
3445
|
-
this.optionsChange.emit({ currentOption: this.options[this.currentOption].code, action: 'add' });
|
|
3446
|
-
};
|
|
3447
|
-
MultipleSearchPlusComponent.prototype.deleteResult = function (indexItem, index) {
|
|
3448
|
-
this.options[index].table.splice(indexItem, 1);
|
|
3449
|
-
this.optionsChange.emit({ currentOption: this.options[index].code, action: 'delete' });
|
|
3450
|
-
};
|
|
3451
|
-
return MultipleSearchPlusComponent;
|
|
3452
|
-
}());
|
|
3453
|
-
MultipleSearchPlusComponent.decorators = [
|
|
3454
|
-
{ type: i0.Component, args: [{
|
|
3455
|
-
selector: 'wac-multiple-search-plus',
|
|
3456
|
-
template: "<div class=\"wac-multiple-search-plus\" [zIndexToggle]=\"openSelect || openSearchResults\">\n <!-- Multiple select with search input -->\n <div class=\"wac-multiple-search\" [ngClass]=\"{ open: openSelect }\">\n <div class=\"wac-multiple-search__wrapper\">\n <div class=\"wac-multiple-search__wrapper__left\" *ngIf=\"options.length > 1\" [ngClass]=\"{ open: openSelect }\" wzAutoHide (clickOutside)=\"closeSelect()\">\n <span>{{ label }}</span>\n <i class=\"fal fa-chevron-down\"></i>\n <div class=\"wac-multiple-search__wrapper__left__background\" (click)=\"onToggleSelect()\"></div>\n <div class=\"wac-multiple-search__wrapper__left__select\" *ngIf=\"openSelect\">\n <div\n class=\"wac-multiple-search__wrapper__left__select__item\"\n *ngFor=\"let option of options; let i = index\"\n [attr.data-index]=\"i\"\n (click)=\"resetAllVue(i); inputSearch.value = ''\"\n >\n <span>{{ option.label }}</span>\n <input type=\"hidden\" value=\"\" />\n </div>\n </div>\n </div>\n <div class=\"wac-multiple-search__wrapper__right\" wzAutoHide (clickOutside)=\"closeSearchResults()\">\n <button><i class=\"fal fa-search\"></i></button>\n <input\n #inputSearch\n type=\"text\"\n [placeholder]=\"placeholder\"\n debounceKeyUp\n [debounceTime]=\"500\"\n (onEventChange)=\"setSearchValue($event)\"\n />\n <div class=\"wac-multiple-search__wrapper__left__select\" *ngIf=\"openSearchResults\">\n <div\n class=\"wac-multiple-search__wrapper__left__select__item\"\n *ngFor=\"let res of searchResults; let i = index\"\n (click)=\"addResult(i); inputSearch.value = ''\"\n >\n <wac-image *ngIf=\"res.image\" [src]=\"res.image\"></wac-image>\n <wac-text>#{{ res.id }} {{ res.name }}</wac-text>\n </div>\n <div class=\"wac-table__body__loader\" *ngIf=\"isLoading && !searchResults\">\n <wac-loader [small]=\"true\"></wac-loader>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <!-- Results checked -->\n <div *ngFor=\"let option of options; let i = index\">\n <div class=\"wac-multiple-search-plus__wrapper\" *ngIf=\"option.table.length\">\n <wac-h3>{{ option.title }}</wac-h3>\n <div class=\"wac-multiple-search-plus__wrapper__block hover default\" *ngFor=\"let item of option.table; let indexItem = index\">\n <wac-image *ngIf=\"item.image\" [src]=\"item.image\"></wac-image>\n <wac-text>{{ item.name }}</wac-text>\n <span (click)=\"deleteResult(indexItem, i)\"><i class=\"fas fa-times\"></i></span>\n </div>\n </div>\n </div>\n</div>\n"
|
|
3457
|
-
},] }
|
|
3458
|
-
];
|
|
3459
|
-
MultipleSearchPlusComponent.ctorParameters = function () { return []; };
|
|
3460
|
-
MultipleSearchPlusComponent.propDecorators = {
|
|
3461
|
-
options: [{ type: i0.Input }],
|
|
3462
|
-
searchResults: [{ type: i0.Input }],
|
|
3463
|
-
searchValue: [{ type: i0.Output }],
|
|
3464
|
-
optionsChange: [{ type: i0.Output }]
|
|
3465
|
-
};
|
|
3466
|
-
|
|
3467
|
-
var InputWithSelectComponent = /** @class */ (function () {
|
|
3468
|
-
function InputWithSelectComponent() {
|
|
3469
|
-
this.showSelect = false;
|
|
3470
|
-
this.inputValueChange = new i0.EventEmitter();
|
|
3471
|
-
this.selectValueChange = new i0.EventEmitter();
|
|
3472
|
-
}
|
|
3473
|
-
InputWithSelectComponent.prototype.ngOnInit = function () {
|
|
3474
|
-
var _this = this;
|
|
3475
|
-
this.options.forEach(function (item) {
|
|
3476
|
-
if (item.active) {
|
|
3477
|
-
_this.currentLabel = item.label;
|
|
3478
|
-
}
|
|
3479
|
-
});
|
|
3480
|
-
};
|
|
3481
|
-
InputWithSelectComponent.prototype.onClickItem = function (index) {
|
|
3482
|
-
this.unActiveAll();
|
|
3483
|
-
var optionSelected = this.options[index];
|
|
3484
|
-
optionSelected.active = true;
|
|
3485
|
-
this.currentLabel = optionSelected.label;
|
|
3486
|
-
this.showSelect = false;
|
|
3487
|
-
this.selectValueChange.emit(index);
|
|
3488
|
-
};
|
|
3489
|
-
InputWithSelectComponent.prototype.onToggleSelect = function () {
|
|
3490
|
-
this.showSelect = !this.showSelect;
|
|
3491
|
-
};
|
|
3492
|
-
InputWithSelectComponent.prototype.onCloseSelect = function () {
|
|
3493
|
-
this.showSelect = false;
|
|
3494
|
-
};
|
|
3495
|
-
InputWithSelectComponent.prototype.onChangeInputValue = function (e) {
|
|
3496
|
-
this.inputValueChange.emit(e.target.value);
|
|
3497
|
-
};
|
|
3498
|
-
InputWithSelectComponent.prototype.unActiveAll = function () {
|
|
3499
|
-
this.options.forEach(function (item) {
|
|
3500
|
-
item.active = false;
|
|
3501
|
-
});
|
|
3502
|
-
};
|
|
3503
|
-
return InputWithSelectComponent;
|
|
3504
|
-
}());
|
|
3505
|
-
InputWithSelectComponent.decorators = [
|
|
3506
|
-
{ type: i0.Component, args: [{
|
|
3507
|
-
selector: 'wac-input-with-select',
|
|
3508
|
-
template: "<div class=\"wac-input-with-select\" [zIndexToggle]=\"showSelect\">\n <label class=\"wac-input-with-select__label\" [for]=\"id\" [innerHTML]=\"label\"></label>\n <div class=\"wac-input-with-select__wrapper\">\n <div class=\"wac-input-with-select__wrapper__left\" wzAutoHide (clickOutside)=\"onCloseSelect()\">\n <input [id]=\"id\" type=\"text\" [placeholder]=\"placeholder\" (change)=\"onChangeInputValue($event)\" />\n <div class=\"wac-input-with-select__wrapper__left__current\">\n <span (click)=\"onToggleSelect()\">{{ currentLabel }}</span>\n </div>\n <div class=\"wac-input-with-select__wrapper__left__select\" *ngIf=\"showSelect\">\n <div class=\"wac-input-with-select__wrapper__left__select__item\" *ngFor=\"let option of options; let index = index\">\n <div (click)=\"onClickItem(index)\">{{ option.label }}</div>\n </div>\n </div>\n </div>\n <div class=\"wac-input-with-select__wrapper__right\">\n <p [innerHTML]=\"text\"></p>\n </div>\n </div>\n</div>\n"
|
|
3509
|
-
},] }
|
|
3510
|
-
];
|
|
3511
|
-
InputWithSelectComponent.ctorParameters = function () { return []; };
|
|
3512
|
-
InputWithSelectComponent.propDecorators = {
|
|
3513
|
-
label: [{ type: i0.Input }],
|
|
3514
|
-
text: [{ type: i0.Input }],
|
|
3515
|
-
options: [{ type: i0.Input }],
|
|
3516
|
-
placeholder: [{ type: i0.Input }],
|
|
3517
|
-
id: [{ type: i0.Input }],
|
|
3518
|
-
inputValueChange: [{ type: i0.Output }],
|
|
3519
|
-
selectValueChange: [{ type: i0.Output }]
|
|
3520
|
-
};
|
|
3521
|
-
|
|
3522
|
-
var PopinComponent = /** @class */ (function () {
|
|
3523
|
-
function PopinComponent(domService) {
|
|
3524
|
-
this.domService = domService;
|
|
3525
|
-
this.visible = false;
|
|
3526
|
-
this.visibleChange = new i0.EventEmitter();
|
|
3527
|
-
this.response = new i0.EventEmitter();
|
|
3528
|
-
this.background = true;
|
|
3529
|
-
this.firstOpen = true;
|
|
3530
|
-
}
|
|
3531
|
-
PopinComponent.prototype.ngOnInit = function () {
|
|
3532
|
-
this.domService.setDocumentEventListener();
|
|
3533
|
-
};
|
|
3534
|
-
PopinComponent.prototype.validatePopin = function () {
|
|
3535
|
-
this.response.emit(true);
|
|
3536
|
-
this.closePopin();
|
|
3537
|
-
};
|
|
3538
|
-
PopinComponent.prototype.refusePopin = function () {
|
|
3539
|
-
this.response.emit(false);
|
|
3540
|
-
this.closePopin();
|
|
3541
|
-
};
|
|
3542
|
-
PopinComponent.prototype.closePopin = function () {
|
|
3543
|
-
if (!this.firstOpen) { //trick for auto-hide directive that close immediatly the pop-in
|
|
3544
|
-
this.visible = false;
|
|
3545
|
-
this.visibleChange.emit(this.visible);
|
|
3546
|
-
this.firstOpen = true;
|
|
3547
|
-
}
|
|
3548
|
-
else {
|
|
3549
|
-
this.firstOpen = false;
|
|
3550
|
-
}
|
|
3551
|
-
};
|
|
3552
|
-
return PopinComponent;
|
|
3553
|
-
}());
|
|
3554
|
-
PopinComponent.decorators = [
|
|
3555
|
-
{ type: i0.Component, args: [{
|
|
3556
|
-
selector: 'wac-popin',
|
|
3557
|
-
template: "<div class=\"wac-free\" *ngIf=\"visible\">\n <div class=\"wac-free__wrapper\" wzAutoHide (clickOutside)=\"closePopin()\">\n <a class=\"wac-free__wrapper__button-close\" (click)=\"closePopin()\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"wac-free__wrapper__content\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\">\n <img [src]=\"imgSrc\" alt=\"barre admin\" />\n\n <h2 class=\"wac-popin__wrapper__title\" [innerHTML]=\"title\"></h2>\n\n <p class=\"wac-popin__wrapper__text\" [innerHTML]=\"content\"></p>\n </perfect-scrollbar>\n </div>\n <div class=\"wac-free__wrapper__buttons\">\n <div class=\"wac-free__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__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__background\" *ngIf=\"background\"></div>\n</div>\n"
|
|
3558
|
-
},] }
|
|
3559
|
-
];
|
|
3560
|
-
PopinComponent.ctorParameters = function () { return [
|
|
3561
|
-
{ type: DomService }
|
|
3562
|
-
]; };
|
|
3563
|
-
PopinComponent.propDecorators = {
|
|
3564
|
-
title: [{ type: i0.Input }],
|
|
3565
|
-
content: [{ type: i0.Input }],
|
|
3566
|
-
imgSrc: [{ type: i0.Input }],
|
|
3567
|
-
okButtonLabel: [{ type: i0.Input }],
|
|
3568
|
-
koButtonLabel: [{ type: i0.Input }],
|
|
3569
|
-
okButtonClass: [{ type: i0.Input }],
|
|
3570
|
-
koButtonClass: [{ type: i0.Input }],
|
|
3571
|
-
visible: [{ type: i0.Input }],
|
|
3572
|
-
visibleChange: [{ type: i0.Output }],
|
|
3573
|
-
response: [{ type: i0.Output }],
|
|
3574
|
-
background: [{ type: i0.Input }]
|
|
3575
|
-
};
|
|
3576
|
-
|
|
3577
|
-
var FreePopinComponent = /** @class */ (function () {
|
|
3578
|
-
function FreePopinComponent(domService) {
|
|
3579
|
-
this.domService = domService;
|
|
3580
|
-
this.visible = false;
|
|
3581
|
-
this.disableCloseOutside = false;
|
|
3582
|
-
this.visibleChange = new i0.EventEmitter();
|
|
3583
|
-
this.response = new i0.EventEmitter();
|
|
3584
|
-
this.background = true;
|
|
3585
|
-
this.zIndex = 9999;
|
|
3586
|
-
this.firstOpen = true;
|
|
3587
|
-
}
|
|
3588
|
-
FreePopinComponent.prototype.ngOnInit = function () {
|
|
3589
|
-
this.domService.setDocumentEventListener();
|
|
3590
|
-
};
|
|
3591
|
-
FreePopinComponent.prototype.validatePopin = function () {
|
|
3592
|
-
this.response.emit(true);
|
|
3593
|
-
this.closePopin();
|
|
3594
|
-
};
|
|
3595
|
-
FreePopinComponent.prototype.refusePopin = function () {
|
|
3596
|
-
this.response.emit(false);
|
|
3597
|
-
this.closePopin();
|
|
3598
|
-
};
|
|
3599
|
-
FreePopinComponent.prototype.closePopin = function () {
|
|
3600
|
-
if (!this.firstOpen || this.disableCloseOutside) {
|
|
3601
|
-
this.visible = false;
|
|
3602
|
-
this.visibleChange.emit(this.visible);
|
|
3603
|
-
this.firstOpen = true;
|
|
3604
|
-
}
|
|
3605
|
-
else {
|
|
3606
|
-
this.firstOpen = false;
|
|
3607
|
-
}
|
|
3608
|
-
};
|
|
3609
|
-
return FreePopinComponent;
|
|
3610
|
-
}());
|
|
3611
|
-
FreePopinComponent.decorators = [
|
|
3612
|
-
{ type: i0.Component, args: [{
|
|
3613
|
-
selector: 'wac-free-popin',
|
|
3614
|
-
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"
|
|
3615
|
-
},] }
|
|
3616
|
-
];
|
|
3617
|
-
FreePopinComponent.ctorParameters = function () { return [
|
|
3618
|
-
{ type: DomService }
|
|
3619
|
-
]; };
|
|
3620
|
-
FreePopinComponent.propDecorators = {
|
|
3621
|
-
okButtonLabel: [{ type: i0.Input }],
|
|
3622
|
-
koButtonLabel: [{ type: i0.Input }],
|
|
3623
|
-
visible: [{ type: i0.Input }],
|
|
3624
|
-
disableCloseOutside: [{ type: i0.Input }],
|
|
3625
|
-
visibleChange: [{ type: i0.Output }],
|
|
3626
|
-
response: [{ type: i0.Output }],
|
|
3627
|
-
background: [{ type: i0.Input }],
|
|
3628
|
-
zIndex: [{ type: i0.Input }]
|
|
3629
|
-
};
|
|
3630
|
-
|
|
3631
|
-
var BlockComponent = /** @class */ (function () {
|
|
3632
|
-
function BlockComponent() {
|
|
3633
|
-
this.titleBlock = ''; // Titre interne au block
|
|
3634
|
-
this.titleExternalBlock = false; // Titre externe au block
|
|
3635
|
-
this.sticky = false; // add sticky to block
|
|
3636
|
-
this.simple = false;
|
|
3637
|
-
this.noFullHeight = false; // not full height
|
|
3638
|
-
this.icon = '';
|
|
3639
|
-
this.titleUppercase = true;
|
|
3640
|
-
this.borderRadius = false;
|
|
3641
|
-
this.removePadding = false;
|
|
3642
|
-
this.stretchHeight = false;
|
|
3643
|
-
}
|
|
3644
|
-
return BlockComponent;
|
|
3645
|
-
}());
|
|
3646
|
-
BlockComponent.decorators = [
|
|
3647
|
-
{ type: i0.Component, args: [{
|
|
3648
|
-
selector: 'wac-block',
|
|
3649
|
-
template: "<div\n class=\"wac-block\"\n [ngClass]=\"{ 'wac-block__external': titleExternalBlock, sticky: sticky, noFullHeight: noFullHeight, 'stretch': stretchHeight, 'border-radius': borderRadius, 'no-padding' : removePadding }\"\n>\n <h2 *ngIf=\"titleBlock.length\" class=\"wac-block__title\" [ngClass]=\"{ 'is-simple': simple, 'no-uppercase': !titleUppercase }\">\n {{ titleBlock }} <i *ngIf=\"icon\" [ngClass]=\"icon\"></i>\n </h2>\n <div class=\"wac-block__content\">\n <ng-content></ng-content>\n </div>\n</div>\n"
|
|
3650
|
-
},] }
|
|
3651
|
-
];
|
|
3652
|
-
BlockComponent.ctorParameters = function () { return []; };
|
|
3653
|
-
BlockComponent.propDecorators = {
|
|
3654
|
-
titleBlock: [{ type: i0.Input }],
|
|
3655
|
-
titleExternalBlock: [{ type: i0.Input }],
|
|
3656
|
-
sticky: [{ type: i0.Input }],
|
|
3657
|
-
simple: [{ type: i0.Input }],
|
|
3658
|
-
noFullHeight: [{ type: i0.Input }],
|
|
3659
|
-
icon: [{ type: i0.Input }],
|
|
3660
|
-
titleUppercase: [{ type: i0.Input }],
|
|
3661
|
-
borderRadius: [{ type: i0.Input }],
|
|
3662
|
-
removePadding: [{ type: i0.Input }],
|
|
3663
|
-
stretchHeight: [{ type: i0.Input }]
|
|
3664
|
-
};
|
|
3665
|
-
|
|
3666
|
-
var WrapperComponent = /** @class */ (function () {
|
|
3667
|
-
function WrapperComponent() {
|
|
3668
|
-
this.size = 'fullsize';
|
|
3669
|
-
}
|
|
3670
|
-
WrapperComponent.prototype.ngOnInit = function () { };
|
|
3671
|
-
return WrapperComponent;
|
|
3672
|
-
}());
|
|
3673
|
-
WrapperComponent.decorators = [
|
|
3674
|
-
{ type: i0.Component, args: [{
|
|
3675
|
-
selector: 'wac-wrapper',
|
|
3676
|
-
template: "<div class=\"wac-wrapper\" [ngClass]=\"{ fullsize: size === 'fullsize', 'max-width': size === 'max-width' }\">\n <ng-content></ng-content>\n</div>\n"
|
|
3677
|
-
},] }
|
|
3678
|
-
];
|
|
3679
|
-
WrapperComponent.ctorParameters = function () { return []; };
|
|
3680
|
-
WrapperComponent.propDecorators = {
|
|
3681
|
-
size: [{ type: i0.Input }]
|
|
3682
|
-
};
|
|
3683
|
-
|
|
3684
|
-
var FiltersComponent = /** @class */ (function () {
|
|
3685
|
-
function FiltersComponent() {
|
|
3686
|
-
this.labelRestart = 'Afficher toutes les catégories';
|
|
3687
|
-
this.filterChange = new i0.EventEmitter();
|
|
3688
|
-
}
|
|
3689
|
-
FiltersComponent.prototype.ngOnInit = function () {
|
|
3690
|
-
var _this = this;
|
|
3691
|
-
this.options.forEach(function (item, index) {
|
|
3692
|
-
if (item.active) {
|
|
3693
|
-
_this.filterActiveIndex = '' + index;
|
|
3694
|
-
}
|
|
3695
|
-
});
|
|
3696
|
-
};
|
|
3697
|
-
FiltersComponent.prototype.activeFilter = function (index) {
|
|
3698
|
-
this.options[index].active = true;
|
|
3699
|
-
this.filterActiveIndex = '' + index;
|
|
3700
|
-
this.filterChange.emit(index);
|
|
3701
|
-
};
|
|
3702
|
-
FiltersComponent.prototype.resetFilter = function () {
|
|
3703
|
-
this.options.forEach(function (item) {
|
|
3704
|
-
item.active = false;
|
|
3705
|
-
});
|
|
3706
|
-
this.filterActiveIndex = null;
|
|
3707
|
-
this.filterChange.emit(-1);
|
|
3708
|
-
};
|
|
3709
|
-
return FiltersComponent;
|
|
3710
|
-
}());
|
|
3711
|
-
FiltersComponent.decorators = [
|
|
3712
|
-
{ type: i0.Component, args: [{
|
|
3713
|
-
selector: 'wac-filters',
|
|
3714
|
-
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"
|
|
3715
|
-
},] }
|
|
3716
|
-
];
|
|
3717
|
-
FiltersComponent.ctorParameters = function () { return []; };
|
|
3718
|
-
FiltersComponent.propDecorators = {
|
|
3719
|
-
options: [{ type: i0.Input }],
|
|
3720
|
-
labelRestart: [{ type: i0.Input }],
|
|
3721
|
-
filterChange: [{ type: i0.Output }]
|
|
3722
|
-
};
|
|
3723
|
-
|
|
3724
|
-
var WrapperBlocsComponent = /** @class */ (function () {
|
|
3725
|
-
function WrapperBlocsComponent() {
|
|
3726
|
-
this.sidebar = false;
|
|
3727
|
-
}
|
|
3728
|
-
WrapperBlocsComponent.prototype.ngOnInit = function () {
|
|
3729
|
-
};
|
|
3730
|
-
return WrapperBlocsComponent;
|
|
3731
|
-
}());
|
|
3732
|
-
WrapperBlocsComponent.decorators = [
|
|
3733
|
-
{ type: i0.Component, args: [{
|
|
3734
|
-
selector: 'wac-wrapper-blocs',
|
|
3735
|
-
template: "<div class=\"wac-wrapper-blocs\" [ngClass]=\"{'sidebar': sidebar}\">\n <ng-content></ng-content>\n</div>\n"
|
|
3736
|
-
},] }
|
|
3737
|
-
];
|
|
3738
|
-
WrapperBlocsComponent.ctorParameters = function () { return []; };
|
|
3739
|
-
WrapperBlocsComponent.propDecorators = {
|
|
3740
|
-
sidebar: [{ type: i0.Input }]
|
|
3741
|
-
};
|
|
3742
|
-
|
|
3743
|
-
var SnackbarComponent = /** @class */ (function () {
|
|
3744
|
-
function SnackbarComponent() {
|
|
3745
|
-
this.visible = false;
|
|
3746
|
-
this.visibleChange = new i0.EventEmitter();
|
|
3747
|
-
this.response = new i0.EventEmitter();
|
|
3748
|
-
this.manualClose = false;
|
|
3749
|
-
}
|
|
3750
|
-
SnackbarComponent.prototype.ngOnInit = function () {
|
|
3751
|
-
var _this = this;
|
|
3752
|
-
if (this.duration > 0) {
|
|
3753
|
-
this.timer = setTimeout(function () { return _this.manualClose = true; }, this.duration);
|
|
3754
|
-
}
|
|
3755
|
-
};
|
|
3756
|
-
SnackbarComponent.prototype.validate = function () {
|
|
3757
|
-
this.response.emit(true);
|
|
3758
|
-
this.closeSnackbar();
|
|
3759
|
-
this.manualClose = true;
|
|
3760
|
-
};
|
|
3761
|
-
SnackbarComponent.prototype.refuse = function () {
|
|
3762
|
-
this.response.emit(false);
|
|
3763
|
-
this.closeSnackbar();
|
|
3764
|
-
this.manualClose = true;
|
|
3765
|
-
};
|
|
3766
|
-
SnackbarComponent.prototype.closeSnackbar = function () {
|
|
3767
|
-
this.visible = false;
|
|
3768
|
-
this.visibleChange.emit(this.visible);
|
|
3769
|
-
};
|
|
3770
|
-
return SnackbarComponent;
|
|
3771
|
-
}());
|
|
3772
|
-
SnackbarComponent.decorators = [
|
|
3773
|
-
{ type: i0.Component, args: [{
|
|
3774
|
-
selector: 'wac-snackbar',
|
|
3775
|
-
template: "<div class=\"wac-snackbar\">\n <div [class]=\"'notification is-active ' + ((color) ? color : 'is-transparent')\"\n [@state]=\"visible ? 'active': 'inactive'\"\n >\n <div class=\"columns\">\n <div class=\"column notification--message\" [ngClass]=\"{'is-half': textButtonOk}\"\n [innerHTML]=\"message\">\n </div>\n <div class=\"column is-half\">\n <button [class]=\"'button ' + ((buttonColor) ? buttonColor : 'is-success')\"\n (click)=\"validate()\">{{textButtonOk}}\n </button>\n <button [class]=\"'button ' + ((buttonColor) ? buttonColor : 'is-success')\"\n (click)=\"refuse()\">{{textButtonKo}}\n </button>\n </div>\n </div>\n </div>\n</div>\n",
|
|
3776
|
-
encapsulation: i0.ViewEncapsulation.None,
|
|
3777
|
-
animations: [
|
|
3778
|
-
animations.trigger('state', [
|
|
3779
|
-
animations.state('void', animations.style({
|
|
3780
|
-
bottom: '-100px'
|
|
3781
|
-
})),
|
|
3782
|
-
animations.state('inactive', animations.style({
|
|
3783
|
-
bottom: '-100px'
|
|
3784
|
-
})),
|
|
3785
|
-
animations.state('active', animations.style({
|
|
3786
|
-
bottom: '0px'
|
|
3787
|
-
})),
|
|
3788
|
-
animations.transition('void => active', animations.animate(300)),
|
|
3789
|
-
animations.transition('active => inactive', animations.animate(300))
|
|
3790
|
-
])
|
|
3791
|
-
]
|
|
3792
|
-
},] }
|
|
3793
|
-
];
|
|
3794
|
-
SnackbarComponent.propDecorators = {
|
|
3795
|
-
message: [{ type: i0.Input }],
|
|
3796
|
-
textButtonOk: [{ type: i0.Input }],
|
|
3797
|
-
textButtonKo: [{ type: i0.Input }],
|
|
3798
|
-
duration: [{ type: i0.Input }],
|
|
3799
|
-
color: [{ type: i0.Input }],
|
|
3800
|
-
buttonColor: [{ type: i0.Input }],
|
|
3801
|
-
visible: [{ type: i0.Input }],
|
|
3802
|
-
visibleChange: [{ type: i0.Output }],
|
|
3803
|
-
response: [{ type: i0.Output }]
|
|
3804
|
-
};
|
|
3805
|
-
|
|
3806
|
-
var AlertPopupComponent = /** @class */ (function () {
|
|
3807
|
-
function AlertPopupComponent() {
|
|
3808
|
-
/** Subject for notifying the user that the dialog has finished closing. */
|
|
3809
|
-
this.afterClosedPopup = new rxjs.Subject();
|
|
3810
|
-
this.open = false;
|
|
3811
|
-
}
|
|
3812
|
-
AlertPopupComponent.prototype.ngOnInit = function () {
|
|
3813
|
-
var _this = this;
|
|
3814
|
-
setTimeout(function () {
|
|
3815
|
-
_this.open = true;
|
|
3816
|
-
}, 50);
|
|
3817
|
-
if (this.config.duration > 0) {
|
|
3818
|
-
this.timer = setTimeout(function () { return _this.dismiss(); }, this.config.duration);
|
|
3819
|
-
}
|
|
3820
|
-
};
|
|
3821
|
-
AlertPopupComponent.prototype.dismiss = function () {
|
|
3822
|
-
var _this = this;
|
|
3823
|
-
this.open = false;
|
|
3824
|
-
setTimeout(function () {
|
|
3825
|
-
_this.afterClosedPopup.next(true);
|
|
3826
|
-
_this.afterClosedPopup.complete();
|
|
3827
|
-
}, 200);
|
|
3828
|
-
};
|
|
3829
|
-
/**
|
|
3830
|
-
* Gets an observable that is notified when the dialog is finished closing.
|
|
3831
|
-
*/
|
|
3832
|
-
AlertPopupComponent.prototype.afterClosed = function () {
|
|
3833
|
-
return this.afterClosedPopup.asObservable();
|
|
3834
|
-
};
|
|
3835
|
-
return AlertPopupComponent;
|
|
3836
|
-
}());
|
|
3837
|
-
AlertPopupComponent.decorators = [
|
|
3838
|
-
{ type: i0.Component, args: [{
|
|
3839
|
-
selector: 'wac-alert-popup',
|
|
3840
|
-
template: "<div\n [class]=\"'alert ' + ((config.color) ? config.color : ' is-primary') + ((config.extraClasses) ? ' ' + config.extraClasses : '') + ((config.position) ? ' ' + config.position : '') + ((config.fullsize) ? ' fullsize' : '') + ((config.opacity) ? ' opacity-active' : '') + ((config.small) ? ' small' : '') + ((config.icon) ? ' with-icon' : '')\"\n [ngClass]=\"{'is-active': open}\"\n>\n <div class=\"alert--message\">\n <span class=\"icon\" *ngIf=\"config.icon\">\n <i [class]=\"config.icon\"></i>\n </span>\n <span (click)=\"dismiss()\" class=\"wac-alert-popup__close\"><i class=\"fas fa-times\"></i></span>\n <p *ngIf=\"config.title\" class=\"wac-alert-popup__title\" [innerHTML]=\"config.title\"></p>\n <p *ngIf=\"config.message\" class=\"wac-alert-popup__text\" [innerHTML]=\"config.message\"></p>\n </div>\n</div>\n",
|
|
3841
|
-
host: {
|
|
3842
|
-
class: 'wac-alert-popup'
|
|
3843
|
-
},
|
|
3844
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
3845
|
-
},] }
|
|
3846
|
-
];
|
|
3847
|
-
|
|
3848
|
-
var AlertPopupService = /** @class */ (function () {
|
|
3849
|
-
function AlertPopupService(domService) {
|
|
3850
|
-
this.domService = domService;
|
|
3851
|
-
}
|
|
3852
|
-
AlertPopupService.prototype.open = function (config) {
|
|
3853
|
-
var componentRef = this.getComponentRef(config);
|
|
3854
|
-
return componentRef.instance;
|
|
3855
|
-
};
|
|
3856
|
-
AlertPopupService.prototype.getComponentRef = function (config) {
|
|
3857
|
-
var componentRef = this.domService.attachComponentPortal(AlertPopupComponent);
|
|
3858
|
-
config = Object.assign({
|
|
3859
|
-
position: 'is-top'
|
|
3860
|
-
}, config);
|
|
3861
|
-
componentRef.instance.config = config;
|
|
3862
|
-
componentRef.instance.afterClosed().subscribe(function () {
|
|
3863
|
-
componentRef.destroy();
|
|
3864
|
-
});
|
|
3865
|
-
return componentRef;
|
|
3866
|
-
};
|
|
3867
|
-
return AlertPopupService;
|
|
3868
|
-
}());
|
|
3869
|
-
AlertPopupService.decorators = [
|
|
3870
|
-
{ type: i0.Injectable }
|
|
3871
|
-
];
|
|
3872
|
-
AlertPopupService.ctorParameters = function () { return [
|
|
3873
|
-
{ type: DomService }
|
|
3874
|
-
]; };
|
|
3875
|
-
|
|
3876
|
-
var AlertPopupModule = /** @class */ (function () {
|
|
3877
|
-
function AlertPopupModule() {
|
|
3878
|
-
}
|
|
3879
|
-
return AlertPopupModule;
|
|
3880
|
-
}());
|
|
3881
|
-
AlertPopupModule.decorators = [
|
|
3882
|
-
{ type: i0.NgModule, args: [{
|
|
3883
|
-
imports: [common.CommonModule],
|
|
3884
|
-
providers: [AlertPopupService],
|
|
3885
|
-
entryComponents: [AlertPopupComponent],
|
|
3886
|
-
declarations: [AlertPopupComponent],
|
|
3887
|
-
exports: [AlertPopupComponent]
|
|
3888
|
-
},] }
|
|
3889
|
-
];
|
|
3890
|
-
|
|
3891
|
-
var SearchComponent = /** @class */ (function () {
|
|
3892
|
-
function SearchComponent() {
|
|
3893
|
-
this.alwaysOpen = false;
|
|
3894
|
-
this.disableSearchIn = false;
|
|
3895
|
-
this.emptyResult = '';
|
|
3896
|
-
this.search = '';
|
|
3897
|
-
this.openSelect = false;
|
|
3898
|
-
this.selectValue = new i0.EventEmitter();
|
|
3899
|
-
this.searchKeyUp = new i0.EventEmitter();
|
|
3900
|
-
this.searchFocusOut = new i0.EventEmitter();
|
|
3901
|
-
}
|
|
3902
|
-
SearchComponent.prototype.ngOnInit = function () {
|
|
3903
|
-
this.triggerOptions = this.options;
|
|
3904
|
-
};
|
|
3905
|
-
SearchComponent.prototype.onClose = function () {
|
|
3906
|
-
this.openSelect = false;
|
|
3907
|
-
};
|
|
3908
|
-
SearchComponent.prototype.setSearchValueToQuery = function (value) {
|
|
3909
|
-
var _this = this;
|
|
3910
|
-
this.search = value.target.value;
|
|
3911
|
-
if (this.disableSearchIn) {
|
|
3912
|
-
this.triggerOptions = this.options;
|
|
3913
|
-
}
|
|
3914
|
-
else {
|
|
3915
|
-
if (this.search.length > 0) {
|
|
3916
|
-
this.openSelect = true;
|
|
3917
|
-
this.triggerOptions = this.options.filter(function (element) { return element.label.toLowerCase().indexOf(_this.search.toLowerCase()) !== -1; });
|
|
3918
|
-
}
|
|
3919
|
-
else {
|
|
3920
|
-
this.triggerOptions = this.options;
|
|
3921
|
-
}
|
|
3922
|
-
}
|
|
3923
|
-
this.searchKeyUp.emit(this.search);
|
|
3924
|
-
};
|
|
3925
|
-
SearchComponent.prototype.sendEventFocusOut = function () {
|
|
3926
|
-
this.searchFocusOut.emit(this.search);
|
|
3927
|
-
};
|
|
3928
|
-
SearchComponent.prototype.closeSelect = function () {
|
|
3929
|
-
this.openSelect = false;
|
|
3930
|
-
};
|
|
3931
|
-
SearchComponent.prototype.onSelectItem = function (index, value, label) {
|
|
3932
|
-
this.search = '';
|
|
3933
|
-
this.openSelect = false;
|
|
3934
|
-
if (this.disableSearchIn) {
|
|
3935
|
-
this.selectValue.emit(index);
|
|
3936
|
-
}
|
|
3937
|
-
else {
|
|
3938
|
-
var findInOption = this.options.findIndex(function (element) { return element.label === label && element.id === value; });
|
|
3939
|
-
this.selectValue.emit(findInOption);
|
|
3940
|
-
}
|
|
3941
|
-
};
|
|
3942
|
-
SearchComponent.prototype.resetAllVue = function () {
|
|
3943
|
-
this.search = '';
|
|
3944
|
-
this.closeSelect();
|
|
3945
|
-
};
|
|
3946
|
-
return SearchComponent;
|
|
3947
|
-
}());
|
|
3948
|
-
SearchComponent.decorators = [
|
|
3949
|
-
{ type: i0.Component, args: [{
|
|
3950
|
-
selector: 'wac-search',
|
|
3951
|
-
template: "<div class=\"wac-search\" [ngClass]=\"{ open: openSelect || alwaysOpen }\" [zIndexToggle]=\"openSelect\" wzAutoHide (clickOutside)=\"closeSelect()\">\n <div class=\"wac-search__wrapper\">\n <button><i class=\"fal fa-search\"></i></button>\n <input [value]=\"search\" type=\"text\" required [placeholder]=\"placeholder\" (focus)=\"openSelect = true;\" (focusout)=\"sendEventFocusOut()\" (keyup)=\"setSearchValueToQuery($event)\" />\n </div>\n <div class=\"wac-search__absolute\" *ngIf=\"triggerOptions\" [ngClass]=\"{'hidden': !openSelect}\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\" *ngIf=\"triggerOptions.length > 0\">\n <div (click)=\"onClose()\" class=\"wac-select__content__item\" *ngFor=\"let item of triggerOptions; let index = index;\">\n <div [ngClass]=\"{ selected: item.checked }\" (click)=\"onSelectItem(index, item.id, item.label)\">\n {{ item.label }}\n </div>\n </div>\n </perfect-scrollbar>\n <div class=\"wac-select__content__empty\" *ngIf=\"triggerOptions.length === 0\">\n <span *ngIf=\"emptyResult\">{{emptyResult}}</span>\n </div>\n </div>\n</div>\n"
|
|
3952
|
-
},] }
|
|
3953
|
-
];
|
|
3954
|
-
SearchComponent.ctorParameters = function () { return []; };
|
|
3955
|
-
SearchComponent.propDecorators = {
|
|
3956
|
-
placeholder: [{ type: i0.Input }],
|
|
3957
|
-
alwaysOpen: [{ type: i0.Input }],
|
|
3958
|
-
label: [{ type: i0.Input }],
|
|
3959
|
-
options: [{ type: i0.Input }],
|
|
3960
|
-
disableSearchIn: [{ type: i0.Input }],
|
|
3961
|
-
emptyResult: [{ type: i0.Input }],
|
|
3962
|
-
selectValue: [{ type: i0.Output }],
|
|
3963
|
-
searchKeyUp: [{ type: i0.Output }],
|
|
3964
|
-
searchFocusOut: [{ type: i0.Output }]
|
|
3965
|
-
};
|
|
3966
|
-
|
|
3967
|
-
var SelectedListComponent = /** @class */ (function () {
|
|
3968
|
-
function SelectedListComponent() {
|
|
3969
|
-
this.options = [];
|
|
3970
|
-
this.enableSelectAll = true;
|
|
3971
|
-
this.selectedItemsIndex = new i0.EventEmitter();
|
|
3972
|
-
this.selectedItemsAll = new i0.EventEmitter();
|
|
3973
|
-
this.unSelectedItemsAll = new i0.EventEmitter();
|
|
3974
|
-
this.selectedOptionIndex = [];
|
|
3975
|
-
}
|
|
3976
|
-
SelectedListComponent.prototype.ngOnInit = function () {
|
|
3977
|
-
};
|
|
3978
|
-
SelectedListComponent.prototype.onSelectAll = function () {
|
|
3979
|
-
this.selectedOptionIndex = this.options.map(function (option, index) {
|
|
3980
|
-
option.checked = true;
|
|
3981
|
-
return index;
|
|
3982
|
-
});
|
|
3983
|
-
this.selectedItemsAll.emit(this.selectedOptionIndex);
|
|
3984
|
-
};
|
|
3985
|
-
SelectedListComponent.prototype.onUnSelectAll = function () {
|
|
3986
|
-
this.selectedOptionIndex = this.options.map(function (option, index) {
|
|
3987
|
-
option.checked = false;
|
|
3988
|
-
return index;
|
|
3989
|
-
});
|
|
3990
|
-
this.unSelectedItemsAll.emit(this.selectedOptionIndex);
|
|
3991
|
-
};
|
|
3992
|
-
SelectedListComponent.prototype.onSelectItem = function (index) {
|
|
3993
|
-
this.options[index].checked = !this.options[index].checked;
|
|
3994
|
-
this.selectedItemsIndex.emit(index);
|
|
3995
|
-
};
|
|
3996
|
-
SelectedListComponent.prototype.areAllOptionsChecked = function () {
|
|
3997
|
-
return !this.options.some(function (option) { return !option.checked; });
|
|
3998
|
-
};
|
|
3999
|
-
return SelectedListComponent;
|
|
4000
|
-
}());
|
|
4001
|
-
SelectedListComponent.decorators = [
|
|
4002
|
-
{ type: i0.Component, args: [{
|
|
4003
|
-
selector: 'wac-selected-list',
|
|
4004
|
-
template: "<div class=\"selected-list\">\n <div class=\"selected-list__wrapper\">\n <div class=\"selected-list__wrapper__head\">\n <p *ngIf=\"label\" [innerHTML]=\"label\"></p>\n <ng-container *ngVar=\"(options | areAllOptionsSelected) as areAllOptionsSelected\">\n <ng-container *ngIf=\"textSelectAll && !areAllOptionsSelected\">\n\n <div class=\"selected-list__wrapper__head__button\">\n\n <div class=\"selected-list__wrapper__head__button__notMobile\">\n <wac-button\n [label]=\"textSelectAll\"\n (click)=\"onSelectAll()\"\n >\n </wac-button>\n </div>\n\n <div class=\"selected-list__wrapper__head__button__mobile\">\n <wac-button\n [extraClasses]=\"'is-grey'\"\n [icon]=\"'fad fa-check-double'\"\n (click)=\"onSelectAll()\"\n >\n </wac-button>\n </div>\n\n </div>\n\n </ng-container>\n\n <ng-container *ngIf=\"textUnSelectAll && areAllOptionsSelected\">\n\n <div class=\"selected-list__wrapper__head__button\">\n\n <div class=\"selected-list__wrapper__head__button__notMobile\">\n <wac-button\n [extraClasses]=\"'is-info'\"\n [label]=\"textUnSelectAll\"\n (click)=\"onUnSelectAll()\"\n >\n </wac-button>\n </div>\n\n <div class=\"selected-list__wrapper__head__button__mobile\">\n <wac-button\n [extraClasses]=\"'is-grey'\"\n [icon]=\"'fad fa-check-double'\"\n (click)=\"onUnSelectAll()\"\n >\n </wac-button>\n </div>\n\n </div>\n\n </ng-container>\n\n </ng-container>\n\n </div>\n <div class=\"selected-list__wrapper__content\">\n <div class=\"selected-list__wrapper__content__item\" *ngFor=\"let item of options;let i = index;\" [ngClass]=\"{'active': item.checked}\" (click)=\"onSelectItem(i)\">\n <span [innerHTML]=\"item.label\"></span>\n <i class=\"fas fa-check\"></i>\n </div>\n </div>\n </div>\n</div>\n"
|
|
4005
|
-
},] }
|
|
4006
|
-
];
|
|
4007
|
-
SelectedListComponent.propDecorators = {
|
|
4008
|
-
options: [{ type: i0.Input }],
|
|
4009
|
-
label: [{ type: i0.Input }],
|
|
4010
|
-
textSelectAll: [{ type: i0.Input }],
|
|
4011
|
-
textUnSelectAll: [{ type: i0.Input }],
|
|
4012
|
-
enableSelectAll: [{ type: i0.Input }],
|
|
4013
|
-
selectedItemsIndex: [{ type: i0.Output }],
|
|
4014
|
-
selectedItemsAll: [{ type: i0.Output }],
|
|
4015
|
-
unSelectedItemsAll: [{ type: i0.Output }]
|
|
4016
|
-
};
|
|
4017
|
-
|
|
4018
|
-
var TreeComponent = /** @class */ (function () {
|
|
4019
|
-
function TreeComponent() {
|
|
4020
|
-
this.treeDepth = 0;
|
|
4021
|
-
}
|
|
4022
|
-
TreeComponent.prototype.ngOnInit = function () { };
|
|
4023
|
-
return TreeComponent;
|
|
4024
|
-
}());
|
|
4025
|
-
TreeComponent.decorators = [
|
|
4026
|
-
{ type: i0.Component, args: [{
|
|
4027
|
-
selector: 'wac-tree',
|
|
4028
|
-
template: "<div *ngFor=\"let item of items; index as i\" [ngClass]=\"['treeDepth-' + treeDepth]\">\n <ul>\n <li>\n\n <ng-template #defaultItem>\n {{ item?.treeLabel }}\n </ng-template>\n\n <ng-container\n [ngTemplateOutlet]=\"optionTemplate || defaultItem\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: i }\"\n >\n </ng-container>\n\n <wac-tree [optionTemplate]=\"optionTemplate\" [items]=\"item.treeChildren\" *ngIf=\"item.treeChildren?.length\" [treeDepth]=\"treeDepth + 1\">\n <!-- Todo maybe pass child template -->\n\n </wac-tree>\n </li>\n </ul>\n</div>"
|
|
4029
|
-
},] }
|
|
4030
|
-
];
|
|
4031
|
-
TreeComponent.ctorParameters = function () { return []; };
|
|
4032
|
-
TreeComponent.propDecorators = {
|
|
4033
|
-
items: [{ type: i0.Input }],
|
|
4034
|
-
treeDepth: [{ type: i0.Input }],
|
|
4035
|
-
optionTemplate: [{ type: i0.Input, args: ["optionTemplate",] }]
|
|
4036
|
-
};
|
|
4037
|
-
|
|
4038
|
-
var FormatObjectToRecursifTreePipe = /** @class */ (function () {
|
|
4039
|
-
function FormatObjectToRecursifTreePipe() {
|
|
4040
|
-
this.childrenProperties = [];
|
|
4041
|
-
}
|
|
4042
|
-
FormatObjectToRecursifTreePipe.prototype.transform = function (objectList, childrenProperties) {
|
|
4043
|
-
var _this = this;
|
|
4044
|
-
this.childrenProperties = childrenProperties;
|
|
4045
|
-
var treeDepth = 0;
|
|
4046
|
-
objectList.forEach(function (object) { return _this.recursiveFormatObjectToRecursifTree(object, treeDepth); });
|
|
4047
|
-
return objectList;
|
|
4048
|
-
};
|
|
4049
|
-
FormatObjectToRecursifTreePipe.prototype.recursiveFormatObjectToRecursifTree = function (object, treeDepth) {
|
|
4050
|
-
var e_1, _a;
|
|
4051
|
-
try {
|
|
4052
|
-
for (var _b = __values(this.childrenProperties), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
4053
|
-
var childrenProperty = _c.value;
|
|
4054
|
-
object.hasTreeChildren = true;
|
|
4055
|
-
if (!object.hasOwnProperty(childrenProperty)) {
|
|
4056
|
-
// No more chrildren
|
|
4057
|
-
object.hasTreeChildren = false;
|
|
4058
|
-
continue;
|
|
4059
|
-
}
|
|
4060
|
-
if (!Array.isArray(object[childrenProperty])) {
|
|
4061
|
-
throw "Property : \"" + childrenProperty + "\", is not an array. it could not be transform to a recursive list.";
|
|
4062
|
-
}
|
|
4063
|
-
// Add treeChildren property filled with name children property
|
|
4064
|
-
object.treeChildren = object[childrenProperty];
|
|
4065
|
-
// call this function recursively until no children can be generated
|
|
4066
|
-
this.recursiveFormatObjectToRecursifTree(object.treeChildren, treeDepth++);
|
|
4067
|
-
break;
|
|
4068
|
-
}
|
|
4069
|
-
}
|
|
4070
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
4071
|
-
finally {
|
|
4072
|
-
try {
|
|
4073
|
-
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
4074
|
-
}
|
|
4075
|
-
finally { if (e_1) throw e_1.error; }
|
|
4076
|
-
}
|
|
4077
|
-
object.treeDepth = treeDepth;
|
|
4078
|
-
};
|
|
4079
|
-
return FormatObjectToRecursifTreePipe;
|
|
4080
|
-
}());
|
|
4081
|
-
FormatObjectToRecursifTreePipe.decorators = [
|
|
4082
|
-
{ type: i0.Pipe, args: [{
|
|
4083
|
-
name: 'formatObjectToRecursifTree'
|
|
4084
|
-
},] }
|
|
4085
|
-
];
|
|
4086
|
-
|
|
4087
|
-
var FormatObjectToSimpleTreePipe = /** @class */ (function () {
|
|
4088
|
-
function FormatObjectToSimpleTreePipe() {
|
|
4089
|
-
this.childrenProperties = [];
|
|
4090
|
-
this.labelProperties = [];
|
|
4091
|
-
}
|
|
4092
|
-
FormatObjectToSimpleTreePipe.prototype.transform = function (objectList, childrenProperties, labelProperties) {
|
|
4093
|
-
var _this = this;
|
|
4094
|
-
this.childrenProperties = childrenProperties;
|
|
4095
|
-
this.labelProperties = labelProperties;
|
|
4096
|
-
var treeDepth = 0;
|
|
4097
|
-
objectList.forEach(function (object) { return _this.recursiveFormatObjectToSimpleTree(object, treeDepth); });
|
|
4098
|
-
return objectList;
|
|
4099
|
-
};
|
|
4100
|
-
FormatObjectToSimpleTreePipe.prototype.recursiveFormatObjectToSimpleTree = function (object, treeDepth) {
|
|
4101
|
-
for (var property in object) {
|
|
4102
|
-
if (!Object.prototype.hasOwnProperty.call(object, property)) {
|
|
4103
|
-
continue;
|
|
4104
|
-
}
|
|
4105
|
-
if (this.labelProperties.includes(property)) {
|
|
4106
|
-
object.treeLabel = object[property];
|
|
4107
|
-
continue;
|
|
4108
|
-
}
|
|
4109
|
-
object.hasTreeChildren = true;
|
|
4110
|
-
if (!this.childrenProperties.includes(property)) {
|
|
4111
|
-
// No more chrildren
|
|
4112
|
-
object.hasTreeChildren = false;
|
|
4113
|
-
continue;
|
|
4114
|
-
}
|
|
4115
|
-
if (!Array.isArray(object[property])) {
|
|
4116
|
-
throw "Property : \"" + property + "\", is not an array. it could not be transform to a recursive list.";
|
|
4117
|
-
}
|
|
4118
|
-
// Add treeChildren property filled with name children property
|
|
4119
|
-
object.treeChildren = object[property];
|
|
4120
|
-
// call this function recursively until no children can be generated
|
|
4121
|
-
this.recursiveFormatObjectToSimpleTree(object.treeChildren, treeDepth++);
|
|
4122
|
-
break;
|
|
4123
|
-
}
|
|
4124
|
-
};
|
|
4125
|
-
return FormatObjectToSimpleTreePipe;
|
|
4126
|
-
}());
|
|
4127
|
-
FormatObjectToSimpleTreePipe.decorators = [
|
|
4128
|
-
{ type: i0.Pipe, args: [{
|
|
4129
|
-
name: 'formatObjectToSimpleTree'
|
|
4130
|
-
},] }
|
|
4131
|
-
];
|
|
4132
|
-
|
|
4133
|
-
var SelectFiltersPipe = /** @class */ (function () {
|
|
4134
|
-
function SelectFiltersPipe() {
|
|
4135
|
-
}
|
|
4136
|
-
SelectFiltersPipe.prototype.transform = function (items, filterName) {
|
|
4137
|
-
return items.filter(function (item) {
|
|
4138
|
-
var regexp = new RegExp(filterName, 'i');
|
|
4139
|
-
return regexp.test(item.name);
|
|
4140
|
-
});
|
|
4141
|
-
};
|
|
4142
|
-
return SelectFiltersPipe;
|
|
4143
|
-
}());
|
|
4144
|
-
SelectFiltersPipe.decorators = [
|
|
4145
|
-
{ type: i0.Pipe, args: [{
|
|
4146
|
-
name: 'selectFilters'
|
|
4147
|
-
},] }
|
|
4148
|
-
];
|
|
4149
|
-
|
|
4150
|
-
var AreAllOptionsSelectedPipe = /** @class */ (function () {
|
|
4151
|
-
function AreAllOptionsSelectedPipe() {
|
|
4152
|
-
}
|
|
4153
|
-
AreAllOptionsSelectedPipe.prototype.transform = function (options) {
|
|
4154
|
-
return !options.some(function (option) { return !option.checked; });
|
|
4155
|
-
};
|
|
4156
|
-
return AreAllOptionsSelectedPipe;
|
|
4157
|
-
}());
|
|
4158
|
-
AreAllOptionsSelectedPipe.decorators = [
|
|
4159
|
-
{ type: i0.Pipe, args: [{
|
|
4160
|
-
name: 'areAllOptionsSelected',
|
|
4161
|
-
pure: false
|
|
4162
|
-
},] }
|
|
4163
|
-
];
|
|
4164
|
-
|
|
4165
|
-
var exportedPipes = [FormatObjectToRecursifTreePipe, FormatObjectToSimpleTreePipe];
|
|
4166
|
-
var pipes$1 = [
|
|
4167
|
-
SelectFiltersPipe,
|
|
4168
|
-
AreAllOptionsSelectedPipe
|
|
4169
|
-
];
|
|
4170
|
-
var SharedPipes = /** @class */ (function () {
|
|
4171
|
-
function SharedPipes() {
|
|
4172
|
-
}
|
|
4173
|
-
return SharedPipes;
|
|
4174
|
-
}());
|
|
4175
|
-
SharedPipes.decorators = [
|
|
4176
|
-
{ type: i0.NgModule, args: [{
|
|
4177
|
-
imports: [common.CommonModule, forms.FormsModule],
|
|
4178
|
-
declarations: __spread(exportedPipes, pipes$1),
|
|
4179
|
-
exports: __spread(exportedPipes, pipes$1)
|
|
4180
|
-
},] }
|
|
4181
|
-
];
|
|
4182
|
-
|
|
4183
|
-
var TreeModule = /** @class */ (function () {
|
|
4184
|
-
function TreeModule() {
|
|
4185
|
-
}
|
|
4186
|
-
return TreeModule;
|
|
4187
|
-
}());
|
|
4188
|
-
TreeModule.decorators = [
|
|
4189
|
-
{ type: i0.NgModule, args: [{
|
|
4190
|
-
imports: [
|
|
4191
|
-
common.CommonModule,
|
|
4192
|
-
forms.FormsModule,
|
|
4193
|
-
SharedPipes
|
|
4194
|
-
],
|
|
4195
|
-
exports: [TreeComponent],
|
|
4196
|
-
declarations: [TreeComponent],
|
|
4197
|
-
providers: [],
|
|
4198
|
-
},] }
|
|
4199
|
-
];
|
|
4200
|
-
|
|
4201
|
-
var WrapperSidebarComponent = /** @class */ (function () {
|
|
4202
|
-
function WrapperSidebarComponent() {
|
|
4203
|
-
this.reverse = false;
|
|
4204
|
-
}
|
|
4205
|
-
WrapperSidebarComponent.prototype.ngOnInit = function () {
|
|
4206
|
-
};
|
|
4207
|
-
return WrapperSidebarComponent;
|
|
4208
|
-
}());
|
|
4209
|
-
WrapperSidebarComponent.decorators = [
|
|
4210
|
-
{ type: i0.Component, args: [{
|
|
4211
|
-
selector: 'wac-wrapper-sidebar',
|
|
4212
|
-
template: "<div class=\"wac-wrapper-sidebar\" [ngClass]=\"{'reverse': reverse}\">\n <div class=\"wac-wrapper-sidebar__left\">\n <ng-content select=\"[sidebar]\"></ng-content>\n </div>\n <div class=\"wac-wrapper-sidebar__right\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n</div>\n"
|
|
4213
|
-
},] }
|
|
4214
|
-
];
|
|
4215
|
-
WrapperSidebarComponent.ctorParameters = function () { return []; };
|
|
4216
|
-
WrapperSidebarComponent.propDecorators = {
|
|
4217
|
-
reverse: [{ type: i0.Input }]
|
|
4218
|
-
};
|
|
4219
|
-
|
|
4220
|
-
var BreadcrumbsComponent = /** @class */ (function () {
|
|
4221
|
-
function BreadcrumbsComponent() {
|
|
4222
|
-
this.index = 0;
|
|
4223
|
-
this.indexChange = new i0.EventEmitter();
|
|
4224
|
-
}
|
|
4225
|
-
BreadcrumbsComponent.prototype.ngOnInit = function () {
|
|
4226
|
-
};
|
|
4227
|
-
BreadcrumbsComponent.prototype.valueChanged = function (i) {
|
|
4228
|
-
this.index = i;
|
|
4229
|
-
this.indexChange.emit(this.index);
|
|
4230
|
-
};
|
|
4231
|
-
return BreadcrumbsComponent;
|
|
4232
|
-
}());
|
|
4233
|
-
BreadcrumbsComponent.decorators = [
|
|
4234
|
-
{ type: i0.Component, args: [{
|
|
4235
|
-
selector: 'wac-breadcrumbs',
|
|
4236
|
-
template: "<div class=\"wac-breadcrumbs\">\n <div class=\"wac-breadcrumbs__wrapper\">\n <div class=\"wac-breadcrumbs__item\" *ngFor=\"let b of breadcrumbs; let i = index;\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\" (click)=\"valueChanged(i)\">\n <div class=\"round\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\"><span *ngIf=\"!b.valid\"><span *ngIf=\"i < 9\">0</span>{{ i + 1 }}</span><i class=\"fas fa-check\" *ngIf=\"b.valid\"></i></div>\n <div class=\"name\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\">{{ b.name }}</div>\n </div>\n </div>\n</div>\n"
|
|
4237
|
-
},] }
|
|
4238
|
-
];
|
|
4239
|
-
BreadcrumbsComponent.ctorParameters = function () { return []; };
|
|
4240
|
-
BreadcrumbsComponent.propDecorators = {
|
|
4241
|
-
breadcrumbs: [{ type: i0.Input }],
|
|
4242
|
-
indexChange: [{ type: i0.Output }]
|
|
4243
|
-
};
|
|
4244
|
-
|
|
4245
|
-
var CardPriceComponent = /** @class */ (function () {
|
|
4246
|
-
function CardPriceComponent() {
|
|
4247
|
-
this.disabled = false;
|
|
4248
|
-
this.btnTextcolor = '#ffffff';
|
|
4249
|
-
this.extraClasses = 'is-success';
|
|
4250
|
-
this.hideButton = false;
|
|
4251
|
-
this.click = new i0.EventEmitter();
|
|
4252
|
-
}
|
|
4253
|
-
CardPriceComponent.prototype.ngOnInit = function () {
|
|
4254
|
-
};
|
|
4255
|
-
CardPriceComponent.prototype.triggerClick = function () {
|
|
4256
|
-
this.click.emit(true);
|
|
4257
|
-
};
|
|
4258
|
-
return CardPriceComponent;
|
|
4259
|
-
}());
|
|
4260
|
-
CardPriceComponent.decorators = [
|
|
4261
|
-
{ type: i0.Component, args: [{
|
|
4262
|
-
selector: 'wac-card-price',
|
|
4263
|
-
template: "<div class=\"wac-card-price\">\n <strong>{{amount}}</strong>\n <p>{{title}}</p>\n <div class=\"price\">\n <span class=\"amount\">{{price}} <span>{{currency}}</span></span><span class=\"month\">{{priceWording}}</span>\n </div>\n <div class=\"subtitle\">{{subtitle}}</div>\n <div class=\"cta\">\n <wac-button [label]=\"btnLabel\" [extraClasses]=\"extraClasses\" (click)=\"triggerClick()\" [disabled]=\"disabled\" [textcolor]=\"btnTextcolor\" *ngIf=\"!hideButton\"></wac-button>\n </div>\n</div>\n"
|
|
4264
|
-
},] }
|
|
4265
|
-
];
|
|
4266
|
-
CardPriceComponent.ctorParameters = function () { return []; };
|
|
4267
|
-
CardPriceComponent.propDecorators = {
|
|
4268
|
-
amount: [{ type: i0.Input }],
|
|
4269
|
-
title: [{ type: i0.Input }],
|
|
4270
|
-
price: [{ type: i0.Input }],
|
|
4271
|
-
currency: [{ type: i0.Input }],
|
|
4272
|
-
priceWording: [{ type: i0.Input }],
|
|
4273
|
-
subtitle: [{ type: i0.Input }],
|
|
4274
|
-
btnLabel: [{ type: i0.Input }],
|
|
4275
|
-
disabled: [{ type: i0.Input }],
|
|
4276
|
-
btnTextcolor: [{ type: i0.Input }],
|
|
4277
|
-
extraClasses: [{ type: i0.Input }],
|
|
4278
|
-
hideButton: [{ type: i0.Input }],
|
|
4279
|
-
click: [{ type: i0.Output }]
|
|
4280
|
-
};
|
|
4281
|
-
|
|
4282
|
-
var TokenCheckComponent = /** @class */ (function () {
|
|
4283
|
-
function TokenCheckComponent() {
|
|
4284
|
-
this.warning = false;
|
|
4285
|
-
}
|
|
4286
|
-
TokenCheckComponent.prototype.ngOnInit = function () {
|
|
4287
|
-
};
|
|
4288
|
-
return TokenCheckComponent;
|
|
4289
|
-
}());
|
|
4290
|
-
TokenCheckComponent.decorators = [
|
|
4291
|
-
{ type: i0.Component, args: [{
|
|
4292
|
-
selector: 'wac-token-check',
|
|
4293
|
-
template: "<div class=\"wac-token-check\">\n <span [innerHTML]=\"label\"></span> : <span [innerHTML]=\"value\" [ngClass]=\"{'warning': value > max}\"></span> / <strong [innerHTML]=\"max\"></strong>\n</div>\n"
|
|
4294
|
-
},] }
|
|
4295
|
-
];
|
|
4296
|
-
TokenCheckComponent.ctorParameters = function () { return []; };
|
|
4297
|
-
TokenCheckComponent.propDecorators = {
|
|
4298
|
-
label: [{ type: i0.Input }],
|
|
4299
|
-
value: [{ type: i0.Input }],
|
|
4300
|
-
max: [{ type: i0.Input }]
|
|
4301
|
-
};
|
|
4302
|
-
|
|
4303
|
-
var BlockWithCheckboxComponent = /** @class */ (function () {
|
|
4304
|
-
function BlockWithCheckboxComponent() {
|
|
4305
|
-
this.selected = false;
|
|
4306
|
-
this.iconCopy = 'fa-solid fa-copy';
|
|
4307
|
-
this.iconWorld = 'fa-thin fa-globe';
|
|
4308
|
-
this.copyAction = new i0.EventEmitter();
|
|
4309
|
-
this.worldAction = new i0.EventEmitter();
|
|
4310
|
-
this.checkboxAction = new i0.EventEmitter();
|
|
4311
|
-
}
|
|
4312
|
-
BlockWithCheckboxComponent.prototype.ngOnInit = function () {
|
|
4313
|
-
};
|
|
4314
|
-
BlockWithCheckboxComponent.prototype.eventSelected = function (event) {
|
|
4315
|
-
this.selected = !this.selected;
|
|
4316
|
-
console.log(this.selected);
|
|
4317
|
-
this.checkboxAction.emit(this.selected);
|
|
4318
|
-
};
|
|
4319
|
-
BlockWithCheckboxComponent.prototype.eventCopy = function () {
|
|
4320
|
-
this.copyAction.emit(true);
|
|
4321
|
-
};
|
|
4322
|
-
BlockWithCheckboxComponent.prototype.eventWorld = function () {
|
|
4323
|
-
this.worldAction.emit(true);
|
|
4324
|
-
};
|
|
4325
|
-
return BlockWithCheckboxComponent;
|
|
4326
|
-
}());
|
|
4327
|
-
BlockWithCheckboxComponent.decorators = [
|
|
4328
|
-
{ type: i0.Component, args: [{
|
|
4329
|
-
selector: 'wac-block-with-checkbox',
|
|
4330
|
-
template: "<div class=\"block-with-checkbox\">\n <div class=\"block-with-checkbox__left\">\n <div class=\"wac-radio-block\">\n <div class=\"wac-radio__row\">\n <input type=\"checkbox\" [value]=\"selected\" (click)=\"eventSelected($event)\" id=\"radioBlock\">\n <label for=\"radioBlock\"></label>\n </div>\n </div>\n </div>\n <div class=\"block-with-checkbox__center\">\n <ng-content></ng-content>\n </div>\n <div class=\"block-with-checkbox__right\">\n <div><wac-button extraClasses=\"is-blue opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconCopy\" (click)=\"eventCopy()\"></wac-button></div>\n <div><wac-button extraClasses=\"is-green opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconWorld\" (click)=\"eventWorld()\"></wac-button></div>\n </div>\n</div>\n"
|
|
4331
|
-
},] }
|
|
4332
|
-
];
|
|
4333
|
-
BlockWithCheckboxComponent.ctorParameters = function () { return []; };
|
|
4334
|
-
BlockWithCheckboxComponent.propDecorators = {
|
|
4335
|
-
selected: [{ type: i0.Input }],
|
|
4336
|
-
iconCopy: [{ type: i0.Input }],
|
|
4337
|
-
iconWorld: [{ type: i0.Input }],
|
|
4338
|
-
copyAction: [{ type: i0.Output }],
|
|
4339
|
-
worldAction: [{ type: i0.Output }],
|
|
4340
|
-
checkboxAction: [{ type: i0.Output }]
|
|
4341
|
-
};
|
|
4342
|
-
|
|
4343
|
-
var ConfirmDeleteComponent = /** @class */ (function () {
|
|
4344
|
-
function ConfirmDeleteComponent() {
|
|
4345
|
-
this.open = false;
|
|
4346
|
-
this.confirm = new i0.EventEmitter();
|
|
4347
|
-
this.backgroundColor = '#fff';
|
|
4348
|
-
this.borderRadius = '0px';
|
|
4349
|
-
}
|
|
4350
|
-
ConfirmDeleteComponent.prototype.ngOnInit = function () {
|
|
4351
|
-
};
|
|
4352
|
-
ConfirmDeleteComponent.prototype.eventCancel = function (event) {
|
|
4353
|
-
this.confirm.emit(false);
|
|
4354
|
-
this.open = false;
|
|
4355
|
-
};
|
|
4356
|
-
ConfirmDeleteComponent.prototype.eventConfirm = function (event) {
|
|
4357
|
-
this.confirm.emit(true);
|
|
4358
|
-
this.open = false;
|
|
4359
|
-
};
|
|
4360
|
-
return ConfirmDeleteComponent;
|
|
4361
|
-
}());
|
|
4362
|
-
ConfirmDeleteComponent.decorators = [
|
|
4363
|
-
{ type: i0.Component, args: [{
|
|
4364
|
-
selector: 'wac-confirm-delete',
|
|
4365
|
-
template: "<div class=\"wac-confirm-delete\" [ngClass]=\"{'is-open': open}\" [style.backgroundColor]=\"backgroundColor\" [style.borderRadius]=\"borderRadius\">\n <div>\n <span [innerHTML]=\"label\"></span>\n </div>\n <div>\n <div><wac-button [label]=\"labelCancel\" [extraClasses]=\"'is-outlined is-grey'\" (click)=\"eventCancel($event)\"></wac-button></div>\n <div><wac-button [label]=\"labelConfirm\" [extraClasses]=\"'is-danger'\" (click)=\"eventConfirm($event)\"></wac-button></div>\n </div>\n</div>\n"
|
|
4366
|
-
},] }
|
|
4367
|
-
];
|
|
4368
|
-
ConfirmDeleteComponent.ctorParameters = function () { return []; };
|
|
4369
|
-
ConfirmDeleteComponent.propDecorators = {
|
|
4370
|
-
open: [{ type: i0.Input }],
|
|
4371
|
-
label: [{ type: i0.Input }],
|
|
4372
|
-
labelCancel: [{ type: i0.Input }],
|
|
4373
|
-
labelConfirm: [{ type: i0.Input }],
|
|
4374
|
-
confirm: [{ type: i0.Output }],
|
|
4375
|
-
backgroundColor: [{ type: i0.Input }],
|
|
4376
|
-
borderRadius: [{ type: i0.Input }]
|
|
4377
|
-
};
|
|
4378
|
-
|
|
4379
|
-
var MosaicComponent = /** @class */ (function () {
|
|
4380
|
-
function MosaicComponent() {
|
|
4381
|
-
this.isLoading = true;
|
|
4382
|
-
}
|
|
4383
|
-
MosaicComponent.prototype.ngOnInit = function () {
|
|
4384
|
-
if (this.items) {
|
|
4385
|
-
var splitItems = this.sliceIntoChunks(this.items, (this.items.length / 3));
|
|
4386
|
-
this.columnLeft = splitItems[0];
|
|
4387
|
-
this.columnCenter = splitItems[1];
|
|
4388
|
-
this.columnRight = splitItems[2];
|
|
4389
|
-
}
|
|
4390
|
-
this.isLoading = false;
|
|
4391
|
-
};
|
|
4392
|
-
MosaicComponent.prototype.sliceIntoChunks = function (arr, chunkSize) {
|
|
4393
|
-
var res = [];
|
|
4394
|
-
for (var i = 0; i < arr.length; i += chunkSize) {
|
|
4395
|
-
var chunk = arr.slice(i, i + chunkSize);
|
|
4396
|
-
res.push(chunk);
|
|
4397
|
-
}
|
|
4398
|
-
return res;
|
|
4399
|
-
};
|
|
4400
|
-
return MosaicComponent;
|
|
4401
|
-
}());
|
|
4402
|
-
MosaicComponent.decorators = [
|
|
4403
|
-
{ type: i0.Component, args: [{
|
|
4404
|
-
selector: 'wac-mosaic',
|
|
4405
|
-
template: "<div class=\"wac-mosaic__loader\" *ngIf=\"isLoading\">\n <wac-loader></wac-loader>\n</div>\n<div class=\"wac-mosaic\" *ngIf=\"!isLoading\">\n <div class=\"wac-mosaic__wrapper\">\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnLeft\">\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnLeft; let i = index;\">\n <img [src]=\"img\" />\n </div>\n </div>\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnCenter\" >\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnCenter; let i = index;\">\n <img [src]=\"img\" />\n </div>\n </div>\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnRight\">\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnRight; let i = index;\">\n <img [src]=\"img\" />\n </div>\n </div>\n </div>\n</div>\n"
|
|
4406
|
-
},] }
|
|
4407
|
-
];
|
|
4408
|
-
MosaicComponent.ctorParameters = function () { return []; };
|
|
4409
|
-
MosaicComponent.propDecorators = {
|
|
4410
|
-
items: [{ type: i0.Input }]
|
|
4411
|
-
};
|
|
4412
|
-
|
|
4413
|
-
var components = [
|
|
4414
|
-
TagComponent,
|
|
4415
|
-
TabComponent,
|
|
4416
|
-
ButtonComponent,
|
|
4417
|
-
InfoComponent,
|
|
4418
|
-
SettingsComponent,
|
|
4419
|
-
DeleteComponent,
|
|
4420
|
-
DropdownComponent,
|
|
4421
|
-
ImageComponent,
|
|
4422
|
-
BackComponent,
|
|
4423
|
-
SeparatorComponent,
|
|
4424
|
-
LogoComponent,
|
|
4425
|
-
RadioComponent,
|
|
4426
|
-
StateComponent,
|
|
4427
|
-
LabelComponent,
|
|
4428
|
-
CalendarComponent,
|
|
4429
|
-
WzEditInPlaceComponent,
|
|
4430
|
-
AlertComponent,
|
|
4431
|
-
HeaderPageComponent,
|
|
4432
|
-
SwitchComponent,
|
|
4433
|
-
LinkComponent,
|
|
4434
|
-
H1Component,
|
|
4435
|
-
H2Component,
|
|
4436
|
-
H3Component,
|
|
4437
|
-
H4Component,
|
|
4438
|
-
TextComponent,
|
|
4439
|
-
TextAreaComponent,
|
|
4440
|
-
UploadComponent,
|
|
4441
|
-
SelectInTextComponent,
|
|
4442
|
-
SelectComponent,
|
|
4443
|
-
MultipleSearchComponent,
|
|
4444
|
-
MultipleSearchPlusComponent,
|
|
4445
|
-
InputWithSelectComponent,
|
|
4446
|
-
PopinComponent,
|
|
4447
|
-
FreePopinComponent,
|
|
4448
|
-
BlockComponent,
|
|
4449
|
-
WrapperComponent,
|
|
4450
|
-
FiltersComponent,
|
|
4451
|
-
WrapperBlocsComponent,
|
|
4452
|
-
SnackbarComponent,
|
|
4453
|
-
SearchComponent,
|
|
4454
|
-
SelectedListComponent,
|
|
4455
|
-
WrapperSidebarComponent,
|
|
4456
|
-
BreadcrumbsComponent,
|
|
4457
|
-
CardPriceComponent,
|
|
4458
|
-
TokenCheckComponent,
|
|
4459
|
-
BlockWithCheckboxComponent,
|
|
4460
|
-
ConfirmDeleteComponent,
|
|
4461
|
-
MosaicComponent
|
|
4462
|
-
];
|
|
4463
|
-
var exportsFromModule = [
|
|
4464
|
-
PaginationComponent,
|
|
4465
|
-
TableComponent,
|
|
4466
|
-
TableColumn,
|
|
4467
|
-
CheckBoxRow,
|
|
4468
|
-
TableColumnHeader,
|
|
4469
|
-
TableRow,
|
|
4470
|
-
InputSearchComponent,
|
|
4471
|
-
InputComponent,
|
|
4472
|
-
TooltipComponent,
|
|
4473
|
-
CheckboxComponent,
|
|
4474
|
-
LoaderComponent,
|
|
4475
|
-
ProgressBarComponent,
|
|
4476
|
-
TreeComponent
|
|
4477
|
-
];
|
|
4478
|
-
var SharedComponentsModule = /** @class */ (function () {
|
|
4479
|
-
function SharedComponentsModule() {
|
|
4480
|
-
}
|
|
4481
|
-
return SharedComponentsModule;
|
|
4482
|
-
}());
|
|
4483
|
-
SharedComponentsModule.decorators = [
|
|
4484
|
-
{ type: i0.NgModule, args: [{
|
|
4485
|
-
imports: [
|
|
4486
|
-
common.CommonModule,
|
|
4487
|
-
forms.FormsModule,
|
|
4488
|
-
i1$1.NwbAllModule,
|
|
4489
|
-
core.TranslateModule.forChild(),
|
|
4490
|
-
forms.ReactiveFormsModule,
|
|
4491
|
-
SharedDirectives,
|
|
4492
|
-
SharedPipes,
|
|
4493
|
-
table.CdkTableModule,
|
|
4494
|
-
ngxChips.TagInputModule,
|
|
4495
|
-
PaginationModule,
|
|
4496
|
-
TableModule,
|
|
4497
|
-
InputSearchModule,
|
|
4498
|
-
TooltipModule,
|
|
4499
|
-
CheckboxModule,
|
|
4500
|
-
InputModule,
|
|
4501
|
-
LoaderModule,
|
|
4502
|
-
ProgressBarModule,
|
|
4503
|
-
ngxPerfectScrollbar.PerfectScrollbarModule,
|
|
4504
|
-
AlertPopupModule,
|
|
4505
|
-
router.RouterModule,
|
|
4506
|
-
ngxAutosize.AutosizeModule,
|
|
4507
|
-
TreeModule
|
|
4508
|
-
],
|
|
4509
|
-
declarations: components,
|
|
4510
|
-
exports: __spread(components, exportsFromModule)
|
|
4511
|
-
},] }
|
|
4512
|
-
];
|
|
4513
|
-
|
|
4514
|
-
var WiziComponentsModule = /** @class */ (function () {
|
|
4515
|
-
function WiziComponentsModule() {
|
|
4516
|
-
}
|
|
4517
|
-
return WiziComponentsModule;
|
|
4518
|
-
}());
|
|
4519
|
-
WiziComponentsModule.decorators = [
|
|
4520
|
-
{ type: i0.NgModule, args: [{
|
|
4521
|
-
imports: [
|
|
4522
|
-
common.CommonModule,
|
|
4523
|
-
SharedComponentsModule,
|
|
4524
|
-
SharedDirectives,
|
|
4525
|
-
SharedPipes,
|
|
4526
|
-
i1$1.NwbAllModule
|
|
4527
|
-
],
|
|
4528
|
-
exports: [SharedComponentsModule, SharedDirectives, SharedPipes]
|
|
4529
|
-
},] }
|
|
4530
|
-
];
|
|
4531
|
-
|
|
4532
|
-
var TableFiltersGroup = /** @class */ (function (_super) {
|
|
4533
|
-
__extends(TableFiltersGroup, _super);
|
|
4534
|
-
function TableFiltersGroup() {
|
|
4535
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
4536
|
-
}
|
|
4537
|
-
TableFiltersGroup.prototype.set = function (key, value) {
|
|
4538
|
-
_super.prototype.set.call(this, key, value);
|
|
4539
|
-
};
|
|
4540
|
-
TableFiltersGroup.prototype.resetToFirstPage = function () {
|
|
4541
|
-
this.set("currentPage", 1);
|
|
4542
|
-
};
|
|
4543
|
-
return TableFiltersGroup;
|
|
4544
|
-
}(i1$1.NwbFilterGroup));
|
|
4545
|
-
|
|
4546
|
-
/*
|
|
4547
|
-
* Public API Surface of angular-components
|
|
4548
|
-
*/
|
|
4549
|
-
|
|
4550
|
-
/**
|
|
4551
|
-
* Generated bundle index. Do not edit.
|
|
4552
|
-
*/
|
|
4553
|
-
|
|
4554
|
-
exports.AbstractDebounceDirective = AbstractDebounceDirective;
|
|
4555
|
-
exports.AlertComponent = AlertComponent;
|
|
4556
|
-
exports.AlertPopupComponent = AlertPopupComponent;
|
|
4557
|
-
exports.AlertPopupModule = AlertPopupModule;
|
|
4558
|
-
exports.AlertPopupService = AlertPopupService;
|
|
4559
|
-
exports.AreAllOptionsSelectedPipe = AreAllOptionsSelectedPipe;
|
|
4560
|
-
exports.AutoHideDirective = AutoHideDirective;
|
|
4561
|
-
exports.BackComponent = BackComponent;
|
|
4562
|
-
exports.BlockComponent = BlockComponent;
|
|
4563
|
-
exports.BlockWithCheckboxComponent = BlockWithCheckboxComponent;
|
|
4564
|
-
exports.BreadcrumbsComponent = BreadcrumbsComponent;
|
|
4565
|
-
exports.ButtonComponent = ButtonComponent;
|
|
4566
|
-
exports.CalendarComponent = CalendarComponent;
|
|
4567
|
-
exports.CardPriceComponent = CardPriceComponent;
|
|
4568
|
-
exports.CheckBoxRow = CheckBoxRow;
|
|
4569
|
-
exports.CheckboxComponent = CheckboxComponent;
|
|
4570
|
-
exports.ConfirmDeleteComponent = ConfirmDeleteComponent;
|
|
4571
|
-
exports.DebounceKeyupDirective = DebounceKeyupDirective;
|
|
4572
|
-
exports.DeleteComponent = DeleteComponent;
|
|
4573
|
-
exports.DropdownComponent = DropdownComponent;
|
|
4574
|
-
exports.FiltersComponent = FiltersComponent;
|
|
4575
|
-
exports.FiltersTableService = FiltersTableService;
|
|
4576
|
-
exports.FormatObjectToRecursifTreePipe = FormatObjectToRecursifTreePipe;
|
|
4577
|
-
exports.FormatObjectToSimpleTreePipe = FormatObjectToSimpleTreePipe;
|
|
4578
|
-
exports.FreePopinComponent = FreePopinComponent;
|
|
4579
|
-
exports.H1Component = H1Component;
|
|
4580
|
-
exports.H2Component = H2Component;
|
|
4581
|
-
exports.H3Component = H3Component;
|
|
4582
|
-
exports.H4Component = H4Component;
|
|
4583
|
-
exports.HeaderPageComponent = HeaderPageComponent;
|
|
4584
|
-
exports.HtmlContainer = HtmlContainer;
|
|
4585
|
-
exports.ImageComponent = ImageComponent;
|
|
4586
|
-
exports.InfoComponent = InfoComponent;
|
|
4587
|
-
exports.InputComponent = InputComponent;
|
|
4588
|
-
exports.InputSearchComponent = InputSearchComponent;
|
|
4589
|
-
exports.InputWithSelectComponent = InputWithSelectComponent;
|
|
4590
|
-
exports.KeypressEnterDirective = KeypressEnterDirective;
|
|
4591
|
-
exports.LabelComponent = LabelComponent;
|
|
4592
|
-
exports.LinkComponent = LinkComponent;
|
|
4593
|
-
exports.LoaderComponent = LoaderComponent;
|
|
4594
|
-
exports.LogoComponent = LogoComponent;
|
|
4595
|
-
exports.MosaicComponent = MosaicComponent;
|
|
4596
|
-
exports.MultipleSearchComponent = MultipleSearchComponent;
|
|
4597
|
-
exports.MultipleSearchPlusComponent = MultipleSearchPlusComponent;
|
|
4598
|
-
exports.PaginationComponent = PaginationComponent;
|
|
4599
|
-
exports.PopinComponent = PopinComponent;
|
|
4600
|
-
exports.ProgressBarComponent = ProgressBarComponent;
|
|
4601
|
-
exports.RadioComponent = RadioComponent;
|
|
4602
|
-
exports.SearchComponent = SearchComponent;
|
|
4603
|
-
exports.SelectComponent = SelectComponent;
|
|
4604
|
-
exports.SelectFiltersPipe = SelectFiltersPipe;
|
|
4605
|
-
exports.SelectInTextComponent = SelectInTextComponent;
|
|
4606
|
-
exports.SelectedListComponent = SelectedListComponent;
|
|
4607
|
-
exports.SeparatorComponent = SeparatorComponent;
|
|
4608
|
-
exports.SettingsComponent = SettingsComponent;
|
|
4609
|
-
exports.SharedComponentsModule = SharedComponentsModule;
|
|
4610
|
-
exports.SharedDirectives = SharedDirectives;
|
|
4611
|
-
exports.SharedPipes = SharedPipes;
|
|
4612
|
-
exports.SnackbarComponent = SnackbarComponent;
|
|
4613
|
-
exports.StateComponent = StateComponent;
|
|
4614
|
-
exports.SwitchComponent = SwitchComponent;
|
|
4615
|
-
exports.TabComponent = TabComponent;
|
|
4616
|
-
exports.TableColumn = TableColumn;
|
|
4617
|
-
exports.TableColumnHeader = TableColumnHeader;
|
|
4618
|
-
exports.TableComponent = TableComponent;
|
|
4619
|
-
exports.TableFiltersGroup = TableFiltersGroup;
|
|
4620
|
-
exports.TableRow = TableRow;
|
|
4621
|
-
exports.TagComponent = TagComponent;
|
|
4622
|
-
exports.TextAreaComponent = TextAreaComponent;
|
|
4623
|
-
exports.TextComponent = TextComponent;
|
|
4624
|
-
exports.TokenCheckComponent = TokenCheckComponent;
|
|
4625
|
-
exports.TooltipComponent = TooltipComponent;
|
|
4626
|
-
exports.TreeComponent = TreeComponent;
|
|
4627
|
-
exports.TreeModule = TreeModule;
|
|
4628
|
-
exports.UploadComponent = UploadComponent;
|
|
4629
|
-
exports.VarDirective = VarDirective;
|
|
4630
|
-
exports.WiziComponentsModule = WiziComponentsModule;
|
|
4631
|
-
exports.WrapperBlocsComponent = WrapperBlocsComponent;
|
|
4632
|
-
exports.WrapperComponent = WrapperComponent;
|
|
4633
|
-
exports.WrapperSidebarComponent = WrapperSidebarComponent;
|
|
4634
|
-
exports.WzEditInPlaceComponent = WzEditInPlaceComponent;
|
|
4635
|
-
exports.ZindexToggleDirective = ZindexToggleDirective;
|
|
4636
|
-
exports.ɵa = DomService;
|
|
4637
|
-
exports.ɵb = PaginationModule;
|
|
4638
|
-
exports.ɵc = PagniationArrayTotalPages;
|
|
4639
|
-
exports.ɵd = PagniationIsLastPage;
|
|
4640
|
-
exports.ɵe = PagniationText;
|
|
4641
|
-
exports.ɵf = TableModule;
|
|
4642
|
-
exports.ɵg = InputSearchModule;
|
|
4643
|
-
exports.ɵh = InputModule;
|
|
4644
|
-
exports.ɵi = TooltipModule;
|
|
4645
|
-
exports.ɵj = ProgressBarModule;
|
|
4646
|
-
exports.ɵk = LoaderModule;
|
|
4647
|
-
exports.ɵl = CheckboxModule;
|
|
4648
|
-
exports.ɵm = inOutY;
|
|
4649
|
-
exports.ɵn = TableCheckboxIdService;
|
|
4650
|
-
exports.ɵo = MultiSelectionService;
|
|
4651
|
-
exports.ɵp = inOutX;
|
|
4652
|
-
|
|
4653
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4654
|
-
|
|
4655
|
-
})));
|
|
4656
|
-
//# sourceMappingURL=wizishop-angular-components.umd.js.map
|