@esri/calcite-components 2.0.0-next.0 → 2.0.0-next.1
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/calcite/assets/combobox/t9n/index.d.ts +3 -0
- package/dist/calcite/assets/combobox/t9n/messages.json +4 -1
- package/dist/calcite/assets/combobox/t9n/messages_en.json +4 -1
- package/dist/calcite/assets/stepper/t9n/index.d.ts +2 -0
- package/dist/calcite/assets/stepper/t9n/messages.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ar.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_bg.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_bs.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ca.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_cs.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_da.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_de.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_el.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_en.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_es.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_et.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_fi.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_fr.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_he.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_hr.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_hu.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_id.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_it.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ja.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ko.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_lt.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_lv.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_nl.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_no.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_pl.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_pt-BR.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_pt-PT.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ro.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ru.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_sk.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_sl.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_sr.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_sv.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_th.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_tr.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_uk.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_vi.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_zh-CN.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_zh-HK.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_zh-TW.json +3 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +2 -2
- package/dist/calcite/{p-b7d15e32.js → p-01fdc344.js} +2 -2
- package/dist/calcite/{p-243f089e.js → p-02d13413.js} +2 -2
- package/dist/calcite/p-037c5131.entry.js +6 -0
- package/dist/calcite/{p-70e7462d.js → p-057d1da9.js} +1 -1
- package/dist/calcite/{p-fce6db48.entry.js → p-07abdd45.entry.js} +2 -2
- package/dist/calcite/{p-c8591d09.js → p-09b9666d.js} +2 -2
- package/dist/calcite/{p-da50cb0c.js → p-0bed97cc.js} +2 -2
- package/dist/calcite/{p-22b6fe78.js → p-0e661d19.js} +1 -1
- package/dist/calcite/{p-9084a791.js → p-0e953307.js} +2 -2
- package/dist/calcite/{p-39ea1b07.entry.js → p-108ee82c.entry.js} +2 -2
- package/dist/calcite/{p-a0394903.js → p-133114a6.js} +2 -2
- package/dist/calcite/p-1895b8c6.entry.js +6 -0
- package/dist/calcite/{p-b6206019.js → p-194902d9.js} +2 -2
- package/dist/calcite/p-1bdd79bd.js +6 -0
- package/dist/calcite/{p-f0422583.js → p-1c09f3c0.js} +1 -1
- package/dist/calcite/{p-81cd345d.entry.js → p-1c6b1bff.entry.js} +2 -2
- package/dist/calcite/{p-419bfdce.entry.js → p-1f7d4b41.entry.js} +2 -2
- package/dist/calcite/{p-155c7fb2.js → p-20aac0c4.js} +2 -2
- package/dist/calcite/{p-ec298b27.js → p-21e53c85.js} +2 -2
- package/dist/calcite/{p-ec139f37.js → p-223a1d64.js} +2 -2
- package/dist/calcite/p-227aa487.js +7 -0
- package/dist/calcite/{p-8aa88dad.js → p-237b128e.js} +2 -2
- package/dist/calcite/{p-07ea4c27.entry.js → p-2398ef50.entry.js} +2 -2
- package/dist/calcite/{p-6a66c4cb.entry.js → p-23edc3bc.entry.js} +2 -2
- package/dist/calcite/{p-1c3d1abc.entry.js → p-287a8703.entry.js} +2 -2
- package/dist/calcite/{p-cd7474a9.js → p-28a43cf1.js} +2 -2
- package/dist/calcite/{p-4c3078f2.js → p-28bda693.js} +1 -1
- package/dist/calcite/{p-18653cee.js → p-28f8d58d.js} +1 -1
- package/dist/calcite/{p-58ca0eb6.js → p-2b24ce60.js} +1 -1
- package/dist/calcite/{p-9c61f361.js → p-2baf3f88.js} +2 -2
- package/dist/calcite/{p-925587f9.entry.js → p-2cc84b61.entry.js} +2 -2
- package/dist/calcite/{p-2e3d7f74.js → p-2e84fd0f.js} +2 -2
- package/dist/calcite/{p-026a947e.entry.js → p-315aff28.entry.js} +2 -2
- package/dist/calcite/{p-b9b84444.entry.js → p-31ec05be.entry.js} +2 -2
- package/dist/calcite/p-3246b837.js +6 -0
- package/dist/calcite/{p-4cb0f465.js → p-400f3cf7.js} +2 -2
- package/dist/calcite/{p-3c0dff0a.entry.js → p-418e5111.entry.js} +2 -2
- package/dist/calcite/{p-d2af0261.entry.js → p-433b91eb.entry.js} +2 -2
- package/dist/calcite/{p-591a54ef.entry.js → p-442af53b.entry.js} +2 -2
- package/dist/calcite/{p-fcab152f.js → p-465649eb.js} +2 -2
- package/dist/calcite/{p-f2c82b0d.js → p-49970d1d.js} +2 -2
- package/dist/calcite/p-49a3db6e.js +6 -0
- package/dist/calcite/{p-406944ab.entry.js → p-4a9f77c3.entry.js} +2 -2
- package/dist/calcite/{p-9b1e53ce.entry.js → p-4eb69405.entry.js} +2 -2
- package/dist/calcite/{p-b5920dbd.entry.js → p-4f079879.entry.js} +2 -2
- package/dist/calcite/{p-330d78ae.entry.js → p-5022a321.entry.js} +2 -2
- package/dist/calcite/{p-48de22c4.js → p-52264e10.js} +2 -2
- package/dist/calcite/{p-1ffc36db.js → p-52f37d41.js} +2 -2
- package/dist/calcite/{p-ab6ca4a0.js → p-5709c1f3.js} +2 -2
- package/dist/calcite/p-584400d1.entry.js +6 -0
- package/dist/calcite/{p-140daae4.js → p-58a2e751.js} +1 -1
- package/dist/calcite/{p-2aa185ad.entry.js → p-58b8a76e.entry.js} +2 -2
- package/dist/calcite/{p-c2c99d03.js → p-5a99d2a4.js} +2 -2
- package/dist/calcite/{p-00895c93.entry.js → p-5f876fd0.entry.js} +2 -2
- package/dist/calcite/{p-ce548d62.entry.js → p-61f733e7.entry.js} +2 -2
- package/dist/calcite/{p-a4985d7f.js → p-6384ae56.js} +2 -2
- package/dist/calcite/p-63e856ac.js +6 -0
- package/dist/calcite/{p-36cab57a.entry.js → p-64c2b0d3.entry.js} +2 -2
- package/dist/calcite/p-64ec2e30.entry.js +6 -0
- package/dist/calcite/{p-282e6119.js → p-6500bae3.js} +2 -2
- package/dist/calcite/{p-12f84f49.entry.js → p-65b1aacd.entry.js} +2 -2
- package/dist/calcite/{p-c00ca833.js → p-660d50d4.js} +2 -2
- package/dist/calcite/{p-7ae93b54.entry.js → p-6708b886.entry.js} +2 -2
- package/dist/calcite/{p-7bdc729c.js → p-697ca7a7.js} +2 -2
- package/dist/calcite/{p-268a6ab4.js → p-6af3a8dd.js} +2 -2
- package/dist/calcite/{p-c0a70aaa.js → p-6d26527a.js} +1 -1
- package/dist/calcite/{p-a94257a5.entry.js → p-6d5e2aa4.entry.js} +2 -2
- package/dist/calcite/{p-dbcf3f2e.js → p-6eea2219.js} +2 -2
- package/dist/calcite/{p-b32c2be7.entry.js → p-71fb4e30.entry.js} +2 -2
- package/dist/calcite/p-758d7d72.js +6 -0
- package/dist/calcite/{p-cfe8a1e4.entry.js → p-765b0253.entry.js} +2 -2
- package/dist/calcite/{p-948de8d8.js → p-787fcf34.js} +1 -1
- package/dist/calcite/{p-e49d5b84.js → p-7c99ad35.js} +2 -2
- package/dist/calcite/{p-5807880a.js → p-7ec3a396.js} +2 -2
- package/dist/calcite/p-7f41e209.entry.js +6 -0
- package/dist/calcite/p-8167baa1.entry.js +6 -0
- package/dist/calcite/p-819f296f.entry.js +6 -0
- package/dist/calcite/{p-fc11f685.js → p-82bb8506.js} +2 -2
- package/dist/calcite/{p-3bbb99ba.entry.js → p-840169a9.entry.js} +2 -2
- package/dist/calcite/{p-bbc25cf1.js → p-85a93a8c.js} +2 -2
- package/dist/calcite/{p-a3f3508a.entry.js → p-8788a274.entry.js} +2 -2
- package/dist/calcite/{p-d27028d4.js → p-87b20c20.js} +2 -2
- package/dist/calcite/{p-63d8826e.entry.js → p-898aad31.entry.js} +2 -2
- package/dist/calcite/{p-cd384446.js → p-8a99f6cf.js} +2 -2
- package/dist/calcite/p-8c744911.js +6 -0
- package/dist/calcite/{p-337dbe09.js → p-8ce35b79.js} +2 -2
- package/dist/calcite/{p-4c485892.entry.js → p-8e338ba9.entry.js} +2 -2
- package/dist/calcite/{p-5b9f66e7.entry.js → p-8fb45640.entry.js} +2 -2
- package/dist/calcite/{p-4518b1b8.js → p-906f2e0d.js} +1 -1
- package/dist/calcite/{p-597a2f82.js → p-9086134a.js} +2 -2
- package/dist/calcite/{p-fdacb53a.entry.js → p-90af1c89.entry.js} +2 -2
- package/dist/calcite/p-948f8b7a.entry.js +6 -0
- package/dist/calcite/{p-297ac618.js → p-9546c934.js} +2 -2
- package/dist/calcite/{p-65c782ff.js → p-98949e9b.js} +2 -2
- package/dist/calcite/{p-53464bea.entry.js → p-9b13dd65.entry.js} +2 -2
- package/dist/calcite/{p-9fc716ef.entry.js → p-9b6d111a.entry.js} +2 -2
- package/dist/calcite/{p-1136bc49.js → p-9c1d2eae.js} +2 -2
- package/dist/calcite/{p-2cb1dda9.js → p-9c46ed65.js} +1 -1
- package/dist/calcite/{p-728ba99a.js → p-9c6508f8.js} +2 -2
- package/dist/calcite/{p-e8c9db96.js → p-9c8f52e2.js} +2 -2
- package/dist/calcite/{p-bf47d324.entry.js → p-9e19d1bb.entry.js} +2 -2
- package/dist/calcite/{p-04d5f585.js → p-9f03ef1a.js} +1 -1
- package/dist/calcite/p-9fbedbce.entry.js +6 -0
- package/dist/calcite/{p-33883194.entry.js → p-a02d659c.entry.js} +2 -2
- package/dist/calcite/{p-4c220698.js → p-a204fe00.js} +2 -2
- package/dist/calcite/{p-ba801acb.js → p-a3200345.js} +2 -2
- package/dist/calcite/{p-ae255b5a.js → p-a4b79a2d.js} +2 -2
- package/dist/calcite/{p-68a0c771.js → p-a67b38fb.js} +2 -2
- package/dist/calcite/{p-7aea3015.js → p-a6e14c79.js} +2 -2
- package/dist/calcite/{p-12949c90.entry.js → p-a73a1bcd.entry.js} +2 -2
- package/dist/calcite/p-a73ed31e.entry.js +6 -0
- package/dist/calcite/p-a77f9e93.entry.js +6 -0
- package/dist/calcite/{p-3a2de213.entry.js → p-a86b4a84.entry.js} +2 -2
- package/dist/calcite/{p-7ba5e1c1.entry.js → p-a8e058e7.entry.js} +2 -2
- package/dist/calcite/{p-e146869c.entry.js → p-ad9b1e77.entry.js} +2 -2
- package/dist/calcite/p-add2e980.js +6 -0
- package/dist/calcite/{p-f7b9e25e.entry.js → p-af0786fb.entry.js} +2 -2
- package/dist/calcite/{p-f02d403f.js → p-affa84be.js} +3 -3
- package/dist/calcite/{p-65674768.entry.js → p-b1fbcc0d.entry.js} +2 -2
- package/dist/calcite/p-b2611075.entry.js +6 -0
- package/dist/calcite/{p-7a9d0231.entry.js → p-b2a07049.entry.js} +2 -2
- package/dist/calcite/{p-b9946936.entry.js → p-b39d4f75.entry.js} +2 -2
- package/dist/calcite/{p-22b2d291.js → p-b60012dc.js} +2 -2
- package/dist/calcite/{p-945bea61.entry.js → p-b6154657.entry.js} +2 -2
- package/dist/calcite/{p-d2f304c6.js → p-b6a5d2c7.js} +1 -1
- package/dist/calcite/{p-a2a7ba8a.js → p-b86f7423.js} +2 -2
- package/dist/calcite/{p-17fdb009.js → p-bebff5b2.js} +1 -1
- package/dist/calcite/{p-027cc998.js → p-c1fbce9e.js} +2 -2
- package/dist/calcite/p-c48a4842.entry.js +6 -0
- package/dist/calcite/{p-74300a09.js → p-c58754af.js} +1 -1
- package/dist/calcite/p-c710bfad.entry.js +6 -0
- package/dist/calcite/{p-d90f2601.js → p-c88c4f45.js} +2 -2
- package/dist/calcite/{p-832517b1.js → p-ca55dc92.js} +2 -2
- package/dist/calcite/p-ccf2e399.js +6 -0
- package/dist/calcite/{p-bf1e3e1c.entry.js → p-ced672b1.entry.js} +2 -2
- package/dist/calcite/{p-53128648.js → p-cf247589.js} +2 -2
- package/dist/calcite/{p-c1f3e50b.entry.js → p-d061747b.entry.js} +2 -2
- package/dist/calcite/{p-2c1f930f.js → p-d2f50f36.js} +2 -2
- package/dist/calcite/{p-8d6f24ff.js → p-d3f106b3.js} +2 -2
- package/dist/calcite/p-d5b5a9e8.entry.js +6 -0
- package/dist/calcite/p-d621a2f7.js +6 -0
- package/dist/calcite/{p-64ecced1.js → p-d6c1d257.js} +1 -1
- package/dist/calcite/p-d6dc8b33.entry.js +6 -0
- package/dist/calcite/{p-322e6ed2.js → p-d8ef67c4.js} +2 -2
- package/dist/calcite/{p-8d4fb2a6.js → p-d99b2fc3.js} +1 -1
- package/dist/calcite/{p-ef64ce6a.entry.js → p-dabc8b11.entry.js} +2 -2
- package/dist/calcite/{p-9bd354e9.js → p-de744490.js} +2 -2
- package/dist/calcite/{p-be4c28b7.js → p-e19f9d34.js} +2 -2
- package/dist/calcite/{p-bd9c02f9.entry.js → p-e21bd5f1.entry.js} +2 -2
- package/dist/calcite/{p-687beee4.js → p-e612e68a.js} +1 -1
- package/dist/calcite/p-e90f602e.js +6 -0
- package/dist/calcite/{p-58d01f90.entry.js → p-ebdc6f5a.entry.js} +2 -2
- package/dist/calcite/{p-73a54827.js → p-ed11b6d7.js} +2 -2
- package/dist/calcite/{p-dc2cb08c.js → p-f28ca545.js} +2 -2
- package/dist/calcite/{p-21c54a12.entry.js → p-f53c2398.entry.js} +2 -2
- package/dist/calcite/{p-46badcf2.entry.js → p-f63cdf58.entry.js} +2 -2
- package/dist/calcite/p-f7f64fa4.entry.js +6 -0
- package/dist/calcite/{p-23f0857d.entry.js → p-f8cd02c1.entry.js} +2 -2
- package/dist/calcite/{p-a41b17b9.js → p-fb40eadc.js} +2 -2
- package/dist/calcite/{p-bc7fccfd.js → p-fe79853a.js} +2 -2
- package/dist/calcite/{p-290e293e.entry.js → p-fe7e5a6b.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-0bed4aa7.js → ExpandToggle-51e86611.js} +5 -5
- package/dist/cjs/{FloatingArrow-c4868394.js → FloatingArrow-dd10c895.js} +2 -2
- package/dist/cjs/{Heading-67b98886.js → Heading-a22d9d2d.js} +2 -2
- package/dist/cjs/{app-globals-d1b6b19b.js → app-globals-94545184.js} +2 -2
- package/dist/cjs/{ar-362223b1.js → ar-43ffe8e5.js} +19 -19
- package/dist/cjs/{array-364bc760.js → array-eaa52818.js} +1 -1
- package/dist/cjs/{bg-9efe79a3.js → bg-a08765fb.js} +19 -19
- package/dist/cjs/{browser-81f1a7a2.js → browser-a1c8cb10.js} +1 -1
- package/dist/cjs/{bs-5a13c8f7.js → bs-344115b3.js} +19 -19
- package/dist/cjs/{ca-256ba181.js → ca-1b04ac1a.js} +19 -19
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +14 -14
- package/dist/cjs/calcite-alert.cjs.entry.js +16 -28
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-button.cjs.entry.js +16 -16
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
- package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +14 -14
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +248 -45
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +15 -15
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
- package/dist/cjs/calcite-filter.cjs.entry.js +14 -14
- package/dist/cjs/calcite-flow-item.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
- package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
- package/dist/cjs/calcite-headless-8d9269f9.js +24 -0
- package/dist/cjs/calcite-icon.cjs.entry.js +12 -7
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +20 -20
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +16 -15
- package/dist/cjs/calcite-input-text.cjs.entry.js +15 -15
- package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-0abccb61.js → calcite-input-time-picker.calcite-time-picker-10c20d3c.js} +63 -63
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +19 -19
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +16 -16
- package/dist/cjs/calcite-input.cjs.entry.js +15 -15
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +8 -8
- package/dist/cjs/calcite-list_3.cjs.entry.js +24 -16
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +14 -14
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +14 -14
- package/dist/cjs/calcite-option_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pagination.cjs.entry.js +33 -17
- package/dist/cjs/calcite-panel.cjs.entry.js +15 -15
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
- package/dist/cjs/calcite-popover.cjs.entry.js +17 -17
- package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sheet.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -9
- package/dist/cjs/calcite-split-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +178 -53
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tab_4.cjs.entry.js +12 -12
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-table-row.cjs.entry.js +9 -9
- package/dist/cjs/calcite-table.cjs.entry.js +11 -11
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -17
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{component-d69f3dde.js → component-3e68e097.js} +1 -1
- package/dist/cjs/{conditionalSlot-5aaae25d.js → conditionalSlot-f5753f37.js} +3 -3
- package/dist/cjs/{cs-eda7bcda.js → cs-7d702c25.js} +19 -19
- package/dist/cjs/{da-71e7119d.js → da-a268dbac.js} +19 -19
- package/dist/cjs/{de-9d854786.js → de-87d27fad.js} +19 -19
- package/dist/cjs/{de-at-9cbb7112.js → de-at-8c6e4b75.js} +19 -19
- package/dist/cjs/{de-ch-9997227f.js → de-ch-17ef1a6a.js} +19 -19
- package/dist/cjs/{debounce-a6a7daa6.js → debounce-90d0ddb9.js} +1 -1
- package/dist/cjs/{dom-1c30c74e.js → dom-9b7969aa.js} +34 -3
- package/dist/cjs/{el-f883c7ef.js → el-d4212462.js} +19 -19
- package/dist/cjs/{en-au-4b32217c.js → en-au-639cf540.js} +19 -19
- package/dist/cjs/{en-ca-8905e080.js → en-ca-74c2fb14.js} +19 -19
- package/dist/cjs/{en-gb-0c91b953.js → en-gb-309296ff.js} +19 -19
- package/dist/cjs/{es-1bc8fcb9.js → es-df5e4adb.js} +19 -19
- package/dist/cjs/{es-mx-6359eeb7.js → es-mx-b1c7bdcf.js} +19 -19
- package/dist/cjs/{et-daa87ee7.js → et-db62f010.js} +19 -19
- package/dist/cjs/{fi-7604b506.js → fi-e82dd133.js} +19 -19
- package/dist/cjs/{filter-27e6f2b1.js → filter-4051dac8.js} +2 -2
- package/dist/cjs/{floating-ui-ee504dae.js → floating-ui-271dccac.js} +3 -3
- package/dist/cjs/{focusTrapComponent-67a7e3b1.js → focusTrapComponent-35e8e102.js} +2 -2
- package/dist/cjs/{form-96d51954.js → form-88f04d56.js} +3 -3
- package/dist/cjs/{fr-012da197.js → fr-2f5743d8.js} +19 -19
- package/dist/cjs/{fr-ch-5d0b2a36.js → fr-ch-140a387f.js} +19 -19
- package/dist/cjs/{globalAttributes-e6844e74.js → globalAttributes-ccb32e22.js} +2 -2
- package/dist/cjs/{guid-3ca70711.js → guid-1e0b0f67.js} +1 -1
- package/dist/cjs/{he-35f51ca2.js → he-d84b4212.js} +19 -19
- package/dist/cjs/{hi-b031acb9.js → hi-9bac4c90.js} +19 -19
- package/dist/cjs/{hr-78cbaaa0.js → hr-ff728662.js} +19 -19
- package/dist/cjs/{hu-e3472704.js → hu-41cc433c.js} +19 -19
- package/dist/cjs/{id-d595ead7.js → id-eca35b10.js} +19 -19
- package/dist/cjs/{index-2e9edfd2.js → index-116f6316.js} +1 -1
- package/dist/cjs/{index-d0051566.js → index-9e262221.js} +1 -1
- package/dist/cjs/{index-a7da7972.js → index-fc4709b5.js} +4 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-63c87528.js → interactive-85342790.js} +2 -2
- package/dist/cjs/{it-71456994.js → it-876c81dd.js} +19 -19
- package/dist/cjs/{it-ch-a078d6ae.js → it-ch-c9b3b7f1.js} +19 -19
- package/dist/cjs/{ja-498e2571.js → ja-13ee212f.js} +19 -19
- package/dist/cjs/{key-684321a9.js → key-a4c93b7e.js} +1 -1
- package/dist/cjs/{ko-4fb584f2.js → ko-8072d777.js} +19 -19
- package/dist/cjs/{label-e907ccc3.js → label-6067d976.js} +2 -2
- package/dist/cjs/{loadable-ca33c053.js → loadable-44845089.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-fdb6dbd1.js → locale-cbb99fe2.js} +4 -4
- package/dist/cjs/{lt-4bc6c2b7.js → lt-b19e10a6.js} +19 -19
- package/dist/cjs/{lv-b98242ba.js → lv-ac328cb0.js} +19 -19
- package/dist/cjs/{math-b15c673e.js → math-83d27cca.js} +1 -1
- package/dist/cjs/{mk-54193268.js → mk-e057d4f9.js} +19 -19
- package/dist/cjs/{nb-e1e7c4a2.js → nb-983189be.js} +19 -19
- package/dist/cjs/{nl-a7dfddad.js → nl-f59202e2.js} +19 -19
- package/dist/cjs/{observers-361c5f95.js → observers-356e231d.js} +1 -1
- package/dist/cjs/{openCloseComponent-60d5a269.js → openCloseComponent-8c5d3bdd.js} +2 -2
- package/dist/cjs/{pl-e84b5f01.js → pl-e2e2a2a7.js} +19 -19
- package/dist/cjs/{pt-6500a818.js → pt-7c4e9b61.js} +19 -19
- package/dist/cjs/{pt-br-d35449e2.js → pt-br-cd4bece8.js} +19 -19
- package/dist/cjs/{resources-500cafb8.js → resources-07dbe2b5.js} +1 -1
- package/dist/cjs/{resources-d4167ccd.js → resources-196c060e.js} +1 -1
- package/dist/cjs/{resources-46ea8e9a.js → resources-262554e3.js} +1 -1
- package/dist/cjs/{resources-3018900e.js → resources-4f558b32.js} +1 -1
- package/dist/cjs/{resources-11b85b89.js → resources-8554bb7e.js} +1 -1
- package/dist/cjs/{resources-5b3efc8e.js → resources-af3b99bb.js} +5 -5
- package/dist/cjs/{resources-bb759c8a.js → resources-bfc85c62.js} +1 -1
- package/dist/cjs/{ro-b933ec64.js → ro-765b6129.js} +19 -19
- package/dist/cjs/{ru-8bc8bca6.js → ru-8191e57c.js} +19 -19
- package/dist/cjs/{sk-e7af81ae.js → sk-ea975df5.js} +19 -19
- package/dist/cjs/{sl-407bc5d0.js → sl-0ca26ef3.js} +19 -19
- package/dist/cjs/{sortableComponent-3e7bf7b2.js → sortableComponent-eb2a4459.js} +1 -1
- package/dist/cjs/{sr-c55804f1.js → sr-8d485ac3.js} +19 -19
- package/dist/cjs/{sv-dd9d8b16.js → sv-ba3734bb.js} +19 -19
- package/dist/cjs/{t9n-3b829039.js → t9n-fb81f7d8.js} +3 -3
- package/dist/cjs/{th-7dae0a69.js → th-6eb136d4.js} +19 -19
- package/dist/cjs/{throttle-315d0179.js → throttle-cf1e2460.js} +2 -2
- package/dist/cjs/{tr-0dabff14.js → tr-5addd46a.js} +19 -19
- package/dist/cjs/{uk-40b86541.js → uk-4d6565ed.js} +19 -19
- package/dist/cjs/{utils-99c04c4f.js → utils-197b1c89.js} +1 -1
- package/dist/cjs/{utils-aa7a9898.js → utils-d0f7aaa4.js} +3 -3
- package/dist/cjs/{vi-e61dedc5.js → vi-5955b97e.js} +19 -19
- package/dist/cjs/{zh-cn-c931afe9.js → zh-cn-507591cd.js} +19 -19
- package/dist/cjs/{zh-hk-4027f512.js → zh-hk-e617a56b.js} +19 -19
- package/dist/cjs/{zh-tw-ccb1affd.js → zh-tw-7cdb426e.js} +19 -19
- package/dist/collection/components/accordion/accordion.css +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.css +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.css +11 -19
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.css +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.css +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.css +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.css +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.css +15 -64
- package/dist/collection/components/alert/alert.js +4 -18
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.css +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.css +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.css +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.css +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/chip-group/chip-group.css +1 -1
- package/dist/collection/components/chip-group/chip-group.js +1 -1
- package/dist/collection/components/color-picker/color-picker.css +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.css +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/assets/combobox/t9n/index.d.ts +3 -0
- package/dist/collection/components/combobox/assets/combobox/t9n/messages.json +4 -1
- package/dist/collection/components/combobox/assets/combobox/t9n/messages_en.json +4 -1
- package/dist/collection/components/combobox/combobox.css +29 -5
- package/dist/collection/components/combobox/combobox.js +261 -32
- package/dist/collection/components/combobox/resources.js +4 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.css +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.css +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.css +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.css +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.css +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.css +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.css +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.css +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.css +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.css +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.css +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/FloatingArrow.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/functional/XButton.js +1 -1
- package/dist/collection/components/graph/graph.css +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.css +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.css +1 -1
- package/dist/collection/components/icon/icon.js +7 -2
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.css +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.css +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.css +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-date-picker/utils.js +1 -1
- package/dist/collection/components/input-message/input-message.css +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.css +1 -1
- package/dist/collection/components/input-number/input-number.js +2 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.css +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.css +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/input-time-picker/resources.js +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.css +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
- package/dist/collection/components/input-time-zone/utils.js +1 -1
- package/dist/collection/components/label/label.css +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.css +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.css +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.css +1 -1
- package/dist/collection/components/list-item/list-item.js +10 -2
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.css +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.css +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/menu/menu.css +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-item/menu-item.css +1 -1
- package/dist/collection/components/menu-item/menu-item.js +1 -1
- package/dist/collection/components/menu-item/resources.js +1 -1
- package/dist/collection/components/meter/meter.css +1 -1
- package/dist/collection/components/meter/meter.js +1 -1
- package/dist/collection/components/meter/resources.js +1 -1
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/navigation/navigation.css +1 -1
- package/dist/collection/components/navigation/navigation.js +1 -1
- package/dist/collection/components/navigation/resources.js +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.css +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
- package/dist/collection/components/navigation-logo/resources.js +1 -1
- package/dist/collection/components/navigation-user/navigation-user.css +1 -1
- package/dist/collection/components/navigation-user/navigation-user.js +1 -1
- package/dist/collection/components/navigation-user/resources.js +1 -1
- package/dist/collection/components/notice/notice.css +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.css +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.css +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.css +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.css +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.css +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.css +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.css +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.css +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.css +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.css +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.css +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/functional/star.js +1 -1
- package/dist/collection/components/rating/rating.css +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.css +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.css +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +1 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.css +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/sheet/resources.js +1 -1
- package/dist/collection/components/sheet/sheet.css +1 -1
- package/dist/collection/components/sheet/sheet.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.css +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.css +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.css +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.css +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.css +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.css +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stack/resources.js +1 -1
- package/dist/collection/components/stack/stack.css +1 -1
- package/dist/collection/components/stack/stack.js +1 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/index.d.ts +2 -0
- package/dist/collection/components/stepper/assets/stepper/t9n/messages.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ar.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_bg.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_bs.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ca.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_cs.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_da.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_de.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_el.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_en.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_es.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_et.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_fi.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_fr.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_he.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_hr.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_hu.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_id.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_it.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ja.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ko.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_lt.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_lv.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_nl.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_no.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_pl.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_pt-BR.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_pt-PT.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ro.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ru.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_sk.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_sl.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_sr.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_sv.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_th.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_tr.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_uk.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_vi.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_zh-CN.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_zh-HK.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_zh-TW.json +3 -1
- package/dist/collection/components/stepper/functional/step-bar.js +23 -0
- package/dist/collection/components/stepper/resources.js +18 -0
- package/dist/collection/components/stepper/stepper.css +96 -3
- package/dist/collection/components/stepper/stepper.js +133 -36
- package/dist/collection/components/stepper-item/resources.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.css +36 -14
- package/dist/collection/components/stepper-item/stepper-item.js +34 -9
- package/dist/collection/components/switch/switch.css +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/resources.js +1 -1
- package/dist/collection/components/tab/tab.css +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/resources.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.css +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.css +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/table/resources.js +1 -1
- package/dist/collection/components/table/table.css +1 -1
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/table-cell/resources.js +1 -1
- package/dist/collection/components/table-cell/table-cell.css +1 -1
- package/dist/collection/components/table-cell/table-cell.js +1 -1
- package/dist/collection/components/table-header/resources.js +1 -1
- package/dist/collection/components/table-header/table-header.css +1 -1
- package/dist/collection/components/table-header/table-header.js +1 -1
- package/dist/collection/components/table-row/table-row.css +1 -1
- package/dist/collection/components/table-row/table-row.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.css +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text-area/resources.js +1 -1
- package/dist/collection/components/text-area/text-area.css +1 -1
- package/dist/collection/components/text-area/text-area.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.css +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.css +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.css +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.css +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.css +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.css +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.css +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/utils.js +1 -1
- package/dist/collection/components/tree/tree.css +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.css +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.css +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.css +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/browser.js +1 -1
- package/dist/collection/utils/component.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +30 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/mode.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/responsive.js +1 -1
- package/dist/collection/utils/sortableComponent.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +2 -2
- package/dist/components/ar.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/bg.js +1 -1
- package/dist/components/bs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/ca.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +4 -18
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip-group.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-headless.js +17 -0
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input-time-zone.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +10 -2
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-sheet.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stack.js +1 -1
- package/dist/components/calcite-stepper-item.js +15 -10
- package/dist/components/calcite-stepper.js +178 -36
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-table-cell.js +1 -1
- package/dist/components/calcite-table-header.js +1 -1
- package/dist/components/calcite-table-row.js +1 -1
- package/dist/components/calcite-table.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +233 -29
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/cs.js +1 -1
- package/dist/components/da.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/de-at.js +1 -1
- package/dist/components/de-ch.js +1 -1
- package/dist/components/de.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +31 -2
- package/dist/components/dropdown.js +1 -1
- package/dist/components/el.js +1 -1
- package/dist/components/en-au.js +1 -1
- package/dist/components/en-ca.js +1 -1
- package/dist/components/en-gb.js +1 -1
- package/dist/components/es-mx.js +1 -1
- package/dist/components/es.js +1 -1
- package/dist/components/et.js +1 -1
- package/dist/components/fi.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +2 -2
- package/dist/components/form.js +1 -1
- package/dist/components/fr-ch.js +1 -1
- package/dist/components/fr.js +1 -1
- package/dist/components/globalAttributes.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/he.js +1 -1
- package/dist/components/hi.js +1 -1
- package/dist/components/hr.js +1 -1
- package/dist/components/hu.js +1 -1
- package/dist/components/icon.js +7 -2
- package/dist/components/id.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/input-number.js +2 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/it-ch.js +1 -1
- package/dist/components/it.js +1 -1
- package/dist/components/ja.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/ko.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +2 -2
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +2 -2
- package/dist/components/lt.js +1 -1
- package/dist/components/lv.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/mk.js +1 -1
- package/dist/components/nb.js +1 -1
- package/dist/components/nl.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/pagination.js +18 -2
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/pl.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/pt-br.js +1 -1
- package/dist/components/pt.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/ro.js +1 -1
- package/dist/components/ru.js +1 -1
- package/dist/components/scrim.js +2 -2
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/sr.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/sv.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/th.js +1 -1
- package/dist/components/throttle.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tr.js +1 -1
- package/dist/components/uk.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +5 -2
- package/dist/components/utils3.js +1 -1
- package/dist/components/vi.js +1 -1
- package/dist/components/zh-cn.js +1 -1
- package/dist/components/zh-hk.js +1 -1
- package/dist/components/zh-tw.js +1 -1
- package/dist/esm/{ExpandToggle-86134178.js → ExpandToggle-cbe3138a.js} +5 -5
- package/dist/esm/{FloatingArrow-22fa9906.js → FloatingArrow-148f3b5e.js} +2 -2
- package/dist/esm/{Heading-dcdeace2.js → Heading-4a1f2a4e.js} +2 -2
- package/dist/esm/{app-globals-be06453e.js → app-globals-59f95356.js} +2 -2
- package/dist/esm/{ar-000d2910.js → ar-9778903f.js} +19 -19
- package/dist/esm/{array-482d1e00.js → array-c14c0096.js} +1 -1
- package/dist/esm/{bg-8db90f0f.js → bg-f194de67.js} +19 -19
- package/dist/esm/{browser-cbe83df0.js → browser-831752f3.js} +1 -1
- package/dist/esm/{bs-dea8c806.js → bs-a2b9e312.js} +19 -19
- package/dist/esm/{ca-0a6f3991.js → ca-661cb1b7.js} +19 -19
- package/dist/esm/calcite-accordion_2.entry.js +8 -8
- package/dist/esm/calcite-action-bar.entry.js +15 -15
- package/dist/esm/calcite-action-group.entry.js +13 -13
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +14 -14
- package/dist/esm/calcite-alert.entry.js +16 -28
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +15 -15
- package/dist/esm/calcite-button.entry.js +16 -16
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +11 -11
- package/dist/esm/calcite-chip-group.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +14 -14
- package/dist/esm/calcite-color-picker_3.entry.js +16 -16
- package/dist/esm/calcite-combobox_3.entry.js +248 -45
- package/dist/esm/calcite-date-picker_4.entry.js +15 -15
- package/dist/esm/calcite-dropdown_3.entry.js +14 -14
- package/dist/esm/calcite-fab.entry.js +8 -8
- package/dist/esm/calcite-filter.entry.js +14 -14
- package/dist/esm/calcite-flow-item.entry.js +13 -13
- package/dist/esm/calcite-flow.entry.js +4 -4
- package/dist/esm/calcite-graph_2.entry.js +14 -14
- package/dist/esm/calcite-handle.entry.js +10 -10
- package/dist/esm/calcite-headless-de47375e.js +17 -0
- package/dist/esm/calcite-icon.entry.js +12 -7
- package/dist/esm/calcite-inline-editable.entry.js +13 -13
- package/dist/esm/calcite-input-date-picker.entry.js +20 -20
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +16 -15
- package/dist/esm/calcite-input-text.entry.js +15 -15
- package/dist/esm/{calcite-input-time-picker.calcite-time-picker-a095e060.js → calcite-input-time-picker.calcite-time-picker-06e3bf28.js} +63 -63
- package/dist/esm/calcite-input-time-picker_2.entry.js +19 -19
- package/dist/esm/calcite-input-time-zone.entry.js +16 -16
- package/dist/esm/calcite-input.entry.js +15 -15
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +8 -8
- package/dist/esm/calcite-list_3.entry.js +24 -16
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +11 -11
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +14 -14
- package/dist/esm/calcite-navigation_3.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +14 -14
- package/dist/esm/calcite-option_3.entry.js +12 -12
- package/dist/esm/calcite-pagination.entry.js +28 -12
- package/dist/esm/calcite-panel.entry.js +15 -15
- package/dist/esm/calcite-pick-list_3.entry.js +17 -17
- package/dist/esm/calcite-popover.entry.js +17 -17
- package/dist/esm/calcite-progress.entry.js +5 -5
- package/dist/esm/calcite-radio-button-group.entry.js +4 -4
- package/dist/esm/calcite-radio-button.entry.js +11 -11
- package/dist/esm/calcite-rating.entry.js +14 -14
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +11 -11
- package/dist/esm/calcite-sheet.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +9 -9
- package/dist/esm/calcite-split-button.entry.js +5 -5
- package/dist/esm/calcite-stack.entry.js +6 -6
- package/dist/esm/calcite-stepper_2.entry.js +178 -53
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-tab_4.entry.js +12 -12
- package/dist/esm/calcite-table-cell_2.entry.js +13 -13
- package/dist/esm/calcite-table-row.entry.js +9 -9
- package/dist/esm/calcite-table.entry.js +11 -11
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-select_2.entry.js +6 -6
- package/dist/esm/calcite-tile.entry.js +9 -9
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +9 -9
- package/dist/esm/calcite-tree_2.entry.js +10 -10
- package/dist/esm/calcite-value-list_2.entry.js +17 -17
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{component-6dbc7339.js → component-d0ca7bc4.js} +1 -1
- package/dist/esm/{conditionalSlot-24ea961a.js → conditionalSlot-96f6674f.js} +3 -3
- package/dist/esm/{cs-fe117ddb.js → cs-420e28da.js} +19 -19
- package/dist/esm/{da-104f52c6.js → da-c4fcf6ff.js} +19 -19
- package/dist/esm/{de-1d0fa10d.js → de-824c602d.js} +19 -19
- package/dist/esm/{de-at-dae09d71.js → de-at-ea9d65b9.js} +19 -19
- package/dist/esm/{de-ch-e71b84cd.js → de-ch-d43b9e23.js} +19 -19
- package/dist/esm/{debounce-ea954c3e.js → debounce-3686e172.js} +1 -1
- package/dist/esm/{dom-9fda7266.js → dom-ca8ee904.js} +33 -4
- package/dist/esm/{el-447ccfbf.js → el-0b6cf421.js} +19 -19
- package/dist/esm/{en-au-d8055964.js → en-au-f47c1008.js} +19 -19
- package/dist/esm/{en-ca-cee114b5.js → en-ca-5649eb0b.js} +19 -19
- package/dist/esm/{en-gb-b0c8e9f9.js → en-gb-0d731e58.js} +19 -19
- package/dist/esm/{es-de057118.js → es-a558b1a8.js} +19 -19
- package/dist/esm/{es-mx-ac51b292.js → es-mx-59854209.js} +19 -19
- package/dist/esm/{et-bd309ac7.js → et-8b703bcf.js} +19 -19
- package/dist/esm/{fi-1be9f7f1.js → fi-70f21a97.js} +19 -19
- package/dist/esm/{filter-a7dd3bab.js → filter-a679784d.js} +2 -2
- package/dist/esm/{floating-ui-adec45dc.js → floating-ui-7ddf7d29.js} +3 -3
- package/dist/esm/{focusTrapComponent-3017f11d.js → focusTrapComponent-6c5022d0.js} +2 -2
- package/dist/esm/{form-92bcd6ea.js → form-81424159.js} +3 -3
- package/dist/esm/{fr-a1e13266.js → fr-291425df.js} +19 -19
- package/dist/esm/{fr-ch-872c9ff7.js → fr-ch-7ffcd0ed.js} +19 -19
- package/dist/esm/{globalAttributes-d0be061a.js → globalAttributes-9b2a8e53.js} +2 -2
- package/dist/esm/{guid-9e8e6556.js → guid-3ff9eb16.js} +1 -1
- package/dist/esm/{he-115f95b5.js → he-0ecf55d6.js} +19 -19
- package/dist/esm/{hi-0bd37987.js → hi-f3116112.js} +19 -19
- package/dist/esm/{hr-c6d60515.js → hr-621954e0.js} +19 -19
- package/dist/esm/{hu-064a351b.js → hu-9cdf9c14.js} +19 -19
- package/dist/esm/{id-8a2bd2b1.js → id-656d01ec.js} +19 -19
- package/dist/esm/{index-c9eb7de1.js → index-27f90699.js} +1 -1
- package/dist/esm/{index-1b14affb.js → index-35a60b1e.js} +1 -1
- package/dist/esm/{index-8c911bc8.js → index-fde4e4d2.js} +4 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-545ffd85.js → interactive-61bfeb2c.js} +2 -2
- package/dist/esm/{it-7f8ee868.js → it-47f2e148.js} +19 -19
- package/dist/esm/{it-ch-b7939213.js → it-ch-11a344a0.js} +19 -19
- package/dist/esm/{ja-7d95f91f.js → ja-82299cb3.js} +19 -19
- package/dist/esm/{key-d83d7206.js → key-0803a442.js} +1 -1
- package/dist/esm/{ko-db237a14.js → ko-547aa47d.js} +19 -19
- package/dist/esm/{label-b71613c3.js → label-04f4e694.js} +2 -2
- package/dist/esm/{loadable-f65f4287.js → loadable-47dfbac9.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-c94c54da.js → locale-2d5a31b9.js} +4 -4
- package/dist/esm/{lt-a6ad0fb4.js → lt-fcd2c3b2.js} +19 -19
- package/dist/esm/{lv-46d53134.js → lv-8acc7a54.js} +19 -19
- package/dist/esm/{math-ea88bd4f.js → math-842fa1ff.js} +1 -1
- package/dist/esm/{mk-e3c0a854.js → mk-069fae23.js} +19 -19
- package/dist/esm/{nb-a9d0dbca.js → nb-858c7d3a.js} +19 -19
- package/dist/esm/{nl-acafc278.js → nl-25a32fd4.js} +19 -19
- package/dist/esm/{observers-8787f411.js → observers-70e487eb.js} +1 -1
- package/dist/esm/{openCloseComponent-3a27ec1f.js → openCloseComponent-7b4d699f.js} +2 -2
- package/dist/esm/{pl-cca25e1b.js → pl-7ad7d360.js} +19 -19
- package/dist/esm/{pt-3158a2da.js → pt-569d151f.js} +19 -19
- package/dist/esm/{pt-br-58f6a781.js → pt-br-96f1d324.js} +19 -19
- package/dist/esm/{resources-cc728881.js → resources-276fb7ca.js} +1 -1
- package/dist/esm/{resources-b4aeeae0.js → resources-2d6bcc0a.js} +1 -1
- package/dist/esm/{resources-94956841.js → resources-34c1d680.js} +1 -1
- package/dist/esm/{resources-6cfae896.js → resources-53e1b824.js} +1 -1
- package/dist/esm/{resources-14a2e098.js → resources-6200b0c1.js} +1 -1
- package/dist/esm/{resources-00defd5a.js → resources-91130a52.js} +1 -1
- package/dist/esm/{resources-32879c6c.js → resources-ff06f2c7.js} +5 -5
- package/dist/esm/{ro-f93fd6f2.js → ro-801a7499.js} +19 -19
- package/dist/esm/{ru-f2ab8f0f.js → ru-65092d89.js} +19 -19
- package/dist/esm/{sk-f8fc0f2e.js → sk-8814a540.js} +19 -19
- package/dist/esm/{sl-dece5844.js → sl-0bf4cdbc.js} +19 -19
- package/dist/esm/{sortableComponent-afde5ec3.js → sortableComponent-5d214079.js} +1 -1
- package/dist/esm/{sr-cba02254.js → sr-50150dab.js} +19 -19
- package/dist/esm/{sv-15f5160a.js → sv-7471c52f.js} +19 -19
- package/dist/esm/{t9n-96e4f77e.js → t9n-44aa7de7.js} +3 -3
- package/dist/esm/{th-3e45360e.js → th-1f6d4374.js} +19 -19
- package/dist/esm/{throttle-84f55d8f.js → throttle-74b34127.js} +2 -2
- package/dist/esm/{tr-b3335cc0.js → tr-b4cd3a97.js} +19 -19
- package/dist/esm/{uk-7566c4c9.js → uk-b1246942.js} +19 -19
- package/dist/esm/{utils-66314e23.js → utils-23fbb9ed.js} +1 -1
- package/dist/esm/{utils-1839bbc4.js → utils-c665abd4.js} +3 -3
- package/dist/esm/{vi-17f0c354.js → vi-b5ca0f66.js} +19 -19
- package/dist/esm/{zh-cn-871b3e27.js → zh-cn-34c90f13.js} +19 -19
- package/dist/esm/{zh-hk-f53d495a.js → zh-hk-1543aef4.js} +19 -19
- package/dist/esm/{zh-tw-7b7f1bf1.js → zh-tw-a3f660fe.js} +19 -19
- package/dist/extras/docs-json.json +53 -9
- package/dist/extras/translations-json.json +1 -1
- package/dist/extras/vscode-data.json +15 -0
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/alert/alert.d.ts +0 -2
- package/dist/types/components/combobox/assets/combobox/t9n/index.d.ts +3 -0
- package/dist/types/components/combobox/combobox.d.ts +32 -4
- package/dist/types/components/combobox/interfaces.d.ts +1 -0
- package/dist/types/components/combobox/resources.d.ts +3 -0
- package/dist/types/components/stepper/assets/stepper/t9n/index.d.ts +2 -0
- package/dist/types/components/stepper/functional/step-bar.d.ts +18 -0
- package/dist/types/components/stepper/resources.d.ts +13 -0
- package/dist/types/components/stepper/stepper.d.ts +19 -9
- package/dist/types/components/stepper-item/stepper-item.d.ts +6 -0
- package/dist/types/components.d.ts +15 -2
- package/dist/types/utils/dom.d.ts +16 -0
- package/hydrate/index.js +901 -542
- package/package.json +2 -2
- package/dist/calcite/p-001044b9.entry.js +0 -6
- package/dist/calcite/p-02c4205b.js +0 -7
- package/dist/calcite/p-14b04384.js +0 -6
- package/dist/calcite/p-30f73cdb.js +0 -6
- package/dist/calcite/p-3c99e153.js +0 -6
- package/dist/calcite/p-44878d74.entry.js +0 -6
- package/dist/calcite/p-6642fb7d.entry.js +0 -6
- package/dist/calcite/p-7c11b385.entry.js +0 -6
- package/dist/calcite/p-7c6f39b6.entry.js +0 -6
- package/dist/calcite/p-8b3743a4.entry.js +0 -6
- package/dist/calcite/p-8db6cd10.js +0 -6
- package/dist/calcite/p-941b9a72.entry.js +0 -6
- package/dist/calcite/p-977685d5.js +0 -6
- package/dist/calcite/p-9dd3fcda.js +0 -6
- package/dist/calcite/p-a094e0b2.js +0 -6
- package/dist/calcite/p-a1eddf46.js +0 -6
- package/dist/calcite/p-a47985ed.entry.js +0 -6
- package/dist/calcite/p-ae495062.js +0 -6
- package/dist/calcite/p-b0a159a1.entry.js +0 -6
- package/dist/calcite/p-b49eaa7b.entry.js +0 -6
- package/dist/calcite/p-c052506e.js +0 -6
- package/dist/calcite/p-c199ce6c.entry.js +0 -6
- package/dist/calcite/p-c473aca4.entry.js +0 -6
- package/dist/calcite/p-ce1474c6.entry.js +0 -6
- package/dist/calcite/p-e09afe5e.entry.js +0 -6
- package/dist/calcite/p-e18c2187.entry.js +0 -6
- package/dist/calcite/p-e569288f.entry.js +0 -6
- package/dist/calcite/p-fcd3c43a.entry.js +0 -6
- package/dist/cjs/responsive-d1010b5c.js +0 -34
- package/dist/components/responsive.js +0 -32
- package/dist/esm/responsive-a81fe7c1.js +0 -32
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v2.0.0-next.
|
|
4
|
+
* v2.0.0-next.1
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -4948,7 +4948,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
4948
4948
|
|
|
4949
4949
|
|
|
4950
4950
|
const NAMESPACE = 'calcite';
|
|
4951
|
-
const BUILD = /* calcite */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate:
|
|
4951
|
+
const BUILD = /* calcite */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, cssVarShim: false, devTools: false, disconnectedCallback: true, dynamicImportShim: false, element: false, event: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, safari10: false, scoped: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
4952
4952
|
|
|
4953
4953
|
const autoMode = "calcite-mode-auto";
|
|
4954
4954
|
const darkMode = "calcite-mode-dark";
|
|
@@ -5535,7 +5535,8 @@ const callRender = (e, t, o) => {
|
|
|
5535
5535
|
}, postUpdateComponent = e => {
|
|
5536
5536
|
const t = e.$cmpMeta$.$tagName$, o = e.$hostElement$, n = createTime("postUpdate", t), s = e.$lazyInstance$ , l = e.$ancestorComponent$;
|
|
5537
5537
|
(safeCall(s, "componentDidRender"),
|
|
5538
|
-
BUILD.isDev ), 64 & e.$flags$ ? (
|
|
5538
|
+
BUILD.isDev ), 64 & e.$flags$ ? ((safeCall(s, "componentDidUpdate"),
|
|
5539
|
+
BUILD.isDev ), n()) : (e.$flags$ |= 64, addHydratedFlag(o),
|
|
5539
5540
|
(safeCall(s, "componentDidLoad"),
|
|
5540
5541
|
BUILD.isDev ), n(), (e.$onReadyResolve$(o), l || appDidLoad())), e.$onInstanceResolve$(o), (e.$onRenderResolve$ && (e.$onRenderResolve$(),
|
|
5541
5542
|
e.$onRenderResolve$ = void 0), 512 & e.$flags$ && nextTick((() => scheduleUpdate(e, !1))),
|
|
@@ -6622,6 +6623,18 @@ function getElementDir(el) {
|
|
|
6622
6623
|
const closest = closestElementCrossShadowBoundary(el, selector);
|
|
6623
6624
|
return closest ? closest.getAttribute(prop) : "ltr";
|
|
6624
6625
|
}
|
|
6626
|
+
/**
|
|
6627
|
+
* This helper returns the computed width in pixels of a rendered HTMLElement.
|
|
6628
|
+
*
|
|
6629
|
+
* @param {HTMLElement} el An element.
|
|
6630
|
+
* @returns {number} The element's width.
|
|
6631
|
+
*/
|
|
6632
|
+
function getElementWidth(el) {
|
|
6633
|
+
if (!el) {
|
|
6634
|
+
return 0;
|
|
6635
|
+
}
|
|
6636
|
+
return parseFloat(getComputedStyle(el).inlineSize);
|
|
6637
|
+
}
|
|
6625
6638
|
/**
|
|
6626
6639
|
* This helper returns the rootNode of an element.
|
|
6627
6640
|
*
|
|
@@ -6641,6 +6654,23 @@ function getShadowRootNode(el) {
|
|
|
6641
6654
|
const rootNode = getRootNode(el);
|
|
6642
6655
|
return "host" in rootNode ? rootNode : null;
|
|
6643
6656
|
}
|
|
6657
|
+
/**
|
|
6658
|
+
* This helper returns the computed width in pixels a given text string takes up on screen.
|
|
6659
|
+
*
|
|
6660
|
+
* See https://stackoverflow.com/questions/118241/calculate-text-width-with-javascript
|
|
6661
|
+
*
|
|
6662
|
+
* @param {string} text The string of text to measure.
|
|
6663
|
+
* @param {string} font The CSS font attribute's value, which should include size and face, e.g. "12px Arial".
|
|
6664
|
+
*/
|
|
6665
|
+
function getTextWidth(text, font) {
|
|
6666
|
+
if (!text) {
|
|
6667
|
+
return 0;
|
|
6668
|
+
}
|
|
6669
|
+
const canvas = document.createElement("canvas");
|
|
6670
|
+
const context = canvas.getContext("2d");
|
|
6671
|
+
context.font = font;
|
|
6672
|
+
return context.measureText(text).width;
|
|
6673
|
+
}
|
|
6644
6674
|
/**
|
|
6645
6675
|
* This helper returns the host of a ShadowRoot.
|
|
6646
6676
|
*
|
|
@@ -6979,7 +7009,7 @@ const SLOTS$z = {
|
|
|
6979
7009
|
actionsStart: "actions-start",
|
|
6980
7010
|
actionsEnd: "actions-end",
|
|
6981
7011
|
};
|
|
6982
|
-
const CSS$
|
|
7012
|
+
const CSS$1h = {
|
|
6983
7013
|
icon: "icon",
|
|
6984
7014
|
header: "header",
|
|
6985
7015
|
headerContent: "header-content",
|
|
@@ -7047,28 +7077,28 @@ class AccordionItem {
|
|
|
7047
7077
|
// --------------------------------------------------------------------------
|
|
7048
7078
|
renderActionsStart() {
|
|
7049
7079
|
const { el } = this;
|
|
7050
|
-
return getSlotted(el, SLOTS$z.actionsStart) ? (hAsync("div", { class: CSS$
|
|
7080
|
+
return getSlotted(el, SLOTS$z.actionsStart) ? (hAsync("div", { class: CSS$1h.actionsStart }, hAsync("slot", { name: SLOTS$z.actionsStart }))) : null;
|
|
7051
7081
|
}
|
|
7052
7082
|
renderActionsEnd() {
|
|
7053
7083
|
const { el } = this;
|
|
7054
|
-
return getSlotted(el, SLOTS$z.actionsEnd) ? (hAsync("div", { class: CSS$
|
|
7084
|
+
return getSlotted(el, SLOTS$z.actionsEnd) ? (hAsync("div", { class: CSS$1h.actionsEnd }, hAsync("slot", { name: SLOTS$z.actionsEnd }))) : null;
|
|
7055
7085
|
}
|
|
7056
7086
|
render() {
|
|
7057
7087
|
const { iconFlipRtl } = this;
|
|
7058
7088
|
const dir = getElementDir(this.el);
|
|
7059
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
7060
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
7089
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$1h.iconStart, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "start", icon: this.iconStart, key: "icon-start", scale: getIconScale(this.scale) })) : null;
|
|
7090
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$1h.iconEnd, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "end", icon: this.iconEnd, key: "icon-end", scale: getIconScale(this.scale) })) : null;
|
|
7061
7091
|
const { description } = this;
|
|
7062
7092
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
7063
7093
|
[`icon-position--${this.iconPosition}`]: true,
|
|
7064
7094
|
[`icon-type--${this.iconType}`]: true,
|
|
7065
|
-
} }, hAsync("div", { class: { [CSS$
|
|
7095
|
+
} }, hAsync("div", { class: { [CSS$1h.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-controls": IDS$2.section, "aria-expanded": toAriaBoolean(this.expanded), class: CSS$1h.headerContent, id: IDS$2.sectionToggle, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, hAsync("div", { class: CSS$1h.headerContainer }, iconStartEl, hAsync("div", { class: CSS$1h.headerText }, hAsync("span", { class: CSS$1h.heading }, this.heading), description ? hAsync("span", { class: CSS$1h.description }, description) : null), iconEndEl), hAsync("calcite-icon", { class: CSS$1h.expandIcon, icon: this.iconType === "chevron"
|
|
7066
7096
|
? "chevronDown"
|
|
7067
7097
|
: this.iconType === "caret"
|
|
7068
7098
|
? "caretDown"
|
|
7069
7099
|
: this.expanded
|
|
7070
7100
|
? "minus"
|
|
7071
|
-
: "plus", scale: getIconScale(this.scale) })), this.renderActionsEnd()), hAsync("section", { "aria-labelledby": IDS$2.sectionToggle, class: CSS$
|
|
7101
|
+
: "plus", scale: getIconScale(this.scale) })), this.renderActionsEnd()), hAsync("section", { "aria-labelledby": IDS$2.sectionToggle, class: CSS$1h.content, id: IDS$2.section }, hAsync("slot", null)))));
|
|
7072
7102
|
}
|
|
7073
7103
|
//--------------------------------------------------------------------------
|
|
7074
7104
|
//
|
|
@@ -7990,7 +8020,7 @@ function defaultOnMessagesChange() {
|
|
|
7990
8020
|
mergeMessages(this);
|
|
7991
8021
|
}
|
|
7992
8022
|
|
|
7993
|
-
const CSS$
|
|
8023
|
+
const CSS$1g = {
|
|
7994
8024
|
button: "button",
|
|
7995
8025
|
buttonTextVisible: "button--text-visible",
|
|
7996
8026
|
buttonCompact: "button--compact",
|
|
@@ -8007,7 +8037,7 @@ const SLOTS$y = {
|
|
|
8007
8037
|
tooltip: "tooltip",
|
|
8008
8038
|
};
|
|
8009
8039
|
|
|
8010
|
-
const actionCss = "/*!@:host*/.sc-calcite-action-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-action-h *.sc-calcite-action{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-action-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-action-h *.sc-calcite-action,.sc-calcite-action-h[disabled] .sc-calcite-action-s>*{pointer-events:none}/*!@:host*/.sc-calcite-action-h{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-action-h[disabled] .sc-calcite-action-s>[calcite-hydrated][disabled],[disabled].sc-calcite-action-h [calcite-hydrated][disabled].sc-calcite-action{opacity:1}/*!@.button*/.button.sc-calcite-action{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}/*!@.button:hover*/.button.sc-calcite-action:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@.button:focus*/.button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.button:active*/.button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-3)}/*!@.button .icon-container*/.button.sc-calcite-action .icon-container.sc-calcite-action{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}/*!@.button .text-container*/.button.sc-calcite-action .text-container.sc-calcite-action{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}/*!@.button .text-container--visible*/.button.sc-calcite-action .text-container--visible.sc-calcite-action{inline-size:auto;flex:1 1 auto;opacity:1}/*!@:host([scale=s]) .button*/[scale=s].sc-calcite-action-h .button.sc-calcite-action{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=s]) .button--text-visible .icon-container*/[scale=s].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:0.5rem}/*!@:host([scale=m]) .button*/[scale=m].sc-calcite-action-h .button.sc-calcite-action{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=m]) .button--text-visible .icon-container*/[scale=m].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:0.75rem}/*!@:host([scale=l]) .button*/[scale=l].sc-calcite-action-h .button.sc-calcite-action{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=l]) .button--text-visible .icon-container*/[scale=l].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:1rem}/*!@:host([alignment=center]) .button*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action{justify-content:center}/*!@:host([alignment=end]) .button*/[alignment=end].sc-calcite-action-h .button.sc-calcite-action{justify-content:flex-end}/*!@:host([alignment=center]) .button .text-container--visible,\n:host([alignment=end]) .button .text-container--visible*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action,[alignment=end].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action{flex:0 1 auto}/*!@:host([scale=s][compact]) .button,\n:host([scale=m][compact]) .button,\n:host([scale=l][compact]) .button*/[scale=s][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=m][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=l][compact].sc-calcite-action-h .button.sc-calcite-action{padding-inline:0px}/*!@.slot-container*/.slot-container.sc-calcite-action{display:flex}/*!@.slot-container--hidden*/.slot-container--hidden.sc-calcite-action{display:none}/*!@.button--text-visible*/.button--text-visible.sc-calcite-action{inline-size:100%}/*!@:host([active]) .button,\n:host([active]) .button:hover,\n:host([active]) .button:focus,\n:host([active][loading]) .button*/[active].sc-calcite-action-h .button.sc-calcite-action,[active].sc-calcite-action-h .button.sc-calcite-action:hover,[active].sc-calcite-action-h .button.sc-calcite-action:focus,[active][loading].sc-calcite-action-h .button.sc-calcite-action{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@:host([active]) .button:active*/[active].sc-calcite-action-h .button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-1)}/*!@:host([appearance=transparent]) .button*/[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host([appearance=transparent]) .button:hover,\n:host([appearance=transparent]) .button:focus*/[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:hover,[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:transparent;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}/*!@:host([active][appearance=transparent]) .button,\n:host([active][appearance=transparent]) .button:hover,\n:host([active][appearance=transparent]) .button:focus*/[active][appearance=transparent].sc-calcite-action-h .button.sc-calcite-action,[active][appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:hover,[active][appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][loading]) .button,\n:host([appearance=transparent][disabled]) .button*/[appearance=transparent][loading].sc-calcite-action-h .button.sc-calcite-action,[appearance=transparent][disabled].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent}/*!@:host([loading]) .button,\n:host([loading]) .button:hover,\n:host([loading]) .button:focus*/[loading].sc-calcite-action-h .button.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:hover,[loading].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-1)}/*!@:host([loading]) .button .text-container,\n:host([loading]) .button:hover .text-container,\n:host([loading]) .button:focus .text-container*/[loading].sc-calcite-action-h .button.sc-calcite-action .text-container.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:hover .text-container.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:focus .text-container.sc-calcite-action{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([loading]) calcite-loader[inline]*/[loading].sc-calcite-action-h calcite-loader[inline].sc-calcite-action{color:var(--calcite-ui-text-3);margin-inline-end:0px}/*!@:host([disabled]) .button,\n:host([disabled]) .button:hover,\n:host([disabled]) .button:focus*/[disabled].sc-calcite-action-h .button.sc-calcite-action,[disabled].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled].sc-calcite-action-h .button.sc-calcite-action:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled][active]) .button,\n:host([disabled][active]) .button:hover,\n:host([disabled][active]) .button:focus*/[disabled][active].sc-calcite-action-h .button.sc-calcite-action,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([appearance=transparent]) .button*/[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@.indicator-with-icon*/.indicator-with-icon.sc-calcite-action{position:relative}/*!@.indicator-with-icon::after*/.indicator-with-icon.sc-calcite-action::after{content:\"\";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color)}/*!@.indicator-without-icon*/.indicator-without-icon.sc-calcite-action{margin-inline:0.25rem;inline-size:1rem;position:relative}/*!@.indicator-without-icon::after*/.indicator-without-icon.sc-calcite-action::after{content:\"\";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color)}/*!@.indicator-text*/.indicator-text.sc-calcite-action{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@:host([hidden])*/[hidden].sc-calcite-action-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-action{display:none}";
|
|
8040
|
+
const actionCss = "/*!@:host*/.sc-calcite-action-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-action-h *.sc-calcite-action{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-action-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-action-h *.sc-calcite-action,.sc-calcite-action-h[disabled] .sc-calcite-action-s>*{pointer-events:none}/*!@:host*/.sc-calcite-action-h{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-action-h[disabled] .sc-calcite-action-s>[calcite-hydrated][disabled],[disabled].sc-calcite-action-h [calcite-hydrated][disabled].sc-calcite-action{opacity:1}/*!@.button*/.button.sc-calcite-action{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}/*!@.button:hover*/.button.sc-calcite-action:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@.button:focus*/.button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.button:active*/.button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-3)}/*!@.button .icon-container*/.button.sc-calcite-action .icon-container.sc-calcite-action{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}/*!@.button .text-container*/.button.sc-calcite-action .text-container.sc-calcite-action{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}/*!@.button .text-container--visible*/.button.sc-calcite-action .text-container--visible.sc-calcite-action{inline-size:auto;flex:1 1 auto;opacity:1}/*!@:host([scale=s]) .button*/[scale=s].sc-calcite-action-h .button.sc-calcite-action{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=s]) .button--text-visible .icon-container*/[scale=s].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:0.5rem}/*!@:host([scale=m]) .button*/[scale=m].sc-calcite-action-h .button.sc-calcite-action{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=m]) .button--text-visible .icon-container*/[scale=m].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:0.75rem}/*!@:host([scale=l]) .button*/[scale=l].sc-calcite-action-h .button.sc-calcite-action{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=l]) .button--text-visible .icon-container*/[scale=l].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:1rem}/*!@:host([alignment=center]) .button*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action{justify-content:center}/*!@:host([alignment=end]) .button*/[alignment=end].sc-calcite-action-h .button.sc-calcite-action{justify-content:flex-end}/*!@:host([alignment=center]) .button .text-container--visible,\n:host([alignment=end]) .button .text-container--visible*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action,[alignment=end].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action{flex:0 1 auto}/*!@:host([scale=s][compact]) .button,\n:host([scale=m][compact]) .button,\n:host([scale=l][compact]) .button*/[scale=s][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=m][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=l][compact].sc-calcite-action-h .button.sc-calcite-action{padding-inline:0px}/*!@.slot-container*/.slot-container.sc-calcite-action{display:flex}/*!@.slot-container--hidden*/.slot-container--hidden.sc-calcite-action{display:none}/*!@.button--text-visible*/.button--text-visible.sc-calcite-action{inline-size:100%}/*!@:host([active]) .button,\n:host([active]) .button:hover,\n:host([active]) .button:focus,\n:host([active][loading]) .button*/[active].sc-calcite-action-h .button.sc-calcite-action,[active].sc-calcite-action-h .button.sc-calcite-action:hover,[active].sc-calcite-action-h .button.sc-calcite-action:focus,[active][loading].sc-calcite-action-h .button.sc-calcite-action{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@:host([active]) .button:active*/[active].sc-calcite-action-h .button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-1)}/*!@:host([appearance=transparent]) .button*/[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent}/*!@:host([appearance=transparent][active]) .button,\n:host([appearance=transparent]) .button:hover,\n:host([appearance=transparent]) .button:focus*/[appearance=transparent][active].sc-calcite-action-h .button.sc-calcite-action,[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:hover,[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-button-transparent-hover)}/*!@:host([appearance=transparent]) .button:active*/[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:active{background-color:var(--calcite-button-transparent-press)}/*!@:host([appearance=transparent][disabled]) .button*/[appearance=transparent][disabled].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent}/*!@:host([loading][appearance=solid]) .button,\n:host([loading][appearance=solid]) .button:hover,\n:host([loading][appearance=solid]) .button:focus*/[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action,[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action:hover,[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-1)}/*!@:host([loading][appearance=solid]) .button .text-container,\n:host([loading][appearance=solid]) .button:hover .text-container,\n:host([loading][appearance=solid]) .button:focus .text-container*/[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action .text-container.sc-calcite-action,[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action:hover .text-container.sc-calcite-action,[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action:focus .text-container.sc-calcite-action{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([loading]) calcite-loader[inline]*/[loading].sc-calcite-action-h calcite-loader[inline].sc-calcite-action{color:var(--calcite-ui-text-3);margin-inline-end:0px}/*!@:host([disabled]) .button,\n:host([disabled]) .button:hover,\n:host([disabled]) .button:focus*/[disabled].sc-calcite-action-h .button.sc-calcite-action,[disabled].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled].sc-calcite-action-h .button.sc-calcite-action:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled][active]) .button,\n:host([disabled][active]) .button:hover,\n:host([disabled][active]) .button:focus*/[disabled][active].sc-calcite-action-h .button.sc-calcite-action,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([appearance=transparent]) .button*/[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@.indicator-with-icon*/.indicator-with-icon.sc-calcite-action{position:relative}/*!@.indicator-with-icon::after*/.indicator-with-icon.sc-calcite-action::after{content:\"\";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color)}/*!@.indicator-without-icon*/.indicator-without-icon.sc-calcite-action{margin-inline:0.25rem;inline-size:1rem;position:relative}/*!@.indicator-without-icon::after*/.indicator-without-icon.sc-calcite-action::after{content:\"\";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color)}/*!@.indicator-text*/.indicator-text.sc-calcite-action{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@:host([hidden])*/[hidden].sc-calcite-action-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-action{display:none}";
|
|
8011
8041
|
|
|
8012
8042
|
/**
|
|
8013
8043
|
* @slot - A slot for adding a `calcite-icon`.
|
|
@@ -8104,39 +8134,39 @@ class Action {
|
|
|
8104
8134
|
renderTextContainer() {
|
|
8105
8135
|
const { text, textEnabled } = this;
|
|
8106
8136
|
const textContainerClasses = {
|
|
8107
|
-
[CSS$
|
|
8108
|
-
[CSS$
|
|
8137
|
+
[CSS$1g.textContainer]: true,
|
|
8138
|
+
[CSS$1g.textContainerVisible]: textEnabled,
|
|
8109
8139
|
};
|
|
8110
8140
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
8111
8141
|
}
|
|
8112
8142
|
renderIndicatorText() {
|
|
8113
8143
|
const { indicator, messages, indicatorId, buttonId } = this;
|
|
8114
|
-
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$
|
|
8144
|
+
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$1g.indicatorText, id: indicatorId, role: "region" }, indicator ? messages.indicator : null));
|
|
8115
8145
|
}
|
|
8116
8146
|
renderIconContainer() {
|
|
8117
8147
|
const { loading, icon, scale, el, iconFlipRtl, indicator } = this;
|
|
8118
8148
|
const loaderScale = scale === "l" ? "l" : "m";
|
|
8119
8149
|
const calciteLoaderNode = loading ? (hAsync("calcite-loader", { inline: true, label: this.messages.loading, scale: loaderScale })) : null;
|
|
8120
|
-
const calciteIconNode = icon ? (hAsync("calcite-icon", { class: { [CSS$
|
|
8150
|
+
const calciteIconNode = icon ? (hAsync("calcite-icon", { class: { [CSS$1g.indicatorWithIcon]: indicator }, flipRtl: iconFlipRtl, icon: icon, scale: getIconScale(this.scale) })) : null;
|
|
8121
8151
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
8122
8152
|
const hasIconToDisplay = iconNode || el.children?.length;
|
|
8123
8153
|
const slotContainerNode = (hAsync("div", { class: {
|
|
8124
|
-
[CSS$
|
|
8125
|
-
[CSS$
|
|
8154
|
+
[CSS$1g.slotContainer]: true,
|
|
8155
|
+
[CSS$1g.slotContainerHidden]: loading,
|
|
8126
8156
|
} }, hAsync("slot", null)));
|
|
8127
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
8157
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$1g.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
8128
8158
|
}
|
|
8129
8159
|
render() {
|
|
8130
8160
|
const { active, compact, disabled, icon, loading, textEnabled, label, text, indicator, indicatorId, buttonId, messages, } = this;
|
|
8131
8161
|
const ariaLabel = `${label || text}${indicator ? ` (${messages.indicator})` : ""}`;
|
|
8132
8162
|
const buttonClasses = {
|
|
8133
|
-
[CSS$
|
|
8134
|
-
[CSS$
|
|
8135
|
-
[CSS$
|
|
8163
|
+
[CSS$1g.button]: true,
|
|
8164
|
+
[CSS$1g.buttonTextVisible]: textEnabled,
|
|
8165
|
+
[CSS$1g.buttonCompact]: compact,
|
|
8136
8166
|
};
|
|
8137
8167
|
return (hAsync(Host, null, hAsync("button", { "aria-busy": toAriaBoolean(loading), "aria-controls": indicator ? indicatorId : null, "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, "aria-pressed": toAriaBoolean(active), class: buttonClasses, disabled: disabled, id: buttonId,
|
|
8138
8168
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
8139
|
-
ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer(), !icon && indicator && hAsync("div", { class: CSS$
|
|
8169
|
+
ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer(), !icon && indicator && hAsync("div", { class: CSS$1g.indicatorWithoutIcon, key: "indicator-no-icon" })), hAsync("slot", { name: SLOTS$y.tooltip, onSlotchange: this.handleTooltipSlotChange }), this.renderIndicatorText()));
|
|
8140
8170
|
}
|
|
8141
8171
|
static get assetsDirs() { return ["assets"]; }
|
|
8142
8172
|
get el() { return getElement(this); }
|
|
@@ -9444,11 +9474,11 @@ const SLOTS$x = {
|
|
|
9444
9474
|
const ICONS$k = {
|
|
9445
9475
|
menu: "ellipsis",
|
|
9446
9476
|
};
|
|
9447
|
-
const CSS$
|
|
9477
|
+
const CSS$1f = {
|
|
9448
9478
|
container: "container",
|
|
9449
9479
|
};
|
|
9450
9480
|
|
|
9451
|
-
const CSS$
|
|
9481
|
+
const CSS$1e = {
|
|
9452
9482
|
menu: "menu",
|
|
9453
9483
|
defaultTrigger: "default-trigger",
|
|
9454
9484
|
};
|
|
@@ -9550,7 +9580,7 @@ const ExpandToggle = ({ expanded, expandText, collapseText, toggle, el, position
|
|
|
9550
9580
|
return actionNode;
|
|
9551
9581
|
};
|
|
9552
9582
|
|
|
9553
|
-
const CSS$
|
|
9583
|
+
const CSS$1d = {
|
|
9554
9584
|
actionGroupEnd: "action-group--end",
|
|
9555
9585
|
};
|
|
9556
9586
|
const SLOTS$v = {
|
|
@@ -9756,7 +9786,7 @@ class ActionBar {
|
|
|
9756
9786
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { collapseText: messages.collapse, el: el, expandText: messages.expand, expanded: expanded, position: position, scale: scale, toggle: toggleExpand, tooltip: this.expandTooltip,
|
|
9757
9787
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
9758
9788
|
ref: this.setExpandToggleRef })) : null;
|
|
9759
|
-
return (hAsync("calcite-action-group", { class: CSS$
|
|
9789
|
+
return (hAsync("calcite-action-group", { class: CSS$1d.actionGroupEnd, hidden: this.expandDisabled && !(this.hasActionsEnd || this.hasBottomActions), label: actionsEndGroupLabel, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$v.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), hAsync("slot", { name: SLOTS$v.bottomActions, onSlotchange: this.handleBottomActionsSlotChange }), hAsync("slot", { name: SLOTS$v.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode));
|
|
9760
9790
|
}
|
|
9761
9791
|
render() {
|
|
9762
9792
|
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup()));
|
|
@@ -9884,7 +9914,7 @@ class ActionGroup {
|
|
|
9884
9914
|
return (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], hidden: !hasMenuActions, label: messages.more, onCalciteActionMenuOpen: this.setMenuOpen, open: menuOpen, overlayPositioning: overlayPositioning, placement: layout === "horizontal" ? "bottom-start" : "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$k.menu, scale: scale, slot: SLOTS$w.trigger, text: messages.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$x.menuActions, onSlotchange: this.handleMenuActionsSlotChange }), hAsync("slot", { name: SLOTS$x.menuTooltip, slot: SLOTS$w.tooltip })));
|
|
9885
9915
|
}
|
|
9886
9916
|
render() {
|
|
9887
|
-
return (hAsync("div", { "aria-label": this.label, class: CSS$
|
|
9917
|
+
return (hAsync("div", { "aria-label": this.label, class: CSS$1f.container, role: "group" }, hAsync("slot", null), this.renderMenu()));
|
|
9888
9918
|
}
|
|
9889
9919
|
static get delegatesFocus() { return true; }
|
|
9890
9920
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -10170,7 +10200,7 @@ class ActionMenu {
|
|
|
10170
10200
|
}
|
|
10171
10201
|
renderMenuButton() {
|
|
10172
10202
|
const { appearance, label, scale, expanded } = this;
|
|
10173
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$w.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { appearance: appearance, class: CSS$
|
|
10203
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$w.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { appearance: appearance, class: CSS$1e.defaultTrigger, icon: ICONS$j.menu, scale: scale, text: label, textEnabled: expanded,
|
|
10174
10204
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10175
10205
|
ref: this.setDefaultMenuButtonEl })));
|
|
10176
10206
|
return menuButtonSlot;
|
|
@@ -10179,7 +10209,7 @@ class ActionMenu {
|
|
|
10179
10209
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements, } = this;
|
|
10180
10210
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
10181
10211
|
const activeDescendantId = activeAction?.id || null;
|
|
10182
|
-
return (hAsync("calcite-popover", { flipPlacements: flipPlacements, focusTrapDisabled: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, pointerDisabled: true, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl?.id, class: CSS$
|
|
10212
|
+
return (hAsync("calcite-popover", { flipPlacements: flipPlacements, focusTrapDisabled: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, pointerDisabled: true, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl?.id, class: CSS$1e.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
10183
10213
|
}
|
|
10184
10214
|
render() {
|
|
10185
10215
|
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$w.tooltip, onSlotchange: this.updateTooltip })));
|
|
@@ -10216,7 +10246,7 @@ class ActionMenu {
|
|
|
10216
10246
|
}; }
|
|
10217
10247
|
}
|
|
10218
10248
|
|
|
10219
|
-
const CSS$
|
|
10249
|
+
const CSS$1c = {
|
|
10220
10250
|
actionGroupEnd: "action-group--end",
|
|
10221
10251
|
container: "container",
|
|
10222
10252
|
};
|
|
@@ -10341,10 +10371,10 @@ class ActionPad {
|
|
|
10341
10371
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { collapseText: messages.collapse, el: el, expandText: messages.expand, expanded: expanded, position: position, scale: scale, toggle: toggleExpand, tooltip: this.expandTooltip,
|
|
10342
10372
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10343
10373
|
ref: this.setExpandToggleRef })) : null;
|
|
10344
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
10374
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$1c.actionGroupEnd, label: actionsEndGroupLabel, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$u.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode)) : null;
|
|
10345
10375
|
}
|
|
10346
10376
|
render() {
|
|
10347
|
-
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$
|
|
10377
|
+
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$1c.container }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup())));
|
|
10348
10378
|
}
|
|
10349
10379
|
static get delegatesFocus() { return true; }
|
|
10350
10380
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -10476,7 +10506,7 @@ const SLOTS$t = {
|
|
|
10476
10506
|
message: "message",
|
|
10477
10507
|
link: "link",
|
|
10478
10508
|
};
|
|
10479
|
-
const CSS$
|
|
10509
|
+
const CSS$1b = {
|
|
10480
10510
|
actionsEnd: "actions-end",
|
|
10481
10511
|
close: "close",
|
|
10482
10512
|
container: "container",
|
|
@@ -10498,33 +10528,7 @@ const CSS$19 = {
|
|
|
10498
10528
|
textContainer: "text-container",
|
|
10499
10529
|
};
|
|
10500
10530
|
|
|
10501
|
-
/**
|
|
10502
|
-
* Do not edit directly
|
|
10503
|
-
* Generated on Sat, 18 Nov 2023 06:38:09 GMT
|
|
10504
|
-
*/
|
|
10505
|
-
const CoreBreakpointWidthDefaultXxs = "320px";
|
|
10506
|
-
const CoreBreakpointWidthDefaultXs = "476px";
|
|
10507
|
-
const CoreBreakpointWidthDefaultSm = "768px";
|
|
10508
|
-
const CoreBreakpointWidthDefaultMd = "1152px";
|
|
10509
|
-
const CoreBreakpointWidthDefaultLg = "1440px";
|
|
10510
|
-
|
|
10511
|
-
/**
|
|
10512
|
-
* A breakpoints lookup object.
|
|
10513
|
-
*/
|
|
10514
|
-
const breakpoints = {
|
|
10515
|
-
width: {
|
|
10516
|
-
large: cssLengthToNumber(CoreBreakpointWidthDefaultLg),
|
|
10517
|
-
medium: cssLengthToNumber(CoreBreakpointWidthDefaultMd),
|
|
10518
|
-
small: cssLengthToNumber(CoreBreakpointWidthDefaultSm),
|
|
10519
|
-
xsmall: cssLengthToNumber(CoreBreakpointWidthDefaultXs),
|
|
10520
|
-
xxsmall: cssLengthToNumber(CoreBreakpointWidthDefaultXxs),
|
|
10521
|
-
},
|
|
10522
|
-
};
|
|
10523
|
-
function cssLengthToNumber(length) {
|
|
10524
|
-
return parseInt(length);
|
|
10525
|
-
}
|
|
10526
|
-
|
|
10527
|
-
const alertCss = "/*!@:host*/.sc-calcite-alert-h {\n --calcite-alert-edge-distance: 2rem;\n display: block;\n}\n\n/*!@.container*/.container.sc-calcite-alert {\n pointer-events: none;\n position: fixed;\n z-index: var(--calcite-app-z-index-toast);\n margin-inline: auto;\n margin-block: 0px;\n box-sizing: border-box;\n display: flex;\n inline-size: 100%;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n background-color: var(--calcite-ui-foreground-1);\n text-align: start;\n opacity: 0;\n --tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);\n --tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n container: responsive-container/inline-size;\n border-radius: var(--calcite-border-radius);\n border-block-start: 0 solid transparent;\n border-inline: 1px solid var(--calcite-ui-border-3);\n border-block-end: 1px solid var(--calcite-ui-border-3);\n inline-size: var(--calcite-alert-width);\n max-inline-size: calc(100% - var(--calcite-alert-edge-distance) * 2);\n transition: var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;\n}\n/*!@.container--bottom, .container--top*/.container--bottom.sc-calcite-alert, .container--top.sc-calcite-alert {\n inset-inline-end: 0;\n inset-inline-start: 0;\n}\n/*!@.container[class*=bottom]*/.container[class*=bottom].sc-calcite-alert {\n transform: translate3d(0, var(--calcite-alert-edge-distance), 0);\n inset-block-end: var(--calcite-alert-edge-distance);\n}\n/*!@.container[class*=top]*/.container[class*=top].sc-calcite-alert {\n transform: translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);\n inset-block-start: var(--calcite-alert-edge-distance);\n}\n/*!@.container[class*=start]*/.container[class*=start].sc-calcite-alert {\n inset-inline-start: var(--calcite-alert-edge-distance);\n inset-inline-end: auto;\n}\n/*!@.container[class*=end]*/.container[class*=end].sc-calcite-alert {\n inset-inline-end: var(--calcite-alert-edge-distance);\n inset-inline-start: auto;\n}\n\n/*!@.content*/.content.sc-calcite-alert {\n box-sizing: border-box;\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n padding-block: var(--calcite-alert-spacing-token-small);\n padding-inline: var(--calcite-alert-spacing-token-large) var(--calcite-alert-spacing-token-small);\n}\n\n/*!@.icon*/.icon.sc-calcite-alert {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n padding: 0px;\n margin-block-end: var(--calcite-alert-spacing-token-large);\n margin-inline-end: auto;\n}\n\n/*!@.close*/.close.sc-calcite-alert {\n display: flex;\n cursor: pointer;\n align-items: flex-start;\n justify-content: flex-end;\n align-self: flex-start;\n border-style: none;\n background-color: transparent;\n color: var(--calcite-ui-text-3);\n outline: 2px solid transparent;\n outline-offset: 2px;\n -webkit-appearance: none;\n padding: var(--calcite-alert-spacing-token-large);\n outline-color: transparent;\n}\n/*!@.close:focus*/.close.sc-calcite-alert:focus {\n outline: 2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));\n outline-offset: calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );\n}\n/*!@.close:hover, .close:focus*/.close.sc-calcite-alert:hover, .close.sc-calcite-alert:focus {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n/*!@.close:active*/.close.sc-calcite-alert:active {\n background-color: var(--calcite-ui-foreground-3);\n}\n\n/*!@.queue-count*/.queue-count.sc-calcite-alert {\n visibility: hidden;\n display: flex;\n cursor: default;\n align-items: center;\n justify-content: space-around;\n align-self: stretch;\n overflow: hidden;\n background-color: var(--calcite-ui-foreground-1);\n text-align: center;\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-2);\n opacity: 0;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n border-inline: 0 solid transparent;\n border-start-end-radius: 0;\n}\n/*!@.queue-count--active*/.queue-count--active.sc-calcite-alert {\n visibility: visible;\n opacity: 1;\n}\n\n/*!@.dismiss-progress*/.dismiss-progress.sc-calcite-alert {\n position: absolute;\n display: block;\n inline-size: 100%;\n overflow: hidden;\n inset-inline: 0;\n inset-block-start: -2px;\n block-size: 2px;\n border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0;\n}\n/*!@.dismiss-progress:after*/.dismiss-progress.sc-calcite-alert:after {\n position: absolute;\n inset-block-start: 0px;\n display: block;\n block-size: 2px;\n content: \"\";\n background-color: var(--calcite-alert-dismiss-progress-background);\n inset-inline-end: 0;\n}\n\n/*!@.actions-end*/.actions-end.sc-calcite-alert {\n display: flex;\n align-self: stretch;\n}\n\n/*!@.text-container*/.text-container.sc-calcite-alert {\n display: flex;\n min-inline-size: 0px;\n flex: 1 1 0%;\n flex-direction: column;\n overflow-wrap: break-word;\n}\n\n/*!@.content-container*/.content-container.sc-calcite-alert {\n display: flex;\n flex: 1 1 0%;\n}\n\n/*!@.footer*/.footer.sc-calcite-alert {\n position: relative;\n order: 1;\n display: flex;\n inline-size: 100%;\n justify-content: flex-end;\n padding-block-start: 1px;\n block-size: var(--calcite-alert-footer-height);\n}\n/*!@.footer:before*/.footer.sc-calcite-alert:before {\n content: \"\";\n position: absolute;\n inset-block-start: 0px;\n inset-inline: var(--calcite-alert-footer-divider-gap);\n border-block-start: 1px solid var(--calcite-ui-border-3);\n}\n\n/*!@:host([scale=s])*/[scale=s].sc-calcite-alert-h {\n --calcite-alert-width: 40em;\n --calcite-alert-spacing-token-small: 0.5rem;\n --calcite-alert-spacing-token-large: 0.75rem;\n --calcite-alert-footer-height: 2rem;\n --calcite-alert-footer-divider-gap: 0.125rem;\n}\n/*!@:host([scale=s]) slot[name=title]::slotted(*),\n:host([scale=s]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=s] slot[name=title].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s > [slot=title] {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n}\n/*!@:host([scale=s]) slot[name=message]::slotted(*),\n:host([scale=s]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=s] slot[name=message].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s > [slot=message] {\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n}\n/*!@:host([scale=s]) slot[name=link]::slotted(*),\n:host([scale=s]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=s] slot[name=link].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s > [slot=link] {\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n}\n/*!@:host([scale=s]) .queue-count*/[scale=s].sc-calcite-alert-h .queue-count.sc-calcite-alert {\n margin-inline: 0.5rem;\n}\n/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-alert-h .container.sc-calcite-alert {\n --calcite-alert-min-height: 3.5rem;\n}\n\n/*!@:host([scale=m])*/[scale=m].sc-calcite-alert-h {\n --calcite-alert-width: 50em;\n --calcite-alert-spacing-token-small: 0.75rem;\n --calcite-alert-spacing-token-large: 1rem;\n --calcite-alert-footer-height: 3rem;\n --calcite-alert-footer-divider-gap: 0.25rem;\n}\n/*!@:host([scale=m]) slot[name=title]::slotted(*),\n:host([scale=m]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=m] slot[name=title].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s > [slot=title] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n}\n/*!@:host([scale=m]) slot[name=message]::slotted(*),\n:host([scale=m]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=m] slot[name=message].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s > [slot=message] {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n}\n/*!@:host([scale=m]) slot[name=link]::slotted(*),\n:host([scale=m]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=m] slot[name=link].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s > [slot=link] {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n}\n/*!@:host([scale=m]) .queue-count*/[scale=m].sc-calcite-alert-h .queue-count.sc-calcite-alert {\n margin-inline: 0.75rem;\n}\n/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-alert-h .container.sc-calcite-alert {\n --calcite-alert-min-height: 4.1875rem;\n}\n\n/*!@:host([scale=l])*/[scale=l].sc-calcite-alert-h {\n --calcite-alert-width: 60em;\n --calcite-alert-spacing-token-small: 1rem;\n --calcite-alert-spacing-token-large: 1.25rem;\n --calcite-alert-footer-height: 4rem;\n --calcite-alert-footer-divider-gap: 0.5rem;\n}\n/*!@:host([scale=l]) slot[name=title]::slotted(*),\n:host([scale=l]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=l] slot[name=title].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s > [slot=title] {\n margin-block-end: 0.25rem;\n font-size: var(--calcite-font-size-1);\n line-height: 1.375;\n}\n/*!@:host([scale=l]) slot[name=message]::slotted(*),\n:host([scale=l]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=l] slot[name=message].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s > [slot=message] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n}\n/*!@:host([scale=l]) slot[name=link]::slotted(*),\n:host([scale=l]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=l] slot[name=link].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s > [slot=link] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n}\n/*!@:host([scale=l]) .queue-count*/[scale=l].sc-calcite-alert-h .queue-count.sc-calcite-alert {\n margin-inline: 1rem;\n}\n/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-alert-h .container.sc-calcite-alert {\n --calcite-alert-min-height: 5.625rem;\n}\n\n/*!@:host([open]) .container:not(.container--queued)*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued) {\n border-block-start-width: 2px;\n opacity: 1;\n pointer-events: initial;\n}\n/*!@:host([open]) .container:not(.container--queued)[class*=bottom]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued)[class*=bottom] {\n transform: translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit);\n}\n/*!@:host([open]) .container:not(.container--queued)[class*=top]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued)[class*=top] {\n transform: translate3d(0, var(--calcite-alert-edge-distance), inherit);\n}\n\n/*!@:host([auto-close]) > .queue-count*/[auto-close].sc-calcite-alert-h > .queue-count.sc-calcite-alert {\n border-inline-end: 0 solid transparent;\n}\n\n/*!@slot[name=title]::slotted(*),\n*::slotted([slot=title])*/slot[name=title].sc-calcite-alert-s > *, *.sc-calcite-alert-s > [slot=title] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-1);\n}\n\n/*!@slot[name=message]::slotted(*),\n*::slotted([slot=message])*/slot[name=message].sc-calcite-alert-s > *, *.sc-calcite-alert-s > [slot=message] {\n margin: 0px;\n display: inline;\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n font-weight: var(--calcite-font-weight-normal);\n color: var(--calcite-ui-text-2);\n margin-inline-end: 0.5rem;\n}\n\n/*!@slot[name=link]::slotted(*),\n*::slotted([slot=link])*/slot[name=link].sc-calcite-alert-s > *, *.sc-calcite-alert-s > [slot=link] {\n display: inline-flex;\n color: var(--calcite-ui-text-link);\n}\n\n/*!@:host([kind=brand]) .container*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-brand);\n}\n/*!@:host([kind=brand]) .container .icon*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-brand);\n}\n\n/*!@:host([kind=info]) .container*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-info);\n}\n/*!@:host([kind=info]) .container .icon*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-info);\n}\n\n/*!@:host([kind=danger]) .container*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-danger);\n}\n/*!@:host([kind=danger]) .container .icon*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-danger);\n}\n\n/*!@:host([kind=success]) .container*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-success);\n}\n/*!@:host([kind=success]) .container .icon*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-success);\n}\n\n/*!@:host([kind=warning]) .container*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-warning);\n}\n/*!@:host([kind=warning]) .container .icon*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-warning);\n}\n\n/*!@:host([auto-close-duration=fast]) .dismiss-progress:after*/[auto-close-duration=fast].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after {\n animation: dismissProgress 6000ms ease-out;\n}\n\n/*!@:host(:hover[auto-close-duration=fast]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=fast] .dismiss-progress.sc-calcite-alert:after {\n animation-play-state: paused;\n}\n\n/*!@:host([auto-close-duration=medium]) .dismiss-progress:after*/[auto-close-duration=medium].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after {\n animation: dismissProgress 10000ms ease-out;\n}\n\n/*!@:host(:hover[auto-close-duration=medium]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=medium] .dismiss-progress.sc-calcite-alert:after {\n animation-play-state: paused;\n}\n\n/*!@:host([auto-close-duration=slow]) .dismiss-progress:after*/[auto-close-duration=slow].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after {\n animation: dismissProgress 14000ms ease-out;\n}\n\n/*!@:host(:hover[auto-close-duration=slow]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=slow] .dismiss-progress.sc-calcite-alert:after {\n animation-play-state: paused;\n}\n\n@keyframes dismissProgress {\n 0% {\n inline-size: 0px;\n opacity: 0.75;\n }\n 100% {\n inline-size: 100%;\n opacity: 1;\n }\n}\n\n/*!@.container--slotted-in-shell*/.container--slotted-in-shell.sc-calcite-alert {\n position: absolute;\n}\n\n@container responsive-container (min-width: 476px) {\n .content {\n flex-direction: row;\n }\n .close {\n align-items: center;\n align-self: stretch;\n }\n .icon {\n justify-content: center;\n margin-inline-end: 0;\n margin-block: 0;\n padding-inline-end: var(--calcite-alert-spacing-token-large);\n }\n}\n@container responsive-container (min-width: 768px) {\n .close {\n align-self: stretch;\n }\n .footer {\n inline-size: auto;\n align-self: stretch;\n order: initial;\n block-size: inherit;\n }\n .footer:before {\n content: none;\n }\n .icon {\n padding-inline: var(--calcite-alert-spacing-token-large) 0;\n }\n}\n/*!@:host([hidden])*/[hidden].sc-calcite-alert-h {\n display: none;\n}\n\n/*!@[hidden]*/[hidden].sc-calcite-alert {\n display: none;\n}\n\n/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-alert-h {\n visibility: hidden !important;\n pointer-events: none;\n}";
|
|
10531
|
+
const alertCss = "/*!@:host*/.sc-calcite-alert-h{--calcite-alert-edge-distance:2rem;display:block}/*!@.container*/.container.sc-calcite-alert{pointer-events:none;position:fixed;z-index:var(--calcite-app-z-index-toast);margin-inline:auto;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:min-content;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);text-align:start;opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);container:responsive-container/inline-size;border-radius:var(--calcite-border-radius);border-block-start:0 solid transparent;border-inline:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - var(--calcite-alert-edge-distance) * 2);transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@.container--bottom, .container--top*/.container--bottom.sc-calcite-alert,.container--top.sc-calcite-alert{inset-inline-end:0;inset-inline-start:0}/*!@.container[class*=bottom]*/.container[class*=bottom].sc-calcite-alert{transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}/*!@.container[class*=top]*/.container[class*=top].sc-calcite-alert{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}/*!@.container[class*=start]*/.container[class*=start].sc-calcite-alert{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}/*!@.container[class*=end]*/.container[class*=end].sc-calcite-alert{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}/*!@.icon*/.icon.sc-calcite-alert{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0px;margin-block:auto;margin-inline-end:auto;padding-inline-start:var(--calcite-alert-spacing-token-large)}/*!@.close*/.close.sc-calcite-alert{display:flex;cursor:pointer;align-items:center;justify-content:flex-end;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;-webkit-appearance:none;padding:var(--calcite-alert-spacing-token-large);outline-color:transparent}/*!@.close:focus*/.close.sc-calcite-alert:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.close:hover, .close:focus*/.close.sc-calcite-alert:hover,.close.sc-calcite-alert:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.close:active*/.close.sc-calcite-alert:active{background-color:var(--calcite-ui-foreground-3)}/*!@.queue-count*/.queue-count.sc-calcite-alert{visibility:hidden;display:flex;min-inline-size:min-content;cursor:default;align-items:center;justify-content:space-around;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0 solid transparent;border-start-end-radius:0}/*!@.queue-count--active*/.queue-count--active.sc-calcite-alert{visibility:visible;opacity:1}/*!@.dismiss-progress*/.dismiss-progress.sc-calcite-alert{position:absolute;display:block;inline-size:100%;overflow:hidden;inset-inline:0;inset-block-start:-2px;block-size:2px;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}/*!@.dismiss-progress:after*/.dismiss-progress.sc-calcite-alert:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:\"\";background-color:var(--calcite-alert-dismiss-progress-background);inset-inline-end:0}/*!@.actions-end*/.actions-end.sc-calcite-alert{display:flex;align-self:stretch}/*!@.text-container*/.text-container.sc-calcite-alert{box-sizing:border-box;display:flex;min-inline-size:0px;flex:1 1 auto;flex-direction:column;overflow-wrap:break-word;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large) var(--calcite-alert-spacing-token-small)}/*!@.footer*/.footer.sc-calcite-alert{position:relative;display:flex;inline-size:auto;justify-content:flex-end;align-self:stretch;padding-block-start:1px;block-size:inherit}/*!@:host([scale=s])*/[scale=s].sc-calcite-alert-h{--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem;--calcite-alert-footer-height:2rem;--calcite-alert-footer-divider-gap:0.125rem}/*!@:host([scale=s]) slot[name=title]::slotted(*),\n:host([scale=s]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=s] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=s]) slot[name=message]::slotted(*),\n:host([scale=s]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=s] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) slot[name=link]::slotted(*),\n:host([scale=s]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=s] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) .queue-count*/[scale=s].sc-calcite-alert-h .queue-count.sc-calcite-alert{margin-inline:0.5rem}/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:3.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-alert-h{--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem;--calcite-alert-footer-height:3rem;--calcite-alert-footer-divider-gap:0.25rem}/*!@:host([scale=m]) slot[name=title]::slotted(*),\n:host([scale=m]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=m] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=m]) slot[name=message]::slotted(*),\n:host([scale=m]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=m] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) slot[name=link]::slotted(*),\n:host([scale=m]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=m] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) .queue-count*/[scale=m].sc-calcite-alert-h .queue-count.sc-calcite-alert{margin-inline:0.75rem}/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:4.1875rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-alert-h{--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem;--calcite-alert-footer-height:4rem;--calcite-alert-footer-divider-gap:0.5rem}/*!@:host([scale=l]) slot[name=title]::slotted(*),\n:host([scale=l]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=l] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=title]{margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}/*!@:host([scale=l]) slot[name=message]::slotted(*),\n:host([scale=l]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=l] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) slot[name=link]::slotted(*),\n:host([scale=l]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=l] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) .queue-count*/[scale=l].sc-calcite-alert-h .queue-count.sc-calcite-alert{margin-inline:1rem}/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:5.625rem}/*!@:host([open]) .container:not(.container--queued)*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued){border-block-start-width:2px;opacity:1;pointer-events:initial}/*!@:host([open]) .container:not(.container--queued)[class*=bottom]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued)[class*=bottom]{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}/*!@:host([open]) .container:not(.container--queued)[class*=top]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued)[class*=top]{transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}/*!@:host([auto-close]) > .queue-count*/[auto-close].sc-calcite-alert-h>.queue-count.sc-calcite-alert{border-inline-end:0 solid transparent}/*!@slot[name=title]::slotted(*),\n*::slotted([slot=title])*/slot[name=title].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@slot[name=message]::slotted(*),\n*::slotted([slot=message])*/slot[name=message].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=message]{margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin-inline-end:0.5rem}/*!@slot[name=link]::slotted(*),\n*::slotted([slot=link])*/slot[name=link].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=link]{display:inline-flex;color:var(--calcite-ui-text-link)}/*!@:host([kind=brand]) .container*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-brand)}/*!@:host([kind=brand]) .container .icon*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert{color:var(--calcite-ui-brand)}/*!@:host([kind=info]) .container*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-info)}/*!@:host([kind=info]) .container .icon*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert{color:var(--calcite-ui-info)}/*!@:host([kind=danger]) .container*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-danger)}/*!@:host([kind=danger]) .container .icon*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert{color:var(--calcite-ui-danger)}/*!@:host([kind=success]) .container*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-success)}/*!@:host([kind=success]) .container .icon*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert{color:var(--calcite-ui-success)}/*!@:host([kind=warning]) .container*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-warning)}/*!@:host([kind=warning]) .container .icon*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert{color:var(--calcite-ui-warning)}/*!@:host([auto-close-duration=fast]) .dismiss-progress:after*/[auto-close-duration=fast].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 6000ms ease-out}/*!@:host(:hover[auto-close-duration=fast]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=fast] .dismiss-progress.sc-calcite-alert:after{animation-play-state:paused}/*!@:host([auto-close-duration=medium]) .dismiss-progress:after*/[auto-close-duration=medium].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 10000ms ease-out}/*!@:host(:hover[auto-close-duration=medium]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=medium] .dismiss-progress.sc-calcite-alert:after{animation-play-state:paused}/*!@:host([auto-close-duration=slow]) .dismiss-progress:after*/[auto-close-duration=slow].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 14000ms ease-out}/*!@:host(:hover[auto-close-duration=slow]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=slow] .dismiss-progress.sc-calcite-alert:after{animation-play-state:paused}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}/*!@.container--slotted-in-shell*/.container--slotted-in-shell.sc-calcite-alert{position:absolute}/*!@:host([hidden])*/[hidden].sc-calcite-alert-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-alert{display:none}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-alert-h{visibility:hidden !important;pointer-events:none}";
|
|
10528
10532
|
|
|
10529
10533
|
/**
|
|
10530
10534
|
* Alerts are meant to provide a way to communicate urgent or important information to users, frequently as a result of an action they took in your app. Alerts are positioned
|
|
@@ -10546,7 +10550,6 @@ class Alert {
|
|
|
10546
10550
|
this.calciteInternalAlertSync = createEvent(this, "calciteInternalAlertSync", 6);
|
|
10547
10551
|
this.calciteInternalAlertRegister = createEvent(this, "calciteInternalAlertRegister", 6);
|
|
10548
10552
|
this.autoCloseTimeoutId = null;
|
|
10549
|
-
this.resizeObserver = createObserver();
|
|
10550
10553
|
this.totalOpenTime = 0;
|
|
10551
10554
|
this.totalHoverTime = 0;
|
|
10552
10555
|
this.openTransitionProp = "opacity";
|
|
@@ -10600,7 +10603,6 @@ class Alert {
|
|
|
10600
10603
|
this.queue = [];
|
|
10601
10604
|
this.queueLength = 0;
|
|
10602
10605
|
this.queued = false;
|
|
10603
|
-
this.responsiveContainerWidth = undefined;
|
|
10604
10606
|
}
|
|
10605
10607
|
openHandler() {
|
|
10606
10608
|
onToggleOpenCloseComponent(this);
|
|
@@ -10633,9 +10635,6 @@ class Alert {
|
|
|
10633
10635
|
if (open && !this.queued) {
|
|
10634
10636
|
this.calciteInternalAlertRegister.emit();
|
|
10635
10637
|
}
|
|
10636
|
-
if (this.transitionEl) {
|
|
10637
|
-
this.resizeObserver?.observe(this.transitionEl);
|
|
10638
|
-
}
|
|
10639
10638
|
}
|
|
10640
10639
|
async componentWillLoad() {
|
|
10641
10640
|
setUpLoadableComponent(this);
|
|
@@ -10646,7 +10645,6 @@ class Alert {
|
|
|
10646
10645
|
}
|
|
10647
10646
|
componentDidLoad() {
|
|
10648
10647
|
setComponentLoaded(this);
|
|
10649
|
-
this.resizeObserver?.observe(this.transitionEl);
|
|
10650
10648
|
}
|
|
10651
10649
|
disconnectedCallback() {
|
|
10652
10650
|
window.dispatchEvent(new CustomEvent("calciteInternalAlertUnregister", {
|
|
@@ -10657,7 +10655,6 @@ class Alert {
|
|
|
10657
10655
|
disconnectLocalized(this);
|
|
10658
10656
|
disconnectMessages(this);
|
|
10659
10657
|
this.slottedInShell = false;
|
|
10660
|
-
this.resizeObserver?.disconnect();
|
|
10661
10658
|
}
|
|
10662
10659
|
render() {
|
|
10663
10660
|
numberStringFormatter.numberFormatOptions = {
|
|
@@ -10665,26 +10662,22 @@ class Alert {
|
|
|
10665
10662
|
numberingSystem: this.numberingSystem,
|
|
10666
10663
|
signDisplay: "always",
|
|
10667
10664
|
};
|
|
10668
|
-
const {
|
|
10669
|
-
const { open, autoClose, responsiveContainerWidth, label, placement, queued } = this;
|
|
10665
|
+
const { open, autoClose, label, placement, queued } = this;
|
|
10670
10666
|
const role = autoClose ? "alert" : "alertdialog";
|
|
10671
|
-
const widthBreakpoints = breakpoints.width;
|
|
10672
|
-
const lessThanSmall = responsiveContainerWidth < widthBreakpoints.small;
|
|
10673
|
-
const greaterOrEqualThanSmall = responsiveContainerWidth >= widthBreakpoints.small;
|
|
10674
10667
|
const hidden = !open;
|
|
10675
10668
|
const effectiveIcon = setRequestedIcon(KindIcons, this.icon, this.kind);
|
|
10676
10669
|
const hasQueuedAlerts = this.queueLength > 1;
|
|
10677
10670
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, hAsync("div", { class: {
|
|
10678
|
-
[CSS$
|
|
10679
|
-
[CSS$
|
|
10680
|
-
[`${CSS$
|
|
10681
|
-
[CSS$
|
|
10671
|
+
[CSS$1b.container]: true,
|
|
10672
|
+
[CSS$1b.containerQueued]: queued,
|
|
10673
|
+
[`${CSS$1b.container}--${placement}`]: true,
|
|
10674
|
+
[CSS$1b.containerSlottedInShell]: this.slottedInShell,
|
|
10682
10675
|
}, onPointerEnter: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : null, onPointerLeave: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseLeave : null,
|
|
10683
10676
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10684
|
-
ref: this.setTransitionEl },
|
|
10677
|
+
ref: this.setTransitionEl }, effectiveIcon && this.renderIcon(effectiveIcon), hAsync("div", { class: CSS$1b.textContainer }, hAsync("slot", { name: SLOTS$t.title }), hAsync("slot", { name: SLOTS$t.message }), hAsync("slot", { name: SLOTS$t.link })), this.renderActionsEnd(), hasQueuedAlerts ? this.renderQueueCount() : null, this.renderCloseButton(), open && !queued && autoClose ? hAsync("div", { class: CSS$1b.dismissProgress }) : null)));
|
|
10685
10678
|
}
|
|
10686
10679
|
renderCloseButton() {
|
|
10687
|
-
return (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
10680
|
+
return (hAsync("button", { "aria-label": this.messages.close, class: CSS$1b.close, key: "close", onClick: this.closeAlert, type: "button",
|
|
10688
10681
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10689
10682
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })));
|
|
10690
10683
|
}
|
|
@@ -10692,15 +10685,15 @@ class Alert {
|
|
|
10692
10685
|
const queueNumber = this.queueLength > 2 ? this.queueLength - 1 : 1;
|
|
10693
10686
|
const queueText = numberStringFormatter.numberFormatter.format(queueNumber);
|
|
10694
10687
|
return (hAsync("div", { class: {
|
|
10695
|
-
[CSS$
|
|
10696
|
-
[CSS$
|
|
10688
|
+
[CSS$1b.queueCount]: true,
|
|
10689
|
+
[CSS$1b.queueCountActive]: this.queueLength > 1,
|
|
10697
10690
|
}, key: "queue-count" }, hAsync("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
10698
10691
|
}
|
|
10699
10692
|
renderActionsEnd() {
|
|
10700
|
-
return (hAsync("div", { class: CSS$
|
|
10693
|
+
return (hAsync("div", { class: CSS$1b.actionsEnd }, hAsync("slot", { name: SLOTS$t.actionsEnd, onSlotchange: this.actionsEndSlotChangeHandler })));
|
|
10701
10694
|
}
|
|
10702
10695
|
renderIcon(icon) {
|
|
10703
|
-
return (hAsync("div", { class: CSS$
|
|
10696
|
+
return (hAsync("div", { class: CSS$1b.icon }, hAsync("calcite-icon", { flipRtl: this.iconFlipRtl, icon: icon, scale: getIconScale(this.scale) })));
|
|
10704
10697
|
}
|
|
10705
10698
|
// when an alert is opened or closed, update queue and determine active alert
|
|
10706
10699
|
alertSync(event) {
|
|
@@ -10812,7 +10805,6 @@ class Alert {
|
|
|
10812
10805
|
"queue": [32],
|
|
10813
10806
|
"queueLength": [32],
|
|
10814
10807
|
"queued": [32],
|
|
10815
|
-
"responsiveContainerWidth": [32],
|
|
10816
10808
|
"setFocus": [64]
|
|
10817
10809
|
},
|
|
10818
10810
|
"$listeners$": [[8, "calciteInternalAlertSync", "alertSync"], [8, "calciteInternalAlertRegister", "alertRegister"], [8, "calciteInternalAlertUnregister", "alertUnregister"]],
|
|
@@ -11172,7 +11164,7 @@ const IDS$1 = {
|
|
|
11172
11164
|
toggle: "toggle",
|
|
11173
11165
|
header: "header",
|
|
11174
11166
|
};
|
|
11175
|
-
const CSS$
|
|
11167
|
+
const CSS$1a = {
|
|
11176
11168
|
button: "button",
|
|
11177
11169
|
container: "container",
|
|
11178
11170
|
content: "content",
|
|
@@ -11322,27 +11314,27 @@ class Block {
|
|
|
11322
11314
|
renderIcon() {
|
|
11323
11315
|
const { loading, messages, status } = this;
|
|
11324
11316
|
const hasSlottedIcon = !!getSlotted(this.el, SLOTS$s.icon);
|
|
11325
|
-
return loading ? (hAsync("div", { class: CSS$
|
|
11326
|
-
[CSS$
|
|
11327
|
-
[CSS$
|
|
11328
|
-
[CSS$
|
|
11329
|
-
}, icon: ICONS$h[status], scale: "s" }))) : hasSlottedIcon ? (hAsync("div", { class: CSS$
|
|
11317
|
+
return loading ? (hAsync("div", { class: CSS$1a.icon, key: "loader" }, hAsync("calcite-loader", { inline: true, label: messages.loading }))) : !!status ? (hAsync("div", { class: CSS$1a.icon, key: "status-icon" }, hAsync("calcite-icon", { class: {
|
|
11318
|
+
[CSS$1a.statusIcon]: true,
|
|
11319
|
+
[CSS$1a.valid]: status == "valid",
|
|
11320
|
+
[CSS$1a.invalid]: status == "invalid",
|
|
11321
|
+
}, icon: ICONS$h[status], scale: "s" }))) : hasSlottedIcon ? (hAsync("div", { class: CSS$1a.icon, key: "icon-slot" }, hAsync("slot", { key: "icon-slot", name: SLOTS$s.icon }))) : null;
|
|
11330
11322
|
}
|
|
11331
11323
|
renderTitle() {
|
|
11332
11324
|
const { heading, headingLevel, description } = this;
|
|
11333
|
-
return heading || description ? (hAsync("div", { class: CSS$
|
|
11325
|
+
return heading || description ? (hAsync("div", { class: CSS$1a.title }, hAsync(Heading, { class: CSS$1a.heading, level: headingLevel }, heading), description ? hAsync("div", { class: CSS$1a.description }, description) : null)) : null;
|
|
11334
11326
|
}
|
|
11335
11327
|
render() {
|
|
11336
11328
|
const { collapsible, el, loading, open, messages } = this;
|
|
11337
11329
|
const toggleLabel = open ? messages.collapse : messages.expand;
|
|
11338
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
11330
|
+
const headerContent = (hAsync("header", { class: CSS$1a.header, id: IDS$1.header }, this.renderIcon(), this.renderTitle()));
|
|
11339
11331
|
const hasControl = !!getSlotted(el, SLOTS$s.control);
|
|
11340
11332
|
const hasMenuActions = !!getSlotted(el, SLOTS$s.headerMenuActions);
|
|
11341
11333
|
const collapseIcon = open ? ICONS$h.opened : ICONS$h.closed;
|
|
11342
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
11334
|
+
const headerNode = (hAsync("div", { class: CSS$1a.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-controls": IDS$1.content, "aria-describedby": IDS$1.header, "aria-expanded": collapsible ? toAriaBoolean(open) : null, class: CSS$1a.toggle, id: IDS$1.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$1a.toggleIcon, icon: collapseIcon, scale: "s" }))) : (headerContent), hasControl ? (hAsync("div", { class: CSS$1a.controlContainer }, hAsync("slot", { name: SLOTS$s.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: messages.options }, hAsync("slot", { name: SLOTS$s.headerMenuActions }))) : null));
|
|
11343
11335
|
return (hAsync(Host, null, hAsync("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
11344
|
-
[CSS$
|
|
11345
|
-
} }, headerNode, hAsync("section", { "aria-labelledby": IDS$1.toggle, class: CSS$
|
|
11336
|
+
[CSS$1a.container]: true,
|
|
11337
|
+
} }, headerNode, hAsync("section", { "aria-labelledby": IDS$1.toggle, class: CSS$1a.content, hidden: !open, id: IDS$1.content,
|
|
11346
11338
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
11347
11339
|
ref: this.setTransitionEl }, this.renderScrim()))));
|
|
11348
11340
|
}
|
|
@@ -11383,7 +11375,7 @@ const IDS = {
|
|
|
11383
11375
|
content: "content",
|
|
11384
11376
|
toggle: "toggle",
|
|
11385
11377
|
};
|
|
11386
|
-
const CSS$
|
|
11378
|
+
const CSS$19 = {
|
|
11387
11379
|
content: "content",
|
|
11388
11380
|
focusGuard: "focus-guard",
|
|
11389
11381
|
invalid: "invalid",
|
|
@@ -11487,9 +11479,9 @@ class BlockSection {
|
|
|
11487
11479
|
const { status } = this;
|
|
11488
11480
|
const statusIcon = ICONS$g[status] ?? false;
|
|
11489
11481
|
const statusIconClasses = {
|
|
11490
|
-
[CSS$
|
|
11491
|
-
[CSS$
|
|
11492
|
-
[CSS$
|
|
11482
|
+
[CSS$19.statusIcon]: true,
|
|
11483
|
+
[CSS$19.valid]: status == "valid",
|
|
11484
|
+
[CSS$19.invalid]: status == "invalid",
|
|
11493
11485
|
};
|
|
11494
11486
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
11495
11487
|
}
|
|
@@ -11503,15 +11495,15 @@ class BlockSection {
|
|
|
11503
11495
|
: ICONS$g.menuClosedRight;
|
|
11504
11496
|
const toggleLabel = open ? messages.collapse : messages.expand;
|
|
11505
11497
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { class: {
|
|
11506
|
-
[CSS$
|
|
11498
|
+
[CSS$19.toggleSwitchContainer]: true,
|
|
11507
11499
|
} }, hAsync("div", { "aria-controls": IDS.content, "aria-expanded": toAriaBoolean(open), class: {
|
|
11508
|
-
[CSS$
|
|
11509
|
-
[CSS$
|
|
11510
|
-
}, id: IDS.toggle, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, role: "button", tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
11511
|
-
[CSS$
|
|
11512
|
-
[CSS$
|
|
11513
|
-
}, id: IDS.toggle, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
11514
|
-
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-labelledby": IDS.toggle, class: CSS$
|
|
11500
|
+
[CSS$19.toggle]: true,
|
|
11501
|
+
[CSS$19.toggleSwitch]: true,
|
|
11502
|
+
}, id: IDS.toggle, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, role: "button", tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$19.toggleSwitchContent }, hAsync("span", { class: CSS$19.toggleSwitchText }, text)), this.renderStatusIcon()), hAsync("calcite-label", { class: CSS$19.focusGuard, layout: "inline", tabIndex: -1 }, hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s" })))) : (hAsync("button", { "aria-controls": IDS.content, "aria-expanded": toAriaBoolean(open), class: {
|
|
11503
|
+
[CSS$19.sectionHeader]: true,
|
|
11504
|
+
[CSS$19.toggle]: true,
|
|
11505
|
+
}, id: IDS.toggle, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$19.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
11506
|
+
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-labelledby": IDS.toggle, class: CSS$19.content, hidden: !open, id: IDS.content }, hAsync("slot", null))));
|
|
11515
11507
|
}
|
|
11516
11508
|
static get assetsDirs() { return ["assets"]; }
|
|
11517
11509
|
get el() { return getElement(this); }
|
|
@@ -11913,7 +11905,7 @@ function onLabelDisconnected() {
|
|
|
11913
11905
|
document.addEventListener(labelConnectedEvent, boundOnLabelConnected);
|
|
11914
11906
|
}
|
|
11915
11907
|
|
|
11916
|
-
const CSS$
|
|
11908
|
+
const CSS$18 = {
|
|
11917
11909
|
buttonLoader: "calcite-button--loader",
|
|
11918
11910
|
content: "content",
|
|
11919
11911
|
contentSlotted: "content--slotted",
|
|
@@ -12107,17 +12099,17 @@ class Button {
|
|
|
12107
12099
|
render() {
|
|
12108
12100
|
const childElType = this.href ? "a" : "button";
|
|
12109
12101
|
const Tag = childElType;
|
|
12110
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$
|
|
12102
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$18.buttonLoader }, hAsync("calcite-loader", { class: this.loading ? CSS$18.loadingIn : CSS$18.loadingOut, inline: true, label: this.messages.loading, scale: this.scale === "l" ? "m" : "s" }))) : null;
|
|
12111
12103
|
const noStartEndIcons = !this.iconStart && !this.iconEnd;
|
|
12112
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
12113
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
12114
|
-
const contentEl = (hAsync("span", { class: CSS$
|
|
12104
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$18.icon]: true, [CSS$18.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: getIconScale(this.scale) }));
|
|
12105
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$18.icon]: true, [CSS$18.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: getIconScale(this.scale) }));
|
|
12106
|
+
const contentEl = (hAsync("span", { class: CSS$18.content, ref: (el) => (this.contentEl = el) }, hAsync("slot", null)));
|
|
12115
12107
|
return (hAsync(Tag, { "aria-label": !this.loading ? getLabelText(this) : this.messages.loading, "aria-live": "polite", class: {
|
|
12116
|
-
[CSS$
|
|
12117
|
-
[CSS$
|
|
12118
|
-
[CSS$
|
|
12119
|
-
[CSS$
|
|
12120
|
-
[CSS$
|
|
12108
|
+
[CSS$18.buttonPadding]: noStartEndIcons,
|
|
12109
|
+
[CSS$18.buttonPaddingShrunk]: !noStartEndIcons,
|
|
12110
|
+
[CSS$18.contentSlotted]: this.hasContent,
|
|
12111
|
+
[CSS$18.iconStartEmpty]: !this.iconStart,
|
|
12112
|
+
[CSS$18.iconEndEmpty]: !this.iconEnd,
|
|
12121
12113
|
}, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, rel: childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: childElType === "a" && this.target, title: this.tooltipText, type: childElType === "button" && this.type, ...this.globalAttributes,
|
|
12122
12114
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12123
12115
|
ref: this.setChildEl }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
@@ -12374,7 +12366,7 @@ class CalciteMenu {
|
|
|
12374
12366
|
}; }
|
|
12375
12367
|
}
|
|
12376
12368
|
|
|
12377
|
-
const CSS$
|
|
12369
|
+
const CSS$17 = {
|
|
12378
12370
|
container: "container",
|
|
12379
12371
|
content: "content",
|
|
12380
12372
|
dropdownVertical: "dropdown--vertical",
|
|
@@ -12578,54 +12570,54 @@ class CalciteMenuItem {
|
|
|
12578
12570
|
//
|
|
12579
12571
|
//--------------------------------------------------------------------------
|
|
12580
12572
|
renderIconStart() {
|
|
12581
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12573
|
+
return (hAsync("calcite-icon", { class: `${CSS$17.icon} ${CSS$17.iconStart}`, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, key: CSS$17.iconStart, scale: "s" }));
|
|
12582
12574
|
}
|
|
12583
12575
|
renderIconEnd() {
|
|
12584
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12576
|
+
return (hAsync("calcite-icon", { class: `${CSS$17.icon} ${CSS$17.iconEnd}`, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, key: CSS$17.iconEnd, scale: "s" }));
|
|
12585
12577
|
}
|
|
12586
12578
|
renderBreadcrumbIcon(dir) {
|
|
12587
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12579
|
+
return (hAsync("calcite-icon", { class: `${CSS$17.icon} ${CSS$17.iconBreadcrumb}`, icon: dir === "rtl" ? "chevron-left" : "chevron-right", key: CSS$17.iconBreadcrumb, scale: "s" }));
|
|
12588
12580
|
}
|
|
12589
12581
|
renderDropdownIcon(dir) {
|
|
12590
12582
|
const dirChevron = dir === "rtl" ? "chevron-left" : "chevron-right";
|
|
12591
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12583
|
+
return (hAsync("calcite-icon", { class: `${CSS$17.icon} ${CSS$17.iconDropdown}`, icon: this.topLevelMenuLayout === "vertical" || this.isTopLevelItem
|
|
12592
12584
|
? this.open
|
|
12593
12585
|
? "chevron-up"
|
|
12594
12586
|
: "chevron-down"
|
|
12595
|
-
: dirChevron, key: CSS$
|
|
12587
|
+
: dirChevron, key: CSS$17.iconDropdown, scale: "s" }));
|
|
12596
12588
|
}
|
|
12597
12589
|
renderDropdownAction(dir) {
|
|
12598
12590
|
const dirChevron = dir === "rtl" ? "chevron-left" : "chevron-right";
|
|
12599
|
-
return (hAsync("calcite-action", { class: CSS$
|
|
12591
|
+
return (hAsync("calcite-action", { class: CSS$17.dropdownAction, icon: this.topLevelMenuLayout === "vertical" || this.isTopLevelItem
|
|
12600
12592
|
? this.open
|
|
12601
12593
|
? "chevron-up"
|
|
12602
12594
|
: "chevron-down"
|
|
12603
|
-
: dirChevron, key: CSS$
|
|
12595
|
+
: dirChevron, key: CSS$17.dropdownAction, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, text: this.messages.open,
|
|
12604
12596
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12605
12597
|
ref: (el) => (this.dropdownActionEl = el) }));
|
|
12606
12598
|
}
|
|
12607
12599
|
renderSubmenuItems(dir) {
|
|
12608
12600
|
return (hAsync("calcite-menu", { class: {
|
|
12609
|
-
[CSS$
|
|
12610
|
-
[CSS$
|
|
12611
|
-
[CSS$
|
|
12601
|
+
[CSS$17.dropdownMenuItems]: true,
|
|
12602
|
+
[CSS$17.open]: this.open,
|
|
12603
|
+
[CSS$17.nested]: !this.isTopLevelItem,
|
|
12612
12604
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
12613
|
-
[CSS$
|
|
12605
|
+
[CSS$17.dropdownVertical]: this.topLevelMenuLayout === "vertical",
|
|
12614
12606
|
}, label: this.messages.submenu, layout: "vertical", role: "menu" }, hAsync("slot", { name: "submenu-item", onSlotchange: this.handleMenuItemSlotChange })));
|
|
12615
12607
|
}
|
|
12616
12608
|
renderHrefIcon(dir) {
|
|
12617
|
-
return (hAsync("calcite-icon", { class: CSS$
|
|
12609
|
+
return (hAsync("calcite-icon", { class: CSS$17.hoverHrefIcon, icon: dir === "rtl" ? "arrow-left" : "arrow-right", key: CSS$17.hoverHrefIcon, scale: "s" }));
|
|
12618
12610
|
}
|
|
12619
12611
|
renderItemContent(dir) {
|
|
12620
12612
|
const hasHref = this.href && (this.topLevelMenuLayout === "vertical" || !this.isTopLevelItem);
|
|
12621
|
-
return (hAsync(Fragment, null, this.iconStart && this.renderIconStart(), hAsync("div", { class: CSS$
|
|
12613
|
+
return (hAsync(Fragment, null, this.iconStart && this.renderIconStart(), hAsync("div", { class: CSS$17.textContainer }, hAsync("span", null, this.text)), hasHref && this.renderHrefIcon(dir), this.iconEnd && this.renderIconEnd(), this.breadcrumb ? this.renderBreadcrumbIcon(dir) : null, !this.href && this.hasSubmenu ? this.renderDropdownIcon(dir) : null));
|
|
12622
12614
|
}
|
|
12623
12615
|
render() {
|
|
12624
12616
|
const dir = getElementDir(this.el);
|
|
12625
12617
|
return (hAsync(Host, { onBlur: this.blurHandler, onFocus: this.focusHandler }, hAsync("li", { class: {
|
|
12626
|
-
[CSS$
|
|
12627
|
-
[CSS$
|
|
12628
|
-
}, role: "none" }, hAsync("div", { class: CSS$
|
|
12618
|
+
[CSS$17.container]: true,
|
|
12619
|
+
[CSS$17.isParentVertical]: this.topLevelMenuLayout === "vertical",
|
|
12620
|
+
}, role: "none" }, hAsync("div", { class: CSS$17.itemContent }, hAsync("a", { "aria-current": this.isFocused ? "page" : false, "aria-expanded": this.open, "aria-haspopup": this.hasSubmenu, "aria-label": this.label, class: { [CSS$17.layoutVertical]: this.layout === "vertical", [CSS$17.content]: true }, href: this.href, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, rel: this.rel, role: "menuitem", tabIndex: this.isTopLevelItem ? 0 : -1, target: this.target,
|
|
12629
12621
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12630
12622
|
ref: (el) => (this.anchorEl = el) }, this.renderItemContent(dir)), this.href && this.hasSubmenu ? this.renderDropdownAction(dir) : null), this.renderSubmenuItems(dir))));
|
|
12631
12623
|
}
|
|
@@ -12668,7 +12660,7 @@ class CalciteMenuItem {
|
|
|
12668
12660
|
}; }
|
|
12669
12661
|
}
|
|
12670
12662
|
|
|
12671
|
-
const CSS$
|
|
12663
|
+
const CSS$16 = {
|
|
12672
12664
|
container: "container",
|
|
12673
12665
|
containerContent: "container-content",
|
|
12674
12666
|
hasProgress: "progress-bar",
|
|
@@ -12817,11 +12809,11 @@ class CalciteNavigation {
|
|
|
12817
12809
|
this.navigationAction;
|
|
12818
12810
|
const slotName = this.el.slot;
|
|
12819
12811
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
12820
|
-
[CSS$
|
|
12821
|
-
[CSS$
|
|
12822
|
-
[CSS$
|
|
12823
|
-
[CSS$
|
|
12824
|
-
} }, hAsync("div", { class: { [CSS$
|
|
12812
|
+
[CSS$16.container]: true,
|
|
12813
|
+
[CSS$16.secondary]: slotName === SLOTS$r.navSecondary,
|
|
12814
|
+
[CSS$16.tertiary]: slotName === SLOTS$r.navTertiary,
|
|
12815
|
+
[CSS$16.primary]: primaryLevelHasElements,
|
|
12816
|
+
} }, hAsync("div", { class: { [CSS$16.hide]: !this.progressSlotHasElement, [SLOTS$r.progress]: true } }, hAsync("slot", { name: SLOTS$r.progress, onSlotchange: this.handleProgressSlotChange })), hAsync("div", { class: { [CSS$16.containerContent]: true, [CSS$16.hasProgress]: this.progressSlotHasElement } }, this.renderMenuAction(), hAsync("div", { class: { [CSS$16.hide]: !this.logoSlotHasElements, [SLOTS$r.logo]: true } }, hAsync("slot", { name: SLOTS$r.logo, onSlotchange: this.handleLogoSlotChange })), hAsync("slot", { name: SLOTS$r.contentStart, onSlotchange: this.handleContentStartSlotChange }), hAsync("slot", { name: SLOTS$r.contentCenter, onSlotchange: this.handleContentCenterSlotChange }), hAsync("slot", { name: SLOTS$r.contentEnd, onSlotchange: this.handleContentEndSlotChange }), hAsync("div", { class: { [CSS$16.hide]: !this.userSlotHasElements, [SLOTS$r.user]: true } }, hAsync("slot", { name: SLOTS$r.user, onSlotchange: this.handleUserSlotChange })))), hAsync(Fragment, null, hAsync("slot", { name: SLOTS$r.navSecondary, onSlotchange: this.handleSecondarySlotChange }), hAsync("slot", { name: SLOTS$r.navTertiary, onSlotchange: this.handleTertiarySlotChange }))));
|
|
12825
12817
|
}
|
|
12826
12818
|
get el() { return getElement(this); }
|
|
12827
12819
|
static get style() { return navigationCss; }
|
|
@@ -12848,7 +12840,7 @@ class CalciteNavigation {
|
|
|
12848
12840
|
}; }
|
|
12849
12841
|
}
|
|
12850
12842
|
|
|
12851
|
-
const CSS$
|
|
12843
|
+
const CSS$15 = {
|
|
12852
12844
|
container: "container",
|
|
12853
12845
|
heading: "heading",
|
|
12854
12846
|
description: "description",
|
|
@@ -12904,14 +12896,14 @@ class CalciteNavigationLogo {
|
|
|
12904
12896
|
// --------------------------------------------------------------------------
|
|
12905
12897
|
renderIcon() {
|
|
12906
12898
|
/** Icon scale is not variable as the component does not have a scale property */
|
|
12907
|
-
return hAsync("calcite-icon", { class: CSS$
|
|
12899
|
+
return hAsync("calcite-icon", { class: CSS$15.icon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "l" });
|
|
12908
12900
|
}
|
|
12909
12901
|
render() {
|
|
12910
12902
|
const { heading, description, thumbnail } = this;
|
|
12911
|
-
return (hAsync(Host, null, hAsync("a", { class: CSS$
|
|
12912
|
-
[CSS$
|
|
12913
|
-
[CSS$
|
|
12914
|
-
}, key: CSS$
|
|
12903
|
+
return (hAsync(Host, null, hAsync("a", { class: CSS$15.anchor, href: this.href, rel: this.rel, target: this.target }, thumbnail && hAsync("img", { alt: this.label || "", class: CSS$15.image, src: thumbnail }), this.icon && this.renderIcon(), (heading || description) && (hAsync("div", { class: CSS$15.container }, heading && (hAsync("span", { "aria-label": this.heading, class: {
|
|
12904
|
+
[CSS$15.heading]: true,
|
|
12905
|
+
[CSS$15.standalone]: !this.description,
|
|
12906
|
+
}, key: CSS$15.heading }, heading)), description && (hAsync("span", { "aria-label": this.description, class: CSS$15.description, key: CSS$15.description }, description)))))));
|
|
12915
12907
|
}
|
|
12916
12908
|
static get delegatesFocus() { return true; }
|
|
12917
12909
|
get el() { return getElement(this); }
|
|
@@ -12938,7 +12930,7 @@ class CalciteNavigationLogo {
|
|
|
12938
12930
|
}; }
|
|
12939
12931
|
}
|
|
12940
12932
|
|
|
12941
|
-
const CSS$
|
|
12933
|
+
const CSS$14 = {
|
|
12942
12934
|
textContainer: "text-container",
|
|
12943
12935
|
fullName: "full-name",
|
|
12944
12936
|
username: "username",
|
|
@@ -12985,7 +12977,7 @@ class CalciteNavigationUser {
|
|
|
12985
12977
|
//
|
|
12986
12978
|
// --------------------------------------------------------------------------
|
|
12987
12979
|
render() {
|
|
12988
|
-
return (hAsync(Host, null, hAsync("button", { "aria-label": this.label, class: CSS$
|
|
12980
|
+
return (hAsync(Host, null, hAsync("button", { "aria-label": this.label, class: CSS$14.button }, hAsync("calcite-avatar", { "full-name": this.fullName, label: this.label, thumbnail: this.thumbnail, "user-id": this.userId, username: this.username }), (this.fullName || this.username) && !this.textDisabled && (hAsync("div", { class: CSS$14.textContainer }, this.fullName && (hAsync("span", { class: CSS$14.fullName, key: CSS$14.fullName }, this.fullName)), this.username && (hAsync("span", { class: CSS$14.username, key: CSS$14.username }, this.username)))))));
|
|
12989
12981
|
}
|
|
12990
12982
|
static get delegatesFocus() { return true; }
|
|
12991
12983
|
get el() { return getElement(this); }
|
|
@@ -13009,7 +13001,7 @@ class CalciteNavigationUser {
|
|
|
13009
13001
|
}; }
|
|
13010
13002
|
}
|
|
13011
13003
|
|
|
13012
|
-
const CSS$
|
|
13004
|
+
const CSS$13 = {
|
|
13013
13005
|
container: "container",
|
|
13014
13006
|
header: "header",
|
|
13015
13007
|
footer: "footer",
|
|
@@ -13094,7 +13086,7 @@ class Card {
|
|
|
13094
13086
|
render() {
|
|
13095
13087
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
13096
13088
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
13097
|
-
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { "aria-live": "polite", class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.messages.loading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$
|
|
13089
|
+
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { "aria-live": "polite", class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.messages.loading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$13.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
13098
13090
|
}
|
|
13099
13091
|
effectiveLocaleChange() {
|
|
13100
13092
|
updateMessages(this);
|
|
@@ -13104,24 +13096,24 @@ class Card {
|
|
|
13104
13096
|
this.calciteCardSelect.emit();
|
|
13105
13097
|
}
|
|
13106
13098
|
renderThumbnail() {
|
|
13107
|
-
return getSlotted(this.el, SLOTS$q.thumbnail) ? (hAsync("section", { class: CSS$
|
|
13099
|
+
return getSlotted(this.el, SLOTS$q.thumbnail) ? (hAsync("section", { class: CSS$13.thumbnailWrapper }, hAsync("slot", { name: SLOTS$q.thumbnail }))) : null;
|
|
13108
13100
|
}
|
|
13109
13101
|
renderCheckbox() {
|
|
13110
|
-
return (hAsync("calcite-label", { class: CSS$
|
|
13102
|
+
return (hAsync("calcite-label", { class: CSS$13.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: this.messages.select })));
|
|
13111
13103
|
}
|
|
13112
13104
|
renderHeader() {
|
|
13113
13105
|
const { el } = this;
|
|
13114
13106
|
const title = getSlotted(el, SLOTS$q.title);
|
|
13115
13107
|
const subtitle = getSlotted(el, SLOTS$q.subtitle);
|
|
13116
13108
|
const hasHeader = title || subtitle;
|
|
13117
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
13109
|
+
return hasHeader ? (hAsync("header", { class: CSS$13.header }, hAsync("slot", { name: SLOTS$q.title }), hAsync("slot", { name: SLOTS$q.subtitle }))) : null;
|
|
13118
13110
|
}
|
|
13119
13111
|
renderFooter() {
|
|
13120
13112
|
const { el } = this;
|
|
13121
13113
|
const startFooter = getSlotted(el, SLOTS$q.footerStart);
|
|
13122
13114
|
const endFooter = getSlotted(el, SLOTS$q.footerEnd);
|
|
13123
13115
|
const hasFooter = startFooter || endFooter;
|
|
13124
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
13116
|
+
return hasFooter ? (hAsync("footer", { class: CSS$13.footer }, hAsync("slot", { name: SLOTS$q.footerStart }), hAsync("slot", { name: SLOTS$q.footerEnd }))) : null;
|
|
13125
13117
|
}
|
|
13126
13118
|
static get assetsDirs() { return ["assets"]; }
|
|
13127
13119
|
get el() { return getElement(this); }
|
|
@@ -13284,7 +13276,7 @@ class Checkbox {
|
|
|
13284
13276
|
}; }
|
|
13285
13277
|
}
|
|
13286
13278
|
|
|
13287
|
-
const CSS$
|
|
13279
|
+
const CSS$12 = {
|
|
13288
13280
|
title: "title",
|
|
13289
13281
|
close: "close",
|
|
13290
13282
|
imageContainer: "image-container",
|
|
@@ -13453,7 +13445,7 @@ class Chip {
|
|
|
13453
13445
|
//
|
|
13454
13446
|
//--------------------------------------------------------------------------
|
|
13455
13447
|
renderChipImage() {
|
|
13456
|
-
return (hAsync("div", { class: CSS$
|
|
13448
|
+
return (hAsync("div", { class: CSS$12.imageContainer }, hAsync("slot", { name: SLOTS$p.image, onSlotchange: this.handleSlotImageChange })));
|
|
13457
13449
|
}
|
|
13458
13450
|
renderSelectionIcon() {
|
|
13459
13451
|
const icon = this.selectionMode === "multiple" && this.selected
|
|
@@ -13464,17 +13456,17 @@ class Chip {
|
|
|
13464
13456
|
? ICONS$e.checkedSingle
|
|
13465
13457
|
: undefined;
|
|
13466
13458
|
return (hAsync("div", { class: {
|
|
13467
|
-
[CSS$
|
|
13468
|
-
[CSS$
|
|
13459
|
+
[CSS$12.selectIcon]: true,
|
|
13460
|
+
[CSS$12.selectIconActive]: this.selectionMode === "multiple" || this.selected,
|
|
13469
13461
|
} }, hAsync("calcite-icon", { icon: icon, scale: getIconScale(this.scale) })));
|
|
13470
13462
|
}
|
|
13471
13463
|
renderCloseButton() {
|
|
13472
|
-
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$
|
|
13464
|
+
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$12.close, onClick: this.close, onKeyDown: this.closeButtonKeyDownHandler, tabIndex: this.disabled ? -1 : 0,
|
|
13473
13465
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
13474
13466
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$e.close, scale: getIconScale(this.scale) })));
|
|
13475
13467
|
}
|
|
13476
13468
|
renderIcon() {
|
|
13477
|
-
return (hAsync("calcite-icon", { class: CSS$
|
|
13469
|
+
return (hAsync("calcite-icon", { class: CSS$12.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: getIconScale(this.scale) }));
|
|
13478
13470
|
}
|
|
13479
13471
|
render() {
|
|
13480
13472
|
const disableInteraction = this.disabled || (!this.disabled && !this.interactive);
|
|
@@ -13488,21 +13480,21 @@ class Chip {
|
|
|
13488
13480
|
return (hAsync(Host, null, hAsync("div", { "aria-checked": this.selectionMode !== "none" && this.interactive
|
|
13489
13481
|
? toAriaBoolean(this.selected)
|
|
13490
13482
|
: undefined, "aria-disabled": disableInteraction ? toAriaBoolean(this.disabled) : undefined, "aria-label": this.label, class: {
|
|
13491
|
-
[CSS$
|
|
13492
|
-
[CSS$
|
|
13493
|
-
[CSS$
|
|
13494
|
-
[CSS$
|
|
13495
|
-
[CSS$
|
|
13496
|
-
[CSS$
|
|
13497
|
-
[CSS$
|
|
13498
|
-
[CSS$
|
|
13483
|
+
[CSS$12.container]: true,
|
|
13484
|
+
[CSS$12.textSlotted]: this.hasText,
|
|
13485
|
+
[CSS$12.imageSlotted]: this.hasImage,
|
|
13486
|
+
[CSS$12.selectable]: this.selectionMode !== "none",
|
|
13487
|
+
[CSS$12.multiple]: this.selectionMode === "multiple",
|
|
13488
|
+
[CSS$12.closable]: this.closable,
|
|
13489
|
+
[CSS$12.nonInteractive]: !this.interactive,
|
|
13490
|
+
[CSS$12.isCircle]: !this.closable &&
|
|
13499
13491
|
!this.hasText &&
|
|
13500
13492
|
(!this.icon || !this.hasImage) &&
|
|
13501
13493
|
(this.selectionMode === "none" ||
|
|
13502
13494
|
(!!this.selectionMode && this.selectionMode !== "multiple" && !this.selected)),
|
|
13503
13495
|
}, onClick: this.handleEmittingEvent, role: role, tabIndex: disableInteraction ? -1 : 0,
|
|
13504
13496
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
13505
|
-
ref: (el) => (this.containerEl = el) }, this.selectionMode !== "none" && this.renderSelectionIcon(), this.renderChipImage(), this.icon && this.renderIcon(), hAsync("span", { class: CSS$
|
|
13497
|
+
ref: (el) => (this.containerEl = el) }, this.selectionMode !== "none" && this.renderSelectionIcon(), this.renderChipImage(), this.icon && this.renderIcon(), hAsync("span", { class: CSS$12.title }, hAsync("slot", null)), this.closable && this.renderCloseButton())));
|
|
13506
13498
|
}
|
|
13507
13499
|
static get assetsDirs() { return ["assets"]; }
|
|
13508
13500
|
get el() { return getElement(this); }
|
|
@@ -15824,7 +15816,7 @@ function zeroArray(array, length) {
|
|
|
15824
15816
|
|
|
15825
15817
|
var color = Color;
|
|
15826
15818
|
|
|
15827
|
-
const CSS
|
|
15819
|
+
const CSS$11 = {
|
|
15828
15820
|
channel: "channel",
|
|
15829
15821
|
channels: "channels",
|
|
15830
15822
|
colorField: "color-field",
|
|
@@ -16173,7 +16165,7 @@ class ColorPicker {
|
|
|
16173
16165
|
const { channelMode: activeChannelMode, messages } = this;
|
|
16174
16166
|
const selected = channelMode === activeChannelMode;
|
|
16175
16167
|
const label = channelMode === "rgb" ? messages.rgb : messages.hsv;
|
|
16176
|
-
return (hAsync("calcite-tab-title", { class: CSS
|
|
16168
|
+
return (hAsync("calcite-tab-title", { class: CSS$11.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate, selected: selected }, label));
|
|
16177
16169
|
};
|
|
16178
16170
|
this.renderChannelsTab = (channelMode) => {
|
|
16179
16171
|
const { allowEmpty, channelMode: activeChannelMode, channels, messages, alphaChannel } = this;
|
|
@@ -16184,7 +16176,7 @@ class ColorPicker {
|
|
|
16184
16176
|
: [messages.hue, messages.saturation, messages.value];
|
|
16185
16177
|
const direction = getElementDir(this.el);
|
|
16186
16178
|
const channelsToRender = alphaChannel ? channels : channels.slice(0, 3);
|
|
16187
|
-
return (hAsync("calcite-tab", { class: CSS
|
|
16179
|
+
return (hAsync("calcite-tab", { class: CSS$11.control, key: channelMode, selected: selected }, hAsync("div", { class: CSS$11.channels, dir: "ltr" }, channelsToRender.map((channelValue, index) => {
|
|
16188
16180
|
const isAlphaChannel = index === 3;
|
|
16189
16181
|
if (isAlphaChannel) {
|
|
16190
16182
|
channelValue =
|
|
@@ -16195,7 +16187,7 @@ class ColorPicker {
|
|
|
16195
16187
|
}))));
|
|
16196
16188
|
};
|
|
16197
16189
|
this.renderChannel = (value, index, ariaLabel, direction, suffix) => {
|
|
16198
|
-
return (hAsync("calcite-input-number", { class: CSS
|
|
16190
|
+
return (hAsync("calcite-input-number", { class: CSS$11.channel, "data-channel-index": index, dir: direction, key: index, label: ariaLabel, lang: this.effectiveLocale, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputNumberChange: this.handleChannelChange, onCalciteInputNumberInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, scale: this.scale === "l" ? "m" : "s",
|
|
16199
16191
|
// workaround to ensure input borders overlap as desired
|
|
16200
16192
|
// this is because the build transforms margin-left to its
|
|
16201
16193
|
// logical-prop, which is undesired as channels are always ltr
|
|
@@ -16385,7 +16377,7 @@ class ColorPicker {
|
|
|
16385
16377
|
this.shiftKeyChannelAdjustment = 0;
|
|
16386
16378
|
const { key } = event;
|
|
16387
16379
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
16388
|
-
!event.composedPath().some((node) => node.classList?.contains(CSS
|
|
16380
|
+
!event.composedPath().some((node) => node.classList?.contains(CSS$11.channel))) {
|
|
16389
16381
|
return;
|
|
16390
16382
|
}
|
|
16391
16383
|
const { shiftKey } = event;
|
|
@@ -16477,35 +16469,35 @@ class ColorPicker {
|
|
|
16477
16469
|
const [adjustedColorFieldScopeLeft, adjustedColorFieldScopeTop] = this.getAdjustedScopePosition(colorFieldScopeLeft, colorFieldScopeTop);
|
|
16478
16470
|
const [adjustedHueScopeLeft, adjustedHueScopeTop] = this.getAdjustedScopePosition(hueLeft, hueTop);
|
|
16479
16471
|
const [adjustedOpacityScopeLeft, adjustedOpacityScopeTop] = this.getAdjustedScopePosition(opacityLeft, opacityTop);
|
|
16480
|
-
return (hAsync("div", { class: CSS
|
|
16472
|
+
return (hAsync("div", { class: CSS$11.container }, hAsync("div", { class: CSS$11.controlAndScope }, hAsync("canvas", { class: CSS$11.colorField, onPointerDown: this.handleColorFieldPointerDown,
|
|
16481
16473
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16482
|
-
ref: this.initColorField }), hAsync("div", { "aria-label": vertical ? messages.value : messages.saturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color?.saturationv() : color?.value()) || "0", class: { [CSS
|
|
16474
|
+
ref: this.initColorField }), hAsync("div", { "aria-label": vertical ? messages.value : messages.saturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color?.saturationv() : color?.value()) || "0", class: { [CSS$11.scope]: true, [CSS$11.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, role: "slider", style: {
|
|
16483
16475
|
top: `${adjustedColorFieldScopeTop || 0}px`,
|
|
16484
16476
|
left: `${adjustedColorFieldScopeLeft || 0}px`,
|
|
16485
16477
|
}, tabindex: "0",
|
|
16486
16478
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16487
|
-
ref: this.storeColorFieldScope })), hAsync("div", { class: CSS
|
|
16479
|
+
ref: this.storeColorFieldScope })), hAsync("div", { class: CSS$11.previewAndSliders }, hAsync("calcite-color-picker-swatch", { class: CSS$11.preview, color: selectedColorInHex, scale: "l" }), hAsync("div", { class: CSS$11.sliders }, hAsync("div", { class: CSS$11.controlAndScope }, hAsync("canvas", { class: { [CSS$11.slider]: true, [CSS$11.hueSlider]: true }, onPointerDown: this.handleHueSliderPointerDown,
|
|
16488
16480
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16489
|
-
ref: this.initHueSlider }), hAsync("div", { "aria-label": messages.hue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": color?.round().hue() || DEFAULT_COLOR$1.round().hue(), class: { [CSS
|
|
16481
|
+
ref: this.initHueSlider }), hAsync("div", { "aria-label": messages.hue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": color?.round().hue() || DEFAULT_COLOR$1.round().hue(), class: { [CSS$11.scope]: true, [CSS$11.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: {
|
|
16490
16482
|
top: `${adjustedHueScopeTop}px`,
|
|
16491
16483
|
left: `${adjustedHueScopeLeft}px`,
|
|
16492
16484
|
}, tabindex: "0",
|
|
16493
16485
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16494
|
-
ref: this.storeHueScope })), alphaChannel ? (hAsync("div", { class: CSS
|
|
16486
|
+
ref: this.storeHueScope })), alphaChannel ? (hAsync("div", { class: CSS$11.controlAndScope }, hAsync("canvas", { class: { [CSS$11.slider]: true, [CSS$11.opacitySlider]: true }, onPointerDown: this.handleOpacitySliderPointerDown,
|
|
16495
16487
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16496
|
-
ref: this.initOpacitySlider }), hAsync("div", { "aria-label": messages.opacity, "aria-valuemax": OPACITY_LIMITS.max, "aria-valuemin": OPACITY_LIMITS.min, "aria-valuenow": (color || DEFAULT_COLOR$1).round().alpha(), class: { [CSS
|
|
16488
|
+
ref: this.initOpacitySlider }), hAsync("div", { "aria-label": messages.opacity, "aria-valuemax": OPACITY_LIMITS.max, "aria-valuemin": OPACITY_LIMITS.min, "aria-valuenow": (color || DEFAULT_COLOR$1).round().alpha(), class: { [CSS$11.scope]: true, [CSS$11.opacityScope]: true }, onKeyDown: this.handleOpacityScopeKeyDown, role: "slider", style: {
|
|
16497
16489
|
top: `${adjustedOpacityScopeTop}px`,
|
|
16498
16490
|
left: `${adjustedOpacityScopeLeft}px`,
|
|
16499
16491
|
}, tabindex: "0",
|
|
16500
16492
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16501
16493
|
ref: this.storeOpacityScope }))) : null)), noHex && noChannels ? null : (hAsync("div", { class: {
|
|
16502
|
-
[CSS
|
|
16503
|
-
[CSS
|
|
16504
|
-
} }, hAsync("div", { class: CSS
|
|
16505
|
-
[CSS
|
|
16506
|
-
[CSS
|
|
16507
|
-
}, scale: scale === "l" ? "m" : "s" }, hAsync("calcite-tab-nav", { slot: "title-group" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv")))))), noSaved ? null : (hAsync("div", { class: { [CSS
|
|
16508
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { class: CSS
|
|
16494
|
+
[CSS$11.controlSection]: true,
|
|
16495
|
+
[CSS$11.section]: true,
|
|
16496
|
+
} }, hAsync("div", { class: CSS$11.hexAndChannelsGroup }, noHex ? null : (hAsync("div", { class: CSS$11.hexOptions }, hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, alphaChannel: alphaChannel, class: CSS$11.control, messages: messages, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: scale, value: selectedColorInHex }))), noChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
16497
|
+
[CSS$11.colorModeContainer]: true,
|
|
16498
|
+
[CSS$11.splitSection]: true,
|
|
16499
|
+
}, scale: scale === "l" ? "m" : "s" }, hAsync("calcite-tab-nav", { slot: "title-group" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv")))))), noSaved ? null : (hAsync("div", { class: { [CSS$11.savedColorsSection]: true, [CSS$11.section]: true } }, hAsync("div", { class: CSS$11.header }, hAsync("label", null, messages.saved), hAsync("div", { class: CSS$11.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$11.deleteColor, disabled: noColor, iconStart: "minus", kind: "neutral", label: messages.deleteColor, onClick: this.deleteColor, scale: scale, type: "button" }), hAsync("calcite-button", { appearance: "transparent", class: CSS$11.saveColor, disabled: noColor, iconStart: "plus", kind: "neutral", label: messages.saveColor, onClick: this.saveColor, scale: scale, type: "button" }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$11.savedColors }, [
|
|
16500
|
+
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { class: CSS$11.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 }))),
|
|
16509
16501
|
])) : null))));
|
|
16510
16502
|
}
|
|
16511
16503
|
// --------------------------------------------------------------------------
|
|
@@ -16876,7 +16868,7 @@ class ColorPicker {
|
|
|
16876
16868
|
}; }
|
|
16877
16869
|
}
|
|
16878
16870
|
|
|
16879
|
-
const CSS$
|
|
16871
|
+
const CSS$10 = {
|
|
16880
16872
|
container: "container",
|
|
16881
16873
|
hexInput: "hex-input",
|
|
16882
16874
|
opacityInput: "opacity-input",
|
|
@@ -17044,9 +17036,9 @@ class ColorPickerHexInput {
|
|
|
17044
17036
|
const hexInputValue = this.formatHexForInternalInput(value);
|
|
17045
17037
|
const opacityInputValue = this.formatOpacityForInternalInput(internalColor);
|
|
17046
17038
|
const inputScale = scale === "l" ? "m" : "s";
|
|
17047
|
-
return (hAsync("div", { class: CSS$
|
|
17039
|
+
return (hAsync("div", { class: CSS$10.container }, hAsync("calcite-input-text", { class: CSS$10.hexInput, label: messages?.hex || hexLabel, maxLength: 6, onCalciteInputTextChange: this.onHexInputChange, onCalciteInternalInputTextBlur: this.onHexInputBlur, onKeyDown: this.onInputKeyDown, onPaste: this.onHexInputPaste, prefixText: "#", scale: inputScale, value: hexInputValue,
|
|
17048
17040
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
17049
|
-
ref: this.storeHexInputRef }), alphaChannel ? (hAsync("calcite-input-number", { class: CSS$
|
|
17041
|
+
ref: this.storeHexInputRef }), alphaChannel ? (hAsync("calcite-input-number", { class: CSS$10.opacityInput, key: "opacity-input", label: messages?.opacity, max: OPACITY_LIMITS.max, maxLength: 3, min: OPACITY_LIMITS.min, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputNumberChange: this.onOpacityInputChange, onCalciteInternalInputNumberBlur: this.onOpacityInputBlur, onKeyDown: this.onInputKeyDown, scale: inputScale, suffixText: "%", value: opacityInputValue,
|
|
17050
17042
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
17051
17043
|
ref: this.storeOpacityInputRef })) : null));
|
|
17052
17044
|
}
|
|
@@ -17142,7 +17134,7 @@ class ColorPickerHexInput {
|
|
|
17142
17134
|
}; }
|
|
17143
17135
|
}
|
|
17144
17136
|
|
|
17145
|
-
const CSS
|
|
17137
|
+
const CSS$$ = {
|
|
17146
17138
|
swatch: "swatch",
|
|
17147
17139
|
noColorSwatch: "swatch--no-color",
|
|
17148
17140
|
checker: "checker",
|
|
@@ -17180,8 +17172,8 @@ class ColorPickerSwatch {
|
|
|
17180
17172
|
render() {
|
|
17181
17173
|
const isEmpty = !this.internalColor;
|
|
17182
17174
|
const classes = {
|
|
17183
|
-
[CSS
|
|
17184
|
-
[CSS
|
|
17175
|
+
[CSS$$.swatch]: true,
|
|
17176
|
+
[CSS$$.noColorSwatch]: isEmpty,
|
|
17185
17177
|
};
|
|
17186
17178
|
return (hAsync("svg", { class: classes, xmlns: "http://www.w3.org/2000/svg" }, this.renderSwatch()));
|
|
17187
17179
|
}
|
|
@@ -17207,7 +17199,7 @@ class ColorPickerSwatch {
|
|
|
17207
17199
|
const alpha = internalColor.alpha();
|
|
17208
17200
|
const hex = hexify(internalColor);
|
|
17209
17201
|
const hexa = hexify(internalColor, alpha < 1);
|
|
17210
|
-
return (hAsync(Fragment, null, hAsync("title", null, hexa), hAsync("defs", null, hAsync("pattern", { height: CHECKER_DIMENSIONS.size, id: "checker", patternUnits: "userSpaceOnUse", width: CHECKER_DIMENSIONS.size, x: "0", y: "0" }, hAsync("rect", { class: CSS
|
|
17202
|
+
return (hAsync(Fragment, null, hAsync("title", null, hexa), hAsync("defs", null, hAsync("pattern", { height: CHECKER_DIMENSIONS.size, id: "checker", patternUnits: "userSpaceOnUse", width: CHECKER_DIMENSIONS.size, x: "0", y: "0" }, hAsync("rect", { class: CSS$$.checker, height: CHECKER_DIMENSIONS.squareSize, width: CHECKER_DIMENSIONS.squareSize, x: "0", y: "0" }), hAsync("rect", { class: CSS$$.checker, height: CHECKER_DIMENSIONS.squareSize, width: CHECKER_DIMENSIONS.squareSize, x: CHECKER_DIMENSIONS.squareSize, y: CHECKER_DIMENSIONS.squareSize }))), hAsync("rect", { fill: "url(#checker)", height: "100%", rx: borderRadius, width: "100%" }), hAsync("rect", { fill: hex, style: {
|
|
17211
17203
|
"clip-path": alpha < 1 ? "polygon(100% 0, 0 0, 0 100%)" : `inset(0 round ${borderRadius})`,
|
|
17212
17204
|
}, ...commonSwatchProps }), alpha < 1 ? (hAsync("rect", { fill: hexa, key: "opacity-fill", style: { "clip-path": "polygon(100% 0, 100% 100%, 0 100%)" }, ...commonSwatchProps })) : null));
|
|
17213
17205
|
}
|
|
@@ -18950,7 +18942,10 @@ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePo
|
|
|
18950
18942
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
18951
18943
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
18952
18944
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
18953
|
-
const CSS$
|
|
18945
|
+
const CSS$_ = {
|
|
18946
|
+
chipInvisible: "chip--invisible",
|
|
18947
|
+
selectionDisplayFit: "selection-display-fit",
|
|
18948
|
+
selectionDisplaySingle: "selection-display-single",
|
|
18954
18949
|
listContainer: "list-container",
|
|
18955
18950
|
};
|
|
18956
18951
|
|
|
@@ -18978,17 +18973,28 @@ function isSingleLike(selectionMode) {
|
|
|
18978
18973
|
return selectionMode.includes("single");
|
|
18979
18974
|
}
|
|
18980
18975
|
|
|
18981
|
-
const CSS$
|
|
18976
|
+
const CSS$Z = {
|
|
18982
18977
|
button: "x-button",
|
|
18983
18978
|
};
|
|
18984
18979
|
function XButton({ disabled, key, label, onClick, ref, scale, }) {
|
|
18985
|
-
return (hAsync("button", { "aria-label": label, class: CSS$
|
|
18980
|
+
return (hAsync("button", { "aria-label": label, class: CSS$Z.button, disabled: disabled, key: key, onClick: onClick, tabIndex: -1, type: "button",
|
|
18986
18981
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
18987
18982
|
ref: ref },
|
|
18988
18983
|
hAsync("calcite-icon", { icon: "x", scale: getIconScale(scale) })));
|
|
18989
18984
|
}
|
|
18990
18985
|
|
|
18991
|
-
|
|
18986
|
+
/**
|
|
18987
|
+
* Do not edit directly
|
|
18988
|
+
* Generated on Tue, 21 Nov 2023 20:21:59 GMT
|
|
18989
|
+
*/
|
|
18990
|
+
const CoreSizing15 = "48px";
|
|
18991
|
+
const CoreBreakpointWidthDefaultXxs = "320px";
|
|
18992
|
+
const CoreBreakpointWidthDefaultXs = "476px";
|
|
18993
|
+
const CoreBreakpointWidthDefaultSm = "768px";
|
|
18994
|
+
const CoreBreakpointWidthDefaultMd = "1152px";
|
|
18995
|
+
const CoreBreakpointWidthDefaultLg = "1440px";
|
|
18996
|
+
|
|
18997
|
+
const comboboxCss = "/*!@:host([disabled])*/[disabled].sc-calcite-combobox-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-combobox-h *.sc-calcite-combobox,.sc-calcite-combobox-h[disabled] .sc-calcite-combobox-s>*{pointer-events:none}/*!@:host*/.sc-calcite-combobox-h{position:relative;display:block}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-combobox-h[disabled] .sc-calcite-combobox-s>[calcite-hydrated][disabled],[disabled].sc-calcite-combobox-h [calcite-hydrated][disabled].sc-calcite-combobox{opacity:1}/*!@:host([scale=s]) .x-button*/[scale=s].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:1rem;block-size:1rem}/*!@:host([scale=m]) .x-button*/[scale=m].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:1.5rem;block-size:1.5rem}/*!@:host([scale=l]) .x-button*/[scale=l].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:2rem;block-size:2rem}/*!@.x-button*/.x-button.sc-calcite-combobox{margin:0px;display:flex;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-width:2px;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-radius:50%;border-color:transparent;background-color:var(--calcite-ui-foreground-2)}/*!@.x-button:active, .x-button:hover*/.x-button.sc-calcite-combobox:active,.x-button.sc-calcite-combobox:hover{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}/*!@.x-button:active*/.x-button.sc-calcite-combobox:active{border-style:solid;border-color:var(--calcite-ui-brand)}/*!@.x-button calcite-icon*/.x-button.sc-calcite-combobox calcite-icon.sc-calcite-combobox{color:inherit}/*!@:host([scale=s])*/[scale=s].sc-calcite-combobox-h{font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1rem;--calcite-internal-combobox-input-margin-block:calc(0.25rem - 1px)}/*!@:host([scale=s]) .x-button*/[scale=s].sc-calcite-combobox-h .x-button.sc-calcite-combobox{margin-inline:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-combobox-h{font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:1rem;--calcite-internal-combobox-input-margin-block:calc(0.5rem - 1px)}/*!@:host([scale=m]) .x-button*/[scale=m].sc-calcite-combobox-h .x-button.sc-calcite-combobox{margin-inline-end:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-combobox-h{font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:1.5rem;--calcite-internal-combobox-input-margin-block:calc(0.625rem - 1px)}/*!@:host([scale=l]) .x-button*/[scale=l].sc-calcite-combobox-h .x-button.sc-calcite-combobox{margin-inline-end:1rem}/*!@.wrapper*/.wrapper.sc-calcite-combobox{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@:host(:focus-within) .wrapper,\n.wrapper--active*/.sc-calcite-combobox-h:focus-within .wrapper.sc-calcite-combobox,.wrapper--active.sc-calcite-combobox{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.wrapper--single*/.wrapper--single.sc-calcite-combobox{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}/*!@.grid-input*/.grid-input.sc-calcite-combobox{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;gap:var(--calcite-combobox-item-spacing-unit-s)}/*!@.grid-input.selection-display-fit, .grid-input.selection-display-single*/.grid-input.selection-display-fit.sc-calcite-combobox,.grid-input.selection-display-single.sc-calcite-combobox{flex-wrap:nowrap;overflow:hidden}/*!@.input*/.input.sc-calcite-combobox{flex-grow:1;appearance:none;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-combobox-item-spacing-unit-s);min-inline-size:4.8125rem}/*!@.input:focus*/.input.sc-calcite-combobox:focus{outline:2px solid transparent;outline-offset:2px}/*!@.input:placeholder-shown*/.input.sc-calcite-combobox:placeholder-shown{text-overflow:ellipsis}/*!@.input--transparent*/.input--transparent.sc-calcite-combobox{opacity:0}/*!@.input--single*/.input--single.sc-calcite-combobox{padding:0px;margin-block:var(--calcite-internal-combobox-input-margin-block)}/*!@.wrapper--active .input-single*/.wrapper--active.sc-calcite-combobox .input-single.sc-calcite-combobox{cursor:text}/*!@.input--hidden*/.input--hidden.sc-calcite-combobox{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}/*!@.input--icon*/.input--icon.sc-calcite-combobox{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-s)}/*!@:host([scale=m]) .input--icon,\n:host([scale=l]) .input--icon*/[scale=m].sc-calcite-combobox-h .input--icon.sc-calcite-combobox,[scale=l].sc-calcite-combobox-h .input--icon.sc-calcite-combobox{padding-inline:0.25rem}/*!@.input-wrap*/.input-wrap.sc-calcite-combobox{display:flex;flex-grow:1;align-items:center}/*!@.input-wrap--single*/.input-wrap--single.sc-calcite-combobox{flex:1 1 0%;overflow:hidden}/*!@.label*/.label.sc-calcite-combobox{pointer-events:none;display:flex;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}/*!@.label--icon*/.label--icon.sc-calcite-combobox{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@.icon-end,\n.icon-start*/.icon-end.sc-calcite-combobox,.icon-start.sc-calcite-combobox{display:flex;cursor:pointer;align-items:center}/*!@.icon-end*/.icon-end.sc-calcite-combobox{flex:none}/*!@.floating-ui-container*/.floating-ui-container.sc-calcite-combobox{--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}/*!@.floating-ui-container .calcite-floating-ui-anim*/.floating-ui-container.sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}/*!@.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=bottom].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateY(-5px)}/*!@.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=top].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateY(5px)}/*!@.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=left].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateX(5px)}/*!@.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=right].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateX(-5px)}/*!@.floating-ui-container[data-placement] .calcite-floating-ui-anim--active*/.floating-ui-container[data-placement].sc-calcite-combobox .calcite-floating-ui-anim--active.sc-calcite-combobox{opacity:1;transform:translate(0)}/*!@.floating-ui-container--active*/.floating-ui-container--active.sc-calcite-combobox{visibility:visible}@media (forced-colors: active){/*!@.wrapper,\n .floating-ui-container--active*/.wrapper.sc-calcite-combobox,.floating-ui-container--active.sc-calcite-combobox{border:1px solid canvasText}}/*!@.screen-readers-only*/.screen-readers-only.sc-calcite-combobox{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@.list-container*/.list-container.sc-calcite-combobox{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}/*!@.list*/.list.sc-calcite-combobox{margin:0px;display:block;padding:0px}/*!@.list--hide*/.list--hide.sc-calcite-combobox{block-size:0px;overflow:hidden}/*!@calcite-chip*/calcite-chip.sc-calcite-combobox{--calcite-animation-timing:0}/*!@.chip*/.chip.sc-calcite-combobox{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);max-inline-size:100%}/*!@.chip--active*/.chip--active.sc-calcite-combobox{background-color:var(--calcite-ui-foreground-3)}/*!@.chip--invisible*/.chip--invisible.sc-calcite-combobox{visibility:hidden;position:absolute}/*!@.item*/.item.sc-calcite-combobox{display:block}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-combobox-s>input[slot=hidden-form-input]{margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}/*!@:host([hidden])*/[hidden].sc-calcite-combobox-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-combobox{display:none}/*!@::slotted(calcite-combobox-item-group:not(:first-child))*/.sc-calcite-combobox-s>calcite-combobox-item-group:not(:first-child){padding-block-start:var(--calcite-combobox-item-spacing-unit-l)}";
|
|
18992
18998
|
|
|
18993
18999
|
const isGroup = (el) => el.tagName === ComboboxItemGroup$1;
|
|
18994
19000
|
const itemUidPrefix = "combobox-item-";
|
|
@@ -19185,7 +19191,7 @@ class Combobox {
|
|
|
19185
19191
|
event.preventDefault();
|
|
19186
19192
|
return;
|
|
19187
19193
|
}
|
|
19188
|
-
if (composedPath.some((node) => node.classList?.contains(CSS$
|
|
19194
|
+
if (composedPath.some((node) => node.classList?.contains(CSS$Z.button))) {
|
|
19189
19195
|
this.clearValue();
|
|
19190
19196
|
event.preventDefault();
|
|
19191
19197
|
return;
|
|
@@ -19193,6 +19199,40 @@ class Combobox {
|
|
|
19193
19199
|
this.open = !this.open;
|
|
19194
19200
|
this.ensureRecentSelectedItemIsActive();
|
|
19195
19201
|
};
|
|
19202
|
+
this.refreshSelectionDisplay = async () => {
|
|
19203
|
+
await componentLoaded(this);
|
|
19204
|
+
if (isSingleLike(this.selectionMode)) {
|
|
19205
|
+
return;
|
|
19206
|
+
}
|
|
19207
|
+
if (!this.textInput) {
|
|
19208
|
+
return;
|
|
19209
|
+
}
|
|
19210
|
+
const { allSelectedIndicatorChipEl, chipContainerEl, selectionDisplay, placeholder, selectedIndicatorChipEl, textInput, } = this;
|
|
19211
|
+
const chipContainerElGap = parseInt(getComputedStyle(chipContainerEl).gap.replace("px", ""));
|
|
19212
|
+
const chipContainerElWidth = getElementWidth(chipContainerEl);
|
|
19213
|
+
const { fontSize, fontFamily } = getComputedStyle(textInput);
|
|
19214
|
+
const inputTextWidth = getTextWidth(placeholder, `${fontSize} ${fontFamily}`);
|
|
19215
|
+
const inputWidth = (inputTextWidth || parseInt(CoreSizing15)) + chipContainerElGap;
|
|
19216
|
+
const allSelectedIndicatorChipElWidth = getElementWidth(allSelectedIndicatorChipEl);
|
|
19217
|
+
const selectedIndicatorChipElWidth = getElementWidth(selectedIndicatorChipEl);
|
|
19218
|
+
const largestSelectedIndicatorChipWidth = Math.max(allSelectedIndicatorChipElWidth, selectedIndicatorChipElWidth);
|
|
19219
|
+
this.setCompactSelectionDisplay({
|
|
19220
|
+
chipContainerElGap,
|
|
19221
|
+
chipContainerElWidth,
|
|
19222
|
+
inputWidth,
|
|
19223
|
+
largestSelectedIndicatorChipWidth,
|
|
19224
|
+
});
|
|
19225
|
+
if (selectionDisplay === "fit") {
|
|
19226
|
+
const chipEls = Array.from(this.el.shadowRoot.querySelectorAll("calcite-chip")).filter((chipEl) => chipEl.closable);
|
|
19227
|
+
let availableHorizontalChipElSpace = Math.round(chipContainerElWidth -
|
|
19228
|
+
((this.selectedHiddenChipsCount > 0 ? selectedIndicatorChipElWidth : 0) +
|
|
19229
|
+
chipContainerElGap +
|
|
19230
|
+
inputWidth +
|
|
19231
|
+
chipContainerElGap));
|
|
19232
|
+
this.refreshChipDisplay({ availableHorizontalChipElSpace, chipContainerElGap, chipEls });
|
|
19233
|
+
this.setVisibleAndHiddenChips(chipEls);
|
|
19234
|
+
}
|
|
19235
|
+
};
|
|
19196
19236
|
this.setFloatingEl = (el) => {
|
|
19197
19237
|
this.floatingEl = el;
|
|
19198
19238
|
connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
|
@@ -19202,10 +19242,20 @@ class Combobox {
|
|
|
19202
19242
|
this.listContainerEl = el;
|
|
19203
19243
|
this.transitionEl = el;
|
|
19204
19244
|
};
|
|
19245
|
+
this.setChipContainerEl = (el) => {
|
|
19246
|
+
this.resizeObserver.observe(el);
|
|
19247
|
+
this.chipContainerEl = el;
|
|
19248
|
+
};
|
|
19205
19249
|
this.setReferenceEl = (el) => {
|
|
19206
19250
|
this.referenceEl = el;
|
|
19207
19251
|
connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
|
19208
19252
|
};
|
|
19253
|
+
this.setAllSelectedIndicatorChipEl = (el) => {
|
|
19254
|
+
this.allSelectedIndicatorChipEl = el;
|
|
19255
|
+
};
|
|
19256
|
+
this.setSelectedIndicatorChipEl = (el) => {
|
|
19257
|
+
this.selectedIndicatorChipEl = el;
|
|
19258
|
+
};
|
|
19209
19259
|
this.inputHandler = (event) => {
|
|
19210
19260
|
const value = event.target.value;
|
|
19211
19261
|
this.text = value;
|
|
@@ -19239,6 +19289,23 @@ class Combobox {
|
|
|
19239
19289
|
this.calciteComboboxChange.emit();
|
|
19240
19290
|
};
|
|
19241
19291
|
this.emitComboboxChange = debounce(this.internalComboboxChangeEvent, 0);
|
|
19292
|
+
this.getSelectedItems = () => {
|
|
19293
|
+
if (!this.isMulti()) {
|
|
19294
|
+
const match = this.items.find(({ selected }) => selected);
|
|
19295
|
+
return match ? [match] : [];
|
|
19296
|
+
}
|
|
19297
|
+
return (this.items
|
|
19298
|
+
.filter((item) => item.selected && (this.selectionMode !== "ancestors" || !hasActiveChildren(item)))
|
|
19299
|
+
/** Preserve order of entered tags */
|
|
19300
|
+
.sort((a, b) => {
|
|
19301
|
+
const aIdx = this.selectedItems.indexOf(a);
|
|
19302
|
+
const bIdx = this.selectedItems.indexOf(b);
|
|
19303
|
+
if (aIdx > -1 && bIdx > -1) {
|
|
19304
|
+
return aIdx - bIdx;
|
|
19305
|
+
}
|
|
19306
|
+
return bIdx - aIdx;
|
|
19307
|
+
}));
|
|
19308
|
+
};
|
|
19242
19309
|
this.updateItems = () => {
|
|
19243
19310
|
this.items = this.getItems();
|
|
19244
19311
|
this.groupItems = this.getGroupItems();
|
|
@@ -19284,6 +19351,7 @@ class Combobox {
|
|
|
19284
19351
|
this.textInput?.focus();
|
|
19285
19352
|
};
|
|
19286
19353
|
this.clearDisabled = false;
|
|
19354
|
+
this.selectionDisplay = "all";
|
|
19287
19355
|
this.open = false;
|
|
19288
19356
|
this.disabled = false;
|
|
19289
19357
|
this.form = undefined;
|
|
@@ -19310,6 +19378,9 @@ class Combobox {
|
|
|
19310
19378
|
this.activeItemIndex = -1;
|
|
19311
19379
|
this.activeChipIndex = -1;
|
|
19312
19380
|
this.activeDescendant = "";
|
|
19381
|
+
this.compactSelectionDisplay = false;
|
|
19382
|
+
this.selectedHiddenChipsCount = 0;
|
|
19383
|
+
this.selectedVisibleChipsCount = 0;
|
|
19313
19384
|
this.text = "";
|
|
19314
19385
|
this.effectiveLocale = undefined;
|
|
19315
19386
|
this.defaultMessages = undefined;
|
|
@@ -19403,7 +19474,8 @@ class Combobox {
|
|
|
19403
19474
|
/**
|
|
19404
19475
|
* Updates the position of the component.
|
|
19405
19476
|
*
|
|
19406
|
-
* @param delayed
|
|
19477
|
+
* @param delayed Reposition the component after a delay
|
|
19478
|
+
* @returns Promise
|
|
19407
19479
|
*/
|
|
19408
19480
|
async reposition(delayed = false) {
|
|
19409
19481
|
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
|
@@ -19463,6 +19535,9 @@ class Combobox {
|
|
|
19463
19535
|
}
|
|
19464
19536
|
updateHostInteraction(this);
|
|
19465
19537
|
}
|
|
19538
|
+
componentDidUpdate() {
|
|
19539
|
+
this.refreshSelectionDisplay();
|
|
19540
|
+
}
|
|
19466
19541
|
disconnectedCallback() {
|
|
19467
19542
|
this.mutationObserver?.disconnect();
|
|
19468
19543
|
this.resizeObserver?.disconnect();
|
|
@@ -19526,6 +19601,50 @@ class Combobox {
|
|
|
19526
19601
|
const targetIndex = selectedItems.length === 0 ? 0 : this.items.indexOf(selectedItems[selectedItems.length - 1]);
|
|
19527
19602
|
this.updateActiveItemIndex(targetIndex);
|
|
19528
19603
|
}
|
|
19604
|
+
hideChip(chipEl) {
|
|
19605
|
+
chipEl.classList.add(CSS$_.chipInvisible);
|
|
19606
|
+
}
|
|
19607
|
+
showChip(chipEl) {
|
|
19608
|
+
chipEl.classList.remove(CSS$_.chipInvisible);
|
|
19609
|
+
}
|
|
19610
|
+
refreshChipDisplay({ chipEls, availableHorizontalChipElSpace, chipContainerElGap, }) {
|
|
19611
|
+
chipEls.forEach((chipEl) => {
|
|
19612
|
+
if (!chipEl.selected) {
|
|
19613
|
+
this.hideChip(chipEl);
|
|
19614
|
+
}
|
|
19615
|
+
else {
|
|
19616
|
+
const chipElWidth = getElementWidth(chipEl);
|
|
19617
|
+
if (chipElWidth && chipElWidth < availableHorizontalChipElSpace) {
|
|
19618
|
+
availableHorizontalChipElSpace -= chipElWidth + chipContainerElGap;
|
|
19619
|
+
this.showChip(chipEl);
|
|
19620
|
+
return;
|
|
19621
|
+
}
|
|
19622
|
+
}
|
|
19623
|
+
this.hideChip(chipEl);
|
|
19624
|
+
});
|
|
19625
|
+
}
|
|
19626
|
+
setCompactSelectionDisplay({ chipContainerElGap, chipContainerElWidth, inputWidth, largestSelectedIndicatorChipWidth, }) {
|
|
19627
|
+
const newCompactBreakpoint = Math.round(largestSelectedIndicatorChipWidth + chipContainerElGap + inputWidth);
|
|
19628
|
+
if (!this.maxCompactBreakpoint || this.maxCompactBreakpoint < newCompactBreakpoint) {
|
|
19629
|
+
this.maxCompactBreakpoint = newCompactBreakpoint;
|
|
19630
|
+
}
|
|
19631
|
+
this.compactSelectionDisplay = chipContainerElWidth < this.maxCompactBreakpoint;
|
|
19632
|
+
}
|
|
19633
|
+
setVisibleAndHiddenChips(chipEls) {
|
|
19634
|
+
let newSelectedVisibleChipsCount = 0;
|
|
19635
|
+
chipEls.forEach((chipEl) => {
|
|
19636
|
+
if (chipEl.selected && !chipEl.classList.contains(CSS$_.chipInvisible)) {
|
|
19637
|
+
newSelectedVisibleChipsCount++;
|
|
19638
|
+
}
|
|
19639
|
+
});
|
|
19640
|
+
if (newSelectedVisibleChipsCount !== this.selectedVisibleChipsCount) {
|
|
19641
|
+
this.selectedVisibleChipsCount = newSelectedVisibleChipsCount;
|
|
19642
|
+
}
|
|
19643
|
+
const newSelectedHiddenChipsCount = this.getSelectedItems().length - newSelectedVisibleChipsCount;
|
|
19644
|
+
if (newSelectedHiddenChipsCount !== this.selectedHiddenChipsCount) {
|
|
19645
|
+
this.selectedHiddenChipsCount = newSelectedHiddenChipsCount;
|
|
19646
|
+
}
|
|
19647
|
+
}
|
|
19529
19648
|
getMaxScrollerHeight() {
|
|
19530
19649
|
const items = this.getItemsAndGroups().filter((item) => !item.hidden);
|
|
19531
19650
|
const { maxItems } = this;
|
|
@@ -19612,23 +19731,6 @@ class Combobox {
|
|
|
19612
19731
|
getFilteredItems() {
|
|
19613
19732
|
return this.items.filter((item) => !item.hidden);
|
|
19614
19733
|
}
|
|
19615
|
-
getSelectedItems() {
|
|
19616
|
-
if (!this.isMulti()) {
|
|
19617
|
-
const match = this.items.find(({ selected }) => selected);
|
|
19618
|
-
return match ? [match] : [];
|
|
19619
|
-
}
|
|
19620
|
-
return (this.items
|
|
19621
|
-
.filter((item) => item.selected && (this.selectionMode !== "ancestors" || !hasActiveChildren(item)))
|
|
19622
|
-
/** Preserve order of entered tags */
|
|
19623
|
-
.sort((a, b) => {
|
|
19624
|
-
const aIdx = this.selectedItems.indexOf(a);
|
|
19625
|
-
const bIdx = this.selectedItems.indexOf(b);
|
|
19626
|
-
if (aIdx > -1 && bIdx > -1) {
|
|
19627
|
-
return aIdx - bIdx;
|
|
19628
|
-
}
|
|
19629
|
-
return bIdx - aIdx;
|
|
19630
|
-
}));
|
|
19631
|
-
}
|
|
19632
19734
|
getData() {
|
|
19633
19735
|
return this.items.map((item) => ({
|
|
19634
19736
|
filterDisabled: item.filterDisabled,
|
|
@@ -19739,6 +19841,9 @@ class Combobox {
|
|
|
19739
19841
|
this.activeChipIndex = -1;
|
|
19740
19842
|
}
|
|
19741
19843
|
}
|
|
19844
|
+
isAllSelected() {
|
|
19845
|
+
return this.getItems().length === this.getSelectedItems().length;
|
|
19846
|
+
}
|
|
19742
19847
|
isMulti() {
|
|
19743
19848
|
return !isSingleLike(this.selectionMode);
|
|
19744
19849
|
}
|
|
@@ -19757,9 +19862,93 @@ class Combobox {
|
|
|
19757
19862
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
19758
19863
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
19759
19864
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
19760
|
-
return (hAsync("calcite-chip", { class: chipClasses, closable: true, icon: item.icon, iconFlipRtl: item.iconFlipRtl, id: item.guid ? `${chipUidPrefix}${item.guid}` : null, key: item.textLabel, messageOverrides: { dismissLabel: messages.removeTag }, onCalciteChipClose: () => this.calciteChipCloseHandler(item), scale: scale, title: label, value: item.value }, label));
|
|
19865
|
+
return (hAsync("calcite-chip", { class: chipClasses, closable: true, icon: item.icon, iconFlipRtl: item.iconFlipRtl, id: item.guid ? `${chipUidPrefix}${item.guid}` : null, key: item.textLabel, messageOverrides: { dismissLabel: messages.removeTag }, onCalciteChipClose: () => this.calciteChipCloseHandler(item), scale: scale, selected: item.selected, title: label, value: item.value }, label));
|
|
19761
19866
|
});
|
|
19762
19867
|
}
|
|
19868
|
+
renderAllSelectedIndicatorChip() {
|
|
19869
|
+
const { compactSelectionDisplay, scale, selectedVisibleChipsCount, setAllSelectedIndicatorChipEl, } = this;
|
|
19870
|
+
const label = this.messages.allSelected;
|
|
19871
|
+
return (hAsync("calcite-chip", { class: {
|
|
19872
|
+
chip: true,
|
|
19873
|
+
[CSS$_.chipInvisible]: !(this.isAllSelected() &&
|
|
19874
|
+
!selectedVisibleChipsCount &&
|
|
19875
|
+
!compactSelectionDisplay),
|
|
19876
|
+
}, scale: scale, title: label, value: "", ref: setAllSelectedIndicatorChipEl }, label));
|
|
19877
|
+
}
|
|
19878
|
+
renderAllSelectedIndicatorChipCompact() {
|
|
19879
|
+
const { compactSelectionDisplay, scale, selectedVisibleChipsCount } = this;
|
|
19880
|
+
const label = this.messages.all || "All";
|
|
19881
|
+
return (hAsync("calcite-chip", { class: {
|
|
19882
|
+
chip: true,
|
|
19883
|
+
[CSS$_.chipInvisible]: !(this.isAllSelected() &&
|
|
19884
|
+
!selectedVisibleChipsCount &&
|
|
19885
|
+
compactSelectionDisplay),
|
|
19886
|
+
}, scale: scale, title: label, value: "" }, label));
|
|
19887
|
+
}
|
|
19888
|
+
renderSelectedIndicatorChip() {
|
|
19889
|
+
const { compactSelectionDisplay, selectionDisplay, getSelectedItems, scale, selectedHiddenChipsCount, selectedVisibleChipsCount, setSelectedIndicatorChipEl, } = this;
|
|
19890
|
+
let chipInvisible, label;
|
|
19891
|
+
if (compactSelectionDisplay) {
|
|
19892
|
+
chipInvisible = true;
|
|
19893
|
+
}
|
|
19894
|
+
else {
|
|
19895
|
+
if (selectionDisplay === "single") {
|
|
19896
|
+
const selectedItemsCount = getSelectedItems().length;
|
|
19897
|
+
if (this.isAllSelected()) {
|
|
19898
|
+
chipInvisible = true;
|
|
19899
|
+
}
|
|
19900
|
+
else if (selectedItemsCount > 0) {
|
|
19901
|
+
chipInvisible = false;
|
|
19902
|
+
}
|
|
19903
|
+
else {
|
|
19904
|
+
chipInvisible = true;
|
|
19905
|
+
}
|
|
19906
|
+
label = `${selectedItemsCount} ${this.messages.selected}`;
|
|
19907
|
+
}
|
|
19908
|
+
else if (selectionDisplay === "fit") {
|
|
19909
|
+
if ((this.isAllSelected() && selectedVisibleChipsCount === 0) ||
|
|
19910
|
+
selectedHiddenChipsCount === 0) {
|
|
19911
|
+
chipInvisible = true;
|
|
19912
|
+
}
|
|
19913
|
+
else {
|
|
19914
|
+
chipInvisible = false;
|
|
19915
|
+
}
|
|
19916
|
+
label =
|
|
19917
|
+
selectedVisibleChipsCount > 0
|
|
19918
|
+
? `+${selectedHiddenChipsCount}`
|
|
19919
|
+
: `${selectedHiddenChipsCount} ${this.messages.selected}`;
|
|
19920
|
+
}
|
|
19921
|
+
}
|
|
19922
|
+
return (hAsync("calcite-chip", { class: {
|
|
19923
|
+
chip: true,
|
|
19924
|
+
[CSS$_.chipInvisible]: chipInvisible,
|
|
19925
|
+
}, ref: setSelectedIndicatorChipEl, scale: scale, title: label, value: "" }, label));
|
|
19926
|
+
}
|
|
19927
|
+
renderSelectedIndicatorChipCompact() {
|
|
19928
|
+
const { compactSelectionDisplay, selectionDisplay, getSelectedItems, scale, selectedHiddenChipsCount, } = this;
|
|
19929
|
+
let chipInvisible, label;
|
|
19930
|
+
if (compactSelectionDisplay) {
|
|
19931
|
+
const selectedItemsCount = getSelectedItems().length;
|
|
19932
|
+
if (this.isAllSelected()) {
|
|
19933
|
+
chipInvisible = true;
|
|
19934
|
+
}
|
|
19935
|
+
else if (selectionDisplay === "fit") {
|
|
19936
|
+
chipInvisible = selectedHiddenChipsCount > 0 ? false : true;
|
|
19937
|
+
label = `${selectedHiddenChipsCount || 0}`;
|
|
19938
|
+
}
|
|
19939
|
+
else if (selectionDisplay === "single") {
|
|
19940
|
+
chipInvisible = selectedItemsCount > 0 ? false : true;
|
|
19941
|
+
label = `${selectedItemsCount}`;
|
|
19942
|
+
}
|
|
19943
|
+
}
|
|
19944
|
+
else {
|
|
19945
|
+
chipInvisible = true;
|
|
19946
|
+
}
|
|
19947
|
+
return (hAsync("calcite-chip", { class: {
|
|
19948
|
+
chip: true,
|
|
19949
|
+
[CSS$_.chipInvisible]: chipInvisible,
|
|
19950
|
+
}, scale: scale, title: label, value: "" }, label));
|
|
19951
|
+
}
|
|
19763
19952
|
renderInput() {
|
|
19764
19953
|
const { guid, disabled, placeholder, selectionMode, selectedItems, open } = this;
|
|
19765
19954
|
const single = isSingleLike(selectionMode);
|
|
@@ -19787,7 +19976,7 @@ class Combobox {
|
|
|
19787
19976
|
renderFloatingUIContainer() {
|
|
19788
19977
|
const { setFloatingEl, setContainerEl, open } = this;
|
|
19789
19978
|
const classes = {
|
|
19790
|
-
[CSS$
|
|
19979
|
+
[CSS$_.listContainer]: true,
|
|
19791
19980
|
[FloatingCSS.animation]: true,
|
|
19792
19981
|
[FloatingCSS.animationActive]: open,
|
|
19793
19982
|
};
|
|
@@ -19815,16 +20004,29 @@ class Combobox {
|
|
|
19815
20004
|
return (hAsync("span", { class: "icon-end" }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: getIconScale(this.scale) })));
|
|
19816
20005
|
}
|
|
19817
20006
|
render() {
|
|
19818
|
-
const { guid, label, open } = this;
|
|
19819
|
-
const
|
|
20007
|
+
const { selectionDisplay, guid, label, open } = this;
|
|
20008
|
+
const singleSelectionMode = isSingleLike(this.selectionMode);
|
|
20009
|
+
const allSelectionDisplay = selectionDisplay === "all";
|
|
20010
|
+
const singleSelectionDisplay = selectionDisplay === "single";
|
|
20011
|
+
const fitSelectionDisplay = !singleSelectionMode && selectionDisplay === "fit";
|
|
19820
20012
|
const isClearable = !this.clearDisabled && this.value?.length > 0;
|
|
19821
20013
|
return (hAsync(Host, { onClick: this.comboboxFocusHandler }, hAsync("div", { "aria-autocomplete": "list", "aria-controls": `${listboxUidPrefix}${guid}`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "listbox", "aria-label": getLabelText(this), "aria-live": "polite", "aria-owns": `${listboxUidPrefix}${guid}`, class: {
|
|
19822
20014
|
wrapper: true,
|
|
19823
|
-
"wrapper--single":
|
|
20015
|
+
"wrapper--single": singleSelectionMode || !this.selectedItems.length,
|
|
19824
20016
|
"wrapper--active": open,
|
|
19825
20017
|
}, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, role: "combobox",
|
|
19826
20018
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
19827
|
-
ref: this.setReferenceEl }, hAsync("div", { class:
|
|
20019
|
+
ref: this.setReferenceEl }, hAsync("div", { class: {
|
|
20020
|
+
"grid-input": true,
|
|
20021
|
+
[CSS$_.selectionDisplayFit]: fitSelectionDisplay,
|
|
20022
|
+
[CSS$_.selectionDisplaySingle]: singleSelectionDisplay,
|
|
20023
|
+
}, ref: this.setChipContainerEl }, this.renderIconStart(), !singleSelectionMode && !singleSelectionDisplay && this.renderChips(), !singleSelectionMode &&
|
|
20024
|
+
!allSelectionDisplay && [
|
|
20025
|
+
this.renderSelectedIndicatorChip(),
|
|
20026
|
+
this.renderSelectedIndicatorChipCompact(),
|
|
20027
|
+
this.renderAllSelectedIndicatorChip(),
|
|
20028
|
+
this.renderAllSelectedIndicatorChipCompact(),
|
|
20029
|
+
], hAsync("label", { class: "screen-readers-only", htmlFor: `${inputUidPrefix}${guid}`, id: `${labelUidPrefix}${guid}` }, label), this.renderInput()), isClearable ? (hAsync(XButton, { disabled: this.disabled, key: "close-button", label: this.messages.clear, scale: this.scale })) : null, this.renderIconEnd()), hAsync("ul", { "aria-labelledby": `${labelUidPrefix}${guid}`, "aria-multiselectable": "true", class: "screen-readers-only", id: `${listboxUidPrefix}${guid}`, role: "listbox", tabIndex: -1 }, this.renderListBoxOptions()), this.renderFloatingUIContainer(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
19828
20030
|
}
|
|
19829
20031
|
static get assetsDirs() { return ["assets"]; }
|
|
19830
20032
|
get el() { return getElement(this); }
|
|
@@ -19848,6 +20050,7 @@ class Combobox {
|
|
|
19848
20050
|
"$tagName$": "calcite-combobox",
|
|
19849
20051
|
"$members$": {
|
|
19850
20052
|
"clearDisabled": [516, "clear-disabled"],
|
|
20053
|
+
"selectionDisplay": [513, "selection-display"],
|
|
19851
20054
|
"open": [1540],
|
|
19852
20055
|
"disabled": [516],
|
|
19853
20056
|
"form": [513],
|
|
@@ -19874,6 +20077,9 @@ class Combobox {
|
|
|
19874
20077
|
"activeItemIndex": [32],
|
|
19875
20078
|
"activeChipIndex": [32],
|
|
19876
20079
|
"activeDescendant": [32],
|
|
20080
|
+
"compactSelectionDisplay": [32],
|
|
20081
|
+
"selectedHiddenChipsCount": [32],
|
|
20082
|
+
"selectedVisibleChipsCount": [32],
|
|
19877
20083
|
"text": [32],
|
|
19878
20084
|
"effectiveLocale": [32],
|
|
19879
20085
|
"defaultMessages": [32],
|
|
@@ -19882,11 +20088,11 @@ class Combobox {
|
|
|
19882
20088
|
},
|
|
19883
20089
|
"$listeners$": [[5, "pointerdown", "documentClickHandler"], [0, "calciteComboboxItemChange", "calciteComboboxItemChangeHandler"]],
|
|
19884
20090
|
"$lazyBundleId$": "-",
|
|
19885
|
-
"$attrsToReflect$": [["clearDisabled", "clear-disabled"], ["open", "open"], ["disabled", "disabled"], ["form", "form"], ["placeholderIcon", "placeholder-icon"], ["placeholderIconFlipRtl", "placeholder-icon-flip-rtl"], ["maxItems", "max-items"], ["name", "name"], ["allowCustomValues", "allow-custom-values"], ["overlayPositioning", "overlay-positioning"], ["required", "required"], ["selectionMode", "selection-mode"], ["scale", "scale"]]
|
|
20091
|
+
"$attrsToReflect$": [["clearDisabled", "clear-disabled"], ["selectionDisplay", "selection-display"], ["open", "open"], ["disabled", "disabled"], ["form", "form"], ["placeholderIcon", "placeholder-icon"], ["placeholderIconFlipRtl", "placeholder-icon-flip-rtl"], ["maxItems", "max-items"], ["name", "name"], ["allowCustomValues", "allow-custom-values"], ["overlayPositioning", "overlay-positioning"], ["required", "required"], ["selectionMode", "selection-mode"], ["scale", "scale"]]
|
|
19886
20092
|
}; }
|
|
19887
20093
|
}
|
|
19888
20094
|
|
|
19889
|
-
const CSS$
|
|
20095
|
+
const CSS$Y = {
|
|
19890
20096
|
icon: "icon",
|
|
19891
20097
|
iconActive: "icon--active",
|
|
19892
20098
|
iconIndent: "icon--indent",
|
|
@@ -19964,20 +20170,20 @@ class ComboboxItem {
|
|
|
19964
20170
|
// --------------------------------------------------------------------------
|
|
19965
20171
|
renderIcon(iconPath) {
|
|
19966
20172
|
return this.icon ? (hAsync("calcite-icon", { class: {
|
|
19967
|
-
[CSS$
|
|
19968
|
-
[CSS$
|
|
19969
|
-
[CSS$
|
|
20173
|
+
[CSS$Y.custom]: !!this.icon,
|
|
20174
|
+
[CSS$Y.iconActive]: this.icon && this.selected,
|
|
20175
|
+
[CSS$Y.iconIndent]: true,
|
|
19970
20176
|
}, flipRtl: this.iconFlipRtl, icon: this.icon || iconPath, key: "icon", scale: getIconScale(this.scale) })) : null;
|
|
19971
20177
|
}
|
|
19972
20178
|
renderSelectIndicator(showDot, iconPath) {
|
|
19973
20179
|
return showDot ? (hAsync("span", { class: {
|
|
19974
|
-
[CSS$
|
|
19975
|
-
[CSS$
|
|
19976
|
-
[CSS$
|
|
20180
|
+
[CSS$Y.icon]: true,
|
|
20181
|
+
[CSS$Y.dot]: true,
|
|
20182
|
+
[CSS$Y.iconIndent]: true,
|
|
19977
20183
|
} })) : (hAsync("calcite-icon", { class: {
|
|
19978
|
-
[CSS$
|
|
19979
|
-
[CSS$
|
|
19980
|
-
[CSS$
|
|
20184
|
+
[CSS$Y.icon]: true,
|
|
20185
|
+
[CSS$Y.iconActive]: this.selected,
|
|
20186
|
+
[CSS$Y.iconIndent]: true,
|
|
19981
20187
|
}, flipRtl: this.iconFlipRtl, icon: iconPath, key: "indicator", scale: getIconScale(this.scale) }));
|
|
19982
20188
|
}
|
|
19983
20189
|
renderChildren() {
|
|
@@ -19992,10 +20198,10 @@ class ComboboxItem {
|
|
|
19992
20198
|
const defaultIcon = isSingleSelect ? "dot" : "check";
|
|
19993
20199
|
const iconPath = this.disabled ? "" : defaultIcon;
|
|
19994
20200
|
const classes = {
|
|
19995
|
-
[CSS$
|
|
19996
|
-
[CSS$
|
|
19997
|
-
[CSS$
|
|
19998
|
-
[CSS$
|
|
20201
|
+
[CSS$Y.label]: true,
|
|
20202
|
+
[CSS$Y.selected]: this.selected,
|
|
20203
|
+
[CSS$Y.active]: this.active,
|
|
20204
|
+
[CSS$Y.single]: isSingleSelect,
|
|
19999
20205
|
};
|
|
20000
20206
|
const depth = getDepth$1();
|
|
20001
20207
|
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderSelectIndicator(showDot, iconPath), this.renderIcon(iconPath), hAsync("span", { class: "title" }, this.textLabel)), this.renderChildren())));
|
|
@@ -20028,7 +20234,7 @@ class ComboboxItem {
|
|
|
20028
20234
|
}; }
|
|
20029
20235
|
}
|
|
20030
20236
|
|
|
20031
|
-
const CSS$
|
|
20237
|
+
const CSS$X = {
|
|
20032
20238
|
list: "list",
|
|
20033
20239
|
label: "label",
|
|
20034
20240
|
title: "title",
|
|
@@ -20064,7 +20270,7 @@ class ComboboxItemGroup {
|
|
|
20064
20270
|
render() {
|
|
20065
20271
|
const { el, scale } = this;
|
|
20066
20272
|
const depth = getDepth$1();
|
|
20067
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
20273
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$X.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$X.label]: true }, id: this.guid, role: "presentation", style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("span", { class: CSS$X.title }, this.label)), hAsync("slot", null)));
|
|
20068
20274
|
}
|
|
20069
20275
|
get el() { return getElement(this); }
|
|
20070
20276
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -21250,7 +21456,7 @@ class DatePickerMonth {
|
|
|
21250
21456
|
}; }
|
|
21251
21457
|
}
|
|
21252
21458
|
|
|
21253
|
-
const CSS$
|
|
21459
|
+
const CSS$W = {
|
|
21254
21460
|
header: "header",
|
|
21255
21461
|
month: "month",
|
|
21256
21462
|
chevron: "chevron",
|
|
@@ -21350,7 +21556,7 @@ class DatePickerMonthHeader {
|
|
|
21350
21556
|
this.setNextPrevMonthDates();
|
|
21351
21557
|
}
|
|
21352
21558
|
render() {
|
|
21353
|
-
return hAsync("div", { class: CSS$
|
|
21559
|
+
return hAsync("div", { class: CSS$W.header }, this.renderContent());
|
|
21354
21560
|
}
|
|
21355
21561
|
renderContent() {
|
|
21356
21562
|
const { messages, localeData, activeDate } = this;
|
|
@@ -21372,12 +21578,12 @@ class DatePickerMonthHeader {
|
|
|
21372
21578
|
const order = getOrder(unitOrder);
|
|
21373
21579
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
21374
21580
|
const suffix = localeData.year?.suffix;
|
|
21375
|
-
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": messages.prevMonth, class: CSS$
|
|
21581
|
+
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": messages.prevMonth, class: CSS$W.chevron, href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronLeft, scale: getIconScale(this.scale) })), hAsync("div", { class: { text: true, [CSS$W.textReverse]: reverse } }, hAsync(Heading, { class: CSS$W.month, level: this.headingLevel }, localizedMonth), hAsync("span", { class: CSS$W.yearWrap }, hAsync("input", { "aria-label": messages.year, class: {
|
|
21376
21582
|
year: true,
|
|
21377
|
-
[CSS$
|
|
21583
|
+
[CSS$W.yearSuffix]: !!suffix,
|
|
21378
21584
|
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", type: "text", value: localizedYear,
|
|
21379
21585
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
21380
|
-
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$
|
|
21586
|
+
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$W.suffix }, suffix))), hAsync("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": messages.nextMonth, class: CSS$W.chevron, href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronRight, scale: getIconScale(this.scale) }))));
|
|
21381
21587
|
}
|
|
21382
21588
|
setNextPrevMonthDates() {
|
|
21383
21589
|
if (!this.activeDate) {
|
|
@@ -21879,7 +22085,7 @@ class Dropdown {
|
|
|
21879
22085
|
}; }
|
|
21880
22086
|
}
|
|
21881
22087
|
|
|
21882
|
-
const CSS$
|
|
22088
|
+
const CSS$V = {
|
|
21883
22089
|
container: "container",
|
|
21884
22090
|
containerLink: "container--link",
|
|
21885
22091
|
containerMulti: "container--multi-selection",
|
|
@@ -21931,8 +22137,8 @@ class DropdownGroup {
|
|
|
21931
22137
|
const groupTitle = this.groupTitle ? (hAsync("span", { "aria-hidden": "true", class: "dropdown-title" }, this.groupTitle)) : null;
|
|
21932
22138
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
21933
22139
|
return (hAsync(Host, { "aria-label": this.groupTitle, role: "group" }, hAsync("div", { class: {
|
|
21934
|
-
[CSS$
|
|
21935
|
-
[`${CSS$
|
|
22140
|
+
[CSS$V.container]: true,
|
|
22141
|
+
[`${CSS$V.container}--${this.scale}`]: true,
|
|
21936
22142
|
} }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
21937
22143
|
}
|
|
21938
22144
|
//--------------------------------------------------------------------------
|
|
@@ -22026,9 +22232,9 @@ class DropdownItem {
|
|
|
22026
22232
|
}
|
|
22027
22233
|
render() {
|
|
22028
22234
|
const { href, selectionMode, label, iconFlipRtl, scale } = this;
|
|
22029
|
-
const iconStartEl = (hAsync("calcite-icon", { class: CSS$
|
|
22030
|
-
const contentNode = (hAsync("span", { class: CSS$
|
|
22031
|
-
const iconEndEl = (hAsync("calcite-icon", { class: CSS$
|
|
22235
|
+
const iconStartEl = (hAsync("calcite-icon", { class: CSS$V.iconStart, flipRtl: iconFlipRtl === "start" || iconFlipRtl === "both", icon: this.iconStart, scale: getIconScale(this.scale) }));
|
|
22236
|
+
const contentNode = (hAsync("span", { class: CSS$V.itemContent }, hAsync("slot", null)));
|
|
22237
|
+
const iconEndEl = (hAsync("calcite-icon", { class: CSS$V.iconEnd, flipRtl: iconFlipRtl === "end" || iconFlipRtl === "both", icon: this.iconEnd, scale: getIconScale(this.scale) }));
|
|
22032
22238
|
const slottedContent = this.iconStart && this.iconEnd
|
|
22033
22239
|
? [iconStartEl, contentNode, iconEndEl]
|
|
22034
22240
|
: this.iconStart
|
|
@@ -22036,7 +22242,7 @@ class DropdownItem {
|
|
|
22036
22242
|
: this.iconEnd
|
|
22037
22243
|
? [contentNode, iconEndEl]
|
|
22038
22244
|
: contentNode;
|
|
22039
|
-
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$
|
|
22245
|
+
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$V.link, href: href, rel: this.rel, tabIndex: -1, target: this.target,
|
|
22040
22246
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
22041
22247
|
ref: (el) => (this.childLink = el) }, slottedContent));
|
|
22042
22248
|
const itemRole = href
|
|
@@ -22048,13 +22254,13 @@ class DropdownItem {
|
|
|
22048
22254
|
: "menuitem";
|
|
22049
22255
|
const itemAria = selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
|
22050
22256
|
return (hAsync(Host, { "aria-checked": itemAria, "aria-label": !href ? label : "", role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
22051
|
-
[CSS$
|
|
22052
|
-
[CSS$
|
|
22053
|
-
[`${CSS$
|
|
22054
|
-
[CSS$
|
|
22055
|
-
[CSS$
|
|
22056
|
-
[CSS$
|
|
22057
|
-
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$
|
|
22257
|
+
[CSS$V.container]: true,
|
|
22258
|
+
[CSS$V.containerLink]: !!href,
|
|
22259
|
+
[`${CSS$V.container}--${scale}`]: true,
|
|
22260
|
+
[CSS$V.containerMulti]: selectionMode === "multiple",
|
|
22261
|
+
[CSS$V.containerSingle]: selectionMode === "single",
|
|
22262
|
+
[CSS$V.containerNone]: selectionMode === "none",
|
|
22263
|
+
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$V.icon, icon: selectionMode === "multiple" ? "check" : "bullet-point", scale: getIconScale(this.scale) })) : null, contentEl)));
|
|
22058
22264
|
}
|
|
22059
22265
|
//--------------------------------------------------------------------------
|
|
22060
22266
|
//
|
|
@@ -22161,7 +22367,7 @@ class DropdownItem {
|
|
|
22161
22367
|
}; }
|
|
22162
22368
|
}
|
|
22163
22369
|
|
|
22164
|
-
const CSS$
|
|
22370
|
+
const CSS$U = {
|
|
22165
22371
|
button: "button",
|
|
22166
22372
|
};
|
|
22167
22373
|
const ICONS$d = {
|
|
@@ -22222,7 +22428,7 @@ class Fab {
|
|
|
22222
22428
|
render() {
|
|
22223
22429
|
const { appearance, kind, disabled, loading, scale, textEnabled, icon, label, text, iconFlipRtl, } = this;
|
|
22224
22430
|
const title = !textEnabled ? label || text || null : null;
|
|
22225
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$
|
|
22431
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$U.button, disabled: disabled, iconFlipRtl: iconFlipRtl ? "start" : null, iconStart: icon, kind: kind, label: label, loading: loading, round: true, scale: scale, title: title, type: "button", width: "auto",
|
|
22226
22432
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
22227
22433
|
ref: (buttonEl) => {
|
|
22228
22434
|
this.buttonEl = buttonEl;
|
|
@@ -22252,7 +22458,7 @@ class Fab {
|
|
|
22252
22458
|
}; }
|
|
22253
22459
|
}
|
|
22254
22460
|
|
|
22255
|
-
const CSS$
|
|
22461
|
+
const CSS$T = {
|
|
22256
22462
|
container: "container",
|
|
22257
22463
|
searchIcon: "search-icon",
|
|
22258
22464
|
};
|
|
@@ -22381,7 +22587,7 @@ class Filter {
|
|
|
22381
22587
|
// --------------------------------------------------------------------------
|
|
22382
22588
|
render() {
|
|
22383
22589
|
const { disabled, scale } = this;
|
|
22384
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$
|
|
22590
|
+
return (hAsync(Fragment, null, hAsync("div", { class: CSS$T.container }, hAsync("label", null, hAsync("calcite-input", { clearable: true, disabled: disabled, icon: ICONS$c.search, label: this.messages.label, messageOverrides: { clear: this.messages.clear }, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, scale: scale, type: "text", value: this.value,
|
|
22385
22591
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
22386
22592
|
ref: (el) => {
|
|
22387
22593
|
this.textInput = el;
|
|
@@ -22420,7 +22626,7 @@ class Filter {
|
|
|
22420
22626
|
}; }
|
|
22421
22627
|
}
|
|
22422
22628
|
|
|
22423
|
-
const CSS$
|
|
22629
|
+
const CSS$S = {
|
|
22424
22630
|
frame: "frame",
|
|
22425
22631
|
frameAdvancing: "frame--advancing",
|
|
22426
22632
|
frameRetreating: "frame--retreating",
|
|
@@ -22545,9 +22751,9 @@ class Flow {
|
|
|
22545
22751
|
render() {
|
|
22546
22752
|
const { flowDirection } = this;
|
|
22547
22753
|
const frameDirectionClasses = {
|
|
22548
|
-
[CSS$
|
|
22549
|
-
[CSS$
|
|
22550
|
-
[CSS$
|
|
22754
|
+
[CSS$S.frame]: true,
|
|
22755
|
+
[CSS$S.frameAdvancing]: flowDirection === "advancing",
|
|
22756
|
+
[CSS$S.frameRetreating]: flowDirection === "retreating",
|
|
22551
22757
|
};
|
|
22552
22758
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
22553
22759
|
}
|
|
@@ -22570,7 +22776,7 @@ class Flow {
|
|
|
22570
22776
|
}; }
|
|
22571
22777
|
}
|
|
22572
22778
|
|
|
22573
|
-
const CSS$
|
|
22779
|
+
const CSS$R = {
|
|
22574
22780
|
actionBarContainer: "action-bar-container",
|
|
22575
22781
|
backButton: "back-button",
|
|
22576
22782
|
container: "container",
|
|
@@ -22607,7 +22813,7 @@ const SLOTS$n = {
|
|
|
22607
22813
|
footerActions: "footer-actions",
|
|
22608
22814
|
};
|
|
22609
22815
|
|
|
22610
|
-
const CSS$
|
|
22816
|
+
const CSS$Q = {
|
|
22611
22817
|
backButton: "back-button",
|
|
22612
22818
|
};
|
|
22613
22819
|
const ICONS$a = {
|
|
@@ -22767,7 +22973,7 @@ class FlowItem {
|
|
|
22767
22973
|
const { showBackButton, backButtonClick, messages } = this;
|
|
22768
22974
|
const label = messages.back;
|
|
22769
22975
|
const icon = rtl ? ICONS$a.backRight : ICONS$a.backLeft;
|
|
22770
|
-
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$
|
|
22976
|
+
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$Q.backButton, icon: icon, key: "flow-back-button", onClick: backButtonClick, scale: "s", slot: "header-actions-start", text: label, title: label,
|
|
22771
22977
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
22772
22978
|
ref: this.setBackRef })) : null;
|
|
22773
22979
|
}
|
|
@@ -23034,7 +23240,7 @@ class Graph {
|
|
|
23034
23240
|
}; }
|
|
23035
23241
|
}
|
|
23036
23242
|
|
|
23037
|
-
const CSS$
|
|
23243
|
+
const CSS$P = {
|
|
23038
23244
|
handle: "handle",
|
|
23039
23245
|
handleActivated: "handle--activated",
|
|
23040
23246
|
};
|
|
@@ -23157,7 +23363,7 @@ class Handle {
|
|
|
23157
23363
|
render() {
|
|
23158
23364
|
return (
|
|
23159
23365
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
23160
|
-
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
23366
|
+
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$P.handle]: true, [CSS$P.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0", title: this.messages?.dragHandle,
|
|
23161
23367
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
23162
23368
|
ref: (el) => {
|
|
23163
23369
|
this.handleButton = el;
|
|
@@ -23196,7 +23402,7 @@ class Handle {
|
|
|
23196
23402
|
}; }
|
|
23197
23403
|
}
|
|
23198
23404
|
|
|
23199
|
-
const CSS$
|
|
23405
|
+
const CSS$O = {
|
|
23200
23406
|
icon: "icon",
|
|
23201
23407
|
flipRtl: "flip-rtl",
|
|
23202
23408
|
};
|
|
@@ -23244,7 +23450,7 @@ class Icon {
|
|
|
23244
23450
|
const semantic = !!textLabel;
|
|
23245
23451
|
const paths = [].concat(pathData || "");
|
|
23246
23452
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { "aria-hidden": "true", class: {
|
|
23247
|
-
[CSS$
|
|
23453
|
+
[CSS$O.flipRtl]: dir === "rtl" && flipRtl,
|
|
23248
23454
|
svg: true,
|
|
23249
23455
|
}, fill: "currentColor", height: "100%", viewBox: `0 0 ${size} ${size}`, width: "100%", xmlns: "http://www.w3.org/2000/svg" }, paths.map((path) => typeof path === "string" ? (hAsync("path", { d: path })) : (hAsync("path", { d: path.d, opacity: "opacity" in path ? path.opacity : 1 }))))));
|
|
23250
23456
|
}
|
|
@@ -23290,7 +23496,7 @@ class Icon {
|
|
|
23290
23496
|
}; }
|
|
23291
23497
|
}
|
|
23292
23498
|
|
|
23293
|
-
const CSS$
|
|
23499
|
+
const CSS$N = {
|
|
23294
23500
|
wrapper: "wrapper",
|
|
23295
23501
|
confirmChangesButton: "confirm-changes-button",
|
|
23296
23502
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -23440,16 +23646,16 @@ class InlineEditable {
|
|
|
23440
23646
|
updateHostInteraction(this);
|
|
23441
23647
|
}
|
|
23442
23648
|
render() {
|
|
23443
|
-
return (hAsync("div", { class: CSS$
|
|
23649
|
+
return (hAsync("div", { class: CSS$N.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, hAsync("div", { class: CSS$N.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$N.controlsWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$N.enableEditingButton, disabled: this.disabled, iconStart: "pencil", kind: "neutral", label: this.messages.enableEditing, onClick: this.enableEditingHandler, scale: this.scale, style: {
|
|
23444
23650
|
opacity: this.editingEnabled ? "0" : "1",
|
|
23445
23651
|
width: this.editingEnabled ? "0" : "inherit",
|
|
23446
23652
|
}, type: "button",
|
|
23447
23653
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
23448
23654
|
ref: (el) => (this.enableEditingButton = el) }), this.shouldShowControls && [
|
|
23449
|
-
hAsync("div", { class: CSS$
|
|
23655
|
+
hAsync("div", { class: CSS$N.cancelEditingButtonWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$N.cancelEditingButton, disabled: this.disabled, iconStart: "x", kind: "neutral", label: this.messages.cancelEditing, onClick: this.cancelEditingHandler, scale: this.scale, type: "button",
|
|
23450
23656
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
23451
23657
|
ref: (el) => (this.cancelEditingButton = el) })),
|
|
23452
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
23658
|
+
hAsync("calcite-button", { appearance: "solid", class: CSS$N.confirmChangesButton, disabled: this.disabled, iconStart: "check", kind: "brand", label: this.messages.confirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale, type: "button",
|
|
23453
23659
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
23454
23660
|
ref: (el) => (this.confirmEditingButton = el) }),
|
|
23455
23661
|
])));
|
|
@@ -23535,7 +23741,7 @@ class InlineEditable {
|
|
|
23535
23741
|
}; }
|
|
23536
23742
|
}
|
|
23537
23743
|
|
|
23538
|
-
const CSS$
|
|
23744
|
+
const CSS$M = {
|
|
23539
23745
|
loader: "loader",
|
|
23540
23746
|
clearButton: "clear-button",
|
|
23541
23747
|
editingEnabled: "editing-enabled",
|
|
@@ -24119,38 +24325,38 @@ class Input {
|
|
|
24119
24325
|
// --------------------------------------------------------------------------
|
|
24120
24326
|
render() {
|
|
24121
24327
|
const dir = getElementDir(this.el);
|
|
24122
|
-
const loader = (hAsync("div", { class: CSS$
|
|
24123
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
24124
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
24328
|
+
const loader = (hAsync("div", { class: CSS$M.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
24329
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$M.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })));
|
|
24330
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$M.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: getIconScale(this.scale) }));
|
|
24125
24331
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
24126
24332
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24127
|
-
[CSS$
|
|
24128
|
-
[CSS$
|
|
24333
|
+
[CSS$M.numberButtonItem]: true,
|
|
24334
|
+
[CSS$M.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24129
24335
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: getIconScale(this.scale) })));
|
|
24130
24336
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24131
|
-
[CSS$
|
|
24132
|
-
[CSS$
|
|
24337
|
+
[CSS$M.numberButtonItem]: true,
|
|
24338
|
+
[CSS$M.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24133
24339
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: getIconScale(this.scale) })));
|
|
24134
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
24135
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
24136
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
24340
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$M.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
24341
|
+
const prefixText = hAsync("div", { class: CSS$M.prefix }, this.prefixText);
|
|
24342
|
+
const suffixText = hAsync("div", { class: CSS$M.suffix }, this.suffixText);
|
|
24137
24343
|
const localeNumberInput = this.type === "number" ? (hAsync("input", { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, multiple: this.multiple, name: undefined, onBlur: this.inputBlurHandler, onFocus: this.inputFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputKeyUpHandler, pattern: this.pattern, placeholder: this.placeholder || "", readOnly: this.readOnly, type: "text", value: this.localizedValue,
|
|
24138
24344
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
24139
24345
|
ref: this.setChildNumberElRef })) : null;
|
|
24140
24346
|
const childEl = this.type !== "number"
|
|
24141
24347
|
? [
|
|
24142
24348
|
hAsync(this.childElType, { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
24143
|
-
[CSS$
|
|
24144
|
-
[CSS$
|
|
24349
|
+
[CSS$M.editingEnabled]: this.editingEnabled,
|
|
24350
|
+
[CSS$M.inlineChild]: !!this.inlineEditableEl,
|
|
24145
24351
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.inputMode, max: this.maxString, maxLength: this.maxLength, min: this.minString, minLength: this.minLength, multiple: this.multiple, name: this.name, onBlur: this.inputBlurHandler, onChange: this.inputChangeHandler, onFocus: this.inputFocusHandler, onInput: this.inputInputHandler, onKeyDown: this.inputKeyDownHandler, onKeyUp: this.inputKeyUpHandler, pattern: this.pattern, placeholder: this.placeholder || "", readOnly: this.readOnly, required: this.required ? true : null, step: this.step, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: this.type, value: this.value,
|
|
24146
24352
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
24147
24353
|
ref: this.setChildElRef }),
|
|
24148
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
24354
|
+
this.isTextarea ? (hAsync("div", { class: CSS$M.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: getIconScale(this.scale) }))) : null,
|
|
24149
24355
|
]
|
|
24150
24356
|
: null;
|
|
24151
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
24357
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$M.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24152
24358
|
? numberButtonsHorizontalDown
|
|
24153
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
24359
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$M.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$M.actionWrapper }, hAsync("slot", { name: SLOTS$l.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
24154
24360
|
? numberButtonsVertical
|
|
24155
24361
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24156
24362
|
? numberButtonsHorizontalUp
|
|
@@ -24225,7 +24431,7 @@ class Input {
|
|
|
24225
24431
|
}; }
|
|
24226
24432
|
}
|
|
24227
24433
|
|
|
24228
|
-
const CSS$
|
|
24434
|
+
const CSS$L = {
|
|
24229
24435
|
assistiveText: "assistive-text",
|
|
24230
24436
|
menu: "menu-container",
|
|
24231
24437
|
menuActive: "menu-container--active",
|
|
@@ -25712,9 +25918,9 @@ class InputDatePicker {
|
|
|
25712
25918
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
25713
25919
|
ref: this.setStartWrapper }, hAsync("calcite-input-text", { "aria-autocomplete": "none", "aria-controls": this.dialogId, "aria-describedby": this.placeholderTextId, "aria-expanded": toAriaBoolean(this.open), "aria-haspopup": "dialog", class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", onCalciteInputTextInput: this.calciteInternalInputInputHandler, onCalciteInternalInputTextBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputTextFocus: this.startInputFocus, onFocus: this.startEndInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, role: "combobox", scale: this.scale, status: this.status,
|
|
25714
25920
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
25715
|
-
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$
|
|
25716
|
-
[CSS$
|
|
25717
|
-
[CSS$
|
|
25921
|
+
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$L.assistiveText, id: this.placeholderTextId }, "Date Format: ", this.localeData?.placeholder)), hAsync("div", { "aria-hidden": toAriaBoolean(!this.open), "aria-label": messages.chooseDate, "aria-live": "polite", "aria-modal": "true", class: {
|
|
25922
|
+
[CSS$L.menu]: true,
|
|
25923
|
+
[CSS$L.menuActive]: this.open,
|
|
25718
25924
|
}, id: this.dialogId, role: "dialog",
|
|
25719
25925
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
25720
25926
|
ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
@@ -25736,7 +25942,7 @@ class InputDatePicker {
|
|
|
25736
25942
|
ref: this.setEndInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "end"))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
25737
25943
|
}
|
|
25738
25944
|
renderToggleIcon(open) {
|
|
25739
|
-
return (hAsync("span", { class: CSS$
|
|
25945
|
+
return (hAsync("span", { class: CSS$L.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: getIconScale(this.scale) })));
|
|
25740
25946
|
}
|
|
25741
25947
|
setReferenceEl() {
|
|
25742
25948
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -26002,7 +26208,7 @@ class InputMessage {
|
|
|
26002
26208
|
}; }
|
|
26003
26209
|
}
|
|
26004
26210
|
|
|
26005
|
-
const CSS$
|
|
26211
|
+
const CSS$K = {
|
|
26006
26212
|
loader: "loader",
|
|
26007
26213
|
clearButton: "clear-button",
|
|
26008
26214
|
editingEnabled: "editing-enabled",
|
|
@@ -26071,6 +26277,7 @@ class InputNumber {
|
|
|
26071
26277
|
}
|
|
26072
26278
|
};
|
|
26073
26279
|
this.inputNumberBlurHandler = () => {
|
|
26280
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
26074
26281
|
this.calciteInternalInputNumberBlur.emit();
|
|
26075
26282
|
this.emitChangeIfUserModified();
|
|
26076
26283
|
};
|
|
@@ -26520,27 +26727,27 @@ class InputNumber {
|
|
|
26520
26727
|
// --------------------------------------------------------------------------
|
|
26521
26728
|
render() {
|
|
26522
26729
|
const dir = getElementDir(this.el);
|
|
26523
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26524
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26525
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26730
|
+
const loader = (hAsync("div", { class: CSS$K.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26731
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$K.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })));
|
|
26732
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$K.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: getIconScale(this.scale) }));
|
|
26526
26733
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
26527
26734
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26528
|
-
[CSS$
|
|
26529
|
-
[CSS$
|
|
26735
|
+
[CSS$K.numberButtonItem]: true,
|
|
26736
|
+
[CSS$K.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26530
26737
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerOutHandler, onPointerUp: this.nudgeButtonPointerUpHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: getIconScale(this.scale) })));
|
|
26531
26738
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26532
|
-
[CSS$
|
|
26533
|
-
[CSS$
|
|
26739
|
+
[CSS$K.numberButtonItem]: true,
|
|
26740
|
+
[CSS$K.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26534
26741
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerOutHandler, onPointerUp: this.nudgeButtonPointerUpHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: getIconScale(this.scale) })));
|
|
26535
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
26536
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26537
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
26742
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$K.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
26743
|
+
const prefixText = hAsync("div", { class: CSS$K.prefix }, this.prefixText);
|
|
26744
|
+
const suffixText = hAsync("div", { class: CSS$K.suffix }, this.suffixText);
|
|
26538
26745
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.inputMode, key: "localized-input", maxLength: this.maxLength, minLength: this.minLength, name: undefined, onBlur: this.inputNumberBlurHandler, onFocus: this.inputNumberFocusHandler, onInput: this.inputNumberInputHandler, onKeyDown: this.inputNumberKeyDownHandler, onKeyUp: this.inputNumberKeyUpHandler, placeholder: this.placeholder || "", readOnly: this.readOnly, type: "text", value: this.localizedValue,
|
|
26539
26746
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
26540
26747
|
ref: this.setChildNumberElRef }));
|
|
26541
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26748
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$K.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26542
26749
|
? numberButtonsHorizontalDown
|
|
26543
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
26750
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$K.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$K.actionWrapper }, hAsync("slot", { name: SLOTS$k.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26544
26751
|
? numberButtonsHorizontalUp
|
|
26545
26752
|
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26546
26753
|
}
|
|
@@ -26608,7 +26815,7 @@ class InputNumber {
|
|
|
26608
26815
|
}; }
|
|
26609
26816
|
}
|
|
26610
26817
|
|
|
26611
|
-
const CSS$
|
|
26818
|
+
const CSS$J = {
|
|
26612
26819
|
loader: "loader",
|
|
26613
26820
|
clearButton: "clear-button",
|
|
26614
26821
|
editingEnabled: "editing-enabled",
|
|
@@ -26908,18 +27115,18 @@ class InputText {
|
|
|
26908
27115
|
// --------------------------------------------------------------------------
|
|
26909
27116
|
render() {
|
|
26910
27117
|
const dir = getElementDir(this.el);
|
|
26911
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26912
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26913
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26914
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26915
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
27118
|
+
const loader = (hAsync("div", { class: CSS$J.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
27119
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$J.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputTextValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })));
|
|
27120
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$J.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: getIconScale(this.scale) }));
|
|
27121
|
+
const prefixText = hAsync("div", { class: CSS$J.prefix }, this.prefixText);
|
|
27122
|
+
const suffixText = hAsync("div", { class: CSS$J.suffix }, this.suffixText);
|
|
26916
27123
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
26917
|
-
[CSS$
|
|
26918
|
-
[CSS$
|
|
27124
|
+
[CSS$J.editingEnabled]: this.editingEnabled,
|
|
27125
|
+
[CSS$J.inlineChild]: !!this.inlineEditableEl,
|
|
26919
27126
|
}, defaultValue: this.defaultValue, disabled: this.disabled ? true : null, enterKeyHint: this.enterKeyHint, inputMode: this.inputMode, maxLength: this.maxLength, minLength: this.minLength, name: this.name, onBlur: this.inputTextBlurHandler, onFocus: this.inputTextFocusHandler, onInput: this.inputTextInputHandler, onKeyDown: this.inputTextKeyDownHandler, pattern: this.pattern, placeholder: this.placeholder || "", readOnly: this.readOnly, required: this.required ? true : null, tabIndex: this.disabled || (this.inlineEditableEl && !this.editingEnabled) ? -1 : null, type: "text", value: this.value,
|
|
26920
27127
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
26921
27128
|
ref: this.setChildElRef }));
|
|
26922
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
27129
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$J.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$J.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$J.actionWrapper }, hAsync("slot", { name: SLOTS$j.action })), this.suffixText ? suffixText : null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26923
27130
|
}
|
|
26924
27131
|
static get assetsDirs() { return ["assets"]; }
|
|
26925
27132
|
get el() { return getElement(this); }
|
|
@@ -27235,7 +27442,7 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
27235
27442
|
return isoTimeString;
|
|
27236
27443
|
}
|
|
27237
27444
|
|
|
27238
|
-
const CSS$
|
|
27445
|
+
const CSS$I = {
|
|
27239
27446
|
toggleIcon: "toggle-icon",
|
|
27240
27447
|
};
|
|
27241
27448
|
|
|
@@ -29034,7 +29241,7 @@ class InputTimePicker {
|
|
|
29034
29241
|
ref: this.setCalciteTimePickerEl })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
29035
29242
|
}
|
|
29036
29243
|
renderToggleIcon(open) {
|
|
29037
|
-
return (hAsync("span", { class: CSS$
|
|
29244
|
+
return (hAsync("span", { class: CSS$I.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: getIconScale(this.scale) })));
|
|
29038
29245
|
}
|
|
29039
29246
|
static get delegatesFocus() { return true; }
|
|
29040
29247
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -29405,7 +29612,7 @@ class InputTimeZone {
|
|
|
29405
29612
|
}; }
|
|
29406
29613
|
}
|
|
29407
29614
|
|
|
29408
|
-
const CSS$
|
|
29615
|
+
const CSS$H = {
|
|
29409
29616
|
container: "container",
|
|
29410
29617
|
};
|
|
29411
29618
|
|
|
@@ -29445,7 +29652,7 @@ class Label {
|
|
|
29445
29652
|
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
29446
29653
|
}
|
|
29447
29654
|
render() {
|
|
29448
|
-
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$
|
|
29655
|
+
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$H.container }, hAsync("slot", null))));
|
|
29449
29656
|
}
|
|
29450
29657
|
get el() { return getElement(this); }
|
|
29451
29658
|
static get style() { return labelCss; }
|
|
@@ -29580,7 +29787,7 @@ class Link {
|
|
|
29580
29787
|
}; }
|
|
29581
29788
|
}
|
|
29582
29789
|
|
|
29583
|
-
const CSS$
|
|
29790
|
+
const CSS$G = {
|
|
29584
29791
|
container: "container",
|
|
29585
29792
|
containerBorderSelected: "container--border-selected",
|
|
29586
29793
|
containerBorderUnselected: "container--border-unselected",
|
|
@@ -29649,7 +29856,7 @@ function getDepth(element, includeGroup = false) {
|
|
|
29649
29856
|
}
|
|
29650
29857
|
}
|
|
29651
29858
|
|
|
29652
|
-
const CSS$
|
|
29859
|
+
const CSS$F = {
|
|
29653
29860
|
container: "container",
|
|
29654
29861
|
table: "table",
|
|
29655
29862
|
scrim: "scrim",
|
|
@@ -32685,7 +32892,7 @@ Sortable.mount(new AutoScrollPlugin());
|
|
|
32685
32892
|
Sortable.mount(Remove, Revert);
|
|
32686
32893
|
|
|
32687
32894
|
const sortableComponentSet = new Set();
|
|
32688
|
-
const CSS$
|
|
32895
|
+
const CSS$E = {
|
|
32689
32896
|
ghostClass: "calcite-sortable--ghost",
|
|
32690
32897
|
chosenClass: "calcite-sortable--chosen",
|
|
32691
32898
|
dragClass: "calcite-sortable--drag",
|
|
@@ -32702,7 +32909,7 @@ function connectSortableComponent(component) {
|
|
|
32702
32909
|
const { group, handleSelector: handle, dragSelector: draggable } = component;
|
|
32703
32910
|
component.sortable = Sortable.create(component.el, {
|
|
32704
32911
|
dataIdAttr,
|
|
32705
|
-
...CSS$
|
|
32912
|
+
...CSS$E,
|
|
32706
32913
|
...(!!draggable && { draggable }),
|
|
32707
32914
|
...(!!group && {
|
|
32708
32915
|
group: {
|
|
@@ -32756,7 +32963,7 @@ function onDragEnd() {
|
|
|
32756
32963
|
Array.from(sortableComponentSet).forEach((component) => component.onDragEnd());
|
|
32757
32964
|
}
|
|
32758
32965
|
|
|
32759
|
-
const CSS$
|
|
32966
|
+
const CSS$D = {
|
|
32760
32967
|
container: "container",
|
|
32761
32968
|
actionsStart: "actions-start",
|
|
32762
32969
|
contentStart: "content-start",
|
|
@@ -33110,9 +33317,9 @@ class List$1 {
|
|
|
33110
33317
|
// --------------------------------------------------------------------------
|
|
33111
33318
|
render() {
|
|
33112
33319
|
const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText, hasFilterActionsStart, hasFilterActionsEnd, } = this;
|
|
33113
|
-
return (hAsync("div", { class: CSS$
|
|
33320
|
+
return (hAsync("div", { class: CSS$F.container }, this.dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: CSS$F.assistiveText }, this.assistiveText)) : null, loading ? hAsync("calcite-scrim", { class: CSS$F.scrim, loading: loading }) : null, hAsync("table", { "aria-busy": toAriaBoolean(loading), "aria-label": label || "", class: CSS$F.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? (hAsync("thead", null, hAsync("tr", { class: { [CSS$F.sticky]: true } }, hAsync("th", { colSpan: MAX_COLUMNS }, hAsync("calcite-stack", { class: CSS$F.stack }, hAsync("slot", { name: SLOTS$h.filterActionsStart, onSlotchange: this.handleFilterActionsStartSlotChange, slot: SLOTS$g.actionsStart }), hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: this.handleFilterChange, placeholder: filterPlaceholder, value: filterText,
|
|
33114
33321
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
33115
|
-
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$h.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS$g.actionsEnd })))))) : null, hAsync("tbody", { class: CSS$
|
|
33322
|
+
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$h.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS$g.actionsEnd })))))) : null, hAsync("tbody", { class: CSS$F.tableContainer }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })))));
|
|
33116
33323
|
}
|
|
33117
33324
|
// --------------------------------------------------------------------------
|
|
33118
33325
|
//
|
|
@@ -33537,57 +33744,65 @@ class ListItem {
|
|
|
33537
33744
|
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
33538
33745
|
return null;
|
|
33539
33746
|
}
|
|
33540
|
-
return (hAsync("td", { class: CSS$
|
|
33747
|
+
return (hAsync("td", { class: CSS$G.selectionContainer, key: "selection-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: selected
|
|
33541
33748
|
? selectionMode === "multiple"
|
|
33542
33749
|
? ICONS$8.selectedMultiple
|
|
33543
33750
|
: ICONS$8.selectedSingle
|
|
33544
33751
|
: ICONS$8.unselected, scale: "s" })));
|
|
33545
33752
|
}
|
|
33546
33753
|
renderDragHandle() {
|
|
33547
|
-
return this.dragHandle ? (hAsync("td", { class: CSS$
|
|
33754
|
+
return this.dragHandle ? (hAsync("td", { class: CSS$G.dragContainer, key: "drag-handle-container" }, hAsync("calcite-handle", { label: this.label, setPosition: this.setPosition, setSize: this.setSize }))) : null;
|
|
33548
33755
|
}
|
|
33549
33756
|
renderOpen() {
|
|
33550
33757
|
const { el, open, openable, parentListEl } = this;
|
|
33551
33758
|
const dir = getElementDir(el);
|
|
33552
|
-
|
|
33759
|
+
const icon = openable
|
|
33760
|
+
? open
|
|
33761
|
+
? ICONS$8.open
|
|
33762
|
+
: dir === "rtl"
|
|
33763
|
+
? ICONS$8.closedRTL
|
|
33764
|
+
: ICONS$8.closedLTR
|
|
33765
|
+
: ICONS$8.blank;
|
|
33766
|
+
const clickHandler = openable ? this.toggleOpen : this.itemClicked;
|
|
33767
|
+
return openable || parentListEl?.openable ? (hAsync("td", { class: CSS$G.openContainer, key: "open-container", onClick: clickHandler }, hAsync("calcite-icon", { icon: icon, key: icon, scale: "s" }))) : null;
|
|
33553
33768
|
}
|
|
33554
33769
|
renderActionsStart() {
|
|
33555
33770
|
const { label, hasActionsStart } = this;
|
|
33556
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
33771
|
+
return (hAsync("td", { "aria-label": label, class: CSS$G.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", role: "gridcell",
|
|
33557
33772
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
33558
33773
|
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$i.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
33559
33774
|
}
|
|
33560
33775
|
renderActionsEnd() {
|
|
33561
33776
|
const { label, hasActionsEnd, closable, messages } = this;
|
|
33562
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
33777
|
+
return (hAsync("td", { "aria-label": label, class: CSS$G.actionsEnd, hidden: !(hasActionsEnd || closable), key: "actions-end-container", role: "gridcell",
|
|
33563
33778
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
33564
33779
|
ref: (el) => (this.actionsEndEl = el) }, hAsync("slot", { name: SLOTS$i.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), closable ? (hAsync("calcite-action", { appearance: "transparent", icon: ICONS$8.close, key: "close-action", label: messages.close, onClick: this.closeClickHandler, text: messages.close })) : null));
|
|
33565
33780
|
}
|
|
33566
33781
|
renderContentStart() {
|
|
33567
33782
|
const { hasContentStart } = this;
|
|
33568
|
-
return (hAsync("div", { class: CSS$
|
|
33783
|
+
return (hAsync("div", { class: CSS$G.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$i.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
33569
33784
|
}
|
|
33570
33785
|
renderCustomContent() {
|
|
33571
33786
|
const { hasCustomContent } = this;
|
|
33572
|
-
return (hAsync("div", { class: CSS$
|
|
33787
|
+
return (hAsync("div", { class: CSS$G.customContent, hidden: !hasCustomContent }, hAsync("slot", { name: SLOTS$i.content, onSlotchange: this.handleContentSlotChange })));
|
|
33573
33788
|
}
|
|
33574
33789
|
renderContentEnd() {
|
|
33575
33790
|
const { hasContentEnd } = this;
|
|
33576
|
-
return (hAsync("div", { class: CSS$
|
|
33791
|
+
return (hAsync("div", { class: CSS$G.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$i.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
33577
33792
|
}
|
|
33578
33793
|
renderContentBottom() {
|
|
33579
33794
|
const { hasContentBottom, visualLevel } = this;
|
|
33580
|
-
return (hAsync("div", { class: CSS$
|
|
33795
|
+
return (hAsync("div", { class: CSS$G.contentBottom, hidden: !hasContentBottom, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, hAsync("slot", { name: SLOTS$i.contentBottom, onSlotchange: this.handleContentBottomSlotChange })));
|
|
33581
33796
|
}
|
|
33582
33797
|
renderDefaultContainer() {
|
|
33583
33798
|
return (hAsync("div", { class: {
|
|
33584
|
-
[CSS$
|
|
33585
|
-
[CSS$
|
|
33799
|
+
[CSS$G.nestedContainer]: true,
|
|
33800
|
+
[CSS$G.nestedContainerHidden]: this.openable && !this.open,
|
|
33586
33801
|
} }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange, ref: (el) => (this.defaultSlotEl = el) })));
|
|
33587
33802
|
}
|
|
33588
33803
|
renderContentProperties() {
|
|
33589
33804
|
const { label, description, hasCustomContent } = this;
|
|
33590
|
-
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$
|
|
33805
|
+
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$G.content, key: "content" }, label ? (hAsync("div", { class: CSS$G.label, key: "label" }, label)) : null, description ? (hAsync("div", { class: CSS$G.description, key: "description" }, description)) : null)) : null;
|
|
33591
33806
|
}
|
|
33592
33807
|
renderContentContainer() {
|
|
33593
33808
|
const { description, label, selectionMode, hasCustomContent } = this;
|
|
@@ -33599,9 +33814,9 @@ class ListItem {
|
|
|
33599
33814
|
this.renderContentEnd(),
|
|
33600
33815
|
];
|
|
33601
33816
|
return (hAsync("td", { "aria-label": label, class: {
|
|
33602
|
-
[CSS$
|
|
33603
|
-
[CSS$
|
|
33604
|
-
[CSS$
|
|
33817
|
+
[CSS$G.contentContainer]: true,
|
|
33818
|
+
[CSS$G.contentContainerSelectable]: selectionMode !== "none",
|
|
33819
|
+
[CSS$G.contentContainerHasCenterContent]: hasCenterContent,
|
|
33605
33820
|
}, key: "content-container", onClick: this.itemClicked, role: "gridcell",
|
|
33606
33821
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
33607
33822
|
ref: (el) => (this.contentEl = el) }, content));
|
|
@@ -33612,9 +33827,9 @@ class ListItem {
|
|
|
33612
33827
|
const borderSelected = showBorder && selected;
|
|
33613
33828
|
const borderUnselected = showBorder && !selected;
|
|
33614
33829
|
return (hAsync(Host, null, hAsync("tr", { "aria-expanded": openable ? toAriaBoolean(open) : null, "aria-label": label, "aria-level": level, "aria-posinset": setPosition, "aria-selected": toAriaBoolean(selected), "aria-setsize": setSize, class: {
|
|
33615
|
-
[CSS$
|
|
33616
|
-
[CSS$
|
|
33617
|
-
[CSS$
|
|
33830
|
+
[CSS$G.container]: true,
|
|
33831
|
+
[CSS$G.containerBorderSelected]: borderSelected,
|
|
33832
|
+
[CSS$G.containerBorderUnselected]: borderUnselected,
|
|
33618
33833
|
}, hidden: closed, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` }, tabIndex: active ? 0 : -1,
|
|
33619
33834
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
33620
33835
|
ref: (el) => (this.containerEl = el) }, this.renderDragHandle(), this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), this.renderContentBottom(), this.renderDefaultContainer()));
|
|
@@ -33707,7 +33922,7 @@ class ListItem {
|
|
|
33707
33922
|
}; }
|
|
33708
33923
|
}
|
|
33709
33924
|
|
|
33710
|
-
const CSS$
|
|
33925
|
+
const CSS$C = {
|
|
33711
33926
|
container: "container",
|
|
33712
33927
|
heading: "heading",
|
|
33713
33928
|
};
|
|
@@ -33756,7 +33971,7 @@ class ListItemGroup {
|
|
|
33756
33971
|
// --------------------------------------------------------------------------
|
|
33757
33972
|
render() {
|
|
33758
33973
|
const { heading, visualLevel } = this;
|
|
33759
|
-
return (hAsync(Host, null, hAsync("tr", { class: CSS$
|
|
33974
|
+
return (hAsync(Host, null, hAsync("tr", { class: CSS$C.container, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, hAsync("td", { class: CSS$C.heading, colSpan: MAX_COLUMNS }, heading)), hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })));
|
|
33760
33975
|
}
|
|
33761
33976
|
get el() { return getElement(this); }
|
|
33762
33977
|
static get style() { return listItemGroupCss; }
|
|
@@ -33856,7 +34071,7 @@ class Loader {
|
|
|
33856
34071
|
}; }
|
|
33857
34072
|
}
|
|
33858
34073
|
|
|
33859
|
-
const CSS$
|
|
34074
|
+
const CSS$B = {
|
|
33860
34075
|
container: "container",
|
|
33861
34076
|
fill: "fill",
|
|
33862
34077
|
stepLine: "step-line",
|
|
@@ -34006,16 +34221,16 @@ class Meter {
|
|
|
34006
34221
|
const aboveHighest = value >= highest;
|
|
34007
34222
|
const belowHighest = value < highest;
|
|
34008
34223
|
if (!value || (!low && belowHighest) || belowLowest) {
|
|
34009
|
-
return CSS$
|
|
34224
|
+
return CSS$B.success;
|
|
34010
34225
|
}
|
|
34011
34226
|
else if (aboveLowest && belowHighest) {
|
|
34012
|
-
return CSS$
|
|
34227
|
+
return CSS$B.warning;
|
|
34013
34228
|
}
|
|
34014
34229
|
else if (aboveHighest) {
|
|
34015
|
-
return CSS$
|
|
34230
|
+
return CSS$B.danger;
|
|
34016
34231
|
}
|
|
34017
34232
|
else {
|
|
34018
|
-
return CSS$
|
|
34233
|
+
return CSS$B.success;
|
|
34019
34234
|
}
|
|
34020
34235
|
}
|
|
34021
34236
|
intersects(el1, el2) {
|
|
@@ -34029,7 +34244,7 @@ class Meter {
|
|
|
34029
34244
|
const minHighOverlap = this.intersects(minLabelEl, highLabelEl);
|
|
34030
34245
|
const minLowOverlap = this.intersects(minLabelEl, lowLabelEl);
|
|
34031
34246
|
const minMaxOverlap = this.intersects(minLabelEl, maxLabelEl);
|
|
34032
|
-
const hiddenClass = CSS$
|
|
34247
|
+
const hiddenClass = CSS$B.labelHidden;
|
|
34033
34248
|
if (lowLabelEl) {
|
|
34034
34249
|
if (minLowOverlap || lowMaxOverlap || lowHighOverlap) {
|
|
34035
34250
|
lowLabelEl.classList.add(hiddenClass);
|
|
@@ -34078,26 +34293,26 @@ class Meter {
|
|
|
34078
34293
|
renderMeterFill() {
|
|
34079
34294
|
const { currentPercent, fillType } = this;
|
|
34080
34295
|
const kindClass = this.getMeterKindCssClass();
|
|
34081
|
-
return (hAsync("div", { class: { [CSS$
|
|
34296
|
+
return (hAsync("div", { class: { [CSS$B.fill]: true, [kindClass]: fillType !== "single" }, style: { width: `${currentPercent}%` } }));
|
|
34082
34297
|
}
|
|
34083
34298
|
renderRangeLine(position) {
|
|
34084
34299
|
const style = { insetInlineStart: `${position}%` };
|
|
34085
|
-
return hAsync("div", { class: CSS$
|
|
34300
|
+
return hAsync("div", { class: CSS$B.stepLine, style: style });
|
|
34086
34301
|
}
|
|
34087
34302
|
renderValueLabel() {
|
|
34088
34303
|
const { currentPercent, valueLabelType, unitLabel, value } = this;
|
|
34089
34304
|
const label = this.formatLabel(valueLabelType === "percent" ? currentPercent / 100 : value || 0, valueLabelType);
|
|
34090
|
-
return (hAsync("div", { class: { [CSS$
|
|
34305
|
+
return (hAsync("div", { class: { [CSS$B.label]: true, [CSS$B.labelValue]: true }, key: "low-label-line",
|
|
34091
34306
|
// eslint-disable-next-line react/jsx-sort-props
|
|
34092
|
-
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
34307
|
+
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$B.unitLabel }, "\u00A0", unitLabel))));
|
|
34093
34308
|
}
|
|
34094
34309
|
renderMinLabel() {
|
|
34095
34310
|
const { rangeLabelType, min, minPercent, unitLabel } = this;
|
|
34096
34311
|
const style = { insetInlineStart: `${minPercent}%` };
|
|
34097
34312
|
const labelMin = this.formatLabel(rangeLabelType === "percent" ? minPercent : min, rangeLabelType);
|
|
34098
|
-
return (hAsync("div", { class: { [CSS$
|
|
34313
|
+
return (hAsync("div", { class: { [CSS$B.label]: true, [CSS$B.labelRange]: true }, key: "min-label-line", style: style,
|
|
34099
34314
|
// eslint-disable-next-line react/jsx-sort-props
|
|
34100
|
-
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
34315
|
+
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$B.unitLabel }, "\u00A0", unitLabel))));
|
|
34101
34316
|
}
|
|
34102
34317
|
renderLowLabel() {
|
|
34103
34318
|
const { rangeLabelType, low, lowPercent, highPercent, labelFlipProximity } = this;
|
|
@@ -34107,7 +34322,7 @@ class Meter {
|
|
|
34107
34322
|
const styleDefault = { insetInlineStart: `${lowPercent}%` };
|
|
34108
34323
|
const styleFlipped = { insetInlineEnd: `${100 - lowPercent}%` };
|
|
34109
34324
|
const style = (highPercent - lowPercent) / 100 < labelFlipProximity ? styleFlipped : styleDefault;
|
|
34110
|
-
return (hAsync("div", { class: { [CSS$
|
|
34325
|
+
return (hAsync("div", { class: { [CSS$B.label]: true, [CSS$B.labelRange]: true }, key: "low-label-line", style: style,
|
|
34111
34326
|
// eslint-disable-next-line react/jsx-sort-props
|
|
34112
34327
|
ref: (el) => (this.lowLabelEl = el) }, label));
|
|
34113
34328
|
}
|
|
@@ -34119,7 +34334,7 @@ class Meter {
|
|
|
34119
34334
|
const styleDefault = { insetInlineStart: `${highPercent}%` };
|
|
34120
34335
|
const styleFlipped = { insetInlineEnd: `${100 - highPercent}%` };
|
|
34121
34336
|
const style = highPercent / 100 >= labelFlipMax ? styleFlipped : styleDefault;
|
|
34122
|
-
return (hAsync("div", { class: { [CSS$
|
|
34337
|
+
return (hAsync("div", { class: { [CSS$B.label]: true, [CSS$B.labelRange]: true }, key: "high-label-line", style: style,
|
|
34123
34338
|
// eslint-disable-next-line react/jsx-sort-props
|
|
34124
34339
|
ref: (el) => (this.highLabelEl = el) }, label));
|
|
34125
34340
|
}
|
|
@@ -34127,7 +34342,7 @@ class Meter {
|
|
|
34127
34342
|
const { rangeLabelType, max, maxPercent } = this;
|
|
34128
34343
|
const style = { insetInlineEnd: `${100 - maxPercent}%` };
|
|
34129
34344
|
const labelMax = this.formatLabel(rangeLabelType === "percent" ? maxPercent / 100 : max, rangeLabelType);
|
|
34130
|
-
return (hAsync("div", { class: { [CSS$
|
|
34345
|
+
return (hAsync("div", { class: { [CSS$B.label]: true, [CSS$B.labelRange]: true }, key: "max-label-line", style: style,
|
|
34131
34346
|
// eslint-disable-next-line react/jsx-sort-props
|
|
34132
34347
|
ref: (el) => (this.maxLabelEl = el) }, labelMax));
|
|
34133
34348
|
}
|
|
@@ -34141,9 +34356,9 @@ class Meter {
|
|
|
34141
34356
|
? textUnitLabel
|
|
34142
34357
|
: undefined;
|
|
34143
34358
|
return (hAsync(Host, null, hAsync("div", { "aria-label": label, "aria-valuemax": rangeLabelType === "percent" ? maxPercent : max, "aria-valuemin": rangeLabelType === "percent" ? minPercent : min, "aria-valuenow": valueLabelType === "percent" ? currentPercent : value, "aria-valuetext": valueText, class: {
|
|
34144
|
-
[CSS$
|
|
34145
|
-
[CSS$
|
|
34146
|
-
[CSS$
|
|
34359
|
+
[CSS$B.container]: true,
|
|
34360
|
+
[CSS$B.stepsVisible]: rangeLabels,
|
|
34361
|
+
[CSS$B.valueVisible]: valueLabel,
|
|
34147
34362
|
[appearance]: appearance !== "outline-fill",
|
|
34148
34363
|
}, role: "meter",
|
|
34149
34364
|
// eslint-disable-next-line react/jsx-sort-props
|
|
@@ -34199,7 +34414,7 @@ class Meter {
|
|
|
34199
34414
|
}; }
|
|
34200
34415
|
}
|
|
34201
34416
|
|
|
34202
|
-
const CSS$
|
|
34417
|
+
const CSS$A = {
|
|
34203
34418
|
modal: "modal",
|
|
34204
34419
|
title: "title",
|
|
34205
34420
|
header: "header",
|
|
@@ -34389,50 +34604,50 @@ class Modal {
|
|
|
34389
34604
|
}
|
|
34390
34605
|
render() {
|
|
34391
34606
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
34392
|
-
[CSS$
|
|
34393
|
-
[CSS$
|
|
34394
|
-
[CSS$
|
|
34395
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
34396
|
-
[CSS$
|
|
34607
|
+
[CSS$A.container]: true,
|
|
34608
|
+
[CSS$A.containerOpen]: this.opened,
|
|
34609
|
+
[CSS$A.slottedInShell]: this.slottedInShell,
|
|
34610
|
+
} }, hAsync("calcite-scrim", { class: CSS$A.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: {
|
|
34611
|
+
[CSS$A.modal]: true,
|
|
34397
34612
|
},
|
|
34398
34613
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34399
|
-
ref: this.setTransitionEl }, hAsync("div", { class: CSS$
|
|
34400
|
-
[CSS$
|
|
34401
|
-
[CSS$
|
|
34614
|
+
ref: this.setTransitionEl }, hAsync("div", { class: CSS$A.header }, this.renderCloseButton(), hAsync("header", { class: CSS$A.title }, hAsync("slot", { name: CSS$A.header }))), this.renderContentTop(), hAsync("div", { class: {
|
|
34615
|
+
[CSS$A.content]: true,
|
|
34616
|
+
[CSS$A.contentNoFooter]: !this.hasFooter,
|
|
34402
34617
|
},
|
|
34403
34618
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34404
34619
|
ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$f.content })), this.renderContentBottom(), this.renderFooter()))));
|
|
34405
34620
|
}
|
|
34406
34621
|
renderFooter() {
|
|
34407
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$
|
|
34622
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$A.footer, key: "footer" }, hAsync("span", { class: CSS$A.back }, hAsync("slot", { name: SLOTS$f.back })), hAsync("span", { class: CSS$A.secondary }, hAsync("slot", { name: SLOTS$f.secondary })), hAsync("span", { class: CSS$A.primary }, hAsync("slot", { name: SLOTS$f.primary })))) : null;
|
|
34408
34623
|
}
|
|
34409
34624
|
renderContentTop() {
|
|
34410
|
-
return (hAsync("div", { class: CSS$
|
|
34625
|
+
return (hAsync("div", { class: CSS$A.contentTop, hidden: !this.hasContentTop }, hAsync("slot", { name: SLOTS$f.contentTop, onSlotchange: this.contentTopSlotChangeHandler })));
|
|
34411
34626
|
}
|
|
34412
34627
|
renderContentBottom() {
|
|
34413
|
-
return (hAsync("div", { class: CSS$
|
|
34628
|
+
return (hAsync("div", { class: CSS$A.contentBottom, hidden: !this.hasContentBottom }, hAsync("slot", { name: SLOTS$f.contentBottom, onSlotchange: this.contentBottomSlotChangeHandler })));
|
|
34414
34629
|
}
|
|
34415
34630
|
renderCloseButton() {
|
|
34416
|
-
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34631
|
+
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$A.close, key: "button", onClick: this.handleCloseClick, title: this.messages.close,
|
|
34417
34632
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34418
34633
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$7.close, scale: getIconScale(this.scale) }))) : null;
|
|
34419
34634
|
}
|
|
34420
34635
|
renderStyle() {
|
|
34421
34636
|
if (!this.fullscreen && (this.cssWidth || this.cssHeight)) {
|
|
34422
|
-
return (hAsync("style", null, `.${CSS$
|
|
34637
|
+
return (hAsync("style", null, `.${CSS$A.container} {
|
|
34423
34638
|
${this.docked && this.cssWidth ? `align-items: center !important;` : ""}
|
|
34424
34639
|
}
|
|
34425
|
-
.${CSS$
|
|
34640
|
+
.${CSS$A.modal} {
|
|
34426
34641
|
block-size: ${this.cssHeight ? this.cssHeight : "auto"} !important;
|
|
34427
34642
|
${this.cssWidth ? `inline-size: ${this.cssWidth} !important;` : ""}
|
|
34428
34643
|
${this.cssWidth ? `max-inline-size: ${this.cssWidth} !important;` : ""}
|
|
34429
34644
|
${this.docked ? `border-radius: var(--calcite-border-radius) !important;` : ""}
|
|
34430
34645
|
}
|
|
34431
34646
|
@media screen and (max-width: ${this.cssWidth}) {
|
|
34432
|
-
.${CSS$
|
|
34647
|
+
.${CSS$A.container} {
|
|
34433
34648
|
${this.docked ? `align-items: flex-end !important;` : ""}
|
|
34434
34649
|
}
|
|
34435
|
-
.${CSS$
|
|
34650
|
+
.${CSS$A.modal} {
|
|
34436
34651
|
max-block-size: 100% !important;
|
|
34437
34652
|
inline-size: 100% !important;
|
|
34438
34653
|
max-inline-size: 100% !important;
|
|
@@ -34499,20 +34714,20 @@ class Modal {
|
|
|
34499
34714
|
}
|
|
34500
34715
|
}
|
|
34501
34716
|
onBeforeOpen() {
|
|
34502
|
-
this.transitionEl.classList.add(CSS$
|
|
34717
|
+
this.transitionEl.classList.add(CSS$A.openingActive);
|
|
34503
34718
|
this.calciteModalBeforeOpen.emit();
|
|
34504
34719
|
}
|
|
34505
34720
|
onOpen() {
|
|
34506
|
-
this.transitionEl.classList.remove(CSS$
|
|
34721
|
+
this.transitionEl.classList.remove(CSS$A.openingIdle, CSS$A.openingActive);
|
|
34507
34722
|
this.calciteModalOpen.emit();
|
|
34508
34723
|
activateFocusTrap(this);
|
|
34509
34724
|
}
|
|
34510
34725
|
onBeforeClose() {
|
|
34511
|
-
this.transitionEl.classList.add(CSS$
|
|
34726
|
+
this.transitionEl.classList.add(CSS$A.closingActive);
|
|
34512
34727
|
this.calciteModalBeforeClose.emit();
|
|
34513
34728
|
}
|
|
34514
34729
|
onClose() {
|
|
34515
|
-
this.transitionEl.classList.remove(CSS$
|
|
34730
|
+
this.transitionEl.classList.remove(CSS$A.closingIdle, CSS$A.closingActive);
|
|
34516
34731
|
this.calciteModalClose.emit();
|
|
34517
34732
|
deactivateFocusTrap(this);
|
|
34518
34733
|
}
|
|
@@ -34530,10 +34745,10 @@ class Modal {
|
|
|
34530
34745
|
handleOpenedChange(value) {
|
|
34531
34746
|
onToggleOpenCloseComponent(this);
|
|
34532
34747
|
if (value) {
|
|
34533
|
-
this.transitionEl?.classList.add(CSS$
|
|
34748
|
+
this.transitionEl?.classList.add(CSS$A.openingIdle);
|
|
34534
34749
|
}
|
|
34535
34750
|
else {
|
|
34536
|
-
this.transitionEl?.classList.add(CSS$
|
|
34751
|
+
this.transitionEl?.classList.add(CSS$A.closingIdle);
|
|
34537
34752
|
}
|
|
34538
34753
|
}
|
|
34539
34754
|
openModal() {
|
|
@@ -34604,7 +34819,7 @@ const SLOTS$e = {
|
|
|
34604
34819
|
link: "link",
|
|
34605
34820
|
actionsEnd: "actions-end",
|
|
34606
34821
|
};
|
|
34607
|
-
const CSS$
|
|
34822
|
+
const CSS$z = {
|
|
34608
34823
|
actionsEnd: "actions-end",
|
|
34609
34824
|
close: "notice-close",
|
|
34610
34825
|
container: "container",
|
|
@@ -34694,13 +34909,13 @@ class Notice {
|
|
|
34694
34909
|
}
|
|
34695
34910
|
render() {
|
|
34696
34911
|
const { el } = this;
|
|
34697
|
-
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34912
|
+
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$z.close, onClick: this.close,
|
|
34698
34913
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34699
34914
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })));
|
|
34700
34915
|
const hasActionEnd = getSlotted(el, SLOTS$e.actionsEnd);
|
|
34701
|
-
return (hAsync("div", { class: CSS$
|
|
34916
|
+
return (hAsync("div", { class: CSS$z.container,
|
|
34702
34917
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
34703
|
-
ref: this.setTransitionEl }, this.requestedIcon ? (hAsync("div", { class: CSS$
|
|
34918
|
+
ref: this.setTransitionEl }, this.requestedIcon ? (hAsync("div", { class: CSS$z.icon }, hAsync("calcite-icon", { flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: getIconScale(this.scale) }))) : null, hAsync("div", { class: CSS$z.content }, hAsync("slot", { name: SLOTS$e.title }), hAsync("slot", { name: SLOTS$e.message }), hAsync("slot", { name: SLOTS$e.link })), hasActionEnd ? (hAsync("div", { class: CSS$z.actionsEnd }, hAsync("slot", { name: SLOTS$e.actionsEnd }))) : null, this.closable ? closeButton : null));
|
|
34704
34919
|
}
|
|
34705
34920
|
//--------------------------------------------------------------------------
|
|
34706
34921
|
//
|
|
@@ -34893,7 +35108,7 @@ class OptionGroup {
|
|
|
34893
35108
|
}; }
|
|
34894
35109
|
}
|
|
34895
35110
|
|
|
34896
|
-
const CSS$
|
|
35111
|
+
const CSS$y = {
|
|
34897
35112
|
page: "page",
|
|
34898
35113
|
selected: "selected",
|
|
34899
35114
|
chevron: "chevron",
|
|
@@ -34907,6 +35122,22 @@ const ICONS$6 = {
|
|
|
34907
35122
|
last: "chevron-end",
|
|
34908
35123
|
};
|
|
34909
35124
|
|
|
35125
|
+
/**
|
|
35126
|
+
* A breakpoints lookup object.
|
|
35127
|
+
*/
|
|
35128
|
+
const breakpoints = {
|
|
35129
|
+
width: {
|
|
35130
|
+
large: cssLengthToNumber(CoreBreakpointWidthDefaultLg),
|
|
35131
|
+
medium: cssLengthToNumber(CoreBreakpointWidthDefaultMd),
|
|
35132
|
+
small: cssLengthToNumber(CoreBreakpointWidthDefaultSm),
|
|
35133
|
+
xsmall: cssLengthToNumber(CoreBreakpointWidthDefaultXs),
|
|
35134
|
+
xxsmall: cssLengthToNumber(CoreBreakpointWidthDefaultXxs),
|
|
35135
|
+
},
|
|
35136
|
+
};
|
|
35137
|
+
function cssLengthToNumber(length) {
|
|
35138
|
+
return parseInt(length);
|
|
35139
|
+
}
|
|
35140
|
+
|
|
34910
35141
|
const paginationCss = "/*!@:host*/.sc-calcite-pagination-h{display:flex;writing-mode:horizontal-tb}/*!@:host([scale=s]) .chevron, :host([scale=s]) .page, :host([scale=s]) .ellipsis*/[scale=s].sc-calcite-pagination-h .chevron.sc-calcite-pagination,[scale=s].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=s].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:1.5rem;padding-inline:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;min-inline-size:1.5rem}/*!@:host([scale=m]) .chevron, :host([scale=m]) .page, :host([scale=m]) .ellipsis*/[scale=m].sc-calcite-pagination-h .chevron.sc-calcite-pagination,[scale=m].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=m].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:2rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;min-inline-size:2rem}/*!@:host([scale=l]) .chevron, :host([scale=l]) .page, :host([scale=l]) .ellipsis*/[scale=l].sc-calcite-pagination-h .chevron.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-inline-size:2.75rem}/*!@:host([scale=l]) .chevron*/[scale=l].sc-calcite-pagination-h .chevron.sc-calcite-pagination{padding-inline:0.625rem}/*!@:host([scale=l]) .page, :host([scale=l]) .ellipsis*/[scale=l].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{padding-inline:0.75rem}/*!@:host button*/.sc-calcite-pagination-h button.sc-calcite-pagination{outline-color:transparent}/*!@:host button:focus*/.sc-calcite-pagination-h button.sc-calcite-pagination:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.chevron,\n.page,\n.ellipsis*/.chevron.sc-calcite-pagination,.page.sc-calcite-pagination,.ellipsis.sc-calcite-pagination{margin:0px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-style:none;--tw-border-opacity:0;background-color:transparent;padding:0px;vertical-align:baseline;font-family:inherit;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-ui-text-3)}/*!@.chevron,\n.page*/.chevron.sc-calcite-pagination,.page.sc-calcite-pagination{cursor:pointer;border-block:2px solid transparent}/*!@.chevron:hover,\n.page:hover*/.chevron.sc-calcite-pagination:hover,.page.sc-calcite-pagination:hover{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.page:hover*/.page.sc-calcite-pagination:hover{border-block-end-color:var(--calcite-ui-border-2)}/*!@.page.selected*/.page.selected.sc-calcite-pagination{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);border-block-end-color:var(--calcite-ui-brand)}/*!@.chevron:hover*/.chevron.sc-calcite-pagination:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-brand)}/*!@.chevron:active*/.chevron.sc-calcite-pagination:active{background-color:var(--calcite-ui-foreground-3)}/*!@.chevron.disabled*/.chevron.disabled.sc-calcite-pagination{pointer-events:none;background-color:transparent}/*!@.chevron.disabled > calcite-icon*/.chevron.disabled.sc-calcite-pagination>calcite-icon.sc-calcite-pagination{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([hidden])*/[hidden].sc-calcite-pagination-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-pagination{display:none}";
|
|
34911
35142
|
|
|
34912
35143
|
const firstAndLastPageCount = 2;
|
|
@@ -35077,7 +35308,7 @@ class Pagination {
|
|
|
35077
35308
|
//
|
|
35078
35309
|
//--------------------------------------------------------------------------
|
|
35079
35310
|
renderEllipsis(type) {
|
|
35080
|
-
return (hAsync("span", { class: CSS$
|
|
35311
|
+
return (hAsync("span", { class: CSS$y.ellipsis, "data-test-ellipsis": type, key: type }, "\u2026"));
|
|
35081
35312
|
}
|
|
35082
35313
|
renderItems() {
|
|
35083
35314
|
const { totalItems, pageSize, startItem, maxItems, totalPages, lastStartItem, isXXSmall } = this;
|
|
@@ -35146,40 +35377,40 @@ class Pagination {
|
|
|
35146
35377
|
const displayedPage = numberStringFormatter.localize(page.toString());
|
|
35147
35378
|
const selected = start === this.startItem;
|
|
35148
35379
|
return (hAsync("button", { "aria-current": selected ? "page" : "false", class: {
|
|
35149
|
-
[CSS$
|
|
35150
|
-
[CSS$
|
|
35380
|
+
[CSS$y.page]: true,
|
|
35381
|
+
[CSS$y.selected]: selected,
|
|
35151
35382
|
}, onClick: this.handlePageClick, value: start }, displayedPage));
|
|
35152
35383
|
}
|
|
35153
35384
|
renderPreviousChevron() {
|
|
35154
35385
|
const { pageSize, startItem, messages } = this;
|
|
35155
35386
|
const disabled = pageSize === 1 ? startItem <= pageSize : startItem < pageSize;
|
|
35156
35387
|
return (hAsync("button", { "aria-label": messages.previous, class: {
|
|
35157
|
-
[CSS$
|
|
35158
|
-
[CSS$
|
|
35388
|
+
[CSS$y.chevron]: true,
|
|
35389
|
+
[CSS$y.disabled]: disabled,
|
|
35159
35390
|
}, "data-test-chevron": "previous", disabled: disabled, key: "previous", onClick: this.previousClicked }, hAsync("calcite-icon", { flipRtl: true, icon: ICONS$6.previous, scale: getIconScale(this.scale) })));
|
|
35160
35391
|
}
|
|
35161
35392
|
renderNextChevron() {
|
|
35162
35393
|
const { totalItems, pageSize, startItem, messages } = this;
|
|
35163
35394
|
const disabled = pageSize === 1 ? startItem + pageSize > totalItems : startItem + pageSize > totalItems;
|
|
35164
35395
|
return (hAsync("button", { "aria-label": messages.next, class: {
|
|
35165
|
-
[CSS$
|
|
35166
|
-
[CSS$
|
|
35396
|
+
[CSS$y.chevron]: true,
|
|
35397
|
+
[CSS$y.disabled]: disabled,
|
|
35167
35398
|
}, "data-test-chevron": "next", disabled: disabled, key: "next-button", onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: ICONS$6.next, scale: getIconScale(this.scale) })));
|
|
35168
35399
|
}
|
|
35169
35400
|
renderFirstChevron() {
|
|
35170
35401
|
const { messages, startItem, isXXSmall } = this;
|
|
35171
35402
|
const disabled = startItem === 1;
|
|
35172
35403
|
return isXXSmall ? (hAsync("button", { "aria-label": messages.first, class: {
|
|
35173
|
-
[CSS$
|
|
35174
|
-
[CSS$
|
|
35404
|
+
[CSS$y.chevron]: true,
|
|
35405
|
+
[CSS$y.disabled]: disabled,
|
|
35175
35406
|
}, disabled: disabled, key: "first-button", onClick: this.firstClicked }, hAsync("calcite-icon", { flipRtl: true, icon: ICONS$6.first, scale: getIconScale(this.scale) }))) : null;
|
|
35176
35407
|
}
|
|
35177
35408
|
renderLastChevron() {
|
|
35178
35409
|
const { messages, startItem, isXXSmall, lastStartItem } = this;
|
|
35179
35410
|
const disabled = startItem === lastStartItem;
|
|
35180
35411
|
return isXXSmall ? (hAsync("button", { "aria-label": messages.last, class: {
|
|
35181
|
-
[CSS$
|
|
35182
|
-
[CSS$
|
|
35412
|
+
[CSS$y.chevron]: true,
|
|
35413
|
+
[CSS$y.disabled]: disabled,
|
|
35183
35414
|
}, disabled: disabled, key: "last-button", onClick: this.lastClicked }, hAsync("calcite-icon", { flipRtl: true, icon: ICONS$6.last, scale: getIconScale(this.scale) }))) : null;
|
|
35184
35415
|
}
|
|
35185
35416
|
render() {
|
|
@@ -35404,19 +35635,19 @@ class Panel {
|
|
|
35404
35635
|
// --------------------------------------------------------------------------
|
|
35405
35636
|
renderHeaderContent() {
|
|
35406
35637
|
const { heading, headingLevel, description, hasHeaderContent } = this;
|
|
35407
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
35408
|
-
const descriptionNode = description ? hAsync("span", { class: CSS$
|
|
35409
|
-
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$
|
|
35638
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$R.heading, level: headingLevel }, heading)) : null;
|
|
35639
|
+
const descriptionNode = description ? hAsync("span", { class: CSS$R.description }, description) : null;
|
|
35640
|
+
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$R.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
35410
35641
|
}
|
|
35411
35642
|
renderActionBar() {
|
|
35412
|
-
return (hAsync("div", { class: CSS$
|
|
35643
|
+
return (hAsync("div", { class: CSS$R.actionBarContainer, hidden: !this.hasActionBar }, hAsync("slot", { name: SLOTS$n.actionBar, onSlotchange: this.handleActionBarSlotChange })));
|
|
35413
35644
|
}
|
|
35414
35645
|
renderHeaderSlottedContent() {
|
|
35415
|
-
return (hAsync("div", { class: CSS$
|
|
35646
|
+
return (hAsync("div", { class: CSS$R.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$n.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
|
35416
35647
|
}
|
|
35417
35648
|
renderHeaderStartActions() {
|
|
35418
35649
|
const { hasStartActions } = this;
|
|
35419
|
-
return (hAsync("div", { class: { [CSS$
|
|
35650
|
+
return (hAsync("div", { class: { [CSS$R.headerActionsStart]: true, [CSS$R.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, hAsync("slot", { name: SLOTS$n.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange })));
|
|
35420
35651
|
}
|
|
35421
35652
|
renderHeaderActionsEnd() {
|
|
35422
35653
|
const { hasEndActions, messages, closable, collapsed, collapseDirection, collapsible, hasMenuItems, } = this;
|
|
@@ -35429,7 +35660,7 @@ class Panel {
|
|
|
35429
35660
|
const closeNode = closable ? (hAsync("calcite-action", { "aria-label": close, "data-test": "close", icon: ICONS$b.close, onClick: this.close, text: close, title: close })) : null;
|
|
35430
35661
|
const slotNode = (hAsync("slot", { name: SLOTS$n.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
35431
35662
|
const showContainer = hasEndActions || collapseNode || closeNode || hasMenuItems;
|
|
35432
|
-
return (hAsync("div", { class: { [CSS$
|
|
35663
|
+
return (hAsync("div", { class: { [CSS$R.headerActionsEnd]: true, [CSS$R.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, this.renderMenu(), collapseNode, closeNode));
|
|
35433
35664
|
}
|
|
35434
35665
|
renderMenu() {
|
|
35435
35666
|
const { hasMenuItems, messages, menuOpen } = this;
|
|
@@ -35446,24 +35677,24 @@ class Panel {
|
|
|
35446
35677
|
closable ||
|
|
35447
35678
|
hasMenuItems;
|
|
35448
35679
|
this.showHeaderContent = showHeaderContent;
|
|
35449
|
-
return (hAsync("header", { class: CSS$
|
|
35680
|
+
return (hAsync("header", { class: CSS$R.header, hidden: !(showHeaderContent || hasActionBar) }, hAsync("div", { class: { [CSS$R.headerContainer]: true, [CSS$R.headerContainerBorderEnd]: hasActionBar }, hidden: !showHeaderContent }, this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd()), this.renderActionBar()));
|
|
35450
35681
|
}
|
|
35451
35682
|
renderFooterNode() {
|
|
35452
35683
|
const { hasFooterContent, hasFooterActions } = this;
|
|
35453
35684
|
const showFooter = hasFooterContent || hasFooterActions;
|
|
35454
|
-
return (hAsync("footer", { class: CSS$
|
|
35685
|
+
return (hAsync("footer", { class: CSS$R.footer, hidden: !showFooter }, hAsync("slot", { key: "footer-slot", name: SLOTS$n.footer, onSlotchange: this.handleFooterSlotChange }), hAsync("slot", { key: "footer-actions-slot", name: SLOTS$n.footerActions, onSlotchange: this.handleFooterActionsSlotChange })));
|
|
35455
35686
|
}
|
|
35456
35687
|
renderContent() {
|
|
35457
|
-
return (hAsync("div", { class: CSS$
|
|
35688
|
+
return (hAsync("div", { class: CSS$R.contentWrapper, hidden: this.collapsible && this.collapsed, onScroll: this.panelScrollHandler,
|
|
35458
35689
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
35459
35690
|
ref: this.setPanelScrollEl }, hAsync("slot", null), this.renderFab()));
|
|
35460
35691
|
}
|
|
35461
35692
|
renderFab() {
|
|
35462
|
-
return (hAsync("div", { class: CSS$
|
|
35693
|
+
return (hAsync("div", { class: CSS$R.fabContainer, hidden: !this.hasFab }, hAsync("slot", { name: SLOTS$n.fab, onSlotchange: this.handleFabSlotChange })));
|
|
35463
35694
|
}
|
|
35464
35695
|
render() {
|
|
35465
35696
|
const { loading, panelKeyDownHandler, closed, closable } = this;
|
|
35466
|
-
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$
|
|
35697
|
+
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$R.container, hidden: closed, onKeyDown: panelKeyDownHandler, tabIndex: closable ? 0 : -1,
|
|
35467
35698
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
35468
35699
|
ref: this.setContainerRef }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
35469
35700
|
return (hAsync(Fragment, null, loading ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
@@ -35512,7 +35743,7 @@ class Panel {
|
|
|
35512
35743
|
}; }
|
|
35513
35744
|
}
|
|
35514
35745
|
|
|
35515
|
-
const CSS$
|
|
35746
|
+
const CSS$x = {
|
|
35516
35747
|
sticky: "sticky-pos",
|
|
35517
35748
|
};
|
|
35518
35749
|
var ICON_TYPES$1;
|
|
@@ -35525,7 +35756,7 @@ const SLOTS$d = {
|
|
|
35525
35756
|
menuActions: "menu-actions",
|
|
35526
35757
|
};
|
|
35527
35758
|
|
|
35528
|
-
const CSS$
|
|
35759
|
+
const CSS$w = {
|
|
35529
35760
|
heading: "heading",
|
|
35530
35761
|
container: "container",
|
|
35531
35762
|
indented: "container--indented",
|
|
@@ -35851,7 +36082,7 @@ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handle
|
|
|
35851
36082
|
dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: "assistive-text",
|
|
35852
36083
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
35853
36084
|
ref: storeAssistiveEl })) : null,
|
|
35854
|
-
hAsync("header", { class: { [CSS$
|
|
36085
|
+
hAsync("header", { class: { [CSS$x.sticky]: true } },
|
|
35855
36086
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilterEvent, placeholder: filterPlaceholder, value: filterText,
|
|
35856
36087
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
35857
36088
|
ref: setFilterEl })) : null,
|
|
@@ -36042,14 +36273,14 @@ class PickListGroup {
|
|
|
36042
36273
|
const { el, groupTitle, headingLevel } = this;
|
|
36043
36274
|
const hasParentItem = getSlotted(el, SLOTS$c.parentItem) !== null;
|
|
36044
36275
|
const sectionClasses = {
|
|
36045
|
-
[CSS$
|
|
36046
|
-
[CSS$
|
|
36276
|
+
[CSS$w.container]: true,
|
|
36277
|
+
[CSS$w.indented]: hasParentItem,
|
|
36047
36278
|
};
|
|
36048
36279
|
const title = groupTitle;
|
|
36049
36280
|
const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
|
|
36050
36281
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
36051
36282
|
const level = headingLevel || relativeLevel;
|
|
36052
|
-
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$
|
|
36283
|
+
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$w.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$c.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
|
|
36053
36284
|
}
|
|
36054
36285
|
get el() { return getElement(this); }
|
|
36055
36286
|
static get style() { return pickListGroupCss; }
|
|
@@ -36066,7 +36297,7 @@ class PickListGroup {
|
|
|
36066
36297
|
}; }
|
|
36067
36298
|
}
|
|
36068
36299
|
|
|
36069
|
-
const CSS$
|
|
36300
|
+
const CSS$v = {
|
|
36070
36301
|
actions: "actions",
|
|
36071
36302
|
actionsEnd: "actions--end",
|
|
36072
36303
|
actionsStart: "actions--start",
|
|
@@ -36228,28 +36459,28 @@ class PickListItem {
|
|
|
36228
36459
|
return null;
|
|
36229
36460
|
}
|
|
36230
36461
|
return (hAsync("span", { class: {
|
|
36231
|
-
[CSS$
|
|
36232
|
-
[CSS$
|
|
36462
|
+
[CSS$v.icon]: true,
|
|
36463
|
+
[CSS$v.iconDot]: icon === ICON_TYPES$1.circle,
|
|
36233
36464
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? (hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS$5.checked, scale: "s" })) : null));
|
|
36234
36465
|
}
|
|
36235
36466
|
renderRemoveAction() {
|
|
36236
|
-
return this.removable ? (hAsync("calcite-action", { class: CSS$
|
|
36467
|
+
return this.removable ? (hAsync("calcite-action", { class: CSS$v.remove, icon: ICONS$5.remove, onClick: this.removeClickHandler, slot: SLOTS$b.actionsEnd, text: this.messages.remove })) : null;
|
|
36237
36468
|
}
|
|
36238
36469
|
renderActionsStart() {
|
|
36239
36470
|
const { el } = this;
|
|
36240
36471
|
const hasActionsStart = getSlotted(el, SLOTS$b.actionsStart);
|
|
36241
|
-
return hasActionsStart ? (hAsync("div", { class: { [CSS$
|
|
36472
|
+
return hasActionsStart ? (hAsync("div", { class: { [CSS$v.actions]: true, [CSS$v.actionsStart]: true } }, hAsync("slot", { name: SLOTS$b.actionsStart }))) : null;
|
|
36242
36473
|
}
|
|
36243
36474
|
renderActionsEnd() {
|
|
36244
36475
|
const { el, removable } = this;
|
|
36245
36476
|
const hasActionsEnd = getSlotted(el, SLOTS$b.actionsEnd);
|
|
36246
|
-
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$
|
|
36477
|
+
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$v.actions]: true, [CSS$v.actionsEnd]: true } }, hAsync("slot", { name: SLOTS$b.actionsEnd }), this.renderRemoveAction())) : null;
|
|
36247
36478
|
}
|
|
36248
36479
|
render() {
|
|
36249
36480
|
const { description, label } = this;
|
|
36250
|
-
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$
|
|
36481
|
+
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$v.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, tabIndex: 0,
|
|
36251
36482
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
36252
|
-
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$
|
|
36483
|
+
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$v.textContainer, role: "menuitemcheckbox" }, hAsync("span", { class: CSS$v.title }, label), description ? hAsync("span", { class: CSS$v.description }, description) : null)), this.renderActionsEnd()));
|
|
36253
36484
|
}
|
|
36254
36485
|
static get assetsDirs() { return ["assets"]; }
|
|
36255
36486
|
get el() { return getElement(this); }
|
|
@@ -36292,7 +36523,7 @@ class PickListItem {
|
|
|
36292
36523
|
}; }
|
|
36293
36524
|
}
|
|
36294
36525
|
|
|
36295
|
-
const CSS$
|
|
36526
|
+
const CSS$u = {
|
|
36296
36527
|
container: "container",
|
|
36297
36528
|
imageContainer: "image-container",
|
|
36298
36529
|
closeButtonContainer: "close-button-container",
|
|
@@ -36386,7 +36617,7 @@ class PopoverManager {
|
|
|
36386
36617
|
}
|
|
36387
36618
|
}
|
|
36388
36619
|
|
|
36389
|
-
const CSS$
|
|
36620
|
+
const CSS$t = {
|
|
36390
36621
|
arrow: "calcite-floating-ui-arrow",
|
|
36391
36622
|
arrowStroke: "calcite-floating-ui-arrow__stroke",
|
|
36392
36623
|
};
|
|
@@ -36416,10 +36647,10 @@ const FloatingArrow = ({ floatingLayout, key, ref, }) => {
|
|
|
36416
36647
|
` L${width - svgX},${height}` +
|
|
36417
36648
|
` Q${svgX},${height} ${svgX},${height}` +
|
|
36418
36649
|
" Z";
|
|
36419
|
-
return (hAsync("svg", { "aria-hidden": "true", class: CSS$
|
|
36650
|
+
return (hAsync("svg", { "aria-hidden": "true", class: CSS$t.arrow, height: width, key: key, viewBox: `0 0 ${width} ${width + (!isVertical ? strokeWidth : 0)}`, width: width + (isVertical ? strokeWidth : 0),
|
|
36420
36651
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
36421
36652
|
ref: ref },
|
|
36422
|
-
strokeWidth > 0 && (hAsync("path", { class: CSS$
|
|
36653
|
+
strokeWidth > 0 && (hAsync("path", { class: CSS$t.arrowStroke, d: dValue, fill: "none", "stroke-width": strokeWidth + 1 })),
|
|
36423
36654
|
hAsync("path", { d: dValue, stroke: "none" })));
|
|
36424
36655
|
};
|
|
36425
36656
|
|
|
@@ -36671,14 +36902,14 @@ class Popover {
|
|
|
36671
36902
|
// --------------------------------------------------------------------------
|
|
36672
36903
|
renderCloseButton() {
|
|
36673
36904
|
const { messages, closable } = this;
|
|
36674
|
-
return closable ? (hAsync("div", { class: CSS$
|
|
36905
|
+
return closable ? (hAsync("div", { class: CSS$u.closeButtonContainer, key: CSS$u.closeButtonContainer }, hAsync("calcite-action", { appearance: "transparent", class: CSS$u.closeButton, onClick: this.hide, scale: this.scale, text: messages.close,
|
|
36675
36906
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
36676
36907
|
ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl) }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })))) : null;
|
|
36677
36908
|
}
|
|
36678
36909
|
renderHeader() {
|
|
36679
36910
|
const { heading, headingLevel } = this;
|
|
36680
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
36681
|
-
return headingNode ? (hAsync("div", { class: CSS$
|
|
36911
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$u.heading, level: headingLevel }, heading)) : null;
|
|
36912
|
+
return headingNode ? (hAsync("div", { class: CSS$u.header, key: CSS$u.header }, headingNode, this.renderCloseButton())) : null;
|
|
36682
36913
|
}
|
|
36683
36914
|
render() {
|
|
36684
36915
|
const { effectiveReferenceElement, heading, label, open, pointerDisabled, floatingLayout } = this;
|
|
@@ -36693,9 +36924,9 @@ class Popover {
|
|
|
36693
36924
|
},
|
|
36694
36925
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
36695
36926
|
ref: this.setTransitionEl }, arrowNode, hAsync("div", { class: {
|
|
36696
|
-
[CSS$
|
|
36697
|
-
[CSS$
|
|
36698
|
-
} }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
36927
|
+
[CSS$u.hasHeader]: !!heading,
|
|
36928
|
+
[CSS$u.container]: true,
|
|
36929
|
+
} }, this.renderHeader(), hAsync("div", { class: CSS$u.content }, hAsync("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
36699
36930
|
}
|
|
36700
36931
|
static get assetsDirs() { return ["assets"]; }
|
|
36701
36932
|
get el() { return getElement(this); }
|
|
@@ -36789,7 +37020,7 @@ class Progress {
|
|
|
36789
37020
|
}; }
|
|
36790
37021
|
}
|
|
36791
37022
|
|
|
36792
|
-
const CSS$
|
|
37023
|
+
const CSS$s = {
|
|
36793
37024
|
container: "container",
|
|
36794
37025
|
};
|
|
36795
37026
|
|
|
@@ -37066,7 +37297,7 @@ class RadioButton {
|
|
|
37066
37297
|
// --------------------------------------------------------------------------
|
|
37067
37298
|
render() {
|
|
37068
37299
|
const tabIndex = this.getTabIndex();
|
|
37069
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$
|
|
37300
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$s.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, role: "radio", tabIndex: tabIndex,
|
|
37070
37301
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
37071
37302
|
ref: this.setContainerEl }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
37072
37303
|
}
|
|
@@ -37493,7 +37724,7 @@ class Rating {
|
|
|
37493
37724
|
}; }
|
|
37494
37725
|
}
|
|
37495
37726
|
|
|
37496
|
-
const CSS$
|
|
37727
|
+
const CSS$r = {
|
|
37497
37728
|
scrim: "scrim",
|
|
37498
37729
|
content: "content",
|
|
37499
37730
|
};
|
|
@@ -37563,9 +37794,9 @@ class Scrim {
|
|
|
37563
37794
|
// --------------------------------------------------------------------------
|
|
37564
37795
|
render() {
|
|
37565
37796
|
const { hasContent, loading, messages } = this;
|
|
37566
|
-
return (hAsync("div", { class: CSS$
|
|
37797
|
+
return (hAsync("div", { class: CSS$r.scrim }, loading ? (hAsync("calcite-loader", { label: messages.loading, scale: this.loaderScale,
|
|
37567
37798
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
37568
|
-
ref: this.storeLoaderEl })) : null, hAsync("div", { class: CSS$
|
|
37799
|
+
ref: this.storeLoaderEl })) : null, hAsync("div", { class: CSS$r.content, hidden: !hasContent }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
37569
37800
|
}
|
|
37570
37801
|
getScale(size) {
|
|
37571
37802
|
if (size < BREAKPOINTS.s) {
|
|
@@ -37840,7 +38071,7 @@ class SegmentedControl {
|
|
|
37840
38071
|
const SLOTS$a = {
|
|
37841
38072
|
input: "input",
|
|
37842
38073
|
};
|
|
37843
|
-
const CSS$
|
|
38074
|
+
const CSS$q = {
|
|
37844
38075
|
segmentedControlItemIcon: "segmented-control-item-icon",
|
|
37845
38076
|
};
|
|
37846
38077
|
|
|
@@ -37869,8 +38100,8 @@ class SegmentedControlItem {
|
|
|
37869
38100
|
//--------------------------------------------------------------------------
|
|
37870
38101
|
render() {
|
|
37871
38102
|
const { appearance, checked, layout, scale, value } = this;
|
|
37872
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
37873
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
38103
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$q.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
38104
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$q.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
37874
38105
|
return (hAsync(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, hAsync("label", { class: {
|
|
37875
38106
|
"label--scale-s": scale === "s",
|
|
37876
38107
|
"label--scale-m": scale === "m",
|
|
@@ -37904,7 +38135,7 @@ class SegmentedControlItem {
|
|
|
37904
38135
|
}; }
|
|
37905
38136
|
}
|
|
37906
38137
|
|
|
37907
|
-
const CSS$
|
|
38138
|
+
const CSS$p = {
|
|
37908
38139
|
icon: "icon",
|
|
37909
38140
|
iconContainer: "icon-container",
|
|
37910
38141
|
select: "select",
|
|
@@ -38091,10 +38322,10 @@ class Select {
|
|
|
38091
38322
|
//
|
|
38092
38323
|
//--------------------------------------------------------------------------
|
|
38093
38324
|
renderChevron() {
|
|
38094
|
-
return (hAsync("div", { class: CSS$
|
|
38325
|
+
return (hAsync("div", { class: CSS$p.iconContainer }, hAsync("calcite-icon", { class: CSS$p.icon, icon: "chevron-down", scale: getIconScale(this.scale) })));
|
|
38095
38326
|
}
|
|
38096
38327
|
render() {
|
|
38097
|
-
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$
|
|
38328
|
+
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$p.select, disabled: this.disabled, onChange: this.handleInternalSelectChange,
|
|
38098
38329
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
38099
38330
|
ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
38100
38331
|
}
|
|
@@ -38125,7 +38356,7 @@ class Select {
|
|
|
38125
38356
|
}; }
|
|
38126
38357
|
}
|
|
38127
38358
|
|
|
38128
|
-
const CSS$
|
|
38359
|
+
const CSS$o = {
|
|
38129
38360
|
scrim: "scrim",
|
|
38130
38361
|
container: "container",
|
|
38131
38362
|
containerOpen: "container--open",
|
|
@@ -38243,12 +38474,12 @@ class Sheet {
|
|
|
38243
38474
|
render() {
|
|
38244
38475
|
const dir = getElementDir(this.el);
|
|
38245
38476
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-label": this.label, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
38246
|
-
[CSS$
|
|
38247
|
-
[CSS$
|
|
38248
|
-
[CSS$
|
|
38477
|
+
[CSS$o.container]: true,
|
|
38478
|
+
[CSS$o.containerOpen]: this.opened,
|
|
38479
|
+
[CSS$o.containerSlottedInShell]: this.slottedInShell,
|
|
38249
38480
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
38250
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
38251
|
-
[CSS$
|
|
38481
|
+
} }, hAsync("calcite-scrim", { class: CSS$o.scrim, onClick: this.handleOutsideClose }), hAsync("div", { class: {
|
|
38482
|
+
[CSS$o.content]: true,
|
|
38252
38483
|
},
|
|
38253
38484
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
38254
38485
|
ref: this.setTransitionEl }, hAsync("slot", null)))));
|
|
@@ -38349,7 +38580,7 @@ class Sheet {
|
|
|
38349
38580
|
}; }
|
|
38350
38581
|
}
|
|
38351
38582
|
|
|
38352
|
-
const CSS$
|
|
38583
|
+
const CSS$n = {
|
|
38353
38584
|
main: "main",
|
|
38354
38585
|
content: "content",
|
|
38355
38586
|
contentBehind: "content--behind",
|
|
@@ -38451,7 +38682,7 @@ class Shell {
|
|
|
38451
38682
|
return (hAsync("div", { hidden: !this.hasHeader }, hAsync("slot", { key: "header", name: SLOTS$9.header, onSlotchange: this.handleHeaderSlotChange })));
|
|
38452
38683
|
}
|
|
38453
38684
|
renderFooter() {
|
|
38454
|
-
return (hAsync("div", { class: CSS$
|
|
38685
|
+
return (hAsync("div", { class: CSS$n.footer, hidden: !this.hasFooter, key: "footer" }, hAsync("slot", { name: SLOTS$9.footer, onSlotchange: this.handleFooterSlotChange })));
|
|
38455
38686
|
}
|
|
38456
38687
|
renderAlerts() {
|
|
38457
38688
|
return (hAsync("div", { hidden: !this.hasAlerts }, hAsync("slot", { key: "alerts", name: SLOTS$9.alerts, onSlotchange: this.handleAlertsSlotChange })));
|
|
@@ -38471,21 +38702,21 @@ class Shell {
|
|
|
38471
38702
|
const content = !!this.contentBehind
|
|
38472
38703
|
? [
|
|
38473
38704
|
hAsync("div", { class: {
|
|
38474
|
-
[CSS$
|
|
38475
|
-
[CSS$
|
|
38705
|
+
[CSS$n.content]: true,
|
|
38706
|
+
[CSS$n.contentBehind]: true,
|
|
38476
38707
|
}, key: contentContainerKey }, defaultSlotNode),
|
|
38477
|
-
hAsync("div", { class: CSS$
|
|
38708
|
+
hAsync("div", { class: CSS$n.contentBehindCenterContent }, panelTopSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
38478
38709
|
]
|
|
38479
38710
|
: [
|
|
38480
|
-
hAsync("div", { class: CSS$
|
|
38711
|
+
hAsync("div", { class: CSS$n.content, key: contentContainerKey }, panelTopSlotNode, defaultSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
38481
38712
|
];
|
|
38482
38713
|
return content;
|
|
38483
38714
|
}
|
|
38484
38715
|
renderMain() {
|
|
38485
|
-
return (hAsync("div", { class: CSS$
|
|
38716
|
+
return (hAsync("div", { class: CSS$n.main }, hAsync("slot", { name: SLOTS$9.panelStart }), this.renderContent(), hAsync("slot", { name: SLOTS$9.panelEnd })));
|
|
38486
38717
|
}
|
|
38487
38718
|
renderPositionedSlots() {
|
|
38488
|
-
return (hAsync("div", { class: CSS$
|
|
38719
|
+
return (hAsync("div", { class: CSS$n.positionedSlotWrapper }, this.renderAlerts(), this.renderModals(), this.renderSheets()));
|
|
38489
38720
|
}
|
|
38490
38721
|
render() {
|
|
38491
38722
|
return (hAsync(Fragment, null, this.renderHeader(), this.renderMain(), this.renderFooter(), this.renderPositionedSlots()));
|
|
@@ -38509,7 +38740,7 @@ class Shell {
|
|
|
38509
38740
|
}; }
|
|
38510
38741
|
}
|
|
38511
38742
|
|
|
38512
|
-
const CSS$
|
|
38743
|
+
const CSS$m = {
|
|
38513
38744
|
actionBarContainer: "action-bar-container",
|
|
38514
38745
|
content: "content",
|
|
38515
38746
|
};
|
|
@@ -38548,9 +38779,9 @@ class ShellCenterRow {
|
|
|
38548
38779
|
// --------------------------------------------------------------------------
|
|
38549
38780
|
render() {
|
|
38550
38781
|
const { el } = this;
|
|
38551
|
-
const contentNode = (hAsync("div", { class: CSS$
|
|
38782
|
+
const contentNode = (hAsync("div", { class: CSS$m.content }, hAsync("slot", null)));
|
|
38552
38783
|
const actionBar = getSlotted(el, SLOTS$8.actionBar);
|
|
38553
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$
|
|
38784
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$m.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$8.actionBar }))) : null;
|
|
38554
38785
|
const children = [actionBarNode, contentNode];
|
|
38555
38786
|
if (actionBar?.position === "end") {
|
|
38556
38787
|
children.reverse();
|
|
@@ -38573,7 +38804,7 @@ class ShellCenterRow {
|
|
|
38573
38804
|
}; }
|
|
38574
38805
|
}
|
|
38575
38806
|
|
|
38576
|
-
const CSS$
|
|
38807
|
+
const CSS$l = {
|
|
38577
38808
|
container: "container",
|
|
38578
38809
|
content: "content",
|
|
38579
38810
|
contentHeader: "content__header",
|
|
@@ -38836,7 +39067,7 @@ class ShellPanel {
|
|
|
38836
39067
|
//
|
|
38837
39068
|
// --------------------------------------------------------------------------
|
|
38838
39069
|
renderHeader() {
|
|
38839
|
-
return (hAsync("div", { class: CSS$
|
|
39070
|
+
return (hAsync("div", { class: CSS$l.contentHeader, hidden: !this.hasHeader, key: "header" }, hAsync("slot", { name: SLOTS$7.header, onSlotchange: this.handleHeaderSlotChange })));
|
|
38840
39071
|
}
|
|
38841
39072
|
render() {
|
|
38842
39073
|
const { collapsed, position, initialContentWidth, initialContentHeight, contentWidth, contentWidthMax, contentWidthMin, contentHeight, contentHeightMax, contentHeightMin, resizable, layout, displayMode, } = this;
|
|
@@ -38853,7 +39084,7 @@ class ShellPanel {
|
|
|
38853
39084
|
: null;
|
|
38854
39085
|
const separatorNode = !collapsed && allowResizing ? (hAsync("div", { "aria-label": this.messages.resize, "aria-orientation": layout === "horizontal" ? "vertical" : "horizontal", "aria-valuemax": layout == "horizontal" ? contentHeightMax : contentWidthMax, "aria-valuemin": layout == "horizontal" ? contentHeightMin : contentWidthMin, "aria-valuenow": layout == "horizontal"
|
|
38855
39086
|
? contentHeight ?? initialContentHeight
|
|
38856
|
-
: contentWidth ?? initialContentWidth, class: CSS$
|
|
39087
|
+
: contentWidth ?? initialContentWidth, class: CSS$l.separator, key: "separator", onKeyDown: this.separatorKeyDown, role: "separator", tabIndex: 0, "touch-action": "none",
|
|
38857
39088
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
38858
39089
|
ref: this.connectSeparator })) : null;
|
|
38859
39090
|
const getAnimationDir = () => {
|
|
@@ -38869,20 +39100,20 @@ class ShellPanel {
|
|
|
38869
39100
|
};
|
|
38870
39101
|
const contentNode = (hAsync("div", { class: {
|
|
38871
39102
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
38872
|
-
[CSS$
|
|
38873
|
-
[CSS$
|
|
38874
|
-
[CSS$
|
|
39103
|
+
[CSS$l.content]: true,
|
|
39104
|
+
[CSS$l.contentOverlay]: displayMode === "overlay",
|
|
39105
|
+
[CSS$l.contentFloat]: displayMode === "float",
|
|
38875
39106
|
[CSS_UTILITY.calciteAnimate]: displayMode === "overlay",
|
|
38876
39107
|
[getAnimationDir()]: displayMode === "overlay",
|
|
38877
39108
|
}, hidden: collapsed, key: "content", style: style,
|
|
38878
39109
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
38879
|
-
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
39110
|
+
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$l.contentBody }, hAsync("slot", null)), separatorNode));
|
|
38880
39111
|
const actionBarNode = (hAsync("slot", { key: "action-bar", name: SLOTS$7.actionBar, onSlotchange: this.handleActionBarSlotChange }));
|
|
38881
39112
|
const mainNodes = [actionBarNode, contentNode];
|
|
38882
39113
|
if (position === "end") {
|
|
38883
39114
|
mainNodes.reverse();
|
|
38884
39115
|
}
|
|
38885
|
-
return hAsync("div", { class: { [CSS$
|
|
39116
|
+
return hAsync("div", { class: { [CSS$l.container]: true } }, mainNodes);
|
|
38886
39117
|
}
|
|
38887
39118
|
// --------------------------------------------------------------------------
|
|
38888
39119
|
//
|
|
@@ -38983,7 +39214,7 @@ class ShellPanel {
|
|
|
38983
39214
|
}; }
|
|
38984
39215
|
}
|
|
38985
39216
|
|
|
38986
|
-
const CSS$
|
|
39217
|
+
const CSS$k = {
|
|
38987
39218
|
handleLabel: "handle__label",
|
|
38988
39219
|
handleLabelMinValue: "handle__label--minValue",
|
|
38989
39220
|
handleLabelValue: "handle__label--value",
|
|
@@ -39182,8 +39413,8 @@ class Slider {
|
|
|
39182
39413
|
const leftThumbOffset = `${mirror ? 100 - minInterval : minInterval}%`;
|
|
39183
39414
|
const rightThumbOffset = `${mirror ? maxInterval : 100 - maxInterval}%`;
|
|
39184
39415
|
const valueIsRange = isRange(this.value);
|
|
39185
|
-
const handleLabelMinValueClasses = `${CSS$
|
|
39186
|
-
const handleLabelValueClasses = `${CSS$
|
|
39416
|
+
const handleLabelMinValueClasses = `${CSS$k.handleLabel} ${CSS$k.handleLabelMinValue}`;
|
|
39417
|
+
const handleLabelValueClasses = `${CSS$k.handleLabel} ${CSS$k.handleLabelValue}`;
|
|
39187
39418
|
const handle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
39188
39419
|
thumb: true,
|
|
39189
39420
|
"thumb--value": true,
|
|
@@ -39319,8 +39550,8 @@ class Slider {
|
|
|
39319
39550
|
const displayedTickValue = this.determineGroupSeparator(tick);
|
|
39320
39551
|
const tickLabel = (hAsync("span", { class: {
|
|
39321
39552
|
tick__label: true,
|
|
39322
|
-
[CSS$
|
|
39323
|
-
[CSS$
|
|
39553
|
+
[CSS$k.tickMin]: isMinTickLabel,
|
|
39554
|
+
[CSS$k.tickMax]: isMaxTickLabel,
|
|
39324
39555
|
} }, displayedTickValue));
|
|
39325
39556
|
if (this.labelTicks && !this.hasHistogram && !valueIsRange) {
|
|
39326
39557
|
return tickLabel;
|
|
@@ -39878,7 +40109,7 @@ class Slider {
|
|
|
39878
40109
|
}; }
|
|
39879
40110
|
}
|
|
39880
40111
|
|
|
39881
|
-
const CSS$
|
|
40112
|
+
const CSS$j = {
|
|
39882
40113
|
sortItem: "sort-item",
|
|
39883
40114
|
container: "container",
|
|
39884
40115
|
containerHorizontal: "container--horizontal",
|
|
@@ -40012,9 +40243,9 @@ class SortableList {
|
|
|
40012
40243
|
const { layout } = this;
|
|
40013
40244
|
const horizontal = layout === "horizontal" || false;
|
|
40014
40245
|
return (hAsync("div", { class: {
|
|
40015
|
-
[CSS$
|
|
40016
|
-
[CSS$
|
|
40017
|
-
[CSS$
|
|
40246
|
+
[CSS$j.container]: true,
|
|
40247
|
+
[CSS$j.containerVertical]: !horizontal,
|
|
40248
|
+
[CSS$j.containerHorizontal]: horizontal,
|
|
40018
40249
|
} }, hAsync("slot", null)));
|
|
40019
40250
|
}
|
|
40020
40251
|
get el() { return getElement(this); }
|
|
@@ -40038,7 +40269,7 @@ class SortableList {
|
|
|
40038
40269
|
}; }
|
|
40039
40270
|
}
|
|
40040
40271
|
|
|
40041
|
-
const CSS$
|
|
40272
|
+
const CSS$i = {
|
|
40042
40273
|
container: "container",
|
|
40043
40274
|
dividerContainer: "divider-container",
|
|
40044
40275
|
divider: "divider",
|
|
@@ -40117,7 +40348,7 @@ class SplitButton {
|
|
|
40117
40348
|
}
|
|
40118
40349
|
render() {
|
|
40119
40350
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
40120
|
-
return (hAsync("div", { class: CSS$
|
|
40351
|
+
return (hAsync("div", { class: CSS$i.container }, hAsync("calcite-button", { appearance: this.appearance, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, kind: this.kind, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", type: "button", width: buttonWidth }, this.primaryText), hAsync("div", { class: CSS$i.dividerContainer }, hAsync("div", { class: CSS$i.divider })), hAsync("calcite-dropdown", { disabled: this.disabled, onClick: this.calciteSplitButtonSecondaryClickHandler, open: this.active, overlayPositioning: this.overlayPositioning, placement: "bottom-end", scale: this.scale, width: this.scale }, hAsync("calcite-button", { appearance: this.appearance, disabled: this.disabled, "icon-start": this.dropdownIcon, kind: this.kind, label: this.dropdownLabel, scale: this.scale, slot: "trigger", splitChild: "secondary", type: "button" }), hAsync("slot", null))));
|
|
40121
40352
|
}
|
|
40122
40353
|
get dropdownIcon() {
|
|
40123
40354
|
return this.dropdownIconType === "chevron"
|
|
@@ -40204,25 +40435,25 @@ class Stack {
|
|
|
40204
40435
|
// --------------------------------------------------------------------------
|
|
40205
40436
|
renderActionsStart() {
|
|
40206
40437
|
const { hasActionsStart } = this;
|
|
40207
|
-
return (hAsync("div", { class: CSS$
|
|
40438
|
+
return (hAsync("div", { class: CSS$D.actionsStart, hidden: !hasActionsStart, key: "actions-start-container" }, hAsync("slot", { name: SLOTS$g.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
40208
40439
|
}
|
|
40209
40440
|
renderActionsEnd() {
|
|
40210
40441
|
const { hasActionsEnd } = this;
|
|
40211
|
-
return (hAsync("div", { class: CSS$
|
|
40442
|
+
return (hAsync("div", { class: CSS$D.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container" }, hAsync("slot", { name: SLOTS$g.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
|
|
40212
40443
|
}
|
|
40213
40444
|
renderContentStart() {
|
|
40214
40445
|
const { hasContentStart } = this;
|
|
40215
|
-
return (hAsync("div", { class: CSS$
|
|
40446
|
+
return (hAsync("div", { class: CSS$D.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$g.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
40216
40447
|
}
|
|
40217
40448
|
renderDefaultContent() {
|
|
40218
|
-
return (hAsync("div", { class: CSS$
|
|
40449
|
+
return (hAsync("div", { class: CSS$D.content }, hAsync("slot", null)));
|
|
40219
40450
|
}
|
|
40220
40451
|
renderContentEnd() {
|
|
40221
40452
|
const { hasContentEnd } = this;
|
|
40222
|
-
return (hAsync("div", { class: CSS$
|
|
40453
|
+
return (hAsync("div", { class: CSS$D.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$g.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
40223
40454
|
}
|
|
40224
40455
|
render() {
|
|
40225
|
-
return (hAsync(Host, null, hAsync("div", { class: CSS$
|
|
40456
|
+
return (hAsync(Host, null, hAsync("div", { class: CSS$D.container }, this.renderActionsStart(), this.renderContentStart(), this.renderDefaultContent(), this.renderContentEnd(), this.renderActionsEnd())));
|
|
40226
40457
|
}
|
|
40227
40458
|
static get style() { return stackCss; }
|
|
40228
40459
|
static get cmpMeta() { return {
|
|
@@ -40241,7 +40472,40 @@ class Stack {
|
|
|
40241
40472
|
}; }
|
|
40242
40473
|
}
|
|
40243
40474
|
|
|
40244
|
-
const
|
|
40475
|
+
const CSS$h = {
|
|
40476
|
+
stepBar: "step-bar",
|
|
40477
|
+
stepBarActive: "step-bar--active",
|
|
40478
|
+
stepBarComplete: "step-bar--complete",
|
|
40479
|
+
stepBarDisabled: "step-bar--disabled",
|
|
40480
|
+
stepBarError: "step-bar--error",
|
|
40481
|
+
stepBarInActive: "step-bar--inactive",
|
|
40482
|
+
};
|
|
40483
|
+
const StepBar = ({ disabled, active, complete, error, key, }) => (hAsync("svg", { class: {
|
|
40484
|
+
[CSS$h.stepBar]: true,
|
|
40485
|
+
}, key: key },
|
|
40486
|
+
hAsync("rect", { class: {
|
|
40487
|
+
[CSS$h.stepBarActive]: active,
|
|
40488
|
+
[CSS$h.stepBarComplete]: complete,
|
|
40489
|
+
[CSS$h.stepBarDisabled]: disabled,
|
|
40490
|
+
[CSS$h.stepBarError]: error,
|
|
40491
|
+
[CSS$h.stepBarInActive]: true,
|
|
40492
|
+
}, width: "100%", x: "0", y: "0" })));
|
|
40493
|
+
|
|
40494
|
+
const ITEM_MIN_WIDTH = {
|
|
40495
|
+
s: 120,
|
|
40496
|
+
m: 180,
|
|
40497
|
+
l: 200,
|
|
40498
|
+
};
|
|
40499
|
+
const CSS$g = {
|
|
40500
|
+
actionIcon: "action-icon",
|
|
40501
|
+
actionIconStart: "action-icon--start",
|
|
40502
|
+
actionIconEnd: "action-icon--end",
|
|
40503
|
+
actionContainer: "action-container",
|
|
40504
|
+
stepBarContainer: "step-bar-container",
|
|
40505
|
+
singleView: "single-view",
|
|
40506
|
+
};
|
|
40507
|
+
|
|
40508
|
+
const stepperCss = "/*!@:host([scale=s])*/[scale=s].sc-calcite-stepper-h{--calcite-internal-stepper-item-spacing-unit-s:0.25rem;--calcite-internal-stepper-action-block-size:2.75rem;--calcite-internal-stepper-action-inline-size:2rem;--calcite-internal-step-bar-gap:0.25rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-stepper-h{--calcite-internal-stepper-item-spacing-unit-s:0.5rem;--calcite-internal-stepper-action-block-size:3.25rem;--calcite-internal-stepper-action-inline-size:2.5rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-stepper-h{--calcite-internal-stepper-item-spacing-unit-s:0.75rem;--calcite-internal-stepper-action-block-size:4rem;--calcite-internal-stepper-action-inline-size:3rem;--calcite-internal-step-bar-gap:0.75rem}/*!@:host*/.sc-calcite-stepper-h{display:flex}/*!@.container*/.container.sc-calcite-stepper{position:relative;display:flex;inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:space-between}/*!@:host([layout=vertical]) .container*/[layout=vertical].sc-calcite-stepper-h .container.sc-calcite-stepper{flex:1 1 auto;flex-direction:column}/*!@:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-stepper-h .container.sc-calcite-stepper{display:grid;grid-template-areas:\"items\" \"content\";gap:0.5rem var(--calcite-internal-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][scale=s]) .container*/[layout=horizontal][scale=s].sc-calcite-stepper-h .container.sc-calcite-stepper{gap:0.25rem var(--calcite-internal-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][scale=l]) .container*/[layout=horizontal][scale=l].sc-calcite-stepper-h .container.sc-calcite-stepper{gap:0.75rem var(--calcite-internal-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal]) .container.single-view*/[layout=horizontal].sc-calcite-stepper-h .container.single-view.sc-calcite-stepper{display:flex;grid-template-columns:none}/*!@.action-icon*/.action-icon.sc-calcite-stepper{position:relative;display:flex;flex-grow:0;block-size:var(--calcite-internal-stepper-action-block-size);inline-size:var(--calcite-internal-stepper-action-inline-size)}/*!@.action-container*/.action-container.sc-calcite-stepper{position:absolute;display:flex;justify-content:space-between;padding-block:0.25rem;inline-size:100%}/*!@.step-bar*/.step-bar.sc-calcite-stepper{display:flex;block-size:100%;inline-size:100%}/*!@.step-bar-container*/.step-bar-container.sc-calcite-stepper{position:absolute;display:flex;align-items:flex-start;justify-content:space-between;block-size:0.125rem;inline-size:100%;gap:var(--calcite-internal-step-bar-gap, 0.5rem)}/*!@.step-bar--inactive*/.step-bar--inactive.sc-calcite-stepper{fill:var(--light-ui-border-3, #dfdfdf);fill-opacity:1;block-size:100%}/*!@.step-bar--active*/.step-bar--active.sc-calcite-stepper{fill:var(--calcite-ui-brand)}/*!@.step-bar--complete*/.step-bar--complete.sc-calcite-stepper{fill:var(--calcite-ui-brand);fill-opacity:0.5}/*!@.step-bar--error*/.step-bar--error.sc-calcite-stepper{fill:var(--calcite-ui-danger)}/*!@.step-bar--disabled*/.step-bar--disabled.sc-calcite-stepper{opacity:0.5}/*!@:host([hidden])*/[hidden].sc-calcite-stepper-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-stepper{display:none}";
|
|
40245
40509
|
|
|
40246
40510
|
/**
|
|
40247
40511
|
* @slot - A slot for adding `calcite-stepper-item` elements.
|
|
@@ -40251,18 +40515,41 @@ class Stepper {
|
|
|
40251
40515
|
registerInstance(this, hostRef);
|
|
40252
40516
|
this.calciteStepperItemChange = createEvent(this, "calciteStepperItemChange", 6);
|
|
40253
40517
|
this.calciteInternalStepperItemChange = createEvent(this, "calciteInternalStepperItemChange", 6);
|
|
40518
|
+
this.enabledItems = [];
|
|
40254
40519
|
this.itemMap = new Map();
|
|
40255
|
-
/** list of sorted Stepper items */
|
|
40256
40520
|
this.items = [];
|
|
40257
|
-
/** list of enabled Stepper items */
|
|
40258
|
-
this.enabledItems = [];
|
|
40259
40521
|
this.mutationObserver = createObserver();
|
|
40522
|
+
/** Specifies if the user is viewing one `stepper-item` at a time when the page width is less than sum of min-width of each item. */
|
|
40523
|
+
this.multipleViewMode = false;
|
|
40524
|
+
this.guid = `calcite-stepper-action-${guid()}`;
|
|
40525
|
+
//--------------------------------------------------------------------------
|
|
40526
|
+
//
|
|
40527
|
+
// Private Methods
|
|
40528
|
+
//
|
|
40529
|
+
//--------------------------------------------------------------------------
|
|
40530
|
+
this.resizeObserver = createObserver();
|
|
40531
|
+
this.handleActionClick = (event) => {
|
|
40532
|
+
const currentActivePosition = this.currentActivePosition;
|
|
40533
|
+
const target = event.target;
|
|
40534
|
+
if (target.getAttribute("data-position") === "start") {
|
|
40535
|
+
this.prevStep();
|
|
40536
|
+
}
|
|
40537
|
+
else {
|
|
40538
|
+
this.nextStep();
|
|
40539
|
+
}
|
|
40540
|
+
if (this.currentActivePosition &&
|
|
40541
|
+
currentActivePosition !== this.currentActivePosition &&
|
|
40542
|
+
!this.items[this.currentActivePosition].disabled) {
|
|
40543
|
+
this.calciteStepperItemChange.emit();
|
|
40544
|
+
}
|
|
40545
|
+
};
|
|
40546
|
+
this.setContainerEl = (el) => {
|
|
40547
|
+
this.containerEl = el;
|
|
40548
|
+
};
|
|
40260
40549
|
this.handleDefaultSlotChange = (event) => {
|
|
40261
|
-
const
|
|
40262
|
-
|
|
40263
|
-
|
|
40264
|
-
this.el.style.gridTemplateAreas = spacing;
|
|
40265
|
-
this.el.style.gridTemplateColumns = spacing;
|
|
40550
|
+
const items = slotChangeGetAssignedElements(event).filter((el) => el?.tagName === "CALCITE-STEPPER-ITEM");
|
|
40551
|
+
this.items = items;
|
|
40552
|
+
this.setGridTemplateColumns(items);
|
|
40266
40553
|
this.setStepperItemNumberingSystem();
|
|
40267
40554
|
};
|
|
40268
40555
|
this.icon = false;
|
|
@@ -40275,6 +40562,8 @@ class Stepper {
|
|
|
40275
40562
|
this.messageOverrides = undefined;
|
|
40276
40563
|
this.defaultMessages = undefined;
|
|
40277
40564
|
this.effectiveLocale = "";
|
|
40565
|
+
this.currentActivePosition = undefined;
|
|
40566
|
+
this.elWidth = undefined;
|
|
40278
40567
|
}
|
|
40279
40568
|
handleItemPropChange() {
|
|
40280
40569
|
this.updateItems();
|
|
@@ -40300,20 +40589,26 @@ class Stepper {
|
|
|
40300
40589
|
await setUpMessages(this);
|
|
40301
40590
|
}
|
|
40302
40591
|
componentDidLoad() {
|
|
40592
|
+
this.resizeObserver?.observe(this.containerEl);
|
|
40303
40593
|
// if no stepper items are set as active, default to the first one
|
|
40304
|
-
if (typeof this.
|
|
40594
|
+
if (typeof this.currentActivePosition !== "number") {
|
|
40595
|
+
const enabledStepIndex = this.getFirstEnabledStepperPosition();
|
|
40596
|
+
if (enabledStepIndex === 0) {
|
|
40597
|
+
this.currentActivePosition = enabledStepIndex;
|
|
40598
|
+
}
|
|
40305
40599
|
this.calciteInternalStepperItemChange.emit({
|
|
40306
|
-
position:
|
|
40600
|
+
position: enabledStepIndex,
|
|
40307
40601
|
});
|
|
40308
40602
|
}
|
|
40309
40603
|
}
|
|
40310
40604
|
disconnectedCallback() {
|
|
40605
|
+
this.resizeObserver?.disconnect();
|
|
40311
40606
|
disconnectMessages(this);
|
|
40312
40607
|
disconnectLocalized(this);
|
|
40313
40608
|
this.mutationObserver?.disconnect();
|
|
40314
40609
|
}
|
|
40315
40610
|
render() {
|
|
40316
|
-
return (hAsync(Host, { "aria-label": this.messages.label, role: "region" }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })));
|
|
40611
|
+
return (hAsync(Host, { "aria-label": this.messages.label, role: "region" }, hAsync("div", { class: { container: true, [CSS$g.singleView]: !this.multipleViewMode }, ref: this.setContainerEl }, !this.multipleViewMode && this.layout === "horizontal" && (hAsync("div", { class: { [CSS$g.stepBarContainer]: true } }, this.items.map((item, index) => (hAsync(StepBar, { active: index === this.currentActivePosition, complete: item.complete && index !== this.currentActivePosition && !item.error, disabled: item.disabled && index !== this.currentActivePosition, error: item.error && index !== this.currentActivePosition, key: index }))))), hAsync("div", { class: { [CSS$g.actionContainer]: true } }, this.renderAction("start"), this.renderAction("end")), hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
40317
40612
|
}
|
|
40318
40613
|
//--------------------------------------------------------------------------
|
|
40319
40614
|
//
|
|
@@ -40345,14 +40640,13 @@ class Stepper {
|
|
|
40345
40640
|
const item = event.target;
|
|
40346
40641
|
const { content, position } = event.detail;
|
|
40347
40642
|
this.itemMap.set(item, { position, content });
|
|
40348
|
-
this.items = this.sortItems();
|
|
40349
40643
|
this.enabledItems = this.filterItems();
|
|
40350
40644
|
event.stopPropagation();
|
|
40351
40645
|
}
|
|
40352
40646
|
updateItem(event) {
|
|
40353
40647
|
const { position } = event.detail;
|
|
40354
40648
|
if (typeof position === "number") {
|
|
40355
|
-
this.
|
|
40649
|
+
this.currentActivePosition = position;
|
|
40356
40650
|
this.selectedItem = event.target;
|
|
40357
40651
|
}
|
|
40358
40652
|
this.calciteInternalStepperItemChange.emit({
|
|
@@ -40369,7 +40663,7 @@ class Stepper {
|
|
|
40369
40663
|
//--------------------------------------------------------------------------
|
|
40370
40664
|
/** Set the next `calcite-stepper-item` as active. */
|
|
40371
40665
|
async nextStep() {
|
|
40372
|
-
const enabledStepIndex = this.getEnabledStepIndex(this.
|
|
40666
|
+
const enabledStepIndex = this.getEnabledStepIndex(this.currentActivePosition + 1, "next");
|
|
40373
40667
|
if (typeof enabledStepIndex !== "number") {
|
|
40374
40668
|
return;
|
|
40375
40669
|
}
|
|
@@ -40377,7 +40671,7 @@ class Stepper {
|
|
|
40377
40671
|
}
|
|
40378
40672
|
/** Set the previous `calcite-stepper-item` as active. */
|
|
40379
40673
|
async prevStep() {
|
|
40380
|
-
const enabledStepIndex = this.getEnabledStepIndex(this.
|
|
40674
|
+
const enabledStepIndex = this.getEnabledStepIndex(this.currentActivePosition - 1, "previous");
|
|
40381
40675
|
if (typeof enabledStepIndex !== "number") {
|
|
40382
40676
|
return;
|
|
40383
40677
|
}
|
|
@@ -40390,7 +40684,7 @@ class Stepper {
|
|
|
40390
40684
|
*/
|
|
40391
40685
|
async goToStep(step) {
|
|
40392
40686
|
const position = step - 1;
|
|
40393
|
-
if (this.
|
|
40687
|
+
if (this.currentActivePosition !== position) {
|
|
40394
40688
|
this.updateStep(position);
|
|
40395
40689
|
}
|
|
40396
40690
|
}
|
|
@@ -40413,11 +40707,16 @@ class Stepper {
|
|
|
40413
40707
|
effectiveLocaleChange() {
|
|
40414
40708
|
updateMessages(this);
|
|
40415
40709
|
}
|
|
40416
|
-
|
|
40417
|
-
|
|
40418
|
-
|
|
40419
|
-
|
|
40420
|
-
|
|
40710
|
+
handlePositionChange() {
|
|
40711
|
+
readTask(() => {
|
|
40712
|
+
this.determineActiveStepper(true);
|
|
40713
|
+
});
|
|
40714
|
+
}
|
|
40715
|
+
handleElWidthChange() {
|
|
40716
|
+
readTask(() => {
|
|
40717
|
+
this.determineActiveStepper();
|
|
40718
|
+
});
|
|
40719
|
+
}
|
|
40421
40720
|
updateItems() {
|
|
40422
40721
|
this.el.querySelectorAll("calcite-stepper-item").forEach((item) => {
|
|
40423
40722
|
item.icon = this.icon;
|
|
@@ -40426,26 +40725,54 @@ class Stepper {
|
|
|
40426
40725
|
item.scale = this.scale;
|
|
40427
40726
|
});
|
|
40428
40727
|
}
|
|
40728
|
+
determineActiveStepper(currentActivePositionChanged = false) {
|
|
40729
|
+
const totalItems = this.items.length;
|
|
40730
|
+
if (!this.elWidth || !totalItems || this.layout !== "horizontal" || totalItems === 1) {
|
|
40731
|
+
return;
|
|
40732
|
+
}
|
|
40733
|
+
const activePosition = this.currentActivePosition || 0;
|
|
40734
|
+
const totalMinWidthOfItems = totalItems * this.getMinWidthOfStepperItem();
|
|
40735
|
+
const totalRowGap = (totalItems - 1) * (parseInt(window.getComputedStyle(this.containerEl).rowGap) || 0);
|
|
40736
|
+
if (this.elWidth <= totalMinWidthOfItems + totalRowGap) {
|
|
40737
|
+
this.multipleViewMode = false;
|
|
40738
|
+
this.items.forEach((item, index) => {
|
|
40739
|
+
if (index !== activePosition) {
|
|
40740
|
+
item.hidden = true;
|
|
40741
|
+
}
|
|
40742
|
+
else {
|
|
40743
|
+
item.hidden = false;
|
|
40744
|
+
item.multipleViewMode = false;
|
|
40745
|
+
}
|
|
40746
|
+
});
|
|
40747
|
+
}
|
|
40748
|
+
else if (this.elWidth > totalMinWidthOfItems + totalRowGap) {
|
|
40749
|
+
if (this.multipleViewMode && !currentActivePositionChanged) {
|
|
40750
|
+
return;
|
|
40751
|
+
}
|
|
40752
|
+
this.multipleViewMode = true;
|
|
40753
|
+
this.setGridTemplateColumns(this.items);
|
|
40754
|
+
this.items.forEach((item) => {
|
|
40755
|
+
item.hidden = false;
|
|
40756
|
+
item.multipleViewMode = true;
|
|
40757
|
+
});
|
|
40758
|
+
}
|
|
40759
|
+
}
|
|
40429
40760
|
getEnabledStepIndex(startIndex, direction = "next") {
|
|
40430
|
-
const { items,
|
|
40761
|
+
const { items, currentActivePosition } = this;
|
|
40431
40762
|
let newIndex = startIndex;
|
|
40432
|
-
while (items[newIndex]?.disabled) {
|
|
40763
|
+
while (items[newIndex]?.disabled && this.multipleViewMode) {
|
|
40433
40764
|
newIndex = newIndex + (direction === "previous" ? -1 : 1);
|
|
40434
40765
|
}
|
|
40435
|
-
return newIndex !==
|
|
40766
|
+
return newIndex !== currentActivePosition && newIndex < items.length && newIndex >= 0
|
|
40436
40767
|
? newIndex
|
|
40437
40768
|
: null;
|
|
40438
40769
|
}
|
|
40439
40770
|
updateStep(position) {
|
|
40440
|
-
this.
|
|
40771
|
+
this.currentActivePosition = position;
|
|
40441
40772
|
this.calciteInternalStepperItemChange.emit({
|
|
40442
40773
|
position,
|
|
40443
40774
|
});
|
|
40444
40775
|
}
|
|
40445
|
-
sortItems() {
|
|
40446
|
-
const { itemMap } = this;
|
|
40447
|
-
return Array.from(itemMap.keys()).sort((a, b) => itemMap.get(a).position - itemMap.get(b).position);
|
|
40448
|
-
}
|
|
40449
40776
|
filterItems() {
|
|
40450
40777
|
return this.items.filter((item) => !item.disabled);
|
|
40451
40778
|
}
|
|
@@ -40454,9 +40781,32 @@ class Stepper {
|
|
|
40454
40781
|
item.numberingSystem = this.numberingSystem;
|
|
40455
40782
|
});
|
|
40456
40783
|
}
|
|
40784
|
+
renderAction(position) {
|
|
40785
|
+
const isPositionStart = position === "start";
|
|
40786
|
+
const path = isPositionStart ? "chevron-left" : "chevron-right";
|
|
40787
|
+
const { currentActivePosition, multipleViewMode, layout } = this;
|
|
40788
|
+
const totalItems = this.items.length;
|
|
40789
|
+
const id = `${this.guid}-${isPositionStart ? "start" : "end"}`;
|
|
40790
|
+
return layout === "horizontal" && !multipleViewMode ? (hAsync("calcite-action", { alignment: "center", appearance: "transparent", class: {
|
|
40791
|
+
[CSS$g.actionIcon]: true,
|
|
40792
|
+
}, compact: true, "data-position": position, disabled: (currentActivePosition === 0 && isPositionStart) ||
|
|
40793
|
+
(currentActivePosition === totalItems - 1 && !isPositionStart), icon: path, iconFlipRtl: true, id: id, onClick: this.handleActionClick, scale: this.scale, text: isPositionStart ? this.messages.previousStep : this.messages.nextStep })) : null;
|
|
40794
|
+
}
|
|
40457
40795
|
getFirstEnabledStepperPosition() {
|
|
40458
40796
|
const enabledStepIndex = this.items.findIndex((item) => !item.disabled);
|
|
40459
|
-
|
|
40797
|
+
if (enabledStepIndex > -1) {
|
|
40798
|
+
return enabledStepIndex;
|
|
40799
|
+
}
|
|
40800
|
+
return 0;
|
|
40801
|
+
}
|
|
40802
|
+
setGridTemplateColumns(items) {
|
|
40803
|
+
const minWidth = this.getMinWidthOfStepperItem();
|
|
40804
|
+
const spacing = Array(items.length).fill(`minmax(${minWidth}px, 1fr)`).join(" ");
|
|
40805
|
+
this.containerEl.style.gridTemplateAreas = spacing;
|
|
40806
|
+
this.containerEl.style.gridTemplateColumns = spacing;
|
|
40807
|
+
}
|
|
40808
|
+
getMinWidthOfStepperItem() {
|
|
40809
|
+
return ITEM_MIN_WIDTH[this.scale];
|
|
40460
40810
|
}
|
|
40461
40811
|
static get assetsDirs() { return ["assets"]; }
|
|
40462
40812
|
get el() { return getElement(this); }
|
|
@@ -40467,7 +40817,9 @@ class Stepper {
|
|
|
40467
40817
|
"scale": ["handleItemPropChange"],
|
|
40468
40818
|
"numberingSystem": ["numberingSystemChange"],
|
|
40469
40819
|
"messageOverrides": ["onMessagesChange"],
|
|
40470
|
-
"effectiveLocale": ["effectiveLocaleChange"]
|
|
40820
|
+
"effectiveLocale": ["effectiveLocaleChange"],
|
|
40821
|
+
"currentActivePosition": ["handlePositionChange"],
|
|
40822
|
+
"elWidth": ["handleElWidthChange"]
|
|
40471
40823
|
}; }
|
|
40472
40824
|
static get style() { return stepperCss; }
|
|
40473
40825
|
static get cmpMeta() { return {
|
|
@@ -40484,6 +40836,8 @@ class Stepper {
|
|
|
40484
40836
|
"messageOverrides": [1040],
|
|
40485
40837
|
"defaultMessages": [32],
|
|
40486
40838
|
"effectiveLocale": [32],
|
|
40839
|
+
"currentActivePosition": [32],
|
|
40840
|
+
"elWidth": [32],
|
|
40487
40841
|
"nextStep": [64],
|
|
40488
40842
|
"prevStep": [64],
|
|
40489
40843
|
"goToStep": [64],
|
|
@@ -40507,7 +40861,7 @@ const CSS$f = {
|
|
|
40507
40861
|
visuallyHidden: "visually-hidden",
|
|
40508
40862
|
};
|
|
40509
40863
|
|
|
40510
|
-
const stepperItemCss = "/*!@:host([layout=horizontal][disabled]) .stepper-item-header, :host([disabled])*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([layout=horizontal][disabled]) .stepper-item-header *, :host([disabled]) *,\n:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),\n:host([disabled]) ::slotted(*)*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h *.sc-calcite-stepper-item,.sc-calcite-stepper-item-h[layout=horizontal][disabled] .stepper-item-header .sc-calcite-stepper-item-s>*,.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>*{pointer-events:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:0.25rem}/*!@:host([scale=s]) .stepper-item-description*/[scale=s].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:0.5rem}/*!@:host([scale=m]) .stepper-item-description*/[scale=m].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:0.75rem}/*!@:host([scale=l]) .stepper-item-description*/[scale=l].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host*/.sc-calcite-stepper-item-h{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host*/.sc-calcite-stepper-item-h{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-stepper-item-h:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{display:flex;cursor:pointer;align-items:flex-start}/*!@:host .stepper-item-content,\n:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host .stepper-item-header **/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-content*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host .stepper-item-icon*/.sc-calcite-stepper-item-h .stepper-item-icon.sc-calcite-stepper-item{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-header-text*/.sc-calcite-stepper-item-h .stepper-item-header-text.sc-calcite-stepper-item{flex-direction:column;text-align:initial;margin-inline-end:auto}/*!@:host .stepper-item-heading,\n:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{display:flex;inline-size:100%}/*!@:host .stepper-item-heading*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item{margin-block-end:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}/*!@:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-3)}/*!@:host .stepper-item-number*/.sc-calcite-stepper-item-h .stepper-item-number.sc-calcite-stepper-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-stepper-item-h [calcite-hydrated][disabled].sc-calcite-stepper-item{opacity:1}/*!@:host([complete]) .container*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([complete]) .container .stepper-item-icon*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([error]) .container*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-number*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-icon*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{opacity:1;color:var(--calcite-ui-danger)}/*!@:host(:hover:not([disabled]):not([selected])) .container,\n:host(:focus:not([disabled]):not([selected])) .container*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([error]:hover:not([disabled]):not([selected])) .container,\n:host([error]:focus:not([disabled]):not([selected])) .container*/[error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger-hover)}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-heading*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host([selected]) .container .stepper-item-description*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand);opacity:1}/*!@:host([selected]) .container .stepper-item-content*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{display:flex}/*!@:host([layout=vertical]) .container*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]) .container .stepper-item-icon*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}/*!@:host([layout=vertical]) .container .stepper-item-header*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-header.sc-calcite-stepper-item{padding-inline-end:0px}/*!@:host([layout=vertical]) .container .stepper-item-content*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{padding:0px}/*!@:host([layout=vertical][complete]) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][error]) .container*/[layout=vertical][error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty)*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical]:focus:not([disabled]):not([selected])) .container*/[layout=vertical].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}/*!@:host([layout=horizontal])*/[layout=horizontal].sc-calcite-stepper-item-h{display:contents}/*!@:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{display:contents}/*!@:host([layout=horizontal]) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);outline-color:transparent;grid-row:items;margin-inline-end:0.5rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal]) .stepper-item-header:focus*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host([layout=horizontal]) .stepper-item-content*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host([layout=horizontal][selected]) .stepper-item-content*/[layout=horizontal][selected].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{grid-area:2/1/2/-1}/*!@:host([layout=horizontal][scale=s]) .stepper-item-header*/[layout=horizontal][scale=s].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{margin-inline-end:0.25rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][scale=l]) .stepper-item-header*/[layout=horizontal][scale=l].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{margin-inline-end:0.75rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][complete]) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal][error]) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=horizontal][selected]) .stepper-item-header*/[layout=horizontal][selected].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{outline-width:0;outline-offset:0}/*!@:host(:focus),\n :host(:focus-visible)*/.sc-calcite-stepper-item-h:focus,.sc-calcite-stepper-item-h:focus-visible{outline-color:canvasText}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:highlight}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:highlight}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:highlight}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:highlight}}/*!@.visually-hidden*/.visually-hidden.sc-calcite-stepper-item{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@:host([hidden])*/[hidden].sc-calcite-stepper-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-stepper-item{display:none}";
|
|
40864
|
+
const stepperItemCss = "/*!@:host([layout=horizontal][disabled]) .stepper-item-header, :host([disabled])*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([layout=horizontal][disabled]) .stepper-item-header *, :host([disabled]) *,\n:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),\n:host([disabled]) ::slotted(*)*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h *.sc-calcite-stepper-item,.sc-calcite-stepper-item-h[layout=horizontal][disabled] .stepper-item-header .sc-calcite-stepper-item-s>*,.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>*{pointer-events:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;--calcite-internal-stepper-action-inline-size:2rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:0.25rem}/*!@:host([scale=s]) .stepper-item-description*/[scale=s].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;--calcite-internal-stepper-action-inline-size:2.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:0.5rem}/*!@:host([scale=m]) .stepper-item-description*/[scale=m].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;--calcite-internal-stepper-action-inline-size:3rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:0.75rem}/*!@:host([scale=l]) .stepper-item-description*/[scale=l].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host*/.sc-calcite-stepper-item-h{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host*/.sc-calcite-stepper-item-h{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-stepper-item-h:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{display:flex;cursor:pointer;align-items:flex-start}/*!@:host .stepper-item-content,\n:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host .stepper-item-header **/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-content*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host .stepper-item-icon*/.sc-calcite-stepper-item-h .stepper-item-icon.sc-calcite-stepper-item{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-header-text*/.sc-calcite-stepper-item-h .stepper-item-header-text.sc-calcite-stepper-item{flex-direction:column;text-align:initial;margin-inline-end:auto}/*!@:host .stepper-item-heading,\n:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{display:flex;inline-size:100%}/*!@:host .stepper-item-heading*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item{margin-block-end:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}/*!@:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-3)}/*!@:host .stepper-item-number*/.sc-calcite-stepper-item-h .stepper-item-number.sc-calcite-stepper-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-stepper-item-h [calcite-hydrated][disabled].sc-calcite-stepper-item{opacity:1}/*!@:host([complete]) .container*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([complete]) .container .stepper-item-icon*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([error]) .container*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-number*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-icon*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{opacity:1;color:var(--calcite-ui-danger)}/*!@:host(:hover:not([disabled]):not([selected])) .container,\n:host(:focus:not([disabled]):not([selected])) .container*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([error]:hover:not([disabled]):not([selected])) .container,\n:host([error]:focus:not([disabled]):not([selected])) .container*/[error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger-hover)}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-heading*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host([selected]) .container .stepper-item-description*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand);opacity:1}/*!@:host([selected]) .container .stepper-item-content*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{display:flex}/*!@:host([layout=vertical]) .container*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]) .container .stepper-item-icon*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}/*!@:host([layout=vertical]) .container .stepper-item-header*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-header.sc-calcite-stepper-item{padding-inline-end:0px}/*!@:host([layout=vertical]) .container .stepper-item-content*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{padding:0px}/*!@:host([layout=vertical][complete]) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][error]) .container*/[layout=vertical][error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty)*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical]:focus:not([disabled]):not([selected])) .container*/[layout=vertical].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}/*!@:host([layout=horizontal])*/[layout=horizontal].sc-calcite-stepper-item-h{display:contents}/*!@:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{display:contents}/*!@:host([layout=horizontal]) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);outline-color:transparent;grid-row:items}/*!@:host([layout=horizontal]) .stepper-item-header:focus*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host([layout=horizontal]) .stepper-item-content*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host([layout=horizontal][selected]) .stepper-item-content*/[layout=horizontal][selected].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{grid-area:2/1/2/-1}/*!@:host([layout=horizontal][complete]) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal][error]) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=horizontal][selected][multiple-view-mode]) .stepper-item-header*/[layout=horizontal][selected][multiple-view-mode].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{outline-width:0;outline-offset:0}/*!@:host(:focus),\n :host(:focus-visible)*/.sc-calcite-stepper-item-h:focus,.sc-calcite-stepper-item-h:focus-visible{outline-color:canvasText}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:highlight}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:highlight}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:highlight}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:highlight}}/*!@:host([layout=horizontal]:not([multiple-view-mode])) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h:not([multiple-view-mode]) .stepper-item-header.sc-calcite-stepper-item{margin-inline-end:0px;border-style:none;inline-size:100%;padding-inline:calc(var(--calcite-internal-stepper-action-inline-size) + 0.5rem)}/*!@:host([layout=horizontal][error]:not([multiple-view-mode])) .container .stepper-item-number*/[layout=horizontal][error].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-danger)}/*!@:host([layout=horizontal][error]:not([multiple-view-mode])) .container .stepper-item-icon*/[layout=horizontal][error].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{opacity:1;color:var(--calcite-ui-danger)}/*!@:host([layout=horizontal][error][selected]:not([multiple-view-mode])),\n:host([layout=horizontal][complete][selected]:not([multiple-view-mode])) .container*/[layout=horizontal][error][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]),[layout=horizontal][complete][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item{color:var(--calcite-ui-text-3)}/*!@:host([layout=horizontal][error][selected]:not([multiple-view-mode])) .stepper-item-heading,\n:host([layout=horizontal][complete][selected]:not([multiple-view-mode])) .container .stepper-item-heading*/[layout=horizontal][error][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]) .stepper-item-heading.sc-calcite-stepper-item,[layout=horizontal][complete][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([layout=horizontal][complete][selected]:not([multiple-view-mode])) .container .stepper-item-icon*/[layout=horizontal][complete][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([layout=horizontal][complete][selected]:not([multiple-view-mode])) .container .stepper-item-number*/[layout=horizontal][complete][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-text-3)}/*!@.visually-hidden*/.visually-hidden.sc-calcite-stepper-item{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@:host([hidden])*/[hidden].sc-calcite-stepper-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-stepper-item{display:none}";
|
|
40511
40865
|
|
|
40512
40866
|
/**
|
|
40513
40867
|
* @slot - A slot for adding custom content.
|
|
@@ -40584,6 +40938,7 @@ class StepperItem {
|
|
|
40584
40938
|
this.messages = undefined;
|
|
40585
40939
|
this.numbered = false;
|
|
40586
40940
|
this.scale = "m";
|
|
40941
|
+
this.multipleViewMode = false;
|
|
40587
40942
|
this.messageOverrides = undefined;
|
|
40588
40943
|
this.defaultMessages = undefined;
|
|
40589
40944
|
this.effectiveLocale = "";
|
|
@@ -40642,7 +40997,7 @@ class StepperItem {
|
|
|
40642
40997
|
render() {
|
|
40643
40998
|
return (hAsync(Host, { "aria-current": this.selected ? "step" : "false", onClick: this.handleItemClick, onKeyDown: this.keyDownHandler }, hAsync("div", { class: CSS$f.container }, this.complete && (hAsync("span", { "aria-live": "polite", class: CSS$f.visuallyHidden }, this.messages.complete)), hAsync("div", { class: CSS$f.stepperItemHeader, tabIndex:
|
|
40644
40999
|
/* additional tab index logic needed because of display: contents */
|
|
40645
|
-
this.layout === "horizontal" && !this.disabled ? 0 : null,
|
|
41000
|
+
this.layout === "horizontal" && !this.disabled && this.multipleViewMode ? 0 : null,
|
|
40646
41001
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
40647
41002
|
ref: (el) => (this.headerEl = el) }, this.icon ? this.renderIcon() : null, this.numbered ? (hAsync("div", { class: CSS$f.stepperItemNumber }, this.renderNumbers(), ".")) : null, hAsync("div", { class: CSS$f.stepperItemHeaderText }, hAsync("span", { class: CSS$f.stepperItemHeading }, this.heading), hAsync("span", { class: CSS$f.stepperItemDescription }, this.description))), hAsync("div", { class: CSS$f.stepperItemContent }, hAsync("slot", null)))));
|
|
40648
41003
|
}
|
|
@@ -40669,13 +41024,16 @@ class StepperItem {
|
|
|
40669
41024
|
(this.layout === "vertical" ? this.el : this.headerEl)?.focus();
|
|
40670
41025
|
}
|
|
40671
41026
|
renderIcon() {
|
|
40672
|
-
|
|
40673
|
-
|
|
40674
|
-
|
|
40675
|
-
|
|
40676
|
-
|
|
40677
|
-
|
|
40678
|
-
|
|
41027
|
+
let path = "circle";
|
|
41028
|
+
if (this.selected && (this.multipleViewMode || (!this.error && !this.complete))) {
|
|
41029
|
+
path = "circleF";
|
|
41030
|
+
}
|
|
41031
|
+
else if (this.error) {
|
|
41032
|
+
path = "exclamationMarkCircleF";
|
|
41033
|
+
}
|
|
41034
|
+
else if (this.complete) {
|
|
41035
|
+
path = "checkCircleF";
|
|
41036
|
+
}
|
|
40679
41037
|
return (hAsync("calcite-icon", { class: "stepper-item-icon", flipRtl: this.iconFlipRtl, icon: path, scale: "s" }));
|
|
40680
41038
|
}
|
|
40681
41039
|
determineSelectedItem() {
|
|
@@ -40723,6 +41081,7 @@ class StepperItem {
|
|
|
40723
41081
|
"messages": [1040],
|
|
40724
41082
|
"numbered": [4],
|
|
40725
41083
|
"scale": [513],
|
|
41084
|
+
"multipleViewMode": [516, "multiple-view-mode"],
|
|
40726
41085
|
"messageOverrides": [1040],
|
|
40727
41086
|
"defaultMessages": [32],
|
|
40728
41087
|
"effectiveLocale": [32],
|
|
@@ -40730,7 +41089,7 @@ class StepperItem {
|
|
|
40730
41089
|
},
|
|
40731
41090
|
"$listeners$": [[16, "calciteInternalStepperItemChange", "updateActiveItemOnChange"]],
|
|
40732
41091
|
"$lazyBundleId$": "-",
|
|
40733
|
-
"$attrsToReflect$": [["selected", "selected"], ["complete", "complete"], ["error", "error"], ["disabled", "disabled"], ["iconFlipRtl", "icon-flip-rtl"], ["layout", "layout"], ["scale", "scale"]]
|
|
41092
|
+
"$attrsToReflect$": [["selected", "selected"], ["complete", "complete"], ["error", "error"], ["disabled", "disabled"], ["iconFlipRtl", "icon-flip-rtl"], ["layout", "layout"], ["scale", "scale"], ["multipleViewMode", "multiple-view-mode"]]
|
|
40734
41093
|
}; }
|
|
40735
41094
|
}
|
|
40736
41095
|
|
|
@@ -45862,8 +46221,8 @@ class ValueListItem {
|
|
|
45862
46221
|
const { icon, iconFlipRtl } = this;
|
|
45863
46222
|
if (icon === ICON_TYPES$1.grip) {
|
|
45864
46223
|
return (hAsync("span", { class: {
|
|
45865
|
-
[CSS$
|
|
45866
|
-
[CSS$
|
|
46224
|
+
[CSS$v.handle]: true,
|
|
46225
|
+
[CSS$v.handleActivated]: this.handleActivated,
|
|
45867
46226
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0",
|
|
45868
46227
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
45869
46228
|
ref: (el) => (this.handleEl = el) }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS.drag, scale: "s" })));
|