@coveo/atomic 3.32.3-pre.d8ef4547c4 → 3.32.3-pre.dd35907a82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atomic/_atomic.esm.js +1 -1
- package/dist/atomic/atomic.esm.js.map +1 -1
- package/dist/atomic/components/_index.d.ts +0 -2
- package/dist/atomic/components/_index.js +0 -1
- package/dist/atomic/components/analytics-config.js +1 -1
- package/dist/atomic/components/atomic-category-facet.js +1 -1
- package/dist/atomic/components/atomic-color-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-numeric-facet.js +1 -1
- package/dist/atomic/components/atomic-pager.js +12 -3
- package/dist/atomic/components/atomic-pager.js.map +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-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-search-box-query-suggestions2.js +1 -1
- package/dist/atomic/components/atomic-search-box-recent-queries2.js +1 -1
- package/dist/atomic/components/atomic-search-box.js +4 -4
- package/dist/atomic/components/atomic-smart-snippet-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-category-facet/atomic-commerce-category-facet.js +2 -3
- package/dist/atomic/components/components/commerce/atomic-commerce-facet/atomic-commerce-facet.js +3 -4
- package/dist/atomic/components/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.js +2 -3
- package/dist/atomic/components/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.js +2 -3
- package/dist/atomic/components/components/common/atomic-facet-date-input/atomic-facet-date-input.js +2 -4
- package/dist/atomic/components/components/search/atomic-results-per-page/atomic-results-per-page.js +140 -0
- package/dist/atomic/components/components/search/atomic-search-interface/interfaces.js +1 -0
- package/dist/atomic/components/components/search/index.js +2 -1
- package/dist/atomic/components/components/search/lazy-index.js +3 -1
- package/dist/atomic/components/global/environment.js +1 -1
- package/dist/atomic/components/index.js.map +1 -1
- package/dist/atomic/components/stencil-button.js +42 -2
- package/dist/atomic/components/stencil-button.js.map +1 -1
- package/dist/atomic/components/stencil-facet-value-checkbox.js +1 -1
- package/dist/atomic/components/stencil-radio-button.js +1 -1
- package/dist/atomic/{p-bb5786e8.js → p-05768310.js} +2 -2
- package/dist/atomic/p-05ab5909.entry.js +2 -0
- package/dist/atomic/{p-3431545a.entry.js.map → p-05ab5909.entry.js.map} +1 -1
- package/dist/atomic/{p-bb97fea7.entry.js → p-07e7770c.entry.js} +2 -2
- package/dist/atomic/{p-a58f35bc.entry.js.map → p-07e7770c.entry.js.map} +1 -1
- package/dist/atomic/p-082e8e88.entry.js +2 -0
- package/dist/atomic/{p-78689603.entry.js.map → p-082e8e88.entry.js.map} +1 -1
- package/dist/atomic/{p-28dfed7e.entry.js → p-0976d324.entry.js} +2 -2
- package/dist/atomic/{p-7d01ca88.entry.js.map → p-0976d324.entry.js.map} +1 -1
- package/dist/atomic/p-09be36ec.entry.js +2 -0
- package/dist/atomic/{p-02d23fbc.entry.js.map → p-09be36ec.entry.js.map} +1 -1
- package/dist/atomic/{p-720f9337.entry.js → p-0ad16659.entry.js} +2 -2
- package/dist/atomic/{p-56d29641.entry.js.map → p-0ad16659.entry.js.map} +1 -1
- package/dist/atomic/{p-3fd7de45.entry.js → p-0bb4a24a.entry.js} +2 -2
- package/dist/atomic/{p-d044ff5f.js → p-0c76c49a.js} +2 -2
- package/dist/atomic/{p-7bc6bd40.entry.js → p-0cc72211.entry.js} +2 -2
- package/dist/atomic/{p-28dfed7e.entry.js.map → p-0cc72211.entry.js.map} +1 -1
- package/dist/atomic/{p-99ce5adb.entry.js → p-1735954d.entry.js} +2 -2
- package/dist/atomic/{p-b6befb73.entry.js.map → p-1735954d.entry.js.map} +1 -1
- package/dist/atomic/p-18c302d8.entry.js +2 -0
- package/dist/atomic/{p-59558c51.entry.js.map → p-18c302d8.entry.js.map} +1 -1
- package/dist/atomic/{p-e74224a7.entry.js → p-190ff788.entry.js} +2 -2
- package/dist/atomic/{p-e1d51cf1.entry.js.map → p-190ff788.entry.js.map} +1 -1
- package/dist/atomic/p-1aa77b93.entry.js +2 -0
- package/dist/atomic/{p-a7576224.entry.js.map → p-1aa77b93.entry.js.map} +1 -1
- package/dist/atomic/{p-a3dabead.js → p-1b679702.js} +2 -2
- package/dist/atomic/p-1d4b30c9.entry.js +2 -0
- package/dist/atomic/{p-885be98c.entry.js.map → p-1d4b30c9.entry.js.map} +1 -1
- package/dist/atomic/p-1ea7b494.entry.js +2 -0
- package/dist/atomic/p-1ea7b494.entry.js.map +1 -0
- package/dist/atomic/{p-02d23fbc.entry.js → p-201cd50c.entry.js} +2 -2
- package/dist/atomic/{p-6c847e86.entry.js.map → p-201cd50c.entry.js.map} +1 -1
- package/dist/atomic/p-209db3c4.entry.js +2 -0
- package/dist/atomic/{p-4bee3b34.entry.js.map → p-209db3c4.entry.js.map} +1 -1
- package/dist/atomic/p-21c7a74a.entry.js +2 -0
- package/dist/atomic/{p-8a74eff4.entry.js.map → p-21c7a74a.entry.js.map} +1 -1
- package/dist/atomic/{p-5fa99042.js → p-225ff26e.js} +2 -2
- package/dist/atomic/{p-d917f9a3.js → p-2ef593e5.js} +2 -2
- package/dist/atomic/{p-22e61d7a.entry.js → p-308c3a88.entry.js} +2 -2
- package/dist/atomic/p-339993e1.entry.js +2 -0
- package/dist/atomic/{p-194a9595.entry.js.map → p-339993e1.entry.js.map} +1 -1
- package/dist/atomic/{p-09f4a984.entry.js → p-358ef11c.entry.js} +2 -2
- package/dist/atomic/{p-f776ee25.entry.js.map → p-358ef11c.entry.js.map} +1 -1
- package/dist/atomic/{p-5db46842.js → p-37697010.js} +2 -2
- package/dist/atomic/p-3c3e67ea.entry.js +2 -0
- package/dist/atomic/{p-8fdd92e1.entry.js.map → p-3c3e67ea.entry.js.map} +1 -1
- package/dist/atomic/{p-1192c7ba.js → p-41200765.js} +2 -2
- package/dist/atomic/{p-2857ab2b.js → p-486ad8f3.js} +2 -2
- package/dist/atomic/{p-67425787.js → p-499a97cc.js} +2 -2
- package/dist/atomic/p-4fc18b34.entry.js +2 -0
- package/dist/atomic/{p-93da4373.entry.js.map → p-4fc18b34.entry.js.map} +1 -1
- package/dist/atomic/p-52121e1e.entry.js +2 -0
- package/dist/atomic/p-57673cd4.entry.js +2 -0
- package/dist/atomic/{p-d7b26c60.entry.js.map → p-57673cd4.entry.js.map} +1 -1
- package/dist/atomic/p-58a138a6.entry.js +2 -0
- package/dist/atomic/{p-ac7e9ef0.entry.js.map → p-58a138a6.entry.js.map} +1 -1
- package/dist/atomic/p-5aaf4b5b.entry.js +2 -0
- package/dist/atomic/{p-e2135441.entry.js.map → p-5aaf4b5b.entry.js.map} +1 -1
- package/dist/atomic/{p-53bcc515.js → p-5b28af78.js} +2 -2
- package/dist/atomic/{p-61004aad.js → p-5e7656d8.js} +2 -2
- package/dist/atomic/p-6220ff1d.entry.js +2 -0
- package/dist/atomic/{p-cd4591c2.entry.js.map → p-6220ff1d.entry.js.map} +1 -1
- package/dist/atomic/p-629b2dd9.entry.js +2 -0
- package/dist/atomic/{p-d4640d29.entry.js.map → p-629b2dd9.entry.js.map} +1 -1
- package/dist/atomic/{p-9f72fc38.entry.js → p-63271009.entry.js} +2 -2
- package/dist/atomic/{p-c18c7465.entry.js.map → p-63271009.entry.js.map} +1 -1
- package/dist/atomic/{p-ea8be3c4.entry.js → p-633628d5.entry.js} +2 -2
- package/dist/atomic/{p-a5cc4cad.entry.js → p-63e1e3ad.entry.js} +2 -2
- package/dist/atomic/p-6b2cf1fb.entry.js +2 -0
- package/dist/atomic/{p-f54597e3.entry.js.map → p-6b2cf1fb.entry.js.map} +1 -1
- package/dist/atomic/{p-2be3757d.js → p-6c6208b2.js} +2 -2
- package/dist/atomic/{p-3e892bd2.entry.js → p-6e424336.entry.js} +2 -2
- package/dist/atomic/p-70925804.entry.js +2 -0
- package/dist/atomic/{p-2026d2ca.entry.js.map → p-70925804.entry.js.map} +1 -1
- package/dist/atomic/p-70af5870.entry.js +2 -0
- package/dist/atomic/{p-01c9665d.entry.js.map → p-70af5870.entry.js.map} +1 -1
- package/dist/atomic/{p-45aba08f.entry.js → p-724a8422.entry.js} +2 -2
- package/dist/atomic/p-73256028.entry.js +2 -0
- package/dist/atomic/{p-20fc8621.entry.js.map → p-73256028.entry.js.map} +1 -1
- package/dist/atomic/p-753fad0b.entry.js +2 -0
- package/dist/atomic/{p-59aaa35e.entry.js.map → p-753fad0b.entry.js.map} +1 -1
- package/dist/atomic/p-7b0b4829.entry.js +2 -0
- package/dist/atomic/{p-091c2bac.entry.js.map → p-7b0b4829.entry.js.map} +1 -1
- package/dist/atomic/{p-a96a297e.js → p-7c023024.js} +2 -2
- package/dist/atomic/p-7cc0ac62.entry.js +2 -0
- package/dist/atomic/{p-8ce29074.entry.js.map → p-7cc0ac62.entry.js.map} +1 -1
- package/dist/atomic/{p-1cf33009.js → p-7e85b9b3.js} +2 -2
- package/dist/atomic/p-7ee46e01.js +2 -0
- package/dist/atomic/{p-56d29641.entry.js → p-8317ee74.entry.js} +2 -2
- package/dist/atomic/{p-faaee781.entry.js.map → p-8317ee74.entry.js.map} +1 -1
- package/dist/atomic/p-8531564b.entry.js +2 -0
- package/dist/atomic/{p-04be1c25.entry.js.map → p-8531564b.entry.js.map} +1 -1
- package/dist/atomic/{p-81f316a4.entry.js → p-87668c84.entry.js} +2 -2
- package/dist/atomic/p-8bfdf2c5.entry.js +2 -0
- package/dist/atomic/{p-99ce5adb.entry.js.map → p-8bfdf2c5.entry.js.map} +1 -1
- package/dist/atomic/p-91185b72.entry.js +2 -0
- package/dist/atomic/{p-651a6cd4.entry.js.map → p-91185b72.entry.js.map} +1 -1
- package/dist/atomic/{p-f8cd64b9.js → p-92c85f14.js} +2 -2
- package/dist/atomic/{p-67a47b7b.entry.js → p-936d6b26.entry.js} +2 -2
- package/dist/atomic/{p-ed62d981.js → p-9767fe9a.js} +2 -2
- package/dist/atomic/p-995b31cf.entry.js +2 -0
- package/dist/atomic/{p-69a4b22e.entry.js.map → p-995b31cf.entry.js.map} +1 -1
- package/dist/atomic/{p-b0725b4c.entry.js → p-9a3c79ff.entry.js} +2 -2
- package/dist/atomic/{p-c4e9e693.entry.js.map → p-9a3c79ff.entry.js.map} +1 -1
- package/dist/atomic/{p-e40220e4.entry.js → p-9f4062f1.entry.js} +2 -2
- package/dist/atomic/{p-b0725b4c.entry.js.map → p-9f4062f1.entry.js.map} +1 -1
- package/dist/atomic/p-a135ebc4.entry.js +2 -0
- package/dist/atomic/{p-89125fc9.entry.js.map → p-a135ebc4.entry.js.map} +1 -1
- package/dist/atomic/{p-651a6cd4.entry.js → p-a42a7fce.entry.js} +2 -2
- package/dist/atomic/{p-bb97fea7.entry.js.map → p-a42a7fce.entry.js.map} +1 -1
- package/dist/atomic/{p-1fbcf15f.entry.js → p-ab9e964c.entry.js} +2 -2
- package/dist/atomic/p-affd89e5.entry.js +2 -0
- package/dist/atomic/{p-e40220e4.entry.js.map → p-affd89e5.entry.js.map} +1 -1
- package/dist/atomic/{p-43e95b74.entry.js → p-b0bd2709.entry.js} +2 -2
- package/dist/atomic/p-b3770db9.entry.js +2 -0
- package/dist/atomic/{p-6db12972.entry.js.map → p-b3770db9.entry.js.map} +1 -1
- package/dist/atomic/p-b389ea6d.js +2 -0
- package/dist/atomic/p-b389ea6d.js.map +1 -0
- package/dist/atomic/p-b3bbb1e5.entry.js +2 -0
- package/dist/atomic/{p-50dc4fa2.entry.js.map → p-b3bbb1e5.entry.js.map} +1 -1
- package/dist/atomic/{p-7f62a39d.entry.js → p-b9cbd646.entry.js} +2 -2
- package/dist/atomic/{p-681f90df.entry.js → p-bfdecd0f.entry.js} +2 -2
- package/dist/atomic/{p-93116ce1.js → p-c35c892e.js} +2 -2
- package/dist/atomic/p-c826b8f9.entry.js +2 -0
- package/dist/atomic/{p-de22b08b.entry.js.map → p-c826b8f9.entry.js.map} +1 -1
- package/dist/atomic/{p-79075abe.js → p-c8e10077.js} +2 -2
- package/dist/atomic/{p-417b1b64.js → p-c953462e.js} +2 -2
- package/dist/atomic/{p-93da4373.entry.js → p-ccc22289.entry.js} +2 -2
- package/dist/atomic/{p-9f72fc38.entry.js.map → p-ccc22289.entry.js.map} +1 -1
- package/dist/atomic/{p-214cbca8.js → p-d2855a6f.js} +2 -2
- package/dist/atomic/p-d642ef17.entry.js +2 -0
- package/dist/atomic/{p-e74224a7.entry.js.map → p-d642ef17.entry.js.map} +1 -1
- package/dist/atomic/p-d6b6e7d4.entry.js +2 -0
- package/dist/atomic/{p-27a333b9.entry.js.map → p-d6b6e7d4.entry.js.map} +1 -1
- package/dist/atomic/{p-f0ec2e17.js → p-d720bf5c.js} +2 -2
- package/dist/atomic/p-d79aa846.entry.js +2 -0
- package/dist/atomic/{p-bf8db205.entry.js.map → p-d79aa846.entry.js.map} +1 -1
- package/dist/atomic/{p-ae6d5a5a.entry.js → p-d7ba69c5.entry.js} +2 -2
- package/dist/atomic/{p-fa14a392.entry.js.map → p-d7ba69c5.entry.js.map} +1 -1
- package/dist/atomic/p-d82800ed.entry.js +2 -0
- package/dist/atomic/{p-ae6d5a5a.entry.js.map → p-d82800ed.entry.js.map} +1 -1
- package/dist/atomic/p-d94e8dfd.entry.js +2 -0
- package/dist/atomic/{p-7af1cafa.entry.js.map → p-d94e8dfd.entry.js.map} +1 -1
- package/dist/atomic/p-db02de0e.entry.js +2 -0
- package/dist/atomic/{p-0a6a7642.entry.js.map → p-db02de0e.entry.js.map} +1 -1
- package/dist/atomic/p-db7810c6.entry.js +2 -0
- package/dist/atomic/{p-a3be51c0.entry.js.map → p-db7810c6.entry.js.map} +1 -1
- package/dist/atomic/{p-cd4591c2.entry.js → p-deda232b.entry.js} +2 -2
- package/dist/atomic/{p-f736d023.entry.js.map → p-deda232b.entry.js.map} +1 -1
- package/dist/atomic/{p-59558c51.entry.js → p-e4d2c0a4.entry.js} +2 -2
- package/dist/atomic/{p-7bc6bd40.entry.js.map → p-e4d2c0a4.entry.js.map} +1 -1
- package/dist/atomic/p-e7237496.entry.js +2 -0
- package/dist/atomic/{p-3de800fd.entry.js.map → p-e7237496.entry.js.map} +1 -1
- package/dist/atomic/p-eea8a5f1.entry.js +2 -0
- package/dist/atomic/{p-a006f8bc.entry.js.map → p-eea8a5f1.entry.js.map} +1 -1
- package/dist/atomic/{p-a5e36220.entry.js → p-f3e32508.entry.js} +2 -2
- package/dist/atomic/{p-2e6f5b07.entry.js.map → p-f3e32508.entry.js.map} +1 -1
- package/dist/atomic/p-f81a5329.entry.js +2 -0
- package/dist/atomic/{p-09f4a984.entry.js.map → p-f81a5329.entry.js.map} +1 -1
- package/dist/atomic/{p-7d01ca88.entry.js → p-fc342fe2.entry.js} +2 -2
- package/dist/atomic/{p-f451e57f.entry.js.map → p-fc342fe2.entry.js.map} +1 -1
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-c1e1e561.js → analytics-config-754425b0.js} +2 -2
- package/dist/cjs/{analytics-config-c1e1e561.js.map → analytics-config-754425b0.js.map} +1 -1
- package/dist/cjs/atomic-automatic-facet_2.cjs.entry.js +3 -4
- package/dist/cjs/atomic-automatic-facet_2.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-breadbox.cjs.entry.js +1 -2
- package/dist/cjs/atomic-breadbox.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-category-facet.cjs.entry.js +6 -7
- package/dist/cjs/atomic-category-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-color-facet.cjs.entry.js +8 -9
- package/dist/cjs/atomic-color-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-facet-number-input.cjs.entry.js +1 -2
- package/dist/cjs/atomic-facet-number-input.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-facet.cjs.entry.js +9 -10
- package/dist/cjs/atomic-facet.cjs.entry.js.map +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-generated-answer-feedback-modal.cjs.entry.js +3 -4
- package/dist/cjs/atomic-generated-answer-feedback-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-generated-answer.cjs.entry.js +2 -3
- package/dist/cjs/atomic-generated-answer.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-edit-toggle.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-edit-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-facet.cjs.entry.js +7 -8
- package/dist/cjs/atomic-insight-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-full-search-button.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-full-search-button.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-generated-answer.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-history-toggle.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-history-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js +5 -6
- package/dist/cjs/atomic-insight-numeric-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-pager.cjs.entry.js +3 -4
- package/dist/cjs/atomic-insight-pager.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-query-error.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-query-error.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-refine-modal.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-refine-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-refine-toggle.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-refine-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-result-action.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-result-action.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-result-attach-to-case-action.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-result-children.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-result-children.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-result-quickview-action.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-result-quickview-action.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-search-box.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-search-box.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-smart-snippet-feedback-modal.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-smart-snippet-feedback-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-smart-snippet-suggestions.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-smart-snippet-suggestions.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-smart-snippet.cjs.entry.js +3 -4
- package/dist/cjs/atomic-insight-smart-snippet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-tab.cjs.entry.js +1 -2
- package/dist/cjs/atomic-insight-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js +4 -5
- package/dist/cjs/atomic-insight-timeframe-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-user-actions-modal.cjs.entry.js +1 -2
- package/dist/cjs/atomic-insight-user-actions-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-user-actions-session_2.cjs.entry.js +1 -2
- package/dist/cjs/atomic-insight-user-actions-session_2.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-insight-user-actions-toggle.cjs.entry.js +2 -3
- package/dist/cjs/atomic-insight-user-actions-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-ipx-button.cjs.entry.js +1 -2
- package/dist/cjs/atomic-ipx-button.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js +2 -3
- package/dist/cjs/atomic-ipx-recs-list.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js +2 -3
- package/dist/cjs/atomic-ipx-refine-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js +2 -3
- package/dist/cjs/atomic-ipx-refine-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-ipx-tab.cjs.entry.js +1 -2
- package/dist/cjs/atomic-ipx-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-load-more-results.cjs.entry.js +1 -2
- package/dist/cjs/atomic-load-more-results.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-no-results.cjs.entry.js +1 -2
- package/dist/cjs/atomic-no-results.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js +6 -7
- package/dist/cjs/atomic-numeric-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-pager.cjs.entry.js +14 -6
- package/dist/cjs/atomic-pager.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-popover.cjs.entry.js +1 -2
- package/dist/cjs/atomic-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-query-error.cjs.entry.js +2 -3
- package/dist/cjs/atomic-query-error.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-quickview-modal.cjs.entry.js +3 -4
- package/dist/cjs/atomic-quickview-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-quickview.cjs.entry.js +2 -3
- package/dist/cjs/atomic-quickview.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-rating-facet.cjs.entry.js +4 -5
- package/dist/cjs/atomic-rating-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-rating-range-facet.cjs.entry.js +3 -4
- package/dist/cjs/atomic-rating-range-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-recs-error.cjs.entry.js +2 -3
- package/dist/cjs/atomic-recs-error.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-recs-interface.cjs.entry.js +1 -1
- package/dist/cjs/atomic-recs-list.cjs.entry.js +2 -3
- package/dist/cjs/atomic-recs-list.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-refine-modal.cjs.entry.js +2 -3
- package/dist/cjs/atomic-refine-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-refine-toggle.cjs.entry.js +1 -2
- package/dist/cjs/atomic-refine-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-relevance-inspector.cjs.entry.js +1 -2
- package/dist/cjs/atomic-relevance-inspector.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-result-children.cjs.entry.js +3 -4
- package/dist/cjs/atomic-result-children.cjs.entry.js.map +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-search-box-query-suggestions_2.cjs.entry.js +2 -2
- package/dist/cjs/atomic-search-box.cjs.entry.js +6 -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-segmented-facet-scrollable.cjs.entry.js +1 -2
- package/dist/cjs/atomic-segmented-facet-scrollable.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-segmented-facet.cjs.entry.js +1 -2
- package/dist/cjs/atomic-segmented-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js +4 -5
- package/dist/cjs/atomic-smart-snippet-feedback-modal.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-smart-snippet-suggestions.cjs.entry.js +2 -3
- package/dist/cjs/atomic-smart-snippet-suggestions.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-smart-snippet.cjs.entry.js +3 -4
- package/dist/cjs/atomic-smart-snippet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-sort-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/atomic-sort-expression.cjs.entry.js +1 -1
- package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js +1 -2
- package/dist/cjs/atomic-stencil-facet-date-input.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-tab-bar_2.cjs.entry.js +1 -2
- package/dist/cjs/atomic-tab-bar_2.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-tab-button.cjs.entry.js +1 -2
- package/dist/cjs/atomic-tab-button.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-tab-manager.cjs.entry.js +1 -1
- package/dist/cjs/atomic-timeframe-facet.cjs.entry.js +4 -5
- package/dist/cjs/atomic-timeframe-facet.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic.cjs.js +1 -1
- package/dist/cjs/{facet-placeholder-9fa83ffc.js → facet-placeholder-d9604249.js} +2 -2
- package/dist/cjs/{facet-placeholder-9fa83ffc.js.map → facet-placeholder-d9604249.js.map} +1 -1
- package/dist/cjs/{generated-answer-common-1f7e3c88.js → generated-answer-common-e5cd257b.js} +2 -2
- package/dist/cjs/{generated-answer-common-1f7e3c88.js.map → generated-answer-common-e5cd257b.js.map} +1 -1
- package/dist/cjs/{iconButton-bf5b24cf.js → iconButton-3aef664a.js} +2 -2
- package/dist/cjs/{iconButton-bf5b24cf.js.map → iconButton-3aef664a.js.map} +1 -1
- package/dist/cjs/index-757bc886.js +0 -4
- package/dist/cjs/{show-hide-button-2fb7407f.js → show-hide-button-f9096749.js} +2 -2
- package/dist/cjs/{show-hide-button-2fb7407f.js.map → show-hide-button-f9096749.js.map} +1 -1
- package/dist/cjs/{smart-snippet-common-abb0cdce.js → smart-snippet-common-118a7188.js} +3 -3
- package/dist/cjs/{smart-snippet-common-abb0cdce.js.map → smart-snippet-common-118a7188.js.map} +1 -1
- package/dist/cjs/{smart-snippet-feedback-modal-common-c29844fa.js → smart-snippet-feedback-modal-common-9b3e5c88.js} +2 -2
- package/dist/cjs/{smart-snippet-feedback-modal-common-c29844fa.js.map → smart-snippet-feedback-modal-common-9b3e5c88.js.map} +1 -1
- package/dist/cjs/{smart-snippet-suggestions-common-f0d8677b.js → smart-snippet-suggestions-common-1a6af6e7.js} +2 -2
- package/dist/cjs/{smart-snippet-suggestions-common-f0d8677b.js.map → smart-snippet-suggestions-common-1a6af6e7.js.map} +1 -1
- package/dist/cjs/{ripple-4070d750.js → stencil-button-f6c2410c.js} +43 -1
- package/dist/cjs/stencil-button-f6c2410c.js.map +1 -0
- package/dist/cjs/{stencil-carousel-cb870e4d.js → stencil-carousel-51a30e42.js} +2 -2
- package/dist/cjs/{stencil-carousel-cb870e4d.js.map → stencil-carousel-51a30e42.js.map} +1 -1
- package/dist/cjs/{stencil-facet-search-matches-f2fd2b83.js → stencil-facet-search-matches-43fad15c.js} +2 -2
- package/dist/cjs/{stencil-facet-search-matches-f2fd2b83.js.map → stencil-facet-search-matches-43fad15c.js.map} +1 -1
- package/dist/cjs/{stencil-facet-show-more-less-541e1544.js → stencil-facet-show-more-less-0894c761.js} +2 -2
- package/dist/cjs/{stencil-facet-show-more-less-541e1544.js.map → stencil-facet-show-more-less-0894c761.js.map} +1 -1
- package/dist/cjs/{stencil-facet-value-box-2949669d.js → stencil-facet-value-box-f3f982f2.js} +2 -2
- package/dist/cjs/{stencil-facet-value-box-2949669d.js.map → stencil-facet-value-box-f3f982f2.js.map} +1 -1
- package/dist/cjs/{stencil-facet-value-a4da653b.js → stencil-facet-value-c72a58e6.js} +4 -4
- package/dist/cjs/{stencil-facet-value-a4da653b.js.map → stencil-facet-value-c72a58e6.js.map} +1 -1
- package/dist/cjs/{stencil-facet-value-checkbox-49e6843d.js → stencil-facet-value-checkbox-169fade3.js} +4 -4
- package/dist/cjs/{stencil-facet-value-checkbox-49e6843d.js.map → stencil-facet-value-checkbox-169fade3.js.map} +1 -1
- package/dist/cjs/{stencil-facet-value-link-089a2160.js → stencil-facet-value-link-bd461250.js} +2 -2
- package/dist/cjs/{stencil-facet-value-link-089a2160.js.map → stencil-facet-value-link-bd461250.js.map} +1 -1
- package/dist/cjs/{stencil-link-37587e3a.js → stencil-link-f0f8fc23.js} +2 -2
- package/dist/cjs/{stencil-link-37587e3a.js.map → stencil-link-f0f8fc23.js.map} +1 -1
- package/dist/cjs/{stencil-modal-33439a14.js → stencil-modal-8229c340.js} +2 -2
- package/dist/cjs/{stencil-modal-33439a14.js.map → stencil-modal-8229c340.js.map} +1 -1
- package/dist/cjs/{stencil-pager-navigation-54ce337f.js → stencil-pager-navigation-f5c13e0c.js} +3 -3
- package/dist/cjs/{stencil-pager-navigation-54ce337f.js.map → stencil-pager-navigation-f5c13e0c.js.map} +1 -1
- package/dist/cjs/{stencil-radio-button-b7440398.js → stencil-radio-button-f86cc13b.js} +3 -3
- package/dist/cjs/{stencil-radio-button-b7440398.js.map → stencil-radio-button-f86cc13b.js.map} +1 -1
- package/dist/cjs/{stencil-suggestion-manager-5fa3ac70.js → stencil-suggestion-manager-9079f36d.js} +2 -2
- package/dist/cjs/{stencil-suggestion-manager-5fa3ac70.js.map → stencil-suggestion-manager-9079f36d.js.map} +1 -1
- package/dist/cjs/{stencil-values-container-57751dcd.js → stencil-values-container-b6539384.js} +3 -3
- package/dist/cjs/{stencil-values-container-57751dcd.js.map → stencil-values-container-b6539384.js.map} +1 -1
- package/dist/cjs/{timeframe-facet-common-c7d03854.js → timeframe-facet-common-5d249725.js} +3 -3
- package/dist/cjs/{timeframe-facet-common-c7d03854.js.map → timeframe-facet-common-5d249725.js.map} +1 -1
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-38f7c123.js → analytics-config-1b52a93a.js} +2 -2
- package/dist/esm/{analytics-config-38f7c123.js.map → analytics-config-1b52a93a.js.map} +1 -1
- package/dist/esm/atomic-automatic-facet_2.entry.js +3 -4
- package/dist/esm/atomic-automatic-facet_2.entry.js.map +1 -1
- package/dist/esm/atomic-breadbox.entry.js +1 -2
- package/dist/esm/atomic-breadbox.entry.js.map +1 -1
- package/dist/esm/atomic-category-facet.entry.js +6 -7
- package/dist/esm/atomic-category-facet.entry.js.map +1 -1
- package/dist/esm/atomic-color-facet.entry.js +6 -7
- package/dist/esm/atomic-color-facet.entry.js.map +1 -1
- package/dist/esm/atomic-facet-number-input.entry.js +1 -2
- package/dist/esm/atomic-facet-number-input.entry.js.map +1 -1
- package/dist/esm/atomic-facet.entry.js +9 -10
- package/dist/esm/atomic-facet.entry.js.map +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-generated-answer-feedback-modal.entry.js +3 -4
- package/dist/esm/atomic-generated-answer-feedback-modal.entry.js.map +1 -1
- package/dist/esm/atomic-generated-answer.entry.js +2 -3
- package/dist/esm/atomic-generated-answer.entry.js.map +1 -1
- package/dist/esm/atomic-insight-edit-toggle.entry.js +2 -3
- package/dist/esm/atomic-insight-edit-toggle.entry.js.map +1 -1
- package/dist/esm/atomic-insight-facet.entry.js +7 -8
- package/dist/esm/atomic-insight-facet.entry.js.map +1 -1
- package/dist/esm/atomic-insight-full-search-button.entry.js +2 -3
- package/dist/esm/atomic-insight-full-search-button.entry.js.map +1 -1
- package/dist/esm/atomic-insight-generated-answer.entry.js +2 -3
- package/dist/esm/atomic-insight-generated-answer.entry.js.map +1 -1
- package/dist/esm/atomic-insight-history-toggle.entry.js +2 -3
- package/dist/esm/atomic-insight-history-toggle.entry.js.map +1 -1
- package/dist/esm/atomic-insight-interface.entry.js +1 -1
- package/dist/esm/atomic-insight-numeric-facet.entry.js +5 -6
- package/dist/esm/atomic-insight-numeric-facet.entry.js.map +1 -1
- package/dist/esm/atomic-insight-pager.entry.js +3 -4
- package/dist/esm/atomic-insight-pager.entry.js.map +1 -1
- package/dist/esm/atomic-insight-query-error.entry.js +2 -3
- package/dist/esm/atomic-insight-query-error.entry.js.map +1 -1
- package/dist/esm/atomic-insight-refine-modal.entry.js +2 -3
- package/dist/esm/atomic-insight-refine-modal.entry.js.map +1 -1
- package/dist/esm/atomic-insight-refine-toggle.entry.js +2 -3
- package/dist/esm/atomic-insight-refine-toggle.entry.js.map +1 -1
- package/dist/esm/atomic-insight-result-action.entry.js +2 -3
- package/dist/esm/atomic-insight-result-action.entry.js.map +1 -1
- package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js +2 -3
- package/dist/esm/atomic-insight-result-attach-to-case-action.entry.js.map +1 -1
- package/dist/esm/atomic-insight-result-children.entry.js +2 -3
- package/dist/esm/atomic-insight-result-children.entry.js.map +1 -1
- package/dist/esm/atomic-insight-result-quickview-action.entry.js +2 -3
- package/dist/esm/atomic-insight-result-quickview-action.entry.js.map +1 -1
- package/dist/esm/atomic-insight-search-box.entry.js +2 -3
- package/dist/esm/atomic-insight-search-box.entry.js.map +1 -1
- package/dist/esm/atomic-insight-smart-snippet-feedback-modal.entry.js +2 -3
- package/dist/esm/atomic-insight-smart-snippet-feedback-modal.entry.js.map +1 -1
- package/dist/esm/atomic-insight-smart-snippet-suggestions.entry.js +2 -3
- package/dist/esm/atomic-insight-smart-snippet-suggestions.entry.js.map +1 -1
- package/dist/esm/atomic-insight-smart-snippet.entry.js +3 -4
- package/dist/esm/atomic-insight-smart-snippet.entry.js.map +1 -1
- package/dist/esm/atomic-insight-tab.entry.js +1 -2
- package/dist/esm/atomic-insight-tab.entry.js.map +1 -1
- package/dist/esm/atomic-insight-timeframe-facet.entry.js +4 -5
- package/dist/esm/atomic-insight-timeframe-facet.entry.js.map +1 -1
- package/dist/esm/atomic-insight-user-actions-modal.entry.js +1 -2
- package/dist/esm/atomic-insight-user-actions-modal.entry.js.map +1 -1
- package/dist/esm/atomic-insight-user-actions-session_2.entry.js +1 -2
- package/dist/esm/atomic-insight-user-actions-session_2.entry.js.map +1 -1
- package/dist/esm/atomic-insight-user-actions-toggle.entry.js +2 -3
- package/dist/esm/atomic-insight-user-actions-toggle.entry.js.map +1 -1
- package/dist/esm/atomic-ipx-button.entry.js +1 -2
- package/dist/esm/atomic-ipx-button.entry.js.map +1 -1
- package/dist/esm/atomic-ipx-recs-list.entry.js +2 -3
- package/dist/esm/atomic-ipx-recs-list.entry.js.map +1 -1
- package/dist/esm/atomic-ipx-refine-modal.entry.js +2 -3
- package/dist/esm/atomic-ipx-refine-modal.entry.js.map +1 -1
- package/dist/esm/atomic-ipx-refine-toggle.entry.js +2 -3
- package/dist/esm/atomic-ipx-refine-toggle.entry.js.map +1 -1
- package/dist/esm/atomic-ipx-tab.entry.js +1 -2
- package/dist/esm/atomic-ipx-tab.entry.js.map +1 -1
- package/dist/esm/atomic-load-more-results.entry.js +1 -2
- package/dist/esm/atomic-load-more-results.entry.js.map +1 -1
- package/dist/esm/atomic-no-results.entry.js +1 -2
- package/dist/esm/atomic-no-results.entry.js.map +1 -1
- package/dist/esm/atomic-numeric-facet.entry.js +6 -7
- package/dist/esm/atomic-numeric-facet.entry.js.map +1 -1
- package/dist/esm/atomic-pager.entry.js +15 -7
- package/dist/esm/atomic-pager.entry.js.map +1 -1
- package/dist/esm/atomic-popover.entry.js +1 -2
- package/dist/esm/atomic-popover.entry.js.map +1 -1
- package/dist/esm/atomic-query-error.entry.js +2 -3
- package/dist/esm/atomic-query-error.entry.js.map +1 -1
- package/dist/esm/atomic-quickview-modal.entry.js +3 -4
- package/dist/esm/atomic-quickview-modal.entry.js.map +1 -1
- package/dist/esm/atomic-quickview.entry.js +2 -3
- package/dist/esm/atomic-quickview.entry.js.map +1 -1
- package/dist/esm/atomic-rating-facet.entry.js +4 -5
- package/dist/esm/atomic-rating-facet.entry.js.map +1 -1
- package/dist/esm/atomic-rating-range-facet.entry.js +3 -4
- package/dist/esm/atomic-rating-range-facet.entry.js.map +1 -1
- package/dist/esm/atomic-recs-error.entry.js +2 -3
- package/dist/esm/atomic-recs-error.entry.js.map +1 -1
- package/dist/esm/atomic-recs-interface.entry.js +1 -1
- package/dist/esm/atomic-recs-list.entry.js +2 -3
- package/dist/esm/atomic-recs-list.entry.js.map +1 -1
- package/dist/esm/atomic-refine-modal.entry.js +2 -3
- package/dist/esm/atomic-refine-modal.entry.js.map +1 -1
- package/dist/esm/atomic-refine-toggle.entry.js +1 -2
- package/dist/esm/atomic-refine-toggle.entry.js.map +1 -1
- package/dist/esm/atomic-relevance-inspector.entry.js +1 -2
- package/dist/esm/atomic-relevance-inspector.entry.js.map +1 -1
- package/dist/esm/atomic-result-children.entry.js +3 -4
- package/dist/esm/atomic-result-children.entry.js.map +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-search-box-query-suggestions_2.entry.js +2 -2
- package/dist/esm/atomic-search-box.entry.js +6 -7
- 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-segmented-facet-scrollable.entry.js +1 -2
- package/dist/esm/atomic-segmented-facet-scrollable.entry.js.map +1 -1
- package/dist/esm/atomic-segmented-facet.entry.js +1 -2
- package/dist/esm/atomic-segmented-facet.entry.js.map +1 -1
- package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js +4 -5
- package/dist/esm/atomic-smart-snippet-feedback-modal.entry.js.map +1 -1
- package/dist/esm/atomic-smart-snippet-suggestions.entry.js +2 -3
- package/dist/esm/atomic-smart-snippet-suggestions.entry.js.map +1 -1
- package/dist/esm/atomic-smart-snippet.entry.js +3 -4
- package/dist/esm/atomic-smart-snippet.entry.js.map +1 -1
- package/dist/esm/atomic-sort-dropdown.entry.js +2 -2
- package/dist/esm/atomic-sort-expression.entry.js +1 -1
- package/dist/esm/atomic-stencil-facet-date-input.entry.js +1 -2
- package/dist/esm/atomic-stencil-facet-date-input.entry.js.map +1 -1
- package/dist/esm/atomic-tab-bar_2.entry.js +1 -2
- package/dist/esm/atomic-tab-bar_2.entry.js.map +1 -1
- package/dist/esm/atomic-tab-button.entry.js +1 -2
- package/dist/esm/atomic-tab-button.entry.js.map +1 -1
- package/dist/esm/atomic-tab-manager.entry.js +1 -1
- package/dist/esm/atomic-timeframe-facet.entry.js +4 -5
- package/dist/esm/atomic-timeframe-facet.entry.js.map +1 -1
- package/dist/esm/atomic.js +1 -1
- package/dist/esm/{facet-placeholder-ced9331e.js → facet-placeholder-57a5207d.js} +2 -2
- package/dist/esm/{facet-placeholder-ced9331e.js.map → facet-placeholder-57a5207d.js.map} +1 -1
- package/dist/esm/{generated-answer-common-ee9bfc67.js → generated-answer-common-835787fa.js} +2 -2
- package/dist/esm/{generated-answer-common-ee9bfc67.js.map → generated-answer-common-835787fa.js.map} +1 -1
- package/dist/esm/{iconButton-2e6938c5.js → iconButton-779dd472.js} +2 -2
- package/dist/esm/{iconButton-2e6938c5.js.map → iconButton-779dd472.js.map} +1 -1
- package/dist/esm/index-3f35faca.js +0 -4
- package/dist/esm/{show-hide-button-caaec7b0.js → show-hide-button-7cc80d21.js} +2 -2
- package/dist/esm/{show-hide-button-caaec7b0.js.map → show-hide-button-7cc80d21.js.map} +1 -1
- package/dist/esm/{smart-snippet-common-fb774198.js → smart-snippet-common-86bb93a7.js} +3 -3
- package/dist/esm/{smart-snippet-common-fb774198.js.map → smart-snippet-common-86bb93a7.js.map} +1 -1
- package/dist/esm/{smart-snippet-feedback-modal-common-d72f9043.js → smart-snippet-feedback-modal-common-8ec991db.js} +2 -2
- package/dist/esm/{smart-snippet-feedback-modal-common-d72f9043.js.map → smart-snippet-feedback-modal-common-8ec991db.js.map} +1 -1
- package/dist/esm/{smart-snippet-suggestions-common-25d34a7b.js → smart-snippet-suggestions-common-6c465bbf.js} +2 -2
- package/dist/esm/{smart-snippet-suggestions-common-25d34a7b.js.map → smart-snippet-suggestions-common-6c465bbf.js.map} +1 -1
- package/dist/esm/{ripple-b1f0b09d.js → stencil-button-75e8b31b.js} +43 -2
- package/dist/esm/stencil-button-75e8b31b.js.map +1 -0
- package/dist/esm/{stencil-carousel-a0eb523c.js → stencil-carousel-d335bf03.js} +2 -2
- package/dist/esm/{stencil-carousel-a0eb523c.js.map → stencil-carousel-d335bf03.js.map} +1 -1
- package/dist/esm/{stencil-facet-search-matches-7e6acab2.js → stencil-facet-search-matches-84f41731.js} +2 -2
- package/dist/esm/{stencil-facet-search-matches-7e6acab2.js.map → stencil-facet-search-matches-84f41731.js.map} +1 -1
- package/dist/esm/{stencil-facet-show-more-less-1198472f.js → stencil-facet-show-more-less-ea417674.js} +2 -2
- package/dist/esm/{stencil-facet-show-more-less-1198472f.js.map → stencil-facet-show-more-less-ea417674.js.map} +1 -1
- package/dist/esm/{stencil-facet-value-box-30a3003f.js → stencil-facet-value-box-ecd5015e.js} +2 -2
- package/dist/esm/{stencil-facet-value-box-30a3003f.js.map → stencil-facet-value-box-ecd5015e.js.map} +1 -1
- package/dist/esm/{stencil-facet-value-325f019d.js → stencil-facet-value-c080798e.js} +4 -4
- package/dist/esm/{stencil-facet-value-325f019d.js.map → stencil-facet-value-c080798e.js.map} +1 -1
- package/dist/esm/{stencil-facet-value-checkbox-5a90f933.js → stencil-facet-value-checkbox-0786f1d8.js} +2 -2
- package/dist/esm/{stencil-facet-value-checkbox-5a90f933.js.map → stencil-facet-value-checkbox-0786f1d8.js.map} +1 -1
- package/dist/esm/{stencil-facet-value-link-b3b194b7.js → stencil-facet-value-link-4c270d4d.js} +2 -2
- package/dist/esm/{stencil-facet-value-link-b3b194b7.js.map → stencil-facet-value-link-4c270d4d.js.map} +1 -1
- package/dist/esm/{stencil-link-d52947a6.js → stencil-link-4136c3ad.js} +2 -2
- package/dist/esm/{stencil-link-d52947a6.js.map → stencil-link-4136c3ad.js.map} +1 -1
- package/dist/esm/{stencil-modal-01e42232.js → stencil-modal-151563e7.js} +2 -2
- package/dist/esm/{stencil-modal-01e42232.js.map → stencil-modal-151563e7.js.map} +1 -1
- package/dist/esm/{stencil-pager-navigation-e906e3ae.js → stencil-pager-navigation-c6870b0f.js} +3 -3
- package/dist/esm/{stencil-pager-navigation-e906e3ae.js.map → stencil-pager-navigation-c6870b0f.js.map} +1 -1
- package/dist/esm/{stencil-radio-button-022ec547.js → stencil-radio-button-ce6ec704.js} +2 -2
- package/dist/esm/{stencil-radio-button-022ec547.js.map → stencil-radio-button-ce6ec704.js.map} +1 -1
- package/dist/esm/{stencil-suggestion-manager-f52c6e39.js → stencil-suggestion-manager-8240b520.js} +2 -2
- package/dist/esm/{stencil-suggestion-manager-f52c6e39.js.map → stencil-suggestion-manager-8240b520.js.map} +1 -1
- package/dist/esm/{stencil-values-container-162e03e0.js → stencil-values-container-e005ef7f.js} +3 -3
- package/dist/esm/{stencil-values-container-162e03e0.js.map → stencil-values-container-e005ef7f.js.map} +1 -1
- package/dist/esm/{timeframe-facet-common-50fd210c.js → timeframe-facet-common-8b4b78a7.js} +3 -3
- package/dist/esm/{timeframe-facet-common-50fd210c.js.map → timeframe-facet-common-8b4b78a7.js.map} +1 -1
- package/dist/esm/version.js +2 -2
- package/dist/types/components/commerce/atomic-commerce-category-facet/atomic-commerce-category-facet.d.ts +3 -1
- package/dist/types/components/commerce/atomic-commerce-facet/atomic-commerce-facet.d.ts +3 -1
- package/dist/types/components/commerce/atomic-commerce-numeric-facet/atomic-commerce-numeric-facet.d.ts +3 -1
- package/dist/types/components/commerce/atomic-commerce-timeframe-facet/atomic-commerce-timeframe-facet.d.ts +3 -1
- package/dist/types/components/common/atomic-facet-date-input/atomic-facet-date-input.d.ts +3 -2
- package/dist/types/components/search/atomic-results-per-page/atomic-results-per-page.d.ts +12 -9
- package/dist/types/components/search/index.d.ts +1 -1
- package/dist/types/components.d.ts +0 -59
- package/docs/atomic-docs.json +1 -120
- package/package.json +3 -3
- package/dist/atomic/components/atomic-results-per-page.d.ts +0 -11
- package/dist/atomic/components/atomic-results-per-page.js +0 -171
- package/dist/atomic/components/atomic-results-per-page.js.map +0 -1
- package/dist/atomic/components/ripple.js +0 -45
- package/dist/atomic/components/ripple.js.map +0 -1
- package/dist/atomic/components/stencil-pager-guard.js +0 -16
- package/dist/atomic/components/stencil-pager-guard.js.map +0 -1
- package/dist/atomic/p-01c9665d.entry.js +0 -2
- package/dist/atomic/p-04be1c25.entry.js +0 -2
- package/dist/atomic/p-091c2bac.entry.js +0 -2
- package/dist/atomic/p-0a6a7642.entry.js +0 -2
- package/dist/atomic/p-194a9595.entry.js +0 -2
- package/dist/atomic/p-2026d2ca.entry.js +0 -2
- package/dist/atomic/p-20fc8621.entry.js +0 -2
- package/dist/atomic/p-234b3314.js +0 -2
- package/dist/atomic/p-27a333b9.entry.js +0 -2
- package/dist/atomic/p-28a6dd9b.js +0 -2
- package/dist/atomic/p-28a6dd9b.js.map +0 -1
- package/dist/atomic/p-2e6f5b07.entry.js +0 -2
- package/dist/atomic/p-3431545a.entry.js +0 -2
- package/dist/atomic/p-36acf9d8.js +0 -2
- package/dist/atomic/p-36acf9d8.js.map +0 -1
- package/dist/atomic/p-3de800fd.entry.js +0 -2
- package/dist/atomic/p-4bee3b34.entry.js +0 -2
- package/dist/atomic/p-50dc4fa2.entry.js +0 -2
- package/dist/atomic/p-59aaa35e.entry.js +0 -2
- package/dist/atomic/p-69a4b22e.entry.js +0 -2
- package/dist/atomic/p-6c847e86.entry.js +0 -2
- package/dist/atomic/p-6db12972.entry.js +0 -2
- package/dist/atomic/p-720f9337.entry.js.map +0 -1
- package/dist/atomic/p-78689603.entry.js +0 -2
- package/dist/atomic/p-7af1cafa.entry.js +0 -2
- package/dist/atomic/p-827a8d65.entry.js +0 -2
- package/dist/atomic/p-885be98c.entry.js +0 -2
- package/dist/atomic/p-89125fc9.entry.js +0 -2
- package/dist/atomic/p-8a74eff4.entry.js +0 -2
- package/dist/atomic/p-8ce29074.entry.js +0 -2
- package/dist/atomic/p-8fdd92e1.entry.js +0 -2
- package/dist/atomic/p-a006f8bc.entry.js +0 -2
- package/dist/atomic/p-a3be51c0.entry.js +0 -2
- package/dist/atomic/p-a58f35bc.entry.js +0 -2
- package/dist/atomic/p-a5e36220.entry.js.map +0 -1
- package/dist/atomic/p-a7576224.entry.js +0 -2
- package/dist/atomic/p-ac7e9ef0.entry.js +0 -2
- package/dist/atomic/p-b6befb73.entry.js +0 -2
- package/dist/atomic/p-bf8db205.entry.js +0 -2
- package/dist/atomic/p-c18c7465.entry.js +0 -2
- package/dist/atomic/p-c4e9e693.entry.js +0 -2
- package/dist/atomic/p-d4640d29.entry.js +0 -2
- package/dist/atomic/p-d7b26c60.entry.js +0 -2
- package/dist/atomic/p-de22b08b.entry.js +0 -2
- package/dist/atomic/p-e1d51cf1.entry.js +0 -2
- package/dist/atomic/p-e2135441.entry.js +0 -2
- package/dist/atomic/p-ef905286.js +0 -2
- package/dist/atomic/p-ef905286.js.map +0 -1
- package/dist/atomic/p-f451e57f.entry.js +0 -2
- package/dist/atomic/p-f54597e3.entry.js +0 -2
- package/dist/atomic/p-f736d023.entry.js +0 -2
- package/dist/atomic/p-f776ee25.entry.js +0 -2
- package/dist/atomic/p-fa14a392.entry.js +0 -2
- package/dist/atomic/p-faaee781.entry.js +0 -2
- package/dist/cjs/atomic-results-per-page.cjs.entry.js +0 -158
- package/dist/cjs/atomic-results-per-page.cjs.entry.js.map +0 -1
- package/dist/cjs/ripple-4070d750.js.map +0 -1
- package/dist/cjs/stencil-button-aa4c0879.js +0 -48
- package/dist/cjs/stencil-button-aa4c0879.js.map +0 -1
- package/dist/cjs/stencil-pager-guard-16f46f73.js +0 -18
- package/dist/cjs/stencil-pager-guard-16f46f73.js.map +0 -1
- package/dist/esm/atomic-results-per-page.entry.js +0 -154
- package/dist/esm/atomic-results-per-page.entry.js.map +0 -1
- package/dist/esm/ripple-b1f0b09d.js.map +0 -1
- package/dist/esm/stencil-button-2a8cc429.js +0 -46
- package/dist/esm/stencil-button-2a8cc429.js.map +0 -1
- package/dist/esm/stencil-pager-guard-16dd9188.js +0 -16
- package/dist/esm/stencil-pager-guard-16dd9188.js.map +0 -1
- /package/dist/atomic/{p-bb5786e8.js.map → p-05768310.js.map} +0 -0
- /package/dist/atomic/{p-3fd7de45.entry.js.map → p-0bb4a24a.entry.js.map} +0 -0
- /package/dist/atomic/{p-d044ff5f.js.map → p-0c76c49a.js.map} +0 -0
- /package/dist/atomic/{p-a3dabead.js.map → p-1b679702.js.map} +0 -0
- /package/dist/atomic/{p-5fa99042.js.map → p-225ff26e.js.map} +0 -0
- /package/dist/atomic/{p-d917f9a3.js.map → p-2ef593e5.js.map} +0 -0
- /package/dist/atomic/{p-22e61d7a.entry.js.map → p-308c3a88.entry.js.map} +0 -0
- /package/dist/atomic/{p-5db46842.js.map → p-37697010.js.map} +0 -0
- /package/dist/atomic/{p-1192c7ba.js.map → p-41200765.js.map} +0 -0
- /package/dist/atomic/{p-2857ab2b.js.map → p-486ad8f3.js.map} +0 -0
- /package/dist/atomic/{p-67425787.js.map → p-499a97cc.js.map} +0 -0
- /package/dist/atomic/{p-827a8d65.entry.js.map → p-52121e1e.entry.js.map} +0 -0
- /package/dist/atomic/{p-53bcc515.js.map → p-5b28af78.js.map} +0 -0
- /package/dist/atomic/{p-61004aad.js.map → p-5e7656d8.js.map} +0 -0
- /package/dist/atomic/{p-ea8be3c4.entry.js.map → p-633628d5.entry.js.map} +0 -0
- /package/dist/atomic/{p-a5cc4cad.entry.js.map → p-63e1e3ad.entry.js.map} +0 -0
- /package/dist/atomic/{p-2be3757d.js.map → p-6c6208b2.js.map} +0 -0
- /package/dist/atomic/{p-3e892bd2.entry.js.map → p-6e424336.entry.js.map} +0 -0
- /package/dist/atomic/{p-45aba08f.entry.js.map → p-724a8422.entry.js.map} +0 -0
- /package/dist/atomic/{p-a96a297e.js.map → p-7c023024.js.map} +0 -0
- /package/dist/atomic/{p-1cf33009.js.map → p-7e85b9b3.js.map} +0 -0
- /package/dist/atomic/{p-234b3314.js.map → p-7ee46e01.js.map} +0 -0
- /package/dist/atomic/{p-81f316a4.entry.js.map → p-87668c84.entry.js.map} +0 -0
- /package/dist/atomic/{p-f8cd64b9.js.map → p-92c85f14.js.map} +0 -0
- /package/dist/atomic/{p-67a47b7b.entry.js.map → p-936d6b26.entry.js.map} +0 -0
- /package/dist/atomic/{p-ed62d981.js.map → p-9767fe9a.js.map} +0 -0
- /package/dist/atomic/{p-1fbcf15f.entry.js.map → p-ab9e964c.entry.js.map} +0 -0
- /package/dist/atomic/{p-43e95b74.entry.js.map → p-b0bd2709.entry.js.map} +0 -0
- /package/dist/atomic/{p-7f62a39d.entry.js.map → p-b9cbd646.entry.js.map} +0 -0
- /package/dist/atomic/{p-681f90df.entry.js.map → p-bfdecd0f.entry.js.map} +0 -0
- /package/dist/atomic/{p-93116ce1.js.map → p-c35c892e.js.map} +0 -0
- /package/dist/atomic/{p-79075abe.js.map → p-c8e10077.js.map} +0 -0
- /package/dist/atomic/{p-417b1b64.js.map → p-c953462e.js.map} +0 -0
- /package/dist/atomic/{p-214cbca8.js.map → p-d2855a6f.js.map} +0 -0
- /package/dist/atomic/{p-f0ec2e17.js.map → p-d720bf5c.js.map} +0 -0
|
@@ -584,7 +584,7 @@ const AtomicQuickviewModal = /*@__PURE__*/ proxyCustomElement(class AtomicQuickv
|
|
|
584
584
|
});
|
|
585
585
|
}
|
|
586
586
|
render() {
|
|
587
|
-
return (h("atomic-modal", { key: '
|
|
587
|
+
return (h("atomic-modal", { key: '21dbc83d06fcb1b393d13f7b2d116f68732c77d7', fullscreen: this.bindings.store.isMobile(), class: 'atomic-quickview-modal', isOpen: this.isOpen, close: () => this.onClose(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, this.renderHeader(), this.renderBody(), this.renderFooter()));
|
|
588
588
|
}
|
|
589
589
|
static get watchers() { return {
|
|
590
590
|
"highlightKeywords": ["watchHighlightKeywords"]
|
|
@@ -108,7 +108,7 @@ const AtomicQuickview$1 = /*@__PURE__*/ proxyCustomElement(class AtomicQuickview
|
|
|
108
108
|
}
|
|
109
109
|
render() {
|
|
110
110
|
if (this.quickviewState.resultHasPreview) {
|
|
111
|
-
return (h(Button, { key: '
|
|
111
|
+
return (h(Button, { key: 'b96d9a3049190935a2c4f041bae9faa89e62ce20', part: "button", title: this.bindings.i18n.t('quickview'), style: "outline-primary", class: "p-2", onClick: (event) => this.onClick(event), ref: this.focusTarget.setTarget }, h("atomic-icon", { key: 'a5be2ca28ccb7762d98ab9b71fec6a121eefcf38', part: "icon", class: "flex w-5 justify-center", icon: QuickviewIcon })));
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
static get style() { return AtomicQuickviewStyle0; }
|
|
@@ -138,7 +138,7 @@ const AtomicResultChildren$1 = /*@__PURE__*/ proxyCustomElement(class AtomicResu
|
|
|
138
138
|
return (h(ChildrenWrapper, { hasChildren: children.length > 0 }, children.map((child, i) => this.renderChild(child, i === children.length - 1))));
|
|
139
139
|
}
|
|
140
140
|
render() {
|
|
141
|
-
return (h(ResultChildrenGuard, { key: '
|
|
141
|
+
return (h(ResultChildrenGuard, { key: '4792c391d2d6dfd5b6a8f9ca7de5f6e17856aaf7', inheritTemplates: this.inheritTemplates, resultTemplateRegistered: this.resultTemplateRegistered, templateHasError: this.templateHasError }, this.collection ? this.renderCollection() : this.renderFoldedResult()));
|
|
142
142
|
}
|
|
143
143
|
get host() { return this; }
|
|
144
144
|
static get style() { return AtomicResultChildrenStyle0; }
|
|
@@ -98,7 +98,7 @@ const AtomicResultFieldsList$1 = /*@__PURE__*/ proxyCustomElement(class AtomicRe
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
render() {
|
|
101
|
-
return h(Host, { key: '
|
|
101
|
+
return h(Host, { key: '16dd76a0e5d91ab65deeeb1cef7e0eb666068ce7' });
|
|
102
102
|
}
|
|
103
103
|
get host() { return this; }
|
|
104
104
|
static get style() { return AtomicResultFieldsListStyle0; }
|
|
@@ -43,7 +43,7 @@ const AtomicResultLink$1 = /*@__PURE__*/ proxyCustomElement(class AtomicResultLi
|
|
|
43
43
|
const href = isUndefined(this.hrefTemplate)
|
|
44
44
|
? this.result.clickUri
|
|
45
45
|
: buildStringTemplateFromResult(this.hrefTemplate, this.result, this.bindings);
|
|
46
|
-
return (h(LinkWithItemAnalytics, { key: '
|
|
46
|
+
return (h(LinkWithItemAnalytics, { key: '893426e32ef773352ce0dec5e005d12d37d35a67', href: href, onSelect: () => this.interactiveResult.select(), onBeginDelayedSelect: () => this.interactiveResult.beginDelayedSelect(), onCancelPendingSelect: () => this.interactiveResult.cancelPendingSelect(), attributes: this.linkAttributes, stopPropagation: this.stopPropagation }, this.hasDefaultSlot ? (h("slot", null)) : (h("atomic-result-text", { field: "title", default: "no-title" }))));
|
|
47
47
|
}
|
|
48
48
|
get host() { return this; }
|
|
49
49
|
static get style() { return AtomicResultLinkStyle0; }
|
|
@@ -194,7 +194,7 @@ const AtomicResultList$1 = /*@__PURE__*/ proxyCustomElement(class AtomicResultLi
|
|
|
194
194
|
render() {
|
|
195
195
|
this.resultListCommon.updateBreakpoints();
|
|
196
196
|
const listClasses = this.computeListDisplayClasses();
|
|
197
|
-
return (h(TabGuard, { key: '
|
|
197
|
+
return (h(TabGuard, { key: '2a166d26e6ce4887d1ed43ea5041110a277f8d06', tabsIncluded: this.tabsIncluded, tabsExcluded: this.tabsExcluded, activeTab: this.tabManagerState.activeTab }, h(ItemListGuard, { key: '3c0a5e6697a02832a65a5ec3e70414184133062b', hasError: this.resultListState.hasError, hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, h(DisplayWrapper, { key: 'e54764caa5d90956732ed083af7b9cebb47c6eb4', display: this.display, listClasses: listClasses }, h(ResultsPlaceholdersGuard, { key: '379a10c62c510e78d4b2ce4a27670a54e33470a1', density: this.density, display: this.display, imageSize: this.imageSize, displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults }), h(ItemDisplayGuard, { key: '6f86f55ec045b323dd2419ff7343c29de7afadfe', firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, this.display === 'table'
|
|
198
198
|
? this.renderAsTable()
|
|
199
199
|
: this.display === 'grid'
|
|
200
200
|
? this.renderAsGrid()
|
|
@@ -60,7 +60,7 @@ const AtomicSearchBoxQuerySuggestions = /*@__PURE__*/ proxyCustomElement(class A
|
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
62
|
if (this.error) {
|
|
63
|
-
return (h("atomic-component-error", { key: '
|
|
63
|
+
return (h("atomic-component-error", { key: '60fd04f52305a72133a2cf04e70ce0b1c489c10d', element: this.host, error: this.error }));
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
get host() { return this; }
|
|
@@ -154,7 +154,7 @@ const AtomicSearchBoxRecentQueries = /*@__PURE__*/ proxyCustomElement(class Atom
|
|
|
154
154
|
}
|
|
155
155
|
render() {
|
|
156
156
|
if (this.error) {
|
|
157
|
-
return (h("atomic-component-error", { key: '
|
|
157
|
+
return (h("atomic-component-error", { key: '9a6efb2a4483b2a1924418e9b52cc94164b4c8e4', element: this.host, error: this.error }));
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
get host() { return this; }
|
|
@@ -427,18 +427,18 @@ const AtomicSearchBox$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSearchBox
|
|
|
427
427
|
if (!this.suggestionManager.suggestions.length) {
|
|
428
428
|
this.registerSearchboxSuggestionEvents();
|
|
429
429
|
}
|
|
430
|
-
return (h(Host, { key: '
|
|
431
|
-
h(SearchBoxWrapper, { key: '
|
|
430
|
+
return (h(Host, { key: '14bd784f74d5cfcbcb82136d6f8e6bc2aa4e2815' }, this.renderAbsolutePositionSpacer(), [
|
|
431
|
+
h(SearchBoxWrapper, { key: '5d13e6bcdb5c27f5f169a7881eb471f431d86a51', disabled: isDisabled, onFocusout: (event) => {
|
|
432
432
|
if (!isFocusingOut(event)) {
|
|
433
433
|
return;
|
|
434
434
|
}
|
|
435
435
|
this.suggestionManager.clearSuggestions();
|
|
436
436
|
this.isExpanded = false;
|
|
437
|
-
} }, this.renderTextBox(searchLabel), h(SubmitButton, { key: '
|
|
437
|
+
} }, this.renderTextBox(searchLabel), h(SubmitButton, { key: '105c32ac0b57202156661fcbb2b82722ca357ea7', bindings: this.bindings, disabled: isDisabled, onClick: () => {
|
|
438
438
|
this.searchBox.submit();
|
|
439
439
|
this.suggestionManager.clearSuggestions();
|
|
440
440
|
} }), this.renderSuggestions()),
|
|
441
|
-
!this.suggestionManager.suggestions.length && (h("slot", { key: '
|
|
441
|
+
!this.suggestionManager.suggestions.length && (h("slot", { key: 'ceb85736ad1c30d088fa8e828134237a543dd908' }, h("atomic-search-box-recent-queries", { key: 'a3f0dfc0ac6f6177a20e8e6e5a4fbcc688b63a40' }), h("atomic-search-box-query-suggestions", { key: '7cf5f99564c9ed776d114cc4d75cbc75e44efa71' }))),
|
|
442
442
|
]));
|
|
443
443
|
}
|
|
444
444
|
get host() { return this; }
|
|
@@ -45,9 +45,9 @@ const AtomicSmartSnippetFeedbackModal = /*@__PURE__*/ proxyCustomElement(class A
|
|
|
45
45
|
}
|
|
46
46
|
render() {
|
|
47
47
|
updateBreakpoints(this.host);
|
|
48
|
-
return (h("atomic-modal", { key: '
|
|
48
|
+
return (h("atomic-modal", { key: 'a0cf5aeda0d5ddb9e897c93f91e80f92454c9e4f', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, h(SmartSnippetFeedbackModalHeader, { key: 'a24f8d4ab805d17086f7de7702fbe9e2709208b0', i18n: this.bindings.i18n }), h(SmartSnippetFeedbackModalBody, { key: 'f1329b3299fad8a6987c83d79ee5676ac2b80500', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, h(SmartSnippetFeebackModalOptions, { key: 'c0630d7e8c086001530649d6e45aa44e862ae5f3', i18n: this.bindings.i18n }, smartSnippetFeedbackOptions.map(({ id, localeKey, correspondingAnswer }) => (h(SmartSnippetFeedbackModalOption, { correspondingAnswer: correspondingAnswer, currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, id: id, localeKey: localeKey, onChange: () => {
|
|
49
49
|
this.currentAnswer = correspondingAnswer;
|
|
50
|
-
} })))), h(SmartSnippetFeedbackModalDetails, { key: '
|
|
50
|
+
} })))), h(SmartSnippetFeedbackModalDetails, { key: '9d71e67a52776a08b97a80b22e1078ea0086fd6c', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), h(SmartSnippetFeedbackModalFooter, { key: '60a0d8d350aef37f9df02c267f11de297c805703', formId: this.formId, i18n: this.bindings.i18n, onClick: () => this.close() })));
|
|
51
51
|
}
|
|
52
52
|
close() {
|
|
53
53
|
this.isOpen = false;
|
|
@@ -117,8 +117,8 @@ const AtomicSortDropdown$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSortDr
|
|
|
117
117
|
const { hasError, hasResults, firstSearchExecuted } = this.searchStatusState;
|
|
118
118
|
const { bindings: { i18n }, id, } = this;
|
|
119
119
|
return [
|
|
120
|
-
h(SortGuard, { key: '
|
|
121
|
-
h("slot", { key: '
|
|
120
|
+
h(SortGuard, { key: '6bcf83c0920b696573d396e22f2d914cc1537022', firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: hasResults }, h(SortContainer, { key: '07a9afdfc2b3ccab21f4e3b11c535be4f1434d2e' }, h(SortLabel, { key: 'e934aa217d8b46af88c7911cfa9bde8a24c70b42', i18n: i18n, id: id }), h(SortSelect, { key: '6d9e56ae34355b2d8f194845bf1549b92ca82304', i18n: i18n, id: id, onSelect: (evt) => this.select(evt) }, this.options.map(({ label, criteria, expression }) => (h(SortOption, { i18n: i18n, label: label, selected: this.sort.isSortedBy(criteria), value: expression })))))),
|
|
121
|
+
h("slot", { key: '04455925e05235d7c024831ff217ca9aca774557' }),
|
|
122
122
|
];
|
|
123
123
|
}
|
|
124
124
|
get host() { return this; }
|
|
@@ -47,7 +47,7 @@ const AtomicSortExpression$1 = /*@__PURE__*/ proxyCustomElement(class AtomicSort
|
|
|
47
47
|
const dropdownComponent = 'atomic-sort-dropdown';
|
|
48
48
|
if (!this.host.closest(dropdownComponent)) {
|
|
49
49
|
const error = new Error(`The "${this.host.nodeName.toLowerCase()}" component has to be used inside an ${dropdownComponent} element.`);
|
|
50
|
-
return (h("atomic-component-error", { key: '
|
|
50
|
+
return (h("atomic-component-error", { key: '448c1638e4cd2601aaaf0c133fcf1f7810dd7b30', element: this.host, error: error }));
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
get host() { return this; }
|
|
@@ -59,7 +59,7 @@ const AtomicTabManager$1 = /*@__PURE__*/ proxyCustomElement(class AtomicTabManag
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
62
|
+
return (h(Host, { key: '4ea1e2534d1a02ca62d7ac6ec6462252e3d562ee' }, h("atomic-tab-bar", { key: '98896c96e0599094edee87021c10c9fe6fbf3ab0' }, h("div", { key: '2087916e6bda8851a9296a194bbe0cdca44e6330', role: "list", "aria-label": "tab-area", part: "tab-area", class: "border-neutral mb-2 flex w-full flex-row border-b" }, this.tabs.map((tab) => (h("atomic-tab-button", { active: this.tabManagerState.activeTab === tab.name, label: this.bindings.i18n.t(tab.label, {
|
|
63
63
|
defaultValue: tab.label,
|
|
64
64
|
}), select: () => {
|
|
65
65
|
if (!tab.tabController.state.isActive) {
|
|
@@ -19,9 +19,9 @@ import { renderFacetValuesGroup } from "../../common/facets/facet-values-group/f
|
|
|
19
19
|
import { booleanConverter } from "../../../converters/boolean-converter";
|
|
20
20
|
import { bindStateToController } from "../../../decorators/bind-state";
|
|
21
21
|
import { bindingGuard } from "../../../decorators/binding-guard";
|
|
22
|
-
import { bindings } from "../../../decorators/bindings";
|
|
23
22
|
import { errorGuard } from "../../../decorators/error-guard";
|
|
24
23
|
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
24
|
+
import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin";
|
|
25
25
|
import { AriaLiveRegionController, FocusTargetController, } from "../../../utils/accessibility-utils";
|
|
26
26
|
import { getFieldValueCaption } from "../../../utils/field-utils";
|
|
27
27
|
import { renderCategoryFacetAllCategoryButton } from '../../common/facets/category-facet/all-categories-button';
|
|
@@ -74,7 +74,7 @@ import styles from './atomic-commerce-category-facet.tw.css';
|
|
|
74
74
|
* @part show-more-less-icon - The icons of the "Show more" and "Show less" buttons.
|
|
75
75
|
*
|
|
76
76
|
*/
|
|
77
|
-
let AtomicCommerceCategoryFacet = class AtomicCommerceCategoryFacet extends LitElement {
|
|
77
|
+
let AtomicCommerceCategoryFacet = class AtomicCommerceCategoryFacet extends InitializeBindingsMixin(LitElement) {
|
|
78
78
|
constructor() {
|
|
79
79
|
super(...arguments);
|
|
80
80
|
/**
|
|
@@ -403,7 +403,6 @@ __decorate([
|
|
|
403
403
|
], AtomicCommerceCategoryFacet.prototype, "render", null);
|
|
404
404
|
AtomicCommerceCategoryFacet = __decorate([
|
|
405
405
|
customElement('atomic-commerce-category-facet'),
|
|
406
|
-
bindings(),
|
|
407
406
|
withTailwindStyles
|
|
408
407
|
], AtomicCommerceCategoryFacet);
|
|
409
408
|
export { AtomicCommerceCategoryFacet };
|
package/dist/atomic/components/components/commerce/atomic-commerce-facet/atomic-commerce-facet.js
CHANGED
|
@@ -18,9 +18,9 @@ import { renderFacetValuesGroup } from "../../common/facets/facet-values-group/f
|
|
|
18
18
|
import { booleanConverter } from "../../../converters/boolean-converter";
|
|
19
19
|
import { bindStateToController } from "../../../decorators/bind-state";
|
|
20
20
|
import { bindingGuard } from "../../../decorators/binding-guard";
|
|
21
|
-
import { bindings } from "../../../decorators/bindings";
|
|
22
21
|
import { errorGuard } from "../../../decorators/error-guard";
|
|
23
22
|
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles";
|
|
23
|
+
import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin";
|
|
24
24
|
import { AriaLiveRegionController, FocusTargetController, } from "../../../utils/accessibility-utils";
|
|
25
25
|
import { announceFacetSearchResultsWithAriaLive } from '../../common/facets/facet-search/facet-search-aria-live';
|
|
26
26
|
import { shouldDisplaySearchResults, shouldUpdateFacetSearchComponent, } from '../../common/facets/facet-search/facet-search-utils';
|
|
@@ -58,7 +58,7 @@ import styles from './atomic-commerce-facet.tw.css';
|
|
|
58
58
|
* @part show-less - The show less results button.
|
|
59
59
|
* @part show-more-less-icon - The icons of the show more & show less buttons.
|
|
60
60
|
*/
|
|
61
|
-
let AtomicCommerceFacet = class AtomicCommerceFacet extends LitElement {
|
|
61
|
+
let AtomicCommerceFacet = class AtomicCommerceFacet extends InitializeBindingsMixin(LitElement) {
|
|
62
62
|
constructor() {
|
|
63
63
|
super(...arguments);
|
|
64
64
|
/**
|
|
@@ -71,7 +71,7 @@ let AtomicCommerceFacet = class AtomicCommerceFacet extends LitElement {
|
|
|
71
71
|
this.validateFacet();
|
|
72
72
|
this.initFocusTargets();
|
|
73
73
|
this.ensureSubscribed();
|
|
74
|
-
this.
|
|
74
|
+
this.initAriaLive();
|
|
75
75
|
}
|
|
76
76
|
disconnectedCallback() {
|
|
77
77
|
this.unsubscribeFacetController?.();
|
|
@@ -318,7 +318,6 @@ __decorate([
|
|
|
318
318
|
], AtomicCommerceFacet.prototype, "render", null);
|
|
319
319
|
AtomicCommerceFacet = __decorate([
|
|
320
320
|
customElement('atomic-commerce-facet'),
|
|
321
|
-
bindings(),
|
|
322
321
|
withTailwindStyles
|
|
323
322
|
], AtomicCommerceFacet);
|
|
324
323
|
export { AtomicCommerceFacet };
|
|
@@ -14,6 +14,7 @@ import { bindStateToController } from "../../../decorators/bind-state";
|
|
|
14
14
|
import { bindingGuard } from "../../../decorators/binding-guard";
|
|
15
15
|
import { errorGuard } from "../../../decorators/error-guard";
|
|
16
16
|
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles";
|
|
17
|
+
import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin";
|
|
17
18
|
import { FocusTargetController } from "../../../utils/accessibility-utils";
|
|
18
19
|
import { shouldDisplayInputForFacetRange } from '../../common/facets/facet-common';
|
|
19
20
|
import { renderFacetContainer } from '../../common/facets/facet-container/facet-container';
|
|
@@ -21,7 +22,6 @@ import { renderFacetHeader } from '../../common/facets/facet-header/facet-header
|
|
|
21
22
|
import { renderNumericFacetValue } from '../../common/facets/numeric-facet/value-link';
|
|
22
23
|
import { defaultCurrencyFormatter, defaultNumberFormatter, } from '../../common/formats/format-common';
|
|
23
24
|
import '../atomic-commerce-facet-number-input/atomic-commerce-facet-number-input';
|
|
24
|
-
import { bindings } from "../../../decorators/bindings";
|
|
25
25
|
import styles from './atomic-commerce-numeric-facet.tw.css';
|
|
26
26
|
/**
|
|
27
27
|
* The `atomic-commerce-numeric-facet` component renders a commerce facet that allows the user to filter products using numeric ranges.
|
|
@@ -43,7 +43,7 @@ import styles from './atomic-commerce-numeric-facet.tw.css';
|
|
|
43
43
|
* @part input-end - The input field to enter the maximum numeric value.
|
|
44
44
|
* @part input-apply-button - The button to apply custom numeric range values.
|
|
45
45
|
*/
|
|
46
|
-
let AtomicCommerceNumericFacet = class AtomicCommerceNumericFacet extends LitElement {
|
|
46
|
+
let AtomicCommerceNumericFacet = class AtomicCommerceNumericFacet extends InitializeBindingsMixin(LitElement) {
|
|
47
47
|
constructor() {
|
|
48
48
|
super(...arguments);
|
|
49
49
|
/**
|
|
@@ -225,7 +225,6 @@ __decorate([
|
|
|
225
225
|
], AtomicCommerceNumericFacet.prototype, "render", null);
|
|
226
226
|
AtomicCommerceNumericFacet = __decorate([
|
|
227
227
|
customElement('atomic-commerce-numeric-facet'),
|
|
228
|
-
bindings(),
|
|
229
228
|
withTailwindStyles
|
|
230
229
|
], AtomicCommerceNumericFacet);
|
|
231
230
|
export { AtomicCommerceNumericFacet };
|
|
@@ -18,10 +18,10 @@ import { bindStateToController } from "../../../decorators/bind-state";
|
|
|
18
18
|
import { bindingGuard } from "../../../decorators/binding-guard";
|
|
19
19
|
import { errorGuard } from "../../../decorators/error-guard";
|
|
20
20
|
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
21
|
+
import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin";
|
|
21
22
|
import { FocusTargetController } from "../../../utils/accessibility-utils";
|
|
22
23
|
import { parseDate } from "../../../utils/date-utils";
|
|
23
24
|
import '../../common/atomic-facet-date-input/atomic-facet-date-input';
|
|
24
|
-
import { bindings } from "../../../decorators/bindings";
|
|
25
25
|
import { shouldDisplayInputForFacetRange } from '../../common/facets/facet-common';
|
|
26
26
|
import styles from './atomic-commerce-timeframe-facet.tw.css';
|
|
27
27
|
/**
|
|
@@ -43,7 +43,7 @@ import styles from './atomic-commerce-timeframe-facet.tw.css';
|
|
|
43
43
|
* @part input-end - The end date input field.
|
|
44
44
|
* @part input-apply-button - The button to apply date range selection.
|
|
45
45
|
*/
|
|
46
|
-
let AtomicCommerceTimeframeFacet = class AtomicCommerceTimeframeFacet extends LitElement {
|
|
46
|
+
let AtomicCommerceTimeframeFacet = class AtomicCommerceTimeframeFacet extends InitializeBindingsMixin(LitElement) {
|
|
47
47
|
constructor() {
|
|
48
48
|
super(...arguments);
|
|
49
49
|
/**
|
|
@@ -258,7 +258,6 @@ __decorate([
|
|
|
258
258
|
], AtomicCommerceTimeframeFacet.prototype, "render", null);
|
|
259
259
|
AtomicCommerceTimeframeFacet = __decorate([
|
|
260
260
|
customElement('atomic-commerce-timeframe-facet'),
|
|
261
|
-
bindings(),
|
|
262
261
|
withTailwindStyles
|
|
263
262
|
], AtomicCommerceTimeframeFacet);
|
|
264
263
|
export { AtomicCommerceTimeframeFacet };
|
package/dist/atomic/components/components/common/atomic-facet-date-input/atomic-facet-date-input.js
CHANGED
|
@@ -11,9 +11,9 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
11
11
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
12
12
|
import { renderButton } from "../button";
|
|
13
13
|
import { bindingGuard } from "../../../decorators/binding-guard";
|
|
14
|
-
import { bindings } from "../../../decorators/bindings";
|
|
15
14
|
import { errorGuard } from "../../../decorators/error-guard";
|
|
16
15
|
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
16
|
+
import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin";
|
|
17
17
|
import { parseDate } from "../../../utils/date-utils";
|
|
18
18
|
/**
|
|
19
19
|
* Internal component made to be integrated in a TimeframeFacet.
|
|
@@ -23,13 +23,12 @@ import { parseDate } from "../../../utils/date-utils";
|
|
|
23
23
|
*
|
|
24
24
|
* @internal
|
|
25
25
|
*/
|
|
26
|
-
let AtomicFacetDateInput = class AtomicFacetDateInput extends LitElement {
|
|
26
|
+
let AtomicFacetDateInput = class AtomicFacetDateInput extends InitializeBindingsMixin(LitElement) {
|
|
27
27
|
constructor() {
|
|
28
28
|
super(...arguments);
|
|
29
29
|
this.startRef = createRef();
|
|
30
30
|
this.endRef = createRef();
|
|
31
31
|
}
|
|
32
|
-
initialize() { }
|
|
33
32
|
connectedCallback() {
|
|
34
33
|
super.connectedCallback();
|
|
35
34
|
this.validateParentComponent();
|
|
@@ -219,7 +218,6 @@ __decorate([
|
|
|
219
218
|
], AtomicFacetDateInput.prototype, "render", null);
|
|
220
219
|
AtomicFacetDateInput = __decorate([
|
|
221
220
|
customElement('atomic-facet-date-input'),
|
|
222
|
-
bindings(),
|
|
223
221
|
withTailwindStyles
|
|
224
222
|
], AtomicFacetDateInput);
|
|
225
223
|
export { AtomicFacetDateInput };
|
package/dist/atomic/components/components/search/atomic-results-per-page/atomic-results-per-page.js
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
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 { buildResultsPerPage, buildSearchStatus, } from '@coveo/headless';
|
|
8
|
+
import { html, LitElement } from 'lit';
|
|
9
|
+
import { customElement, property, state } from 'lit/decorators.js';
|
|
10
|
+
import { renderFieldsetGroup } from "../../common/fieldset-group.js";
|
|
11
|
+
import { createAppLoadedListener } from "../../common/interface/store.js";
|
|
12
|
+
import { renderChoices } from "../../common/items-per-page/choices.js";
|
|
13
|
+
import { ChoiceIsNaNError, InitialChoiceNotInChoicesError, } from "../../common/items-per-page/error.js";
|
|
14
|
+
import { renderLabel } from "../../common/items-per-page/label.js";
|
|
15
|
+
import { convertChoicesToNumbers, validateInitialChoice, } from "../../common/items-per-page/validate.js";
|
|
16
|
+
import { renderPagerGuard } from "../../common/pager/pager-guard.js";
|
|
17
|
+
import { bindStateToController } from "../../../decorators/bind-state.js";
|
|
18
|
+
import { bindingGuard } from "../../../decorators/binding-guard.js";
|
|
19
|
+
import { bindings } from "../../../decorators/bindings.js";
|
|
20
|
+
import { errorGuard } from "../../../decorators/error-guard.js";
|
|
21
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
22
|
+
import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin.js";
|
|
23
|
+
import { randomID } from "../../../utils/utils.js";
|
|
24
|
+
/**
|
|
25
|
+
* The `atomic-results-per-page` component determines how many results to display per page.
|
|
26
|
+
*
|
|
27
|
+
* @part label - The "Results per page" label.
|
|
28
|
+
* @part buttons - The list of buttons.
|
|
29
|
+
* @part button - The result per page button.
|
|
30
|
+
* @part active-button - The active result per page button.
|
|
31
|
+
*/
|
|
32
|
+
let AtomicResultsPerPage = class AtomicResultsPerPage extends InitializeBindingsMixin(LitElement) {
|
|
33
|
+
constructor() {
|
|
34
|
+
super(...arguments);
|
|
35
|
+
this.radioGroupName = randomID('atomic-results-per-page-');
|
|
36
|
+
this.isAppLoaded = false;
|
|
37
|
+
/**
|
|
38
|
+
* A list of choices for the number of results to display per page, separated by commas.
|
|
39
|
+
*/
|
|
40
|
+
this.choicesDisplayed = '10,25,50,100';
|
|
41
|
+
}
|
|
42
|
+
initialize() {
|
|
43
|
+
try {
|
|
44
|
+
this.choices = convertChoicesToNumbers(this.choicesDisplayed);
|
|
45
|
+
this.initialChoice = this.initialChoice ?? this.choices[0];
|
|
46
|
+
validateInitialChoice(this.initialChoice, this.choices);
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
if (error instanceof ChoiceIsNaNError ||
|
|
50
|
+
error instanceof InitialChoiceNotInChoicesError) {
|
|
51
|
+
this.bindings.engine.logger.error(error.message, this);
|
|
52
|
+
throw error;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
this.searchStatus = buildSearchStatus(this.bindings.engine);
|
|
56
|
+
this.resultPerPage = buildResultsPerPage(this.bindings.engine, {
|
|
57
|
+
initialState: { numberOfResults: this.initialChoice },
|
|
58
|
+
});
|
|
59
|
+
createAppLoadedListener(this.bindings.store, (isAppLoaded) => {
|
|
60
|
+
this.isAppLoaded = isAppLoaded;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
scrollToTopEvent() {
|
|
64
|
+
this.dispatchEvent(new CustomEvent('atomic/scrollToTop', {
|
|
65
|
+
bubbles: true,
|
|
66
|
+
composed: true,
|
|
67
|
+
}));
|
|
68
|
+
}
|
|
69
|
+
get label() {
|
|
70
|
+
return this.bindings.i18n.t('results-per-page');
|
|
71
|
+
}
|
|
72
|
+
render() {
|
|
73
|
+
if (!this.searchStatusState) {
|
|
74
|
+
return html ``;
|
|
75
|
+
}
|
|
76
|
+
return html `
|
|
77
|
+
${renderPagerGuard({
|
|
78
|
+
props: {
|
|
79
|
+
hasError: this.searchStatusState.hasError,
|
|
80
|
+
hasItems: this.searchStatusState.hasResults,
|
|
81
|
+
isAppLoaded: this.isAppLoaded,
|
|
82
|
+
},
|
|
83
|
+
})(html `
|
|
84
|
+
<div class="flex items-center" role="toolbar" aria-label=${this.label}>
|
|
85
|
+
${renderLabel()(html `${this.label}`)}
|
|
86
|
+
${renderFieldsetGroup({
|
|
87
|
+
props: {
|
|
88
|
+
label: this.label,
|
|
89
|
+
},
|
|
90
|
+
})(renderChoices({
|
|
91
|
+
props: {
|
|
92
|
+
label: this.label,
|
|
93
|
+
groupName: this.radioGroupName,
|
|
94
|
+
pageSize: this.resultPerPageState.numberOfResults,
|
|
95
|
+
choices: this.choices,
|
|
96
|
+
lang: this.bindings.i18n.language,
|
|
97
|
+
scrollToTopEvent: () => this.scrollToTopEvent(),
|
|
98
|
+
setItemSize: (size) => this.resultPerPage.set(size),
|
|
99
|
+
focusOnFirstResultAfterNextSearch: () => this.bindings.store.state.resultList?.focusOnFirstResultAfterNextSearch(),
|
|
100
|
+
focusOnNextNewResult: () => this.bindings.store.state.resultList?.focusOnNextNewResult(),
|
|
101
|
+
},
|
|
102
|
+
}))}
|
|
103
|
+
</div>
|
|
104
|
+
`)}
|
|
105
|
+
`;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
__decorate([
|
|
109
|
+
state()
|
|
110
|
+
], AtomicResultsPerPage.prototype, "bindings", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
state()
|
|
113
|
+
], AtomicResultsPerPage.prototype, "error", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
state(),
|
|
116
|
+
bindStateToController('resultPerPage')
|
|
117
|
+
], AtomicResultsPerPage.prototype, "resultPerPageState", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
bindStateToController('searchStatus'),
|
|
120
|
+
state()
|
|
121
|
+
], AtomicResultsPerPage.prototype, "searchStatusState", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
state()
|
|
124
|
+
], AtomicResultsPerPage.prototype, "isAppLoaded", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
property({ reflect: true, attribute: 'choices-displayed' })
|
|
127
|
+
], AtomicResultsPerPage.prototype, "choicesDisplayed", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
property({ type: Number, reflect: true, attribute: 'initial-choice' })
|
|
130
|
+
], AtomicResultsPerPage.prototype, "initialChoice", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
bindingGuard(),
|
|
133
|
+
errorGuard()
|
|
134
|
+
], AtomicResultsPerPage.prototype, "render", null);
|
|
135
|
+
AtomicResultsPerPage = __decorate([
|
|
136
|
+
customElement('atomic-results-per-page'),
|
|
137
|
+
bindings(),
|
|
138
|
+
withTailwindStyles
|
|
139
|
+
], AtomicResultsPerPage);
|
|
140
|
+
export { AtomicResultsPerPage };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
// Auto-generated file
|
|
2
|
+
export { AtomicResultsPerPage } from './atomic-results-per-page/atomic-results-per-page.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA;;;;;;;;;;;;SAYgB,cAAc,CAAoB,OAAgB;IAChE,OAAO,WAAW,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACnD;;MCjCa,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,WAAmB,EAAE,UAAkB;QACjD,KAAK,CACH,QAAQ,WAAW,sCAAsC,UAAU,YAAY,CAChF,CAAC;KACH;;;ACfH,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;SAIpC,gBAAgB,CAAI,OAAgB,EAAE,UAAkB;IACtE,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM;QACpC,MAAM,KAAK,GAAG,gBAAgB,CAC5B,oBAAoB,EACpB,CAAC,IAAO;YACN,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;SACtB,CACF,CAAC;QACF,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YACjC,MAAM,CACJ,IAAI,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,UAAU,CAAC,CACnE,CAAC;SACH;KACF,CAAC,CAAC;AACL;;ACoDA;;;;;;;;;;SAUgB,mBAAmB,CAAoB,OAAgB;IACrE,OAAO,gBAAgB,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACxD;;;;","names":[],"sources":["src/components/commerce/product-template-component-utils/stencil-product-template-decorators.tsx","src/components/common/item-list/context/item-context-controller.ts","src/components/common/item-list/fetch-item-context.ts","src/decorators/commerce/product-template-decorators.ts"],"sourcesContent":["import {Product} from '@coveo/headless/commerce';\nimport {\n InteractiveItemContext,\n InteractiveItemContextEvent,\n ItemContext,\n ItemContextEvent,\n itemContext,\n} from '../../common/item-list/stencil-item-decorators';\n\n/**\n * A [StencilJS property decorator](https://stenciljs.com/) to be used for product template components.\n * This allows the Stencil component to fetch the current product from its rendered parent, the `atomic-product` component.\n *\n * Example:\n * ```\n * @ProductContext() private product!: Product;\n * ```\n *\n * For more information and examples, view the [Utilities section](https://github.com/coveo/ui-kit/tree/master/packages/atomic#utilities) of the Coveo Atomic README.\n *\n * @deprecated should only be used for Stencil components. For Lit components, use `createProductContextController` from \\@/src/decorators/commerce/product-template-decorators.ts\n */\nexport function ProductContext(opts: {folded: boolean} = {folded: false}) {\n return ItemContext({parentName: 'atomic-product', folded: opts.folded});\n}\n\nexport function InteractiveProductContext() {\n return InteractiveItemContext();\n}\n\nexport type ProductContextEvent<T = Product> = ItemContextEvent<T>;\nexport type InteractiveProductContextEvent = InteractiveItemContextEvent;\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This method is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the method in the [connectedCallback lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered \"atomic-product\".\n * @returns A promise that resolves on initialization of the parent \"atomic-product\" element, or rejects when there is no parent \"atomic-product\" element.\n *\n * @deprecated should only be used for Stencil components. For Lit components, use `fetchProductContext` from \\@/src/decorators/commerce/product-template-decorators.ts\n */\nexport function productContext<T extends Product>(element: Element) {\n return itemContext<T>(element, 'atomic-product');\n}\n","import type {LitElement, ReactiveController, ReactiveControllerHost} from 'lit';\nimport type {InitializableComponent} from '@/src/decorators/types.js';\nimport {buildCustomEvent} from '@/src/utils/event-utils';\n\ntype LitElementWithError = Omit<\n Pick<InitializableComponent, 'error'>,\n 'error'\n> &\n LitElement & {\n error: Error | null;\n };\n\nconst itemContextEventName = 'atomic/resolveResult';\n\nexport class MissingParentError extends Error {\n constructor(elementName: string, parentName: string) {\n super(\n `The \"${elementName}\" element must be the child of an \"${parentName}\" element.`\n );\n }\n}\n\nfunction extractFolded<T = Record<string, unknown>>(\n item: Record<string, unknown>,\n returnFolded: boolean\n): T {\n if (returnFolded) {\n if ('children' in item) {\n return item as T;\n } else {\n return {children: [], result: item} as T;\n }\n }\n\n if ('children' in item && 'result' in item) {\n return item.result as T;\n }\n return item as T;\n}\n\n/**\n * A reactive controller that manages item context data from parent components.\n * Handles fetching item data via custom events and manages error states.\n */\nexport class ItemContextController<T = Record<string, unknown>>\n implements ReactiveController\n{\n private host: ReactiveControllerHost & LitElementWithError;\n private parentName: string;\n private folded: boolean;\n private _item: T | null = null;\n private _error: MissingParentError | null = null;\n\n constructor(\n host: ReactiveControllerHost & LitElementWithError,\n options: {parentName?: string; folded?: boolean} = {}\n ) {\n this.host = host;\n this.parentName = options.parentName ?? 'atomic-result';\n this.folded = options.folded ?? false;\n host.addController(this);\n }\n\n get item(): T | null {\n return this._error ? null : this._item;\n }\n\n get error(): MissingParentError | null {\n return this._error;\n }\n\n get hasError(): boolean {\n return this._error !== null;\n }\n\n hostConnected(): void {\n this._resolveItemContext();\n }\n\n private _resolveItemContext(): void {\n const event = buildCustomEvent(\n itemContextEventName,\n (item: Record<string, unknown>) => {\n this._item = extractFolded<T>(item, this.folded);\n this._error = null;\n this.host.error = null;\n this.host.requestUpdate();\n }\n );\n\n const canceled = this.host.dispatchEvent(event);\n if (canceled) {\n const elementName = (this.host as Element).nodeName.toLowerCase();\n this._error = new MissingParentError(elementName, this.parentName);\n this._item = null;\n this.host.error = this._error;\n this.host.requestUpdate();\n }\n }\n}\n\ntype ItemContextEventHandler<T> = (item: T) => void;\nexport type ItemContextEvent<T> = CustomEvent<ItemContextEventHandler<T>>;\n","import {closest} from '../../../utils/dom-utils.js';\nimport {buildCustomEvent} from '../../../utils/event-utils.js';\nimport {MissingParentError} from './context/item-context-controller.js';\n\nconst itemContextEventName = 'atomic/resolveResult';\n\ntype ItemContextEventHandler<T> = (item: T) => void;\n\nexport function fetchItemContext<T>(element: Element, parentName: string) {\n return new Promise<T>((resolve, reject) => {\n const event = buildCustomEvent<ItemContextEventHandler<T>>(\n itemContextEventName,\n (item: T) => {\n return resolve(item);\n }\n );\n element.dispatchEvent(event);\n\n if (!closest(element, parentName)) {\n reject(\n new MissingParentError(element.nodeName.toLowerCase(), parentName)\n );\n }\n });\n}\n","import type {InteractiveProduct, Product} from '@coveo/headless/commerce';\nimport type {LitElement} from 'lit';\nimport {\n InteractiveItemContextController,\n type InteractiveItemContextEvent,\n} from '@/src/components/common/item-list/context/interactive-item-context-controller';\nimport {\n ItemContextController,\n type ItemContextEvent,\n} from '@/src/components/common/item-list/context/item-context-controller';\nimport {fetchItemContext} from '@/src/components/common/item-list/fetch-item-context';\n\n/**\n * Creates a [Lit reactive controller](https://lit.dev/docs/composition/controllers/) for managing product context in product template components.\n *\n * @param host - The Lit component instance\n * @param options - Configuration options\n * @returns ItemContextController instance configured for atomic-product\n *\n * @example\n * ```typescript\n * @customElement('my-product-component')\n * export class MyProductComponent extends LitElement {\n * private productController = createProductContextController(this);\n *\n * @state() product!: Product;\n *\n * render() {\n * this.product = this.productController.item;\n * return html`<div>${this.product?.ec_name}</div>`;\n * }\n * }\n * ```\n */\nexport function createProductContextController(\n host: LitElement & {error: Error | null},\n options: {folded?: boolean} = {}\n): ItemContextController<Product> {\n return new ItemContextController<Product>(host, {\n parentName: 'atomic-product',\n folded: options.folded ?? false,\n });\n}\n\n/**\n * Creates a [Lit reactive controller](https://lit.dev/docs/composition/controllers/) for managing interactive product context in product template components.\n *\n * @param host - The Lit component instance\n * @returns InteractiveItemContextController instance\n *\n * @example\n * ```typescript\n * @customElement('my-interactive-product-component')\n * export class MyInteractiveProductComponent extends LitElement {\n * private interactiveProductController = createInteractiveProductContextController(this);\n *\n * @state() product!: Product;\n *\n * render() {\n * this.product = this.interactiveProductController.interactiveItem;\n * return html`<div>${this.product?.ec_name}</div>`;\n * }\n * }\n * ```\n */\nexport function createInteractiveProductContextController(\n host: LitElement & {error: Error}\n): InteractiveItemContextController<InteractiveProduct> {\n return new InteractiveItemContextController<InteractiveProduct>(host);\n}\n\nexport type ProductContextEvent<T = Product> = ItemContextEvent<T>;\nexport type InteractiveProductContextEvent<\n T extends InteractiveProduct = InteractiveProduct,\n> = InteractiveItemContextEvent<T>;\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This utility function is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the utility function in the [`connectedCallback` lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered `atomic-product`.\n * @returns A promise that resolves on initialization of the parent `atomic-product` element, or rejects when there is no parent `atomic-product` element.\n */\nexport function fetchProductContext<T extends Product>(element: Element) {\n return fetchItemContext<T>(element, 'atomic-product');\n}\n"],"version":3}
|
|
1
|
+
{"file":"index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCA;;;;;;;;;;;;SAYgB,cAAc,CAAoB,OAAgB;IAChE,OAAO,WAAW,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACnD;;MCjCa,kBAAmB,SAAQ,KAAK;IAC3C,YAAY,WAAmB,EAAE,UAAkB;QACjD,KAAK,CACH,QAAQ,WAAW,sCAAsC,UAAU,YAAY,CAChF,CAAC;KACH;;;ACfH,MAAM,oBAAoB,GAAG,sBAAsB,CAAC;SAIpC,gBAAgB,CAAI,OAAgB,EAAE,UAAkB;IACtE,OAAO,IAAI,OAAO,CAAI,CAAC,OAAO,EAAE,MAAM;QACpC,MAAM,KAAK,GAAG,gBAAgB,CAC5B,oBAAoB,EACpB,CAAC,IAAO;YACN,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;SACtB,CACF,CAAC;QACF,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE;YACjC,MAAM,CACJ,IAAI,kBAAkB,CAAC,OAAO,CAAC,QAAQ,CAAC,WAAW,EAAE,EAAE,UAAU,CAAC,CACnE,CAAC;SACH;KACF,CAAC,CAAC;AACL;;ACoDA;;;;;;;;;;SAUgB,mBAAmB,CAAoB,OAAgB;IACrE,OAAO,gBAAgB,CAAI,OAAO,EAAE,gBAAgB,CAAC,CAAC;AACxD;;;;","names":[],"sources":["src/components/commerce/product-template-component-utils/stencil-product-template-decorators.tsx","src/components/common/item-list/context/item-context-controller.ts","src/components/common/item-list/fetch-item-context.ts","src/decorators/commerce/product-template-decorators.ts"],"sourcesContent":["import {Product} from '@coveo/headless/commerce';\nimport {\n InteractiveItemContext,\n InteractiveItemContextEvent,\n ItemContext,\n ItemContextEvent,\n itemContext,\n} from '../../common/item-list/stencil-item-decorators';\n\n/**\n * A [StencilJS property decorator](https://stenciljs.com/) to be used for product template components.\n * This allows the Stencil component to fetch the current product from its rendered parent, the `atomic-product` component.\n *\n * Example:\n * ```\n * @ProductContext() private product!: Product;\n * ```\n *\n * For more information and examples, view the [Utilities section](https://github.com/coveo/ui-kit/tree/master/packages/atomic#utilities) of the Coveo Atomic README.\n *\n * @deprecated should only be used for Stencil components. For Lit components, use `createProductContextController` from \\@/src/decorators/commerce/product-template-decorators.ts\n */\nexport function ProductContext(opts: {folded: boolean} = {folded: false}) {\n return ItemContext({parentName: 'atomic-product', folded: opts.folded});\n}\n\nexport function InteractiveProductContext() {\n return InteractiveItemContext();\n}\n\nexport type ProductContextEvent<T = Product> = ItemContextEvent<T>;\nexport type InteractiveProductContextEvent = InteractiveItemContextEvent;\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This method is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the method in the [connectedCallback lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered \"atomic-product\".\n * @returns A promise that resolves on initialization of the parent \"atomic-product\" element, or rejects when there is no parent \"atomic-product\" element.\n *\n * @deprecated should only be used for Stencil components. For Lit components, use `fetchProductContext` from \\@/src/decorators/commerce/product-template-decorators.ts\n */\nexport function productContext<T extends Product>(element: Element) {\n return itemContext<T>(element, 'atomic-product');\n}\n","import type {LitElement, ReactiveController, ReactiveControllerHost} from 'lit';\nimport type {InitializableComponent} from '@/src/decorators/types.js';\nimport {buildCustomEvent} from '@/src/utils/event-utils';\n\ntype LitElementWithError = Omit<\n Pick<InitializableComponent, 'error'>,\n 'error'\n> &\n LitElement & {\n error: Error | null;\n };\n\nconst itemContextEventName = 'atomic/resolveResult';\n\nexport class MissingParentError extends Error {\n constructor(elementName: string, parentName: string) {\n super(\n `The \"${elementName}\" element must be the child of an \"${parentName}\" element.`\n );\n }\n}\n\nfunction extractFolded<T = Record<string, unknown>>(\n item: Record<string, unknown>,\n returnFolded: boolean\n): T {\n if (returnFolded) {\n if ('children' in item) {\n return item as T;\n } else {\n return {children: [], result: item} as T;\n }\n }\n\n if ('children' in item && 'result' in item) {\n return item.result as T;\n }\n return item as T;\n}\n\n/**\n * A reactive controller that manages item context data from parent components.\n * Handles fetching item data via custom events and manages error states.\n */\nexport class ItemContextController<T = Record<string, unknown>>\n implements ReactiveController\n{\n private host: ReactiveControllerHost & LitElementWithError;\n private parentName: string;\n private folded: boolean;\n private _item: T | null = null;\n private _error: MissingParentError | null = null;\n\n constructor(\n host: ReactiveControllerHost & LitElementWithError,\n options: {parentName?: string; folded?: boolean} = {}\n ) {\n this.host = host;\n this.parentName = options.parentName ?? 'atomic-result';\n this.folded = options.folded ?? false;\n host.addController(this);\n }\n\n get item(): T | null {\n return this._error ? null : this._item;\n }\n\n get error(): MissingParentError | null {\n return this._error;\n }\n\n get hasError(): boolean {\n return this._error !== null;\n }\n\n hostConnected(): void {\n this._resolveItemContext();\n }\n\n private _resolveItemContext(): void {\n const event = buildCustomEvent(\n itemContextEventName,\n (item: Record<string, unknown>) => {\n this._item = extractFolded<T>(item, this.folded);\n this._error = null;\n this.host.error = null;\n this.host.requestUpdate();\n }\n );\n\n const canceled = this.host.dispatchEvent(event);\n if (canceled) {\n const elementName = (this.host as Element).nodeName.toLowerCase();\n this._error = new MissingParentError(elementName, this.parentName);\n this._item = null;\n this.host.error = this._error;\n this.host.requestUpdate();\n }\n }\n}\n\ntype ItemContextEventHandler<T> = (item: T) => void;\nexport type ItemContextEvent<T> = CustomEvent<ItemContextEventHandler<T>>;\n","import {closest} from '../../../utils/dom-utils.js';\nimport {buildCustomEvent} from '../../../utils/event-utils.js';\nimport {MissingParentError} from './context/item-context-controller.js';\n\nconst itemContextEventName = 'atomic/resolveResult';\n\ntype ItemContextEventHandler<T> = (item: T) => void;\n\nexport function fetchItemContext<T>(element: Element, parentName: string) {\n return new Promise<T>((resolve, reject) => {\n const event = buildCustomEvent<ItemContextEventHandler<T>>(\n itemContextEventName,\n (item: T) => {\n return resolve(item);\n }\n );\n element.dispatchEvent(event);\n\n if (!closest(element, parentName)) {\n reject(\n new MissingParentError(element.nodeName.toLowerCase(), parentName)\n );\n }\n });\n}\n","import type {InteractiveProduct, Product} from '@coveo/headless/commerce';\nimport type {LitElement} from 'lit';\nimport {\n InteractiveItemContextController,\n type InteractiveItemContextEvent,\n} from '@/src/components/common/item-list/context/interactive-item-context-controller';\nimport {\n ItemContextController,\n type ItemContextEvent,\n} from '@/src/components/common/item-list/context/item-context-controller';\nimport {fetchItemContext} from '@/src/components/common/item-list/fetch-item-context';\n\n/**\n * Creates a [Lit reactive controller](https://lit.dev/docs/composition/controllers/) for managing product context in product template components.\n *\n * @param host - The Lit component instance\n * @param options - Configuration options\n * @returns ItemContextController instance configured for atomic-product\n *\n * @example\n * ```typescript\n * @customElement('my-product-component')\n * export class MyProductComponent extends LitElement {\n * private productController = createProductContextController(this);\n *\n * @state() product!: Product;\n *\n * render() {\n * this.product = this.productController.item;\n * return html`<div>${this.product?.ec_name}</div>`;\n * }\n * }\n * ```\n */\nexport function createProductContextController(\n host: LitElement & {error: Error | null},\n options: {folded?: boolean} = {}\n): ItemContextController<Product> {\n return new ItemContextController<Product>(host, {\n parentName: 'atomic-product',\n folded: options.folded ?? false,\n });\n}\n\n/**\n * Creates a [Lit reactive controller](https://lit.dev/docs/composition/controllers/) for managing interactive product context in product template components.\n *\n * @param host - The Lit component instance\n * @returns InteractiveItemContextController instance\n *\n * @example\n * ```typescript\n * @customElement('my-interactive-product-component')\n * export class MyInteractiveProductComponent extends LitElement {\n * private interactiveProductController = createInteractiveProductContextController(this);\n *\n * @state() product!: Product;\n *\n * render() {\n * this.product = this.interactiveProductController.interactiveItem;\n * return html`<div>${this.product?.ec_name}</div>`;\n * }\n * }\n * ```\n */\nexport function createInteractiveProductContextController(\n host: LitElement & {error: Error}\n): InteractiveItemContextController<InteractiveProduct> {\n return new InteractiveItemContextController<InteractiveProduct>(host);\n}\n\nexport type ProductContextEvent<T = Product> = ItemContextEvent<T>;\nexport type InteractiveProductContextEvent<\n T extends InteractiveProduct = InteractiveProduct,\n> = InteractiveItemContextEvent<T>;\n\n/**\n * Retrieves `Product` on a rendered `atomic-product`.\n *\n * This utility function is useful for building custom product template elements, see [Create a Product List](https://docs.coveo.com/en/atomic/latest/cc-search/create-custom-components/native-components/#custom-product-template-component-example) for more information.\n *\n * You should use the utility function in the [`connectedCallback` lifecycle method](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#using_the_lifecycle_callbacks).\n *\n * @param element - The element that the event is dispatched to, which must be the child of a rendered `atomic-product`.\n * @returns A promise that resolves on initialization of the parent `atomic-product` element, or rejects when there is no parent `atomic-product` element.\n */\nexport function fetchProductContext<T extends Product>(element: Element) {\n return fetchItemContext<T>(element, 'atomic-product');\n}\n"],"version":3}
|
|
@@ -1,7 +1,47 @@
|
|
|
1
1
|
import { h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { l as listenOnce } from './event-utils.js';
|
|
3
3
|
import { a as getRippleColorForButtonStyle, g as getClassNameForButtonStyle } from './stencil-button-style.js';
|
|
4
4
|
|
|
5
|
+
const RIPPLE = 'ripple';
|
|
6
|
+
function getAnimationDurationInMilliseconds(radiusPixels) {
|
|
7
|
+
// A 318px wide button has a duration of 700ms.
|
|
8
|
+
return Math.cbrt(radiusPixels) * 129.21;
|
|
9
|
+
}
|
|
10
|
+
function setPositionRelativeIfStatic(element) {
|
|
11
|
+
if (getComputedStyle(element).position === 'static') {
|
|
12
|
+
element.classList.add('ripple-relative');
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
async function createRipple(event, options) {
|
|
16
|
+
const button = options.parent ?? event.currentTarget;
|
|
17
|
+
const existingRipple = button.getElementsByClassName(RIPPLE)[0];
|
|
18
|
+
existingRipple?.remove();
|
|
19
|
+
button.classList.add('ripple-parent');
|
|
20
|
+
setPositionRelativeIfStatic(button);
|
|
21
|
+
Array.from(button.children).forEach(setPositionRelativeIfStatic);
|
|
22
|
+
const ripple = document.createElement('span');
|
|
23
|
+
ripple.classList.add(RIPPLE);
|
|
24
|
+
ripple.style.backgroundColor = `var(--atomic-${options.color})`;
|
|
25
|
+
ripple.setAttribute('part', RIPPLE);
|
|
26
|
+
const diameter = Math.max(button.clientWidth, button.clientHeight);
|
|
27
|
+
const radius = diameter / 2;
|
|
28
|
+
const animationDuration = getAnimationDurationInMilliseconds(radius);
|
|
29
|
+
const { top, left } = button.getBoundingClientRect();
|
|
30
|
+
ripple.style.width = ripple.style.height = `${diameter}px`;
|
|
31
|
+
ripple.style.left = `${event.clientX - (left + radius)}px`;
|
|
32
|
+
ripple.style.top = `${event.clientY - (top + radius)}px`;
|
|
33
|
+
ripple.style.setProperty('--animation-duration', `${animationDuration}ms`);
|
|
34
|
+
button.prepend(ripple);
|
|
35
|
+
await cleanupAnimationOnFinish(ripple, animationDuration);
|
|
36
|
+
}
|
|
37
|
+
async function cleanupAnimationOnFinish(ripple, animationDuration) {
|
|
38
|
+
listenOnce(ripple, 'animationend', () => {
|
|
39
|
+
ripple?.remove();
|
|
40
|
+
});
|
|
41
|
+
// Backup in case the button gets hidden or unmounted and the ripple hasn't been cleaned up.
|
|
42
|
+
setTimeout(() => ripple?.remove(), animationDuration + animationDuration * 0.1);
|
|
43
|
+
}
|
|
44
|
+
|
|
5
45
|
/**
|
|
6
46
|
* @deprecated Should only be used for Stencil components; for Lit components, use the button.ts file instead
|
|
7
47
|
*/
|
|
@@ -41,6 +81,6 @@ const Button = (props, children) => {
|
|
|
41
81
|
children));
|
|
42
82
|
};
|
|
43
83
|
|
|
44
|
-
export { Button as B };
|
|
84
|
+
export { Button as B, createRipple as c };
|
|
45
85
|
|
|
46
86
|
//# sourceMappingURL=stencil-button.js.map
|