@empathyco/x-components 3.0.0-alpha.32 → 3.0.0-alpha.36
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/CHANGELOG.md +116 -0
- package/core/index.js +24 -22
- package/core/index.js.map +1 -1
- package/docs/API-reference/api/x-adapter.empathyrelatedtag.md +1 -0
- package/docs/API-reference/api/x-adapter.empathyrelatedtag.source.md +11 -0
- package/docs/API-reference/api/x-components.baseidtogglepanel.md +0 -1
- package/docs/API-reference/api/x-components.baseresultlink.md +1 -1
- package/docs/API-reference/api/x-components.featurelocation.md +1 -1
- package/docs/API-reference/api/x-components.fixedheaderandasideslayout.isbackdropvisible.md +11 -0
- package/docs/API-reference/api/x-components.fixedheaderandasideslayout.leftasideanimation.md +11 -0
- package/docs/API-reference/api/x-components.fixedheaderandasideslayout.md +30 -0
- package/docs/API-reference/api/x-components.fixedheaderandasideslayout.rightasideanimation.md +11 -0
- package/docs/API-reference/api/x-components.fixedheaderandasideslayout.scrollposition.md +11 -0
- package/docs/API-reference/api/x-components.fixedheaderandasideslayout.setposition.md +22 -0
- package/docs/API-reference/api/x-components.getrootxcomponent.md +2 -2
- package/docs/API-reference/api/x-components.isxcomponent.md +2 -2
- package/docs/API-reference/api/x-components.maybearray.md +13 -0
- package/docs/API-reference/api/x-components.md +12 -7
- package/docs/API-reference/api/x-components.namespaceddebounce.md +2 -2
- package/docs/API-reference/api/x-components.namespacedthrottle.md +2 -2
- package/docs/API-reference/api/{x-components.namespacedtimeretrieving.md → x-components.namespacedtimeselector.md} +3 -3
- package/docs/API-reference/api/x-components.namespacedtimewireoperator.md +3 -3
- package/docs/API-reference/api/x-components.relatedtag.highlightcurated.md +13 -0
- package/docs/API-reference/api/x-components.relatedtag.md +1 -0
- package/docs/API-reference/api/x-components.relatedtags.highlightcurated.md +13 -0
- package/docs/API-reference/api/x-components.searchxevents.md +2 -0
- package/docs/API-reference/api/x-components.searchxevents.userclickedabanner.md +13 -0
- package/docs/API-reference/api/x-components.searchxevents.userclickedapromoted.md +13 -0
- package/docs/API-reference/api/x-components.setconsent.md +1 -1
- package/docs/API-reference/api/x-components.setquerytaggingdebounce.md +1 -1
- package/docs/API-reference/api/x-components.setsessionduration.md +1 -1
- package/docs/API-reference/api/x-components.snippetconfig.isspa.md +13 -0
- package/docs/API-reference/api/x-components.snippetconfig.md +1 -0
- package/docs/API-reference/api/x-components.tagicon.md +11 -0
- package/docs/API-reference/api/x-components.throttle.md +3 -3
- package/docs/API-reference/api/x-components.timedwireoperatoroptions.cancelon.md +13 -0
- package/docs/API-reference/api/x-components.timedwireoperatoroptions.forceon.md +13 -0
- package/docs/API-reference/api/x-components.timedwireoperatoroptions.md +21 -0
- package/docs/API-reference/api/{x-components.timeretrieving.md → x-components.timeselector.md} +3 -3
- package/docs/API-reference/api/x-components.trackaddtocartwire.md +13 -0
- package/docs/API-reference/api/{x-components.trackwire.md → x-components.trackquerywire.md} +3 -3
- package/docs/API-reference/api/x-components.trackresultclickedwire.md +13 -0
- package/docs/API-reference/api/x-components.xeventstypes.md +0 -1
- package/docs/API-reference/api/x-components.xinstaller.md +1 -1
- package/docs/API-reference/api/x-types.relatedtag.iscurated.md +13 -0
- package/docs/API-reference/api/x-types.relatedtag.md +1 -0
- package/docs/API-reference/components/common/animations/x-components.animate-width.md +6 -7
- package/docs/API-reference/components/common/animations/x-components.collapse-from-top.md +7 -8
- package/docs/API-reference/components/common/animations/x-components.collapse-height.md +8 -9
- package/docs/API-reference/components/common/animations/x-components.collapse-width.md +8 -9
- package/docs/API-reference/components/common/animations/x-components.cross-fade.md +7 -8
- package/docs/API-reference/components/common/animations/x-components.fade-and-slide.md +7 -8
- package/docs/API-reference/components/common/animations/x-components.staggered-fade-and-slide.md +7 -8
- package/docs/API-reference/components/common/{x-components.staggering-transition-group.md → animations/x-components.staggering-transition-group.md} +8 -9
- package/docs/API-reference/components/common/animations/x-components.translate-from-left.md +7 -8
- package/docs/API-reference/components/common/animations/x-components.translate-from-right.md +7 -8
- package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-dropdown.md +12 -13
- package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-list.md +11 -12
- package/docs/API-reference/components/common/currency/x-components.base-currency.md +9 -12
- package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md +9 -10
- package/docs/API-reference/components/common/filters/labels/x-components.base-rating-filter-label.md +11 -12
- package/docs/API-reference/components/common/icons/x-components.arrow.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.bag.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.bar-code.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.barcode-tiny.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.cart.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.check-tiny.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.check.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.checkbox-card-selected.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.checkbox-card-unselected.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.checkbox-selected.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.checkbox-unselected.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.chevron-down.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.chevron-left.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.chevron-right.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.chevron-tiny-down.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.chevron-tiny-left.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.chevron-tiny-right.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.chevron-tiny-up.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.chevron-up.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.cross-tiny.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.cross.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.filters.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.grid-1-col.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.grid-2-col.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.hide.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.history-tiny.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.history.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.menu.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.minus-tiny.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.minus.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.nq-1.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.nq-2.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.nq-3.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.nq-4.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.plus.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.search-tiny.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.search.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.show.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.star.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.tag.md +7 -0
- package/docs/API-reference/components/common/icons/x-components.trash-open.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.trash.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.trending-tiny.md +4 -5
- package/docs/API-reference/components/common/icons/x-components.trending.md +3 -4
- package/docs/API-reference/components/common/icons/x-components.user.md +3 -4
- package/docs/API-reference/components/common/layouts/x-components.fixed-header-and-asides-layout.md +8 -9
- package/docs/API-reference/components/common/layouts/x-components.multi-column-max-width-layout.md +8 -9
- package/docs/API-reference/components/common/layouts/x-components.single-column-layout.md +6 -5
- package/docs/API-reference/components/common/modals/x-components.base-events-modal-close.md +10 -11
- package/docs/API-reference/components/common/modals/x-components.base-events-modal-open.md +10 -11
- package/docs/API-reference/components/common/modals/x-components.base-events-modal.md +15 -16
- package/docs/API-reference/components/common/modals/x-components.base-id-modal-close.md +9 -10
- package/docs/API-reference/components/common/modals/x-components.base-id-modal-open.md +9 -10
- package/docs/API-reference/components/common/modals/x-components.base-id-modal.md +11 -12
- package/docs/API-reference/components/common/modals/x-components.base-modal.md +7 -8
- package/docs/API-reference/components/common/panels/x-components.base-header-toggle-panel.md +11 -12
- package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel-button.md +10 -11
- package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel.md +10 -11
- package/docs/API-reference/components/common/panels/x-components.base-toggle-panel.md +8 -9
- package/docs/API-reference/components/common/result/x-components.base-result-add-to-cart.md +9 -10
- package/docs/API-reference/components/common/result/x-components.base-result-current-price.md +10 -11
- package/docs/API-reference/components/common/result/x-components.base-result-fallback-image.md +4 -5
- package/docs/API-reference/components/common/result/x-components.base-result-image.md +9 -10
- package/docs/API-reference/components/common/result/x-components.base-result-link.md +15 -24
- package/docs/API-reference/components/common/result/x-components.base-result-placeholder-image.md +4 -5
- package/docs/API-reference/components/common/result/x-components.base-result-previous-price.md +9 -10
- package/docs/API-reference/components/common/scroll/x-components.base-scroll.md +8 -9
- package/docs/API-reference/components/common/suggestions/x-components.base-suggestion.md +10 -11
- package/docs/API-reference/components/common/suggestions/x-components.base-suggestions.md +7 -8
- package/docs/API-reference/components/common/x-components.auto-progress-bar.md +5 -6
- package/docs/API-reference/components/common/x-components.base-dropdown.md +8 -9
- package/docs/API-reference/components/common/x-components.base-event-button.md +11 -12
- package/docs/API-reference/components/common/x-components.base-grid.md +15 -16
- package/docs/API-reference/components/common/x-components.base-keyboard-navigation.md +10 -11
- package/docs/API-reference/components/common/x-components.base-rating.md +10 -11
- package/docs/API-reference/components/common/x-components.base-variable-column-grid.md +10 -11
- package/docs/API-reference/components/common/x-components.global-x-bus.md +6 -7
- package/docs/API-reference/components/common/x-components.items-list.md +6 -5
- package/docs/API-reference/components/common/x-components.location-provider.md +6 -7
- package/docs/API-reference/components/common/x-components.sliding-panel.md +10 -11
- package/docs/API-reference/components/common/x-components.snippet-callbacks.md +6 -7
- package/docs/API-reference/components/device/x-components.device-detector.md +8 -9
- package/docs/API-reference/components/empathize/x-components.empathize.md +8 -9
- package/docs/API-reference/components/extra-params/x-components.extra-params.md +7 -8
- package/docs/API-reference/components/extra-params/x-components.renderless-extra-param.md +9 -10
- package/docs/API-reference/components/extra-params/x-components.snippet-config-extra-params.md +6 -7
- package/docs/API-reference/components/facets/x-components.clear-filters.md +9 -10
- package/docs/API-reference/components/facets/x-components.facets/facets-provider.md +10 -11
- package/docs/API-reference/components/facets/x-components.facets/facets.md +12 -13
- package/docs/API-reference/components/facets/x-components.filters/all-filter.md +15 -16
- package/docs/API-reference/components/facets/x-components.filters/base-filter.md +12 -13
- package/docs/API-reference/components/facets/x-components.filters/editable-number-range-filter.md +12 -13
- package/docs/API-reference/components/facets/x-components.filters/hierarchical-filter.md +9 -10
- package/docs/API-reference/components/facets/x-components.filters/number-range-filter.md +9 -10
- package/docs/API-reference/components/facets/x-components.filters/renderless-filter.md +12 -13
- package/docs/API-reference/components/facets/x-components.filters/simple-filter.md +10 -11
- package/docs/API-reference/components/facets/x-components.lists/exclude-filters-with-no-results.md +11 -12
- package/docs/API-reference/components/facets/x-components.lists/filters-list.md +11 -12
- package/docs/API-reference/components/facets/x-components.lists/filters-search.md +9 -10
- package/docs/API-reference/components/facets/x-components.lists/selected-filters-list.md +12 -13
- package/docs/API-reference/components/facets/x-components.lists/selected-filters.md +11 -12
- package/docs/API-reference/components/facets/x-components.lists/sliced-filters.md +11 -12
- package/docs/API-reference/components/facets/x-components.lists/sorted-filters.md +11 -12
- package/docs/API-reference/components/history-queries/x-components.clear-history-queries.md +10 -11
- package/docs/API-reference/components/history-queries/x-components.history-queries.md +10 -11
- package/docs/API-reference/components/history-queries/x-components.history-query.md +11 -12
- package/docs/API-reference/components/history-queries/x-components.remove-history-query.md +10 -11
- package/docs/API-reference/components/identifier-results/x-components.identifier-result.md +9 -10
- package/docs/API-reference/components/identifier-results/x-components.identifier-results.md +10 -11
- package/docs/API-reference/components/next-queries/x-components.next-queries-list.md +7 -8
- package/docs/API-reference/components/next-queries/x-components.next-queries.md +14 -15
- package/docs/API-reference/components/next-queries/x-components.next-query.md +11 -12
- package/docs/API-reference/components/popular-searches/x-components.popular-search.md +11 -12
- package/docs/API-reference/components/popular-searches/x-components.popular-searches.md +13 -14
- package/docs/API-reference/components/query-suggestions/x-components.query-suggestion.md +8 -9
- package/docs/API-reference/components/query-suggestions/x-components.query-suggestions.md +8 -9
- package/docs/API-reference/components/recommendations/x-components.recommendations.md +14 -15
- package/docs/API-reference/components/related-tags/x-components.related-tag.md +19 -17
- package/docs/API-reference/components/related-tags/x-components.related-tags.md +19 -19
- package/docs/API-reference/components/scroll/x-components.main-scroll-item.md +7 -8
- package/docs/API-reference/components/scroll/x-components.main-scroll.md +7 -8
- package/docs/API-reference/components/scroll/x-components.scroll-to-top.md +9 -10
- package/docs/API-reference/components/scroll/x-components.scroll.md +25 -30
- package/docs/API-reference/components/scroll/x-components.window-scroll.md +13 -16
- package/docs/API-reference/components/search/x-components.banner.md +8 -9
- package/docs/API-reference/components/search/x-components.banners-list.md +7 -8
- package/docs/API-reference/components/search/x-components.partial-query-button.md +11 -12
- package/docs/API-reference/components/search/x-components.partial-results-list.md +11 -12
- package/docs/API-reference/components/search/x-components.promoted.md +7 -8
- package/docs/API-reference/components/search/x-components.promoteds-list.md +7 -8
- package/docs/API-reference/components/search/x-components.redirection.md +8 -9
- package/docs/API-reference/components/search/x-components.results-list.md +7 -8
- package/docs/API-reference/components/search/x-components.sort-dropdown.md +8 -9
- package/docs/API-reference/components/search/x-components.sort-list.md +8 -9
- package/docs/API-reference/components/search/x-components.spellcheck-button.md +11 -12
- package/docs/API-reference/components/search/x-components.spellcheck.md +11 -12
- package/docs/API-reference/components/search-box/x-components.clear-search-input.md +6 -7
- package/docs/API-reference/components/search-box/x-components.search-button.md +6 -7
- package/docs/API-reference/components/search-box/x-components.search-input.md +7 -8
- package/docs/API-reference/components/tagging/x-components.tagging.md +7 -8
- package/docs/API-reference/components/url/x-components.url-handler.md +7 -8
- package/docs/build-search-ui/README.md +0 -5
- package/docs/build-search-ui/web-archetype-development-guide.md +178 -0
- package/docs/build-search-ui/web-archetype-integration-guide.md +146 -143
- package/docs/build-search-ui/web-use-x-components-guide.md +0 -5
- package/docs/build-search-ui/web-x-components-integration-guide.md +3 -8
- package/docs/build-search-ui/x-architecture/README.md +0 -5
- package/js/components/animations/animate-width.vue.js +2 -2
- package/js/components/animations/animate-width.vue.js.map +1 -1
- package/js/components/animations/collapse-from-top.vue.js +2 -2
- package/js/components/animations/collapse-from-top.vue.js.map +1 -1
- package/js/components/animations/collapse-height.vue.js +2 -2
- package/js/components/animations/collapse-height.vue.js.map +1 -1
- package/js/components/animations/collapse-width.vue.js +2 -2
- package/js/components/animations/collapse-width.vue.js.map +1 -1
- package/js/components/animations/cross-fade.vue.js +2 -2
- package/js/components/animations/cross-fade.vue.js.map +1 -1
- package/js/components/animations/fade-and-slide.vue.js +2 -2
- package/js/components/animations/fade-and-slide.vue.js.map +1 -1
- package/js/components/animations/staggered-fade-and-slide.vue.js +2 -2
- package/js/components/animations/staggered-fade-and-slide.vue.js.map +1 -1
- package/js/components/animations/staggered-fade-and-slide.vue_rollup-plugin-vue=script.js +1 -1
- package/js/components/animations/staggered-fade-and-slide.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/components/{staggering-transition-group.vue.js → animations/staggering-transition-group.vue.js} +2 -2
- package/js/components/animations/staggering-transition-group.vue.js.map +1 -0
- package/js/components/{staggering-transition-group.vue_rollup-plugin-vue=script.js → animations/staggering-transition-group.vue_rollup-plugin-vue=script.js} +17 -17
- package/js/components/animations/staggering-transition-group.vue_rollup-plugin-vue=script.js.map +1 -0
- package/js/components/animations/translate-from-left.vue.js +2 -2
- package/js/components/animations/translate-from-left.vue.js.map +1 -1
- package/js/components/animations/translate-from-right.vue.js +2 -2
- package/js/components/animations/translate-from-right.vue.js.map +1 -1
- package/js/components/base-dropdown.vue.js +2 -2
- package/js/components/base-dropdown.vue.js.map +1 -1
- package/js/components/base-event-button.vue.js.map +1 -1
- package/js/components/base-grid.vue.js +2 -2
- package/js/components/base-grid.vue.js.map +1 -1
- package/js/components/base-keyboard-navigation.vue.js.map +1 -1
- package/js/components/base-rating.vue.js +2 -2
- package/js/components/base-rating.vue.js.map +1 -1
- package/js/components/base-variable-column-grid.vue.js.map +1 -1
- package/js/components/column-picker/base-column-picker-dropdown.vue.js.map +1 -1
- package/js/components/column-picker/base-column-picker-list.vue.js +2 -2
- package/js/components/column-picker/base-column-picker-list.vue.js.map +1 -1
- package/js/components/currency/base-currency.vue.js.map +1 -1
- package/js/components/filters/labels/base-price-filter-label.vue.js.map +1 -1
- package/js/components/filters/labels/base-rating-filter-label.vue.js.map +1 -1
- package/js/components/global-x-bus.vue.js.map +1 -1
- package/js/components/global-x-bus.vue_rollup-plugin-vue=script.js +2 -1
- package/js/components/global-x-bus.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/components/icons/tag.vue.js +59 -0
- package/js/components/icons/tag.vue.js.map +1 -0
- package/js/components/icons/tag.vue_rollup-plugin-vue=script.js +4 -0
- package/js/components/icons/tag.vue_rollup-plugin-vue=script.js.map +1 -0
- package/js/components/layouts/fixed-header-and-asides-layout.vue.js +212 -0
- package/js/components/layouts/fixed-header-and-asides-layout.vue.js.map +1 -0
- package/js/components/layouts/fixed-header-and-asides-layout.vue_rollup-plugin-vue=script.js +57 -0
- package/js/components/layouts/fixed-header-and-asides-layout.vue_rollup-plugin-vue=script.js.map +1 -0
- package/js/components/layouts/multi-column-max-width-layout.vue.js +3 -3
- package/js/components/layouts/multi-column-max-width-layout.vue.js.map +1 -1
- package/js/components/layouts/multi-column-max-width-layout.vue_rollup-plugin-vue=script.js +1 -1
- package/js/components/layouts/single-column-layout.vue.js +1 -1
- package/js/components/layouts/single-column-layout.vue_rollup-plugin-vue=script.js +1 -1
- package/js/components/modals/base-events-modal-close.vue.js.map +1 -1
- package/js/components/modals/base-events-modal-open.vue.js.map +1 -1
- package/js/components/modals/base-events-modal.vue.js.map +1 -1
- package/js/components/modals/base-id-modal-close.vue.js.map +1 -1
- package/js/components/modals/base-id-modal-open.vue.js.map +1 -1
- package/js/components/modals/base-id-modal.vue.js.map +1 -1
- package/js/components/modals/base-modal.vue.js +2 -2
- package/js/components/modals/base-modal.vue.js.map +1 -1
- package/js/components/panels/base-header-toggle-panel.vue.js +2 -2
- package/js/components/panels/base-header-toggle-panel.vue.js.map +1 -1
- package/js/components/panels/base-id-toggle-panel-button.vue.js.map +1 -1
- package/js/components/panels/base-id-toggle-panel.vue.js.map +1 -1
- package/js/components/panels/base-id-toggle-panel.vue_rollup-plugin-vue=script.js +4 -9
- package/js/components/panels/base-id-toggle-panel.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/components/panels/base-toggle-panel.vue.js.map +1 -1
- package/js/components/result/base-result-add-to-cart.vue.js.map +1 -1
- package/js/components/result/base-result-current-price.vue.js.map +1 -1
- package/js/components/result/base-result-image.vue.js +2 -2
- package/js/components/result/base-result-image.vue.js.map +1 -1
- package/js/components/result/base-result-link.vue.js +5 -5
- package/js/components/result/base-result-link.vue.js.map +1 -1
- package/js/components/result/base-result-link.vue_rollup-plugin-vue=script.js +3 -12
- package/js/components/result/base-result-link.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/components/result/base-result-previous-price.vue.js.map +1 -1
- package/js/components/scroll/base-scroll.vue.js +2 -2
- package/js/components/scroll/base-scroll.vue.js.map +1 -1
- package/js/components/sliding-panel.vue.js +2 -2
- package/js/components/sliding-panel.vue.js.map +1 -1
- package/js/components/suggestions/base-suggestion.vue.js.map +1 -1
- package/js/components/suggestions/base-suggestions.vue.js +2 -2
- package/js/components/suggestions/base-suggestions.vue.js.map +1 -1
- package/js/components/x-component.mixin.js +1 -4
- package/js/components/x-component.mixin.js.map +1 -1
- package/js/components/x-component.utils.js +4 -20
- package/js/components/x-component.utils.js.map +1 -1
- package/js/index.js +32 -30
- package/js/index.js.map +1 -1
- package/js/plugins/x-plugin.alias.js +21 -20
- package/js/plugins/x-plugin.alias.js.map +1 -1
- package/js/plugins/x-plugin.mixin.js +2 -2
- package/js/plugins/x-plugin.mixin.js.map +1 -1
- package/js/utils/origin.js +5 -3
- package/js/utils/origin.js.map +1 -1
- package/js/wiring/namespaced-wires.operators.js +3 -4
- package/js/wiring/namespaced-wires.operators.js.map +1 -1
- package/js/wiring/wires-operators.utils.js +55 -0
- package/js/wiring/wires-operators.utils.js.map +1 -0
- package/js/wiring/wires.operators.js +17 -12
- package/js/wiring/wires.operators.js.map +1 -1
- package/js/x-installer/x-installer/x-installer.js +1 -1
- package/js/x-installer/x-installer/x-installer.js.map +1 -1
- package/js/x-modules/empathize/components/empathize.vue.js.map +1 -1
- package/js/x-modules/empathize/components/empathize.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/extra-params/components/extra-params.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/extra-params/components/extra-params.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/extra-params/components/renderless-extra-param.vue.js.map +1 -1
- package/js/x-modules/extra-params/components/renderless-extra-param.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/extra-params/components/renderless-extra-param.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/extra-params/components/snippet-config-extra-params.vue.js.map +1 -1
- package/js/x-modules/extra-params/components/snippet-config-extra-params.vue_rollup-plugin-vue=script.js +23 -12
- package/js/x-modules/extra-params/components/snippet-config-extra-params.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/clear-filters.vue.js.map +1 -1
- package/js/x-modules/facets/components/clear-filters.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/clear-filters.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets-provider.vue.js +2 -2
- package/js/x-modules/facets/components/facets/facets-provider.vue.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets-provider.vue_rollup-plugin-vue=script.js +18 -23
- package/js/x-modules/facets/components/facets/facets-provider.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/facets/facets.vue.js +2 -2
- package/js/x-modules/facets/components/facets/facets.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/all-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/all-filter.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/filters/all-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/filters/base-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/base-filter.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/filters/base-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/filters/editable-number-range-filter.vue.js +1 -1
- package/js/x-modules/facets/components/filters/editable-number-range-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/hierarchical-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/hierarchical-filter.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/filters/hierarchical-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/filters/number-range-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/number-range-filter.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/filters/number-range-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/filters/renderless-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/renderless-filter.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/filters/renderless-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/filters/simple-filter.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/simple-filter.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/filters/simple-filter.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/lists/exclude-filters-with-no-results.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-list.vue.js +2 -2
- package/js/x-modules/facets/components/lists/filters-list.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-list.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/lists/filters-list.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-search.vue.js +2 -2
- package/js/x-modules/facets/components/lists/filters-search.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/filters-search.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/lists/filters-search.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters-list.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/selected-filters.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/lists/selected-filters.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/sliced-filters.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/sliced-filters.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/lists/sliced-filters.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/facets/components/lists/sorted-filters.vue.js.map +1 -1
- package/js/x-modules/facets/components/lists/sorted-filters.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/facets/components/lists/sorted-filters.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/history-queries/components/clear-history-queries.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/history-queries.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/history-queries.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/history-queries/components/history-query.vue.js.map +1 -1
- package/js/x-modules/history-queries/components/history-query.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/history-queries/components/remove-history-query.vue.js.map +1 -1
- package/js/x-modules/history-queries/wiring.js +1 -1
- package/js/x-modules/history-queries/wiring.js.map +1 -1
- package/js/x-modules/identifier-results/components/identifier-result.vue.js.map +1 -1
- package/js/x-modules/identifier-results/components/identifier-results.vue.js.map +1 -1
- package/js/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.js +4 -2
- package/js/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.js.map +1 -1
- package/js/x-modules/identifier-results/store/getters/identifier-results-request.getter.js +2 -3
- package/js/x-modules/identifier-results/store/getters/identifier-results-request.getter.js.map +1 -1
- package/js/x-modules/identifier-results/wiring.js +3 -2
- package/js/x-modules/identifier-results/wiring.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries-list.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/next-queries/components/next-queries.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-queries.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/next-queries/components/next-query.vue.js.map +1 -1
- package/js/x-modules/next-queries/components/next-query.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/popular-searches/components/popular-search.vue.js.map +1 -1
- package/js/x-modules/popular-searches/components/popular-search.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/popular-searches/components/popular-searches.vue.js.map +1 -1
- package/js/x-modules/popular-searches/components/popular-searches.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestion.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/query-suggestions/components/query-suggestions.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/query-suggestions/wiring.js +1 -1
- package/js/x-modules/query-suggestions/wiring.js.map +1 -1
- package/js/x-modules/recommendations/components/recommendations.vue.js +2 -2
- package/js/x-modules/recommendations/components/recommendations.vue.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tag.vue.js +7 -3
- package/js/x-modules/related-tags/components/related-tag.vue.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tag.vue_rollup-plugin-vue=script.js +20 -0
- package/js/x-modules/related-tags/components/related-tag.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tags.vue.js +15 -4
- package/js/x-modules/related-tags/components/related-tags.vue.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tags.vue_rollup-plugin-vue=script.js +3 -0
- package/js/x-modules/related-tags/components/related-tags.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/scroll/components/main-scroll-item.vue_rollup-plugin-vue=script.js +16 -14
- package/js/x-modules/scroll/components/main-scroll-item.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/scroll/components/scroll-to-top.vue.js.map +1 -1
- package/js/x-modules/scroll/components/scroll-to-top.vue_rollup-plugin-vue=script.js +16 -14
- package/js/x-modules/scroll/components/scroll-to-top.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/scroll/components/scroll.vue.js.map +1 -1
- package/js/x-modules/scroll/components/scroll.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/scroll/components/window-scroll.vue.js.map +1 -1
- package/js/x-modules/scroll/components/window-scroll.vue_rollup-plugin-vue=script.js +16 -14
- package/js/x-modules/scroll/components/window-scroll.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/search/components/banner.vue.js +2 -1
- package/js/x-modules/search/components/banner.vue.js.map +1 -1
- package/js/x-modules/search/components/banner.vue_rollup-plugin-vue=script.js +8 -0
- package/js/x-modules/search/components/banner.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/search/components/banners-list.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/search/components/partial-query-button.vue.js.map +1 -1
- package/js/x-modules/search/components/partial-results-list.vue.js +2 -2
- package/js/x-modules/search/components/partial-results-list.vue.js.map +1 -1
- package/js/x-modules/search/components/promoted.vue.js +2 -1
- package/js/x-modules/search/components/promoted.vue.js.map +1 -1
- package/js/x-modules/search/components/promoted.vue_rollup-plugin-vue=script.js +8 -0
- package/js/x-modules/search/components/promoted.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/search/components/promoteds-list.vue_rollup-plugin-vue=script.js +1 -1
- package/js/x-modules/search/components/redirection.vue.js.map +1 -1
- package/js/x-modules/search/components/redirection.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/search/components/results-list.vue_rollup-plugin-vue=script.js +2 -2
- package/js/x-modules/search/components/sort-dropdown.vue.js.map +1 -1
- package/js/x-modules/search/components/sort-list.vue.js +2 -2
- package/js/x-modules/search/components/sort-list.vue.js.map +1 -1
- package/js/x-modules/search/components/sort-list.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/search/components/sort-list.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/search/components/sort.mixin.js +14 -12
- package/js/x-modules/search/components/sort.mixin.js.map +1 -1
- package/js/x-modules/search/components/spellcheck-button.vue.js.map +1 -1
- package/js/x-modules/search/components/spellcheck.vue.js.map +1 -1
- package/js/x-modules/search/components/spellcheck.vue_rollup-plugin-vue=script.js +14 -12
- package/js/x-modules/search/components/spellcheck.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js +4 -1
- package/js/x-modules/search/store/actions/fetch-and-save-search-response.action.js.map +1 -1
- package/js/x-modules/search/store/getters/request.getter.js +2 -3
- package/js/x-modules/search/store/getters/request.getter.js.map +1 -1
- package/js/x-modules/search/wiring.js +4 -3
- package/js/x-modules/search/wiring.js.map +1 -1
- package/js/x-modules/search-box/components/search-input.vue.js +2 -2
- package/js/x-modules/search-box/components/search-input.vue.js.map +1 -1
- package/js/x-modules/search-box/components/search-input.vue_rollup-plugin-vue=script.js +7 -5
- package/js/x-modules/search-box/components/search-input.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/tagging/store/actions/track.action.js +2 -2
- package/js/x-modules/tagging/store/actions/track.action.js.map +1 -1
- package/js/x-modules/tagging/wiring.js +48 -4
- package/js/x-modules/tagging/wiring.js.map +1 -1
- package/js/x-modules/url/components/url-handler.vue.js +1 -1
- package/js/x-modules/url/components/url-handler.vue.js.map +1 -1
- package/js/x-modules/url/components/url-handler.vue_rollup-plugin-vue=script.js +101 -5
- package/js/x-modules/url/components/url-handler.vue_rollup-plugin-vue=script.js.map +1 -1
- package/package.json +9 -10
- package/report/tsdoc-metadata.json +1 -1
- package/report/x-adapter.api.json +27 -1
- package/report/x-components.api.json +674 -223
- package/report/x-components.api.md +86 -35
- package/report/x-types.api.json +27 -1
- package/tagging/index.js +1 -1
- package/types/adapter/mocked-adapter.d.ts.map +1 -1
- package/types/components/animations/index.d.ts +1 -0
- package/types/components/animations/index.d.ts.map +1 -1
- package/types/components/{staggering-transition-group.vue.d.ts → animations/staggering-transition-group.vue.d.ts} +0 -0
- package/types/components/animations/staggering-transition-group.vue.d.ts.map +1 -0
- package/types/components/global-x-bus.vue.d.ts.map +1 -1
- package/types/components/icons/index.d.ts +1 -0
- package/types/components/icons/index.d.ts.map +1 -1
- package/types/components/icons/tag.vue.d.ts +3 -0
- package/types/components/icons/tag.vue.d.ts.map +1 -0
- package/types/components/index.d.ts +1 -4
- package/types/components/index.d.ts.map +1 -1
- package/types/components/layouts/fixed-header-and-asides-layout.vue.d.ts +17 -0
- package/types/components/layouts/fixed-header-and-asides-layout.vue.d.ts.map +1 -0
- package/types/components/layouts/index.d.ts +4 -0
- package/types/components/layouts/index.d.ts.map +1 -0
- package/types/components/panels/base-id-toggle-panel.vue.d.ts +0 -5
- package/types/components/panels/base-id-toggle-panel.vue.d.ts.map +1 -1
- package/types/components/result/base-result-link.vue.d.ts +3 -10
- package/types/components/result/base-result-link.vue.d.ts.map +1 -1
- package/types/components/x-component.mixin.d.ts.map +1 -1
- package/types/components/x-component.utils.d.ts +1 -16
- package/types/components/x-component.utils.d.ts.map +1 -1
- package/types/plugins/x-plugin.alias.d.ts +4 -6
- package/types/plugins/x-plugin.alias.d.ts.map +1 -1
- package/types/plugins/x-plugin.mixin.d.ts +13 -3
- package/types/plugins/x-plugin.mixin.d.ts.map +1 -1
- package/types/types/origin.d.ts +1 -1
- package/types/types/origin.d.ts.map +1 -1
- package/types/utils/origin.d.ts +3 -1
- package/types/utils/origin.d.ts.map +1 -1
- package/types/utils/types.d.ts +6 -0
- package/types/utils/types.d.ts.map +1 -1
- package/types/wiring/events.types.d.ts +0 -5
- package/types/wiring/events.types.d.ts.map +1 -1
- package/types/wiring/namespaced-wires.operators.d.ts +2 -3
- package/types/wiring/namespaced-wires.operators.d.ts.map +1 -1
- package/types/wiring/namespaced-wiring.types.d.ts +9 -10
- package/types/wiring/namespaced-wiring.types.d.ts.map +1 -1
- package/types/wiring/wires-operators.utils.d.ts +36 -0
- package/types/wiring/wires-operators.utils.d.ts.map +1 -0
- package/types/wiring/wires.operators.d.ts +5 -8
- package/types/wiring/wires.operators.d.ts.map +1 -1
- package/types/wiring/wiring.types.d.ts +17 -4
- package/types/wiring/wiring.types.d.ts.map +1 -1
- package/types/x-installer/api/api.types.d.ts +2 -0
- package/types/x-installer/api/api.types.d.ts.map +1 -1
- package/types/x-installer/x-installer/x-installer.d.ts +1 -1
- package/types/x-modules/extra-params/components/snippet-config-extra-params.vue.d.ts +6 -0
- package/types/x-modules/extra-params/components/snippet-config-extra-params.vue.d.ts.map +1 -1
- package/types/x-modules/facets/components/facets/facets-provider.vue.d.ts +0 -8
- package/types/x-modules/facets/components/facets/facets-provider.vue.d.ts.map +1 -1
- package/types/x-modules/history-queries/wiring.d.ts +1 -1
- package/types/x-modules/identifier-results/store/actions/fetch-and-save-identifier-results.action.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/getters/identifier-results-request.getter.d.ts.map +1 -1
- package/types/x-modules/identifier-results/wiring.d.ts +2 -1
- package/types/x-modules/identifier-results/wiring.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/wiring.d.ts +1 -1
- package/types/x-modules/related-tags/components/related-tag.vue.d.ts +14 -0
- package/types/x-modules/related-tags/components/related-tag.vue.d.ts.map +1 -1
- package/types/x-modules/related-tags/components/related-tags.vue.d.ts +6 -0
- package/types/x-modules/related-tags/components/related-tags.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/banner.vue.d.ts +6 -0
- package/types/x-modules/search/components/banner.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/promoted.vue.d.ts +6 -0
- package/types/x-modules/search/components/promoted.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/redirection.vue.d.ts +1 -1
- package/types/x-modules/search/components/redirection.vue.d.ts.map +1 -1
- package/types/x-modules/search/events.types.d.ts +11 -1
- package/types/x-modules/search/events.types.d.ts.map +1 -1
- package/types/x-modules/search/store/actions/fetch-and-save-search-response.action.d.ts.map +1 -1
- package/types/x-modules/search/store/getters/request.getter.d.ts.map +1 -1
- package/types/x-modules/search/wiring.d.ts +2 -1
- package/types/x-modules/search/wiring.d.ts.map +1 -1
- package/types/x-modules/search-box/components/search-input.vue.d.ts +5 -2
- package/types/x-modules/search-box/components/search-input.vue.d.ts.map +1 -1
- package/types/x-modules/tagging/wiring.d.ts +29 -9
- package/types/x-modules/tagging/wiring.d.ts.map +1 -1
- package/types/x-modules/url/components/url-handler.vue.d.ts +70 -7
- package/types/x-modules/url/components/url-handler.vue.d.ts.map +1 -1
- package/docs/API-reference/api/x-components.baseidtogglepanel.created.md +0 -17
- package/docs/API-reference/api/x-components.xcomponent.md +0 -15
- package/docs/API-reference/api/x-components.xeventstypes.userrightclickedaresult.md +0 -13
- package/docs/sidebar.json +0 -1
- package/js/components/staggering-transition-group.vue.js.map +0 -1
- package/js/components/staggering-transition-group.vue_rollup-plugin-vue=script.js.map +0 -1
- package/js/wiring/utils/wire-racing-handling.js +0 -108
- package/js/wiring/utils/wire-racing-handling.js.map +0 -1
- package/types/components/staggering-transition-group.vue.d.ts.map +0 -1
- package/types/components/x-component.types.d.ts +0 -19
- package/types/components/x-component.types.d.ts.map +0 -1
- package/types/wiring/utils/wire-racing-handling.d.ts +0 -27
- package/types/wiring/utils/wire-racing-handling.d.ts.map +0 -1
package/js/x-modules/facets/components/filters/number-range-filter.vue_rollup-plugin-vue=script.js
CHANGED
|
@@ -8,7 +8,7 @@ import '../../../../components/animations/collapse-height.vue.js';
|
|
|
8
8
|
import '../../../../components/animations/collapse-width.vue.js';
|
|
9
9
|
import '../../../../components/animations/cross-fade.vue.js';
|
|
10
10
|
import '../../../../components/animations/fade-and-slide.vue.js';
|
|
11
|
-
import '../../../../components/staggering-transition-group.vue.js';
|
|
11
|
+
import '../../../../components/animations/staggering-transition-group.vue.js';
|
|
12
12
|
import '../../../../components/animations/staggered-fade-and-slide.vue.js';
|
|
13
13
|
import '../../../../components/animations/translate-from-left.vue.js';
|
|
14
14
|
import '../../../../components/animations/translate-from-right.vue.js';
|
|
@@ -63,21 +63,30 @@ import '../../../../components/icons/plus.vue.js';
|
|
|
63
63
|
import '../../../../components/icons/search.vue.js';
|
|
64
64
|
import '../../../../components/icons/show.vue.js';
|
|
65
65
|
import '../../../../components/icons/search-tiny.vue.js';
|
|
66
|
+
import '../../../../components/icons/tag.vue.js';
|
|
66
67
|
import '../../../../components/icons/trash-open.vue.js';
|
|
67
68
|
import '../../../../components/icons/trash.vue.js';
|
|
68
69
|
import '../../../../components/icons/trending-tiny.vue.js';
|
|
69
70
|
import '../../../../components/icons/trending.vue.js';
|
|
70
71
|
import '../../../../components/icons/user.vue.js';
|
|
71
|
-
import '../../../../components/
|
|
72
|
+
import '../../../../components/decorators/store.decorators.js';
|
|
73
|
+
import '../../../../components/x-component.utils.js';
|
|
74
|
+
import { xComponentMixin } from '../../../../components/x-component.mixin.js';
|
|
72
75
|
import '../../../../components/modals/base-modal.vue.js';
|
|
76
|
+
import '../../../../components/modals/base-id-modal.vue.js';
|
|
77
|
+
import '../../../../components/scroll/scroll.mixin.js';
|
|
78
|
+
import '../../../../components/scroll/base-scroll.vue.js';
|
|
79
|
+
import '../../../../components/layouts/fixed-header-and-asides-layout.vue.js';
|
|
80
|
+
import '../../../../components/panels/base-toggle-panel.vue.js';
|
|
81
|
+
import '../../../../components/panels/base-id-toggle-panel.vue.js';
|
|
82
|
+
import '../../../../components/layouts/multi-column-max-width-layout.vue.js';
|
|
83
|
+
import '../../../../components/layouts/single-column-layout.vue.js';
|
|
84
|
+
import '../../../../components/modals/base-events-modal-close.vue.js';
|
|
73
85
|
import '../../../../components/modals/base-events-modal.vue.js';
|
|
74
86
|
import '../../../../components/modals/base-events-modal-open.vue.js';
|
|
75
|
-
import '../../../../components/modals/base-id-modal.vue.js';
|
|
76
87
|
import '../../../../components/modals/base-id-modal-close.vue.js';
|
|
77
88
|
import '../../../../components/modals/base-id-modal-open.vue.js';
|
|
78
|
-
import '../../../../components/panels/base-toggle-panel.vue.js';
|
|
79
89
|
import '../../../../components/panels/base-header-toggle-panel.vue.js';
|
|
80
|
-
import '../../../../components/panels/base-id-toggle-panel.vue.js';
|
|
81
90
|
import '../../../../components/panels/base-id-toggle-panel-button.vue.js';
|
|
82
91
|
import '../../../../components/result/base-result-add-to-cart.vue.js';
|
|
83
92
|
import '../../../../components/result/base-result-current-price.vue.js';
|
|
@@ -86,8 +95,6 @@ import '../../../../components/result/base-result-link.vue.js';
|
|
|
86
95
|
import '../../../../components/result/base-result-previous-price.vue.js';
|
|
87
96
|
import '../../../../components/result/base-result-fallback-image.vue.js';
|
|
88
97
|
import '../../../../components/result/base-result-placeholder-image.vue.js';
|
|
89
|
-
import '../../../../components/scroll/scroll.mixin.js';
|
|
90
|
-
import '../../../../components/scroll/base-scroll.vue.js';
|
|
91
98
|
import '../../../../components/suggestions/base-suggestion.vue.js';
|
|
92
99
|
import '../../../../components/suggestions/base-suggestions.vue.js';
|
|
93
100
|
import '../../../../components/auto-progress-bar.vue.js';
|
|
@@ -98,11 +105,6 @@ import '../../../../components/base-variable-column-grid.vue.js';
|
|
|
98
105
|
import '../../../../components/decorators/debounce.decorators.js';
|
|
99
106
|
import '../../../../components/sliding-panel.vue.js';
|
|
100
107
|
import '../../../../components/items-list.vue.js';
|
|
101
|
-
import '../../../../components/decorators/store.decorators.js';
|
|
102
|
-
import '../../../../components/x-component.utils.js';
|
|
103
|
-
import { xComponentMixin } from '../../../../components/x-component.mixin.js';
|
|
104
|
-
import '../../../../components/layouts/multi-column-max-width-layout.vue.js';
|
|
105
|
-
import '../../../../components/layouts/single-column-layout.vue.js';
|
|
106
108
|
import '../../../../components/location-provider.vue.js';
|
|
107
109
|
import '../../../../components/global-x-bus.vue.js';
|
|
108
110
|
import '../../../../components/snippet-callbacks.vue.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number-range-filter.vue_rollup-plugin-vue=script.js","sources":["../../../../../../src/x-modules/facets/components/filters/number-range-filter.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component, Prop } from 'vue-property-decorator';\nimport { NumberRangeFilter as NumberRangeFilterModel } from '@empathyco/x-types';\nimport { xComponentMixin } from '../../../../components';\nimport { VueCSSClasses } from '../../../../utils/types';\nimport { XEventsTypes } from '../../../../wiring/events.types';\nimport { facetsXModule } from '../../x-module';\nimport BaseFilter from './base-filter.vue';\n\n/**\n * Renders a number range filter, emitting the needed events when clicked.\n *\n * @public\n */\n@Component({\n components: { BaseFilter },\n mixins: [xComponentMixin(facetsXModule)]\n})\nexport default class NumberRangeFilter extends Vue {\n /** The filter data to render. */\n @Prop({ required: true })\n public filter!: NumberRangeFilterModel;\n\n /**\n * Additional events to emit when the filter is clicked.\n *\n * @returns A dictionary with the events to be emitted when the filter is clicked, and its\n * payload.\n * @internal\n */\n protected get clickEvents(): Partial<XEventsTypes> {\n return {\n UserClickedANumberRangeFilter: this.filter\n };\n }\n\n /**\n * Dynamic CSS classes to apply to the component.\n *\n * @returns The dynamic CSS classes to apply to the component.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-number-range-filter--is-selected': this.filter.selected\n };\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"number-range-filter.vue_rollup-plugin-vue=script.js","sources":["../../../../../../src/x-modules/facets/components/filters/number-range-filter.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { Component, Prop } from 'vue-property-decorator';\nimport { NumberRangeFilter as NumberRangeFilterModel } from '@empathyco/x-types';\nimport { xComponentMixin } from '../../../../components';\nimport { VueCSSClasses } from '../../../../utils/types';\nimport { XEventsTypes } from '../../../../wiring/events.types';\nimport { facetsXModule } from '../../x-module';\nimport BaseFilter from './base-filter.vue';\n\n/**\n * Renders a number range filter, emitting the needed events when clicked.\n *\n * @public\n */\n@Component({\n components: { BaseFilter },\n mixins: [xComponentMixin(facetsXModule)]\n})\nexport default class NumberRangeFilter extends Vue {\n /** The filter data to render. */\n @Prop({ required: true })\n public filter!: NumberRangeFilterModel;\n\n /**\n * Additional events to emit when the filter is clicked.\n *\n * @returns A dictionary with the events to be emitted when the filter is clicked, and its\n * payload.\n * @internal\n */\n protected get clickEvents(): Partial<XEventsTypes> {\n return {\n UserClickedANumberRangeFilter: this.filter\n };\n }\n\n /**\n * Dynamic CSS classes to apply to the component.\n *\n * @returns The dynamic CSS classes to apply to the component.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-number-range-filter--is-selected': this.filter.selected\n };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA;;;;;AASA;IAA+C,qCAAG;IAAlD;;KA6BC;IAjBC,sBAAc,0CAAW;;;;;;;;aAAzB;YACE,OAAO;gBACL,6BAA6B,EAAE,IAAI,CAAC,MAAM;aAC3C,CAAC;SACH;;;OAAA;IAQD,sBAAc,yCAAU;;;;;;;aAAxB;YACE,OAAO;gBACL,oCAAoC,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;aAC3D,CAAC;SACH;;;OAAA;IAzBD;QADC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;qDACc;IAHpB,iBAAiB;QAJrC,SAAS,CAAC;YACT,UAAU,EAAE,EAAE,UAAU,YAAA,EAAE;YAC1B,MAAM,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;SACzC,CAAC;OACmB,iBAAiB,CA6BrC;IAAD,wBAAC;CAAA,CA7B8C,GAAG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderless-filter.vue.js","sources":["../../../../../../src/x-modules/facets/components/filters/renderless-filter.vue"],"sourcesContent":["<script lang=\"ts\">\n import Vue, { CreateElement, VNode } from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { BooleanFilter } from '@empathyco/x-types';\n import { xComponentMixin } from '../../../../components';\n import { VueCSSClasses } from '../../../../utils/types';\n import { XEvent, XEventsTypes } from '../../../../wiring/events.types';\n import { facetsXModule } from '../../x-module';\n\n /**\n * Renders default slot content. It binds to the default slot a\n * {@link @empathyco/x-types#BooleanFilter | BooleanFilter}, the {@link XEvent | XEvents}\n * that will be emitted when clicking the content, the css classes and if the content should be\n * disabled.\n *\n * @remarks The default slot expects a root element, if it receives a list of elements, it will\n * renders the first element.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(facetsXModule)]\n })\n export default class RenderlessFilter extends Vue {\n /** The filter data to render. */\n @Prop({ required: true })\n public filter!: BooleanFilter;\n\n /** Additional events with its payload to emit when the filter is clicked. */\n @Prop()\n public clickEvents?: Partial<XEventsTypes>;\n\n /**\n * The events that will be emitted when the filter is clicked.\n *\n * @returns The events to be emitted when the filter is clicked.\n * @internal\n */\n protected get events(): Partial<XEventsTypes> {\n return {\n UserClickedAFilter: this.filter,\n ...this.clickEvents\n };\n }\n\n /**\n * The events to emit to the bus.\n *\n * @internal\n */\n protected emitEvents(): void {\n Object.entries(this.events).forEach(([event, payload]) => {\n this.$x.emit(event as XEvent, payload, { target: this.$el as HTMLElement });\n });\n }\n\n /**\n * Returns `true` when the filter should be disabled.\n *\n * @returns `true` if the filter should be disabled.\n * @internal\n */\n protected get isDisabled(): boolean {\n return this.filter.totalResults === 0;\n }\n\n /**\n * Dynamic CSS classes to apply to the component.\n *\n * @returns The dynamic CSS classes to apply to the component.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return [\n 'x-filter',\n {\n 'x-filter--is-selected': this.filter.selected,\n 'x-filter--is-disabled': this.isDisabled\n }\n ];\n }\n\n render(h: CreateElement): VNode {\n return (\n this.$scopedSlots.default?.({\n filter: this.filter,\n // eslint-disable-next-line @typescript-eslint/unbound-method\n clickFilter: this.emitEvents,\n cssClasses: this.cssClasses,\n isDisabled: this.isDisabled\n })?.[0] ?? h()\n );\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n
|
|
1
|
+
{"version":3,"file":"renderless-filter.vue.js","sources":["../../../../../../src/x-modules/facets/components/filters/renderless-filter.vue"],"sourcesContent":["<script lang=\"ts\">\n import Vue, { CreateElement, VNode } from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { BooleanFilter } from '@empathyco/x-types';\n import { xComponentMixin } from '../../../../components';\n import { VueCSSClasses } from '../../../../utils/types';\n import { XEvent, XEventsTypes } from '../../../../wiring/events.types';\n import { facetsXModule } from '../../x-module';\n\n /**\n * Renders default slot content. It binds to the default slot a\n * {@link @empathyco/x-types#BooleanFilter | BooleanFilter}, the {@link XEvent | XEvents}\n * that will be emitted when clicking the content, the css classes and if the content should be\n * disabled.\n *\n * @remarks The default slot expects a root element, if it receives a list of elements, it will\n * renders the first element.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(facetsXModule)]\n })\n export default class RenderlessFilter extends Vue {\n /** The filter data to render. */\n @Prop({ required: true })\n public filter!: BooleanFilter;\n\n /** Additional events with its payload to emit when the filter is clicked. */\n @Prop()\n public clickEvents?: Partial<XEventsTypes>;\n\n /**\n * The events that will be emitted when the filter is clicked.\n *\n * @returns The events to be emitted when the filter is clicked.\n * @internal\n */\n protected get events(): Partial<XEventsTypes> {\n return {\n UserClickedAFilter: this.filter,\n ...this.clickEvents\n };\n }\n\n /**\n * The events to emit to the bus.\n *\n * @internal\n */\n protected emitEvents(): void {\n Object.entries(this.events).forEach(([event, payload]) => {\n this.$x.emit(event as XEvent, payload, { target: this.$el as HTMLElement });\n });\n }\n\n /**\n * Returns `true` when the filter should be disabled.\n *\n * @returns `true` if the filter should be disabled.\n * @internal\n */\n protected get isDisabled(): boolean {\n return this.filter.totalResults === 0;\n }\n\n /**\n * Dynamic CSS classes to apply to the component.\n *\n * @returns The dynamic CSS classes to apply to the component.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return [\n 'x-filter',\n {\n 'x-filter--is-selected': this.filter.selected,\n 'x-filter--is-disabled': this.isDisabled\n }\n ];\n }\n\n render(h: CreateElement): VNode {\n return (\n this.$scopedSlots.default?.({\n filter: this.filter,\n // eslint-disable-next-line @typescript-eslint/unbound-method\n clickFilter: this.emitEvents,\n cssClasses: this.cssClasses,\n isDisabled: this.isDisabled\n })?.[0] ?? h()\n );\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n## Examples\n\nRenders default slot content. It binds to the default slot a filter, the events that will be emitted\nwhen clicking the content, the css classes and if the content should be disabled.\n\n### Basic usage\n\n```vue\n<RenderlessFilter :filter=\"filter\" />\n```\n\n### Customizing its contents and adding new events\n\n```vue\n<template>\n <RenderlessFilter\n :filter=\"filter\"\n :clickEvents=\"clickEvents\"\n v-slot=\"{ filter, clickFilter, cssClasses, isDisabled }\"\n >\n <button @click=\"clickFilter\" :class=\"cssClasses\" :disabled=\"isDisabled\">\n {{ filter.label }}\n </button>\n </RenderlessFilter>\n</template>\n\n<script>\n import { RenderlessFilter } from '@empathyco/x-components';\n\n export default {\n components: {\n RenderlessFilter\n },\n props: ['filter'],\n computed: {\n clickEvents() {\n return { UserClickedAHierarchicalFilter: this.filter };\n }\n }\n };\n</script>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/js/x-modules/facets/components/filters/renderless-filter.vue_rollup-plugin-vue=script.js
CHANGED
|
@@ -8,7 +8,7 @@ import '../../../../components/animations/collapse-height.vue.js';
|
|
|
8
8
|
import '../../../../components/animations/collapse-width.vue.js';
|
|
9
9
|
import '../../../../components/animations/cross-fade.vue.js';
|
|
10
10
|
import '../../../../components/animations/fade-and-slide.vue.js';
|
|
11
|
-
import '../../../../components/staggering-transition-group.vue.js';
|
|
11
|
+
import '../../../../components/animations/staggering-transition-group.vue.js';
|
|
12
12
|
import '../../../../components/animations/staggered-fade-and-slide.vue.js';
|
|
13
13
|
import '../../../../components/animations/translate-from-left.vue.js';
|
|
14
14
|
import '../../../../components/animations/translate-from-right.vue.js';
|
|
@@ -63,21 +63,30 @@ import '../../../../components/icons/plus.vue.js';
|
|
|
63
63
|
import '../../../../components/icons/search.vue.js';
|
|
64
64
|
import '../../../../components/icons/show.vue.js';
|
|
65
65
|
import '../../../../components/icons/search-tiny.vue.js';
|
|
66
|
+
import '../../../../components/icons/tag.vue.js';
|
|
66
67
|
import '../../../../components/icons/trash-open.vue.js';
|
|
67
68
|
import '../../../../components/icons/trash.vue.js';
|
|
68
69
|
import '../../../../components/icons/trending-tiny.vue.js';
|
|
69
70
|
import '../../../../components/icons/trending.vue.js';
|
|
70
71
|
import '../../../../components/icons/user.vue.js';
|
|
71
|
-
import '../../../../components/
|
|
72
|
+
import '../../../../components/decorators/store.decorators.js';
|
|
73
|
+
import '../../../../components/x-component.utils.js';
|
|
74
|
+
import { xComponentMixin } from '../../../../components/x-component.mixin.js';
|
|
72
75
|
import '../../../../components/modals/base-modal.vue.js';
|
|
76
|
+
import '../../../../components/modals/base-id-modal.vue.js';
|
|
77
|
+
import '../../../../components/scroll/scroll.mixin.js';
|
|
78
|
+
import '../../../../components/scroll/base-scroll.vue.js';
|
|
79
|
+
import '../../../../components/layouts/fixed-header-and-asides-layout.vue.js';
|
|
80
|
+
import '../../../../components/panels/base-toggle-panel.vue.js';
|
|
81
|
+
import '../../../../components/panels/base-id-toggle-panel.vue.js';
|
|
82
|
+
import '../../../../components/layouts/multi-column-max-width-layout.vue.js';
|
|
83
|
+
import '../../../../components/layouts/single-column-layout.vue.js';
|
|
84
|
+
import '../../../../components/modals/base-events-modal-close.vue.js';
|
|
73
85
|
import '../../../../components/modals/base-events-modal.vue.js';
|
|
74
86
|
import '../../../../components/modals/base-events-modal-open.vue.js';
|
|
75
|
-
import '../../../../components/modals/base-id-modal.vue.js';
|
|
76
87
|
import '../../../../components/modals/base-id-modal-close.vue.js';
|
|
77
88
|
import '../../../../components/modals/base-id-modal-open.vue.js';
|
|
78
|
-
import '../../../../components/panels/base-toggle-panel.vue.js';
|
|
79
89
|
import '../../../../components/panels/base-header-toggle-panel.vue.js';
|
|
80
|
-
import '../../../../components/panels/base-id-toggle-panel.vue.js';
|
|
81
90
|
import '../../../../components/panels/base-id-toggle-panel-button.vue.js';
|
|
82
91
|
import '../../../../components/result/base-result-add-to-cart.vue.js';
|
|
83
92
|
import '../../../../components/result/base-result-current-price.vue.js';
|
|
@@ -86,8 +95,6 @@ import '../../../../components/result/base-result-link.vue.js';
|
|
|
86
95
|
import '../../../../components/result/base-result-previous-price.vue.js';
|
|
87
96
|
import '../../../../components/result/base-result-fallback-image.vue.js';
|
|
88
97
|
import '../../../../components/result/base-result-placeholder-image.vue.js';
|
|
89
|
-
import '../../../../components/scroll/scroll.mixin.js';
|
|
90
|
-
import '../../../../components/scroll/base-scroll.vue.js';
|
|
91
98
|
import '../../../../components/suggestions/base-suggestion.vue.js';
|
|
92
99
|
import '../../../../components/suggestions/base-suggestions.vue.js';
|
|
93
100
|
import '../../../../components/auto-progress-bar.vue.js';
|
|
@@ -98,11 +105,6 @@ import '../../../../components/base-variable-column-grid.vue.js';
|
|
|
98
105
|
import '../../../../components/decorators/debounce.decorators.js';
|
|
99
106
|
import '../../../../components/sliding-panel.vue.js';
|
|
100
107
|
import '../../../../components/items-list.vue.js';
|
|
101
|
-
import '../../../../components/decorators/store.decorators.js';
|
|
102
|
-
import '../../../../components/x-component.utils.js';
|
|
103
|
-
import { xComponentMixin } from '../../../../components/x-component.mixin.js';
|
|
104
|
-
import '../../../../components/layouts/multi-column-max-width-layout.vue.js';
|
|
105
|
-
import '../../../../components/layouts/single-column-layout.vue.js';
|
|
106
108
|
import '../../../../components/location-provider.vue.js';
|
|
107
109
|
import '../../../../components/global-x-bus.vue.js';
|
|
108
110
|
import '../../../../components/snippet-callbacks.vue.js';
|
package/js/x-modules/facets/components/filters/renderless-filter.vue_rollup-plugin-vue=script.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderless-filter.vue_rollup-plugin-vue=script.js","sources":["../../../../../../src/x-modules/facets/components/filters/renderless-filter.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\nimport Vue, { CreateElement, VNode } from 'vue';\nimport { Component, Prop } from 'vue-property-decorator';\nimport { BooleanFilter } from '@empathyco/x-types';\nimport { xComponentMixin } from '../../../../components';\nimport { VueCSSClasses } from '../../../../utils/types';\nimport { XEvent, XEventsTypes } from '../../../../wiring/events.types';\nimport { facetsXModule } from '../../x-module';\n\n/**\n * Renders default slot content. It binds to the default slot a\n * {@link @empathyco/x-types#BooleanFilter | BooleanFilter}, the {@link XEvent | XEvents}\n * that will be emitted when clicking the content, the css classes and if the content should be\n * disabled.\n *\n * @remarks The default slot expects a root element, if it receives a list of elements, it will\n * renders the first element.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(facetsXModule)]\n})\nexport default class RenderlessFilter extends Vue {\n /** The filter data to render. */\n @Prop({ required: true })\n public filter!: BooleanFilter;\n\n /** Additional events with its payload to emit when the filter is clicked. */\n @Prop()\n public clickEvents?: Partial<XEventsTypes>;\n\n /**\n * The events that will be emitted when the filter is clicked.\n *\n * @returns The events to be emitted when the filter is clicked.\n * @internal\n */\n protected get events(): Partial<XEventsTypes> {\n return {\n UserClickedAFilter: this.filter,\n ...this.clickEvents\n };\n }\n\n /**\n * The events to emit to the bus.\n *\n * @internal\n */\n protected emitEvents(): void {\n Object.entries(this.events).forEach(([event, payload]) => {\n this.$x.emit(event as XEvent, payload, { target: this.$el as HTMLElement });\n });\n }\n\n /**\n * Returns `true` when the filter should be disabled.\n *\n * @returns `true` if the filter should be disabled.\n * @internal\n */\n protected get isDisabled(): boolean {\n return this.filter.totalResults === 0;\n }\n\n /**\n * Dynamic CSS classes to apply to the component.\n *\n * @returns The dynamic CSS classes to apply to the component.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return [\n 'x-filter',\n {\n 'x-filter--is-selected': this.filter.selected,\n 'x-filter--is-disabled': this.isDisabled\n }\n ];\n }\n\n render(h: CreateElement): VNode {\n return (\n this.$scopedSlots.default?.({\n filter: this.filter,\n // eslint-disable-next-line @typescript-eslint/unbound-method\n clickFilter: this.emitEvents,\n cssClasses: this.cssClasses,\n isDisabled: this.isDisabled\n })?.[0] ?? h()\n );\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"renderless-filter.vue_rollup-plugin-vue=script.js","sources":["../../../../../../src/x-modules/facets/components/filters/renderless-filter.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\nimport Vue, { CreateElement, VNode } from 'vue';\nimport { Component, Prop } from 'vue-property-decorator';\nimport { BooleanFilter } from '@empathyco/x-types';\nimport { xComponentMixin } from '../../../../components';\nimport { VueCSSClasses } from '../../../../utils/types';\nimport { XEvent, XEventsTypes } from '../../../../wiring/events.types';\nimport { facetsXModule } from '../../x-module';\n\n/**\n * Renders default slot content. It binds to the default slot a\n * {@link @empathyco/x-types#BooleanFilter | BooleanFilter}, the {@link XEvent | XEvents}\n * that will be emitted when clicking the content, the css classes and if the content should be\n * disabled.\n *\n * @remarks The default slot expects a root element, if it receives a list of elements, it will\n * renders the first element.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(facetsXModule)]\n})\nexport default class RenderlessFilter extends Vue {\n /** The filter data to render. */\n @Prop({ required: true })\n public filter!: BooleanFilter;\n\n /** Additional events with its payload to emit when the filter is clicked. */\n @Prop()\n public clickEvents?: Partial<XEventsTypes>;\n\n /**\n * The events that will be emitted when the filter is clicked.\n *\n * @returns The events to be emitted when the filter is clicked.\n * @internal\n */\n protected get events(): Partial<XEventsTypes> {\n return {\n UserClickedAFilter: this.filter,\n ...this.clickEvents\n };\n }\n\n /**\n * The events to emit to the bus.\n *\n * @internal\n */\n protected emitEvents(): void {\n Object.entries(this.events).forEach(([event, payload]) => {\n this.$x.emit(event as XEvent, payload, { target: this.$el as HTMLElement });\n });\n }\n\n /**\n * Returns `true` when the filter should be disabled.\n *\n * @returns `true` if the filter should be disabled.\n * @internal\n */\n protected get isDisabled(): boolean {\n return this.filter.totalResults === 0;\n }\n\n /**\n * Dynamic CSS classes to apply to the component.\n *\n * @returns The dynamic CSS classes to apply to the component.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return [\n 'x-filter',\n {\n 'x-filter--is-selected': this.filter.selected,\n 'x-filter--is-disabled': this.isDisabled\n }\n ];\n }\n\n render(h: CreateElement): VNode {\n return (\n this.$scopedSlots.default?.({\n filter: this.filter,\n // eslint-disable-next-line @typescript-eslint/unbound-method\n clickFilter: this.emitEvents,\n cssClasses: this.cssClasses,\n isDisabled: this.isDisabled\n })?.[0] ?? h()\n );\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;;AAcA;IAA8C,oCAAG;IAAjD;;KAsEC;IAvDC,sBAAc,oCAAM;;;;;;;aAApB;YACE,kBACE,kBAAkB,EAAE,IAAI,CAAC,MAAM,IAC5B,IAAI,CAAC,WAAW,EACnB;SACH;;;OAAA;;;;;;IAOS,qCAAU,GAApB;QAAA,iBAIC;QAHC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,UAAC,EAAgB;gBAAf,KAAK,QAAA,EAAE,OAAO,QAAA;YAClD,KAAI,CAAC,EAAE,CAAC,IAAI,CAAC,KAAe,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,KAAI,CAAC,GAAkB,EAAE,CAAC,CAAC;SAC7E,CAAC,CAAC;KACJ;IAQD,sBAAc,wCAAU;;;;;;;aAAxB;YACE,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,KAAK,CAAC,CAAC;SACvC;;;OAAA;IAQD,sBAAc,wCAAU;;;;;;;aAAxB;YACE,OAAO;gBACL,UAAU;gBACV;oBACE,uBAAuB,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;oBAC7C,uBAAuB,EAAE,IAAI,CAAC,UAAU;iBACzC;aACF,CAAC;SACH;;;OAAA;IAED,iCAAM,GAAN,UAAO,CAAgB;;QACrB,QACE,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,YAAY,EAAC,OAAO,mDAAG;YAC1B,MAAM,EAAE,IAAI,CAAC,MAAM;;YAEnB,WAAW,EAAE,IAAI,CAAC,UAAU;YAC5B,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,UAAU,EAAE,IAAI,CAAC,UAAU;SAC5B,CAAC,0CAAG,CAAC,CAAC,mCAAI,CAAC,EAAE,EACd;KACH;IAlED;QADC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;oDACK;IAI9B;QADC,IAAI,EAAE;yDACoC;IAPxB,gBAAgB;QAHpC,SAAS,CAAC;YACT,MAAM,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;SACzC,CAAC;OACmB,gBAAgB,CAsEpC;IAAD,uBAAC;CAAA,CAtE6C,GAAG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-filter.vue.js","sources":["../../../../../../src/x-modules/facets/components/filters/simple-filter.vue"],"sourcesContent":["<template>\n <RenderlessFilter\n v-slot=\"{ filter, clickFilter, cssClasses, isDisabled }\"\n :class=\"cssClasses\"\n :clickEvents=\"clickEvents\"\n :filter=\"filter\"\n class=\"x-simple-filter\"\n >\n <!--\n @slot The control element to render\n @binding {Filter} filter - The filter data\n @binding {() => void} clickFilter - Method that will invoke the needed actions after the user\n clicks the filter.\n @binding {Object} cssClasses - Object containing CSS classes to add to the button\n @binding {Boolean} isDisabled - True if the filter shouldn't be able to be selected by the\n user\n -->\n <slot\n v-bind=\"{\n filter,\n clickFilter,\n cssClasses,\n isDisabled\n }\"\n >\n <button\n @click=\"clickFilter\"\n :aria-checked=\"filter.selected.toString()\"\n :class=\"cssClasses\"\n :disabled=\"isDisabled\"\n data-test=\"filter\"\n role=\"checkbox\"\n >\n <!--\n @slot The content to render inside the button\n @binding {Filter} filter - The filter data\n -->\n <slot :filter=\"filter\" name=\"label\">{{ filter.label }}</slot>\n </button>\n </slot>\n </RenderlessFilter>\n</template>\n\n<script lang=\"ts\">\n import { SimpleFilter as SimpleFilterModel } from '@empathyco/x-types';\n import Vue from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { xComponentMixin } from '../../../../components';\n import { VueCSSClasses } from '../../../../utils/types';\n import { XEventsTypes } from '../../../../wiring/events.types';\n import { facetsXModule } from '../../x-module';\n import BaseFilter from './base-filter.vue';\n import RenderlessFilter from './renderless-filter.vue';\n\n /**\n * Renders a simple filter, emitting the needed events when clicked.\n *\n * @public\n */\n @Component({\n components: { RenderlessFilter, BaseFilter },\n mixins: [xComponentMixin(facetsXModule)]\n })\n export default class SimpleFilter extends Vue {\n /** The filter data to render. */\n @Prop({ required: true })\n public filter!: SimpleFilterModel;\n\n /**\n * Additional events to emit when the filter is clicked.\n *\n * @returns A dictionary with the events to be emitted when the filter is clicked, and its\n * payload.\n * @internal\n */\n protected get clickEvents(): Partial<XEventsTypes> {\n return {\n UserClickedASimpleFilter: this.filter\n };\n }\n\n /**\n * Dynamic CSS classes to apply to the component.\n *\n * @returns The dynamic CSS classes to apply to the component.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-simple-filter--is-selected': this.filter.selected\n };\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n
|
|
1
|
+
{"version":3,"file":"simple-filter.vue.js","sources":["../../../../../../src/x-modules/facets/components/filters/simple-filter.vue"],"sourcesContent":["<template>\n <RenderlessFilter\n v-slot=\"{ filter, clickFilter, cssClasses, isDisabled }\"\n :class=\"cssClasses\"\n :clickEvents=\"clickEvents\"\n :filter=\"filter\"\n class=\"x-simple-filter\"\n >\n <!--\n @slot The control element to render\n @binding {Filter} filter - The filter data\n @binding {() => void} clickFilter - Method that will invoke the needed actions after the user\n clicks the filter.\n @binding {Object} cssClasses - Object containing CSS classes to add to the button\n @binding {Boolean} isDisabled - True if the filter shouldn't be able to be selected by the\n user\n -->\n <slot\n v-bind=\"{\n filter,\n clickFilter,\n cssClasses,\n isDisabled\n }\"\n >\n <button\n @click=\"clickFilter\"\n :aria-checked=\"filter.selected.toString()\"\n :class=\"cssClasses\"\n :disabled=\"isDisabled\"\n data-test=\"filter\"\n role=\"checkbox\"\n >\n <!--\n @slot The content to render inside the button\n @binding {Filter} filter - The filter data\n -->\n <slot :filter=\"filter\" name=\"label\">{{ filter.label }}</slot>\n </button>\n </slot>\n </RenderlessFilter>\n</template>\n\n<script lang=\"ts\">\n import { SimpleFilter as SimpleFilterModel } from '@empathyco/x-types';\n import Vue from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { xComponentMixin } from '../../../../components';\n import { VueCSSClasses } from '../../../../utils/types';\n import { XEventsTypes } from '../../../../wiring/events.types';\n import { facetsXModule } from '../../x-module';\n import BaseFilter from './base-filter.vue';\n import RenderlessFilter from './renderless-filter.vue';\n\n /**\n * Renders a simple filter, emitting the needed events when clicked.\n *\n * @public\n */\n @Component({\n components: { RenderlessFilter, BaseFilter },\n mixins: [xComponentMixin(facetsXModule)]\n })\n export default class SimpleFilter extends Vue {\n /** The filter data to render. */\n @Prop({ required: true })\n public filter!: SimpleFilterModel;\n\n /**\n * Additional events to emit when the filter is clicked.\n *\n * @returns A dictionary with the events to be emitted when the filter is clicked, and its\n * payload.\n * @internal\n */\n protected get clickEvents(): Partial<XEventsTypes> {\n return {\n UserClickedASimpleFilter: this.filter\n };\n }\n\n /**\n * Dynamic CSS classes to apply to the component.\n *\n * @returns The dynamic CSS classes to apply to the component.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-simple-filter--is-selected': this.filter.selected\n };\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n## Examples\n\nThis component renders a button, which on clicked emits the `UserClickedAFilter` and the\n`UserClickedASimpleFilter` events. By default, it renders a `button` with the `filter.label`\nproperty as text.\n\n### Basic usage\n\n```vue\n<template>\n <SimpleFilter :filter=\"filter\" />\n</template>\n\n<script>\n import { SimpleFilter } from '@empathyco/x-components/facets';\n\n export default {\n name: 'SimpleFilterTest',\n components: {\n SimpleFilter\n },\n data() {\n return {\n filter: {\n modelName: 'SimpleFilter',\n selected: false,\n id: 'category:shirts',\n value: 'category:shirts',\n facetId: 'category',\n totalResults: 10\n }\n };\n }\n };\n</script>\n```\n\n### Rendering an input\n\nYou can change the rendered control using the default slot. Note that because of the current Vue\nlimitations, you must only render one single root node in this slot. There you will receive all the\ndata and methods needed:\n\n```vue\n<template>\n <SimpleFilter v-slot=\"{ filter, clickFilter, isDisabled, cssClasses }\" :filter=\"filter\">\n <label :class=\"cssClasses\">\n <input :checked=\"filter.selected\" type=\"checkbox\" @change=\"clickFilter\" />\n {{ filter.label }}\n </label>\n </SimpleFilter>\n</template>\n\n<script>\n import { SimpleFilter } from '@empathyco/x-components/facets';\n\n export default {\n name: 'SimpleFilterTest',\n components: {\n SimpleFilter\n },\n data() {\n return {\n filter: {\n modelName: 'SimpleFilter',\n selected: false,\n id: 'category:shirts',\n value: 'category:shirts',\n facetId: 'category',\n label: 'Shirts',\n totalResults: 10\n }\n };\n }\n };\n</script>\n```\n\n### Changing default button content\n\nYou can change the content rendered by the default button using the `label` slot. There you will\nreceive the filter data.\n\n```vue\n<template>\n <SimpleFilter :filter=\"filter\">\n <template #label=\"{ filter }\">\n <img :src=\"`imgs/filters/${filter.id}.png`\" />\n <span>{{ filter.label }}</span>\n </template>\n </SimpleFilter>\n</template>\n\n<script>\n import { SimpleFilter } from '@empathyco/x-components/facets';\n\n export default {\n name: 'SimpleFilterTest',\n components: {\n SimpleFilter\n },\n data() {\n return {\n filter: {\n modelName: 'SimpleFilter',\n selected: false,\n id: 'category:shirts',\n value: 'category:shirts',\n facetId: 'category',\n label: 'Shirts',\n totalResults: 10\n }\n };\n }\n };\n</script>\n```\n\n## Events\n\nA list of events that the component will emit:\n\n- `UserClickedASimpleFilter`: the event is emitted after the user clicks the button. The event\n payload is the simple filter.\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/js/x-modules/facets/components/filters/simple-filter.vue_rollup-plugin-vue=script.js
CHANGED
|
@@ -8,7 +8,7 @@ import '../../../../components/animations/collapse-height.vue.js';
|
|
|
8
8
|
import '../../../../components/animations/collapse-width.vue.js';
|
|
9
9
|
import '../../../../components/animations/cross-fade.vue.js';
|
|
10
10
|
import '../../../../components/animations/fade-and-slide.vue.js';
|
|
11
|
-
import '../../../../components/staggering-transition-group.vue.js';
|
|
11
|
+
import '../../../../components/animations/staggering-transition-group.vue.js';
|
|
12
12
|
import '../../../../components/animations/staggered-fade-and-slide.vue.js';
|
|
13
13
|
import '../../../../components/animations/translate-from-left.vue.js';
|
|
14
14
|
import '../../../../components/animations/translate-from-right.vue.js';
|
|
@@ -63,21 +63,30 @@ import '../../../../components/icons/plus.vue.js';
|
|
|
63
63
|
import '../../../../components/icons/search.vue.js';
|
|
64
64
|
import '../../../../components/icons/show.vue.js';
|
|
65
65
|
import '../../../../components/icons/search-tiny.vue.js';
|
|
66
|
+
import '../../../../components/icons/tag.vue.js';
|
|
66
67
|
import '../../../../components/icons/trash-open.vue.js';
|
|
67
68
|
import '../../../../components/icons/trash.vue.js';
|
|
68
69
|
import '../../../../components/icons/trending-tiny.vue.js';
|
|
69
70
|
import '../../../../components/icons/trending.vue.js';
|
|
70
71
|
import '../../../../components/icons/user.vue.js';
|
|
71
|
-
import '../../../../components/
|
|
72
|
+
import '../../../../components/decorators/store.decorators.js';
|
|
73
|
+
import '../../../../components/x-component.utils.js';
|
|
74
|
+
import { xComponentMixin } from '../../../../components/x-component.mixin.js';
|
|
72
75
|
import '../../../../components/modals/base-modal.vue.js';
|
|
76
|
+
import '../../../../components/modals/base-id-modal.vue.js';
|
|
77
|
+
import '../../../../components/scroll/scroll.mixin.js';
|
|
78
|
+
import '../../../../components/scroll/base-scroll.vue.js';
|
|
79
|
+
import '../../../../components/layouts/fixed-header-and-asides-layout.vue.js';
|
|
80
|
+
import '../../../../components/panels/base-toggle-panel.vue.js';
|
|
81
|
+
import '../../../../components/panels/base-id-toggle-panel.vue.js';
|
|
82
|
+
import '../../../../components/layouts/multi-column-max-width-layout.vue.js';
|
|
83
|
+
import '../../../../components/layouts/single-column-layout.vue.js';
|
|
84
|
+
import '../../../../components/modals/base-events-modal-close.vue.js';
|
|
73
85
|
import '../../../../components/modals/base-events-modal.vue.js';
|
|
74
86
|
import '../../../../components/modals/base-events-modal-open.vue.js';
|
|
75
|
-
import '../../../../components/modals/base-id-modal.vue.js';
|
|
76
87
|
import '../../../../components/modals/base-id-modal-close.vue.js';
|
|
77
88
|
import '../../../../components/modals/base-id-modal-open.vue.js';
|
|
78
|
-
import '../../../../components/panels/base-toggle-panel.vue.js';
|
|
79
89
|
import '../../../../components/panels/base-header-toggle-panel.vue.js';
|
|
80
|
-
import '../../../../components/panels/base-id-toggle-panel.vue.js';
|
|
81
90
|
import '../../../../components/panels/base-id-toggle-panel-button.vue.js';
|
|
82
91
|
import '../../../../components/result/base-result-add-to-cart.vue.js';
|
|
83
92
|
import '../../../../components/result/base-result-current-price.vue.js';
|
|
@@ -86,8 +95,6 @@ import '../../../../components/result/base-result-link.vue.js';
|
|
|
86
95
|
import '../../../../components/result/base-result-previous-price.vue.js';
|
|
87
96
|
import '../../../../components/result/base-result-fallback-image.vue.js';
|
|
88
97
|
import '../../../../components/result/base-result-placeholder-image.vue.js';
|
|
89
|
-
import '../../../../components/scroll/scroll.mixin.js';
|
|
90
|
-
import '../../../../components/scroll/base-scroll.vue.js';
|
|
91
98
|
import '../../../../components/suggestions/base-suggestion.vue.js';
|
|
92
99
|
import '../../../../components/suggestions/base-suggestions.vue.js';
|
|
93
100
|
import '../../../../components/auto-progress-bar.vue.js';
|
|
@@ -98,11 +105,6 @@ import '../../../../components/base-variable-column-grid.vue.js';
|
|
|
98
105
|
import '../../../../components/decorators/debounce.decorators.js';
|
|
99
106
|
import '../../../../components/sliding-panel.vue.js';
|
|
100
107
|
import '../../../../components/items-list.vue.js';
|
|
101
|
-
import '../../../../components/decorators/store.decorators.js';
|
|
102
|
-
import '../../../../components/x-component.utils.js';
|
|
103
|
-
import { xComponentMixin } from '../../../../components/x-component.mixin.js';
|
|
104
|
-
import '../../../../components/layouts/multi-column-max-width-layout.vue.js';
|
|
105
|
-
import '../../../../components/layouts/single-column-layout.vue.js';
|
|
106
108
|
import '../../../../components/location-provider.vue.js';
|
|
107
109
|
import '../../../../components/global-x-bus.vue.js';
|
|
108
110
|
import '../../../../components/snippet-callbacks.vue.js';
|
package/js/x-modules/facets/components/filters/simple-filter.vue_rollup-plugin-vue=script.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simple-filter.vue_rollup-plugin-vue=script.js","sources":["../../../../../../src/x-modules/facets/components/filters/simple-filter.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { SimpleFilter as SimpleFilterModel } from '@empathyco/x-types';\nimport Vue from 'vue';\nimport { Component, Prop } from 'vue-property-decorator';\nimport { xComponentMixin } from '../../../../components';\nimport { VueCSSClasses } from '../../../../utils/types';\nimport { XEventsTypes } from '../../../../wiring/events.types';\nimport { facetsXModule } from '../../x-module';\nimport BaseFilter from './base-filter.vue';\nimport RenderlessFilter from './renderless-filter.vue';\n\n/**\n * Renders a simple filter, emitting the needed events when clicked.\n *\n * @public\n */\n@Component({\n components: { RenderlessFilter, BaseFilter },\n mixins: [xComponentMixin(facetsXModule)]\n})\nexport default class SimpleFilter extends Vue {\n /** The filter data to render. */\n @Prop({ required: true })\n public filter!: SimpleFilterModel;\n\n /**\n * Additional events to emit when the filter is clicked.\n *\n * @returns A dictionary with the events to be emitted when the filter is clicked, and its\n * payload.\n * @internal\n */\n protected get clickEvents(): Partial<XEventsTypes> {\n return {\n UserClickedASimpleFilter: this.filter\n };\n }\n\n /**\n * Dynamic CSS classes to apply to the component.\n *\n * @returns The dynamic CSS classes to apply to the component.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-simple-filter--is-selected': this.filter.selected\n };\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"simple-filter.vue_rollup-plugin-vue=script.js","sources":["../../../../../../src/x-modules/facets/components/filters/simple-filter.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport { SimpleFilter as SimpleFilterModel } from '@empathyco/x-types';\nimport Vue from 'vue';\nimport { Component, Prop } from 'vue-property-decorator';\nimport { xComponentMixin } from '../../../../components';\nimport { VueCSSClasses } from '../../../../utils/types';\nimport { XEventsTypes } from '../../../../wiring/events.types';\nimport { facetsXModule } from '../../x-module';\nimport BaseFilter from './base-filter.vue';\nimport RenderlessFilter from './renderless-filter.vue';\n\n/**\n * Renders a simple filter, emitting the needed events when clicked.\n *\n * @public\n */\n@Component({\n components: { RenderlessFilter, BaseFilter },\n mixins: [xComponentMixin(facetsXModule)]\n})\nexport default class SimpleFilter extends Vue {\n /** The filter data to render. */\n @Prop({ required: true })\n public filter!: SimpleFilterModel;\n\n /**\n * Additional events to emit when the filter is clicked.\n *\n * @returns A dictionary with the events to be emitted when the filter is clicked, and its\n * payload.\n * @internal\n */\n protected get clickEvents(): Partial<XEventsTypes> {\n return {\n UserClickedASimpleFilter: this.filter\n };\n }\n\n /**\n * Dynamic CSS classes to apply to the component.\n *\n * @returns The dynamic CSS classes to apply to the component.\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-simple-filter--is-selected': this.filter.selected\n };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA;;;;;AASA;IAA0C,gCAAG;IAA7C;;KA6BC;IAjBC,sBAAc,qCAAW;;;;;;;;aAAzB;YACE,OAAO;gBACL,wBAAwB,EAAE,IAAI,CAAC,MAAM;aACtC,CAAC;SACH;;;OAAA;IAQD,sBAAc,oCAAU;;;;;;;aAAxB;YACE,OAAO;gBACL,8BAA8B,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ;aACrD,CAAC;SACH;;;OAAA;IAzBD;QADC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;gDACS;IAHf,YAAY;QAJhC,SAAS,CAAC;YACT,UAAU,EAAE,EAAE,gBAAgB,kBAAA,EAAE,UAAU,YAAA,EAAE;YAC5C,MAAM,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;SACzC,CAAC;OACmB,YAAY,CA6BhC;IAAD,mBAAC;CAAA,CA7ByC,GAAG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exclude-filters-with-no-results.vue.js","sources":["../../../../../../src/x-modules/facets/components/lists/exclude-filters-with-no-results.vue"],"sourcesContent":["<script lang=\"ts\">\n import { Filter, isBooleanFilter } from '@empathyco/x-types';\n import { CreateElement, VNode } from 'vue';\n import { mixins } from 'vue-class-component';\n import { Component } from 'vue-property-decorator';\n import { xComponentMixin, XProvide } from '../../../../components';\n import { facetsXModule } from '../../x-module';\n import FiltersInjectionMixin from './filters-injection.mixin';\n\n /**\n * The `ExcludeFiltersWithNoResults` component filters the provided list of filters, excluding\n * those which have the `totalResults` property exactly equal to `0`. It won't remove filters with\n * no `totalResults` property.\n *\n * The new list of filters is bound to the default scoped slot. As this component does not render\n * no root element, this default slot must contain a single root node.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(facetsXModule)]\n })\n export default class ExcludeFiltersWithNoResults extends mixins(FiltersInjectionMixin) {\n /**\n * Removes the filters that have exactly 0 results associated.\n *\n * @returns A sublist of the filters prop, excluding the ones with no results.\n * @internal\n */\n @XProvide('filters')\n public get filtersWithResults(): Filter[] {\n return this.renderedFilters.filter(\n filter => !isBooleanFilter(filter) || filter.totalResults !== 0\n );\n }\n\n render(h: CreateElement): VNode {\n return this.$scopedSlots.default?.({ filters: this.filtersWithResults })?.[0] ?? h();\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n
|
|
1
|
+
{"version":3,"file":"exclude-filters-with-no-results.vue.js","sources":["../../../../../../src/x-modules/facets/components/lists/exclude-filters-with-no-results.vue"],"sourcesContent":["<script lang=\"ts\">\n import { Filter, isBooleanFilter } from '@empathyco/x-types';\n import { CreateElement, VNode } from 'vue';\n import { mixins } from 'vue-class-component';\n import { Component } from 'vue-property-decorator';\n import { xComponentMixin, XProvide } from '../../../../components';\n import { facetsXModule } from '../../x-module';\n import FiltersInjectionMixin from './filters-injection.mixin';\n\n /**\n * The `ExcludeFiltersWithNoResults` component filters the provided list of filters, excluding\n * those which have the `totalResults` property exactly equal to `0`. It won't remove filters with\n * no `totalResults` property.\n *\n * The new list of filters is bound to the default scoped slot. As this component does not render\n * no root element, this default slot must contain a single root node.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(facetsXModule)]\n })\n export default class ExcludeFiltersWithNoResults extends mixins(FiltersInjectionMixin) {\n /**\n * Removes the filters that have exactly 0 results associated.\n *\n * @returns A sublist of the filters prop, excluding the ones with no results.\n * @internal\n */\n @XProvide('filters')\n public get filtersWithResults(): Filter[] {\n return this.renderedFilters.filter(\n filter => !isBooleanFilter(filter) || filter.totalResults !== 0\n );\n }\n\n render(h: CreateElement): VNode {\n return this.$scopedSlots.default?.({ filters: this.filtersWithResults })?.[0] ?? h();\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n## Example\n\nThe `ExcludeFiltersWithNoResults` component filters the provided list of filter, excluding those\nwhich have the `totalResults` property exactly equal to `0`. It won't remove filters with no\n`totalResults` property.\n\nThe new list of filters is bound to the default scoped slot. As this component does not render no\nroot element, this default slot must contain a single root node.\n\n### Important\n\nThe component has two ways of receive the filters list, it can be injected by another component or\nbe send it as a prop. If the component doesnt have a parent component that receive and exposed a\nfilters list to their children, it is mandatory to send it as prop.\n\n### Basic Usage\n\n```vue\n<template>\n <ExcludeFiltersWithNoResults v-slot=\"{ filters }\" :filters=\"filters\">\n <div>\n <span v-for=\"filter in filters\" :key=\"filter.id\">{{ filter.label }}</span>\n </div>\n </ExcludeFiltersWithNoResults>\n</template>\n\n<script>\n import { ExcludeFiltersWithNoResults } from '@empathyco/x-components/facets';\n\n export default {\n components: {\n ExcludeFiltersWithNoResults\n },\n data() {\n return {\n filters: [\n {\n // This is the only filter that will be removed.\n facetId: 'category',\n id: 'category:men',\n modelName: 'SimpleFilter',\n selected: false,\n label: 'Men',\n totalResults: 0\n },\n {\n facetId: 'category',\n id: 'category:women',\n modelName: 'SimpleFilter',\n selected: false,\n label: 'Women',\n totalResults: 10\n },\n {\n facetId: 'category',\n id: 'category:kids',\n modelName: 'SimpleFilter',\n selected: false,\n label: 'Kids',\n totalResults: undefined\n }\n ]\n };\n }\n };\n</script>\n```\n\n> **Using injection**: It can receive the filters list by injection. It only works if it has a\n> parent component that receives and exposes the filters list. Using the injection, It is not\n> necessary to send the prop to the child components, it has to be send it in the parent component,\n> the rest of components will inject this list.\n\n```vue\n<template>\n <ExcludeFiltersWithNoResults :filters=\"filters\">\n <FiltersSearch>\n <Filters v-slot=\"{ filter }\">\n <SimpleFilter :filter=\"filter\" data-test=\"brand-filter\" />\n </Filters>\n </FiltersSearch>\n </ExcludeFiltersWithNoResults>\n</template>\n\n<script>\n import {\n ExcludeFiltersWithNoResults,\n FiltersSearch,\n Filters,\n SimpleFilter\n } from '@empathyco/x-components/facets';\n\n export default {\n components: {\n ExcludeFiltersWithNoResults,\n FiltersSearch,\n Filters,\n SimpleFilter\n },\n data() {\n return {\n filters: [\n {\n // This is the only filter that will be removed.\n facetId: 'category',\n id: 'category:men',\n modelName: 'SimpleFilter',\n selected: false,\n label: 'Men',\n totalResults: 0\n },\n {\n facetId: 'category',\n id: 'category:women',\n modelName: 'SimpleFilter',\n selected: false,\n label: 'Women',\n totalResults: 10\n },\n {\n facetId: 'category',\n id: 'category:kids',\n modelName: 'SimpleFilter',\n selected: false,\n label: 'Kids',\n totalResults: undefined\n }\n ]\n };\n }\n };\n</script>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -7,7 +7,7 @@ import '../../../../components/animations/collapse-height.vue.js';
|
|
|
7
7
|
import '../../../../components/animations/collapse-width.vue.js';
|
|
8
8
|
import '../../../../components/animations/cross-fade.vue.js';
|
|
9
9
|
import '../../../../components/animations/fade-and-slide.vue.js';
|
|
10
|
-
import '../../../../components/staggering-transition-group.vue.js';
|
|
10
|
+
import '../../../../components/animations/staggering-transition-group.vue.js';
|
|
11
11
|
import '../../../../components/animations/staggered-fade-and-slide.vue.js';
|
|
12
12
|
import '../../../../components/animations/translate-from-left.vue.js';
|
|
13
13
|
import '../../../../components/animations/translate-from-right.vue.js';
|
|
@@ -63,21 +63,30 @@ import '../../../../components/icons/plus.vue.js';
|
|
|
63
63
|
import '../../../../components/icons/search.vue.js';
|
|
64
64
|
import '../../../../components/icons/show.vue.js';
|
|
65
65
|
import '../../../../components/icons/search-tiny.vue.js';
|
|
66
|
+
import '../../../../components/icons/tag.vue.js';
|
|
66
67
|
import '../../../../components/icons/trash-open.vue.js';
|
|
67
68
|
import '../../../../components/icons/trash.vue.js';
|
|
68
69
|
import '../../../../components/icons/trending-tiny.vue.js';
|
|
69
70
|
import '../../../../components/icons/trending.vue.js';
|
|
70
71
|
import '../../../../components/icons/user.vue.js';
|
|
71
|
-
import '../../../../components/
|
|
72
|
+
import '../../../../components/decorators/store.decorators.js';
|
|
73
|
+
import '../../../../components/x-component.utils.js';
|
|
74
|
+
import { xComponentMixin } from '../../../../components/x-component.mixin.js';
|
|
72
75
|
import '../../../../components/modals/base-modal.vue.js';
|
|
76
|
+
import '../../../../components/modals/base-id-modal.vue.js';
|
|
77
|
+
import '../../../../components/scroll/scroll.mixin.js';
|
|
78
|
+
import '../../../../components/scroll/base-scroll.vue.js';
|
|
79
|
+
import '../../../../components/layouts/fixed-header-and-asides-layout.vue.js';
|
|
80
|
+
import '../../../../components/panels/base-toggle-panel.vue.js';
|
|
81
|
+
import '../../../../components/panels/base-id-toggle-panel.vue.js';
|
|
82
|
+
import '../../../../components/layouts/multi-column-max-width-layout.vue.js';
|
|
83
|
+
import '../../../../components/layouts/single-column-layout.vue.js';
|
|
84
|
+
import '../../../../components/modals/base-events-modal-close.vue.js';
|
|
73
85
|
import '../../../../components/modals/base-events-modal.vue.js';
|
|
74
86
|
import '../../../../components/modals/base-events-modal-open.vue.js';
|
|
75
|
-
import '../../../../components/modals/base-id-modal.vue.js';
|
|
76
87
|
import '../../../../components/modals/base-id-modal-close.vue.js';
|
|
77
88
|
import '../../../../components/modals/base-id-modal-open.vue.js';
|
|
78
|
-
import '../../../../components/panels/base-toggle-panel.vue.js';
|
|
79
89
|
import '../../../../components/panels/base-header-toggle-panel.vue.js';
|
|
80
|
-
import '../../../../components/panels/base-id-toggle-panel.vue.js';
|
|
81
90
|
import '../../../../components/panels/base-id-toggle-panel-button.vue.js';
|
|
82
91
|
import '../../../../components/result/base-result-add-to-cart.vue.js';
|
|
83
92
|
import '../../../../components/result/base-result-current-price.vue.js';
|
|
@@ -86,8 +95,6 @@ import '../../../../components/result/base-result-link.vue.js';
|
|
|
86
95
|
import '../../../../components/result/base-result-previous-price.vue.js';
|
|
87
96
|
import '../../../../components/result/base-result-fallback-image.vue.js';
|
|
88
97
|
import '../../../../components/result/base-result-placeholder-image.vue.js';
|
|
89
|
-
import '../../../../components/scroll/scroll.mixin.js';
|
|
90
|
-
import '../../../../components/scroll/base-scroll.vue.js';
|
|
91
98
|
import '../../../../components/suggestions/base-suggestion.vue.js';
|
|
92
99
|
import '../../../../components/suggestions/base-suggestions.vue.js';
|
|
93
100
|
import '../../../../components/auto-progress-bar.vue.js';
|
|
@@ -98,11 +105,6 @@ import '../../../../components/base-variable-column-grid.vue.js';
|
|
|
98
105
|
import '../../../../components/decorators/debounce.decorators.js';
|
|
99
106
|
import '../../../../components/sliding-panel.vue.js';
|
|
100
107
|
import '../../../../components/items-list.vue.js';
|
|
101
|
-
import '../../../../components/decorators/store.decorators.js';
|
|
102
|
-
import '../../../../components/x-component.utils.js';
|
|
103
|
-
import { xComponentMixin } from '../../../../components/x-component.mixin.js';
|
|
104
|
-
import '../../../../components/layouts/multi-column-max-width-layout.vue.js';
|
|
105
|
-
import '../../../../components/layouts/single-column-layout.vue.js';
|
|
106
108
|
import '../../../../components/location-provider.vue.js';
|
|
107
109
|
import '../../../../components/global-x-bus.vue.js';
|
|
108
110
|
import '../../../../components/snippet-callbacks.vue.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exclude-filters-with-no-results.vue_rollup-plugin-vue=script.js","sources":["../../../../../../src/x-modules/facets/components/lists/exclude-filters-with-no-results.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\nimport { Filter, isBooleanFilter } from '@empathyco/x-types';\nimport { CreateElement, VNode } from 'vue';\nimport { mixins } from 'vue-class-component';\nimport { Component } from 'vue-property-decorator';\nimport { xComponentMixin, XProvide } from '../../../../components';\nimport { facetsXModule } from '../../x-module';\nimport FiltersInjectionMixin from './filters-injection.mixin';\n\n/**\n * The `ExcludeFiltersWithNoResults` component filters the provided list of filters, excluding\n * those which have the `totalResults` property exactly equal to `0`. It won't remove filters with\n * no `totalResults` property.\n *\n * The new list of filters is bound to the default scoped slot. As this component does not render\n * no root element, this default slot must contain a single root node.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(facetsXModule)]\n})\nexport default class ExcludeFiltersWithNoResults extends mixins(FiltersInjectionMixin) {\n /**\n * Removes the filters that have exactly 0 results associated.\n *\n * @returns A sublist of the filters prop, excluding the ones with no results.\n * @internal\n */\n @XProvide('filters')\n public get filtersWithResults(): Filter[] {\n return this.renderedFilters.filter(\n filter => !isBooleanFilter(filter) || filter.totalResults !== 0\n );\n }\n\n render(h: CreateElement): VNode {\n return this.$scopedSlots.default?.({ filters: this.filtersWithResults })?.[0] ?? h();\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exclude-filters-with-no-results.vue_rollup-plugin-vue=script.js","sources":["../../../../../../src/x-modules/facets/components/lists/exclude-filters-with-no-results.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\nimport { Filter, isBooleanFilter } from '@empathyco/x-types';\nimport { CreateElement, VNode } from 'vue';\nimport { mixins } from 'vue-class-component';\nimport { Component } from 'vue-property-decorator';\nimport { xComponentMixin, XProvide } from '../../../../components';\nimport { facetsXModule } from '../../x-module';\nimport FiltersInjectionMixin from './filters-injection.mixin';\n\n/**\n * The `ExcludeFiltersWithNoResults` component filters the provided list of filters, excluding\n * those which have the `totalResults` property exactly equal to `0`. It won't remove filters with\n * no `totalResults` property.\n *\n * The new list of filters is bound to the default scoped slot. As this component does not render\n * no root element, this default slot must contain a single root node.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(facetsXModule)]\n})\nexport default class ExcludeFiltersWithNoResults extends mixins(FiltersInjectionMixin) {\n /**\n * Removes the filters that have exactly 0 results associated.\n *\n * @returns A sublist of the filters prop, excluding the ones with no results.\n * @internal\n */\n @XProvide('filters')\n public get filtersWithResults(): Filter[] {\n return this.renderedFilters.filter(\n filter => !isBooleanFilter(filter) || filter.totalResults !== 0\n );\n }\n\n render(h: CreateElement): VNode {\n return this.$scopedSlots.default?.({ filters: this.filtersWithResults })?.[0] ?? h();\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA;;;;;;;;;;AAaA;IAAyD,+CAA6B;IAAtF;;KAiBC;IATC,sBAAW,2DAAkB;;;;;;;aAA7B;YACE,OAAO,IAAI,CAAC,eAAe,CAAC,MAAM,CAChC,UAAA,MAAM,IAAI,OAAA,CAAC,eAAe,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,YAAY,KAAK,CAAC,GAAA,CAChE,CAAC;SACH;;;OAAA;IAED,4CAAM,GAAN,UAAO,CAAgB;;QACrB,OAAO,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,YAAY,EAAC,OAAO,mDAAG,EAAE,OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,CAAC,0CAAG,CAAC,CAAC,mCAAI,CAAC,EAAE,CAAC;KACtF;IARD;QADC,QAAQ,CAAC,SAAS,CAAC;yEAKnB;IAZkB,2BAA2B;QAH/C,SAAS,CAAC;YACT,MAAM,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;SACzC,CAAC;OACmB,2BAA2B,CAiB/C;IAAD,kCAAC;CAjBD,CAAyD,MAAM,CAAC,qBAAqB,CAAC;;;;"}
|
|
@@ -41,11 +41,11 @@ __vue_render__._withStripped = true;
|
|
|
41
41
|
/* style */
|
|
42
42
|
var __vue_inject_styles__ = function (inject) {
|
|
43
43
|
if (!inject) { return }
|
|
44
|
-
inject("data-v-
|
|
44
|
+
inject("data-v-235e2554_0", { source: ".x-filters[data-v-235e2554] {\n list-style-type: none;\n}", map: undefined, media: undefined });
|
|
45
45
|
|
|
46
46
|
};
|
|
47
47
|
/* scoped */
|
|
48
|
-
var __vue_scope_id__ = "data-v-
|
|
48
|
+
var __vue_scope_id__ = "data-v-235e2554";
|
|
49
49
|
/* module identifier */
|
|
50
50
|
var __vue_module_identifier__ = undefined;
|
|
51
51
|
/* functional template */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-list.vue.js","sources":["../../../../../../src/x-modules/facets/components/lists/filters-list.vue"],"sourcesContent":["<template>\n <component\n :is=\"animation\"\n v-if=\"hasFiltersToRender\"\n tag=\"ul\"\n class=\"x-list x-filters\"\n :class=\"cssClasses\"\n data-test=\"base-filters\"\n >\n <li\n v-for=\"filter in renderedFilters\"\n :key=\"filter.id\"\n class=\"x-filters__item\"\n data-test=\"base-filters-item\"\n >\n <!--\n @slot (Required) Filter content\n @binding {Filter} filter - Search-types filter data.\n -->\n <slot :filter=\"filter\" />\n </li>\n </component>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { mixins } from 'vue-class-component';\n import { Component, Prop } from 'vue-property-decorator';\n import { xComponentMixin } from '../../../../components';\n import { VueCSSClasses } from '../../../../utils/types';\n import { facetsXModule } from '../../x-module';\n import FiltersInjectionMixin from './filters-injection.mixin';\n\n /**\n * Renders a list with a list item per each\n * {@link @empathyco/x-types#BooleanFilter | BooleanFilter} in the filters prop array.\n * Each list item has a scoped slot, passing the filter as slot prop.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(facetsXModule)]\n })\n export default class FiltersList extends mixins(FiltersInjectionMixin) {\n /**\n * Animation component that will be used to animate the base filters.\n *\n * @public\n */\n @Prop({ default: 'ul' })\n protected animation!: Vue | string;\n\n /**\n * It handles if the filters should be rendered.\n *\n * @returns True if there are filters.\n *\n * @public\n */\n protected get hasFiltersToRender(): boolean {\n return this.renderedFilters?.length > 0;\n }\n\n /**\n * Checks if at least one filter is selected.\n *\n * @returns True if at least one filter is selected. False otherwise.\n * @internal\n */\n protected get hasSelectedFilters(): boolean {\n return !!this.renderedFilters?.some(filter => filter.selected);\n }\n\n /**\n * Dynamic CSS classes for the root element of this component.\n *\n * @returns An object containing the dynamic CSS classes and a boolean indicating if they should\n * be added or not.\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-filters--has-selected-filters': this.hasSelectedFilters\n };\n }\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-filters {\n list-style-type: none;\n }\n</style>\n\n<docs lang=\"mdx\">\n
|
|
1
|
+
{"version":3,"file":"filters-list.vue.js","sources":["../../../../../../src/x-modules/facets/components/lists/filters-list.vue"],"sourcesContent":["<template>\n <component\n :is=\"animation\"\n v-if=\"hasFiltersToRender\"\n tag=\"ul\"\n class=\"x-list x-filters\"\n :class=\"cssClasses\"\n data-test=\"base-filters\"\n >\n <li\n v-for=\"filter in renderedFilters\"\n :key=\"filter.id\"\n class=\"x-filters__item\"\n data-test=\"base-filters-item\"\n >\n <!--\n @slot (Required) Filter content\n @binding {Filter} filter - Search-types filter data.\n -->\n <slot :filter=\"filter\" />\n </li>\n </component>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { mixins } from 'vue-class-component';\n import { Component, Prop } from 'vue-property-decorator';\n import { xComponentMixin } from '../../../../components';\n import { VueCSSClasses } from '../../../../utils/types';\n import { facetsXModule } from '../../x-module';\n import FiltersInjectionMixin from './filters-injection.mixin';\n\n /**\n * Renders a list with a list item per each\n * {@link @empathyco/x-types#BooleanFilter | BooleanFilter} in the filters prop array.\n * Each list item has a scoped slot, passing the filter as slot prop.\n *\n * @public\n */\n @Component({\n mixins: [xComponentMixin(facetsXModule)]\n })\n export default class FiltersList extends mixins(FiltersInjectionMixin) {\n /**\n * Animation component that will be used to animate the base filters.\n *\n * @public\n */\n @Prop({ default: 'ul' })\n protected animation!: Vue | string;\n\n /**\n * It handles if the filters should be rendered.\n *\n * @returns True if there are filters.\n *\n * @public\n */\n protected get hasFiltersToRender(): boolean {\n return this.renderedFilters?.length > 0;\n }\n\n /**\n * Checks if at least one filter is selected.\n *\n * @returns True if at least one filter is selected. False otherwise.\n * @internal\n */\n protected get hasSelectedFilters(): boolean {\n return !!this.renderedFilters?.some(filter => filter.selected);\n }\n\n /**\n * Dynamic CSS classes for the root element of this component.\n *\n * @returns An object containing the dynamic CSS classes and a boolean indicating if they should\n * be added or not.\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-filters--has-selected-filters': this.hasSelectedFilters\n };\n }\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-filters {\n list-style-type: none;\n }\n</style>\n\n<docs lang=\"mdx\">\n## Examples\n\nRenders a list with a list item per each filter in the filters prop array. Each list item has a\nscoped slot, passing the filter as slot prop.\n\n### Important\n\nThe component has two ways of receive the filters list, it can be injected by another component or\nbe send it as a prop. If the component doesnt have a parent component that receive and exposed a\nfilters list to their children, it is mandatory to send it as prop.\n\n### Basic usage\n\nUsing default slot:\n\n```vue\n<FiltersList :filters=\"filters\">\n <template #default=\"{ filter }\">\n <p>{{ filter.label }}</p>\n </template>\n</FiltersList>\n```\n\nUsing default slot abbreviated syntax:\n\n```vue\n<FiltersList :filters=\"filters\" v-slot=\"{ filter }\">\n <p>{{ filter.label }}</p>\n</FiltersList>\n```\n\n> **Using injection**: It can receive the filters list by injection. It only works if it has a\n> parent component that receives and exposes the filters list. Using the injection, It is not\n> necessary to send the prop to the child components, it has to be send it in the parent component ,\n> the rest of components will inject this list.\n\n```vue\n<SlicedFilters :filters=\"filters\">\n <FiltersList v-slot=\"{ filter }\">\n <p>{{ filter.label }}</p>\n </FiltersList>\n</SlicedFilters>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -7,7 +7,7 @@ import '../../../../components/animations/collapse-height.vue.js';
|
|
|
7
7
|
import '../../../../components/animations/collapse-width.vue.js';
|
|
8
8
|
import '../../../../components/animations/cross-fade.vue.js';
|
|
9
9
|
import '../../../../components/animations/fade-and-slide.vue.js';
|
|
10
|
-
import '../../../../components/staggering-transition-group.vue.js';
|
|
10
|
+
import '../../../../components/animations/staggering-transition-group.vue.js';
|
|
11
11
|
import '../../../../components/animations/staggered-fade-and-slide.vue.js';
|
|
12
12
|
import '../../../../components/animations/translate-from-left.vue.js';
|
|
13
13
|
import '../../../../components/animations/translate-from-right.vue.js';
|
|
@@ -63,21 +63,30 @@ import '../../../../components/icons/plus.vue.js';
|
|
|
63
63
|
import '../../../../components/icons/search.vue.js';
|
|
64
64
|
import '../../../../components/icons/show.vue.js';
|
|
65
65
|
import '../../../../components/icons/search-tiny.vue.js';
|
|
66
|
+
import '../../../../components/icons/tag.vue.js';
|
|
66
67
|
import '../../../../components/icons/trash-open.vue.js';
|
|
67
68
|
import '../../../../components/icons/trash.vue.js';
|
|
68
69
|
import '../../../../components/icons/trending-tiny.vue.js';
|
|
69
70
|
import '../../../../components/icons/trending.vue.js';
|
|
70
71
|
import '../../../../components/icons/user.vue.js';
|
|
71
|
-
import '../../../../components/
|
|
72
|
+
import '../../../../components/decorators/store.decorators.js';
|
|
73
|
+
import '../../../../components/x-component.utils.js';
|
|
74
|
+
import { xComponentMixin } from '../../../../components/x-component.mixin.js';
|
|
72
75
|
import '../../../../components/modals/base-modal.vue.js';
|
|
76
|
+
import '../../../../components/modals/base-id-modal.vue.js';
|
|
77
|
+
import '../../../../components/scroll/scroll.mixin.js';
|
|
78
|
+
import '../../../../components/scroll/base-scroll.vue.js';
|
|
79
|
+
import '../../../../components/layouts/fixed-header-and-asides-layout.vue.js';
|
|
80
|
+
import '../../../../components/panels/base-toggle-panel.vue.js';
|
|
81
|
+
import '../../../../components/panels/base-id-toggle-panel.vue.js';
|
|
82
|
+
import '../../../../components/layouts/multi-column-max-width-layout.vue.js';
|
|
83
|
+
import '../../../../components/layouts/single-column-layout.vue.js';
|
|
84
|
+
import '../../../../components/modals/base-events-modal-close.vue.js';
|
|
73
85
|
import '../../../../components/modals/base-events-modal.vue.js';
|
|
74
86
|
import '../../../../components/modals/base-events-modal-open.vue.js';
|
|
75
|
-
import '../../../../components/modals/base-id-modal.vue.js';
|
|
76
87
|
import '../../../../components/modals/base-id-modal-close.vue.js';
|
|
77
88
|
import '../../../../components/modals/base-id-modal-open.vue.js';
|
|
78
|
-
import '../../../../components/panels/base-toggle-panel.vue.js';
|
|
79
89
|
import '../../../../components/panels/base-header-toggle-panel.vue.js';
|
|
80
|
-
import '../../../../components/panels/base-id-toggle-panel.vue.js';
|
|
81
90
|
import '../../../../components/panels/base-id-toggle-panel-button.vue.js';
|
|
82
91
|
import '../../../../components/result/base-result-add-to-cart.vue.js';
|
|
83
92
|
import '../../../../components/result/base-result-current-price.vue.js';
|
|
@@ -86,8 +95,6 @@ import '../../../../components/result/base-result-link.vue.js';
|
|
|
86
95
|
import '../../../../components/result/base-result-previous-price.vue.js';
|
|
87
96
|
import '../../../../components/result/base-result-fallback-image.vue.js';
|
|
88
97
|
import '../../../../components/result/base-result-placeholder-image.vue.js';
|
|
89
|
-
import '../../../../components/scroll/scroll.mixin.js';
|
|
90
|
-
import '../../../../components/scroll/base-scroll.vue.js';
|
|
91
98
|
import '../../../../components/suggestions/base-suggestion.vue.js';
|
|
92
99
|
import '../../../../components/suggestions/base-suggestions.vue.js';
|
|
93
100
|
import '../../../../components/auto-progress-bar.vue.js';
|
|
@@ -98,11 +105,6 @@ import '../../../../components/base-variable-column-grid.vue.js';
|
|
|
98
105
|
import '../../../../components/decorators/debounce.decorators.js';
|
|
99
106
|
import '../../../../components/sliding-panel.vue.js';
|
|
100
107
|
import '../../../../components/items-list.vue.js';
|
|
101
|
-
import '../../../../components/decorators/store.decorators.js';
|
|
102
|
-
import '../../../../components/x-component.utils.js';
|
|
103
|
-
import { xComponentMixin } from '../../../../components/x-component.mixin.js';
|
|
104
|
-
import '../../../../components/layouts/multi-column-max-width-layout.vue.js';
|
|
105
|
-
import '../../../../components/layouts/single-column-layout.vue.js';
|
|
106
108
|
import '../../../../components/location-provider.vue.js';
|
|
107
109
|
import '../../../../components/global-x-bus.vue.js';
|
|
108
110
|
import '../../../../components/snippet-callbacks.vue.js';
|
package/js/x-modules/facets/components/lists/filters-list.vue_rollup-plugin-vue=script.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filters-list.vue_rollup-plugin-vue=script.js","sources":["../../../../../../src/x-modules/facets/components/lists/filters-list.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { mixins } from 'vue-class-component';\nimport { Component, Prop } from 'vue-property-decorator';\nimport { xComponentMixin } from '../../../../components';\nimport { VueCSSClasses } from '../../../../utils/types';\nimport { facetsXModule } from '../../x-module';\nimport FiltersInjectionMixin from './filters-injection.mixin';\n\n/**\n * Renders a list with a list item per each\n * {@link @empathyco/x-types#BooleanFilter | BooleanFilter} in the filters prop array.\n * Each list item has a scoped slot, passing the filter as slot prop.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(facetsXModule)]\n})\nexport default class FiltersList extends mixins(FiltersInjectionMixin) {\n /**\n * Animation component that will be used to animate the base filters.\n *\n * @public\n */\n @Prop({ default: 'ul' })\n protected animation!: Vue | string;\n\n /**\n * It handles if the filters should be rendered.\n *\n * @returns True if there are filters.\n *\n * @public\n */\n protected get hasFiltersToRender(): boolean {\n return this.renderedFilters?.length > 0;\n }\n\n /**\n * Checks if at least one filter is selected.\n *\n * @returns True if at least one filter is selected. False otherwise.\n * @internal\n */\n protected get hasSelectedFilters(): boolean {\n return !!this.renderedFilters?.some(filter => filter.selected);\n }\n\n /**\n * Dynamic CSS classes for the root element of this component.\n *\n * @returns An object containing the dynamic CSS classes and a boolean indicating if they should\n * be added or not.\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-filters--has-selected-filters': this.hasSelectedFilters\n };\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filters-list.vue_rollup-plugin-vue=script.js","sources":["../../../../../../src/x-modules/facets/components/lists/filters-list.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport Vue from 'vue';\nimport { mixins } from 'vue-class-component';\nimport { Component, Prop } from 'vue-property-decorator';\nimport { xComponentMixin } from '../../../../components';\nimport { VueCSSClasses } from '../../../../utils/types';\nimport { facetsXModule } from '../../x-module';\nimport FiltersInjectionMixin from './filters-injection.mixin';\n\n/**\n * Renders a list with a list item per each\n * {@link @empathyco/x-types#BooleanFilter | BooleanFilter} in the filters prop array.\n * Each list item has a scoped slot, passing the filter as slot prop.\n *\n * @public\n */\n@Component({\n mixins: [xComponentMixin(facetsXModule)]\n})\nexport default class FiltersList extends mixins(FiltersInjectionMixin) {\n /**\n * Animation component that will be used to animate the base filters.\n *\n * @public\n */\n @Prop({ default: 'ul' })\n protected animation!: Vue | string;\n\n /**\n * It handles if the filters should be rendered.\n *\n * @returns True if there are filters.\n *\n * @public\n */\n protected get hasFiltersToRender(): boolean {\n return this.renderedFilters?.length > 0;\n }\n\n /**\n * Checks if at least one filter is selected.\n *\n * @returns True if at least one filter is selected. False otherwise.\n * @internal\n */\n protected get hasSelectedFilters(): boolean {\n return !!this.renderedFilters?.some(filter => filter.selected);\n }\n\n /**\n * Dynamic CSS classes for the root element of this component.\n *\n * @returns An object containing the dynamic CSS classes and a boolean indicating if they should\n * be added or not.\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-filters--has-selected-filters': this.hasSelectedFilters\n };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA;;;;;;;AAUA;IAAyC,+BAA6B;IAAtE;;KAyCC;IAzBC,sBAAc,2CAAkB;;;;;;;;aAAhC;;YACE,OAAO,CAAA,MAAA,IAAI,CAAC,eAAe,0CAAE,MAAM,IAAG,CAAC,CAAC;SACzC;;;OAAA;IAQD,sBAAc,2CAAkB;;;;;;;aAAhC;;YACE,OAAO,CAAC,EAAC,MAAA,IAAI,CAAC,eAAe,0CAAE,IAAI,CAAC,UAAA,MAAM,IAAI,OAAA,MAAM,CAAC,QAAQ,GAAA,CAAC,CAAA,CAAC;SAChE;;;OAAA;IAQD,sBAAc,mCAAU;;;;;;;aAAxB;YACE,OAAO;gBACL,iCAAiC,EAAE,IAAI,CAAC,kBAAkB;aAC3D,CAAC;SACH;;;OAAA;IAjCD;QADC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDACW;IAPhB,WAAW;QAH/B,SAAS,CAAC;YACT,MAAM,EAAE,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;SACzC,CAAC;OACmB,WAAW,CAyC/B;IAAD,kBAAC;CAzCD,CAAyC,MAAM,CAAC,qBAAqB,CAAC;;;;"}
|
|
@@ -47,11 +47,11 @@ __vue_render__._withStripped = true;
|
|
|
47
47
|
/* style */
|
|
48
48
|
var __vue_inject_styles__ = function (inject) {
|
|
49
49
|
if (!inject) { return }
|
|
50
|
-
inject("data-v-
|
|
50
|
+
inject("data-v-79468ae4_0", { source: ".x-filters-search__input[data-v-79468ae4]::-ms-clear {\n display: none;\n width: 0;\n height: 0;\n}\n.x-filters-search__input[data-v-79468ae4]::-ms-reveal {\n display: none;\n width: 0;\n height: 0;\n}\n.x-filters-search__input[data-v-79468ae4]::-webkit-search-decoration, .x-filters-search__input[data-v-79468ae4]::-webkit-search-cancel-button, .x-filters-search__input[data-v-79468ae4]::-webkit-search-results-button, .x-filters-search__input[data-v-79468ae4]::-webkit-search-results-decoration {\n display: none;\n}", map: undefined, media: undefined });
|
|
51
51
|
|
|
52
52
|
};
|
|
53
53
|
/* scoped */
|
|
54
|
-
var __vue_scope_id__ = "data-v-
|
|
54
|
+
var __vue_scope_id__ = "data-v-79468ae4";
|
|
55
55
|
/* module identifier */
|
|
56
56
|
var __vue_module_identifier__ = undefined;
|
|
57
57
|
/* functional template */
|