@empathyco/x-components 3.0.0-alpha.31 → 3.0.0-alpha.35
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 +132 -0
- package/core/index.js +26 -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.defaultsessionservice.clearsessionid.md +2 -0
- package/docs/API-reference/api/x-components.defaultsessionservice.getsessionid.md +4 -0
- package/docs/API-reference/api/x-components.defaultsessionservice.md +3 -3
- package/docs/API-reference/api/x-components.defaultsessionservice.session_id_key.md +3 -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.globalxbus.created.md +15 -0
- package/docs/API-reference/api/x-components.globalxbus.md +21 -0
- 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 +16 -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.snippetcallbacks.md +15 -0
- package/docs/API-reference/api/x-components.snippetconfig.callbacks.md +13 -0
- package/docs/API-reference/api/x-components.snippetconfig.isspa.md +13 -0
- package/docs/API-reference/api/x-components.snippetconfig.md +2 -0
- package/docs/API-reference/api/x-components.tagging.activeconsent.md +18 -0
- package/docs/API-reference/api/x-components.tagging.consent.md +13 -0
- package/docs/API-reference/api/x-components.tagging.md +28 -0
- package/docs/API-reference/api/x-components.tagging.render.md +15 -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.xeventlisteners.md +17 -0
- package/docs/API-reference/api/x-components.xeventstypes.md +1 -1
- package/docs/API-reference/api/x-components.xeventstypes.snippetcallbackexecuted.md +16 -0
- 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 +50 -0
- 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 +36 -0
- 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 +8 -5
- 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 +3 -3
- package/js/components/animations/animate-width.vue.js.map +1 -1
- package/js/components/animations/collapse-from-top.vue.js +3 -3
- package/js/components/animations/collapse-from-top.vue.js.map +1 -1
- package/js/components/animations/collapse-height.vue.js +5 -5
- package/js/components/animations/collapse-height.vue.js.map +1 -1
- package/js/components/animations/collapse-width.vue.js +5 -5
- package/js/components/animations/collapse-width.vue.js.map +1 -1
- package/js/components/animations/cross-fade.vue.js +3 -3
- package/js/components/animations/cross-fade.vue.js.map +1 -1
- package/js/components/animations/fade-and-slide.vue.js +4 -4
- package/js/components/animations/fade-and-slide.vue.js.map +1 -1
- package/js/components/animations/staggered-fade-and-slide.vue.js +4 -4
- 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 +3 -3
- package/js/components/animations/translate-from-left.vue.js.map +1 -1
- package/js/components/animations/translate-from-right.vue.js +3 -3
- package/js/components/animations/translate-from-right.vue.js.map +1 -1
- package/js/components/auto-progress-bar.vue.js +4 -5
- package/js/components/auto-progress-bar.vue.js.map +1 -1
- package/js/components/base-dropdown.vue.js +35 -47
- package/js/components/base-dropdown.vue.js.map +1 -1
- package/js/components/base-event-button.vue.js +1 -1
- package/js/components/base-event-button.vue.js.map +1 -1
- package/js/components/base-grid.vue.js +9 -11
- package/js/components/base-grid.vue.js.map +1 -1
- package/js/components/base-keyboard-navigation.vue.js +7 -10
- package/js/components/base-keyboard-navigation.vue.js.map +1 -1
- package/js/components/base-rating.vue.js +21 -22
- package/js/components/base-rating.vue.js.map +1 -1
- package/js/components/base-variable-column-grid.vue.js +6 -7
- package/js/components/base-variable-column-grid.vue.js.map +1 -1
- package/js/components/column-picker/base-column-picker-dropdown.vue.js +11 -14
- 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 +11 -13
- package/js/components/column-picker/base-column-picker-list.vue.js.map +1 -1
- package/js/components/currency/base-currency.vue.js +2 -3
- 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 +7 -8
- package/js/components/filters/labels/base-rating-filter-label.vue.js.map +1 -1
- package/js/components/global-x-bus.vue.js +39 -0
- package/js/components/global-x-bus.vue.js.map +1 -0
- package/js/components/global-x-bus.vue_rollup-plugin-vue=script.js +47 -0
- package/js/components/global-x-bus.vue_rollup-plugin-vue=script.js.map +1 -0
- package/js/components/icons/arrow.vue.js +4 -6
- package/js/components/icons/arrow.vue.js.map +1 -1
- package/js/components/icons/bag.vue.js +8 -12
- package/js/components/icons/bag.vue.js.map +1 -1
- package/js/components/icons/bar-code.vue.js +6 -9
- package/js/components/icons/bar-code.vue.js.map +1 -1
- package/js/components/icons/barcode-tiny.vue.js +6 -9
- package/js/components/icons/barcode-tiny.vue.js.map +1 -1
- package/js/components/icons/cart.vue.js +10 -13
- package/js/components/icons/cart.vue.js.map +1 -1
- package/js/components/icons/check-tiny.vue.js +4 -6
- package/js/components/icons/check-tiny.vue.js.map +1 -1
- package/js/components/icons/check.vue.js +4 -6
- package/js/components/icons/check.vue.js.map +1 -1
- package/js/components/icons/checkbox-card-selected.vue.js +5 -7
- package/js/components/icons/checkbox-card-selected.vue.js.map +1 -1
- package/js/components/icons/checkbox-card-unselected.vue.js +5 -7
- package/js/components/icons/checkbox-card-unselected.vue.js.map +1 -1
- package/js/components/icons/checkbox-selected.vue.js +5 -7
- package/js/components/icons/checkbox-selected.vue.js.map +1 -1
- package/js/components/icons/checkbox-unselected.vue.js +6 -6
- package/js/components/icons/chevron-down.vue.js +6 -8
- package/js/components/icons/chevron-down.vue.js.map +1 -1
- package/js/components/icons/chevron-left.vue.js +6 -8
- package/js/components/icons/chevron-left.vue.js.map +1 -1
- package/js/components/icons/chevron-right.vue.js +4 -6
- package/js/components/icons/chevron-right.vue.js.map +1 -1
- package/js/components/icons/chevron-tiny-down.vue.js +6 -8
- package/js/components/icons/chevron-tiny-down.vue.js.map +1 -1
- package/js/components/icons/chevron-tiny-left.vue.js +6 -8
- package/js/components/icons/chevron-tiny-left.vue.js.map +1 -1
- package/js/components/icons/chevron-tiny-right.vue.js +6 -8
- package/js/components/icons/chevron-tiny-right.vue.js.map +1 -1
- package/js/components/icons/chevron-tiny-up.vue.js +6 -8
- package/js/components/icons/chevron-tiny-up.vue.js.map +1 -1
- package/js/components/icons/chevron-up.vue.js +6 -8
- package/js/components/icons/chevron-up.vue.js.map +1 -1
- package/js/components/icons/cross-tiny.vue.js +4 -6
- package/js/components/icons/cross-tiny.vue.js.map +1 -1
- package/js/components/icons/cross.vue.js +4 -6
- package/js/components/icons/cross.vue.js.map +1 -1
- package/js/components/icons/filters.vue.js +10 -15
- package/js/components/icons/filters.vue.js.map +1 -1
- package/js/components/icons/grid-1-col.vue.js +6 -9
- package/js/components/icons/grid-1-col.vue.js.map +1 -1
- package/js/components/icons/grid-2-col.vue.js +8 -10
- package/js/components/icons/grid-2-col.vue.js.map +1 -1
- package/js/components/icons/hide.vue.js +10 -15
- package/js/components/icons/hide.vue.js.map +1 -1
- package/js/components/icons/history-tiny.vue.js +9 -12
- package/js/components/icons/history-tiny.vue.js.map +1 -1
- package/js/components/icons/history.vue.js +9 -12
- package/js/components/icons/history.vue.js.map +1 -1
- package/js/components/icons/menu.vue.js +6 -8
- package/js/components/icons/menu.vue.js.map +1 -1
- package/js/components/icons/minus-tiny.vue.js +4 -6
- package/js/components/icons/minus-tiny.vue.js.map +1 -1
- package/js/components/icons/minus.vue.js +4 -6
- package/js/components/icons/minus.vue.js.map +1 -1
- package/js/components/icons/nq-1.vue.js +4 -6
- package/js/components/icons/nq-1.vue.js.map +1 -1
- package/js/components/icons/nq-2.vue.js +4 -6
- package/js/components/icons/nq-2.vue.js.map +1 -1
- package/js/components/icons/nq-3.vue.js +6 -8
- package/js/components/icons/nq-3.vue.js.map +1 -1
- package/js/components/icons/nq-4.vue.js +9 -12
- package/js/components/icons/nq-4.vue.js.map +1 -1
- package/js/components/icons/plus.vue.js +4 -6
- package/js/components/icons/plus.vue.js.map +1 -1
- package/js/components/icons/search-tiny.vue.js +6 -9
- package/js/components/icons/search-tiny.vue.js.map +1 -1
- package/js/components/icons/search.vue.js +6 -8
- package/js/components/icons/search.vue.js.map +1 -1
- package/js/components/icons/show.vue.js +7 -10
- package/js/components/icons/show.vue.js.map +1 -1
- package/js/components/icons/star.vue.js +6 -9
- package/js/components/icons/star.vue.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/icons/trash-open.vue.js +12 -15
- package/js/components/icons/trash-open.vue.js.map +1 -1
- package/js/components/icons/trash.vue.js +8 -11
- package/js/components/icons/trash.vue.js.map +1 -1
- package/js/components/icons/trending-tiny.vue.js +8 -10
- package/js/components/icons/trending-tiny.vue.js.map +1 -1
- package/js/components/icons/trending.vue.js +8 -10
- package/js/components/icons/trending.vue.js.map +1 -1
- package/js/components/icons/user.vue.js +6 -9
- package/js/components/icons/user.vue.js.map +1 -1
- package/js/components/items-list.vue.js +6 -7
- package/js/components/items-list.vue.js.map +1 -1
- 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 +57 -91
- 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 +39 -67
- package/js/components/layouts/single-column-layout.vue.js.map +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 +2 -2
- package/js/components/modals/base-events-modal-close.vue.js.map +1 -1
- package/js/components/modals/base-events-modal-open.vue.js +2 -2
- package/js/components/modals/base-events-modal-open.vue.js.map +1 -1
- package/js/components/modals/base-events-modal.vue.js +3 -3
- package/js/components/modals/base-events-modal.vue.js.map +1 -1
- package/js/components/modals/base-id-modal-close.vue.js +2 -2
- package/js/components/modals/base-id-modal-close.vue.js.map +1 -1
- package/js/components/modals/base-id-modal-open.vue.js +2 -2
- package/js/components/modals/base-id-modal-open.vue.js.map +1 -1
- package/js/components/modals/base-id-modal.vue.js +3 -3
- package/js/components/modals/base-id-modal.vue.js.map +1 -1
- package/js/components/modals/base-modal.vue.js +11 -13
- package/js/components/modals/base-modal.vue.js.map +1 -1
- package/js/components/panels/base-header-toggle-panel.vue.js +7 -9
- package/js/components/panels/base-header-toggle-panel.vue.js.map +1 -1
- package/js/components/panels/base-id-toggle-panel-button.vue.js +2 -2
- package/js/components/panels/base-id-toggle-panel-button.vue.js.map +1 -1
- package/js/components/panels/base-id-toggle-panel.vue.js +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 +3 -4
- package/js/components/panels/base-toggle-panel.vue.js.map +1 -1
- package/js/components/result/base-result-add-to-cart.vue.js +2 -2
- package/js/components/result/base-result-add-to-cart.vue.js.map +1 -1
- package/js/components/result/base-result-current-price.vue.js +6 -8
- package/js/components/result/base-result-current-price.vue.js.map +1 -1
- package/js/components/result/base-result-fallback-image.vue.js +7 -9
- package/js/components/result/base-result-fallback-image.vue.js.map +1 -1
- package/js/components/result/base-result-image.vue.js +11 -14
- package/js/components/result/base-result-image.vue.js.map +1 -1
- package/js/components/result/base-result-link.vue.js +8 -8
- 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-placeholder-image.vue.js +7 -9
- package/js/components/result/base-result-placeholder-image.vue.js.map +1 -1
- package/js/components/result/base-result-previous-price.vue.js +7 -9
- package/js/components/result/base-result-previous-price.vue.js.map +1 -1
- package/js/components/scroll/base-scroll.vue.js +4 -4
- package/js/components/scroll/base-scroll.vue.js.map +1 -1
- package/js/components/sliding-panel.vue.js +13 -16
- package/js/components/sliding-panel.vue.js.map +1 -1
- package/js/components/snippet-callbacks.vue.js +47 -0
- package/js/components/snippet-callbacks.vue.js.map +1 -0
- package/js/components/snippet-callbacks.vue_rollup-plugin-vue=script.js +58 -0
- package/js/components/snippet-callbacks.vue_rollup-plugin-vue=script.js.map +1 -0
- package/js/components/suggestions/base-suggestion.vue.js +6 -8
- package/js/components/suggestions/base-suggestion.vue.js.map +1 -1
- package/js/components/suggestions/base-suggestions.vue.js +8 -9
- 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 +35 -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/utils/storage.js +2 -2
- package/js/utils/storage.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/device/components/device-detector.vue.js +2 -2
- package/js/x-modules/empathize/components/empathize.vue.js +5 -6
- 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 +16 -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 +3 -4
- 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 +16 -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 +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 +25 -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 +6 -8
- 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 +16 -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 +20 -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 +12 -13
- package/js/x-modules/facets/components/facets/facets.vue.js.map +1 -1
- package/js/x-modules/facets/components/filters/all-filter.vue.js +5 -6
- 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 +16 -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 +5 -6
- 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 +16 -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 +20 -24
- 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 +29 -38
- 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 +16 -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 +5 -6
- 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 +16 -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 +16 -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 +13 -17
- 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 +16 -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 +16 -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 +6 -6
- 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 +16 -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 +10 -12
- 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 +16 -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 +14 -20
- 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 +3 -4
- 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 +16 -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 +12 -18
- 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 +16 -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 +16 -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 +5 -6
- 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 +19 -25
- 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 +13 -17
- 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 +2 -2
- 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 +2 -2
- 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 +4 -4
- 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.js +9 -12
- package/js/x-modules/next-queries/components/next-queries-list.vue.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 +15 -20
- 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 +8 -10
- 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 +8 -10
- 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 +15 -20
- 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.js +9 -11
- package/js/x-modules/query-suggestions/components/query-suggestion.vue.js.map +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.js +15 -20
- package/js/x-modules/query-suggestions/components/query-suggestions.vue.js.map +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 +11 -14
- package/js/x-modules/recommendations/components/recommendations.vue.js.map +1 -1
- package/js/x-modules/related-tags/components/related-tag.vue.js +11 -8
- 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 +28 -21
- 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.js +1 -1
- package/js/x-modules/scroll/components/main-scroll-item.vue_rollup-plugin-vue=script.js +18 -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 +3 -4
- 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 +18 -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 +4 -4
- 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 +18 -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 +6 -7
- 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.js +9 -12
- package/js/x-modules/search/components/banners-list.vue.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 +4 -5
- 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 +6 -6
- package/js/x-modules/search/components/partial-results-list.vue.js.map +1 -1
- package/js/x-modules/search/components/promoted.vue.js +6 -7
- 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.js +9 -12
- package/js/x-modules/search/components/promoteds-list.vue.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 +4 -5
- 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.js +9 -12
- package/js/x-modules/search/components/results-list.vue.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 +13 -16
- package/js/x-modules/search/components/sort-dropdown.vue.js.map +1 -1
- package/js/x-modules/search/components/sort-list.vue.js +10 -12
- 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 +16 -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 +16 -12
- package/js/x-modules/search/components/sort.mixin.js.map +1 -1
- package/js/x-modules/search/components/spellcheck-button.vue.js +4 -5
- package/js/x-modules/search/components/spellcheck-button.vue.js.map +1 -1
- package/js/x-modules/search/components/spellcheck.vue.js +4 -6
- 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 +16 -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 +7 -2
- 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/clear-search-input.vue.js +5 -6
- package/js/x-modules/search-box/components/clear-search-input.vue.js.map +1 -1
- package/js/x-modules/search-box/components/search-button.vue.js +4 -5
- package/js/x-modules/search-box/components/search-button.vue.js.map +1 -1
- package/js/x-modules/search-box/components/search-input.vue.js +9 -11
- 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/components/tagging.vue.js +39 -0
- package/js/x-modules/tagging/components/tagging.vue.js.map +1 -0
- package/js/x-modules/tagging/components/tagging.vue_rollup-plugin-vue=script.js +65 -0
- package/js/x-modules/tagging/components/tagging.vue_rollup-plugin-vue=script.js.map +1 -0
- package/js/x-modules/tagging/service/session.service.js +23 -6
- package/js/x-modules/tagging/service/session.service.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 +52 -5
- package/js/x-modules/tagging/wiring.js.map +1 -1
- package/js/x-modules/url/components/url-handler.vue.js +2 -2
- 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 +18 -16
- package/report/tsdoc-metadata.json +1 -1
- package/report/x-adapter.api.json +29 -3
- package/report/x-components.api.json +999 -231
- package/report/x-components.api.md +132 -45
- package/report/x-types.api.json +27 -1
- package/tagging/index.js +3 -2
- 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 +25 -0
- package/types/components/global-x-bus.vue.d.ts.map +1 -0
- 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 +3 -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/snippet-callbacks.vue.d.ts +27 -0
- package/types/components/snippet-callbacks.vue.d.ts.map +1 -0
- 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/storage.d.ts +1 -7
- package/types/utils/storage.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 +8 -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 +14 -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/components/tagging.vue.d.ts +47 -0
- package/types/x-modules/tagging/components/tagging.vue.d.ts.map +1 -0
- package/types/x-modules/tagging/index.d.ts +1 -0
- package/types/x-modules/tagging/index.d.ts.map +1 -1
- package/types/x-modules/tagging/service/session.service.d.ts +18 -1
- package/types/x-modules/tagging/service/session.service.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
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { setXComponentXModuleName } from './x-component.utils.js';
|
|
2
1
|
import { XPlugin } from '../plugins/x-plugin.js';
|
|
3
2
|
|
|
4
3
|
/**
|
|
@@ -14,9 +13,7 @@ import { XPlugin } from '../plugins/x-plugin.js';
|
|
|
14
13
|
function xComponentMixin(module) {
|
|
15
14
|
XPlugin.registerXModule(module);
|
|
16
15
|
return {
|
|
17
|
-
|
|
18
|
-
setXComponentXModuleName(this, module.name);
|
|
19
|
-
}
|
|
16
|
+
xModule: module.name
|
|
20
17
|
};
|
|
21
18
|
}
|
|
22
19
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-component.mixin.js","sources":["../../../src/components/x-component.mixin.ts"],"sourcesContent":["import Vue, { ComponentOptions } from 'vue';\nimport { XPlugin } from '../plugins/x-plugin';\nimport { AnyXModule } from '../x-modules/x-modules.types';\
|
|
1
|
+
{"version":3,"file":"x-component.mixin.js","sources":["../../../src/components/x-component.mixin.ts"],"sourcesContent":["import Vue, { ComponentOptions } from 'vue';\nimport { XPlugin } from '../plugins/x-plugin';\nimport { AnyXModule } from '../x-modules/x-modules.types';\n\n/**\n * Initializes a component as an X-Component:\n * * Registers the module passed as parameter.\n * * Flags the component as X-Component, so then it can be detected with the {@link isXComponent}\n * function.\n *\n * @param module - The module associated to the X-Component using this mixin.\n * @returns Mixin for the module.\n * @public\n */\nexport function xComponentMixin(module: AnyXModule): ComponentOptions<Vue> {\n XPlugin.registerXModule(module);\n return {\n xModule: module.name\n };\n}\n"],"names":[],"mappings":";;AAIA;;;;;;;;;;SAUgB,eAAe,CAAC,MAAkB;IAChD,OAAO,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO;QACL,OAAO,EAAE,MAAM,CAAC,IAAI;KACrB,CAAC;AACJ;;;;"}
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Symbol for storing the {@link XModule} that an X-Component belongs to.
|
|
3
|
-
*
|
|
4
|
-
* @internal
|
|
5
|
-
*/
|
|
6
|
-
var XComponentModule = Symbol.for('XComponentModule');
|
|
7
|
-
/**
|
|
8
|
-
* Sets the X-Component name.
|
|
9
|
-
*
|
|
10
|
-
* @param component - The x-component to set its name.
|
|
11
|
-
* @param name - The name of the X-Component.
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
function setXComponentXModuleName(component, name) {
|
|
15
|
-
component[XComponentModule] = name;
|
|
16
|
-
}
|
|
17
1
|
/**
|
|
18
2
|
* Gets the X-Component name.
|
|
19
3
|
*
|
|
@@ -23,8 +7,8 @@ function setXComponentXModuleName(component, name) {
|
|
|
23
7
|
* @internal
|
|
24
8
|
*/
|
|
25
9
|
function getXComponentXModuleName(component) {
|
|
26
|
-
var _a
|
|
27
|
-
return (
|
|
10
|
+
var _a;
|
|
11
|
+
return (_a = component === null || component === void 0 ? void 0 : component.$options.xModule) !== null && _a !== void 0 ? _a : null;
|
|
28
12
|
}
|
|
29
13
|
/**
|
|
30
14
|
* Returns if the component is an X-Component. An X-Component is a component that has an
|
|
@@ -35,8 +19,8 @@ function getXComponentXModuleName(component) {
|
|
|
35
19
|
* @public
|
|
36
20
|
*/
|
|
37
21
|
function isXComponent(component) {
|
|
38
|
-
return !!component
|
|
22
|
+
return !!getXComponentXModuleName(component);
|
|
39
23
|
}
|
|
40
24
|
|
|
41
|
-
export {
|
|
25
|
+
export { getXComponentXModuleName, isXComponent };
|
|
42
26
|
//# sourceMappingURL=x-component.utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-component.utils.js","sources":["../../../src/components/x-component.utils.ts"],"sourcesContent":["import Vue from 'vue';\nimport { XModuleName } from '../x-modules/x-modules.types';\
|
|
1
|
+
{"version":3,"file":"x-component.utils.js","sources":["../../../src/components/x-component.utils.ts"],"sourcesContent":["import Vue from 'vue';\nimport { XModuleName } from '../x-modules/x-modules.types';\n\n/**\n * Gets the X-Component name.\n *\n * @param component - The x-component to get its name.\n * @returns The x-module name if the component is an x-component, or `null` if it is not an\n * x-component.\n * @internal\n */\nexport function getXComponentXModuleName(component: Vue | undefined): XModuleName | null {\n return component?.$options.xModule ?? null;\n}\n\n/**\n * Returns if the component is an X-Component. An X-Component is a component that has an\n * {@link XModule} associated to it.\n *\n * @param component - The component to check if it is an X-Component.\n * @returns A boolean which flags if a component is a X-Component.\n * @public\n */\nexport function isXComponent(component: Vue): boolean {\n return !!getXComponentXModuleName(component);\n}\n"],"names":[],"mappings":"AAGA;;;;;;;;SAQgB,wBAAwB,CAAC,SAA0B;;IACjE,OAAO,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAC,OAAO,mCAAI,IAAI,CAAC;AAC7C,CAAC;AAED;;;;;;;;SAQgB,YAAY,CAAC,SAAc;IACzC,OAAO,CAAC,CAAC,wBAAwB,CAAC,SAAS,CAAC,CAAC;AAC/C;;;;"}
|
package/js/index.js
CHANGED
|
@@ -22,7 +22,7 @@ export { sanitize } from './utils/sanitize.js';
|
|
|
22
22
|
export { localStorageService } from './utils/storage.js';
|
|
23
23
|
export { capitalize, isStringEmpty, toKebabCase } from './utils/string.js';
|
|
24
24
|
export { throttle as throttleFunction } from './utils/throttle.js';
|
|
25
|
-
export { default as StaggeringTransitionGroup } from './components/staggering-transition-group.vue.js';
|
|
25
|
+
export { default as StaggeringTransitionGroup } from './components/animations/staggering-transition-group.vue.js';
|
|
26
26
|
export { default as StaggeredFadeAndSlide } from './components/animations/staggered-fade-and-slide.vue.js';
|
|
27
27
|
export { default as TranslateFromLeft } from './components/animations/translate-from-left.vue.js';
|
|
28
28
|
export { default as TranslateFromRight } from './components/animations/translate-from-right.vue.js';
|
|
@@ -77,21 +77,47 @@ export { default as PlusIcon } from './components/icons/plus.vue.js';
|
|
|
77
77
|
export { default as SearchIcon } from './components/icons/search.vue.js';
|
|
78
78
|
export { default as ShowIcon } from './components/icons/show.vue.js';
|
|
79
79
|
export { default as SearchTinyIcon } from './components/icons/search-tiny.vue.js';
|
|
80
|
+
export { default as TagIcon } from './components/icons/tag.vue.js';
|
|
80
81
|
export { default as TrashOpenIcon } from './components/icons/trash-open.vue.js';
|
|
81
82
|
export { default as TrashIcon } from './components/icons/trash.vue.js';
|
|
82
83
|
export { default as TrendingTinyIcon } from './components/icons/trending-tiny.vue.js';
|
|
83
84
|
export { default as TrendingIcon } from './components/icons/trending.vue.js';
|
|
84
85
|
export { default as UserIcon } from './components/icons/user.vue.js';
|
|
85
|
-
export {
|
|
86
|
+
export { Getter, State } from './components/decorators/store.decorators.js';
|
|
87
|
+
export { RootXStoreModule } from './store/x.module.js';
|
|
88
|
+
export { BaseXBus, bus } from './plugins/x-bus.js';
|
|
89
|
+
export { getXComponentXModuleName, isXComponent } from './components/x-component.utils.js';
|
|
90
|
+
export { createXComponentAPIMixin, getBusAPI, getRootXComponent } from './plugins/x-plugin.mixin.js';
|
|
91
|
+
export { XPlugin, xPlugin } from './plugins/x-plugin.js';
|
|
92
|
+
export { xComponentMixin } from './components/x-component.mixin.js';
|
|
93
|
+
export { createFetchAndSaveActions } from './store/utils/fetch-and-save-action.utils.js';
|
|
94
|
+
export { setStatus } from './store/utils/status-store.utils.js';
|
|
95
|
+
export { createStoreEmitters } from './store/utils/store-emitters.utils.js';
|
|
96
|
+
export { scrollXStoreModule } from './x-modules/scroll/store/module.js';
|
|
97
|
+
export { scrollEmitters } from './x-modules/scroll/store/emitters.js';
|
|
98
|
+
export { createWireFromFunction, wireCommit, wireCommitWithoutPayload, wireDispatch, wireDispatchWithoutPayload, wireService, wireServiceWithoutPayload } from './wiring/wires.factory.js';
|
|
99
|
+
export { createWiring, getStateAndGettersFromModule } from './wiring/wiring.utils.js';
|
|
100
|
+
export { namespacedWireCommit, namespacedWireCommitWithoutPayload, namespacedWireDispatch, namespacedWireDispatchWithoutPayload } from './wiring/namespaced-wires.factory.js';
|
|
101
|
+
export { clearPendingScrollToWire, scrollWiring, setPendingScrollToWire, setScrollDirectionWire, setScrollHasAlmostReachedEndWire, setScrollHasReachedEndWire, setScrollHasReachedStartWire, setScrollPositionWire } from './x-modules/scroll/wiring.js';
|
|
102
|
+
export { scrollXModule } from './x-modules/scroll/x-module.js';
|
|
103
|
+
export { MainScrollId, ScrollObserverKey } from './x-modules/scroll/components/scroll.const.js';
|
|
104
|
+
export { default as MainScroll } from './x-modules/scroll/components/main-scroll.vue.js';
|
|
86
105
|
export { default as BaseModal } from './components/modals/base-modal.vue.js';
|
|
106
|
+
export { default as BaseIdModal } from './components/modals/base-id-modal.vue.js';
|
|
107
|
+
export { default as ScrollMixin } from './components/scroll/scroll.mixin.js';
|
|
108
|
+
export { default as BaseScroll } from './components/scroll/base-scroll.vue.js';
|
|
109
|
+
export { default as Scroll } from './x-modules/scroll/components/scroll.vue.js';
|
|
110
|
+
export { default as FixedHeaderAndAsidesLayout } from './components/layouts/fixed-header-and-asides-layout.vue.js';
|
|
111
|
+
export { default as BaseTogglePanel } from './components/panels/base-toggle-panel.vue.js';
|
|
112
|
+
export { default as BaseIdTogglePanel } from './components/panels/base-id-toggle-panel.vue.js';
|
|
113
|
+
export { default as MultiColumnMaxWidthLayout } from './components/layouts/multi-column-max-width-layout.vue.js';
|
|
114
|
+
export { default as SingleColumnLayout } from './components/layouts/single-column-layout.vue.js';
|
|
115
|
+
export { default as BaseEventsModalClose } from './components/modals/base-events-modal-close.vue.js';
|
|
87
116
|
export { default as BaseEventsModal } from './components/modals/base-events-modal.vue.js';
|
|
88
117
|
export { default as BaseEventsModalOpen } from './components/modals/base-events-modal-open.vue.js';
|
|
89
|
-
export { default as BaseIdModal } from './components/modals/base-id-modal.vue.js';
|
|
90
118
|
export { default as BaseIdModalClose } from './components/modals/base-id-modal-close.vue.js';
|
|
91
119
|
export { default as BaseIdModalOpen } from './components/modals/base-id-modal-open.vue.js';
|
|
92
|
-
export { default as BaseTogglePanel } from './components/panels/base-toggle-panel.vue.js';
|
|
93
120
|
export { default as BaseHeaderTogglePanel } from './components/panels/base-header-toggle-panel.vue.js';
|
|
94
|
-
export { default as BaseIdTogglePanel } from './components/panels/base-id-toggle-panel.vue.js';
|
|
95
121
|
export { default as BaseIdTogglePanelButton } from './components/panels/base-id-toggle-panel-button.vue.js';
|
|
96
122
|
export { default as BaseAddToCart } from './components/result/base-result-add-to-cart.vue.js';
|
|
97
123
|
export { default as BaseResultCurrentPrice } from './components/result/base-result-current-price.vue.js';
|
|
@@ -100,8 +126,6 @@ export { default as BaseResultLink } from './components/result/base-result-link.
|
|
|
100
126
|
export { default as BaseResultPreviousPrice } from './components/result/base-result-previous-price.vue.js';
|
|
101
127
|
export { default as BaseFallbackImage } from './components/result/base-result-fallback-image.vue.js';
|
|
102
128
|
export { default as BasePlaceholderImage } from './components/result/base-result-placeholder-image.vue.js';
|
|
103
|
-
export { default as ScrollMixin } from './components/scroll/scroll.mixin.js';
|
|
104
|
-
export { default as BaseScroll } from './components/scroll/base-scroll.vue.js';
|
|
105
129
|
export { default as BaseSuggestion } from './components/suggestions/base-suggestion.vue.js';
|
|
106
130
|
export { default as BaseSuggestions } from './components/suggestions/base-suggestions.vue.js';
|
|
107
131
|
export { default as AutoProgressBar } from './components/auto-progress-bar.vue.js';
|
|
@@ -113,29 +137,9 @@ export { default as BaseVariableColumnGrid } from './components/base-variable-co
|
|
|
113
137
|
export { Debounce } from './components/decorators/debounce.decorators.js';
|
|
114
138
|
export { default as SlidingPanel } from './components/sliding-panel.vue.js';
|
|
115
139
|
export { default as ItemsList } from './components/items-list.vue.js';
|
|
116
|
-
export { Getter, State } from './components/decorators/store.decorators.js';
|
|
117
|
-
export { RootXStoreModule } from './store/x.module.js';
|
|
118
|
-
export { BaseXBus, bus } from './plugins/x-bus.js';
|
|
119
|
-
export { XComponentModule, getXComponentXModuleName, isXComponent, setXComponentXModuleName } from './components/x-component.utils.js';
|
|
120
|
-
export { createXComponentAPIMixin, getBusAPI, getRootXComponent } from './plugins/x-plugin.mixin.js';
|
|
121
|
-
export { XPlugin, xPlugin } from './plugins/x-plugin.js';
|
|
122
|
-
export { xComponentMixin } from './components/x-component.mixin.js';
|
|
123
|
-
export { createFetchAndSaveActions } from './store/utils/fetch-and-save-action.utils.js';
|
|
124
|
-
export { setStatus } from './store/utils/status-store.utils.js';
|
|
125
|
-
export { createStoreEmitters } from './store/utils/store-emitters.utils.js';
|
|
126
|
-
export { scrollXStoreModule } from './x-modules/scroll/store/module.js';
|
|
127
|
-
export { scrollEmitters } from './x-modules/scroll/store/emitters.js';
|
|
128
|
-
export { createWireFromFunction, wireCommit, wireCommitWithoutPayload, wireDispatch, wireDispatchWithoutPayload, wireService, wireServiceWithoutPayload } from './wiring/wires.factory.js';
|
|
129
|
-
export { createWiring, getStateAndGettersFromModule } from './wiring/wiring.utils.js';
|
|
130
|
-
export { namespacedWireCommit, namespacedWireCommitWithoutPayload, namespacedWireDispatch, namespacedWireDispatchWithoutPayload } from './wiring/namespaced-wires.factory.js';
|
|
131
|
-
export { clearPendingScrollToWire, scrollWiring, setPendingScrollToWire, setScrollDirectionWire, setScrollHasAlmostReachedEndWire, setScrollHasReachedEndWire, setScrollHasReachedStartWire, setScrollPositionWire } from './x-modules/scroll/wiring.js';
|
|
132
|
-
export { scrollXModule } from './x-modules/scroll/x-module.js';
|
|
133
|
-
export { MainScrollId, ScrollObserverKey } from './x-modules/scroll/components/scroll.const.js';
|
|
134
|
-
export { default as MainScroll } from './x-modules/scroll/components/main-scroll.vue.js';
|
|
135
|
-
export { default as Scroll } from './x-modules/scroll/components/scroll.vue.js';
|
|
136
|
-
export { default as MultiColumnMaxWidthLayout } from './components/layouts/multi-column-max-width-layout.vue.js';
|
|
137
|
-
export { default as SingleColumnLayout } from './components/layouts/single-column-layout.vue.js';
|
|
138
140
|
export { default as LocationProvider } from './components/location-provider.vue.js';
|
|
141
|
+
export { default as GlobalXBus } from './components/global-x-bus.vue.js';
|
|
142
|
+
export { default as SnippetCallbacks } from './components/snippet-callbacks.vue.js';
|
|
139
143
|
export { ItemsListInjectionMixin } from './components/items-list-injection.mixin.js';
|
|
140
144
|
export { infiniteScroll } from './directives/infinite-scroll/infinite-scroll.js';
|
|
141
145
|
export { compileMessage } from './filters/compile-message.filter.js';
|
|
@@ -311,8 +315,9 @@ export { DefaultSessionService } from './x-modules/tagging/service/session.servi
|
|
|
311
315
|
export { track } from './x-modules/tagging/store/actions/track.action.js';
|
|
312
316
|
export { taggingXStoreModule } from './x-modules/tagging/store/module.js';
|
|
313
317
|
export { taggingEmitters } from './x-modules/tagging/store/emitters.js';
|
|
314
|
-
export { setConsent, setQueryTaggingDebounce, setSessionDuration, taggingWiring,
|
|
318
|
+
export { setConsent, setQueryTaggingDebounce, setSessionDuration, taggingWiring, trackAddToCartWire, trackQueryWire, trackResultClickedWire } from './x-modules/tagging/wiring.js';
|
|
315
319
|
export { taggingXModule } from './x-modules/tagging/x-module.js';
|
|
320
|
+
export { default as Tagging } from './x-modules/tagging/components/tagging.vue.js';
|
|
316
321
|
export { urlXStoreModule } from './x-modules/url/store/module.js';
|
|
317
322
|
export { replaceableParams, urlEmitters } from './x-modules/url/store/emitters.js';
|
|
318
323
|
export { setInitialExtraParams, setParams, setUrlFilters, setUrlPage, setUrlQuery, setUrlRelatedTags, setUrlScroll, setUrlSort, urlWiring } from './x-modules/url/wiring.js';
|
package/js/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -3,11 +3,12 @@ import { getGetterPath } from './x-plugin.utils.js';
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates an object containing the alias part of {@link XComponentAPI}.
|
|
5
5
|
*
|
|
6
|
-
* @param
|
|
6
|
+
* @param component - The component with the store from which retrieve the data.
|
|
7
7
|
* @returns An object containing the alias part of the {@link XComponentAPI}.
|
|
8
|
+
*
|
|
8
9
|
* @internal
|
|
9
10
|
*/
|
|
10
|
-
function getAliasAPI(
|
|
11
|
+
function getAliasAPI(component) {
|
|
11
12
|
var queryModules = [
|
|
12
13
|
'searchBox',
|
|
13
14
|
'nextQueries',
|
|
@@ -28,7 +29,7 @@ function getAliasAPI(store) {
|
|
|
28
29
|
return Object.defineProperty(acc, moduleName, {
|
|
29
30
|
get: function () {
|
|
30
31
|
var _a, _b;
|
|
31
|
-
return (_b = (_a = store.state.x[moduleName]) === null || _a === void 0 ? void 0 : _a.query) !== null && _b !== void 0 ? _b : '';
|
|
32
|
+
return (_b = (_a = component.$store.state.x[moduleName]) === null || _a === void 0 ? void 0 : _a.query) !== null && _b !== void 0 ? _b : '';
|
|
32
33
|
},
|
|
33
34
|
enumerable: true
|
|
34
35
|
});
|
|
@@ -37,7 +38,7 @@ function getAliasAPI(store) {
|
|
|
37
38
|
return Object.defineProperty(acc, moduleName, {
|
|
38
39
|
get: function () {
|
|
39
40
|
var _a;
|
|
40
|
-
return (_a = store.state.x[moduleName]) === null || _a === void 0 ? void 0 : _a.status;
|
|
41
|
+
return (_a = component.$store.state.x[moduleName]) === null || _a === void 0 ? void 0 : _a.status;
|
|
41
42
|
},
|
|
42
43
|
enumerable: true
|
|
43
44
|
});
|
|
@@ -47,70 +48,70 @@ function getAliasAPI(store) {
|
|
|
47
48
|
status: status,
|
|
48
49
|
get device() {
|
|
49
50
|
var _a, _b;
|
|
50
|
-
return (_b = (_a = store.state.x.device) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : null;
|
|
51
|
+
return (_b = (_a = component.$store.state.x.device) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : null;
|
|
51
52
|
},
|
|
52
53
|
get facets() {
|
|
53
54
|
var _a;
|
|
54
|
-
return (_a = store.getters[getGetterPath('facets', 'facets')]) !== null && _a !== void 0 ? _a : {};
|
|
55
|
+
return (_a = component.$store.getters[getGetterPath('facets', 'facets')]) !== null && _a !== void 0 ? _a : {};
|
|
55
56
|
},
|
|
56
57
|
get historyQueries() {
|
|
57
58
|
var _a;
|
|
58
|
-
return (_a = store.getters[getGetterPath('historyQueries', 'historyQueries')]) !== null && _a !== void 0 ? _a : [];
|
|
59
|
+
return (_a = component.$store.getters[getGetterPath('historyQueries', 'historyQueries')]) !== null && _a !== void 0 ? _a : [];
|
|
59
60
|
},
|
|
60
61
|
get identifierResults() {
|
|
61
62
|
var _a, _b;
|
|
62
|
-
return (_b = (_a = store.state.x.identifierResults) === null || _a === void 0 ? void 0 : _a.identifierResults) !== null && _b !== void 0 ? _b : [];
|
|
63
|
+
return (_b = (_a = component.$store.state.x.identifierResults) === null || _a === void 0 ? void 0 : _a.identifierResults) !== null && _b !== void 0 ? _b : [];
|
|
63
64
|
},
|
|
64
65
|
get isEmpathizeOpen() {
|
|
65
66
|
var _a, _b;
|
|
66
|
-
return (_b = (_a = store.state.x.empathize) === null || _a === void 0 ? void 0 : _a.isOpen) !== null && _b !== void 0 ? _b : false;
|
|
67
|
+
return (_b = (_a = component.$store.state.x.empathize) === null || _a === void 0 ? void 0 : _a.isOpen) !== null && _b !== void 0 ? _b : false;
|
|
67
68
|
},
|
|
68
69
|
get nextQueries() {
|
|
69
70
|
var _a;
|
|
70
|
-
return (_a = store.getters[getGetterPath('nextQueries', 'nextQueries')]) !== null && _a !== void 0 ? _a : [];
|
|
71
|
+
return (_a = component.$store.getters[getGetterPath('nextQueries', 'nextQueries')]) !== null && _a !== void 0 ? _a : [];
|
|
71
72
|
},
|
|
72
73
|
get noResults() {
|
|
73
74
|
return !this.totalResults && !!this.query.search && this.status.search === 'success';
|
|
74
75
|
},
|
|
75
76
|
get partialResults() {
|
|
76
77
|
var _a, _b;
|
|
77
|
-
return (_b = (_a = store.state.x.search) === null || _a === void 0 ? void 0 : _a.partialResults) !== null && _b !== void 0 ? _b : [];
|
|
78
|
+
return (_b = (_a = component.$store.state.x.search) === null || _a === void 0 ? void 0 : _a.partialResults) !== null && _b !== void 0 ? _b : [];
|
|
78
79
|
},
|
|
79
80
|
get popularSearches() {
|
|
80
81
|
var _a, _b;
|
|
81
|
-
return (_b = (_a = store.state.x.popularSearches) === null || _a === void 0 ? void 0 : _a.popularSearches) !== null && _b !== void 0 ? _b : [];
|
|
82
|
+
return (_b = (_a = component.$store.state.x.popularSearches) === null || _a === void 0 ? void 0 : _a.popularSearches) !== null && _b !== void 0 ? _b : [];
|
|
82
83
|
},
|
|
83
84
|
get querySuggestions() {
|
|
84
85
|
var _a, _b;
|
|
85
|
-
return (_b = (_a = store.state.x.querySuggestions) === null || _a === void 0 ? void 0 : _a.suggestions) !== null && _b !== void 0 ? _b : [];
|
|
86
|
+
return (_b = (_a = component.$store.state.x.querySuggestions) === null || _a === void 0 ? void 0 : _a.suggestions) !== null && _b !== void 0 ? _b : [];
|
|
86
87
|
},
|
|
87
88
|
get recommendations() {
|
|
88
89
|
var _a, _b;
|
|
89
|
-
return (_b = (_a = store.state.x.recommendations) === null || _a === void 0 ? void 0 : _a.recommendations) !== null && _b !== void 0 ? _b : [];
|
|
90
|
+
return (_b = (_a = component.$store.state.x.recommendations) === null || _a === void 0 ? void 0 : _a.recommendations) !== null && _b !== void 0 ? _b : [];
|
|
90
91
|
},
|
|
91
92
|
get redirections() {
|
|
92
93
|
var _a, _b;
|
|
93
|
-
return (_b = (_a = store.state.x.search) === null || _a === void 0 ? void 0 : _a.redirections) !== null && _b !== void 0 ? _b : [];
|
|
94
|
+
return (_b = (_a = component.$store.state.x.search) === null || _a === void 0 ? void 0 : _a.redirections) !== null && _b !== void 0 ? _b : [];
|
|
94
95
|
},
|
|
95
96
|
get relatedTags() {
|
|
96
97
|
var _a;
|
|
97
|
-
return (_a = store.getters[getGetterPath('relatedTags', 'relatedTags')]) !== null && _a !== void 0 ? _a : [];
|
|
98
|
+
return (_a = component.$store.getters[getGetterPath('relatedTags', 'relatedTags')]) !== null && _a !== void 0 ? _a : [];
|
|
98
99
|
},
|
|
99
100
|
get selectedFilters() {
|
|
100
101
|
var _a;
|
|
101
|
-
return (_a = store.getters[getGetterPath('facets', 'selectedFilters')]) !== null && _a !== void 0 ? _a : [];
|
|
102
|
+
return (_a = component.$store.getters[getGetterPath('facets', 'selectedFilters')]) !== null && _a !== void 0 ? _a : [];
|
|
102
103
|
},
|
|
103
104
|
get selectedRelatedTags() {
|
|
104
105
|
var _a, _b;
|
|
105
|
-
return (_b = (_a = store.state.x.relatedTags) === null || _a === void 0 ? void 0 : _a.selectedRelatedTags) !== null && _b !== void 0 ? _b : [];
|
|
106
|
+
return (_b = (_a = component.$store.state.x.relatedTags) === null || _a === void 0 ? void 0 : _a.selectedRelatedTags) !== null && _b !== void 0 ? _b : [];
|
|
106
107
|
},
|
|
107
108
|
get spellcheckedQuery() {
|
|
108
109
|
var _a, _b;
|
|
109
|
-
return (_b = (_a = store.state.x.search) === null || _a === void 0 ? void 0 : _a.spellcheckedQuery) !== null && _b !== void 0 ? _b : null;
|
|
110
|
+
return (_b = (_a = component.$store.state.x.search) === null || _a === void 0 ? void 0 : _a.spellcheckedQuery) !== null && _b !== void 0 ? _b : null;
|
|
110
111
|
},
|
|
111
112
|
get totalResults() {
|
|
112
113
|
var _a, _b;
|
|
113
|
-
return (_b = (_a = store.state.x.search) === null || _a === void 0 ? void 0 : _a.totalResults) !== null && _b !== void 0 ? _b : 0;
|
|
114
|
+
return (_b = (_a = component.$store.state.x.search) === null || _a === void 0 ? void 0 : _a.totalResults) !== null && _b !== void 0 ? _b : 0;
|
|
114
115
|
}
|
|
115
116
|
};
|
|
116
117
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-plugin.alias.js","sources":["../../../src/plugins/x-plugin.alias.ts"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"x-plugin.alias.js","sources":["../../../src/plugins/x-plugin.alias.ts"],"sourcesContent":["import Vue from 'vue';\nimport { RequestStatus } from '../store/utils/status-store.utils';\nimport {\n XComponentAliasAPI,\n XComponentAliasQueryAPI,\n XComponentAliasStatusAPI\n} from './x-plugin.types';\nimport { getGetterPath } from './x-plugin.utils';\n\n/**\n * Creates an object containing the alias part of {@link XComponentAPI}.\n *\n * @param component - The component with the store from which retrieve the data.\n * @returns An object containing the alias part of the {@link XComponentAPI}.\n *\n * @internal\n */\nexport function getAliasAPI(component: Vue): XComponentAliasAPI {\n const queryModules = [\n 'searchBox',\n 'nextQueries',\n 'querySuggestions',\n 'relatedTags',\n 'search'\n ] as const;\n const statusModules = [\n 'identifierResults',\n 'nextQueries',\n 'popularSearches',\n 'querySuggestions',\n 'recommendations',\n 'relatedTags',\n 'search'\n ] as const;\n\n const query = queryModules.reduce((acc, moduleName) => {\n return Object.defineProperty(acc, moduleName, {\n get(): string {\n return component.$store.state.x[moduleName]?.query ?? '';\n },\n enumerable: true\n });\n }, {} as XComponentAliasQueryAPI);\n const status = statusModules.reduce((acc, moduleName) => {\n return Object.defineProperty(acc, moduleName, {\n get(): RequestStatus | undefined {\n return component.$store.state.x[moduleName]?.status;\n },\n enumerable: true\n });\n }, {} as XComponentAliasStatusAPI);\n\n return {\n query,\n status,\n get device() {\n return component.$store.state.x.device?.name ?? null;\n },\n get facets() {\n return component.$store.getters[getGetterPath('facets', 'facets')] ?? {};\n },\n get historyQueries() {\n return component.$store.getters[getGetterPath('historyQueries', 'historyQueries')] ?? [];\n },\n get identifierResults() {\n return component.$store.state.x.identifierResults?.identifierResults ?? [];\n },\n get isEmpathizeOpen() {\n return component.$store.state.x.empathize?.isOpen ?? false;\n },\n get nextQueries() {\n return component.$store.getters[getGetterPath('nextQueries', 'nextQueries')] ?? [];\n },\n get noResults() {\n return !this.totalResults && !!this.query.search && this.status.search === 'success';\n },\n get partialResults() {\n return component.$store.state.x.search?.partialResults ?? [];\n },\n get popularSearches() {\n return component.$store.state.x.popularSearches?.popularSearches ?? [];\n },\n get querySuggestions() {\n return component.$store.state.x.querySuggestions?.suggestions ?? [];\n },\n get recommendations() {\n return component.$store.state.x.recommendations?.recommendations ?? [];\n },\n get redirections() {\n return component.$store.state.x.search?.redirections ?? [];\n },\n get relatedTags() {\n return component.$store.getters[getGetterPath('relatedTags', 'relatedTags')] ?? [];\n },\n get selectedFilters() {\n return component.$store.getters[getGetterPath('facets', 'selectedFilters')] ?? [];\n },\n get selectedRelatedTags() {\n return component.$store.state.x.relatedTags?.selectedRelatedTags ?? [];\n },\n get spellcheckedQuery() {\n return component.$store.state.x.search?.spellcheckedQuery ?? null;\n },\n get totalResults() {\n return component.$store.state.x.search?.totalResults ?? 0;\n }\n };\n}\n"],"names":[],"mappings":";;AASA;;;;;;;;SAQgB,WAAW,CAAC,SAAc;IACxC,IAAM,YAAY,GAAG;QACnB,WAAW;QACX,aAAa;QACb,kBAAkB;QAClB,aAAa;QACb,QAAQ;KACA,CAAC;IACX,IAAM,aAAa,GAAG;QACpB,mBAAmB;QACnB,aAAa;QACb,iBAAiB;QACjB,kBAAkB;QAClB,iBAAiB;QACjB,aAAa;QACb,QAAQ;KACA,CAAC;IAEX,IAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,UAAU;QAChD,OAAO,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE;YAC5C,GAAG,EAAH;;gBACE,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,0CAAE,KAAK,mCAAI,EAAE,CAAC;aAC1D;YACD,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;KACJ,EAAE,EAA6B,CAAC,CAAC;IAClC,IAAM,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,UAAC,GAAG,EAAE,UAAU;QAClD,OAAO,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE;YAC5C,GAAG,EAAH;;gBACE,OAAO,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,0CAAE,MAAM,CAAC;aACrD;YACD,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;KACJ,EAAE,EAA8B,CAAC,CAAC;IAEnC,OAAO;QACL,KAAK,OAAA;QACL,MAAM,QAAA;QACN,IAAI,MAAM;;YACR,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,0CAAE,IAAI,mCAAI,IAAI,CAAC;SACtD;QACD,IAAI,MAAM;;YACR,OAAO,MAAA,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,mCAAI,EAAE,CAAC;SAC1E;QACD,IAAI,cAAc;;YAChB,OAAO,MAAA,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC,mCAAI,EAAE,CAAC;SAC1F;QACD,IAAI,iBAAiB;;YACnB,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,iBAAiB,0CAAE,iBAAiB,mCAAI,EAAE,CAAC;SAC5E;QACD,IAAI,eAAe;;YACjB,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,0CAAE,MAAM,mCAAI,KAAK,CAAC;SAC5D;QACD,IAAI,WAAW;;YACb,OAAO,MAAA,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,mCAAI,EAAE,CAAC;SACpF;QACD,IAAI,SAAS;YACX,OAAO,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS,CAAC;SACtF;QACD,IAAI,cAAc;;YAChB,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,0CAAE,cAAc,mCAAI,EAAE,CAAC;SAC9D;QACD,IAAI,eAAe;;YACjB,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,0CAAE,eAAe,mCAAI,EAAE,CAAC;SACxE;QACD,IAAI,gBAAgB;;YAClB,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAgB,0CAAE,WAAW,mCAAI,EAAE,CAAC;SACrE;QACD,IAAI,eAAe;;YACjB,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,eAAe,0CAAE,eAAe,mCAAI,EAAE,CAAC;SACxE;QACD,IAAI,YAAY;;YACd,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,0CAAE,YAAY,mCAAI,EAAE,CAAC;SAC5D;QACD,IAAI,WAAW;;YACb,OAAO,MAAA,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,aAAa,EAAE,aAAa,CAAC,CAAC,mCAAI,EAAE,CAAC;SACpF;QACD,IAAI,eAAe;;YACjB,OAAO,MAAA,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC,mCAAI,EAAE,CAAC;SACnF;QACD,IAAI,mBAAmB;;YACrB,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,0CAAE,mBAAmB,mCAAI,EAAE,CAAC;SACxE;QACD,IAAI,iBAAiB;;YACnB,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,0CAAE,iBAAiB,mCAAI,IAAI,CAAC;SACnE;QACD,IAAI,YAAY;;YACd,OAAO,MAAA,MAAA,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,0CAAE,YAAY,mCAAI,CAAC,CAAC;SAC3D;KACF,CAAC;AACJ;;;;"}
|
|
@@ -19,9 +19,9 @@ var createXComponentAPIMixin = function (bus) { return ({
|
|
|
19
19
|
default: undefined
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
-
|
|
22
|
+
beforeCreate: function () {
|
|
23
23
|
this.xComponent = getRootXComponent(this);
|
|
24
|
-
var aliasAPI = getAliasAPI(this
|
|
24
|
+
var aliasAPI = getAliasAPI(this);
|
|
25
25
|
var busAPI = getBusAPI(bus, this);
|
|
26
26
|
this.$x = Object.assign(aliasAPI, busAPI);
|
|
27
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"x-plugin.mixin.js","sources":["../../../src/plugins/x-plugin.mixin.ts"],"sourcesContent":["import Vue, { ComponentOptions } from 'vue';\nimport {
|
|
1
|
+
{"version":3,"file":"x-plugin.mixin.js","sources":["../../../src/plugins/x-plugin.mixin.ts"],"sourcesContent":["import Vue, { ComponentOptions } from 'vue';\nimport { Store } from 'vuex';\nimport { getXComponentXModuleName, isXComponent } from '../components/x-component.utils';\nimport { RootXStoreState } from '../store/store.types';\nimport { XEvent, XEventPayload } from '../wiring/events.types';\nimport { WireMetadata } from '../wiring/wiring.types';\nimport { FeatureLocation } from '../types/origin';\nimport { XModuleName } from '../x-modules/x-modules.types';\nimport { XBus } from './x-bus.types';\nimport { getAliasAPI } from './x-plugin.alias';\nimport { XComponentAPI, XComponentBusAPI } from './x-plugin.types';\n\ndeclare module 'vue/types/vue' {\n export interface Vue {\n $x: XComponentAPI;\n }\n}\n\ndeclare module 'vue/types/options' {\n export interface ComponentOptions<V, Data, Methods, Computed, PropsDef, Props> {\n xModule?: XModuleName;\n }\n}\n\ninterface PrivateExtendedVueComponent extends Vue {\n $location?: FeatureLocation;\n $store: Store<{ x: Partial<RootXStoreState['x']> }>;\n xComponent: Vue | undefined;\n}\n\n/**\n * Vue global mixin that adds a `$x` object to every component with the {@link XComponentAPI}.\n *\n * @remarks It adds an injection property `origin` which value is included in the metadata of each\n * event emitted with `$x.emit`.\n *\n * @param bus - The {@link XBus} to use inside the components for emitting events.\n * @returns Mixin options which registers the component as X-Component and the $x.\n * @internal\n */\nexport const createXComponentAPIMixin = (\n bus: XBus\n): ComponentOptions<Vue> & ThisType<PrivateExtendedVueComponent> => ({\n inject: {\n $location: {\n from: 'location',\n default: undefined\n }\n },\n beforeCreate(this: PrivateExtendedVueComponent) {\n this.xComponent = getRootXComponent(this);\n const aliasAPI = getAliasAPI(this);\n const busAPI = getBusAPI(bus, this);\n this.$x = Object.assign(aliasAPI, busAPI);\n }\n});\n\n/**\n * Creates an object containing the API related to the {@link XBus}.\n *\n * @param bus - The global {@link XBus}.\n * @param component - The component instance.\n *\n * @returns An object containing the {@link XComponentBusAPI}.\n * @internal\n */\nexport function getBusAPI(bus: XBus, component: PrivateExtendedVueComponent): XComponentBusAPI {\n return {\n emit: <Event extends XEvent>(\n event: Event,\n payload?: XEventPayload<Event>,\n metadata: Omit<WireMetadata, 'moduleName'> = {}\n ) => {\n bus.emit(event, payload as any, createWireMetadata(component, metadata));\n component.xComponent?.$emit(event, payload);\n },\n on: bus.on.bind(bus)\n };\n}\n\n/**\n * Creates a wire metadata object based on the component and the provided metadata.\n *\n * @param component - The component this metadata belongs to.\n * @param metadata - Additional metadata emitted by the component.\n * @returns A {@link WireMetadata} object.\n * @internal\n */\nfunction createWireMetadata(\n component: PrivateExtendedVueComponent,\n metadata: Partial<WireMetadata>\n): WireMetadata {\n return {\n moduleName: getXComponentXModuleName(component.xComponent),\n location: component.$location,\n ...metadata\n };\n}\n\n/**\n * Given a component, finds the root XComponent in the ancestors hierarchy.\n *\n * @param component - The component to find its root XComponent.\n * @returns The root XComponent or undefined if it has not.\n * @public\n */\nexport function getRootXComponent(component: Vue): Vue | undefined {\n let xComponent: Vue | undefined;\n while (component !== undefined && component !== null) {\n if (isXComponent(component)) {\n xComponent = component;\n }\n component = component.$parent;\n }\n return xComponent;\n}\n"],"names":[],"mappings":";;;;AA8BA;;;;;;;;;;IAUa,wBAAwB,GAAG,UACtC,GAAS,IACyD,QAAC;IACnE,MAAM,EAAE;QACN,SAAS,EAAE;YACT,IAAI,EAAE,UAAU;YAChB,OAAO,EAAE,SAAS;SACnB;KACF;IACD,YAAY,EAAZ;QACE,IAAI,CAAC,UAAU,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;QAC1C,IAAM,QAAQ,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QACnC,IAAM,MAAM,GAAG,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACpC,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;KAC3C;CACF,KAAE;AAEH;;;;;;;;;SASgB,SAAS,CAAC,GAAS,EAAE,SAAsC;IACzE,OAAO;QACL,IAAI,EAAE,UACJ,KAAY,EACZ,OAA8B,EAC9B,QAA+C;;YAA/C,yBAAA,EAAA,aAA+C;YAE/C,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,OAAc,EAAE,kBAAkB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC;YACzE,MAAA,SAAS,CAAC,UAAU,0CAAE,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;SAC7C;QACD,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC;KACrB,CAAC;AACJ,CAAC;AAED;;;;;;;;AAQA,SAAS,kBAAkB,CACzB,SAAsC,EACtC,QAA+B;IAE/B,kBACE,UAAU,EAAE,wBAAwB,CAAC,SAAS,CAAC,UAAU,CAAC,EAC1D,QAAQ,EAAE,SAAS,CAAC,SAAS,IAC1B,QAAQ,EACX;AACJ,CAAC;AAED;;;;;;;SAOgB,iBAAiB,CAAC,SAAc;IAC9C,IAAI,UAA2B,CAAC;IAChC,OAAO,SAAS,KAAK,SAAS,IAAI,SAAS,KAAK,IAAI,EAAE;QACpD,IAAI,YAAY,CAAC,SAAS,CAAC,EAAE;YAC3B,UAAU,GAAG,SAAS,CAAC;SACxB;QACD,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC;KAC/B;IACD,OAAO,UAAU,CAAC;AACpB;;;;"}
|
package/js/utils/origin.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Creates a {@link QueryOrigin} or a {@link ResultOrigin} string given a {@link QueryFeature} and
|
|
3
3
|
* a {@link FeatureLocation}.
|
|
4
|
-
* If it can't be created, it returns `
|
|
4
|
+
* If it can't be created, it returns `null`.
|
|
5
5
|
*
|
|
6
6
|
* @param originInit - An object containing the needed properties to create a {@link QueryOrigin} or
|
|
7
7
|
* a {@link ResultOrigin}.
|
|
8
|
+
*
|
|
8
9
|
* @returns The composed origin, or `null` if it is not able to create the origin.
|
|
10
|
+
*
|
|
9
11
|
* @internal
|
|
10
12
|
*/
|
|
11
13
|
function createOrigin(_a) {
|
|
12
14
|
var feature = _a.feature, location = _a.location;
|
|
13
|
-
if (
|
|
14
|
-
return feature + ":" + location;
|
|
15
|
+
if (feature) {
|
|
16
|
+
return feature + ":" + (location !== null && location !== void 0 ? location : 'none');
|
|
15
17
|
}
|
|
16
18
|
return null;
|
|
17
19
|
}
|
package/js/utils/origin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"origin.js","sources":["../../../src/utils/origin.ts"],"sourcesContent":["import { QueryOrigin, QueryOriginInit, ResultOrigin } from '../types/origin';\n\n/**\n * Creates a {@link QueryOrigin} or a {@link ResultOrigin} string given a {@link QueryFeature} and\n * a {@link FeatureLocation}.\n * If it can't be created, it returns `
|
|
1
|
+
{"version":3,"file":"origin.js","sources":["../../../src/utils/origin.ts"],"sourcesContent":["import { QueryOrigin, QueryOriginInit, ResultOrigin } from '../types/origin';\n\n/**\n * Creates a {@link QueryOrigin} or a {@link ResultOrigin} string given a {@link QueryFeature} and\n * a {@link FeatureLocation}.\n * If it can't be created, it returns `null`.\n *\n * @param originInit - An object containing the needed properties to create a {@link QueryOrigin} or\n * a {@link ResultOrigin}.\n *\n * @returns The composed origin, or `null` if it is not able to create the origin.\n *\n * @internal\n */\nexport function createOrigin({\n feature,\n location\n}: QueryOriginInit): QueryOrigin | ResultOrigin | null {\n if (feature) {\n return `${feature}:${location ?? 'none'}`;\n }\n return null;\n}\n"],"names":[],"mappings":"AAEA;;;;;;;;;;;;SAYgB,YAAY,CAAC,EAGX;QAFhB,OAAO,aAAA,EACP,QAAQ,cAAA;IAER,IAAI,OAAO,EAAE;QACX,OAAU,OAAO,UAAI,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,MAAM,CAAE,CAAC;KAC3C;IACD,OAAO,IAAI,CAAC;AACd;;;;"}
|
package/js/utils/storage.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { noOp } from './function.js';
|
|
2
|
-
import {
|
|
2
|
+
import { BrowserStorageService } from '@empathyco/x-storage-service';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Service instance of {@link @empathyco/x-storage-service#StorageService | storage service} if
|
|
@@ -10,7 +10,7 @@ import { StorageService } from '@empathyco/x-storage-service';
|
|
|
10
10
|
* @internal
|
|
11
11
|
*/
|
|
12
12
|
var localStorageService = typeof localStorage !== 'undefined'
|
|
13
|
-
? new
|
|
13
|
+
? new BrowserStorageService(localStorage, 'x')
|
|
14
14
|
: {
|
|
15
15
|
clear: noOp,
|
|
16
16
|
getItem: noOp,
|
package/js/utils/storage.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sources":["../../../src/utils/storage.ts"],"sourcesContent":["import { StorageService } from '@empathyco/x-storage-service';\nimport { noOp } from './function';\n\n/**\n * Service instance of {@link @empathyco/x-storage-service#StorageService | storage service} if\n * localStorage is available.\n * If not, required {@link @empathyco/x-storage-service#StorageService | storage service} functions\n * are initialized with empty implementations.\n *\n * @internal\n */\nexport const localStorageService =\n typeof localStorage !== 'undefined'\n ? new
|
|
1
|
+
{"version":3,"file":"storage.js","sources":["../../../src/utils/storage.ts"],"sourcesContent":["import { BrowserStorageService, StorageService } from '@empathyco/x-storage-service';\nimport { noOp } from './function';\n\n/**\n * Service instance of {@link @empathyco/x-storage-service#StorageService | storage service} if\n * localStorage is available.\n * If not, required {@link @empathyco/x-storage-service#StorageService | storage service} functions\n * are initialized with empty implementations.\n *\n * @internal\n */\nexport const localStorageService: StorageService =\n typeof localStorage !== 'undefined'\n ? new BrowserStorageService(localStorage, 'x')\n : {\n clear: noOp,\n getItem: noOp,\n setItem: noOp,\n removeItem: noOp\n };\n"],"names":[],"mappings":";;;AAGA;;;;;;;;IAQa,mBAAmB,GAC9B,OAAO,YAAY,KAAK,WAAW;MAC/B,IAAI,qBAAqB,CAAC,YAAY,EAAE,GAAG,CAAC;MAC5C;QACE,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;QACb,UAAU,EAAE,IAAI;;;;;"}
|
|
@@ -40,12 +40,11 @@ function namespacedThrottle(moduleName) {
|
|
|
40
40
|
* @internal
|
|
41
41
|
*/
|
|
42
42
|
function createNamespacedTimeWireOperator(moduleName, timingOperator) {
|
|
43
|
-
return function (wire,
|
|
44
|
-
if (raceEvent === void 0) { raceEvent = []; }
|
|
43
|
+
return function (wire, timeSelector, options) {
|
|
45
44
|
return timingOperator(wire, function (_a) {
|
|
46
45
|
var state = _a.state, getters = _a.getters;
|
|
47
|
-
return
|
|
48
|
-
},
|
|
46
|
+
return timeSelector(getStateAndGettersFromModule(state, getters, moduleName));
|
|
47
|
+
}, options);
|
|
49
48
|
};
|
|
50
49
|
}
|
|
51
50
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"namespaced-wires.operators.js","sources":["../../../src/wiring/namespaced-wires.operators.ts"],"sourcesContent":["import { XModuleName } from '../x-modules/x-modules.types';\nimport {
|
|
1
|
+
{"version":3,"file":"namespaced-wires.operators.js","sources":["../../../src/wiring/namespaced-wires.operators.ts"],"sourcesContent":["import { XModuleName } from '../x-modules/x-modules.types';\nimport { NamespacedTimeWireOperator } from './namespaced-wiring.types';\nimport { debounce, throttle } from './wires.operators';\nimport { getStateAndGettersFromModule } from './wiring.utils';\n\n/**\n * Type safe debounce operator which creates a function which can only access the Module of\n * the {@link https://vuex.vuejs.org/ | Vuex} Store passed as parameter.\n *\n * @param moduleName - The {@link XModuleName} to create the operator wire.\n * @returns A function which creates a wire that uses the {@link debounce} wire operator to\n * execute the `wire` after the time has passed without invoking it. This debounce time\n * is given by the execution of the `timeRetrieving` function.\n *\n * @public\n */\nexport function namespacedDebounce<ModuleName extends XModuleName>(\n moduleName: ModuleName\n): NamespacedTimeWireOperator<ModuleName> {\n return createNamespacedTimeWireOperator(moduleName, debounce);\n}\n\n/**\n * Type safe throttle operator which creates a function which can only access the Module of\n * the {@link https://vuex.vuejs.org/ | Vuex} Store passed as parameter.\n *\n * @param moduleName - The {@link XModuleName} to create the operator wire.\n * @returns A function which creates a wire that uses the {@link throttle} wire operator to\n * execute the `wire` once every couple of milliseconds. This throttle time is given by\n * the execution of the `timeRetrieving` function.\n *\n * @public\n */\nexport function namespacedThrottle<ModuleName extends XModuleName>(\n moduleName: ModuleName\n): NamespacedTimeWireOperator<ModuleName> {\n return createNamespacedTimeWireOperator(moduleName, throttle);\n}\n\n/**\n * Creates a function which creates a namespaced wire that uses the {@link debounce} or\n * {@link throttle} time wire operator.\n *\n * @param moduleName - The {@link XModuleName} to create the operator wire.\n * @param timingOperator - The time wire operator {@link debounce} or {@link throttle}.\n * @returns A function which creates a namespaced time wire operator.\n *\n * @internal\n */\nfunction createNamespacedTimeWireOperator<ModuleName extends XModuleName>(\n moduleName: ModuleName,\n timingOperator: typeof throttle | typeof debounce\n): NamespacedTimeWireOperator<ModuleName> {\n return (wire, timeSelector, options) =>\n timingOperator(\n wire,\n ({ state, getters }) =>\n timeSelector(getStateAndGettersFromModule(state, getters, moduleName)),\n options\n );\n}\n"],"names":[],"mappings":";;;AAKA;;;;;;;;;;;SAWgB,kBAAkB,CAChC,UAAsB;IAEtB,OAAO,gCAAgC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AAChE,CAAC;AAED;;;;;;;;;;;SAWgB,kBAAkB,CAChC,UAAsB;IAEtB,OAAO,gCAAgC,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AAChE,CAAC;AAED;;;;;;;;;;AAUA,SAAS,gCAAgC,CACvC,UAAsB,EACtB,cAAiD;IAEjD,OAAO,UAAC,IAAI,EAAE,YAAY,EAAE,OAAO;QACjC,OAAA,cAAc,CACZ,IAAI,EACJ,UAAC,EAAkB;gBAAhB,KAAK,WAAA,EAAE,OAAO,aAAA;YACf,OAAA,YAAY,CAAC,4BAA4B,CAAC,KAAK,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;SAAA,EACxE,OAAO,CACR;KAAA,CAAC;AACN;;;;"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { timer, race, Subject } from 'rxjs';
|
|
2
|
+
import { takeUntil } from 'rxjs/operators';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Creates the observable for the events that will be racing the wire's execution.
|
|
6
|
+
*
|
|
7
|
+
* @param events - The events to merge its observables.
|
|
8
|
+
* @param on - The on function of the {@link XBus} where the events will run.
|
|
9
|
+
* @returns The observable for the racing events.
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
function mergeEvents(events, on) {
|
|
13
|
+
var subject = new Subject();
|
|
14
|
+
var eventsList = Array.isArray(events) ? events : [events];
|
|
15
|
+
/* Can't use RxJS `merge` function, as it immediately emits previously emitted values to new
|
|
16
|
+
subscriptions due to the `ReplaySubject` of the bus. With this Subject we are still receiving
|
|
17
|
+
those values immediately on subscription, but as there are no subscribers before the `return`
|
|
18
|
+
happens we are fine. */
|
|
19
|
+
eventsList.forEach(function (raceEvent) { return on(raceEvent).subscribe(function () { return subject.next(); }); });
|
|
20
|
+
return subject;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Checks how to retrieve the timeout time, retrieves it and returns it in ms.
|
|
24
|
+
*
|
|
25
|
+
* @param timeInMs - Time for the timeout in ms.
|
|
26
|
+
* @param store - The store of the wire that will be timed out.
|
|
27
|
+
* @returns The time in ms for the timeout.
|
|
28
|
+
* @internal
|
|
29
|
+
*/
|
|
30
|
+
function normalizeTime(timeInMs, store) {
|
|
31
|
+
return typeof timeInMs === 'function' ? timeInMs(store) : timeInMs;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Creates a timer observable that depending on the provided options might be aborted or forced.
|
|
35
|
+
*
|
|
36
|
+
* @param durationInMs - The duration in ms for the timer.
|
|
37
|
+
* @param options - Options to configure the timer, like an events to force it or cancel it.
|
|
38
|
+
* @param on - The {@link XBus.on} method.
|
|
39
|
+
* @returns A timer observable that can be aborted or forced depending on the provided options.
|
|
40
|
+
* @internal
|
|
41
|
+
*/
|
|
42
|
+
function createTimer(durationInMs, _a, on) {
|
|
43
|
+
var cancelOn = _a.cancelOn, forceOn = _a.forceOn;
|
|
44
|
+
var timerObservable = timer(durationInMs);
|
|
45
|
+
if (forceOn) {
|
|
46
|
+
timerObservable = race(timerObservable, mergeEvents(forceOn, on));
|
|
47
|
+
}
|
|
48
|
+
if (cancelOn) {
|
|
49
|
+
timerObservable = timerObservable.pipe(takeUntil(mergeEvents(cancelOn, on)));
|
|
50
|
+
}
|
|
51
|
+
return timerObservable;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { createTimer, mergeEvents, normalizeTime };
|
|
55
|
+
//# sourceMappingURL=wires-operators.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wires-operators.utils.js","sources":["../../../src/wiring/wires-operators.utils.ts"],"sourcesContent":["import { Subject, Observable, timer, race } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\nimport { Store } from 'vuex';\nimport { XBus } from '../plugins/x-bus.types';\nimport { RootXStoreState } from '../store/store.types';\nimport { MaybeArray } from '../utils/types';\nimport { XEvent } from './events.types';\nimport { TimedWireOperatorOptions, TimeSelector } from './wiring.types';\n\n/**\n * Creates the observable for the events that will be racing the wire's execution.\n *\n * @param events - The events to merge its observables.\n * @param on - The on function of the {@link XBus} where the events will run.\n * @returns The observable for the racing events.\n * @internal\n */\nexport function mergeEvents(events: MaybeArray<XEvent>, on: XBus['on']): Observable<void> {\n const subject = new Subject<void>();\n const eventsList = Array.isArray(events) ? events : [events];\n\n /* Can't use RxJS `merge` function, as it immediately emits previously emitted values to new\n subscriptions due to the `ReplaySubject` of the bus. With this Subject we are still receiving\n those values immediately on subscription, but as there are no subscribers before the `return`\n happens we are fine. */\n eventsList.forEach(raceEvent => on(raceEvent).subscribe(() => subject.next()));\n return subject;\n}\n\n/**\n * Checks how to retrieve the timeout time, retrieves it and returns it in ms.\n *\n * @param timeInMs - Time for the timeout in ms.\n * @param store - The store of the wire that will be timed out.\n * @returns The time in ms for the timeout.\n * @internal\n */\nexport function normalizeTime(\n timeInMs: TimeSelector | number,\n store: Store<RootXStoreState>\n): number {\n return typeof timeInMs === 'function' ? timeInMs(store) : timeInMs;\n}\n\n/**\n * Creates a timer observable that depending on the provided options might be aborted or forced.\n *\n * @param durationInMs - The duration in ms for the timer.\n * @param options - Options to configure the timer, like an events to force it or cancel it.\n * @param on - The {@link XBus.on} method.\n * @returns A timer observable that can be aborted or forced depending on the provided options.\n * @internal\n */\nexport function createTimer(\n durationInMs: number,\n { cancelOn, forceOn }: TimedWireOperatorOptions,\n on: XBus['on']\n): Observable<unknown> {\n let timerObservable: Observable<unknown> = timer(durationInMs);\n if (forceOn) {\n timerObservable = race(timerObservable, mergeEvents(forceOn, on));\n }\n\n if (cancelOn) {\n timerObservable = timerObservable.pipe(takeUntil(mergeEvents(cancelOn, on)));\n }\n\n return timerObservable;\n}\n"],"names":[],"mappings":";;;AASA;;;;;;;;SAQgB,WAAW,CAAC,MAA0B,EAAE,EAAc;IACpE,IAAM,OAAO,GAAG,IAAI,OAAO,EAAQ,CAAC;IACpC,IAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,GAAG,CAAC,MAAM,CAAC,CAAC;;;;;IAM7D,UAAU,CAAC,OAAO,CAAC,UAAA,SAAS,IAAI,OAAA,EAAE,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,cAAM,OAAA,OAAO,CAAC,IAAI,EAAE,GAAA,CAAC,GAAA,CAAC,CAAC;IAC/E,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;;;;SAQgB,aAAa,CAC3B,QAA+B,EAC/B,KAA6B;IAE7B,OAAO,OAAO,QAAQ,KAAK,UAAU,GAAG,QAAQ,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC;AACrE,CAAC;AAED;;;;;;;;;SASgB,WAAW,CACzB,YAAoB,EACpB,EAA+C,EAC/C,EAAc;QADZ,QAAQ,cAAA,EAAE,OAAO,aAAA;IAGnB,IAAI,eAAe,GAAwB,KAAK,CAAC,YAAY,CAAC,CAAC;IAC/D,IAAI,OAAO,EAAE;QACX,eAAe,GAAG,IAAI,CAAC,eAAe,EAAE,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC;KACnE;IAED,IAAI,QAAQ,EAAE;QACZ,eAAe,GAAG,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;KAC9E;IAED,OAAO,eAAe,CAAC;AACzB;;;;"}
|