@esri/calcite-components 1.7.0-next.0 → 1.7.0-next.10
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/date-picker/nls/zh-CN.json +1 -1
- package/dist/calcite/assets/handle/t9n/messages_lv.json +3 -3
- package/dist/calcite/assets/handle/t9n/messages_zh-CN.json +1 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_ar.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_bg.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_bs.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_ca.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_cs.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_da.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_de.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_el.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_es.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_et.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_fi.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_fr.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_he.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_hr.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_hu.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_id.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_it.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_ja.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_ko.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_lt.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_lv.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_nl.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_no.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_pl.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_pt-BR.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_pt-PT.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_ro.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_ru.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_sk.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_sl.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_sr.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_sv.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_th.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_tr.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_uk.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_vi.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_zh-CN.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_zh-HK.json +2 -1
- package/dist/calcite/assets/input-date-picker/t9n/messages_zh-TW.json +2 -1
- package/dist/calcite/assets/input-time-zone/t9n/messages_ar.json +430 -430
- package/dist/calcite/assets/input-time-zone/t9n/messages_bg.json +430 -430
- package/dist/calcite/assets/input-time-zone/t9n/messages_bs.json +74 -74
- package/dist/calcite/assets/input-time-zone/t9n/messages_ca.json +125 -125
- package/dist/calcite/assets/input-time-zone/t9n/messages_cs.json +138 -138
- package/dist/calcite/assets/input-time-zone/t9n/messages_da.json +61 -61
- package/dist/calcite/assets/input-time-zone/t9n/messages_de.json +119 -119
- package/dist/calcite/assets/input-time-zone/t9n/messages_el.json +421 -421
- package/dist/calcite/assets/input-time-zone/t9n/messages_es.json +174 -174
- package/dist/calcite/assets/input-time-zone/t9n/messages_et.json +106 -106
- package/dist/calcite/assets/input-time-zone/t9n/messages_fi.json +87 -87
- package/dist/calcite/assets/input-time-zone/t9n/messages_fr.json +145 -145
- package/dist/calcite/assets/input-time-zone/t9n/messages_he.json +430 -430
- package/dist/calcite/assets/input-time-zone/t9n/messages_hr.json +74 -74
- package/dist/calcite/assets/input-time-zone/t9n/messages_hu.json +125 -125
- package/dist/calcite/assets/input-time-zone/t9n/messages_id.json +37 -37
- package/dist/calcite/assets/input-time-zone/t9n/messages_it.json +76 -76
- package/dist/calcite/assets/input-time-zone/t9n/messages_ja.json +430 -430
- package/dist/calcite/assets/input-time-zone/t9n/messages_ko.json +431 -431
- package/dist/calcite/assets/input-time-zone/t9n/messages_lt.json +395 -395
- package/dist/calcite/assets/input-time-zone/t9n/messages_lv.json +369 -369
- package/dist/calcite/assets/input-time-zone/t9n/messages_nl.json +66 -66
- package/dist/calcite/assets/input-time-zone/t9n/messages_no.json +46 -46
- package/dist/calcite/assets/input-time-zone/t9n/messages_pl.json +177 -177
- package/dist/calcite/assets/input-time-zone/t9n/messages_pt-BR.json +82 -82
- package/dist/calcite/assets/input-time-zone/t9n/messages_pt-PT.json +102 -102
- package/dist/calcite/assets/input-time-zone/t9n/messages_ro.json +67 -67
- package/dist/calcite/assets/input-time-zone/t9n/messages_ru.json +429 -429
- package/dist/calcite/assets/input-time-zone/t9n/messages_sk.json +168 -168
- package/dist/calcite/assets/input-time-zone/t9n/messages_sl.json +113 -113
- package/dist/calcite/assets/input-time-zone/t9n/messages_sr.json +288 -288
- package/dist/calcite/assets/input-time-zone/t9n/messages_sv.json +77 -77
- package/dist/calcite/assets/input-time-zone/t9n/messages_th.json +430 -430
- package/dist/calcite/assets/input-time-zone/t9n/messages_tr.json +107 -107
- package/dist/calcite/assets/input-time-zone/t9n/messages_uk.json +427 -427
- package/dist/calcite/assets/input-time-zone/t9n/messages_vi.json +16 -16
- package/dist/calcite/assets/input-time-zone/t9n/messages_zh-CN.json +430 -430
- package/dist/calcite/assets/input-time-zone/t9n/messages_zh-HK.json +430 -430
- package/dist/calcite/assets/input-time-zone/t9n/messages_zh-TW.json +430 -430
- package/dist/calcite/assets/text-area/t9n/messages_bg.json +1 -1
- package/dist/calcite/assets/text-area/t9n/messages_fr.json +1 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +2 -2
- package/dist/calcite/{p-0bd7dc6c.entry.js → p-0046cbc9.entry.js} +2 -2
- package/dist/calcite/{p-436d9051.js → p-0053c13b.js} +2 -2
- package/dist/calcite/{p-af1fc64b.js → p-01b06b3f.js} +1 -1
- package/dist/calcite/{p-3ff87910.entry.js → p-05c3f047.entry.js} +2 -2
- package/dist/calcite/{p-fd7e2063.entry.js → p-05dc66ad.entry.js} +2 -2
- package/dist/calcite/{p-ff8def52.js → p-064acc14.js} +1 -1
- package/dist/calcite/{p-5d9e5fc1.entry.js → p-07f1e2f9.entry.js} +2 -2
- package/dist/calcite/{p-10535875.js → p-08af2eef.js} +1 -1
- package/dist/calcite/{p-971bc7c3.js → p-0b77c479.js} +1 -1
- package/dist/calcite/{p-324bc47e.entry.js → p-0bedbb5c.entry.js} +2 -2
- package/dist/calcite/{p-a07f4344.js → p-0df84e64.js} +2 -2
- package/dist/calcite/{p-c47baee6.js → p-0f316e3f.js} +1 -1
- package/dist/calcite/{p-5f0b8ad1.js → p-138ea402.js} +2 -2
- package/dist/calcite/p-151ffc4a.js +6 -0
- package/dist/calcite/{p-d7da9585.entry.js → p-178eec14.entry.js} +2 -2
- package/dist/calcite/{p-372add5a.js → p-19579104.js} +2 -2
- package/dist/calcite/p-1cb07a3d.entry.js +6 -0
- package/dist/calcite/{p-97182350.js → p-1d17599c.js} +2 -2
- package/dist/calcite/p-1e399b2c.entry.js +6 -0
- package/dist/calcite/{p-d7c399c4.js → p-207c8004.js} +2 -2
- package/dist/calcite/{p-eb397699.entry.js → p-2315e7d6.entry.js} +2 -2
- package/dist/calcite/{p-e05221c2.js → p-233423d3.js} +2 -2
- package/dist/calcite/{p-58c29f12.js → p-235c2640.js} +2 -2
- package/dist/calcite/{p-0244ee00.entry.js → p-297fb824.entry.js} +2 -2
- package/dist/calcite/{p-f2209a15.entry.js → p-2998cc4f.entry.js} +2 -2
- package/dist/calcite/p-29f78745.js +6 -0
- package/dist/calcite/p-2b262ee4.entry.js +6 -0
- package/dist/calcite/{p-de6cc57d.js → p-2b7bf2aa.js} +2 -2
- package/dist/calcite/{p-a6860910.js → p-2e0f580f.js} +2 -2
- package/dist/calcite/p-2fa0cf24.entry.js +6 -0
- package/dist/calcite/{p-144622f1.js → p-31cd3168.js} +2 -2
- package/dist/calcite/{p-550e16fd.js → p-3458e023.js} +2 -2
- package/dist/calcite/{p-f6238201.js → p-34c49b13.js} +1 -1
- package/dist/calcite/{p-daddbf26.js → p-3f35156d.js} +2 -2
- package/dist/calcite/{p-fd98a4f2.js → p-41f8c908.js} +2 -2
- package/dist/calcite/p-441a689a.entry.js +6 -0
- package/dist/calcite/{p-a265a2e9.entry.js → p-476e2ab6.entry.js} +2 -2
- package/dist/calcite/{p-fd5ce410.js → p-49205f99.js} +2 -2
- package/dist/calcite/p-4abd1bdd.js +6 -0
- package/dist/calcite/{p-78e68659.js → p-4d3c906f.js} +2 -2
- package/dist/calcite/{p-aa000dfe.entry.js → p-4ef65f70.entry.js} +2 -2
- package/dist/calcite/{p-78e2c580.js → p-50dcaa2d.js} +2 -2
- package/dist/calcite/{p-ae85c99f.js → p-51ab4f68.js} +2 -2
- package/dist/calcite/{p-c5482a38.entry.js → p-57129f81.entry.js} +2 -2
- package/dist/calcite/{p-ae47c8f7.js → p-59016cb2.js} +2 -2
- package/dist/calcite/{p-a0177c5d.js → p-5b74a3ce.js} +2 -2
- package/dist/calcite/{p-a8ad6ac5.entry.js → p-5c3a21ab.entry.js} +2 -2
- package/dist/calcite/{p-bac88d5b.js → p-5d96c1e6.js} +2 -2
- package/dist/calcite/{p-13346f15.entry.js → p-601c504d.entry.js} +2 -2
- package/dist/calcite/{p-c49b065a.js → p-6442898a.js} +2 -2
- package/dist/calcite/{p-debfcab3.entry.js → p-65dc8386.entry.js} +2 -2
- package/dist/calcite/{p-a2931b1a.js → p-66c07893.js} +1 -1
- package/dist/calcite/{p-8bd91224.entry.js → p-687fe657.entry.js} +2 -2
- package/dist/calcite/{p-c367ff09.js → p-6942cb33.js} +2 -2
- package/dist/calcite/{p-98c03090.entry.js → p-69cd04bc.entry.js} +2 -2
- package/dist/calcite/{p-c3ad9a11.js → p-6a3c4ecb.js} +2 -2
- package/dist/calcite/{p-130bc299.entry.js → p-6ad8749b.entry.js} +2 -2
- package/dist/calcite/p-6d86e371.entry.js +6 -0
- package/dist/calcite/{p-3c095467.entry.js → p-6e094446.entry.js} +2 -2
- package/dist/calcite/{p-966d9131.js → p-7047f4d2.js} +2 -2
- package/dist/calcite/{p-d44094d7.js → p-70acd2bb.js} +2 -2
- package/dist/calcite/{p-67a85001.entry.js → p-725d3eeb.entry.js} +2 -2
- package/dist/calcite/{p-090db21d.js → p-73229254.js} +2 -2
- package/dist/calcite/p-776ef9be.entry.js +6 -0
- package/dist/calcite/{p-719a4e0f.js → p-7773454b.js} +2 -2
- package/dist/calcite/{p-b75783fd.js → p-7987d501.js} +2 -2
- package/dist/calcite/{p-9dd53691.js → p-7cf3bd86.js} +2 -2
- package/dist/calcite/p-7ec146b5.entry.js +6 -0
- package/dist/calcite/p-804896d0.entry.js +6 -0
- package/dist/calcite/{p-0a46144e.entry.js → p-8098face.entry.js} +2 -2
- package/dist/calcite/{p-0f4c920c.js → p-80c59178.js} +2 -2
- package/dist/calcite/{p-8d2a30a0.js → p-80cc8208.js} +1 -1
- package/dist/calcite/{p-d92b4577.js → p-833a99fc.js} +2 -2
- package/dist/calcite/{p-e8bd2e99.js → p-84bb0220.js} +2 -2
- package/dist/calcite/{p-e6b4d85f.entry.js → p-8635d173.entry.js} +2 -2
- package/dist/calcite/{p-41006447.js → p-88411959.js} +2 -2
- package/dist/calcite/p-8bbe6b3d.js +6 -0
- package/dist/calcite/p-8dd42274.entry.js +6 -0
- package/dist/calcite/{p-a3ce4f5e.entry.js → p-8f8402d1.entry.js} +2 -2
- package/dist/calcite/{p-acea2728.js → p-91103449.js} +2 -2
- package/dist/calcite/{p-13630964.js → p-925b4675.js} +2 -2
- package/dist/calcite/{p-6e872dc1.js → p-940380e1.js} +1 -1
- package/dist/calcite/{p-67b2bb57.js → p-9653d282.js} +2 -2
- package/dist/calcite/{p-8c83c0a4.entry.js → p-968d6add.entry.js} +2 -2
- package/dist/calcite/{p-20cf49d4.entry.js → p-97b9bdaa.entry.js} +2 -2
- package/dist/calcite/p-9abee028.entry.js +6 -0
- package/dist/calcite/{p-d5d644d6.js → p-9ae3572c.js} +2 -2
- package/dist/calcite/p-a1abca2b.entry.js +6 -0
- package/dist/calcite/{p-37e8ce69.js → p-a3202da5.js} +2 -2
- package/dist/calcite/{p-d00fc3a7.js → p-a34c7fc0.js} +2 -2
- package/dist/calcite/{p-a69e018f.entry.js → p-a5e5b89d.entry.js} +2 -2
- package/dist/calcite/{p-5f3a3518.js → p-a83a9d88.js} +2 -2
- package/dist/calcite/{p-2b2b5a54.entry.js → p-a919c8ef.entry.js} +2 -2
- package/dist/calcite/{p-9edd6fe7.entry.js → p-a9c5c3e0.entry.js} +2 -2
- package/dist/calcite/{p-6d93785a.js → p-aa87c3b2.js} +2 -2
- package/dist/calcite/{p-ba62d69a.js → p-aac54b1e.js} +2 -2
- package/dist/calcite/{p-f0184ce0.js → p-b291449f.js} +1 -1
- package/dist/calcite/{p-eccc6544.js → p-b3424f0a.js} +2 -2
- package/dist/calcite/{p-bd88b323.js → p-b43e9ede.js} +2 -2
- package/dist/calcite/{p-12a06006.js → p-b51275ae.js} +2 -2
- package/dist/calcite/p-b53a82d1.js +6 -0
- package/dist/calcite/{p-3ec15730.entry.js → p-b9ecae29.entry.js} +2 -2
- package/dist/calcite/{p-496b5b01.entry.js → p-ba83e64a.entry.js} +2 -2
- package/dist/calcite/{p-af01ab15.entry.js → p-bc1c128b.entry.js} +2 -2
- package/dist/calcite/{p-abaf3b60.js → p-bcecffb5.js} +2 -2
- package/dist/calcite/p-bd0a79a3.entry.js +6 -0
- package/dist/calcite/{p-8b2f756a.js → p-c0d16643.js} +2 -2
- package/dist/calcite/{p-b26245f8.js → p-c1d0acc5.js} +2 -2
- package/dist/calcite/{p-f1026a92.js → p-c525c958.js} +2 -2
- package/dist/calcite/{p-2310fd7d.js → p-c60b745d.js} +2 -2
- package/dist/calcite/p-c62e180a.entry.js +6 -0
- package/dist/calcite/{p-d34edddb.entry.js → p-c6ac34ff.entry.js} +2 -2
- package/dist/calcite/{p-a5921d07.js → p-c6ba280b.js} +2 -2
- package/dist/calcite/p-c97a607c.entry.js +6 -0
- package/dist/calcite/{p-13754b2b.entry.js → p-cabe2514.entry.js} +2 -2
- package/dist/calcite/p-cac05008.js +6 -0
- package/dist/calcite/p-cb2f31be.entry.js +6 -0
- package/dist/calcite/{p-57ddf59d.entry.js → p-cc388efe.entry.js} +2 -2
- package/dist/calcite/{p-29e51bd5.js → p-cecad71b.js} +2 -2
- package/dist/calcite/{p-dcbd9eee.js → p-d0ca9b70.js} +2 -2
- package/dist/calcite/{p-401f9b1e.js → p-d4b54932.js} +1 -1
- package/dist/calcite/{p-1306ef16.entry.js → p-d4b7535d.entry.js} +2 -2
- package/dist/calcite/{p-116eccd8.entry.js → p-d52c3795.entry.js} +2 -2
- package/dist/calcite/{p-c1fd17c2.entry.js → p-d52c72c1.entry.js} +2 -2
- package/dist/calcite/{p-6849a082.entry.js → p-d6844e3a.entry.js} +2 -2
- package/dist/calcite/{p-9b0f9e9a.js → p-d6ab7ac5.js} +2 -2
- package/dist/calcite/p-d9619e2a.entry.js +6 -0
- package/dist/calcite/{p-4d6b430f.js → p-dc1725c5.js} +2 -2
- package/dist/calcite/{p-bf9fc36c.entry.js → p-ddbeb2fd.entry.js} +2 -2
- package/dist/calcite/{p-a22f4515.js → p-e211caad.js} +2 -2
- package/dist/calcite/p-e3e35c39.entry.js +6 -0
- package/dist/calcite/p-e584327c.entry.js +6 -0
- package/dist/calcite/{p-8b5bf3f9.js → p-e72a4e3c.js} +2 -2
- package/dist/calcite/{p-42b57311.js → p-e8b9ec38.js} +1 -1
- package/dist/calcite/{p-ea103254.js → p-ea30655d.js} +2 -2
- package/dist/calcite/{p-6f5912df.entry.js → p-ea4966a2.entry.js} +2 -2
- package/dist/calcite/p-eaf74dd5.entry.js +6 -0
- package/dist/calcite/{p-317625a6.entry.js → p-ed0621e4.entry.js} +2 -2
- package/dist/calcite/{p-63d36731.js → p-eefdfc5b.js} +2 -2
- package/dist/calcite/{p-f1d28107.entry.js → p-f0a95f07.entry.js} +2 -2
- package/dist/calcite/{p-f8104f1e.entry.js → p-f3886027.entry.js} +2 -2
- package/dist/calcite/{p-2f887196.js → p-f39b79ff.js} +2 -2
- package/dist/calcite/{p-df28eb66.js → p-f499e53d.js} +2 -2
- package/dist/calcite/{p-939028cc.js → p-f57756b1.js} +2 -2
- package/dist/calcite/{p-d678e465.entry.js → p-f7e80483.entry.js} +2 -2
- package/dist/calcite/{p-6465dae9.js → p-f89856b0.js} +1 -1
- package/dist/calcite/{p-b0a9755b.js → p-f8d37a6b.js} +2 -2
- package/dist/calcite/{p-5ee96b40.entry.js → p-fbfccf8b.entry.js} +2 -2
- package/dist/calcite/p-fd8e5eaa.entry.js +6 -0
- package/dist/calcite/p-fde6e84b.entry.js +6 -0
- package/dist/calcite/{p-3ed4574a.entry.js → p-fe46e500.entry.js} +2 -2
- package/dist/calcite/{p-d9b2c3a5.js → p-ff491c03.js} +1 -1
- package/dist/cjs/{ExpandToggle-4da4cde1.js → ExpandToggle-868d15d6.js} +6 -6
- package/dist/cjs/{FloatingArrow-94b266a9.js → FloatingArrow-2f265df4.js} +2 -2
- package/dist/cjs/{Heading-bae30ace.js → Heading-6f9fbd67.js} +2 -2
- package/dist/cjs/{app-globals-a4d5ca81.js → app-globals-7a2d44ba.js} +2 -2
- package/dist/cjs/{ar-4f3de50f.js → ar-642058a0.js} +15 -15
- package/dist/cjs/{array-c0f4b914.js → array-1202902b.js} +1 -1
- package/dist/cjs/{bg-ccda59bb.js → bg-36b4f52f.js} +15 -15
- package/dist/cjs/{bs-b1d6fe63.js → bs-98c23d89.js} +15 -15
- package/dist/cjs/{ca-6de7dcd6.js → ca-9193be7d.js} +15 -15
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +19 -18
- package/dist/cjs/calcite-action-group.cjs.entry.js +16 -15
- package/dist/cjs/calcite-action-menu.cjs.entry.js +10 -10
- package/dist/cjs/calcite-action-pad.cjs.entry.js +18 -17
- package/dist/cjs/calcite-action.cjs.entry.js +12 -12
- package/dist/cjs/calcite-alert.cjs.entry.js +14 -14
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-button.cjs.entry.js +14 -14
- 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 +15 -15
- package/dist/cjs/calcite-chip.cjs.entry.js +14 -14
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +23 -23
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +51 -39
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +15 -15
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +64 -59
- 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 +14 -14
- package/dist/cjs/calcite-flow.cjs.entry.js +11 -5
- package/dist/cjs/calcite-graph_2.cjs.entry.js +26 -26
- package/dist/cjs/calcite-handle.cjs.entry.js +11 -11
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +15 -15
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +25 -25
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +14 -14
- package/dist/cjs/calcite-input-text.cjs.entry.js +14 -14
- package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-9d77f340.js → calcite-input-time-picker.calcite-time-picker-b46a1e2e.js} +67 -67
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -14
- 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 -20
- package/dist/cjs/calcite-loader.cjs.entry.js +4 -4
- package/dist/cjs/calcite-menu_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +62 -31
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +7 -7
- package/dist/cjs/calcite-notice.cjs.entry.js +13 -13
- package/dist/cjs/calcite-option_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
- package/dist/cjs/calcite-panel.cjs.entry.js +17 -17
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
- package/dist/cjs/calcite-popover.cjs.entry.js +19 -19
- 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 +70 -77
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +49 -22
- package/dist/cjs/calcite-sheet.cjs.entry.js +229 -0
- package/dist/cjs/calcite-shell_3.cjs.entry.js +13 -13
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +8 -8
- 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 +11 -11
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tab_4.cjs.entry.js +15 -15
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-tooltip.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tree_2.cjs.entry.js +56 -22
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -17
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-0b2eec9f.js → conditionalSlot-9d498271.js} +3 -3
- package/dist/cjs/{cs-cea3b0ee.js → cs-61ce33ef.js} +15 -15
- package/dist/cjs/{da-17725eaa.js → da-7f3e6a91.js} +15 -15
- package/dist/cjs/{de-39e15b86.js → de-ae160b13.js} +15 -15
- package/dist/cjs/{de-at-6761fb0d.js → de-at-1620cc6c.js} +15 -15
- package/dist/cjs/{de-ch-745fb377.js → de-ch-1fb6fff8.js} +15 -15
- package/dist/cjs/{debounce-ba742625.js → debounce-fd13f3e3.js} +1 -1
- package/dist/cjs/{dom-882e8adf.js → dom-ee5ca278.js} +3 -3
- package/dist/cjs/{el-bf61cc1f.js → el-d87580f0.js} +15 -15
- package/dist/cjs/{en-au-f5c3ce9d.js → en-au-68621ec7.js} +15 -15
- package/dist/cjs/{en-ca-dda16274.js → en-ca-c65049e9.js} +15 -15
- package/dist/cjs/{en-gb-0d465e08.js → en-gb-117fdfe8.js} +15 -15
- package/dist/cjs/{es-b866d145.js → es-433f8254.js} +15 -15
- package/dist/cjs/{es-mx-9011eeb8.js → es-mx-cac56e36.js} +15 -15
- package/dist/cjs/{et-82b68369.js → et-ca97830d.js} +15 -15
- package/dist/cjs/{fi-7217192a.js → fi-3533a713.js} +15 -15
- package/dist/cjs/{filter-d178922e.js → filter-412ceb5c.js} +2 -2
- package/dist/cjs/{floating-ui-05afc335.js → floating-ui-e3b6e217.js} +3 -3
- package/dist/cjs/{focusTrapComponent-1c50a7e7.js → focusTrapComponent-aea4e631.js} +2 -2
- package/dist/cjs/{form-7ec8012f.js → form-45f1afe2.js} +3 -3
- package/dist/cjs/{fr-bfc091a2.js → fr-297cf2b9.js} +15 -15
- package/dist/cjs/{fr-ch-445e68b9.js → fr-ch-44f695cc.js} +15 -15
- package/dist/cjs/{guid-26de9cda.js → guid-7fc7cda4.js} +1 -1
- package/dist/cjs/{he-e2c5e787.js → he-af09215d.js} +15 -15
- package/dist/cjs/{hi-01410766.js → hi-9e7b8530.js} +15 -15
- package/dist/cjs/{hr-f6f84162.js → hr-35b369ed.js} +15 -15
- package/dist/cjs/{hu-269b67e7.js → hu-321b66c1.js} +15 -15
- package/dist/cjs/{id-8c2bbc95.js → id-13403ee4.js} +15 -15
- package/dist/cjs/{index-170040b3.js → index-62e7a1ed.js} +5 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-f7aec39c.js → interactive-8b00018f.js} +1 -1
- package/dist/cjs/{it-d13a9f04.js → it-5d35493f.js} +15 -15
- package/dist/cjs/{it-ch-3439fde4.js → it-ch-196e6f6d.js} +15 -15
- package/dist/cjs/{ja-0ca7d254.js → ja-036090a2.js} +15 -15
- package/dist/cjs/{key-8df4992e.js → key-d451a368.js} +1 -1
- package/dist/cjs/{ko-f2113549.js → ko-ba7e98cc.js} +15 -15
- package/dist/cjs/{label-1abe1847.js → label-190c0cf9.js} +2 -2
- package/dist/cjs/{loadable-8ad0def8.js → loadable-3bb56575.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-b39d68ba.js → locale-1985d401.js} +4 -4
- package/dist/cjs/{lt-5c2c91c0.js → lt-c0bf3c40.js} +15 -15
- package/dist/cjs/{lv-9f5be352.js → lv-ab49a833.js} +15 -15
- package/dist/cjs/{math-ce6a2ddf.js → math-70cb5a4b.js} +1 -1
- package/dist/cjs/{mk-379f2113.js → mk-afaa643e.js} +15 -15
- package/dist/cjs/{nb-795fd9a1.js → nb-7724435b.js} +15 -15
- package/dist/cjs/{nl-418df115.js → nl-b3ecc28e.js} +15 -15
- package/dist/cjs/{observers-e391d71f.js → observers-1c054b2b.js} +1 -1
- package/dist/cjs/{openCloseComponent-6424e4e3.js → openCloseComponent-27ac60fc.js} +2 -2
- package/dist/cjs/{pl-2eb4ce40.js → pl-32065efb.js} +15 -15
- package/dist/cjs/{pt-br-2505fe92.js → pt-br-20695983.js} +15 -15
- package/dist/cjs/{pt-14cfe278.js → pt-d0d5d501.js} +15 -15
- package/dist/cjs/{resources-bb7b7ffd.js → resources-0dc0b3e6.js} +7 -7
- package/dist/cjs/{resources-8a58d0d6.js → resources-0e2189a1.js} +1 -1
- package/dist/cjs/{resources-592c7704.js → resources-2048e92e.js} +1 -1
- package/dist/cjs/{resources-ceda9e99.js → resources-2685decb.js} +1 -1
- package/dist/cjs/{resources-e4c8601b.js → resources-3a9a1d47.js} +1 -1
- package/dist/cjs/{resources-b824e0eb.js → resources-9bdd3395.js} +5 -1
- package/dist/cjs/{resources-9f59c659.js → resources-a50b6034.js} +1 -1
- package/dist/cjs/{ro-64f4a925.js → ro-aac5da9b.js} +15 -15
- package/dist/cjs/{ru-4ffeab42.js → ru-70556d69.js} +15 -15
- package/dist/cjs/{sk-f8a11b96.js → sk-1d8359cf.js} +15 -15
- package/dist/cjs/{sl-40e05d38.js → sl-f940d9ce.js} +15 -15
- package/dist/cjs/{sortableComponent-d6d49e58.js → sortableComponent-b245a799.js} +2 -2
- package/dist/cjs/{sr-9688d21f.js → sr-7a53561e.js} +15 -15
- package/dist/cjs/{sv-68b3b1ce.js → sv-57a5e024.js} +15 -15
- package/dist/cjs/{t9n-51db37e2.js → t9n-80f42485.js} +3 -3
- package/dist/cjs/{th-dcf75e4e.js → th-23a8d312.js} +15 -15
- package/dist/cjs/{throttle-366faeab.js → throttle-ac84e1e9.js} +2 -2
- package/dist/cjs/{tr-8991a83d.js → tr-a929c721.js} +15 -15
- package/dist/cjs/{uk-8fa9b747.js → uk-2a911a6c.js} +15 -15
- package/dist/cjs/{utils-c41dca81.js → utils-39c8eb71.js} +3 -3
- package/dist/cjs/{utils-ede1e9c6.js → utils-d6085f6d.js} +1 -1
- package/dist/cjs/{vi-cc65e958.js → vi-096e09cd.js} +15 -15
- package/dist/cjs/{zh-cn-e977fd48.js → zh-cn-c6ee922b.js} +15 -15
- package/dist/cjs/{zh-hk-5e4e266e.js → zh-hk-12fcce52.js} +15 -15
- package/dist/cjs/{zh-tw-740394b9.js → zh-tw-245b91f8.js} +15 -15
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/accordion/accordion.js +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.js +2 -2
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +22 -4
- 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 +11 -1
- package/dist/collection/components/action-group/action-group.js +22 -4
- package/dist/collection/components/action-group/resources.js +4 -1
- package/dist/collection/components/action-menu/action-menu.js +2 -2
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +22 -4
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +3 -3
- package/dist/collection/components/alert/resources.js +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.js +1 -1
- package/dist/collection/components/block/resources.js +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.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/chip/chip.js +3 -3
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/chip-group/chip-group.js +8 -8
- package/dist/collection/components/color-picker/color-picker.js +7 -7
- 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.js +3 -3
- package/dist/collection/components/color-picker-hex-input/resources.js +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/combobox.css +8 -4
- package/dist/collection/components/combobox/combobox.js +31 -17
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +4 -1
- package/dist/collection/components/combobox-item/combobox-item.js +63 -8
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +28 -4
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/nls/zh-CN.json +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.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +2 -2
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +2 -2
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +43 -34
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +46 -29
- package/dist/collection/components/dropdown-item/dropdown-item.js +63 -12
- package/dist/collection/components/dropdown-item/resources.js +2 -4
- package/dist/collection/components/fab/fab.js +2 -2
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.js +2 -2
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.js +8 -2
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +3 -3
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +2 -2
- 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 +2 -2
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/assets/handle/t9n/messages_lv.json +3 -3
- package/dist/collection/components/handle/assets/handle/t9n/messages_zh-CN.json +1 -1
- package/dist/collection/components/handle/handle.js +2 -2
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- 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.js +4 -4
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +3 -3
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_ar.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_bg.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_bs.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_ca.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_cs.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_da.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_de.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_el.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_es.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_et.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_fi.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_fr.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_he.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_hr.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_hu.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_id.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_it.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_ja.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_ko.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_lt.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_lv.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_nl.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_no.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_pl.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_pt-BR.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_pt-PT.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_ro.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_ru.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_sk.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_sl.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_sr.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_sv.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_th.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_tr.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_uk.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_vi.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_zh-CN.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_zh-HK.json +2 -1
- package/dist/collection/components/input-date-picker/assets/input-date-picker/t9n/messages_zh-TW.json +2 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +8 -8
- package/dist/collection/components/input-date-picker/resources.js +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.js +2 -2
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.js +2 -2
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +4 -4
- package/dist/collection/components/input-time-picker/resources.js +1 -1
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_ar.json +430 -430
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_bg.json +430 -430
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_bs.json +74 -74
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_ca.json +125 -125
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_cs.json +138 -138
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_da.json +61 -61
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_de.json +119 -119
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_el.json +421 -421
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_es.json +174 -174
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_et.json +106 -106
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_fi.json +87 -87
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_fr.json +145 -145
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_he.json +430 -430
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_hr.json +74 -74
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_hu.json +125 -125
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_id.json +37 -37
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_it.json +76 -76
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_ja.json +430 -430
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_ko.json +431 -431
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_lt.json +395 -395
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_lv.json +369 -369
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_nl.json +66 -66
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_no.json +46 -46
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_pl.json +177 -177
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_pt-BR.json +82 -82
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_pt-PT.json +102 -102
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_ro.json +67 -67
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_ru.json +429 -429
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_sk.json +168 -168
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_sl.json +113 -113
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_sr.json +288 -288
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_sv.json +77 -77
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_th.json +430 -430
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_tr.json +107 -107
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_uk.json +427 -427
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_vi.json +16 -16
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_zh-CN.json +430 -430
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_zh-HK.json +430 -430
- package/dist/collection/components/input-time-zone/assets/input-time-zone/t9n/messages_zh-TW.json +430 -430
- package/dist/collection/components/input-time-zone/input-time-zone.js +2 -2
- package/dist/collection/components/input-time-zone/utils.js +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.js +2 -2
- package/dist/collection/components/list/list.js +11 -4
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +5 -5
- 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.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.css +28 -26
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-item/menu-item.js +3 -3
- package/dist/collection/components/menu-item/resources.js +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 +5 -5
- package/dist/collection/components/modal/modal.js +74 -24
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/navigation/navigation.js +2 -2
- package/dist/collection/components/navigation/resources.js +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.js +1 -1
- package/dist/collection/components/navigation-user/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +2 -2
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +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.js +4 -4
- package/dist/collection/components/panel/resources.js +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 +3 -3
- 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.js +2 -2
- 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.js +4 -4
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +2 -2
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.css +1 -2
- package/dist/collection/components/rating/rating.js +59 -67
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +55 -27
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +92 -6
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +2 -2
- package/dist/collection/components/sheet/interfaces.js +1 -0
- package/dist/collection/components/{dropdown-group → sheet}/resources.js +6 -4
- package/dist/collection/components/sheet/sheet.css +236 -0
- package/dist/collection/components/sheet/sheet.js +582 -0
- package/dist/collection/components/shell/resources.js +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.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +3 -3
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +14 -14
- package/dist/collection/components/sortable-list/resources.js +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 +6 -3
- 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.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +2 -2
- package/dist/collection/components/switch/switch.js +2 -2
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +4 -4
- package/dist/collection/components/tab-title/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +3 -3
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_bg.json +1 -1
- package/dist/collection/components/text-area/assets/text-area/t9n/messages_fr.json +1 -1
- package/dist/collection/components/text-area/resources.js +1 -1
- package/dist/collection/components/text-area/text-area.js +2 -2
- package/dist/collection/components/tile/resources.js +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.js +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.js +5 -5
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +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.js +2 -2
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +3 -3
- package/dist/collection/components/tooltip/utils.js +1 -1
- package/dist/collection/components/tree/tree.js +21 -12
- 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 +7 -5
- package/dist/collection/components/tree-item/tree-item.js +32 -5
- 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.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +2 -2
- 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/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 +1 -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/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 +2 -2
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +9 -4
- package/dist/components/action-menu.js +3 -3
- 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 +2 -2
- 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 +6 -4
- 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 +6 -4
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +3 -3
- 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 +8 -8
- 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 +7 -7
- package/dist/components/calcite-combobox-item-group.js +4 -5
- 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 +22 -17
- package/dist/components/calcite-dropdown-item.js +11 -27
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +3 -3
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +3 -3
- package/dist/components/calcite-flow.js +8 -2
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +4 -4
- package/dist/components/calcite-input-date-picker.js +8 -8
- 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 +4 -4
- package/dist/components/calcite-input-time-zone.js +2 -2
- 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 +5 -5
- package/dist/components/calcite-list.js +7 -3
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +3 -3
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-meter.js +2 -2
- package/dist/components/calcite-modal.js +52 -21
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +2 -2
- package/dist/components/calcite-notice.js +2 -2
- 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 +2 -2
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +2 -2
- 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 +3 -3
- package/dist/components/calcite-rating.js +59 -67
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +15 -7
- package/dist/components/calcite-segmented-control.js +33 -11
- package/dist/components/calcite-select.js +3 -3
- package/dist/components/calcite-sheet.d.ts +11 -0
- package/dist/components/calcite-sheet.js +269 -0
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +3 -3
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +15 -15
- package/dist/components/calcite-sortable-list.js +2 -2
- package/dist/components/calcite-split-button.js +2 -2
- package/dist/components/calcite-stack.js +1 -1
- package/dist/components/calcite-stepper-item.js +3 -3
- package/dist/components/calcite-stepper.js +1 -1
- 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-tabs.js +1 -1
- package/dist/components/calcite-text-area.js +2 -2
- 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 +2 -2
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +3 -3
- package/dist/components/calcite-tree-item.js +31 -6
- package/dist/components/calcite-tree.js +22 -13
- package/dist/components/calcite-value-list-item.js +3 -3
- package/dist/components/calcite-value-list.js +2 -2
- package/dist/components/checkbox.js +2 -2
- package/dist/components/chip.js +3 -3
- package/dist/components/color-picker-hex-input.js +4 -4
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +11 -9
- package/dist/components/combobox.js +26 -16
- 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 +2 -2
- package/dist/components/date-picker-month.js +2 -2
- 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 +2 -2
- package/dist/components/dropdown.js +21 -14
- 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 +2 -2
- 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/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +2 -2
- 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 +1 -1
- package/dist/components/id.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/input-number.js +2 -2
- package/dist/components/input-text.js +2 -2
- package/dist/components/input.js +3 -3
- 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 +1 -1
- package/dist/components/link.js +3 -3
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +2 -2
- package/dist/components/locale.js +1 -1
- 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 +2 -2
- 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/panel.js +4 -4
- package/dist/components/pick-list-item.js +3 -3
- package/dist/components/pl.js +1 -1
- package/dist/components/popover.js +4 -4
- 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 +12 -12
- package/dist/components/resources3.js +10 -6
- package/dist/components/resources4.js +15 -0
- package/dist/components/ro.js +1 -1
- package/dist/components/ru.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +6 -6
- 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 +3 -3
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +4 -4
- package/dist/components/tab-title.js +4 -4
- package/dist/components/tab.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 +5 -5
- 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-930a2b24.js → ExpandToggle-ba0f7620.js} +6 -6
- package/dist/esm/{FloatingArrow-1ae168c2.js → FloatingArrow-908275a9.js} +2 -2
- package/dist/esm/{Heading-c99f50d0.js → Heading-066ac7ec.js} +2 -2
- package/dist/esm/{app-globals-55e7f68a.js → app-globals-ec23cde8.js} +2 -2
- package/dist/esm/{ar-be02c795.js → ar-16429b0d.js} +15 -15
- package/dist/esm/{array-67afda9b.js → array-4429b83c.js} +1 -1
- package/dist/esm/{bg-e8eccaac.js → bg-988049ff.js} +15 -15
- package/dist/esm/{bs-b5ea5d4a.js → bs-43b7503d.js} +15 -15
- package/dist/esm/{ca-96e849a8.js → ca-3d5f9740.js} +15 -15
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +19 -18
- package/dist/esm/calcite-action-group.entry.js +16 -15
- package/dist/esm/calcite-action-menu.entry.js +10 -10
- package/dist/esm/calcite-action-pad.entry.js +18 -17
- package/dist/esm/calcite-action.entry.js +12 -12
- package/dist/esm/calcite-alert.entry.js +14 -14
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +13 -13
- package/dist/esm/calcite-button.entry.js +14 -14
- 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 +15 -15
- package/dist/esm/calcite-chip.entry.js +14 -14
- package/dist/esm/calcite-color-picker_3.entry.js +23 -23
- package/dist/esm/calcite-combobox_3.entry.js +51 -39
- package/dist/esm/calcite-date-picker_4.entry.js +15 -15
- package/dist/esm/calcite-dropdown_3.entry.js +64 -59
- 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 +14 -14
- package/dist/esm/calcite-flow.entry.js +11 -5
- package/dist/esm/calcite-graph_2.entry.js +26 -26
- package/dist/esm/calcite-handle.entry.js +11 -11
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +15 -15
- package/dist/esm/calcite-input-date-picker.entry.js +25 -25
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +14 -14
- package/dist/esm/calcite-input-text.entry.js +14 -14
- package/dist/esm/{calcite-input-time-picker.calcite-time-picker-6102e880.js → calcite-input-time-picker.calcite-time-picker-9f713627.js} +67 -67
- package/dist/esm/calcite-input-time-picker_2.entry.js +15 -15
- package/dist/esm/calcite-input-time-zone.entry.js +14 -14
- 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 -20
- package/dist/esm/calcite-loader.entry.js +4 -4
- package/dist/esm/calcite-menu_2.entry.js +12 -12
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +62 -31
- package/dist/esm/calcite-navigation_3.entry.js +7 -7
- package/dist/esm/calcite-notice.entry.js +13 -13
- package/dist/esm/calcite-option_3.entry.js +11 -11
- package/dist/esm/calcite-pagination.entry.js +10 -10
- package/dist/esm/calcite-panel.entry.js +17 -17
- package/dist/esm/calcite-pick-list_3.entry.js +17 -17
- package/dist/esm/calcite-popover.entry.js +19 -19
- 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 +70 -77
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +49 -22
- package/dist/esm/calcite-sheet.entry.js +225 -0
- package/dist/esm/calcite-shell_3.entry.js +13 -13
- package/dist/esm/calcite-sortable-list.entry.js +8 -8
- 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 +11 -11
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-tab_4.entry.js +15 -15
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +12 -12
- package/dist/esm/calcite-tooltip.entry.js +11 -11
- package/dist/esm/calcite-tree_2.entry.js +56 -22
- package/dist/esm/calcite-value-list_2.entry.js +17 -17
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{conditionalSlot-6f84118e.js → conditionalSlot-e697cffa.js} +3 -3
- package/dist/esm/{cs-e1c3af40.js → cs-91d4a0e5.js} +15 -15
- package/dist/esm/{da-5378d206.js → da-7cbd8b9b.js} +15 -15
- package/dist/esm/{de-at-13cfe8cd.js → de-at-c2b05750.js} +15 -15
- package/dist/esm/{de-ch-7c9869ce.js → de-ch-6fa90859.js} +15 -15
- package/dist/esm/{de-1bff1feb.js → de-d7118320.js} +15 -15
- package/dist/esm/{debounce-fee8e3c3.js → debounce-00cf60c6.js} +1 -1
- package/dist/esm/{dom-a9670cdd.js → dom-f4f22787.js} +3 -3
- package/dist/esm/{el-ccd29511.js → el-35d9a2fc.js} +15 -15
- package/dist/esm/{en-au-ab5c0d13.js → en-au-3adf07e6.js} +15 -15
- package/dist/esm/{en-ca-cae40b3c.js → en-ca-ab1799a2.js} +15 -15
- package/dist/esm/{en-gb-72939828.js → en-gb-444b81b3.js} +15 -15
- package/dist/esm/{es-b9d087e9.js → es-7c18a34b.js} +15 -15
- package/dist/esm/{es-mx-0a6c1828.js → es-mx-01a7e79e.js} +15 -15
- package/dist/esm/{et-d86367ed.js → et-6234ba3f.js} +15 -15
- package/dist/esm/{fi-68d91c2c.js → fi-27103443.js} +15 -15
- package/dist/esm/{filter-c8e3a6aa.js → filter-b21bfc20.js} +2 -2
- package/dist/esm/{floating-ui-a2eb27ec.js → floating-ui-3d14bdf7.js} +3 -3
- package/dist/esm/{focusTrapComponent-3be3180a.js → focusTrapComponent-e7010883.js} +2 -2
- package/dist/esm/{form-4c9b91ab.js → form-fbe12abb.js} +3 -3
- package/dist/esm/{fr-ch-d3014591.js → fr-ch-c8723578.js} +15 -15
- package/dist/esm/{fr-92812f54.js → fr-d463dcee.js} +15 -15
- package/dist/esm/{guid-434088a0.js → guid-2dcace43.js} +1 -1
- package/dist/esm/{he-3c9ec5c4.js → he-6ffeb1ea.js} +15 -15
- package/dist/esm/{hi-5290cec4.js → hi-5e8c1ab5.js} +15 -15
- package/dist/esm/{hr-59448348.js → hr-8ded1558.js} +15 -15
- package/dist/esm/{hu-a98d0659.js → hu-515ba4df.js} +15 -15
- package/dist/esm/{id-9551d33d.js → id-b1390ee4.js} +15 -15
- package/dist/esm/{index-93cd2078.js → index-abee91e3.js} +5 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-4a9e1385.js → interactive-e80da0c7.js} +1 -1
- package/dist/esm/{it-e80ea9bd.js → it-1ba6ea22.js} +15 -15
- package/dist/esm/{it-ch-2a5aa4ca.js → it-ch-5858811a.js} +15 -15
- package/dist/esm/{ja-5b926db7.js → ja-01f6180f.js} +15 -15
- package/dist/esm/{key-3a20e503.js → key-b26f1d0d.js} +1 -1
- package/dist/esm/{ko-b79bb59f.js → ko-2f0a1273.js} +15 -15
- package/dist/esm/{label-38bb96bc.js → label-78c2197e.js} +2 -2
- package/dist/esm/{loadable-2ab8ae79.js → loadable-057982bc.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-5212f2b3.js → locale-289745bc.js} +4 -4
- package/dist/esm/{lt-6205dfce.js → lt-a37ae6c6.js} +15 -15
- package/dist/esm/{lv-d2ba5866.js → lv-495d8376.js} +15 -15
- package/dist/esm/{math-bd5f791c.js → math-9ae2560a.js} +1 -1
- package/dist/esm/{mk-3525f8ad.js → mk-e5dff68b.js} +15 -15
- package/dist/esm/{nb-b3934cfe.js → nb-616e9f47.js} +15 -15
- package/dist/esm/{nl-3951feee.js → nl-1313721e.js} +15 -15
- package/dist/esm/{observers-cab14e54.js → observers-eba091c8.js} +1 -1
- package/dist/esm/{openCloseComponent-4e57aa6b.js → openCloseComponent-863f9fa3.js} +2 -2
- package/dist/esm/{pl-a24472a9.js → pl-539ac048.js} +15 -15
- package/dist/esm/{pt-br-d05cc269.js → pt-br-7b6a6292.js} +15 -15
- package/dist/esm/{pt-12e286b2.js → pt-cad7c27c.js} +15 -15
- package/dist/esm/{resources-467f8115.js → resources-31acfee0.js} +7 -7
- package/dist/esm/{resources-422bdc2e.js → resources-3d4f79b6.js} +5 -2
- package/dist/esm/{resources-deff01ca.js → resources-60d7442f.js} +1 -1
- package/dist/esm/{resources-e6b07fff.js → resources-94c51daf.js} +1 -1
- package/dist/esm/{resources-4cd41c97.js → resources-a8907a15.js} +1 -1
- package/dist/esm/{resources-58344d41.js → resources-bc4655a6.js} +1 -1
- package/dist/esm/{resources-6fb9bced.js → resources-ce2892a7.js} +1 -1
- package/dist/esm/{ro-0ff5d382.js → ro-de515bab.js} +15 -15
- package/dist/esm/{ru-958398d5.js → ru-908d2105.js} +15 -15
- package/dist/esm/{sk-569156ba.js → sk-cc6013cd.js} +15 -15
- package/dist/esm/{sl-4458bfe8.js → sl-f81a2d8c.js} +15 -15
- package/dist/esm/{sortableComponent-c3a0fd15.js → sortableComponent-831eebdd.js} +2 -2
- package/dist/esm/{sr-b85fa61f.js → sr-84527bdf.js} +15 -15
- package/dist/esm/{sv-8b020ccd.js → sv-3ede3eca.js} +15 -15
- package/dist/esm/{t9n-08715f71.js → t9n-be922331.js} +3 -3
- package/dist/esm/{th-892eb431.js → th-5467f045.js} +15 -15
- package/dist/esm/{throttle-d4b5accb.js → throttle-951ea709.js} +2 -2
- package/dist/esm/{tr-c2095429.js → tr-ad2ba23e.js} +15 -15
- package/dist/esm/{uk-abff2b69.js → uk-35b4d584.js} +15 -15
- package/dist/esm/{utils-e7cb3640.js → utils-b523ddd9.js} +1 -1
- package/dist/esm/{utils-4d5b05ba.js → utils-b8aec8f1.js} +3 -3
- package/dist/esm/{vi-36e55919.js → vi-bc9eb852.js} +15 -15
- package/dist/esm/{zh-cn-d414f67b.js → zh-cn-b83eeb66.js} +15 -15
- package/dist/esm/{zh-hk-39f0ef93.js → zh-hk-c63ac620.js} +15 -15
- package/dist/esm/{zh-tw-b14e1615.js → zh-tw-ff8f08d2.js} +15 -15
- package/dist/extras/docs-json.json +414 -36
- package/dist/extras/translations-json.json +1 -1
- package/dist/extras/vscode-data.json +106 -17
- 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/action-bar/action-bar.d.ts +4 -0
- package/dist/types/components/action-group/action-group.d.ts +4 -0
- package/dist/types/components/action-group/resources.d.ts +3 -0
- package/dist/types/components/action-pad/action-pad.d.ts +4 -0
- package/dist/types/components/combobox/combobox.d.ts +8 -6
- package/dist/types/components/combobox/utils.d.ts +2 -0
- package/dist/types/components/combobox-item/combobox-item.d.ts +17 -4
- package/dist/types/components/combobox-item-group/combobox-item-group.d.ts +6 -1
- package/dist/types/components/dropdown/dropdown.d.ts +4 -4
- package/dist/types/components/dropdown-group/dropdown-group.d.ts +13 -7
- package/dist/types/components/dropdown-item/dropdown-item.d.ts +16 -5
- package/dist/types/components/dropdown-item/resources.d.ts +1 -3
- package/dist/types/components/list/list.d.ts +5 -1
- package/dist/types/components/modal/modal.d.ts +10 -9
- package/dist/types/components/rating/interfaces.d.ts +1 -2
- package/dist/types/components/rating/rating.d.ts +10 -7
- package/dist/types/components/segmented-control/segmented-control.d.ts +6 -2
- package/dist/types/components/segmented-control-item/segmented-control-item.d.ts +19 -0
- package/dist/types/components/sheet/interfaces.d.ts +1 -0
- package/dist/types/components/sheet/resources.d.ts +7 -0
- package/dist/types/components/sheet/sheet.d.ts +100 -0
- package/dist/types/components/tree-item/interfaces.d.ts +5 -0
- package/dist/types/components/tree-item/tree-item.d.ts +5 -3
- package/dist/types/components.d.ts +210 -18
- package/dist/types/preact.d.ts +7 -0
- package/hydrate/index.js +888 -528
- package/package.json +2 -2
- package/dist/calcite/p-09b5a979.entry.js +0 -6
- package/dist/calcite/p-0dfda7d1.js +0 -6
- package/dist/calcite/p-12965674.entry.js +0 -6
- package/dist/calcite/p-13fa7cf8.entry.js +0 -6
- package/dist/calcite/p-22182ac9.entry.js +0 -6
- package/dist/calcite/p-22f829cd.entry.js +0 -6
- package/dist/calcite/p-3970be35.js +0 -6
- package/dist/calcite/p-419ff0ed.entry.js +0 -6
- package/dist/calcite/p-4961a34b.entry.js +0 -6
- package/dist/calcite/p-4a05e52b.js +0 -6
- package/dist/calcite/p-4af1defc.js +0 -6
- package/dist/calcite/p-5e80e984.entry.js +0 -6
- package/dist/calcite/p-6a8e1258.entry.js +0 -6
- package/dist/calcite/p-6aad914d.entry.js +0 -6
- package/dist/calcite/p-74e44080.entry.js +0 -6
- package/dist/calcite/p-8d3d979d.entry.js +0 -6
- package/dist/calcite/p-9ae24cf2.entry.js +0 -6
- package/dist/calcite/p-9b5a4aa5.entry.js +0 -6
- package/dist/calcite/p-9bcbba19.js +0 -6
- package/dist/calcite/p-a2f36e1b.entry.js +0 -6
- package/dist/calcite/p-a31327f7.entry.js +0 -6
- package/dist/calcite/p-a39e910c.entry.js +0 -6
- package/dist/calcite/p-aaddfd57.entry.js +0 -6
- package/dist/calcite/p-ac32f668.entry.js +0 -6
- package/dist/calcite/p-d6112f39.entry.js +0 -6
- package/dist/calcite/p-e949f0c4.entry.js +0 -6
- package/dist/calcite/p-f2699c0c.js +0 -6
- package/dist/types/components/dropdown-group/resources.d.ts +0 -5
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
|
-
* v1.7.0-next.
|
|
4
|
+
* v1.7.0-next.10
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -7022,7 +7022,7 @@ const SLOTS$y = {
|
|
|
7022
7022
|
actionsStart: "actions-start",
|
|
7023
7023
|
actionsEnd: "actions-end",
|
|
7024
7024
|
};
|
|
7025
|
-
const CSS$
|
|
7025
|
+
const CSS$18 = {
|
|
7026
7026
|
icon: "icon",
|
|
7027
7027
|
header: "header",
|
|
7028
7028
|
headerContent: "header-content",
|
|
@@ -7086,28 +7086,28 @@ class AccordionItem {
|
|
|
7086
7086
|
// --------------------------------------------------------------------------
|
|
7087
7087
|
renderActionsStart() {
|
|
7088
7088
|
const { el } = this;
|
|
7089
|
-
return getSlotted(el, SLOTS$y.actionsStart) ? (hAsync("div", { class: CSS$
|
|
7089
|
+
return getSlotted(el, SLOTS$y.actionsStart) ? (hAsync("div", { class: CSS$18.actionsStart }, hAsync("slot", { name: SLOTS$y.actionsStart }))) : null;
|
|
7090
7090
|
}
|
|
7091
7091
|
renderActionsEnd() {
|
|
7092
7092
|
const { el } = this;
|
|
7093
|
-
return getSlotted(el, SLOTS$y.actionsEnd) ? (hAsync("div", { class: CSS$
|
|
7093
|
+
return getSlotted(el, SLOTS$y.actionsEnd) ? (hAsync("div", { class: CSS$18.actionsEnd }, hAsync("slot", { name: SLOTS$y.actionsEnd }))) : null;
|
|
7094
7094
|
}
|
|
7095
7095
|
render() {
|
|
7096
7096
|
const { iconFlipRtl } = this;
|
|
7097
7097
|
const dir = getElementDir(this.el);
|
|
7098
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
7099
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
7098
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$18.iconStart, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "start", icon: this.iconStart, key: "icon-start", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
7099
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$18.iconEnd, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "end", icon: this.iconEnd, key: "icon-end", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
7100
7100
|
const { description } = this;
|
|
7101
7101
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
7102
7102
|
[`icon-position--${this.iconPosition}`]: true,
|
|
7103
7103
|
[`icon-type--${this.iconType}`]: true,
|
|
7104
|
-
} }, hAsync("div", { class: { [CSS$
|
|
7104
|
+
} }, hAsync("div", { class: { [CSS$18.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-expanded": toAriaBoolean(this.expanded), class: CSS$18.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, hAsync("div", { class: CSS$18.headerContainer }, iconStartEl, hAsync("div", { class: CSS$18.headerText }, hAsync("span", { class: CSS$18.heading }, this.heading), description ? hAsync("span", { class: CSS$18.description }, description) : null), iconEndEl), hAsync("calcite-icon", { class: CSS$18.expandIcon, icon: this.iconType === "chevron"
|
|
7105
7105
|
? "chevronDown"
|
|
7106
7106
|
: this.iconType === "caret"
|
|
7107
7107
|
? "caretDown"
|
|
7108
7108
|
: this.expanded
|
|
7109
7109
|
? "minus"
|
|
7110
|
-
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$
|
|
7110
|
+
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$18.content }, hAsync("slot", null)))));
|
|
7111
7111
|
}
|
|
7112
7112
|
//--------------------------------------------------------------------------
|
|
7113
7113
|
//
|
|
@@ -8027,7 +8027,7 @@ function defaultOnMessagesChange() {
|
|
|
8027
8027
|
mergeMessages(this);
|
|
8028
8028
|
}
|
|
8029
8029
|
|
|
8030
|
-
const CSS$
|
|
8030
|
+
const CSS$17 = {
|
|
8031
8031
|
button: "button",
|
|
8032
8032
|
buttonTextVisible: "button--text-visible",
|
|
8033
8033
|
buttonCompact: "button--compact",
|
|
@@ -8138,14 +8138,14 @@ class Action {
|
|
|
8138
8138
|
renderTextContainer() {
|
|
8139
8139
|
const { text, textEnabled } = this;
|
|
8140
8140
|
const textContainerClasses = {
|
|
8141
|
-
[CSS$
|
|
8142
|
-
[CSS$
|
|
8141
|
+
[CSS$17.textContainer]: true,
|
|
8142
|
+
[CSS$17.textContainerVisible]: textEnabled,
|
|
8143
8143
|
};
|
|
8144
8144
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
8145
8145
|
}
|
|
8146
8146
|
renderIndicatorText() {
|
|
8147
8147
|
const { indicator, messages, indicatorId, buttonId } = this;
|
|
8148
|
-
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$
|
|
8148
|
+
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$17.indicatorText, id: indicatorId, role: "region" }, indicator ? messages.indicator : null));
|
|
8149
8149
|
}
|
|
8150
8150
|
renderIconContainer() {
|
|
8151
8151
|
const { loading, icon, scale, el, iconFlipRtl } = this;
|
|
@@ -8156,21 +8156,21 @@ class Action {
|
|
|
8156
8156
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
8157
8157
|
const hasIconToDisplay = iconNode || el.children?.length;
|
|
8158
8158
|
const slotContainerNode = (hAsync("div", { class: {
|
|
8159
|
-
[CSS$
|
|
8160
|
-
[CSS$
|
|
8159
|
+
[CSS$17.slotContainer]: true,
|
|
8160
|
+
[CSS$17.slotContainerHidden]: loading,
|
|
8161
8161
|
} }, hAsync("slot", null)));
|
|
8162
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
8162
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$17.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
8163
8163
|
}
|
|
8164
8164
|
render() {
|
|
8165
8165
|
const { active, compact, disabled, loading, textEnabled, label, text, indicator, indicatorId, buttonId, messages, } = this;
|
|
8166
8166
|
const ariaLabel = `${label || text}${indicator ? ` (${messages.indicator})` : ""}`;
|
|
8167
8167
|
const buttonClasses = {
|
|
8168
|
-
[CSS$
|
|
8169
|
-
[CSS$
|
|
8170
|
-
[CSS$
|
|
8168
|
+
[CSS$17.button]: true,
|
|
8169
|
+
[CSS$17.buttonTextVisible]: textEnabled,
|
|
8170
|
+
[CSS$17.buttonCompact]: compact,
|
|
8171
8171
|
};
|
|
8172
8172
|
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,
|
|
8173
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
8173
|
+
// 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)
|
|
8174
8174
|
ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), hAsync("slot", { name: SLOTS$x.tooltip, onSlotchange: this.handleTooltipSlotChange }), this.renderIndicatorText()));
|
|
8175
8175
|
}
|
|
8176
8176
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -9479,6 +9479,9 @@ const SLOTS$w = {
|
|
|
9479
9479
|
const ICONS$j = {
|
|
9480
9480
|
menu: "ellipsis",
|
|
9481
9481
|
};
|
|
9482
|
+
const CSS$16 = {
|
|
9483
|
+
container: "container",
|
|
9484
|
+
};
|
|
9482
9485
|
|
|
9483
9486
|
const CSS$15 = {
|
|
9484
9487
|
menu: "menu",
|
|
@@ -9575,7 +9578,7 @@ const ExpandToggle = ({ expanded, expandText, collapseText, toggle, el, position
|
|
|
9575
9578
|
const expandIcon = end ? icons[1] : icons[0];
|
|
9576
9579
|
const collapseIcon = end ? icons[0] : icons[1];
|
|
9577
9580
|
const actionNode = (hAsync("calcite-action", { icon: expanded ? expandIcon : collapseIcon, onClick: toggle, scale: scale, text: text, textEnabled: expanded, title: !expanded && !tooltip ? text : null,
|
|
9578
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
9581
|
+
// 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)
|
|
9579
9582
|
ref: (referenceElement) => setTooltipReference({ tooltip, referenceElement, expanded, ref }) }));
|
|
9580
9583
|
return actionNode;
|
|
9581
9584
|
};
|
|
@@ -9676,6 +9679,7 @@ class ActionBar {
|
|
|
9676
9679
|
const tooltips = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-tooltip"));
|
|
9677
9680
|
this.expandTooltip = tooltips[0];
|
|
9678
9681
|
};
|
|
9682
|
+
this.actionsEndGroupLabel = undefined;
|
|
9679
9683
|
this.expandDisabled = false;
|
|
9680
9684
|
this.expanded = false;
|
|
9681
9685
|
this.layout = "vertical";
|
|
@@ -9778,11 +9782,11 @@ class ActionBar {
|
|
|
9778
9782
|
//
|
|
9779
9783
|
// --------------------------------------------------------------------------
|
|
9780
9784
|
renderBottomActionGroup() {
|
|
9781
|
-
const { expanded, expandDisabled, el, position, toggleExpand, scale, layout, messages } = this;
|
|
9785
|
+
const { expanded, expandDisabled, el, position, toggleExpand, scale, layout, messages, actionsEndGroupLabel, } = this;
|
|
9782
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,
|
|
9783
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
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)
|
|
9784
9788
|
ref: this.setExpandToggleRef })) : null;
|
|
9785
|
-
return (hAsync("calcite-action-group", { class: CSS$14.actionGroupEnd, hidden: this.expandDisabled && !(this.hasActionsEnd || this.hasBottomActions), layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$u.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), hAsync("slot", { name: SLOTS$u.bottomActions, onSlotchange: this.handleBottomActionsSlotChange }), hAsync("slot", { name: SLOTS$u.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode));
|
|
9789
|
+
return (hAsync("calcite-action-group", { class: CSS$14.actionGroupEnd, label: actionsEndGroupLabel, hidden: this.expandDisabled && !(this.hasActionsEnd || this.hasBottomActions), layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$u.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), hAsync("slot", { name: SLOTS$u.bottomActions, onSlotchange: this.handleBottomActionsSlotChange }), hAsync("slot", { name: SLOTS$u.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode));
|
|
9786
9790
|
}
|
|
9787
9791
|
render() {
|
|
9788
9792
|
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup()));
|
|
@@ -9802,6 +9806,7 @@ class ActionBar {
|
|
|
9802
9806
|
"$flags$": 9,
|
|
9803
9807
|
"$tagName$": "calcite-action-bar",
|
|
9804
9808
|
"$members$": {
|
|
9809
|
+
"actionsEndGroupLabel": [1, "actions-end-group-label"],
|
|
9805
9810
|
"expandDisabled": [516, "expand-disabled"],
|
|
9806
9811
|
"expanded": [1540],
|
|
9807
9812
|
"layout": [513],
|
|
@@ -9824,7 +9829,7 @@ class ActionBar {
|
|
|
9824
9829
|
}; }
|
|
9825
9830
|
}
|
|
9826
9831
|
|
|
9827
|
-
const actionGroupCss = "/*!@:host*/.sc-calcite-action-group-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-group-h *.sc-calcite-action-group{box-sizing:border-box}/*!@:host*/.sc-calcite-action-group-h{display:flex;flex-direction:column;padding:0px;--calcite-action-group-columns:3}/*!@:host([columns=\"1\"])*/[columns=\"1\"].sc-calcite-action-group-h{--calcite-action-group-columns:1}/*!@:host([columns=\"2\"])*/[columns=\"2\"].sc-calcite-action-group-h{--calcite-action-group-columns:2}/*!@:host([columns=\"3\"])*/[columns=\"3\"].sc-calcite-action-group-h{--calcite-action-group-columns:3}/*!@:host([columns=\"4\"])*/[columns=\"4\"].sc-calcite-action-group-h{--calcite-action-group-columns:4}/*!@:host([columns=\"5\"])*/[columns=\"5\"].sc-calcite-action-group-h{--calcite-action-group-columns:5}/*!@:host([columns=\"6\"])*/[columns=\"6\"].sc-calcite-action-group-h{--calcite-action-group-columns:6}/*!@:host(:first-child)*/.sc-calcite-action-group-h:first-child{padding-block-start:0px}/*!@:host([layout=horizontal])*/[layout=horizontal].sc-calcite-action-group-h{flex-direction:row}/*!@:host([layout=grid])*/[layout=grid].sc-calcite-action-group-h{display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}/*!@:host([hidden])*/[hidden].sc-calcite-action-group-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-action-group{display:none}";
|
|
9832
|
+
const actionGroupCss = "/*!@:host*/.sc-calcite-action-group-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-group-h *.sc-calcite-action-group{box-sizing:border-box}/*!@:host*/.sc-calcite-action-group-h{display:flex;flex-direction:column;padding:0px;--calcite-action-group-columns:3}/*!@.container*/.container.sc-calcite-action-group{display:flex;flex-direction:column}/*!@:host([columns=\"1\"])*/[columns=\"1\"].sc-calcite-action-group-h{--calcite-action-group-columns:1}/*!@:host([columns=\"2\"])*/[columns=\"2\"].sc-calcite-action-group-h{--calcite-action-group-columns:2}/*!@:host([columns=\"3\"])*/[columns=\"3\"].sc-calcite-action-group-h{--calcite-action-group-columns:3}/*!@:host([columns=\"4\"])*/[columns=\"4\"].sc-calcite-action-group-h{--calcite-action-group-columns:4}/*!@:host([columns=\"5\"])*/[columns=\"5\"].sc-calcite-action-group-h{--calcite-action-group-columns:5}/*!@:host([columns=\"6\"])*/[columns=\"6\"].sc-calcite-action-group-h{--calcite-action-group-columns:6}/*!@:host(:first-child)*/.sc-calcite-action-group-h:first-child{padding-block-start:0px}/*!@:host([layout=horizontal]),\n:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-action-group-h,[layout=horizontal].sc-calcite-action-group-h .container.sc-calcite-action-group{flex-direction:row}/*!@:host([layout=grid])*/[layout=grid].sc-calcite-action-group-h{display:grid}/*!@:host([layout=grid]) .container*/[layout=grid].sc-calcite-action-group-h .container.sc-calcite-action-group{display:grid;place-content:stretch;gap:1px;background-color:var(--calcite-ui-background);padding:1px;grid-template-columns:repeat(var(--calcite-action-group-columns), auto)}/*!@:host([hidden])*/[hidden].sc-calcite-action-group-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-action-group{display:none}";
|
|
9828
9833
|
|
|
9829
9834
|
/**
|
|
9830
9835
|
* @slot - A slot for adding a group of `calcite-action`s.
|
|
@@ -9846,6 +9851,7 @@ class ActionGroup {
|
|
|
9846
9851
|
this.hasMenuActions = slotChangeHasAssignedElement(event);
|
|
9847
9852
|
};
|
|
9848
9853
|
this.expanded = false;
|
|
9854
|
+
this.label = undefined;
|
|
9849
9855
|
this.layout = "vertical";
|
|
9850
9856
|
this.columns = undefined;
|
|
9851
9857
|
this.menuOpen = false;
|
|
@@ -9908,7 +9914,7 @@ class ActionGroup {
|
|
|
9908
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$j.menu, scale: scale, slot: SLOTS$v.trigger, text: messages.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$w.menuActions, onSlotchange: this.handleMenuActionsSlotChange }), hAsync("slot", { name: SLOTS$w.menuTooltip, slot: SLOTS$v.tooltip })));
|
|
9909
9915
|
}
|
|
9910
9916
|
render() {
|
|
9911
|
-
return (hAsync(
|
|
9917
|
+
return (hAsync("div", { "aria-label": this.label, class: CSS$16.container, role: "group" }, hAsync("slot", null), this.renderMenu()));
|
|
9912
9918
|
}
|
|
9913
9919
|
static get delegatesFocus() { return true; }
|
|
9914
9920
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -9924,6 +9930,7 @@ class ActionGroup {
|
|
|
9924
9930
|
"$tagName$": "calcite-action-group",
|
|
9925
9931
|
"$members$": {
|
|
9926
9932
|
"expanded": [516],
|
|
9933
|
+
"label": [1],
|
|
9927
9934
|
"layout": [513],
|
|
9928
9935
|
"columns": [514],
|
|
9929
9936
|
"menuOpen": [1540, "menu-open"],
|
|
@@ -10192,7 +10199,7 @@ class ActionMenu {
|
|
|
10192
10199
|
renderMenuButton() {
|
|
10193
10200
|
const { label, scale, expanded } = this;
|
|
10194
10201
|
const menuButtonSlot = (hAsync("slot", { name: SLOTS$v.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$15.defaultTrigger, icon: ICONS$i.menu, scale: scale, text: label, textEnabled: expanded,
|
|
10195
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
10202
|
+
// 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)
|
|
10196
10203
|
ref: this.setDefaultMenuButtonEl })));
|
|
10197
10204
|
return menuButtonSlot;
|
|
10198
10205
|
}
|
|
@@ -10285,6 +10292,7 @@ class ActionPad {
|
|
|
10285
10292
|
const tooltips = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-tooltip"));
|
|
10286
10293
|
this.expandTooltip = tooltips[0];
|
|
10287
10294
|
};
|
|
10295
|
+
this.actionsEndGroupLabel = undefined;
|
|
10288
10296
|
this.expandDisabled = false;
|
|
10289
10297
|
this.expanded = false;
|
|
10290
10298
|
this.layout = "vertical";
|
|
@@ -10356,11 +10364,11 @@ class ActionPad {
|
|
|
10356
10364
|
//
|
|
10357
10365
|
// --------------------------------------------------------------------------
|
|
10358
10366
|
renderBottomActionGroup() {
|
|
10359
|
-
const { expanded, expandDisabled, messages, el, position, toggleExpand, scale, layout } = this;
|
|
10367
|
+
const { expanded, expandDisabled, messages, el, position, toggleExpand, scale, layout, actionsEndGroupLabel, } = this;
|
|
10360
10368
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { collapseText: messages.collapse, el: el, expandText: messages.expand, expanded: expanded, position: position, scale: scale, toggle: toggleExpand, tooltip: this.expandTooltip,
|
|
10361
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
10369
|
+
// 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)
|
|
10362
10370
|
ref: this.setExpandToggleRef })) : null;
|
|
10363
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$13.actionGroupEnd, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$t.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode)) : null;
|
|
10371
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$13.actionGroupEnd, label: actionsEndGroupLabel, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$t.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode)) : null;
|
|
10364
10372
|
}
|
|
10365
10373
|
render() {
|
|
10366
10374
|
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$13.container }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup())));
|
|
@@ -10379,6 +10387,7 @@ class ActionPad {
|
|
|
10379
10387
|
"$flags$": 25,
|
|
10380
10388
|
"$tagName$": "calcite-action-pad",
|
|
10381
10389
|
"$members$": {
|
|
10390
|
+
"actionsEndGroupLabel": [1, "actions-end-group-label"],
|
|
10382
10391
|
"expandDisabled": [516, "expand-disabled"],
|
|
10383
10392
|
"expanded": [1540],
|
|
10384
10393
|
"layout": [513],
|
|
@@ -10633,7 +10642,7 @@ class Alert {
|
|
|
10633
10642
|
render() {
|
|
10634
10643
|
const { hasEndActions } = this;
|
|
10635
10644
|
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: "alert-close", onClick: this.closeAlert, type: "button",
|
|
10636
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
10645
|
+
// 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)
|
|
10637
10646
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
10638
10647
|
numberStringFormatter.numberFormatOptions = {
|
|
10639
10648
|
locale: this.effectiveLocale,
|
|
@@ -10653,7 +10662,7 @@ class Alert {
|
|
|
10653
10662
|
[placement]: true,
|
|
10654
10663
|
[CSS$12.slottedInShell]: this.slottedInShell,
|
|
10655
10664
|
}, onPointerEnter: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : null, onPointerLeave: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseLeave : null,
|
|
10656
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
10665
|
+
// 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)
|
|
10657
10666
|
ref: this.setTransitionEl }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$s.title }), hAsync("slot", { name: SLOTS$s.message }), hAsync("slot", { name: SLOTS$s.link })), hAsync("div", { class: CSS$12.actionsEnd, hidden: !hasEndActions }, slotNode), this.queueLength > 1 ? queueCount : null, closeButton, open && !queued && autoClose ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
10658
10667
|
}
|
|
10659
10668
|
// when an alert is opened or closed, update queue and determine active alert
|
|
@@ -11878,7 +11887,7 @@ const CSS$$ = {
|
|
|
11878
11887
|
buttonPaddingShrunk: "button-padding--shrunk",
|
|
11879
11888
|
};
|
|
11880
11889
|
|
|
11881
|
-
const buttonCss = "/*!@:host([disabled])*/[disabled].sc-calcite-button-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([loading]) *, :host([disabled]) *,\n:host([loading]) ::slotted(*),\n:host([disabled]) ::slotted(*)*/[loading].sc-calcite-button-h *.sc-calcite-button,[disabled].sc-calcite-button-h *.sc-calcite-button,.sc-calcite-button-h[loading] .sc-calcite-button-s>*,.sc-calcite-button-h[disabled] .sc-calcite-button-s>*{pointer-events:none}/*!@:host*/.sc-calcite-button-h{display:inline-block;inline-size:auto;vertical-align:middle}/*!@:host([round])*/[round].sc-calcite-button-h{border-radius:50px}/*!@:host([round]) a, :host([round]) button*/[round].sc-calcite-button-h a.sc-calcite-button,[round].sc-calcite-button-h button.sc-calcite-button{border-radius:50px}/*!@:host button,\n:host a*/.sc-calcite-button-h button.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button{outline-color:transparent}/*!@:host button:focus,\n:host a:focus*/.sc-calcite-button-h button.sc-calcite-button:focus,.sc-calcite-button-h a.sc-calcite-button: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 button,\n:host a*/.sc-calcite-button-h button.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:0.5rem;--calcite-button-padding-x-internal:7px;--calcite-button-padding-y-internal:3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-appearance:none;appearance:none;align-items:center;justify-content:center;border-radius:0px;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}/*!@:host button:hover,\n:host a:hover*/.sc-calcite-button-h button.sc-calcite-button:hover,.sc-calcite-button-h a.sc-calcite-button:hover{text-decoration-line:none}/*!@:host button span,\n:host a span*/.sc-calcite-button-h button.sc-calcite-button span.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button span.sc-calcite-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}/*!@.content*/.content.sc-calcite-button{margin-inline:var(--calcite-button-content-margin-internal)}/*!@.icon-start-empty .content*/.icon-start-empty.sc-calcite-button .content.sc-calcite-button{margin-inline-start:unset}/*!@.icon-end-empty .content*/.icon-end-empty.sc-calcite-button .content.sc-calcite-button{margin-inline-end:unset}/*!@:host([scale=m]) button,\n:host([scale=m]) a*/[scale=m].sc-calcite-button-h button.sc-calcite-button,[scale=m].sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:0.75rem}/*!@:host([scale=l]) button,\n:host([scale=l]) a*/[scale=l].sc-calcite-button-h button.sc-calcite-button,[scale=l].sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:1rem}/*!@:host([width=auto])*/[width=auto].sc-calcite-button-h{inline-size:auto}/*!@:host([width=half])*/[width=half].sc-calcite-button-h{inline-size:50%}/*!@:host([width=full])*/[width=full].sc-calcite-button-h{inline-size:100%}/*!@:host([alignment=center]:not([width=auto])) a,\n:host([alignment=center]:not([width=auto])) button*/[alignment=center].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=center].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:center}/*!@:host([alignment=start]:not([width=auto])) a,\n:host([alignment=start]:not([width=auto])) button*/[alignment=start].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=start].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:flex-start}/*!@:host([alignment=end]:not([width=auto])) a,\n:host([alignment=end]:not([width=auto])) button*/[alignment=end].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=end].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:flex-end}/*!@:host([alignment*=space-between]:not([width=auto])) a,\n:host([alignment*=space-between]:not([width=auto])) button*/[alignment*=space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment*=space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:space-between}/*!@:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start*/[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) .icon--start.sc-calcite-button{margin-inline-end:auto}/*!@:host([alignment=icon-start-space-between]:not([width=auto])) a,\n:host([alignment=icon-start-space-between]:not([width=auto])) button*/[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{text-align:unset}/*!@:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end*/[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) .icon--end.sc-calcite-button{margin-inline-start:auto}/*!@:host([alignment=icon-end-space-between]:not([width=auto])) a,\n:host([alignment=icon-end-space-between]:not([width=auto])) button*/[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{text-align:unset}/*!@:host([alignment=center]) a:not(.content--slotted) .icon--start + .icon--end,\n:host([alignment=center]) button:not(.content--slotted) .icon--start + .icon--end*/[alignment=center].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button,[alignment=center].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button{margin-inline-start:var(--calcite-button-content-margin-internal)}/*!@.icon*/.icon.sc-calcite-button{position:relative;margin:0px;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-button-h[disabled] .sc-calcite-button-s>[calcite-hydrated][disabled],[disabled].sc-calcite-button-h [calcite-hydrated][disabled].sc-calcite-button{opacity:1}/*!@:host([loading]) button,\n:host([loading]) a*/[loading].sc-calcite-button-h button.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button{opacity:var(--calcite-ui-opacity-disabled)}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(0.5)}100%{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}100%{inline-size:0;opacity:0;transform:scale(0.5)}}/*!@.calcite-button--loader*/.calcite-button--loader.sc-calcite-button{display:flex}/*!@.calcite-button--loader calcite-loader*/.calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button{margin:0px;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out}/*!@.calcite-button--loader calcite-loader.loading-in*/.calcite-button--loader.sc-calcite-button calcite-loader.loading-in.sc-calcite-button{animation-name:loader-in;animation-duration:var(--calcite-internal-animation-timing-slow)}/*!@.calcite-button--loader calcite-loader.loading-out*/.calcite-button--loader.sc-calcite-button calcite-loader.loading-out.sc-calcite-button{animation-name:loader-out;animation-duration:var(--calcite-internal-animation-timing-slow)}/*!@:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,\n:host([loading]) a.content--slotted .calcite-button--loader calcite-loader*/[loading].sc-calcite-button-h button.content--slotted.sc-calcite-button .calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button,[loading].sc-calcite-button-h a.content--slotted.sc-calcite-button .calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button{margin-inline-end:var(--calcite-button-content-margin-internal)}/*!@:host([loading]) button:not(.content--slotted) .icon--start,\n:host([loading]) button:not(.content--slotted) .icon--end,\n:host([loading]) a:not(.content--slotted) .icon--start,\n:host([loading]) a:not(.content--slotted) .icon--end*/[loading].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button,[loading].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--end.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--end.sc-calcite-button{display:none}/*!@:host([appearance]) button,\n:host([appearance]) a*/[appearance].sc-calcite-button-h button.sc-calcite-button,[appearance].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;border-color:transparent}/*!@:host([kind=brand]) button,\n:host([kind=brand]) a*/[kind=brand].sc-calcite-button-h button.sc-calcite-button,[kind=brand].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-inverse)}/*!@:host([kind=brand]) button:hover, :host([kind=brand]) button:focus,\n:host([kind=brand]) a:hover,\n:host([kind=brand]) a:focus*/[kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[kind=brand].sc-calcite-button-h a.sc-calcite-button:hover,[kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-brand-hover)}/*!@:host([kind=brand]) button:active,\n:host([kind=brand]) a:active*/[kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[kind=brand].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-brand-press)}/*!@:host([kind=brand]) button calcite-loader,\n:host([kind=brand]) a calcite-loader*/[kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([kind=danger]) button,\n:host([kind=danger]) a*/[kind=danger].sc-calcite-button-h button.sc-calcite-button,[kind=danger].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-danger);color:var(--calcite-ui-text-inverse)}/*!@:host([kind=danger]) button:hover, :host([kind=danger]) button:focus,\n:host([kind=danger]) a:hover,\n:host([kind=danger]) a:focus*/[kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[kind=danger].sc-calcite-button-h a.sc-calcite-button:hover,[kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-danger-hover)}/*!@:host([kind=danger]) button:active,\n:host([kind=danger]) a:active*/[kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[kind=danger].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-danger-press)}/*!@:host([kind=danger]) button calcite-loader,\n:host([kind=danger]) a calcite-loader*/[kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([kind=neutral]) button,\n:host([kind=neutral]) a*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button,[kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}/*!@:host([kind=neutral]) button:hover, :host([kind=neutral]) button:focus,\n:host([kind=neutral]) a:hover,\n:host([kind=neutral]) a:focus*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-foreground-2)}/*!@:host([kind=neutral]) button:active,\n:host([kind=neutral]) a:active*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-foreground-1)}/*!@:host([kind=neutral]) button calcite-loader,\n:host([kind=neutral]) a calcite-loader*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([kind=inverse]) button,\n:host([kind=inverse]) a*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button,[kind=inverse].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}/*!@:host([kind=inverse]) button:hover, :host([kind=inverse]) button:focus,\n:host([kind=inverse]) a:hover,\n:host([kind=inverse]) a:focus*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-inverse-hover)}/*!@:host([kind=inverse]) button:active,\n:host([kind=inverse]) a:active*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-inverse-press)}/*!@:host([kind=inverse]) button calcite-loader,\n:host([kind=inverse]) a calcite-loader*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([appearance=outline-fill]) button,\n:host([appearance=outline-fill]) a*/[appearance=outline-fill].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px transparent}/*!@:host([appearance=outline-fill][kind=brand]) button,\n:host([appearance=outline-fill][kind=brand]) a*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=brand]) button:hover,\n:host([appearance=outline-fill][kind=brand]) a:hover*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}/*!@:host([appearance=outline-fill][kind=brand]) button:focus,\n:host([appearance=outline-fill][kind=brand]) a:focus*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=brand]) button:active,\n:host([appearance=outline-fill][kind=brand]) a:active*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}/*!@:host([appearance=outline-fill][kind=brand]) button calcite-loader,\n:host([appearance=outline-fill][kind=brand]) a calcite-loader*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=danger]) button,\n:host([appearance=outline-fill][kind=danger]) a*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-danger);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=danger]) button:hover,\n:host([appearance=outline-fill][kind=danger]) a:hover*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}/*!@:host([appearance=outline-fill][kind=danger]) button:focus,\n:host([appearance=outline-fill][kind=danger]) a:focus*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=danger]) button:active,\n:host([appearance=outline-fill][kind=danger]) a:active*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}/*!@:host([appearance=outline-fill][kind=danger]) button calcite-loader,\n:host([appearance=outline-fill][kind=danger]) a calcite-loader*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=neutral]) button,\n:host([appearance=outline-fill][kind=neutral]) a*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:hover,\n:host([appearance=outline-fill][kind=neutral]) a:hover*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:focus,\n:host([appearance=outline-fill][kind=neutral]) a:focus*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:active,\n:host([appearance=outline-fill][kind=neutral]) a:active*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button calcite-loader,\n:host([appearance=outline-fill][kind=neutral]) a calcite-loader*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline-fill][kind=inverse]) button,\n:host([appearance=outline-fill][kind=inverse]) a*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}/*!@:host([appearance=outline-fill][kind=inverse]) button:hover,\n:host([appearance=outline-fill][kind=inverse]) a:hover*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}/*!@:host([appearance=outline-fill][kind=inverse]) button:focus,\n:host([appearance=outline-fill][kind=inverse]) a:focus*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}/*!@:host([appearance=outline-fill][kind=inverse]) button:active,\n:host([appearance=outline-fill][kind=inverse]) a:active*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}/*!@:host([appearance=outline-fill][kind=inverse]) button calcite-loader,\n:host([appearance=outline-fill][kind=inverse]) a calcite-loader*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline]) button,\n:host([appearance=outline]) a*/[appearance=outline].sc-calcite-button-h button.sc-calcite-button,[appearance=outline].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}/*!@:host([appearance=outline][kind=brand]) button,\n:host([appearance=outline][kind=brand]) a*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-brand);background-color:transparent;color:var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=brand]) button:hover,\n:host([appearance=outline][kind=brand]) a:hover*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}/*!@:host([appearance=outline][kind=brand]) button:focus,\n:host([appearance=outline][kind=brand]) a:focus*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=brand]) button:active,\n:host([appearance=outline][kind=brand]) a:active*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}/*!@:host([appearance=outline][kind=brand]) button calcite-loader,\n:host([appearance=outline][kind=brand]) a calcite-loader*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=danger]) button,\n:host([appearance=outline][kind=danger]) a*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-danger);background-color:transparent;color:var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=danger]) button:hover,\n:host([appearance=outline][kind=danger]) a:hover*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}/*!@:host([appearance=outline][kind=danger]) button:focus,\n:host([appearance=outline][kind=danger]) a:focus*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=danger]) button:active,\n:host([appearance=outline][kind=danger]) a:active*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}/*!@:host([appearance=outline][kind=danger]) button calcite-loader,\n:host([appearance=outline][kind=danger]) a calcite-loader*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=neutral]) button,\n:host([appearance=outline][kind=neutral]) a*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-1)}/*!@:host([appearance=outline][kind=neutral]) button:hover,\n:host([appearance=outline][kind=neutral]) a:hover*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button:focus,\n:host([appearance=outline][kind=neutral]) a:focus*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button:active,\n:host([appearance=outline][kind=neutral]) a:active*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button calcite-loader,\n:host([appearance=outline][kind=neutral]) a calcite-loader*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline][kind=inverse]) button,\n:host([appearance=outline][kind=inverse]) a*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}/*!@:host([appearance=outline][kind=inverse]) button:hover,\n:host([appearance=outline][kind=inverse]) a:hover*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}/*!@:host([appearance=outline][kind=inverse]) button:focus,\n:host([appearance=outline][kind=inverse]) a:focus*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}/*!@:host([appearance=outline][kind=inverse]) button:active,\n:host([appearance=outline][kind=inverse]) a:active*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}/*!@:host([appearance=outline][kind=inverse]) button calcite-loader,\n:host([appearance=outline][kind=inverse]) a calcite-loader*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline-fill][split-child=primary]) button,\n:host([appearance=outline][split-child=primary]) button*/[appearance=outline-fill][split-child=primary].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][split-child=primary].sc-calcite-button-h button.sc-calcite-button{border-inline-end-width:0;border-inline-start-width:1px}/*!@:host([appearance=outline-fill][split-child=secondary]) button,\n:host([appearance=outline][split-child=secondary]) button*/[appearance=outline-fill][split-child=secondary].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][split-child=secondary].sc-calcite-button-h button.sc-calcite-button{border-inline-start-width:0;border-inline-end-width:1px}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button,\n:host([appearance=transparent]:not(.enable-editing-button)) a*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button{background-color:transparent}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button:hover, :host([appearance=transparent]:not(.enable-editing-button)) button:focus,\n:host([appearance=transparent]:not(.enable-editing-button)) a:hover,\n:host([appearance=transparent]:not(.enable-editing-button)) a:focus*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:hover,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:focus,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:hover,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:focus{background-color:var(--calcite-button-transparent-hover)}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button:active,\n:host([appearance=transparent]:not(.enable-editing-button)) a:active*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:active,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:active{background-color:var(--calcite-button-transparent-press)}/*!@:host([appearance=transparent][kind=brand]) button,\n:host([appearance=transparent][kind=brand]) a*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=brand]) button:hover,\n:host([appearance=transparent][kind=brand]) a:hover*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{color:var(--calcite-ui-brand-hover)}/*!@:host([appearance=transparent][kind=brand]) button:focus,\n:host([appearance=transparent][kind=brand]) a:focus*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=brand]) button:active,\n:host([appearance=transparent][kind=brand]) a:active*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{color:var(--calcite-ui-brand-press)}/*!@:host([appearance=transparent][kind=brand]) button calcite-loader,\n:host([appearance=transparent][kind=brand]) a calcite-loader*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=danger]) button,\n:host([appearance=transparent][kind=danger]) a*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=danger]) button:hover,\n:host([appearance=transparent][kind=danger]) a:hover*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{color:var(--calcite-ui-danger-hover)}/*!@:host([appearance=transparent][kind=danger]) button:focus,\n:host([appearance=transparent][kind=danger]) a:focus*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=danger]) button:active,\n:host([appearance=transparent][kind=danger]) a:active*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{color:var(--calcite-ui-danger-press)}/*!@:host([appearance=transparent][kind=danger]) button calcite-loader,\n:host([appearance=transparent][kind=danger]) a calcite-loader*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,\n:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,\n:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader*/[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) button.sc-calcite-button,[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) a.sc-calcite-button,[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-ui-text-3);border-block-start-color:var(--calcite-ui-border-input);border-block-end-color:var(--calcite-ui-border-input);border-block-style:solid}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted)*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:not(.content--slotted){--calcite-button-padding-y-internal:0}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:hover{color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][kind=neutral].enable-editing-button) button*/[appearance=transparent][kind=neutral].enable-editing-button.sc-calcite-button-h button.sc-calcite-button{background-color:transparent}/*!@:host(.confirm-changes-button) button:focus,\n:host(.cancel-editing-button) button:focus,\n:host(.enable-editing-button) button:focus*/.confirm-changes-button.sc-calcite-button-h button.sc-calcite-button:focus,.cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:focus,.enable-editing-button.sc-calcite-button-h button.sc-calcite-button:focus{outline-offset:-2px}/*!@:host([appearance=transparent][kind=inverse]) button,\n:host([appearance=transparent][kind=inverse]) a,\n:host([appearance=transparent][kind=inverse]) calcite-loader*/[appearance=transparent][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=inverse].sc-calcite-button-h a.sc-calcite-button,[appearance=transparent][kind=inverse].sc-calcite-button-h calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([scale=s]) button.content--slotted,\n:host([scale=s]) a.content--slotted*/[scale=s].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=s].sc-calcite-button-h a.content--slotted.sc-calcite-button{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s][appearance=transparent]) button.content--slotted,\n:host([scale=s][appearance=transparent]) a.content--slotted*/[scale=s][appearance=transparent].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=s][appearance=transparent].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:0.5rem}/*!@:host([scale=s]) button,\n:host([scale=s]) a*/[scale=s].sc-calcite-button-h button.sc-calcite-button,[scale=s].sc-calcite-button-h a.sc-calcite-button{--calcite-button-padding-y-internal:3px}/*!@:host([scale=m]) button.content--slotted,\n:host([scale=m]) a.content--slotted*/[scale=m].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=m].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:11px;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) button,\n:host([scale=m]) a*/[scale=m].sc-calcite-button-h button.sc-calcite-button,[scale=m].sc-calcite-button-h a.sc-calcite-button{--calcite-button-padding-y-internal:7px}/*!@:host([scale=m][appearance=transparent]) button.content--slotted,\n:host([scale=m][appearance=transparent]) a.content--slotted*/[scale=m][appearance=transparent].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=m][appearance=transparent].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:0.75rem}/*!@:host([scale=l]) button.content--slotted,\n:host([scale=l]) a.content--slotted*/[scale=l].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=l].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .button-padding*/[scale=l].sc-calcite-button-h .button-padding.sc-calcite-button{--calcite-button-padding-x-internal:1rem;--calcite-button-padding-y-internal:11px}/*!@:host([scale=l]) .button-padding--shrunk*/[scale=l].sc-calcite-button-h .button-padding--shrunk.sc-calcite-button{--calcite-button-padding-y-internal:9px}/*!@:host([scale=s]) button:not(.content--slotted),\n:host([scale=s]) a:not(.content--slotted)*/[scale=s].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}/*!@:host([scale=m]) button:not(.content--slotted),\n:host([scale=m]) a:not(.content--slotted)*/[scale=m].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}/*!@:host([scale=l]) button:not(.content--slotted),\n:host([scale=l]) a:not(.content--slotted)*/[scale=l].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}/*!@:host([scale=l][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][appearance=transparent]) a:not(.content--slotted)*/[scale=l][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-y-internal:0.625rem}/*!@:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end]) a:not(.content--slotted)*/[scale=s][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=s][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:1.5rem}/*!@:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end]) a:not(.content--slotted)*/[scale=m][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=m][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:33px}/*!@:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted)*/[scale=l][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start + .icon--end,\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start + .icon--end*/[scale=l][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button,[scale=l][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button{margin-inline-start:1rem}/*!@:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=l][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:2.75rem}/*!@:host([hidden])*/[hidden].sc-calcite-button-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-button{display:none}";
|
|
11890
|
+
const buttonCss = "/*!@:host([disabled])*/[disabled].sc-calcite-button-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([loading]) *, :host([disabled]) *,\n:host([loading]) ::slotted(*),\n:host([disabled]) ::slotted(*)*/[loading].sc-calcite-button-h *.sc-calcite-button,[disabled].sc-calcite-button-h *.sc-calcite-button,.sc-calcite-button-h[loading] .sc-calcite-button-s>*,.sc-calcite-button-h[disabled] .sc-calcite-button-s>*{pointer-events:none}/*!@:host*/.sc-calcite-button-h{display:inline-block;inline-size:auto;vertical-align:middle}/*!@:host([round])*/[round].sc-calcite-button-h{border-radius:50px}/*!@:host([round]) a, :host([round]) button*/[round].sc-calcite-button-h a.sc-calcite-button,[round].sc-calcite-button-h button.sc-calcite-button{border-radius:50px}/*!@:host button,\n:host a*/.sc-calcite-button-h button.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button{outline-color:transparent}/*!@:host button:focus,\n:host a:focus*/.sc-calcite-button-h button.sc-calcite-button:focus,.sc-calcite-button-h a.sc-calcite-button: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 button,\n:host a*/.sc-calcite-button-h button.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:0.5rem;--calcite-button-padding-x-internal:7px;--calcite-button-padding-y-internal:3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-appearance:none;appearance:none;align-items:center;justify-content:center;border-radius:0px;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}/*!@:host button:hover,\n:host a:hover*/.sc-calcite-button-h button.sc-calcite-button:hover,.sc-calcite-button-h a.sc-calcite-button:hover{text-decoration-line:none}/*!@:host button span,\n:host a span*/.sc-calcite-button-h button.sc-calcite-button span.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button span.sc-calcite-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}/*!@.content*/.content.sc-calcite-button{margin-inline:var(--calcite-button-content-margin-internal)}/*!@.icon-start-empty .content*/.icon-start-empty.sc-calcite-button .content.sc-calcite-button{margin-inline-start:unset}/*!@.icon-end-empty .content*/.icon-end-empty.sc-calcite-button .content.sc-calcite-button{margin-inline-end:unset}/*!@:host([scale=m]) button,\n:host([scale=m]) a*/[scale=m].sc-calcite-button-h button.sc-calcite-button,[scale=m].sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:0.75rem}/*!@:host([scale=l]) button,\n:host([scale=l]) a*/[scale=l].sc-calcite-button-h button.sc-calcite-button,[scale=l].sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:1rem}/*!@:host([width=auto])*/[width=auto].sc-calcite-button-h{inline-size:auto}/*!@:host([width=half])*/[width=half].sc-calcite-button-h{inline-size:50%}/*!@:host([width=full])*/[width=full].sc-calcite-button-h{inline-size:100%}/*!@:host([alignment=center]:not([width=auto])) a,\n:host([alignment=center]:not([width=auto])) button*/[alignment=center].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=center].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:center}/*!@:host([alignment=start]:not([width=auto])) a,\n:host([alignment=start]:not([width=auto])) button*/[alignment=start].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=start].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:flex-start}/*!@:host([alignment=end]:not([width=auto])) a,\n:host([alignment=end]:not([width=auto])) button*/[alignment=end].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=end].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:flex-end}/*!@:host([alignment*=space-between]:not([width=auto])) a,\n:host([alignment*=space-between]:not([width=auto])) button*/[alignment*=space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment*=space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:space-between}/*!@:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start*/[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) .icon--start.sc-calcite-button{margin-inline-end:auto}/*!@:host([alignment=icon-start-space-between]:not([width=auto])) a,\n:host([alignment=icon-start-space-between]:not([width=auto])) button*/[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{text-align:unset}/*!@:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end*/[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) .icon--end.sc-calcite-button{margin-inline-start:auto}/*!@:host([alignment=icon-end-space-between]:not([width=auto])) a,\n:host([alignment=icon-end-space-between]:not([width=auto])) button*/[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{text-align:unset}/*!@:host([alignment=center]) a:not(.content--slotted) .icon--start + .icon--end,\n:host([alignment=center]) button:not(.content--slotted) .icon--start + .icon--end*/[alignment=center].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button,[alignment=center].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button{margin-inline-start:var(--calcite-button-content-margin-internal)}/*!@.icon*/.icon.sc-calcite-button{position:relative;margin:0px;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-button-h[disabled] .sc-calcite-button-s>[calcite-hydrated][disabled],[disabled].sc-calcite-button-h [calcite-hydrated][disabled].sc-calcite-button{opacity:1}/*!@:host([loading]) button,\n:host([loading]) a*/[loading].sc-calcite-button-h button.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button{opacity:var(--calcite-ui-opacity-disabled)}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(0.5)}100%{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}100%{inline-size:0;opacity:0;transform:scale(0.5)}}/*!@.calcite-button--loader*/.calcite-button--loader.sc-calcite-button{display:flex}/*!@.calcite-button--loader calcite-loader*/.calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button{margin:0px;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out}/*!@.calcite-button--loader calcite-loader.loading-in*/.calcite-button--loader.sc-calcite-button calcite-loader.loading-in.sc-calcite-button{animation-name:loader-in;animation-duration:var(--calcite-internal-animation-timing-slow)}/*!@.calcite-button--loader calcite-loader.loading-out*/.calcite-button--loader.sc-calcite-button calcite-loader.loading-out.sc-calcite-button{animation-name:loader-out;animation-duration:var(--calcite-internal-animation-timing-slow)}/*!@:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,\n:host([loading]) a.content--slotted .calcite-button--loader calcite-loader*/[loading].sc-calcite-button-h button.content--slotted.sc-calcite-button .calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button,[loading].sc-calcite-button-h a.content--slotted.sc-calcite-button .calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button{margin-inline-end:var(--calcite-button-content-margin-internal)}/*!@:host([loading]) button:not(.content--slotted) .icon--start,\n:host([loading]) button:not(.content--slotted) .icon--end,\n:host([loading]) a:not(.content--slotted) .icon--start,\n:host([loading]) a:not(.content--slotted) .icon--end*/[loading].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button,[loading].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--end.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--end.sc-calcite-button{display:none}/*!@:host([appearance]) button,\n:host([appearance]) a*/[appearance].sc-calcite-button-h button.sc-calcite-button,[appearance].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;border-color:transparent}/*!@:host([kind=brand]) button,\n:host([kind=brand]) a*/[kind=brand].sc-calcite-button-h button.sc-calcite-button,[kind=brand].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-inverse)}/*!@:host([kind=brand]) button:hover, :host([kind=brand]) button:focus,\n:host([kind=brand]) a:hover,\n:host([kind=brand]) a:focus*/[kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[kind=brand].sc-calcite-button-h a.sc-calcite-button:hover,[kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-brand-hover)}/*!@:host([kind=brand]) button:active,\n:host([kind=brand]) a:active*/[kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[kind=brand].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-brand-press)}/*!@:host([kind=brand]) button calcite-loader,\n:host([kind=brand]) a calcite-loader*/[kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([kind=danger]) button,\n:host([kind=danger]) a*/[kind=danger].sc-calcite-button-h button.sc-calcite-button,[kind=danger].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-danger);color:var(--calcite-ui-text-inverse)}/*!@:host([kind=danger]) button:hover, :host([kind=danger]) button:focus,\n:host([kind=danger]) a:hover,\n:host([kind=danger]) a:focus*/[kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[kind=danger].sc-calcite-button-h a.sc-calcite-button:hover,[kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-danger-hover)}/*!@:host([kind=danger]) button:active,\n:host([kind=danger]) a:active*/[kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[kind=danger].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-danger-press)}/*!@:host([kind=danger]) button calcite-loader,\n:host([kind=danger]) a calcite-loader*/[kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([kind=neutral]) button,\n:host([kind=neutral]) a*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button,[kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}/*!@:host([kind=neutral]) button:hover, :host([kind=neutral]) button:focus,\n:host([kind=neutral]) a:hover,\n:host([kind=neutral]) a:focus*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-foreground-2)}/*!@:host([kind=neutral]) button:active,\n:host([kind=neutral]) a:active*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-foreground-1)}/*!@:host([kind=neutral]) button calcite-loader,\n:host([kind=neutral]) a calcite-loader*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([kind=inverse]) button,\n:host([kind=inverse]) a*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button,[kind=inverse].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}/*!@:host([kind=inverse]) button:hover, :host([kind=inverse]) button:focus,\n:host([kind=inverse]) a:hover,\n:host([kind=inverse]) a:focus*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-inverse-hover)}/*!@:host([kind=inverse]) button:active,\n:host([kind=inverse]) a:active*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-inverse-press)}/*!@:host([kind=inverse]) button calcite-loader,\n:host([kind=inverse]) a calcite-loader*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([appearance=outline-fill]) button,\n:host([appearance=outline-fill]) a*/[appearance=outline-fill].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px transparent}/*!@:host([appearance=outline-fill][kind=brand]) button,\n:host([appearance=outline-fill][kind=brand]) a*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=brand]) button:hover,\n:host([appearance=outline-fill][kind=brand]) a:hover*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}/*!@:host([appearance=outline-fill][kind=brand]) button:focus,\n:host([appearance=outline-fill][kind=brand]) a:focus*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=brand]) button:active,\n:host([appearance=outline-fill][kind=brand]) a:active*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}/*!@:host([appearance=outline-fill][kind=brand]) button calcite-loader,\n:host([appearance=outline-fill][kind=brand]) a calcite-loader*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=danger]) button,\n:host([appearance=outline-fill][kind=danger]) a*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-danger);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=danger]) button:hover,\n:host([appearance=outline-fill][kind=danger]) a:hover*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}/*!@:host([appearance=outline-fill][kind=danger]) button:focus,\n:host([appearance=outline-fill][kind=danger]) a:focus*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=danger]) button:active,\n:host([appearance=outline-fill][kind=danger]) a:active*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}/*!@:host([appearance=outline-fill][kind=danger]) button calcite-loader,\n:host([appearance=outline-fill][kind=danger]) a calcite-loader*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=neutral]) button,\n:host([appearance=outline-fill][kind=neutral]) a*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-1)}/*!@:host([appearance=outline-fill][kind=neutral]) button:hover,\n:host([appearance=outline-fill][kind=neutral]) a:hover*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:focus,\n:host([appearance=outline-fill][kind=neutral]) a:focus*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:active,\n:host([appearance=outline-fill][kind=neutral]) a:active*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button calcite-loader,\n:host([appearance=outline-fill][kind=neutral]) a calcite-loader*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline-fill][kind=inverse]) button,\n:host([appearance=outline-fill][kind=inverse]) a*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}/*!@:host([appearance=outline-fill][kind=inverse]) button:hover,\n:host([appearance=outline-fill][kind=inverse]) a:hover*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}/*!@:host([appearance=outline-fill][kind=inverse]) button:focus,\n:host([appearance=outline-fill][kind=inverse]) a:focus*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}/*!@:host([appearance=outline-fill][kind=inverse]) button:active,\n:host([appearance=outline-fill][kind=inverse]) a:active*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}/*!@:host([appearance=outline-fill][kind=inverse]) button calcite-loader,\n:host([appearance=outline-fill][kind=inverse]) a calcite-loader*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline]) button,\n:host([appearance=outline]) a*/[appearance=outline].sc-calcite-button-h button.sc-calcite-button,[appearance=outline].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}/*!@:host([appearance=outline][kind=brand]) button,\n:host([appearance=outline][kind=brand]) a*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-brand);background-color:transparent;color:var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=brand]) button:hover,\n:host([appearance=outline][kind=brand]) a:hover*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}/*!@:host([appearance=outline][kind=brand]) button:focus,\n:host([appearance=outline][kind=brand]) a:focus*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=brand]) button:active,\n:host([appearance=outline][kind=brand]) a:active*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}/*!@:host([appearance=outline][kind=brand]) button calcite-loader,\n:host([appearance=outline][kind=brand]) a calcite-loader*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=danger]) button,\n:host([appearance=outline][kind=danger]) a*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-danger);background-color:transparent;color:var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=danger]) button:hover,\n:host([appearance=outline][kind=danger]) a:hover*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}/*!@:host([appearance=outline][kind=danger]) button:focus,\n:host([appearance=outline][kind=danger]) a:focus*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=danger]) button:active,\n:host([appearance=outline][kind=danger]) a:active*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}/*!@:host([appearance=outline][kind=danger]) button calcite-loader,\n:host([appearance=outline][kind=danger]) a calcite-loader*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=neutral]) button,\n:host([appearance=outline][kind=neutral]) a*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-1)}/*!@:host([appearance=outline][kind=neutral]) button:hover,\n:host([appearance=outline][kind=neutral]) a:hover*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button:focus,\n:host([appearance=outline][kind=neutral]) a:focus*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button:active,\n:host([appearance=outline][kind=neutral]) a:active*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button calcite-loader,\n:host([appearance=outline][kind=neutral]) a calcite-loader*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline][kind=inverse]) button,\n:host([appearance=outline][kind=inverse]) a*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}/*!@:host([appearance=outline][kind=inverse]) button:hover,\n:host([appearance=outline][kind=inverse]) a:hover*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}/*!@:host([appearance=outline][kind=inverse]) button:focus,\n:host([appearance=outline][kind=inverse]) a:focus*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}/*!@:host([appearance=outline][kind=inverse]) button:active,\n:host([appearance=outline][kind=inverse]) a:active*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}/*!@:host([appearance=outline][kind=inverse]) button calcite-loader,\n:host([appearance=outline][kind=inverse]) a calcite-loader*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline-fill][split-child=primary]) button,\n:host([appearance=outline][split-child=primary]) button*/[appearance=outline-fill][split-child=primary].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][split-child=primary].sc-calcite-button-h button.sc-calcite-button{border-inline-end-width:0;border-inline-start-width:1px}/*!@:host([appearance=outline-fill][split-child=secondary]) button,\n:host([appearance=outline][split-child=secondary]) button*/[appearance=outline-fill][split-child=secondary].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][split-child=secondary].sc-calcite-button-h button.sc-calcite-button{border-inline-start-width:0;border-inline-end-width:1px}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button,\n:host([appearance=transparent]:not(.enable-editing-button)) a*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button{background-color:transparent}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button:hover, :host([appearance=transparent]:not(.enable-editing-button)) button:focus,\n:host([appearance=transparent]:not(.enable-editing-button)) a:hover,\n:host([appearance=transparent]:not(.enable-editing-button)) a:focus*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:hover,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:focus,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:hover,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:focus{background-color:var(--calcite-button-transparent-hover)}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button:active,\n:host([appearance=transparent]:not(.enable-editing-button)) a:active*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:active,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:active{background-color:var(--calcite-button-transparent-press)}/*!@:host([appearance=transparent][kind=brand]) button,\n:host([appearance=transparent][kind=brand]) a*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=brand]) button:hover,\n:host([appearance=transparent][kind=brand]) a:hover*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{color:var(--calcite-ui-brand-hover)}/*!@:host([appearance=transparent][kind=brand]) button:focus,\n:host([appearance=transparent][kind=brand]) a:focus*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=brand]) button:active,\n:host([appearance=transparent][kind=brand]) a:active*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{color:var(--calcite-ui-brand-press)}/*!@:host([appearance=transparent][kind=brand]) button calcite-loader,\n:host([appearance=transparent][kind=brand]) a calcite-loader*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=danger]) button,\n:host([appearance=transparent][kind=danger]) a*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=danger]) button:hover,\n:host([appearance=transparent][kind=danger]) a:hover*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{color:var(--calcite-ui-danger-hover)}/*!@:host([appearance=transparent][kind=danger]) button:focus,\n:host([appearance=transparent][kind=danger]) a:focus*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=danger]) button:active,\n:host([appearance=transparent][kind=danger]) a:active*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{color:var(--calcite-ui-danger-press)}/*!@:host([appearance=transparent][kind=danger]) button calcite-loader,\n:host([appearance=transparent][kind=danger]) a calcite-loader*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,\n:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,\n:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader*/[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) button.sc-calcite-button,[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) a.sc-calcite-button,[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-ui-text-3);border-block-start-color:var(--calcite-ui-border-input);border-block-end-color:var(--calcite-ui-border-input);border-block-style:solid}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted)*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:not(.content--slotted){--calcite-button-padding-y-internal:0}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:hover{color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][kind=neutral].enable-editing-button) button*/[appearance=transparent][kind=neutral].enable-editing-button.sc-calcite-button-h button.sc-calcite-button{background-color:transparent}/*!@:host(.confirm-changes-button) button:focus,\n:host(.cancel-editing-button) button:focus,\n:host(.enable-editing-button) button:focus*/.confirm-changes-button.sc-calcite-button-h button.sc-calcite-button:focus,.cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:focus,.enable-editing-button.sc-calcite-button-h button.sc-calcite-button:focus{outline-offset:-2px}/*!@:host([appearance=transparent][kind=inverse]) button,\n:host([appearance=transparent][kind=inverse]) a,\n:host([appearance=transparent][kind=inverse]) calcite-loader*/[appearance=transparent][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=inverse].sc-calcite-button-h a.sc-calcite-button,[appearance=transparent][kind=inverse].sc-calcite-button-h calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([scale=s]) button.content--slotted,\n:host([scale=s]) a.content--slotted*/[scale=s].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=s].sc-calcite-button-h a.content--slotted.sc-calcite-button{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s][appearance=transparent]) button.content--slotted,\n:host([scale=s][appearance=transparent]) a.content--slotted*/[scale=s][appearance=transparent].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=s][appearance=transparent].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:0.5rem}/*!@:host([scale=s]) button,\n:host([scale=s]) a*/[scale=s].sc-calcite-button-h button.sc-calcite-button,[scale=s].sc-calcite-button-h a.sc-calcite-button{--calcite-button-padding-y-internal:3px}/*!@:host([scale=m]) button.content--slotted,\n:host([scale=m]) a.content--slotted*/[scale=m].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=m].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:11px;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) button,\n:host([scale=m]) a*/[scale=m].sc-calcite-button-h button.sc-calcite-button,[scale=m].sc-calcite-button-h a.sc-calcite-button{--calcite-button-padding-y-internal:7px}/*!@:host([scale=m][appearance=transparent]) button.content--slotted,\n:host([scale=m][appearance=transparent]) a.content--slotted*/[scale=m][appearance=transparent].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=m][appearance=transparent].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:0.75rem}/*!@:host([scale=l]) button.content--slotted,\n:host([scale=l]) a.content--slotted*/[scale=l].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=l].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .button-padding*/[scale=l].sc-calcite-button-h .button-padding.sc-calcite-button{--calcite-button-padding-x-internal:1rem;--calcite-button-padding-y-internal:11px}/*!@:host([scale=l]) .button-padding--shrunk*/[scale=l].sc-calcite-button-h .button-padding--shrunk.sc-calcite-button{--calcite-button-padding-y-internal:9px}/*!@:host([scale=s]) button:not(.content--slotted),\n:host([scale=s]) a:not(.content--slotted)*/[scale=s].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}/*!@:host([scale=m]) button:not(.content--slotted),\n:host([scale=m]) a:not(.content--slotted)*/[scale=m].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}/*!@:host([scale=l]) button:not(.content--slotted),\n:host([scale=l]) a:not(.content--slotted)*/[scale=l].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}/*!@:host([scale=l][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][appearance=transparent]) a:not(.content--slotted)*/[scale=l][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-y-internal:0.625rem}/*!@:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end]) a:not(.content--slotted)*/[scale=s][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=s][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:1.5rem}/*!@:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end]) a:not(.content--slotted)*/[scale=m][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=m][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:33px}/*!@:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted)*/[scale=l][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start + .icon--end,\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start + .icon--end*/[scale=l][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button,[scale=l][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button{margin-inline-start:1rem}/*!@:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=l][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:2.75rem}/*!@:host([hidden])*/[hidden].sc-calcite-button-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-button{display:none}";
|
|
11882
11891
|
|
|
11883
11892
|
/** Passing a 'href' will render an anchor link, instead of a button. Role will be set to link, or button, depending on this. */
|
|
11884
11893
|
/** It is the consumers responsibility to add aria information, rel, target, for links, and any button attributes for form submission */
|
|
@@ -12543,7 +12552,7 @@ class CalciteMenuItem {
|
|
|
12543
12552
|
? "chevron-up"
|
|
12544
12553
|
: "chevron-down"
|
|
12545
12554
|
: dirChevron, key: CSS$_.dropdownAction, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, text: this.messages.open,
|
|
12546
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
12555
|
+
// 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)
|
|
12547
12556
|
ref: (el) => (this.dropdownActionEl = el) }));
|
|
12548
12557
|
}
|
|
12549
12558
|
renderSubmenuItems(dir) {
|
|
@@ -12568,7 +12577,7 @@ class CalciteMenuItem {
|
|
|
12568
12577
|
[CSS$_.container]: true,
|
|
12569
12578
|
[CSS$_.isParentVertical]: this.topLevelMenuLayout === "vertical",
|
|
12570
12579
|
}, role: "none" }, hAsync("div", { class: CSS$_.itemContent }, hAsync("a", { "aria-current": this.isFocused ? "page" : false, "aria-expanded": this.open, "aria-haspopup": this.hasSubmenu, "aria-label": this.label, class: { [CSS$_.layoutVertical]: this.layout === "vertical", [CSS$_.content]: true }, href: this.href, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, rel: this.rel, role: "menuitem", tabIndex: this.isTopLevelItem ? 0 : -1, target: this.target,
|
|
12571
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
12580
|
+
// 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)
|
|
12572
12581
|
ref: (el) => (this.anchorEl = el) }, this.renderItemContent(dir)), this.href && this.hasSubmenu ? this.renderDropdownAction(dir) : null), this.renderSubmenuItems(dir))));
|
|
12573
12582
|
}
|
|
12574
12583
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -12746,7 +12755,7 @@ class CalciteNavigation {
|
|
|
12746
12755
|
//--------------------------------------------------------------------------
|
|
12747
12756
|
renderMenuAction() {
|
|
12748
12757
|
return (hAsync("slot", { name: SLOTS$q.navigationAction, onSlotchange: this.handleMenuActionSlotChange }, this.navigationAction && (hAsync("calcite-action", { icon: ICONS$e.hamburger, onClick: this.actionClickHandler, text: this.label,
|
|
12749
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
12758
|
+
// 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)
|
|
12750
12759
|
ref: (el) => (this.navigationActionEl = el) }))));
|
|
12751
12760
|
}
|
|
12752
12761
|
render() {
|
|
@@ -13189,7 +13198,7 @@ class Checkbox {
|
|
|
13189
13198
|
// --------------------------------------------------------------------------
|
|
13190
13199
|
render() {
|
|
13191
13200
|
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: "toggle", onBlur: this.onToggleBlur, onFocus: this.onToggleFocus, role: "checkbox", tabIndex: this.disabled ? undefined : 0,
|
|
13192
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
13201
|
+
// 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)
|
|
13193
13202
|
ref: (toggleEl) => (this.toggleEl = toggleEl) }, hAsync("svg", { "aria-hidden": "true", class: "check-svg", viewBox: "0 0 16 16" }, hAsync("path", { d: this.getPath() })), hAsync("slot", null)), hAsync(HiddenFormInputSlot, { component: this })));
|
|
13194
13203
|
}
|
|
13195
13204
|
get el() { return getElement(this); }
|
|
@@ -13403,7 +13412,7 @@ class Chip {
|
|
|
13403
13412
|
}
|
|
13404
13413
|
renderCloseButton() {
|
|
13405
13414
|
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$V.close, onClick: this.close, onKeyDown: this.closeButtonKeyDownHandler, tabIndex: this.disabled ? -1 : 0,
|
|
13406
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
13415
|
+
// 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)
|
|
13407
13416
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$d.close, scale: this.scale === "l" ? "m" : "s" })));
|
|
13408
13417
|
}
|
|
13409
13418
|
renderIcon() {
|
|
@@ -13434,7 +13443,7 @@ class Chip {
|
|
|
13434
13443
|
(this.selectionMode === "none" ||
|
|
13435
13444
|
(!!this.selectionMode && this.selectionMode !== "multiple" && !this.selected)),
|
|
13436
13445
|
}, onClick: this.handleEmittingEvent, role: role, tabIndex: disableInteraction ? -1 : 0,
|
|
13437
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
13446
|
+
// 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)
|
|
13438
13447
|
ref: (el) => (this.containerEl = el) }, this.selectionMode !== "none" && this.renderSelectionIcon(), this.renderChipImage(), this.icon && this.renderIcon(), hAsync("span", { class: CSS$V.title }, hAsync("slot", null)), this.closable && this.renderCloseButton())));
|
|
13439
13448
|
}
|
|
13440
13449
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -13505,7 +13514,7 @@ class ChipGroup {
|
|
|
13505
13514
|
};
|
|
13506
13515
|
this.setSelectedItems = (emit, elToMatch) => {
|
|
13507
13516
|
if (elToMatch) {
|
|
13508
|
-
this.items
|
|
13517
|
+
this.items?.forEach((el) => {
|
|
13509
13518
|
const matchingEl = elToMatch === el;
|
|
13510
13519
|
switch (this.selectionMode) {
|
|
13511
13520
|
case "multiple":
|
|
@@ -13522,7 +13531,7 @@ class ChipGroup {
|
|
|
13522
13531
|
}
|
|
13523
13532
|
});
|
|
13524
13533
|
}
|
|
13525
|
-
this.selectedItems = this.items
|
|
13534
|
+
this.selectedItems = this.items?.filter((el) => el.selected);
|
|
13526
13535
|
if (emit) {
|
|
13527
13536
|
this.calciteChipGroupSelect.emit();
|
|
13528
13537
|
}
|
|
@@ -13565,7 +13574,7 @@ class ChipGroup {
|
|
|
13565
13574
|
//--------------------------------------------------------------------------
|
|
13566
13575
|
calciteInternalChipKeyEventListener(event) {
|
|
13567
13576
|
if (event.composedPath().includes(this.el)) {
|
|
13568
|
-
const interactiveItems = this.items
|
|
13577
|
+
const interactiveItems = this.items?.filter((el) => !el.disabled);
|
|
13569
13578
|
switch (event.detail.key) {
|
|
13570
13579
|
case "ArrowRight":
|
|
13571
13580
|
focusElementInGroup(interactiveItems, event.detail.target, "next");
|
|
@@ -13584,18 +13593,18 @@ class ChipGroup {
|
|
|
13584
13593
|
}
|
|
13585
13594
|
calciteChipCloseListener(event) {
|
|
13586
13595
|
const item = event.target;
|
|
13587
|
-
if (this.items
|
|
13588
|
-
if (this.items
|
|
13596
|
+
if (this.items?.includes(item)) {
|
|
13597
|
+
if (this.items?.indexOf(item) > 0) {
|
|
13589
13598
|
focusElementInGroup(this.items, item, "previous");
|
|
13590
13599
|
}
|
|
13591
|
-
else if (this.items
|
|
13600
|
+
else if (this.items?.indexOf(item) === 0) {
|
|
13592
13601
|
focusElementInGroup(this.items, item, "next");
|
|
13593
13602
|
}
|
|
13594
13603
|
else {
|
|
13595
13604
|
focusElementInGroup(this.items, item, "first");
|
|
13596
13605
|
}
|
|
13597
13606
|
}
|
|
13598
|
-
this.items = this.items
|
|
13607
|
+
this.items = this.items?.filter((el) => el !== item);
|
|
13599
13608
|
}
|
|
13600
13609
|
calciteChipSelectListener(event) {
|
|
13601
13610
|
if (event.composedPath().includes(this.el)) {
|
|
@@ -16396,26 +16405,26 @@ class ColorPicker {
|
|
|
16396
16405
|
const [adjustedHueScopeLeft, adjustedHueScopeTop] = this.getAdjustedScopePosition(hueLeft, hueTop);
|
|
16397
16406
|
const [adjustedOpacityScopeLeft, adjustedOpacityScopeTop] = this.getAdjustedScopePosition(opacityLeft, opacityTop);
|
|
16398
16407
|
return (hAsync("div", { class: CSS$U.container }, hAsync("div", { class: CSS$U.controlAndScope }, hAsync("canvas", { class: CSS$U.colorField, onPointerDown: this.handleColorFieldPointerDown,
|
|
16399
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16408
|
+
// 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)
|
|
16400
16409
|
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$U.scope]: true, [CSS$U.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, role: "slider", style: {
|
|
16401
16410
|
top: `${adjustedColorFieldScopeTop || 0}px`,
|
|
16402
16411
|
left: `${adjustedColorFieldScopeLeft || 0}px`,
|
|
16403
16412
|
}, tabindex: "0",
|
|
16404
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16413
|
+
// 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)
|
|
16405
16414
|
ref: this.storeColorFieldScope })), hAsync("div", { class: CSS$U.previewAndSliders }, hAsync("calcite-color-picker-swatch", { class: CSS$U.preview, color: selectedColorInHex, scale: "l" }), hAsync("div", { class: CSS$U.sliders }, hAsync("div", { class: CSS$U.controlAndScope }, hAsync("canvas", { class: { [CSS$U.slider]: true, [CSS$U.hueSlider]: true }, onPointerDown: this.handleHueSliderPointerDown,
|
|
16406
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16415
|
+
// 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)
|
|
16407
16416
|
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$U.scope]: true, [CSS$U.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: {
|
|
16408
16417
|
top: `${adjustedHueScopeTop}px`,
|
|
16409
16418
|
left: `${adjustedHueScopeLeft}px`,
|
|
16410
16419
|
}, tabindex: "0",
|
|
16411
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16420
|
+
// 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)
|
|
16412
16421
|
ref: this.storeHueScope })), alphaChannel ? (hAsync("div", { class: CSS$U.controlAndScope }, hAsync("canvas", { class: { [CSS$U.slider]: true, [CSS$U.opacitySlider]: true }, onPointerDown: this.handleOpacitySliderPointerDown,
|
|
16413
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16422
|
+
// 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)
|
|
16414
16423
|
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$U.scope]: true, [CSS$U.opacityScope]: true }, onKeyDown: this.handleOpacityScopeKeyDown, role: "slider", style: {
|
|
16415
16424
|
top: `${adjustedOpacityScopeTop}px`,
|
|
16416
16425
|
left: `${adjustedOpacityScopeLeft}px`,
|
|
16417
16426
|
}, tabindex: "0",
|
|
16418
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16427
|
+
// 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)
|
|
16419
16428
|
ref: this.storeOpacityScope }))) : null)), noHex && noChannels ? null : (hAsync("div", { class: {
|
|
16420
16429
|
[CSS$U.controlSection]: true,
|
|
16421
16430
|
[CSS$U.section]: true,
|
|
@@ -16963,9 +16972,9 @@ class ColorPickerHexInput {
|
|
|
16963
16972
|
const opacityInputValue = this.formatOpacityForInternalInput(internalColor);
|
|
16964
16973
|
const inputScale = scale === "l" ? "m" : "s";
|
|
16965
16974
|
return (hAsync("div", { class: CSS$T.container }, hAsync("calcite-input-text", { class: CSS$T.hexInput, label: messages?.hex || hexLabel, maxLength: 6, onCalciteInputTextChange: this.onHexInputChange, onCalciteInternalInputTextBlur: this.onHexInputBlur, onKeyDown: this.onInputKeyDown, onPaste: this.onHexInputPaste, prefixText: "#", scale: inputScale, value: hexInputValue,
|
|
16966
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16975
|
+
// 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)
|
|
16967
16976
|
ref: this.storeHexInputRef }), alphaChannel ? (hAsync("calcite-input-number", { class: CSS$T.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,
|
|
16968
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
16977
|
+
// 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)
|
|
16969
16978
|
ref: this.storeOpacityInputRef })) : null));
|
|
16970
16979
|
}
|
|
16971
16980
|
//--------------------------------------------------------------------------
|
|
@@ -18878,18 +18887,21 @@ function getDepth$1(element) {
|
|
|
18878
18887
|
return 0;
|
|
18879
18888
|
}
|
|
18880
18889
|
}
|
|
18890
|
+
function isSingleLike(selectionMode) {
|
|
18891
|
+
return selectionMode.includes("single");
|
|
18892
|
+
}
|
|
18881
18893
|
|
|
18882
18894
|
const CSS$Q = {
|
|
18883
18895
|
button: "x-button",
|
|
18884
18896
|
};
|
|
18885
18897
|
function XButton({ disabled, key, label, onClick, ref, scale, }) {
|
|
18886
18898
|
return (hAsync("button", { "aria-label": label, class: CSS$Q.button, disabled: disabled, key: key, onClick: onClick, tabIndex: -1, type: "button",
|
|
18887
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
18899
|
+
// 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)
|
|
18888
18900
|
ref: ref },
|
|
18889
18901
|
hAsync("calcite-icon", { icon: "x", scale: scale === "l" ? "m" : "s" })));
|
|
18890
18902
|
}
|
|
18891
18903
|
|
|
18892
|
-
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;-webkit-appearance:none;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:
|
|
18904
|
+
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;-webkit-appearance:none;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-end: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{display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px}/*!@.input*/.input.sc-calcite-combobox{flex-grow:1;-webkit-appearance:none;appearance:none;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);min-inline-size:120px;margin-block-end:var(--calcite-combobox-item-spacing-unit-s)}/*!@.input:focus*/.input.sc-calcite-combobox:focus{outline:2px solid transparent;outline-offset:2px}/*!@.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-l)}/*!@.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;inline-size:1rem;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}/*!@.chip*/.chip.sc-calcite-combobox{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);margin-inline:0 var(--calcite-combobox-item-spacing-unit-s);max-inline-size:100%}/*!@.chip--active*/.chip--active.sc-calcite-combobox{background-color:var(--calcite-ui-foreground-3)}/*!@.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)}";
|
|
18893
18905
|
|
|
18894
18906
|
const isGroup = (el) => el.tagName === ComboboxItemGroup$1;
|
|
18895
18907
|
const itemUidPrefix = "combobox-item-";
|
|
@@ -19097,7 +19109,7 @@ class Combobox {
|
|
|
19097
19109
|
if (this.allowCustomValues && this.text.trim().length) {
|
|
19098
19110
|
this.addCustomChip(this.text);
|
|
19099
19111
|
}
|
|
19100
|
-
if (this.selectionMode
|
|
19112
|
+
if (isSingleLike(this.selectionMode)) {
|
|
19101
19113
|
if (this.textInput) {
|
|
19102
19114
|
this.textInput.value = "";
|
|
19103
19115
|
}
|
|
@@ -19168,6 +19180,10 @@ class Combobox {
|
|
|
19168
19180
|
this.selectedItems = this.getSelectedItems();
|
|
19169
19181
|
this.filteredItems = this.getFilteredItems();
|
|
19170
19182
|
this.needsIcon = this.getNeedsIcon();
|
|
19183
|
+
this.items.forEach((item) => {
|
|
19184
|
+
item.selectionMode = this.selectionMode;
|
|
19185
|
+
item.scale = this.scale;
|
|
19186
|
+
});
|
|
19171
19187
|
if (!this.allowCustomValues) {
|
|
19172
19188
|
this.setMaxScrollerHeight();
|
|
19173
19189
|
}
|
|
@@ -19254,6 +19270,9 @@ class Combobox {
|
|
|
19254
19270
|
overlayPositioningHandler() {
|
|
19255
19271
|
this.reposition(true);
|
|
19256
19272
|
}
|
|
19273
|
+
handlePropsChange() {
|
|
19274
|
+
this.updateItems();
|
|
19275
|
+
}
|
|
19257
19276
|
valueHandler(value) {
|
|
19258
19277
|
if (!this.internalValueChangeFlag) {
|
|
19259
19278
|
const items = this.getItems();
|
|
@@ -19338,12 +19357,13 @@ class Combobox {
|
|
|
19338
19357
|
connectInteractive(this);
|
|
19339
19358
|
connectLocalized(this);
|
|
19340
19359
|
connectMessages(this);
|
|
19360
|
+
connectLabel(this);
|
|
19361
|
+
connectForm(this);
|
|
19341
19362
|
this.internalValueChangeFlag = true;
|
|
19342
19363
|
this.value = this.getValue();
|
|
19343
19364
|
this.internalValueChangeFlag = false;
|
|
19344
19365
|
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
19345
|
-
|
|
19346
|
-
connectForm(this);
|
|
19366
|
+
this.updateItems();
|
|
19347
19367
|
this.setFilteredPlacements();
|
|
19348
19368
|
this.reposition(true);
|
|
19349
19369
|
if (this.open) {
|
|
@@ -19537,7 +19557,7 @@ class Combobox {
|
|
|
19537
19557
|
}));
|
|
19538
19558
|
}
|
|
19539
19559
|
getNeedsIcon() {
|
|
19540
|
-
return this.selectionMode
|
|
19560
|
+
return isSingleLike(this.selectionMode) && this.items.some((item) => item.icon);
|
|
19541
19561
|
}
|
|
19542
19562
|
resetText() {
|
|
19543
19563
|
if (this.textInput) {
|
|
@@ -19640,7 +19660,7 @@ class Combobox {
|
|
|
19640
19660
|
}
|
|
19641
19661
|
}
|
|
19642
19662
|
isMulti() {
|
|
19643
|
-
return this.selectionMode !== "single";
|
|
19663
|
+
return this.selectionMode !== "single" && this.selectionMode !== "single-persist";
|
|
19644
19664
|
}
|
|
19645
19665
|
//--------------------------------------------------------------------------
|
|
19646
19666
|
//
|
|
@@ -19662,7 +19682,7 @@ class Combobox {
|
|
|
19662
19682
|
}
|
|
19663
19683
|
renderInput() {
|
|
19664
19684
|
const { guid, disabled, placeholder, selectionMode, selectedItems, open } = this;
|
|
19665
|
-
const single = selectionMode
|
|
19685
|
+
const single = isSingleLike(selectionMode);
|
|
19666
19686
|
const selectedItem = selectedItems[0];
|
|
19667
19687
|
const showLabel = !open && single && !!selectedItem;
|
|
19668
19688
|
return (hAsync("span", { class: {
|
|
@@ -19678,7 +19698,7 @@ class Combobox {
|
|
|
19678
19698
|
"input--hidden": showLabel,
|
|
19679
19699
|
"input--icon": !!this.placeholderIcon,
|
|
19680
19700
|
}, disabled: disabled, id: `${inputUidPrefix}${guid}`, key: "input", onBlur: this.comboboxBlurHandler, onFocus: this.comboboxFocusHandler, onInput: this.inputHandler, placeholder: placeholder, type: "text",
|
|
19681
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
19701
|
+
// 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)
|
|
19682
19702
|
ref: (el) => (this.textInput = el) })));
|
|
19683
19703
|
}
|
|
19684
19704
|
renderListBoxOptions() {
|
|
@@ -19695,16 +19715,16 @@ class Combobox {
|
|
|
19695
19715
|
"floating-ui-container": true,
|
|
19696
19716
|
"floating-ui-container--active": open,
|
|
19697
19717
|
},
|
|
19698
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
19718
|
+
// 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)
|
|
19699
19719
|
ref: setFloatingEl }, hAsync("div", { class: classes,
|
|
19700
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
19720
|
+
// 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)
|
|
19701
19721
|
ref: setContainerEl }, hAsync("ul", { class: { list: true, "list--hide": !open } }, hAsync("slot", null)))));
|
|
19702
19722
|
}
|
|
19703
19723
|
renderIconStart() {
|
|
19704
19724
|
const { selectedItems, placeholderIcon, selectionMode, placeholderIconFlipRtl } = this;
|
|
19705
19725
|
const selectedItem = selectedItems[0];
|
|
19706
19726
|
const selectedIcon = selectedItem?.icon;
|
|
19707
|
-
const singleSelectionMode = selectionMode
|
|
19727
|
+
const singleSelectionMode = isSingleLike(selectionMode);
|
|
19708
19728
|
const iconAtStart = !this.open && selectedItem
|
|
19709
19729
|
? !!selectedIcon && singleSelectionMode
|
|
19710
19730
|
: !!this.placeholderIcon && (!selectedItem || singleSelectionMode);
|
|
@@ -19716,14 +19736,14 @@ class Combobox {
|
|
|
19716
19736
|
}
|
|
19717
19737
|
render() {
|
|
19718
19738
|
const { guid, label, open } = this;
|
|
19719
|
-
const single = this.selectionMode
|
|
19739
|
+
const single = isSingleLike(this.selectionMode);
|
|
19720
19740
|
const isClearable = !this.clearDisabled && this.value?.length > 0;
|
|
19721
19741
|
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: {
|
|
19722
19742
|
wrapper: true,
|
|
19723
19743
|
"wrapper--single": single || !this.selectedItems.length,
|
|
19724
19744
|
"wrapper--active": open,
|
|
19725
19745
|
}, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, role: "combobox",
|
|
19726
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
19746
|
+
// 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)
|
|
19727
19747
|
ref: this.setReferenceEl }, hAsync("div", { class: "grid-input" }, this.renderIconStart(), !single && this.renderChips(), 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 })));
|
|
19728
19748
|
}
|
|
19729
19749
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -19733,6 +19753,8 @@ class Combobox {
|
|
|
19733
19753
|
"disabled": ["handleDisabledChange"],
|
|
19734
19754
|
"maxItems": ["maxItemsHandler"],
|
|
19735
19755
|
"overlayPositioning": ["overlayPositioningHandler"],
|
|
19756
|
+
"selectionMode": ["handlePropsChange"],
|
|
19757
|
+
"scale": ["handlePropsChange"],
|
|
19736
19758
|
"value": ["valueHandler"],
|
|
19737
19759
|
"messageOverrides": ["onMessagesChange"],
|
|
19738
19760
|
"flipPlacements": ["flipPlacementsHandler"],
|
|
@@ -19807,8 +19829,6 @@ class ComboboxItem {
|
|
|
19807
19829
|
constructor(hostRef) {
|
|
19808
19830
|
registerInstance(this, hostRef);
|
|
19809
19831
|
this.calciteComboboxItemChange = createEvent(this, "calciteComboboxItemChange", 6);
|
|
19810
|
-
/** Specifies the scale of the combobox-item controlled by parent, defaults to m */
|
|
19811
|
-
this.scale = "m";
|
|
19812
19832
|
this.itemClickHandler = (event) => {
|
|
19813
19833
|
event.preventDefault();
|
|
19814
19834
|
this.toggleSelected();
|
|
@@ -19823,6 +19843,8 @@ class ComboboxItem {
|
|
|
19823
19843
|
this.textLabel = undefined;
|
|
19824
19844
|
this.value = undefined;
|
|
19825
19845
|
this.filterDisabled = undefined;
|
|
19846
|
+
this.selectionMode = "multiple";
|
|
19847
|
+
this.scale = "m";
|
|
19826
19848
|
}
|
|
19827
19849
|
selectedWatchHandler() {
|
|
19828
19850
|
this.calciteComboboxItemChange.emit();
|
|
@@ -19834,7 +19856,6 @@ class ComboboxItem {
|
|
|
19834
19856
|
// --------------------------------------------------------------------------
|
|
19835
19857
|
connectedCallback() {
|
|
19836
19858
|
this.ancestors = getAncestors(this.el);
|
|
19837
|
-
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
19838
19859
|
connectConditionalSlotComponent(this);
|
|
19839
19860
|
connectInteractive(this);
|
|
19840
19861
|
}
|
|
@@ -19851,7 +19872,8 @@ class ComboboxItem {
|
|
|
19851
19872
|
//
|
|
19852
19873
|
// --------------------------------------------------------------------------
|
|
19853
19874
|
toggleSelected() {
|
|
19854
|
-
|
|
19875
|
+
const isSinglePersistSelect = this.selectionMode === "single-persist";
|
|
19876
|
+
if (this.disabled || (isSinglePersistSelect && this.selected)) {
|
|
19855
19877
|
return;
|
|
19856
19878
|
}
|
|
19857
19879
|
this.selected = !this.selected;
|
|
@@ -19886,7 +19908,7 @@ class ComboboxItem {
|
|
|
19886
19908
|
return null;
|
|
19887
19909
|
}
|
|
19888
19910
|
render() {
|
|
19889
|
-
const isSingleSelect =
|
|
19911
|
+
const isSingleSelect = isSingleLike(this.selectionMode);
|
|
19890
19912
|
const showDot = isSingleSelect && !this.disabled;
|
|
19891
19913
|
const defaultIcon = isSingleSelect ? "dot" : "check";
|
|
19892
19914
|
const iconPath = this.disabled ? "circle-disallowed" : defaultIcon;
|
|
@@ -19917,11 +19939,13 @@ class ComboboxItem {
|
|
|
19917
19939
|
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
19918
19940
|
"textLabel": [513, "text-label"],
|
|
19919
19941
|
"value": [8],
|
|
19920
|
-
"filterDisabled": [516, "filter-disabled"]
|
|
19942
|
+
"filterDisabled": [516, "filter-disabled"],
|
|
19943
|
+
"selectionMode": [513, "selection-mode"],
|
|
19944
|
+
"scale": [1]
|
|
19921
19945
|
},
|
|
19922
19946
|
"$listeners$": undefined,
|
|
19923
19947
|
"$lazyBundleId$": "-",
|
|
19924
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["selected", "selected"], ["active", "active"], ["guid", "guid"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["textLabel", "text-label"], ["filterDisabled", "filter-disabled"]]
|
|
19948
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["selected", "selected"], ["active", "active"], ["guid", "guid"], ["icon", "icon"], ["iconFlipRtl", "icon-flip-rtl"], ["textLabel", "text-label"], ["filterDisabled", "filter-disabled"], ["selectionMode", "selection-mode"]]
|
|
19925
19949
|
}; }
|
|
19926
19950
|
}
|
|
19927
19951
|
|
|
@@ -19940,10 +19964,10 @@ class ComboboxItemGroup {
|
|
|
19940
19964
|
constructor(hostRef) {
|
|
19941
19965
|
registerInstance(this, hostRef);
|
|
19942
19966
|
this.guid = guid();
|
|
19943
|
-
this.scale = "m";
|
|
19944
19967
|
this.afterEmptyGroup = false;
|
|
19945
19968
|
this.ancestors = undefined;
|
|
19946
19969
|
this.label = undefined;
|
|
19970
|
+
this.scale = "m";
|
|
19947
19971
|
}
|
|
19948
19972
|
// --------------------------------------------------------------------------
|
|
19949
19973
|
//
|
|
@@ -19952,7 +19976,6 @@ class ComboboxItemGroup {
|
|
|
19952
19976
|
// --------------------------------------------------------------------------
|
|
19953
19977
|
connectedCallback() {
|
|
19954
19978
|
this.ancestors = getAncestors(this.el);
|
|
19955
|
-
this.scale = getElementProp(this.el, "scale", this.scale);
|
|
19956
19979
|
}
|
|
19957
19980
|
// --------------------------------------------------------------------------
|
|
19958
19981
|
//
|
|
@@ -19972,7 +19995,8 @@ class ComboboxItemGroup {
|
|
|
19972
19995
|
"$members$": {
|
|
19973
19996
|
"afterEmptyGroup": [516, "after-empty-group"],
|
|
19974
19997
|
"ancestors": [1040],
|
|
19975
|
-
"label": [1]
|
|
19998
|
+
"label": [1],
|
|
19999
|
+
"scale": [1]
|
|
19976
20000
|
},
|
|
19977
20001
|
"$listeners$": undefined,
|
|
19978
20002
|
"$lazyBundleId$": "-",
|
|
@@ -21078,7 +21102,7 @@ class DatePickerMonth {
|
|
|
21078
21102
|
"focused--start": isFocusedOnStart,
|
|
21079
21103
|
"focused--end": !isFocusedOnStart,
|
|
21080
21104
|
}, currentMonth: currentMonth, dateTimeFormat: this.dateTimeFormat, day: day, disabled: !inRange(date, this.min, this.max), endOfRange: this.isEndOfRange(date), highlighted: this.betweenSelectedRange(date), onCalciteDaySelect: this.daySelect, onCalciteInternalDayHover: this.dayHover, range: !!this.startDate && !!this.endDate && !sameDate(this.startDate, this.endDate), rangeEdge: dayInWeek === 0 ? "start" : dayInWeek === 6 ? "end" : undefined, rangeHover: this.isRangeHover(date), scale: this.scale, selected: this.isSelected(date), startOfRange: this.isStartOfRange(date), value: date,
|
|
21081
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21105
|
+
// 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)
|
|
21082
21106
|
ref: (el) => {
|
|
21083
21107
|
// when moving via keyboard, focus must be updated on active date
|
|
21084
21108
|
if (ref && active && this.activeFocus) {
|
|
@@ -21265,7 +21289,7 @@ class DatePickerMonthHeader {
|
|
|
21265
21289
|
year: true,
|
|
21266
21290
|
[CSS$N.yearSuffix]: !!suffix,
|
|
21267
21291
|
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", type: "text", value: localizedYear,
|
|
21268
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21292
|
+
// 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)
|
|
21269
21293
|
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$N.suffix }, suffix))), hAsync("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": messages.nextMonth, class: CSS$N.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: iconScale }))));
|
|
21270
21294
|
}
|
|
21271
21295
|
setNextPrevMonthDates() {
|
|
@@ -21396,6 +21420,7 @@ class Dropdown {
|
|
|
21396
21420
|
.reduce((previousValue, currentValue) => [...previousValue, ...currentValue], []);
|
|
21397
21421
|
this.updateSelectedItems();
|
|
21398
21422
|
this.reposition(true);
|
|
21423
|
+
this.items.forEach((item) => (item.scale = this.scale));
|
|
21399
21424
|
};
|
|
21400
21425
|
this.updateGroups = (event) => {
|
|
21401
21426
|
const groups = event.target
|
|
@@ -21497,10 +21522,10 @@ class Dropdown {
|
|
|
21497
21522
|
this.maxItems = 0;
|
|
21498
21523
|
this.overlayPositioning = "absolute";
|
|
21499
21524
|
this.placement = defaultMenuPlacement;
|
|
21500
|
-
this.scale = "m";
|
|
21501
21525
|
this.selectedItems = [];
|
|
21502
21526
|
this.type = "click";
|
|
21503
21527
|
this.width = undefined;
|
|
21528
|
+
this.scale = "m";
|
|
21504
21529
|
}
|
|
21505
21530
|
openHandler(value) {
|
|
21506
21531
|
if (!this.disabled) {
|
|
@@ -21530,6 +21555,9 @@ class Dropdown {
|
|
|
21530
21555
|
placementHandler() {
|
|
21531
21556
|
this.reposition(true);
|
|
21532
21557
|
}
|
|
21558
|
+
handlePropsChange() {
|
|
21559
|
+
this.updateItems();
|
|
21560
|
+
}
|
|
21533
21561
|
//--------------------------------------------------------------------------
|
|
21534
21562
|
//
|
|
21535
21563
|
// Public Methods
|
|
@@ -21554,6 +21582,7 @@ class Dropdown {
|
|
|
21554
21582
|
onToggleOpenCloseComponent(this);
|
|
21555
21583
|
}
|
|
21556
21584
|
connectInteractive(this);
|
|
21585
|
+
this.updateItems();
|
|
21557
21586
|
}
|
|
21558
21587
|
componentWillLoad() {
|
|
21559
21588
|
setUpLoadableComponent(this);
|
|
@@ -21574,15 +21603,15 @@ class Dropdown {
|
|
|
21574
21603
|
render() {
|
|
21575
21604
|
const { open, guid } = this;
|
|
21576
21605
|
return (hAsync(Host, null, hAsync("div", { class: "calcite-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler,
|
|
21577
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21606
|
+
// 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)
|
|
21578
21607
|
ref: this.setReferenceEl }, hAsync("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$n.dropdownTrigger, onSlotchange: this.updateTriggers })), hAsync("div", { "aria-hidden": toAriaBoolean(!open), class: "calcite-dropdown-wrapper",
|
|
21579
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21608
|
+
// 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)
|
|
21580
21609
|
ref: this.setFloatingEl }, hAsync("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
|
21581
21610
|
["calcite-dropdown-content"]: true,
|
|
21582
21611
|
[FloatingCSS.animation]: true,
|
|
21583
21612
|
[FloatingCSS.animationActive]: open,
|
|
21584
21613
|
}, id: `${guid}-menu`, role: "menu",
|
|
21585
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21614
|
+
// 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)
|
|
21586
21615
|
ref: this.setScrollerAndTransitionEl }, hAsync("slot", { onSlotchange: this.updateGroups })))));
|
|
21587
21616
|
}
|
|
21588
21617
|
//--------------------------------------------------------------------------
|
|
@@ -21642,12 +21671,8 @@ class Dropdown {
|
|
|
21642
21671
|
const target = keyboardEvent.target;
|
|
21643
21672
|
switch (keyboardEvent.key) {
|
|
21644
21673
|
case "Tab":
|
|
21645
|
-
|
|
21646
|
-
|
|
21647
|
-
}
|
|
21648
|
-
else if (this.items.indexOf(target) === 0 && keyboardEvent.shiftKey) {
|
|
21649
|
-
this.closeCalciteDropdown();
|
|
21650
|
-
}
|
|
21674
|
+
this.open = false;
|
|
21675
|
+
this.updateTabIndexOfItems(target);
|
|
21651
21676
|
break;
|
|
21652
21677
|
case "ArrowDown":
|
|
21653
21678
|
focusElementInGroup(this.items, target, "next");
|
|
@@ -21727,6 +21752,11 @@ class Dropdown {
|
|
|
21727
21752
|
: item;
|
|
21728
21753
|
focusElement(target);
|
|
21729
21754
|
}
|
|
21755
|
+
updateTabIndexOfItems(target) {
|
|
21756
|
+
this.items.forEach((item) => {
|
|
21757
|
+
item.tabIndex = target !== item ? -1 : 0;
|
|
21758
|
+
});
|
|
21759
|
+
}
|
|
21730
21760
|
static get delegatesFocus() { return true; }
|
|
21731
21761
|
get el() { return getElement(this); }
|
|
21732
21762
|
static get watchers() { return {
|
|
@@ -21735,7 +21765,8 @@ class Dropdown {
|
|
|
21735
21765
|
"flipPlacements": ["flipPlacementsHandler"],
|
|
21736
21766
|
"maxItems": ["maxItemsHandler"],
|
|
21737
21767
|
"overlayPositioning": ["overlayPositioningHandler"],
|
|
21738
|
-
"placement": ["placementHandler"]
|
|
21768
|
+
"placement": ["placementHandler"],
|
|
21769
|
+
"scale": ["handlePropsChange"]
|
|
21739
21770
|
}; }
|
|
21740
21771
|
static get style() { return dropdownCss; }
|
|
21741
21772
|
static get cmpMeta() { return {
|
|
@@ -21749,23 +21780,30 @@ class Dropdown {
|
|
|
21749
21780
|
"maxItems": [514, "max-items"],
|
|
21750
21781
|
"overlayPositioning": [513, "overlay-positioning"],
|
|
21751
21782
|
"placement": [513],
|
|
21752
|
-
"scale": [513],
|
|
21753
21783
|
"selectedItems": [1040],
|
|
21754
21784
|
"type": [513],
|
|
21755
21785
|
"width": [513],
|
|
21786
|
+
"scale": [513],
|
|
21756
21787
|
"setFocus": [64],
|
|
21757
21788
|
"reposition": [64]
|
|
21758
21789
|
},
|
|
21759
21790
|
"$listeners$": [[9, "pointerdown", "closeCalciteDropdownOnClick"], [0, "calciteInternalDropdownCloseRequest", "closeCalciteDropdownOnEvent"], [8, "calciteDropdownOpen", "closeCalciteDropdownOnOpenEvent"], [1, "pointerenter", "pointerEnterHandler"], [1, "pointerleave", "pointerLeaveHandler"], [0, "calciteInternalDropdownItemKeyEvent", "calciteInternalDropdownItemKeyEvent"], [0, "calciteInternalDropdownItemSelect", "handleItemSelect"]],
|
|
21760
21791
|
"$lazyBundleId$": "-",
|
|
21761
|
-
"$attrsToReflect$": [["open", "open"], ["closeOnSelectDisabled", "close-on-select-disabled"], ["disabled", "disabled"], ["maxItems", "max-items"], ["overlayPositioning", "overlay-positioning"], ["placement", "placement"], ["
|
|
21792
|
+
"$attrsToReflect$": [["open", "open"], ["closeOnSelectDisabled", "close-on-select-disabled"], ["disabled", "disabled"], ["maxItems", "max-items"], ["overlayPositioning", "overlay-positioning"], ["placement", "placement"], ["type", "type"], ["width", "width"], ["scale", "scale"]]
|
|
21762
21793
|
}; }
|
|
21763
21794
|
}
|
|
21764
21795
|
|
|
21765
21796
|
const CSS$M = {
|
|
21766
|
-
|
|
21767
|
-
|
|
21768
|
-
|
|
21797
|
+
container: "container",
|
|
21798
|
+
containerLink: "container--link",
|
|
21799
|
+
containerMulti: "container--multi-selection",
|
|
21800
|
+
containerSingle: "container--single-selection",
|
|
21801
|
+
containerNone: "container--none-selection",
|
|
21802
|
+
icon: "dropdown-item-icon",
|
|
21803
|
+
iconEnd: "dropdown-item-icon-end",
|
|
21804
|
+
iconStart: "dropdown-item-icon-start",
|
|
21805
|
+
itemContent: "dropdown-item-content",
|
|
21806
|
+
link: "dropdown-link",
|
|
21769
21807
|
};
|
|
21770
21808
|
|
|
21771
21809
|
const dropdownGroupCss = "/*!@:host*/.sc-calcite-dropdown-group-h{position:relative;display:block}/*!@.container*/.container.sc-calcite-dropdown-group{text-align:start}/*!@.container--s*/.container--s.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@.container--s .dropdown-title*/.container--s.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.5rem}/*!@.container--m*/.container--m.sc-calcite-dropdown-group{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@.container--m .dropdown-title*/.container--m.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:0.75rem}/*!@.container--l*/.container--l.sc-calcite-dropdown-group{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@.container--l .dropdown-title*/.container--l.sc-calcite-dropdown-group .dropdown-title.sc-calcite-dropdown-group{padding:1rem}/*!@.dropdown-title*/.dropdown-title.sc-calcite-dropdown-group{margin-block-end:-1px;display:block;cursor:default;overflow-wrap:break-word;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}/*!@.dropdown-separator*/.dropdown-separator.sc-calcite-dropdown-group{display:block;block-size:1px;background-color:var(--calcite-ui-border-3)}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-group-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-dropdown-group{display:none}";
|
|
@@ -21777,28 +21815,35 @@ class DropdownGroup {
|
|
|
21777
21815
|
constructor(hostRef) {
|
|
21778
21816
|
registerInstance(this, hostRef);
|
|
21779
21817
|
this.calciteInternalDropdownItemChange = createEvent(this, "calciteInternalDropdownItemChange", 6);
|
|
21818
|
+
this.updateItems = () => {
|
|
21819
|
+
Array.from(this.el.querySelectorAll("calcite-dropdown-item")).forEach((item) => (item.selectionMode = this.selectionMode));
|
|
21820
|
+
};
|
|
21821
|
+
this.mutationObserver = createObserver();
|
|
21780
21822
|
this.groupTitle = undefined;
|
|
21823
|
+
this.scale = "m";
|
|
21781
21824
|
this.selectionMode = "single";
|
|
21782
|
-
|
|
21825
|
+
}
|
|
21826
|
+
handlePropsChange() {
|
|
21827
|
+
this.updateItems();
|
|
21783
21828
|
}
|
|
21784
21829
|
//--------------------------------------------------------------------------
|
|
21785
21830
|
//
|
|
21786
21831
|
// Lifecycle
|
|
21787
21832
|
//
|
|
21788
21833
|
//--------------------------------------------------------------------------
|
|
21834
|
+
connectedCallback() {
|
|
21835
|
+
this.updateItems();
|
|
21836
|
+
}
|
|
21789
21837
|
componentWillLoad() {
|
|
21790
21838
|
this.groupPosition = this.getGroupPosition();
|
|
21791
21839
|
}
|
|
21792
21840
|
render() {
|
|
21793
|
-
const scale = this.scale || getElementProp(this.el, "scale", "m");
|
|
21794
21841
|
const groupTitle = this.groupTitle ? (hAsync("span", { "aria-hidden": "true", class: "dropdown-title" }, this.groupTitle)) : null;
|
|
21795
21842
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
21796
21843
|
return (hAsync(Host, { "aria-label": this.groupTitle, role: "group" }, hAsync("div", { class: {
|
|
21797
|
-
container: true,
|
|
21798
|
-
[CSS$M.
|
|
21799
|
-
|
|
21800
|
-
[CSS$M.containerLarge]: scale === "l",
|
|
21801
|
-
}, title: this.groupTitle }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
21844
|
+
[CSS$M.container]: true,
|
|
21845
|
+
[`${CSS$M.container}--${this.scale}`]: true,
|
|
21846
|
+
} }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
21802
21847
|
}
|
|
21803
21848
|
//--------------------------------------------------------------------------
|
|
21804
21849
|
//
|
|
@@ -21823,36 +21868,24 @@ class DropdownGroup {
|
|
|
21823
21868
|
}
|
|
21824
21869
|
static get delegatesFocus() { return true; }
|
|
21825
21870
|
get el() { return getElement(this); }
|
|
21871
|
+
static get watchers() { return {
|
|
21872
|
+
"selectionMode": ["handlePropsChange"]
|
|
21873
|
+
}; }
|
|
21826
21874
|
static get style() { return dropdownGroupCss; }
|
|
21827
21875
|
static get cmpMeta() { return {
|
|
21828
21876
|
"$flags$": 25,
|
|
21829
21877
|
"$tagName$": "calcite-dropdown-group",
|
|
21830
21878
|
"$members$": {
|
|
21831
21879
|
"groupTitle": [513, "group-title"],
|
|
21832
|
-
"
|
|
21833
|
-
"
|
|
21880
|
+
"scale": [1],
|
|
21881
|
+
"selectionMode": [513, "selection-mode"]
|
|
21834
21882
|
},
|
|
21835
21883
|
"$listeners$": [[0, "calciteInternalDropdownItemSelect", "updateActiveItemOnChange"]],
|
|
21836
21884
|
"$lazyBundleId$": "-",
|
|
21837
|
-
"$attrsToReflect$": [["groupTitle", "group-title"], ["selectionMode", "selection-mode"]
|
|
21885
|
+
"$attrsToReflect$": [["groupTitle", "group-title"], ["selectionMode", "selection-mode"]]
|
|
21838
21886
|
}; }
|
|
21839
21887
|
}
|
|
21840
21888
|
|
|
21841
|
-
const CSS$L = {
|
|
21842
|
-
containerLink: "container--link",
|
|
21843
|
-
containerSmall: "container--s",
|
|
21844
|
-
containerMedium: "container--m",
|
|
21845
|
-
containerLarge: "container--l",
|
|
21846
|
-
containerMulti: "container--multi-selection",
|
|
21847
|
-
containerSingle: "container--single-selection",
|
|
21848
|
-
containerNone: "container--none-selection",
|
|
21849
|
-
icon: "dropdown-item-icon",
|
|
21850
|
-
iconEnd: "dropdown-item-icon-end",
|
|
21851
|
-
iconStart: "dropdown-item-icon-start",
|
|
21852
|
-
itemContent: "dropdown-item-content",
|
|
21853
|
-
link: "dropdown-link",
|
|
21854
|
-
};
|
|
21855
|
-
|
|
21856
21889
|
const dropdownItemCss = "/*!@.container--s*/.container--s.sc-calcite-dropdown-item{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-inline-end:0.5rem;padding-inline-start:1.5rem}/*!@.container--m*/.container--m.sc-calcite-dropdown-item{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-inline-end:0.75rem;padding-inline-start:2rem}/*!@.container--l*/.container--l.sc-calcite-dropdown-item{padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-inline-end:1rem;padding-inline-start:2.5rem}/*!@.container--s.container--none-selection*/.container--s.container--none-selection.sc-calcite-dropdown-item{padding-inline-start:0.25rem}/*!@.container--s.container--none-selection .dropdown-link*/.container--s.container--none-selection.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-inline-start:0px}/*!@.container--m.container--none-selection*/.container--m.container--none-selection.sc-calcite-dropdown-item{padding-inline-start:0.5rem}/*!@.container--m.container--none-selection .dropdown-link*/.container--m.container--none-selection.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-inline-start:0px}/*!@.container--l.container--none-selection*/.container--l.container--none-selection.sc-calcite-dropdown-item{padding-inline-start:0.75rem}/*!@.container--l.container--none-selection .dropdown-link*/.container--l.container--none-selection.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-inline-start:0px}/*!@:host*/.sc-calcite-dropdown-item-h{position:relative;display:flex;flex-grow:1;align-items:center}/*!@.container*/.container.sc-calcite-dropdown-item{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-ui-text-3);text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);text-align:start}/*!@.dropdown-item-content*/.dropdown-item-content.sc-calcite-dropdown-item{flex:1 1 auto;padding-block:0.125rem;padding-inline-end:auto;padding-inline-start:0.25rem}/*!@:host,\n.container--link a*/.sc-calcite-dropdown-item-h,.container--link.sc-calcite-dropdown-item a.sc-calcite-dropdown-item{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-dropdown-item-h:focus{outline:2px solid transparent;outline-offset:2px;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 )}/*!@.container--link*/.container--link.sc-calcite-dropdown-item{padding:0px}/*!@.container--link a*/.container--link.sc-calcite-dropdown-item a.sc-calcite-dropdown-item{position:relative;display:flex;flex-grow:1;cursor:pointer;align-items:center;color:var(--calcite-ui-text-3);text-decoration-line:none;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@.container--s .dropdown-link*/.container--s.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-inline-end:0.5rem;padding-inline-start:1.5rem}/*!@.container--m .dropdown-link*/.container--m.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-inline-end:0.75rem;padding-inline-start:2rem}/*!@.container--l .dropdown-link*/.container--l.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;padding-inline-end:1rem;padding-inline-start:2.5rem}/*!@:host(:hover) .container,\n:host(:active) .container*/.sc-calcite-dropdown-item-h:hover .container.sc-calcite-dropdown-item,.sc-calcite-dropdown-item-h:active .container.sc-calcite-dropdown-item{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1);text-decoration-line:none}/*!@:host(:hover) .container--link .dropdown-link,\n:host(:active) .container--link .dropdown-link*/.sc-calcite-dropdown-item-h:hover .container--link.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item,.sc-calcite-dropdown-item-h:active .container--link.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .container*/.sc-calcite-dropdown-item-h:focus .container.sc-calcite-dropdown-item{color:var(--calcite-ui-text-1);text-decoration-line:none}/*!@:host(:active) .container*/.sc-calcite-dropdown-item-h:active .container.sc-calcite-dropdown-item{background-color:var(--calcite-ui-foreground-3)}/*!@:host(:hover) .container:before,\n:host(:active) .container:before,\n:host(:focus) .container:before*/.sc-calcite-dropdown-item-h:hover .container.sc-calcite-dropdown-item:before,.sc-calcite-dropdown-item-h:active .container.sc-calcite-dropdown-item:before,.sc-calcite-dropdown-item-h:focus .container.sc-calcite-dropdown-item:before{opacity:1}/*!@:host([selected]) .container:not(.container--none-selection),\n:host([selected]) .container--link .dropdown-link*/[selected].sc-calcite-dropdown-item-h .container.sc-calcite-dropdown-item:not(.container--none-selection),[selected].sc-calcite-dropdown-item-h .container--link.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([selected]) .container:not(.container--none-selection):before,\n:host([selected]) .container--link .dropdown-link:before*/[selected].sc-calcite-dropdown-item-h .container.sc-calcite-dropdown-item:not(.container--none-selection):before,[selected].sc-calcite-dropdown-item-h .container--link.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item:before{opacity:1;color:var(--calcite-ui-brand)}/*!@:host([selected]) .container:not(.container--none-selection) calcite-icon,\n:host([selected]) .container--link .dropdown-link calcite-icon*/[selected].sc-calcite-dropdown-item-h .container.sc-calcite-dropdown-item:not(.container--none-selection) calcite-icon.sc-calcite-dropdown-item,[selected].sc-calcite-dropdown-item-h .container--link.sc-calcite-dropdown-item .dropdown-link.sc-calcite-dropdown-item calcite-icon.sc-calcite-dropdown-item{color:var(--calcite-ui-brand)}/*!@.container--multi-selection:before,\n.container--none-selection:before*/.container--multi-selection.sc-calcite-dropdown-item:before,.container--none-selection.sc-calcite-dropdown-item:before{display:none}/*!@.container--s:before*/.container--s.sc-calcite-dropdown-item:before{inset-inline-start:0.5rem}/*!@.container--m:before*/.container--m.sc-calcite-dropdown-item:before{inset-inline-start:0.75rem}/*!@.container--l:before*/.container--l.sc-calcite-dropdown-item:before{inset-inline-start:1rem}/*!@.dropdown-item-icon*/.dropdown-item-icon.sc-calcite-dropdown-item{position:absolute;opacity:0;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:scale(0.9)}/*!@.container--s .dropdown-item-icon*/.container--s.sc-calcite-dropdown-item .dropdown-item-icon.sc-calcite-dropdown-item{inset-inline-start:0.25rem}/*!@.container--m .dropdown-item-icon*/.container--m.sc-calcite-dropdown-item .dropdown-item-icon.sc-calcite-dropdown-item{inset-inline-start:0.5rem}/*!@.container--l .dropdown-item-icon*/.container--l.sc-calcite-dropdown-item .dropdown-item-icon.sc-calcite-dropdown-item{inset-inline-start:0.75rem}/*!@:host(:hover) .dropdown-item-icon*/.sc-calcite-dropdown-item-h:hover .dropdown-item-icon.sc-calcite-dropdown-item{color:var(--calcite-ui-border-1);opacity:1}/*!@:host([selected]) .dropdown-item-icon*/[selected].sc-calcite-dropdown-item-h .dropdown-item-icon.sc-calcite-dropdown-item{color:var(--calcite-ui-brand);opacity:1}/*!@.container--s .dropdown-item-icon-start*/.container--s.sc-calcite-dropdown-item .dropdown-item-icon-start.sc-calcite-dropdown-item{margin-inline-end:0.5rem;margin-inline-start:0.25rem}/*!@.container--s .dropdown-item-icon-end*/.container--s.sc-calcite-dropdown-item .dropdown-item-icon-end.sc-calcite-dropdown-item{margin-inline-start:0.5rem}/*!@.container--m .dropdown-item-icon-start*/.container--m.sc-calcite-dropdown-item .dropdown-item-icon-start.sc-calcite-dropdown-item{margin-inline-end:0.75rem;margin-inline-start:0.25rem}/*!@.container--m .dropdown-item-icon-end*/.container--m.sc-calcite-dropdown-item .dropdown-item-icon-end.sc-calcite-dropdown-item{margin-inline-start:0.75rem}/*!@.container--l .dropdown-item-icon-start*/.container--l.sc-calcite-dropdown-item .dropdown-item-icon-start.sc-calcite-dropdown-item{margin-inline-end:1rem;margin-inline-start:0.25rem}/*!@.container--l .dropdown-item-icon-end*/.container--l.sc-calcite-dropdown-item .dropdown-item-icon-end.sc-calcite-dropdown-item{margin-inline-start:1rem}/*!@:host([hidden])*/[hidden].sc-calcite-dropdown-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-dropdown-item{display:none}";
|
|
21857
21890
|
|
|
21858
21891
|
/**
|
|
@@ -21865,8 +21898,6 @@ class DropdownItem {
|
|
|
21865
21898
|
this.calciteInternalDropdownItemSelect = createEvent(this, "calciteInternalDropdownItemSelect", 6);
|
|
21866
21899
|
this.calciteInternalDropdownItemKeyEvent = createEvent(this, "calciteInternalDropdownItemKeyEvent", 6);
|
|
21867
21900
|
this.calciteInternalDropdownCloseRequest = createEvent(this, "calciteInternalDropdownCloseRequest", 6);
|
|
21868
|
-
/** Specifies the scale of dropdown-item controlled by the parent, defaults to m */
|
|
21869
|
-
this.scale = "m";
|
|
21870
21901
|
this.selected = false;
|
|
21871
21902
|
this.iconFlipRtl = undefined;
|
|
21872
21903
|
this.iconStart = undefined;
|
|
@@ -21875,6 +21906,8 @@ class DropdownItem {
|
|
|
21875
21906
|
this.label = undefined;
|
|
21876
21907
|
this.rel = undefined;
|
|
21877
21908
|
this.target = undefined;
|
|
21909
|
+
this.selectionMode = "single";
|
|
21910
|
+
this.scale = "m";
|
|
21878
21911
|
}
|
|
21879
21912
|
//--------------------------------------------------------------------------
|
|
21880
21913
|
//
|
|
@@ -21902,11 +21935,10 @@ class DropdownItem {
|
|
|
21902
21935
|
this.initialize();
|
|
21903
21936
|
}
|
|
21904
21937
|
render() {
|
|
21905
|
-
const
|
|
21906
|
-
const {
|
|
21907
|
-
const
|
|
21908
|
-
const
|
|
21909
|
-
const iconEndEl = (hAsync("calcite-icon", { class: CSS$L.iconEnd, flipRtl: iconFlipRtl === "end" || iconFlipRtl === "both", icon: this.iconEnd, scale: scale === "l" ? "m" : "s" }));
|
|
21938
|
+
const { href, selectionMode, label, iconFlipRtl, scale } = this;
|
|
21939
|
+
const iconStartEl = (hAsync("calcite-icon", { class: CSS$M.iconStart, flipRtl: iconFlipRtl === "start" || iconFlipRtl === "both", icon: this.iconStart, scale: scale === "l" ? "m" : "s" }));
|
|
21940
|
+
const contentNode = (hAsync("span", { class: CSS$M.itemContent }, hAsync("slot", null)));
|
|
21941
|
+
const iconEndEl = (hAsync("calcite-icon", { class: CSS$M.iconEnd, flipRtl: iconFlipRtl === "end" || iconFlipRtl === "both", icon: this.iconEnd, scale: scale === "l" ? "m" : "s" }));
|
|
21910
21942
|
const slottedContent = this.iconStart && this.iconEnd
|
|
21911
21943
|
? [iconStartEl, contentNode, iconEndEl]
|
|
21912
21944
|
: this.iconStart
|
|
@@ -21914,8 +21946,8 @@ class DropdownItem {
|
|
|
21914
21946
|
: this.iconEnd
|
|
21915
21947
|
? [contentNode, iconEndEl]
|
|
21916
21948
|
: contentNode;
|
|
21917
|
-
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$
|
|
21918
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
21949
|
+
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$M.link, href: href, rel: this.rel, tabIndex: -1, target: this.target,
|
|
21950
|
+
// 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)
|
|
21919
21951
|
ref: (el) => (this.childLink = el) }, slottedContent));
|
|
21920
21952
|
const itemRole = href
|
|
21921
21953
|
? null
|
|
@@ -21926,15 +21958,13 @@ class DropdownItem {
|
|
|
21926
21958
|
: "menuitem";
|
|
21927
21959
|
const itemAria = selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
|
21928
21960
|
return (hAsync(Host, { "aria-checked": itemAria, "aria-label": !href ? label : "", role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
21929
|
-
container: true,
|
|
21930
|
-
[CSS$
|
|
21931
|
-
[CSS$
|
|
21932
|
-
[CSS$
|
|
21933
|
-
[CSS$
|
|
21934
|
-
[CSS$
|
|
21935
|
-
|
|
21936
|
-
[CSS$L.containerNone]: selectionMode === "none",
|
|
21937
|
-
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$L.icon, icon: selectionMode === "multiple" ? "check" : "bullet-point", scale: scale === "l" ? "m" : "s" })) : null, contentEl)));
|
|
21961
|
+
[CSS$M.container]: true,
|
|
21962
|
+
[CSS$M.containerLink]: !!href,
|
|
21963
|
+
[`${CSS$M.container}--${scale}`]: true,
|
|
21964
|
+
[CSS$M.containerMulti]: selectionMode === "multiple",
|
|
21965
|
+
[CSS$M.containerSingle]: selectionMode === "single",
|
|
21966
|
+
[CSS$M.containerNone]: selectionMode === "none",
|
|
21967
|
+
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$M.icon, icon: selectionMode === "multiple" ? "check" : "bullet-point", scale: scale === "l" ? "m" : "s" })) : null, contentEl)));
|
|
21938
21968
|
}
|
|
21939
21969
|
//--------------------------------------------------------------------------
|
|
21940
21970
|
//
|
|
@@ -21985,7 +22015,6 @@ class DropdownItem {
|
|
|
21985
22015
|
//
|
|
21986
22016
|
//--------------------------------------------------------------------------
|
|
21987
22017
|
initialize() {
|
|
21988
|
-
this.selectionMode = getElementProp(this.el, "selection-mode", "single");
|
|
21989
22018
|
this.parentDropdownGroupEl = this.el.closest("calcite-dropdown-group");
|
|
21990
22019
|
if (this.selectionMode === "none") {
|
|
21991
22020
|
this.selected = false;
|
|
@@ -22032,6 +22061,8 @@ class DropdownItem {
|
|
|
22032
22061
|
"label": [1],
|
|
22033
22062
|
"rel": [513],
|
|
22034
22063
|
"target": [513],
|
|
22064
|
+
"selectionMode": [1, "selection-mode"],
|
|
22065
|
+
"scale": [1],
|
|
22035
22066
|
"setFocus": [64]
|
|
22036
22067
|
},
|
|
22037
22068
|
"$listeners$": [[0, "click", "onClick"], [0, "keydown", "keyDownHandler"], [16, "calciteInternalDropdownItemChange", "updateActiveItemOnChange"]],
|
|
@@ -22040,7 +22071,7 @@ class DropdownItem {
|
|
|
22040
22071
|
}; }
|
|
22041
22072
|
}
|
|
22042
22073
|
|
|
22043
|
-
const CSS$
|
|
22074
|
+
const CSS$L = {
|
|
22044
22075
|
button: "button",
|
|
22045
22076
|
};
|
|
22046
22077
|
const ICONS$c = {
|
|
@@ -22101,8 +22132,8 @@ class Fab {
|
|
|
22101
22132
|
render() {
|
|
22102
22133
|
const { appearance, kind, disabled, loading, scale, textEnabled, icon, label, text, iconFlipRtl, } = this;
|
|
22103
22134
|
const title = !textEnabled ? label || text || null : null;
|
|
22104
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$
|
|
22105
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
22135
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$L.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",
|
|
22136
|
+
// 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)
|
|
22106
22137
|
ref: (buttonEl) => {
|
|
22107
22138
|
this.buttonEl = buttonEl;
|
|
22108
22139
|
} }, this.textEnabled ? this.text : null));
|
|
@@ -22131,7 +22162,7 @@ class Fab {
|
|
|
22131
22162
|
}; }
|
|
22132
22163
|
}
|
|
22133
22164
|
|
|
22134
|
-
const CSS$
|
|
22165
|
+
const CSS$K = {
|
|
22135
22166
|
container: "container",
|
|
22136
22167
|
searchIcon: "search-icon",
|
|
22137
22168
|
};
|
|
@@ -22260,8 +22291,8 @@ class Filter {
|
|
|
22260
22291
|
// --------------------------------------------------------------------------
|
|
22261
22292
|
render() {
|
|
22262
22293
|
const { disabled, scale } = this;
|
|
22263
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$
|
|
22264
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
22294
|
+
return (hAsync(Fragment, null, hAsync("div", { class: CSS$K.container }, hAsync("label", null, hAsync("calcite-input", { "aria-label": this.messages.label, clearable: true, disabled: disabled, icon: ICONS$b.search, messageOverrides: { clear: this.messages.clear }, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, scale: scale, type: "text", value: this.value,
|
|
22295
|
+
// 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)
|
|
22265
22296
|
ref: (el) => {
|
|
22266
22297
|
this.textInput = el;
|
|
22267
22298
|
} })))));
|
|
@@ -22299,7 +22330,7 @@ class Filter {
|
|
|
22299
22330
|
}; }
|
|
22300
22331
|
}
|
|
22301
22332
|
|
|
22302
|
-
const CSS$
|
|
22333
|
+
const CSS$J = {
|
|
22303
22334
|
frame: "frame",
|
|
22304
22335
|
frameAdvancing: "frame--advancing",
|
|
22305
22336
|
frameRetreating: "frame--retreating",
|
|
@@ -22366,7 +22397,13 @@ class Flow {
|
|
|
22366
22397
|
const beforeBack = lastItem.beforeBack
|
|
22367
22398
|
? lastItem.beforeBack
|
|
22368
22399
|
: () => Promise.resolve();
|
|
22369
|
-
|
|
22400
|
+
try {
|
|
22401
|
+
await beforeBack.call(lastItem);
|
|
22402
|
+
}
|
|
22403
|
+
catch (_error) {
|
|
22404
|
+
// back prevented
|
|
22405
|
+
return;
|
|
22406
|
+
}
|
|
22370
22407
|
lastItem.remove();
|
|
22371
22408
|
return lastItem;
|
|
22372
22409
|
}
|
|
@@ -22414,9 +22451,9 @@ class Flow {
|
|
|
22414
22451
|
render() {
|
|
22415
22452
|
const { flowDirection } = this;
|
|
22416
22453
|
const frameDirectionClasses = {
|
|
22417
|
-
[CSS$
|
|
22418
|
-
[CSS$
|
|
22419
|
-
[CSS$
|
|
22454
|
+
[CSS$J.frame]: true,
|
|
22455
|
+
[CSS$J.frameAdvancing]: flowDirection === "advancing",
|
|
22456
|
+
[CSS$J.frameRetreating]: flowDirection === "retreating",
|
|
22420
22457
|
};
|
|
22421
22458
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
22422
22459
|
}
|
|
@@ -22438,7 +22475,7 @@ class Flow {
|
|
|
22438
22475
|
}; }
|
|
22439
22476
|
}
|
|
22440
22477
|
|
|
22441
|
-
const CSS$
|
|
22478
|
+
const CSS$I = {
|
|
22442
22479
|
actionBarContainer: "action-bar-container",
|
|
22443
22480
|
backButton: "back-button",
|
|
22444
22481
|
container: "container",
|
|
@@ -22473,7 +22510,7 @@ const SLOTS$m = {
|
|
|
22473
22510
|
footerActions: "footer-actions",
|
|
22474
22511
|
};
|
|
22475
22512
|
|
|
22476
|
-
const CSS$
|
|
22513
|
+
const CSS$H = {
|
|
22477
22514
|
backButton: "back-button",
|
|
22478
22515
|
};
|
|
22479
22516
|
const ICONS$9 = {
|
|
@@ -22621,14 +22658,14 @@ class FlowItem {
|
|
|
22621
22658
|
const { showBackButton, backButtonClick, messages } = this;
|
|
22622
22659
|
const label = messages.back;
|
|
22623
22660
|
const icon = rtl ? ICONS$9.backRight : ICONS$9.backLeft;
|
|
22624
|
-
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$
|
|
22625
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
22661
|
+
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$H.backButton, icon: icon, key: "flow-back-button", onClick: backButtonClick, scale: "s", slot: "header-actions-start", text: label, title: label,
|
|
22662
|
+
// 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)
|
|
22626
22663
|
ref: this.setBackRef })) : null;
|
|
22627
22664
|
}
|
|
22628
22665
|
render() {
|
|
22629
22666
|
const { closable, closed, description, disabled, heading, headingLevel, loading, menuOpen, messages, } = this;
|
|
22630
22667
|
return (hAsync(Host, null, hAsync("calcite-panel", { closable: closable, closed: closed, description: description, disabled: disabled, heading: heading, headingLevel: headingLevel, loading: loading, menuOpen: menuOpen, messageOverrides: messages, onCalcitePanelClose: this.handlePanelClose, onCalcitePanelScroll: this.handlePanelScroll,
|
|
22631
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
22668
|
+
// 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)
|
|
22632
22669
|
ref: this.setContainerRef }, this.renderBackButton(), hAsync("slot", { name: SLOTS$l.actionBar, slot: SLOTS$m.actionBar }), hAsync("slot", { name: SLOTS$l.headerActionsStart, slot: SLOTS$m.headerActionsStart }), hAsync("slot", { name: SLOTS$l.headerActionsEnd, slot: SLOTS$m.headerActionsEnd }), hAsync("slot", { name: SLOTS$l.headerContent, slot: SLOTS$m.headerContent }), hAsync("slot", { name: SLOTS$l.headerMenuActions, slot: SLOTS$m.headerMenuActions }), hAsync("slot", { name: SLOTS$l.fab, slot: SLOTS$m.fab }), hAsync("slot", { name: SLOTS$l.footerActions, slot: SLOTS$m.footerActions }), hAsync("slot", { name: SLOTS$l.footer, slot: SLOTS$m.footer }), hAsync("slot", null))));
|
|
22633
22670
|
}
|
|
22634
22671
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -22885,7 +22922,7 @@ class Graph {
|
|
|
22885
22922
|
}; }
|
|
22886
22923
|
}
|
|
22887
22924
|
|
|
22888
|
-
const CSS$
|
|
22925
|
+
const CSS$G = {
|
|
22889
22926
|
handle: "handle",
|
|
22890
22927
|
handleActivated: "handle--activated",
|
|
22891
22928
|
};
|
|
@@ -23008,8 +23045,8 @@ class Handle {
|
|
|
23008
23045
|
render() {
|
|
23009
23046
|
return (
|
|
23010
23047
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
23011
|
-
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
23012
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
23048
|
+
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$G.handle]: true, [CSS$G.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0", title: this.messages?.dragHandle,
|
|
23049
|
+
// 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)
|
|
23013
23050
|
ref: (el) => {
|
|
23014
23051
|
this.handleButton = el;
|
|
23015
23052
|
} }, hAsync("calcite-icon", { icon: ICONS$8.drag, scale: "s" })));
|
|
@@ -23047,7 +23084,7 @@ class Handle {
|
|
|
23047
23084
|
}; }
|
|
23048
23085
|
}
|
|
23049
23086
|
|
|
23050
|
-
const CSS$
|
|
23087
|
+
const CSS$F = {
|
|
23051
23088
|
icon: "icon",
|
|
23052
23089
|
flipRtl: "flip-rtl",
|
|
23053
23090
|
};
|
|
@@ -23095,7 +23132,7 @@ class Icon {
|
|
|
23095
23132
|
const semantic = !!textLabel;
|
|
23096
23133
|
const paths = [].concat(pathData || "");
|
|
23097
23134
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { "aria-hidden": "true", class: {
|
|
23098
|
-
[CSS$
|
|
23135
|
+
[CSS$F.flipRtl]: dir === "rtl" && flipRtl,
|
|
23099
23136
|
svg: true,
|
|
23100
23137
|
}, 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 }))))));
|
|
23101
23138
|
}
|
|
@@ -23141,7 +23178,7 @@ class Icon {
|
|
|
23141
23178
|
}; }
|
|
23142
23179
|
}
|
|
23143
23180
|
|
|
23144
|
-
const CSS$
|
|
23181
|
+
const CSS$E = {
|
|
23145
23182
|
wrapper: "wrapper",
|
|
23146
23183
|
confirmChangesButton: "confirm-changes-button",
|
|
23147
23184
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -23291,17 +23328,17 @@ class InlineEditable {
|
|
|
23291
23328
|
updateHostInteraction(this);
|
|
23292
23329
|
}
|
|
23293
23330
|
render() {
|
|
23294
|
-
return (hAsync("div", { class: CSS$
|
|
23331
|
+
return (hAsync("div", { class: CSS$E.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, hAsync("div", { class: CSS$E.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$E.controlsWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$E.enableEditingButton, disabled: this.disabled, iconStart: "pencil", kind: "neutral", label: this.messages.enableEditing, onClick: this.enableEditingHandler, scale: this.scale, style: {
|
|
23295
23332
|
opacity: this.editingEnabled ? "0" : "1",
|
|
23296
23333
|
width: this.editingEnabled ? "0" : "inherit",
|
|
23297
23334
|
}, type: "button",
|
|
23298
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
23335
|
+
// 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)
|
|
23299
23336
|
ref: (el) => (this.enableEditingButton = el) }), this.shouldShowControls && [
|
|
23300
|
-
hAsync("div", { class: CSS$
|
|
23301
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
23337
|
+
hAsync("div", { class: CSS$E.cancelEditingButtonWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$E.cancelEditingButton, disabled: this.disabled, iconStart: "x", kind: "neutral", label: this.messages.cancelEditing, onClick: this.cancelEditingHandler, scale: this.scale, type: "button",
|
|
23338
|
+
// 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)
|
|
23302
23339
|
ref: (el) => (this.cancelEditingButton = el) })),
|
|
23303
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
23304
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
23340
|
+
hAsync("calcite-button", { appearance: "solid", class: CSS$E.confirmChangesButton, disabled: this.disabled, iconStart: "check", kind: "brand", label: this.messages.confirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale, type: "button",
|
|
23341
|
+
// 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)
|
|
23305
23342
|
ref: (el) => (this.confirmEditingButton = el) }),
|
|
23306
23343
|
])));
|
|
23307
23344
|
}
|
|
@@ -23386,7 +23423,7 @@ class InlineEditable {
|
|
|
23386
23423
|
}; }
|
|
23387
23424
|
}
|
|
23388
23425
|
|
|
23389
|
-
const CSS$
|
|
23426
|
+
const CSS$D = {
|
|
23390
23427
|
loader: "loader",
|
|
23391
23428
|
clearButton: "clear-button",
|
|
23392
23429
|
editingEnabled: "editing-enabled",
|
|
@@ -23970,38 +24007,38 @@ class Input {
|
|
|
23970
24007
|
// --------------------------------------------------------------------------
|
|
23971
24008
|
render() {
|
|
23972
24009
|
const dir = getElementDir(this.el);
|
|
23973
|
-
const loader = (hAsync("div", { class: CSS$
|
|
23974
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
23975
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
24010
|
+
const loader = (hAsync("div", { class: CSS$D.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
24011
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$D.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
24012
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$D.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
23976
24013
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
23977
24014
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
23978
|
-
[CSS$
|
|
23979
|
-
[CSS$
|
|
24015
|
+
[CSS$D.numberButtonItem]: true,
|
|
24016
|
+
[CSS$D.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
23980
24017
|
}, "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: this.scale === "l" ? "m" : "s" })));
|
|
23981
24018
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
23982
|
-
[CSS$
|
|
23983
|
-
[CSS$
|
|
24019
|
+
[CSS$D.numberButtonItem]: true,
|
|
24020
|
+
[CSS$D.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
23984
24021
|
}, "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: this.scale === "l" ? "m" : "s" })));
|
|
23985
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
23986
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
23987
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
24022
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$D.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
24023
|
+
const prefixText = hAsync("div", { class: CSS$D.prefix }, this.prefixText);
|
|
24024
|
+
const suffixText = hAsync("div", { class: CSS$D.suffix }, this.suffixText);
|
|
23988
24025
|
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,
|
|
23989
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
24026
|
+
// 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)
|
|
23990
24027
|
ref: this.setChildNumberElRef })) : null;
|
|
23991
24028
|
const childEl = this.type !== "number"
|
|
23992
24029
|
? [
|
|
23993
24030
|
hAsync(this.childElType, { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
23994
|
-
[CSS$
|
|
23995
|
-
[CSS$
|
|
24031
|
+
[CSS$D.editingEnabled]: this.editingEnabled,
|
|
24032
|
+
[CSS$D.inlineChild]: !!this.inlineEditableEl,
|
|
23996
24033
|
}, 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,
|
|
23997
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
24034
|
+
// 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)
|
|
23998
24035
|
ref: this.setChildElRef }),
|
|
23999
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
24036
|
+
this.isTextarea ? (hAsync("div", { class: CSS$D.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" }))) : null,
|
|
24000
24037
|
]
|
|
24001
24038
|
: null;
|
|
24002
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
24039
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$D.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24003
24040
|
? numberButtonsHorizontalDown
|
|
24004
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
24041
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$D.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$D.actionWrapper }, hAsync("slot", { name: SLOTS$k.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
24005
24042
|
? numberButtonsVertical
|
|
24006
24043
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24007
24044
|
? numberButtonsHorizontalUp
|
|
@@ -24076,7 +24113,7 @@ class Input {
|
|
|
24076
24113
|
}; }
|
|
24077
24114
|
}
|
|
24078
24115
|
|
|
24079
|
-
const CSS$
|
|
24116
|
+
const CSS$C = {
|
|
24080
24117
|
assistiveText: "assistive-text",
|
|
24081
24118
|
menu: "menu-container",
|
|
24082
24119
|
menuActive: "menu-container--active",
|
|
@@ -25508,34 +25545,34 @@ class InputDatePicker {
|
|
|
25508
25545
|
useGrouping: false,
|
|
25509
25546
|
};
|
|
25510
25547
|
return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler }, this.localeData && (hAsync("div", { class: "input-container" }, hAsync("div", { class: "input-wrapper", onClick: this.onInputWrapperClick,
|
|
25511
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25548
|
+
// 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)
|
|
25512
25549
|
ref: this.setStartWrapper }, hAsync("calcite-input", { "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", "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.startInputFocus, onFocus: this.startEndInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, role: "combobox", scale: this.scale, type: "text",
|
|
25513
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25514
|
-
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$
|
|
25515
|
-
[CSS$
|
|
25516
|
-
[CSS$
|
|
25550
|
+
// 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)
|
|
25551
|
+
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$C.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: {
|
|
25552
|
+
[CSS$C.menu]: true,
|
|
25553
|
+
[CSS$C.menuActive]: this.open,
|
|
25517
25554
|
}, id: this.dialogId, role: "dialog",
|
|
25518
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25555
|
+
// 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)
|
|
25519
25556
|
ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
25520
25557
|
["calendar-picker-wrapper"]: true,
|
|
25521
25558
|
["calendar-picker-wrapper--end"]: this.focusedInput === "end",
|
|
25522
25559
|
[FloatingCSS.animation]: true,
|
|
25523
25560
|
[FloatingCSS.animationActive]: this.open,
|
|
25524
25561
|
},
|
|
25525
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25562
|
+
// 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)
|
|
25526
25563
|
ref: this.setTransitionEl }, hAsync("calcite-date-picker", { activeDate: this.datePickerActiveDate, activeRange: this.focusedInput, headingLevel: this.headingLevel, max: this.max, maxAsDate: this.maxAsDate, messageOverrides: this.messageOverrides, min: this.min, minAsDate: this.minAsDate, numberingSystem: numberingSystem, onCalciteDatePickerChange: this.handleDateChange, onCalciteDatePickerRangeChange: this.handleDateRangeChange, proximitySelectionDisabled: this.proximitySelectionDisabled, range: this.range, scale: this.scale, tabIndex: this.open ? undefined : -1, valueAsDate: this.valueAsDate,
|
|
25527
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25564
|
+
// 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)
|
|
25528
25565
|
ref: this.setDatePickerRef }))), this.range && this.layout === "horizontal" && (hAsync("div", { class: "horizontal-arrow-container" }, hAsync("calcite-icon", { flipRtl: true, icon: "arrow-right", scale: this.scale === "l" ? "m" : "s" }))), this.range && this.layout === "vertical" && this.scale !== "s" && (hAsync("div", { class: "vertical-arrow-container" }, hAsync("calcite-icon", { icon: "arrow-down", scale: this.scale === "l" ? "m" : "s" }))), this.range && (hAsync("div", { class: "input-wrapper", onClick: this.onInputWrapperClick,
|
|
25529
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25566
|
+
// 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)
|
|
25530
25567
|
ref: this.setEndWrapper }, hAsync("calcite-input", { "aria-autocomplete": "none", "aria-controls": this.dialogId, "aria-expanded": toAriaBoolean(this.open), "aria-haspopup": "dialog", class: {
|
|
25531
25568
|
input: true,
|
|
25532
25569
|
"border-top-color-one": this.layout === "vertical" && this.range,
|
|
25533
25570
|
}, disabled: disabled, icon: "calendar", "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.endInputFocus, onFocus: this.startEndInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, role: "combobox", scale: this.scale, type: "text",
|
|
25534
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
25571
|
+
// 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)
|
|
25535
25572
|
ref: this.setEndInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "end"))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
25536
25573
|
}
|
|
25537
25574
|
renderToggleIcon(open) {
|
|
25538
|
-
return (hAsync("span", { class: CSS$
|
|
25575
|
+
return (hAsync("span", { class: CSS$C.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
25539
25576
|
}
|
|
25540
25577
|
setReferenceEl() {
|
|
25541
25578
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -25783,7 +25820,7 @@ class InputMessage {
|
|
|
25783
25820
|
}; }
|
|
25784
25821
|
}
|
|
25785
25822
|
|
|
25786
|
-
const CSS$
|
|
25823
|
+
const CSS$B = {
|
|
25787
25824
|
loader: "loader",
|
|
25788
25825
|
clearButton: "clear-button",
|
|
25789
25826
|
editingEnabled: "editing-enabled",
|
|
@@ -26292,27 +26329,27 @@ class InputNumber {
|
|
|
26292
26329
|
// --------------------------------------------------------------------------
|
|
26293
26330
|
render() {
|
|
26294
26331
|
const dir = getElementDir(this.el);
|
|
26295
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26296
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26297
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26332
|
+
const loader = (hAsync("div", { class: CSS$B.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26333
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$B.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
26334
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$B.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
26298
26335
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
26299
26336
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26300
|
-
[CSS$
|
|
26301
|
-
[CSS$
|
|
26337
|
+
[CSS$B.numberButtonItem]: true,
|
|
26338
|
+
[CSS$B.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26302
26339
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: this.scale === "l" ? "m" : "s" })));
|
|
26303
26340
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26304
|
-
[CSS$
|
|
26305
|
-
[CSS$
|
|
26341
|
+
[CSS$B.numberButtonItem]: true,
|
|
26342
|
+
[CSS$B.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26306
26343
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
26307
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
26308
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26309
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
26344
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$B.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
26345
|
+
const prefixText = hAsync("div", { class: CSS$B.prefix }, this.prefixText);
|
|
26346
|
+
const suffixText = hAsync("div", { class: CSS$B.suffix }, this.suffixText);
|
|
26310
26347
|
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,
|
|
26311
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
26348
|
+
// 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)
|
|
26312
26349
|
ref: this.setChildNumberElRef }));
|
|
26313
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26350
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$B.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26314
26351
|
? numberButtonsHorizontalDown
|
|
26315
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
26352
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$B.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$B.actionWrapper }, hAsync("slot", { name: SLOTS$j.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26316
26353
|
? numberButtonsHorizontalUp
|
|
26317
26354
|
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26318
26355
|
}
|
|
@@ -26379,7 +26416,7 @@ class InputNumber {
|
|
|
26379
26416
|
}; }
|
|
26380
26417
|
}
|
|
26381
26418
|
|
|
26382
|
-
const CSS$
|
|
26419
|
+
const CSS$A = {
|
|
26383
26420
|
loader: "loader",
|
|
26384
26421
|
clearButton: "clear-button",
|
|
26385
26422
|
editingEnabled: "editing-enabled",
|
|
@@ -26679,18 +26716,18 @@ class InputText {
|
|
|
26679
26716
|
// --------------------------------------------------------------------------
|
|
26680
26717
|
render() {
|
|
26681
26718
|
const dir = getElementDir(this.el);
|
|
26682
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26683
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26684
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26685
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26686
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
26719
|
+
const loader = (hAsync("div", { class: CSS$A.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26720
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$A.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputTextValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
26721
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$A.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
26722
|
+
const prefixText = hAsync("div", { class: CSS$A.prefix }, this.prefixText);
|
|
26723
|
+
const suffixText = hAsync("div", { class: CSS$A.suffix }, this.suffixText);
|
|
26687
26724
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
26688
|
-
[CSS$
|
|
26689
|
-
[CSS$
|
|
26725
|
+
[CSS$A.editingEnabled]: this.editingEnabled,
|
|
26726
|
+
[CSS$A.inlineChild]: !!this.inlineEditableEl,
|
|
26690
26727
|
}, 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,
|
|
26691
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
26728
|
+
// 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)
|
|
26692
26729
|
ref: this.setChildElRef }));
|
|
26693
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26730
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$A.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$A.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$A.actionWrapper }, hAsync("slot", { name: SLOTS$i.action })), this.suffixText ? suffixText : null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26694
26731
|
}
|
|
26695
26732
|
static get assetsDirs() { return ["assets"]; }
|
|
26696
26733
|
get el() { return getElement(this); }
|
|
@@ -26928,7 +26965,7 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
26928
26965
|
return isoTimeString;
|
|
26929
26966
|
}
|
|
26930
26967
|
|
|
26931
|
-
const CSS$
|
|
26968
|
+
const CSS$z = {
|
|
26932
26969
|
toggleIcon: "toggle-icon",
|
|
26933
26970
|
};
|
|
26934
26971
|
|
|
@@ -28592,15 +28629,15 @@ class InputTimePicker {
|
|
|
28592
28629
|
render() {
|
|
28593
28630
|
const { disabled, messages, readOnly, dialogId } = this;
|
|
28594
28631
|
return (hAsync(Host, { onBlur: this.hostBlurHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: "input-wrapper", onClick: this.onInputWrapperClick }, hAsync("calcite-input", { "aria-autocomplete": "none", "aria-haspopup": "dialog", disabled: disabled, icon: "clock", id: this.referenceElementId, label: getLabelText(this), lang: this.effectiveLocale, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: readOnly, role: "combobox", scale: this.scale, step: this.step,
|
|
28595
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
28632
|
+
// 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)
|
|
28596
28633
|
ref: this.setCalciteInputEl }), !this.readOnly && this.renderToggleIcon(this.open)), hAsync("calcite-popover", { focusTrapDisabled: true, id: dialogId, label: messages.chooseTime, lang: this.effectiveLocale, onCalcitePopoverClose: this.popoverCloseHandler, onCalcitePopoverOpen: this.popoverOpenHandler, open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, referenceElement: this.referenceElementId, triggerDisabled: true,
|
|
28597
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
28634
|
+
// 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)
|
|
28598
28635
|
ref: this.setCalcitePopoverEl }, hAsync("calcite-time-picker", { lang: this.effectiveLocale, messageOverrides: this.messageOverrides, numberingSystem: this.numberingSystem, onCalciteInternalTimePickerChange: this.timePickerChangeHandler, scale: this.scale, step: this.step, tabIndex: this.open ? undefined : -1, value: this.value,
|
|
28599
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
28636
|
+
// 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)
|
|
28600
28637
|
ref: this.setCalciteTimePickerEl })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
28601
28638
|
}
|
|
28602
28639
|
renderToggleIcon(open) {
|
|
28603
|
-
return (hAsync("span", { class: CSS$
|
|
28640
|
+
return (hAsync("span", { class: CSS$z.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
28604
28641
|
}
|
|
28605
28642
|
static get delegatesFocus() { return true; }
|
|
28606
28643
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -28803,7 +28840,7 @@ class InputTimeZone {
|
|
|
28803
28840
|
}
|
|
28804
28841
|
render() {
|
|
28805
28842
|
return (hAsync(Host, null, hAsync("calcite-combobox", { clearDisabled: true, disabled: this.disabled, label: this.messages.chooseTimeZone, lang: this.effectiveLocale, onCalciteComboboxBeforeClose: this.onComboboxBeforeClose, onCalciteComboboxBeforeOpen: this.onComboboxBeforeOpen, onCalciteComboboxChange: this.onComboboxChange, onCalciteComboboxClose: this.onComboboxClose, onCalciteComboboxOpen: this.onComboboxOpen, open: this.open, overlayPositioning: this.overlayPositioning, scale: this.scale, selectionMode: "single",
|
|
28806
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
28843
|
+
// 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)
|
|
28807
28844
|
ref: this.setComboboxRef }, this.timeZoneGroups.map((group) => {
|
|
28808
28845
|
const selected = this.selectedTimeZoneGroup === group;
|
|
28809
28846
|
const label = group.offsetLabel;
|
|
@@ -28844,7 +28881,7 @@ class InputTimeZone {
|
|
|
28844
28881
|
}; }
|
|
28845
28882
|
}
|
|
28846
28883
|
|
|
28847
|
-
const CSS$
|
|
28884
|
+
const CSS$y = {
|
|
28848
28885
|
container: "container",
|
|
28849
28886
|
};
|
|
28850
28887
|
|
|
@@ -28884,7 +28921,7 @@ class Label {
|
|
|
28884
28921
|
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
28885
28922
|
}
|
|
28886
28923
|
render() {
|
|
28887
|
-
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$
|
|
28924
|
+
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$y.container }, hAsync("slot", null))));
|
|
28888
28925
|
}
|
|
28889
28926
|
get el() { return getElement(this); }
|
|
28890
28927
|
static get style() { return labelCss; }
|
|
@@ -28970,7 +29007,7 @@ class Link {
|
|
|
28970
29007
|
This works around that issue for now.
|
|
28971
29008
|
*/
|
|
28972
29009
|
download: Tag === "a" && (download === "" || download) ? download : null, href: Tag === "a" && this.href, onClick: this.childElClickHandler, rel: Tag === "a" && this.rel, role: role, tabIndex: tabIndex, target: Tag === "a" && this.target,
|
|
28973
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
29010
|
+
// 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)
|
|
28974
29011
|
ref: this.storeTagRef }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null)));
|
|
28975
29012
|
}
|
|
28976
29013
|
//--------------------------------------------------------------------------
|
|
@@ -29019,7 +29056,7 @@ class Link {
|
|
|
29019
29056
|
}; }
|
|
29020
29057
|
}
|
|
29021
29058
|
|
|
29022
|
-
const CSS$
|
|
29059
|
+
const CSS$x = {
|
|
29023
29060
|
container: "container",
|
|
29024
29061
|
containerBorderSelected: "container--border-selected",
|
|
29025
29062
|
containerBorderUnselected: "container--border-unselected",
|
|
@@ -29086,7 +29123,7 @@ function getDepth(element, includeGroup = false) {
|
|
|
29086
29123
|
}
|
|
29087
29124
|
}
|
|
29088
29125
|
|
|
29089
|
-
const CSS$
|
|
29126
|
+
const CSS$w = {
|
|
29090
29127
|
container: "container",
|
|
29091
29128
|
table: "table",
|
|
29092
29129
|
scrim: "scrim",
|
|
@@ -32197,7 +32234,7 @@ function onSortingEnd(activeComponent) {
|
|
|
32197
32234
|
getNestedSortableComponents(activeComponent).forEach((component) => inactiveSortableComponentSet.delete(component));
|
|
32198
32235
|
}
|
|
32199
32236
|
|
|
32200
|
-
const CSS$
|
|
32237
|
+
const CSS$v = {
|
|
32201
32238
|
container: "container",
|
|
32202
32239
|
actionsStart: "actions-start",
|
|
32203
32240
|
contentStart: "content-start",
|
|
@@ -32501,7 +32538,11 @@ class List$1 {
|
|
|
32501
32538
|
// Public Methods
|
|
32502
32539
|
//
|
|
32503
32540
|
// --------------------------------------------------------------------------
|
|
32504
|
-
/**
|
|
32541
|
+
/**
|
|
32542
|
+
* Sets focus on the component's first focusable element.
|
|
32543
|
+
*
|
|
32544
|
+
* @returns {Promise<void>}
|
|
32545
|
+
*/
|
|
32505
32546
|
async setFocus() {
|
|
32506
32547
|
await componentFocusable(this);
|
|
32507
32548
|
if (this.filterEnabled) {
|
|
@@ -32516,9 +32557,9 @@ class List$1 {
|
|
|
32516
32557
|
// --------------------------------------------------------------------------
|
|
32517
32558
|
render() {
|
|
32518
32559
|
const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText, hasFilterActionsStart, hasFilterActionsEnd, } = this;
|
|
32519
|
-
return (hAsync("div", { class: CSS$
|
|
32520
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
32521
|
-
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$g.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS$f.actionsEnd })))))) : null, hAsync("tbody", { class: CSS$
|
|
32560
|
+
return (hAsync("div", { class: CSS$w.container }, this.dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: CSS$w.assistiveText }, this.assistiveText)) : null, loading ? hAsync("calcite-scrim", { class: CSS$w.scrim, loading: loading }) : null, hAsync("table", { "aria-busy": toAriaBoolean(loading), "aria-label": label || "", class: CSS$w.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? (hAsync("thead", null, hAsync("tr", { class: { [CSS$w.sticky]: true } }, hAsync("th", { colSpan: MAX_COLUMNS }, hAsync("calcite-stack", { class: CSS$w.stack }, hAsync("slot", { name: SLOTS$g.filterActionsStart, onSlotchange: this.handleFilterActionsStartSlotChange, slot: SLOTS$f.actionsStart }), hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: this.handleFilterChange, placeholder: filterPlaceholder, value: filterText,
|
|
32561
|
+
// 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)
|
|
32562
|
+
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$g.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS$f.actionsEnd })))))) : null, hAsync("tbody", { class: CSS$w.tableContainer }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })))));
|
|
32522
32563
|
}
|
|
32523
32564
|
// --------------------------------------------------------------------------
|
|
32524
32565
|
//
|
|
@@ -32933,47 +32974,47 @@ class ListItem {
|
|
|
32933
32974
|
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
32934
32975
|
return null;
|
|
32935
32976
|
}
|
|
32936
|
-
return (hAsync("td", { class: CSS$
|
|
32977
|
+
return (hAsync("td", { class: CSS$x.selectionContainer, key: "selection-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: selected
|
|
32937
32978
|
? selectionMode === "multiple"
|
|
32938
32979
|
? ICONS$7.selectedMultiple
|
|
32939
32980
|
: ICONS$7.selectedSingle
|
|
32940
32981
|
: ICONS$7.unselected, scale: "s" })));
|
|
32941
32982
|
}
|
|
32942
32983
|
renderDragHandle() {
|
|
32943
|
-
return this.dragHandle ? (hAsync("td", { class: CSS$
|
|
32984
|
+
return this.dragHandle ? (hAsync("td", { class: CSS$x.dragContainer, key: "drag-handle-container" }, hAsync("calcite-handle", { label: this.label, setPosition: this.setPosition, setSize: this.setSize }))) : null;
|
|
32944
32985
|
}
|
|
32945
32986
|
renderOpen() {
|
|
32946
32987
|
const { el, open, openable, parentListEl } = this;
|
|
32947
32988
|
const dir = getElementDir(el);
|
|
32948
|
-
return openable ? (hAsync("td", { class: CSS$
|
|
32989
|
+
return openable ? (hAsync("td", { class: CSS$x.openContainer, key: "open-container", onClick: this.toggleOpen }, hAsync("calcite-icon", { icon: open ? ICONS$7.open : dir === "rtl" ? ICONS$7.closedRTL : ICONS$7.closedLTR, scale: "s" }))) : parentListEl?.openable ? (hAsync("td", { class: CSS$x.openContainer, key: "open-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: ICONS$7.blank, scale: "s" }))) : null;
|
|
32949
32990
|
}
|
|
32950
32991
|
renderActionsStart() {
|
|
32951
32992
|
const { label, hasActionsStart } = this;
|
|
32952
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
32953
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
32993
|
+
return (hAsync("td", { "aria-label": label, class: CSS$x.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", role: "gridcell",
|
|
32994
|
+
// 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)
|
|
32954
32995
|
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$h.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
32955
32996
|
}
|
|
32956
32997
|
renderActionsEnd() {
|
|
32957
32998
|
const { label, hasActionsEnd, closable, messages } = this;
|
|
32958
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
32959
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
32999
|
+
return (hAsync("td", { "aria-label": label, class: CSS$x.actionsEnd, hidden: !(hasActionsEnd || closable), key: "actions-end-container", role: "gridcell",
|
|
33000
|
+
// 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)
|
|
32960
33001
|
ref: (el) => (this.actionsEndEl = el) }, hAsync("slot", { name: SLOTS$h.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), closable ? (hAsync("calcite-action", { appearance: "transparent", icon: ICONS$7.close, key: "close-action", label: messages.close, onClick: this.closeClickHandler, text: messages.close })) : null));
|
|
32961
33002
|
}
|
|
32962
33003
|
renderContentStart() {
|
|
32963
33004
|
const { hasContentStart } = this;
|
|
32964
|
-
return (hAsync("div", { class: CSS$
|
|
33005
|
+
return (hAsync("div", { class: CSS$x.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$h.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
32965
33006
|
}
|
|
32966
33007
|
renderCustomContent() {
|
|
32967
33008
|
const { hasCustomContent } = this;
|
|
32968
|
-
return (hAsync("div", { class: CSS$
|
|
33009
|
+
return (hAsync("div", { class: CSS$x.customContent, hidden: !hasCustomContent }, hAsync("slot", { name: SLOTS$h.content, onSlotchange: this.handleContentSlotChange })));
|
|
32969
33010
|
}
|
|
32970
33011
|
renderContentEnd() {
|
|
32971
33012
|
const { hasContentEnd } = this;
|
|
32972
|
-
return (hAsync("div", { class: CSS$
|
|
33013
|
+
return (hAsync("div", { class: CSS$x.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$h.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
32973
33014
|
}
|
|
32974
33015
|
renderContentProperties() {
|
|
32975
33016
|
const { label, description, hasCustomContent } = this;
|
|
32976
|
-
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$
|
|
33017
|
+
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$x.content, key: "content" }, label ? (hAsync("div", { class: CSS$x.label, key: "label" }, label)) : null, description ? (hAsync("div", { class: CSS$x.description, key: "description" }, description)) : null)) : null;
|
|
32977
33018
|
}
|
|
32978
33019
|
renderContentContainer() {
|
|
32979
33020
|
const { description, label, selectionMode, hasCustomContent } = this;
|
|
@@ -32985,11 +33026,11 @@ class ListItem {
|
|
|
32985
33026
|
this.renderContentEnd(),
|
|
32986
33027
|
];
|
|
32987
33028
|
return (hAsync("td", { "aria-label": label, class: {
|
|
32988
|
-
[CSS$
|
|
32989
|
-
[CSS$
|
|
32990
|
-
[CSS$
|
|
33029
|
+
[CSS$x.contentContainer]: true,
|
|
33030
|
+
[CSS$x.contentContainerSelectable]: selectionMode !== "none",
|
|
33031
|
+
[CSS$x.contentContainerHasCenterContent]: hasCenterContent,
|
|
32991
33032
|
}, key: "content-container", onClick: this.itemClicked, role: "gridcell",
|
|
32992
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
33033
|
+
// 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)
|
|
32993
33034
|
ref: (el) => (this.contentEl = el) }, content));
|
|
32994
33035
|
}
|
|
32995
33036
|
render() {
|
|
@@ -32998,14 +33039,14 @@ class ListItem {
|
|
|
32998
33039
|
const borderSelected = showBorder && selected;
|
|
32999
33040
|
const borderUnselected = showBorder && !selected;
|
|
33000
33041
|
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: {
|
|
33001
|
-
[CSS$
|
|
33002
|
-
[CSS$
|
|
33003
|
-
[CSS$
|
|
33042
|
+
[CSS$x.container]: true,
|
|
33043
|
+
[CSS$x.containerBorderSelected]: borderSelected,
|
|
33044
|
+
[CSS$x.containerBorderUnselected]: borderUnselected,
|
|
33004
33045
|
}, hidden: closed, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${this.visualLevel}` }, tabIndex: active ? 0 : -1,
|
|
33005
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
33046
|
+
// 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)
|
|
33006
33047
|
ref: (el) => (this.containerEl = el) }, this.renderDragHandle(), this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: {
|
|
33007
|
-
[CSS$
|
|
33008
|
-
[CSS$
|
|
33048
|
+
[CSS$x.nestedContainer]: true,
|
|
33049
|
+
[CSS$x.nestedContainerHidden]: openable && !open,
|
|
33009
33050
|
} }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange, ref: (el) => (this.defaultSlotEl = el) }))));
|
|
33010
33051
|
}
|
|
33011
33052
|
// --------------------------------------------------------------------------
|
|
@@ -33095,7 +33136,7 @@ class ListItem {
|
|
|
33095
33136
|
}; }
|
|
33096
33137
|
}
|
|
33097
33138
|
|
|
33098
|
-
const CSS$
|
|
33139
|
+
const CSS$u = {
|
|
33099
33140
|
container: "container",
|
|
33100
33141
|
heading: "heading",
|
|
33101
33142
|
};
|
|
@@ -33144,7 +33185,7 @@ class ListItemGroup {
|
|
|
33144
33185
|
// --------------------------------------------------------------------------
|
|
33145
33186
|
render() {
|
|
33146
33187
|
const { heading, visualLevel } = this;
|
|
33147
|
-
return (hAsync(Host, null, hAsync("tr", { class: CSS$
|
|
33188
|
+
return (hAsync(Host, null, hAsync("tr", { class: CSS$u.container, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, hAsync("td", { class: CSS$u.heading, colSpan: MAX_COLUMNS }, heading)), hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })));
|
|
33148
33189
|
}
|
|
33149
33190
|
get el() { return getElement(this); }
|
|
33150
33191
|
static get style() { return listItemGroupCss; }
|
|
@@ -33162,7 +33203,7 @@ class ListItemGroup {
|
|
|
33162
33203
|
}; }
|
|
33163
33204
|
}
|
|
33164
33205
|
|
|
33165
|
-
const loaderCss = "@charset \"UTF-8\";@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-loader:root{--calcite-internal-duration-factor:0}}/*!@:host*/.sc-calcite-loader-h{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}/*!@:host([scale=s])*/[scale=s].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}/*!@:host([no-padding])*/[no-padding].sc-calcite-loader-h{padding-block:0px}/*!@:host*/.sc-calcite-loader-h{display:flex}/*!@.loader__text*/.loader__text.sc-calcite-loader{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}/*!@.loader__percentage*/.loader__percentage.sc-calcite-loader{position:absolute;display:block;text-align:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}/*!@.loader__svgs*/.loader__svgs.sc-calcite-loader{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);
|
|
33206
|
+
const loaderCss = "@charset \"UTF-8\";@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-loader:root{--calcite-internal-duration-factor:0}}/*!@:host*/.sc-calcite-loader-h{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-ui-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem)}/*!@:host([scale=s])*/[scale=s].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-loader-h{--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}/*!@:host([no-padding])*/[no-padding].sc-calcite-loader-h{padding-block:0px}/*!@:host*/.sc-calcite-loader-h{display:flex}/*!@.loader__text*/.loader__text.sc-calcite-loader{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-ui-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}/*!@.loader__percentage*/.loader__percentage.sc-calcite-loader{position:absolute;display:block;text-align:center;color:var(--calcite-ui-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}/*!@.loader__svgs*/.loader__svgs.sc-calcite-loader{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.66 / var(--calcite-internal-duration-factor));animation-name:loader-clockwise}/*!@.loader__svg*/.loader__svg.sc-calcite-loader{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear}@supports (display: grid){/*!@.loader__svg--1*/.loader__svg--1.sc-calcite-loader{animation-name:loader-offset-1}/*!@.loader__svg--2*/.loader__svg--2.sc-calcite-loader{animation-name:loader-offset-2}/*!@.loader__svg--3*/.loader__svg--3.sc-calcite-loader{animation-name:loader-offset-3}}/*!@:host([type=determinate])*/[type=determinate].sc-calcite-loader-h{animation:none;stroke:var(--calcite-ui-border-3)}/*!@:host([type=determinate]) .loader__svgs*/[type=determinate].sc-calcite-loader-h .loader__svgs.sc-calcite-loader{animation:none}/*!@:host([type=determinate]) .loader__svg--3*/[type=determinate].sc-calcite-loader-h .loader__svg--3.sc-calcite-loader{animation:none;stroke:var(--calcite-ui-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}/*!@:host([inline])*/[inline].sc-calcite-loader-h{position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}/*!@:host([inline]) .loader__svgs*/[inline].sc-calcite-loader-h .loader__svgs.sc-calcite-loader{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}/*!@:host([inline]) .loader__svg*/[inline].sc-calcite-loader-h .loader__svg.sc-calcite-loader{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}/*!@:host([complete])*/[complete].sc-calcite-loader-h{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}/*!@:host([complete]) .loader__svgs*/[complete].sc-calcite-loader-h .loader__svgs.sc-calcite-loader{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}/*!@:host([complete]) .loader__percentage*/[complete].sc-calcite-loader-h .loader__percentage.sc-calcite-loader{color:var(--calcite-ui-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}/*!@.loader__svg--1*/.loader__svg--1.sc-calcite-loader{stroke-dasharray:27.9252444444 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 4.8 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-83.7757333333}100%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:-279.2524444444}}/*!@.loader__svg--2*/.loader__svg--2.sc-calcite-loader{stroke-dasharray:55.8504888889 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.4 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-97.7383555556}100%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:-279.2524444444}}/*!@.loader__svg--3*/.loader__svg--3.sc-calcite-loader{stroke-dasharray:13.9626222222 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 7.734 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-76.7944222222}100%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:-279.2524444444}}@keyframes loader-color-shift{0%{stroke:var(--calcite-ui-brand)}33%{stroke:var(--calcite-ui-brand-press)}66%{stroke:var(--calcite-ui-brand-hover)}100%{stroke:var(--calcite-ui-brand)}}@keyframes loader-clockwise{100%{transform:rotate(360deg)}}/*!@:host([hidden])*/[hidden].sc-calcite-loader-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-loader{display:none}";
|
|
33166
33207
|
|
|
33167
33208
|
class Loader {
|
|
33168
33209
|
constructor(hostRef) {
|
|
@@ -33244,7 +33285,7 @@ class Loader {
|
|
|
33244
33285
|
}; }
|
|
33245
33286
|
}
|
|
33246
33287
|
|
|
33247
|
-
const CSS$
|
|
33288
|
+
const CSS$t = {
|
|
33248
33289
|
container: "container",
|
|
33249
33290
|
fill: "fill",
|
|
33250
33291
|
stepLine: "step-line",
|
|
@@ -33394,16 +33435,16 @@ class Meter {
|
|
|
33394
33435
|
const aboveHighest = value >= highest;
|
|
33395
33436
|
const belowHighest = value < highest;
|
|
33396
33437
|
if (!value || (!low && belowHighest) || belowLowest) {
|
|
33397
|
-
return CSS$
|
|
33438
|
+
return CSS$t.success;
|
|
33398
33439
|
}
|
|
33399
33440
|
else if (aboveLowest && belowHighest) {
|
|
33400
|
-
return CSS$
|
|
33441
|
+
return CSS$t.warning;
|
|
33401
33442
|
}
|
|
33402
33443
|
else if (aboveHighest) {
|
|
33403
|
-
return CSS$
|
|
33444
|
+
return CSS$t.danger;
|
|
33404
33445
|
}
|
|
33405
33446
|
else {
|
|
33406
|
-
return CSS$
|
|
33447
|
+
return CSS$t.success;
|
|
33407
33448
|
}
|
|
33408
33449
|
}
|
|
33409
33450
|
intersects(el1, el2) {
|
|
@@ -33417,7 +33458,7 @@ class Meter {
|
|
|
33417
33458
|
const minHighOverlap = this.intersects(minLabelEl, highLabelEl);
|
|
33418
33459
|
const minLowOverlap = this.intersects(minLabelEl, lowLabelEl);
|
|
33419
33460
|
const minMaxOverlap = this.intersects(minLabelEl, maxLabelEl);
|
|
33420
|
-
const hiddenClass = CSS$
|
|
33461
|
+
const hiddenClass = CSS$t.labelHidden;
|
|
33421
33462
|
if (lowLabelEl) {
|
|
33422
33463
|
if (minLowOverlap || lowMaxOverlap || lowHighOverlap) {
|
|
33423
33464
|
lowLabelEl.classList.add(hiddenClass);
|
|
@@ -33466,26 +33507,26 @@ class Meter {
|
|
|
33466
33507
|
renderMeterFill() {
|
|
33467
33508
|
const { currentPercent, fillType } = this;
|
|
33468
33509
|
const kindClass = this.getMeterKindCssClass();
|
|
33469
|
-
return (hAsync("div", { class: { [CSS$
|
|
33510
|
+
return (hAsync("div", { class: { [CSS$t.fill]: true, [kindClass]: fillType !== "single" }, style: { width: `${currentPercent}%` } }));
|
|
33470
33511
|
}
|
|
33471
33512
|
renderRangeLine(position) {
|
|
33472
33513
|
const style = { insetInlineStart: `${position}%` };
|
|
33473
|
-
return hAsync("div", { class: CSS$
|
|
33514
|
+
return hAsync("div", { class: CSS$t.stepLine, style: style });
|
|
33474
33515
|
}
|
|
33475
33516
|
renderValueLabel() {
|
|
33476
33517
|
const { currentPercent, valueLabelType, unitLabel, value } = this;
|
|
33477
33518
|
const label = this.formatLabel(valueLabelType === "percent" ? currentPercent / 100 : value || 0, valueLabelType);
|
|
33478
|
-
return (hAsync("div", { class: { [CSS$
|
|
33519
|
+
return (hAsync("div", { class: { [CSS$t.label]: true, [CSS$t.labelValue]: true }, key: "low-label-line",
|
|
33479
33520
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33480
|
-
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
33521
|
+
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$t.unitLabel }, "\u00A0", unitLabel))));
|
|
33481
33522
|
}
|
|
33482
33523
|
renderMinLabel() {
|
|
33483
33524
|
const { rangeLabelType, min, minPercent, unitLabel } = this;
|
|
33484
33525
|
const style = { insetInlineStart: `${minPercent}%` };
|
|
33485
33526
|
const labelMin = this.formatLabel(rangeLabelType === "percent" ? minPercent : min, rangeLabelType);
|
|
33486
|
-
return (hAsync("div", { class: { [CSS$
|
|
33527
|
+
return (hAsync("div", { class: { [CSS$t.label]: true, [CSS$t.labelRange]: true }, key: "min-label-line", style: style,
|
|
33487
33528
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33488
|
-
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
33529
|
+
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$t.unitLabel }, "\u00A0", unitLabel))));
|
|
33489
33530
|
}
|
|
33490
33531
|
renderLowLabel() {
|
|
33491
33532
|
const { rangeLabelType, low, lowPercent, highPercent, labelFlipProximity } = this;
|
|
@@ -33495,7 +33536,7 @@ class Meter {
|
|
|
33495
33536
|
const styleDefault = { insetInlineStart: `${lowPercent}%` };
|
|
33496
33537
|
const styleFlipped = { insetInlineEnd: `${100 - lowPercent}%` };
|
|
33497
33538
|
const style = (highPercent - lowPercent) / 100 < labelFlipProximity ? styleFlipped : styleDefault;
|
|
33498
|
-
return (hAsync("div", { class: { [CSS$
|
|
33539
|
+
return (hAsync("div", { class: { [CSS$t.label]: true, [CSS$t.labelRange]: true }, key: "low-label-line", style: style,
|
|
33499
33540
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33500
33541
|
ref: (el) => (this.lowLabelEl = el) }, label));
|
|
33501
33542
|
}
|
|
@@ -33507,7 +33548,7 @@ class Meter {
|
|
|
33507
33548
|
const styleDefault = { insetInlineStart: `${highPercent}%` };
|
|
33508
33549
|
const styleFlipped = { insetInlineEnd: `${100 - highPercent}%` };
|
|
33509
33550
|
const style = highPercent / 100 >= labelFlipMax ? styleFlipped : styleDefault;
|
|
33510
|
-
return (hAsync("div", { class: { [CSS$
|
|
33551
|
+
return (hAsync("div", { class: { [CSS$t.label]: true, [CSS$t.labelRange]: true }, key: "high-label-line", style: style,
|
|
33511
33552
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33512
33553
|
ref: (el) => (this.highLabelEl = el) }, label));
|
|
33513
33554
|
}
|
|
@@ -33515,7 +33556,7 @@ class Meter {
|
|
|
33515
33556
|
const { rangeLabelType, max, maxPercent } = this;
|
|
33516
33557
|
const style = { insetInlineEnd: `${100 - maxPercent}%` };
|
|
33517
33558
|
const labelMax = this.formatLabel(rangeLabelType === "percent" ? maxPercent / 100 : max, rangeLabelType);
|
|
33518
|
-
return (hAsync("div", { class: { [CSS$
|
|
33559
|
+
return (hAsync("div", { class: { [CSS$t.label]: true, [CSS$t.labelRange]: true }, key: "max-label-line", style: style,
|
|
33519
33560
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33520
33561
|
ref: (el) => (this.maxLabelEl = el) }, labelMax));
|
|
33521
33562
|
}
|
|
@@ -33529,9 +33570,9 @@ class Meter {
|
|
|
33529
33570
|
? textUnitLabel
|
|
33530
33571
|
: undefined;
|
|
33531
33572
|
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: {
|
|
33532
|
-
[CSS$
|
|
33533
|
-
[CSS$
|
|
33534
|
-
[CSS$
|
|
33573
|
+
[CSS$t.container]: true,
|
|
33574
|
+
[CSS$t.stepsVisible]: rangeLabels,
|
|
33575
|
+
[CSS$t.valueVisible]: valueLabel,
|
|
33535
33576
|
[appearance]: appearance !== "outline-fill",
|
|
33536
33577
|
}, role: "meter",
|
|
33537
33578
|
// eslint-disable-next-line react/jsx-sort-props
|
|
@@ -33587,7 +33628,7 @@ class Meter {
|
|
|
33587
33628
|
}; }
|
|
33588
33629
|
}
|
|
33589
33630
|
|
|
33590
|
-
const CSS$
|
|
33631
|
+
const CSS$s = {
|
|
33591
33632
|
modal: "modal",
|
|
33592
33633
|
title: "title",
|
|
33593
33634
|
header: "header",
|
|
@@ -33624,7 +33665,7 @@ const SLOTS$e = {
|
|
|
33624
33665
|
primary: "primary",
|
|
33625
33666
|
};
|
|
33626
33667
|
|
|
33627
|
-
const modalCss = "/*!@:host*/.sc-calcite-modal-h{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-scrim-background-internal:rgba(0, 0, 0, 0.85)}/*!@.content-top[hidden],\n.content-bottom[hidden]*/.content-top[hidden].sc-calcite-modal,.content-bottom[hidden].sc-calcite-modal{display:none}/*!@.container*/.container.sc-calcite-modal{position:fixed;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}/*!@:host([scale=s])*/[scale=s].sc-calcite-modal-h{--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}/*!@:host([scale=m])*/[scale=m].sc-calcite-modal-h{--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}/*!@:host([scale=l])*/[scale=l].sc-calcite-modal-h{--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}/*!@.scrim*/.scrim.sc-calcite-modal{--calcite-scrim-background:var(--calcite-modal-scrim-background, var(--calcite-modal-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}/*!@.modal*/.modal.sc-calcite-modal{pointer-events:none;z-index:var(--calcite-app-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -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);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}/*!@.modal--opening-idle*/.modal--opening-idle.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@.modal--opening-active*/.modal--opening-active.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-idle*/.modal--closing-idle.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-active*/.modal--closing-active.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@:host([open])*/[open].sc-calcite-modal-h{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@.container--open*/.container--open.sc-calcite-modal{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@.container--open .modal*/.container--open.sc-calcite-modal .modal.sc-calcite-modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}/*!@.header*/.header.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}/*!@.close*/.close.sc-calcite-modal{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;appearance:none;border-style:none;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;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}/*!@.close calcite-icon*/.close.sc-calcite-modal calcite-icon.sc-calcite-modal{pointer-events:none;vertical-align:-2px}/*!@.close:focus*/.close.sc-calcite-modal: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:active*/.close.sc-calcite-modal:hover,.close.sc-calcite-modal:focus,.close.sc-calcite-modal:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.title*/.title.sc-calcite-modal{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}/*!@slot[name=header]::slotted(*),\n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text-internal)}/*!@.content*/.content.sc-calcite-modal{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0px;background-color:var(--calcite-modal-content-background, var(--calcite-ui-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}/*!@.content-top,\n.content-bottom*/.content-top.sc-calcite-modal,.content-bottom.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}/*!@.content-top*/.content-top.sc-calcite-modal{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}/*!@.content-bottom*/.content-bottom.sc-calcite-modal{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}/*!@.content-top:not(.header ~ .content-top)*/.content-top.sc-calcite-modal:not(.header~.content-top).sc-calcite-modal{border-start-start-radius:0.25rem;border-start-end-radius:0.25rem}/*!@.content-bottom:not(.content-bottom ~ .footer),\n.content--no-footer*/.content-bottom.sc-calcite-modal:not(.content-bottom~.footer).sc-calcite-modal,.content--no-footer.sc-calcite-modal{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}/*!@slot[name=content]::slotted(*),\n*::slotted([slot=content])*/slot[name=content].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=content]{font-size:var(--calcite-modal-context-text-internal)}/*!@.footer*/.footer.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}/*!@.footer--hide-back .back,\n.footer--hide-secondary .secondary*/.footer--hide-back.sc-calcite-modal .back.sc-calcite-modal,.footer--hide-secondary.sc-calcite-modal .secondary.sc-calcite-modal{display:none}/*!@.back*/.back.sc-calcite-modal{display:block;margin-inline-end:auto}/*!@.secondary*/.secondary.sc-calcite-modal{margin-inline:0.25rem;display:block}/*!@slot[name=primary]*/slot[name=primary].sc-calcite-modal{display:block}/*!@:host([width=small]) .modal*/[width=small].sc-calcite-modal-h .modal.sc-calcite-modal{inline-size:auto}/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=s]) .content*/[width=s].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=s][docked]) .container*/[width=s][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=m]) .content*/[width=m].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=m][docked]) .container*/[width=m][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=l]) .content*/[width=l].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=l][docked]) .container*/[width=l][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([fullscreen]) .modal*/[fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}/*!@:host([fullscreen]) .content*/[fullscreen].sc-calcite-modal-h .content.sc-calcite-modal{max-block-size:100%;flex:1 1 auto}/*!@:host([open][fullscreen]) .header,\n:host([open][fullscreen]) .footer,\n:host([open][fullscreen]) .content-top,\n:host([open][fullscreen]) .content-bottom*/[open][fullscreen].sc-calcite-modal-h .header.sc-calcite-modal,[open][fullscreen].sc-calcite-modal-h .footer.sc-calcite-modal,[open][fullscreen].sc-calcite-modal-h .content-top.sc-calcite-modal,[open][fullscreen].sc-calcite-modal-h .content-bottom.sc-calcite-modal{border-radius:0}/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{block-size:var(--calcite-modal-height, auto)}/*!@:host([docked]) .content*/[docked].sc-calcite-modal-h .content.sc-calcite-modal{block-size:auto;flex:1 1 auto}/*!@:host([kind=brand]) .modal*/[kind=brand].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-brand)}/*!@:host([kind=danger]) .modal*/[kind=danger].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-danger)}/*!@:host([kind=info]) .modal*/[kind=info].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-info)}/*!@:host([kind=success]) .modal*/[kind=success].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-success)}/*!@:host([kind=warning]) .modal*/[kind=warning].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-warning)}/*!@:host([kind=brand]) .modal,\n:host([kind=danger]) .modal,\n:host([kind=info]) .modal,\n:host([kind=success]) .modal,\n:host([kind=warning]) .modal*/[kind=brand].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=info].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=success].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .modal.sc-calcite-modal{border-width:0px;border-block-start-width:4px;border-style:solid}/*!@:host([kind=brand]) .header,\n:host([kind=brand]) .content-top,\n:host([kind=danger]) .header,\n:host([kind=danger]) .content-top,\n:host([kind=info]) .header,\n:host([kind=info]) .content-top,\n:host([kind=success]) .header,\n:host([kind=success]) .content-top,\n:host([kind=warning]) .header,\n:host([kind=warning]) .content-top*/[kind=brand].sc-calcite-modal-h .header.sc-calcite-modal,[kind=brand].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .header.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=info].sc-calcite-modal-h .header.sc-calcite-modal,[kind=info].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=success].sc-calcite-modal-h .header.sc-calcite-modal,[kind=success].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .header.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .content-top.sc-calcite-modal{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){/*!@* slot[name=header]::slotted(content-top),\n * content-top::slotted([slot=header])*/* slot[name=header].sc-calcite-modal-s>content-top,* content-top.sc-calcite-modal-s>[slot=header]{font-size:var(--calcite-font-size-1)}/*!@.footer,\n .content-bottom*/.footer.sc-calcite-modal,.content-bottom.sc-calcite-modal{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){/*!@.footer,\n .content-bottom*/.footer.sc-calcite-modal,.content-bottom.sc-calcite-modal{flex-direction:column}/*!@.back,\n .secondary*/.back.sc-calcite-modal,.secondary.sc-calcite-modal{margin:0px;margin-block-end:0.25rem}}/*!@.container.slotted-in-shell*/.container.slotted-in-shell.sc-calcite-modal{position:absolute;pointer-events:auto}/*!@.container.slotted-in-shell calcite-scrim*/.container.slotted-in-shell.sc-calcite-modal calcite-scrim.sc-calcite-modal{position:absolute}/*!@:host([hidden])*/[hidden].sc-calcite-modal-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-modal{display:none}";
|
|
33668
|
+
const modalCss = "/*!@:host*/.sc-calcite-modal-h{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-scrim-background-internal:rgba(0, 0, 0, 0.85)}/*!@.content-top[hidden],\n.content-bottom[hidden]*/.content-top[hidden].sc-calcite-modal,.content-bottom[hidden].sc-calcite-modal{display:none}/*!@.container*/.container.sc-calcite-modal{position:fixed;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}/*!@:host([scale=s])*/[scale=s].sc-calcite-modal-h{--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}/*!@:host([scale=m])*/[scale=m].sc-calcite-modal-h{--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}/*!@:host([scale=l])*/[scale=l].sc-calcite-modal-h{--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}/*!@.scrim*/.scrim.sc-calcite-modal{--calcite-scrim-background:var(--calcite-modal-scrim-background, var(--calcite-modal-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}/*!@.modal*/.modal.sc-calcite-modal{pointer-events:none;z-index:var(--calcite-app-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -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);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}/*!@.modal--opening-idle*/.modal--opening-idle.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@.modal--opening-active*/.modal--opening-active.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-idle*/.modal--closing-idle.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-active*/.modal--closing-active.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@:host([opened])*/[opened].sc-calcite-modal-h{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@.container--open*/.container--open.sc-calcite-modal{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@.container--open .modal*/.container--open.sc-calcite-modal .modal.sc-calcite-modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}/*!@.header*/.header.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}/*!@.close*/.close.sc-calcite-modal{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;appearance:none;border-style:none;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;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}/*!@.close calcite-icon*/.close.sc-calcite-modal calcite-icon.sc-calcite-modal{pointer-events:none;vertical-align:-2px}/*!@.close:focus*/.close.sc-calcite-modal: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:active*/.close.sc-calcite-modal:hover,.close.sc-calcite-modal:focus,.close.sc-calcite-modal:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.title*/.title.sc-calcite-modal{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}/*!@slot[name=header]::slotted(*),\n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text-internal)}/*!@.content*/.content.sc-calcite-modal{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0px;background-color:var(--calcite-modal-content-background, var(--calcite-ui-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}/*!@.content-top,\n.content-bottom*/.content-top.sc-calcite-modal,.content-bottom.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}/*!@.content-top*/.content-top.sc-calcite-modal{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}/*!@.content-bottom*/.content-bottom.sc-calcite-modal{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}/*!@.content-top:not(.header ~ .content-top)*/.content-top.sc-calcite-modal:not(.header~.content-top).sc-calcite-modal{border-start-start-radius:0.25rem;border-start-end-radius:0.25rem}/*!@.content-bottom:not(.content-bottom ~ .footer),\n.content--no-footer*/.content-bottom.sc-calcite-modal:not(.content-bottom~.footer).sc-calcite-modal,.content--no-footer.sc-calcite-modal{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}/*!@slot[name=content]::slotted(*),\n*::slotted([slot=content])*/slot[name=content].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=content]{font-size:var(--calcite-modal-context-text-internal)}/*!@.footer*/.footer.sc-calcite-modal{z-index:var(--calcite-app-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}/*!@.footer--hide-back .back,\n.footer--hide-secondary .secondary*/.footer--hide-back.sc-calcite-modal .back.sc-calcite-modal,.footer--hide-secondary.sc-calcite-modal .secondary.sc-calcite-modal{display:none}/*!@.back*/.back.sc-calcite-modal{display:block;margin-inline-end:auto}/*!@.secondary*/.secondary.sc-calcite-modal{margin-inline:0.25rem;display:block}/*!@slot[name=primary]*/slot[name=primary].sc-calcite-modal{display:block}/*!@:host([width=small]) .modal*/[width=small].sc-calcite-modal-h .modal.sc-calcite-modal{inline-size:auto}/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=s]) .content*/[width=s].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=s][docked]) .container*/[width=s][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=m]) .content*/[width=m].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=m][docked]) .container*/[width=m][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}/*!@:host([width=l]) .content*/[width=l].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=l][docked]) .container*/[width=l][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([fullscreen]) .modal*/[fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}/*!@:host([fullscreen]) .content*/[fullscreen].sc-calcite-modal-h .content.sc-calcite-modal{max-block-size:100%;flex:1 1 auto}/*!@:host([opened][fullscreen]) .header,\n:host([opened][fullscreen]) .footer,\n:host([opened][fullscreen]) .content-top,\n:host([opened][fullscreen]) .content-bottom*/[opened][fullscreen].sc-calcite-modal-h .header.sc-calcite-modal,[opened][fullscreen].sc-calcite-modal-h .footer.sc-calcite-modal,[opened][fullscreen].sc-calcite-modal-h .content-top.sc-calcite-modal,[opened][fullscreen].sc-calcite-modal-h .content-bottom.sc-calcite-modal{border-radius:0}/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{block-size:var(--calcite-modal-height, auto)}/*!@:host([docked]) .content*/[docked].sc-calcite-modal-h .content.sc-calcite-modal{block-size:auto;flex:1 1 auto}/*!@:host([kind=brand]) .modal*/[kind=brand].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-brand)}/*!@:host([kind=danger]) .modal*/[kind=danger].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-danger)}/*!@:host([kind=info]) .modal*/[kind=info].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-info)}/*!@:host([kind=success]) .modal*/[kind=success].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-success)}/*!@:host([kind=warning]) .modal*/[kind=warning].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-warning)}/*!@:host([kind=brand]) .modal,\n:host([kind=danger]) .modal,\n:host([kind=info]) .modal,\n:host([kind=success]) .modal,\n:host([kind=warning]) .modal*/[kind=brand].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=info].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=success].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .modal.sc-calcite-modal{border-width:0px;border-block-start-width:4px;border-style:solid}/*!@:host([kind=brand]) .header,\n:host([kind=brand]) .content-top,\n:host([kind=danger]) .header,\n:host([kind=danger]) .content-top,\n:host([kind=info]) .header,\n:host([kind=info]) .content-top,\n:host([kind=success]) .header,\n:host([kind=success]) .content-top,\n:host([kind=warning]) .header,\n:host([kind=warning]) .content-top*/[kind=brand].sc-calcite-modal-h .header.sc-calcite-modal,[kind=brand].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .header.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=info].sc-calcite-modal-h .header.sc-calcite-modal,[kind=info].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=success].sc-calcite-modal-h .header.sc-calcite-modal,[kind=success].sc-calcite-modal-h .content-top.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .header.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .content-top.sc-calcite-modal{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){/*!@* slot[name=header]::slotted(content-top),\n * content-top::slotted([slot=header])*/* slot[name=header].sc-calcite-modal-s>content-top,* content-top.sc-calcite-modal-s>[slot=header]{font-size:var(--calcite-font-size-1)}/*!@.footer,\n .content-bottom*/.footer.sc-calcite-modal,.content-bottom.sc-calcite-modal{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){/*!@.footer,\n .content-bottom*/.footer.sc-calcite-modal,.content-bottom.sc-calcite-modal{flex-direction:column}/*!@.back,\n .secondary*/.back.sc-calcite-modal,.secondary.sc-calcite-modal{margin:0px;margin-block-end:0.25rem}}/*!@.container.slotted-in-shell*/.container.slotted-in-shell.sc-calcite-modal{position:absolute;pointer-events:auto}/*!@.container.slotted-in-shell calcite-scrim*/.container.slotted-in-shell.sc-calcite-modal calcite-scrim.sc-calcite-modal{position:absolute}/*!@:host([hidden])*/[hidden].sc-calcite-modal-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-modal{display:none}";
|
|
33628
33669
|
|
|
33629
33670
|
/**
|
|
33630
33671
|
* @slot header - A slot for adding header text.
|
|
@@ -33642,6 +33683,12 @@ class Modal {
|
|
|
33642
33683
|
this.calciteModalClose = createEvent(this, "calciteModalClose", 6);
|
|
33643
33684
|
this.calciteModalBeforeOpen = createEvent(this, "calciteModalBeforeOpen", 6);
|
|
33644
33685
|
this.calciteModalOpen = createEvent(this, "calciteModalOpen", 6);
|
|
33686
|
+
//--------------------------------------------------------------------------
|
|
33687
|
+
//
|
|
33688
|
+
// Private Properties/ State
|
|
33689
|
+
//
|
|
33690
|
+
//--------------------------------------------------------------------------
|
|
33691
|
+
this.ignoreOpenChange = false;
|
|
33645
33692
|
this.mutationObserver = createObserver();
|
|
33646
33693
|
this.cssVarObserver = createObserver();
|
|
33647
33694
|
this.openTransitionProp = "opacity";
|
|
@@ -33661,15 +33708,32 @@ class Modal {
|
|
|
33661
33708
|
if (this.outsideCloseDisabled) {
|
|
33662
33709
|
return;
|
|
33663
33710
|
}
|
|
33664
|
-
this.
|
|
33711
|
+
this.closeModal();
|
|
33665
33712
|
};
|
|
33666
33713
|
/** Close the modal, first running the `beforeClose` method */
|
|
33667
|
-
this.
|
|
33668
|
-
|
|
33669
|
-
|
|
33670
|
-
|
|
33671
|
-
|
|
33672
|
-
|
|
33714
|
+
this.closeModal = async () => {
|
|
33715
|
+
if (this.ignoreOpenChange) {
|
|
33716
|
+
return;
|
|
33717
|
+
}
|
|
33718
|
+
if (this.beforeClose) {
|
|
33719
|
+
try {
|
|
33720
|
+
await this.beforeClose(this.el);
|
|
33721
|
+
}
|
|
33722
|
+
catch (_error) {
|
|
33723
|
+
// close prevented
|
|
33724
|
+
requestAnimationFrame(() => {
|
|
33725
|
+
this.ignoreOpenChange = true;
|
|
33726
|
+
this.open = true;
|
|
33727
|
+
this.ignoreOpenChange = false;
|
|
33728
|
+
});
|
|
33729
|
+
return;
|
|
33730
|
+
}
|
|
33731
|
+
}
|
|
33732
|
+
this.ignoreOpenChange = true;
|
|
33733
|
+
this.open = false;
|
|
33734
|
+
this.opened = false;
|
|
33735
|
+
this.removeOverflowHiddenClass();
|
|
33736
|
+
this.ignoreOpenChange = false;
|
|
33673
33737
|
};
|
|
33674
33738
|
this.handleMutationObserver = () => {
|
|
33675
33739
|
this.updateFooterVisibility();
|
|
@@ -33689,7 +33753,8 @@ class Modal {
|
|
|
33689
33753
|
this.hasContentBottom = slotChangeHasAssignedElement(event);
|
|
33690
33754
|
};
|
|
33691
33755
|
this.open = false;
|
|
33692
|
-
this.
|
|
33756
|
+
this.opened = false;
|
|
33757
|
+
this.beforeClose = undefined;
|
|
33693
33758
|
this.closeButtonDisabled = false;
|
|
33694
33759
|
this.focusTrapDisabled = false;
|
|
33695
33760
|
this.outsideCloseDisabled = false;
|
|
@@ -33707,7 +33772,6 @@ class Modal {
|
|
|
33707
33772
|
this.hasFooter = true;
|
|
33708
33773
|
this.hasContentTop = false;
|
|
33709
33774
|
this.hasContentBottom = false;
|
|
33710
|
-
this.isOpen = false;
|
|
33711
33775
|
this.effectiveLocale = undefined;
|
|
33712
33776
|
this.defaultMessages = undefined;
|
|
33713
33777
|
}
|
|
@@ -33759,50 +33823,50 @@ class Modal {
|
|
|
33759
33823
|
}
|
|
33760
33824
|
render() {
|
|
33761
33825
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
33762
|
-
[CSS$
|
|
33763
|
-
[CSS$
|
|
33764
|
-
[CSS$
|
|
33765
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
33766
|
-
[CSS$
|
|
33826
|
+
[CSS$s.container]: true,
|
|
33827
|
+
[CSS$s.containerOpen]: this.opened,
|
|
33828
|
+
[CSS$s.slottedInShell]: this.slottedInShell,
|
|
33829
|
+
} }, hAsync("calcite-scrim", { class: CSS$s.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: {
|
|
33830
|
+
[CSS$s.modal]: true,
|
|
33767
33831
|
},
|
|
33768
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
33769
|
-
ref: this.setTransitionEl }, hAsync("div", { class: CSS$
|
|
33770
|
-
[CSS$
|
|
33771
|
-
[CSS$
|
|
33832
|
+
// 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)
|
|
33833
|
+
ref: this.setTransitionEl }, hAsync("div", { class: CSS$s.header }, this.renderCloseButton(), hAsync("header", { class: CSS$s.title }, hAsync("slot", { name: CSS$s.header }))), this.renderContentTop(), hAsync("div", { class: {
|
|
33834
|
+
[CSS$s.content]: true,
|
|
33835
|
+
[CSS$s.contentNoFooter]: !this.hasFooter,
|
|
33772
33836
|
},
|
|
33773
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
33837
|
+
// 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)
|
|
33774
33838
|
ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$e.content })), this.renderContentBottom(), this.renderFooter()))));
|
|
33775
33839
|
}
|
|
33776
33840
|
renderFooter() {
|
|
33777
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$
|
|
33841
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$s.footer, key: "footer" }, hAsync("span", { class: CSS$s.back }, hAsync("slot", { name: SLOTS$e.back })), hAsync("span", { class: CSS$s.secondary }, hAsync("slot", { name: SLOTS$e.secondary })), hAsync("span", { class: CSS$s.primary }, hAsync("slot", { name: SLOTS$e.primary })))) : null;
|
|
33778
33842
|
}
|
|
33779
33843
|
renderContentTop() {
|
|
33780
|
-
return (hAsync("div", { class: CSS$
|
|
33844
|
+
return (hAsync("div", { class: CSS$s.contentTop, hidden: !this.hasContentTop }, hAsync("slot", { name: SLOTS$e.contentTop, onSlotchange: this.contentTopSlotChangeHandler })));
|
|
33781
33845
|
}
|
|
33782
33846
|
renderContentBottom() {
|
|
33783
|
-
return (hAsync("div", { class: CSS$
|
|
33847
|
+
return (hAsync("div", { class: CSS$s.contentBottom, hidden: !this.hasContentBottom }, hAsync("slot", { name: SLOTS$e.contentBottom, onSlotchange: this.contentBottomSlotChangeHandler })));
|
|
33784
33848
|
}
|
|
33785
33849
|
renderCloseButton() {
|
|
33786
|
-
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
33787
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
33850
|
+
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$s.close, key: "button", onClick: this.closeModal, title: this.messages.close,
|
|
33851
|
+
// 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)
|
|
33788
33852
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
33789
33853
|
}
|
|
33790
33854
|
renderStyle() {
|
|
33791
33855
|
if (!this.fullscreen && (this.cssWidth || this.cssHeight)) {
|
|
33792
|
-
return (hAsync("style", null, `.${CSS$
|
|
33856
|
+
return (hAsync("style", null, `.${CSS$s.container} {
|
|
33793
33857
|
${this.docked && this.cssWidth ? `align-items: center !important;` : ""}
|
|
33794
33858
|
}
|
|
33795
|
-
.${CSS$
|
|
33859
|
+
.${CSS$s.modal} {
|
|
33796
33860
|
block-size: ${this.cssHeight ? this.cssHeight : "auto"} !important;
|
|
33797
33861
|
${this.cssWidth ? `inline-size: ${this.cssWidth} !important;` : ""}
|
|
33798
33862
|
${this.cssWidth ? `max-inline-size: ${this.cssWidth} !important;` : ""}
|
|
33799
33863
|
${this.docked ? `border-radius: var(--calcite-border-radius) !important;` : ""}
|
|
33800
33864
|
}
|
|
33801
33865
|
@media screen and (max-width: ${this.cssWidth}) {
|
|
33802
|
-
.${CSS$
|
|
33866
|
+
.${CSS$s.container} {
|
|
33803
33867
|
${this.docked ? `align-items: flex-end !important;` : ""}
|
|
33804
33868
|
}
|
|
33805
|
-
.${CSS$
|
|
33869
|
+
.${CSS$s.modal} {
|
|
33806
33870
|
max-block-size: 100% !important;
|
|
33807
33871
|
inline-size: 100% !important;
|
|
33808
33872
|
max-inline-size: 100% !important;
|
|
@@ -33828,7 +33892,7 @@ class Modal {
|
|
|
33828
33892
|
//--------------------------------------------------------------------------
|
|
33829
33893
|
handleEscape(event) {
|
|
33830
33894
|
if (this.open && !this.escapeDisabled && event.key === "Escape" && !event.defaultPrevented) {
|
|
33831
|
-
this.
|
|
33895
|
+
this.closeModal();
|
|
33832
33896
|
event.preventDefault();
|
|
33833
33897
|
}
|
|
33834
33898
|
}
|
|
@@ -33869,39 +33933,46 @@ class Modal {
|
|
|
33869
33933
|
}
|
|
33870
33934
|
}
|
|
33871
33935
|
onBeforeOpen() {
|
|
33872
|
-
this.transitionEl.classList.add(CSS$
|
|
33936
|
+
this.transitionEl.classList.add(CSS$s.openingActive);
|
|
33873
33937
|
this.calciteModalBeforeOpen.emit();
|
|
33874
33938
|
}
|
|
33875
33939
|
onOpen() {
|
|
33876
|
-
this.transitionEl.classList.remove(CSS$
|
|
33940
|
+
this.transitionEl.classList.remove(CSS$s.openingIdle, CSS$s.openingActive);
|
|
33877
33941
|
this.calciteModalOpen.emit();
|
|
33878
33942
|
activateFocusTrap(this);
|
|
33879
33943
|
}
|
|
33880
33944
|
onBeforeClose() {
|
|
33881
|
-
this.transitionEl.classList.add(CSS$
|
|
33945
|
+
this.transitionEl.classList.add(CSS$s.closingActive);
|
|
33882
33946
|
this.calciteModalBeforeClose.emit();
|
|
33883
33947
|
}
|
|
33884
33948
|
onClose() {
|
|
33885
|
-
this.transitionEl.classList.remove(CSS$
|
|
33949
|
+
this.transitionEl.classList.remove(CSS$s.closingIdle, CSS$s.closingActive);
|
|
33886
33950
|
this.calciteModalClose.emit();
|
|
33887
33951
|
deactivateFocusTrap(this);
|
|
33888
33952
|
}
|
|
33889
33953
|
async toggleModal(value) {
|
|
33954
|
+
if (this.ignoreOpenChange) {
|
|
33955
|
+
return;
|
|
33956
|
+
}
|
|
33890
33957
|
onToggleOpenCloseComponent(this);
|
|
33891
33958
|
if (value) {
|
|
33892
|
-
this.transitionEl?.classList.add(CSS$
|
|
33959
|
+
this.transitionEl?.classList.add(CSS$s.openingIdle);
|
|
33893
33960
|
this.openModal();
|
|
33894
33961
|
}
|
|
33895
33962
|
else {
|
|
33896
|
-
this.transitionEl?.classList.add(CSS$
|
|
33897
|
-
this.
|
|
33963
|
+
this.transitionEl?.classList.add(CSS$s.closingIdle);
|
|
33964
|
+
this.closeModal();
|
|
33898
33965
|
}
|
|
33899
33966
|
}
|
|
33900
33967
|
/** Open the modal */
|
|
33901
33968
|
openModal() {
|
|
33969
|
+
if (this.ignoreOpenChange) {
|
|
33970
|
+
return;
|
|
33971
|
+
}
|
|
33972
|
+
this.ignoreOpenChange = true;
|
|
33902
33973
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
33903
33974
|
this.open = true;
|
|
33904
|
-
this.
|
|
33975
|
+
this.opened = true;
|
|
33905
33976
|
const titleEl = getSlotted(this.el, SLOTS$e.header);
|
|
33906
33977
|
const contentEl = getSlotted(this.el, SLOTS$e.content);
|
|
33907
33978
|
this.titleId = ensureId(titleEl);
|
|
@@ -33911,6 +33982,7 @@ class Modal {
|
|
|
33911
33982
|
// use an inline style instead of a utility class to avoid global class declarations.
|
|
33912
33983
|
document.documentElement.style.setProperty("overflow", "hidden");
|
|
33913
33984
|
}
|
|
33985
|
+
this.ignoreOpenChange = false;
|
|
33914
33986
|
}
|
|
33915
33987
|
removeOverflowHiddenClass() {
|
|
33916
33988
|
document.documentElement.style.setProperty("overflow", this.initialOverflowCSS);
|
|
@@ -33929,6 +34001,7 @@ class Modal {
|
|
|
33929
34001
|
"$tagName$": "calcite-modal",
|
|
33930
34002
|
"$members$": {
|
|
33931
34003
|
"open": [1540],
|
|
34004
|
+
"opened": [1540],
|
|
33932
34005
|
"beforeClose": [16],
|
|
33933
34006
|
"closeButtonDisabled": [516, "close-button-disabled"],
|
|
33934
34007
|
"focusTrapDisabled": [516, "focus-trap-disabled"],
|
|
@@ -33947,7 +34020,6 @@ class Modal {
|
|
|
33947
34020
|
"hasFooter": [32],
|
|
33948
34021
|
"hasContentTop": [32],
|
|
33949
34022
|
"hasContentBottom": [32],
|
|
33950
|
-
"isOpen": [32],
|
|
33951
34023
|
"effectiveLocale": [32],
|
|
33952
34024
|
"defaultMessages": [32],
|
|
33953
34025
|
"setFocus": [64],
|
|
@@ -33956,7 +34028,7 @@ class Modal {
|
|
|
33956
34028
|
},
|
|
33957
34029
|
"$listeners$": [[8, "keydown", "handleEscape"]],
|
|
33958
34030
|
"$lazyBundleId$": "-",
|
|
33959
|
-
"$attrsToReflect$": [["open", "open"], ["closeButtonDisabled", "close-button-disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["outsideCloseDisabled", "outside-close-disabled"], ["docked", "docked"], ["escapeDisabled", "escape-disabled"], ["scale", "scale"], ["width", "width"], ["fullscreen", "fullscreen"], ["kind", "kind"]]
|
|
34031
|
+
"$attrsToReflect$": [["open", "open"], ["opened", "opened"], ["closeButtonDisabled", "close-button-disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["outsideCloseDisabled", "outside-close-disabled"], ["docked", "docked"], ["escapeDisabled", "escape-disabled"], ["scale", "scale"], ["width", "width"], ["fullscreen", "fullscreen"], ["kind", "kind"]]
|
|
33960
34032
|
}; }
|
|
33961
34033
|
}
|
|
33962
34034
|
|
|
@@ -33966,7 +34038,7 @@ const SLOTS$d = {
|
|
|
33966
34038
|
link: "link",
|
|
33967
34039
|
actionsEnd: "actions-end",
|
|
33968
34040
|
};
|
|
33969
|
-
const CSS$
|
|
34041
|
+
const CSS$r = {
|
|
33970
34042
|
actionsEnd: "actions-end",
|
|
33971
34043
|
close: "notice-close",
|
|
33972
34044
|
container: "container",
|
|
@@ -34045,11 +34117,11 @@ class Notice {
|
|
|
34045
34117
|
}
|
|
34046
34118
|
render() {
|
|
34047
34119
|
const { el } = this;
|
|
34048
|
-
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34049
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
34120
|
+
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$r.close, onClick: this.close,
|
|
34121
|
+
// 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)
|
|
34050
34122
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
34051
34123
|
const hasActionEnd = getSlotted(el, SLOTS$d.actionsEnd);
|
|
34052
|
-
return (hAsync("div", { class: CSS$
|
|
34124
|
+
return (hAsync("div", { class: CSS$r.container }, this.requestedIcon ? (hAsync("div", { class: CSS$r.icon }, hAsync("calcite-icon", { flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: CSS$r.content }, hAsync("slot", { name: SLOTS$d.title }), hAsync("slot", { name: SLOTS$d.message }), hAsync("slot", { name: SLOTS$d.link })), hasActionEnd ? (hAsync("div", { class: CSS$r.actionsEnd }, hAsync("slot", { name: SLOTS$d.actionsEnd }))) : null, this.closable ? closeButton : null));
|
|
34053
34125
|
}
|
|
34054
34126
|
//--------------------------------------------------------------------------
|
|
34055
34127
|
//
|
|
@@ -34228,7 +34300,7 @@ class OptionGroup {
|
|
|
34228
34300
|
}; }
|
|
34229
34301
|
}
|
|
34230
34302
|
|
|
34231
|
-
const CSS$
|
|
34303
|
+
const CSS$q = {
|
|
34232
34304
|
page: "page",
|
|
34233
34305
|
selected: "is-selected",
|
|
34234
34306
|
previous: "previous",
|
|
@@ -34386,8 +34458,8 @@ class Pagination {
|
|
|
34386
34458
|
const displayedPage = numberStringFormatter.localize(page.toString());
|
|
34387
34459
|
const selected = start === this.startItem;
|
|
34388
34460
|
return (hAsync("button", { "aria-current": selected ? "page" : "false", class: {
|
|
34389
|
-
[CSS$
|
|
34390
|
-
[CSS$
|
|
34461
|
+
[CSS$q.page]: true,
|
|
34462
|
+
[CSS$q.selected]: selected,
|
|
34391
34463
|
}, onClick: () => {
|
|
34392
34464
|
this.startItem = start;
|
|
34393
34465
|
this.emitUpdate();
|
|
@@ -34395,12 +34467,12 @@ class Pagination {
|
|
|
34395
34467
|
}
|
|
34396
34468
|
renderLeftEllipsis() {
|
|
34397
34469
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
34398
|
-
return hAsync("span", { class: `${CSS$
|
|
34470
|
+
return hAsync("span", { class: `${CSS$q.ellipsis} ${CSS$q.ellipsisStart}` }, "\u2026");
|
|
34399
34471
|
}
|
|
34400
34472
|
}
|
|
34401
34473
|
renderRightEllipsis() {
|
|
34402
34474
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
34403
|
-
return hAsync("span", { class: `${CSS$
|
|
34475
|
+
return hAsync("span", { class: `${CSS$q.ellipsis} ${CSS$q.ellipsisEnd}` }, "\u2026");
|
|
34404
34476
|
}
|
|
34405
34477
|
}
|
|
34406
34478
|
render() {
|
|
@@ -34408,11 +34480,11 @@ class Pagination {
|
|
|
34408
34480
|
const prevDisabled = pageSize === 1 ? startItem <= pageSize : startItem < pageSize;
|
|
34409
34481
|
const nextDisabled = pageSize === 1 ? startItem + pageSize > totalItems : startItem + pageSize > totalItems;
|
|
34410
34482
|
return (hAsync(Fragment, null, hAsync("button", { "aria-label": this.messages.previous, class: {
|
|
34411
|
-
[CSS$
|
|
34412
|
-
[CSS$
|
|
34483
|
+
[CSS$q.previous]: true,
|
|
34484
|
+
[CSS$q.disabled]: prevDisabled,
|
|
34413
34485
|
}, disabled: prevDisabled, onClick: this.previousClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronLeft", scale: this.scale === "l" ? "m" : "s" })), totalItems > pageSize ? this.renderPage(1) : null, this.renderLeftEllipsis(), this.renderPages(), this.renderRightEllipsis(), this.renderPage(this.getLastStart()), hAsync("button", { "aria-label": this.messages.next, class: {
|
|
34414
|
-
[CSS$
|
|
34415
|
-
[CSS$
|
|
34486
|
+
[CSS$q.next]: true,
|
|
34487
|
+
[CSS$q.disabled]: nextDisabled,
|
|
34416
34488
|
}, disabled: nextDisabled, onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: this.scale === "l" ? "m" : "s" }))));
|
|
34417
34489
|
}
|
|
34418
34490
|
static get delegatesFocus() { return true; }
|
|
@@ -34623,32 +34695,32 @@ class Panel {
|
|
|
34623
34695
|
// --------------------------------------------------------------------------
|
|
34624
34696
|
renderHeaderContent() {
|
|
34625
34697
|
const { heading, headingLevel, description, hasHeaderContent } = this;
|
|
34626
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
34627
|
-
const descriptionNode = description ? hAsync("span", { class: CSS$
|
|
34628
|
-
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$
|
|
34698
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$I.heading, level: headingLevel }, heading)) : null;
|
|
34699
|
+
const descriptionNode = description ? hAsync("span", { class: CSS$I.description }, description) : null;
|
|
34700
|
+
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$I.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
34629
34701
|
}
|
|
34630
34702
|
renderActionBar() {
|
|
34631
|
-
return (hAsync("div", { class: CSS$
|
|
34703
|
+
return (hAsync("div", { class: CSS$I.actionBarContainer, hidden: !this.hasActionBar }, hAsync("slot", { name: SLOTS$m.actionBar, onSlotchange: this.handleActionBarSlotChange })));
|
|
34632
34704
|
}
|
|
34633
34705
|
/**
|
|
34634
34706
|
* Allows user to override the entire header-content node.
|
|
34635
34707
|
*/
|
|
34636
34708
|
renderHeaderSlottedContent() {
|
|
34637
|
-
return (hAsync("div", { class: CSS$
|
|
34709
|
+
return (hAsync("div", { class: CSS$I.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$m.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
|
34638
34710
|
}
|
|
34639
34711
|
renderHeaderStartActions() {
|
|
34640
34712
|
const { hasStartActions } = this;
|
|
34641
|
-
return (hAsync("div", { class: { [CSS$
|
|
34713
|
+
return (hAsync("div", { class: { [CSS$I.headerActionsStart]: true, [CSS$I.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, hAsync("slot", { name: SLOTS$m.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange })));
|
|
34642
34714
|
}
|
|
34643
34715
|
renderHeaderActionsEnd() {
|
|
34644
34716
|
const { close, hasEndActions, messages, closable, hasMenuItems } = this;
|
|
34645
34717
|
const text = messages.close;
|
|
34646
34718
|
const closableNode = closable ? (hAsync("calcite-action", { "aria-label": text, "data-test": "close", icon: ICONS$a.close, onClick: close, text: text, title: text,
|
|
34647
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
34719
|
+
// 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)
|
|
34648
34720
|
ref: this.setCloseRef })) : null;
|
|
34649
34721
|
const slotNode = (hAsync("slot", { name: SLOTS$m.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
34650
34722
|
const showContainer = hasEndActions || closableNode || hasMenuItems;
|
|
34651
|
-
return (hAsync("div", { class: { [CSS$
|
|
34723
|
+
return (hAsync("div", { class: { [CSS$I.headerActionsEnd]: true, [CSS$I.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, this.renderMenu(), closableNode));
|
|
34652
34724
|
}
|
|
34653
34725
|
renderMenu() {
|
|
34654
34726
|
const { hasMenuItems, messages, menuOpen } = this;
|
|
@@ -34664,25 +34736,25 @@ class Panel {
|
|
|
34664
34736
|
closable ||
|
|
34665
34737
|
hasMenuItems;
|
|
34666
34738
|
this.showHeaderContent = showHeaderContent;
|
|
34667
|
-
return (hAsync("header", { class: CSS$
|
|
34739
|
+
return (hAsync("header", { class: CSS$I.header, hidden: !(showHeaderContent || hasActionBar) }, hAsync("div", { class: { [CSS$I.headerContainer]: true, [CSS$I.headerContainerBorderEnd]: hasActionBar }, hidden: !showHeaderContent }, this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd()), this.renderActionBar()));
|
|
34668
34740
|
}
|
|
34669
34741
|
renderFooterNode() {
|
|
34670
34742
|
const { hasFooterContent, hasFooterActions } = this;
|
|
34671
34743
|
const showFooter = hasFooterContent || hasFooterActions;
|
|
34672
|
-
return (hAsync("footer", { class: CSS$
|
|
34744
|
+
return (hAsync("footer", { class: CSS$I.footer, hidden: !showFooter }, hAsync("slot", { key: "footer-slot", name: SLOTS$m.footer, onSlotchange: this.handleFooterSlotChange }), hAsync("slot", { key: "footer-actions-slot", name: SLOTS$m.footerActions, onSlotchange: this.handleFooterActionsSlotChange })));
|
|
34673
34745
|
}
|
|
34674
34746
|
renderContent() {
|
|
34675
|
-
return (hAsync("div", { class: CSS$
|
|
34676
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
34747
|
+
return (hAsync("div", { class: CSS$I.contentWrapper, onScroll: this.panelScrollHandler,
|
|
34748
|
+
// 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)
|
|
34677
34749
|
ref: this.setPanelScrollEl }, hAsync("slot", null), this.renderFab()));
|
|
34678
34750
|
}
|
|
34679
34751
|
renderFab() {
|
|
34680
|
-
return (hAsync("div", { class: CSS$
|
|
34752
|
+
return (hAsync("div", { class: CSS$I.fabContainer, hidden: !this.hasFab }, hAsync("slot", { name: SLOTS$m.fab, onSlotchange: this.handleFabSlotChange })));
|
|
34681
34753
|
}
|
|
34682
34754
|
render() {
|
|
34683
34755
|
const { loading, panelKeyDownHandler, closed, closable } = this;
|
|
34684
|
-
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$
|
|
34685
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
34756
|
+
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$I.container, hidden: closed, onKeyDown: panelKeyDownHandler, tabIndex: closable ? 0 : -1,
|
|
34757
|
+
// 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)
|
|
34686
34758
|
ref: this.setContainerRef }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
34687
34759
|
return (hAsync(Fragment, null, loading ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
34688
34760
|
}
|
|
@@ -34727,7 +34799,7 @@ class Panel {
|
|
|
34727
34799
|
}; }
|
|
34728
34800
|
}
|
|
34729
34801
|
|
|
34730
|
-
const CSS$
|
|
34802
|
+
const CSS$p = {
|
|
34731
34803
|
sticky: "sticky-pos",
|
|
34732
34804
|
};
|
|
34733
34805
|
var ICON_TYPES$1;
|
|
@@ -34740,7 +34812,7 @@ const SLOTS$c = {
|
|
|
34740
34812
|
menuActions: "menu-actions",
|
|
34741
34813
|
};
|
|
34742
34814
|
|
|
34743
|
-
const CSS$
|
|
34815
|
+
const CSS$o = {
|
|
34744
34816
|
heading: "heading",
|
|
34745
34817
|
container: "container",
|
|
34746
34818
|
indented: "container--indented",
|
|
@@ -35064,11 +35136,11 @@ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handle
|
|
|
35064
35136
|
return (hAsync(Host, { "aria-busy": toAriaBoolean(loading), role: "menu", ...rest },
|
|
35065
35137
|
hAsync("section", null,
|
|
35066
35138
|
dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: "assistive-text",
|
|
35067
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35139
|
+
// 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)
|
|
35068
35140
|
ref: storeAssistiveEl })) : null,
|
|
35069
|
-
hAsync("header", { class: { [CSS$
|
|
35141
|
+
hAsync("header", { class: { [CSS$p.sticky]: true } },
|
|
35070
35142
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilterEvent, placeholder: filterPlaceholder, value: filterText,
|
|
35071
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35143
|
+
// 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)
|
|
35072
35144
|
ref: setFilterEl })) : null,
|
|
35073
35145
|
hAsync("slot", { name: SLOTS$c.menuActions })),
|
|
35074
35146
|
loading ? hAsync("calcite-scrim", { loading: loading }) : null,
|
|
@@ -35257,14 +35329,14 @@ class PickListGroup {
|
|
|
35257
35329
|
const { el, groupTitle, headingLevel } = this;
|
|
35258
35330
|
const hasParentItem = getSlotted(el, SLOTS$b.parentItem) !== null;
|
|
35259
35331
|
const sectionClasses = {
|
|
35260
|
-
[CSS$
|
|
35261
|
-
[CSS$
|
|
35332
|
+
[CSS$o.container]: true,
|
|
35333
|
+
[CSS$o.indented]: hasParentItem,
|
|
35262
35334
|
};
|
|
35263
35335
|
const title = groupTitle;
|
|
35264
35336
|
const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
|
|
35265
35337
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
35266
35338
|
const level = headingLevel || relativeLevel;
|
|
35267
|
-
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$
|
|
35339
|
+
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$o.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$b.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
|
|
35268
35340
|
}
|
|
35269
35341
|
get el() { return getElement(this); }
|
|
35270
35342
|
static get style() { return pickListGroupCss; }
|
|
@@ -35281,7 +35353,7 @@ class PickListGroup {
|
|
|
35281
35353
|
}; }
|
|
35282
35354
|
}
|
|
35283
35355
|
|
|
35284
|
-
const CSS$
|
|
35356
|
+
const CSS$n = {
|
|
35285
35357
|
actions: "actions",
|
|
35286
35358
|
actionsEnd: "actions--end",
|
|
35287
35359
|
actionsStart: "actions--start",
|
|
@@ -35443,28 +35515,28 @@ class PickListItem {
|
|
|
35443
35515
|
return null;
|
|
35444
35516
|
}
|
|
35445
35517
|
return (hAsync("span", { class: {
|
|
35446
|
-
[CSS$
|
|
35447
|
-
[CSS$
|
|
35518
|
+
[CSS$n.icon]: true,
|
|
35519
|
+
[CSS$n.iconDot]: icon === ICON_TYPES$1.circle,
|
|
35448
35520
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? (hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS$5.checked, scale: "s" })) : null));
|
|
35449
35521
|
}
|
|
35450
35522
|
renderRemoveAction() {
|
|
35451
|
-
return this.removable ? (hAsync("calcite-action", { class: CSS$
|
|
35523
|
+
return this.removable ? (hAsync("calcite-action", { class: CSS$n.remove, icon: ICONS$5.remove, onClick: this.removeClickHandler, slot: SLOTS$a.actionsEnd, text: this.messages.remove })) : null;
|
|
35452
35524
|
}
|
|
35453
35525
|
renderActionsStart() {
|
|
35454
35526
|
const { el } = this;
|
|
35455
35527
|
const hasActionsStart = getSlotted(el, SLOTS$a.actionsStart);
|
|
35456
|
-
return hasActionsStart ? (hAsync("div", { class: { [CSS$
|
|
35528
|
+
return hasActionsStart ? (hAsync("div", { class: { [CSS$n.actions]: true, [CSS$n.actionsStart]: true } }, hAsync("slot", { name: SLOTS$a.actionsStart }))) : null;
|
|
35457
35529
|
}
|
|
35458
35530
|
renderActionsEnd() {
|
|
35459
35531
|
const { el, removable } = this;
|
|
35460
35532
|
const hasActionsEnd = getSlotted(el, SLOTS$a.actionsEnd);
|
|
35461
|
-
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$
|
|
35533
|
+
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$n.actions]: true, [CSS$n.actionsEnd]: true } }, hAsync("slot", { name: SLOTS$a.actionsEnd }), this.renderRemoveAction())) : null;
|
|
35462
35534
|
}
|
|
35463
35535
|
render() {
|
|
35464
35536
|
const { description, label } = this;
|
|
35465
|
-
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$
|
|
35466
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35467
|
-
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$
|
|
35537
|
+
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$n.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, tabIndex: 0,
|
|
35538
|
+
// 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)
|
|
35539
|
+
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$n.textContainer, role: "menuitemcheckbox" }, hAsync("span", { class: CSS$n.title }, label), description ? hAsync("span", { class: CSS$n.description }, description) : null)), this.renderActionsEnd()));
|
|
35468
35540
|
}
|
|
35469
35541
|
static get assetsDirs() { return ["assets"]; }
|
|
35470
35542
|
get el() { return getElement(this); }
|
|
@@ -35507,7 +35579,7 @@ class PickListItem {
|
|
|
35507
35579
|
}; }
|
|
35508
35580
|
}
|
|
35509
35581
|
|
|
35510
|
-
const CSS$
|
|
35582
|
+
const CSS$m = {
|
|
35511
35583
|
container: "container",
|
|
35512
35584
|
imageContainer: "image-container",
|
|
35513
35585
|
closeButtonContainer: "close-button-container",
|
|
@@ -35601,7 +35673,7 @@ class PopoverManager {
|
|
|
35601
35673
|
}
|
|
35602
35674
|
}
|
|
35603
35675
|
|
|
35604
|
-
const CSS$
|
|
35676
|
+
const CSS$l = {
|
|
35605
35677
|
arrow: "calcite-floating-ui-arrow",
|
|
35606
35678
|
arrowStroke: "calcite-floating-ui-arrow__stroke",
|
|
35607
35679
|
};
|
|
@@ -35631,8 +35703,8 @@ const FloatingArrow = ({ floatingLayout, key, ref, }) => {
|
|
|
35631
35703
|
` L${width - svgX},${height}` +
|
|
35632
35704
|
` Q${svgX},${height} ${svgX},${height}` +
|
|
35633
35705
|
" Z";
|
|
35634
|
-
return (hAsync("svg", { "aria-hidden": "true", class: CSS$
|
|
35635
|
-
strokeWidth > 0 && (hAsync("path", { class: CSS$
|
|
35706
|
+
return (hAsync("svg", { "aria-hidden": "true", class: CSS$l.arrow, height: width, key: key, ref: ref, viewBox: `0 0 ${width} ${width + (!isVertical ? strokeWidth : 0)}`, width: width + (isVertical ? strokeWidth : 0) },
|
|
35707
|
+
strokeWidth > 0 && (hAsync("path", { class: CSS$l.arrowStroke, d: dValue, fill: "none", "stroke-width": strokeWidth + 1 })),
|
|
35636
35708
|
hAsync("path", { d: dValue, stroke: "none" })));
|
|
35637
35709
|
};
|
|
35638
35710
|
|
|
@@ -35884,31 +35956,31 @@ class Popover {
|
|
|
35884
35956
|
// --------------------------------------------------------------------------
|
|
35885
35957
|
renderCloseButton() {
|
|
35886
35958
|
const { messages, closable } = this;
|
|
35887
|
-
return closable ? (hAsync("div", { class: CSS$
|
|
35888
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35959
|
+
return closable ? (hAsync("div", { class: CSS$m.closeButtonContainer, key: CSS$m.closeButtonContainer }, hAsync("calcite-action", { appearance: "transparent", class: CSS$m.closeButton, onClick: this.hide, scale: this.scale, text: messages.close,
|
|
35960
|
+
// 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)
|
|
35889
35961
|
ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : this.scale })))) : null;
|
|
35890
35962
|
}
|
|
35891
35963
|
renderHeader() {
|
|
35892
35964
|
const { heading, headingLevel } = this;
|
|
35893
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
35894
|
-
return headingNode ? (hAsync("div", { class: CSS$
|
|
35965
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$m.heading, level: headingLevel }, heading)) : null;
|
|
35966
|
+
return headingNode ? (hAsync("div", { class: CSS$m.header, key: CSS$m.header }, headingNode, this.renderCloseButton())) : null;
|
|
35895
35967
|
}
|
|
35896
35968
|
render() {
|
|
35897
35969
|
const { effectiveReferenceElement, heading, label, open, pointerDisabled, floatingLayout } = this;
|
|
35898
35970
|
const displayed = effectiveReferenceElement && open;
|
|
35899
35971
|
const hidden = !displayed;
|
|
35900
35972
|
const arrowNode = !pointerDisabled ? (hAsync(FloatingArrow, { floatingLayout: floatingLayout, key: "floating-arrow",
|
|
35901
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35973
|
+
// 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)
|
|
35902
35974
|
ref: this.storeArrowEl })) : null;
|
|
35903
35975
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "aria-live": "polite", "calcite-hydrated-hidden": hidden, id: this.getId(), role: "dialog" }, hAsync("div", { class: {
|
|
35904
35976
|
[FloatingCSS.animation]: true,
|
|
35905
35977
|
[FloatingCSS.animationActive]: displayed,
|
|
35906
35978
|
},
|
|
35907
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
35979
|
+
// 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)
|
|
35908
35980
|
ref: this.setTransitionEl }, arrowNode, hAsync("div", { class: {
|
|
35909
|
-
[CSS$
|
|
35910
|
-
[CSS$
|
|
35911
|
-
} }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
35981
|
+
[CSS$m.hasHeader]: !!heading,
|
|
35982
|
+
[CSS$m.container]: true,
|
|
35983
|
+
} }, this.renderHeader(), hAsync("div", { class: CSS$m.content }, hAsync("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
35912
35984
|
}
|
|
35913
35985
|
static get assetsDirs() { return ["assets"]; }
|
|
35914
35986
|
get el() { return getElement(this); }
|
|
@@ -36002,7 +36074,7 @@ class Progress {
|
|
|
36002
36074
|
}; }
|
|
36003
36075
|
}
|
|
36004
36076
|
|
|
36005
|
-
const CSS$
|
|
36077
|
+
const CSS$k = {
|
|
36006
36078
|
container: "container",
|
|
36007
36079
|
};
|
|
36008
36080
|
|
|
@@ -36279,8 +36351,8 @@ class RadioButton {
|
|
|
36279
36351
|
// --------------------------------------------------------------------------
|
|
36280
36352
|
render() {
|
|
36281
36353
|
const tabIndex = this.getTabIndex();
|
|
36282
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$
|
|
36283
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
36354
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$k.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, role: "radio", tabIndex: tabIndex,
|
|
36355
|
+
// 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)
|
|
36284
36356
|
ref: this.setContainerEl }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
36285
36357
|
}
|
|
36286
36358
|
get el() { return getElement(this); }
|
|
@@ -36453,7 +36525,7 @@ const StarIcon = ({ full, scale, partial }) => (hAsync("calcite-icon", { ...{
|
|
|
36453
36525
|
scale,
|
|
36454
36526
|
} }));
|
|
36455
36527
|
|
|
36456
|
-
const ratingCss = "/*!@:host([disabled])*/[disabled].sc-calcite-rating-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([read-only]) *, :host([disabled]) *,\n:host([read-only]) ::slotted(*),\n:host([disabled]) ::slotted(*)*/[read-only].sc-calcite-rating-h *.sc-calcite-rating,[disabled].sc-calcite-rating-h *.sc-calcite-rating,.sc-calcite-rating-h[read-only] .sc-calcite-rating-s>*,.sc-calcite-rating-h[disabled] .sc-calcite-rating-s>*{pointer-events:none}/*!@:host*/.sc-calcite-rating-h{position:relative;display:flex;align-items:center;inline-size:-moz-fit-content;inline-size:fit-content}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-rating-h[disabled] .sc-calcite-rating-s>[calcite-hydrated][disabled],[disabled].sc-calcite-rating-h [calcite-hydrated][disabled].sc-calcite-rating{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-rating-h{block-size:1.5rem;--calcite-rating-spacing-unit:0.25rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-rating-h{block-size:2rem;--calcite-rating-spacing-unit:0.5rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-rating-h{block-size:2.75rem;--calcite-rating-spacing-unit:0.75rem}/*!@.fieldset*/.fieldset.sc-calcite-rating{margin:0;display:flex;border-width:0;padding:0;align-items:center;gap:var(--calcite-rating-spacing-unit)}/*!@.wrapper*/.wrapper.sc-calcite-rating{display:inline-block}/*!@.star*/.star.sc-calcite-rating{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;position:relative;display:flex;flex-direction:column;cursor:pointer;color:var(--calcite-ui-border-input)}/*!@.
|
|
36528
|
+
const ratingCss = "/*!@:host([disabled])*/[disabled].sc-calcite-rating-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([read-only]) *, :host([disabled]) *,\n:host([read-only]) ::slotted(*),\n:host([disabled]) ::slotted(*)*/[read-only].sc-calcite-rating-h *.sc-calcite-rating,[disabled].sc-calcite-rating-h *.sc-calcite-rating,.sc-calcite-rating-h[read-only] .sc-calcite-rating-s>*,.sc-calcite-rating-h[disabled] .sc-calcite-rating-s>*{pointer-events:none}/*!@:host*/.sc-calcite-rating-h{position:relative;display:flex;align-items:center;inline-size:-moz-fit-content;inline-size:fit-content}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-rating-h[disabled] .sc-calcite-rating-s>[calcite-hydrated][disabled],[disabled].sc-calcite-rating-h [calcite-hydrated][disabled].sc-calcite-rating{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-rating-h{block-size:1.5rem;--calcite-rating-spacing-unit:0.25rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-rating-h{block-size:2rem;--calcite-rating-spacing-unit:0.5rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-rating-h{block-size:2.75rem;--calcite-rating-spacing-unit:0.75rem}/*!@.fieldset*/.fieldset.sc-calcite-rating{margin:0;display:flex;border-width:0;padding:0;align-items:center;gap:var(--calcite-rating-spacing-unit)}/*!@.wrapper*/.wrapper.sc-calcite-rating{display:inline-block}/*!@.star*/.star.sc-calcite-rating{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;position:relative;display:flex;flex-direction:column;cursor:pointer;color:var(--calcite-ui-border-input)}/*!@.star:focus*/.star.sc-calcite-rating: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 )}/*!@.average,\n.fraction*/.average.sc-calcite-rating,.fraction.sc-calcite-rating{color:var(--calcite-ui-warning)}/*!@.hovered,\n.selected*/.hovered.sc-calcite-rating,.selected.sc-calcite-rating{color:var(--calcite-ui-brand)}/*!@.fraction*/.fraction.sc-calcite-rating{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;position:absolute;pointer-events:none;inset-block-start:0;overflow:hidden;inset-inline-start:0}/*!@calcite-chip*/calcite-chip.sc-calcite-rating{pointer-events:none;cursor:default}/*!@.number--average*/.number--average.sc-calcite-rating{font-weight:bold}/*!@.number--count*/.number--count.sc-calcite-rating{color:var(--calcite-ui-text-2);font-style:italic}/*!@.number--count:not(:first-child)*/.number--count.sc-calcite-rating:not(:first-child){margin-inline-start:var(--calcite-rating-spacing-unit)}/*!@.visually-hidden*/.visually-hidden.sc-calcite-rating{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}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-rating-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-rating-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-rating{display:none}";
|
|
36457
36529
|
|
|
36458
36530
|
class Rating {
|
|
36459
36531
|
constructor(hostRef) {
|
|
@@ -36465,29 +36537,12 @@ class Rating {
|
|
|
36465
36537
|
this.handleRatingPointerOut = () => {
|
|
36466
36538
|
this.isKeyboardInteraction = true;
|
|
36467
36539
|
this.hoverValue = null;
|
|
36468
|
-
this.focusValue = null;
|
|
36469
|
-
this.hasFocus = false;
|
|
36470
|
-
};
|
|
36471
|
-
this.handleRatingFocusIn = () => {
|
|
36472
|
-
const selectedInput = this.value > 0 ? this.value - 1 : 0;
|
|
36473
|
-
const focusInput = this.inputRefs[selectedInput];
|
|
36474
|
-
const focusValue = Number(focusInput.value);
|
|
36475
|
-
focusInput.select();
|
|
36476
|
-
this.focusValue = focusValue;
|
|
36477
|
-
this.hoverValue = focusValue;
|
|
36478
|
-
this.hasFocus = true;
|
|
36479
|
-
};
|
|
36480
|
-
this.handleRatingFocusLeave = () => {
|
|
36481
|
-
this.focusValue = null;
|
|
36482
|
-
this.hoverValue = null;
|
|
36483
|
-
this.hasFocus = false;
|
|
36484
36540
|
};
|
|
36485
36541
|
this.handleHostKeyDown = () => {
|
|
36486
36542
|
this.isKeyboardInteraction = true;
|
|
36487
36543
|
};
|
|
36488
|
-
this.
|
|
36489
|
-
const
|
|
36490
|
-
const inputVal = Number(target.value);
|
|
36544
|
+
this.handleLabelKeyDown = (event) => {
|
|
36545
|
+
const inputValue = this.getValueFromLabelEvent(event);
|
|
36491
36546
|
const key = event.key;
|
|
36492
36547
|
const numberKey = key == " " ? undefined : Number(key);
|
|
36493
36548
|
this.emit = true;
|
|
@@ -36495,20 +36550,20 @@ class Rating {
|
|
|
36495
36550
|
switch (key) {
|
|
36496
36551
|
case "Enter":
|
|
36497
36552
|
case " ":
|
|
36498
|
-
this.value = !this.required && this.value ===
|
|
36553
|
+
this.value = !this.required && this.value === inputValue ? 0 : inputValue;
|
|
36499
36554
|
break;
|
|
36500
36555
|
case "ArrowLeft":
|
|
36501
|
-
this.value =
|
|
36556
|
+
this.value = this.getPreviousRatingValue(inputValue);
|
|
36557
|
+
this.updateFocus();
|
|
36558
|
+
event.preventDefault();
|
|
36502
36559
|
break;
|
|
36503
36560
|
case "ArrowRight":
|
|
36504
|
-
this.value =
|
|
36561
|
+
this.value = this.getNextRatingValue(inputValue);
|
|
36562
|
+
this.updateFocus();
|
|
36563
|
+
event.preventDefault();
|
|
36505
36564
|
break;
|
|
36506
36565
|
case "Tab":
|
|
36507
|
-
|
|
36508
|
-
this.hasFocus = false;
|
|
36509
|
-
this.focusValue = null;
|
|
36510
|
-
this.hoverValue = null;
|
|
36511
|
-
}
|
|
36566
|
+
this.hoverValue = null;
|
|
36512
36567
|
}
|
|
36513
36568
|
}
|
|
36514
36569
|
else {
|
|
@@ -36518,33 +36573,42 @@ class Rating {
|
|
|
36518
36573
|
else if (this.required && numberKey > 0 && numberKey <= this.max) {
|
|
36519
36574
|
this.value = numberKey;
|
|
36520
36575
|
}
|
|
36576
|
+
this.updateFocus();
|
|
36521
36577
|
}
|
|
36522
36578
|
};
|
|
36523
36579
|
this.handleInputChange = (event) => {
|
|
36524
36580
|
if (this.isKeyboardInteraction === true) {
|
|
36525
36581
|
const inputVal = Number(event.target["value"]);
|
|
36526
|
-
this.focusValue = inputVal;
|
|
36527
36582
|
this.hoverValue = inputVal;
|
|
36528
36583
|
this.value = inputVal;
|
|
36529
36584
|
}
|
|
36530
36585
|
};
|
|
36531
36586
|
this.handleLabelPointerOver = (event) => {
|
|
36532
|
-
|
|
36533
|
-
const newPointerValue = Number(target.firstChild["value"] || 0);
|
|
36534
|
-
this.hoverValue = newPointerValue;
|
|
36535
|
-
this.focusValue = null;
|
|
36587
|
+
this.hoverValue = this.getValueFromLabelEvent(event);
|
|
36536
36588
|
};
|
|
36537
36589
|
this.handleLabelPointerDown = (event) => {
|
|
36538
36590
|
const target = event.currentTarget;
|
|
36539
|
-
const
|
|
36540
|
-
this.
|
|
36541
|
-
this.hoverValue = null;
|
|
36591
|
+
const inputValue = this.getValueFromLabelEvent(event);
|
|
36592
|
+
this.hoverValue = inputValue;
|
|
36542
36593
|
this.emit = true;
|
|
36543
|
-
this.value = !this.required && this.value ===
|
|
36594
|
+
this.value = !this.required && this.value === inputValue ? 0 : inputValue;
|
|
36595
|
+
target.focus();
|
|
36596
|
+
};
|
|
36597
|
+
this.handleLabelClick = (event) => {
|
|
36598
|
+
//preventing pointerdown event will supress any compatability mouse events except for click event.
|
|
36599
|
+
event.preventDefault();
|
|
36600
|
+
};
|
|
36601
|
+
this.handleLabelFocus = (event) => {
|
|
36602
|
+
const inputValue = this.getValueFromLabelEvent(event);
|
|
36603
|
+
this.hoverValue = inputValue;
|
|
36604
|
+
};
|
|
36605
|
+
this.setLabelEl = (el) => {
|
|
36606
|
+
this.labelElements.push(el);
|
|
36544
36607
|
};
|
|
36545
36608
|
this.emit = false;
|
|
36546
36609
|
this.guid = `calcite-ratings-${guid()}`;
|
|
36547
36610
|
this.isKeyboardInteraction = true;
|
|
36611
|
+
this.labelElements = [];
|
|
36548
36612
|
this.max = 5;
|
|
36549
36613
|
this.average = undefined;
|
|
36550
36614
|
this.count = undefined;
|
|
@@ -36561,15 +36625,12 @@ class Rating {
|
|
|
36561
36625
|
this.effectiveLocale = "";
|
|
36562
36626
|
this.defaultMessages = undefined;
|
|
36563
36627
|
this.hoverValue = undefined;
|
|
36564
|
-
this.focusValue = undefined;
|
|
36565
|
-
this.hasFocus = undefined;
|
|
36566
36628
|
}
|
|
36567
36629
|
onMessagesChange() {
|
|
36568
36630
|
/* wired up by t9n util */
|
|
36569
36631
|
}
|
|
36570
36632
|
handleValueUpdate(newValue) {
|
|
36571
36633
|
this.hoverValue = newValue;
|
|
36572
|
-
this.focusValue = newValue;
|
|
36573
36634
|
if (this.emit) {
|
|
36574
36635
|
this.calciteRatingChange.emit();
|
|
36575
36636
|
}
|
|
@@ -36593,39 +36654,28 @@ class Rating {
|
|
|
36593
36654
|
async componentWillLoad() {
|
|
36594
36655
|
await setUpMessages(this);
|
|
36595
36656
|
setUpLoadableComponent(this);
|
|
36596
|
-
this.inputRefs = Array(this.max);
|
|
36597
36657
|
}
|
|
36598
36658
|
componentWillRender() {
|
|
36599
36659
|
this.starsMap = Array.from({ length: this.max }, (_, i) => {
|
|
36600
36660
|
const value = i + 1;
|
|
36601
|
-
const average = !this.
|
|
36602
|
-
!this.hoverValue &&
|
|
36603
|
-
this.average &&
|
|
36604
|
-
!this.value &&
|
|
36605
|
-
value <= this.average;
|
|
36661
|
+
const average = !this.hoverValue && this.average && !this.value && value <= this.average;
|
|
36606
36662
|
const checked = value === this.value;
|
|
36607
|
-
const focused = this.isKeyboardInteraction && this.hasFocus && this.focusValue === value;
|
|
36608
36663
|
const fraction = this.average && this.average + 1 - value;
|
|
36609
36664
|
const hovered = value <= this.hoverValue;
|
|
36610
36665
|
const id = `${this.guid}-${value}`;
|
|
36611
|
-
const partial = !this.
|
|
36612
|
-
!this.hoverValue &&
|
|
36613
|
-
!this.value &&
|
|
36614
|
-
!hovered &&
|
|
36615
|
-
fraction > 0 &&
|
|
36616
|
-
fraction < 1;
|
|
36666
|
+
const partial = !this.hoverValue && !this.value && !hovered && fraction > 0 && fraction < 1;
|
|
36617
36667
|
const selected = this.value >= value;
|
|
36668
|
+
const tabIndex = this.getTabIndex(value);
|
|
36618
36669
|
return {
|
|
36619
36670
|
average,
|
|
36620
36671
|
checked,
|
|
36621
|
-
focused,
|
|
36622
36672
|
fraction,
|
|
36623
36673
|
hovered,
|
|
36624
36674
|
id,
|
|
36625
|
-
idx: i,
|
|
36626
36675
|
partial,
|
|
36627
36676
|
selected,
|
|
36628
36677
|
value,
|
|
36678
|
+
tabIndex,
|
|
36629
36679
|
};
|
|
36630
36680
|
});
|
|
36631
36681
|
}
|
|
@@ -36643,21 +36693,16 @@ class Rating {
|
|
|
36643
36693
|
updateHostInteraction(this);
|
|
36644
36694
|
}
|
|
36645
36695
|
render() {
|
|
36646
|
-
return (hAsync(Host, {
|
|
36696
|
+
return (hAsync(Host, { onKeyDown: this.handleHostKeyDown, onPointerOut: this.handleRatingPointerOut, onPointerOver: this.handleRatingPointerOver }, hAsync("span", { class: "wrapper" }, hAsync("fieldset", { class: "fieldset", disabled: this.disabled }, hAsync("legend", { class: "visually-hidden" }, this.messages.rating), this.starsMap.map(({ average, checked, fraction, hovered, id, partial, selected, value, tabIndex }) => {
|
|
36647
36697
|
return (hAsync("label", { class: {
|
|
36648
36698
|
star: true,
|
|
36649
|
-
focused,
|
|
36650
36699
|
selected,
|
|
36651
36700
|
hovered,
|
|
36652
36701
|
average,
|
|
36653
36702
|
partial,
|
|
36654
|
-
},
|
|
36703
|
+
}, "data-value": value, htmlFor: id, onClick: this.handleLabelClick, onFocus: this.handleLabelFocus, onKeyDown: this.handleLabelKeyDown, onPointerDown: this.handleLabelPointerDown, onPointerOver: this.handleLabelPointerOver, tabIndex: tabIndex,
|
|
36655
36704
|
// eslint-disable-next-line react/jsx-sort-props
|
|
36656
|
-
ref: (
|
|
36657
|
-
this.inputRefs[idx] = el;
|
|
36658
|
-
return ((value === 1 || value === this.value) &&
|
|
36659
|
-
(this.inputFocusRef = el));
|
|
36660
|
-
} }), hAsync(StarIcon, { full: selected || average, scale: this.scale }), partial && (hAsync("div", { class: "fraction", style: { width: `${fraction * 100}%` } }, hAsync(StarIcon, { full: true, partial: true, scale: this.scale }))), hAsync("span", { class: "visually-hidden" }, this.messages.stars.replace("{num}", `${value}`))));
|
|
36705
|
+
ref: this.setLabelEl }, hAsync("input", { checked: checked, class: "visually-hidden", disabled: this.disabled || this.readOnly, id: id, name: this.guid, onChange: this.handleInputChange, tabIndex: -1, type: "radio", value: value }), hAsync(StarIcon, { full: selected || average, scale: this.scale }), partial && (hAsync("div", { class: "fraction", style: { width: `${fraction * 100}%` } }, hAsync(StarIcon, { full: true, partial: true, scale: this.scale }))), hAsync("span", { class: "visually-hidden" }, this.messages.stars.replace("{num}", `${value}`))));
|
|
36661
36706
|
}), (this.count || this.average) && this.showChip ? (hAsync("calcite-chip", { scale: this.scale, value: this.count?.toString() }, !!this.average && hAsync("span", { class: "number--average" }, this.average.toString()), !!this.count && hAsync("span", { class: "number--count" }, "(", this.count?.toString(), ")"))) : null), hAsync(HiddenFormInputSlot, { component: this }))));
|
|
36662
36707
|
}
|
|
36663
36708
|
//--------------------------------------------------------------------------
|
|
@@ -36668,6 +36713,26 @@ class Rating {
|
|
|
36668
36713
|
onLabelClick() {
|
|
36669
36714
|
this.setFocus();
|
|
36670
36715
|
}
|
|
36716
|
+
updateFocus() {
|
|
36717
|
+
this.hoverValue = this.value;
|
|
36718
|
+
this.labelElements[this.value - 1].focus();
|
|
36719
|
+
}
|
|
36720
|
+
getTabIndex(value) {
|
|
36721
|
+
if (this.readOnly || (this.value !== value && (this.value || value !== 1))) {
|
|
36722
|
+
return -1;
|
|
36723
|
+
}
|
|
36724
|
+
return 0;
|
|
36725
|
+
}
|
|
36726
|
+
getValueFromLabelEvent(event) {
|
|
36727
|
+
const target = event.currentTarget;
|
|
36728
|
+
return Number(target.getAttribute("data-value"));
|
|
36729
|
+
}
|
|
36730
|
+
getNextRatingValue(currentValue) {
|
|
36731
|
+
return currentValue === 5 ? 1 : currentValue + 1;
|
|
36732
|
+
}
|
|
36733
|
+
getPreviousRatingValue(currentValue) {
|
|
36734
|
+
return currentValue === 1 ? 5 : currentValue - 1;
|
|
36735
|
+
}
|
|
36671
36736
|
//--------------------------------------------------------------------------
|
|
36672
36737
|
//
|
|
36673
36738
|
// Public Methods
|
|
@@ -36676,7 +36741,7 @@ class Rating {
|
|
|
36676
36741
|
/** Sets focus on the component. */
|
|
36677
36742
|
async setFocus() {
|
|
36678
36743
|
await componentFocusable(this);
|
|
36679
|
-
this.
|
|
36744
|
+
focusFirstTabbable(this.el);
|
|
36680
36745
|
}
|
|
36681
36746
|
static get assetsDirs() { return ["assets"]; }
|
|
36682
36747
|
get el() { return getElement(this); }
|
|
@@ -36705,8 +36770,6 @@ class Rating {
|
|
|
36705
36770
|
"effectiveLocale": [32],
|
|
36706
36771
|
"defaultMessages": [32],
|
|
36707
36772
|
"hoverValue": [32],
|
|
36708
|
-
"focusValue": [32],
|
|
36709
|
-
"hasFocus": [32],
|
|
36710
36773
|
"setFocus": [64]
|
|
36711
36774
|
},
|
|
36712
36775
|
"$listeners$": undefined,
|
|
@@ -36715,7 +36778,7 @@ class Rating {
|
|
|
36715
36778
|
}; }
|
|
36716
36779
|
}
|
|
36717
36780
|
|
|
36718
|
-
const CSS$
|
|
36781
|
+
const CSS$j = {
|
|
36719
36782
|
scrim: "scrim",
|
|
36720
36783
|
content: "content",
|
|
36721
36784
|
};
|
|
@@ -36785,7 +36848,7 @@ class Scrim {
|
|
|
36785
36848
|
// --------------------------------------------------------------------------
|
|
36786
36849
|
render() {
|
|
36787
36850
|
const { hasContent, loading, messages } = this;
|
|
36788
|
-
return (hAsync("div", { class: CSS$
|
|
36851
|
+
return (hAsync("div", { class: CSS$j.scrim }, loading ? (hAsync("calcite-loader", { label: messages.loading, ref: this.storeLoaderEl, scale: this.loaderScale })) : null, hAsync("div", { class: CSS$j.content, hidden: !hasContent }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
36789
36852
|
}
|
|
36790
36853
|
getScale(size) {
|
|
36791
36854
|
if (size < BREAKPOINTS.s) {
|
|
@@ -36852,17 +36915,21 @@ class SegmentedControl {
|
|
|
36852
36915
|
this.selectItem(event.target, true);
|
|
36853
36916
|
}
|
|
36854
36917
|
};
|
|
36918
|
+
this.mutationObserver = createObserver();
|
|
36855
36919
|
this.appearance = "solid";
|
|
36856
36920
|
this.disabled = false;
|
|
36857
36921
|
this.form = undefined;
|
|
36858
36922
|
this.required = false;
|
|
36859
|
-
this.layout = "horizontal";
|
|
36860
36923
|
this.name = undefined;
|
|
36924
|
+
this.layout = "horizontal";
|
|
36861
36925
|
this.scale = "m";
|
|
36862
36926
|
this.value = null;
|
|
36863
36927
|
this.selectedItem = undefined;
|
|
36864
36928
|
this.width = "auto";
|
|
36865
36929
|
}
|
|
36930
|
+
handlePropsChange() {
|
|
36931
|
+
this.handleItemPropChange();
|
|
36932
|
+
}
|
|
36866
36933
|
valueHandler(value) {
|
|
36867
36934
|
const items = this.getItems();
|
|
36868
36935
|
items.forEach((item) => (item.checked = item.value === value));
|
|
@@ -36888,14 +36955,7 @@ class SegmentedControl {
|
|
|
36888
36955
|
//--------------------------------------------------------------------------
|
|
36889
36956
|
componentWillLoad() {
|
|
36890
36957
|
setUpLoadableComponent(this);
|
|
36891
|
-
|
|
36892
|
-
const lastChecked = items.filter((item) => item.checked).pop();
|
|
36893
|
-
if (lastChecked) {
|
|
36894
|
-
this.selectItem(lastChecked);
|
|
36895
|
-
}
|
|
36896
|
-
else if (items[0]) {
|
|
36897
|
-
items[0].tabIndex = 0;
|
|
36898
|
-
}
|
|
36958
|
+
this.setUpItems();
|
|
36899
36959
|
}
|
|
36900
36960
|
componentDidLoad() {
|
|
36901
36961
|
afterConnectDefaultValueSet(this, this.value);
|
|
@@ -36905,11 +36965,14 @@ class SegmentedControl {
|
|
|
36905
36965
|
connectInteractive(this);
|
|
36906
36966
|
connectLabel(this);
|
|
36907
36967
|
connectForm(this);
|
|
36968
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
36969
|
+
this.handleItemPropChange();
|
|
36908
36970
|
}
|
|
36909
36971
|
disconnectedCallback() {
|
|
36910
36972
|
disconnectInteractive(this);
|
|
36911
36973
|
disconnectLabel(this);
|
|
36912
36974
|
disconnectForm(this);
|
|
36975
|
+
this.mutationObserver?.unobserve(this.el);
|
|
36913
36976
|
}
|
|
36914
36977
|
componentDidRender() {
|
|
36915
36978
|
updateHostInteraction(this);
|
|
@@ -36976,6 +37039,14 @@ class SegmentedControl {
|
|
|
36976
37039
|
await componentFocusable(this);
|
|
36977
37040
|
(this.selectedItem || this.getItems()[0])?.focus();
|
|
36978
37041
|
}
|
|
37042
|
+
handleItemPropChange() {
|
|
37043
|
+
const items = this.getItems();
|
|
37044
|
+
items.forEach((item) => {
|
|
37045
|
+
item.appearance = this.appearance;
|
|
37046
|
+
item.layout = this.layout;
|
|
37047
|
+
item.scale = this.scale;
|
|
37048
|
+
});
|
|
37049
|
+
}
|
|
36979
37050
|
//--------------------------------------------------------------------------
|
|
36980
37051
|
//
|
|
36981
37052
|
// Private Methods
|
|
@@ -37008,8 +37079,21 @@ class SegmentedControl {
|
|
|
37008
37079
|
});
|
|
37009
37080
|
this.selectedItem = match;
|
|
37010
37081
|
}
|
|
37082
|
+
setUpItems() {
|
|
37083
|
+
const items = this.getItems();
|
|
37084
|
+
const lastChecked = items.filter((item) => item.checked).pop();
|
|
37085
|
+
if (lastChecked) {
|
|
37086
|
+
this.selectItem(lastChecked);
|
|
37087
|
+
}
|
|
37088
|
+
else if (items[0]) {
|
|
37089
|
+
items[0].tabIndex = 0;
|
|
37090
|
+
}
|
|
37091
|
+
}
|
|
37011
37092
|
get el() { return getElement(this); }
|
|
37012
37093
|
static get watchers() { return {
|
|
37094
|
+
"appearance": ["handlePropsChange"],
|
|
37095
|
+
"layout": ["handlePropsChange"],
|
|
37096
|
+
"scale": ["handlePropsChange"],
|
|
37013
37097
|
"value": ["valueHandler"],
|
|
37014
37098
|
"selectedItem": ["handleSelectedItemChange"]
|
|
37015
37099
|
}; }
|
|
@@ -37022,8 +37106,8 @@ class SegmentedControl {
|
|
|
37022
37106
|
"disabled": [516],
|
|
37023
37107
|
"form": [513],
|
|
37024
37108
|
"required": [516],
|
|
37025
|
-
"layout": [513],
|
|
37026
37109
|
"name": [513],
|
|
37110
|
+
"layout": [513],
|
|
37027
37111
|
"scale": [513],
|
|
37028
37112
|
"value": [1025],
|
|
37029
37113
|
"selectedItem": [1040],
|
|
@@ -37032,14 +37116,14 @@ class SegmentedControl {
|
|
|
37032
37116
|
},
|
|
37033
37117
|
"$listeners$": [[0, "calciteInternalSegmentedControlItemChange", "handleSelected"], [0, "keydown", "handleKeyDown"]],
|
|
37034
37118
|
"$lazyBundleId$": "-",
|
|
37035
|
-
"$attrsToReflect$": [["appearance", "appearance"], ["disabled", "disabled"], ["form", "form"], ["required", "required"], ["
|
|
37119
|
+
"$attrsToReflect$": [["appearance", "appearance"], ["disabled", "disabled"], ["form", "form"], ["required", "required"], ["name", "name"], ["layout", "layout"], ["scale", "scale"], ["width", "width"]]
|
|
37036
37120
|
}; }
|
|
37037
37121
|
}
|
|
37038
37122
|
|
|
37039
37123
|
const SLOTS$9 = {
|
|
37040
37124
|
input: "input",
|
|
37041
37125
|
};
|
|
37042
|
-
const CSS$
|
|
37126
|
+
const CSS$i = {
|
|
37043
37127
|
segmentedControlItemIcon: "segmented-control-item-icon",
|
|
37044
37128
|
};
|
|
37045
37129
|
|
|
@@ -37054,17 +37138,22 @@ class SegmentedControlItem {
|
|
|
37054
37138
|
this.iconStart = undefined;
|
|
37055
37139
|
this.iconEnd = undefined;
|
|
37056
37140
|
this.value = undefined;
|
|
37141
|
+
this.appearance = "solid";
|
|
37142
|
+
this.layout = "horizontal";
|
|
37143
|
+
this.scale = "m";
|
|
37057
37144
|
}
|
|
37058
37145
|
handleCheckedChange() {
|
|
37059
37146
|
this.calciteInternalSegmentedControlItemChange.emit();
|
|
37060
37147
|
}
|
|
37148
|
+
//--------------------------------------------------------------------------
|
|
37149
|
+
//
|
|
37150
|
+
// Lifecycle
|
|
37151
|
+
//
|
|
37152
|
+
//--------------------------------------------------------------------------
|
|
37061
37153
|
render() {
|
|
37062
|
-
const { checked, value } = this;
|
|
37063
|
-
const
|
|
37064
|
-
const
|
|
37065
|
-
const layout = getElementProp(this.el, "layout", "horizontal");
|
|
37066
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$h.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
37067
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$h.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
37154
|
+
const { appearance, checked, layout, scale, value } = this;
|
|
37155
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$i.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
37156
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$i.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
37068
37157
|
return (hAsync(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, hAsync("label", { class: {
|
|
37069
37158
|
"label--scale-s": scale === "s",
|
|
37070
37159
|
"label--scale-m": scale === "m",
|
|
@@ -37087,7 +37176,10 @@ class SegmentedControlItem {
|
|
|
37087
37176
|
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
37088
37177
|
"iconStart": [513, "icon-start"],
|
|
37089
37178
|
"iconEnd": [513, "icon-end"],
|
|
37090
|
-
"value": [1032]
|
|
37179
|
+
"value": [1032],
|
|
37180
|
+
"appearance": [1],
|
|
37181
|
+
"layout": [1],
|
|
37182
|
+
"scale": [1]
|
|
37091
37183
|
},
|
|
37092
37184
|
"$listeners$": undefined,
|
|
37093
37185
|
"$lazyBundleId$": "-",
|
|
@@ -37095,7 +37187,7 @@ class SegmentedControlItem {
|
|
|
37095
37187
|
}; }
|
|
37096
37188
|
}
|
|
37097
37189
|
|
|
37098
|
-
const CSS$
|
|
37190
|
+
const CSS$h = {
|
|
37099
37191
|
icon: "icon",
|
|
37100
37192
|
iconContainer: "icon-container",
|
|
37101
37193
|
select: "select",
|
|
@@ -37282,11 +37374,11 @@ class Select {
|
|
|
37282
37374
|
//
|
|
37283
37375
|
//--------------------------------------------------------------------------
|
|
37284
37376
|
renderChevron() {
|
|
37285
|
-
return (hAsync("div", { class: CSS$
|
|
37377
|
+
return (hAsync("div", { class: CSS$h.iconContainer }, hAsync("calcite-icon", { class: CSS$h.icon, icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
37286
37378
|
}
|
|
37287
37379
|
render() {
|
|
37288
|
-
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$
|
|
37289
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
37380
|
+
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$h.select, disabled: this.disabled, onChange: this.handleInternalSelectChange,
|
|
37381
|
+
// 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)
|
|
37290
37382
|
ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
37291
37383
|
}
|
|
37292
37384
|
get el() { return getElement(this); }
|
|
@@ -37316,6 +37408,239 @@ class Select {
|
|
|
37316
37408
|
}; }
|
|
37317
37409
|
}
|
|
37318
37410
|
|
|
37411
|
+
const CSS$g = {
|
|
37412
|
+
scrim: "scrim",
|
|
37413
|
+
container: "container",
|
|
37414
|
+
containerOpen: "container--open",
|
|
37415
|
+
content: "content",
|
|
37416
|
+
containerSlottedInShell: "container--slotted-in-shell",
|
|
37417
|
+
};
|
|
37418
|
+
|
|
37419
|
+
const sheetCss = "/*!@:host*/.sc-calcite-sheet-h{position:absolute;inset:0px;z-index:var(--calcite-app-z-index-overlay);display:flex;visibility:hidden !important;--calcite-sheet-scrim-background-internal:rgba(0, 0, 0, 0.85);--calcite-scrim-shadow-block-start-internal:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-block-end-internal:0 -4px 8px -1px rgba(0, 0, 0, 0.08), 0 -2px 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-start-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04)}/*!@.calcite--rtl*/.calcite--rtl.sc-calcite-sheet{--calcite-scrim-shadow-inline-start-internal:-4px 0 8px -1px rgba(0, 0, 0, 0.08), -2px 0 4px -1px rgba(0, 0, 0, 0.04);--calcite-scrim-shadow-inline-end-internal:4px 0 8px -1px rgba(0, 0, 0, 0.08), 2px 0 4px -1px rgba(0, 0, 0, 0.04)}/*!@.container*/.container.sc-calcite-sheet{visibility:hidden;position:fixed;z-index:var(--calcite-app-z-index-overlay);display:flex;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium), opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88)}/*!@:host([position=inline-start]) .container*/[position=inline-start].sc-calcite-sheet-h .container.sc-calcite-sheet{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal:translate3d(-1rem, 0, 0)}/*!@:host([position=inline-end]) .container*/[position=inline-end].sc-calcite-sheet-h .container.sc-calcite-sheet{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal:translate3d(1rem, 0, 0)}/*!@:host([position=block-start]) .container*/[position=block-start].sc-calcite-sheet-h .container.sc-calcite-sheet{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, -1rem, 0)}/*!@:host([position=block-end]) .container*/[position=block-end].sc-calcite-sheet-h .container.sc-calcite-sheet{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal:translate3d(0, 1rem, 0)}/*!@:host([display-mode=float][position=inline-start]) .container*/[display-mode=float][position=inline-start].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}/*!@:host([display-mode=float][position=inline-end]) .container*/[display-mode=float][position=inline-end].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}/*!@:host([display-mode=float][position=block-start]) .container*/[display-mode=float][position=block-start].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}/*!@:host([display-mode=float][position=block-end]) .container*/[display-mode=float][position=block-end].sc-calcite-sheet-h .container.sc-calcite-sheet{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}/*!@:host([position^=inline]) .container,\n:host([position^=inline]) .content*/[position^=inline].sc-calcite-sheet-h .container.sc-calcite-sheet,[position^=inline].sc-calcite-sheet-h .content.sc-calcite-sheet{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}/*!@:host([position^=block]) .container,\n:host([position^=block]) .content*/[position^=block].sc-calcite-sheet-h .container.sc-calcite-sheet,[position^=block].sc-calcite-sheet-h .content.sc-calcite-sheet{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}/*!@:host([display-mode=float][position^=inline]) .container*/[display-mode=float][position^=inline].sc-calcite-sheet-h .container.sc-calcite-sheet{block-size:calc(100% - 1.5rem);max-block-size:calc(100% - 1.5rem);min-block-size:calc(100% - 1.5rem)}/*!@:host([display-mode=float][position^=block]) .container*/[display-mode=float][position^=block].sc-calcite-sheet-h .container.sc-calcite-sheet{inline-size:calc(100% - 1.5rem);max-inline-size:calc(100% - 1.5rem);min-inline-size:calc(100% - 1.5rem)}/*!@:host([position^=inline][width-scale=s])*/[position^=inline][width-scale=s].sc-calcite-sheet-h{--calcite-sheet-width-internal:var(--calcite-sheet-width, 20vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 20vw);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 20vw)}/*!@:host([position^=inline][width-scale=m])*/[position^=inline][width-scale=m].sc-calcite-sheet-h{--calcite-sheet-width-internal:var(--calcite-sheet-width, 30vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 30vw);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 30vw)}/*!@:host([position^=inline][width-scale=l])*/[position^=inline][width-scale=l].sc-calcite-sheet-h{--calcite-sheet-width-internal:var(--calcite-sheet-width, 40vw);--calcite-sheet-max-width-internal:var(--calcite-sheet-max-width, 40vw);--calcite-sheet-min-width-internal:var(--calcite-sheet-min-width, 40vw)}/*!@:host([position^=block][height-scale=s])*/[position^=block][height-scale=s].sc-calcite-sheet-h{--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 10vh);--calcite-sheet-height-internal:var(--calcite-sheet-height, 20vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 30vh)}/*!@:host([position^=block][height-scale=m])*/[position^=block][height-scale=m].sc-calcite-sheet-h{--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 10vh);--calcite-sheet-height-internal:var(--calcite-sheet-height, 40vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 50vh)}/*!@:host([position^=block][height-scale=l])*/[position^=block][height-scale=l].sc-calcite-sheet-h{--calcite-sheet-min-height-internal:var(--calcite-sheet-min-height, 10vh);--calcite-sheet-height-internal:var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal:var(--calcite-sheet-max-height, 70vh)}/*!@.scrim*/.scrim.sc-calcite-sheet{--calcite-scrim-background:var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}/*!@:host([opened])*/[opened].sc-calcite-sheet-h{visibility:visible !important}/*!@.content*/.content.sc-calcite-sheet{position:relative;z-index:var(--calcite-app-z-index-modal);box-sizing:border-box;display:block;max-block-size:100%;max-inline-size:100%;overflow-y:hidden;padding:0px;background-color:var(--calcite-ui-foreground-1);max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-medium), opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88);transform:var(--calcite-sheet-hidden-position-internal)}/*!@.container--open .content*/.container--open.sc-calcite-sheet .content.sc-calcite-sheet{transform:translate3d(0, 0, 0)}/*!@:host([display-mode=float]) .content,\n:host([display-mode=float]) .container*/[display-mode=float].sc-calcite-sheet-h .content.sc-calcite-sheet,[display-mode=float].sc-calcite-sheet-h .container.sc-calcite-sheet{border-radius:0.25rem}/*!@:host([display-mode=float]) .container*/[display-mode=float].sc-calcite-sheet-h .container.sc-calcite-sheet{margin:0.75rem}/*!@.container--open*/.container--open.sc-calcite-sheet{visibility:visible;opacity:1;transition-delay:0ms}/*!@.container--open .content*/.container--open.sc-calcite-sheet .content.sc-calcite-sheet{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-medium) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}/*!@:host([position=inline-start]) .content,\n:host([position=inline-end]) .content*/[position=inline-start].sc-calcite-sheet-h .content.sc-calcite-sheet,[position=inline-end].sc-calcite-sheet-h .content.sc-calcite-sheet{block-size:100%}/*!@:host([position=block-start]) .content,\n:host([position=block-end]) .content*/[position=block-start].sc-calcite-sheet-h .content.sc-calcite-sheet,[position=block-end].sc-calcite-sheet-h .content.sc-calcite-sheet{inline-size:100%}/*!@.container--slotted-in-shell*/.container--slotted-in-shell.sc-calcite-sheet{pointer-events:auto;position:absolute}/*!@.container--slotted-in-shell calcite-scrim*/.container--slotted-in-shell.sc-calcite-sheet calcite-scrim.sc-calcite-sheet{position:absolute}/*!@:host([hidden])*/[hidden].sc-calcite-sheet-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-sheet{display:none}";
|
|
37420
|
+
|
|
37421
|
+
class Sheet {
|
|
37422
|
+
constructor(hostRef) {
|
|
37423
|
+
registerInstance(this, hostRef);
|
|
37424
|
+
this.calciteSheetBeforeClose = createEvent(this, "calciteSheetBeforeClose", 6);
|
|
37425
|
+
this.calciteSheetClose = createEvent(this, "calciteSheetClose", 6);
|
|
37426
|
+
this.calciteSheetBeforeOpen = createEvent(this, "calciteSheetBeforeOpen", 6);
|
|
37427
|
+
this.calciteSheetOpen = createEvent(this, "calciteSheetOpen", 6);
|
|
37428
|
+
//--------------------------------------------------------------------------
|
|
37429
|
+
//
|
|
37430
|
+
// Private Properties/ State
|
|
37431
|
+
//
|
|
37432
|
+
//--------------------------------------------------------------------------
|
|
37433
|
+
this.openTransitionProp = "opacity";
|
|
37434
|
+
this.ignoreOpenChange = false;
|
|
37435
|
+
this.mutationObserver = createObserver();
|
|
37436
|
+
this.setTransitionEl = (el) => {
|
|
37437
|
+
this.transitionEl = el;
|
|
37438
|
+
this.contentId = ensureId(el);
|
|
37439
|
+
};
|
|
37440
|
+
this.openEnd = () => {
|
|
37441
|
+
this.setFocus();
|
|
37442
|
+
this.el.removeEventListener("calciteSheetOpen", this.openEnd);
|
|
37443
|
+
};
|
|
37444
|
+
this.handleOutsideClose = () => {
|
|
37445
|
+
if (this.outsideCloseDisabled) {
|
|
37446
|
+
return;
|
|
37447
|
+
}
|
|
37448
|
+
this.closeSheet();
|
|
37449
|
+
};
|
|
37450
|
+
this.closeSheet = async () => {
|
|
37451
|
+
if (this.ignoreOpenChange) {
|
|
37452
|
+
return;
|
|
37453
|
+
}
|
|
37454
|
+
if (this.beforeClose) {
|
|
37455
|
+
try {
|
|
37456
|
+
await this.beforeClose(this.el);
|
|
37457
|
+
}
|
|
37458
|
+
catch (_error) {
|
|
37459
|
+
// close prevented
|
|
37460
|
+
requestAnimationFrame(() => {
|
|
37461
|
+
this.ignoreOpenChange = true;
|
|
37462
|
+
this.open = true;
|
|
37463
|
+
this.ignoreOpenChange = false;
|
|
37464
|
+
});
|
|
37465
|
+
return;
|
|
37466
|
+
}
|
|
37467
|
+
}
|
|
37468
|
+
this.ignoreOpenChange = true;
|
|
37469
|
+
this.open = false;
|
|
37470
|
+
this.opened = false;
|
|
37471
|
+
this.removeOverflowHiddenClass();
|
|
37472
|
+
this.ignoreOpenChange = false;
|
|
37473
|
+
};
|
|
37474
|
+
this.beforeClose = undefined;
|
|
37475
|
+
this.displayMode = "overlay";
|
|
37476
|
+
this.escapeDisabled = false;
|
|
37477
|
+
this.heightScale = "m";
|
|
37478
|
+
this.focusTrapDisabled = false;
|
|
37479
|
+
this.label = undefined;
|
|
37480
|
+
this.open = false;
|
|
37481
|
+
this.opened = false;
|
|
37482
|
+
this.outsideCloseDisabled = false;
|
|
37483
|
+
this.position = "inline-start";
|
|
37484
|
+
this.slottedInShell = undefined;
|
|
37485
|
+
this.widthScale = "m";
|
|
37486
|
+
}
|
|
37487
|
+
handleFocusTrapDisabled(focusTrapDisabled) {
|
|
37488
|
+
if (!this.open) {
|
|
37489
|
+
return;
|
|
37490
|
+
}
|
|
37491
|
+
focusTrapDisabled ? deactivateFocusTrap(this) : activateFocusTrap(this);
|
|
37492
|
+
}
|
|
37493
|
+
async toggleSheet(value) {
|
|
37494
|
+
if (this.ignoreOpenChange) {
|
|
37495
|
+
return;
|
|
37496
|
+
}
|
|
37497
|
+
onToggleOpenCloseComponent(this);
|
|
37498
|
+
if (value) {
|
|
37499
|
+
this.openSheet();
|
|
37500
|
+
}
|
|
37501
|
+
else {
|
|
37502
|
+
this.closeSheet();
|
|
37503
|
+
}
|
|
37504
|
+
}
|
|
37505
|
+
//--------------------------------------------------------------------------
|
|
37506
|
+
//
|
|
37507
|
+
// Lifecycle
|
|
37508
|
+
//
|
|
37509
|
+
//--------------------------------------------------------------------------
|
|
37510
|
+
async componentWillLoad() {
|
|
37511
|
+
setUpLoadableComponent(this);
|
|
37512
|
+
// when sheet initially renders, if active was set we need to open as watcher doesn't fire
|
|
37513
|
+
if (this.open) {
|
|
37514
|
+
onToggleOpenCloseComponent(this);
|
|
37515
|
+
requestAnimationFrame(() => this.openSheet());
|
|
37516
|
+
}
|
|
37517
|
+
}
|
|
37518
|
+
componentDidLoad() {
|
|
37519
|
+
setComponentLoaded(this);
|
|
37520
|
+
}
|
|
37521
|
+
connectedCallback() {
|
|
37522
|
+
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
37523
|
+
connectFocusTrap(this);
|
|
37524
|
+
}
|
|
37525
|
+
disconnectedCallback() {
|
|
37526
|
+
this.removeOverflowHiddenClass();
|
|
37527
|
+
this.mutationObserver?.disconnect();
|
|
37528
|
+
deactivateFocusTrap(this);
|
|
37529
|
+
this.slottedInShell = false;
|
|
37530
|
+
}
|
|
37531
|
+
render() {
|
|
37532
|
+
const dir = getElementDir(this.el);
|
|
37533
|
+
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-label": this.label, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
37534
|
+
[CSS$g.container]: true,
|
|
37535
|
+
[CSS$g.containerOpen]: this.opened,
|
|
37536
|
+
[CSS$g.containerSlottedInShell]: this.slottedInShell,
|
|
37537
|
+
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
37538
|
+
} }, hAsync("calcite-scrim", { class: CSS$g.scrim, onClick: this.handleOutsideClose }), hAsync("div", { class: {
|
|
37539
|
+
[CSS$g.content]: true,
|
|
37540
|
+
},
|
|
37541
|
+
// 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)
|
|
37542
|
+
ref: this.setTransitionEl }, hAsync("slot", null)))));
|
|
37543
|
+
}
|
|
37544
|
+
//--------------------------------------------------------------------------
|
|
37545
|
+
//
|
|
37546
|
+
// Event Listeners
|
|
37547
|
+
//
|
|
37548
|
+
//--------------------------------------------------------------------------
|
|
37549
|
+
handleEscape(event) {
|
|
37550
|
+
if (this.open && !this.escapeDisabled && event.key === "Escape" && !event.defaultPrevented) {
|
|
37551
|
+
this.closeSheet();
|
|
37552
|
+
event.preventDefault();
|
|
37553
|
+
}
|
|
37554
|
+
}
|
|
37555
|
+
//--------------------------------------------------------------------------
|
|
37556
|
+
//
|
|
37557
|
+
// Public Methods
|
|
37558
|
+
//
|
|
37559
|
+
//--------------------------------------------------------------------------
|
|
37560
|
+
/**
|
|
37561
|
+
* Sets focus on the component's "close" button (the first focusable item).
|
|
37562
|
+
*
|
|
37563
|
+
*/
|
|
37564
|
+
async setFocus() {
|
|
37565
|
+
await componentFocusable(this);
|
|
37566
|
+
focusFirstTabbable(this.el);
|
|
37567
|
+
}
|
|
37568
|
+
/**
|
|
37569
|
+
* Updates the element(s) that are used within the focus-trap of the component.
|
|
37570
|
+
*/
|
|
37571
|
+
async updateFocusTrapElements() {
|
|
37572
|
+
updateFocusTrapElements(this);
|
|
37573
|
+
}
|
|
37574
|
+
//--------------------------------------------------------------------------
|
|
37575
|
+
//
|
|
37576
|
+
// Private Methods
|
|
37577
|
+
//
|
|
37578
|
+
//--------------------------------------------------------------------------
|
|
37579
|
+
onBeforeOpen() {
|
|
37580
|
+
this.calciteSheetBeforeOpen.emit();
|
|
37581
|
+
}
|
|
37582
|
+
onOpen() {
|
|
37583
|
+
this.calciteSheetOpen.emit();
|
|
37584
|
+
activateFocusTrap(this);
|
|
37585
|
+
}
|
|
37586
|
+
onBeforeClose() {
|
|
37587
|
+
this.calciteSheetBeforeClose.emit();
|
|
37588
|
+
}
|
|
37589
|
+
onClose() {
|
|
37590
|
+
this.calciteSheetClose.emit();
|
|
37591
|
+
deactivateFocusTrap(this);
|
|
37592
|
+
}
|
|
37593
|
+
openSheet() {
|
|
37594
|
+
if (this.ignoreOpenChange) {
|
|
37595
|
+
return;
|
|
37596
|
+
}
|
|
37597
|
+
this.el.addEventListener("calciteSheetOpen", this.openEnd);
|
|
37598
|
+
this.open = true;
|
|
37599
|
+
this.opened = true;
|
|
37600
|
+
if (!this.slottedInShell) {
|
|
37601
|
+
this.initialOverflowCSS = document.documentElement.style.overflow;
|
|
37602
|
+
// use an inline style instead of a utility class to avoid global class declarations.
|
|
37603
|
+
document.documentElement.style.setProperty("overflow", "hidden");
|
|
37604
|
+
}
|
|
37605
|
+
this.ignoreOpenChange = false;
|
|
37606
|
+
}
|
|
37607
|
+
removeOverflowHiddenClass() {
|
|
37608
|
+
document.documentElement.style.setProperty("overflow", this.initialOverflowCSS);
|
|
37609
|
+
}
|
|
37610
|
+
handleMutationObserver() {
|
|
37611
|
+
this.updateFocusTrapElements();
|
|
37612
|
+
}
|
|
37613
|
+
get el() { return getElement(this); }
|
|
37614
|
+
static get watchers() { return {
|
|
37615
|
+
"focusTrapDisabled": ["handleFocusTrapDisabled"],
|
|
37616
|
+
"open": ["toggleSheet"]
|
|
37617
|
+
}; }
|
|
37618
|
+
static get style() { return sheetCss; }
|
|
37619
|
+
static get cmpMeta() { return {
|
|
37620
|
+
"$flags$": 9,
|
|
37621
|
+
"$tagName$": "calcite-sheet",
|
|
37622
|
+
"$members$": {
|
|
37623
|
+
"beforeClose": [16],
|
|
37624
|
+
"displayMode": [513, "display-mode"],
|
|
37625
|
+
"escapeDisabled": [516, "escape-disabled"],
|
|
37626
|
+
"heightScale": [513, "height-scale"],
|
|
37627
|
+
"focusTrapDisabled": [516, "focus-trap-disabled"],
|
|
37628
|
+
"label": [1],
|
|
37629
|
+
"open": [1540],
|
|
37630
|
+
"opened": [1540],
|
|
37631
|
+
"outsideCloseDisabled": [516, "outside-close-disabled"],
|
|
37632
|
+
"position": [513],
|
|
37633
|
+
"slottedInShell": [4, "slotted-in-shell"],
|
|
37634
|
+
"widthScale": [513, "width-scale"],
|
|
37635
|
+
"setFocus": [64],
|
|
37636
|
+
"updateFocusTrapElements": [64]
|
|
37637
|
+
},
|
|
37638
|
+
"$listeners$": [[8, "keydown", "handleEscape"]],
|
|
37639
|
+
"$lazyBundleId$": "-",
|
|
37640
|
+
"$attrsToReflect$": [["displayMode", "display-mode"], ["escapeDisabled", "escape-disabled"], ["heightScale", "height-scale"], ["focusTrapDisabled", "focus-trap-disabled"], ["open", "open"], ["opened", "opened"], ["outsideCloseDisabled", "outside-close-disabled"], ["position", "position"], ["widthScale", "width-scale"]]
|
|
37641
|
+
}; }
|
|
37642
|
+
}
|
|
37643
|
+
|
|
37319
37644
|
const CSS$f = {
|
|
37320
37645
|
main: "main",
|
|
37321
37646
|
content: "content",
|
|
@@ -37806,7 +38131,7 @@ class ShellPanel {
|
|
|
37806
38131
|
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"
|
|
37807
38132
|
? contentHeight ?? initialContentHeight
|
|
37808
38133
|
: contentWidth ?? initialContentWidth, class: CSS$d.separator, key: "separator", onKeyDown: this.separatorKeyDown, role: "separator", tabIndex: 0, "touch-action": "none",
|
|
37809
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38134
|
+
// 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)
|
|
37810
38135
|
ref: this.connectSeparator })) : null;
|
|
37811
38136
|
const getAnimationDir = () => {
|
|
37812
38137
|
if (layout === "horizontal") {
|
|
@@ -37827,7 +38152,7 @@ class ShellPanel {
|
|
|
37827
38152
|
[CSS_UTILITY.calciteAnimate]: displayMode === "overlay",
|
|
37828
38153
|
[getAnimationDir()]: displayMode === "overlay",
|
|
37829
38154
|
}, hidden: collapsed, key: "content", style: style,
|
|
37830
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38155
|
+
// 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)
|
|
37831
38156
|
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$d.contentBody }, hAsync("slot", null)), separatorNode));
|
|
37832
38157
|
const actionBarNode = (hAsync("slot", { key: "action-bar", name: SLOTS$6.actionBar, onSlotchange: this.handleActionBarSlotChange }));
|
|
37833
38158
|
const mainNodes = [actionBarNode, contentNode];
|
|
@@ -38141,21 +38466,21 @@ class Slider {
|
|
|
38141
38466
|
"thumb--value": true,
|
|
38142
38467
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38143
38468
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38144
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38469
|
+
// 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)
|
|
38145
38470
|
ref: (el) => (this.maxHandle = el) }, hAsync("div", { class: "handle" })));
|
|
38146
38471
|
const labeledHandle = (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: {
|
|
38147
38472
|
thumb: true,
|
|
38148
38473
|
"thumb--value": true,
|
|
38149
38474
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38150
38475
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38151
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38476
|
+
// 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)
|
|
38152
38477
|
ref: (el) => (this.maxHandle = el) }, hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue), hAsync("div", { class: "handle" })));
|
|
38153
38478
|
const histogramLabeledHandle = (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: {
|
|
38154
38479
|
thumb: true,
|
|
38155
38480
|
"thumb--value": true,
|
|
38156
38481
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38157
38482
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38158
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38483
|
+
// 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)
|
|
38159
38484
|
ref: (el) => (this.maxHandle = el) }, hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue)));
|
|
38160
38485
|
const preciseHandle = (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: {
|
|
38161
38486
|
thumb: true,
|
|
@@ -38163,7 +38488,7 @@ class Slider {
|
|
|
38163
38488
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38164
38489
|
"thumb--precise": true,
|
|
38165
38490
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38166
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38491
|
+
// 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)
|
|
38167
38492
|
ref: (el) => (this.maxHandle = el) }, hAsync("div", { class: "handle" }), hAsync("div", { class: "handle-extension" })));
|
|
38168
38493
|
const histogramPreciseHandle = (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: {
|
|
38169
38494
|
thumb: true,
|
|
@@ -38171,7 +38496,7 @@ class Slider {
|
|
|
38171
38496
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38172
38497
|
"thumb--precise": true,
|
|
38173
38498
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38174
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38499
|
+
// 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)
|
|
38175
38500
|
ref: (el) => (this.maxHandle = el) }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" })));
|
|
38176
38501
|
const labeledPreciseHandle = (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: {
|
|
38177
38502
|
thumb: true,
|
|
@@ -38179,7 +38504,7 @@ class Slider {
|
|
|
38179
38504
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38180
38505
|
"thumb--precise": true,
|
|
38181
38506
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38182
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38507
|
+
// 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)
|
|
38183
38508
|
ref: (el) => (this.maxHandle = el) }, hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue), hAsync("div", { class: "handle" }), hAsync("div", { class: "handle-extension" })));
|
|
38184
38509
|
const histogramLabeledPreciseHandle = (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: {
|
|
38185
38510
|
thumb: true,
|
|
@@ -38187,28 +38512,28 @@ class Slider {
|
|
|
38187
38512
|
"thumb--active": this.lastDragProp !== "minMaxValue" && this.dragProp === maxProp,
|
|
38188
38513
|
"thumb--precise": true,
|
|
38189
38514
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = maxProp), onPointerDown: (event) => this.pointerDownDragStart(event, maxProp), role: "slider", style: { right: rightThumbOffset }, tabIndex: 0,
|
|
38190
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38515
|
+
// 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)
|
|
38191
38516
|
ref: (el) => (this.maxHandle = el) }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelValueClasses }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} static` }, displayedValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelValueClasses} transformed` }, displayedValue)));
|
|
38192
38517
|
const minHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
38193
38518
|
thumb: true,
|
|
38194
38519
|
"thumb--minValue": true,
|
|
38195
38520
|
"thumb--active": this.dragProp === "minValue",
|
|
38196
38521
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0,
|
|
38197
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38522
|
+
// 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)
|
|
38198
38523
|
ref: (el) => (this.minHandle = el) }, hAsync("div", { class: "handle" })));
|
|
38199
38524
|
const minLabeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
38200
38525
|
thumb: true,
|
|
38201
38526
|
"thumb--minValue": true,
|
|
38202
38527
|
"thumb--active": this.dragProp === "minValue",
|
|
38203
38528
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0,
|
|
38204
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38529
|
+
// 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)
|
|
38205
38530
|
ref: (el) => (this.minHandle = el) }, hAsync("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue), hAsync("div", { class: "handle" })));
|
|
38206
38531
|
const minHistogramLabeledHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
38207
38532
|
thumb: true,
|
|
38208
38533
|
"thumb--minValue": true,
|
|
38209
38534
|
"thumb--active": this.dragProp === "minValue",
|
|
38210
38535
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0,
|
|
38211
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38536
|
+
// 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)
|
|
38212
38537
|
ref: (el) => (this.minHandle = el) }, hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue)));
|
|
38213
38538
|
const minPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
38214
38539
|
thumb: true,
|
|
@@ -38216,7 +38541,7 @@ class Slider {
|
|
|
38216
38541
|
"thumb--active": this.dragProp === "minValue",
|
|
38217
38542
|
"thumb--precise": true,
|
|
38218
38543
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0,
|
|
38219
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38544
|
+
// 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)
|
|
38220
38545
|
ref: (el) => (this.minHandle = el) }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" })));
|
|
38221
38546
|
const minLabeledPreciseHandle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": this.minValue, class: {
|
|
38222
38547
|
thumb: true,
|
|
@@ -38224,14 +38549,14 @@ class Slider {
|
|
|
38224
38549
|
"thumb--active": this.dragProp === "minValue",
|
|
38225
38550
|
"thumb--precise": true,
|
|
38226
38551
|
}, onBlur: () => (this.activeProp = null), onFocus: () => (this.activeProp = "minValue"), onPointerDown: (event) => this.pointerDownDragStart(event, "minValue"), role: "slider", style: { left: leftThumbOffset }, tabIndex: 0,
|
|
38227
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38552
|
+
// 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)
|
|
38228
38553
|
ref: (el) => (this.minHandle = el) }, hAsync("div", { class: "handle-extension" }), hAsync("div", { class: "handle" }), hAsync("span", { "aria-hidden": "true", class: handleLabelMinValueClasses }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} static` }, displayedMinValue), hAsync("span", { "aria-hidden": "true", class: `${handleLabelMinValueClasses} transformed` }, displayedMinValue)));
|
|
38229
38554
|
return (hAsync(Host, { id: id, onTouchStart: this.handleTouchStart }, hAsync("div", { "aria-label": getLabelText(this), class: {
|
|
38230
38555
|
["container"]: true,
|
|
38231
38556
|
["container--range"]: valueIsRange,
|
|
38232
38557
|
[`scale--${this.scale}`]: true,
|
|
38233
38558
|
} }, this.renderGraph(), hAsync("div", { class: "track",
|
|
38234
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
38559
|
+
// 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)
|
|
38235
38560
|
ref: this.storeTrackRef }, hAsync("div", { class: "track__range", onPointerDown: (event) => this.pointerDownDragStart(event, "minMaxValue"), style: {
|
|
38236
38561
|
left: `${mirror ? 100 - maxInterval : minInterval}%`,
|
|
38237
38562
|
right: `${mirror ? minInterval : 100 - maxInterval}%`,
|
|
@@ -38993,7 +39318,7 @@ const CSS$a = {
|
|
|
38993
39318
|
widthFull: "width-full",
|
|
38994
39319
|
};
|
|
38995
39320
|
|
|
38996
|
-
const splitButtonCss = "/*!@:host([disabled])*/[disabled].sc-calcite-split-button-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-split-button-h *.sc-calcite-split-button,.sc-calcite-split-button-h[disabled] .sc-calcite-split-button-s>*{pointer-events:none}/*!@:host*/.sc-calcite-split-button-h{display:inline-block}/*!@:host .split-button__container*/.sc-calcite-split-button-h .split-button__container.sc-calcite-split-button{display:flex;align-items:stretch}/*!@:host .split-button__container > calcite-dropdown > calcite-button*/.sc-calcite-split-button-h .split-button__container.sc-calcite-split-button>calcite-dropdown.sc-calcite-split-button>calcite-button.sc-calcite-split-button{block-size:100%;vertical-align:top}/*!@:host:host([kind=brand])*/.sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-brand);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host:host([kind=danger])*/.sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-danger);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host:host([kind=neutral])*/.sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-foreground-3);--calcite-split-button-divider:var(--calcite-ui-text-1)}/*!@:host:host([kind=inverse])*/.sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-inverse);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host([appearance=transparent]):host([kind=brand])*/[appearance=transparent].sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-brand)}/*!@:host([appearance=transparent]):host([kind=danger])*/[appearance=transparent].sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-danger)}/*!@:host([appearance=transparent]):host([kind=neutral])*/[appearance=transparent].sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent]):host([kind=inverse])*/[appearance=transparent].sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-foreground-1);--calcite-split-button-background:transparent}/*!@:host([appearance=outline])
|
|
39321
|
+
const splitButtonCss = "/*!@:host([disabled])*/[disabled].sc-calcite-split-button-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-split-button-h *.sc-calcite-split-button,.sc-calcite-split-button-h[disabled] .sc-calcite-split-button-s>*{pointer-events:none}/*!@:host*/.sc-calcite-split-button-h{display:inline-block}/*!@:host .split-button__container*/.sc-calcite-split-button-h .split-button__container.sc-calcite-split-button{display:flex;align-items:stretch}/*!@:host .split-button__container > calcite-dropdown > calcite-button*/.sc-calcite-split-button-h .split-button__container.sc-calcite-split-button>calcite-dropdown.sc-calcite-split-button>calcite-button.sc-calcite-split-button{block-size:100%;vertical-align:top}/*!@:host:host([kind=brand])*/.sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-brand);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host:host([kind=danger])*/.sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-danger);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host:host([kind=neutral])*/.sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-foreground-3);--calcite-split-button-divider:var(--calcite-ui-text-1)}/*!@:host:host([kind=inverse])*/.sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-inverse);--calcite-split-button-divider:var(--calcite-ui-foreground-1)}/*!@:host([appearance=transparent]):host([kind=brand])*/[appearance=transparent].sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-brand);--calcite-split-button-background:transparent}/*!@:host([appearance=transparent]):host([kind=danger])*/[appearance=transparent].sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-danger);--calcite-split-button-background:transparent}/*!@:host([appearance=transparent]):host([kind=neutral])*/[appearance=transparent].sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-text-1);--calcite-split-button-background:transparent}/*!@:host([appearance=transparent]):host([kind=inverse])*/[appearance=transparent].sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-foreground-1);--calcite-split-button-background:transparent}/*!@:host([appearance=outline])*/[appearance=outline].sc-calcite-split-button-h{--calcite-split-button-background:transparent}/*!@:host([appearance=outline-fill])*/[appearance=outline-fill].sc-calcite-split-button-h{--calcite-split-button-background:var(--calcite-ui-foreground-1)}/*!@:host([appearance=outline]):host([kind=brand]),\n:host([appearance=outline-fill]):host([kind=brand])*/[appearance=outline].sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h,[appearance=outline-fill].sc-calcite-split-button-h([kind=brand]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-brand)}/*!@:host([appearance=outline]):host([kind=danger]),\n:host([appearance=outline-fill]):host([kind=danger])*/[appearance=outline].sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h,[appearance=outline-fill].sc-calcite-split-button-h([kind=danger]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-danger)}/*!@:host([appearance=outline]):host([kind=neutral]),\n:host([appearance=outline-fill]):host([kind=neutral])*/[appearance=outline].sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h,[appearance=outline-fill].sc-calcite-split-button-h([kind=neutral]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-border-1);--calcite-split-button-background:var(--calcite-ui-border-1)}/*!@:host([appearance=outline]):host([kind=inverse]),\n:host([appearance=outline-fill]):host([kind=inverse])*/[appearance=outline].sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h,[appearance=outline-fill].sc-calcite-split-button-h([kind=inverse]).sc-calcite-split-button-h{--calcite-split-button-divider:var(--calcite-ui-inverse)}/*!@.width-auto*/.width-auto.sc-calcite-split-button{inline-size:auto}/*!@.width-half*/.width-half.sc-calcite-split-button{inline-size:50%}/*!@.width-full*/.width-full.sc-calcite-split-button{inline-size:100%}/*!@.split-button__divider-container*/.split-button__divider-container.sc-calcite-split-button{display:flex;inline-size:1px;align-items:stretch;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;background-color:var(--calcite-split-button-background)}/*!@.split-button__divider*/.split-button__divider.sc-calcite-split-button{margin-block:0.25rem;display:inline-block;inline-size:1px;background-color:var(--calcite-split-button-divider)}/*!@:host([appearance=outline-fill]) .split-button__divider-container,\n:host([appearance=outline]) .split-button__divider-container*/[appearance=outline-fill].sc-calcite-split-button-h .split-button__divider-container.sc-calcite-split-button,[appearance=outline].sc-calcite-split-button-h .split-button__divider-container.sc-calcite-split-button{border-block:1px solid var(--calcite-split-button-divider)}/*!@:host([appearance=outline-fill]):hover .split-button__divider-container,\n:host([appearance=outline]):hover .split-button__divider-container*/[appearance=outline-fill].sc-calcite-split-button-h:hover .split-button__divider-container.sc-calcite-split-button,[appearance=outline].sc-calcite-split-button-h:hover .split-button__divider-container.sc-calcite-split-button{background-color:var(--calcite-split-button-divider)}/*!@:host([appearance=outline-fill]:hover) .split-button__divider-container,\n:host([appearance=outline]:hover) .split-button__divider-container*/[appearance=outline-fill].sc-calcite-split-button-h:hover .split-button__divider-container.sc-calcite-split-button,[appearance=outline].sc-calcite-split-button-h:hover .split-button__divider-container.sc-calcite-split-button{background-color:var(--calcite-split-button-divider)}/*!@:host([appearance=outline-fill]:focus-within):host([kind=brand]),\n:host([appearance=outline]:focus-within):host([kind=brand])*/[appearance=outline-fill].sc-calcite-split-button-h:focus-within.sc-calcite-split-button-h([kind=brand]),[appearance=outline].sc-calcite-split-button-h:focus-within.sc-calcite-split-button-h([kind=brand]){--calcite-split-button-divider:var(--calcite-ui-brand-press)}/*!@:host([appearance=outline-fill]:focus-within):host([kind=danger]),\n:host([appearance=outline]:focus-within):host([kind=danger])*/[appearance=outline-fill].sc-calcite-split-button-h:focus-within.sc-calcite-split-button-h([kind=danger]),[appearance=outline].sc-calcite-split-button-h:focus-within.sc-calcite-split-button-h([kind=danger]){--calcite-split-button-divider:var(--calcite-ui-danger-press)}/*!@:host([appearance=outline-fill]:focus-within) .split-button__divider-container,\n:host([appearance=outline]:focus-within) .split-button__divider-container*/[appearance=outline-fill].sc-calcite-split-button-h:focus-within .split-button__divider-container.sc-calcite-split-button,[appearance=outline].sc-calcite-split-button-h:focus-within .split-button__divider-container.sc-calcite-split-button{background-color:var(--calcite-split-button-divider)}/*!@:host([disabled]) .split-button__divider-container*/[disabled].sc-calcite-split-button-h .split-button__divider-container.sc-calcite-split-button{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) calcite-dropdown > calcite-button*/[disabled].sc-calcite-split-button-h calcite-dropdown.sc-calcite-split-button>calcite-button.sc-calcite-split-button{pointer-events:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-split-button-h[disabled] .sc-calcite-split-button-s>[calcite-hydrated][disabled],[disabled].sc-calcite-split-button-h [calcite-hydrated][disabled].sc-calcite-split-button{opacity:1}/*!@:host([hidden])*/[hidden].sc-calcite-split-button-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-split-button{display:none}";
|
|
38997
39322
|
|
|
38998
39323
|
/**
|
|
38999
39324
|
* @slot - A slot for adding `calcite-dropdown` content.
|
|
@@ -39156,25 +39481,25 @@ class Stack {
|
|
|
39156
39481
|
// --------------------------------------------------------------------------
|
|
39157
39482
|
renderActionsStart() {
|
|
39158
39483
|
const { hasActionsStart } = this;
|
|
39159
|
-
return (hAsync("div", { class: CSS$
|
|
39484
|
+
return (hAsync("div", { class: CSS$v.actionsStart, hidden: !hasActionsStart, key: "actions-start-container" }, hAsync("slot", { name: SLOTS$f.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
39160
39485
|
}
|
|
39161
39486
|
renderActionsEnd() {
|
|
39162
39487
|
const { hasActionsEnd } = this;
|
|
39163
|
-
return (hAsync("div", { class: CSS$
|
|
39488
|
+
return (hAsync("div", { class: CSS$v.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container" }, hAsync("slot", { name: SLOTS$f.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
|
|
39164
39489
|
}
|
|
39165
39490
|
renderContentStart() {
|
|
39166
39491
|
const { hasContentStart } = this;
|
|
39167
|
-
return (hAsync("div", { class: CSS$
|
|
39492
|
+
return (hAsync("div", { class: CSS$v.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$f.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
39168
39493
|
}
|
|
39169
39494
|
renderDefaultContent() {
|
|
39170
|
-
return (hAsync("div", { class: CSS$
|
|
39495
|
+
return (hAsync("div", { class: CSS$v.content }, hAsync("slot", null)));
|
|
39171
39496
|
}
|
|
39172
39497
|
renderContentEnd() {
|
|
39173
39498
|
const { hasContentEnd } = this;
|
|
39174
|
-
return (hAsync("div", { class: CSS$
|
|
39499
|
+
return (hAsync("div", { class: CSS$v.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$f.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
39175
39500
|
}
|
|
39176
39501
|
render() {
|
|
39177
|
-
return (hAsync(Host, null, hAsync("div", { class: CSS$
|
|
39502
|
+
return (hAsync(Host, null, hAsync("div", { class: CSS$v.container }, this.renderActionsStart(), this.renderContentStart(), this.renderDefaultContent(), this.renderContentEnd(), this.renderActionsEnd())));
|
|
39178
39503
|
}
|
|
39179
39504
|
static get style() { return stackCss; }
|
|
39180
39505
|
static get cmpMeta() { return {
|
|
@@ -39527,7 +39852,7 @@ class StepperItem {
|
|
|
39527
39852
|
return (hAsync(Host, { "aria-expanded": toAriaBoolean(this.selected), onClick: this.handleItemClick, onKeyDown: this.keyDownHandler }, hAsync("div", { class: "container" }, hAsync("div", { class: "stepper-item-header", tabIndex:
|
|
39528
39853
|
/* additional tab index logic needed because of display: contents */
|
|
39529
39854
|
this.layout === "horizontal" && !this.disabled ? 0 : null,
|
|
39530
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
39855
|
+
// 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)
|
|
39531
39856
|
ref: (el) => (this.headerEl = el) }, this.icon ? this.renderIcon() : null, this.numbered ? hAsync("div", { class: "stepper-item-number" }, this.renderNumbers(), ".") : null, hAsync("div", { class: "stepper-item-header-text" }, hAsync("span", { class: "stepper-item-heading" }, this.heading), hAsync("span", { class: "stepper-item-description" }, this.description))), hAsync("div", { class: "stepper-item-content" }, hAsync("slot", null)))));
|
|
39532
39857
|
}
|
|
39533
39858
|
//--------------------------------------------------------------------------
|
|
@@ -39701,7 +40026,7 @@ class Switch {
|
|
|
39701
40026
|
// --------------------------------------------------------------------------
|
|
39702
40027
|
render() {
|
|
39703
40028
|
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: "container", role: "switch", tabIndex: 0,
|
|
39704
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40029
|
+
// 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)
|
|
39705
40030
|
ref: this.setSwitchEl }, hAsync("div", { class: "track" }, hAsync("div", { class: "handle" })), hAsync(HiddenFormInputSlot, { component: this }))));
|
|
39706
40031
|
}
|
|
39707
40032
|
get el() { return getElement(this); }
|
|
@@ -39935,11 +40260,11 @@ class TabNav {
|
|
|
39935
40260
|
const offset = `${this.indicatorOffset}px`;
|
|
39936
40261
|
const indicatorStyle = dir !== "rtl" ? { width, left: offset } : { width, right: offset };
|
|
39937
40262
|
return (hAsync(Host, { role: "tablist" }, hAsync("div", { class: "tab-nav", onScroll: this.handleContainerScroll,
|
|
39938
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40263
|
+
// 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)
|
|
39939
40264
|
ref: (el) => (this.tabNavEl = el) }, hAsync("slot", null), hAsync("div", { class: "tab-nav-active-indicator-container",
|
|
39940
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40265
|
+
// 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)
|
|
39941
40266
|
ref: (el) => (this.activeIndicatorContainerEl = el) }, hAsync("div", { class: "tab-nav-active-indicator", style: indicatorStyle,
|
|
39942
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40267
|
+
// 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)
|
|
39943
40268
|
ref: (el) => (this.activeIndicatorEl = el) })))));
|
|
39944
40269
|
}
|
|
39945
40270
|
//--------------------------------------------------------------------------
|
|
@@ -40198,13 +40523,13 @@ class TabTitle {
|
|
|
40198
40523
|
container: true,
|
|
40199
40524
|
[CSS$9.iconPresent]: !!this.iconStart || !!this.iconEnd,
|
|
40200
40525
|
}, hidden: closed,
|
|
40201
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40526
|
+
// 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)
|
|
40202
40527
|
ref: (el) => this.resizeObserver?.observe(el) }, hAsync("div", { class: { [CSS$9.content]: true, [CSS$9.contentHasText]: this.hasText } }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null), this.renderCloseButton())));
|
|
40203
40528
|
}
|
|
40204
40529
|
renderCloseButton() {
|
|
40205
40530
|
const { closable, messages } = this;
|
|
40206
40531
|
return closable ? (hAsync("button", { "aria-label": messages.close, class: CSS$9.closeButton, disabled: false, key: CSS$9.closeButton, onClick: this.closeClickHandler, title: messages.close, type: "button",
|
|
40207
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40532
|
+
// 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)
|
|
40208
40533
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$4.close, scale: this.scale === "l" ? "m" : "s" }))) : null;
|
|
40209
40534
|
}
|
|
40210
40535
|
async componentDidLoad() {
|
|
@@ -40648,7 +40973,7 @@ class TextArea {
|
|
|
40648
40973
|
[CSS$8.blockSizeFull]: !hasFooter,
|
|
40649
40974
|
[CSS$8.borderColor]: !hasFooter,
|
|
40650
40975
|
}, cols: this.columns, disabled: this.disabled, name: this.name, onChange: this.handleChange, onInput: this.handleInput, placeholder: this.placeholder, readonly: this.readOnly, required: this.required, rows: this.rows, value: this.value, wrap: this.wrap,
|
|
40651
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
40976
|
+
// 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)
|
|
40652
40977
|
ref: this.setTextAreaEl }), hAsync("span", { class: { [CSS$8.content]: true } }, hAsync("slot", { onSlotchange: this.contentSlotChangeHandler })), hAsync("footer", { class: {
|
|
40653
40978
|
[CSS$8.footer]: true,
|
|
40654
40979
|
[CSS$8.readOnly]: this.readOnly,
|
|
@@ -41714,7 +42039,7 @@ class TimePicker {
|
|
|
41714
42039
|
[CSS$6.input]: true,
|
|
41715
42040
|
[CSS$6.hour]: true,
|
|
41716
42041
|
}, onFocus: this.focusHandler, onKeyDown: this.hourKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
41717
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42042
|
+
// 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)
|
|
41718
42043
|
ref: this.setHourEl }, this.localizedHour || "--"), hAsync("span", { "aria-label": this.messages.hourDown, class: {
|
|
41719
42044
|
[CSS$6.button]: true,
|
|
41720
42045
|
[CSS$6.buttonHourDown]: true,
|
|
@@ -41726,7 +42051,7 @@ class TimePicker {
|
|
|
41726
42051
|
[CSS$6.input]: true,
|
|
41727
42052
|
[CSS$6.minute]: true,
|
|
41728
42053
|
}, onFocus: this.focusHandler, onKeyDown: this.minuteKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
41729
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42054
|
+
// 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)
|
|
41730
42055
|
ref: this.setMinuteEl }, this.localizedMinute || "--"), hAsync("span", { "aria-label": this.messages.minuteDown, class: {
|
|
41731
42056
|
[CSS$6.button]: true,
|
|
41732
42057
|
[CSS$6.buttonMinuteDown]: true,
|
|
@@ -41737,7 +42062,7 @@ class TimePicker {
|
|
|
41737
42062
|
[CSS$6.input]: true,
|
|
41738
42063
|
[CSS$6.second]: true,
|
|
41739
42064
|
}, onFocus: this.focusHandler, onKeyDown: this.secondKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
41740
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42065
|
+
// 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)
|
|
41741
42066
|
ref: this.setSecondEl }, this.localizedSecond || "--"), hAsync("span", { "aria-label": this.messages.secondDown, class: {
|
|
41742
42067
|
[CSS$6.button]: true,
|
|
41743
42068
|
[CSS$6.buttonSecondDown]: true,
|
|
@@ -41752,7 +42077,7 @@ class TimePicker {
|
|
|
41752
42077
|
[CSS$6.input]: true,
|
|
41753
42078
|
[CSS$6.meridiem]: true,
|
|
41754
42079
|
}, onFocus: this.focusHandler, onKeyDown: this.meridiemKeyDownHandler, role: "spinbutton", tabIndex: 0,
|
|
41755
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42080
|
+
// 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)
|
|
41756
42081
|
ref: this.setMeridiemEl }, this.localizedMeridiem || "--"), hAsync("span", { "aria-label": this.messages.meridiemDown, class: {
|
|
41757
42082
|
[CSS$6.button]: true,
|
|
41758
42083
|
[CSS$6.buttonMeridiemDown]: true,
|
|
@@ -42134,7 +42459,7 @@ class TipManager {
|
|
|
42134
42459
|
return null;
|
|
42135
42460
|
}
|
|
42136
42461
|
return (hAsync("section", { "aria-hidden": toAriaBoolean(closed), class: CSS$4.container, hidden: closed, onKeyDown: this.tipManagerKeyDownHandler, tabIndex: 0,
|
|
42137
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42462
|
+
// 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)
|
|
42138
42463
|
ref: this.storeContainerRef }, hAsync("header", { class: CSS$4.header }, hAsync(Heading, { class: CSS$4.heading, level: headingLevel }, groupTitle), hAsync("calcite-action", { class: CSS$4.close, onClick: this.hideTipManager, scale: "m", text: closeLabel }, hAsync("calcite-icon", { icon: ICONS$2.close, scale: "m" }))), hAsync("div", { class: {
|
|
42139
42464
|
[CSS$4.tipContainer]: true,
|
|
42140
42465
|
[CSS$4.tipContainerAdvancing]: !closed && direction === "advancing",
|
|
@@ -42565,9 +42890,9 @@ class Tooltip {
|
|
|
42565
42890
|
[FloatingCSS.animation]: true,
|
|
42566
42891
|
[FloatingCSS.animationActive]: displayed,
|
|
42567
42892
|
},
|
|
42568
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42893
|
+
// 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)
|
|
42569
42894
|
ref: this.setTransitionEl }, hAsync(FloatingArrow, { floatingLayout: floatingLayout,
|
|
42570
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
42895
|
+
// 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)
|
|
42571
42896
|
ref: (arrowEl) => (this.arrowEl = arrowEl) }), hAsync("div", { class: CSS$3.container }, hAsync("slot", null)))));
|
|
42572
42897
|
}
|
|
42573
42898
|
get el() { return getElement(this); }
|
|
@@ -42819,7 +43144,8 @@ class Tree {
|
|
|
42819
43144
|
}
|
|
42820
43145
|
updateAncestorTree(event) {
|
|
42821
43146
|
const item = event.target;
|
|
42822
|
-
|
|
43147
|
+
const updateItem = event.detail.updateItem;
|
|
43148
|
+
if (item.disabled || (item.indeterminate && !updateItem)) {
|
|
42823
43149
|
return;
|
|
42824
43150
|
}
|
|
42825
43151
|
const ancestors = [];
|
|
@@ -42831,9 +43157,13 @@ class Tree {
|
|
|
42831
43157
|
const childItems = Array.from(item.querySelectorAll("calcite-tree-item:not([disabled])"));
|
|
42832
43158
|
const childItemsWithNoChildren = childItems.filter((child) => !child.hasChildren);
|
|
42833
43159
|
const childItemsWithChildren = childItems.filter((child) => child.hasChildren);
|
|
42834
|
-
|
|
42835
|
-
|
|
42836
|
-
: !item.selected;
|
|
43160
|
+
let futureSelected;
|
|
43161
|
+
if (updateItem) {
|
|
43162
|
+
futureSelected = item.hasChildren ? !(item.selected || item.indeterminate) : !item.selected;
|
|
43163
|
+
}
|
|
43164
|
+
else {
|
|
43165
|
+
futureSelected = item.selected;
|
|
43166
|
+
}
|
|
42837
43167
|
childItemsWithNoChildren.forEach((el) => {
|
|
42838
43168
|
el.selected = futureSelected;
|
|
42839
43169
|
el.indeterminate = false;
|
|
@@ -42848,12 +43178,14 @@ class Tree {
|
|
|
42848
43178
|
const directChildItems = Array.from(el.querySelectorAll(":scope > calcite-tree > calcite-tree-item"));
|
|
42849
43179
|
updateItemState(directChildItems, el);
|
|
42850
43180
|
});
|
|
42851
|
-
if (
|
|
42852
|
-
|
|
42853
|
-
|
|
42854
|
-
|
|
42855
|
-
|
|
42856
|
-
|
|
43181
|
+
if (updateItem) {
|
|
43182
|
+
if (item.hasChildren) {
|
|
43183
|
+
updateItemState(childItems, item);
|
|
43184
|
+
}
|
|
43185
|
+
else {
|
|
43186
|
+
item.selected = futureSelected;
|
|
43187
|
+
item.indeterminate = false;
|
|
43188
|
+
}
|
|
42857
43189
|
}
|
|
42858
43190
|
ancestors.forEach((ancestor) => {
|
|
42859
43191
|
const descendants = nodeListToArray(ancestor.querySelectorAll("calcite-tree-item"));
|
|
@@ -42868,7 +43200,9 @@ class Tree {
|
|
|
42868
43200
|
ancestor.selected = !indeterminate;
|
|
42869
43201
|
});
|
|
42870
43202
|
this.selectedItems = nodeListToArray(this.el.querySelectorAll("calcite-tree-item")).filter((i) => i.selected);
|
|
42871
|
-
|
|
43203
|
+
if (updateItem) {
|
|
43204
|
+
this.calciteTreeSelect.emit();
|
|
43205
|
+
}
|
|
42872
43206
|
}
|
|
42873
43207
|
// --------------------------------------------------------------------------
|
|
42874
43208
|
//
|
|
@@ -42920,7 +43254,7 @@ const ICONS$1 = {
|
|
|
42920
43254
|
blank: "blank",
|
|
42921
43255
|
};
|
|
42922
43256
|
|
|
42923
|
-
const treeItemCss = "/*!@:host([disabled])*/[disabled].sc-calcite-tree-item-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-tree-item-h *.sc-calcite-tree-item,.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-tree-item-h{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-ui-text-3)}/*!@.node-actions-container*/.node-actions-container.sc-calcite-tree-item{display:flex;justify-content:space-between}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-tree-item-h{visibility:hidden !important;pointer-events:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-tree-item-h [calcite-hydrated][disabled].sc-calcite-tree-item{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .node-actions-container*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:1.5rem}/*!@:host([scale=s]) .node-actions-container .node-container .checkbox,\n:host([scale=s]) .node-actions-container .node-container .chevron,\n:host([scale=s]) .node-actions-container .node-container .checkmark,\n:host([scale=s]) .node-actions-container .node-container .bullet-point*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.25rem}/*!@:host([scale=s]) .node-actions-container .node-container .icon-start*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .node-actions-container*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2rem}/*!@:host([scale=m]) .node-actions-container .node-container .checkbox,\n:host([scale=m]) .node-actions-container .node-container .chevron,\n:host([scale=m]) .node-actions-container .node-container .checkmark,\n:host([scale=m]) .node-actions-container .node-container .bullet-point*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.5rem}/*!@:host([scale=m]) .node-actions-container .node-container .icon-start*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tree-item-h{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .node-actions-container*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .checkbox,\n:host([scale=l]) .node-actions-container .node-container .chevron,\n:host([scale=l]) .node-actions-container .node-container .checkmark,\n:host([scale=l]) .node-actions-container .node-container .bullet-point*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .icon-start*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([lines]) .children-container:after*/[lines].sc-calcite-tree-item-h .children-container.sc-calcite-tree-item:after{position:absolute;inset-block-start:0px;z-index:var(--calcite-app-z-index);inline-size:1px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:96%;content:\"\";background-color:var(--calcite-ui-border-2)}/*!@:host(:not([lines])) .node-container:after*/.sc-calcite-tree-item-h:not([lines]) .node-container.sc-calcite-tree-item:after{display:none}/*!@::slotted(*)*/.sc-calcite-tree-item-s>*{min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}/*!@::slotted(*):hover*/.sc-calcite-tree-item-s>*:hover{text-decoration:none !important}/*!@::slotted(a)*/.sc-calcite-tree-item-s>a{inline-size:100%;text-decoration-line:none}/*!@:host*/.sc-calcite-tree-item-h{outline-color:transparent}/*!@:host:focus, :host:active*/.sc-calcite-tree-item-h:focus,.sc-calcite-tree-item-h:active{outline:2px solid transparent;outline-offset:2px;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(:focus:not([disabled]))*/.sc-calcite-tree-item-h:focus:not([disabled]){outline:2px solid transparent;outline-offset:2px;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 )}/*!@.actions-end*/.actions-end.sc-calcite-tree-item{display:flex;flex-direction:row;align-items:center;align-self:stretch}/*!@.checkbox*/.checkbox.sc-calcite-tree-item{line-height:0}/*!@.checkbox-label*/.checkbox-label.sc-calcite-tree-item{pointer-events:none;display:flex;align-items:center}/*!@.checkbox:focus*/.checkbox.sc-calcite-tree-item:focus{outline:2px solid transparent;outline-offset:2px}/*!@.children-container*/.children-container.sc-calcite-tree-item{position:relative;block-size:0px;transform-origin:top;overflow:hidden;opacity:0;margin-inline-start:1.25rem;transform:scaleY(0);transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@.item--expanded > .children-container*/.item--expanded.sc-calcite-tree-item>.children-container.sc-calcite-tree-item{overflow:visible;opacity:1;transform:none;block-size:auto}/*!@.node-container*/.node-container.sc-calcite-tree-item{position:relative;display:flex;min-inline-size:0px;align-items:center}/*!@.node-container .checkmark,\n.node-container .bullet-point*/.node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-1)}/*!@.node-container:hover .checkmark,\n.node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host(:focus:not([disabled])) .node-container .checkmark,\n:host(:focus:not([disabled])) .node-container .bullet-point*/.node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:1}/*!@:host([selected]) .node-container,\n:host([selected]) .node-container:hover*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([selected]) .node-container .bullet-point,\n:host([selected]) .node-container .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item{opacity:1;color:var(--calcite-ui-brand)}/*!@:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container.sc-calcite-tree-item{padding-inline-start:0.5rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container.sc-calcite-tree-item{padding-inline-start:1rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.25rem}/*!@:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.75rem}/*!@:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox*/[has-children].sc-calcite-tree-item-h .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{margin-inline-start:0}/*!@:host([has-children]) .node-container .bullet-point,\n:host([has-children]) .node-container .checkmark*/[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item{display:none}/*!@:host([has-children][expanded]:not([selected]):not([selection-mode=none])) .node-container ::slotted(*)*/.sc-calcite-tree-item-h[has-children][expanded]:not([selected]):not([selection-mode=none]) .node-container .sc-calcite-tree-item-s>*{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([has-children][selected]) .node-container[data-selection-mode=children], :host([has-children][selected]) .node-container[data-selection-mode=multichildren]*/[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=children].sc-calcite-tree-item,[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=multichildren].sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@.chevron*/.chevron.sc-calcite-tree-item{position:relative;align-self:center;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;flex:0 0 auto;transform:rotate(0deg)}/*!@.calcite--rtl .chevron*/.calcite--rtl.sc-calcite-tree-item .chevron.sc-calcite-tree-item{transform:rotate(180deg)}/*!@.item--expanded .node-container > .chevron*/.item--expanded.sc-calcite-tree-item .node-container.sc-calcite-tree-item>.chevron.sc-calcite-tree-item{transform:rotate(90deg)}/*!@:host([selected]) .checkmark,\n:host([selected]) .bullet-point*/[selected].sc-calcite-tree-item-h .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .bullet-point.sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@:host([hidden])*/[hidden].sc-calcite-tree-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-tree-item{display:none}";
|
|
43257
|
+
const treeItemCss = "/*!@:host([disabled])*/[disabled].sc-calcite-tree-item-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-tree-item-h *.sc-calcite-tree-item,.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-tree-item-h{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-ui-text-3)}/*!@.node-actions-container*/.node-actions-container.sc-calcite-tree-item{display:flex}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-tree-item-h{visibility:hidden !important;pointer-events:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-tree-item-h [calcite-hydrated][disabled].sc-calcite-tree-item{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .node-actions-container*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:1.5rem}/*!@:host([scale=s]) .node-actions-container .node-container .checkbox,\n:host([scale=s]) .node-actions-container .node-container .chevron,\n:host([scale=s]) .node-actions-container .node-container .checkmark,\n:host([scale=s]) .node-actions-container .node-container .bullet-point*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.25rem}/*!@:host([scale=s]) .node-actions-container .node-container .icon-start*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .node-actions-container*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2rem}/*!@:host([scale=m]) .node-actions-container .node-container .checkbox,\n:host([scale=m]) .node-actions-container .node-container .chevron,\n:host([scale=m]) .node-actions-container .node-container .checkmark,\n:host([scale=m]) .node-actions-container .node-container .bullet-point*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.5rem}/*!@:host([scale=m]) .node-actions-container .node-container .icon-start*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tree-item-h{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .node-actions-container*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .checkbox,\n:host([scale=l]) .node-actions-container .node-container .chevron,\n:host([scale=l]) .node-actions-container .node-container .checkmark,\n:host([scale=l]) .node-actions-container .node-container .bullet-point*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .icon-start*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([lines]) .children-container:after*/[lines].sc-calcite-tree-item-h .children-container.sc-calcite-tree-item:after{position:absolute;inset-block-start:0px;z-index:var(--calcite-app-z-index);inline-size:1px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:96%;content:\"\";background-color:var(--calcite-ui-border-2)}/*!@:host(:not([lines])) .node-container:after*/.sc-calcite-tree-item-h:not([lines]) .node-container.sc-calcite-tree-item:after{display:none}/*!@::slotted(*)*/.sc-calcite-tree-item-s>*{min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}/*!@::slotted(*):hover*/.sc-calcite-tree-item-s>*:hover{text-decoration:none !important}/*!@::slotted(a)*/.sc-calcite-tree-item-s>a{inline-size:100%;text-decoration-line:none}/*!@:host*/.sc-calcite-tree-item-h{outline:2px solid transparent;outline-offset:2px}/*!@:host .node-container*/.sc-calcite-tree-item-h .node-container.sc-calcite-tree-item{outline-color:transparent}/*!@:host:focus .node-container, :host:active .node-container*/.sc-calcite-tree-item-h:focus .node-container.sc-calcite-tree-item,.sc-calcite-tree-item-h:active .node-container.sc-calcite-tree-item{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(:focus:not([disabled])) .node-container*/.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item{outline:2px solid transparent;outline-offset:2px;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 )}/*!@.actions-end*/.actions-end.sc-calcite-tree-item{display:flex;flex-direction:row;align-items:center;align-self:stretch}/*!@.checkbox*/.checkbox.sc-calcite-tree-item{line-height:0}/*!@.checkbox-label*/.checkbox-label.sc-calcite-tree-item{pointer-events:none;display:flex;align-items:center}/*!@.checkbox:focus*/.checkbox.sc-calcite-tree-item:focus{outline:2px solid transparent;outline-offset:2px}/*!@.children-container*/.children-container.sc-calcite-tree-item{position:relative;block-size:0px;transform-origin:top;overflow:hidden;opacity:0;margin-inline-start:1.25rem;transform:scaleY(0);transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@.item--expanded > .children-container*/.item--expanded.sc-calcite-tree-item>.children-container.sc-calcite-tree-item{overflow:visible;opacity:1;transform:none;block-size:auto}/*!@.node-container*/.node-container.sc-calcite-tree-item{position:relative;display:flex;min-inline-size:0px;flex-grow:1;align-items:center}/*!@.node-container .checkmark,\n.node-container .bullet-point*/.node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-1)}/*!@.node-container:hover .checkmark,\n.node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host(:focus:not([disabled])) .node-container .checkmark,\n:host(:focus:not([disabled])) .node-container .bullet-point*/.node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:1}/*!@:host([selected]) .node-container,\n:host([selected]) .node-container:hover*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([selected]) .node-container .bullet-point,\n:host([selected]) .node-container .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item{opacity:1;color:var(--calcite-ui-brand)}/*!@:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container.sc-calcite-tree-item{padding-inline-start:0.5rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container.sc-calcite-tree-item{padding-inline-start:1rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.25rem}/*!@:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.75rem}/*!@:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox*/[has-children].sc-calcite-tree-item-h .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{margin-inline-start:0}/*!@:host([has-children]) .node-container .bullet-point,\n:host([has-children]) .node-container .checkmark*/[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item{display:none}/*!@:host([has-children][expanded]:not([selected]):not([selection-mode=none])) .node-container ::slotted(*)*/.sc-calcite-tree-item-h[has-children][expanded]:not([selected]):not([selection-mode=none]) .node-container .sc-calcite-tree-item-s>*{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([has-children][selected]) .node-container[data-selection-mode=children], :host([has-children][selected]) .node-container[data-selection-mode=multichildren]*/[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=children].sc-calcite-tree-item,[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=multichildren].sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@.chevron*/.chevron.sc-calcite-tree-item{position:relative;align-self:center;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;flex:0 0 auto;transform:rotate(0deg)}/*!@.calcite--rtl .chevron*/.calcite--rtl.sc-calcite-tree-item .chevron.sc-calcite-tree-item{transform:rotate(180deg)}/*!@.item--expanded .node-container > .chevron*/.item--expanded.sc-calcite-tree-item .node-container.sc-calcite-tree-item>.chevron.sc-calcite-tree-item{transform:rotate(90deg)}/*!@:host([selected]) .checkmark,\n:host([selected]) .bullet-point*/[selected].sc-calcite-tree-item-h .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .bullet-point.sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@:host([hidden])*/[hidden].sc-calcite-tree-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-tree-item{display:none}";
|
|
42924
43258
|
|
|
42925
43259
|
/**
|
|
42926
43260
|
* @slot - A slot for adding text.
|
|
@@ -42936,6 +43270,7 @@ class TreeItem {
|
|
|
42936
43270
|
this.expanded = !this.expanded;
|
|
42937
43271
|
};
|
|
42938
43272
|
this.childrenClickHandler = (event) => event.stopPropagation();
|
|
43273
|
+
this.userChangedValue = false;
|
|
42939
43274
|
this.updateParentIsExpanded = (el, expanded) => {
|
|
42940
43275
|
const items = getSlotted(el, SLOTS$1.children, {
|
|
42941
43276
|
all: true,
|
|
@@ -42958,12 +43293,24 @@ class TreeItem {
|
|
|
42958
43293
|
this.scale = undefined;
|
|
42959
43294
|
this.indeterminate = false;
|
|
42960
43295
|
this.selectionMode = undefined;
|
|
42961
|
-
this.updateAfterInitialRender = false;
|
|
42962
43296
|
this.hasEndActions = false;
|
|
43297
|
+
this.updateAfterInitialRender = false;
|
|
42963
43298
|
}
|
|
42964
43299
|
expandedHandler(newValue) {
|
|
42965
43300
|
this.updateParentIsExpanded(this.el, newValue);
|
|
42966
43301
|
}
|
|
43302
|
+
handleSelectedChange(value) {
|
|
43303
|
+
if (this.selectionMode === "ancestors" && !this.userChangedValue) {
|
|
43304
|
+
if (value) {
|
|
43305
|
+
this.indeterminate = false;
|
|
43306
|
+
}
|
|
43307
|
+
this.calciteInternalTreeItemSelect.emit({
|
|
43308
|
+
modifyCurrentSelection: true,
|
|
43309
|
+
forceToggle: false,
|
|
43310
|
+
updateItem: false,
|
|
43311
|
+
});
|
|
43312
|
+
}
|
|
43313
|
+
}
|
|
42967
43314
|
getSelectionMode() {
|
|
42968
43315
|
this.isSelectionMultiLike =
|
|
42969
43316
|
this.selectionMode === "multiple" || this.selectionMode === "multichildren";
|
|
@@ -43049,7 +43396,7 @@ class TreeItem {
|
|
|
43049
43396
|
[CSS$2.nodeContainer]: true,
|
|
43050
43397
|
[CSS_UTILITY.rtl]: rtl,
|
|
43051
43398
|
}, "data-selection-mode": this.selectionMode,
|
|
43052
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
43399
|
+
// 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)
|
|
43053
43400
|
ref: (el) => (this.defaultSlotWrapper = el) }, chevron, itemIndicator, this.iconStart ? iconStartEl : null, checkbox ? checkbox : defaultSlotNode), hAsync("div", { class: CSS$2.actionsEnd, hidden: !hasEndActions, ref: (el) => (this.actionSlotWrapper = el) }, slotNode)), hAsync("div", { class: {
|
|
43054
43401
|
[CSS$2.childrenContainer]: true,
|
|
43055
43402
|
[CSS_UTILITY.rtl]: rtl,
|
|
@@ -43074,7 +43421,9 @@ class TreeItem {
|
|
|
43074
43421
|
this.calciteInternalTreeItemSelect.emit({
|
|
43075
43422
|
modifyCurrentSelection: this.selectionMode === "ancestors" || this.isSelectionMultiLike,
|
|
43076
43423
|
forceToggle: false,
|
|
43424
|
+
updateItem: true,
|
|
43077
43425
|
});
|
|
43426
|
+
this.userChangedValue = true;
|
|
43078
43427
|
}
|
|
43079
43428
|
keyDownHandler(event) {
|
|
43080
43429
|
let root;
|
|
@@ -43086,9 +43435,11 @@ class TreeItem {
|
|
|
43086
43435
|
if (this.selectionMode === "none") {
|
|
43087
43436
|
return;
|
|
43088
43437
|
}
|
|
43438
|
+
this.userChangedValue = true;
|
|
43089
43439
|
this.calciteInternalTreeItemSelect.emit({
|
|
43090
43440
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
43091
43441
|
forceToggle: false,
|
|
43442
|
+
updateItem: true,
|
|
43092
43443
|
});
|
|
43093
43444
|
event.preventDefault();
|
|
43094
43445
|
break;
|
|
@@ -43098,6 +43449,7 @@ class TreeItem {
|
|
|
43098
43449
|
}
|
|
43099
43450
|
// activates a node, i.e., performs its default action. For parent nodes, one possible default action is to open or close the node. In single-select trees where selection does not follow focus (see note below), the default action is typically to select the focused node.
|
|
43100
43451
|
const link = nodeListToArray(this.el.children).find((el) => el.matches("a"));
|
|
43452
|
+
this.userChangedValue = true;
|
|
43101
43453
|
if (link) {
|
|
43102
43454
|
link.click();
|
|
43103
43455
|
this.selected = true;
|
|
@@ -43106,6 +43458,7 @@ class TreeItem {
|
|
|
43106
43458
|
this.calciteInternalTreeItemSelect.emit({
|
|
43107
43459
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
43108
43460
|
forceToggle: false,
|
|
43461
|
+
updateItem: true,
|
|
43109
43462
|
});
|
|
43110
43463
|
}
|
|
43111
43464
|
event.preventDefault();
|
|
@@ -43158,6 +43511,11 @@ class TreeItem {
|
|
|
43158
43511
|
else if (selectedSiblings.length > 0) {
|
|
43159
43512
|
parentItem.indeterminate = true;
|
|
43160
43513
|
}
|
|
43514
|
+
const childItems = Array.from(this.el.querySelectorAll("calcite-tree-item:not([disabled])"));
|
|
43515
|
+
childItems.forEach((item) => {
|
|
43516
|
+
item.selected = true;
|
|
43517
|
+
item.indeterminate = false;
|
|
43518
|
+
});
|
|
43161
43519
|
}
|
|
43162
43520
|
else if (this.indeterminate) {
|
|
43163
43521
|
const parentItem = this.parentTreeItem;
|
|
@@ -43167,6 +43525,7 @@ class TreeItem {
|
|
|
43167
43525
|
get el() { return getElement(this); }
|
|
43168
43526
|
static get watchers() { return {
|
|
43169
43527
|
"expanded": ["expandedHandler"],
|
|
43528
|
+
"selected": ["handleSelectedChange"],
|
|
43170
43529
|
"selectionMode": ["getSelectionMode"]
|
|
43171
43530
|
}; }
|
|
43172
43531
|
static get style() { return treeItemCss; }
|
|
@@ -43186,8 +43545,8 @@ class TreeItem {
|
|
|
43186
43545
|
"scale": [1537],
|
|
43187
43546
|
"indeterminate": [516],
|
|
43188
43547
|
"selectionMode": [1537, "selection-mode"],
|
|
43189
|
-
"
|
|
43190
|
-
"
|
|
43548
|
+
"hasEndActions": [32],
|
|
43549
|
+
"updateAfterInitialRender": [32]
|
|
43191
43550
|
},
|
|
43192
43551
|
"$listeners$": [[0, "click", "onClick"], [0, "keydown", "keyDownHandler"]],
|
|
43193
43552
|
"$lazyBundleId$": "-",
|
|
@@ -43625,14 +43984,14 @@ class ValueListItem {
|
|
|
43625
43984
|
const { icon, iconFlipRtl } = this;
|
|
43626
43985
|
if (icon === ICON_TYPES$1.grip) {
|
|
43627
43986
|
return (hAsync("span", { class: {
|
|
43628
|
-
[CSS$
|
|
43629
|
-
[CSS$
|
|
43987
|
+
[CSS$n.handle]: true,
|
|
43988
|
+
[CSS$n.handleActivated]: this.handleActivated,
|
|
43630
43989
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => (this.handleEl = el), role: "button", tabindex: "0" }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS.drag, scale: "s" })));
|
|
43631
43990
|
}
|
|
43632
43991
|
}
|
|
43633
43992
|
render() {
|
|
43634
43993
|
return (hAsync(Host, { id: this.el.id || this.guid }, this.renderHandle(), hAsync("calcite-pick-list-item", { description: this.description, deselectDisabled: this.deselectDisabled, disabled: this.disabled, label: this.label, metadata: this.metadata, nonInteractive: this.nonInteractive, onCalciteListItemChange: this.handleSelectChange, removable: this.removable, selected: this.selected, value: this.value,
|
|
43635
|
-
// eslint-disable-next-line react/jsx-sort-props
|
|
43994
|
+
// 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)
|
|
43636
43995
|
ref: this.getPickListRef }, this.renderActionsStart(), this.renderActionsEnd())));
|
|
43637
43996
|
}
|
|
43638
43997
|
get el() { return getElement(this); }
|
|
@@ -43737,6 +44096,7 @@ registerComponents([
|
|
|
43737
44096
|
SegmentedControl,
|
|
43738
44097
|
SegmentedControlItem,
|
|
43739
44098
|
Select,
|
|
44099
|
+
Sheet,
|
|
43740
44100
|
Shell,
|
|
43741
44101
|
ShellCenterRow,
|
|
43742
44102
|
ShellPanel,
|