@esri/calcite-components 1.11.0-next.3 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/assets/combobox/t9n/index.d.ts +3 -0
- package/dist/calcite/assets/combobox/t9n/messages.json +4 -1
- package/dist/calcite/assets/combobox/t9n/messages_en.json +4 -1
- package/dist/calcite/assets/stepper/t9n/index.d.ts +2 -0
- package/dist/calcite/assets/stepper/t9n/messages.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ar.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_bg.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_bs.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ca.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_cs.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_da.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_de.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_el.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_en.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_es.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_et.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_fi.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_fr.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_he.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_hr.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_hu.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_id.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_it.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ja.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ko.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_lt.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_lv.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_nl.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_no.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_pl.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_pt-BR.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_pt-PT.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ro.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_ru.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_sk.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_sl.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_sr.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_sv.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_th.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_tr.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_uk.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_vi.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_zh-CN.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_zh-HK.json +3 -1
- package/dist/calcite/assets/stepper/t9n/messages_zh-TW.json +3 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +2 -2
- package/dist/calcite/{p-e44bc26a.js → p-0053b5cc.js} +2 -2
- package/dist/calcite/p-0189ff26.entry.js +6 -0
- package/dist/calcite/{p-600cab66.entry.js → p-02cae000.entry.js} +2 -2
- package/dist/calcite/{p-ca7a7c7b.js → p-062c8abf.js} +2 -2
- package/dist/calcite/{p-a0b7bcb9.js → p-08f3dd09.js} +1 -1
- package/dist/calcite/{p-32e492f3.entry.js → p-09507d5d.entry.js} +2 -2
- package/dist/calcite/{p-7cb4dcf2.js → p-0a23430d.js} +2 -2
- package/dist/calcite/{p-ca5b5ce2.js → p-0b5d06f7.js} +2 -2
- package/dist/calcite/p-0d50b6e4.entry.js +6 -0
- package/dist/calcite/{p-1df43b49.js → p-0f15af8b.js} +2 -2
- package/dist/calcite/p-0f3dce4b.entry.js +6 -0
- package/dist/calcite/{p-f52e95d2.entry.js → p-0fac7f75.entry.js} +2 -2
- package/dist/calcite/{p-a1deaa9b.entry.js → p-1350b322.entry.js} +2 -2
- package/dist/calcite/{p-94adfb9b.entry.js → p-1359f7aa.entry.js} +2 -2
- package/dist/calcite/{p-ff7554f1.js → p-13e53971.js} +2 -2
- package/dist/calcite/p-16315e95.entry.js +6 -0
- package/dist/calcite/{p-f04247e6.js → p-165ff9be.js} +2 -2
- package/dist/calcite/{p-00792788.js → p-1ea54903.js} +2 -2
- package/dist/calcite/{p-75df1f47.entry.js → p-1eac9ab9.entry.js} +2 -2
- package/dist/calcite/{p-f874eb2b.js → p-1ecee1c3.js} +3 -3
- package/dist/calcite/{p-ec206c33.entry.js → p-222e77ed.entry.js} +2 -2
- package/dist/calcite/{p-e3bda7c1.entry.js → p-2290b427.entry.js} +2 -2
- package/dist/calcite/{p-bc8c92e9.js → p-23351819.js} +1 -1
- package/dist/calcite/{p-84923684.js → p-289967d1.js} +2 -2
- package/dist/calcite/{p-00af8265.entry.js → p-2bbb1c19.entry.js} +2 -2
- package/dist/calcite/{p-20ad6486.entry.js → p-2cb4e856.entry.js} +2 -2
- package/dist/calcite/{p-c9004c0e.js → p-2eb89c3a.js} +2 -2
- package/dist/calcite/{p-86e92c54.entry.js → p-3479f8bc.entry.js} +2 -2
- package/dist/calcite/{p-4e829d17.js → p-34a48057.js} +2 -2
- package/dist/calcite/p-34d9b164.entry.js +6 -0
- package/dist/calcite/{p-4fda0147.js → p-36080efe.js} +2 -2
- package/dist/calcite/{p-f4ec61fe.js → p-36e01176.js} +1 -1
- package/dist/calcite/{p-58c50240.entry.js → p-36f9f96b.entry.js} +2 -2
- package/dist/calcite/p-37fea3e8.entry.js +6 -0
- package/dist/calcite/{p-67f1e691.entry.js → p-3976823f.entry.js} +2 -2
- package/dist/calcite/{p-9c5044f5.js → p-3a076bf1.js} +2 -2
- package/dist/calcite/{p-59c881ef.js → p-3f86893e.js} +2 -2
- package/dist/calcite/{p-e341636c.js → p-3f94affa.js} +2 -2
- package/dist/calcite/{p-cc2afc13.js → p-40c3153a.js} +1 -1
- package/dist/calcite/{p-20fa7898.entry.js → p-42a2fdea.entry.js} +2 -2
- package/dist/calcite/{p-a9df1303.entry.js → p-43be02f4.entry.js} +2 -2
- package/dist/calcite/{p-d6e39cb4.js → p-44a03b26.js} +2 -2
- package/dist/calcite/{p-f3345fad.js → p-4770742c.js} +2 -2
- package/dist/calcite/{p-3fa70fc9.js → p-4e279db4.js} +2 -2
- package/dist/calcite/{p-e0982385.entry.js → p-4e83cb39.entry.js} +2 -2
- package/dist/calcite/{p-57b2b0de.entry.js → p-4e9c8ef3.entry.js} +2 -2
- package/dist/calcite/{p-bb4406ca.entry.js → p-4ef19851.entry.js} +2 -2
- package/dist/calcite/{p-0ff0ba7e.entry.js → p-5009de0d.entry.js} +2 -2
- package/dist/calcite/{p-405db005.js → p-52db7a68.js} +2 -2
- package/dist/calcite/{p-295d8192.js → p-54c49cb7.js} +2 -2
- package/dist/calcite/{p-a16da3c8.entry.js → p-55b50b7b.entry.js} +2 -2
- package/dist/calcite/p-577aa52c.entry.js +6 -0
- package/dist/calcite/{p-22137130.entry.js → p-57a8b56a.entry.js} +2 -2
- package/dist/calcite/{p-2f1b4150.js → p-5b323eec.js} +2 -2
- package/dist/calcite/p-5d745fde.entry.js +6 -0
- package/dist/calcite/{p-c52fcd92.js → p-5de12cfc.js} +1 -1
- package/dist/calcite/{p-2de5ec8e.js → p-5f354ce7.js} +2 -2
- package/dist/calcite/{p-be1c2daa.entry.js → p-60ab49c1.entry.js} +2 -2
- package/dist/calcite/{p-ca292479.js → p-629513a0.js} +2 -2
- package/dist/calcite/{p-859bd03d.entry.js → p-64fa0f4b.entry.js} +2 -2
- package/dist/calcite/{p-9931ec6f.js → p-65902546.js} +2 -2
- package/dist/calcite/{p-ab8ec5bf.js → p-661e6a8c.js} +2 -2
- package/dist/calcite/{p-34c33bcc.js → p-6653c175.js} +2 -2
- package/dist/calcite/{p-16868d42.entry.js → p-679be17e.entry.js} +2 -2
- package/dist/calcite/{p-db45c95a.entry.js → p-69e4e899.entry.js} +2 -2
- package/dist/calcite/p-6c36b346.js +6 -0
- package/dist/calcite/{p-be95e2fa.entry.js → p-6d53ee3b.entry.js} +2 -2
- package/dist/calcite/{p-4050af20.entry.js → p-6d5d6c83.entry.js} +2 -2
- package/dist/calcite/{p-1a2f1414.js → p-6d9b442e.js} +2 -2
- package/dist/calcite/{p-2634535a.entry.js → p-6e0cfdb3.entry.js} +2 -2
- package/dist/calcite/{p-61442e7d.js → p-6e607443.js} +1 -1
- package/dist/calcite/p-7505deaa.entry.js +6 -0
- package/dist/calcite/{p-75a5b864.entry.js → p-792a756b.entry.js} +2 -2
- package/dist/calcite/{p-7c8970c5.js → p-7a636ec7.js} +2 -2
- package/dist/calcite/p-7ab9f1b0.entry.js +6 -0
- package/dist/calcite/{p-5545d6aa.js → p-7c1f89c9.js} +2 -2
- package/dist/calcite/{p-d404096a.entry.js → p-7d1bc8a8.entry.js} +2 -2
- package/dist/calcite/p-7e303712.js +6 -0
- package/dist/calcite/{p-cd6faff1.js → p-80765840.js} +2 -2
- package/dist/calcite/{p-6c351a2f.js → p-835eb17c.js} +1 -1
- package/dist/calcite/p-83dace39.entry.js +6 -0
- package/dist/calcite/{p-98478cb3.entry.js → p-83e311f1.entry.js} +2 -2
- package/dist/calcite/{p-92aecb91.js → p-84e82243.js} +2 -2
- package/dist/calcite/{p-d8c9bc1b.entry.js → p-8741e3a7.entry.js} +2 -2
- package/dist/calcite/{p-f67c9720.entry.js → p-895dbec8.entry.js} +2 -2
- package/dist/calcite/{p-9579d34e.js → p-89dbaa41.js} +2 -2
- package/dist/calcite/{p-452e53bf.entry.js → p-8b991354.entry.js} +2 -2
- package/dist/calcite/{p-3c30940d.js → p-91b0f62a.js} +1 -1
- package/dist/calcite/{p-236efea6.entry.js → p-91e2de80.entry.js} +2 -2
- package/dist/calcite/{p-550ec0b6.entry.js → p-920b1485.entry.js} +2 -2
- package/dist/calcite/{p-280885d3.js → p-953058ba.js} +2 -2
- package/dist/calcite/p-984b4617.js +6 -0
- package/dist/calcite/p-9b6f22cb.entry.js +6 -0
- package/dist/calcite/{p-8470aa06.entry.js → p-9b9393c9.entry.js} +2 -2
- package/dist/calcite/{p-87f1e961.entry.js → p-9b99f222.entry.js} +2 -2
- package/dist/calcite/{p-3cda1116.entry.js → p-9bf37142.entry.js} +2 -2
- package/dist/calcite/{p-a431d03b.js → p-9e250dec.js} +1 -1
- package/dist/calcite/{p-9c60f2b0.entry.js → p-9e30b01a.entry.js} +2 -2
- package/dist/calcite/p-a0a1a6f8.js +6 -0
- package/dist/calcite/{p-d6e9d2d8.js → p-a1fdc881.js} +2 -2
- package/dist/calcite/{p-56b8a579.entry.js → p-a22ceb1c.entry.js} +2 -2
- package/dist/calcite/{p-42687964.entry.js → p-a32a0549.entry.js} +2 -2
- package/dist/calcite/{p-6559e78e.js → p-a730a8a7.js} +2 -2
- package/dist/calcite/p-a7fd56df.js +6 -0
- package/dist/calcite/{p-1baed544.js → p-a97ae2a2.js} +1 -1
- package/dist/calcite/{p-716875d3.js → p-a9c49dc3.js} +2 -2
- package/dist/calcite/{p-024642ad.js → p-abf27867.js} +2 -2
- package/dist/calcite/{p-5fa6b22e.js → p-b19a4d74.js} +1 -1
- package/dist/calcite/{p-f49f0da2.js → p-b1ca5261.js} +2 -2
- package/dist/calcite/{p-303d0be3.js → p-b3e2357b.js} +2 -2
- package/dist/calcite/{p-ba000a6e.js → p-b8496035.js} +2 -2
- package/dist/calcite/{p-b56a850f.js → p-ba407747.js} +1 -1
- package/dist/calcite/{p-b59cee37.js → p-ba4b3a30.js} +2 -2
- package/dist/calcite/p-badfcd8b.js +6 -0
- package/dist/calcite/{p-d8f47402.js → p-bd9ca272.js} +2 -2
- package/dist/calcite/{p-7ff713c7.js → p-bdf29ea2.js} +1 -1
- package/dist/calcite/{p-1e5ad40e.js → p-bdf88c31.js} +2 -2
- package/dist/calcite/{p-e044e04c.entry.js → p-c26c7dea.entry.js} +2 -2
- package/dist/calcite/{p-37c566ae.js → p-c2c75d15.js} +1 -1
- package/dist/calcite/p-c59cd35a.js +6 -0
- package/dist/calcite/p-c707879a.entry.js +6 -0
- package/dist/calcite/p-c8576ac4.js +6 -0
- package/dist/calcite/{p-f2c86ef2.js → p-ca135abd.js} +2 -2
- package/dist/calcite/{p-431a9f25.js → p-cd0701e0.js} +2 -2
- package/dist/calcite/{p-d0c61494.js → p-cecc3d42.js} +1 -1
- package/dist/calcite/{p-1020aae4.js → p-cedfbeda.js} +2 -2
- package/dist/calcite/{p-a3b61d7c.js → p-cf33293e.js} +1 -1
- package/dist/calcite/{p-6e47e64c.entry.js → p-cfbcfbc4.entry.js} +2 -2
- package/dist/calcite/{p-e3dde9ab.js → p-cfdb0a68.js} +1 -1
- package/dist/calcite/{p-1df6309c.entry.js → p-d1fc646b.entry.js} +2 -2
- package/dist/calcite/{p-6d2a9ab8.js → p-d62665c6.js} +2 -2
- package/dist/calcite/{p-8eed4b45.js → p-d9d12377.js} +2 -2
- package/dist/calcite/p-daaff213.js +7 -0
- package/dist/calcite/{p-68b2f498.js → p-dd657a9e.js} +2 -2
- package/dist/calcite/{p-26646ca8.entry.js → p-ddeb5436.entry.js} +2 -2
- package/dist/calcite/{p-1b7e2a33.entry.js → p-df91b6c8.entry.js} +2 -2
- package/dist/calcite/p-e36e9f28.js +6 -0
- package/dist/calcite/{p-d8688c62.js → p-e4890bc6.js} +2 -2
- package/dist/calcite/{p-767eac96.js → p-e4d72ec5.js} +2 -2
- package/dist/calcite/{p-3456406e.entry.js → p-e55cab5d.entry.js} +2 -2
- package/dist/calcite/p-e5693fa7.entry.js +6 -0
- package/dist/calcite/{p-538bccbf.entry.js → p-e5b429a8.entry.js} +2 -2
- package/dist/calcite/{p-53d844c5.entry.js → p-e64c770e.entry.js} +2 -2
- package/dist/calcite/p-e862b48d.entry.js +6 -0
- package/dist/calcite/{p-475efdf6.js → p-e872e566.js} +2 -2
- package/dist/calcite/{p-388baeec.js → p-e8c77b5b.js} +1 -1
- package/dist/calcite/p-e982ac47.entry.js +6 -0
- package/dist/calcite/{p-244faba8.js → p-e988d1b9.js} +2 -2
- package/dist/calcite/{p-aac7ddcd.js → p-e9fe8c02.js} +2 -2
- package/dist/calcite/{p-73d7e46a.entry.js → p-ea4f0d83.entry.js} +2 -2
- package/dist/calcite/{p-20ca99b1.entry.js → p-edae68bf.entry.js} +2 -2
- package/dist/calcite/{p-39e98e83.js → p-ee1c4cb0.js} +2 -2
- package/dist/calcite/p-efbca97f.js +6 -0
- package/dist/calcite/{p-38a5b6bb.js → p-efc47dd6.js} +2 -2
- package/dist/calcite/{p-2389ba56.entry.js → p-f3463c3a.entry.js} +2 -2
- package/dist/calcite/{p-df3a9753.entry.js → p-f40d2764.entry.js} +2 -2
- package/dist/calcite/p-f4a01b80.js +6 -0
- package/dist/calcite/{p-72cc745a.js → p-f827a56f.js} +2 -2
- package/dist/calcite/{p-e7d3df01.js → p-f8fab66d.js} +2 -2
- package/dist/calcite/p-f916aaa3.entry.js +6 -0
- package/dist/calcite/{p-f4e8b159.js → p-fae9cf02.js} +2 -2
- package/dist/cjs/{ExpandToggle-058aadc4.js → ExpandToggle-193e0cbf.js} +5 -5
- package/dist/cjs/{FloatingArrow-fd78a5b8.js → FloatingArrow-97278e27.js} +5 -3
- package/dist/cjs/{Heading-c408a61f.js → Heading-3ef64582.js} +2 -2
- package/dist/cjs/{app-globals-d65b7f05.js → app-globals-66748780.js} +2 -2
- package/dist/cjs/{ar-404376f2.js → ar-a14ad704.js} +19 -19
- package/dist/cjs/{array-214c8137.js → array-859c5b60.js} +1 -1
- package/dist/cjs/{bg-9fa6aef8.js → bg-bc7d6a7a.js} +19 -19
- package/dist/cjs/{browser-6df26ac0.js → browser-881f0556.js} +1 -1
- package/dist/cjs/{bs-6463fc55.js → bs-6ec257dd.js} +19 -19
- package/dist/cjs/{ca-43b8571a.js → ca-d5ee4144.js} +19 -19
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +20 -18
- package/dist/cjs/calcite-alert.cjs.entry.js +16 -28
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-button.cjs.entry.js +16 -16
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
- package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +14 -14
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +249 -45
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +15 -15
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
- package/dist/cjs/calcite-filter.cjs.entry.js +14 -14
- package/dist/cjs/calcite-flow-item.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
- package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
- package/dist/cjs/calcite-headless-100c2f24.js +24 -0
- package/dist/cjs/calcite-icon.cjs.entry.js +12 -7
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +20 -20
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +16 -15
- package/dist/cjs/calcite-input-text.cjs.entry.js +15 -15
- package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-d75d4494.js → calcite-input-time-picker.calcite-time-picker-30d23b46.js} +63 -63
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +19 -19
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +16 -16
- package/dist/cjs/calcite-input.cjs.entry.js +15 -15
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +8 -8
- package/dist/cjs/calcite-list_3.cjs.entry.js +71 -25
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +14 -14
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +14 -14
- package/dist/cjs/calcite-option_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-pagination.cjs.entry.js +33 -17
- package/dist/cjs/calcite-panel.cjs.entry.js +15 -15
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
- package/dist/cjs/calcite-popover.cjs.entry.js +17 -17
- package/dist/cjs/calcite-progress.cjs.entry.js +5 -5
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +4 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +11 -11
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sheet.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -9
- package/dist/cjs/calcite-split-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-stack.cjs.entry.js +7 -7
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +178 -53
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tab_4.cjs.entry.js +12 -12
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-table-row.cjs.entry.js +9 -9
- package/dist/cjs/calcite-table.cjs.entry.js +11 -11
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +20 -18
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{component-cc4e4240.js → component-8aad1833.js} +1 -1
- package/dist/cjs/{conditionalSlot-1fc0b669.js → conditionalSlot-029eaa09.js} +3 -3
- package/dist/cjs/{cs-41055e91.js → cs-626e4e08.js} +19 -19
- package/dist/cjs/{da-a01d50e2.js → da-8c0452e7.js} +19 -19
- package/dist/cjs/{de-at-90c03f91.js → de-at-a096c7ab.js} +19 -19
- package/dist/cjs/{de-da54e322.js → de-cf2c51db.js} +19 -19
- package/dist/cjs/{de-ch-607bd582.js → de-ch-90dffa7b.js} +19 -19
- package/dist/cjs/{debounce-517afb69.js → debounce-e86475fb.js} +1 -1
- package/dist/cjs/{dom-e819dcdd.js → dom-b708de15.js} +34 -3
- package/dist/cjs/{el-5e23a2de.js → el-5195c0e4.js} +19 -19
- package/dist/cjs/{en-au-44f005b6.js → en-au-97da33e0.js} +19 -19
- package/dist/cjs/{en-ca-0b2b4033.js → en-ca-36fa64d1.js} +19 -19
- package/dist/cjs/{en-gb-57cc6f0d.js → en-gb-239a7d71.js} +19 -19
- package/dist/cjs/{es-f3960e65.js → es-4e01fa59.js} +19 -19
- package/dist/cjs/{es-mx-bf896afb.js → es-mx-de05d856.js} +19 -19
- package/dist/cjs/{et-4add7839.js → et-6208c645.js} +19 -19
- package/dist/cjs/{fi-8486836e.js → fi-487f6c69.js} +19 -19
- package/dist/cjs/{filter-444cc54a.js → filter-beb6a5bb.js} +2 -2
- package/dist/cjs/{floating-ui-f4d4ed7e.js → floating-ui-9bc6fbbb.js} +3 -3
- package/dist/cjs/{focusTrapComponent-8baf2471.js → focusTrapComponent-8b961e53.js} +2 -2
- package/dist/cjs/{form-836b1132.js → form-1432ae43.js} +3 -3
- package/dist/cjs/{fr-83e3e68f.js → fr-893f32d3.js} +19 -19
- package/dist/cjs/{fr-ch-356148bd.js → fr-ch-6be04680.js} +19 -19
- package/dist/cjs/{globalAttributes-39472f2b.js → globalAttributes-e291e30c.js} +2 -2
- package/dist/cjs/{guid-110950eb.js → guid-bc43d543.js} +1 -1
- package/dist/cjs/{he-ab838dd8.js → he-a24f489f.js} +19 -19
- package/dist/cjs/{hi-a4df7df7.js → hi-cd906fae.js} +19 -19
- package/dist/cjs/{hr-6a244ee6.js → hr-9d2e335e.js} +19 -19
- package/dist/cjs/{hu-e6c2b8ae.js → hu-7a8eaac4.js} +19 -19
- package/dist/cjs/{id-433c9c0c.js → id-43f5e5d9.js} +19 -19
- package/dist/cjs/{index-d3cd79c5.js → index-54686409.js} +1 -1
- package/dist/cjs/{index-2d03a5f6.js → index-e433dc3a.js} +4 -1
- package/dist/cjs/{index-6cf28284.js → index-fec1dd6a.js} +1 -1
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-fb8196d1.js → interactive-79b6c5f7.js} +2 -2
- package/dist/cjs/{it-0419def2.js → it-227ed84a.js} +19 -19
- package/dist/cjs/{it-ch-7ee6421e.js → it-ch-59eb2448.js} +19 -19
- package/dist/cjs/{ja-7ca65e75.js → ja-c8a9d9c0.js} +19 -19
- package/dist/cjs/{key-5c3e896e.js → key-a08abeaa.js} +1 -1
- package/dist/cjs/{ko-cf479927.js → ko-0ac011e4.js} +19 -19
- package/dist/cjs/{label-d1b6e837.js → label-81185d54.js} +2 -2
- package/dist/cjs/{loadable-22655756.js → loadable-47839cdc.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-d8f3aec6.js → locale-a273bc0a.js} +4 -4
- package/dist/cjs/{lt-6741d6b9.js → lt-ef27ec1d.js} +19 -19
- package/dist/cjs/{lv-1cd2b694.js → lv-2769a550.js} +19 -19
- package/dist/cjs/{math-92d3e439.js → math-21cdbe9b.js} +1 -1
- package/dist/cjs/{mk-62376b7e.js → mk-f0f56ca8.js} +19 -19
- package/dist/cjs/{nb-cbf025fa.js → nb-f65179fa.js} +19 -19
- package/dist/cjs/{nl-4ed5adc1.js → nl-76e543ac.js} +19 -19
- package/dist/cjs/{observers-e24ab32a.js → observers-ad39b7aa.js} +1 -1
- package/dist/cjs/{openCloseComponent-29d8b681.js → openCloseComponent-1dd76bff.js} +2 -2
- package/dist/cjs/{pl-20285807.js → pl-ccffbc47.js} +19 -19
- package/dist/cjs/{pt-b14a9527.js → pt-606851d9.js} +19 -19
- package/dist/cjs/{pt-br-9a11a695.js → pt-br-8871fcd6.js} +19 -19
- package/dist/cjs/{resources-0cb8f03f.js → resources-538fd86a.js} +1 -1
- package/dist/cjs/{resources-5390514a.js → resources-7689dd18.js} +1 -1
- package/dist/cjs/{resources-08bc2c78.js → resources-8a8a085c.js} +1 -1
- package/dist/cjs/{resources-2eac7c94.js → resources-a31ffd1a.js} +1 -1
- package/dist/cjs/{resources-5e3a8e11.js → resources-bc410e57.js} +1 -1
- package/dist/cjs/{resources-5a02612a.js → resources-be1fae04.js} +1 -1
- package/dist/cjs/{resources-08545b80.js → resources-ee8db988.js} +5 -5
- package/dist/cjs/{ro-db6dedc1.js → ro-ceffedd3.js} +19 -19
- package/dist/cjs/{ru-8f301e67.js → ru-bc2fc8eb.js} +19 -19
- package/dist/cjs/{sk-efa59ce5.js → sk-ac0a4b37.js} +19 -19
- package/dist/cjs/{sl-c453c3a4.js → sl-8ed88152.js} +19 -19
- package/dist/cjs/{sortableComponent-4dc5871f.js → sortableComponent-6820d30d.js} +1 -1
- package/dist/cjs/{sr-39424de9.js → sr-22a785ba.js} +19 -19
- package/dist/cjs/{sv-06a9e97f.js → sv-5a861b5d.js} +19 -19
- package/dist/cjs/{t9n-1e246c39.js → t9n-3fe28893.js} +3 -3
- package/dist/cjs/{th-c5a0a4fc.js → th-3d0ab71f.js} +19 -19
- package/dist/cjs/{throttle-f9aad32b.js → throttle-3d34c1bb.js} +2 -2
- package/dist/cjs/{tr-07426765.js → tr-f8f2c671.js} +19 -19
- package/dist/cjs/{uk-70f04e07.js → uk-070096cc.js} +19 -19
- package/dist/cjs/{utils-05ef4ac0.js → utils-1cbe3495.js} +1 -1
- package/dist/cjs/{utils-039f8fc9.js → utils-3261c8fc.js} +3 -3
- package/dist/cjs/{vi-82615475.js → vi-55801cf4.js} +19 -19
- package/dist/cjs/{zh-cn-512f6bd5.js → zh-cn-6242a8db.js} +19 -19
- package/dist/cjs/{zh-hk-aecce206.js → zh-hk-5c381c13.js} +19 -19
- package/dist/cjs/{zh-tw-fb43a361.js → zh-tw-5e974ebf.js} +19 -19
- package/dist/collection/components/accordion/accordion.css +1 -1
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.css +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.css +37 -42
- package/dist/collection/components/action/action.js +5 -5
- package/dist/collection/components/action/resources.js +3 -1
- package/dist/collection/components/action-bar/action-bar.css +1 -1
- package/dist/collection/components/action-bar/action-bar.js +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.css +1 -1
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.css +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.css +1 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.css +15 -64
- package/dist/collection/components/alert/alert.js +4 -18
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.css +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.css +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.css +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.css +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.css +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.css +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/chip.css +1 -1
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/chip-group/chip-group.css +1 -1
- package/dist/collection/components/chip-group/chip-group.js +1 -1
- package/dist/collection/components/color-picker/color-picker.css +1 -1
- package/dist/collection/components/color-picker/color-picker.js +1 -1
- package/dist/collection/components/color-picker/resources.js +1 -1
- package/dist/collection/components/color-picker/utils.js +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.css +1 -1
- package/dist/collection/components/color-picker-hex-input/color-picker-hex-input.js +1 -1
- package/dist/collection/components/color-picker-hex-input/resources.js +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.css +1 -1
- package/dist/collection/components/color-picker-swatch/color-picker-swatch.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/assets/combobox/t9n/index.d.ts +3 -0
- package/dist/collection/components/combobox/assets/combobox/t9n/messages.json +4 -1
- package/dist/collection/components/combobox/assets/combobox/t9n/messages_en.json +4 -1
- package/dist/collection/components/combobox/combobox.css +29 -5
- package/dist/collection/components/combobox/combobox.js +262 -32
- package/dist/collection/components/combobox/resources.js +4 -1
- package/dist/collection/components/combobox/utils.js +1 -1
- package/dist/collection/components/combobox-item/combobox-item.css +1 -1
- package/dist/collection/components/combobox-item/combobox-item.js +1 -1
- package/dist/collection/components/combobox-item/resources.js +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.css +1 -1
- package/dist/collection/components/combobox-item-group/combobox-item-group.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.css +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.css +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.css +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.css +1 -1
- package/dist/collection/components/date-picker-month-header/date-picker-month-header.js +1 -1
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.css +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.css +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.css +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.css +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/filter.css +1 -1
- package/dist/collection/components/filter/filter.js +1 -1
- package/dist/collection/components/filter/resources.js +1 -1
- package/dist/collection/components/flow/flow.css +1 -1
- package/dist/collection/components/flow/flow.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.css +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/FloatingArrow.js +4 -2
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/functional/XButton.js +1 -1
- package/dist/collection/components/graph/graph.css +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.css +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.css +1 -1
- package/dist/collection/components/icon/icon.js +7 -2
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.css +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.css +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.css +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +1 -1
- package/dist/collection/components/input-date-picker/resources.js +1 -1
- package/dist/collection/components/input-date-picker/utils.js +1 -1
- package/dist/collection/components/input-message/input-message.css +1 -1
- package/dist/collection/components/input-message/input-message.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.css +1 -1
- package/dist/collection/components/input-number/input-number.js +2 -1
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/input-text.css +1 -1
- package/dist/collection/components/input-text/input-text.js +1 -1
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.css +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +1 -1
- package/dist/collection/components/input-time-picker/resources.js +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.css +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.js +1 -1
- package/dist/collection/components/input-time-zone/utils.js +1 -1
- package/dist/collection/components/label/label.css +1 -1
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.css +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.css +12 -5
- package/dist/collection/components/list/list.js +26 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.css +19 -4
- package/dist/collection/components/list-item/list-item.js +30 -9
- package/dist/collection/components/list-item/resources.js +3 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.css +6 -5
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.css +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/menu/menu.css +1 -1
- package/dist/collection/components/menu/menu.js +1 -1
- package/dist/collection/components/menu-item/menu-item.css +1 -1
- package/dist/collection/components/menu-item/menu-item.js +1 -1
- package/dist/collection/components/menu-item/resources.js +1 -1
- package/dist/collection/components/meter/meter.css +1 -1
- package/dist/collection/components/meter/meter.js +1 -1
- package/dist/collection/components/meter/resources.js +1 -1
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/navigation/navigation.css +1 -1
- package/dist/collection/components/navigation/navigation.js +1 -1
- package/dist/collection/components/navigation/resources.js +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.css +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
- package/dist/collection/components/navigation-logo/resources.js +1 -1
- package/dist/collection/components/navigation-user/navigation-user.css +1 -1
- package/dist/collection/components/navigation-user/navigation-user.js +1 -1
- package/dist/collection/components/navigation-user/resources.js +1 -1
- package/dist/collection/components/notice/notice.css +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.css +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.css +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.css +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.css +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.css +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.css +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.css +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.css +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.css +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.css +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.css +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/functional/star.js +1 -1
- package/dist/collection/components/rating/rating.css +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.css +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.css +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +1 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.css +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.css +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/sheet/resources.js +1 -1
- package/dist/collection/components/sheet/sheet.css +1 -1
- package/dist/collection/components/sheet/sheet.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.css +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.css +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.css +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.css +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.css +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.css +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stack/resources.js +1 -1
- package/dist/collection/components/stack/stack.css +8 -2
- package/dist/collection/components/stack/stack.js +1 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/index.d.ts +2 -0
- package/dist/collection/components/stepper/assets/stepper/t9n/messages.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ar.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_bg.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_bs.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ca.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_cs.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_da.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_de.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_el.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_en.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_es.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_et.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_fi.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_fr.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_he.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_hr.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_hu.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_id.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_it.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ja.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ko.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_lt.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_lv.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_nl.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_no.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_pl.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_pt-BR.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_pt-PT.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ro.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_ru.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_sk.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_sl.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_sr.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_sv.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_th.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_tr.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_uk.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_vi.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_zh-CN.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_zh-HK.json +3 -1
- package/dist/collection/components/stepper/assets/stepper/t9n/messages_zh-TW.json +3 -1
- package/dist/collection/components/stepper/functional/step-bar.js +23 -0
- package/dist/collection/components/stepper/resources.js +18 -0
- package/dist/collection/components/stepper/stepper.css +96 -3
- package/dist/collection/components/stepper/stepper.js +133 -36
- package/dist/collection/components/stepper-item/resources.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.css +36 -14
- package/dist/collection/components/stepper-item/stepper-item.js +34 -9
- package/dist/collection/components/switch/switch.css +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/resources.js +1 -1
- package/dist/collection/components/tab/tab.css +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/resources.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.css +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.css +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/table/resources.js +1 -1
- package/dist/collection/components/table/table.css +1 -1
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/table-cell/resources.js +1 -1
- package/dist/collection/components/table-cell/table-cell.css +1 -1
- package/dist/collection/components/table-cell/table-cell.js +1 -1
- package/dist/collection/components/table-header/resources.js +1 -1
- package/dist/collection/components/table-header/table-header.css +1 -1
- package/dist/collection/components/table-header/table-header.js +1 -1
- package/dist/collection/components/table-row/table-row.css +1 -1
- package/dist/collection/components/table-row/table-row.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.css +1 -1
- package/dist/collection/components/tabs/tabs.js +1 -1
- package/dist/collection/components/text-area/resources.js +1 -1
- package/dist/collection/components/text-area/text-area.css +1 -1
- package/dist/collection/components/text-area/text-area.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.css +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.css +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.css +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.css +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.css +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.css +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.css +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +1 -1
- package/dist/collection/components/tooltip/TooltipManager.js +1 -1
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/utils.js +1 -1
- package/dist/collection/components/tree/tree.css +1 -1
- package/dist/collection/components/tree/tree.js +1 -1
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.css +1 -1
- package/dist/collection/components/tree-item/tree-item.js +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.css +1 -1
- package/dist/collection/components/value-list/value-list.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.css +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +4 -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/component.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +30 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/mode.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/responsive.js +1 -1
- package/dist/collection/utils/sortableComponent.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/FloatingArrow.js +4 -2
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +8 -6
- package/dist/components/ar.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/bg.js +1 -1
- package/dist/components/bs.js +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/ca.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +4 -18
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip-group.js +1 -1
- package/dist/components/calcite-chip.js +1 -1
- package/dist/components/calcite-color-picker-hex-input.js +1 -1
- package/dist/components/calcite-color-picker-swatch.js +1 -1
- package/dist/components/calcite-color-picker.js +1 -1
- package/dist/components/calcite-combobox-item-group.js +1 -1
- package/dist/components/calcite-combobox-item.js +1 -1
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-headless.js +17 -0
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input-time-zone.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +2 -2
- package/dist/components/calcite-list-item.js +29 -9
- package/dist/components/calcite-list.js +27 -2
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-sheet.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stack.js +1 -1
- package/dist/components/calcite-stepper-item.js +15 -10
- package/dist/components/calcite-stepper.js +178 -36
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-table-cell.js +1 -1
- package/dist/components/calcite-table-header.js +1 -1
- package/dist/components/calcite-table-row.js +1 -1
- package/dist/components/calcite-table.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +4 -2
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +234 -29
- package/dist/components/component.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/cs.js +1 -1
- package/dist/components/da.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/de-at.js +1 -1
- package/dist/components/de-ch.js +1 -1
- package/dist/components/de.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +31 -2
- package/dist/components/dropdown.js +1 -1
- package/dist/components/el.js +1 -1
- package/dist/components/en-au.js +1 -1
- package/dist/components/en-ca.js +1 -1
- package/dist/components/en-gb.js +1 -1
- package/dist/components/es-mx.js +1 -1
- package/dist/components/es.js +1 -1
- package/dist/components/et.js +1 -1
- package/dist/components/fi.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +2 -2
- package/dist/components/form.js +1 -1
- package/dist/components/fr-ch.js +1 -1
- package/dist/components/fr.js +1 -1
- package/dist/components/globalAttributes.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/he.js +1 -1
- package/dist/components/hi.js +1 -1
- package/dist/components/hr.js +1 -1
- package/dist/components/hu.js +1 -1
- package/dist/components/icon.js +7 -2
- package/dist/components/id.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index3.js +1 -1
- package/dist/components/index4.js +1 -1
- package/dist/components/input-number.js +2 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/it-ch.js +1 -1
- package/dist/components/it.js +1 -1
- package/dist/components/ja.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/ko.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +2 -2
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +2 -2
- package/dist/components/lt.js +1 -1
- package/dist/components/lv.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/mk.js +1 -1
- package/dist/components/nb.js +1 -1
- package/dist/components/nl.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/pagination.js +18 -2
- package/dist/components/panel.js +1 -1
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/pl.js +1 -1
- package/dist/components/popover.js +1 -1
- package/dist/components/progress.js +1 -1
- package/dist/components/pt-br.js +1 -1
- package/dist/components/pt.js +1 -1
- package/dist/components/resources.js +1 -1
- package/dist/components/resources2.js +1 -1
- package/dist/components/resources3.js +1 -1
- package/dist/components/resources4.js +1 -1
- package/dist/components/ro.js +1 -1
- package/dist/components/ru.js +1 -1
- package/dist/components/scrim.js +2 -2
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/sr.js +1 -1
- package/dist/components/stack.js +2 -2
- package/dist/components/sv.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table-cell.js +1 -1
- package/dist/components/table-header.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/th.js +1 -1
- package/dist/components/throttle.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tr.js +1 -1
- package/dist/components/uk.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +5 -2
- package/dist/components/utils3.js +3 -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-ca500b5f.js → ExpandToggle-f15fdcaa.js} +5 -5
- package/dist/esm/{FloatingArrow-8d57be5a.js → FloatingArrow-15813680.js} +5 -3
- package/dist/esm/{Heading-a5101e67.js → Heading-9f2617c0.js} +2 -2
- package/dist/esm/{app-globals-edc594b4.js → app-globals-27637184.js} +2 -2
- package/dist/esm/{ar-19698a3b.js → ar-2edcc9d3.js} +19 -19
- package/dist/esm/{array-3d50924f.js → array-9c8d8cd1.js} +1 -1
- package/dist/esm/{bg-f6f367fb.js → bg-d8c258ac.js} +19 -19
- package/dist/esm/{browser-f24e454d.js → browser-2f0866ce.js} +1 -1
- package/dist/esm/{bs-ed1b2753.js → bs-1391fd05.js} +19 -19
- package/dist/esm/{ca-655cff09.js → ca-4ad24615.js} +19 -19
- package/dist/esm/calcite-accordion_2.entry.js +8 -8
- package/dist/esm/calcite-action-bar.entry.js +15 -15
- package/dist/esm/calcite-action-group.entry.js +13 -13
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +20 -18
- package/dist/esm/calcite-alert.entry.js +16 -28
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +15 -15
- package/dist/esm/calcite-button.entry.js +16 -16
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +11 -11
- package/dist/esm/calcite-chip-group.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +14 -14
- package/dist/esm/calcite-color-picker_3.entry.js +16 -16
- package/dist/esm/calcite-combobox_3.entry.js +249 -45
- package/dist/esm/calcite-date-picker_4.entry.js +15 -15
- package/dist/esm/calcite-dropdown_3.entry.js +14 -14
- package/dist/esm/calcite-fab.entry.js +8 -8
- package/dist/esm/calcite-filter.entry.js +14 -14
- package/dist/esm/calcite-flow-item.entry.js +13 -13
- package/dist/esm/calcite-flow.entry.js +4 -4
- package/dist/esm/calcite-graph_2.entry.js +14 -14
- package/dist/esm/calcite-handle.entry.js +10 -10
- package/dist/esm/calcite-headless-54e83838.js +17 -0
- package/dist/esm/calcite-icon.entry.js +12 -7
- package/dist/esm/calcite-inline-editable.entry.js +13 -13
- package/dist/esm/calcite-input-date-picker.entry.js +20 -20
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +16 -15
- package/dist/esm/calcite-input-text.entry.js +15 -15
- package/dist/esm/{calcite-input-time-picker.calcite-time-picker-ec3b7d9c.js → calcite-input-time-picker.calcite-time-picker-17fe7dfa.js} +63 -63
- package/dist/esm/calcite-input-time-picker_2.entry.js +19 -19
- package/dist/esm/calcite-input-time-zone.entry.js +16 -16
- package/dist/esm/calcite-input.entry.js +15 -15
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +8 -8
- package/dist/esm/calcite-list_3.entry.js +71 -25
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +11 -11
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +14 -14
- package/dist/esm/calcite-navigation_3.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +14 -14
- package/dist/esm/calcite-option_3.entry.js +12 -12
- package/dist/esm/calcite-pagination.entry.js +28 -12
- package/dist/esm/calcite-panel.entry.js +15 -15
- package/dist/esm/calcite-pick-list_3.entry.js +17 -17
- package/dist/esm/calcite-popover.entry.js +17 -17
- package/dist/esm/calcite-progress.entry.js +5 -5
- package/dist/esm/calcite-radio-button-group.entry.js +4 -4
- package/dist/esm/calcite-radio-button.entry.js +11 -11
- package/dist/esm/calcite-rating.entry.js +14 -14
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +11 -11
- package/dist/esm/calcite-sheet.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +9 -9
- package/dist/esm/calcite-split-button.entry.js +5 -5
- package/dist/esm/calcite-stack.entry.js +7 -7
- package/dist/esm/calcite-stepper_2.entry.js +178 -53
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-tab_4.entry.js +12 -12
- package/dist/esm/calcite-table-cell_2.entry.js +13 -13
- package/dist/esm/calcite-table-row.entry.js +9 -9
- package/dist/esm/calcite-table.entry.js +11 -11
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-select_2.entry.js +6 -6
- package/dist/esm/calcite-tile.entry.js +9 -9
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +9 -9
- package/dist/esm/calcite-tree_2.entry.js +10 -10
- package/dist/esm/calcite-value-list_2.entry.js +20 -18
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{component-d9829048.js → component-5f2c22d5.js} +1 -1
- package/dist/esm/{conditionalSlot-e0ef4435.js → conditionalSlot-e0760d01.js} +3 -3
- package/dist/esm/{cs-f891642c.js → cs-feded687.js} +19 -19
- package/dist/esm/{da-ed38c9af.js → da-a94f5b1b.js} +19 -19
- package/dist/esm/{de-at-99bb01e6.js → de-at-bb4219e3.js} +19 -19
- package/dist/esm/{de-ch-ad3c126a.js → de-ch-8c15b7b6.js} +19 -19
- package/dist/esm/{de-7396ef2c.js → de-ed16e7a4.js} +19 -19
- package/dist/esm/{debounce-24fab12b.js → debounce-5398f62f.js} +1 -1
- package/dist/esm/{dom-39444fa1.js → dom-bb94e253.js} +33 -4
- package/dist/esm/{el-4a559b63.js → el-aa86c105.js} +19 -19
- package/dist/esm/{en-au-d6426106.js → en-au-b35b6a16.js} +19 -19
- package/dist/esm/{en-ca-a3ec442a.js → en-ca-996a851b.js} +19 -19
- package/dist/esm/{en-gb-ebb77b1e.js → en-gb-e4bed8e2.js} +19 -19
- package/dist/esm/{es-728e58ee.js → es-68466408.js} +19 -19
- package/dist/esm/{es-mx-7a8c75ad.js → es-mx-b67051f6.js} +19 -19
- package/dist/esm/{et-116b9d91.js → et-6faa7bbd.js} +19 -19
- package/dist/esm/{fi-831e0df0.js → fi-05a466b4.js} +19 -19
- package/dist/esm/{filter-789a1f68.js → filter-923cf2e4.js} +2 -2
- package/dist/esm/{floating-ui-308fc841.js → floating-ui-65f6796e.js} +3 -3
- package/dist/esm/{focusTrapComponent-713db4af.js → focusTrapComponent-cb668640.js} +2 -2
- package/dist/esm/{form-9477436f.js → form-aaedb8eb.js} +3 -3
- package/dist/esm/{fr-ch-abc5851e.js → fr-ch-69c37efc.js} +19 -19
- package/dist/esm/{fr-749af490.js → fr-d8b932c8.js} +19 -19
- package/dist/esm/{globalAttributes-a4c59e60.js → globalAttributes-a9e33d88.js} +2 -2
- package/dist/esm/{guid-c27bb5cd.js → guid-b69b57e2.js} +1 -1
- package/dist/esm/{he-c083c0ee.js → he-4784b292.js} +19 -19
- package/dist/esm/{hi-081e797d.js → hi-b72a7582.js} +19 -19
- package/dist/esm/{hr-ac293ae5.js → hr-3cd8fa3f.js} +19 -19
- package/dist/esm/{hu-c8c6115f.js → hu-a5bc848c.js} +19 -19
- package/dist/esm/{id-3218626e.js → id-8eedbc06.js} +19 -19
- package/dist/esm/{index-77bbcac2.js → index-5581518c.js} +4 -1
- package/dist/esm/{index-d5b132a2.js → index-8a250c5a.js} +1 -1
- package/dist/esm/{index-b188c681.js → index-8c8901b3.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-91b47871.js → interactive-69ec9d65.js} +2 -2
- package/dist/esm/{it-4850e378.js → it-45928571.js} +19 -19
- package/dist/esm/{it-ch-be4a24fc.js → it-ch-f6d8454f.js} +19 -19
- package/dist/esm/{ja-18de6686.js → ja-9bc0c506.js} +19 -19
- package/dist/esm/{key-d8c53f72.js → key-4eff881c.js} +1 -1
- package/dist/esm/{ko-6af66fe6.js → ko-e17a8078.js} +19 -19
- package/dist/esm/{label-d9e179c0.js → label-945638ac.js} +2 -2
- package/dist/esm/{loadable-51090769.js → loadable-e0edfe27.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-8015ec61.js → locale-e5414778.js} +4 -4
- package/dist/esm/{lt-61a65274.js → lt-10663133.js} +19 -19
- package/dist/esm/{lv-917175d5.js → lv-b9bc1fbf.js} +19 -19
- package/dist/esm/{math-d34092e1.js → math-63a03baa.js} +1 -1
- package/dist/esm/{mk-17e5c095.js → mk-ceca711a.js} +19 -19
- package/dist/esm/{nb-dd3ec681.js → nb-1ab40058.js} +19 -19
- package/dist/esm/{nl-b996bc82.js → nl-63e10eb9.js} +19 -19
- package/dist/esm/{observers-70c115ce.js → observers-7bce645e.js} +1 -1
- package/dist/esm/{openCloseComponent-22429ebf.js → openCloseComponent-a2872792.js} +2 -2
- package/dist/esm/{pl-971590b8.js → pl-db397b7d.js} +19 -19
- package/dist/esm/{pt-br-2d0690b4.js → pt-br-86eaebb0.js} +19 -19
- package/dist/esm/{pt-14cc11ea.js → pt-c4bf11ae.js} +19 -19
- package/dist/esm/{resources-c7c7109f.js → resources-2b2d4eb4.js} +1 -1
- package/dist/esm/{resources-425c38d2.js → resources-50c656d8.js} +5 -5
- package/dist/esm/{resources-71e5793c.js → resources-53455208.js} +1 -1
- package/dist/esm/{resources-cfcd78c4.js → resources-98c62650.js} +1 -1
- package/dist/esm/{resources-e4b4c0b2.js → resources-b3275c7a.js} +1 -1
- package/dist/esm/{resources-eb3678b9.js → resources-c0ed0e43.js} +1 -1
- package/dist/esm/{resources-c44417f1.js → resources-f9fc1be7.js} +1 -1
- package/dist/esm/{ro-cc8771f2.js → ro-cfdc657f.js} +19 -19
- package/dist/esm/{ru-533765b7.js → ru-6c474d06.js} +19 -19
- package/dist/esm/{sk-7e59e6f6.js → sk-67e27bfc.js} +19 -19
- package/dist/esm/{sl-fb964dec.js → sl-380aef47.js} +19 -19
- package/dist/esm/{sortableComponent-d7007a60.js → sortableComponent-e04c032c.js} +1 -1
- package/dist/esm/{sr-a24dcc9b.js → sr-e6245696.js} +19 -19
- package/dist/esm/{sv-1c31dec8.js → sv-2aced04b.js} +19 -19
- package/dist/esm/{t9n-599cfd78.js → t9n-4e8ea923.js} +3 -3
- package/dist/esm/{th-45165379.js → th-8df72332.js} +19 -19
- package/dist/esm/{throttle-51ccf9e3.js → throttle-008fbbb4.js} +2 -2
- package/dist/esm/{tr-5d8ac79f.js → tr-141ac71e.js} +19 -19
- package/dist/esm/{uk-f9a604f8.js → uk-3aaee2a6.js} +19 -19
- package/dist/esm/{utils-c1b510a3.js → utils-6e2201b3.js} +1 -1
- package/dist/esm/{utils-e1d14192.js → utils-ad44fe85.js} +3 -3
- package/dist/esm/{vi-58ddf83a.js → vi-3c97b57f.js} +19 -19
- package/dist/esm/{zh-cn-586d01aa.js → zh-cn-7527c95f.js} +19 -19
- package/dist/esm/{zh-hk-10561dbf.js → zh-hk-ce33cf14.js} +19 -19
- package/dist/esm/{zh-tw-020c7aba.js → zh-tw-3f828aa0.js} +19 -19
- package/dist/extras/docs-json.json +69 -16
- package/dist/extras/translations-json.json +1 -1
- package/dist/extras/vscode-data.json +15 -0
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/action/resources.d.ts +2 -0
- package/dist/types/components/alert/alert.d.ts +0 -2
- package/dist/types/components/combobox/assets/combobox/t9n/index.d.ts +3 -0
- package/dist/types/components/combobox/combobox.d.ts +32 -4
- package/dist/types/components/combobox/interfaces.d.ts +1 -0
- package/dist/types/components/combobox/resources.d.ts +3 -0
- package/dist/types/components/list/list.d.ts +3 -0
- package/dist/types/components/list-item/list-item.d.ts +5 -0
- package/dist/types/components/list-item/resources.d.ts +2 -0
- package/dist/types/components/stepper/assets/stepper/t9n/index.d.ts +2 -0
- package/dist/types/components/stepper/functional/step-bar.d.ts +18 -0
- package/dist/types/components/stepper/resources.d.ts +13 -0
- package/dist/types/components/stepper/stepper.d.ts +19 -9
- package/dist/types/components/stepper-item/stepper-item.d.ts +6 -0
- package/dist/types/components.d.ts +15 -2
- package/dist/types/utils/dom.d.ts +16 -0
- package/hydrate/index.js +958 -552
- package/package.json +4 -4
- package/readme.md +2 -2
- package/dist/calcite/p-03c66ba1.entry.js +0 -6
- package/dist/calcite/p-055bb019.js +0 -6
- package/dist/calcite/p-09420262.entry.js +0 -6
- package/dist/calcite/p-2c2f676e.js +0 -6
- package/dist/calcite/p-2f3bfa6b.entry.js +0 -6
- package/dist/calcite/p-3987e0a1.entry.js +0 -6
- package/dist/calcite/p-42a0028c.js +0 -6
- package/dist/calcite/p-4537110a.js +0 -6
- package/dist/calcite/p-5662d703.js +0 -6
- package/dist/calcite/p-571b9f5b.js +0 -6
- package/dist/calcite/p-5bf855fa.js +0 -6
- package/dist/calcite/p-60e64b20.js +0 -6
- package/dist/calcite/p-61338201.entry.js +0 -6
- package/dist/calcite/p-65b4ea03.js +0 -6
- package/dist/calcite/p-6bb5cab4.entry.js +0 -6
- package/dist/calcite/p-71726904.js +0 -7
- package/dist/calcite/p-7d219769.entry.js +0 -6
- package/dist/calcite/p-859505c2.entry.js +0 -6
- package/dist/calcite/p-919e7c63.entry.js +0 -6
- package/dist/calcite/p-947751fd.entry.js +0 -6
- package/dist/calcite/p-a1733545.entry.js +0 -6
- package/dist/calcite/p-adc9775c.entry.js +0 -6
- package/dist/calcite/p-b24503eb.entry.js +0 -6
- package/dist/calcite/p-b5f7de86.entry.js +0 -6
- package/dist/calcite/p-b6fe4fee.js +0 -6
- package/dist/calcite/p-c3dcf437.js +0 -6
- package/dist/calcite/p-e18bd0e1.entry.js +0 -6
- package/dist/calcite/p-e484f2af.entry.js +0 -6
- package/dist/calcite/p-f638f9bb.entry.js +0 -6
- package/dist/cjs/responsive-855674f3.js +0 -34
- package/dist/components/responsive.js +0 -32
- package/dist/esm/responsive-44a4fa1a.js +0 -32
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.11.0
|
|
4
|
+
* v1.11.0
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -4948,7 +4948,7 @@ function hydrateFactory($stencilWindow, $stencilHydrateOpts, $stencilHydrateResu
|
|
|
4948
4948
|
|
|
4949
4949
|
|
|
4950
4950
|
const NAMESPACE = 'calcite';
|
|
4951
|
-
const BUILD = /* calcite */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate:
|
|
4951
|
+
const BUILD = /* calcite */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: true, cmpWillUpdate: false, connectedCallback: true, constructableCSS: false, cssAnnotations: true, cssVarShim: false, devTools: false, disconnectedCallback: true, dynamicImportShim: false, element: false, event: true, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: true, hydrateServerSide: true, hydratedAttribute: false, hydratedClass: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: true, safari10: false, scoped: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, shadowDomShim: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
4952
4952
|
|
|
4953
4953
|
const autoMode = "calcite-mode-auto";
|
|
4954
4954
|
const darkMode = "calcite-mode-dark";
|
|
@@ -5535,7 +5535,8 @@ const callRender = (e, t, o) => {
|
|
|
5535
5535
|
}, postUpdateComponent = e => {
|
|
5536
5536
|
const t = e.$cmpMeta$.$tagName$, o = e.$hostElement$, n = createTime("postUpdate", t), s = e.$lazyInstance$ , l = e.$ancestorComponent$;
|
|
5537
5537
|
(safeCall(s, "componentDidRender"),
|
|
5538
|
-
BUILD.isDev ), 64 & e.$flags$ ? (
|
|
5538
|
+
BUILD.isDev ), 64 & e.$flags$ ? ((safeCall(s, "componentDidUpdate"),
|
|
5539
|
+
BUILD.isDev ), n()) : (e.$flags$ |= 64, addHydratedFlag(o),
|
|
5539
5540
|
(safeCall(s, "componentDidLoad"),
|
|
5540
5541
|
BUILD.isDev ), n(), (e.$onReadyResolve$(o), l || appDidLoad())), e.$onInstanceResolve$(o), (e.$onRenderResolve$ && (e.$onRenderResolve$(),
|
|
5541
5542
|
e.$onRenderResolve$ = void 0), 512 & e.$flags$ && nextTick((() => scheduleUpdate(e, !1))),
|
|
@@ -6622,6 +6623,18 @@ function getElementDir(el) {
|
|
|
6622
6623
|
const closest = closestElementCrossShadowBoundary(el, selector);
|
|
6623
6624
|
return closest ? closest.getAttribute(prop) : "ltr";
|
|
6624
6625
|
}
|
|
6626
|
+
/**
|
|
6627
|
+
* This helper returns the computed width in pixels of a rendered HTMLElement.
|
|
6628
|
+
*
|
|
6629
|
+
* @param {HTMLElement} el An element.
|
|
6630
|
+
* @returns {number} The element's width.
|
|
6631
|
+
*/
|
|
6632
|
+
function getElementWidth(el) {
|
|
6633
|
+
if (!el) {
|
|
6634
|
+
return 0;
|
|
6635
|
+
}
|
|
6636
|
+
return parseFloat(getComputedStyle(el).inlineSize);
|
|
6637
|
+
}
|
|
6625
6638
|
/**
|
|
6626
6639
|
* This helper returns the rootNode of an element.
|
|
6627
6640
|
*
|
|
@@ -6641,6 +6654,23 @@ function getShadowRootNode(el) {
|
|
|
6641
6654
|
const rootNode = getRootNode(el);
|
|
6642
6655
|
return "host" in rootNode ? rootNode : null;
|
|
6643
6656
|
}
|
|
6657
|
+
/**
|
|
6658
|
+
* This helper returns the computed width in pixels a given text string takes up on screen.
|
|
6659
|
+
*
|
|
6660
|
+
* See https://stackoverflow.com/questions/118241/calculate-text-width-with-javascript
|
|
6661
|
+
*
|
|
6662
|
+
* @param {string} text The string of text to measure.
|
|
6663
|
+
* @param {string} font The CSS font attribute's value, which should include size and face, e.g. "12px Arial".
|
|
6664
|
+
*/
|
|
6665
|
+
function getTextWidth(text, font) {
|
|
6666
|
+
if (!text) {
|
|
6667
|
+
return 0;
|
|
6668
|
+
}
|
|
6669
|
+
const canvas = document.createElement("canvas");
|
|
6670
|
+
const context = canvas.getContext("2d");
|
|
6671
|
+
context.font = font;
|
|
6672
|
+
return context.measureText(text).width;
|
|
6673
|
+
}
|
|
6644
6674
|
/**
|
|
6645
6675
|
* This helper returns the host of a ShadowRoot.
|
|
6646
6676
|
*
|
|
@@ -6979,7 +7009,7 @@ const SLOTS$z = {
|
|
|
6979
7009
|
actionsStart: "actions-start",
|
|
6980
7010
|
actionsEnd: "actions-end",
|
|
6981
7011
|
};
|
|
6982
|
-
const CSS$
|
|
7012
|
+
const CSS$1h = {
|
|
6983
7013
|
icon: "icon",
|
|
6984
7014
|
header: "header",
|
|
6985
7015
|
headerContent: "header-content",
|
|
@@ -7047,28 +7077,28 @@ class AccordionItem {
|
|
|
7047
7077
|
// --------------------------------------------------------------------------
|
|
7048
7078
|
renderActionsStart() {
|
|
7049
7079
|
const { el } = this;
|
|
7050
|
-
return getSlotted(el, SLOTS$z.actionsStart) ? (hAsync("div", { class: CSS$
|
|
7080
|
+
return getSlotted(el, SLOTS$z.actionsStart) ? (hAsync("div", { class: CSS$1h.actionsStart }, hAsync("slot", { name: SLOTS$z.actionsStart }))) : null;
|
|
7051
7081
|
}
|
|
7052
7082
|
renderActionsEnd() {
|
|
7053
7083
|
const { el } = this;
|
|
7054
|
-
return getSlotted(el, SLOTS$z.actionsEnd) ? (hAsync("div", { class: CSS$
|
|
7084
|
+
return getSlotted(el, SLOTS$z.actionsEnd) ? (hAsync("div", { class: CSS$1h.actionsEnd }, hAsync("slot", { name: SLOTS$z.actionsEnd }))) : null;
|
|
7055
7085
|
}
|
|
7056
7086
|
render() {
|
|
7057
7087
|
const { iconFlipRtl } = this;
|
|
7058
7088
|
const dir = getElementDir(this.el);
|
|
7059
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
7060
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
7089
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$1h.iconStart, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "start", icon: this.iconStart, key: "icon-start", scale: getIconScale(this.scale) })) : null;
|
|
7090
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$1h.iconEnd, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "end", icon: this.iconEnd, key: "icon-end", scale: getIconScale(this.scale) })) : null;
|
|
7061
7091
|
const { description } = this;
|
|
7062
7092
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
7063
7093
|
[`icon-position--${this.iconPosition}`]: true,
|
|
7064
7094
|
[`icon-type--${this.iconType}`]: true,
|
|
7065
|
-
} }, hAsync("div", { class: { [CSS$
|
|
7095
|
+
} }, hAsync("div", { class: { [CSS$1h.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-controls": IDS$2.section, "aria-expanded": toAriaBoolean(this.expanded), class: CSS$1h.headerContent, id: IDS$2.sectionToggle, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, hAsync("div", { class: CSS$1h.headerContainer }, iconStartEl, hAsync("div", { class: CSS$1h.headerText }, hAsync("span", { class: CSS$1h.heading }, this.heading), description ? hAsync("span", { class: CSS$1h.description }, description) : null), iconEndEl), hAsync("calcite-icon", { class: CSS$1h.expandIcon, icon: this.iconType === "chevron"
|
|
7066
7096
|
? "chevronDown"
|
|
7067
7097
|
: this.iconType === "caret"
|
|
7068
7098
|
? "caretDown"
|
|
7069
7099
|
: this.expanded
|
|
7070
7100
|
? "minus"
|
|
7071
|
-
: "plus", scale: getIconScale(this.scale) })), this.renderActionsEnd()), hAsync("section", { "aria-labelledby": IDS$2.sectionToggle, class: CSS$
|
|
7101
|
+
: "plus", scale: getIconScale(this.scale) })), this.renderActionsEnd()), hAsync("section", { "aria-labelledby": IDS$2.sectionToggle, class: CSS$1h.content, id: IDS$2.section }, hAsync("slot", null)))));
|
|
7072
7102
|
}
|
|
7073
7103
|
//--------------------------------------------------------------------------
|
|
7074
7104
|
//
|
|
@@ -7990,7 +8020,7 @@ function defaultOnMessagesChange() {
|
|
|
7990
8020
|
mergeMessages(this);
|
|
7991
8021
|
}
|
|
7992
8022
|
|
|
7993
|
-
const CSS$
|
|
8023
|
+
const CSS$1g = {
|
|
7994
8024
|
button: "button",
|
|
7995
8025
|
buttonTextVisible: "button--text-visible",
|
|
7996
8026
|
buttonCompact: "button--compact",
|
|
@@ -8000,12 +8030,14 @@ const CSS$1e = {
|
|
|
8000
8030
|
slotContainerHidden: "slot-container--hidden",
|
|
8001
8031
|
textContainer: "text-container",
|
|
8002
8032
|
textContainerVisible: "text-container--visible",
|
|
8033
|
+
indicatorWithIcon: "indicator-with-icon",
|
|
8034
|
+
indicatorWithoutIcon: "indicator-without-icon",
|
|
8003
8035
|
};
|
|
8004
8036
|
const SLOTS$y = {
|
|
8005
8037
|
tooltip: "tooltip",
|
|
8006
8038
|
};
|
|
8007
8039
|
|
|
8008
|
-
const actionCss = "/*!@:host*/.sc-calcite-action-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-action-h *.sc-calcite-action{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-action-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-action-h *.sc-calcite-action,.sc-calcite-action-h[disabled] .sc-calcite-action-s>*{pointer-events:none}/*!@:host*/.sc-calcite-action-h{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-action-h[disabled] .sc-calcite-action-s>[calcite-hydrated][disabled],[disabled].sc-calcite-action-h [calcite-hydrated][disabled].sc-calcite-action{opacity:1}/*!@.button*/.button.sc-calcite-action{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}/*!@.button:hover*/.button.sc-calcite-action:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@.button:focus*/.button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.button:active*/.button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-3)}/*!@.button .icon-container*/.button.sc-calcite-action .icon-container.sc-calcite-action{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}/*!@.button .text-container*/.button.sc-calcite-action .text-container.sc-calcite-action{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}/*!@.button .text-container--visible*/.button.sc-calcite-action .text-container--visible.sc-calcite-action{inline-size:auto;flex:1 1 auto;opacity:1;margin-inline-end:1rem}/*!@:host([scale=s]) .button*/[scale=s].sc-calcite-action-h .button.sc-calcite-action{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=s]) .button--text-visible .icon-container*/[scale=s].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:0.5rem}/*!@:host([scale=m]) .button*/[scale=m].sc-calcite-action-h .button.sc-calcite-action{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=m]) .button--text-visible .icon-container*/[scale=m].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:0.75rem}/*!@:host([scale=l]) .button*/[scale=l].sc-calcite-action-h .button.sc-calcite-action{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=l]) .button--text-visible .icon-container*/[scale=l].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:1rem}/*!@:host([alignment=center]) .button*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action{justify-content:center}/*!@:host([alignment=end]) .button*/[alignment=end].sc-calcite-action-h .button.sc-calcite-action{justify-content:flex-end}/*!@:host([alignment=center]) .button .text-container--visible,\n:host([alignment=end]) .button .text-container--visible*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action,[alignment=end].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action{flex:0 1 auto}/*!@:host([scale=s][compact]) .button,\n:host([scale=m][compact]) .button,\n:host([scale=l][compact]) .button*/[scale=s][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=m][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=l][compact].sc-calcite-action-h .button.sc-calcite-action{padding-inline:0px}/*!@.slot-container*/.slot-container.sc-calcite-action{display:flex}/*!@.slot-container--hidden*/.slot-container--hidden.sc-calcite-action{display:none}/*!@.button--text-visible*/.button--text-visible.sc-calcite-action{inline-size:100%}/*!@:host([active]) .button,\n:host([active]) .button:hover,\n:host([active]) .button:focus,\n:host([active][loading]) .button*/[active].sc-calcite-action-h .button.sc-calcite-action,[active].sc-calcite-action-h .button.sc-calcite-action:hover,[active].sc-calcite-action-h .button.sc-calcite-action:focus,[active][loading].sc-calcite-action-h .button.sc-calcite-action{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@:host([active]) .button:active*/[active].sc-calcite-action-h .button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-1)}/*!@:host([appearance=transparent]) .button*/[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host([appearance=transparent]) .button:hover,\n:host([appearance=transparent]) .button:focus*/[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:hover,[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:transparent;box-shadow:0 0 0 2px var(--calcite-ui-border-1) inset}/*!@:host([active][appearance=transparent]) .button,\n:host([active][appearance=transparent]) .button:hover,\n:host([active][appearance=transparent]) .button:focus*/[active][appearance=transparent].sc-calcite-action-h .button.sc-calcite-action,[active][appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:hover,[active][appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][loading]) .button,\n:host([appearance=transparent][disabled]) .button*/[appearance=transparent][loading].sc-calcite-action-h .button.sc-calcite-action,[appearance=transparent][disabled].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent}/*!@:host([loading]) .button,\n:host([loading]) .button:hover,\n:host([loading]) .button:focus*/[loading].sc-calcite-action-h .button.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:hover,[loading].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-1)}/*!@:host([loading]) .button .text-container,\n:host([loading]) .button:hover .text-container,\n:host([loading]) .button:focus .text-container*/[loading].sc-calcite-action-h .button.sc-calcite-action .text-container.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:hover .text-container.sc-calcite-action,[loading].sc-calcite-action-h .button.sc-calcite-action:focus .text-container.sc-calcite-action{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([loading]) calcite-loader[inline]*/[loading].sc-calcite-action-h calcite-loader[inline].sc-calcite-action{color:var(--calcite-ui-text-3);margin-inline-end:0px}/*!@:host([disabled]) .button,\n:host([disabled]) .button:hover,\n:host([disabled]) .button:focus*/[disabled].sc-calcite-action-h .button.sc-calcite-action,[disabled].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled].sc-calcite-action-h .button.sc-calcite-action:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled][active]) .button,\n:host([disabled][active]) .button:hover,\n:host([disabled][active]) .button:focus*/[disabled][active].sc-calcite-action-h .button.sc-calcite-action,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([indicator]) .button::after*/[indicator].sc-calcite-action-h .button.sc-calcite-action::after{content:\"\";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;border-width:2px;background-color:var(--calcite-action-indicator-color);border-color:var(--calcite-ui-foreground-1);inset-block-end:0.75rem;inset-inline-end:0.75rem}/*!@:host([indicator]) .button--text-visible::after*/[indicator].sc-calcite-action-h .button--text-visible.sc-calcite-action::after{inset-block-end:auto}/*!@:host([indicator]) .button:hover::after,\n:host([indicator]) .button:focus::after*/[indicator].sc-calcite-action-h .button.sc-calcite-action:hover::after,[indicator].sc-calcite-action-h .button.sc-calcite-action:focus::after{border-color:var(--calcite-ui-foreground-1)}/*!@:host([indicator][scale=s]) .button::after*/[indicator][scale=s].sc-calcite-action-h .button.sc-calcite-action::after{inset-block-end:0.25rem;inset-inline-end:0.25rem}/*!@:host([indicator][scale=s]) .button--text-visible::after*/[indicator][scale=s].sc-calcite-action-h .button--text-visible.sc-calcite-action::after{inset-block-end:auto;inset-inline-end:0.5rem}/*!@:host([indicator][active]) .button::after*/[indicator][active].sc-calcite-action-h .button.sc-calcite-action::after{border-color:var(--calcite-ui-foreground-3)}/*!@.indicator-text*/.indicator-text.sc-calcite-action{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@:host([hidden])*/[hidden].sc-calcite-action-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-action{display:none}";
|
|
8040
|
+
const actionCss = "/*!@:host*/.sc-calcite-action-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-action-h *.sc-calcite-action{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-action-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-action-h *.sc-calcite-action,.sc-calcite-action-h[disabled] .sc-calcite-action-s>*{pointer-events:none}/*!@:host*/.sc-calcite-action-h{display:flex;background-color:transparent;--calcite-action-indicator-color:var(--calcite-ui-brand)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-action-h[disabled] .sc-calcite-action-s>[calcite-hydrated][disabled],[disabled].sc-calcite-action-h [calcite-hydrated][disabled].sc-calcite-action{opacity:1}/*!@.button*/.button.sc-calcite-action{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;background-color:var(--calcite-ui-foreground-1);fill:var(--calcite-ui-text-3);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);outline-color:transparent;text-align:unset;flex:1 0 auto}/*!@.button:hover*/.button.sc-calcite-action:hover{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@.button:focus*/.button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-2);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1);outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.button:active*/.button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-3)}/*!@.button .icon-container*/.button.sc-calcite-action .icon-container.sc-calcite-action{pointer-events:none;margin:0px;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1rem}/*!@.button .text-container*/.button.sc-calcite-action .text-container.sc-calcite-action{margin:0px;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-property:margin;transition-property:inline-size}/*!@.button .text-container--visible*/.button.sc-calcite-action .text-container--visible.sc-calcite-action{inline-size:auto;flex:1 1 auto;opacity:1}/*!@:host([scale=s]) .button*/[scale=s].sc-calcite-action-h .button.sc-calcite-action{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=s]) .button--text-visible .icon-container*/[scale=s].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:0.5rem}/*!@:host([scale=m]) .button*/[scale=m].sc-calcite-action-h .button.sc-calcite-action{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=m]) .button--text-visible .icon-container*/[scale=m].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:0.75rem}/*!@:host([scale=l]) .button*/[scale=l].sc-calcite-action-h .button.sc-calcite-action{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}/*!@:host([scale=l]) .button--text-visible .icon-container*/[scale=l].sc-calcite-action-h .button--text-visible.sc-calcite-action .icon-container.sc-calcite-action{margin-inline-end:1rem}/*!@:host([alignment=center]) .button*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action{justify-content:center}/*!@:host([alignment=end]) .button*/[alignment=end].sc-calcite-action-h .button.sc-calcite-action{justify-content:flex-end}/*!@:host([alignment=center]) .button .text-container--visible,\n:host([alignment=end]) .button .text-container--visible*/[alignment=center].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action,[alignment=end].sc-calcite-action-h .button.sc-calcite-action .text-container--visible.sc-calcite-action{flex:0 1 auto}/*!@:host([scale=s][compact]) .button,\n:host([scale=m][compact]) .button,\n:host([scale=l][compact]) .button*/[scale=s][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=m][compact].sc-calcite-action-h .button.sc-calcite-action,[scale=l][compact].sc-calcite-action-h .button.sc-calcite-action{padding-inline:0px}/*!@.slot-container*/.slot-container.sc-calcite-action{display:flex}/*!@.slot-container--hidden*/.slot-container--hidden.sc-calcite-action{display:none}/*!@.button--text-visible*/.button--text-visible.sc-calcite-action{inline-size:100%}/*!@:host([active]) .button,\n:host([active]) .button:hover,\n:host([active]) .button:focus,\n:host([active][loading]) .button*/[active].sc-calcite-action-h .button.sc-calcite-action,[active].sc-calcite-action-h .button.sc-calcite-action:hover,[active].sc-calcite-action-h .button.sc-calcite-action:focus,[active][loading].sc-calcite-action-h .button.sc-calcite-action{background-color:var(--calcite-ui-foreground-3);fill:var(--calcite-ui-text-1);color:var(--calcite-ui-text-1)}/*!@:host([active]) .button:active*/[active].sc-calcite-action-h .button.sc-calcite-action:active{background-color:var(--calcite-ui-foreground-1)}/*!@:host([appearance=transparent]) .button*/[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent}/*!@:host([appearance=transparent][active]) .button,\n:host([appearance=transparent]) .button:hover,\n:host([appearance=transparent]) .button:focus*/[appearance=transparent][active].sc-calcite-action-h .button.sc-calcite-action,[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:hover,[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-button-transparent-hover)}/*!@:host([appearance=transparent]) .button:active*/[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action:active{background-color:var(--calcite-button-transparent-press)}/*!@:host([appearance=transparent][disabled]) .button*/[appearance=transparent][disabled].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent}/*!@:host([loading][appearance=solid]) .button,\n:host([loading][appearance=solid]) .button:hover,\n:host([loading][appearance=solid]) .button:focus*/[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action,[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action:hover,[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-1)}/*!@:host([loading][appearance=solid]) .button .text-container,\n:host([loading][appearance=solid]) .button:hover .text-container,\n:host([loading][appearance=solid]) .button:focus .text-container*/[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action .text-container.sc-calcite-action,[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action:hover .text-container.sc-calcite-action,[loading][appearance=solid].sc-calcite-action-h .button.sc-calcite-action:focus .text-container.sc-calcite-action{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([loading]) calcite-loader[inline]*/[loading].sc-calcite-action-h calcite-loader[inline].sc-calcite-action{color:var(--calcite-ui-text-3);margin-inline-end:0px}/*!@:host([disabled]) .button,\n:host([disabled]) .button:hover,\n:host([disabled]) .button:focus*/[disabled].sc-calcite-action-h .button.sc-calcite-action,[disabled].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled].sc-calcite-action-h .button.sc-calcite-action:focus{cursor:default;background-color:var(--calcite-ui-foreground-1);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled][active]) .button,\n:host([disabled][active]) .button:hover,\n:host([disabled][active]) .button:focus*/[disabled][active].sc-calcite-action-h .button.sc-calcite-action,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:hover,[disabled][active].sc-calcite-action-h .button.sc-calcite-action:focus{background-color:var(--calcite-ui-foreground-3);opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([appearance=transparent]) .button*/[appearance=transparent].sc-calcite-action-h .button.sc-calcite-action{background-color:transparent;transition-property:box-shadow;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@.indicator-with-icon*/.indicator-with-icon.sc-calcite-action{position:relative}/*!@.indicator-with-icon::after*/.indicator-with-icon.sc-calcite-action::after{content:\"\";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color)}/*!@.indicator-without-icon*/.indicator-without-icon.sc-calcite-action{margin-inline:0.25rem;inline-size:1rem;position:relative}/*!@.indicator-without-icon::after*/.indicator-without-icon.sc-calcite-action::after{content:\"\";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color)}/*!@.indicator-text*/.indicator-text.sc-calcite-action{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@:host([hidden])*/[hidden].sc-calcite-action-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-action{display:none}";
|
|
8009
8041
|
|
|
8010
8042
|
/**
|
|
8011
8043
|
* @slot - A slot for adding a `calcite-icon`.
|
|
@@ -8102,39 +8134,39 @@ class Action {
|
|
|
8102
8134
|
renderTextContainer() {
|
|
8103
8135
|
const { text, textEnabled } = this;
|
|
8104
8136
|
const textContainerClasses = {
|
|
8105
|
-
[CSS$
|
|
8106
|
-
[CSS$
|
|
8137
|
+
[CSS$1g.textContainer]: true,
|
|
8138
|
+
[CSS$1g.textContainerVisible]: textEnabled,
|
|
8107
8139
|
};
|
|
8108
8140
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
8109
8141
|
}
|
|
8110
8142
|
renderIndicatorText() {
|
|
8111
8143
|
const { indicator, messages, indicatorId, buttonId } = this;
|
|
8112
|
-
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$
|
|
8144
|
+
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$1g.indicatorText, id: indicatorId, role: "region" }, indicator ? messages.indicator : null));
|
|
8113
8145
|
}
|
|
8114
8146
|
renderIconContainer() {
|
|
8115
|
-
const { loading, icon, scale, el, iconFlipRtl } = this;
|
|
8147
|
+
const { loading, icon, scale, el, iconFlipRtl, indicator } = this;
|
|
8116
8148
|
const loaderScale = scale === "l" ? "l" : "m";
|
|
8117
8149
|
const calciteLoaderNode = loading ? (hAsync("calcite-loader", { inline: true, label: this.messages.loading, scale: loaderScale })) : null;
|
|
8118
|
-
const calciteIconNode = icon ? (hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: icon, scale: getIconScale(this.scale) })) : null;
|
|
8150
|
+
const calciteIconNode = icon ? (hAsync("calcite-icon", { class: { [CSS$1g.indicatorWithIcon]: indicator }, flipRtl: iconFlipRtl, icon: icon, scale: getIconScale(this.scale) })) : null;
|
|
8119
8151
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
8120
8152
|
const hasIconToDisplay = iconNode || el.children?.length;
|
|
8121
8153
|
const slotContainerNode = (hAsync("div", { class: {
|
|
8122
|
-
[CSS$
|
|
8123
|
-
[CSS$
|
|
8154
|
+
[CSS$1g.slotContainer]: true,
|
|
8155
|
+
[CSS$1g.slotContainerHidden]: loading,
|
|
8124
8156
|
} }, hAsync("slot", null)));
|
|
8125
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
8157
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$1g.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
8126
8158
|
}
|
|
8127
8159
|
render() {
|
|
8128
|
-
const { active, compact, disabled, loading, textEnabled, label, text, indicator, indicatorId, buttonId, messages, } = this;
|
|
8160
|
+
const { active, compact, disabled, icon, loading, textEnabled, label, text, indicator, indicatorId, buttonId, messages, } = this;
|
|
8129
8161
|
const ariaLabel = `${label || text}${indicator ? ` (${messages.indicator})` : ""}`;
|
|
8130
8162
|
const buttonClasses = {
|
|
8131
|
-
[CSS$
|
|
8132
|
-
[CSS$
|
|
8133
|
-
[CSS$
|
|
8163
|
+
[CSS$1g.button]: true,
|
|
8164
|
+
[CSS$1g.buttonTextVisible]: textEnabled,
|
|
8165
|
+
[CSS$1g.buttonCompact]: compact,
|
|
8134
8166
|
};
|
|
8135
8167
|
return (hAsync(Host, null, hAsync("button", { "aria-busy": toAriaBoolean(loading), "aria-controls": indicator ? indicatorId : null, "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, "aria-pressed": toAriaBoolean(active), class: buttonClasses, disabled: disabled, id: buttonId,
|
|
8136
8168
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
8137
|
-
ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), hAsync("slot", { name: SLOTS$y.tooltip, onSlotchange: this.handleTooltipSlotChange }), this.renderIndicatorText()));
|
|
8169
|
+
ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer(), !icon && indicator && hAsync("div", { class: CSS$1g.indicatorWithoutIcon, key: "indicator-no-icon" })), hAsync("slot", { name: SLOTS$y.tooltip, onSlotchange: this.handleTooltipSlotChange }), this.renderIndicatorText()));
|
|
8138
8170
|
}
|
|
8139
8171
|
static get assetsDirs() { return ["assets"]; }
|
|
8140
8172
|
get el() { return getElement(this); }
|
|
@@ -9442,11 +9474,11 @@ const SLOTS$x = {
|
|
|
9442
9474
|
const ICONS$k = {
|
|
9443
9475
|
menu: "ellipsis",
|
|
9444
9476
|
};
|
|
9445
|
-
const CSS$
|
|
9477
|
+
const CSS$1f = {
|
|
9446
9478
|
container: "container",
|
|
9447
9479
|
};
|
|
9448
9480
|
|
|
9449
|
-
const CSS$
|
|
9481
|
+
const CSS$1e = {
|
|
9450
9482
|
menu: "menu",
|
|
9451
9483
|
defaultTrigger: "default-trigger",
|
|
9452
9484
|
};
|
|
@@ -9548,7 +9580,7 @@ const ExpandToggle = ({ expanded, expandText, collapseText, toggle, el, position
|
|
|
9548
9580
|
return actionNode;
|
|
9549
9581
|
};
|
|
9550
9582
|
|
|
9551
|
-
const CSS$
|
|
9583
|
+
const CSS$1d = {
|
|
9552
9584
|
actionGroupEnd: "action-group--end",
|
|
9553
9585
|
};
|
|
9554
9586
|
const SLOTS$v = {
|
|
@@ -9754,7 +9786,7 @@ class ActionBar {
|
|
|
9754
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,
|
|
9755
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)
|
|
9756
9788
|
ref: this.setExpandToggleRef })) : null;
|
|
9757
|
-
return (hAsync("calcite-action-group", { class: CSS$
|
|
9789
|
+
return (hAsync("calcite-action-group", { class: CSS$1d.actionGroupEnd, hidden: this.expandDisabled && !(this.hasActionsEnd || this.hasBottomActions), label: actionsEndGroupLabel, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$v.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), hAsync("slot", { name: SLOTS$v.bottomActions, onSlotchange: this.handleBottomActionsSlotChange }), hAsync("slot", { name: SLOTS$v.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode));
|
|
9758
9790
|
}
|
|
9759
9791
|
render() {
|
|
9760
9792
|
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup()));
|
|
@@ -9882,7 +9914,7 @@ class ActionGroup {
|
|
|
9882
9914
|
return (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], hidden: !hasMenuActions, label: messages.more, onCalciteActionMenuOpen: this.setMenuOpen, open: menuOpen, overlayPositioning: overlayPositioning, placement: layout === "horizontal" ? "bottom-start" : "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$k.menu, scale: scale, slot: SLOTS$w.trigger, text: messages.more, textEnabled: expanded }), hAsync("slot", { name: SLOTS$x.menuActions, onSlotchange: this.handleMenuActionsSlotChange }), hAsync("slot", { name: SLOTS$x.menuTooltip, slot: SLOTS$w.tooltip })));
|
|
9883
9915
|
}
|
|
9884
9916
|
render() {
|
|
9885
|
-
return (hAsync("div", { "aria-label": this.label, class: CSS$
|
|
9917
|
+
return (hAsync("div", { "aria-label": this.label, class: CSS$1f.container, role: "group" }, hAsync("slot", null), this.renderMenu()));
|
|
9886
9918
|
}
|
|
9887
9919
|
static get delegatesFocus() { return true; }
|
|
9888
9920
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -10168,7 +10200,7 @@ class ActionMenu {
|
|
|
10168
10200
|
}
|
|
10169
10201
|
renderMenuButton() {
|
|
10170
10202
|
const { appearance, label, scale, expanded } = this;
|
|
10171
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$w.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { appearance: appearance, class: CSS$
|
|
10203
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$w.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { appearance: appearance, class: CSS$1e.defaultTrigger, icon: ICONS$j.menu, scale: scale, text: label, textEnabled: expanded,
|
|
10172
10204
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10173
10205
|
ref: this.setDefaultMenuButtonEl })));
|
|
10174
10206
|
return menuButtonSlot;
|
|
@@ -10177,7 +10209,7 @@ class ActionMenu {
|
|
|
10177
10209
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements, } = this;
|
|
10178
10210
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
10179
10211
|
const activeDescendantId = activeAction?.id || null;
|
|
10180
|
-
return (hAsync("calcite-popover", { flipPlacements: flipPlacements, focusTrapDisabled: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, pointerDisabled: true, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl?.id, class: CSS$
|
|
10212
|
+
return (hAsync("calcite-popover", { flipPlacements: flipPlacements, focusTrapDisabled: true, label: label, offsetDistance: 0, open: open, overlayPositioning: overlayPositioning, placement: placement, pointerDisabled: true, referenceElement: menuButtonEl }, hAsync("div", { "aria-activedescendant": activeDescendantId, "aria-labelledby": menuButtonEl?.id, class: CSS$1e.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
10181
10213
|
}
|
|
10182
10214
|
render() {
|
|
10183
10215
|
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$w.tooltip, onSlotchange: this.updateTooltip })));
|
|
@@ -10214,7 +10246,7 @@ class ActionMenu {
|
|
|
10214
10246
|
}; }
|
|
10215
10247
|
}
|
|
10216
10248
|
|
|
10217
|
-
const CSS$
|
|
10249
|
+
const CSS$1c = {
|
|
10218
10250
|
actionGroupEnd: "action-group--end",
|
|
10219
10251
|
container: "container",
|
|
10220
10252
|
};
|
|
@@ -10339,10 +10371,10 @@ class ActionPad {
|
|
|
10339
10371
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { collapseText: messages.collapse, el: el, expandText: messages.expand, expanded: expanded, position: position, scale: scale, toggle: toggleExpand, tooltip: this.expandTooltip,
|
|
10340
10372
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10341
10373
|
ref: this.setExpandToggleRef })) : null;
|
|
10342
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
10374
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$1c.actionGroupEnd, label: actionsEndGroupLabel, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$u.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode)) : null;
|
|
10343
10375
|
}
|
|
10344
10376
|
render() {
|
|
10345
|
-
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$
|
|
10377
|
+
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$1c.container }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup())));
|
|
10346
10378
|
}
|
|
10347
10379
|
static get delegatesFocus() { return true; }
|
|
10348
10380
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -10474,7 +10506,7 @@ const SLOTS$t = {
|
|
|
10474
10506
|
message: "message",
|
|
10475
10507
|
link: "link",
|
|
10476
10508
|
};
|
|
10477
|
-
const CSS$
|
|
10509
|
+
const CSS$1b = {
|
|
10478
10510
|
actionsEnd: "actions-end",
|
|
10479
10511
|
close: "close",
|
|
10480
10512
|
container: "container",
|
|
@@ -10496,33 +10528,7 @@ const CSS$19 = {
|
|
|
10496
10528
|
textContainer: "text-container",
|
|
10497
10529
|
};
|
|
10498
10530
|
|
|
10499
|
-
/**
|
|
10500
|
-
* Do not edit directly
|
|
10501
|
-
* Generated on Thu, 16 Nov 2023 00:32:36 GMT
|
|
10502
|
-
*/
|
|
10503
|
-
const CoreBreakpointWidthDefaultXxs = "320px";
|
|
10504
|
-
const CoreBreakpointWidthDefaultXs = "476px";
|
|
10505
|
-
const CoreBreakpointWidthDefaultSm = "768px";
|
|
10506
|
-
const CoreBreakpointWidthDefaultMd = "1152px";
|
|
10507
|
-
const CoreBreakpointWidthDefaultLg = "1440px";
|
|
10508
|
-
|
|
10509
|
-
/**
|
|
10510
|
-
* A breakpoints lookup object.
|
|
10511
|
-
*/
|
|
10512
|
-
const breakpoints = {
|
|
10513
|
-
width: {
|
|
10514
|
-
large: cssLengthToNumber(CoreBreakpointWidthDefaultLg),
|
|
10515
|
-
medium: cssLengthToNumber(CoreBreakpointWidthDefaultMd),
|
|
10516
|
-
small: cssLengthToNumber(CoreBreakpointWidthDefaultSm),
|
|
10517
|
-
xsmall: cssLengthToNumber(CoreBreakpointWidthDefaultXs),
|
|
10518
|
-
xxsmall: cssLengthToNumber(CoreBreakpointWidthDefaultXxs),
|
|
10519
|
-
},
|
|
10520
|
-
};
|
|
10521
|
-
function cssLengthToNumber(length) {
|
|
10522
|
-
return parseInt(length);
|
|
10523
|
-
}
|
|
10524
|
-
|
|
10525
|
-
const alertCss = "/*!@:host*/.sc-calcite-alert-h {\n --calcite-alert-edge-distance: 2rem;\n display: block;\n}\n\n/*!@.container*/.container.sc-calcite-alert {\n pointer-events: none;\n position: fixed;\n z-index: var(--calcite-app-z-index-toast);\n margin-inline: auto;\n margin-block: 0px;\n box-sizing: border-box;\n display: flex;\n inline-size: 100%;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n background-color: var(--calcite-ui-foreground-1);\n text-align: start;\n opacity: 0;\n --tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);\n --tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n container: responsive-container/inline-size;\n border-radius: var(--calcite-border-radius);\n border-block-start: 0 solid transparent;\n border-inline: 1px solid var(--calcite-ui-border-3);\n border-block-end: 1px solid var(--calcite-ui-border-3);\n inline-size: var(--calcite-alert-width);\n max-inline-size: calc(100% - var(--calcite-alert-edge-distance) * 2);\n transition: var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;\n}\n/*!@.container--bottom, .container--top*/.container--bottom.sc-calcite-alert, .container--top.sc-calcite-alert {\n inset-inline-end: 0;\n inset-inline-start: 0;\n}\n/*!@.container[class*=bottom]*/.container[class*=bottom].sc-calcite-alert {\n transform: translate3d(0, var(--calcite-alert-edge-distance), 0);\n inset-block-end: var(--calcite-alert-edge-distance);\n}\n/*!@.container[class*=top]*/.container[class*=top].sc-calcite-alert {\n transform: translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);\n inset-block-start: var(--calcite-alert-edge-distance);\n}\n/*!@.container[class*=start]*/.container[class*=start].sc-calcite-alert {\n inset-inline-start: var(--calcite-alert-edge-distance);\n inset-inline-end: auto;\n}\n/*!@.container[class*=end]*/.container[class*=end].sc-calcite-alert {\n inset-inline-end: var(--calcite-alert-edge-distance);\n inset-inline-start: auto;\n}\n\n/*!@.content*/.content.sc-calcite-alert {\n box-sizing: border-box;\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n padding-block: var(--calcite-alert-spacing-token-small);\n padding-inline: var(--calcite-alert-spacing-token-large) var(--calcite-alert-spacing-token-small);\n}\n\n/*!@.icon*/.icon.sc-calcite-alert {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n padding: 0px;\n margin-block-end: var(--calcite-alert-spacing-token-large);\n margin-inline-end: auto;\n}\n\n/*!@.close*/.close.sc-calcite-alert {\n display: flex;\n cursor: pointer;\n align-items: flex-start;\n justify-content: flex-end;\n align-self: flex-start;\n border-style: none;\n background-color: transparent;\n color: var(--calcite-ui-text-3);\n outline: 2px solid transparent;\n outline-offset: 2px;\n -webkit-appearance: none;\n padding: var(--calcite-alert-spacing-token-large);\n outline-color: transparent;\n}\n/*!@.close:focus*/.close.sc-calcite-alert:focus {\n outline: 2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));\n outline-offset: calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );\n}\n/*!@.close:hover, .close:focus*/.close.sc-calcite-alert:hover, .close.sc-calcite-alert:focus {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n/*!@.close:active*/.close.sc-calcite-alert:active {\n background-color: var(--calcite-ui-foreground-3);\n}\n\n/*!@.queue-count*/.queue-count.sc-calcite-alert {\n visibility: hidden;\n display: flex;\n cursor: default;\n align-items: center;\n justify-content: space-around;\n align-self: stretch;\n overflow: hidden;\n background-color: var(--calcite-ui-foreground-1);\n text-align: center;\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-2);\n opacity: 0;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n border-inline: 0 solid transparent;\n border-start-end-radius: 0;\n}\n/*!@.queue-count--active*/.queue-count--active.sc-calcite-alert {\n visibility: visible;\n opacity: 1;\n}\n\n/*!@.dismiss-progress*/.dismiss-progress.sc-calcite-alert {\n position: absolute;\n display: block;\n inline-size: 100%;\n overflow: hidden;\n inset-inline: 0;\n inset-block-start: -2px;\n block-size: 2px;\n border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0;\n}\n/*!@.dismiss-progress:after*/.dismiss-progress.sc-calcite-alert:after {\n position: absolute;\n inset-block-start: 0px;\n display: block;\n block-size: 2px;\n content: \"\";\n background-color: var(--calcite-alert-dismiss-progress-background);\n inset-inline-end: 0;\n}\n\n/*!@.actions-end*/.actions-end.sc-calcite-alert {\n display: flex;\n align-self: stretch;\n}\n\n/*!@.text-container*/.text-container.sc-calcite-alert {\n display: flex;\n min-inline-size: 0px;\n flex: 1 1 0%;\n flex-direction: column;\n overflow-wrap: break-word;\n}\n\n/*!@.content-container*/.content-container.sc-calcite-alert {\n display: flex;\n flex: 1 1 0%;\n}\n\n/*!@.footer*/.footer.sc-calcite-alert {\n position: relative;\n order: 1;\n display: flex;\n inline-size: 100%;\n justify-content: flex-end;\n padding-block-start: 1px;\n block-size: var(--calcite-alert-footer-height);\n}\n/*!@.footer:before*/.footer.sc-calcite-alert:before {\n content: \"\";\n position: absolute;\n inset-block-start: 0px;\n inset-inline: var(--calcite-alert-footer-divider-gap);\n border-block-start: 1px solid var(--calcite-ui-border-3);\n}\n\n/*!@:host([scale=s])*/[scale=s].sc-calcite-alert-h {\n --calcite-alert-width: 40em;\n --calcite-alert-spacing-token-small: 0.5rem;\n --calcite-alert-spacing-token-large: 0.75rem;\n --calcite-alert-footer-height: 2rem;\n --calcite-alert-footer-divider-gap: 0.125rem;\n}\n/*!@:host([scale=s]) slot[name=title]::slotted(*),\n:host([scale=s]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=s] slot[name=title].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s > [slot=title] {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n}\n/*!@:host([scale=s]) slot[name=message]::slotted(*),\n:host([scale=s]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=s] slot[name=message].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s > [slot=message] {\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n}\n/*!@:host([scale=s]) slot[name=link]::slotted(*),\n:host([scale=s]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=s] slot[name=link].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s > [slot=link] {\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n}\n/*!@:host([scale=s]) .queue-count*/[scale=s].sc-calcite-alert-h .queue-count.sc-calcite-alert {\n margin-inline: 0.5rem;\n}\n/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-alert-h .container.sc-calcite-alert {\n --calcite-alert-min-height: 3.5rem;\n}\n\n/*!@:host([scale=m])*/[scale=m].sc-calcite-alert-h {\n --calcite-alert-width: 50em;\n --calcite-alert-spacing-token-small: 0.75rem;\n --calcite-alert-spacing-token-large: 1rem;\n --calcite-alert-footer-height: 3rem;\n --calcite-alert-footer-divider-gap: 0.25rem;\n}\n/*!@:host([scale=m]) slot[name=title]::slotted(*),\n:host([scale=m]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=m] slot[name=title].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s > [slot=title] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n}\n/*!@:host([scale=m]) slot[name=message]::slotted(*),\n:host([scale=m]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=m] slot[name=message].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s > [slot=message] {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n}\n/*!@:host([scale=m]) slot[name=link]::slotted(*),\n:host([scale=m]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=m] slot[name=link].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s > [slot=link] {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n}\n/*!@:host([scale=m]) .queue-count*/[scale=m].sc-calcite-alert-h .queue-count.sc-calcite-alert {\n margin-inline: 0.75rem;\n}\n/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-alert-h .container.sc-calcite-alert {\n --calcite-alert-min-height: 4.1875rem;\n}\n\n/*!@:host([scale=l])*/[scale=l].sc-calcite-alert-h {\n --calcite-alert-width: 60em;\n --calcite-alert-spacing-token-small: 1rem;\n --calcite-alert-spacing-token-large: 1.25rem;\n --calcite-alert-footer-height: 4rem;\n --calcite-alert-footer-divider-gap: 0.5rem;\n}\n/*!@:host([scale=l]) slot[name=title]::slotted(*),\n:host([scale=l]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=l] slot[name=title].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s > [slot=title] {\n margin-block-end: 0.25rem;\n font-size: var(--calcite-font-size-1);\n line-height: 1.375;\n}\n/*!@:host([scale=l]) slot[name=message]::slotted(*),\n:host([scale=l]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=l] slot[name=message].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s > [slot=message] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n}\n/*!@:host([scale=l]) slot[name=link]::slotted(*),\n:host([scale=l]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=l] slot[name=link].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s > [slot=link] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n}\n/*!@:host([scale=l]) .queue-count*/[scale=l].sc-calcite-alert-h .queue-count.sc-calcite-alert {\n margin-inline: 1rem;\n}\n/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-alert-h .container.sc-calcite-alert {\n --calcite-alert-min-height: 5.625rem;\n}\n\n/*!@:host([open]) .container:not(.container--queued)*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued) {\n border-block-start-width: 2px;\n opacity: 1;\n pointer-events: initial;\n}\n/*!@:host([open]) .container:not(.container--queued)[class*=bottom]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued)[class*=bottom] {\n transform: translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit);\n}\n/*!@:host([open]) .container:not(.container--queued)[class*=top]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued)[class*=top] {\n transform: translate3d(0, var(--calcite-alert-edge-distance), inherit);\n}\n\n/*!@:host([auto-close]) > .queue-count*/[auto-close].sc-calcite-alert-h > .queue-count.sc-calcite-alert {\n border-inline-end: 0 solid transparent;\n}\n\n/*!@slot[name=title]::slotted(*),\n*::slotted([slot=title])*/slot[name=title].sc-calcite-alert-s > *, *.sc-calcite-alert-s > [slot=title] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-1);\n}\n\n/*!@slot[name=message]::slotted(*),\n*::slotted([slot=message])*/slot[name=message].sc-calcite-alert-s > *, *.sc-calcite-alert-s > [slot=message] {\n margin: 0px;\n display: inline;\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n font-weight: var(--calcite-font-weight-normal);\n color: var(--calcite-ui-text-2);\n margin-inline-end: 0.5rem;\n}\n\n/*!@slot[name=link]::slotted(*),\n*::slotted([slot=link])*/slot[name=link].sc-calcite-alert-s > *, *.sc-calcite-alert-s > [slot=link] {\n display: inline-flex;\n color: var(--calcite-ui-text-link);\n}\n\n/*!@:host([kind=brand]) .container*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-brand);\n}\n/*!@:host([kind=brand]) .container .icon*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-brand);\n}\n\n/*!@:host([kind=info]) .container*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-info);\n}\n/*!@:host([kind=info]) .container .icon*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-info);\n}\n\n/*!@:host([kind=danger]) .container*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-danger);\n}\n/*!@:host([kind=danger]) .container .icon*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-danger);\n}\n\n/*!@:host([kind=success]) .container*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-success);\n}\n/*!@:host([kind=success]) .container .icon*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-success);\n}\n\n/*!@:host([kind=warning]) .container*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-warning);\n}\n/*!@:host([kind=warning]) .container .icon*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-warning);\n}\n\n/*!@:host([auto-close-duration=fast]) .dismiss-progress:after*/[auto-close-duration=fast].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after {\n animation: dismissProgress 6000ms ease-out;\n}\n\n/*!@:host(:hover[auto-close-duration=fast]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=fast] .dismiss-progress.sc-calcite-alert:after {\n animation-play-state: paused;\n}\n\n/*!@:host([auto-close-duration=medium]) .dismiss-progress:after*/[auto-close-duration=medium].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after {\n animation: dismissProgress 10000ms ease-out;\n}\n\n/*!@:host(:hover[auto-close-duration=medium]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=medium] .dismiss-progress.sc-calcite-alert:after {\n animation-play-state: paused;\n}\n\n/*!@:host([auto-close-duration=slow]) .dismiss-progress:after*/[auto-close-duration=slow].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after {\n animation: dismissProgress 14000ms ease-out;\n}\n\n/*!@:host(:hover[auto-close-duration=slow]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=slow] .dismiss-progress.sc-calcite-alert:after {\n animation-play-state: paused;\n}\n\n@keyframes dismissProgress {\n 0% {\n inline-size: 0px;\n opacity: 0.75;\n }\n 100% {\n inline-size: 100%;\n opacity: 1;\n }\n}\n\n/*!@.container--slotted-in-shell*/.container--slotted-in-shell.sc-calcite-alert {\n position: absolute;\n}\n\n@container responsive-container (min-width: 476px) {\n .content {\n flex-direction: row;\n }\n .close {\n align-items: center;\n align-self: stretch;\n }\n .icon {\n justify-content: center;\n margin-inline-end: 0;\n margin-block: 0;\n padding-inline-end: var(--calcite-alert-spacing-token-large);\n }\n}\n@container responsive-container (min-width: 768px) {\n .close {\n align-self: stretch;\n }\n .footer {\n inline-size: auto;\n align-self: stretch;\n order: initial;\n block-size: inherit;\n }\n .footer:before {\n content: none;\n }\n .icon {\n padding-inline: var(--calcite-alert-spacing-token-large) 0;\n }\n}\n/*!@:host([hidden])*/[hidden].sc-calcite-alert-h {\n display: none;\n}\n\n/*!@[hidden]*/[hidden].sc-calcite-alert {\n display: none;\n}\n\n/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-alert-h {\n visibility: hidden !important;\n pointer-events: none;\n}";
|
|
10531
|
+
const alertCss = "/*!@:host*/.sc-calcite-alert-h{--calcite-alert-edge-distance:2rem;display:block}/*!@.container*/.container.sc-calcite-alert{pointer-events:none;position:fixed;z-index:var(--calcite-app-z-index-toast);margin-inline:auto;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;min-inline-size:min-content;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);text-align:start;opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);container:responsive-container/inline-size;border-radius:var(--calcite-border-radius);border-block-start:0 solid transparent;border-inline:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - var(--calcite-alert-edge-distance) * 2);transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@.container--bottom, .container--top*/.container--bottom.sc-calcite-alert,.container--top.sc-calcite-alert{inset-inline-end:0;inset-inline-start:0}/*!@.container[class*=bottom]*/.container[class*=bottom].sc-calcite-alert{transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}/*!@.container[class*=top]*/.container[class*=top].sc-calcite-alert{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}/*!@.container[class*=start]*/.container[class*=start].sc-calcite-alert{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}/*!@.container[class*=end]*/.container[class*=end].sc-calcite-alert{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}/*!@.icon*/.icon.sc-calcite-alert{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0px;margin-block:auto;margin-inline-end:auto;padding-inline-start:var(--calcite-alert-spacing-token-large)}/*!@.close*/.close.sc-calcite-alert{display:flex;cursor:pointer;align-items:center;justify-content:flex-end;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;-webkit-appearance:none;padding:var(--calcite-alert-spacing-token-large);outline-color:transparent}/*!@.close:focus*/.close.sc-calcite-alert:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.close:hover, .close:focus*/.close.sc-calcite-alert:hover,.close.sc-calcite-alert:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.close:active*/.close.sc-calcite-alert:active{background-color:var(--calcite-ui-foreground-3)}/*!@.queue-count*/.queue-count.sc-calcite-alert{visibility:hidden;display:flex;min-inline-size:min-content;cursor:default;align-items:center;justify-content:space-around;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0 solid transparent;border-start-end-radius:0}/*!@.queue-count--active*/.queue-count--active.sc-calcite-alert{visibility:visible;opacity:1}/*!@.dismiss-progress*/.dismiss-progress.sc-calcite-alert{position:absolute;display:block;inline-size:100%;overflow:hidden;inset-inline:0;inset-block-start:-2px;block-size:2px;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}/*!@.dismiss-progress:after*/.dismiss-progress.sc-calcite-alert:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:\"\";background-color:var(--calcite-alert-dismiss-progress-background);inset-inline-end:0}/*!@.actions-end*/.actions-end.sc-calcite-alert{display:flex;align-self:stretch}/*!@.text-container*/.text-container.sc-calcite-alert{box-sizing:border-box;display:flex;min-inline-size:0px;flex:1 1 auto;flex-direction:column;overflow-wrap:break-word;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large) var(--calcite-alert-spacing-token-small)}/*!@.footer*/.footer.sc-calcite-alert{position:relative;display:flex;inline-size:auto;justify-content:flex-end;align-self:stretch;padding-block-start:1px;block-size:inherit}/*!@:host([scale=s])*/[scale=s].sc-calcite-alert-h{--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem;--calcite-alert-footer-height:2rem;--calcite-alert-footer-divider-gap:0.125rem}/*!@:host([scale=s]) slot[name=title]::slotted(*),\n:host([scale=s]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=s] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=s]) slot[name=message]::slotted(*),\n:host([scale=s]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=s] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) slot[name=link]::slotted(*),\n:host([scale=s]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=s] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) .queue-count*/[scale=s].sc-calcite-alert-h .queue-count.sc-calcite-alert{margin-inline:0.5rem}/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:3.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-alert-h{--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem;--calcite-alert-footer-height:3rem;--calcite-alert-footer-divider-gap:0.25rem}/*!@:host([scale=m]) slot[name=title]::slotted(*),\n:host([scale=m]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=m] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=m]) slot[name=message]::slotted(*),\n:host([scale=m]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=m] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) slot[name=link]::slotted(*),\n:host([scale=m]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=m] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) .queue-count*/[scale=m].sc-calcite-alert-h .queue-count.sc-calcite-alert{margin-inline:0.75rem}/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:4.1875rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-alert-h{--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem;--calcite-alert-footer-height:4rem;--calcite-alert-footer-divider-gap:0.5rem}/*!@:host([scale=l]) slot[name=title]::slotted(*),\n:host([scale=l]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=l] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=title]{margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}/*!@:host([scale=l]) slot[name=message]::slotted(*),\n:host([scale=l]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=l] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) slot[name=link]::slotted(*),\n:host([scale=l]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=l] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) .queue-count*/[scale=l].sc-calcite-alert-h .queue-count.sc-calcite-alert{margin-inline:1rem}/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:5.625rem}/*!@:host([open]) .container:not(.container--queued)*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued){border-block-start-width:2px;opacity:1;pointer-events:initial}/*!@:host([open]) .container:not(.container--queued)[class*=bottom]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued)[class*=bottom]{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}/*!@:host([open]) .container:not(.container--queued)[class*=top]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued)[class*=top]{transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}/*!@:host([auto-close]) > .queue-count*/[auto-close].sc-calcite-alert-h>.queue-count.sc-calcite-alert{border-inline-end:0 solid transparent}/*!@slot[name=title]::slotted(*),\n*::slotted([slot=title])*/slot[name=title].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@slot[name=message]::slotted(*),\n*::slotted([slot=message])*/slot[name=message].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=message]{margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin-inline-end:0.5rem}/*!@slot[name=link]::slotted(*),\n*::slotted([slot=link])*/slot[name=link].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=link]{display:inline-flex;color:var(--calcite-ui-text-link)}/*!@:host([kind=brand]) .container*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-brand)}/*!@:host([kind=brand]) .container .icon*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert{color:var(--calcite-ui-brand)}/*!@:host([kind=info]) .container*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-info)}/*!@:host([kind=info]) .container .icon*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert{color:var(--calcite-ui-info)}/*!@:host([kind=danger]) .container*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-danger)}/*!@:host([kind=danger]) .container .icon*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert{color:var(--calcite-ui-danger)}/*!@:host([kind=success]) .container*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-success)}/*!@:host([kind=success]) .container .icon*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert{color:var(--calcite-ui-success)}/*!@:host([kind=warning]) .container*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-warning)}/*!@:host([kind=warning]) .container .icon*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert{color:var(--calcite-ui-warning)}/*!@:host([auto-close-duration=fast]) .dismiss-progress:after*/[auto-close-duration=fast].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 6000ms ease-out}/*!@:host(:hover[auto-close-duration=fast]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=fast] .dismiss-progress.sc-calcite-alert:after{animation-play-state:paused}/*!@:host([auto-close-duration=medium]) .dismiss-progress:after*/[auto-close-duration=medium].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 10000ms ease-out}/*!@:host(:hover[auto-close-duration=medium]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=medium] .dismiss-progress.sc-calcite-alert:after{animation-play-state:paused}/*!@:host([auto-close-duration=slow]) .dismiss-progress:after*/[auto-close-duration=slow].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 14000ms ease-out}/*!@:host(:hover[auto-close-duration=slow]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=slow] .dismiss-progress.sc-calcite-alert:after{animation-play-state:paused}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}/*!@.container--slotted-in-shell*/.container--slotted-in-shell.sc-calcite-alert{position:absolute}/*!@:host([hidden])*/[hidden].sc-calcite-alert-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-alert{display:none}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-alert-h{visibility:hidden !important;pointer-events:none}";
|
|
10526
10532
|
|
|
10527
10533
|
/**
|
|
10528
10534
|
* Alerts are meant to provide a way to communicate urgent or important information to users, frequently as a result of an action they took in your app. Alerts are positioned
|
|
@@ -10544,7 +10550,6 @@ class Alert {
|
|
|
10544
10550
|
this.calciteInternalAlertSync = createEvent(this, "calciteInternalAlertSync", 6);
|
|
10545
10551
|
this.calciteInternalAlertRegister = createEvent(this, "calciteInternalAlertRegister", 6);
|
|
10546
10552
|
this.autoCloseTimeoutId = null;
|
|
10547
|
-
this.resizeObserver = createObserver();
|
|
10548
10553
|
this.totalOpenTime = 0;
|
|
10549
10554
|
this.totalHoverTime = 0;
|
|
10550
10555
|
this.openTransitionProp = "opacity";
|
|
@@ -10598,7 +10603,6 @@ class Alert {
|
|
|
10598
10603
|
this.queue = [];
|
|
10599
10604
|
this.queueLength = 0;
|
|
10600
10605
|
this.queued = false;
|
|
10601
|
-
this.responsiveContainerWidth = undefined;
|
|
10602
10606
|
}
|
|
10603
10607
|
openHandler() {
|
|
10604
10608
|
onToggleOpenCloseComponent(this);
|
|
@@ -10631,9 +10635,6 @@ class Alert {
|
|
|
10631
10635
|
if (open && !this.queued) {
|
|
10632
10636
|
this.calciteInternalAlertRegister.emit();
|
|
10633
10637
|
}
|
|
10634
|
-
if (this.transitionEl) {
|
|
10635
|
-
this.resizeObserver?.observe(this.transitionEl);
|
|
10636
|
-
}
|
|
10637
10638
|
}
|
|
10638
10639
|
async componentWillLoad() {
|
|
10639
10640
|
setUpLoadableComponent(this);
|
|
@@ -10644,7 +10645,6 @@ class Alert {
|
|
|
10644
10645
|
}
|
|
10645
10646
|
componentDidLoad() {
|
|
10646
10647
|
setComponentLoaded(this);
|
|
10647
|
-
this.resizeObserver?.observe(this.transitionEl);
|
|
10648
10648
|
}
|
|
10649
10649
|
disconnectedCallback() {
|
|
10650
10650
|
window.dispatchEvent(new CustomEvent("calciteInternalAlertUnregister", {
|
|
@@ -10655,7 +10655,6 @@ class Alert {
|
|
|
10655
10655
|
disconnectLocalized(this);
|
|
10656
10656
|
disconnectMessages(this);
|
|
10657
10657
|
this.slottedInShell = false;
|
|
10658
|
-
this.resizeObserver?.disconnect();
|
|
10659
10658
|
}
|
|
10660
10659
|
render() {
|
|
10661
10660
|
numberStringFormatter.numberFormatOptions = {
|
|
@@ -10663,26 +10662,22 @@ class Alert {
|
|
|
10663
10662
|
numberingSystem: this.numberingSystem,
|
|
10664
10663
|
signDisplay: "always",
|
|
10665
10664
|
};
|
|
10666
|
-
const {
|
|
10667
|
-
const { open, autoClose, responsiveContainerWidth, label, placement, queued } = this;
|
|
10665
|
+
const { open, autoClose, label, placement, queued } = this;
|
|
10668
10666
|
const role = autoClose ? "alert" : "alertdialog";
|
|
10669
|
-
const widthBreakpoints = breakpoints.width;
|
|
10670
|
-
const lessThanSmall = responsiveContainerWidth < widthBreakpoints.small;
|
|
10671
|
-
const greaterOrEqualThanSmall = responsiveContainerWidth >= widthBreakpoints.small;
|
|
10672
10667
|
const hidden = !open;
|
|
10673
10668
|
const effectiveIcon = setRequestedIcon(KindIcons, this.icon, this.kind);
|
|
10674
10669
|
const hasQueuedAlerts = this.queueLength > 1;
|
|
10675
10670
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, hAsync("div", { class: {
|
|
10676
|
-
[CSS$
|
|
10677
|
-
[CSS$
|
|
10678
|
-
[`${CSS$
|
|
10679
|
-
[CSS$
|
|
10671
|
+
[CSS$1b.container]: true,
|
|
10672
|
+
[CSS$1b.containerQueued]: queued,
|
|
10673
|
+
[`${CSS$1b.container}--${placement}`]: true,
|
|
10674
|
+
[CSS$1b.containerSlottedInShell]: this.slottedInShell,
|
|
10680
10675
|
}, onPointerEnter: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : null, onPointerLeave: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseLeave : null,
|
|
10681
10676
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10682
|
-
ref: this.setTransitionEl },
|
|
10677
|
+
ref: this.setTransitionEl }, effectiveIcon && this.renderIcon(effectiveIcon), hAsync("div", { class: CSS$1b.textContainer }, hAsync("slot", { name: SLOTS$t.title }), hAsync("slot", { name: SLOTS$t.message }), hAsync("slot", { name: SLOTS$t.link })), this.renderActionsEnd(), hasQueuedAlerts ? this.renderQueueCount() : null, this.renderCloseButton(), open && !queued && autoClose ? hAsync("div", { class: CSS$1b.dismissProgress }) : null)));
|
|
10683
10678
|
}
|
|
10684
10679
|
renderCloseButton() {
|
|
10685
|
-
return (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
10680
|
+
return (hAsync("button", { "aria-label": this.messages.close, class: CSS$1b.close, key: "close", onClick: this.closeAlert, type: "button",
|
|
10686
10681
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10687
10682
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })));
|
|
10688
10683
|
}
|
|
@@ -10690,15 +10685,15 @@ class Alert {
|
|
|
10690
10685
|
const queueNumber = this.queueLength > 2 ? this.queueLength - 1 : 1;
|
|
10691
10686
|
const queueText = numberStringFormatter.numberFormatter.format(queueNumber);
|
|
10692
10687
|
return (hAsync("div", { class: {
|
|
10693
|
-
[CSS$
|
|
10694
|
-
[CSS$
|
|
10688
|
+
[CSS$1b.queueCount]: true,
|
|
10689
|
+
[CSS$1b.queueCountActive]: this.queueLength > 1,
|
|
10695
10690
|
}, key: "queue-count" }, hAsync("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
10696
10691
|
}
|
|
10697
10692
|
renderActionsEnd() {
|
|
10698
|
-
return (hAsync("div", { class: CSS$
|
|
10693
|
+
return (hAsync("div", { class: CSS$1b.actionsEnd }, hAsync("slot", { name: SLOTS$t.actionsEnd, onSlotchange: this.actionsEndSlotChangeHandler })));
|
|
10699
10694
|
}
|
|
10700
10695
|
renderIcon(icon) {
|
|
10701
|
-
return (hAsync("div", { class: CSS$
|
|
10696
|
+
return (hAsync("div", { class: CSS$1b.icon }, hAsync("calcite-icon", { flipRtl: this.iconFlipRtl, icon: icon, scale: getIconScale(this.scale) })));
|
|
10702
10697
|
}
|
|
10703
10698
|
// when an alert is opened or closed, update queue and determine active alert
|
|
10704
10699
|
alertSync(event) {
|
|
@@ -10810,7 +10805,6 @@ class Alert {
|
|
|
10810
10805
|
"queue": [32],
|
|
10811
10806
|
"queueLength": [32],
|
|
10812
10807
|
"queued": [32],
|
|
10813
|
-
"responsiveContainerWidth": [32],
|
|
10814
10808
|
"setFocus": [64]
|
|
10815
10809
|
},
|
|
10816
10810
|
"$listeners$": [[8, "calciteInternalAlertSync", "alertSync"], [8, "calciteInternalAlertRegister", "alertRegister"], [8, "calciteInternalAlertUnregister", "alertUnregister"]],
|
|
@@ -11170,7 +11164,7 @@ const IDS$1 = {
|
|
|
11170
11164
|
toggle: "toggle",
|
|
11171
11165
|
header: "header",
|
|
11172
11166
|
};
|
|
11173
|
-
const CSS$
|
|
11167
|
+
const CSS$1a = {
|
|
11174
11168
|
button: "button",
|
|
11175
11169
|
container: "container",
|
|
11176
11170
|
content: "content",
|
|
@@ -11320,27 +11314,27 @@ class Block {
|
|
|
11320
11314
|
renderIcon() {
|
|
11321
11315
|
const { loading, messages, status } = this;
|
|
11322
11316
|
const hasSlottedIcon = !!getSlotted(this.el, SLOTS$s.icon);
|
|
11323
|
-
return loading ? (hAsync("div", { class: CSS$
|
|
11324
|
-
[CSS$
|
|
11325
|
-
[CSS$
|
|
11326
|
-
[CSS$
|
|
11327
|
-
}, icon: ICONS$h[status], scale: "s" }))) : hasSlottedIcon ? (hAsync("div", { class: CSS$
|
|
11317
|
+
return loading ? (hAsync("div", { class: CSS$1a.icon, key: "loader" }, hAsync("calcite-loader", { inline: true, label: messages.loading }))) : !!status ? (hAsync("div", { class: CSS$1a.icon, key: "status-icon" }, hAsync("calcite-icon", { class: {
|
|
11318
|
+
[CSS$1a.statusIcon]: true,
|
|
11319
|
+
[CSS$1a.valid]: status == "valid",
|
|
11320
|
+
[CSS$1a.invalid]: status == "invalid",
|
|
11321
|
+
}, icon: ICONS$h[status], scale: "s" }))) : hasSlottedIcon ? (hAsync("div", { class: CSS$1a.icon, key: "icon-slot" }, hAsync("slot", { key: "icon-slot", name: SLOTS$s.icon }))) : null;
|
|
11328
11322
|
}
|
|
11329
11323
|
renderTitle() {
|
|
11330
11324
|
const { heading, headingLevel, description } = this;
|
|
11331
|
-
return heading || description ? (hAsync("div", { class: CSS$
|
|
11325
|
+
return heading || description ? (hAsync("div", { class: CSS$1a.title }, hAsync(Heading, { class: CSS$1a.heading, level: headingLevel }, heading), description ? hAsync("div", { class: CSS$1a.description }, description) : null)) : null;
|
|
11332
11326
|
}
|
|
11333
11327
|
render() {
|
|
11334
11328
|
const { collapsible, el, loading, open, messages } = this;
|
|
11335
11329
|
const toggleLabel = open ? messages.collapse : messages.expand;
|
|
11336
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
11330
|
+
const headerContent = (hAsync("header", { class: CSS$1a.header, id: IDS$1.header }, this.renderIcon(), this.renderTitle()));
|
|
11337
11331
|
const hasControl = !!getSlotted(el, SLOTS$s.control);
|
|
11338
11332
|
const hasMenuActions = !!getSlotted(el, SLOTS$s.headerMenuActions);
|
|
11339
11333
|
const collapseIcon = open ? ICONS$h.opened : ICONS$h.closed;
|
|
11340
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
11334
|
+
const headerNode = (hAsync("div", { class: CSS$1a.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-controls": IDS$1.content, "aria-describedby": IDS$1.header, "aria-expanded": collapsible ? toAriaBoolean(open) : null, class: CSS$1a.toggle, id: IDS$1.toggle, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$1a.toggleIcon, icon: collapseIcon, scale: "s" }))) : (headerContent), hasControl ? (hAsync("div", { class: CSS$1a.controlContainer }, hAsync("slot", { name: SLOTS$s.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: messages.options }, hAsync("slot", { name: SLOTS$s.headerMenuActions }))) : null));
|
|
11341
11335
|
return (hAsync(Host, null, hAsync("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
11342
|
-
[CSS$
|
|
11343
|
-
} }, headerNode, hAsync("section", { "aria-labelledby": IDS$1.toggle, class: CSS$
|
|
11336
|
+
[CSS$1a.container]: true,
|
|
11337
|
+
} }, headerNode, hAsync("section", { "aria-labelledby": IDS$1.toggle, class: CSS$1a.content, hidden: !open, id: IDS$1.content,
|
|
11344
11338
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
11345
11339
|
ref: this.setTransitionEl }, this.renderScrim()))));
|
|
11346
11340
|
}
|
|
@@ -11381,7 +11375,7 @@ const IDS = {
|
|
|
11381
11375
|
content: "content",
|
|
11382
11376
|
toggle: "toggle",
|
|
11383
11377
|
};
|
|
11384
|
-
const CSS$
|
|
11378
|
+
const CSS$19 = {
|
|
11385
11379
|
content: "content",
|
|
11386
11380
|
focusGuard: "focus-guard",
|
|
11387
11381
|
invalid: "invalid",
|
|
@@ -11485,9 +11479,9 @@ class BlockSection {
|
|
|
11485
11479
|
const { status } = this;
|
|
11486
11480
|
const statusIcon = ICONS$g[status] ?? false;
|
|
11487
11481
|
const statusIconClasses = {
|
|
11488
|
-
[CSS$
|
|
11489
|
-
[CSS$
|
|
11490
|
-
[CSS$
|
|
11482
|
+
[CSS$19.statusIcon]: true,
|
|
11483
|
+
[CSS$19.valid]: status == "valid",
|
|
11484
|
+
[CSS$19.invalid]: status == "invalid",
|
|
11491
11485
|
};
|
|
11492
11486
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
11493
11487
|
}
|
|
@@ -11501,15 +11495,15 @@ class BlockSection {
|
|
|
11501
11495
|
: ICONS$g.menuClosedRight;
|
|
11502
11496
|
const toggleLabel = open ? messages.collapse : messages.expand;
|
|
11503
11497
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { class: {
|
|
11504
|
-
[CSS$
|
|
11498
|
+
[CSS$19.toggleSwitchContainer]: true,
|
|
11505
11499
|
} }, hAsync("div", { "aria-controls": IDS.content, "aria-expanded": toAriaBoolean(open), class: {
|
|
11506
|
-
[CSS$
|
|
11507
|
-
[CSS$
|
|
11508
|
-
}, id: IDS.toggle, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, role: "button", tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
11509
|
-
[CSS$
|
|
11510
|
-
[CSS$
|
|
11511
|
-
}, id: IDS.toggle, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
11512
|
-
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-labelledby": IDS.toggle, class: CSS$
|
|
11500
|
+
[CSS$19.toggle]: true,
|
|
11501
|
+
[CSS$19.toggleSwitch]: true,
|
|
11502
|
+
}, id: IDS.toggle, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, role: "button", tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$19.toggleSwitchContent }, hAsync("span", { class: CSS$19.toggleSwitchText }, text)), this.renderStatusIcon()), hAsync("calcite-label", { class: CSS$19.focusGuard, layout: "inline", tabIndex: -1 }, hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s" })))) : (hAsync("button", { "aria-controls": IDS.content, "aria-expanded": toAriaBoolean(open), class: {
|
|
11503
|
+
[CSS$19.sectionHeader]: true,
|
|
11504
|
+
[CSS$19.toggle]: true,
|
|
11505
|
+
}, id: IDS.toggle, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$19.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
11506
|
+
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-labelledby": IDS.toggle, class: CSS$19.content, hidden: !open, id: IDS.content }, hAsync("slot", null))));
|
|
11513
11507
|
}
|
|
11514
11508
|
static get assetsDirs() { return ["assets"]; }
|
|
11515
11509
|
get el() { return getElement(this); }
|
|
@@ -11911,7 +11905,7 @@ function onLabelDisconnected() {
|
|
|
11911
11905
|
document.addEventListener(labelConnectedEvent, boundOnLabelConnected);
|
|
11912
11906
|
}
|
|
11913
11907
|
|
|
11914
|
-
const CSS$
|
|
11908
|
+
const CSS$18 = {
|
|
11915
11909
|
buttonLoader: "calcite-button--loader",
|
|
11916
11910
|
content: "content",
|
|
11917
11911
|
contentSlotted: "content--slotted",
|
|
@@ -12105,17 +12099,17 @@ class Button {
|
|
|
12105
12099
|
render() {
|
|
12106
12100
|
const childElType = this.href ? "a" : "button";
|
|
12107
12101
|
const Tag = childElType;
|
|
12108
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$
|
|
12102
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$18.buttonLoader }, hAsync("calcite-loader", { class: this.loading ? CSS$18.loadingIn : CSS$18.loadingOut, inline: true, label: this.messages.loading, scale: this.scale === "l" ? "m" : "s" }))) : null;
|
|
12109
12103
|
const noStartEndIcons = !this.iconStart && !this.iconEnd;
|
|
12110
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
12111
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
12112
|
-
const contentEl = (hAsync("span", { class: CSS$
|
|
12104
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$18.icon]: true, [CSS$18.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: getIconScale(this.scale) }));
|
|
12105
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$18.icon]: true, [CSS$18.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: getIconScale(this.scale) }));
|
|
12106
|
+
const contentEl = (hAsync("span", { class: CSS$18.content, ref: (el) => (this.contentEl = el) }, hAsync("slot", null)));
|
|
12113
12107
|
return (hAsync(Tag, { "aria-label": !this.loading ? getLabelText(this) : this.messages.loading, "aria-live": "polite", class: {
|
|
12114
|
-
[CSS$
|
|
12115
|
-
[CSS$
|
|
12116
|
-
[CSS$
|
|
12117
|
-
[CSS$
|
|
12118
|
-
[CSS$
|
|
12108
|
+
[CSS$18.buttonPadding]: noStartEndIcons,
|
|
12109
|
+
[CSS$18.buttonPaddingShrunk]: !noStartEndIcons,
|
|
12110
|
+
[CSS$18.contentSlotted]: this.hasContent,
|
|
12111
|
+
[CSS$18.iconStartEmpty]: !this.iconStart,
|
|
12112
|
+
[CSS$18.iconEndEmpty]: !this.iconEnd,
|
|
12119
12113
|
}, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, rel: childElType === "a" && this.rel, tabIndex: this.disabled || this.loading ? -1 : null, target: childElType === "a" && this.target, title: this.tooltipText, type: childElType === "button" && this.type, ...this.globalAttributes,
|
|
12120
12114
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12121
12115
|
ref: this.setChildEl }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
@@ -12372,7 +12366,7 @@ class CalciteMenu {
|
|
|
12372
12366
|
}; }
|
|
12373
12367
|
}
|
|
12374
12368
|
|
|
12375
|
-
const CSS$
|
|
12369
|
+
const CSS$17 = {
|
|
12376
12370
|
container: "container",
|
|
12377
12371
|
content: "content",
|
|
12378
12372
|
dropdownVertical: "dropdown--vertical",
|
|
@@ -12576,54 +12570,54 @@ class CalciteMenuItem {
|
|
|
12576
12570
|
//
|
|
12577
12571
|
//--------------------------------------------------------------------------
|
|
12578
12572
|
renderIconStart() {
|
|
12579
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12573
|
+
return (hAsync("calcite-icon", { class: `${CSS$17.icon} ${CSS$17.iconStart}`, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, key: CSS$17.iconStart, scale: "s" }));
|
|
12580
12574
|
}
|
|
12581
12575
|
renderIconEnd() {
|
|
12582
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12576
|
+
return (hAsync("calcite-icon", { class: `${CSS$17.icon} ${CSS$17.iconEnd}`, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, key: CSS$17.iconEnd, scale: "s" }));
|
|
12583
12577
|
}
|
|
12584
12578
|
renderBreadcrumbIcon(dir) {
|
|
12585
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12579
|
+
return (hAsync("calcite-icon", { class: `${CSS$17.icon} ${CSS$17.iconBreadcrumb}`, icon: dir === "rtl" ? "chevron-left" : "chevron-right", key: CSS$17.iconBreadcrumb, scale: "s" }));
|
|
12586
12580
|
}
|
|
12587
12581
|
renderDropdownIcon(dir) {
|
|
12588
12582
|
const dirChevron = dir === "rtl" ? "chevron-left" : "chevron-right";
|
|
12589
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12583
|
+
return (hAsync("calcite-icon", { class: `${CSS$17.icon} ${CSS$17.iconDropdown}`, icon: this.topLevelMenuLayout === "vertical" || this.isTopLevelItem
|
|
12590
12584
|
? this.open
|
|
12591
12585
|
? "chevron-up"
|
|
12592
12586
|
: "chevron-down"
|
|
12593
|
-
: dirChevron, key: CSS$
|
|
12587
|
+
: dirChevron, key: CSS$17.iconDropdown, scale: "s" }));
|
|
12594
12588
|
}
|
|
12595
12589
|
renderDropdownAction(dir) {
|
|
12596
12590
|
const dirChevron = dir === "rtl" ? "chevron-left" : "chevron-right";
|
|
12597
|
-
return (hAsync("calcite-action", { class: CSS$
|
|
12591
|
+
return (hAsync("calcite-action", { class: CSS$17.dropdownAction, icon: this.topLevelMenuLayout === "vertical" || this.isTopLevelItem
|
|
12598
12592
|
? this.open
|
|
12599
12593
|
? "chevron-up"
|
|
12600
12594
|
: "chevron-down"
|
|
12601
|
-
: dirChevron, key: CSS$
|
|
12595
|
+
: dirChevron, key: CSS$17.dropdownAction, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, text: this.messages.open,
|
|
12602
12596
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12603
12597
|
ref: (el) => (this.dropdownActionEl = el) }));
|
|
12604
12598
|
}
|
|
12605
12599
|
renderSubmenuItems(dir) {
|
|
12606
12600
|
return (hAsync("calcite-menu", { class: {
|
|
12607
|
-
[CSS$
|
|
12608
|
-
[CSS$
|
|
12609
|
-
[CSS$
|
|
12601
|
+
[CSS$17.dropdownMenuItems]: true,
|
|
12602
|
+
[CSS$17.open]: this.open,
|
|
12603
|
+
[CSS$17.nested]: !this.isTopLevelItem,
|
|
12610
12604
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
12611
|
-
[CSS$
|
|
12605
|
+
[CSS$17.dropdownVertical]: this.topLevelMenuLayout === "vertical",
|
|
12612
12606
|
}, label: this.messages.submenu, layout: "vertical", role: "menu" }, hAsync("slot", { name: "submenu-item", onSlotchange: this.handleMenuItemSlotChange })));
|
|
12613
12607
|
}
|
|
12614
12608
|
renderHrefIcon(dir) {
|
|
12615
|
-
return (hAsync("calcite-icon", { class: CSS$
|
|
12609
|
+
return (hAsync("calcite-icon", { class: CSS$17.hoverHrefIcon, icon: dir === "rtl" ? "arrow-left" : "arrow-right", key: CSS$17.hoverHrefIcon, scale: "s" }));
|
|
12616
12610
|
}
|
|
12617
12611
|
renderItemContent(dir) {
|
|
12618
12612
|
const hasHref = this.href && (this.topLevelMenuLayout === "vertical" || !this.isTopLevelItem);
|
|
12619
|
-
return (hAsync(Fragment, null, this.iconStart && this.renderIconStart(), hAsync("div", { class: CSS$
|
|
12613
|
+
return (hAsync(Fragment, null, this.iconStart && this.renderIconStart(), hAsync("div", { class: CSS$17.textContainer }, hAsync("span", null, this.text)), hasHref && this.renderHrefIcon(dir), this.iconEnd && this.renderIconEnd(), this.breadcrumb ? this.renderBreadcrumbIcon(dir) : null, !this.href && this.hasSubmenu ? this.renderDropdownIcon(dir) : null));
|
|
12620
12614
|
}
|
|
12621
12615
|
render() {
|
|
12622
12616
|
const dir = getElementDir(this.el);
|
|
12623
12617
|
return (hAsync(Host, { onBlur: this.blurHandler, onFocus: this.focusHandler }, hAsync("li", { class: {
|
|
12624
|
-
[CSS$
|
|
12625
|
-
[CSS$
|
|
12626
|
-
}, role: "none" }, hAsync("div", { class: CSS$
|
|
12618
|
+
[CSS$17.container]: true,
|
|
12619
|
+
[CSS$17.isParentVertical]: this.topLevelMenuLayout === "vertical",
|
|
12620
|
+
}, role: "none" }, hAsync("div", { class: CSS$17.itemContent }, hAsync("a", { "aria-current": this.isFocused ? "page" : false, "aria-expanded": this.open, "aria-haspopup": this.hasSubmenu, "aria-label": this.label, class: { [CSS$17.layoutVertical]: this.layout === "vertical", [CSS$17.content]: true }, href: this.href, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, rel: this.rel, role: "menuitem", tabIndex: this.isTopLevelItem ? 0 : -1, target: this.target,
|
|
12627
12621
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12628
12622
|
ref: (el) => (this.anchorEl = el) }, this.renderItemContent(dir)), this.href && this.hasSubmenu ? this.renderDropdownAction(dir) : null), this.renderSubmenuItems(dir))));
|
|
12629
12623
|
}
|
|
@@ -12666,7 +12660,7 @@ class CalciteMenuItem {
|
|
|
12666
12660
|
}; }
|
|
12667
12661
|
}
|
|
12668
12662
|
|
|
12669
|
-
const CSS$
|
|
12663
|
+
const CSS$16 = {
|
|
12670
12664
|
container: "container",
|
|
12671
12665
|
containerContent: "container-content",
|
|
12672
12666
|
hasProgress: "progress-bar",
|
|
@@ -12815,11 +12809,11 @@ class CalciteNavigation {
|
|
|
12815
12809
|
this.navigationAction;
|
|
12816
12810
|
const slotName = this.el.slot;
|
|
12817
12811
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
12818
|
-
[CSS$
|
|
12819
|
-
[CSS$
|
|
12820
|
-
[CSS$
|
|
12821
|
-
[CSS$
|
|
12822
|
-
} }, hAsync("div", { class: { [CSS$
|
|
12812
|
+
[CSS$16.container]: true,
|
|
12813
|
+
[CSS$16.secondary]: slotName === SLOTS$r.navSecondary,
|
|
12814
|
+
[CSS$16.tertiary]: slotName === SLOTS$r.navTertiary,
|
|
12815
|
+
[CSS$16.primary]: primaryLevelHasElements,
|
|
12816
|
+
} }, hAsync("div", { class: { [CSS$16.hide]: !this.progressSlotHasElement, [SLOTS$r.progress]: true } }, hAsync("slot", { name: SLOTS$r.progress, onSlotchange: this.handleProgressSlotChange })), hAsync("div", { class: { [CSS$16.containerContent]: true, [CSS$16.hasProgress]: this.progressSlotHasElement } }, this.renderMenuAction(), hAsync("div", { class: { [CSS$16.hide]: !this.logoSlotHasElements, [SLOTS$r.logo]: true } }, hAsync("slot", { name: SLOTS$r.logo, onSlotchange: this.handleLogoSlotChange })), hAsync("slot", { name: SLOTS$r.contentStart, onSlotchange: this.handleContentStartSlotChange }), hAsync("slot", { name: SLOTS$r.contentCenter, onSlotchange: this.handleContentCenterSlotChange }), hAsync("slot", { name: SLOTS$r.contentEnd, onSlotchange: this.handleContentEndSlotChange }), hAsync("div", { class: { [CSS$16.hide]: !this.userSlotHasElements, [SLOTS$r.user]: true } }, hAsync("slot", { name: SLOTS$r.user, onSlotchange: this.handleUserSlotChange })))), hAsync(Fragment, null, hAsync("slot", { name: SLOTS$r.navSecondary, onSlotchange: this.handleSecondarySlotChange }), hAsync("slot", { name: SLOTS$r.navTertiary, onSlotchange: this.handleTertiarySlotChange }))));
|
|
12823
12817
|
}
|
|
12824
12818
|
get el() { return getElement(this); }
|
|
12825
12819
|
static get style() { return navigationCss; }
|
|
@@ -12846,7 +12840,7 @@ class CalciteNavigation {
|
|
|
12846
12840
|
}; }
|
|
12847
12841
|
}
|
|
12848
12842
|
|
|
12849
|
-
const CSS$
|
|
12843
|
+
const CSS$15 = {
|
|
12850
12844
|
container: "container",
|
|
12851
12845
|
heading: "heading",
|
|
12852
12846
|
description: "description",
|
|
@@ -12902,14 +12896,14 @@ class CalciteNavigationLogo {
|
|
|
12902
12896
|
// --------------------------------------------------------------------------
|
|
12903
12897
|
renderIcon() {
|
|
12904
12898
|
/** Icon scale is not variable as the component does not have a scale property */
|
|
12905
|
-
return hAsync("calcite-icon", { class: CSS$
|
|
12899
|
+
return hAsync("calcite-icon", { class: CSS$15.icon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: "l" });
|
|
12906
12900
|
}
|
|
12907
12901
|
render() {
|
|
12908
12902
|
const { heading, description, thumbnail } = this;
|
|
12909
|
-
return (hAsync(Host, null, hAsync("a", { class: CSS$
|
|
12910
|
-
[CSS$
|
|
12911
|
-
[CSS$
|
|
12912
|
-
}, key: CSS$
|
|
12903
|
+
return (hAsync(Host, null, hAsync("a", { class: CSS$15.anchor, href: this.href, rel: this.rel, target: this.target }, thumbnail && hAsync("img", { alt: this.label || "", class: CSS$15.image, src: thumbnail }), this.icon && this.renderIcon(), (heading || description) && (hAsync("div", { class: CSS$15.container }, heading && (hAsync("span", { "aria-label": this.heading, class: {
|
|
12904
|
+
[CSS$15.heading]: true,
|
|
12905
|
+
[CSS$15.standalone]: !this.description,
|
|
12906
|
+
}, key: CSS$15.heading }, heading)), description && (hAsync("span", { "aria-label": this.description, class: CSS$15.description, key: CSS$15.description }, description)))))));
|
|
12913
12907
|
}
|
|
12914
12908
|
static get delegatesFocus() { return true; }
|
|
12915
12909
|
get el() { return getElement(this); }
|
|
@@ -12936,7 +12930,7 @@ class CalciteNavigationLogo {
|
|
|
12936
12930
|
}; }
|
|
12937
12931
|
}
|
|
12938
12932
|
|
|
12939
|
-
const CSS$
|
|
12933
|
+
const CSS$14 = {
|
|
12940
12934
|
textContainer: "text-container",
|
|
12941
12935
|
fullName: "full-name",
|
|
12942
12936
|
username: "username",
|
|
@@ -12983,7 +12977,7 @@ class CalciteNavigationUser {
|
|
|
12983
12977
|
//
|
|
12984
12978
|
// --------------------------------------------------------------------------
|
|
12985
12979
|
render() {
|
|
12986
|
-
return (hAsync(Host, null, hAsync("button", { "aria-label": this.label, class: CSS$
|
|
12980
|
+
return (hAsync(Host, null, hAsync("button", { "aria-label": this.label, class: CSS$14.button }, hAsync("calcite-avatar", { "full-name": this.fullName, label: this.label, thumbnail: this.thumbnail, "user-id": this.userId, username: this.username }), (this.fullName || this.username) && !this.textDisabled && (hAsync("div", { class: CSS$14.textContainer }, this.fullName && (hAsync("span", { class: CSS$14.fullName, key: CSS$14.fullName }, this.fullName)), this.username && (hAsync("span", { class: CSS$14.username, key: CSS$14.username }, this.username)))))));
|
|
12987
12981
|
}
|
|
12988
12982
|
static get delegatesFocus() { return true; }
|
|
12989
12983
|
get el() { return getElement(this); }
|
|
@@ -13007,7 +13001,7 @@ class CalciteNavigationUser {
|
|
|
13007
13001
|
}; }
|
|
13008
13002
|
}
|
|
13009
13003
|
|
|
13010
|
-
const CSS$
|
|
13004
|
+
const CSS$13 = {
|
|
13011
13005
|
container: "container",
|
|
13012
13006
|
header: "header",
|
|
13013
13007
|
footer: "footer",
|
|
@@ -13092,7 +13086,7 @@ class Card {
|
|
|
13092
13086
|
render() {
|
|
13093
13087
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
13094
13088
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
13095
|
-
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { "aria-live": "polite", class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.messages.loading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$
|
|
13089
|
+
return (hAsync("div", { class: { "calcite-card-container": true, inline: thumbnailInline } }, this.loading ? (hAsync("div", { "aria-live": "polite", class: "calcite-card-loader-container" }, hAsync("calcite-loader", { label: this.messages.loading }))) : null, thumbnailStart && this.renderThumbnail(), hAsync("section", { "aria-busy": toAriaBoolean(this.loading), class: { [CSS$13.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
13096
13090
|
}
|
|
13097
13091
|
effectiveLocaleChange() {
|
|
13098
13092
|
updateMessages(this);
|
|
@@ -13102,24 +13096,24 @@ class Card {
|
|
|
13102
13096
|
this.calciteCardSelect.emit();
|
|
13103
13097
|
}
|
|
13104
13098
|
renderThumbnail() {
|
|
13105
|
-
return getSlotted(this.el, SLOTS$q.thumbnail) ? (hAsync("section", { class: CSS$
|
|
13099
|
+
return getSlotted(this.el, SLOTS$q.thumbnail) ? (hAsync("section", { class: CSS$13.thumbnailWrapper }, hAsync("slot", { name: SLOTS$q.thumbnail }))) : null;
|
|
13106
13100
|
}
|
|
13107
13101
|
renderCheckbox() {
|
|
13108
|
-
return (hAsync("calcite-label", { class: CSS$
|
|
13102
|
+
return (hAsync("calcite-label", { class: CSS$13.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: this.messages.select })));
|
|
13109
13103
|
}
|
|
13110
13104
|
renderHeader() {
|
|
13111
13105
|
const { el } = this;
|
|
13112
13106
|
const title = getSlotted(el, SLOTS$q.title);
|
|
13113
13107
|
const subtitle = getSlotted(el, SLOTS$q.subtitle);
|
|
13114
13108
|
const hasHeader = title || subtitle;
|
|
13115
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
13109
|
+
return hasHeader ? (hAsync("header", { class: CSS$13.header }, hAsync("slot", { name: SLOTS$q.title }), hAsync("slot", { name: SLOTS$q.subtitle }))) : null;
|
|
13116
13110
|
}
|
|
13117
13111
|
renderFooter() {
|
|
13118
13112
|
const { el } = this;
|
|
13119
13113
|
const startFooter = getSlotted(el, SLOTS$q.footerStart);
|
|
13120
13114
|
const endFooter = getSlotted(el, SLOTS$q.footerEnd);
|
|
13121
13115
|
const hasFooter = startFooter || endFooter;
|
|
13122
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
13116
|
+
return hasFooter ? (hAsync("footer", { class: CSS$13.footer }, hAsync("slot", { name: SLOTS$q.footerStart }), hAsync("slot", { name: SLOTS$q.footerEnd }))) : null;
|
|
13123
13117
|
}
|
|
13124
13118
|
static get assetsDirs() { return ["assets"]; }
|
|
13125
13119
|
get el() { return getElement(this); }
|
|
@@ -13282,7 +13276,7 @@ class Checkbox {
|
|
|
13282
13276
|
}; }
|
|
13283
13277
|
}
|
|
13284
13278
|
|
|
13285
|
-
const CSS$
|
|
13279
|
+
const CSS$12 = {
|
|
13286
13280
|
title: "title",
|
|
13287
13281
|
close: "close",
|
|
13288
13282
|
imageContainer: "image-container",
|
|
@@ -13451,7 +13445,7 @@ class Chip {
|
|
|
13451
13445
|
//
|
|
13452
13446
|
//--------------------------------------------------------------------------
|
|
13453
13447
|
renderChipImage() {
|
|
13454
|
-
return (hAsync("div", { class: CSS$
|
|
13448
|
+
return (hAsync("div", { class: CSS$12.imageContainer }, hAsync("slot", { name: SLOTS$p.image, onSlotchange: this.handleSlotImageChange })));
|
|
13455
13449
|
}
|
|
13456
13450
|
renderSelectionIcon() {
|
|
13457
13451
|
const icon = this.selectionMode === "multiple" && this.selected
|
|
@@ -13462,17 +13456,17 @@ class Chip {
|
|
|
13462
13456
|
? ICONS$e.checkedSingle
|
|
13463
13457
|
: undefined;
|
|
13464
13458
|
return (hAsync("div", { class: {
|
|
13465
|
-
[CSS$
|
|
13466
|
-
[CSS$
|
|
13459
|
+
[CSS$12.selectIcon]: true,
|
|
13460
|
+
[CSS$12.selectIconActive]: this.selectionMode === "multiple" || this.selected,
|
|
13467
13461
|
} }, hAsync("calcite-icon", { icon: icon, scale: getIconScale(this.scale) })));
|
|
13468
13462
|
}
|
|
13469
13463
|
renderCloseButton() {
|
|
13470
|
-
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$
|
|
13464
|
+
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$12.close, onClick: this.close, onKeyDown: this.closeButtonKeyDownHandler, tabIndex: this.disabled ? -1 : 0,
|
|
13471
13465
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
13472
13466
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$e.close, scale: getIconScale(this.scale) })));
|
|
13473
13467
|
}
|
|
13474
13468
|
renderIcon() {
|
|
13475
|
-
return (hAsync("calcite-icon", { class: CSS$
|
|
13469
|
+
return (hAsync("calcite-icon", { class: CSS$12.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: getIconScale(this.scale) }));
|
|
13476
13470
|
}
|
|
13477
13471
|
render() {
|
|
13478
13472
|
const disableInteraction = this.disabled || (!this.disabled && !this.interactive);
|
|
@@ -13486,21 +13480,21 @@ class Chip {
|
|
|
13486
13480
|
return (hAsync(Host, null, hAsync("div", { "aria-checked": this.selectionMode !== "none" && this.interactive
|
|
13487
13481
|
? toAriaBoolean(this.selected)
|
|
13488
13482
|
: undefined, "aria-disabled": disableInteraction ? toAriaBoolean(this.disabled) : undefined, "aria-label": this.label, class: {
|
|
13489
|
-
[CSS$
|
|
13490
|
-
[CSS$
|
|
13491
|
-
[CSS$
|
|
13492
|
-
[CSS$
|
|
13493
|
-
[CSS$
|
|
13494
|
-
[CSS$
|
|
13495
|
-
[CSS$
|
|
13496
|
-
[CSS$
|
|
13483
|
+
[CSS$12.container]: true,
|
|
13484
|
+
[CSS$12.textSlotted]: this.hasText,
|
|
13485
|
+
[CSS$12.imageSlotted]: this.hasImage,
|
|
13486
|
+
[CSS$12.selectable]: this.selectionMode !== "none",
|
|
13487
|
+
[CSS$12.multiple]: this.selectionMode === "multiple",
|
|
13488
|
+
[CSS$12.closable]: this.closable,
|
|
13489
|
+
[CSS$12.nonInteractive]: !this.interactive,
|
|
13490
|
+
[CSS$12.isCircle]: !this.closable &&
|
|
13497
13491
|
!this.hasText &&
|
|
13498
13492
|
(!this.icon || !this.hasImage) &&
|
|
13499
13493
|
(this.selectionMode === "none" ||
|
|
13500
13494
|
(!!this.selectionMode && this.selectionMode !== "multiple" && !this.selected)),
|
|
13501
13495
|
}, onClick: this.handleEmittingEvent, role: role, tabIndex: disableInteraction ? -1 : 0,
|
|
13502
13496
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
13503
|
-
ref: (el) => (this.containerEl = el) }, this.selectionMode !== "none" && this.renderSelectionIcon(), this.renderChipImage(), this.icon && this.renderIcon(), hAsync("span", { class: CSS$
|
|
13497
|
+
ref: (el) => (this.containerEl = el) }, this.selectionMode !== "none" && this.renderSelectionIcon(), this.renderChipImage(), this.icon && this.renderIcon(), hAsync("span", { class: CSS$12.title }, hAsync("slot", null)), this.closable && this.renderCloseButton())));
|
|
13504
13498
|
}
|
|
13505
13499
|
static get assetsDirs() { return ["assets"]; }
|
|
13506
13500
|
get el() { return getElement(this); }
|
|
@@ -15822,7 +15816,7 @@ function zeroArray(array, length) {
|
|
|
15822
15816
|
|
|
15823
15817
|
var color = Color;
|
|
15824
15818
|
|
|
15825
|
-
const CSS
|
|
15819
|
+
const CSS$11 = {
|
|
15826
15820
|
channel: "channel",
|
|
15827
15821
|
channels: "channels",
|
|
15828
15822
|
colorField: "color-field",
|
|
@@ -16171,7 +16165,7 @@ class ColorPicker {
|
|
|
16171
16165
|
const { channelMode: activeChannelMode, messages } = this;
|
|
16172
16166
|
const selected = channelMode === activeChannelMode;
|
|
16173
16167
|
const label = channelMode === "rgb" ? messages.rgb : messages.hsv;
|
|
16174
|
-
return (hAsync("calcite-tab-title", { class: CSS
|
|
16168
|
+
return (hAsync("calcite-tab-title", { class: CSS$11.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate, selected: selected }, label));
|
|
16175
16169
|
};
|
|
16176
16170
|
this.renderChannelsTab = (channelMode) => {
|
|
16177
16171
|
const { allowEmpty, channelMode: activeChannelMode, channels, messages, alphaChannel } = this;
|
|
@@ -16182,7 +16176,7 @@ class ColorPicker {
|
|
|
16182
16176
|
: [messages.hue, messages.saturation, messages.value];
|
|
16183
16177
|
const direction = getElementDir(this.el);
|
|
16184
16178
|
const channelsToRender = alphaChannel ? channels : channels.slice(0, 3);
|
|
16185
|
-
return (hAsync("calcite-tab", { class: CSS
|
|
16179
|
+
return (hAsync("calcite-tab", { class: CSS$11.control, key: channelMode, selected: selected }, hAsync("div", { class: CSS$11.channels, dir: "ltr" }, channelsToRender.map((channelValue, index) => {
|
|
16186
16180
|
const isAlphaChannel = index === 3;
|
|
16187
16181
|
if (isAlphaChannel) {
|
|
16188
16182
|
channelValue =
|
|
@@ -16193,7 +16187,7 @@ class ColorPicker {
|
|
|
16193
16187
|
}))));
|
|
16194
16188
|
};
|
|
16195
16189
|
this.renderChannel = (value, index, ariaLabel, direction, suffix) => {
|
|
16196
|
-
return (hAsync("calcite-input-number", { class: CSS
|
|
16190
|
+
return (hAsync("calcite-input-number", { class: CSS$11.channel, "data-channel-index": index, dir: direction, key: index, label: ariaLabel, lang: this.effectiveLocale, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputNumberChange: this.handleChannelChange, onCalciteInputNumberInput: this.handleChannelInput, onKeyDown: this.handleKeyDown, scale: this.scale === "l" ? "m" : "s",
|
|
16197
16191
|
// workaround to ensure input borders overlap as desired
|
|
16198
16192
|
// this is because the build transforms margin-left to its
|
|
16199
16193
|
// logical-prop, which is undesired as channels are always ltr
|
|
@@ -16383,7 +16377,7 @@ class ColorPicker {
|
|
|
16383
16377
|
this.shiftKeyChannelAdjustment = 0;
|
|
16384
16378
|
const { key } = event;
|
|
16385
16379
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
16386
|
-
!event.composedPath().some((node) => node.classList?.contains(CSS
|
|
16380
|
+
!event.composedPath().some((node) => node.classList?.contains(CSS$11.channel))) {
|
|
16387
16381
|
return;
|
|
16388
16382
|
}
|
|
16389
16383
|
const { shiftKey } = event;
|
|
@@ -16475,35 +16469,35 @@ class ColorPicker {
|
|
|
16475
16469
|
const [adjustedColorFieldScopeLeft, adjustedColorFieldScopeTop] = this.getAdjustedScopePosition(colorFieldScopeLeft, colorFieldScopeTop);
|
|
16476
16470
|
const [adjustedHueScopeLeft, adjustedHueScopeTop] = this.getAdjustedScopePosition(hueLeft, hueTop);
|
|
16477
16471
|
const [adjustedOpacityScopeLeft, adjustedOpacityScopeTop] = this.getAdjustedScopePosition(opacityLeft, opacityTop);
|
|
16478
|
-
return (hAsync("div", { class: CSS
|
|
16472
|
+
return (hAsync("div", { class: CSS$11.container }, hAsync("div", { class: CSS$11.controlAndScope }, hAsync("canvas", { class: CSS$11.colorField, onPointerDown: this.handleColorFieldPointerDown,
|
|
16479
16473
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16480
|
-
ref: this.initColorField }), hAsync("div", { "aria-label": vertical ? messages.value : messages.saturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color?.saturationv() : color?.value()) || "0", class: { [CSS
|
|
16474
|
+
ref: this.initColorField }), hAsync("div", { "aria-label": vertical ? messages.value : messages.saturation, "aria-valuemax": vertical ? HSV_LIMITS.v : HSV_LIMITS.s, "aria-valuemin": "0", "aria-valuenow": (vertical ? color?.saturationv() : color?.value()) || "0", class: { [CSS$11.scope]: true, [CSS$11.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, role: "slider", style: {
|
|
16481
16475
|
top: `${adjustedColorFieldScopeTop || 0}px`,
|
|
16482
16476
|
left: `${adjustedColorFieldScopeLeft || 0}px`,
|
|
16483
16477
|
}, tabindex: "0",
|
|
16484
16478
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16485
|
-
ref: this.storeColorFieldScope })), hAsync("div", { class: CSS
|
|
16479
|
+
ref: this.storeColorFieldScope })), hAsync("div", { class: CSS$11.previewAndSliders }, hAsync("calcite-color-picker-swatch", { class: CSS$11.preview, color: selectedColorInHex, scale: "l" }), hAsync("div", { class: CSS$11.sliders }, hAsync("div", { class: CSS$11.controlAndScope }, hAsync("canvas", { class: { [CSS$11.slider]: true, [CSS$11.hueSlider]: true }, onPointerDown: this.handleHueSliderPointerDown,
|
|
16486
16480
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16487
|
-
ref: this.initHueSlider }), hAsync("div", { "aria-label": messages.hue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": color?.round().hue() || DEFAULT_COLOR$1.round().hue(), class: { [CSS
|
|
16481
|
+
ref: this.initHueSlider }), hAsync("div", { "aria-label": messages.hue, "aria-valuemax": HSV_LIMITS.h, "aria-valuemin": "0", "aria-valuenow": color?.round().hue() || DEFAULT_COLOR$1.round().hue(), class: { [CSS$11.scope]: true, [CSS$11.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: {
|
|
16488
16482
|
top: `${adjustedHueScopeTop}px`,
|
|
16489
16483
|
left: `${adjustedHueScopeLeft}px`,
|
|
16490
16484
|
}, tabindex: "0",
|
|
16491
16485
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16492
|
-
ref: this.storeHueScope })), alphaChannel ? (hAsync("div", { class: CSS
|
|
16486
|
+
ref: this.storeHueScope })), alphaChannel ? (hAsync("div", { class: CSS$11.controlAndScope }, hAsync("canvas", { class: { [CSS$11.slider]: true, [CSS$11.opacitySlider]: true }, onPointerDown: this.handleOpacitySliderPointerDown,
|
|
16493
16487
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16494
|
-
ref: this.initOpacitySlider }), hAsync("div", { "aria-label": messages.opacity, "aria-valuemax": OPACITY_LIMITS.max, "aria-valuemin": OPACITY_LIMITS.min, "aria-valuenow": (color || DEFAULT_COLOR$1).round().alpha(), class: { [CSS
|
|
16488
|
+
ref: this.initOpacitySlider }), hAsync("div", { "aria-label": messages.opacity, "aria-valuemax": OPACITY_LIMITS.max, "aria-valuemin": OPACITY_LIMITS.min, "aria-valuenow": (color || DEFAULT_COLOR$1).round().alpha(), class: { [CSS$11.scope]: true, [CSS$11.opacityScope]: true }, onKeyDown: this.handleOpacityScopeKeyDown, role: "slider", style: {
|
|
16495
16489
|
top: `${adjustedOpacityScopeTop}px`,
|
|
16496
16490
|
left: `${adjustedOpacityScopeLeft}px`,
|
|
16497
16491
|
}, tabindex: "0",
|
|
16498
16492
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
16499
16493
|
ref: this.storeOpacityScope }))) : null)), noHex && noChannels ? null : (hAsync("div", { class: {
|
|
16500
|
-
[CSS
|
|
16501
|
-
[CSS
|
|
16502
|
-
} }, hAsync("div", { class: CSS
|
|
16503
|
-
[CSS
|
|
16504
|
-
[CSS
|
|
16505
|
-
}, scale: scale === "l" ? "m" : "s" }, hAsync("calcite-tab-nav", { slot: "title-group" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv")))))), noSaved ? null : (hAsync("div", { class: { [CSS
|
|
16506
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { class: CSS
|
|
16494
|
+
[CSS$11.controlSection]: true,
|
|
16495
|
+
[CSS$11.section]: true,
|
|
16496
|
+
} }, hAsync("div", { class: CSS$11.hexAndChannelsGroup }, noHex ? null : (hAsync("div", { class: CSS$11.hexOptions }, hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, alphaChannel: alphaChannel, class: CSS$11.control, messages: messages, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: scale, value: selectedColorInHex }))), noChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
16497
|
+
[CSS$11.colorModeContainer]: true,
|
|
16498
|
+
[CSS$11.splitSection]: true,
|
|
16499
|
+
}, scale: scale === "l" ? "m" : "s" }, hAsync("calcite-tab-nav", { slot: "title-group" }, this.renderChannelsTabTitle("rgb"), this.renderChannelsTabTitle("hsv")), this.renderChannelsTab("rgb"), this.renderChannelsTab("hsv")))))), noSaved ? null : (hAsync("div", { class: { [CSS$11.savedColorsSection]: true, [CSS$11.section]: true } }, hAsync("div", { class: CSS$11.header }, hAsync("label", null, messages.saved), hAsync("div", { class: CSS$11.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$11.deleteColor, disabled: noColor, iconStart: "minus", kind: "neutral", label: messages.deleteColor, onClick: this.deleteColor, scale: scale, type: "button" }), hAsync("calcite-button", { appearance: "transparent", class: CSS$11.saveColor, disabled: noColor, iconStart: "plus", kind: "neutral", label: messages.saveColor, onClick: this.saveColor, scale: scale, type: "button" }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$11.savedColors }, [
|
|
16500
|
+
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { class: CSS$11.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 }))),
|
|
16507
16501
|
])) : null))));
|
|
16508
16502
|
}
|
|
16509
16503
|
// --------------------------------------------------------------------------
|
|
@@ -16874,7 +16868,7 @@ class ColorPicker {
|
|
|
16874
16868
|
}; }
|
|
16875
16869
|
}
|
|
16876
16870
|
|
|
16877
|
-
const CSS$
|
|
16871
|
+
const CSS$10 = {
|
|
16878
16872
|
container: "container",
|
|
16879
16873
|
hexInput: "hex-input",
|
|
16880
16874
|
opacityInput: "opacity-input",
|
|
@@ -17042,9 +17036,9 @@ class ColorPickerHexInput {
|
|
|
17042
17036
|
const hexInputValue = this.formatHexForInternalInput(value);
|
|
17043
17037
|
const opacityInputValue = this.formatOpacityForInternalInput(internalColor);
|
|
17044
17038
|
const inputScale = scale === "l" ? "m" : "s";
|
|
17045
|
-
return (hAsync("div", { class: CSS$
|
|
17039
|
+
return (hAsync("div", { class: CSS$10.container }, hAsync("calcite-input-text", { class: CSS$10.hexInput, label: messages?.hex || hexLabel, maxLength: 6, onCalciteInputTextChange: this.onHexInputChange, onCalciteInternalInputTextBlur: this.onHexInputBlur, onKeyDown: this.onInputKeyDown, onPaste: this.onHexInputPaste, prefixText: "#", scale: inputScale, value: hexInputValue,
|
|
17046
17040
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
17047
|
-
ref: this.storeHexInputRef }), alphaChannel ? (hAsync("calcite-input-number", { class: CSS$
|
|
17041
|
+
ref: this.storeHexInputRef }), alphaChannel ? (hAsync("calcite-input-number", { class: CSS$10.opacityInput, key: "opacity-input", label: messages?.opacity, max: OPACITY_LIMITS.max, maxLength: 3, min: OPACITY_LIMITS.min, numberButtonType: "none", numberingSystem: this.numberingSystem, onCalciteInputNumberChange: this.onOpacityInputChange, onCalciteInternalInputNumberBlur: this.onOpacityInputBlur, onKeyDown: this.onInputKeyDown, scale: inputScale, suffixText: "%", value: opacityInputValue,
|
|
17048
17042
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
17049
17043
|
ref: this.storeOpacityInputRef })) : null));
|
|
17050
17044
|
}
|
|
@@ -17140,7 +17134,7 @@ class ColorPickerHexInput {
|
|
|
17140
17134
|
}; }
|
|
17141
17135
|
}
|
|
17142
17136
|
|
|
17143
|
-
const CSS
|
|
17137
|
+
const CSS$$ = {
|
|
17144
17138
|
swatch: "swatch",
|
|
17145
17139
|
noColorSwatch: "swatch--no-color",
|
|
17146
17140
|
checker: "checker",
|
|
@@ -17178,8 +17172,8 @@ class ColorPickerSwatch {
|
|
|
17178
17172
|
render() {
|
|
17179
17173
|
const isEmpty = !this.internalColor;
|
|
17180
17174
|
const classes = {
|
|
17181
|
-
[CSS
|
|
17182
|
-
[CSS
|
|
17175
|
+
[CSS$$.swatch]: true,
|
|
17176
|
+
[CSS$$.noColorSwatch]: isEmpty,
|
|
17183
17177
|
};
|
|
17184
17178
|
return (hAsync("svg", { class: classes, xmlns: "http://www.w3.org/2000/svg" }, this.renderSwatch()));
|
|
17185
17179
|
}
|
|
@@ -17205,7 +17199,7 @@ class ColorPickerSwatch {
|
|
|
17205
17199
|
const alpha = internalColor.alpha();
|
|
17206
17200
|
const hex = hexify(internalColor);
|
|
17207
17201
|
const hexa = hexify(internalColor, alpha < 1);
|
|
17208
|
-
return (hAsync(Fragment, null, hAsync("title", null, hexa), hAsync("defs", null, hAsync("pattern", { height: CHECKER_DIMENSIONS.size, id: "checker", patternUnits: "userSpaceOnUse", width: CHECKER_DIMENSIONS.size, x: "0", y: "0" }, hAsync("rect", { class: CSS
|
|
17202
|
+
return (hAsync(Fragment, null, hAsync("title", null, hexa), hAsync("defs", null, hAsync("pattern", { height: CHECKER_DIMENSIONS.size, id: "checker", patternUnits: "userSpaceOnUse", width: CHECKER_DIMENSIONS.size, x: "0", y: "0" }, hAsync("rect", { class: CSS$$.checker, height: CHECKER_DIMENSIONS.squareSize, width: CHECKER_DIMENSIONS.squareSize, x: "0", y: "0" }), hAsync("rect", { class: CSS$$.checker, height: CHECKER_DIMENSIONS.squareSize, width: CHECKER_DIMENSIONS.squareSize, x: CHECKER_DIMENSIONS.squareSize, y: CHECKER_DIMENSIONS.squareSize }))), hAsync("rect", { fill: "url(#checker)", height: "100%", rx: borderRadius, width: "100%" }), hAsync("rect", { fill: hex, style: {
|
|
17209
17203
|
"clip-path": alpha < 1 ? "polygon(100% 0, 0 0, 0 100%)" : `inset(0 round ${borderRadius})`,
|
|
17210
17204
|
}, ...commonSwatchProps }), alpha < 1 ? (hAsync("rect", { fill: hexa, key: "opacity-fill", style: { "clip-path": "polygon(100% 0, 100% 100%, 0 100%)" }, ...commonSwatchProps })) : null));
|
|
17211
17205
|
}
|
|
@@ -18948,7 +18942,10 @@ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePo
|
|
|
18948
18942
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
18949
18943
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
18950
18944
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
18951
|
-
const CSS$
|
|
18945
|
+
const CSS$_ = {
|
|
18946
|
+
chipInvisible: "chip--invisible",
|
|
18947
|
+
selectionDisplayFit: "selection-display-fit",
|
|
18948
|
+
selectionDisplaySingle: "selection-display-single",
|
|
18952
18949
|
listContainer: "list-container",
|
|
18953
18950
|
};
|
|
18954
18951
|
|
|
@@ -18976,17 +18973,28 @@ function isSingleLike(selectionMode) {
|
|
|
18976
18973
|
return selectionMode.includes("single");
|
|
18977
18974
|
}
|
|
18978
18975
|
|
|
18979
|
-
const CSS$
|
|
18976
|
+
const CSS$Z = {
|
|
18980
18977
|
button: "x-button",
|
|
18981
18978
|
};
|
|
18982
18979
|
function XButton({ disabled, key, label, onClick, ref, scale, }) {
|
|
18983
|
-
return (hAsync("button", { "aria-label": label, class: CSS$
|
|
18980
|
+
return (hAsync("button", { "aria-label": label, class: CSS$Z.button, disabled: disabled, key: key, onClick: onClick, tabIndex: -1, type: "button",
|
|
18984
18981
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
18985
18982
|
ref: ref },
|
|
18986
18983
|
hAsync("calcite-icon", { icon: "x", scale: getIconScale(scale) })));
|
|
18987
18984
|
}
|
|
18988
18985
|
|
|
18989
|
-
|
|
18986
|
+
/**
|
|
18987
|
+
* Do not edit directly
|
|
18988
|
+
* Generated on Tue, 21 Nov 2023 22:52:13 GMT
|
|
18989
|
+
*/
|
|
18990
|
+
const CoreSizing15 = "48px";
|
|
18991
|
+
const CoreBreakpointWidthDefaultXxs = "320px";
|
|
18992
|
+
const CoreBreakpointWidthDefaultXs = "476px";
|
|
18993
|
+
const CoreBreakpointWidthDefaultSm = "768px";
|
|
18994
|
+
const CoreBreakpointWidthDefaultMd = "1152px";
|
|
18995
|
+
const CoreBreakpointWidthDefaultLg = "1440px";
|
|
18996
|
+
|
|
18997
|
+
const comboboxCss = "/*!@:host([disabled])*/[disabled].sc-calcite-combobox-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-combobox-h *.sc-calcite-combobox,.sc-calcite-combobox-h[disabled] .sc-calcite-combobox-s>*{pointer-events:none}/*!@:host*/.sc-calcite-combobox-h{position:relative;display:block}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-combobox-h[disabled] .sc-calcite-combobox-s>[calcite-hydrated][disabled],[disabled].sc-calcite-combobox-h [calcite-hydrated][disabled].sc-calcite-combobox{opacity:1}/*!@:host([scale=s]) .x-button*/[scale=s].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:1rem;block-size:1rem}/*!@:host([scale=m]) .x-button*/[scale=m].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:1.5rem;block-size:1.5rem}/*!@:host([scale=l]) .x-button*/[scale=l].sc-calcite-combobox-h .x-button.sc-calcite-combobox{inline-size:2rem;block-size:2rem}/*!@.x-button*/.x-button.sc-calcite-combobox{margin:0px;display:flex;cursor:pointer;appearance:none;align-content:center;align-items:center;justify-content:center;align-self:center;border-width:2px;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-radius:50%;border-color:transparent;background-color:var(--calcite-ui-foreground-2)}/*!@.x-button:active, .x-button:hover*/.x-button.sc-calcite-combobox:active,.x-button.sc-calcite-combobox:hover{color:var(--calcite-ui-text-1);background-color:var(--calcite-ui-foreground-3)}/*!@.x-button:active*/.x-button.sc-calcite-combobox:active{border-style:solid;border-color:var(--calcite-ui-brand)}/*!@.x-button calcite-icon*/.x-button.sc-calcite-combobox calcite-icon.sc-calcite-combobox{color:inherit}/*!@:host([scale=s])*/[scale=s].sc-calcite-combobox-h{font-size:var(--calcite-font-size--2);--calcite-combobox-item-spacing-unit-l:0.5rem;--calcite-combobox-item-spacing-unit-s:0.25rem;--calcite-combobox-input-height:1rem;--calcite-internal-combobox-input-margin-block:calc(0.25rem - 1px)}/*!@:host([scale=s]) .x-button*/[scale=s].sc-calcite-combobox-h .x-button.sc-calcite-combobox{margin-inline:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-combobox-h{font-size:var(--calcite-font-size--1);--calcite-combobox-item-spacing-unit-l:0.75rem;--calcite-combobox-item-spacing-unit-s:0.5rem;--calcite-combobox-input-height:1rem;--calcite-internal-combobox-input-margin-block:calc(0.5rem - 1px)}/*!@:host([scale=m]) .x-button*/[scale=m].sc-calcite-combobox-h .x-button.sc-calcite-combobox{margin-inline-end:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-combobox-h{font-size:var(--calcite-font-size-0);--calcite-combobox-item-spacing-unit-l:1rem;--calcite-combobox-item-spacing-unit-s:0.75rem;--calcite-combobox-input-height:1.5rem;--calcite-internal-combobox-input-margin-block:calc(0.625rem - 1px)}/*!@:host([scale=l]) .x-button*/[scale=l].sc-calcite-combobox-h .x-button.sc-calcite-combobox{margin-inline-end:1rem}/*!@.wrapper*/.wrapper.sc-calcite-combobox{display:flex;border-width:1px;border-style:solid;border-color:var(--calcite-ui-border-input);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);outline-color:transparent;padding-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@:host(:focus-within) .wrapper,\n.wrapper--active*/.sc-calcite-combobox-h:focus-within .wrapper.sc-calcite-combobox,.wrapper--active.sc-calcite-combobox{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.wrapper--single*/.wrapper--single.sc-calcite-combobox{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}/*!@.grid-input*/.grid-input.sc-calcite-combobox{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;gap:var(--calcite-combobox-item-spacing-unit-s)}/*!@.grid-input.selection-display-fit, .grid-input.selection-display-single*/.grid-input.selection-display-fit.sc-calcite-combobox,.grid-input.selection-display-single.sc-calcite-combobox{flex-wrap:nowrap;overflow:hidden}/*!@.input*/.input.sc-calcite-combobox{flex-grow:1;appearance:none;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0px;font-family:inherit;color:var(--calcite-ui-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-combobox-item-spacing-unit-s);min-inline-size:4.8125rem}/*!@.input:focus*/.input.sc-calcite-combobox:focus{outline:2px solid transparent;outline-offset:2px}/*!@.input:placeholder-shown*/.input.sc-calcite-combobox:placeholder-shown{text-overflow:ellipsis}/*!@.input--transparent*/.input--transparent.sc-calcite-combobox{opacity:0}/*!@.input--single*/.input--single.sc-calcite-combobox{padding:0px;margin-block:var(--calcite-internal-combobox-input-margin-block)}/*!@.wrapper--active .input-single*/.wrapper--active.sc-calcite-combobox .input-single.sc-calcite-combobox{cursor:text}/*!@.input--hidden*/.input--hidden.sc-calcite-combobox{pointer-events:none;inline-size:0px;min-inline-size:0px;opacity:0}/*!@.input--icon*/.input--icon.sc-calcite-combobox{padding-block:0;padding-inline:var(--calcite-combobox-item-spacing-unit-s)}/*!@:host([scale=m]) .input--icon,\n:host([scale=l]) .input--icon*/[scale=m].sc-calcite-combobox-h .input--icon.sc-calcite-combobox,[scale=l].sc-calcite-combobox-h .input--icon.sc-calcite-combobox{padding-inline:0.25rem}/*!@.input-wrap*/.input-wrap.sc-calcite-combobox{display:flex;flex-grow:1;align-items:center}/*!@.input-wrap--single*/.input-wrap--single.sc-calcite-combobox{flex:1 1 0%;overflow:hidden}/*!@.label*/.label.sc-calcite-combobox{pointer-events:none;display:flex;max-inline-size:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0px;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}/*!@.label--icon*/.label--icon.sc-calcite-combobox{padding-inline:var(--calcite-combobox-item-spacing-unit-l)}/*!@.icon-end,\n.icon-start*/.icon-end.sc-calcite-combobox,.icon-start.sc-calcite-combobox{display:flex;cursor:pointer;align-items:center}/*!@.icon-end*/.icon-end.sc-calcite-combobox{flex:none}/*!@.floating-ui-container*/.floating-ui-container.sc-calcite-combobox{--calcite-floating-ui-z-index:var(--calcite-app-z-index-dropdown);display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index);visibility:hidden}/*!@.floating-ui-container .calcite-floating-ui-anim*/.floating-ui-container.sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:transform, visibility, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-app-z-index);border-radius:0.25rem}/*!@.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=bottom].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateY(-5px)}/*!@.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=top].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateY(5px)}/*!@.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=left].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateX(5px)}/*!@.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim*/.floating-ui-container[data-placement^=right].sc-calcite-combobox .calcite-floating-ui-anim.sc-calcite-combobox{transform:translateX(-5px)}/*!@.floating-ui-container[data-placement] .calcite-floating-ui-anim--active*/.floating-ui-container[data-placement].sc-calcite-combobox .calcite-floating-ui-anim--active.sc-calcite-combobox{opacity:1;transform:translate(0)}/*!@.floating-ui-container--active*/.floating-ui-container--active.sc-calcite-combobox{visibility:visible}@media (forced-colors: active){/*!@.wrapper,\n .floating-ui-container--active*/.wrapper.sc-calcite-combobox,.floating-ui-container--active.sc-calcite-combobox{border:1px solid canvasText}}/*!@.screen-readers-only*/.screen-readers-only.sc-calcite-combobox{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@.list-container*/.list-container.sc-calcite-combobox{max-block-size:45vh;overflow-y:auto;background-color:var(--calcite-ui-foreground-1);inline-size:var(--calcite-dropdown-width)}/*!@.list*/.list.sc-calcite-combobox{margin:0px;display:block;padding:0px}/*!@.list--hide*/.list--hide.sc-calcite-combobox{block-size:0px;overflow:hidden}/*!@calcite-chip*/calcite-chip.sc-calcite-combobox{--calcite-animation-timing:0}/*!@.chip*/.chip.sc-calcite-combobox{margin-block:calc(var(--calcite-combobox-item-spacing-unit-s) / 4);max-inline-size:100%}/*!@.chip--active*/.chip--active.sc-calcite-combobox{background-color:var(--calcite-ui-foreground-3)}/*!@.chip--invisible*/.chip--invisible.sc-calcite-combobox{visibility:hidden;position:absolute}/*!@.item*/.item.sc-calcite-combobox{display:block}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-combobox-s>input[slot=hidden-form-input]{margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}/*!@:host([hidden])*/[hidden].sc-calcite-combobox-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-combobox{display:none}/*!@::slotted(calcite-combobox-item-group:not(:first-child))*/.sc-calcite-combobox-s>calcite-combobox-item-group:not(:first-child){padding-block-start:var(--calcite-combobox-item-spacing-unit-l)}";
|
|
18990
18998
|
|
|
18991
18999
|
const isGroup = (el) => el.tagName === ComboboxItemGroup$1;
|
|
18992
19000
|
const itemUidPrefix = "combobox-item-";
|
|
@@ -19183,7 +19191,7 @@ class Combobox {
|
|
|
19183
19191
|
event.preventDefault();
|
|
19184
19192
|
return;
|
|
19185
19193
|
}
|
|
19186
|
-
if (composedPath.some((node) => node.classList?.contains(CSS$
|
|
19194
|
+
if (composedPath.some((node) => node.classList?.contains(CSS$Z.button))) {
|
|
19187
19195
|
this.clearValue();
|
|
19188
19196
|
event.preventDefault();
|
|
19189
19197
|
return;
|
|
@@ -19191,6 +19199,40 @@ class Combobox {
|
|
|
19191
19199
|
this.open = !this.open;
|
|
19192
19200
|
this.ensureRecentSelectedItemIsActive();
|
|
19193
19201
|
};
|
|
19202
|
+
this.refreshSelectionDisplay = async () => {
|
|
19203
|
+
await componentLoaded(this);
|
|
19204
|
+
if (isSingleLike(this.selectionMode)) {
|
|
19205
|
+
return;
|
|
19206
|
+
}
|
|
19207
|
+
if (!this.textInput) {
|
|
19208
|
+
return;
|
|
19209
|
+
}
|
|
19210
|
+
const { allSelectedIndicatorChipEl, chipContainerEl, selectionDisplay, placeholder, selectedIndicatorChipEl, textInput, } = this;
|
|
19211
|
+
const chipContainerElGap = parseInt(getComputedStyle(chipContainerEl).gap.replace("px", ""));
|
|
19212
|
+
const chipContainerElWidth = getElementWidth(chipContainerEl);
|
|
19213
|
+
const { fontSize, fontFamily } = getComputedStyle(textInput);
|
|
19214
|
+
const inputTextWidth = getTextWidth(placeholder, `${fontSize} ${fontFamily}`);
|
|
19215
|
+
const inputWidth = (inputTextWidth || parseInt(CoreSizing15)) + chipContainerElGap;
|
|
19216
|
+
const allSelectedIndicatorChipElWidth = getElementWidth(allSelectedIndicatorChipEl);
|
|
19217
|
+
const selectedIndicatorChipElWidth = getElementWidth(selectedIndicatorChipEl);
|
|
19218
|
+
const largestSelectedIndicatorChipWidth = Math.max(allSelectedIndicatorChipElWidth, selectedIndicatorChipElWidth);
|
|
19219
|
+
this.setCompactSelectionDisplay({
|
|
19220
|
+
chipContainerElGap,
|
|
19221
|
+
chipContainerElWidth,
|
|
19222
|
+
inputWidth,
|
|
19223
|
+
largestSelectedIndicatorChipWidth,
|
|
19224
|
+
});
|
|
19225
|
+
if (selectionDisplay === "fit") {
|
|
19226
|
+
const chipEls = Array.from(this.el.shadowRoot.querySelectorAll("calcite-chip")).filter((chipEl) => chipEl.closable);
|
|
19227
|
+
const availableHorizontalChipElSpace = Math.round(chipContainerElWidth -
|
|
19228
|
+
((this.selectedHiddenChipsCount > 0 ? selectedIndicatorChipElWidth : 0) +
|
|
19229
|
+
chipContainerElGap +
|
|
19230
|
+
inputWidth +
|
|
19231
|
+
chipContainerElGap));
|
|
19232
|
+
this.refreshChipDisplay({ availableHorizontalChipElSpace, chipContainerElGap, chipEls });
|
|
19233
|
+
this.setVisibleAndHiddenChips(chipEls);
|
|
19234
|
+
}
|
|
19235
|
+
};
|
|
19194
19236
|
this.setFloatingEl = (el) => {
|
|
19195
19237
|
this.floatingEl = el;
|
|
19196
19238
|
connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
|
@@ -19200,10 +19242,20 @@ class Combobox {
|
|
|
19200
19242
|
this.listContainerEl = el;
|
|
19201
19243
|
this.transitionEl = el;
|
|
19202
19244
|
};
|
|
19245
|
+
this.setChipContainerEl = (el) => {
|
|
19246
|
+
this.resizeObserver.observe(el);
|
|
19247
|
+
this.chipContainerEl = el;
|
|
19248
|
+
};
|
|
19203
19249
|
this.setReferenceEl = (el) => {
|
|
19204
19250
|
this.referenceEl = el;
|
|
19205
19251
|
connectFloatingUI(this, this.referenceEl, this.floatingEl);
|
|
19206
19252
|
};
|
|
19253
|
+
this.setAllSelectedIndicatorChipEl = (el) => {
|
|
19254
|
+
this.allSelectedIndicatorChipEl = el;
|
|
19255
|
+
};
|
|
19256
|
+
this.setSelectedIndicatorChipEl = (el) => {
|
|
19257
|
+
this.selectedIndicatorChipEl = el;
|
|
19258
|
+
};
|
|
19207
19259
|
this.inputHandler = (event) => {
|
|
19208
19260
|
const value = event.target.value;
|
|
19209
19261
|
this.text = value;
|
|
@@ -19237,6 +19289,23 @@ class Combobox {
|
|
|
19237
19289
|
this.calciteComboboxChange.emit();
|
|
19238
19290
|
};
|
|
19239
19291
|
this.emitComboboxChange = debounce(this.internalComboboxChangeEvent, 0);
|
|
19292
|
+
this.getSelectedItems = () => {
|
|
19293
|
+
if (!this.isMulti()) {
|
|
19294
|
+
const match = this.items.find(({ selected }) => selected);
|
|
19295
|
+
return match ? [match] : [];
|
|
19296
|
+
}
|
|
19297
|
+
return (this.items
|
|
19298
|
+
.filter((item) => item.selected && (this.selectionMode !== "ancestors" || !hasActiveChildren(item)))
|
|
19299
|
+
/** Preserve order of entered tags */
|
|
19300
|
+
.sort((a, b) => {
|
|
19301
|
+
const aIdx = this.selectedItems.indexOf(a);
|
|
19302
|
+
const bIdx = this.selectedItems.indexOf(b);
|
|
19303
|
+
if (aIdx > -1 && bIdx > -1) {
|
|
19304
|
+
return aIdx - bIdx;
|
|
19305
|
+
}
|
|
19306
|
+
return bIdx - aIdx;
|
|
19307
|
+
}));
|
|
19308
|
+
};
|
|
19240
19309
|
this.updateItems = () => {
|
|
19241
19310
|
this.items = this.getItems();
|
|
19242
19311
|
this.groupItems = this.getGroupItems();
|
|
@@ -19282,6 +19351,7 @@ class Combobox {
|
|
|
19282
19351
|
this.textInput?.focus();
|
|
19283
19352
|
};
|
|
19284
19353
|
this.clearDisabled = false;
|
|
19354
|
+
this.selectionDisplay = "all";
|
|
19285
19355
|
this.open = false;
|
|
19286
19356
|
this.disabled = false;
|
|
19287
19357
|
this.form = undefined;
|
|
@@ -19308,6 +19378,9 @@ class Combobox {
|
|
|
19308
19378
|
this.activeItemIndex = -1;
|
|
19309
19379
|
this.activeChipIndex = -1;
|
|
19310
19380
|
this.activeDescendant = "";
|
|
19381
|
+
this.compactSelectionDisplay = false;
|
|
19382
|
+
this.selectedHiddenChipsCount = 0;
|
|
19383
|
+
this.selectedVisibleChipsCount = 0;
|
|
19311
19384
|
this.text = "";
|
|
19312
19385
|
this.effectiveLocale = undefined;
|
|
19313
19386
|
this.defaultMessages = undefined;
|
|
@@ -19401,7 +19474,8 @@ class Combobox {
|
|
|
19401
19474
|
/**
|
|
19402
19475
|
* Updates the position of the component.
|
|
19403
19476
|
*
|
|
19404
|
-
* @param delayed
|
|
19477
|
+
* @param delayed Reposition the component after a delay
|
|
19478
|
+
* @returns Promise
|
|
19405
19479
|
*/
|
|
19406
19480
|
async reposition(delayed = false) {
|
|
19407
19481
|
const { floatingEl, referenceEl, placement, overlayPositioning, filteredFlipPlacements } = this;
|
|
@@ -19461,6 +19535,9 @@ class Combobox {
|
|
|
19461
19535
|
}
|
|
19462
19536
|
updateHostInteraction(this);
|
|
19463
19537
|
}
|
|
19538
|
+
componentDidUpdate() {
|
|
19539
|
+
this.refreshSelectionDisplay();
|
|
19540
|
+
}
|
|
19464
19541
|
disconnectedCallback() {
|
|
19465
19542
|
this.mutationObserver?.disconnect();
|
|
19466
19543
|
this.resizeObserver?.disconnect();
|
|
@@ -19524,6 +19601,50 @@ class Combobox {
|
|
|
19524
19601
|
const targetIndex = selectedItems.length === 0 ? 0 : this.items.indexOf(selectedItems[selectedItems.length - 1]);
|
|
19525
19602
|
this.updateActiveItemIndex(targetIndex);
|
|
19526
19603
|
}
|
|
19604
|
+
hideChip(chipEl) {
|
|
19605
|
+
chipEl.classList.add(CSS$_.chipInvisible);
|
|
19606
|
+
}
|
|
19607
|
+
showChip(chipEl) {
|
|
19608
|
+
chipEl.classList.remove(CSS$_.chipInvisible);
|
|
19609
|
+
}
|
|
19610
|
+
refreshChipDisplay({ chipEls, availableHorizontalChipElSpace, chipContainerElGap, }) {
|
|
19611
|
+
chipEls.forEach((chipEl) => {
|
|
19612
|
+
if (!chipEl.selected) {
|
|
19613
|
+
this.hideChip(chipEl);
|
|
19614
|
+
}
|
|
19615
|
+
else {
|
|
19616
|
+
const chipElWidth = getElementWidth(chipEl);
|
|
19617
|
+
if (chipElWidth && chipElWidth < availableHorizontalChipElSpace) {
|
|
19618
|
+
availableHorizontalChipElSpace -= chipElWidth + chipContainerElGap;
|
|
19619
|
+
this.showChip(chipEl);
|
|
19620
|
+
return;
|
|
19621
|
+
}
|
|
19622
|
+
}
|
|
19623
|
+
this.hideChip(chipEl);
|
|
19624
|
+
});
|
|
19625
|
+
}
|
|
19626
|
+
setCompactSelectionDisplay({ chipContainerElGap, chipContainerElWidth, inputWidth, largestSelectedIndicatorChipWidth, }) {
|
|
19627
|
+
const newCompactBreakpoint = Math.round(largestSelectedIndicatorChipWidth + chipContainerElGap + inputWidth);
|
|
19628
|
+
if (!this.maxCompactBreakpoint || this.maxCompactBreakpoint < newCompactBreakpoint) {
|
|
19629
|
+
this.maxCompactBreakpoint = newCompactBreakpoint;
|
|
19630
|
+
}
|
|
19631
|
+
this.compactSelectionDisplay = chipContainerElWidth < this.maxCompactBreakpoint;
|
|
19632
|
+
}
|
|
19633
|
+
setVisibleAndHiddenChips(chipEls) {
|
|
19634
|
+
let newSelectedVisibleChipsCount = 0;
|
|
19635
|
+
chipEls.forEach((chipEl) => {
|
|
19636
|
+
if (chipEl.selected && !chipEl.classList.contains(CSS$_.chipInvisible)) {
|
|
19637
|
+
newSelectedVisibleChipsCount++;
|
|
19638
|
+
}
|
|
19639
|
+
});
|
|
19640
|
+
if (newSelectedVisibleChipsCount !== this.selectedVisibleChipsCount) {
|
|
19641
|
+
this.selectedVisibleChipsCount = newSelectedVisibleChipsCount;
|
|
19642
|
+
}
|
|
19643
|
+
const newSelectedHiddenChipsCount = this.getSelectedItems().length - newSelectedVisibleChipsCount;
|
|
19644
|
+
if (newSelectedHiddenChipsCount !== this.selectedHiddenChipsCount) {
|
|
19645
|
+
this.selectedHiddenChipsCount = newSelectedHiddenChipsCount;
|
|
19646
|
+
}
|
|
19647
|
+
}
|
|
19527
19648
|
getMaxScrollerHeight() {
|
|
19528
19649
|
const items = this.getItemsAndGroups().filter((item) => !item.hidden);
|
|
19529
19650
|
const { maxItems } = this;
|
|
@@ -19610,23 +19731,6 @@ class Combobox {
|
|
|
19610
19731
|
getFilteredItems() {
|
|
19611
19732
|
return this.items.filter((item) => !item.hidden);
|
|
19612
19733
|
}
|
|
19613
|
-
getSelectedItems() {
|
|
19614
|
-
if (!this.isMulti()) {
|
|
19615
|
-
const match = this.items.find(({ selected }) => selected);
|
|
19616
|
-
return match ? [match] : [];
|
|
19617
|
-
}
|
|
19618
|
-
return (this.items
|
|
19619
|
-
.filter((item) => item.selected && (this.selectionMode !== "ancestors" || !hasActiveChildren(item)))
|
|
19620
|
-
/** Preserve order of entered tags */
|
|
19621
|
-
.sort((a, b) => {
|
|
19622
|
-
const aIdx = this.selectedItems.indexOf(a);
|
|
19623
|
-
const bIdx = this.selectedItems.indexOf(b);
|
|
19624
|
-
if (aIdx > -1 && bIdx > -1) {
|
|
19625
|
-
return aIdx - bIdx;
|
|
19626
|
-
}
|
|
19627
|
-
return bIdx - aIdx;
|
|
19628
|
-
}));
|
|
19629
|
-
}
|
|
19630
19734
|
getData() {
|
|
19631
19735
|
return this.items.map((item) => ({
|
|
19632
19736
|
filterDisabled: item.filterDisabled,
|
|
@@ -19737,6 +19841,9 @@ class Combobox {
|
|
|
19737
19841
|
this.activeChipIndex = -1;
|
|
19738
19842
|
}
|
|
19739
19843
|
}
|
|
19844
|
+
isAllSelected() {
|
|
19845
|
+
return this.getItems().length === this.getSelectedItems().length;
|
|
19846
|
+
}
|
|
19740
19847
|
isMulti() {
|
|
19741
19848
|
return !isSingleLike(this.selectionMode);
|
|
19742
19849
|
}
|
|
@@ -19755,9 +19862,94 @@ class Combobox {
|
|
|
19755
19862
|
const ancestors = [...getItemAncestors(item)].reverse();
|
|
19756
19863
|
const pathLabel = [...ancestors, item].map((el) => el.textLabel);
|
|
19757
19864
|
const label = selectionMode !== "ancestors" ? item.textLabel : pathLabel.join(" / ");
|
|
19758
|
-
return (hAsync("calcite-chip", { class: chipClasses, closable: true, icon: item.icon, iconFlipRtl: item.iconFlipRtl, id: item.guid ? `${chipUidPrefix}${item.guid}` : null, key: item.textLabel, messageOverrides: { dismissLabel: messages.removeTag }, onCalciteChipClose: () => this.calciteChipCloseHandler(item), scale: scale, title: label, value: item.value }, label));
|
|
19865
|
+
return (hAsync("calcite-chip", { class: chipClasses, closable: true, icon: item.icon, iconFlipRtl: item.iconFlipRtl, id: item.guid ? `${chipUidPrefix}${item.guid}` : null, key: item.textLabel, messageOverrides: { dismissLabel: messages.removeTag }, onCalciteChipClose: () => this.calciteChipCloseHandler(item), scale: scale, selected: item.selected, title: label, value: item.value }, label));
|
|
19759
19866
|
});
|
|
19760
19867
|
}
|
|
19868
|
+
renderAllSelectedIndicatorChip() {
|
|
19869
|
+
const { compactSelectionDisplay, scale, selectedVisibleChipsCount, setAllSelectedIndicatorChipEl, } = this;
|
|
19870
|
+
const label = this.messages.allSelected;
|
|
19871
|
+
return (hAsync("calcite-chip", { class: {
|
|
19872
|
+
chip: true,
|
|
19873
|
+
[CSS$_.chipInvisible]: !(this.isAllSelected() &&
|
|
19874
|
+
!selectedVisibleChipsCount &&
|
|
19875
|
+
!compactSelectionDisplay),
|
|
19876
|
+
}, scale: scale, title: label, value: "",
|
|
19877
|
+
// 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)
|
|
19878
|
+
ref: setAllSelectedIndicatorChipEl }, label));
|
|
19879
|
+
}
|
|
19880
|
+
renderAllSelectedIndicatorChipCompact() {
|
|
19881
|
+
const { compactSelectionDisplay, scale, selectedVisibleChipsCount } = this;
|
|
19882
|
+
const label = this.messages.all || "All";
|
|
19883
|
+
return (hAsync("calcite-chip", { class: {
|
|
19884
|
+
chip: true,
|
|
19885
|
+
[CSS$_.chipInvisible]: !(this.isAllSelected() &&
|
|
19886
|
+
!selectedVisibleChipsCount &&
|
|
19887
|
+
compactSelectionDisplay),
|
|
19888
|
+
}, scale: scale, title: label, value: "" }, label));
|
|
19889
|
+
}
|
|
19890
|
+
renderSelectedIndicatorChip() {
|
|
19891
|
+
const { compactSelectionDisplay, selectionDisplay, getSelectedItems, scale, selectedHiddenChipsCount, selectedVisibleChipsCount, setSelectedIndicatorChipEl, } = this;
|
|
19892
|
+
let chipInvisible;
|
|
19893
|
+
let label;
|
|
19894
|
+
if (compactSelectionDisplay) {
|
|
19895
|
+
chipInvisible = true;
|
|
19896
|
+
}
|
|
19897
|
+
else {
|
|
19898
|
+
if (selectionDisplay === "single") {
|
|
19899
|
+
const selectedItemsCount = getSelectedItems().length;
|
|
19900
|
+
if (this.isAllSelected()) {
|
|
19901
|
+
chipInvisible = true;
|
|
19902
|
+
}
|
|
19903
|
+
else if (selectedItemsCount > 0) {
|
|
19904
|
+
chipInvisible = false;
|
|
19905
|
+
}
|
|
19906
|
+
else {
|
|
19907
|
+
chipInvisible = true;
|
|
19908
|
+
}
|
|
19909
|
+
label = `${selectedItemsCount} ${this.messages.selected}`;
|
|
19910
|
+
}
|
|
19911
|
+
else if (selectionDisplay === "fit") {
|
|
19912
|
+
chipInvisible = !!((this.isAllSelected() && selectedVisibleChipsCount === 0) ||
|
|
19913
|
+
selectedHiddenChipsCount === 0);
|
|
19914
|
+
label =
|
|
19915
|
+
selectedVisibleChipsCount > 0
|
|
19916
|
+
? `+${selectedHiddenChipsCount}`
|
|
19917
|
+
: `${selectedHiddenChipsCount} ${this.messages.selected}`;
|
|
19918
|
+
}
|
|
19919
|
+
}
|
|
19920
|
+
return (hAsync("calcite-chip", { class: {
|
|
19921
|
+
chip: true,
|
|
19922
|
+
[CSS$_.chipInvisible]: chipInvisible,
|
|
19923
|
+
}, scale: scale, title: label, value: "",
|
|
19924
|
+
// 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)
|
|
19925
|
+
ref: setSelectedIndicatorChipEl }, label));
|
|
19926
|
+
}
|
|
19927
|
+
renderSelectedIndicatorChipCompact() {
|
|
19928
|
+
const { compactSelectionDisplay, selectionDisplay, getSelectedItems, scale, selectedHiddenChipsCount, } = this;
|
|
19929
|
+
let chipInvisible;
|
|
19930
|
+
let label;
|
|
19931
|
+
if (compactSelectionDisplay) {
|
|
19932
|
+
const selectedItemsCount = getSelectedItems().length;
|
|
19933
|
+
if (this.isAllSelected()) {
|
|
19934
|
+
chipInvisible = true;
|
|
19935
|
+
}
|
|
19936
|
+
else if (selectionDisplay === "fit") {
|
|
19937
|
+
chipInvisible = !(selectedHiddenChipsCount > 0);
|
|
19938
|
+
label = `${selectedHiddenChipsCount || 0}`;
|
|
19939
|
+
}
|
|
19940
|
+
else if (selectionDisplay === "single") {
|
|
19941
|
+
chipInvisible = !(selectedItemsCount > 0);
|
|
19942
|
+
label = `${selectedItemsCount}`;
|
|
19943
|
+
}
|
|
19944
|
+
}
|
|
19945
|
+
else {
|
|
19946
|
+
chipInvisible = true;
|
|
19947
|
+
}
|
|
19948
|
+
return (hAsync("calcite-chip", { class: {
|
|
19949
|
+
chip: true,
|
|
19950
|
+
[CSS$_.chipInvisible]: chipInvisible,
|
|
19951
|
+
}, scale: scale, title: label, value: "" }, label));
|
|
19952
|
+
}
|
|
19761
19953
|
renderInput() {
|
|
19762
19954
|
const { guid, disabled, placeholder, selectionMode, selectedItems, open } = this;
|
|
19763
19955
|
const single = isSingleLike(selectionMode);
|
|
@@ -19785,7 +19977,7 @@ class Combobox {
|
|
|
19785
19977
|
renderFloatingUIContainer() {
|
|
19786
19978
|
const { setFloatingEl, setContainerEl, open } = this;
|
|
19787
19979
|
const classes = {
|
|
19788
|
-
[CSS$
|
|
19980
|
+
[CSS$_.listContainer]: true,
|
|
19789
19981
|
[FloatingCSS.animation]: true,
|
|
19790
19982
|
[FloatingCSS.animationActive]: open,
|
|
19791
19983
|
};
|
|
@@ -19813,16 +20005,29 @@ class Combobox {
|
|
|
19813
20005
|
return (hAsync("span", { class: "icon-end" }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: getIconScale(this.scale) })));
|
|
19814
20006
|
}
|
|
19815
20007
|
render() {
|
|
19816
|
-
const { guid, label, open } = this;
|
|
19817
|
-
const
|
|
20008
|
+
const { selectionDisplay, guid, label, open } = this;
|
|
20009
|
+
const singleSelectionMode = isSingleLike(this.selectionMode);
|
|
20010
|
+
const allSelectionDisplay = selectionDisplay === "all";
|
|
20011
|
+
const singleSelectionDisplay = selectionDisplay === "single";
|
|
20012
|
+
const fitSelectionDisplay = !singleSelectionMode && selectionDisplay === "fit";
|
|
19818
20013
|
const isClearable = !this.clearDisabled && this.value?.length > 0;
|
|
19819
20014
|
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: {
|
|
19820
20015
|
wrapper: true,
|
|
19821
|
-
"wrapper--single":
|
|
20016
|
+
"wrapper--single": singleSelectionMode || !this.selectedItems.length,
|
|
19822
20017
|
"wrapper--active": open,
|
|
19823
20018
|
}, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, role: "combobox",
|
|
19824
20019
|
// 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)
|
|
19825
|
-
ref: this.setReferenceEl }, hAsync("div", { class:
|
|
20020
|
+
ref: this.setReferenceEl }, hAsync("div", { class: {
|
|
20021
|
+
"grid-input": true,
|
|
20022
|
+
[CSS$_.selectionDisplayFit]: fitSelectionDisplay,
|
|
20023
|
+
[CSS$_.selectionDisplaySingle]: singleSelectionDisplay,
|
|
20024
|
+
}, ref: this.setChipContainerEl }, this.renderIconStart(), !singleSelectionMode && !singleSelectionDisplay && this.renderChips(), !singleSelectionMode &&
|
|
20025
|
+
!allSelectionDisplay && [
|
|
20026
|
+
this.renderSelectedIndicatorChip(),
|
|
20027
|
+
this.renderSelectedIndicatorChipCompact(),
|
|
20028
|
+
this.renderAllSelectedIndicatorChip(),
|
|
20029
|
+
this.renderAllSelectedIndicatorChipCompact(),
|
|
20030
|
+
], 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 })));
|
|
19826
20031
|
}
|
|
19827
20032
|
static get assetsDirs() { return ["assets"]; }
|
|
19828
20033
|
get el() { return getElement(this); }
|
|
@@ -19846,6 +20051,7 @@ class Combobox {
|
|
|
19846
20051
|
"$tagName$": "calcite-combobox",
|
|
19847
20052
|
"$members$": {
|
|
19848
20053
|
"clearDisabled": [516, "clear-disabled"],
|
|
20054
|
+
"selectionDisplay": [513, "selection-display"],
|
|
19849
20055
|
"open": [1540],
|
|
19850
20056
|
"disabled": [516],
|
|
19851
20057
|
"form": [513],
|
|
@@ -19872,6 +20078,9 @@ class Combobox {
|
|
|
19872
20078
|
"activeItemIndex": [32],
|
|
19873
20079
|
"activeChipIndex": [32],
|
|
19874
20080
|
"activeDescendant": [32],
|
|
20081
|
+
"compactSelectionDisplay": [32],
|
|
20082
|
+
"selectedHiddenChipsCount": [32],
|
|
20083
|
+
"selectedVisibleChipsCount": [32],
|
|
19875
20084
|
"text": [32],
|
|
19876
20085
|
"effectiveLocale": [32],
|
|
19877
20086
|
"defaultMessages": [32],
|
|
@@ -19880,11 +20089,11 @@ class Combobox {
|
|
|
19880
20089
|
},
|
|
19881
20090
|
"$listeners$": [[5, "pointerdown", "documentClickHandler"], [0, "calciteComboboxItemChange", "calciteComboboxItemChangeHandler"]],
|
|
19882
20091
|
"$lazyBundleId$": "-",
|
|
19883
|
-
"$attrsToReflect$": [["clearDisabled", "clear-disabled"], ["open", "open"], ["disabled", "disabled"], ["form", "form"], ["placeholderIcon", "placeholder-icon"], ["placeholderIconFlipRtl", "placeholder-icon-flip-rtl"], ["maxItems", "max-items"], ["name", "name"], ["allowCustomValues", "allow-custom-values"], ["overlayPositioning", "overlay-positioning"], ["required", "required"], ["selectionMode", "selection-mode"], ["scale", "scale"]]
|
|
20092
|
+
"$attrsToReflect$": [["clearDisabled", "clear-disabled"], ["selectionDisplay", "selection-display"], ["open", "open"], ["disabled", "disabled"], ["form", "form"], ["placeholderIcon", "placeholder-icon"], ["placeholderIconFlipRtl", "placeholder-icon-flip-rtl"], ["maxItems", "max-items"], ["name", "name"], ["allowCustomValues", "allow-custom-values"], ["overlayPositioning", "overlay-positioning"], ["required", "required"], ["selectionMode", "selection-mode"], ["scale", "scale"]]
|
|
19884
20093
|
}; }
|
|
19885
20094
|
}
|
|
19886
20095
|
|
|
19887
|
-
const CSS$
|
|
20096
|
+
const CSS$Y = {
|
|
19888
20097
|
icon: "icon",
|
|
19889
20098
|
iconActive: "icon--active",
|
|
19890
20099
|
iconIndent: "icon--indent",
|
|
@@ -19962,20 +20171,20 @@ class ComboboxItem {
|
|
|
19962
20171
|
// --------------------------------------------------------------------------
|
|
19963
20172
|
renderIcon(iconPath) {
|
|
19964
20173
|
return this.icon ? (hAsync("calcite-icon", { class: {
|
|
19965
|
-
[CSS$
|
|
19966
|
-
[CSS$
|
|
19967
|
-
[CSS$
|
|
20174
|
+
[CSS$Y.custom]: !!this.icon,
|
|
20175
|
+
[CSS$Y.iconActive]: this.icon && this.selected,
|
|
20176
|
+
[CSS$Y.iconIndent]: true,
|
|
19968
20177
|
}, flipRtl: this.iconFlipRtl, icon: this.icon || iconPath, key: "icon", scale: getIconScale(this.scale) })) : null;
|
|
19969
20178
|
}
|
|
19970
20179
|
renderSelectIndicator(showDot, iconPath) {
|
|
19971
20180
|
return showDot ? (hAsync("span", { class: {
|
|
19972
|
-
[CSS$
|
|
19973
|
-
[CSS$
|
|
19974
|
-
[CSS$
|
|
20181
|
+
[CSS$Y.icon]: true,
|
|
20182
|
+
[CSS$Y.dot]: true,
|
|
20183
|
+
[CSS$Y.iconIndent]: true,
|
|
19975
20184
|
} })) : (hAsync("calcite-icon", { class: {
|
|
19976
|
-
[CSS$
|
|
19977
|
-
[CSS$
|
|
19978
|
-
[CSS$
|
|
20185
|
+
[CSS$Y.icon]: true,
|
|
20186
|
+
[CSS$Y.iconActive]: this.selected,
|
|
20187
|
+
[CSS$Y.iconIndent]: true,
|
|
19979
20188
|
}, flipRtl: this.iconFlipRtl, icon: iconPath, key: "indicator", scale: getIconScale(this.scale) }));
|
|
19980
20189
|
}
|
|
19981
20190
|
renderChildren() {
|
|
@@ -19990,10 +20199,10 @@ class ComboboxItem {
|
|
|
19990
20199
|
const defaultIcon = isSingleSelect ? "dot" : "check";
|
|
19991
20200
|
const iconPath = this.disabled ? "" : defaultIcon;
|
|
19992
20201
|
const classes = {
|
|
19993
|
-
[CSS$
|
|
19994
|
-
[CSS$
|
|
19995
|
-
[CSS$
|
|
19996
|
-
[CSS$
|
|
20202
|
+
[CSS$Y.label]: true,
|
|
20203
|
+
[CSS$Y.selected]: this.selected,
|
|
20204
|
+
[CSS$Y.active]: this.active,
|
|
20205
|
+
[CSS$Y.single]: isSingleSelect,
|
|
19997
20206
|
};
|
|
19998
20207
|
const depth = getDepth$1();
|
|
19999
20208
|
return (hAsync(Host, { "aria-hidden": "true" }, hAsync("div", { class: `container scale--${this.scale}`, style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("li", { class: classes, id: this.guid, onClick: this.itemClickHandler }, this.renderSelectIndicator(showDot, iconPath), this.renderIcon(iconPath), hAsync("span", { class: "title" }, this.textLabel)), this.renderChildren())));
|
|
@@ -20026,7 +20235,7 @@ class ComboboxItem {
|
|
|
20026
20235
|
}; }
|
|
20027
20236
|
}
|
|
20028
20237
|
|
|
20029
|
-
const CSS$
|
|
20238
|
+
const CSS$X = {
|
|
20030
20239
|
list: "list",
|
|
20031
20240
|
label: "label",
|
|
20032
20241
|
title: "title",
|
|
@@ -20062,7 +20271,7 @@ class ComboboxItemGroup {
|
|
|
20062
20271
|
render() {
|
|
20063
20272
|
const { el, scale } = this;
|
|
20064
20273
|
const depth = getDepth$1();
|
|
20065
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
20274
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$X.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$X.label]: true }, id: this.guid, role: "presentation", style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("span", { class: CSS$X.title }, this.label)), hAsync("slot", null)));
|
|
20066
20275
|
}
|
|
20067
20276
|
get el() { return getElement(this); }
|
|
20068
20277
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -21248,7 +21457,7 @@ class DatePickerMonth {
|
|
|
21248
21457
|
}; }
|
|
21249
21458
|
}
|
|
21250
21459
|
|
|
21251
|
-
const CSS$
|
|
21460
|
+
const CSS$W = {
|
|
21252
21461
|
header: "header",
|
|
21253
21462
|
month: "month",
|
|
21254
21463
|
chevron: "chevron",
|
|
@@ -21348,7 +21557,7 @@ class DatePickerMonthHeader {
|
|
|
21348
21557
|
this.setNextPrevMonthDates();
|
|
21349
21558
|
}
|
|
21350
21559
|
render() {
|
|
21351
|
-
return hAsync("div", { class: CSS$
|
|
21560
|
+
return hAsync("div", { class: CSS$W.header }, this.renderContent());
|
|
21352
21561
|
}
|
|
21353
21562
|
renderContent() {
|
|
21354
21563
|
const { messages, localeData, activeDate } = this;
|
|
@@ -21370,12 +21579,12 @@ class DatePickerMonthHeader {
|
|
|
21370
21579
|
const order = getOrder(unitOrder);
|
|
21371
21580
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
21372
21581
|
const suffix = localeData.year?.suffix;
|
|
21373
|
-
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": messages.prevMonth, class: CSS$
|
|
21582
|
+
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": messages.prevMonth, class: CSS$W.chevron, href: "#", onClick: this.prevMonthClick, onKeyDown: this.prevMonthKeydown, role: "button", tabindex: this.prevMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronLeft, scale: getIconScale(this.scale) })), hAsync("div", { class: { text: true, [CSS$W.textReverse]: reverse } }, hAsync(Heading, { class: CSS$W.month, level: this.headingLevel }, localizedMonth), hAsync("span", { class: CSS$W.yearWrap }, hAsync("input", { "aria-label": messages.year, class: {
|
|
21374
21583
|
year: true,
|
|
21375
|
-
[CSS$
|
|
21584
|
+
[CSS$W.yearSuffix]: !!suffix,
|
|
21376
21585
|
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", type: "text", value: localizedYear,
|
|
21377
21586
|
// 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)
|
|
21378
|
-
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$
|
|
21587
|
+
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$W.suffix }, suffix))), hAsync("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": messages.nextMonth, class: CSS$W.chevron, href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronRight, scale: getIconScale(this.scale) }))));
|
|
21379
21588
|
}
|
|
21380
21589
|
setNextPrevMonthDates() {
|
|
21381
21590
|
if (!this.activeDate) {
|
|
@@ -21877,7 +22086,7 @@ class Dropdown {
|
|
|
21877
22086
|
}; }
|
|
21878
22087
|
}
|
|
21879
22088
|
|
|
21880
|
-
const CSS$
|
|
22089
|
+
const CSS$V = {
|
|
21881
22090
|
container: "container",
|
|
21882
22091
|
containerLink: "container--link",
|
|
21883
22092
|
containerMulti: "container--multi-selection",
|
|
@@ -21929,8 +22138,8 @@ class DropdownGroup {
|
|
|
21929
22138
|
const groupTitle = this.groupTitle ? (hAsync("span", { "aria-hidden": "true", class: "dropdown-title" }, this.groupTitle)) : null;
|
|
21930
22139
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
21931
22140
|
return (hAsync(Host, { "aria-label": this.groupTitle, role: "group" }, hAsync("div", { class: {
|
|
21932
|
-
[CSS$
|
|
21933
|
-
[`${CSS$
|
|
22141
|
+
[CSS$V.container]: true,
|
|
22142
|
+
[`${CSS$V.container}--${this.scale}`]: true,
|
|
21934
22143
|
} }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
21935
22144
|
}
|
|
21936
22145
|
//--------------------------------------------------------------------------
|
|
@@ -22024,9 +22233,9 @@ class DropdownItem {
|
|
|
22024
22233
|
}
|
|
22025
22234
|
render() {
|
|
22026
22235
|
const { href, selectionMode, label, iconFlipRtl, scale } = this;
|
|
22027
|
-
const iconStartEl = (hAsync("calcite-icon", { class: CSS$
|
|
22028
|
-
const contentNode = (hAsync("span", { class: CSS$
|
|
22029
|
-
const iconEndEl = (hAsync("calcite-icon", { class: CSS$
|
|
22236
|
+
const iconStartEl = (hAsync("calcite-icon", { class: CSS$V.iconStart, flipRtl: iconFlipRtl === "start" || iconFlipRtl === "both", icon: this.iconStart, scale: getIconScale(this.scale) }));
|
|
22237
|
+
const contentNode = (hAsync("span", { class: CSS$V.itemContent }, hAsync("slot", null)));
|
|
22238
|
+
const iconEndEl = (hAsync("calcite-icon", { class: CSS$V.iconEnd, flipRtl: iconFlipRtl === "end" || iconFlipRtl === "both", icon: this.iconEnd, scale: getIconScale(this.scale) }));
|
|
22030
22239
|
const slottedContent = this.iconStart && this.iconEnd
|
|
22031
22240
|
? [iconStartEl, contentNode, iconEndEl]
|
|
22032
22241
|
: this.iconStart
|
|
@@ -22034,7 +22243,7 @@ class DropdownItem {
|
|
|
22034
22243
|
: this.iconEnd
|
|
22035
22244
|
? [contentNode, iconEndEl]
|
|
22036
22245
|
: contentNode;
|
|
22037
|
-
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$
|
|
22246
|
+
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$V.link, href: href, rel: this.rel, tabIndex: -1, target: this.target,
|
|
22038
22247
|
// 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)
|
|
22039
22248
|
ref: (el) => (this.childLink = el) }, slottedContent));
|
|
22040
22249
|
const itemRole = href
|
|
@@ -22046,13 +22255,13 @@ class DropdownItem {
|
|
|
22046
22255
|
: "menuitem";
|
|
22047
22256
|
const itemAria = selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
|
22048
22257
|
return (hAsync(Host, { "aria-checked": itemAria, "aria-label": !href ? label : "", role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
22049
|
-
[CSS$
|
|
22050
|
-
[CSS$
|
|
22051
|
-
[`${CSS$
|
|
22052
|
-
[CSS$
|
|
22053
|
-
[CSS$
|
|
22054
|
-
[CSS$
|
|
22055
|
-
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$
|
|
22258
|
+
[CSS$V.container]: true,
|
|
22259
|
+
[CSS$V.containerLink]: !!href,
|
|
22260
|
+
[`${CSS$V.container}--${scale}`]: true,
|
|
22261
|
+
[CSS$V.containerMulti]: selectionMode === "multiple",
|
|
22262
|
+
[CSS$V.containerSingle]: selectionMode === "single",
|
|
22263
|
+
[CSS$V.containerNone]: selectionMode === "none",
|
|
22264
|
+
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$V.icon, icon: selectionMode === "multiple" ? "check" : "bullet-point", scale: getIconScale(this.scale) })) : null, contentEl)));
|
|
22056
22265
|
}
|
|
22057
22266
|
//--------------------------------------------------------------------------
|
|
22058
22267
|
//
|
|
@@ -22159,7 +22368,7 @@ class DropdownItem {
|
|
|
22159
22368
|
}; }
|
|
22160
22369
|
}
|
|
22161
22370
|
|
|
22162
|
-
const CSS$
|
|
22371
|
+
const CSS$U = {
|
|
22163
22372
|
button: "button",
|
|
22164
22373
|
};
|
|
22165
22374
|
const ICONS$d = {
|
|
@@ -22220,7 +22429,7 @@ class Fab {
|
|
|
22220
22429
|
render() {
|
|
22221
22430
|
const { appearance, kind, disabled, loading, scale, textEnabled, icon, label, text, iconFlipRtl, } = this;
|
|
22222
22431
|
const title = !textEnabled ? label || text || null : null;
|
|
22223
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$
|
|
22432
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$U.button, disabled: disabled, iconFlipRtl: iconFlipRtl ? "start" : null, iconStart: icon, kind: kind, label: label, loading: loading, round: true, scale: scale, title: title, type: "button", width: "auto",
|
|
22224
22433
|
// 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)
|
|
22225
22434
|
ref: (buttonEl) => {
|
|
22226
22435
|
this.buttonEl = buttonEl;
|
|
@@ -22250,7 +22459,7 @@ class Fab {
|
|
|
22250
22459
|
}; }
|
|
22251
22460
|
}
|
|
22252
22461
|
|
|
22253
|
-
const CSS$
|
|
22462
|
+
const CSS$T = {
|
|
22254
22463
|
container: "container",
|
|
22255
22464
|
searchIcon: "search-icon",
|
|
22256
22465
|
};
|
|
@@ -22379,7 +22588,7 @@ class Filter {
|
|
|
22379
22588
|
// --------------------------------------------------------------------------
|
|
22380
22589
|
render() {
|
|
22381
22590
|
const { disabled, scale } = this;
|
|
22382
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$
|
|
22591
|
+
return (hAsync(Fragment, null, hAsync("div", { class: CSS$T.container }, hAsync("label", null, hAsync("calcite-input", { clearable: true, disabled: disabled, icon: ICONS$c.search, label: this.messages.label, messageOverrides: { clear: this.messages.clear }, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, scale: scale, type: "text", value: this.value,
|
|
22383
22592
|
// 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)
|
|
22384
22593
|
ref: (el) => {
|
|
22385
22594
|
this.textInput = el;
|
|
@@ -22418,7 +22627,7 @@ class Filter {
|
|
|
22418
22627
|
}; }
|
|
22419
22628
|
}
|
|
22420
22629
|
|
|
22421
|
-
const CSS$
|
|
22630
|
+
const CSS$S = {
|
|
22422
22631
|
frame: "frame",
|
|
22423
22632
|
frameAdvancing: "frame--advancing",
|
|
22424
22633
|
frameRetreating: "frame--retreating",
|
|
@@ -22543,9 +22752,9 @@ class Flow {
|
|
|
22543
22752
|
render() {
|
|
22544
22753
|
const { flowDirection } = this;
|
|
22545
22754
|
const frameDirectionClasses = {
|
|
22546
|
-
[CSS$
|
|
22547
|
-
[CSS$
|
|
22548
|
-
[CSS$
|
|
22755
|
+
[CSS$S.frame]: true,
|
|
22756
|
+
[CSS$S.frameAdvancing]: flowDirection === "advancing",
|
|
22757
|
+
[CSS$S.frameRetreating]: flowDirection === "retreating",
|
|
22549
22758
|
};
|
|
22550
22759
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
22551
22760
|
}
|
|
@@ -22568,7 +22777,7 @@ class Flow {
|
|
|
22568
22777
|
}; }
|
|
22569
22778
|
}
|
|
22570
22779
|
|
|
22571
|
-
const CSS$
|
|
22780
|
+
const CSS$R = {
|
|
22572
22781
|
actionBarContainer: "action-bar-container",
|
|
22573
22782
|
backButton: "back-button",
|
|
22574
22783
|
container: "container",
|
|
@@ -22605,7 +22814,7 @@ const SLOTS$n = {
|
|
|
22605
22814
|
footerActions: "footer-actions",
|
|
22606
22815
|
};
|
|
22607
22816
|
|
|
22608
|
-
const CSS$
|
|
22817
|
+
const CSS$Q = {
|
|
22609
22818
|
backButton: "back-button",
|
|
22610
22819
|
};
|
|
22611
22820
|
const ICONS$a = {
|
|
@@ -22765,7 +22974,7 @@ class FlowItem {
|
|
|
22765
22974
|
const { showBackButton, backButtonClick, messages } = this;
|
|
22766
22975
|
const label = messages.back;
|
|
22767
22976
|
const icon = rtl ? ICONS$a.backRight : ICONS$a.backLeft;
|
|
22768
|
-
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$
|
|
22977
|
+
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$Q.backButton, icon: icon, key: "flow-back-button", onClick: backButtonClick, scale: "s", slot: "header-actions-start", text: label, title: label,
|
|
22769
22978
|
// 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)
|
|
22770
22979
|
ref: this.setBackRef })) : null;
|
|
22771
22980
|
}
|
|
@@ -23032,7 +23241,7 @@ class Graph {
|
|
|
23032
23241
|
}; }
|
|
23033
23242
|
}
|
|
23034
23243
|
|
|
23035
|
-
const CSS$
|
|
23244
|
+
const CSS$P = {
|
|
23036
23245
|
handle: "handle",
|
|
23037
23246
|
handleActivated: "handle--activated",
|
|
23038
23247
|
};
|
|
@@ -23155,7 +23364,7 @@ class Handle {
|
|
|
23155
23364
|
render() {
|
|
23156
23365
|
return (
|
|
23157
23366
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
23158
|
-
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
23367
|
+
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$P.handle]: true, [CSS$P.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0", title: this.messages?.dragHandle,
|
|
23159
23368
|
// 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)
|
|
23160
23369
|
ref: (el) => {
|
|
23161
23370
|
this.handleButton = el;
|
|
@@ -23194,7 +23403,7 @@ class Handle {
|
|
|
23194
23403
|
}; }
|
|
23195
23404
|
}
|
|
23196
23405
|
|
|
23197
|
-
const CSS$
|
|
23406
|
+
const CSS$O = {
|
|
23198
23407
|
icon: "icon",
|
|
23199
23408
|
flipRtl: "flip-rtl",
|
|
23200
23409
|
};
|
|
@@ -23242,7 +23451,7 @@ class Icon {
|
|
|
23242
23451
|
const semantic = !!textLabel;
|
|
23243
23452
|
const paths = [].concat(pathData || "");
|
|
23244
23453
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { "aria-hidden": "true", class: {
|
|
23245
|
-
[CSS$
|
|
23454
|
+
[CSS$O.flipRtl]: dir === "rtl" && flipRtl,
|
|
23246
23455
|
svg: true,
|
|
23247
23456
|
}, 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 }))))));
|
|
23248
23457
|
}
|
|
@@ -23288,7 +23497,7 @@ class Icon {
|
|
|
23288
23497
|
}; }
|
|
23289
23498
|
}
|
|
23290
23499
|
|
|
23291
|
-
const CSS$
|
|
23500
|
+
const CSS$N = {
|
|
23292
23501
|
wrapper: "wrapper",
|
|
23293
23502
|
confirmChangesButton: "confirm-changes-button",
|
|
23294
23503
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -23438,16 +23647,16 @@ class InlineEditable {
|
|
|
23438
23647
|
updateHostInteraction(this);
|
|
23439
23648
|
}
|
|
23440
23649
|
render() {
|
|
23441
|
-
return (hAsync("div", { class: CSS$
|
|
23650
|
+
return (hAsync("div", { class: CSS$N.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, hAsync("div", { class: CSS$N.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$N.controlsWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$N.enableEditingButton, disabled: this.disabled, iconStart: "pencil", kind: "neutral", label: this.messages.enableEditing, onClick: this.enableEditingHandler, scale: this.scale, style: {
|
|
23442
23651
|
opacity: this.editingEnabled ? "0" : "1",
|
|
23443
23652
|
width: this.editingEnabled ? "0" : "inherit",
|
|
23444
23653
|
}, type: "button",
|
|
23445
23654
|
// 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)
|
|
23446
23655
|
ref: (el) => (this.enableEditingButton = el) }), this.shouldShowControls && [
|
|
23447
|
-
hAsync("div", { class: CSS$
|
|
23656
|
+
hAsync("div", { class: CSS$N.cancelEditingButtonWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$N.cancelEditingButton, disabled: this.disabled, iconStart: "x", kind: "neutral", label: this.messages.cancelEditing, onClick: this.cancelEditingHandler, scale: this.scale, type: "button",
|
|
23448
23657
|
// 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)
|
|
23449
23658
|
ref: (el) => (this.cancelEditingButton = el) })),
|
|
23450
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
23659
|
+
hAsync("calcite-button", { appearance: "solid", class: CSS$N.confirmChangesButton, disabled: this.disabled, iconStart: "check", kind: "brand", label: this.messages.confirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale, type: "button",
|
|
23451
23660
|
// 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)
|
|
23452
23661
|
ref: (el) => (this.confirmEditingButton = el) }),
|
|
23453
23662
|
])));
|
|
@@ -23533,7 +23742,7 @@ class InlineEditable {
|
|
|
23533
23742
|
}; }
|
|
23534
23743
|
}
|
|
23535
23744
|
|
|
23536
|
-
const CSS$
|
|
23745
|
+
const CSS$M = {
|
|
23537
23746
|
loader: "loader",
|
|
23538
23747
|
clearButton: "clear-button",
|
|
23539
23748
|
editingEnabled: "editing-enabled",
|
|
@@ -24117,38 +24326,38 @@ class Input {
|
|
|
24117
24326
|
// --------------------------------------------------------------------------
|
|
24118
24327
|
render() {
|
|
24119
24328
|
const dir = getElementDir(this.el);
|
|
24120
|
-
const loader = (hAsync("div", { class: CSS$
|
|
24121
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
24122
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
24329
|
+
const loader = (hAsync("div", { class: CSS$M.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
24330
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$M.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })));
|
|
24331
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$M.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: getIconScale(this.scale) }));
|
|
24123
24332
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
24124
24333
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24125
|
-
[CSS$
|
|
24126
|
-
[CSS$
|
|
24334
|
+
[CSS$M.numberButtonItem]: true,
|
|
24335
|
+
[CSS$M.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24127
24336
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: getIconScale(this.scale) })));
|
|
24128
24337
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24129
|
-
[CSS$
|
|
24130
|
-
[CSS$
|
|
24338
|
+
[CSS$M.numberButtonItem]: true,
|
|
24339
|
+
[CSS$M.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24131
24340
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: getIconScale(this.scale) })));
|
|
24132
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
24133
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
24134
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
24341
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$M.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
24342
|
+
const prefixText = hAsync("div", { class: CSS$M.prefix }, this.prefixText);
|
|
24343
|
+
const suffixText = hAsync("div", { class: CSS$M.suffix }, this.suffixText);
|
|
24135
24344
|
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,
|
|
24136
24345
|
// 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)
|
|
24137
24346
|
ref: this.setChildNumberElRef })) : null;
|
|
24138
24347
|
const childEl = this.type !== "number"
|
|
24139
24348
|
? [
|
|
24140
24349
|
hAsync(this.childElType, { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
24141
|
-
[CSS$
|
|
24142
|
-
[CSS$
|
|
24350
|
+
[CSS$M.editingEnabled]: this.editingEnabled,
|
|
24351
|
+
[CSS$M.inlineChild]: !!this.inlineEditableEl,
|
|
24143
24352
|
}, 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,
|
|
24144
24353
|
// 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)
|
|
24145
24354
|
ref: this.setChildElRef }),
|
|
24146
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
24355
|
+
this.isTextarea ? (hAsync("div", { class: CSS$M.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: getIconScale(this.scale) }))) : null,
|
|
24147
24356
|
]
|
|
24148
24357
|
: null;
|
|
24149
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
24358
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$M.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24150
24359
|
? numberButtonsHorizontalDown
|
|
24151
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
24360
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$M.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$M.actionWrapper }, hAsync("slot", { name: SLOTS$l.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
24152
24361
|
? numberButtonsVertical
|
|
24153
24362
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24154
24363
|
? numberButtonsHorizontalUp
|
|
@@ -24223,7 +24432,7 @@ class Input {
|
|
|
24223
24432
|
}; }
|
|
24224
24433
|
}
|
|
24225
24434
|
|
|
24226
|
-
const CSS$
|
|
24435
|
+
const CSS$L = {
|
|
24227
24436
|
assistiveText: "assistive-text",
|
|
24228
24437
|
menu: "menu-container",
|
|
24229
24438
|
menuActive: "menu-container--active",
|
|
@@ -25710,9 +25919,9 @@ class InputDatePicker {
|
|
|
25710
25919
|
// 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)
|
|
25711
25920
|
ref: this.setStartWrapper }, hAsync("calcite-input-text", { "aria-autocomplete": "none", "aria-controls": this.dialogId, "aria-describedby": this.placeholderTextId, "aria-expanded": toAriaBoolean(this.open), "aria-haspopup": "dialog", class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", onCalciteInputTextInput: this.calciteInternalInputInputHandler, onCalciteInternalInputTextBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputTextFocus: this.startInputFocus, onFocus: this.startEndInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, role: "combobox", scale: this.scale, status: this.status,
|
|
25712
25921
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
25713
|
-
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$
|
|
25714
|
-
[CSS$
|
|
25715
|
-
[CSS$
|
|
25922
|
+
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$L.assistiveText, id: this.placeholderTextId }, "Date Format: ", this.localeData?.placeholder)), hAsync("div", { "aria-hidden": toAriaBoolean(!this.open), "aria-label": messages.chooseDate, "aria-live": "polite", "aria-modal": "true", class: {
|
|
25923
|
+
[CSS$L.menu]: true,
|
|
25924
|
+
[CSS$L.menuActive]: this.open,
|
|
25716
25925
|
}, id: this.dialogId, role: "dialog",
|
|
25717
25926
|
// 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)
|
|
25718
25927
|
ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
@@ -25734,7 +25943,7 @@ class InputDatePicker {
|
|
|
25734
25943
|
ref: this.setEndInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "end"))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
25735
25944
|
}
|
|
25736
25945
|
renderToggleIcon(open) {
|
|
25737
|
-
return (hAsync("span", { class: CSS$
|
|
25946
|
+
return (hAsync("span", { class: CSS$L.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: getIconScale(this.scale) })));
|
|
25738
25947
|
}
|
|
25739
25948
|
setReferenceEl() {
|
|
25740
25949
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -26000,7 +26209,7 @@ class InputMessage {
|
|
|
26000
26209
|
}; }
|
|
26001
26210
|
}
|
|
26002
26211
|
|
|
26003
|
-
const CSS$
|
|
26212
|
+
const CSS$K = {
|
|
26004
26213
|
loader: "loader",
|
|
26005
26214
|
clearButton: "clear-button",
|
|
26006
26215
|
editingEnabled: "editing-enabled",
|
|
@@ -26069,6 +26278,7 @@ class InputNumber {
|
|
|
26069
26278
|
}
|
|
26070
26279
|
};
|
|
26071
26280
|
this.inputNumberBlurHandler = () => {
|
|
26281
|
+
window.clearInterval(this.nudgeNumberValueIntervalId);
|
|
26072
26282
|
this.calciteInternalInputNumberBlur.emit();
|
|
26073
26283
|
this.emitChangeIfUserModified();
|
|
26074
26284
|
};
|
|
@@ -26518,27 +26728,27 @@ class InputNumber {
|
|
|
26518
26728
|
// --------------------------------------------------------------------------
|
|
26519
26729
|
render() {
|
|
26520
26730
|
const dir = getElementDir(this.el);
|
|
26521
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26522
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26523
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26731
|
+
const loader = (hAsync("div", { class: CSS$K.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26732
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$K.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })));
|
|
26733
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$K.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: getIconScale(this.scale) }));
|
|
26524
26734
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
26525
26735
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26526
|
-
[CSS$
|
|
26527
|
-
[CSS$
|
|
26736
|
+
[CSS$K.numberButtonItem]: true,
|
|
26737
|
+
[CSS$K.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26528
26738
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerOutHandler, onPointerUp: this.nudgeButtonPointerUpHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: getIconScale(this.scale) })));
|
|
26529
26739
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26530
|
-
[CSS$
|
|
26531
|
-
[CSS$
|
|
26740
|
+
[CSS$K.numberButtonItem]: true,
|
|
26741
|
+
[CSS$K.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26532
26742
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerOutHandler, onPointerUp: this.nudgeButtonPointerUpHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: getIconScale(this.scale) })));
|
|
26533
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
26534
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26535
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
26743
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$K.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
26744
|
+
const prefixText = hAsync("div", { class: CSS$K.prefix }, this.prefixText);
|
|
26745
|
+
const suffixText = hAsync("div", { class: CSS$K.suffix }, this.suffixText);
|
|
26536
26746
|
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,
|
|
26537
26747
|
// 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)
|
|
26538
26748
|
ref: this.setChildNumberElRef }));
|
|
26539
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26749
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$K.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26540
26750
|
? numberButtonsHorizontalDown
|
|
26541
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
26751
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$K.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$K.actionWrapper }, hAsync("slot", { name: SLOTS$k.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26542
26752
|
? numberButtonsHorizontalUp
|
|
26543
26753
|
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26544
26754
|
}
|
|
@@ -26606,7 +26816,7 @@ class InputNumber {
|
|
|
26606
26816
|
}; }
|
|
26607
26817
|
}
|
|
26608
26818
|
|
|
26609
|
-
const CSS$
|
|
26819
|
+
const CSS$J = {
|
|
26610
26820
|
loader: "loader",
|
|
26611
26821
|
clearButton: "clear-button",
|
|
26612
26822
|
editingEnabled: "editing-enabled",
|
|
@@ -26906,18 +27116,18 @@ class InputText {
|
|
|
26906
27116
|
// --------------------------------------------------------------------------
|
|
26907
27117
|
render() {
|
|
26908
27118
|
const dir = getElementDir(this.el);
|
|
26909
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26910
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26911
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26912
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26913
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
27119
|
+
const loader = (hAsync("div", { class: CSS$J.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
27120
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$J.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputTextValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })));
|
|
27121
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$J.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: getIconScale(this.scale) }));
|
|
27122
|
+
const prefixText = hAsync("div", { class: CSS$J.prefix }, this.prefixText);
|
|
27123
|
+
const suffixText = hAsync("div", { class: CSS$J.suffix }, this.suffixText);
|
|
26914
27124
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
26915
|
-
[CSS$
|
|
26916
|
-
[CSS$
|
|
27125
|
+
[CSS$J.editingEnabled]: this.editingEnabled,
|
|
27126
|
+
[CSS$J.inlineChild]: !!this.inlineEditableEl,
|
|
26917
27127
|
}, 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,
|
|
26918
27128
|
// 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)
|
|
26919
27129
|
ref: this.setChildElRef }));
|
|
26920
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
27130
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$J.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$J.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$J.actionWrapper }, hAsync("slot", { name: SLOTS$j.action })), this.suffixText ? suffixText : null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26921
27131
|
}
|
|
26922
27132
|
static get assetsDirs() { return ["assets"]; }
|
|
26923
27133
|
get el() { return getElement(this); }
|
|
@@ -27233,7 +27443,7 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
27233
27443
|
return isoTimeString;
|
|
27234
27444
|
}
|
|
27235
27445
|
|
|
27236
|
-
const CSS$
|
|
27446
|
+
const CSS$I = {
|
|
27237
27447
|
toggleIcon: "toggle-icon",
|
|
27238
27448
|
};
|
|
27239
27449
|
|
|
@@ -29032,7 +29242,7 @@ class InputTimePicker {
|
|
|
29032
29242
|
ref: this.setCalciteTimePickerEl })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
29033
29243
|
}
|
|
29034
29244
|
renderToggleIcon(open) {
|
|
29035
|
-
return (hAsync("span", { class: CSS$
|
|
29245
|
+
return (hAsync("span", { class: CSS$I.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: getIconScale(this.scale) })));
|
|
29036
29246
|
}
|
|
29037
29247
|
static get delegatesFocus() { return true; }
|
|
29038
29248
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -29403,7 +29613,7 @@ class InputTimeZone {
|
|
|
29403
29613
|
}; }
|
|
29404
29614
|
}
|
|
29405
29615
|
|
|
29406
|
-
const CSS$
|
|
29616
|
+
const CSS$H = {
|
|
29407
29617
|
container: "container",
|
|
29408
29618
|
};
|
|
29409
29619
|
|
|
@@ -29443,7 +29653,7 @@ class Label {
|
|
|
29443
29653
|
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
29444
29654
|
}
|
|
29445
29655
|
render() {
|
|
29446
|
-
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$
|
|
29656
|
+
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$H.container }, hAsync("slot", null))));
|
|
29447
29657
|
}
|
|
29448
29658
|
get el() { return getElement(this); }
|
|
29449
29659
|
static get style() { return labelCss; }
|
|
@@ -29578,7 +29788,7 @@ class Link {
|
|
|
29578
29788
|
}; }
|
|
29579
29789
|
}
|
|
29580
29790
|
|
|
29581
|
-
const CSS$
|
|
29791
|
+
const CSS$G = {
|
|
29582
29792
|
container: "container",
|
|
29583
29793
|
containerBorderSelected: "container--border-selected",
|
|
29584
29794
|
containerBorderUnselected: "container--border-unselected",
|
|
@@ -29594,6 +29804,7 @@ const CSS$E = {
|
|
|
29594
29804
|
label: "label",
|
|
29595
29805
|
description: "description",
|
|
29596
29806
|
contentEnd: "content-end",
|
|
29807
|
+
contentBottom: "content-bottom",
|
|
29597
29808
|
actionsEnd: "actions-end",
|
|
29598
29809
|
selectionContainer: "selection-container",
|
|
29599
29810
|
openContainer: "open-container",
|
|
@@ -29603,6 +29814,7 @@ const SLOTS$i = {
|
|
|
29603
29814
|
actionsStart: "actions-start",
|
|
29604
29815
|
contentStart: "content-start",
|
|
29605
29816
|
content: "content",
|
|
29817
|
+
contentBottom: "content-bottom",
|
|
29606
29818
|
contentEnd: "content-end",
|
|
29607
29819
|
actionsEnd: "actions-end",
|
|
29608
29820
|
};
|
|
@@ -29645,7 +29857,7 @@ function getDepth(element, includeGroup = false) {
|
|
|
29645
29857
|
}
|
|
29646
29858
|
}
|
|
29647
29859
|
|
|
29648
|
-
const CSS$
|
|
29860
|
+
const CSS$F = {
|
|
29649
29861
|
container: "container",
|
|
29650
29862
|
table: "table",
|
|
29651
29863
|
scrim: "scrim",
|
|
@@ -32681,7 +32893,7 @@ Sortable.mount(new AutoScrollPlugin());
|
|
|
32681
32893
|
Sortable.mount(Remove, Revert);
|
|
32682
32894
|
|
|
32683
32895
|
const sortableComponentSet = new Set();
|
|
32684
|
-
const CSS$
|
|
32896
|
+
const CSS$E = {
|
|
32685
32897
|
ghostClass: "calcite-sortable--ghost",
|
|
32686
32898
|
chosenClass: "calcite-sortable--chosen",
|
|
32687
32899
|
dragClass: "calcite-sortable--drag",
|
|
@@ -32698,7 +32910,7 @@ function connectSortableComponent(component) {
|
|
|
32698
32910
|
const { group, handleSelector: handle, dragSelector: draggable } = component;
|
|
32699
32911
|
component.sortable = Sortable.create(component.el, {
|
|
32700
32912
|
dataIdAttr,
|
|
32701
|
-
...CSS$
|
|
32913
|
+
...CSS$E,
|
|
32702
32914
|
...(!!draggable && { draggable }),
|
|
32703
32915
|
...(!!group && {
|
|
32704
32916
|
group: {
|
|
@@ -32752,7 +32964,7 @@ function onDragEnd() {
|
|
|
32752
32964
|
Array.from(sortableComponentSet).forEach((component) => component.onDragEnd());
|
|
32753
32965
|
}
|
|
32754
32966
|
|
|
32755
|
-
const CSS$
|
|
32967
|
+
const CSS$D = {
|
|
32756
32968
|
container: "container",
|
|
32757
32969
|
actionsStart: "actions-start",
|
|
32758
32970
|
contentStart: "content-start",
|
|
@@ -32767,7 +32979,7 @@ const SLOTS$g = {
|
|
|
32767
32979
|
actionsEnd: "actions-end",
|
|
32768
32980
|
};
|
|
32769
32981
|
|
|
32770
|
-
const listCss = "/*!@:host([disabled])*/[disabled].sc-calcite-list-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-list-h *.sc-calcite-list,.sc-calcite-list-h[disabled] .sc-calcite-list-s>*{pointer-events:none}/*!@:host*/.sc-calcite-list-h{display:block}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-h[disabled] .sc-calcite-list-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-h [calcite-hydrated][disabled].sc-calcite-list{opacity:1}/*!@.container*/.container.sc-calcite-list{position:relative}/*!@.table-container*/.table-container.sc-calcite-list{box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}/*!@.table-container **/.table-container.sc-calcite-list *.sc-calcite-list{box-sizing:border-box}/*!@.table*/.table.sc-calcite-list{inline-size:100%;border-collapse:collapse}/*!@.stack*/.stack.sc-calcite-list{--calcite-stack-padding-inline:0;--calcite-stack-padding-block:0}/*!@::slotted(calcite-list-item)*/.sc-calcite-list-s>calcite-list-item{
|
|
32982
|
+
const listCss = "/*!@:host([disabled])*/[disabled].sc-calcite-list-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-list-h *.sc-calcite-list,.sc-calcite-list-h[disabled] .sc-calcite-list-s>*{pointer-events:none}/*!@:host*/.sc-calcite-list-h{display:block}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-h[disabled] .sc-calcite-list-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-h [calcite-hydrated][disabled].sc-calcite-list{opacity:1}/*!@.container*/.container.sc-calcite-list{position:relative}/*!@.table-container*/.table-container.sc-calcite-list{box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;background-color:transparent}/*!@.table-container **/.table-container.sc-calcite-list *.sc-calcite-list{box-sizing:border-box}/*!@.table*/.table.sc-calcite-list{inline-size:100%;border-collapse:collapse}/*!@.stack*/.stack.sc-calcite-list{--calcite-stack-padding-inline:0;--calcite-stack-padding-block:0}/*!@::slotted(calcite-list-item)*/.sc-calcite-list-s>calcite-list-item{--tw-shadow:0 -1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 -1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:1px}/*!@::slotted(calcite-list-item:first-of-type)*/.sc-calcite-list-s>calcite-list-item:first-of-type{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}/*!@::slotted(calcite-list-item[data-filter])*/.sc-calcite-list-s>calcite-list-item[data-filter]{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:0px}/*!@.sticky-pos*/.sticky-pos.sc-calcite-list{position:sticky;inset-block-start:0px;z-index:var(--calcite-app-z-index-sticky);background-color:var(--calcite-ui-foreground-1)}/*!@.sticky-pos th*/.sticky-pos.sc-calcite-list th.sc-calcite-list{padding:0px}/*!@.assistive-text*/.assistive-text.sc-calcite-list{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@:host([hidden])*/[hidden].sc-calcite-list-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-list{display:none}";
|
|
32771
32983
|
|
|
32772
32984
|
const listItemSelector = "calcite-list-item";
|
|
32773
32985
|
const listItemSelectorDirect = `:scope > calcite-list-item`;
|
|
@@ -32824,6 +33036,9 @@ class List$1 {
|
|
|
32824
33036
|
const filteredItems = listItems.filter((item) => !filterText || values.includes(item.value)) || [];
|
|
32825
33037
|
const visibleParents = new WeakSet();
|
|
32826
33038
|
lastDescendantItems.forEach((listItem) => this.filterElements({ el: listItem, filteredItems, visibleParents }));
|
|
33039
|
+
if (filteredItems.length > 0) {
|
|
33040
|
+
this.findAncestorOfFirstFilteredItem(filteredItems);
|
|
33041
|
+
}
|
|
32827
33042
|
this.filteredItems = filteredItems;
|
|
32828
33043
|
if (emit) {
|
|
32829
33044
|
this.calciteListFilter.emit();
|
|
@@ -32937,6 +33152,28 @@ class List$1 {
|
|
|
32937
33152
|
}
|
|
32938
33153
|
}
|
|
32939
33154
|
};
|
|
33155
|
+
this.findAncestorOfFirstFilteredItem = (filteredItems) => {
|
|
33156
|
+
this.ancestorOfFirstFilteredItem?.removeAttribute("data-filter");
|
|
33157
|
+
filteredItems.forEach((item) => {
|
|
33158
|
+
item.removeAttribute("data-filter");
|
|
33159
|
+
});
|
|
33160
|
+
this.ancestorOfFirstFilteredItem = this.getTopLevelAncestorItemElement(filteredItems[0]);
|
|
33161
|
+
filteredItems[0].setAttribute("data-filter", "0");
|
|
33162
|
+
this.ancestorOfFirstFilteredItem?.setAttribute("data-filter", "0");
|
|
33163
|
+
};
|
|
33164
|
+
this.getTopLevelAncestorItemElement = (el) => {
|
|
33165
|
+
let closestParent = el.parentElement.closest("calcite-list-item");
|
|
33166
|
+
while (closestParent) {
|
|
33167
|
+
const closestListItemAncestor = closestParent.parentElement.closest("calcite-list-item");
|
|
33168
|
+
if (closestListItemAncestor) {
|
|
33169
|
+
closestParent = closestListItemAncestor;
|
|
33170
|
+
}
|
|
33171
|
+
else {
|
|
33172
|
+
return closestParent;
|
|
33173
|
+
}
|
|
33174
|
+
}
|
|
33175
|
+
return null;
|
|
33176
|
+
};
|
|
32940
33177
|
this.disabled = false;
|
|
32941
33178
|
this.canPull = undefined;
|
|
32942
33179
|
this.canPut = undefined;
|
|
@@ -33081,9 +33318,9 @@ class List$1 {
|
|
|
33081
33318
|
// --------------------------------------------------------------------------
|
|
33082
33319
|
render() {
|
|
33083
33320
|
const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText, hasFilterActionsStart, hasFilterActionsEnd, } = this;
|
|
33084
|
-
return (hAsync("div", { class: CSS$
|
|
33321
|
+
return (hAsync("div", { class: CSS$F.container }, this.dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: CSS$F.assistiveText }, this.assistiveText)) : null, loading ? hAsync("calcite-scrim", { class: CSS$F.scrim, loading: loading }) : null, hAsync("table", { "aria-busy": toAriaBoolean(loading), "aria-label": label || "", class: CSS$F.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? (hAsync("thead", null, hAsync("tr", { class: { [CSS$F.sticky]: true } }, hAsync("th", { colSpan: MAX_COLUMNS }, hAsync("calcite-stack", { class: CSS$F.stack }, hAsync("slot", { name: SLOTS$h.filterActionsStart, onSlotchange: this.handleFilterActionsStartSlotChange, slot: SLOTS$g.actionsStart }), hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: this.handleFilterChange, placeholder: filterPlaceholder, value: filterText,
|
|
33085
33322
|
// 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)
|
|
33086
|
-
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$h.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS$g.actionsEnd })))))) : null, hAsync("tbody", { class: CSS$
|
|
33323
|
+
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$h.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS$g.actionsEnd })))))) : null, hAsync("tbody", { class: CSS$F.tableContainer }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })))));
|
|
33087
33324
|
}
|
|
33088
33325
|
// --------------------------------------------------------------------------
|
|
33089
33326
|
//
|
|
@@ -33250,7 +33487,7 @@ class List$1 {
|
|
|
33250
33487
|
}; }
|
|
33251
33488
|
}
|
|
33252
33489
|
|
|
33253
|
-
const listItemCss = "/*!@:host([disabled])*/[disabled].sc-calcite-list-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-list-item-h *.sc-calcite-list-item,.sc-calcite-list-item-h[disabled] .sc-calcite-list-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-list-item-h{display:flex;flex-direction:column;--calcite-list-item-icon-color:var(--calcite-ui-brand);--calcite-list-item-spacing-indent:1rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-item-h[disabled] .sc-calcite-list-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-item-h [calcite-hydrated][disabled].sc-calcite-list-item{opacity:1}/*!@.container*/.container.sc-calcite-list-item{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family);padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}/*!@.container **/.container.sc-calcite-list-item *.sc-calcite-list-item{box-sizing:border-box}/*!@.container:hover*/.container.sc-calcite-list-item:hover{cursor:pointer;background-color:var(--calcite-ui-foreground-2)}/*!@.container:active*/.container.sc-calcite-list-item:active{background-color:var(--calcite-ui-foreground-1)}/*!@.container--border-selected*/.container--border-selected.sc-calcite-list-item{border-inline-start:4px solid var(--calcite-ui-brand)}/*!@.container--border-unselected*/.container--border-unselected.sc-calcite-list-item{border-inline-start:4px solid transparent}/*!@.nested-container*/.nested-container.sc-calcite-list-item{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}/*!@.nested-container--hidden*/.nested-container--hidden.sc-calcite-list-item{display:none}/*!@.content-container*/.content-container.sc-calcite-list-item{display:flex;flex:1 1 auto;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}/*!@tr,\ntd*/tr.sc-calcite-list-item,td.sc-calcite-list-item{outline-color:transparent}/*!@tr:focus,\ntd:focus*/tr.sc-calcite-list-item:focus,td.sc-calcite-list-item:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.content,\n.custom-content*/.content.sc-calcite-list-item,.custom-content.sc-calcite-list-item{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@.label,\n.description*/.label.sc-calcite-list-item,.description.sc-calcite-list-item{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}/*!@.label:only-child,\n.description:only-child*/.label.sc-calcite-list-item:only-child,.description.sc-calcite-list-item:only-child{margin:0px;padding-block:0.25rem}/*!@.label*/.label.sc-calcite-list-item{color:var(--calcite-ui-text-1)}/*!@.description*/.description.sc-calcite-list-item{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}/*!@.content-start*/.content-start.sc-calcite-list-item{justify-content:flex-start}/*!@.content-end*/.content-end.sc-calcite-list-item{justify-content:flex-end}/*!@.content-start,\n.content-end*/.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item{flex:1 1 auto}/*!@.content-container--has-center-content .content-start,\n.content-container--has-center-content .content-end*/.content-container--has-center-content.sc-calcite-list-item .content-start.sc-calcite-list-item,.content-container--has-center-content.sc-calcite-list-item .content-end.sc-calcite-list-item{flex:0 1 auto}/*!@.selection-container*/.selection-container.sc-calcite-list-item{display:flex;padding-inline:0.75rem;color:var(--calcite-list-item-icon-color)}/*!@.actions-start,\n.actions-end,\n.content-start,\n.content-end,\n.selection-container,\n.drag-container,\n.open-container*/.actions-start.sc-calcite-list-item,.actions-end.sc-calcite-list-item,.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item,.selection-container.sc-calcite-list-item,.drag-container.sc-calcite-list-item,.open-container.sc-calcite-list-item{display:flex;align-items:center}/*!@.open-container,\n.selection-container*/.open-container.sc-calcite-list-item,.selection-container.sc-calcite-list-item{cursor:pointer}/*!@.content-start ::slotted(calcite-icon),\n.content-end ::slotted(calcite-icon)*/.content-start .sc-calcite-list-item-s>calcite-icon,.content-end .sc-calcite-list-item-s>calcite-icon{margin-inline:0.75rem;align-self:center}/*!@.actions-start ::slotted(calcite-action),\n.actions-end ::slotted(calcite-action)*/.actions-start .sc-calcite-list-item-s>calcite-action,.actions-end .sc-calcite-list-item-s>calcite-action{align-self:stretch;color:inherit}/*!@::slotted(calcite-list-item)*/.sc-calcite-list-item-s>calcite-list-item{border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-list-item{display:none}";
|
|
33490
|
+
const listItemCss = "/*!@:host([disabled])*/[disabled].sc-calcite-list-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-list-item-h *.sc-calcite-list-item,.sc-calcite-list-item-h[disabled] .sc-calcite-list-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-list-item-h{display:flex;flex-direction:column;--calcite-list-item-icon-color:var(--calcite-ui-brand);--calcite-list-item-spacing-indent:1rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-item-h[disabled] .sc-calcite-list-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-item-h [calcite-hydrated][disabled].sc-calcite-list-item{opacity:1}/*!@.container*/.container.sc-calcite-list-item{box-sizing:border-box;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-1);font-family:var(--calcite-sans-family);padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}/*!@.container **/.container.sc-calcite-list-item *.sc-calcite-list-item{box-sizing:border-box}/*!@.container:hover*/.container.sc-calcite-list-item:hover{cursor:pointer;background-color:var(--calcite-ui-foreground-2)}/*!@.container:active*/.container.sc-calcite-list-item:active{background-color:var(--calcite-ui-foreground-1)}/*!@.container--border-selected*/.container--border-selected.sc-calcite-list-item{border-inline-start:4px solid var(--calcite-ui-brand)}/*!@.container--border-unselected*/.container--border-unselected.sc-calcite-list-item{border-inline-start:4px solid transparent}/*!@.nested-container*/.nested-container.sc-calcite-list-item{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1)}/*!@.nested-container--hidden*/.nested-container--hidden.sc-calcite-list-item{display:none}/*!@.content-container*/.content-container.sc-calcite-list-item{display:flex;flex:1 1 auto;align-items:stretch;padding:0px;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}/*!@tr,\ntd*/tr.sc-calcite-list-item,td.sc-calcite-list-item{outline-color:transparent}/*!@tr:focus,\ntd:focus*/tr.sc-calcite-list-item:focus,td.sc-calcite-list-item:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.content,\n.custom-content*/.content.sc-calcite-list-item,.custom-content.sc-calcite-list-item{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@.label,\n.description,\n.content-bottom*/.label.sc-calcite-list-item,.description.sc-calcite-list-item,.content-bottom.sc-calcite-list-item{font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal);word-wrap:break-word;word-break:break-word}/*!@.label:only-child,\n.description:only-child,\n.content-bottom:only-child*/.label.sc-calcite-list-item:only-child,.description.sc-calcite-list-item:only-child,.content-bottom.sc-calcite-list-item:only-child{margin:0px;padding-block:0.25rem}/*!@.label*/.label.sc-calcite-list-item{color:var(--calcite-ui-text-1)}/*!@.description*/.description.sc-calcite-list-item{margin-block-start:0.125rem;color:var(--calcite-ui-text-3)}/*!@.content-start*/.content-start.sc-calcite-list-item{justify-content:flex-start}/*!@.content-end*/.content-end.sc-calcite-list-item{justify-content:flex-end}/*!@.content-start,\n.content-end*/.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item{flex:1 1 auto}/*!@.content-bottom*/.content-bottom.sc-calcite-list-item{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}/*!@.content-container--has-center-content .content-start,\n.content-container--has-center-content .content-end*/.content-container--has-center-content.sc-calcite-list-item .content-start.sc-calcite-list-item,.content-container--has-center-content.sc-calcite-list-item .content-end.sc-calcite-list-item{flex:0 1 auto}/*!@.selection-container*/.selection-container.sc-calcite-list-item{display:flex;padding-inline:0.75rem;color:var(--calcite-list-item-icon-color)}/*!@.actions-start,\n.actions-end,\n.content-start,\n.content-end,\n.selection-container,\n.drag-container,\n.open-container*/.actions-start.sc-calcite-list-item,.actions-end.sc-calcite-list-item,.content-start.sc-calcite-list-item,.content-end.sc-calcite-list-item,.selection-container.sc-calcite-list-item,.drag-container.sc-calcite-list-item,.open-container.sc-calcite-list-item{display:flex;align-items:center}/*!@.open-container,\n.selection-container*/.open-container.sc-calcite-list-item,.selection-container.sc-calcite-list-item{cursor:pointer}/*!@.content-start ::slotted(calcite-icon),\n.content-end ::slotted(calcite-icon)*/.content-start .sc-calcite-list-item-s>calcite-icon,.content-end .sc-calcite-list-item-s>calcite-icon{margin-inline:0.75rem;align-self:center}/*!@.actions-start ::slotted(calcite-action),\n.actions-start ::slotted(calcite-action-menu),\n.actions-start ::slotted(calcite-handle),\n.actions-start ::slotted(calcite-dropdown),\n.actions-end ::slotted(calcite-action),\n.actions-end ::slotted(calcite-action-menu),\n.actions-end ::slotted(calcite-handle),\n.actions-end ::slotted(calcite-dropdown)*/.actions-start .sc-calcite-list-item-s>calcite-action,.actions-start .sc-calcite-list-item-s>calcite-action-menu,.actions-start .sc-calcite-list-item-s>calcite-handle,.actions-start .sc-calcite-list-item-s>calcite-dropdown,.actions-end .sc-calcite-list-item-s>calcite-action,.actions-end .sc-calcite-list-item-s>calcite-action-menu,.actions-end .sc-calcite-list-item-s>calcite-handle,.actions-end .sc-calcite-list-item-s>calcite-dropdown{align-self:stretch;color:inherit}/*!@::slotted(calcite-list-item)*/.sc-calcite-list-item-s>calcite-list-item{border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3)}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-list-item{display:none}";
|
|
33254
33491
|
|
|
33255
33492
|
const focusMap = new Map();
|
|
33256
33493
|
const listSelector = "calcite-list";
|
|
@@ -33261,6 +33498,7 @@ const listSelector = "calcite-list";
|
|
|
33261
33498
|
* @slot content - A slot for adding non-actionable, centered content in place of the `label` and `description` of the component.
|
|
33262
33499
|
* @slot content-end - A slot for adding non-actionable elements after the label and description of the component.
|
|
33263
33500
|
* @slot actions-end - A slot for adding actionable `calcite-action` elements after the content of the component.
|
|
33501
|
+
* @slot content-bottom - A slot for adding content below the component's `label` and `description`.
|
|
33264
33502
|
*/
|
|
33265
33503
|
class ListItem {
|
|
33266
33504
|
constructor(hostRef) {
|
|
@@ -33290,6 +33528,9 @@ class ListItem {
|
|
|
33290
33528
|
this.handleContentEndSlotChange = (event) => {
|
|
33291
33529
|
this.hasContentEnd = slotChangeHasAssignedElement(event);
|
|
33292
33530
|
};
|
|
33531
|
+
this.handleContentBottomSlotChange = (event) => {
|
|
33532
|
+
this.hasContentBottom = slotChangeHasAssignedElement(event);
|
|
33533
|
+
};
|
|
33293
33534
|
this.handleDefaultSlotChange = (event) => {
|
|
33294
33535
|
this.handleOpenableChange(event.target);
|
|
33295
33536
|
};
|
|
@@ -33416,6 +33657,7 @@ class ListItem {
|
|
|
33416
33657
|
this.hasCustomContent = false;
|
|
33417
33658
|
this.hasContentStart = false;
|
|
33418
33659
|
this.hasContentEnd = false;
|
|
33660
|
+
this.hasContentBottom = false;
|
|
33419
33661
|
}
|
|
33420
33662
|
activeHandler(active) {
|
|
33421
33663
|
if (!active) {
|
|
@@ -33503,47 +33745,65 @@ class ListItem {
|
|
|
33503
33745
|
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
33504
33746
|
return null;
|
|
33505
33747
|
}
|
|
33506
|
-
return (hAsync("td", { class: CSS$
|
|
33748
|
+
return (hAsync("td", { class: CSS$G.selectionContainer, key: "selection-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: selected
|
|
33507
33749
|
? selectionMode === "multiple"
|
|
33508
33750
|
? ICONS$8.selectedMultiple
|
|
33509
33751
|
: ICONS$8.selectedSingle
|
|
33510
33752
|
: ICONS$8.unselected, scale: "s" })));
|
|
33511
33753
|
}
|
|
33512
33754
|
renderDragHandle() {
|
|
33513
|
-
return this.dragHandle ? (hAsync("td", { class: CSS$
|
|
33755
|
+
return this.dragHandle ? (hAsync("td", { class: CSS$G.dragContainer, key: "drag-handle-container" }, hAsync("calcite-handle", { label: this.label, setPosition: this.setPosition, setSize: this.setSize }))) : null;
|
|
33514
33756
|
}
|
|
33515
33757
|
renderOpen() {
|
|
33516
33758
|
const { el, open, openable, parentListEl } = this;
|
|
33517
33759
|
const dir = getElementDir(el);
|
|
33518
|
-
|
|
33760
|
+
const icon = openable
|
|
33761
|
+
? open
|
|
33762
|
+
? ICONS$8.open
|
|
33763
|
+
: dir === "rtl"
|
|
33764
|
+
? ICONS$8.closedRTL
|
|
33765
|
+
: ICONS$8.closedLTR
|
|
33766
|
+
: ICONS$8.blank;
|
|
33767
|
+
const clickHandler = openable ? this.toggleOpen : this.itemClicked;
|
|
33768
|
+
return openable || parentListEl?.openable ? (hAsync("td", { class: CSS$G.openContainer, key: "open-container", onClick: clickHandler }, hAsync("calcite-icon", { icon: icon, key: icon, scale: "s" }))) : null;
|
|
33519
33769
|
}
|
|
33520
33770
|
renderActionsStart() {
|
|
33521
33771
|
const { label, hasActionsStart } = this;
|
|
33522
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
33772
|
+
return (hAsync("td", { "aria-label": label, class: CSS$G.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", role: "gridcell",
|
|
33523
33773
|
// 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)
|
|
33524
33774
|
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$i.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
33525
33775
|
}
|
|
33526
33776
|
renderActionsEnd() {
|
|
33527
33777
|
const { label, hasActionsEnd, closable, messages } = this;
|
|
33528
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
33778
|
+
return (hAsync("td", { "aria-label": label, class: CSS$G.actionsEnd, hidden: !(hasActionsEnd || closable), key: "actions-end-container", role: "gridcell",
|
|
33529
33779
|
// 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)
|
|
33530
33780
|
ref: (el) => (this.actionsEndEl = el) }, hAsync("slot", { name: SLOTS$i.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), closable ? (hAsync("calcite-action", { appearance: "transparent", icon: ICONS$8.close, key: "close-action", label: messages.close, onClick: this.closeClickHandler, text: messages.close })) : null));
|
|
33531
33781
|
}
|
|
33532
33782
|
renderContentStart() {
|
|
33533
33783
|
const { hasContentStart } = this;
|
|
33534
|
-
return (hAsync("div", { class: CSS$
|
|
33784
|
+
return (hAsync("div", { class: CSS$G.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$i.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
33535
33785
|
}
|
|
33536
33786
|
renderCustomContent() {
|
|
33537
33787
|
const { hasCustomContent } = this;
|
|
33538
|
-
return (hAsync("div", { class: CSS$
|
|
33788
|
+
return (hAsync("div", { class: CSS$G.customContent, hidden: !hasCustomContent }, hAsync("slot", { name: SLOTS$i.content, onSlotchange: this.handleContentSlotChange })));
|
|
33539
33789
|
}
|
|
33540
33790
|
renderContentEnd() {
|
|
33541
33791
|
const { hasContentEnd } = this;
|
|
33542
|
-
return (hAsync("div", { class: CSS$
|
|
33792
|
+
return (hAsync("div", { class: CSS$G.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$i.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
33793
|
+
}
|
|
33794
|
+
renderContentBottom() {
|
|
33795
|
+
const { hasContentBottom, visualLevel } = this;
|
|
33796
|
+
return (hAsync("div", { class: CSS$G.contentBottom, hidden: !hasContentBottom, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, hAsync("slot", { name: SLOTS$i.contentBottom, onSlotchange: this.handleContentBottomSlotChange })));
|
|
33797
|
+
}
|
|
33798
|
+
renderDefaultContainer() {
|
|
33799
|
+
return (hAsync("div", { class: {
|
|
33800
|
+
[CSS$G.nestedContainer]: true,
|
|
33801
|
+
[CSS$G.nestedContainerHidden]: this.openable && !this.open,
|
|
33802
|
+
} }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange, ref: (el) => (this.defaultSlotEl = el) })));
|
|
33543
33803
|
}
|
|
33544
33804
|
renderContentProperties() {
|
|
33545
33805
|
const { label, description, hasCustomContent } = this;
|
|
33546
|
-
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$
|
|
33806
|
+
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$G.content, key: "content" }, label ? (hAsync("div", { class: CSS$G.label, key: "label" }, label)) : null, description ? (hAsync("div", { class: CSS$G.description, key: "description" }, description)) : null)) : null;
|
|
33547
33807
|
}
|
|
33548
33808
|
renderContentContainer() {
|
|
33549
33809
|
const { description, label, selectionMode, hasCustomContent } = this;
|
|
@@ -33555,28 +33815,25 @@ class ListItem {
|
|
|
33555
33815
|
this.renderContentEnd(),
|
|
33556
33816
|
];
|
|
33557
33817
|
return (hAsync("td", { "aria-label": label, class: {
|
|
33558
|
-
[CSS$
|
|
33559
|
-
[CSS$
|
|
33560
|
-
[CSS$
|
|
33818
|
+
[CSS$G.contentContainer]: true,
|
|
33819
|
+
[CSS$G.contentContainerSelectable]: selectionMode !== "none",
|
|
33820
|
+
[CSS$G.contentContainerHasCenterContent]: hasCenterContent,
|
|
33561
33821
|
}, key: "content-container", onClick: this.itemClicked, role: "gridcell",
|
|
33562
33822
|
// 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)
|
|
33563
33823
|
ref: (el) => (this.contentEl = el) }, content));
|
|
33564
33824
|
}
|
|
33565
33825
|
render() {
|
|
33566
|
-
const { openable, open, level, setPosition, setSize, active, label, selected, selectionAppearance, selectionMode, closed, } = this;
|
|
33826
|
+
const { openable, open, level, setPosition, setSize, active, label, selected, selectionAppearance, selectionMode, closed, visualLevel, } = this;
|
|
33567
33827
|
const showBorder = selectionMode !== "none" && selectionAppearance === "border";
|
|
33568
33828
|
const borderSelected = showBorder && selected;
|
|
33569
33829
|
const borderUnselected = showBorder && !selected;
|
|
33570
33830
|
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: {
|
|
33571
|
-
[CSS$
|
|
33572
|
-
[CSS$
|
|
33573
|
-
[CSS$
|
|
33574
|
-
}, hidden: closed, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${
|
|
33831
|
+
[CSS$G.container]: true,
|
|
33832
|
+
[CSS$G.containerBorderSelected]: borderSelected,
|
|
33833
|
+
[CSS$G.containerBorderUnselected]: borderUnselected,
|
|
33834
|
+
}, hidden: closed, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` }, tabIndex: active ? 0 : -1,
|
|
33575
33835
|
// 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)
|
|
33576
|
-
ref: (el) => (this.containerEl = el) }, this.renderDragHandle(), this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()),
|
|
33577
|
-
[CSS$E.nestedContainer]: true,
|
|
33578
|
-
[CSS$E.nestedContainerHidden]: openable && !open,
|
|
33579
|
-
} }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange, ref: (el) => (this.defaultSlotEl = el) }))));
|
|
33836
|
+
ref: (el) => (this.containerEl = el) }, this.renderDragHandle(), this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), this.renderContentBottom(), this.renderDefaultContainer()));
|
|
33580
33837
|
}
|
|
33581
33838
|
// --------------------------------------------------------------------------
|
|
33582
33839
|
//
|
|
@@ -33657,6 +33914,7 @@ class ListItem {
|
|
|
33657
33914
|
"hasCustomContent": [32],
|
|
33658
33915
|
"hasContentStart": [32],
|
|
33659
33916
|
"hasContentEnd": [32],
|
|
33917
|
+
"hasContentBottom": [32],
|
|
33660
33918
|
"setFocus": [64]
|
|
33661
33919
|
},
|
|
33662
33920
|
"$listeners$": [[0, "calciteInternalListItemGroupDefaultSlotChange", "handleCalciteInternalListDefaultSlotChanges"], [0, "calciteInternalListDefaultSlotChange", "handleCalciteInternalListDefaultSlotChanges"]],
|
|
@@ -33665,12 +33923,12 @@ class ListItem {
|
|
|
33665
33923
|
}; }
|
|
33666
33924
|
}
|
|
33667
33925
|
|
|
33668
|
-
const CSS$
|
|
33926
|
+
const CSS$C = {
|
|
33669
33927
|
container: "container",
|
|
33670
33928
|
heading: "heading",
|
|
33671
33929
|
};
|
|
33672
33930
|
|
|
33673
|
-
const listItemGroupCss = "/*!@:host([disabled])*/[disabled].sc-calcite-list-item-group-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-list-item-group-h *.sc-calcite-list-item-group,.sc-calcite-list-item-group-h[disabled] .sc-calcite-list-item-group-s>*{pointer-events:none}/*!@:host*/.sc-calcite-list-item-group-h{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);--calcite-list-item-spacing-indent:1rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-item-group-h[disabled] .sc-calcite-list-item-group-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-item-group-h [calcite-hydrated][disabled].sc-calcite-list-item-group{opacity:1}/*!@.container*/.container.sc-calcite-list-item-group{margin:0px;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-list-item-group{padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}/*!@::slotted(calcite-list-item)*/.sc-calcite-list-item-group-s>calcite-list-item{
|
|
33931
|
+
const listItemGroupCss = "/*!@:host([disabled])*/[disabled].sc-calcite-list-item-group-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-list-item-group-h *.sc-calcite-list-item-group,.sc-calcite-list-item-group-h[disabled] .sc-calcite-list-item-group-s>*{pointer-events:none}/*!@:host*/.sc-calcite-list-item-group-h{display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);--calcite-list-item-spacing-indent:1rem}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-list-item-group-h[disabled] .sc-calcite-list-item-group-s>[calcite-hydrated][disabled],[disabled].sc-calcite-list-item-group-h [calcite-hydrated][disabled].sc-calcite-list-item-group{opacity:1}/*!@.container*/.container.sc-calcite-list-item-group{margin:0px;display:flex;flex:1 1 0%;background-color:var(--calcite-ui-foreground-2);padding:0.75rem;font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-list-item-group{padding-inline-start:calc(var(--calcite-list-item-spacing-indent) * var(--calcite-list-item-spacing-indent-multiplier))}/*!@::slotted(calcite-list-item)*/.sc-calcite-list-item-group-s>calcite-list-item{--tw-shadow:0 -1px 0 var(--calcite-ui-border-3);--tw-shadow-colored:0 -1px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:1px}/*!@::slotted(calcite-list-item:nth-child(1 of :not([hidden])))*/(calcite-list-item.sc-calcite-list-item-group-h:nth-child(1 of :not(__ph-0__))){--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);margin-block-start:0px}/*!@:host([hidden])*/[hidden].sc-calcite-list-item-group-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-list-item-group{display:none}";
|
|
33674
33932
|
|
|
33675
33933
|
/**
|
|
33676
33934
|
* @slot - A slot for adding `calcite-list-item` and `calcite-list-item-group` elements.
|
|
@@ -33714,7 +33972,7 @@ class ListItemGroup {
|
|
|
33714
33972
|
// --------------------------------------------------------------------------
|
|
33715
33973
|
render() {
|
|
33716
33974
|
const { heading, visualLevel } = this;
|
|
33717
|
-
return (hAsync(Host, null, hAsync("tr", { class: CSS$
|
|
33975
|
+
return (hAsync(Host, null, hAsync("tr", { class: CSS$C.container, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, hAsync("td", { class: CSS$C.heading, colSpan: MAX_COLUMNS }, heading)), hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })));
|
|
33718
33976
|
}
|
|
33719
33977
|
get el() { return getElement(this); }
|
|
33720
33978
|
static get style() { return listItemGroupCss; }
|
|
@@ -33814,7 +34072,7 @@ class Loader {
|
|
|
33814
34072
|
}; }
|
|
33815
34073
|
}
|
|
33816
34074
|
|
|
33817
|
-
const CSS$
|
|
34075
|
+
const CSS$B = {
|
|
33818
34076
|
container: "container",
|
|
33819
34077
|
fill: "fill",
|
|
33820
34078
|
stepLine: "step-line",
|
|
@@ -33964,16 +34222,16 @@ class Meter {
|
|
|
33964
34222
|
const aboveHighest = value >= highest;
|
|
33965
34223
|
const belowHighest = value < highest;
|
|
33966
34224
|
if (!value || (!low && belowHighest) || belowLowest) {
|
|
33967
|
-
return CSS$
|
|
34225
|
+
return CSS$B.success;
|
|
33968
34226
|
}
|
|
33969
34227
|
else if (aboveLowest && belowHighest) {
|
|
33970
|
-
return CSS$
|
|
34228
|
+
return CSS$B.warning;
|
|
33971
34229
|
}
|
|
33972
34230
|
else if (aboveHighest) {
|
|
33973
|
-
return CSS$
|
|
34231
|
+
return CSS$B.danger;
|
|
33974
34232
|
}
|
|
33975
34233
|
else {
|
|
33976
|
-
return CSS$
|
|
34234
|
+
return CSS$B.success;
|
|
33977
34235
|
}
|
|
33978
34236
|
}
|
|
33979
34237
|
intersects(el1, el2) {
|
|
@@ -33987,7 +34245,7 @@ class Meter {
|
|
|
33987
34245
|
const minHighOverlap = this.intersects(minLabelEl, highLabelEl);
|
|
33988
34246
|
const minLowOverlap = this.intersects(minLabelEl, lowLabelEl);
|
|
33989
34247
|
const minMaxOverlap = this.intersects(minLabelEl, maxLabelEl);
|
|
33990
|
-
const hiddenClass = CSS$
|
|
34248
|
+
const hiddenClass = CSS$B.labelHidden;
|
|
33991
34249
|
if (lowLabelEl) {
|
|
33992
34250
|
if (minLowOverlap || lowMaxOverlap || lowHighOverlap) {
|
|
33993
34251
|
lowLabelEl.classList.add(hiddenClass);
|
|
@@ -34036,26 +34294,26 @@ class Meter {
|
|
|
34036
34294
|
renderMeterFill() {
|
|
34037
34295
|
const { currentPercent, fillType } = this;
|
|
34038
34296
|
const kindClass = this.getMeterKindCssClass();
|
|
34039
|
-
return (hAsync("div", { class: { [CSS$
|
|
34297
|
+
return (hAsync("div", { class: { [CSS$B.fill]: true, [kindClass]: fillType !== "single" }, style: { width: `${currentPercent}%` } }));
|
|
34040
34298
|
}
|
|
34041
34299
|
renderRangeLine(position) {
|
|
34042
34300
|
const style = { insetInlineStart: `${position}%` };
|
|
34043
|
-
return hAsync("div", { class: CSS$
|
|
34301
|
+
return hAsync("div", { class: CSS$B.stepLine, style: style });
|
|
34044
34302
|
}
|
|
34045
34303
|
renderValueLabel() {
|
|
34046
34304
|
const { currentPercent, valueLabelType, unitLabel, value } = this;
|
|
34047
34305
|
const label = this.formatLabel(valueLabelType === "percent" ? currentPercent / 100 : value || 0, valueLabelType);
|
|
34048
|
-
return (hAsync("div", { class: { [CSS$
|
|
34306
|
+
return (hAsync("div", { class: { [CSS$B.label]: true, [CSS$B.labelValue]: true }, key: "low-label-line",
|
|
34049
34307
|
// eslint-disable-next-line react/jsx-sort-props
|
|
34050
|
-
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
34308
|
+
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$B.unitLabel }, "\u00A0", unitLabel))));
|
|
34051
34309
|
}
|
|
34052
34310
|
renderMinLabel() {
|
|
34053
34311
|
const { rangeLabelType, min, minPercent, unitLabel } = this;
|
|
34054
34312
|
const style = { insetInlineStart: `${minPercent}%` };
|
|
34055
34313
|
const labelMin = this.formatLabel(rangeLabelType === "percent" ? minPercent : min, rangeLabelType);
|
|
34056
|
-
return (hAsync("div", { class: { [CSS$
|
|
34314
|
+
return (hAsync("div", { class: { [CSS$B.label]: true, [CSS$B.labelRange]: true }, key: "min-label-line", style: style,
|
|
34057
34315
|
// eslint-disable-next-line react/jsx-sort-props
|
|
34058
|
-
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
34316
|
+
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$B.unitLabel }, "\u00A0", unitLabel))));
|
|
34059
34317
|
}
|
|
34060
34318
|
renderLowLabel() {
|
|
34061
34319
|
const { rangeLabelType, low, lowPercent, highPercent, labelFlipProximity } = this;
|
|
@@ -34065,7 +34323,7 @@ class Meter {
|
|
|
34065
34323
|
const styleDefault = { insetInlineStart: `${lowPercent}%` };
|
|
34066
34324
|
const styleFlipped = { insetInlineEnd: `${100 - lowPercent}%` };
|
|
34067
34325
|
const style = (highPercent - lowPercent) / 100 < labelFlipProximity ? styleFlipped : styleDefault;
|
|
34068
|
-
return (hAsync("div", { class: { [CSS$
|
|
34326
|
+
return (hAsync("div", { class: { [CSS$B.label]: true, [CSS$B.labelRange]: true }, key: "low-label-line", style: style,
|
|
34069
34327
|
// eslint-disable-next-line react/jsx-sort-props
|
|
34070
34328
|
ref: (el) => (this.lowLabelEl = el) }, label));
|
|
34071
34329
|
}
|
|
@@ -34077,7 +34335,7 @@ class Meter {
|
|
|
34077
34335
|
const styleDefault = { insetInlineStart: `${highPercent}%` };
|
|
34078
34336
|
const styleFlipped = { insetInlineEnd: `${100 - highPercent}%` };
|
|
34079
34337
|
const style = highPercent / 100 >= labelFlipMax ? styleFlipped : styleDefault;
|
|
34080
|
-
return (hAsync("div", { class: { [CSS$
|
|
34338
|
+
return (hAsync("div", { class: { [CSS$B.label]: true, [CSS$B.labelRange]: true }, key: "high-label-line", style: style,
|
|
34081
34339
|
// eslint-disable-next-line react/jsx-sort-props
|
|
34082
34340
|
ref: (el) => (this.highLabelEl = el) }, label));
|
|
34083
34341
|
}
|
|
@@ -34085,7 +34343,7 @@ class Meter {
|
|
|
34085
34343
|
const { rangeLabelType, max, maxPercent } = this;
|
|
34086
34344
|
const style = { insetInlineEnd: `${100 - maxPercent}%` };
|
|
34087
34345
|
const labelMax = this.formatLabel(rangeLabelType === "percent" ? maxPercent / 100 : max, rangeLabelType);
|
|
34088
|
-
return (hAsync("div", { class: { [CSS$
|
|
34346
|
+
return (hAsync("div", { class: { [CSS$B.label]: true, [CSS$B.labelRange]: true }, key: "max-label-line", style: style,
|
|
34089
34347
|
// eslint-disable-next-line react/jsx-sort-props
|
|
34090
34348
|
ref: (el) => (this.maxLabelEl = el) }, labelMax));
|
|
34091
34349
|
}
|
|
@@ -34099,9 +34357,9 @@ class Meter {
|
|
|
34099
34357
|
? textUnitLabel
|
|
34100
34358
|
: undefined;
|
|
34101
34359
|
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: {
|
|
34102
|
-
[CSS$
|
|
34103
|
-
[CSS$
|
|
34104
|
-
[CSS$
|
|
34360
|
+
[CSS$B.container]: true,
|
|
34361
|
+
[CSS$B.stepsVisible]: rangeLabels,
|
|
34362
|
+
[CSS$B.valueVisible]: valueLabel,
|
|
34105
34363
|
[appearance]: appearance !== "outline-fill",
|
|
34106
34364
|
}, role: "meter",
|
|
34107
34365
|
// eslint-disable-next-line react/jsx-sort-props
|
|
@@ -34157,7 +34415,7 @@ class Meter {
|
|
|
34157
34415
|
}; }
|
|
34158
34416
|
}
|
|
34159
34417
|
|
|
34160
|
-
const CSS$
|
|
34418
|
+
const CSS$A = {
|
|
34161
34419
|
modal: "modal",
|
|
34162
34420
|
title: "title",
|
|
34163
34421
|
header: "header",
|
|
@@ -34347,50 +34605,50 @@ class Modal {
|
|
|
34347
34605
|
}
|
|
34348
34606
|
render() {
|
|
34349
34607
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
34350
|
-
[CSS$
|
|
34351
|
-
[CSS$
|
|
34352
|
-
[CSS$
|
|
34353
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
34354
|
-
[CSS$
|
|
34608
|
+
[CSS$A.container]: true,
|
|
34609
|
+
[CSS$A.containerOpen]: this.opened,
|
|
34610
|
+
[CSS$A.slottedInShell]: this.slottedInShell,
|
|
34611
|
+
} }, hAsync("calcite-scrim", { class: CSS$A.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: {
|
|
34612
|
+
[CSS$A.modal]: true,
|
|
34355
34613
|
},
|
|
34356
34614
|
// 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)
|
|
34357
|
-
ref: this.setTransitionEl }, hAsync("div", { class: CSS$
|
|
34358
|
-
[CSS$
|
|
34359
|
-
[CSS$
|
|
34615
|
+
ref: this.setTransitionEl }, hAsync("div", { class: CSS$A.header }, this.renderCloseButton(), hAsync("header", { class: CSS$A.title }, hAsync("slot", { name: CSS$A.header }))), this.renderContentTop(), hAsync("div", { class: {
|
|
34616
|
+
[CSS$A.content]: true,
|
|
34617
|
+
[CSS$A.contentNoFooter]: !this.hasFooter,
|
|
34360
34618
|
},
|
|
34361
34619
|
// 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)
|
|
34362
34620
|
ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$f.content })), this.renderContentBottom(), this.renderFooter()))));
|
|
34363
34621
|
}
|
|
34364
34622
|
renderFooter() {
|
|
34365
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$
|
|
34623
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$A.footer, key: "footer" }, hAsync("span", { class: CSS$A.back }, hAsync("slot", { name: SLOTS$f.back })), hAsync("span", { class: CSS$A.secondary }, hAsync("slot", { name: SLOTS$f.secondary })), hAsync("span", { class: CSS$A.primary }, hAsync("slot", { name: SLOTS$f.primary })))) : null;
|
|
34366
34624
|
}
|
|
34367
34625
|
renderContentTop() {
|
|
34368
|
-
return (hAsync("div", { class: CSS$
|
|
34626
|
+
return (hAsync("div", { class: CSS$A.contentTop, hidden: !this.hasContentTop }, hAsync("slot", { name: SLOTS$f.contentTop, onSlotchange: this.contentTopSlotChangeHandler })));
|
|
34369
34627
|
}
|
|
34370
34628
|
renderContentBottom() {
|
|
34371
|
-
return (hAsync("div", { class: CSS$
|
|
34629
|
+
return (hAsync("div", { class: CSS$A.contentBottom, hidden: !this.hasContentBottom }, hAsync("slot", { name: SLOTS$f.contentBottom, onSlotchange: this.contentBottomSlotChangeHandler })));
|
|
34372
34630
|
}
|
|
34373
34631
|
renderCloseButton() {
|
|
34374
|
-
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34632
|
+
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$A.close, key: "button", onClick: this.handleCloseClick, title: this.messages.close,
|
|
34375
34633
|
// 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)
|
|
34376
34634
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$7.close, scale: getIconScale(this.scale) }))) : null;
|
|
34377
34635
|
}
|
|
34378
34636
|
renderStyle() {
|
|
34379
34637
|
if (!this.fullscreen && (this.cssWidth || this.cssHeight)) {
|
|
34380
|
-
return (hAsync("style", null, `.${CSS$
|
|
34638
|
+
return (hAsync("style", null, `.${CSS$A.container} {
|
|
34381
34639
|
${this.docked && this.cssWidth ? `align-items: center !important;` : ""}
|
|
34382
34640
|
}
|
|
34383
|
-
.${CSS$
|
|
34641
|
+
.${CSS$A.modal} {
|
|
34384
34642
|
block-size: ${this.cssHeight ? this.cssHeight : "auto"} !important;
|
|
34385
34643
|
${this.cssWidth ? `inline-size: ${this.cssWidth} !important;` : ""}
|
|
34386
34644
|
${this.cssWidth ? `max-inline-size: ${this.cssWidth} !important;` : ""}
|
|
34387
34645
|
${this.docked ? `border-radius: var(--calcite-border-radius) !important;` : ""}
|
|
34388
34646
|
}
|
|
34389
34647
|
@media screen and (max-width: ${this.cssWidth}) {
|
|
34390
|
-
.${CSS$
|
|
34648
|
+
.${CSS$A.container} {
|
|
34391
34649
|
${this.docked ? `align-items: flex-end !important;` : ""}
|
|
34392
34650
|
}
|
|
34393
|
-
.${CSS$
|
|
34651
|
+
.${CSS$A.modal} {
|
|
34394
34652
|
max-block-size: 100% !important;
|
|
34395
34653
|
inline-size: 100% !important;
|
|
34396
34654
|
max-inline-size: 100% !important;
|
|
@@ -34457,20 +34715,20 @@ class Modal {
|
|
|
34457
34715
|
}
|
|
34458
34716
|
}
|
|
34459
34717
|
onBeforeOpen() {
|
|
34460
|
-
this.transitionEl.classList.add(CSS$
|
|
34718
|
+
this.transitionEl.classList.add(CSS$A.openingActive);
|
|
34461
34719
|
this.calciteModalBeforeOpen.emit();
|
|
34462
34720
|
}
|
|
34463
34721
|
onOpen() {
|
|
34464
|
-
this.transitionEl.classList.remove(CSS$
|
|
34722
|
+
this.transitionEl.classList.remove(CSS$A.openingIdle, CSS$A.openingActive);
|
|
34465
34723
|
this.calciteModalOpen.emit();
|
|
34466
34724
|
activateFocusTrap(this);
|
|
34467
34725
|
}
|
|
34468
34726
|
onBeforeClose() {
|
|
34469
|
-
this.transitionEl.classList.add(CSS$
|
|
34727
|
+
this.transitionEl.classList.add(CSS$A.closingActive);
|
|
34470
34728
|
this.calciteModalBeforeClose.emit();
|
|
34471
34729
|
}
|
|
34472
34730
|
onClose() {
|
|
34473
|
-
this.transitionEl.classList.remove(CSS$
|
|
34731
|
+
this.transitionEl.classList.remove(CSS$A.closingIdle, CSS$A.closingActive);
|
|
34474
34732
|
this.calciteModalClose.emit();
|
|
34475
34733
|
deactivateFocusTrap(this);
|
|
34476
34734
|
}
|
|
@@ -34488,10 +34746,10 @@ class Modal {
|
|
|
34488
34746
|
handleOpenedChange(value) {
|
|
34489
34747
|
onToggleOpenCloseComponent(this);
|
|
34490
34748
|
if (value) {
|
|
34491
|
-
this.transitionEl?.classList.add(CSS$
|
|
34749
|
+
this.transitionEl?.classList.add(CSS$A.openingIdle);
|
|
34492
34750
|
}
|
|
34493
34751
|
else {
|
|
34494
|
-
this.transitionEl?.classList.add(CSS$
|
|
34752
|
+
this.transitionEl?.classList.add(CSS$A.closingIdle);
|
|
34495
34753
|
}
|
|
34496
34754
|
}
|
|
34497
34755
|
openModal() {
|
|
@@ -34562,7 +34820,7 @@ const SLOTS$e = {
|
|
|
34562
34820
|
link: "link",
|
|
34563
34821
|
actionsEnd: "actions-end",
|
|
34564
34822
|
};
|
|
34565
|
-
const CSS$
|
|
34823
|
+
const CSS$z = {
|
|
34566
34824
|
actionsEnd: "actions-end",
|
|
34567
34825
|
close: "notice-close",
|
|
34568
34826
|
container: "container",
|
|
@@ -34652,13 +34910,13 @@ class Notice {
|
|
|
34652
34910
|
}
|
|
34653
34911
|
render() {
|
|
34654
34912
|
const { el } = this;
|
|
34655
|
-
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34913
|
+
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$z.close, onClick: this.close,
|
|
34656
34914
|
// 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)
|
|
34657
34915
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })));
|
|
34658
34916
|
const hasActionEnd = getSlotted(el, SLOTS$e.actionsEnd);
|
|
34659
|
-
return (hAsync("div", { class: CSS$
|
|
34917
|
+
return (hAsync("div", { class: CSS$z.container,
|
|
34660
34918
|
// 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)
|
|
34661
|
-
ref: this.setTransitionEl }, this.requestedIcon ? (hAsync("div", { class: CSS$
|
|
34919
|
+
ref: this.setTransitionEl }, this.requestedIcon ? (hAsync("div", { class: CSS$z.icon }, hAsync("calcite-icon", { flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: getIconScale(this.scale) }))) : null, hAsync("div", { class: CSS$z.content }, hAsync("slot", { name: SLOTS$e.title }), hAsync("slot", { name: SLOTS$e.message }), hAsync("slot", { name: SLOTS$e.link })), hasActionEnd ? (hAsync("div", { class: CSS$z.actionsEnd }, hAsync("slot", { name: SLOTS$e.actionsEnd }))) : null, this.closable ? closeButton : null));
|
|
34662
34920
|
}
|
|
34663
34921
|
//--------------------------------------------------------------------------
|
|
34664
34922
|
//
|
|
@@ -34851,7 +35109,7 @@ class OptionGroup {
|
|
|
34851
35109
|
}; }
|
|
34852
35110
|
}
|
|
34853
35111
|
|
|
34854
|
-
const CSS$
|
|
35112
|
+
const CSS$y = {
|
|
34855
35113
|
page: "page",
|
|
34856
35114
|
selected: "selected",
|
|
34857
35115
|
chevron: "chevron",
|
|
@@ -34865,6 +35123,22 @@ const ICONS$6 = {
|
|
|
34865
35123
|
last: "chevron-end",
|
|
34866
35124
|
};
|
|
34867
35125
|
|
|
35126
|
+
/**
|
|
35127
|
+
* A breakpoints lookup object.
|
|
35128
|
+
*/
|
|
35129
|
+
const breakpoints = {
|
|
35130
|
+
width: {
|
|
35131
|
+
large: cssLengthToNumber(CoreBreakpointWidthDefaultLg),
|
|
35132
|
+
medium: cssLengthToNumber(CoreBreakpointWidthDefaultMd),
|
|
35133
|
+
small: cssLengthToNumber(CoreBreakpointWidthDefaultSm),
|
|
35134
|
+
xsmall: cssLengthToNumber(CoreBreakpointWidthDefaultXs),
|
|
35135
|
+
xxsmall: cssLengthToNumber(CoreBreakpointWidthDefaultXxs),
|
|
35136
|
+
},
|
|
35137
|
+
};
|
|
35138
|
+
function cssLengthToNumber(length) {
|
|
35139
|
+
return parseInt(length);
|
|
35140
|
+
}
|
|
35141
|
+
|
|
34868
35142
|
const paginationCss = "/*!@:host*/.sc-calcite-pagination-h{display:flex;writing-mode:horizontal-tb}/*!@:host([scale=s]) .chevron, :host([scale=s]) .page, :host([scale=s]) .ellipsis*/[scale=s].sc-calcite-pagination-h .chevron.sc-calcite-pagination,[scale=s].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=s].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:1.5rem;padding-inline:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;min-inline-size:1.5rem}/*!@:host([scale=m]) .chevron, :host([scale=m]) .page, :host([scale=m]) .ellipsis*/[scale=m].sc-calcite-pagination-h .chevron.sc-calcite-pagination,[scale=m].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=m].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:2rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;min-inline-size:2rem}/*!@:host([scale=l]) .chevron, :host([scale=l]) .page, :host([scale=l]) .ellipsis*/[scale=l].sc-calcite-pagination-h .chevron.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-inline-size:2.75rem}/*!@:host([scale=l]) .chevron*/[scale=l].sc-calcite-pagination-h .chevron.sc-calcite-pagination{padding-inline:0.625rem}/*!@:host([scale=l]) .page, :host([scale=l]) .ellipsis*/[scale=l].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{padding-inline:0.75rem}/*!@:host button*/.sc-calcite-pagination-h button.sc-calcite-pagination{outline-color:transparent}/*!@:host button:focus*/.sc-calcite-pagination-h button.sc-calcite-pagination:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.chevron,\n.page,\n.ellipsis*/.chevron.sc-calcite-pagination,.page.sc-calcite-pagination,.ellipsis.sc-calcite-pagination{margin:0px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-style:none;--tw-border-opacity:0;background-color:transparent;padding:0px;vertical-align:baseline;font-family:inherit;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-ui-text-3)}/*!@.chevron,\n.page*/.chevron.sc-calcite-pagination,.page.sc-calcite-pagination{cursor:pointer;border-block:2px solid transparent}/*!@.chevron:hover,\n.page:hover*/.chevron.sc-calcite-pagination:hover,.page.sc-calcite-pagination:hover{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.page:hover*/.page.sc-calcite-pagination:hover{border-block-end-color:var(--calcite-ui-border-2)}/*!@.page.selected*/.page.selected.sc-calcite-pagination{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);border-block-end-color:var(--calcite-ui-brand)}/*!@.chevron:hover*/.chevron.sc-calcite-pagination:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-brand)}/*!@.chevron:active*/.chevron.sc-calcite-pagination:active{background-color:var(--calcite-ui-foreground-3)}/*!@.chevron.disabled*/.chevron.disabled.sc-calcite-pagination{pointer-events:none;background-color:transparent}/*!@.chevron.disabled > calcite-icon*/.chevron.disabled.sc-calcite-pagination>calcite-icon.sc-calcite-pagination{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([hidden])*/[hidden].sc-calcite-pagination-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-pagination{display:none}";
|
|
34869
35143
|
|
|
34870
35144
|
const firstAndLastPageCount = 2;
|
|
@@ -35035,7 +35309,7 @@ class Pagination {
|
|
|
35035
35309
|
//
|
|
35036
35310
|
//--------------------------------------------------------------------------
|
|
35037
35311
|
renderEllipsis(type) {
|
|
35038
|
-
return (hAsync("span", { class: CSS$
|
|
35312
|
+
return (hAsync("span", { class: CSS$y.ellipsis, "data-test-ellipsis": type, key: type }, "\u2026"));
|
|
35039
35313
|
}
|
|
35040
35314
|
renderItems() {
|
|
35041
35315
|
const { totalItems, pageSize, startItem, maxItems, totalPages, lastStartItem, isXXSmall } = this;
|
|
@@ -35104,40 +35378,40 @@ class Pagination {
|
|
|
35104
35378
|
const displayedPage = numberStringFormatter.localize(page.toString());
|
|
35105
35379
|
const selected = start === this.startItem;
|
|
35106
35380
|
return (hAsync("button", { "aria-current": selected ? "page" : "false", class: {
|
|
35107
|
-
[CSS$
|
|
35108
|
-
[CSS$
|
|
35381
|
+
[CSS$y.page]: true,
|
|
35382
|
+
[CSS$y.selected]: selected,
|
|
35109
35383
|
}, onClick: this.handlePageClick, value: start }, displayedPage));
|
|
35110
35384
|
}
|
|
35111
35385
|
renderPreviousChevron() {
|
|
35112
35386
|
const { pageSize, startItem, messages } = this;
|
|
35113
35387
|
const disabled = pageSize === 1 ? startItem <= pageSize : startItem < pageSize;
|
|
35114
35388
|
return (hAsync("button", { "aria-label": messages.previous, class: {
|
|
35115
|
-
[CSS$
|
|
35116
|
-
[CSS$
|
|
35389
|
+
[CSS$y.chevron]: true,
|
|
35390
|
+
[CSS$y.disabled]: disabled,
|
|
35117
35391
|
}, "data-test-chevron": "previous", disabled: disabled, key: "previous", onClick: this.previousClicked }, hAsync("calcite-icon", { flipRtl: true, icon: ICONS$6.previous, scale: getIconScale(this.scale) })));
|
|
35118
35392
|
}
|
|
35119
35393
|
renderNextChevron() {
|
|
35120
35394
|
const { totalItems, pageSize, startItem, messages } = this;
|
|
35121
35395
|
const disabled = pageSize === 1 ? startItem + pageSize > totalItems : startItem + pageSize > totalItems;
|
|
35122
35396
|
return (hAsync("button", { "aria-label": messages.next, class: {
|
|
35123
|
-
[CSS$
|
|
35124
|
-
[CSS$
|
|
35397
|
+
[CSS$y.chevron]: true,
|
|
35398
|
+
[CSS$y.disabled]: disabled,
|
|
35125
35399
|
}, "data-test-chevron": "next", disabled: disabled, key: "next-button", onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: ICONS$6.next, scale: getIconScale(this.scale) })));
|
|
35126
35400
|
}
|
|
35127
35401
|
renderFirstChevron() {
|
|
35128
35402
|
const { messages, startItem, isXXSmall } = this;
|
|
35129
35403
|
const disabled = startItem === 1;
|
|
35130
35404
|
return isXXSmall ? (hAsync("button", { "aria-label": messages.first, class: {
|
|
35131
|
-
[CSS$
|
|
35132
|
-
[CSS$
|
|
35405
|
+
[CSS$y.chevron]: true,
|
|
35406
|
+
[CSS$y.disabled]: disabled,
|
|
35133
35407
|
}, disabled: disabled, key: "first-button", onClick: this.firstClicked }, hAsync("calcite-icon", { flipRtl: true, icon: ICONS$6.first, scale: getIconScale(this.scale) }))) : null;
|
|
35134
35408
|
}
|
|
35135
35409
|
renderLastChevron() {
|
|
35136
35410
|
const { messages, startItem, isXXSmall, lastStartItem } = this;
|
|
35137
35411
|
const disabled = startItem === lastStartItem;
|
|
35138
35412
|
return isXXSmall ? (hAsync("button", { "aria-label": messages.last, class: {
|
|
35139
|
-
[CSS$
|
|
35140
|
-
[CSS$
|
|
35413
|
+
[CSS$y.chevron]: true,
|
|
35414
|
+
[CSS$y.disabled]: disabled,
|
|
35141
35415
|
}, disabled: disabled, key: "last-button", onClick: this.lastClicked }, hAsync("calcite-icon", { flipRtl: true, icon: ICONS$6.last, scale: getIconScale(this.scale) }))) : null;
|
|
35142
35416
|
}
|
|
35143
35417
|
render() {
|
|
@@ -35362,19 +35636,19 @@ class Panel {
|
|
|
35362
35636
|
// --------------------------------------------------------------------------
|
|
35363
35637
|
renderHeaderContent() {
|
|
35364
35638
|
const { heading, headingLevel, description, hasHeaderContent } = this;
|
|
35365
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
35366
|
-
const descriptionNode = description ? hAsync("span", { class: CSS$
|
|
35367
|
-
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$
|
|
35639
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$R.heading, level: headingLevel }, heading)) : null;
|
|
35640
|
+
const descriptionNode = description ? hAsync("span", { class: CSS$R.description }, description) : null;
|
|
35641
|
+
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$R.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
35368
35642
|
}
|
|
35369
35643
|
renderActionBar() {
|
|
35370
|
-
return (hAsync("div", { class: CSS$
|
|
35644
|
+
return (hAsync("div", { class: CSS$R.actionBarContainer, hidden: !this.hasActionBar }, hAsync("slot", { name: SLOTS$n.actionBar, onSlotchange: this.handleActionBarSlotChange })));
|
|
35371
35645
|
}
|
|
35372
35646
|
renderHeaderSlottedContent() {
|
|
35373
|
-
return (hAsync("div", { class: CSS$
|
|
35647
|
+
return (hAsync("div", { class: CSS$R.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$n.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
|
35374
35648
|
}
|
|
35375
35649
|
renderHeaderStartActions() {
|
|
35376
35650
|
const { hasStartActions } = this;
|
|
35377
|
-
return (hAsync("div", { class: { [CSS$
|
|
35651
|
+
return (hAsync("div", { class: { [CSS$R.headerActionsStart]: true, [CSS$R.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, hAsync("slot", { name: SLOTS$n.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange })));
|
|
35378
35652
|
}
|
|
35379
35653
|
renderHeaderActionsEnd() {
|
|
35380
35654
|
const { hasEndActions, messages, closable, collapsed, collapseDirection, collapsible, hasMenuItems, } = this;
|
|
@@ -35387,7 +35661,7 @@ class Panel {
|
|
|
35387
35661
|
const closeNode = closable ? (hAsync("calcite-action", { "aria-label": close, "data-test": "close", icon: ICONS$b.close, onClick: this.close, text: close, title: close })) : null;
|
|
35388
35662
|
const slotNode = (hAsync("slot", { name: SLOTS$n.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
35389
35663
|
const showContainer = hasEndActions || collapseNode || closeNode || hasMenuItems;
|
|
35390
|
-
return (hAsync("div", { class: { [CSS$
|
|
35664
|
+
return (hAsync("div", { class: { [CSS$R.headerActionsEnd]: true, [CSS$R.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, this.renderMenu(), collapseNode, closeNode));
|
|
35391
35665
|
}
|
|
35392
35666
|
renderMenu() {
|
|
35393
35667
|
const { hasMenuItems, messages, menuOpen } = this;
|
|
@@ -35404,24 +35678,24 @@ class Panel {
|
|
|
35404
35678
|
closable ||
|
|
35405
35679
|
hasMenuItems;
|
|
35406
35680
|
this.showHeaderContent = showHeaderContent;
|
|
35407
|
-
return (hAsync("header", { class: CSS$
|
|
35681
|
+
return (hAsync("header", { class: CSS$R.header, hidden: !(showHeaderContent || hasActionBar) }, hAsync("div", { class: { [CSS$R.headerContainer]: true, [CSS$R.headerContainerBorderEnd]: hasActionBar }, hidden: !showHeaderContent }, this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd()), this.renderActionBar()));
|
|
35408
35682
|
}
|
|
35409
35683
|
renderFooterNode() {
|
|
35410
35684
|
const { hasFooterContent, hasFooterActions } = this;
|
|
35411
35685
|
const showFooter = hasFooterContent || hasFooterActions;
|
|
35412
|
-
return (hAsync("footer", { class: CSS$
|
|
35686
|
+
return (hAsync("footer", { class: CSS$R.footer, hidden: !showFooter }, hAsync("slot", { key: "footer-slot", name: SLOTS$n.footer, onSlotchange: this.handleFooterSlotChange }), hAsync("slot", { key: "footer-actions-slot", name: SLOTS$n.footerActions, onSlotchange: this.handleFooterActionsSlotChange })));
|
|
35413
35687
|
}
|
|
35414
35688
|
renderContent() {
|
|
35415
|
-
return (hAsync("div", { class: CSS$
|
|
35689
|
+
return (hAsync("div", { class: CSS$R.contentWrapper, hidden: this.collapsible && this.collapsed, onScroll: this.panelScrollHandler,
|
|
35416
35690
|
// 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)
|
|
35417
35691
|
ref: this.setPanelScrollEl }, hAsync("slot", null), this.renderFab()));
|
|
35418
35692
|
}
|
|
35419
35693
|
renderFab() {
|
|
35420
|
-
return (hAsync("div", { class: CSS$
|
|
35694
|
+
return (hAsync("div", { class: CSS$R.fabContainer, hidden: !this.hasFab }, hAsync("slot", { name: SLOTS$n.fab, onSlotchange: this.handleFabSlotChange })));
|
|
35421
35695
|
}
|
|
35422
35696
|
render() {
|
|
35423
35697
|
const { loading, panelKeyDownHandler, closed, closable } = this;
|
|
35424
|
-
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$
|
|
35698
|
+
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$R.container, hidden: closed, onKeyDown: panelKeyDownHandler, tabIndex: closable ? 0 : -1,
|
|
35425
35699
|
// 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)
|
|
35426
35700
|
ref: this.setContainerRef }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
35427
35701
|
return (hAsync(Fragment, null, loading ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
@@ -35470,7 +35744,7 @@ class Panel {
|
|
|
35470
35744
|
}; }
|
|
35471
35745
|
}
|
|
35472
35746
|
|
|
35473
|
-
const CSS$
|
|
35747
|
+
const CSS$x = {
|
|
35474
35748
|
sticky: "sticky-pos",
|
|
35475
35749
|
};
|
|
35476
35750
|
var ICON_TYPES$1;
|
|
@@ -35483,7 +35757,7 @@ const SLOTS$d = {
|
|
|
35483
35757
|
menuActions: "menu-actions",
|
|
35484
35758
|
};
|
|
35485
35759
|
|
|
35486
|
-
const CSS$
|
|
35760
|
+
const CSS$w = {
|
|
35487
35761
|
heading: "heading",
|
|
35488
35762
|
container: "container",
|
|
35489
35763
|
indented: "container--indented",
|
|
@@ -35809,7 +36083,7 @@ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handle
|
|
|
35809
36083
|
dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: "assistive-text",
|
|
35810
36084
|
// 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)
|
|
35811
36085
|
ref: storeAssistiveEl })) : null,
|
|
35812
|
-
hAsync("header", { class: { [CSS$
|
|
36086
|
+
hAsync("header", { class: { [CSS$x.sticky]: true } },
|
|
35813
36087
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilterEvent, placeholder: filterPlaceholder, value: filterText,
|
|
35814
36088
|
// 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)
|
|
35815
36089
|
ref: setFilterEl })) : null,
|
|
@@ -36000,14 +36274,14 @@ class PickListGroup {
|
|
|
36000
36274
|
const { el, groupTitle, headingLevel } = this;
|
|
36001
36275
|
const hasParentItem = getSlotted(el, SLOTS$c.parentItem) !== null;
|
|
36002
36276
|
const sectionClasses = {
|
|
36003
|
-
[CSS$
|
|
36004
|
-
[CSS$
|
|
36277
|
+
[CSS$w.container]: true,
|
|
36278
|
+
[CSS$w.indented]: hasParentItem,
|
|
36005
36279
|
};
|
|
36006
36280
|
const title = groupTitle;
|
|
36007
36281
|
const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
|
|
36008
36282
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
36009
36283
|
const level = headingLevel || relativeLevel;
|
|
36010
|
-
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$
|
|
36284
|
+
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$w.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$c.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
|
|
36011
36285
|
}
|
|
36012
36286
|
get el() { return getElement(this); }
|
|
36013
36287
|
static get style() { return pickListGroupCss; }
|
|
@@ -36024,7 +36298,7 @@ class PickListGroup {
|
|
|
36024
36298
|
}; }
|
|
36025
36299
|
}
|
|
36026
36300
|
|
|
36027
|
-
const CSS$
|
|
36301
|
+
const CSS$v = {
|
|
36028
36302
|
actions: "actions",
|
|
36029
36303
|
actionsEnd: "actions--end",
|
|
36030
36304
|
actionsStart: "actions--start",
|
|
@@ -36186,28 +36460,28 @@ class PickListItem {
|
|
|
36186
36460
|
return null;
|
|
36187
36461
|
}
|
|
36188
36462
|
return (hAsync("span", { class: {
|
|
36189
|
-
[CSS$
|
|
36190
|
-
[CSS$
|
|
36463
|
+
[CSS$v.icon]: true,
|
|
36464
|
+
[CSS$v.iconDot]: icon === ICON_TYPES$1.circle,
|
|
36191
36465
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? (hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS$5.checked, scale: "s" })) : null));
|
|
36192
36466
|
}
|
|
36193
36467
|
renderRemoveAction() {
|
|
36194
|
-
return this.removable ? (hAsync("calcite-action", { class: CSS$
|
|
36468
|
+
return this.removable ? (hAsync("calcite-action", { class: CSS$v.remove, icon: ICONS$5.remove, onClick: this.removeClickHandler, slot: SLOTS$b.actionsEnd, text: this.messages.remove })) : null;
|
|
36195
36469
|
}
|
|
36196
36470
|
renderActionsStart() {
|
|
36197
36471
|
const { el } = this;
|
|
36198
36472
|
const hasActionsStart = getSlotted(el, SLOTS$b.actionsStart);
|
|
36199
|
-
return hasActionsStart ? (hAsync("div", { class: { [CSS$
|
|
36473
|
+
return hasActionsStart ? (hAsync("div", { class: { [CSS$v.actions]: true, [CSS$v.actionsStart]: true } }, hAsync("slot", { name: SLOTS$b.actionsStart }))) : null;
|
|
36200
36474
|
}
|
|
36201
36475
|
renderActionsEnd() {
|
|
36202
36476
|
const { el, removable } = this;
|
|
36203
36477
|
const hasActionsEnd = getSlotted(el, SLOTS$b.actionsEnd);
|
|
36204
|
-
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$
|
|
36478
|
+
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$v.actions]: true, [CSS$v.actionsEnd]: true } }, hAsync("slot", { name: SLOTS$b.actionsEnd }), this.renderRemoveAction())) : null;
|
|
36205
36479
|
}
|
|
36206
36480
|
render() {
|
|
36207
36481
|
const { description, label } = this;
|
|
36208
|
-
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$
|
|
36482
|
+
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$v.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, tabIndex: 0,
|
|
36209
36483
|
// 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)
|
|
36210
|
-
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$
|
|
36484
|
+
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$v.textContainer, role: "menuitemcheckbox" }, hAsync("span", { class: CSS$v.title }, label), description ? hAsync("span", { class: CSS$v.description }, description) : null)), this.renderActionsEnd()));
|
|
36211
36485
|
}
|
|
36212
36486
|
static get assetsDirs() { return ["assets"]; }
|
|
36213
36487
|
get el() { return getElement(this); }
|
|
@@ -36250,7 +36524,7 @@ class PickListItem {
|
|
|
36250
36524
|
}; }
|
|
36251
36525
|
}
|
|
36252
36526
|
|
|
36253
|
-
const CSS$
|
|
36527
|
+
const CSS$u = {
|
|
36254
36528
|
container: "container",
|
|
36255
36529
|
imageContainer: "image-container",
|
|
36256
36530
|
closeButtonContainer: "close-button-container",
|
|
@@ -36344,7 +36618,7 @@ class PopoverManager {
|
|
|
36344
36618
|
}
|
|
36345
36619
|
}
|
|
36346
36620
|
|
|
36347
|
-
const CSS$
|
|
36621
|
+
const CSS$t = {
|
|
36348
36622
|
arrow: "calcite-floating-ui-arrow",
|
|
36349
36623
|
arrowStroke: "calcite-floating-ui-arrow__stroke",
|
|
36350
36624
|
};
|
|
@@ -36374,8 +36648,10 @@ const FloatingArrow = ({ floatingLayout, key, ref, }) => {
|
|
|
36374
36648
|
` L${width - svgX},${height}` +
|
|
36375
36649
|
` Q${svgX},${height} ${svgX},${height}` +
|
|
36376
36650
|
" Z";
|
|
36377
|
-
return (hAsync("svg", { "aria-hidden": "true", class: CSS$
|
|
36378
|
-
|
|
36651
|
+
return (hAsync("svg", { "aria-hidden": "true", class: CSS$t.arrow, height: width, key: key, viewBox: `0 0 ${width} ${width + (!isVertical ? strokeWidth : 0)}`, width: width + (isVertical ? strokeWidth : 0),
|
|
36652
|
+
// 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)
|
|
36653
|
+
ref: ref },
|
|
36654
|
+
strokeWidth > 0 && (hAsync("path", { class: CSS$t.arrowStroke, d: dValue, fill: "none", "stroke-width": strokeWidth + 1 })),
|
|
36379
36655
|
hAsync("path", { d: dValue, stroke: "none" })));
|
|
36380
36656
|
};
|
|
36381
36657
|
|
|
@@ -36627,14 +36903,14 @@ class Popover {
|
|
|
36627
36903
|
// --------------------------------------------------------------------------
|
|
36628
36904
|
renderCloseButton() {
|
|
36629
36905
|
const { messages, closable } = this;
|
|
36630
|
-
return closable ? (hAsync("div", { class: CSS$
|
|
36906
|
+
return closable ? (hAsync("div", { class: CSS$u.closeButtonContainer, key: CSS$u.closeButtonContainer }, hAsync("calcite-action", { appearance: "transparent", class: CSS$u.closeButton, onClick: this.hide, scale: this.scale, text: messages.close,
|
|
36631
36907
|
// 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)
|
|
36632
36908
|
ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl) }, hAsync("calcite-icon", { icon: "x", scale: getIconScale(this.scale) })))) : null;
|
|
36633
36909
|
}
|
|
36634
36910
|
renderHeader() {
|
|
36635
36911
|
const { heading, headingLevel } = this;
|
|
36636
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
36637
|
-
return headingNode ? (hAsync("div", { class: CSS$
|
|
36912
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$u.heading, level: headingLevel }, heading)) : null;
|
|
36913
|
+
return headingNode ? (hAsync("div", { class: CSS$u.header, key: CSS$u.header }, headingNode, this.renderCloseButton())) : null;
|
|
36638
36914
|
}
|
|
36639
36915
|
render() {
|
|
36640
36916
|
const { effectiveReferenceElement, heading, label, open, pointerDisabled, floatingLayout } = this;
|
|
@@ -36649,9 +36925,9 @@ class Popover {
|
|
|
36649
36925
|
},
|
|
36650
36926
|
// 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)
|
|
36651
36927
|
ref: this.setTransitionEl }, arrowNode, hAsync("div", { class: {
|
|
36652
|
-
[CSS$
|
|
36653
|
-
[CSS$
|
|
36654
|
-
} }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
36928
|
+
[CSS$u.hasHeader]: !!heading,
|
|
36929
|
+
[CSS$u.container]: true,
|
|
36930
|
+
} }, this.renderHeader(), hAsync("div", { class: CSS$u.content }, hAsync("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
36655
36931
|
}
|
|
36656
36932
|
static get assetsDirs() { return ["assets"]; }
|
|
36657
36933
|
get el() { return getElement(this); }
|
|
@@ -36745,7 +37021,7 @@ class Progress {
|
|
|
36745
37021
|
}; }
|
|
36746
37022
|
}
|
|
36747
37023
|
|
|
36748
|
-
const CSS$
|
|
37024
|
+
const CSS$s = {
|
|
36749
37025
|
container: "container",
|
|
36750
37026
|
};
|
|
36751
37027
|
|
|
@@ -37022,7 +37298,7 @@ class RadioButton {
|
|
|
37022
37298
|
// --------------------------------------------------------------------------
|
|
37023
37299
|
render() {
|
|
37024
37300
|
const tabIndex = this.getTabIndex();
|
|
37025
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$
|
|
37301
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$s.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, role: "radio", tabIndex: tabIndex,
|
|
37026
37302
|
// 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)
|
|
37027
37303
|
ref: this.setContainerEl }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
37028
37304
|
}
|
|
@@ -37449,7 +37725,7 @@ class Rating {
|
|
|
37449
37725
|
}; }
|
|
37450
37726
|
}
|
|
37451
37727
|
|
|
37452
|
-
const CSS$
|
|
37728
|
+
const CSS$r = {
|
|
37453
37729
|
scrim: "scrim",
|
|
37454
37730
|
content: "content",
|
|
37455
37731
|
};
|
|
@@ -37519,9 +37795,9 @@ class Scrim {
|
|
|
37519
37795
|
// --------------------------------------------------------------------------
|
|
37520
37796
|
render() {
|
|
37521
37797
|
const { hasContent, loading, messages } = this;
|
|
37522
|
-
return (hAsync("div", { class: CSS$
|
|
37798
|
+
return (hAsync("div", { class: CSS$r.scrim }, loading ? (hAsync("calcite-loader", { label: messages.loading, scale: this.loaderScale,
|
|
37523
37799
|
// 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)
|
|
37524
|
-
ref: this.storeLoaderEl })) : null, hAsync("div", { class: CSS$
|
|
37800
|
+
ref: this.storeLoaderEl })) : null, hAsync("div", { class: CSS$r.content, hidden: !hasContent }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
37525
37801
|
}
|
|
37526
37802
|
getScale(size) {
|
|
37527
37803
|
if (size < BREAKPOINTS.s) {
|
|
@@ -37796,7 +38072,7 @@ class SegmentedControl {
|
|
|
37796
38072
|
const SLOTS$a = {
|
|
37797
38073
|
input: "input",
|
|
37798
38074
|
};
|
|
37799
|
-
const CSS$
|
|
38075
|
+
const CSS$q = {
|
|
37800
38076
|
segmentedControlItemIcon: "segmented-control-item-icon",
|
|
37801
38077
|
};
|
|
37802
38078
|
|
|
@@ -37825,8 +38101,8 @@ class SegmentedControlItem {
|
|
|
37825
38101
|
//--------------------------------------------------------------------------
|
|
37826
38102
|
render() {
|
|
37827
38103
|
const { appearance, checked, layout, scale, value } = this;
|
|
37828
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
37829
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
38104
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$q.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
38105
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$q.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
37830
38106
|
return (hAsync(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, hAsync("label", { class: {
|
|
37831
38107
|
"label--scale-s": scale === "s",
|
|
37832
38108
|
"label--scale-m": scale === "m",
|
|
@@ -37860,7 +38136,7 @@ class SegmentedControlItem {
|
|
|
37860
38136
|
}; }
|
|
37861
38137
|
}
|
|
37862
38138
|
|
|
37863
|
-
const CSS$
|
|
38139
|
+
const CSS$p = {
|
|
37864
38140
|
icon: "icon",
|
|
37865
38141
|
iconContainer: "icon-container",
|
|
37866
38142
|
select: "select",
|
|
@@ -38047,10 +38323,10 @@ class Select {
|
|
|
38047
38323
|
//
|
|
38048
38324
|
//--------------------------------------------------------------------------
|
|
38049
38325
|
renderChevron() {
|
|
38050
|
-
return (hAsync("div", { class: CSS$
|
|
38326
|
+
return (hAsync("div", { class: CSS$p.iconContainer }, hAsync("calcite-icon", { class: CSS$p.icon, icon: "chevron-down", scale: getIconScale(this.scale) })));
|
|
38051
38327
|
}
|
|
38052
38328
|
render() {
|
|
38053
|
-
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$
|
|
38329
|
+
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$p.select, disabled: this.disabled, onChange: this.handleInternalSelectChange,
|
|
38054
38330
|
// 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)
|
|
38055
38331
|
ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
38056
38332
|
}
|
|
@@ -38081,7 +38357,7 @@ class Select {
|
|
|
38081
38357
|
}; }
|
|
38082
38358
|
}
|
|
38083
38359
|
|
|
38084
|
-
const CSS$
|
|
38360
|
+
const CSS$o = {
|
|
38085
38361
|
scrim: "scrim",
|
|
38086
38362
|
container: "container",
|
|
38087
38363
|
containerOpen: "container--open",
|
|
@@ -38199,12 +38475,12 @@ class Sheet {
|
|
|
38199
38475
|
render() {
|
|
38200
38476
|
const dir = getElementDir(this.el);
|
|
38201
38477
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-label": this.label, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
38202
|
-
[CSS$
|
|
38203
|
-
[CSS$
|
|
38204
|
-
[CSS$
|
|
38478
|
+
[CSS$o.container]: true,
|
|
38479
|
+
[CSS$o.containerOpen]: this.opened,
|
|
38480
|
+
[CSS$o.containerSlottedInShell]: this.slottedInShell,
|
|
38205
38481
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
38206
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
38207
|
-
[CSS$
|
|
38482
|
+
} }, hAsync("calcite-scrim", { class: CSS$o.scrim, onClick: this.handleOutsideClose }), hAsync("div", { class: {
|
|
38483
|
+
[CSS$o.content]: true,
|
|
38208
38484
|
},
|
|
38209
38485
|
// 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)
|
|
38210
38486
|
ref: this.setTransitionEl }, hAsync("slot", null)))));
|
|
@@ -38305,7 +38581,7 @@ class Sheet {
|
|
|
38305
38581
|
}; }
|
|
38306
38582
|
}
|
|
38307
38583
|
|
|
38308
|
-
const CSS$
|
|
38584
|
+
const CSS$n = {
|
|
38309
38585
|
main: "main",
|
|
38310
38586
|
content: "content",
|
|
38311
38587
|
contentBehind: "content--behind",
|
|
@@ -38407,7 +38683,7 @@ class Shell {
|
|
|
38407
38683
|
return (hAsync("div", { hidden: !this.hasHeader }, hAsync("slot", { key: "header", name: SLOTS$9.header, onSlotchange: this.handleHeaderSlotChange })));
|
|
38408
38684
|
}
|
|
38409
38685
|
renderFooter() {
|
|
38410
|
-
return (hAsync("div", { class: CSS$
|
|
38686
|
+
return (hAsync("div", { class: CSS$n.footer, hidden: !this.hasFooter, key: "footer" }, hAsync("slot", { name: SLOTS$9.footer, onSlotchange: this.handleFooterSlotChange })));
|
|
38411
38687
|
}
|
|
38412
38688
|
renderAlerts() {
|
|
38413
38689
|
return (hAsync("div", { hidden: !this.hasAlerts }, hAsync("slot", { key: "alerts", name: SLOTS$9.alerts, onSlotchange: this.handleAlertsSlotChange })));
|
|
@@ -38427,21 +38703,21 @@ class Shell {
|
|
|
38427
38703
|
const content = !!this.contentBehind
|
|
38428
38704
|
? [
|
|
38429
38705
|
hAsync("div", { class: {
|
|
38430
|
-
[CSS$
|
|
38431
|
-
[CSS$
|
|
38706
|
+
[CSS$n.content]: true,
|
|
38707
|
+
[CSS$n.contentBehind]: true,
|
|
38432
38708
|
}, key: contentContainerKey }, defaultSlotNode),
|
|
38433
|
-
hAsync("div", { class: CSS$
|
|
38709
|
+
hAsync("div", { class: CSS$n.contentBehindCenterContent }, panelTopSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
38434
38710
|
]
|
|
38435
38711
|
: [
|
|
38436
|
-
hAsync("div", { class: CSS$
|
|
38712
|
+
hAsync("div", { class: CSS$n.content, key: contentContainerKey }, panelTopSlotNode, defaultSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
38437
38713
|
];
|
|
38438
38714
|
return content;
|
|
38439
38715
|
}
|
|
38440
38716
|
renderMain() {
|
|
38441
|
-
return (hAsync("div", { class: CSS$
|
|
38717
|
+
return (hAsync("div", { class: CSS$n.main }, hAsync("slot", { name: SLOTS$9.panelStart }), this.renderContent(), hAsync("slot", { name: SLOTS$9.panelEnd })));
|
|
38442
38718
|
}
|
|
38443
38719
|
renderPositionedSlots() {
|
|
38444
|
-
return (hAsync("div", { class: CSS$
|
|
38720
|
+
return (hAsync("div", { class: CSS$n.positionedSlotWrapper }, this.renderAlerts(), this.renderModals(), this.renderSheets()));
|
|
38445
38721
|
}
|
|
38446
38722
|
render() {
|
|
38447
38723
|
return (hAsync(Fragment, null, this.renderHeader(), this.renderMain(), this.renderFooter(), this.renderPositionedSlots()));
|
|
@@ -38465,7 +38741,7 @@ class Shell {
|
|
|
38465
38741
|
}; }
|
|
38466
38742
|
}
|
|
38467
38743
|
|
|
38468
|
-
const CSS$
|
|
38744
|
+
const CSS$m = {
|
|
38469
38745
|
actionBarContainer: "action-bar-container",
|
|
38470
38746
|
content: "content",
|
|
38471
38747
|
};
|
|
@@ -38504,9 +38780,9 @@ class ShellCenterRow {
|
|
|
38504
38780
|
// --------------------------------------------------------------------------
|
|
38505
38781
|
render() {
|
|
38506
38782
|
const { el } = this;
|
|
38507
|
-
const contentNode = (hAsync("div", { class: CSS$
|
|
38783
|
+
const contentNode = (hAsync("div", { class: CSS$m.content }, hAsync("slot", null)));
|
|
38508
38784
|
const actionBar = getSlotted(el, SLOTS$8.actionBar);
|
|
38509
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$
|
|
38785
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$m.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$8.actionBar }))) : null;
|
|
38510
38786
|
const children = [actionBarNode, contentNode];
|
|
38511
38787
|
if (actionBar?.position === "end") {
|
|
38512
38788
|
children.reverse();
|
|
@@ -38529,7 +38805,7 @@ class ShellCenterRow {
|
|
|
38529
38805
|
}; }
|
|
38530
38806
|
}
|
|
38531
38807
|
|
|
38532
|
-
const CSS$
|
|
38808
|
+
const CSS$l = {
|
|
38533
38809
|
container: "container",
|
|
38534
38810
|
content: "content",
|
|
38535
38811
|
contentHeader: "content__header",
|
|
@@ -38792,7 +39068,7 @@ class ShellPanel {
|
|
|
38792
39068
|
//
|
|
38793
39069
|
// --------------------------------------------------------------------------
|
|
38794
39070
|
renderHeader() {
|
|
38795
|
-
return (hAsync("div", { class: CSS$
|
|
39071
|
+
return (hAsync("div", { class: CSS$l.contentHeader, hidden: !this.hasHeader, key: "header" }, hAsync("slot", { name: SLOTS$7.header, onSlotchange: this.handleHeaderSlotChange })));
|
|
38796
39072
|
}
|
|
38797
39073
|
render() {
|
|
38798
39074
|
const { collapsed, position, initialContentWidth, initialContentHeight, contentWidth, contentWidthMax, contentWidthMin, contentHeight, contentHeightMax, contentHeightMin, resizable, layout, displayMode, } = this;
|
|
@@ -38809,7 +39085,7 @@ class ShellPanel {
|
|
|
38809
39085
|
: null;
|
|
38810
39086
|
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"
|
|
38811
39087
|
? contentHeight ?? initialContentHeight
|
|
38812
|
-
: contentWidth ?? initialContentWidth, class: CSS$
|
|
39088
|
+
: contentWidth ?? initialContentWidth, class: CSS$l.separator, key: "separator", onKeyDown: this.separatorKeyDown, role: "separator", tabIndex: 0, "touch-action": "none",
|
|
38813
39089
|
// 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)
|
|
38814
39090
|
ref: this.connectSeparator })) : null;
|
|
38815
39091
|
const getAnimationDir = () => {
|
|
@@ -38825,20 +39101,20 @@ class ShellPanel {
|
|
|
38825
39101
|
};
|
|
38826
39102
|
const contentNode = (hAsync("div", { class: {
|
|
38827
39103
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
38828
|
-
[CSS$
|
|
38829
|
-
[CSS$
|
|
38830
|
-
[CSS$
|
|
39104
|
+
[CSS$l.content]: true,
|
|
39105
|
+
[CSS$l.contentOverlay]: displayMode === "overlay",
|
|
39106
|
+
[CSS$l.contentFloat]: displayMode === "float",
|
|
38831
39107
|
[CSS_UTILITY.calciteAnimate]: displayMode === "overlay",
|
|
38832
39108
|
[getAnimationDir()]: displayMode === "overlay",
|
|
38833
39109
|
}, hidden: collapsed, key: "content", style: style,
|
|
38834
39110
|
// 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)
|
|
38835
|
-
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
39111
|
+
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$l.contentBody }, hAsync("slot", null)), separatorNode));
|
|
38836
39112
|
const actionBarNode = (hAsync("slot", { key: "action-bar", name: SLOTS$7.actionBar, onSlotchange: this.handleActionBarSlotChange }));
|
|
38837
39113
|
const mainNodes = [actionBarNode, contentNode];
|
|
38838
39114
|
if (position === "end") {
|
|
38839
39115
|
mainNodes.reverse();
|
|
38840
39116
|
}
|
|
38841
|
-
return hAsync("div", { class: { [CSS$
|
|
39117
|
+
return hAsync("div", { class: { [CSS$l.container]: true } }, mainNodes);
|
|
38842
39118
|
}
|
|
38843
39119
|
// --------------------------------------------------------------------------
|
|
38844
39120
|
//
|
|
@@ -38939,7 +39215,7 @@ class ShellPanel {
|
|
|
38939
39215
|
}; }
|
|
38940
39216
|
}
|
|
38941
39217
|
|
|
38942
|
-
const CSS$
|
|
39218
|
+
const CSS$k = {
|
|
38943
39219
|
handleLabel: "handle__label",
|
|
38944
39220
|
handleLabelMinValue: "handle__label--minValue",
|
|
38945
39221
|
handleLabelValue: "handle__label--value",
|
|
@@ -39138,8 +39414,8 @@ class Slider {
|
|
|
39138
39414
|
const leftThumbOffset = `${mirror ? 100 - minInterval : minInterval}%`;
|
|
39139
39415
|
const rightThumbOffset = `${mirror ? maxInterval : 100 - maxInterval}%`;
|
|
39140
39416
|
const valueIsRange = isRange(this.value);
|
|
39141
|
-
const handleLabelMinValueClasses = `${CSS$
|
|
39142
|
-
const handleLabelValueClasses = `${CSS$
|
|
39417
|
+
const handleLabelMinValueClasses = `${CSS$k.handleLabel} ${CSS$k.handleLabelMinValue}`;
|
|
39418
|
+
const handleLabelValueClasses = `${CSS$k.handleLabel} ${CSS$k.handleLabelValue}`;
|
|
39143
39419
|
const handle = (hAsync("div", { "aria-disabled": this.disabled, "aria-label": valueIsRange ? this.maxLabel : this.minLabel, "aria-orientation": "horizontal", "aria-valuemax": this.max, "aria-valuemin": this.min, "aria-valuenow": value, class: {
|
|
39144
39420
|
thumb: true,
|
|
39145
39421
|
"thumb--value": true,
|
|
@@ -39275,8 +39551,8 @@ class Slider {
|
|
|
39275
39551
|
const displayedTickValue = this.determineGroupSeparator(tick);
|
|
39276
39552
|
const tickLabel = (hAsync("span", { class: {
|
|
39277
39553
|
tick__label: true,
|
|
39278
|
-
[CSS$
|
|
39279
|
-
[CSS$
|
|
39554
|
+
[CSS$k.tickMin]: isMinTickLabel,
|
|
39555
|
+
[CSS$k.tickMax]: isMaxTickLabel,
|
|
39280
39556
|
} }, displayedTickValue));
|
|
39281
39557
|
if (this.labelTicks && !this.hasHistogram && !valueIsRange) {
|
|
39282
39558
|
return tickLabel;
|
|
@@ -39834,7 +40110,7 @@ class Slider {
|
|
|
39834
40110
|
}; }
|
|
39835
40111
|
}
|
|
39836
40112
|
|
|
39837
|
-
const CSS$
|
|
40113
|
+
const CSS$j = {
|
|
39838
40114
|
sortItem: "sort-item",
|
|
39839
40115
|
container: "container",
|
|
39840
40116
|
containerHorizontal: "container--horizontal",
|
|
@@ -39968,9 +40244,9 @@ class SortableList {
|
|
|
39968
40244
|
const { layout } = this;
|
|
39969
40245
|
const horizontal = layout === "horizontal" || false;
|
|
39970
40246
|
return (hAsync("div", { class: {
|
|
39971
|
-
[CSS$
|
|
39972
|
-
[CSS$
|
|
39973
|
-
[CSS$
|
|
40247
|
+
[CSS$j.container]: true,
|
|
40248
|
+
[CSS$j.containerVertical]: !horizontal,
|
|
40249
|
+
[CSS$j.containerHorizontal]: horizontal,
|
|
39974
40250
|
} }, hAsync("slot", null)));
|
|
39975
40251
|
}
|
|
39976
40252
|
get el() { return getElement(this); }
|
|
@@ -39994,7 +40270,7 @@ class SortableList {
|
|
|
39994
40270
|
}; }
|
|
39995
40271
|
}
|
|
39996
40272
|
|
|
39997
|
-
const CSS$
|
|
40273
|
+
const CSS$i = {
|
|
39998
40274
|
container: "container",
|
|
39999
40275
|
dividerContainer: "divider-container",
|
|
40000
40276
|
divider: "divider",
|
|
@@ -40073,7 +40349,7 @@ class SplitButton {
|
|
|
40073
40349
|
}
|
|
40074
40350
|
render() {
|
|
40075
40351
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
40076
|
-
return (hAsync("div", { class: CSS$
|
|
40352
|
+
return (hAsync("div", { class: CSS$i.container }, hAsync("calcite-button", { appearance: this.appearance, disabled: this.disabled, "icon-end": this.primaryIconEnd ? this.primaryIconEnd : null, "icon-start": this.primaryIconStart ? this.primaryIconStart : null, iconFlipRtl: this.primaryIconFlipRtl ? this.primaryIconFlipRtl : null, kind: this.kind, label: this.primaryLabel, loading: this.loading, onClick: this.calciteSplitButtonPrimaryClickHandler, scale: this.scale, splitChild: "primary", type: "button", width: buttonWidth }, this.primaryText), hAsync("div", { class: CSS$i.dividerContainer }, hAsync("div", { class: CSS$i.divider })), hAsync("calcite-dropdown", { disabled: this.disabled, onClick: this.calciteSplitButtonSecondaryClickHandler, open: this.active, overlayPositioning: this.overlayPositioning, placement: "bottom-end", scale: this.scale, width: this.scale }, hAsync("calcite-button", { appearance: this.appearance, disabled: this.disabled, "icon-start": this.dropdownIcon, kind: this.kind, label: this.dropdownLabel, scale: this.scale, slot: "trigger", splitChild: "secondary", type: "button" }), hAsync("slot", null))));
|
|
40077
40353
|
}
|
|
40078
40354
|
get dropdownIcon() {
|
|
40079
40355
|
return this.dropdownIconType === "chevron"
|
|
@@ -40118,7 +40394,7 @@ class SplitButton {
|
|
|
40118
40394
|
}; }
|
|
40119
40395
|
}
|
|
40120
40396
|
|
|
40121
|
-
const stackCss = "/*!@:host([disabled]) .content*/[disabled].sc-calcite-stack-h .content.sc-calcite-stack{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) .content *,\n:host([disabled]) .content ::slotted(*)*/[disabled].sc-calcite-stack-h .content.sc-calcite-stack *.sc-calcite-stack,.sc-calcite-stack-h[disabled] .content .sc-calcite-stack-s>*{pointer-events:none}/*!@:host*/.sc-calcite-stack-h{display:flex;flex:1 1 0%;flex-direction:column}/*!@.container*/.container.sc-calcite-stack{display:flex;flex:1 1 auto;align-items:stretch;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}/*!@.content*/.content.sc-calcite-stack{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;padding-inline:var(--calcite-stack-padding-inline, 0.75rem);padding-block:var(--calcite-stack-padding-block, 0.5rem)}/*!@.content-start*/.content-start.sc-calcite-stack{justify-content:flex-start}/*!@.content-end*/.content-end.sc-calcite-stack{justify-content:flex-end}/*!@.content-start,\n.content-end*/.content-start.sc-calcite-stack,.content-end.sc-calcite-stack{flex:0 1 auto}/*!@.actions-start,\n.actions-end,\n.content-start,\n.content-end*/.actions-start.sc-calcite-stack,.actions-end.sc-calcite-stack,.content-start.sc-calcite-stack,.content-end.sc-calcite-stack{display:flex;align-items:center}/*!@.content-start ::slotted(calcite-icon),\n.content-end ::slotted(calcite-icon)*/.content-start .sc-calcite-stack-s>calcite-icon,.content-end .sc-calcite-stack-s>calcite-icon{margin-inline:0.75rem;align-self:center}/*!@.actions-start ::slotted(calcite-action),\n.actions-end ::slotted(calcite-action)*/.actions-start .sc-calcite-stack-s>calcite-action,.actions-end .sc-calcite-stack-s>calcite-action{align-self:stretch;color:inherit}/*!@:host([hidden])*/[hidden].sc-calcite-stack-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-stack{display:none}";
|
|
40397
|
+
const stackCss = "/*!@:host([disabled]) .content*/[disabled].sc-calcite-stack-h .content.sc-calcite-stack{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) .content *,\n:host([disabled]) .content ::slotted(*)*/[disabled].sc-calcite-stack-h .content.sc-calcite-stack *.sc-calcite-stack,.sc-calcite-stack-h[disabled] .content .sc-calcite-stack-s>*{pointer-events:none}/*!@:host*/.sc-calcite-stack-h{display:flex;flex:1 1 0%;flex-direction:column}/*!@.container*/.container.sc-calcite-stack{display:flex;flex:1 1 auto;align-items:stretch;font-family:var(--calcite-sans-family);font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2)}/*!@.content*/.content.sc-calcite-stack{display:flex;flex:1 1 auto;flex-direction:column;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;padding-inline:var(--calcite-stack-padding-inline, 0.75rem);padding-block:var(--calcite-stack-padding-block, 0.5rem)}/*!@.content-start*/.content-start.sc-calcite-stack{justify-content:flex-start}/*!@.content-end*/.content-end.sc-calcite-stack{justify-content:flex-end}/*!@.content-start,\n.content-end*/.content-start.sc-calcite-stack,.content-end.sc-calcite-stack{flex:0 1 auto}/*!@.actions-start,\n.actions-end,\n.content-start,\n.content-end*/.actions-start.sc-calcite-stack,.actions-end.sc-calcite-stack,.content-start.sc-calcite-stack,.content-end.sc-calcite-stack{display:flex;align-items:center}/*!@.content-start ::slotted(calcite-icon),\n.content-end ::slotted(calcite-icon)*/.content-start .sc-calcite-stack-s>calcite-icon,.content-end .sc-calcite-stack-s>calcite-icon{margin-inline:0.75rem;align-self:center}/*!@.actions-start ::slotted(calcite-action),\n.actions-start ::slotted(calcite-action-menu),\n.actions-start ::slotted(calcite-handle),\n.actions-start ::slotted(calcite-dropdown),\n.actions-end ::slotted(calcite-action),\n.actions-end ::slotted(calcite-action-menu),\n.actions-end ::slotted(calcite-handle),\n.actions-end ::slotted(calcite-dropdown)*/.actions-start .sc-calcite-stack-s>calcite-action,.actions-start .sc-calcite-stack-s>calcite-action-menu,.actions-start .sc-calcite-stack-s>calcite-handle,.actions-start .sc-calcite-stack-s>calcite-dropdown,.actions-end .sc-calcite-stack-s>calcite-action,.actions-end .sc-calcite-stack-s>calcite-action-menu,.actions-end .sc-calcite-stack-s>calcite-handle,.actions-end .sc-calcite-stack-s>calcite-dropdown{align-self:stretch;color:inherit}/*!@:host([hidden])*/[hidden].sc-calcite-stack-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-stack{display:none}";
|
|
40122
40398
|
|
|
40123
40399
|
/**
|
|
40124
40400
|
* @slot - A slot for adding content.
|
|
@@ -40160,25 +40436,25 @@ class Stack {
|
|
|
40160
40436
|
// --------------------------------------------------------------------------
|
|
40161
40437
|
renderActionsStart() {
|
|
40162
40438
|
const { hasActionsStart } = this;
|
|
40163
|
-
return (hAsync("div", { class: CSS$
|
|
40439
|
+
return (hAsync("div", { class: CSS$D.actionsStart, hidden: !hasActionsStart, key: "actions-start-container" }, hAsync("slot", { name: SLOTS$g.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
40164
40440
|
}
|
|
40165
40441
|
renderActionsEnd() {
|
|
40166
40442
|
const { hasActionsEnd } = this;
|
|
40167
|
-
return (hAsync("div", { class: CSS$
|
|
40443
|
+
return (hAsync("div", { class: CSS$D.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container" }, hAsync("slot", { name: SLOTS$g.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
|
|
40168
40444
|
}
|
|
40169
40445
|
renderContentStart() {
|
|
40170
40446
|
const { hasContentStart } = this;
|
|
40171
|
-
return (hAsync("div", { class: CSS$
|
|
40447
|
+
return (hAsync("div", { class: CSS$D.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$g.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
40172
40448
|
}
|
|
40173
40449
|
renderDefaultContent() {
|
|
40174
|
-
return (hAsync("div", { class: CSS$
|
|
40450
|
+
return (hAsync("div", { class: CSS$D.content }, hAsync("slot", null)));
|
|
40175
40451
|
}
|
|
40176
40452
|
renderContentEnd() {
|
|
40177
40453
|
const { hasContentEnd } = this;
|
|
40178
|
-
return (hAsync("div", { class: CSS$
|
|
40454
|
+
return (hAsync("div", { class: CSS$D.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$g.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
40179
40455
|
}
|
|
40180
40456
|
render() {
|
|
40181
|
-
return (hAsync(Host, null, hAsync("div", { class: CSS$
|
|
40457
|
+
return (hAsync(Host, null, hAsync("div", { class: CSS$D.container }, this.renderActionsStart(), this.renderContentStart(), this.renderDefaultContent(), this.renderContentEnd(), this.renderActionsEnd())));
|
|
40182
40458
|
}
|
|
40183
40459
|
static get style() { return stackCss; }
|
|
40184
40460
|
static get cmpMeta() { return {
|
|
@@ -40197,7 +40473,40 @@ class Stack {
|
|
|
40197
40473
|
}; }
|
|
40198
40474
|
}
|
|
40199
40475
|
|
|
40200
|
-
const
|
|
40476
|
+
const CSS$h = {
|
|
40477
|
+
stepBar: "step-bar",
|
|
40478
|
+
stepBarActive: "step-bar--active",
|
|
40479
|
+
stepBarComplete: "step-bar--complete",
|
|
40480
|
+
stepBarDisabled: "step-bar--disabled",
|
|
40481
|
+
stepBarError: "step-bar--error",
|
|
40482
|
+
stepBarInActive: "step-bar--inactive",
|
|
40483
|
+
};
|
|
40484
|
+
const StepBar = ({ disabled, active, complete, error, key, }) => (hAsync("svg", { class: {
|
|
40485
|
+
[CSS$h.stepBar]: true,
|
|
40486
|
+
}, key: key },
|
|
40487
|
+
hAsync("rect", { class: {
|
|
40488
|
+
[CSS$h.stepBarActive]: active,
|
|
40489
|
+
[CSS$h.stepBarComplete]: complete,
|
|
40490
|
+
[CSS$h.stepBarDisabled]: disabled,
|
|
40491
|
+
[CSS$h.stepBarError]: error,
|
|
40492
|
+
[CSS$h.stepBarInActive]: true,
|
|
40493
|
+
}, width: "100%", x: "0", y: "0" })));
|
|
40494
|
+
|
|
40495
|
+
const ITEM_MIN_WIDTH = {
|
|
40496
|
+
s: 120,
|
|
40497
|
+
m: 180,
|
|
40498
|
+
l: 200,
|
|
40499
|
+
};
|
|
40500
|
+
const CSS$g = {
|
|
40501
|
+
actionIcon: "action-icon",
|
|
40502
|
+
actionIconStart: "action-icon--start",
|
|
40503
|
+
actionIconEnd: "action-icon--end",
|
|
40504
|
+
actionContainer: "action-container",
|
|
40505
|
+
stepBarContainer: "step-bar-container",
|
|
40506
|
+
singleView: "single-view",
|
|
40507
|
+
};
|
|
40508
|
+
|
|
40509
|
+
const stepperCss = "/*!@:host([scale=s])*/[scale=s].sc-calcite-stepper-h{--calcite-internal-stepper-item-spacing-unit-s:0.25rem;--calcite-internal-stepper-action-block-size:2.75rem;--calcite-internal-stepper-action-inline-size:2rem;--calcite-internal-step-bar-gap:0.25rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-stepper-h{--calcite-internal-stepper-item-spacing-unit-s:0.5rem;--calcite-internal-stepper-action-block-size:3.25rem;--calcite-internal-stepper-action-inline-size:2.5rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-stepper-h{--calcite-internal-stepper-item-spacing-unit-s:0.75rem;--calcite-internal-stepper-action-block-size:4rem;--calcite-internal-stepper-action-inline-size:3rem;--calcite-internal-step-bar-gap:0.75rem}/*!@:host*/.sc-calcite-stepper-h{display:flex}/*!@.container*/.container.sc-calcite-stepper{position:relative;display:flex;inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content;flex-direction:row;flex-wrap:wrap;align-items:stretch;justify-content:space-between}/*!@:host([layout=vertical]) .container*/[layout=vertical].sc-calcite-stepper-h .container.sc-calcite-stepper{flex:1 1 auto;flex-direction:column}/*!@:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-stepper-h .container.sc-calcite-stepper{display:grid;grid-template-areas:\"items\" \"content\";gap:0.5rem var(--calcite-internal-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][scale=s]) .container*/[layout=horizontal][scale=s].sc-calcite-stepper-h .container.sc-calcite-stepper{gap:0.25rem var(--calcite-internal-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][scale=l]) .container*/[layout=horizontal][scale=l].sc-calcite-stepper-h .container.sc-calcite-stepper{gap:0.75rem var(--calcite-internal-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal]) .container.single-view*/[layout=horizontal].sc-calcite-stepper-h .container.single-view.sc-calcite-stepper{display:flex;grid-template-columns:none}/*!@.action-icon*/.action-icon.sc-calcite-stepper{position:relative;display:flex;flex-grow:0;block-size:var(--calcite-internal-stepper-action-block-size);inline-size:var(--calcite-internal-stepper-action-inline-size)}/*!@.action-container*/.action-container.sc-calcite-stepper{position:absolute;display:flex;justify-content:space-between;padding-block:0.25rem;inline-size:100%}/*!@.step-bar*/.step-bar.sc-calcite-stepper{display:flex;block-size:100%;inline-size:100%}/*!@.step-bar-container*/.step-bar-container.sc-calcite-stepper{position:absolute;display:flex;align-items:flex-start;justify-content:space-between;block-size:0.125rem;inline-size:100%;gap:var(--calcite-internal-step-bar-gap, 0.5rem)}/*!@.step-bar--inactive*/.step-bar--inactive.sc-calcite-stepper{fill:var(--light-ui-border-3, #dfdfdf);fill-opacity:1;block-size:100%}/*!@.step-bar--active*/.step-bar--active.sc-calcite-stepper{fill:var(--calcite-ui-brand)}/*!@.step-bar--complete*/.step-bar--complete.sc-calcite-stepper{fill:var(--calcite-ui-brand);fill-opacity:0.5}/*!@.step-bar--error*/.step-bar--error.sc-calcite-stepper{fill:var(--calcite-ui-danger)}/*!@.step-bar--disabled*/.step-bar--disabled.sc-calcite-stepper{opacity:0.5}/*!@:host([hidden])*/[hidden].sc-calcite-stepper-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-stepper{display:none}";
|
|
40201
40510
|
|
|
40202
40511
|
/**
|
|
40203
40512
|
* @slot - A slot for adding `calcite-stepper-item` elements.
|
|
@@ -40207,18 +40516,41 @@ class Stepper {
|
|
|
40207
40516
|
registerInstance(this, hostRef);
|
|
40208
40517
|
this.calciteStepperItemChange = createEvent(this, "calciteStepperItemChange", 6);
|
|
40209
40518
|
this.calciteInternalStepperItemChange = createEvent(this, "calciteInternalStepperItemChange", 6);
|
|
40519
|
+
this.enabledItems = [];
|
|
40210
40520
|
this.itemMap = new Map();
|
|
40211
|
-
/** list of sorted Stepper items */
|
|
40212
40521
|
this.items = [];
|
|
40213
|
-
/** list of enabled Stepper items */
|
|
40214
|
-
this.enabledItems = [];
|
|
40215
40522
|
this.mutationObserver = createObserver();
|
|
40523
|
+
/** Specifies if the user is viewing one `stepper-item` at a time when the page width is less than sum of min-width of each item. */
|
|
40524
|
+
this.multipleViewMode = false;
|
|
40525
|
+
this.guid = `calcite-stepper-action-${guid()}`;
|
|
40526
|
+
//--------------------------------------------------------------------------
|
|
40527
|
+
//
|
|
40528
|
+
// Private Methods
|
|
40529
|
+
//
|
|
40530
|
+
//--------------------------------------------------------------------------
|
|
40531
|
+
this.resizeObserver = createObserver();
|
|
40532
|
+
this.handleActionClick = (event) => {
|
|
40533
|
+
const currentActivePosition = this.currentActivePosition;
|
|
40534
|
+
const target = event.target;
|
|
40535
|
+
if (target.getAttribute("data-position") === "start") {
|
|
40536
|
+
this.prevStep();
|
|
40537
|
+
}
|
|
40538
|
+
else {
|
|
40539
|
+
this.nextStep();
|
|
40540
|
+
}
|
|
40541
|
+
if (this.currentActivePosition &&
|
|
40542
|
+
currentActivePosition !== this.currentActivePosition &&
|
|
40543
|
+
!this.items[this.currentActivePosition].disabled) {
|
|
40544
|
+
this.calciteStepperItemChange.emit();
|
|
40545
|
+
}
|
|
40546
|
+
};
|
|
40547
|
+
this.setContainerEl = (el) => {
|
|
40548
|
+
this.containerEl = el;
|
|
40549
|
+
};
|
|
40216
40550
|
this.handleDefaultSlotChange = (event) => {
|
|
40217
|
-
const
|
|
40218
|
-
|
|
40219
|
-
|
|
40220
|
-
this.el.style.gridTemplateAreas = spacing;
|
|
40221
|
-
this.el.style.gridTemplateColumns = spacing;
|
|
40551
|
+
const items = slotChangeGetAssignedElements(event).filter((el) => el?.tagName === "CALCITE-STEPPER-ITEM");
|
|
40552
|
+
this.items = items;
|
|
40553
|
+
this.setGridTemplateColumns(items);
|
|
40222
40554
|
this.setStepperItemNumberingSystem();
|
|
40223
40555
|
};
|
|
40224
40556
|
this.icon = false;
|
|
@@ -40231,6 +40563,8 @@ class Stepper {
|
|
|
40231
40563
|
this.messageOverrides = undefined;
|
|
40232
40564
|
this.defaultMessages = undefined;
|
|
40233
40565
|
this.effectiveLocale = "";
|
|
40566
|
+
this.currentActivePosition = undefined;
|
|
40567
|
+
this.elWidth = undefined;
|
|
40234
40568
|
}
|
|
40235
40569
|
handleItemPropChange() {
|
|
40236
40570
|
this.updateItems();
|
|
@@ -40256,20 +40590,26 @@ class Stepper {
|
|
|
40256
40590
|
await setUpMessages(this);
|
|
40257
40591
|
}
|
|
40258
40592
|
componentDidLoad() {
|
|
40593
|
+
this.resizeObserver?.observe(this.containerEl);
|
|
40259
40594
|
// if no stepper items are set as active, default to the first one
|
|
40260
|
-
if (typeof this.
|
|
40595
|
+
if (typeof this.currentActivePosition !== "number") {
|
|
40596
|
+
const enabledStepIndex = this.getFirstEnabledStepperPosition();
|
|
40597
|
+
if (enabledStepIndex === 0) {
|
|
40598
|
+
this.currentActivePosition = enabledStepIndex;
|
|
40599
|
+
}
|
|
40261
40600
|
this.calciteInternalStepperItemChange.emit({
|
|
40262
|
-
position:
|
|
40601
|
+
position: enabledStepIndex,
|
|
40263
40602
|
});
|
|
40264
40603
|
}
|
|
40265
40604
|
}
|
|
40266
40605
|
disconnectedCallback() {
|
|
40606
|
+
this.resizeObserver?.disconnect();
|
|
40267
40607
|
disconnectMessages(this);
|
|
40268
40608
|
disconnectLocalized(this);
|
|
40269
40609
|
this.mutationObserver?.disconnect();
|
|
40270
40610
|
}
|
|
40271
40611
|
render() {
|
|
40272
|
-
return (hAsync(Host, { "aria-label": this.messages.label, role: "region" }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })));
|
|
40612
|
+
return (hAsync(Host, { "aria-label": this.messages.label, role: "region" }, hAsync("div", { class: { container: true, [CSS$g.singleView]: !this.multipleViewMode }, ref: this.setContainerEl }, !this.multipleViewMode && this.layout === "horizontal" && (hAsync("div", { class: { [CSS$g.stepBarContainer]: true } }, this.items.map((item, index) => (hAsync(StepBar, { active: index === this.currentActivePosition, complete: item.complete && index !== this.currentActivePosition && !item.error, disabled: item.disabled && index !== this.currentActivePosition, error: item.error && index !== this.currentActivePosition, key: index }))))), hAsync("div", { class: { [CSS$g.actionContainer]: true } }, this.renderAction("start"), this.renderAction("end")), hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
40273
40613
|
}
|
|
40274
40614
|
//--------------------------------------------------------------------------
|
|
40275
40615
|
//
|
|
@@ -40301,14 +40641,13 @@ class Stepper {
|
|
|
40301
40641
|
const item = event.target;
|
|
40302
40642
|
const { content, position } = event.detail;
|
|
40303
40643
|
this.itemMap.set(item, { position, content });
|
|
40304
|
-
this.items = this.sortItems();
|
|
40305
40644
|
this.enabledItems = this.filterItems();
|
|
40306
40645
|
event.stopPropagation();
|
|
40307
40646
|
}
|
|
40308
40647
|
updateItem(event) {
|
|
40309
40648
|
const { position } = event.detail;
|
|
40310
40649
|
if (typeof position === "number") {
|
|
40311
|
-
this.
|
|
40650
|
+
this.currentActivePosition = position;
|
|
40312
40651
|
this.selectedItem = event.target;
|
|
40313
40652
|
}
|
|
40314
40653
|
this.calciteInternalStepperItemChange.emit({
|
|
@@ -40325,7 +40664,7 @@ class Stepper {
|
|
|
40325
40664
|
//--------------------------------------------------------------------------
|
|
40326
40665
|
/** Set the next `calcite-stepper-item` as active. */
|
|
40327
40666
|
async nextStep() {
|
|
40328
|
-
const enabledStepIndex = this.getEnabledStepIndex(this.
|
|
40667
|
+
const enabledStepIndex = this.getEnabledStepIndex(this.currentActivePosition + 1, "next");
|
|
40329
40668
|
if (typeof enabledStepIndex !== "number") {
|
|
40330
40669
|
return;
|
|
40331
40670
|
}
|
|
@@ -40333,7 +40672,7 @@ class Stepper {
|
|
|
40333
40672
|
}
|
|
40334
40673
|
/** Set the previous `calcite-stepper-item` as active. */
|
|
40335
40674
|
async prevStep() {
|
|
40336
|
-
const enabledStepIndex = this.getEnabledStepIndex(this.
|
|
40675
|
+
const enabledStepIndex = this.getEnabledStepIndex(this.currentActivePosition - 1, "previous");
|
|
40337
40676
|
if (typeof enabledStepIndex !== "number") {
|
|
40338
40677
|
return;
|
|
40339
40678
|
}
|
|
@@ -40346,7 +40685,7 @@ class Stepper {
|
|
|
40346
40685
|
*/
|
|
40347
40686
|
async goToStep(step) {
|
|
40348
40687
|
const position = step - 1;
|
|
40349
|
-
if (this.
|
|
40688
|
+
if (this.currentActivePosition !== position) {
|
|
40350
40689
|
this.updateStep(position);
|
|
40351
40690
|
}
|
|
40352
40691
|
}
|
|
@@ -40369,11 +40708,16 @@ class Stepper {
|
|
|
40369
40708
|
effectiveLocaleChange() {
|
|
40370
40709
|
updateMessages(this);
|
|
40371
40710
|
}
|
|
40372
|
-
|
|
40373
|
-
|
|
40374
|
-
|
|
40375
|
-
|
|
40376
|
-
|
|
40711
|
+
handlePositionChange() {
|
|
40712
|
+
readTask(() => {
|
|
40713
|
+
this.determineActiveStepper(true);
|
|
40714
|
+
});
|
|
40715
|
+
}
|
|
40716
|
+
handleElWidthChange() {
|
|
40717
|
+
readTask(() => {
|
|
40718
|
+
this.determineActiveStepper();
|
|
40719
|
+
});
|
|
40720
|
+
}
|
|
40377
40721
|
updateItems() {
|
|
40378
40722
|
this.el.querySelectorAll("calcite-stepper-item").forEach((item) => {
|
|
40379
40723
|
item.icon = this.icon;
|
|
@@ -40382,26 +40726,54 @@ class Stepper {
|
|
|
40382
40726
|
item.scale = this.scale;
|
|
40383
40727
|
});
|
|
40384
40728
|
}
|
|
40729
|
+
determineActiveStepper(currentActivePositionChanged = false) {
|
|
40730
|
+
const totalItems = this.items.length;
|
|
40731
|
+
if (!this.elWidth || !totalItems || this.layout !== "horizontal" || totalItems === 1) {
|
|
40732
|
+
return;
|
|
40733
|
+
}
|
|
40734
|
+
const activePosition = this.currentActivePosition || 0;
|
|
40735
|
+
const totalMinWidthOfItems = totalItems * this.getMinWidthOfStepperItem();
|
|
40736
|
+
const totalRowGap = (totalItems - 1) * (parseInt(window.getComputedStyle(this.containerEl).rowGap) || 0);
|
|
40737
|
+
if (this.elWidth <= totalMinWidthOfItems + totalRowGap) {
|
|
40738
|
+
this.multipleViewMode = false;
|
|
40739
|
+
this.items.forEach((item, index) => {
|
|
40740
|
+
if (index !== activePosition) {
|
|
40741
|
+
item.hidden = true;
|
|
40742
|
+
}
|
|
40743
|
+
else {
|
|
40744
|
+
item.hidden = false;
|
|
40745
|
+
item.multipleViewMode = false;
|
|
40746
|
+
}
|
|
40747
|
+
});
|
|
40748
|
+
}
|
|
40749
|
+
else if (this.elWidth > totalMinWidthOfItems + totalRowGap) {
|
|
40750
|
+
if (this.multipleViewMode && !currentActivePositionChanged) {
|
|
40751
|
+
return;
|
|
40752
|
+
}
|
|
40753
|
+
this.multipleViewMode = true;
|
|
40754
|
+
this.setGridTemplateColumns(this.items);
|
|
40755
|
+
this.items.forEach((item) => {
|
|
40756
|
+
item.hidden = false;
|
|
40757
|
+
item.multipleViewMode = true;
|
|
40758
|
+
});
|
|
40759
|
+
}
|
|
40760
|
+
}
|
|
40385
40761
|
getEnabledStepIndex(startIndex, direction = "next") {
|
|
40386
|
-
const { items,
|
|
40762
|
+
const { items, currentActivePosition } = this;
|
|
40387
40763
|
let newIndex = startIndex;
|
|
40388
|
-
while (items[newIndex]?.disabled) {
|
|
40764
|
+
while (items[newIndex]?.disabled && this.multipleViewMode) {
|
|
40389
40765
|
newIndex = newIndex + (direction === "previous" ? -1 : 1);
|
|
40390
40766
|
}
|
|
40391
|
-
return newIndex !==
|
|
40767
|
+
return newIndex !== currentActivePosition && newIndex < items.length && newIndex >= 0
|
|
40392
40768
|
? newIndex
|
|
40393
40769
|
: null;
|
|
40394
40770
|
}
|
|
40395
40771
|
updateStep(position) {
|
|
40396
|
-
this.
|
|
40772
|
+
this.currentActivePosition = position;
|
|
40397
40773
|
this.calciteInternalStepperItemChange.emit({
|
|
40398
40774
|
position,
|
|
40399
40775
|
});
|
|
40400
40776
|
}
|
|
40401
|
-
sortItems() {
|
|
40402
|
-
const { itemMap } = this;
|
|
40403
|
-
return Array.from(itemMap.keys()).sort((a, b) => itemMap.get(a).position - itemMap.get(b).position);
|
|
40404
|
-
}
|
|
40405
40777
|
filterItems() {
|
|
40406
40778
|
return this.items.filter((item) => !item.disabled);
|
|
40407
40779
|
}
|
|
@@ -40410,9 +40782,32 @@ class Stepper {
|
|
|
40410
40782
|
item.numberingSystem = this.numberingSystem;
|
|
40411
40783
|
});
|
|
40412
40784
|
}
|
|
40785
|
+
renderAction(position) {
|
|
40786
|
+
const isPositionStart = position === "start";
|
|
40787
|
+
const path = isPositionStart ? "chevron-left" : "chevron-right";
|
|
40788
|
+
const { currentActivePosition, multipleViewMode, layout } = this;
|
|
40789
|
+
const totalItems = this.items.length;
|
|
40790
|
+
const id = `${this.guid}-${isPositionStart ? "start" : "end"}`;
|
|
40791
|
+
return layout === "horizontal" && !multipleViewMode ? (hAsync("calcite-action", { alignment: "center", appearance: "transparent", class: {
|
|
40792
|
+
[CSS$g.actionIcon]: true,
|
|
40793
|
+
}, compact: true, "data-position": position, disabled: (currentActivePosition === 0 && isPositionStart) ||
|
|
40794
|
+
(currentActivePosition === totalItems - 1 && !isPositionStart), icon: path, iconFlipRtl: true, id: id, onClick: this.handleActionClick, scale: this.scale, text: isPositionStart ? this.messages.previousStep : this.messages.nextStep })) : null;
|
|
40795
|
+
}
|
|
40413
40796
|
getFirstEnabledStepperPosition() {
|
|
40414
40797
|
const enabledStepIndex = this.items.findIndex((item) => !item.disabled);
|
|
40415
|
-
|
|
40798
|
+
if (enabledStepIndex > -1) {
|
|
40799
|
+
return enabledStepIndex;
|
|
40800
|
+
}
|
|
40801
|
+
return 0;
|
|
40802
|
+
}
|
|
40803
|
+
setGridTemplateColumns(items) {
|
|
40804
|
+
const minWidth = this.getMinWidthOfStepperItem();
|
|
40805
|
+
const spacing = Array(items.length).fill(`minmax(${minWidth}px, 1fr)`).join(" ");
|
|
40806
|
+
this.containerEl.style.gridTemplateAreas = spacing;
|
|
40807
|
+
this.containerEl.style.gridTemplateColumns = spacing;
|
|
40808
|
+
}
|
|
40809
|
+
getMinWidthOfStepperItem() {
|
|
40810
|
+
return ITEM_MIN_WIDTH[this.scale];
|
|
40416
40811
|
}
|
|
40417
40812
|
static get assetsDirs() { return ["assets"]; }
|
|
40418
40813
|
get el() { return getElement(this); }
|
|
@@ -40423,7 +40818,9 @@ class Stepper {
|
|
|
40423
40818
|
"scale": ["handleItemPropChange"],
|
|
40424
40819
|
"numberingSystem": ["numberingSystemChange"],
|
|
40425
40820
|
"messageOverrides": ["onMessagesChange"],
|
|
40426
|
-
"effectiveLocale": ["effectiveLocaleChange"]
|
|
40821
|
+
"effectiveLocale": ["effectiveLocaleChange"],
|
|
40822
|
+
"currentActivePosition": ["handlePositionChange"],
|
|
40823
|
+
"elWidth": ["handleElWidthChange"]
|
|
40427
40824
|
}; }
|
|
40428
40825
|
static get style() { return stepperCss; }
|
|
40429
40826
|
static get cmpMeta() { return {
|
|
@@ -40440,6 +40837,8 @@ class Stepper {
|
|
|
40440
40837
|
"messageOverrides": [1040],
|
|
40441
40838
|
"defaultMessages": [32],
|
|
40442
40839
|
"effectiveLocale": [32],
|
|
40840
|
+
"currentActivePosition": [32],
|
|
40841
|
+
"elWidth": [32],
|
|
40443
40842
|
"nextStep": [64],
|
|
40444
40843
|
"prevStep": [64],
|
|
40445
40844
|
"goToStep": [64],
|
|
@@ -40463,7 +40862,7 @@ const CSS$f = {
|
|
|
40463
40862
|
visuallyHidden: "visually-hidden",
|
|
40464
40863
|
};
|
|
40465
40864
|
|
|
40466
|
-
const stepperItemCss = "/*!@:host([layout=horizontal][disabled]) .stepper-item-header, :host([disabled])*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([layout=horizontal][disabled]) .stepper-item-header *, :host([disabled]) *,\n:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),\n:host([disabled]) ::slotted(*)*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h *.sc-calcite-stepper-item,.sc-calcite-stepper-item-h[layout=horizontal][disabled] .stepper-item-header .sc-calcite-stepper-item-s>*,.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>*{pointer-events:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:0.25rem}/*!@:host([scale=s]) .stepper-item-description*/[scale=s].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:0.5rem}/*!@:host([scale=m]) .stepper-item-description*/[scale=m].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:0.75rem}/*!@:host([scale=l]) .stepper-item-description*/[scale=l].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host*/.sc-calcite-stepper-item-h{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host*/.sc-calcite-stepper-item-h{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-stepper-item-h:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{display:flex;cursor:pointer;align-items:flex-start}/*!@:host .stepper-item-content,\n:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host .stepper-item-header **/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-content*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host .stepper-item-icon*/.sc-calcite-stepper-item-h .stepper-item-icon.sc-calcite-stepper-item{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-header-text*/.sc-calcite-stepper-item-h .stepper-item-header-text.sc-calcite-stepper-item{flex-direction:column;text-align:initial;margin-inline-end:auto}/*!@:host .stepper-item-heading,\n:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{display:flex;inline-size:100%}/*!@:host .stepper-item-heading*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item{margin-block-end:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}/*!@:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-3)}/*!@:host .stepper-item-number*/.sc-calcite-stepper-item-h .stepper-item-number.sc-calcite-stepper-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-stepper-item-h [calcite-hydrated][disabled].sc-calcite-stepper-item{opacity:1}/*!@:host([complete]) .container*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([complete]) .container .stepper-item-icon*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([error]) .container*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-number*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-icon*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{opacity:1;color:var(--calcite-ui-danger)}/*!@:host(:hover:not([disabled]):not([selected])) .container,\n:host(:focus:not([disabled]):not([selected])) .container*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([error]:hover:not([disabled]):not([selected])) .container,\n:host([error]:focus:not([disabled]):not([selected])) .container*/[error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger-hover)}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-heading*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host([selected]) .container .stepper-item-description*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand);opacity:1}/*!@:host([selected]) .container .stepper-item-content*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{display:flex}/*!@:host([layout=vertical]) .container*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]) .container .stepper-item-icon*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}/*!@:host([layout=vertical]) .container .stepper-item-header*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-header.sc-calcite-stepper-item{padding-inline-end:0px}/*!@:host([layout=vertical]) .container .stepper-item-content*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{padding:0px}/*!@:host([layout=vertical][complete]) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][error]) .container*/[layout=vertical][error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty)*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical]:focus:not([disabled]):not([selected])) .container*/[layout=vertical].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}/*!@:host([layout=horizontal])*/[layout=horizontal].sc-calcite-stepper-item-h{display:contents}/*!@:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{display:contents}/*!@:host([layout=horizontal]) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);outline-color:transparent;grid-row:items;margin-inline-end:0.5rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal]) .stepper-item-header:focus*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host([layout=horizontal]) .stepper-item-content*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host([layout=horizontal][selected]) .stepper-item-content*/[layout=horizontal][selected].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{grid-area:2/1/2/-1}/*!@:host([layout=horizontal][scale=s]) .stepper-item-header*/[layout=horizontal][scale=s].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{margin-inline-end:0.25rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][scale=l]) .stepper-item-header*/[layout=horizontal][scale=l].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{margin-inline-end:0.75rem;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host([layout=horizontal][complete]) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal][error]) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=horizontal][selected]) .stepper-item-header*/[layout=horizontal][selected].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{outline-width:0;outline-offset:0}/*!@:host(:focus),\n :host(:focus-visible)*/.sc-calcite-stepper-item-h:focus,.sc-calcite-stepper-item-h:focus-visible{outline-color:canvasText}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:highlight}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:highlight}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:highlight}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:highlight}}/*!@.visually-hidden*/.visually-hidden.sc-calcite-stepper-item{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@:host([hidden])*/[hidden].sc-calcite-stepper-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-stepper-item{display:none}";
|
|
40865
|
+
const stepperItemCss = "/*!@:host([layout=horizontal][disabled]) .stepper-item-header, :host([disabled])*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([layout=horizontal][disabled]) .stepper-item-header *, :host([disabled]) *,\n:host([layout=horizontal][disabled]) .stepper-item-header ::slotted(*),\n:host([disabled]) ::slotted(*)*/[layout=horizontal][disabled].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item,[disabled].sc-calcite-stepper-item-h *.sc-calcite-stepper-item,.sc-calcite-stepper-item-h[layout=horizontal][disabled] .stepper-item-header .sc-calcite-stepper-item-s>*,.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>*{pointer-events:none}/*!@:host([scale=s])*/[scale=s].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.25rem;--calcite-stepper-item-spacing-unit-m:0.75rem;--calcite-stepper-item-spacing-unit-l:1rem;--calcite-internal-stepper-action-inline-size:2rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-inline-end:0.25rem}/*!@:host([scale=s]) .stepper-item-description*/[scale=s].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.5rem;--calcite-stepper-item-spacing-unit-m:1rem;--calcite-stepper-item-spacing-unit-l:1.25rem;--calcite-internal-stepper-action-inline-size:2.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-inline-end:0.5rem}/*!@:host([scale=m]) .stepper-item-description*/[scale=m].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-stepper-item-h{--calcite-stepper-item-spacing-unit-s:0.75rem;--calcite-stepper-item-spacing-unit-m:1.25rem;--calcite-stepper-item-spacing-unit-l:1.5rem;--calcite-internal-stepper-action-inline-size:3rem;font-size:var(--calcite-font-size-1);line-height:1.5rem;margin-inline-end:0.75rem}/*!@:host([scale=l]) .stepper-item-description*/[scale=l].sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host*/.sc-calcite-stepper-item-h{position:relative;display:flex;flex-grow:1;flex-direction:column;align-self:flex-start;margin-block-end:var(--calcite-stepper-item-spacing-unit-s)}/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{position:relative;display:flex;flex-grow:1;cursor:pointer;flex-direction:column;border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);color:var(--calcite-ui-text-3);text-decoration-line:none;outline:2px solid transparent;outline-offset:2px;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host*/.sc-calcite-stepper-item-h{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-stepper-item-h:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{display:flex;cursor:pointer;align-items:flex-start}/*!@:host .stepper-item-content,\n:host .stepper-item-header*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:var(--calcite-stepper-item-spacing-unit-l);padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host .stepper-item-header **/.sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item *.sc-calcite-stepper-item{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-content*/.sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{display:none;inline-size:100%;flex-direction:column;font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host .stepper-item-icon*/.sc-calcite-stepper-item-h .stepper-item-icon.sc-calcite-stepper-item{margin-inline-end:var(--calcite-stepper-item-spacing-unit-m);margin-block-start:1px;display:inline-flex;block-size:0.75rem;flex-shrink:0;align-self:flex-start;color:var(--calcite-ui-text-3);opacity:var(--calcite-ui-opacity-disabled);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}/*!@:host .stepper-item-header-text*/.sc-calcite-stepper-item-h .stepper-item-header-text.sc-calcite-stepper-item{flex-direction:column;text-align:initial;margin-inline-end:auto}/*!@:host .stepper-item-heading,\n:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{display:flex;inline-size:100%}/*!@:host .stepper-item-heading*/.sc-calcite-stepper-item-h .stepper-item-heading.sc-calcite-stepper-item{margin-block-end:0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}/*!@:host .stepper-item-description*/.sc-calcite-stepper-item-h .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-3)}/*!@:host .stepper-item-number*/.sc-calcite-stepper-item-h .stepper-item-number.sc-calcite-stepper-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-stepper-item-spacing-unit-m)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-stepper-item-h[disabled] .sc-calcite-stepper-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-stepper-item-h [calcite-hydrated][disabled].sc-calcite-stepper-item{opacity:1}/*!@:host([complete]) .container*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([complete]) .container .stepper-item-icon*/[complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([error]) .container*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-number*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-danger)}/*!@:host([error]) .container .stepper-item-icon*/[error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{opacity:1;color:var(--calcite-ui-danger)}/*!@:host(:hover:not([disabled]):not([selected])) .container,\n:host(:focus:not([disabled]):not([selected])) .container*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-heading,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-heading*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host(:hover:not([disabled]):not([selected])) .container .stepper-item-description,\n:host(:focus:not([disabled]):not([selected])) .container .stepper-item-description*/.sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item,.sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([error]:hover:not([disabled]):not([selected])) .container,\n:host([error]:focus:not([disabled]):not([selected])) .container*/[error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-danger-hover)}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-heading*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-1)}/*!@:host([selected]) .container .stepper-item-description*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-description.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-brand)}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:var(--calcite-ui-brand);opacity:1}/*!@:host([selected]) .container .stepper-item-content*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{display:flex}/*!@:host([layout=vertical]) .container*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{margin-inline:0px;margin-block-start:0px;flex:1 1 auto;border-block-start-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);padding-block:0px;border-inline-start-width:2px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]) .container .stepper-item-icon*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{order:3;margin-block:1px 0px;padding-inline-start:var(--calcite-stepper-item-spacing-unit-s);margin-inline-start:auto}/*!@:host([layout=vertical]) .container .stepper-item-header*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-header.sc-calcite-stepper-item{padding-inline-end:0px}/*!@:host([layout=vertical]) .container .stepper-item-content*/[layout=vertical].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item{padding:0px}/*!@:host([layout=vertical][complete]) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][complete]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][complete]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][error]) .container*/[layout=vertical][error].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=vertical][selected]) .container .stepper-item-content:not(:empty)*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-content.sc-calcite-stepper-item:not(:empty){margin-block-end:var(--calcite-stepper-item-spacing-unit-l)}/*!@:host([layout=vertical]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical]:focus:not([disabled]):not([selected])) .container*/[layout=vertical].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=vertical][error]:hover:not([disabled]):not([selected])) .container,\n:host([layout=vertical][error]:focus:not([disabled]):not([selected])) .container*/[layout=vertical][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .container.sc-calcite-stepper-item,[layout=vertical][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .container.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}/*!@:host([layout=horizontal])*/[layout=horizontal].sc-calcite-stepper-item-h{display:contents}/*!@:host([layout=horizontal]) .container*/[layout=horizontal].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{display:contents}/*!@:host([layout=horizontal]) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-width:0px;border-block-start-width:2px;border-style:solid;border-color:var(--calcite-ui-border-3);outline-color:transparent;grid-row:items}/*!@:host([layout=horizontal]) .stepper-item-header:focus*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host([layout=horizontal]) .stepper-item-content*/[layout=horizontal].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{cursor:auto;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);padding-block:0;padding-inline-end:var(--calcite-stepper-item-spacing-unit-m);text-align:start}/*!@:host([layout=horizontal][selected]) .stepper-item-content*/[layout=horizontal][selected].sc-calcite-stepper-item-h .stepper-item-content.sc-calcite-stepper-item{grid-area:2/1/2/-1}/*!@:host([layout=horizontal][complete]) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][complete]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][complete]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][complete].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][complete].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal][error]) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger)}/*!@:host([layout=horizontal][selected][multiple-view-mode]) .stepper-item-header*/[layout=horizontal][selected][multiple-view-mode].sc-calcite-stepper-item-h .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-brand)}/*!@:host([layout=horizontal]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:rgba(0, 122, 194, 0.5)}/*!@:host([layout=horizontal][error]:hover:not([disabled]):not([selected])) .stepper-item-header,\n:host([layout=horizontal][error]:focus:not([disabled]):not([selected])) .stepper-item-header*/[layout=horizontal][error].sc-calcite-stepper-item-h:hover:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item,[layout=horizontal][error].sc-calcite-stepper-item-h:focus:not([disabled]):not([selected]) .stepper-item-header.sc-calcite-stepper-item{border-color:var(--calcite-ui-danger-hover)}@media (forced-colors: active){/*!@:host .container*/.sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{outline-width:0;outline-offset:0}/*!@:host(:focus),\n :host(:focus-visible)*/.sc-calcite-stepper-item-h:focus,.sc-calcite-stepper-item-h:focus-visible{outline-color:canvasText}/*!@:host([selected]) .container*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-block-start-color:highlight}/*!@:host([selected]) .container .stepper-item-number*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:highlight}/*!@:host([selected]) .container .stepper-item-icon*/[selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{color:highlight}/*!@:host([layout=vertical][selected]) .container*/[layout=vertical][selected].sc-calcite-stepper-item-h .container.sc-calcite-stepper-item{border-color:highlight}}/*!@:host([layout=horizontal]:not([multiple-view-mode])) .stepper-item-header*/[layout=horizontal].sc-calcite-stepper-item-h:not([multiple-view-mode]) .stepper-item-header.sc-calcite-stepper-item{margin-inline-end:0px;border-style:none;inline-size:100%;padding-inline:calc(var(--calcite-internal-stepper-action-inline-size) + 0.5rem)}/*!@:host([layout=horizontal][error]:not([multiple-view-mode])) .container .stepper-item-number*/[layout=horizontal][error].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-danger)}/*!@:host([layout=horizontal][error]:not([multiple-view-mode])) .container .stepper-item-icon*/[layout=horizontal][error].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{opacity:1;color:var(--calcite-ui-danger)}/*!@:host([layout=horizontal][error][selected]:not([multiple-view-mode])),\n:host([layout=horizontal][complete][selected]:not([multiple-view-mode])) .container*/[layout=horizontal][error][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]),[layout=horizontal][complete][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item{color:var(--calcite-ui-text-3)}/*!@:host([layout=horizontal][error][selected]:not([multiple-view-mode])) .stepper-item-heading,\n:host([layout=horizontal][complete][selected]:not([multiple-view-mode])) .container .stepper-item-heading*/[layout=horizontal][error][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]) .stepper-item-heading.sc-calcite-stepper-item,[layout=horizontal][complete][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item .stepper-item-heading.sc-calcite-stepper-item{color:var(--calcite-ui-text-2)}/*!@:host([layout=horizontal][complete][selected]:not([multiple-view-mode])) .container .stepper-item-icon*/[layout=horizontal][complete][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item .stepper-item-icon.sc-calcite-stepper-item{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([layout=horizontal][complete][selected]:not([multiple-view-mode])) .container .stepper-item-number*/[layout=horizontal][complete][selected].sc-calcite-stepper-item-h:not([multiple-view-mode]) .container.sc-calcite-stepper-item .stepper-item-number.sc-calcite-stepper-item{color:var(--calcite-ui-text-3)}/*!@.visually-hidden*/.visually-hidden.sc-calcite-stepper-item{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}/*!@:host([hidden])*/[hidden].sc-calcite-stepper-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-stepper-item{display:none}";
|
|
40467
40866
|
|
|
40468
40867
|
/**
|
|
40469
40868
|
* @slot - A slot for adding custom content.
|
|
@@ -40540,6 +40939,7 @@ class StepperItem {
|
|
|
40540
40939
|
this.messages = undefined;
|
|
40541
40940
|
this.numbered = false;
|
|
40542
40941
|
this.scale = "m";
|
|
40942
|
+
this.multipleViewMode = false;
|
|
40543
40943
|
this.messageOverrides = undefined;
|
|
40544
40944
|
this.defaultMessages = undefined;
|
|
40545
40945
|
this.effectiveLocale = "";
|
|
@@ -40598,7 +40998,7 @@ class StepperItem {
|
|
|
40598
40998
|
render() {
|
|
40599
40999
|
return (hAsync(Host, { "aria-current": this.selected ? "step" : "false", onClick: this.handleItemClick, onKeyDown: this.keyDownHandler }, hAsync("div", { class: CSS$f.container }, this.complete && (hAsync("span", { "aria-live": "polite", class: CSS$f.visuallyHidden }, this.messages.complete)), hAsync("div", { class: CSS$f.stepperItemHeader, tabIndex:
|
|
40600
41000
|
/* additional tab index logic needed because of display: contents */
|
|
40601
|
-
this.layout === "horizontal" && !this.disabled ? 0 : null,
|
|
41001
|
+
this.layout === "horizontal" && !this.disabled && this.multipleViewMode ? 0 : null,
|
|
40602
41002
|
// 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)
|
|
40603
41003
|
ref: (el) => (this.headerEl = el) }, this.icon ? this.renderIcon() : null, this.numbered ? (hAsync("div", { class: CSS$f.stepperItemNumber }, this.renderNumbers(), ".")) : null, hAsync("div", { class: CSS$f.stepperItemHeaderText }, hAsync("span", { class: CSS$f.stepperItemHeading }, this.heading), hAsync("span", { class: CSS$f.stepperItemDescription }, this.description))), hAsync("div", { class: CSS$f.stepperItemContent }, hAsync("slot", null)))));
|
|
40604
41004
|
}
|
|
@@ -40625,13 +41025,16 @@ class StepperItem {
|
|
|
40625
41025
|
(this.layout === "vertical" ? this.el : this.headerEl)?.focus();
|
|
40626
41026
|
}
|
|
40627
41027
|
renderIcon() {
|
|
40628
|
-
|
|
40629
|
-
|
|
40630
|
-
|
|
40631
|
-
|
|
40632
|
-
|
|
40633
|
-
|
|
40634
|
-
|
|
41028
|
+
let path = "circle";
|
|
41029
|
+
if (this.selected && (this.multipleViewMode || (!this.error && !this.complete))) {
|
|
41030
|
+
path = "circleF";
|
|
41031
|
+
}
|
|
41032
|
+
else if (this.error) {
|
|
41033
|
+
path = "exclamationMarkCircleF";
|
|
41034
|
+
}
|
|
41035
|
+
else if (this.complete) {
|
|
41036
|
+
path = "checkCircleF";
|
|
41037
|
+
}
|
|
40635
41038
|
return (hAsync("calcite-icon", { class: "stepper-item-icon", flipRtl: this.iconFlipRtl, icon: path, scale: "s" }));
|
|
40636
41039
|
}
|
|
40637
41040
|
determineSelectedItem() {
|
|
@@ -40679,6 +41082,7 @@ class StepperItem {
|
|
|
40679
41082
|
"messages": [1040],
|
|
40680
41083
|
"numbered": [4],
|
|
40681
41084
|
"scale": [513],
|
|
41085
|
+
"multipleViewMode": [516, "multiple-view-mode"],
|
|
40682
41086
|
"messageOverrides": [1040],
|
|
40683
41087
|
"defaultMessages": [32],
|
|
40684
41088
|
"effectiveLocale": [32],
|
|
@@ -40686,7 +41090,7 @@ class StepperItem {
|
|
|
40686
41090
|
},
|
|
40687
41091
|
"$listeners$": [[16, "calciteInternalStepperItemChange", "updateActiveItemOnChange"]],
|
|
40688
41092
|
"$lazyBundleId$": "-",
|
|
40689
|
-
"$attrsToReflect$": [["selected", "selected"], ["complete", "complete"], ["error", "error"], ["disabled", "disabled"], ["iconFlipRtl", "icon-flip-rtl"], ["layout", "layout"], ["scale", "scale"]]
|
|
41093
|
+
"$attrsToReflect$": [["selected", "selected"], ["complete", "complete"], ["error", "error"], ["disabled", "disabled"], ["iconFlipRtl", "icon-flip-rtl"], ["layout", "layout"], ["scale", "scale"], ["multipleViewMode", "multiple-view-mode"]]
|
|
40690
41094
|
}; }
|
|
40691
41095
|
}
|
|
40692
41096
|
|
|
@@ -45818,9 +46222,11 @@ class ValueListItem {
|
|
|
45818
46222
|
const { icon, iconFlipRtl } = this;
|
|
45819
46223
|
if (icon === ICON_TYPES$1.grip) {
|
|
45820
46224
|
return (hAsync("span", { class: {
|
|
45821
|
-
[CSS$
|
|
45822
|
-
[CSS$
|
|
45823
|
-
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown,
|
|
46225
|
+
[CSS$v.handle]: true,
|
|
46226
|
+
[CSS$v.handleActivated]: this.handleActivated,
|
|
46227
|
+
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0",
|
|
46228
|
+
// 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)
|
|
46229
|
+
ref: (el) => (this.handleEl = el) }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS.drag, scale: "s" })));
|
|
45824
46230
|
}
|
|
45825
46231
|
}
|
|
45826
46232
|
render() {
|