@coveo/atomic 3.33.4-pre.198ea66fd2 → 3.33.4-pre.613dec52e8
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 -4
- package/dist/atomic/components/_index.js +0 -2
- 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-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 +37 -4
- 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-modal2.js +2 -2
- package/dist/atomic/components/atomic-no-results.js +1 -1
- package/dist/atomic/components/atomic-numeric-facet.js +2 -2
- 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-query-summary.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 +58 -1
- package/dist/atomic/components/atomic-relevance-inspector.js.map +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-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 +4 -4
- 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-product-list/atomic-commerce-product-list.js +10 -12
- package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.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-price/atomic-product-price.js +4 -2
- package/dist/atomic/components/components/commerce/atomic-product-rating/atomic-product-rating.js +4 -4
- package/dist/atomic/components/components/common/atomic-rating/atomic-rating.tw.css.js +2 -3
- package/dist/atomic/components/components/common/facets/depends-on.js +62 -0
- package/dist/atomic/components/components/common/facets/popover/popover-type.js +5 -0
- package/dist/atomic/components/components/search/atomic-facet/atomic-facet.js +574 -0
- package/dist/atomic/components/components/search/atomic-search-interface/analytics-config.js +57 -0
- package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +440 -0
- package/dist/atomic/components/components/search/index.js +2 -0
- package/dist/atomic/components/components/search/lazy-index.js +2 -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/{facet-guard.js → stencil-facet-guard.js} +2 -1
- package/dist/atomic/components/stencil-facet-guard.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/{p-e40a763b.entry.js → p-05ac9172.entry.js} +2 -2
- package/dist/atomic/{p-a59c4d49.entry.js → p-06465d20.entry.js} +2 -2
- package/dist/atomic/{p-29764ce8.entry.js → p-0d6a5189.entry.js} +2 -2
- package/dist/atomic/{p-f32dbc1d.entry.js → p-1042ab52.entry.js} +2 -2
- package/dist/atomic/p-115573a0.entry.js +2 -0
- package/dist/atomic/p-115573a0.entry.js.map +1 -0
- package/dist/atomic/{p-1e0ecf71.entry.js → p-12b8f495.entry.js} +2 -2
- package/dist/atomic/{p-fc6beee6.entry.js → p-14bb74ce.entry.js} +2 -2
- package/dist/atomic/{p-b0bd2709.entry.js → p-156aa33a.entry.js} +2 -2
- package/dist/atomic/{p-2ac2b0bf.entry.js → p-162e3c32.entry.js} +2 -2
- package/dist/atomic/{p-50467793.entry.js → p-185d0587.entry.js} +2 -2
- package/dist/atomic/{p-bfdecd0f.entry.js → p-1d8eba10.entry.js} +2 -2
- package/dist/atomic/{p-5383aa21.entry.js → p-1ee9b0c5.entry.js} +2 -2
- package/dist/atomic/{p-5694553b.entry.js → p-24bc372d.entry.js} +2 -2
- package/dist/atomic/p-256b5495.entry.js +2 -0
- package/dist/atomic/{p-241ce78d.entry.js → p-29396f9d.entry.js} +2 -2
- package/dist/atomic/{p-bdb9a06d.entry.js → p-2f6ab5e0.entry.js} +2 -2
- package/dist/atomic/{p-26b30352.entry.js → p-367b575e.entry.js} +2 -2
- package/dist/atomic/{p-1246be0e.entry.js → p-38346ea7.entry.js} +2 -2
- package/dist/atomic/{p-20bbdb90.entry.js → p-3a49e406.entry.js} +2 -2
- package/dist/atomic/{p-4657f3ee.entry.js → p-3ad14952.entry.js} +2 -2
- package/dist/atomic/{p-22294a5c.entry.js → p-3b13b1eb.entry.js} +2 -2
- package/dist/atomic/{p-8c714a2a.entry.js → p-3fbd4bc9.entry.js} +2 -2
- package/dist/atomic/{p-d7d49289.entry.js → p-431f0e67.entry.js} +2 -2
- package/dist/atomic/{p-aa21c2d8.entry.js → p-43cd2619.entry.js} +2 -2
- package/dist/atomic/{p-76d69c1a.entry.js → p-43f5763b.entry.js} +2 -2
- package/dist/atomic/{p-db929bc4.entry.js → p-48668426.entry.js} +2 -2
- package/dist/atomic/{p-52189672.entry.js → p-4ab83f74.entry.js} +2 -2
- package/dist/atomic/{p-95a21b56.entry.js → p-4ae9f567.entry.js} +2 -2
- package/dist/atomic/{p-05ab5909.entry.js → p-4e52a690.entry.js} +2 -2
- package/dist/atomic/{p-3d42442f.entry.js → p-502ca5f8.entry.js} +2 -2
- package/dist/atomic/{p-e8e6fc6e.entry.js → p-51ec51b8.entry.js} +2 -2
- package/dist/atomic/{p-5f694374.entry.js → p-51f73f5e.entry.js} +2 -2
- package/dist/atomic/{p-bcdcf373.entry.js → p-5e415d54.entry.js} +2 -2
- package/dist/atomic/{p-a113bf37.entry.js → p-63b4a863.entry.js} +2 -2
- package/dist/atomic/{p-054f3780.entry.js → p-65c48376.entry.js} +2 -2
- package/dist/atomic/{p-cf878415.entry.js → p-67c650ad.entry.js} +2 -2
- package/dist/atomic/p-67c650ad.entry.js.map +1 -0
- package/dist/atomic/{p-6065f250.entry.js → p-6e43e98c.entry.js} +2 -2
- package/dist/atomic/{p-1ad7f200.entry.js → p-6f4da119.entry.js} +2 -2
- package/dist/atomic/{p-9e3cf8b5.entry.js → p-80d9f073.entry.js} +2 -2
- package/dist/atomic/{p-fa1aebca.entry.js → p-867c168e.entry.js} +2 -2
- package/dist/atomic/{p-b40b9341.entry.js → p-87802851.entry.js} +2 -2
- package/dist/atomic/{p-6697abe5.entry.js → p-8ab3f25b.entry.js} +2 -2
- package/dist/atomic/{p-15f72dca.entry.js → p-8d25c828.entry.js} +2 -2
- package/dist/atomic/{p-01307751.entry.js → p-8da9bf03.entry.js} +2 -2
- package/dist/atomic/{p-d5071b5a.entry.js → p-8f5c9c50.entry.js} +2 -2
- package/dist/atomic/{p-7a797dee.entry.js → p-8f93df24.entry.js} +2 -2
- package/dist/atomic/{p-ee9fd772.entry.js → p-9ae70432.entry.js} +2 -2
- package/dist/atomic/{p-7ffe752b.entry.js → p-a3c64c2a.entry.js} +2 -2
- package/dist/atomic/{p-8b70f39a.entry.js → p-a502b2f6.entry.js} +2 -2
- package/dist/atomic/{p-8833f5a7.entry.js → p-a7c8794c.entry.js} +2 -2
- package/dist/atomic/{p-8ed5d217.entry.js → p-a7cd2e06.entry.js} +2 -2
- package/dist/atomic/p-a7cd2e06.entry.js.map +1 -0
- package/dist/atomic/{p-1f059522.js → p-aa3ac5aa.js} +1 -1
- package/dist/atomic/p-aa3ac5aa.js.map +1 -0
- package/dist/atomic/{p-feb020b6.entry.js → p-ac71586c.entry.js} +2 -2
- package/dist/atomic/{p-09924944.entry.js → p-adbfad02.entry.js} +2 -2
- package/dist/atomic/p-b2b7c0b8.entry.js +2 -0
- package/dist/atomic/{p-8f638bf3.entry.js → p-b693b806.entry.js} +2 -2
- package/dist/atomic/{p-9074b855.entry.js → p-bab2b979.entry.js} +2 -2
- package/dist/atomic/{p-6082ae7f.entry.js → p-bb28ef1e.entry.js} +2 -2
- package/dist/atomic/{p-4bb561c5.entry.js → p-bcdd4b32.entry.js} +2 -2
- package/dist/atomic/{p-516b5bd4.entry.js → p-c391f113.entry.js} +2 -2
- package/dist/atomic/{p-a722a427.entry.js → p-c9070d39.entry.js} +2 -2
- package/dist/atomic/{p-bd774e61.entry.js → p-ca89bb6e.entry.js} +2 -2
- package/dist/atomic/{p-633628d5.entry.js → p-cbeca949.entry.js} +2 -2
- package/dist/atomic/{p-6a28f4eb.entry.js → p-cebe63d4.entry.js} +2 -2
- package/dist/atomic/{p-f24267a9.entry.js → p-d2adf8f7.entry.js} +2 -2
- package/dist/atomic/p-d34cba13.entry.js +2 -0
- package/dist/atomic/{p-c4f91847.entry.js → p-d816e681.entry.js} +2 -2
- package/dist/atomic/{p-ce3b5f88.js → p-db8da154.js} +2 -2
- package/dist/atomic/{p-ad56ed8b.entry.js → p-e1d97d57.entry.js} +2 -2
- package/dist/atomic/p-e1d97d57.entry.js.map +1 -0
- package/dist/atomic/{p-c1a43c8c.entry.js → p-e9822683.entry.js} +2 -2
- package/dist/atomic/{p-e57a49d5.entry.js → p-f04ab33f.entry.js} +2 -2
- package/dist/atomic/{p-f8345ade.entry.js → p-f0a32efe.entry.js} +2 -2
- package/dist/atomic/{p-37ce5631.entry.js → p-f63e7cec.entry.js} +2 -2
- package/dist/atomic/{p-c3784f21.entry.js → p-fb4f0ecb.entry.js} +2 -2
- package/dist/atomic/{p-3cf858f2.entry.js → p-fb7e4f01.entry.js} +2 -2
- package/dist/atomic/{p-6e10a3e0.entry.js → p-fc950da3.entry.js} +2 -2
- package/dist/atomic/{p-1ae7c81f.entry.js → p-fde02203.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-e80c03f6.js → analytics-config-d5358efe.js} +2 -2
- package/dist/cjs/{analytics-config-e80c03f6.js.map → analytics-config-d5358efe.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-focus-trap_2.cjs.entry.js +2 -2
- 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 +38 -10
- 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 -2
- 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-query-summary.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 +4 -4
- 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/index-757bc886.js +4 -12
- package/dist/cjs/{facet-guard-328b588d.js → stencil-facet-guard-9573df7f.js} +2 -1
- package/dist/cjs/stencil-facet-guard-9573df7f.js.map +1 -0
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-c4eeda18.js → analytics-config-0a02fab7.js} +2 -2
- package/dist/esm/{analytics-config-c4eeda18.js.map → analytics-config-0a02fab7.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-focus-trap_2.entry.js +2 -2
- 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 +38 -10
- 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 -2
- 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-query-summary.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 +4 -4
- 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/index-3f35faca.js +4 -12
- package/dist/esm/{facet-guard-4b795e90.js → stencil-facet-guard-edbfa966.js} +2 -1
- package/dist/esm/stencil-facet-guard-edbfa966.js.map +1 -0
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-product-list/atomic-commerce-product-list.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.d.ts +1 -1
- package/dist/types/components/search/{facets/atomic-facet → atomic-facet}/atomic-facet.d.ts +12 -9
- package/dist/types/components/search/atomic-facet/stencil-atomic-facet.d.ts +0 -0
- package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +28 -37
- package/dist/types/components/search/atomic-search-interface/interfaces.d.ts +2 -1
- package/dist/types/components/search/index.d.ts +2 -0
- package/dist/types/components.d.ts +2 -338
- package/docs/atomic-docs.json +3645 -4930
- package/package.json +3 -3
- package/dist/atomic/components/atomic-facet.d.ts +0 -11
- package/dist/atomic/components/atomic-facet.js +0 -470
- package/dist/atomic/components/atomic-facet.js.map +0 -1
- package/dist/atomic/components/atomic-relevance-inspector2.js +0 -62
- package/dist/atomic/components/atomic-relevance-inspector2.js.map +0 -1
- package/dist/atomic/components/atomic-search-interface.d.ts +0 -11
- package/dist/atomic/components/atomic-search-interface.js +0 -564
- package/dist/atomic/components/atomic-search-interface.js.map +0 -1
- package/dist/atomic/components/facet-guard.js.map +0 -1
- package/dist/atomic/components/stencil-facet-value.js +0 -39
- package/dist/atomic/components/stencil-facet-value.js.map +0 -1
- package/dist/atomic/p-1891a142.entry.js +0 -2
- package/dist/atomic/p-1891a142.entry.js.map +0 -1
- package/dist/atomic/p-1f059522.js.map +0 -1
- package/dist/atomic/p-37697010.js +0 -2
- package/dist/atomic/p-37697010.js.map +0 -1
- package/dist/atomic/p-52121e1e.entry.js +0 -2
- package/dist/atomic/p-8ed5d217.entry.js.map +0 -1
- package/dist/atomic/p-8ef0e022.entry.js +0 -2
- package/dist/atomic/p-ad56ed8b.entry.js.map +0 -1
- package/dist/atomic/p-b9dc0d99.entry.js +0 -2
- package/dist/atomic/p-b9dc0d99.entry.js.map +0 -1
- package/dist/atomic/p-ce83d873.entry.js +0 -2
- package/dist/atomic/p-cf878415.entry.js.map +0 -1
- package/dist/atomic/p-fff40aff.entry.js +0 -2
- package/dist/atomic/p-fff40aff.entry.js.map +0 -1
- package/dist/cjs/atomic-facet.cjs.entry.js +0 -453
- package/dist/cjs/atomic-facet.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-search-interface.cjs.entry.js +0 -511
- package/dist/cjs/atomic-search-interface.cjs.entry.js.map +0 -1
- package/dist/cjs/facet-guard-328b588d.js.map +0 -1
- package/dist/cjs/stencil-facet-value-c72a58e6.js +0 -41
- package/dist/cjs/stencil-facet-value-c72a58e6.js.map +0 -1
- package/dist/esm/atomic-facet.entry.js +0 -449
- package/dist/esm/atomic-facet.entry.js.map +0 -1
- package/dist/esm/atomic-search-interface.entry.js +0 -507
- package/dist/esm/atomic-search-interface.entry.js.map +0 -1
- package/dist/esm/facet-guard-4b795e90.js.map +0 -1
- package/dist/esm/stencil-facet-value-c080798e.js +0 -39
- package/dist/esm/stencil-facet-value-c080798e.js.map +0 -1
- package/dist/types/components/common/atomic-rating/atomic-rating.tw.css.d.ts +0 -2
- /package/dist/atomic/{p-e40a763b.entry.js.map → p-05ac9172.entry.js.map} +0 -0
- /package/dist/atomic/{p-a59c4d49.entry.js.map → p-06465d20.entry.js.map} +0 -0
- /package/dist/atomic/{p-29764ce8.entry.js.map → p-0d6a5189.entry.js.map} +0 -0
- /package/dist/atomic/{p-f32dbc1d.entry.js.map → p-1042ab52.entry.js.map} +0 -0
- /package/dist/atomic/{p-1e0ecf71.entry.js.map → p-12b8f495.entry.js.map} +0 -0
- /package/dist/atomic/{p-fc6beee6.entry.js.map → p-14bb74ce.entry.js.map} +0 -0
- /package/dist/atomic/{p-b0bd2709.entry.js.map → p-156aa33a.entry.js.map} +0 -0
- /package/dist/atomic/{p-2ac2b0bf.entry.js.map → p-162e3c32.entry.js.map} +0 -0
- /package/dist/atomic/{p-50467793.entry.js.map → p-185d0587.entry.js.map} +0 -0
- /package/dist/atomic/{p-bfdecd0f.entry.js.map → p-1d8eba10.entry.js.map} +0 -0
- /package/dist/atomic/{p-5383aa21.entry.js.map → p-1ee9b0c5.entry.js.map} +0 -0
- /package/dist/atomic/{p-5694553b.entry.js.map → p-24bc372d.entry.js.map} +0 -0
- /package/dist/atomic/{p-52121e1e.entry.js.map → p-256b5495.entry.js.map} +0 -0
- /package/dist/atomic/{p-241ce78d.entry.js.map → p-29396f9d.entry.js.map} +0 -0
- /package/dist/atomic/{p-bdb9a06d.entry.js.map → p-2f6ab5e0.entry.js.map} +0 -0
- /package/dist/atomic/{p-26b30352.entry.js.map → p-367b575e.entry.js.map} +0 -0
- /package/dist/atomic/{p-1246be0e.entry.js.map → p-38346ea7.entry.js.map} +0 -0
- /package/dist/atomic/{p-20bbdb90.entry.js.map → p-3a49e406.entry.js.map} +0 -0
- /package/dist/atomic/{p-4657f3ee.entry.js.map → p-3ad14952.entry.js.map} +0 -0
- /package/dist/atomic/{p-22294a5c.entry.js.map → p-3b13b1eb.entry.js.map} +0 -0
- /package/dist/atomic/{p-8c714a2a.entry.js.map → p-3fbd4bc9.entry.js.map} +0 -0
- /package/dist/atomic/{p-d7d49289.entry.js.map → p-431f0e67.entry.js.map} +0 -0
- /package/dist/atomic/{p-aa21c2d8.entry.js.map → p-43cd2619.entry.js.map} +0 -0
- /package/dist/atomic/{p-76d69c1a.entry.js.map → p-43f5763b.entry.js.map} +0 -0
- /package/dist/atomic/{p-db929bc4.entry.js.map → p-48668426.entry.js.map} +0 -0
- /package/dist/atomic/{p-52189672.entry.js.map → p-4ab83f74.entry.js.map} +0 -0
- /package/dist/atomic/{p-95a21b56.entry.js.map → p-4ae9f567.entry.js.map} +0 -0
- /package/dist/atomic/{p-05ab5909.entry.js.map → p-4e52a690.entry.js.map} +0 -0
- /package/dist/atomic/{p-3d42442f.entry.js.map → p-502ca5f8.entry.js.map} +0 -0
- /package/dist/atomic/{p-e8e6fc6e.entry.js.map → p-51ec51b8.entry.js.map} +0 -0
- /package/dist/atomic/{p-5f694374.entry.js.map → p-51f73f5e.entry.js.map} +0 -0
- /package/dist/atomic/{p-bcdcf373.entry.js.map → p-5e415d54.entry.js.map} +0 -0
- /package/dist/atomic/{p-a113bf37.entry.js.map → p-63b4a863.entry.js.map} +0 -0
- /package/dist/atomic/{p-054f3780.entry.js.map → p-65c48376.entry.js.map} +0 -0
- /package/dist/atomic/{p-6065f250.entry.js.map → p-6e43e98c.entry.js.map} +0 -0
- /package/dist/atomic/{p-1ad7f200.entry.js.map → p-6f4da119.entry.js.map} +0 -0
- /package/dist/atomic/{p-9e3cf8b5.entry.js.map → p-80d9f073.entry.js.map} +0 -0
- /package/dist/atomic/{p-fa1aebca.entry.js.map → p-867c168e.entry.js.map} +0 -0
- /package/dist/atomic/{p-b40b9341.entry.js.map → p-87802851.entry.js.map} +0 -0
- /package/dist/atomic/{p-6697abe5.entry.js.map → p-8ab3f25b.entry.js.map} +0 -0
- /package/dist/atomic/{p-15f72dca.entry.js.map → p-8d25c828.entry.js.map} +0 -0
- /package/dist/atomic/{p-01307751.entry.js.map → p-8da9bf03.entry.js.map} +0 -0
- /package/dist/atomic/{p-d5071b5a.entry.js.map → p-8f5c9c50.entry.js.map} +0 -0
- /package/dist/atomic/{p-7a797dee.entry.js.map → p-8f93df24.entry.js.map} +0 -0
- /package/dist/atomic/{p-ee9fd772.entry.js.map → p-9ae70432.entry.js.map} +0 -0
- /package/dist/atomic/{p-7ffe752b.entry.js.map → p-a3c64c2a.entry.js.map} +0 -0
- /package/dist/atomic/{p-8b70f39a.entry.js.map → p-a502b2f6.entry.js.map} +0 -0
- /package/dist/atomic/{p-8833f5a7.entry.js.map → p-a7c8794c.entry.js.map} +0 -0
- /package/dist/atomic/{p-feb020b6.entry.js.map → p-ac71586c.entry.js.map} +0 -0
- /package/dist/atomic/{p-09924944.entry.js.map → p-adbfad02.entry.js.map} +0 -0
- /package/dist/atomic/{p-8ef0e022.entry.js.map → p-b2b7c0b8.entry.js.map} +0 -0
- /package/dist/atomic/{p-8f638bf3.entry.js.map → p-b693b806.entry.js.map} +0 -0
- /package/dist/atomic/{p-9074b855.entry.js.map → p-bab2b979.entry.js.map} +0 -0
- /package/dist/atomic/{p-6082ae7f.entry.js.map → p-bb28ef1e.entry.js.map} +0 -0
- /package/dist/atomic/{p-4bb561c5.entry.js.map → p-bcdd4b32.entry.js.map} +0 -0
- /package/dist/atomic/{p-516b5bd4.entry.js.map → p-c391f113.entry.js.map} +0 -0
- /package/dist/atomic/{p-a722a427.entry.js.map → p-c9070d39.entry.js.map} +0 -0
- /package/dist/atomic/{p-bd774e61.entry.js.map → p-ca89bb6e.entry.js.map} +0 -0
- /package/dist/atomic/{p-633628d5.entry.js.map → p-cbeca949.entry.js.map} +0 -0
- /package/dist/atomic/{p-6a28f4eb.entry.js.map → p-cebe63d4.entry.js.map} +0 -0
- /package/dist/atomic/{p-f24267a9.entry.js.map → p-d2adf8f7.entry.js.map} +0 -0
- /package/dist/atomic/{p-ce83d873.entry.js.map → p-d34cba13.entry.js.map} +0 -0
- /package/dist/atomic/{p-c4f91847.entry.js.map → p-d816e681.entry.js.map} +0 -0
- /package/dist/atomic/{p-ce3b5f88.js.map → p-db8da154.js.map} +0 -0
- /package/dist/atomic/{p-c1a43c8c.entry.js.map → p-e9822683.entry.js.map} +0 -0
- /package/dist/atomic/{p-e57a49d5.entry.js.map → p-f04ab33f.entry.js.map} +0 -0
- /package/dist/atomic/{p-f8345ade.entry.js.map → p-f0a32efe.entry.js.map} +0 -0
- /package/dist/atomic/{p-37ce5631.entry.js.map → p-f63e7cec.entry.js.map} +0 -0
- /package/dist/atomic/{p-c3784f21.entry.js.map → p-fb4f0ecb.entry.js.map} +0 -0
- /package/dist/atomic/{p-3cf858f2.entry.js.map → p-fb7e4f01.entry.js.map} +0 -0
- /package/dist/atomic/{p-6e10a3e0.entry.js.map → p-fc950da3.entry.js.map} +0 -0
- /package/dist/atomic/{p-1ae7c81f.entry.js.map → p-fde02203.entry.js.map} +0 -0
- /package/dist/types/components/common/facets/{facet-guard.d.ts → stencil-facet-guard.d.ts} +0 -0
|
@@ -172,7 +172,7 @@ const AtomicSearchBoxInstantResults$1 = /*@__PURE__*/ proxyCustomElement(class A
|
|
|
172
172
|
}
|
|
173
173
|
render() {
|
|
174
174
|
if (this.error) {
|
|
175
|
-
return (h("atomic-component-error", { key: '
|
|
175
|
+
return (h("atomic-component-error", { key: '333b5db58056b189358a7f23e632ef56d59dc337', element: this.host, error: this.error }));
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
get host() { return this; }
|
|
@@ -60,7 +60,7 @@ const AtomicSearchBoxQuerySuggestions = /*@__PURE__*/ proxyCustomElement(class A
|
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
62
|
if (this.error) {
|
|
63
|
-
return (h("atomic-component-error", { key: '
|
|
63
|
+
return (h("atomic-component-error", { key: 'd37f642d0a8dab2ea78883cfd40ae4afd481e245', element: this.host, error: this.error }));
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
get host() { return this; }
|
|
@@ -154,7 +154,7 @@ const AtomicSearchBoxRecentQueries = /*@__PURE__*/ proxyCustomElement(class Atom
|
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
156
|
if (this.error) {
|
|
157
|
-
return (h("atomic-component-error", { key: '
|
|
157
|
+
return (h("atomic-component-error", { key: '4e4f5a2acd2e77885f1867aa27abb8d372e95dcf', element: this.host, error: this.error }));
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
get host() { return this; }
|
|
@@ -427,18 +427,18 @@ const AtomicSearchBox$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSearchBox
|
|
|
427
427
|
if (!this.suggestionManager.suggestions.length) {
|
|
428
428
|
this.registerSearchboxSuggestionEvents();
|
|
429
429
|
}
|
|
430
|
-
return (h(Host, { key: '
|
|
431
|
-
h(SearchBoxWrapper, { key: '
|
|
430
|
+
return (h(Host, { key: 'a537c56c1b8897dba60111024ae75178af098e09' }, this.renderAbsolutePositionSpacer(), [
|
|
431
|
+
h(SearchBoxWrapper, { key: '95e33612840af905ab524f433adccd0dc75f9eb4', disabled: isDisabled, onFocusout: (event) => {
|
|
432
432
|
if (!isFocusingOut(event)) {
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
435
|
this.suggestionManager.clearSuggestions();
|
|
436
436
|
this.isExpanded = false;
|
|
437
|
-
} }, this.renderTextBox(searchLabel), h(SubmitButton, { key: '
|
|
437
|
+
} }, this.renderTextBox(searchLabel), h(SubmitButton, { key: 'd59cff103d7a9d31f799a07a9d68690fa06dda2e', bindings: this.bindings, disabled: isDisabled, onClick: () => {
|
|
438
438
|
this.searchBox.submit();
|
|
439
439
|
this.suggestionManager.clearSuggestions();
|
|
440
440
|
} }), this.renderSuggestions()),
|
|
441
|
-
!this.suggestionManager.suggestions.length && (h("slot", { key: '
|
|
441
|
+
!this.suggestionManager.suggestions.length && (h("slot", { key: '564208bcd84c77dae100156e0fc4d2898b9cd476' }, h("atomic-search-box-recent-queries", { key: 'f4c885a73f9974d6ecd524e3b5bd6f9a3800e94d' }), h("atomic-search-box-query-suggestions", { key: '2a3b02ef95225112a1a2821ad8f3c64ce918cfc2' }))),
|
|
442
442
|
]));
|
|
443
443
|
}
|
|
444
444
|
get host() { return this; }
|
|
@@ -89,7 +89,7 @@ const AtomicSmartSnippetAnswer = /*@__PURE__*/ proxyCustomElement(class AtomicSm
|
|
|
89
89
|
}), ref: (element) => element && this.bindAnalyticsToLinks(element), part: "answer", class: "margin" })));
|
|
90
90
|
}
|
|
91
91
|
render() {
|
|
92
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: '38591c5d7eb78735f377748f4cf648c7a07d77fe' }, this.renderStyle(), this.renderContent()));
|
|
93
93
|
}
|
|
94
94
|
get host() { return this; }
|
|
95
95
|
static get style() { return AtomicSmartSnippetAnswerStyle0; }
|
|
@@ -56,11 +56,11 @@ const AtomicSmartSnippetCollapseWrapper = /*@__PURE__*/ proxyCustomElement(class
|
|
|
56
56
|
return (h("button", { onClick: () => (this.isExpanded = !this.isExpanded), class: "text-primary mb-4 hover:underline", part: this.isExpanded ? 'show-less-button' : 'show-more-button' }, this.bindings.i18n.t(this.isExpanded ? 'show-less' : 'show-more'), h("atomic-icon", { icon: ArrowDown, class: "ml-2 w-3 align-baseline" })));
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '963e8c1bd7bda00ef08fb51b5cd45214c16be836', class: this.fullHeight || !this.shouldRenderButton
|
|
60
60
|
? this.isExpanded
|
|
61
61
|
? 'expanded'
|
|
62
62
|
: ''
|
|
63
|
-
: 'invisible' }, h("div", { key: '
|
|
63
|
+
: 'invisible' }, h("div", { key: '2129a5960880040084d2afbed415d8ef6cacde08', part: "smart-snippet-collapse-wrapper", class: "block overflow-hidden" }, h("slot", { key: 'e582bd07b62c4e2c60ffc784c94ea7cdae6726cd' })), this.shouldRenderButton && this.renderButton()));
|
|
64
64
|
}
|
|
65
65
|
get host() { return this; }
|
|
66
66
|
static get style() { return AtomicSmartSnippetCollapseWrapperStyle0; }
|
|
@@ -87,7 +87,7 @@ const AtomicSmartSnippetExpandableAnswer = /*@__PURE__*/ proxyCustomElement(clas
|
|
|
87
87
|
return (h("button", { onClick: () => this.isExpanded ? this.collapse.emit() : this.expand.emit(), class: "text-primary mb-4 hover:underline", part: this.isExpanded ? 'show-less-button' : 'show-more-button' }, this.bindings.i18n.t(this.isExpanded ? 'show-less' : 'show-more'), h("atomic-icon", { icon: ArrowDown, class: "ml-2 w-3 align-baseline" })));
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return (h("div", { key: '
|
|
90
|
+
return (h("div", { key: '4272eb724129c3f6c4998bce0e86e855839576bb', class: this.isExpanded ? 'expanded' : '' }, this.renderAnswer(), this.renderButton()));
|
|
91
91
|
}
|
|
92
92
|
get host() { return this; }
|
|
93
93
|
static get watchers() { return {
|
|
@@ -45,9 +45,9 @@ const AtomicSmartSnippetFeedbackModal = /*@__PURE__*/ proxyCustomElement(class A
|
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
47
|
updateBreakpoints(this.host);
|
|
48
|
-
return (h("atomic-modal", { key: '
|
|
48
|
+
return (h("atomic-modal", { key: 'f9f2832f5eb7b4a5f2b89f9b420a42b35c51c30f', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, h(SmartSnippetFeedbackModalHeader, { key: '21ac2cf6152e4aec8e64d3ea2e3f20bf4e259938', i18n: this.bindings.i18n }), h(SmartSnippetFeedbackModalBody, { key: '7707a40b56a2000af78412c82ae97493018477e9', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, h(SmartSnippetFeebackModalOptions, { key: '033e3c0fa91f49c0819654e4b775e0eb5d1cf0f5', i18n: this.bindings.i18n }, smartSnippetFeedbackOptions.map(({ id, localeKey, correspondingAnswer }) => (h(SmartSnippetFeedbackModalOption, { correspondingAnswer: correspondingAnswer, currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, id: id, localeKey: localeKey, onChange: () => {
|
|
49
49
|
this.currentAnswer = correspondingAnswer;
|
|
50
|
-
} })))), h(SmartSnippetFeedbackModalDetails, { key: '
|
|
50
|
+
} })))), h(SmartSnippetFeedbackModalDetails, { key: '4f230b1871432e462f33dd74de67fca3eccbe7fe', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), h(SmartSnippetFeedbackModalFooter, { key: 'f6d4b7341e7b2e799de180daeb329e1c8d6da415', formId: this.formId, i18n: this.bindings.i18n, onClick: () => this.close() })));
|
|
51
51
|
}
|
|
52
52
|
close() {
|
|
53
53
|
this.isOpen = false;
|
|
@@ -33,7 +33,7 @@ const AtomicSmartSnippetSource = /*@__PURE__*/ proxyCustomElement(class AtomicSm
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: 'a487a862e0c660f9ab11709fdd393409dd16f9d1' }, h(LinkWithItemAnalytics, { key: 'f15d3fe068e4f4020d41d71be14a5c5085f07f21', title: this.source.clickUri, href: this.source.clickUri, className: "block truncate", part: "source-url", attributes: this.anchorAttributes, onSelect: () => this.selectSource.emit(), onBeginDelayedSelect: () => this.beginDelayedSelectSource.emit(), onCancelPendingSelect: () => this.cancelPendingSelectSource.emit() }, this.source.clickUri), h(LinkWithItemAnalytics, { key: '6d0a59dfe1d37ca6c2bb38f6721b739a08f0de89', title: this.source.title, href: this.source.clickUri, attributes: this.anchorAttributes, className: "block", part: "source-title", onSelect: () => this.selectSource.emit(), onBeginDelayedSelect: () => this.beginDelayedSelectSource.emit(), onCancelPendingSelect: () => this.cancelPendingSelectSource.emit() }, h("atomic-result-text", { field: "title", default: "no-title", key: this.source.uniqueId }))));
|
|
37
37
|
}
|
|
38
38
|
}, [0, "atomic-smart-snippet-source", {
|
|
39
39
|
"source": [1040],
|
|
@@ -117,8 +117,8 @@ const AtomicSortDropdown$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSortDr
|
|
|
117
117
|
const { hasError, hasResults, firstSearchExecuted } = this.searchStatusState;
|
|
118
118
|
const { bindings: { i18n }, id, } = this;
|
|
119
119
|
return [
|
|
120
|
-
h(SortGuard, { key: '
|
|
121
|
-
h("slot", { key: '
|
|
120
|
+
h(SortGuard, { key: '645355324d5a9e54081f8ed5f14cedf9e88c4076', firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: hasResults }, h(SortContainer, { key: '33761d682a3b05ce557e5ba131c4e30db427838d' }, h(SortLabel, { key: '1236be92aa51f29afca773e97716448a0c95e720', i18n: i18n, id: id }), h(SortSelect, { key: '31db5deacd74143d6ab66f3a612957459e89857d', i18n: i18n, id: id, onSelect: (evt) => this.select(evt) }, this.options.map(({ label, criteria, expression }) => (h(SortOption, { i18n: i18n, label: label, selected: this.sort.isSortedBy(criteria), value: expression })))))),
|
|
121
|
+
h("slot", { key: '577a4b3842d1590e7c6e4cd729824b4b423783d0' }),
|
|
122
122
|
];
|
|
123
123
|
}
|
|
124
124
|
get host() { return this; }
|
|
@@ -47,7 +47,7 @@ const AtomicSortExpression$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSort
|
|
|
47
47
|
const dropdownComponent = 'atomic-sort-dropdown';
|
|
48
48
|
if (!this.host.closest(dropdownComponent)) {
|
|
49
49
|
const error = new Error(`The "${this.host.nodeName.toLowerCase()}" component has to be used inside an ${dropdownComponent} element.`);
|
|
50
|
-
return (h("atomic-component-error", { key: '
|
|
50
|
+
return (h("atomic-component-error", { key: 'a091168f63c2790b23a8a225b5a7fdab53a3dbe7', element: this.host, error: error }));
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
get host() { return this; }
|
|
@@ -66,13 +66,13 @@ const FacetDateInput = /*@__PURE__*/ proxyCustomElement(class FacetDateInput ext
|
|
|
66
66
|
// Fallback for Safari < 14.1, date with format yyyy-mm-dd over 1400 (API limit)
|
|
67
67
|
const pattern = '^(1[4-9]\\d{2}|2\\d{3})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$';
|
|
68
68
|
const range = this.rangeGetter();
|
|
69
|
-
return (h("form", { key: '
|
|
69
|
+
return (h("form", { key: 'b971fb266c70d610a797b8c9e59a8a8e2fd45980', class: "mt-4 grid grid-cols-[min-content_1fr] gap-2 px-2", onSubmit: (e) => {
|
|
70
70
|
e.preventDefault();
|
|
71
71
|
this.apply();
|
|
72
72
|
return false;
|
|
73
|
-
} }, h("label", { key: '
|
|
73
|
+
} }, h("label", { key: '7af8c3fb180047a830da5a496c038559b774e570', part: "input-label", class: labelClasses, htmlFor: `${this.facetId}_start` }, startLabel, ":"), h("input", { key: '0918232b6de2689acb08732cab905877873692ca', id: `${this.facetId}_start`, part: "input-start", type: "date", ref: (ref) => (this.startRef = ref), class: inputClasses, "aria-label": startAria, placeholder: placeholder, pattern: pattern, required: true,
|
|
74
74
|
// API/Index minimum supported date
|
|
75
|
-
min: this.min || this.formattedDateValue('1401-01-01'), max: this.end ? this.formattedDateValue(this.end) : this.max, value: this.formattedDateValue(range?.start), onInput: (e) => (this.start = parseDate(e.target.value).toDate()) }), h("label", { key: '
|
|
75
|
+
min: this.min || this.formattedDateValue('1401-01-01'), max: this.end ? this.formattedDateValue(this.end) : this.max, value: this.formattedDateValue(range?.start), onInput: (e) => (this.start = parseDate(e.target.value).toDate()) }), h("label", { key: 'aba9f94bdd61e465802acb0ffdfc425b0bd7f7dd', part: "input-label", class: labelClasses, htmlFor: `${this.facetId}_end` }, endLabel, ":"), h("input", { key: 'cb28f3942e453efb690a5a50f22d635fb059a0cc', id: `${this.facetId}_end`, part: "input-end", type: "date", ref: (ref) => (this.endRef = ref), class: inputClasses, "aria-label": endAria, placeholder: placeholder, pattern: pattern, required: true, min: this.formattedDateValue(this.start) || this.min, max: this.max, value: this.formattedDateValue(range?.end), onInput: (e) => (this.end = parseDate(e.target.value).toDate()) }), h(Button, { key: 'a28e2ff12c6f2dfae12877888f2cf0a6586ac241', style: "outline-primary", type: "submit", part: "input-apply-button", class: "col-span-2 truncate p-2.5", ariaLabel: applyAria, text: apply })));
|
|
76
76
|
}
|
|
77
77
|
}, [0, "atomic-stencil-facet-date-input", {
|
|
78
78
|
"bindings": [16],
|
|
@@ -73,7 +73,7 @@ const AtomicSuggestionRenderer = /*@__PURE__*/ proxyCustomElement(class AtomicSu
|
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
75
|
const isButton = !!(this.suggestion.onSelect || this.suggestion.query);
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: 'b20f27d5fab6c8ce50bc220720c3d7ef0934d786', class: "contents" }, isButton ? (h("button", { id: this.id, key: this.suggestion.key, part: this.parts, class: this.classes, onMouseDown: (e) => e.preventDefault(), onClick: (e) => this.onClick?.(e), onMouseOver: (e) => this.onMouseOver?.(e), "data-query": this.suggestion.query, "aria-label": this.ariaLabel(isButton), ref: (el) => {
|
|
77
77
|
if (!el) {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -59,7 +59,7 @@ const AtomicTabManager$1 = /*@__PURE__*/ proxyCustomElement(class AtomicTabManag
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '4a69196109d422072d625146adab3cc92b76016e' }, h("atomic-tab-bar", { key: 'ab8f6f14eef1425517142abf03b5b3783f821a30' }, h("div", { key: 'b2e122393dc52e1de0b9c3f6f151cafe461c1b11', role: "list", "aria-label": "tab-area", part: "tab-area", class: "border-neutral mb-2 flex w-full flex-row border-b" }, this.tabs.map((tab) => (h("atomic-tab-button", { active: this.tabManagerState.activeTab === tab.name, label: this.bindings.i18n.t(tab.label, {
|
|
63
63
|
defaultValue: tab.label,
|
|
64
64
|
}), select: () => {
|
|
65
65
|
if (!tab.tabController.state.isActive) {
|
|
@@ -55,7 +55,7 @@ let AtomicCommerceProductList = class AtomicCommerceProductList extends Children
|
|
|
55
55
|
super(...arguments);
|
|
56
56
|
this.loadingFlag = randomID('firstProductLoaded-');
|
|
57
57
|
this.isAppLoaded = false;
|
|
58
|
-
this.
|
|
58
|
+
this.isEveryProductsReady = false;
|
|
59
59
|
this.resultTemplateRegistered = false;
|
|
60
60
|
this.templateHasError = false;
|
|
61
61
|
/**
|
|
@@ -107,27 +107,25 @@ let AtomicCommerceProductList = class AtomicCommerceProductList extends Children
|
|
|
107
107
|
}
|
|
108
108
|
async updated(changedProperties) {
|
|
109
109
|
super.updated(changedProperties);
|
|
110
|
-
if (changedProperties.has('searchOrListingState')
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
this.isEveryProductReady = false;
|
|
114
|
-
}
|
|
110
|
+
if (changedProperties.has('searchOrListingState') &&
|
|
111
|
+
this.isEveryProductsReady) {
|
|
112
|
+
this.isEveryProductsReady = false;
|
|
115
113
|
}
|
|
116
114
|
await this.updateProductsReadyState();
|
|
117
115
|
}
|
|
118
116
|
async updateProductsReadyState() {
|
|
119
117
|
if (this.isAppLoaded &&
|
|
120
|
-
!this.
|
|
118
|
+
!this.isEveryProductsReady &&
|
|
121
119
|
this.summaryState?.firstRequestExecuted &&
|
|
122
120
|
this.searchOrListingState?.products?.length > 0) {
|
|
123
121
|
await this.getUpdateComplete();
|
|
124
|
-
this.
|
|
122
|
+
this.isEveryProductsReady = true;
|
|
125
123
|
}
|
|
126
124
|
}
|
|
127
125
|
render() {
|
|
128
126
|
return html `${when(this.shouldRender, () => html `${when(this.templateHasError, () => html `<slot></slot>`, () => {
|
|
129
127
|
const listClasses = this.computeListDisplayClasses();
|
|
130
|
-
const productClasses = `${listClasses} ${!this.
|
|
128
|
+
const productClasses = `${listClasses} ${!this.isEveryProductsReady && 'hidden'}`;
|
|
131
129
|
// Products must be rendered immediately (though hidden) to start their initialization and loading processes.
|
|
132
130
|
// If we wait to render products until placeholders are removed, the components won't begin loading until then,
|
|
133
131
|
// causing a longer delay. The `isEveryProductsReady` flag hides products while preserving placeholders,
|
|
@@ -136,7 +134,7 @@ let AtomicCommerceProductList = class AtomicCommerceProductList extends Children
|
|
|
136
134
|
${when(this.isAppLoaded, () => renderDisplayWrapper({
|
|
137
135
|
props: { listClasses: productClasses, display: this.display },
|
|
138
136
|
})(html `${when(this.display === 'grid', () => this.renderGrid(), () => html `${when(this.display === 'list', () => this.renderList(), () => this.renderTable())}`)}`))}
|
|
139
|
-
${when(!this.
|
|
137
|
+
${when(!this.isEveryProductsReady, () => renderDisplayWrapper({
|
|
140
138
|
props: { listClasses, display: this.display },
|
|
141
139
|
})(renderItemPlaceholders({
|
|
142
140
|
props: {
|
|
@@ -218,7 +216,7 @@ let AtomicCommerceProductList = class AtomicCommerceProductList extends Children
|
|
|
218
216
|
this.searchOrListing.promoteChildToParent(child);
|
|
219
217
|
}
|
|
220
218
|
computeListDisplayClasses() {
|
|
221
|
-
const displayPlaceholders = !(this.isAppLoaded && this.
|
|
219
|
+
const displayPlaceholders = !(this.isAppLoaded && this.isEveryProductsReady);
|
|
222
220
|
return getItemListDisplayClasses(this.display, this.density, this.imageSize, this.searchOrListingState?.isLoading, displayPlaceholders);
|
|
223
221
|
}
|
|
224
222
|
renderGrid() {
|
|
@@ -350,7 +348,7 @@ __decorate([
|
|
|
350
348
|
], AtomicCommerceProductList.prototype, "isAppLoaded", void 0);
|
|
351
349
|
__decorate([
|
|
352
350
|
state()
|
|
353
|
-
], AtomicCommerceProductList.prototype, "
|
|
351
|
+
], AtomicCommerceProductList.prototype, "isEveryProductsReady", void 0);
|
|
354
352
|
__decorate([
|
|
355
353
|
state()
|
|
356
354
|
], AtomicCommerceProductList.prototype, "resultTemplateRegistered", void 0);
|
|
@@ -18,7 +18,7 @@ import { renderQuerySummaryContainer } from '../../common/query-summary/containe
|
|
|
18
18
|
import { renderQuerySummaryGuard } from '../../common/query-summary/guard';
|
|
19
19
|
import { getProductQuerySummaryI18nParameters } from '../../common/query-summary/utils';
|
|
20
20
|
/**
|
|
21
|
-
* The `atomic-commerce-query-summary` component displays information about the current range of products (e.g., "Products 1-10 of 123").
|
|
21
|
+
* The `atomic-commerce-query-summary` component displays information about the current range of products and the request duration (e.g., "Products 1-10 of 123").
|
|
22
22
|
*
|
|
23
23
|
* @part container - The container for the whole summary.
|
|
24
24
|
* @part highlight - The summary highlights.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
2
|
const styles = css`/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
|
|
3
|
-
@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-font-weight:initial}}}:host{position:relative;@layer components{& :host{font-family:var(--atomic-font-family);--tw-font-weight:var(--atomic-font-normal);font-weight:var(--atomic-font-normal)}& .result-root{&.with-sections{justify-items:stretch;display:grid;&.display-list{@media (width>=1024px){&.image-large,&.image-small{grid-template-rows:repeat(6,auto) minmax(0,1fr);grid-template-columns:minmax(0,min-content) auto 1fr auto;grid-template-areas:"badges badges.actions""visual title title title""visual title-metadata title-metadata title-metadata""visual emphasized emphasized emphasized""visual excerpt excerpt excerpt""visual bottom-metadata bottom-metadata bottom-metadata""visual children children children"}&.image-icon{grid-template-rows:repeat(7,minmax(0,min-content));grid-template-columns:minmax(0,min-content) auto 1fr auto;grid-template-areas:"badges badges.actions""visual title title title""visual title-metadata title-metadata title-metadata""visual emphasized emphasized emphasized""visual excerpt excerpt excerpt""visual bottom-metadata bottom-metadata bottom-metadata""visual children children children"}&.image-none{grid-template-rows:repeat(6,auto);grid-template-columns:auto 1fr auto;grid-template-areas:"badges.actions""title title title""title-metadata title-metadata title-metadata""emphasized emphasized emphasized""excerpt excerpt excerpt""bottom-metadata bottom-metadata bottom-metadata""children children children"}}}&.display-table{&.image-large,&.image-small{grid-template-rows:repeat(6,auto) minmax(0,1fr);grid-template-columns:minmax(0,min-content) auto 1fr auto;grid-template-areas:"badges badges.actions""visual title title title""visual title-metadata title-metadata title-metadata""visual emphasized emphasized emphasized""visual excerpt excerpt excerpt""visual bottom-metadata bottom-metadata bottom-metadata""visual children children children"}&.image-icon{grid-template-rows:repeat(7,minmax(0,min-content));grid-template-columns:minmax(0,min-content) auto 1fr auto;grid-template-areas:"badges badges.actions""visual title title title""visual title-metadata title-metadata title-metadata""visual emphasized emphasized emphasized""visual excerpt excerpt excerpt""visual bottom-metadata bottom-metadata bottom-metadata""visual children children children"}&.image-none{grid-template-rows:repeat(6,auto);grid-template-columns:auto 1fr auto;grid-template-areas:"badges.actions""title title title""title-metadata title-metadata title-metadata""emphasized emphasized emphasized""excerpt excerpt excerpt""bottom-metadata bottom-metadata bottom-metadata""children children children"}}&.display-list{@media not all and (width>=1024px){&.image-large{grid-template-rows:repeat(8,auto);grid-template-columns:100%;grid-template-areas:"visual""badges""title""title-metadata""emphasized""excerpt""bottom-metadata""actions""children"}&.image-small{grid-template-rows:repeat(4,auto) minmax(0,1fr) repeat(3,auto);grid-template-columns:auto minmax(0,1fr);grid-template-areas:"badges badges""visual title""visual title-metadata""visual emphasized""visual.""excerpt excerpt""bottom-metadata bottom-metadata""actions actions""children children"}&.image-icon{grid-template-rows:repeat(7,auto) 1fr;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"badges badges""visual title""visual title-metadata""visual emphasized""visual excerpt""visual bottom-metadata""visual actions""visual children"}&.image-none{grid-template-rows:repeat(7,auto);grid-template-columns:100%;grid-template-areas:"badges""title""title-metadata""emphasized""excerpt""bottom-metadata""actions""children"}}}&.display-grid{grid-template-rows:repeat(9,auto);grid-template-columns:100%;grid-template-areas:"badges""visual""title""title-metadata""emphasized""excerpt""children""bottom-metadata""actions";& a,& button{position:relative}@media not all and (width>=1024px){&.image-large{&.image-large{grid-template-rows:repeat(8,auto);grid-template-columns:100%;grid-template-areas:"visual""badges""title""title-metadata""emphasized""excerpt""bottom-metadata""actions""children"}&.image-small{grid-template-rows:repeat(4,auto) minmax(0,1fr) repeat(3,auto);grid-template-columns:auto minmax(0,1fr);grid-template-areas:"badges badges""visual title""visual title-metadata""visual emphasized""visual.""excerpt excerpt""bottom-metadata bottom-metadata""actions actions""children children"}&.image-icon{grid-template-rows:repeat(7,auto) 1fr;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"badges badges""visual title""visual title-metadata""visual emphasized""visual excerpt""visual bottom-metadata""visual actions""visual children"}&.image-none{grid-template-rows:repeat(7,auto);grid-template-columns:100%;grid-template-areas:"badges""title""title-metadata""emphasized""excerpt""bottom-metadata""actions""children"}}}}}& atomic-table-element{display:none}}& .link-container{display:none}}& .
|
|
3
|
+
@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-font-weight:initial}}}:host{position:relative;@layer components{& :host{font-family:var(--atomic-font-family);--tw-font-weight:var(--atomic-font-normal);font-weight:var(--atomic-font-normal)}& .result-root{&.with-sections{justify-items:stretch;display:grid;&.display-list{@media (width>=1024px){&.image-large,&.image-small{grid-template-rows:repeat(6,auto) minmax(0,1fr);grid-template-columns:minmax(0,min-content) auto 1fr auto;grid-template-areas:"badges badges.actions""visual title title title""visual title-metadata title-metadata title-metadata""visual emphasized emphasized emphasized""visual excerpt excerpt excerpt""visual bottom-metadata bottom-metadata bottom-metadata""visual children children children"}&.image-icon{grid-template-rows:repeat(7,minmax(0,min-content));grid-template-columns:minmax(0,min-content) auto 1fr auto;grid-template-areas:"badges badges.actions""visual title title title""visual title-metadata title-metadata title-metadata""visual emphasized emphasized emphasized""visual excerpt excerpt excerpt""visual bottom-metadata bottom-metadata bottom-metadata""visual children children children"}&.image-none{grid-template-rows:repeat(6,auto);grid-template-columns:auto 1fr auto;grid-template-areas:"badges.actions""title title title""title-metadata title-metadata title-metadata""emphasized emphasized emphasized""excerpt excerpt excerpt""bottom-metadata bottom-metadata bottom-metadata""children children children"}}}&.display-table{&.image-large,&.image-small{grid-template-rows:repeat(6,auto) minmax(0,1fr);grid-template-columns:minmax(0,min-content) auto 1fr auto;grid-template-areas:"badges badges.actions""visual title title title""visual title-metadata title-metadata title-metadata""visual emphasized emphasized emphasized""visual excerpt excerpt excerpt""visual bottom-metadata bottom-metadata bottom-metadata""visual children children children"}&.image-icon{grid-template-rows:repeat(7,minmax(0,min-content));grid-template-columns:minmax(0,min-content) auto 1fr auto;grid-template-areas:"badges badges.actions""visual title title title""visual title-metadata title-metadata title-metadata""visual emphasized emphasized emphasized""visual excerpt excerpt excerpt""visual bottom-metadata bottom-metadata bottom-metadata""visual children children children"}&.image-none{grid-template-rows:repeat(6,auto);grid-template-columns:auto 1fr auto;grid-template-areas:"badges.actions""title title title""title-metadata title-metadata title-metadata""emphasized emphasized emphasized""excerpt excerpt excerpt""bottom-metadata bottom-metadata bottom-metadata""children children children"}}&.display-list{@media not all and (width>=1024px){&.image-large{grid-template-rows:repeat(8,auto);grid-template-columns:100%;grid-template-areas:"visual""badges""title""title-metadata""emphasized""excerpt""bottom-metadata""actions""children"}&.image-small{grid-template-rows:repeat(4,auto) minmax(0,1fr) repeat(3,auto);grid-template-columns:auto minmax(0,1fr);grid-template-areas:"badges badges""visual title""visual title-metadata""visual emphasized""visual.""excerpt excerpt""bottom-metadata bottom-metadata""actions actions""children children"}&.image-icon{grid-template-rows:repeat(7,auto) 1fr;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"badges badges""visual title""visual title-metadata""visual emphasized""visual excerpt""visual bottom-metadata""visual actions""visual children"}&.image-none{grid-template-rows:repeat(7,auto);grid-template-columns:100%;grid-template-areas:"badges""title""title-metadata""emphasized""excerpt""bottom-metadata""actions""children"}}}&.display-grid{grid-template-rows:repeat(9,auto);grid-template-columns:100%;grid-template-areas:"badges""visual""title""title-metadata""emphasized""excerpt""children""bottom-metadata""actions";& a,& button{position:relative}@media not all and (width>=1024px){&.image-large{&.image-large{grid-template-rows:repeat(8,auto);grid-template-columns:100%;grid-template-areas:"visual""badges""title""title-metadata""emphasized""excerpt""bottom-metadata""actions""children"}&.image-small{grid-template-rows:repeat(4,auto) minmax(0,1fr) repeat(3,auto);grid-template-columns:auto minmax(0,1fr);grid-template-areas:"badges badges""visual title""visual title-metadata""visual emphasized""visual.""excerpt excerpt""bottom-metadata bottom-metadata""actions actions""children children"}&.image-icon{grid-template-rows:repeat(7,auto) 1fr;grid-template-columns:auto minmax(0,1fr);grid-template-areas:"badges badges""visual title""visual title-metadata""visual emphasized""visual excerpt""visual bottom-metadata""visual actions""visual children"}&.image-none{grid-template-rows:repeat(7,auto);grid-template-columns:100%;grid-template-areas:"badges""title""title-metadata""emphasized""excerpt""bottom-metadata""actions""children"}}}}}& atomic-table-element{display:none}}& .link-container{display:none}}& .with-sections{&.display-grid{&.image-large,&.image-small,&.image-icon,&.image-none{& atomic-product-section-name{min-height:calc(var(--line-height)*2);-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}}@media (width>=1024px){&.image-large atomic-product-section-children .product-child{aspect-ratio:1;width:16.65%;height:auto;@supports not (aspect-ratio:1 / 1){&{height:auto}}}&.image-small atomic-product-section-children .product-child{aspect-ratio:1;width:16.65%;height:auto;@supports not (aspect-ratio:1 / 1){&{height:auto}}}&.image-icon atomic-product-section-children .product-child,&.image-none atomic-product-section-children .product-child{width:2rem;height:2rem}}@media not all and (width>=1024px){&.image-large atomic-product-section-children .product-child{aspect-ratio:1;width:16.65%;height:auto;@supports not (aspect-ratio:1 / 1){&{height:auto}}}&.image-small atomic-product-section-children .product-child{aspect-ratio:1;width:16.65%;max-width:4.75rem;height:auto;@supports not (aspect-ratio:1 / 1){&{height:auto}}}&.image-icon atomic-product-section-children .product-child,&.image-none atomic-product-section-children .product-child{width:2rem;height:2rem}}&.density-comfortable{&.image-icon,&.image-none,&.image-small,&.image-large{& atomic-product-section-description{margin-top:1.25rem}}}&.density-normal{&.image-icon,&.image-none,&.image-small,&.image-large{& atomic-product-section-description{margin-top:.75rem}}}&.density-compact{&.image-icon,&.image-none,&.image-small,&.image-large{& atomic-product-section-description{margin-top:.25rem}}@media (width>=1024px){&.image-large atomic-product-section-children .product-child{aspect-ratio:1;width:16.65%;height:auto;@supports not (aspect-ratio:1 / 1){&{height:auto}}}&.image-small atomic-product-section-children .product-child{aspect-ratio:1;width:16.65%;height:auto;@supports not (aspect-ratio:1 / 1){&{height:auto}}}&.image-icon atomic-product-section-children .product-child,&.image-none atomic-product-section-children .product-child{width:2rem;height:2rem}}@media not all and (width>=1024px){&.image-large atomic-product-section-children .product-child{aspect-ratio:1;width:16.65%;height:auto;@supports not (aspect-ratio:1 / 1){&{height:auto}}}&.image-small atomic-product-section-children .product-child{aspect-ratio:1;width:16.65%;max-width:4.75rem;height:auto;@supports not (aspect-ratio:1 / 1){&{height:auto}}}&.image-icon atomic-product-section-children .product-child,&.image-none atomic-product-section-children .product-child{width:2rem;height:2rem}}}}}}@property --tw-font-weight{syntax:"*";inherits:false}`;
|
|
4
4
|
export default styles;
|
package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.js
CHANGED
|
@@ -12,6 +12,7 @@ import { bindingGuard } from "../../../decorators/binding-guard.js";
|
|
|
12
12
|
import { bindings } from "../../../decorators/bindings.js";
|
|
13
13
|
import { createProductContextController } from "../../../decorators/commerce/product-template-decorators.js";
|
|
14
14
|
import { errorGuard } from "../../../decorators/error-guard.js";
|
|
15
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
15
16
|
import { multiClassMap, tw } from "../../../directives/multi-class-map.js";
|
|
16
17
|
import { LightDomMixin } from "../../../mixins/light-dom.js";
|
|
17
18
|
import { defaultCurrencyFormatter } from '../../common/formats/format-common.js';
|
|
@@ -69,7 +70,7 @@ let AtomicProductPrice = class AtomicProductPrice extends LightDomMixin(LitEleme
|
|
|
69
70
|
${this.getFormattedValue(hasPromo ? 'ec_promo_price' : 'ec_price')}
|
|
70
71
|
</div>
|
|
71
72
|
<div class=${multiClassMap(promoClasses)}>
|
|
72
|
-
${hasPromo ? this.getFormattedValue('ec_price') : '
|
|
73
|
+
${hasPromo ? this.getFormattedValue('ec_price') : ''}
|
|
73
74
|
</div>
|
|
74
75
|
</div>
|
|
75
76
|
`;
|
|
@@ -92,6 +93,7 @@ __decorate([
|
|
|
92
93
|
], AtomicProductPrice.prototype, "render", null);
|
|
93
94
|
AtomicProductPrice = __decorate([
|
|
94
95
|
customElement('atomic-product-price'),
|
|
95
|
-
bindings()
|
|
96
|
+
bindings(),
|
|
97
|
+
withTailwindStyles
|
|
96
98
|
], AtomicProductPrice);
|
|
97
99
|
export { AtomicProductPrice };
|
package/dist/atomic/components/components/commerce/atomic-product-rating/atomic-product-rating.js
CHANGED
|
@@ -5,17 +5,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
7
|
import { ProductTemplatesHelpers } from '@coveo/headless/commerce';
|
|
8
|
-
import { html, LitElement } from 'lit';
|
|
8
|
+
import { css, html, LitElement } from 'lit';
|
|
9
9
|
import { customElement, property, state } from 'lit/decorators.js';
|
|
10
10
|
import { when } from 'lit/directives/when.js';
|
|
11
|
-
import ratingStyles from "../../common/atomic-rating/atomic-rating.tw.css.js";
|
|
12
|
-
import { computeNumberOfStars, renderRating, } from "../../common/atomic-rating/rating.js";
|
|
13
11
|
import { bindingGuard } from "../../../decorators/binding-guard";
|
|
14
12
|
import { bindings } from "../../../decorators/bindings.js";
|
|
15
13
|
import { createProductContextController } from "../../../decorators/commerce/product-template-decorators.js";
|
|
16
14
|
import { errorGuard } from "../../../decorators/error-guard";
|
|
17
15
|
import { LightDomMixin } from "../../../mixins/light-dom";
|
|
18
16
|
const Star = "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"13\" height=\"13\" viewBox=\"0 0 13 13\">\n <path\n d=\"m 2.6226137,7.5483827 -1.73646599,-1.67659 c -0.58287,-0.56277 -0.2895686,-1.54878 0.50612799,-1.70148 l 2.630348,-0.50477 c 0.31897,-0.06121 0.58834,-0.27352 0.72239,-0.56935 l 0.84414,-1.86293 c 0.35481,-0.78302702 1.46689,-0.78302802 1.8217,0 l 0.84414,1.86293 c 0.13405,0.29583 0.40342,0.50814 0.72239,0.56935 l 2.6303203,0.50477 c 0.7957,0.1527 1.089,1.13871 0.5062,1.70148 l -1.73651,1.67659 c -0.23632,0.22817 -0.34551,0.55786 -0.2921,0.88198 l 0.45461,2.7587403 c 0.1357,0.824 -0.7386003,1.4416 -1.4698203,1.0382 l -2.087,-1.1515 c -0.30069,-0.1659 -0.66547,-0.1659 -0.96616,0 l -2.087,1.1515 c -0.73122,0.4034 -1.60555,-0.2142 -1.46978,-1.0382 l 0.45457,-2.7587403 c 0.05341,-0.32412 -0.05578,-0.65381 -0.2921,-0.88198 z\"\n stroke-width=\"0.8125\"\n />\n</svg>";
|
|
17
|
+
import { computeNumberOfStars, renderRating, } from '../../common/atomic-rating/rating.js';
|
|
19
18
|
/**
|
|
20
19
|
* The `atomic-product-rating` element renders a star rating.
|
|
21
20
|
*
|
|
@@ -117,7 +116,8 @@ let AtomicProductRating = class AtomicProductRating extends LightDomMixin(LitEle
|
|
|
117
116
|
`;
|
|
118
117
|
}
|
|
119
118
|
};
|
|
120
|
-
AtomicProductRating.styles =
|
|
119
|
+
AtomicProductRating.styles = css`/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
|
|
120
|
+
@layer components{atomic-product-rating{& .text-rating-icon-active,& .text-rating-icon-inactive{& svg path{stroke:var(--atomic-rating-icon-outline-color,none)}}}}`;
|
|
121
121
|
__decorate([
|
|
122
122
|
state()
|
|
123
123
|
], AtomicProductRating.prototype, "bindings", void 0);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
const styles = css`/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
|
|
1
|
+
const css = `/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
|
|
3
2
|
@layer components{atomic-product-rating{& .text-rating-icon-active,& .text-rating-icon-inactive{& svg path{stroke:var(--atomic-rating-icon-outline-color,none)}}}}`;
|
|
4
|
-
export default
|
|
3
|
+
export default css;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export function parseDependsOn(dependsOn) {
|
|
2
|
+
if (Object.keys(dependsOn).length > 1) {
|
|
3
|
+
throw "Depending on multiple facets isn't supported";
|
|
4
|
+
}
|
|
5
|
+
return Object.entries(dependsOn).map(([parentFacetId, expectedValue]) => {
|
|
6
|
+
return {
|
|
7
|
+
parentFacetId,
|
|
8
|
+
condition: (values) => {
|
|
9
|
+
return values.some((value) => {
|
|
10
|
+
if (isCategoryFacetValue(value)) {
|
|
11
|
+
const selectedValue = getSelectedCategoryFacetValueRequest(value);
|
|
12
|
+
if (!selectedValue) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
if (!expectedValue) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
return selectedValue.value === expectedValue;
|
|
19
|
+
}
|
|
20
|
+
if (isSimpleFacetValue(value)) {
|
|
21
|
+
if (value.state !== 'selected') {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
if (!expectedValue) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
return value.value === expectedValue;
|
|
28
|
+
}
|
|
29
|
+
return false;
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function isCategoryFacetValue(request) {
|
|
36
|
+
const requestAsRecord = request;
|
|
37
|
+
return ((requestAsRecord?.children &&
|
|
38
|
+
Array.isArray(requestAsRecord.children) &&
|
|
39
|
+
requestAsRecord?.state &&
|
|
40
|
+
typeof requestAsRecord.state === 'string') === true);
|
|
41
|
+
}
|
|
42
|
+
function getSelectedCategoryFacetValueRequest(value) {
|
|
43
|
+
if (!isCategoryFacetValue(value)) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
if (value.state === 'selected') {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
for (const child of value.children) {
|
|
50
|
+
const selectedValue = getSelectedCategoryFacetValueRequest(child);
|
|
51
|
+
if (selectedValue !== null) {
|
|
52
|
+
return selectedValue;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
function isSimpleFacetValue(value) {
|
|
58
|
+
const asRecord = value;
|
|
59
|
+
return ('value' in asRecord &&
|
|
60
|
+
typeof asRecord.value === 'string' &&
|
|
61
|
+
!('children' in asRecord));
|
|
62
|
+
}
|