@coveo/atomic 3.28.0-pre.4f3f990ed7 → 3.28.0-pre.51bfa6a7cd
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/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-query-error.js +1 -1
- package/dist/atomic/components/atomic-commerce-recommendation-interface.js +1 -1
- package/dist/atomic/components/atomic-commerce-refine-modal2.js +1 -1
- package/dist/atomic/components/atomic-commerce-refine-toggle.js +1 -1
- 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 +14 -2
- package/dist/atomic/components/atomic-no-results.js.map +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-description.js +1 -7
- package/dist/atomic/components/atomic-product-description.js.map +1 -1
- package/dist/atomic/components/atomic-product-excerpt.js +1 -7
- package/dist/atomic/components/atomic-product-excerpt.js.map +1 -1
- package/dist/atomic/components/atomic-product-link.js +1 -7
- package/dist/atomic/components/atomic-product-link.js.map +1 -1
- package/dist/atomic/components/atomic-product-price.js +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-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-result-text2.js +45 -2
- package/dist/atomic/components/atomic-result-text2.js.map +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-commerce-layout/atomic-commerce-layout.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.js +95 -0
- package/dist/atomic/components/components/commerce/atomic-commerce-products-per-page/atomic-commerce-products-per-page.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +3 -1
- package/dist/atomic/components/components/commerce/atomic-product-text/atomic-product-text.js +135 -0
- package/dist/atomic/components/components/commerce/index.js +2 -0
- package/dist/atomic/components/components/commerce/lazy-index.js +2 -0
- package/dist/atomic/components/components/commerce/product-template-component-utils/error.js +6 -0
- package/dist/atomic/components/components/commerce/product-template-component-utils/product-utils.js +35 -0
- package/dist/atomic/components/components/common/item-text/field-warning.js +6 -0
- package/dist/atomic/components/components/common/item-text/item-text-fallback.js +15 -0
- package/dist/atomic/components/components/common/item-text/item-text-highlighted.js +17 -0
- package/dist/atomic/components/components/common/item-text/render-highlights.js +13 -0
- package/dist/atomic/components/components/common/no-items/container.js +7 -0
- package/dist/atomic/components/components/common/no-items/guard.js +11 -0
- package/dist/atomic/components/components/common/no-items/magnifying-glass.js +11 -0
- package/dist/atomic/components/components/common/no-items/no-items.js +30 -0
- package/dist/atomic/components/components/common/no-items/tips.js +8 -0
- package/dist/atomic/components/{utils2.js → components/common/no-items/utils.js} +1 -5
- 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/interface-common-stencil.js +1 -1
- package/dist/atomic/components/product-utils.js +1 -8
- package/dist/atomic/components/product-utils.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/components/utils/object-utils.js +13 -0
- package/dist/atomic/{p-a046cf06.entry.js → p-0166649f.entry.js} +2 -2
- package/dist/atomic/{p-d827c148.entry.js → p-07968356.entry.js} +2 -2
- package/dist/atomic/{p-29d27418.entry.js → p-0bcfd9e7.entry.js} +2 -2
- package/dist/atomic/{p-a772b365.entry.js → p-0f4f6b95.entry.js} +2 -2
- package/dist/atomic/{p-9ae88402.entry.js → p-107400f4.entry.js} +2 -2
- package/dist/atomic/{p-47ee9d37.entry.js → p-1686dd4e.entry.js} +2 -2
- package/dist/atomic/{p-3f42a2db.entry.js → p-1a189a4a.entry.js} +2 -2
- package/dist/atomic/{p-d1efd50f.entry.js → p-1fbbed3e.entry.js} +2 -2
- package/dist/atomic/{p-c0d7b26d.entry.js → p-2fb01b9f.entry.js} +2 -2
- package/dist/atomic/{p-ae8a1da4.js → p-36f9fcb0.js} +2 -2
- package/dist/atomic/{p-f6283657.entry.js → p-37a3e033.entry.js} +2 -2
- package/dist/atomic/{p-a3169f59.entry.js → p-38885808.entry.js} +2 -2
- package/dist/atomic/{p-ec0161b7.entry.js → p-38efdad8.entry.js} +2 -2
- package/dist/atomic/{p-46522ee4.entry.js → p-3a6d85ba.entry.js} +2 -2
- package/dist/atomic/{p-0267a585.entry.js → p-3c56ddf6.entry.js} +2 -2
- package/dist/atomic/{p-306c83ea.entry.js → p-3c8ed811.entry.js} +2 -2
- package/dist/atomic/p-4497df4a.entry.js +2 -0
- package/dist/atomic/{p-f4a1bfe3.entry.js → p-4630f21a.entry.js} +2 -2
- package/dist/atomic/{p-b19a8cbb.entry.js → p-46ecbdbc.entry.js} +2 -2
- package/dist/atomic/{p-fd9d1c3f.entry.js → p-49e052c2.entry.js} +2 -2
- package/dist/atomic/{p-0b0ea7d3.entry.js → p-4d139df4.entry.js} +2 -2
- package/dist/atomic/p-4de0c016.entry.js +2 -0
- package/dist/atomic/{p-e44155cc.entry.js → p-50b7f5e8.entry.js} +2 -2
- package/dist/atomic/{p-543e811e.entry.js → p-50d4886b.entry.js} +2 -2
- package/dist/atomic/{p-99604083.entry.js → p-51565abd.entry.js} +2 -2
- package/dist/atomic/{p-3195fa42.entry.js → p-55f50d5e.entry.js} +2 -2
- package/dist/atomic/{p-2f0cb73c.entry.js → p-564605c1.entry.js} +2 -2
- package/dist/atomic/{p-dd8c6bdd.entry.js → p-565a5e0d.entry.js} +2 -2
- package/dist/atomic/{p-80dc3bab.entry.js → p-56801993.entry.js} +2 -2
- package/dist/atomic/{p-d4aba9f9.entry.js → p-59ac477f.entry.js} +2 -2
- package/dist/atomic/{p-8e09f796.entry.js → p-5eca0d33.entry.js} +2 -2
- package/dist/atomic/{p-a8281e9b.entry.js → p-631000af.entry.js} +2 -2
- package/dist/atomic/{p-60a9e718.entry.js → p-64a237ba.entry.js} +2 -2
- package/dist/atomic/{p-70ab347b.entry.js → p-66562526.entry.js} +2 -2
- package/dist/atomic/{p-50b9a5d2.entry.js → p-6ae6b977.entry.js} +2 -2
- package/dist/atomic/{p-fb0bdcdb.entry.js → p-6bda0a03.entry.js} +2 -2
- package/dist/atomic/{p-3ec18de9.entry.js → p-6c71c49b.entry.js} +2 -2
- package/dist/atomic/{p-8392e900.entry.js → p-6f6b53e4.entry.js} +2 -2
- package/dist/atomic/{p-f4b98113.entry.js → p-6f708b94.entry.js} +2 -2
- package/dist/atomic/{p-d0cbcaf5.entry.js → p-70966764.entry.js} +2 -2
- package/dist/atomic/{p-32b26cd0.entry.js → p-714e5692.entry.js} +2 -2
- package/dist/atomic/{p-b7824e0e.entry.js → p-74261c54.entry.js} +2 -2
- package/dist/atomic/{p-5618b1a2.entry.js → p-7671d983.entry.js} +2 -2
- package/dist/atomic/{p-4ec76c4d.entry.js → p-76b15640.entry.js} +2 -2
- package/dist/atomic/p-7c8101f6.js +2 -0
- package/dist/atomic/{p-67315415.entry.js → p-80e1d96b.entry.js} +2 -2
- package/dist/atomic/{p-bfeefcaa.entry.js → p-81575de0.entry.js} +2 -2
- package/dist/atomic/{p-d69756ae.entry.js → p-82c5b823.entry.js} +2 -2
- package/dist/atomic/{p-9a08dad7.entry.js → p-90619819.entry.js} +2 -2
- package/dist/atomic/{p-8d7f57d9.entry.js → p-907e8b14.entry.js} +2 -2
- package/dist/atomic/p-93091fb7.entry.js +2 -0
- package/dist/atomic/{p-76122df5.entry.js → p-948c62c9.entry.js} +2 -2
- package/dist/atomic/{p-be13ed5c.entry.js → p-a12a865a.entry.js} +2 -2
- package/dist/atomic/{p-9eb108c9.entry.js → p-a1719068.entry.js} +2 -2
- package/dist/atomic/p-a1c4ac09.js +2 -0
- package/dist/atomic/p-a1c4ac09.js.map +1 -0
- package/dist/atomic/{p-51c5acfc.entry.js → p-a2161335.entry.js} +2 -2
- package/dist/atomic/{p-0a7b0daa.entry.js → p-a36e0adb.entry.js} +2 -2
- package/dist/atomic/{p-b4d47ca9.entry.js → p-a3b64777.entry.js} +2 -2
- package/dist/atomic/{p-45b26cc7.entry.js → p-a55a6705.entry.js} +2 -2
- package/dist/atomic/{p-ab5eec3d.entry.js → p-a5acd65b.entry.js} +2 -2
- package/dist/atomic/{p-690b5853.entry.js → p-a7abf0e1.entry.js} +2 -2
- package/dist/atomic/{p-32c90fe9.entry.js → p-aac69407.entry.js} +2 -2
- package/dist/atomic/{p-eab28672.entry.js → p-ad3ee863.entry.js} +2 -2
- package/dist/atomic/{p-9d2230db.entry.js → p-ae1675b3.entry.js} +2 -2
- package/dist/atomic/{p-ce4e939b.entry.js → p-b112525e.entry.js} +2 -2
- package/dist/atomic/{p-66683abd.entry.js → p-b1230da3.entry.js} +2 -2
- package/dist/atomic/{p-95942ba2.entry.js → p-b5d358d8.entry.js} +2 -2
- package/dist/atomic/{p-983443ff.entry.js → p-b6363708.entry.js} +2 -2
- package/dist/atomic/{p-c13d4039.entry.js → p-b8702505.entry.js} +2 -2
- package/dist/atomic/{p-ec6bc15b.entry.js → p-bb502279.entry.js} +2 -2
- package/dist/atomic/{p-ddd52850.entry.js → p-be061124.entry.js} +2 -2
- package/dist/atomic/{p-e604fd29.entry.js → p-c753c557.entry.js} +2 -2
- package/dist/atomic/p-cceca6bd.entry.js +2 -0
- package/dist/atomic/{p-7d1f8d9c.entry.js → p-cd4c6b6b.entry.js} +2 -2
- package/dist/atomic/{p-c4f042ae.entry.js → p-ce3a6c4e.entry.js} +2 -2
- package/dist/atomic/p-d76c5232.entry.js +2 -0
- package/dist/atomic/{p-1cc97adc.entry.js → p-d774c15e.entry.js} +2 -2
- package/dist/atomic/{p-f7f8096a.entry.js → p-d9e0dcdf.entry.js} +2 -2
- package/dist/atomic/{p-c83f9cff.entry.js → p-dd073755.entry.js} +2 -2
- package/dist/atomic/{p-689e063d.entry.js → p-ddf0b2e0.entry.js} +2 -2
- package/dist/atomic/{p-cd87574b.entry.js → p-e46150fa.entry.js} +2 -2
- package/dist/atomic/{p-f7f81710.js → p-e988f378.js} +2 -2
- package/dist/atomic/{p-22a0d1b9.entry.js → p-ea5d2736.entry.js} +2 -2
- package/dist/atomic/{p-b4dfe5b2.entry.js → p-ea5d6cd8.entry.js} +2 -2
- package/dist/atomic/{p-d30057a0.entry.js → p-eadb22d2.entry.js} +2 -2
- package/dist/atomic/p-f1bbe060.entry.js +2 -0
- package/dist/atomic/p-f1bbe060.entry.js.map +1 -0
- package/dist/atomic/{p-135be5aa.entry.js → p-f46b7410.entry.js} +2 -2
- package/dist/atomic/{p-e4754fd0.entry.js → p-fdd01814.entry.js} +2 -2
- package/dist/atomic/p-fe85b7d7.entry.js +2 -0
- package/dist/atomic/p-fe85b7d7.entry.js.map +1 -0
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-68b09ab8.js → analytics-config-3589365f.js} +2 -2
- package/dist/cjs/{analytics-config-68b09ab8.js.map → analytics-config-3589365f.js.map} +1 -1
- package/dist/cjs/atomic-aria-live.cjs.entry.js +1 -1
- 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_5.cjs.entry.js +4 -4
- package/dist/cjs/atomic-commerce-facet-number-input_2.cjs.entry.js +3 -3
- package/dist/cjs/atomic-commerce-query-error.cjs.entry.js +1 -1
- package/dist/cjs/atomic-commerce-recommendation-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-commerce-refine-modal.cjs.entry.js +1 -1
- package/dist/cjs/atomic-commerce-refine-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-facet-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic-facet-number-input.cjs.entry.js +2 -2
- package/dist/cjs/atomic-facet.cjs.entry.js +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 +2 -2
- 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 +15 -3
- package/dist/cjs/atomic-no-results.cjs.entry.js.map +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 +1 -1
- package/dist/cjs/atomic-product-numeric-field-value.cjs.entry.js +1 -1
- package/dist/cjs/atomic-product-price.cjs.entry.js +2 -2
- 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-result-text_2.cjs.entry.js +46 -4
- package/dist/cjs/atomic-result-text_2.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 +2 -2
- 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/{interface-common-stencil-2eedf89b.js → interface-common-stencil-3df07012.js} +2 -2
- package/dist/cjs/{interface-common-stencil-2eedf89b.js.map → interface-common-stencil-3df07012.js.map} +1 -1
- package/dist/cjs/{product-utils-9507462c.js → product-utils-f6c780e3.js} +1 -9
- package/dist/cjs/product-utils-f6c780e3.js.map +1 -0
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-9efbbd9b.js → analytics-config-8b3e1ed8.js} +2 -2
- package/dist/esm/{analytics-config-9efbbd9b.js.map → analytics-config-8b3e1ed8.js.map} +1 -1
- package/dist/esm/atomic-aria-live.entry.js +1 -1
- 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_5.entry.js +4 -4
- package/dist/esm/atomic-commerce-facet-number-input_2.entry.js +3 -3
- package/dist/esm/atomic-commerce-query-error.entry.js +1 -1
- package/dist/esm/atomic-commerce-recommendation-interface.entry.js +2 -2
- package/dist/esm/atomic-commerce-refine-modal.entry.js +1 -1
- package/dist/esm/atomic-commerce-refine-toggle.entry.js +1 -1
- package/dist/esm/atomic-facet-manager.entry.js +1 -1
- package/dist/esm/atomic-facet-number-input.entry.js +2 -2
- package/dist/esm/atomic-facet.entry.js +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 +2 -2
- package/dist/esm/atomic-insight-no-results.entry.js +2 -2
- 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 +15 -3
- package/dist/esm/atomic-no-results.entry.js.map +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 +1 -1
- package/dist/esm/atomic-product-numeric-field-value.entry.js +1 -1
- package/dist/esm/atomic-product-price.entry.js +2 -2
- 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-result-text_2.entry.js +45 -3
- package/dist/esm/atomic-result-text_2.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 +2 -2
- 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/{interface-common-stencil-033e7849.js → interface-common-stencil-cc067aba.js} +2 -2
- package/dist/esm/{interface-common-stencil-033e7849.js.map → interface-common-stencil-cc067aba.js.map} +1 -1
- package/dist/esm/{product-utils-8348689f.js → product-utils-85109d2e.js} +2 -9
- package/dist/esm/product-utils-85109d2e.js.map +1 -0
- package/dist/esm/{stencil-tips-06e9b3c2.js → stencil-tips-be95482d.js} +2 -2
- package/dist/esm/{stencil-tips-06e9b3c2.js.map → stencil-tips-be95482d.js.map} +1 -1
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-layout/atomic-commerce-layout.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-no-products/atomic-commerce-no-products.d.ts +15 -6
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +3 -1
- package/dist/types/components/commerce/atomic-product-text/atomic-product-text.d.ts +29 -15
- package/dist/types/components/commerce/index.d.ts +2 -0
- package/dist/types/components/common/items-per-page/label.d.ts +2 -2
- package/dist/types/components/common/no-items/container.d.ts +2 -2
- package/dist/types/components/common/no-items/magnifying-glass.d.ts +2 -2
- package/dist/types/components.d.ts +0 -74
- package/dist/types/utils/functional-component-utils.d.ts +3 -0
- package/docs/atomic-docs.json +7 -195
- package/package.json +3 -3
- package/dist/atomic/components/atomic-commerce-no-products.d.ts +0 -11
- package/dist/atomic/components/atomic-commerce-no-products.js +0 -74
- package/dist/atomic/components/atomic-commerce-no-products.js.map +0 -1
- package/dist/atomic/components/atomic-product-text.d.ts +0 -11
- package/dist/atomic/components/atomic-product-text.js +0 -8
- package/dist/atomic/components/atomic-product-text.js.map +0 -1
- package/dist/atomic/components/atomic-product-text2.js +0 -77
- package/dist/atomic/components/atomic-product-text2.js.map +0 -1
- package/dist/atomic/components/stencil-item-text-highlighted.js +0 -49
- package/dist/atomic/components/stencil-item-text-highlighted.js.map +0 -1
- package/dist/atomic/components/utils2.js.map +0 -1
- package/dist/atomic/p-2ff906b9.entry.js +0 -2
- package/dist/atomic/p-2ff906b9.entry.js.map +0 -1
- package/dist/atomic/p-59017e0a.entry.js +0 -2
- package/dist/atomic/p-59017e0a.entry.js.map +0 -1
- package/dist/atomic/p-5cf5bb98.entry.js +0 -2
- package/dist/atomic/p-733252f1.entry.js +0 -2
- package/dist/atomic/p-733252f1.entry.js.map +0 -1
- package/dist/atomic/p-7613aa42.entry.js +0 -2
- package/dist/atomic/p-7613aa42.entry.js.map +0 -1
- package/dist/atomic/p-b1a7d837.js +0 -2
- package/dist/atomic/p-b1a7d837.js.map +0 -1
- package/dist/atomic/p-b747e4a9.entry.js +0 -2
- package/dist/atomic/p-bb081d4e.js +0 -2
- package/dist/atomic/p-bb081d4e.js.map +0 -1
- package/dist/atomic/p-befca41f.entry.js +0 -2
- package/dist/atomic/p-c397db8d.js +0 -2
- package/dist/atomic/p-eebb168b.entry.js +0 -2
- package/dist/atomic/p-fb3e07e9.js +0 -2
- package/dist/atomic/p-fb3e07e9.js.map +0 -1
- package/dist/atomic/p-fbbbc454.entry.js +0 -2
- package/dist/cjs/atomic-commerce-no-products.cjs.entry.js +0 -65
- package/dist/cjs/atomic-commerce-no-products.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-product-text.cjs.entry.js +0 -70
- package/dist/cjs/atomic-product-text.cjs.entry.js.map +0 -1
- package/dist/cjs/product-utils-9507462c.js.map +0 -1
- package/dist/cjs/stencil-item-text-highlighted-91fd0fe8.js +0 -52
- package/dist/cjs/stencil-item-text-highlighted-91fd0fe8.js.map +0 -1
- package/dist/cjs/utils-ca9c9aed.js +0 -18
- package/dist/cjs/utils-ca9c9aed.js.map +0 -1
- package/dist/esm/atomic-commerce-no-products.entry.js +0 -61
- package/dist/esm/atomic-commerce-no-products.entry.js.map +0 -1
- package/dist/esm/atomic-product-text.entry.js +0 -66
- package/dist/esm/atomic-product-text.entry.js.map +0 -1
- package/dist/esm/product-utils-8348689f.js.map +0 -1
- package/dist/esm/stencil-item-text-highlighted-0e1c6c08.js +0 -49
- package/dist/esm/stencil-item-text-highlighted-0e1c6c08.js.map +0 -1
- package/dist/esm/utils-bd51f737.js +0 -16
- package/dist/esm/utils-bd51f737.js.map +0 -1
- /package/dist/atomic/{p-a046cf06.entry.js.map → p-0166649f.entry.js.map} +0 -0
- /package/dist/atomic/{p-d827c148.entry.js.map → p-07968356.entry.js.map} +0 -0
- /package/dist/atomic/{p-29d27418.entry.js.map → p-0bcfd9e7.entry.js.map} +0 -0
- /package/dist/atomic/{p-a772b365.entry.js.map → p-0f4f6b95.entry.js.map} +0 -0
- /package/dist/atomic/{p-9ae88402.entry.js.map → p-107400f4.entry.js.map} +0 -0
- /package/dist/atomic/{p-47ee9d37.entry.js.map → p-1686dd4e.entry.js.map} +0 -0
- /package/dist/atomic/{p-3f42a2db.entry.js.map → p-1a189a4a.entry.js.map} +0 -0
- /package/dist/atomic/{p-d1efd50f.entry.js.map → p-1fbbed3e.entry.js.map} +0 -0
- /package/dist/atomic/{p-c0d7b26d.entry.js.map → p-2fb01b9f.entry.js.map} +0 -0
- /package/dist/atomic/{p-ae8a1da4.js.map → p-36f9fcb0.js.map} +0 -0
- /package/dist/atomic/{p-f6283657.entry.js.map → p-37a3e033.entry.js.map} +0 -0
- /package/dist/atomic/{p-a3169f59.entry.js.map → p-38885808.entry.js.map} +0 -0
- /package/dist/atomic/{p-ec0161b7.entry.js.map → p-38efdad8.entry.js.map} +0 -0
- /package/dist/atomic/{p-46522ee4.entry.js.map → p-3a6d85ba.entry.js.map} +0 -0
- /package/dist/atomic/{p-0267a585.entry.js.map → p-3c56ddf6.entry.js.map} +0 -0
- /package/dist/atomic/{p-306c83ea.entry.js.map → p-3c8ed811.entry.js.map} +0 -0
- /package/dist/atomic/{p-befca41f.entry.js.map → p-4497df4a.entry.js.map} +0 -0
- /package/dist/atomic/{p-f4a1bfe3.entry.js.map → p-4630f21a.entry.js.map} +0 -0
- /package/dist/atomic/{p-b19a8cbb.entry.js.map → p-46ecbdbc.entry.js.map} +0 -0
- /package/dist/atomic/{p-fd9d1c3f.entry.js.map → p-49e052c2.entry.js.map} +0 -0
- /package/dist/atomic/{p-0b0ea7d3.entry.js.map → p-4d139df4.entry.js.map} +0 -0
- /package/dist/atomic/{p-fbbbc454.entry.js.map → p-4de0c016.entry.js.map} +0 -0
- /package/dist/atomic/{p-e44155cc.entry.js.map → p-50b7f5e8.entry.js.map} +0 -0
- /package/dist/atomic/{p-543e811e.entry.js.map → p-50d4886b.entry.js.map} +0 -0
- /package/dist/atomic/{p-99604083.entry.js.map → p-51565abd.entry.js.map} +0 -0
- /package/dist/atomic/{p-3195fa42.entry.js.map → p-55f50d5e.entry.js.map} +0 -0
- /package/dist/atomic/{p-2f0cb73c.entry.js.map → p-564605c1.entry.js.map} +0 -0
- /package/dist/atomic/{p-dd8c6bdd.entry.js.map → p-565a5e0d.entry.js.map} +0 -0
- /package/dist/atomic/{p-80dc3bab.entry.js.map → p-56801993.entry.js.map} +0 -0
- /package/dist/atomic/{p-d4aba9f9.entry.js.map → p-59ac477f.entry.js.map} +0 -0
- /package/dist/atomic/{p-8e09f796.entry.js.map → p-5eca0d33.entry.js.map} +0 -0
- /package/dist/atomic/{p-a8281e9b.entry.js.map → p-631000af.entry.js.map} +0 -0
- /package/dist/atomic/{p-60a9e718.entry.js.map → p-64a237ba.entry.js.map} +0 -0
- /package/dist/atomic/{p-70ab347b.entry.js.map → p-66562526.entry.js.map} +0 -0
- /package/dist/atomic/{p-50b9a5d2.entry.js.map → p-6ae6b977.entry.js.map} +0 -0
- /package/dist/atomic/{p-fb0bdcdb.entry.js.map → p-6bda0a03.entry.js.map} +0 -0
- /package/dist/atomic/{p-3ec18de9.entry.js.map → p-6c71c49b.entry.js.map} +0 -0
- /package/dist/atomic/{p-8392e900.entry.js.map → p-6f6b53e4.entry.js.map} +0 -0
- /package/dist/atomic/{p-f4b98113.entry.js.map → p-6f708b94.entry.js.map} +0 -0
- /package/dist/atomic/{p-d0cbcaf5.entry.js.map → p-70966764.entry.js.map} +0 -0
- /package/dist/atomic/{p-32b26cd0.entry.js.map → p-714e5692.entry.js.map} +0 -0
- /package/dist/atomic/{p-b7824e0e.entry.js.map → p-74261c54.entry.js.map} +0 -0
- /package/dist/atomic/{p-5618b1a2.entry.js.map → p-7671d983.entry.js.map} +0 -0
- /package/dist/atomic/{p-4ec76c4d.entry.js.map → p-76b15640.entry.js.map} +0 -0
- /package/dist/atomic/{p-c397db8d.js.map → p-7c8101f6.js.map} +0 -0
- /package/dist/atomic/{p-67315415.entry.js.map → p-80e1d96b.entry.js.map} +0 -0
- /package/dist/atomic/{p-bfeefcaa.entry.js.map → p-81575de0.entry.js.map} +0 -0
- /package/dist/atomic/{p-d69756ae.entry.js.map → p-82c5b823.entry.js.map} +0 -0
- /package/dist/atomic/{p-9a08dad7.entry.js.map → p-90619819.entry.js.map} +0 -0
- /package/dist/atomic/{p-8d7f57d9.entry.js.map → p-907e8b14.entry.js.map} +0 -0
- /package/dist/atomic/{p-eebb168b.entry.js.map → p-93091fb7.entry.js.map} +0 -0
- /package/dist/atomic/{p-76122df5.entry.js.map → p-948c62c9.entry.js.map} +0 -0
- /package/dist/atomic/{p-be13ed5c.entry.js.map → p-a12a865a.entry.js.map} +0 -0
- /package/dist/atomic/{p-9eb108c9.entry.js.map → p-a1719068.entry.js.map} +0 -0
- /package/dist/atomic/{p-51c5acfc.entry.js.map → p-a2161335.entry.js.map} +0 -0
- /package/dist/atomic/{p-0a7b0daa.entry.js.map → p-a36e0adb.entry.js.map} +0 -0
- /package/dist/atomic/{p-b4d47ca9.entry.js.map → p-a3b64777.entry.js.map} +0 -0
- /package/dist/atomic/{p-45b26cc7.entry.js.map → p-a55a6705.entry.js.map} +0 -0
- /package/dist/atomic/{p-ab5eec3d.entry.js.map → p-a5acd65b.entry.js.map} +0 -0
- /package/dist/atomic/{p-690b5853.entry.js.map → p-a7abf0e1.entry.js.map} +0 -0
- /package/dist/atomic/{p-32c90fe9.entry.js.map → p-aac69407.entry.js.map} +0 -0
- /package/dist/atomic/{p-eab28672.entry.js.map → p-ad3ee863.entry.js.map} +0 -0
- /package/dist/atomic/{p-9d2230db.entry.js.map → p-ae1675b3.entry.js.map} +0 -0
- /package/dist/atomic/{p-ce4e939b.entry.js.map → p-b112525e.entry.js.map} +0 -0
- /package/dist/atomic/{p-66683abd.entry.js.map → p-b1230da3.entry.js.map} +0 -0
- /package/dist/atomic/{p-95942ba2.entry.js.map → p-b5d358d8.entry.js.map} +0 -0
- /package/dist/atomic/{p-983443ff.entry.js.map → p-b6363708.entry.js.map} +0 -0
- /package/dist/atomic/{p-c13d4039.entry.js.map → p-b8702505.entry.js.map} +0 -0
- /package/dist/atomic/{p-ec6bc15b.entry.js.map → p-bb502279.entry.js.map} +0 -0
- /package/dist/atomic/{p-ddd52850.entry.js.map → p-be061124.entry.js.map} +0 -0
- /package/dist/atomic/{p-e604fd29.entry.js.map → p-c753c557.entry.js.map} +0 -0
- /package/dist/atomic/{p-b747e4a9.entry.js.map → p-cceca6bd.entry.js.map} +0 -0
- /package/dist/atomic/{p-7d1f8d9c.entry.js.map → p-cd4c6b6b.entry.js.map} +0 -0
- /package/dist/atomic/{p-c4f042ae.entry.js.map → p-ce3a6c4e.entry.js.map} +0 -0
- /package/dist/atomic/{p-5cf5bb98.entry.js.map → p-d76c5232.entry.js.map} +0 -0
- /package/dist/atomic/{p-1cc97adc.entry.js.map → p-d774c15e.entry.js.map} +0 -0
- /package/dist/atomic/{p-f7f8096a.entry.js.map → p-d9e0dcdf.entry.js.map} +0 -0
- /package/dist/atomic/{p-c83f9cff.entry.js.map → p-dd073755.entry.js.map} +0 -0
- /package/dist/atomic/{p-689e063d.entry.js.map → p-ddf0b2e0.entry.js.map} +0 -0
- /package/dist/atomic/{p-cd87574b.entry.js.map → p-e46150fa.entry.js.map} +0 -0
- /package/dist/atomic/{p-f7f81710.js.map → p-e988f378.js.map} +0 -0
- /package/dist/atomic/{p-22a0d1b9.entry.js.map → p-ea5d2736.entry.js.map} +0 -0
- /package/dist/atomic/{p-b4dfe5b2.entry.js.map → p-ea5d6cd8.entry.js.map} +0 -0
- /package/dist/atomic/{p-d30057a0.entry.js.map → p-eadb22d2.entry.js.map} +0 -0
- /package/dist/atomic/{p-135be5aa.entry.js.map → p-f46b7410.entry.js.map} +0 -0
- /package/dist/atomic/{p-e4754fd0.entry.js.map → p-fdd01814.entry.js.map} +0 -0
|
@@ -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: '983adfb713e79003cfa21dead66b825d322ef4cc', class: `list-root animate-pulse ${this.getClasses().join(' ')}` }, h("thead", { key: '583cdcc694237102118be5088bd1c9953d916ecb' }, h("tr", { key: '8329e5ac6601877352902efd4fcf27ff328db3e0' }, h("th", { key: '08efb7d6770dc4a92ab96a021aebab33430b96ad' }, h("div", { key: 'e184a34cd625342bb698733fecee1528f8fbecf6', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '14.5rem' } })), h("th", { key: '63c3a8475479bfe8212b67e1c6d39274206360d3' }, h("div", { key: '88214bac36ccb1173112d3fe47db8f883a8c3377', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '9.75rem' } })), h("th", { key: '52c9ef0c4d4f69dec6dc4a217c03db16b64bec60' }, h("div", { key: '657aacd576ac96e41166dffb3f3610fb7cd1773e', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '6.5rem' } })))), h("tbody", { key: 'e48e39258c678df97c98a71e428dceb3d4a0253a' }, 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", {
|
|
@@ -1,12 +1,55 @@
|
|
|
1
|
-
import { proxyCustomElement, HTMLElement
|
|
1
|
+
import { h, Fragment, Host, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
2
2
|
import { ResultTemplatesHelpers, HighlightUtils } from '@coveo/headless';
|
|
3
3
|
import { g as getFieldValueCaption } from './field-utils.js';
|
|
4
4
|
import { I as InitializeBindings } from './initialization-utils.js';
|
|
5
5
|
import { g as getStringValueFromResultOrNull } from './result-utils.js';
|
|
6
|
-
import {
|
|
6
|
+
import { isArray, isUndefined } from '@coveo/bueno';
|
|
7
7
|
import { R as ResultContext } from './result-template-decorators.js';
|
|
8
8
|
import { d as defineCustomElement$1 } from './atomic-text2.js';
|
|
9
9
|
|
|
10
|
+
function possiblyWarnOnBadFieldType(field, itemValueRaw, host, logger) {
|
|
11
|
+
if (isArray(itemValueRaw)) {
|
|
12
|
+
logger.error(`${host.nodeName.toLowerCase()} cannot be used with multi value field "${field}" with values "${itemValueRaw}".`, host);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const ItemTextFallback = ({ field, host, logger, defaultValue, item, getProperty }, children) => {
|
|
17
|
+
const raw = getProperty(item, field);
|
|
18
|
+
possiblyWarnOnBadFieldType(field, raw, host, logger);
|
|
19
|
+
if (isUndefined(defaultValue)) {
|
|
20
|
+
host.remove();
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
return h(Fragment, null, children);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
function renderWithHighlights(value, highlights, highlightString) {
|
|
29
|
+
const openingDelimiter = '_openingDelimiter_';
|
|
30
|
+
const closingDelimiter = '_closingDelimiter_';
|
|
31
|
+
const highlightedValue = highlightString({
|
|
32
|
+
content: value,
|
|
33
|
+
openingDelimiter,
|
|
34
|
+
closingDelimiter,
|
|
35
|
+
highlights,
|
|
36
|
+
});
|
|
37
|
+
return highlightedValue
|
|
38
|
+
.replace(new RegExp(openingDelimiter, 'g'), '<b>')
|
|
39
|
+
.replace(new RegExp(closingDelimiter, 'g'), '</b>');
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
const ItemTextHighlighted = ({ highlightKeywords, highlightString, onError, textValue }) => {
|
|
43
|
+
try {
|
|
44
|
+
const highlightedValue = renderWithHighlights(textValue, highlightKeywords, highlightString);
|
|
45
|
+
// deepcode ignore ReactSetInnerHtml: This is not React code
|
|
46
|
+
return h(Host, { innerHTML: highlightedValue });
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
onError(error);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
10
53
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11
54
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12
55
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"atomic-result-text2.js","mappings":"
|
|
1
|
+
{"file":"atomic-result-text2.js","mappings":";;;;;;;;;SAEgB,0BAA0B,CACxC,KAAa,EACb,YAAqB,EACrB,IAAiB,EACjB,MAA8B;IAE9B,IAAI,OAAO,CAAC,YAAY,CAAC,EAAE;QACzB,MAAM,CAAC,KAAK,CACV,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE,2CAA2C,KAAK,kBAAkB,YAAY,IAAI,EAChH,IAAI,CACL,CAAC;KACH;AACH;;ACDO,MAAM,gBAAgB,GAAG,CAC9B,EAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAmB,EACxE,QAAiB;IAEjB,MAAM,GAAG,GAAG,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACrC,0BAA0B,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IAErD,IAAI,WAAW,CAAC,YAAY,CAAC,EAAE;QAC7B,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;KACb;SAAM;QACL,OAAO,EAAC,QAAQ,QAAE,QAAQ,CAAY,CAAC;KACxC;AACH,CAAC;;SCde,oBAAoB,CAClC,KAAa,EACb,UAA+B,EAC/B,eAAgC;IAEhC,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;IAC9C,MAAM,gBAAgB,GAAG,oBAAoB,CAAC;IAC9C,MAAM,gBAAgB,GAAG,eAAe,CAAC;QACvC,OAAO,EAAE,KAAK;QACd,gBAAgB;QAChB,gBAAgB;QAChB,UAAU;KACX,CAAC,CAAC;IACH,OAAO,gBAAgB;SACpB,OAAO,CAAC,IAAI,MAAM,CAAC,gBAAgB,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC;SACjD,OAAO,CAAC,IAAI,MAAM,CAAC,gBAAgB,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;AACxD;;ACdO,MAAM,mBAAmB,GAE5B,CAAC,EAAC,iBAAiB,EAAE,eAAe,EAAE,OAAO,EAAE,SAAS,EAAC;IAC3D,IAAI;QACF,MAAM,gBAAgB,GAAG,oBAAoB,CAC3C,SAAS,EACT,iBAAiB,EACjB,eAAe,CAChB,CAAC;;QAGF,OAAO,EAAC,IAAI,IAAC,SAAS,EAAE,gBAAgB,GAAS,CAAC;KACnD;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAc,CAAC,CAAC;KACzB;AACH,CAAC;;;;;;;;;;;;MCTY,gBAAgB;;;;;;;QAiBG,oBAAe,GAAG,IAAI,CAAC;;;+BAAL,IAAI;;;IAO7C,MAAM;QACX,MAAM,mBAAmB,GAAG,8BAA8B,CACxD,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,KAAK,CACX,CAAC;QAEF,IAAI,mBAAmB,KAAK,IAAI,EAAE;YAChC,QACE,EAAC,gBAAgB,IACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,EACnC,YAAY,EAAE,IAAI,CAAC,OAAO,EAC1B,IAAI,EAAE,IAAI,CAAC,MAAM,EACjB,WAAW,EAAE,sBAAsB,CAAC,iBAAiB,IAErD,mBACE,KAAK,EAAE,oBAAoB,CACzB,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,OAAQ,EACb,IAAI,CAAC,QAAQ,CAAC,IAAI,CACnB,GACY,CACE,EACnB;SACH;QAED,MAAM,SAAS,GAAG,GAAG,mBAAmB,EAAE,CAAC;QAC3C,MAAM,iBAAiB,GAAG,sBAAsB,CAAC,iBAAiB,CAChE,IAAI,CAAC,MAAM,EACX,GAAG,IAAI,CAAC,KAAK,YAAY,CACW,CAAC;QAEvC,OAAO,IAAI,CAAC,eAAe,IAAI,iBAAiB,IAC9C,EAAC,mBAAmB,IAClB,SAAS,EAAE,SAAS,EACpB,iBAAiB,EAAE,iBAAiB,EACpC,eAAe,EAAE,cAAc,CAAC,eAAe,EAC/C,OAAO,EAAE,CAAC,KAAK,MAAM,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,GACnB,KAEvB,oBAAoB,CAAC,IAAI,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAChE,CAAC;KACH;;;;;;;;AAlE4B;IAA5B,kBAAkB,EAAE;kDAA4B;AACxB;IAAxB,aAAa,EAAE;gDAAyB;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/common/item-text/field-warning.ts","src/components/common/item-text/stencil-item-text-fallback.tsx","src/components/common/item-text/render-highlights.ts","src/components/common/item-text/stencil-item-text-highlighted.tsx","src/components/search/result-template-components/atomic-result-text/atomic-result-text.tsx"],"sourcesContent":["import {isArray} from '@coveo/bueno';\n\nexport function possiblyWarnOnBadFieldType(\n field: string,\n itemValueRaw: unknown,\n host: HTMLElement,\n logger: Pick<Console, 'error'>\n) {\n if (isArray(itemValueRaw)) {\n logger.error(\n `${host.nodeName.toLowerCase()} cannot be used with multi value field \"${field}\" with values \"${itemValueRaw}\".`,\n host\n );\n }\n}\n","import {isUndefined} from '@coveo/bueno';\nimport {Fragment, FunctionalComponent, VNode, h} from '@stencil/core';\nimport {possiblyWarnOnBadFieldType} from './field-warning';\n\nexport interface ItemTextProps<T> {\n logger: Pick<Console, 'error'>;\n host: HTMLElement;\n defaultValue: string | undefined;\n field: string;\n item: T;\n getProperty: (result: T, property: string) => unknown;\n}\n\nexport const ItemTextFallback = <T,>(\n {field, host, logger, defaultValue, item, getProperty}: ItemTextProps<T>,\n children: VNode[]\n): FunctionalComponent<ItemTextProps<T>> | null => {\n const raw = getProperty(item, field);\n possiblyWarnOnBadFieldType(field, raw, host, logger);\n\n if (isUndefined(defaultValue)) {\n host.remove();\n return null;\n } else {\n return <Fragment>{children}</Fragment>;\n }\n};\n","export type HighlightKeywords = {\n offset: number;\n length: number;\n};\n\nexport type HighlightString = (params: {\n content: string;\n openingDelimiter: string;\n closingDelimiter: string;\n highlights: HighlightKeywords[];\n}) => string;\n\nexport function renderWithHighlights(\n value: string,\n highlights: HighlightKeywords[],\n highlightString: HighlightString\n) {\n const openingDelimiter = '_openingDelimiter_';\n const closingDelimiter = '_closingDelimiter_';\n const highlightedValue = highlightString({\n content: value,\n openingDelimiter,\n closingDelimiter,\n highlights,\n });\n return highlightedValue\n .replace(new RegExp(openingDelimiter, 'g'), '<b>')\n .replace(new RegExp(closingDelimiter, 'g'), '</b>');\n}\n","import {FunctionalComponent, h, Host} from '@stencil/core';\nimport {\n HighlightKeywords,\n HighlightString,\n renderWithHighlights,\n} from './render-highlights';\n\nexport interface ItemTextHighlightedProps {\n textValue: string;\n highlightKeywords: HighlightKeywords[];\n onError: (error: Error) => void;\n highlightString: HighlightString;\n}\n\nexport const ItemTextHighlighted: FunctionalComponent<\n ItemTextHighlightedProps\n> = ({highlightKeywords, highlightString, onError, textValue}) => {\n try {\n const highlightedValue = renderWithHighlights(\n textValue,\n highlightKeywords,\n highlightString\n );\n\n // deepcode ignore ReactSetInnerHtml: This is not React code\n return <Host innerHTML={highlightedValue}></Host>;\n } catch (error) {\n onError(error as Error);\n }\n};\n","import {HighlightUtils, Result, ResultTemplatesHelpers} from '@coveo/headless';\nimport {Component, Prop, h, Element, State} from '@stencil/core';\nimport {getFieldValueCaption} from '../../../../utils/field-utils';\nimport {\n InitializableComponent,\n InitializeBindings,\n} from '../../../../utils/initialization-utils';\nimport {getStringValueFromResultOrNull} from '../../../../utils/result-utils';\nimport {ItemTextFallback} from '../../../common/item-text/stencil-item-text-fallback';\nimport {ItemTextHighlighted} from '../../../common/item-text/stencil-item-text-highlighted';\nimport {Bindings} from '../../atomic-search-interface/atomic-search-interface';\nimport {ResultContext} from '../result-template-decorators';\n\n/**\n * The `atomic-result-text` component renders the value of a string result field.\n */\n@Component({\n tag: 'atomic-result-text',\n shadow: false,\n})\nexport class AtomicResultText implements InitializableComponent {\n @InitializeBindings() public bindings!: Bindings;\n @ResultContext() private result!: Result;\n\n @Element() private host!: HTMLElement;\n\n @State() public error!: Error;\n\n /**\n * The result field which the component should use.\n * This will look in the Result object first, and then in the Result.raw object for the fields.\n * It is important to include the necessary field in the `atomic-search-interface` component.\n */\n @Prop({reflect: true}) public field!: string;\n /**\n * When this is set to `true`, the component attempts to highlight text based on the highlighting properties provided by the search API response.\n */\n @Prop({reflect: true}) public shouldHighlight = true;\n\n /**\n * The locale key for the text to display when the configured field has no value.\n */\n @Prop({reflect: true}) public default?: string;\n\n public render() {\n const resultValueAsString = getStringValueFromResultOrNull(\n this.result,\n this.field\n );\n\n if (resultValueAsString === null) {\n return (\n <ItemTextFallback\n field={this.field}\n host={this.host}\n logger={this.bindings.engine.logger}\n defaultValue={this.default}\n item={this.result}\n getProperty={ResultTemplatesHelpers.getResultProperty}\n >\n <atomic-text\n value={getFieldValueCaption(\n this.field,\n this.default!,\n this.bindings.i18n\n )}\n ></atomic-text>\n </ItemTextFallback>\n );\n }\n\n const textValue = `${resultValueAsString}`;\n const highlightKeywords = ResultTemplatesHelpers.getResultProperty(\n this.result,\n `${this.field}Highlights`\n ) as HighlightUtils.HighlightKeyword[];\n\n return this.shouldHighlight && highlightKeywords ? (\n <ItemTextHighlighted\n textValue={textValue}\n highlightKeywords={highlightKeywords}\n highlightString={HighlightUtils.highlightString}\n onError={(error) => (this.error = error)}\n ></ItemTextHighlighted>\n ) : (\n getFieldValueCaption(this.field, textValue, this.bindings.i18n)\n );\n }\n}\n"],"version":3}
|
|
@@ -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: '9bdeae829b99345de8d10beabcfc528ec5e577f9', hasError: this.searchStatusState.hasError, hasItems: this.searchStatusState.hasResults, isAppLoaded: this.isAppLoaded }, h("div", { key: '407cf91584da76c751c7609d040dbfbf9465bba6', class: "flex items-center", role: "toolbar", "aria-label": this.label }, h(Label, { key: '45922224c37ac5300459ba07683485c2326d0017' }, this.label), h(FieldsetGroup, { key: '01f272af73c746043c8737b977dd0e517a25b492', label: this.label }, h(Choices, { key: '9fb01d7ec187e9a872f37d257b0cc13956021aef', 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: '2cca74061385ba775c03563bcd5d3bd89fe24b34', 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: '201d091a547fafd368881fe3c77d40577c766c98', element: this.host, error: this.error }));
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
get host() { return this; }
|
|
@@ -423,18 +423,18 @@ const AtomicSearchBox$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSearchBox
|
|
|
423
423
|
if (!this.suggestionManager.suggestions.length) {
|
|
424
424
|
this.registerSearchboxSuggestionEvents();
|
|
425
425
|
}
|
|
426
|
-
return (h(Host, { key: '
|
|
427
|
-
h(SearchBoxWrapper, { key: '
|
|
426
|
+
return (h(Host, { key: '749e092220c5beb6e02a32ffceff725a47ca96f3' }, this.renderAbsolutePositionSpacer(), [
|
|
427
|
+
h(SearchBoxWrapper, { key: '5d98dc49bcf840bf0dea10721dfe1a59643ff4ed', disabled: isDisabled, onFocusout: (event) => {
|
|
428
428
|
if (!isFocusingOut(event)) {
|
|
429
429
|
return;
|
|
430
430
|
}
|
|
431
431
|
this.suggestionManager.clearSuggestions();
|
|
432
432
|
this.isExpanded = false;
|
|
433
|
-
} }, this.renderTextBox(searchLabel), h(SubmitButton, { key: '
|
|
433
|
+
} }, this.renderTextBox(searchLabel), h(SubmitButton, { key: '7c5b666de85a5e00c4a6ec119204191194afb18b', bindings: this.bindings, disabled: isDisabled, onClick: () => {
|
|
434
434
|
this.searchBox.submit();
|
|
435
435
|
this.suggestionManager.clearSuggestions();
|
|
436
436
|
} }), this.renderSuggestions()),
|
|
437
|
-
!this.suggestionManager.suggestions.length && (h("slot", { key: '
|
|
437
|
+
!this.suggestionManager.suggestions.length && (h("slot", { key: '48f1627d07c58961567b895fb68a1897cbc843b6' }, h("atomic-search-box-recent-queries", { key: '06859756b1889852be45df8055989925574509fc' }), h("atomic-search-box-query-suggestions", { key: 'dd3dc3584aab3547314deb079138bfa836af5b1d' }))),
|
|
438
438
|
]));
|
|
439
439
|
}
|
|
440
440
|
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: '1326f8babb77089bfa824f03fa599a9be3dd642c' }, 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: 'ea579e57dc0fcd007cf517294e02582803b94cde', class: this.fullHeight || !this.shouldRenderButton
|
|
60
60
|
? this.isExpanded
|
|
61
61
|
? 'expanded'
|
|
62
62
|
: ''
|
|
63
|
-
: 'invisible' }, h("div", { key: '
|
|
63
|
+
: 'invisible' }, h("div", { key: '869c9ced31db1fa805b9df668707e6e21d8677e3', part: "smart-snippet-collapse-wrapper", class: "block overflow-hidden" }, h("slot", { key: 'e00cd4922f3c4442e53d612afb722de091629912' })), 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: 'b3c33a5746cda5e4e9ca3789c6ada0fc2afdfa4b', 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: '83bc425dcde86fceab88333f67d6fa9198035965', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, h(SmartSnippetFeedbackModalHeader, { key: '700932a925e55b38cc6917d3a2fc4a5505124b76', i18n: this.bindings.i18n }), h(SmartSnippetFeedbackModalBody, { key: 'cd02ade10d6e45f4776816ba1348c2ce1e0ae78e', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, h(SmartSnippetFeebackModalOptions, { key: '1effe1360a380a389a0e6a9a186fd4dd98ae0871', 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: '5d202f8f92e679132c4a4a5d61ab841298f82e7d', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), h(SmartSnippetFeedbackModalFooter, { key: 'd89d362b8c06402c76b4f2f823c66633727f930f', 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: '5bc7f5fde9a6cfad07def1d2d4b2e3b05dc35c8a' }, h(LinkWithItemAnalytics, { key: '505fda21e13950313b91b6f1a012dae7f4420d7f', 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: '58cef9bf2d4fc66734c08c44ab129c2c7f9192e5', 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],
|
|
@@ -114,8 +114,8 @@ const AtomicSortDropdown$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSortDr
|
|
|
114
114
|
const { hasError, hasResults, firstSearchExecuted } = this.searchStatusState;
|
|
115
115
|
const { bindings: { i18n }, id, } = this;
|
|
116
116
|
return [
|
|
117
|
-
h(SortGuard, { key: '
|
|
118
|
-
h("slot", { key: '
|
|
117
|
+
h(SortGuard, { key: 'b0aa032d52f3ac18b7c9b9cc87ad7c3793118e00', firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: hasResults }, h(SortContainer, { key: '2cb0671502ec77362056821da1fb2d38ec8d9423' }, h(SortLabel, { key: '09fdf55c8185fc2df004ddbfc4722707c0104548', i18n: i18n, id: id }), h(SortSelect, { key: 'f65074c745c1eb4b7ec5ff2bd032f4563b99eba4', 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 })))))),
|
|
118
|
+
h("slot", { key: '925fc1459ae2f40b01fa8a0bc7d14e957a99b5b7' }),
|
|
119
119
|
];
|
|
120
120
|
}
|
|
121
121
|
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: '0be2d839110b0d15421e2ea40891390c2818b978', 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: '5184cc95eba894699448d7ea685032e43a430f91', 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: '918a1b844986e8a731cfa6a48b042b368a29e3b5' }, h("atomic-tab-bar", { key: '7d17f77778b55302505b22be9d5f57d1225e440c' }, h("div", { key: 'dd99c956c13bfb94df8ab9f7243d5cffa6147f03', 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) {
|
package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.js
CHANGED
|
@@ -11,8 +11,8 @@ import { customElement, property, state } from 'lit/decorators.js';
|
|
|
11
11
|
import { DEFAULT_MOBILE_BREAKPOINT } from '../../../utils/replace-breakpoint';
|
|
12
12
|
import styles from './atomic-commerce-layout.tw.css';
|
|
13
13
|
/**
|
|
14
|
-
* @alpha
|
|
15
14
|
* The `atomic-commerce-layout` helps organize elements in the commerce page.
|
|
15
|
+
* @alpha
|
|
16
16
|
*/
|
|
17
17
|
let AtomicCommerceLayout = class AtomicCommerceLayout extends CommerceLayoutMixin(LitElement, unsafeCSS(styles)) {
|
|
18
18
|
constructor() {
|
|
@@ -0,0 +1,95 @@
|
|
|
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 { bindStateToController } from "../../../decorators/bind-state.js";
|
|
8
|
+
import { bindings } from "../../../decorators/bindings.js";
|
|
9
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
10
|
+
import { AriaLiveRegionController } from "../../../utils/accessibility-utils.js";
|
|
11
|
+
import { buildSearch, buildProductListing, } from '@coveo/headless/commerce';
|
|
12
|
+
import { html, LitElement } from 'lit';
|
|
13
|
+
import { customElement, state } from 'lit/decorators.js';
|
|
14
|
+
import { renderNoItemsContainer } from '../../common/no-items/container.js';
|
|
15
|
+
import { noItemsGuard } from '../../common/no-items/guard.js';
|
|
16
|
+
import { renderMagnifyingGlass } from '../../common/no-items/magnifying-glass.js';
|
|
17
|
+
import { renderNoItems } from '../../common/no-items/no-items.js';
|
|
18
|
+
import { renderSearchTips } from '../../common/no-items/tips.js';
|
|
19
|
+
import { getSummary } from '../../common/no-items/utils.js';
|
|
20
|
+
import { errorGuard } from "../../../decorators/error-guard.js";
|
|
21
|
+
import { bindingGuard } from "../../../decorators/binding-guard.js";
|
|
22
|
+
/**
|
|
23
|
+
* @alpha
|
|
24
|
+
*
|
|
25
|
+
* The `atomic-commerce-no-products` component displays search tips when there are no products. Any additional content slotted inside of its element will be displayed as well.
|
|
26
|
+
*
|
|
27
|
+
* @part no-results - The text indicating that no products were found for the search.
|
|
28
|
+
* @part search-tips - The search tips to help the user correct the query.
|
|
29
|
+
* @part highlight - The highlighted query.
|
|
30
|
+
* @part icon - The magnifying glass icon.
|
|
31
|
+
*
|
|
32
|
+
* @slot default - Any additional content slotted inside of its element will be displayed as well.
|
|
33
|
+
*/
|
|
34
|
+
let AtomicCommerceNoProducts = class AtomicCommerceNoProducts extends LitElement {
|
|
35
|
+
constructor() {
|
|
36
|
+
super(...arguments);
|
|
37
|
+
this.ariaMessage = new AriaLiveRegionController(this, 'no-products');
|
|
38
|
+
}
|
|
39
|
+
initialize() {
|
|
40
|
+
const controller = this.bindings.interfaceElement.type === 'search'
|
|
41
|
+
? buildSearch(this.bindings.engine)
|
|
42
|
+
: buildProductListing(this.bindings.engine);
|
|
43
|
+
this.summary = controller.summary();
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
const { bindings: { i18n }, } = this;
|
|
47
|
+
const query = 'query' in this.summaryState ? this.summaryState.query : '';
|
|
48
|
+
this.ariaMessage.message = getSummary(i18n, query, this.summary.state.hasProducts, 'no-products');
|
|
49
|
+
return html `${noItemsGuard({
|
|
50
|
+
isLoading: this.summaryState.isLoading,
|
|
51
|
+
firstSearchExecuted: this.summaryState.firstRequestExecuted,
|
|
52
|
+
hasResults: this.summaryState.hasProducts,
|
|
53
|
+
}, () => renderNoItemsContainer()(html `
|
|
54
|
+
${renderMagnifyingGlass()}
|
|
55
|
+
${this.renderNoItems()}
|
|
56
|
+
${this.renderSearchTips()}
|
|
57
|
+
`))}`;
|
|
58
|
+
}
|
|
59
|
+
renderNoItems() {
|
|
60
|
+
return renderNoItems({
|
|
61
|
+
props: {
|
|
62
|
+
query: 'query' in this.summaryState ? this.summaryState.query : '',
|
|
63
|
+
i18n: this.bindings.i18n,
|
|
64
|
+
i18nKey: 'no-products',
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
renderSearchTips() {
|
|
69
|
+
return renderSearchTips({
|
|
70
|
+
props: {
|
|
71
|
+
i18n: this.bindings.i18n,
|
|
72
|
+
},
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
__decorate([
|
|
77
|
+
state()
|
|
78
|
+
], AtomicCommerceNoProducts.prototype, "bindings", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
bindStateToController('summary'),
|
|
81
|
+
state()
|
|
82
|
+
], AtomicCommerceNoProducts.prototype, "summaryState", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
state()
|
|
85
|
+
], AtomicCommerceNoProducts.prototype, "error", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
bindingGuard(),
|
|
88
|
+
errorGuard()
|
|
89
|
+
], AtomicCommerceNoProducts.prototype, "render", null);
|
|
90
|
+
AtomicCommerceNoProducts = __decorate([
|
|
91
|
+
customElement('atomic-commerce-no-products'),
|
|
92
|
+
bindings(),
|
|
93
|
+
withTailwindStyles
|
|
94
|
+
], AtomicCommerceNoProducts);
|
|
95
|
+
export { AtomicCommerceNoProducts };
|
|
@@ -71,7 +71,7 @@ let AtomicCommerceProductsPerPage = class AtomicCommerceProductsPerPage extends
|
|
|
71
71
|
},
|
|
72
72
|
})(html `
|
|
73
73
|
<div class="flex items-center">
|
|
74
|
-
${renderLabel(
|
|
74
|
+
${renderLabel()(html `${this.label}`)}
|
|
75
75
|
${renderFieldsetGroup({
|
|
76
76
|
props: {
|
|
77
77
|
label: this.label,
|
|
@@ -11,9 +11,9 @@ import { property, customElement, state } from 'lit/decorators.js';
|
|
|
11
11
|
import { makeMatchConditions } from '../../common/product-template/product-template-common';
|
|
12
12
|
import { ProductTemplateController } from '../../common/product-template/product-template-controller';
|
|
13
13
|
import '../atomic-commerce-text/atomic-commerce-text';
|
|
14
|
+
import '../atomic-product-text/atomic-product-text';
|
|
14
15
|
import '../atomic-product/atomic-product';
|
|
15
16
|
/**
|
|
16
|
-
* @alpha
|
|
17
17
|
* * A product template determines the format of the query results, depending on the conditions that are defined for each template.
|
|
18
18
|
*
|
|
19
19
|
* A `template` element must be the child of an `atomic-product-template`. Furthermore, an `atomic-commerce-product-list`, `atomic-commerce-recommendation-list`, or `atomic-commerce-search-box-instant-products` must be the parent of each `atomic-product-template`.
|
|
@@ -23,6 +23,8 @@ import '../atomic-product/atomic-product';
|
|
|
23
23
|
* @MapProp name: mustNotMatch;attr: must-not-match;docs: The field and values that must not be matched by a product item for the template to apply. For example, a template with the following attribute only applies to product items whose `filetype` is not `lithiummessage`: `must-not-match-filetype="lithiummessage";type: Record<string, string[]> ;default: {}
|
|
24
24
|
* @slot default - The default slot where to insert the template element.
|
|
25
25
|
* @slot link - A `template` element that contains a single `atomic-product-link` component.
|
|
26
|
+
*
|
|
27
|
+
* @alpha
|
|
26
28
|
*/
|
|
27
29
|
let AtomicProductTemplate = class AtomicProductTemplate extends LitElement {
|
|
28
30
|
constructor() {
|
|
@@ -0,0 +1,135 @@
|
|
|
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 { booleanConverter } from "../../../converters/boolean-converter";
|
|
8
|
+
import { bindingGuard } from "../../../decorators/binding-guard";
|
|
9
|
+
import { bindings } from "../../../decorators/bindings";
|
|
10
|
+
import { createProductContextController } from "../../../decorators/commerce/product-template-decorators.js";
|
|
11
|
+
import { errorGuard } from "../../../decorators/error-guard";
|
|
12
|
+
import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin";
|
|
13
|
+
import { ProductTemplatesHelpers, HighlightUtils, } from '@coveo/headless/commerce';
|
|
14
|
+
import { LitElement, html, nothing } from 'lit';
|
|
15
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
16
|
+
import { when } from 'lit/directives/when.js';
|
|
17
|
+
import { getFieldValueCaption } from '../../../utils/field-utils';
|
|
18
|
+
import { renderItemTextFallback } from '../../common/item-text/item-text-fallback.js';
|
|
19
|
+
import { renderItemTextHighlighted } from '../../common/item-text/item-text-highlighted.js';
|
|
20
|
+
import '../atomic-commerce-text/atomic-commerce-text';
|
|
21
|
+
import { getStringValueFromProductOrNull } from '../product-template-component-utils/product-utils.js';
|
|
22
|
+
/**
|
|
23
|
+
* The `atomic-product-text` component renders the value of a string field for a given product.
|
|
24
|
+
*/
|
|
25
|
+
let AtomicProductText = class AtomicProductText extends InitializeBindingsMixin(LitElement) {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
/**
|
|
29
|
+
* Whether to highlight the string field value.
|
|
30
|
+
*
|
|
31
|
+
* Only works if the `field` property is set to `excerpt` or `ec_name`.
|
|
32
|
+
*/
|
|
33
|
+
this.shouldHighlight = true;
|
|
34
|
+
this.productController = createProductContextController(this);
|
|
35
|
+
}
|
|
36
|
+
initialize() {
|
|
37
|
+
if (!this.product && this.productController.item) {
|
|
38
|
+
this.product = this.productController.item;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
get shouldRenderHighlights() {
|
|
42
|
+
return this.shouldHighlight && this.isFieldSupportedForHighlighting();
|
|
43
|
+
}
|
|
44
|
+
isFieldSupportedForHighlighting() {
|
|
45
|
+
return ['ec_name', 'excerpt'].includes(this.field);
|
|
46
|
+
}
|
|
47
|
+
get highlightKeywords() {
|
|
48
|
+
if (!this.shouldRenderHighlights) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return ProductTemplatesHelpers.getProductProperty(this.product, this.field === 'ec_name' ? 'nameHighlights' : 'excerptHighlights');
|
|
52
|
+
}
|
|
53
|
+
renderFallback() {
|
|
54
|
+
if (!this.default) {
|
|
55
|
+
return nothing;
|
|
56
|
+
}
|
|
57
|
+
return renderItemTextFallback({
|
|
58
|
+
props: {
|
|
59
|
+
field: this.field,
|
|
60
|
+
host: this,
|
|
61
|
+
logger: this.bindings.engine.logger,
|
|
62
|
+
defaultValue: this.default,
|
|
63
|
+
item: this.product,
|
|
64
|
+
getProperty: (result, property) => ProductTemplatesHelpers.getProductProperty(result, property),
|
|
65
|
+
},
|
|
66
|
+
})(html `
|
|
67
|
+
<atomic-commerce-text
|
|
68
|
+
.value=${getFieldValueCaption(this.field, this.default, this.bindings.i18n)}
|
|
69
|
+
></atomic-commerce-text>
|
|
70
|
+
`);
|
|
71
|
+
}
|
|
72
|
+
renderProductText(textValue) {
|
|
73
|
+
const highlightKeywords = this.highlightKeywords;
|
|
74
|
+
return this.shouldRenderHighlights &&
|
|
75
|
+
highlightKeywords &&
|
|
76
|
+
highlightKeywords.length > 0
|
|
77
|
+
? renderItemTextHighlighted({
|
|
78
|
+
props: {
|
|
79
|
+
textValue,
|
|
80
|
+
highlightKeywords,
|
|
81
|
+
highlightString: HighlightUtils.highlightString,
|
|
82
|
+
onError: (error) => (this.error = error),
|
|
83
|
+
},
|
|
84
|
+
})
|
|
85
|
+
: html `
|
|
86
|
+
<atomic-commerce-text
|
|
87
|
+
.value=${getFieldValueCaption(this.field, textValue, this.bindings.i18n)}
|
|
88
|
+
></atomic-commerce-text>
|
|
89
|
+
`;
|
|
90
|
+
}
|
|
91
|
+
renderProductTextValue() {
|
|
92
|
+
const productValueAsString = getStringValueFromProductOrNull(this.product, this.field);
|
|
93
|
+
if (productValueAsString === null) {
|
|
94
|
+
return this.renderFallback();
|
|
95
|
+
}
|
|
96
|
+
return this.renderProductText(`${productValueAsString}`);
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
return html `
|
|
100
|
+
${when(this.product && this.field, () => this.renderProductTextValue(), () => nothing)}
|
|
101
|
+
`;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
__decorate([
|
|
105
|
+
property({ type: String, reflect: true })
|
|
106
|
+
], AtomicProductText.prototype, "field", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
property({
|
|
109
|
+
type: Boolean,
|
|
110
|
+
attribute: 'should-highlight',
|
|
111
|
+
reflect: true,
|
|
112
|
+
converter: booleanConverter,
|
|
113
|
+
})
|
|
114
|
+
], AtomicProductText.prototype, "shouldHighlight", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
property({ type: String, reflect: true })
|
|
117
|
+
], AtomicProductText.prototype, "default", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
state()
|
|
120
|
+
], AtomicProductText.prototype, "product", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
state()
|
|
123
|
+
], AtomicProductText.prototype, "bindings", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
state()
|
|
126
|
+
], AtomicProductText.prototype, "error", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
bindingGuard(),
|
|
129
|
+
errorGuard()
|
|
130
|
+
], AtomicProductText.prototype, "render", null);
|
|
131
|
+
AtomicProductText = __decorate([
|
|
132
|
+
bindings(),
|
|
133
|
+
customElement('atomic-product-text')
|
|
134
|
+
], AtomicProductText);
|
|
135
|
+
export { AtomicProductText };
|
|
@@ -3,6 +3,7 @@ export { AtomicCommerceBreadbox } from './atomic-commerce-breadbox/atomic-commer
|
|
|
3
3
|
export { AtomicCommerceDidYouMean } from './atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.js';
|
|
4
4
|
export { AtomicCommerceInterface } from './atomic-commerce-interface/atomic-commerce-interface.js';
|
|
5
5
|
export { AtomicCommerceLayout } from './atomic-commerce-layout/atomic-commerce-layout.js';
|
|
6
|
+
export { AtomicCommerceNoProducts } from './atomic-commerce-no-products/atomic-commerce-no-products.js';
|
|
6
7
|
export { AtomicCommercePager } from './atomic-commerce-pager/atomic-commerce-pager.js';
|
|
7
8
|
export { AtomicCommerceProductList } from './atomic-commerce-product-list/atomic-commerce-product-list.js';
|
|
8
9
|
export { AtomicCommerceProductsPerPage } from './atomic-commerce-products-per-page/atomic-commerce-products-per-page.js';
|
|
@@ -16,3 +17,4 @@ export { AtomicCommerceSortDropdown } from './atomic-commerce-sort-dropdown/atom
|
|
|
16
17
|
export { AtomicCommerceText } from './atomic-commerce-text/atomic-commerce-text.js';
|
|
17
18
|
export { AtomicProduct } from './atomic-product/atomic-product.js';
|
|
18
19
|
export { AtomicProductTemplate } from './atomic-product-template/atomic-product-template.js';
|
|
20
|
+
export { AtomicProductText } from './atomic-product-text/atomic-product-text.js';
|
|
@@ -4,6 +4,7 @@ export default {
|
|
|
4
4
|
'atomic-commerce-did-you-mean': async () => await import('./atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.js'),
|
|
5
5
|
'atomic-commerce-interface': async () => await import('./atomic-commerce-interface/atomic-commerce-interface.js'),
|
|
6
6
|
'atomic-commerce-layout': async () => await import('./atomic-commerce-layout/atomic-commerce-layout.js'),
|
|
7
|
+
'atomic-commerce-no-products': async () => await import('./atomic-commerce-no-products/atomic-commerce-no-products.js'),
|
|
7
8
|
'atomic-commerce-pager': async () => await import('./atomic-commerce-pager/atomic-commerce-pager.js'),
|
|
8
9
|
'atomic-commerce-product-list': async () => await import('./atomic-commerce-product-list/atomic-commerce-product-list.js'),
|
|
9
10
|
'atomic-commerce-products-per-page': async () => await import('./atomic-commerce-products-per-page/atomic-commerce-products-per-page.js'),
|
|
@@ -17,4 +18,5 @@ export default {
|
|
|
17
18
|
'atomic-commerce-text': async () => await import('./atomic-commerce-text/atomic-commerce-text.js'),
|
|
18
19
|
'atomic-product': async () => await import('./atomic-product/atomic-product.js'),
|
|
19
20
|
'atomic-product-template': async () => await import('./atomic-product-template/atomic-product-template.js'),
|
|
21
|
+
'atomic-product-text': async () => await import('./atomic-product-text/atomic-product-text.js'),
|
|
20
22
|
};
|