@coveo/atomic 3.33.8-pre.bcd9d55cdd → 3.33.8-pre.bfb642d322
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 +2 -0
- package/dist/atomic/components/_index.js +2 -2
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/atomic-category-facet.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-insight-pager.js +2 -38
- package/dist/atomic/components/atomic-insight-pager.js.map +1 -1
- package/dist/atomic/components/atomic-insight-search-box.js +4 -3
- package/dist/atomic/components/atomic-insight-search-box.js.map +1 -1
- package/dist/atomic/components/atomic-numeric-facet.js +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-quickview-modal2.js +1 -1
- package/dist/atomic/components/atomic-quickview.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-table-placeholder2.js +1 -1
- package/dist/atomic/components/atomic-search-box-instant-results.js +2 -2
- package/dist/atomic/components/atomic-search-box-instant-results.js.map +1 -1
- package/dist/atomic/components/atomic-search-box-query-suggestions2.js +2 -2
- package/dist/atomic/components/atomic-search-box-query-suggestions2.js.map +1 -1
- package/dist/atomic/components/atomic-search-box-recent-queries2.js +2 -2
- package/dist/atomic/components/atomic-search-box-recent-queries2.js.map +1 -1
- package/dist/atomic/components/atomic-search-box.js +6 -5
- package/dist/atomic/components/atomic-search-box.js.map +1 -1
- package/dist/atomic/components/atomic-smart-snippet-feedback-modal2.js +2 -2
- package/dist/atomic/components/atomic-sort-dropdown.js +2 -2
- package/dist/atomic/components/atomic-sort-expression.js +1 -1
- package/dist/atomic/components/atomic-suggestion-renderer2.js +1 -1
- package/dist/atomic/components/atomic-suggestion-renderer2.js.map +1 -1
- package/dist/atomic/components/atomic-tab-manager.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.js +1 -1
- package/dist/atomic/components/components/common/suggestions/suggestion-manager.js +1 -1
- package/dist/atomic/components/components/common/suggestions/{suggestions-events.js → suggestions-common.js} +18 -16
- package/dist/atomic/components/components/search/index.js +0 -1
- package/dist/atomic/components/components/search/lazy-index.js +0 -1
- 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/stencil-query-suggestions.js.map +1 -1
- package/dist/atomic/components/stencil-suggestion-manager.js +2 -20
- package/dist/atomic/components/stencil-suggestion-manager.js.map +1 -1
- package/dist/atomic/components/{suggestions-events.js → suggestions-common.js} +20 -18
- package/dist/atomic/components/suggestions-common.js.map +1 -0
- package/dist/atomic/index.esm.js +1 -1
- package/dist/atomic/index.esm.js.map +1 -1
- package/dist/atomic/{p-e8d5e852.entry.js → p-021f01d6.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-29fd6768.js +2 -0
- package/dist/atomic/p-29fd6768.js.map +1 -0
- package/dist/atomic/{p-3af5c567.entry.js → p-330e6e7c.entry.js} +2 -2
- package/dist/atomic/{p-d0f47b33.entry.js → p-36e71b99.entry.js} +2 -2
- package/dist/atomic/p-36e71b99.entry.js.map +1 -0
- package/dist/atomic/{p-6f988841.entry.js → p-3c8d109e.entry.js} +2 -2
- package/dist/atomic/{p-fb7ad34b.entry.js → p-3d847e45.entry.js} +2 -2
- package/dist/atomic/p-3d847e45.entry.js.map +1 -0
- package/dist/atomic/{p-65373475.entry.js → p-4b3d253b.entry.js} +2 -2
- package/dist/atomic/{p-4c30ca3e.entry.js → p-52ba404c.entry.js} +2 -2
- package/dist/atomic/{p-45c4685e.entry.js → p-75e00690.entry.js} +2 -2
- package/dist/atomic/p-7601c3de.js +2 -0
- package/dist/atomic/p-7601c3de.js.map +1 -0
- package/dist/atomic/{p-8acb1466.entry.js → p-78b70622.entry.js} +2 -2
- package/dist/atomic/{p-4915faeb.entry.js → p-7a625c7e.entry.js} +2 -2
- package/dist/atomic/{p-f073a78d.entry.js → p-7b0b9e9b.entry.js} +2 -2
- package/dist/atomic/{p-a02b1209.entry.js → p-7b899b57.entry.js} +2 -2
- package/dist/atomic/{p-bf50b64d.entry.js → p-7dfcd6af.entry.js} +2 -2
- package/dist/atomic/{p-8305e028.entry.js → p-83e20cc3.entry.js} +2 -2
- package/dist/atomic/{p-5adbf098.entry.js → p-877d35b1.entry.js} +2 -2
- package/dist/atomic/{p-26a51a77.entry.js → p-8867af82.entry.js} +2 -2
- package/dist/atomic/p-8867af82.entry.js.map +1 -0
- package/dist/atomic/{p-9883415e.entry.js → p-93e29b24.entry.js} +2 -2
- package/dist/atomic/{p-1cc90c52.js → p-94b5f495.js} +2 -2
- package/dist/atomic/{p-a3f1a1f2.entry.js → p-a09b4db4.entry.js} +2 -2
- package/dist/atomic/{p-be1b98a6.entry.js → p-a760d9f9.entry.js} +2 -2
- package/dist/atomic/{p-4e9d1f9e.entry.js → p-aa2a81fd.entry.js} +2 -2
- package/dist/atomic/{p-fbfe913d.entry.js → p-aa4224ea.entry.js} +2 -2
- package/dist/atomic/p-aa4224ea.entry.js.map +1 -0
- package/dist/atomic/{p-7b9cebdc.entry.js → p-aa8e0616.entry.js} +2 -2
- package/dist/atomic/{p-00e5bb15.entry.js → p-ae060711.entry.js} +2 -2
- package/dist/atomic/p-af93b44c.js.map +1 -1
- package/dist/atomic/{p-71bb8125.entry.js → p-b28011e6.entry.js} +2 -2
- package/dist/atomic/{p-516b8165.entry.js → p-c1bf43cf.entry.js} +2 -2
- package/dist/atomic/p-c1bf43cf.entry.js.map +1 -0
- package/dist/atomic/{p-d11b2b24.entry.js → p-c49cfa0c.entry.js} +2 -2
- package/dist/atomic/{p-b4ad3036.entry.js → p-d00a12e9.entry.js} +2 -2
- package/dist/atomic/{p-757de797.entry.js → p-de066001.entry.js} +2 -2
- package/dist/atomic/{p-d2d22ab2.entry.js → p-f22bcb8c.entry.js} +2 -2
- package/dist/atomic/p-fa8b7c4c.entry.js +2 -0
- package/dist/atomic/p-fa8b7c4c.entry.js.map +1 -0
- package/dist/atomic/p-fcf3f7d7.entry.js +2 -0
- package/dist/atomic/p-fcf3f7d7.entry.js.map +1 -0
- package/dist/cjs/_index.cjs.js +2 -5
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-1bff463e.js → analytics-config-b8fab215.js} +2 -2
- package/dist/cjs/{analytics-config-1bff463e.js.map → analytics-config-b8fab215.js.map} +1 -1
- package/dist/cjs/atomic-category-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-facet.cjs.entry.js +1 -1
- 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-insight-interface.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-search-box.cjs.entry.js +5 -5
- package/dist/cjs/atomic-insight-search-box.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
- package/dist/cjs/atomic-pager.cjs.entry.js +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-quickview-modal.cjs.entry.js +1 -1
- package/dist/cjs/atomic-quickview.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-interface.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 +1 -1
- package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js +3 -3
- package/dist/cjs/atomic-search-box-instant-results.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +5 -5
- package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-search-box.cjs.entry.js +7 -7
- package/dist/cjs/atomic-search-box.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-search-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
- package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js +1 -1
- package/dist/cjs/atomic-suggestion-renderer.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic.cjs.js +1 -1
- package/dist/cjs/index-757bc886.js +4 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/stencil-pager-navigation-c20b8a95.js +48 -0
- package/dist/cjs/stencil-pager-navigation-c20b8a95.js.map +1 -0
- package/dist/cjs/stencil-query-suggestions-03268ecc.js.map +1 -1
- package/dist/cjs/{stencil-suggestion-manager-2cba6d69.js → stencil-suggestion-manager-c0878ef2.js} +4 -4
- package/dist/cjs/{stencil-suggestion-manager-2cba6d69.js.map → stencil-suggestion-manager-c0878ef2.js.map} +1 -1
- package/dist/cjs/{suggestions-events-63dd0640.js → suggestions-common-5097a362.js} +21 -17
- package/dist/cjs/suggestions-common-5097a362.js.map +1 -0
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_index.js +1 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-b8cffa6f.js → analytics-config-d0c5b639.js} +2 -2
- package/dist/esm/{analytics-config-b8cffa6f.js.map → analytics-config-d0c5b639.js.map} +1 -1
- package/dist/esm/atomic-category-facet.entry.js +1 -1
- package/dist/esm/atomic-facet.entry.js +1 -1
- 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-insight-interface.entry.js +1 -1
- package/dist/esm/atomic-insight-pager.entry.js +4 -38
- package/dist/esm/atomic-insight-pager.entry.js.map +1 -1
- package/dist/esm/atomic-insight-search-box.entry.js +4 -4
- package/dist/esm/atomic-insight-search-box.entry.js.map +1 -1
- package/dist/esm/atomic-numeric-facet.entry.js +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-quickview-modal.entry.js +1 -1
- package/dist/esm/atomic-quickview.entry.js +1 -1
- package/dist/esm/atomic-recs-interface.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 +1 -1
- package/dist/esm/atomic-search-box-instant-results.entry.js +2 -2
- package/dist/esm/atomic-search-box-instant-results.entry.js.map +1 -1
- package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +3 -3
- package/dist/esm/atomic-search-box-query-suggestions_2.entry.js.map +1 -1
- package/dist/esm/atomic-search-box.entry.js +6 -6
- package/dist/esm/atomic-search-box.entry.js.map +1 -1
- package/dist/esm/atomic-search-interface.entry.js +1 -1
- package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
- package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
- package/dist/esm/atomic-sort-expression.entry.js +1 -1
- package/dist/esm/atomic-suggestion-renderer.entry.js +1 -1
- package/dist/esm/atomic-suggestion-renderer.entry.js.map +1 -1
- package/dist/esm/atomic-tab-manager.entry.js +1 -1
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/index-3f35faca.js +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/stencil-pager-navigation-7261a834.js +42 -0
- package/dist/esm/stencil-pager-navigation-7261a834.js.map +1 -0
- package/dist/esm/stencil-query-suggestions-5d6a46d7.js.map +1 -1
- package/dist/esm/{stencil-suggestion-manager-376f83e8.js → stencil-suggestion-manager-486094dd.js} +2 -2
- package/dist/esm/{stencil-suggestion-manager-376f83e8.js.map → stencil-suggestion-manager-486094dd.js.map} +1 -1
- package/dist/esm/{suggestions-events-b7a6f007.js → suggestions-common-2b20db26.js} +20 -18
- package/dist/esm/suggestions-common-2b20db26.js.map +1 -0
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries.d.ts +1 -1
- package/dist/types/components/common/atomic-suggestion-renderer/atomic-suggestion-renderer.d.ts +1 -1
- package/dist/types/components/common/suggestions/instant-item.d.ts +1 -1
- package/dist/types/components/common/suggestions/query-suggestions.d.ts +1 -1
- package/dist/types/components/common/suggestions/recent-queries.d.ts +1 -1
- package/dist/types/components/common/suggestions/stencil-instant-item.d.ts +1 -1
- package/dist/types/components/common/suggestions/stencil-query-suggestions.d.ts +1 -1
- package/dist/types/components/common/suggestions/stencil-recent-queries.d.ts +1 -1
- package/dist/types/components/common/suggestions/stencil-suggestion-manager.d.ts +1 -1
- package/dist/types/components/common/suggestions/suggestion-manager.d.ts +1 -1
- package/dist/types/components/common/suggestions/{suggestions-types.d.ts → suggestions-common.d.ts} +16 -6
- 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 -1
- package/dist/types/components/search/index.d.ts +0 -1
- package/dist/types/components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results.d.ts +1 -1
- package/dist/types/components.d.ts +67 -2
- package/dist/types/decorators/types.d.ts +1 -1
- package/dist/types/index.d.ts +1 -3
- package/docs/atomic-docs.json +169 -3
- package/package.json +4 -4
- package/dist/atomic/components/components/common/suggestions/suggestions-types.js +0 -1
- package/dist/atomic/components/components/common/suggestions/suggestions-utils.js +0 -18
- package/dist/atomic/components/components/search/atomic-pager/atomic-pager.js +0 -172
- package/dist/atomic/components/suggestions-events.js.map +0 -1
- package/dist/atomic/p-0a051b8d.js +0 -2
- package/dist/atomic/p-0a051b8d.js.map +0 -1
- package/dist/atomic/p-16f4ce98.js +0 -2
- package/dist/atomic/p-16f4ce98.js.map +0 -1
- package/dist/atomic/p-26a51a77.entry.js.map +0 -1
- package/dist/atomic/p-4b7a19db.js +0 -2
- package/dist/atomic/p-4b7a19db.js.map +0 -1
- package/dist/atomic/p-516b8165.entry.js.map +0 -1
- package/dist/atomic/p-593903ec.entry.js +0 -2
- package/dist/atomic/p-593903ec.entry.js.map +0 -1
- package/dist/atomic/p-d0f47b33.entry.js.map +0 -1
- package/dist/atomic/p-fb7ad34b.entry.js.map +0 -1
- package/dist/atomic/p-fbfe913d.entry.js.map +0 -1
- package/dist/cjs/suggestions-events-63dd0640.js.map +0 -1
- package/dist/cjs/suggestions-utils-61000808.js +0 -25
- package/dist/cjs/suggestions-utils-61000808.js.map +0 -1
- package/dist/esm/suggestions-events-b7a6f007.js.map +0 -1
- package/dist/esm/suggestions-utils-591559a0.js +0 -22
- package/dist/esm/suggestions-utils-591559a0.js.map +0 -1
- package/dist/types/components/common/suggestions/suggestions-events.d.ts +0 -14
- package/dist/types/components/common/suggestions/suggestions-utils.d.ts +0 -15
- /package/dist/atomic/{p-e8d5e852.entry.js.map → p-021f01d6.entry.js.map} +0 -0
- /package/dist/atomic/{p-3af5c567.entry.js.map → p-330e6e7c.entry.js.map} +0 -0
- /package/dist/atomic/{p-6f988841.entry.js.map → p-3c8d109e.entry.js.map} +0 -0
- /package/dist/atomic/{p-65373475.entry.js.map → p-4b3d253b.entry.js.map} +0 -0
- /package/dist/atomic/{p-4c30ca3e.entry.js.map → p-52ba404c.entry.js.map} +0 -0
- /package/dist/atomic/{p-45c4685e.entry.js.map → p-75e00690.entry.js.map} +0 -0
- /package/dist/atomic/{p-8acb1466.entry.js.map → p-78b70622.entry.js.map} +0 -0
- /package/dist/atomic/{p-4915faeb.entry.js.map → p-7a625c7e.entry.js.map} +0 -0
- /package/dist/atomic/{p-f073a78d.entry.js.map → p-7b0b9e9b.entry.js.map} +0 -0
- /package/dist/atomic/{p-a02b1209.entry.js.map → p-7b899b57.entry.js.map} +0 -0
- /package/dist/atomic/{p-bf50b64d.entry.js.map → p-7dfcd6af.entry.js.map} +0 -0
- /package/dist/atomic/{p-8305e028.entry.js.map → p-83e20cc3.entry.js.map} +0 -0
- /package/dist/atomic/{p-5adbf098.entry.js.map → p-877d35b1.entry.js.map} +0 -0
- /package/dist/atomic/{p-9883415e.entry.js.map → p-93e29b24.entry.js.map} +0 -0
- /package/dist/atomic/{p-1cc90c52.js.map → p-94b5f495.js.map} +0 -0
- /package/dist/atomic/{p-a3f1a1f2.entry.js.map → p-a09b4db4.entry.js.map} +0 -0
- /package/dist/atomic/{p-be1b98a6.entry.js.map → p-a760d9f9.entry.js.map} +0 -0
- /package/dist/atomic/{p-4e9d1f9e.entry.js.map → p-aa2a81fd.entry.js.map} +0 -0
- /package/dist/atomic/{p-7b9cebdc.entry.js.map → p-aa8e0616.entry.js.map} +0 -0
- /package/dist/atomic/{p-00e5bb15.entry.js.map → p-ae060711.entry.js.map} +0 -0
- /package/dist/atomic/{p-71bb8125.entry.js.map → p-b28011e6.entry.js.map} +0 -0
- /package/dist/atomic/{p-d11b2b24.entry.js.map → p-c49cfa0c.entry.js.map} +0 -0
- /package/dist/atomic/{p-b4ad3036.entry.js.map → p-d00a12e9.entry.js.map} +0 -0
- /package/dist/atomic/{p-757de797.entry.js.map → p-de066001.entry.js.map} +0 -0
- /package/dist/atomic/{p-d2d22ab2.entry.js.map → p-f22bcb8c.entry.js.map} +0 -0
@@ -1,22 +1,6 @@
|
|
1
1
|
import { c as closest } from './dom-utils-f6086cd3.js';
|
2
2
|
import { b as buildCustomEvent } from './event-utils-8de63ec3.js';
|
3
3
|
|
4
|
-
/**
|
5
|
-
* Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.
|
6
|
-
*
|
7
|
-
* @param event Event sent from the registered query suggestions to the parent search box
|
8
|
-
* @param element Element on which to dispatch the event, which must be the child of a configured search box
|
9
|
-
* @param allowedSearchBoxElements Optional array of allowed search box element selectors
|
10
|
-
*
|
11
|
-
* @throws Error if the element is not a child of an allowed search box element
|
12
|
-
*/
|
13
|
-
const dispatchSearchBoxSuggestionsEvent = (event, element, allowedSearchBoxElements = searchBoxElements) => {
|
14
|
-
const interfaceElement = closest(element, searchBoxElements.join(', '));
|
15
|
-
if (!interfaceElement) {
|
16
|
-
throw new Error(`The "${element.nodeName.toLowerCase()}" component was not handled, as it is not a child of the following elements: ${allowedSearchBoxElements.join(', ')}`);
|
17
|
-
}
|
18
|
-
void dispatchSearchBoxSuggestionsEventEventually(interfaceElement, element, event);
|
19
|
-
};
|
20
4
|
const searchBoxElements = [
|
21
5
|
'atomic-search-box',
|
22
6
|
'atomic-insight-search-box',
|
@@ -34,7 +18,25 @@ const dispatchSearchBoxSuggestionsEventEventually = async (interfaceElement, ele
|
|
34
18
|
}
|
35
19
|
element.dispatchEvent(buildCustomEvent('atomic/searchBoxSuggestion/register', event));
|
36
20
|
};
|
21
|
+
/**
|
22
|
+
* Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.
|
23
|
+
* @param event Event sent from the registered query suggestions to the parent search box.
|
24
|
+
* @param element Element on which to dispatch the event, which must be the child of a configured search box.
|
25
|
+
*/
|
26
|
+
const dispatchSearchBoxSuggestionsEvent = (event, element, allowedSearchBoxElements = searchBoxElements) => {
|
27
|
+
const interfaceElement = closest(element, searchBoxElements.join(', '));
|
28
|
+
if (!interfaceElement) {
|
29
|
+
throw new Error(`The "${element.nodeName.toLowerCase()}" component was not handled, as it is not a child of the following elements: ${allowedSearchBoxElements.join(', ')}`);
|
30
|
+
}
|
31
|
+
void dispatchSearchBoxSuggestionsEventEventually(interfaceElement, element, event);
|
32
|
+
};
|
33
|
+
function elementHasNoQuery(el) {
|
34
|
+
return !el.query || el.query.trim() === '';
|
35
|
+
}
|
36
|
+
function elementHasQuery(el) {
|
37
|
+
return !!el.query && el.query.trim() !== '';
|
38
|
+
}
|
37
39
|
|
38
|
-
export { dispatchSearchBoxSuggestionsEvent as d };
|
40
|
+
export { elementHasNoQuery as a, dispatchSearchBoxSuggestionsEvent as d, elementHasQuery as e };
|
39
41
|
|
40
|
-
//# sourceMappingURL=suggestions-
|
42
|
+
//# sourceMappingURL=suggestions-common-2b20db26.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"file":"suggestions-common-2b20db26.js","mappings":";;;AA0FA,MAAM,iBAAiB,GAAG;IACxB,mBAAmB;IACnB,2BAA2B;IAC3B,4BAA4B;CACpB,CAAC;AAoDX,MAAM,mBAAmB,GAAG,CAAC,SAAkB,KAC7C,gBAAgB,IAAK,SAAwB;IAC5C,SAAwB,CAAC,cAAc,YAAY,OAAO,CAAC;AAE9D,MAAM,2CAA2C,GAAG,OAIlD,gBAAyB,EACzB,OAAoB,EACpB,KAA+D;IAE/D,MAAM,cAAc,CAAC,WAAW,CAAC,gBAAgB,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1E,IAAI,mBAAmB,CAAC,gBAAgB,CAAC,EAAE;QACzC,MAAM,gBAAgB,CAAC,cAAc,CAAC;KACvC;SAAM,IAAI,kBAAkB,IAAI,gBAAgB,EAAE;QACjD,MAAO,gBAAuC,CAAC,gBAAgB,EAAE,CAAC;KACnE;IACD,OAAO,CAAC,aAAa,CACnB,gBAAgB,CAAC,qCAAqC,EAAE,KAAK,CAAC,CAC/D,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;MAKa,iCAAiC,GAAG,CAI/C,KAA+D,EAC/D,OAAoB,EACpB,2BAA0E,iBAAiB;IAE3F,MAAM,gBAAgB,GAAG,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACxE,IAAI,CAAC,gBAAgB,EAAE;QACrB,MAAM,IAAI,KAAK,CACb,QAAQ,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,gFAAgF,wBAAwB,CAAC,IAAI,CACjJ,IAAI,CACL,EAAE,CACJ,CAAC;KACH;IACD,KAAK,2CAA2C,CAC9C,gBAAgB,EAChB,OAAO,EACP,KAAK,CACN,CAAC;AACJ,EAAE;SAEc,iBAAiB,CAAC,EAA8B;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AAC7C,CAAC;SAEe,eAAe,CAAC,EAA8B;IAC5D,OAAO,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC;AAC9C;;;;","names":[],"sources":["src/components/common/suggestions/suggestions-common.ts"],"sourcesContent":["import type {VNode} from '@stencil/core';\nimport type {HTMLStencilElement} from '@stencil/core/internal';\nimport type {LitElement} from 'lit';\nimport {closest} from '../../../utils/dom-utils';\nimport {buildCustomEvent} from '../../../utils/event-utils';\nimport type {AnyBindings} from '../interface/bindings';\n\n/**\n * Element which will be rendered in the list of suggestions.\n */\nexport interface SearchBoxSuggestionElement {\n /**\n * Stable identity which enables Stencil to reuse DOM elements for better performance.\n * The best way to pick a key is to use a string that uniquely identifies that list item among its siblings (often your data will already have IDs).\n */\n key: string;\n /**\n * Rendered content of the element.\n *\n * @remarks\n * The `VNode` type will be deprecated in v4 as we are detaching from Stencil.\n */\n content: Element | VNode;\n /**\n * Hook called when the selection is selected.\n * @param e DOM event.\n */\n onSelect?(e: Event): void;\n /**\n * The query associated with the suggestion which will replace the query in the search box if the suggestion is selected.\n */\n query?: string;\n /**\n * For improved accessibility, provide this property with additional information.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label\n */\n ariaLabel?: string;\n /**\n * Adds a specific shadow part attribute that can be selected with the CSS ::part pseudo-element.\n * https://developer.mozilla.org/en-US/docs/Web/CSS/::part\n */\n part?: string;\n /**\n * Hide the suggestion if it's the last in the list.\n */\n hideIfLast?: boolean;\n}\n\n/**\n * List of suggestions that will be displayed along other lists (e.g recent queries) when the search box's input is selected.\n */\nexport interface SearchBoxSuggestions {\n /**\n * The search box will sort the position of suggestions using this value. The lowest value being first.\n * By default, the DOM position will be used.\n */\n position: number;\n /**\n * Whether the suggestions should be listed in the right or left panel. By default, the suggestions are listed in the right panel.\n */\n panel?: 'left' | 'right';\n /**\n * Method that returns the list of elements which will be rendered in the list of suggestions.\n */\n renderItems(): SearchBoxSuggestionElement[];\n /**\n * Hook called when the user changes the search box's input value. This can lead to all the query suggestions being updated.\n */\n onInput?(): Promise<unknown>;\n /**\n * Hook called when the suggested query changes as a user traverses through the list of suggestions.\n * This is used for instant results, which are rendered based on the current suggested query.\n * @param q The new suggested query.\n */\n onSuggestedQueryChange?(q: string): Promise<unknown>;\n}\n\n/**\n * Event sent from the registered query suggestions to the parent search box.\n */\nexport type SearchBoxSuggestionsEvent<\n SearchBoxController,\n Bindings = AnyBindings,\n> = (\n /**\n * The bindings passed from the search box to the suggestions.\n */\n bindings: SearchBoxSuggestionsBindings<SearchBoxController, Bindings>\n) => SearchBoxSuggestions;\n\nconst searchBoxElements = [\n 'atomic-search-box',\n 'atomic-insight-search-box',\n 'atomic-commerce-search-box',\n] as const;\n\n/**\n * The bindings passed from the search box to the suggestions.\n */\nexport type SearchBoxSuggestionsBindings<\n SearchBoxController,\n Bindings = AnyBindings,\n> = Bindings & {\n /**\n * The unique id of the search box.\n */\n id: string;\n /**\n * Whether the search box is [standalone](https://docs.coveo.com/en/atomic/latest/usage/ssb/).\n */\n isStandalone: boolean;\n /**\n * The search box headless controller.\n */\n searchBoxController: SearchBoxController;\n /**\n * The number of queries to display when the user interacts with the search box.\n */\n numberOfQueries: number;\n /**\n * Whether to clear all active query filters when the end user submits a new query from the search box.\n */\n clearFilters: boolean;\n /**\n * Retrieves the suggested query, meaning the query that would be sent if the search is executed.\n * The suggested query changes as a user traverses through the list of suggestions.\n */\n suggestedQuery(): string;\n /**\n * Removes the current suggestions.\n */\n clearSuggestions(): void;\n /**\n * Triggers update & retrieval of all suggestions.\n */\n triggerSuggestions(): void;\n /**\n * Retrieves the current suggestions.\n */\n getSuggestions(): SearchBoxSuggestions[];\n /**\n * Retrieves the current suggestions elements.\n */\n getSuggestionElements(): SearchBoxSuggestionElement[];\n};\n\nconst isLitElementLoosely = (candidate: unknown): candidate is LitElement =>\n 'updateComplete' in (candidate as LitElement) &&\n (candidate as LitElement).updateComplete instanceof Promise;\n\nconst dispatchSearchBoxSuggestionsEventEventually = async <\n SearchBoxController,\n Bindings = AnyBindings,\n>(\n interfaceElement: Element,\n element: HTMLElement,\n event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>\n) => {\n await customElements.whenDefined(interfaceElement.nodeName.toLowerCase());\n if (isLitElementLoosely(interfaceElement)) {\n await interfaceElement.updateComplete;\n } else if ('componentOnReady' in interfaceElement) {\n await (interfaceElement as HTMLStencilElement).componentOnReady();\n }\n element.dispatchEvent(\n buildCustomEvent('atomic/searchBoxSuggestion/register', event)\n );\n};\n\n/**\n * Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.\n * @param event Event sent from the registered query suggestions to the parent search box.\n * @param element Element on which to dispatch the event, which must be the child of a configured search box.\n */\nexport const dispatchSearchBoxSuggestionsEvent = <\n SearchBoxController,\n Bindings = AnyBindings,\n>(\n event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>,\n element: HTMLElement,\n allowedSearchBoxElements: readonly (typeof searchBoxElements)[number][] = searchBoxElements\n) => {\n const interfaceElement = closest(element, searchBoxElements.join(', '));\n if (!interfaceElement) {\n throw new Error(\n `The \"${element.nodeName.toLowerCase()}\" component was not handled, as it is not a child of the following elements: ${allowedSearchBoxElements.join(\n ', '\n )}`\n );\n }\n void dispatchSearchBoxSuggestionsEventEventually(\n interfaceElement,\n element,\n event\n );\n};\n\nexport function elementHasNoQuery(el: SearchBoxSuggestionElement) {\n return !el.query || el.query.trim() === '';\n}\n\nexport function elementHasQuery(el: SearchBoxSuggestionElement) {\n return !!el.query && el.query.trim() !== '';\n}\n"],"version":3}
|
package/dist/esm/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const headlessVersion = '3.31.
|
2
|
-
export const atomicVersion = '3.33.8-pre.
|
1
|
+
export const headlessVersion = '3.31.0';
|
2
|
+
export const atomicVersion = '3.33.8-pre.bfb642d322';
|
@@ -2,7 +2,7 @@ import { type Product, type SearchBox } from '@coveo/headless/commerce';
|
|
2
2
|
import { LitElement } from 'lit';
|
3
3
|
import type { ItemRenderingFunction } from "../../common/item-list/item-list-common";
|
4
4
|
import type { ItemDisplayDensity, ItemDisplayImageSize } from "../../common/layout/display-options";
|
5
|
-
import type
|
5
|
+
import { type SearchBoxSuggestions, type SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-common";
|
6
6
|
import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
|
7
7
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
8
8
|
export type AriaLabelGenerator = (bindings: CommerceBindings, product: Product) => string | undefined;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { type SearchBox } from '@coveo/headless/commerce';
|
2
2
|
import { LitElement } from 'lit';
|
3
|
-
import type
|
3
|
+
import { type SearchBoxSuggestions, type SearchBoxSuggestionsBindings } from "../../common/suggestions/suggestions-common";
|
4
4
|
import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
|
5
5
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
6
6
|
/**
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { type SearchBox } from '@coveo/headless/commerce';
|
2
2
|
import { LitElement } from 'lit';
|
3
3
|
import type { SearchBoxSuggestionsComponent } from "../../../decorators/types";
|
4
|
-
import type
|
4
|
+
import { type SearchBoxSuggestions, type SearchBoxSuggestionsBindings } from '../../common/suggestions/suggestions-common';
|
5
5
|
import type { CommerceBindings } from '../atomic-commerce-interface/atomic-commerce-interface';
|
6
6
|
/**
|
7
7
|
* The `atomic-commerce-search-box-recent-queries` component can be added as a child of an `atomic-commerce-search-box` component, allowing for the configuration of recent query suggestions.
|
package/dist/types/components/common/atomic-suggestion-renderer/atomic-suggestion-renderer.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { i18n } from 'i18next';
|
2
|
-
import { SearchBoxSuggestionElement } from '../suggestions/suggestions-
|
2
|
+
import { SearchBoxSuggestionElement } from '../suggestions/suggestions-common';
|
3
3
|
/**
|
4
4
|
* The `atomic-suggestion-renderer` component is used to render individual suggestions. It was created to isolate
|
5
5
|
* the rendering logic of the 'content' property of the `SearchBoxSuggestionElement` interface. This property can be Stencil
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { i18n } from 'i18next';
|
2
|
-
import type { SearchBoxSuggestionElement } from './suggestions-
|
2
|
+
import type { SearchBoxSuggestionElement } from './suggestions-common';
|
3
3
|
export declare const getPartialInstantItemElement: (i18n: i18n, itemTitle: string, itemUniqueId: string) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part">;
|
4
4
|
export declare const getPartialInstantItemShowAllElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "key" | "part" | "ariaLabel">;
|
5
5
|
interface InstantItemShowAllButtonProps {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { i18n } from 'i18next';
|
2
|
-
import type { SearchBoxSuggestionElement } from './suggestions-
|
2
|
+
import type { SearchBoxSuggestionElement } from './suggestions-common';
|
3
3
|
export declare const getPartialRecentQueryElement: (value: string, i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "query" | "part">;
|
4
4
|
export declare const getPartialRecentQueryClearElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part" | "hideIfLast">;
|
5
5
|
export interface RecentQueriesContainerProps {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
2
2
|
import { i18n } from 'i18next';
|
3
|
-
import { SearchBoxSuggestionElement } from './suggestions-
|
3
|
+
import { SearchBoxSuggestionElement } from './suggestions-common';
|
4
4
|
export declare const getPartialInstantItemElement: (i18n: i18n, itemTitle: string, itemUniqueId: string) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part">;
|
5
5
|
export declare const getPartialInstantItemShowAllElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "key" | "part" | "ariaLabel">;
|
6
6
|
interface InstantItemShowAllButtonProps {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
2
2
|
import { i18n } from 'i18next';
|
3
|
-
import { SearchBoxSuggestionElement } from './suggestions-
|
3
|
+
import { SearchBoxSuggestionElement } from './suggestions-common.js';
|
4
4
|
interface Suggestion {
|
5
5
|
highlightedValue: string;
|
6
6
|
rawValue: string;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FunctionalComponent } from '../../../stencil-public-runtime';
|
2
2
|
import { i18n } from 'i18next';
|
3
|
-
import { SearchBoxSuggestionElement } from './suggestions-
|
3
|
+
import { SearchBoxSuggestionElement } from './suggestions-common';
|
4
4
|
export declare const getPartialRecentQueryElement: (value: string, i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "query" | "part">;
|
5
5
|
export declare const getPartialRecentQueryClearElement: (i18n: i18n) => Pick<SearchBoxSuggestionElement, "ariaLabel" | "key" | "part" | "hideIfLast">;
|
6
6
|
export declare const RecentQueriesContainer: FunctionalComponent;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type
|
1
|
+
import { type SearchBoxSuggestionElement, type SearchBoxSuggestionsBindings, type SearchBoxSuggestionsEvent } from './suggestions-common';
|
2
2
|
/**
|
3
3
|
* List of suggestions that will be displayed along other lists (e.g recent queries) when the search box's input is selected.
|
4
4
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { LitElement } from 'lit';
|
2
|
-
import type
|
2
|
+
import { type SearchBoxSuggestionElement, type SearchBoxSuggestionsBindings, type SearchBoxSuggestionsEvent } from './suggestions-common';
|
3
3
|
/**
|
4
4
|
* List of suggestions that will be displayed along other lists (e.g recent queries) when the search box's input is selected.
|
5
5
|
*/
|
package/dist/types/components/common/suggestions/{suggestions-types.d.ts → suggestions-common.d.ts}
RENAMED
@@ -68,6 +68,15 @@ export interface SearchBoxSuggestions {
|
|
68
68
|
*/
|
69
69
|
onSuggestedQueryChange?(q: string): Promise<unknown>;
|
70
70
|
}
|
71
|
+
/**
|
72
|
+
* Event sent from the registered query suggestions to the parent search box.
|
73
|
+
*/
|
74
|
+
export type SearchBoxSuggestionsEvent<SearchBoxController, Bindings = AnyBindings> = (
|
75
|
+
/**
|
76
|
+
* The bindings passed from the search box to the suggestions.
|
77
|
+
*/
|
78
|
+
bindings: SearchBoxSuggestionsBindings<SearchBoxController, Bindings>) => SearchBoxSuggestions;
|
79
|
+
declare const searchBoxElements: readonly ["atomic-search-box", "atomic-insight-search-box", "atomic-commerce-search-box"];
|
71
80
|
/**
|
72
81
|
* The bindings passed from the search box to the suggestions.
|
73
82
|
*/
|
@@ -115,10 +124,11 @@ export type SearchBoxSuggestionsBindings<SearchBoxController, Bindings = AnyBind
|
|
115
124
|
getSuggestionElements(): SearchBoxSuggestionElement[];
|
116
125
|
};
|
117
126
|
/**
|
118
|
-
*
|
127
|
+
* Dispatches an event which retrieves the `SearchBoxSuggestionsBindings` on a configured parent search box.
|
128
|
+
* @param event Event sent from the registered query suggestions to the parent search box.
|
129
|
+
* @param element Element on which to dispatch the event, which must be the child of a configured search box.
|
119
130
|
*/
|
120
|
-
export
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
bindings: SearchBoxSuggestionsBindings<SearchBoxController, Bindings>) => SearchBoxSuggestions;
|
131
|
+
export declare const dispatchSearchBoxSuggestionsEvent: <SearchBoxController, Bindings = AnyBindings>(event: SearchBoxSuggestionsEvent<SearchBoxController, Bindings>, element: HTMLElement, allowedSearchBoxElements?: readonly (typeof searchBoxElements)[number][]) => void;
|
132
|
+
export declare function elementHasNoQuery(el: SearchBoxSuggestionElement): boolean;
|
133
|
+
export declare function elementHasQuery(el: SearchBoxSuggestionElement): boolean;
|
134
|
+
export {};
|
@@ -1,8 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import
|
4
|
-
import type { Bindings } from '../atomic-search-interface/interfaces';
|
5
|
-
declare const AtomicPager_base: typeof LitElement;
|
1
|
+
import { Pager, PagerState, SearchStatus, SearchStatusState } from '@coveo/headless';
|
2
|
+
import { InitializableComponent } from '../../../utils/initialization-utils';
|
3
|
+
import { Bindings } from '../atomic-search-interface/atomic-search-interface';
|
6
4
|
/**
|
7
5
|
* The `atomic-pager` provides buttons that allow the end user to navigate through the different result pages.
|
8
6
|
*
|
@@ -14,17 +12,16 @@ declare const AtomicPager_base: typeof LitElement;
|
|
14
12
|
* @part next-button - The next button.
|
15
13
|
* @part previous-button-icon - Icon of the previous button.
|
16
14
|
* @part next-button-icon - Icon of the next button.
|
17
|
-
*
|
18
|
-
* @event atomic/scrollToTop - Emitted when the user clicks the next or previous button, or a page button.
|
19
15
|
*/
|
20
|
-
export declare class AtomicPager
|
16
|
+
export declare class AtomicPager implements InitializableComponent {
|
21
17
|
bindings: Bindings;
|
22
|
-
error: Error;
|
23
|
-
private isAppLoaded;
|
24
18
|
pager: Pager;
|
25
19
|
searchStatus: SearchStatus;
|
26
20
|
pagerState: PagerState;
|
27
21
|
searchStatusState: SearchStatusState;
|
22
|
+
error: Error;
|
23
|
+
private isAppLoaded;
|
24
|
+
private scrollToTopEvent;
|
28
25
|
/**
|
29
26
|
* Specifies how many page buttons to display in the pager.
|
30
27
|
*/
|
@@ -47,13 +44,6 @@ export declare class AtomicPager extends AtomicPager_base implements Initializab
|
|
47
44
|
nextButtonIcon: string;
|
48
45
|
private radioGroupName;
|
49
46
|
initialize(): void;
|
50
|
-
|
51
|
-
render(): import("lit-html").TemplateResult<1>;
|
47
|
+
render(): any;
|
52
48
|
private focusOnFirstResultAndScrollToTop;
|
53
49
|
}
|
54
|
-
declare global {
|
55
|
-
interface HTMLElementTagNameMap {
|
56
|
-
'atomic-pager': AtomicPager;
|
57
|
-
}
|
58
|
-
}
|
59
|
-
export {};
|
@@ -2,7 +2,7 @@ import { SearchBox, StandaloneSearchBox } from '@coveo/headless';
|
|
2
2
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
3
3
|
import { InitializableComponent } from '../../../utils/initialization-utils';
|
4
4
|
import { RedirectionPayload } from '../../common/search-box/redirection-payload';
|
5
|
-
import
|
5
|
+
import { SearchBoxSuggestionsEvent } from '../../common/suggestions/suggestions-common';
|
6
6
|
import { Bindings } from '../atomic-search-interface/atomic-search-interface';
|
7
7
|
/**
|
8
8
|
* The `atomic-search-box` component creates a search box with built-in support for suggestions.
|
@@ -1,4 +1,3 @@
|
|
1
|
-
export { AtomicPager } from './atomic-pager/atomic-pager.js';
|
2
1
|
export { AtomicQuerySummary } from './atomic-query-summary/atomic-query-summary.js';
|
3
2
|
export { AtomicResultsPerPage } from './atomic-results-per-page/atomic-results-per-page.js';
|
4
3
|
export { AtomicSearchLayout } from './atomic-search-layout/atomic-search-layout.js';
|
@@ -2,7 +2,7 @@ import { Result, SearchBox } from '@coveo/headless';
|
|
2
2
|
import { InitializableComponent } from '../../../../utils/initialization-utils';
|
3
3
|
import { ItemRenderingFunction } from '../../../common/item-list/stencil-item-list-common';
|
4
4
|
import { ItemDisplayDensity, ItemDisplayImageSize } from '../../../common/layout/display-options';
|
5
|
-
import
|
5
|
+
import { SearchBoxSuggestions, SearchBoxSuggestionsBindings } from '../../../common/suggestions/suggestions-common';
|
6
6
|
import { Bindings } from '../../atomic-search-interface/atomic-search-interface';
|
7
7
|
export type AriaLabelGenerator = (bindings: Bindings, result: Result) => string | undefined;
|
8
8
|
/**
|
@@ -26,7 +26,7 @@ import { RedirectionPayload } from "./components/common/search-box/redirection-p
|
|
26
26
|
import { AriaLabelGenerator } from "./components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results";
|
27
27
|
import { InitializationOptions } from "./components/search/atomic-search-interface/atomic-search-interface";
|
28
28
|
import { StandaloneSearchBoxData } from "./utils/local-storage-utils";
|
29
|
-
import { SearchBoxSuggestionElement } from "./components/common/suggestions/suggestions-
|
29
|
+
import { SearchBoxSuggestionElement } from "./components/common/suggestions/suggestions-common";
|
30
30
|
export { AutomaticFacet, CategoryFacetSortCriterion, DateFilterRange, DateRangeRequest, FacetResultsMustMatch, FacetSortCriterion, FoldedResult, GeneratedAnswer, GeneratedAnswerCitation, InlineLink, InteractiveCitation, InteractiveResult, LogLevel, NumericFilter, NumericFilterState, RangeFacetRangeAlgorithm, RangeFacetSortCriterion, RelativeDateUnit, Result, ResultTemplate, ResultTemplateCondition, SearchEngine, SearchStatus } from "@coveo/headless";
|
31
31
|
export { AtomicInterface } from "./utils/initialization-utils";
|
32
32
|
export { AnyBindings } from "./components/common/interface/bindings";
|
@@ -48,7 +48,7 @@ export { RedirectionPayload } from "./components/common/search-box/redirection-p
|
|
48
48
|
export { AriaLabelGenerator } from "./components/search/search-box-suggestions/atomic-search-box-instant-results/atomic-search-box-instant-results";
|
49
49
|
export { InitializationOptions } from "./components/search/atomic-search-interface/atomic-search-interface";
|
50
50
|
export { StandaloneSearchBoxData } from "./utils/local-storage-utils";
|
51
|
-
export { SearchBoxSuggestionElement } from "./components/common/suggestions/suggestions-
|
51
|
+
export { SearchBoxSuggestionElement } from "./components/common/suggestions/suggestions-common";
|
52
52
|
export namespace Components {
|
53
53
|
/**
|
54
54
|
* An automatic facet is a special type of facet generated by the automatic facets feature.
|
@@ -1427,6 +1427,23 @@ export namespace Components {
|
|
1427
1427
|
*/
|
1428
1428
|
"start": number;
|
1429
1429
|
}
|
1430
|
+
/**
|
1431
|
+
* The `atomic-pager` provides buttons that allow the end user to navigate through the different result pages.
|
1432
|
+
*/
|
1433
|
+
interface AtomicPager {
|
1434
|
+
/**
|
1435
|
+
* The SVG icon to use to display the Next button. - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location. - Use a value that starts with `assets://`, to display an icon from the Atomic package. - Use a stringified SVG to display it directly.
|
1436
|
+
*/
|
1437
|
+
"nextButtonIcon": string;
|
1438
|
+
/**
|
1439
|
+
* Specifies how many page buttons to display in the pager.
|
1440
|
+
*/
|
1441
|
+
"numberOfPages": number;
|
1442
|
+
/**
|
1443
|
+
* The SVG icon to use to display the Previous button. - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location. - Use a value that starts with `assets://`, to display an icon from the Atomic package. - Use a stringified SVG to display it directly.
|
1444
|
+
*/
|
1445
|
+
"previousButtonIcon": string;
|
1446
|
+
}
|
1430
1447
|
/**
|
1431
1448
|
* The `atomic-popover` component displays any facet as a popover menu.
|
1432
1449
|
*/
|
@@ -2922,6 +2939,10 @@ export interface AtomicIpxModalCustomEvent<T> extends CustomEvent<T> {
|
|
2922
2939
|
detail: T;
|
2923
2940
|
target: HTMLAtomicIpxModalElement;
|
2924
2941
|
}
|
2942
|
+
export interface AtomicPagerCustomEvent<T> extends CustomEvent<T> {
|
2943
|
+
detail: T;
|
2944
|
+
target: HTMLAtomicPagerElement;
|
2945
|
+
}
|
2925
2946
|
export interface AtomicQuickviewModalCustomEvent<T> extends CustomEvent<T> {
|
2926
2947
|
detail: T;
|
2927
2948
|
target: HTMLAtomicQuickviewModalElement;
|
@@ -3598,6 +3619,26 @@ declare global {
|
|
3598
3619
|
prototype: HTMLAtomicNumericRangeElement;
|
3599
3620
|
new (): HTMLAtomicNumericRangeElement;
|
3600
3621
|
};
|
3622
|
+
interface HTMLAtomicPagerElementEventMap {
|
3623
|
+
"atomic/scrollToTop": any;
|
3624
|
+
}
|
3625
|
+
/**
|
3626
|
+
* The `atomic-pager` provides buttons that allow the end user to navigate through the different result pages.
|
3627
|
+
*/
|
3628
|
+
interface HTMLAtomicPagerElement extends Components.AtomicPager, HTMLStencilElement {
|
3629
|
+
addEventListener<K extends keyof HTMLAtomicPagerElementEventMap>(type: K, listener: (this: HTMLAtomicPagerElement, ev: AtomicPagerCustomEvent<HTMLAtomicPagerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
3630
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
3631
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
3632
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
3633
|
+
removeEventListener<K extends keyof HTMLAtomicPagerElementEventMap>(type: K, listener: (this: HTMLAtomicPagerElement, ev: AtomicPagerCustomEvent<HTMLAtomicPagerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
3634
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
3635
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
3636
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
3637
|
+
}
|
3638
|
+
var HTMLAtomicPagerElement: {
|
3639
|
+
prototype: HTMLAtomicPagerElement;
|
3640
|
+
new (): HTMLAtomicPagerElement;
|
3641
|
+
};
|
3601
3642
|
/**
|
3602
3643
|
* The `atomic-popover` component displays any facet as a popover menu.
|
3603
3644
|
*/
|
@@ -4527,6 +4568,7 @@ declare global {
|
|
4527
4568
|
"atomic-notifications": HTMLAtomicNotificationsElement;
|
4528
4569
|
"atomic-numeric-facet": HTMLAtomicNumericFacetElement;
|
4529
4570
|
"atomic-numeric-range": HTMLAtomicNumericRangeElement;
|
4571
|
+
"atomic-pager": HTMLAtomicPagerElement;
|
4530
4572
|
"atomic-popover": HTMLAtomicPopoverElement;
|
4531
4573
|
"atomic-query-error": HTMLAtomicQueryErrorElement;
|
4532
4574
|
"atomic-quickview": HTMLAtomicQuickviewElement;
|
@@ -5918,6 +5960,24 @@ declare namespace LocalJSX {
|
|
5918
5960
|
*/
|
5919
5961
|
"start": number;
|
5920
5962
|
}
|
5963
|
+
/**
|
5964
|
+
* The `atomic-pager` provides buttons that allow the end user to navigate through the different result pages.
|
5965
|
+
*/
|
5966
|
+
interface AtomicPager {
|
5967
|
+
/**
|
5968
|
+
* The SVG icon to use to display the Next button. - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location. - Use a value that starts with `assets://`, to display an icon from the Atomic package. - Use a stringified SVG to display it directly.
|
5969
|
+
*/
|
5970
|
+
"nextButtonIcon"?: string;
|
5971
|
+
/**
|
5972
|
+
* Specifies how many page buttons to display in the pager.
|
5973
|
+
*/
|
5974
|
+
"numberOfPages"?: number;
|
5975
|
+
"onAtomic/scrollToTop"?: (event: AtomicPagerCustomEvent<any>) => void;
|
5976
|
+
/**
|
5977
|
+
* The SVG icon to use to display the Previous button. - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location. - Use a value that starts with `assets://`, to display an icon from the Atomic package. - Use a stringified SVG to display it directly.
|
5978
|
+
*/
|
5979
|
+
"previousButtonIcon"?: string;
|
5980
|
+
}
|
5921
5981
|
/**
|
5922
5982
|
* The `atomic-popover` component displays any facet as a popover menu.
|
5923
5983
|
*/
|
@@ -7380,6 +7440,7 @@ declare namespace LocalJSX {
|
|
7380
7440
|
"atomic-notifications": AtomicNotifications;
|
7381
7441
|
"atomic-numeric-facet": AtomicNumericFacet;
|
7382
7442
|
"atomic-numeric-range": AtomicNumericRange;
|
7443
|
+
"atomic-pager": AtomicPager;
|
7383
7444
|
"atomic-popover": AtomicPopover;
|
7384
7445
|
"atomic-query-error": AtomicQueryError;
|
7385
7446
|
"atomic-quickview": AtomicQuickview;
|
@@ -7645,6 +7706,10 @@ declare module "@stencil/core" {
|
|
7645
7706
|
* The `atomic-numeric-range` component defines the range of an `atomic-numeric-facet`, and therefore must be defined within an `atomic-numeric-facet` component.
|
7646
7707
|
*/
|
7647
7708
|
"atomic-numeric-range": LocalJSX.AtomicNumericRange & JSXBase.HTMLAttributes<HTMLAtomicNumericRangeElement>;
|
7709
|
+
/**
|
7710
|
+
* The `atomic-pager` provides buttons that allow the end user to navigate through the different result pages.
|
7711
|
+
*/
|
7712
|
+
"atomic-pager": LocalJSX.AtomicPager & JSXBase.HTMLAttributes<HTMLAtomicPagerElement>;
|
7648
7713
|
/**
|
7649
7714
|
* The `atomic-popover` component displays any facet as a popover menu.
|
7650
7715
|
*/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import type { LitElement, TemplateResult } from 'lit';
|
2
2
|
import type { TemplateResultType } from 'lit/directive-helpers.js';
|
3
3
|
import type { AnyBindings } from '../components/common/interface/bindings';
|
4
|
-
import type { SearchBoxSuggestions } from '../components/common/suggestions/suggestions-
|
4
|
+
import type { SearchBoxSuggestions } from '../components/common/suggestions/suggestions-common';
|
5
5
|
export type GenericRender<T extends TemplateResultType> = TemplateResult<T>;
|
6
6
|
export type RenderGuardDecorator<Component, T extends TemplateResultType, Descriptor = TypedPropertyDescriptor<() => GenericRender<T>>> = (target: Component, propertyKey: 'render', descriptor: Descriptor) => Descriptor;
|
7
7
|
/**
|
package/dist/types/index.d.ts
CHANGED
@@ -5,9 +5,7 @@ export { SelectChildProductEventArgs } from './components/commerce/atomic-produc
|
|
5
5
|
export { productContext } from './components/commerce/product-template-component-utils/stencil-product-template-decorators';
|
6
6
|
export { PopoverChildFacet } from './components/common/facets/popover/popover-type';
|
7
7
|
export { RedirectionPayload } from './components/common/search-box/redirection-payload';
|
8
|
-
export { dispatchSearchBoxSuggestionsEvent } from './components/common/suggestions/suggestions-
|
9
|
-
export type { SearchBoxSuggestionElement, SearchBoxSuggestions, SearchBoxSuggestionsBindings, SearchBoxSuggestionsEvent, } from './components/common/suggestions/suggestions-types';
|
10
|
-
export { elementHasNoQuery, elementHasQuery, } from './components/common/suggestions/suggestions-utils';
|
8
|
+
export { dispatchSearchBoxSuggestionsEvent, SearchBoxSuggestionElement, SearchBoxSuggestions, SearchBoxSuggestionsBindings, SearchBoxSuggestionsEvent, } from './components/common/suggestions/suggestions-common';
|
11
9
|
export { RecsBindings } from './components/recommendations/atomic-recs-interface/atomic-recs-interface';
|
12
10
|
export { Bindings } from './components/search/atomic-search-interface/atomic-search-interface';
|
13
11
|
export { resultContext } from './components/search/result-template-components/result-template-decorators';
|