@coveo/atomic 3.31.2-pre.6818cf8f76 → 3.31.2-pre.6efab82fb7
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/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +0 -6
- package/dist/atomic/components/_index.js +0 -3
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/atomic-category-facet.js +1 -1
- package/dist/atomic/components/atomic-facet.js +1 -1
- package/dist/atomic/components/atomic-format-currency.js +1 -1
- package/dist/atomic/components/atomic-format-number.js +1 -1
- package/dist/atomic/components/atomic-format-unit.js +1 -1
- package/dist/atomic/components/atomic-numeric-facet.js +1 -1
- package/dist/atomic/components/atomic-quickview-modal2.js +1 -1
- package/dist/atomic/components/atomic-quickview.js +1 -1
- package/dist/atomic/components/atomic-result-children.js +1 -1
- package/dist/atomic/components/atomic-result-fields-list.js +1 -1
- package/dist/atomic/components/atomic-result-link.js +1 -1
- package/dist/atomic/components/atomic-result-list.js +1 -1
- package/dist/atomic/components/atomic-search-box-query-suggestions2.js +1 -1
- package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
- package/dist/atomic/components/atomic-search-interface.js +1 -7
- package/dist/atomic/components/atomic-search-interface.js.map +1 -1
- package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
- package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
- package/dist/atomic/components/atomic-sort-expression.js +1 -1
- package/dist/atomic/components/atomic-tab-manager.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/analytics-config.js +2 -0
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +21 -27
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-load-more-products/atomic-commerce-load-more-products.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +22 -36
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-list/atomic-commerce-recommendation-list.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-modal/atomic-commerce-refine-modal.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-toggle/atomic-commerce-refine-toggle.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +3 -0
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-sort-dropdown/atomic-commerce-sort-dropdown.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product/atomic-product.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-children/atomic-product-children.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-description/atomic-product-description.js +149 -0
- package/dist/atomic/components/components/commerce/atomic-product-description/atomic-product-description.tw.css.js +3 -0
- package/dist/atomic/components/components/commerce/atomic-product-excerpt/atomic-product-excerpt.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-field-condition/atomic-product-field-condition.js +70 -0
- package/dist/atomic/components/components/commerce/atomic-product-link/atomic-product-link.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-multi-value-text/atomic-product-multi-value-text.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.tw.css.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +2 -0
- package/dist/atomic/components/components/commerce/index.js +2 -0
- package/dist/atomic/components/components/commerce/lazy-index.js +2 -0
- package/dist/atomic/components/components/common/atomic-aria-live/atomic-aria-live.js +102 -0
- package/dist/atomic/components/components/common/atomic-icon/atomic-icon.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-common.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-search/facet-search.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-value-box/facet-value-box.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-value-checkbox/facet-value-checkbox.tw.css.js +1 -1
- package/dist/atomic/components/components/common/facets/facet-value-exclude/facet-value-exclude.tw.css.js +1 -1
- package/dist/atomic/components/components/common/index.js +1 -0
- package/dist/atomic/components/components/common/interface/analytics-config.js +38 -0
- package/dist/atomic/components/components/common/interface/interface-controller.js +89 -0
- package/dist/atomic/components/components/common/lazy-index.js +1 -0
- package/dist/atomic/components/components/common/refine-modal/refine-modal-common.tw.css.js +1 -1
- package/dist/atomic/components/debounce-utils.js +1 -34
- package/dist/atomic/components/debounce-utils.js.map +1 -1
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/global/tailwind.default.css.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/stencil-accessibility-utils.js.map +1 -1
- package/dist/atomic/components/stencil-facet-show-more-less.js +7 -1
- package/dist/atomic/components/stencil-facet-show-more-less.js.map +1 -1
- package/dist/atomic/components/themes/accessible.css.js +1 -1
- package/dist/atomic/components/themes/coveo.css.js +1 -1
- package/dist/atomic/components/utils/coveo.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/aspect-square.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/components.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/hide-scrollbar.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/link-style.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/set-font-size.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind-utilities/utilities.tw.css.js +1 -1
- package/dist/atomic/components/utils/tailwind.global.tw.css.js +1 -1
- package/dist/atomic/p-01c91b69.js +2 -0
- package/dist/atomic/p-01c91b69.js.map +1 -0
- package/dist/atomic/{p-1b491649.entry.js → p-0af927f0.entry.js} +2 -2
- package/dist/atomic/{p-b043958c.entry.js → p-0b9cd281.entry.js} +2 -2
- package/dist/atomic/{p-e44ba87e.entry.js → p-0f5ae66e.entry.js} +2 -2
- package/dist/atomic/{p-0674783d.entry.js → p-1b329f85.entry.js} +2 -2
- package/dist/atomic/p-271cf67e.entry.js +2 -0
- package/dist/atomic/p-271cf67e.entry.js.map +1 -0
- package/dist/atomic/p-306161d1.entry.js +2 -0
- package/dist/atomic/p-417b1b64.js +2 -0
- package/dist/atomic/{p-c100197d.js.map → p-417b1b64.js.map} +1 -1
- package/dist/atomic/{p-a7eb687d.js → p-4228b04f.js} +2 -2
- package/dist/atomic/p-44a3c052.entry.js +2 -0
- package/dist/atomic/{p-e215ba76.entry.js.map → p-44a3c052.entry.js.map} +1 -1
- package/dist/atomic/{p-a0445771.entry.js → p-4c5702ba.entry.js} +2 -2
- package/dist/atomic/{p-acc4d5de.js → p-53bcc515.js} +2 -2
- package/dist/atomic/{p-e2560da8.entry.js → p-5f64bbe0.entry.js} +2 -2
- package/dist/atomic/{p-0dde1772.entry.js → p-61e3dac7.entry.js} +2 -2
- package/dist/atomic/{p-fc73190d.entry.js → p-6638ca39.entry.js} +2 -2
- package/dist/atomic/{p-1176959c.entry.js → p-6f8ae3d2.entry.js} +2 -2
- package/dist/atomic/{p-0ed0e8b8.entry.js → p-731f82ed.entry.js} +2 -2
- package/dist/atomic/{p-25f8b8d8.entry.js → p-7a07530d.entry.js} +2 -2
- package/dist/atomic/{p-c8d47706.entry.js → p-7a5d346b.entry.js} +2 -2
- package/dist/atomic/p-8434625a.entry.js +2 -0
- package/dist/atomic/{p-8bb323e8.entry.js.map → p-8434625a.entry.js.map} +1 -1
- package/dist/atomic/{p-5b888121.entry.js → p-89721f11.entry.js} +2 -2
- package/dist/atomic/p-91477908.entry.js +2 -0
- package/dist/atomic/{p-3f881919.entry.js.map → p-91477908.entry.js.map} +1 -1
- package/dist/atomic/p-91d52cad.entry.js +2 -0
- package/dist/atomic/{p-4e77fe24.entry.js.map → p-91d52cad.entry.js.map} +1 -1
- package/dist/atomic/p-96a6f84f.js.map +1 -1
- package/dist/atomic/{p-11dd759c.entry.js → p-b1f7ac63.entry.js} +2 -2
- package/dist/atomic/{p-5fc9f751.entry.js → p-bf5d5c79.entry.js} +2 -2
- package/dist/atomic/{p-716e9e1d.entry.js → p-c0025d4c.entry.js} +2 -2
- package/dist/atomic/{p-9eac6c89.entry.js → p-e180b785.entry.js} +2 -2
- package/dist/atomic/{p-494c57a0.entry.js → p-e406cacd.entry.js} +2 -2
- package/dist/atomic/p-e8ba8acd.entry.js +2 -0
- package/dist/atomic/{p-0873c1b8.entry.js.map → p-e8ba8acd.entry.js.map} +1 -1
- package/dist/atomic/p-f0e861c5.entry.js +2 -0
- package/dist/atomic/{p-391c26ba.entry.js → p-f9bfd18b.entry.js} +2 -2
- package/dist/atomic/{p-3d224a05.entry.js → p-fd7dbf72.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-58aee61e.js → analytics-config-1f335e45.js} +2 -2
- package/dist/cjs/{analytics-config-58aee61e.js.map → analytics-config-1f335e45.js.map} +1 -1
- package/dist/cjs/atomic-category-facet.cjs.entry.js +2 -3
- package/dist/cjs/atomic-category-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-color-facet.cjs.entry.js +1 -2
- package/dist/cjs/atomic-color-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-commerce-category-facet_4.cjs.entry.js +1 -2
- package/dist/cjs/atomic-commerce-category-facet_4.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-facet.cjs.entry.js +2 -3
- package/dist/cjs/atomic-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-format-currency.cjs.entry.js +1 -1
- package/dist/cjs/atomic-format-number.cjs.entry.js +1 -1
- package/dist/cjs/atomic-format-unit.cjs.entry.js +1 -1
- package/dist/cjs/atomic-generated-answer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-facet.cjs.entry.js +1 -2
- package/dist/cjs/atomic-insight-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-search-box.cjs.entry.js +2 -2
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-quickview-modal.cjs.entry.js +1 -1
- package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
- package/dist/cjs/{atomic-aria-live_2.cjs.entry.js → atomic-relevance-inspector.cjs.entry.js} +1 -68
- package/dist/cjs/atomic-relevance-inspector.cjs.entry.js.map +1 -0
- package/dist/cjs/atomic-result-children.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-link.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +2 -2
- package/dist/cjs/atomic-search-box.cjs.entry.js +2 -2
- package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
- package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic.cjs.js +1 -1
- package/dist/cjs/debounce-utils-d26bcad4.js +15 -0
- package/dist/cjs/debounce-utils-d26bcad4.js.map +1 -0
- package/dist/cjs/index-757bc886.js +4 -12
- package/dist/cjs/stencil-accessibility-utils-aa4c9f6c.js.map +1 -1
- package/dist/cjs/{stencil-facet-show-more-less-21d22973.js → stencil-facet-show-more-less-541e1544.js} +10 -4
- package/dist/cjs/stencil-facet-show-more-less-541e1544.js.map +1 -0
- package/dist/cjs/{stencil-suggestion-manager-6f778cf0.js → stencil-suggestion-manager-5fa3ac70.js} +2 -2
- package/dist/cjs/{stencil-suggestion-manager-6f778cf0.js.map → stencil-suggestion-manager-5fa3ac70.js.map} +1 -1
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-06a872d6.js → analytics-config-fa7017c3.js} +2 -2
- package/dist/esm/{analytics-config-06a872d6.js.map → analytics-config-fa7017c3.js.map} +1 -1
- package/dist/esm/atomic-category-facet.entry.js +2 -3
- package/dist/esm/atomic-category-facet.entry.js.map +1 -1
- package/dist/esm/atomic-color-facet.entry.js +1 -2
- package/dist/esm/atomic-color-facet.entry.js.map +1 -1
- package/dist/esm/atomic-commerce-category-facet_4.entry.js +1 -2
- package/dist/esm/atomic-commerce-category-facet_4.entry.js.map +1 -1
- package/dist/esm/atomic-facet.entry.js +2 -3
- package/dist/esm/atomic-facet.entry.js.map +1 -1
- package/dist/esm/atomic-format-currency.entry.js +1 -1
- package/dist/esm/atomic-format-number.entry.js +1 -1
- package/dist/esm/atomic-format-unit.entry.js +1 -1
- package/dist/esm/atomic-generated-answer.entry.js +1 -1
- package/dist/esm/atomic-insight-facet.entry.js +1 -2
- package/dist/esm/atomic-insight-facet.entry.js.map +1 -1
- package/dist/esm/atomic-insight-generated-answer.entry.js +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +1 -1
- package/dist/esm/atomic-insight-search-box.entry.js +2 -2
- package/dist/esm/atomic-numeric-facet.entry.js +1 -1
- package/dist/esm/atomic-quickview-modal.entry.js +1 -1
- package/dist/esm/atomic-quickview.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +1 -1
- package/dist/esm/{atomic-aria-live_2.entry.js → atomic-relevance-inspector.entry.js} +3 -69
- package/dist/esm/atomic-relevance-inspector.entry.js.map +1 -0
- package/dist/esm/atomic-result-children.entry.js +1 -1
- package/dist/esm/atomic-result-fields-list.entry.js +1 -1
- package/dist/esm/atomic-result-link.entry.js +1 -1
- package/dist/esm/atomic-result-list.entry.js +1 -1
- package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +2 -2
- package/dist/esm/atomic-search-box.entry.js +2 -2
- package/dist/esm/atomic-search-interface.entry.js +1 -1
- package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
- package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
- package/dist/esm/atomic-sort-expression.entry.js +1 -1
- package/dist/esm/atomic-tab-manager.entry.js +1 -1
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/debounce-utils-8619dece.js +13 -0
- package/dist/esm/{debounce-utils-efa015c0.js.map → debounce-utils-8619dece.js.map} +1 -1
- package/dist/esm/index-3f35faca.js +4 -12
- package/dist/esm/stencil-accessibility-utils-bc273be5.js.map +1 -1
- package/dist/esm/{stencil-facet-show-more-less-4b023ee3.js → stencil-facet-show-more-less-1198472f.js} +8 -2
- package/dist/esm/stencil-facet-show-more-less-1198472f.js.map +1 -0
- package/dist/esm/{stencil-suggestion-manager-91706623.js → stencil-suggestion-manager-f52c6e39.js} +2 -2
- package/dist/esm/{stencil-suggestion-manager-91706623.js.map → stencil-suggestion-manager-f52c6e39.js.map} +1 -1
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +3 -4
- package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +5 -6
- package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +3 -0
- package/dist/types/components/commerce/atomic-product-description/atomic-product-description.d.ts +21 -10
- package/dist/types/components/commerce/atomic-product-field-condition/atomic-product-field-condition.d.ts +24 -13
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +2 -0
- package/dist/types/components/commerce/index.d.ts +2 -0
- package/dist/types/components/common/atomic-aria-live/atomic-aria-live.d.ts +38 -0
- package/dist/types/components/common/index.d.ts +1 -0
- package/dist/types/components/common/interface/i18n.d.ts +1 -1
- package/dist/types/components/common/interface/{interface-common.d.ts → interface-controller.d.ts} +14 -11
- package/dist/types/components.d.ts +0 -147
- package/dist/types/utils/accessibility-utils.d.ts +2 -1
- package/dist/types/utils/stencil-accessibility-utils.d.ts +2 -1
- package/docs/atomic-docs.json +31 -320
- package/package.json +6 -6
- package/dist/atomic/components/atomic-aria-live.d.ts +0 -11
- package/dist/atomic/components/atomic-aria-live.js +0 -8
- package/dist/atomic/components/atomic-aria-live.js.map +0 -1
- package/dist/atomic/components/atomic-aria-live2.js +0 -87
- package/dist/atomic/components/atomic-aria-live2.js.map +0 -1
- package/dist/atomic/components/atomic-product-description.d.ts +0 -11
- package/dist/atomic/components/atomic-product-description.js +0 -153
- package/dist/atomic/components/atomic-product-description.js.map +0 -1
- package/dist/atomic/components/atomic-product-field-condition.d.ts +0 -11
- package/dist/atomic/components/atomic-product-field-condition.js +0 -131
- package/dist/atomic/components/atomic-product-field-condition.js.map +0 -1
- package/dist/atomic/components/components/common/interface/interface-common.js +0 -95
- package/dist/atomic/components/plus.js +0 -10
- package/dist/atomic/components/plus.js.map +0 -1
- package/dist/atomic/p-0873c1b8.entry.js +0 -2
- package/dist/atomic/p-37b7705c.js +0 -2
- package/dist/atomic/p-37b7705c.js.map +0 -1
- package/dist/atomic/p-3f2442d3.entry.js +0 -2
- package/dist/atomic/p-3f2442d3.entry.js.map +0 -1
- package/dist/atomic/p-3f881919.entry.js +0 -2
- package/dist/atomic/p-4e77fe24.entry.js +0 -2
- package/dist/atomic/p-8bb323e8.entry.js +0 -2
- package/dist/atomic/p-8f20d930.js +0 -2
- package/dist/atomic/p-8f20d930.js.map +0 -1
- package/dist/atomic/p-a0b3c6e2.entry.js +0 -2
- package/dist/atomic/p-a0b3c6e2.entry.js.map +0 -1
- package/dist/atomic/p-c100197d.js +0 -2
- package/dist/atomic/p-e215ba76.entry.js +0 -2
- package/dist/atomic/p-e790d557.entry.js +0 -2
- package/dist/atomic/p-efd2bb5f.entry.js +0 -2
- package/dist/atomic/p-f2d31b97.entry.js +0 -2
- package/dist/atomic/p-f2d31b97.entry.js.map +0 -1
- package/dist/cjs/atomic-aria-live_2.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-product-description.cjs.entry.js +0 -141
- package/dist/cjs/atomic-product-description.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-product-field-condition.cjs.entry.js +0 -119
- package/dist/cjs/atomic-product-field-condition.cjs.entry.js.map +0 -1
- package/dist/cjs/debounce-utils-e014935f.js +0 -49
- package/dist/cjs/debounce-utils-e014935f.js.map +0 -1
- package/dist/cjs/plus-07843914.js +0 -13
- package/dist/cjs/plus-07843914.js.map +0 -1
- package/dist/cjs/stencil-facet-show-more-less-21d22973.js.map +0 -1
- package/dist/esm/atomic-aria-live_2.entry.js.map +0 -1
- package/dist/esm/atomic-product-description.entry.js +0 -137
- package/dist/esm/atomic-product-description.entry.js.map +0 -1
- package/dist/esm/atomic-product-field-condition.entry.js +0 -115
- package/dist/esm/atomic-product-field-condition.entry.js.map +0 -1
- package/dist/esm/debounce-utils-efa015c0.js +0 -46
- package/dist/esm/plus-00840ff6.js +0 -10
- package/dist/esm/plus-00840ff6.js.map +0 -1
- package/dist/esm/stencil-facet-show-more-less-4b023ee3.js.map +0 -1
- package/dist/types/components/search/atomic-search-interface/atomic-aria-live.d.ts +0 -23
- /package/dist/atomic/{p-1b491649.entry.js.map → p-0af927f0.entry.js.map} +0 -0
- /package/dist/atomic/{p-b043958c.entry.js.map → p-0b9cd281.entry.js.map} +0 -0
- /package/dist/atomic/{p-e44ba87e.entry.js.map → p-0f5ae66e.entry.js.map} +0 -0
- /package/dist/atomic/{p-0674783d.entry.js.map → p-1b329f85.entry.js.map} +0 -0
- /package/dist/atomic/{p-efd2bb5f.entry.js.map → p-306161d1.entry.js.map} +0 -0
- /package/dist/atomic/{p-a7eb687d.js.map → p-4228b04f.js.map} +0 -0
- /package/dist/atomic/{p-a0445771.entry.js.map → p-4c5702ba.entry.js.map} +0 -0
- /package/dist/atomic/{p-acc4d5de.js.map → p-53bcc515.js.map} +0 -0
- /package/dist/atomic/{p-e2560da8.entry.js.map → p-5f64bbe0.entry.js.map} +0 -0
- /package/dist/atomic/{p-0dde1772.entry.js.map → p-61e3dac7.entry.js.map} +0 -0
- /package/dist/atomic/{p-fc73190d.entry.js.map → p-6638ca39.entry.js.map} +0 -0
- /package/dist/atomic/{p-1176959c.entry.js.map → p-6f8ae3d2.entry.js.map} +0 -0
- /package/dist/atomic/{p-0ed0e8b8.entry.js.map → p-731f82ed.entry.js.map} +0 -0
- /package/dist/atomic/{p-25f8b8d8.entry.js.map → p-7a07530d.entry.js.map} +0 -0
- /package/dist/atomic/{p-c8d47706.entry.js.map → p-7a5d346b.entry.js.map} +0 -0
- /package/dist/atomic/{p-5b888121.entry.js.map → p-89721f11.entry.js.map} +0 -0
- /package/dist/atomic/{p-11dd759c.entry.js.map → p-b1f7ac63.entry.js.map} +0 -0
- /package/dist/atomic/{p-5fc9f751.entry.js.map → p-bf5d5c79.entry.js.map} +0 -0
- /package/dist/atomic/{p-716e9e1d.entry.js.map → p-c0025d4c.entry.js.map} +0 -0
- /package/dist/atomic/{p-9eac6c89.entry.js.map → p-e180b785.entry.js.map} +0 -0
- /package/dist/atomic/{p-494c57a0.entry.js.map → p-e406cacd.entry.js.map} +0 -0
- /package/dist/atomic/{p-e790d557.entry.js.map → p-f0e861c5.entry.js.map} +0 -0
- /package/dist/atomic/{p-391c26ba.entry.js.map → p-f9bfd18b.entry.js.map} +0 -0
- /package/dist/atomic/{p-3d224a05.entry.js.map → p-fd7dbf72.entry.js.map} +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Schema, StringValue } from '@coveo/bueno';
|
|
8
|
+
import { html, LitElement, nothing, unsafeCSS } from 'lit';
|
|
9
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
10
|
+
import { createRef } from 'lit/directives/ref.js';
|
|
11
|
+
import { booleanConverter } from "../../../converters/boolean-converter.js";
|
|
12
|
+
import { bindingGuard } from "../../../decorators/binding-guard.js";
|
|
13
|
+
import { bindings } from "../../../decorators/bindings.js";
|
|
14
|
+
import { createProductContextController } from "../../../decorators/commerce/product-template-decorators.js";
|
|
15
|
+
import { errorGuard } from "../../../decorators/error-guard.js";
|
|
16
|
+
import { injectStylesForNoShadowDOM } from "../../../decorators/inject-styles-for-no-shadow-dom.js";
|
|
17
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
18
|
+
import { renderExpandableText, } from '../../common/expandable-text/expandable-text.js';
|
|
19
|
+
import styles from './atomic-product-description.tw.css';
|
|
20
|
+
import '../atomic-product-text/atomic-product-text.js';
|
|
21
|
+
/**
|
|
22
|
+
* The `atomic-product-description` component renders the description of a product.
|
|
23
|
+
*
|
|
24
|
+
* @part expandable-text - The part that contains the product description text.
|
|
25
|
+
*/
|
|
26
|
+
let AtomicProductDescription = class AtomicProductDescription extends LitElement {
|
|
27
|
+
initialize() { }
|
|
28
|
+
constructor() {
|
|
29
|
+
super();
|
|
30
|
+
this.productController = createProductContextController(this);
|
|
31
|
+
this.isExpanded = false;
|
|
32
|
+
this.isTruncated = false;
|
|
33
|
+
this.descriptionRef = createRef();
|
|
34
|
+
/**
|
|
35
|
+
* The number of lines after which the product description should be truncated. A value of "none" will disable truncation.
|
|
36
|
+
*/
|
|
37
|
+
this.truncateAfter = '2';
|
|
38
|
+
/**
|
|
39
|
+
* The name of the description field to use.
|
|
40
|
+
*/
|
|
41
|
+
this.field = 'ec_shortdesc';
|
|
42
|
+
/**
|
|
43
|
+
* Whether the description should be collapsible after being expanded.
|
|
44
|
+
*/
|
|
45
|
+
this.isCollapsible = true;
|
|
46
|
+
this.onToggleExpand = (e) => {
|
|
47
|
+
if (e) {
|
|
48
|
+
e.stopPropagation();
|
|
49
|
+
}
|
|
50
|
+
this.isExpanded = !this.isExpanded;
|
|
51
|
+
};
|
|
52
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
53
|
+
if (this.descriptionRef.value) {
|
|
54
|
+
this.isTruncated =
|
|
55
|
+
this.descriptionRef.value.scrollHeight >
|
|
56
|
+
this.descriptionRef.value.clientHeight;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
validateProps() {
|
|
61
|
+
new Schema({
|
|
62
|
+
truncateAfter: new StringValue({
|
|
63
|
+
constrainTo: ['none', '1', '2', '3', '4'],
|
|
64
|
+
}),
|
|
65
|
+
field: new StringValue({
|
|
66
|
+
constrainTo: ['ec_shortdesc', 'ec_description'],
|
|
67
|
+
}),
|
|
68
|
+
}).validate({
|
|
69
|
+
truncateAfter: this.truncateAfter,
|
|
70
|
+
field: this.field,
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
updated(changedProperties) {
|
|
74
|
+
super.updated(changedProperties);
|
|
75
|
+
if (changedProperties.has('truncateAfter') ||
|
|
76
|
+
changedProperties.has('field')) {
|
|
77
|
+
this.validateProps();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
firstUpdated() {
|
|
81
|
+
if (this.descriptionRef.value) {
|
|
82
|
+
this.resizeObserver.observe(this.descriptionRef.value);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
disconnectedCallback() {
|
|
86
|
+
super.disconnectedCallback();
|
|
87
|
+
this.resizeObserver.disconnect();
|
|
88
|
+
}
|
|
89
|
+
get product() {
|
|
90
|
+
return this.productController.item;
|
|
91
|
+
}
|
|
92
|
+
render() {
|
|
93
|
+
const productDescription = this.product?.[this.field] ?? null;
|
|
94
|
+
if (!productDescription) {
|
|
95
|
+
return html `${nothing}`;
|
|
96
|
+
}
|
|
97
|
+
return html `${renderExpandableText({
|
|
98
|
+
props: {
|
|
99
|
+
isExpanded: this.isExpanded,
|
|
100
|
+
isTruncated: this.isTruncated,
|
|
101
|
+
truncateAfter: this.truncateAfter,
|
|
102
|
+
onToggleExpand: this.onToggleExpand,
|
|
103
|
+
showMoreLabel: this.bindings.i18n.t('show-more'),
|
|
104
|
+
showLessLabel: this.bindings.i18n.t('show-less'),
|
|
105
|
+
isCollapsible: this.isCollapsible,
|
|
106
|
+
textRef: this.descriptionRef,
|
|
107
|
+
},
|
|
108
|
+
})(html `
|
|
109
|
+
<atomic-product-text field=${this.field}></atomic-product-text>
|
|
110
|
+
`)}`;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
AtomicProductDescription.styles = unsafeCSS(styles);
|
|
114
|
+
__decorate([
|
|
115
|
+
state()
|
|
116
|
+
], AtomicProductDescription.prototype, "bindings", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
state()
|
|
119
|
+
], AtomicProductDescription.prototype, "isExpanded", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
state()
|
|
122
|
+
], AtomicProductDescription.prototype, "isTruncated", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
property({
|
|
125
|
+
type: String,
|
|
126
|
+
attribute: 'truncate-after',
|
|
127
|
+
})
|
|
128
|
+
], AtomicProductDescription.prototype, "truncateAfter", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
property()
|
|
131
|
+
], AtomicProductDescription.prototype, "field", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
property({
|
|
134
|
+
type: Boolean,
|
|
135
|
+
converter: booleanConverter,
|
|
136
|
+
attribute: 'is-collapsible',
|
|
137
|
+
})
|
|
138
|
+
], AtomicProductDescription.prototype, "isCollapsible", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
errorGuard(),
|
|
141
|
+
bindingGuard()
|
|
142
|
+
], AtomicProductDescription.prototype, "render", null);
|
|
143
|
+
AtomicProductDescription = __decorate([
|
|
144
|
+
customElement('atomic-product-description'),
|
|
145
|
+
withTailwindStyles,
|
|
146
|
+
injectStylesForNoShadowDOM,
|
|
147
|
+
bindings()
|
|
148
|
+
], AtomicProductDescription);
|
|
149
|
+
export { AtomicProductDescription };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
.expandable-text{line-height:var(--line-height)}.min-lines-1{min-height:calc(var(--line-height)*1)}.min-lines-2{min-height:calc(var(--line-height)*2)}.min-lines-3{min-height:calc(var(--line-height)*3)}.min-lines-4{min-height:calc(var(--line-height)*4)}`;
|
|
3
|
+
export default css;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.expandable-text{line-height:var(--line-height)}.min-lines-1{min-height:calc(var(--line-height)*1)}.min-lines-2{min-height:calc(var(--line-height)*2)}.min-lines-3{min-height:calc(var(--line-height)*3)}.min-lines-4{min-height:calc(var(--line-height)*4)}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement } from 'lit';
|
|
8
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
9
|
+
import { bindings } from "../../../decorators/bindings";
|
|
10
|
+
import { createProductContextController } from "../../../decorators/commerce/product-template-decorators";
|
|
11
|
+
import { errorGuard } from "../../../decorators/error-guard";
|
|
12
|
+
import { mapProperty } from "../../../utils/props-utils";
|
|
13
|
+
import { makeDefinedConditions, makeMatchConditions, } from '../../common/product-template/product-template-common';
|
|
14
|
+
/**
|
|
15
|
+
* The `atomic-product-field-condition` component renders its children only when all of the conditions specified through its props are satisfied.
|
|
16
|
+
* The condition properties can be based on any top-level product property of the `product` object, not restricted to fields (e.g., `ec_name`).
|
|
17
|
+
*
|
|
18
|
+
* @slot default - The content to render if the conditions are met.
|
|
19
|
+
*
|
|
20
|
+
* @alpha
|
|
21
|
+
*/
|
|
22
|
+
let AtomicProductFieldCondition = class AtomicProductFieldCondition extends LitElement {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.productController = createProductContextController(this);
|
|
26
|
+
}
|
|
27
|
+
createRenderRoot() {
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
initialize() { }
|
|
31
|
+
get conditions() {
|
|
32
|
+
return [
|
|
33
|
+
...makeDefinedConditions(this.ifDefined, this.ifNotDefined),
|
|
34
|
+
...makeMatchConditions(this.mustMatch, this.mustNotMatch),
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
render() {
|
|
38
|
+
const product = this.productController.item;
|
|
39
|
+
if (!product || !this.conditions.every((condition) => condition(product))) {
|
|
40
|
+
this.remove();
|
|
41
|
+
}
|
|
42
|
+
return html `<slot></slot>`;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
__decorate([
|
|
46
|
+
state()
|
|
47
|
+
], AtomicProductFieldCondition.prototype, "bindings", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
state()
|
|
50
|
+
], AtomicProductFieldCondition.prototype, "error", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
property({ type: String, attribute: 'if-defined' })
|
|
53
|
+
], AtomicProductFieldCondition.prototype, "ifDefined", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
property({ type: String, attribute: 'if-not-defined' })
|
|
56
|
+
], AtomicProductFieldCondition.prototype, "ifNotDefined", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
mapProperty({ splitValues: true, attributePrefix: 'must-match' })
|
|
59
|
+
], AtomicProductFieldCondition.prototype, "mustMatch", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
mapProperty({ splitValues: true, attributePrefix: 'must-not-match' })
|
|
62
|
+
], AtomicProductFieldCondition.prototype, "mustNotMatch", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
errorGuard()
|
|
65
|
+
], AtomicProductFieldCondition.prototype, "render", null);
|
|
66
|
+
AtomicProductFieldCondition = __decorate([
|
|
67
|
+
customElement('atomic-product-field-condition'),
|
|
68
|
+
bindings()
|
|
69
|
+
], AtomicProductFieldCondition);
|
|
70
|
+
export { AtomicProductFieldCondition };
|
package/dist/atomic/components/components/commerce/atomic-product-link/atomic-product-link.tw.css.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
atomic-product-link{& a{color:var(--atomic-on-background);&:hover,&:focus-visible{color:var(--atomic-primary);text-decoration:underline}&:focus{outline:none}&:visited{color:var(--atomic-visited)}}}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const css = `:host{&>ul{margin:0;padding:0;list-style:none;display:flex;& li{display:inline-block}}}.separator{&:before{content:", ";display:inline}}`;
|
|
2
|
-
export default
|
|
2
|
+
export default css;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading:initial}}}.display-grid atomic-product-price{flex-flow:column wrap;display:flex}.display-grid atomic-product-price .original-price{--tw-leading:1;line-height:1}@property --tw-leading{syntax:"*";inherits:false}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -16,9 +16,11 @@ import '../atomic-product-link/atomic-product-link';
|
|
|
16
16
|
import '../atomic-product/atomic-product';
|
|
17
17
|
import '../atomic-product-excerpt/atomic-product-excerpt';
|
|
18
18
|
import '../atomic-product-children/atomic-product-children';
|
|
19
|
+
import '../atomic-product-field-condition/atomic-product-field-condition';
|
|
19
20
|
import '../atomic-product-multi-value-text/atomic-product-multi-value-text';
|
|
20
21
|
import '../atomic-product-price/atomic-product-price';
|
|
21
22
|
import '../atomic-product-numeric-field-value/atomic-product-numeric-field-value';
|
|
23
|
+
import '../atomic-product-description/atomic-product-description';
|
|
22
24
|
/**
|
|
23
25
|
* * A product template determines the format of the query results, depending on the conditions that are defined for each template.
|
|
24
26
|
*
|
|
@@ -22,7 +22,9 @@ export { AtomicCommerceSortDropdown } from './atomic-commerce-sort-dropdown/atom
|
|
|
22
22
|
export { AtomicCommerceText } from './atomic-commerce-text/atomic-commerce-text.js';
|
|
23
23
|
export { AtomicProduct } from './atomic-product/atomic-product.js';
|
|
24
24
|
export { AtomicProductChildren } from './atomic-product-children/atomic-product-children.js';
|
|
25
|
+
export { AtomicProductDescription } from './atomic-product-description/atomic-product-description.js';
|
|
25
26
|
export { AtomicProductExcerpt } from './atomic-product-excerpt/atomic-product-excerpt.js';
|
|
27
|
+
export { AtomicProductFieldCondition } from './atomic-product-field-condition/atomic-product-field-condition.js';
|
|
26
28
|
export { AtomicProductLink } from './atomic-product-link/atomic-product-link.js';
|
|
27
29
|
export { AtomicProductMultiValueText } from './atomic-product-multi-value-text/atomic-product-multi-value-text.js';
|
|
28
30
|
export { AtomicProductNumericFieldValue } from './atomic-product-numeric-field-value/atomic-product-numeric-field-value.js';
|
|
@@ -23,7 +23,9 @@ export default {
|
|
|
23
23
|
'atomic-commerce-text': async () => await import('./atomic-commerce-text/atomic-commerce-text.js'),
|
|
24
24
|
'atomic-product': async () => await import('./atomic-product/atomic-product.js'),
|
|
25
25
|
'atomic-product-children': async () => await import('./atomic-product-children/atomic-product-children.js'),
|
|
26
|
+
'atomic-product-description': async () => await import('./atomic-product-description/atomic-product-description.js'),
|
|
26
27
|
'atomic-product-excerpt': async () => await import('./atomic-product-excerpt/atomic-product-excerpt.js'),
|
|
28
|
+
'atomic-product-field-condition': async () => await import('./atomic-product-field-condition/atomic-product-field-condition.js'),
|
|
27
29
|
'atomic-product-link': async () => await import('./atomic-product-link/atomic-product-link.js'),
|
|
28
30
|
'atomic-product-multi-value-text': async () => await import('./atomic-product-multi-value-text/atomic-product-multi-value-text.js'),
|
|
29
31
|
'atomic-product-numeric-field-value': async () => await import('./atomic-product-numeric-field-value/atomic-product-numeric-field-value.js'),
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement } from 'lit';
|
|
8
|
+
import { customElement, state } from 'lit/decorators.js';
|
|
9
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
10
|
+
import { buildDebouncedQueue } from '../../../utils/debounce-utils';
|
|
11
|
+
import { randomID } from '../../../utils/utils';
|
|
12
|
+
/**
|
|
13
|
+
* The `atomic-aria-live` component notifies screen readers of changes in the search and commerce interfaces.
|
|
14
|
+
*
|
|
15
|
+
* @event atomic/accessibility/findAriaLive - Dispatches an event to find the `atomic-aria-live` element.
|
|
16
|
+
*/
|
|
17
|
+
let AtomicAriaLive = class AtomicAriaLive extends LitElement {
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.regions = {};
|
|
21
|
+
this.messagesQueue = buildDebouncedQueue({ delay: 500 });
|
|
22
|
+
this.onFindAriaLive = (event) => {
|
|
23
|
+
const customEvent = event;
|
|
24
|
+
customEvent.detail.element = this;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
createRenderRoot() {
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
connectedCallback() {
|
|
31
|
+
super.connectedCallback();
|
|
32
|
+
this.ariaLiveId = randomID('atomic-aria-live-');
|
|
33
|
+
document.addEventListener('atomic/accessibility/findAriaLive', this.onFindAriaLive);
|
|
34
|
+
}
|
|
35
|
+
disconnectedCallback() {
|
|
36
|
+
super.disconnectedCallback();
|
|
37
|
+
this.messagesQueue.clear();
|
|
38
|
+
document.removeEventListener('atomic/accessibility/findAriaLive', this.onFindAriaLive);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Updates the message and assertiveness for a specific ARIA live region.
|
|
42
|
+
* If a message is provided, the update is debounced to avoid rapid changes.
|
|
43
|
+
* If the message is empty, any pending update is canceled and the region is cleared immediately.
|
|
44
|
+
*
|
|
45
|
+
* @param region - The name of the ARIA live region to update.
|
|
46
|
+
* @param message - The message to announce in the region.
|
|
47
|
+
* @param assertive - Whether the region should use 'assertive' or 'polite' mode.
|
|
48
|
+
*/
|
|
49
|
+
updateMessage(region, message, assertive) {
|
|
50
|
+
const updateRegion = () => {
|
|
51
|
+
this.regions = { ...this.regions, [region]: { assertive, message } };
|
|
52
|
+
};
|
|
53
|
+
if (message) {
|
|
54
|
+
this.messagesQueue.enqueue(updateRegion, region);
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.messagesQueue.cancelActionIfQueued(region);
|
|
58
|
+
updateRegion();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Registers a new ARIA live region if it does not already exist.
|
|
63
|
+
*
|
|
64
|
+
* @param region - The name of the ARIA live region to register.
|
|
65
|
+
* @param assertive - Whether the region should use 'assertive' or 'polite' mode.
|
|
66
|
+
*/
|
|
67
|
+
registerRegion(region, assertive) {
|
|
68
|
+
if (region in this.regions) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
this.regions = { ...this.regions, [region]: { assertive, message: '' } };
|
|
72
|
+
}
|
|
73
|
+
render() {
|
|
74
|
+
const hostStyles = {
|
|
75
|
+
position: 'absolute',
|
|
76
|
+
display: 'block',
|
|
77
|
+
height: '0',
|
|
78
|
+
overflow: 'hidden',
|
|
79
|
+
margin: '0',
|
|
80
|
+
};
|
|
81
|
+
return html `
|
|
82
|
+
<div style=${styleMap(hostStyles)}>
|
|
83
|
+
${Object.entries(this.regions).map(([regionName, { assertive, message }]) => html `
|
|
84
|
+
<div
|
|
85
|
+
id="${this.ariaLiveId}-${regionName}"
|
|
86
|
+
aria-live="${assertive ? 'assertive' : 'polite'}"
|
|
87
|
+
role="status"
|
|
88
|
+
>
|
|
89
|
+
${message}
|
|
90
|
+
</div>
|
|
91
|
+
`)}
|
|
92
|
+
</div>
|
|
93
|
+
`;
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
__decorate([
|
|
97
|
+
state()
|
|
98
|
+
], AtomicAriaLive.prototype, "regions", void 0);
|
|
99
|
+
AtomicAriaLive = __decorate([
|
|
100
|
+
customElement('atomic-aria-live')
|
|
101
|
+
], AtomicAriaLive);
|
|
102
|
+
export { AtomicAriaLive };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const css = `@layer components{atomic-icon{fill:currentColor;aspect-ratio:1;height:auto;display:inline-block;@supports not (aspect-ratio:1 / 1){&{height:auto}}&>svg{aspect-ratio:1;width:100%;height:auto;max-height:100%}}}`;
|
|
2
|
-
export default
|
|
2
|
+
export default css;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.value-count{margin-left:calc(var(--spacing,.25rem)*1.5);color:var(--atomic-neutral-dark);[part=value-exclude-button]+&{margin-right:calc(var(--spacing,.25rem)*2)}}:host(.popover-nested){min-width:var(--container-2xs,18rem);&::part(label-button){display:none}&::part(facet){--tw-shadow:0px 2px 8px var(--tw-shadow-color,#e5e8e8bf);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}&::part(values){margin-top:calc(var(--spacing,.25rem)*0);max-height:calc(var(--spacing,.25rem)*96);overflow-y:auto}&::part(search-wrapper){margin-bottom:calc(var(--spacing,.25rem)*2)}}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
input[type=text]:focus-visible~.search-icon{color:var(--atomic-primary)}input[type=text]:hover~.search-icon{color:var(--atomic-primary-light)}.search-icon atomic-icon{width:var(--atomic-facet-search-icon-size,.75rem);height:var(--atomic-facet-search-icon-size,.75rem)}.search-clear-button atomic-icon{width:var(--atomic-facet-search-clear-icon-size,.625rem);height:var(--atomic-facet-search-clear-icon-size,.625rem)}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
package/dist/atomic/components/components/common/facets/facet-value-box/facet-value-box.tw.css.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.box-container{padding-inline:calc(var(--spacing,.25rem)*2);grid-template-columns:repeat(var(--atomic-facet-boxes-per-row,4),minmax(0,1fr));gap:var(--atomic-facet-boxes-gap,.5rem);display:grid}.value-box .value-label,.value-box-count{width:100%;display:block}.value-box.selected{box-shadow:0 0 0 1px var(--atomic-primary)}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
2
|
.value-checkbox{width:var(--atomic-facet-checkbox-size,1rem);height:var(--atomic-facet-checkbox-size,1rem);left:calc(var(--spacing,.25rem)*2);z-index:1;position:absolute}.value-checkbox+label{cursor:pointer;text-overflow:ellipsis;white-space:nowrap;width:100%;padding-block:calc(var(--spacing,.25rem)*2.5);padding-right:calc(var(--spacing,.25rem)*2);padding-left:calc(var(--spacing,.25rem)*8);color:var(--atomic-on-background);flex-direction:row;display:flex;overflow:hidden;&:hover{@media (hover:hover){&{background-color:var(--atomic-neutral-light)}}}}.value-checkbox.selected:focus-visible+label .value-label,.value-checkbox.selected:hover+label .value-label{color:var(--atomic-primary)}.value-checkbox.excluded:focus-visible+label .value-label,.value-checkbox.excluded:hover+label .value-label{color:var(--atomic-error)}`;
|
|
3
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const css = `.value-exclude-button:focus-visible atomic-icon{visibility:visible}`;
|
|
2
|
-
export default
|
|
2
|
+
export default css;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Auto-generated file
|
|
2
|
+
export { AtomicAriaLive } from './atomic-aria-live/atomic-aria-live.js';
|
|
2
3
|
export { AtomicComponentError } from './atomic-component-error/atomic-component-error.js';
|
|
3
4
|
export { AtomicIcon } from './atomic-icon/atomic-icon.js';
|
|
4
5
|
export { AtomicLayoutSection } from './atomic-layout-section/atomic-layout-section.js';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { getAtomicEnvironment } from '../../../global/environment';
|
|
2
|
+
export function augmentWithExternalMiddleware(event, payload, config) {
|
|
3
|
+
if (config.analytics?.analyticsClientMiddleware) {
|
|
4
|
+
return config.analytics.analyticsClientMiddleware(event, payload);
|
|
5
|
+
}
|
|
6
|
+
return payload;
|
|
7
|
+
}
|
|
8
|
+
export function augmentAnalyticsWithAtomicVersion(payload) {
|
|
9
|
+
if (payload.customData) {
|
|
10
|
+
payload.customData.coveoAtomicVersion = getAtomicEnvironment().version;
|
|
11
|
+
}
|
|
12
|
+
return payload;
|
|
13
|
+
}
|
|
14
|
+
export function augmentAnalyticsConfigWithDocument() {
|
|
15
|
+
return {
|
|
16
|
+
documentLocation: document.location.href,
|
|
17
|
+
...(document.referrer && { originLevel3: document.referrer }),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
const versionMatcher = /^(\d+\.\d+\.\d+)/;
|
|
21
|
+
export function augmentAnalyticsConfigWithAtomicVersion() {
|
|
22
|
+
return {
|
|
23
|
+
source: {
|
|
24
|
+
'@coveo/atomic': versionMatcher.exec(getAtomicEnvironment().version)?.[0] || '0.0.0',
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function getNextAnalyticsConfig(searchEngineConfig, enabled) {
|
|
29
|
+
const configuration = {
|
|
30
|
+
enabled,
|
|
31
|
+
documentLocation: document.location.href,
|
|
32
|
+
...(document.referrer && { originLevel3: document.referrer }),
|
|
33
|
+
};
|
|
34
|
+
const analyticsConfiguration = searchEngineConfig.analytics ?? {};
|
|
35
|
+
Object.assign(analyticsConfiguration, augmentAnalyticsConfigWithAtomicVersion());
|
|
36
|
+
Object.assign(configuration, analyticsConfiguration);
|
|
37
|
+
return configuration;
|
|
38
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import Backend from 'i18next-http-backend';
|
|
2
|
+
import { setCoveoGlobal } from "../../../global/environment";
|
|
3
|
+
import { loadDayjsLocale } from "../../../utils/dayjs-locales";
|
|
4
|
+
import { i18nBackendOptions, i18nTranslationNamespace, init18n } from './i18n';
|
|
5
|
+
export class InterfaceController {
|
|
6
|
+
constructor(host, globalVariableName) {
|
|
7
|
+
this.hangingComponentsInitialization = [];
|
|
8
|
+
this.host = host;
|
|
9
|
+
this.host.addController(this);
|
|
10
|
+
setCoveoGlobal(globalVariableName);
|
|
11
|
+
}
|
|
12
|
+
hostConnected() {
|
|
13
|
+
this.i18nPromise = init18n(this.host);
|
|
14
|
+
this.initAriaLive();
|
|
15
|
+
}
|
|
16
|
+
hostDisconnected() {
|
|
17
|
+
this.removeAriaLive();
|
|
18
|
+
}
|
|
19
|
+
onComponentInitializing(event) {
|
|
20
|
+
event.preventDefault();
|
|
21
|
+
event.stopPropagation();
|
|
22
|
+
if (this.host.engine) {
|
|
23
|
+
event.detail(this.host.bindings);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
this.hangingComponentsInitialization.push(event);
|
|
27
|
+
}
|
|
28
|
+
async onInitialization(initEngine) {
|
|
29
|
+
if (this.host.engine) {
|
|
30
|
+
this.host.engine.logger.warn(`The ${this.interfaceTagname} component "initialize" has already been called.`, this.host);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
this.host.updateIconAssetsPath();
|
|
34
|
+
initEngine();
|
|
35
|
+
if (this.host.registerFieldsToInclude) {
|
|
36
|
+
this.host.registerFieldsToInclude();
|
|
37
|
+
}
|
|
38
|
+
loadDayjsLocale(this.host.language || 'en');
|
|
39
|
+
await this.i18nPromise;
|
|
40
|
+
this.initComponents();
|
|
41
|
+
}
|
|
42
|
+
onAnalyticsChange() {
|
|
43
|
+
const { engine, analytics } = this.host;
|
|
44
|
+
if (!this.engineIsCreated(engine)) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (!analytics) {
|
|
48
|
+
engine.disableAnalytics();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
engine.enableAnalytics();
|
|
52
|
+
}
|
|
53
|
+
onLanguageChange(newLanguage) {
|
|
54
|
+
const language = newLanguage ?? this.host.language;
|
|
55
|
+
const languageWithFallback = language ?? 'en';
|
|
56
|
+
const { i18n } = this.host;
|
|
57
|
+
loadDayjsLocale(languageWithFallback);
|
|
58
|
+
new Backend(i18n.services, i18nBackendOptions(this.host)).read(languageWithFallback.split('-')[0], i18nTranslationNamespace, (_, data) => {
|
|
59
|
+
i18n.addResourceBundle(languageWithFallback.split('-')[0], i18nTranslationNamespace, data, true, false);
|
|
60
|
+
i18n.changeLanguage(language);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
engineIsCreated(engine) {
|
|
64
|
+
if (!engine) {
|
|
65
|
+
console.error(`You have to call "initialize" on the ${this.interfaceTagname} component before modifying the props or calling other public methods.`, this.host);
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
get interfaceTagname() {
|
|
71
|
+
return this.host.tagName.toLowerCase();
|
|
72
|
+
}
|
|
73
|
+
initComponents() {
|
|
74
|
+
this.hangingComponentsInitialization.forEach((event) => event.detail(this.host.bindings));
|
|
75
|
+
}
|
|
76
|
+
initAriaLive() {
|
|
77
|
+
if (Array.from(this.host.children).some((element) => element.tagName === 'ATOMIC-ARIA-LIVE')) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const ariaLive = document.createElement('atomic-aria-live');
|
|
81
|
+
this.host.prepend(ariaLive);
|
|
82
|
+
}
|
|
83
|
+
removeAriaLive() {
|
|
84
|
+
const ariaLive = this.host.querySelector('atomic-aria-live');
|
|
85
|
+
if (ariaLive) {
|
|
86
|
+
ariaLive.remove();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Auto-generated file
|
|
2
2
|
export default {
|
|
3
|
+
'atomic-aria-live': async () => await import('./atomic-aria-live/atomic-aria-live.js'),
|
|
3
4
|
'atomic-component-error': async () => await import('./atomic-component-error/atomic-component-error.js'),
|
|
4
5
|
'atomic-icon': async () => await import('./atomic-icon/atomic-icon.js'),
|
|
5
6
|
'atomic-layout-section': async () => await import('./atomic-layout-section/atomic-layout-section.js'),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
const css = `.adjust-for-scroll-bar{margin-right:calc(-100vw + 3rem + 100%)}`;
|
|
2
|
-
export default
|
|
2
|
+
export default css;
|
|
@@ -1,36 +1,3 @@
|
|
|
1
|
-
function buildDebouncedQueue(options) {
|
|
2
|
-
let actions = [];
|
|
3
|
-
let intervalId = null;
|
|
4
|
-
function dequeueAction() {
|
|
5
|
-
const action = actions.shift();
|
|
6
|
-
if (action) {
|
|
7
|
-
action.execute();
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
clearInterval(intervalId);
|
|
11
|
-
intervalId = null;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
function cancelActionIfQueued(id) {
|
|
15
|
-
actions = actions.filter((action) => action.id !== id);
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
enqueue(execute, uniqueId) {
|
|
19
|
-
if (uniqueId) {
|
|
20
|
-
cancelActionIfQueued(uniqueId);
|
|
21
|
-
}
|
|
22
|
-
actions.push({ id: uniqueId, execute });
|
|
23
|
-
if (intervalId === null) {
|
|
24
|
-
dequeueAction();
|
|
25
|
-
intervalId = setInterval(dequeueAction, options.delay);
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
clear() {
|
|
29
|
-
actions = [];
|
|
30
|
-
},
|
|
31
|
-
cancelActionIfQueued,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
1
|
function debounce(execute, wait) {
|
|
35
2
|
let timer;
|
|
36
3
|
return (...args) => {
|
|
@@ -41,6 +8,6 @@ function debounce(execute, wait) {
|
|
|
41
8
|
};
|
|
42
9
|
}
|
|
43
10
|
|
|
44
|
-
export {
|
|
11
|
+
export { debounce as d };
|
|
45
12
|
|
|
46
13
|
//# sourceMappingURL=debounce-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"debounce-utils.js","mappings":"
|
|
1
|
+
{"file":"debounce-utils.js","mappings":"SAqDgB,QAAQ,CAItB,OAEmD,EACnD,IAAY;IAEZ,IAAI,KAAoC,CAAC;IAEzC,OAAO,CAAC,GAAG,IAAuB;QAChC,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO;YACzB,KAAK,GAAG,UAAU,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;SAC3D,CAAC,CAAC;KACJ,CAAC;AACJ;;;;","names":[],"sources":["src/utils/debounce-utils.ts"],"sourcesContent":["export interface DebouncedQueueOptions {\n delay: number;\n}\n\nexport interface DebouncedQueue {\n enqueue(execute: () => void, uniqueId?: string): void;\n clear(): void;\n cancelActionIfQueued(id: string): void;\n}\n\ninterface QueuedAction {\n id?: string;\n execute: () => void;\n}\n\nexport function buildDebouncedQueue(\n options: DebouncedQueueOptions\n): DebouncedQueue {\n let actions: QueuedAction[] = [];\n let intervalId: ReturnType<typeof setInterval> | null = null;\n\n function dequeueAction() {\n const action = actions.shift();\n if (action) {\n action.execute();\n } else {\n clearInterval(intervalId!);\n intervalId = null;\n }\n }\n\n function cancelActionIfQueued(id: string) {\n actions = actions.filter((action) => action.id !== id);\n }\n\n return {\n enqueue(execute: () => void, uniqueId?: string) {\n if (uniqueId) {\n cancelActionIfQueued(uniqueId);\n }\n actions.push({id: uniqueId, execute});\n if (intervalId === null) {\n dequeueAction();\n intervalId = setInterval(dequeueAction, options.delay);\n }\n },\n clear() {\n actions = [];\n },\n cancelActionIfQueued,\n };\n}\n\nexport function debounce<\n ExecuteParameters extends unknown[],\n ExecuteReturnType,\n>(\n execute: (\n ...args: ExecuteParameters\n ) => Promise<ExecuteReturnType> | ExecuteReturnType,\n wait: number\n) {\n let timer: ReturnType<typeof setTimeout>;\n\n return (...args: ExecuteParameters): Promise<ExecuteReturnType> => {\n clearTimeout(timer);\n return new Promise((resolve) => {\n timer = setTimeout(() => resolve(execute(...args)), wait);\n });\n };\n}\n"],"version":3}
|