@coveo/atomic 3.32.0-pre.e7e12372d0 → 3.32.0-pre.e8ed1bb1ff
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/search/atomic-results-per-page/atomic-results-per-page.js +135 -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-03044c63.entry.js +2 -0
- package/dist/atomic/{p-fbe77e4c.entry.js.map → p-03044c63.entry.js.map} +1 -1
- package/dist/atomic/p-051bf0a9.entry.js +2 -0
- package/dist/atomic/{p-f64b72ba.entry.js.map → p-051bf0a9.entry.js.map} +1 -1
- package/dist/atomic/{p-bb5786e8.js → p-05768310.js} +2 -2
- package/dist/atomic/p-06c81f77.entry.js +2 -0
- package/dist/atomic/{p-1a819cf9.entry.js.map → p-06c81f77.entry.js.map} +1 -1
- package/dist/atomic/{p-1ae38c73.entry.js → p-094221e8.entry.js} +2 -2
- package/dist/atomic/{p-74efd4b9.entry.js.map → p-094221e8.entry.js.map} +1 -1
- package/dist/atomic/p-17ba2cfd.entry.js +2 -0
- package/dist/atomic/p-17ba2cfd.entry.js.map +1 -0
- package/dist/atomic/{p-143b8dde.entry.js → p-19d45b5e.entry.js} +2 -2
- package/dist/atomic/p-1ab403a9.entry.js +2 -0
- package/dist/atomic/{p-42f148ff.entry.js.map → p-1ab403a9.entry.js.map} +1 -1
- package/dist/atomic/{p-a3dabead.js → p-1b679702.js} +2 -2
- package/dist/atomic/p-1f4ecbd5.entry.js +2 -0
- package/dist/atomic/{p-787959af.entry.js.map → p-1f4ecbd5.entry.js.map} +1 -1
- package/dist/atomic/p-2057acaf.entry.js +2 -0
- package/dist/atomic/{p-393ba53d.entry.js.map → p-2057acaf.entry.js.map} +1 -1
- package/dist/atomic/{p-5fa99042.js → p-225ff26e.js} +2 -2
- package/dist/atomic/{p-78fbfed0.entry.js → p-22fd08c5.entry.js} +2 -2
- package/dist/atomic/p-27fe0fb7.entry.js +2 -0
- package/dist/atomic/{p-53c4db57.entry.js.map → p-27fe0fb7.entry.js.map} +1 -1
- package/dist/atomic/p-2d6cf1f4.js +2 -0
- package/dist/atomic/{p-8b1a4f9e.entry.js → p-2ed1c3e7.entry.js} +2 -2
- package/dist/atomic/{p-56fdd00a.entry.js.map → p-2ed1c3e7.entry.js.map} +1 -1
- package/dist/atomic/{p-d917f9a3.js → p-2ef593e5.js} +2 -2
- package/dist/atomic/p-30d55166.entry.js +2 -0
- package/dist/atomic/{p-319a4417.entry.js.map → p-30d55166.entry.js.map} +1 -1
- package/dist/atomic/p-35ecd3a6.entry.js +2 -0
- package/dist/atomic/{p-10c682e1.entry.js.map → p-35ecd3a6.entry.js.map} +1 -1
- package/dist/atomic/p-386a9a7a.entry.js +2 -0
- package/dist/atomic/{p-cad100d5.entry.js.map → p-386a9a7a.entry.js.map} +1 -1
- package/dist/atomic/p-3e4df2e3.entry.js +2 -0
- package/dist/atomic/{p-e1e7434e.entry.js.map → p-3e4df2e3.entry.js.map} +1 -1
- package/dist/atomic/{p-1192c7ba.js → p-41200765.js} +2 -2
- package/dist/atomic/p-42a13138.entry.js +2 -0
- package/dist/atomic/{p-fbd06c3f.entry.js.map → p-42a13138.entry.js.map} +1 -1
- package/dist/atomic/{p-7c6865a2.entry.js → p-4304b82a.entry.js} +2 -2
- package/dist/atomic/{p-6a9280c3.entry.js.map → p-4304b82a.entry.js.map} +1 -1
- package/dist/atomic/p-43a05112.entry.js +2 -0
- package/dist/atomic/{p-34280d19.entry.js.map → p-43a05112.entry.js.map} +1 -1
- package/dist/atomic/p-481b3512.entry.js +2 -0
- package/dist/atomic/{p-43c979d8.entry.js.map → p-481b3512.entry.js.map} +1 -1
- package/dist/atomic/{p-74efd4b9.entry.js → p-4842dc87.entry.js} +2 -2
- package/dist/atomic/{p-e04a218a.entry.js.map → p-4842dc87.entry.js.map} +1 -1
- 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-306161d1.entry.js → p-4f551719.entry.js} +2 -2
- package/dist/atomic/{p-f135f73c.entry.js → p-550a82ad.entry.js} +2 -2
- package/dist/atomic/{p-d5e44446.entry.js.map → p-550a82ad.entry.js.map} +1 -1
- package/dist/atomic/{p-53bcc515.js → p-5b28af78.js} +2 -2
- package/dist/atomic/{p-f0e861c5.entry.js → p-5db95f63.entry.js} +2 -2
- package/dist/atomic/p-5de4fd7b.entry.js +2 -0
- package/dist/atomic/{p-10d83071.entry.js.map → p-5de4fd7b.entry.js.map} +1 -1
- package/dist/atomic/p-5e785f48.entry.js +2 -0
- package/dist/atomic/{p-609782ca.entry.js.map → p-5e785f48.entry.js.map} +1 -1
- package/dist/atomic/{p-e7249acd.entry.js → p-666b8209.entry.js} +2 -2
- package/dist/atomic/{p-653c59f1.entry.js.map → p-666b8209.entry.js.map} +1 -1
- package/dist/atomic/p-6805b870.entry.js +2 -0
- package/dist/atomic/{p-864838e6.entry.js.map → p-6805b870.entry.js.map} +1 -1
- package/dist/atomic/p-6b1f5824.entry.js +2 -0
- package/dist/atomic/{p-5ccb7a8e.entry.js.map → p-6b1f5824.entry.js.map} +1 -1
- package/dist/atomic/{p-6638ca39.entry.js → p-6bf1c797.entry.js} +2 -2
- package/dist/atomic/{p-2be3757d.js → p-6c6208b2.js} +2 -2
- package/dist/atomic/{p-648070c3.entry.js → p-6f4b7ab8.entry.js} +2 -2
- package/dist/atomic/{p-cf82b6ab.entry.js.map → p-6f4b7ab8.entry.js.map} +1 -1
- package/dist/atomic/{p-cf82b6ab.entry.js → p-745b6c07.entry.js} +2 -2
- package/dist/atomic/{p-f135f73c.entry.js.map → p-745b6c07.entry.js.map} +1 -1
- package/dist/atomic/p-79ba07b2.entry.js +2 -0
- package/dist/atomic/{p-7c6865a2.entry.js.map → p-79ba07b2.entry.js.map} +1 -1
- package/dist/atomic/{p-a96a297e.js → p-7c023024.js} +2 -2
- package/dist/atomic/{p-1cf33009.js → p-7e85b9b3.js} +2 -2
- package/dist/atomic/p-7ef23e1c.entry.js +2 -0
- package/dist/atomic/{p-edfd8772.entry.js.map → p-7ef23e1c.entry.js.map} +1 -1
- package/dist/atomic/p-7f48fd77.js +2 -0
- package/dist/atomic/{p-3dabd73e.js → p-7f5ee44b.js} +2 -2
- package/dist/atomic/p-80ed1b5f.entry.js +2 -0
- package/dist/atomic/{p-a76595eb.entry.js.map → p-80ed1b5f.entry.js.map} +1 -1
- package/dist/atomic/{p-75e5711c.entry.js → p-823ad2e7.entry.js} +2 -2
- package/dist/atomic/{p-1ad41df0.entry.js → p-84e43898.entry.js} +2 -2
- package/dist/atomic/{p-b65ab89e.entry.js.map → p-84e43898.entry.js.map} +1 -1
- package/dist/atomic/p-899825b2.entry.js +2 -0
- package/dist/atomic/{p-42dfce15.entry.js.map → p-899825b2.entry.js.map} +1 -1
- package/dist/atomic/{p-393ba53d.entry.js → p-89c72b2f.entry.js} +2 -2
- package/dist/atomic/{p-648070c3.entry.js.map → p-89c72b2f.entry.js.map} +1 -1
- package/dist/atomic/p-8fc2a0f1.entry.js +2 -0
- package/dist/atomic/{p-1a8cdf37.entry.js.map → p-8fc2a0f1.entry.js.map} +1 -1
- package/dist/atomic/{p-42dfce15.entry.js → p-8fe38f4f.entry.js} +2 -2
- package/dist/atomic/{p-cf57da93.entry.js.map → p-8fe38f4f.entry.js.map} +1 -1
- package/dist/atomic/{p-f8cd64b9.js → p-92c85f14.js} +2 -2
- package/dist/atomic/p-972e52f3.entry.js +2 -0
- package/dist/atomic/{p-20202259.entry.js.map → p-972e52f3.entry.js.map} +1 -1
- package/dist/atomic/p-98276f38.entry.js +2 -0
- package/dist/atomic/{p-e7249acd.entry.js.map → p-98276f38.entry.js.map} +1 -1
- package/dist/atomic/{p-7a5d346b.entry.js → p-9a250d55.entry.js} +2 -2
- package/dist/atomic/{p-b9ba2c5a.entry.js → p-9a2d68d5.entry.js} +2 -2
- package/dist/atomic/p-9b8c25fc.entry.js +2 -0
- package/dist/atomic/{p-92e09b96.entry.js.map → p-9b8c25fc.entry.js.map} +1 -1
- package/dist/atomic/p-9c98feeb.entry.js +2 -0
- package/dist/atomic/{p-154e5769.entry.js.map → p-9c98feeb.entry.js.map} +1 -1
- package/dist/atomic/{p-853208fa.entry.js → p-9f2c82d2.entry.js} +2 -2
- package/dist/atomic/{p-fa960d84.entry.js → p-a24bcb7b.entry.js} +2 -2
- package/dist/atomic/p-a5522822.entry.js +2 -0
- package/dist/atomic/{p-cfaab662.entry.js.map → p-a5522822.entry.js.map} +1 -1
- package/dist/atomic/p-a98d7a4c.entry.js +2 -0
- package/dist/atomic/{p-8cd68a1d.entry.js.map → p-a98d7a4c.entry.js.map} +1 -1
- package/dist/atomic/{p-5e663f28.entry.js → p-aa0aa75c.entry.js} +2 -2
- package/dist/atomic/{p-4b964dcb.entry.js.map → p-aa0aa75c.entry.js.map} +1 -1
- package/dist/atomic/p-b379dc5d.entry.js +2 -0
- package/dist/atomic/{p-08710486.entry.js.map → p-b379dc5d.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-506bb38b.js → p-b5e46e49.js} +2 -2
- package/dist/atomic/{p-319a4417.entry.js → p-b74f40d7.entry.js} +2 -2
- package/dist/atomic/{p-27930b8b.entry.js.map → p-b74f40d7.entry.js.map} +1 -1
- package/dist/atomic/{p-56fdd00a.entry.js → p-bddfd4cb.entry.js} +2 -2
- package/dist/atomic/{p-4227dee9.entry.js.map → p-bddfd4cb.entry.js.map} +1 -1
- package/dist/atomic/p-bfff9495.entry.js +2 -0
- package/dist/atomic/{p-9bd4cc55.entry.js.map → p-bfff9495.entry.js.map} +1 -1
- package/dist/atomic/{p-2806f745.entry.js → p-c2bd75b2.entry.js} +2 -2
- package/dist/atomic/{p-93116ce1.js → p-c35c892e.js} +2 -2
- package/dist/atomic/p-c645513e.entry.js +2 -0
- package/dist/atomic/{p-752d0275.entry.js.map → p-c645513e.entry.js.map} +1 -1
- package/dist/atomic/p-c73bfcee.entry.js +2 -0
- package/dist/atomic/{p-e4cc1659.entry.js.map → p-c73bfcee.entry.js.map} +1 -1
- package/dist/atomic/p-c791e555.entry.js +2 -0
- package/dist/atomic/{p-8b1a4f9e.entry.js.map → p-c791e555.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-fc257f69.entry.js → p-c9aa9243.entry.js} +2 -2
- package/dist/atomic/p-c9bb29aa.entry.js +2 -0
- package/dist/atomic/{p-dcfd6207.entry.js.map → p-c9bb29aa.entry.js.map} +1 -1
- package/dist/atomic/p-ca860fba.entry.js +2 -0
- package/dist/atomic/{p-7abdbad3.entry.js.map → p-ca860fba.entry.js.map} +1 -1
- package/dist/atomic/p-cd469a4c.entry.js +2 -0
- package/dist/atomic/{p-8fcf605b.entry.js.map → p-cd469a4c.entry.js.map} +1 -1
- package/dist/atomic/p-cfc04aca.entry.js +2 -0
- package/dist/atomic/{p-e8081870.entry.js.map → p-cfc04aca.entry.js.map} +1 -1
- package/dist/atomic/p-cfe35775.entry.js +2 -0
- package/dist/atomic/{p-5e663f28.entry.js.map → p-cfe35775.entry.js.map} +1 -1
- package/dist/atomic/{p-214cbca8.js → p-d2855a6f.js} +2 -2
- package/dist/atomic/p-d48eba56.entry.js +2 -0
- package/dist/atomic/{p-4ba72326.entry.js.map → p-d48eba56.entry.js.map} +1 -1
- package/dist/atomic/p-d71f4437.entry.js +2 -0
- package/dist/atomic/{p-a2414c11.entry.js.map → p-d71f4437.entry.js.map} +1 -1
- package/dist/atomic/p-d8d12bbf.entry.js +2 -0
- package/dist/atomic/{p-eeb8c8f0.entry.js.map → p-d8d12bbf.entry.js.map} +1 -1
- package/dist/atomic/p-e5c3ace0.entry.js +2 -0
- package/dist/atomic/{p-c6663ac0.entry.js.map → p-e5c3ace0.entry.js.map} +1 -1
- package/dist/atomic/{p-26a0e19e.js → p-e5fc5860.js} +2 -2
- package/dist/atomic/p-e6fb199d.entry.js +2 -0
- package/dist/atomic/{p-1ae38c73.entry.js.map → p-e6fb199d.entry.js.map} +1 -1
- package/dist/atomic/{p-b31d8fdd.js → p-e7986445.js} +2 -2
- package/dist/atomic/{p-a76595eb.entry.js → p-e83bde33.entry.js} +2 -2
- package/dist/atomic/{p-8e7c3414.entry.js.map → p-e83bde33.entry.js.map} +1 -1
- package/dist/atomic/{p-d98ccaa1.js → p-e9605127.js} +2 -2
- package/dist/atomic/p-f0293b38.entry.js +2 -0
- package/dist/atomic/{p-1441bce7.entry.js.map → p-f0293b38.entry.js.map} +1 -1
- package/dist/atomic/{p-958f7721.js → p-f4464f33.js} +2 -2
- package/dist/atomic/p-f6fbebb4.entry.js +2 -0
- package/dist/atomic/{p-cacda7f8.entry.js.map → p-f6fbebb4.entry.js.map} +1 -1
- package/dist/atomic/{p-dcfd6207.entry.js → p-f8355b26.entry.js} +2 -2
- package/dist/atomic/{p-274f8bab.entry.js.map → p-f8355b26.entry.js.map} +1 -1
- package/dist/atomic/p-fd0faa1b.entry.js +2 -0
- package/dist/atomic/{p-aadfd670.entry.js.map → p-fd0faa1b.entry.js.map} +1 -1
- package/dist/atomic/{p-bf5d5c79.entry.js → p-fe784c2c.entry.js} +2 -2
- package/dist/cjs/_loader.cjs.js +1 -1
- package/dist/cjs/{analytics-config-8fe8f4c8.js → analytics-config-91c71e88.js} +2 -2
- package/dist/cjs/{analytics-config-8fe8f4c8.js.map → analytics-config-91c71e88.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 +7 -8
- 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-commerce-category-facet_4.cjs.entry.js +11 -12
- package/dist/cjs/atomic-commerce-category-facet_4.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-commerce-facet-number-input.cjs.entry.js +1 -2
- package/dist/cjs/atomic-commerce-facet-number-input.cjs.entry.js.map +1 -1
- package/dist/cjs/atomic-facet-date-input.cjs.entry.js +1 -2
- package/dist/cjs/atomic-facet-date-input.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 +10 -11
- 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-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/{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-header-60732c1b.js → stencil-facet-header-ab3f7a66.js} +2 -2
- package/dist/cjs/{stencil-facet-header-60732c1b.js.map → stencil-facet-header-ab3f7a66.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-search-value-a464968e.js → stencil-facet-search-value-495a0a70.js} +2 -2
- package/dist/cjs/{stencil-facet-search-value-a464968e.js.map → stencil-facet-search-value-495a0a70.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/{timeframe-facet-common-bd2f9c45.js → timeframe-facet-common-5afa7031.js} +3 -3
- package/dist/cjs/{timeframe-facet-common-bd2f9c45.js.map → timeframe-facet-common-5afa7031.js.map} +1 -1
- package/dist/cjs/{value-as-tree-container-d9952f1f.js → value-as-tree-container-5ba71f5d.js} +3 -3
- package/dist/cjs/{value-as-tree-container-d9952f1f.js.map → value-as-tree-container-5ba71f5d.js.map} +1 -1
- package/dist/cjs/{values-container-dfa0c20b.js → values-container-dffbdcc7.js} +3 -3
- package/dist/cjs/{values-container-dfa0c20b.js.map → values-container-dffbdcc7.js.map} +1 -1
- package/dist/cjs/version.cjs.js +2 -2
- package/dist/esm/_loader.js +1 -1
- package/dist/esm/{analytics-config-14225268.js → analytics-config-7c7ea33c.js} +2 -2
- package/dist/esm/{analytics-config-14225268.js.map → analytics-config-7c7ea33c.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 +7 -8
- 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-commerce-category-facet_4.entry.js +11 -12
- package/dist/esm/atomic-commerce-category-facet_4.entry.js.map +1 -1
- package/dist/esm/atomic-commerce-facet-number-input.entry.js +1 -2
- package/dist/esm/atomic-commerce-facet-number-input.entry.js.map +1 -1
- package/dist/esm/atomic-facet-date-input.entry.js +1 -2
- package/dist/esm/atomic-facet-date-input.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 +10 -11
- 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-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/{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-header-6a0bb1d4.js → stencil-facet-header-292666ee.js} +2 -2
- package/dist/esm/{stencil-facet-header-6a0bb1d4.js.map → stencil-facet-header-292666ee.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-search-value-832313d5.js → stencil-facet-search-value-318f5f9a.js} +2 -2
- package/dist/esm/{stencil-facet-search-value-832313d5.js.map → stencil-facet-search-value-318f5f9a.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-fda6d52e.js → stencil-facet-value-45187df6.js} +4 -4
- package/dist/esm/{stencil-facet-value-fda6d52e.js.map → stencil-facet-value-45187df6.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-checkbox-82d52a44.js → stencil-facet-value-checkbox-de8aa366.js} +2 -2
- package/dist/esm/{stencil-facet-value-checkbox-82d52a44.js.map → stencil-facet-value-checkbox-de8aa366.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/{timeframe-facet-common-1aad36a0.js → timeframe-facet-common-578fd7e4.js} +3 -3
- package/dist/esm/{timeframe-facet-common-1aad36a0.js.map → timeframe-facet-common-578fd7e4.js.map} +1 -1
- package/dist/esm/{value-as-tree-container-817faf3b.js → value-as-tree-container-c8f3e846.js} +3 -3
- package/dist/esm/{value-as-tree-container-817faf3b.js.map → value-as-tree-container-c8f3e846.js.map} +1 -1
- package/dist/esm/{values-container-0be51709.js → values-container-07d68875.js} +3 -3
- package/dist/esm/{values-container-0be51709.js.map → values-container-07d68875.js.map} +1 -1
- package/dist/esm/version.js +2 -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 +5 -5
- 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-08710486.entry.js +0 -2
- package/dist/atomic/p-10c682e1.entry.js +0 -2
- package/dist/atomic/p-10d83071.entry.js +0 -2
- package/dist/atomic/p-1441bce7.entry.js +0 -2
- package/dist/atomic/p-154e5769.entry.js +0 -2
- package/dist/atomic/p-1a819cf9.entry.js +0 -2
- package/dist/atomic/p-1a8cdf37.entry.js +0 -2
- package/dist/atomic/p-1ad41df0.entry.js.map +0 -1
- package/dist/atomic/p-20202259.entry.js +0 -2
- package/dist/atomic/p-274f8bab.entry.js +0 -2
- package/dist/atomic/p-27930b8b.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-34280d19.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-4227dee9.entry.js +0 -2
- package/dist/atomic/p-42f148ff.entry.js +0 -2
- package/dist/atomic/p-43c979d8.entry.js +0 -2
- package/dist/atomic/p-4b964dcb.entry.js +0 -2
- package/dist/atomic/p-4ba72326.entry.js +0 -2
- package/dist/atomic/p-4bf140ca.js +0 -2
- package/dist/atomic/p-53c4db57.entry.js +0 -2
- package/dist/atomic/p-5ccb7a8e.entry.js +0 -2
- package/dist/atomic/p-609782ca.entry.js +0 -2
- package/dist/atomic/p-653c59f1.entry.js +0 -2
- package/dist/atomic/p-6a9280c3.entry.js +0 -2
- package/dist/atomic/p-752d0275.entry.js +0 -2
- package/dist/atomic/p-787959af.entry.js +0 -2
- package/dist/atomic/p-7abdbad3.entry.js +0 -2
- package/dist/atomic/p-864838e6.entry.js +0 -2
- package/dist/atomic/p-8cd68a1d.entry.js +0 -2
- package/dist/atomic/p-8e7c3414.entry.js +0 -2
- package/dist/atomic/p-8fcf605b.entry.js +0 -2
- package/dist/atomic/p-92e09b96.entry.js +0 -2
- package/dist/atomic/p-9bd4cc55.entry.js +0 -2
- package/dist/atomic/p-a2414c11.entry.js +0 -2
- package/dist/atomic/p-aa10238a.js +0 -2
- package/dist/atomic/p-aadfd670.entry.js +0 -2
- package/dist/atomic/p-b65ab89e.entry.js +0 -2
- package/dist/atomic/p-c6663ac0.entry.js +0 -2
- package/dist/atomic/p-cacda7f8.entry.js +0 -2
- package/dist/atomic/p-cad100d5.entry.js +0 -2
- package/dist/atomic/p-cf57da93.entry.js +0 -2
- package/dist/atomic/p-cfaab662.entry.js +0 -2
- package/dist/atomic/p-d5e44446.entry.js +0 -2
- package/dist/atomic/p-e04a218a.entry.js +0 -2
- package/dist/atomic/p-e1e7434e.entry.js +0 -2
- package/dist/atomic/p-e4cc1659.entry.js +0 -2
- package/dist/atomic/p-e8081870.entry.js +0 -2
- package/dist/atomic/p-edfd8772.entry.js +0 -2
- package/dist/atomic/p-eeb8c8f0.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-f64b72ba.entry.js +0 -2
- package/dist/atomic/p-fbd06c3f.entry.js +0 -2
- package/dist/atomic/p-fbe77e4c.entry.js +0 -2
- package/dist/atomic/p-ff6504c8.entry.js +0 -2
- package/dist/atomic/p-ff6504c8.entry.js.map +0 -1
- 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-143b8dde.entry.js.map → p-19d45b5e.entry.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-78fbfed0.entry.js.map → p-22fd08c5.entry.js.map} +0 -0
- /package/dist/atomic/{p-aa10238a.js.map → p-2d6cf1f4.js.map} +0 -0
- /package/dist/atomic/{p-d917f9a3.js.map → p-2ef593e5.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-306161d1.entry.js.map → p-4f551719.entry.js.map} +0 -0
- /package/dist/atomic/{p-53bcc515.js.map → p-5b28af78.js.map} +0 -0
- /package/dist/atomic/{p-f0e861c5.entry.js.map → p-5db95f63.entry.js.map} +0 -0
- /package/dist/atomic/{p-6638ca39.entry.js.map → p-6bf1c797.entry.js.map} +0 -0
- /package/dist/atomic/{p-2be3757d.js.map → p-6c6208b2.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-4bf140ca.js.map → p-7f48fd77.js.map} +0 -0
- /package/dist/atomic/{p-3dabd73e.js.map → p-7f5ee44b.js.map} +0 -0
- /package/dist/atomic/{p-75e5711c.entry.js.map → p-823ad2e7.entry.js.map} +0 -0
- /package/dist/atomic/{p-f8cd64b9.js.map → p-92c85f14.js.map} +0 -0
- /package/dist/atomic/{p-7a5d346b.entry.js.map → p-9a250d55.entry.js.map} +0 -0
- /package/dist/atomic/{p-b9ba2c5a.entry.js.map → p-9a2d68d5.entry.js.map} +0 -0
- /package/dist/atomic/{p-853208fa.entry.js.map → p-9f2c82d2.entry.js.map} +0 -0
- /package/dist/atomic/{p-fa960d84.entry.js.map → p-a24bcb7b.entry.js.map} +0 -0
- /package/dist/atomic/{p-506bb38b.js.map → p-b5e46e49.js.map} +0 -0
- /package/dist/atomic/{p-2806f745.entry.js.map → p-c2bd75b2.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-fc257f69.entry.js.map → p-c9aa9243.entry.js.map} +0 -0
- /package/dist/atomic/{p-214cbca8.js.map → p-d2855a6f.js.map} +0 -0
- /package/dist/atomic/{p-26a0e19e.js.map → p-e5fc5860.js.map} +0 -0
- /package/dist/atomic/{p-b31d8fdd.js.map → p-e7986445.js.map} +0 -0
- /package/dist/atomic/{p-d98ccaa1.js.map → p-e9605127.js.map} +0 -0
- /package/dist/atomic/{p-958f7721.js.map → p-f4464f33.js.map} +0 -0
- /package/dist/atomic/{p-bf5d5c79.entry.js.map → p-fe784c2c.entry.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: '6155295f11612ca1652a3499d19a61de56384dd4', 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: 'c2b82464237842836e79545f5a3c56564a589adf', 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: '451ef60b55d168b526c67c7736d18139ab6e8acb', 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: '86440e525356ab650a8071d633f13aafe440fb4b', 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: 'cf8a32c771641390f02a15b78b9941a4c8e018f2' });
|
|
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: 'c12c2ae69e7253ff7b94b102ed63e3d290bea8c5', 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: 'f812173c17018b0ba6e045bbde7eddec4bf804c2', tabsIncluded: this.tabsIncluded, tabsExcluded: this.tabsExcluded, activeTab: this.tabManagerState.activeTab }, h(ItemListGuard, { key: 'a285354e0a082c76f0e6593a2872b172a77ca9fe', hasError: this.resultListState.hasError, hasTemplate: this.resultTemplateRegistered, templateHasError: this.itemTemplateProvider.hasError, firstRequestExecuted: this.resultListState.firstSearchExecuted, hasItems: this.resultListState.hasResults }, h(DisplayWrapper, { key: 'd3c68c1abd90bb41e2fb58f59172ac5a4afade2d', display: this.display, listClasses: listClasses }, h(ResultsPlaceholdersGuard, { key: '0d02c925c1e79771245d2d519c14943b08fcf2da', density: this.density, display: this.display, imageSize: this.imageSize, displayPlaceholders: !this.isAppLoaded, numberOfPlaceholders: this.resultsPerPageState.numberOfResults }), h(ItemDisplayGuard, { key: '20451c0369d6c346857913ba13f364dc8ad86a73', 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: 'a9a2ca1100cf10f3750b89f1d2dad9623c226bfb', 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: '811306058f3ce5dc7318f8796cbb67582fa402fa', 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: '0fc0712df94e2c31892a182245e0cb50709ff36b' }, this.renderAbsolutePositionSpacer(), [
|
|
431
|
+
h(SearchBoxWrapper, { key: 'ade5d02e9b07f079b3fcdc62702e1b5663133317', 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: '90128b556addb0f7cb2c0bff11987e639e1f4608', 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: '02c0c3c0becccab79c370565733069f322309b49' }, h("atomic-search-box-recent-queries", { key: 'cebb7d3bdb228c914cb53fc1f0475c4b6b693cbb' }), h("atomic-search-box-query-suggestions", { key: '746c17a8405411164118040c77a91830126e3fd6' }))),
|
|
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: '967dade7a7f4f7893f8ca4f782f9578c57341ce1', fullscreen: false, source: this.source, container: this.host, isOpen: this.isOpen, close: () => this.close(), exportparts: ATOMIC_MODAL_EXPORT_PARTS }, h(SmartSnippetFeedbackModalHeader, { key: '8ab4478eaa8216362da54869288db0f6c0e9cf72', i18n: this.bindings.i18n }), h(SmartSnippetFeedbackModalBody, { key: '5aad4d595a230ba1282b531e376a756011b1c969', formId: this.formId, onSubmit: (e) => this.sendFeedback(e) }, h(SmartSnippetFeebackModalOptions, { key: '00746051b772b2fe62d68006f788647cdf56adb3', 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: 'cde56e7c04dbcb5a5791a7239cb5f93950f650d7', currentAnswer: this.currentAnswer, i18n: this.bindings.i18n, setDetailsInputRef: (ref) => (this.detailsInputRef = ref) })), h(SmartSnippetFeedbackModalFooter, { key: '610966b5123f47256025a292a603073e3e724fb7', 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: '2accdbf87590f04fd46a856b147f5cef6d26a6ba', firstSearchExecuted: firstSearchExecuted, hasError: hasError, hasResults: hasResults }, h(SortContainer, { key: '1161995980ac874068b7ab539700054d45a2a4df' }, h(SortLabel, { key: '4fcb49e91826ff9b49f8ec45170a16715e71a5b4', i18n: i18n, id: id }), h(SortSelect, { key: 'f209f8cb5064f857c6d8118af9feeb39417d503a', 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: '5c2c936002df8bfb08c86571ecd26aaf2f115b8e' }),
|
|
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: '910759ce3c84fdcc7ee54b36caa714760445f2ee', 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: '5ed7e78b0424c89ede8851d6d8509497ce74b748' }, h("atomic-tab-bar", { key: '77174e9da6e3ef9c0ad9157d57e89c84532d0027' }, h("div", { key: '42cfe270d264487918077a0894ba880203d377bb', role: "list", "aria-label": "tab-area", part: "tab-area", class: "border-neutral mb-2 flex w-full flex-row border-b" }, this.tabs.map((tab) => (h("atomic-tab-button", { active: this.tabManagerState.activeTab === tab.name, label: this.bindings.i18n.t(tab.label, {
|
|
63
63
|
defaultValue: tab.label,
|
|
64
64
|
}), select: () => {
|
|
65
65
|
if (!tab.tabController.state.isActive) {
|
package/dist/atomic/components/components/search/atomic-results-per-page/atomic-results-per-page.js
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
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 { errorGuard } from "../../../decorators/error-guard.js";
|
|
20
|
+
import { withTailwindStyles } from "../../../decorators/with-tailwind-styles.js";
|
|
21
|
+
import { InitializeBindingsMixin } from "../../../mixins/bindings-mixin.js";
|
|
22
|
+
import { randomID } from "../../../utils/utils.js";
|
|
23
|
+
/**
|
|
24
|
+
* The `atomic-results-per-page` component determines how many results to display per page.
|
|
25
|
+
*
|
|
26
|
+
* @part label - The "Results per page" label.
|
|
27
|
+
* @part buttons - The list of buttons.
|
|
28
|
+
* @part button - The result per page button.
|
|
29
|
+
* @part active-button - The active result per page button.
|
|
30
|
+
*/
|
|
31
|
+
let AtomicResultsPerPage = class AtomicResultsPerPage extends InitializeBindingsMixin(LitElement) {
|
|
32
|
+
constructor() {
|
|
33
|
+
super(...arguments);
|
|
34
|
+
this.radioGroupName = randomID('atomic-results-per-page-');
|
|
35
|
+
this.isAppLoaded = false;
|
|
36
|
+
/**
|
|
37
|
+
* A list of choices for the number of results to display per page, separated by commas.
|
|
38
|
+
*/
|
|
39
|
+
this.choicesDisplayed = '10,25,50,100';
|
|
40
|
+
}
|
|
41
|
+
initialize() {
|
|
42
|
+
try {
|
|
43
|
+
this.choices = convertChoicesToNumbers(this.choicesDisplayed);
|
|
44
|
+
this.initialChoice = this.initialChoice ?? this.choices[0];
|
|
45
|
+
validateInitialChoice(this.initialChoice, this.choices);
|
|
46
|
+
}
|
|
47
|
+
catch (error) {
|
|
48
|
+
if (error instanceof ChoiceIsNaNError ||
|
|
49
|
+
error instanceof InitialChoiceNotInChoicesError) {
|
|
50
|
+
this.bindings.engine.logger.error(error.message, this);
|
|
51
|
+
throw error;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
this.searchStatus = buildSearchStatus(this.bindings.engine);
|
|
55
|
+
this.resultPerPage = buildResultsPerPage(this.bindings.engine, {
|
|
56
|
+
initialState: { numberOfResults: this.initialChoice },
|
|
57
|
+
});
|
|
58
|
+
createAppLoadedListener(this.bindings.store, (isAppLoaded) => {
|
|
59
|
+
this.isAppLoaded = isAppLoaded;
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
scrollToTopEvent() {
|
|
63
|
+
this.dispatchEvent(new CustomEvent('atomic/scrollToTop', {
|
|
64
|
+
bubbles: true,
|
|
65
|
+
composed: true,
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
get label() {
|
|
69
|
+
return this.bindings.i18n.t('results-per-page');
|
|
70
|
+
}
|
|
71
|
+
render() {
|
|
72
|
+
return html `
|
|
73
|
+
${renderPagerGuard({
|
|
74
|
+
props: {
|
|
75
|
+
hasError: this.searchStatusState.hasError,
|
|
76
|
+
hasItems: this.searchStatusState.hasResults,
|
|
77
|
+
isAppLoaded: this.isAppLoaded,
|
|
78
|
+
},
|
|
79
|
+
})(html `
|
|
80
|
+
<div class="flex items-center" role="toolbar" aria-label=${this.label}>
|
|
81
|
+
${renderLabel()(html `${this.label}`)}
|
|
82
|
+
${renderFieldsetGroup({
|
|
83
|
+
props: {
|
|
84
|
+
label: this.label,
|
|
85
|
+
},
|
|
86
|
+
})(renderChoices({
|
|
87
|
+
props: {
|
|
88
|
+
label: this.label,
|
|
89
|
+
groupName: this.radioGroupName,
|
|
90
|
+
pageSize: this.resultPerPageState.numberOfResults,
|
|
91
|
+
choices: this.choices,
|
|
92
|
+
lang: this.bindings.i18n.language,
|
|
93
|
+
scrollToTopEvent: () => this.scrollToTopEvent(),
|
|
94
|
+
setItemSize: (size) => this.resultPerPage.set(size),
|
|
95
|
+
focusOnFirstResultAfterNextSearch: () => this.bindings.store.state.resultList?.focusOnFirstResultAfterNextSearch(),
|
|
96
|
+
focusOnNextNewResult: () => this.bindings.store.state.resultList?.focusOnNextNewResult(),
|
|
97
|
+
},
|
|
98
|
+
}))}
|
|
99
|
+
</div>
|
|
100
|
+
`)}
|
|
101
|
+
`;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
__decorate([
|
|
105
|
+
state()
|
|
106
|
+
], AtomicResultsPerPage.prototype, "bindings", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
state()
|
|
109
|
+
], AtomicResultsPerPage.prototype, "error", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
state(),
|
|
112
|
+
bindStateToController('resultPerPage')
|
|
113
|
+
], AtomicResultsPerPage.prototype, "resultPerPageState", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
bindStateToController('searchStatus'),
|
|
116
|
+
state()
|
|
117
|
+
], AtomicResultsPerPage.prototype, "searchStatusState", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
state()
|
|
120
|
+
], AtomicResultsPerPage.prototype, "isAppLoaded", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
property({ reflect: true, attribute: 'choices-displayed' })
|
|
123
|
+
], AtomicResultsPerPage.prototype, "choicesDisplayed", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
property({ type: Number, reflect: true, attribute: 'initial-choice' })
|
|
126
|
+
], AtomicResultsPerPage.prototype, "initialChoice", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
bindingGuard(),
|
|
129
|
+
errorGuard()
|
|
130
|
+
], AtomicResultsPerPage.prototype, "render", null);
|
|
131
|
+
AtomicResultsPerPage = __decorate([
|
|
132
|
+
customElement('atomic-results-per-page'),
|
|
133
|
+
withTailwindStyles
|
|
134
|
+
], AtomicResultsPerPage);
|
|
135
|
+
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"stencil-button.js","mappings":";;;;
|
|
1
|
+
{"file":"stencil-button.js","mappings":";;;;AAUA,MAAM,MAAM,GAAG,QAAQ,CAAC;AAExB,SAAS,kCAAkC,CAAC,YAAoB;;IAE9D,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,MAAM,CAAC;AAC1C,CAAC;AAED,SAAS,2BAA2B,CAAC,OAAgB;IACnD,IAAI,gBAAgB,CAAC,OAAO,CAAC,CAAC,QAAQ,KAAK,QAAQ,EAAE;QACnD,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;KAC1C;AACH,CAAC;AAEM,eAAe,YAAY,CAAC,KAAiB,EAAE,OAAsB;IAC1E,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,IAAK,KAAK,CAAC,aAAyB,CAAC;IAClE,MAAM,cAAc,GAAG,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAChE,cAAc,EAAE,MAAM,EAAE,CAAC;IAEzB,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;IACtC,2BAA2B,CAAC,MAAM,CAAC,CAAC;IACpC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAEjE,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC9C,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC7B,MAAM,CAAC,KAAK,CAAC,eAAe,GAAG,gBAAgB,OAAO,CAAC,KAAK,GAAG,CAAC;IAChE,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEpC,MAAM,QAAQ,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;IACnE,MAAM,MAAM,GAAG,QAAQ,GAAG,CAAC,CAAC;IAC5B,MAAM,iBAAiB,GAAG,kCAAkC,CAAC,MAAM,CAAC,CAAC;IACrE,MAAM,EAAC,GAAG,EAAE,IAAI,EAAC,GAAG,MAAM,CAAC,qBAAqB,EAAE,CAAC;IACnD,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,GAAG,QAAQ,IAAI,CAAC;IAC3D,MAAM,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,KAAK,CAAC,OAAO,IAAI,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IAC3D,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,OAAO,IAAI,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC;IACzD,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,sBAAsB,EAAE,GAAG,iBAAiB,IAAI,CAAC,CAAC;IAC3E,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACvB,MAAM,wBAAwB,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC5D,CAAC;AAED,eAAe,wBAAwB,CACrC,MAAuB,EACvB,iBAAyB;IAEzB,UAAU,CAAC,MAAM,EAAE,cAAc,EAAE;QACjC,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC,CAAC;;IAEH,UAAU,CACR,MAAM,MAAM,EAAE,MAAM,EAAE,EACtB,iBAAiB,GAAG,iBAAiB,GAAG,GAAG,CAC5C,CAAC;AACJ;;AC5BA;;;MAGa,MAAM,GAA4C,CAC7D,KAAK,EACL,QAAQ;IAER,MAAM,WAAW,GAAG,4BAA4B,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC9D,MAAM,SAAS,GAAG,0BAA0B,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE1D,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,KAAK,CAAC,KAAK,GAAG,GAAG,SAAS,IAAI,KAAK,CAAC,KAAK,EAAE,GAAG,SAAS;QAC9D,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,OAAO,EAAE,KAAK,CAAC,OAAO;QACtB,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,YAAY,EAAE,KAAK,CAAC,SAAS;QAC7B,eAAe,EAAE,KAAK,CAAC,YAAY;QACnC,cAAc,EAAE,KAAK,CAAC,WAAW;QACjC,cAAc,EAAE,KAAK,CAAC,WAAW;QACjC,cAAc,EAAE,KAAK,CAAC,WAAW;QACjC,eAAe,EAAE,KAAK,CAAC,YAAY;QACnC,aAAa,EAAE,KAAK,CAAC,UAAU;QAC/B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,GAAG,CAAC,QAA4B;YAC9B,IAAI,KAAK,CAAC,IAAI,EAAE;gBACd,QAAQ,EAAE,YAAY,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;aAC5C;YACD,IAAI,KAAK,CAAC,UAAU,EAAE;gBACpB,QAAQ,EAAE,YAAY,CAAC,aAAa,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;aACzD;YACD,IAAI,KAAK,CAAC,QAAQ,EAAE;gBAClB,QAAQ,EAAE,YAAY,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;aACpD;YACD,KAAK,CAAC,GAAG,GAAG,QAAQ,CAAC,CAAC;SACvB;KACF,CAAC;IAEF,QACE,iBACM,UAAU,EACd,WAAW,EAAE,CAAC,CAAC,KAAK,YAAY,CAAC,CAAC,EAAE,EAAC,KAAK,EAAE,WAAW,EAAC,CAAC;QAExD,KAAK,CAAC,IAAI,GAAG,YAAM,KAAK,EAAC,UAAU,IAAE,KAAK,CAAC,IAAI,CAAQ,GAAG,IAAI;QAC9D,QAAQ,CACF,EACT;AACJ;;;;","names":[],"sources":["src/utils/ripple.ts","src/components/common/stencil-button.tsx"],"sourcesContent":["import {listenOnce} from './event-utils';\n\ninterface RippleOptions {\n color: string;\n /**\n * When the ripple's parent is not the event's origin\n */\n parent?: Element;\n}\n\nconst RIPPLE = 'ripple';\n\nfunction getAnimationDurationInMilliseconds(radiusPixels: number) {\n // A 318px wide button has a duration of 700ms.\n return Math.cbrt(radiusPixels) * 129.21;\n}\n\nfunction setPositionRelativeIfStatic(element: Element) {\n if (getComputedStyle(element).position === 'static') {\n element.classList.add('ripple-relative');\n }\n}\n\nexport async function createRipple(event: MouseEvent, options: RippleOptions) {\n const button = options.parent ?? (event.currentTarget as Element);\n const existingRipple = button.getElementsByClassName(RIPPLE)[0];\n existingRipple?.remove();\n\n button.classList.add('ripple-parent');\n setPositionRelativeIfStatic(button);\n Array.from(button.children).forEach(setPositionRelativeIfStatic);\n\n const ripple = document.createElement('span');\n ripple.classList.add(RIPPLE);\n ripple.style.backgroundColor = `var(--atomic-${options.color})`;\n ripple.setAttribute('part', RIPPLE);\n\n const diameter = Math.max(button.clientWidth, button.clientHeight);\n const radius = diameter / 2;\n const animationDuration = getAnimationDurationInMilliseconds(radius);\n const {top, left} = button.getBoundingClientRect();\n ripple.style.width = ripple.style.height = `${diameter}px`;\n ripple.style.left = `${event.clientX - (left + radius)}px`;\n ripple.style.top = `${event.clientY - (top + radius)}px`;\n ripple.style.setProperty('--animation-duration', `${animationDuration}ms`);\n button.prepend(ripple);\n await cleanupAnimationOnFinish(ripple, animationDuration);\n}\n\nasync function cleanupAnimationOnFinish(\n ripple: HTMLSpanElement,\n animationDuration: number\n) {\n listenOnce(ripple, 'animationend', () => {\n ripple?.remove();\n });\n // Backup in case the button gets hidden or unmounted and the ripple hasn't been cleaned up.\n setTimeout(\n () => ripple?.remove(),\n animationDuration + animationDuration * 0.1\n );\n}\n","import {FunctionalComponent, h} from '@stencil/core';\nimport {createRipple} from '../../utils/ripple';\nimport {\n ButtonStyle,\n getRippleColorForButtonStyle,\n getClassNameForButtonStyle,\n} from './stencil-button-style';\n\n/**\n * @deprecated Should only be used for Stencil components; for Lit components, use ButtonProps interface instead\n */\nexport interface StencilButtonProps {\n style: ButtonStyle;\n onClick?(event?: MouseEvent): void;\n class?: string;\n text?: string;\n part?: string;\n type?: string;\n form?: string;\n role?: string;\n disabled?: boolean;\n ariaLabel?: string;\n ariaExpanded?: string;\n ariaPressed?: string;\n ariaChecked?: string;\n ariaCurrent?: string;\n ariaControls?: string;\n ariaHidden?: string;\n tabIndex?: string;\n title?: string;\n ref?(element?: HTMLButtonElement): void;\n}\n\n/**\n * @deprecated Should only be used for Stencil components; for Lit components, use the button.ts file instead\n */\nexport const Button: FunctionalComponent<StencilButtonProps> = (\n props,\n children\n) => {\n const rippleColor = getRippleColorForButtonStyle(props.style);\n const className = getClassNameForButtonStyle(props.style);\n\n const attributes = {\n class: props.class ? `${className} ${props.class}` : className,\n part: props.part,\n onClick: props.onClick,\n title: props.title,\n type: props.type,\n role: props.role,\n 'aria-label': props.ariaLabel,\n 'aria-expanded': props.ariaExpanded,\n 'aria-pressed': props.ariaPressed,\n 'aria-checked': props.ariaChecked,\n 'aria-current': props.ariaCurrent,\n 'aria-controls': props.ariaControls,\n 'aria-hidden': props.ariaHidden,\n disabled: props.disabled,\n ref(buttonEl?: HTMLButtonElement) {\n if (props.form) {\n buttonEl?.setAttribute('form', props.form);\n }\n if (props.ariaHidden) {\n buttonEl?.setAttribute('aria-hidden', props.ariaHidden);\n }\n if (props.tabIndex) {\n buttonEl?.setAttribute('tabindex', props.tabIndex);\n }\n props.ref?.(buttonEl);\n },\n };\n\n return (\n <button\n {...attributes}\n onMouseDown={(e) => createRipple(e, {color: rippleColor})}\n >\n {props.text ? <span class=\"truncate\">{props.text}</span> : null}\n {children}\n </button>\n );\n};\n"],"version":3}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as createRipple } from './
|
|
2
|
+
import { c as createRipple } from './stencil-button.js';
|
|
3
3
|
import { r as randomID } from './utils.js';
|
|
4
4
|
import { T as Tick$1, S as StencilCheckbox } from './stencil-checkbox.js';
|
|
5
5
|
import { C as CloseIcon } from './close.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as createRipple } from './
|
|
2
|
+
import { c as createRipple } from './stencil-button.js';
|
|
3
3
|
import { a as getRippleColorForButtonStyle, g as getClassNameForButtonStyle } from './stencil-button-style.js';
|
|
4
4
|
|
|
5
5
|
/**
|