@esri/calcite-components 1.7.0-next.15 → 1.7.0-next.17
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/icon/addLayerService16.json +1 -0
- package/dist/calcite/assets/icon/addLayerService24.json +1 -0
- package/dist/calcite/assets/icon/addLayerService32.json +1 -0
- package/dist/calcite/assets/icon/circleStop16.json +1 -0
- package/dist/calcite/assets/icon/circleStop16F.json +1 -0
- package/dist/calcite/assets/icon/circleStop24.json +1 -0
- package/dist/calcite/assets/icon/circleStop24F.json +1 -0
- package/dist/calcite/assets/icon/circleStop32.json +1 -0
- package/dist/calcite/assets/icon/circleStop32F.json +1 -0
- package/dist/calcite/assets/icon/hideLayers16.json +1 -0
- package/dist/calcite/assets/icon/hideLayers24.json +1 -0
- package/dist/calcite/assets/icon/hideLayers32.json +1 -0
- package/dist/calcite/assets/icon/minusSquare16F.json +1 -1
- package/dist/calcite/assets/icon/minusSquare32F.json +1 -1
- package/dist/calcite/assets/icon/stopSquare16.json +1 -0
- package/dist/calcite/assets/icon/stopSquare16F.json +1 -0
- package/dist/calcite/assets/icon/stopSquare24.json +1 -0
- package/dist/calcite/assets/icon/stopSquare24F.json +1 -0
- package/dist/calcite/assets/icon/stopSquare32.json +1 -0
- package/dist/calcite/assets/icon/stopSquare32F.json +1 -0
- package/dist/calcite/assets/table/t9n/index.d.ts +7 -0
- package/dist/calcite/assets/table/t9n/messages.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_ar.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_bg.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_bs.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_ca.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_cs.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_da.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_de.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_el.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_en.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_es.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_et.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_fi.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_fr.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_he.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_hr.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_hu.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_id.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_it.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_ja.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_ko.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_lt.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_lv.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_nl.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_no.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_pl.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_pt-BR.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_pt-PT.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_ro.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_ru.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_sk.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_sl.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_sr.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_sv.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_th.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_tr.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_uk.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_vi.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_zh-CN.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_zh-HK.json +7 -0
- package/dist/calcite/assets/table/t9n/messages_zh-TW.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/index.d.ts +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_ar.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_bg.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_bs.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_ca.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_cs.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_da.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_de.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_el.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_en.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_es.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_et.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_fi.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_fr.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_he.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_hr.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_hu.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_id.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_it.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_ja.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_ko.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_lt.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_lv.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_nl.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_no.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_pl.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_pt-BR.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_pt-PT.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_ro.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_ru.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_sk.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_sl.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_sr.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_sv.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_th.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_tr.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_uk.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_vi.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_zh-CN.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_zh-HK.json +7 -0
- package/dist/calcite/assets/table-cell/t9n/messages_zh-TW.json +7 -0
- package/dist/calcite/assets/table-header/t9n/index.d.ts +8 -0
- package/dist/calcite/assets/table-header/t9n/messages.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_ar.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_bg.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_bs.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_ca.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_cs.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_da.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_de.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_el.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_en.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_es.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_et.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_fi.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_fr.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_he.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_hr.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_hu.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_id.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_it.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_ja.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_ko.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_lt.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_lv.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_nl.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_no.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_pl.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_pt-BR.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_pt-PT.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_ro.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_ru.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_sk.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_sl.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_sr.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_sv.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_th.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_tr.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_uk.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_vi.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_zh-CN.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_zh-HK.json +8 -0
- package/dist/calcite/assets/table-header/t9n/messages_zh-TW.json +8 -0
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +2 -2
- package/dist/calcite/p-02ffea42.entry.js +6 -0
- package/dist/calcite/p-0671d350.js +6 -0
- package/dist/calcite/p-097135c4.js +7 -0
- package/dist/calcite/p-0b812538.entry.js +6 -0
- package/dist/calcite/p-0f6b183c.js +6 -0
- package/dist/calcite/p-0fb3b20e.entry.js +6 -0
- package/dist/calcite/p-13b5990a.js +6 -0
- package/dist/calcite/p-1707e155.js +6 -0
- package/dist/calcite/p-17ede011.js +6 -0
- package/dist/calcite/p-1811fd36.js +6 -0
- package/dist/calcite/p-1c8962c4.entry.js +6 -0
- package/dist/calcite/p-1e702809.js +6 -0
- package/dist/calcite/p-1fc90548.js +6 -0
- package/dist/calcite/p-222beb73.js +6 -0
- package/dist/calcite/p-22363d44.js +6 -0
- package/dist/calcite/p-2273d064.js +6 -0
- package/dist/calcite/p-2372be2e.entry.js +6 -0
- package/dist/calcite/p-24d121bf.js +6 -0
- package/dist/calcite/p-2530f8ac.js +6 -0
- package/dist/calcite/p-25b1d76a.js +6 -0
- package/dist/calcite/p-272c5bed.entry.js +6 -0
- package/dist/calcite/p-27ad3f12.entry.js +6 -0
- package/dist/calcite/p-27cbf1a4.entry.js +6 -0
- package/dist/calcite/p-2a48d634.entry.js +6 -0
- package/dist/calcite/p-2b6a09e6.js +6 -0
- package/dist/calcite/p-2e240cdb.entry.js +6 -0
- package/dist/calcite/p-2f78a808.js +6 -0
- package/dist/calcite/p-337b1135.entry.js +6 -0
- package/dist/calcite/p-34c5c4fe.entry.js +6 -0
- package/dist/calcite/p-361b0e6e.js +6 -0
- package/dist/calcite/p-36260d4e.js +6 -0
- package/dist/calcite/p-37403e16.js +6 -0
- package/dist/calcite/p-377c22c3.entry.js +6 -0
- package/dist/calcite/p-39dd49cf.js +10 -0
- package/dist/calcite/p-3b435340.entry.js +6 -0
- package/dist/calcite/p-3c76739d.js +12 -0
- package/dist/calcite/p-3f076cf9.entry.js +6 -0
- package/dist/calcite/p-41acfce2.entry.js +6 -0
- package/dist/calcite/p-444c47da.js +6 -0
- package/dist/calcite/p-45bf4a19.entry.js +6 -0
- package/dist/calcite/p-477dc54e.js +6 -0
- package/dist/calcite/p-47f9f3b5.js +6 -0
- package/dist/calcite/p-49b67c70.entry.js +6 -0
- package/dist/calcite/p-4ce791e7.js +6 -0
- package/dist/calcite/p-4da64c86.js +6 -0
- package/dist/calcite/p-4f2ebe69.entry.js +6 -0
- package/dist/calcite/p-4fee9dc6.entry.js +6 -0
- package/dist/calcite/p-50b2ff1a.js +6 -0
- package/dist/calcite/p-554c0b34.js +6 -0
- package/dist/calcite/p-55e614f6.entry.js +6 -0
- package/dist/calcite/p-56317464.js +6 -0
- package/dist/calcite/p-5709aab2.entry.js +6 -0
- package/dist/calcite/p-576ec810.js +6 -0
- package/dist/calcite/p-5a36bc27.entry.js +6 -0
- package/dist/calcite/p-5b082756.entry.js +6 -0
- package/dist/calcite/p-5c9e4d27.entry.js +6 -0
- package/dist/calcite/p-5e43d2da.entry.js +6 -0
- package/dist/calcite/p-61438d6f.js +6 -0
- package/dist/calcite/p-658a356f.entry.js +6 -0
- package/dist/calcite/p-65be87f1.js +6 -0
- package/dist/calcite/p-686cf487.js +6 -0
- package/dist/calcite/p-6a52269c.entry.js +6 -0
- package/dist/calcite/p-6c1efce9.js +6 -0
- package/dist/calcite/p-6dd676a4.js +6 -0
- package/dist/calcite/p-6e8baae4.entry.js +6 -0
- package/dist/calcite/p-6ea637bb.js +6 -0
- package/dist/calcite/p-6ec6a881.js +6 -0
- package/dist/calcite/p-767e03c5.js +6 -0
- package/dist/calcite/p-79606642.entry.js +6 -0
- package/dist/calcite/p-7b329832.entry.js +6 -0
- package/dist/calcite/p-7cd7bfb2.entry.js +6 -0
- package/dist/calcite/p-7d6b89b0.js +6 -0
- package/dist/calcite/p-7ffbb9cd.entry.js +6 -0
- package/dist/calcite/p-8031130e.js +6 -0
- package/dist/calcite/p-804aaf8e.entry.js +6 -0
- package/dist/calcite/p-823d0849.js +6 -0
- package/dist/calcite/p-83053964.js +6 -0
- package/dist/calcite/p-8517aeea.entry.js +6 -0
- package/dist/calcite/p-8959b901.js +6 -0
- package/dist/calcite/p-8a5243c3.js +6 -0
- package/dist/calcite/p-8a965b77.entry.js +6 -0
- package/dist/calcite/p-8c92524d.entry.js +6 -0
- package/dist/calcite/p-909ace66.js +6 -0
- package/dist/calcite/p-915ff1b7.entry.js +6 -0
- package/dist/calcite/p-9391cf60.js +6 -0
- package/dist/calcite/p-94192aca.js +6 -0
- package/dist/calcite/p-94be6a04.entry.js +6 -0
- package/dist/calcite/p-97d26409.entry.js +6 -0
- package/dist/calcite/p-98810dc4.js +6 -0
- package/dist/calcite/p-999f617b.entry.js +6 -0
- package/dist/calcite/p-9e919997.js +6 -0
- package/dist/calcite/p-a023f677.js +11 -0
- package/dist/calcite/p-a02fc70b.entry.js +6 -0
- package/dist/calcite/p-a25ff3f3.entry.js +6 -0
- package/dist/calcite/p-a282f999.js +6 -0
- package/dist/calcite/p-a3e6ad4d.js +6 -0
- package/dist/calcite/p-a62aec14.entry.js +6 -0
- package/dist/calcite/p-a7437151.js +6 -0
- package/dist/calcite/p-a8a275e3.entry.js +6 -0
- package/dist/calcite/p-a99b7a6e.entry.js +6 -0
- package/dist/calcite/p-aa3ccef2.entry.js +6 -0
- package/dist/calcite/p-ac7c8322.js +6 -0
- package/dist/calcite/p-ad085842.js +6 -0
- package/dist/calcite/p-ad0e1a81.entry.js +6 -0
- package/dist/calcite/p-adf074f6.js +6 -0
- package/dist/calcite/p-ae0394bd.js +6 -0
- package/dist/calcite/p-ae8aef0c.entry.js +6 -0
- package/dist/calcite/p-aedf9daa.js +6 -0
- package/dist/calcite/p-af570690.js +6 -0
- package/dist/calcite/p-af66df52.entry.js +6 -0
- package/dist/calcite/p-b2ba068f.js +6 -0
- package/dist/calcite/p-b2f9cb5d.js +6 -0
- package/dist/calcite/p-b3863301.js +6 -0
- package/dist/calcite/p-b464d393.js +6 -0
- package/dist/calcite/p-b698c6d7.js +6 -0
- package/dist/calcite/p-bc403d2d.js +6 -0
- package/dist/calcite/p-bc4b9c89.entry.js +6 -0
- package/dist/calcite/p-bc6a9d3b.entry.js +6 -0
- package/dist/calcite/p-bd807a06.js +6 -0
- package/dist/calcite/p-be5be4d2.js +6 -0
- package/dist/calcite/p-c2799be3.js +6 -0
- package/dist/calcite/p-c9525878.entry.js +6 -0
- package/dist/calcite/p-ccb569a8.js +6 -0
- package/dist/calcite/p-ce8dc48f.js +6 -0
- package/dist/calcite/p-cfcf9eeb.entry.js +6 -0
- package/dist/calcite/p-d0e893d5.entry.js +6 -0
- package/dist/calcite/p-d2cb5de5.entry.js +6 -0
- package/dist/calcite/p-d2fcaba3.entry.js +6 -0
- package/dist/calcite/p-d469d0c1.entry.js +6 -0
- package/dist/calcite/p-d6a8916c.js +6 -0
- package/dist/calcite/p-da969cc6.entry.js +6 -0
- package/dist/calcite/p-db158a77.entry.js +6 -0
- package/dist/calcite/p-dcc173b7.entry.js +6 -0
- package/dist/calcite/p-e5172342.js +6 -0
- package/dist/calcite/p-e755a984.js +6 -0
- package/dist/calcite/p-e9457d6a.js +6 -0
- package/dist/calcite/p-ec7e22a7.entry.js +6 -0
- package/dist/calcite/p-ec90ebf3.js +6 -0
- package/dist/calcite/p-ed3b2c5d.entry.js +6 -0
- package/dist/calcite/p-f11f14c7.entry.js +6 -0
- package/dist/calcite/p-f18ca3b8.js +6 -0
- package/dist/calcite/p-f211c0e7.entry.js +6 -0
- package/dist/calcite/p-f3a04f66.js +6 -0
- package/dist/calcite/p-f4f74f8c.entry.js +6 -0
- package/dist/calcite/p-f598d949.js +6 -0
- package/dist/calcite/p-f6d25277.entry.js +6 -0
- package/dist/calcite/p-f71ac574.js +6 -0
- package/dist/calcite/p-f88aeaed.js +6 -0
- package/dist/calcite/p-f8e28381.entry.js +6 -0
- package/dist/calcite/p-f9927374.js +6 -0
- package/dist/calcite/p-fbfb9644.js +6 -0
- package/dist/calcite/p-fd99af34.js +6 -0
- package/dist/calcite/p-fe2a6014.entry.js +6 -0
- package/dist/calcite/p-fe2af1ec.js +6 -0
- package/dist/calcite/p-feaca3ef.entry.js +6 -0
- package/dist/calcite/p-feccc2ea.entry.js +6 -0
- package/dist/cjs/ExpandToggle-1d6b0af5.js +107 -0
- package/dist/cjs/FloatingArrow-874140c1.js +45 -0
- package/dist/cjs/Heading-463035a8.js +20 -0
- package/dist/cjs/app-globals-d9f3e424.js +59 -0
- package/dist/cjs/ar-514a5742.js +98 -0
- package/dist/cjs/array-49760407.js +12 -0
- package/dist/cjs/bg-a4915250.js +79 -0
- package/dist/cjs/browser-c5494765.js +18 -0
- package/dist/cjs/bs-6002d2dc.js +48 -0
- package/dist/cjs/ca-fa6e53e8.js +68 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- 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 +12 -11
- package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +14 -13
- package/dist/cjs/calcite-button.cjs.entry.js +14 -13
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -10
- package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -8
- package/dist/cjs/calcite-chip.cjs.entry.js +13 -12
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -15
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +22 -20
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +14 -13
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +13 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +8 -7
- package/dist/cjs/calcite-filter.cjs.entry.js +14 -13
- package/dist/cjs/calcite-flow-item.cjs.entry.js +13 -12
- package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
- package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +23 -41
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +14 -13
- package/dist/cjs/calcite-input-text.cjs.entry.js +14 -13
- package/dist/cjs/calcite-input-time-picker.calcite-time-picker-4c6c855a.js +2823 -0
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +17 -16
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +14 -13
- package/dist/cjs/calcite-input.cjs.entry.js +14 -13
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +8 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +16 -15
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu_2.cjs.entry.js +10 -10
- package/dist/cjs/calcite-meter.cjs.entry.js +10 -10
- package/dist/cjs/calcite-modal.cjs.entry.js +13 -13
- package/dist/cjs/calcite-navigation_3.cjs.entry.js +6 -6
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +11 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +10 -10
- package/dist/cjs/calcite-panel.cjs.entry.js +15 -14
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -16
- package/dist/cjs/calcite-popover.cjs.entry.js +16 -16
- 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 -10
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -13
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -10
- 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 -8
- package/dist/cjs/calcite-split-button.cjs.entry.js +5 -4
- package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +11 -10
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +11 -10
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +282 -0
- package/dist/cjs/calcite-table-row.cjs.entry.js +235 -0
- package/dist/cjs/calcite-table.cjs.entry.js +299 -0
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -15
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +9 -8
- 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 +9 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -16
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/conditionalSlot-4b033773.js +58 -0
- package/dist/cjs/cs-15a12e01.js +144 -0
- package/dist/cjs/da-e13e1f52.js +63 -0
- package/dist/cjs/de-at-15dc244e.js +87 -0
- package/dist/cjs/de-ch-ff28d9e8.js +87 -0
- package/dist/cjs/de-dd9dccdd.js +88 -0
- package/dist/cjs/debounce-7a852ee1.js +496 -0
- package/dist/cjs/dom-ea0bb304.js +1056 -0
- package/dist/cjs/el-83749216.js +63 -0
- package/dist/cjs/en-au-ad58e9d1.js +63 -0
- package/dist/cjs/en-ca-a6686349.js +62 -0
- package/dist/cjs/en-gb-eab173b8.js +66 -0
- package/dist/cjs/es-fdfb457d.js +63 -0
- package/dist/cjs/es-mx-addeb4fe.js +62 -0
- package/dist/cjs/et-870c4a2e.js +89 -0
- package/dist/cjs/fi-0464f62e.js +112 -0
- package/dist/cjs/filter-4d2c1e89.js +760 -0
- package/dist/cjs/floating-ui-cda0e6e8.js +1883 -0
- package/dist/cjs/focusTrapComponent-39f45689.js +999 -0
- package/dist/cjs/form-5db341dd.js +283 -0
- package/dist/cjs/fr-545c7bb9.js +65 -0
- package/dist/cjs/fr-ch-e0e7786d.js +63 -0
- package/dist/cjs/guid-e9616580.js +21 -0
- package/dist/cjs/he-ab6813f7.js +102 -0
- package/dist/cjs/hi-c0aa717d.js +62 -0
- package/dist/cjs/hr-a32a418d.js +77 -0
- package/dist/cjs/hu-3930a9b4.js +85 -0
- package/dist/cjs/id-99e82723.js +63 -0
- package/dist/cjs/index-27680056.js +2327 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/interactive-486f5dea.js +142 -0
- package/dist/cjs/it-a485d1c0.js +63 -0
- package/dist/cjs/it-ch-9e137ea8.js +63 -0
- package/dist/cjs/ja-9e24f043.js +69 -0
- package/dist/cjs/key-2dc1cce5.js +14 -0
- package/dist/cjs/ko-09d15e16.js +69 -0
- package/dist/cjs/label-69736362.js +149 -0
- package/dist/cjs/loadable-14c9679e.js +89 -0
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/locale-251d00f4.js +594 -0
- package/dist/cjs/lt-f09dc473.js +94 -0
- package/dist/cjs/lv-33900432.js +63 -0
- package/dist/cjs/math-51ecbcbb.js +55 -0
- package/dist/cjs/mk-821bfc0b.js +63 -0
- package/dist/cjs/nb-85a288f3.js +64 -0
- package/dist/cjs/nl-e41301f5.js +64 -0
- package/dist/cjs/observers-9a8529c5.js +48 -0
- package/dist/cjs/openCloseComponent-5675db12.js +84 -0
- package/dist/cjs/pl-9df5fdb6.js +111 -0
- package/dist/cjs/pt-448f437b.js +64 -0
- package/dist/cjs/pt-br-d0f74cf1.js +62 -0
- package/dist/cjs/resources-015e0632.js +45 -0
- package/dist/cjs/resources-62652321.js +22 -0
- package/dist/cjs/resources-7220131c.js +24 -0
- package/dist/cjs/resources-8f715b22.js +410 -0
- package/dist/cjs/resources-b32e1ff0.js +27 -0
- package/dist/cjs/resources-b79ae61a.js +21 -0
- package/dist/cjs/resources-f55b8763.js +15 -0
- package/dist/cjs/ro-1704d5b7.js +63 -0
- package/dist/cjs/ru-325338ca.js +123 -0
- package/dist/cjs/sk-0b4d5d38.js +145 -0
- package/dist/cjs/sl-ed1345c9.js +63 -0
- package/dist/cjs/sortableComponent-765cf4f4.js +3107 -0
- package/dist/cjs/sr-08b334b9.js +98 -0
- package/dist/cjs/sv-b1d47816.js +68 -0
- package/dist/cjs/t9n-220a1c81.js +95 -0
- package/dist/cjs/th-8823c841.js +62 -0
- package/dist/cjs/throttle-07aa9840.js +75 -0
- package/dist/cjs/tr-7fc10d5c.js +63 -0
- package/dist/cjs/uk-2f738a79.js +101 -0
- package/dist/cjs/utils-58d8bf15.js +305 -0
- package/dist/cjs/utils-8d6c0881.js +216 -0
- package/dist/cjs/vi-668b169e.js +67 -0
- package/dist/cjs/zh-cn-800db98e.js +91 -0
- package/dist/cjs/zh-hk-b1632838.js +68 -0
- package/dist/cjs/zh-tw-5ef701f8.js +89 -0
- package/dist/collection/collection-manifest.json +4 -0
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +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.js +1 -1
- package/dist/collection/components/action-group/resources.js +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.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/block-section.js +1 -1
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +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.js +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.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.js +1 -1
- package/dist/collection/components/color-picker-swatch/resources.js +1 -1
- package/dist/collection/components/combobox/combobox.js +4 -3
- package/dist/collection/components/combobox/resources.js +1 -1
- package/dist/collection/components/combobox/utils.js +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.js +1 -1
- package/dist/collection/components/combobox-item-group/resources.js +1 -1
- package/dist/collection/components/date-picker/date-picker.js +1 -1
- package/dist/collection/components/date-picker/resources.js +1 -1
- package/dist/collection/components/date-picker/utils.js +1 -1
- package/dist/collection/components/date-picker-day/date-picker-day.js +1 -1
- package/dist/collection/components/date-picker-month/date-picker-month.js +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.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +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.js +1 -1
- package/dist/collection/components/fab/resources.js +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.js +1 -1
- package/dist/collection/components/flow/resources.js +1 -1
- package/dist/collection/components/flow-item/flow-item.js +1 -1
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/FloatingArrow.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/functional/XButton.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +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/assets/icon/addLayerService16.json +1 -0
- package/dist/collection/components/icon/assets/icon/addLayerService24.json +1 -0
- package/dist/collection/components/icon/assets/icon/addLayerService32.json +1 -0
- package/dist/collection/components/icon/assets/icon/circleStop16.json +1 -0
- package/dist/collection/components/icon/assets/icon/circleStop16F.json +1 -0
- package/dist/collection/components/icon/assets/icon/circleStop24.json +1 -0
- package/dist/collection/components/icon/assets/icon/circleStop24F.json +1 -0
- package/dist/collection/components/icon/assets/icon/circleStop32.json +1 -0
- package/dist/collection/components/icon/assets/icon/circleStop32F.json +1 -0
- package/dist/collection/components/icon/assets/icon/hideLayers16.json +1 -0
- package/dist/collection/components/icon/assets/icon/hideLayers24.json +1 -0
- package/dist/collection/components/icon/assets/icon/hideLayers32.json +1 -0
- package/dist/collection/components/icon/assets/icon/minusSquare16F.json +1 -1
- package/dist/collection/components/icon/assets/icon/minusSquare32F.json +1 -1
- package/dist/collection/components/icon/assets/icon/stopSquare16.json +1 -0
- package/dist/collection/components/icon/assets/icon/stopSquare16F.json +1 -0
- package/dist/collection/components/icon/assets/icon/stopSquare24.json +1 -0
- package/dist/collection/components/icon/assets/icon/stopSquare24F.json +1 -0
- package/dist/collection/components/icon/assets/icon/stopSquare32.json +1 -0
- package/dist/collection/components/icon/assets/icon/stopSquare32F.json +1 -0
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +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.js +5 -42
- 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.js +1 -1
- package/dist/collection/components/input-message/interfaces.js +1 -1
- package/dist/collection/components/input-number/input-number.js +1 -1
- package/dist/collection/components/input-number/resources.js +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.js +1 -1
- package/dist/collection/components/input-time-picker/resources.js +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.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +2 -2
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/menu/menu.js +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.js +1 -1
- package/dist/collection/components/meter/resources.js +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.js +1 -1
- package/dist/collection/components/navigation/resources.js +1 -1
- package/dist/collection/components/navigation-logo/navigation-logo.js +1 -1
- package/dist/collection/components/navigation-logo/resources.js +1 -1
- package/dist/collection/components/navigation-user/navigation-user.js +1 -1
- package/dist/collection/components/navigation-user/resources.js +1 -1
- package/dist/collection/components/notice/notice.js +1 -1
- package/dist/collection/components/notice/resources.js +1 -1
- package/dist/collection/components/option/option.js +1 -1
- package/dist/collection/components/option-group/option-group.js +1 -1
- package/dist/collection/components/pagination/pagination.js +1 -1
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/panel.js +1 -1
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +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.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.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.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.js +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.js +1 -1
- package/dist/collection/components/select/resources.js +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.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +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.js +1 -1
- package/dist/collection/components/split-button/resources.js +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.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +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.js +1 -1
- package/dist/collection/components/table/assets/table/t9n/index.d.ts +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_ar.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_bg.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_bs.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_ca.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_cs.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_da.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_de.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_el.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_en.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_es.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_et.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_fi.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_fr.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_he.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_hr.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_hu.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_id.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_it.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_ja.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_ko.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_lt.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_lv.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_nl.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_no.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_pl.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_pt-BR.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_pt-PT.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_ro.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_ru.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_sk.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_sl.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_sr.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_sv.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_th.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_tr.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_uk.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_vi.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_zh-CN.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_zh-HK.json +7 -0
- package/dist/collection/components/table/assets/table/t9n/messages_zh-TW.json +7 -0
- package/dist/collection/components/table/interfaces.js +1 -0
- package/dist/collection/components/table/resources.js +21 -0
- package/dist/collection/components/table/table.css +118 -0
- package/dist/collection/components/table/table.js +654 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/index.d.ts +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ar.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_bg.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_bs.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ca.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_cs.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_da.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_de.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_el.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_en.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_es.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_et.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_fi.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_fr.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_he.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_hr.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_hu.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_id.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_it.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ja.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ko.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_lt.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_lv.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_nl.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_no.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_pl.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_pt-BR.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_pt-PT.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ro.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_ru.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_sk.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_sl.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_sr.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_sv.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_th.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_tr.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_uk.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_vi.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_zh-CN.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_zh-HK.json +7 -0
- package/dist/collection/components/table-cell/assets/table-cell/t9n/messages_zh-TW.json +7 -0
- package/dist/collection/components/table-cell/resources.js +12 -0
- package/dist/collection/components/table-cell/table-cell.css +108 -0
- package/dist/collection/components/table-cell/table-cell.js +470 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/index.d.ts +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_ar.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_bg.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_bs.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_ca.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_cs.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_da.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_de.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_el.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_en.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_es.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_et.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_fi.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_fr.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_he.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_hr.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_hu.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_id.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_it.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_ja.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_ko.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_lt.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_lv.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_nl.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_no.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_pl.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_pt-BR.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_pt-PT.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_ro.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_ru.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_sk.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_sl.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_sr.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_sv.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_th.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_tr.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_uk.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_vi.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_zh-CN.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_zh-HK.json +8 -0
- package/dist/collection/components/table-header/assets/table-header/t9n/messages_zh-TW.json +8 -0
- package/dist/collection/components/table-header/resources.js +16 -0
- package/dist/collection/components/table-header/table-header.css +109 -0
- package/dist/collection/components/table-header/table-header.js +535 -0
- package/dist/collection/components/table-row/table-row.css +53 -0
- package/dist/collection/components/table-row/table-row.js +602 -0
- package/dist/collection/components/tabs/resources.js +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.js +1 -1
- package/dist/collection/components/tile/resources.js +1 -1
- package/dist/collection/components/tile/tile.js +1 -1
- package/dist/collection/components/tile-select/resources.js +1 -1
- package/dist/collection/components/tile-select/tile-select.js +1 -1
- package/dist/collection/components/tile-select-group/tile-select-group.js +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.js +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +1 -1
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +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.js +1 -1
- package/dist/collection/components/tooltip/utils.js +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.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.js +1 -1
- package/dist/collection/components/value-list-item/resources.js +1 -1
- package/dist/collection/components/value-list-item/value-list-item.js +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/collection/utils/array.js +1 -1
- package/dist/collection/utils/browser.js +1 -1
- package/dist/collection/utils/conditionalSlot.js +1 -1
- package/dist/collection/utils/config.js +1 -1
- package/dist/collection/utils/date.js +1 -1
- package/dist/collection/utils/dom.js +1 -1
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +1 -1
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/mode.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/sortableComponent.js +1 -1
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/FloatingArrow.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- 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 +1 -1
- 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-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +5 -25
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input-time-zone.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +2 -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 +2 -238
- 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 +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-table-cell.d.ts +11 -0
- package/dist/components/calcite-table-cell.js +11 -0
- package/dist/components/calcite-table-header.d.ts +11 -0
- package/dist/components/calcite-table-header.js +11 -0
- package/dist/components/calcite-table-row.d.ts +11 -0
- package/dist/components/calcite-table-row.js +281 -0
- package/dist/components/calcite-table.d.ts +11 -0
- package/dist/components/calcite-table.js +359 -0
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +1 -1
- package/dist/components/calcite-tree.js +1 -1
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +4 -3
- 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 +1 -1
- 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 +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/fr-ch.js +1 -1
- package/dist/components/fr.js +1 -1
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +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 +1 -1
- package/dist/components/id.js +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/input-number.js +1 -1
- package/dist/components/input-text.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +2 -2
- package/dist/components/it-ch.js +1 -1
- package/dist/components/it.js +1 -1
- package/dist/components/ja.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/ko.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +1 -1
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +1 -1
- package/dist/components/lt.js +1 -1
- package/dist/components/lv.js +1 -1
- package/dist/components/math.js +1 -1
- package/dist/components/menu.js +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 +244 -0
- 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 +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/sr.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/sv.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table-cell.js +172 -0
- package/dist/components/table-header.js +191 -0
- 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 +1 -1
- package/dist/components/utils3.js +1 -1
- package/dist/components/vi.js +1 -1
- package/dist/components/zh-cn.js +1 -1
- package/dist/components/zh-hk.js +1 -1
- package/dist/components/zh-tw.js +1 -1
- package/dist/esm/ExpandToggle-681aef6d.js +99 -0
- package/dist/esm/FloatingArrow-f8c85286.js +43 -0
- package/dist/esm/Heading-5b1b03e8.js +17 -0
- package/dist/esm/app-globals-49c73a91.js +57 -0
- package/dist/esm/ar-30a33ee8.js +96 -0
- package/dist/esm/array-f8bbe0a3.js +10 -0
- package/dist/esm/bg-fc94160e.js +77 -0
- package/dist/esm/browser-342337a9.js +16 -0
- package/dist/esm/bs-9bf92f4e.js +46 -0
- package/dist/esm/ca-9b2066c3.js +66 -0
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- 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 +12 -11
- package/dist/esm/calcite-alert.entry.js +12 -12
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +14 -13
- package/dist/esm/calcite-button.entry.js +14 -13
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +11 -10
- package/dist/esm/calcite-chip-group.entry.js +9 -8
- package/dist/esm/calcite-chip.entry.js +13 -12
- package/dist/esm/calcite-color-picker_3.entry.js +16 -15
- package/dist/esm/calcite-combobox_3.entry.js +22 -20
- package/dist/esm/calcite-date-picker_4.entry.js +14 -13
- package/dist/esm/calcite-dropdown_3.entry.js +13 -12
- package/dist/esm/calcite-fab.entry.js +8 -7
- package/dist/esm/calcite-filter.entry.js +14 -13
- package/dist/esm/calcite-flow-item.entry.js +13 -12
- package/dist/esm/calcite-flow.entry.js +4 -4
- package/dist/esm/calcite-graph_2.entry.js +14 -13
- package/dist/esm/calcite-handle.entry.js +10 -10
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +13 -12
- package/dist/esm/calcite-input-date-picker.entry.js +23 -41
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +14 -13
- package/dist/esm/calcite-input-text.entry.js +14 -13
- package/dist/esm/calcite-input-time-picker.calcite-time-picker-453c17c8.js +2819 -0
- package/dist/esm/calcite-input-time-picker_2.entry.js +17 -16
- package/dist/esm/calcite-input-time-zone.entry.js +14 -13
- package/dist/esm/calcite-input.entry.js +14 -13
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +8 -7
- package/dist/esm/calcite-list_3.entry.js +16 -15
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +10 -10
- package/dist/esm/calcite-meter.entry.js +10 -10
- package/dist/esm/calcite-modal.entry.js +13 -13
- package/dist/esm/calcite-navigation_3.entry.js +6 -6
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +11 -10
- package/dist/esm/calcite-pagination.entry.js +10 -10
- package/dist/esm/calcite-panel.entry.js +15 -14
- package/dist/esm/calcite-pick-list_3.entry.js +17 -16
- package/dist/esm/calcite-popover.entry.js +16 -16
- 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 -10
- package/dist/esm/calcite-rating.entry.js +14 -13
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +11 -10
- 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 -8
- package/dist/esm/calcite-split-button.entry.js +5 -4
- package/dist/esm/calcite-stack.entry.js +6 -6
- package/dist/esm/calcite-stepper_2.entry.js +11 -10
- package/dist/esm/calcite-switch.entry.js +11 -10
- package/dist/esm/calcite-tab_4.entry.js +11 -10
- package/dist/esm/calcite-table-cell_2.entry.js +277 -0
- package/dist/esm/calcite-table-row.entry.js +231 -0
- package/dist/esm/calcite-table.entry.js +295 -0
- package/dist/esm/calcite-text-area.entry.js +16 -15
- package/dist/esm/calcite-tile-select_2.entry.js +6 -5
- package/dist/esm/calcite-tile.entry.js +9 -8
- 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 +9 -8
- package/dist/esm/calcite-value-list_2.entry.js +17 -16
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/conditionalSlot-9639587a.js +55 -0
- package/dist/esm/cs-0aa7e0c2.js +142 -0
- package/dist/esm/da-5b78b390.js +61 -0
- package/dist/esm/de-at-0f58b1e0.js +85 -0
- package/dist/esm/de-c8a584f5.js +86 -0
- package/dist/esm/de-ch-7d578832.js +85 -0
- package/dist/esm/debounce-ee2506b2.js +487 -0
- package/dist/esm/dom-412dd260.js +1027 -0
- package/dist/esm/el-d08a477a.js +61 -0
- package/dist/esm/en-au-b652e863.js +61 -0
- package/dist/esm/en-ca-043dd95c.js +60 -0
- package/dist/esm/en-gb-6609ba7d.js +64 -0
- package/dist/esm/es-0b6c198d.js +61 -0
- package/dist/esm/es-mx-5f55d85b.js +60 -0
- package/dist/esm/et-8e9b448e.js +87 -0
- package/dist/esm/fi-9fca64de.js +110 -0
- package/dist/esm/filter-1881740b.js +758 -0
- package/dist/esm/floating-ui-43e4f414.js +1875 -0
- package/dist/esm/focusTrapComponent-b796f196.js +994 -0
- package/dist/esm/form-6f86424f.js +275 -0
- package/dist/esm/fr-be6a5993.js +63 -0
- package/dist/esm/fr-ch-dcbb8195.js +61 -0
- package/dist/esm/guid-0490f9f0.js +19 -0
- package/dist/esm/he-4d374a2f.js +100 -0
- package/dist/esm/hi-896a033c.js +60 -0
- package/dist/esm/hr-163b0c9e.js +75 -0
- package/dist/esm/hu-68f7f7bb.js +83 -0
- package/dist/esm/id-a7ecd61f.js +61 -0
- package/dist/esm/index-dafb95bd.js +2292 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/interactive-6bcbd567.js +138 -0
- package/dist/esm/it-2c13dace.js +61 -0
- package/dist/esm/it-ch-73d3f5d8.js +61 -0
- package/dist/esm/ja-07b1c56f.js +67 -0
- package/dist/esm/key-86423110.js +11 -0
- package/dist/esm/ko-455cb62f.js +67 -0
- package/dist/esm/label-00366d68.js +143 -0
- package/dist/esm/loadable-2ff657df.js +84 -0
- package/dist/esm/loader.js +6 -6
- package/dist/esm/locale-294b6440.js +582 -0
- package/dist/esm/lt-200c52ea.js +92 -0
- package/dist/esm/lv-507769ff.js +61 -0
- package/dist/esm/math-a2e82859.js +49 -0
- package/dist/esm/mk-921cb268.js +61 -0
- package/dist/esm/nb-0f5a8c92.js +62 -0
- package/dist/esm/nl-5f691c7e.js +62 -0
- package/dist/esm/observers-b898b95d.js +46 -0
- package/dist/esm/openCloseComponent-d1a940bc.js +82 -0
- package/dist/esm/pl-5e211b79.js +109 -0
- package/dist/esm/pt-39ca3f07.js +62 -0
- package/dist/esm/pt-br-a6313e65.js +60 -0
- package/dist/esm/resources-2f2498f1.js +41 -0
- package/dist/esm/resources-6147a442.js +18 -0
- package/dist/esm/resources-adfa9502.js +383 -0
- package/dist/esm/resources-bab7828c.js +21 -0
- package/dist/esm/resources-bfdb1d14.js +23 -0
- package/dist/esm/resources-cfa3feb8.js +15 -0
- package/dist/esm/resources-ec927aad.js +17 -0
- package/dist/esm/ro-ded4537b.js +61 -0
- package/dist/esm/ru-bf65d5e7.js +121 -0
- package/dist/esm/sk-50ac8bd3.js +143 -0
- package/dist/esm/sl-f0413b4c.js +61 -0
- package/dist/esm/sortableComponent-bf052fa2.js +3104 -0
- package/dist/esm/sr-015fca6d.js +96 -0
- package/dist/esm/sv-b4b7fd0a.js +66 -0
- package/dist/esm/t9n-493993f8.js +90 -0
- package/dist/esm/th-053e9044.js +60 -0
- package/dist/esm/throttle-ff32f2ff.js +73 -0
- package/dist/esm/tr-432b0387.js +61 -0
- package/dist/esm/uk-be1f9b1c.js +99 -0
- package/dist/esm/utils-9bdf375c.js +287 -0
- package/dist/esm/utils-d42b0a00.js +198 -0
- package/dist/esm/vi-1b94de79.js +65 -0
- package/dist/esm/zh-cn-871bb0d0.js +89 -0
- package/dist/esm/zh-hk-dc1d08f4.js +66 -0
- package/dist/esm/zh-tw-9f7e668b.js +87 -0
- package/dist/extras/docs-json.json +839 -21
- package/dist/extras/translations-json.json +1 -1
- package/dist/extras/vscode-data.json +236 -4
- 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/input-date-picker/input-date-picker.d.ts +0 -4
- package/dist/types/components/table/assets/table/t9n/index.d.ts +7 -0
- package/dist/types/components/table/interfaces.d.ts +10 -0
- package/dist/types/components/table/resources.d.ts +16 -0
- package/dist/types/components/table/table.d.ts +95 -0
- package/dist/types/components/table-cell/assets/table-cell/t9n/index.d.ts +7 -0
- package/dist/types/components/table-cell/resources.d.ts +7 -0
- package/dist/types/components/table-cell/table-cell.d.ts +69 -0
- package/dist/types/components/table-header/assets/table-header/t9n/index.d.ts +8 -0
- package/dist/types/components/table-header/resources.d.ts +11 -0
- package/dist/types/components/table-header/table-header.d.ts +65 -0
- package/dist/types/components/table-row/table-row.d.ts +65 -0
- package/dist/types/components.d.ts +324 -8
- package/dist/types/preact.d.ts +15 -0
- package/hydrate/index.js +1386 -524
- package/package.json +3 -3
- package/dist/calcite/p-007c3ec3.js +0 -6
- package/dist/calcite/p-00bb7644.js +0 -6
- package/dist/calcite/p-02a7e1df.entry.js +0 -6
- package/dist/calcite/p-02befd2f.js +0 -6
- package/dist/calcite/p-037bb301.js +0 -6
- package/dist/calcite/p-0946b370.entry.js +0 -6
- package/dist/calcite/p-0997cdd3.entry.js +0 -6
- package/dist/calcite/p-0feaada4.js +0 -6
- package/dist/calcite/p-14448051.js +0 -6
- package/dist/calcite/p-1bb8af88.js +0 -6
- package/dist/calcite/p-1c29face.entry.js +0 -6
- package/dist/calcite/p-1dcbf1c3.js +0 -6
- package/dist/calcite/p-1eb219e7.entry.js +0 -6
- package/dist/calcite/p-1fde838a.js +0 -6
- package/dist/calcite/p-203a989f.entry.js +0 -6
- package/dist/calcite/p-20fa2a62.entry.js +0 -6
- package/dist/calcite/p-2248e0cc.js +0 -6
- package/dist/calcite/p-22f06ceb.entry.js +0 -6
- package/dist/calcite/p-231b2e94.entry.js +0 -6
- package/dist/calcite/p-23d2cf19.js +0 -6
- package/dist/calcite/p-25024b64.entry.js +0 -6
- package/dist/calcite/p-2d640ee8.entry.js +0 -6
- package/dist/calcite/p-2dff2c48.entry.js +0 -6
- package/dist/calcite/p-2f8763d0.js +0 -6
- package/dist/calcite/p-3337b1c6.entry.js +0 -6
- package/dist/calcite/p-335fba09.entry.js +0 -6
- package/dist/calcite/p-3754cb6f.entry.js +0 -6
- package/dist/calcite/p-3ce9a124.js +0 -6
- package/dist/calcite/p-3e206c37.js +0 -6
- package/dist/calcite/p-40023104.entry.js +0 -6
- package/dist/calcite/p-40782cfa.js +0 -6
- package/dist/calcite/p-410e57db.entry.js +0 -6
- package/dist/calcite/p-4396cd14.js +0 -6
- package/dist/calcite/p-4403a799.js +0 -6
- package/dist/calcite/p-4556194b.entry.js +0 -6
- package/dist/calcite/p-461a667a.js +0 -6
- package/dist/calcite/p-46c2fbc6.js +0 -6
- package/dist/calcite/p-47b3ff18.js +0 -6
- package/dist/calcite/p-4824f592.js +0 -6
- package/dist/calcite/p-48b91d20.js +0 -6
- package/dist/calcite/p-492d3cb1.js +0 -6
- package/dist/calcite/p-4a651031.js +0 -6
- package/dist/calcite/p-50b644ca.js +0 -6
- package/dist/calcite/p-50ba6845.js +0 -6
- package/dist/calcite/p-52164b32.entry.js +0 -6
- package/dist/calcite/p-52e9b64d.entry.js +0 -6
- package/dist/calcite/p-532ae163.js +0 -6
- package/dist/calcite/p-53584baa.entry.js +0 -6
- package/dist/calcite/p-542c5850.js +0 -6
- package/dist/calcite/p-550270ae.entry.js +0 -6
- package/dist/calcite/p-5551f995.entry.js +0 -6
- package/dist/calcite/p-55758a37.entry.js +0 -6
- package/dist/calcite/p-5599adcf.entry.js +0 -6
- package/dist/calcite/p-57e9aa34.js +0 -6
- package/dist/calcite/p-5a01f218.entry.js +0 -6
- package/dist/calcite/p-5bd55830.js +0 -6
- package/dist/calcite/p-5d0dcbfb.entry.js +0 -6
- package/dist/calcite/p-5ee875b7.entry.js +0 -6
- package/dist/calcite/p-6193daa1.entry.js +0 -6
- package/dist/calcite/p-65fd2d0e.js +0 -6
- package/dist/calcite/p-6745d314.entry.js +0 -6
- package/dist/calcite/p-692ab67e.js +0 -6
- package/dist/calcite/p-698670ad.js +0 -6
- package/dist/calcite/p-6a63cc88.js +0 -6
- package/dist/calcite/p-6af2f408.js +0 -6
- package/dist/calcite/p-6b236272.entry.js +0 -6
- package/dist/calcite/p-70ef9cef.js +0 -6
- package/dist/calcite/p-74f54959.js +0 -6
- package/dist/calcite/p-757310e5.js +0 -6
- package/dist/calcite/p-7607b56c.js +0 -6
- package/dist/calcite/p-76baef68.entry.js +0 -6
- package/dist/calcite/p-7b5dda7e.js +0 -6
- package/dist/calcite/p-7d54fa75.entry.js +0 -6
- package/dist/calcite/p-805935d9.entry.js +0 -6
- package/dist/calcite/p-806469a1.js +0 -6
- package/dist/calcite/p-855d9ec9.js +0 -6
- package/dist/calcite/p-85f91ad4.js +0 -6
- package/dist/calcite/p-86b2f97a.js +0 -6
- package/dist/calcite/p-87a75e12.js +0 -6
- package/dist/calcite/p-887fdd02.entry.js +0 -6
- package/dist/calcite/p-8ab93bd4.js +0 -7
- package/dist/calcite/p-8d6122ad.js +0 -6
- package/dist/calcite/p-93f6847c.js +0 -6
- package/dist/calcite/p-972d3215.js +0 -6
- package/dist/calcite/p-97cfd319.js +0 -6
- package/dist/calcite/p-9968b9e0.entry.js +0 -6
- package/dist/calcite/p-9b9512fd.js +0 -6
- package/dist/calcite/p-9cbf6fd2.js +0 -6
- package/dist/calcite/p-9d56cabe.js +0 -6
- package/dist/calcite/p-9f498574.entry.js +0 -6
- package/dist/calcite/p-9fd7d685.js +0 -6
- package/dist/calcite/p-9ffeb6a3.js +0 -6
- package/dist/calcite/p-a15b1706.entry.js +0 -6
- package/dist/calcite/p-a54d9c04.js +0 -6
- package/dist/calcite/p-a71ef708.js +0 -6
- package/dist/calcite/p-a7cff8c6.js +0 -6
- package/dist/calcite/p-a9dd0db4.js +0 -6
- package/dist/calcite/p-aa759d1c.entry.js +0 -6
- package/dist/calcite/p-ab4b95ff.entry.js +0 -6
- package/dist/calcite/p-afcc1e3d.js +0 -12
- package/dist/calcite/p-afe859a6.js +0 -6
- package/dist/calcite/p-b2d05a82.entry.js +0 -6
- package/dist/calcite/p-b47de8ae.entry.js +0 -6
- package/dist/calcite/p-b58bc312.js +0 -6
- package/dist/calcite/p-b5bffae9.entry.js +0 -6
- package/dist/calcite/p-b616b875.entry.js +0 -6
- package/dist/calcite/p-b685ccab.js +0 -6
- package/dist/calcite/p-b744990f.entry.js +0 -6
- package/dist/calcite/p-b8f33088.entry.js +0 -6
- package/dist/calcite/p-bbb9ac9b.js +0 -6
- package/dist/calcite/p-bbdbbb67.entry.js +0 -6
- package/dist/calcite/p-bdb87f58.js +0 -6
- package/dist/calcite/p-bfe56cc8.entry.js +0 -6
- package/dist/calcite/p-c05ae16f.entry.js +0 -6
- package/dist/calcite/p-c28b156e.js +0 -6
- package/dist/calcite/p-c3616431.js +0 -6
- package/dist/calcite/p-c3b313f4.entry.js +0 -6
- package/dist/calcite/p-c48fdac2.entry.js +0 -6
- package/dist/calcite/p-c6370aa4.js +0 -11
- package/dist/calcite/p-c86acf98.js +0 -6
- package/dist/calcite/p-cad50699.js +0 -6
- package/dist/calcite/p-cf043538.entry.js +0 -6
- package/dist/calcite/p-cf1ad716.entry.js +0 -6
- package/dist/calcite/p-cf7d83c3.entry.js +0 -6
- package/dist/calcite/p-d2215fda.entry.js +0 -6
- package/dist/calcite/p-d35d0dbc.entry.js +0 -6
- package/dist/calcite/p-d62a227a.entry.js +0 -6
- package/dist/calcite/p-d9008462.js +0 -6
- package/dist/calcite/p-db3143e0.entry.js +0 -6
- package/dist/calcite/p-dcd6faab.entry.js +0 -6
- package/dist/calcite/p-dd3642e3.js +0 -6
- package/dist/calcite/p-de3fb84c.js +0 -6
- package/dist/calcite/p-decb6e2c.js +0 -10
- package/dist/calcite/p-ded88271.js +0 -6
- package/dist/calcite/p-df9ac2d9.entry.js +0 -6
- package/dist/calcite/p-dfd6e562.entry.js +0 -6
- package/dist/calcite/p-e256428c.entry.js +0 -6
- package/dist/calcite/p-e28ea658.entry.js +0 -6
- package/dist/calcite/p-e3c8191d.js +0 -6
- package/dist/calcite/p-e4325383.js +0 -6
- package/dist/calcite/p-e5b798f8.entry.js +0 -6
- package/dist/calcite/p-e6662241.js +0 -6
- package/dist/calcite/p-ea40c3d6.js +0 -6
- package/dist/calcite/p-ebd830cf.entry.js +0 -6
- package/dist/calcite/p-ed665e9a.entry.js +0 -6
- package/dist/calcite/p-f136f8e8.entry.js +0 -6
- package/dist/calcite/p-f1ac269c.js +0 -6
- package/dist/calcite/p-f366c30e.js +0 -6
- package/dist/calcite/p-f53b58f2.js +0 -6
- package/dist/calcite/p-fe1a08a8.entry.js +0 -6
- package/dist/calcite/p-fea4fd80.js +0 -6
- package/dist/calcite/p-ff0b8e2c.js +0 -6
- package/dist/cjs/ExpandToggle-a7dbbc1a.js +0 -107
- package/dist/cjs/FloatingArrow-eadd8494.js +0 -45
- package/dist/cjs/Heading-b5ca981d.js +0 -20
- package/dist/cjs/app-globals-55b43e79.js +0 -59
- package/dist/cjs/ar-676d4661.js +0 -97
- package/dist/cjs/array-0eebf608.js +0 -12
- package/dist/cjs/bg-bcd768fb.js +0 -78
- package/dist/cjs/bs-68506139.js +0 -47
- package/dist/cjs/ca-d65441a8.js +0 -67
- package/dist/cjs/calcite-input-time-picker.calcite-time-picker-74f7d1fd.js +0 -2823
- package/dist/cjs/conditionalSlot-a5786c5c.js +0 -58
- package/dist/cjs/cs-97a7bb1c.js +0 -143
- package/dist/cjs/da-f3851d5c.js +0 -62
- package/dist/cjs/de-at-21f55bee.js +0 -86
- package/dist/cjs/de-ch-e8ea7000.js +0 -86
- package/dist/cjs/de-f231cdf7.js +0 -87
- package/dist/cjs/debounce-b2f36905.js +0 -496
- package/dist/cjs/dom-e7bd4cb7.js +0 -1056
- package/dist/cjs/el-e739883d.js +0 -62
- package/dist/cjs/en-au-e2a5821f.js +0 -62
- package/dist/cjs/en-ca-a2c7fbb8.js +0 -61
- package/dist/cjs/en-gb-26689f73.js +0 -65
- package/dist/cjs/es-7b551a15.js +0 -62
- package/dist/cjs/es-mx-bf466cd5.js +0 -61
- package/dist/cjs/et-c2bdaca6.js +0 -88
- package/dist/cjs/fi-ab63ec68.js +0 -111
- package/dist/cjs/filter-92dc3c13.js +0 -760
- package/dist/cjs/floating-ui-96140b01.js +0 -1883
- package/dist/cjs/focusTrapComponent-06ac2782.js +0 -999
- package/dist/cjs/form-edb316d0.js +0 -283
- package/dist/cjs/fr-ch-65bf0bbb.js +0 -62
- package/dist/cjs/fr-e67b1ee6.js +0 -64
- package/dist/cjs/guid-644057a6.js +0 -21
- package/dist/cjs/he-1584ece4.js +0 -101
- package/dist/cjs/hi-fe82983d.js +0 -61
- package/dist/cjs/hr-6c423352.js +0 -76
- package/dist/cjs/hu-3495e4a4.js +0 -84
- package/dist/cjs/id-d09c449b.js +0 -62
- package/dist/cjs/index-ad2cf870.js +0 -2315
- package/dist/cjs/interactive-1f1c19e2.js +0 -150
- package/dist/cjs/it-c2e6d7b9.js +0 -62
- package/dist/cjs/it-ch-3c094987.js +0 -62
- package/dist/cjs/ja-9a01b2a4.js +0 -68
- package/dist/cjs/key-9fe64006.js +0 -14
- package/dist/cjs/ko-f86ea633.js +0 -68
- package/dist/cjs/label-dff4ea5b.js +0 -149
- package/dist/cjs/loadable-1bb377f1.js +0 -89
- package/dist/cjs/locale-626aa262.js +0 -594
- package/dist/cjs/lt-3addcf3e.js +0 -93
- package/dist/cjs/lv-baa9fb0c.js +0 -62
- package/dist/cjs/math-adfdb68b.js +0 -55
- package/dist/cjs/mk-d76486b4.js +0 -62
- package/dist/cjs/nb-cb5485b4.js +0 -63
- package/dist/cjs/nl-ff234132.js +0 -63
- package/dist/cjs/observers-da576c60.js +0 -48
- package/dist/cjs/openCloseComponent-f4deda11.js +0 -84
- package/dist/cjs/pl-d9d3b37a.js +0 -110
- package/dist/cjs/pt-4cf96854.js +0 -63
- package/dist/cjs/pt-br-8e687141.js +0 -61
- package/dist/cjs/resources-3516b562.js +0 -410
- package/dist/cjs/resources-37aff98c.js +0 -22
- package/dist/cjs/resources-3a53ed25.js +0 -45
- package/dist/cjs/resources-65147bd4.js +0 -27
- package/dist/cjs/resources-77406b7a.js +0 -21
- package/dist/cjs/resources-7a384d48.js +0 -15
- package/dist/cjs/resources-90190440.js +0 -24
- package/dist/cjs/ro-c97f9408.js +0 -62
- package/dist/cjs/ru-0b476a0c.js +0 -122
- package/dist/cjs/sk-eba54730.js +0 -144
- package/dist/cjs/sl-b93fe9d8.js +0 -62
- package/dist/cjs/sortableComponent-77a33ace.js +0 -3107
- package/dist/cjs/sr-4f17ba65.js +0 -97
- package/dist/cjs/sv-27e664de.js +0 -67
- package/dist/cjs/t9n-e16d3797.js +0 -95
- package/dist/cjs/th-dada71c1.js +0 -61
- package/dist/cjs/throttle-16e8666d.js +0 -75
- package/dist/cjs/tr-6916ed57.js +0 -62
- package/dist/cjs/uk-046465a6.js +0 -100
- package/dist/cjs/utils-9861df25.js +0 -305
- package/dist/cjs/utils-f13ba596.js +0 -216
- package/dist/cjs/vi-621da23b.js +0 -66
- package/dist/cjs/zh-cn-7ceeda57.js +0 -90
- package/dist/cjs/zh-hk-68ad0128.js +0 -67
- package/dist/cjs/zh-tw-f47cdecc.js +0 -88
- package/dist/esm/ExpandToggle-bf0f87aa.js +0 -99
- package/dist/esm/FloatingArrow-bb85386c.js +0 -43
- package/dist/esm/Heading-fcdd4ccf.js +0 -17
- package/dist/esm/app-globals-b6666a16.js +0 -57
- package/dist/esm/ar-5357c717.js +0 -95
- package/dist/esm/array-ccfcdd0f.js +0 -10
- package/dist/esm/bg-6a6f5adc.js +0 -76
- package/dist/esm/bs-9058dc82.js +0 -45
- package/dist/esm/ca-383aa3fa.js +0 -65
- package/dist/esm/calcite-input-time-picker.calcite-time-picker-a1e1a130.js +0 -2819
- package/dist/esm/conditionalSlot-a632bc93.js +0 -55
- package/dist/esm/cs-62e56a64.js +0 -141
- package/dist/esm/da-96d86789.js +0 -60
- package/dist/esm/de-a3370610.js +0 -85
- package/dist/esm/de-at-52ac9fe5.js +0 -84
- package/dist/esm/de-ch-5796fdb4.js +0 -84
- package/dist/esm/debounce-c84d411d.js +0 -487
- package/dist/esm/dom-3294f067.js +0 -1027
- package/dist/esm/el-fa9c30f1.js +0 -60
- package/dist/esm/en-au-c9ebfa80.js +0 -60
- package/dist/esm/en-ca-4d4dc66c.js +0 -59
- package/dist/esm/en-gb-60a9a498.js +0 -63
- package/dist/esm/es-68df2022.js +0 -60
- package/dist/esm/es-mx-0974ad94.js +0 -59
- package/dist/esm/et-ab114a16.js +0 -86
- package/dist/esm/fi-fb462cf0.js +0 -109
- package/dist/esm/filter-c5e813c2.js +0 -758
- package/dist/esm/floating-ui-af58437e.js +0 -1875
- package/dist/esm/focusTrapComponent-2500e814.js +0 -994
- package/dist/esm/form-99051e7d.js +0 -275
- package/dist/esm/fr-77e29560.js +0 -62
- package/dist/esm/fr-ch-6378c2a1.js +0 -60
- package/dist/esm/guid-462aba50.js +0 -19
- package/dist/esm/he-a037c4bf.js +0 -99
- package/dist/esm/hi-8d5cbee5.js +0 -59
- package/dist/esm/hr-f739783e.js +0 -74
- package/dist/esm/hu-2af082a1.js +0 -82
- package/dist/esm/id-4a040b69.js +0 -60
- package/dist/esm/index-2220b578.js +0 -2280
- package/dist/esm/interactive-917baaab.js +0 -146
- package/dist/esm/it-ch-1134f90d.js +0 -60
- package/dist/esm/it-f4cc27ce.js +0 -60
- package/dist/esm/ja-a557bde1.js +0 -66
- package/dist/esm/key-0a9a7c11.js +0 -11
- package/dist/esm/ko-8e6ca8b8.js +0 -66
- package/dist/esm/label-d23303da.js +0 -143
- package/dist/esm/loadable-a506fce5.js +0 -84
- package/dist/esm/locale-0521067c.js +0 -582
- package/dist/esm/lt-7bd686f3.js +0 -91
- package/dist/esm/lv-88258bdd.js +0 -60
- package/dist/esm/math-54e57a6d.js +0 -49
- package/dist/esm/mk-9fb1eceb.js +0 -60
- package/dist/esm/nb-621a3850.js +0 -61
- package/dist/esm/nl-ec3d1afc.js +0 -61
- package/dist/esm/observers-f954756c.js +0 -46
- package/dist/esm/openCloseComponent-b246f9ff.js +0 -82
- package/dist/esm/pl-a8793fc2.js +0 -108
- package/dist/esm/pt-br-fff4bdda.js +0 -59
- package/dist/esm/pt-c2639b18.js +0 -61
- package/dist/esm/resources-069ce391.js +0 -17
- package/dist/esm/resources-12c5581f.js +0 -41
- package/dist/esm/resources-3049fc4f.js +0 -383
- package/dist/esm/resources-808ed162.js +0 -15
- package/dist/esm/resources-c719bd2c.js +0 -18
- package/dist/esm/resources-d4e19430.js +0 -21
- package/dist/esm/resources-df7e2247.js +0 -23
- package/dist/esm/ro-ccf3ed16.js +0 -60
- package/dist/esm/ru-02edbf33.js +0 -120
- package/dist/esm/sk-9ddefee7.js +0 -142
- package/dist/esm/sl-5b5b18ec.js +0 -60
- package/dist/esm/sortableComponent-8c3c954d.js +0 -3104
- package/dist/esm/sr-786e95f5.js +0 -95
- package/dist/esm/sv-3328887c.js +0 -65
- package/dist/esm/t9n-d51e8c70.js +0 -90
- package/dist/esm/th-a5ef18dc.js +0 -59
- package/dist/esm/throttle-f07a0c1a.js +0 -73
- package/dist/esm/tr-0023808e.js +0 -60
- package/dist/esm/uk-c6bc2eda.js +0 -98
- package/dist/esm/utils-5090842e.js +0 -198
- package/dist/esm/utils-d9cd488f.js +0 -287
- package/dist/esm/vi-1db432eb.js +0 -64
- package/dist/esm/zh-cn-9f94c010.js +0 -88
- package/dist/esm/zh-hk-e521cb48.js +0 -65
- package/dist/esm/zh-tw-67f6ee11.js +0 -86
package/hydrate/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
4
|
-
* v1.7.0-next.
|
|
4
|
+
* v1.7.0-next.17
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -7018,11 +7018,11 @@ function isBefore(a, b) {
|
|
|
7018
7018
|
return children.indexOf(a) < children.indexOf(b);
|
|
7019
7019
|
}
|
|
7020
7020
|
|
|
7021
|
-
const SLOTS$
|
|
7021
|
+
const SLOTS$z = {
|
|
7022
7022
|
actionsStart: "actions-start",
|
|
7023
7023
|
actionsEnd: "actions-end",
|
|
7024
7024
|
};
|
|
7025
|
-
const CSS$
|
|
7025
|
+
const CSS$1b = {
|
|
7026
7026
|
icon: "icon",
|
|
7027
7027
|
header: "header",
|
|
7028
7028
|
headerContent: "header-content",
|
|
@@ -7086,28 +7086,28 @@ class AccordionItem {
|
|
|
7086
7086
|
// --------------------------------------------------------------------------
|
|
7087
7087
|
renderActionsStart() {
|
|
7088
7088
|
const { el } = this;
|
|
7089
|
-
return getSlotted(el, SLOTS$
|
|
7089
|
+
return getSlotted(el, SLOTS$z.actionsStart) ? (hAsync("div", { class: CSS$1b.actionsStart }, hAsync("slot", { name: SLOTS$z.actionsStart }))) : null;
|
|
7090
7090
|
}
|
|
7091
7091
|
renderActionsEnd() {
|
|
7092
7092
|
const { el } = this;
|
|
7093
|
-
return getSlotted(el, SLOTS$
|
|
7093
|
+
return getSlotted(el, SLOTS$z.actionsEnd) ? (hAsync("div", { class: CSS$1b.actionsEnd }, hAsync("slot", { name: SLOTS$z.actionsEnd }))) : null;
|
|
7094
7094
|
}
|
|
7095
7095
|
render() {
|
|
7096
7096
|
const { iconFlipRtl } = this;
|
|
7097
7097
|
const dir = getElementDir(this.el);
|
|
7098
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
7099
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
7098
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$1b.iconStart, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "start", icon: this.iconStart, key: "icon-start", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
7099
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$1b.iconEnd, flipRtl: iconFlipRtl === "both" || iconFlipRtl === "end", icon: this.iconEnd, key: "icon-end", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
7100
7100
|
const { description } = this;
|
|
7101
7101
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
7102
7102
|
[`icon-position--${this.iconPosition}`]: true,
|
|
7103
7103
|
[`icon-type--${this.iconType}`]: true,
|
|
7104
|
-
} }, hAsync("div", { class: { [CSS$
|
|
7104
|
+
} }, hAsync("div", { class: { [CSS$1b.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-expanded": toAriaBoolean(this.expanded), class: CSS$1b.headerContent, onClick: this.itemHeaderClickHandler, role: "button", tabindex: "0" }, hAsync("div", { class: CSS$1b.headerContainer }, iconStartEl, hAsync("div", { class: CSS$1b.headerText }, hAsync("span", { class: CSS$1b.heading }, this.heading), description ? hAsync("span", { class: CSS$1b.description }, description) : null), iconEndEl), hAsync("calcite-icon", { class: CSS$1b.expandIcon, icon: this.iconType === "chevron"
|
|
7105
7105
|
? "chevronDown"
|
|
7106
7106
|
: this.iconType === "caret"
|
|
7107
7107
|
? "caretDown"
|
|
7108
7108
|
: this.expanded
|
|
7109
7109
|
? "minus"
|
|
7110
|
-
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$
|
|
7110
|
+
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("div", { class: CSS$1b.content }, hAsync("slot", null)))));
|
|
7111
7111
|
}
|
|
7112
7112
|
//--------------------------------------------------------------------------
|
|
7113
7113
|
//
|
|
@@ -8027,7 +8027,7 @@ function defaultOnMessagesChange() {
|
|
|
8027
8027
|
mergeMessages(this);
|
|
8028
8028
|
}
|
|
8029
8029
|
|
|
8030
|
-
const CSS$
|
|
8030
|
+
const CSS$1a = {
|
|
8031
8031
|
button: "button",
|
|
8032
8032
|
buttonTextVisible: "button--text-visible",
|
|
8033
8033
|
buttonCompact: "button--compact",
|
|
@@ -8038,7 +8038,7 @@ const CSS$17 = {
|
|
|
8038
8038
|
textContainer: "text-container",
|
|
8039
8039
|
textContainerVisible: "text-container--visible",
|
|
8040
8040
|
};
|
|
8041
|
-
const SLOTS$
|
|
8041
|
+
const SLOTS$y = {
|
|
8042
8042
|
tooltip: "tooltip",
|
|
8043
8043
|
};
|
|
8044
8044
|
|
|
@@ -8138,14 +8138,14 @@ class Action {
|
|
|
8138
8138
|
renderTextContainer() {
|
|
8139
8139
|
const { text, textEnabled } = this;
|
|
8140
8140
|
const textContainerClasses = {
|
|
8141
|
-
[CSS$
|
|
8142
|
-
[CSS$
|
|
8141
|
+
[CSS$1a.textContainer]: true,
|
|
8142
|
+
[CSS$1a.textContainerVisible]: textEnabled,
|
|
8143
8143
|
};
|
|
8144
8144
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
8145
8145
|
}
|
|
8146
8146
|
renderIndicatorText() {
|
|
8147
8147
|
const { indicator, messages, indicatorId, buttonId } = this;
|
|
8148
|
-
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$
|
|
8148
|
+
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$1a.indicatorText, id: indicatorId, role: "region" }, indicator ? messages.indicator : null));
|
|
8149
8149
|
}
|
|
8150
8150
|
renderIconContainer() {
|
|
8151
8151
|
const { loading, icon, scale, el, iconFlipRtl } = this;
|
|
@@ -8156,22 +8156,22 @@ class Action {
|
|
|
8156
8156
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
8157
8157
|
const hasIconToDisplay = iconNode || el.children?.length;
|
|
8158
8158
|
const slotContainerNode = (hAsync("div", { class: {
|
|
8159
|
-
[CSS$
|
|
8160
|
-
[CSS$
|
|
8159
|
+
[CSS$1a.slotContainer]: true,
|
|
8160
|
+
[CSS$1a.slotContainerHidden]: loading,
|
|
8161
8161
|
} }, hAsync("slot", null)));
|
|
8162
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
8162
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$1a.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
8163
8163
|
}
|
|
8164
8164
|
render() {
|
|
8165
8165
|
const { active, compact, disabled, loading, textEnabled, label, text, indicator, indicatorId, buttonId, messages, } = this;
|
|
8166
8166
|
const ariaLabel = `${label || text}${indicator ? ` (${messages.indicator})` : ""}`;
|
|
8167
8167
|
const buttonClasses = {
|
|
8168
|
-
[CSS$
|
|
8169
|
-
[CSS$
|
|
8170
|
-
[CSS$
|
|
8168
|
+
[CSS$1a.button]: true,
|
|
8169
|
+
[CSS$1a.buttonTextVisible]: textEnabled,
|
|
8170
|
+
[CSS$1a.buttonCompact]: compact,
|
|
8171
8171
|
};
|
|
8172
8172
|
return (hAsync(Host, null, hAsync("button", { "aria-busy": toAriaBoolean(loading), "aria-controls": indicator ? indicatorId : null, "aria-disabled": toAriaBoolean(disabled), "aria-label": ariaLabel, "aria-pressed": toAriaBoolean(active), class: buttonClasses, disabled: disabled, id: buttonId,
|
|
8173
8173
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
8174
|
-
ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), hAsync("slot", { name: SLOTS$
|
|
8174
|
+
ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), hAsync("slot", { name: SLOTS$y.tooltip, onSlotchange: this.handleTooltipSlotChange }), this.renderIndicatorText()));
|
|
8175
8175
|
}
|
|
8176
8176
|
static get assetsDirs() { return ["assets"]; }
|
|
8177
8177
|
get el() { return getElement(this); }
|
|
@@ -9472,22 +9472,22 @@ function throttle$1(func, wait, options) {
|
|
|
9472
9472
|
});
|
|
9473
9473
|
}
|
|
9474
9474
|
|
|
9475
|
-
const SLOTS$
|
|
9475
|
+
const SLOTS$x = {
|
|
9476
9476
|
menuActions: "menu-actions",
|
|
9477
9477
|
menuTooltip: "menu-tooltip",
|
|
9478
9478
|
};
|
|
9479
9479
|
const ICONS$j = {
|
|
9480
9480
|
menu: "ellipsis",
|
|
9481
9481
|
};
|
|
9482
|
-
const CSS$
|
|
9482
|
+
const CSS$19 = {
|
|
9483
9483
|
container: "container",
|
|
9484
9484
|
};
|
|
9485
9485
|
|
|
9486
|
-
const CSS$
|
|
9486
|
+
const CSS$18 = {
|
|
9487
9487
|
menu: "menu",
|
|
9488
9488
|
defaultTrigger: "default-trigger",
|
|
9489
9489
|
};
|
|
9490
|
-
const SLOTS$
|
|
9490
|
+
const SLOTS$w = {
|
|
9491
9491
|
tooltip: "tooltip",
|
|
9492
9492
|
trigger: "trigger",
|
|
9493
9493
|
};
|
|
@@ -9514,7 +9514,7 @@ const getOverflowCount = ({ layout, actionCount, actionWidth, width, actionHeigh
|
|
|
9514
9514
|
return Math.max(actionCount - getMaxActionCount({ width, actionWidth, layout, height, actionHeight, groupCount }), 0);
|
|
9515
9515
|
};
|
|
9516
9516
|
const queryActions = (el) => {
|
|
9517
|
-
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$
|
|
9517
|
+
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$w.trigger : true);
|
|
9518
9518
|
};
|
|
9519
9519
|
const overflowActions = ({ actionGroups, expanded, overflowCount, }) => {
|
|
9520
9520
|
let needToSlotCount = overflowCount;
|
|
@@ -9522,7 +9522,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount, }) => {
|
|
|
9522
9522
|
let slottedWithinGroupCount = 0;
|
|
9523
9523
|
const groupActions = queryActions(group).reverse();
|
|
9524
9524
|
groupActions.forEach((groupAction) => {
|
|
9525
|
-
if (groupAction.slot === SLOTS$
|
|
9525
|
+
if (groupAction.slot === SLOTS$x.menuActions) {
|
|
9526
9526
|
groupAction.removeAttribute("slot");
|
|
9527
9527
|
groupAction.textEnabled = expanded;
|
|
9528
9528
|
}
|
|
@@ -9532,7 +9532,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount, }) => {
|
|
|
9532
9532
|
const unslottedActions = groupActions.filter((action) => !action.slot);
|
|
9533
9533
|
if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
|
|
9534
9534
|
groupAction.textEnabled = true;
|
|
9535
|
-
groupAction.setAttribute("slot", SLOTS$
|
|
9535
|
+
groupAction.setAttribute("slot", SLOTS$x.menuActions);
|
|
9536
9536
|
slottedWithinGroupCount++;
|
|
9537
9537
|
if (slottedWithinGroupCount > 1) {
|
|
9538
9538
|
needToSlotCount--;
|
|
@@ -9554,7 +9554,7 @@ function getCalcitePosition(position, el) {
|
|
|
9554
9554
|
}
|
|
9555
9555
|
function toggleChildActionText({ el, expanded, }) {
|
|
9556
9556
|
queryActions(el)
|
|
9557
|
-
.filter((el) => el.slot !== SLOTS$
|
|
9557
|
+
.filter((el) => el.slot !== SLOTS$x.menuActions)
|
|
9558
9558
|
.forEach((action) => (action.textEnabled = expanded));
|
|
9559
9559
|
el.querySelectorAll("calcite-action-group, calcite-action-menu").forEach((el) => (el.expanded = expanded));
|
|
9560
9560
|
}
|
|
@@ -9583,10 +9583,10 @@ const ExpandToggle = ({ expanded, expandText, collapseText, toggle, el, position
|
|
|
9583
9583
|
return actionNode;
|
|
9584
9584
|
};
|
|
9585
9585
|
|
|
9586
|
-
const CSS$
|
|
9586
|
+
const CSS$17 = {
|
|
9587
9587
|
actionGroupEnd: "action-group--end",
|
|
9588
9588
|
};
|
|
9589
|
-
const SLOTS$
|
|
9589
|
+
const SLOTS$v = {
|
|
9590
9590
|
actionsEnd: "actions-end",
|
|
9591
9591
|
bottomActions: "bottom-actions",
|
|
9592
9592
|
expandTooltip: "expand-tooltip",
|
|
@@ -9786,7 +9786,7 @@ class ActionBar {
|
|
|
9786
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,
|
|
9787
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)
|
|
9788
9788
|
ref: this.setExpandToggleRef })) : null;
|
|
9789
|
-
return (hAsync("calcite-action-group", { class: CSS$
|
|
9789
|
+
return (hAsync("calcite-action-group", { class: CSS$17.actionGroupEnd, label: actionsEndGroupLabel, hidden: this.expandDisabled && !(this.hasActionsEnd || this.hasBottomActions), 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));
|
|
9790
9790
|
}
|
|
9791
9791
|
render() {
|
|
9792
9792
|
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup()));
|
|
@@ -9911,10 +9911,10 @@ class ActionGroup {
|
|
|
9911
9911
|
// --------------------------------------------------------------------------
|
|
9912
9912
|
renderMenu() {
|
|
9913
9913
|
const { expanded, menuOpen, scale, layout, messages, overlayPositioning, hasMenuActions } = this;
|
|
9914
|
-
return (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], hidden: !hasMenuActions, label: messages.more, onCalciteActionMenuOpen: this.setMenuOpen, open: menuOpen, overlayPositioning: overlayPositioning, placement: layout === "horizontal" ? "bottom-start" : "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$j.menu, scale: scale, slot: SLOTS$
|
|
9914
|
+
return (hAsync("calcite-action-menu", { expanded: expanded, flipPlacements: ["left", "right"], hidden: !hasMenuActions, label: messages.more, onCalciteActionMenuOpen: this.setMenuOpen, open: menuOpen, overlayPositioning: overlayPositioning, placement: layout === "horizontal" ? "bottom-start" : "leading-start", scale: scale }, hAsync("calcite-action", { icon: ICONS$j.menu, scale: scale, slot: SLOTS$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 })));
|
|
9915
9915
|
}
|
|
9916
9916
|
render() {
|
|
9917
|
-
return (hAsync("div", { "aria-label": this.label, class: CSS$
|
|
9917
|
+
return (hAsync("div", { "aria-label": this.label, class: CSS$19.container, role: "group" }, hAsync("slot", null), this.renderMenu()));
|
|
9918
9918
|
}
|
|
9919
9919
|
static get delegatesFocus() { return true; }
|
|
9920
9920
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -10198,7 +10198,7 @@ class ActionMenu {
|
|
|
10198
10198
|
}
|
|
10199
10199
|
renderMenuButton() {
|
|
10200
10200
|
const { label, scale, expanded } = this;
|
|
10201
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$
|
|
10201
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$w.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$18.defaultTrigger, icon: ICONS$i.menu, scale: scale, text: label, textEnabled: expanded,
|
|
10202
10202
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10203
10203
|
ref: this.setDefaultMenuButtonEl })));
|
|
10204
10204
|
return menuButtonSlot;
|
|
@@ -10207,10 +10207,10 @@ class ActionMenu {
|
|
|
10207
10207
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements, } = this;
|
|
10208
10208
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
10209
10209
|
const activeDescendantId = activeAction?.id || null;
|
|
10210
|
-
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$
|
|
10210
|
+
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$18.menu, id: menuId, onClick: this.handleCalciteActionClick, role: "menu", tabIndex: -1 }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
10211
10211
|
}
|
|
10212
10212
|
render() {
|
|
10213
|
-
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$
|
|
10213
|
+
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$w.tooltip, onSlotchange: this.updateTooltip })));
|
|
10214
10214
|
}
|
|
10215
10215
|
isValidKey(key, supportedKeys) {
|
|
10216
10216
|
return !!supportedKeys.find((k) => k === key);
|
|
@@ -10243,11 +10243,11 @@ class ActionMenu {
|
|
|
10243
10243
|
}; }
|
|
10244
10244
|
}
|
|
10245
10245
|
|
|
10246
|
-
const CSS$
|
|
10246
|
+
const CSS$16 = {
|
|
10247
10247
|
actionGroupEnd: "action-group--end",
|
|
10248
10248
|
container: "container",
|
|
10249
10249
|
};
|
|
10250
|
-
const SLOTS$
|
|
10250
|
+
const SLOTS$u = {
|
|
10251
10251
|
expandTooltip: "expand-tooltip",
|
|
10252
10252
|
};
|
|
10253
10253
|
|
|
@@ -10368,10 +10368,10 @@ class ActionPad {
|
|
|
10368
10368
|
const expandToggleNode = !expandDisabled ? (hAsync(ExpandToggle, { collapseText: messages.collapse, el: el, expandText: messages.expand, expanded: expanded, position: position, scale: scale, toggle: toggleExpand, tooltip: this.expandTooltip,
|
|
10369
10369
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10370
10370
|
ref: this.setExpandToggleRef })) : null;
|
|
10371
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
10371
|
+
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$16.actionGroupEnd, label: actionsEndGroupLabel, layout: layout, scale: scale }, hAsync("slot", { name: SLOTS$u.expandTooltip, onSlotchange: this.handleTooltipSlotChange }), expandToggleNode)) : null;
|
|
10372
10372
|
}
|
|
10373
10373
|
render() {
|
|
10374
|
-
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$
|
|
10374
|
+
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$16.container }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup())));
|
|
10375
10375
|
}
|
|
10376
10376
|
static get delegatesFocus() { return true; }
|
|
10377
10377
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -10494,13 +10494,13 @@ const DURATIONS = {
|
|
|
10494
10494
|
medium: 10000,
|
|
10495
10495
|
fast: 6000,
|
|
10496
10496
|
};
|
|
10497
|
-
const SLOTS$
|
|
10497
|
+
const SLOTS$t = {
|
|
10498
10498
|
actionsEnd: "actions-end",
|
|
10499
10499
|
title: "title",
|
|
10500
10500
|
message: "message",
|
|
10501
10501
|
link: "link",
|
|
10502
10502
|
};
|
|
10503
|
-
const CSS$
|
|
10503
|
+
const CSS$15 = {
|
|
10504
10504
|
actionsEnd: "actions-end",
|
|
10505
10505
|
container: "container",
|
|
10506
10506
|
close: "alert-close",
|
|
@@ -10655,15 +10655,15 @@ class Alert {
|
|
|
10655
10655
|
const { open, autoClose, label, placement, queued, requestedIcon, iconFlipRtl } = this;
|
|
10656
10656
|
const role = autoClose ? "alert" : "alertdialog";
|
|
10657
10657
|
const hidden = !open;
|
|
10658
|
-
const slotNode = (hAsync("slot", { key: "actionsEndSlot", name: SLOTS$
|
|
10658
|
+
const slotNode = (hAsync("slot", { key: "actionsEndSlot", name: SLOTS$t.actionsEnd, onSlotchange: this.actionsEndSlotChangeHandler }));
|
|
10659
10659
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, hAsync("div", { class: {
|
|
10660
10660
|
container: true,
|
|
10661
10661
|
queued,
|
|
10662
10662
|
[placement]: true,
|
|
10663
|
-
[CSS$
|
|
10663
|
+
[CSS$15.slottedInShell]: this.slottedInShell,
|
|
10664
10664
|
}, onPointerEnter: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : null, onPointerLeave: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseLeave : null,
|
|
10665
10665
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10666
|
-
ref: this.setTransitionEl }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$
|
|
10666
|
+
ref: this.setTransitionEl }, requestedIcon ? (hAsync("div", { class: "alert-icon" }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: "alert-content" }, hAsync("slot", { name: SLOTS$t.title }), hAsync("slot", { name: SLOTS$t.message }), hAsync("slot", { name: SLOTS$t.link })), hAsync("div", { class: CSS$15.actionsEnd, hidden: !hasEndActions }, slotNode), this.queueLength > 1 ? queueCount : null, closeButton, open && !queued && autoClose ? hAsync("div", { class: "alert-dismiss-progress" }) : null)));
|
|
10667
10667
|
}
|
|
10668
10668
|
// when an alert is opened or closed, update queue and determine active alert
|
|
10669
10669
|
alertSync(event) {
|
|
@@ -11132,7 +11132,7 @@ const Heading = (props, children) => {
|
|
|
11132
11132
|
return hAsync(HeadingTag, { ...props }, children);
|
|
11133
11133
|
};
|
|
11134
11134
|
|
|
11135
|
-
const CSS$
|
|
11135
|
+
const CSS$14 = {
|
|
11136
11136
|
container: "container",
|
|
11137
11137
|
content: "content",
|
|
11138
11138
|
headerContainer: "header-container",
|
|
@@ -11150,7 +11150,7 @@ const CSS$11 = {
|
|
|
11150
11150
|
valid: "valid",
|
|
11151
11151
|
invalid: "invalid",
|
|
11152
11152
|
};
|
|
11153
|
-
const SLOTS$
|
|
11153
|
+
const SLOTS$s = {
|
|
11154
11154
|
icon: "icon",
|
|
11155
11155
|
control: "control",
|
|
11156
11156
|
headerMenuActions: "header-menu-actions",
|
|
@@ -11256,31 +11256,31 @@ class Block {
|
|
|
11256
11256
|
}
|
|
11257
11257
|
renderIcon() {
|
|
11258
11258
|
const { loading, messages, status } = this;
|
|
11259
|
-
const hasSlottedIcon = !!getSlotted(this.el, SLOTS$
|
|
11260
|
-
return loading ? (hAsync("div", { class: CSS$
|
|
11261
|
-
[CSS$
|
|
11262
|
-
[CSS$
|
|
11263
|
-
[CSS$
|
|
11264
|
-
}, icon: ICONS$g[status], scale: "s" }))) : hasSlottedIcon ? (hAsync("div", { class: CSS$
|
|
11259
|
+
const hasSlottedIcon = !!getSlotted(this.el, SLOTS$s.icon);
|
|
11260
|
+
return loading ? (hAsync("div", { class: CSS$14.icon, key: "loader" }, hAsync("calcite-loader", { inline: true, label: messages.loading }))) : !!status ? (hAsync("div", { class: CSS$14.icon, key: "status-icon" }, hAsync("calcite-icon", { class: {
|
|
11261
|
+
[CSS$14.statusIcon]: true,
|
|
11262
|
+
[CSS$14.valid]: status == "valid",
|
|
11263
|
+
[CSS$14.invalid]: status == "invalid",
|
|
11264
|
+
}, icon: ICONS$g[status], scale: "s" }))) : hasSlottedIcon ? (hAsync("div", { class: CSS$14.icon, key: "icon-slot" }, hAsync("slot", { key: "icon-slot", name: SLOTS$s.icon }))) : null;
|
|
11265
11265
|
}
|
|
11266
11266
|
renderTitle() {
|
|
11267
11267
|
const { heading, headingLevel, description } = this;
|
|
11268
|
-
return heading || description ? (hAsync("div", { class: CSS$
|
|
11268
|
+
return heading || description ? (hAsync("div", { class: CSS$14.title }, hAsync(Heading, { class: CSS$14.heading, level: headingLevel }, heading), description ? hAsync("div", { class: CSS$14.description }, description) : null)) : null;
|
|
11269
11269
|
}
|
|
11270
11270
|
render() {
|
|
11271
11271
|
const { collapsible, el, loading, open, messages } = this;
|
|
11272
11272
|
const toggleLabel = open ? messages.collapse : messages.expand;
|
|
11273
|
-
const headerContent = (hAsync("header", { class: CSS$
|
|
11274
|
-
const hasControl = !!getSlotted(el, SLOTS$
|
|
11275
|
-
const hasMenuActions = !!getSlotted(el, SLOTS$
|
|
11273
|
+
const headerContent = (hAsync("header", { class: CSS$14.header }, this.renderIcon(), this.renderTitle()));
|
|
11274
|
+
const hasControl = !!getSlotted(el, SLOTS$s.control);
|
|
11275
|
+
const hasMenuActions = !!getSlotted(el, SLOTS$s.headerMenuActions);
|
|
11276
11276
|
const collapseIcon = open ? ICONS$g.opened : ICONS$g.closed;
|
|
11277
11277
|
const { guid } = this;
|
|
11278
11278
|
const regionId = `${guid}-region`;
|
|
11279
11279
|
const buttonId = `${guid}-button`;
|
|
11280
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
11280
|
+
const headerNode = (hAsync("div", { class: CSS$14.headerContainer }, this.dragHandle ? hAsync("calcite-handle", null) : null, collapsible ? (hAsync("button", { "aria-controls": regionId, "aria-expanded": collapsible ? toAriaBoolean(open) : null, "aria-label": toggleLabel, class: CSS$14.toggle, id: buttonId, onClick: this.onHeaderClick, title: toggleLabel }, headerContent, !hasControl && !hasMenuActions ? (hAsync("calcite-icon", { "aria-hidden": "true", class: CSS$14.toggleIcon, icon: collapseIcon, scale: "s" })) : null)) : (headerContent), hasControl ? (hAsync("div", { class: CSS$14.controlContainer }, hAsync("slot", { name: SLOTS$s.control }))) : null, hasMenuActions ? (hAsync("calcite-action-menu", { label: messages.options }, hAsync("slot", { name: SLOTS$s.headerMenuActions }))) : null));
|
|
11281
11281
|
return (hAsync(Host, null, hAsync("article", { "aria-busy": toAriaBoolean(loading), class: {
|
|
11282
|
-
[CSS$
|
|
11283
|
-
} }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
11282
|
+
[CSS$14.container]: true,
|
|
11283
|
+
} }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$14.content, hidden: !open, id: regionId }, this.renderScrim()))));
|
|
11284
11284
|
}
|
|
11285
11285
|
static get assetsDirs() { return ["assets"]; }
|
|
11286
11286
|
get el() { return getElement(this); }
|
|
@@ -11314,7 +11314,7 @@ class Block {
|
|
|
11314
11314
|
}; }
|
|
11315
11315
|
}
|
|
11316
11316
|
|
|
11317
|
-
const CSS$
|
|
11317
|
+
const CSS$13 = {
|
|
11318
11318
|
content: "content",
|
|
11319
11319
|
invalid: "invalid",
|
|
11320
11320
|
toggle: "toggle",
|
|
@@ -11417,9 +11417,9 @@ class BlockSection {
|
|
|
11417
11417
|
const { status } = this;
|
|
11418
11418
|
const statusIcon = ICONS$f[status] ?? false;
|
|
11419
11419
|
const statusIconClasses = {
|
|
11420
|
-
[CSS$
|
|
11421
|
-
[CSS$
|
|
11422
|
-
[CSS$
|
|
11420
|
+
[CSS$13.statusIcon]: true,
|
|
11421
|
+
[CSS$13.valid]: status == "valid",
|
|
11422
|
+
[CSS$13.invalid]: status == "invalid",
|
|
11423
11423
|
};
|
|
11424
11424
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
11425
11425
|
}
|
|
@@ -11436,13 +11436,13 @@ class BlockSection {
|
|
|
11436
11436
|
const regionId = `${guid}-region`;
|
|
11437
11437
|
const buttonId = `${guid}-button`;
|
|
11438
11438
|
const headerNode = toggleDisplay === "switch" ? (hAsync("div", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
11439
|
-
[CSS$
|
|
11440
|
-
[CSS$
|
|
11441
|
-
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$
|
|
11442
|
-
[CSS$
|
|
11443
|
-
[CSS$
|
|
11444
|
-
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$
|
|
11445
|
-
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$
|
|
11439
|
+
[CSS$13.toggle]: true,
|
|
11440
|
+
[CSS$13.toggleSwitch]: true,
|
|
11441
|
+
}, id: buttonId, onClick: this.toggleSection, onKeyDown: this.handleHeaderKeyDown, tabIndex: 0, title: toggleLabel }, hAsync("div", { class: CSS$13.toggleSwitchContent }, hAsync("span", { class: CSS$13.toggleSwitchText }, text)), hAsync("calcite-switch", { checked: open, label: toggleLabel, scale: "s", tabIndex: -1 }), this.renderStatusIcon())) : (hAsync("button", { "aria-controls": regionId, "aria-label": toggleLabel, class: {
|
|
11442
|
+
[CSS$13.sectionHeader]: true,
|
|
11443
|
+
[CSS$13.toggle]: true,
|
|
11444
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$13.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
11445
|
+
return (hAsync(Host, null, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$13.content, hidden: !open, id: regionId }, hAsync("slot", null))));
|
|
11446
11446
|
}
|
|
11447
11447
|
static get assetsDirs() { return ["assets"]; }
|
|
11448
11448
|
get el() { return getElement(this); }
|
|
@@ -11872,7 +11872,7 @@ function onLabelDisconnected() {
|
|
|
11872
11872
|
document.addEventListener(labelConnectedEvent, boundOnLabelConnected);
|
|
11873
11873
|
}
|
|
11874
11874
|
|
|
11875
|
-
const CSS
|
|
11875
|
+
const CSS$12 = {
|
|
11876
11876
|
buttonLoader: "calcite-button--loader",
|
|
11877
11877
|
content: "content",
|
|
11878
11878
|
contentSlotted: "content--slotted",
|
|
@@ -12000,17 +12000,17 @@ class Button {
|
|
|
12000
12000
|
render() {
|
|
12001
12001
|
const childElType = this.href ? "a" : "button";
|
|
12002
12002
|
const Tag = childElType;
|
|
12003
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS
|
|
12003
|
+
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS$12.buttonLoader }, hAsync("calcite-loader", { class: this.loading ? CSS$12.loadingIn : CSS$12.loadingOut, inline: true, label: this.messages.loading, scale: this.scale === "l" ? "m" : "s" }))) : null;
|
|
12004
12004
|
const noStartEndIcons = !this.iconStart && !this.iconEnd;
|
|
12005
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS
|
|
12006
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS
|
|
12007
|
-
const contentEl = (hAsync("span", { class: CSS
|
|
12005
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$12.icon]: true, [CSS$12.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: this.scale === "l" ? "m" : "s" }));
|
|
12006
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$12.icon]: true, [CSS$12.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: this.scale === "l" ? "m" : "s" }));
|
|
12007
|
+
const contentEl = (hAsync("span", { class: CSS$12.content, ref: (el) => (this.contentEl = el) }, hAsync("slot", null)));
|
|
12008
12008
|
return (hAsync(Tag, { "aria-label": !this.loading ? getLabelText(this) : this.messages.loading, "aria-live": "polite", class: {
|
|
12009
|
-
[CSS
|
|
12010
|
-
[CSS
|
|
12011
|
-
[CSS
|
|
12012
|
-
[CSS
|
|
12013
|
-
[CSS
|
|
12009
|
+
[CSS$12.buttonPadding]: noStartEndIcons,
|
|
12010
|
+
[CSS$12.buttonPaddingShrunk]: !noStartEndIcons,
|
|
12011
|
+
[CSS$12.contentSlotted]: this.hasContent,
|
|
12012
|
+
[CSS$12.iconStartEmpty]: !this.iconStart,
|
|
12013
|
+
[CSS$12.iconEndEmpty]: !this.iconEnd,
|
|
12014
12014
|
}, disabled: this.disabled || this.loading, href: childElType === "a" && this.href, name: childElType === "button" && this.name, onClick: this.handleClick, ref: this.setChildEl, 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 }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
12015
12015
|
}
|
|
12016
12016
|
//--------------------------------------------------------------------------
|
|
@@ -12325,7 +12325,7 @@ class CalciteMenu {
|
|
|
12325
12325
|
}; }
|
|
12326
12326
|
}
|
|
12327
12327
|
|
|
12328
|
-
const CSS$
|
|
12328
|
+
const CSS$11 = {
|
|
12329
12329
|
container: "container",
|
|
12330
12330
|
content: "content",
|
|
12331
12331
|
dropdownVertical: "dropdown--vertical",
|
|
@@ -12529,54 +12529,54 @@ class CalciteMenuItem {
|
|
|
12529
12529
|
//
|
|
12530
12530
|
//--------------------------------------------------------------------------
|
|
12531
12531
|
renderIconStart() {
|
|
12532
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12532
|
+
return (hAsync("calcite-icon", { class: `${CSS$11.icon} ${CSS$11.iconStart}`, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, key: CSS$11.iconStart, scale: "s" }));
|
|
12533
12533
|
}
|
|
12534
12534
|
renderIconEnd() {
|
|
12535
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12535
|
+
return (hAsync("calcite-icon", { class: `${CSS$11.icon} ${CSS$11.iconEnd}`, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, key: CSS$11.iconEnd, scale: "s" }));
|
|
12536
12536
|
}
|
|
12537
12537
|
renderBreadcrumbIcon(dir) {
|
|
12538
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12538
|
+
return (hAsync("calcite-icon", { class: `${CSS$11.icon} ${CSS$11.iconBreadcrumb}`, icon: dir === "rtl" ? "chevron-left" : "chevron-right", key: CSS$11.iconBreadcrumb, scale: "s" }));
|
|
12539
12539
|
}
|
|
12540
12540
|
renderDropdownIcon(dir) {
|
|
12541
12541
|
const dirChevron = dir === "rtl" ? "chevron-left" : "chevron-right";
|
|
12542
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12542
|
+
return (hAsync("calcite-icon", { class: `${CSS$11.icon} ${CSS$11.iconDropdown}`, icon: this.topLevelMenuLayout === "vertical" || this.isTopLevelItem
|
|
12543
12543
|
? this.open
|
|
12544
12544
|
? "chevron-up"
|
|
12545
12545
|
: "chevron-down"
|
|
12546
|
-
: dirChevron, key: CSS$
|
|
12546
|
+
: dirChevron, key: CSS$11.iconDropdown, scale: "s" }));
|
|
12547
12547
|
}
|
|
12548
12548
|
renderDropdownAction(dir) {
|
|
12549
12549
|
const dirChevron = dir === "rtl" ? "chevron-left" : "chevron-right";
|
|
12550
|
-
return (hAsync("calcite-action", { class: CSS$
|
|
12550
|
+
return (hAsync("calcite-action", { class: CSS$11.dropdownAction, icon: this.topLevelMenuLayout === "vertical" || this.isTopLevelItem
|
|
12551
12551
|
? this.open
|
|
12552
12552
|
? "chevron-up"
|
|
12553
12553
|
: "chevron-down"
|
|
12554
|
-
: dirChevron, key: CSS$
|
|
12554
|
+
: dirChevron, key: CSS$11.dropdownAction, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, text: this.messages.open,
|
|
12555
12555
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12556
12556
|
ref: (el) => (this.dropdownActionEl = el) }));
|
|
12557
12557
|
}
|
|
12558
12558
|
renderSubmenuItems(dir) {
|
|
12559
12559
|
return (hAsync("calcite-menu", { class: {
|
|
12560
|
-
[CSS$
|
|
12561
|
-
[CSS$
|
|
12562
|
-
[CSS$
|
|
12560
|
+
[CSS$11.dropdownMenuItems]: true,
|
|
12561
|
+
[CSS$11.open]: this.open,
|
|
12562
|
+
[CSS$11.nested]: !this.isTopLevelItem,
|
|
12563
12563
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
12564
|
-
[CSS$
|
|
12564
|
+
[CSS$11.dropdownVertical]: this.topLevelMenuLayout === "vertical",
|
|
12565
12565
|
}, label: this.messages.submenu, layout: "vertical", role: "menu" }, hAsync("slot", { name: "submenu-item", onSlotchange: this.handleMenuItemSlotChange })));
|
|
12566
12566
|
}
|
|
12567
12567
|
renderHrefIcon(dir) {
|
|
12568
|
-
return (hAsync("calcite-icon", { class: CSS$
|
|
12568
|
+
return (hAsync("calcite-icon", { class: CSS$11.hoverHrefIcon, icon: dir === "rtl" ? "arrow-left" : "arrow-right", key: CSS$11.hoverHrefIcon, scale: "s" }));
|
|
12569
12569
|
}
|
|
12570
12570
|
renderItemContent(dir) {
|
|
12571
12571
|
const hasHref = this.href && (this.topLevelMenuLayout === "vertical" || !this.isTopLevelItem);
|
|
12572
|
-
return (hAsync(Fragment, null, this.iconStart && this.renderIconStart(), hAsync("div", { class: CSS$
|
|
12572
|
+
return (hAsync(Fragment, null, this.iconStart && this.renderIconStart(), hAsync("div", { class: CSS$11.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));
|
|
12573
12573
|
}
|
|
12574
12574
|
render() {
|
|
12575
12575
|
const dir = getElementDir(this.el);
|
|
12576
12576
|
return (hAsync(Host, { onBlur: this.blurHandler, onFocus: this.focusHandler }, hAsync("li", { class: {
|
|
12577
|
-
[CSS$
|
|
12578
|
-
[CSS$
|
|
12579
|
-
}, role: "none" }, hAsync("div", { class: CSS$
|
|
12577
|
+
[CSS$11.container]: true,
|
|
12578
|
+
[CSS$11.isParentVertical]: this.topLevelMenuLayout === "vertical",
|
|
12579
|
+
}, role: "none" }, hAsync("div", { class: CSS$11.itemContent }, hAsync("a", { "aria-current": this.isFocused ? "page" : false, "aria-expanded": this.open, "aria-haspopup": this.hasSubmenu, "aria-label": this.label, class: { [CSS$11.layoutVertical]: this.layout === "vertical", [CSS$11.content]: true }, href: this.href, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, rel: this.rel, role: "menuitem", tabIndex: this.isTopLevelItem ? 0 : -1, target: this.target,
|
|
12580
12580
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12581
12581
|
ref: (el) => (this.anchorEl = el) }, this.renderItemContent(dir)), this.href && this.hasSubmenu ? this.renderDropdownAction(dir) : null), this.renderSubmenuItems(dir))));
|
|
12582
12582
|
}
|
|
@@ -12619,7 +12619,7 @@ class CalciteMenuItem {
|
|
|
12619
12619
|
}; }
|
|
12620
12620
|
}
|
|
12621
12621
|
|
|
12622
|
-
const CSS$
|
|
12622
|
+
const CSS$10 = {
|
|
12623
12623
|
container: "container",
|
|
12624
12624
|
containerContent: "container-content",
|
|
12625
12625
|
hasProgress: "progress-bar",
|
|
@@ -12628,7 +12628,7 @@ const CSS$Z = {
|
|
|
12628
12628
|
secondary: "secondary",
|
|
12629
12629
|
tertiary: "tertiary",
|
|
12630
12630
|
};
|
|
12631
|
-
const SLOTS$
|
|
12631
|
+
const SLOTS$r = {
|
|
12632
12632
|
logo: "logo",
|
|
12633
12633
|
user: "user",
|
|
12634
12634
|
progress: "progress",
|
|
@@ -12746,7 +12746,7 @@ class CalciteNavigation {
|
|
|
12746
12746
|
setComponentLoaded(this);
|
|
12747
12747
|
}
|
|
12748
12748
|
isPrimaryLevel() {
|
|
12749
|
-
return this.el.slot !== SLOTS$
|
|
12749
|
+
return this.el.slot !== SLOTS$r.navSecondary && this.el.slot !== SLOTS$r.navTertiary;
|
|
12750
12750
|
}
|
|
12751
12751
|
//--------------------------------------------------------------------------
|
|
12752
12752
|
//
|
|
@@ -12754,7 +12754,7 @@ class CalciteNavigation {
|
|
|
12754
12754
|
//
|
|
12755
12755
|
//--------------------------------------------------------------------------
|
|
12756
12756
|
renderMenuAction() {
|
|
12757
|
-
return (hAsync("slot", { name: SLOTS$
|
|
12757
|
+
return (hAsync("slot", { name: SLOTS$r.navigationAction, onSlotchange: this.handleMenuActionSlotChange }, this.navigationAction && (hAsync("calcite-action", { icon: ICONS$e.hamburger, onClick: this.actionClickHandler, text: this.label,
|
|
12758
12758
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
12759
12759
|
ref: (el) => (this.navigationActionEl = el) }))));
|
|
12760
12760
|
}
|
|
@@ -12768,11 +12768,11 @@ class CalciteNavigation {
|
|
|
12768
12768
|
this.navigationAction;
|
|
12769
12769
|
const slotName = this.el.slot;
|
|
12770
12770
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
12771
|
-
[CSS$
|
|
12772
|
-
[CSS$
|
|
12773
|
-
[CSS$
|
|
12774
|
-
[CSS$
|
|
12775
|
-
} }, hAsync("div", { class: { [CSS$
|
|
12771
|
+
[CSS$10.container]: true,
|
|
12772
|
+
[CSS$10.secondary]: slotName === SLOTS$r.navSecondary,
|
|
12773
|
+
[CSS$10.tertiary]: slotName === SLOTS$r.navTertiary,
|
|
12774
|
+
[CSS$10.primary]: primaryLevelHasElements,
|
|
12775
|
+
} }, hAsync("div", { class: { [CSS$10.hide]: !this.progressSlotHasElement, [SLOTS$r.progress]: true } }, hAsync("slot", { name: SLOTS$r.progress, onSlotchange: this.handleProgressSlotChange })), hAsync("div", { class: { [CSS$10.containerContent]: true, [CSS$10.hasProgress]: this.progressSlotHasElement } }, this.renderMenuAction(), hAsync("div", { class: { [CSS$10.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$10.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 }))));
|
|
12776
12776
|
}
|
|
12777
12777
|
get el() { return getElement(this); }
|
|
12778
12778
|
static get style() { return navigationCss; }
|
|
@@ -12799,7 +12799,7 @@ class CalciteNavigation {
|
|
|
12799
12799
|
}; }
|
|
12800
12800
|
}
|
|
12801
12801
|
|
|
12802
|
-
const CSS
|
|
12802
|
+
const CSS$$ = {
|
|
12803
12803
|
container: "container",
|
|
12804
12804
|
heading: "heading",
|
|
12805
12805
|
description: "description",
|
|
@@ -12852,10 +12852,10 @@ class CalciteNavigationLogo {
|
|
|
12852
12852
|
// --------------------------------------------------------------------------
|
|
12853
12853
|
render() {
|
|
12854
12854
|
const { heading, description, thumbnail } = this;
|
|
12855
|
-
return (hAsync(Host, null, hAsync("a", { class: CSS
|
|
12856
|
-
[CSS
|
|
12857
|
-
[CSS
|
|
12858
|
-
}, key: CSS
|
|
12855
|
+
return (hAsync(Host, null, hAsync("a", { class: CSS$$.anchor, href: this.href, rel: this.rel, target: this.target }, thumbnail && hAsync("img", { alt: this.label || "", class: CSS$$.image, src: thumbnail }), (heading || description) && (hAsync("div", { class: CSS$$.container }, heading && (hAsync("span", { "aria-label": this.heading, class: {
|
|
12856
|
+
[CSS$$.heading]: true,
|
|
12857
|
+
[CSS$$.standalone]: !this.description,
|
|
12858
|
+
}, key: CSS$$.heading }, heading)), description && (hAsync("span", { "aria-label": this.description, class: CSS$$.description, key: CSS$$.description }, description)))))));
|
|
12859
12859
|
}
|
|
12860
12860
|
static get delegatesFocus() { return true; }
|
|
12861
12861
|
get el() { return getElement(this); }
|
|
@@ -12880,7 +12880,7 @@ class CalciteNavigationLogo {
|
|
|
12880
12880
|
}; }
|
|
12881
12881
|
}
|
|
12882
12882
|
|
|
12883
|
-
const CSS$
|
|
12883
|
+
const CSS$_ = {
|
|
12884
12884
|
textContainer: "text-container",
|
|
12885
12885
|
fullName: "full-name",
|
|
12886
12886
|
username: "username",
|
|
@@ -12927,7 +12927,7 @@ class CalciteNavigationUser {
|
|
|
12927
12927
|
//
|
|
12928
12928
|
// --------------------------------------------------------------------------
|
|
12929
12929
|
render() {
|
|
12930
|
-
return (hAsync(Host, null, hAsync("button", { "aria-label": this.label, class: CSS$
|
|
12930
|
+
return (hAsync(Host, null, hAsync("button", { "aria-label": this.label, class: CSS$_.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$_.textContainer }, this.fullName && (hAsync("span", { class: CSS$_.fullName, key: CSS$_.fullName }, this.fullName)), this.username && (hAsync("span", { class: CSS$_.username, key: CSS$_.username }, this.username)))))));
|
|
12931
12931
|
}
|
|
12932
12932
|
static get delegatesFocus() { return true; }
|
|
12933
12933
|
get el() { return getElement(this); }
|
|
@@ -12951,7 +12951,7 @@ class CalciteNavigationUser {
|
|
|
12951
12951
|
}; }
|
|
12952
12952
|
}
|
|
12953
12953
|
|
|
12954
|
-
const CSS$
|
|
12954
|
+
const CSS$Z = {
|
|
12955
12955
|
container: "container",
|
|
12956
12956
|
header: "header",
|
|
12957
12957
|
footer: "footer",
|
|
@@ -12960,7 +12960,7 @@ const CSS$W = {
|
|
|
12960
12960
|
checkboxWrapper: "checkbox-wrapper",
|
|
12961
12961
|
thumbnailWrapper: "thumbnail-wrapper",
|
|
12962
12962
|
};
|
|
12963
|
-
const SLOTS$
|
|
12963
|
+
const SLOTS$q = {
|
|
12964
12964
|
thumbnail: "thumbnail",
|
|
12965
12965
|
title: "title",
|
|
12966
12966
|
subtitle: "subtitle",
|
|
@@ -13036,7 +13036,7 @@ class Card {
|
|
|
13036
13036
|
render() {
|
|
13037
13037
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
13038
13038
|
const thumbnailStart = this.thumbnailPosition.endsWith("start");
|
|
13039
|
-
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$
|
|
13039
|
+
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$Z.container]: true } }, this.selectable ? this.renderCheckbox() : null, this.renderHeader(), hAsync("div", { class: "card-content" }, hAsync("slot", null)), this.renderFooter()), !thumbnailStart && this.renderThumbnail()));
|
|
13040
13040
|
}
|
|
13041
13041
|
effectiveLocaleChange() {
|
|
13042
13042
|
updateMessages(this);
|
|
@@ -13046,24 +13046,24 @@ class Card {
|
|
|
13046
13046
|
this.calciteCardSelect.emit();
|
|
13047
13047
|
}
|
|
13048
13048
|
renderThumbnail() {
|
|
13049
|
-
return getSlotted(this.el, SLOTS$
|
|
13049
|
+
return getSlotted(this.el, SLOTS$q.thumbnail) ? (hAsync("section", { class: CSS$Z.thumbnailWrapper }, hAsync("slot", { name: SLOTS$q.thumbnail }))) : null;
|
|
13050
13050
|
}
|
|
13051
13051
|
renderCheckbox() {
|
|
13052
|
-
return (hAsync("calcite-label", { class: CSS$
|
|
13052
|
+
return (hAsync("calcite-label", { class: CSS$Z.checkboxWrapper, onClick: this.cardSelectClick, onKeyDown: this.cardSelectKeyDown }, hAsync("calcite-checkbox", { checked: this.selected, label: this.messages.select })));
|
|
13053
13053
|
}
|
|
13054
13054
|
renderHeader() {
|
|
13055
13055
|
const { el } = this;
|
|
13056
|
-
const title = getSlotted(el, SLOTS$
|
|
13057
|
-
const subtitle = getSlotted(el, SLOTS$
|
|
13056
|
+
const title = getSlotted(el, SLOTS$q.title);
|
|
13057
|
+
const subtitle = getSlotted(el, SLOTS$q.subtitle);
|
|
13058
13058
|
const hasHeader = title || subtitle;
|
|
13059
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
13059
|
+
return hasHeader ? (hAsync("header", { class: CSS$Z.header }, hAsync("slot", { name: SLOTS$q.title }), hAsync("slot", { name: SLOTS$q.subtitle }))) : null;
|
|
13060
13060
|
}
|
|
13061
13061
|
renderFooter() {
|
|
13062
13062
|
const { el } = this;
|
|
13063
|
-
const startFooter = getSlotted(el, SLOTS$
|
|
13064
|
-
const endFooter = getSlotted(el, SLOTS$
|
|
13063
|
+
const startFooter = getSlotted(el, SLOTS$q.footerStart);
|
|
13064
|
+
const endFooter = getSlotted(el, SLOTS$q.footerEnd);
|
|
13065
13065
|
const hasFooter = startFooter || endFooter;
|
|
13066
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
13066
|
+
return hasFooter ? (hAsync("footer", { class: CSS$Z.footer }, hAsync("slot", { name: SLOTS$q.footerStart }), hAsync("slot", { name: SLOTS$q.footerEnd }))) : null;
|
|
13067
13067
|
}
|
|
13068
13068
|
static get assetsDirs() { return ["assets"]; }
|
|
13069
13069
|
get el() { return getElement(this); }
|
|
@@ -13226,7 +13226,7 @@ class Checkbox {
|
|
|
13226
13226
|
}; }
|
|
13227
13227
|
}
|
|
13228
13228
|
|
|
13229
|
-
const CSS$
|
|
13229
|
+
const CSS$Y = {
|
|
13230
13230
|
title: "title",
|
|
13231
13231
|
close: "close",
|
|
13232
13232
|
imageContainer: "image-container",
|
|
@@ -13242,7 +13242,7 @@ const CSS$V = {
|
|
|
13242
13242
|
nonInteractive: "non-interactive",
|
|
13243
13243
|
isCircle: "is-circle",
|
|
13244
13244
|
};
|
|
13245
|
-
const SLOTS$
|
|
13245
|
+
const SLOTS$p = {
|
|
13246
13246
|
image: "image",
|
|
13247
13247
|
};
|
|
13248
13248
|
const ICONS$d = {
|
|
@@ -13395,7 +13395,7 @@ class Chip {
|
|
|
13395
13395
|
//
|
|
13396
13396
|
//--------------------------------------------------------------------------
|
|
13397
13397
|
renderChipImage() {
|
|
13398
|
-
return (hAsync("div", { class: CSS$
|
|
13398
|
+
return (hAsync("div", { class: CSS$Y.imageContainer }, hAsync("slot", { name: SLOTS$p.image, onSlotchange: this.handleSlotImageChange })));
|
|
13399
13399
|
}
|
|
13400
13400
|
renderSelectionIcon() {
|
|
13401
13401
|
const icon = this.selectionMode === "multiple" && this.selected
|
|
@@ -13406,17 +13406,17 @@ class Chip {
|
|
|
13406
13406
|
? ICONS$d.checkedSingle
|
|
13407
13407
|
: undefined;
|
|
13408
13408
|
return (hAsync("div", { class: {
|
|
13409
|
-
[CSS$
|
|
13410
|
-
[CSS$
|
|
13409
|
+
[CSS$Y.selectIcon]: true,
|
|
13410
|
+
[CSS$Y.selectIconActive]: this.selectionMode === "multiple" || this.selected,
|
|
13411
13411
|
} }, hAsync("calcite-icon", { icon: icon, scale: this.scale === "l" ? "m" : "s" })));
|
|
13412
13412
|
}
|
|
13413
13413
|
renderCloseButton() {
|
|
13414
|
-
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$
|
|
13414
|
+
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$Y.close, onClick: this.close, onKeyDown: this.closeButtonKeyDownHandler, tabIndex: this.disabled ? -1 : 0,
|
|
13415
13415
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
13416
13416
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$d.close, scale: this.scale === "l" ? "m" : "s" })));
|
|
13417
13417
|
}
|
|
13418
13418
|
renderIcon() {
|
|
13419
|
-
return (hAsync("calcite-icon", { class: CSS$
|
|
13419
|
+
return (hAsync("calcite-icon", { class: CSS$Y.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: this.scale === "l" ? "m" : "s" }));
|
|
13420
13420
|
}
|
|
13421
13421
|
render() {
|
|
13422
13422
|
const disableInteraction = this.disabled || (!this.disabled && !this.interactive);
|
|
@@ -13430,21 +13430,21 @@ class Chip {
|
|
|
13430
13430
|
return (hAsync(Host, null, hAsync("div", { "aria-checked": this.selectionMode !== "none" && this.interactive
|
|
13431
13431
|
? toAriaBoolean(this.selected)
|
|
13432
13432
|
: undefined, "aria-disabled": disableInteraction ? toAriaBoolean(this.disabled) : undefined, "aria-label": this.label, class: {
|
|
13433
|
-
[CSS$
|
|
13434
|
-
[CSS$
|
|
13435
|
-
[CSS$
|
|
13436
|
-
[CSS$
|
|
13437
|
-
[CSS$
|
|
13438
|
-
[CSS$
|
|
13439
|
-
[CSS$
|
|
13440
|
-
[CSS$
|
|
13433
|
+
[CSS$Y.container]: true,
|
|
13434
|
+
[CSS$Y.textSlotted]: this.hasText,
|
|
13435
|
+
[CSS$Y.imageSlotted]: this.hasImage,
|
|
13436
|
+
[CSS$Y.selectable]: this.selectionMode !== "none",
|
|
13437
|
+
[CSS$Y.multiple]: this.selectionMode === "multiple",
|
|
13438
|
+
[CSS$Y.closable]: this.closable,
|
|
13439
|
+
[CSS$Y.nonInteractive]: !this.interactive,
|
|
13440
|
+
[CSS$Y.isCircle]: !this.closable &&
|
|
13441
13441
|
!this.hasText &&
|
|
13442
13442
|
(!this.icon || !this.hasImage) &&
|
|
13443
13443
|
(this.selectionMode === "none" ||
|
|
13444
13444
|
(!!this.selectionMode && this.selectionMode !== "multiple" && !this.selected)),
|
|
13445
13445
|
}, onClick: this.handleEmittingEvent, role: role, tabIndex: disableInteraction ? -1 : 0,
|
|
13446
13446
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
13447
|
-
ref: (el) => (this.containerEl = el) }, this.selectionMode !== "none" && this.renderSelectionIcon(), this.renderChipImage(), this.icon && this.renderIcon(), hAsync("span", { class: CSS$
|
|
13447
|
+
ref: (el) => (this.containerEl = el) }, this.selectionMode !== "none" && this.renderSelectionIcon(), this.renderChipImage(), this.icon && this.renderIcon(), hAsync("span", { class: CSS$Y.title }, hAsync("slot", null)), this.closable && this.renderCloseButton())));
|
|
13448
13448
|
}
|
|
13449
13449
|
static get assetsDirs() { return ["assets"]; }
|
|
13450
13450
|
get el() { return getElement(this); }
|
|
@@ -15766,7 +15766,7 @@ function zeroArray(array, length) {
|
|
|
15766
15766
|
|
|
15767
15767
|
var color = Color;
|
|
15768
15768
|
|
|
15769
|
-
const CSS$
|
|
15769
|
+
const CSS$X = {
|
|
15770
15770
|
channel: "channel",
|
|
15771
15771
|
channels: "channels",
|
|
15772
15772
|
colorField: "color-field",
|
|
@@ -16115,7 +16115,7 @@ class ColorPicker {
|
|
|
16115
16115
|
const { channelMode: activeChannelMode, messages } = this;
|
|
16116
16116
|
const selected = channelMode === activeChannelMode;
|
|
16117
16117
|
const label = channelMode === "rgb" ? messages.rgb : messages.hsv;
|
|
16118
|
-
return (hAsync("calcite-tab-title", { class: CSS$
|
|
16118
|
+
return (hAsync("calcite-tab-title", { class: CSS$X.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate, selected: selected }, label));
|
|
16119
16119
|
};
|
|
16120
16120
|
this.renderChannelsTab = (channelMode) => {
|
|
16121
16121
|
const { allowEmpty, channelMode: activeChannelMode, channels, messages, alphaChannel } = this;
|
|
@@ -16126,7 +16126,7 @@ class ColorPicker {
|
|
|
16126
16126
|
: [messages.hue, messages.saturation, messages.value];
|
|
16127
16127
|
const direction = getElementDir(this.el);
|
|
16128
16128
|
const channelsToRender = alphaChannel ? channels : channels.slice(0, 3);
|
|
16129
|
-
return (hAsync("calcite-tab", { class: CSS$
|
|
16129
|
+
return (hAsync("calcite-tab", { class: CSS$X.control, key: channelMode, selected: selected }, hAsync("div", { class: CSS$X.channels, dir: "ltr" }, channelsToRender.map((channelValue, index) => {
|
|
16130
16130
|
const isAlphaChannel = index === 3;
|
|
16131
16131
|
if (isAlphaChannel) {
|
|
16132
16132
|
channelValue =
|
|
@@ -16137,7 +16137,7 @@ class ColorPicker {
|
|
|
16137
16137
|
}))));
|
|
16138
16138
|
};
|
|
16139
16139
|
this.renderChannel = (value, index, ariaLabel, direction, suffix) => {
|
|
16140
|
-
return (hAsync("calcite-input-number", { class: CSS$
|
|
16140
|
+
return (hAsync("calcite-input-number", { class: CSS$X.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",
|
|
16141
16141
|
// workaround to ensure input borders overlap as desired
|
|
16142
16142
|
// this is because the build transforms margin-left to its
|
|
16143
16143
|
// logical-prop, which is undesired as channels are always ltr
|
|
@@ -16327,7 +16327,7 @@ class ColorPicker {
|
|
|
16327
16327
|
this.shiftKeyChannelAdjustment = 0;
|
|
16328
16328
|
const { key } = event;
|
|
16329
16329
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
16330
|
-
!event.composedPath().some((node) => node.classList?.contains(CSS$
|
|
16330
|
+
!event.composedPath().some((node) => node.classList?.contains(CSS$X.channel))) {
|
|
16331
16331
|
return;
|
|
16332
16332
|
}
|
|
16333
16333
|
const { shiftKey } = event;
|
|
@@ -16419,35 +16419,35 @@ class ColorPicker {
|
|
|
16419
16419
|
const [adjustedColorFieldScopeLeft, adjustedColorFieldScopeTop] = this.getAdjustedScopePosition(colorFieldScopeLeft, colorFieldScopeTop);
|
|
16420
16420
|
const [adjustedHueScopeLeft, adjustedHueScopeTop] = this.getAdjustedScopePosition(hueLeft, hueTop);
|
|
16421
16421
|
const [adjustedOpacityScopeLeft, adjustedOpacityScopeTop] = this.getAdjustedScopePosition(opacityLeft, opacityTop);
|
|
16422
|
-
return (hAsync("div", { class: CSS$
|
|
16422
|
+
return (hAsync("div", { class: CSS$X.container }, hAsync("div", { class: CSS$X.controlAndScope }, hAsync("canvas", { class: CSS$X.colorField, onPointerDown: this.handleColorFieldPointerDown,
|
|
16423
16423
|
// 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)
|
|
16424
|
-
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$
|
|
16424
|
+
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$X.scope]: true, [CSS$X.colorFieldScope]: true }, onKeyDown: this.handleColorFieldScopeKeyDown, role: "slider", style: {
|
|
16425
16425
|
top: `${adjustedColorFieldScopeTop || 0}px`,
|
|
16426
16426
|
left: `${adjustedColorFieldScopeLeft || 0}px`,
|
|
16427
16427
|
}, tabindex: "0",
|
|
16428
16428
|
// 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)
|
|
16429
|
-
ref: this.storeColorFieldScope })), hAsync("div", { class: CSS$
|
|
16429
|
+
ref: this.storeColorFieldScope })), hAsync("div", { class: CSS$X.previewAndSliders }, hAsync("calcite-color-picker-swatch", { class: CSS$X.preview, color: selectedColorInHex, scale: "l" }), hAsync("div", { class: CSS$X.sliders }, hAsync("div", { class: CSS$X.controlAndScope }, hAsync("canvas", { class: { [CSS$X.slider]: true, [CSS$X.hueSlider]: true }, onPointerDown: this.handleHueSliderPointerDown,
|
|
16430
16430
|
// 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)
|
|
16431
|
-
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$
|
|
16431
|
+
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$X.scope]: true, [CSS$X.hueScope]: true }, onKeyDown: this.handleHueScopeKeyDown, role: "slider", style: {
|
|
16432
16432
|
top: `${adjustedHueScopeTop}px`,
|
|
16433
16433
|
left: `${adjustedHueScopeLeft}px`,
|
|
16434
16434
|
}, tabindex: "0",
|
|
16435
16435
|
// 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)
|
|
16436
|
-
ref: this.storeHueScope })), alphaChannel ? (hAsync("div", { class: CSS$
|
|
16436
|
+
ref: this.storeHueScope })), alphaChannel ? (hAsync("div", { class: CSS$X.controlAndScope }, hAsync("canvas", { class: { [CSS$X.slider]: true, [CSS$X.opacitySlider]: true }, onPointerDown: this.handleOpacitySliderPointerDown,
|
|
16437
16437
|
// 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)
|
|
16438
|
-
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$
|
|
16438
|
+
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$X.scope]: true, [CSS$X.opacityScope]: true }, onKeyDown: this.handleOpacityScopeKeyDown, role: "slider", style: {
|
|
16439
16439
|
top: `${adjustedOpacityScopeTop}px`,
|
|
16440
16440
|
left: `${adjustedOpacityScopeLeft}px`,
|
|
16441
16441
|
}, tabindex: "0",
|
|
16442
16442
|
// 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)
|
|
16443
16443
|
ref: this.storeOpacityScope }))) : null)), noHex && noChannels ? null : (hAsync("div", { class: {
|
|
16444
|
-
[CSS$
|
|
16445
|
-
[CSS$
|
|
16446
|
-
} }, hAsync("div", { class: CSS$
|
|
16447
|
-
[CSS$
|
|
16448
|
-
[CSS$
|
|
16449
|
-
}, 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$
|
|
16450
|
-
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { class: CSS$
|
|
16444
|
+
[CSS$X.controlSection]: true,
|
|
16445
|
+
[CSS$X.section]: true,
|
|
16446
|
+
} }, hAsync("div", { class: CSS$X.hexAndChannelsGroup }, noHex ? null : (hAsync("div", { class: CSS$X.hexOptions }, hAsync("calcite-color-picker-hex-input", { allowEmpty: allowEmpty, alphaChannel: alphaChannel, class: CSS$X.control, messages: messages, numberingSystem: this.numberingSystem, onCalciteColorPickerHexInputChange: this.handleHexInputChange, scale: scale, value: selectedColorInHex }))), noChannels ? null : (hAsync("calcite-tabs", { class: {
|
|
16447
|
+
[CSS$X.colorModeContainer]: true,
|
|
16448
|
+
[CSS$X.splitSection]: true,
|
|
16449
|
+
}, 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$X.savedColorsSection]: true, [CSS$X.section]: true } }, hAsync("div", { class: CSS$X.header }, hAsync("label", null, messages.saved), hAsync("div", { class: CSS$X.savedColorsButtons }, hAsync("calcite-button", { appearance: "transparent", class: CSS$X.deleteColor, disabled: noColor, iconStart: "minus", kind: "neutral", label: messages.deleteColor, onClick: this.deleteColor, scale: scale, type: "button" }), hAsync("calcite-button", { appearance: "transparent", class: CSS$X.saveColor, disabled: noColor, iconStart: "plus", kind: "neutral", label: messages.saveColor, onClick: this.saveColor, scale: scale, type: "button" }))), savedColors.length > 0 ? (hAsync("div", { class: CSS$X.savedColors }, [
|
|
16450
|
+
...savedColors.map((color) => (hAsync("calcite-color-picker-swatch", { class: CSS$X.savedColor, color: color, key: color, onClick: this.handleSavedColorSelect, onKeyDown: this.handleSavedColorKeyDown, scale: scale, tabIndex: 0 }))),
|
|
16451
16451
|
])) : null))));
|
|
16452
16452
|
}
|
|
16453
16453
|
// --------------------------------------------------------------------------
|
|
@@ -16818,7 +16818,7 @@ class ColorPicker {
|
|
|
16818
16818
|
}; }
|
|
16819
16819
|
}
|
|
16820
16820
|
|
|
16821
|
-
const CSS$
|
|
16821
|
+
const CSS$W = {
|
|
16822
16822
|
container: "container",
|
|
16823
16823
|
hexInput: "hex-input",
|
|
16824
16824
|
opacityInput: "opacity-input",
|
|
@@ -16986,9 +16986,9 @@ class ColorPickerHexInput {
|
|
|
16986
16986
|
const hexInputValue = this.formatHexForInternalInput(value);
|
|
16987
16987
|
const opacityInputValue = this.formatOpacityForInternalInput(internalColor);
|
|
16988
16988
|
const inputScale = scale === "l" ? "m" : "s";
|
|
16989
|
-
return (hAsync("div", { class: CSS$
|
|
16989
|
+
return (hAsync("div", { class: CSS$W.container }, hAsync("calcite-input-text", { class: CSS$W.hexInput, label: messages?.hex || hexLabel, maxLength: 6, onCalciteInputTextChange: this.onHexInputChange, onCalciteInternalInputTextBlur: this.onHexInputBlur, onKeyDown: this.onInputKeyDown, onPaste: this.onHexInputPaste, prefixText: "#", scale: inputScale, value: hexInputValue,
|
|
16990
16990
|
// 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)
|
|
16991
|
-
ref: this.storeHexInputRef }), alphaChannel ? (hAsync("calcite-input-number", { class: CSS$
|
|
16991
|
+
ref: this.storeHexInputRef }), alphaChannel ? (hAsync("calcite-input-number", { class: CSS$W.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,
|
|
16992
16992
|
// 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)
|
|
16993
16993
|
ref: this.storeOpacityInputRef })) : null));
|
|
16994
16994
|
}
|
|
@@ -17084,7 +17084,7 @@ class ColorPickerHexInput {
|
|
|
17084
17084
|
}; }
|
|
17085
17085
|
}
|
|
17086
17086
|
|
|
17087
|
-
const CSS$
|
|
17087
|
+
const CSS$V = {
|
|
17088
17088
|
swatch: "swatch",
|
|
17089
17089
|
noColorSwatch: "swatch--no-color",
|
|
17090
17090
|
checker: "checker",
|
|
@@ -17122,8 +17122,8 @@ class ColorPickerSwatch {
|
|
|
17122
17122
|
render() {
|
|
17123
17123
|
const isEmpty = !this.internalColor;
|
|
17124
17124
|
const classes = {
|
|
17125
|
-
[CSS$
|
|
17126
|
-
[CSS$
|
|
17125
|
+
[CSS$V.swatch]: true,
|
|
17126
|
+
[CSS$V.noColorSwatch]: isEmpty,
|
|
17127
17127
|
};
|
|
17128
17128
|
return (hAsync("svg", { class: classes, xmlns: "http://www.w3.org/2000/svg" }, this.renderSwatch()));
|
|
17129
17129
|
}
|
|
@@ -17149,7 +17149,7 @@ class ColorPickerSwatch {
|
|
|
17149
17149
|
const alpha = internalColor.alpha();
|
|
17150
17150
|
const hex = hexify(internalColor);
|
|
17151
17151
|
const hexa = hexify(internalColor, alpha < 1);
|
|
17152
|
-
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$
|
|
17152
|
+
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$V.checker, height: CHECKER_DIMENSIONS.squareSize, width: CHECKER_DIMENSIONS.squareSize, x: "0", y: "0" }), hAsync("rect", { class: CSS$V.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: {
|
|
17153
17153
|
"clip-path": alpha < 1 ? "polygon(100% 0, 0 0, 0 100%)" : `inset(0 round ${borderRadius})`,
|
|
17154
17154
|
}, ...commonSwatchProps }), alpha < 1 ? (hAsync("rect", { fill: hexa, key: "opacity-fill", style: { "clip-path": "polygon(100% 0, 100% 100%, 0 100%)" }, ...commonSwatchProps })) : null));
|
|
17155
17155
|
}
|
|
@@ -18878,7 +18878,7 @@ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePo
|
|
|
18878
18878
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
18879
18879
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
18880
18880
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
18881
|
-
const CSS$
|
|
18881
|
+
const CSS$U = {
|
|
18882
18882
|
listContainer: "list-container",
|
|
18883
18883
|
};
|
|
18884
18884
|
|
|
@@ -18906,11 +18906,11 @@ function isSingleLike(selectionMode) {
|
|
|
18906
18906
|
return selectionMode.includes("single");
|
|
18907
18907
|
}
|
|
18908
18908
|
|
|
18909
|
-
const CSS$
|
|
18909
|
+
const CSS$T = {
|
|
18910
18910
|
button: "x-button",
|
|
18911
18911
|
};
|
|
18912
18912
|
function XButton({ disabled, key, label, onClick, ref, scale, }) {
|
|
18913
|
-
return (hAsync("button", { "aria-label": label, class: CSS$
|
|
18913
|
+
return (hAsync("button", { "aria-label": label, class: CSS$T.button, disabled: disabled, key: key, onClick: onClick, tabIndex: -1, type: "button",
|
|
18914
18914
|
// 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)
|
|
18915
18915
|
ref: ref },
|
|
18916
18916
|
hAsync("calcite-icon", { icon: "x", scale: scale === "l" ? "m" : "s" })));
|
|
@@ -19108,7 +19108,7 @@ class Combobox {
|
|
|
19108
19108
|
event.preventDefault();
|
|
19109
19109
|
return;
|
|
19110
19110
|
}
|
|
19111
|
-
if (composedPath.some((node) => node.classList?.contains(CSS$
|
|
19111
|
+
if (composedPath.some((node) => node.classList?.contains(CSS$T.button))) {
|
|
19112
19112
|
this.clearValue();
|
|
19113
19113
|
event.preventDefault();
|
|
19114
19114
|
return;
|
|
@@ -19498,7 +19498,8 @@ class Combobox {
|
|
|
19498
19498
|
return [...this.groupItems, ...this.items];
|
|
19499
19499
|
}
|
|
19500
19500
|
toggleSelection(item, value = !item.selected) {
|
|
19501
|
-
if (!item
|
|
19501
|
+
if (!item ||
|
|
19502
|
+
(this.selectionMode === "single-persist" && item.selected && item.value === this.value)) {
|
|
19502
19503
|
return;
|
|
19503
19504
|
}
|
|
19504
19505
|
if (this.isMulti()) {
|
|
@@ -19675,7 +19676,7 @@ class Combobox {
|
|
|
19675
19676
|
}
|
|
19676
19677
|
}
|
|
19677
19678
|
isMulti() {
|
|
19678
|
-
return this.selectionMode
|
|
19679
|
+
return !isSingleLike(this.selectionMode);
|
|
19679
19680
|
}
|
|
19680
19681
|
//--------------------------------------------------------------------------
|
|
19681
19682
|
//
|
|
@@ -19722,7 +19723,7 @@ class Combobox {
|
|
|
19722
19723
|
renderFloatingUIContainer() {
|
|
19723
19724
|
const { setFloatingEl, setContainerEl, open } = this;
|
|
19724
19725
|
const classes = {
|
|
19725
|
-
[CSS$
|
|
19726
|
+
[CSS$U.listContainer]: true,
|
|
19726
19727
|
[FloatingCSS.animation]: true,
|
|
19727
19728
|
[FloatingCSS.animationActive]: open,
|
|
19728
19729
|
};
|
|
@@ -19821,7 +19822,7 @@ class Combobox {
|
|
|
19821
19822
|
}; }
|
|
19822
19823
|
}
|
|
19823
19824
|
|
|
19824
|
-
const CSS$
|
|
19825
|
+
const CSS$S = {
|
|
19825
19826
|
icon: "icon",
|
|
19826
19827
|
iconActive: "icon--active",
|
|
19827
19828
|
iconIndent: "icon--indent",
|
|
@@ -19900,20 +19901,20 @@ class ComboboxItem {
|
|
|
19900
19901
|
// --------------------------------------------------------------------------
|
|
19901
19902
|
renderIcon(iconPath) {
|
|
19902
19903
|
return this.icon ? (hAsync("calcite-icon", { class: {
|
|
19903
|
-
[CSS$
|
|
19904
|
-
[CSS$
|
|
19905
|
-
[CSS$
|
|
19904
|
+
[CSS$S.custom]: !!this.icon,
|
|
19905
|
+
[CSS$S.iconActive]: this.icon && this.selected,
|
|
19906
|
+
[CSS$S.iconIndent]: true,
|
|
19906
19907
|
}, flipRtl: this.iconFlipRtl, icon: this.icon || iconPath, key: "icon", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
19907
19908
|
}
|
|
19908
19909
|
renderSelectIndicator(showDot, iconPath) {
|
|
19909
19910
|
return showDot ? (hAsync("span", { class: {
|
|
19910
|
-
[CSS$
|
|
19911
|
-
[CSS$
|
|
19912
|
-
[CSS$
|
|
19911
|
+
[CSS$S.icon]: true,
|
|
19912
|
+
[CSS$S.dot]: true,
|
|
19913
|
+
[CSS$S.iconIndent]: true,
|
|
19913
19914
|
} })) : (hAsync("calcite-icon", { class: {
|
|
19914
|
-
[CSS$
|
|
19915
|
-
[CSS$
|
|
19916
|
-
[CSS$
|
|
19915
|
+
[CSS$S.icon]: true,
|
|
19916
|
+
[CSS$S.iconActive]: this.selected,
|
|
19917
|
+
[CSS$S.iconIndent]: true,
|
|
19917
19918
|
}, flipRtl: this.iconFlipRtl, icon: iconPath, key: "indicator", scale: this.scale === "l" ? "m" : "s" }));
|
|
19918
19919
|
}
|
|
19919
19920
|
renderChildren() {
|
|
@@ -19928,10 +19929,10 @@ class ComboboxItem {
|
|
|
19928
19929
|
const defaultIcon = isSingleSelect ? "dot" : "check";
|
|
19929
19930
|
const iconPath = this.disabled ? "circle-disallowed" : defaultIcon;
|
|
19930
19931
|
const classes = {
|
|
19931
|
-
[CSS$
|
|
19932
|
-
[CSS$
|
|
19933
|
-
[CSS$
|
|
19934
|
-
[CSS$
|
|
19932
|
+
[CSS$S.label]: true,
|
|
19933
|
+
[CSS$S.selected]: this.selected,
|
|
19934
|
+
[CSS$S.active]: this.active,
|
|
19935
|
+
[CSS$S.single]: isSingleSelect,
|
|
19935
19936
|
};
|
|
19936
19937
|
const depth = getDepth$1();
|
|
19937
19938
|
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())));
|
|
@@ -19964,7 +19965,7 @@ class ComboboxItem {
|
|
|
19964
19965
|
}; }
|
|
19965
19966
|
}
|
|
19966
19967
|
|
|
19967
|
-
const CSS$
|
|
19968
|
+
const CSS$R = {
|
|
19968
19969
|
list: "list",
|
|
19969
19970
|
label: "label",
|
|
19970
19971
|
title: "title",
|
|
@@ -20000,7 +20001,7 @@ class ComboboxItemGroup {
|
|
|
20000
20001
|
render() {
|
|
20001
20002
|
const { el, scale } = this;
|
|
20002
20003
|
const depth = getDepth$1();
|
|
20003
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
20004
|
+
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$R.list]: true, [`scale--${scale}`]: true }, role: "group" }, hAsync("li", { class: { [CSS$R.label]: true }, id: this.guid, role: "presentation", style: { "--calcite-combobox-item-spacing-indent-multiplier": `${depth}` } }, hAsync("span", { class: CSS$R.title }, this.label)), hAsync("slot", null)));
|
|
20004
20005
|
}
|
|
20005
20006
|
get el() { return getElement(this); }
|
|
20006
20007
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -21187,7 +21188,7 @@ class DatePickerMonth {
|
|
|
21187
21188
|
}; }
|
|
21188
21189
|
}
|
|
21189
21190
|
|
|
21190
|
-
const CSS$
|
|
21191
|
+
const CSS$Q = {
|
|
21191
21192
|
header: "header",
|
|
21192
21193
|
month: "month",
|
|
21193
21194
|
chevron: "chevron",
|
|
@@ -21287,7 +21288,7 @@ class DatePickerMonthHeader {
|
|
|
21287
21288
|
this.setNextPrevMonthDates();
|
|
21288
21289
|
}
|
|
21289
21290
|
render() {
|
|
21290
|
-
return hAsync("div", { class: CSS$
|
|
21291
|
+
return hAsync("div", { class: CSS$Q.header }, this.renderContent());
|
|
21291
21292
|
}
|
|
21292
21293
|
renderContent() {
|
|
21293
21294
|
const { messages, localeData, activeDate } = this;
|
|
@@ -21310,12 +21311,12 @@ class DatePickerMonthHeader {
|
|
|
21310
21311
|
const order = getOrder(unitOrder);
|
|
21311
21312
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
21312
21313
|
const suffix = localeData.year?.suffix;
|
|
21313
|
-
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": messages.prevMonth, class: CSS$
|
|
21314
|
+
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": messages.prevMonth, class: CSS$Q.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: iconScale })), hAsync("div", { class: { text: true, [CSS$Q.textReverse]: reverse } }, hAsync(Heading, { class: CSS$Q.month, level: this.headingLevel }, localizedMonth), hAsync("span", { class: CSS$Q.yearWrap }, hAsync("input", { "aria-label": messages.year, class: {
|
|
21314
21315
|
year: true,
|
|
21315
|
-
[CSS$
|
|
21316
|
+
[CSS$Q.yearSuffix]: !!suffix,
|
|
21316
21317
|
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", type: "text", value: localizedYear,
|
|
21317
21318
|
// 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)
|
|
21318
|
-
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$
|
|
21319
|
+
ref: (el) => (this.yearInput = el) }), suffix && hAsync("span", { class: CSS$Q.suffix }, suffix))), hAsync("a", { "aria-disabled": `${this.nextMonthDate.getMonth() === activeMonth}`, "aria-label": messages.nextMonth, class: CSS$Q.chevron, href: "#", onClick: this.nextMonthClick, onKeyDown: this.nextMonthKeydown, role: "button", tabindex: this.nextMonthDate.getMonth() === activeMonth ? -1 : 0 }, hAsync("calcite-icon", { "flip-rtl": true, icon: ICON.chevronRight, scale: iconScale }))));
|
|
21319
21320
|
}
|
|
21320
21321
|
setNextPrevMonthDates() {
|
|
21321
21322
|
if (!this.activeDate) {
|
|
@@ -21391,7 +21392,7 @@ class DatePickerMonthHeader {
|
|
|
21391
21392
|
}; }
|
|
21392
21393
|
}
|
|
21393
21394
|
|
|
21394
|
-
const SLOTS$
|
|
21395
|
+
const SLOTS$o = {
|
|
21395
21396
|
dropdownTrigger: "trigger",
|
|
21396
21397
|
};
|
|
21397
21398
|
|
|
@@ -21629,7 +21630,7 @@ class Dropdown {
|
|
|
21629
21630
|
const { open, guid } = this;
|
|
21630
21631
|
return (hAsync(Host, null, hAsync("div", { class: "calcite-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler,
|
|
21631
21632
|
// 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)
|
|
21632
|
-
ref: this.setReferenceEl }, hAsync("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$
|
|
21633
|
+
ref: this.setReferenceEl }, hAsync("slot", { "aria-controls": `${guid}-menu`, "aria-expanded": toAriaBoolean(open), "aria-haspopup": "menu", name: SLOTS$o.dropdownTrigger, onSlotchange: this.updateTriggers })), hAsync("div", { "aria-hidden": toAriaBoolean(!open), class: "calcite-dropdown-wrapper",
|
|
21633
21634
|
// 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)
|
|
21634
21635
|
ref: this.setFloatingEl }, hAsync("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
|
21635
21636
|
["calcite-dropdown-content"]: true,
|
|
@@ -21818,7 +21819,7 @@ class Dropdown {
|
|
|
21818
21819
|
}; }
|
|
21819
21820
|
}
|
|
21820
21821
|
|
|
21821
|
-
const CSS$
|
|
21822
|
+
const CSS$P = {
|
|
21822
21823
|
container: "container",
|
|
21823
21824
|
containerLink: "container--link",
|
|
21824
21825
|
containerMulti: "container--multi-selection",
|
|
@@ -21866,8 +21867,8 @@ class DropdownGroup {
|
|
|
21866
21867
|
const groupTitle = this.groupTitle ? (hAsync("span", { "aria-hidden": "true", class: "dropdown-title" }, this.groupTitle)) : null;
|
|
21867
21868
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
21868
21869
|
return (hAsync(Host, { "aria-label": this.groupTitle, role: "group" }, hAsync("div", { class: {
|
|
21869
|
-
[CSS$
|
|
21870
|
-
[`${CSS$
|
|
21870
|
+
[CSS$P.container]: true,
|
|
21871
|
+
[`${CSS$P.container}--${this.scale}`]: true,
|
|
21871
21872
|
} }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
21872
21873
|
}
|
|
21873
21874
|
//--------------------------------------------------------------------------
|
|
@@ -21961,9 +21962,9 @@ class DropdownItem {
|
|
|
21961
21962
|
}
|
|
21962
21963
|
render() {
|
|
21963
21964
|
const { href, selectionMode, label, iconFlipRtl, scale } = this;
|
|
21964
|
-
const iconStartEl = (hAsync("calcite-icon", { class: CSS$
|
|
21965
|
-
const contentNode = (hAsync("span", { class: CSS$
|
|
21966
|
-
const iconEndEl = (hAsync("calcite-icon", { class: CSS$
|
|
21965
|
+
const iconStartEl = (hAsync("calcite-icon", { class: CSS$P.iconStart, flipRtl: iconFlipRtl === "start" || iconFlipRtl === "both", icon: this.iconStart, scale: scale === "l" ? "m" : "s" }));
|
|
21966
|
+
const contentNode = (hAsync("span", { class: CSS$P.itemContent }, hAsync("slot", null)));
|
|
21967
|
+
const iconEndEl = (hAsync("calcite-icon", { class: CSS$P.iconEnd, flipRtl: iconFlipRtl === "end" || iconFlipRtl === "both", icon: this.iconEnd, scale: scale === "l" ? "m" : "s" }));
|
|
21967
21968
|
const slottedContent = this.iconStart && this.iconEnd
|
|
21968
21969
|
? [iconStartEl, contentNode, iconEndEl]
|
|
21969
21970
|
: this.iconStart
|
|
@@ -21971,7 +21972,7 @@ class DropdownItem {
|
|
|
21971
21972
|
: this.iconEnd
|
|
21972
21973
|
? [contentNode, iconEndEl]
|
|
21973
21974
|
: contentNode;
|
|
21974
|
-
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$
|
|
21975
|
+
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$P.link, href: href, rel: this.rel, tabIndex: -1, target: this.target,
|
|
21975
21976
|
// 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)
|
|
21976
21977
|
ref: (el) => (this.childLink = el) }, slottedContent));
|
|
21977
21978
|
const itemRole = href
|
|
@@ -21983,13 +21984,13 @@ class DropdownItem {
|
|
|
21983
21984
|
: "menuitem";
|
|
21984
21985
|
const itemAria = selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
|
21985
21986
|
return (hAsync(Host, { "aria-checked": itemAria, "aria-label": !href ? label : "", role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
21986
|
-
[CSS$
|
|
21987
|
-
[CSS$
|
|
21988
|
-
[`${CSS$
|
|
21989
|
-
[CSS$
|
|
21990
|
-
[CSS$
|
|
21991
|
-
[CSS$
|
|
21992
|
-
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$
|
|
21987
|
+
[CSS$P.container]: true,
|
|
21988
|
+
[CSS$P.containerLink]: !!href,
|
|
21989
|
+
[`${CSS$P.container}--${scale}`]: true,
|
|
21990
|
+
[CSS$P.containerMulti]: selectionMode === "multiple",
|
|
21991
|
+
[CSS$P.containerSingle]: selectionMode === "single",
|
|
21992
|
+
[CSS$P.containerNone]: selectionMode === "none",
|
|
21993
|
+
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$P.icon, icon: selectionMode === "multiple" ? "check" : "bullet-point", scale: scale === "l" ? "m" : "s" })) : null, contentEl)));
|
|
21993
21994
|
}
|
|
21994
21995
|
//--------------------------------------------------------------------------
|
|
21995
21996
|
//
|
|
@@ -22096,7 +22097,7 @@ class DropdownItem {
|
|
|
22096
22097
|
}; }
|
|
22097
22098
|
}
|
|
22098
22099
|
|
|
22099
|
-
const CSS$
|
|
22100
|
+
const CSS$O = {
|
|
22100
22101
|
button: "button",
|
|
22101
22102
|
};
|
|
22102
22103
|
const ICONS$c = {
|
|
@@ -22157,7 +22158,7 @@ class Fab {
|
|
|
22157
22158
|
render() {
|
|
22158
22159
|
const { appearance, kind, disabled, loading, scale, textEnabled, icon, label, text, iconFlipRtl, } = this;
|
|
22159
22160
|
const title = !textEnabled ? label || text || null : null;
|
|
22160
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$
|
|
22161
|
+
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$O.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",
|
|
22161
22162
|
// 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)
|
|
22162
22163
|
ref: (buttonEl) => {
|
|
22163
22164
|
this.buttonEl = buttonEl;
|
|
@@ -22187,7 +22188,7 @@ class Fab {
|
|
|
22187
22188
|
}; }
|
|
22188
22189
|
}
|
|
22189
22190
|
|
|
22190
|
-
const CSS$
|
|
22191
|
+
const CSS$N = {
|
|
22191
22192
|
container: "container",
|
|
22192
22193
|
searchIcon: "search-icon",
|
|
22193
22194
|
};
|
|
@@ -22316,7 +22317,7 @@ class Filter {
|
|
|
22316
22317
|
// --------------------------------------------------------------------------
|
|
22317
22318
|
render() {
|
|
22318
22319
|
const { disabled, scale } = this;
|
|
22319
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$
|
|
22320
|
+
return (hAsync(Fragment, null, hAsync("div", { class: CSS$N.container }, hAsync("label", null, hAsync("calcite-input", { "aria-label": this.messages.label, clearable: true, disabled: disabled, icon: ICONS$b.search, messageOverrides: { clear: this.messages.clear }, onCalciteInputInput: this.inputHandler, onKeyDown: this.keyDownHandler, placeholder: this.placeholder, scale: scale, type: "text", value: this.value,
|
|
22320
22321
|
// 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)
|
|
22321
22322
|
ref: (el) => {
|
|
22322
22323
|
this.textInput = el;
|
|
@@ -22355,7 +22356,7 @@ class Filter {
|
|
|
22355
22356
|
}; }
|
|
22356
22357
|
}
|
|
22357
22358
|
|
|
22358
|
-
const CSS$
|
|
22359
|
+
const CSS$M = {
|
|
22359
22360
|
frame: "frame",
|
|
22360
22361
|
frameAdvancing: "frame--advancing",
|
|
22361
22362
|
frameRetreating: "frame--retreating",
|
|
@@ -22476,9 +22477,9 @@ class Flow {
|
|
|
22476
22477
|
render() {
|
|
22477
22478
|
const { flowDirection } = this;
|
|
22478
22479
|
const frameDirectionClasses = {
|
|
22479
|
-
[CSS$
|
|
22480
|
-
[CSS$
|
|
22481
|
-
[CSS$
|
|
22480
|
+
[CSS$M.frame]: true,
|
|
22481
|
+
[CSS$M.frameAdvancing]: flowDirection === "advancing",
|
|
22482
|
+
[CSS$M.frameRetreating]: flowDirection === "retreating",
|
|
22482
22483
|
};
|
|
22483
22484
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
22484
22485
|
}
|
|
@@ -22500,7 +22501,7 @@ class Flow {
|
|
|
22500
22501
|
}; }
|
|
22501
22502
|
}
|
|
22502
22503
|
|
|
22503
|
-
const CSS$
|
|
22504
|
+
const CSS$L = {
|
|
22504
22505
|
actionBarContainer: "action-bar-container",
|
|
22505
22506
|
backButton: "back-button",
|
|
22506
22507
|
container: "container",
|
|
@@ -22524,7 +22525,7 @@ const ICONS$a = {
|
|
|
22524
22525
|
backLeft: "chevron-left",
|
|
22525
22526
|
backRight: "chevron-right",
|
|
22526
22527
|
};
|
|
22527
|
-
const SLOTS$
|
|
22528
|
+
const SLOTS$n = {
|
|
22528
22529
|
actionBar: "action-bar",
|
|
22529
22530
|
headerActionsStart: "header-actions-start",
|
|
22530
22531
|
headerActionsEnd: "header-actions-end",
|
|
@@ -22535,14 +22536,14 @@ const SLOTS$m = {
|
|
|
22535
22536
|
footerActions: "footer-actions",
|
|
22536
22537
|
};
|
|
22537
22538
|
|
|
22538
|
-
const CSS$
|
|
22539
|
+
const CSS$K = {
|
|
22539
22540
|
backButton: "back-button",
|
|
22540
22541
|
};
|
|
22541
22542
|
const ICONS$9 = {
|
|
22542
22543
|
backLeft: "chevron-left",
|
|
22543
22544
|
backRight: "chevron-right",
|
|
22544
22545
|
};
|
|
22545
|
-
const SLOTS$
|
|
22546
|
+
const SLOTS$m = {
|
|
22546
22547
|
actionBar: "action-bar",
|
|
22547
22548
|
headerActionsStart: "header-actions-start",
|
|
22548
22549
|
headerActionsEnd: "header-actions-end",
|
|
@@ -22683,7 +22684,7 @@ class FlowItem {
|
|
|
22683
22684
|
const { showBackButton, backButtonClick, messages } = this;
|
|
22684
22685
|
const label = messages.back;
|
|
22685
22686
|
const icon = rtl ? ICONS$9.backRight : ICONS$9.backLeft;
|
|
22686
|
-
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$
|
|
22687
|
+
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$K.backButton, icon: icon, key: "flow-back-button", onClick: backButtonClick, scale: "s", slot: "header-actions-start", text: label, title: label,
|
|
22687
22688
|
// 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)
|
|
22688
22689
|
ref: this.setBackRef })) : null;
|
|
22689
22690
|
}
|
|
@@ -22691,7 +22692,7 @@ class FlowItem {
|
|
|
22691
22692
|
const { closable, closed, description, disabled, heading, headingLevel, loading, menuOpen, messages, } = this;
|
|
22692
22693
|
return (hAsync(Host, null, hAsync("calcite-panel", { closable: closable, closed: closed, description: description, disabled: disabled, heading: heading, headingLevel: headingLevel, loading: loading, menuOpen: menuOpen, messageOverrides: messages, onCalcitePanelClose: this.handlePanelClose, onCalcitePanelScroll: this.handlePanelScroll,
|
|
22693
22694
|
// 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)
|
|
22694
|
-
ref: this.setContainerRef }, this.renderBackButton(), hAsync("slot", { name: SLOTS$
|
|
22695
|
+
ref: this.setContainerRef }, this.renderBackButton(), hAsync("slot", { name: SLOTS$m.actionBar, slot: SLOTS$n.actionBar }), hAsync("slot", { name: SLOTS$m.headerActionsStart, slot: SLOTS$n.headerActionsStart }), hAsync("slot", { name: SLOTS$m.headerActionsEnd, slot: SLOTS$n.headerActionsEnd }), hAsync("slot", { name: SLOTS$m.headerContent, slot: SLOTS$n.headerContent }), hAsync("slot", { name: SLOTS$m.headerMenuActions, slot: SLOTS$n.headerMenuActions }), hAsync("slot", { name: SLOTS$m.fab, slot: SLOTS$n.fab }), hAsync("slot", { name: SLOTS$m.footerActions, slot: SLOTS$n.footerActions }), hAsync("slot", { name: SLOTS$m.footer, slot: SLOTS$n.footer }), hAsync("slot", null))));
|
|
22695
22696
|
}
|
|
22696
22697
|
static get assetsDirs() { return ["assets"]; }
|
|
22697
22698
|
get el() { return getElement(this); }
|
|
@@ -22947,7 +22948,7 @@ class Graph {
|
|
|
22947
22948
|
}; }
|
|
22948
22949
|
}
|
|
22949
22950
|
|
|
22950
|
-
const CSS$
|
|
22951
|
+
const CSS$J = {
|
|
22951
22952
|
handle: "handle",
|
|
22952
22953
|
handleActivated: "handle--activated",
|
|
22953
22954
|
};
|
|
@@ -23070,7 +23071,7 @@ class Handle {
|
|
|
23070
23071
|
render() {
|
|
23071
23072
|
return (
|
|
23072
23073
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
23073
|
-
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$
|
|
23074
|
+
hAsync("span", { "aria-label": this.getAriaText("label"), "aria-pressed": toAriaBoolean(this.activated), class: { [CSS$J.handle]: true, [CSS$J.handleActivated]: this.activated }, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, role: "button", tabindex: "0", title: this.messages?.dragHandle,
|
|
23074
23075
|
// 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)
|
|
23075
23076
|
ref: (el) => {
|
|
23076
23077
|
this.handleButton = el;
|
|
@@ -23109,7 +23110,7 @@ class Handle {
|
|
|
23109
23110
|
}; }
|
|
23110
23111
|
}
|
|
23111
23112
|
|
|
23112
|
-
const CSS$
|
|
23113
|
+
const CSS$I = {
|
|
23113
23114
|
icon: "icon",
|
|
23114
23115
|
flipRtl: "flip-rtl",
|
|
23115
23116
|
};
|
|
@@ -23157,7 +23158,7 @@ class Icon {
|
|
|
23157
23158
|
const semantic = !!textLabel;
|
|
23158
23159
|
const paths = [].concat(pathData || "");
|
|
23159
23160
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { "aria-hidden": "true", class: {
|
|
23160
|
-
[CSS$
|
|
23161
|
+
[CSS$I.flipRtl]: dir === "rtl" && flipRtl,
|
|
23161
23162
|
svg: true,
|
|
23162
23163
|
}, 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 }))))));
|
|
23163
23164
|
}
|
|
@@ -23203,7 +23204,7 @@ class Icon {
|
|
|
23203
23204
|
}; }
|
|
23204
23205
|
}
|
|
23205
23206
|
|
|
23206
|
-
const CSS$
|
|
23207
|
+
const CSS$H = {
|
|
23207
23208
|
wrapper: "wrapper",
|
|
23208
23209
|
confirmChangesButton: "confirm-changes-button",
|
|
23209
23210
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -23353,16 +23354,16 @@ class InlineEditable {
|
|
|
23353
23354
|
updateHostInteraction(this);
|
|
23354
23355
|
}
|
|
23355
23356
|
render() {
|
|
23356
|
-
return (hAsync("div", { class: CSS$
|
|
23357
|
+
return (hAsync("div", { class: CSS$H.wrapper, onClick: this.enableEditingHandler, onKeyDown: this.escapeKeyHandler }, hAsync("div", { class: CSS$H.inputWrapper }, hAsync("slot", null)), hAsync("div", { class: CSS$H.controlsWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$H.enableEditingButton, disabled: this.disabled, iconStart: "pencil", kind: "neutral", label: this.messages.enableEditing, onClick: this.enableEditingHandler, scale: this.scale, style: {
|
|
23357
23358
|
opacity: this.editingEnabled ? "0" : "1",
|
|
23358
23359
|
width: this.editingEnabled ? "0" : "inherit",
|
|
23359
23360
|
}, type: "button",
|
|
23360
23361
|
// 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)
|
|
23361
23362
|
ref: (el) => (this.enableEditingButton = el) }), this.shouldShowControls && [
|
|
23362
|
-
hAsync("div", { class: CSS$
|
|
23363
|
+
hAsync("div", { class: CSS$H.cancelEditingButtonWrapper }, hAsync("calcite-button", { appearance: "transparent", class: CSS$H.cancelEditingButton, disabled: this.disabled, iconStart: "x", kind: "neutral", label: this.messages.cancelEditing, onClick: this.cancelEditingHandler, scale: this.scale, type: "button",
|
|
23363
23364
|
// 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)
|
|
23364
23365
|
ref: (el) => (this.cancelEditingButton = el) })),
|
|
23365
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
23366
|
+
hAsync("calcite-button", { appearance: "solid", class: CSS$H.confirmChangesButton, disabled: this.disabled, iconStart: "check", kind: "brand", label: this.messages.confirmChanges, loading: this.loading, onClick: this.confirmChangesHandler, scale: this.scale, type: "button",
|
|
23366
23367
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
23367
23368
|
ref: (el) => (this.confirmEditingButton = el) }),
|
|
23368
23369
|
])));
|
|
@@ -23448,7 +23449,7 @@ class InlineEditable {
|
|
|
23448
23449
|
}; }
|
|
23449
23450
|
}
|
|
23450
23451
|
|
|
23451
|
-
const CSS$
|
|
23452
|
+
const CSS$G = {
|
|
23452
23453
|
loader: "loader",
|
|
23453
23454
|
clearButton: "clear-button",
|
|
23454
23455
|
editingEnabled: "editing-enabled",
|
|
@@ -23472,7 +23473,7 @@ const INPUT_TYPE_ICONS = {
|
|
|
23472
23473
|
time: "clock",
|
|
23473
23474
|
search: "search",
|
|
23474
23475
|
};
|
|
23475
|
-
const SLOTS$
|
|
23476
|
+
const SLOTS$l = {
|
|
23476
23477
|
action: "action",
|
|
23477
23478
|
};
|
|
23478
23479
|
|
|
@@ -24032,38 +24033,38 @@ class Input {
|
|
|
24032
24033
|
// --------------------------------------------------------------------------
|
|
24033
24034
|
render() {
|
|
24034
24035
|
const dir = getElementDir(this.el);
|
|
24035
|
-
const loader = (hAsync("div", { class: CSS$
|
|
24036
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
24037
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
24036
|
+
const loader = (hAsync("div", { class: CSS$G.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
24037
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$G.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
24038
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$G.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
24038
24039
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
24039
24040
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24040
|
-
[CSS$
|
|
24041
|
-
[CSS$
|
|
24041
|
+
[CSS$G.numberButtonItem]: true,
|
|
24042
|
+
[CSS$G.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24042
24043
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: this.scale === "l" ? "m" : "s" })));
|
|
24043
24044
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24044
|
-
[CSS$
|
|
24045
|
-
[CSS$
|
|
24045
|
+
[CSS$G.numberButtonItem]: true,
|
|
24046
|
+
[CSS$G.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24046
24047
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.numberButtonPointerDownHandler, onPointerOut: this.numberButtonPointerUpAndOutHandler, onPointerUp: this.numberButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
24047
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
24048
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
24049
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
24048
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$G.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
24049
|
+
const prefixText = hAsync("div", { class: CSS$G.prefix }, this.prefixText);
|
|
24050
|
+
const suffixText = hAsync("div", { class: CSS$G.suffix }, this.suffixText);
|
|
24050
24051
|
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,
|
|
24051
24052
|
// 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)
|
|
24052
24053
|
ref: this.setChildNumberElRef })) : null;
|
|
24053
24054
|
const childEl = this.type !== "number"
|
|
24054
24055
|
? [
|
|
24055
24056
|
hAsync(this.childElType, { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
24056
|
-
[CSS$
|
|
24057
|
-
[CSS$
|
|
24057
|
+
[CSS$G.editingEnabled]: this.editingEnabled,
|
|
24058
|
+
[CSS$G.inlineChild]: !!this.inlineEditableEl,
|
|
24058
24059
|
}, 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,
|
|
24059
24060
|
// 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)
|
|
24060
24061
|
ref: this.setChildElRef }),
|
|
24061
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
24062
|
+
this.isTextarea ? (hAsync("div", { class: CSS$G.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" }))) : null,
|
|
24062
24063
|
]
|
|
24063
24064
|
: null;
|
|
24064
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
24065
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$G.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24065
24066
|
? numberButtonsHorizontalDown
|
|
24066
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
24067
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$G.wrapper }, localeNumberInput, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$G.actionWrapper }, hAsync("slot", { name: SLOTS$l.action })), this.type === "number" && this.numberButtonType === "vertical" && !this.readOnly
|
|
24067
24068
|
? numberButtonsVertical
|
|
24068
24069
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24069
24070
|
? numberButtonsHorizontalUp
|
|
@@ -24138,7 +24139,7 @@ class Input {
|
|
|
24138
24139
|
}; }
|
|
24139
24140
|
}
|
|
24140
24141
|
|
|
24141
|
-
const CSS$
|
|
24142
|
+
const CSS$F = {
|
|
24142
24143
|
assistiveText: "assistive-text",
|
|
24143
24144
|
menu: "menu-container",
|
|
24144
24145
|
menuActive: "menu-container--active",
|
|
@@ -25324,12 +25325,12 @@ class InputDatePicker {
|
|
|
25324
25325
|
const valueIsArray = Array.isArray(valueAsDate);
|
|
25325
25326
|
const newStartDate = valueIsArray ? valueAsDate[0] : null;
|
|
25326
25327
|
let newStartDateISO = valueIsArray ? dateToISO(newStartDate) : "";
|
|
25327
|
-
if (newStartDateISO
|
|
25328
|
+
if (newStartDateISO) {
|
|
25328
25329
|
newStartDateISO = this.getNormalizedDate(newStartDateISO);
|
|
25329
25330
|
}
|
|
25330
25331
|
const newEndDate = valueIsArray ? valueAsDate[1] : null;
|
|
25331
25332
|
let newEndDateISO = valueIsArray ? dateToISO(newEndDate) : "";
|
|
25332
|
-
if (newEndDateISO
|
|
25333
|
+
if (newEndDateISO) {
|
|
25333
25334
|
newEndDateISO = this.getNormalizedDate(newEndDateISO);
|
|
25334
25335
|
}
|
|
25335
25336
|
const newValue = newStartDateISO || newEndDateISO ? [newStartDateISO, newEndDateISO] : "";
|
|
@@ -25358,9 +25359,7 @@ class InputDatePicker {
|
|
|
25358
25359
|
}
|
|
25359
25360
|
const oldValue = this.value;
|
|
25360
25361
|
let newValue = dateToISO(value);
|
|
25361
|
-
|
|
25362
|
-
newValue = this.getNormalizedDate(newValue);
|
|
25363
|
-
}
|
|
25362
|
+
newValue = this.getNormalizedDate(newValue);
|
|
25364
25363
|
if (newValue === oldValue) {
|
|
25365
25364
|
return;
|
|
25366
25365
|
}
|
|
@@ -25406,7 +25405,6 @@ class InputDatePicker {
|
|
|
25406
25405
|
this.max = undefined;
|
|
25407
25406
|
this.open = false;
|
|
25408
25407
|
this.name = undefined;
|
|
25409
|
-
this.normalizeYear = false;
|
|
25410
25408
|
this.numberingSystem = undefined;
|
|
25411
25409
|
this.scale = "m";
|
|
25412
25410
|
this.placement = defaultMenuPlacement;
|
|
@@ -25436,17 +25434,9 @@ class InputDatePicker {
|
|
|
25436
25434
|
if (!this.userChangedValue) {
|
|
25437
25435
|
let newValueAsDate;
|
|
25438
25436
|
if (Array.isArray(newValue)) {
|
|
25439
|
-
if (isTwoDigitYear(newValue[0]) || isTwoDigitYear(newValue[1])) {
|
|
25440
|
-
this.value = newValue.map((val) => this.getNormalizedDate(val));
|
|
25441
|
-
return;
|
|
25442
|
-
}
|
|
25443
25437
|
newValueAsDate = getValueAsDateRange(newValue);
|
|
25444
25438
|
}
|
|
25445
25439
|
else if (newValue) {
|
|
25446
|
-
if (isTwoDigitYear(newValue)) {
|
|
25447
|
-
this.value = this.getNormalizedDate(newValue);
|
|
25448
|
-
return;
|
|
25449
|
-
}
|
|
25450
25440
|
newValueAsDate = dateFromISO(newValue);
|
|
25451
25441
|
}
|
|
25452
25442
|
else {
|
|
@@ -25548,18 +25538,10 @@ class InputDatePicker {
|
|
|
25548
25538
|
const { open } = this;
|
|
25549
25539
|
open && this.openHandler(open);
|
|
25550
25540
|
if (Array.isArray(this.value)) {
|
|
25551
|
-
if (isTwoDigitYear(this.value[0]) || isTwoDigitYear(this.value[1])) {
|
|
25552
|
-
this.value = this.value.map((val) => this.getNormalizedDate(val));
|
|
25553
|
-
return;
|
|
25554
|
-
}
|
|
25555
25541
|
this.valueAsDate = getValueAsDateRange(this.value);
|
|
25556
25542
|
}
|
|
25557
25543
|
else if (this.value) {
|
|
25558
25544
|
try {
|
|
25559
|
-
if (isTwoDigitYear(this.value)) {
|
|
25560
|
-
this.value = this.getNormalizedDate(this.value);
|
|
25561
|
-
return;
|
|
25562
|
-
}
|
|
25563
25545
|
this.valueAsDate = dateFromISO(this.value);
|
|
25564
25546
|
}
|
|
25565
25547
|
catch (error) {
|
|
@@ -25624,9 +25606,9 @@ class InputDatePicker {
|
|
|
25624
25606
|
// 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)
|
|
25625
25607
|
ref: this.setStartWrapper }, hAsync("calcite-input", { "aria-autocomplete": "none", "aria-controls": this.dialogId, "aria-describedby": this.placeholderTextId, "aria-expanded": toAriaBoolean(this.open), "aria-haspopup": "dialog", class: `input ${this.layout === "vertical" && this.range ? `no-bottom-border` : ``}`, disabled: disabled, icon: "calendar", "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.startInputFocus, onFocus: this.startEndInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, role: "combobox", scale: this.scale, type: "text",
|
|
25626
25608
|
// 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)
|
|
25627
|
-
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$
|
|
25628
|
-
[CSS$
|
|
25629
|
-
[CSS$
|
|
25609
|
+
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$F.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: {
|
|
25610
|
+
[CSS$F.menu]: true,
|
|
25611
|
+
[CSS$F.menuActive]: this.open,
|
|
25630
25612
|
}, id: this.dialogId, role: "dialog",
|
|
25631
25613
|
// 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)
|
|
25632
25614
|
ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
@@ -25648,7 +25630,7 @@ class InputDatePicker {
|
|
|
25648
25630
|
ref: this.setEndInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "end"))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
25649
25631
|
}
|
|
25650
25632
|
renderToggleIcon(open) {
|
|
25651
|
-
return (hAsync("span", { class: CSS$
|
|
25633
|
+
return (hAsync("span", { class: CSS$F.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
25652
25634
|
}
|
|
25653
25635
|
setReferenceEl() {
|
|
25654
25636
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -25772,7 +25754,7 @@ class InputDatePicker {
|
|
|
25772
25754
|
if (!value) {
|
|
25773
25755
|
return "";
|
|
25774
25756
|
}
|
|
25775
|
-
if (!
|
|
25757
|
+
if (!isTwoDigitYear(value)) {
|
|
25776
25758
|
return value;
|
|
25777
25759
|
}
|
|
25778
25760
|
const { day, month, year } = datePartsFromISO(value);
|
|
@@ -25819,7 +25801,6 @@ class InputDatePicker {
|
|
|
25819
25801
|
"max": [1],
|
|
25820
25802
|
"open": [1540],
|
|
25821
25803
|
"name": [513],
|
|
25822
|
-
"normalizeYear": [516, "normalize-year"],
|
|
25823
25804
|
"numberingSystem": [513, "numbering-system"],
|
|
25824
25805
|
"scale": [513],
|
|
25825
25806
|
"placement": [513],
|
|
@@ -25838,7 +25819,7 @@ class InputDatePicker {
|
|
|
25838
25819
|
},
|
|
25839
25820
|
"$listeners$": [[0, "calciteDaySelect", "calciteDaySelectHandler"]],
|
|
25840
25821
|
"$lazyBundleId$": "-",
|
|
25841
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["form", "form"], ["readOnly", "read-only"], ["headingLevel", "heading-level"], ["open", "open"], ["name", "name"], ["
|
|
25822
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["form", "form"], ["readOnly", "read-only"], ["headingLevel", "heading-level"], ["open", "open"], ["name", "name"], ["numberingSystem", "numbering-system"], ["scale", "scale"], ["placement", "placement"], ["range", "range"], ["required", "required"], ["overlayPositioning", "overlay-positioning"], ["layout", "layout"]]
|
|
25842
25823
|
}; }
|
|
25843
25824
|
}
|
|
25844
25825
|
|
|
@@ -25908,7 +25889,7 @@ class InputMessage {
|
|
|
25908
25889
|
}; }
|
|
25909
25890
|
}
|
|
25910
25891
|
|
|
25911
|
-
const CSS$
|
|
25892
|
+
const CSS$E = {
|
|
25912
25893
|
loader: "loader",
|
|
25913
25894
|
clearButton: "clear-button",
|
|
25914
25895
|
editingEnabled: "editing-enabled",
|
|
@@ -25924,7 +25905,7 @@ const CSS$B = {
|
|
|
25924
25905
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
25925
25906
|
numberButtonItem: "number-button-item",
|
|
25926
25907
|
};
|
|
25927
|
-
const SLOTS$
|
|
25908
|
+
const SLOTS$k = {
|
|
25928
25909
|
action: "action",
|
|
25929
25910
|
};
|
|
25930
25911
|
|
|
@@ -26417,27 +26398,27 @@ class InputNumber {
|
|
|
26417
26398
|
// --------------------------------------------------------------------------
|
|
26418
26399
|
render() {
|
|
26419
26400
|
const dir = getElementDir(this.el);
|
|
26420
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26421
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26422
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26401
|
+
const loader = (hAsync("div", { class: CSS$E.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26402
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$E.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
26403
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$E.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
26423
26404
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
26424
26405
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26425
|
-
[CSS$
|
|
26426
|
-
[CSS$
|
|
26406
|
+
[CSS$E.numberButtonItem]: true,
|
|
26407
|
+
[CSS$E.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26427
26408
|
}, "data-adjustment": "up", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-up", scale: this.scale === "l" ? "m" : "s" })));
|
|
26428
26409
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26429
|
-
[CSS$
|
|
26430
|
-
[CSS$
|
|
26410
|
+
[CSS$E.numberButtonItem]: true,
|
|
26411
|
+
[CSS$E.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26431
26412
|
}, "data-adjustment": "down", disabled: this.disabled || this.readOnly, onPointerDown: this.nudgeButtonPointerDownHandler, onPointerOut: this.nudgeButtonPointerUpAndOutHandler, onPointerUp: this.nudgeButtonPointerUpAndOutHandler, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
26432
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
26433
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26434
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
26413
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$E.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
26414
|
+
const prefixText = hAsync("div", { class: CSS$E.prefix }, this.prefixText);
|
|
26415
|
+
const suffixText = hAsync("div", { class: CSS$E.suffix }, this.suffixText);
|
|
26435
26416
|
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,
|
|
26436
26417
|
// 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)
|
|
26437
26418
|
ref: this.setChildNumberElRef }));
|
|
26438
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26419
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$E.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26439
26420
|
? numberButtonsHorizontalDown
|
|
26440
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
26421
|
+
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$E.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$E.actionWrapper }, hAsync("slot", { name: SLOTS$k.action })), this.numberButtonType === "vertical" && !this.readOnly ? numberButtonsVertical : null, this.suffixText ? suffixText : null, this.numberButtonType === "horizontal" && !this.readOnly
|
|
26441
26422
|
? numberButtonsHorizontalUp
|
|
26442
26423
|
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26443
26424
|
}
|
|
@@ -26504,7 +26485,7 @@ class InputNumber {
|
|
|
26504
26485
|
}; }
|
|
26505
26486
|
}
|
|
26506
26487
|
|
|
26507
|
-
const CSS$
|
|
26488
|
+
const CSS$D = {
|
|
26508
26489
|
loader: "loader",
|
|
26509
26490
|
clearButton: "clear-button",
|
|
26510
26491
|
editingEnabled: "editing-enabled",
|
|
@@ -26517,7 +26498,7 @@ const CSS$A = {
|
|
|
26517
26498
|
actionWrapper: "action-wrapper",
|
|
26518
26499
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
26519
26500
|
};
|
|
26520
|
-
const SLOTS$
|
|
26501
|
+
const SLOTS$j = {
|
|
26521
26502
|
action: "action",
|
|
26522
26503
|
};
|
|
26523
26504
|
|
|
@@ -26804,18 +26785,18 @@ class InputText {
|
|
|
26804
26785
|
// --------------------------------------------------------------------------
|
|
26805
26786
|
render() {
|
|
26806
26787
|
const dir = getElementDir(this.el);
|
|
26807
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26808
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26809
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26810
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26811
|
-
const suffixText = hAsync("div", { class: CSS$
|
|
26788
|
+
const loader = (hAsync("div", { class: CSS$D.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26789
|
+
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$D.clearButton, disabled: this.disabled || this.readOnly, onClick: this.clearInputTextValue, tabIndex: -1, type: "button" }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
26790
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$D.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
26791
|
+
const prefixText = hAsync("div", { class: CSS$D.prefix }, this.prefixText);
|
|
26792
|
+
const suffixText = hAsync("div", { class: CSS$D.suffix }, this.suffixText);
|
|
26812
26793
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
26813
|
-
[CSS$
|
|
26814
|
-
[CSS$
|
|
26794
|
+
[CSS$D.editingEnabled]: this.editingEnabled,
|
|
26795
|
+
[CSS$D.inlineChild]: !!this.inlineEditableEl,
|
|
26815
26796
|
}, 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,
|
|
26816
26797
|
// 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)
|
|
26817
26798
|
ref: this.setChildElRef }));
|
|
26818
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26799
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$D.inputWrapper]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$D.wrapper }, childEl, this.isClearable ? inputClearButton : null, this.requestedIcon ? iconEl : null, this.loading ? loader : null), hAsync("div", { class: CSS$D.actionWrapper }, hAsync("slot", { name: SLOTS$j.action })), this.suffixText ? suffixText : null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26819
26800
|
}
|
|
26820
26801
|
static get assetsDirs() { return ["assets"]; }
|
|
26821
26802
|
get el() { return getElement(this); }
|
|
@@ -27131,7 +27112,7 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
27131
27112
|
return isoTimeString;
|
|
27132
27113
|
}
|
|
27133
27114
|
|
|
27134
|
-
const CSS$
|
|
27115
|
+
const CSS$C = {
|
|
27135
27116
|
toggleIcon: "toggle-icon",
|
|
27136
27117
|
};
|
|
27137
27118
|
|
|
@@ -28904,7 +28885,7 @@ class InputTimePicker {
|
|
|
28904
28885
|
ref: this.setCalciteTimePickerEl })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
28905
28886
|
}
|
|
28906
28887
|
renderToggleIcon(open) {
|
|
28907
|
-
return (hAsync("span", { class: CSS$
|
|
28888
|
+
return (hAsync("span", { class: CSS$C.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
28908
28889
|
}
|
|
28909
28890
|
static get delegatesFocus() { return true; }
|
|
28910
28891
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -29148,7 +29129,7 @@ class InputTimeZone {
|
|
|
29148
29129
|
}; }
|
|
29149
29130
|
}
|
|
29150
29131
|
|
|
29151
|
-
const CSS$
|
|
29132
|
+
const CSS$B = {
|
|
29152
29133
|
container: "container",
|
|
29153
29134
|
};
|
|
29154
29135
|
|
|
@@ -29188,7 +29169,7 @@ class Label {
|
|
|
29188
29169
|
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
29189
29170
|
}
|
|
29190
29171
|
render() {
|
|
29191
|
-
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$
|
|
29172
|
+
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$B.container }, hAsync("slot", null))));
|
|
29192
29173
|
}
|
|
29193
29174
|
get el() { return getElement(this); }
|
|
29194
29175
|
static get style() { return labelCss; }
|
|
@@ -29323,7 +29304,7 @@ class Link {
|
|
|
29323
29304
|
}; }
|
|
29324
29305
|
}
|
|
29325
29306
|
|
|
29326
|
-
const CSS$
|
|
29307
|
+
const CSS$A = {
|
|
29327
29308
|
container: "container",
|
|
29328
29309
|
containerBorderSelected: "container--border-selected",
|
|
29329
29310
|
containerBorderUnselected: "container--border-unselected",
|
|
@@ -29344,7 +29325,7 @@ const CSS$x = {
|
|
|
29344
29325
|
openContainer: "open-container",
|
|
29345
29326
|
dragContainer: "drag-container",
|
|
29346
29327
|
};
|
|
29347
|
-
const SLOTS$
|
|
29328
|
+
const SLOTS$i = {
|
|
29348
29329
|
actionsStart: "actions-start",
|
|
29349
29330
|
contentStart: "content-start",
|
|
29350
29331
|
content: "content",
|
|
@@ -29390,7 +29371,7 @@ function getDepth(element, includeGroup = false) {
|
|
|
29390
29371
|
}
|
|
29391
29372
|
}
|
|
29392
29373
|
|
|
29393
|
-
const CSS$
|
|
29374
|
+
const CSS$z = {
|
|
29394
29375
|
container: "container",
|
|
29395
29376
|
table: "table",
|
|
29396
29377
|
scrim: "scrim",
|
|
@@ -29400,7 +29381,7 @@ const CSS$w = {
|
|
|
29400
29381
|
assistiveText: "assistive-text",
|
|
29401
29382
|
};
|
|
29402
29383
|
const debounceTimeout = 0;
|
|
29403
|
-
const SLOTS$
|
|
29384
|
+
const SLOTS$h = {
|
|
29404
29385
|
filterActionsStart: "filter-actions-start",
|
|
29405
29386
|
filterActionsEnd: "filter-actions-end",
|
|
29406
29387
|
};
|
|
@@ -32501,7 +32482,7 @@ function onSortingEnd(activeComponent) {
|
|
|
32501
32482
|
getNestedSortableComponents(activeComponent).forEach((component) => inactiveSortableComponentSet.delete(component));
|
|
32502
32483
|
}
|
|
32503
32484
|
|
|
32504
|
-
const CSS$
|
|
32485
|
+
const CSS$y = {
|
|
32505
32486
|
container: "container",
|
|
32506
32487
|
actionsStart: "actions-start",
|
|
32507
32488
|
contentStart: "content-start",
|
|
@@ -32509,7 +32490,7 @@ const CSS$v = {
|
|
|
32509
32490
|
contentEnd: "content-end",
|
|
32510
32491
|
actionsEnd: "actions-end",
|
|
32511
32492
|
};
|
|
32512
|
-
const SLOTS$
|
|
32493
|
+
const SLOTS$g = {
|
|
32513
32494
|
actionsStart: "actions-start",
|
|
32514
32495
|
contentStart: "content-start",
|
|
32515
32496
|
contentEnd: "content-end",
|
|
@@ -32769,7 +32750,7 @@ class List$1 {
|
|
|
32769
32750
|
return;
|
|
32770
32751
|
}
|
|
32771
32752
|
event.stopPropagation();
|
|
32772
|
-
this.updateListItems(
|
|
32753
|
+
this.updateListItems();
|
|
32773
32754
|
}
|
|
32774
32755
|
handleCalciteInternalListItemGroupDefaultSlotChange(event) {
|
|
32775
32756
|
event.stopPropagation();
|
|
@@ -32824,9 +32805,9 @@ class List$1 {
|
|
|
32824
32805
|
// --------------------------------------------------------------------------
|
|
32825
32806
|
render() {
|
|
32826
32807
|
const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText, hasFilterActionsStart, hasFilterActionsEnd, } = this;
|
|
32827
|
-
return (hAsync("div", { class: CSS$
|
|
32808
|
+
return (hAsync("div", { class: CSS$z.container }, this.dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: CSS$z.assistiveText }, this.assistiveText)) : null, loading ? hAsync("calcite-scrim", { class: CSS$z.scrim, loading: loading }) : null, hAsync("table", { "aria-busy": toAriaBoolean(loading), "aria-label": label || "", class: CSS$z.table, onKeyDown: this.handleListKeydown, role: "treegrid" }, filterEnabled || hasFilterActionsStart || hasFilterActionsEnd ? (hAsync("thead", null, hAsync("tr", { class: { [CSS$z.sticky]: true } }, hAsync("th", { colSpan: MAX_COLUMNS }, hAsync("calcite-stack", { class: CSS$z.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,
|
|
32828
32809
|
// 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)
|
|
32829
|
-
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$
|
|
32810
|
+
ref: this.setFilterEl }), hAsync("slot", { name: SLOTS$h.filterActionsEnd, onSlotchange: this.handleFilterActionsEndSlotChange, slot: SLOTS$g.actionsEnd })))))) : null, hAsync("tbody", { class: CSS$z.tableContainer }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })))));
|
|
32830
32811
|
}
|
|
32831
32812
|
// --------------------------------------------------------------------------
|
|
32832
32813
|
//
|
|
@@ -33241,47 +33222,47 @@ class ListItem {
|
|
|
33241
33222
|
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
33242
33223
|
return null;
|
|
33243
33224
|
}
|
|
33244
|
-
return (hAsync("td", { class: CSS$
|
|
33225
|
+
return (hAsync("td", { class: CSS$A.selectionContainer, key: "selection-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: selected
|
|
33245
33226
|
? selectionMode === "multiple"
|
|
33246
33227
|
? ICONS$7.selectedMultiple
|
|
33247
33228
|
: ICONS$7.selectedSingle
|
|
33248
33229
|
: ICONS$7.unselected, scale: "s" })));
|
|
33249
33230
|
}
|
|
33250
33231
|
renderDragHandle() {
|
|
33251
|
-
return this.dragHandle ? (hAsync("td", { class: CSS$
|
|
33232
|
+
return this.dragHandle ? (hAsync("td", { class: CSS$A.dragContainer, key: "drag-handle-container" }, hAsync("calcite-handle", { label: this.label, setPosition: this.setPosition, setSize: this.setSize }))) : null;
|
|
33252
33233
|
}
|
|
33253
33234
|
renderOpen() {
|
|
33254
33235
|
const { el, open, openable, parentListEl } = this;
|
|
33255
33236
|
const dir = getElementDir(el);
|
|
33256
|
-
return openable ? (hAsync("td", { class: CSS$
|
|
33237
|
+
return openable ? (hAsync("td", { class: CSS$A.openContainer, key: "open-container", onClick: this.toggleOpen }, hAsync("calcite-icon", { icon: open ? ICONS$7.open : dir === "rtl" ? ICONS$7.closedRTL : ICONS$7.closedLTR, scale: "s" }))) : parentListEl?.openable ? (hAsync("td", { class: CSS$A.openContainer, key: "open-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: ICONS$7.blank, scale: "s" }))) : null;
|
|
33257
33238
|
}
|
|
33258
33239
|
renderActionsStart() {
|
|
33259
33240
|
const { label, hasActionsStart } = this;
|
|
33260
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
33241
|
+
return (hAsync("td", { "aria-label": label, class: CSS$A.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", role: "gridcell",
|
|
33261
33242
|
// 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)
|
|
33262
|
-
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$
|
|
33243
|
+
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$i.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
33263
33244
|
}
|
|
33264
33245
|
renderActionsEnd() {
|
|
33265
33246
|
const { label, hasActionsEnd, closable, messages } = this;
|
|
33266
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
33247
|
+
return (hAsync("td", { "aria-label": label, class: CSS$A.actionsEnd, hidden: !(hasActionsEnd || closable), key: "actions-end-container", role: "gridcell",
|
|
33267
33248
|
// 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)
|
|
33268
|
-
ref: (el) => (this.actionsEndEl = el) }, hAsync("slot", { name: SLOTS$
|
|
33249
|
+
ref: (el) => (this.actionsEndEl = el) }, hAsync("slot", { name: SLOTS$i.actionsEnd, onSlotchange: this.handleActionsEndSlotChange }), closable ? (hAsync("calcite-action", { appearance: "transparent", icon: ICONS$7.close, key: "close-action", label: messages.close, onClick: this.closeClickHandler, text: messages.close })) : null));
|
|
33269
33250
|
}
|
|
33270
33251
|
renderContentStart() {
|
|
33271
33252
|
const { hasContentStart } = this;
|
|
33272
|
-
return (hAsync("div", { class: CSS$
|
|
33253
|
+
return (hAsync("div", { class: CSS$A.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$i.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
33273
33254
|
}
|
|
33274
33255
|
renderCustomContent() {
|
|
33275
33256
|
const { hasCustomContent } = this;
|
|
33276
|
-
return (hAsync("div", { class: CSS$
|
|
33257
|
+
return (hAsync("div", { class: CSS$A.customContent, hidden: !hasCustomContent }, hAsync("slot", { name: SLOTS$i.content, onSlotchange: this.handleContentSlotChange })));
|
|
33277
33258
|
}
|
|
33278
33259
|
renderContentEnd() {
|
|
33279
33260
|
const { hasContentEnd } = this;
|
|
33280
|
-
return (hAsync("div", { class: CSS$
|
|
33261
|
+
return (hAsync("div", { class: CSS$A.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$i.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
33281
33262
|
}
|
|
33282
33263
|
renderContentProperties() {
|
|
33283
33264
|
const { label, description, hasCustomContent } = this;
|
|
33284
|
-
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$
|
|
33265
|
+
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$A.content, key: "content" }, label ? (hAsync("div", { class: CSS$A.label, key: "label" }, label)) : null, description ? (hAsync("div", { class: CSS$A.description, key: "description" }, description)) : null)) : null;
|
|
33285
33266
|
}
|
|
33286
33267
|
renderContentContainer() {
|
|
33287
33268
|
const { description, label, selectionMode, hasCustomContent } = this;
|
|
@@ -33293,9 +33274,9 @@ class ListItem {
|
|
|
33293
33274
|
this.renderContentEnd(),
|
|
33294
33275
|
];
|
|
33295
33276
|
return (hAsync("td", { "aria-label": label, class: {
|
|
33296
|
-
[CSS$
|
|
33297
|
-
[CSS$
|
|
33298
|
-
[CSS$
|
|
33277
|
+
[CSS$A.contentContainer]: true,
|
|
33278
|
+
[CSS$A.contentContainerSelectable]: selectionMode !== "none",
|
|
33279
|
+
[CSS$A.contentContainerHasCenterContent]: hasCenterContent,
|
|
33299
33280
|
}, key: "content-container", onClick: this.itemClicked, role: "gridcell",
|
|
33300
33281
|
// 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)
|
|
33301
33282
|
ref: (el) => (this.contentEl = el) }, content));
|
|
@@ -33306,14 +33287,14 @@ class ListItem {
|
|
|
33306
33287
|
const borderSelected = showBorder && selected;
|
|
33307
33288
|
const borderUnselected = showBorder && !selected;
|
|
33308
33289
|
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: {
|
|
33309
|
-
[CSS$
|
|
33310
|
-
[CSS$
|
|
33311
|
-
[CSS$
|
|
33290
|
+
[CSS$A.container]: true,
|
|
33291
|
+
[CSS$A.containerBorderSelected]: borderSelected,
|
|
33292
|
+
[CSS$A.containerBorderUnselected]: borderUnselected,
|
|
33312
33293
|
}, hidden: closed, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${this.visualLevel}` }, tabIndex: active ? 0 : -1,
|
|
33313
33294
|
// 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)
|
|
33314
33295
|
ref: (el) => (this.containerEl = el) }, this.renderDragHandle(), this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: {
|
|
33315
|
-
[CSS$
|
|
33316
|
-
[CSS$
|
|
33296
|
+
[CSS$A.nestedContainer]: true,
|
|
33297
|
+
[CSS$A.nestedContainerHidden]: openable && !open,
|
|
33317
33298
|
} }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange, ref: (el) => (this.defaultSlotEl = el) }))));
|
|
33318
33299
|
}
|
|
33319
33300
|
// --------------------------------------------------------------------------
|
|
@@ -33403,7 +33384,7 @@ class ListItem {
|
|
|
33403
33384
|
}; }
|
|
33404
33385
|
}
|
|
33405
33386
|
|
|
33406
|
-
const CSS$
|
|
33387
|
+
const CSS$x = {
|
|
33407
33388
|
container: "container",
|
|
33408
33389
|
heading: "heading",
|
|
33409
33390
|
};
|
|
@@ -33452,7 +33433,7 @@ class ListItemGroup {
|
|
|
33452
33433
|
// --------------------------------------------------------------------------
|
|
33453
33434
|
render() {
|
|
33454
33435
|
const { heading, visualLevel } = this;
|
|
33455
|
-
return (hAsync(Host, null, hAsync("tr", { class: CSS$
|
|
33436
|
+
return (hAsync(Host, null, hAsync("tr", { class: CSS$x.container, style: { "--calcite-list-item-spacing-indent-multiplier": `${visualLevel}` } }, hAsync("td", { class: CSS$x.heading, colSpan: MAX_COLUMNS }, heading)), hAsync("slot", { onSlotchange: this.handleDefaultSlotChange })));
|
|
33456
33437
|
}
|
|
33457
33438
|
get el() { return getElement(this); }
|
|
33458
33439
|
static get style() { return listItemGroupCss; }
|
|
@@ -33552,7 +33533,7 @@ class Loader {
|
|
|
33552
33533
|
}; }
|
|
33553
33534
|
}
|
|
33554
33535
|
|
|
33555
|
-
const CSS$
|
|
33536
|
+
const CSS$w = {
|
|
33556
33537
|
container: "container",
|
|
33557
33538
|
fill: "fill",
|
|
33558
33539
|
stepLine: "step-line",
|
|
@@ -33702,16 +33683,16 @@ class Meter {
|
|
|
33702
33683
|
const aboveHighest = value >= highest;
|
|
33703
33684
|
const belowHighest = value < highest;
|
|
33704
33685
|
if (!value || (!low && belowHighest) || belowLowest) {
|
|
33705
|
-
return CSS$
|
|
33686
|
+
return CSS$w.success;
|
|
33706
33687
|
}
|
|
33707
33688
|
else if (aboveLowest && belowHighest) {
|
|
33708
|
-
return CSS$
|
|
33689
|
+
return CSS$w.warning;
|
|
33709
33690
|
}
|
|
33710
33691
|
else if (aboveHighest) {
|
|
33711
|
-
return CSS$
|
|
33692
|
+
return CSS$w.danger;
|
|
33712
33693
|
}
|
|
33713
33694
|
else {
|
|
33714
|
-
return CSS$
|
|
33695
|
+
return CSS$w.success;
|
|
33715
33696
|
}
|
|
33716
33697
|
}
|
|
33717
33698
|
intersects(el1, el2) {
|
|
@@ -33725,7 +33706,7 @@ class Meter {
|
|
|
33725
33706
|
const minHighOverlap = this.intersects(minLabelEl, highLabelEl);
|
|
33726
33707
|
const minLowOverlap = this.intersects(minLabelEl, lowLabelEl);
|
|
33727
33708
|
const minMaxOverlap = this.intersects(minLabelEl, maxLabelEl);
|
|
33728
|
-
const hiddenClass = CSS$
|
|
33709
|
+
const hiddenClass = CSS$w.labelHidden;
|
|
33729
33710
|
if (lowLabelEl) {
|
|
33730
33711
|
if (minLowOverlap || lowMaxOverlap || lowHighOverlap) {
|
|
33731
33712
|
lowLabelEl.classList.add(hiddenClass);
|
|
@@ -33774,26 +33755,26 @@ class Meter {
|
|
|
33774
33755
|
renderMeterFill() {
|
|
33775
33756
|
const { currentPercent, fillType } = this;
|
|
33776
33757
|
const kindClass = this.getMeterKindCssClass();
|
|
33777
|
-
return (hAsync("div", { class: { [CSS$
|
|
33758
|
+
return (hAsync("div", { class: { [CSS$w.fill]: true, [kindClass]: fillType !== "single" }, style: { width: `${currentPercent}%` } }));
|
|
33778
33759
|
}
|
|
33779
33760
|
renderRangeLine(position) {
|
|
33780
33761
|
const style = { insetInlineStart: `${position}%` };
|
|
33781
|
-
return hAsync("div", { class: CSS$
|
|
33762
|
+
return hAsync("div", { class: CSS$w.stepLine, style: style });
|
|
33782
33763
|
}
|
|
33783
33764
|
renderValueLabel() {
|
|
33784
33765
|
const { currentPercent, valueLabelType, unitLabel, value } = this;
|
|
33785
33766
|
const label = this.formatLabel(valueLabelType === "percent" ? currentPercent / 100 : value || 0, valueLabelType);
|
|
33786
|
-
return (hAsync("div", { class: { [CSS$
|
|
33767
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelValue]: true }, key: "low-label-line",
|
|
33787
33768
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33788
|
-
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
33769
|
+
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$w.unitLabel }, "\u00A0", unitLabel))));
|
|
33789
33770
|
}
|
|
33790
33771
|
renderMinLabel() {
|
|
33791
33772
|
const { rangeLabelType, min, minPercent, unitLabel } = this;
|
|
33792
33773
|
const style = { insetInlineStart: `${minPercent}%` };
|
|
33793
33774
|
const labelMin = this.formatLabel(rangeLabelType === "percent" ? minPercent : min, rangeLabelType);
|
|
33794
|
-
return (hAsync("div", { class: { [CSS$
|
|
33775
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "min-label-line", style: style,
|
|
33795
33776
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33796
|
-
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
33777
|
+
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$w.unitLabel }, "\u00A0", unitLabel))));
|
|
33797
33778
|
}
|
|
33798
33779
|
renderLowLabel() {
|
|
33799
33780
|
const { rangeLabelType, low, lowPercent, highPercent, labelFlipProximity } = this;
|
|
@@ -33803,7 +33784,7 @@ class Meter {
|
|
|
33803
33784
|
const styleDefault = { insetInlineStart: `${lowPercent}%` };
|
|
33804
33785
|
const styleFlipped = { insetInlineEnd: `${100 - lowPercent}%` };
|
|
33805
33786
|
const style = (highPercent - lowPercent) / 100 < labelFlipProximity ? styleFlipped : styleDefault;
|
|
33806
|
-
return (hAsync("div", { class: { [CSS$
|
|
33787
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "low-label-line", style: style,
|
|
33807
33788
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33808
33789
|
ref: (el) => (this.lowLabelEl = el) }, label));
|
|
33809
33790
|
}
|
|
@@ -33815,7 +33796,7 @@ class Meter {
|
|
|
33815
33796
|
const styleDefault = { insetInlineStart: `${highPercent}%` };
|
|
33816
33797
|
const styleFlipped = { insetInlineEnd: `${100 - highPercent}%` };
|
|
33817
33798
|
const style = highPercent / 100 >= labelFlipMax ? styleFlipped : styleDefault;
|
|
33818
|
-
return (hAsync("div", { class: { [CSS$
|
|
33799
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "high-label-line", style: style,
|
|
33819
33800
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33820
33801
|
ref: (el) => (this.highLabelEl = el) }, label));
|
|
33821
33802
|
}
|
|
@@ -33823,7 +33804,7 @@ class Meter {
|
|
|
33823
33804
|
const { rangeLabelType, max, maxPercent } = this;
|
|
33824
33805
|
const style = { insetInlineEnd: `${100 - maxPercent}%` };
|
|
33825
33806
|
const labelMax = this.formatLabel(rangeLabelType === "percent" ? maxPercent / 100 : max, rangeLabelType);
|
|
33826
|
-
return (hAsync("div", { class: { [CSS$
|
|
33807
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "max-label-line", style: style,
|
|
33827
33808
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33828
33809
|
ref: (el) => (this.maxLabelEl = el) }, labelMax));
|
|
33829
33810
|
}
|
|
@@ -33837,9 +33818,9 @@ class Meter {
|
|
|
33837
33818
|
? textUnitLabel
|
|
33838
33819
|
: undefined;
|
|
33839
33820
|
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: {
|
|
33840
|
-
[CSS$
|
|
33841
|
-
[CSS$
|
|
33842
|
-
[CSS$
|
|
33821
|
+
[CSS$w.container]: true,
|
|
33822
|
+
[CSS$w.stepsVisible]: rangeLabels,
|
|
33823
|
+
[CSS$w.valueVisible]: valueLabel,
|
|
33843
33824
|
[appearance]: appearance !== "outline-fill",
|
|
33844
33825
|
}, role: "meter",
|
|
33845
33826
|
// eslint-disable-next-line react/jsx-sort-props
|
|
@@ -33895,7 +33876,7 @@ class Meter {
|
|
|
33895
33876
|
}; }
|
|
33896
33877
|
}
|
|
33897
33878
|
|
|
33898
|
-
const CSS$
|
|
33879
|
+
const CSS$v = {
|
|
33899
33880
|
modal: "modal",
|
|
33900
33881
|
title: "title",
|
|
33901
33882
|
header: "header",
|
|
@@ -33922,7 +33903,7 @@ const CSS$s = {
|
|
|
33922
33903
|
const ICONS$6 = {
|
|
33923
33904
|
close: "x",
|
|
33924
33905
|
};
|
|
33925
|
-
const SLOTS$
|
|
33906
|
+
const SLOTS$f = {
|
|
33926
33907
|
content: "content",
|
|
33927
33908
|
contentBottom: "content-bottom",
|
|
33928
33909
|
contentTop: "content-top",
|
|
@@ -34007,7 +33988,7 @@ class Modal {
|
|
|
34007
33988
|
this.updateFocusTrapElements();
|
|
34008
33989
|
};
|
|
34009
33990
|
this.updateFooterVisibility = () => {
|
|
34010
|
-
this.hasFooter = !!getSlotted(this.el, [SLOTS$
|
|
33991
|
+
this.hasFooter = !!getSlotted(this.el, [SLOTS$f.back, SLOTS$f.primary, SLOTS$f.secondary]);
|
|
34011
33992
|
};
|
|
34012
33993
|
this.updateSizeCssVars = () => {
|
|
34013
33994
|
this.cssWidth = getComputedStyle(this.el).getPropertyValue("--calcite-modal-width");
|
|
@@ -34090,50 +34071,50 @@ class Modal {
|
|
|
34090
34071
|
}
|
|
34091
34072
|
render() {
|
|
34092
34073
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
34093
|
-
[CSS$
|
|
34094
|
-
[CSS$
|
|
34095
|
-
[CSS$
|
|
34096
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
34097
|
-
[CSS$
|
|
34074
|
+
[CSS$v.container]: true,
|
|
34075
|
+
[CSS$v.containerOpen]: this.opened,
|
|
34076
|
+
[CSS$v.slottedInShell]: this.slottedInShell,
|
|
34077
|
+
} }, hAsync("calcite-scrim", { class: CSS$v.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: {
|
|
34078
|
+
[CSS$v.modal]: true,
|
|
34098
34079
|
},
|
|
34099
34080
|
// 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)
|
|
34100
|
-
ref: this.setTransitionEl }, hAsync("div", { class: CSS$
|
|
34101
|
-
[CSS$
|
|
34102
|
-
[CSS$
|
|
34081
|
+
ref: this.setTransitionEl }, hAsync("div", { class: CSS$v.header }, this.renderCloseButton(), hAsync("header", { class: CSS$v.title }, hAsync("slot", { name: CSS$v.header }))), this.renderContentTop(), hAsync("div", { class: {
|
|
34082
|
+
[CSS$v.content]: true,
|
|
34083
|
+
[CSS$v.contentNoFooter]: !this.hasFooter,
|
|
34103
34084
|
},
|
|
34104
34085
|
// 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)
|
|
34105
|
-
ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$
|
|
34086
|
+
ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$f.content })), this.renderContentBottom(), this.renderFooter()))));
|
|
34106
34087
|
}
|
|
34107
34088
|
renderFooter() {
|
|
34108
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$
|
|
34089
|
+
return this.hasFooter ? (hAsync("div", { class: CSS$v.footer, key: "footer" }, hAsync("span", { class: CSS$v.back }, hAsync("slot", { name: SLOTS$f.back })), hAsync("span", { class: CSS$v.secondary }, hAsync("slot", { name: SLOTS$f.secondary })), hAsync("span", { class: CSS$v.primary }, hAsync("slot", { name: SLOTS$f.primary })))) : null;
|
|
34109
34090
|
}
|
|
34110
34091
|
renderContentTop() {
|
|
34111
|
-
return (hAsync("div", { class: CSS$
|
|
34092
|
+
return (hAsync("div", { class: CSS$v.contentTop, hidden: !this.hasContentTop }, hAsync("slot", { name: SLOTS$f.contentTop, onSlotchange: this.contentTopSlotChangeHandler })));
|
|
34112
34093
|
}
|
|
34113
34094
|
renderContentBottom() {
|
|
34114
|
-
return (hAsync("div", { class: CSS$
|
|
34095
|
+
return (hAsync("div", { class: CSS$v.contentBottom, hidden: !this.hasContentBottom }, hAsync("slot", { name: SLOTS$f.contentBottom, onSlotchange: this.contentBottomSlotChangeHandler })));
|
|
34115
34096
|
}
|
|
34116
34097
|
renderCloseButton() {
|
|
34117
|
-
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34098
|
+
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$v.close, key: "button", onClick: this.closeModal, title: this.messages.close,
|
|
34118
34099
|
// 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)
|
|
34119
34100
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$6.close, scale: this.scale === "s" ? "s" : this.scale === "m" ? "m" : this.scale === "l" ? "l" : null }))) : null;
|
|
34120
34101
|
}
|
|
34121
34102
|
renderStyle() {
|
|
34122
34103
|
if (!this.fullscreen && (this.cssWidth || this.cssHeight)) {
|
|
34123
|
-
return (hAsync("style", null, `.${CSS$
|
|
34104
|
+
return (hAsync("style", null, `.${CSS$v.container} {
|
|
34124
34105
|
${this.docked && this.cssWidth ? `align-items: center !important;` : ""}
|
|
34125
34106
|
}
|
|
34126
|
-
.${CSS$
|
|
34107
|
+
.${CSS$v.modal} {
|
|
34127
34108
|
block-size: ${this.cssHeight ? this.cssHeight : "auto"} !important;
|
|
34128
34109
|
${this.cssWidth ? `inline-size: ${this.cssWidth} !important;` : ""}
|
|
34129
34110
|
${this.cssWidth ? `max-inline-size: ${this.cssWidth} !important;` : ""}
|
|
34130
34111
|
${this.docked ? `border-radius: var(--calcite-border-radius) !important;` : ""}
|
|
34131
34112
|
}
|
|
34132
34113
|
@media screen and (max-width: ${this.cssWidth}) {
|
|
34133
|
-
.${CSS$
|
|
34114
|
+
.${CSS$v.container} {
|
|
34134
34115
|
${this.docked ? `align-items: flex-end !important;` : ""}
|
|
34135
34116
|
}
|
|
34136
|
-
.${CSS$
|
|
34117
|
+
.${CSS$v.modal} {
|
|
34137
34118
|
max-block-size: 100% !important;
|
|
34138
34119
|
inline-size: 100% !important;
|
|
34139
34120
|
max-inline-size: 100% !important;
|
|
@@ -34200,20 +34181,20 @@ class Modal {
|
|
|
34200
34181
|
}
|
|
34201
34182
|
}
|
|
34202
34183
|
onBeforeOpen() {
|
|
34203
|
-
this.transitionEl.classList.add(CSS$
|
|
34184
|
+
this.transitionEl.classList.add(CSS$v.openingActive);
|
|
34204
34185
|
this.calciteModalBeforeOpen.emit();
|
|
34205
34186
|
}
|
|
34206
34187
|
onOpen() {
|
|
34207
|
-
this.transitionEl.classList.remove(CSS$
|
|
34188
|
+
this.transitionEl.classList.remove(CSS$v.openingIdle, CSS$v.openingActive);
|
|
34208
34189
|
this.calciteModalOpen.emit();
|
|
34209
34190
|
activateFocusTrap(this);
|
|
34210
34191
|
}
|
|
34211
34192
|
onBeforeClose() {
|
|
34212
|
-
this.transitionEl.classList.add(CSS$
|
|
34193
|
+
this.transitionEl.classList.add(CSS$v.closingActive);
|
|
34213
34194
|
this.calciteModalBeforeClose.emit();
|
|
34214
34195
|
}
|
|
34215
34196
|
onClose() {
|
|
34216
|
-
this.transitionEl.classList.remove(CSS$
|
|
34197
|
+
this.transitionEl.classList.remove(CSS$v.closingIdle, CSS$v.closingActive);
|
|
34217
34198
|
this.calciteModalClose.emit();
|
|
34218
34199
|
deactivateFocusTrap(this);
|
|
34219
34200
|
}
|
|
@@ -34223,11 +34204,11 @@ class Modal {
|
|
|
34223
34204
|
}
|
|
34224
34205
|
onToggleOpenCloseComponent(this);
|
|
34225
34206
|
if (value) {
|
|
34226
|
-
this.transitionEl?.classList.add(CSS$
|
|
34207
|
+
this.transitionEl?.classList.add(CSS$v.openingIdle);
|
|
34227
34208
|
this.openModal();
|
|
34228
34209
|
}
|
|
34229
34210
|
else {
|
|
34230
|
-
this.transitionEl?.classList.add(CSS$
|
|
34211
|
+
this.transitionEl?.classList.add(CSS$v.closingIdle);
|
|
34231
34212
|
this.closeModal();
|
|
34232
34213
|
}
|
|
34233
34214
|
}
|
|
@@ -34240,8 +34221,8 @@ class Modal {
|
|
|
34240
34221
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
34241
34222
|
this.open = true;
|
|
34242
34223
|
this.opened = true;
|
|
34243
|
-
const titleEl = getSlotted(this.el, SLOTS$
|
|
34244
|
-
const contentEl = getSlotted(this.el, SLOTS$
|
|
34224
|
+
const titleEl = getSlotted(this.el, SLOTS$f.header);
|
|
34225
|
+
const contentEl = getSlotted(this.el, SLOTS$f.content);
|
|
34245
34226
|
this.titleId = ensureId(titleEl);
|
|
34246
34227
|
this.contentId = ensureId(contentEl);
|
|
34247
34228
|
if (!this.slottedInShell) {
|
|
@@ -34299,13 +34280,13 @@ class Modal {
|
|
|
34299
34280
|
}; }
|
|
34300
34281
|
}
|
|
34301
34282
|
|
|
34302
|
-
const SLOTS$
|
|
34283
|
+
const SLOTS$e = {
|
|
34303
34284
|
title: "title",
|
|
34304
34285
|
message: "message",
|
|
34305
34286
|
link: "link",
|
|
34306
34287
|
actionsEnd: "actions-end",
|
|
34307
34288
|
};
|
|
34308
|
-
const CSS$
|
|
34289
|
+
const CSS$u = {
|
|
34309
34290
|
actionsEnd: "actions-end",
|
|
34310
34291
|
close: "notice-close",
|
|
34311
34292
|
container: "container",
|
|
@@ -34384,11 +34365,11 @@ class Notice {
|
|
|
34384
34365
|
}
|
|
34385
34366
|
render() {
|
|
34386
34367
|
const { el } = this;
|
|
34387
|
-
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34368
|
+
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$u.close, onClick: this.close,
|
|
34388
34369
|
// 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)
|
|
34389
34370
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
34390
|
-
const hasActionEnd = getSlotted(el, SLOTS$
|
|
34391
|
-
return (hAsync("div", { class: CSS$
|
|
34371
|
+
const hasActionEnd = getSlotted(el, SLOTS$e.actionsEnd);
|
|
34372
|
+
return (hAsync("div", { class: CSS$u.container }, this.requestedIcon ? (hAsync("div", { class: CSS$u.icon }, hAsync("calcite-icon", { flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }))) : null, hAsync("div", { class: CSS$u.content }, hAsync("slot", { name: SLOTS$e.title }), hAsync("slot", { name: SLOTS$e.message }), hAsync("slot", { name: SLOTS$e.link })), hasActionEnd ? (hAsync("div", { class: CSS$u.actionsEnd }, hAsync("slot", { name: SLOTS$e.actionsEnd }))) : null, this.closable ? closeButton : null));
|
|
34392
34373
|
}
|
|
34393
34374
|
//--------------------------------------------------------------------------
|
|
34394
34375
|
//
|
|
@@ -34567,7 +34548,7 @@ class OptionGroup {
|
|
|
34567
34548
|
}; }
|
|
34568
34549
|
}
|
|
34569
34550
|
|
|
34570
|
-
const CSS$
|
|
34551
|
+
const CSS$t = {
|
|
34571
34552
|
page: "page",
|
|
34572
34553
|
selected: "is-selected",
|
|
34573
34554
|
previous: "previous",
|
|
@@ -34725,8 +34706,8 @@ class Pagination {
|
|
|
34725
34706
|
const displayedPage = numberStringFormatter.localize(page.toString());
|
|
34726
34707
|
const selected = start === this.startItem;
|
|
34727
34708
|
return (hAsync("button", { "aria-current": selected ? "page" : "false", class: {
|
|
34728
|
-
[CSS$
|
|
34729
|
-
[CSS$
|
|
34709
|
+
[CSS$t.page]: true,
|
|
34710
|
+
[CSS$t.selected]: selected,
|
|
34730
34711
|
}, onClick: () => {
|
|
34731
34712
|
this.startItem = start;
|
|
34732
34713
|
this.emitUpdate();
|
|
@@ -34734,12 +34715,12 @@ class Pagination {
|
|
|
34734
34715
|
}
|
|
34735
34716
|
renderLeftEllipsis() {
|
|
34736
34717
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
34737
|
-
return hAsync("span", { class: `${CSS$
|
|
34718
|
+
return hAsync("span", { class: `${CSS$t.ellipsis} ${CSS$t.ellipsisStart}` }, "\u2026");
|
|
34738
34719
|
}
|
|
34739
34720
|
}
|
|
34740
34721
|
renderRightEllipsis() {
|
|
34741
34722
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
34742
|
-
return hAsync("span", { class: `${CSS$
|
|
34723
|
+
return hAsync("span", { class: `${CSS$t.ellipsis} ${CSS$t.ellipsisEnd}` }, "\u2026");
|
|
34743
34724
|
}
|
|
34744
34725
|
}
|
|
34745
34726
|
render() {
|
|
@@ -34747,11 +34728,11 @@ class Pagination {
|
|
|
34747
34728
|
const prevDisabled = pageSize === 1 ? startItem <= pageSize : startItem < pageSize;
|
|
34748
34729
|
const nextDisabled = pageSize === 1 ? startItem + pageSize > totalItems : startItem + pageSize > totalItems;
|
|
34749
34730
|
return (hAsync(Fragment, null, hAsync("button", { "aria-label": this.messages.previous, class: {
|
|
34750
|
-
[CSS$
|
|
34751
|
-
[CSS$
|
|
34731
|
+
[CSS$t.previous]: true,
|
|
34732
|
+
[CSS$t.disabled]: prevDisabled,
|
|
34752
34733
|
}, disabled: prevDisabled, onClick: this.previousClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronLeft", scale: this.scale === "l" ? "m" : "s" })), totalItems > pageSize ? this.renderPage(1) : null, this.renderLeftEllipsis(), this.renderPages(), this.renderRightEllipsis(), this.renderPage(this.getLastStart()), hAsync("button", { "aria-label": this.messages.next, class: {
|
|
34753
|
-
[CSS$
|
|
34754
|
-
[CSS$
|
|
34734
|
+
[CSS$t.next]: true,
|
|
34735
|
+
[CSS$t.disabled]: nextDisabled,
|
|
34755
34736
|
}, disabled: nextDisabled, onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: this.scale === "l" ? "m" : "s" }))));
|
|
34756
34737
|
}
|
|
34757
34738
|
static get delegatesFocus() { return true; }
|
|
@@ -34962,22 +34943,22 @@ class Panel {
|
|
|
34962
34943
|
// --------------------------------------------------------------------------
|
|
34963
34944
|
renderHeaderContent() {
|
|
34964
34945
|
const { heading, headingLevel, description, hasHeaderContent } = this;
|
|
34965
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
34966
|
-
const descriptionNode = description ? hAsync("span", { class: CSS$
|
|
34967
|
-
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$
|
|
34946
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$L.heading, level: headingLevel }, heading)) : null;
|
|
34947
|
+
const descriptionNode = description ? hAsync("span", { class: CSS$L.description }, description) : null;
|
|
34948
|
+
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$L.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
34968
34949
|
}
|
|
34969
34950
|
renderActionBar() {
|
|
34970
|
-
return (hAsync("div", { class: CSS$
|
|
34951
|
+
return (hAsync("div", { class: CSS$L.actionBarContainer, hidden: !this.hasActionBar }, hAsync("slot", { name: SLOTS$n.actionBar, onSlotchange: this.handleActionBarSlotChange })));
|
|
34971
34952
|
}
|
|
34972
34953
|
/**
|
|
34973
34954
|
* Allows user to override the entire header-content node.
|
|
34974
34955
|
*/
|
|
34975
34956
|
renderHeaderSlottedContent() {
|
|
34976
|
-
return (hAsync("div", { class: CSS$
|
|
34957
|
+
return (hAsync("div", { class: CSS$L.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$n.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
|
34977
34958
|
}
|
|
34978
34959
|
renderHeaderStartActions() {
|
|
34979
34960
|
const { hasStartActions } = this;
|
|
34980
|
-
return (hAsync("div", { class: { [CSS$
|
|
34961
|
+
return (hAsync("div", { class: { [CSS$L.headerActionsStart]: true, [CSS$L.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, hAsync("slot", { name: SLOTS$n.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange })));
|
|
34981
34962
|
}
|
|
34982
34963
|
renderHeaderActionsEnd() {
|
|
34983
34964
|
const { close, hasEndActions, messages, closable, hasMenuItems } = this;
|
|
@@ -34985,13 +34966,13 @@ class Panel {
|
|
|
34985
34966
|
const closableNode = closable ? (hAsync("calcite-action", { "aria-label": text, "data-test": "close", icon: ICONS$a.close, onClick: close, text: text, title: text,
|
|
34986
34967
|
// 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)
|
|
34987
34968
|
ref: this.setCloseRef })) : null;
|
|
34988
|
-
const slotNode = (hAsync("slot", { name: SLOTS$
|
|
34969
|
+
const slotNode = (hAsync("slot", { name: SLOTS$n.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
34989
34970
|
const showContainer = hasEndActions || closableNode || hasMenuItems;
|
|
34990
|
-
return (hAsync("div", { class: { [CSS$
|
|
34971
|
+
return (hAsync("div", { class: { [CSS$L.headerActionsEnd]: true, [CSS$L.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, this.renderMenu(), closableNode));
|
|
34991
34972
|
}
|
|
34992
34973
|
renderMenu() {
|
|
34993
34974
|
const { hasMenuItems, messages, menuOpen } = this;
|
|
34994
|
-
return (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: messages.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$a.menu, slot: SLOTS$
|
|
34975
|
+
return (hAsync("calcite-action-menu", { flipPlacements: ["top", "bottom"], hidden: !hasMenuItems, key: "menu", label: messages.options, open: menuOpen, placement: "bottom-end" }, hAsync("calcite-action", { icon: ICONS$a.menu, slot: SLOTS$w.trigger, text: messages.options }), hAsync("slot", { name: SLOTS$n.headerMenuActions, onSlotchange: this.handleHeaderMenuActionsSlotChange })));
|
|
34995
34976
|
}
|
|
34996
34977
|
renderHeaderNode() {
|
|
34997
34978
|
const { hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems, hasActionBar, } = this;
|
|
@@ -35003,24 +34984,24 @@ class Panel {
|
|
|
35003
34984
|
closable ||
|
|
35004
34985
|
hasMenuItems;
|
|
35005
34986
|
this.showHeaderContent = showHeaderContent;
|
|
35006
|
-
return (hAsync("header", { class: CSS$
|
|
34987
|
+
return (hAsync("header", { class: CSS$L.header, hidden: !(showHeaderContent || hasActionBar) }, hAsync("div", { class: { [CSS$L.headerContainer]: true, [CSS$L.headerContainerBorderEnd]: hasActionBar }, hidden: !showHeaderContent }, this.renderHeaderStartActions(), this.renderHeaderSlottedContent(), headerContentNode, this.renderHeaderActionsEnd()), this.renderActionBar()));
|
|
35007
34988
|
}
|
|
35008
34989
|
renderFooterNode() {
|
|
35009
34990
|
const { hasFooterContent, hasFooterActions } = this;
|
|
35010
34991
|
const showFooter = hasFooterContent || hasFooterActions;
|
|
35011
|
-
return (hAsync("footer", { class: CSS$
|
|
34992
|
+
return (hAsync("footer", { class: CSS$L.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 })));
|
|
35012
34993
|
}
|
|
35013
34994
|
renderContent() {
|
|
35014
|
-
return (hAsync("div", { class: CSS$
|
|
34995
|
+
return (hAsync("div", { class: CSS$L.contentWrapper, onScroll: this.panelScrollHandler,
|
|
35015
34996
|
// 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)
|
|
35016
34997
|
ref: this.setPanelScrollEl }, hAsync("slot", null), this.renderFab()));
|
|
35017
34998
|
}
|
|
35018
34999
|
renderFab() {
|
|
35019
|
-
return (hAsync("div", { class: CSS$
|
|
35000
|
+
return (hAsync("div", { class: CSS$L.fabContainer, hidden: !this.hasFab }, hAsync("slot", { name: SLOTS$n.fab, onSlotchange: this.handleFabSlotChange })));
|
|
35020
35001
|
}
|
|
35021
35002
|
render() {
|
|
35022
35003
|
const { loading, panelKeyDownHandler, closed, closable } = this;
|
|
35023
|
-
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$
|
|
35004
|
+
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$L.container, hidden: closed, onKeyDown: panelKeyDownHandler, tabIndex: closable ? 0 : -1,
|
|
35024
35005
|
// 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)
|
|
35025
35006
|
ref: this.setContainerRef }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
35026
35007
|
return (hAsync(Fragment, null, loading ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
@@ -35066,7 +35047,7 @@ class Panel {
|
|
|
35066
35047
|
}; }
|
|
35067
35048
|
}
|
|
35068
35049
|
|
|
35069
|
-
const CSS$
|
|
35050
|
+
const CSS$s = {
|
|
35070
35051
|
sticky: "sticky-pos",
|
|
35071
35052
|
};
|
|
35072
35053
|
var ICON_TYPES$1;
|
|
@@ -35075,16 +35056,16 @@ var ICON_TYPES$1;
|
|
|
35075
35056
|
ICON_TYPES["square"] = "square";
|
|
35076
35057
|
ICON_TYPES["grip"] = "grip";
|
|
35077
35058
|
})(ICON_TYPES$1 || (ICON_TYPES$1 = {}));
|
|
35078
|
-
const SLOTS$
|
|
35059
|
+
const SLOTS$d = {
|
|
35079
35060
|
menuActions: "menu-actions",
|
|
35080
35061
|
};
|
|
35081
35062
|
|
|
35082
|
-
const CSS$
|
|
35063
|
+
const CSS$r = {
|
|
35083
35064
|
heading: "heading",
|
|
35084
35065
|
container: "container",
|
|
35085
35066
|
indented: "container--indented",
|
|
35086
35067
|
};
|
|
35087
|
-
const SLOTS$
|
|
35068
|
+
const SLOTS$c = {
|
|
35088
35069
|
parentItem: "parent-item",
|
|
35089
35070
|
};
|
|
35090
35071
|
|
|
@@ -35229,7 +35210,7 @@ function removeItem(event) {
|
|
|
35229
35210
|
}
|
|
35230
35211
|
const item = event.target;
|
|
35231
35212
|
const selectedValues = this.selectedValues;
|
|
35232
|
-
if (item.parentElement.tagName === "CALCITE-PICK-LIST-GROUP" && item.slot === SLOTS$
|
|
35213
|
+
if (item.parentElement.tagName === "CALCITE-PICK-LIST-GROUP" && item.slot === SLOTS$c.parentItem) {
|
|
35233
35214
|
item.parentElement.remove();
|
|
35234
35215
|
Array.from(item.parentElement.children).forEach((item) => selectedValues.delete(item.value));
|
|
35235
35216
|
}
|
|
@@ -35405,11 +35386,11 @@ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handle
|
|
|
35405
35386
|
dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: "assistive-text",
|
|
35406
35387
|
// 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)
|
|
35407
35388
|
ref: storeAssistiveEl })) : null,
|
|
35408
|
-
hAsync("header", { class: { [CSS$
|
|
35389
|
+
hAsync("header", { class: { [CSS$s.sticky]: true } },
|
|
35409
35390
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilterEvent, placeholder: filterPlaceholder, value: filterText,
|
|
35410
35391
|
// 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)
|
|
35411
35392
|
ref: setFilterEl })) : null,
|
|
35412
|
-
hAsync("slot", { name: SLOTS$
|
|
35393
|
+
hAsync("slot", { name: SLOTS$d.menuActions })),
|
|
35413
35394
|
loading ? hAsync("calcite-scrim", { loading: loading }) : null,
|
|
35414
35395
|
defaultSlot)));
|
|
35415
35396
|
};
|
|
@@ -35594,16 +35575,16 @@ class PickListGroup {
|
|
|
35594
35575
|
// --------------------------------------------------------------------------
|
|
35595
35576
|
render() {
|
|
35596
35577
|
const { el, groupTitle, headingLevel } = this;
|
|
35597
|
-
const hasParentItem = getSlotted(el, SLOTS$
|
|
35578
|
+
const hasParentItem = getSlotted(el, SLOTS$c.parentItem) !== null;
|
|
35598
35579
|
const sectionClasses = {
|
|
35599
|
-
[CSS$
|
|
35600
|
-
[CSS$
|
|
35580
|
+
[CSS$r.container]: true,
|
|
35581
|
+
[CSS$r.indented]: hasParentItem,
|
|
35601
35582
|
};
|
|
35602
35583
|
const title = groupTitle;
|
|
35603
35584
|
const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
|
|
35604
35585
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
35605
35586
|
const level = headingLevel || relativeLevel;
|
|
35606
|
-
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$
|
|
35587
|
+
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$r.heading, level: level }, title)) : null, hAsync("slot", { name: SLOTS$c.parentItem }), hAsync("section", { class: sectionClasses }, hAsync("slot", null))));
|
|
35607
35588
|
}
|
|
35608
35589
|
get el() { return getElement(this); }
|
|
35609
35590
|
static get style() { return pickListGroupCss; }
|
|
@@ -35620,7 +35601,7 @@ class PickListGroup {
|
|
|
35620
35601
|
}; }
|
|
35621
35602
|
}
|
|
35622
35603
|
|
|
35623
|
-
const CSS$
|
|
35604
|
+
const CSS$q = {
|
|
35624
35605
|
actions: "actions",
|
|
35625
35606
|
actionsEnd: "actions--end",
|
|
35626
35607
|
actionsStart: "actions--start",
|
|
@@ -35639,7 +35620,7 @@ const ICONS$5 = {
|
|
|
35639
35620
|
checked: "check",
|
|
35640
35621
|
remove: "x",
|
|
35641
35622
|
};
|
|
35642
|
-
const SLOTS$
|
|
35623
|
+
const SLOTS$b = {
|
|
35643
35624
|
actionsEnd: "actions-end",
|
|
35644
35625
|
actionsStart: "actions-start",
|
|
35645
35626
|
};
|
|
@@ -35782,28 +35763,28 @@ class PickListItem {
|
|
|
35782
35763
|
return null;
|
|
35783
35764
|
}
|
|
35784
35765
|
return (hAsync("span", { class: {
|
|
35785
|
-
[CSS$
|
|
35786
|
-
[CSS$
|
|
35766
|
+
[CSS$q.icon]: true,
|
|
35767
|
+
[CSS$q.iconDot]: icon === ICON_TYPES$1.circle,
|
|
35787
35768
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? (hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS$5.checked, scale: "s" })) : null));
|
|
35788
35769
|
}
|
|
35789
35770
|
renderRemoveAction() {
|
|
35790
|
-
return this.removable ? (hAsync("calcite-action", { class: CSS$
|
|
35771
|
+
return this.removable ? (hAsync("calcite-action", { class: CSS$q.remove, icon: ICONS$5.remove, onClick: this.removeClickHandler, slot: SLOTS$b.actionsEnd, text: this.messages.remove })) : null;
|
|
35791
35772
|
}
|
|
35792
35773
|
renderActionsStart() {
|
|
35793
35774
|
const { el } = this;
|
|
35794
|
-
const hasActionsStart = getSlotted(el, SLOTS$
|
|
35795
|
-
return hasActionsStart ? (hAsync("div", { class: { [CSS$
|
|
35775
|
+
const hasActionsStart = getSlotted(el, SLOTS$b.actionsStart);
|
|
35776
|
+
return hasActionsStart ? (hAsync("div", { class: { [CSS$q.actions]: true, [CSS$q.actionsStart]: true } }, hAsync("slot", { name: SLOTS$b.actionsStart }))) : null;
|
|
35796
35777
|
}
|
|
35797
35778
|
renderActionsEnd() {
|
|
35798
35779
|
const { el, removable } = this;
|
|
35799
|
-
const hasActionsEnd = getSlotted(el, SLOTS$
|
|
35800
|
-
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$
|
|
35780
|
+
const hasActionsEnd = getSlotted(el, SLOTS$b.actionsEnd);
|
|
35781
|
+
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$q.actions]: true, [CSS$q.actionsEnd]: true } }, hAsync("slot", { name: SLOTS$b.actionsEnd }), this.renderRemoveAction())) : null;
|
|
35801
35782
|
}
|
|
35802
35783
|
render() {
|
|
35803
35784
|
const { description, label } = this;
|
|
35804
|
-
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$
|
|
35785
|
+
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$q.label, onClick: this.pickListClickHandler, onKeyDown: this.pickListKeyDownHandler, tabIndex: 0,
|
|
35805
35786
|
// 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)
|
|
35806
|
-
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$
|
|
35787
|
+
ref: (focusEl) => (this.focusEl = focusEl) }, hAsync("div", { "aria-checked": toAriaBoolean(this.selected), class: CSS$q.textContainer, role: "menuitemcheckbox" }, hAsync("span", { class: CSS$q.title }, label), description ? hAsync("span", { class: CSS$q.description }, description) : null)), this.renderActionsEnd()));
|
|
35807
35788
|
}
|
|
35808
35789
|
static get assetsDirs() { return ["assets"]; }
|
|
35809
35790
|
get el() { return getElement(this); }
|
|
@@ -35846,7 +35827,7 @@ class PickListItem {
|
|
|
35846
35827
|
}; }
|
|
35847
35828
|
}
|
|
35848
35829
|
|
|
35849
|
-
const CSS$
|
|
35830
|
+
const CSS$p = {
|
|
35850
35831
|
container: "container",
|
|
35851
35832
|
imageContainer: "image-container",
|
|
35852
35833
|
closeButtonContainer: "close-button-container",
|
|
@@ -35940,7 +35921,7 @@ class PopoverManager {
|
|
|
35940
35921
|
}
|
|
35941
35922
|
}
|
|
35942
35923
|
|
|
35943
|
-
const CSS$
|
|
35924
|
+
const CSS$o = {
|
|
35944
35925
|
arrow: "calcite-floating-ui-arrow",
|
|
35945
35926
|
arrowStroke: "calcite-floating-ui-arrow__stroke",
|
|
35946
35927
|
};
|
|
@@ -35970,8 +35951,8 @@ const FloatingArrow = ({ floatingLayout, key, ref, }) => {
|
|
|
35970
35951
|
` L${width - svgX},${height}` +
|
|
35971
35952
|
` Q${svgX},${height} ${svgX},${height}` +
|
|
35972
35953
|
" Z";
|
|
35973
|
-
return (hAsync("svg", { "aria-hidden": "true", class: CSS$
|
|
35974
|
-
strokeWidth > 0 && (hAsync("path", { class: CSS$
|
|
35954
|
+
return (hAsync("svg", { "aria-hidden": "true", class: CSS$o.arrow, height: width, key: key, ref: ref, viewBox: `0 0 ${width} ${width + (!isVertical ? strokeWidth : 0)}`, width: width + (isVertical ? strokeWidth : 0) },
|
|
35955
|
+
strokeWidth > 0 && (hAsync("path", { class: CSS$o.arrowStroke, d: dValue, fill: "none", "stroke-width": strokeWidth + 1 })),
|
|
35975
35956
|
hAsync("path", { d: dValue, stroke: "none" })));
|
|
35976
35957
|
};
|
|
35977
35958
|
|
|
@@ -36223,14 +36204,14 @@ class Popover {
|
|
|
36223
36204
|
// --------------------------------------------------------------------------
|
|
36224
36205
|
renderCloseButton() {
|
|
36225
36206
|
const { messages, closable } = this;
|
|
36226
|
-
return closable ? (hAsync("div", { class: CSS$
|
|
36207
|
+
return closable ? (hAsync("div", { class: CSS$p.closeButtonContainer, key: CSS$p.closeButtonContainer }, hAsync("calcite-action", { appearance: "transparent", class: CSS$p.closeButton, onClick: this.hide, scale: this.scale, text: messages.close,
|
|
36227
36208
|
// 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)
|
|
36228
36209
|
ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : this.scale })))) : null;
|
|
36229
36210
|
}
|
|
36230
36211
|
renderHeader() {
|
|
36231
36212
|
const { heading, headingLevel } = this;
|
|
36232
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
36233
|
-
return headingNode ? (hAsync("div", { class: CSS$
|
|
36213
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$p.heading, level: headingLevel }, heading)) : null;
|
|
36214
|
+
return headingNode ? (hAsync("div", { class: CSS$p.header, key: CSS$p.header }, headingNode, this.renderCloseButton())) : null;
|
|
36234
36215
|
}
|
|
36235
36216
|
render() {
|
|
36236
36217
|
const { effectiveReferenceElement, heading, label, open, pointerDisabled, floatingLayout } = this;
|
|
@@ -36245,9 +36226,9 @@ class Popover {
|
|
|
36245
36226
|
},
|
|
36246
36227
|
// 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)
|
|
36247
36228
|
ref: this.setTransitionEl }, arrowNode, hAsync("div", { class: {
|
|
36248
|
-
[CSS$
|
|
36249
|
-
[CSS$
|
|
36250
|
-
} }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
36229
|
+
[CSS$p.hasHeader]: !!heading,
|
|
36230
|
+
[CSS$p.container]: true,
|
|
36231
|
+
} }, this.renderHeader(), hAsync("div", { class: CSS$p.content }, hAsync("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
36251
36232
|
}
|
|
36252
36233
|
static get assetsDirs() { return ["assets"]; }
|
|
36253
36234
|
get el() { return getElement(this); }
|
|
@@ -36341,7 +36322,7 @@ class Progress {
|
|
|
36341
36322
|
}; }
|
|
36342
36323
|
}
|
|
36343
36324
|
|
|
36344
|
-
const CSS$
|
|
36325
|
+
const CSS$n = {
|
|
36345
36326
|
container: "container",
|
|
36346
36327
|
};
|
|
36347
36328
|
|
|
@@ -36618,7 +36599,7 @@ class RadioButton {
|
|
|
36618
36599
|
// --------------------------------------------------------------------------
|
|
36619
36600
|
render() {
|
|
36620
36601
|
const tabIndex = this.getTabIndex();
|
|
36621
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$
|
|
36602
|
+
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.handleKeyDown }, hAsync("div", { "aria-checked": toAriaBoolean(this.checked), "aria-label": getLabelText(this), class: CSS$n.container, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, role: "radio", tabIndex: tabIndex,
|
|
36622
36603
|
// 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)
|
|
36623
36604
|
ref: this.setContainerEl }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
36624
36605
|
}
|
|
@@ -37045,7 +37026,7 @@ class Rating {
|
|
|
37045
37026
|
}; }
|
|
37046
37027
|
}
|
|
37047
37028
|
|
|
37048
|
-
const CSS$
|
|
37029
|
+
const CSS$m = {
|
|
37049
37030
|
scrim: "scrim",
|
|
37050
37031
|
content: "content",
|
|
37051
37032
|
};
|
|
@@ -37115,7 +37096,7 @@ class Scrim {
|
|
|
37115
37096
|
// --------------------------------------------------------------------------
|
|
37116
37097
|
render() {
|
|
37117
37098
|
const { hasContent, loading, messages } = this;
|
|
37118
|
-
return (hAsync("div", { class: CSS$
|
|
37099
|
+
return (hAsync("div", { class: CSS$m.scrim }, loading ? (hAsync("calcite-loader", { label: messages.loading, ref: this.storeLoaderEl, scale: this.loaderScale })) : null, hAsync("div", { class: CSS$m.content, hidden: !hasContent }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }))));
|
|
37119
37100
|
}
|
|
37120
37101
|
getScale(size) {
|
|
37121
37102
|
if (size < BREAKPOINTS.s) {
|
|
@@ -37387,10 +37368,10 @@ class SegmentedControl {
|
|
|
37387
37368
|
}; }
|
|
37388
37369
|
}
|
|
37389
37370
|
|
|
37390
|
-
const SLOTS$
|
|
37371
|
+
const SLOTS$a = {
|
|
37391
37372
|
input: "input",
|
|
37392
37373
|
};
|
|
37393
|
-
const CSS$
|
|
37374
|
+
const CSS$l = {
|
|
37394
37375
|
segmentedControlItemIcon: "segmented-control-item-icon",
|
|
37395
37376
|
};
|
|
37396
37377
|
|
|
@@ -37419,8 +37400,8 @@ class SegmentedControlItem {
|
|
|
37419
37400
|
//--------------------------------------------------------------------------
|
|
37420
37401
|
render() {
|
|
37421
37402
|
const { appearance, checked, layout, scale, value } = this;
|
|
37422
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
37423
|
-
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$
|
|
37403
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$l.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
37404
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$l.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
37424
37405
|
return (hAsync(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, hAsync("label", { class: {
|
|
37425
37406
|
"label--scale-s": scale === "s",
|
|
37426
37407
|
"label--scale-m": scale === "m",
|
|
@@ -37428,7 +37409,7 @@ class SegmentedControlItem {
|
|
|
37428
37409
|
"label--horizontal": layout === "horizontal",
|
|
37429
37410
|
"label--outline": appearance === "outline",
|
|
37430
37411
|
"label--outline-fill": appearance === "outline-fill",
|
|
37431
|
-
} }, this.iconStart ? iconStartEl : null, hAsync("slot", null, value), hAsync("slot", { name: SLOTS$
|
|
37412
|
+
} }, this.iconStart ? iconStartEl : null, hAsync("slot", null, value), hAsync("slot", { name: SLOTS$a.input }), this.iconEnd ? iconEndEl : null)));
|
|
37432
37413
|
}
|
|
37433
37414
|
get el() { return getElement(this); }
|
|
37434
37415
|
static get watchers() { return {
|
|
@@ -37454,7 +37435,7 @@ class SegmentedControlItem {
|
|
|
37454
37435
|
}; }
|
|
37455
37436
|
}
|
|
37456
37437
|
|
|
37457
|
-
const CSS$
|
|
37438
|
+
const CSS$k = {
|
|
37458
37439
|
icon: "icon",
|
|
37459
37440
|
iconContainer: "icon-container",
|
|
37460
37441
|
select: "select",
|
|
@@ -37641,10 +37622,10 @@ class Select {
|
|
|
37641
37622
|
//
|
|
37642
37623
|
//--------------------------------------------------------------------------
|
|
37643
37624
|
renderChevron() {
|
|
37644
|
-
return (hAsync("div", { class: CSS$
|
|
37625
|
+
return (hAsync("div", { class: CSS$k.iconContainer }, hAsync("calcite-icon", { class: CSS$k.icon, icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
37645
37626
|
}
|
|
37646
37627
|
render() {
|
|
37647
|
-
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$
|
|
37628
|
+
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$k.select, disabled: this.disabled, onChange: this.handleInternalSelectChange,
|
|
37648
37629
|
// 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)
|
|
37649
37630
|
ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
37650
37631
|
}
|
|
@@ -37675,7 +37656,7 @@ class Select {
|
|
|
37675
37656
|
}; }
|
|
37676
37657
|
}
|
|
37677
37658
|
|
|
37678
|
-
const CSS$
|
|
37659
|
+
const CSS$j = {
|
|
37679
37660
|
scrim: "scrim",
|
|
37680
37661
|
container: "container",
|
|
37681
37662
|
containerOpen: "container--open",
|
|
@@ -37798,12 +37779,12 @@ class Sheet {
|
|
|
37798
37779
|
render() {
|
|
37799
37780
|
const dir = getElementDir(this.el);
|
|
37800
37781
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-label": this.label, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
37801
|
-
[CSS$
|
|
37802
|
-
[CSS$
|
|
37803
|
-
[CSS$
|
|
37782
|
+
[CSS$j.container]: true,
|
|
37783
|
+
[CSS$j.containerOpen]: this.opened,
|
|
37784
|
+
[CSS$j.containerSlottedInShell]: this.slottedInShell,
|
|
37804
37785
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
37805
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
37806
|
-
[CSS$
|
|
37786
|
+
} }, hAsync("calcite-scrim", { class: CSS$j.scrim, onClick: this.handleOutsideClose }), hAsync("div", { class: {
|
|
37787
|
+
[CSS$j.content]: true,
|
|
37807
37788
|
},
|
|
37808
37789
|
// 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)
|
|
37809
37790
|
ref: this.setTransitionEl }, hAsync("slot", null)))));
|
|
@@ -37908,7 +37889,7 @@ class Sheet {
|
|
|
37908
37889
|
}; }
|
|
37909
37890
|
}
|
|
37910
37891
|
|
|
37911
|
-
const CSS$
|
|
37892
|
+
const CSS$i = {
|
|
37912
37893
|
main: "main",
|
|
37913
37894
|
content: "content",
|
|
37914
37895
|
contentBehind: "content--behind",
|
|
@@ -37917,7 +37898,7 @@ const CSS$f = {
|
|
|
37917
37898
|
container: "container",
|
|
37918
37899
|
contentBehindCenterContent: "center-content",
|
|
37919
37900
|
};
|
|
37920
|
-
const SLOTS$
|
|
37901
|
+
const SLOTS$9 = {
|
|
37921
37902
|
centerRow: "center-row",
|
|
37922
37903
|
panelStart: "panel-start",
|
|
37923
37904
|
panelEnd: "panel-end",
|
|
@@ -38007,44 +37988,44 @@ class Shell {
|
|
|
38007
37988
|
//
|
|
38008
37989
|
// --------------------------------------------------------------------------
|
|
38009
37990
|
renderHeader() {
|
|
38010
|
-
return (hAsync("div", { hidden: !this.hasHeader }, hAsync("slot", { key: "header", name: SLOTS$
|
|
37991
|
+
return (hAsync("div", { hidden: !this.hasHeader }, hAsync("slot", { key: "header", name: SLOTS$9.header, onSlotchange: this.handleHeaderSlotChange })));
|
|
38011
37992
|
}
|
|
38012
37993
|
renderFooter() {
|
|
38013
|
-
return (hAsync("div", { class: CSS$
|
|
37994
|
+
return (hAsync("div", { class: CSS$i.footer, hidden: !this.hasFooter, key: "footer" }, hAsync("slot", { name: SLOTS$9.footer, onSlotchange: this.handleFooterSlotChange })));
|
|
38014
37995
|
}
|
|
38015
37996
|
renderAlerts() {
|
|
38016
|
-
return (hAsync("div", { hidden: !this.hasAlerts }, hAsync("slot", { key: "alerts", name: SLOTS$
|
|
37997
|
+
return (hAsync("div", { hidden: !this.hasAlerts }, hAsync("slot", { key: "alerts", name: SLOTS$9.alerts, onSlotchange: this.handleAlertsSlotChange })));
|
|
38017
37998
|
}
|
|
38018
37999
|
renderSheets() {
|
|
38019
|
-
return (hAsync("div", { hidden: !this.hasSheets }, hAsync("slot", { key: "sheets", name: SLOTS$
|
|
38000
|
+
return (hAsync("div", { hidden: !this.hasSheets }, hAsync("slot", { key: "sheets", name: SLOTS$9.sheets, onSlotchange: this.handleSheetsSlotChange })));
|
|
38020
38001
|
}
|
|
38021
38002
|
renderModals() {
|
|
38022
|
-
return (hAsync("div", { hidden: !this.hasModals }, hAsync("slot", { key: "modals", name: SLOTS$
|
|
38003
|
+
return (hAsync("div", { hidden: !this.hasModals }, hAsync("slot", { key: "modals", name: SLOTS$9.modals, onSlotchange: this.handleModalsSlotChange })));
|
|
38023
38004
|
}
|
|
38024
38005
|
renderContent() {
|
|
38025
38006
|
const defaultSlotNode = hAsync("slot", { key: "default-slot" });
|
|
38026
|
-
const deprecatedCenterRowSlotNode = (hAsync("slot", { key: "center-row-slot", name: SLOTS$
|
|
38027
|
-
const panelBottomSlotNode = hAsync("slot", { key: "panel-bottom-slot", name: SLOTS$
|
|
38028
|
-
const panelTopSlotNode = hAsync("slot", { key: "panel-top-slot", name: SLOTS$
|
|
38007
|
+
const deprecatedCenterRowSlotNode = (hAsync("slot", { key: "center-row-slot", name: SLOTS$9.centerRow }));
|
|
38008
|
+
const panelBottomSlotNode = hAsync("slot", { key: "panel-bottom-slot", name: SLOTS$9.panelBottom });
|
|
38009
|
+
const panelTopSlotNode = hAsync("slot", { key: "panel-top-slot", name: SLOTS$9.panelTop });
|
|
38029
38010
|
const contentContainerKey = "content-container";
|
|
38030
38011
|
const content = !!this.contentBehind
|
|
38031
38012
|
? [
|
|
38032
38013
|
hAsync("div", { class: {
|
|
38033
|
-
[CSS$
|
|
38034
|
-
[CSS$
|
|
38014
|
+
[CSS$i.content]: true,
|
|
38015
|
+
[CSS$i.contentBehind]: true,
|
|
38035
38016
|
}, key: contentContainerKey }, defaultSlotNode),
|
|
38036
|
-
hAsync("div", { class: CSS$
|
|
38017
|
+
hAsync("div", { class: CSS$i.contentBehindCenterContent }, panelTopSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
38037
38018
|
]
|
|
38038
38019
|
: [
|
|
38039
|
-
hAsync("div", { class: CSS$
|
|
38020
|
+
hAsync("div", { class: CSS$i.content, key: contentContainerKey }, panelTopSlotNode, defaultSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
38040
38021
|
];
|
|
38041
38022
|
return content;
|
|
38042
38023
|
}
|
|
38043
38024
|
renderMain() {
|
|
38044
|
-
return (hAsync("div", { class: CSS$
|
|
38025
|
+
return (hAsync("div", { class: CSS$i.main }, hAsync("slot", { name: SLOTS$9.panelStart }), this.renderContent(), hAsync("slot", { name: SLOTS$9.panelEnd })));
|
|
38045
38026
|
}
|
|
38046
38027
|
renderPositionedSlots() {
|
|
38047
|
-
return (hAsync("div", { class: CSS$
|
|
38028
|
+
return (hAsync("div", { class: CSS$i.positionedSlotWrapper }, this.renderAlerts(), this.renderModals(), this.renderSheets()));
|
|
38048
38029
|
}
|
|
38049
38030
|
render() {
|
|
38050
38031
|
return (hAsync(Fragment, null, this.renderHeader(), this.renderMain(), this.renderFooter(), this.renderPositionedSlots()));
|
|
@@ -38068,11 +38049,11 @@ class Shell {
|
|
|
38068
38049
|
}; }
|
|
38069
38050
|
}
|
|
38070
38051
|
|
|
38071
|
-
const CSS$
|
|
38052
|
+
const CSS$h = {
|
|
38072
38053
|
actionBarContainer: "action-bar-container",
|
|
38073
38054
|
content: "content",
|
|
38074
38055
|
};
|
|
38075
|
-
const SLOTS$
|
|
38056
|
+
const SLOTS$8 = {
|
|
38076
38057
|
actionBar: "action-bar",
|
|
38077
38058
|
};
|
|
38078
38059
|
|
|
@@ -38107,9 +38088,9 @@ class ShellCenterRow {
|
|
|
38107
38088
|
// --------------------------------------------------------------------------
|
|
38108
38089
|
render() {
|
|
38109
38090
|
const { el } = this;
|
|
38110
|
-
const contentNode = (hAsync("div", { class: CSS$
|
|
38111
|
-
const actionBar = getSlotted(el, SLOTS$
|
|
38112
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$
|
|
38091
|
+
const contentNode = (hAsync("div", { class: CSS$h.content }, hAsync("slot", null)));
|
|
38092
|
+
const actionBar = getSlotted(el, SLOTS$8.actionBar);
|
|
38093
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$h.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$8.actionBar }))) : null;
|
|
38113
38094
|
const children = [actionBarNode, contentNode];
|
|
38114
38095
|
if (actionBar?.position === "end") {
|
|
38115
38096
|
children.reverse();
|
|
@@ -38132,7 +38113,7 @@ class ShellCenterRow {
|
|
|
38132
38113
|
}; }
|
|
38133
38114
|
}
|
|
38134
38115
|
|
|
38135
|
-
const CSS$
|
|
38116
|
+
const CSS$g = {
|
|
38136
38117
|
container: "container",
|
|
38137
38118
|
content: "content",
|
|
38138
38119
|
contentHeader: "content__header",
|
|
@@ -38141,7 +38122,7 @@ const CSS$d = {
|
|
|
38141
38122
|
contentOverlay: "content--overlay",
|
|
38142
38123
|
separator: "separator",
|
|
38143
38124
|
};
|
|
38144
|
-
const SLOTS$
|
|
38125
|
+
const SLOTS$7 = {
|
|
38145
38126
|
actionBar: "action-bar",
|
|
38146
38127
|
header: "header",
|
|
38147
38128
|
};
|
|
@@ -38395,7 +38376,7 @@ class ShellPanel {
|
|
|
38395
38376
|
//
|
|
38396
38377
|
// --------------------------------------------------------------------------
|
|
38397
38378
|
renderHeader() {
|
|
38398
|
-
return (hAsync("div", { class: CSS$
|
|
38379
|
+
return (hAsync("div", { class: CSS$g.contentHeader, hidden: !this.hasHeader, key: "header" }, hAsync("slot", { name: SLOTS$7.header, onSlotchange: this.handleHeaderSlotChange })));
|
|
38399
38380
|
}
|
|
38400
38381
|
render() {
|
|
38401
38382
|
const { collapsed, position, initialContentWidth, initialContentHeight, contentWidth, contentWidthMax, contentWidthMin, contentHeight, contentHeightMax, contentHeightMin, resizable, layout, displayMode, } = this;
|
|
@@ -38412,7 +38393,7 @@ class ShellPanel {
|
|
|
38412
38393
|
: null;
|
|
38413
38394
|
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"
|
|
38414
38395
|
? contentHeight ?? initialContentHeight
|
|
38415
|
-
: contentWidth ?? initialContentWidth, class: CSS$
|
|
38396
|
+
: contentWidth ?? initialContentWidth, class: CSS$g.separator, key: "separator", onKeyDown: this.separatorKeyDown, role: "separator", tabIndex: 0, "touch-action": "none",
|
|
38416
38397
|
// 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)
|
|
38417
38398
|
ref: this.connectSeparator })) : null;
|
|
38418
38399
|
const getAnimationDir = () => {
|
|
@@ -38428,20 +38409,20 @@ class ShellPanel {
|
|
|
38428
38409
|
};
|
|
38429
38410
|
const contentNode = (hAsync("div", { class: {
|
|
38430
38411
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
38431
|
-
[CSS$
|
|
38432
|
-
[CSS$
|
|
38433
|
-
[CSS$
|
|
38412
|
+
[CSS$g.content]: true,
|
|
38413
|
+
[CSS$g.contentOverlay]: displayMode === "overlay",
|
|
38414
|
+
[CSS$g.contentFloat]: displayMode === "float",
|
|
38434
38415
|
[CSS_UTILITY.calciteAnimate]: displayMode === "overlay",
|
|
38435
38416
|
[getAnimationDir()]: displayMode === "overlay",
|
|
38436
38417
|
}, hidden: collapsed, key: "content", style: style,
|
|
38437
38418
|
// 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)
|
|
38438
|
-
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
38439
|
-
const actionBarNode = (hAsync("slot", { key: "action-bar", name: SLOTS$
|
|
38419
|
+
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$g.contentBody }, hAsync("slot", null)), separatorNode));
|
|
38420
|
+
const actionBarNode = (hAsync("slot", { key: "action-bar", name: SLOTS$7.actionBar, onSlotchange: this.handleActionBarSlotChange }));
|
|
38440
38421
|
const mainNodes = [actionBarNode, contentNode];
|
|
38441
38422
|
if (position === "end") {
|
|
38442
38423
|
mainNodes.reverse();
|
|
38443
38424
|
}
|
|
38444
|
-
return hAsync("div", { class: { [CSS$
|
|
38425
|
+
return hAsync("div", { class: { [CSS$g.container]: true } }, mainNodes);
|
|
38445
38426
|
}
|
|
38446
38427
|
// --------------------------------------------------------------------------
|
|
38447
38428
|
//
|
|
@@ -38542,7 +38523,7 @@ class ShellPanel {
|
|
|
38542
38523
|
}; }
|
|
38543
38524
|
}
|
|
38544
38525
|
|
|
38545
|
-
const CSS$
|
|
38526
|
+
const CSS$f = {
|
|
38546
38527
|
handleLabel: "handle__label",
|
|
38547
38528
|
handleLabelMinValue: "handle__label--minValue",
|
|
38548
38529
|
handleLabelValue: "handle__label--value",
|
|
@@ -38741,8 +38722,8 @@ class Slider {
|
|
|
38741
38722
|
const leftThumbOffset = `${mirror ? 100 - minInterval : minInterval}%`;
|
|
38742
38723
|
const rightThumbOffset = `${mirror ? maxInterval : 100 - maxInterval}%`;
|
|
38743
38724
|
const valueIsRange = isRange(this.value);
|
|
38744
|
-
const handleLabelMinValueClasses = `${CSS$
|
|
38745
|
-
const handleLabelValueClasses = `${CSS$
|
|
38725
|
+
const handleLabelMinValueClasses = `${CSS$f.handleLabel} ${CSS$f.handleLabelMinValue}`;
|
|
38726
|
+
const handleLabelValueClasses = `${CSS$f.handleLabel} ${CSS$f.handleLabelValue}`;
|
|
38746
38727
|
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: {
|
|
38747
38728
|
thumb: true,
|
|
38748
38729
|
"thumb--value": true,
|
|
@@ -38878,8 +38859,8 @@ class Slider {
|
|
|
38878
38859
|
const displayedTickValue = this.determineGroupSeparator(tick);
|
|
38879
38860
|
const tickLabel = (hAsync("span", { class: {
|
|
38880
38861
|
tick__label: true,
|
|
38881
|
-
[CSS$
|
|
38882
|
-
[CSS$
|
|
38862
|
+
[CSS$f.tickMin]: isMinTickLabel,
|
|
38863
|
+
[CSS$f.tickMax]: isMaxTickLabel,
|
|
38883
38864
|
} }, displayedTickValue));
|
|
38884
38865
|
if (this.labelTicks && !this.hasHistogram && !valueIsRange) {
|
|
38885
38866
|
return tickLabel;
|
|
@@ -39437,7 +39418,7 @@ class Slider {
|
|
|
39437
39418
|
}; }
|
|
39438
39419
|
}
|
|
39439
39420
|
|
|
39440
|
-
const CSS$
|
|
39421
|
+
const CSS$e = {
|
|
39441
39422
|
sortItem: "sort-item",
|
|
39442
39423
|
container: "container",
|
|
39443
39424
|
containerHorizontal: "container--horizontal",
|
|
@@ -39565,9 +39546,9 @@ class SortableList {
|
|
|
39565
39546
|
const { layout } = this;
|
|
39566
39547
|
const horizontal = layout === "horizontal" || false;
|
|
39567
39548
|
return (hAsync("div", { class: {
|
|
39568
|
-
[CSS$
|
|
39569
|
-
[CSS$
|
|
39570
|
-
[CSS$
|
|
39549
|
+
[CSS$e.container]: true,
|
|
39550
|
+
[CSS$e.containerVertical]: !horizontal,
|
|
39551
|
+
[CSS$e.containerHorizontal]: horizontal,
|
|
39571
39552
|
} }, hAsync("slot", null)));
|
|
39572
39553
|
}
|
|
39573
39554
|
get el() { return getElement(this); }
|
|
@@ -39591,7 +39572,7 @@ class SortableList {
|
|
|
39591
39572
|
}; }
|
|
39592
39573
|
}
|
|
39593
39574
|
|
|
39594
|
-
const CSS$
|
|
39575
|
+
const CSS$d = {
|
|
39595
39576
|
container: "split-button__container",
|
|
39596
39577
|
dividerContainer: "split-button__divider-container",
|
|
39597
39578
|
divider: "split-button__divider",
|
|
@@ -39670,13 +39651,13 @@ class SplitButton {
|
|
|
39670
39651
|
}
|
|
39671
39652
|
render() {
|
|
39672
39653
|
const widthClasses = {
|
|
39673
|
-
[CSS$
|
|
39674
|
-
[CSS$
|
|
39675
|
-
[CSS$
|
|
39676
|
-
[CSS$
|
|
39654
|
+
[CSS$d.container]: true,
|
|
39655
|
+
[CSS$d.widthAuto]: this.width === "auto",
|
|
39656
|
+
[CSS$d.widthHalf]: this.width === "half",
|
|
39657
|
+
[CSS$d.widthFull]: this.width === "full",
|
|
39677
39658
|
};
|
|
39678
39659
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
39679
|
-
return (hAsync("div", { class: widthClasses }, 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$
|
|
39660
|
+
return (hAsync("div", { class: widthClasses }, 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$d.dividerContainer }, hAsync("div", { class: CSS$d.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))));
|
|
39680
39661
|
}
|
|
39681
39662
|
get dropdownIcon() {
|
|
39682
39663
|
return this.dropdownIconType === "chevron"
|
|
@@ -39763,25 +39744,25 @@ class Stack {
|
|
|
39763
39744
|
// --------------------------------------------------------------------------
|
|
39764
39745
|
renderActionsStart() {
|
|
39765
39746
|
const { hasActionsStart } = this;
|
|
39766
|
-
return (hAsync("div", { class: CSS$
|
|
39747
|
+
return (hAsync("div", { class: CSS$y.actionsStart, hidden: !hasActionsStart, key: "actions-start-container" }, hAsync("slot", { name: SLOTS$g.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
39767
39748
|
}
|
|
39768
39749
|
renderActionsEnd() {
|
|
39769
39750
|
const { hasActionsEnd } = this;
|
|
39770
|
-
return (hAsync("div", { class: CSS$
|
|
39751
|
+
return (hAsync("div", { class: CSS$y.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container" }, hAsync("slot", { name: SLOTS$g.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
|
|
39771
39752
|
}
|
|
39772
39753
|
renderContentStart() {
|
|
39773
39754
|
const { hasContentStart } = this;
|
|
39774
|
-
return (hAsync("div", { class: CSS$
|
|
39755
|
+
return (hAsync("div", { class: CSS$y.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$g.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
39775
39756
|
}
|
|
39776
39757
|
renderDefaultContent() {
|
|
39777
|
-
return (hAsync("div", { class: CSS$
|
|
39758
|
+
return (hAsync("div", { class: CSS$y.content }, hAsync("slot", null)));
|
|
39778
39759
|
}
|
|
39779
39760
|
renderContentEnd() {
|
|
39780
39761
|
const { hasContentEnd } = this;
|
|
39781
|
-
return (hAsync("div", { class: CSS$
|
|
39762
|
+
return (hAsync("div", { class: CSS$y.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$g.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
39782
39763
|
}
|
|
39783
39764
|
render() {
|
|
39784
|
-
return (hAsync(Host, null, hAsync("div", { class: CSS$
|
|
39765
|
+
return (hAsync(Host, null, hAsync("div", { class: CSS$y.container }, this.renderActionsStart(), this.renderContentStart(), this.renderDefaultContent(), this.renderContentEnd(), this.renderActionsEnd())));
|
|
39785
39766
|
}
|
|
39786
39767
|
static get style() { return stackCss; }
|
|
39787
39768
|
static get cmpMeta() { return {
|
|
@@ -40679,7 +40660,7 @@ class TabNav {
|
|
|
40679
40660
|
}; }
|
|
40680
40661
|
}
|
|
40681
40662
|
|
|
40682
|
-
const CSS$
|
|
40663
|
+
const CSS$c = {
|
|
40683
40664
|
closeButton: "close-button",
|
|
40684
40665
|
container: "container",
|
|
40685
40666
|
content: "content",
|
|
@@ -40799,18 +40780,18 @@ class TabTitle {
|
|
|
40799
40780
|
render() {
|
|
40800
40781
|
const { el, closed } = this;
|
|
40801
40782
|
const id = el.id || this.guid;
|
|
40802
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
40803
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
40783
|
+
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$c.titleIcon]: true, [CSS$c.iconStart]: true }, flipRtl: this.iconFlipRtl === "start" || this.iconFlipRtl === "both", icon: this.iconStart, scale: this.scale === "l" ? "m" : "s" }));
|
|
40784
|
+
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$c.titleIcon]: true, [CSS$c.iconEnd]: true }, flipRtl: this.iconFlipRtl === "end" || this.iconFlipRtl === "both", icon: this.iconEnd, scale: this.scale === "l" ? "m" : "s" }));
|
|
40804
40785
|
return (hAsync(Host, { "aria-controls": this.controls, "aria-selected": toAriaBoolean(this.selected), id: id, role: "tab", tabIndex: this.selected ? 0 : -1 }, hAsync("div", { class: {
|
|
40805
40786
|
container: true,
|
|
40806
|
-
[CSS$
|
|
40787
|
+
[CSS$c.iconPresent]: !!this.iconStart || !!this.iconEnd,
|
|
40807
40788
|
}, hidden: closed,
|
|
40808
40789
|
// 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)
|
|
40809
|
-
ref: (el) => this.resizeObserver?.observe(el) }, hAsync("div", { class: { [CSS$
|
|
40790
|
+
ref: (el) => this.resizeObserver?.observe(el) }, hAsync("div", { class: { [CSS$c.content]: true, [CSS$c.contentHasText]: this.hasText } }, this.iconStart ? iconStartEl : null, hAsync("slot", null), this.iconEnd ? iconEndEl : null), this.renderCloseButton())));
|
|
40810
40791
|
}
|
|
40811
40792
|
renderCloseButton() {
|
|
40812
40793
|
const { closable, messages } = this;
|
|
40813
|
-
return closable ? (hAsync("button", { "aria-label": messages.close, class: CSS$
|
|
40794
|
+
return closable ? (hAsync("button", { "aria-label": messages.close, class: CSS$c.closeButton, disabled: false, key: CSS$c.closeButton, onClick: this.closeClickHandler, title: messages.close, type: "button",
|
|
40814
40795
|
// 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)
|
|
40815
40796
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$4.close, scale: this.scale === "l" ? "m" : "s" }))) : null;
|
|
40816
40797
|
}
|
|
@@ -40977,6 +40958,883 @@ class TabTitle {
|
|
|
40977
40958
|
}; }
|
|
40978
40959
|
}
|
|
40979
40960
|
|
|
40961
|
+
const CSS$b = {
|
|
40962
|
+
bordered: "bordered",
|
|
40963
|
+
zebra: "zebra",
|
|
40964
|
+
selectionArea: "selection-area",
|
|
40965
|
+
paginationArea: "pagination-area",
|
|
40966
|
+
container: "container",
|
|
40967
|
+
tableContainer: "table-container",
|
|
40968
|
+
tableFixed: "table--fixed",
|
|
40969
|
+
assistiveText: "assistive-text",
|
|
40970
|
+
selectionActions: "selection-actions",
|
|
40971
|
+
};
|
|
40972
|
+
const SLOTS$6 = {
|
|
40973
|
+
selectionActions: "selection-actions",
|
|
40974
|
+
tableHeader: "table-header",
|
|
40975
|
+
tableFooter: "table-footer",
|
|
40976
|
+
};
|
|
40977
|
+
|
|
40978
|
+
const tableCss = "/*!@:host([scale=s])*/[scale=s].sc-calcite-table-h{--calcite-internal-table-cell-padding:0.25rem;--calcite-internal-table-cell-font-size:var(--calcite-font-size--2);--calcite-internal-table-cell-font-size-secondary:var(--calcite-font-size--3)}/*!@:host([scale=m])*/[scale=m].sc-calcite-table-h{--calcite-internal-table-cell-padding:0.5rem;--calcite-internal-table-cell-font-size:var(--calcite-font-size--1);--calcite-internal-table-cell-font-size-secondary:var(--calcite-font-size--2)}/*!@:host([scale=l])*/[scale=l].sc-calcite-table-h{--calcite-internal-table-cell-padding:1rem;--calcite-internal-table-cell-font-size:var(--calcite-font-size-0);--calcite-internal-table-cell-font-size-secondary:var(--calcite-font-size--1)}/*!@:host*/.sc-calcite-table-h{display:table}/*!@.container*/.container.sc-calcite-table{max-inline-size:100vw;inline-size:100%}/*!@.table-container*/.table-container.sc-calcite-table{overflow-x:scroll;white-space:nowrap}/*!@.table-container:not(.bordered)*/.table-container.sc-calcite-table:not(.bordered){border-block-end:1px solid var(--calcite-ui-border-3)}/*!@.assistive-text*/.assistive-text.sc-calcite-table{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}/*!@table*/table.sc-calcite-table{inline-size:100%;border-collapse:collapse;overflow-x:scroll;border-block-start:1px solid var(--calcite-ui-border-3);border-inline-start:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3)}/*!@tbody*/tbody.sc-calcite-table{border-block-end:1px solid var(--calcite-ui-border-3)}/*!@.table--fixed*/.table--fixed.sc-calcite-table{table-layout:fixed}/*!@.bordered ::slotted(calcite-table-row)*/.bordered .sc-calcite-table-s>calcite-table-row{--calcite-table-row-border-color:var(--calcite-ui-border-3)}/*!@.zebra ::slotted(calcite-table-row:nth-child(2n+1))*/.zebra .sc-calcite-table-s>calcite-table-row:nth-child(2n+1){--calcite-table-row-background:var(--calcite-ui-foreground-2)}/*!@.selection-actions*/.selection-actions.sc-calcite-table{display:flex;flex-direction:row;margin-inline-start:auto}/*!@.selection-area*/.selection-area.sc-calcite-table{display:flex;flex-direction:row;align-items:center;padding-block:var(--calcite-internal-table-cell-padding)}/*!@.selection-area calcite-chip:last-of-type*/.selection-area.sc-calcite-table calcite-chip.sc-calcite-table:last-of-type{margin-inline-end:0.5rem}/*!@.selection-area calcite-chip:last-of-type:not(:first-of-type)*/.selection-area.sc-calcite-table calcite-chip.sc-calcite-table:last-of-type:not(:first-of-type){margin-inline-start:0.5rem}/*!@.selection-area calcite-button*/.selection-area.sc-calcite-table calcite-button.sc-calcite-table{margin-inline-end:1rem}/*!@.pagination-area*/.pagination-area.sc-calcite-table{display:flex;inline-size:100%;flex-direction:row;justify-content:center;padding-block:var(--calcite-internal-table-cell-padding)}/*!@:host([hidden])*/[hidden].sc-calcite-table-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-table{display:none}";
|
|
40979
|
+
|
|
40980
|
+
/**
|
|
40981
|
+
* @slot - A slot for adding `calcite-table-row` or nested `calcite-table` elements.
|
|
40982
|
+
* @slot table-header - A slot for adding `calcite-table-row` containing `calcite-table-header` elements.
|
|
40983
|
+
* @slot table-footer - A slot for adding `calcite-table-row` containing `calcite-table-cell` or `calcite-table-header` elements.
|
|
40984
|
+
* @slot selection-actions - A slot for adding a `calcite-action-bar` or other components to display when `selectionMode` is not `"none"` and one or more `calcite-table-row` is selected.
|
|
40985
|
+
*/
|
|
40986
|
+
class Table {
|
|
40987
|
+
constructor(hostRef) {
|
|
40988
|
+
registerInstance(this, hostRef);
|
|
40989
|
+
this.calciteTableSelect = createEvent(this, "calciteTableSelect", 6);
|
|
40990
|
+
this.calciteTablePageChange = createEvent(this, "calciteTablePageChange", 6);
|
|
40991
|
+
this.calciteInternalTableRowFocusChange = createEvent(this, "calciteInternalTableRowFocusChange", 6);
|
|
40992
|
+
// --------------------------------------------------------------------------
|
|
40993
|
+
//
|
|
40994
|
+
// Private Methods
|
|
40995
|
+
//
|
|
40996
|
+
// --------------------------------------------------------------------------
|
|
40997
|
+
this.getSlottedRows = (el) => {
|
|
40998
|
+
return el
|
|
40999
|
+
?.assignedElements({ flatten: true })
|
|
41000
|
+
?.filter((el) => el?.matches("calcite-table-row"));
|
|
41001
|
+
};
|
|
41002
|
+
this.updateRows = () => {
|
|
41003
|
+
const headRows = this.getSlottedRows(this.tableHeadSlotEl) || [];
|
|
41004
|
+
const bodyRows = this.getSlottedRows(this.tableBodySlotEl) || [];
|
|
41005
|
+
const footRows = this.getSlottedRows(this.tableFootSlotEl) || [];
|
|
41006
|
+
const allRows = [...headRows, ...bodyRows, ...footRows];
|
|
41007
|
+
headRows?.forEach((row) => {
|
|
41008
|
+
const position = headRows?.indexOf(row);
|
|
41009
|
+
row.rowType = "head";
|
|
41010
|
+
row.positionSection = position;
|
|
41011
|
+
row.positionSectionLocalized = this.localizeNumber((position + 1).toString());
|
|
41012
|
+
});
|
|
41013
|
+
bodyRows?.forEach((row) => {
|
|
41014
|
+
const position = bodyRows?.indexOf(row);
|
|
41015
|
+
row.rowType = "body";
|
|
41016
|
+
row.positionSection = position;
|
|
41017
|
+
row.positionSectionLocalized = this.localizeNumber((position + 1).toString());
|
|
41018
|
+
});
|
|
41019
|
+
footRows?.forEach((row) => {
|
|
41020
|
+
const position = footRows?.indexOf(row);
|
|
41021
|
+
row.rowType = "foot";
|
|
41022
|
+
row.positionSection = position;
|
|
41023
|
+
row.positionSectionLocalized = this.localizeNumber((position + 1).toString());
|
|
41024
|
+
});
|
|
41025
|
+
allRows?.forEach((row) => {
|
|
41026
|
+
row.selectionMode = this.selectionMode;
|
|
41027
|
+
row.bodyRowCount = bodyRows?.length;
|
|
41028
|
+
row.positionAll = allRows?.indexOf(row);
|
|
41029
|
+
row.numbered = this.numbered;
|
|
41030
|
+
row.scale = this.scale;
|
|
41031
|
+
row.readCellContentsToAT = this.readCellContentsToAT;
|
|
41032
|
+
});
|
|
41033
|
+
const colCount = headRows[0]?.cellCount || headRows[0]?.querySelectorAll("calcite-table-header")?.length;
|
|
41034
|
+
this.colCount = colCount;
|
|
41035
|
+
this.headRows = headRows;
|
|
41036
|
+
this.bodyRows = bodyRows;
|
|
41037
|
+
this.footRows = footRows;
|
|
41038
|
+
this.allRows = allRows;
|
|
41039
|
+
this.updateSelectedItems();
|
|
41040
|
+
this.paginateRows();
|
|
41041
|
+
};
|
|
41042
|
+
this.handlePaginationChange = () => {
|
|
41043
|
+
const requestedItem = this.paginationEl?.startItem;
|
|
41044
|
+
this.pageStartRow = requestedItem || 1;
|
|
41045
|
+
this.calciteTablePageChange.emit();
|
|
41046
|
+
this.updateRows();
|
|
41047
|
+
};
|
|
41048
|
+
this.paginateRows = () => {
|
|
41049
|
+
this.bodyRows?.forEach((row) => {
|
|
41050
|
+
const rowPos = row.positionSection + 1;
|
|
41051
|
+
const inView = rowPos >= this.pageStartRow && rowPos < this.pageStartRow + this.pageSize;
|
|
41052
|
+
row.hidden = this.pageSize > 0 && !inView && !this.footRows.includes(row);
|
|
41053
|
+
});
|
|
41054
|
+
};
|
|
41055
|
+
this.updateSelectedItems = (emit) => {
|
|
41056
|
+
const selectedItems = this.bodyRows?.filter((el) => el.selected);
|
|
41057
|
+
this.selectedItems = selectedItems;
|
|
41058
|
+
this.selectedCount = selectedItems?.length;
|
|
41059
|
+
this.allRows?.forEach((row) => {
|
|
41060
|
+
row.selectedRowCount = this.selectedCount;
|
|
41061
|
+
row.selectedRowCountLocalized = this.localizeNumber(this.selectedCount);
|
|
41062
|
+
});
|
|
41063
|
+
if (emit) {
|
|
41064
|
+
this.calciteTableSelect.emit();
|
|
41065
|
+
}
|
|
41066
|
+
};
|
|
41067
|
+
this.handleDeselectAllRows = () => {
|
|
41068
|
+
this.bodyRows?.forEach((row) => {
|
|
41069
|
+
row.selected = false;
|
|
41070
|
+
});
|
|
41071
|
+
this.updateSelectedItems(true);
|
|
41072
|
+
};
|
|
41073
|
+
this.setSelectedItems = (elToMatch) => {
|
|
41074
|
+
this.bodyRows?.forEach((el) => {
|
|
41075
|
+
if (elToMatch?.rowType === "head") {
|
|
41076
|
+
el.selected = this.selectedCount !== this.bodyRows?.length;
|
|
41077
|
+
}
|
|
41078
|
+
else {
|
|
41079
|
+
el.selected =
|
|
41080
|
+
elToMatch === el ? !el.selected : this.selectionMode === "multiple" ? el.selected : false;
|
|
41081
|
+
}
|
|
41082
|
+
});
|
|
41083
|
+
this.updateSelectedItems(true);
|
|
41084
|
+
};
|
|
41085
|
+
this.localizeNumber = (value) => {
|
|
41086
|
+
numberStringFormatter.numberFormatOptions = {
|
|
41087
|
+
locale: this.effectiveLocale,
|
|
41088
|
+
numberingSystem: this.numberingSystem,
|
|
41089
|
+
useGrouping: this.groupSeparator,
|
|
41090
|
+
};
|
|
41091
|
+
return numberStringFormatter.localize(value.toString());
|
|
41092
|
+
};
|
|
41093
|
+
this.bordered = false;
|
|
41094
|
+
this.caption = undefined;
|
|
41095
|
+
this.groupSeparator = false;
|
|
41096
|
+
this.layout = "auto";
|
|
41097
|
+
this.numbered = false;
|
|
41098
|
+
this.numberingSystem = undefined;
|
|
41099
|
+
this.pageSize = 0;
|
|
41100
|
+
this.scale = "m";
|
|
41101
|
+
this.selectionMode = "none";
|
|
41102
|
+
this.zebra = false;
|
|
41103
|
+
this.selectedItems = [];
|
|
41104
|
+
this.messages = undefined;
|
|
41105
|
+
this.messageOverrides = undefined;
|
|
41106
|
+
this.colCount = 0;
|
|
41107
|
+
this.pageStartRow = 1;
|
|
41108
|
+
this.selectedCount = 0;
|
|
41109
|
+
this.readCellContentsToAT = undefined;
|
|
41110
|
+
this.defaultMessages = undefined;
|
|
41111
|
+
this.effectiveLocale = "";
|
|
41112
|
+
}
|
|
41113
|
+
handleNumberedChange() {
|
|
41114
|
+
this.updateRows();
|
|
41115
|
+
}
|
|
41116
|
+
onMessagesChange() {
|
|
41117
|
+
/* wired up by t9n util */
|
|
41118
|
+
}
|
|
41119
|
+
effectiveLocaleChange() {
|
|
41120
|
+
updateMessages(this);
|
|
41121
|
+
}
|
|
41122
|
+
//--------------------------------------------------------------------------
|
|
41123
|
+
//
|
|
41124
|
+
// Lifecycle
|
|
41125
|
+
//
|
|
41126
|
+
//--------------------------------------------------------------------------
|
|
41127
|
+
async componentWillLoad() {
|
|
41128
|
+
setUpLoadableComponent(this);
|
|
41129
|
+
await setUpMessages(this);
|
|
41130
|
+
this.readCellContentsToAT = /safari/i.test(getUserAgentString());
|
|
41131
|
+
this.updateRows();
|
|
41132
|
+
}
|
|
41133
|
+
componentDidLoad() {
|
|
41134
|
+
setComponentLoaded(this);
|
|
41135
|
+
}
|
|
41136
|
+
connectedCallback() {
|
|
41137
|
+
connectLocalized(this);
|
|
41138
|
+
connectMessages(this);
|
|
41139
|
+
}
|
|
41140
|
+
disconnectedCallback() {
|
|
41141
|
+
disconnectLocalized(this);
|
|
41142
|
+
disconnectMessages(this);
|
|
41143
|
+
}
|
|
41144
|
+
//--------------------------------------------------------------------------
|
|
41145
|
+
//
|
|
41146
|
+
// Event Listeners
|
|
41147
|
+
//
|
|
41148
|
+
//--------------------------------------------------------------------------
|
|
41149
|
+
calciteChipSelectListener(event) {
|
|
41150
|
+
if (event.composedPath().includes(this.el)) {
|
|
41151
|
+
this.setSelectedItems(event.target);
|
|
41152
|
+
}
|
|
41153
|
+
}
|
|
41154
|
+
calciteInternalTableRowFocusEvent(event) {
|
|
41155
|
+
const cellPosition = event["detail"].cellPosition;
|
|
41156
|
+
const rowPos = event["detail"].rowPosition;
|
|
41157
|
+
const destination = event["detail"].destination;
|
|
41158
|
+
const lastCell = event["detail"].lastCell;
|
|
41159
|
+
const visibleBody = this.bodyRows?.filter((row) => !row.hidden);
|
|
41160
|
+
const visibleAll = this.allRows?.filter((row) => !row.hidden);
|
|
41161
|
+
const lastHeadRow = this.headRows[this.headRows.length - 1]?.positionAll;
|
|
41162
|
+
const firstBodyRow = visibleBody[0]?.positionAll;
|
|
41163
|
+
const lastBodyRow = visibleBody[visibleBody.length - 1]?.positionAll;
|
|
41164
|
+
const firstFootRow = this.footRows[0]?.positionAll;
|
|
41165
|
+
const lastTableRow = visibleAll[visibleAll.length - 1]?.positionAll;
|
|
41166
|
+
const leavingHeader = destination === "next" && rowPos === lastHeadRow;
|
|
41167
|
+
const leavingFooter = destination === "previous" && rowPos === firstFootRow;
|
|
41168
|
+
const enteringHeader = destination === "previous" && rowPos === firstBodyRow;
|
|
41169
|
+
const enteringFooter = destination === "next" && rowPos === lastBodyRow;
|
|
41170
|
+
let rowPosition;
|
|
41171
|
+
switch (destination) {
|
|
41172
|
+
case "first":
|
|
41173
|
+
rowPosition = 0;
|
|
41174
|
+
break;
|
|
41175
|
+
case "last":
|
|
41176
|
+
rowPosition = lastTableRow;
|
|
41177
|
+
break;
|
|
41178
|
+
case "next":
|
|
41179
|
+
rowPosition = leavingHeader ? firstBodyRow : enteringFooter ? firstFootRow : rowPos + 1;
|
|
41180
|
+
break;
|
|
41181
|
+
case "previous":
|
|
41182
|
+
rowPosition = leavingFooter ? lastBodyRow : enteringHeader ? lastHeadRow : rowPos - 1;
|
|
41183
|
+
break;
|
|
41184
|
+
}
|
|
41185
|
+
const destinationCount = this.allRows?.find((row) => row.positionAll === rowPosition)?.cellCount;
|
|
41186
|
+
const adjustedPos = cellPosition > destinationCount ? destinationCount : cellPosition;
|
|
41187
|
+
if (rowPosition !== undefined) {
|
|
41188
|
+
this.calciteInternalTableRowFocusChange.emit({
|
|
41189
|
+
cellPosition: adjustedPos,
|
|
41190
|
+
rowPosition,
|
|
41191
|
+
destination,
|
|
41192
|
+
lastCell,
|
|
41193
|
+
});
|
|
41194
|
+
}
|
|
41195
|
+
}
|
|
41196
|
+
// --------------------------------------------------------------------------
|
|
41197
|
+
//
|
|
41198
|
+
// Render Methods
|
|
41199
|
+
//
|
|
41200
|
+
// --------------------------------------------------------------------------
|
|
41201
|
+
renderSelectionArea() {
|
|
41202
|
+
const outOfViewCount = this.selectedItems?.filter((el) => el.hidden)?.length;
|
|
41203
|
+
const localizedOutOfView = this.localizeNumber(outOfViewCount?.toString());
|
|
41204
|
+
const localizedSelectedCount = this.localizeNumber(this.selectedCount?.toString());
|
|
41205
|
+
const selectionText = `${localizedSelectedCount} ${this.messages.selected}`;
|
|
41206
|
+
const outOfView = `${localizedOutOfView} ${this.messages.hiddenSelected}`;
|
|
41207
|
+
return (hAsync("div", { class: CSS$b.selectionArea }, hAsync("calcite-chip", { kind: this.selectedCount > 0 ? "brand" : "neutral", scale: this.scale, value: selectionText }, selectionText), outOfViewCount > 0 && (hAsync("calcite-chip", { icon: "hide-empty", scale: this.scale, title: outOfView, value: outOfView }, localizedOutOfView)), this.selectedCount > 0 && (hAsync("calcite-button", { "icon-start": "x", kind: "neutral", onClick: this.handleDeselectAllRows, round: true, scale: this.scale, title: `${this.messages.clear} ${selectionText} ${this.messages.row}` }, this.messages.clear)), hAsync("div", { class: CSS$b.selectionActions }, hAsync("slot", { name: SLOTS$6.selectionActions }))));
|
|
41208
|
+
}
|
|
41209
|
+
renderPaginationArea() {
|
|
41210
|
+
return (hAsync("div", { class: CSS$b.paginationArea }, hAsync("calcite-pagination", { groupSeparator: this.groupSeparator, numberingSystem: this.numberingSystem, onCalcitePaginationChange: this.handlePaginationChange, pageSize: this.pageSize, scale: this.scale, startItem: 1, totalItems: this.bodyRows?.length,
|
|
41211
|
+
// 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)
|
|
41212
|
+
ref: (el) => (this.paginationEl = el) })));
|
|
41213
|
+
}
|
|
41214
|
+
renderTHead() {
|
|
41215
|
+
return (hAsync("thead", null, hAsync("slot", { name: SLOTS$6.tableHeader, onSlotchange: this.updateRows, ref: (el) => (this.tableHeadSlotEl = el) })));
|
|
41216
|
+
}
|
|
41217
|
+
renderTBody() {
|
|
41218
|
+
return (hAsync("tbody", null, hAsync("slot", { onSlotchange: this.updateRows, ref: (el) => (this.tableBodySlotEl = el) })));
|
|
41219
|
+
}
|
|
41220
|
+
renderTFoot() {
|
|
41221
|
+
return (hAsync("tfoot", null, hAsync("slot", { name: SLOTS$6.tableFooter, onSlotchange: this.updateRows, ref: (el) => (this.tableFootSlotEl = el) })));
|
|
41222
|
+
}
|
|
41223
|
+
render() {
|
|
41224
|
+
return (hAsync(Host, null, hAsync("div", { class: CSS$b.container }, this.selectionMode !== "none" && this.renderSelectionArea(), hAsync("div", { class: {
|
|
41225
|
+
[CSS$b.bordered]: this.bordered,
|
|
41226
|
+
[CSS$b.zebra]: this.zebra,
|
|
41227
|
+
[CSS$b.tableContainer]: true,
|
|
41228
|
+
} }, hAsync("table", { "aria-colcount": this.colCount, "aria-multiselectable": this.selectionMode === "multiple", "aria-readonly": true, "aria-rowcount": this.allRows?.length, class: { [CSS$b.tableFixed]: this.layout === "fixed" }, role: "grid" }, hAsync("caption", { class: CSS$b.assistiveText }, this.caption), this.renderTHead(), this.renderTBody(), this.renderTFoot())), this.pageSize > 0 && this.renderPaginationArea())));
|
|
41229
|
+
}
|
|
41230
|
+
static get assetsDirs() { return ["assets"]; }
|
|
41231
|
+
get el() { return getElement(this); }
|
|
41232
|
+
static get watchers() { return {
|
|
41233
|
+
"groupSeparator": ["handleNumberedChange"],
|
|
41234
|
+
"numbered": ["handleNumberedChange"],
|
|
41235
|
+
"numberingSystem": ["handleNumberedChange"],
|
|
41236
|
+
"pageSize": ["handleNumberedChange"],
|
|
41237
|
+
"scale": ["handleNumberedChange"],
|
|
41238
|
+
"selectionMode": ["handleNumberedChange"],
|
|
41239
|
+
"messageOverrides": ["onMessagesChange"],
|
|
41240
|
+
"effectiveLocale": ["effectiveLocaleChange"]
|
|
41241
|
+
}; }
|
|
41242
|
+
static get style() { return tableCss; }
|
|
41243
|
+
static get cmpMeta() { return {
|
|
41244
|
+
"$flags$": 9,
|
|
41245
|
+
"$tagName$": "calcite-table",
|
|
41246
|
+
"$members$": {
|
|
41247
|
+
"bordered": [516],
|
|
41248
|
+
"caption": [1],
|
|
41249
|
+
"groupSeparator": [516, "group-separator"],
|
|
41250
|
+
"layout": [513],
|
|
41251
|
+
"numbered": [516],
|
|
41252
|
+
"numberingSystem": [513, "numbering-system"],
|
|
41253
|
+
"pageSize": [514, "page-size"],
|
|
41254
|
+
"scale": [513],
|
|
41255
|
+
"selectionMode": [513, "selection-mode"],
|
|
41256
|
+
"zebra": [516],
|
|
41257
|
+
"selectedItems": [1040],
|
|
41258
|
+
"messages": [1040],
|
|
41259
|
+
"messageOverrides": [1040],
|
|
41260
|
+
"colCount": [32],
|
|
41261
|
+
"pageStartRow": [32],
|
|
41262
|
+
"selectedCount": [32],
|
|
41263
|
+
"readCellContentsToAT": [32],
|
|
41264
|
+
"defaultMessages": [32],
|
|
41265
|
+
"effectiveLocale": [32]
|
|
41266
|
+
},
|
|
41267
|
+
"$listeners$": [[0, "calciteTableRowSelect", "calciteChipSelectListener"], [0, "calciteInternalTableRowFocusRequest", "calciteInternalTableRowFocusEvent"]],
|
|
41268
|
+
"$lazyBundleId$": "-",
|
|
41269
|
+
"$attrsToReflect$": [["bordered", "bordered"], ["groupSeparator", "group-separator"], ["layout", "layout"], ["numbered", "numbered"], ["numberingSystem", "numbering-system"], ["pageSize", "page-size"], ["scale", "scale"], ["selectionMode", "selection-mode"], ["zebra", "zebra"]]
|
|
41270
|
+
}; }
|
|
41271
|
+
}
|
|
41272
|
+
|
|
41273
|
+
const CSS$a = {
|
|
41274
|
+
numberCell: "number-cell",
|
|
41275
|
+
footerCell: "footer-cell",
|
|
41276
|
+
selectionCell: "selection-cell",
|
|
41277
|
+
selectedCell: "selected-cell",
|
|
41278
|
+
assistiveText: "assistive-text",
|
|
41279
|
+
};
|
|
41280
|
+
|
|
41281
|
+
const tableCellCss = "/*!@:host*/.sc-calcite-table-cell-h{--calcite-internal-table-cell-background-internal:var(--calcite-table-cell-background, transparent);--calcite-internal-table-cell-border-color-internal:var(--calcite-table-cell-border-color, transparent);display:contents}/*!@:host([alignment=center]) td*/[alignment=center].sc-calcite-table-cell-h td.sc-calcite-table-cell{text-align:center}/*!@:host([alignment=end]) td*/[alignment=end].sc-calcite-table-cell-h td.sc-calcite-table-cell{text-align:end}/*!@.assistive-text*/.assistive-text.sc-calcite-table-cell{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}/*!@td*/td.sc-calcite-table-cell{text-align:start;vertical-align:middle;color:var(--calcite-ui-text-1);outline-color:transparent;background:var(--calcite-internal-table-cell-background);border-inline-end:1px solid var(--calcite-ui-border-3);font-size:var(--calcite-internal-table-cell-font-size);padding:var(--calcite-internal-table-cell-padding)}/*!@td:focus*/td.sc-calcite-table-cell: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 )}/*!@.number-cell*/.number-cell.sc-calcite-table-cell{background-color:var(--calcite-ui-foreground-2)}/*!@.footer-cell*/.footer-cell.sc-calcite-table-cell{background-color:var(--calcite-ui-background);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);border-block-start:1px solid var(--calcite-ui-border-3)}/*!@.number-cell,\n.selection-cell*/.number-cell.sc-calcite-table-cell,.selection-cell.sc-calcite-table-cell{border-inline-end:1px solid var(--calcite-ui-border-3);inline-size:2rem;min-inline-size:2rem}/*!@.selection-cell*/.selection-cell.sc-calcite-table-cell{cursor:pointer;color:var(--calcite-ui-text-3);inset-inline-start:2rem}/*!@.selected-cell:not(.number-cell):not(.footer-cell)*/.selected-cell.sc-calcite-table-cell:not(.number-cell):not(.footer-cell){--calcite-table-cell-background:var(--calcite-ui-foreground-current);background:var(--calcite-ui-foreground-current)}/*!@.selection-cell.selected-cell*/.selection-cell.selected-cell.sc-calcite-table-cell{box-shadow:inset 0.25rem 0 0 0 var(--calcite-ui-brand);color:var(--calcite-ui-brand)}/*!@.selection-cell.selected-cell calcite-icon*/.selection-cell.selected-cell.sc-calcite-table-cell calcite-icon.sc-calcite-table-cell{color:var(--calcite-ui-brand)}/*!@.selection-cell*/.selection-cell.sc-calcite-table-cell{vertical-align:middle}/*!@.selection-cell ::slotted(calcite-icon)*/.selection-cell .sc-calcite-table-cell-s>calcite-icon{pointer-events:none;margin-block-start:0.25rem}";
|
|
41282
|
+
|
|
41283
|
+
/**
|
|
41284
|
+
* @slot - A slot for adding content, usually text content.
|
|
41285
|
+
*/
|
|
41286
|
+
class TableCell {
|
|
41287
|
+
constructor(hostRef) {
|
|
41288
|
+
registerInstance(this, hostRef);
|
|
41289
|
+
this.updateScreenReaderContentsText = () => {
|
|
41290
|
+
this.contentsText = this.el.textContent;
|
|
41291
|
+
};
|
|
41292
|
+
this.onContainerBlur = () => {
|
|
41293
|
+
this.focused = false;
|
|
41294
|
+
};
|
|
41295
|
+
this.onContainerFocus = () => {
|
|
41296
|
+
this.focused = true;
|
|
41297
|
+
};
|
|
41298
|
+
this.alignment = "start";
|
|
41299
|
+
this.colSpan = undefined;
|
|
41300
|
+
this.rowSpan = undefined;
|
|
41301
|
+
this.disabled = undefined;
|
|
41302
|
+
this.numberCell = undefined;
|
|
41303
|
+
this.parentRowIsSelected = undefined;
|
|
41304
|
+
this.parentRowPositionLocalized = undefined;
|
|
41305
|
+
this.parentRowType = undefined;
|
|
41306
|
+
this.positionInRow = undefined;
|
|
41307
|
+
this.readCellContentsToAT = undefined;
|
|
41308
|
+
this.scale = "m";
|
|
41309
|
+
this.selectionCell = undefined;
|
|
41310
|
+
this.messages = undefined;
|
|
41311
|
+
this.messageOverrides = undefined;
|
|
41312
|
+
this.contentsText = "";
|
|
41313
|
+
this.defaultMessages = undefined;
|
|
41314
|
+
this.focused = false;
|
|
41315
|
+
this.selectionText = "";
|
|
41316
|
+
this.effectiveLocale = "";
|
|
41317
|
+
}
|
|
41318
|
+
onSelectedChange() {
|
|
41319
|
+
this.updateScreenReaderSelectionText();
|
|
41320
|
+
}
|
|
41321
|
+
onMessagesChange() {
|
|
41322
|
+
/* wired up by t9n util */
|
|
41323
|
+
}
|
|
41324
|
+
effectiveLocaleChange() {
|
|
41325
|
+
updateMessages(this);
|
|
41326
|
+
}
|
|
41327
|
+
// --------------------------------------------------------------------------
|
|
41328
|
+
//
|
|
41329
|
+
// Lifecycle
|
|
41330
|
+
//
|
|
41331
|
+
// --------------------------------------------------------------------------
|
|
41332
|
+
async componentWillLoad() {
|
|
41333
|
+
setUpLoadableComponent(this);
|
|
41334
|
+
await setUpMessages(this);
|
|
41335
|
+
this.updateScreenReaderContentsText();
|
|
41336
|
+
this.updateScreenReaderSelectionText();
|
|
41337
|
+
}
|
|
41338
|
+
componentDidLoad() {
|
|
41339
|
+
setComponentLoaded(this);
|
|
41340
|
+
}
|
|
41341
|
+
connectedCallback() {
|
|
41342
|
+
connectLocalized(this);
|
|
41343
|
+
connectMessages(this);
|
|
41344
|
+
connectInteractive(this);
|
|
41345
|
+
}
|
|
41346
|
+
componentDidRender() {
|
|
41347
|
+
updateHostInteraction(this);
|
|
41348
|
+
}
|
|
41349
|
+
disconnectedCallback() {
|
|
41350
|
+
disconnectLocalized(this);
|
|
41351
|
+
disconnectMessages(this);
|
|
41352
|
+
disconnectInteractive(this);
|
|
41353
|
+
}
|
|
41354
|
+
//--------------------------------------------------------------------------
|
|
41355
|
+
//
|
|
41356
|
+
// Public Methods
|
|
41357
|
+
//
|
|
41358
|
+
// --------------------------------------------------------------------------
|
|
41359
|
+
/** Sets focus on the component. */
|
|
41360
|
+
async setFocus() {
|
|
41361
|
+
await componentFocusable(this);
|
|
41362
|
+
this.containerEl.focus();
|
|
41363
|
+
}
|
|
41364
|
+
// --------------------------------------------------------------------------
|
|
41365
|
+
//
|
|
41366
|
+
// Private Methods
|
|
41367
|
+
//
|
|
41368
|
+
// --------------------------------------------------------------------------
|
|
41369
|
+
updateScreenReaderSelectionText() {
|
|
41370
|
+
const selectedText = `${this.messages?.row} ${this.parentRowPositionLocalized} ${this.messages?.selected} ${this.messages?.keyboardDeselect}`;
|
|
41371
|
+
const unselectedText = `${this.messages?.row} ${this.parentRowPositionLocalized} ${this.messages?.unselected} ${this.messages?.keyboardSelect}`;
|
|
41372
|
+
this.selectionText = this.parentRowIsSelected ? selectedText : unselectedText;
|
|
41373
|
+
}
|
|
41374
|
+
//--------------------------------------------------------------------------
|
|
41375
|
+
//
|
|
41376
|
+
// Render Methods
|
|
41377
|
+
//
|
|
41378
|
+
//--------------------------------------------------------------------------
|
|
41379
|
+
render() {
|
|
41380
|
+
return (hAsync(Host, null, hAsync("td", { "aria-disabled": this.disabled, class: {
|
|
41381
|
+
[CSS$a.footerCell]: this.parentRowType === "foot",
|
|
41382
|
+
[CSS$a.numberCell]: this.numberCell,
|
|
41383
|
+
[CSS$a.selectionCell]: this.selectionCell,
|
|
41384
|
+
[CSS$a.selectedCell]: this.parentRowIsSelected,
|
|
41385
|
+
}, colSpan: this.colSpan, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, role: "gridcell", rowSpan: this.rowSpan, tabIndex: this.disabled ? -1 : 0,
|
|
41386
|
+
// 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)
|
|
41387
|
+
ref: (el) => (this.containerEl = el) }, (this.selectionCell || this.readCellContentsToAT) && this.focused && (hAsync("span", { "aria-hidden": true, "aria-live": "polite", class: CSS$a.assistiveText }, this.selectionCell && this.selectionText, this.readCellContentsToAT && !this.selectionCell && this.contentsText)), hAsync("slot", { onSlotchange: this.updateScreenReaderContentsText }))));
|
|
41388
|
+
}
|
|
41389
|
+
static get assetsDirs() { return ["assets"]; }
|
|
41390
|
+
get el() { return getElement(this); }
|
|
41391
|
+
static get watchers() { return {
|
|
41392
|
+
"parentRowIsSelected": ["onSelectedChange"],
|
|
41393
|
+
"messageOverrides": ["onMessagesChange"],
|
|
41394
|
+
"effectiveLocale": ["effectiveLocaleChange"]
|
|
41395
|
+
}; }
|
|
41396
|
+
static get style() { return tableCellCss; }
|
|
41397
|
+
static get cmpMeta() { return {
|
|
41398
|
+
"$flags$": 9,
|
|
41399
|
+
"$tagName$": "calcite-table-cell",
|
|
41400
|
+
"$members$": {
|
|
41401
|
+
"alignment": [513],
|
|
41402
|
+
"colSpan": [514, "col-span"],
|
|
41403
|
+
"rowSpan": [514, "row-span"],
|
|
41404
|
+
"disabled": [4],
|
|
41405
|
+
"numberCell": [4, "number-cell"],
|
|
41406
|
+
"parentRowIsSelected": [4, "parent-row-is-selected"],
|
|
41407
|
+
"parentRowPositionLocalized": [1, "parent-row-position-localized"],
|
|
41408
|
+
"parentRowType": [1, "parent-row-type"],
|
|
41409
|
+
"positionInRow": [2, "position-in-row"],
|
|
41410
|
+
"readCellContentsToAT": [4, "read-cell-contents-to-a-t"],
|
|
41411
|
+
"scale": [1],
|
|
41412
|
+
"selectionCell": [4, "selection-cell"],
|
|
41413
|
+
"messages": [1040],
|
|
41414
|
+
"messageOverrides": [1040],
|
|
41415
|
+
"contentsText": [32],
|
|
41416
|
+
"defaultMessages": [32],
|
|
41417
|
+
"focused": [32],
|
|
41418
|
+
"selectionText": [32],
|
|
41419
|
+
"effectiveLocale": [32],
|
|
41420
|
+
"setFocus": [64]
|
|
41421
|
+
},
|
|
41422
|
+
"$listeners$": undefined,
|
|
41423
|
+
"$lazyBundleId$": "-",
|
|
41424
|
+
"$attrsToReflect$": [["alignment", "alignment"], ["colSpan", "col-span"], ["rowSpan", "row-span"]]
|
|
41425
|
+
}; }
|
|
41426
|
+
}
|
|
41427
|
+
|
|
41428
|
+
const CSS$9 = {
|
|
41429
|
+
numberCell: "number-cell",
|
|
41430
|
+
selectionCell: "selection-cell",
|
|
41431
|
+
bodyRow: "body-row",
|
|
41432
|
+
footerRow: "footer-row",
|
|
41433
|
+
heading: "heading",
|
|
41434
|
+
description: "description",
|
|
41435
|
+
multipleSelectionCell: "cell--multiple-selection",
|
|
41436
|
+
assistiveText: "assistive-text",
|
|
41437
|
+
active: "active",
|
|
41438
|
+
};
|
|
41439
|
+
|
|
41440
|
+
const tableHeaderCss = "/*!@:host*/.sc-calcite-table-header-h{--calcite-internal-table-header-background:var(--calcite-table-header-background, var(--calcite-ui-foreground-2));--calcite-internal-table-header-border-color:var(--calcite-table-border-color, var(--calcite-ui-border-3));display:contents}/*!@:host([alignment=center]) th*/[alignment=center].sc-calcite-table-header-h th.sc-calcite-table-header{text-align:center}/*!@:host([alignment=end]) th*/[alignment=end].sc-calcite-table-header-h th.sc-calcite-table-header{text-align:end}/*!@.assistive-text*/.assistive-text.sc-calcite-table-header{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}/*!@th*/th.sc-calcite-table-header{text-align:start;vertical-align:top;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);outline-color:transparent;font-size:var(--calcite-internal-table-cell-font-size);border-inline-end:1px solid var(--calcite-internal-table-header-border-color);border-block-end:1px solid var(--calcite-internal-table-header-border-color);padding-block:calc(var(--calcite-internal-table-cell-padding) * 1.5);padding-inline:var(--calcite-internal-table-cell-padding);background-color:var(--calcite-internal-table-header-background)}/*!@th:focus-within*/th.sc-calcite-table-header:focus-within{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 )}/*!@th.body-row,\nth.footer-row*/th.body-row.sc-calcite-table-header,th.footer-row.sc-calcite-table-header{vertical-align:middle;border-block-end:0}/*!@th.footer-row*/th.footer-row.sc-calcite-table-header{border-block-start:1px solid var(--calcite-internal-table-header-border-color)}/*!@.cell--multiple-selection*/.cell--multiple-selection.sc-calcite-table-header{cursor:pointer;vertical-align:middle;color:var(--calcite-ui-text-3)}/*!@.number-cell,\n.selection-cell*/.number-cell.sc-calcite-table-header,.selection-cell.sc-calcite-table-header{color:var(--calcite-ui-text-2);inline-size:2rem;min-inline-size:2rem}/*!@.selection-cell calcite-icon.active*/.selection-cell.sc-calcite-table-header calcite-icon.active.sc-calcite-table-header{color:var(--calcite-ui-brand)}/*!@.number-cell calcite-icon,\n.selection-cell calcite-icon*/.number-cell.sc-calcite-table-header calcite-icon.sc-calcite-table-header,.selection-cell.sc-calcite-table-header calcite-icon.sc-calcite-table-header{margin-inline-start:auto;margin-inline-end:auto;vertical-align:middle}/*!@.heading*/.heading.sc-calcite-table-header{color:var(--calcite-ui-text-1)}/*!@.description*/.description.sc-calcite-table-header{color:var(--calcite-ui-text-3);font-size:var(--calcite-internal-table-cell-font-size-secondary)}";
|
|
41441
|
+
|
|
41442
|
+
class TableHeader {
|
|
41443
|
+
constructor(hostRef) {
|
|
41444
|
+
registerInstance(this, hostRef);
|
|
41445
|
+
this.alignment = "start";
|
|
41446
|
+
this.colSpan = undefined;
|
|
41447
|
+
this.description = undefined;
|
|
41448
|
+
this.heading = undefined;
|
|
41449
|
+
this.rowSpan = undefined;
|
|
41450
|
+
this.numberCell = false;
|
|
41451
|
+
this.parentRowPosition = undefined;
|
|
41452
|
+
this.parentRowType = undefined;
|
|
41453
|
+
this.positionInRow = undefined;
|
|
41454
|
+
this.scale = undefined;
|
|
41455
|
+
this.selectedRowCount = undefined;
|
|
41456
|
+
this.selectedRowCountLocalized = undefined;
|
|
41457
|
+
this.selectionCell = false;
|
|
41458
|
+
this.selectionMode = undefined;
|
|
41459
|
+
this.bodyRowCount = undefined;
|
|
41460
|
+
this.messages = undefined;
|
|
41461
|
+
this.messageOverrides = undefined;
|
|
41462
|
+
this.defaultMessages = undefined;
|
|
41463
|
+
this.screenReaderText = "";
|
|
41464
|
+
this.effectiveLocale = "";
|
|
41465
|
+
}
|
|
41466
|
+
onSelectedChange() {
|
|
41467
|
+
this.updateScreenReaderText();
|
|
41468
|
+
}
|
|
41469
|
+
onMessagesChange() {
|
|
41470
|
+
/* wired up by t9n util */
|
|
41471
|
+
}
|
|
41472
|
+
// --------------------------------------------------------------------------
|
|
41473
|
+
//
|
|
41474
|
+
// Lifecycle
|
|
41475
|
+
//
|
|
41476
|
+
// --------------------------------------------------------------------------
|
|
41477
|
+
async componentWillLoad() {
|
|
41478
|
+
setUpLoadableComponent(this);
|
|
41479
|
+
await setUpMessages(this);
|
|
41480
|
+
this.updateScreenReaderText();
|
|
41481
|
+
}
|
|
41482
|
+
componentDidLoad() {
|
|
41483
|
+
setComponentLoaded(this);
|
|
41484
|
+
}
|
|
41485
|
+
connectedCallback() {
|
|
41486
|
+
connectLocalized(this);
|
|
41487
|
+
connectMessages(this);
|
|
41488
|
+
}
|
|
41489
|
+
disconnectedCallback() {
|
|
41490
|
+
disconnectLocalized(this);
|
|
41491
|
+
disconnectMessages(this);
|
|
41492
|
+
}
|
|
41493
|
+
effectiveLocaleChange() {
|
|
41494
|
+
updateMessages(this);
|
|
41495
|
+
}
|
|
41496
|
+
// --------------------------------------------------------------------------
|
|
41497
|
+
//
|
|
41498
|
+
// Public Methods
|
|
41499
|
+
//
|
|
41500
|
+
// --------------------------------------------------------------------------
|
|
41501
|
+
/** Sets focus on the component. */
|
|
41502
|
+
async setFocus() {
|
|
41503
|
+
await componentFocusable(this);
|
|
41504
|
+
this.containerEl.focus();
|
|
41505
|
+
}
|
|
41506
|
+
// --------------------------------------------------------------------------
|
|
41507
|
+
//
|
|
41508
|
+
// Private Methods
|
|
41509
|
+
//
|
|
41510
|
+
// --------------------------------------------------------------------------
|
|
41511
|
+
updateScreenReaderText() {
|
|
41512
|
+
let text = "";
|
|
41513
|
+
const sharedText = `${this.selectedRowCountLocalized} ${this.messages?.selected}`;
|
|
41514
|
+
if (this.numberCell) {
|
|
41515
|
+
text = this.messages?.rowNumber;
|
|
41516
|
+
}
|
|
41517
|
+
else if (this.selectionMode === "single") {
|
|
41518
|
+
text = `${this.messages?.selectionColumn}. ${sharedText}`;
|
|
41519
|
+
}
|
|
41520
|
+
else if (this.bodyRowCount === this.selectedRowCount) {
|
|
41521
|
+
text = `${this.messages?.selectionColumn}. ${this.messages?.all} ${sharedText} ${this.messages?.keyboardDeselectAll}`;
|
|
41522
|
+
}
|
|
41523
|
+
else {
|
|
41524
|
+
text = `${this.messages?.selectionColumn}. ${sharedText} ${this.messages?.keyboardSelectAll}`;
|
|
41525
|
+
}
|
|
41526
|
+
this.screenReaderText = text;
|
|
41527
|
+
}
|
|
41528
|
+
//--------------------------------------------------------------------------
|
|
41529
|
+
//
|
|
41530
|
+
// Render Methods
|
|
41531
|
+
//
|
|
41532
|
+
//--------------------------------------------------------------------------
|
|
41533
|
+
render() {
|
|
41534
|
+
const scope = this.rowSpan
|
|
41535
|
+
? "rowgroup"
|
|
41536
|
+
: this.colSpan
|
|
41537
|
+
? "colgroup"
|
|
41538
|
+
: this.parentRowType === "body"
|
|
41539
|
+
? "row"
|
|
41540
|
+
: "col";
|
|
41541
|
+
const allSelected = this.selectedRowCount === this.bodyRowCount;
|
|
41542
|
+
const selectionIcon = allSelected ? "check-square-f" : "check-square";
|
|
41543
|
+
return (hAsync(Host, null, hAsync("th", { "aria-colindex": this.parentRowType !== "body" ? this.positionInRow : "", class: {
|
|
41544
|
+
[CSS$9.bodyRow]: this.parentRowType === "body",
|
|
41545
|
+
[CSS$9.footerRow]: this.parentRowType === "foot",
|
|
41546
|
+
[CSS$9.numberCell]: this.numberCell,
|
|
41547
|
+
[CSS$9.selectionCell]: this.selectionCell,
|
|
41548
|
+
[CSS$9.multipleSelectionCell]: this.selectionMode === "multiple",
|
|
41549
|
+
}, colSpan: this.colSpan, role: "columnheader", rowSpan: this.rowSpan, scope: scope, tabIndex: 0,
|
|
41550
|
+
// 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)
|
|
41551
|
+
ref: (el) => (this.containerEl = el) }, this.heading && hAsync("div", { class: CSS$9.heading }, this.heading), this.description && hAsync("div", { class: CSS$9.description }, this.description), this.selectionCell && this.selectionMode === "multiple" && (hAsync("calcite-icon", { class: { [CSS$9.active]: allSelected }, icon: selectionIcon, scale: this.scale === "l" ? "m" : "s" })), (this.selectionCell || this.numberCell) && (hAsync("span", { "aria-hidden": true, "aria-live": "polite", class: CSS$9.assistiveText }, this.screenReaderText)))));
|
|
41552
|
+
}
|
|
41553
|
+
static get assetsDirs() { return ["assets"]; }
|
|
41554
|
+
get el() { return getElement(this); }
|
|
41555
|
+
static get watchers() { return {
|
|
41556
|
+
"selectedRowCount": ["onSelectedChange"],
|
|
41557
|
+
"selectedRowCountLocalized": ["onSelectedChange"],
|
|
41558
|
+
"messageOverrides": ["onMessagesChange"],
|
|
41559
|
+
"effectiveLocale": ["effectiveLocaleChange"]
|
|
41560
|
+
}; }
|
|
41561
|
+
static get style() { return tableHeaderCss; }
|
|
41562
|
+
static get cmpMeta() { return {
|
|
41563
|
+
"$flags$": 9,
|
|
41564
|
+
"$tagName$": "calcite-table-header",
|
|
41565
|
+
"$members$": {
|
|
41566
|
+
"alignment": [513],
|
|
41567
|
+
"colSpan": [514, "col-span"],
|
|
41568
|
+
"description": [513],
|
|
41569
|
+
"heading": [513],
|
|
41570
|
+
"rowSpan": [514, "row-span"],
|
|
41571
|
+
"numberCell": [4, "number-cell"],
|
|
41572
|
+
"parentRowPosition": [2, "parent-row-position"],
|
|
41573
|
+
"parentRowType": [1, "parent-row-type"],
|
|
41574
|
+
"positionInRow": [2, "position-in-row"],
|
|
41575
|
+
"scale": [1],
|
|
41576
|
+
"selectedRowCount": [2, "selected-row-count"],
|
|
41577
|
+
"selectedRowCountLocalized": [1, "selected-row-count-localized"],
|
|
41578
|
+
"selectionCell": [4, "selection-cell"],
|
|
41579
|
+
"selectionMode": [1, "selection-mode"],
|
|
41580
|
+
"bodyRowCount": [2, "body-row-count"],
|
|
41581
|
+
"messages": [1040],
|
|
41582
|
+
"messageOverrides": [1040],
|
|
41583
|
+
"defaultMessages": [32],
|
|
41584
|
+
"screenReaderText": [32],
|
|
41585
|
+
"effectiveLocale": [32],
|
|
41586
|
+
"setFocus": [64]
|
|
41587
|
+
},
|
|
41588
|
+
"$listeners$": undefined,
|
|
41589
|
+
"$lazyBundleId$": "-",
|
|
41590
|
+
"$attrsToReflect$": [["alignment", "alignment"], ["colSpan", "col-span"], ["description", "description"], ["heading", "heading"], ["rowSpan", "row-span"]]
|
|
41591
|
+
}; }
|
|
41592
|
+
}
|
|
41593
|
+
|
|
41594
|
+
const tableRowCss = "/*!@:host([disabled])*/[disabled].sc-calcite-table-row-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-table-row-h *.sc-calcite-table-row,.sc-calcite-table-row-h[disabled] .sc-calcite-table-row-s>*{pointer-events:none}/*!@:host*/.sc-calcite-table-row-h{--calcite-internal-table-row-background:var(--calcite-table-row-background, var(--calcite-ui-foreground-1));--calcite-internal-table-row-border-color:var(--calcite-table-row-border-color, transparent);display:contents}/*!@:host([hidden])*/[hidden].sc-calcite-table-row-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-table-row{display:none}/*!@:host([disabled]) tr*/[disabled].sc-calcite-table-row-h tr.sc-calcite-table-row{pointer-events:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-table-row-h[disabled] .sc-calcite-table-row-s>[calcite-hydrated][disabled],[disabled].sc-calcite-table-row-h [calcite-hydrated][disabled].sc-calcite-table-row{opacity:1}/*!@tr*/tr.sc-calcite-table-row{border-block-end:1px solid var(--calcite-internal-table-row-border-color);background-color:var(--calcite-internal-table-row-background)}";
|
|
41595
|
+
|
|
41596
|
+
/**
|
|
41597
|
+
* @slot - A slot for adding `calcite-table-cell` or `calcite-table-header` elements.
|
|
41598
|
+
*/
|
|
41599
|
+
class TableRow {
|
|
41600
|
+
constructor(hostRef) {
|
|
41601
|
+
registerInstance(this, hostRef);
|
|
41602
|
+
this.calciteTableRowSelect = createEvent(this, "calciteTableRowSelect", 6);
|
|
41603
|
+
this.calciteInternalTableRowFocusRequest = createEvent(this, "calciteInternalTableRowFocusRequest", 6);
|
|
41604
|
+
this.rowCells = [];
|
|
41605
|
+
this.emitTableRowFocusRequest = (cellPosition, rowPosition, destination, lastCell) => {
|
|
41606
|
+
this.calciteInternalTableRowFocusRequest.emit({
|
|
41607
|
+
cellPosition,
|
|
41608
|
+
rowPosition,
|
|
41609
|
+
destination,
|
|
41610
|
+
lastCell,
|
|
41611
|
+
});
|
|
41612
|
+
};
|
|
41613
|
+
this.updateCells = () => {
|
|
41614
|
+
const slottedCells = this.tableRowSlotEl
|
|
41615
|
+
?.assignedElements({ flatten: true })
|
|
41616
|
+
?.filter((el) => el.matches("calcite-table-cell") || el.matches("calcite-table-header"));
|
|
41617
|
+
const renderedCells = Array.from(this.tableRowEl?.querySelectorAll("calcite-table-header, calcite-table-cell"))?.filter((el) => el.numberCell || el.selectionCell);
|
|
41618
|
+
const cells = renderedCells ? renderedCells.concat(slottedCells) : slottedCells;
|
|
41619
|
+
if (cells.length > 0) {
|
|
41620
|
+
cells?.forEach((cell, index) => {
|
|
41621
|
+
cell.positionInRow = index + 1;
|
|
41622
|
+
cell.parentRowType = this.rowType;
|
|
41623
|
+
cell.scale = this.scale;
|
|
41624
|
+
if (cell.nodeName === "CALCITE-TABLE-CELL") {
|
|
41625
|
+
cell.readCellContentsToAT = this.readCellContentsToAT;
|
|
41626
|
+
cell.disabled = this.disabled;
|
|
41627
|
+
cell.parentRowIsSelected = this.selected;
|
|
41628
|
+
}
|
|
41629
|
+
});
|
|
41630
|
+
}
|
|
41631
|
+
this.rowCells =
|
|
41632
|
+
cells || [];
|
|
41633
|
+
this.cellCount = cells?.length;
|
|
41634
|
+
};
|
|
41635
|
+
this.handleSelectionOfRow = () => {
|
|
41636
|
+
this.calciteTableRowSelect.emit();
|
|
41637
|
+
};
|
|
41638
|
+
this.handleKeyboardSelection = (event) => {
|
|
41639
|
+
if (isActivationKey(event.key)) {
|
|
41640
|
+
if (event.key === " ") {
|
|
41641
|
+
event.preventDefault();
|
|
41642
|
+
}
|
|
41643
|
+
this.handleSelectionOfRow();
|
|
41644
|
+
}
|
|
41645
|
+
};
|
|
41646
|
+
this.disabled = false;
|
|
41647
|
+
this.selected = false;
|
|
41648
|
+
this.cellCount = undefined;
|
|
41649
|
+
this.rowType = undefined;
|
|
41650
|
+
this.numbered = false;
|
|
41651
|
+
this.positionSection = undefined;
|
|
41652
|
+
this.positionSectionLocalized = undefined;
|
|
41653
|
+
this.positionAll = undefined;
|
|
41654
|
+
this.readCellContentsToAT = undefined;
|
|
41655
|
+
this.scale = undefined;
|
|
41656
|
+
this.selectionMode = "none";
|
|
41657
|
+
this.selectedRowCount = undefined;
|
|
41658
|
+
this.selectedRowCountLocalized = undefined;
|
|
41659
|
+
this.bodyRowCount = undefined;
|
|
41660
|
+
this.effectiveLocale = "";
|
|
41661
|
+
}
|
|
41662
|
+
handleCellChanges() {
|
|
41663
|
+
if (this.tableRowEl && this.rowCells.length > 0) {
|
|
41664
|
+
this.updateCells();
|
|
41665
|
+
}
|
|
41666
|
+
}
|
|
41667
|
+
handleDelayedCellChanges() {
|
|
41668
|
+
if (this.tableRowEl && this.rowCells.length > 0) {
|
|
41669
|
+
requestAnimationFrame(() => this.updateCells());
|
|
41670
|
+
}
|
|
41671
|
+
}
|
|
41672
|
+
//--------------------------------------------------------------------------
|
|
41673
|
+
//
|
|
41674
|
+
// Lifecycle
|
|
41675
|
+
//
|
|
41676
|
+
//--------------------------------------------------------------------------
|
|
41677
|
+
componentDidLoad() {
|
|
41678
|
+
if (this.tableRowEl && this.rowCells.length > 0) {
|
|
41679
|
+
this.updateCells();
|
|
41680
|
+
}
|
|
41681
|
+
}
|
|
41682
|
+
connectedCallback() {
|
|
41683
|
+
connectInteractive(this);
|
|
41684
|
+
}
|
|
41685
|
+
componentDidRender() {
|
|
41686
|
+
updateHostInteraction(this);
|
|
41687
|
+
}
|
|
41688
|
+
disconnectedCallback() {
|
|
41689
|
+
disconnectInteractive(this);
|
|
41690
|
+
}
|
|
41691
|
+
//--------------------------------------------------------------------------
|
|
41692
|
+
//
|
|
41693
|
+
// Event Listeners
|
|
41694
|
+
//
|
|
41695
|
+
//--------------------------------------------------------------------------
|
|
41696
|
+
calciteInternalTableRowFocusChangeHandler(event) {
|
|
41697
|
+
if (event.target.contains(this.el)) {
|
|
41698
|
+
const position = event.detail.cellPosition;
|
|
41699
|
+
const rowPosition = event.detail.rowPosition;
|
|
41700
|
+
const destination = event.detail.destination;
|
|
41701
|
+
const lastCell = event.detail.lastCell;
|
|
41702
|
+
if (rowPosition === this.positionAll) {
|
|
41703
|
+
if (this.disabled) {
|
|
41704
|
+
const deflectDirection = destination === "last" ? "previous" : destination === "first" ? "next" : destination;
|
|
41705
|
+
this.emitTableRowFocusRequest(position, this.positionAll, deflectDirection);
|
|
41706
|
+
return;
|
|
41707
|
+
}
|
|
41708
|
+
const cellPosition = lastCell
|
|
41709
|
+
? this.rowCells[this.rowCells.length - 1]
|
|
41710
|
+
: this.rowCells?.find((_, index) => index + 1 === position);
|
|
41711
|
+
if (cellPosition) {
|
|
41712
|
+
cellPosition.setFocus();
|
|
41713
|
+
}
|
|
41714
|
+
}
|
|
41715
|
+
}
|
|
41716
|
+
}
|
|
41717
|
+
//--------------------------------------------------------------------------
|
|
41718
|
+
//
|
|
41719
|
+
// Private Methods
|
|
41720
|
+
//
|
|
41721
|
+
//--------------------------------------------------------------------------
|
|
41722
|
+
keyDownHandler(event) {
|
|
41723
|
+
const el = event.target;
|
|
41724
|
+
const key = event.key;
|
|
41725
|
+
const isControl = event.ctrlKey;
|
|
41726
|
+
const cells = this.rowCells;
|
|
41727
|
+
if (el.matches("calcite-table-cell") || el.matches("calcite-table-header")) {
|
|
41728
|
+
switch (key) {
|
|
41729
|
+
case "ArrowUp":
|
|
41730
|
+
this.emitTableRowFocusRequest(el.positionInRow, this.positionAll, "previous");
|
|
41731
|
+
event.preventDefault();
|
|
41732
|
+
break;
|
|
41733
|
+
case "ArrowDown":
|
|
41734
|
+
this.emitTableRowFocusRequest(el.positionInRow, this.positionAll, "next");
|
|
41735
|
+
event.preventDefault();
|
|
41736
|
+
break;
|
|
41737
|
+
case "PageUp":
|
|
41738
|
+
this.emitTableRowFocusRequest(el.positionInRow, this.positionAll, "first");
|
|
41739
|
+
event.preventDefault();
|
|
41740
|
+
break;
|
|
41741
|
+
case "PageDown":
|
|
41742
|
+
this.emitTableRowFocusRequest(el.positionInRow, this.positionAll, "last");
|
|
41743
|
+
event.preventDefault();
|
|
41744
|
+
break;
|
|
41745
|
+
case "ArrowLeft":
|
|
41746
|
+
focusElementInGroup(cells, el, "previous", false);
|
|
41747
|
+
event.preventDefault();
|
|
41748
|
+
break;
|
|
41749
|
+
case "ArrowRight":
|
|
41750
|
+
focusElementInGroup(cells, el, "next", false);
|
|
41751
|
+
event.preventDefault();
|
|
41752
|
+
break;
|
|
41753
|
+
case "Home":
|
|
41754
|
+
if (isControl) {
|
|
41755
|
+
this.emitTableRowFocusRequest(1, this.positionAll, "first");
|
|
41756
|
+
event.preventDefault();
|
|
41757
|
+
}
|
|
41758
|
+
else {
|
|
41759
|
+
focusElementInGroup(cells, el, "first", false);
|
|
41760
|
+
event.preventDefault();
|
|
41761
|
+
}
|
|
41762
|
+
break;
|
|
41763
|
+
case "End":
|
|
41764
|
+
if (isControl) {
|
|
41765
|
+
this.emitTableRowFocusRequest(this.rowCells?.length, this.positionAll, "last", true);
|
|
41766
|
+
event.preventDefault();
|
|
41767
|
+
}
|
|
41768
|
+
else {
|
|
41769
|
+
focusElementInGroup(cells, el, "last", false);
|
|
41770
|
+
event.preventDefault();
|
|
41771
|
+
}
|
|
41772
|
+
break;
|
|
41773
|
+
}
|
|
41774
|
+
}
|
|
41775
|
+
}
|
|
41776
|
+
//--------------------------------------------------------------------------
|
|
41777
|
+
//
|
|
41778
|
+
// Render Methods
|
|
41779
|
+
//
|
|
41780
|
+
//--------------------------------------------------------------------------
|
|
41781
|
+
renderSelectionIcon() {
|
|
41782
|
+
const icon = this.selectionMode === "multiple" && this.selected
|
|
41783
|
+
? "check-square-f"
|
|
41784
|
+
: this.selectionMode === "multiple"
|
|
41785
|
+
? "square"
|
|
41786
|
+
: this.selected
|
|
41787
|
+
? "circle-f"
|
|
41788
|
+
: "circle";
|
|
41789
|
+
return hAsync("calcite-icon", { icon: icon, scale: this.scale === "l" ? "m" : "s" });
|
|
41790
|
+
}
|
|
41791
|
+
renderSelectableCell() {
|
|
41792
|
+
return this.rowType === "head" ? (hAsync("calcite-table-header", { alignment: "center", bodyRowCount: this.bodyRowCount, key: "selection-head", onClick: this.selectionMode === "multiple" && this.handleSelectionOfRow, onKeyDown: this.selectionMode === "multiple" && this.handleKeyboardSelection, selectedRowCount: this.selectedRowCount, selectedRowCountLocalized: this.selectedRowCountLocalized, selectionCell: true, selectionMode: this.selectionMode })) : this.rowType === "body" ? (hAsync("calcite-table-cell", { alignment: "center", key: "selection-body", onClick: this.handleSelectionOfRow, onKeyDown: this.handleKeyboardSelection, parentRowIsSelected: this.selected, parentRowPositionLocalized: this.positionSectionLocalized, selectionCell: true }, this.renderSelectionIcon())) : (hAsync("calcite-table-cell", { alignment: "center", key: "selection-foot", selectionCell: true }));
|
|
41793
|
+
}
|
|
41794
|
+
renderNumberedCell() {
|
|
41795
|
+
return this.rowType === "head" ? (hAsync("calcite-table-header", { alignment: "center", key: "numbered-head", numberCell: true })) : this.rowType === "body" ? (hAsync("calcite-table-cell", { alignment: "center", key: "numbered-body", numberCell: true }, this.positionSectionLocalized)) : (hAsync("calcite-table-cell", { alignment: "center", key: "numbered-foot", numberCell: true }));
|
|
41796
|
+
}
|
|
41797
|
+
render() {
|
|
41798
|
+
return (hAsync(Host, null, hAsync("tr", { "aria-disabled": this.disabled, "aria-rowindex": this.positionAll + 1, "aria-selected": this.selected, onKeyDown: (event) => this.keyDownHandler(event),
|
|
41799
|
+
// 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)
|
|
41800
|
+
ref: (el) => (this.tableRowEl = el) }, this.numbered && this.renderNumberedCell(), this.selectionMode !== "none" && this.renderSelectableCell(), hAsync("slot", { onSlotchange: this.updateCells, ref: (el) => (this.tableRowSlotEl = el) }))));
|
|
41801
|
+
}
|
|
41802
|
+
get el() { return getElement(this); }
|
|
41803
|
+
static get watchers() { return {
|
|
41804
|
+
"bodyRowCount": ["handleCellChanges"],
|
|
41805
|
+
"scale": ["handleCellChanges"],
|
|
41806
|
+
"selected": ["handleCellChanges"],
|
|
41807
|
+
"selectedRowCount": ["handleCellChanges"],
|
|
41808
|
+
"numbered": ["handleDelayedCellChanges"],
|
|
41809
|
+
"selectionMode": ["handleDelayedCellChanges"]
|
|
41810
|
+
}; }
|
|
41811
|
+
static get style() { return tableRowCss; }
|
|
41812
|
+
static get cmpMeta() { return {
|
|
41813
|
+
"$flags$": 9,
|
|
41814
|
+
"$tagName$": "calcite-table-row",
|
|
41815
|
+
"$members$": {
|
|
41816
|
+
"disabled": [516],
|
|
41817
|
+
"selected": [516],
|
|
41818
|
+
"cellCount": [1026, "cell-count"],
|
|
41819
|
+
"rowType": [1, "row-type"],
|
|
41820
|
+
"numbered": [4],
|
|
41821
|
+
"positionSection": [2, "position-section"],
|
|
41822
|
+
"positionSectionLocalized": [1, "position-section-localized"],
|
|
41823
|
+
"positionAll": [2, "position-all"],
|
|
41824
|
+
"readCellContentsToAT": [4, "read-cell-contents-to-a-t"],
|
|
41825
|
+
"scale": [1],
|
|
41826
|
+
"selectionMode": [1, "selection-mode"],
|
|
41827
|
+
"selectedRowCount": [2, "selected-row-count"],
|
|
41828
|
+
"selectedRowCountLocalized": [1, "selected-row-count-localized"],
|
|
41829
|
+
"bodyRowCount": [2, "body-row-count"],
|
|
41830
|
+
"effectiveLocale": [32]
|
|
41831
|
+
},
|
|
41832
|
+
"$listeners$": [[4, "calciteInternalTableRowFocusChange", "calciteInternalTableRowFocusChangeHandler"]],
|
|
41833
|
+
"$lazyBundleId$": "-",
|
|
41834
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["selected", "selected"]]
|
|
41835
|
+
}; }
|
|
41836
|
+
}
|
|
41837
|
+
|
|
40980
41838
|
const SLOTS$5 = {
|
|
40981
41839
|
titleGroup: "title-group",
|
|
40982
41840
|
};
|
|
@@ -44372,19 +45230,19 @@ class ValueListItem {
|
|
|
44372
45230
|
renderActionsEnd() {
|
|
44373
45231
|
const { el } = this;
|
|
44374
45232
|
const hasActionsEnd = getSlotted(el, SLOTS.actionsEnd);
|
|
44375
|
-
return hasActionsEnd ? (hAsync("slot", { name: SLOTS.actionsEnd, slot: SLOTS$
|
|
45233
|
+
return hasActionsEnd ? (hAsync("slot", { name: SLOTS.actionsEnd, slot: SLOTS$b.actionsEnd })) : null;
|
|
44376
45234
|
}
|
|
44377
45235
|
renderActionsStart() {
|
|
44378
45236
|
const { el } = this;
|
|
44379
45237
|
const hasActionsStart = getSlotted(el, SLOTS.actionsStart);
|
|
44380
|
-
return hasActionsStart ? (hAsync("slot", { name: SLOTS.actionsStart, slot: SLOTS$
|
|
45238
|
+
return hasActionsStart ? (hAsync("slot", { name: SLOTS.actionsStart, slot: SLOTS$b.actionsStart })) : null;
|
|
44381
45239
|
}
|
|
44382
45240
|
renderHandle() {
|
|
44383
45241
|
const { icon, iconFlipRtl } = this;
|
|
44384
45242
|
if (icon === ICON_TYPES$1.grip) {
|
|
44385
45243
|
return (hAsync("span", { class: {
|
|
44386
|
-
[CSS$
|
|
44387
|
-
[CSS$
|
|
45244
|
+
[CSS$q.handle]: true,
|
|
45245
|
+
[CSS$q.handleActivated]: this.handleActivated,
|
|
44388
45246
|
}, "data-js-handle": true, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, ref: (el) => (this.handleEl = el), role: "button", tabindex: "0" }, hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS.drag, scale: "s" })));
|
|
44389
45247
|
}
|
|
44390
45248
|
}
|
|
@@ -44509,6 +45367,10 @@ registerComponents([
|
|
|
44509
45367
|
Tab,
|
|
44510
45368
|
TabNav,
|
|
44511
45369
|
TabTitle,
|
|
45370
|
+
Table,
|
|
45371
|
+
TableCell,
|
|
45372
|
+
TableHeader,
|
|
45373
|
+
TableRow,
|
|
44512
45374
|
Tabs,
|
|
44513
45375
|
TextArea,
|
|
44514
45376
|
Tile,
|