@coveo/atomic 3.30.1-pre.6f8efc1feb → 3.30.1-pre.a09bdf627b
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-aria-live2.js +1 -1
- package/dist/atomic/components/atomic-category-facet.js +1 -1
- package/dist/atomic/components/atomic-citation.js +1 -1
- package/dist/atomic/components/atomic-commerce-category-facet2.js +1 -1
- package/dist/atomic/components/atomic-commerce-numeric-facet2.js +2 -2
- package/dist/atomic/components/atomic-commerce-timeframe-facet2.js +1 -1
- package/dist/atomic/components/atomic-facet-manager.js +1 -1
- package/dist/atomic/components/atomic-facet.js +1 -1
- package/dist/atomic/components/atomic-format-currency.js +1 -1
- package/dist/atomic/components/atomic-format-number.js +1 -1
- package/dist/atomic/components/atomic-format-unit.js +1 -1
- package/dist/atomic/components/atomic-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 +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-no-results.js +1 -1
- package/dist/atomic/components/atomic-insight-numeric-facet.js +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-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 +1 -1
- package/dist/atomic/components/atomic-pager.js +3 -3
- package/dist/atomic/components/atomic-product-link.js +17 -1
- package/dist/atomic/components/atomic-product-link.js.map +1 -1
- 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-rating.js +7 -1
- package/dist/atomic/components/atomic-rating.js.map +1 -1
- package/dist/atomic/components/atomic-recs-error.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-inspector2.js +2 -2
- 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-results-per-page.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-suggestion-renderer2.js +1 -1
- package/dist/atomic/components/atomic-tab-manager.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.js +81 -0
- package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.js +103 -0
- package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.tw.css.js +3 -0
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +2 -0
- package/dist/atomic/components/components/commerce/index.js +2 -0
- package/dist/atomic/components/components/commerce/lazy-index.js +2 -0
- package/dist/atomic/components/facet-date-input.js +3 -3
- 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/tab-button.js +1 -1
- package/dist/atomic/components/tab-popover.js +1 -1
- package/dist/atomic/{p-254493bb.entry.js → p-10533f5e.entry.js} +2 -2
- package/dist/atomic/{p-ff601596.entry.js → p-1241378f.entry.js} +2 -2
- package/dist/atomic/{p-fcc01555.entry.js → p-179dd992.entry.js} +2 -2
- package/dist/atomic/{p-9ea0730b.entry.js → p-188a5988.entry.js} +2 -2
- package/dist/atomic/{p-053630b7.entry.js → p-1d8d898e.entry.js} +2 -2
- package/dist/atomic/{p-b7c58d1b.entry.js → p-1e82867d.entry.js} +2 -2
- package/dist/atomic/{p-18a6ee18.entry.js → p-2075d1c2.entry.js} +2 -2
- package/dist/atomic/{p-3817e41f.entry.js → p-23367d09.entry.js} +2 -2
- package/dist/atomic/{p-ef42977c.entry.js → p-24df7eb5.entry.js} +2 -2
- package/dist/atomic/{p-6fafebf4.entry.js → p-2b7bd1a7.entry.js} +2 -2
- package/dist/atomic/{p-16f39309.entry.js → p-2cb0696d.entry.js} +2 -2
- package/dist/atomic/{p-82f73cb7.entry.js → p-34280d19.entry.js} +2 -2
- package/dist/atomic/{p-4600286e.entry.js → p-34f13f68.entry.js} +2 -2
- package/dist/atomic/{p-4780a993.entry.js → p-380e9947.entry.js} +2 -2
- package/dist/atomic/{p-2e5900d5.entry.js → p-3a22931a.entry.js} +2 -2
- package/dist/atomic/{p-fa1c4917.entry.js → p-3b4f8370.entry.js} +2 -2
- package/dist/atomic/p-3f50439d.entry.js +2 -0
- package/dist/atomic/{p-8f10d6b1.entry.js → p-451abd79.entry.js} +2 -2
- package/dist/atomic/{p-0457e70e.entry.js → p-4cb4dce2.entry.js} +2 -2
- package/dist/atomic/{p-7e477e6a.entry.js → p-4cf83057.entry.js} +2 -2
- package/dist/atomic/{p-f37215a3.entry.js → p-4f71433c.entry.js} +2 -2
- package/dist/atomic/{p-0dbfef2a.entry.js → p-5231d47e.entry.js} +2 -2
- package/dist/atomic/{p-1bd29155.entry.js → p-547ec848.entry.js} +2 -2
- package/dist/atomic/{p-e67e6f25.entry.js → p-558b561c.entry.js} +2 -2
- package/dist/atomic/{p-312ea507.entry.js → p-56f79dbc.entry.js} +2 -2
- package/dist/atomic/{p-90e7ab82.entry.js → p-598355e2.entry.js} +2 -2
- package/dist/atomic/{p-0caed756.entry.js → p-5f5f3c02.entry.js} +2 -2
- package/dist/atomic/{p-413a3e9a.entry.js → p-5fc9f751.entry.js} +2 -2
- package/dist/atomic/{p-d376a122.entry.js → p-60677298.entry.js} +2 -2
- package/dist/atomic/{p-32768595.js → p-6f1e7923.js} +2 -2
- package/dist/atomic/{p-619fdbad.entry.js → p-78798600.entry.js} +2 -2
- package/dist/atomic/{p-0d272101.entry.js → p-793ac925.entry.js} +2 -2
- package/dist/atomic/{p-60c221c4.entry.js → p-7abdbad3.entry.js} +2 -2
- package/dist/atomic/{p-ab5284ef.entry.js → p-7c2465db.entry.js} +2 -2
- package/dist/atomic/{p-2553b81a.entry.js → p-7da7091f.entry.js} +2 -2
- package/dist/atomic/{p-fae8b0b6.entry.js → p-7e316f12.entry.js} +2 -2
- package/dist/atomic/{p-32d1d80d.entry.js → p-7e979900.entry.js} +2 -2
- package/dist/atomic/{p-f662801b.entry.js → p-81f9321f.entry.js} +2 -2
- package/dist/atomic/{p-5daf65a2.entry.js → p-8664e49f.entry.js} +2 -2
- package/dist/atomic/{p-1868dae3.entry.js → p-87306667.entry.js} +2 -2
- package/dist/atomic/p-88e3af33.entry.js +2 -0
- package/dist/atomic/{p-14e07101.entry.js → p-8b19b5c1.entry.js} +2 -2
- package/dist/atomic/{p-b25c9315.entry.js → p-8c07fe23.entry.js} +2 -2
- package/dist/atomic/{p-40068301.entry.js → p-933fb81c.entry.js} +2 -2
- package/dist/atomic/p-9619c25e.entry.js +2 -0
- package/dist/atomic/{p-0ed3432e.entry.js.map → p-9619c25e.entry.js.map} +1 -1
- package/dist/atomic/{p-c9594881.entry.js → p-9f349dea.entry.js} +2 -2
- package/dist/atomic/{p-33883a60.entry.js → p-a21b8355.entry.js} +2 -2
- package/dist/atomic/{p-014d7074.entry.js → p-a6f59ee7.entry.js} +2 -2
- package/dist/atomic/p-a7a7573a.js +2 -0
- package/dist/atomic/p-a7a7573a.js.map +1 -0
- package/dist/atomic/{p-ef6daa3c.entry.js → p-a9e90e8d.entry.js} +2 -2
- package/dist/atomic/p-ac93a338.entry.js +2 -0
- package/dist/atomic/p-b1c25636.entry.js +2 -0
- package/dist/atomic/p-b1c25636.entry.js.map +1 -0
- package/dist/atomic/{p-3e4997cb.entry.js → p-b369d9f3.entry.js} +2 -2
- package/dist/atomic/{p-0051c09e.entry.js → p-b7df58a2.entry.js} +2 -2
- package/dist/atomic/{p-c7aea960.entry.js → p-b8884511.entry.js} +2 -2
- package/dist/atomic/{p-d67f0c7d.entry.js → p-b9d90a15.entry.js} +2 -2
- package/dist/atomic/{p-b9cdeb9c.entry.js → p-c52ea307.entry.js} +2 -2
- package/dist/atomic/{p-6757d5c8.entry.js → p-c6d607ef.entry.js} +2 -2
- package/dist/atomic/{p-5cae2acd.entry.js → p-c7c8a40b.entry.js} +2 -2
- package/dist/atomic/{p-6c10c08c.entry.js → p-c8d47706.entry.js} +2 -2
- package/dist/atomic/{p-c7e06c91.entry.js → p-c8f4a164.entry.js} +2 -2
- package/dist/atomic/{p-7151eb35.entry.js → p-c91d1951.entry.js} +2 -2
- package/dist/atomic/{p-d2d1bbbc.entry.js → p-c953ea9f.entry.js} +2 -2
- package/dist/atomic/{p-86f61caa.entry.js → p-c997c2ad.entry.js} +2 -2
- package/dist/atomic/{p-57377cc0.entry.js → p-cb07fb1a.entry.js} +2 -2
- package/dist/atomic/{p-55c12e5f.entry.js → p-cc4a90fc.entry.js} +2 -2
- package/dist/atomic/p-d441cf69.entry.js +2 -0
- package/dist/atomic/{p-0c604072.entry.js.map → p-d441cf69.entry.js.map} +1 -1
- package/dist/atomic/{p-05f50dc9.entry.js → p-d64c6b59.entry.js} +2 -2
- package/dist/atomic/{p-087ba363.entry.js → p-dad54a83.entry.js} +2 -2
- package/dist/atomic/{p-03c36274.entry.js → p-e0c09699.entry.js} +2 -2
- package/dist/atomic/{p-19b2085d.entry.js → p-e240f215.entry.js} +2 -2
- package/dist/atomic/{p-6a43fe66.entry.js → p-e2765b24.entry.js} +2 -2
- package/dist/atomic/{p-f57dd2a9.entry.js → p-e51aee3d.entry.js} +2 -2
- package/dist/atomic/p-e790d557.entry.js +2 -0
- package/dist/atomic/{p-b8584d50.entry.js → p-ea98f3c7.entry.js} +2 -2
- package/dist/atomic/p-efd2bb5f.entry.js +2 -0
- package/dist/atomic/p-f09c6548.entry.js +2 -0
- package/dist/atomic/{p-a44740ec.entry.js.map → p-f09c6548.entry.js.map} +1 -1
- package/dist/atomic/{p-1df62ba9.entry.js → p-f27fba44.entry.js} +2 -2
- package/dist/atomic/p-f389bcba.entry.js +2 -0
- package/dist/atomic/{p-1e971b29.entry.js.map → p-f389bcba.entry.js.map} +1 -1
- package/dist/atomic/{p-23200ea1.entry.js → p-f7830503.entry.js} +2 -2
- package/dist/atomic/{p-a516f15f.entry.js → p-f7e0887c.entry.js} +2 -2
- package/dist/atomic/{p-66fd5541.entry.js → p-fa9454b5.entry.js} +2 -2
- package/dist/atomic/{p-963e508f.entry.js → p-fc68c8b0.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-56ddc132.js → analytics-config-923c8877.js} +2 -2
- package/dist/cjs/{analytics-config-56ddc132.js.map → analytics-config-923c8877.js.map} +1 -1
- package/dist/cjs/atomic-aria-live_2.cjs.entry.js +3 -3
- package/dist/cjs/atomic-category-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-citation.cjs.entry.js +1 -1
- package/dist/cjs/atomic-commerce-category-facet_4.cjs.entry.js +4 -4
- package/dist/cjs/atomic-facet-date-input.cjs.entry.js +3 -3
- 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 +1 -1
- 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 +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 +1 -1
- package/dist/cjs/atomic-insight-no-results.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js +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-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 +1 -1
- package/dist/cjs/atomic-pager.cjs.entry.js +3 -3
- package/dist/cjs/atomic-product-link.cjs.entry.js +18 -5
- package/dist/cjs/atomic-product-link.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-product-rating.cjs.entry.js +1 -2
- package/dist/cjs/atomic-product-rating.cjs.entry.js.map +1 -1
- 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-rating-6d5a98ec.js → atomic-rating-a37a1793.js} +9 -3
- package/dist/cjs/atomic-rating-a37a1793.js.map +1 -0
- package/dist/cjs/atomic-rating-facet.cjs.entry.js +1 -2
- package/dist/cjs/atomic-rating-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-rating-range-facet.cjs.entry.js +1 -2
- package/dist/cjs/atomic-rating-range-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-recs-error.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
- 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-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-result-rating.cjs.entry.js +1 -2
- package/dist/cjs/atomic-result-rating.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-results-per-page.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-search-interface.cjs.entry.js +1 -1
- 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-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 +0 -8
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-4e83a998.js → analytics-config-f4cb30c7.js} +2 -2
- package/dist/esm/{analytics-config-4e83a998.js.map → analytics-config-f4cb30c7.js.map} +1 -1
- package/dist/esm/atomic-aria-live_2.entry.js +3 -3
- package/dist/esm/atomic-category-facet.entry.js +1 -1
- package/dist/esm/atomic-citation.entry.js +1 -1
- package/dist/esm/atomic-commerce-category-facet_4.entry.js +4 -4
- package/dist/esm/atomic-facet-date-input.entry.js +3 -3
- 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 +1 -1
- 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 +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 +1 -1
- package/dist/esm/atomic-insight-no-results.entry.js +1 -1
- package/dist/esm/atomic-insight-numeric-facet.entry.js +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-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 +1 -1
- package/dist/esm/atomic-pager.entry.js +3 -3
- package/dist/esm/atomic-product-link.entry.js +17 -4
- package/dist/esm/atomic-product-link.entry.js.map +1 -1
- package/dist/esm/atomic-product-rating.entry.js +1 -2
- package/dist/esm/atomic-product-rating.entry.js.map +1 -1
- 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-rating-623f80fb.js → atomic-rating-cb537bf2.js} +8 -2
- package/dist/esm/atomic-rating-cb537bf2.js.map +1 -0
- package/dist/esm/atomic-rating-facet.entry.js +1 -2
- package/dist/esm/atomic-rating-facet.entry.js.map +1 -1
- package/dist/esm/atomic-rating-range-facet.entry.js +1 -2
- package/dist/esm/atomic-rating-range-facet.entry.js.map +1 -1
- package/dist/esm/atomic-recs-error.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +1 -1
- 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-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-result-rating.entry.js +1 -2
- package/dist/esm/atomic-result-rating.entry.js.map +1 -1
- package/dist/esm/atomic-results-per-page.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-search-interface.entry.js +1 -1
- 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-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 +0 -8
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-product-numeric-field-value/atomic-product-numeric-field-value.d.ts +18 -13
- package/dist/types/components/commerce/atomic-product-price/atomic-product-price.d.ts +15 -8
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +2 -0
- package/dist/types/components/commerce/index.d.ts +2 -0
- package/dist/types/components.d.ts +0 -62
- package/docs/atomic-docs.json +1 -75
- package/package.json +5 -5
- package/dist/atomic/components/atomic-product-numeric-field-value.d.ts +0 -11
- package/dist/atomic/components/atomic-product-numeric-field-value.js +0 -90
- package/dist/atomic/components/atomic-product-numeric-field-value.js.map +0 -1
- package/dist/atomic/components/atomic-product-price.d.ts +0 -11
- package/dist/atomic/components/atomic-product-price.js +0 -98
- package/dist/atomic/components/atomic-product-price.js.map +0 -1
- package/dist/atomic/components/error.js +0 -10
- package/dist/atomic/components/error.js.map +0 -1
- package/dist/atomic/components/product-utils.js +0 -33
- package/dist/atomic/components/product-utils.js.map +0 -1
- package/dist/atomic/p-009af1a0.entry.js +0 -2
- package/dist/atomic/p-0c604072.entry.js +0 -2
- package/dist/atomic/p-0ed3432e.entry.js +0 -2
- package/dist/atomic/p-1e971b29.entry.js +0 -2
- package/dist/atomic/p-2bdfa055.js +0 -2
- package/dist/atomic/p-2bdfa055.js.map +0 -1
- package/dist/atomic/p-2cfcffc7.entry.js +0 -2
- package/dist/atomic/p-3a9ef094.entry.js +0 -2
- package/dist/atomic/p-7163256b.js +0 -2
- package/dist/atomic/p-7163256b.js.map +0 -1
- package/dist/atomic/p-7525968c.entry.js +0 -2
- package/dist/atomic/p-7525968c.entry.js.map +0 -1
- package/dist/atomic/p-7deba242.entry.js +0 -2
- package/dist/atomic/p-7deba242.entry.js.map +0 -1
- package/dist/atomic/p-a44740ec.entry.js +0 -2
- package/dist/atomic/p-b1b751a5.js +0 -2
- package/dist/atomic/p-b1b751a5.js.map +0 -1
- package/dist/atomic/p-d4f88be6.entry.js +0 -2
- package/dist/atomic/p-db9fc2f4.entry.js +0 -2
- package/dist/atomic/p-f20b2d62.entry.js +0 -2
- package/dist/atomic/p-f20b2d62.entry.js.map +0 -1
- package/dist/cjs/atomic-product-numeric-field-value.cjs.entry.js +0 -80
- package/dist/cjs/atomic-product-numeric-field-value.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-product-price.cjs.entry.js +0 -92
- package/dist/cjs/atomic-product-price.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-rating-6d5a98ec.js.map +0 -1
- package/dist/cjs/error-ad501bd7.js +0 -12
- package/dist/cjs/error-ad501bd7.js.map +0 -1
- package/dist/cjs/product-utils-4bd389b3.js +0 -36
- package/dist/cjs/product-utils-4bd389b3.js.map +0 -1
- package/dist/esm/atomic-product-numeric-field-value.entry.js +0 -76
- package/dist/esm/atomic-product-numeric-field-value.entry.js.map +0 -1
- package/dist/esm/atomic-product-price.entry.js +0 -88
- package/dist/esm/atomic-product-price.entry.js.map +0 -1
- package/dist/esm/atomic-rating-623f80fb.js.map +0 -1
- package/dist/esm/error-9520e6d0.js +0 -10
- package/dist/esm/error-9520e6d0.js.map +0 -1
- package/dist/esm/product-utils-9dcbe57e.js +0 -33
- package/dist/esm/product-utils-9dcbe57e.js.map +0 -1
- /package/dist/atomic/{p-254493bb.entry.js.map → p-10533f5e.entry.js.map} +0 -0
- /package/dist/atomic/{p-ff601596.entry.js.map → p-1241378f.entry.js.map} +0 -0
- /package/dist/atomic/{p-fcc01555.entry.js.map → p-179dd992.entry.js.map} +0 -0
- /package/dist/atomic/{p-9ea0730b.entry.js.map → p-188a5988.entry.js.map} +0 -0
- /package/dist/atomic/{p-053630b7.entry.js.map → p-1d8d898e.entry.js.map} +0 -0
- /package/dist/atomic/{p-b7c58d1b.entry.js.map → p-1e82867d.entry.js.map} +0 -0
- /package/dist/atomic/{p-18a6ee18.entry.js.map → p-2075d1c2.entry.js.map} +0 -0
- /package/dist/atomic/{p-3817e41f.entry.js.map → p-23367d09.entry.js.map} +0 -0
- /package/dist/atomic/{p-ef42977c.entry.js.map → p-24df7eb5.entry.js.map} +0 -0
- /package/dist/atomic/{p-6fafebf4.entry.js.map → p-2b7bd1a7.entry.js.map} +0 -0
- /package/dist/atomic/{p-16f39309.entry.js.map → p-2cb0696d.entry.js.map} +0 -0
- /package/dist/atomic/{p-82f73cb7.entry.js.map → p-34280d19.entry.js.map} +0 -0
- /package/dist/atomic/{p-4600286e.entry.js.map → p-34f13f68.entry.js.map} +0 -0
- /package/dist/atomic/{p-4780a993.entry.js.map → p-380e9947.entry.js.map} +0 -0
- /package/dist/atomic/{p-2e5900d5.entry.js.map → p-3a22931a.entry.js.map} +0 -0
- /package/dist/atomic/{p-fa1c4917.entry.js.map → p-3b4f8370.entry.js.map} +0 -0
- /package/dist/atomic/{p-3a9ef094.entry.js.map → p-3f50439d.entry.js.map} +0 -0
- /package/dist/atomic/{p-8f10d6b1.entry.js.map → p-451abd79.entry.js.map} +0 -0
- /package/dist/atomic/{p-0457e70e.entry.js.map → p-4cb4dce2.entry.js.map} +0 -0
- /package/dist/atomic/{p-7e477e6a.entry.js.map → p-4cf83057.entry.js.map} +0 -0
- /package/dist/atomic/{p-f37215a3.entry.js.map → p-4f71433c.entry.js.map} +0 -0
- /package/dist/atomic/{p-0dbfef2a.entry.js.map → p-5231d47e.entry.js.map} +0 -0
- /package/dist/atomic/{p-1bd29155.entry.js.map → p-547ec848.entry.js.map} +0 -0
- /package/dist/atomic/{p-e67e6f25.entry.js.map → p-558b561c.entry.js.map} +0 -0
- /package/dist/atomic/{p-312ea507.entry.js.map → p-56f79dbc.entry.js.map} +0 -0
- /package/dist/atomic/{p-90e7ab82.entry.js.map → p-598355e2.entry.js.map} +0 -0
- /package/dist/atomic/{p-0caed756.entry.js.map → p-5f5f3c02.entry.js.map} +0 -0
- /package/dist/atomic/{p-413a3e9a.entry.js.map → p-5fc9f751.entry.js.map} +0 -0
- /package/dist/atomic/{p-d376a122.entry.js.map → p-60677298.entry.js.map} +0 -0
- /package/dist/atomic/{p-32768595.js.map → p-6f1e7923.js.map} +0 -0
- /package/dist/atomic/{p-619fdbad.entry.js.map → p-78798600.entry.js.map} +0 -0
- /package/dist/atomic/{p-0d272101.entry.js.map → p-793ac925.entry.js.map} +0 -0
- /package/dist/atomic/{p-60c221c4.entry.js.map → p-7abdbad3.entry.js.map} +0 -0
- /package/dist/atomic/{p-ab5284ef.entry.js.map → p-7c2465db.entry.js.map} +0 -0
- /package/dist/atomic/{p-2553b81a.entry.js.map → p-7da7091f.entry.js.map} +0 -0
- /package/dist/atomic/{p-fae8b0b6.entry.js.map → p-7e316f12.entry.js.map} +0 -0
- /package/dist/atomic/{p-32d1d80d.entry.js.map → p-7e979900.entry.js.map} +0 -0
- /package/dist/atomic/{p-f662801b.entry.js.map → p-81f9321f.entry.js.map} +0 -0
- /package/dist/atomic/{p-5daf65a2.entry.js.map → p-8664e49f.entry.js.map} +0 -0
- /package/dist/atomic/{p-1868dae3.entry.js.map → p-87306667.entry.js.map} +0 -0
- /package/dist/atomic/{p-2cfcffc7.entry.js.map → p-88e3af33.entry.js.map} +0 -0
- /package/dist/atomic/{p-14e07101.entry.js.map → p-8b19b5c1.entry.js.map} +0 -0
- /package/dist/atomic/{p-b25c9315.entry.js.map → p-8c07fe23.entry.js.map} +0 -0
- /package/dist/atomic/{p-40068301.entry.js.map → p-933fb81c.entry.js.map} +0 -0
- /package/dist/atomic/{p-c9594881.entry.js.map → p-9f349dea.entry.js.map} +0 -0
- /package/dist/atomic/{p-33883a60.entry.js.map → p-a21b8355.entry.js.map} +0 -0
- /package/dist/atomic/{p-014d7074.entry.js.map → p-a6f59ee7.entry.js.map} +0 -0
- /package/dist/atomic/{p-ef6daa3c.entry.js.map → p-a9e90e8d.entry.js.map} +0 -0
- /package/dist/atomic/{p-db9fc2f4.entry.js.map → p-ac93a338.entry.js.map} +0 -0
- /package/dist/atomic/{p-3e4997cb.entry.js.map → p-b369d9f3.entry.js.map} +0 -0
- /package/dist/atomic/{p-0051c09e.entry.js.map → p-b7df58a2.entry.js.map} +0 -0
- /package/dist/atomic/{p-c7aea960.entry.js.map → p-b8884511.entry.js.map} +0 -0
- /package/dist/atomic/{p-d67f0c7d.entry.js.map → p-b9d90a15.entry.js.map} +0 -0
- /package/dist/atomic/{p-b9cdeb9c.entry.js.map → p-c52ea307.entry.js.map} +0 -0
- /package/dist/atomic/{p-6757d5c8.entry.js.map → p-c6d607ef.entry.js.map} +0 -0
- /package/dist/atomic/{p-5cae2acd.entry.js.map → p-c7c8a40b.entry.js.map} +0 -0
- /package/dist/atomic/{p-6c10c08c.entry.js.map → p-c8d47706.entry.js.map} +0 -0
- /package/dist/atomic/{p-c7e06c91.entry.js.map → p-c8f4a164.entry.js.map} +0 -0
- /package/dist/atomic/{p-7151eb35.entry.js.map → p-c91d1951.entry.js.map} +0 -0
- /package/dist/atomic/{p-d2d1bbbc.entry.js.map → p-c953ea9f.entry.js.map} +0 -0
- /package/dist/atomic/{p-86f61caa.entry.js.map → p-c997c2ad.entry.js.map} +0 -0
- /package/dist/atomic/{p-57377cc0.entry.js.map → p-cb07fb1a.entry.js.map} +0 -0
- /package/dist/atomic/{p-55c12e5f.entry.js.map → p-cc4a90fc.entry.js.map} +0 -0
- /package/dist/atomic/{p-05f50dc9.entry.js.map → p-d64c6b59.entry.js.map} +0 -0
- /package/dist/atomic/{p-087ba363.entry.js.map → p-dad54a83.entry.js.map} +0 -0
- /package/dist/atomic/{p-03c36274.entry.js.map → p-e0c09699.entry.js.map} +0 -0
- /package/dist/atomic/{p-19b2085d.entry.js.map → p-e240f215.entry.js.map} +0 -0
- /package/dist/atomic/{p-6a43fe66.entry.js.map → p-e2765b24.entry.js.map} +0 -0
- /package/dist/atomic/{p-f57dd2a9.entry.js.map → p-e51aee3d.entry.js.map} +0 -0
- /package/dist/atomic/{p-d4f88be6.entry.js.map → p-e790d557.entry.js.map} +0 -0
- /package/dist/atomic/{p-b8584d50.entry.js.map → p-ea98f3c7.entry.js.map} +0 -0
- /package/dist/atomic/{p-009af1a0.entry.js.map → p-efd2bb5f.entry.js.map} +0 -0
- /package/dist/atomic/{p-1df62ba9.entry.js.map → p-f27fba44.entry.js.map} +0 -0
- /package/dist/atomic/{p-23200ea1.entry.js.map → p-f7830503.entry.js.map} +0 -0
- /package/dist/atomic/{p-a516f15f.entry.js.map → p-f7e0887c.entry.js.map} +0 -0
- /package/dist/atomic/{p-66fd5541.entry.js.map → p-fa9454b5.entry.js.map} +0 -0
- /package/dist/atomic/{p-963e508f.entry.js.map → p-fc68c8b0.entry.js.map} +0 -0
|
@@ -37,7 +37,7 @@ const AtomicQueryError$1 = /*@__PURE__*/ proxyCustomElement(class AtomicQueryErr
|
|
|
37
37
|
if (hasError) {
|
|
38
38
|
this.ariaMessage = getAriaMessageFromErrorType(i18n, organizationId, url, error?.type);
|
|
39
39
|
}
|
|
40
|
-
return (h(QueryErrorGuard, { key: '
|
|
40
|
+
return (h(QueryErrorGuard, { key: 'ea42a4a04bb483f9ec1575cc22072d6b5d87cf59', hasError: hasError }, h(QueryErrorContainer, { key: 'f813d0286bcadcda4885f62a454bd8e47a0463bb' }, h(QueryErrorIcon, { key: 'f02e79966f3b5e49bd618ebcee8f087ead715933', errorType: error?.type }), h(QueryErrorTitle, { key: '82773be68680d32c6ea0f0ad3d39ed3c6a84d88d', errorType: error?.type, i18n: i18n, organizationId: organizationId }), h(QueryErrorDescription, { key: '117ec022bcedba69ba868d29c8d2350fa8c03e12', i18n: i18n, organizationId: organizationId, url: url, errorType: error?.type }), h(QueryErrorShowMore, { key: 'd1bf3b2e88d1a827757a8e51b13dd37f858629b4', link: h(QueryErrorLink, { i18n: i18n, errorType: error?.type }), onShowMore: () => (this.showMoreInfo = !this.showMoreInfo), i18n: i18n }), h(QueryErrorDetails, { key: 'fd4c572f5d84d45c337e51bcbb93bfb565ec3284', error: error, show: this.showMoreInfo }))));
|
|
41
41
|
}
|
|
42
42
|
static get style() { return AtomicQueryErrorStyle0; }
|
|
43
43
|
}, [1, "atomic-query-error", {
|
|
@@ -40,7 +40,7 @@ const AtomicQuerySummary$1 = /*@__PURE__*/ proxyCustomElement(class AtomicQueryS
|
|
|
40
40
|
isLoading,
|
|
41
41
|
});
|
|
42
42
|
this.ariaMessage = ariaLiveMessage;
|
|
43
|
-
return (h(QuerySummaryGuard, { key: '
|
|
43
|
+
return (h(QuerySummaryGuard, { key: '824f25afe007b343cbf902060c97ea5e6716131e', firstSearchExecuted: firstSearchExecuted, hasResults: hasResults, hasError: hasError }, h(QuerySummaryContainer, { key: '392946ee77790cdf1a8e9374a8ad72a6a0ada0ca' }, h(LocalizedString, { key: i18nKey, i18n: this.bindings.i18n, params: highlights, count: total }), h("span", { key: '6d180fbed56a0f2fea5ba255d2596764b6c4949d', class: "hidden", part: "duration" }, "\u00A0", h(LocalizedString, { key: "in-seconds", i18n: this.bindings.i18n, params: {
|
|
44
44
|
count: durationInSeconds.toLocaleString(this.bindings.i18n.language),
|
|
45
45
|
} })))));
|
|
46
46
|
}
|
|
@@ -584,7 +584,7 @@ const AtomicQuickviewModal = /*@__PURE__*/ proxyCustomElement(class AtomicQuickv
|
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
586
|
render() {
|
|
587
|
-
return (h("atomic-modal", { key: '
|
|
587
|
+
return (h("atomic-modal", { key: '3538cc54522d1d134282ec0528a17d97011aebdc', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
|
|
588
588
|
}
|
|
589
589
|
static get watchers() { return {
|
|
590
590
|
"highlightKeywords": ["watchHighlightKeywords"]
|
|
@@ -108,7 +108,7 @@ const AtomicQuickview$1 = /*@__PURE__*/ proxyCustomElement(class AtomicQuickview
|
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
110
|
if (this.quickviewState.resultHasPreview) {
|
|
111
|
-
return (h(Button, { key: '
|
|
111
|
+
return (h(Button, { key: 'c043bb39ed2ce14e84f669f912d111b3cddd59a5', part: "button", title: this.bindings.i18n.t('quickview'), style: "outline-primary", class: "p-2", onClick: (event) => this.onClick(event), ref: this.focusTarget.setTarget }, h("atomic-icon", { key: 'e413d964e1fc691350dc0b6e6b1ba98be131cde0', part: "icon", class: "flex w-5 justify-center", icon: QuickviewIcon })));
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
static get style() { return AtomicQuickviewStyle0; }
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import { h } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
class FieldValueIsNaNError extends Error {
|
|
4
|
+
constructor(field, value) {
|
|
5
|
+
super(`Could not parse "${value}" from field "${field}" as a number.`);
|
|
6
|
+
this.name = 'FieldValueIsNaNError';
|
|
7
|
+
}
|
|
8
|
+
}
|
|
3
9
|
|
|
4
10
|
const Star = `<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13">
|
|
5
11
|
<path
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"atomic-rating.js","mappings":";;;;;;;;;;
|
|
1
|
+
{"file":"atomic-rating.js","mappings":";;MAAa,oBAAqB,SAAQ,KAAK;IAC7C,YAAY,KAAa,EAAE,KAAU;QACnC,KAAK,CAAC,oBAAoB,KAAK,iBAAiB,KAAK,gBAAgB,CAAC,CAAC;QACvE,IAAI,CAAC,IAAI,GAAG,sBAAsB,CAAC;KACpC;;;;;;;;;;MCQU,MAAM,GAAqC,CAAC,KAAK;IAC5D,MAAM,KAAK,GACT,CAAC,CAAC,KAAK,CAAC,mBAAmB,GAAG,KAAK,CAAC,kBAAkB,IAAI,GAAG,EAAE,QAAQ,EAAE;QACzE,GAAG,CAAC;IACN,MAAM,QAAQ,GAAG,GAAG,KAAK,CAAC,QAAQ,IAAI,IAAI,KAAK,CAAC;IAEhD,MAAM,UAAU,GAAG,CAAC,MAAe;QACjC,QACE,mBACE,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,KAAK,EAAE,YAAY,MAAM,GAAG,aAAa,GAAG,eAAe,EAAE,EAC7D,KAAK,EAAE,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAC,EAC1C,IAAI,EAAC,mBAAmB,GACX,EACf;KACH,CAAC;IAEF,MAAM,gBAAgB,GAAG;QACvB,MAAM,gBAAgB,GAAY,EAAE,CAAC;QACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,kBAAkB,EAAE,CAAC,EAAE,EAAE;YACjD,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;SAC1C;QACD,OAAO,gBAAgB,CAAC;KACzB,CAAC;IAEF,MAAM,iBAAiB,GAAG;QACxB,MAAM,iBAAiB,GAAY,EAAE,CAAC;QACtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,kBAAkB,EAAE,CAAC,EAAE,EAAE;YACjD,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;SAC1C;QACD,OAAO,iBAAiB,CAAC;KAC1B,CAAC;IAEF,QACE,WACE,KAAK,EAAC,gBAAgB,EACtB,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,KAAK,gBACE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,EAAE;YAChC,KAAK,EAAE,KAAK,CAAC,mBAAmB;YAChC,GAAG,EAAE,KAAK,CAAC,kBAAkB;SAC9B,CAAC;QAEF,WAAK,KAAK,EAAC,kBAAkB,IAAE,gBAAgB,EAAE,CAAO;QACxD,WACE,KAAK,EAAC,wDAAwD,EAC9D,KAAK,EAAE,EAAC,KAAK,EAAC,IAEb,iBAAiB,EAAE,CAChB,CACF,EACN;AACJ,EAAE;MAEW,oBAAoB,GAAG,CAClC,KAAc,EACd,KAAa;IAEb,IAAI,KAAK,KAAK,IAAI,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;IACD,MAAM,aAAa,GAAG,UAAU,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;IAC7C,IAAI,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,EAAE;QAC/B,MAAM,IAAI,oBAAoB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KAC9C;IACD,OAAO,aAAa,CAAC;AACvB;;;;","names":[],"sources":["src/components/commerce/product-template-component-utils/error.ts","src/components/common/atomic-rating/atomic-rating.tsx"],"sourcesContent":["export class FieldValueIsNaNError extends Error {\n constructor(field: string, value?: {}) {\n super(`Could not parse \"${value}\" from field \"${field}\" as a number.`);\n this.name = 'FieldValueIsNaNError';\n }\n}\n","import {FunctionalComponent, h, VNode} from '@stencil/core';\nimport {i18n} from 'i18next';\nimport {FieldValueIsNaNError} from '../../commerce/product-template-component-utils/error';\n\ninterface RatingProps {\n i18n: i18n;\n numberOfTotalIcons: number;\n numberOfActiveIcons: number;\n icon: string;\n iconSize?: number;\n}\n\nexport const Rating: FunctionalComponent<RatingProps> = (props) => {\n const width =\n ((props.numberOfActiveIcons / props.numberOfTotalIcons) * 100).toString() +\n '%';\n const iconSize = `${props.iconSize ?? 0.75}rem`;\n\n const renderIcon = (active: boolean) => {\n return (\n <atomic-icon\n icon={props.icon}\n class={`shrink-0 ${active ? 'icon-active' : 'icon-inactive'}`}\n style={{width: iconSize, height: iconSize}}\n part=\"value-rating-icon\"\n ></atomic-icon>\n );\n };\n\n const emptyIconDisplay = () => {\n const emptyIconDisplay: VNode[] = [];\n for (let i = 0; i < props.numberOfTotalIcons; i++) {\n emptyIconDisplay.push(renderIcon(false));\n }\n return emptyIconDisplay;\n };\n\n const filledIconDisplay = () => {\n const filledIconDisplay: VNode[] = [];\n for (let i = 0; i < props.numberOfTotalIcons; i++) {\n filledIconDisplay.push(renderIcon(true));\n }\n return filledIconDisplay;\n };\n\n return (\n <div\n class=\"relative w-max\"\n part=\"value-rating\"\n role=\"img\"\n aria-label={props.i18n.t('stars', {\n count: props.numberOfActiveIcons,\n max: props.numberOfTotalIcons,\n })}\n >\n <div class=\"z-0 flex gap-0.5\">{emptyIconDisplay()}</div>\n <div\n class=\"absolute top-0 left-0 z-1 flex gap-0.5 overflow-hidden\"\n style={{width}}\n >\n {filledIconDisplay()}\n </div>\n </div>\n );\n};\n\nexport const computeNumberOfStars = (\n value: unknown,\n field: string\n): number | null => {\n if (value === null) {\n return null;\n }\n const valueAsNumber = parseFloat(`${value}`);\n if (Number.isNaN(valueAsNumber)) {\n throw new FieldValueIsNaNError(field, value);\n }\n return valueAsNumber;\n};\n"],"version":3}
|
|
@@ -39,7 +39,7 @@ const AtomicRecsError$1 = /*@__PURE__*/ proxyCustomElement(class AtomicRecsError
|
|
|
39
39
|
if (hasError) {
|
|
40
40
|
this.ariaMessage = getAriaMessageFromErrorType(i18n, organizationId, url, error?.type);
|
|
41
41
|
}
|
|
42
|
-
return (h(QueryErrorGuard, { key: '
|
|
42
|
+
return (h(QueryErrorGuard, { key: '8300dbdd069b2cc791fbfd2c9a34905029d849c7', hasError: hasError }, h(QueryErrorContainer, { key: '4a4a0f632256d0ac1d6510542496e4e697363621' }, h(QueryErrorIcon, { key: '87895858979696f8defe5f8eddb9cea6f0662741', errorType: error?.type }), h(QueryErrorTitle, { key: '3c6c38cb44496a28168593127bb99439c39bbe15', i18n: i18n, organizationId: organizationId }), h(QueryErrorDescription, { key: 'b37db01242ce1f93ccb283039cd76172ce976e25', i18n: i18n, organizationId: organizationId, url: url }), h(QueryErrorShowMore, { key: '7fb9dd18dda32bcfe6dfc696cc959e57bddcb9f9', link: h(QueryErrorLink, { i18n: i18n, errorType: error?.type }), onShowMore: () => (this.showMoreInfo = !this.showMoreInfo), i18n: i18n }), h(QueryErrorDetails, { key: '142873cf8a892cd13308f875ca033f428afd12a7', error: error, show: this.showMoreInfo }))));
|
|
43
43
|
}
|
|
44
44
|
static get style() { return AtomicRecsErrorStyle0; }
|
|
45
45
|
}, [1, "atomic-recs-error", {
|
|
@@ -262,7 +262,7 @@ const AtomicRecsList$1 = /*@__PURE__*/ proxyCustomElement(class AtomicRecsList e
|
|
|
262
262
|
}))));
|
|
263
263
|
}
|
|
264
264
|
render() {
|
|
265
|
-
return (h(Fragment, { key: '
|
|
265
|
+
return (h(Fragment, { key: '765902164a53c1134a443c9db5de24c0bce12c35' }, this.renderHeading(), this.shouldRenderPagination ? (h(Carousel, { bindings: this.bindings, currentPage: this.currentPage, nextPage: () => this.nextPage(), previousPage: () => this.previousPage(), numberOfPages: this.numberOfPages }, this.renderListOfRecommendations())) : (this.renderListOfRecommendations())));
|
|
266
266
|
}
|
|
267
267
|
get host() { return this; }
|
|
268
268
|
static get watchers() { return {
|
|
@@ -206,7 +206,7 @@ const AtomicRefineModal = /*@__PURE__*/ proxyCustomElement(class AtomicRefineMod
|
|
|
206
206
|
return (h(RefineModalFiltersSection, { i18n: i18n, withFacets: hasFacetElements, withAutomaticFacets: hasAutomaticFacets }, this.breadcrumbManagerState.hasBreadcrumbs && (h(RefineModalFiltersClearButton, { i18n: i18n, onClick: () => this.breadcrumbManager.deselectAll() }))));
|
|
207
207
|
}
|
|
208
208
|
render() {
|
|
209
|
-
return (h(RefineModal, { key: '
|
|
209
|
+
return (h(RefineModal, { key: '432ce8badf2b18c42d60e46cf51079214c1817a5', i18n: this.bindings.i18n, host: this.host, isOpen: this.isOpen, onClose: () => (this.isOpen = false), title: this.bindings.i18n.t('sort-and-filter'), numberOfItems: this.querySummaryState.total, openButton: this.openButton }, h(RefineModalBody, { key: '849e935b8fbc3fead5a57b7e7d1a65dffec1eafd' }, this.renderSort(), this.renderFilters())));
|
|
210
210
|
}
|
|
211
211
|
componentDidLoad() {
|
|
212
212
|
this.host.style.display = '';
|
|
@@ -70,7 +70,7 @@ const AtomicRefineToggle$1 = /*@__PURE__*/ proxyCustomElement(class AtomicRefine
|
|
|
70
70
|
this.modalRef && (this.modalRef.isOpen = true);
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (h(RefineToggleGuard, { key: '
|
|
73
|
+
return (h(RefineToggleGuard, { key: '836247eec175c1cf0e5cd53893de04f4812fdbb7', firstRequestExecuted: this.searchStatusState.firstSearchExecuted, hasError: this.searchStatusState.hasError, hasItems: this.searchStatusState.hasResults }, h(RefineToggleButton, { key: '7c47869f8a807cf382aa9b19908fb977beb1a69a', i18n: this.bindings.i18n, onClick: () => this.enableModal(), setRef: (button) => {
|
|
74
74
|
if (!button) {
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
@@ -18,9 +18,9 @@ const AtomicRelevanceInspector = /*@__PURE__*/ proxyCustomElement(class AtomicRe
|
|
|
18
18
|
this.open = false;
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("atomic-modal", { key: '
|
|
21
|
+
return (h("atomic-modal", { key: 'fdca864107673701719cf3daea3a399d4eb65006', exportparts: "footer", isOpen: this.open, close: () => {
|
|
22
22
|
this.closeRelevanceInspector?.emit();
|
|
23
|
-
} }, h("p", { key: '
|
|
23
|
+
} }, h("p", { key: 'ef8bd0ddeccdbfb89410a08f5e11f9f155774829', slot: "header" }, "Open the relevance inspector"), h("p", { key: '9c539ea8d52a4722bc255b505bd5ce648f6741eb', slot: "body" }, "The Relevance Inspector will open in the Coveo Administration Console."), h("div", { key: 'ae566e999066b319c294282878f3ced7803ab6ee', slot: "footer", class: "flex w-full items-center justify-end" }, h(Button, { key: 'd5e5d96dfdbddc9d1f35eb4dede47aab187bea40', style: "outline-primary", class: "mr-2 p-2", onClick: () => this.closeRelevanceInspector?.emit() }, "Ignore"), h("a", { key: 'b5b65d232255a2f1c3660381b4828e9eb3e6225d', class: "btn-primary p-2", target: "_blank", href: this.adminHref, onClick: () => this.closeRelevanceInspector?.emit() }, "Open"))));
|
|
24
24
|
}
|
|
25
25
|
get adminHref() {
|
|
26
26
|
const { organizationId, environment } = this.bindings.engine.state.configuration;
|
|
@@ -138,7 +138,7 @@ const AtomicResultChildren$1 = /*@__PURE__*/ proxyCustomElement(class AtomicResu
|
|
|
138
138
|
return (h(ChildrenWrapper, { hasChildren: children.length > 0 }, children.map((child, i) => this.renderChild(child, i === children.length - 1))));
|
|
139
139
|
}
|
|
140
140
|
render() {
|
|
141
|
-
return (h(ResultChildrenGuard, { key: '
|
|
141
|
+
return (h(ResultChildrenGuard, { key: '717045df4bd68be2f64d8c2d9091f05a763e55ed', inheritTemplates: this.inheritTemplates, resultTemplateRegistered: this.resultTemplateRegistered, templateHasError: this.templateHasError }, this.collection ? this.renderCollection() : this.renderFoldedResult()));
|
|
142
142
|
}
|
|
143
143
|
get host() { return this; }
|
|
144
144
|
static get style() { return AtomicResultChildrenStyle0; }
|
|
@@ -98,7 +98,7 @@ const AtomicResultFieldsList$1 = /*@__PURE__*/ proxyCustomElement(class AtomicRe
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return h(Host, { key: '
|
|
101
|
+
return h(Host, { key: '96122012d005a559ce273f7a624715c8d35e5d9a' });
|
|
102
102
|
}
|
|
103
103
|
get host() { return this; }
|
|
104
104
|
static get style() { return AtomicResultFieldsListStyle0; }
|
|
@@ -43,7 +43,7 @@ const AtomicResultLink$1 = /*@__PURE__*/ proxyCustomElement(class AtomicResultLi
|
|
|
43
43
|
const href = isUndefined(this.hrefTemplate)
|
|
44
44
|
? this.result.clickUri
|
|
45
45
|
: buildStringTemplateFromResult(this.hrefTemplate, this.result, this.bindings);
|
|
46
|
-
return (h(LinkWithItemAnalytics, { key: '
|
|
46
|
+
return (h(LinkWithItemAnalytics, { key: '3fc36762124d5af7fc1b4f70bad32af4bb82f7cd', href: href, onSelect: () => this.interactiveResult.select(), onBeginDelayedSelect: () => this.interactiveResult.beginDelayedSelect(), onCancelPendingSelect: () => this.interactiveResult.cancelPendingSelect(), attributes: this.linkAttributes, stopPropagation: this.stopPropagation }, this.hasDefaultSlot ? (h("slot", null)) : (h("atomic-result-text", { field: "title", default: "no-title" }))));
|
|
47
47
|
}
|
|
48
48
|
get host() { return this; }
|
|
49
49
|
static get style() { return AtomicResultLinkStyle0; }
|
|
@@ -194,7 +194,7 @@ const AtomicResultList$1 = /*@__PURE__*/ proxyCustomElement(class AtomicResultLi
|
|
|
194
194
|
render() {
|
|
195
195
|
this.resultListCommon.updateBreakpoints();
|
|
196
196
|
const listClasses = this.computeListDisplayClasses();
|
|
197
|
-
return (h(TabGuard, { key: '
|
|
197
|
+
return (h(TabGuard, { key: 'c70bc74385cc32b6fc26fcac2f351cdacc4c5356', tabsIncluded: this.tabsIncluded, tabsExcluded: this.tabsExcluded, activeTab: this.tabManagerState.activeTab }, h(ItemListGuard, { key: '2e0ca0d534692f2956fdc6030cf132249eca3b7c', hasError: this.resultListState.hasError, hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, h(DisplayWrapper, { key: 'ae74dd8f97f47849672efdd54dfd3346944b9a64', display: this.display, listClasses: listClasses }, h(ResultsPlaceholdersGuard, { key: '9ef950ba2e66a8655a88e26b7c3c6cdfa5644d8b', density: this.density, display: this.display, imageSize: this.imageSize, displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults }), h(ItemDisplayGuard, { key: '7c469f902f86b956b73b64ea639fa937794f6cb5', firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, this.display === 'table'
|
|
198
198
|
? this.renderAsTable()
|
|
199
199
|
: this.display === 'grid'
|
|
200
200
|
? this.renderAsGrid()
|
|
@@ -27,9 +27,9 @@ const AtomicResultPlaceholder = /*@__PURE__*/ proxyCustomElement(class AtomicRes
|
|
|
27
27
|
} }, h("div", { class: placeholderClasses, style: { height: 'var(--font-size)' } })));
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (h("div", { key: '
|
|
30
|
+
return (h("div", { key: '3e020db4911d8d41c33d89cf53fe3c1a37db3d74', class: `result-root placeholder with-sections animate-pulse ${getItemDisplayClasses(this.display, this.density, this.imageSize)
|
|
31
31
|
.join(' ')
|
|
32
|
-
.trim()}` }, h("atomic-result-section-visual", { key: '
|
|
32
|
+
.trim()}` }, h("atomic-result-section-visual", { key: '1a7052cf55926cc38d925f2abb9eab3456e1f6d2' }, h("div", { key: '56be825849b3fa941fac230b2f38e6ac799788e8', class: placeholderClasses })), h("atomic-result-section-badges", { key: '65fd60631d764b39b991b7a8bde5840ccdfc058f' }, h("div", { key: '98bf58d26965f1af34d0528d15a46cd227320b1f', class: `badge ${placeholderClasses}` })), h("atomic-result-section-actions", { key: '4b5c654914ff62e3c0eb75eb1f4a5faf12c2296e' }, h("div", { key: '83e3f10b054bd842f22a30746a907066846fcf14', class: `action ${placeholderClasses}` })), h("atomic-result-section-title", { key: '4af4daa4118078cd7e65afe1f572e85629527cf0' }, h("div", { key: 'a9e0afc0ed5dbb2294234244692c63a56f102869', class: `title ${placeholderClasses}` })), h("atomic-result-section-excerpt", { key: '73525474400b12f6bb48c5997ca85338f63a6459' }, this.renderExcerptLine('100%'), this.renderExcerptLine('95%'), this.renderExcerptLine('98%')), h("atomic-result-section-bottom-metadata", { key: 'c4ed0a67319247a32cb84c2982446f97cea31208' }, h("div", { key: '40c43e2f52f8c5264fe55f6cebafb6aac2a1aaf1', class: "fields-placeholder" }, Array.from({ length: 4 }, () => (h("div", { class: `field-value-placeholder ${placeholderClasses}` })))))));
|
|
33
33
|
}
|
|
34
34
|
static get style() { return AtomicResultPlaceholderStyle0; }
|
|
35
35
|
}, [1, "atomic-result-placeholder", {
|
|
@@ -18,7 +18,7 @@ const AtomicResultTablePlaceholder = /*@__PURE__*/ proxyCustomElement(class Atom
|
|
|
18
18
|
return getItemDisplayClasses('table', this.density, this.imageSize);
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (h("table", { key: '
|
|
21
|
+
return (h("table", { key: 'e3894d1a723938a6f1f66d47371478897da7f46b', class: `list-root animate-pulse ${this.getClasses().join(' ')}` }, h("thead", { key: '6f1d91fdb7fbb3414dc47e379eb9ad11b0d6f5d5' }, h("tr", { key: 'a3d73bce56235237bd3213044f24b61c10408ac6' }, h("th", { key: '2adef1f6a0423ce4390b2a0fd94b61ddde41dfa1' }, h("div", { key: '07e7aceaff65b4b101113c7616e3bbe4fa398062', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '14.5rem' } })), h("th", { key: '37e3206bedd16de03d7f4085bf147f29ba47f941' }, h("div", { key: '422fb8fd304cbb560eb224eacefb4bf3311c8199', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '9.75rem' } })), h("th", { key: '63d45ed4794cf2a2138338bb4b65db28c2165544' }, h("div", { key: 'aa8f94e563c9a47bfdd178af8468ababd17fb630', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '6.5rem' } })))), h("tbody", { key: 'f2c27545245f277a5ad5f47d95666663f16728c5' }, Array.from({ length: this.rows }, () => (h("tr", null, h("td", null, h("div", { class: `mb-6 h-8 ${placeholderClasses}`, style: { width: '22.875rem' } }), h("div", { class: `mb-2 h-5 ${placeholderClasses}`, style: { width: '23.75rem' } }), h("div", { class: `h-5 ${placeholderClasses}`, style: { width: '11.5rem' } })), h("td", null, h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '11rem' } })), h("td", null, h("div", { class: `mt-1.5 h-5 ${placeholderClasses}`, style: { width: '4.875rem' } }))))))));
|
|
22
22
|
}
|
|
23
23
|
static get style() { return AtomicResultTablePlaceholderStyle0; }
|
|
24
24
|
}, [1, "atomic-result-table-placeholder", {
|
|
@@ -129,7 +129,7 @@ const AtomicResultsPerPage$1 = /*@__PURE__*/ proxyCustomElement(class AtomicResu
|
|
|
129
129
|
return this.bindings.i18n.t('results-per-page');
|
|
130
130
|
}
|
|
131
131
|
render() {
|
|
132
|
-
return (h(PagerGuard, { key: '
|
|
132
|
+
return (h(PagerGuard, { key: 'aef59ffbe113b8ff6d2d8de45ec1f38a8ab8b5ad', hasError: this.searchStatusState.hasError, hasItems: this.searchStatusState.hasResults, isAppLoaded: this.isAppLoaded }, h("div", { key: '8e77efbab4efc970e67855673853b1629f45ef0b', class: "flex items-center", role: "toolbar", "aria-label": this.label }, h(Label, { key: '6af26c78e85aac895e6bff8654c8bbdd3f0523a9' }, this.label), h(FieldsetGroup, { key: '4b92c1975712848f6285f270e679a18b4aa08eee', label: this.label }, h(Choices, { key: '16faa4f15bcce244e615dc6ee3324dc73205db8b', label: this.label, groupName: this.radioGroupName, pageSize: this.resultPerPageState.numberOfResults, choices: this.choices, lang: this.bindings.i18n.language, scrollToTopEvent: this.scrollToTopEvent.emit, setItemSize: this.resultPerPage.set, focusOnFirstResultAfterNextSearch: () => this.bindings.store.state.resultList?.focusOnFirstResultAfterNextSearch(), focusOnNextNewResult: () => this.bindings.store.state.resultList?.focusOnNextNewResult() })))));
|
|
133
133
|
}
|
|
134
134
|
static get style() { return AtomicResultsPerPageStyle0; }
|
|
135
135
|
}, [1, "atomic-results-per-page", {
|
|
@@ -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: '7fef78ba34dcf5520614b00b2f90f9e20559ab5b', 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: 'cef7d53ee00b38415521f42ed24377129f4c7093', 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: '09b06f32127b7d7a63e3d8166104147a671ab43e' }, this.renderAbsolutePositionSpacer(), [
|
|
431
|
+
h(SearchBoxWrapper, { key: '7aba6374fa549fa038d330194a5bc0f023997dec', 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: '30adbc0710741bc451f6e49acb4d2b45581cfcaf', 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: '3316ac0b4980aa58afebdf04de77df7aedaf6de6' }, h("atomic-search-box-recent-queries", { key: '318455ea4ccefc0c3e18946fe95d165fdc10a182' }), h("atomic-search-box-query-suggestions", { key: 'e95f76775e5bbaed7c3fdbdc9eeddd6740073e7b' }))),
|
|
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: '4affba20e6d0450b25ec7b25195f84757d0352c5' }, 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: '49c073d4a3f1c26b7697e6d934ecb9e6201cf245', class: this.fullHeight || !this.shouldRenderButton
|
|
60
60
|
? this.isExpanded
|
|
61
61
|
? 'expanded'
|
|
62
62
|
: ''
|
|
63
|
-
: 'invisible' }, h("div", { key: '
|
|
63
|
+
: 'invisible' }, h("div", { key: 'dd00c48c5379b0be6cddb0d9c3a8e0a0fc18b631', part: "smart-snippet-collapse-wrapper", class: "block overflow-hidden" }, h("slot", { key: '7f80007a1b5ec17744076a548ee60dcf9f0ad30b' })), 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: '06742ab1eec50c35d086c87ab8e197ef39a79d49', 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: '836bcadd40b303488223df26d7c0f5554f2db6c6', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, h(SmartSnippetFeedbackModalHeader, { key: '1217615617e3f41ef061461116f5d054040d977a', i18n: this.bindings.i18n }), h(SmartSnippetFeedbackModalBody, { key: '084f5eed70bdaab992ae6d1573a753cc8da0bc28', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, h(SmartSnippetFeebackModalOptions, { key: 'b94fbcad5e3881854282c6df35b6552c558452ed', 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: 'e19ba2cf9a1ea90b369d9ec39e7a0b54f0a9ad4c', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), h(SmartSnippetFeedbackModalFooter, { key: 'b8d8fc82351c15d659328c373f1e51d5e5393f01', 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: '5c3ed8dcf2781a61b8bef1e326c31c0464c672fb' }, h(LinkWithItemAnalytics, { key: 'e2570a124c186f80ef86181641d9dcacf1f109b1', 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: '8065bfdeb815dbfa537f2b8c3394a1c16ffbde82', 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: 'c4710486ab41fc6759c07d5850c8e83bb9a37160', firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: hasResults }, h(SortContainer, { key: '653c93dbd9d5b3535f8ddb808f4cdfba0026613c' }, h(SortLabel, { key: 'a9c6c2a860400c3f6c07eda8be3a34a2469bec71', i18n: i18n, id: id }), h(SortSelect, { key: '8f4826457092ffb87bc9292a9d8276b232f3d99b', 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: 'd36b41c41973b6fda29d7ba6b0ec3c1eacde7224' }),
|
|
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: '278d83f4f6b5d95041fe199f0a911e360eb5823c', element: this.host, error: error }));
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
get host() { return this; }
|
|
@@ -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: '285092df55387853ab1c4ae7b855329243e0f6e5', 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: '51deeb9f56009f83954ab00c955065dcb740e319' }, h("atomic-tab-bar", { key: '7e637249b5b4db12f3a81f777e9fcb6cab66210d' }, h("div", { key: 'd19cc7766d8b1c5123bcc2cbb3d5482e541e63d8', 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) {
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { html, LitElement } from 'lit';
|
|
8
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
9
|
+
import { when } from 'lit/directives/when.js';
|
|
10
|
+
import { bindingGuard } from "../../../decorators/binding-guard.js";
|
|
11
|
+
import { bindings } from "../../../decorators/bindings.js";
|
|
12
|
+
import { createProductContextController } from "../../../decorators/commerce/product-template-decorators.js";
|
|
13
|
+
import { errorGuard } from "../../../decorators/error-guard.js";
|
|
14
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
15
|
+
import { defaultNumberFormatter, } from '../../common/formats/format-common.js';
|
|
16
|
+
import { parseValue } from '../product-template-component-utils/product-utils.js';
|
|
17
|
+
/**
|
|
18
|
+
* The `atomic-product-numeric-field-value` component renders the value of a number product field.
|
|
19
|
+
*
|
|
20
|
+
* The number can be formatted by adding a `atomic-format-number`, `atomic-format-currency` or `atomic-format-unit` component into this component.
|
|
21
|
+
* @alpha
|
|
22
|
+
*/
|
|
23
|
+
let AtomicProductNumericFieldValue = class AtomicProductNumericFieldValue extends LitElement {
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
this.productController = createProductContextController(this);
|
|
27
|
+
this.formatter = defaultNumberFormatter;
|
|
28
|
+
this.setFormat = (event) => {
|
|
29
|
+
const customEvent = event;
|
|
30
|
+
customEvent.preventDefault();
|
|
31
|
+
customEvent.stopPropagation();
|
|
32
|
+
this.formatter = customEvent.detail;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
createRenderRoot() {
|
|
36
|
+
return this;
|
|
37
|
+
}
|
|
38
|
+
initialize() {
|
|
39
|
+
this.addEventListener('atomic/numberFormat', this.setFormat);
|
|
40
|
+
}
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
super.disconnectedCallback();
|
|
43
|
+
this.removeEventListener('atomic/numberFormat', this.setFormat);
|
|
44
|
+
}
|
|
45
|
+
get value() {
|
|
46
|
+
const product = this.productController.item;
|
|
47
|
+
if (!product) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
const value = parseValue(product, this.field);
|
|
51
|
+
if (value === null) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return this.formatter(value, this.bindings.i18n.languages);
|
|
55
|
+
}
|
|
56
|
+
render() {
|
|
57
|
+
return html `${when(this.value !== null, () => html `${this.value}`)}`;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
__decorate([
|
|
61
|
+
state()
|
|
62
|
+
], AtomicProductNumericFieldValue.prototype, "bindings", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
state()
|
|
65
|
+
], AtomicProductNumericFieldValue.prototype, "error", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
property({ reflect: true })
|
|
68
|
+
], AtomicProductNumericFieldValue.prototype, "field", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
state()
|
|
71
|
+
], AtomicProductNumericFieldValue.prototype, "formatter", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
errorGuard(),
|
|
74
|
+
bindingGuard()
|
|
75
|
+
], AtomicProductNumericFieldValue.prototype, "render", null);
|
|
76
|
+
AtomicProductNumericFieldValue = __decorate([
|
|
77
|
+
customElement('atomic-product-numeric-field-value'),
|
|
78
|
+
bindings(),
|
|
79
|
+
withTailwindStyles
|
|
80
|
+
], AtomicProductNumericFieldValue);
|
|
81
|
+
export { AtomicProductNumericFieldValue };
|
package/dist/atomic/components/components/commerce/atomic-product-price/atomic-product-price.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { buildContext, } from '@coveo/headless/commerce';
|
|
8
|
+
import { html, LitElement, unsafeCSS } from 'lit';
|
|
9
|
+
import { customElement, state } from 'lit/decorators.js';
|
|
10
|
+
import { when } from 'lit/directives/when.js';
|
|
11
|
+
import { bindStateToController } from "../../../decorators/bind-state.js";
|
|
12
|
+
import { bindingGuard } from "../../../decorators/binding-guard.js";
|
|
13
|
+
import { bindings } from "../../../decorators/bindings.js";
|
|
14
|
+
import { createProductContextController } from "../../../decorators/commerce/product-template-decorators.js";
|
|
15
|
+
import { errorGuard } from "../../../decorators/error-guard.js";
|
|
16
|
+
import { injectStylesForNoShadowDOM } from "../../../decorators/inject-styles-for-no-shadow-dom.js";
|
|
17
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
18
|
+
import { multiClassMap, tw } from "../../../directives/multi-class-map.js";
|
|
19
|
+
import { defaultCurrencyFormatter } from '../../common/formats/format-common.js';
|
|
20
|
+
import { parseValue } from '../product-template-component-utils/product-utils.js';
|
|
21
|
+
import styles from './atomic-product-price.tw.css';
|
|
22
|
+
/**
|
|
23
|
+
* The `atomic-product-price` component renders the price of a product.
|
|
24
|
+
* @alpha
|
|
25
|
+
*/
|
|
26
|
+
let AtomicProductPrice = class AtomicProductPrice extends LitElement {
|
|
27
|
+
constructor() {
|
|
28
|
+
super(...arguments);
|
|
29
|
+
this.productController = createProductContextController(this);
|
|
30
|
+
}
|
|
31
|
+
initialize() {
|
|
32
|
+
this.context = buildContext(this.bindings.engine);
|
|
33
|
+
}
|
|
34
|
+
get product() {
|
|
35
|
+
return this.productController.item;
|
|
36
|
+
}
|
|
37
|
+
formatValue(value) {
|
|
38
|
+
try {
|
|
39
|
+
const { currency } = this.contextState;
|
|
40
|
+
const formatter = defaultCurrencyFormatter(currency);
|
|
41
|
+
return formatter(value, this.bindings.i18n.languages);
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
this.error = error;
|
|
45
|
+
return value.toString();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
getFormattedValue(field) {
|
|
49
|
+
const value = parseValue(this.product, field);
|
|
50
|
+
if (value !== null) {
|
|
51
|
+
return this.formatValue(value);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
get hasPromotionalPrice() {
|
|
55
|
+
return (this.product &&
|
|
56
|
+
this.product.ec_promo_price !== null &&
|
|
57
|
+
this.product.ec_price !== null &&
|
|
58
|
+
this.product.ec_promo_price < this.product.ec_price);
|
|
59
|
+
}
|
|
60
|
+
render() {
|
|
61
|
+
const priceClasses = tw({
|
|
62
|
+
'truncate break-keep text-2xl': true,
|
|
63
|
+
'text-error': this.hasPromotionalPrice,
|
|
64
|
+
});
|
|
65
|
+
return html `
|
|
66
|
+
<div class="flex flex-wrap gap-1">
|
|
67
|
+
<div
|
|
68
|
+
class=${multiClassMap(priceClasses)}
|
|
69
|
+
>
|
|
70
|
+
${this.getFormattedValue(this.hasPromotionalPrice ? 'ec_promo_price' : 'ec_price')}
|
|
71
|
+
</div>
|
|
72
|
+
|
|
73
|
+
${when(this.hasPromotionalPrice, () => html `
|
|
74
|
+
<div class="original-price content-center truncate text-xl break-keep line-through">
|
|
75
|
+
${this.getFormattedValue('ec_price')}
|
|
76
|
+
</div>
|
|
77
|
+
`)}
|
|
78
|
+
</div>
|
|
79
|
+
`;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
AtomicProductPrice.styles = unsafeCSS(styles);
|
|
83
|
+
__decorate([
|
|
84
|
+
state()
|
|
85
|
+
], AtomicProductPrice.prototype, "bindings", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
state()
|
|
88
|
+
], AtomicProductPrice.prototype, "error", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
bindStateToController('context'),
|
|
91
|
+
state()
|
|
92
|
+
], AtomicProductPrice.prototype, "contextState", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
errorGuard(),
|
|
95
|
+
bindingGuard()
|
|
96
|
+
], AtomicProductPrice.prototype, "render", null);
|
|
97
|
+
AtomicProductPrice = __decorate([
|
|
98
|
+
customElement('atomic-product-price'),
|
|
99
|
+
bindings(),
|
|
100
|
+
injectStylesForNoShadowDOM,
|
|
101
|
+
withTailwindStyles
|
|
102
|
+
], AtomicProductPrice);
|
|
103
|
+
export { AtomicProductPrice };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const css = `/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-leading:initial}}}.display-grid atomic-product-price{flex-flow:column wrap;display:flex}.display-grid atomic-product-price .original-price{--tw-leading:1;line-height:1}@property --tw-leading{syntax:"*";inherits:false}`;
|
|
3
|
+
export default [css];
|