@coveo/atomic 3.33.9-pre.f81b55a35b → 3.34.0-pre.00dc0c9faa
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +0 -20
- package/dist/atomic/components/_index.js +0 -10
- 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-focus-trap2.js +1 -1
- package/dist/atomic/components/atomic-folded-result-list.js +4 -40
- package/dist/atomic/components/atomic-folded-result-list.js.map +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-folded-result-list.js +4 -40
- package/dist/atomic/components/atomic-insight-folded-result-list.js.map +1 -1
- package/dist/atomic/components/atomic-insight-pager.js +38 -2
- package/dist/atomic/components/atomic-insight-pager.js.map +1 -1
- package/dist/atomic/components/atomic-insight-result-action-bar.js +5 -1
- package/dist/atomic/components/atomic-insight-result-action-bar.js.map +1 -1
- package/dist/atomic/components/atomic-insight-result-children.js +4 -40
- package/dist/atomic/components/atomic-insight-result-children.js.map +1 -1
- package/dist/atomic/components/atomic-insight-result-list.js +4 -40
- package/dist/atomic/components/atomic-insight-result-list.js.map +1 -1
- package/dist/atomic/components/atomic-ipx-recs-list.js +4 -40
- package/dist/atomic/components/atomic-ipx-recs-list.js.map +1 -1
- package/dist/atomic/components/atomic-numeric-facet.js +1 -1
- 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-recs-list.js +4 -40
- package/dist/atomic/components/atomic-recs-list.js.map +1 -1
- package/dist/atomic/components/atomic-refine-modal2.js +2 -2
- package/dist/atomic/components/atomic-refine-toggle.js +1 -1
- package/dist/atomic/components/atomic-relevance-inspector.js +2 -2
- package/dist/atomic/components/atomic-result-children.js +5 -41
- package/dist/atomic/components/atomic-result-children.js.map +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 +5 -41
- package/dist/atomic/components/atomic-result-list.js.map +1 -1
- package/dist/atomic/components/atomic-result-placeholder2.js +1 -37
- package/dist/atomic/components/atomic-result-placeholder2.js.map +1 -1
- package/dist/atomic/components/atomic-result-table-placeholder2.js +1 -1
- package/dist/atomic/components/atomic-search-box-query-suggestions2.js +1 -1
- package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
- package/dist/atomic/components/atomic-search-box.js +3 -3
- package/dist/atomic/components/atomic-smart-snippet-answer2.js +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-tab-manager.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.js +24 -12
- package/dist/atomic/components/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.js +4 -4
- package/dist/atomic/components/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.js +2 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-facet/atomic-commerce-facet.js +6 -6
- package/dist/atomic/components/components/commerce/atomic-commerce-load-more-products/atomic-commerce-load-more-products.js +3 -3
- package/dist/atomic/components/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-pager/atomic-commerce-pager.js +26 -12
- package/dist/atomic/components/components/commerce/atomic-commerce-refine-modal/atomic-commerce-refine-modal.js +2 -1
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.js +4 -4
- package/dist/atomic/components/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.js +8 -5
- package/dist/atomic/components/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.js +3 -3
- package/dist/atomic/components/components/commerce/atomic-product/atomic-product.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-section-children/atomic-product-section-children.js +1 -1
- package/dist/atomic/components/components/commerce/atomic-product-template/atomic-product-template.js +1 -1
- package/dist/atomic/components/components/common/index.js +0 -1
- package/dist/atomic/components/components/common/lazy-index.js +0 -1
- package/dist/atomic/components/components/common/query-correction/trigger-correction.js +1 -1
- package/dist/atomic/components/components/common/refine-modal/modal.js +1 -1
- package/dist/atomic/components/components/common/suggestions/instant-item.js +6 -6
- package/dist/atomic/components/components/search/atomic-pager/atomic-pager.js +188 -0
- package/dist/atomic/components/components/search/atomic-result-section-actions/atomic-result-section-actions.js +25 -0
- package/dist/atomic/components/components/search/atomic-result-section-badges/atomic-result-section-badges.js +24 -0
- package/dist/atomic/components/components/search/atomic-result-section-bottom-metadata/atomic-result-section-bottom-metadata.js +25 -0
- package/dist/atomic/components/components/search/atomic-result-section-children/atomic-result-section-children.js +21 -0
- package/dist/atomic/components/components/search/atomic-result-section-emphasized/atomic-result-section-emphasized.js +23 -0
- package/dist/atomic/components/components/search/atomic-result-section-excerpt/atomic-result-section-excerpt.js +24 -0
- package/dist/atomic/components/components/search/atomic-result-section-title/atomic-result-section-title.js +24 -0
- package/dist/atomic/components/components/search/atomic-result-section-title-metadata/atomic-result-section-title-metadata.js +24 -0
- package/dist/atomic/components/components/search/atomic-result-section-visual/atomic-result-section-visual.js +29 -0
- package/dist/atomic/components/components/search/index.js +10 -0
- package/dist/atomic/components/components/search/lazy-index.js +10 -0
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/props-utils.js +1 -1
- package/dist/atomic/components/result-template-common.js +1 -1
- package/dist/atomic/components/sections2.js +1 -1
- package/dist/atomic/components/store.js +1 -1
- package/dist/atomic/components/utils.js +1 -1
- package/dist/atomic/lang/cs.json +1 -1
- package/dist/atomic/lang/da.json +1 -1
- package/dist/atomic/lang/de.json +1 -1
- package/dist/atomic/lang/dev.json +1 -1
- package/dist/atomic/lang/el.json +1 -1
- package/dist/atomic/lang/en.json +1 -1
- package/dist/atomic/lang/es.json +1 -1
- package/dist/atomic/lang/fi.json +1 -1
- package/dist/atomic/lang/fr.json +1 -1
- package/dist/atomic/lang/hu.json +1 -1
- package/dist/atomic/lang/id.json +1 -1
- package/dist/atomic/lang/it.json +1 -1
- package/dist/atomic/lang/ja.json +1 -1
- package/dist/atomic/lang/ko.json +1 -1
- package/dist/atomic/lang/nl.json +1 -1
- package/dist/atomic/lang/no.json +1 -1
- package/dist/atomic/lang/pl.json +1 -1
- package/dist/atomic/lang/pt-BR.json +1 -1
- package/dist/atomic/lang/pt.json +1 -1
- package/dist/atomic/lang/ru.json +1 -1
- package/dist/atomic/lang/sv.json +1 -1
- package/dist/atomic/lang/th.json +1 -1
- package/dist/atomic/lang/tr.json +1 -1
- package/dist/atomic/lang/zh-CN.json +1 -1
- package/dist/atomic/lang/zh-TW.json +1 -1
- package/dist/atomic/lang/zh.json +1 -1
- package/dist/atomic/{p-4ae14373.entry.js → p-0bdd730f.entry.js} +2 -2
- package/dist/atomic/{p-74822069.entry.js → p-13391e75.entry.js} +2 -2
- package/dist/atomic/{p-8103bad3.entry.js → p-16f6c1f3.entry.js} +2 -2
- package/dist/atomic/{p-e3edbf14.entry.js → p-20764605.entry.js} +2 -2
- package/dist/atomic/{p-20019654.entry.js → p-3a7a1a00.entry.js} +2 -2
- package/dist/atomic/{p-f073a78d.entry.js → p-3cbab25b.entry.js} +2 -2
- package/dist/atomic/{p-6abd5b2b.entry.js → p-3e9db2b5.entry.js} +2 -2
- package/dist/atomic/{p-dfc385b7.entry.js → p-4601eb93.entry.js} +2 -2
- package/dist/atomic/{p-44ef70b6.entry.js → p-475124d2.entry.js} +2 -2
- package/dist/atomic/{p-2aab9f25.entry.js → p-57020985.entry.js} +2 -2
- package/dist/atomic/{p-0402ee69.entry.js → p-59f043a0.entry.js} +2 -2
- package/dist/atomic/{p-8acb1466.entry.js → p-60800b2f.entry.js} +2 -2
- package/dist/atomic/{p-3e38aea6.entry.js → p-7c3c5f07.entry.js} +2 -2
- package/dist/atomic/{p-aa616502.entry.js → p-7ec6dd3e.entry.js} +2 -2
- package/dist/atomic/{p-4b9a166f.entry.js → p-88af4470.entry.js} +2 -2
- package/dist/atomic/p-8de99e50.entry.js +2 -0
- package/dist/atomic/p-8de99e50.entry.js.map +1 -0
- package/dist/atomic/{p-62afcf79.entry.js → p-8fdef8a3.entry.js} +2 -2
- package/dist/atomic/{p-b80923d6.entry.js → p-9337e1eb.entry.js} +2 -2
- package/dist/atomic/{p-30411cd4.entry.js → p-97ce3384.entry.js} +2 -2
- package/dist/atomic/{p-b4ad3036.entry.js → p-a5714bc4.entry.js} +2 -2
- package/dist/atomic/p-a71f04f4.entry.js +2 -0
- package/dist/atomic/p-a71f04f4.entry.js.map +1 -0
- package/dist/atomic/{p-4828eef2.js → p-aa99e45e.js} +2 -2
- package/dist/atomic/{p-45c76d98.entry.js → p-bd3542d2.entry.js} +2 -2
- package/dist/atomic/{p-df1d50c8.entry.js → p-dbcef3a9.entry.js} +2 -2
- package/dist/atomic/{p-d8028950.entry.js → p-de687bed.entry.js} +2 -2
- package/dist/atomic/{p-516b8165.entry.js → p-df4397ab.entry.js} +2 -2
- package/dist/atomic/{p-d2d22ab2.entry.js → p-e398835b.entry.js} +2 -2
- package/dist/atomic/p-fdcd187d.entry.js +2 -0
- package/dist/atomic/p-fdcd187d.entry.js.map +1 -0
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-94ab3487.js → analytics-config-5b0864ae.js} +2 -2
- package/dist/cjs/{analytics-config-94ab3487.js.map → analytics-config-5b0864ae.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 +41 -7
- package/dist/cjs/atomic-insight-pager.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-result-action-bar.cjs.entry.js +6 -3
- package/dist/cjs/atomic-insight-result-action-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +1 -1
- 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 → atomic-result-placeholder_2.cjs.entry.js} +2 -70
- package/dist/cjs/atomic-result-placeholder_2.cjs.entry.js.map +1 -0
- package/dist/cjs/atomic-search-box-query-suggestions_2.cjs.entry.js +2 -2
- package/dist/cjs/atomic-search-box.cjs.entry.js +3 -3
- package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
- package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic.cjs.js +1 -1
- package/dist/cjs/index-757bc886.js +2 -18
- package/dist/cjs/version.cjs.js +1 -1
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-480b22a1.js → analytics-config-64be937d.js} +2 -2
- package/dist/esm/{analytics-config-480b22a1.js.map → analytics-config-64be937d.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 +38 -4
- package/dist/esm/atomic-insight-pager.entry.js.map +1 -1
- package/dist/esm/atomic-insight-result-action-bar.entry.js +5 -2
- package/dist/esm/atomic-insight-result-action-bar.entry.js.map +1 -1
- package/dist/esm/atomic-numeric-facet.entry.js +1 -1
- 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 → atomic-result-placeholder_2.entry.js} +4 -66
- package/dist/esm/atomic-result-placeholder_2.entry.js.map +1 -0
- package/dist/esm/atomic-search-box-query-suggestions_2.entry.js +2 -2
- package/dist/esm/atomic-search-box.entry.js +3 -3
- package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +2 -2
- package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
- package/dist/esm/atomic-sort-expression.entry.js +1 -1
- package/dist/esm/atomic-tab-manager.entry.js +1 -1
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/index-3f35faca.js +2 -18
- package/dist/esm/version.js +1 -1
- package/dist/types/components/commerce/atomic-commerce-breadbox/atomic-commerce-breadbox.d.ts +2 -1
- package/dist/types/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.d.ts +4 -4
- package/dist/types/components/commerce/atomic-commerce-did-you-mean/atomic-commerce-did-you-mean.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-facet/atomic-commerce-facet.d.ts +6 -6
- package/dist/types/components/commerce/atomic-commerce-load-more-products/atomic-commerce-load-more-products.d.ts +3 -3
- package/dist/types/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-pager/atomic-commerce-pager.d.ts +6 -4
- package/dist/types/components/commerce/atomic-commerce-refine-modal/atomic-commerce-refine-modal.d.ts +1 -1
- package/dist/types/components/commerce/atomic-commerce-search-box/atomic-commerce-search-box.d.ts +4 -4
- package/dist/types/components/commerce/atomic-commerce-search-box-instant-products/atomic-commerce-search-box-instant-products.d.ts +2 -2
- package/dist/types/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.d.ts +3 -3
- package/dist/types/components/commerce/atomic-product/atomic-product.d.ts +1 -1
- package/dist/types/components/commerce/atomic-product-section-children/atomic-product-section-children.d.ts +1 -1
- package/dist/types/components/commerce/atomic-product-template/atomic-product-template.d.ts +7 -7
- package/dist/types/components/common/index.d.ts +0 -1
- package/dist/types/components/common/layout/sections.d.ts +1 -1
- package/dist/types/components/common/query-correction/trigger-correction.d.ts +2 -0
- package/dist/types/components/common/refine-modal/modal.d.ts +2 -0
- package/dist/types/components/common/suggestions/instant-item.d.ts +6 -3
- package/dist/types/components/search/atomic-pager/atomic-pager.d.ts +28 -16
- package/dist/types/components/search/{result-template-components/atomic-result-sections → atomic-result-section-actions}/atomic-result-section-actions.d.ts +9 -3
- package/dist/types/components/search/{result-template-components/atomic-result-sections → atomic-result-section-badges}/atomic-result-section-badges.d.ts +9 -3
- package/dist/types/components/search/{result-template-components/atomic-result-sections → atomic-result-section-bottom-metadata}/atomic-result-section-bottom-metadata.d.ts +9 -3
- package/dist/types/components/search/atomic-result-section-children/atomic-result-section-children.d.ts +16 -0
- package/dist/types/components/search/atomic-result-section-emphasized/atomic-result-section-emphasized.d.ts +18 -0
- package/dist/types/components/search/{result-template-components/atomic-result-sections → atomic-result-section-excerpt}/atomic-result-section-excerpt.d.ts +9 -3
- package/dist/types/components/search/{result-template-components/atomic-result-sections → atomic-result-section-title}/atomic-result-section-title.d.ts +9 -3
- package/dist/types/components/search/atomic-result-section-title-metadata/atomic-result-section-title-metadata.d.ts +19 -0
- package/dist/types/components/search/atomic-result-section-visual/atomic-result-section-visual.d.ts +26 -0
- package/dist/types/components/search/index.d.ts +10 -0
- package/dist/types/components.d.ts +0 -478
- package/docs/atomic-docs.json +1 -441
- package/package.json +1 -1
- package/dist/atomic/components/atomic-pager.d.ts +0 -11
- package/dist/atomic/components/atomic-pager.js +0 -134
- package/dist/atomic/components/atomic-pager.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-actions.d.ts +0 -11
- package/dist/atomic/components/atomic-result-section-actions.js +0 -8
- package/dist/atomic/components/atomic-result-section-actions.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-actions2.js +0 -30
- package/dist/atomic/components/atomic-result-section-actions2.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-badges.d.ts +0 -11
- package/dist/atomic/components/atomic-result-section-badges.js +0 -8
- package/dist/atomic/components/atomic-result-section-badges.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-badges2.js +0 -30
- package/dist/atomic/components/atomic-result-section-badges2.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-bottom-metadata.d.ts +0 -11
- package/dist/atomic/components/atomic-result-section-bottom-metadata.js +0 -8
- package/dist/atomic/components/atomic-result-section-bottom-metadata.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-bottom-metadata2.js +0 -30
- package/dist/atomic/components/atomic-result-section-bottom-metadata2.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-children.d.ts +0 -11
- package/dist/atomic/components/atomic-result-section-children.js +0 -33
- package/dist/atomic/components/atomic-result-section-children.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-emphasized.d.ts +0 -11
- package/dist/atomic/components/atomic-result-section-emphasized.js +0 -33
- package/dist/atomic/components/atomic-result-section-emphasized.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-excerpt.d.ts +0 -11
- package/dist/atomic/components/atomic-result-section-excerpt.js +0 -8
- package/dist/atomic/components/atomic-result-section-excerpt.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-excerpt2.js +0 -30
- package/dist/atomic/components/atomic-result-section-excerpt2.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-title-metadata.d.ts +0 -11
- package/dist/atomic/components/atomic-result-section-title-metadata.js +0 -33
- package/dist/atomic/components/atomic-result-section-title-metadata.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-title.d.ts +0 -11
- package/dist/atomic/components/atomic-result-section-title.js +0 -8
- package/dist/atomic/components/atomic-result-section-title.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-title2.js +0 -30
- package/dist/atomic/components/atomic-result-section-title2.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-visual.d.ts +0 -11
- package/dist/atomic/components/atomic-result-section-visual.js +0 -8
- package/dist/atomic/components/atomic-result-section-visual.js.map +0 -1
- package/dist/atomic/components/atomic-result-section-visual2.js +0 -33
- package/dist/atomic/components/atomic-result-section-visual2.js.map +0 -1
- package/dist/atomic/components/components/common/validate-props-controller/validate-props-controller.js +0 -31
- package/dist/atomic/components/item-section-utils.js +0 -9
- package/dist/atomic/components/item-section-utils.js.map +0 -1
- package/dist/atomic/components/stencil-pager-navigation.js +0 -42
- package/dist/atomic/components/stencil-pager-navigation.js.map +0 -1
- package/dist/atomic/components/utils/compare-utils.js +0 -35
- package/dist/atomic/p-1201bf3d.entry.js +0 -2
- package/dist/atomic/p-1201bf3d.entry.js.map +0 -1
- package/dist/atomic/p-145e3a1c.entry.js +0 -2
- package/dist/atomic/p-145e3a1c.entry.js.map +0 -1
- package/dist/atomic/p-211d7d6a.js +0 -2
- package/dist/atomic/p-211d7d6a.js.map +0 -1
- package/dist/atomic/p-3d55fce6.entry.js +0 -2
- package/dist/atomic/p-3d55fce6.entry.js.map +0 -1
- package/dist/atomic/p-519d9abd.entry.js +0 -2
- package/dist/atomic/p-519d9abd.entry.js.map +0 -1
- package/dist/atomic/p-56c97c3e.js +0 -2
- package/dist/atomic/p-56c97c3e.js.map +0 -1
- package/dist/atomic/p-8572a953.entry.js +0 -2
- package/dist/atomic/p-8572a953.entry.js.map +0 -1
- package/dist/atomic/p-b7cd0342.entry.js +0 -2
- package/dist/atomic/p-b7cd0342.entry.js.map +0 -1
- package/dist/atomic/p-da845e35.entry.js +0 -2
- package/dist/atomic/p-da845e35.entry.js.map +0 -1
- package/dist/cjs/atomic-pager.cjs.entry.js +0 -121
- package/dist/cjs/atomic-pager.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-result-placeholder_8.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-result-section-children.cjs.entry.js +0 -23
- package/dist/cjs/atomic-result-section-children.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-result-section-emphasized.cjs.entry.js +0 -23
- package/dist/cjs/atomic-result-section-emphasized.cjs.entry.js.map +0 -1
- package/dist/cjs/atomic-result-section-title-metadata.cjs.entry.js +0 -23
- package/dist/cjs/atomic-result-section-title-metadata.cjs.entry.js.map +0 -1
- package/dist/cjs/item-section-utils-8579462c.js +0 -11
- package/dist/cjs/item-section-utils-8579462c.js.map +0 -1
- package/dist/cjs/stencil-pager-navigation-c20b8a95.js +0 -48
- package/dist/cjs/stencil-pager-navigation-c20b8a95.js.map +0 -1
- package/dist/esm/atomic-pager.entry.js +0 -117
- package/dist/esm/atomic-pager.entry.js.map +0 -1
- package/dist/esm/atomic-result-placeholder_8.entry.js.map +0 -1
- package/dist/esm/atomic-result-section-children.entry.js +0 -19
- package/dist/esm/atomic-result-section-children.entry.js.map +0 -1
- package/dist/esm/atomic-result-section-emphasized.entry.js +0 -19
- package/dist/esm/atomic-result-section-emphasized.entry.js.map +0 -1
- package/dist/esm/atomic-result-section-title-metadata.entry.js +0 -19
- package/dist/esm/atomic-result-section-title-metadata.entry.js.map +0 -1
- package/dist/esm/item-section-utils-46828f30.js +0 -9
- package/dist/esm/item-section-utils-46828f30.js.map +0 -1
- package/dist/esm/stencil-pager-navigation-7261a834.js +0 -42
- package/dist/esm/stencil-pager-navigation-7261a834.js.map +0 -1
- package/dist/types/components/common/validate-props-controller/validate-props-controller.d.ts +0 -17
- package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-children.d.ts +0 -10
- package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-emphasized.d.ts +0 -12
- package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-title-metadata.d.ts +0 -13
- package/dist/types/components/search/result-template-components/atomic-result-sections/atomic-result-section-visual.d.ts +0 -20
- package/dist/types/utils/compare-utils.d.ts +0 -9
- /package/dist/atomic/{p-4ae14373.entry.js.map → p-0bdd730f.entry.js.map} +0 -0
- /package/dist/atomic/{p-74822069.entry.js.map → p-13391e75.entry.js.map} +0 -0
- /package/dist/atomic/{p-8103bad3.entry.js.map → p-16f6c1f3.entry.js.map} +0 -0
- /package/dist/atomic/{p-e3edbf14.entry.js.map → p-20764605.entry.js.map} +0 -0
- /package/dist/atomic/{p-20019654.entry.js.map → p-3a7a1a00.entry.js.map} +0 -0
- /package/dist/atomic/{p-f073a78d.entry.js.map → p-3cbab25b.entry.js.map} +0 -0
- /package/dist/atomic/{p-6abd5b2b.entry.js.map → p-3e9db2b5.entry.js.map} +0 -0
- /package/dist/atomic/{p-dfc385b7.entry.js.map → p-4601eb93.entry.js.map} +0 -0
- /package/dist/atomic/{p-44ef70b6.entry.js.map → p-475124d2.entry.js.map} +0 -0
- /package/dist/atomic/{p-2aab9f25.entry.js.map → p-57020985.entry.js.map} +0 -0
- /package/dist/atomic/{p-0402ee69.entry.js.map → p-59f043a0.entry.js.map} +0 -0
- /package/dist/atomic/{p-8acb1466.entry.js.map → p-60800b2f.entry.js.map} +0 -0
- /package/dist/atomic/{p-3e38aea6.entry.js.map → p-7c3c5f07.entry.js.map} +0 -0
- /package/dist/atomic/{p-aa616502.entry.js.map → p-7ec6dd3e.entry.js.map} +0 -0
- /package/dist/atomic/{p-4b9a166f.entry.js.map → p-88af4470.entry.js.map} +0 -0
- /package/dist/atomic/{p-62afcf79.entry.js.map → p-8fdef8a3.entry.js.map} +0 -0
- /package/dist/atomic/{p-b80923d6.entry.js.map → p-9337e1eb.entry.js.map} +0 -0
- /package/dist/atomic/{p-30411cd4.entry.js.map → p-97ce3384.entry.js.map} +0 -0
- /package/dist/atomic/{p-b4ad3036.entry.js.map → p-a5714bc4.entry.js.map} +0 -0
- /package/dist/atomic/{p-4828eef2.js.map → p-aa99e45e.js.map} +0 -0
- /package/dist/atomic/{p-45c76d98.entry.js.map → p-bd3542d2.entry.js.map} +0 -0
- /package/dist/atomic/{p-df1d50c8.entry.js.map → p-dbcef3a9.entry.js.map} +0 -0
- /package/dist/atomic/{p-d8028950.entry.js.map → p-de687bed.entry.js.map} +0 -0
- /package/dist/atomic/{p-516b8165.entry.js.map → p-df4397ab.entry.js.map} +0 -0
- /package/dist/atomic/{p-d2d22ab2.entry.js.map → p-e398835b.entry.js.map} +0 -0
@@ -31,7 +31,7 @@ import '../atomic-commerce-search-box-instant-products/atomic-commerce-search-bo
|
|
31
31
|
import '../atomic-commerce-search-box-query-suggestions/atomic-commerce-search-box-query-suggestions';
|
32
32
|
import '../atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-recent-queries';
|
33
33
|
/**
|
34
|
-
* The `atomic-commerce-search-box` component enables users to perform product searches with built-in query suggestions and optional redirection to a search
|
34
|
+
* The `atomic-commerce-search-box` component enables users to perform product searches with built-in query suggestions and optional redirection to a search page.
|
35
35
|
*
|
36
36
|
* @slot default - The default slot where you can add child components to the search box.
|
37
37
|
*
|
@@ -68,8 +68,8 @@ import '../atomic-commerce-search-box-recent-queries/atomic-commerce-search-box-
|
|
68
68
|
* @part recent-query-title - The "recent searches" text of the clear button above suggestions from the `atomic-commerce-search-box-recent-queries` component.
|
69
69
|
* @part recent-query-clear - The "clear" text of the clear button above suggestions from the `atomic-commerce-search-box-recent-queries` component.
|
70
70
|
*
|
71
|
-
* @part instant-results-item - An instant
|
72
|
-
* @part instant-results-show-all - The clickable suggestion to show all items for the current instant
|
71
|
+
* @part instant-results-item - An instant product rendered by an `atomic-commerce-search-box-instant-products` component.
|
72
|
+
* @part instant-results-show-all - The clickable suggestion to show all items for the current instant product search rendered by an `atomic-commerce-search-box-instant-products` component.
|
73
73
|
* @part instant-results-show-all-button - The button inside the clickable suggestion from the `atomic-commerce-search-box-instant-products` component.
|
74
74
|
*
|
75
75
|
* @event redirect - Event that is emitted when a standalone search box redirection is triggered. By default, the search box will directly change the URL and redirect accordingly, so if you want to handle the redirection differently, use this event.
|
@@ -117,7 +117,7 @@ let AtomicCommerceSearchBox = class AtomicCommerceSearchBox extends LitElement {
|
|
117
117
|
this.minimumQueryLength = 0;
|
118
118
|
/**
|
119
119
|
* Whether to clear all active query filters when the end user submits a new query from the search box.
|
120
|
-
* Setting this option to "false" is not recommended & can lead to an increasing number of queries returning no
|
120
|
+
* Setting this option to "false" is not recommended & can lead to an increasing number of queries returning no products.
|
121
121
|
*/
|
122
122
|
this.clearFilters = true;
|
123
123
|
this.updateBreakpoints = once(() => updateBreakpoints(this));
|
@@ -19,7 +19,7 @@ import { ProductTemplateProvider } from '../product-list/product-template-provid
|
|
19
19
|
*
|
20
20
|
* This component is not supported on mobile.
|
21
21
|
*
|
22
|
-
* @part instant-results-show-all-button - The 'See all
|
22
|
+
* @part instant-results-show-all-button - The 'See all products' button.
|
23
23
|
* @part instant-results-item - The individual instant product item.
|
24
24
|
*
|
25
25
|
* @slot default - The default slot where the instant products are rendered.
|
@@ -40,7 +40,7 @@ let AtomicCommerceSearchBoxInstantProducts = class AtomicCommerceSearchBoxInstan
|
|
40
40
|
this.imageSize = 'icon';
|
41
41
|
}
|
42
42
|
/**
|
43
|
-
* Sets a rendering function to bypass the standard HTML template mechanism for rendering
|
43
|
+
* Sets a rendering function to bypass the standard HTML template mechanism for rendering products.
|
44
44
|
* You can use this function while working with web frameworks that don't use plain HTML syntax, e.g., React, Angular or Vue.
|
45
45
|
*
|
46
46
|
* Do not use this method if you integrate Atomic in a plain HTML deployment.
|
@@ -86,7 +86,7 @@ let AtomicCommerceSearchBoxInstantProducts = class AtomicCommerceSearchBoxInstan
|
|
86
86
|
const interactiveProduct = this.instantProducts.interactiveProduct({
|
87
87
|
options: { product },
|
88
88
|
});
|
89
|
-
const partialItem = getPartialInstantItemElement(this.bindings.i18n, this.ariaLabelGenerator?.(this.bindings, product) || product.ec_name, product.permanentid);
|
89
|
+
const partialItem = getPartialInstantItemElement(this.bindings.i18n, 'instant-products-suggestion-label', this.ariaLabelGenerator?.(this.bindings, product) || product.ec_name, product.permanentid);
|
90
90
|
const key = `instant-product-${encodeForDomAttribute(product.permanentid)}`;
|
91
91
|
const template = html `${keyed(key, html `<atomic-product
|
92
92
|
part="outline"
|
@@ -115,10 +115,13 @@ let AtomicCommerceSearchBoxInstantProducts = class AtomicCommerceSearchBoxInstan
|
|
115
115
|
};
|
116
116
|
});
|
117
117
|
if (elements.length) {
|
118
|
-
const partialItem = getPartialInstantItemShowAllElement(this.bindings.i18n);
|
118
|
+
const partialItem = getPartialInstantItemShowAllElement(this.bindings.i18n, 'show-all-products');
|
119
119
|
elements.push({
|
120
120
|
...partialItem,
|
121
|
-
content: renderInstantItemShowAllButton({
|
121
|
+
content: renderInstantItemShowAllButton({
|
122
|
+
i18n: this.bindings.i18n,
|
123
|
+
i18nKey: 'show-all-products',
|
124
|
+
}),
|
122
125
|
onSelect: () => {
|
123
126
|
this.bindings.clearSuggestions();
|
124
127
|
this.bindings.searchBoxController.updateText(this.instantProducts.state.query);
|
@@ -25,8 +25,8 @@ import { bindings } from "../../../decorators/bindings";
|
|
25
25
|
import { shouldDisplayInputForFacetRange } from '../../common/facets/facet-common';
|
26
26
|
import facetCommonStyles from '../../common/facets/facet-common.tw.css';
|
27
27
|
/**
|
28
|
-
* A facet is a list of values for a certain field occurring in the
|
29
|
-
* An `atomic-commerce-timeframe-facet` displays a facet of the
|
28
|
+
* A facet is a list of values for a certain field occurring in the products.
|
29
|
+
* An `atomic-commerce-timeframe-facet` displays a facet of the products for the current query as date intervals.
|
30
30
|
*
|
31
31
|
* @part facet - The wrapper for the entire facet.
|
32
32
|
* @part label-button - The header button to expand/collapse the facet.
|
@@ -36,7 +36,7 @@ import facetCommonStyles from '../../common/facets/facet-common.tw.css';
|
|
36
36
|
* @part values - The container for the facet values list.
|
37
37
|
* @part value-link - A facet value button.
|
38
38
|
* @part value-link-selected - A selected facet value button.
|
39
|
-
* @part value-count - The
|
39
|
+
* @part value-count - The product count for a facet value.
|
40
40
|
* @part value-label - The label text of a facet value.
|
41
41
|
* @part input-label - The label for date input fields.
|
42
42
|
* @part input-start - The start date input field.
|
@@ -24,7 +24,7 @@ let AtomicProduct = class AtomicProduct extends ChildrenUpdateCompleteMixin(LitE
|
|
24
24
|
/**
|
25
25
|
* The product link to use when the product is clicked in a grid layout.
|
26
26
|
*
|
27
|
-
* @default - An `atomic-
|
27
|
+
* @default - An `atomic-product-link` without any customization.
|
28
28
|
*/
|
29
29
|
this.linkContent = new DocumentFragment();
|
30
30
|
/**
|
@@ -11,7 +11,7 @@ import { ItemSectionMixin } from "../../../mixins/item-section-mixin";
|
|
11
11
|
* This section is meant to render child products, available when using the <atomic-product-children> component.
|
12
12
|
*
|
13
13
|
* Behavior:
|
14
|
-
* * Shows children at the bottom of the
|
14
|
+
* * Shows children at the bottom of the product, indented and wrapped in a border.
|
15
15
|
*
|
16
16
|
* @slot default - The child products to display.
|
17
17
|
*/
|
@@ -12,7 +12,7 @@ import { makeMatchConditions } from '../../common/product-template/product-templ
|
|
12
12
|
import { ProductTemplateController } from '../../common/product-template/product-template-controller';
|
13
13
|
import '../atomic-product/atomic-product';
|
14
14
|
/**
|
15
|
-
* * A product template determines the format of the
|
15
|
+
* * A product template determines the format of the products, depending on the conditions that are defined for each template.
|
16
16
|
*
|
17
17
|
* A `template` element must be the child of an `atomic-product-template`. Furthermore, an `atomic-commerce-product-list`, `atomic-commerce-recommendation-list`, or `atomic-commerce-search-box-instant-products` must be the parent of each `atomic-product-template`.
|
18
18
|
*
|
@@ -6,4 +6,3 @@ export { AtomicFacetPlaceholder } from './atomic-facet-placeholder/atomic-facet-
|
|
6
6
|
export { AtomicIcon } from './atomic-icon/atomic-icon.js';
|
7
7
|
export { AtomicLayoutSection } from './atomic-layout-section/atomic-layout-section.js';
|
8
8
|
export { AtomicModal } from './atomic-modal/atomic-modal.js';
|
9
|
-
export { ValidatePropsController } from './validate-props-controller/validate-props-controller.js';
|
@@ -7,5 +7,4 @@ export default {
|
|
7
7
|
'atomic-icon': async () => await import('./atomic-icon/atomic-icon.js'),
|
8
8
|
'atomic-layout-section': async () => await import('./atomic-layout-section/atomic-layout-section.js'),
|
9
9
|
'atomic-modal': async () => await import('./atomic-modal/atomic-modal.js'),
|
10
|
-
'validate-props-controller': async () => await import('./validate-props-controller/validate-props-controller.js'),
|
11
10
|
};
|
@@ -5,7 +5,7 @@ export const renderTriggerCorrection = ({ props, }) => {
|
|
5
5
|
<p class="text-on-background text-lg leading-6" part="showing-results-for">
|
6
6
|
${localizedString({
|
7
7
|
i18n: props.i18n,
|
8
|
-
key:
|
8
|
+
key: props.i18nKeyShowingItemsFor,
|
9
9
|
params: { query: html `<b part="highlight">${props.correctedQuery}</b>` },
|
10
10
|
})}
|
11
11
|
</p>
|
@@ -41,7 +41,7 @@ export const renderRefineModal = ({ props }) => (children) => {
|
|
41
41
|
},
|
42
42
|
})(html `
|
43
43
|
<span part="footer-button-text" class="mr-1 truncate">
|
44
|
-
${props.i18n.t(
|
44
|
+
${props.i18n.t(props.i18nFooterButtonTextKey)}
|
45
45
|
</span>
|
46
46
|
<span part="footer-button-count">
|
47
47
|
${localizedString({
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { html, render } from 'lit';
|
2
2
|
import { encodeForDomAttribute } from '../../../utils/string-utils';
|
3
3
|
import { getClassNameForButtonStyle } from '../button-style';
|
4
|
-
export const getPartialInstantItemElement = (i18n, itemTitle, itemUniqueId) => {
|
4
|
+
export const getPartialInstantItemElement = (i18n, i18nKey, itemTitle, itemUniqueId) => {
|
5
5
|
return {
|
6
|
-
ariaLabel: i18n.t(
|
6
|
+
ariaLabel: i18n.t(i18nKey, {
|
7
7
|
title: itemTitle,
|
8
8
|
interpolation: { escapeValue: false },
|
9
9
|
}),
|
@@ -11,19 +11,19 @@ export const getPartialInstantItemElement = (i18n, itemTitle, itemUniqueId) => {
|
|
11
11
|
part: 'instant-results-item',
|
12
12
|
};
|
13
13
|
};
|
14
|
-
export const getPartialInstantItemShowAllElement = (i18n) => {
|
14
|
+
export const getPartialInstantItemShowAllElement = (i18n, i18nKey) => {
|
15
15
|
return {
|
16
16
|
key: 'instant-results-show-all-button',
|
17
17
|
part: 'instant-results-show-all',
|
18
|
-
ariaLabel: i18n.t(
|
18
|
+
ariaLabel: i18n.t(i18nKey),
|
19
19
|
};
|
20
20
|
};
|
21
|
-
export const renderInstantItemShowAllButton = ({ i18n, }) => {
|
21
|
+
export const renderInstantItemShowAllButton = ({ i18n, i18nKey, }) => {
|
22
22
|
const template = html `<div
|
23
23
|
part="instant-results-show-all-button"
|
24
24
|
class=${getClassNameForButtonStyle('text-primary')}
|
25
25
|
>
|
26
|
-
${i18n.t(
|
26
|
+
${i18n.t(i18nKey)}
|
27
27
|
</div>`;
|
28
28
|
const container = document.createElement('div');
|
29
29
|
render(template, container);
|
@@ -0,0 +1,188 @@
|
|
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
|
+
var AtomicPager_1;
|
8
|
+
import { NumberValue, Schema } from '@coveo/bueno';
|
9
|
+
import { buildPager, buildSearchStatus, } from '@coveo/headless';
|
10
|
+
import { html, LitElement } from 'lit';
|
11
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
12
|
+
import { keyed } from 'lit/directives/keyed.js';
|
13
|
+
import { when } from 'lit/directives/when.js';
|
14
|
+
import { createAppLoadedListener } from "../../common/interface/store";
|
15
|
+
import { renderPagerNavigation } from "../../common/pager/pager-navigation";
|
16
|
+
import { bindStateToController } from "../../../decorators/bind-state";
|
17
|
+
import { bindingGuard } from "../../../decorators/binding-guard";
|
18
|
+
import { bindings } from "../../../decorators/bindings";
|
19
|
+
import { errorGuard } from "../../../decorators/error-guard";
|
20
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles";
|
21
|
+
import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin";
|
22
|
+
import { randomID } from "../../../utils/utils";
|
23
|
+
const ArrowLeftIcon = "<svg viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m11.5 4.8-4.3 4.5c-.3.4-.3.9 0 1.3l4.3 4.6c.3.4.9.4 1.2 0s.3-.9 0-1.3l-3.7-4 3.7-3.9c.3-.4.3-.9 0-1.3-.3-.3-.9-.3-1.2.1z\"/></svg>";
|
24
|
+
const ArrowRightIcon = "<svg viewBox=\"0 0 20 20\"><path d=\"m8.5 15.2 4.3-4.6c.3-.4.3-.9 0-1.3l-4.4-4.5c-.3-.4-.9-.4-1.2 0s-.3.9 0 1.3l3.7 4-3.7 3.9c-.3.4-.3.9 0 1.3.4.3 1 .3 1.3-.1z\"/></svg>";
|
25
|
+
import { renderPageButtons, renderPagerNextButton, renderPagerPageButton, renderPagerPreviousButton, } from '../../common/pager/pager-buttons';
|
26
|
+
/**
|
27
|
+
* The `atomic-pager` provides buttons that allow the end user to navigate through the different result pages.
|
28
|
+
*
|
29
|
+
* @part buttons - The list of the next/previous buttons and page-buttons.
|
30
|
+
* @part page-buttons - The list of page buttons.
|
31
|
+
* @part page-button - The individual page buttons.
|
32
|
+
* @part active-page-button - The active page button.
|
33
|
+
* @part previous-button - The previous page button.
|
34
|
+
* @part next-button - The next page button.
|
35
|
+
* @part previous-button-icon - The icon displayed on the "previous page" button.
|
36
|
+
* @part next-button-icon - The icon displayed on the "next page" button.
|
37
|
+
*
|
38
|
+
* @event atomic/scrollToTop - Emitted when the user clicks any of the buttons rendered by the component.
|
39
|
+
*/
|
40
|
+
let AtomicPager = AtomicPager_1 = class AtomicPager extends InitializeBindingsMixin(LitElement) {
|
41
|
+
constructor() {
|
42
|
+
super(...arguments);
|
43
|
+
this.isAppLoaded = false;
|
44
|
+
/**
|
45
|
+
* The maximum number of page buttons to display in the pager.
|
46
|
+
*/
|
47
|
+
this.numberOfPages = 5;
|
48
|
+
/**
|
49
|
+
* The SVG icon to render on the "previous page" button.
|
50
|
+
*
|
51
|
+
* - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location.
|
52
|
+
* - Use a value that starts with `assets://`, to display an icon from the Atomic package.
|
53
|
+
* - Use a stringified SVG to display it directly.
|
54
|
+
*/
|
55
|
+
this.previousButtonIcon = ArrowLeftIcon;
|
56
|
+
/**
|
57
|
+
* The SVG icon to render on the "next page" button.
|
58
|
+
*
|
59
|
+
* - Use a value that starts with `http://`, `https://`, `./`, or `../`, to fetch and display an icon from a given location.
|
60
|
+
* - Use a value that starts with `assets://`, to display an icon from the Atomic package.
|
61
|
+
* - Use a stringified SVG to display it directly.
|
62
|
+
*/
|
63
|
+
this.nextButtonIcon = ArrowRightIcon;
|
64
|
+
this.radioGroupName = randomID('atomic-pager-');
|
65
|
+
}
|
66
|
+
initialize() {
|
67
|
+
this.validateProps();
|
68
|
+
this.searchStatus = buildSearchStatus(this.bindings.engine);
|
69
|
+
this.pager = buildPager(this.bindings.engine, {
|
70
|
+
options: { numberOfPages: this.numberOfPages },
|
71
|
+
});
|
72
|
+
createAppLoadedListener(this.bindings.store, (isAppLoaded) => {
|
73
|
+
this.isAppLoaded = isAppLoaded;
|
74
|
+
});
|
75
|
+
}
|
76
|
+
willUpdate(changedProperties) {
|
77
|
+
if (changedProperties.has('numberOfPages')) {
|
78
|
+
this.validateProps();
|
79
|
+
}
|
80
|
+
}
|
81
|
+
render() {
|
82
|
+
const currentGroupName = `${this.radioGroupName}-${this.pagerState.currentPages.join('-')}`;
|
83
|
+
return html `${when(!this.searchStatusState.hasError &&
|
84
|
+
this.searchStatusState.hasResults &&
|
85
|
+
this.isAppLoaded, () => html `
|
86
|
+
${renderPagerNavigation({
|
87
|
+
props: {
|
88
|
+
i18n: this.bindings.i18n,
|
89
|
+
},
|
90
|
+
})(html `
|
91
|
+
${renderPagerPreviousButton({
|
92
|
+
props: {
|
93
|
+
icon: this.previousButtonIcon,
|
94
|
+
disabled: !this.pagerState.hasPreviousPage,
|
95
|
+
i18n: this.bindings.i18n,
|
96
|
+
onClick: () => {
|
97
|
+
this.pager.previousPage();
|
98
|
+
this.focusOnFirstResultAndScrollToTop();
|
99
|
+
},
|
100
|
+
},
|
101
|
+
})}
|
102
|
+
${renderPageButtons({
|
103
|
+
props: {
|
104
|
+
i18n: this.bindings.i18n,
|
105
|
+
},
|
106
|
+
})(html `${this.pagerState.currentPages.map((pageNumber, index) => keyed(`page-${pageNumber}-${index}`, renderPagerPageButton({
|
107
|
+
props: {
|
108
|
+
isSelected: this.pager.isCurrentPage(pageNumber),
|
109
|
+
ariaLabel: this.bindings.i18n.t('page-number', {
|
110
|
+
pageNumber,
|
111
|
+
}),
|
112
|
+
onChecked: () => {
|
113
|
+
this.pager.selectPage(pageNumber);
|
114
|
+
this.focusOnFirstResultAndScrollToTop();
|
115
|
+
},
|
116
|
+
page: pageNumber,
|
117
|
+
groupName: currentGroupName,
|
118
|
+
text: pageNumber.toLocaleString(this.bindings.i18n.language),
|
119
|
+
},
|
120
|
+
})))}`)}
|
121
|
+
${renderPagerNextButton({
|
122
|
+
props: {
|
123
|
+
icon: this.nextButtonIcon,
|
124
|
+
disabled: !this.pagerState.hasNextPage,
|
125
|
+
i18n: this.bindings.i18n,
|
126
|
+
onClick: () => {
|
127
|
+
this.pager.nextPage();
|
128
|
+
this.focusOnFirstResultAndScrollToTop();
|
129
|
+
},
|
130
|
+
},
|
131
|
+
})}
|
132
|
+
`)}`)}`;
|
133
|
+
}
|
134
|
+
validateProps() {
|
135
|
+
try {
|
136
|
+
AtomicPager_1.propsSchema.validate({
|
137
|
+
numberOfPages: this.numberOfPages,
|
138
|
+
});
|
139
|
+
}
|
140
|
+
catch (error) {
|
141
|
+
this.error = error;
|
142
|
+
return;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
async focusOnFirstResultAndScrollToTop() {
|
146
|
+
await this.bindings.store.state.resultList?.focusOnFirstResultAfterNextSearch();
|
147
|
+
this.dispatchEvent(new CustomEvent('atomic/scrollToTop'));
|
148
|
+
}
|
149
|
+
};
|
150
|
+
AtomicPager.propsSchema = new Schema({
|
151
|
+
numberOfPages: new NumberValue({ min: 0 }),
|
152
|
+
});
|
153
|
+
__decorate([
|
154
|
+
state()
|
155
|
+
], AtomicPager.prototype, "bindings", void 0);
|
156
|
+
__decorate([
|
157
|
+
state()
|
158
|
+
], AtomicPager.prototype, "error", void 0);
|
159
|
+
__decorate([
|
160
|
+
state()
|
161
|
+
], AtomicPager.prototype, "isAppLoaded", void 0);
|
162
|
+
__decorate([
|
163
|
+
bindStateToController('pager'),
|
164
|
+
state()
|
165
|
+
], AtomicPager.prototype, "pagerState", void 0);
|
166
|
+
__decorate([
|
167
|
+
bindStateToController('searchStatus'),
|
168
|
+
state()
|
169
|
+
], AtomicPager.prototype, "searchStatusState", void 0);
|
170
|
+
__decorate([
|
171
|
+
property({ reflect: true, attribute: 'number-of-pages', type: Number })
|
172
|
+
], AtomicPager.prototype, "numberOfPages", void 0);
|
173
|
+
__decorate([
|
174
|
+
property({ reflect: true, attribute: 'previous-button-icon', type: String })
|
175
|
+
], AtomicPager.prototype, "previousButtonIcon", void 0);
|
176
|
+
__decorate([
|
177
|
+
property({ reflect: true, attribute: 'next-button-icon', type: String })
|
178
|
+
], AtomicPager.prototype, "nextButtonIcon", void 0);
|
179
|
+
__decorate([
|
180
|
+
bindingGuard(),
|
181
|
+
errorGuard()
|
182
|
+
], AtomicPager.prototype, "render", null);
|
183
|
+
AtomicPager = AtomicPager_1 = __decorate([
|
184
|
+
customElement('atomic-pager'),
|
185
|
+
bindings(),
|
186
|
+
withTailwindStyles
|
187
|
+
], AtomicPager);
|
188
|
+
export { AtomicPager };
|
@@ -0,0 +1,25 @@
|
|
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 { css, LitElement } from 'lit';
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
9
|
+
import { ItemSectionMixin } from "../../../mixins/item-section-mixin";
|
10
|
+
/**
|
11
|
+
* This section allows the information seeker to perform an action on an item without having to view its details.
|
12
|
+
* For example, in Commerce you can add an item to the cart directly or add it to a wish list to view at a later time.
|
13
|
+
*
|
14
|
+
* Behavior:
|
15
|
+
* * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.
|
16
|
+
* ** You should ensure that elements inside of it have `height: var(--line-height)`.
|
17
|
+
* * Is a wrapping flexbox with a gap.
|
18
|
+
* * May appear over, next to, or beneath the visual section.
|
19
|
+
*/
|
20
|
+
let AtomicResultSectionActions = class AtomicResultSectionActions extends ItemSectionMixin(LitElement, css`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */atomic-result-section-actions{text-align:left;&.with-sections{overflow:hidden;text-overflow:ellipsis}&.with-sections{display:flex;flex-wrap:wrap;gap:.5rem;grid-area:actions;max-height:calc(var(--row-height, 2rem)*2 + .5rem);--row-height:2rem;atomic-result-quickview{display:inline-block}@media (width >= 1024px){&.display-list{&.density-comfortable{margin-bottom:1.5rem}&.density-compact,&.density-normal{margin-bottom:1rem}}&.display-grid{&.density-comfortable{margin-top:2.25rem;--row-height:2.5rem}&.density-normal{margin-top:1.75rem}&.density-compact,&.density-normal{--font-size:var(--atomic-text-sm);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height)}&.density-compact{margin-top:1.25rem}}}@media not all and (width >= 1024px){&.display-list{--row-height:2.5rem;&.density-comfortable{margin-top:1rem}&.density-normal{margin-top:.75rem}&.density-compact{margin-top:.5em}}&.display-grid{&.image-large{--row-height:2.5rem;&.density-comfortable{margin-top:1rem}&.density-normal{margin-top:.75rem}&.density-compact{margin-top:.5em}}&.image-icon,&.image-none,&.image-small{&.density-comfortable{margin-top:1.25rem}&.density-normal{margin-top:1rem}&.density-compact{margin-top:.75rem}}}}&.display-table{&.density-comfortable{margin-bottom:1.5rem}&.density-compact,&.density-normal{margin-bottom:1rem}}}}`) {
|
21
|
+
};
|
22
|
+
AtomicResultSectionActions = __decorate([
|
23
|
+
customElement('atomic-result-section-actions')
|
24
|
+
], AtomicResultSectionActions);
|
25
|
+
export { AtomicResultSectionActions };
|
@@ -0,0 +1,24 @@
|
|
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 { css, LitElement } from 'lit';
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
9
|
+
import { ItemSectionMixin } from "../../../mixins/item-section-mixin";
|
10
|
+
/**
|
11
|
+
* This section provides badges that highlight special features of the item.
|
12
|
+
*
|
13
|
+
* Behavior:
|
14
|
+
* * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.
|
15
|
+
* ** You should ensure that elements inside of it have `height: var(--line-height)`.
|
16
|
+
* * Is a wrapping flexbox with a gap.
|
17
|
+
* * May appear over, next to, or beneath the visual section.
|
18
|
+
*/
|
19
|
+
let AtomicResultSectionBadges = class AtomicResultSectionBadges extends ItemSectionMixin(LitElement, css`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */atomic-result-section-badges{text-align:left;&.with-sections{overflow:hidden;text-overflow:ellipsis}&.with-sections{display:flex;flex-wrap:wrap;gap:.5rem;grid-area:badges;margin-bottom:1rem;max-height:calc(var(--row-height, 2rem)*2 + .5rem);--row-height:2rem;@media (width >= 1024px){&.display-list{&.density-comfortable{margin-bottom:1.5rem}}&.display-grid{--font-size:var(--atomic-text-sm);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height);&.image-icon{&.density-comfortable{margin-bottom:2rem}&.density-normal{margin-bottom:1.5rem}}}}@media not all and (width >= 1024px){&.display-list{--font-size:var(--atomic-text-sm);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height)}&.display-grid{&.image-icon,&.image-none,&.image-small{--font-size:var(--atomic-text-sm);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height)}}}&.display-table{&.density-comfortable{margin-bottom:1.5rem}}}}`) {
|
20
|
+
};
|
21
|
+
AtomicResultSectionBadges = __decorate([
|
22
|
+
customElement('atomic-result-section-badges')
|
23
|
+
], AtomicResultSectionBadges);
|
24
|
+
export { AtomicResultSectionBadges };
|
@@ -0,0 +1,25 @@
|
|
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 { css, LitElement } from 'lit';
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
9
|
+
import { ItemSectionMixin } from "../../../mixins/item-section-mixin";
|
10
|
+
/**
|
11
|
+
* This section displays additional descriptive information about the item.
|
12
|
+
*
|
13
|
+
* Behavior:
|
14
|
+
* * Has a maximum height of two lines.
|
15
|
+
* ** We recommend that you use `atomic-result-fields-list` to ensure that the fields in this section don’t overflow.
|
16
|
+
* * Exposes the `--line-height` variable so child elements can adjust to the current line height.
|
17
|
+
* * Has a defined CSS `color` property for text.
|
18
|
+
* * Has a font weight.
|
19
|
+
*/
|
20
|
+
let AtomicResultSectionBottomMetadata = class AtomicResultSectionBottomMetadata extends ItemSectionMixin(LitElement, css`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */atomic-result-section-bottom-metadata{&.with-sections{overflow:hidden;text-overflow:ellipsis}&.with-sections{color:var(--atomic-neutral-dark);grid-area:bottom-metadata;--font-size:var(--atomic-text-sm);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height);@media (width >= 1024px){&.display-list{&.density-comfortable{margin-top:1.25rem;max-height:4rem}&.density-normal{margin-top:.875rem;max-height:3.5rem}&.density-compact{margin-top:.6875rem;max-height:3.25rem}}&.display-grid{&.density-comfortable{margin-top:1.75rem;max-height:4rem}&.density-normal{margin-top:1.375rem;max-height:3.5rem}&.density-compact{margin-top:.9375rem;max-height:3.25rem}}}@media not all and (width >= 1024px){&.display-list{&.density-comfortable{margin-top:.75rem;max-height:4rem}&.density-normal{margin-top:.625rem;max-height:3.5rem}&.density-compact{margin-top:.4375rem;max-height:3.25rem}}&.display-grid{&.image-large{&.density-comfortable{margin-top:.75rem;max-height:4rem}&.density-normal{margin-top:.625rem;max-height:3.5rem}&.density-compact{margin-top:.4375rem;max-height:3.25rem}}&.image-icon,&.image-none,&.image-small{max-height:3rem;&.density-comfortable{margin-top:1rem}&.density-normal{margin-top:.75rem}&.density-compact{margin-top:.5rem}}}}&.display-table{&.density-comfortable{margin-top:1.25rem;max-height:4rem}&.density-normal{margin-top:.875rem;max-height:3.5rem}&.density-compact{margin-top:.6875rem;max-height:3.25rem}}}}`) {
|
21
|
+
};
|
22
|
+
AtomicResultSectionBottomMetadata = __decorate([
|
23
|
+
customElement('atomic-result-section-bottom-metadata')
|
24
|
+
], AtomicResultSectionBottomMetadata);
|
25
|
+
export { AtomicResultSectionBottomMetadata };
|
@@ -0,0 +1,21 @@
|
|
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 { css, LitElement } from 'lit';
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
9
|
+
import { ItemSectionMixin } from "../../../mixins/item-section-mixin";
|
10
|
+
/**
|
11
|
+
* This section displays the folded results, available when using the <atomic-result-children> component.
|
12
|
+
*
|
13
|
+
* Behavior:
|
14
|
+
* * Shows children at the bottom of the result, indented and wrapped in a border.
|
15
|
+
*/
|
16
|
+
let AtomicResultSectionChildren = class AtomicResultSectionChildren extends ItemSectionMixin(LitElement, css`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */@layer properties;atomic-result-section-children{&.with-sections{grid-area:children;@media (width >= 1024px){&.display-list{atomic-insight-result-children::part(children-root),atomic-result-children::part(children-root){border-color:var(--atomic-neutral);border-radius:16px;border-style:var(--tw-border-style);border-width:1px}&.density-comfortable{atomic-insight-result-children,atomic-result-children{&::part(children-root){border-color:var(--atomic-neutral);border-radius:16px;border-style:var(--tw-border-style);border-width:1px;margin-top:1.25rem;padding:1.75rem}&::part(show-hide-button){margin-bottom:1.25rem;margin-top:1.25rem}}&.child-result:not(.last-child),.placeholder{margin-bottom:1.75rem}}&.density-normal{margin-top:1rem;atomic-insight-result-children,atomic-result-children{&::part(children-root){border-color:var(--atomic-neutral);border-radius:16px;border-style:var(--tw-border-style);border-width:1px;margin-top:.875rem;padding:1.5rem}&::part(show-hide-button){margin-bottom:.875rem;margin-top:.875rem}}&.child-result:not(.last-child),.placeholder{margin-bottom:1.5rem}}&.density-compact{margin-top:.75rem;atomic-insight-result-children,atomic-result-children{&::part(children-root){border-color:var(--atomic-neutral);border-radius:16px;border-style:var(--tw-border-style);border-width:1px;margin-top:.475rem;padding:1rem}&::part(show-hide-button){margin-bottom:.475rem;margin-top:.475rem}}&.child-result:not(.last-child),.placeholder{margin-bottom:1rem}}}}@media not all and (width >= 1024px){&.display-list{atomic-insight-result-children::part(children-root),atomic-result-children::part(children-root){border-top:1px var(--tw-border-style) var(--atomic-neutral)}}&.display-grid{&.image-large{atomic-insight-result-children::part(children-root),atomic-result-children::part(children-root){border-top:1px var(--tw-border-style) var(--atomic-neutral)}}&.image-icon,&.image-none,&.image-small{&.density-comfortable{margin-top:1.25rem;atomic-insight-result-children,atomic-result-children{&::part(children-root){margin-inline:calc(var(--spacing, .25rem)*-4);margin-top:calc(var(--spacing, .25rem)*4);padding-top:1.75rem;padding-inline:calc(var(--spacing, .25rem)*4)}&::part(show-hide-button){margin-bottom:1.25rem;margin-top:1.25rem}}&.child-result:not(.last-child),.placeholder{margin-bottom:1.75rem}}&.density-normal{margin-top:1rem;atomic-insight-result-children,atomic-result-children{&::part(children-root){margin-inline:calc(var(--spacing, .25rem)*-4);margin-top:calc(var(--spacing, .25rem)*4);padding-top:1.5rem;padding-inline:calc(var(--spacing, .25rem)*4)}&::part(show-hide-button){margin-bottom:.875rem;margin-top:.875rem}}&.child-result:not(.last-child),.placeholder{margin-bottom:1.5rem}}&.density-compact{margin-top:.75rem;atomic-insight-result-children,atomic-result-children{&::part(children-root){margin-inline:calc(var(--spacing, .25rem)*-4);margin-top:calc(var(--spacing, .25rem)*4);padding-top:1rem;padding-inline:calc(var(--spacing, .25rem)*4)}&::part(show-hide-button){margin-bottom:.475rem;margin-top:.475rem}}&.child-result:not(.last-child),.placeholder{margin-bottom:1rem}}}}}&.display-table{atomic-insight-result-children::part(children-root),atomic-result-children::part(children-root){border-color:var(--atomic-neutral);border-radius:16px;border-style:var(--tw-border-style);border-width:1px}&.density-comfortable{atomic-insight-result-children,atomic-result-children{&::part(children-root){border-color:var(--atomic-neutral);border-radius:16px;border-style:var(--tw-border-style);border-width:1px;margin-top:1.25rem;padding:1.75rem}&::part(show-hide-button){margin-bottom:1.25rem;margin-top:1.25rem}}&.child-result:not(.last-child),.placeholder{margin-bottom:1.75rem}}&.density-normal{margin-top:1rem;atomic-insight-result-children,atomic-result-children{&::part(children-root){border-color:var(--atomic-neutral);border-radius:16px;border-style:var(--tw-border-style);border-width:1px;margin-top:.875rem;padding:1.5rem}&::part(show-hide-button){margin-bottom:.875rem;margin-top:.875rem}}&.child-result:not(.last-child),.placeholder{margin-bottom:1.5rem}}&.density-compact{margin-top:.75rem;atomic-insight-result-children,atomic-result-children{&::part(children-root){border-color:var(--atomic-neutral);border-radius:16px;border-style:var(--tw-border-style);border-width:1px;margin-top:.475rem;padding:1rem}&::part(show-hide-button){margin-bottom:.475rem;margin-top:.475rem}}&.child-result:not(.last-child),.placeholder{margin-bottom:1rem}}}}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-border-style:solid}}}`) {
|
17
|
+
};
|
18
|
+
AtomicResultSectionChildren = __decorate([
|
19
|
+
customElement('atomic-result-section-children')
|
20
|
+
], AtomicResultSectionChildren);
|
21
|
+
export { AtomicResultSectionChildren };
|
@@ -0,0 +1,23 @@
|
|
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 { css, LitElement } from 'lit';
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
9
|
+
import { ItemSectionMixin } from "../../../mixins/item-section-mixin";
|
10
|
+
/**
|
11
|
+
* This section displays the field that's important for its search criteria.
|
12
|
+
* For example, in Commerce, a product's cost is often more important than the title itself.
|
13
|
+
*
|
14
|
+
* Behavior:
|
15
|
+
* * Has a very large font size.
|
16
|
+
* * Is the second closest element beneath the title section.
|
17
|
+
*/
|
18
|
+
let AtomicResultSectionEmphasized = class AtomicResultSectionEmphasized extends ItemSectionMixin(LitElement, css`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */atomic-result-section-emphasized{font-weight:500;--font-size:var(--atomic-text-2xl);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height);margin-top:.5rem;&.with-sections{grid-area:emphasized;overflow:hidden;text-overflow:ellipsis}}`) {
|
19
|
+
};
|
20
|
+
AtomicResultSectionEmphasized = __decorate([
|
21
|
+
customElement('atomic-result-section-emphasized')
|
22
|
+
], AtomicResultSectionEmphasized);
|
23
|
+
export { AtomicResultSectionEmphasized };
|
@@ -0,0 +1,24 @@
|
|
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 { css, LitElement } from 'lit';
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
9
|
+
import { ItemSectionMixin } from "../../../mixins/item-section-mixin";
|
10
|
+
/**
|
11
|
+
* This section contains an informative summary of the item's content.
|
12
|
+
*
|
13
|
+
* Behavior:
|
14
|
+
* * Has a fixed height of one to three lines, depending on the layout and density.
|
15
|
+
* * Ellipses overflowing text.
|
16
|
+
* * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.
|
17
|
+
* * Has a defined CSS `color` property for text.
|
18
|
+
*/
|
19
|
+
let AtomicResultSectionExcerpt = class AtomicResultSectionExcerpt extends ItemSectionMixin(LitElement, css`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */atomic-result-section-excerpt{&.with-sections{text-overflow:ellipsis}&.with-sections{color:var(--atomic-neutral-dark);display:-webkit-box;grid-area:excerpt;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2;@media (width >= 1024px){&.density-comfortable{--font-size:var(--atomic-text-lg);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height);-webkit-line-clamp:3}&.density-comfortable,&.density-compact{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical}&.density-compact{-webkit-line-clamp:1}&.display-list{&.density-comfortable{margin-top:1.75rem;max-height:4.5rem}&.density-normal{margin-top:1.25rem;max-height:2.5rem}&.density-compact{margin-top:1rem;max-height:1.25rem}}&.display-grid{&.density-comfortable{margin-top:2.25rem}&.density-normal{margin-top:1.75rem}&.density-compact{margin-top:1.25rem}}}@media not all and (width >= 1024px){&.display-list{&.density-comfortable,&.density-normal{max-height:2.5rem}&.density-comfortable{margin-top:1.25rem}&.density-normal{margin-top:1rem}}&.display-grid{&.image-large{&.density-comfortable,&.density-normal{max-height:2.5rem}&.density-comfortable{margin-top:1.25rem}&.density-normal{margin-top:1rem}}&.image-icon,&.image-none,&.image-small{&.density-comfortable{margin-top:1.25rem}&.density-normal{margin-top:1rem}&.density-compact{display:-webkit-box;margin-top:.75rem;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1}}}}&.display-table{&.density-comfortable{margin-top:1.75rem;max-height:4.5rem}&.density-normal{margin-top:1.25rem;max-height:2.5rem}&.density-compact{margin-top:1rem;max-height:1.25rem}}}}`) {
|
20
|
+
};
|
21
|
+
AtomicResultSectionExcerpt = __decorate([
|
22
|
+
customElement('atomic-result-section-excerpt')
|
23
|
+
], AtomicResultSectionExcerpt);
|
24
|
+
export { AtomicResultSectionExcerpt };
|
@@ -0,0 +1,24 @@
|
|
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 { css, LitElement } from 'lit';
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
9
|
+
import { ItemSectionMixin } from "../../../mixins/item-section-mixin";
|
10
|
+
/**
|
11
|
+
* This section identifies the item by its name, and its main use is to make the result list scannable.
|
12
|
+
* This is usually the page title.
|
13
|
+
*
|
14
|
+
* Behavior:
|
15
|
+
* * Has a fixed height of two lines on grid layouts.
|
16
|
+
* * Exposes the `--line-height` CSS variable so child elements can adjust to the current line height.
|
17
|
+
* * Has a defined CSS `color` property for text.
|
18
|
+
*/
|
19
|
+
let AtomicResultSectionTitle = class AtomicResultSectionTitle extends ItemSectionMixin(LitElement, css`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */atomic-result-section-title{&.with-sections{overflow:hidden;text-overflow:ellipsis}&.with-sections{color:var(--atomic-on-background);grid-area:title;--font-size:var(--atomic-text-xl);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height);&.density-comfortable{--font-size:var(--atomic-text-2xl);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height)}@media (width >= 1024px){&.display-grid{display:-webkit-box;overflow:hidden;word-break:break-word;-webkit-box-orient:vertical;-webkit-line-clamp:2}}@media not all and (width >= 1024px){&.display-list{--font-size:var(--atomic-text-xl);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height)}&.display-grid{&.image-large{--font-size:var(--atomic-text-xl);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio))}&.image-icon,&.image-large,&.image-none,&.image-small{font-size:var(--font-size);line-height:var(--line-height)}&.image-icon,&.image-none,&.image-small{--font-size:var(--atomic-text-lg);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));display:-webkit-box;max-height:3rem;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}}}}}`) {
|
20
|
+
};
|
21
|
+
AtomicResultSectionTitle = __decorate([
|
22
|
+
customElement('atomic-result-section-title')
|
23
|
+
], AtomicResultSectionTitle);
|
24
|
+
export { AtomicResultSectionTitle };
|
@@ -0,0 +1,24 @@
|
|
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 { css, LitElement } from 'lit';
|
8
|
+
import { customElement } from 'lit/decorators.js';
|
9
|
+
import { ItemSectionMixin } from "../../../mixins/item-section-mixin";
|
10
|
+
/**
|
11
|
+
* This section surfaces some fields that are directly related to the title of the item.
|
12
|
+
* For example, in Commerce, this could be the item's rating, which is tied to the nature of the product itself,
|
13
|
+
* rather than to the product's description.
|
14
|
+
*
|
15
|
+
* Behavior:
|
16
|
+
* * Has a very small font size.
|
17
|
+
* * Is the closest element beneath the title section.
|
18
|
+
*/
|
19
|
+
let AtomicResultSectionTitleMetadata = class AtomicResultSectionTitleMetadata extends ItemSectionMixin(LitElement, css`/*! tailwindcss v4.1.13 | MIT License | https://tailwindcss.com */atomic-result-section-title-metadata{--font-size:var(--atomic-text-sm);font-size:var(--font-size);--line-height:calc(var(--font-size)*var(--atomic-line-height-ratio));line-height:var(--line-height);&.with-sections{grid-area:title-metadata;margin-top:.475rem;overflow:hidden;text-overflow:ellipsis}}`) {
|
20
|
+
};
|
21
|
+
AtomicResultSectionTitleMetadata = __decorate([
|
22
|
+
customElement('atomic-result-section-title-metadata')
|
23
|
+
], AtomicResultSectionTitleMetadata);
|
24
|
+
export { AtomicResultSectionTitleMetadata };
|