@coveo/atomic 3.33.8-pre.bcd9d55cdd → 3.33.8-pre.c15f1d422b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/atomic.esm.js.map +1 -1
- package/dist/atomic/autoloader/index.cjs.js +2 -2
- package/dist/atomic/autoloader/index.esm.js +2 -2
- package/dist/atomic/components/_index.d.ts +2 -2
- package/dist/atomic/components/_index.js +1 -1
- package/dist/atomic/components/analytics-config.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-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-interface.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 +5 -41
- package/dist/atomic/components/atomic-insight-pager.js.map +1 -1
- package/dist/atomic/components/atomic-insight-query-error.js +1 -1
- package/dist/atomic/components/atomic-insight-refine-modal2.js +2 -2
- package/dist/atomic/components/atomic-insight-refine-toggle.js +1 -1
- package/dist/atomic/components/atomic-insight-result-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result-attach-to-case-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result-attach-to-case-indicator.js +1 -1
- package/dist/atomic/components/atomic-insight-result-children.js +1 -1
- package/dist/atomic/components/atomic-insight-result-list.js +1 -1
- package/dist/atomic/components/atomic-insight-result-quickview-action.js +1 -1
- package/dist/atomic/components/atomic-insight-result2.js +1 -1
- package/dist/atomic/components/atomic-insight-search-box.js +2 -2
- package/dist/atomic/components/atomic-insight-smart-snippet-feedback-modal2.js +2 -2
- package/dist/atomic/components/atomic-insight-tabs.js +1 -1
- package/dist/atomic/components/atomic-insight-user-actions-session2.js +1 -1
- package/dist/atomic/components/atomic-insight-user-actions-toggle.js +1 -1
- package/dist/atomic/components/atomic-ipx-body2.js +2 -2
- package/dist/atomic/components/atomic-ipx-button.js +2 -2
- package/dist/atomic/components/atomic-ipx-embedded.js +1 -1
- package/dist/atomic/components/atomic-ipx-modal.js +2 -2
- package/dist/atomic/components/atomic-ipx-recs-list.js +1 -1
- package/dist/atomic/components/atomic-ipx-refine-modal2.js +1 -1
- package/dist/atomic/components/atomic-ipx-refine-toggle.js +1 -1
- package/dist/atomic/components/atomic-ipx-result-link.js +1 -1
- package/dist/atomic/components/atomic-ipx-tabs.js +1 -1
- package/dist/atomic/components/atomic-load-more-results.js +1 -1
- package/dist/atomic/components/atomic-no-results.js +1 -1
- package/dist/atomic/components/atomic-numeric-facet.js +1 -0
- package/dist/atomic/components/atomic-numeric-facet.js.map +1 -1
- package/dist/atomic/components/atomic-pager.d.ts +11 -0
- package/dist/atomic/components/atomic-pager.js +134 -0
- package/dist/atomic/components/atomic-pager.js.map +1 -0
- package/dist/atomic/components/atomic-query-error.js +1 -1
- package/dist/atomic/components/atomic-recs-error.js +1 -1
- package/dist/atomic/components/atomic-recs-interface.js +1 -1
- package/dist/atomic/components/atomic-recs-list.js +1 -1
- package/dist/atomic/components/atomic-refine-modal2.js +1 -1
- package/dist/atomic/components/atomic-refine-toggle.js +1 -1
- package/dist/atomic/components/atomic-relevance-inspector.js +46 -1
- package/dist/atomic/components/atomic-relevance-inspector.js.map +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.js +15 -4
- package/dist/atomic/components/atomic-search-box.js.map +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-source2.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/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +18 -11
- package/dist/atomic/components/components/commerce/atomic-commerce-interface/atomic-commerce-interface.js +52 -15
- package/dist/atomic/components/components/commerce/atomic-commerce-layout/atomic-commerce-layout.js +19 -10
- package/dist/atomic/components/components/commerce/atomic-commerce-query-summary/atomic-commerce-query-summary.js +2 -2
- package/dist/atomic/components/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.js +25 -10
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +12 -5
- package/dist/atomic/components/components/common/atomic-modal/atomic-modal.js +2 -0
- package/dist/atomic/components/components/common/layout/layout-styles-controller.js +40 -0
- package/dist/atomic/components/components/common/layout/mobile-breakpoint-controller.js +26 -0
- package/dist/atomic/components/components/search/atomic-search-interface/analytics-config.js +57 -0
- package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js +495 -0
- package/dist/atomic/components/components/search/atomic-search-layout/atomic-search-layout.js +20 -9
- package/dist/atomic/components/components/search/index.js +1 -1
- package/dist/atomic/components/components/search/lazy-index.js +1 -1
- package/dist/atomic/components/facet-number-input.js +2 -2
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/stencil-pager-navigation.js +42 -0
- package/dist/atomic/components/stencil-pager-navigation.js.map +1 -0
- package/dist/atomic/components/tab-button.js +1 -1
- package/dist/atomic/components/tab-popover.js +1 -1
- package/dist/atomic/{p-6329ff94.entry.js → p-004adbb8.entry.js} +2 -2
- package/dist/atomic/{p-d0f47b33.entry.js → p-00a6ab8c.entry.js} +2 -2
- package/dist/atomic/{p-a3f1a1f2.entry.js → p-04d63186.entry.js} +2 -2
- package/dist/atomic/{p-3b20b011.entry.js → p-0610b3e7.entry.js} +2 -2
- package/dist/atomic/{p-ee6771f1.entry.js → p-07b6424c.entry.js} +2 -2
- package/dist/atomic/{p-83c9244a.entry.js → p-0e27d4f2.entry.js} +2 -2
- package/dist/atomic/{p-c126ee6b.entry.js → p-0e5dc57f.entry.js} +2 -2
- package/dist/atomic/p-0edea6f9.entry.js +2 -0
- package/dist/atomic/{p-20341936.entry.js → p-10b5e0f3.entry.js} +2 -2
- package/dist/atomic/{p-2ca352f4.entry.js → p-15406648.entry.js} +2 -2
- package/dist/atomic/{p-a3efa89e.entry.js → p-160553ce.entry.js} +2 -2
- package/dist/atomic/p-211d7d6a.js +2 -0
- package/dist/atomic/p-211d7d6a.js.map +1 -0
- package/dist/atomic/{p-757de797.entry.js → p-2a4e9425.entry.js} +2 -2
- package/dist/atomic/{p-26a51a77.entry.js → p-3213225f.entry.js} +2 -2
- package/dist/atomic/{p-e8d5e852.entry.js → p-41c5d5fa.entry.js} +2 -2
- package/dist/atomic/{p-e23b3334.entry.js → p-441b1a7b.entry.js} +2 -2
- package/dist/atomic/p-6de44060.entry.js +2 -0
- package/dist/atomic/p-6de44060.entry.js.map +1 -0
- package/dist/atomic/{p-c1999888.entry.js → p-754909fe.entry.js} +2 -2
- package/dist/atomic/{p-811d6dcb.entry.js → p-780170e5.entry.js} +2 -2
- package/dist/atomic/p-79a9a372.entry.js +2 -0
- package/dist/atomic/{p-fb7ad34b.entry.js.map → p-79a9a372.entry.js.map} +1 -1
- package/dist/atomic/{p-36fab158.entry.js → p-7a6468a7.entry.js} +2 -2
- package/dist/atomic/{p-3a2c900c.entry.js → p-7b1a3cab.entry.js} +2 -2
- package/dist/atomic/{p-d93adf52.entry.js → p-7d63bf7b.entry.js} +2 -2
- package/dist/atomic/{p-d364064c.entry.js → p-7f40e57d.entry.js} +2 -2
- package/dist/atomic/{p-d785121d.entry.js → p-856e858c.entry.js} +2 -2
- package/dist/atomic/{p-534b6a0a.entry.js → p-87c6c206.entry.js} +2 -2
- package/dist/atomic/{p-e162805d.entry.js → p-8a7a23b7.entry.js} +2 -2
- package/dist/atomic/{p-604c4085.entry.js → p-8df7270f.entry.js} +2 -2
- package/dist/atomic/{p-8256cd44.entry.js → p-9147b0db.entry.js} +2 -2
- package/dist/atomic/{p-37374964.entry.js → p-9727f36b.entry.js} +2 -2
- package/dist/atomic/p-97829295.entry.js +2 -0
- package/dist/atomic/{p-31aa052e.entry.js → p-97e42c43.entry.js} +2 -2
- package/dist/atomic/{p-9883415e.entry.js → p-9b92b4e2.entry.js} +2 -2
- package/dist/atomic/{p-1ef658d8.entry.js → p-9d023f0b.entry.js} +2 -2
- package/dist/atomic/{p-40635c2d.entry.js → p-9e771351.entry.js} +2 -2
- package/dist/atomic/{p-1cc90c52.js → p-a2a9a0f2.js} +2 -2
- package/dist/atomic/{p-035f8dc8.entry.js → p-a3fa6695.entry.js} +2 -2
- package/dist/atomic/{p-f0c2dfe8.entry.js → p-abb14108.entry.js} +2 -2
- package/dist/atomic/{p-48f57fd8.entry.js → p-b0c50194.entry.js} +2 -2
- package/dist/atomic/{p-b0b17e21.entry.js → p-b4c34553.entry.js} +2 -2
- package/dist/atomic/{p-98c5b9b8.entry.js → p-b6377fb6.entry.js} +2 -2
- package/dist/atomic/{p-ea446721.entry.js → p-bd32625e.entry.js} +2 -2
- package/dist/atomic/{p-939eaaac.entry.js → p-bd99fcc1.entry.js} +2 -2
- package/dist/atomic/{p-7b9cebdc.entry.js → p-beb5bbb4.entry.js} +2 -2
- package/dist/atomic/{p-99b8d52d.entry.js → p-bf49fed3.entry.js} +2 -2
- package/dist/atomic/{p-3f912e98.entry.js → p-c08f4ee6.entry.js} +2 -2
- package/dist/atomic/p-c2b4b401.entry.js +2 -0
- package/dist/atomic/{p-a53c7821.entry.js → p-c538c8ac.entry.js} +2 -2
- package/dist/atomic/{p-43d708cb.entry.js → p-c9fe4f77.entry.js} +2 -2
- package/dist/atomic/{p-00e5bb15.entry.js → p-ce41c447.entry.js} +2 -2
- package/dist/atomic/p-d4ad7336.entry.js +2 -0
- package/dist/atomic/p-d4ad7336.entry.js.map +1 -0
- package/dist/atomic/{p-627e1265.entry.js → p-d50c96c2.entry.js} +2 -2
- package/dist/atomic/{p-bc0d6d3d.entry.js → p-dee60597.entry.js} +2 -2
- package/dist/atomic/{p-b2ff1330.entry.js → p-e1c99e2e.entry.js} +2 -2
- package/dist/atomic/{p-6e6d686e.entry.js → p-e3af1bb4.entry.js} +2 -2
- package/dist/atomic/{p-bf50b64d.entry.js → p-e6a7e7b2.entry.js} +2 -2
- package/dist/atomic/{p-6f988841.entry.js → p-ef64b06a.entry.js} +2 -2
- package/dist/atomic/{p-6f988841.entry.js.map → p-ef64b06a.entry.js.map} +1 -1
- package/dist/atomic/{p-594488f2.entry.js → p-f0012580.entry.js} +2 -2
- package/dist/atomic/{p-fea7bf3b.entry.js → p-f936f55e.entry.js} +2 -2
- package/dist/atomic/{p-fbfe913d.entry.js → p-fb1a1e2e.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-1bff463e.js → analytics-config-2aebaf43.js} +2 -2
- package/dist/cjs/{analytics-config-1bff463e.js.map → analytics-config-2aebaf43.js.map} +1 -1
- package/dist/cjs/atomic-citation.cjs.entry.js +1 -1
- package/dist/cjs/atomic-facet-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic-facet-number-input.cjs.entry.js +2 -2
- package/dist/cjs/atomic-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 +7 -41
- package/dist/cjs/atomic-insight-pager.cjs.entry.js.map +1 -1
- 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 -0
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-pager.cjs.entry.js +121 -0
- package/dist/cjs/atomic-pager.cjs.entry.js.map +1 -0
- package/dist/cjs/atomic-query-error.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-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.cjs.entry.js +15 -4
- package/dist/cjs/atomic-search-box.cjs.entry.js.map +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-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.cjs.js +1 -1
- package/dist/cjs/index-757bc886.js +8 -8
- package/dist/cjs/stencil-pager-navigation-c20b8a95.js +48 -0
- package/dist/cjs/stencil-pager-navigation-c20b8a95.js.map +1 -0
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-b8cffa6f.js → analytics-config-a63f982a.js} +2 -2
- package/dist/esm/{analytics-config-b8cffa6f.js.map → analytics-config-a63f982a.js.map} +1 -1
- package/dist/esm/atomic-citation.entry.js +1 -1
- package/dist/esm/atomic-facet-manager.entry.js +1 -1
- package/dist/esm/atomic-facet-number-input.entry.js +2 -2
- package/dist/esm/atomic-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 +1 -1
- package/dist/esm/atomic-insight-numeric-facet.entry.js +1 -1
- package/dist/esm/atomic-insight-pager.entry.js +7 -41
- package/dist/esm/atomic-insight-pager.entry.js.map +1 -1
- 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 -0
- package/dist/esm/atomic-numeric-facet.entry.js.map +1 -1
- package/dist/esm/atomic-pager.entry.js +117 -0
- package/dist/esm/atomic-pager.entry.js.map +1 -0
- package/dist/esm/atomic-query-error.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-placeholder_8.entry.js +3 -3
- package/dist/esm/atomic-search-box-instant-results.entry.js +1 -1
- package/dist/esm/atomic-search-box.entry.js +15 -4
- package/dist/esm/atomic-search-box.entry.js.map +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-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.js +1 -1
- package/dist/esm/index-3f35faca.js +8 -8
- package/dist/esm/stencil-pager-navigation-7261a834.js +42 -0
- package/dist/esm/stencil-pager-navigation-7261a834.js.map +1 -0
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -1
- package/dist/types/components/commerce/atomic-commerce-interface/atomic-commerce-interface.d.ts +30 -3
- package/dist/types/components/commerce/atomic-commerce-layout/atomic-commerce-layout.d.ts +3 -3
- package/dist/types/components/commerce/atomic-commerce-recommendation-interface/atomic-commerce-recommendation-interface.d.ts +1 -0
- package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +1 -0
- package/dist/types/components/common/layout/layout-styles-controller.d.ts +22 -0
- package/dist/types/components/common/layout/mobile-breakpoint-controller.d.ts +18 -0
- package/dist/types/components/search/atomic-pager/atomic-pager.d.ts +8 -18
- package/dist/types/components/search/atomic-search-box/atomic-search-box.d.ts +1 -0
- package/dist/types/components/search/atomic-search-interface/atomic-search-interface.d.ts +46 -44
- package/dist/types/components/search/atomic-search-interface/interfaces.d.ts +2 -1
- package/dist/types/components/search/atomic-search-layout/atomic-search-layout.d.ts +3 -1
- package/dist/types/components/search/index.d.ts +1 -1
- package/dist/types/components.d.ts +67 -165
- package/docs/atomic-docs.json +251 -648
- package/package.json +4 -4
- package/dist/atomic/components/atomic-relevance-inspector2.js +0 -50
- package/dist/atomic/components/atomic-relevance-inspector2.js.map +0 -1
- package/dist/atomic/components/atomic-search-interface.d.ts +0 -11
- package/dist/atomic/components/atomic-search-interface.js +0 -552
- package/dist/atomic/components/atomic-search-interface.js.map +0 -1
- package/dist/atomic/components/components/search/atomic-pager/atomic-pager.js +0 -172
- package/dist/atomic/p-1992b245.entry.js +0 -2
- package/dist/atomic/p-593903ec.entry.js +0 -2
- package/dist/atomic/p-593903ec.entry.js.map +0 -1
- package/dist/atomic/p-8305e028.entry.js +0 -2
- package/dist/atomic/p-8305e028.entry.js.map +0 -1
- package/dist/atomic/p-d24d34a7.entry.js +0 -2
- package/dist/atomic/p-e2afb475.entry.js +0 -2
- package/dist/atomic/p-fb7ad34b.entry.js +0 -2
- package/dist/cjs/atomic-search-interface.cjs.entry.js +0 -511
- package/dist/cjs/atomic-search-interface.cjs.entry.js.map +0 -1
- package/dist/esm/atomic-search-interface.entry.js +0 -507
- package/dist/esm/atomic-search-interface.entry.js.map +0 -1
- /package/dist/atomic/{p-6329ff94.entry.js.map → p-004adbb8.entry.js.map} +0 -0
- /package/dist/atomic/{p-d0f47b33.entry.js.map → p-00a6ab8c.entry.js.map} +0 -0
- /package/dist/atomic/{p-a3f1a1f2.entry.js.map → p-04d63186.entry.js.map} +0 -0
- /package/dist/atomic/{p-3b20b011.entry.js.map → p-0610b3e7.entry.js.map} +0 -0
- /package/dist/atomic/{p-ee6771f1.entry.js.map → p-07b6424c.entry.js.map} +0 -0
- /package/dist/atomic/{p-83c9244a.entry.js.map → p-0e27d4f2.entry.js.map} +0 -0
- /package/dist/atomic/{p-c126ee6b.entry.js.map → p-0e5dc57f.entry.js.map} +0 -0
- /package/dist/atomic/{p-1992b245.entry.js.map → p-0edea6f9.entry.js.map} +0 -0
- /package/dist/atomic/{p-20341936.entry.js.map → p-10b5e0f3.entry.js.map} +0 -0
- /package/dist/atomic/{p-2ca352f4.entry.js.map → p-15406648.entry.js.map} +0 -0
- /package/dist/atomic/{p-a3efa89e.entry.js.map → p-160553ce.entry.js.map} +0 -0
- /package/dist/atomic/{p-757de797.entry.js.map → p-2a4e9425.entry.js.map} +0 -0
- /package/dist/atomic/{p-26a51a77.entry.js.map → p-3213225f.entry.js.map} +0 -0
- /package/dist/atomic/{p-e8d5e852.entry.js.map → p-41c5d5fa.entry.js.map} +0 -0
- /package/dist/atomic/{p-e23b3334.entry.js.map → p-441b1a7b.entry.js.map} +0 -0
- /package/dist/atomic/{p-c1999888.entry.js.map → p-754909fe.entry.js.map} +0 -0
- /package/dist/atomic/{p-811d6dcb.entry.js.map → p-780170e5.entry.js.map} +0 -0
- /package/dist/atomic/{p-36fab158.entry.js.map → p-7a6468a7.entry.js.map} +0 -0
- /package/dist/atomic/{p-3a2c900c.entry.js.map → p-7b1a3cab.entry.js.map} +0 -0
- /package/dist/atomic/{p-d93adf52.entry.js.map → p-7d63bf7b.entry.js.map} +0 -0
- /package/dist/atomic/{p-d364064c.entry.js.map → p-7f40e57d.entry.js.map} +0 -0
- /package/dist/atomic/{p-d785121d.entry.js.map → p-856e858c.entry.js.map} +0 -0
- /package/dist/atomic/{p-534b6a0a.entry.js.map → p-87c6c206.entry.js.map} +0 -0
- /package/dist/atomic/{p-e162805d.entry.js.map → p-8a7a23b7.entry.js.map} +0 -0
- /package/dist/atomic/{p-604c4085.entry.js.map → p-8df7270f.entry.js.map} +0 -0
- /package/dist/atomic/{p-8256cd44.entry.js.map → p-9147b0db.entry.js.map} +0 -0
- /package/dist/atomic/{p-37374964.entry.js.map → p-9727f36b.entry.js.map} +0 -0
- /package/dist/atomic/{p-d24d34a7.entry.js.map → p-97829295.entry.js.map} +0 -0
- /package/dist/atomic/{p-31aa052e.entry.js.map → p-97e42c43.entry.js.map} +0 -0
- /package/dist/atomic/{p-9883415e.entry.js.map → p-9b92b4e2.entry.js.map} +0 -0
- /package/dist/atomic/{p-1ef658d8.entry.js.map → p-9d023f0b.entry.js.map} +0 -0
- /package/dist/atomic/{p-40635c2d.entry.js.map → p-9e771351.entry.js.map} +0 -0
- /package/dist/atomic/{p-1cc90c52.js.map → p-a2a9a0f2.js.map} +0 -0
- /package/dist/atomic/{p-035f8dc8.entry.js.map → p-a3fa6695.entry.js.map} +0 -0
- /package/dist/atomic/{p-f0c2dfe8.entry.js.map → p-abb14108.entry.js.map} +0 -0
- /package/dist/atomic/{p-48f57fd8.entry.js.map → p-b0c50194.entry.js.map} +0 -0
- /package/dist/atomic/{p-b0b17e21.entry.js.map → p-b4c34553.entry.js.map} +0 -0
- /package/dist/atomic/{p-98c5b9b8.entry.js.map → p-b6377fb6.entry.js.map} +0 -0
- /package/dist/atomic/{p-ea446721.entry.js.map → p-bd32625e.entry.js.map} +0 -0
- /package/dist/atomic/{p-939eaaac.entry.js.map → p-bd99fcc1.entry.js.map} +0 -0
- /package/dist/atomic/{p-7b9cebdc.entry.js.map → p-beb5bbb4.entry.js.map} +0 -0
- /package/dist/atomic/{p-99b8d52d.entry.js.map → p-bf49fed3.entry.js.map} +0 -0
- /package/dist/atomic/{p-3f912e98.entry.js.map → p-c08f4ee6.entry.js.map} +0 -0
- /package/dist/atomic/{p-e2afb475.entry.js.map → p-c2b4b401.entry.js.map} +0 -0
- /package/dist/atomic/{p-a53c7821.entry.js.map → p-c538c8ac.entry.js.map} +0 -0
- /package/dist/atomic/{p-43d708cb.entry.js.map → p-c9fe4f77.entry.js.map} +0 -0
- /package/dist/atomic/{p-00e5bb15.entry.js.map → p-ce41c447.entry.js.map} +0 -0
- /package/dist/atomic/{p-627e1265.entry.js.map → p-d50c96c2.entry.js.map} +0 -0
- /package/dist/atomic/{p-bc0d6d3d.entry.js.map → p-dee60597.entry.js.map} +0 -0
- /package/dist/atomic/{p-b2ff1330.entry.js.map → p-e1c99e2e.entry.js.map} +0 -0
- /package/dist/atomic/{p-6e6d686e.entry.js.map → p-e3af1bb4.entry.js.map} +0 -0
- /package/dist/atomic/{p-bf50b64d.entry.js.map → p-e6a7e7b2.entry.js.map} +0 -0
- /package/dist/atomic/{p-594488f2.entry.js.map → p-f0012580.entry.js.map} +0 -0
- /package/dist/atomic/{p-fea7bf3b.entry.js.map → p-f936f55e.entry.js.map} +0 -0
- /package/dist/atomic/{p-fbfe913d.entry.js.map → p-fb1a1e2e.entry.js.map} +0 -0
package/dist/atomic/components/components/search/atomic-search-interface/atomic-search-interface.js
ADDED
@@ -0,0 +1,495 @@
|
|
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 { buildSearchEngine, buildSearchStatus, buildUrlManager, EcommerceDefaultFieldsToInclude, VERSION as HEADLESS_VERSION, loadFieldActions, loadQueryActions, loadSearchConfigurationActions, } from '@coveo/headless';
|
8
|
+
import { provide } from '@lit/context';
|
9
|
+
import i18next from 'i18next';
|
10
|
+
import { css, html, LitElement } from 'lit';
|
11
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
12
|
+
import { when } from 'lit/directives/when.js';
|
13
|
+
import { InterfaceController, } from "../../common/interface/interface-controller";
|
14
|
+
import { MobileBreakpointController } from "../../common/layout/mobile-breakpoint-controller";
|
15
|
+
import { bindingsContext } from "../../context/bindings-context";
|
16
|
+
import { errorSelector, firstSearchExecutedSelector, noResultsSelector, } from "../atomic-search-layout/search-layout";
|
17
|
+
import { booleanConverter } from "../../../converters/boolean-converter";
|
18
|
+
import { errorGuard } from "../../../decorators/error-guard";
|
19
|
+
import { watch } from "../../../decorators/watch";
|
20
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
21
|
+
import { ChildrenUpdateCompleteMixin } from "../../../mixins/children-update-complete-mixin";
|
22
|
+
import { markParentAsReady } from "../../../utils/init-queue";
|
23
|
+
import { SafeStorage, StorageItems, } from "../../../utils/local-storage-utils";
|
24
|
+
import { getAnalyticsConfig } from './analytics-config';
|
25
|
+
import { createSearchStore } from './store';
|
26
|
+
import "../../common/atomic-modal/atomic-modal";
|
27
|
+
const FirstSearchExecutedFlag = 'firstSearchExecuted';
|
28
|
+
/**
|
29
|
+
* The `atomic-search-interface` component is the parent to all other atomic components in a search page. It handles the headless search engine and localization configurations.
|
30
|
+
*
|
31
|
+
* @slot default - The default slot where you can add child components to the interface.
|
32
|
+
*/
|
33
|
+
let AtomicSearchInterface = class AtomicSearchInterface extends ChildrenUpdateCompleteMixin(LitElement) {
|
34
|
+
constructor() {
|
35
|
+
super();
|
36
|
+
this.bindings = {};
|
37
|
+
this.relevanceInspectorIsOpen = false;
|
38
|
+
this.unsubscribeUrlManager = () => { };
|
39
|
+
this.unsubscribeSearchStatus = () => { };
|
40
|
+
this.initialized = false;
|
41
|
+
this.interfaceController = new InterfaceController(this, 'CoveoAtomic', HEADLESS_VERSION);
|
42
|
+
/**
|
43
|
+
* A list of non-default fields to include in the query results.
|
44
|
+
*
|
45
|
+
* Specify the property as an array using a JSON string representation:
|
46
|
+
* ```html
|
47
|
+
* <atomic-search-interface fields-to-include='["fieldA", "fieldB"]'></atomic-search-interface>
|
48
|
+
* ```
|
49
|
+
*/
|
50
|
+
this.fieldsToInclude = [];
|
51
|
+
// TODO - KIT-4994: Add disableAnalytics property that defaults to false.
|
52
|
+
// TODO - KIT-4994: Deprecate in favor of disableAnalytics property.
|
53
|
+
// TODO - (v4) KIT-4990: Remove.
|
54
|
+
/**
|
55
|
+
* Whether analytics should be enabled.
|
56
|
+
*/
|
57
|
+
this.analytics = true;
|
58
|
+
/**
|
59
|
+
* The search interface language.
|
60
|
+
*/
|
61
|
+
this.language = 'en';
|
62
|
+
// TODO - (v4) KIT-4823: Remove.
|
63
|
+
/**
|
64
|
+
* Whether the state should be reflected in the URL parameters.
|
65
|
+
* @deprecated - replaced by `disable-state-reflection-in-url` (this defaults to `true`, while the replacement defaults to `false`).
|
66
|
+
*/
|
67
|
+
this.reflectStateInUrl = true;
|
68
|
+
/**
|
69
|
+
* Whether to disable state reflection in the URL parameters.
|
70
|
+
*/
|
71
|
+
this.disableStateReflectionInUrl = false;
|
72
|
+
/**
|
73
|
+
* The CSS selector for the container where the interface will scroll back to.
|
74
|
+
*/
|
75
|
+
this.scrollContainer = 'atomic-search-interface';
|
76
|
+
/**
|
77
|
+
* The language assets path. By default, this will be a relative URL pointing to `./lang`.
|
78
|
+
*
|
79
|
+
* Example: "/mypublicpath/languages"
|
80
|
+
*
|
81
|
+
*/
|
82
|
+
this.languageAssetsPath = './lang';
|
83
|
+
/**
|
84
|
+
* The icon assets path. By default, this will be a relative URL pointing to `./assets`.
|
85
|
+
*
|
86
|
+
* Example: "/mypublicpath/icons"
|
87
|
+
*
|
88
|
+
*/
|
89
|
+
this.iconAssetsPath = './assets';
|
90
|
+
// TODO - (v4) KIT-5004: Remove.
|
91
|
+
/**
|
92
|
+
* Whether the relevance inspector shortcut should be enabled for this interface.
|
93
|
+
*
|
94
|
+
* The relevance inspector can be opened by holding the Alt key (Option on Mac) while over the interface, and performing a double click.
|
95
|
+
*
|
96
|
+
* The relevance inspector allows to troubleshoot and debug queries.
|
97
|
+
* @deprecated - replaced by `disable-relevance-inspector` (this defaults to `true`, while the replacement defaults to `false`).
|
98
|
+
*/
|
99
|
+
this.enableRelevanceInspector = true;
|
100
|
+
/**
|
101
|
+
* Whether to disable the relevance inspector shortcut for this interface.
|
102
|
+
*/
|
103
|
+
this.disableRelevanceInspector = false;
|
104
|
+
this.handleInitialization = (event) => {
|
105
|
+
this.interfaceController.onComponentInitializing(event);
|
106
|
+
};
|
107
|
+
this.handleRelevanceInspectorDoubleClick = (e) => {
|
108
|
+
if (e.altKey) {
|
109
|
+
this.relevanceInspectorIsOpen = !this.relevanceInspectorIsOpen;
|
110
|
+
}
|
111
|
+
};
|
112
|
+
this.onHashChange = () => {
|
113
|
+
this.urlManager.synchronize(this.fragment);
|
114
|
+
};
|
115
|
+
this.store = createSearchStore();
|
116
|
+
new MobileBreakpointController(this, this.store);
|
117
|
+
const { promise, resolve } = Promise.withResolvers();
|
118
|
+
this.i18Initialized = promise;
|
119
|
+
this.i18n = i18next.createInstance(undefined, resolve);
|
120
|
+
}
|
121
|
+
connectedCallback() {
|
122
|
+
super.connectedCallback();
|
123
|
+
this.store.setLoadingFlag(FirstSearchExecutedFlag);
|
124
|
+
this.initRelevanceInspector();
|
125
|
+
this.addEventListener('atomic/initializeComponent', this.handleInitialization);
|
126
|
+
this.addEventListener('atomic/scrollToTop', this.scrollToTop);
|
127
|
+
this.addEventListener('atomic/relevanceInspector/close', this.closeRelevanceInspector);
|
128
|
+
}
|
129
|
+
willUpdate(changedProperties) {
|
130
|
+
super.willUpdate(changedProperties);
|
131
|
+
if (changedProperties.has('fieldsToInclude')) {
|
132
|
+
this.initFieldsToInclude();
|
133
|
+
}
|
134
|
+
}
|
135
|
+
disconnectedCallback() {
|
136
|
+
super.disconnectedCallback();
|
137
|
+
if (typeof this.unsubscribeUrlManager === 'function') {
|
138
|
+
this.unsubscribeUrlManager();
|
139
|
+
}
|
140
|
+
if (typeof this.unsubscribeSearchStatus === 'function') {
|
141
|
+
this.unsubscribeSearchStatus();
|
142
|
+
}
|
143
|
+
window.removeEventListener('hashchange', this.onHashChange);
|
144
|
+
this.removeEventListener('atomic/initializeComponent', this.handleInitialization);
|
145
|
+
this.removeEventListener('atomic/scrollToTop', this.scrollToTop);
|
146
|
+
this.removeEventListener('atomic/relevanceInspector/close', this.closeRelevanceInspector);
|
147
|
+
this.removeEventListener('dblclick', this.handleRelevanceInspectorDoubleClick);
|
148
|
+
}
|
149
|
+
// TODO - (v4) KIT-4991: Make private.
|
150
|
+
scrollToTop() {
|
151
|
+
const scrollContainerElement = document.querySelector(this.scrollContainer);
|
152
|
+
if (!scrollContainerElement) {
|
153
|
+
this.bindings.engine.logger.warn(`Could not find the scroll container with the selector "${this.scrollContainer}". This will prevent UX interactions that require a scroll from working correctly. Please review the CSS selector in the scrollContainer option`);
|
154
|
+
return;
|
155
|
+
}
|
156
|
+
scrollContainerElement.scrollIntoView({ behavior: 'smooth' });
|
157
|
+
}
|
158
|
+
closeRelevanceInspector() {
|
159
|
+
this.relevanceInspectorIsOpen = false;
|
160
|
+
}
|
161
|
+
/**
|
162
|
+
* Initializes the connection with the headless search engine using options for `accessToken` (required), `organizationId` (required), `environment` (defaults to `prod`), and `renewAccessToken`.
|
163
|
+
*/
|
164
|
+
initialize(options) {
|
165
|
+
return this.internalInitialization(() => this.initEngine(options));
|
166
|
+
}
|
167
|
+
/**
|
168
|
+
* Initializes the interface using the provided [headless search engine](https://docs.coveo.com/en/headless/latest/reference/modules/Search.html, as opposed to the `initialize` method which internally builds a search engine instance.
|
169
|
+
* This bypasses the properties set on the component, such as analytics, searchHub, pipeline, language, timezone & logLevel.
|
170
|
+
*/
|
171
|
+
initializeWithSearchEngine(engine) {
|
172
|
+
if (this.pipeline && this.pipeline !== engine.state.pipeline) {
|
173
|
+
console.warn('Mismatch between search interface pipeline and engine pipeline. The engine pipeline will be used.');
|
174
|
+
}
|
175
|
+
if (this.searchHub && this.searchHub !== engine.state.searchHub) {
|
176
|
+
console.warn('Mismatch between search interface search hub and engine search hub. The engine search hub will be used.');
|
177
|
+
}
|
178
|
+
return this.internalInitialization(() => {
|
179
|
+
this.engine = engine;
|
180
|
+
});
|
181
|
+
}
|
182
|
+
/**
|
183
|
+
*
|
184
|
+
* Executes the first search and logs the interface load event to analytics, after initializing connection to the headless search engine.
|
185
|
+
*/
|
186
|
+
async executeFirstSearch() {
|
187
|
+
if (!this.interfaceController.engineIsCreated(this.engine)) {
|
188
|
+
return;
|
189
|
+
}
|
190
|
+
if (!this.initialized) {
|
191
|
+
console.error('You have to wait until the "initialize" promise is fulfilled before executing a search.', this);
|
192
|
+
return;
|
193
|
+
}
|
194
|
+
const safeStorage = new SafeStorage();
|
195
|
+
const standaloneSearchBoxData = safeStorage.getParsedJSON(StorageItems.STANDALONE_SEARCH_BOX_DATA, null);
|
196
|
+
if (!standaloneSearchBoxData) {
|
197
|
+
this.engine.executeFirstSearch();
|
198
|
+
return;
|
199
|
+
}
|
200
|
+
safeStorage.removeItem(StorageItems.STANDALONE_SEARCH_BOX_DATA);
|
201
|
+
const { updateQuery } = loadQueryActions(this.engine);
|
202
|
+
const { value, enableQuerySyntax, analytics } = standaloneSearchBoxData;
|
203
|
+
this.engine.dispatch(updateQuery({ q: value, enableQuerySyntax }));
|
204
|
+
this.engine.executeFirstSearchAfterStandaloneSearchBoxRedirect(analytics);
|
205
|
+
}
|
206
|
+
updateSearchConfiguration(updatedProp, newValue) {
|
207
|
+
if (!this.interfaceController.engineIsCreated(this.engine)) {
|
208
|
+
return;
|
209
|
+
}
|
210
|
+
if (this.engine.state[updatedProp] === newValue) {
|
211
|
+
return;
|
212
|
+
}
|
213
|
+
const { updateSearchConfiguration } = loadSearchConfigurationActions(this.engine);
|
214
|
+
this.engine.dispatch(updateSearchConfiguration({
|
215
|
+
[updatedProp]: newValue,
|
216
|
+
}));
|
217
|
+
}
|
218
|
+
updateSearchHub() {
|
219
|
+
this.updateSearchConfiguration('searchHub', this.searchHub ?? 'default');
|
220
|
+
}
|
221
|
+
updatePipeline() {
|
222
|
+
this.updateSearchConfiguration('pipeline', this.pipeline);
|
223
|
+
}
|
224
|
+
toggleAnalytics() {
|
225
|
+
this.interfaceController.onAnalyticsChange();
|
226
|
+
}
|
227
|
+
updateLanguage() {
|
228
|
+
if (!this.interfaceController.engineIsCreated(this.engine) ||
|
229
|
+
!this.language) {
|
230
|
+
return;
|
231
|
+
}
|
232
|
+
const { updateSearchConfiguration } = loadSearchConfigurationActions(this.engine);
|
233
|
+
this.engine.dispatch(updateSearchConfiguration({
|
234
|
+
locale: this.language,
|
235
|
+
}));
|
236
|
+
return this.interfaceController.onLanguageChange();
|
237
|
+
}
|
238
|
+
updateIconAssetsPath() {
|
239
|
+
this.store.state.iconAssetsPath = this.iconAssetsPath;
|
240
|
+
}
|
241
|
+
getBindings() {
|
242
|
+
return {
|
243
|
+
engine: this.engine,
|
244
|
+
i18n: this.i18n,
|
245
|
+
store: this.store,
|
246
|
+
interfaceElement: this,
|
247
|
+
createStyleElement: () => {
|
248
|
+
const styleTag = document.createElement('style');
|
249
|
+
return styleTag;
|
250
|
+
},
|
251
|
+
// TODO - KIT-4893: Remove once atomic-quickview-modal migration is complete.
|
252
|
+
createScriptElement: () => {
|
253
|
+
const scriptTag = document.createElement('script');
|
254
|
+
return scriptTag;
|
255
|
+
},
|
256
|
+
};
|
257
|
+
}
|
258
|
+
initFieldsToInclude() {
|
259
|
+
const fields = EcommerceDefaultFieldsToInclude.concat(this.fieldsToInclude);
|
260
|
+
this.store.addFieldsToInclude(fields);
|
261
|
+
}
|
262
|
+
registerFieldsToInclude() {
|
263
|
+
this.engine?.dispatch(loadFieldActions(this.engine).registerFieldsToInclude(this.store.state.fieldsToInclude));
|
264
|
+
}
|
265
|
+
initEngine(options) {
|
266
|
+
const searchConfig = this.getSearchConfiguration(options);
|
267
|
+
const analyticsConfig = getAnalyticsConfig(options, this.analytics, this.store);
|
268
|
+
try {
|
269
|
+
this.engine = buildSearchEngine({
|
270
|
+
configuration: {
|
271
|
+
...options,
|
272
|
+
search: searchConfig,
|
273
|
+
analytics: analyticsConfig,
|
274
|
+
},
|
275
|
+
loggerOptions: {
|
276
|
+
level: this.logLevel,
|
277
|
+
},
|
278
|
+
});
|
279
|
+
}
|
280
|
+
catch (error) {
|
281
|
+
this.error = error;
|
282
|
+
throw error;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
getSearchConfiguration(options) {
|
286
|
+
const searchConfigFromProps = {
|
287
|
+
searchHub: this.searchHub ?? 'default',
|
288
|
+
pipeline: this.pipeline,
|
289
|
+
locale: this.language,
|
290
|
+
timezone: this.timezone,
|
291
|
+
};
|
292
|
+
if (options.search) {
|
293
|
+
return {
|
294
|
+
...searchConfigFromProps,
|
295
|
+
...options.search,
|
296
|
+
};
|
297
|
+
}
|
298
|
+
return searchConfigFromProps;
|
299
|
+
}
|
300
|
+
get fragment() {
|
301
|
+
return window.location.hash.slice(1);
|
302
|
+
}
|
303
|
+
initUrlManager() {
|
304
|
+
if (this.disableStateReflectionInUrl) {
|
305
|
+
return;
|
306
|
+
}
|
307
|
+
if (!this.reflectStateInUrl) {
|
308
|
+
return;
|
309
|
+
}
|
310
|
+
this.urlManager = buildUrlManager(this.engine, {
|
311
|
+
initialState: { fragment: this.fragment },
|
312
|
+
});
|
313
|
+
this.unsubscribeUrlManager = this.urlManager.subscribe(() => this.updateHash());
|
314
|
+
window.addEventListener('hashchange', this.onHashChange);
|
315
|
+
}
|
316
|
+
initRelevanceInspector() {
|
317
|
+
if (this.enableRelevanceInspector && !this.disableRelevanceInspector) {
|
318
|
+
this.addEventListener('dblclick', this.handleRelevanceInspectorDoubleClick);
|
319
|
+
}
|
320
|
+
}
|
321
|
+
initSearchStatus() {
|
322
|
+
this.searchStatus = buildSearchStatus(this.engine);
|
323
|
+
this.unsubscribeSearchStatus = this.searchStatus.subscribe(() => {
|
324
|
+
const hasNoResultsAfterInitialSearch = !this.searchStatus.state.hasResults &&
|
325
|
+
this.searchStatus.state.firstSearchExecuted &&
|
326
|
+
!this.searchStatus.state.hasError;
|
327
|
+
this.classList.toggle(noResultsSelector, hasNoResultsAfterInitialSearch);
|
328
|
+
this.classList.toggle(errorSelector, this.searchStatus.state.hasError);
|
329
|
+
this.classList.toggle(firstSearchExecutedSelector, this.searchStatus.state.firstSearchExecuted);
|
330
|
+
if (this.searchStatus.state.firstSearchExecuted &&
|
331
|
+
this.store.hasLoadingFlag(FirstSearchExecutedFlag)) {
|
332
|
+
this.store.unsetLoadingFlag(FirstSearchExecutedFlag);
|
333
|
+
}
|
334
|
+
});
|
335
|
+
}
|
336
|
+
updateHash() {
|
337
|
+
const newFragment = this.urlManager.state.fragment;
|
338
|
+
if (!this.searchStatus.state.firstSearchExecuted) {
|
339
|
+
history.replaceState(null, document.title, `#${newFragment}`);
|
340
|
+
this.bindings.engine.logger.info(`History replaceState #${newFragment}`);
|
341
|
+
return;
|
342
|
+
}
|
343
|
+
history.pushState(null, document.title, `#${newFragment}`);
|
344
|
+
this.bindings.engine.logger.info(`History pushState #${newFragment}`);
|
345
|
+
}
|
346
|
+
async internalInitialization(initEngine) {
|
347
|
+
await Promise.all([
|
348
|
+
this.interfaceController.onInitialization(initEngine),
|
349
|
+
this.i18Initialized,
|
350
|
+
]);
|
351
|
+
this.updateLanguage();
|
352
|
+
this.bindings = this.getBindings();
|
353
|
+
markParentAsReady(this);
|
354
|
+
this.pipeline = this.engine.state.pipeline;
|
355
|
+
this.searchHub = this.engine.state.searchHub;
|
356
|
+
this.initSearchStatus();
|
357
|
+
await this.getUpdateComplete();
|
358
|
+
this.initUrlManager();
|
359
|
+
this.initialized = true;
|
360
|
+
}
|
361
|
+
render() {
|
362
|
+
return html `
|
363
|
+
${when(this.bindings?.engine &&
|
364
|
+
this.enableRelevanceInspector &&
|
365
|
+
!this.disableRelevanceInspector, () => html `<atomic-relevance-inspector
|
366
|
+
?open=${this.relevanceInspectorIsOpen}
|
367
|
+
.bindings=${this.bindings}
|
368
|
+
></atomic-relevance-inspector>`)}
|
369
|
+
<slot></slot>
|
370
|
+
`;
|
371
|
+
}
|
372
|
+
};
|
373
|
+
AtomicSearchInterface.styles = [
|
374
|
+
css`:host{height:inherit;width:inherit;&>slot{height:inherit}}`,
|
375
|
+
];
|
376
|
+
__decorate([
|
377
|
+
state(),
|
378
|
+
provide({ context: bindingsContext })
|
379
|
+
], AtomicSearchInterface.prototype, "bindings", void 0);
|
380
|
+
__decorate([
|
381
|
+
state()
|
382
|
+
], AtomicSearchInterface.prototype, "error", void 0);
|
383
|
+
__decorate([
|
384
|
+
state()
|
385
|
+
], AtomicSearchInterface.prototype, "relevanceInspectorIsOpen", void 0);
|
386
|
+
__decorate([
|
387
|
+
property({
|
388
|
+
type: Array,
|
389
|
+
attribute: 'fields-to-include',
|
390
|
+
converter: {
|
391
|
+
fromAttribute: (value) => {
|
392
|
+
if (!value)
|
393
|
+
return [];
|
394
|
+
try {
|
395
|
+
const parsed = JSON.parse(value);
|
396
|
+
return Array.isArray(parsed) ? parsed : [];
|
397
|
+
}
|
398
|
+
catch {
|
399
|
+
return [];
|
400
|
+
}
|
401
|
+
},
|
402
|
+
toAttribute: (value) => JSON.stringify(value),
|
403
|
+
},
|
404
|
+
})
|
405
|
+
], AtomicSearchInterface.prototype, "fieldsToInclude", void 0);
|
406
|
+
__decorate([
|
407
|
+
property({ type: String, reflect: true })
|
408
|
+
], AtomicSearchInterface.prototype, "pipeline", void 0);
|
409
|
+
__decorate([
|
410
|
+
property({ type: String, attribute: 'search-hub', reflect: true })
|
411
|
+
], AtomicSearchInterface.prototype, "searchHub", void 0);
|
412
|
+
__decorate([
|
413
|
+
property({
|
414
|
+
type: Boolean,
|
415
|
+
converter: booleanConverter,
|
416
|
+
reflect: true,
|
417
|
+
})
|
418
|
+
], AtomicSearchInterface.prototype, "analytics", void 0);
|
419
|
+
__decorate([
|
420
|
+
property({ type: String, reflect: true })
|
421
|
+
], AtomicSearchInterface.prototype, "timezone", void 0);
|
422
|
+
__decorate([
|
423
|
+
property({ type: String, attribute: 'log-level', reflect: true })
|
424
|
+
], AtomicSearchInterface.prototype, "logLevel", void 0);
|
425
|
+
__decorate([
|
426
|
+
property({ type: Object, attribute: false })
|
427
|
+
], AtomicSearchInterface.prototype, "i18n", void 0);
|
428
|
+
__decorate([
|
429
|
+
property({ type: String, reflect: true })
|
430
|
+
], AtomicSearchInterface.prototype, "language", void 0);
|
431
|
+
__decorate([
|
432
|
+
property({ type: Object, attribute: false })
|
433
|
+
], AtomicSearchInterface.prototype, "engine", void 0);
|
434
|
+
__decorate([
|
435
|
+
property({
|
436
|
+
type: Boolean,
|
437
|
+
attribute: 'reflect-state-in-url',
|
438
|
+
reflect: true,
|
439
|
+
converter: booleanConverter,
|
440
|
+
})
|
441
|
+
], AtomicSearchInterface.prototype, "reflectStateInUrl", void 0);
|
442
|
+
__decorate([
|
443
|
+
property({
|
444
|
+
type: Boolean,
|
445
|
+
attribute: 'disable-state-reflection-in-url',
|
446
|
+
reflect: true,
|
447
|
+
})
|
448
|
+
], AtomicSearchInterface.prototype, "disableStateReflectionInUrl", void 0);
|
449
|
+
__decorate([
|
450
|
+
property({ type: String, attribute: 'scroll-container', reflect: true })
|
451
|
+
], AtomicSearchInterface.prototype, "scrollContainer", void 0);
|
452
|
+
__decorate([
|
453
|
+
property({ type: String, attribute: 'language-assets-path', reflect: true })
|
454
|
+
], AtomicSearchInterface.prototype, "languageAssetsPath", void 0);
|
455
|
+
__decorate([
|
456
|
+
property({ type: String, attribute: 'icon-assets-path', reflect: true })
|
457
|
+
], AtomicSearchInterface.prototype, "iconAssetsPath", void 0);
|
458
|
+
__decorate([
|
459
|
+
property({
|
460
|
+
type: Boolean,
|
461
|
+
attribute: 'enable-relevance-inspector',
|
462
|
+
reflect: true,
|
463
|
+
converter: booleanConverter,
|
464
|
+
})
|
465
|
+
], AtomicSearchInterface.prototype, "enableRelevanceInspector", void 0);
|
466
|
+
__decorate([
|
467
|
+
property({
|
468
|
+
type: Boolean,
|
469
|
+
attribute: 'disable-relevance-inspector',
|
470
|
+
reflect: true,
|
471
|
+
})
|
472
|
+
], AtomicSearchInterface.prototype, "disableRelevanceInspector", void 0);
|
473
|
+
__decorate([
|
474
|
+
watch('searchHub')
|
475
|
+
], AtomicSearchInterface.prototype, "updateSearchHub", null);
|
476
|
+
__decorate([
|
477
|
+
watch('pipeline')
|
478
|
+
], AtomicSearchInterface.prototype, "updatePipeline", null);
|
479
|
+
__decorate([
|
480
|
+
watch('analytics')
|
481
|
+
], AtomicSearchInterface.prototype, "toggleAnalytics", null);
|
482
|
+
__decorate([
|
483
|
+
watch('language')
|
484
|
+
], AtomicSearchInterface.prototype, "updateLanguage", null);
|
485
|
+
__decorate([
|
486
|
+
watch('iconAssetsPath')
|
487
|
+
], AtomicSearchInterface.prototype, "updateIconAssetsPath", null);
|
488
|
+
__decorate([
|
489
|
+
errorGuard()
|
490
|
+
], AtomicSearchInterface.prototype, "render", null);
|
491
|
+
AtomicSearchInterface = __decorate([
|
492
|
+
customElement('atomic-search-interface'),
|
493
|
+
withTailwindStyles
|
494
|
+
], AtomicSearchInterface);
|
495
|
+
export { AtomicSearchInterface };
|
package/dist/atomic/components/components/search/atomic-search-layout/atomic-search-layout.js
CHANGED
@@ -4,12 +4,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
4
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
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
6
6
|
};
|
7
|
-
import { LitElement
|
7
|
+
import { LitElement } from 'lit';
|
8
8
|
import { customElement, property, state } from 'lit/decorators.js';
|
9
|
+
import { LayoutStylesController } from "../../common/layout/layout-styles-controller";
|
10
|
+
import { watch } from "../../../decorators/watch";
|
9
11
|
import { ChildrenUpdateCompleteMixin } from "../../../mixins/children-update-complete-mixin";
|
10
12
|
import { LightDomMixin } from "../../../mixins/light-dom";
|
11
|
-
import {
|
12
|
-
import { DEFAULT_MOBILE_BREAKPOINT } from '../../../utils/replace-breakpoint-utils';
|
13
|
+
import { DEFAULT_MOBILE_BREAKPOINT } from "../../../utils/replace-breakpoint-utils";
|
13
14
|
import styles from './atomic-search-layout.tw.css';
|
14
15
|
import { buildSearchLayout } from './search-layout';
|
15
16
|
/**
|
@@ -27,15 +28,22 @@ let AtomicSearchLayout = class AtomicSearchLayout extends LightDomMixin(Children
|
|
27
28
|
* E.g., 800px, 65rem.
|
28
29
|
*/
|
29
30
|
this.mobileBreakpoint = DEFAULT_MOBILE_BREAKPOINT;
|
30
|
-
|
31
|
-
async addStyles() {
|
32
|
-
await this.getUpdateComplete();
|
33
|
-
this.injectStyles(unsafeCSS(buildSearchLayout(this, this.mobileBreakpoint)));
|
31
|
+
this.layoutStylesController = new LayoutStylesController(this, buildSearchLayout, 'atomic-search-layout-');
|
34
32
|
}
|
35
33
|
connectedCallback() {
|
36
34
|
super.connectedCallback();
|
37
|
-
this.
|
38
|
-
|
35
|
+
this.emitBreakpointChangeEvent();
|
36
|
+
}
|
37
|
+
emitBreakpointChangeEvent() {
|
38
|
+
this.dispatchEvent(new CustomEvent('atomic-layout-breakpoint-change', {
|
39
|
+
detail: { breakpoint: this.mobileBreakpoint },
|
40
|
+
bubbles: true,
|
41
|
+
composed: true,
|
42
|
+
}));
|
43
|
+
}
|
44
|
+
onMobileBreakpointChange() {
|
45
|
+
this.layoutStylesController.updateStyles();
|
46
|
+
this.emitBreakpointChangeEvent();
|
39
47
|
}
|
40
48
|
};
|
41
49
|
AtomicSearchLayout.styles = [styles];
|
@@ -45,6 +53,9 @@ __decorate([
|
|
45
53
|
__decorate([
|
46
54
|
property({ type: String, reflect: true, attribute: 'mobile-breakpoint' })
|
47
55
|
], AtomicSearchLayout.prototype, "mobileBreakpoint", void 0);
|
56
|
+
__decorate([
|
57
|
+
watch('mobileBreakpoint')
|
58
|
+
], AtomicSearchLayout.prototype, "onMobileBreakpointChange", null);
|
48
59
|
AtomicSearchLayout = __decorate([
|
49
60
|
customElement('atomic-search-layout')
|
50
61
|
], AtomicSearchLayout);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
// Auto-generated file
|
2
|
-
export { AtomicPager } from './atomic-pager/atomic-pager.js';
|
3
2
|
export { AtomicQuerySummary } from './atomic-query-summary/atomic-query-summary.js';
|
4
3
|
export { AtomicResultsPerPage } from './atomic-results-per-page/atomic-results-per-page.js';
|
4
|
+
export { AtomicSearchInterface } from './atomic-search-interface/atomic-search-interface.js';
|
5
5
|
export { AtomicSearchLayout } from './atomic-search-layout/atomic-search-layout.js';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// Auto-generated file
|
2
2
|
export default {
|
3
|
-
'atomic-pager': async () => await import('./atomic-pager/atomic-pager.js'),
|
4
3
|
'atomic-query-summary': async () => await import('./atomic-query-summary/atomic-query-summary.js'),
|
5
4
|
'atomic-results-per-page': async () => await import('./atomic-results-per-page/atomic-results-per-page.js'),
|
5
|
+
'atomic-search-interface': async () => await import('./atomic-search-interface/atomic-search-interface.js'),
|
6
6
|
'atomic-search-layout': async () => await import('./atomic-search-layout/atomic-search-layout.js'),
|
7
7
|
};
|
@@ -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: '3afc8c27aad7fc2f3f280a8e5305dfdbc5291f74', 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: '9749444397b017e575f1cbc598ef8d4e440dc8b0', part: "label-start", class: labelClasses, htmlFor: `${this.filterState.facetId}_start` }, minText), h("input", { key: '94b1e3e64ec6ef14aff52ecf8e18c52bc987c7a7', 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: '89da4fb4747fb9d0cba5251dd3972677867301de', part: "label-end", class: labelClasses, htmlFor: `${this.filterState.facetId}_end` }, maxText), h("input", { key: '17813e5183986382376d765716ed60bff74de98c', 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: 'a98a7d0b356bb5c3eeec2512d96fd5bedc3605a6', 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", {
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { h } from '@stencil/core/internal/client';
|
2
|
+
import { B as Button } from './stencil-button.js';
|
3
|
+
import { R as RadioButton } from './stencil-radio-button.js';
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @deprecated use the lit equivalent
|
7
|
+
*/
|
8
|
+
const PagerPreviousButton = (props) => {
|
9
|
+
return (h(Button, { ...props, ariaLabel: props.i18n.t('previous'), style: "outline-primary", part: "previous-button", class: "flex min-h-10 min-w-10 items-center justify-center p-1" },
|
10
|
+
h("atomic-icon", { icon: props.icon, part: "previous-button-icon", class: "w-5 align-middle" })));
|
11
|
+
};
|
12
|
+
/**
|
13
|
+
* @deprecated use the lit equivalent
|
14
|
+
*/
|
15
|
+
const PagerNextButton = (props) => {
|
16
|
+
return (h(Button, { ...props, ariaLabel: props.i18n.t('next'), style: "outline-primary", part: "next-button", class: "flex min-h-10 min-w-10 items-center justify-center p-1" },
|
17
|
+
h("atomic-icon", { icon: props.icon, part: "next-button-icon", class: "w-5 align-middle" })));
|
18
|
+
};
|
19
|
+
/**
|
20
|
+
* @deprecated use the lit equivalent
|
21
|
+
*/
|
22
|
+
const PagerPageButton = (props) => {
|
23
|
+
return (h(RadioButton, { ...props, selectWhenFocused: false, key: props.page, style: "outline-neutral", checked: props.isSelected, ariaCurrent: props.isSelected ? 'page' : 'false', class: "btn-page focus-visible:bg-neutral-light min-h-10 min-w-10 p-1", part: `page-button${props.isSelected ? ' active-page-button' : ''}` }));
|
24
|
+
};
|
25
|
+
/**
|
26
|
+
* @deprecated use the lit equivalent
|
27
|
+
*/
|
28
|
+
const PagerPageButtons = (props, children) => {
|
29
|
+
return (h("div", { part: "page-buttons", role: "radiogroup", "aria-label": props.i18n.t('pagination'), class: "contents" }, ...children));
|
30
|
+
};
|
31
|
+
|
32
|
+
/**
|
33
|
+
* @deprecated use the lit equivalent
|
34
|
+
*/
|
35
|
+
const PagerNavigation = (props, children) => {
|
36
|
+
return (h("nav", { "aria-label": props.i18n.t('pagination') },
|
37
|
+
h("div", { part: "buttons", role: "toolbar", class: "flex flex-wrap gap-2" }, ...children)));
|
38
|
+
};
|
39
|
+
|
40
|
+
export { PagerNavigation as P, PagerPreviousButton as a, PagerPageButtons as b, PagerPageButton as c, PagerNextButton as d };
|
41
|
+
|
42
|
+
//# sourceMappingURL=stencil-pager-navigation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"stencil-pager-navigation.js","mappings":";;;;AAkCA;;;MAGa,mBAAmB,GAE5B,CAAC,KAAK;IACR,QACE,EAAC,MAAM,OACD,KAAK,EACT,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,EACnC,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAC,iBAAiB,EACtB,KAAK,EAAC,wDAAwD;QAE9D,mBACE,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,IAAI,EAAC,sBAAsB,EAC3B,KAAK,EAAC,kBAAkB,GACX,CACR,EACT;AACJ,EAAE;AAEF;;;MAGa,eAAe,GAExB,CAAC,KAAK;IACR,QACE,EAAC,MAAM,OACD,KAAK,EACT,SAAS,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,EAC/B,KAAK,EAAC,iBAAiB,EACvB,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,wDAAwD;QAE9D,mBACE,IAAI,EAAE,KAAK,CAAC,IAAI,EAChB,IAAI,EAAC,kBAAkB,EACvB,KAAK,EAAC,kBAAkB,GACX,CACR,EACT;AACJ,EAAE;AAEF;;;MAGa,eAAe,GAA8C,CACxE,KAAK;IAEL,QACE,EAAC,WAAW,OACN,KAAK,EACT,iBAAiB,EAAE,KAAK,EACxB,GAAG,EAAE,KAAK,CAAC,IAAI,EACf,KAAK,EAAC,iBAAiB,EACvB,OAAO,EAAE,KAAK,CAAC,UAAU,EACzB,WAAW,EAAE,KAAK,CAAC,UAAU,GAAG,MAAM,GAAG,OAAO,EAChD,KAAK,EAAC,+DAA+D,EACrE,IAAI,EAAE,cAAc,KAAK,CAAC,UAAU,GAAG,qBAAqB,GAAG,EAAE,EAAE,GACtD,EACf;AACJ,EAAE;AAEF;;;MAGa,gBAAgB,GAA+C,CAC1E,KAAK,EACL,QAAQ;IAER,QACE,WACE,IAAI,EAAC,cAAc,EACnB,IAAI,EAAC,YAAY,gBACL,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,EACtC,KAAK,EAAC,UAAU,OAEZ,QAAQ,CACR,EACN;AACJ;;AC3GA;;;MAGa,eAAe,GAA8C,CACxE,KAAK,EACL,QAAQ;IAER,QACE,yBAAiB,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC;QACzC,WAAK,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,sBAAsB,OACzD,QAAQ,CACR,CACF,EACN;AACJ;;;;","names":[],"sources":["src/components/common/pager/stencil-pager-buttons.tsx","src/components/common/pager/stencil-pager-navigation.tsx"],"sourcesContent":["import {FunctionalComponent, h} from '@stencil/core';\nimport {i18n} from 'i18next';\nimport {Button, StencilButtonProps} from '../stencil-button';\nimport {RadioButton, StencilRadioButtonProps} from '../stencil-radio-button';\n\n/**\n * @deprecated use the lit equivalent\n */\nexport interface PagerNavigationButtonProps\n extends Omit<StencilButtonProps, 'style' | 'part' | 'class'> {\n icon: string;\n i18n: i18n;\n}\n\n/**\n * @deprecated use the lit equivalent\n */\nexport interface PagerPageButtonProps\n extends Omit<\n StencilRadioButtonProps,\n 'part' | 'style' | 'checked' | 'ariaCurrent' | 'key' | 'class' | 'ref'\n > {\n page: number;\n isSelected: boolean;\n text: string;\n}\n\n/**\n * @deprecated use the lit equivalent\n */\nexport interface PagerPageButtonsProps {\n i18n: i18n;\n}\n\n/**\n * @deprecated use the lit equivalent\n */\nexport const PagerPreviousButton: FunctionalComponent<\n PagerNavigationButtonProps\n> = (props) => {\n return (\n <Button\n {...props}\n ariaLabel={props.i18n.t('previous')}\n style=\"outline-primary\"\n part=\"previous-button\"\n class=\"flex min-h-10 min-w-10 items-center justify-center p-1\"\n >\n <atomic-icon\n icon={props.icon}\n part=\"previous-button-icon\"\n class=\"w-5 align-middle\"\n ></atomic-icon>\n </Button>\n );\n};\n\n/**\n * @deprecated use the lit equivalent\n */\nexport const PagerNextButton: FunctionalComponent<\n PagerNavigationButtonProps\n> = (props) => {\n return (\n <Button\n {...props}\n ariaLabel={props.i18n.t('next')}\n style=\"outline-primary\"\n part=\"next-button\"\n class=\"flex min-h-10 min-w-10 items-center justify-center p-1\"\n >\n <atomic-icon\n icon={props.icon}\n part=\"next-button-icon\"\n class=\"w-5 align-middle\"\n ></atomic-icon>\n </Button>\n );\n};\n\n/**\n * @deprecated use the lit equivalent\n */\nexport const PagerPageButton: FunctionalComponent<PagerPageButtonProps> = (\n props\n) => {\n return (\n <RadioButton\n {...props}\n selectWhenFocused={false}\n key={props.page}\n style=\"outline-neutral\"\n checked={props.isSelected}\n ariaCurrent={props.isSelected ? 'page' : 'false'}\n class=\"btn-page focus-visible:bg-neutral-light min-h-10 min-w-10 p-1\"\n part={`page-button${props.isSelected ? ' active-page-button' : ''}`}\n ></RadioButton>\n );\n};\n\n/**\n * @deprecated use the lit equivalent\n */\nexport const PagerPageButtons: FunctionalComponent<PagerPageButtonsProps> = (\n props,\n children\n) => {\n return (\n <div\n part=\"page-buttons\"\n role=\"radiogroup\"\n aria-label={props.i18n.t('pagination')}\n class=\"contents\"\n >\n {...children}\n </div>\n );\n};\n","import {FunctionalComponent, h} from '@stencil/core';\nimport {i18n} from 'i18next';\n\n/**\n * @deprecated use the lit equivalent\n */\nexport interface PagerNavigationProps {\n i18n: i18n;\n}\n\n/**\n * @deprecated use the lit equivalent\n */\nexport const PagerNavigation: FunctionalComponent<PagerNavigationProps> = (\n props,\n children\n) => {\n return (\n <nav aria-label={props.i18n.t('pagination')}>\n <div part=\"buttons\" role=\"toolbar\" class=\"flex flex-wrap gap-2\">\n {...children}\n </div>\n </nav>\n );\n};\n"],"version":3}
|
@@ -25,7 +25,7 @@ const AtomicTabButton = /*@__PURE__*/ proxyCustomElement(class AtomicTabButton e
|
|
25
25
|
return this.active ? '' : 'text-neutral-dark hover:text-primary-light';
|
26
26
|
}
|
27
27
|
render() {
|
28
|
-
return (h(Host, { key: '
|
28
|
+
return (h(Host, { key: '664e3146ffed0c73ec4baa3dc016da5de5865da4', role: "listitem", class: `${this.activeTabClass}`, "aria-current": this.active ? 'true' : 'false', "aria-label": 'tab for ' + this.label, part: 'button-container' + (this.active ? '-active' : '') }, h(Button, { key: 'dc11bc1ebcaa478d87a544d143028d06d11d6089', class: `w-full truncate px-2 pb-1 text-xl sm:px-6 ${this.activeTabTextClass}`, part: 'tab-button' + (this.active ? '-active' : ''), onClick: this.select, style: "text-transparent" }, this.label)));
|
29
29
|
}
|
30
30
|
static get style() { return AtomicTabButtonStyle0; }
|
31
31
|
}, [0, "atomic-tab-button", {
|