@esri/calcite-components 1.7.0-next.16 → 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/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 +19 -18
- 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 +15 -14
- 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 +1 -1
- 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/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 +1 -1
- 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 +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +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 +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/cs.js +1 -1
- package/dist/components/da.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/de-at.js +1 -1
- package/dist/components/de-ch.js +1 -1
- package/dist/components/de.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +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 +19 -18
- 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 +15 -14
- 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 +1382 -521
- package/package.json +2 -2
- package/dist/calcite/p-009a9e4d.entry.js +0 -6
- package/dist/calcite/p-0289d360.js +0 -6
- package/dist/calcite/p-032c74b0.js +0 -6
- package/dist/calcite/p-03f36cb4.js +0 -6
- package/dist/calcite/p-05dce065.entry.js +0 -6
- package/dist/calcite/p-07a44abe.js +0 -6
- package/dist/calcite/p-07eb7ee4.entry.js +0 -6
- package/dist/calcite/p-0a3ad43c.js +0 -6
- package/dist/calcite/p-0a83b7d0.entry.js +0 -6
- package/dist/calcite/p-0b5fb69b.js +0 -6
- package/dist/calcite/p-0cc393fd.js +0 -6
- package/dist/calcite/p-10000e68.js +0 -6
- package/dist/calcite/p-117ef212.entry.js +0 -6
- package/dist/calcite/p-1193cc91.entry.js +0 -6
- package/dist/calcite/p-1300c6db.entry.js +0 -6
- package/dist/calcite/p-1524d699.entry.js +0 -6
- package/dist/calcite/p-155e38a4.js +0 -6
- package/dist/calcite/p-16648cac.entry.js +0 -6
- package/dist/calcite/p-17d97bd1.js +0 -6
- package/dist/calcite/p-1a14590b.entry.js +0 -6
- package/dist/calcite/p-1aac061d.entry.js +0 -6
- package/dist/calcite/p-1d58387e.js +0 -6
- package/dist/calcite/p-1d6463d5.js +0 -6
- package/dist/calcite/p-1d686cbf.js +0 -6
- package/dist/calcite/p-1fdb7ff1.js +0 -6
- package/dist/calcite/p-21668bae.js +0 -6
- package/dist/calcite/p-251c53bb.entry.js +0 -6
- package/dist/calcite/p-2a08f6f7.js +0 -6
- package/dist/calcite/p-2d1690b4.entry.js +0 -6
- package/dist/calcite/p-2d44f61c.js +0 -6
- package/dist/calcite/p-329abc24.entry.js +0 -6
- package/dist/calcite/p-33bfc2f3.js +0 -6
- package/dist/calcite/p-36b78288.entry.js +0 -6
- package/dist/calcite/p-37329b24.entry.js +0 -6
- package/dist/calcite/p-3ba4155c.js +0 -6
- package/dist/calcite/p-3c293a80.js +0 -6
- package/dist/calcite/p-42db6152.js +0 -6
- package/dist/calcite/p-4320ff11.entry.js +0 -6
- package/dist/calcite/p-43767ea5.js +0 -6
- package/dist/calcite/p-45dbd80f.entry.js +0 -6
- package/dist/calcite/p-467db5b5.entry.js +0 -6
- package/dist/calcite/p-47422e07.js +0 -6
- package/dist/calcite/p-4778fb42.entry.js +0 -6
- package/dist/calcite/p-48b048a9.js +0 -6
- package/dist/calcite/p-4d8e1770.js +0 -6
- package/dist/calcite/p-50f4502c.js +0 -6
- package/dist/calcite/p-5586c15a.js +0 -6
- package/dist/calcite/p-559692fc.entry.js +0 -6
- package/dist/calcite/p-5ac5c620.entry.js +0 -6
- package/dist/calcite/p-5aca6c33.entry.js +0 -6
- package/dist/calcite/p-5b69a316.js +0 -6
- package/dist/calcite/p-5ebef59b.js +0 -6
- package/dist/calcite/p-5ecb91e5.entry.js +0 -6
- package/dist/calcite/p-5fbcf797.entry.js +0 -6
- package/dist/calcite/p-621ed537.js +0 -6
- package/dist/calcite/p-62732722.entry.js +0 -6
- package/dist/calcite/p-6502839f.js +0 -6
- package/dist/calcite/p-65a2cdeb.js +0 -6
- package/dist/calcite/p-6751bd6d.entry.js +0 -6
- package/dist/calcite/p-6c9b926c.js +0 -6
- package/dist/calcite/p-70cd4b8d.entry.js +0 -6
- package/dist/calcite/p-71306bd6.js +0 -6
- package/dist/calcite/p-71584cd9.js +0 -6
- package/dist/calcite/p-72fb517d.js +0 -6
- package/dist/calcite/p-7381dd82.entry.js +0 -6
- package/dist/calcite/p-750df042.entry.js +0 -6
- package/dist/calcite/p-753896ab.entry.js +0 -6
- package/dist/calcite/p-7559e0a4.js +0 -6
- package/dist/calcite/p-75d3027f.js +0 -6
- package/dist/calcite/p-75f36def.entry.js +0 -6
- package/dist/calcite/p-76ad4b2d.entry.js +0 -6
- package/dist/calcite/p-7cf75d26.entry.js +0 -6
- package/dist/calcite/p-7e2a94f2.js +0 -6
- package/dist/calcite/p-7e86eff6.js +0 -6
- package/dist/calcite/p-7e8fe0f7.entry.js +0 -6
- package/dist/calcite/p-7ebc8fdb.js +0 -6
- package/dist/calcite/p-810ff4f7.entry.js +0 -6
- package/dist/calcite/p-825a79d2.js +0 -6
- package/dist/calcite/p-82d656f0.js +0 -6
- package/dist/calcite/p-84feddff.js +0 -6
- package/dist/calcite/p-86315c20.js +0 -6
- package/dist/calcite/p-879868d6.entry.js +0 -6
- package/dist/calcite/p-8816f7ec.js +0 -6
- package/dist/calcite/p-8a9af48c.entry.js +0 -6
- package/dist/calcite/p-8e0551d6.js +0 -6
- package/dist/calcite/p-8e7697b5.entry.js +0 -6
- package/dist/calcite/p-8e898b99.js +0 -6
- package/dist/calcite/p-905e309d.entry.js +0 -6
- package/dist/calcite/p-9437dd05.js +0 -10
- package/dist/calcite/p-961ecae7.js +0 -6
- package/dist/calcite/p-998c3972.entry.js +0 -6
- package/dist/calcite/p-9d478ce3.entry.js +0 -6
- package/dist/calcite/p-a3661938.entry.js +0 -6
- package/dist/calcite/p-a4180fb6.entry.js +0 -6
- package/dist/calcite/p-a4b1d381.js +0 -6
- package/dist/calcite/p-a803db79.entry.js +0 -6
- package/dist/calcite/p-a97d4e23.js +0 -6
- package/dist/calcite/p-aa862e73.entry.js +0 -6
- package/dist/calcite/p-aac8bab5.entry.js +0 -6
- package/dist/calcite/p-abaf46ba.js +0 -6
- package/dist/calcite/p-ad2faf5c.js +0 -6
- package/dist/calcite/p-b6a9b76a.entry.js +0 -6
- package/dist/calcite/p-b6db378a.entry.js +0 -6
- package/dist/calcite/p-b8109464.js +0 -6
- package/dist/calcite/p-b9a646ef.js +0 -6
- package/dist/calcite/p-baec6a2d.js +0 -6
- package/dist/calcite/p-bbcfbf31.js +0 -6
- package/dist/calcite/p-bc62acf3.entry.js +0 -6
- package/dist/calcite/p-be39c8aa.entry.js +0 -6
- package/dist/calcite/p-c0206dbe.js +0 -6
- package/dist/calcite/p-c33c63c3.js +0 -6
- package/dist/calcite/p-c4599d09.entry.js +0 -6
- package/dist/calcite/p-c8ce1516.js +0 -6
- package/dist/calcite/p-c9839846.entry.js +0 -6
- package/dist/calcite/p-cc02228a.entry.js +0 -6
- package/dist/calcite/p-ccbc0c90.js +0 -6
- package/dist/calcite/p-cd372d0f.entry.js +0 -6
- package/dist/calcite/p-ce84b494.js +0 -6
- package/dist/calcite/p-cefe8f2b.js +0 -7
- package/dist/calcite/p-d08f1207.js +0 -11
- package/dist/calcite/p-d4e01037.js +0 -12
- package/dist/calcite/p-d61cf78d.entry.js +0 -6
- package/dist/calcite/p-d65ec3bd.js +0 -6
- package/dist/calcite/p-d728e928.js +0 -6
- package/dist/calcite/p-d8fc2b98.js +0 -6
- package/dist/calcite/p-d92c76d6.js +0 -6
- package/dist/calcite/p-dabd022b.entry.js +0 -6
- package/dist/calcite/p-de95843e.entry.js +0 -6
- package/dist/calcite/p-df766fef.js +0 -6
- package/dist/calcite/p-e082978e.entry.js +0 -6
- package/dist/calcite/p-e13bdd77.entry.js +0 -6
- package/dist/calcite/p-e17f2f84.entry.js +0 -6
- package/dist/calcite/p-e3df2acd.js +0 -6
- package/dist/calcite/p-e5f48609.js +0 -6
- package/dist/calcite/p-e60c1918.js +0 -6
- package/dist/calcite/p-e8d86fad.js +0 -6
- package/dist/calcite/p-e9fbf490.js +0 -6
- package/dist/calcite/p-ea6ffca6.js +0 -6
- package/dist/calcite/p-ea73c9fc.js +0 -6
- package/dist/calcite/p-eb0106b0.entry.js +0 -6
- package/dist/calcite/p-edbc45e8.js +0 -6
- package/dist/calcite/p-f1a9294a.entry.js +0 -6
- package/dist/calcite/p-f322860b.entry.js +0 -6
- package/dist/calcite/p-f4dafcbf.entry.js +0 -6
- package/dist/calcite/p-f508d41c.entry.js +0 -6
- package/dist/calcite/p-f6b395e1.entry.js +0 -6
- package/dist/calcite/p-f7bcdc8d.js +0 -6
- package/dist/calcite/p-f874005b.js +0 -6
- package/dist/calcite/p-fac965ea.entry.js +0 -6
- package/dist/calcite/p-fc0e732a.js +0 -6
- package/dist/calcite/p-fe0daebb.js +0 -6
- package/dist/calcite/p-fe228829.js +0 -6
- package/dist/cjs/ExpandToggle-68f73570.js +0 -107
- package/dist/cjs/FloatingArrow-513ea71e.js +0 -45
- package/dist/cjs/Heading-30cd5f48.js +0 -20
- package/dist/cjs/app-globals-eb54ddf6.js +0 -59
- package/dist/cjs/ar-13f4acaf.js +0 -97
- package/dist/cjs/array-3e79ec78.js +0 -12
- package/dist/cjs/bg-a653c8c1.js +0 -78
- package/dist/cjs/bs-8f91e30f.js +0 -47
- package/dist/cjs/ca-403ddad6.js +0 -67
- package/dist/cjs/calcite-input-time-picker.calcite-time-picker-07468368.js +0 -2823
- package/dist/cjs/conditionalSlot-ee7a649a.js +0 -58
- package/dist/cjs/cs-edff7e02.js +0 -143
- package/dist/cjs/da-7ca28741.js +0 -62
- package/dist/cjs/de-5da2d5f4.js +0 -87
- package/dist/cjs/de-at-a3c3758c.js +0 -86
- package/dist/cjs/de-ch-ba29f3a0.js +0 -86
- package/dist/cjs/debounce-a084c5d5.js +0 -496
- package/dist/cjs/dom-24dbae52.js +0 -1056
- package/dist/cjs/el-fdac48c2.js +0 -62
- package/dist/cjs/en-au-aaa7ef21.js +0 -62
- package/dist/cjs/en-ca-f46b1c17.js +0 -61
- package/dist/cjs/en-gb-5b1c2558.js +0 -65
- package/dist/cjs/es-cb50ba07.js +0 -62
- package/dist/cjs/es-mx-d8af76c1.js +0 -61
- package/dist/cjs/et-9ab74b53.js +0 -88
- package/dist/cjs/fi-4c9cb374.js +0 -111
- package/dist/cjs/filter-8be40b18.js +0 -760
- package/dist/cjs/floating-ui-1d02bb12.js +0 -1883
- package/dist/cjs/focusTrapComponent-b70ff299.js +0 -999
- package/dist/cjs/form-edf52f09.js +0 -283
- package/dist/cjs/fr-97d3e65f.js +0 -64
- package/dist/cjs/fr-ch-35dcbb00.js +0 -62
- package/dist/cjs/guid-a424359b.js +0 -21
- package/dist/cjs/he-33997ee3.js +0 -101
- package/dist/cjs/hi-ddaa033c.js +0 -61
- package/dist/cjs/hr-d7d00ce6.js +0 -76
- package/dist/cjs/hu-fc9b25ad.js +0 -84
- package/dist/cjs/id-bc4232c9.js +0 -62
- package/dist/cjs/index-c06121c7.js +0 -2315
- package/dist/cjs/interactive-9b8921be.js +0 -150
- package/dist/cjs/it-559897e3.js +0 -62
- package/dist/cjs/it-ch-b9bba77f.js +0 -62
- package/dist/cjs/ja-1a041bdb.js +0 -68
- package/dist/cjs/key-e83ae952.js +0 -14
- package/dist/cjs/ko-57565c44.js +0 -68
- package/dist/cjs/label-f74dd5b1.js +0 -149
- package/dist/cjs/loadable-9eac6355.js +0 -89
- package/dist/cjs/locale-5a3b9156.js +0 -594
- package/dist/cjs/lt-e3131883.js +0 -93
- package/dist/cjs/lv-6beaf43d.js +0 -62
- package/dist/cjs/math-f90ae930.js +0 -55
- package/dist/cjs/mk-7c2e3620.js +0 -62
- package/dist/cjs/nb-5cb72b8d.js +0 -63
- package/dist/cjs/nl-eec76db9.js +0 -63
- package/dist/cjs/observers-4aff91d1.js +0 -48
- package/dist/cjs/openCloseComponent-d14bdb68.js +0 -84
- package/dist/cjs/pl-3a64124d.js +0 -110
- package/dist/cjs/pt-br-97783149.js +0 -61
- package/dist/cjs/pt-dcdc9a7a.js +0 -63
- package/dist/cjs/resources-0bf0c1bc.js +0 -22
- package/dist/cjs/resources-2ce24a35.js +0 -21
- package/dist/cjs/resources-6a9b5b27.js +0 -410
- package/dist/cjs/resources-9b963607.js +0 -27
- package/dist/cjs/resources-a07f5391.js +0 -24
- package/dist/cjs/resources-c304d959.js +0 -45
- package/dist/cjs/resources-c761e322.js +0 -15
- package/dist/cjs/ro-72d5ab19.js +0 -62
- package/dist/cjs/ru-1ca51d97.js +0 -122
- package/dist/cjs/sk-41ca4cd5.js +0 -144
- package/dist/cjs/sl-96d9b762.js +0 -62
- package/dist/cjs/sortableComponent-7358bdf1.js +0 -3107
- package/dist/cjs/sr-c2eb8a7a.js +0 -97
- package/dist/cjs/sv-dd728bdd.js +0 -67
- package/dist/cjs/t9n-2f2747fe.js +0 -95
- package/dist/cjs/th-e56f729d.js +0 -61
- package/dist/cjs/throttle-f751ffec.js +0 -75
- package/dist/cjs/tr-a4f2b545.js +0 -62
- package/dist/cjs/uk-162e86e7.js +0 -100
- package/dist/cjs/utils-3857ea71.js +0 -216
- package/dist/cjs/utils-53a16819.js +0 -305
- package/dist/cjs/vi-ada2ae00.js +0 -66
- package/dist/cjs/zh-cn-79036fe5.js +0 -90
- package/dist/cjs/zh-hk-283d15a8.js +0 -67
- package/dist/cjs/zh-tw-912106df.js +0 -88
- package/dist/esm/ExpandToggle-34747a7e.js +0 -99
- package/dist/esm/FloatingArrow-f909ccc6.js +0 -43
- package/dist/esm/Heading-d2a0f551.js +0 -17
- package/dist/esm/app-globals-8455ebd0.js +0 -57
- package/dist/esm/ar-a6dfa8aa.js +0 -95
- package/dist/esm/array-3e269331.js +0 -10
- package/dist/esm/bg-53e39987.js +0 -76
- package/dist/esm/bs-d54aa11b.js +0 -45
- package/dist/esm/ca-26d0f4f9.js +0 -65
- package/dist/esm/calcite-input-time-picker.calcite-time-picker-68c4b75b.js +0 -2819
- package/dist/esm/conditionalSlot-0e7ac0f9.js +0 -55
- package/dist/esm/cs-22daa2a9.js +0 -141
- package/dist/esm/da-784a4856.js +0 -60
- package/dist/esm/de-7799399b.js +0 -85
- package/dist/esm/de-at-5dbd261c.js +0 -84
- package/dist/esm/de-ch-f275b0c0.js +0 -84
- package/dist/esm/debounce-4763833d.js +0 -487
- package/dist/esm/dom-a55a6285.js +0 -1027
- package/dist/esm/el-31db4fe2.js +0 -60
- package/dist/esm/en-au-2e7a2bf4.js +0 -60
- package/dist/esm/en-ca-1d937970.js +0 -59
- package/dist/esm/en-gb-c67e29f1.js +0 -63
- package/dist/esm/es-2c3426f8.js +0 -60
- package/dist/esm/es-mx-2257e6a5.js +0 -59
- package/dist/esm/et-2a3de187.js +0 -86
- package/dist/esm/fi-5068573b.js +0 -109
- package/dist/esm/filter-2f7f48e4.js +0 -758
- package/dist/esm/floating-ui-63cbd95c.js +0 -1875
- package/dist/esm/focusTrapComponent-f8681781.js +0 -994
- package/dist/esm/form-47f49d1d.js +0 -275
- package/dist/esm/fr-922fc5f6.js +0 -62
- package/dist/esm/fr-ch-5aed9648.js +0 -60
- package/dist/esm/guid-65accb1d.js +0 -19
- package/dist/esm/he-2e9f8c9d.js +0 -99
- package/dist/esm/hi-e182a600.js +0 -59
- package/dist/esm/hr-0d7b7c28.js +0 -74
- package/dist/esm/hu-f46cfbef.js +0 -82
- package/dist/esm/id-0d722dc1.js +0 -60
- package/dist/esm/index-6d1478d1.js +0 -2280
- package/dist/esm/interactive-34b3a4bf.js +0 -146
- package/dist/esm/it-993cf4a0.js +0 -60
- package/dist/esm/it-ch-dc024326.js +0 -60
- package/dist/esm/ja-f0949e9e.js +0 -66
- package/dist/esm/key-e60ef957.js +0 -11
- package/dist/esm/ko-047803f5.js +0 -66
- package/dist/esm/label-b4b6eab5.js +0 -143
- package/dist/esm/loadable-b3b05489.js +0 -84
- package/dist/esm/locale-cab3dfeb.js +0 -582
- package/dist/esm/lt-db317159.js +0 -91
- package/dist/esm/lv-c034250a.js +0 -60
- package/dist/esm/math-ce3a419f.js +0 -49
- package/dist/esm/mk-8e80c6e2.js +0 -60
- package/dist/esm/nb-712fd989.js +0 -61
- package/dist/esm/nl-bd5e8541.js +0 -61
- package/dist/esm/observers-adb86418.js +0 -46
- package/dist/esm/openCloseComponent-3dec562a.js +0 -82
- package/dist/esm/pl-757d96a6.js +0 -108
- package/dist/esm/pt-76c48f5f.js +0 -61
- package/dist/esm/pt-br-c1f951a0.js +0 -59
- package/dist/esm/resources-0baf1752.js +0 -17
- package/dist/esm/resources-58cb3b95.js +0 -383
- package/dist/esm/resources-73f7cf47.js +0 -18
- package/dist/esm/resources-9045062d.js +0 -21
- package/dist/esm/resources-bf6e17a7.js +0 -15
- package/dist/esm/resources-eb1e3dd1.js +0 -23
- package/dist/esm/resources-efba9e55.js +0 -41
- package/dist/esm/ro-4d823274.js +0 -60
- package/dist/esm/ru-0bc23637.js +0 -120
- package/dist/esm/sk-2cfc4640.js +0 -142
- package/dist/esm/sl-6100e69f.js +0 -60
- package/dist/esm/sortableComponent-1300bcd6.js +0 -3104
- package/dist/esm/sr-fbf87438.js +0 -95
- package/dist/esm/sv-6df9a49f.js +0 -65
- package/dist/esm/t9n-e9267ae7.js +0 -90
- package/dist/esm/th-c11c3249.js +0 -59
- package/dist/esm/throttle-a76c13c2.js +0 -73
- package/dist/esm/tr-257a6cb3.js +0 -60
- package/dist/esm/uk-c7422687.js +0 -98
- package/dist/esm/utils-4e8d0b09.js +0 -198
- package/dist/esm/utils-b6fc08ed.js +0 -287
- package/dist/esm/vi-f4b323c7.js +0 -64
- package/dist/esm/zh-cn-63d4b701.js +0 -88
- package/dist/esm/zh-hk-bcbf6c17.js +0 -65
- package/dist/esm/zh-tw-705c7667.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;
|
|
@@ -19723,7 +19723,7 @@ class Combobox {
|
|
|
19723
19723
|
renderFloatingUIContainer() {
|
|
19724
19724
|
const { setFloatingEl, setContainerEl, open } = this;
|
|
19725
19725
|
const classes = {
|
|
19726
|
-
[CSS$
|
|
19726
|
+
[CSS$U.listContainer]: true,
|
|
19727
19727
|
[FloatingCSS.animation]: true,
|
|
19728
19728
|
[FloatingCSS.animationActive]: open,
|
|
19729
19729
|
};
|
|
@@ -19822,7 +19822,7 @@ class Combobox {
|
|
|
19822
19822
|
}; }
|
|
19823
19823
|
}
|
|
19824
19824
|
|
|
19825
|
-
const CSS$
|
|
19825
|
+
const CSS$S = {
|
|
19826
19826
|
icon: "icon",
|
|
19827
19827
|
iconActive: "icon--active",
|
|
19828
19828
|
iconIndent: "icon--indent",
|
|
@@ -19901,20 +19901,20 @@ class ComboboxItem {
|
|
|
19901
19901
|
// --------------------------------------------------------------------------
|
|
19902
19902
|
renderIcon(iconPath) {
|
|
19903
19903
|
return this.icon ? (hAsync("calcite-icon", { class: {
|
|
19904
|
-
[CSS$
|
|
19905
|
-
[CSS$
|
|
19906
|
-
[CSS$
|
|
19904
|
+
[CSS$S.custom]: !!this.icon,
|
|
19905
|
+
[CSS$S.iconActive]: this.icon && this.selected,
|
|
19906
|
+
[CSS$S.iconIndent]: true,
|
|
19907
19907
|
}, flipRtl: this.iconFlipRtl, icon: this.icon || iconPath, key: "icon", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
19908
19908
|
}
|
|
19909
19909
|
renderSelectIndicator(showDot, iconPath) {
|
|
19910
19910
|
return showDot ? (hAsync("span", { class: {
|
|
19911
|
-
[CSS$
|
|
19912
|
-
[CSS$
|
|
19913
|
-
[CSS$
|
|
19911
|
+
[CSS$S.icon]: true,
|
|
19912
|
+
[CSS$S.dot]: true,
|
|
19913
|
+
[CSS$S.iconIndent]: true,
|
|
19914
19914
|
} })) : (hAsync("calcite-icon", { class: {
|
|
19915
|
-
[CSS$
|
|
19916
|
-
[CSS$
|
|
19917
|
-
[CSS$
|
|
19915
|
+
[CSS$S.icon]: true,
|
|
19916
|
+
[CSS$S.iconActive]: this.selected,
|
|
19917
|
+
[CSS$S.iconIndent]: true,
|
|
19918
19918
|
}, flipRtl: this.iconFlipRtl, icon: iconPath, key: "indicator", scale: this.scale === "l" ? "m" : "s" }));
|
|
19919
19919
|
}
|
|
19920
19920
|
renderChildren() {
|
|
@@ -19929,10 +19929,10 @@ class ComboboxItem {
|
|
|
19929
19929
|
const defaultIcon = isSingleSelect ? "dot" : "check";
|
|
19930
19930
|
const iconPath = this.disabled ? "circle-disallowed" : defaultIcon;
|
|
19931
19931
|
const classes = {
|
|
19932
|
-
[CSS$
|
|
19933
|
-
[CSS$
|
|
19934
|
-
[CSS$
|
|
19935
|
-
[CSS$
|
|
19932
|
+
[CSS$S.label]: true,
|
|
19933
|
+
[CSS$S.selected]: this.selected,
|
|
19934
|
+
[CSS$S.active]: this.active,
|
|
19935
|
+
[CSS$S.single]: isSingleSelect,
|
|
19936
19936
|
};
|
|
19937
19937
|
const depth = getDepth$1();
|
|
19938
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())));
|
|
@@ -19965,7 +19965,7 @@ class ComboboxItem {
|
|
|
19965
19965
|
}; }
|
|
19966
19966
|
}
|
|
19967
19967
|
|
|
19968
|
-
const CSS$
|
|
19968
|
+
const CSS$R = {
|
|
19969
19969
|
list: "list",
|
|
19970
19970
|
label: "label",
|
|
19971
19971
|
title: "title",
|
|
@@ -20001,7 +20001,7 @@ class ComboboxItemGroup {
|
|
|
20001
20001
|
render() {
|
|
20002
20002
|
const { el, scale } = this;
|
|
20003
20003
|
const depth = getDepth$1();
|
|
20004
|
-
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)));
|
|
20005
20005
|
}
|
|
20006
20006
|
get el() { return getElement(this); }
|
|
20007
20007
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -21188,7 +21188,7 @@ class DatePickerMonth {
|
|
|
21188
21188
|
}; }
|
|
21189
21189
|
}
|
|
21190
21190
|
|
|
21191
|
-
const CSS$
|
|
21191
|
+
const CSS$Q = {
|
|
21192
21192
|
header: "header",
|
|
21193
21193
|
month: "month",
|
|
21194
21194
|
chevron: "chevron",
|
|
@@ -21288,7 +21288,7 @@ class DatePickerMonthHeader {
|
|
|
21288
21288
|
this.setNextPrevMonthDates();
|
|
21289
21289
|
}
|
|
21290
21290
|
render() {
|
|
21291
|
-
return hAsync("div", { class: CSS$
|
|
21291
|
+
return hAsync("div", { class: CSS$Q.header }, this.renderContent());
|
|
21292
21292
|
}
|
|
21293
21293
|
renderContent() {
|
|
21294
21294
|
const { messages, localeData, activeDate } = this;
|
|
@@ -21311,12 +21311,12 @@ class DatePickerMonthHeader {
|
|
|
21311
21311
|
const order = getOrder(unitOrder);
|
|
21312
21312
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
21313
21313
|
const suffix = localeData.year?.suffix;
|
|
21314
|
-
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: {
|
|
21315
21315
|
year: true,
|
|
21316
|
-
[CSS$
|
|
21316
|
+
[CSS$Q.yearSuffix]: !!suffix,
|
|
21317
21317
|
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", type: "text", value: localizedYear,
|
|
21318
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)
|
|
21319
|
-
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 }))));
|
|
21320
21320
|
}
|
|
21321
21321
|
setNextPrevMonthDates() {
|
|
21322
21322
|
if (!this.activeDate) {
|
|
@@ -21392,7 +21392,7 @@ class DatePickerMonthHeader {
|
|
|
21392
21392
|
}; }
|
|
21393
21393
|
}
|
|
21394
21394
|
|
|
21395
|
-
const SLOTS$
|
|
21395
|
+
const SLOTS$o = {
|
|
21396
21396
|
dropdownTrigger: "trigger",
|
|
21397
21397
|
};
|
|
21398
21398
|
|
|
@@ -21630,7 +21630,7 @@ class Dropdown {
|
|
|
21630
21630
|
const { open, guid } = this;
|
|
21631
21631
|
return (hAsync(Host, null, hAsync("div", { class: "calcite-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler,
|
|
21632
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)
|
|
21633
|
-
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",
|
|
21634
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)
|
|
21635
21635
|
ref: this.setFloatingEl }, hAsync("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
|
21636
21636
|
["calcite-dropdown-content"]: true,
|
|
@@ -21819,7 +21819,7 @@ class Dropdown {
|
|
|
21819
21819
|
}; }
|
|
21820
21820
|
}
|
|
21821
21821
|
|
|
21822
|
-
const CSS$
|
|
21822
|
+
const CSS$P = {
|
|
21823
21823
|
container: "container",
|
|
21824
21824
|
containerLink: "container--link",
|
|
21825
21825
|
containerMulti: "container--multi-selection",
|
|
@@ -21867,8 +21867,8 @@ class DropdownGroup {
|
|
|
21867
21867
|
const groupTitle = this.groupTitle ? (hAsync("span", { "aria-hidden": "true", class: "dropdown-title" }, this.groupTitle)) : null;
|
|
21868
21868
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
21869
21869
|
return (hAsync(Host, { "aria-label": this.groupTitle, role: "group" }, hAsync("div", { class: {
|
|
21870
|
-
[CSS$
|
|
21871
|
-
[`${CSS$
|
|
21870
|
+
[CSS$P.container]: true,
|
|
21871
|
+
[`${CSS$P.container}--${this.scale}`]: true,
|
|
21872
21872
|
} }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
21873
21873
|
}
|
|
21874
21874
|
//--------------------------------------------------------------------------
|
|
@@ -21962,9 +21962,9 @@ class DropdownItem {
|
|
|
21962
21962
|
}
|
|
21963
21963
|
render() {
|
|
21964
21964
|
const { href, selectionMode, label, iconFlipRtl, scale } = this;
|
|
21965
|
-
const iconStartEl = (hAsync("calcite-icon", { class: CSS$
|
|
21966
|
-
const contentNode = (hAsync("span", { class: CSS$
|
|
21967
|
-
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" }));
|
|
21968
21968
|
const slottedContent = this.iconStart && this.iconEnd
|
|
21969
21969
|
? [iconStartEl, contentNode, iconEndEl]
|
|
21970
21970
|
: this.iconStart
|
|
@@ -21972,7 +21972,7 @@ class DropdownItem {
|
|
|
21972
21972
|
: this.iconEnd
|
|
21973
21973
|
? [contentNode, iconEndEl]
|
|
21974
21974
|
: contentNode;
|
|
21975
|
-
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,
|
|
21976
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)
|
|
21977
21977
|
ref: (el) => (this.childLink = el) }, slottedContent));
|
|
21978
21978
|
const itemRole = href
|
|
@@ -21984,13 +21984,13 @@ class DropdownItem {
|
|
|
21984
21984
|
: "menuitem";
|
|
21985
21985
|
const itemAria = selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
|
21986
21986
|
return (hAsync(Host, { "aria-checked": itemAria, "aria-label": !href ? label : "", role: itemRole, tabindex: "0" }, hAsync("div", { class: {
|
|
21987
|
-
[CSS$
|
|
21988
|
-
[CSS$
|
|
21989
|
-
[`${CSS$
|
|
21990
|
-
[CSS$
|
|
21991
|
-
[CSS$
|
|
21992
|
-
[CSS$
|
|
21993
|
-
} }, 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)));
|
|
21994
21994
|
}
|
|
21995
21995
|
//--------------------------------------------------------------------------
|
|
21996
21996
|
//
|
|
@@ -22097,7 +22097,7 @@ class DropdownItem {
|
|
|
22097
22097
|
}; }
|
|
22098
22098
|
}
|
|
22099
22099
|
|
|
22100
|
-
const CSS$
|
|
22100
|
+
const CSS$O = {
|
|
22101
22101
|
button: "button",
|
|
22102
22102
|
};
|
|
22103
22103
|
const ICONS$c = {
|
|
@@ -22158,7 +22158,7 @@ class Fab {
|
|
|
22158
22158
|
render() {
|
|
22159
22159
|
const { appearance, kind, disabled, loading, scale, textEnabled, icon, label, text, iconFlipRtl, } = this;
|
|
22160
22160
|
const title = !textEnabled ? label || text || null : null;
|
|
22161
|
-
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",
|
|
22162
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)
|
|
22163
22163
|
ref: (buttonEl) => {
|
|
22164
22164
|
this.buttonEl = buttonEl;
|
|
@@ -22188,7 +22188,7 @@ class Fab {
|
|
|
22188
22188
|
}; }
|
|
22189
22189
|
}
|
|
22190
22190
|
|
|
22191
|
-
const CSS$
|
|
22191
|
+
const CSS$N = {
|
|
22192
22192
|
container: "container",
|
|
22193
22193
|
searchIcon: "search-icon",
|
|
22194
22194
|
};
|
|
@@ -22317,7 +22317,7 @@ class Filter {
|
|
|
22317
22317
|
// --------------------------------------------------------------------------
|
|
22318
22318
|
render() {
|
|
22319
22319
|
const { disabled, scale } = this;
|
|
22320
|
-
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,
|
|
22321
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)
|
|
22322
22322
|
ref: (el) => {
|
|
22323
22323
|
this.textInput = el;
|
|
@@ -22356,7 +22356,7 @@ class Filter {
|
|
|
22356
22356
|
}; }
|
|
22357
22357
|
}
|
|
22358
22358
|
|
|
22359
|
-
const CSS$
|
|
22359
|
+
const CSS$M = {
|
|
22360
22360
|
frame: "frame",
|
|
22361
22361
|
frameAdvancing: "frame--advancing",
|
|
22362
22362
|
frameRetreating: "frame--retreating",
|
|
@@ -22477,9 +22477,9 @@ class Flow {
|
|
|
22477
22477
|
render() {
|
|
22478
22478
|
const { flowDirection } = this;
|
|
22479
22479
|
const frameDirectionClasses = {
|
|
22480
|
-
[CSS$
|
|
22481
|
-
[CSS$
|
|
22482
|
-
[CSS$
|
|
22480
|
+
[CSS$M.frame]: true,
|
|
22481
|
+
[CSS$M.frameAdvancing]: flowDirection === "advancing",
|
|
22482
|
+
[CSS$M.frameRetreating]: flowDirection === "retreating",
|
|
22483
22483
|
};
|
|
22484
22484
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
22485
22485
|
}
|
|
@@ -22501,7 +22501,7 @@ class Flow {
|
|
|
22501
22501
|
}; }
|
|
22502
22502
|
}
|
|
22503
22503
|
|
|
22504
|
-
const CSS$
|
|
22504
|
+
const CSS$L = {
|
|
22505
22505
|
actionBarContainer: "action-bar-container",
|
|
22506
22506
|
backButton: "back-button",
|
|
22507
22507
|
container: "container",
|
|
@@ -22525,7 +22525,7 @@ const ICONS$a = {
|
|
|
22525
22525
|
backLeft: "chevron-left",
|
|
22526
22526
|
backRight: "chevron-right",
|
|
22527
22527
|
};
|
|
22528
|
-
const SLOTS$
|
|
22528
|
+
const SLOTS$n = {
|
|
22529
22529
|
actionBar: "action-bar",
|
|
22530
22530
|
headerActionsStart: "header-actions-start",
|
|
22531
22531
|
headerActionsEnd: "header-actions-end",
|
|
@@ -22536,14 +22536,14 @@ const SLOTS$m = {
|
|
|
22536
22536
|
footerActions: "footer-actions",
|
|
22537
22537
|
};
|
|
22538
22538
|
|
|
22539
|
-
const CSS$
|
|
22539
|
+
const CSS$K = {
|
|
22540
22540
|
backButton: "back-button",
|
|
22541
22541
|
};
|
|
22542
22542
|
const ICONS$9 = {
|
|
22543
22543
|
backLeft: "chevron-left",
|
|
22544
22544
|
backRight: "chevron-right",
|
|
22545
22545
|
};
|
|
22546
|
-
const SLOTS$
|
|
22546
|
+
const SLOTS$m = {
|
|
22547
22547
|
actionBar: "action-bar",
|
|
22548
22548
|
headerActionsStart: "header-actions-start",
|
|
22549
22549
|
headerActionsEnd: "header-actions-end",
|
|
@@ -22684,7 +22684,7 @@ class FlowItem {
|
|
|
22684
22684
|
const { showBackButton, backButtonClick, messages } = this;
|
|
22685
22685
|
const label = messages.back;
|
|
22686
22686
|
const icon = rtl ? ICONS$9.backRight : ICONS$9.backLeft;
|
|
22687
|
-
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,
|
|
22688
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)
|
|
22689
22689
|
ref: this.setBackRef })) : null;
|
|
22690
22690
|
}
|
|
@@ -22692,7 +22692,7 @@ class FlowItem {
|
|
|
22692
22692
|
const { closable, closed, description, disabled, heading, headingLevel, loading, menuOpen, messages, } = this;
|
|
22693
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,
|
|
22694
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)
|
|
22695
|
-
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))));
|
|
22696
22696
|
}
|
|
22697
22697
|
static get assetsDirs() { return ["assets"]; }
|
|
22698
22698
|
get el() { return getElement(this); }
|
|
@@ -22948,7 +22948,7 @@ class Graph {
|
|
|
22948
22948
|
}; }
|
|
22949
22949
|
}
|
|
22950
22950
|
|
|
22951
|
-
const CSS$
|
|
22951
|
+
const CSS$J = {
|
|
22952
22952
|
handle: "handle",
|
|
22953
22953
|
handleActivated: "handle--activated",
|
|
22954
22954
|
};
|
|
@@ -23071,7 +23071,7 @@ class Handle {
|
|
|
23071
23071
|
render() {
|
|
23072
23072
|
return (
|
|
23073
23073
|
// Needs to be a span because of https://github.com/SortableJS/Sortable/issues/1486
|
|
23074
|
-
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,
|
|
23075
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)
|
|
23076
23076
|
ref: (el) => {
|
|
23077
23077
|
this.handleButton = el;
|
|
@@ -23110,7 +23110,7 @@ class Handle {
|
|
|
23110
23110
|
}; }
|
|
23111
23111
|
}
|
|
23112
23112
|
|
|
23113
|
-
const CSS$
|
|
23113
|
+
const CSS$I = {
|
|
23114
23114
|
icon: "icon",
|
|
23115
23115
|
flipRtl: "flip-rtl",
|
|
23116
23116
|
};
|
|
@@ -23158,7 +23158,7 @@ class Icon {
|
|
|
23158
23158
|
const semantic = !!textLabel;
|
|
23159
23159
|
const paths = [].concat(pathData || "");
|
|
23160
23160
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { "aria-hidden": "true", class: {
|
|
23161
|
-
[CSS$
|
|
23161
|
+
[CSS$I.flipRtl]: dir === "rtl" && flipRtl,
|
|
23162
23162
|
svg: true,
|
|
23163
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 }))))));
|
|
23164
23164
|
}
|
|
@@ -23204,7 +23204,7 @@ class Icon {
|
|
|
23204
23204
|
}; }
|
|
23205
23205
|
}
|
|
23206
23206
|
|
|
23207
|
-
const CSS$
|
|
23207
|
+
const CSS$H = {
|
|
23208
23208
|
wrapper: "wrapper",
|
|
23209
23209
|
confirmChangesButton: "confirm-changes-button",
|
|
23210
23210
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -23354,16 +23354,16 @@ class InlineEditable {
|
|
|
23354
23354
|
updateHostInteraction(this);
|
|
23355
23355
|
}
|
|
23356
23356
|
render() {
|
|
23357
|
-
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: {
|
|
23358
23358
|
opacity: this.editingEnabled ? "0" : "1",
|
|
23359
23359
|
width: this.editingEnabled ? "0" : "inherit",
|
|
23360
23360
|
}, type: "button",
|
|
23361
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)
|
|
23362
23362
|
ref: (el) => (this.enableEditingButton = el) }), this.shouldShowControls && [
|
|
23363
|
-
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",
|
|
23364
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)
|
|
23365
23365
|
ref: (el) => (this.cancelEditingButton = el) })),
|
|
23366
|
-
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",
|
|
23367
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)
|
|
23368
23368
|
ref: (el) => (this.confirmEditingButton = el) }),
|
|
23369
23369
|
])));
|
|
@@ -23449,7 +23449,7 @@ class InlineEditable {
|
|
|
23449
23449
|
}; }
|
|
23450
23450
|
}
|
|
23451
23451
|
|
|
23452
|
-
const CSS$
|
|
23452
|
+
const CSS$G = {
|
|
23453
23453
|
loader: "loader",
|
|
23454
23454
|
clearButton: "clear-button",
|
|
23455
23455
|
editingEnabled: "editing-enabled",
|
|
@@ -23473,7 +23473,7 @@ const INPUT_TYPE_ICONS = {
|
|
|
23473
23473
|
time: "clock",
|
|
23474
23474
|
search: "search",
|
|
23475
23475
|
};
|
|
23476
|
-
const SLOTS$
|
|
23476
|
+
const SLOTS$l = {
|
|
23477
23477
|
action: "action",
|
|
23478
23478
|
};
|
|
23479
23479
|
|
|
@@ -24033,38 +24033,38 @@ class Input {
|
|
|
24033
24033
|
// --------------------------------------------------------------------------
|
|
24034
24034
|
render() {
|
|
24035
24035
|
const dir = getElementDir(this.el);
|
|
24036
|
-
const loader = (hAsync("div", { class: CSS$
|
|
24037
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
24038
|
-
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" }));
|
|
24039
24039
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
24040
24040
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24041
|
-
[CSS$
|
|
24042
|
-
[CSS$
|
|
24041
|
+
[CSS$G.numberButtonItem]: true,
|
|
24042
|
+
[CSS$G.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24043
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" })));
|
|
24044
24044
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24045
|
-
[CSS$
|
|
24046
|
-
[CSS$
|
|
24045
|
+
[CSS$G.numberButtonItem]: true,
|
|
24046
|
+
[CSS$G.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24047
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" })));
|
|
24048
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
24049
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
24050
|
-
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);
|
|
24051
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,
|
|
24052
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)
|
|
24053
24053
|
ref: this.setChildNumberElRef })) : null;
|
|
24054
24054
|
const childEl = this.type !== "number"
|
|
24055
24055
|
? [
|
|
24056
24056
|
hAsync(this.childElType, { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
24057
|
-
[CSS$
|
|
24058
|
-
[CSS$
|
|
24057
|
+
[CSS$G.editingEnabled]: this.editingEnabled,
|
|
24058
|
+
[CSS$G.inlineChild]: !!this.inlineEditableEl,
|
|
24059
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,
|
|
24060
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)
|
|
24061
24061
|
ref: this.setChildElRef }),
|
|
24062
|
-
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,
|
|
24063
24063
|
]
|
|
24064
24064
|
: null;
|
|
24065
|
-
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
|
|
24066
24066
|
? numberButtonsHorizontalDown
|
|
24067
|
-
: 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
|
|
24068
24068
|
? numberButtonsVertical
|
|
24069
24069
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24070
24070
|
? numberButtonsHorizontalUp
|
|
@@ -24139,7 +24139,7 @@ class Input {
|
|
|
24139
24139
|
}; }
|
|
24140
24140
|
}
|
|
24141
24141
|
|
|
24142
|
-
const CSS$
|
|
24142
|
+
const CSS$F = {
|
|
24143
24143
|
assistiveText: "assistive-text",
|
|
24144
24144
|
menu: "menu-container",
|
|
24145
24145
|
menuActive: "menu-container--active",
|
|
@@ -25325,12 +25325,12 @@ class InputDatePicker {
|
|
|
25325
25325
|
const valueIsArray = Array.isArray(valueAsDate);
|
|
25326
25326
|
const newStartDate = valueIsArray ? valueAsDate[0] : null;
|
|
25327
25327
|
let newStartDateISO = valueIsArray ? dateToISO(newStartDate) : "";
|
|
25328
|
-
if (newStartDateISO
|
|
25328
|
+
if (newStartDateISO) {
|
|
25329
25329
|
newStartDateISO = this.getNormalizedDate(newStartDateISO);
|
|
25330
25330
|
}
|
|
25331
25331
|
const newEndDate = valueIsArray ? valueAsDate[1] : null;
|
|
25332
25332
|
let newEndDateISO = valueIsArray ? dateToISO(newEndDate) : "";
|
|
25333
|
-
if (newEndDateISO
|
|
25333
|
+
if (newEndDateISO) {
|
|
25334
25334
|
newEndDateISO = this.getNormalizedDate(newEndDateISO);
|
|
25335
25335
|
}
|
|
25336
25336
|
const newValue = newStartDateISO || newEndDateISO ? [newStartDateISO, newEndDateISO] : "";
|
|
@@ -25359,9 +25359,7 @@ class InputDatePicker {
|
|
|
25359
25359
|
}
|
|
25360
25360
|
const oldValue = this.value;
|
|
25361
25361
|
let newValue = dateToISO(value);
|
|
25362
|
-
|
|
25363
|
-
newValue = this.getNormalizedDate(newValue);
|
|
25364
|
-
}
|
|
25362
|
+
newValue = this.getNormalizedDate(newValue);
|
|
25365
25363
|
if (newValue === oldValue) {
|
|
25366
25364
|
return;
|
|
25367
25365
|
}
|
|
@@ -25407,7 +25405,6 @@ class InputDatePicker {
|
|
|
25407
25405
|
this.max = undefined;
|
|
25408
25406
|
this.open = false;
|
|
25409
25407
|
this.name = undefined;
|
|
25410
|
-
this.normalizeYear = false;
|
|
25411
25408
|
this.numberingSystem = undefined;
|
|
25412
25409
|
this.scale = "m";
|
|
25413
25410
|
this.placement = defaultMenuPlacement;
|
|
@@ -25437,17 +25434,9 @@ class InputDatePicker {
|
|
|
25437
25434
|
if (!this.userChangedValue) {
|
|
25438
25435
|
let newValueAsDate;
|
|
25439
25436
|
if (Array.isArray(newValue)) {
|
|
25440
|
-
if (isTwoDigitYear(newValue[0]) || isTwoDigitYear(newValue[1])) {
|
|
25441
|
-
this.value = newValue.map((val) => this.getNormalizedDate(val));
|
|
25442
|
-
return;
|
|
25443
|
-
}
|
|
25444
25437
|
newValueAsDate = getValueAsDateRange(newValue);
|
|
25445
25438
|
}
|
|
25446
25439
|
else if (newValue) {
|
|
25447
|
-
if (isTwoDigitYear(newValue)) {
|
|
25448
|
-
this.value = this.getNormalizedDate(newValue);
|
|
25449
|
-
return;
|
|
25450
|
-
}
|
|
25451
25440
|
newValueAsDate = dateFromISO(newValue);
|
|
25452
25441
|
}
|
|
25453
25442
|
else {
|
|
@@ -25549,18 +25538,10 @@ class InputDatePicker {
|
|
|
25549
25538
|
const { open } = this;
|
|
25550
25539
|
open && this.openHandler(open);
|
|
25551
25540
|
if (Array.isArray(this.value)) {
|
|
25552
|
-
if (isTwoDigitYear(this.value[0]) || isTwoDigitYear(this.value[1])) {
|
|
25553
|
-
this.value = this.value.map((val) => this.getNormalizedDate(val));
|
|
25554
|
-
return;
|
|
25555
|
-
}
|
|
25556
25541
|
this.valueAsDate = getValueAsDateRange(this.value);
|
|
25557
25542
|
}
|
|
25558
25543
|
else if (this.value) {
|
|
25559
25544
|
try {
|
|
25560
|
-
if (isTwoDigitYear(this.value)) {
|
|
25561
|
-
this.value = this.getNormalizedDate(this.value);
|
|
25562
|
-
return;
|
|
25563
|
-
}
|
|
25564
25545
|
this.valueAsDate = dateFromISO(this.value);
|
|
25565
25546
|
}
|
|
25566
25547
|
catch (error) {
|
|
@@ -25625,9 +25606,9 @@ class InputDatePicker {
|
|
|
25625
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)
|
|
25626
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",
|
|
25627
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)
|
|
25628
|
-
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$
|
|
25629
|
-
[CSS$
|
|
25630
|
-
[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,
|
|
25631
25612
|
}, id: this.dialogId, role: "dialog",
|
|
25632
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)
|
|
25633
25614
|
ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
@@ -25649,7 +25630,7 @@ class InputDatePicker {
|
|
|
25649
25630
|
ref: this.setEndInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "end"))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
25650
25631
|
}
|
|
25651
25632
|
renderToggleIcon(open) {
|
|
25652
|
-
return (hAsync("span", { class: CSS$
|
|
25633
|
+
return (hAsync("span", { class: CSS$F.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
25653
25634
|
}
|
|
25654
25635
|
setReferenceEl() {
|
|
25655
25636
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -25773,7 +25754,7 @@ class InputDatePicker {
|
|
|
25773
25754
|
if (!value) {
|
|
25774
25755
|
return "";
|
|
25775
25756
|
}
|
|
25776
|
-
if (!
|
|
25757
|
+
if (!isTwoDigitYear(value)) {
|
|
25777
25758
|
return value;
|
|
25778
25759
|
}
|
|
25779
25760
|
const { day, month, year } = datePartsFromISO(value);
|
|
@@ -25820,7 +25801,6 @@ class InputDatePicker {
|
|
|
25820
25801
|
"max": [1],
|
|
25821
25802
|
"open": [1540],
|
|
25822
25803
|
"name": [513],
|
|
25823
|
-
"normalizeYear": [516, "normalize-year"],
|
|
25824
25804
|
"numberingSystem": [513, "numbering-system"],
|
|
25825
25805
|
"scale": [513],
|
|
25826
25806
|
"placement": [513],
|
|
@@ -25839,7 +25819,7 @@ class InputDatePicker {
|
|
|
25839
25819
|
},
|
|
25840
25820
|
"$listeners$": [[0, "calciteDaySelect", "calciteDaySelectHandler"]],
|
|
25841
25821
|
"$lazyBundleId$": "-",
|
|
25842
|
-
"$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"]]
|
|
25843
25823
|
}; }
|
|
25844
25824
|
}
|
|
25845
25825
|
|
|
@@ -25909,7 +25889,7 @@ class InputMessage {
|
|
|
25909
25889
|
}; }
|
|
25910
25890
|
}
|
|
25911
25891
|
|
|
25912
|
-
const CSS$
|
|
25892
|
+
const CSS$E = {
|
|
25913
25893
|
loader: "loader",
|
|
25914
25894
|
clearButton: "clear-button",
|
|
25915
25895
|
editingEnabled: "editing-enabled",
|
|
@@ -25925,7 +25905,7 @@ const CSS$B = {
|
|
|
25925
25905
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
25926
25906
|
numberButtonItem: "number-button-item",
|
|
25927
25907
|
};
|
|
25928
|
-
const SLOTS$
|
|
25908
|
+
const SLOTS$k = {
|
|
25929
25909
|
action: "action",
|
|
25930
25910
|
};
|
|
25931
25911
|
|
|
@@ -26418,27 +26398,27 @@ class InputNumber {
|
|
|
26418
26398
|
// --------------------------------------------------------------------------
|
|
26419
26399
|
render() {
|
|
26420
26400
|
const dir = getElementDir(this.el);
|
|
26421
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26422
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26423
|
-
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" }));
|
|
26424
26404
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
26425
26405
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26426
|
-
[CSS$
|
|
26427
|
-
[CSS$
|
|
26406
|
+
[CSS$E.numberButtonItem]: true,
|
|
26407
|
+
[CSS$E.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26428
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" })));
|
|
26429
26409
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26430
|
-
[CSS$
|
|
26431
|
-
[CSS$
|
|
26410
|
+
[CSS$E.numberButtonItem]: true,
|
|
26411
|
+
[CSS$E.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26432
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" })));
|
|
26433
|
-
const numberButtonsVertical = (hAsync("div", { class: CSS$
|
|
26434
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26435
|
-
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);
|
|
26436
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,
|
|
26437
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)
|
|
26438
26418
|
ref: this.setChildNumberElRef }));
|
|
26439
|
-
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
|
|
26440
26420
|
? numberButtonsHorizontalDown
|
|
26441
|
-
: 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
|
|
26442
26422
|
? numberButtonsHorizontalUp
|
|
26443
26423
|
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26444
26424
|
}
|
|
@@ -26505,7 +26485,7 @@ class InputNumber {
|
|
|
26505
26485
|
}; }
|
|
26506
26486
|
}
|
|
26507
26487
|
|
|
26508
|
-
const CSS$
|
|
26488
|
+
const CSS$D = {
|
|
26509
26489
|
loader: "loader",
|
|
26510
26490
|
clearButton: "clear-button",
|
|
26511
26491
|
editingEnabled: "editing-enabled",
|
|
@@ -26518,7 +26498,7 @@ const CSS$A = {
|
|
|
26518
26498
|
actionWrapper: "action-wrapper",
|
|
26519
26499
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
26520
26500
|
};
|
|
26521
|
-
const SLOTS$
|
|
26501
|
+
const SLOTS$j = {
|
|
26522
26502
|
action: "action",
|
|
26523
26503
|
};
|
|
26524
26504
|
|
|
@@ -26805,18 +26785,18 @@ class InputText {
|
|
|
26805
26785
|
// --------------------------------------------------------------------------
|
|
26806
26786
|
render() {
|
|
26807
26787
|
const dir = getElementDir(this.el);
|
|
26808
|
-
const loader = (hAsync("div", { class: CSS$
|
|
26809
|
-
const inputClearButton = (hAsync("button", { "aria-label": this.messages.clear, class: CSS$
|
|
26810
|
-
const iconEl = (hAsync("calcite-icon", { class: CSS$
|
|
26811
|
-
const prefixText = hAsync("div", { class: CSS$
|
|
26812
|
-
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);
|
|
26813
26793
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
26814
|
-
[CSS$
|
|
26815
|
-
[CSS$
|
|
26794
|
+
[CSS$D.editingEnabled]: this.editingEnabled,
|
|
26795
|
+
[CSS$D.inlineChild]: !!this.inlineEditableEl,
|
|
26816
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,
|
|
26817
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)
|
|
26818
26798
|
ref: this.setChildElRef }));
|
|
26819
|
-
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 }))));
|
|
26820
26800
|
}
|
|
26821
26801
|
static get assetsDirs() { return ["assets"]; }
|
|
26822
26802
|
get el() { return getElement(this); }
|
|
@@ -27132,7 +27112,7 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
27132
27112
|
return isoTimeString;
|
|
27133
27113
|
}
|
|
27134
27114
|
|
|
27135
|
-
const CSS$
|
|
27115
|
+
const CSS$C = {
|
|
27136
27116
|
toggleIcon: "toggle-icon",
|
|
27137
27117
|
};
|
|
27138
27118
|
|
|
@@ -28905,7 +28885,7 @@ class InputTimePicker {
|
|
|
28905
28885
|
ref: this.setCalciteTimePickerEl })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
28906
28886
|
}
|
|
28907
28887
|
renderToggleIcon(open) {
|
|
28908
|
-
return (hAsync("span", { class: CSS$
|
|
28888
|
+
return (hAsync("span", { class: CSS$C.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
28909
28889
|
}
|
|
28910
28890
|
static get delegatesFocus() { return true; }
|
|
28911
28891
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -29149,7 +29129,7 @@ class InputTimeZone {
|
|
|
29149
29129
|
}; }
|
|
29150
29130
|
}
|
|
29151
29131
|
|
|
29152
|
-
const CSS$
|
|
29132
|
+
const CSS$B = {
|
|
29153
29133
|
container: "container",
|
|
29154
29134
|
};
|
|
29155
29135
|
|
|
@@ -29189,7 +29169,7 @@ class Label {
|
|
|
29189
29169
|
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
29190
29170
|
}
|
|
29191
29171
|
render() {
|
|
29192
|
-
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))));
|
|
29193
29173
|
}
|
|
29194
29174
|
get el() { return getElement(this); }
|
|
29195
29175
|
static get style() { return labelCss; }
|
|
@@ -29324,7 +29304,7 @@ class Link {
|
|
|
29324
29304
|
}; }
|
|
29325
29305
|
}
|
|
29326
29306
|
|
|
29327
|
-
const CSS$
|
|
29307
|
+
const CSS$A = {
|
|
29328
29308
|
container: "container",
|
|
29329
29309
|
containerBorderSelected: "container--border-selected",
|
|
29330
29310
|
containerBorderUnselected: "container--border-unselected",
|
|
@@ -29345,7 +29325,7 @@ const CSS$x = {
|
|
|
29345
29325
|
openContainer: "open-container",
|
|
29346
29326
|
dragContainer: "drag-container",
|
|
29347
29327
|
};
|
|
29348
|
-
const SLOTS$
|
|
29328
|
+
const SLOTS$i = {
|
|
29349
29329
|
actionsStart: "actions-start",
|
|
29350
29330
|
contentStart: "content-start",
|
|
29351
29331
|
content: "content",
|
|
@@ -29391,7 +29371,7 @@ function getDepth(element, includeGroup = false) {
|
|
|
29391
29371
|
}
|
|
29392
29372
|
}
|
|
29393
29373
|
|
|
29394
|
-
const CSS$
|
|
29374
|
+
const CSS$z = {
|
|
29395
29375
|
container: "container",
|
|
29396
29376
|
table: "table",
|
|
29397
29377
|
scrim: "scrim",
|
|
@@ -29401,7 +29381,7 @@ const CSS$w = {
|
|
|
29401
29381
|
assistiveText: "assistive-text",
|
|
29402
29382
|
};
|
|
29403
29383
|
const debounceTimeout = 0;
|
|
29404
|
-
const SLOTS$
|
|
29384
|
+
const SLOTS$h = {
|
|
29405
29385
|
filterActionsStart: "filter-actions-start",
|
|
29406
29386
|
filterActionsEnd: "filter-actions-end",
|
|
29407
29387
|
};
|
|
@@ -32502,7 +32482,7 @@ function onSortingEnd(activeComponent) {
|
|
|
32502
32482
|
getNestedSortableComponents(activeComponent).forEach((component) => inactiveSortableComponentSet.delete(component));
|
|
32503
32483
|
}
|
|
32504
32484
|
|
|
32505
|
-
const CSS$
|
|
32485
|
+
const CSS$y = {
|
|
32506
32486
|
container: "container",
|
|
32507
32487
|
actionsStart: "actions-start",
|
|
32508
32488
|
contentStart: "content-start",
|
|
@@ -32510,7 +32490,7 @@ const CSS$v = {
|
|
|
32510
32490
|
contentEnd: "content-end",
|
|
32511
32491
|
actionsEnd: "actions-end",
|
|
32512
32492
|
};
|
|
32513
|
-
const SLOTS$
|
|
32493
|
+
const SLOTS$g = {
|
|
32514
32494
|
actionsStart: "actions-start",
|
|
32515
32495
|
contentStart: "content-start",
|
|
32516
32496
|
contentEnd: "content-end",
|
|
@@ -32825,9 +32805,9 @@ class List$1 {
|
|
|
32825
32805
|
// --------------------------------------------------------------------------
|
|
32826
32806
|
render() {
|
|
32827
32807
|
const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText, hasFilterActionsStart, hasFilterActionsEnd, } = this;
|
|
32828
|
-
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,
|
|
32829
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)
|
|
32830
|
-
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 })))));
|
|
32831
32811
|
}
|
|
32832
32812
|
// --------------------------------------------------------------------------
|
|
32833
32813
|
//
|
|
@@ -33242,47 +33222,47 @@ class ListItem {
|
|
|
33242
33222
|
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
33243
33223
|
return null;
|
|
33244
33224
|
}
|
|
33245
|
-
return (hAsync("td", { class: CSS$
|
|
33225
|
+
return (hAsync("td", { class: CSS$A.selectionContainer, key: "selection-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: selected
|
|
33246
33226
|
? selectionMode === "multiple"
|
|
33247
33227
|
? ICONS$7.selectedMultiple
|
|
33248
33228
|
: ICONS$7.selectedSingle
|
|
33249
33229
|
: ICONS$7.unselected, scale: "s" })));
|
|
33250
33230
|
}
|
|
33251
33231
|
renderDragHandle() {
|
|
33252
|
-
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;
|
|
33253
33233
|
}
|
|
33254
33234
|
renderOpen() {
|
|
33255
33235
|
const { el, open, openable, parentListEl } = this;
|
|
33256
33236
|
const dir = getElementDir(el);
|
|
33257
|
-
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;
|
|
33258
33238
|
}
|
|
33259
33239
|
renderActionsStart() {
|
|
33260
33240
|
const { label, hasActionsStart } = this;
|
|
33261
|
-
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",
|
|
33262
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)
|
|
33263
|
-
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$
|
|
33243
|
+
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$i.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
33264
33244
|
}
|
|
33265
33245
|
renderActionsEnd() {
|
|
33266
33246
|
const { label, hasActionsEnd, closable, messages } = this;
|
|
33267
|
-
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",
|
|
33268
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)
|
|
33269
|
-
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));
|
|
33270
33250
|
}
|
|
33271
33251
|
renderContentStart() {
|
|
33272
33252
|
const { hasContentStart } = this;
|
|
33273
|
-
return (hAsync("div", { class: CSS$
|
|
33253
|
+
return (hAsync("div", { class: CSS$A.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$i.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
33274
33254
|
}
|
|
33275
33255
|
renderCustomContent() {
|
|
33276
33256
|
const { hasCustomContent } = this;
|
|
33277
|
-
return (hAsync("div", { class: CSS$
|
|
33257
|
+
return (hAsync("div", { class: CSS$A.customContent, hidden: !hasCustomContent }, hAsync("slot", { name: SLOTS$i.content, onSlotchange: this.handleContentSlotChange })));
|
|
33278
33258
|
}
|
|
33279
33259
|
renderContentEnd() {
|
|
33280
33260
|
const { hasContentEnd } = this;
|
|
33281
|
-
return (hAsync("div", { class: CSS$
|
|
33261
|
+
return (hAsync("div", { class: CSS$A.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$i.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
33282
33262
|
}
|
|
33283
33263
|
renderContentProperties() {
|
|
33284
33264
|
const { label, description, hasCustomContent } = this;
|
|
33285
|
-
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;
|
|
33286
33266
|
}
|
|
33287
33267
|
renderContentContainer() {
|
|
33288
33268
|
const { description, label, selectionMode, hasCustomContent } = this;
|
|
@@ -33294,9 +33274,9 @@ class ListItem {
|
|
|
33294
33274
|
this.renderContentEnd(),
|
|
33295
33275
|
];
|
|
33296
33276
|
return (hAsync("td", { "aria-label": label, class: {
|
|
33297
|
-
[CSS$
|
|
33298
|
-
[CSS$
|
|
33299
|
-
[CSS$
|
|
33277
|
+
[CSS$A.contentContainer]: true,
|
|
33278
|
+
[CSS$A.contentContainerSelectable]: selectionMode !== "none",
|
|
33279
|
+
[CSS$A.contentContainerHasCenterContent]: hasCenterContent,
|
|
33300
33280
|
}, key: "content-container", onClick: this.itemClicked, role: "gridcell",
|
|
33301
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)
|
|
33302
33282
|
ref: (el) => (this.contentEl = el) }, content));
|
|
@@ -33307,14 +33287,14 @@ class ListItem {
|
|
|
33307
33287
|
const borderSelected = showBorder && selected;
|
|
33308
33288
|
const borderUnselected = showBorder && !selected;
|
|
33309
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: {
|
|
33310
|
-
[CSS$
|
|
33311
|
-
[CSS$
|
|
33312
|
-
[CSS$
|
|
33290
|
+
[CSS$A.container]: true,
|
|
33291
|
+
[CSS$A.containerBorderSelected]: borderSelected,
|
|
33292
|
+
[CSS$A.containerBorderUnselected]: borderUnselected,
|
|
33313
33293
|
}, hidden: closed, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${this.visualLevel}` }, tabIndex: active ? 0 : -1,
|
|
33314
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)
|
|
33315
33295
|
ref: (el) => (this.containerEl = el) }, this.renderDragHandle(), this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: {
|
|
33316
|
-
[CSS$
|
|
33317
|
-
[CSS$
|
|
33296
|
+
[CSS$A.nestedContainer]: true,
|
|
33297
|
+
[CSS$A.nestedContainerHidden]: openable && !open,
|
|
33318
33298
|
} }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange, ref: (el) => (this.defaultSlotEl = el) }))));
|
|
33319
33299
|
}
|
|
33320
33300
|
// --------------------------------------------------------------------------
|
|
@@ -33404,7 +33384,7 @@ class ListItem {
|
|
|
33404
33384
|
}; }
|
|
33405
33385
|
}
|
|
33406
33386
|
|
|
33407
|
-
const CSS$
|
|
33387
|
+
const CSS$x = {
|
|
33408
33388
|
container: "container",
|
|
33409
33389
|
heading: "heading",
|
|
33410
33390
|
};
|
|
@@ -33453,7 +33433,7 @@ class ListItemGroup {
|
|
|
33453
33433
|
// --------------------------------------------------------------------------
|
|
33454
33434
|
render() {
|
|
33455
33435
|
const { heading, visualLevel } = this;
|
|
33456
|
-
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 })));
|
|
33457
33437
|
}
|
|
33458
33438
|
get el() { return getElement(this); }
|
|
33459
33439
|
static get style() { return listItemGroupCss; }
|
|
@@ -33553,7 +33533,7 @@ class Loader {
|
|
|
33553
33533
|
}; }
|
|
33554
33534
|
}
|
|
33555
33535
|
|
|
33556
|
-
const CSS$
|
|
33536
|
+
const CSS$w = {
|
|
33557
33537
|
container: "container",
|
|
33558
33538
|
fill: "fill",
|
|
33559
33539
|
stepLine: "step-line",
|
|
@@ -33703,16 +33683,16 @@ class Meter {
|
|
|
33703
33683
|
const aboveHighest = value >= highest;
|
|
33704
33684
|
const belowHighest = value < highest;
|
|
33705
33685
|
if (!value || (!low && belowHighest) || belowLowest) {
|
|
33706
|
-
return CSS$
|
|
33686
|
+
return CSS$w.success;
|
|
33707
33687
|
}
|
|
33708
33688
|
else if (aboveLowest && belowHighest) {
|
|
33709
|
-
return CSS$
|
|
33689
|
+
return CSS$w.warning;
|
|
33710
33690
|
}
|
|
33711
33691
|
else if (aboveHighest) {
|
|
33712
|
-
return CSS$
|
|
33692
|
+
return CSS$w.danger;
|
|
33713
33693
|
}
|
|
33714
33694
|
else {
|
|
33715
|
-
return CSS$
|
|
33695
|
+
return CSS$w.success;
|
|
33716
33696
|
}
|
|
33717
33697
|
}
|
|
33718
33698
|
intersects(el1, el2) {
|
|
@@ -33726,7 +33706,7 @@ class Meter {
|
|
|
33726
33706
|
const minHighOverlap = this.intersects(minLabelEl, highLabelEl);
|
|
33727
33707
|
const minLowOverlap = this.intersects(minLabelEl, lowLabelEl);
|
|
33728
33708
|
const minMaxOverlap = this.intersects(minLabelEl, maxLabelEl);
|
|
33729
|
-
const hiddenClass = CSS$
|
|
33709
|
+
const hiddenClass = CSS$w.labelHidden;
|
|
33730
33710
|
if (lowLabelEl) {
|
|
33731
33711
|
if (minLowOverlap || lowMaxOverlap || lowHighOverlap) {
|
|
33732
33712
|
lowLabelEl.classList.add(hiddenClass);
|
|
@@ -33775,26 +33755,26 @@ class Meter {
|
|
|
33775
33755
|
renderMeterFill() {
|
|
33776
33756
|
const { currentPercent, fillType } = this;
|
|
33777
33757
|
const kindClass = this.getMeterKindCssClass();
|
|
33778
|
-
return (hAsync("div", { class: { [CSS$
|
|
33758
|
+
return (hAsync("div", { class: { [CSS$w.fill]: true, [kindClass]: fillType !== "single" }, style: { width: `${currentPercent}%` } }));
|
|
33779
33759
|
}
|
|
33780
33760
|
renderRangeLine(position) {
|
|
33781
33761
|
const style = { insetInlineStart: `${position}%` };
|
|
33782
|
-
return hAsync("div", { class: CSS$
|
|
33762
|
+
return hAsync("div", { class: CSS$w.stepLine, style: style });
|
|
33783
33763
|
}
|
|
33784
33764
|
renderValueLabel() {
|
|
33785
33765
|
const { currentPercent, valueLabelType, unitLabel, value } = this;
|
|
33786
33766
|
const label = this.formatLabel(valueLabelType === "percent" ? currentPercent / 100 : value || 0, valueLabelType);
|
|
33787
|
-
return (hAsync("div", { class: { [CSS$
|
|
33767
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelValue]: true }, key: "low-label-line",
|
|
33788
33768
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33789
|
-
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))));
|
|
33790
33770
|
}
|
|
33791
33771
|
renderMinLabel() {
|
|
33792
33772
|
const { rangeLabelType, min, minPercent, unitLabel } = this;
|
|
33793
33773
|
const style = { insetInlineStart: `${minPercent}%` };
|
|
33794
33774
|
const labelMin = this.formatLabel(rangeLabelType === "percent" ? minPercent : min, rangeLabelType);
|
|
33795
|
-
return (hAsync("div", { class: { [CSS$
|
|
33775
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "min-label-line", style: style,
|
|
33796
33776
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33797
|
-
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))));
|
|
33798
33778
|
}
|
|
33799
33779
|
renderLowLabel() {
|
|
33800
33780
|
const { rangeLabelType, low, lowPercent, highPercent, labelFlipProximity } = this;
|
|
@@ -33804,7 +33784,7 @@ class Meter {
|
|
|
33804
33784
|
const styleDefault = { insetInlineStart: `${lowPercent}%` };
|
|
33805
33785
|
const styleFlipped = { insetInlineEnd: `${100 - lowPercent}%` };
|
|
33806
33786
|
const style = (highPercent - lowPercent) / 100 < labelFlipProximity ? styleFlipped : styleDefault;
|
|
33807
|
-
return (hAsync("div", { class: { [CSS$
|
|
33787
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "low-label-line", style: style,
|
|
33808
33788
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33809
33789
|
ref: (el) => (this.lowLabelEl = el) }, label));
|
|
33810
33790
|
}
|
|
@@ -33816,7 +33796,7 @@ class Meter {
|
|
|
33816
33796
|
const styleDefault = { insetInlineStart: `${highPercent}%` };
|
|
33817
33797
|
const styleFlipped = { insetInlineEnd: `${100 - highPercent}%` };
|
|
33818
33798
|
const style = highPercent / 100 >= labelFlipMax ? styleFlipped : styleDefault;
|
|
33819
|
-
return (hAsync("div", { class: { [CSS$
|
|
33799
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "high-label-line", style: style,
|
|
33820
33800
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33821
33801
|
ref: (el) => (this.highLabelEl = el) }, label));
|
|
33822
33802
|
}
|
|
@@ -33824,7 +33804,7 @@ class Meter {
|
|
|
33824
33804
|
const { rangeLabelType, max, maxPercent } = this;
|
|
33825
33805
|
const style = { insetInlineEnd: `${100 - maxPercent}%` };
|
|
33826
33806
|
const labelMax = this.formatLabel(rangeLabelType === "percent" ? maxPercent / 100 : max, rangeLabelType);
|
|
33827
|
-
return (hAsync("div", { class: { [CSS$
|
|
33807
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "max-label-line", style: style,
|
|
33828
33808
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33829
33809
|
ref: (el) => (this.maxLabelEl = el) }, labelMax));
|
|
33830
33810
|
}
|
|
@@ -33838,9 +33818,9 @@ class Meter {
|
|
|
33838
33818
|
? textUnitLabel
|
|
33839
33819
|
: undefined;
|
|
33840
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: {
|
|
33841
|
-
[CSS$
|
|
33842
|
-
[CSS$
|
|
33843
|
-
[CSS$
|
|
33821
|
+
[CSS$w.container]: true,
|
|
33822
|
+
[CSS$w.stepsVisible]: rangeLabels,
|
|
33823
|
+
[CSS$w.valueVisible]: valueLabel,
|
|
33844
33824
|
[appearance]: appearance !== "outline-fill",
|
|
33845
33825
|
}, role: "meter",
|
|
33846
33826
|
// eslint-disable-next-line react/jsx-sort-props
|
|
@@ -33896,7 +33876,7 @@ class Meter {
|
|
|
33896
33876
|
}; }
|
|
33897
33877
|
}
|
|
33898
33878
|
|
|
33899
|
-
const CSS$
|
|
33879
|
+
const CSS$v = {
|
|
33900
33880
|
modal: "modal",
|
|
33901
33881
|
title: "title",
|
|
33902
33882
|
header: "header",
|
|
@@ -33923,7 +33903,7 @@ const CSS$s = {
|
|
|
33923
33903
|
const ICONS$6 = {
|
|
33924
33904
|
close: "x",
|
|
33925
33905
|
};
|
|
33926
|
-
const SLOTS$
|
|
33906
|
+
const SLOTS$f = {
|
|
33927
33907
|
content: "content",
|
|
33928
33908
|
contentBottom: "content-bottom",
|
|
33929
33909
|
contentTop: "content-top",
|
|
@@ -34008,7 +33988,7 @@ class Modal {
|
|
|
34008
33988
|
this.updateFocusTrapElements();
|
|
34009
33989
|
};
|
|
34010
33990
|
this.updateFooterVisibility = () => {
|
|
34011
|
-
this.hasFooter = !!getSlotted(this.el, [SLOTS$
|
|
33991
|
+
this.hasFooter = !!getSlotted(this.el, [SLOTS$f.back, SLOTS$f.primary, SLOTS$f.secondary]);
|
|
34012
33992
|
};
|
|
34013
33993
|
this.updateSizeCssVars = () => {
|
|
34014
33994
|
this.cssWidth = getComputedStyle(this.el).getPropertyValue("--calcite-modal-width");
|
|
@@ -34091,50 +34071,50 @@ class Modal {
|
|
|
34091
34071
|
}
|
|
34092
34072
|
render() {
|
|
34093
34073
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-labelledby": this.titleId, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
34094
|
-
[CSS$
|
|
34095
|
-
[CSS$
|
|
34096
|
-
[CSS$
|
|
34097
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
34098
|
-
[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,
|
|
34099
34079
|
},
|
|
34100
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)
|
|
34101
|
-
ref: this.setTransitionEl }, hAsync("div", { class: CSS$
|
|
34102
|
-
[CSS$
|
|
34103
|
-
[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,
|
|
34104
34084
|
},
|
|
34105
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)
|
|
34106
|
-
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()))));
|
|
34107
34087
|
}
|
|
34108
34088
|
renderFooter() {
|
|
34109
|
-
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;
|
|
34110
34090
|
}
|
|
34111
34091
|
renderContentTop() {
|
|
34112
|
-
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 })));
|
|
34113
34093
|
}
|
|
34114
34094
|
renderContentBottom() {
|
|
34115
|
-
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 })));
|
|
34116
34096
|
}
|
|
34117
34097
|
renderCloseButton() {
|
|
34118
|
-
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,
|
|
34119
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)
|
|
34120
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;
|
|
34121
34101
|
}
|
|
34122
34102
|
renderStyle() {
|
|
34123
34103
|
if (!this.fullscreen && (this.cssWidth || this.cssHeight)) {
|
|
34124
|
-
return (hAsync("style", null, `.${CSS$
|
|
34104
|
+
return (hAsync("style", null, `.${CSS$v.container} {
|
|
34125
34105
|
${this.docked && this.cssWidth ? `align-items: center !important;` : ""}
|
|
34126
34106
|
}
|
|
34127
|
-
.${CSS$
|
|
34107
|
+
.${CSS$v.modal} {
|
|
34128
34108
|
block-size: ${this.cssHeight ? this.cssHeight : "auto"} !important;
|
|
34129
34109
|
${this.cssWidth ? `inline-size: ${this.cssWidth} !important;` : ""}
|
|
34130
34110
|
${this.cssWidth ? `max-inline-size: ${this.cssWidth} !important;` : ""}
|
|
34131
34111
|
${this.docked ? `border-radius: var(--calcite-border-radius) !important;` : ""}
|
|
34132
34112
|
}
|
|
34133
34113
|
@media screen and (max-width: ${this.cssWidth}) {
|
|
34134
|
-
.${CSS$
|
|
34114
|
+
.${CSS$v.container} {
|
|
34135
34115
|
${this.docked ? `align-items: flex-end !important;` : ""}
|
|
34136
34116
|
}
|
|
34137
|
-
.${CSS$
|
|
34117
|
+
.${CSS$v.modal} {
|
|
34138
34118
|
max-block-size: 100% !important;
|
|
34139
34119
|
inline-size: 100% !important;
|
|
34140
34120
|
max-inline-size: 100% !important;
|
|
@@ -34201,20 +34181,20 @@ class Modal {
|
|
|
34201
34181
|
}
|
|
34202
34182
|
}
|
|
34203
34183
|
onBeforeOpen() {
|
|
34204
|
-
this.transitionEl.classList.add(CSS$
|
|
34184
|
+
this.transitionEl.classList.add(CSS$v.openingActive);
|
|
34205
34185
|
this.calciteModalBeforeOpen.emit();
|
|
34206
34186
|
}
|
|
34207
34187
|
onOpen() {
|
|
34208
|
-
this.transitionEl.classList.remove(CSS$
|
|
34188
|
+
this.transitionEl.classList.remove(CSS$v.openingIdle, CSS$v.openingActive);
|
|
34209
34189
|
this.calciteModalOpen.emit();
|
|
34210
34190
|
activateFocusTrap(this);
|
|
34211
34191
|
}
|
|
34212
34192
|
onBeforeClose() {
|
|
34213
|
-
this.transitionEl.classList.add(CSS$
|
|
34193
|
+
this.transitionEl.classList.add(CSS$v.closingActive);
|
|
34214
34194
|
this.calciteModalBeforeClose.emit();
|
|
34215
34195
|
}
|
|
34216
34196
|
onClose() {
|
|
34217
|
-
this.transitionEl.classList.remove(CSS$
|
|
34197
|
+
this.transitionEl.classList.remove(CSS$v.closingIdle, CSS$v.closingActive);
|
|
34218
34198
|
this.calciteModalClose.emit();
|
|
34219
34199
|
deactivateFocusTrap(this);
|
|
34220
34200
|
}
|
|
@@ -34224,11 +34204,11 @@ class Modal {
|
|
|
34224
34204
|
}
|
|
34225
34205
|
onToggleOpenCloseComponent(this);
|
|
34226
34206
|
if (value) {
|
|
34227
|
-
this.transitionEl?.classList.add(CSS$
|
|
34207
|
+
this.transitionEl?.classList.add(CSS$v.openingIdle);
|
|
34228
34208
|
this.openModal();
|
|
34229
34209
|
}
|
|
34230
34210
|
else {
|
|
34231
|
-
this.transitionEl?.classList.add(CSS$
|
|
34211
|
+
this.transitionEl?.classList.add(CSS$v.closingIdle);
|
|
34232
34212
|
this.closeModal();
|
|
34233
34213
|
}
|
|
34234
34214
|
}
|
|
@@ -34241,8 +34221,8 @@ class Modal {
|
|
|
34241
34221
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
34242
34222
|
this.open = true;
|
|
34243
34223
|
this.opened = true;
|
|
34244
|
-
const titleEl = getSlotted(this.el, SLOTS$
|
|
34245
|
-
const contentEl = getSlotted(this.el, SLOTS$
|
|
34224
|
+
const titleEl = getSlotted(this.el, SLOTS$f.header);
|
|
34225
|
+
const contentEl = getSlotted(this.el, SLOTS$f.content);
|
|
34246
34226
|
this.titleId = ensureId(titleEl);
|
|
34247
34227
|
this.contentId = ensureId(contentEl);
|
|
34248
34228
|
if (!this.slottedInShell) {
|
|
@@ -34300,13 +34280,13 @@ class Modal {
|
|
|
34300
34280
|
}; }
|
|
34301
34281
|
}
|
|
34302
34282
|
|
|
34303
|
-
const SLOTS$
|
|
34283
|
+
const SLOTS$e = {
|
|
34304
34284
|
title: "title",
|
|
34305
34285
|
message: "message",
|
|
34306
34286
|
link: "link",
|
|
34307
34287
|
actionsEnd: "actions-end",
|
|
34308
34288
|
};
|
|
34309
|
-
const CSS$
|
|
34289
|
+
const CSS$u = {
|
|
34310
34290
|
actionsEnd: "actions-end",
|
|
34311
34291
|
close: "notice-close",
|
|
34312
34292
|
container: "container",
|
|
@@ -34385,11 +34365,11 @@ class Notice {
|
|
|
34385
34365
|
}
|
|
34386
34366
|
render() {
|
|
34387
34367
|
const { el } = this;
|
|
34388
|
-
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,
|
|
34389
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)
|
|
34390
34370
|
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
34391
|
-
const hasActionEnd = getSlotted(el, SLOTS$
|
|
34392
|
-
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));
|
|
34393
34373
|
}
|
|
34394
34374
|
//--------------------------------------------------------------------------
|
|
34395
34375
|
//
|
|
@@ -34568,7 +34548,7 @@ class OptionGroup {
|
|
|
34568
34548
|
}; }
|
|
34569
34549
|
}
|
|
34570
34550
|
|
|
34571
|
-
const CSS$
|
|
34551
|
+
const CSS$t = {
|
|
34572
34552
|
page: "page",
|
|
34573
34553
|
selected: "is-selected",
|
|
34574
34554
|
previous: "previous",
|
|
@@ -34726,8 +34706,8 @@ class Pagination {
|
|
|
34726
34706
|
const displayedPage = numberStringFormatter.localize(page.toString());
|
|
34727
34707
|
const selected = start === this.startItem;
|
|
34728
34708
|
return (hAsync("button", { "aria-current": selected ? "page" : "false", class: {
|
|
34729
|
-
[CSS$
|
|
34730
|
-
[CSS$
|
|
34709
|
+
[CSS$t.page]: true,
|
|
34710
|
+
[CSS$t.selected]: selected,
|
|
34731
34711
|
}, onClick: () => {
|
|
34732
34712
|
this.startItem = start;
|
|
34733
34713
|
this.emitUpdate();
|
|
@@ -34735,12 +34715,12 @@ class Pagination {
|
|
|
34735
34715
|
}
|
|
34736
34716
|
renderLeftEllipsis() {
|
|
34737
34717
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
34738
|
-
return hAsync("span", { class: `${CSS$
|
|
34718
|
+
return hAsync("span", { class: `${CSS$t.ellipsis} ${CSS$t.ellipsisStart}` }, "\u2026");
|
|
34739
34719
|
}
|
|
34740
34720
|
}
|
|
34741
34721
|
renderRightEllipsis() {
|
|
34742
34722
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
34743
|
-
return hAsync("span", { class: `${CSS$
|
|
34723
|
+
return hAsync("span", { class: `${CSS$t.ellipsis} ${CSS$t.ellipsisEnd}` }, "\u2026");
|
|
34744
34724
|
}
|
|
34745
34725
|
}
|
|
34746
34726
|
render() {
|
|
@@ -34748,11 +34728,11 @@ class Pagination {
|
|
|
34748
34728
|
const prevDisabled = pageSize === 1 ? startItem <= pageSize : startItem < pageSize;
|
|
34749
34729
|
const nextDisabled = pageSize === 1 ? startItem + pageSize > totalItems : startItem + pageSize > totalItems;
|
|
34750
34730
|
return (hAsync(Fragment, null, hAsync("button", { "aria-label": this.messages.previous, class: {
|
|
34751
|
-
[CSS$
|
|
34752
|
-
[CSS$
|
|
34731
|
+
[CSS$t.previous]: true,
|
|
34732
|
+
[CSS$t.disabled]: prevDisabled,
|
|
34753
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: {
|
|
34754
|
-
[CSS$
|
|
34755
|
-
[CSS$
|
|
34734
|
+
[CSS$t.next]: true,
|
|
34735
|
+
[CSS$t.disabled]: nextDisabled,
|
|
34756
34736
|
}, disabled: nextDisabled, onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: this.scale === "l" ? "m" : "s" }))));
|
|
34757
34737
|
}
|
|
34758
34738
|
static get delegatesFocus() { return true; }
|
|
@@ -34963,22 +34943,22 @@ class Panel {
|
|
|
34963
34943
|
// --------------------------------------------------------------------------
|
|
34964
34944
|
renderHeaderContent() {
|
|
34965
34945
|
const { heading, headingLevel, description, hasHeaderContent } = this;
|
|
34966
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
34967
|
-
const descriptionNode = description ? hAsync("span", { class: CSS$
|
|
34968
|
-
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;
|
|
34969
34949
|
}
|
|
34970
34950
|
renderActionBar() {
|
|
34971
|
-
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 })));
|
|
34972
34952
|
}
|
|
34973
34953
|
/**
|
|
34974
34954
|
* Allows user to override the entire header-content node.
|
|
34975
34955
|
*/
|
|
34976
34956
|
renderHeaderSlottedContent() {
|
|
34977
|
-
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 })));
|
|
34978
34958
|
}
|
|
34979
34959
|
renderHeaderStartActions() {
|
|
34980
34960
|
const { hasStartActions } = this;
|
|
34981
|
-
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 })));
|
|
34982
34962
|
}
|
|
34983
34963
|
renderHeaderActionsEnd() {
|
|
34984
34964
|
const { close, hasEndActions, messages, closable, hasMenuItems } = this;
|
|
@@ -34986,13 +34966,13 @@ class Panel {
|
|
|
34986
34966
|
const closableNode = closable ? (hAsync("calcite-action", { "aria-label": text, "data-test": "close", icon: ICONS$a.close, onClick: close, text: text, title: text,
|
|
34987
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)
|
|
34988
34968
|
ref: this.setCloseRef })) : null;
|
|
34989
|
-
const slotNode = (hAsync("slot", { name: SLOTS$
|
|
34969
|
+
const slotNode = (hAsync("slot", { name: SLOTS$n.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
34990
34970
|
const showContainer = hasEndActions || closableNode || hasMenuItems;
|
|
34991
|
-
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));
|
|
34992
34972
|
}
|
|
34993
34973
|
renderMenu() {
|
|
34994
34974
|
const { hasMenuItems, messages, menuOpen } = this;
|
|
34995
|
-
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 })));
|
|
34996
34976
|
}
|
|
34997
34977
|
renderHeaderNode() {
|
|
34998
34978
|
const { hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems, hasActionBar, } = this;
|
|
@@ -35004,24 +34984,24 @@ class Panel {
|
|
|
35004
34984
|
closable ||
|
|
35005
34985
|
hasMenuItems;
|
|
35006
34986
|
this.showHeaderContent = showHeaderContent;
|
|
35007
|
-
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()));
|
|
35008
34988
|
}
|
|
35009
34989
|
renderFooterNode() {
|
|
35010
34990
|
const { hasFooterContent, hasFooterActions } = this;
|
|
35011
34991
|
const showFooter = hasFooterContent || hasFooterActions;
|
|
35012
|
-
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 })));
|
|
35013
34993
|
}
|
|
35014
34994
|
renderContent() {
|
|
35015
|
-
return (hAsync("div", { class: CSS$
|
|
34995
|
+
return (hAsync("div", { class: CSS$L.contentWrapper, onScroll: this.panelScrollHandler,
|
|
35016
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)
|
|
35017
34997
|
ref: this.setPanelScrollEl }, hAsync("slot", null), this.renderFab()));
|
|
35018
34998
|
}
|
|
35019
34999
|
renderFab() {
|
|
35020
|
-
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 })));
|
|
35021
35001
|
}
|
|
35022
35002
|
render() {
|
|
35023
35003
|
const { loading, panelKeyDownHandler, closed, closable } = this;
|
|
35024
|
-
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,
|
|
35025
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)
|
|
35026
35006
|
ref: this.setContainerRef }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
35027
35007
|
return (hAsync(Fragment, null, loading ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
@@ -35067,7 +35047,7 @@ class Panel {
|
|
|
35067
35047
|
}; }
|
|
35068
35048
|
}
|
|
35069
35049
|
|
|
35070
|
-
const CSS$
|
|
35050
|
+
const CSS$s = {
|
|
35071
35051
|
sticky: "sticky-pos",
|
|
35072
35052
|
};
|
|
35073
35053
|
var ICON_TYPES$1;
|
|
@@ -35076,16 +35056,16 @@ var ICON_TYPES$1;
|
|
|
35076
35056
|
ICON_TYPES["square"] = "square";
|
|
35077
35057
|
ICON_TYPES["grip"] = "grip";
|
|
35078
35058
|
})(ICON_TYPES$1 || (ICON_TYPES$1 = {}));
|
|
35079
|
-
const SLOTS$
|
|
35059
|
+
const SLOTS$d = {
|
|
35080
35060
|
menuActions: "menu-actions",
|
|
35081
35061
|
};
|
|
35082
35062
|
|
|
35083
|
-
const CSS$
|
|
35063
|
+
const CSS$r = {
|
|
35084
35064
|
heading: "heading",
|
|
35085
35065
|
container: "container",
|
|
35086
35066
|
indented: "container--indented",
|
|
35087
35067
|
};
|
|
35088
|
-
const SLOTS$
|
|
35068
|
+
const SLOTS$c = {
|
|
35089
35069
|
parentItem: "parent-item",
|
|
35090
35070
|
};
|
|
35091
35071
|
|
|
@@ -35230,7 +35210,7 @@ function removeItem(event) {
|
|
|
35230
35210
|
}
|
|
35231
35211
|
const item = event.target;
|
|
35232
35212
|
const selectedValues = this.selectedValues;
|
|
35233
|
-
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) {
|
|
35234
35214
|
item.parentElement.remove();
|
|
35235
35215
|
Array.from(item.parentElement.children).forEach((item) => selectedValues.delete(item.value));
|
|
35236
35216
|
}
|
|
@@ -35406,11 +35386,11 @@ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handle
|
|
|
35406
35386
|
dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: "assistive-text",
|
|
35407
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)
|
|
35408
35388
|
ref: storeAssistiveEl })) : null,
|
|
35409
|
-
hAsync("header", { class: { [CSS$
|
|
35389
|
+
hAsync("header", { class: { [CSS$s.sticky]: true } },
|
|
35410
35390
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilterEvent, placeholder: filterPlaceholder, value: filterText,
|
|
35411
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)
|
|
35412
35392
|
ref: setFilterEl })) : null,
|
|
35413
|
-
hAsync("slot", { name: SLOTS$
|
|
35393
|
+
hAsync("slot", { name: SLOTS$d.menuActions })),
|
|
35414
35394
|
loading ? hAsync("calcite-scrim", { loading: loading }) : null,
|
|
35415
35395
|
defaultSlot)));
|
|
35416
35396
|
};
|
|
@@ -35595,16 +35575,16 @@ class PickListGroup {
|
|
|
35595
35575
|
// --------------------------------------------------------------------------
|
|
35596
35576
|
render() {
|
|
35597
35577
|
const { el, groupTitle, headingLevel } = this;
|
|
35598
|
-
const hasParentItem = getSlotted(el, SLOTS$
|
|
35578
|
+
const hasParentItem = getSlotted(el, SLOTS$c.parentItem) !== null;
|
|
35599
35579
|
const sectionClasses = {
|
|
35600
|
-
[CSS$
|
|
35601
|
-
[CSS$
|
|
35580
|
+
[CSS$r.container]: true,
|
|
35581
|
+
[CSS$r.indented]: hasParentItem,
|
|
35602
35582
|
};
|
|
35603
35583
|
const title = groupTitle;
|
|
35604
35584
|
const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
|
|
35605
35585
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
35606
35586
|
const level = headingLevel || relativeLevel;
|
|
35607
|
-
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))));
|
|
35608
35588
|
}
|
|
35609
35589
|
get el() { return getElement(this); }
|
|
35610
35590
|
static get style() { return pickListGroupCss; }
|
|
@@ -35621,7 +35601,7 @@ class PickListGroup {
|
|
|
35621
35601
|
}; }
|
|
35622
35602
|
}
|
|
35623
35603
|
|
|
35624
|
-
const CSS$
|
|
35604
|
+
const CSS$q = {
|
|
35625
35605
|
actions: "actions",
|
|
35626
35606
|
actionsEnd: "actions--end",
|
|
35627
35607
|
actionsStart: "actions--start",
|
|
@@ -35640,7 +35620,7 @@ const ICONS$5 = {
|
|
|
35640
35620
|
checked: "check",
|
|
35641
35621
|
remove: "x",
|
|
35642
35622
|
};
|
|
35643
|
-
const SLOTS$
|
|
35623
|
+
const SLOTS$b = {
|
|
35644
35624
|
actionsEnd: "actions-end",
|
|
35645
35625
|
actionsStart: "actions-start",
|
|
35646
35626
|
};
|
|
@@ -35783,28 +35763,28 @@ class PickListItem {
|
|
|
35783
35763
|
return null;
|
|
35784
35764
|
}
|
|
35785
35765
|
return (hAsync("span", { class: {
|
|
35786
|
-
[CSS$
|
|
35787
|
-
[CSS$
|
|
35766
|
+
[CSS$q.icon]: true,
|
|
35767
|
+
[CSS$q.iconDot]: icon === ICON_TYPES$1.circle,
|
|
35788
35768
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? (hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS$5.checked, scale: "s" })) : null));
|
|
35789
35769
|
}
|
|
35790
35770
|
renderRemoveAction() {
|
|
35791
|
-
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;
|
|
35792
35772
|
}
|
|
35793
35773
|
renderActionsStart() {
|
|
35794
35774
|
const { el } = this;
|
|
35795
|
-
const hasActionsStart = getSlotted(el, SLOTS$
|
|
35796
|
-
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;
|
|
35797
35777
|
}
|
|
35798
35778
|
renderActionsEnd() {
|
|
35799
35779
|
const { el, removable } = this;
|
|
35800
|
-
const hasActionsEnd = getSlotted(el, SLOTS$
|
|
35801
|
-
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;
|
|
35802
35782
|
}
|
|
35803
35783
|
render() {
|
|
35804
35784
|
const { description, label } = this;
|
|
35805
|
-
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,
|
|
35806
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)
|
|
35807
|
-
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()));
|
|
35808
35788
|
}
|
|
35809
35789
|
static get assetsDirs() { return ["assets"]; }
|
|
35810
35790
|
get el() { return getElement(this); }
|
|
@@ -35847,7 +35827,7 @@ class PickListItem {
|
|
|
35847
35827
|
}; }
|
|
35848
35828
|
}
|
|
35849
35829
|
|
|
35850
|
-
const CSS$
|
|
35830
|
+
const CSS$p = {
|
|
35851
35831
|
container: "container",
|
|
35852
35832
|
imageContainer: "image-container",
|
|
35853
35833
|
closeButtonContainer: "close-button-container",
|
|
@@ -35941,7 +35921,7 @@ class PopoverManager {
|
|
|
35941
35921
|
}
|
|
35942
35922
|
}
|
|
35943
35923
|
|
|
35944
|
-
const CSS$
|
|
35924
|
+
const CSS$o = {
|
|
35945
35925
|
arrow: "calcite-floating-ui-arrow",
|
|
35946
35926
|
arrowStroke: "calcite-floating-ui-arrow__stroke",
|
|
35947
35927
|
};
|
|
@@ -35971,8 +35951,8 @@ const FloatingArrow = ({ floatingLayout, key, ref, }) => {
|
|
|
35971
35951
|
` L${width - svgX},${height}` +
|
|
35972
35952
|
` Q${svgX},${height} ${svgX},${height}` +
|
|
35973
35953
|
" Z";
|
|
35974
|
-
return (hAsync("svg", { "aria-hidden": "true", class: CSS$
|
|
35975
|
-
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 })),
|
|
35976
35956
|
hAsync("path", { d: dValue, stroke: "none" })));
|
|
35977
35957
|
};
|
|
35978
35958
|
|
|
@@ -36224,14 +36204,14 @@ class Popover {
|
|
|
36224
36204
|
// --------------------------------------------------------------------------
|
|
36225
36205
|
renderCloseButton() {
|
|
36226
36206
|
const { messages, closable } = this;
|
|
36227
|
-
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,
|
|
36228
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)
|
|
36229
36209
|
ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : this.scale })))) : null;
|
|
36230
36210
|
}
|
|
36231
36211
|
renderHeader() {
|
|
36232
36212
|
const { heading, headingLevel } = this;
|
|
36233
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
36234
|
-
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;
|
|
36235
36215
|
}
|
|
36236
36216
|
render() {
|
|
36237
36217
|
const { effectiveReferenceElement, heading, label, open, pointerDisabled, floatingLayout } = this;
|
|
@@ -36246,9 +36226,9 @@ class Popover {
|
|
|
36246
36226
|
},
|
|
36247
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)
|
|
36248
36228
|
ref: this.setTransitionEl }, arrowNode, hAsync("div", { class: {
|
|
36249
|
-
[CSS$
|
|
36250
|
-
[CSS$
|
|
36251
|
-
} }, 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))));
|
|
36252
36232
|
}
|
|
36253
36233
|
static get assetsDirs() { return ["assets"]; }
|
|
36254
36234
|
get el() { return getElement(this); }
|
|
@@ -36342,7 +36322,7 @@ class Progress {
|
|
|
36342
36322
|
}; }
|
|
36343
36323
|
}
|
|
36344
36324
|
|
|
36345
|
-
const CSS$
|
|
36325
|
+
const CSS$n = {
|
|
36346
36326
|
container: "container",
|
|
36347
36327
|
};
|
|
36348
36328
|
|
|
@@ -36619,7 +36599,7 @@ class RadioButton {
|
|
|
36619
36599
|
// --------------------------------------------------------------------------
|
|
36620
36600
|
render() {
|
|
36621
36601
|
const tabIndex = this.getTabIndex();
|
|
36622
|
-
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,
|
|
36623
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)
|
|
36624
36604
|
ref: this.setContainerEl }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
36625
36605
|
}
|
|
@@ -37046,7 +37026,7 @@ class Rating {
|
|
|
37046
37026
|
}; }
|
|
37047
37027
|
}
|
|
37048
37028
|
|
|
37049
|
-
const CSS$
|
|
37029
|
+
const CSS$m = {
|
|
37050
37030
|
scrim: "scrim",
|
|
37051
37031
|
content: "content",
|
|
37052
37032
|
};
|
|
@@ -37116,7 +37096,7 @@ class Scrim {
|
|
|
37116
37096
|
// --------------------------------------------------------------------------
|
|
37117
37097
|
render() {
|
|
37118
37098
|
const { hasContent, loading, messages } = this;
|
|
37119
|
-
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 }))));
|
|
37120
37100
|
}
|
|
37121
37101
|
getScale(size) {
|
|
37122
37102
|
if (size < BREAKPOINTS.s) {
|
|
@@ -37388,10 +37368,10 @@ class SegmentedControl {
|
|
|
37388
37368
|
}; }
|
|
37389
37369
|
}
|
|
37390
37370
|
|
|
37391
|
-
const SLOTS$
|
|
37371
|
+
const SLOTS$a = {
|
|
37392
37372
|
input: "input",
|
|
37393
37373
|
};
|
|
37394
|
-
const CSS$
|
|
37374
|
+
const CSS$l = {
|
|
37395
37375
|
segmentedControlItemIcon: "segmented-control-item-icon",
|
|
37396
37376
|
};
|
|
37397
37377
|
|
|
@@ -37420,8 +37400,8 @@ class SegmentedControlItem {
|
|
|
37420
37400
|
//--------------------------------------------------------------------------
|
|
37421
37401
|
render() {
|
|
37422
37402
|
const { appearance, checked, layout, scale, value } = this;
|
|
37423
|
-
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$
|
|
37424
|
-
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;
|
|
37425
37405
|
return (hAsync(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, hAsync("label", { class: {
|
|
37426
37406
|
"label--scale-s": scale === "s",
|
|
37427
37407
|
"label--scale-m": scale === "m",
|
|
@@ -37429,7 +37409,7 @@ class SegmentedControlItem {
|
|
|
37429
37409
|
"label--horizontal": layout === "horizontal",
|
|
37430
37410
|
"label--outline": appearance === "outline",
|
|
37431
37411
|
"label--outline-fill": appearance === "outline-fill",
|
|
37432
|
-
} }, 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)));
|
|
37433
37413
|
}
|
|
37434
37414
|
get el() { return getElement(this); }
|
|
37435
37415
|
static get watchers() { return {
|
|
@@ -37455,7 +37435,7 @@ class SegmentedControlItem {
|
|
|
37455
37435
|
}; }
|
|
37456
37436
|
}
|
|
37457
37437
|
|
|
37458
|
-
const CSS$
|
|
37438
|
+
const CSS$k = {
|
|
37459
37439
|
icon: "icon",
|
|
37460
37440
|
iconContainer: "icon-container",
|
|
37461
37441
|
select: "select",
|
|
@@ -37642,10 +37622,10 @@ class Select {
|
|
|
37642
37622
|
//
|
|
37643
37623
|
//--------------------------------------------------------------------------
|
|
37644
37624
|
renderChevron() {
|
|
37645
|
-
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" })));
|
|
37646
37626
|
}
|
|
37647
37627
|
render() {
|
|
37648
|
-
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,
|
|
37649
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)
|
|
37650
37630
|
ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
37651
37631
|
}
|
|
@@ -37676,7 +37656,7 @@ class Select {
|
|
|
37676
37656
|
}; }
|
|
37677
37657
|
}
|
|
37678
37658
|
|
|
37679
|
-
const CSS$
|
|
37659
|
+
const CSS$j = {
|
|
37680
37660
|
scrim: "scrim",
|
|
37681
37661
|
container: "container",
|
|
37682
37662
|
containerOpen: "container--open",
|
|
@@ -37799,12 +37779,12 @@ class Sheet {
|
|
|
37799
37779
|
render() {
|
|
37800
37780
|
const dir = getElementDir(this.el);
|
|
37801
37781
|
return (hAsync(Host, { "aria-describedby": this.contentId, "aria-label": this.label, "aria-modal": "true", role: "dialog" }, hAsync("div", { class: {
|
|
37802
|
-
[CSS$
|
|
37803
|
-
[CSS$
|
|
37804
|
-
[CSS$
|
|
37782
|
+
[CSS$j.container]: true,
|
|
37783
|
+
[CSS$j.containerOpen]: this.opened,
|
|
37784
|
+
[CSS$j.containerSlottedInShell]: this.slottedInShell,
|
|
37805
37785
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
37806
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
37807
|
-
[CSS$
|
|
37786
|
+
} }, hAsync("calcite-scrim", { class: CSS$j.scrim, onClick: this.handleOutsideClose }), hAsync("div", { class: {
|
|
37787
|
+
[CSS$j.content]: true,
|
|
37808
37788
|
},
|
|
37809
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)
|
|
37810
37790
|
ref: this.setTransitionEl }, hAsync("slot", null)))));
|
|
@@ -37909,7 +37889,7 @@ class Sheet {
|
|
|
37909
37889
|
}; }
|
|
37910
37890
|
}
|
|
37911
37891
|
|
|
37912
|
-
const CSS$
|
|
37892
|
+
const CSS$i = {
|
|
37913
37893
|
main: "main",
|
|
37914
37894
|
content: "content",
|
|
37915
37895
|
contentBehind: "content--behind",
|
|
@@ -37918,7 +37898,7 @@ const CSS$f = {
|
|
|
37918
37898
|
container: "container",
|
|
37919
37899
|
contentBehindCenterContent: "center-content",
|
|
37920
37900
|
};
|
|
37921
|
-
const SLOTS$
|
|
37901
|
+
const SLOTS$9 = {
|
|
37922
37902
|
centerRow: "center-row",
|
|
37923
37903
|
panelStart: "panel-start",
|
|
37924
37904
|
panelEnd: "panel-end",
|
|
@@ -38008,44 +37988,44 @@ class Shell {
|
|
|
38008
37988
|
//
|
|
38009
37989
|
// --------------------------------------------------------------------------
|
|
38010
37990
|
renderHeader() {
|
|
38011
|
-
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 })));
|
|
38012
37992
|
}
|
|
38013
37993
|
renderFooter() {
|
|
38014
|
-
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 })));
|
|
38015
37995
|
}
|
|
38016
37996
|
renderAlerts() {
|
|
38017
|
-
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 })));
|
|
38018
37998
|
}
|
|
38019
37999
|
renderSheets() {
|
|
38020
|
-
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 })));
|
|
38021
38001
|
}
|
|
38022
38002
|
renderModals() {
|
|
38023
|
-
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 })));
|
|
38024
38004
|
}
|
|
38025
38005
|
renderContent() {
|
|
38026
38006
|
const defaultSlotNode = hAsync("slot", { key: "default-slot" });
|
|
38027
|
-
const deprecatedCenterRowSlotNode = (hAsync("slot", { key: "center-row-slot", name: SLOTS$
|
|
38028
|
-
const panelBottomSlotNode = hAsync("slot", { key: "panel-bottom-slot", name: SLOTS$
|
|
38029
|
-
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 });
|
|
38030
38010
|
const contentContainerKey = "content-container";
|
|
38031
38011
|
const content = !!this.contentBehind
|
|
38032
38012
|
? [
|
|
38033
38013
|
hAsync("div", { class: {
|
|
38034
|
-
[CSS$
|
|
38035
|
-
[CSS$
|
|
38014
|
+
[CSS$i.content]: true,
|
|
38015
|
+
[CSS$i.contentBehind]: true,
|
|
38036
38016
|
}, key: contentContainerKey }, defaultSlotNode),
|
|
38037
|
-
hAsync("div", { class: CSS$
|
|
38017
|
+
hAsync("div", { class: CSS$i.contentBehindCenterContent }, panelTopSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
38038
38018
|
]
|
|
38039
38019
|
: [
|
|
38040
|
-
hAsync("div", { class: CSS$
|
|
38020
|
+
hAsync("div", { class: CSS$i.content, key: contentContainerKey }, panelTopSlotNode, defaultSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
38041
38021
|
];
|
|
38042
38022
|
return content;
|
|
38043
38023
|
}
|
|
38044
38024
|
renderMain() {
|
|
38045
|
-
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 })));
|
|
38046
38026
|
}
|
|
38047
38027
|
renderPositionedSlots() {
|
|
38048
|
-
return (hAsync("div", { class: CSS$
|
|
38028
|
+
return (hAsync("div", { class: CSS$i.positionedSlotWrapper }, this.renderAlerts(), this.renderModals(), this.renderSheets()));
|
|
38049
38029
|
}
|
|
38050
38030
|
render() {
|
|
38051
38031
|
return (hAsync(Fragment, null, this.renderHeader(), this.renderMain(), this.renderFooter(), this.renderPositionedSlots()));
|
|
@@ -38069,11 +38049,11 @@ class Shell {
|
|
|
38069
38049
|
}; }
|
|
38070
38050
|
}
|
|
38071
38051
|
|
|
38072
|
-
const CSS$
|
|
38052
|
+
const CSS$h = {
|
|
38073
38053
|
actionBarContainer: "action-bar-container",
|
|
38074
38054
|
content: "content",
|
|
38075
38055
|
};
|
|
38076
|
-
const SLOTS$
|
|
38056
|
+
const SLOTS$8 = {
|
|
38077
38057
|
actionBar: "action-bar",
|
|
38078
38058
|
};
|
|
38079
38059
|
|
|
@@ -38108,9 +38088,9 @@ class ShellCenterRow {
|
|
|
38108
38088
|
// --------------------------------------------------------------------------
|
|
38109
38089
|
render() {
|
|
38110
38090
|
const { el } = this;
|
|
38111
|
-
const contentNode = (hAsync("div", { class: CSS$
|
|
38112
|
-
const actionBar = getSlotted(el, SLOTS$
|
|
38113
|
-
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;
|
|
38114
38094
|
const children = [actionBarNode, contentNode];
|
|
38115
38095
|
if (actionBar?.position === "end") {
|
|
38116
38096
|
children.reverse();
|
|
@@ -38133,7 +38113,7 @@ class ShellCenterRow {
|
|
|
38133
38113
|
}; }
|
|
38134
38114
|
}
|
|
38135
38115
|
|
|
38136
|
-
const CSS$
|
|
38116
|
+
const CSS$g = {
|
|
38137
38117
|
container: "container",
|
|
38138
38118
|
content: "content",
|
|
38139
38119
|
contentHeader: "content__header",
|
|
@@ -38142,7 +38122,7 @@ const CSS$d = {
|
|
|
38142
38122
|
contentOverlay: "content--overlay",
|
|
38143
38123
|
separator: "separator",
|
|
38144
38124
|
};
|
|
38145
|
-
const SLOTS$
|
|
38125
|
+
const SLOTS$7 = {
|
|
38146
38126
|
actionBar: "action-bar",
|
|
38147
38127
|
header: "header",
|
|
38148
38128
|
};
|
|
@@ -38396,7 +38376,7 @@ class ShellPanel {
|
|
|
38396
38376
|
//
|
|
38397
38377
|
// --------------------------------------------------------------------------
|
|
38398
38378
|
renderHeader() {
|
|
38399
|
-
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 })));
|
|
38400
38380
|
}
|
|
38401
38381
|
render() {
|
|
38402
38382
|
const { collapsed, position, initialContentWidth, initialContentHeight, contentWidth, contentWidthMax, contentWidthMin, contentHeight, contentHeightMax, contentHeightMin, resizable, layout, displayMode, } = this;
|
|
@@ -38413,7 +38393,7 @@ class ShellPanel {
|
|
|
38413
38393
|
: null;
|
|
38414
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"
|
|
38415
38395
|
? contentHeight ?? initialContentHeight
|
|
38416
|
-
: contentWidth ?? initialContentWidth, class: CSS$
|
|
38396
|
+
: contentWidth ?? initialContentWidth, class: CSS$g.separator, key: "separator", onKeyDown: this.separatorKeyDown, role: "separator", tabIndex: 0, "touch-action": "none",
|
|
38417
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)
|
|
38418
38398
|
ref: this.connectSeparator })) : null;
|
|
38419
38399
|
const getAnimationDir = () => {
|
|
@@ -38429,20 +38409,20 @@ class ShellPanel {
|
|
|
38429
38409
|
};
|
|
38430
38410
|
const contentNode = (hAsync("div", { class: {
|
|
38431
38411
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
38432
|
-
[CSS$
|
|
38433
|
-
[CSS$
|
|
38434
|
-
[CSS$
|
|
38412
|
+
[CSS$g.content]: true,
|
|
38413
|
+
[CSS$g.contentOverlay]: displayMode === "overlay",
|
|
38414
|
+
[CSS$g.contentFloat]: displayMode === "float",
|
|
38435
38415
|
[CSS_UTILITY.calciteAnimate]: displayMode === "overlay",
|
|
38436
38416
|
[getAnimationDir()]: displayMode === "overlay",
|
|
38437
38417
|
}, hidden: collapsed, key: "content", style: style,
|
|
38438
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)
|
|
38439
|
-
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
38440
|
-
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 }));
|
|
38441
38421
|
const mainNodes = [actionBarNode, contentNode];
|
|
38442
38422
|
if (position === "end") {
|
|
38443
38423
|
mainNodes.reverse();
|
|
38444
38424
|
}
|
|
38445
|
-
return hAsync("div", { class: { [CSS$
|
|
38425
|
+
return hAsync("div", { class: { [CSS$g.container]: true } }, mainNodes);
|
|
38446
38426
|
}
|
|
38447
38427
|
// --------------------------------------------------------------------------
|
|
38448
38428
|
//
|
|
@@ -38543,7 +38523,7 @@ class ShellPanel {
|
|
|
38543
38523
|
}; }
|
|
38544
38524
|
}
|
|
38545
38525
|
|
|
38546
|
-
const CSS$
|
|
38526
|
+
const CSS$f = {
|
|
38547
38527
|
handleLabel: "handle__label",
|
|
38548
38528
|
handleLabelMinValue: "handle__label--minValue",
|
|
38549
38529
|
handleLabelValue: "handle__label--value",
|
|
@@ -38742,8 +38722,8 @@ class Slider {
|
|
|
38742
38722
|
const leftThumbOffset = `${mirror ? 100 - minInterval : minInterval}%`;
|
|
38743
38723
|
const rightThumbOffset = `${mirror ? maxInterval : 100 - maxInterval}%`;
|
|
38744
38724
|
const valueIsRange = isRange(this.value);
|
|
38745
|
-
const handleLabelMinValueClasses = `${CSS$
|
|
38746
|
-
const handleLabelValueClasses = `${CSS$
|
|
38725
|
+
const handleLabelMinValueClasses = `${CSS$f.handleLabel} ${CSS$f.handleLabelMinValue}`;
|
|
38726
|
+
const handleLabelValueClasses = `${CSS$f.handleLabel} ${CSS$f.handleLabelValue}`;
|
|
38747
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: {
|
|
38748
38728
|
thumb: true,
|
|
38749
38729
|
"thumb--value": true,
|
|
@@ -38879,8 +38859,8 @@ class Slider {
|
|
|
38879
38859
|
const displayedTickValue = this.determineGroupSeparator(tick);
|
|
38880
38860
|
const tickLabel = (hAsync("span", { class: {
|
|
38881
38861
|
tick__label: true,
|
|
38882
|
-
[CSS$
|
|
38883
|
-
[CSS$
|
|
38862
|
+
[CSS$f.tickMin]: isMinTickLabel,
|
|
38863
|
+
[CSS$f.tickMax]: isMaxTickLabel,
|
|
38884
38864
|
} }, displayedTickValue));
|
|
38885
38865
|
if (this.labelTicks && !this.hasHistogram && !valueIsRange) {
|
|
38886
38866
|
return tickLabel;
|
|
@@ -39438,7 +39418,7 @@ class Slider {
|
|
|
39438
39418
|
}; }
|
|
39439
39419
|
}
|
|
39440
39420
|
|
|
39441
|
-
const CSS$
|
|
39421
|
+
const CSS$e = {
|
|
39442
39422
|
sortItem: "sort-item",
|
|
39443
39423
|
container: "container",
|
|
39444
39424
|
containerHorizontal: "container--horizontal",
|
|
@@ -39566,9 +39546,9 @@ class SortableList {
|
|
|
39566
39546
|
const { layout } = this;
|
|
39567
39547
|
const horizontal = layout === "horizontal" || false;
|
|
39568
39548
|
return (hAsync("div", { class: {
|
|
39569
|
-
[CSS$
|
|
39570
|
-
[CSS$
|
|
39571
|
-
[CSS$
|
|
39549
|
+
[CSS$e.container]: true,
|
|
39550
|
+
[CSS$e.containerVertical]: !horizontal,
|
|
39551
|
+
[CSS$e.containerHorizontal]: horizontal,
|
|
39572
39552
|
} }, hAsync("slot", null)));
|
|
39573
39553
|
}
|
|
39574
39554
|
get el() { return getElement(this); }
|
|
@@ -39592,7 +39572,7 @@ class SortableList {
|
|
|
39592
39572
|
}; }
|
|
39593
39573
|
}
|
|
39594
39574
|
|
|
39595
|
-
const CSS$
|
|
39575
|
+
const CSS$d = {
|
|
39596
39576
|
container: "split-button__container",
|
|
39597
39577
|
dividerContainer: "split-button__divider-container",
|
|
39598
39578
|
divider: "split-button__divider",
|
|
@@ -39671,13 +39651,13 @@ class SplitButton {
|
|
|
39671
39651
|
}
|
|
39672
39652
|
render() {
|
|
39673
39653
|
const widthClasses = {
|
|
39674
|
-
[CSS$
|
|
39675
|
-
[CSS$
|
|
39676
|
-
[CSS$
|
|
39677
|
-
[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",
|
|
39678
39658
|
};
|
|
39679
39659
|
const buttonWidth = this.width === "auto" ? "auto" : "full";
|
|
39680
|
-
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))));
|
|
39681
39661
|
}
|
|
39682
39662
|
get dropdownIcon() {
|
|
39683
39663
|
return this.dropdownIconType === "chevron"
|
|
@@ -39764,25 +39744,25 @@ class Stack {
|
|
|
39764
39744
|
// --------------------------------------------------------------------------
|
|
39765
39745
|
renderActionsStart() {
|
|
39766
39746
|
const { hasActionsStart } = this;
|
|
39767
|
-
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 })));
|
|
39768
39748
|
}
|
|
39769
39749
|
renderActionsEnd() {
|
|
39770
39750
|
const { hasActionsEnd } = this;
|
|
39771
|
-
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 })));
|
|
39772
39752
|
}
|
|
39773
39753
|
renderContentStart() {
|
|
39774
39754
|
const { hasContentStart } = this;
|
|
39775
|
-
return (hAsync("div", { class: CSS$
|
|
39755
|
+
return (hAsync("div", { class: CSS$y.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$g.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
39776
39756
|
}
|
|
39777
39757
|
renderDefaultContent() {
|
|
39778
|
-
return (hAsync("div", { class: CSS$
|
|
39758
|
+
return (hAsync("div", { class: CSS$y.content }, hAsync("slot", null)));
|
|
39779
39759
|
}
|
|
39780
39760
|
renderContentEnd() {
|
|
39781
39761
|
const { hasContentEnd } = this;
|
|
39782
|
-
return (hAsync("div", { class: CSS$
|
|
39762
|
+
return (hAsync("div", { class: CSS$y.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$g.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
39783
39763
|
}
|
|
39784
39764
|
render() {
|
|
39785
|
-
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())));
|
|
39786
39766
|
}
|
|
39787
39767
|
static get style() { return stackCss; }
|
|
39788
39768
|
static get cmpMeta() { return {
|
|
@@ -40680,7 +40660,7 @@ class TabNav {
|
|
|
40680
40660
|
}; }
|
|
40681
40661
|
}
|
|
40682
40662
|
|
|
40683
|
-
const CSS$
|
|
40663
|
+
const CSS$c = {
|
|
40684
40664
|
closeButton: "close-button",
|
|
40685
40665
|
container: "container",
|
|
40686
40666
|
content: "content",
|
|
@@ -40800,18 +40780,18 @@ class TabTitle {
|
|
|
40800
40780
|
render() {
|
|
40801
40781
|
const { el, closed } = this;
|
|
40802
40782
|
const id = el.id || this.guid;
|
|
40803
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
40804
|
-
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" }));
|
|
40805
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: {
|
|
40806
40786
|
container: true,
|
|
40807
|
-
[CSS$
|
|
40787
|
+
[CSS$c.iconPresent]: !!this.iconStart || !!this.iconEnd,
|
|
40808
40788
|
}, hidden: closed,
|
|
40809
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)
|
|
40810
|
-
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())));
|
|
40811
40791
|
}
|
|
40812
40792
|
renderCloseButton() {
|
|
40813
40793
|
const { closable, messages } = this;
|
|
40814
|
-
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",
|
|
40815
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)
|
|
40816
40796
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$4.close, scale: this.scale === "l" ? "m" : "s" }))) : null;
|
|
40817
40797
|
}
|
|
@@ -40978,6 +40958,883 @@ class TabTitle {
|
|
|
40978
40958
|
}; }
|
|
40979
40959
|
}
|
|
40980
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
|
+
|
|
40981
41838
|
const SLOTS$5 = {
|
|
40982
41839
|
titleGroup: "title-group",
|
|
40983
41840
|
};
|
|
@@ -44373,19 +45230,19 @@ class ValueListItem {
|
|
|
44373
45230
|
renderActionsEnd() {
|
|
44374
45231
|
const { el } = this;
|
|
44375
45232
|
const hasActionsEnd = getSlotted(el, SLOTS.actionsEnd);
|
|
44376
|
-
return hasActionsEnd ? (hAsync("slot", { name: SLOTS.actionsEnd, slot: SLOTS$
|
|
45233
|
+
return hasActionsEnd ? (hAsync("slot", { name: SLOTS.actionsEnd, slot: SLOTS$b.actionsEnd })) : null;
|
|
44377
45234
|
}
|
|
44378
45235
|
renderActionsStart() {
|
|
44379
45236
|
const { el } = this;
|
|
44380
45237
|
const hasActionsStart = getSlotted(el, SLOTS.actionsStart);
|
|
44381
|
-
return hasActionsStart ? (hAsync("slot", { name: SLOTS.actionsStart, slot: SLOTS$
|
|
45238
|
+
return hasActionsStart ? (hAsync("slot", { name: SLOTS.actionsStart, slot: SLOTS$b.actionsStart })) : null;
|
|
44382
45239
|
}
|
|
44383
45240
|
renderHandle() {
|
|
44384
45241
|
const { icon, iconFlipRtl } = this;
|
|
44385
45242
|
if (icon === ICON_TYPES$1.grip) {
|
|
44386
45243
|
return (hAsync("span", { class: {
|
|
44387
|
-
[CSS$
|
|
44388
|
-
[CSS$
|
|
45244
|
+
[CSS$q.handle]: true,
|
|
45245
|
+
[CSS$q.handleActivated]: this.handleActivated,
|
|
44389
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" })));
|
|
44390
45247
|
}
|
|
44391
45248
|
}
|
|
@@ -44510,6 +45367,10 @@ registerComponents([
|
|
|
44510
45367
|
Tab,
|
|
44511
45368
|
TabNav,
|
|
44512
45369
|
TabTitle,
|
|
45370
|
+
Table,
|
|
45371
|
+
TableCell,
|
|
45372
|
+
TableHeader,
|
|
45373
|
+
TableRow,
|
|
44513
45374
|
Tabs,
|
|
44514
45375
|
TextArea,
|
|
44515
45376
|
Tile,
|