@coveo/atomic 3.33.8-pre.32aa53b021 → 3.33.8-pre.3524c75f47
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/autoloader/index.cjs.js +2 -2
- package/dist/atomic/autoloader/index.esm.js +2 -2
- package/dist/atomic/components/_index.d.ts +4 -0
- package/dist/atomic/components/_index.js +2 -0
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/atomic-category-facet.js +2 -2
- package/dist/atomic/components/atomic-category-facet.js.map +1 -1
- package/dist/atomic/components/atomic-citation.js +1 -1
- package/dist/atomic/components/atomic-facet-manager.js +1 -1
- package/dist/atomic/components/atomic-facet.d.ts +11 -0
- package/dist/atomic/components/atomic-facet.js +470 -0
- package/dist/atomic/components/atomic-facet.js.map +1 -0
- 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-generated-answer-feedback-modal.js +1 -1
- package/dist/atomic/components/atomic-html2.js +1 -1
- package/dist/atomic/components/atomic-insight-edit-toggle.js +1 -1
- package/dist/atomic/components/atomic-insight-facet.js +4 -37
- package/dist/atomic/components/atomic-insight-facet.js.map +1 -1
- package/dist/atomic/components/atomic-insight-folded-result-list.js +1 -1
- package/dist/atomic/components/atomic-insight-full-search-button.js +1 -1
- package/dist/atomic/components/atomic-insight-history-toggle.js +1 -1
- package/dist/atomic/components/atomic-insight-interface.js +1 -1
- package/dist/atomic/components/atomic-insight-no-results.js +1 -1
- package/dist/atomic/components/atomic-insight-numeric-facet.js +2 -2
- package/dist/atomic/components/atomic-insight-numeric-facet.js.map +1 -1
- package/dist/atomic/components/atomic-insight-pager.js +3 -3
- package/dist/atomic/components/atomic-insight-query-error.js +1 -1
- package/dist/atomic/components/atomic-insight-refine-modal2.js +2 -2
- package/dist/atomic/components/atomic-insight-refine-toggle.js +1 -1
- package/dist/atomic/components/atomic-insight-result-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result-attach-to-case-indicator.js +1 -1
- package/dist/atomic/components/atomic-insight-result-children.js +1 -1
- package/dist/atomic/components/atomic-insight-result-list.js +1 -1
- package/dist/atomic/components/atomic-insight-result-quickview-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result2.js +1 -1
- package/dist/atomic/components/atomic-insight-search-box.js +2 -2
- package/dist/atomic/components/atomic-insight-smart-snippet-feedback-modal2.js +2 -2
- package/dist/atomic/components/atomic-insight-tabs.js +1 -1
- package/dist/atomic/components/atomic-insight-user-actions-session2.js +1 -1
- package/dist/atomic/components/atomic-insight-user-actions-toggle.js +1 -1
- package/dist/atomic/components/atomic-ipx-body2.js +2 -2
- package/dist/atomic/components/atomic-ipx-button.js +2 -2
- package/dist/atomic/components/atomic-ipx-embedded.js +1 -1
- package/dist/atomic/components/atomic-ipx-modal.js +2 -2
- package/dist/atomic/components/atomic-ipx-recs-list.js +1 -1
- package/dist/atomic/components/atomic-ipx-refine-modal2.js +1 -1
- package/dist/atomic/components/atomic-ipx-refine-toggle.js +1 -1
- package/dist/atomic/components/atomic-ipx-result-link.js +1 -1
- package/dist/atomic/components/atomic-ipx-tabs.js +1 -1
- package/dist/atomic/components/atomic-load-more-results.js +1 -1
- package/dist/atomic/components/atomic-no-results.js +1 -1
- package/dist/atomic/components/atomic-numeric-facet.js +2 -3
- package/dist/atomic/components/atomic-numeric-facet.js.map +1 -1
- package/dist/atomic/components/atomic-pager.js +3 -3
- package/dist/atomic/components/atomic-query-error.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-recs-error.js +1 -1
- package/dist/atomic/components/atomic-recs-interface.js +1 -1
- package/dist/atomic/components/atomic-recs-list.js +1 -1
- package/dist/atomic/components/atomic-refine-modal2.js +1 -1
- package/dist/atomic/components/atomic-refine-toggle.js +1 -1
- package/dist/atomic/components/atomic-relevance-inspector.js +1 -46
- package/dist/atomic/components/atomic-relevance-inspector.js.map +1 -1
- package/dist/atomic/components/atomic-relevance-inspector2.js +50 -0
- package/dist/atomic/components/atomic-relevance-inspector2.js.map +1 -0
- 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-result-placeholder2.js +2 -2
- package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
- package/dist/atomic/components/atomic-search-box-instant-results.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-box.js +3 -3
- package/dist/atomic/components/atomic-search-interface.d.ts +11 -0
- package/dist/atomic/components/atomic-search-interface.js +552 -0
- package/dist/atomic/components/atomic-search-interface.js.map +1 -0
- package/dist/atomic/components/atomic-smart-snippet-answer2.js +1 -1
- package/dist/atomic/components/atomic-smart-snippet-collapse-wrapper2.js +2 -2
- package/dist/atomic/components/atomic-smart-snippet-expandable-answer2.js +1 -1
- package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
- package/dist/atomic/components/atomic-smart-snippet-source2.js +1 -1
- 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-stencil-facet-date-input.js +3 -3
- package/dist/atomic/components/atomic-suggestion-renderer2.js +1 -1
- package/dist/atomic/components/atomic-tab-manager.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.js +4 -4
- package/dist/atomic/components/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.js +2 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-facet/atomic-commerce-facet.js +6 -6
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +50 -8
- package/dist/atomic/components/components/commerce/atomic-commerce-load-more-products/atomic-commerce-load-more-products.js +3 -3
- package/dist/atomic/components/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-pager/atomic-commerce-pager.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.js +2 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +25 -10
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-modal/atomic-commerce-refine-modal.js +2 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +4 -4
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.js +8 -5
- package/dist/atomic/components/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.js +3 -3
- package/dist/atomic/components/components/commerce/atomic-product/atomic-product.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-section-children/atomic-product-section-children.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +1 -1
- package/dist/atomic/components/components/common/query-correction/trigger-correction.js +1 -1
- package/dist/atomic/components/components/common/refine-modal/modal.js +1 -1
- package/dist/atomic/components/components/common/suggestions/instant-item.js +6 -6
- package/dist/atomic/components/components/search/atomic-search-layout/atomic-search-layout.js +9 -20
- package/dist/atomic/components/components/search/index.js +0 -2
- package/dist/atomic/components/components/search/lazy-index.js +0 -2
- package/dist/atomic/components/{stencil-facet-guard.js → facet-guard.js} +1 -2
- package/dist/atomic/components/facet-guard.js.map +1 -0
- package/dist/atomic/components/facet-number-input.js +2 -2
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/stencil-facet-value.js +39 -0
- package/dist/atomic/components/stencil-facet-value.js.map +1 -0
- package/dist/atomic/components/tab-button.js +1 -1
- package/dist/atomic/components/tab-popover.js +1 -1
- package/dist/atomic/lang/cs.json +1 -1
- package/dist/atomic/lang/da.json +1 -1
- package/dist/atomic/lang/de.json +1 -1
- package/dist/atomic/lang/dev.json +1 -1
- package/dist/atomic/lang/el.json +1 -1
- package/dist/atomic/lang/en.json +1 -1
- package/dist/atomic/lang/es.json +1 -1
- package/dist/atomic/lang/fi.json +1 -1
- package/dist/atomic/lang/fr.json +1 -1
- package/dist/atomic/lang/hu.json +1 -1
- package/dist/atomic/lang/id.json +1 -1
- package/dist/atomic/lang/it.json +1 -1
- package/dist/atomic/lang/ja.json +1 -1
- package/dist/atomic/lang/ko.json +1 -1
- package/dist/atomic/lang/nl.json +1 -1
- package/dist/atomic/lang/no.json +1 -1
- package/dist/atomic/lang/pl.json +1 -1
- package/dist/atomic/lang/pt-BR.json +1 -1
- package/dist/atomic/lang/pt.json +1 -1
- package/dist/atomic/lang/ru.json +1 -1
- package/dist/atomic/lang/sv.json +1 -1
- package/dist/atomic/lang/th.json +1 -1
- package/dist/atomic/lang/tr.json +1 -1
- package/dist/atomic/lang/zh-CN.json +1 -1
- package/dist/atomic/lang/zh-TW.json +1 -1
- package/dist/atomic/lang/zh.json +1 -1
- package/dist/atomic/{p-41c5d5fa.entry.js → p-021f01d6.entry.js} +2 -2
- package/dist/atomic/{p-a3fa6695.entry.js → p-035f8dc8.entry.js} +2 -2
- package/dist/atomic/{p-3c532cda.entry.js → p-089be992.entry.js} +2 -2
- package/dist/atomic/{p-7fe2dfcd.entry.js → p-09a3a067.entry.js} +2 -2
- package/dist/atomic/{p-98da2a98.entry.js → p-0d333ba3.entry.js} +2 -2
- package/dist/atomic/p-1992b245.entry.js +2 -0
- package/dist/atomic/{p-2ac75719.entry.js → p-1d1f54a5.entry.js} +2 -2
- package/dist/atomic/{p-9d023f0b.entry.js → p-1ef658d8.entry.js} +2 -2
- package/dist/atomic/{p-aa3ac5aa.js → p-1f059522.js} +1 -1
- package/dist/atomic/p-1f059522.js.map +1 -0
- package/dist/atomic/{p-10b5e0f3.entry.js → p-20341936.entry.js} +2 -2
- package/dist/atomic/{p-3213225f.entry.js → p-26a51a77.entry.js} +2 -2
- package/dist/atomic/{p-15406648.entry.js → p-2ca352f4.entry.js} +2 -2
- package/dist/atomic/{p-926fe2d7.entry.js → p-2ce8220a.entry.js} +2 -2
- package/dist/atomic/{p-97e42c43.entry.js → p-31aa052e.entry.js} +2 -2
- package/dist/atomic/{p-7a6468a7.entry.js → p-36fab158.entry.js} +2 -2
- package/dist/atomic/{p-9727f36b.entry.js → p-37374964.entry.js} +2 -2
- package/dist/atomic/{p-7b1a3cab.entry.js → p-3a2c900c.entry.js} +2 -2
- package/dist/atomic/{p-5adbf098.entry.js → p-3b023e83.entry.js} +2 -2
- package/dist/atomic/{p-0610b3e7.entry.js → p-3b20b011.entry.js} +2 -2
- package/dist/atomic/p-3e433353.entry.js +2 -0
- package/dist/atomic/p-3e433353.entry.js.map +1 -0
- package/dist/atomic/{p-c08f4ee6.entry.js → p-3f912e98.entry.js} +2 -2
- package/dist/atomic/{p-9e771351.entry.js → p-40635c2d.entry.js} +2 -2
- package/dist/atomic/{p-c9fe4f77.entry.js → p-43d708cb.entry.js} +2 -2
- package/dist/atomic/{p-b0c50194.entry.js → p-48f57fd8.entry.js} +2 -2
- package/dist/atomic/{p-454a0328.entry.js → p-49c38b27.entry.js} +2 -2
- package/dist/atomic/{p-24df7251.entry.js → p-4c2f230f.entry.js} +2 -2
- package/dist/atomic/p-534b6a0a.entry.js +2 -0
- package/dist/atomic/p-534b6a0a.entry.js.map +1 -0
- package/dist/atomic/{p-f0012580.entry.js → p-594488f2.entry.js} +2 -2
- package/dist/atomic/p-5ca21deb.js +2 -0
- package/dist/atomic/p-5ca21deb.js.map +1 -0
- package/dist/atomic/{p-b4ad3036.entry.js → p-5f1fa581.entry.js} +2 -2
- package/dist/atomic/{p-8df7270f.entry.js → p-604c4085.entry.js} +2 -2
- package/dist/atomic/{p-d50c96c2.entry.js → p-627e1265.entry.js} +2 -2
- package/dist/atomic/{p-004adbb8.entry.js → p-6329ff94.entry.js} +2 -2
- package/dist/atomic/{p-e3af1bb4.entry.js → p-6e6d686e.entry.js} +2 -2
- package/dist/atomic/{p-79a9a372.entry.js → p-744da781.entry.js} +2 -2
- package/dist/atomic/{p-4b1bf2fd.entry.js → p-77205925.entry.js} +2 -2
- package/dist/atomic/{p-e6a7e7b2.entry.js → p-7dfcd6af.entry.js} +2 -2
- package/dist/atomic/{p-c8d29aa6.entry.js → p-7e2109e9.entry.js} +2 -2
- package/dist/atomic/{p-fa376d3d.entry.js → p-811d6dcb.entry.js} +2 -2
- package/dist/atomic/p-811d6dcb.entry.js.map +1 -0
- package/dist/atomic/{p-9147b0db.entry.js → p-8256cd44.entry.js} +2 -2
- package/dist/atomic/{p-0e27d4f2.entry.js → p-83c9244a.entry.js} +2 -2
- package/dist/atomic/{p-1140ac4d.entry.js → p-89085429.entry.js} +2 -2
- package/dist/atomic/{p-828cea10.entry.js → p-89ab44de.entry.js} +2 -2
- package/dist/atomic/{p-bd99fcc1.entry.js → p-939eaaac.entry.js} +2 -2
- package/dist/atomic/{p-9b92b4e2.entry.js → p-93e29b24.entry.js} +2 -2
- package/dist/atomic/{p-b6377fb6.entry.js → p-98c5b9b8.entry.js} +2 -2
- package/dist/atomic/{p-bf49fed3.entry.js → p-99b8d52d.entry.js} +2 -2
- package/dist/atomic/{p-8fb8c4f0.entry.js → p-9c9b1965.entry.js} +2 -2
- package/dist/atomic/p-9c9b1965.entry.js.map +1 -0
- package/dist/atomic/{p-160553ce.entry.js → p-a3efa89e.entry.js} +2 -2
- package/dist/atomic/{p-c538c8ac.entry.js → p-a53c7821.entry.js} +2 -2
- package/dist/atomic/{p-85f165af.entry.js → p-a8882a2a.entry.js} +2 -2
- package/dist/atomic/{p-ce41c447.entry.js → p-ae060711.entry.js} +2 -2
- package/dist/atomic/{p-b4c34553.entry.js → p-b0b17e21.entry.js} +2 -2
- package/dist/atomic/{p-e1c99e2e.entry.js → p-b2ff1330.entry.js} +2 -2
- package/dist/atomic/{p-618c6967.entry.js → p-b6963bae.entry.js} +2 -2
- package/dist/atomic/{p-e7c6a479.entry.js → p-b7063a0d.entry.js} +2 -2
- package/dist/atomic/p-b7063a0d.entry.js.map +1 -0
- package/dist/atomic/{p-dee60597.entry.js → p-bc0d6d3d.entry.js} +2 -2
- package/dist/atomic/{p-0e5dc57f.entry.js → p-c126ee6b.entry.js} +2 -2
- package/dist/atomic/{p-754909fe.entry.js → p-c1999888.entry.js} +2 -2
- package/dist/atomic/{p-00a6ab8c.entry.js → p-d0f47b33.entry.js} +2 -2
- package/dist/atomic/p-d24d34a7.entry.js +2 -0
- package/dist/atomic/{p-7f40e57d.entry.js → p-d364064c.entry.js} +2 -2
- package/dist/atomic/{p-856e858c.entry.js → p-d785121d.entry.js} +2 -2
- package/dist/atomic/{p-7d63bf7b.entry.js → p-d93adf52.entry.js} +2 -2
- package/dist/atomic/{p-2a4e9425.entry.js → p-de066001.entry.js} +2 -2
- package/dist/atomic/{p-0bc9b088.js → p-df723535.js} +2 -2
- package/dist/atomic/{p-8a7a23b7.entry.js → p-e162805d.entry.js} +2 -2
- package/dist/atomic/{p-441b1a7b.entry.js → p-e23b3334.entry.js} +2 -2
- package/dist/atomic/p-e2afb475.entry.js +2 -0
- package/dist/atomic/{p-bd32625e.entry.js → p-ea446721.entry.js} +2 -2
- package/dist/atomic/{p-07b6424c.entry.js → p-ee6771f1.entry.js} +2 -2
- package/dist/atomic/{p-abb14108.entry.js → p-f0c2dfe8.entry.js} +2 -2
- package/dist/atomic/{p-cc68642f.entry.js → p-f289269f.entry.js} +2 -2
- package/dist/atomic/{p-d4ad7336.entry.js → p-fa8b7c4c.entry.js} +2 -2
- package/dist/atomic/{p-fb1a1e2e.entry.js → p-fbfe913d.entry.js} +2 -2
- package/dist/atomic/p-fcf3f7d7.entry.js +2 -0
- package/dist/atomic/{p-6de44060.entry.js.map → p-fcf3f7d7.entry.js.map} +1 -1
- package/dist/atomic/p-fda26113.entry.js +2 -0
- package/dist/atomic/p-fda26113.entry.js.map +1 -0
- package/dist/atomic/{p-f936f55e.entry.js → p-fea7bf3b.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-b8cf7dfc.js → analytics-config-7817986c.js} +2 -2
- package/dist/cjs/{analytics-config-b8cf7dfc.js.map → analytics-config-7817986c.js.map} +1 -1
- package/dist/cjs/atomic-category-facet.cjs.entry.js +2 -2
- package/dist/cjs/atomic-category-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-citation.cjs.entry.js +1 -1
- package/dist/cjs/atomic-facet-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic-facet-number-input.cjs.entry.js +2 -2
- package/dist/cjs/atomic-facet.cjs.entry.js +453 -0
- package/dist/cjs/atomic-facet.cjs.entry.js.map +1 -0
- 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-feedback-modal.cjs.entry.js +1 -1
- package/dist/cjs/atomic-html.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-edit-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-facet.cjs.entry.js +10 -38
- package/dist/cjs/atomic-insight-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-folded-result-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-full-search-button.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-history-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-no-results.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-pager.cjs.entry.js +3 -3
- package/dist/cjs/atomic-insight-query-error.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-refine-modal.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-refine-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-action.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-attach-to-case-indicator.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-children.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-quickview-action.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-search-box.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-smart-snippet-feedback-modal.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-tabs.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-user-actions-session_2.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-user-actions-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-body.cjs.entry.js +2 -2
- package/dist/cjs/atomic-ipx-button.cjs.entry.js +2 -2
- package/dist/cjs/atomic-ipx-embedded.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-modal.cjs.entry.js +2 -2
- package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-result-link.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-tabs.cjs.entry.js +1 -1
- package/dist/cjs/atomic-load-more-results.cjs.entry.js +1 -1
- package/dist/cjs/atomic-no-results.cjs.entry.js +1 -1
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +2 -3
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-pager.cjs.entry.js +3 -3
- package/dist/cjs/atomic-query-error.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-error.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-recs-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-refine-modal.cjs.entry.js +1 -1
- package/dist/cjs/atomic-refine-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +2 -2
- 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-result-placeholder_8.cjs.entry.js +3 -3
- package/dist/cjs/atomic-search-box-instant-results.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 +3 -3
- package/dist/cjs/atomic-search-interface.cjs.entry.js +511 -0
- package/dist/cjs/atomic-search-interface.cjs.entry.js.map +1 -0
- package/dist/cjs/atomic-smart-snippet-answer_2.cjs.entry.js +2 -2
- package/dist/cjs/atomic-smart-snippet-collapse-wrapper_2.cjs.entry.js +3 -3
- 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-stencil-facet-date-input.cjs.entry.js +3 -3
- package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-tab-bar_2.cjs.entry.js +1 -1
- package/dist/cjs/atomic-tab-button.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/{stencil-facet-guard-9573df7f.js → facet-guard-328b588d.js} +1 -2
- package/dist/cjs/facet-guard-328b588d.js.map +1 -0
- package/dist/cjs/index-757bc886.js +12 -4
- package/dist/cjs/stencil-facet-value-e67c9332.js +41 -0
- package/dist/cjs/stencil-facet-value-e67c9332.js.map +1 -0
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-568c4df9.js → analytics-config-885c56e7.js} +2 -2
- package/dist/esm/{analytics-config-568c4df9.js.map → analytics-config-885c56e7.js.map} +1 -1
- package/dist/esm/atomic-category-facet.entry.js +2 -2
- package/dist/esm/atomic-category-facet.entry.js.map +1 -1
- package/dist/esm/atomic-citation.entry.js +1 -1
- package/dist/esm/atomic-facet-manager.entry.js +1 -1
- package/dist/esm/atomic-facet-number-input.entry.js +2 -2
- package/dist/esm/atomic-facet.entry.js +449 -0
- package/dist/esm/atomic-facet.entry.js.map +1 -0
- 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-feedback-modal.entry.js +1 -1
- package/dist/esm/atomic-html.entry.js +1 -1
- package/dist/esm/atomic-insight-edit-toggle.entry.js +1 -1
- package/dist/esm/atomic-insight-facet.entry.js +10 -38
- package/dist/esm/atomic-insight-facet.entry.js.map +1 -1
- package/dist/esm/atomic-insight-folded-result-list.entry.js +1 -1
- package/dist/esm/atomic-insight-full-search-button.entry.js +1 -1
- package/dist/esm/atomic-insight-history-toggle.entry.js +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +2 -2
- package/dist/esm/atomic-insight-no-results.entry.js +1 -1
- package/dist/esm/atomic-insight-numeric-facet.entry.js +2 -2
- package/dist/esm/atomic-insight-numeric-facet.entry.js.map +1 -1
- package/dist/esm/atomic-insight-pager.entry.js +3 -3
- package/dist/esm/atomic-insight-query-error.entry.js +1 -1
- package/dist/esm/atomic-insight-refine-modal.entry.js +2 -2
- package/dist/esm/atomic-insight-refine-toggle.entry.js +1 -1
- package/dist/esm/atomic-insight-result-action.entry.js +1 -1
- package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js +1 -1
- package/dist/esm/atomic-insight-result-attach-to-case-indicator.entry.js +1 -1
- package/dist/esm/atomic-insight-result-children.entry.js +1 -1
- package/dist/esm/atomic-insight-result-list.entry.js +1 -1
- package/dist/esm/atomic-insight-result-quickview-action.entry.js +1 -1
- package/dist/esm/atomic-insight-result.entry.js +1 -1
- package/dist/esm/atomic-insight-search-box.entry.js +2 -2
- package/dist/esm/atomic-insight-smart-snippet-feedback-modal.entry.js +2 -2
- package/dist/esm/atomic-insight-tabs.entry.js +1 -1
- package/dist/esm/atomic-insight-user-actions-session_2.entry.js +1 -1
- package/dist/esm/atomic-insight-user-actions-toggle.entry.js +1 -1
- package/dist/esm/atomic-ipx-body.entry.js +2 -2
- package/dist/esm/atomic-ipx-button.entry.js +2 -2
- package/dist/esm/atomic-ipx-embedded.entry.js +1 -1
- package/dist/esm/atomic-ipx-modal.entry.js +2 -2
- package/dist/esm/atomic-ipx-recs-list.entry.js +1 -1
- package/dist/esm/atomic-ipx-refine-modal.entry.js +1 -1
- package/dist/esm/atomic-ipx-refine-toggle.entry.js +1 -1
- package/dist/esm/atomic-ipx-result-link.entry.js +1 -1
- package/dist/esm/atomic-ipx-tabs.entry.js +1 -1
- package/dist/esm/atomic-load-more-results.entry.js +1 -1
- package/dist/esm/atomic-no-results.entry.js +1 -1
- package/dist/esm/atomic-numeric-facet.entry.js +2 -3
- package/dist/esm/atomic-numeric-facet.entry.js.map +1 -1
- package/dist/esm/atomic-pager.entry.js +3 -3
- package/dist/esm/atomic-query-error.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-error.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +2 -2
- package/dist/esm/atomic-recs-list.entry.js +1 -1
- package/dist/esm/atomic-refine-modal.entry.js +1 -1
- package/dist/esm/atomic-refine-toggle.entry.js +1 -1
- package/dist/esm/atomic-relevance-inspector.entry.js +2 -2
- 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-result-placeholder_8.entry.js +3 -3
- package/dist/esm/atomic-search-box-instant-results.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 +3 -3
- package/dist/esm/atomic-search-interface.entry.js +507 -0
- package/dist/esm/atomic-search-interface.entry.js.map +1 -0
- package/dist/esm/atomic-smart-snippet-answer_2.entry.js +2 -2
- package/dist/esm/atomic-smart-snippet-collapse-wrapper_2.entry.js +3 -3
- 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-stencil-facet-date-input.entry.js +3 -3
- package/dist/esm/atomic-suggestion-renderer.entry.js +1 -1
- package/dist/esm/atomic-tab-bar_2.entry.js +1 -1
- package/dist/esm/atomic-tab-button.entry.js +1 -1
- package/dist/esm/atomic-tab-manager.entry.js +1 -1
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/{stencil-facet-guard-edbfa966.js → facet-guard-4b795e90.js} +1 -2
- package/dist/esm/facet-guard-4b795e90.js.map +1 -0
- package/dist/esm/index-3f35faca.js +12 -4
- package/dist/esm/stencil-facet-value-30dc9b6c.js +39 -0
- package/dist/esm/stencil-facet-value-30dc9b6c.js.map +1 -0
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.d.ts +4 -4
- package/dist/types/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-facet/atomic-commerce-facet.d.ts +6 -6
- package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +30 -2
- package/dist/types/components/commerce/atomic-commerce-load-more-products/atomic-commerce-load-more-products.d.ts +3 -3
- package/dist/types/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-pager/atomic-commerce-pager.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +1 -0
- package/dist/types/components/commerce/atomic-commerce-refine-modal/atomic-commerce-refine-modal.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +4 -4
- package/dist/types/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.d.ts +2 -2
- package/dist/types/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.d.ts +3 -3
- package/dist/types/components/commerce/atomic-product/atomic-product.d.ts +1 -1
- package/dist/types/components/commerce/atomic-product-section-children/atomic-product-section-children.d.ts +1 -1
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +7 -7
- package/dist/types/components/common/query-correction/trigger-correction.d.ts +2 -0
- package/dist/types/components/common/refine-modal/modal.d.ts +2 -0
- package/dist/types/components/common/suggestions/instant-item.d.ts +6 -3
- package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +44 -46
- package/dist/types/components/search/atomic-search-interface/interfaces.d.ts +1 -2
- package/dist/types/components/search/atomic-search-layout/atomic-search-layout.d.ts +1 -3
- package/dist/types/components/search/{atomic-facet → facets/atomic-facet}/atomic-facet.d.ts +9 -13
- package/dist/types/components/search/index.d.ts +0 -2
- package/dist/types/components.d.ts +338 -2
- package/docs/atomic-docs.json +7288 -6008
- package/package.json +4 -4
- package/dist/atomic/components/components/common/facets/depends-on.js +0 -62
- package/dist/atomic/components/components/common/facets/popover/popover-type.js +0 -5
- package/dist/atomic/components/components/search/atomic-facet/atomic-facet.js +0 -613
- package/dist/atomic/components/components/search/atomic-search-interface/analytics-config.js +0 -57
- package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +0 -495
- package/dist/atomic/components/stencil-facet-guard.js.map +0 -1
- package/dist/atomic/p-0edea6f9.entry.js +0 -2
- package/dist/atomic/p-4cb7756c.entry.js +0 -2
- package/dist/atomic/p-4cb7756c.entry.js.map +0 -1
- package/dist/atomic/p-6de44060.entry.js +0 -2
- package/dist/atomic/p-8fb8c4f0.entry.js.map +0 -1
- package/dist/atomic/p-97829295.entry.js +0 -2
- package/dist/atomic/p-aa3ac5aa.js.map +0 -1
- package/dist/atomic/p-c2b4b401.entry.js +0 -2
- package/dist/atomic/p-e7c6a479.entry.js.map +0 -1
- package/dist/atomic/p-fa376d3d.entry.js.map +0 -1
- package/dist/cjs/stencil-facet-guard-9573df7f.js.map +0 -1
- package/dist/esm/stencil-facet-guard-edbfa966.js.map +0 -1
- /package/dist/atomic/{p-41c5d5fa.entry.js.map → p-021f01d6.entry.js.map} +0 -0
- /package/dist/atomic/{p-a3fa6695.entry.js.map → p-035f8dc8.entry.js.map} +0 -0
- /package/dist/atomic/{p-3c532cda.entry.js.map → p-089be992.entry.js.map} +0 -0
- /package/dist/atomic/{p-7fe2dfcd.entry.js.map → p-09a3a067.entry.js.map} +0 -0
- /package/dist/atomic/{p-98da2a98.entry.js.map → p-0d333ba3.entry.js.map} +0 -0
- /package/dist/atomic/{p-0edea6f9.entry.js.map → p-1992b245.entry.js.map} +0 -0
- /package/dist/atomic/{p-2ac75719.entry.js.map → p-1d1f54a5.entry.js.map} +0 -0
- /package/dist/atomic/{p-9d023f0b.entry.js.map → p-1ef658d8.entry.js.map} +0 -0
- /package/dist/atomic/{p-10b5e0f3.entry.js.map → p-20341936.entry.js.map} +0 -0
- /package/dist/atomic/{p-3213225f.entry.js.map → p-26a51a77.entry.js.map} +0 -0
- /package/dist/atomic/{p-15406648.entry.js.map → p-2ca352f4.entry.js.map} +0 -0
- /package/dist/atomic/{p-926fe2d7.entry.js.map → p-2ce8220a.entry.js.map} +0 -0
- /package/dist/atomic/{p-97e42c43.entry.js.map → p-31aa052e.entry.js.map} +0 -0
- /package/dist/atomic/{p-7a6468a7.entry.js.map → p-36fab158.entry.js.map} +0 -0
- /package/dist/atomic/{p-9727f36b.entry.js.map → p-37374964.entry.js.map} +0 -0
- /package/dist/atomic/{p-7b1a3cab.entry.js.map → p-3a2c900c.entry.js.map} +0 -0
- /package/dist/atomic/{p-5adbf098.entry.js.map → p-3b023e83.entry.js.map} +0 -0
- /package/dist/atomic/{p-0610b3e7.entry.js.map → p-3b20b011.entry.js.map} +0 -0
- /package/dist/atomic/{p-c08f4ee6.entry.js.map → p-3f912e98.entry.js.map} +0 -0
- /package/dist/atomic/{p-9e771351.entry.js.map → p-40635c2d.entry.js.map} +0 -0
- /package/dist/atomic/{p-c9fe4f77.entry.js.map → p-43d708cb.entry.js.map} +0 -0
- /package/dist/atomic/{p-b0c50194.entry.js.map → p-48f57fd8.entry.js.map} +0 -0
- /package/dist/atomic/{p-454a0328.entry.js.map → p-49c38b27.entry.js.map} +0 -0
- /package/dist/atomic/{p-24df7251.entry.js.map → p-4c2f230f.entry.js.map} +0 -0
- /package/dist/atomic/{p-f0012580.entry.js.map → p-594488f2.entry.js.map} +0 -0
- /package/dist/atomic/{p-b4ad3036.entry.js.map → p-5f1fa581.entry.js.map} +0 -0
- /package/dist/atomic/{p-8df7270f.entry.js.map → p-604c4085.entry.js.map} +0 -0
- /package/dist/atomic/{p-d50c96c2.entry.js.map → p-627e1265.entry.js.map} +0 -0
- /package/dist/atomic/{p-004adbb8.entry.js.map → p-6329ff94.entry.js.map} +0 -0
- /package/dist/atomic/{p-e3af1bb4.entry.js.map → p-6e6d686e.entry.js.map} +0 -0
- /package/dist/atomic/{p-79a9a372.entry.js.map → p-744da781.entry.js.map} +0 -0
- /package/dist/atomic/{p-4b1bf2fd.entry.js.map → p-77205925.entry.js.map} +0 -0
- /package/dist/atomic/{p-e6a7e7b2.entry.js.map → p-7dfcd6af.entry.js.map} +0 -0
- /package/dist/atomic/{p-c8d29aa6.entry.js.map → p-7e2109e9.entry.js.map} +0 -0
- /package/dist/atomic/{p-9147b0db.entry.js.map → p-8256cd44.entry.js.map} +0 -0
- /package/dist/atomic/{p-0e27d4f2.entry.js.map → p-83c9244a.entry.js.map} +0 -0
- /package/dist/atomic/{p-1140ac4d.entry.js.map → p-89085429.entry.js.map} +0 -0
- /package/dist/atomic/{p-828cea10.entry.js.map → p-89ab44de.entry.js.map} +0 -0
- /package/dist/atomic/{p-bd99fcc1.entry.js.map → p-939eaaac.entry.js.map} +0 -0
- /package/dist/atomic/{p-9b92b4e2.entry.js.map → p-93e29b24.entry.js.map} +0 -0
- /package/dist/atomic/{p-b6377fb6.entry.js.map → p-98c5b9b8.entry.js.map} +0 -0
- /package/dist/atomic/{p-bf49fed3.entry.js.map → p-99b8d52d.entry.js.map} +0 -0
- /package/dist/atomic/{p-160553ce.entry.js.map → p-a3efa89e.entry.js.map} +0 -0
- /package/dist/atomic/{p-c538c8ac.entry.js.map → p-a53c7821.entry.js.map} +0 -0
- /package/dist/atomic/{p-85f165af.entry.js.map → p-a8882a2a.entry.js.map} +0 -0
- /package/dist/atomic/{p-ce41c447.entry.js.map → p-ae060711.entry.js.map} +0 -0
- /package/dist/atomic/{p-b4c34553.entry.js.map → p-b0b17e21.entry.js.map} +0 -0
- /package/dist/atomic/{p-e1c99e2e.entry.js.map → p-b2ff1330.entry.js.map} +0 -0
- /package/dist/atomic/{p-618c6967.entry.js.map → p-b6963bae.entry.js.map} +0 -0
- /package/dist/atomic/{p-dee60597.entry.js.map → p-bc0d6d3d.entry.js.map} +0 -0
- /package/dist/atomic/{p-0e5dc57f.entry.js.map → p-c126ee6b.entry.js.map} +0 -0
- /package/dist/atomic/{p-754909fe.entry.js.map → p-c1999888.entry.js.map} +0 -0
- /package/dist/atomic/{p-00a6ab8c.entry.js.map → p-d0f47b33.entry.js.map} +0 -0
- /package/dist/atomic/{p-97829295.entry.js.map → p-d24d34a7.entry.js.map} +0 -0
- /package/dist/atomic/{p-7f40e57d.entry.js.map → p-d364064c.entry.js.map} +0 -0
- /package/dist/atomic/{p-856e858c.entry.js.map → p-d785121d.entry.js.map} +0 -0
- /package/dist/atomic/{p-7d63bf7b.entry.js.map → p-d93adf52.entry.js.map} +0 -0
- /package/dist/atomic/{p-2a4e9425.entry.js.map → p-de066001.entry.js.map} +0 -0
- /package/dist/atomic/{p-0bc9b088.js.map → p-df723535.js.map} +0 -0
- /package/dist/atomic/{p-8a7a23b7.entry.js.map → p-e162805d.entry.js.map} +0 -0
- /package/dist/atomic/{p-441b1a7b.entry.js.map → p-e23b3334.entry.js.map} +0 -0
- /package/dist/atomic/{p-c2b4b401.entry.js.map → p-e2afb475.entry.js.map} +0 -0
- /package/dist/atomic/{p-bd32625e.entry.js.map → p-ea446721.entry.js.map} +0 -0
- /package/dist/atomic/{p-07b6424c.entry.js.map → p-ee6771f1.entry.js.map} +0 -0
- /package/dist/atomic/{p-abb14108.entry.js.map → p-f0c2dfe8.entry.js.map} +0 -0
- /package/dist/atomic/{p-cc68642f.entry.js.map → p-f289269f.entry.js.map} +0 -0
- /package/dist/atomic/{p-d4ad7336.entry.js.map → p-fa8b7c4c.entry.js.map} +0 -0
- /package/dist/atomic/{p-fb1a1e2e.entry.js.map → p-fbfe913d.entry.js.map} +0 -0
- /package/dist/atomic/{p-f936f55e.entry.js.map → p-fea7bf3b.entry.js.map} +0 -0
- /package/dist/types/components/common/facets/{stencil-facet-guard.d.ts → facet-guard.d.ts} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { h } from './index-3f35faca.js';
|
|
2
|
+
import { g as getFieldValueCaption } from './field-utils-f0146383.js';
|
|
3
|
+
import { F as FacetValueBox } from './stencil-facet-value-box-b0dc7e73.js';
|
|
4
|
+
import { F as FacetValueCheckbox } from './stencil-facet-value-checkbox-0637f7f8.js';
|
|
5
|
+
import { F as FacetValueLabelHighlight } from './stencil-facet-value-label-highlight-b4083ffd.js';
|
|
6
|
+
import { F as FacetValueLink } from './stencil-facet-value-link-88512e29.js';
|
|
7
|
+
|
|
8
|
+
const FacetValue = ({ facetSearchQuery, displayValuesAs, enableExclusion, facetCount, facetState, facetValue, field, i18n, onExclude, onSelect, setRef, }) => {
|
|
9
|
+
const displayValue = getFieldValueCaption(field, facetValue, i18n);
|
|
10
|
+
const isSelected = facetState === 'selected';
|
|
11
|
+
const isExcluded = facetState === 'excluded';
|
|
12
|
+
const triStateProps = enableExclusion
|
|
13
|
+
? {
|
|
14
|
+
onExclude,
|
|
15
|
+
state: facetState,
|
|
16
|
+
}
|
|
17
|
+
: {};
|
|
18
|
+
switch (displayValuesAs) {
|
|
19
|
+
case 'checkbox':
|
|
20
|
+
return (h(FacetValueCheckbox, { ...triStateProps, displayValue: displayValue, numberOfResults: facetCount, isSelected: isSelected, i18n: i18n, onClick: onSelect, searchQuery: facetSearchQuery, buttonRef: (element) => {
|
|
21
|
+
setRef && setRef(element);
|
|
22
|
+
} },
|
|
23
|
+
h(FacetValueLabelHighlight, { displayValue: displayValue, isSelected: isSelected, isExcluded: isExcluded, searchQuery: facetSearchQuery })));
|
|
24
|
+
case 'link':
|
|
25
|
+
return (h(FacetValueLink, { displayValue: displayValue, numberOfResults: facetCount, isSelected: isSelected, i18n: i18n, onClick: onSelect, searchQuery: facetSearchQuery, buttonRef: (element) => {
|
|
26
|
+
setRef && setRef(element);
|
|
27
|
+
} },
|
|
28
|
+
h(FacetValueLabelHighlight, { displayValue: displayValue, isSelected: isSelected, searchQuery: facetSearchQuery })));
|
|
29
|
+
case 'box':
|
|
30
|
+
return (h(FacetValueBox, { displayValue: displayValue, numberOfResults: facetCount, isSelected: isSelected, i18n: i18n, onClick: onSelect, searchQuery: facetSearchQuery, buttonRef: (element) => {
|
|
31
|
+
setRef && setRef(element);
|
|
32
|
+
} },
|
|
33
|
+
h(FacetValueLabelHighlight, { displayValue: displayValue, isSelected: isSelected, searchQuery: facetSearchQuery })));
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export { FacetValue as F };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=stencil-facet-value-30dc9b6c.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"stencil-facet-value-30dc9b6c.js","mappings":";;;;;;;MAsBa,UAAU,GAAyC,CAAC,EAC/D,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,EACL,IAAI,EACJ,SAAS,EACT,QAAQ,EACR,MAAM,GACP;IACC,MAAM,YAAY,GAAG,oBAAoB,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC;IACnE,MAAM,UAAU,GAAG,UAAU,KAAK,UAAU,CAAC;IAC7C,MAAM,UAAU,GAAG,UAAU,KAAK,UAAU,CAAC;IAC7C,MAAM,aAAa,GAAG,eAAe;UACjC;YACE,SAAS;YACT,KAAK,EAAE,UAAU;SAClB;UACD,EAAE,CAAC;IACP,QAAQ,eAAe;QACrB,KAAK,UAAU;YACb,QACE,EAAC,kBAAkB,OACb,aAAa,EACjB,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,UAAU,EAC3B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,QAAQ,EACjB,WAAW,EAAE,gBAAgB,EAC7B,SAAS,EAAE,CAAC,OAAO;oBACjB,MAAM,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;iBAC3B;gBAED,EAAC,wBAAwB,IACvB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,gBAAgB,GACH,CACT,EACrB;QACJ,KAAK,MAAM;YACT,QACE,EAAC,cAAc,IACb,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,UAAU,EAC3B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,QAAQ,EACjB,WAAW,EAAE,gBAAgB,EAC7B,SAAS,EAAE,CAAC,OAAO;oBACjB,MAAM,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;iBAC3B;gBAED,EAAC,wBAAwB,IACvB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,gBAAgB,GACH,CACb,EACjB;QACJ,KAAK,KAAK;YACR,QACE,EAAC,aAAa,IACZ,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,UAAU,EAC3B,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,QAAQ,EACjB,WAAW,EAAE,gBAAgB,EAC7B,SAAS,EAAE,CAAC,OAAO;oBACjB,MAAM,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;iBAC3B;gBAED,EAAC,wBAAwB,IACvB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,WAAW,EAAE,gBAAgB,GACH,CACd,EAChB;KACL;AACH;;;;","names":[],"sources":["src/components/common/facets/facet-value/stencil-facet-value.tsx"],"sourcesContent":["import {FunctionalComponent, h} from '@stencil/core';\nimport {i18n} from 'i18next';\nimport {getFieldValueCaption} from '../../../../utils/field-utils';\nimport {FacetValueBox} from '../facet-value-box/stencil-facet-value-box';\nimport {FacetValueCheckbox} from '../facet-value-checkbox/stencil-facet-value-checkbox';\nimport {FacetValueLabelHighlight} from '../facet-value-label-highlight/stencil-facet-value-label-highlight';\nimport {FacetValueLink} from '../facet-value-link/stencil-facet-value-link';\n\nexport interface FacetValueProps {\n field: string;\n facetValue: string;\n facetCount: number;\n facetState: 'idle' | 'selected' | 'excluded';\n i18n: i18n;\n enableExclusion: boolean;\n onExclude: () => void;\n onSelect: () => void;\n displayValuesAs: 'checkbox' | 'link' | 'box';\n facetSearchQuery: string;\n setRef?: (btn?: HTMLButtonElement) => void;\n}\n\nexport const FacetValue: FunctionalComponent<FacetValueProps> = ({\n facetSearchQuery,\n displayValuesAs,\n enableExclusion,\n facetCount,\n facetState,\n facetValue,\n field,\n i18n,\n onExclude,\n onSelect,\n setRef,\n}) => {\n const displayValue = getFieldValueCaption(field, facetValue, i18n);\n const isSelected = facetState === 'selected';\n const isExcluded = facetState === 'excluded';\n const triStateProps = enableExclusion\n ? {\n onExclude,\n state: facetState,\n }\n : {};\n switch (displayValuesAs) {\n case 'checkbox':\n return (\n <FacetValueCheckbox\n {...triStateProps}\n displayValue={displayValue}\n numberOfResults={facetCount}\n isSelected={isSelected}\n i18n={i18n}\n onClick={onSelect}\n searchQuery={facetSearchQuery}\n buttonRef={(element) => {\n setRef && setRef(element);\n }}\n >\n <FacetValueLabelHighlight\n displayValue={displayValue}\n isSelected={isSelected}\n isExcluded={isExcluded}\n searchQuery={facetSearchQuery}\n ></FacetValueLabelHighlight>\n </FacetValueCheckbox>\n );\n case 'link':\n return (\n <FacetValueLink\n displayValue={displayValue}\n numberOfResults={facetCount}\n isSelected={isSelected}\n i18n={i18n}\n onClick={onSelect}\n searchQuery={facetSearchQuery}\n buttonRef={(element) => {\n setRef && setRef(element);\n }}\n >\n <FacetValueLabelHighlight\n displayValue={displayValue}\n isSelected={isSelected}\n searchQuery={facetSearchQuery}\n ></FacetValueLabelHighlight>\n </FacetValueLink>\n );\n case 'box':\n return (\n <FacetValueBox\n displayValue={displayValue}\n numberOfResults={facetCount}\n isSelected={isSelected}\n i18n={i18n}\n onClick={onSelect}\n searchQuery={facetSearchQuery}\n buttonRef={(element) => {\n setRef && setRef(element);\n }}\n >\n <FacetValueLabelHighlight\n displayValue={displayValue}\n isSelected={isSelected}\n searchQuery={facetSearchQuery}\n ></FacetValueLabelHighlight>\n </FacetValueBox>\n );\n }\n};\n"],"version":3}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const headlessVersion = '3.31.1-pre.
|
|
2
|
-
export const atomicVersion = '3.33.8-pre.
|
|
1
|
+
export const headlessVersion = '3.31.1-pre.3524c75f47';
|
|
2
|
+
export const atomicVersion = '3.33.8-pre.3524c75f47';
|
|
@@ -4,7 +4,7 @@ import { LitElement } from 'lit';
|
|
|
4
4
|
import type { CommerceBindings } from "../atomic-commerce-interface/atomic-commerce-interface";
|
|
5
5
|
import type { InitializableComponent } from "../../../decorators/types";
|
|
6
6
|
/**
|
|
7
|
-
* A facet is a list of values for a certain field occurring in the
|
|
7
|
+
* A facet is a list of values for a certain field occurring in the products.
|
|
8
8
|
* An `atomic-commerce-category-facet` displays a facet of values in a browsable, hierarchical fashion.
|
|
9
9
|
*
|
|
10
10
|
* @part facet - The wrapper for the entire facet.
|
|
@@ -20,9 +20,9 @@ import type { InitializableComponent } from "../../../decorators/types";
|
|
|
20
20
|
* @part more-matches - The label indicating there are more matches for the current facet search query.
|
|
21
21
|
* @part no-matches - The label indicating there are no matches for the current facet search query.
|
|
22
22
|
* @part matches-query - The highlighted query inside the matches labels.
|
|
23
|
-
* @part search-results - The search results container.
|
|
24
|
-
* @part search-result - The search result value.
|
|
25
|
-
* @part search-result-path - The search result path.
|
|
23
|
+
* @part search-results - The facet search results container.
|
|
24
|
+
* @part search-result - The facet search result value.
|
|
25
|
+
* @part search-result-path - The facet search result path.
|
|
26
26
|
* @part search-highlight - The highlighted query inside the facet values.
|
|
27
27
|
*
|
|
28
28
|
* @part parents - The container surrounding the whole hierarchy of values.
|
|
@@ -5,7 +5,7 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
5
5
|
/**
|
|
6
6
|
* The `atomic-commerce-did-you-mean` component is responsible for handling query corrections. When a query returns no products but finds a possible query correction, the component either suggests the correction or automatically triggers a new query with the suggested term.
|
|
7
7
|
*
|
|
8
|
-
* @part no-results - The text displayed when there are no
|
|
8
|
+
* @part no-results - The text displayed when there are no products.
|
|
9
9
|
* @part auto-corrected - The text displayed for the automatically corrected query.
|
|
10
10
|
* @part showing-results-for - The first paragraph of the text displayed when a query trigger changes a query.
|
|
11
11
|
* @part search-instead-for - The second paragraph of the text displayed when a query trigger changes a query.
|
|
@@ -13,10 +13,10 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
13
13
|
* @part clear-button - The button that resets the actively selected facet values.
|
|
14
14
|
* @part clear-button-icon - The clear button icon.
|
|
15
15
|
*
|
|
16
|
-
* @part search-wrapper - The search box wrapper.
|
|
17
|
-
* @part search-input - The search box input.
|
|
18
|
-
* @part search-icon - The search box submit button.
|
|
19
|
-
* @part search-clear-button - The button to clear the search box of input.
|
|
16
|
+
* @part search-wrapper - The facet search box wrapper.
|
|
17
|
+
* @part search-input - The facet search box input.
|
|
18
|
+
* @part search-icon - The facet search box submit button.
|
|
19
|
+
* @part search-clear-button - The button to clear the facet search box of input.
|
|
20
20
|
* @part more-matches - The label indicating there are more matches for the current facet search query.
|
|
21
21
|
* @part no-matches - The label indicating there are no matches for the current facet search query.
|
|
22
22
|
* @part matches-query - The highlighted query inside the matches labels.
|
|
@@ -31,8 +31,8 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
31
31
|
* @part value-checkbox-label - The facet value checkbox clickable label, available when display is 'checkbox'.
|
|
32
32
|
* @part value-checkbox-icon - The facet value checkbox icon, available when display is 'checkbox'.
|
|
33
33
|
*
|
|
34
|
-
* @part show-more - The show more
|
|
35
|
-
* @part show-less - The show less
|
|
34
|
+
* @part show-more - The show more values button.
|
|
35
|
+
* @part show-less - The show less values button.
|
|
36
36
|
* @part show-more-less-icon - The icons of the show more & show less buttons.
|
|
37
37
|
*/
|
|
38
38
|
export declare class AtomicCommerceFacet extends LitElement implements InitializableComponent<CommerceBindings> {
|
package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CommerceEngine, type CommerceEngineConfiguration, type Context, type LogLevel, type ProductListing, type ProductListingSummaryState, type Search, type SearchSummaryState, type Summary, type UrlManager } from '@coveo/headless/commerce';
|
|
2
|
+
import type { CurrencyCodeISO4217 } from '@coveo/relay-event-types';
|
|
2
3
|
import { type i18n } from 'i18next';
|
|
3
4
|
import { type CSSResultGroup, LitElement } from 'lit';
|
|
4
5
|
import type { CommonBindings } from '../../common/interface/bindings';
|
|
@@ -49,7 +50,13 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
|
49
50
|
/**
|
|
50
51
|
* The commerce interface language.
|
|
51
52
|
*
|
|
52
|
-
* Will default to the value set in the Headless engine context if not
|
|
53
|
+
* Will default to the value set in the Headless engine context if not
|
|
54
|
+
* provided.
|
|
55
|
+
*
|
|
56
|
+
* @deprecated - This property will be removed in the next major version of
|
|
57
|
+
* Atomic (v4). Rather than using this property, set the initial language
|
|
58
|
+
* through the engine configuration when calling `initializeWithEngine`, and
|
|
59
|
+
* update the language as needed using the `updateLocale` method.
|
|
53
60
|
*/
|
|
54
61
|
language?: string;
|
|
55
62
|
/**
|
|
@@ -62,7 +69,7 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
|
62
69
|
*/
|
|
63
70
|
reflectStateInUrl: boolean;
|
|
64
71
|
/**
|
|
65
|
-
*
|
|
72
|
+
* Disable state reflection in the URL parameters.
|
|
66
73
|
*/
|
|
67
74
|
disableStateReflectionInUrl: boolean;
|
|
68
75
|
/**
|
|
@@ -100,6 +107,26 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
|
100
107
|
* Executes the first request after initializing connection to the headless commerce engine.
|
|
101
108
|
*/
|
|
102
109
|
executeFirstRequest(): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Updates the locale settings for the commerce interface and headless commerce
|
|
112
|
+
* engine. Only the provided parameters will be updated.
|
|
113
|
+
*
|
|
114
|
+
* Calling this method affects the localization of the interface as well as
|
|
115
|
+
* the catalog configuration being used by the Commerce API. If the resulting
|
|
116
|
+
* language-country-currency combination matches no existing catalog
|
|
117
|
+
* configuration in your Coveo organization, requests made through the
|
|
118
|
+
* commerce engine will start failing.
|
|
119
|
+
*
|
|
120
|
+
* @param language - (Optional) The IETF language code tag (e.g., `en`).
|
|
121
|
+
* @param country - (Optional) The ISO-3166-1 country tag (e.g., `US`).
|
|
122
|
+
* @param currency - (Optional) The ISO-4217 currency code (e.g., `USD`).
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* ```typescript
|
|
126
|
+
* interface.updateLocale('fr', 'CA', 'CAD');
|
|
127
|
+
* ```
|
|
128
|
+
*/
|
|
129
|
+
updateLocale(language?: string, country?: string, currency?: CurrencyCodeISO4217): void;
|
|
103
130
|
toggleAnalytics(): void;
|
|
104
131
|
updateIconAssetsPath(): void;
|
|
105
132
|
updateLanguage(): void;
|
|
@@ -115,6 +142,7 @@ export declare class AtomicCommerceInterface extends AtomicCommerceInterface_bas
|
|
|
115
142
|
private initSummary;
|
|
116
143
|
private initUrlManager;
|
|
117
144
|
private internalInitialization;
|
|
145
|
+
private isNewLocale;
|
|
118
146
|
private onHashChange;
|
|
119
147
|
scrollToTop(): void;
|
|
120
148
|
private updateHash;
|
|
@@ -8,11 +8,11 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
8
8
|
* @part container - The container of the component.
|
|
9
9
|
* @part showing-results - The summary displaying which products are shown and how many are available.
|
|
10
10
|
* @part highlight - The highlighted number of products displayed and number of products available.
|
|
11
|
-
* @part progress-bar - The progress bar displaying a percentage of
|
|
11
|
+
* @part progress-bar - The progress bar displaying a percentage of products shown over the total number of products available.
|
|
12
12
|
* @part load-more-results-button - The "Load more products" button.
|
|
13
13
|
*
|
|
14
|
-
* @cssprop --atomic-more-results-progress-bar-color-from - Color of the start of the gradient for the load more
|
|
15
|
-
* @cssprop --atomic-more-results-progress-bar-color-to - Color of the end of the gradient for the load more
|
|
14
|
+
* @cssprop --atomic-more-results-progress-bar-color-from - Color of the start of the gradient for the load more products progress bar.
|
|
15
|
+
* @cssprop --atomic-more-results-progress-bar-color-to - Color of the end of the gradient for the load more products progress bar.
|
|
16
16
|
*/
|
|
17
17
|
export declare class AtomicCommerceLoadMoreProducts extends LitElement implements InitializableComponent<CommerceBindings> {
|
|
18
18
|
bindings: CommerceBindings;
|
|
@@ -13,7 +13,7 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
13
13
|
* @part clear-button-icon - The icon displayed in the clear button.
|
|
14
14
|
* @part values - The list container for all facet values.
|
|
15
15
|
* @part value-label - The text label for individual facet values.
|
|
16
|
-
* @part value-count - The count indicator showing the number of
|
|
16
|
+
* @part value-count - The count indicator showing the number of products for each value.
|
|
17
17
|
* @part value-checkbox-label - The label associated with facet value checkboxes.
|
|
18
18
|
* @part value-exclude-button - The button to exclude specific facet values.
|
|
19
19
|
* @part input-form - The form container for numeric range inputs.
|
|
@@ -3,7 +3,7 @@ import { LitElement } from 'lit';
|
|
|
3
3
|
import type { InitializableComponent } from "../../../decorators/types";
|
|
4
4
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
5
5
|
/**
|
|
6
|
-
* The `atomic-commerce-pager` component enables users to navigate through paginated
|
|
6
|
+
* The `atomic-commerce-pager` component enables users to navigate through paginated products.
|
|
7
7
|
*
|
|
8
8
|
* @part buttons - The list of all buttons rendered by the component.
|
|
9
9
|
* @part page-buttons - The list of all page buttons.
|
|
@@ -10,7 +10,7 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
10
10
|
* @part title - The title of the modal.
|
|
11
11
|
* @part close-button - The button in the header that closes the modal.
|
|
12
12
|
* @part close-icon - The icon of the close button.
|
|
13
|
-
* @part footer-content - The wrapper around the content inside the footer of the modal, containing the button to view
|
|
13
|
+
* @part footer-content - The wrapper around the content inside the footer of the modal, containing the button to view the products.
|
|
14
14
|
* @part footer-button - The button in the footer that closes the modal.
|
|
15
15
|
* @part footer-button-text - The text inside the button in the footer that closes the modal.
|
|
16
16
|
* @part footer-button-count - The count inside the button in the footer that closes the modal.
|
package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import '../atomic-commerce-search-box-instant-products/atomic-commerce-search-bo
|
|
|
7
7
|
import '../atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions';
|
|
8
8
|
import '../atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries';
|
|
9
9
|
/**
|
|
10
|
-
* The `atomic-commerce-search-box` component enables users to perform product searches with built-in query suggestions and optional redirection to a search
|
|
10
|
+
* The `atomic-commerce-search-box` component enables users to perform product searches with built-in query suggestions and optional redirection to a search page.
|
|
11
11
|
*
|
|
12
12
|
* @slot default - The default slot where you can add child components to the search box.
|
|
13
13
|
*
|
|
@@ -44,8 +44,8 @@ import '../atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-
|
|
|
44
44
|
* @part recent-query-title - The "recent searches" text of the clear button above suggestions from the `atomic-commerce-search-box-recent-queries` component.
|
|
45
45
|
* @part recent-query-clear - The "clear" text of the clear button above suggestions from the `atomic-commerce-search-box-recent-queries` component.
|
|
46
46
|
*
|
|
47
|
-
* @part instant-results-item - An instant
|
|
48
|
-
* @part instant-results-show-all - The clickable suggestion to show all items for the current instant
|
|
47
|
+
* @part instant-results-item - An instant product rendered by an `atomic-commerce-search-box-instant-products` component.
|
|
48
|
+
* @part instant-results-show-all - The clickable suggestion to show all items for the current instant product search rendered by an `atomic-commerce-search-box-instant-products` component.
|
|
49
49
|
* @part instant-results-show-all-button - The button inside the clickable suggestion from the `atomic-commerce-search-box-instant-products` component.
|
|
50
50
|
*
|
|
51
51
|
* @event redirect - Event that is emitted when a standalone search box redirection is triggered. By default, the search box will directly change the URL and redirect accordingly, so if you want to handle the redirection differently, use this event.
|
|
@@ -106,7 +106,7 @@ export declare class AtomicCommerceSearchBox extends LitElement implements Initi
|
|
|
106
106
|
minimumQueryLength: number;
|
|
107
107
|
/**
|
|
108
108
|
* Whether to clear all active query filters when the end user submits a new query from the search box.
|
|
109
|
-
* Setting this option to "false" is not recommended & can lead to an increasing number of queries returning no
|
|
109
|
+
* Setting this option to "false" is not recommended & can lead to an increasing number of queries returning no products.
|
|
110
110
|
*/
|
|
111
111
|
clearFilters: boolean;
|
|
112
112
|
connectedCallback(): void;
|
|
@@ -11,7 +11,7 @@ export type AriaLabelGenerator = (bindings: CommerceBindings, product: Product)
|
|
|
11
11
|
*
|
|
12
12
|
* This component is not supported on mobile.
|
|
13
13
|
*
|
|
14
|
-
* @part instant-results-show-all-button - The 'See all
|
|
14
|
+
* @part instant-results-show-all-button - The 'See all products' button.
|
|
15
15
|
* @part instant-results-item - The individual instant product item.
|
|
16
16
|
*
|
|
17
17
|
* @slot default - The default slot where the instant products are rendered.
|
|
@@ -26,7 +26,7 @@ export declare class AtomicCommerceSearchBoxInstantProducts extends LitElement i
|
|
|
26
26
|
error: Error;
|
|
27
27
|
private templateHasError;
|
|
28
28
|
/**
|
|
29
|
-
* Sets a rendering function to bypass the standard HTML template mechanism for rendering
|
|
29
|
+
* Sets a rendering function to bypass the standard HTML template mechanism for rendering products.
|
|
30
30
|
* You can use this function while working with web frameworks that don't use plain HTML syntax, e.g., React, Angular or Vue.
|
|
31
31
|
*
|
|
32
32
|
* Do not use this method if you integrate Atomic in a plain HTML deployment.
|
|
@@ -4,8 +4,8 @@ import type { InitializableComponent } from "../../../decorators/types";
|
|
|
4
4
|
import '../../common/atomic-facet-date-input/atomic-facet-date-input';
|
|
5
5
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
|
6
6
|
/**
|
|
7
|
-
* A facet is a list of values for a certain field occurring in the
|
|
8
|
-
* An `atomic-commerce-timeframe-facet` displays a facet of the
|
|
7
|
+
* A facet is a list of values for a certain field occurring in the products.
|
|
8
|
+
* An `atomic-commerce-timeframe-facet` displays a facet of the products for the current query as date intervals.
|
|
9
9
|
*
|
|
10
10
|
* @part facet - The wrapper for the entire facet.
|
|
11
11
|
* @part label-button - The header button to expand/collapse the facet.
|
|
@@ -15,7 +15,7 @@ import type { CommerceBindings } from '../atomic-commerce-interface/atomic-comme
|
|
|
15
15
|
* @part values - The container for the facet values list.
|
|
16
16
|
* @part value-link - A facet value button.
|
|
17
17
|
* @part value-link-selected - A selected facet value button.
|
|
18
|
-
* @part value-count - The
|
|
18
|
+
* @part value-count - The product count for a facet value.
|
|
19
19
|
* @part value-label - The label text of a facet value.
|
|
20
20
|
* @part input-label - The label for date input fields.
|
|
21
21
|
* @part input-start - The start date input field.
|
|
@@ -39,7 +39,7 @@ export declare class AtomicProduct extends AtomicProduct_base {
|
|
|
39
39
|
/**
|
|
40
40
|
* The product link to use when the product is clicked in a grid layout.
|
|
41
41
|
*
|
|
42
|
-
* @default - An `atomic-
|
|
42
|
+
* @default - An `atomic-product-link` without any customization.
|
|
43
43
|
*/
|
|
44
44
|
linkContent: ParentNode;
|
|
45
45
|
/**
|
|
@@ -4,7 +4,7 @@ declare const AtomicProductSectionChildren_base: typeof LitElement;
|
|
|
4
4
|
* This section is meant to render child products, available when using the <atomic-product-children> component.
|
|
5
5
|
*
|
|
6
6
|
* Behavior:
|
|
7
|
-
* * Shows children at the bottom of the
|
|
7
|
+
* * Shows children at the bottom of the product, indented and wrapped in a border.
|
|
8
8
|
*
|
|
9
9
|
* @slot default - The child products to display.
|
|
10
10
|
*/
|
|
@@ -3,7 +3,7 @@ import { LitElement } from 'lit';
|
|
|
3
3
|
import type { LitElementWithError } from "../../../decorators/types";
|
|
4
4
|
import '../atomic-product/atomic-product';
|
|
5
5
|
/**
|
|
6
|
-
* * A product template determines the format of the
|
|
6
|
+
* * A product template determines the format of the products, depending on the conditions that are defined for each template.
|
|
7
7
|
*
|
|
8
8
|
* A `template` element must be the child of an `atomic-product-template`. Furthermore, an `atomic-commerce-product-list`, `atomic-commerce-recommendation-list`, or `atomic-commerce-search-box-instant-products` must be the parent of each `atomic-product-template`.
|
|
9
9
|
*
|
|
@@ -25,17 +25,17 @@ export declare class AtomicProductTemplate extends LitElement implements LitElem
|
|
|
25
25
|
*/
|
|
26
26
|
conditions: ProductTemplateCondition[];
|
|
27
27
|
/**
|
|
28
|
-
* The field and values that define which
|
|
29
|
-
* For example, a template with the following attribute only applies to
|
|
30
|
-
* `must-match-
|
|
28
|
+
* The field and values that define which products the condition must be applied to.
|
|
29
|
+
* For example, a template with the following attribute only applies to products whose `ec_brand` is `Barca` or `Acme`:
|
|
30
|
+
* `must-match-ec_brand="Barca,Acme"`
|
|
31
31
|
* @type {Record<string, string[]>}
|
|
32
32
|
* @default {}
|
|
33
33
|
*/
|
|
34
34
|
mustMatch: Record<string, string[]>;
|
|
35
35
|
/**
|
|
36
|
-
* The field and values that define which
|
|
37
|
-
* For example, a template with the following attribute only applies to
|
|
38
|
-
* `must-not-match-
|
|
36
|
+
* The field and values that define which products the condition must not be applied to.
|
|
37
|
+
* For example, a template with the following attribute only applies to products whose `ec_brand` is not `Barca`:
|
|
38
|
+
* `must-not-match-ec_brand="Barca"`
|
|
39
39
|
* @type {Record<string, string[]>}
|
|
40
40
|
* @default {}
|
|
41
41
|
*/
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { i18n } from 'i18next';
|
|
2
2
|
import type { FunctionalComponent } from "../../../utils/functional-component-utils";
|
|
3
|
+
type TriggerCorrectionShowingItemsForKey = 'showing-products-for' | 'showing-results-for';
|
|
3
4
|
interface Props {
|
|
4
5
|
i18n: i18n;
|
|
6
|
+
i18nKeyShowingItemsFor: TriggerCorrectionShowingItemsForKey;
|
|
5
7
|
correctedQuery: string;
|
|
6
8
|
originalQuery: string;
|
|
7
9
|
onClick: () => void;
|
|
@@ -2,9 +2,11 @@ import type { i18n } from 'i18next';
|
|
|
2
2
|
import type { FunctionalComponentWithChildren } from "../../../utils/functional-component-utils";
|
|
3
3
|
import '../atomic-modal/atomic-modal';
|
|
4
4
|
import '../atomic-icon/atomic-icon';
|
|
5
|
+
type RefineModalFooterButtonTextKey = 'view-products' | 'view-results';
|
|
5
6
|
interface RefineModalProps {
|
|
6
7
|
host: HTMLElement;
|
|
7
8
|
i18n: i18n;
|
|
9
|
+
i18nFooterButtonTextKey: RefineModalFooterButtonTextKey;
|
|
8
10
|
onClose(): void;
|
|
9
11
|
title: string;
|
|
10
12
|
numberOfItems: number;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { i18n } from 'i18next';
|
|
2
2
|
import type { SearchBoxSuggestionElement } from './suggestions-types';
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
3
|
+
type InstantItemSuggestionLabelKey = 'instant-results-suggestion-label' | 'instant-products-suggestion-label';
|
|
4
|
+
export declare const getPartialInstantItemElement: (i18n: i18n, i18nKey: InstantItemSuggestionLabelKey, itemTitle: string, itemUniqueId: string) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part">;
|
|
5
|
+
type InstantItemShowAllLabelKey = 'show-all-products' | 'show-all-results';
|
|
6
|
+
export declare const getPartialInstantItemShowAllElement: (i18n: i18n, i18nKey: InstantItemShowAllLabelKey) => Pick<SearchBoxSuggestionElement, "key" | "part" | "ariaLabel">;
|
|
5
7
|
interface InstantItemShowAllButtonProps {
|
|
6
8
|
i18n: i18n;
|
|
9
|
+
i18nKey: InstantItemShowAllLabelKey;
|
|
7
10
|
}
|
|
8
|
-
export declare const renderInstantItemShowAllButton: ({ i18n, }: InstantItemShowAllButtonProps) => HTMLElement;
|
|
11
|
+
export declare const renderInstantItemShowAllButton: ({ i18n, i18nKey, }: InstantItemShowAllButtonProps) => HTMLElement;
|
|
9
12
|
export {};
|
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { type SearchStore } from './store';
|
|
7
|
-
import "../../common/atomic-modal/atomic-modal";
|
|
1
|
+
import { LogLevel, SearchEngine, SearchEngineConfiguration } from '@coveo/headless';
|
|
2
|
+
import { i18n } from 'i18next';
|
|
3
|
+
import { InitializeEvent } from '../../../utils/initialization-utils';
|
|
4
|
+
import { StencilBaseAtomicInterface } from '../../common/interface/interface-common-stencil';
|
|
5
|
+
import type { Bindings as _Bindings } from './interfaces';
|
|
8
6
|
export type InitializationOptions = SearchEngineConfiguration;
|
|
9
|
-
export type Bindings =
|
|
10
|
-
declare const AtomicSearchInterface_base: typeof LitElement;
|
|
7
|
+
export type Bindings = _Bindings;
|
|
11
8
|
/**
|
|
12
9
|
* The `atomic-search-interface` component is the parent to all other atomic components in a search page. It handles the headless search engine and localization configurations.
|
|
13
|
-
*
|
|
14
|
-
* @slot default - The default slot where you can add child components to the interface.
|
|
15
10
|
*/
|
|
16
|
-
export declare class AtomicSearchInterface
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
relevanceInspectorIsOpen: boolean;
|
|
20
|
-
urlManager: UrlManager;
|
|
21
|
-
searchStatus: SearchStatus;
|
|
11
|
+
export declare class AtomicSearchInterface implements StencilBaseAtomicInterface<SearchEngine> {
|
|
12
|
+
private urlManager;
|
|
13
|
+
private searchStatus;
|
|
22
14
|
private unsubscribeUrlManager;
|
|
23
15
|
private unsubscribeSearchStatus;
|
|
24
16
|
private initialized;
|
|
25
17
|
private store;
|
|
26
|
-
private
|
|
27
|
-
|
|
18
|
+
private commonInterfaceHelper;
|
|
19
|
+
host: HTMLAtomicSearchInterfaceElement;
|
|
20
|
+
error?: Error;
|
|
21
|
+
relevanceInspectorIsOpen: boolean;
|
|
28
22
|
/**
|
|
29
23
|
* A list of non-default fields to include in the query results.
|
|
30
24
|
*
|
|
@@ -33,7 +27,7 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
|
|
|
33
27
|
* <atomic-search-interface fields-to-include='["fieldA", "fieldB"]'></atomic-search-interface>
|
|
34
28
|
* ```
|
|
35
29
|
*/
|
|
36
|
-
fieldsToInclude: string[];
|
|
30
|
+
fieldsToInclude: string[] | string;
|
|
37
31
|
/**
|
|
38
32
|
* The search interface [query pipeline](https://docs.coveo.com/en/180/).
|
|
39
33
|
*
|
|
@@ -75,13 +69,8 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
|
|
|
75
69
|
engine?: SearchEngine;
|
|
76
70
|
/**
|
|
77
71
|
* Whether the state should be reflected in the URL parameters.
|
|
78
|
-
* @deprecated - replaced by `disable-state-reflection-in-url` (this defaults to `true`, while the replacement defaults to `false`).
|
|
79
72
|
*/
|
|
80
73
|
reflectStateInUrl: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Whether to disable state reflection in the URL parameters.
|
|
83
|
-
*/
|
|
84
|
-
disableStateReflectionInUrl: boolean;
|
|
85
74
|
/**
|
|
86
75
|
* The CSS selector for the container where the interface will scroll back to.
|
|
87
76
|
*/
|
|
@@ -106,19 +95,39 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
|
|
|
106
95
|
* The relevance inspector can be opened by holding the Alt key (Option on Mac) while over the interface, and performing a double click.
|
|
107
96
|
*
|
|
108
97
|
* The relevance inspector allows to troubleshoot and debug queries.
|
|
109
|
-
* @deprecated - replaced by `disable-relevance-inspector` (this defaults to `true`, while the replacement defaults to `false`).
|
|
110
98
|
*/
|
|
111
99
|
enableRelevanceInspector: boolean;
|
|
112
100
|
/**
|
|
113
|
-
*
|
|
101
|
+
* The value to set the [nonce](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/nonce) attribute to on inline script and style elements generated by this interface and its child components.
|
|
102
|
+
* If your application is served with a Content Security Policy (CSP) that doesn't include the `script-src: 'unsafe-inline'` or `style-src: 'unsafe-inline'` directives,
|
|
103
|
+
* you should ensure that your application server generates a new nonce on every page load and uses the generated value to set this prop and serve the corresponding CSP response headers
|
|
104
|
+
* (i.e., script-src 'nonce-<YOUR_GENERATED_NONCE>' and style-src 'nonce-<YOUR_GENERATED_NONCE>').
|
|
105
|
+
* Otherwise you may see console errors such as
|
|
106
|
+
* - Refused to execute inline script because it violates the following Content Security Policy directive: [...]
|
|
107
|
+
* - Refused to apply inline style because it violates the following Content Security Policy directive: [...].
|
|
108
|
+
* @example:
|
|
109
|
+
* ```html
|
|
110
|
+
* <script nonce="<YOUR_GENERATED_NONCE>">
|
|
111
|
+
* import {setNonce} from '@coveo/atomic';
|
|
112
|
+
* setNonce('<YOUR_GENERATED_NONCE>');
|
|
113
|
+
* </script>
|
|
114
|
+
* ```
|
|
114
115
|
*/
|
|
115
|
-
|
|
116
|
+
CspNonce?: string;
|
|
116
117
|
private i18Initialized;
|
|
118
|
+
private componentWillLoadCalledPromise;
|
|
119
|
+
private componentWillLoadResolver;
|
|
117
120
|
constructor();
|
|
118
121
|
connectedCallback(): void;
|
|
119
|
-
|
|
122
|
+
componentWillLoad(): void;
|
|
123
|
+
updateSearchConfiguration(updatedProp: 'searchHub' | 'pipeline', newValue: string | undefined): void;
|
|
124
|
+
updateSearchHub(): void;
|
|
125
|
+
updatePipeline(): void;
|
|
126
|
+
toggleAnalytics(): void;
|
|
127
|
+
updateLanguage(): Promise<void> | undefined;
|
|
128
|
+
updateIconAssetsPath(): void;
|
|
120
129
|
disconnectedCallback(): void;
|
|
121
|
-
|
|
130
|
+
handleInitialization(event: InitializeEvent): void;
|
|
122
131
|
scrollToTop(): void;
|
|
123
132
|
closeRelevanceInspector(): void;
|
|
124
133
|
/**
|
|
@@ -126,7 +135,7 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
|
|
|
126
135
|
*/
|
|
127
136
|
initialize(options: InitializationOptions): Promise<void>;
|
|
128
137
|
/**
|
|
129
|
-
* Initializes the
|
|
138
|
+
* Initializes the connection with an already preconfigured [headless search engine](https://docs.coveo.com/en/headless/latest/reference/interfaces/Search.SearchEngine.html), as opposed to the `initialize` method, which will internally create a new search engine instance.
|
|
130
139
|
* This bypasses the properties set on the component, such as analytics, searchHub, pipeline, language, timezone & logLevel.
|
|
131
140
|
*/
|
|
132
141
|
initializeWithSearchEngine(engine: SearchEngine): Promise<void>;
|
|
@@ -135,30 +144,19 @@ export declare class AtomicSearchInterface extends AtomicSearchInterface_base im
|
|
|
135
144
|
* Executes the first search and logs the interface load event to analytics, after initializing connection to the headless search engine.
|
|
136
145
|
*/
|
|
137
146
|
executeFirstSearch(): Promise<void>;
|
|
138
|
-
|
|
139
|
-
updateSearchHub(): void;
|
|
140
|
-
updatePipeline(): void;
|
|
141
|
-
toggleAnalytics(): void;
|
|
142
|
-
updateLanguage(): void;
|
|
143
|
-
updateIconAssetsPath(): void;
|
|
144
|
-
private getBindings;
|
|
147
|
+
get bindings(): Bindings;
|
|
145
148
|
private initFieldsToInclude;
|
|
146
149
|
registerFieldsToInclude(): void;
|
|
150
|
+
private updateMobileBreakpoint;
|
|
147
151
|
private initEngine;
|
|
148
152
|
private getSearchConfiguration;
|
|
149
153
|
private get fragment();
|
|
150
154
|
private initUrlManager;
|
|
151
|
-
private
|
|
155
|
+
private initAriaLive;
|
|
152
156
|
private initRelevanceInspector;
|
|
153
157
|
private initSearchStatus;
|
|
154
158
|
private updateHash;
|
|
155
159
|
private onHashChange;
|
|
156
160
|
private internalInitialization;
|
|
157
|
-
render():
|
|
158
|
-
}
|
|
159
|
-
declare global {
|
|
160
|
-
interface HTMLElementTagNameMap {
|
|
161
|
-
'atomic-search-interface': AtomicSearchInterface;
|
|
162
|
-
}
|
|
161
|
+
render(): any[];
|
|
163
162
|
}
|
|
164
|
-
export {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { SearchEngine } from '@coveo/headless';
|
|
2
2
|
import type { CommonBindings, NonceBindings } from '../../common/interface/bindings';
|
|
3
|
-
import type { AtomicSearchInterface } from './atomic-search-interface';
|
|
4
3
|
import type { SearchStore } from './store';
|
|
5
|
-
export type Bindings = CommonBindings<SearchEngine, SearchStore,
|
|
4
|
+
export type Bindings = CommonBindings<SearchEngine, SearchStore, HTMLAtomicSearchInterfaceElement> & NonceBindings;
|
|
@@ -11,16 +11,14 @@ declare const AtomicSearchLayout_base: import("../../../mixins/mixin-common").Co
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class AtomicSearchLayout extends AtomicSearchLayout_base {
|
|
13
13
|
static styles: import("lit").CSSResult[];
|
|
14
|
+
private addStyles;
|
|
14
15
|
error: Error;
|
|
15
16
|
/**
|
|
16
17
|
* The viewport width at which the layout goes from desktop to mobile.
|
|
17
18
|
* E.g., 800px, 65rem.
|
|
18
19
|
*/
|
|
19
20
|
mobileBreakpoint: string;
|
|
20
|
-
private layoutStylesController;
|
|
21
21
|
connectedCallback(): void;
|
|
22
|
-
private emitBreakpointChangeEvent;
|
|
23
|
-
onMobileBreakpointChange(): void;
|
|
24
22
|
}
|
|
25
23
|
declare global {
|
|
26
24
|
interface HTMLElementTagNameMap {
|