@coveo/atomic 3.33.2-pre.51fe7f83aa → 3.33.2-pre.720f9293c3
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 -2
- package/dist/atomic/components/_index.js +0 -1
- package/dist/atomic/components/analytics-config.js +2 -2
- package/dist/atomic/components/atomic-category-facet.js +1 -1
- package/dist/atomic/components/atomic-citation.js +1 -1
- package/dist/atomic/components/atomic-facet-manager.js +1 -1
- package/dist/atomic/components/atomic-facet.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-layout.js +80 -1
- package/dist/atomic/components/atomic-insight-layout.js.map +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-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result-attach-to-case-indicator.js +1 -1
- package/dist/atomic/components/atomic-insight-result-children.js +1 -1
- package/dist/atomic/components/atomic-insight-result-list.js +1 -1
- package/dist/atomic/components/atomic-insight-result-quickview-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result2.js +1 -1
- package/dist/atomic/components/atomic-insight-search-box.js +2 -2
- package/dist/atomic/components/atomic-insight-smart-snippet-feedback-modal2.js +2 -2
- package/dist/atomic/components/atomic-insight-tabs.js +1 -1
- package/dist/atomic/components/atomic-insight-user-actions-session2.js +1 -1
- package/dist/atomic/components/atomic-insight-user-actions-toggle.js +1 -1
- package/dist/atomic/components/atomic-ipx-body2.js +2 -2
- package/dist/atomic/components/atomic-ipx-button.js +2 -2
- package/dist/atomic/components/atomic-ipx-embedded.js +1 -1
- package/dist/atomic/components/atomic-ipx-modal.js +2 -2
- package/dist/atomic/components/atomic-ipx-recs-list.js +1 -1
- package/dist/atomic/components/atomic-ipx-refine-modal2.js +1 -1
- package/dist/atomic/components/atomic-ipx-refine-toggle.js +1 -1
- package/dist/atomic/components/atomic-ipx-result-link.js +1 -1
- package/dist/atomic/components/atomic-ipx-tabs.js +1 -1
- package/dist/atomic/components/atomic-load-more-results.js +1 -1
- package/dist/atomic/components/atomic-modal2.js +2 -2
- package/dist/atomic/components/atomic-no-results.js +1 -1
- package/dist/atomic/components/atomic-numeric-facet.js +1 -1
- package/dist/atomic/components/atomic-pager.js +3 -3
- package/dist/atomic/components/atomic-query-error.js +1 -1
- package/dist/atomic/components/atomic-query-summary.js +1 -1
- package/dist/atomic/components/atomic-quickview-modal2.js +1 -1
- package/dist/atomic/components/atomic-quickview.js +1 -1
- package/dist/atomic/components/atomic-recs-error.js +1 -1
- package/dist/atomic/components/atomic-recs-interface.js +2 -2
- 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-search-box-instant-results.js +1 -1
- package/dist/atomic/components/atomic-search-box-query-suggestions2.js +1 -1
- package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
- package/dist/atomic/components/atomic-search-box.js +4 -4
- package/dist/atomic/components/atomic-search-interface.js +1 -1
- package/dist/atomic/components/atomic-smart-snippet-answer2.js +1 -1
- package/dist/atomic/components/atomic-smart-snippet-collapse-wrapper2.js +2 -2
- package/dist/atomic/components/atomic-smart-snippet-expandable-answer2.js +1 -1
- package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
- package/dist/atomic/components/atomic-smart-snippet-source2.js +1 -1
- package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
- package/dist/atomic/components/atomic-sort-expression.js +1 -1
- package/dist/atomic/components/atomic-stencil-facet-date-input.js +3 -3
- package/dist/atomic/components/atomic-suggestion-renderer2.js +1 -1
- package/dist/atomic/components/atomic-tab-manager.js +1 -1
- package/dist/atomic/components/components/insight/atomic-insight-interface/analytics-config.js +31 -0
- package/dist/atomic/components/components/insight/atomic-insight-interface/atomic-insight-interface.js +253 -0
- package/dist/atomic/components/components/insight/index.js +2 -1
- package/dist/atomic/components/components/insight/lazy-index.js +3 -1
- 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-d1d2d945.entry.js → p-05a3e5a4.entry.js} +2 -2
- package/dist/atomic/{p-26098930.entry.js → p-09953fee.entry.js} +2 -2
- package/dist/atomic/{p-84befe35.entry.js → p-0b44ae08.entry.js} +2 -2
- package/dist/atomic/{p-80055cf6.entry.js → p-0dac8e7b.entry.js} +2 -2
- package/dist/atomic/{p-5c995d77.entry.js → p-0dc6ebf8.entry.js} +2 -2
- package/dist/atomic/{p-ef22a3f2.entry.js → p-104c7d84.entry.js} +2 -2
- package/dist/atomic/{p-ce9e510c.entry.js → p-117be4a4.entry.js} +2 -2
- package/dist/atomic/{p-cbb819d2.entry.js → p-11fc3a7b.entry.js} +2 -2
- package/dist/atomic/{p-b0bd2709.entry.js → p-156aa33a.entry.js} +2 -2
- package/dist/atomic/{p-26ad479b.entry.js → p-182a3f9e.entry.js} +2 -2
- package/dist/atomic/{p-bfdecd0f.entry.js → p-1d8eba10.entry.js} +2 -2
- package/dist/atomic/{p-58610952.entry.js → p-24c2110b.entry.js} +2 -2
- package/dist/atomic/p-256b5495.entry.js +2 -0
- package/dist/atomic/{p-571c9614.entry.js → p-2c64e9a2.entry.js} +2 -2
- package/dist/atomic/{p-6ad1adfb.entry.js → p-31e55d26.entry.js} +2 -2
- package/dist/atomic/{p-069bf2b9.entry.js → p-39698267.entry.js} +2 -2
- package/dist/atomic/{p-c9fa8526.entry.js → p-3a994997.entry.js} +2 -2
- package/dist/atomic/{p-1c3363ec.entry.js → p-3c7ed752.entry.js} +2 -2
- package/dist/atomic/{p-5027d796.entry.js → p-3e7ea7a5.entry.js} +2 -2
- package/dist/atomic/{p-ab627e18.entry.js → p-429270f6.entry.js} +2 -2
- package/dist/atomic/{p-737f842d.entry.js → p-43a0f6e2.entry.js} +2 -2
- package/dist/atomic/{p-8b70f39a.entry.js → p-455fbbd7.entry.js} +2 -2
- package/dist/atomic/{p-b97abfb9.entry.js → p-45e88039.entry.js} +2 -2
- package/dist/atomic/{p-c61609ea.entry.js → p-52b66ca8.entry.js} +2 -2
- package/dist/atomic/p-564be2a3.entry.js +2 -0
- package/dist/atomic/{p-b14f19d2.entry.js → p-668d9359.entry.js} +2 -2
- package/dist/atomic/{p-09924944.entry.js → p-681610d3.entry.js} +2 -2
- package/dist/atomic/{p-2e91aea8.entry.js → p-6b297a61.entry.js} +2 -2
- package/dist/atomic/{p-1c2d25ba.entry.js → p-6bea42e6.entry.js} +2 -2
- package/dist/atomic/{p-b103b28a.entry.js → p-70c431f9.entry.js} +2 -2
- package/dist/atomic/{p-1f5473a6.entry.js → p-72844e39.entry.js} +2 -2
- package/dist/atomic/{p-a14fd4de.entry.js → p-770da48e.entry.js} +2 -2
- package/dist/atomic/{p-a3a1f8e9.entry.js → p-7753ae27.entry.js} +2 -2
- package/dist/atomic/{p-612155f0.entry.js → p-7bff27b2.entry.js} +2 -2
- package/dist/atomic/{p-0368a213.entry.js → p-81b6d12c.entry.js} +2 -2
- package/dist/atomic/{p-1a79c944.entry.js → p-842d31d0.entry.js} +2 -2
- package/dist/atomic/{p-4c7654eb.entry.js → p-87747240.entry.js} +2 -2
- package/dist/atomic/{p-258c3253.entry.js → p-8b8eb35f.entry.js} +2 -2
- package/dist/atomic/{p-df2df66a.entry.js → p-8baf4780.entry.js} +2 -2
- package/dist/atomic/{p-82a8cf74.entry.js → p-943b29c2.entry.js} +2 -2
- package/dist/atomic/{p-05ab5909.entry.js → p-9507e1bc.entry.js} +2 -2
- package/dist/atomic/{p-aa40956c.entry.js → p-971a8a73.entry.js} +2 -2
- package/dist/atomic/{p-552d1f66.entry.js → p-a0d04767.entry.js} +2 -2
- package/dist/atomic/{p-c667812c.entry.js → p-a5751bb0.entry.js} +2 -2
- package/dist/atomic/{p-fc6beee6.entry.js → p-af487ad9.entry.js} +2 -2
- package/dist/atomic/{p-1d091f9a.entry.js → p-b1c9b043.entry.js} +2 -2
- package/dist/atomic/{p-516b5bd4.entry.js → p-ba9b2923.entry.js} +2 -2
- package/dist/atomic/{p-2d3ef0f7.entry.js → p-bbed84f9.entry.js} +2 -2
- package/dist/atomic/p-bd404744.entry.js +2 -0
- package/dist/atomic/p-bd404744.entry.js.map +1 -0
- package/dist/atomic/{p-5138d839.entry.js → p-bfb23490.entry.js} +2 -2
- package/dist/atomic/{p-57b47b73.entry.js → p-c15fc656.entry.js} +2 -2
- package/dist/atomic/{p-896724e9.entry.js → p-c1721cb2.entry.js} +2 -2
- package/dist/atomic/{p-875583aa.entry.js → p-c434b50f.entry.js} +2 -2
- package/dist/atomic/{p-cb051c21.entry.js → p-c572a219.entry.js} +2 -2
- package/dist/atomic/{p-15d952f3.entry.js → p-c69ae97a.entry.js} +2 -2
- package/dist/atomic/{p-88e4a2f9.entry.js → p-c81d1971.entry.js} +2 -2
- package/dist/atomic/{p-62e83568.entry.js → p-c83967f2.entry.js} +2 -2
- package/dist/atomic/{p-12ec5c82.entry.js → p-caabedeb.entry.js} +2 -2
- package/dist/atomic/{p-633628d5.entry.js → p-cbeca949.entry.js} +2 -2
- package/dist/atomic/{p-0c9b553c.entry.js → p-cd8f11ea.entry.js} +2 -2
- package/dist/atomic/{p-d5071b5a.entry.js → p-d1caf040.entry.js} +2 -2
- package/dist/atomic/{p-496da1c9.entry.js → p-d1e5e2d7.entry.js} +2 -2
- package/dist/atomic/{p-f39de057.entry.js → p-d3b5c8e5.entry.js} +2 -2
- package/dist/atomic/{p-aff3a66a.entry.js → p-d6d0a47f.entry.js} +2 -2
- package/dist/atomic/{p-64fc4340.entry.js → p-d98bd053.entry.js} +2 -2
- package/dist/atomic/{p-b328cab9.entry.js → p-db6034e2.entry.js} +2 -2
- package/dist/atomic/{p-2e20cc14.js → p-dfbe19cc.js} +2 -2
- package/dist/atomic/{p-3af5e810.entry.js → p-e20c18f0.entry.js} +2 -2
- package/dist/atomic/{p-79499898.entry.js → p-e50b1d73.entry.js} +2 -2
- package/dist/atomic/{p-c3746d6e.entry.js → p-e67dabc9.entry.js} +2 -2
- package/dist/atomic/{p-a2714d7e.entry.js → p-e9922d7c.entry.js} +2 -2
- package/dist/atomic/{p-13e67ab3.entry.js → p-f076efa7.entry.js} +2 -2
- package/dist/atomic/{p-a7dcf131.entry.js → p-f30c4c7d.entry.js} +2 -2
- package/dist/atomic/{p-50467793.entry.js → p-f45a7b82.entry.js} +2 -2
- package/dist/atomic/{p-2c7d4967.entry.js → p-f79f31f8.entry.js} +2 -2
- package/dist/atomic/{p-cdd70f49.entry.js → p-fa1dcc3e.entry.js} +2 -2
- package/dist/atomic/{p-e750df14.entry.js → p-fce653a1.entry.js} +2 -2
- package/dist/atomic/{p-ce83d873.entry.js → p-fe23b0b3.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-f2efb279.js → analytics-config-d71dd6d2.js} +2 -2
- package/dist/cjs/{analytics-config-f2efb279.js.map → analytics-config-d71dd6d2.js.map} +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-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-layout.cjs.entry.js +82 -4
- package/dist/cjs/atomic-insight-layout.cjs.entry.js.map +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-action.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-attach-to-case-indicator.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-children.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result-quickview-action.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-result.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-search-box.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-smart-snippet-feedback-modal.cjs.entry.js +2 -2
- package/dist/cjs/atomic-insight-tabs.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-user-actions-session_2.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-user-actions-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-body.cjs.entry.js +2 -2
- package/dist/cjs/atomic-ipx-button.cjs.entry.js +2 -2
- package/dist/cjs/atomic-ipx-embedded.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-modal.cjs.entry.js +2 -2
- package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-result-link.cjs.entry.js +1 -1
- package/dist/cjs/atomic-ipx-tabs.cjs.entry.js +1 -1
- package/dist/cjs/atomic-load-more-results.cjs.entry.js +1 -1
- package/dist/cjs/atomic-no-results.cjs.entry.js +1 -1
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-pager.cjs.entry.js +3 -3
- package/dist/cjs/atomic-query-error.cjs.entry.js +1 -1
- package/dist/cjs/atomic-query-summary.cjs.entry.js +1 -1
- package/dist/cjs/atomic-quickview-modal.cjs.entry.js +1 -1
- package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-error.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +2 -2
- package/dist/cjs/atomic-recs-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-refine-modal.cjs.entry.js +1 -1
- package/dist/cjs/atomic-refine-toggle.cjs.entry.js +1 -1
- package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +2 -2
- package/dist/cjs/atomic-result-children.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-fields-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-link.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-list.cjs.entry.js +1 -1
- package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js +3 -3
- package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js +1 -1
- package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +2 -2
- package/dist/cjs/atomic-search-box.cjs.entry.js +4 -4
- package/dist/cjs/atomic-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-stencil-facet-date-input.cjs.entry.js +3 -3
- package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-tab-bar_2.cjs.entry.js +1 -1
- package/dist/cjs/atomic-tab-button.cjs.entry.js +1 -1
- package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic.cjs.js +1 -1
- package/dist/cjs/index-757bc886.js +0 -4
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-451beae2.js → analytics-config-75665680.js} +3 -3
- package/dist/esm/{analytics-config-451beae2.js.map → analytics-config-75665680.js.map} +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-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-layout.entry.js +80 -2
- package/dist/esm/atomic-insight-layout.entry.js.map +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-action.entry.js +1 -1
- package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js +1 -1
- package/dist/esm/atomic-insight-result-attach-to-case-indicator.entry.js +1 -1
- package/dist/esm/atomic-insight-result-children.entry.js +1 -1
- package/dist/esm/atomic-insight-result-list.entry.js +1 -1
- package/dist/esm/atomic-insight-result-quickview-action.entry.js +1 -1
- package/dist/esm/atomic-insight-result.entry.js +1 -1
- package/dist/esm/atomic-insight-search-box.entry.js +2 -2
- package/dist/esm/atomic-insight-smart-snippet-feedback-modal.entry.js +2 -2
- package/dist/esm/atomic-insight-tabs.entry.js +1 -1
- package/dist/esm/atomic-insight-user-actions-session_2.entry.js +1 -1
- package/dist/esm/atomic-insight-user-actions-toggle.entry.js +1 -1
- package/dist/esm/atomic-ipx-body.entry.js +2 -2
- package/dist/esm/atomic-ipx-button.entry.js +2 -2
- package/dist/esm/atomic-ipx-embedded.entry.js +1 -1
- package/dist/esm/atomic-ipx-modal.entry.js +2 -2
- package/dist/esm/atomic-ipx-recs-list.entry.js +1 -1
- package/dist/esm/atomic-ipx-refine-modal.entry.js +1 -1
- package/dist/esm/atomic-ipx-refine-toggle.entry.js +1 -1
- package/dist/esm/atomic-ipx-result-link.entry.js +1 -1
- package/dist/esm/atomic-ipx-tabs.entry.js +1 -1
- package/dist/esm/atomic-load-more-results.entry.js +1 -1
- package/dist/esm/atomic-no-results.entry.js +1 -1
- package/dist/esm/atomic-numeric-facet.entry.js +1 -1
- package/dist/esm/atomic-pager.entry.js +3 -3
- package/dist/esm/atomic-query-error.entry.js +1 -1
- package/dist/esm/atomic-query-summary.entry.js +1 -1
- package/dist/esm/atomic-quickview-modal.entry.js +1 -1
- package/dist/esm/atomic-quickview.entry.js +1 -1
- package/dist/esm/atomic-recs-error.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +2 -2
- package/dist/esm/atomic-recs-list.entry.js +1 -1
- package/dist/esm/atomic-refine-modal.entry.js +1 -1
- package/dist/esm/atomic-refine-toggle.entry.js +1 -1
- package/dist/esm/atomic-relevance-inspector.entry.js +2 -2
- package/dist/esm/atomic-result-children.entry.js +1 -1
- package/dist/esm/atomic-result-fields-list.entry.js +1 -1
- package/dist/esm/atomic-result-link.entry.js +1 -1
- package/dist/esm/atomic-result-list.entry.js +1 -1
- package/dist/esm/atomic-result-placeholder_8.entry.js +3 -3
- package/dist/esm/atomic-search-box-instant-results.entry.js +1 -1
- package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +2 -2
- package/dist/esm/atomic-search-box.entry.js +4 -4
- package/dist/esm/atomic-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-stencil-facet-date-input.entry.js +3 -3
- package/dist/esm/atomic-suggestion-renderer.entry.js +1 -1
- package/dist/esm/atomic-tab-bar_2.entry.js +1 -1
- package/dist/esm/atomic-tab-button.entry.js +1 -1
- package/dist/esm/atomic-tab-manager.entry.js +1 -1
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/index-3f35faca.js +0 -4
- package/dist/esm/version.js +2 -2
- package/dist/types/components/insight/atomic-insight-interface/atomic-insight-interface.d.ts +33 -42
- package/dist/types/components/insight/index.d.ts +1 -1
- package/dist/types/components.d.ts +4 -113
- package/docs/atomic-docs.json +1 -16
- package/package.json +3 -3
- package/dist/atomic/components/atomic-insight-interface.d.ts +0 -11
- package/dist/atomic/components/atomic-insight-interface.js +0 -332
- package/dist/atomic/components/atomic-insight-interface.js.map +0 -1
- package/dist/atomic/components/insight-layout.js +0 -87
- package/dist/atomic/components/insight-layout.js.map +0 -1
- package/dist/atomic/p-1654dc36.entry.js +0 -2
- package/dist/atomic/p-1654dc36.entry.js.map +0 -1
- package/dist/atomic/p-2caa1859.js +0 -2
- package/dist/atomic/p-2caa1859.js.map +0 -1
- package/dist/atomic/p-412b233b.entry.js +0 -2
- package/dist/atomic/p-412b233b.entry.js.map +0 -1
- package/dist/atomic/p-52121e1e.entry.js +0 -2
- package/dist/atomic/p-8ef0e022.entry.js +0 -2
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +0 -307
- package/dist/cjs/atomic-insight-interface.cjs.entry.js.map +0 -1
- package/dist/cjs/insight-layout-355a94dd.js +0 -90
- package/dist/cjs/insight-layout-355a94dd.js.map +0 -1
- package/dist/esm/atomic-insight-interface.entry.js +0 -303
- package/dist/esm/atomic-insight-interface.entry.js.map +0 -1
- package/dist/esm/insight-layout-776b87f2.js +0 -87
- package/dist/esm/insight-layout-776b87f2.js.map +0 -1
- /package/dist/atomic/{p-d1d2d945.entry.js.map → p-05a3e5a4.entry.js.map} +0 -0
- /package/dist/atomic/{p-26098930.entry.js.map → p-09953fee.entry.js.map} +0 -0
- /package/dist/atomic/{p-84befe35.entry.js.map → p-0b44ae08.entry.js.map} +0 -0
- /package/dist/atomic/{p-80055cf6.entry.js.map → p-0dac8e7b.entry.js.map} +0 -0
- /package/dist/atomic/{p-5c995d77.entry.js.map → p-0dc6ebf8.entry.js.map} +0 -0
- /package/dist/atomic/{p-ef22a3f2.entry.js.map → p-104c7d84.entry.js.map} +0 -0
- /package/dist/atomic/{p-ce9e510c.entry.js.map → p-117be4a4.entry.js.map} +0 -0
- /package/dist/atomic/{p-cbb819d2.entry.js.map → p-11fc3a7b.entry.js.map} +0 -0
- /package/dist/atomic/{p-b0bd2709.entry.js.map → p-156aa33a.entry.js.map} +0 -0
- /package/dist/atomic/{p-26ad479b.entry.js.map → p-182a3f9e.entry.js.map} +0 -0
- /package/dist/atomic/{p-bfdecd0f.entry.js.map → p-1d8eba10.entry.js.map} +0 -0
- /package/dist/atomic/{p-58610952.entry.js.map → p-24c2110b.entry.js.map} +0 -0
- /package/dist/atomic/{p-52121e1e.entry.js.map → p-256b5495.entry.js.map} +0 -0
- /package/dist/atomic/{p-571c9614.entry.js.map → p-2c64e9a2.entry.js.map} +0 -0
- /package/dist/atomic/{p-6ad1adfb.entry.js.map → p-31e55d26.entry.js.map} +0 -0
- /package/dist/atomic/{p-069bf2b9.entry.js.map → p-39698267.entry.js.map} +0 -0
- /package/dist/atomic/{p-c9fa8526.entry.js.map → p-3a994997.entry.js.map} +0 -0
- /package/dist/atomic/{p-1c3363ec.entry.js.map → p-3c7ed752.entry.js.map} +0 -0
- /package/dist/atomic/{p-5027d796.entry.js.map → p-3e7ea7a5.entry.js.map} +0 -0
- /package/dist/atomic/{p-ab627e18.entry.js.map → p-429270f6.entry.js.map} +0 -0
- /package/dist/atomic/{p-737f842d.entry.js.map → p-43a0f6e2.entry.js.map} +0 -0
- /package/dist/atomic/{p-8b70f39a.entry.js.map → p-455fbbd7.entry.js.map} +0 -0
- /package/dist/atomic/{p-b97abfb9.entry.js.map → p-45e88039.entry.js.map} +0 -0
- /package/dist/atomic/{p-c61609ea.entry.js.map → p-52b66ca8.entry.js.map} +0 -0
- /package/dist/atomic/{p-8ef0e022.entry.js.map → p-564be2a3.entry.js.map} +0 -0
- /package/dist/atomic/{p-b14f19d2.entry.js.map → p-668d9359.entry.js.map} +0 -0
- /package/dist/atomic/{p-09924944.entry.js.map → p-681610d3.entry.js.map} +0 -0
- /package/dist/atomic/{p-2e91aea8.entry.js.map → p-6b297a61.entry.js.map} +0 -0
- /package/dist/atomic/{p-1c2d25ba.entry.js.map → p-6bea42e6.entry.js.map} +0 -0
- /package/dist/atomic/{p-b103b28a.entry.js.map → p-70c431f9.entry.js.map} +0 -0
- /package/dist/atomic/{p-1f5473a6.entry.js.map → p-72844e39.entry.js.map} +0 -0
- /package/dist/atomic/{p-a14fd4de.entry.js.map → p-770da48e.entry.js.map} +0 -0
- /package/dist/atomic/{p-a3a1f8e9.entry.js.map → p-7753ae27.entry.js.map} +0 -0
- /package/dist/atomic/{p-612155f0.entry.js.map → p-7bff27b2.entry.js.map} +0 -0
- /package/dist/atomic/{p-0368a213.entry.js.map → p-81b6d12c.entry.js.map} +0 -0
- /package/dist/atomic/{p-1a79c944.entry.js.map → p-842d31d0.entry.js.map} +0 -0
- /package/dist/atomic/{p-4c7654eb.entry.js.map → p-87747240.entry.js.map} +0 -0
- /package/dist/atomic/{p-258c3253.entry.js.map → p-8b8eb35f.entry.js.map} +0 -0
- /package/dist/atomic/{p-df2df66a.entry.js.map → p-8baf4780.entry.js.map} +0 -0
- /package/dist/atomic/{p-82a8cf74.entry.js.map → p-943b29c2.entry.js.map} +0 -0
- /package/dist/atomic/{p-05ab5909.entry.js.map → p-9507e1bc.entry.js.map} +0 -0
- /package/dist/atomic/{p-aa40956c.entry.js.map → p-971a8a73.entry.js.map} +0 -0
- /package/dist/atomic/{p-552d1f66.entry.js.map → p-a0d04767.entry.js.map} +0 -0
- /package/dist/atomic/{p-c667812c.entry.js.map → p-a5751bb0.entry.js.map} +0 -0
- /package/dist/atomic/{p-fc6beee6.entry.js.map → p-af487ad9.entry.js.map} +0 -0
- /package/dist/atomic/{p-1d091f9a.entry.js.map → p-b1c9b043.entry.js.map} +0 -0
- /package/dist/atomic/{p-516b5bd4.entry.js.map → p-ba9b2923.entry.js.map} +0 -0
- /package/dist/atomic/{p-2d3ef0f7.entry.js.map → p-bbed84f9.entry.js.map} +0 -0
- /package/dist/atomic/{p-5138d839.entry.js.map → p-bfb23490.entry.js.map} +0 -0
- /package/dist/atomic/{p-57b47b73.entry.js.map → p-c15fc656.entry.js.map} +0 -0
- /package/dist/atomic/{p-896724e9.entry.js.map → p-c1721cb2.entry.js.map} +0 -0
- /package/dist/atomic/{p-875583aa.entry.js.map → p-c434b50f.entry.js.map} +0 -0
- /package/dist/atomic/{p-cb051c21.entry.js.map → p-c572a219.entry.js.map} +0 -0
- /package/dist/atomic/{p-15d952f3.entry.js.map → p-c69ae97a.entry.js.map} +0 -0
- /package/dist/atomic/{p-88e4a2f9.entry.js.map → p-c81d1971.entry.js.map} +0 -0
- /package/dist/atomic/{p-62e83568.entry.js.map → p-c83967f2.entry.js.map} +0 -0
- /package/dist/atomic/{p-12ec5c82.entry.js.map → p-caabedeb.entry.js.map} +0 -0
- /package/dist/atomic/{p-633628d5.entry.js.map → p-cbeca949.entry.js.map} +0 -0
- /package/dist/atomic/{p-0c9b553c.entry.js.map → p-cd8f11ea.entry.js.map} +0 -0
- /package/dist/atomic/{p-d5071b5a.entry.js.map → p-d1caf040.entry.js.map} +0 -0
- /package/dist/atomic/{p-496da1c9.entry.js.map → p-d1e5e2d7.entry.js.map} +0 -0
- /package/dist/atomic/{p-f39de057.entry.js.map → p-d3b5c8e5.entry.js.map} +0 -0
- /package/dist/atomic/{p-aff3a66a.entry.js.map → p-d6d0a47f.entry.js.map} +0 -0
- /package/dist/atomic/{p-64fc4340.entry.js.map → p-d98bd053.entry.js.map} +0 -0
- /package/dist/atomic/{p-b328cab9.entry.js.map → p-db6034e2.entry.js.map} +0 -0
- /package/dist/atomic/{p-2e20cc14.js.map → p-dfbe19cc.js.map} +0 -0
- /package/dist/atomic/{p-3af5e810.entry.js.map → p-e20c18f0.entry.js.map} +0 -0
- /package/dist/atomic/{p-79499898.entry.js.map → p-e50b1d73.entry.js.map} +0 -0
- /package/dist/atomic/{p-c3746d6e.entry.js.map → p-e67dabc9.entry.js.map} +0 -0
- /package/dist/atomic/{p-a2714d7e.entry.js.map → p-e9922d7c.entry.js.map} +0 -0
- /package/dist/atomic/{p-13e67ab3.entry.js.map → p-f076efa7.entry.js.map} +0 -0
- /package/dist/atomic/{p-a7dcf131.entry.js.map → p-f30c4c7d.entry.js.map} +0 -0
- /package/dist/atomic/{p-50467793.entry.js.map → p-f45a7b82.entry.js.map} +0 -0
- /package/dist/atomic/{p-2c7d4967.entry.js.map → p-f79f31f8.entry.js.map} +0 -0
- /package/dist/atomic/{p-cdd70f49.entry.js.map → p-fa1dcc3e.entry.js.map} +0 -0
- /package/dist/atomic/{p-e750df14.entry.js.map → p-fce653a1.entry.js.map} +0 -0
- /package/dist/atomic/{p-ce83d873.entry.js.map → p-fe23b0b3.entry.js.map} +0 -0
|
@@ -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: '91ac5b839339b2450a665ace9b5c16067802041f', 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: '5b4569fd5bbdec7f668c2c30b90071d6c115dd6d', tabsIncluded: this.tabsIncluded, tabsExcluded: this.tabsExcluded, activeTab: this.tabManagerState.activeTab }, h(ItemListGuard, { key: '3a2ff503cec54a306178ac82aacb63fdb7ff4f91', hasError: this.resultListState.hasError, hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, h(DisplayWrapper, { key: '61c4e4c85bd62b8ca9a23217d0c09a06baaa7c25', display: this.display, listClasses: listClasses }, h(ResultsPlaceholdersGuard, { key: '5401b30e47737e01d80e12c6b5e2395484fe4da9', density: this.density, display: this.display, imageSize: this.imageSize, displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults }), h(ItemDisplayGuard, { key: '540e38788640a9598dd90932effa400022dccc7e', 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: '5e3a8a7a1d2cdfe73132135d572996ceb3b02ead', 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: '789d2541401ec858c4ae0ed783b276cd8781874f' }, h("div", { key: 'aace31d6d56f2939b282d73a24d3c40bfe72fb38', class: placeholderClasses })), h("atomic-result-section-badges", { key: 'bc695763f5349004a8173f5a28ffc18d9535cc0c' }, h("div", { key: '37a525e29f9b38632cc39b01f46862108d9b909f', class: `badge ${placeholderClasses}` })), h("atomic-result-section-actions", { key: 'b69e45566b1d8d3b9e6381e8c9d9a2282d56e16a' }, h("div", { key: '35911841428eb184e9bfd198e219e5f9fc144482', class: `action ${placeholderClasses}` })), h("atomic-result-section-title", { key: '7bf576848e5c750018161b4bceedadc2e486d9ce' }, h("div", { key: '7da35b744ab9ed8a2730dcaaee90847aba5293cd', class: `title ${placeholderClasses}` })), h("atomic-result-section-excerpt", { key: '88eb068476ca43c6fb49b19a59634bd3657926f1' }, this.renderExcerptLine('100%'), this.renderExcerptLine('95%'), this.renderExcerptLine('98%')), h("atomic-result-section-bottom-metadata", { key: '994c29b3125458b753a6cd1619fdfc53061648ff' }, h("div", { key: '7509d34aba156c694d122f29f1184ebbdf73ed80', 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: 'ae48be5639a61375fef2937ba0910439d9cd6d8a', class: `list-root animate-pulse ${this.getClasses().join(' ')}` }, h("thead", { key: 'ef98ffc5146aebe3980dc79c72e3e56a76433687' }, h("tr", { key: '131e6f9835363e224ba4449bde2bfca1ba863c2f' }, h("th", { key: 'd9b9ed5efd2a277977cae8b103d560d65e813f1d' }, h("div", { key: '634aed335c094769829eabeac094a19e3fcf69de', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '14.5rem' } })), h("th", { key: '44b72525283eeb1f46f21a88093f61ae536914f6' }, h("div", { key: '1e1ca63273b33718c167174d22d8c09dbdb902fb', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '9.75rem' } })), h("th", { key: '06d33f8b8b0945722fb1752ef162d3fbe2bb9274' }, h("div", { key: '32bbc45bb32870a401be2d6dfa206023d3259875', class: `mt-2 h-8 ${placeholderClasses}`, style: { width: '6.5rem' } })))), h("tbody", { key: 'ab18b97ef676c6bf993dea8312b5046a1f77b4a9' }, 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", {
|
|
@@ -172,7 +172,7 @@ const AtomicSearchBoxInstantResults$1 = /*@__PURE__*/ proxyCustomElement(class A
|
|
|
172
172
|
}
|
|
173
173
|
render() {
|
|
174
174
|
if (this.error) {
|
|
175
|
-
return (h("atomic-component-error", { key: '
|
|
175
|
+
return (h("atomic-component-error", { key: '9a09219afe8a0204436d3fc91b916c33b0d00726', element: this.host, error: this.error }));
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
get host() { return this; }
|
|
@@ -60,7 +60,7 @@ const AtomicSearchBoxQuerySuggestions = /*@__PURE__*/ proxyCustomElement(class A
|
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
62
|
if (this.error) {
|
|
63
|
-
return (h("atomic-component-error", { key: '
|
|
63
|
+
return (h("atomic-component-error", { key: 'd37f642d0a8dab2ea78883cfd40ae4afd481e245', element: this.host, error: this.error }));
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
get host() { return this; }
|
|
@@ -154,7 +154,7 @@ const AtomicSearchBoxRecentQueries = /*@__PURE__*/ proxyCustomElement(class Atom
|
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
156
|
if (this.error) {
|
|
157
|
-
return (h("atomic-component-error", { key: '
|
|
157
|
+
return (h("atomic-component-error", { key: '4e4f5a2acd2e77885f1867aa27abb8d372e95dcf', element: this.host, error: this.error }));
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
get host() { return this; }
|
|
@@ -427,18 +427,18 @@ const AtomicSearchBox$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSearchBox
|
|
|
427
427
|
if (!this.suggestionManager.suggestions.length) {
|
|
428
428
|
this.registerSearchboxSuggestionEvents();
|
|
429
429
|
}
|
|
430
|
-
return (h(Host, { key: '
|
|
431
|
-
h(SearchBoxWrapper, { key: '
|
|
430
|
+
return (h(Host, { key: 'dbdbc97b10a1cf170c0baee6cde1c2d8ef7fe28e' }, this.renderAbsolutePositionSpacer(), [
|
|
431
|
+
h(SearchBoxWrapper, { key: '8c3079d587bd9f54334e30ec3ede82c3e2b5ed38', 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: '66f38c383d28a1ee350b45358a9546944d7d9cd4', 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: '85d2a3ea66e49325c829022fbe8c13eb07c15fdb' }, h("atomic-search-box-recent-queries", { key: '17f5e6e7bae4f8182298a67a6d14914284a23ef1' }), h("atomic-search-box-query-suggestions", { key: '4788e7863db50becd3a182803653bf4320f9d401' }))),
|
|
442
442
|
]));
|
|
443
443
|
}
|
|
444
444
|
get host() { return this; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { m as markParentAsReady } from './init-queue.js';
|
|
3
3
|
import { loadSearchConfigurationActions, loadQueryActions, EcommerceDefaultFieldsToInclude, loadFieldActions, buildSearchEngine, buildUrlManager, buildSearchStatus } from '@coveo/headless';
|
|
4
|
-
import { g as getNextAnalyticsConfig,
|
|
4
|
+
import { g as getNextAnalyticsConfig, b as augmentAnalyticsConfigWithAtomicVersion, a as augmentAnalyticsConfigWithDocument, c as augmentWithExternalMiddleware, d as augmentAnalyticsWithAtomicVersion, C as CommonAtomicInterfaceHelper, i as instance, m as mismatchedInterfaceAndEnginePropError } from './analytics-config.js';
|
|
5
5
|
import { S as StorageItems, a as SafeStorage } from './local-storage-utils.js';
|
|
6
6
|
import { A as ArrayProp } from './props-utils.js';
|
|
7
7
|
import { D as DEFAULT_MOBILE_BREAKPOINT } from './replace-breakpoint.js';
|
|
@@ -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: '62e0e00f2ec75c2f4acc972676f338461428671d' }, 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: 'b3e47e176df61e65152422d2de0cdb69a909034a', class: this.fullHeight || !this.shouldRenderButton
|
|
60
60
|
? this.isExpanded
|
|
61
61
|
? 'expanded'
|
|
62
62
|
: ''
|
|
63
|
-
: 'invisible' }, h("div", { key: '
|
|
63
|
+
: 'invisible' }, h("div", { key: 'ae97d3dfba657183f36443e720ba14b32bee91e9', part: "smart-snippet-collapse-wrapper", class: "block overflow-hidden" }, h("slot", { key: '67e0ff7ffe1e54a6d65bcfa40873888a538868b3' })), 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: '397b7867c46ef292014f2ece80538f8e64a6df96', class: this.isExpanded ? 'expanded' : '' }, this.renderAnswer(), this.renderButton()));
|
|
91
91
|
}
|
|
92
92
|
get host() { return this; }
|
|
93
93
|
static get watchers() { return {
|
|
@@ -45,9 +45,9 @@ const AtomicSmartSnippetFeedbackModal = /*@__PURE__*/ proxyCustomElement(class A
|
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
47
|
updateBreakpoints(this.host);
|
|
48
|
-
return (h("atomic-modal", { key: '
|
|
48
|
+
return (h("atomic-modal", { key: 'f9f2832f5eb7b4a5f2b89f9b420a42b35c51c30f', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, h(SmartSnippetFeedbackModalHeader, { key: '21ac2cf6152e4aec8e64d3ea2e3f20bf4e259938', i18n: this.bindings.i18n }), h(SmartSnippetFeedbackModalBody, { key: '7707a40b56a2000af78412c82ae97493018477e9', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, h(SmartSnippetFeebackModalOptions, { key: '033e3c0fa91f49c0819654e4b775e0eb5d1cf0f5', i18n: this.bindings.i18n }, smartSnippetFeedbackOptions.map(({ id, localeKey, correspondingAnswer }) => (h(SmartSnippetFeedbackModalOption, { correspondingAnswer: correspondingAnswer, currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, id: id, localeKey: localeKey, onChange: () => {
|
|
49
49
|
this.currentAnswer = correspondingAnswer;
|
|
50
|
-
} })))), h(SmartSnippetFeedbackModalDetails, { key: '
|
|
50
|
+
} })))), h(SmartSnippetFeedbackModalDetails, { key: '4f230b1871432e462f33dd74de67fca3eccbe7fe', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), h(SmartSnippetFeedbackModalFooter, { key: 'f6d4b7341e7b2e799de180daeb329e1c8d6da415', formId: this.formId, i18n: this.bindings.i18n, onClick: () => this.close() })));
|
|
51
51
|
}
|
|
52
52
|
close() {
|
|
53
53
|
this.isOpen = false;
|
|
@@ -33,7 +33,7 @@ const AtomicSmartSnippetSource = /*@__PURE__*/ proxyCustomElement(class AtomicSm
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '6520ea51d4757548029e157c7f3ab0457686fff0' }, h(LinkWithItemAnalytics, { key: 'eaad110e39c9d08219033e8038e9e4e569951a15', 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: '323ff5b9559f734e65390d354465999e2343ed24', 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: '6667c6e503af290a0e51b40bfd6f643831dfa0fc', firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: hasResults }, h(SortContainer, { key: 'b0373de043f4dc0fc61e650ea5a90b4fdd304339' }, h(SortLabel, { key: '8a4fff541f85ca5f40a32b3858c6ba235c2679a1', i18n: i18n, id: id }), h(SortSelect, { key: '5580563b8a27810e0c20d793a63bac8c74cb4cab', 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: '60c231823fd359621709b41f5d95aa230fc2ee64' }),
|
|
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: '1dcf1d5a49d9a2582cf71892f27811e86aaaf329', element: this.host, error: error }));
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
get host() { return this; }
|
|
@@ -66,13 +66,13 @@ const FacetDateInput = /*@__PURE__*/ proxyCustomElement(class FacetDateInput ext
|
|
|
66
66
|
// Fallback for Safari < 14.1, date with format yyyy-mm-dd over 1400 (API limit)
|
|
67
67
|
const pattern = '^(1[4-9]\\d{2}|2\\d{3})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])$';
|
|
68
68
|
const range = this.rangeGetter();
|
|
69
|
-
return (h("form", { key: '
|
|
69
|
+
return (h("form", { key: '377adcbcff41771908557ad27244d5fc0c1180e2', class: "mt-4 grid grid-cols-[min-content_1fr] gap-2 px-2", onSubmit: (e) => {
|
|
70
70
|
e.preventDefault();
|
|
71
71
|
this.apply();
|
|
72
72
|
return false;
|
|
73
|
-
} }, h("label", { key: '
|
|
73
|
+
} }, h("label", { key: 'b960ea34d03381dd29c0eb1bbc400bd35c4ea453', part: "input-label", class: labelClasses, htmlFor: `${this.facetId}_start` }, startLabel, ":"), h("input", { key: '7819595120e4efcec09158c981762560d01833d4', id: `${this.facetId}_start`, part: "input-start", type: "date", ref: (ref) => (this.startRef = ref), class: inputClasses, "aria-label": startAria, placeholder: placeholder, pattern: pattern, required: true,
|
|
74
74
|
// API/Index minimum supported date
|
|
75
|
-
min: this.min || this.formattedDateValue('1401-01-01'), max: this.end ? this.formattedDateValue(this.end) : this.max, value: this.formattedDateValue(range?.start), onInput: (e) => (this.start = parseDate(e.target.value).toDate()) }), h("label", { key: '
|
|
75
|
+
min: this.min || this.formattedDateValue('1401-01-01'), max: this.end ? this.formattedDateValue(this.end) : this.max, value: this.formattedDateValue(range?.start), onInput: (e) => (this.start = parseDate(e.target.value).toDate()) }), h("label", { key: 'f29cceb6b8d699b1bcaa4ecae56bc5e17ff7d24f', part: "input-label", class: labelClasses, htmlFor: `${this.facetId}_end` }, endLabel, ":"), h("input", { key: 'f7aec88911a6bef568c8613a01aef106c58d7316', id: `${this.facetId}_end`, part: "input-end", type: "date", ref: (ref) => (this.endRef = ref), class: inputClasses, "aria-label": endAria, placeholder: placeholder, pattern: pattern, required: true, min: this.formattedDateValue(this.start) || this.min, max: this.max, value: this.formattedDateValue(range?.end), onInput: (e) => (this.end = parseDate(e.target.value).toDate()) }), h(Button, { key: '90f35d82af067bfc7987e8e87b776f411a034517', style: "outline-primary", type: "submit", part: "input-apply-button", class: "col-span-2 truncate p-2.5", ariaLabel: applyAria, text: apply })));
|
|
76
76
|
}
|
|
77
77
|
}, [0, "atomic-stencil-facet-date-input", {
|
|
78
78
|
"bindings": [16],
|
|
@@ -73,7 +73,7 @@ const AtomicSuggestionRenderer = /*@__PURE__*/ proxyCustomElement(class AtomicSu
|
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
75
|
const isButton = !!(this.suggestion.onSelect || this.suggestion.query);
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '50c7889706463b07ca38dbd02559eeadae00bb1d', class: "contents" }, isButton ? (h("button", { id: this.id, key: this.suggestion.key, part: this.parts, class: this.classes, onMouseDown: (e) => e.preventDefault(), onClick: (e) => this.onClick?.(e), onMouseOver: (e) => this.onMouseOver?.(e), "data-query": this.suggestion.query, "aria-label": this.ariaLabel(isButton), ref: (el) => {
|
|
77
77
|
if (!el) {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
@@ -59,7 +59,7 @@ const AtomicTabManager$1 = /*@__PURE__*/ proxyCustomElement(class AtomicTabManag
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '4a69196109d422072d625146adab3cc92b76016e' }, h("atomic-tab-bar", { key: 'ab8f6f14eef1425517142abf03b5b3783f821a30' }, h("div", { key: 'b2e122393dc52e1de0b9c3f6f151cafe461c1b11', role: "list", "aria-label": "tab-area", part: "tab-area", class: "border-neutral mb-2 flex w-full flex-row border-b" }, this.tabs.map((tab) => (h("atomic-tab-button", { active: this.tabManagerState.activeTab === tab.name, label: this.bindings.i18n.t(tab.label, {
|
|
63
63
|
defaultValue: tab.label,
|
|
64
64
|
}), select: () => {
|
|
65
65
|
if (!tab.tabController.state.isActive) {
|
package/dist/atomic/components/components/insight/atomic-insight-interface/analytics-config.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { augmentAnalyticsWithAtomicVersion, augmentWithExternalMiddleware, getNextAnalyticsConfig, } from '../../common/interface/analytics-config';
|
|
2
|
+
export function getAnalyticsConfig(searchEngineConfig, enabled) {
|
|
3
|
+
switch (searchEngineConfig.analytics?.analyticsMode) {
|
|
4
|
+
case 'next':
|
|
5
|
+
return getNextAnalyticsConfig(searchEngineConfig, enabled);
|
|
6
|
+
default:
|
|
7
|
+
return getLegacyAnalyticsConfig(searchEngineConfig, enabled);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
function getLegacyAnalyticsConfig(searchEngineConfig, enabled) {
|
|
11
|
+
const analyticsClientMiddleware = (event, payload) => augmentAnalytics(event, payload, searchEngineConfig);
|
|
12
|
+
const defaultConfiguration = {
|
|
13
|
+
analyticsClientMiddleware,
|
|
14
|
+
enabled,
|
|
15
|
+
documentLocation: document.location.href,
|
|
16
|
+
...(document.referrer && { originLevel3: document.referrer }),
|
|
17
|
+
};
|
|
18
|
+
if (searchEngineConfig.analytics) {
|
|
19
|
+
return {
|
|
20
|
+
...defaultConfiguration,
|
|
21
|
+
...searchEngineConfig.analytics,
|
|
22
|
+
analyticsClientMiddleware,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
return defaultConfiguration;
|
|
26
|
+
}
|
|
27
|
+
function augmentAnalytics(event, payload, config) {
|
|
28
|
+
let result = augmentWithExternalMiddleware(event, payload, config);
|
|
29
|
+
result = augmentAnalyticsWithAtomicVersion(result);
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
@@ -0,0 +1,253 @@
|
|
|
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 { VERSION as HEADLESS_VERSION } from '@coveo/headless'; // TODO - KIT-4886 import from @coveo/headless/insight
|
|
8
|
+
import { buildInsightEngine, buildResultsPerPage as buildInsightResultsPerPage, loadFieldActions, } from '@coveo/headless/insight';
|
|
9
|
+
import { provide } from '@lit/context';
|
|
10
|
+
import i18next from 'i18next';
|
|
11
|
+
import { css, html, LitElement } from 'lit';
|
|
12
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
13
|
+
import { InterfaceController, } from "../../common/interface/interface-controller";
|
|
14
|
+
import { bindingsContext } from "../../context/bindings-context";
|
|
15
|
+
import { booleanConverter } from "../../../converters/boolean-converter";
|
|
16
|
+
import { errorGuard } from "../../../decorators/error-guard";
|
|
17
|
+
import { watch } from "../../../decorators/watch";
|
|
18
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
19
|
+
import { ChildrenUpdateCompleteMixin } from "../../../mixins/children-update-complete-mixin";
|
|
20
|
+
import { markParentAsReady } from "../../../utils/init-queue";
|
|
21
|
+
import { getAnalyticsConfig } from './analytics-config.js';
|
|
22
|
+
import { createInsightStore } from './store.js';
|
|
23
|
+
const FirstInsightRequestExecutedFlag = 'firstInsightRequestExecuted';
|
|
24
|
+
/**
|
|
25
|
+
* The `atomic-insight-interface` component is the parent to all other atomic insight components in an insight page.
|
|
26
|
+
* It handles the headless insight engine and localization configurations.
|
|
27
|
+
*
|
|
28
|
+
* @slot default - The default slot where you can add child components to the interface.
|
|
29
|
+
* @slot full-search - A slot for components that should be positioned absolutely in the top-right corner.
|
|
30
|
+
* @internal
|
|
31
|
+
*/
|
|
32
|
+
let AtomicInsightInterface = class AtomicInsightInterface extends ChildrenUpdateCompleteMixin(LitElement) {
|
|
33
|
+
constructor() {
|
|
34
|
+
super();
|
|
35
|
+
this.initialized = false;
|
|
36
|
+
this.interfaceController = new InterfaceController(this, 'CoveoAtomic', HEADLESS_VERSION);
|
|
37
|
+
/**
|
|
38
|
+
* Whether analytics should be enabled.
|
|
39
|
+
*/
|
|
40
|
+
this.analytics = true;
|
|
41
|
+
/**
|
|
42
|
+
* The service insight interface language.
|
|
43
|
+
*/
|
|
44
|
+
this.language = 'en';
|
|
45
|
+
/**
|
|
46
|
+
* The language assets path. By default, this will be a relative URL pointing to `./lang`.
|
|
47
|
+
*
|
|
48
|
+
* Example: "/mypublicpath/languages"
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
this.languageAssetsPath = './lang';
|
|
52
|
+
/**
|
|
53
|
+
* The icon assets path. By default, this will be a relative URL pointing to `./assets`.
|
|
54
|
+
*
|
|
55
|
+
* Example: "/mypublicpath/icons"
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
this.iconAssetsPath = './assets';
|
|
59
|
+
/**
|
|
60
|
+
* A list of non-default fields to include in the query results.
|
|
61
|
+
*
|
|
62
|
+
* Specify the property as an array using a JSON string representation:
|
|
63
|
+
* ```html
|
|
64
|
+
* <atomic-insight-interface fields-to-include='["fieldA", "fieldB"]'></atomic-insight-interface>
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
this.fieldsToInclude = [];
|
|
68
|
+
/**
|
|
69
|
+
* The number of results per page. By default, this is set to `5`.
|
|
70
|
+
*/
|
|
71
|
+
this.resultsPerPage = 5;
|
|
72
|
+
this.handleInitialization = (event) => {
|
|
73
|
+
this.interfaceController.onComponentInitializing(event);
|
|
74
|
+
};
|
|
75
|
+
this.bindings = {};
|
|
76
|
+
this.store = createInsightStore();
|
|
77
|
+
const { promise, resolve } = Promise.withResolvers();
|
|
78
|
+
this.i18Initialized = promise;
|
|
79
|
+
this.i18n = i18next.createInstance(undefined, resolve);
|
|
80
|
+
}
|
|
81
|
+
connectedCallback() {
|
|
82
|
+
super.connectedCallback();
|
|
83
|
+
this.store.setLoadingFlag(FirstInsightRequestExecutedFlag);
|
|
84
|
+
this.addEventListener('atomic/initializeComponent', this.handleInitialization);
|
|
85
|
+
}
|
|
86
|
+
disconnectedCallback() {
|
|
87
|
+
super.disconnectedCallback();
|
|
88
|
+
this.removeEventListener('atomic/initializeComponent', this.handleInitialization);
|
|
89
|
+
}
|
|
90
|
+
toggleAnalytics() {
|
|
91
|
+
this.interfaceController.onAnalyticsChange();
|
|
92
|
+
}
|
|
93
|
+
updateLanguage() {
|
|
94
|
+
return this.interfaceController.onLanguageChange();
|
|
95
|
+
}
|
|
96
|
+
updateIconAssetsPath() {
|
|
97
|
+
this.store.state.iconAssetsPath = this.iconAssetsPath;
|
|
98
|
+
}
|
|
99
|
+
initResultsPerPage() {
|
|
100
|
+
if (!this.interfaceController.engineIsCreated(this.engine)) {
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
buildInsightResultsPerPage(this.bindings.engine, {
|
|
104
|
+
initialState: { numberOfResults: this.resultsPerPage },
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
registerFieldsToInclude() {
|
|
108
|
+
if (this.fieldsToInclude.length) {
|
|
109
|
+
this.engine.dispatch(loadFieldActions(this.engine).registerFieldsToInclude([
|
|
110
|
+
...this.fieldsToInclude,
|
|
111
|
+
]));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Initializes the connection with the headless insight engine using options for `accessToken` (required), `organizationId` (required), `environment` (defaults to `prod`), and `renewAccessToken`.
|
|
116
|
+
*/
|
|
117
|
+
initialize(options) {
|
|
118
|
+
return this.internalInitialization(() => this.initEngine(options));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Initializes the connection with an already preconfigured headless insight engine.
|
|
122
|
+
*/
|
|
123
|
+
initializeWithInsightEngine(engine) {
|
|
124
|
+
return this.internalInitialization(() => {
|
|
125
|
+
this.engine = engine;
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Executes the first search and logs the interface load event to analytics, after initializing connection to the headless search engine.
|
|
130
|
+
*/
|
|
131
|
+
async executeFirstSearch() {
|
|
132
|
+
if (!this.interfaceController.engineIsCreated(this.engine)) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (!this.initialized) {
|
|
136
|
+
console.error('You have to wait until the "initialize" promise is fulfilled before executing a search.', this);
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
this.engine.executeFirstSearch();
|
|
140
|
+
}
|
|
141
|
+
async internalInitialization(initEngine) {
|
|
142
|
+
await Promise.all([
|
|
143
|
+
this.interfaceController.onInitialization(initEngine),
|
|
144
|
+
this.i18Initialized,
|
|
145
|
+
]);
|
|
146
|
+
this.updateLanguage();
|
|
147
|
+
this.bindings = this.getBindings();
|
|
148
|
+
markParentAsReady(this);
|
|
149
|
+
this.initResultsPerPage();
|
|
150
|
+
this.registerFieldsToInclude();
|
|
151
|
+
this.store.unsetLoadingFlag(FirstInsightRequestExecutedFlag);
|
|
152
|
+
await this.getUpdateComplete();
|
|
153
|
+
this.initialized = true;
|
|
154
|
+
}
|
|
155
|
+
getBindings() {
|
|
156
|
+
return {
|
|
157
|
+
engine: this.engine,
|
|
158
|
+
i18n: this.i18n,
|
|
159
|
+
store: this.store,
|
|
160
|
+
interfaceElement: this,
|
|
161
|
+
// TODO - KIT-4839: Remove once atomic-insight-layout migration is complete.
|
|
162
|
+
createStyleElement: () => {
|
|
163
|
+
const styleTag = document.createElement('style');
|
|
164
|
+
return styleTag;
|
|
165
|
+
},
|
|
166
|
+
// TODO - KIT-4839: Remove once atomic-insight-layout migration is complete.
|
|
167
|
+
createScriptElement: () => {
|
|
168
|
+
const scriptTag = document.createElement('script');
|
|
169
|
+
return scriptTag;
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
initEngine(options) {
|
|
174
|
+
const analyticsConfig = getAnalyticsConfig(options, this.analytics);
|
|
175
|
+
try {
|
|
176
|
+
this.engine = buildInsightEngine({
|
|
177
|
+
configuration: {
|
|
178
|
+
...options,
|
|
179
|
+
analytics: analyticsConfig,
|
|
180
|
+
},
|
|
181
|
+
loggerOptions: {
|
|
182
|
+
level: this.logLevel,
|
|
183
|
+
},
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
catch (error) {
|
|
187
|
+
this.error = error;
|
|
188
|
+
throw error;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
render() {
|
|
192
|
+
return html `
|
|
193
|
+
<slot name="full-search"></slot>
|
|
194
|
+
<slot></slot>
|
|
195
|
+
`;
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
AtomicInsightInterface.styles = css`:host{position:relative}slot[name=full-search]{display:block;position:absolute;top:0;right:0}`;
|
|
199
|
+
__decorate([
|
|
200
|
+
state()
|
|
201
|
+
], AtomicInsightInterface.prototype, "error", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
property({ type: Object })
|
|
204
|
+
], AtomicInsightInterface.prototype, "engine", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
property({
|
|
207
|
+
type: Boolean,
|
|
208
|
+
converter: booleanConverter,
|
|
209
|
+
reflect: true,
|
|
210
|
+
})
|
|
211
|
+
], AtomicInsightInterface.prototype, "analytics", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
property({ type: Object })
|
|
214
|
+
], AtomicInsightInterface.prototype, "i18n", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
property({ type: String, attribute: 'log-level', reflect: true })
|
|
217
|
+
], AtomicInsightInterface.prototype, "logLevel", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
property({ type: String, attribute: 'language', reflect: true })
|
|
220
|
+
], AtomicInsightInterface.prototype, "language", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
property({ type: String, attribute: 'language-assets-path', reflect: true })
|
|
223
|
+
], AtomicInsightInterface.prototype, "languageAssetsPath", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
property({ type: String, attribute: 'icon-assets-path', reflect: true })
|
|
226
|
+
], AtomicInsightInterface.prototype, "iconAssetsPath", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
property({ type: Array, attribute: 'fields-to-include' })
|
|
229
|
+
], AtomicInsightInterface.prototype, "fieldsToInclude", void 0);
|
|
230
|
+
__decorate([
|
|
231
|
+
property({ type: Number, attribute: 'results-per-page', reflect: true })
|
|
232
|
+
], AtomicInsightInterface.prototype, "resultsPerPage", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
watch('analytics')
|
|
235
|
+
], AtomicInsightInterface.prototype, "toggleAnalytics", null);
|
|
236
|
+
__decorate([
|
|
237
|
+
watch('language')
|
|
238
|
+
], AtomicInsightInterface.prototype, "updateLanguage", null);
|
|
239
|
+
__decorate([
|
|
240
|
+
watch('iconAssetsPath')
|
|
241
|
+
], AtomicInsightInterface.prototype, "updateIconAssetsPath", null);
|
|
242
|
+
__decorate([
|
|
243
|
+
state(),
|
|
244
|
+
provide({ context: bindingsContext })
|
|
245
|
+
], AtomicInsightInterface.prototype, "bindings", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
errorGuard()
|
|
248
|
+
], AtomicInsightInterface.prototype, "render", null);
|
|
249
|
+
AtomicInsightInterface = __decorate([
|
|
250
|
+
customElement('atomic-insight-interface'),
|
|
251
|
+
withTailwindStyles
|
|
252
|
+
], AtomicInsightInterface);
|
|
253
|
+
export { AtomicInsightInterface };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated file
|
|
2
|
+
export { AtomicInsightInterface } from './atomic-insight-interface/atomic-insight-interface.js';
|
|
@@ -42,11 +42,11 @@ const FacetNumberInput = /*@__PURE__*/ proxyCustomElement(class FacetNumberInput
|
|
|
42
42
|
const inputClasses = 'p-2.5 input-primary placeholder-neutral-dark min-w-0 mr-1';
|
|
43
43
|
const labelClasses = 'text-neutral-dark text-sm';
|
|
44
44
|
const step = this.type === 'integer' ? '1' : 'any';
|
|
45
|
-
return (h("form", { key: '
|
|
45
|
+
return (h("form", { key: '0406137b757fd80da0c1003275fe4d85b1989d40', class: "mt-4 gap-y-0.5 px-2", part: "input-form", onSubmit: (e) => {
|
|
46
46
|
e.preventDefault();
|
|
47
47
|
this.apply();
|
|
48
48
|
return false;
|
|
49
|
-
} }, h("label", { key: '
|
|
49
|
+
} }, h("label", { key: '5f6edbdcdcb7b47a0e762bcd635d0ed19ee0b31d', part: "label-start", class: labelClasses, htmlFor: `${this.filterState.facetId}_start` }, minText), h("input", { key: '433ec768234b052b43cf54b7178c023d42ebb6d2', part: "input-start", id: `${this.filterState.facetId}_start`, type: "number", step: step, ref: (ref) => (this.startRef = ref), class: inputClasses, "aria-label": minAria, required: true, min: Number.MIN_SAFE_INTEGER, max: this.end, value: this.filterState.range?.start, onInput: (e) => (this.start = e.target.valueAsNumber) }), h("label", { key: 'ee812a7d94ced36e18dbfc48708521cd7749f4ce', part: "label-end", class: labelClasses, htmlFor: `${this.filterState.facetId}_end` }, maxText), h("input", { key: '3b108ec9fcf5c27ea4d842ba1562cde73f243c43', part: "input-end", id: `${this.filterState.facetId}_end`, type: "number", step: step, ref: (ref) => (this.endRef = ref), class: inputClasses, "aria-label": maxAria, required: true, min: this.start, max: Number.MAX_SAFE_INTEGER, value: this.filterState.range?.end, onInput: (e) => (this.end = e.target.valueAsNumber) }), h(Button, { key: '858b1dddb7ba6d7d921eab781825382a05760526', style: "outline-primary", type: "submit", part: "input-apply-button", class: "flex-none truncate p-2.5", ariaLabel: applyAria, text: apply })));
|
|
50
50
|
}
|
|
51
51
|
static get style() { return AtomicFacetNumberInputStyle0; }
|
|
52
52
|
}, [0, "atomic-facet-number-input", {
|