@empathyco/x-components 3.0.0-alpha.30 → 3.0.0-alpha.34
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 +117 -0
- package/core/index.js +3 -0
- package/core/index.js.map +1 -1
- package/design-system/default-theme.css +6 -1
- package/design-system/full-theme.css +6 -1
- package/design-system/list-default.css +3 -0
- package/design-system/suggestion-default.css +3 -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.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.globalxbus.created.md +15 -0
- package/docs/API-reference/api/x-components.globalxbus.md +21 -0
- package/docs/API-reference/api/x-components.identifierresultsactions.md +0 -1
- package/docs/API-reference/api/x-components.identifierresultsmutations.md +1 -0
- package/docs/API-reference/api/x-components.identifierresultsmutations.setparams.md +24 -0
- package/docs/API-reference/api/x-components.identifierresultsstate.md +1 -0
- package/docs/API-reference/api/x-components.identifierresultsstate.params.md +13 -0
- package/docs/API-reference/api/x-components.md +8 -0
- 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.setconsent.md +1 -1
- package/docs/API-reference/api/x-components.setidentifierresultsextraparams.md +13 -0
- 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.taggingactions.md +7 -0
- package/docs/API-reference/api/x-components.taggingactions.track.md +24 -0
- package/docs/API-reference/api/x-components.tagicon.md +11 -0
- package/docs/API-reference/api/x-components.track.md +13 -0
- package/docs/API-reference/api/x-components.trackwire.md +13 -0
- package/docs/API-reference/api/x-components.xeventlisteners.md +17 -0
- package/docs/API-reference/api/x-components.xeventstypes.md +1 -0
- package/docs/API-reference/api/x-components.xeventstypes.snippetcallbackexecuted.md +16 -0
- 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 +5 -6
- package/docs/API-reference/components/common/animations/x-components.collapse-from-top.md +6 -7
- package/docs/API-reference/components/common/animations/x-components.collapse-height.md +7 -8
- package/docs/API-reference/components/common/animations/x-components.collapse-width.md +7 -8
- package/docs/API-reference/components/common/animations/x-components.cross-fade.md +6 -7
- package/docs/API-reference/components/common/animations/x-components.fade-and-slide.md +6 -7
- package/docs/API-reference/components/common/animations/x-components.staggered-fade-and-slide.md +7 -8
- package/docs/API-reference/components/common/animations/x-components.translate-from-left.md +6 -7
- package/docs/API-reference/components/common/animations/x-components.translate-from-right.md +6 -7
- package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-dropdown.md +7 -8
- package/docs/API-reference/components/common/column-picker/x-components.base-column-picker-list.md +6 -7
- package/docs/API-reference/components/common/currency/x-components.base-currency.md +7 -8
- package/docs/API-reference/components/common/filters/labels/x-components.base-price-filter-label.md +7 -8
- package/docs/API-reference/components/common/filters/labels/x-components.base-rating-filter-label.md +7 -8
- 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 +6 -7
- package/docs/API-reference/components/common/layouts/x-components.multi-column-max-width-layout.md +6 -7
- 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 +7 -8
- package/docs/API-reference/components/common/modals/x-components.base-events-modal-open.md +7 -8
- package/docs/API-reference/components/common/modals/x-components.base-events-modal.md +12 -13
- package/docs/API-reference/components/common/modals/x-components.base-id-modal-close.md +7 -8
- package/docs/API-reference/components/common/modals/x-components.base-id-modal-open.md +7 -8
- package/docs/API-reference/components/common/modals/x-components.base-id-modal.md +9 -10
- package/docs/API-reference/components/common/modals/x-components.base-modal.md +6 -7
- package/docs/API-reference/components/common/panels/x-components.base-header-toggle-panel.md +7 -8
- package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel-button.md +8 -9
- package/docs/API-reference/components/common/panels/x-components.base-id-toggle-panel.md +8 -9
- package/docs/API-reference/components/common/panels/x-components.base-toggle-panel.md +6 -7
- package/docs/API-reference/components/common/result/x-components.base-result-add-to-cart.md +7 -8
- package/docs/API-reference/components/common/result/x-components.base-result-current-price.md +7 -8
- 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 +6 -7
- package/docs/API-reference/components/common/result/x-components.base-result-link.md +5 -6
- 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 +6 -7
- package/docs/API-reference/components/common/scroll/x-components.base-scroll.md +6 -7
- package/docs/API-reference/components/common/suggestions/x-components.base-suggestion.md +7 -8
- package/docs/API-reference/components/common/suggestions/x-components.base-suggestions.md +6 -7
- 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 +7 -8
- package/docs/API-reference/components/common/x-components.base-event-button.md +9 -10
- package/docs/API-reference/components/common/x-components.base-grid.md +11 -12
- package/docs/API-reference/components/common/x-components.base-keyboard-navigation.md +6 -7
- package/docs/API-reference/components/common/x-components.base-rating.md +7 -8
- package/docs/API-reference/components/common/x-components.base-variable-column-grid.md +9 -10
- 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 +6 -7
- package/docs/API-reference/components/common/x-components.snippet-callbacks.md +36 -0
- package/docs/API-reference/components/common/x-components.staggering-transition-group.md +6 -7
- package/docs/API-reference/components/device/x-components.device-detector.md +8 -9
- package/docs/API-reference/components/empathize/x-components.empathize.md +6 -7
- 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 +7 -8
- 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 +6 -7
- package/docs/API-reference/components/facets/x-components.facets/facets-provider.md +9 -10
- package/docs/API-reference/components/facets/x-components.facets/facets.md +6 -7
- package/docs/API-reference/components/facets/x-components.filters/all-filter.md +10 -11
- package/docs/API-reference/components/facets/x-components.filters/base-filter.md +8 -9
- package/docs/API-reference/components/facets/x-components.filters/editable-number-range-filter.md +7 -8
- package/docs/API-reference/components/facets/x-components.filters/hierarchical-filter.md +5 -6
- package/docs/API-reference/components/facets/x-components.filters/number-range-filter.md +6 -7
- package/docs/API-reference/components/facets/x-components.filters/renderless-filter.md +9 -10
- package/docs/API-reference/components/facets/x-components.filters/simple-filter.md +6 -7
- package/docs/API-reference/components/facets/x-components.lists/exclude-filters-with-no-results.md +8 -9
- package/docs/API-reference/components/facets/x-components.lists/filters-list.md +8 -9
- package/docs/API-reference/components/facets/x-components.lists/filters-search.md +6 -7
- package/docs/API-reference/components/facets/x-components.lists/selected-filters-list.md +7 -8
- package/docs/API-reference/components/facets/x-components.lists/selected-filters.md +7 -8
- package/docs/API-reference/components/facets/x-components.lists/sliced-filters.md +8 -9
- package/docs/API-reference/components/facets/x-components.lists/sorted-filters.md +6 -7
- package/docs/API-reference/components/history-queries/x-components.clear-history-queries.md +8 -9
- package/docs/API-reference/components/history-queries/x-components.history-queries.md +6 -7
- package/docs/API-reference/components/history-queries/x-components.history-query.md +8 -9
- package/docs/API-reference/components/history-queries/x-components.remove-history-query.md +8 -9
- package/docs/API-reference/components/identifier-results/x-components.identifier-result.md +7 -8
- package/docs/API-reference/components/identifier-results/x-components.identifier-results.md +8 -9
- 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 +10 -11
- package/docs/API-reference/components/next-queries/x-components.next-query.md +8 -9
- package/docs/API-reference/components/popular-searches/x-components.popular-search.md +8 -9
- package/docs/API-reference/components/popular-searches/x-components.popular-searches.md +9 -10
- 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 +10 -11
- 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 +7 -8
- package/docs/API-reference/components/scroll/x-components.scroll.md +7 -8
- package/docs/API-reference/components/scroll/x-components.window-scroll.md +8 -9
- 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 +8 -9
- package/docs/API-reference/components/search/x-components.partial-results-list.md +7 -8
- 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 +7 -8
- package/docs/API-reference/components/search/x-components.results-list.md +7 -8
- package/docs/API-reference/components/search/x-components.sort-dropdown.md +7 -8
- package/docs/API-reference/components/search/x-components.sort-list.md +7 -8
- package/docs/API-reference/components/search/x-components.spellcheck-button.md +8 -9
- package/docs/API-reference/components/search/x-components.spellcheck.md +8 -9
- 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 +108 -0
- package/docs/build-search-ui/web-archetype-integration-guide.md +178 -0
- package/docs/build-search-ui/web-use-x-components-guide.md +165 -0
- package/docs/build-search-ui/web-x-components-integration-guide.md +192 -0
- package/docs/build-search-ui/x-architecture/README.md +128 -0
- package/identifier-results/index.js +1 -1
- package/js/components/animations/animate-width.vue.js +1 -1
- package/js/components/animations/collapse-from-top.vue.js +1 -1
- package/js/components/animations/collapse-height.vue.js +3 -3
- package/js/components/animations/collapse-width.vue.js +3 -3
- package/js/components/animations/cross-fade.vue.js +1 -1
- package/js/components/animations/fade-and-slide.vue.js +2 -2
- package/js/components/animations/staggered-fade-and-slide.vue.js +2 -2
- package/js/components/animations/translate-from-left.vue.js +1 -1
- package/js/components/animations/translate-from-right.vue.js +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 +33 -45
- package/js/components/base-dropdown.vue.js.map +1 -1
- package/js/components/base-event-button.vue.js +1 -1
- package/js/components/base-grid.vue.js +7 -9
- 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 +19 -20
- 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 +9 -11
- 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-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 +46 -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/multi-column-max-width-layout.vue.js +54 -88
- package/js/components/layouts/multi-column-max-width-layout.vue.js.map +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/modals/base-events-modal-close.vue.js +2 -2
- package/js/components/modals/base-events-modal-open.vue.js +2 -2
- package/js/components/modals/base-events-modal.vue.js +3 -3
- package/js/components/modals/base-id-modal-close.vue.js +2 -2
- package/js/components/modals/base-id-modal-open.vue.js +2 -2
- package/js/components/modals/base-id-modal.vue.js +3 -3
- package/js/components/modals/base-modal.vue.js +9 -11
- package/js/components/modals/base-modal.vue.js.map +1 -1
- package/js/components/panels/base-header-toggle-panel.vue.js +5 -7
- 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.vue.js +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-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 +9 -12
- package/js/components/result/base-result-image.vue.js.map +1 -1
- package/js/components/result/base-result-link.vue.js +5 -5
- package/js/components/result/base-result-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 +2 -2
- package/js/components/sliding-panel.vue.js +11 -14
- 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 +6 -7
- package/js/components/suggestions/base-suggestions.vue.js.map +1 -1
- package/js/index.js +7 -2
- package/js/index.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/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/extra-params/components/extra-params.vue_rollup-plugin-vue=script.js +3 -0
- 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 +3 -0
- 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_rollup-plugin-vue=script.js +3 -0
- 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 +3 -0
- 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_rollup-plugin-vue=script.js +3 -0
- 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 +10 -11
- 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 +3 -0
- 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 +3 -0
- 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 +19 -23
- 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 +3 -0
- 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 +3 -0
- 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_rollup-plugin-vue=script.js +3 -0
- 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 +3 -0
- 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_rollup-plugin-vue=script.js +3 -0
- 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 +4 -4
- package/js/x-modules/facets/components/lists/filters-list.vue_rollup-plugin-vue=script.js +3 -0
- 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 +8 -10
- 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 +3 -0
- 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 +3 -0
- 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 +3 -0
- 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_rollup-plugin-vue=script.js +3 -0
- 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-query.vue.js +14 -18
- 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.map +1 -1
- package/js/x-modules/history-queries/components/remove-history-query.vue.js +2 -2
- package/js/x-modules/identifier-results/components/identifier-result.vue.js +2 -2
- package/js/x-modules/identifier-results/components/identifier-results.vue.js +4 -4
- 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/actions/save-query.action.js +4 -0
- package/js/x-modules/identifier-results/store/actions/save-query.action.js.map +1 -1
- package/js/x-modules/identifier-results/store/getters/identifier-results-request.getter.js +4 -9
- package/js/x-modules/identifier-results/store/getters/identifier-results-request.getter.js.map +1 -1
- package/js/x-modules/identifier-results/store/module.js +5 -3
- package/js/x-modules/identifier-results/store/module.js.map +1 -1
- package/js/x-modules/identifier-results/wiring.js +16 -3
- 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.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-query.vue.js +9 -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.map +1 -1
- package/js/x-modules/popular-searches/components/popular-search.vue.js +9 -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.map +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/query-suggestions/components/query-suggestion.vue.js +10 -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.map +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/recommendations/components/recommendations.vue.js +9 -12
- 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 +35 -7
- 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 +3 -0
- 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 +3 -0
- 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/window-scroll.vue_rollup-plugin-vue=script.js +3 -0
- 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 +4 -6
- package/js/x-modules/search/components/banner.vue.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/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-query-button.vue_rollup-plugin-vue=script.js +14 -6
- package/js/x-modules/search/components/partial-query-button.vue_rollup-plugin-vue=script.js.map +1 -1
- package/js/x-modules/search/components/partial-results-list.vue.js +4 -4
- package/js/x-modules/search/components/promoted.vue.js +4 -6
- package/js/x-modules/search/components/promoted.vue.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/redirection.vue.js +4 -5
- package/js/x-modules/search/components/redirection.vue.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/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 +8 -10
- 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 +3 -0
- 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 +3 -0
- 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-button.vue_rollup-plugin-vue=script.js +14 -6
- package/js/x-modules/search/components/spellcheck-button.vue_rollup-plugin-vue=script.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 +3 -0
- 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/emitters.js +8 -1
- package/js/x-modules/search/store/emitters.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-button.vue_rollup-plugin-vue=script.js +14 -6
- package/js/x-modules/search-box/components/search-button.vue_rollup-plugin-vue=script.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 +17 -14
- 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 +43 -0
- package/js/x-modules/tagging/store/actions/track.action.js.map +1 -0
- package/js/x-modules/tagging/store/module.js +6 -2
- package/js/x-modules/tagging/store/module.js.map +1 -1
- package/js/x-modules/tagging/wiring.js +30 -3
- 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 +16 -14
- package/report/tsdoc-metadata.json +1 -1
- package/report/x-adapter.api.json +29 -3
- package/report/x-components.api.json +662 -59
- package/report/x-components.api.md +106 -18
- package/report/x-types.api.json +27 -1
- package/tagging/index.js +4 -2
- package/types/adapter/mocked-adapter.d.ts.map +1 -1
- 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 +2 -0
- package/types/components/index.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/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/wiring/events.types.d.ts +8 -0
- package/types/wiring/events.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-modules/history-queries/components/history-query.vue.d.ts.map +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/actions/save-query.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/store/module.d.ts.map +1 -1
- package/types/x-modules/identifier-results/store/types.d.ts +9 -7
- package/types/x-modules/identifier-results/store/types.d.ts.map +1 -1
- package/types/x-modules/identifier-results/wiring.d.ts +11 -1
- package/types/x-modules/identifier-results/wiring.d.ts.map +1 -1
- package/types/x-modules/next-queries/components/next-query.vue.d.ts.map +1 -1
- package/types/x-modules/popular-searches/components/popular-search.vue.d.ts.map +1 -1
- package/types/x-modules/query-suggestions/components/query-suggestion.vue.d.ts.map +1 -1
- package/types/x-modules/related-tags/components/related-tag.vue.d.ts +22 -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/partial-query-button.vue.d.ts +8 -0
- package/types/x-modules/search/components/partial-query-button.vue.d.ts.map +1 -1
- package/types/x-modules/search/components/spellcheck-button.vue.d.ts +8 -0
- package/types/x-modules/search/components/spellcheck-button.vue.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/emitters.d.ts +4 -1
- package/types/x-modules/search/store/emitters.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-button.vue.d.ts +8 -0
- package/types/x-modules/search-box/components/search-button.vue.d.ts.map +1 -1
- package/types/x-modules/search-box/components/search-input.vue.d.ts +6 -3
- 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/store/actions/index.d.ts +2 -0
- package/types/x-modules/tagging/store/actions/index.d.ts.map +1 -0
- package/types/x-modules/tagging/store/actions/track.action.d.ts +12 -0
- package/types/x-modules/tagging/store/actions/track.action.d.ts.map +1 -0
- package/types/x-modules/tagging/store/index.d.ts +1 -0
- package/types/x-modules/tagging/store/index.d.ts.map +1 -1
- package/types/x-modules/tagging/store/module.d.ts.map +1 -1
- package/types/x-modules/tagging/store/types.d.ts +7 -0
- package/types/x-modules/tagging/store/types.d.ts.map +1 -1
- package/types/x-modules/tagging/wiring.d.ts +17 -7
- 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.identifierresultsactions.seturlparams.md +0 -24
- package/docs/css/global.scss +0 -1
- package/docs/css/utils/utils.scss +0 -35
- package/docs/css/xcomponents/clear-search-input.scss +0 -9
- package/docs/css/xcomponents/index.scss +0 -16
- package/docs/css/xcomponents/search-input.scss +0 -10
- package/docs/css/xcomponents/suggestions.scss +0 -19
- package/docs/guide/getting-started/components/clear-search-input.md +0 -98
- package/docs/guide/getting-started/components/live-examples.md +0 -100
- package/docs/guide/getting-started/components/query-suggestions.md +0 -76
- package/docs/guide/getting-started/components/search-button.md +0 -98
- package/docs/guide/getting-started/components/search-input.md +0 -105
- package/docs/guide/getting-started/install-xplugin.md +0 -72
- package/docs/guide/getting-started/use-components.md +0 -75
- package/docs/guide/install.md +0 -30
- package/docs/react-components/ReactComponents.jsx +0 -46
- package/docs/react-components/Utils.jsx +0 -34
- package/docs/sidebar.json +0 -1
- package/js/x-modules/identifier-results/store/actions/set-url-params.action.js +0 -17
- package/js/x-modules/identifier-results/store/actions/set-url-params.action.js.map +0 -1
- package/types/x-modules/identifier-results/store/actions/set-url-params.action.d.ts +0 -12
- package/types/x-modules/identifier-results/store/actions/set-url-params.action.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-current-price.vue.js","sources":["../../../../src/components/result/base-result-current-price.vue"],"sourcesContent":["<template>\n <div :class=\"dynamicClasses\" class=\"x-result-current-price\" data-test=\"result-current-price\">\n <!--\n @slot Base currency item\n @binding {result} result - Result data\n -->\n <slot :result=\"result\">\n <BaseCurrency :value=\"result.price.value\" :format=\"format\" />\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { Result } from '@empathyco/x-types';\n import { Component, Prop } from 'vue-property-decorator';\n import Vue from 'vue';\n import { VueCSSClasses } from '../../utils/types';\n import BaseCurrency from '../currency/base-currency.vue';\n\n /**\n * Component that renders the {@link @empathyco/x-types#Result | result} current price\n * that may or may not be on sale.\n *\n * @public\n */\n @Component({\n components: { BaseCurrency }\n })\n export default class BaseResultCurrentPrice extends Vue {\n /**\n * (Required) The {@link @empathyco/x-types#Result | result} information.\n *\n * @public\n */\n @Prop({ required: true })\n protected result!: Result;\n\n /**\n * Format or mask to be defined as string.\n * - Use 'i' to define integer numbers.\n * - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the\n * doesn't include decimals, it is filled with zeros until reach the length defined with 'd's.\n * - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group.\n * - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more\n * than one character.\n * - Set whatever you need around the integers and decimals marks.\n * - Default mask: 'i.iii,dd' which returns '1.345,67'.\n *\n * @remarks The number of 'd', which is the maximum decimal length, MUST match with the length\n * of decimals provided from the adapter. Otherwise, when the component truncate the decimal\n * part, delete significant digits.\n *\n * @public\n */\n @Prop()\n protected format?: string;\n\n /**\n * Dynamic CSS classes to add to the root element of this component.\n *\n * @returns A booleans dictionary where each key is the class name to add, and the boolean value\n * tells if it should be added or not.\n * @internal\n */\n protected get dynamicClasses(): VueCSSClasses {\n return {\n 'x-result-current-price--on-sale': this.result.price.hasDiscount\n };\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n# Examples\n\n## Basic example\n\nThis component shows the current price formatted. You can provide the `format` by property or let\nthe `BaseCurrency` component use an injected one.\n\n```vue\n<BaseResultCurrentPrice :value=\"result\" :format=\"'i.iii,ddd €'\" />\n```\n\n## Overriding default slot\n\n```vue\n<BaseResultCurrentPrice :result=\"result\">\n <span class=\"custom-base-result-current-price\">{{ result.price.value }}</span>\n</BaseResultCurrentPrice>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA
|
|
1
|
+
{"version":3,"file":"base-result-current-price.vue.js","sources":["../../../../src/components/result/base-result-current-price.vue"],"sourcesContent":["<template>\n <div :class=\"dynamicClasses\" class=\"x-result-current-price\" data-test=\"result-current-price\">\n <!--\n @slot Base currency item\n @binding {result} result - Result data\n -->\n <slot :result=\"result\">\n <BaseCurrency :value=\"result.price.value\" :format=\"format\" />\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { Result } from '@empathyco/x-types';\n import { Component, Prop } from 'vue-property-decorator';\n import Vue from 'vue';\n import { VueCSSClasses } from '../../utils/types';\n import BaseCurrency from '../currency/base-currency.vue';\n\n /**\n * Component that renders the {@link @empathyco/x-types#Result | result} current price\n * that may or may not be on sale.\n *\n * @public\n */\n @Component({\n components: { BaseCurrency }\n })\n export default class BaseResultCurrentPrice extends Vue {\n /**\n * (Required) The {@link @empathyco/x-types#Result | result} information.\n *\n * @public\n */\n @Prop({ required: true })\n protected result!: Result;\n\n /**\n * Format or mask to be defined as string.\n * - Use 'i' to define integer numbers.\n * - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the\n * doesn't include decimals, it is filled with zeros until reach the length defined with 'd's.\n * - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group.\n * - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more\n * than one character.\n * - Set whatever you need around the integers and decimals marks.\n * - Default mask: 'i.iii,dd' which returns '1.345,67'.\n *\n * @remarks The number of 'd', which is the maximum decimal length, MUST match with the length\n * of decimals provided from the adapter. Otherwise, when the component truncate the decimal\n * part, delete significant digits.\n *\n * @public\n */\n @Prop()\n protected format?: string;\n\n /**\n * Dynamic CSS classes to add to the root element of this component.\n *\n * @returns A booleans dictionary where each key is the class name to add, and the boolean value\n * tells if it should be added or not.\n * @internal\n */\n protected get dynamicClasses(): VueCSSClasses {\n return {\n 'x-result-current-price--on-sale': this.result.price.hasDiscount\n };\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n# Examples\n\n## Basic example\n\nThis component shows the current price formatted. You can provide the `format` by property or let\nthe `BaseCurrency` component use an injected one.\n\n```vue\n<BaseResultCurrentPrice :value=\"result\" :format=\"'i.iii,ddd €'\" />\n```\n\n## Overriding default slot\n\n```vue\n<BaseResultCurrentPrice :result=\"result\">\n <span class=\"custom-base-result-current-price\">{{ result.price.value }}</span>\n</BaseResultCurrentPrice>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,7 +5,7 @@ import script from './base-result-fallback-image.vue_rollup-plugin-vue=script.js
|
|
|
5
5
|
var __vue_script__ = script;
|
|
6
6
|
|
|
7
7
|
/* template */
|
|
8
|
-
var __vue_render__ = function(_h, _vm) {
|
|
8
|
+
var __vue_render__ = function (_h, _vm) {
|
|
9
9
|
var _c = _vm._c;
|
|
10
10
|
return _c(
|
|
11
11
|
"svg",
|
|
@@ -18,21 +18,19 @@ var __vue_render__ = function(_h, _vm) {
|
|
|
18
18
|
version: "1.1",
|
|
19
19
|
viewBox: "0 0 256 371",
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
22
|
-
}
|
|
21
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
22
|
+
},
|
|
23
23
|
},
|
|
24
24
|
[
|
|
25
25
|
_c("rect", { attrs: { height: "371", width: "256", x: "0", y: "0" } }),
|
|
26
26
|
_vm._v(" "),
|
|
27
27
|
_c("path", {
|
|
28
28
|
attrs: {
|
|
29
|
-
d:
|
|
30
|
-
"M142.40625,0 L142.40625,13.5625 L20.34375,13.5625 C16.5983809,13.5625 13.5625,16.5983809\n 13.5625,20.34375 L13.5625,20.34375 L13.5625,159.969687 L76.628125,96.971875\n C79.2732363,94.3424453 83.5445762,94.3424453 86.1896875,96.971875 L86.1896875,96.971875\n L128.84375,139.625937 L164.784375,103.753125 C167.429486,101.123695 171.700826,101.123695\n 174.345938,103.753125 L174.345938,103.753125 L203.4375,132.844687 L203.4375,81.375 L217,81.375\n L217,196.65625 C217,207.891934 207.891934,217 196.65625,217 L196.65625,217 L20.34375,217\n C9.10806641,217 0,207.891934 0,196.65625 L0,196.65625 L0,20.34375 C0,9.10806641 9.10806641,0\n 20.34375,0 L20.34375,0 L142.40625,0 Z M62,37 C73.045625,37 82,45.954375 82,57 C82,68.045625\n 73.045625,77 62,77 C50.954375,77 42,68.045625 42,57 C42,45.954375 50.954375,37 62,37 Z\n M211.783582,5.21641753 C213.066298,6.49913292 213.112109,8.55036201 211.921016,9.88797123\n L211.783582,10.0335825 L191.317,30.5 L211.783582,50.9664175 C213.113806,52.2966409\n 213.113806,54.4533591 211.783582,55.7835825 C210.500867,57.0662979 208.449638,57.1121091\n 207.112029,55.9210163 L206.966418,55.7835825 L186.5,35.317 L166.033582,55.7835825\n C164.703359,57.1138058 162.546641,57.1138058 161.216418,55.7835825 C159.933702,54.5008671\n 159.887891,52.449638 161.078984,51.1120288 L161.216418,50.9664175 L181.683,30.5\n L161.216418,10.0335825 C159.886194,8.7033591 159.886194,6.5466409 161.216418,5.21641753\n C162.499133,3.93370214 164.550362,3.88789087 165.887971,5.07898373 L166.033582,5.21641753\n L186.5,25.683 L206.966418,5.21641753 C208.296641,3.88619416 210.453359,3.88619416\n 211.783582,5.21641753 Z",
|
|
29
|
+
d: "M142.40625,0 L142.40625,13.5625 L20.34375,13.5625 C16.5983809,13.5625 13.5625,16.5983809\n 13.5625,20.34375 L13.5625,20.34375 L13.5625,159.969687 L76.628125,96.971875\n C79.2732363,94.3424453 83.5445762,94.3424453 86.1896875,96.971875 L86.1896875,96.971875\n L128.84375,139.625937 L164.784375,103.753125 C167.429486,101.123695 171.700826,101.123695\n 174.345938,103.753125 L174.345938,103.753125 L203.4375,132.844687 L203.4375,81.375 L217,81.375\n L217,196.65625 C217,207.891934 207.891934,217 196.65625,217 L196.65625,217 L20.34375,217\n C9.10806641,217 0,207.891934 0,196.65625 L0,196.65625 L0,20.34375 C0,9.10806641 9.10806641,0\n 20.34375,0 L20.34375,0 L142.40625,0 Z M62,37 C73.045625,37 82,45.954375 82,57 C82,68.045625\n 73.045625,77 62,77 C50.954375,77 42,68.045625 42,57 C42,45.954375 50.954375,37 62,37 Z\n M211.783582,5.21641753 C213.066298,6.49913292 213.112109,8.55036201 211.921016,9.88797123\n L211.783582,10.0335825 L191.317,30.5 L211.783582,50.9664175 C213.113806,52.2966409\n 213.113806,54.4533591 211.783582,55.7835825 C210.500867,57.0662979 208.449638,57.1121091\n 207.112029,55.9210163 L206.966418,55.7835825 L186.5,35.317 L166.033582,55.7835825\n C164.703359,57.1138058 162.546641,57.1138058 161.216418,55.7835825 C159.933702,54.5008671\n 159.887891,52.449638 161.078984,51.1120288 L161.216418,50.9664175 L181.683,30.5\n L161.216418,10.0335825 C159.886194,8.7033591 159.886194,6.5466409 161.216418,5.21641753\n C162.499133,3.93370214 164.550362,3.88789087 165.887971,5.07898373 L166.033582,5.21641753\n L186.5,25.683 L206.966418,5.21641753 C208.296641,3.88619416 210.453359,3.88619416\n 211.783582,5.21641753 Z",
|
|
31
30
|
"fill-rule": "nonzero",
|
|
32
|
-
transform: "translate(20.000000, 77.000000)"
|
|
33
|
-
}
|
|
34
|
-
})
|
|
35
|
-
]
|
|
31
|
+
transform: "translate(20.000000, 77.000000)",
|
|
32
|
+
},
|
|
33
|
+
}) ]
|
|
36
34
|
)
|
|
37
35
|
};
|
|
38
36
|
var __vue_staticRenderFns__ = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-fallback-image.vue.js","sources":["../../../../src/components/result/base-result-fallback-image.vue"],"sourcesContent":["<template functional>\n <svg\n :class=\"['x-picture__image x-picture__image--fallback'].concat(data.staticClass, data.class)\"\n version=\"1.1\"\n viewBox=\"0 0 256 371\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n >\n <rect height=\"371\" width=\"256\" x=\"0\" y=\"0\"></rect>\n <path\n d=\"M142.40625,0 L142.40625,13.5625 L20.34375,13.5625 C16.5983809,13.5625 13.5625,16.5983809\n 13.5625,20.34375 L13.5625,20.34375 L13.5625,159.969687 L76.628125,96.971875\n C79.2732363,94.3424453 83.5445762,94.3424453 86.1896875,96.971875 L86.1896875,96.971875\n L128.84375,139.625937 L164.784375,103.753125 C167.429486,101.123695 171.700826,101.123695\n 174.345938,103.753125 L174.345938,103.753125 L203.4375,132.844687 L203.4375,81.375 L217,81.375\n L217,196.65625 C217,207.891934 207.891934,217 196.65625,217 L196.65625,217 L20.34375,217\n C9.10806641,217 0,207.891934 0,196.65625 L0,196.65625 L0,20.34375 C0,9.10806641 9.10806641,0\n 20.34375,0 L20.34375,0 L142.40625,0 Z M62,37 C73.045625,37 82,45.954375 82,57 C82,68.045625\n 73.045625,77 62,77 C50.954375,77 42,68.045625 42,57 C42,45.954375 50.954375,37 62,37 Z\n M211.783582,5.21641753 C213.066298,6.49913292 213.112109,8.55036201 211.921016,9.88797123\n L211.783582,10.0335825 L191.317,30.5 L211.783582,50.9664175 C213.113806,52.2966409\n 213.113806,54.4533591 211.783582,55.7835825 C210.500867,57.0662979 208.449638,57.1121091\n 207.112029,55.9210163 L206.966418,55.7835825 L186.5,35.317 L166.033582,55.7835825\n C164.703359,57.1138058 162.546641,57.1138058 161.216418,55.7835825 C159.933702,54.5008671\n 159.887891,52.449638 161.078984,51.1120288 L161.216418,50.9664175 L181.683,30.5\n L161.216418,10.0335825 C159.886194,8.7033591 159.886194,6.5466409 161.216418,5.21641753\n C162.499133,3.93370214 164.550362,3.88789087 165.887971,5.07898373 L166.033582,5.21641753\n L186.5,25.683 L206.966418,5.21641753 C208.296641,3.88619416 210.453359,3.88619416\n 211.783582,5.21641753 Z\"\n fill-rule=\"nonzero\"\n transform=\"translate(20.000000, 77.000000)\"\n ></path>\n </svg>\n</template>\n\n<script lang=\"ts\">\n export default {};\n</script>\n"],"names":["const"],"mappings":";;;;AAEAA
|
|
1
|
+
{"version":3,"file":"base-result-fallback-image.vue.js","sources":["../../../../src/components/result/base-result-fallback-image.vue"],"sourcesContent":["<template functional>\n <svg\n :class=\"['x-picture__image x-picture__image--fallback'].concat(data.staticClass, data.class)\"\n version=\"1.1\"\n viewBox=\"0 0 256 371\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n >\n <rect height=\"371\" width=\"256\" x=\"0\" y=\"0\"></rect>\n <path\n d=\"M142.40625,0 L142.40625,13.5625 L20.34375,13.5625 C16.5983809,13.5625 13.5625,16.5983809\n 13.5625,20.34375 L13.5625,20.34375 L13.5625,159.969687 L76.628125,96.971875\n C79.2732363,94.3424453 83.5445762,94.3424453 86.1896875,96.971875 L86.1896875,96.971875\n L128.84375,139.625937 L164.784375,103.753125 C167.429486,101.123695 171.700826,101.123695\n 174.345938,103.753125 L174.345938,103.753125 L203.4375,132.844687 L203.4375,81.375 L217,81.375\n L217,196.65625 C217,207.891934 207.891934,217 196.65625,217 L196.65625,217 L20.34375,217\n C9.10806641,217 0,207.891934 0,196.65625 L0,196.65625 L0,20.34375 C0,9.10806641 9.10806641,0\n 20.34375,0 L20.34375,0 L142.40625,0 Z M62,37 C73.045625,37 82,45.954375 82,57 C82,68.045625\n 73.045625,77 62,77 C50.954375,77 42,68.045625 42,57 C42,45.954375 50.954375,37 62,37 Z\n M211.783582,5.21641753 C213.066298,6.49913292 213.112109,8.55036201 211.921016,9.88797123\n L211.783582,10.0335825 L191.317,30.5 L211.783582,50.9664175 C213.113806,52.2966409\n 213.113806,54.4533591 211.783582,55.7835825 C210.500867,57.0662979 208.449638,57.1121091\n 207.112029,55.9210163 L206.966418,55.7835825 L186.5,35.317 L166.033582,55.7835825\n C164.703359,57.1138058 162.546641,57.1138058 161.216418,55.7835825 C159.933702,54.5008671\n 159.887891,52.449638 161.078984,51.1120288 L161.216418,50.9664175 L181.683,30.5\n L161.216418,10.0335825 C159.886194,8.7033591 159.886194,6.5466409 161.216418,5.21641753\n C162.499133,3.93370214 164.550362,3.88789087 165.887971,5.07898373 L166.033582,5.21641753\n L186.5,25.683 L206.966418,5.21641753 C208.296641,3.88619416 210.453359,3.88619416\n 211.783582,5.21641753 Z\"\n fill-rule=\"nonzero\"\n transform=\"translate(20.000000, 77.000000)\"\n ></path>\n </svg>\n</template>\n\n<script lang=\"ts\">\n export default {};\n</script>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6,7 +6,7 @@ import script from './base-result-image.vue_rollup-plugin-vue=script.js';
|
|
|
6
6
|
var __vue_script__ = script;
|
|
7
7
|
|
|
8
8
|
/* template */
|
|
9
|
-
var __vue_render__ = function() {
|
|
9
|
+
var __vue_render__ = function () {
|
|
10
10
|
var _vm = this;
|
|
11
11
|
var _h = _vm.$createElement;
|
|
12
12
|
var _c = _vm._self._c || _h;
|
|
@@ -15,7 +15,7 @@ var __vue_render__ = function() {
|
|
|
15
15
|
{
|
|
16
16
|
ref: "image",
|
|
17
17
|
staticClass: "x-picture x-result-picture",
|
|
18
|
-
attrs: { "data-test": "result-picture" }
|
|
18
|
+
attrs: { "data-test": "result-picture" },
|
|
19
19
|
},
|
|
20
20
|
[
|
|
21
21
|
!_vm.hasImageLoaded && !_vm.hasAllImagesFailed
|
|
@@ -23,7 +23,7 @@ var __vue_render__ = function() {
|
|
|
23
23
|
_vm.animation,
|
|
24
24
|
{
|
|
25
25
|
tag: "component",
|
|
26
|
-
staticClass: "x-picture__image x-picture__image--placeholder"
|
|
26
|
+
staticClass: "x-picture__image x-picture__image--placeholder",
|
|
27
27
|
},
|
|
28
28
|
[_vm._t("placeholder")],
|
|
29
29
|
2
|
|
@@ -41,16 +41,15 @@ var __vue_render__ = function() {
|
|
|
41
41
|
name: "show",
|
|
42
42
|
rawName: "v-show",
|
|
43
43
|
value: _vm.hasImageLoaded,
|
|
44
|
-
expression: "hasImageLoaded"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
44
|
+
expression: "hasImageLoaded",
|
|
45
|
+
} ],
|
|
47
46
|
staticClass: "x-picture__image x-result-picture-image",
|
|
48
47
|
attrs: {
|
|
49
48
|
alt: _vm.result.name,
|
|
50
49
|
src: _vm.imageSrc,
|
|
51
|
-
"data-test": "result-picture-image"
|
|
50
|
+
"data-test": "result-picture-image",
|
|
52
51
|
},
|
|
53
|
-
on: { error: _vm.flagImageAsFailed, load: _vm.flagImageLoaded }
|
|
52
|
+
on: { error: _vm.flagImageAsFailed, load: _vm.flagImageLoaded },
|
|
54
53
|
})
|
|
55
54
|
: _vm.hasAllImagesFailed
|
|
56
55
|
? _c(
|
|
@@ -59,11 +58,9 @@ var __vue_render__ = function() {
|
|
|
59
58
|
[_vm._t("fallback")],
|
|
60
59
|
2
|
|
61
60
|
)
|
|
62
|
-
: _vm._e()
|
|
63
|
-
],
|
|
61
|
+
: _vm._e() ],
|
|
64
62
|
1
|
|
65
|
-
)
|
|
66
|
-
],
|
|
63
|
+
) ],
|
|
67
64
|
1
|
|
68
65
|
)
|
|
69
66
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-image.vue.js","sources":["../../../../src/components/result/base-result-image.vue"],"sourcesContent":["<template>\n <picture ref=\"image\" class=\"x-picture x-result-picture\" data-test=\"result-picture\">\n <component\n :is=\"animation\"\n v-if=\"!hasImageLoaded && !hasAllImagesFailed\"\n class=\"x-picture__image x-picture__image--placeholder\"\n >\n <!-- eslint-disable-next-line max-len -->\n <!-- @slot (Required) Loading image content. It will be rendered while the real image is not loaded -->\n <slot name=\"placeholder\" />\n </component>\n <component :is=\"animation\">\n <img\n v-if=\"imageSrc\"\n v-show=\"hasImageLoaded\"\n @error=\"flagImageAsFailed\"\n @load=\"flagImageLoaded\"\n :alt=\"result.name\"\n :src=\"imageSrc\"\n class=\"x-picture__image x-result-picture-image\"\n data-test=\"result-picture-image\"\n />\n <NoElement v-else-if=\"hasAllImagesFailed\" class=\"x-picture__image x-picture__image--fallback\">\n <!--\n Vue styleguidist doesn't generate slot docs for v-else and v-else-if conditions\n due to a bug https://github.com/vuejs/vue/pull/10286.\n TODO - Bump styleguidist version when the fix branch is merged and a new version released.\n -->\n <!-- eslint-disable-next-line max-len -->\n <!-- @slot (Required) Fallback image content. It will be rendered when all the images failed -->\n <slot name=\"fallback\" />\n </NoElement>\n </component>\n </picture>\n</template>\n\n<script lang=\"ts\">\n import { Result } from '@empathyco/x-types';\n import Vue from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { NoElement } from '../no-element';\n\n /**\n * Component to be reused that renders an `<img>`.\n *\n * @public\n */\n @Component({\n components: {\n NoElement\n }\n })\n export default class BaseResultImage extends Vue {\n /**\n * Animation to use when switching between the placeholder, the loaded image, or the failed\n * image fallback.\n *\n * @public\n */\n @Prop({ default: () => NoElement })\n public animation!: string | typeof Vue;\n /**\n * The image has entered in the port view.\n *\n * @public\n */\n protected hasEnteredView = false;\n /**\n * An array of images that failed to load.\n *\n * @public\n */\n protected failedImages: string[] = [];\n /**\n * HTMLElement that references the picture element.\n *\n * @public\n */\n public $refs!: { image: HTMLElement };\n /**\n * Indicates if the result image is loaded.\n *\n * @public\n */\n protected hasImageLoaded = false;\n\n /**\n * (Required) The {@link @empathyco/x-types#Result | result} information.\n *\n * @public\n */\n @Prop({ required: true })\n protected result!: Result;\n\n /**\n * Checks if intersection observer is available in window object.\n *\n * @returns Boolean.\n *\n * @internal\n */\n protected get isIntersectionObserverAvailable(): boolean {\n return 'IntersectionObserver' in window;\n }\n\n mounted(): void {\n this.hasEnteredView = !this.isIntersectionObserverAvailable;\n if (this.isIntersectionObserverAvailable) {\n this.createObserver();\n }\n }\n\n /**\n * Gets the src from the result image.\n *\n * @returns The result image src.\n *\n * @internal\n */\n protected get imageSrc(): string {\n if (this.hasEnteredView && this.result.images.length > 0) {\n const image = this.result.images.find(image => !this.failedImages.includes(image));\n return image ?? '';\n }\n return '';\n }\n\n /**\n * Creates an intersection observer in the image element.\n *\n * @internal\n */\n protected createObserver(): void {\n const image = this.$refs.image as Element;\n const observer = new IntersectionObserver(this.observerHandler.bind(this));\n observer.observe(image);\n }\n\n /**\n * Observe all the observables items and detects when a element is intersected.\n *\n * @param entries - The observed items.\n * @param observer - The intersection observer object.\n *\n * @internal\n */\n protected observerHandler(\n entries: IntersectionObserverEntry[],\n observer: IntersectionObserver\n ): void {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n this.hasEnteredView = true;\n observer.disconnect();\n }\n });\n }\n\n /**\n * Sets an image as failed.\n *\n * @internal\n */\n protected flagImageAsFailed(): void {\n this.failedImages.push(this.imageSrc);\n }\n\n /**\n * Checks if all the images failed.\n *\n * @returns Boolean.\n *\n * @internal\n */\n protected get hasAllImagesFailed(): boolean {\n return this.failedImages.length === this.result.images.length;\n }\n\n /**\n * Marks an image as loaded.\n *\n * @internal\n */\n protected flagImageLoaded(): void {\n this.hasImageLoaded = true;\n }\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-result-picture {\n min-width: 1px;\n min-height: 1px;\n position: relative;\n\n &__image {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n# Examples\n\n## Basic example\n\nThis component is for the result image. It may be part of the search result page, recommendations or\nother section which needs to include results.\n\nThe result prop is required. It will render a `<img/>` with the result image:\n\n```vue\n<BaseResultImage :result=\"result\" />\n```\n\n## Customizing slots content\n\nFallback and placeholder contents can be customized.\n\nThe fallback slot allows you to replace the content of the fallback image.\n\nThe other slot is called `placeholder`, and allows you to set the image that its going to be\ndisplayed while the real one is loaded.\n\n```vue\n<BaseResultImage :result=\"result\">\n <template #placeholder>\n <img class=\"x-result-picture-placeholder\" src=\"./placeholder-image.svg\"/>\n </template>\n <template #fallback>\n <img class=\"x-result-picture-fallback\" src=\"./fallback-image.svg\"/>\n </template>\n</BaseResultImage>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;;AAEAA
|
|
1
|
+
{"version":3,"file":"base-result-image.vue.js","sources":["../../../../src/components/result/base-result-image.vue"],"sourcesContent":["<template>\n <picture ref=\"image\" class=\"x-picture x-result-picture\" data-test=\"result-picture\">\n <component\n :is=\"animation\"\n v-if=\"!hasImageLoaded && !hasAllImagesFailed\"\n class=\"x-picture__image x-picture__image--placeholder\"\n >\n <!-- eslint-disable-next-line max-len -->\n <!-- @slot (Required) Loading image content. It will be rendered while the real image is not loaded -->\n <slot name=\"placeholder\" />\n </component>\n <component :is=\"animation\">\n <img\n v-if=\"imageSrc\"\n v-show=\"hasImageLoaded\"\n @error=\"flagImageAsFailed\"\n @load=\"flagImageLoaded\"\n :alt=\"result.name\"\n :src=\"imageSrc\"\n class=\"x-picture__image x-result-picture-image\"\n data-test=\"result-picture-image\"\n />\n <NoElement v-else-if=\"hasAllImagesFailed\" class=\"x-picture__image x-picture__image--fallback\">\n <!--\n Vue styleguidist doesn't generate slot docs for v-else and v-else-if conditions\n due to a bug https://github.com/vuejs/vue/pull/10286.\n TODO - Bump styleguidist version when the fix branch is merged and a new version released.\n -->\n <!-- eslint-disable-next-line max-len -->\n <!-- @slot (Required) Fallback image content. It will be rendered when all the images failed -->\n <slot name=\"fallback\" />\n </NoElement>\n </component>\n </picture>\n</template>\n\n<script lang=\"ts\">\n import { Result } from '@empathyco/x-types';\n import Vue from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { NoElement } from '../no-element';\n\n /**\n * Component to be reused that renders an `<img>`.\n *\n * @public\n */\n @Component({\n components: {\n NoElement\n }\n })\n export default class BaseResultImage extends Vue {\n /**\n * Animation to use when switching between the placeholder, the loaded image, or the failed\n * image fallback.\n *\n * @public\n */\n @Prop({ default: () => NoElement })\n public animation!: string | typeof Vue;\n /**\n * The image has entered in the port view.\n *\n * @public\n */\n protected hasEnteredView = false;\n /**\n * An array of images that failed to load.\n *\n * @public\n */\n protected failedImages: string[] = [];\n /**\n * HTMLElement that references the picture element.\n *\n * @public\n */\n public $refs!: { image: HTMLElement };\n /**\n * Indicates if the result image is loaded.\n *\n * @public\n */\n protected hasImageLoaded = false;\n\n /**\n * (Required) The {@link @empathyco/x-types#Result | result} information.\n *\n * @public\n */\n @Prop({ required: true })\n protected result!: Result;\n\n /**\n * Checks if intersection observer is available in window object.\n *\n * @returns Boolean.\n *\n * @internal\n */\n protected get isIntersectionObserverAvailable(): boolean {\n return 'IntersectionObserver' in window;\n }\n\n mounted(): void {\n this.hasEnteredView = !this.isIntersectionObserverAvailable;\n if (this.isIntersectionObserverAvailable) {\n this.createObserver();\n }\n }\n\n /**\n * Gets the src from the result image.\n *\n * @returns The result image src.\n *\n * @internal\n */\n protected get imageSrc(): string {\n if (this.hasEnteredView && this.result.images.length > 0) {\n const image = this.result.images.find(image => !this.failedImages.includes(image));\n return image ?? '';\n }\n return '';\n }\n\n /**\n * Creates an intersection observer in the image element.\n *\n * @internal\n */\n protected createObserver(): void {\n const image = this.$refs.image as Element;\n const observer = new IntersectionObserver(this.observerHandler.bind(this));\n observer.observe(image);\n }\n\n /**\n * Observe all the observables items and detects when a element is intersected.\n *\n * @param entries - The observed items.\n * @param observer - The intersection observer object.\n *\n * @internal\n */\n protected observerHandler(\n entries: IntersectionObserverEntry[],\n observer: IntersectionObserver\n ): void {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n this.hasEnteredView = true;\n observer.disconnect();\n }\n });\n }\n\n /**\n * Sets an image as failed.\n *\n * @internal\n */\n protected flagImageAsFailed(): void {\n this.failedImages.push(this.imageSrc);\n }\n\n /**\n * Checks if all the images failed.\n *\n * @returns Boolean.\n *\n * @internal\n */\n protected get hasAllImagesFailed(): boolean {\n return this.failedImages.length === this.result.images.length;\n }\n\n /**\n * Marks an image as loaded.\n *\n * @internal\n */\n protected flagImageLoaded(): void {\n this.hasImageLoaded = true;\n }\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-result-picture {\n min-width: 1px;\n min-height: 1px;\n position: relative;\n\n &__image {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n# Examples\n\n## Basic example\n\nThis component is for the result image. It may be part of the search result page, recommendations or\nother section which needs to include results.\n\nThe result prop is required. It will render a `<img/>` with the result image:\n\n```vue\n<BaseResultImage :result=\"result\" />\n```\n\n## Customizing slots content\n\nFallback and placeholder contents can be customized.\n\nThe fallback slot allows you to replace the content of the fallback image.\n\nThe other slot is called `placeholder`, and allows you to set the image that its going to be\ndisplayed while the real one is loaded.\n\n```vue\n<BaseResultImage :result=\"result\">\n <template #placeholder>\n <img class=\"x-result-picture-placeholder\" src=\"./placeholder-image.svg\"/>\n </template>\n <template #fallback>\n <img class=\"x-result-picture-fallback\" src=\"./fallback-image.svg\"/>\n </template>\n</BaseResultImage>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6,7 +6,7 @@ import script from './base-result-link.vue_rollup-plugin-vue=script.js';
|
|
|
6
6
|
var __vue_script__ = script;
|
|
7
7
|
|
|
8
8
|
/* template */
|
|
9
|
-
var __vue_render__ = function() {
|
|
9
|
+
var __vue_render__ = function () {
|
|
10
10
|
var _vm = this;
|
|
11
11
|
var _h = _vm.$createElement;
|
|
12
12
|
var _c = _vm._self._c || _h;
|
|
@@ -17,16 +17,16 @@ var __vue_render__ = function() {
|
|
|
17
17
|
attrs: { href: _vm.result.url, "data-test": "result-link" },
|
|
18
18
|
on: {
|
|
19
19
|
click: _vm.emitUserClickedAResult,
|
|
20
|
-
mouseup: function($event) {
|
|
20
|
+
mouseup: function ($event) {
|
|
21
21
|
if ("button" in $event && $event.button !== 1) {
|
|
22
22
|
return null
|
|
23
23
|
}
|
|
24
24
|
return _vm.emitUserClickedAResult.apply(null, arguments)
|
|
25
25
|
},
|
|
26
|
-
contextmenu: function($event) {
|
|
26
|
+
contextmenu: function ($event) {
|
|
27
27
|
return _vm.emitUserRightClickedAResult.apply(null, arguments)
|
|
28
|
-
}
|
|
29
|
-
}
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
30
|
},
|
|
31
31
|
[_vm._t("default", null, { result: _vm.result })],
|
|
32
32
|
2
|
|
@@ -5,7 +5,7 @@ import script from './base-result-placeholder-image.vue_rollup-plugin-vue=script
|
|
|
5
5
|
var __vue_script__ = script;
|
|
6
6
|
|
|
7
7
|
/* template */
|
|
8
|
-
var __vue_render__ = function(_h, _vm) {
|
|
8
|
+
var __vue_render__ = function (_h, _vm) {
|
|
9
9
|
var _c = _vm._c;
|
|
10
10
|
return _c(
|
|
11
11
|
"svg",
|
|
@@ -18,20 +18,18 @@ var __vue_render__ = function(_h, _vm) {
|
|
|
18
18
|
version: "1.1",
|
|
19
19
|
viewBox: "0 0 256 371",
|
|
20
20
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21
|
-
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
22
|
-
}
|
|
21
|
+
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
22
|
+
},
|
|
23
23
|
},
|
|
24
24
|
[
|
|
25
25
|
_c("rect", { attrs: { height: "371", width: "256", x: "0", y: "0" } }),
|
|
26
26
|
_vm._v(" "),
|
|
27
27
|
_c("path", {
|
|
28
28
|
attrs: {
|
|
29
|
-
d:
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
})
|
|
34
|
-
]
|
|
29
|
+
d: "M162.40625,77 L162.40625,90.5625 L40.34375,90.5625 C36.5983809,90.5625 33.5625,93.5983809\n 33.5625,97.34375 L33.5625,97.34375 L33.5625,236.969687 L96.628125,173.971875\n C99.2732363,171.342445 103.544576,171.342445 106.189687,173.971875 L106.189687,173.971875\n L148.84375,216.625937 L184.784375,180.753125 C187.429486,178.123695 191.700826,178.123695\n 194.345938,180.753125 L194.345938,180.753125 L223.4375,209.844687 L223.4375,158.375\n L237,158.375 L237,273.65625 C237,284.891934 227.891934,294 216.65625,294 L216.65625,294\n L40.34375,294 C29.1080664,294 20,284.891934 20,273.65625 L20,273.65625 L20,97.34375\n C20,86.1080664 29.1080664,77 40.34375,77 L40.34375,77 L162.40625,77 Z M82,114\n C93.045625,114 102,122.954375 102,134 C102,145.045625 93.045625,154 82,154 C70.954375,154\n 62,145.045625 62,134 C62,122.954375 70.954375,114 82,114 Z M175.444623,100.396089\n L183.687219,108.661381 C184.620423,109.602859 184.620423,111.123422 183.680918,112.077314\n C182.737148,113.018189 181.212972,113.018189 180.26465,112.073775 L180.26465,112.073775\n L177.727,109.527 L177.745354,109.644062 C179.677469,121.418749 189.812727,130.462066\n 202.047328,130.661575 L202.047328,130.661575 L202.460517,130.664942 C209.153157,130.664942\n 215.436777,128.056193 220.174617,123.31173 C221.12269,122.361456 222.670209,122.361776\n 223.58594,123.311542 C224.527282,124.25405 224.527282,125.78338 223.586285,126.726562\n C217.94114,132.382374 210.431948,135.5 202.451652,135.5 C187.460762,135.5 174.984785,124.35392\n 172.907406,109.825508 L172.907406,109.825508 L172.902,109.787 L170.627234,112.068625\n C170.216136,112.485215 169.674234,112.730073 169.104127,112.774878 L169.104127,112.774878\n L168.913187,112.782365 C168.276718,112.782365 167.658303,112.532522 167.207809,112.075026\n C166.263587,111.129629 166.263587,109.597657 167.206898,108.658263 L167.206898,108.658263\n L175.444623,100.396089 Z M202.54801,75.5 C217.536718,75.5 230.012345,86.6439604\n 232.093604,101.171817 L232.093604,101.171817 L232.098,101.21 L234.379146,98.9226859\n C235.281116,98.0234824 236.717815,97.9826095 237.660635,98.8020572 L237.660635,98.8020572\n L237.791853,98.9249739 C238.734405,99.8686992 238.736601,101.398026 237.795291,102.341522\n L237.795291,102.341522 L229.557794,110.600807 L221.31437,102.338232 C220.381166,101.396755\n 220.381166,99.876192 221.320671,98.9222996 C222.265013,97.9808537 223.794144,97.9808537\n 224.736486,98.9253846 L224.736486,98.9253846 L227.277,101.473 L227.259636,101.355612\n C225.324141,89.5799272 215.187742,80.5375269 202.954224,80.3380384 L202.954224,80.3380384\n L202.541072,80.3346719 C195.847619,80.3346719 189.562063,82.9439869 184.830962,87.683869\n C183.887384,88.6368031 182.34531,88.6368031 181.414841,87.6918832 C180.466611,86.7485972\n 180.466611,85.2139736 181.411064,84.2734376 C187.057027,78.6168059 194.564245,75.5\n 202.54801,75.5 Z",
|
|
30
|
+
"fill-rule": "nonzero",
|
|
31
|
+
},
|
|
32
|
+
}) ]
|
|
35
33
|
)
|
|
36
34
|
};
|
|
37
35
|
var __vue_staticRenderFns__ = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-placeholder-image.vue.js","sources":["../../../../src/components/result/base-result-placeholder-image.vue"],"sourcesContent":["<template functional>\n <svg\n :class=\"['x-picture__image x-picture__image--placeholder'].concat(data.staticClass, data.class)\"\n version=\"1.1\"\n viewBox=\"0 0 256 371\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n >\n <rect height=\"371\" width=\"256\" x=\"0\" y=\"0\"></rect>\n <path\n d=\"M162.40625,77 L162.40625,90.5625 L40.34375,90.5625 C36.5983809,90.5625 33.5625,93.5983809\n 33.5625,97.34375 L33.5625,97.34375 L33.5625,236.969687 L96.628125,173.971875\n C99.2732363,171.342445 103.544576,171.342445 106.189687,173.971875 L106.189687,173.971875\n L148.84375,216.625937 L184.784375,180.753125 C187.429486,178.123695 191.700826,178.123695\n 194.345938,180.753125 L194.345938,180.753125 L223.4375,209.844687 L223.4375,158.375\n L237,158.375 L237,273.65625 C237,284.891934 227.891934,294 216.65625,294 L216.65625,294\n L40.34375,294 C29.1080664,294 20,284.891934 20,273.65625 L20,273.65625 L20,97.34375\n C20,86.1080664 29.1080664,77 40.34375,77 L40.34375,77 L162.40625,77 Z M82,114\n C93.045625,114 102,122.954375 102,134 C102,145.045625 93.045625,154 82,154 C70.954375,154\n 62,145.045625 62,134 C62,122.954375 70.954375,114 82,114 Z M175.444623,100.396089\n L183.687219,108.661381 C184.620423,109.602859 184.620423,111.123422 183.680918,112.077314\n C182.737148,113.018189 181.212972,113.018189 180.26465,112.073775 L180.26465,112.073775\n L177.727,109.527 L177.745354,109.644062 C179.677469,121.418749 189.812727,130.462066\n 202.047328,130.661575 L202.047328,130.661575 L202.460517,130.664942 C209.153157,130.664942\n 215.436777,128.056193 220.174617,123.31173 C221.12269,122.361456 222.670209,122.361776\n 223.58594,123.311542 C224.527282,124.25405 224.527282,125.78338 223.586285,126.726562\n C217.94114,132.382374 210.431948,135.5 202.451652,135.5 C187.460762,135.5 174.984785,124.35392\n 172.907406,109.825508 L172.907406,109.825508 L172.902,109.787 L170.627234,112.068625\n C170.216136,112.485215 169.674234,112.730073 169.104127,112.774878 L169.104127,112.774878\n L168.913187,112.782365 C168.276718,112.782365 167.658303,112.532522 167.207809,112.075026\n C166.263587,111.129629 166.263587,109.597657 167.206898,108.658263 L167.206898,108.658263\n L175.444623,100.396089 Z M202.54801,75.5 C217.536718,75.5 230.012345,86.6439604\n 232.093604,101.171817 L232.093604,101.171817 L232.098,101.21 L234.379146,98.9226859\n C235.281116,98.0234824 236.717815,97.9826095 237.660635,98.8020572 L237.660635,98.8020572\n L237.791853,98.9249739 C238.734405,99.8686992 238.736601,101.398026 237.795291,102.341522\n L237.795291,102.341522 L229.557794,110.600807 L221.31437,102.338232 C220.381166,101.396755\n 220.381166,99.876192 221.320671,98.9222996 C222.265013,97.9808537 223.794144,97.9808537\n 224.736486,98.9253846 L224.736486,98.9253846 L227.277,101.473 L227.259636,101.355612\n C225.324141,89.5799272 215.187742,80.5375269 202.954224,80.3380384 L202.954224,80.3380384\n L202.541072,80.3346719 C195.847619,80.3346719 189.562063,82.9439869 184.830962,87.683869\n C183.887384,88.6368031 182.34531,88.6368031 181.414841,87.6918832 C180.466611,86.7485972\n 180.466611,85.2139736 181.411064,84.2734376 C187.057027,78.6168059 194.564245,75.5\n 202.54801,75.5 Z\"\n fill-rule=\"nonzero\"\n ></path>\n </svg>\n</template>\n\n<script lang=\"ts\">\n export default {};\n</script>\n"],"names":["const"],"mappings":";;;;AAEAA
|
|
1
|
+
{"version":3,"file":"base-result-placeholder-image.vue.js","sources":["../../../../src/components/result/base-result-placeholder-image.vue"],"sourcesContent":["<template functional>\n <svg\n :class=\"['x-picture__image x-picture__image--placeholder'].concat(data.staticClass, data.class)\"\n version=\"1.1\"\n viewBox=\"0 0 256 371\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n >\n <rect height=\"371\" width=\"256\" x=\"0\" y=\"0\"></rect>\n <path\n d=\"M162.40625,77 L162.40625,90.5625 L40.34375,90.5625 C36.5983809,90.5625 33.5625,93.5983809\n 33.5625,97.34375 L33.5625,97.34375 L33.5625,236.969687 L96.628125,173.971875\n C99.2732363,171.342445 103.544576,171.342445 106.189687,173.971875 L106.189687,173.971875\n L148.84375,216.625937 L184.784375,180.753125 C187.429486,178.123695 191.700826,178.123695\n 194.345938,180.753125 L194.345938,180.753125 L223.4375,209.844687 L223.4375,158.375\n L237,158.375 L237,273.65625 C237,284.891934 227.891934,294 216.65625,294 L216.65625,294\n L40.34375,294 C29.1080664,294 20,284.891934 20,273.65625 L20,273.65625 L20,97.34375\n C20,86.1080664 29.1080664,77 40.34375,77 L40.34375,77 L162.40625,77 Z M82,114\n C93.045625,114 102,122.954375 102,134 C102,145.045625 93.045625,154 82,154 C70.954375,154\n 62,145.045625 62,134 C62,122.954375 70.954375,114 82,114 Z M175.444623,100.396089\n L183.687219,108.661381 C184.620423,109.602859 184.620423,111.123422 183.680918,112.077314\n C182.737148,113.018189 181.212972,113.018189 180.26465,112.073775 L180.26465,112.073775\n L177.727,109.527 L177.745354,109.644062 C179.677469,121.418749 189.812727,130.462066\n 202.047328,130.661575 L202.047328,130.661575 L202.460517,130.664942 C209.153157,130.664942\n 215.436777,128.056193 220.174617,123.31173 C221.12269,122.361456 222.670209,122.361776\n 223.58594,123.311542 C224.527282,124.25405 224.527282,125.78338 223.586285,126.726562\n C217.94114,132.382374 210.431948,135.5 202.451652,135.5 C187.460762,135.5 174.984785,124.35392\n 172.907406,109.825508 L172.907406,109.825508 L172.902,109.787 L170.627234,112.068625\n C170.216136,112.485215 169.674234,112.730073 169.104127,112.774878 L169.104127,112.774878\n L168.913187,112.782365 C168.276718,112.782365 167.658303,112.532522 167.207809,112.075026\n C166.263587,111.129629 166.263587,109.597657 167.206898,108.658263 L167.206898,108.658263\n L175.444623,100.396089 Z M202.54801,75.5 C217.536718,75.5 230.012345,86.6439604\n 232.093604,101.171817 L232.093604,101.171817 L232.098,101.21 L234.379146,98.9226859\n C235.281116,98.0234824 236.717815,97.9826095 237.660635,98.8020572 L237.660635,98.8020572\n L237.791853,98.9249739 C238.734405,99.8686992 238.736601,101.398026 237.795291,102.341522\n L237.795291,102.341522 L229.557794,110.600807 L221.31437,102.338232 C220.381166,101.396755\n 220.381166,99.876192 221.320671,98.9222996 C222.265013,97.9808537 223.794144,97.9808537\n 224.736486,98.9253846 L224.736486,98.9253846 L227.277,101.473 L227.259636,101.355612\n C225.324141,89.5799272 215.187742,80.5375269 202.954224,80.3380384 L202.954224,80.3380384\n L202.541072,80.3346719 C195.847619,80.3346719 189.562063,82.9439869 184.830962,87.683869\n C183.887384,88.6368031 182.34531,88.6368031 181.414841,87.6918832 C180.466611,86.7485972\n 180.466611,85.2139736 181.411064,84.2734376 C187.057027,78.6168059 194.564245,75.5\n 202.54801,75.5 Z\"\n fill-rule=\"nonzero\"\n ></path>\n </svg>\n</template>\n\n<script lang=\"ts\">\n export default {};\n</script>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -5,7 +5,7 @@ import script from './base-result-previous-price.vue_rollup-plugin-vue=script.js
|
|
|
5
5
|
var __vue_script__ = script;
|
|
6
6
|
|
|
7
7
|
/* template */
|
|
8
|
-
var __vue_render__ = function() {
|
|
8
|
+
var __vue_render__ = function () {
|
|
9
9
|
var _vm = this;
|
|
10
10
|
var _h = _vm.$createElement;
|
|
11
11
|
var _c = _vm._self._c || _h;
|
|
@@ -14,24 +14,22 @@ var __vue_render__ = function() {
|
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
16
16
|
staticClass: "x-result-previous-price",
|
|
17
|
-
attrs: { "data-test": "result-previous-price" }
|
|
17
|
+
attrs: { "data-test": "result-previous-price" },
|
|
18
18
|
},
|
|
19
19
|
[
|
|
20
20
|
_vm._t(
|
|
21
21
|
"default",
|
|
22
|
-
function() {
|
|
22
|
+
function () {
|
|
23
23
|
return [
|
|
24
24
|
_c("BaseCurrency", {
|
|
25
25
|
attrs: {
|
|
26
26
|
value: _vm.result.price.originalValue,
|
|
27
|
-
format: _vm.format
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
]
|
|
27
|
+
format: _vm.format,
|
|
28
|
+
},
|
|
29
|
+
}) ]
|
|
31
30
|
},
|
|
32
31
|
{ result: _vm.result }
|
|
33
|
-
)
|
|
34
|
-
],
|
|
32
|
+
) ],
|
|
35
33
|
2
|
|
36
34
|
)
|
|
37
35
|
: _vm._e()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-result-previous-price.vue.js","sources":["../../../../src/components/result/base-result-previous-price.vue"],"sourcesContent":["<template>\n <div\n v-if=\"result.price.hasDiscount\"\n class=\"x-result-previous-price\"\n data-test=\"result-previous-price\"\n >\n <!--\n @slot Base currency item\n @binding {result} result - Result data\n -->\n <slot :result=\"result\">\n <BaseCurrency :value=\"result.price.originalValue\" :format=\"format\" />\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { Result } from '@empathyco/x-types';\n import { Component, Prop } from 'vue-property-decorator';\n import Vue from 'vue';\n import BaseCurrency from '../currency/base-currency.vue';\n\n /**\n * Component that renders the {@link @empathyco/x-types#Result | result} previous price.\n *\n * @public\n */\n @Component({\n components: { BaseCurrency }\n })\n export default class BaseResultPreviousPrice extends Vue {\n /**\n * (Required) The {@link @empathyco/x-types#Result | result} information.\n *\n * @public\n */\n @Prop({ required: true })\n protected result!: Result;\n\n /**\n * Format or mask to be defined as string.\n * - Use 'i' to define integer numbers.\n * - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the\n * doesn't include decimals, it is filled with zeros until reach the length defined with 'd's.\n * - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group.\n * - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more\n * than one character.\n * - Set whatever you need around the integers and decimals marks.\n * - Default mask: 'i.iii,dd' which returns '1.345,67'.\n *\n * @remarks The number of 'd', which is the maximum decimal length, MUST match with the length\n * of decimals provided from the adapter. Otherwise, when the component truncate the decimal\n * part, delete significant digits.\n *\n * @public\n */\n @Prop({ default: 'i.iii,dd' })\n protected format!: string;\n }\n</script>\n\n<docs lang=\"mdx\">\n# Examples\n\n## Basic example\n\nThis component shows the previous price formatted if it has discount. The component has two optional\nprops. `format` to select the currency format to be applied.\n\n```vue\n<BaseResultPreviousPrice :value=\"result\" :format=\"'i.iii,ddd €'\" />\n```\n\n## Overriding default slot\n\n```vue\n<BaseResultPreviousPrice :result=\"result\">\n <span class=\"custom-base-result-previous-price\">{{ result.price.originalValue }}</span>\n</BaseResultPreviousPrice>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA
|
|
1
|
+
{"version":3,"file":"base-result-previous-price.vue.js","sources":["../../../../src/components/result/base-result-previous-price.vue"],"sourcesContent":["<template>\n <div\n v-if=\"result.price.hasDiscount\"\n class=\"x-result-previous-price\"\n data-test=\"result-previous-price\"\n >\n <!--\n @slot Base currency item\n @binding {result} result - Result data\n -->\n <slot :result=\"result\">\n <BaseCurrency :value=\"result.price.originalValue\" :format=\"format\" />\n </slot>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { Result } from '@empathyco/x-types';\n import { Component, Prop } from 'vue-property-decorator';\n import Vue from 'vue';\n import BaseCurrency from '../currency/base-currency.vue';\n\n /**\n * Component that renders the {@link @empathyco/x-types#Result | result} previous price.\n *\n * @public\n */\n @Component({\n components: { BaseCurrency }\n })\n export default class BaseResultPreviousPrice extends Vue {\n /**\n * (Required) The {@link @empathyco/x-types#Result | result} information.\n *\n * @public\n */\n @Prop({ required: true })\n protected result!: Result;\n\n /**\n * Format or mask to be defined as string.\n * - Use 'i' to define integer numbers.\n * - Use 'd' to define decimal numbers. You can define the length of the decimal part. If the\n * doesn't include decimals, it is filled with zeros until reach the length defined with 'd's.\n * - Integer separator must be defined between the 3rd and the 4th integer 'i' of a group.\n * - Decimal separator must be defined between the last 'i' and the first 'd'. It can be more\n * than one character.\n * - Set whatever you need around the integers and decimals marks.\n * - Default mask: 'i.iii,dd' which returns '1.345,67'.\n *\n * @remarks The number of 'd', which is the maximum decimal length, MUST match with the length\n * of decimals provided from the adapter. Otherwise, when the component truncate the decimal\n * part, delete significant digits.\n *\n * @public\n */\n @Prop({ default: 'i.iii,dd' })\n protected format!: string;\n }\n</script>\n\n<docs lang=\"mdx\">\n# Examples\n\n## Basic example\n\nThis component shows the previous price formatted if it has discount. The component has two optional\nprops. `format` to select the currency format to be applied.\n\n```vue\n<BaseResultPreviousPrice :value=\"result\" :format=\"'i.iii,ddd €'\" />\n```\n\n## Overriding default slot\n\n```vue\n<BaseResultPreviousPrice :result=\"result\">\n <span class=\"custom-base-result-previous-price\">{{ result.price.originalValue }}</span>\n</BaseResultPreviousPrice>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -6,7 +6,7 @@ import script from './base-scroll.vue_rollup-plugin-vue=script.js';
|
|
|
6
6
|
var __vue_script__ = script;
|
|
7
7
|
|
|
8
8
|
/* template */
|
|
9
|
-
var __vue_render__ = function() {
|
|
9
|
+
var __vue_render__ = function () {
|
|
10
10
|
var _vm = this;
|
|
11
11
|
var _h = _vm.$createElement;
|
|
12
12
|
var _c = _vm._self._c || _h;
|
|
@@ -15,7 +15,7 @@ var __vue_render__ = function() {
|
|
|
15
15
|
{
|
|
16
16
|
staticClass: "x-scroll x-base-scroll",
|
|
17
17
|
attrs: { "data-test": "base-scroll" },
|
|
18
|
-
on: { scroll: _vm.throttledStoreScrollData }
|
|
18
|
+
on: { scroll: _vm.throttledStoreScrollData },
|
|
19
19
|
},
|
|
20
20
|
[_vm._t("default")],
|
|
21
21
|
2
|
|
@@ -6,7 +6,7 @@ import script from './sliding-panel.vue_rollup-plugin-vue=script.js';
|
|
|
6
6
|
var __vue_script__ = script;
|
|
7
7
|
|
|
8
8
|
/* template */
|
|
9
|
-
var __vue_render__ = function() {
|
|
9
|
+
var __vue_render__ = function () {
|
|
10
10
|
var _vm = this;
|
|
11
11
|
var _h = _vm.$createElement;
|
|
12
12
|
var _c = _vm._self._c || _h;
|
|
@@ -16,7 +16,7 @@ var __vue_render__ = function() {
|
|
|
16
16
|
{
|
|
17
17
|
staticClass: "x-sliding-panel",
|
|
18
18
|
class: _vm.cssClasses,
|
|
19
|
-
attrs: { "data-test": "sliding-panel" }
|
|
19
|
+
attrs: { "data-test": "sliding-panel" },
|
|
20
20
|
},
|
|
21
21
|
[
|
|
22
22
|
_vm.showButtons
|
|
@@ -26,13 +26,12 @@ var __vue_render__ = function() {
|
|
|
26
26
|
staticClass:
|
|
27
27
|
"x-sliding-panel__button x-sliding-panel__button-left x-button x-button--round",
|
|
28
28
|
attrs: { "data-test": "sliding-panel-left-button" },
|
|
29
|
-
on: { click: _vm.scrollLeft }
|
|
29
|
+
on: { click: _vm.scrollLeft },
|
|
30
30
|
},
|
|
31
31
|
[
|
|
32
|
-
_vm._t("sliding-panel-left-button", function() {
|
|
32
|
+
_vm._t("sliding-panel-left-button", function () {
|
|
33
33
|
return [_vm._v("ᐸ")]
|
|
34
|
-
})
|
|
35
|
-
],
|
|
34
|
+
}) ],
|
|
36
35
|
2
|
|
37
36
|
)
|
|
38
37
|
: _vm._e(),
|
|
@@ -46,8 +45,8 @@ var __vue_render__ = function() {
|
|
|
46
45
|
on: {
|
|
47
46
|
scroll: _vm.debouncedUpdateScrollPosition,
|
|
48
47
|
transitionend: _vm.debouncedUpdateScrollPosition,
|
|
49
|
-
animationend: _vm.debouncedUpdateScrollPosition
|
|
50
|
-
}
|
|
48
|
+
animationend: _vm.debouncedUpdateScrollPosition,
|
|
49
|
+
},
|
|
51
50
|
},
|
|
52
51
|
[_vm._t("default")],
|
|
53
52
|
2
|
|
@@ -60,17 +59,15 @@ var __vue_render__ = function() {
|
|
|
60
59
|
staticClass:
|
|
61
60
|
"x-sliding-panel__button x-sliding-panel__button-right x-button x-button--round",
|
|
62
61
|
attrs: { "data-test": "sliding-panel-right-button" },
|
|
63
|
-
on: { click: _vm.scrollRight }
|
|
62
|
+
on: { click: _vm.scrollRight },
|
|
64
63
|
},
|
|
65
64
|
[
|
|
66
|
-
_vm._t("sliding-panel-right-button", function() {
|
|
65
|
+
_vm._t("sliding-panel-right-button", function () {
|
|
67
66
|
return [_vm._v("ᐳ")]
|
|
68
|
-
})
|
|
69
|
-
],
|
|
67
|
+
}) ],
|
|
70
68
|
2
|
|
71
69
|
)
|
|
72
|
-
: _vm._e()
|
|
73
|
-
]
|
|
70
|
+
: _vm._e() ]
|
|
74
71
|
)
|
|
75
72
|
: _vm._e()
|
|
76
73
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sliding-panel.vue.js","sources":["../../../src/components/sliding-panel.vue"],"sourcesContent":["<template>\n <div v-if=\"$slots.default\" class=\"x-sliding-panel\" :class=\"cssClasses\" data-test=\"sliding-panel\">\n <button\n v-if=\"showButtons\"\n @click=\"scrollLeft\"\n class=\"x-sliding-panel__button x-sliding-panel__button-left x-button x-button--round\"\n data-test=\"sliding-panel-left-button\"\n >\n <!-- @slot Left button content -->\n <slot name=\"sliding-panel-left-button\">ᐸ</slot>\n </button>\n <div\n ref=\"scrollContainer\"\n @scroll=\"debouncedUpdateScrollPosition\"\n @transitionend=\"debouncedUpdateScrollPosition\"\n @animationend=\"debouncedUpdateScrollPosition\"\n class=\"x-list x-list--horizontal x-sliding-panel__scroll\"\n data-test=\"sliding-panel-scroll\"\n >\n <!-- @slot (Required) Sliding panel content -->\n <slot />\n </div>\n <button\n v-if=\"showButtons\"\n @click=\"scrollRight\"\n class=\"x-sliding-panel__button x-sliding-panel__button-right x-button x-button--round\"\n data-test=\"sliding-panel-right-button\"\n >\n <!-- @slot Right button content -->\n <slot name=\"sliding-panel-right-button\">ᐳ</slot>\n </button>\n </div>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { VueCSSClasses } from '../utils/types';\n import { Debounce } from './decorators/debounce.decorators';\n\n /**\n * Horizontal slide panel component. The content that is provided to this component would be\n * navigable horizontally using two navigational buttons.\n *\n * @public\n */\n @Component\n export default class SlidingPanel extends Vue {\n /**\n * Scroll factor that will dictate how much the scroll moves when pressing a navigation button.\n */\n @Prop({ default: 0.7 })\n protected scrollFactor!: number;\n\n /**\n * Would make the navigation buttons visible when they're needed or always hide them.\n */\n @Prop({ default: true })\n protected showButtons!: boolean;\n\n /**\n * MutationObserver that watches for changes inside the wrapping div to update\n * the scroll position.\n */\n protected scrollObserver = new MutationObserver(\n // eslint-disable-next-line @typescript-eslint/unbound-method\n this.restoreAndUpdateScroll\n );\n\n /**\n * Indicates if the scroll is at the start of the sliding panel.\n */\n protected isScrollAtStart = true;\n\n /**\n * Indicates if the scroll is at the end of the sliding panel.\n */\n protected isScrollAtEnd = true;\n\n /**\n * HTMLElement referencing the scroll of the component.\n */\n public $refs!: {\n scrollContainer: HTMLElement;\n };\n\n mounted(): void {\n this.scrollObserver.observe(this.$refs.scrollContainer, {\n attributes: false,\n childList: true,\n subtree: true,\n characterData: false\n });\n // eslint-disable-next-line @typescript-eslint/unbound-method\n window?.addEventListener('resize', this.debouncedUpdateScrollPosition);\n\n this.updateScrollPosition();\n }\n\n beforeDestroy(): void {\n this.scrollObserver.disconnect();\n // eslint-disable-next-line @typescript-eslint/unbound-method\n window?.removeEventListener('resize', this.debouncedUpdateScrollPosition);\n }\n\n /**\n * Resets the scroll and updates the values of the scroll for the buttons to react.\n *\n * @internal\n */\n @Debounce(100, { leading: true })\n restoreAndUpdateScroll(): void {\n this.$refs.scrollContainer.scroll({ left: 0, behavior: 'smooth' });\n this.updateScrollPosition();\n }\n\n /**\n * Updates the values of the scroll positions to show or hide the buttons depending on it.\n *\n * @internal\n */\n protected updateScrollPosition(): void {\n const { scrollLeft, clientWidth, scrollWidth } = this.$refs.scrollContainer;\n this.isScrollAtStart = !scrollLeft;\n /* The 2 px extra is to fix some cases in some resolutions where the scroll + client size is\n * less than the scroll width even when the scroll is at the end */\n this.isScrollAtEnd = scrollLeft + clientWidth + 2 >= scrollWidth;\n }\n\n /**\n * Debounced version of the {@link SlidingPanel.updateScrollPosition | updateScrollPosition}\n * method.\n *\n * @internal\n */\n @Debounce(100, { leading: true })\n debouncedUpdateScrollPosition(): void {\n this.updateScrollPosition();\n }\n\n /**\n * Scrolls the wrapper element to the left.\n *\n * @internal\n */\n protected scrollLeft(): void {\n this.scrollTo(-this.$refs.scrollContainer.clientWidth);\n }\n\n /**\n * Scrolls the wrapper element to the right.\n *\n * @internal\n */\n protected scrollRight(): void {\n this.scrollTo(this.$refs.scrollContainer.clientWidth);\n }\n\n /**\n * Scrolls the wrapper element towards the provided scroll value.\n *\n * @param scrollValue - The value the scroll will go towards.\n *\n * @remarks this function uses the scrollBy from Element and it's not available in all browsers.\n *\n * @internal\n */\n protected scrollTo(scrollValue: number): void {\n this.$refs.scrollContainer.scrollBy({\n left: scrollValue * this.scrollFactor,\n behavior: 'smooth'\n });\n }\n\n /**\n * CSS classes to apply based on the scroll position.\n *\n * @returns The CSS classes to apply.\n *\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-sliding-panel--at-start': this.isScrollAtStart,\n 'x-sliding-panel--at-end': this.isScrollAtEnd\n };\n }\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-sliding-panel {\n align-items: center;\n display: flex;\n flex-flow: row nowrap;\n height: 100%;\n position: relative;\n\n &__button {\n opacity: 0;\n pointer-events: none;\n position: absolute;\n transition: all ease-out 0.2s;\n z-index: 2; /* To overlay the design system gradient with z-index:1 */\n\n &-left {\n left: 0;\n }\n\n &-right {\n right: 0;\n }\n }\n\n &__scroll {\n display: flex;\n flex: 100%;\n flex-flow: row nowrap;\n overflow: auto;\n scrollbar-width: none; // Firefox\n -ms-overflow-style: none; // IE\n\n // Chrome, Edge & Safari\n &::-webkit-scrollbar {\n display: none;\n }\n }\n\n &:not(.x-sliding-panel--show-buttons-on-hover):not(.x-sliding-panel--at-start) {\n .x-sliding-panel__button-left {\n opacity: 1;\n pointer-events: all;\n }\n }\n &:not(.x-sliding-panel--show-buttons-on-hover):not(.x-sliding-panel--at-end) {\n .x-sliding-panel__button-right {\n opacity: 1;\n pointer-events: all;\n }\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n# Examples\n\nThis component allows for any other component or element inside it to be horizontally navigable. It\nalso implements customizable buttons as well as other minor customizations to its general behavior.\nThe component uses the method `scrollBy` from `Element` to function, and it doesn't work properly in\nall browsers. A polyfill for the `scrollBy` would be needed for the component to behave as expected\nin those browsers.\n\n## Default usage\n\nSimplest implementation of the component, just a list-based component inside its slot.\n\n```vue\n<SlidingPanel>\n <RelatedTags />\n</SlidingPanel>\n```\n\n## Behavior customization\n\nEdit how much the scroll travels when navigating with the buttons by changing the `scrollFactor`.\n\n```vue\n<SlidingPanel :scrollFactor=\"1.2\">\n <RelatedTags />\n</SlidingPanel>\n```\n\nHide the navigational buttons completely by setting the `showButtons` prop to `false`. This is\nintended to be used when other scrolling options are available, like in mobile, where you can scroll\njust by swiping.\n\n```vue\n<SlidingPanel :showButtons=\"isMobile\">\n <RelatedTags />\n</SlidingPanel>\n```\n\n## Overriding Button content\n\nBy default the buttons show an arrow depicting the direction the scroll would go to when clicked,\nbut this content can be customized with anything, from characters to SVG and images.\n\n```vue\n<SlidingPanel>\n <template #sliding-panel-left-button>\n Left\n </template>\n <RelatedTags />\n <template #sliding-panel-right-button>\n Right\n </template>\n</SlidingPanel>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;;AAEAA
|
|
1
|
+
{"version":3,"file":"sliding-panel.vue.js","sources":["../../../src/components/sliding-panel.vue"],"sourcesContent":["<template>\n <div v-if=\"$slots.default\" class=\"x-sliding-panel\" :class=\"cssClasses\" data-test=\"sliding-panel\">\n <button\n v-if=\"showButtons\"\n @click=\"scrollLeft\"\n class=\"x-sliding-panel__button x-sliding-panel__button-left x-button x-button--round\"\n data-test=\"sliding-panel-left-button\"\n >\n <!-- @slot Left button content -->\n <slot name=\"sliding-panel-left-button\">ᐸ</slot>\n </button>\n <div\n ref=\"scrollContainer\"\n @scroll=\"debouncedUpdateScrollPosition\"\n @transitionend=\"debouncedUpdateScrollPosition\"\n @animationend=\"debouncedUpdateScrollPosition\"\n class=\"x-list x-list--horizontal x-sliding-panel__scroll\"\n data-test=\"sliding-panel-scroll\"\n >\n <!-- @slot (Required) Sliding panel content -->\n <slot />\n </div>\n <button\n v-if=\"showButtons\"\n @click=\"scrollRight\"\n class=\"x-sliding-panel__button x-sliding-panel__button-right x-button x-button--round\"\n data-test=\"sliding-panel-right-button\"\n >\n <!-- @slot Right button content -->\n <slot name=\"sliding-panel-right-button\">ᐳ</slot>\n </button>\n </div>\n</template>\n\n<script lang=\"ts\">\n import Vue from 'vue';\n import { Component, Prop } from 'vue-property-decorator';\n import { VueCSSClasses } from '../utils/types';\n import { Debounce } from './decorators/debounce.decorators';\n\n /**\n * Horizontal slide panel component. The content that is provided to this component would be\n * navigable horizontally using two navigational buttons.\n *\n * @public\n */\n @Component\n export default class SlidingPanel extends Vue {\n /**\n * Scroll factor that will dictate how much the scroll moves when pressing a navigation button.\n */\n @Prop({ default: 0.7 })\n protected scrollFactor!: number;\n\n /**\n * Would make the navigation buttons visible when they're needed or always hide them.\n */\n @Prop({ default: true })\n protected showButtons!: boolean;\n\n /**\n * MutationObserver that watches for changes inside the wrapping div to update\n * the scroll position.\n */\n protected scrollObserver = new MutationObserver(\n // eslint-disable-next-line @typescript-eslint/unbound-method\n this.restoreAndUpdateScroll\n );\n\n /**\n * Indicates if the scroll is at the start of the sliding panel.\n */\n protected isScrollAtStart = true;\n\n /**\n * Indicates if the scroll is at the end of the sliding panel.\n */\n protected isScrollAtEnd = true;\n\n /**\n * HTMLElement referencing the scroll of the component.\n */\n public $refs!: {\n scrollContainer: HTMLElement;\n };\n\n mounted(): void {\n this.scrollObserver.observe(this.$refs.scrollContainer, {\n attributes: false,\n childList: true,\n subtree: true,\n characterData: false\n });\n // eslint-disable-next-line @typescript-eslint/unbound-method\n window?.addEventListener('resize', this.debouncedUpdateScrollPosition);\n\n this.updateScrollPosition();\n }\n\n beforeDestroy(): void {\n this.scrollObserver.disconnect();\n // eslint-disable-next-line @typescript-eslint/unbound-method\n window?.removeEventListener('resize', this.debouncedUpdateScrollPosition);\n }\n\n /**\n * Resets the scroll and updates the values of the scroll for the buttons to react.\n *\n * @internal\n */\n @Debounce(100, { leading: true })\n restoreAndUpdateScroll(): void {\n this.$refs.scrollContainer.scroll({ left: 0, behavior: 'smooth' });\n this.updateScrollPosition();\n }\n\n /**\n * Updates the values of the scroll positions to show or hide the buttons depending on it.\n *\n * @internal\n */\n protected updateScrollPosition(): void {\n const { scrollLeft, clientWidth, scrollWidth } = this.$refs.scrollContainer;\n this.isScrollAtStart = !scrollLeft;\n /* The 2 px extra is to fix some cases in some resolutions where the scroll + client size is\n * less than the scroll width even when the scroll is at the end */\n this.isScrollAtEnd = scrollLeft + clientWidth + 2 >= scrollWidth;\n }\n\n /**\n * Debounced version of the {@link SlidingPanel.updateScrollPosition | updateScrollPosition}\n * method.\n *\n * @internal\n */\n @Debounce(100, { leading: true })\n debouncedUpdateScrollPosition(): void {\n this.updateScrollPosition();\n }\n\n /**\n * Scrolls the wrapper element to the left.\n *\n * @internal\n */\n protected scrollLeft(): void {\n this.scrollTo(-this.$refs.scrollContainer.clientWidth);\n }\n\n /**\n * Scrolls the wrapper element to the right.\n *\n * @internal\n */\n protected scrollRight(): void {\n this.scrollTo(this.$refs.scrollContainer.clientWidth);\n }\n\n /**\n * Scrolls the wrapper element towards the provided scroll value.\n *\n * @param scrollValue - The value the scroll will go towards.\n *\n * @remarks this function uses the scrollBy from Element and it's not available in all browsers.\n *\n * @internal\n */\n protected scrollTo(scrollValue: number): void {\n this.$refs.scrollContainer.scrollBy({\n left: scrollValue * this.scrollFactor,\n behavior: 'smooth'\n });\n }\n\n /**\n * CSS classes to apply based on the scroll position.\n *\n * @returns The CSS classes to apply.\n *\n * @internal\n */\n protected get cssClasses(): VueCSSClasses {\n return {\n 'x-sliding-panel--at-start': this.isScrollAtStart,\n 'x-sliding-panel--at-end': this.isScrollAtEnd\n };\n }\n }\n</script>\n\n<style lang=\"scss\" scoped>\n .x-sliding-panel {\n align-items: center;\n display: flex;\n flex-flow: row nowrap;\n height: 100%;\n position: relative;\n\n &__button {\n opacity: 0;\n pointer-events: none;\n position: absolute;\n transition: all ease-out 0.2s;\n z-index: 2; /* To overlay the design system gradient with z-index:1 */\n\n &-left {\n left: 0;\n }\n\n &-right {\n right: 0;\n }\n }\n\n &__scroll {\n display: flex;\n flex: 100%;\n flex-flow: row nowrap;\n overflow: auto;\n scrollbar-width: none; // Firefox\n -ms-overflow-style: none; // IE\n\n // Chrome, Edge & Safari\n &::-webkit-scrollbar {\n display: none;\n }\n }\n\n &:not(.x-sliding-panel--show-buttons-on-hover):not(.x-sliding-panel--at-start) {\n .x-sliding-panel__button-left {\n opacity: 1;\n pointer-events: all;\n }\n }\n &:not(.x-sliding-panel--show-buttons-on-hover):not(.x-sliding-panel--at-end) {\n .x-sliding-panel__button-right {\n opacity: 1;\n pointer-events: all;\n }\n }\n }\n</style>\n\n<docs lang=\"mdx\">\n# Examples\n\nThis component allows for any other component or element inside it to be horizontally navigable. It\nalso implements customizable buttons as well as other minor customizations to its general behavior.\nThe component uses the method `scrollBy` from `Element` to function, and it doesn't work properly in\nall browsers. A polyfill for the `scrollBy` would be needed for the component to behave as expected\nin those browsers.\n\n## Default usage\n\nSimplest implementation of the component, just a list-based component inside its slot.\n\n```vue\n<SlidingPanel>\n <RelatedTags />\n</SlidingPanel>\n```\n\n## Behavior customization\n\nEdit how much the scroll travels when navigating with the buttons by changing the `scrollFactor`.\n\n```vue\n<SlidingPanel :scrollFactor=\"1.2\">\n <RelatedTags />\n</SlidingPanel>\n```\n\nHide the navigational buttons completely by setting the `showButtons` prop to `false`. This is\nintended to be used when other scrolling options are available, like in mobile, where you can scroll\njust by swiping.\n\n```vue\n<SlidingPanel :showButtons=\"isMobile\">\n <RelatedTags />\n</SlidingPanel>\n```\n\n## Overriding Button content\n\nBy default the buttons show an arrow depicting the direction the scroll would go to when clicked,\nbut this content can be customized with anything, from characters to SVG and images.\n\n```vue\n<SlidingPanel>\n <template #sliding-panel-left-button>\n Left\n </template>\n <RelatedTags />\n <template #sliding-panel-right-button>\n Right\n </template>\n</SlidingPanel>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import __vue_normalize__ from 'vue-runtime-helpers/dist/normalize-component.js';
|
|
2
|
+
import script from './snippet-callbacks.vue_rollup-plugin-vue=script.js';
|
|
3
|
+
|
|
4
|
+
/* script */
|
|
5
|
+
var __vue_script__ = script;
|
|
6
|
+
|
|
7
|
+
/* template */
|
|
8
|
+
var __vue_render__ = function () {
|
|
9
|
+
var _vm = this;
|
|
10
|
+
var _h = _vm.$createElement;
|
|
11
|
+
var _c = _vm._self._c || _h;
|
|
12
|
+
return _c("GlobalXBus", _vm._g({}, _vm.eventListeners))
|
|
13
|
+
};
|
|
14
|
+
var __vue_staticRenderFns__ = [];
|
|
15
|
+
__vue_render__._withStripped = true;
|
|
16
|
+
|
|
17
|
+
/* style */
|
|
18
|
+
var __vue_inject_styles__ = undefined;
|
|
19
|
+
/* scoped */
|
|
20
|
+
var __vue_scope_id__ = undefined;
|
|
21
|
+
/* module identifier */
|
|
22
|
+
var __vue_module_identifier__ = undefined;
|
|
23
|
+
/* functional template */
|
|
24
|
+
var __vue_is_functional_template__ = false;
|
|
25
|
+
/* style inject */
|
|
26
|
+
|
|
27
|
+
/* style inject SSR */
|
|
28
|
+
|
|
29
|
+
/* style inject shadow dom */
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
var __vue_component__ = /*#__PURE__*/__vue_normalize__(
|
|
34
|
+
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
|
|
35
|
+
__vue_inject_styles__,
|
|
36
|
+
__vue_script__,
|
|
37
|
+
__vue_scope_id__,
|
|
38
|
+
__vue_is_functional_template__,
|
|
39
|
+
__vue_module_identifier__,
|
|
40
|
+
false,
|
|
41
|
+
undefined,
|
|
42
|
+
undefined,
|
|
43
|
+
undefined
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
export default __vue_component__;
|
|
47
|
+
//# sourceMappingURL=snippet-callbacks.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snippet-callbacks.vue.js","sources":["../../../src/components/snippet-callbacks.vue"],"sourcesContent":["<template>\n <GlobalXBus v-on=\"eventListeners\" />\n</template>\n\n<script lang=\"ts\">\n import { Component, Inject } from 'vue-property-decorator';\n import Vue from 'vue';\n import { map } from '../utils/object';\n import { WireMetadata } from '../wiring';\n import { SnippetConfig, XEventListeners } from '../x-installer/api/api.types';\n import GlobalXBus from './global-x-bus.vue';\n\n /**\n * This component subscribes to any {@link XEvent} with a custom callbacks provided by the snippet\n * configuration.\n *\n * @public\n */\n @Component({\n components: { GlobalXBus }\n })\n export default class SnippetCallbacks extends Vue {\n /**\n * Injects {@link SnippetConfig} provided by an ancestor as snippetConfig.\n *\n * @internal\n */\n @Inject('snippetConfig')\n public snippetConfig!: SnippetConfig;\n\n /**\n * It maps all the callbacks provided by the snippetConfig and adds an emit to each one.\n *\n * @returns The event listeners with the {@link XEventsTypes.SnippetCallbackExecuted} emit in\n * the callback.\n *\n * @internal\n *\n */\n protected get eventListeners(): XEventListeners {\n const { callbacks } = this.snippetConfig;\n return callbacks\n ? map(callbacks, (eventName, callback) => {\n return (payload: unknown, metadata: WireMetadata) => {\n const callbackReturn = callback(payload as never, metadata);\n this.$x.emit('SnippetCallbackExecuted', {\n event: eventName,\n callbackReturn\n });\n };\n })\n : ({} as XEventListeners);\n }\n }\n</script>\n\n<docs lang=\"mdx\">\n## Events\n\nThe `SnippetCallbacks` will emit the `SnippetCallbackExecuted` each time a callback provided by the\nsnippetConfig is fired.\n\n## See it in action\n\nThis component does not render anything. Its only responsibility is to receive any callback that\nwill be triggered once its listened event is emitted.\n\n```vue\n<template>\n <SnippetCallbacks />\n</template>\n\n<script>\n import { SnippetCallbacks } from '@empathyco/x-components';\n export default {\n name: 'SnippetCallbacksTest',\n components: {\n SnippetCallbacks\n }\n };\n</script>\n```\n</docs>\n"],"names":["const"],"mappings":";;;;AAEAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { __extends, __decorate } from 'tslib';
|
|
2
|
+
import Vue from 'vue';
|
|
3
|
+
import { Inject, Component } from 'vue-property-decorator';
|
|
4
|
+
import { map } from '../utils/object.js';
|
|
5
|
+
import GlobalXBus from './global-x-bus.vue.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* This component subscribes to any {@link XEvent} with a custom callbacks provided by the snippet
|
|
9
|
+
* configuration.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
var SnippetCallbacks = /** @class */ (function (_super) {
|
|
14
|
+
__extends(SnippetCallbacks, _super);
|
|
15
|
+
function SnippetCallbacks() {
|
|
16
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(SnippetCallbacks.prototype, "eventListeners", {
|
|
19
|
+
/**
|
|
20
|
+
* It maps all the callbacks provided by the snippetConfig and adds an emit to each one.
|
|
21
|
+
*
|
|
22
|
+
* @returns The event listeners with the {@link XEventsTypes.SnippetCallbackExecuted} emit in
|
|
23
|
+
* the callback.
|
|
24
|
+
*
|
|
25
|
+
* @internal
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
get: function () {
|
|
29
|
+
var _this = this;
|
|
30
|
+
var callbacks = this.snippetConfig.callbacks;
|
|
31
|
+
return callbacks
|
|
32
|
+
? map(callbacks, function (eventName, callback) {
|
|
33
|
+
return function (payload, metadata) {
|
|
34
|
+
var callbackReturn = callback(payload, metadata);
|
|
35
|
+
_this.$x.emit('SnippetCallbackExecuted', {
|
|
36
|
+
event: eventName,
|
|
37
|
+
callbackReturn: callbackReturn
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
})
|
|
41
|
+
: {};
|
|
42
|
+
},
|
|
43
|
+
enumerable: false,
|
|
44
|
+
configurable: true
|
|
45
|
+
});
|
|
46
|
+
__decorate([
|
|
47
|
+
Inject('snippetConfig')
|
|
48
|
+
], SnippetCallbacks.prototype, "snippetConfig", void 0);
|
|
49
|
+
SnippetCallbacks = __decorate([
|
|
50
|
+
Component({
|
|
51
|
+
components: { GlobalXBus: GlobalXBus }
|
|
52
|
+
})
|
|
53
|
+
], SnippetCallbacks);
|
|
54
|
+
return SnippetCallbacks;
|
|
55
|
+
}(Vue));
|
|
56
|
+
|
|
57
|
+
export default SnippetCallbacks;
|
|
58
|
+
//# sourceMappingURL=snippet-callbacks.vue_rollup-plugin-vue=script.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snippet-callbacks.vue_rollup-plugin-vue=script.js","sources":["../../../src/components/snippet-callbacks.vue?rollup-plugin-vue=script.ts"],"sourcesContent":["\n\n\n\n\nimport { Component, Inject } from 'vue-property-decorator';\nimport Vue from 'vue';\nimport { map } from '../utils/object';\nimport { WireMetadata } from '../wiring';\nimport { SnippetConfig, XEventListeners } from '../x-installer/api/api.types';\nimport GlobalXBus from './global-x-bus.vue';\n\n/**\n * This component subscribes to any {@link XEvent} with a custom callbacks provided by the snippet\n * configuration.\n *\n * @public\n */\n@Component({\n components: { GlobalXBus }\n})\nexport default class SnippetCallbacks extends Vue {\n /**\n * Injects {@link SnippetConfig} provided by an ancestor as snippetConfig.\n *\n * @internal\n */\n @Inject('snippetConfig')\n public snippetConfig!: SnippetConfig;\n\n /**\n * It maps all the callbacks provided by the snippetConfig and adds an emit to each one.\n *\n * @returns The event listeners with the {@link XEventsTypes.SnippetCallbackExecuted} emit in\n * the callback.\n *\n * @internal\n *\n */\n protected get eventListeners(): XEventListeners {\n const { callbacks } = this.snippetConfig;\n return callbacks\n ? map(callbacks, (eventName, callback) => {\n return (payload: unknown, metadata: WireMetadata) => {\n const callbackReturn = callback(payload as never, metadata);\n this.$x.emit('SnippetCallbackExecuted', {\n event: eventName,\n callbackReturn\n });\n };\n })\n : ({} as XEventListeners);\n }\n}\n"],"names":[],"mappings":";;;;;;AAYA;;;;;;AASA;IAA8C,oCAAG;IAAjD;;KAgCC;IAdC,sBAAc,4CAAc;;;;;;;;;;aAA5B;YAAA,iBAaC;YAZS,IAAA,SAAS,GAAK,IAAI,CAAC,aAAa,UAAvB,CAAwB;YACzC,OAAO,SAAS;kBACZ,GAAG,CAAC,SAAS,EAAE,UAAC,SAAS,EAAE,QAAQ;oBACjC,OAAO,UAAC,OAAgB,EAAE,QAAsB;wBAC9C,IAAM,cAAc,GAAG,QAAQ,CAAC,OAAgB,EAAE,QAAQ,CAAC,CAAC;wBAC5D,KAAI,CAAC,EAAE,CAAC,IAAI,CAAC,yBAAyB,EAAE;4BACtC,KAAK,EAAE,SAAS;4BAChB,cAAc,gBAAA;yBACf,CAAC,CAAC;qBACJ,CAAC;iBACH,CAAC;kBACD,EAAsB,CAAC;SAC7B;;;OAAA;IAxBD;QADC,MAAM,CAAC,eAAe,CAAC;2DACa;IAPlB,gBAAgB;QAHpC,SAAS,CAAC;YACT,UAAU,EAAE,EAAE,UAAU,YAAA,EAAE;SAC3B,CAAC;OACmB,gBAAgB,CAgCpC;IAAD,uBAAC;CAAA,CAhC6C,GAAG;;;;"}
|
|
@@ -5,7 +5,7 @@ import script from './base-suggestion.vue_rollup-plugin-vue=script.js';
|
|
|
5
5
|
var __vue_script__ = script;
|
|
6
6
|
|
|
7
7
|
/* template */
|
|
8
|
-
var __vue_render__ = function() {
|
|
8
|
+
var __vue_render__ = function () {
|
|
9
9
|
var _vm = this;
|
|
10
10
|
var _h = _vm.$createElement;
|
|
11
11
|
var _c = _vm._self._c || _h;
|
|
@@ -14,24 +14,22 @@ var __vue_render__ = function() {
|
|
|
14
14
|
{
|
|
15
15
|
staticClass: "x-suggestion",
|
|
16
16
|
class: _vm.dynamicCSSClasses,
|
|
17
|
-
on: { click: _vm.emitEvents }
|
|
17
|
+
on: { click: _vm.emitEvents },
|
|
18
18
|
},
|
|
19
19
|
[
|
|
20
20
|
_vm._t(
|
|
21
21
|
"default",
|
|
22
|
-
function() {
|
|
22
|
+
function () {
|
|
23
23
|
return [
|
|
24
24
|
_c("span", {
|
|
25
25
|
staticClass: "x-suggestion__query",
|
|
26
26
|
attrs: { "aria-label": _vm.suggestion.query },
|
|
27
|
-
domProps: { innerHTML: _vm._s(_vm.queryHTML) }
|
|
28
|
-
})
|
|
29
|
-
]
|
|
27
|
+
domProps: { innerHTML: _vm._s(_vm.queryHTML) },
|
|
28
|
+
}) ]
|
|
30
29
|
},
|
|
31
30
|
null,
|
|
32
31
|
{ suggestion: _vm.suggestion, queryHTML: _vm.queryHTML }
|
|
33
|
-
)
|
|
34
|
-
],
|
|
32
|
+
) ],
|
|
35
33
|
2
|
|
36
34
|
)
|
|
37
35
|
};
|