@esri/calcite-components 1.7.0-next.16 → 1.7.0-next.18
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-012fc9dd.js +6 -0
- package/dist/calcite/p-0151ff3e.entry.js +6 -0
- package/dist/calcite/p-019c785c.entry.js +6 -0
- package/dist/calcite/p-03e5d356.js +6 -0
- package/dist/calcite/p-048225ec.js +6 -0
- package/dist/calcite/p-0652f82b.js +6 -0
- package/dist/calcite/p-08eadd14.js +6 -0
- package/dist/calcite/p-0ad9c0f9.entry.js +6 -0
- package/dist/calcite/p-0b7270da.js +6 -0
- package/dist/calcite/p-0bba92d1.js +6 -0
- package/dist/calcite/p-0de8c46c.entry.js +6 -0
- package/dist/calcite/p-0f30f888.entry.js +6 -0
- package/dist/calcite/p-0fc17b9c.js +6 -0
- package/dist/calcite/p-1046e7e2.entry.js +6 -0
- package/dist/calcite/p-125d425f.entry.js +6 -0
- package/dist/calcite/p-14a07fd9.entry.js +6 -0
- package/dist/calcite/p-14ef7f3d.js +6 -0
- package/dist/calcite/p-1689a8df.entry.js +6 -0
- package/dist/calcite/p-181c953e.js +6 -0
- package/dist/calcite/p-19c88403.entry.js +6 -0
- package/dist/calcite/p-1dca9d13.js +6 -0
- package/dist/calcite/p-1e273a44.entry.js +6 -0
- package/dist/calcite/p-1f0960df.entry.js +6 -0
- package/dist/calcite/p-1f327aeb.entry.js +6 -0
- package/dist/calcite/p-1f74ce8b.entry.js +6 -0
- package/dist/calcite/p-218f25ad.entry.js +6 -0
- package/dist/calcite/p-22fc0d06.js +6 -0
- package/dist/calcite/p-2663fb70.entry.js +6 -0
- package/dist/calcite/p-27fa6150.entry.js +6 -0
- package/dist/calcite/p-29b79775.entry.js +6 -0
- package/dist/calcite/p-2c0099b4.js +6 -0
- package/dist/calcite/p-2c2cdf3d.entry.js +6 -0
- package/dist/calcite/p-2e8386db.js +6 -0
- package/dist/calcite/p-2ea4be23.js +6 -0
- package/dist/calcite/p-2fe44d84.entry.js +6 -0
- package/dist/calcite/p-30e3b296.js +6 -0
- package/dist/calcite/p-31bd62d9.js +6 -0
- package/dist/calcite/p-329457c1.entry.js +6 -0
- package/dist/calcite/p-329eae3f.js +6 -0
- package/dist/calcite/p-33884fda.js +6 -0
- package/dist/calcite/p-3481b05b.entry.js +6 -0
- package/dist/calcite/p-34a423fc.js +6 -0
- package/dist/calcite/p-386251fa.js +6 -0
- package/dist/calcite/p-3bfce695.entry.js +6 -0
- package/dist/calcite/p-3c2ff142.entry.js +6 -0
- package/dist/calcite/p-3d1a23be.js +6 -0
- package/dist/calcite/p-4017543e.js +6 -0
- package/dist/calcite/p-40cedd92.js +6 -0
- package/dist/calcite/p-41bdc95c.entry.js +6 -0
- package/dist/calcite/p-4358ab9c.entry.js +6 -0
- package/dist/calcite/p-43e0bb87.js +6 -0
- package/dist/calcite/p-4514bf84.js +6 -0
- package/dist/calcite/p-464ecfb6.js +6 -0
- package/dist/calcite/p-48607ef9.entry.js +6 -0
- package/dist/calcite/p-49843433.entry.js +6 -0
- package/dist/calcite/p-524fea3a.js +6 -0
- package/dist/calcite/p-52f87ac6.js +7 -0
- package/dist/calcite/p-538ae79f.entry.js +6 -0
- package/dist/calcite/p-53b09ad3.entry.js +6 -0
- package/dist/calcite/p-54807f5f.js +6 -0
- package/dist/calcite/p-559339a1.entry.js +6 -0
- package/dist/calcite/p-592eec9f.entry.js +6 -0
- package/dist/calcite/p-5af24438.entry.js +6 -0
- package/dist/calcite/p-5eea016d.js +6 -0
- package/dist/calcite/p-5f17a9d3.js +6 -0
- package/dist/calcite/p-611c0f03.entry.js +6 -0
- package/dist/calcite/p-626c7806.js +6 -0
- package/dist/calcite/p-649cf073.js +6 -0
- package/dist/calcite/p-65821a86.entry.js +6 -0
- package/dist/calcite/p-67d4fbc9.js +6 -0
- package/dist/calcite/p-6a7fa577.js +6 -0
- package/dist/calcite/p-6b4a9532.entry.js +6 -0
- package/dist/calcite/p-6bf23af0.entry.js +6 -0
- package/dist/calcite/p-6d0ea406.entry.js +6 -0
- package/dist/calcite/p-6e0020dc.js +6 -0
- package/dist/calcite/p-7201666b.js +6 -0
- package/dist/calcite/p-75fba28e.entry.js +6 -0
- package/dist/calcite/p-775d8646.entry.js +6 -0
- package/dist/calcite/p-79465994.js +6 -0
- package/dist/calcite/p-79474058.entry.js +6 -0
- package/dist/calcite/p-7a8cca3c.js +6 -0
- package/dist/calcite/p-7cb089e0.js +6 -0
- package/dist/calcite/p-7d09dc6b.js +6 -0
- package/dist/calcite/p-7fd47f0e.js +10 -0
- package/dist/calcite/p-8164f79c.js +6 -0
- package/dist/calcite/p-8170e3f8.entry.js +6 -0
- package/dist/calcite/p-821852f3.js +6 -0
- package/dist/calcite/p-8359854e.entry.js +6 -0
- package/dist/calcite/p-859b47a3.js +6 -0
- package/dist/calcite/p-8778b539.entry.js +6 -0
- package/dist/calcite/p-89244e1f.js +6 -0
- package/dist/calcite/p-89d2c5dd.js +6 -0
- package/dist/calcite/p-89efd4aa.js +6 -0
- package/dist/calcite/p-8c019c8a.js +6 -0
- package/dist/calcite/p-8dd3a6c9.entry.js +6 -0
- package/dist/calcite/p-8e0ade41.entry.js +6 -0
- package/dist/calcite/p-8e6b9485.js +6 -0
- package/dist/calcite/p-8f03188b.js +6 -0
- package/dist/calcite/p-8f9c8565.entry.js +6 -0
- package/dist/calcite/p-90f13f3b.entry.js +6 -0
- package/dist/calcite/p-9313fba3.js +6 -0
- package/dist/calcite/p-938454da.entry.js +6 -0
- package/dist/calcite/p-98665ecc.js +6 -0
- package/dist/calcite/p-992a9130.js +6 -0
- package/dist/calcite/p-996d78a6.entry.js +6 -0
- package/dist/calcite/p-9d0e4d23.entry.js +6 -0
- package/dist/calcite/p-9e256c28.js +6 -0
- package/dist/calcite/p-9f0313b7.entry.js +6 -0
- package/dist/calcite/p-9fb008d1.js +6 -0
- package/dist/calcite/p-a2096bab.js +6 -0
- package/dist/calcite/p-a4c234c3.js +11 -0
- package/dist/calcite/p-a637476f.js +6 -0
- package/dist/calcite/p-a7f49478.js +6 -0
- package/dist/calcite/p-b39ed624.js +6 -0
- package/dist/calcite/p-b46d8ed8.js +6 -0
- package/dist/calcite/p-b4ac67f2.js +6 -0
- package/dist/calcite/p-b5f8d5b3.js +6 -0
- package/dist/calcite/p-bbf73ead.js +6 -0
- package/dist/calcite/p-bcfb927d.entry.js +6 -0
- package/dist/calcite/p-c0f33a57.entry.js +6 -0
- package/dist/calcite/p-c1045e8f.entry.js +6 -0
- package/dist/calcite/p-c28e7bff.js +6 -0
- package/dist/calcite/p-c37aac12.entry.js +6 -0
- package/dist/calcite/p-c3823024.entry.js +6 -0
- package/dist/calcite/p-c3f5e089.entry.js +6 -0
- package/dist/calcite/p-c5575126.js +6 -0
- package/dist/calcite/p-c7f4b72b.js +6 -0
- package/dist/calcite/p-c80b8469.entry.js +6 -0
- package/dist/calcite/p-c8378a5d.js +6 -0
- package/dist/calcite/p-ca727eff.js +6 -0
- package/dist/calcite/p-cae349f6.entry.js +6 -0
- package/dist/calcite/p-cd3cbe6b.js +6 -0
- package/dist/calcite/p-cd5221a7.js +6 -0
- package/dist/calcite/p-ce5d92a6.js +6 -0
- package/dist/calcite/p-d0f48aea.entry.js +6 -0
- package/dist/calcite/p-d50fdb58.js +6 -0
- package/dist/calcite/p-d752cac8.js +6 -0
- package/dist/calcite/p-d76f5088.js +6 -0
- package/dist/calcite/p-d86af1dc.entry.js +6 -0
- package/dist/calcite/p-dd0d6bd9.js +6 -0
- package/dist/calcite/p-df56796d.js +6 -0
- package/dist/calcite/p-e19045cd.entry.js +6 -0
- package/dist/calcite/p-e4502cd2.js +6 -0
- package/dist/calcite/p-e838ec13.entry.js +6 -0
- package/dist/calcite/p-e98720b8.entry.js +6 -0
- package/dist/calcite/p-ea0b95c4.entry.js +6 -0
- package/dist/calcite/p-eb3670a6.js +6 -0
- package/dist/calcite/p-eec8e306.js +6 -0
- package/dist/calcite/p-f1aa39bd.entry.js +6 -0
- package/dist/calcite/p-f1e59250.entry.js +6 -0
- package/dist/calcite/p-f2b1e140.js +6 -0
- package/dist/calcite/p-f2d63715.entry.js +6 -0
- package/dist/calcite/p-f3ddfe32.entry.js +6 -0
- package/dist/calcite/p-f4e8d076.js +12 -0
- package/dist/calcite/p-f5265e9c.js +6 -0
- package/dist/calcite/p-f9d2bfbb.entry.js +6 -0
- package/dist/cjs/ExpandToggle-b8c50e31.js +107 -0
- package/dist/cjs/FloatingArrow-bbbd93ea.js +45 -0
- package/dist/cjs/Heading-a6b8cd20.js +20 -0
- package/dist/cjs/app-globals-f99c8226.js +59 -0
- package/dist/cjs/ar-513f01b5.js +98 -0
- package/dist/cjs/array-ab54d223.js +12 -0
- package/dist/cjs/bg-1349a2ec.js +79 -0
- package/dist/cjs/browser-96695776.js +18 -0
- package/dist/cjs/bs-43bb492e.js +48 -0
- package/dist/cjs/ca-0311a3b6.js +68 -0
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +13 -9
- 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-44fcc4e7.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 +35 -18
- 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-f7a00c82.js +58 -0
- package/dist/cjs/cs-a7e42c72.js +144 -0
- package/dist/cjs/da-96f4229d.js +63 -0
- package/dist/cjs/de-0f5517f5.js +88 -0
- package/dist/cjs/de-at-a2bc7e5b.js +87 -0
- package/dist/cjs/de-ch-b52594f9.js +87 -0
- package/dist/cjs/debounce-f79637d5.js +496 -0
- package/dist/cjs/dom-63781a9d.js +1056 -0
- package/dist/cjs/el-3e5c3360.js +63 -0
- package/dist/cjs/en-au-6a5e1cea.js +63 -0
- package/dist/cjs/en-ca-2b9be37a.js +62 -0
- package/dist/cjs/en-gb-e0e1d0b1.js +66 -0
- package/dist/cjs/es-2f8b05c0.js +63 -0
- package/dist/cjs/es-mx-aefbbe99.js +62 -0
- package/dist/cjs/et-b585c237.js +89 -0
- package/dist/cjs/fi-9b11cdd0.js +112 -0
- package/dist/cjs/filter-2d19dc0b.js +760 -0
- package/dist/cjs/floating-ui-9a8502c1.js +1883 -0
- package/dist/cjs/focusTrapComponent-0285ea83.js +999 -0
- package/dist/cjs/form-180dd5f7.js +283 -0
- package/dist/cjs/fr-9b87d539.js +65 -0
- package/dist/cjs/fr-ch-fff6343b.js +63 -0
- package/dist/cjs/guid-394b057e.js +21 -0
- package/dist/cjs/he-7e9266cc.js +102 -0
- package/dist/cjs/hi-487f5ba5.js +62 -0
- package/dist/cjs/hr-9b725b8c.js +77 -0
- package/dist/cjs/hu-8aeb1ba4.js +85 -0
- package/dist/cjs/id-d2b47192.js +63 -0
- package/dist/cjs/index-4e806d08.js +2327 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/interactive-d25b07c6.js +142 -0
- package/dist/cjs/it-ch-e52530c9.js +63 -0
- package/dist/cjs/it-e3d003a8.js +63 -0
- package/dist/cjs/ja-a464224a.js +69 -0
- package/dist/cjs/key-55b0493b.js +14 -0
- package/dist/cjs/ko-5c041d8f.js +69 -0
- package/dist/cjs/label-e5955789.js +149 -0
- package/dist/cjs/loadable-3e440657.js +89 -0
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/locale-1cbd3212.js +594 -0
- package/dist/cjs/lt-0e6c8a23.js +94 -0
- package/dist/cjs/lv-4daf6dbc.js +63 -0
- package/dist/cjs/math-a4e91bed.js +55 -0
- package/dist/cjs/mk-2273ad62.js +63 -0
- package/dist/cjs/nb-3bfcd3f4.js +64 -0
- package/dist/cjs/nl-df479d03.js +64 -0
- package/dist/cjs/observers-10c6b945.js +48 -0
- package/dist/cjs/openCloseComponent-c360cdc5.js +84 -0
- package/dist/cjs/pl-fb9a7506.js +111 -0
- package/dist/cjs/pt-0fd46bce.js +64 -0
- package/dist/cjs/pt-br-333ee14c.js +62 -0
- package/dist/cjs/resources-0f7ebd7a.js +27 -0
- package/dist/cjs/resources-288ba5c0.js +24 -0
- package/dist/cjs/resources-29610118.js +22 -0
- package/dist/cjs/resources-2aaf9eab.js +15 -0
- package/dist/cjs/resources-8ec8c4bb.js +410 -0
- package/dist/cjs/resources-a8bc55f3.js +21 -0
- package/dist/cjs/resources-dca0dfc6.js +45 -0
- package/dist/cjs/ro-fc2582eb.js +63 -0
- package/dist/cjs/ru-ef7085da.js +123 -0
- package/dist/cjs/sk-37274618.js +145 -0
- package/dist/cjs/sl-8443fa8d.js +63 -0
- package/dist/cjs/sortableComponent-5ac5ba99.js +3107 -0
- package/dist/cjs/sr-f514ec6e.js +98 -0
- package/dist/cjs/sv-0127bcab.js +68 -0
- package/dist/cjs/t9n-11ffe988.js +95 -0
- package/dist/cjs/th-f6def926.js +62 -0
- package/dist/cjs/throttle-14983c96.js +75 -0
- package/dist/cjs/tr-8d1371c6.js +63 -0
- package/dist/cjs/uk-cb848c60.js +101 -0
- package/dist/cjs/utils-13401a97.js +305 -0
- package/dist/cjs/utils-96a2efd3.js +216 -0
- package/dist/cjs/vi-d34859f3.js +67 -0
- package/dist/cjs/zh-cn-56e03c4f.js +91 -0
- package/dist/cjs/zh-hk-13b51c09.js +68 -0
- package/dist/cjs/zh-tw-8b407105.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 +4 -4
- package/dist/collection/components/accordion-item/resources.js +5 -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 +54 -25
- package/dist/collection/components/stepper-item/stepper-item.js +57 -62
- 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 +2 -2
- 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 +7 -3
- 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 +9 -13
- package/dist/components/calcite-stepper.js +24 -3
- 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 +2 -2
- package/dist/components/calcite-tree-item.js +2 -2
- package/dist/components/calcite-tree.js +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/components/dropdown.js +1 -1
- package/dist/components/el.js +1 -1
- package/dist/components/en-au.js +1 -1
- package/dist/components/en-ca.js +1 -1
- package/dist/components/en-gb.js +1 -1
- package/dist/components/es-mx.js +1 -1
- package/dist/components/es.js +1 -1
- package/dist/components/et.js +1 -1
- package/dist/components/fi.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +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 +2 -2
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +1 -1
- package/dist/components/sortableComponent.js +1 -1
- package/dist/components/sr.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/sv.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +2 -2
- package/dist/components/tab-title.js +2 -2
- package/dist/components/tab.js +2 -2
- 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 +2 -2
- package/dist/components/utils3.js +1 -1
- package/dist/components/vi.js +1 -1
- package/dist/components/zh-cn.js +1 -1
- package/dist/components/zh-hk.js +1 -1
- package/dist/components/zh-tw.js +1 -1
- package/dist/esm/ExpandToggle-132dbe94.js +99 -0
- package/dist/esm/FloatingArrow-7c291a8e.js +43 -0
- package/dist/esm/Heading-3948e23c.js +17 -0
- package/dist/esm/app-globals-66097deb.js +57 -0
- package/dist/esm/ar-0733002d.js +96 -0
- package/dist/esm/array-6b992ce2.js +10 -0
- package/dist/esm/bg-12bdbf66.js +77 -0
- package/dist/esm/browser-0c1cc9ed.js +16 -0
- package/dist/esm/bs-a9879d70.js +46 -0
- package/dist/esm/ca-3aa8a368.js +66 -0
- package/dist/esm/calcite-accordion_2.entry.js +13 -9
- 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-5c3eb0fd.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 +35 -18
- 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-fb58b57c.js +55 -0
- package/dist/esm/cs-b345eb0f.js +142 -0
- package/dist/esm/da-b141a1ed.js +61 -0
- package/dist/esm/de-8a302e9d.js +86 -0
- package/dist/esm/de-at-fbeb26f9.js +85 -0
- package/dist/esm/de-ch-f059f895.js +85 -0
- package/dist/esm/debounce-e6e1d671.js +487 -0
- package/dist/esm/dom-0df3c83f.js +1027 -0
- package/dist/esm/el-72ec8759.js +61 -0
- package/dist/esm/en-au-cfccb64a.js +61 -0
- package/dist/esm/en-ca-0ca2db79.js +60 -0
- package/dist/esm/en-gb-ce9b3090.js +64 -0
- package/dist/esm/es-6dbd367b.js +61 -0
- package/dist/esm/es-mx-ed00d9f1.js +60 -0
- package/dist/esm/et-87b2d4e0.js +87 -0
- package/dist/esm/fi-e1ea4389.js +110 -0
- package/dist/esm/filter-06894854.js +758 -0
- package/dist/esm/floating-ui-05e106dd.js +1875 -0
- package/dist/esm/focusTrapComponent-924b8c23.js +994 -0
- package/dist/esm/form-25d6cbff.js +275 -0
- package/dist/esm/fr-471ff561.js +63 -0
- package/dist/esm/fr-ch-f2560a7b.js +61 -0
- package/dist/esm/guid-530ad363.js +19 -0
- package/dist/esm/he-6ac18316.js +100 -0
- package/dist/esm/hi-4d1d6448.js +60 -0
- package/dist/esm/hr-9778b65e.js +75 -0
- package/dist/esm/hu-a47e590d.js +83 -0
- package/dist/esm/id-51d43f39.js +61 -0
- package/dist/esm/index-db7176d3.js +2292 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/interactive-68fffb52.js +138 -0
- package/dist/esm/it-38925471.js +61 -0
- package/dist/esm/it-ch-64d91866.js +61 -0
- package/dist/esm/ja-f766410b.js +67 -0
- package/dist/esm/key-36914180.js +11 -0
- package/dist/esm/ko-5316e025.js +67 -0
- package/dist/esm/label-4c2fd760.js +143 -0
- package/dist/esm/loadable-6ad901ec.js +84 -0
- package/dist/esm/loader.js +6 -6
- package/dist/esm/locale-cd8016f0.js +582 -0
- package/dist/esm/lt-c1791f90.js +92 -0
- package/dist/esm/lv-dc710f0c.js +61 -0
- package/dist/esm/math-99f25d08.js +49 -0
- package/dist/esm/mk-0357f05f.js +61 -0
- package/dist/esm/nb-d0367afe.js +62 -0
- package/dist/esm/nl-4c1cc368.js +62 -0
- package/dist/esm/observers-506cbaf7.js +46 -0
- package/dist/esm/openCloseComponent-1744bfff.js +82 -0
- package/dist/esm/pl-8de984cf.js +109 -0
- package/dist/esm/pt-br-c47bdb05.js +60 -0
- package/dist/esm/pt-c13c29c6.js +62 -0
- package/dist/esm/resources-1e2b68ea.js +383 -0
- package/dist/esm/resources-2c000ba7.js +23 -0
- package/dist/esm/resources-305766e2.js +15 -0
- package/dist/esm/resources-3d8f4c56.js +18 -0
- package/dist/esm/resources-526a04ee.js +17 -0
- package/dist/esm/resources-960d69ed.js +41 -0
- package/dist/esm/resources-9cc69818.js +21 -0
- package/dist/esm/ro-7199ef21.js +61 -0
- package/dist/esm/ru-3d72e031.js +121 -0
- package/dist/esm/sk-11267893.js +143 -0
- package/dist/esm/sl-0829768d.js +61 -0
- package/dist/esm/sortableComponent-798a5e55.js +3104 -0
- package/dist/esm/sr-6f0dae38.js +96 -0
- package/dist/esm/sv-bad704f3.js +66 -0
- package/dist/esm/t9n-b9ea4ed7.js +90 -0
- package/dist/esm/th-2351e1d9.js +60 -0
- package/dist/esm/throttle-5aa3ae5a.js +73 -0
- package/dist/esm/tr-f04b9d50.js +61 -0
- package/dist/esm/uk-d41b89a9.js +99 -0
- package/dist/esm/utils-0831d9b1.js +198 -0
- package/dist/esm/utils-e6d1a6a2.js +287 -0
- package/dist/esm/vi-bccdf3c3.js +65 -0
- package/dist/esm/zh-cn-ff1c51eb.js +89 -0
- package/dist/esm/zh-hk-16dab4cf.js +66 -0
- package/dist/esm/zh-tw-12d2e9ee.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/accordion-item/resources.d.ts +4 -0
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +0 -4
- package/dist/types/components/stepper/stepper.d.ts +6 -2
- package/dist/types/components/stepper-item/stepper-item.d.ts +24 -12
- 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 +336 -8
- package/dist/types/preact.d.ts +15 -0
- package/hydrate/index.js +1417 -536
- 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.18
|
|
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",
|
|
@@ -7037,6 +7037,10 @@ const CSS$18 = {
|
|
|
7037
7037
|
iconEnd: "icon--end",
|
|
7038
7038
|
headerContainer: "header-container",
|
|
7039
7039
|
};
|
|
7040
|
+
const IDS = {
|
|
7041
|
+
section: "section",
|
|
7042
|
+
sectionToggle: "section-toggle",
|
|
7043
|
+
};
|
|
7040
7044
|
|
|
7041
7045
|
const accordionItemCss = "/*!@.icon-position--end, .icon-position--start*/.icon-position--end.sc-calcite-accordion-item,.icon-position--start.sc-calcite-accordion-item{--calcite-accordion-item-icon-rotation:calc(90deg * -1);--calcite-accordion-item-active-icon-rotation:0deg;--calcite-accordion-item-icon-rotation-rtl:90deg;--calcite-accordion-item-active-icon-rotation-rtl:0deg}/*!@.icon-position--start*/.icon-position--start.sc-calcite-accordion-item{--calcite-accordion-item-flex-direction:row-reverse;--calcite-accordion-item-icon-spacing-start:0;--calcite-accordion-item-icon-spacing-end:var(--calcite-accordion-icon-margin)}/*!@.icon-position--end*/.icon-position--end.sc-calcite-accordion-item{--calcite-accordion-item-flex-direction:row;--calcite-accordion-item-icon-spacing-start:var(--calcite-accordion-icon-margin);--calcite-accordion-item-icon-spacing-end:0}/*!@.icon-position--end:not(.icon-type--plus-minus)*/.icon-position--end.sc-calcite-accordion-item:not(.icon-type--plus-minus){--calcite-accordion-item-icon-rotation:0deg;--calcite-accordion-item-active-icon-rotation:180deg;--calcite-accordion-item-icon-rotation-rtl:0deg;--calcite-accordion-item-active-icon-rotation-rtl:calc(180deg * -1)}/*!@:host*/.sc-calcite-accordion-item-h{position:relative;display:flex;flex-direction:column;color:var(--calcite-ui-text-3);text-decoration-line:none;background-color:var(--calcite-accordion-item-background, var(--calcite-ui-foreground-1))}/*!@:host .header-content*/.sc-calcite-accordion-item-h .header-content.sc-calcite-accordion-item{outline-color:transparent}/*!@:host(:focus) .header-content*/.sc-calcite-accordion-item-h:focus .header-content.sc-calcite-accordion-item{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host([expanded])*/[expanded].sc-calcite-accordion-item-h{color:var(--calcite-ui-text-1)}/*!@:host([expanded]) .content*/[expanded].sc-calcite-accordion-item-h .content.sc-calcite-accordion-item{display:block;color:var(--calcite-ui-text-1)}/*!@:host([expanded]) .header*/[expanded].sc-calcite-accordion-item-h .header.sc-calcite-accordion-item{border-block-end-color:transparent}/*!@:host .header*/.sc-calcite-accordion-item-h .header.sc-calcite-accordion-item{display:flex;align-items:stretch}/*!@:host .icon*/.sc-calcite-accordion-item-h .icon.sc-calcite-accordion-item{position:relative;margin:0px;display:inline-flex;color:var(--calcite-ui-text-3);transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);margin-inline-end:var(--calcite-accordion-item-icon-spacing-start);margin-inline-start:var(--calcite-accordion-item-icon-spacing-end)}/*!@.icon--start*/.icon--start.sc-calcite-accordion-item{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin)}/*!@.icon--end*/.icon--end.sc-calcite-accordion-item{display:flex;align-items:center;margin-inline-end:var(--calcite-accordion-icon-margin);margin-inline-start:var(--calcite-accordion-icon-margin)}/*!@.header-container*/.header-container.sc-calcite-accordion-item{inline-size:100%}/*!@.content*/.content.sc-calcite-accordion-item{padding:var(--calcite-accordion-item-padding)}/*!@:host .content,\n:host .header*/.sc-calcite-accordion-item-h .content.sc-calcite-accordion-item,.sc-calcite-accordion-item-h .header.sc-calcite-accordion-item{border-block-end:1px solid var(--calcite-accordion-item-border, var(--calcite-ui-border-2))}/*!@:host .header **/.sc-calcite-accordion-item-h .header.sc-calcite-accordion-item *.sc-calcite-accordion-item{display:inline-flex;align-items:center;transition-duration:150ms;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);word-wrap:break-word;word-break:break-word}/*!@:host .content*/.sc-calcite-accordion-item-h .content.sc-calcite-accordion-item{display:none;padding-block-start:0px;color:var(--calcite-ui-text-3);text-align:initial}/*!@:host .expand-icon*/.sc-calcite-accordion-item-h .expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-3);margin-inline-start:var(--calcite-accordion-item-icon-spacing-start);margin-inline-end:var(--calcite-accordion-item-icon-spacing-end);transform:rotate(var(--calcite-accordion-item-icon-rotation))}/*!@.calcite--rtl .expand-icon*/.calcite--rtl.sc-calcite-accordion-item .expand-icon.sc-calcite-accordion-item{transform:rotate(var(--calcite-accordion-item-icon-rotation-rtl))}/*!@:host([expanded]) .expand-icon*/[expanded].sc-calcite-accordion-item-h .expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1);transform:rotate(var(--calcite-accordion-item-active-icon-rotation))}/*!@:host([expanded]) .calcite--rtl .expand-icon*/[expanded].sc-calcite-accordion-item-h .calcite--rtl.sc-calcite-accordion-item .expand-icon.sc-calcite-accordion-item{transform:rotate(var(--calcite-accordion-item-active-icon-rotation-rtl))}/*!@:host .header-text*/.sc-calcite-accordion-item-h .header-text.sc-calcite-accordion-item{margin-block:0px;flex-grow:1;flex-direction:column;padding-block:0px;text-align:initial;margin-inline-end:auto}/*!@:host .heading,\n:host .description*/.sc-calcite-accordion-item-h .heading.sc-calcite-accordion-item,.sc-calcite-accordion-item-h .description.sc-calcite-accordion-item{display:flex;inline-size:100%}/*!@:host .heading*/.sc-calcite-accordion-item-h .heading.sc-calcite-accordion-item{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2)}/*!@:host .description*/.sc-calcite-accordion-item-h .description.sc-calcite-accordion-item{margin-block-start:0.25rem;color:var(--calcite-ui-text-3)}/*!@:host(:focus) .heading,\n:host(:hover) .heading*/.sc-calcite-accordion-item-h:focus .heading.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .heading.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .icon,\n:host(:hover) .icon*/.sc-calcite-accordion-item-h:focus .icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .expand-icon,\n:host(:hover) .expand-icon*/.sc-calcite-accordion-item-h:focus .expand-icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .description,\n:host(:hover) .description*/.sc-calcite-accordion-item-h:focus .description.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:hover .description.sc-calcite-accordion-item{color:var(--calcite-ui-text-2)}/*!@:host(:focus) .heading,\n:host(:active) .heading,\n:host([expanded]) .heading*/.sc-calcite-accordion-item-h:focus .heading.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .heading.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .heading.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .icon,\n:host(:active) .icon,\n:host([expanded]) .icon*/.sc-calcite-accordion-item-h:focus .icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .icon.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .expand-icon,\n:host(:active) .expand-icon,\n:host([expanded]) .expand-icon*/.sc-calcite-accordion-item-h:focus .expand-icon.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .expand-icon.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .expand-icon.sc-calcite-accordion-item{color:var(--calcite-ui-text-1)}/*!@:host(:focus) .description,\n:host(:active) .description,\n:host([expanded]) .description*/.sc-calcite-accordion-item-h:focus .description.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:active .description.sc-calcite-accordion-item,[expanded].sc-calcite-accordion-item-h .description.sc-calcite-accordion-item{color:var(--calcite-ui-text-2)}/*!@.header-content*/.header-content.sc-calcite-accordion-item{flex-grow:1;cursor:pointer;padding:var(--calcite-accordion-item-padding);flex-direction:var(--calcite-accordion-item-flex-direction)}/*!@.actions-start,\n.actions-end*/.actions-start.sc-calcite-accordion-item,.actions-end.sc-calcite-accordion-item{display:flex;align-items:center}@media (forced-colors: active){/*!@:host([expanded]) .header*/[expanded].sc-calcite-accordion-item-h .header.sc-calcite-accordion-item{border-block-end:none}/*!@:host([expanded]) .heading*/[expanded].sc-calcite-accordion-item-h .heading.sc-calcite-accordion-item{font-weight:bolder}/*!@:host(:hover) .heading,\n :host(:focus) .heading*/.sc-calcite-accordion-item-h:hover .heading.sc-calcite-accordion-item,.sc-calcite-accordion-item-h:focus .heading.sc-calcite-accordion-item{text-decoration:underline}}/*!@:host([hidden])*/[hidden].sc-calcite-accordion-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-accordion-item{display:none}";
|
|
7042
7046
|
|
|
@@ -7086,28 +7090,28 @@ class AccordionItem {
|
|
|
7086
7090
|
// --------------------------------------------------------------------------
|
|
7087
7091
|
renderActionsStart() {
|
|
7088
7092
|
const { el } = this;
|
|
7089
|
-
return getSlotted(el, SLOTS$
|
|
7093
|
+
return getSlotted(el, SLOTS$z.actionsStart) ? (hAsync("div", { class: CSS$1b.actionsStart }, hAsync("slot", { name: SLOTS$z.actionsStart }))) : null;
|
|
7090
7094
|
}
|
|
7091
7095
|
renderActionsEnd() {
|
|
7092
7096
|
const { el } = this;
|
|
7093
|
-
return getSlotted(el, SLOTS$
|
|
7097
|
+
return getSlotted(el, SLOTS$z.actionsEnd) ? (hAsync("div", { class: CSS$1b.actionsEnd }, hAsync("slot", { name: SLOTS$z.actionsEnd }))) : null;
|
|
7094
7098
|
}
|
|
7095
7099
|
render() {
|
|
7096
7100
|
const { iconFlipRtl } = this;
|
|
7097
7101
|
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$
|
|
7102
|
+
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;
|
|
7103
|
+
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
7104
|
const { description } = this;
|
|
7101
7105
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
7102
7106
|
[`icon-position--${this.iconPosition}`]: true,
|
|
7103
7107
|
[`icon-type--${this.iconType}`]: true,
|
|
7104
|
-
} }, hAsync("div", { class: { [CSS$
|
|
7108
|
+
} }, hAsync("div", { class: { [CSS$1b.header]: true, [CSS_UTILITY.rtl]: dir === "rtl" } }, this.renderActionsStart(), hAsync("div", { "aria-controls": IDS.section, "aria-expanded": toAriaBoolean(this.expanded), class: CSS$1b.headerContent, id: IDS.sectionToggle, 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
7109
|
? "chevronDown"
|
|
7106
7110
|
: this.iconType === "caret"
|
|
7107
7111
|
? "caretDown"
|
|
7108
7112
|
: this.expanded
|
|
7109
7113
|
? "minus"
|
|
7110
|
-
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("
|
|
7114
|
+
: "plus", scale: this.scale === "l" ? "m" : "s" })), this.renderActionsEnd()), hAsync("section", { "aria-labelledby": IDS.sectionToggle, class: CSS$1b.content, id: IDS.section }, hAsync("slot", null)))));
|
|
7111
7115
|
}
|
|
7112
7116
|
//--------------------------------------------------------------------------
|
|
7113
7117
|
//
|
|
@@ -8027,7 +8031,7 @@ function defaultOnMessagesChange() {
|
|
|
8027
8031
|
mergeMessages(this);
|
|
8028
8032
|
}
|
|
8029
8033
|
|
|
8030
|
-
const CSS$
|
|
8034
|
+
const CSS$1a = {
|
|
8031
8035
|
button: "button",
|
|
8032
8036
|
buttonTextVisible: "button--text-visible",
|
|
8033
8037
|
buttonCompact: "button--compact",
|
|
@@ -8038,7 +8042,7 @@ const CSS$17 = {
|
|
|
8038
8042
|
textContainer: "text-container",
|
|
8039
8043
|
textContainerVisible: "text-container--visible",
|
|
8040
8044
|
};
|
|
8041
|
-
const SLOTS$
|
|
8045
|
+
const SLOTS$y = {
|
|
8042
8046
|
tooltip: "tooltip",
|
|
8043
8047
|
};
|
|
8044
8048
|
|
|
@@ -8138,14 +8142,14 @@ class Action {
|
|
|
8138
8142
|
renderTextContainer() {
|
|
8139
8143
|
const { text, textEnabled } = this;
|
|
8140
8144
|
const textContainerClasses = {
|
|
8141
|
-
[CSS$
|
|
8142
|
-
[CSS$
|
|
8145
|
+
[CSS$1a.textContainer]: true,
|
|
8146
|
+
[CSS$1a.textContainerVisible]: textEnabled,
|
|
8143
8147
|
};
|
|
8144
8148
|
return text ? (hAsync("div", { class: textContainerClasses, key: "text-container" }, text)) : null;
|
|
8145
8149
|
}
|
|
8146
8150
|
renderIndicatorText() {
|
|
8147
8151
|
const { indicator, messages, indicatorId, buttonId } = this;
|
|
8148
|
-
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$
|
|
8152
|
+
return (hAsync("div", { "aria-labelledby": buttonId, "aria-live": "polite", class: CSS$1a.indicatorText, id: indicatorId, role: "region" }, indicator ? messages.indicator : null));
|
|
8149
8153
|
}
|
|
8150
8154
|
renderIconContainer() {
|
|
8151
8155
|
const { loading, icon, scale, el, iconFlipRtl } = this;
|
|
@@ -8156,22 +8160,22 @@ class Action {
|
|
|
8156
8160
|
const iconNode = calciteLoaderNode || calciteIconNode;
|
|
8157
8161
|
const hasIconToDisplay = iconNode || el.children?.length;
|
|
8158
8162
|
const slotContainerNode = (hAsync("div", { class: {
|
|
8159
|
-
[CSS$
|
|
8160
|
-
[CSS$
|
|
8163
|
+
[CSS$1a.slotContainer]: true,
|
|
8164
|
+
[CSS$1a.slotContainerHidden]: loading,
|
|
8161
8165
|
} }, hAsync("slot", null)));
|
|
8162
|
-
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$
|
|
8166
|
+
return hasIconToDisplay ? (hAsync("div", { "aria-hidden": "true", class: CSS$1a.iconContainer, key: "icon-container" }, iconNode, slotContainerNode)) : null;
|
|
8163
8167
|
}
|
|
8164
8168
|
render() {
|
|
8165
8169
|
const { active, compact, disabled, loading, textEnabled, label, text, indicator, indicatorId, buttonId, messages, } = this;
|
|
8166
8170
|
const ariaLabel = `${label || text}${indicator ? ` (${messages.indicator})` : ""}`;
|
|
8167
8171
|
const buttonClasses = {
|
|
8168
|
-
[CSS$
|
|
8169
|
-
[CSS$
|
|
8170
|
-
[CSS$
|
|
8172
|
+
[CSS$1a.button]: true,
|
|
8173
|
+
[CSS$1a.buttonTextVisible]: textEnabled,
|
|
8174
|
+
[CSS$1a.buttonCompact]: compact,
|
|
8171
8175
|
};
|
|
8172
8176
|
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
8177
|
// eslint-disable-next-line react/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$
|
|
8178
|
+
ref: (buttonEl) => (this.buttonEl = buttonEl) }, this.renderIconContainer(), this.renderTextContainer()), hAsync("slot", { name: SLOTS$y.tooltip, onSlotchange: this.handleTooltipSlotChange }), this.renderIndicatorText()));
|
|
8175
8179
|
}
|
|
8176
8180
|
static get assetsDirs() { return ["assets"]; }
|
|
8177
8181
|
get el() { return getElement(this); }
|
|
@@ -9472,22 +9476,22 @@ function throttle$1(func, wait, options) {
|
|
|
9472
9476
|
});
|
|
9473
9477
|
}
|
|
9474
9478
|
|
|
9475
|
-
const SLOTS$
|
|
9479
|
+
const SLOTS$x = {
|
|
9476
9480
|
menuActions: "menu-actions",
|
|
9477
9481
|
menuTooltip: "menu-tooltip",
|
|
9478
9482
|
};
|
|
9479
9483
|
const ICONS$j = {
|
|
9480
9484
|
menu: "ellipsis",
|
|
9481
9485
|
};
|
|
9482
|
-
const CSS$
|
|
9486
|
+
const CSS$19 = {
|
|
9483
9487
|
container: "container",
|
|
9484
9488
|
};
|
|
9485
9489
|
|
|
9486
|
-
const CSS$
|
|
9490
|
+
const CSS$18 = {
|
|
9487
9491
|
menu: "menu",
|
|
9488
9492
|
defaultTrigger: "default-trigger",
|
|
9489
9493
|
};
|
|
9490
|
-
const SLOTS$
|
|
9494
|
+
const SLOTS$w = {
|
|
9491
9495
|
tooltip: "tooltip",
|
|
9492
9496
|
trigger: "trigger",
|
|
9493
9497
|
};
|
|
@@ -9514,7 +9518,7 @@ const getOverflowCount = ({ layout, actionCount, actionWidth, width, actionHeigh
|
|
|
9514
9518
|
return Math.max(actionCount - getMaxActionCount({ width, actionWidth, layout, height, actionHeight, groupCount }), 0);
|
|
9515
9519
|
};
|
|
9516
9520
|
const queryActions = (el) => {
|
|
9517
|
-
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$
|
|
9521
|
+
return Array.from(el.querySelectorAll("calcite-action")).filter((action) => action.closest("calcite-action-menu") ? action.slot === SLOTS$w.trigger : true);
|
|
9518
9522
|
};
|
|
9519
9523
|
const overflowActions = ({ actionGroups, expanded, overflowCount, }) => {
|
|
9520
9524
|
let needToSlotCount = overflowCount;
|
|
@@ -9522,7 +9526,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount, }) => {
|
|
|
9522
9526
|
let slottedWithinGroupCount = 0;
|
|
9523
9527
|
const groupActions = queryActions(group).reverse();
|
|
9524
9528
|
groupActions.forEach((groupAction) => {
|
|
9525
|
-
if (groupAction.slot === SLOTS$
|
|
9529
|
+
if (groupAction.slot === SLOTS$x.menuActions) {
|
|
9526
9530
|
groupAction.removeAttribute("slot");
|
|
9527
9531
|
groupAction.textEnabled = expanded;
|
|
9528
9532
|
}
|
|
@@ -9532,7 +9536,7 @@ const overflowActions = ({ actionGroups, expanded, overflowCount, }) => {
|
|
|
9532
9536
|
const unslottedActions = groupActions.filter((action) => !action.slot);
|
|
9533
9537
|
if (unslottedActions.length > 1 && groupActions.length > 2 && !groupAction.closest("calcite-action-menu")) {
|
|
9534
9538
|
groupAction.textEnabled = true;
|
|
9535
|
-
groupAction.setAttribute("slot", SLOTS$
|
|
9539
|
+
groupAction.setAttribute("slot", SLOTS$x.menuActions);
|
|
9536
9540
|
slottedWithinGroupCount++;
|
|
9537
9541
|
if (slottedWithinGroupCount > 1) {
|
|
9538
9542
|
needToSlotCount--;
|
|
@@ -9554,7 +9558,7 @@ function getCalcitePosition(position, el) {
|
|
|
9554
9558
|
}
|
|
9555
9559
|
function toggleChildActionText({ el, expanded, }) {
|
|
9556
9560
|
queryActions(el)
|
|
9557
|
-
.filter((el) => el.slot !== SLOTS$
|
|
9561
|
+
.filter((el) => el.slot !== SLOTS$x.menuActions)
|
|
9558
9562
|
.forEach((action) => (action.textEnabled = expanded));
|
|
9559
9563
|
el.querySelectorAll("calcite-action-group, calcite-action-menu").forEach((el) => (el.expanded = expanded));
|
|
9560
9564
|
}
|
|
@@ -9583,10 +9587,10 @@ const ExpandToggle = ({ expanded, expandText, collapseText, toggle, el, position
|
|
|
9583
9587
|
return actionNode;
|
|
9584
9588
|
};
|
|
9585
9589
|
|
|
9586
|
-
const CSS$
|
|
9590
|
+
const CSS$17 = {
|
|
9587
9591
|
actionGroupEnd: "action-group--end",
|
|
9588
9592
|
};
|
|
9589
|
-
const SLOTS$
|
|
9593
|
+
const SLOTS$v = {
|
|
9590
9594
|
actionsEnd: "actions-end",
|
|
9591
9595
|
bottomActions: "bottom-actions",
|
|
9592
9596
|
expandTooltip: "expand-tooltip",
|
|
@@ -9786,7 +9790,7 @@ class ActionBar {
|
|
|
9786
9790
|
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
9791
|
// eslint-disable-next-line react/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
9792
|
ref: this.setExpandToggleRef })) : null;
|
|
9789
|
-
return (hAsync("calcite-action-group", { class: CSS$
|
|
9793
|
+
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
9794
|
}
|
|
9791
9795
|
render() {
|
|
9792
9796
|
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup()));
|
|
@@ -9911,10 +9915,10 @@ class ActionGroup {
|
|
|
9911
9915
|
// --------------------------------------------------------------------------
|
|
9912
9916
|
renderMenu() {
|
|
9913
9917
|
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$
|
|
9918
|
+
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
9919
|
}
|
|
9916
9920
|
render() {
|
|
9917
|
-
return (hAsync("div", { "aria-label": this.label, class: CSS$
|
|
9921
|
+
return (hAsync("div", { "aria-label": this.label, class: CSS$19.container, role: "group" }, hAsync("slot", null), this.renderMenu()));
|
|
9918
9922
|
}
|
|
9919
9923
|
static get delegatesFocus() { return true; }
|
|
9920
9924
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -10198,7 +10202,7 @@ class ActionMenu {
|
|
|
10198
10202
|
}
|
|
10199
10203
|
renderMenuButton() {
|
|
10200
10204
|
const { label, scale, expanded } = this;
|
|
10201
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$
|
|
10205
|
+
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
10206
|
// eslint-disable-next-line react/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
10207
|
ref: this.setDefaultMenuButtonEl })));
|
|
10204
10208
|
return menuButtonSlot;
|
|
@@ -10207,10 +10211,10 @@ class ActionMenu {
|
|
|
10207
10211
|
const { actionElements, activeMenuItemIndex, open, menuId, menuButtonEl, label, placement, overlayPositioning, flipPlacements, } = this;
|
|
10208
10212
|
const activeAction = actionElements[activeMenuItemIndex];
|
|
10209
10213
|
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$
|
|
10214
|
+
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
10215
|
}
|
|
10212
10216
|
render() {
|
|
10213
|
-
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$
|
|
10217
|
+
return (hAsync(Fragment, null, this.renderMenuButton(), this.renderMenuItems(), hAsync("slot", { name: SLOTS$w.tooltip, onSlotchange: this.updateTooltip })));
|
|
10214
10218
|
}
|
|
10215
10219
|
isValidKey(key, supportedKeys) {
|
|
10216
10220
|
return !!supportedKeys.find((k) => k === key);
|
|
@@ -10243,11 +10247,11 @@ class ActionMenu {
|
|
|
10243
10247
|
}; }
|
|
10244
10248
|
}
|
|
10245
10249
|
|
|
10246
|
-
const CSS$
|
|
10250
|
+
const CSS$16 = {
|
|
10247
10251
|
actionGroupEnd: "action-group--end",
|
|
10248
10252
|
container: "container",
|
|
10249
10253
|
};
|
|
10250
|
-
const SLOTS$
|
|
10254
|
+
const SLOTS$u = {
|
|
10251
10255
|
expandTooltip: "expand-tooltip",
|
|
10252
10256
|
};
|
|
10253
10257
|
|
|
@@ -10368,10 +10372,10 @@ class ActionPad {
|
|
|
10368
10372
|
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
10373
|
// eslint-disable-next-line react/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
10374
|
ref: this.setExpandToggleRef })) : null;
|
|
10371
|
-
return expandToggleNode ? (hAsync("calcite-action-group", { class: CSS$
|
|
10375
|
+
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
10376
|
}
|
|
10373
10377
|
render() {
|
|
10374
|
-
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$
|
|
10378
|
+
return (hAsync(Host, { onCalciteActionMenuOpen: this.actionMenuOpenHandler }, hAsync("div", { class: CSS$16.container }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange }), this.renderBottomActionGroup())));
|
|
10375
10379
|
}
|
|
10376
10380
|
static get delegatesFocus() { return true; }
|
|
10377
10381
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -10494,13 +10498,13 @@ const DURATIONS = {
|
|
|
10494
10498
|
medium: 10000,
|
|
10495
10499
|
fast: 6000,
|
|
10496
10500
|
};
|
|
10497
|
-
const SLOTS$
|
|
10501
|
+
const SLOTS$t = {
|
|
10498
10502
|
actionsEnd: "actions-end",
|
|
10499
10503
|
title: "title",
|
|
10500
10504
|
message: "message",
|
|
10501
10505
|
link: "link",
|
|
10502
10506
|
};
|
|
10503
|
-
const CSS$
|
|
10507
|
+
const CSS$15 = {
|
|
10504
10508
|
actionsEnd: "actions-end",
|
|
10505
10509
|
container: "container",
|
|
10506
10510
|
close: "alert-close",
|
|
@@ -10655,15 +10659,15 @@ class Alert {
|
|
|
10655
10659
|
const { open, autoClose, label, placement, queued, requestedIcon, iconFlipRtl } = this;
|
|
10656
10660
|
const role = autoClose ? "alert" : "alertdialog";
|
|
10657
10661
|
const hidden = !open;
|
|
10658
|
-
const slotNode = (hAsync("slot", { key: "actionsEndSlot", name: SLOTS$
|
|
10662
|
+
const slotNode = (hAsync("slot", { key: "actionsEndSlot", name: SLOTS$t.actionsEnd, onSlotchange: this.actionsEndSlotChangeHandler }));
|
|
10659
10663
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, hAsync("div", { class: {
|
|
10660
10664
|
container: true,
|
|
10661
10665
|
queued,
|
|
10662
10666
|
[placement]: true,
|
|
10663
|
-
[CSS$
|
|
10667
|
+
[CSS$15.slottedInShell]: this.slottedInShell,
|
|
10664
10668
|
}, onPointerEnter: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : null, onPointerLeave: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseLeave : null,
|
|
10665
10669
|
// eslint-disable-next-line react/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$
|
|
10670
|
+
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
10671
|
}
|
|
10668
10672
|
// when an alert is opened or closed, update queue and determine active alert
|
|
10669
10673
|
alertSync(event) {
|
|
@@ -11132,7 +11136,7 @@ const Heading = (props, children) => {
|
|
|
11132
11136
|
return hAsync(HeadingTag, { ...props }, children);
|
|
11133
11137
|
};
|
|
11134
11138
|
|
|
11135
|
-
const CSS$
|
|
11139
|
+
const CSS$14 = {
|
|
11136
11140
|
container: "container",
|
|
11137
11141
|
content: "content",
|
|
11138
11142
|
headerContainer: "header-container",
|
|
@@ -11150,7 +11154,7 @@ const CSS$11 = {
|
|
|
11150
11154
|
valid: "valid",
|
|
11151
11155
|
invalid: "invalid",
|
|
11152
11156
|
};
|
|
11153
|
-
const SLOTS$
|
|
11157
|
+
const SLOTS$s = {
|
|
11154
11158
|
icon: "icon",
|
|
11155
11159
|
control: "control",
|
|
11156
11160
|
headerMenuActions: "header-menu-actions",
|
|
@@ -11256,31 +11260,31 @@ class Block {
|
|
|
11256
11260
|
}
|
|
11257
11261
|
renderIcon() {
|
|
11258
11262
|
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$
|
|
11263
|
+
const hasSlottedIcon = !!getSlotted(this.el, SLOTS$s.icon);
|
|
11264
|
+
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: {
|
|
11265
|
+
[CSS$14.statusIcon]: true,
|
|
11266
|
+
[CSS$14.valid]: status == "valid",
|
|
11267
|
+
[CSS$14.invalid]: status == "invalid",
|
|
11268
|
+
}, 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
11269
|
}
|
|
11266
11270
|
renderTitle() {
|
|
11267
11271
|
const { heading, headingLevel, description } = this;
|
|
11268
|
-
return heading || description ? (hAsync("div", { class: CSS$
|
|
11272
|
+
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
11273
|
}
|
|
11270
11274
|
render() {
|
|
11271
11275
|
const { collapsible, el, loading, open, messages } = this;
|
|
11272
11276
|
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$
|
|
11277
|
+
const headerContent = (hAsync("header", { class: CSS$14.header }, this.renderIcon(), this.renderTitle()));
|
|
11278
|
+
const hasControl = !!getSlotted(el, SLOTS$s.control);
|
|
11279
|
+
const hasMenuActions = !!getSlotted(el, SLOTS$s.headerMenuActions);
|
|
11276
11280
|
const collapseIcon = open ? ICONS$g.opened : ICONS$g.closed;
|
|
11277
11281
|
const { guid } = this;
|
|
11278
11282
|
const regionId = `${guid}-region`;
|
|
11279
11283
|
const buttonId = `${guid}-button`;
|
|
11280
|
-
const headerNode = (hAsync("div", { class: CSS$
|
|
11284
|
+
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
11285
|
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$
|
|
11286
|
+
[CSS$14.container]: true,
|
|
11287
|
+
} }, headerNode, hAsync("section", { "aria-expanded": toAriaBoolean(open), "aria-labelledby": buttonId, class: CSS$14.content, hidden: !open, id: regionId }, this.renderScrim()))));
|
|
11284
11288
|
}
|
|
11285
11289
|
static get assetsDirs() { return ["assets"]; }
|
|
11286
11290
|
get el() { return getElement(this); }
|
|
@@ -11314,7 +11318,7 @@ class Block {
|
|
|
11314
11318
|
}; }
|
|
11315
11319
|
}
|
|
11316
11320
|
|
|
11317
|
-
const CSS$
|
|
11321
|
+
const CSS$13 = {
|
|
11318
11322
|
content: "content",
|
|
11319
11323
|
invalid: "invalid",
|
|
11320
11324
|
toggle: "toggle",
|
|
@@ -11417,9 +11421,9 @@ class BlockSection {
|
|
|
11417
11421
|
const { status } = this;
|
|
11418
11422
|
const statusIcon = ICONS$f[status] ?? false;
|
|
11419
11423
|
const statusIconClasses = {
|
|
11420
|
-
[CSS$
|
|
11421
|
-
[CSS$
|
|
11422
|
-
[CSS$
|
|
11424
|
+
[CSS$13.statusIcon]: true,
|
|
11425
|
+
[CSS$13.valid]: status == "valid",
|
|
11426
|
+
[CSS$13.invalid]: status == "invalid",
|
|
11423
11427
|
};
|
|
11424
11428
|
return !!statusIcon ? (hAsync("calcite-icon", { class: statusIconClasses, icon: statusIcon, scale: "s" })) : null;
|
|
11425
11429
|
}
|
|
@@ -11436,13 +11440,13 @@ class BlockSection {
|
|
|
11436
11440
|
const regionId = `${guid}-region`;
|
|
11437
11441
|
const buttonId = `${guid}-button`;
|
|
11438
11442
|
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$
|
|
11443
|
+
[CSS$13.toggle]: true,
|
|
11444
|
+
[CSS$13.toggleSwitch]: true,
|
|
11445
|
+
}, 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: {
|
|
11446
|
+
[CSS$13.sectionHeader]: true,
|
|
11447
|
+
[CSS$13.toggle]: true,
|
|
11448
|
+
}, id: buttonId, name: toggleLabel, onClick: this.toggleSection }, hAsync("calcite-icon", { icon: arrowIcon, scale: "s" }), hAsync("span", { class: CSS$13.sectionHeaderText }, text), this.renderStatusIcon()));
|
|
11449
|
+
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
11450
|
}
|
|
11447
11451
|
static get assetsDirs() { return ["assets"]; }
|
|
11448
11452
|
get el() { return getElement(this); }
|
|
@@ -11872,7 +11876,7 @@ function onLabelDisconnected() {
|
|
|
11872
11876
|
document.addEventListener(labelConnectedEvent, boundOnLabelConnected);
|
|
11873
11877
|
}
|
|
11874
11878
|
|
|
11875
|
-
const CSS
|
|
11879
|
+
const CSS$12 = {
|
|
11876
11880
|
buttonLoader: "calcite-button--loader",
|
|
11877
11881
|
content: "content",
|
|
11878
11882
|
contentSlotted: "content--slotted",
|
|
@@ -12000,17 +12004,17 @@ class Button {
|
|
|
12000
12004
|
render() {
|
|
12001
12005
|
const childElType = this.href ? "a" : "button";
|
|
12002
12006
|
const Tag = childElType;
|
|
12003
|
-
const loaderNode = this.hasLoader ? (hAsync("div", { class: CSS
|
|
12007
|
+
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
12008
|
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
|
|
12009
|
+
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" }));
|
|
12010
|
+
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" }));
|
|
12011
|
+
const contentEl = (hAsync("span", { class: CSS$12.content, ref: (el) => (this.contentEl = el) }, hAsync("slot", null)));
|
|
12008
12012
|
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
|
|
12013
|
+
[CSS$12.buttonPadding]: noStartEndIcons,
|
|
12014
|
+
[CSS$12.buttonPaddingShrunk]: !noStartEndIcons,
|
|
12015
|
+
[CSS$12.contentSlotted]: this.hasContent,
|
|
12016
|
+
[CSS$12.iconStartEmpty]: !this.iconStart,
|
|
12017
|
+
[CSS$12.iconEndEmpty]: !this.iconEnd,
|
|
12014
12018
|
}, 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
12019
|
}
|
|
12016
12020
|
//--------------------------------------------------------------------------
|
|
@@ -12325,7 +12329,7 @@ class CalciteMenu {
|
|
|
12325
12329
|
}; }
|
|
12326
12330
|
}
|
|
12327
12331
|
|
|
12328
|
-
const CSS$
|
|
12332
|
+
const CSS$11 = {
|
|
12329
12333
|
container: "container",
|
|
12330
12334
|
content: "content",
|
|
12331
12335
|
dropdownVertical: "dropdown--vertical",
|
|
@@ -12529,54 +12533,54 @@ class CalciteMenuItem {
|
|
|
12529
12533
|
//
|
|
12530
12534
|
//--------------------------------------------------------------------------
|
|
12531
12535
|
renderIconStart() {
|
|
12532
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12536
|
+
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
12537
|
}
|
|
12534
12538
|
renderIconEnd() {
|
|
12535
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12539
|
+
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
12540
|
}
|
|
12537
12541
|
renderBreadcrumbIcon(dir) {
|
|
12538
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12542
|
+
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
12543
|
}
|
|
12540
12544
|
renderDropdownIcon(dir) {
|
|
12541
12545
|
const dirChevron = dir === "rtl" ? "chevron-left" : "chevron-right";
|
|
12542
|
-
return (hAsync("calcite-icon", { class: `${CSS$
|
|
12546
|
+
return (hAsync("calcite-icon", { class: `${CSS$11.icon} ${CSS$11.iconDropdown}`, icon: this.topLevelMenuLayout === "vertical" || this.isTopLevelItem
|
|
12543
12547
|
? this.open
|
|
12544
12548
|
? "chevron-up"
|
|
12545
12549
|
: "chevron-down"
|
|
12546
|
-
: dirChevron, key: CSS$
|
|
12550
|
+
: dirChevron, key: CSS$11.iconDropdown, scale: "s" }));
|
|
12547
12551
|
}
|
|
12548
12552
|
renderDropdownAction(dir) {
|
|
12549
12553
|
const dirChevron = dir === "rtl" ? "chevron-left" : "chevron-right";
|
|
12550
|
-
return (hAsync("calcite-action", { class: CSS$
|
|
12554
|
+
return (hAsync("calcite-action", { class: CSS$11.dropdownAction, icon: this.topLevelMenuLayout === "vertical" || this.isTopLevelItem
|
|
12551
12555
|
? this.open
|
|
12552
12556
|
? "chevron-up"
|
|
12553
12557
|
: "chevron-down"
|
|
12554
|
-
: dirChevron, key: CSS$
|
|
12558
|
+
: dirChevron, key: CSS$11.dropdownAction, onClick: this.clickHandler, onKeyDown: this.keyDownHandler, text: this.messages.open,
|
|
12555
12559
|
// eslint-disable-next-line react/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
12560
|
ref: (el) => (this.dropdownActionEl = el) }));
|
|
12557
12561
|
}
|
|
12558
12562
|
renderSubmenuItems(dir) {
|
|
12559
12563
|
return (hAsync("calcite-menu", { class: {
|
|
12560
|
-
[CSS$
|
|
12561
|
-
[CSS$
|
|
12562
|
-
[CSS$
|
|
12564
|
+
[CSS$11.dropdownMenuItems]: true,
|
|
12565
|
+
[CSS$11.open]: this.open,
|
|
12566
|
+
[CSS$11.nested]: !this.isTopLevelItem,
|
|
12563
12567
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
12564
|
-
[CSS$
|
|
12568
|
+
[CSS$11.dropdownVertical]: this.topLevelMenuLayout === "vertical",
|
|
12565
12569
|
}, label: this.messages.submenu, layout: "vertical", role: "menu" }, hAsync("slot", { name: "submenu-item", onSlotchange: this.handleMenuItemSlotChange })));
|
|
12566
12570
|
}
|
|
12567
12571
|
renderHrefIcon(dir) {
|
|
12568
|
-
return (hAsync("calcite-icon", { class: CSS$
|
|
12572
|
+
return (hAsync("calcite-icon", { class: CSS$11.hoverHrefIcon, icon: dir === "rtl" ? "arrow-left" : "arrow-right", key: CSS$11.hoverHrefIcon, scale: "s" }));
|
|
12569
12573
|
}
|
|
12570
12574
|
renderItemContent(dir) {
|
|
12571
12575
|
const hasHref = this.href && (this.topLevelMenuLayout === "vertical" || !this.isTopLevelItem);
|
|
12572
|
-
return (hAsync(Fragment, null, this.iconStart && this.renderIconStart(), hAsync("div", { class: CSS$
|
|
12576
|
+
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
12577
|
}
|
|
12574
12578
|
render() {
|
|
12575
12579
|
const dir = getElementDir(this.el);
|
|
12576
12580
|
return (hAsync(Host, { onBlur: this.blurHandler, onFocus: this.focusHandler }, hAsync("li", { class: {
|
|
12577
|
-
[CSS$
|
|
12578
|
-
[CSS$
|
|
12579
|
-
}, role: "none" }, hAsync("div", { class: CSS$
|
|
12581
|
+
[CSS$11.container]: true,
|
|
12582
|
+
[CSS$11.isParentVertical]: this.topLevelMenuLayout === "vertical",
|
|
12583
|
+
}, 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
12584
|
// eslint-disable-next-line react/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
12585
|
ref: (el) => (this.anchorEl = el) }, this.renderItemContent(dir)), this.href && this.hasSubmenu ? this.renderDropdownAction(dir) : null), this.renderSubmenuItems(dir))));
|
|
12582
12586
|
}
|
|
@@ -12619,7 +12623,7 @@ class CalciteMenuItem {
|
|
|
12619
12623
|
}; }
|
|
12620
12624
|
}
|
|
12621
12625
|
|
|
12622
|
-
const CSS$
|
|
12626
|
+
const CSS$10 = {
|
|
12623
12627
|
container: "container",
|
|
12624
12628
|
containerContent: "container-content",
|
|
12625
12629
|
hasProgress: "progress-bar",
|
|
@@ -12628,7 +12632,7 @@ const CSS$Z = {
|
|
|
12628
12632
|
secondary: "secondary",
|
|
12629
12633
|
tertiary: "tertiary",
|
|
12630
12634
|
};
|
|
12631
|
-
const SLOTS$
|
|
12635
|
+
const SLOTS$r = {
|
|
12632
12636
|
logo: "logo",
|
|
12633
12637
|
user: "user",
|
|
12634
12638
|
progress: "progress",
|
|
@@ -12746,7 +12750,7 @@ class CalciteNavigation {
|
|
|
12746
12750
|
setComponentLoaded(this);
|
|
12747
12751
|
}
|
|
12748
12752
|
isPrimaryLevel() {
|
|
12749
|
-
return this.el.slot !== SLOTS$
|
|
12753
|
+
return this.el.slot !== SLOTS$r.navSecondary && this.el.slot !== SLOTS$r.navTertiary;
|
|
12750
12754
|
}
|
|
12751
12755
|
//--------------------------------------------------------------------------
|
|
12752
12756
|
//
|
|
@@ -12754,7 +12758,7 @@ class CalciteNavigation {
|
|
|
12754
12758
|
//
|
|
12755
12759
|
//--------------------------------------------------------------------------
|
|
12756
12760
|
renderMenuAction() {
|
|
12757
|
-
return (hAsync("slot", { name: SLOTS$
|
|
12761
|
+
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
12762
|
// eslint-disable-next-line react/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
12763
|
ref: (el) => (this.navigationActionEl = el) }))));
|
|
12760
12764
|
}
|
|
@@ -12768,11 +12772,11 @@ class CalciteNavigation {
|
|
|
12768
12772
|
this.navigationAction;
|
|
12769
12773
|
const slotName = this.el.slot;
|
|
12770
12774
|
return (hAsync(Host, null, hAsync("div", { class: {
|
|
12771
|
-
[CSS$
|
|
12772
|
-
[CSS$
|
|
12773
|
-
[CSS$
|
|
12774
|
-
[CSS$
|
|
12775
|
-
} }, hAsync("div", { class: { [CSS$
|
|
12775
|
+
[CSS$10.container]: true,
|
|
12776
|
+
[CSS$10.secondary]: slotName === SLOTS$r.navSecondary,
|
|
12777
|
+
[CSS$10.tertiary]: slotName === SLOTS$r.navTertiary,
|
|
12778
|
+
[CSS$10.primary]: primaryLevelHasElements,
|
|
12779
|
+
} }, 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
12780
|
}
|
|
12777
12781
|
get el() { return getElement(this); }
|
|
12778
12782
|
static get style() { return navigationCss; }
|
|
@@ -12799,7 +12803,7 @@ class CalciteNavigation {
|
|
|
12799
12803
|
}; }
|
|
12800
12804
|
}
|
|
12801
12805
|
|
|
12802
|
-
const CSS
|
|
12806
|
+
const CSS$$ = {
|
|
12803
12807
|
container: "container",
|
|
12804
12808
|
heading: "heading",
|
|
12805
12809
|
description: "description",
|
|
@@ -12852,10 +12856,10 @@ class CalciteNavigationLogo {
|
|
|
12852
12856
|
// --------------------------------------------------------------------------
|
|
12853
12857
|
render() {
|
|
12854
12858
|
const { heading, description, thumbnail } = this;
|
|
12855
|
-
return (hAsync(Host, null, hAsync("a", { class: CSS
|
|
12856
|
-
[CSS
|
|
12857
|
-
[CSS
|
|
12858
|
-
}, key: CSS
|
|
12859
|
+
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: {
|
|
12860
|
+
[CSS$$.heading]: true,
|
|
12861
|
+
[CSS$$.standalone]: !this.description,
|
|
12862
|
+
}, key: CSS$$.heading }, heading)), description && (hAsync("span", { "aria-label": this.description, class: CSS$$.description, key: CSS$$.description }, description)))))));
|
|
12859
12863
|
}
|
|
12860
12864
|
static get delegatesFocus() { return true; }
|
|
12861
12865
|
get el() { return getElement(this); }
|
|
@@ -12880,7 +12884,7 @@ class CalciteNavigationLogo {
|
|
|
12880
12884
|
}; }
|
|
12881
12885
|
}
|
|
12882
12886
|
|
|
12883
|
-
const CSS$
|
|
12887
|
+
const CSS$_ = {
|
|
12884
12888
|
textContainer: "text-container",
|
|
12885
12889
|
fullName: "full-name",
|
|
12886
12890
|
username: "username",
|
|
@@ -12927,7 +12931,7 @@ class CalciteNavigationUser {
|
|
|
12927
12931
|
//
|
|
12928
12932
|
// --------------------------------------------------------------------------
|
|
12929
12933
|
render() {
|
|
12930
|
-
return (hAsync(Host, null, hAsync("button", { "aria-label": this.label, class: CSS$
|
|
12934
|
+
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
12935
|
}
|
|
12932
12936
|
static get delegatesFocus() { return true; }
|
|
12933
12937
|
get el() { return getElement(this); }
|
|
@@ -12951,7 +12955,7 @@ class CalciteNavigationUser {
|
|
|
12951
12955
|
}; }
|
|
12952
12956
|
}
|
|
12953
12957
|
|
|
12954
|
-
const CSS$
|
|
12958
|
+
const CSS$Z = {
|
|
12955
12959
|
container: "container",
|
|
12956
12960
|
header: "header",
|
|
12957
12961
|
footer: "footer",
|
|
@@ -12960,7 +12964,7 @@ const CSS$W = {
|
|
|
12960
12964
|
checkboxWrapper: "checkbox-wrapper",
|
|
12961
12965
|
thumbnailWrapper: "thumbnail-wrapper",
|
|
12962
12966
|
};
|
|
12963
|
-
const SLOTS$
|
|
12967
|
+
const SLOTS$q = {
|
|
12964
12968
|
thumbnail: "thumbnail",
|
|
12965
12969
|
title: "title",
|
|
12966
12970
|
subtitle: "subtitle",
|
|
@@ -13036,7 +13040,7 @@ class Card {
|
|
|
13036
13040
|
render() {
|
|
13037
13041
|
const thumbnailInline = this.thumbnailPosition.startsWith("inline");
|
|
13038
13042
|
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$
|
|
13043
|
+
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
13044
|
}
|
|
13041
13045
|
effectiveLocaleChange() {
|
|
13042
13046
|
updateMessages(this);
|
|
@@ -13046,24 +13050,24 @@ class Card {
|
|
|
13046
13050
|
this.calciteCardSelect.emit();
|
|
13047
13051
|
}
|
|
13048
13052
|
renderThumbnail() {
|
|
13049
|
-
return getSlotted(this.el, SLOTS$
|
|
13053
|
+
return getSlotted(this.el, SLOTS$q.thumbnail) ? (hAsync("section", { class: CSS$Z.thumbnailWrapper }, hAsync("slot", { name: SLOTS$q.thumbnail }))) : null;
|
|
13050
13054
|
}
|
|
13051
13055
|
renderCheckbox() {
|
|
13052
|
-
return (hAsync("calcite-label", { class: CSS$
|
|
13056
|
+
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
13057
|
}
|
|
13054
13058
|
renderHeader() {
|
|
13055
13059
|
const { el } = this;
|
|
13056
|
-
const title = getSlotted(el, SLOTS$
|
|
13057
|
-
const subtitle = getSlotted(el, SLOTS$
|
|
13060
|
+
const title = getSlotted(el, SLOTS$q.title);
|
|
13061
|
+
const subtitle = getSlotted(el, SLOTS$q.subtitle);
|
|
13058
13062
|
const hasHeader = title || subtitle;
|
|
13059
|
-
return hasHeader ? (hAsync("header", { class: CSS$
|
|
13063
|
+
return hasHeader ? (hAsync("header", { class: CSS$Z.header }, hAsync("slot", { name: SLOTS$q.title }), hAsync("slot", { name: SLOTS$q.subtitle }))) : null;
|
|
13060
13064
|
}
|
|
13061
13065
|
renderFooter() {
|
|
13062
13066
|
const { el } = this;
|
|
13063
|
-
const startFooter = getSlotted(el, SLOTS$
|
|
13064
|
-
const endFooter = getSlotted(el, SLOTS$
|
|
13067
|
+
const startFooter = getSlotted(el, SLOTS$q.footerStart);
|
|
13068
|
+
const endFooter = getSlotted(el, SLOTS$q.footerEnd);
|
|
13065
13069
|
const hasFooter = startFooter || endFooter;
|
|
13066
|
-
return hasFooter ? (hAsync("footer", { class: CSS$
|
|
13070
|
+
return hasFooter ? (hAsync("footer", { class: CSS$Z.footer }, hAsync("slot", { name: SLOTS$q.footerStart }), hAsync("slot", { name: SLOTS$q.footerEnd }))) : null;
|
|
13067
13071
|
}
|
|
13068
13072
|
static get assetsDirs() { return ["assets"]; }
|
|
13069
13073
|
get el() { return getElement(this); }
|
|
@@ -13226,7 +13230,7 @@ class Checkbox {
|
|
|
13226
13230
|
}; }
|
|
13227
13231
|
}
|
|
13228
13232
|
|
|
13229
|
-
const CSS$
|
|
13233
|
+
const CSS$Y = {
|
|
13230
13234
|
title: "title",
|
|
13231
13235
|
close: "close",
|
|
13232
13236
|
imageContainer: "image-container",
|
|
@@ -13242,7 +13246,7 @@ const CSS$V = {
|
|
|
13242
13246
|
nonInteractive: "non-interactive",
|
|
13243
13247
|
isCircle: "is-circle",
|
|
13244
13248
|
};
|
|
13245
|
-
const SLOTS$
|
|
13249
|
+
const SLOTS$p = {
|
|
13246
13250
|
image: "image",
|
|
13247
13251
|
};
|
|
13248
13252
|
const ICONS$d = {
|
|
@@ -13395,7 +13399,7 @@ class Chip {
|
|
|
13395
13399
|
//
|
|
13396
13400
|
//--------------------------------------------------------------------------
|
|
13397
13401
|
renderChipImage() {
|
|
13398
|
-
return (hAsync("div", { class: CSS$
|
|
13402
|
+
return (hAsync("div", { class: CSS$Y.imageContainer }, hAsync("slot", { name: SLOTS$p.image, onSlotchange: this.handleSlotImageChange })));
|
|
13399
13403
|
}
|
|
13400
13404
|
renderSelectionIcon() {
|
|
13401
13405
|
const icon = this.selectionMode === "multiple" && this.selected
|
|
@@ -13406,17 +13410,17 @@ class Chip {
|
|
|
13406
13410
|
? ICONS$d.checkedSingle
|
|
13407
13411
|
: undefined;
|
|
13408
13412
|
return (hAsync("div", { class: {
|
|
13409
|
-
[CSS$
|
|
13410
|
-
[CSS$
|
|
13413
|
+
[CSS$Y.selectIcon]: true,
|
|
13414
|
+
[CSS$Y.selectIconActive]: this.selectionMode === "multiple" || this.selected,
|
|
13411
13415
|
} }, hAsync("calcite-icon", { icon: icon, scale: this.scale === "l" ? "m" : "s" })));
|
|
13412
13416
|
}
|
|
13413
13417
|
renderCloseButton() {
|
|
13414
|
-
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$
|
|
13418
|
+
return (hAsync("button", { "aria-label": this.messages.dismissLabel, class: CSS$Y.close, onClick: this.close, onKeyDown: this.closeButtonKeyDownHandler, tabIndex: this.disabled ? -1 : 0,
|
|
13415
13419
|
// eslint-disable-next-line react/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
13420
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$d.close, scale: this.scale === "l" ? "m" : "s" })));
|
|
13417
13421
|
}
|
|
13418
13422
|
renderIcon() {
|
|
13419
|
-
return (hAsync("calcite-icon", { class: CSS$
|
|
13423
|
+
return (hAsync("calcite-icon", { class: CSS$Y.chipIcon, flipRtl: this.iconFlipRtl, icon: this.icon, scale: this.scale === "l" ? "m" : "s" }));
|
|
13420
13424
|
}
|
|
13421
13425
|
render() {
|
|
13422
13426
|
const disableInteraction = this.disabled || (!this.disabled && !this.interactive);
|
|
@@ -13430,21 +13434,21 @@ class Chip {
|
|
|
13430
13434
|
return (hAsync(Host, null, hAsync("div", { "aria-checked": this.selectionMode !== "none" && this.interactive
|
|
13431
13435
|
? toAriaBoolean(this.selected)
|
|
13432
13436
|
: 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$
|
|
13437
|
+
[CSS$Y.container]: true,
|
|
13438
|
+
[CSS$Y.textSlotted]: this.hasText,
|
|
13439
|
+
[CSS$Y.imageSlotted]: this.hasImage,
|
|
13440
|
+
[CSS$Y.selectable]: this.selectionMode !== "none",
|
|
13441
|
+
[CSS$Y.multiple]: this.selectionMode === "multiple",
|
|
13442
|
+
[CSS$Y.closable]: this.closable,
|
|
13443
|
+
[CSS$Y.nonInteractive]: !this.interactive,
|
|
13444
|
+
[CSS$Y.isCircle]: !this.closable &&
|
|
13441
13445
|
!this.hasText &&
|
|
13442
13446
|
(!this.icon || !this.hasImage) &&
|
|
13443
13447
|
(this.selectionMode === "none" ||
|
|
13444
13448
|
(!!this.selectionMode && this.selectionMode !== "multiple" && !this.selected)),
|
|
13445
13449
|
}, onClick: this.handleEmittingEvent, role: role, tabIndex: disableInteraction ? -1 : 0,
|
|
13446
13450
|
// eslint-disable-next-line react/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$
|
|
13451
|
+
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
13452
|
}
|
|
13449
13453
|
static get assetsDirs() { return ["assets"]; }
|
|
13450
13454
|
get el() { return getElement(this); }
|
|
@@ -15766,7 +15770,7 @@ function zeroArray(array, length) {
|
|
|
15766
15770
|
|
|
15767
15771
|
var color = Color;
|
|
15768
15772
|
|
|
15769
|
-
const CSS$
|
|
15773
|
+
const CSS$X = {
|
|
15770
15774
|
channel: "channel",
|
|
15771
15775
|
channels: "channels",
|
|
15772
15776
|
colorField: "color-field",
|
|
@@ -16115,7 +16119,7 @@ class ColorPicker {
|
|
|
16115
16119
|
const { channelMode: activeChannelMode, messages } = this;
|
|
16116
16120
|
const selected = channelMode === activeChannelMode;
|
|
16117
16121
|
const label = channelMode === "rgb" ? messages.rgb : messages.hsv;
|
|
16118
|
-
return (hAsync("calcite-tab-title", { class: CSS$
|
|
16122
|
+
return (hAsync("calcite-tab-title", { class: CSS$X.colorMode, "data-color-mode": channelMode, key: channelMode, onCalciteTabsActivate: this.handleTabActivate, selected: selected }, label));
|
|
16119
16123
|
};
|
|
16120
16124
|
this.renderChannelsTab = (channelMode) => {
|
|
16121
16125
|
const { allowEmpty, channelMode: activeChannelMode, channels, messages, alphaChannel } = this;
|
|
@@ -16126,7 +16130,7 @@ class ColorPicker {
|
|
|
16126
16130
|
: [messages.hue, messages.saturation, messages.value];
|
|
16127
16131
|
const direction = getElementDir(this.el);
|
|
16128
16132
|
const channelsToRender = alphaChannel ? channels : channels.slice(0, 3);
|
|
16129
|
-
return (hAsync("calcite-tab", { class: CSS$
|
|
16133
|
+
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
16134
|
const isAlphaChannel = index === 3;
|
|
16131
16135
|
if (isAlphaChannel) {
|
|
16132
16136
|
channelValue =
|
|
@@ -16137,7 +16141,7 @@ class ColorPicker {
|
|
|
16137
16141
|
}))));
|
|
16138
16142
|
};
|
|
16139
16143
|
this.renderChannel = (value, index, ariaLabel, direction, suffix) => {
|
|
16140
|
-
return (hAsync("calcite-input-number", { class: CSS$
|
|
16144
|
+
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
16145
|
// workaround to ensure input borders overlap as desired
|
|
16142
16146
|
// this is because the build transforms margin-left to its
|
|
16143
16147
|
// logical-prop, which is undesired as channels are always ltr
|
|
@@ -16327,7 +16331,7 @@ class ColorPicker {
|
|
|
16327
16331
|
this.shiftKeyChannelAdjustment = 0;
|
|
16328
16332
|
const { key } = event;
|
|
16329
16333
|
if ((key !== "ArrowUp" && key !== "ArrowDown") ||
|
|
16330
|
-
!event.composedPath().some((node) => node.classList?.contains(CSS$
|
|
16334
|
+
!event.composedPath().some((node) => node.classList?.contains(CSS$X.channel))) {
|
|
16331
16335
|
return;
|
|
16332
16336
|
}
|
|
16333
16337
|
const { shiftKey } = event;
|
|
@@ -16419,35 +16423,35 @@ class ColorPicker {
|
|
|
16419
16423
|
const [adjustedColorFieldScopeLeft, adjustedColorFieldScopeTop] = this.getAdjustedScopePosition(colorFieldScopeLeft, colorFieldScopeTop);
|
|
16420
16424
|
const [adjustedHueScopeLeft, adjustedHueScopeTop] = this.getAdjustedScopePosition(hueLeft, hueTop);
|
|
16421
16425
|
const [adjustedOpacityScopeLeft, adjustedOpacityScopeTop] = this.getAdjustedScopePosition(opacityLeft, opacityTop);
|
|
16422
|
-
return (hAsync("div", { class: CSS$
|
|
16426
|
+
return (hAsync("div", { class: CSS$X.container }, hAsync("div", { class: CSS$X.controlAndScope }, hAsync("canvas", { class: CSS$X.colorField, onPointerDown: this.handleColorFieldPointerDown,
|
|
16423
16427
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
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$
|
|
16428
|
+
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
16429
|
top: `${adjustedColorFieldScopeTop || 0}px`,
|
|
16426
16430
|
left: `${adjustedColorFieldScopeLeft || 0}px`,
|
|
16427
16431
|
}, tabindex: "0",
|
|
16428
16432
|
// eslint-disable-next-line react/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$
|
|
16433
|
+
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
16434
|
// eslint-disable-next-line react/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$
|
|
16435
|
+
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
16436
|
top: `${adjustedHueScopeTop}px`,
|
|
16433
16437
|
left: `${adjustedHueScopeLeft}px`,
|
|
16434
16438
|
}, tabindex: "0",
|
|
16435
16439
|
// eslint-disable-next-line react/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$
|
|
16440
|
+
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
16441
|
// eslint-disable-next-line react/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$
|
|
16442
|
+
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
16443
|
top: `${adjustedOpacityScopeTop}px`,
|
|
16440
16444
|
left: `${adjustedOpacityScopeLeft}px`,
|
|
16441
16445
|
}, tabindex: "0",
|
|
16442
16446
|
// eslint-disable-next-line react/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
16447
|
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$
|
|
16448
|
+
[CSS$X.controlSection]: true,
|
|
16449
|
+
[CSS$X.section]: true,
|
|
16450
|
+
} }, 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: {
|
|
16451
|
+
[CSS$X.colorModeContainer]: true,
|
|
16452
|
+
[CSS$X.splitSection]: true,
|
|
16453
|
+
}, 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 }, [
|
|
16454
|
+
...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
16455
|
])) : null))));
|
|
16452
16456
|
}
|
|
16453
16457
|
// --------------------------------------------------------------------------
|
|
@@ -16818,7 +16822,7 @@ class ColorPicker {
|
|
|
16818
16822
|
}; }
|
|
16819
16823
|
}
|
|
16820
16824
|
|
|
16821
|
-
const CSS$
|
|
16825
|
+
const CSS$W = {
|
|
16822
16826
|
container: "container",
|
|
16823
16827
|
hexInput: "hex-input",
|
|
16824
16828
|
opacityInput: "opacity-input",
|
|
@@ -16986,9 +16990,9 @@ class ColorPickerHexInput {
|
|
|
16986
16990
|
const hexInputValue = this.formatHexForInternalInput(value);
|
|
16987
16991
|
const opacityInputValue = this.formatOpacityForInternalInput(internalColor);
|
|
16988
16992
|
const inputScale = scale === "l" ? "m" : "s";
|
|
16989
|
-
return (hAsync("div", { class: CSS$
|
|
16993
|
+
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
16994
|
// eslint-disable-next-line react/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$
|
|
16995
|
+
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
16996
|
// eslint-disable-next-line react/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
16997
|
ref: this.storeOpacityInputRef })) : null));
|
|
16994
16998
|
}
|
|
@@ -17084,7 +17088,7 @@ class ColorPickerHexInput {
|
|
|
17084
17088
|
}; }
|
|
17085
17089
|
}
|
|
17086
17090
|
|
|
17087
|
-
const CSS$
|
|
17091
|
+
const CSS$V = {
|
|
17088
17092
|
swatch: "swatch",
|
|
17089
17093
|
noColorSwatch: "swatch--no-color",
|
|
17090
17094
|
checker: "checker",
|
|
@@ -17122,8 +17126,8 @@ class ColorPickerSwatch {
|
|
|
17122
17126
|
render() {
|
|
17123
17127
|
const isEmpty = !this.internalColor;
|
|
17124
17128
|
const classes = {
|
|
17125
|
-
[CSS$
|
|
17126
|
-
[CSS$
|
|
17129
|
+
[CSS$V.swatch]: true,
|
|
17130
|
+
[CSS$V.noColorSwatch]: isEmpty,
|
|
17127
17131
|
};
|
|
17128
17132
|
return (hAsync("svg", { class: classes, xmlns: "http://www.w3.org/2000/svg" }, this.renderSwatch()));
|
|
17129
17133
|
}
|
|
@@ -17149,7 +17153,7 @@ class ColorPickerSwatch {
|
|
|
17149
17153
|
const alpha = internalColor.alpha();
|
|
17150
17154
|
const hex = hexify(internalColor);
|
|
17151
17155
|
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$
|
|
17156
|
+
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
17157
|
"clip-path": alpha < 1 ? "polygon(100% 0, 0 0, 0 100%)" : `inset(0 round ${borderRadius})`,
|
|
17154
17158
|
}, ...commonSwatchProps }), alpha < 1 ? (hAsync("rect", { fill: hexa, key: "opacity-fill", style: { "clip-path": "polygon(100% 0, 100% 100%, 0 100%)" }, ...commonSwatchProps })) : null));
|
|
17155
17159
|
}
|
|
@@ -18878,7 +18882,7 @@ const defaultOffsetDistance = Math.ceil(Math.hypot(visiblePointerSize, visiblePo
|
|
|
18878
18882
|
const ComboboxItem$1 = "CALCITE-COMBOBOX-ITEM";
|
|
18879
18883
|
const ComboboxItemGroup$1 = "CALCITE-COMBOBOX-ITEM-GROUP";
|
|
18880
18884
|
const ComboboxChildSelector = `${ComboboxItem$1}, ${ComboboxItemGroup$1}`;
|
|
18881
|
-
const CSS$
|
|
18885
|
+
const CSS$U = {
|
|
18882
18886
|
listContainer: "list-container",
|
|
18883
18887
|
};
|
|
18884
18888
|
|
|
@@ -18906,11 +18910,11 @@ function isSingleLike(selectionMode) {
|
|
|
18906
18910
|
return selectionMode.includes("single");
|
|
18907
18911
|
}
|
|
18908
18912
|
|
|
18909
|
-
const CSS$
|
|
18913
|
+
const CSS$T = {
|
|
18910
18914
|
button: "x-button",
|
|
18911
18915
|
};
|
|
18912
18916
|
function XButton({ disabled, key, label, onClick, ref, scale, }) {
|
|
18913
|
-
return (hAsync("button", { "aria-label": label, class: CSS$
|
|
18917
|
+
return (hAsync("button", { "aria-label": label, class: CSS$T.button, disabled: disabled, key: key, onClick: onClick, tabIndex: -1, type: "button",
|
|
18914
18918
|
// eslint-disable-next-line react/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
18919
|
ref: ref },
|
|
18916
18920
|
hAsync("calcite-icon", { icon: "x", scale: scale === "l" ? "m" : "s" })));
|
|
@@ -19108,7 +19112,7 @@ class Combobox {
|
|
|
19108
19112
|
event.preventDefault();
|
|
19109
19113
|
return;
|
|
19110
19114
|
}
|
|
19111
|
-
if (composedPath.some((node) => node.classList?.contains(CSS$
|
|
19115
|
+
if (composedPath.some((node) => node.classList?.contains(CSS$T.button))) {
|
|
19112
19116
|
this.clearValue();
|
|
19113
19117
|
event.preventDefault();
|
|
19114
19118
|
return;
|
|
@@ -19723,7 +19727,7 @@ class Combobox {
|
|
|
19723
19727
|
renderFloatingUIContainer() {
|
|
19724
19728
|
const { setFloatingEl, setContainerEl, open } = this;
|
|
19725
19729
|
const classes = {
|
|
19726
|
-
[CSS$
|
|
19730
|
+
[CSS$U.listContainer]: true,
|
|
19727
19731
|
[FloatingCSS.animation]: true,
|
|
19728
19732
|
[FloatingCSS.animationActive]: open,
|
|
19729
19733
|
};
|
|
@@ -19822,7 +19826,7 @@ class Combobox {
|
|
|
19822
19826
|
}; }
|
|
19823
19827
|
}
|
|
19824
19828
|
|
|
19825
|
-
const CSS$
|
|
19829
|
+
const CSS$S = {
|
|
19826
19830
|
icon: "icon",
|
|
19827
19831
|
iconActive: "icon--active",
|
|
19828
19832
|
iconIndent: "icon--indent",
|
|
@@ -19901,20 +19905,20 @@ class ComboboxItem {
|
|
|
19901
19905
|
// --------------------------------------------------------------------------
|
|
19902
19906
|
renderIcon(iconPath) {
|
|
19903
19907
|
return this.icon ? (hAsync("calcite-icon", { class: {
|
|
19904
|
-
[CSS$
|
|
19905
|
-
[CSS$
|
|
19906
|
-
[CSS$
|
|
19908
|
+
[CSS$S.custom]: !!this.icon,
|
|
19909
|
+
[CSS$S.iconActive]: this.icon && this.selected,
|
|
19910
|
+
[CSS$S.iconIndent]: true,
|
|
19907
19911
|
}, flipRtl: this.iconFlipRtl, icon: this.icon || iconPath, key: "icon", scale: this.scale === "l" ? "m" : "s" })) : null;
|
|
19908
19912
|
}
|
|
19909
19913
|
renderSelectIndicator(showDot, iconPath) {
|
|
19910
19914
|
return showDot ? (hAsync("span", { class: {
|
|
19911
|
-
[CSS$
|
|
19912
|
-
[CSS$
|
|
19913
|
-
[CSS$
|
|
19915
|
+
[CSS$S.icon]: true,
|
|
19916
|
+
[CSS$S.dot]: true,
|
|
19917
|
+
[CSS$S.iconIndent]: true,
|
|
19914
19918
|
} })) : (hAsync("calcite-icon", { class: {
|
|
19915
|
-
[CSS$
|
|
19916
|
-
[CSS$
|
|
19917
|
-
[CSS$
|
|
19919
|
+
[CSS$S.icon]: true,
|
|
19920
|
+
[CSS$S.iconActive]: this.selected,
|
|
19921
|
+
[CSS$S.iconIndent]: true,
|
|
19918
19922
|
}, flipRtl: this.iconFlipRtl, icon: iconPath, key: "indicator", scale: this.scale === "l" ? "m" : "s" }));
|
|
19919
19923
|
}
|
|
19920
19924
|
renderChildren() {
|
|
@@ -19929,10 +19933,10 @@ class ComboboxItem {
|
|
|
19929
19933
|
const defaultIcon = isSingleSelect ? "dot" : "check";
|
|
19930
19934
|
const iconPath = this.disabled ? "circle-disallowed" : defaultIcon;
|
|
19931
19935
|
const classes = {
|
|
19932
|
-
[CSS$
|
|
19933
|
-
[CSS$
|
|
19934
|
-
[CSS$
|
|
19935
|
-
[CSS$
|
|
19936
|
+
[CSS$S.label]: true,
|
|
19937
|
+
[CSS$S.selected]: this.selected,
|
|
19938
|
+
[CSS$S.active]: this.active,
|
|
19939
|
+
[CSS$S.single]: isSingleSelect,
|
|
19936
19940
|
};
|
|
19937
19941
|
const depth = getDepth$1();
|
|
19938
19942
|
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 +19969,7 @@ class ComboboxItem {
|
|
|
19965
19969
|
}; }
|
|
19966
19970
|
}
|
|
19967
19971
|
|
|
19968
|
-
const CSS$
|
|
19972
|
+
const CSS$R = {
|
|
19969
19973
|
list: "list",
|
|
19970
19974
|
label: "label",
|
|
19971
19975
|
title: "title",
|
|
@@ -20001,7 +20005,7 @@ class ComboboxItemGroup {
|
|
|
20001
20005
|
render() {
|
|
20002
20006
|
const { el, scale } = this;
|
|
20003
20007
|
const depth = getDepth$1();
|
|
20004
|
-
return (hAsync("ul", { "aria-labelledby": this.guid, class: { [CSS$
|
|
20008
|
+
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
20009
|
}
|
|
20006
20010
|
get el() { return getElement(this); }
|
|
20007
20011
|
static get style() { return comboboxItemGroupCss; }
|
|
@@ -21188,7 +21192,7 @@ class DatePickerMonth {
|
|
|
21188
21192
|
}; }
|
|
21189
21193
|
}
|
|
21190
21194
|
|
|
21191
|
-
const CSS$
|
|
21195
|
+
const CSS$Q = {
|
|
21192
21196
|
header: "header",
|
|
21193
21197
|
month: "month",
|
|
21194
21198
|
chevron: "chevron",
|
|
@@ -21288,7 +21292,7 @@ class DatePickerMonthHeader {
|
|
|
21288
21292
|
this.setNextPrevMonthDates();
|
|
21289
21293
|
}
|
|
21290
21294
|
render() {
|
|
21291
|
-
return hAsync("div", { class: CSS$
|
|
21295
|
+
return hAsync("div", { class: CSS$Q.header }, this.renderContent());
|
|
21292
21296
|
}
|
|
21293
21297
|
renderContent() {
|
|
21294
21298
|
const { messages, localeData, activeDate } = this;
|
|
@@ -21311,12 +21315,12 @@ class DatePickerMonthHeader {
|
|
|
21311
21315
|
const order = getOrder(unitOrder);
|
|
21312
21316
|
const reverse = order.indexOf("y") < order.indexOf("m");
|
|
21313
21317
|
const suffix = localeData.year?.suffix;
|
|
21314
|
-
return (hAsync(Fragment, null, hAsync("a", { "aria-disabled": `${this.prevMonthDate.getMonth() === activeMonth}`, "aria-label": messages.prevMonth, class: CSS$
|
|
21318
|
+
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
21319
|
year: true,
|
|
21316
|
-
[CSS$
|
|
21320
|
+
[CSS$Q.yearSuffix]: !!suffix,
|
|
21317
21321
|
}, inputmode: "numeric", maxlength: "4", minlength: "1", onChange: this.onYearChange, onInput: this.onYearInput, onKeyDown: this.onYearKey, pattern: "\\d*", type: "text", value: localizedYear,
|
|
21318
21322
|
// eslint-disable-next-line react/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$
|
|
21323
|
+
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
21324
|
}
|
|
21321
21325
|
setNextPrevMonthDates() {
|
|
21322
21326
|
if (!this.activeDate) {
|
|
@@ -21392,7 +21396,7 @@ class DatePickerMonthHeader {
|
|
|
21392
21396
|
}; }
|
|
21393
21397
|
}
|
|
21394
21398
|
|
|
21395
|
-
const SLOTS$
|
|
21399
|
+
const SLOTS$o = {
|
|
21396
21400
|
dropdownTrigger: "trigger",
|
|
21397
21401
|
};
|
|
21398
21402
|
|
|
@@ -21630,7 +21634,7 @@ class Dropdown {
|
|
|
21630
21634
|
const { open, guid } = this;
|
|
21631
21635
|
return (hAsync(Host, null, hAsync("div", { class: "calcite-trigger-container", id: `${guid}-menubutton`, onClick: this.openCalciteDropdown, onKeyDown: this.keyDownHandler,
|
|
21632
21636
|
// eslint-disable-next-line react/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$
|
|
21637
|
+
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
21638
|
// eslint-disable-next-line react/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
21639
|
ref: this.setFloatingEl }, hAsync("div", { "aria-labelledby": `${guid}-menubutton`, class: {
|
|
21636
21640
|
["calcite-dropdown-content"]: true,
|
|
@@ -21819,7 +21823,7 @@ class Dropdown {
|
|
|
21819
21823
|
}; }
|
|
21820
21824
|
}
|
|
21821
21825
|
|
|
21822
|
-
const CSS$
|
|
21826
|
+
const CSS$P = {
|
|
21823
21827
|
container: "container",
|
|
21824
21828
|
containerLink: "container--link",
|
|
21825
21829
|
containerMulti: "container--multi-selection",
|
|
@@ -21867,8 +21871,8 @@ class DropdownGroup {
|
|
|
21867
21871
|
const groupTitle = this.groupTitle ? (hAsync("span", { "aria-hidden": "true", class: "dropdown-title" }, this.groupTitle)) : null;
|
|
21868
21872
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
21869
21873
|
return (hAsync(Host, { "aria-label": this.groupTitle, role: "group" }, hAsync("div", { class: {
|
|
21870
|
-
[CSS$
|
|
21871
|
-
[`${CSS$
|
|
21874
|
+
[CSS$P.container]: true,
|
|
21875
|
+
[`${CSS$P.container}--${this.scale}`]: true,
|
|
21872
21876
|
} }, dropdownSeparator, groupTitle, hAsync("slot", null))));
|
|
21873
21877
|
}
|
|
21874
21878
|
//--------------------------------------------------------------------------
|
|
@@ -21962,9 +21966,9 @@ class DropdownItem {
|
|
|
21962
21966
|
}
|
|
21963
21967
|
render() {
|
|
21964
21968
|
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$
|
|
21969
|
+
const iconStartEl = (hAsync("calcite-icon", { class: CSS$P.iconStart, flipRtl: iconFlipRtl === "start" || iconFlipRtl === "both", icon: this.iconStart, scale: scale === "l" ? "m" : "s" }));
|
|
21970
|
+
const contentNode = (hAsync("span", { class: CSS$P.itemContent }, hAsync("slot", null)));
|
|
21971
|
+
const iconEndEl = (hAsync("calcite-icon", { class: CSS$P.iconEnd, flipRtl: iconFlipRtl === "end" || iconFlipRtl === "both", icon: this.iconEnd, scale: scale === "l" ? "m" : "s" }));
|
|
21968
21972
|
const slottedContent = this.iconStart && this.iconEnd
|
|
21969
21973
|
? [iconStartEl, contentNode, iconEndEl]
|
|
21970
21974
|
: this.iconStart
|
|
@@ -21972,7 +21976,7 @@ class DropdownItem {
|
|
|
21972
21976
|
: this.iconEnd
|
|
21973
21977
|
? [contentNode, iconEndEl]
|
|
21974
21978
|
: contentNode;
|
|
21975
|
-
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$
|
|
21979
|
+
const contentEl = !href ? (slottedContent) : (hAsync("a", { "aria-label": label, class: CSS$P.link, href: href, rel: this.rel, tabIndex: -1, target: this.target,
|
|
21976
21980
|
// eslint-disable-next-line react/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
21981
|
ref: (el) => (this.childLink = el) }, slottedContent));
|
|
21978
21982
|
const itemRole = href
|
|
@@ -21984,13 +21988,13 @@ class DropdownItem {
|
|
|
21984
21988
|
: "menuitem";
|
|
21985
21989
|
const itemAria = selectionMode !== "none" ? toAriaBoolean(this.selected) : null;
|
|
21986
21990
|
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$
|
|
21991
|
+
[CSS$P.container]: true,
|
|
21992
|
+
[CSS$P.containerLink]: !!href,
|
|
21993
|
+
[`${CSS$P.container}--${scale}`]: true,
|
|
21994
|
+
[CSS$P.containerMulti]: selectionMode === "multiple",
|
|
21995
|
+
[CSS$P.containerSingle]: selectionMode === "single",
|
|
21996
|
+
[CSS$P.containerNone]: selectionMode === "none",
|
|
21997
|
+
} }, selectionMode !== "none" ? (hAsync("calcite-icon", { class: CSS$P.icon, icon: selectionMode === "multiple" ? "check" : "bullet-point", scale: scale === "l" ? "m" : "s" })) : null, contentEl)));
|
|
21994
21998
|
}
|
|
21995
21999
|
//--------------------------------------------------------------------------
|
|
21996
22000
|
//
|
|
@@ -22097,7 +22101,7 @@ class DropdownItem {
|
|
|
22097
22101
|
}; }
|
|
22098
22102
|
}
|
|
22099
22103
|
|
|
22100
|
-
const CSS$
|
|
22104
|
+
const CSS$O = {
|
|
22101
22105
|
button: "button",
|
|
22102
22106
|
};
|
|
22103
22107
|
const ICONS$c = {
|
|
@@ -22158,7 +22162,7 @@ class Fab {
|
|
|
22158
22162
|
render() {
|
|
22159
22163
|
const { appearance, kind, disabled, loading, scale, textEnabled, icon, label, text, iconFlipRtl, } = this;
|
|
22160
22164
|
const title = !textEnabled ? label || text || null : null;
|
|
22161
|
-
return (hAsync("calcite-button", { appearance: appearance === "solid" ? "solid" : "outline-fill", class: CSS$
|
|
22165
|
+
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
22166
|
// eslint-disable-next-line react/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
22167
|
ref: (buttonEl) => {
|
|
22164
22168
|
this.buttonEl = buttonEl;
|
|
@@ -22188,7 +22192,7 @@ class Fab {
|
|
|
22188
22192
|
}; }
|
|
22189
22193
|
}
|
|
22190
22194
|
|
|
22191
|
-
const CSS$
|
|
22195
|
+
const CSS$N = {
|
|
22192
22196
|
container: "container",
|
|
22193
22197
|
searchIcon: "search-icon",
|
|
22194
22198
|
};
|
|
@@ -22317,7 +22321,7 @@ class Filter {
|
|
|
22317
22321
|
// --------------------------------------------------------------------------
|
|
22318
22322
|
render() {
|
|
22319
22323
|
const { disabled, scale } = this;
|
|
22320
|
-
return (hAsync(Fragment, null, hAsync("div", { class: CSS$
|
|
22324
|
+
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
22325
|
// eslint-disable-next-line react/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
22326
|
ref: (el) => {
|
|
22323
22327
|
this.textInput = el;
|
|
@@ -22356,7 +22360,7 @@ class Filter {
|
|
|
22356
22360
|
}; }
|
|
22357
22361
|
}
|
|
22358
22362
|
|
|
22359
|
-
const CSS$
|
|
22363
|
+
const CSS$M = {
|
|
22360
22364
|
frame: "frame",
|
|
22361
22365
|
frameAdvancing: "frame--advancing",
|
|
22362
22366
|
frameRetreating: "frame--retreating",
|
|
@@ -22477,9 +22481,9 @@ class Flow {
|
|
|
22477
22481
|
render() {
|
|
22478
22482
|
const { flowDirection } = this;
|
|
22479
22483
|
const frameDirectionClasses = {
|
|
22480
|
-
[CSS$
|
|
22481
|
-
[CSS$
|
|
22482
|
-
[CSS$
|
|
22484
|
+
[CSS$M.frame]: true,
|
|
22485
|
+
[CSS$M.frameAdvancing]: flowDirection === "advancing",
|
|
22486
|
+
[CSS$M.frameRetreating]: flowDirection === "retreating",
|
|
22483
22487
|
};
|
|
22484
22488
|
return (hAsync("div", { class: frameDirectionClasses }, hAsync("slot", null)));
|
|
22485
22489
|
}
|
|
@@ -22501,7 +22505,7 @@ class Flow {
|
|
|
22501
22505
|
}; }
|
|
22502
22506
|
}
|
|
22503
22507
|
|
|
22504
|
-
const CSS$
|
|
22508
|
+
const CSS$L = {
|
|
22505
22509
|
actionBarContainer: "action-bar-container",
|
|
22506
22510
|
backButton: "back-button",
|
|
22507
22511
|
container: "container",
|
|
@@ -22525,7 +22529,7 @@ const ICONS$a = {
|
|
|
22525
22529
|
backLeft: "chevron-left",
|
|
22526
22530
|
backRight: "chevron-right",
|
|
22527
22531
|
};
|
|
22528
|
-
const SLOTS$
|
|
22532
|
+
const SLOTS$n = {
|
|
22529
22533
|
actionBar: "action-bar",
|
|
22530
22534
|
headerActionsStart: "header-actions-start",
|
|
22531
22535
|
headerActionsEnd: "header-actions-end",
|
|
@@ -22536,14 +22540,14 @@ const SLOTS$m = {
|
|
|
22536
22540
|
footerActions: "footer-actions",
|
|
22537
22541
|
};
|
|
22538
22542
|
|
|
22539
|
-
const CSS$
|
|
22543
|
+
const CSS$K = {
|
|
22540
22544
|
backButton: "back-button",
|
|
22541
22545
|
};
|
|
22542
22546
|
const ICONS$9 = {
|
|
22543
22547
|
backLeft: "chevron-left",
|
|
22544
22548
|
backRight: "chevron-right",
|
|
22545
22549
|
};
|
|
22546
|
-
const SLOTS$
|
|
22550
|
+
const SLOTS$m = {
|
|
22547
22551
|
actionBar: "action-bar",
|
|
22548
22552
|
headerActionsStart: "header-actions-start",
|
|
22549
22553
|
headerActionsEnd: "header-actions-end",
|
|
@@ -22684,7 +22688,7 @@ class FlowItem {
|
|
|
22684
22688
|
const { showBackButton, backButtonClick, messages } = this;
|
|
22685
22689
|
const label = messages.back;
|
|
22686
22690
|
const icon = rtl ? ICONS$9.backRight : ICONS$9.backLeft;
|
|
22687
|
-
return showBackButton ? (hAsync("calcite-action", { "aria-label": label, class: CSS$
|
|
22691
|
+
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
22692
|
// eslint-disable-next-line react/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
22693
|
ref: this.setBackRef })) : null;
|
|
22690
22694
|
}
|
|
@@ -22692,7 +22696,7 @@ class FlowItem {
|
|
|
22692
22696
|
const { closable, closed, description, disabled, heading, headingLevel, loading, menuOpen, messages, } = this;
|
|
22693
22697
|
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
22698
|
// eslint-disable-next-line react/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$
|
|
22699
|
+
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
22700
|
}
|
|
22697
22701
|
static get assetsDirs() { return ["assets"]; }
|
|
22698
22702
|
get el() { return getElement(this); }
|
|
@@ -22948,7 +22952,7 @@ class Graph {
|
|
|
22948
22952
|
}; }
|
|
22949
22953
|
}
|
|
22950
22954
|
|
|
22951
|
-
const CSS$
|
|
22955
|
+
const CSS$J = {
|
|
22952
22956
|
handle: "handle",
|
|
22953
22957
|
handleActivated: "handle--activated",
|
|
22954
22958
|
};
|
|
@@ -23071,7 +23075,7 @@ class Handle {
|
|
|
23071
23075
|
render() {
|
|
23072
23076
|
return (
|
|
23073
23077
|
// 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$
|
|
23078
|
+
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
23079
|
// eslint-disable-next-line react/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
23080
|
ref: (el) => {
|
|
23077
23081
|
this.handleButton = el;
|
|
@@ -23110,7 +23114,7 @@ class Handle {
|
|
|
23110
23114
|
}; }
|
|
23111
23115
|
}
|
|
23112
23116
|
|
|
23113
|
-
const CSS$
|
|
23117
|
+
const CSS$I = {
|
|
23114
23118
|
icon: "icon",
|
|
23115
23119
|
flipRtl: "flip-rtl",
|
|
23116
23120
|
};
|
|
@@ -23158,7 +23162,7 @@ class Icon {
|
|
|
23158
23162
|
const semantic = !!textLabel;
|
|
23159
23163
|
const paths = [].concat(pathData || "");
|
|
23160
23164
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(!semantic), "aria-label": semantic ? textLabel : null, role: semantic ? "img" : null }, hAsync("svg", { "aria-hidden": "true", class: {
|
|
23161
|
-
[CSS$
|
|
23165
|
+
[CSS$I.flipRtl]: dir === "rtl" && flipRtl,
|
|
23162
23166
|
svg: true,
|
|
23163
23167
|
}, 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
23168
|
}
|
|
@@ -23204,7 +23208,7 @@ class Icon {
|
|
|
23204
23208
|
}; }
|
|
23205
23209
|
}
|
|
23206
23210
|
|
|
23207
|
-
const CSS$
|
|
23211
|
+
const CSS$H = {
|
|
23208
23212
|
wrapper: "wrapper",
|
|
23209
23213
|
confirmChangesButton: "confirm-changes-button",
|
|
23210
23214
|
cancelEditingButton: "cancel-editing-button",
|
|
@@ -23354,16 +23358,16 @@ class InlineEditable {
|
|
|
23354
23358
|
updateHostInteraction(this);
|
|
23355
23359
|
}
|
|
23356
23360
|
render() {
|
|
23357
|
-
return (hAsync("div", { class: CSS$
|
|
23361
|
+
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
23362
|
opacity: this.editingEnabled ? "0" : "1",
|
|
23359
23363
|
width: this.editingEnabled ? "0" : "inherit",
|
|
23360
23364
|
}, type: "button",
|
|
23361
23365
|
// eslint-disable-next-line react/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
23366
|
ref: (el) => (this.enableEditingButton = el) }), this.shouldShowControls && [
|
|
23363
|
-
hAsync("div", { class: CSS$
|
|
23367
|
+
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
23368
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
23365
23369
|
ref: (el) => (this.cancelEditingButton = el) })),
|
|
23366
|
-
hAsync("calcite-button", { appearance: "solid", class: CSS$
|
|
23370
|
+
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
23371
|
// eslint-disable-next-line react/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
23372
|
ref: (el) => (this.confirmEditingButton = el) }),
|
|
23369
23373
|
])));
|
|
@@ -23449,7 +23453,7 @@ class InlineEditable {
|
|
|
23449
23453
|
}; }
|
|
23450
23454
|
}
|
|
23451
23455
|
|
|
23452
|
-
const CSS$
|
|
23456
|
+
const CSS$G = {
|
|
23453
23457
|
loader: "loader",
|
|
23454
23458
|
clearButton: "clear-button",
|
|
23455
23459
|
editingEnabled: "editing-enabled",
|
|
@@ -23473,7 +23477,7 @@ const INPUT_TYPE_ICONS = {
|
|
|
23473
23477
|
time: "clock",
|
|
23474
23478
|
search: "search",
|
|
23475
23479
|
};
|
|
23476
|
-
const SLOTS$
|
|
23480
|
+
const SLOTS$l = {
|
|
23477
23481
|
action: "action",
|
|
23478
23482
|
};
|
|
23479
23483
|
|
|
@@ -24033,38 +24037,38 @@ class Input {
|
|
|
24033
24037
|
// --------------------------------------------------------------------------
|
|
24034
24038
|
render() {
|
|
24035
24039
|
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$
|
|
24040
|
+
const loader = (hAsync("div", { class: CSS$G.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
24041
|
+
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" })));
|
|
24042
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$G.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
24039
24043
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
24040
24044
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24041
|
-
[CSS$
|
|
24042
|
-
[CSS$
|
|
24045
|
+
[CSS$G.numberButtonItem]: true,
|
|
24046
|
+
[CSS$G.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24043
24047
|
}, "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
24048
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
24045
|
-
[CSS$
|
|
24046
|
-
[CSS$
|
|
24049
|
+
[CSS$G.numberButtonItem]: true,
|
|
24050
|
+
[CSS$G.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
24047
24051
|
}, "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$
|
|
24052
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$G.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
24053
|
+
const prefixText = hAsync("div", { class: CSS$G.prefix }, this.prefixText);
|
|
24054
|
+
const suffixText = hAsync("div", { class: CSS$G.suffix }, this.suffixText);
|
|
24051
24055
|
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
24056
|
// eslint-disable-next-line react/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
24057
|
ref: this.setChildNumberElRef })) : null;
|
|
24054
24058
|
const childEl = this.type !== "number"
|
|
24055
24059
|
? [
|
|
24056
24060
|
hAsync(this.childElType, { accept: this.accept, "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
24057
|
-
[CSS$
|
|
24058
|
-
[CSS$
|
|
24061
|
+
[CSS$G.editingEnabled]: this.editingEnabled,
|
|
24062
|
+
[CSS$G.inlineChild]: !!this.inlineEditableEl,
|
|
24059
24063
|
}, 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
24064
|
// eslint-disable-next-line react/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
24065
|
ref: this.setChildElRef }),
|
|
24062
|
-
this.isTextarea ? (hAsync("div", { class: CSS$
|
|
24066
|
+
this.isTextarea ? (hAsync("div", { class: CSS$G.resizeIconWrapper }, hAsync("calcite-icon", { icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" }))) : null,
|
|
24063
24067
|
]
|
|
24064
24068
|
: null;
|
|
24065
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
24069
|
+
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
24070
|
? numberButtonsHorizontalDown
|
|
24067
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
24071
|
+
: 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
24072
|
? numberButtonsVertical
|
|
24069
24073
|
: null, this.suffixText ? suffixText : null, this.type === "number" && this.numberButtonType === "horizontal" && !this.readOnly
|
|
24070
24074
|
? numberButtonsHorizontalUp
|
|
@@ -24139,7 +24143,7 @@ class Input {
|
|
|
24139
24143
|
}; }
|
|
24140
24144
|
}
|
|
24141
24145
|
|
|
24142
|
-
const CSS$
|
|
24146
|
+
const CSS$F = {
|
|
24143
24147
|
assistiveText: "assistive-text",
|
|
24144
24148
|
menu: "menu-container",
|
|
24145
24149
|
menuActive: "menu-container--active",
|
|
@@ -25325,12 +25329,12 @@ class InputDatePicker {
|
|
|
25325
25329
|
const valueIsArray = Array.isArray(valueAsDate);
|
|
25326
25330
|
const newStartDate = valueIsArray ? valueAsDate[0] : null;
|
|
25327
25331
|
let newStartDateISO = valueIsArray ? dateToISO(newStartDate) : "";
|
|
25328
|
-
if (newStartDateISO
|
|
25332
|
+
if (newStartDateISO) {
|
|
25329
25333
|
newStartDateISO = this.getNormalizedDate(newStartDateISO);
|
|
25330
25334
|
}
|
|
25331
25335
|
const newEndDate = valueIsArray ? valueAsDate[1] : null;
|
|
25332
25336
|
let newEndDateISO = valueIsArray ? dateToISO(newEndDate) : "";
|
|
25333
|
-
if (newEndDateISO
|
|
25337
|
+
if (newEndDateISO) {
|
|
25334
25338
|
newEndDateISO = this.getNormalizedDate(newEndDateISO);
|
|
25335
25339
|
}
|
|
25336
25340
|
const newValue = newStartDateISO || newEndDateISO ? [newStartDateISO, newEndDateISO] : "";
|
|
@@ -25359,9 +25363,7 @@ class InputDatePicker {
|
|
|
25359
25363
|
}
|
|
25360
25364
|
const oldValue = this.value;
|
|
25361
25365
|
let newValue = dateToISO(value);
|
|
25362
|
-
|
|
25363
|
-
newValue = this.getNormalizedDate(newValue);
|
|
25364
|
-
}
|
|
25366
|
+
newValue = this.getNormalizedDate(newValue);
|
|
25365
25367
|
if (newValue === oldValue) {
|
|
25366
25368
|
return;
|
|
25367
25369
|
}
|
|
@@ -25407,7 +25409,6 @@ class InputDatePicker {
|
|
|
25407
25409
|
this.max = undefined;
|
|
25408
25410
|
this.open = false;
|
|
25409
25411
|
this.name = undefined;
|
|
25410
|
-
this.normalizeYear = false;
|
|
25411
25412
|
this.numberingSystem = undefined;
|
|
25412
25413
|
this.scale = "m";
|
|
25413
25414
|
this.placement = defaultMenuPlacement;
|
|
@@ -25437,17 +25438,9 @@ class InputDatePicker {
|
|
|
25437
25438
|
if (!this.userChangedValue) {
|
|
25438
25439
|
let newValueAsDate;
|
|
25439
25440
|
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
25441
|
newValueAsDate = getValueAsDateRange(newValue);
|
|
25445
25442
|
}
|
|
25446
25443
|
else if (newValue) {
|
|
25447
|
-
if (isTwoDigitYear(newValue)) {
|
|
25448
|
-
this.value = this.getNormalizedDate(newValue);
|
|
25449
|
-
return;
|
|
25450
|
-
}
|
|
25451
25444
|
newValueAsDate = dateFromISO(newValue);
|
|
25452
25445
|
}
|
|
25453
25446
|
else {
|
|
@@ -25549,18 +25542,10 @@ class InputDatePicker {
|
|
|
25549
25542
|
const { open } = this;
|
|
25550
25543
|
open && this.openHandler(open);
|
|
25551
25544
|
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
25545
|
this.valueAsDate = getValueAsDateRange(this.value);
|
|
25557
25546
|
}
|
|
25558
25547
|
else if (this.value) {
|
|
25559
25548
|
try {
|
|
25560
|
-
if (isTwoDigitYear(this.value)) {
|
|
25561
|
-
this.value = this.getNormalizedDate(this.value);
|
|
25562
|
-
return;
|
|
25563
|
-
}
|
|
25564
25549
|
this.valueAsDate = dateFromISO(this.value);
|
|
25565
25550
|
}
|
|
25566
25551
|
catch (error) {
|
|
@@ -25625,9 +25610,9 @@ class InputDatePicker {
|
|
|
25625
25610
|
// eslint-disable-next-line react/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
25611
|
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
25612
|
// eslint-disable-next-line react/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$
|
|
25613
|
+
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: {
|
|
25614
|
+
[CSS$F.menu]: true,
|
|
25615
|
+
[CSS$F.menuActive]: this.open,
|
|
25631
25616
|
}, id: this.dialogId, role: "dialog",
|
|
25632
25617
|
// eslint-disable-next-line react/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
25618
|
ref: this.setFloatingEl }, hAsync("div", { class: {
|
|
@@ -25649,7 +25634,7 @@ class InputDatePicker {
|
|
|
25649
25634
|
ref: this.setEndInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "end"))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
25650
25635
|
}
|
|
25651
25636
|
renderToggleIcon(open) {
|
|
25652
|
-
return (hAsync("span", { class: CSS$
|
|
25637
|
+
return (hAsync("span", { class: CSS$F.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
25653
25638
|
}
|
|
25654
25639
|
setReferenceEl() {
|
|
25655
25640
|
const { focusedInput, layout, endWrapper, startWrapper } = this;
|
|
@@ -25773,7 +25758,7 @@ class InputDatePicker {
|
|
|
25773
25758
|
if (!value) {
|
|
25774
25759
|
return "";
|
|
25775
25760
|
}
|
|
25776
|
-
if (!
|
|
25761
|
+
if (!isTwoDigitYear(value)) {
|
|
25777
25762
|
return value;
|
|
25778
25763
|
}
|
|
25779
25764
|
const { day, month, year } = datePartsFromISO(value);
|
|
@@ -25820,7 +25805,6 @@ class InputDatePicker {
|
|
|
25820
25805
|
"max": [1],
|
|
25821
25806
|
"open": [1540],
|
|
25822
25807
|
"name": [513],
|
|
25823
|
-
"normalizeYear": [516, "normalize-year"],
|
|
25824
25808
|
"numberingSystem": [513, "numbering-system"],
|
|
25825
25809
|
"scale": [513],
|
|
25826
25810
|
"placement": [513],
|
|
@@ -25839,7 +25823,7 @@ class InputDatePicker {
|
|
|
25839
25823
|
},
|
|
25840
25824
|
"$listeners$": [[0, "calciteDaySelect", "calciteDaySelectHandler"]],
|
|
25841
25825
|
"$lazyBundleId$": "-",
|
|
25842
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["form", "form"], ["readOnly", "read-only"], ["headingLevel", "heading-level"], ["open", "open"], ["name", "name"], ["
|
|
25826
|
+
"$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
25827
|
}; }
|
|
25844
25828
|
}
|
|
25845
25829
|
|
|
@@ -25909,7 +25893,7 @@ class InputMessage {
|
|
|
25909
25893
|
}; }
|
|
25910
25894
|
}
|
|
25911
25895
|
|
|
25912
|
-
const CSS$
|
|
25896
|
+
const CSS$E = {
|
|
25913
25897
|
loader: "loader",
|
|
25914
25898
|
clearButton: "clear-button",
|
|
25915
25899
|
editingEnabled: "editing-enabled",
|
|
@@ -25925,7 +25909,7 @@ const CSS$B = {
|
|
|
25925
25909
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
25926
25910
|
numberButtonItem: "number-button-item",
|
|
25927
25911
|
};
|
|
25928
|
-
const SLOTS$
|
|
25912
|
+
const SLOTS$k = {
|
|
25929
25913
|
action: "action",
|
|
25930
25914
|
};
|
|
25931
25915
|
|
|
@@ -26418,27 +26402,27 @@ class InputNumber {
|
|
|
26418
26402
|
// --------------------------------------------------------------------------
|
|
26419
26403
|
render() {
|
|
26420
26404
|
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$
|
|
26405
|
+
const loader = (hAsync("div", { class: CSS$E.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26406
|
+
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" })));
|
|
26407
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$E.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
26424
26408
|
const isHorizontalNumberButton = this.numberButtonType === "horizontal";
|
|
26425
26409
|
const numberButtonsHorizontalUp = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26426
|
-
[CSS$
|
|
26427
|
-
[CSS$
|
|
26410
|
+
[CSS$E.numberButtonItem]: true,
|
|
26411
|
+
[CSS$E.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26428
26412
|
}, "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
26413
|
const numberButtonsHorizontalDown = (hAsync("button", { "aria-hidden": "true", class: {
|
|
26430
|
-
[CSS$
|
|
26431
|
-
[CSS$
|
|
26414
|
+
[CSS$E.numberButtonItem]: true,
|
|
26415
|
+
[CSS$E.buttonItemHorizontal]: isHorizontalNumberButton,
|
|
26432
26416
|
}, "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$
|
|
26417
|
+
const numberButtonsVertical = (hAsync("div", { class: CSS$E.numberButtonWrapper }, numberButtonsHorizontalUp, numberButtonsHorizontalDown));
|
|
26418
|
+
const prefixText = hAsync("div", { class: CSS$E.prefix }, this.prefixText);
|
|
26419
|
+
const suffixText = hAsync("div", { class: CSS$E.suffix }, this.suffixText);
|
|
26436
26420
|
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
26421
|
// eslint-disable-next-line react/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
26422
|
ref: this.setChildNumberElRef }));
|
|
26439
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26423
|
+
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
26424
|
? numberButtonsHorizontalDown
|
|
26441
|
-
: null, this.prefixText ? prefixText : null, hAsync("div", { class: CSS$
|
|
26425
|
+
: 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
26426
|
? numberButtonsHorizontalUp
|
|
26443
26427
|
: null, hAsync(HiddenFormInputSlot, { component: this }))));
|
|
26444
26428
|
}
|
|
@@ -26505,7 +26489,7 @@ class InputNumber {
|
|
|
26505
26489
|
}; }
|
|
26506
26490
|
}
|
|
26507
26491
|
|
|
26508
|
-
const CSS$
|
|
26492
|
+
const CSS$D = {
|
|
26509
26493
|
loader: "loader",
|
|
26510
26494
|
clearButton: "clear-button",
|
|
26511
26495
|
editingEnabled: "editing-enabled",
|
|
@@ -26518,7 +26502,7 @@ const CSS$A = {
|
|
|
26518
26502
|
actionWrapper: "action-wrapper",
|
|
26519
26503
|
resizeIconWrapper: "resize-icon-wrapper",
|
|
26520
26504
|
};
|
|
26521
|
-
const SLOTS$
|
|
26505
|
+
const SLOTS$j = {
|
|
26522
26506
|
action: "action",
|
|
26523
26507
|
};
|
|
26524
26508
|
|
|
@@ -26805,18 +26789,18 @@ class InputText {
|
|
|
26805
26789
|
// --------------------------------------------------------------------------
|
|
26806
26790
|
render() {
|
|
26807
26791
|
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$
|
|
26792
|
+
const loader = (hAsync("div", { class: CSS$D.loader }, hAsync("calcite-progress", { label: this.messages.loading, type: "indeterminate" })));
|
|
26793
|
+
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" })));
|
|
26794
|
+
const iconEl = (hAsync("calcite-icon", { class: CSS$D.inputIcon, flipRtl: this.iconFlipRtl, icon: this.requestedIcon, scale: this.scale === "l" ? "m" : "s" }));
|
|
26795
|
+
const prefixText = hAsync("div", { class: CSS$D.prefix }, this.prefixText);
|
|
26796
|
+
const suffixText = hAsync("div", { class: CSS$D.suffix }, this.suffixText);
|
|
26813
26797
|
const childEl = (hAsync("input", { "aria-label": getLabelText(this), autocomplete: this.autocomplete, autofocus: this.autofocus ? true : null, class: {
|
|
26814
|
-
[CSS$
|
|
26815
|
-
[CSS$
|
|
26798
|
+
[CSS$D.editingEnabled]: this.editingEnabled,
|
|
26799
|
+
[CSS$D.inlineChild]: !!this.inlineEditableEl,
|
|
26816
26800
|
}, 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
26801
|
// eslint-disable-next-line react/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
26802
|
ref: this.setChildElRef }));
|
|
26819
|
-
return (hAsync(Host, { onClick: this.clickHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: { [CSS$
|
|
26803
|
+
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
26804
|
}
|
|
26821
26805
|
static get assetsDirs() { return ["assets"]; }
|
|
26822
26806
|
get el() { return getElement(this); }
|
|
@@ -27132,7 +27116,7 @@ function toISOTimeString(value, includeSeconds = true) {
|
|
|
27132
27116
|
return isoTimeString;
|
|
27133
27117
|
}
|
|
27134
27118
|
|
|
27135
|
-
const CSS$
|
|
27119
|
+
const CSS$C = {
|
|
27136
27120
|
toggleIcon: "toggle-icon",
|
|
27137
27121
|
};
|
|
27138
27122
|
|
|
@@ -28905,7 +28889,7 @@ class InputTimePicker {
|
|
|
28905
28889
|
ref: this.setCalciteTimePickerEl })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
28906
28890
|
}
|
|
28907
28891
|
renderToggleIcon(open) {
|
|
28908
|
-
return (hAsync("span", { class: CSS$
|
|
28892
|
+
return (hAsync("span", { class: CSS$C.toggleIcon }, hAsync("calcite-icon", { icon: open ? "chevron-up" : "chevron-down", scale: "s" })));
|
|
28909
28893
|
}
|
|
28910
28894
|
static get delegatesFocus() { return true; }
|
|
28911
28895
|
static get assetsDirs() { return ["assets"]; }
|
|
@@ -29149,7 +29133,7 @@ class InputTimeZone {
|
|
|
29149
29133
|
}; }
|
|
29150
29134
|
}
|
|
29151
29135
|
|
|
29152
|
-
const CSS$
|
|
29136
|
+
const CSS$B = {
|
|
29153
29137
|
container: "container",
|
|
29154
29138
|
};
|
|
29155
29139
|
|
|
@@ -29189,7 +29173,7 @@ class Label {
|
|
|
29189
29173
|
document.dispatchEvent(new CustomEvent(labelDisconnectedEvent));
|
|
29190
29174
|
}
|
|
29191
29175
|
render() {
|
|
29192
|
-
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$
|
|
29176
|
+
return (hAsync(Host, { onClick: this.labelClickHandler }, hAsync("div", { class: CSS$B.container }, hAsync("slot", null))));
|
|
29193
29177
|
}
|
|
29194
29178
|
get el() { return getElement(this); }
|
|
29195
29179
|
static get style() { return labelCss; }
|
|
@@ -29324,7 +29308,7 @@ class Link {
|
|
|
29324
29308
|
}; }
|
|
29325
29309
|
}
|
|
29326
29310
|
|
|
29327
|
-
const CSS$
|
|
29311
|
+
const CSS$A = {
|
|
29328
29312
|
container: "container",
|
|
29329
29313
|
containerBorderSelected: "container--border-selected",
|
|
29330
29314
|
containerBorderUnselected: "container--border-unselected",
|
|
@@ -29345,7 +29329,7 @@ const CSS$x = {
|
|
|
29345
29329
|
openContainer: "open-container",
|
|
29346
29330
|
dragContainer: "drag-container",
|
|
29347
29331
|
};
|
|
29348
|
-
const SLOTS$
|
|
29332
|
+
const SLOTS$i = {
|
|
29349
29333
|
actionsStart: "actions-start",
|
|
29350
29334
|
contentStart: "content-start",
|
|
29351
29335
|
content: "content",
|
|
@@ -29391,7 +29375,7 @@ function getDepth(element, includeGroup = false) {
|
|
|
29391
29375
|
}
|
|
29392
29376
|
}
|
|
29393
29377
|
|
|
29394
|
-
const CSS$
|
|
29378
|
+
const CSS$z = {
|
|
29395
29379
|
container: "container",
|
|
29396
29380
|
table: "table",
|
|
29397
29381
|
scrim: "scrim",
|
|
@@ -29401,7 +29385,7 @@ const CSS$w = {
|
|
|
29401
29385
|
assistiveText: "assistive-text",
|
|
29402
29386
|
};
|
|
29403
29387
|
const debounceTimeout = 0;
|
|
29404
|
-
const SLOTS$
|
|
29388
|
+
const SLOTS$h = {
|
|
29405
29389
|
filterActionsStart: "filter-actions-start",
|
|
29406
29390
|
filterActionsEnd: "filter-actions-end",
|
|
29407
29391
|
};
|
|
@@ -32502,7 +32486,7 @@ function onSortingEnd(activeComponent) {
|
|
|
32502
32486
|
getNestedSortableComponents(activeComponent).forEach((component) => inactiveSortableComponentSet.delete(component));
|
|
32503
32487
|
}
|
|
32504
32488
|
|
|
32505
|
-
const CSS$
|
|
32489
|
+
const CSS$y = {
|
|
32506
32490
|
container: "container",
|
|
32507
32491
|
actionsStart: "actions-start",
|
|
32508
32492
|
contentStart: "content-start",
|
|
@@ -32510,7 +32494,7 @@ const CSS$v = {
|
|
|
32510
32494
|
contentEnd: "content-end",
|
|
32511
32495
|
actionsEnd: "actions-end",
|
|
32512
32496
|
};
|
|
32513
|
-
const SLOTS$
|
|
32497
|
+
const SLOTS$g = {
|
|
32514
32498
|
actionsStart: "actions-start",
|
|
32515
32499
|
contentStart: "content-start",
|
|
32516
32500
|
contentEnd: "content-end",
|
|
@@ -32825,9 +32809,9 @@ class List$1 {
|
|
|
32825
32809
|
// --------------------------------------------------------------------------
|
|
32826
32810
|
render() {
|
|
32827
32811
|
const { loading, label, disabled, dataForFilter, filterEnabled, filterPlaceholder, filterText, hasFilterActionsStart, hasFilterActionsEnd, } = this;
|
|
32828
|
-
return (hAsync("div", { class: CSS$
|
|
32812
|
+
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
32813
|
// eslint-disable-next-line react/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$
|
|
32814
|
+
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
32815
|
}
|
|
32832
32816
|
// --------------------------------------------------------------------------
|
|
32833
32817
|
//
|
|
@@ -33242,47 +33226,47 @@ class ListItem {
|
|
|
33242
33226
|
if (selectionMode === "none" || selectionAppearance === "border") {
|
|
33243
33227
|
return null;
|
|
33244
33228
|
}
|
|
33245
|
-
return (hAsync("td", { class: CSS$
|
|
33229
|
+
return (hAsync("td", { class: CSS$A.selectionContainer, key: "selection-container", onClick: this.itemClicked }, hAsync("calcite-icon", { icon: selected
|
|
33246
33230
|
? selectionMode === "multiple"
|
|
33247
33231
|
? ICONS$7.selectedMultiple
|
|
33248
33232
|
: ICONS$7.selectedSingle
|
|
33249
33233
|
: ICONS$7.unselected, scale: "s" })));
|
|
33250
33234
|
}
|
|
33251
33235
|
renderDragHandle() {
|
|
33252
|
-
return this.dragHandle ? (hAsync("td", { class: CSS$
|
|
33236
|
+
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
33237
|
}
|
|
33254
33238
|
renderOpen() {
|
|
33255
33239
|
const { el, open, openable, parentListEl } = this;
|
|
33256
33240
|
const dir = getElementDir(el);
|
|
33257
|
-
return openable ? (hAsync("td", { class: CSS$
|
|
33241
|
+
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
33242
|
}
|
|
33259
33243
|
renderActionsStart() {
|
|
33260
33244
|
const { label, hasActionsStart } = this;
|
|
33261
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
33245
|
+
return (hAsync("td", { "aria-label": label, class: CSS$A.actionsStart, hidden: !hasActionsStart, key: "actions-start-container", role: "gridcell",
|
|
33262
33246
|
// eslint-disable-next-line react/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$
|
|
33247
|
+
ref: (el) => (this.actionsStartEl = el) }, hAsync("slot", { name: SLOTS$i.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
33264
33248
|
}
|
|
33265
33249
|
renderActionsEnd() {
|
|
33266
33250
|
const { label, hasActionsEnd, closable, messages } = this;
|
|
33267
|
-
return (hAsync("td", { "aria-label": label, class: CSS$
|
|
33251
|
+
return (hAsync("td", { "aria-label": label, class: CSS$A.actionsEnd, hidden: !(hasActionsEnd || closable), key: "actions-end-container", role: "gridcell",
|
|
33268
33252
|
// eslint-disable-next-line react/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$
|
|
33253
|
+
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
33254
|
}
|
|
33271
33255
|
renderContentStart() {
|
|
33272
33256
|
const { hasContentStart } = this;
|
|
33273
|
-
return (hAsync("div", { class: CSS$
|
|
33257
|
+
return (hAsync("div", { class: CSS$A.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$i.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
33274
33258
|
}
|
|
33275
33259
|
renderCustomContent() {
|
|
33276
33260
|
const { hasCustomContent } = this;
|
|
33277
|
-
return (hAsync("div", { class: CSS$
|
|
33261
|
+
return (hAsync("div", { class: CSS$A.customContent, hidden: !hasCustomContent }, hAsync("slot", { name: SLOTS$i.content, onSlotchange: this.handleContentSlotChange })));
|
|
33278
33262
|
}
|
|
33279
33263
|
renderContentEnd() {
|
|
33280
33264
|
const { hasContentEnd } = this;
|
|
33281
|
-
return (hAsync("div", { class: CSS$
|
|
33265
|
+
return (hAsync("div", { class: CSS$A.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$i.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
33282
33266
|
}
|
|
33283
33267
|
renderContentProperties() {
|
|
33284
33268
|
const { label, description, hasCustomContent } = this;
|
|
33285
|
-
return !hasCustomContent && (!!label || !!description) ? (hAsync("div", { class: CSS$
|
|
33269
|
+
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
33270
|
}
|
|
33287
33271
|
renderContentContainer() {
|
|
33288
33272
|
const { description, label, selectionMode, hasCustomContent } = this;
|
|
@@ -33294,9 +33278,9 @@ class ListItem {
|
|
|
33294
33278
|
this.renderContentEnd(),
|
|
33295
33279
|
];
|
|
33296
33280
|
return (hAsync("td", { "aria-label": label, class: {
|
|
33297
|
-
[CSS$
|
|
33298
|
-
[CSS$
|
|
33299
|
-
[CSS$
|
|
33281
|
+
[CSS$A.contentContainer]: true,
|
|
33282
|
+
[CSS$A.contentContainerSelectable]: selectionMode !== "none",
|
|
33283
|
+
[CSS$A.contentContainerHasCenterContent]: hasCenterContent,
|
|
33300
33284
|
}, key: "content-container", onClick: this.itemClicked, role: "gridcell",
|
|
33301
33285
|
// eslint-disable-next-line react/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
33286
|
ref: (el) => (this.contentEl = el) }, content));
|
|
@@ -33307,14 +33291,14 @@ class ListItem {
|
|
|
33307
33291
|
const borderSelected = showBorder && selected;
|
|
33308
33292
|
const borderUnselected = showBorder && !selected;
|
|
33309
33293
|
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$
|
|
33294
|
+
[CSS$A.container]: true,
|
|
33295
|
+
[CSS$A.containerBorderSelected]: borderSelected,
|
|
33296
|
+
[CSS$A.containerBorderUnselected]: borderUnselected,
|
|
33313
33297
|
}, hidden: closed, onFocus: this.focusCellNull, onKeyDown: this.handleItemKeyDown, role: "row", style: { "--calcite-list-item-spacing-indent-multiplier": `${this.visualLevel}` }, tabIndex: active ? 0 : -1,
|
|
33314
33298
|
// eslint-disable-next-line react/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
33299
|
ref: (el) => (this.containerEl = el) }, this.renderDragHandle(), this.renderSelected(), this.renderOpen(), this.renderActionsStart(), this.renderContentContainer(), this.renderActionsEnd()), hAsync("div", { class: {
|
|
33316
|
-
[CSS$
|
|
33317
|
-
[CSS$
|
|
33300
|
+
[CSS$A.nestedContainer]: true,
|
|
33301
|
+
[CSS$A.nestedContainerHidden]: openable && !open,
|
|
33318
33302
|
} }, hAsync("slot", { onSlotchange: this.handleDefaultSlotChange, ref: (el) => (this.defaultSlotEl = el) }))));
|
|
33319
33303
|
}
|
|
33320
33304
|
// --------------------------------------------------------------------------
|
|
@@ -33404,7 +33388,7 @@ class ListItem {
|
|
|
33404
33388
|
}; }
|
|
33405
33389
|
}
|
|
33406
33390
|
|
|
33407
|
-
const CSS$
|
|
33391
|
+
const CSS$x = {
|
|
33408
33392
|
container: "container",
|
|
33409
33393
|
heading: "heading",
|
|
33410
33394
|
};
|
|
@@ -33453,7 +33437,7 @@ class ListItemGroup {
|
|
|
33453
33437
|
// --------------------------------------------------------------------------
|
|
33454
33438
|
render() {
|
|
33455
33439
|
const { heading, visualLevel } = this;
|
|
33456
|
-
return (hAsync(Host, null, hAsync("tr", { class: CSS$
|
|
33440
|
+
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
33441
|
}
|
|
33458
33442
|
get el() { return getElement(this); }
|
|
33459
33443
|
static get style() { return listItemGroupCss; }
|
|
@@ -33553,7 +33537,7 @@ class Loader {
|
|
|
33553
33537
|
}; }
|
|
33554
33538
|
}
|
|
33555
33539
|
|
|
33556
|
-
const CSS$
|
|
33540
|
+
const CSS$w = {
|
|
33557
33541
|
container: "container",
|
|
33558
33542
|
fill: "fill",
|
|
33559
33543
|
stepLine: "step-line",
|
|
@@ -33703,16 +33687,16 @@ class Meter {
|
|
|
33703
33687
|
const aboveHighest = value >= highest;
|
|
33704
33688
|
const belowHighest = value < highest;
|
|
33705
33689
|
if (!value || (!low && belowHighest) || belowLowest) {
|
|
33706
|
-
return CSS$
|
|
33690
|
+
return CSS$w.success;
|
|
33707
33691
|
}
|
|
33708
33692
|
else if (aboveLowest && belowHighest) {
|
|
33709
|
-
return CSS$
|
|
33693
|
+
return CSS$w.warning;
|
|
33710
33694
|
}
|
|
33711
33695
|
else if (aboveHighest) {
|
|
33712
|
-
return CSS$
|
|
33696
|
+
return CSS$w.danger;
|
|
33713
33697
|
}
|
|
33714
33698
|
else {
|
|
33715
|
-
return CSS$
|
|
33699
|
+
return CSS$w.success;
|
|
33716
33700
|
}
|
|
33717
33701
|
}
|
|
33718
33702
|
intersects(el1, el2) {
|
|
@@ -33726,7 +33710,7 @@ class Meter {
|
|
|
33726
33710
|
const minHighOverlap = this.intersects(minLabelEl, highLabelEl);
|
|
33727
33711
|
const minLowOverlap = this.intersects(minLabelEl, lowLabelEl);
|
|
33728
33712
|
const minMaxOverlap = this.intersects(minLabelEl, maxLabelEl);
|
|
33729
|
-
const hiddenClass = CSS$
|
|
33713
|
+
const hiddenClass = CSS$w.labelHidden;
|
|
33730
33714
|
if (lowLabelEl) {
|
|
33731
33715
|
if (minLowOverlap || lowMaxOverlap || lowHighOverlap) {
|
|
33732
33716
|
lowLabelEl.classList.add(hiddenClass);
|
|
@@ -33775,26 +33759,26 @@ class Meter {
|
|
|
33775
33759
|
renderMeterFill() {
|
|
33776
33760
|
const { currentPercent, fillType } = this;
|
|
33777
33761
|
const kindClass = this.getMeterKindCssClass();
|
|
33778
|
-
return (hAsync("div", { class: { [CSS$
|
|
33762
|
+
return (hAsync("div", { class: { [CSS$w.fill]: true, [kindClass]: fillType !== "single" }, style: { width: `${currentPercent}%` } }));
|
|
33779
33763
|
}
|
|
33780
33764
|
renderRangeLine(position) {
|
|
33781
33765
|
const style = { insetInlineStart: `${position}%` };
|
|
33782
|
-
return hAsync("div", { class: CSS$
|
|
33766
|
+
return hAsync("div", { class: CSS$w.stepLine, style: style });
|
|
33783
33767
|
}
|
|
33784
33768
|
renderValueLabel() {
|
|
33785
33769
|
const { currentPercent, valueLabelType, unitLabel, value } = this;
|
|
33786
33770
|
const label = this.formatLabel(valueLabelType === "percent" ? currentPercent / 100 : value || 0, valueLabelType);
|
|
33787
|
-
return (hAsync("div", { class: { [CSS$
|
|
33771
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelValue]: true }, key: "low-label-line",
|
|
33788
33772
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33789
|
-
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
33773
|
+
ref: (el) => (this.valueLabelEl = el) }, label, unitLabel && valueLabelType !== "percent" && (hAsync("span", { class: CSS$w.unitLabel }, "\u00A0", unitLabel))));
|
|
33790
33774
|
}
|
|
33791
33775
|
renderMinLabel() {
|
|
33792
33776
|
const { rangeLabelType, min, minPercent, unitLabel } = this;
|
|
33793
33777
|
const style = { insetInlineStart: `${minPercent}%` };
|
|
33794
33778
|
const labelMin = this.formatLabel(rangeLabelType === "percent" ? minPercent : min, rangeLabelType);
|
|
33795
|
-
return (hAsync("div", { class: { [CSS$
|
|
33779
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "min-label-line", style: style,
|
|
33796
33780
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33797
|
-
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$
|
|
33781
|
+
ref: (el) => (this.minLabelEl = el) }, labelMin, unitLabel && rangeLabelType !== "percent" && (hAsync("span", { class: CSS$w.unitLabel }, "\u00A0", unitLabel))));
|
|
33798
33782
|
}
|
|
33799
33783
|
renderLowLabel() {
|
|
33800
33784
|
const { rangeLabelType, low, lowPercent, highPercent, labelFlipProximity } = this;
|
|
@@ -33804,7 +33788,7 @@ class Meter {
|
|
|
33804
33788
|
const styleDefault = { insetInlineStart: `${lowPercent}%` };
|
|
33805
33789
|
const styleFlipped = { insetInlineEnd: `${100 - lowPercent}%` };
|
|
33806
33790
|
const style = (highPercent - lowPercent) / 100 < labelFlipProximity ? styleFlipped : styleDefault;
|
|
33807
|
-
return (hAsync("div", { class: { [CSS$
|
|
33791
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "low-label-line", style: style,
|
|
33808
33792
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33809
33793
|
ref: (el) => (this.lowLabelEl = el) }, label));
|
|
33810
33794
|
}
|
|
@@ -33816,7 +33800,7 @@ class Meter {
|
|
|
33816
33800
|
const styleDefault = { insetInlineStart: `${highPercent}%` };
|
|
33817
33801
|
const styleFlipped = { insetInlineEnd: `${100 - highPercent}%` };
|
|
33818
33802
|
const style = highPercent / 100 >= labelFlipMax ? styleFlipped : styleDefault;
|
|
33819
|
-
return (hAsync("div", { class: { [CSS$
|
|
33803
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "high-label-line", style: style,
|
|
33820
33804
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33821
33805
|
ref: (el) => (this.highLabelEl = el) }, label));
|
|
33822
33806
|
}
|
|
@@ -33824,7 +33808,7 @@ class Meter {
|
|
|
33824
33808
|
const { rangeLabelType, max, maxPercent } = this;
|
|
33825
33809
|
const style = { insetInlineEnd: `${100 - maxPercent}%` };
|
|
33826
33810
|
const labelMax = this.formatLabel(rangeLabelType === "percent" ? maxPercent / 100 : max, rangeLabelType);
|
|
33827
|
-
return (hAsync("div", { class: { [CSS$
|
|
33811
|
+
return (hAsync("div", { class: { [CSS$w.label]: true, [CSS$w.labelRange]: true }, key: "max-label-line", style: style,
|
|
33828
33812
|
// eslint-disable-next-line react/jsx-sort-props
|
|
33829
33813
|
ref: (el) => (this.maxLabelEl = el) }, labelMax));
|
|
33830
33814
|
}
|
|
@@ -33838,9 +33822,9 @@ class Meter {
|
|
|
33838
33822
|
? textUnitLabel
|
|
33839
33823
|
: undefined;
|
|
33840
33824
|
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$
|
|
33825
|
+
[CSS$w.container]: true,
|
|
33826
|
+
[CSS$w.stepsVisible]: rangeLabels,
|
|
33827
|
+
[CSS$w.valueVisible]: valueLabel,
|
|
33844
33828
|
[appearance]: appearance !== "outline-fill",
|
|
33845
33829
|
}, role: "meter",
|
|
33846
33830
|
// eslint-disable-next-line react/jsx-sort-props
|
|
@@ -33896,7 +33880,7 @@ class Meter {
|
|
|
33896
33880
|
}; }
|
|
33897
33881
|
}
|
|
33898
33882
|
|
|
33899
|
-
const CSS$
|
|
33883
|
+
const CSS$v = {
|
|
33900
33884
|
modal: "modal",
|
|
33901
33885
|
title: "title",
|
|
33902
33886
|
header: "header",
|
|
@@ -33923,7 +33907,7 @@ const CSS$s = {
|
|
|
33923
33907
|
const ICONS$6 = {
|
|
33924
33908
|
close: "x",
|
|
33925
33909
|
};
|
|
33926
|
-
const SLOTS$
|
|
33910
|
+
const SLOTS$f = {
|
|
33927
33911
|
content: "content",
|
|
33928
33912
|
contentBottom: "content-bottom",
|
|
33929
33913
|
contentTop: "content-top",
|
|
@@ -34008,7 +33992,7 @@ class Modal {
|
|
|
34008
33992
|
this.updateFocusTrapElements();
|
|
34009
33993
|
};
|
|
34010
33994
|
this.updateFooterVisibility = () => {
|
|
34011
|
-
this.hasFooter = !!getSlotted(this.el, [SLOTS$
|
|
33995
|
+
this.hasFooter = !!getSlotted(this.el, [SLOTS$f.back, SLOTS$f.primary, SLOTS$f.secondary]);
|
|
34012
33996
|
};
|
|
34013
33997
|
this.updateSizeCssVars = () => {
|
|
34014
33998
|
this.cssWidth = getComputedStyle(this.el).getPropertyValue("--calcite-modal-width");
|
|
@@ -34091,50 +34075,50 @@ class Modal {
|
|
|
34091
34075
|
}
|
|
34092
34076
|
render() {
|
|
34093
34077
|
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$
|
|
34078
|
+
[CSS$v.container]: true,
|
|
34079
|
+
[CSS$v.containerOpen]: this.opened,
|
|
34080
|
+
[CSS$v.slottedInShell]: this.slottedInShell,
|
|
34081
|
+
} }, hAsync("calcite-scrim", { class: CSS$v.scrim, onClick: this.handleOutsideClose }), this.renderStyle(), hAsync("div", { class: {
|
|
34082
|
+
[CSS$v.modal]: true,
|
|
34099
34083
|
},
|
|
34100
34084
|
// eslint-disable-next-line react/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$
|
|
34085
|
+
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: {
|
|
34086
|
+
[CSS$v.content]: true,
|
|
34087
|
+
[CSS$v.contentNoFooter]: !this.hasFooter,
|
|
34104
34088
|
},
|
|
34105
34089
|
// eslint-disable-next-line react/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$
|
|
34090
|
+
ref: (el) => (this.modalContent = el) }, hAsync("slot", { name: SLOTS$f.content })), this.renderContentBottom(), this.renderFooter()))));
|
|
34107
34091
|
}
|
|
34108
34092
|
renderFooter() {
|
|
34109
|
-
return this.hasFooter ? (hAsync("div", { class: CSS$
|
|
34093
|
+
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
34094
|
}
|
|
34111
34095
|
renderContentTop() {
|
|
34112
|
-
return (hAsync("div", { class: CSS$
|
|
34096
|
+
return (hAsync("div", { class: CSS$v.contentTop, hidden: !this.hasContentTop }, hAsync("slot", { name: SLOTS$f.contentTop, onSlotchange: this.contentTopSlotChangeHandler })));
|
|
34113
34097
|
}
|
|
34114
34098
|
renderContentBottom() {
|
|
34115
|
-
return (hAsync("div", { class: CSS$
|
|
34099
|
+
return (hAsync("div", { class: CSS$v.contentBottom, hidden: !this.hasContentBottom }, hAsync("slot", { name: SLOTS$f.contentBottom, onSlotchange: this.contentBottomSlotChangeHandler })));
|
|
34116
34100
|
}
|
|
34117
34101
|
renderCloseButton() {
|
|
34118
|
-
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34102
|
+
return !this.closeButtonDisabled ? (hAsync("button", { "aria-label": this.messages.close, class: CSS$v.close, key: "button", onClick: this.closeModal, title: this.messages.close,
|
|
34119
34103
|
// eslint-disable-next-line react/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
34104
|
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
34105
|
}
|
|
34122
34106
|
renderStyle() {
|
|
34123
34107
|
if (!this.fullscreen && (this.cssWidth || this.cssHeight)) {
|
|
34124
|
-
return (hAsync("style", null, `.${CSS$
|
|
34108
|
+
return (hAsync("style", null, `.${CSS$v.container} {
|
|
34125
34109
|
${this.docked && this.cssWidth ? `align-items: center !important;` : ""}
|
|
34126
34110
|
}
|
|
34127
|
-
.${CSS$
|
|
34111
|
+
.${CSS$v.modal} {
|
|
34128
34112
|
block-size: ${this.cssHeight ? this.cssHeight : "auto"} !important;
|
|
34129
34113
|
${this.cssWidth ? `inline-size: ${this.cssWidth} !important;` : ""}
|
|
34130
34114
|
${this.cssWidth ? `max-inline-size: ${this.cssWidth} !important;` : ""}
|
|
34131
34115
|
${this.docked ? `border-radius: var(--calcite-border-radius) !important;` : ""}
|
|
34132
34116
|
}
|
|
34133
34117
|
@media screen and (max-width: ${this.cssWidth}) {
|
|
34134
|
-
.${CSS$
|
|
34118
|
+
.${CSS$v.container} {
|
|
34135
34119
|
${this.docked ? `align-items: flex-end !important;` : ""}
|
|
34136
34120
|
}
|
|
34137
|
-
.${CSS$
|
|
34121
|
+
.${CSS$v.modal} {
|
|
34138
34122
|
max-block-size: 100% !important;
|
|
34139
34123
|
inline-size: 100% !important;
|
|
34140
34124
|
max-inline-size: 100% !important;
|
|
@@ -34201,20 +34185,20 @@ class Modal {
|
|
|
34201
34185
|
}
|
|
34202
34186
|
}
|
|
34203
34187
|
onBeforeOpen() {
|
|
34204
|
-
this.transitionEl.classList.add(CSS$
|
|
34188
|
+
this.transitionEl.classList.add(CSS$v.openingActive);
|
|
34205
34189
|
this.calciteModalBeforeOpen.emit();
|
|
34206
34190
|
}
|
|
34207
34191
|
onOpen() {
|
|
34208
|
-
this.transitionEl.classList.remove(CSS$
|
|
34192
|
+
this.transitionEl.classList.remove(CSS$v.openingIdle, CSS$v.openingActive);
|
|
34209
34193
|
this.calciteModalOpen.emit();
|
|
34210
34194
|
activateFocusTrap(this);
|
|
34211
34195
|
}
|
|
34212
34196
|
onBeforeClose() {
|
|
34213
|
-
this.transitionEl.classList.add(CSS$
|
|
34197
|
+
this.transitionEl.classList.add(CSS$v.closingActive);
|
|
34214
34198
|
this.calciteModalBeforeClose.emit();
|
|
34215
34199
|
}
|
|
34216
34200
|
onClose() {
|
|
34217
|
-
this.transitionEl.classList.remove(CSS$
|
|
34201
|
+
this.transitionEl.classList.remove(CSS$v.closingIdle, CSS$v.closingActive);
|
|
34218
34202
|
this.calciteModalClose.emit();
|
|
34219
34203
|
deactivateFocusTrap(this);
|
|
34220
34204
|
}
|
|
@@ -34224,11 +34208,11 @@ class Modal {
|
|
|
34224
34208
|
}
|
|
34225
34209
|
onToggleOpenCloseComponent(this);
|
|
34226
34210
|
if (value) {
|
|
34227
|
-
this.transitionEl?.classList.add(CSS$
|
|
34211
|
+
this.transitionEl?.classList.add(CSS$v.openingIdle);
|
|
34228
34212
|
this.openModal();
|
|
34229
34213
|
}
|
|
34230
34214
|
else {
|
|
34231
|
-
this.transitionEl?.classList.add(CSS$
|
|
34215
|
+
this.transitionEl?.classList.add(CSS$v.closingIdle);
|
|
34232
34216
|
this.closeModal();
|
|
34233
34217
|
}
|
|
34234
34218
|
}
|
|
@@ -34241,8 +34225,8 @@ class Modal {
|
|
|
34241
34225
|
this.el.addEventListener("calciteModalOpen", this.openEnd);
|
|
34242
34226
|
this.open = true;
|
|
34243
34227
|
this.opened = true;
|
|
34244
|
-
const titleEl = getSlotted(this.el, SLOTS$
|
|
34245
|
-
const contentEl = getSlotted(this.el, SLOTS$
|
|
34228
|
+
const titleEl = getSlotted(this.el, SLOTS$f.header);
|
|
34229
|
+
const contentEl = getSlotted(this.el, SLOTS$f.content);
|
|
34246
34230
|
this.titleId = ensureId(titleEl);
|
|
34247
34231
|
this.contentId = ensureId(contentEl);
|
|
34248
34232
|
if (!this.slottedInShell) {
|
|
@@ -34300,13 +34284,13 @@ class Modal {
|
|
|
34300
34284
|
}; }
|
|
34301
34285
|
}
|
|
34302
34286
|
|
|
34303
|
-
const SLOTS$
|
|
34287
|
+
const SLOTS$e = {
|
|
34304
34288
|
title: "title",
|
|
34305
34289
|
message: "message",
|
|
34306
34290
|
link: "link",
|
|
34307
34291
|
actionsEnd: "actions-end",
|
|
34308
34292
|
};
|
|
34309
|
-
const CSS$
|
|
34293
|
+
const CSS$u = {
|
|
34310
34294
|
actionsEnd: "actions-end",
|
|
34311
34295
|
close: "notice-close",
|
|
34312
34296
|
container: "container",
|
|
@@ -34385,11 +34369,11 @@ class Notice {
|
|
|
34385
34369
|
}
|
|
34386
34370
|
render() {
|
|
34387
34371
|
const { el } = this;
|
|
34388
|
-
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$
|
|
34372
|
+
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: CSS$u.close, onClick: this.close,
|
|
34389
34373
|
// eslint-disable-next-line react/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
34374
|
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$
|
|
34375
|
+
const hasActionEnd = getSlotted(el, SLOTS$e.actionsEnd);
|
|
34376
|
+
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
34377
|
}
|
|
34394
34378
|
//--------------------------------------------------------------------------
|
|
34395
34379
|
//
|
|
@@ -34568,7 +34552,7 @@ class OptionGroup {
|
|
|
34568
34552
|
}; }
|
|
34569
34553
|
}
|
|
34570
34554
|
|
|
34571
|
-
const CSS$
|
|
34555
|
+
const CSS$t = {
|
|
34572
34556
|
page: "page",
|
|
34573
34557
|
selected: "is-selected",
|
|
34574
34558
|
previous: "previous",
|
|
@@ -34726,8 +34710,8 @@ class Pagination {
|
|
|
34726
34710
|
const displayedPage = numberStringFormatter.localize(page.toString());
|
|
34727
34711
|
const selected = start === this.startItem;
|
|
34728
34712
|
return (hAsync("button", { "aria-current": selected ? "page" : "false", class: {
|
|
34729
|
-
[CSS$
|
|
34730
|
-
[CSS$
|
|
34713
|
+
[CSS$t.page]: true,
|
|
34714
|
+
[CSS$t.selected]: selected,
|
|
34731
34715
|
}, onClick: () => {
|
|
34732
34716
|
this.startItem = start;
|
|
34733
34717
|
this.emitUpdate();
|
|
@@ -34735,12 +34719,12 @@ class Pagination {
|
|
|
34735
34719
|
}
|
|
34736
34720
|
renderLeftEllipsis() {
|
|
34737
34721
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showLeftEllipsis()) {
|
|
34738
|
-
return hAsync("span", { class: `${CSS$
|
|
34722
|
+
return hAsync("span", { class: `${CSS$t.ellipsis} ${CSS$t.ellipsisStart}` }, "\u2026");
|
|
34739
34723
|
}
|
|
34740
34724
|
}
|
|
34741
34725
|
renderRightEllipsis() {
|
|
34742
34726
|
if (this.totalItems / this.pageSize > maxPagesDisplayed && this.showRightEllipsis()) {
|
|
34743
|
-
return hAsync("span", { class: `${CSS$
|
|
34727
|
+
return hAsync("span", { class: `${CSS$t.ellipsis} ${CSS$t.ellipsisEnd}` }, "\u2026");
|
|
34744
34728
|
}
|
|
34745
34729
|
}
|
|
34746
34730
|
render() {
|
|
@@ -34748,11 +34732,11 @@ class Pagination {
|
|
|
34748
34732
|
const prevDisabled = pageSize === 1 ? startItem <= pageSize : startItem < pageSize;
|
|
34749
34733
|
const nextDisabled = pageSize === 1 ? startItem + pageSize > totalItems : startItem + pageSize > totalItems;
|
|
34750
34734
|
return (hAsync(Fragment, null, hAsync("button", { "aria-label": this.messages.previous, class: {
|
|
34751
|
-
[CSS$
|
|
34752
|
-
[CSS$
|
|
34735
|
+
[CSS$t.previous]: true,
|
|
34736
|
+
[CSS$t.disabled]: prevDisabled,
|
|
34753
34737
|
}, 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$
|
|
34738
|
+
[CSS$t.next]: true,
|
|
34739
|
+
[CSS$t.disabled]: nextDisabled,
|
|
34756
34740
|
}, disabled: nextDisabled, onClick: this.nextClicked }, hAsync("calcite-icon", { flipRtl: true, icon: "chevronRight", scale: this.scale === "l" ? "m" : "s" }))));
|
|
34757
34741
|
}
|
|
34758
34742
|
static get delegatesFocus() { return true; }
|
|
@@ -34963,22 +34947,22 @@ class Panel {
|
|
|
34963
34947
|
// --------------------------------------------------------------------------
|
|
34964
34948
|
renderHeaderContent() {
|
|
34965
34949
|
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$
|
|
34950
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$L.heading, level: headingLevel }, heading)) : null;
|
|
34951
|
+
const descriptionNode = description ? hAsync("span", { class: CSS$L.description }, description) : null;
|
|
34952
|
+
return !hasHeaderContent && (headingNode || descriptionNode) ? (hAsync("div", { class: CSS$L.headerContent, key: "header-content" }, headingNode, descriptionNode)) : null;
|
|
34969
34953
|
}
|
|
34970
34954
|
renderActionBar() {
|
|
34971
|
-
return (hAsync("div", { class: CSS$
|
|
34955
|
+
return (hAsync("div", { class: CSS$L.actionBarContainer, hidden: !this.hasActionBar }, hAsync("slot", { name: SLOTS$n.actionBar, onSlotchange: this.handleActionBarSlotChange })));
|
|
34972
34956
|
}
|
|
34973
34957
|
/**
|
|
34974
34958
|
* Allows user to override the entire header-content node.
|
|
34975
34959
|
*/
|
|
34976
34960
|
renderHeaderSlottedContent() {
|
|
34977
|
-
return (hAsync("div", { class: CSS$
|
|
34961
|
+
return (hAsync("div", { class: CSS$L.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$n.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
|
34978
34962
|
}
|
|
34979
34963
|
renderHeaderStartActions() {
|
|
34980
34964
|
const { hasStartActions } = this;
|
|
34981
|
-
return (hAsync("div", { class: { [CSS$
|
|
34965
|
+
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
34966
|
}
|
|
34983
34967
|
renderHeaderActionsEnd() {
|
|
34984
34968
|
const { close, hasEndActions, messages, closable, hasMenuItems } = this;
|
|
@@ -34986,13 +34970,13 @@ class Panel {
|
|
|
34986
34970
|
const closableNode = closable ? (hAsync("calcite-action", { "aria-label": text, "data-test": "close", icon: ICONS$a.close, onClick: close, text: text, title: text,
|
|
34987
34971
|
// eslint-disable-next-line react/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
34972
|
ref: this.setCloseRef })) : null;
|
|
34989
|
-
const slotNode = (hAsync("slot", { name: SLOTS$
|
|
34973
|
+
const slotNode = (hAsync("slot", { name: SLOTS$n.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
34990
34974
|
const showContainer = hasEndActions || closableNode || hasMenuItems;
|
|
34991
|
-
return (hAsync("div", { class: { [CSS$
|
|
34975
|
+
return (hAsync("div", { class: { [CSS$L.headerActionsEnd]: true, [CSS$L.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, this.renderMenu(), closableNode));
|
|
34992
34976
|
}
|
|
34993
34977
|
renderMenu() {
|
|
34994
34978
|
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$
|
|
34979
|
+
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
34980
|
}
|
|
34997
34981
|
renderHeaderNode() {
|
|
34998
34982
|
const { hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems, hasActionBar, } = this;
|
|
@@ -35004,24 +34988,24 @@ class Panel {
|
|
|
35004
34988
|
closable ||
|
|
35005
34989
|
hasMenuItems;
|
|
35006
34990
|
this.showHeaderContent = showHeaderContent;
|
|
35007
|
-
return (hAsync("header", { class: CSS$
|
|
34991
|
+
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
34992
|
}
|
|
35009
34993
|
renderFooterNode() {
|
|
35010
34994
|
const { hasFooterContent, hasFooterActions } = this;
|
|
35011
34995
|
const showFooter = hasFooterContent || hasFooterActions;
|
|
35012
|
-
return (hAsync("footer", { class: CSS$
|
|
34996
|
+
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
34997
|
}
|
|
35014
34998
|
renderContent() {
|
|
35015
|
-
return (hAsync("div", { class: CSS$
|
|
34999
|
+
return (hAsync("div", { class: CSS$L.contentWrapper, onScroll: this.panelScrollHandler,
|
|
35016
35000
|
// eslint-disable-next-line react/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
35001
|
ref: this.setPanelScrollEl }, hAsync("slot", null), this.renderFab()));
|
|
35018
35002
|
}
|
|
35019
35003
|
renderFab() {
|
|
35020
|
-
return (hAsync("div", { class: CSS$
|
|
35004
|
+
return (hAsync("div", { class: CSS$L.fabContainer, hidden: !this.hasFab }, hAsync("slot", { name: SLOTS$n.fab, onSlotchange: this.handleFabSlotChange })));
|
|
35021
35005
|
}
|
|
35022
35006
|
render() {
|
|
35023
35007
|
const { loading, panelKeyDownHandler, closed, closable } = this;
|
|
35024
|
-
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$
|
|
35008
|
+
const panelNode = (hAsync("article", { "aria-busy": toAriaBoolean(loading), class: CSS$L.container, hidden: closed, onKeyDown: panelKeyDownHandler, tabIndex: closable ? 0 : -1,
|
|
35025
35009
|
// eslint-disable-next-line react/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
35010
|
ref: this.setContainerRef }, this.renderHeaderNode(), this.renderContent(), this.renderFooterNode()));
|
|
35027
35011
|
return (hAsync(Fragment, null, loading ? hAsync("calcite-scrim", { loading: loading }) : null, panelNode));
|
|
@@ -35067,7 +35051,7 @@ class Panel {
|
|
|
35067
35051
|
}; }
|
|
35068
35052
|
}
|
|
35069
35053
|
|
|
35070
|
-
const CSS$
|
|
35054
|
+
const CSS$s = {
|
|
35071
35055
|
sticky: "sticky-pos",
|
|
35072
35056
|
};
|
|
35073
35057
|
var ICON_TYPES$1;
|
|
@@ -35076,16 +35060,16 @@ var ICON_TYPES$1;
|
|
|
35076
35060
|
ICON_TYPES["square"] = "square";
|
|
35077
35061
|
ICON_TYPES["grip"] = "grip";
|
|
35078
35062
|
})(ICON_TYPES$1 || (ICON_TYPES$1 = {}));
|
|
35079
|
-
const SLOTS$
|
|
35063
|
+
const SLOTS$d = {
|
|
35080
35064
|
menuActions: "menu-actions",
|
|
35081
35065
|
};
|
|
35082
35066
|
|
|
35083
|
-
const CSS$
|
|
35067
|
+
const CSS$r = {
|
|
35084
35068
|
heading: "heading",
|
|
35085
35069
|
container: "container",
|
|
35086
35070
|
indented: "container--indented",
|
|
35087
35071
|
};
|
|
35088
|
-
const SLOTS$
|
|
35072
|
+
const SLOTS$c = {
|
|
35089
35073
|
parentItem: "parent-item",
|
|
35090
35074
|
};
|
|
35091
35075
|
|
|
@@ -35230,7 +35214,7 @@ function removeItem(event) {
|
|
|
35230
35214
|
}
|
|
35231
35215
|
const item = event.target;
|
|
35232
35216
|
const selectedValues = this.selectedValues;
|
|
35233
|
-
if (item.parentElement.tagName === "CALCITE-PICK-LIST-GROUP" && item.slot === SLOTS$
|
|
35217
|
+
if (item.parentElement.tagName === "CALCITE-PICK-LIST-GROUP" && item.slot === SLOTS$c.parentItem) {
|
|
35234
35218
|
item.parentElement.remove();
|
|
35235
35219
|
Array.from(item.parentElement.children).forEach((item) => selectedValues.delete(item.value));
|
|
35236
35220
|
}
|
|
@@ -35406,11 +35390,11 @@ const List = ({ props: { disabled, loading, filterEnabled, dataForFilter, handle
|
|
|
35406
35390
|
dragEnabled ? (hAsync("span", { "aria-live": "assertive", class: "assistive-text",
|
|
35407
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)
|
|
35408
35392
|
ref: storeAssistiveEl })) : null,
|
|
35409
|
-
hAsync("header", { class: { [CSS$
|
|
35393
|
+
hAsync("header", { class: { [CSS$s.sticky]: true } },
|
|
35410
35394
|
filterEnabled ? (hAsync("calcite-filter", { "aria-label": filterPlaceholder, disabled: loading || disabled, items: dataForFilter, onCalciteFilterChange: handleFilterEvent, placeholder: filterPlaceholder, value: filterText,
|
|
35411
35395
|
// eslint-disable-next-line react/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
35396
|
ref: setFilterEl })) : null,
|
|
35413
|
-
hAsync("slot", { name: SLOTS$
|
|
35397
|
+
hAsync("slot", { name: SLOTS$d.menuActions })),
|
|
35414
35398
|
loading ? hAsync("calcite-scrim", { loading: loading }) : null,
|
|
35415
35399
|
defaultSlot)));
|
|
35416
35400
|
};
|
|
@@ -35595,16 +35579,16 @@ class PickListGroup {
|
|
|
35595
35579
|
// --------------------------------------------------------------------------
|
|
35596
35580
|
render() {
|
|
35597
35581
|
const { el, groupTitle, headingLevel } = this;
|
|
35598
|
-
const hasParentItem = getSlotted(el, SLOTS$
|
|
35582
|
+
const hasParentItem = getSlotted(el, SLOTS$c.parentItem) !== null;
|
|
35599
35583
|
const sectionClasses = {
|
|
35600
|
-
[CSS$
|
|
35601
|
-
[CSS$
|
|
35584
|
+
[CSS$r.container]: true,
|
|
35585
|
+
[CSS$r.indented]: hasParentItem,
|
|
35602
35586
|
};
|
|
35603
35587
|
const title = groupTitle;
|
|
35604
35588
|
const parentLevel = el.closest("calcite-pick-list")?.headingLevel;
|
|
35605
35589
|
const relativeLevel = parentLevel ? constrainHeadingLevel(parentLevel + 1) : null;
|
|
35606
35590
|
const level = headingLevel || relativeLevel;
|
|
35607
|
-
return (hAsync(Fragment, null, title ? (hAsync(Heading, { class: CSS$
|
|
35591
|
+
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
35592
|
}
|
|
35609
35593
|
get el() { return getElement(this); }
|
|
35610
35594
|
static get style() { return pickListGroupCss; }
|
|
@@ -35621,7 +35605,7 @@ class PickListGroup {
|
|
|
35621
35605
|
}; }
|
|
35622
35606
|
}
|
|
35623
35607
|
|
|
35624
|
-
const CSS$
|
|
35608
|
+
const CSS$q = {
|
|
35625
35609
|
actions: "actions",
|
|
35626
35610
|
actionsEnd: "actions--end",
|
|
35627
35611
|
actionsStart: "actions--start",
|
|
@@ -35640,7 +35624,7 @@ const ICONS$5 = {
|
|
|
35640
35624
|
checked: "check",
|
|
35641
35625
|
remove: "x",
|
|
35642
35626
|
};
|
|
35643
|
-
const SLOTS$
|
|
35627
|
+
const SLOTS$b = {
|
|
35644
35628
|
actionsEnd: "actions-end",
|
|
35645
35629
|
actionsStart: "actions-start",
|
|
35646
35630
|
};
|
|
@@ -35783,28 +35767,28 @@ class PickListItem {
|
|
|
35783
35767
|
return null;
|
|
35784
35768
|
}
|
|
35785
35769
|
return (hAsync("span", { class: {
|
|
35786
|
-
[CSS$
|
|
35787
|
-
[CSS$
|
|
35770
|
+
[CSS$q.icon]: true,
|
|
35771
|
+
[CSS$q.iconDot]: icon === ICON_TYPES$1.circle,
|
|
35788
35772
|
}, onClick: this.pickListClickHandler }, icon === ICON_TYPES$1.square ? (hAsync("calcite-icon", { flipRtl: iconFlipRtl, icon: ICONS$5.checked, scale: "s" })) : null));
|
|
35789
35773
|
}
|
|
35790
35774
|
renderRemoveAction() {
|
|
35791
|
-
return this.removable ? (hAsync("calcite-action", { class: CSS$
|
|
35775
|
+
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
35776
|
}
|
|
35793
35777
|
renderActionsStart() {
|
|
35794
35778
|
const { el } = this;
|
|
35795
|
-
const hasActionsStart = getSlotted(el, SLOTS$
|
|
35796
|
-
return hasActionsStart ? (hAsync("div", { class: { [CSS$
|
|
35779
|
+
const hasActionsStart = getSlotted(el, SLOTS$b.actionsStart);
|
|
35780
|
+
return hasActionsStart ? (hAsync("div", { class: { [CSS$q.actions]: true, [CSS$q.actionsStart]: true } }, hAsync("slot", { name: SLOTS$b.actionsStart }))) : null;
|
|
35797
35781
|
}
|
|
35798
35782
|
renderActionsEnd() {
|
|
35799
35783
|
const { el, removable } = this;
|
|
35800
|
-
const hasActionsEnd = getSlotted(el, SLOTS$
|
|
35801
|
-
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$
|
|
35784
|
+
const hasActionsEnd = getSlotted(el, SLOTS$b.actionsEnd);
|
|
35785
|
+
return hasActionsEnd || removable ? (hAsync("div", { class: { [CSS$q.actions]: true, [CSS$q.actionsEnd]: true } }, hAsync("slot", { name: SLOTS$b.actionsEnd }), this.renderRemoveAction())) : null;
|
|
35802
35786
|
}
|
|
35803
35787
|
render() {
|
|
35804
35788
|
const { description, label } = this;
|
|
35805
|
-
return (hAsync(Fragment, null, this.renderIcon(), this.renderActionsStart(), hAsync("label", { "aria-label": label, class: CSS$
|
|
35789
|
+
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
35790
|
// eslint-disable-next-line react/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$
|
|
35791
|
+
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
35792
|
}
|
|
35809
35793
|
static get assetsDirs() { return ["assets"]; }
|
|
35810
35794
|
get el() { return getElement(this); }
|
|
@@ -35847,7 +35831,7 @@ class PickListItem {
|
|
|
35847
35831
|
}; }
|
|
35848
35832
|
}
|
|
35849
35833
|
|
|
35850
|
-
const CSS$
|
|
35834
|
+
const CSS$p = {
|
|
35851
35835
|
container: "container",
|
|
35852
35836
|
imageContainer: "image-container",
|
|
35853
35837
|
closeButtonContainer: "close-button-container",
|
|
@@ -35941,7 +35925,7 @@ class PopoverManager {
|
|
|
35941
35925
|
}
|
|
35942
35926
|
}
|
|
35943
35927
|
|
|
35944
|
-
const CSS$
|
|
35928
|
+
const CSS$o = {
|
|
35945
35929
|
arrow: "calcite-floating-ui-arrow",
|
|
35946
35930
|
arrowStroke: "calcite-floating-ui-arrow__stroke",
|
|
35947
35931
|
};
|
|
@@ -35971,8 +35955,8 @@ const FloatingArrow = ({ floatingLayout, key, ref, }) => {
|
|
|
35971
35955
|
` L${width - svgX},${height}` +
|
|
35972
35956
|
` Q${svgX},${height} ${svgX},${height}` +
|
|
35973
35957
|
" Z";
|
|
35974
|
-
return (hAsync("svg", { "aria-hidden": "true", class: CSS$
|
|
35975
|
-
strokeWidth > 0 && (hAsync("path", { class: CSS$
|
|
35958
|
+
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) },
|
|
35959
|
+
strokeWidth > 0 && (hAsync("path", { class: CSS$o.arrowStroke, d: dValue, fill: "none", "stroke-width": strokeWidth + 1 })),
|
|
35976
35960
|
hAsync("path", { d: dValue, stroke: "none" })));
|
|
35977
35961
|
};
|
|
35978
35962
|
|
|
@@ -36224,14 +36208,14 @@ class Popover {
|
|
|
36224
36208
|
// --------------------------------------------------------------------------
|
|
36225
36209
|
renderCloseButton() {
|
|
36226
36210
|
const { messages, closable } = this;
|
|
36227
|
-
return closable ? (hAsync("div", { class: CSS$
|
|
36211
|
+
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
36212
|
// eslint-disable-next-line react/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
36213
|
ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : this.scale })))) : null;
|
|
36230
36214
|
}
|
|
36231
36215
|
renderHeader() {
|
|
36232
36216
|
const { heading, headingLevel } = this;
|
|
36233
|
-
const headingNode = heading ? (hAsync(Heading, { class: CSS$
|
|
36234
|
-
return headingNode ? (hAsync("div", { class: CSS$
|
|
36217
|
+
const headingNode = heading ? (hAsync(Heading, { class: CSS$p.heading, level: headingLevel }, heading)) : null;
|
|
36218
|
+
return headingNode ? (hAsync("div", { class: CSS$p.header, key: CSS$p.header }, headingNode, this.renderCloseButton())) : null;
|
|
36235
36219
|
}
|
|
36236
36220
|
render() {
|
|
36237
36221
|
const { effectiveReferenceElement, heading, label, open, pointerDisabled, floatingLayout } = this;
|
|
@@ -36246,9 +36230,9 @@ class Popover {
|
|
|
36246
36230
|
},
|
|
36247
36231
|
// eslint-disable-next-line react/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
36232
|
ref: this.setTransitionEl }, arrowNode, hAsync("div", { class: {
|
|
36249
|
-
[CSS$
|
|
36250
|
-
[CSS$
|
|
36251
|
-
} }, this.renderHeader(), hAsync("div", { class: CSS$
|
|
36233
|
+
[CSS$p.hasHeader]: !!heading,
|
|
36234
|
+
[CSS$p.container]: true,
|
|
36235
|
+
} }, this.renderHeader(), hAsync("div", { class: CSS$p.content }, hAsync("slot", null)), !heading ? this.renderCloseButton() : null))));
|
|
36252
36236
|
}
|
|
36253
36237
|
static get assetsDirs() { return ["assets"]; }
|
|
36254
36238
|
get el() { return getElement(this); }
|
|
@@ -36342,7 +36326,7 @@ class Progress {
|
|
|
36342
36326
|
}; }
|
|
36343
36327
|
}
|
|
36344
36328
|
|
|
36345
|
-
const CSS$
|
|
36329
|
+
const CSS$n = {
|
|
36346
36330
|
container: "container",
|
|
36347
36331
|
};
|
|
36348
36332
|
|
|
@@ -36619,7 +36603,7 @@ class RadioButton {
|
|
|
36619
36603
|
// --------------------------------------------------------------------------
|
|
36620
36604
|
render() {
|
|
36621
36605
|
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$
|
|
36606
|
+
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
36607
|
// eslint-disable-next-line react/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
36608
|
ref: this.setContainerEl }, hAsync("div", { class: "radio" })), hAsync(HiddenFormInputSlot, { component: this })));
|
|
36625
36609
|
}
|
|
@@ -37046,7 +37030,7 @@ class Rating {
|
|
|
37046
37030
|
}; }
|
|
37047
37031
|
}
|
|
37048
37032
|
|
|
37049
|
-
const CSS$
|
|
37033
|
+
const CSS$m = {
|
|
37050
37034
|
scrim: "scrim",
|
|
37051
37035
|
content: "content",
|
|
37052
37036
|
};
|
|
@@ -37116,7 +37100,7 @@ class Scrim {
|
|
|
37116
37100
|
// --------------------------------------------------------------------------
|
|
37117
37101
|
render() {
|
|
37118
37102
|
const { hasContent, loading, messages } = this;
|
|
37119
|
-
return (hAsync("div", { class: CSS$
|
|
37103
|
+
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
37104
|
}
|
|
37121
37105
|
getScale(size) {
|
|
37122
37106
|
if (size < BREAKPOINTS.s) {
|
|
@@ -37388,10 +37372,10 @@ class SegmentedControl {
|
|
|
37388
37372
|
}; }
|
|
37389
37373
|
}
|
|
37390
37374
|
|
|
37391
|
-
const SLOTS$
|
|
37375
|
+
const SLOTS$a = {
|
|
37392
37376
|
input: "input",
|
|
37393
37377
|
};
|
|
37394
|
-
const CSS$
|
|
37378
|
+
const CSS$l = {
|
|
37395
37379
|
segmentedControlItemIcon: "segmented-control-item-icon",
|
|
37396
37380
|
};
|
|
37397
37381
|
|
|
@@ -37420,8 +37404,8 @@ class SegmentedControlItem {
|
|
|
37420
37404
|
//--------------------------------------------------------------------------
|
|
37421
37405
|
render() {
|
|
37422
37406
|
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$
|
|
37407
|
+
const iconStartEl = this.iconStart ? (hAsync("calcite-icon", { class: CSS$l.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconStart, key: "icon-start", scale: "s" })) : null;
|
|
37408
|
+
const iconEndEl = this.iconEnd ? (hAsync("calcite-icon", { class: CSS$l.segmentedControlItemIcon, flipRtl: this.iconFlipRtl, icon: this.iconEnd, key: "icon-end", scale: "s" })) : null;
|
|
37425
37409
|
return (hAsync(Host, { "aria-checked": toAriaBoolean(checked), "aria-label": value, role: "radio" }, hAsync("label", { class: {
|
|
37426
37410
|
"label--scale-s": scale === "s",
|
|
37427
37411
|
"label--scale-m": scale === "m",
|
|
@@ -37429,7 +37413,7 @@ class SegmentedControlItem {
|
|
|
37429
37413
|
"label--horizontal": layout === "horizontal",
|
|
37430
37414
|
"label--outline": appearance === "outline",
|
|
37431
37415
|
"label--outline-fill": appearance === "outline-fill",
|
|
37432
|
-
} }, this.iconStart ? iconStartEl : null, hAsync("slot", null, value), hAsync("slot", { name: SLOTS$
|
|
37416
|
+
} }, this.iconStart ? iconStartEl : null, hAsync("slot", null, value), hAsync("slot", { name: SLOTS$a.input }), this.iconEnd ? iconEndEl : null)));
|
|
37433
37417
|
}
|
|
37434
37418
|
get el() { return getElement(this); }
|
|
37435
37419
|
static get watchers() { return {
|
|
@@ -37455,7 +37439,7 @@ class SegmentedControlItem {
|
|
|
37455
37439
|
}; }
|
|
37456
37440
|
}
|
|
37457
37441
|
|
|
37458
|
-
const CSS$
|
|
37442
|
+
const CSS$k = {
|
|
37459
37443
|
icon: "icon",
|
|
37460
37444
|
iconContainer: "icon-container",
|
|
37461
37445
|
select: "select",
|
|
@@ -37642,10 +37626,10 @@ class Select {
|
|
|
37642
37626
|
//
|
|
37643
37627
|
//--------------------------------------------------------------------------
|
|
37644
37628
|
renderChevron() {
|
|
37645
|
-
return (hAsync("div", { class: CSS$
|
|
37629
|
+
return (hAsync("div", { class: CSS$k.iconContainer }, hAsync("calcite-icon", { class: CSS$k.icon, icon: "chevron-down", scale: this.scale === "l" ? "m" : "s" })));
|
|
37646
37630
|
}
|
|
37647
37631
|
render() {
|
|
37648
|
-
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$
|
|
37632
|
+
return (hAsync(Fragment, null, hAsync("select", { "aria-label": getLabelText(this), class: CSS$k.select, disabled: this.disabled, onChange: this.handleInternalSelectChange,
|
|
37649
37633
|
// eslint-disable-next-line react/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
37634
|
ref: this.storeSelectRef }, hAsync("slot", null)), this.renderChevron(), hAsync(HiddenFormInputSlot, { component: this })));
|
|
37651
37635
|
}
|
|
@@ -37676,7 +37660,7 @@ class Select {
|
|
|
37676
37660
|
}; }
|
|
37677
37661
|
}
|
|
37678
37662
|
|
|
37679
|
-
const CSS$
|
|
37663
|
+
const CSS$j = {
|
|
37680
37664
|
scrim: "scrim",
|
|
37681
37665
|
container: "container",
|
|
37682
37666
|
containerOpen: "container--open",
|
|
@@ -37799,12 +37783,12 @@ class Sheet {
|
|
|
37799
37783
|
render() {
|
|
37800
37784
|
const dir = getElementDir(this.el);
|
|
37801
37785
|
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$
|
|
37786
|
+
[CSS$j.container]: true,
|
|
37787
|
+
[CSS$j.containerOpen]: this.opened,
|
|
37788
|
+
[CSS$j.containerSlottedInShell]: this.slottedInShell,
|
|
37805
37789
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
37806
|
-
} }, hAsync("calcite-scrim", { class: CSS$
|
|
37807
|
-
[CSS$
|
|
37790
|
+
} }, hAsync("calcite-scrim", { class: CSS$j.scrim, onClick: this.handleOutsideClose }), hAsync("div", { class: {
|
|
37791
|
+
[CSS$j.content]: true,
|
|
37808
37792
|
},
|
|
37809
37793
|
// eslint-disable-next-line react/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
37794
|
ref: this.setTransitionEl }, hAsync("slot", null)))));
|
|
@@ -37909,7 +37893,7 @@ class Sheet {
|
|
|
37909
37893
|
}; }
|
|
37910
37894
|
}
|
|
37911
37895
|
|
|
37912
|
-
const CSS$
|
|
37896
|
+
const CSS$i = {
|
|
37913
37897
|
main: "main",
|
|
37914
37898
|
content: "content",
|
|
37915
37899
|
contentBehind: "content--behind",
|
|
@@ -37918,7 +37902,7 @@ const CSS$f = {
|
|
|
37918
37902
|
container: "container",
|
|
37919
37903
|
contentBehindCenterContent: "center-content",
|
|
37920
37904
|
};
|
|
37921
|
-
const SLOTS$
|
|
37905
|
+
const SLOTS$9 = {
|
|
37922
37906
|
centerRow: "center-row",
|
|
37923
37907
|
panelStart: "panel-start",
|
|
37924
37908
|
panelEnd: "panel-end",
|
|
@@ -38008,44 +37992,44 @@ class Shell {
|
|
|
38008
37992
|
//
|
|
38009
37993
|
// --------------------------------------------------------------------------
|
|
38010
37994
|
renderHeader() {
|
|
38011
|
-
return (hAsync("div", { hidden: !this.hasHeader }, hAsync("slot", { key: "header", name: SLOTS$
|
|
37995
|
+
return (hAsync("div", { hidden: !this.hasHeader }, hAsync("slot", { key: "header", name: SLOTS$9.header, onSlotchange: this.handleHeaderSlotChange })));
|
|
38012
37996
|
}
|
|
38013
37997
|
renderFooter() {
|
|
38014
|
-
return (hAsync("div", { class: CSS$
|
|
37998
|
+
return (hAsync("div", { class: CSS$i.footer, hidden: !this.hasFooter, key: "footer" }, hAsync("slot", { name: SLOTS$9.footer, onSlotchange: this.handleFooterSlotChange })));
|
|
38015
37999
|
}
|
|
38016
38000
|
renderAlerts() {
|
|
38017
|
-
return (hAsync("div", { hidden: !this.hasAlerts }, hAsync("slot", { key: "alerts", name: SLOTS$
|
|
38001
|
+
return (hAsync("div", { hidden: !this.hasAlerts }, hAsync("slot", { key: "alerts", name: SLOTS$9.alerts, onSlotchange: this.handleAlertsSlotChange })));
|
|
38018
38002
|
}
|
|
38019
38003
|
renderSheets() {
|
|
38020
|
-
return (hAsync("div", { hidden: !this.hasSheets }, hAsync("slot", { key: "sheets", name: SLOTS$
|
|
38004
|
+
return (hAsync("div", { hidden: !this.hasSheets }, hAsync("slot", { key: "sheets", name: SLOTS$9.sheets, onSlotchange: this.handleSheetsSlotChange })));
|
|
38021
38005
|
}
|
|
38022
38006
|
renderModals() {
|
|
38023
|
-
return (hAsync("div", { hidden: !this.hasModals }, hAsync("slot", { key: "modals", name: SLOTS$
|
|
38007
|
+
return (hAsync("div", { hidden: !this.hasModals }, hAsync("slot", { key: "modals", name: SLOTS$9.modals, onSlotchange: this.handleModalsSlotChange })));
|
|
38024
38008
|
}
|
|
38025
38009
|
renderContent() {
|
|
38026
38010
|
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$
|
|
38011
|
+
const deprecatedCenterRowSlotNode = (hAsync("slot", { key: "center-row-slot", name: SLOTS$9.centerRow }));
|
|
38012
|
+
const panelBottomSlotNode = hAsync("slot", { key: "panel-bottom-slot", name: SLOTS$9.panelBottom });
|
|
38013
|
+
const panelTopSlotNode = hAsync("slot", { key: "panel-top-slot", name: SLOTS$9.panelTop });
|
|
38030
38014
|
const contentContainerKey = "content-container";
|
|
38031
38015
|
const content = !!this.contentBehind
|
|
38032
38016
|
? [
|
|
38033
38017
|
hAsync("div", { class: {
|
|
38034
|
-
[CSS$
|
|
38035
|
-
[CSS$
|
|
38018
|
+
[CSS$i.content]: true,
|
|
38019
|
+
[CSS$i.contentBehind]: true,
|
|
38036
38020
|
}, key: contentContainerKey }, defaultSlotNode),
|
|
38037
|
-
hAsync("div", { class: CSS$
|
|
38021
|
+
hAsync("div", { class: CSS$i.contentBehindCenterContent }, panelTopSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
38038
38022
|
]
|
|
38039
38023
|
: [
|
|
38040
|
-
hAsync("div", { class: CSS$
|
|
38024
|
+
hAsync("div", { class: CSS$i.content, key: contentContainerKey }, panelTopSlotNode, defaultSlotNode, panelBottomSlotNode, deprecatedCenterRowSlotNode),
|
|
38041
38025
|
];
|
|
38042
38026
|
return content;
|
|
38043
38027
|
}
|
|
38044
38028
|
renderMain() {
|
|
38045
|
-
return (hAsync("div", { class: CSS$
|
|
38029
|
+
return (hAsync("div", { class: CSS$i.main }, hAsync("slot", { name: SLOTS$9.panelStart }), this.renderContent(), hAsync("slot", { name: SLOTS$9.panelEnd })));
|
|
38046
38030
|
}
|
|
38047
38031
|
renderPositionedSlots() {
|
|
38048
|
-
return (hAsync("div", { class: CSS$
|
|
38032
|
+
return (hAsync("div", { class: CSS$i.positionedSlotWrapper }, this.renderAlerts(), this.renderModals(), this.renderSheets()));
|
|
38049
38033
|
}
|
|
38050
38034
|
render() {
|
|
38051
38035
|
return (hAsync(Fragment, null, this.renderHeader(), this.renderMain(), this.renderFooter(), this.renderPositionedSlots()));
|
|
@@ -38069,11 +38053,11 @@ class Shell {
|
|
|
38069
38053
|
}; }
|
|
38070
38054
|
}
|
|
38071
38055
|
|
|
38072
|
-
const CSS$
|
|
38056
|
+
const CSS$h = {
|
|
38073
38057
|
actionBarContainer: "action-bar-container",
|
|
38074
38058
|
content: "content",
|
|
38075
38059
|
};
|
|
38076
|
-
const SLOTS$
|
|
38060
|
+
const SLOTS$8 = {
|
|
38077
38061
|
actionBar: "action-bar",
|
|
38078
38062
|
};
|
|
38079
38063
|
|
|
@@ -38108,9 +38092,9 @@ class ShellCenterRow {
|
|
|
38108
38092
|
// --------------------------------------------------------------------------
|
|
38109
38093
|
render() {
|
|
38110
38094
|
const { el } = this;
|
|
38111
|
-
const contentNode = (hAsync("div", { class: CSS$
|
|
38112
|
-
const actionBar = getSlotted(el, SLOTS$
|
|
38113
|
-
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$
|
|
38095
|
+
const contentNode = (hAsync("div", { class: CSS$h.content }, hAsync("slot", null)));
|
|
38096
|
+
const actionBar = getSlotted(el, SLOTS$8.actionBar);
|
|
38097
|
+
const actionBarNode = actionBar ? (hAsync("div", { class: CSS$h.actionBarContainer, key: "action-bar" }, hAsync("slot", { name: SLOTS$8.actionBar }))) : null;
|
|
38114
38098
|
const children = [actionBarNode, contentNode];
|
|
38115
38099
|
if (actionBar?.position === "end") {
|
|
38116
38100
|
children.reverse();
|
|
@@ -38133,7 +38117,7 @@ class ShellCenterRow {
|
|
|
38133
38117
|
}; }
|
|
38134
38118
|
}
|
|
38135
38119
|
|
|
38136
|
-
const CSS$
|
|
38120
|
+
const CSS$g = {
|
|
38137
38121
|
container: "container",
|
|
38138
38122
|
content: "content",
|
|
38139
38123
|
contentHeader: "content__header",
|
|
@@ -38142,7 +38126,7 @@ const CSS$d = {
|
|
|
38142
38126
|
contentOverlay: "content--overlay",
|
|
38143
38127
|
separator: "separator",
|
|
38144
38128
|
};
|
|
38145
|
-
const SLOTS$
|
|
38129
|
+
const SLOTS$7 = {
|
|
38146
38130
|
actionBar: "action-bar",
|
|
38147
38131
|
header: "header",
|
|
38148
38132
|
};
|
|
@@ -38396,7 +38380,7 @@ class ShellPanel {
|
|
|
38396
38380
|
//
|
|
38397
38381
|
// --------------------------------------------------------------------------
|
|
38398
38382
|
renderHeader() {
|
|
38399
|
-
return (hAsync("div", { class: CSS$
|
|
38383
|
+
return (hAsync("div", { class: CSS$g.contentHeader, hidden: !this.hasHeader, key: "header" }, hAsync("slot", { name: SLOTS$7.header, onSlotchange: this.handleHeaderSlotChange })));
|
|
38400
38384
|
}
|
|
38401
38385
|
render() {
|
|
38402
38386
|
const { collapsed, position, initialContentWidth, initialContentHeight, contentWidth, contentWidthMax, contentWidthMin, contentHeight, contentHeightMax, contentHeightMin, resizable, layout, displayMode, } = this;
|
|
@@ -38413,7 +38397,7 @@ class ShellPanel {
|
|
|
38413
38397
|
: null;
|
|
38414
38398
|
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
38399
|
? contentHeight ?? initialContentHeight
|
|
38416
|
-
: contentWidth ?? initialContentWidth, class: CSS$
|
|
38400
|
+
: contentWidth ?? initialContentWidth, class: CSS$g.separator, key: "separator", onKeyDown: this.separatorKeyDown, role: "separator", tabIndex: 0, "touch-action": "none",
|
|
38417
38401
|
// eslint-disable-next-line react/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
38402
|
ref: this.connectSeparator })) : null;
|
|
38419
38403
|
const getAnimationDir = () => {
|
|
@@ -38429,20 +38413,20 @@ class ShellPanel {
|
|
|
38429
38413
|
};
|
|
38430
38414
|
const contentNode = (hAsync("div", { class: {
|
|
38431
38415
|
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
38432
|
-
[CSS$
|
|
38433
|
-
[CSS$
|
|
38434
|
-
[CSS$
|
|
38416
|
+
[CSS$g.content]: true,
|
|
38417
|
+
[CSS$g.contentOverlay]: displayMode === "overlay",
|
|
38418
|
+
[CSS$g.contentFloat]: displayMode === "float",
|
|
38435
38419
|
[CSS_UTILITY.calciteAnimate]: displayMode === "overlay",
|
|
38436
38420
|
[getAnimationDir()]: displayMode === "overlay",
|
|
38437
38421
|
}, hidden: collapsed, key: "content", style: style,
|
|
38438
38422
|
// eslint-disable-next-line react/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$
|
|
38423
|
+
ref: this.storeContentEl }, this.renderHeader(), hAsync("div", { class: CSS$g.contentBody }, hAsync("slot", null)), separatorNode));
|
|
38424
|
+
const actionBarNode = (hAsync("slot", { key: "action-bar", name: SLOTS$7.actionBar, onSlotchange: this.handleActionBarSlotChange }));
|
|
38441
38425
|
const mainNodes = [actionBarNode, contentNode];
|
|
38442
38426
|
if (position === "end") {
|
|
38443
38427
|
mainNodes.reverse();
|
|
38444
38428
|
}
|
|
38445
|
-
return hAsync("div", { class: { [CSS$
|
|
38429
|
+
return hAsync("div", { class: { [CSS$g.container]: true } }, mainNodes);
|
|
38446
38430
|
}
|
|
38447
38431
|
// --------------------------------------------------------------------------
|
|
38448
38432
|
//
|
|
@@ -38543,7 +38527,7 @@ class ShellPanel {
|
|
|
38543
38527
|
}; }
|
|
38544
38528
|
}
|
|
38545
38529
|
|
|
38546
|
-
const CSS$
|
|
38530
|
+
const CSS$f = {
|
|
38547
38531
|
handleLabel: "handle__label",
|
|
38548
38532
|
handleLabelMinValue: "handle__label--minValue",
|
|
38549
38533
|
handleLabelValue: "handle__label--value",
|
|
@@ -38742,8 +38726,8 @@ class Slider {
|
|
|
38742
38726
|
const leftThumbOffset = `${mirror ? 100 - minInterval : minInterval}%`;
|
|
38743
38727
|
const rightThumbOffset = `${mirror ? maxInterval : 100 - maxInterval}%`;
|
|
38744
38728
|
const valueIsRange = isRange(this.value);
|
|
38745
|
-
const handleLabelMinValueClasses = `${CSS$
|
|
38746
|
-
const handleLabelValueClasses = `${CSS$
|
|
38729
|
+
const handleLabelMinValueClasses = `${CSS$f.handleLabel} ${CSS$f.handleLabelMinValue}`;
|
|
38730
|
+
const handleLabelValueClasses = `${CSS$f.handleLabel} ${CSS$f.handleLabelValue}`;
|
|
38747
38731
|
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
38732
|
thumb: true,
|
|
38749
38733
|
"thumb--value": true,
|
|
@@ -38879,8 +38863,8 @@ class Slider {
|
|
|
38879
38863
|
const displayedTickValue = this.determineGroupSeparator(tick);
|
|
38880
38864
|
const tickLabel = (hAsync("span", { class: {
|
|
38881
38865
|
tick__label: true,
|
|
38882
|
-
[CSS$
|
|
38883
|
-
[CSS$
|
|
38866
|
+
[CSS$f.tickMin]: isMinTickLabel,
|
|
38867
|
+
[CSS$f.tickMax]: isMaxTickLabel,
|
|
38884
38868
|
} }, displayedTickValue));
|
|
38885
38869
|
if (this.labelTicks && !this.hasHistogram && !valueIsRange) {
|
|
38886
38870
|
return tickLabel;
|
|
@@ -39438,7 +39422,7 @@ class Slider {
|
|
|
39438
39422
|
}; }
|
|
39439
39423
|
}
|
|
39440
39424
|
|
|
39441
|
-
const CSS$
|
|
39425
|
+
const CSS$e = {
|
|
39442
39426
|
sortItem: "sort-item",
|
|
39443
39427
|
container: "container",
|
|
39444
39428
|
containerHorizontal: "container--horizontal",
|
|
@@ -39566,9 +39550,9 @@ class SortableList {
|
|
|
39566
39550
|
const { layout } = this;
|
|
39567
39551
|
const horizontal = layout === "horizontal" || false;
|
|
39568
39552
|
return (hAsync("div", { class: {
|
|
39569
|
-
[CSS$
|
|
39570
|
-
[CSS$
|
|
39571
|
-
[CSS$
|
|
39553
|
+
[CSS$e.container]: true,
|
|
39554
|
+
[CSS$e.containerVertical]: !horizontal,
|
|
39555
|
+
[CSS$e.containerHorizontal]: horizontal,
|
|
39572
39556
|
} }, hAsync("slot", null)));
|
|
39573
39557
|
}
|
|
39574
39558
|
get el() { return getElement(this); }
|
|
@@ -39592,7 +39576,7 @@ class SortableList {
|
|
|
39592
39576
|
}; }
|
|
39593
39577
|
}
|
|
39594
39578
|
|
|
39595
|
-
const CSS$
|
|
39579
|
+
const CSS$d = {
|
|
39596
39580
|
container: "split-button__container",
|
|
39597
39581
|
dividerContainer: "split-button__divider-container",
|
|
39598
39582
|
divider: "split-button__divider",
|
|
@@ -39671,13 +39655,13 @@ class SplitButton {
|
|
|
39671
39655
|
}
|
|
39672
39656
|
render() {
|
|
39673
39657
|
const widthClasses = {
|
|
39674
|
-
[CSS$
|
|
39675
|
-
[CSS$
|
|
39676
|
-
[CSS$
|
|
39677
|
-
[CSS$
|
|
39658
|
+
[CSS$d.container]: true,
|
|
39659
|
+
[CSS$d.widthAuto]: this.width === "auto",
|
|
39660
|
+
[CSS$d.widthHalf]: this.width === "half",
|
|
39661
|
+
[CSS$d.widthFull]: this.width === "full",
|
|
39678
39662
|
};
|
|
39679
39663
|
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$
|
|
39664
|
+
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
39665
|
}
|
|
39682
39666
|
get dropdownIcon() {
|
|
39683
39667
|
return this.dropdownIconType === "chevron"
|
|
@@ -39764,25 +39748,25 @@ class Stack {
|
|
|
39764
39748
|
// --------------------------------------------------------------------------
|
|
39765
39749
|
renderActionsStart() {
|
|
39766
39750
|
const { hasActionsStart } = this;
|
|
39767
|
-
return (hAsync("div", { class: CSS$
|
|
39751
|
+
return (hAsync("div", { class: CSS$y.actionsStart, hidden: !hasActionsStart, key: "actions-start-container" }, hAsync("slot", { name: SLOTS$g.actionsStart, onSlotchange: this.handleActionsStartSlotChange })));
|
|
39768
39752
|
}
|
|
39769
39753
|
renderActionsEnd() {
|
|
39770
39754
|
const { hasActionsEnd } = this;
|
|
39771
|
-
return (hAsync("div", { class: CSS$
|
|
39755
|
+
return (hAsync("div", { class: CSS$y.actionsEnd, hidden: !hasActionsEnd, key: "actions-end-container" }, hAsync("slot", { name: SLOTS$g.actionsEnd, onSlotchange: this.handleActionsEndSlotChange })));
|
|
39772
39756
|
}
|
|
39773
39757
|
renderContentStart() {
|
|
39774
39758
|
const { hasContentStart } = this;
|
|
39775
|
-
return (hAsync("div", { class: CSS$
|
|
39759
|
+
return (hAsync("div", { class: CSS$y.contentStart, hidden: !hasContentStart }, hAsync("slot", { name: SLOTS$g.contentStart, onSlotchange: this.handleContentStartSlotChange })));
|
|
39776
39760
|
}
|
|
39777
39761
|
renderDefaultContent() {
|
|
39778
|
-
return (hAsync("div", { class: CSS$
|
|
39762
|
+
return (hAsync("div", { class: CSS$y.content }, hAsync("slot", null)));
|
|
39779
39763
|
}
|
|
39780
39764
|
renderContentEnd() {
|
|
39781
39765
|
const { hasContentEnd } = this;
|
|
39782
|
-
return (hAsync("div", { class: CSS$
|
|
39766
|
+
return (hAsync("div", { class: CSS$y.contentEnd, hidden: !hasContentEnd }, hAsync("slot", { name: SLOTS$g.contentEnd, onSlotchange: this.handleContentEndSlotChange })));
|
|
39783
39767
|
}
|
|
39784
39768
|
render() {
|
|
39785
|
-
return (hAsync(Host, null, hAsync("div", { class: CSS$
|
|
39769
|
+
return (hAsync(Host, null, hAsync("div", { class: CSS$y.container }, this.renderActionsStart(), this.renderContentStart(), this.renderDefaultContent(), this.renderContentEnd(), this.renderActionsEnd())));
|
|
39786
39770
|
}
|
|
39787
39771
|
static get style() { return stackCss; }
|
|
39788
39772
|
static get cmpMeta() { return {
|
|
@@ -39816,12 +39800,16 @@ class Stepper {
|
|
|
39816
39800
|
this.items = [];
|
|
39817
39801
|
/** list of enabled Stepper items */
|
|
39818
39802
|
this.enabledItems = [];
|
|
39803
|
+
this.mutationObserver = createObserver();
|
|
39819
39804
|
this.icon = false;
|
|
39820
39805
|
this.layout = "horizontal";
|
|
39821
39806
|
this.numbered = false;
|
|
39807
|
+
this.scale = "m";
|
|
39822
39808
|
this.numberingSystem = undefined;
|
|
39823
39809
|
this.selectedItem = null;
|
|
39824
|
-
|
|
39810
|
+
}
|
|
39811
|
+
handleItemPropChange() {
|
|
39812
|
+
this.updateItems();
|
|
39825
39813
|
}
|
|
39826
39814
|
numberingSystemChange() {
|
|
39827
39815
|
this.setStepperItemNumberingSystem();
|
|
@@ -39831,6 +39819,10 @@ class Stepper {
|
|
|
39831
39819
|
// Lifecycle
|
|
39832
39820
|
//
|
|
39833
39821
|
//--------------------------------------------------------------------------
|
|
39822
|
+
connectedCallback() {
|
|
39823
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
39824
|
+
this.updateItems();
|
|
39825
|
+
}
|
|
39834
39826
|
componentDidLoad() {
|
|
39835
39827
|
// if no stepper items are set as active, default to the first one
|
|
39836
39828
|
if (typeof this.currentPosition !== "number") {
|
|
@@ -39945,6 +39937,14 @@ class Stepper {
|
|
|
39945
39937
|
}
|
|
39946
39938
|
this.updateStep(enabledStepIndex);
|
|
39947
39939
|
}
|
|
39940
|
+
updateItems() {
|
|
39941
|
+
this.el.querySelectorAll("calcite-stepper-item").forEach((item) => {
|
|
39942
|
+
item.icon = this.icon;
|
|
39943
|
+
item.numbered = this.numbered;
|
|
39944
|
+
item.layout = this.layout;
|
|
39945
|
+
item.scale = this.scale;
|
|
39946
|
+
});
|
|
39947
|
+
}
|
|
39948
39948
|
//--------------------------------------------------------------------------
|
|
39949
39949
|
//
|
|
39950
39950
|
// Private Methods
|
|
@@ -39980,6 +39980,10 @@ class Stepper {
|
|
|
39980
39980
|
}
|
|
39981
39981
|
get el() { return getElement(this); }
|
|
39982
39982
|
static get watchers() { return {
|
|
39983
|
+
"icon": ["handleItemPropChange"],
|
|
39984
|
+
"layout": ["handleItemPropChange"],
|
|
39985
|
+
"numbered": ["handleItemPropChange"],
|
|
39986
|
+
"scale": ["handleItemPropChange"],
|
|
39983
39987
|
"numberingSystem": ["numberingSystemChange"]
|
|
39984
39988
|
}; }
|
|
39985
39989
|
static get style() { return stepperCss; }
|
|
@@ -39990,9 +39994,9 @@ class Stepper {
|
|
|
39990
39994
|
"icon": [516],
|
|
39991
39995
|
"layout": [513],
|
|
39992
39996
|
"numbered": [516],
|
|
39997
|
+
"scale": [513],
|
|
39993
39998
|
"numberingSystem": [513, "numbering-system"],
|
|
39994
39999
|
"selectedItem": [1040],
|
|
39995
|
-
"scale": [513],
|
|
39996
40000
|
"nextStep": [64],
|
|
39997
40001
|
"prevStep": [64],
|
|
39998
40002
|
"goToStep": [64],
|
|
@@ -40001,7 +40005,7 @@ class Stepper {
|
|
|
40001
40005
|
},
|
|
40002
40006
|
"$listeners$": [[0, "calciteInternalStepperItemKeyEvent", "calciteInternalStepperItemKeyEvent"], [0, "calciteInternalStepperItemRegister", "registerItem"], [0, "calciteInternalStepperItemSelect", "updateItem"], [0, "calciteInternalUserRequestedStepperItemSelect", "handleUserRequestedStepperItemSelect"]],
|
|
40003
40007
|
"$lazyBundleId$": "-",
|
|
40004
|
-
"$attrsToReflect$": [["icon", "icon"], ["layout", "layout"], ["numbered", "numbered"], ["
|
|
40008
|
+
"$attrsToReflect$": [["icon", "icon"], ["layout", "layout"], ["numbered", "numbered"], ["scale", "scale"], ["numberingSystem", "numbering-system"]]
|
|
40005
40009
|
}; }
|
|
40006
40010
|
}
|
|
40007
40011
|
|
|
@@ -40075,12 +40079,12 @@ class StepperItem {
|
|
|
40075
40079
|
this.disabled = false;
|
|
40076
40080
|
this.heading = undefined;
|
|
40077
40081
|
this.description = undefined;
|
|
40078
|
-
this.layout = "horizontal";
|
|
40079
|
-
this.icon = false;
|
|
40080
40082
|
this.iconFlipRtl = false;
|
|
40083
|
+
this.numberingSystem = undefined;
|
|
40084
|
+
this.icon = false;
|
|
40085
|
+
this.layout = undefined;
|
|
40081
40086
|
this.numbered = false;
|
|
40082
40087
|
this.scale = "m";
|
|
40083
|
-
this.numberingSystem = undefined;
|
|
40084
40088
|
this.effectiveLocale = "";
|
|
40085
40089
|
}
|
|
40086
40090
|
selectedHandler() {
|
|
@@ -40110,10 +40114,6 @@ class StepperItem {
|
|
|
40110
40114
|
}
|
|
40111
40115
|
componentWillLoad() {
|
|
40112
40116
|
setUpLoadableComponent(this);
|
|
40113
|
-
this.icon = getElementProp(this.el, "icon", false);
|
|
40114
|
-
this.numbered = getElementProp(this.el, "numbered", false);
|
|
40115
|
-
this.layout = getElementProp(this.el, "layout", false);
|
|
40116
|
-
this.scale = getElementProp(this.el, "scale", "m");
|
|
40117
40117
|
this.parentStepperEl = this.el.parentElement;
|
|
40118
40118
|
this.itemPosition = this.getItemPosition();
|
|
40119
40119
|
this.registerStepperItem();
|
|
@@ -40206,18 +40206,18 @@ class StepperItem {
|
|
|
40206
40206
|
"disabled": [516],
|
|
40207
40207
|
"heading": [1],
|
|
40208
40208
|
"description": [1],
|
|
40209
|
-
"layout": [1537],
|
|
40210
|
-
"icon": [1028],
|
|
40211
40209
|
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
40212
|
-
"numbered": [1028],
|
|
40213
|
-
"scale": [1537],
|
|
40214
40210
|
"numberingSystem": [1, "numbering-system"],
|
|
40211
|
+
"icon": [4],
|
|
40212
|
+
"layout": [513],
|
|
40213
|
+
"numbered": [4],
|
|
40214
|
+
"scale": [513],
|
|
40215
40215
|
"effectiveLocale": [32],
|
|
40216
40216
|
"setFocus": [64]
|
|
40217
40217
|
},
|
|
40218
40218
|
"$listeners$": [[16, "calciteInternalStepperItemChange", "updateActiveItemOnChange"]],
|
|
40219
40219
|
"$lazyBundleId$": "-",
|
|
40220
|
-
"$attrsToReflect$": [["selected", "selected"], ["complete", "complete"], ["error", "error"], ["disabled", "disabled"], ["
|
|
40220
|
+
"$attrsToReflect$": [["selected", "selected"], ["complete", "complete"], ["error", "error"], ["disabled", "disabled"], ["iconFlipRtl", "icon-flip-rtl"], ["layout", "layout"], ["scale", "scale"]]
|
|
40221
40221
|
}; }
|
|
40222
40222
|
}
|
|
40223
40223
|
|
|
@@ -40680,7 +40680,7 @@ class TabNav {
|
|
|
40680
40680
|
}; }
|
|
40681
40681
|
}
|
|
40682
40682
|
|
|
40683
|
-
const CSS$
|
|
40683
|
+
const CSS$c = {
|
|
40684
40684
|
closeButton: "close-button",
|
|
40685
40685
|
container: "container",
|
|
40686
40686
|
content: "content",
|
|
@@ -40800,18 +40800,18 @@ class TabTitle {
|
|
|
40800
40800
|
render() {
|
|
40801
40801
|
const { el, closed } = this;
|
|
40802
40802
|
const id = el.id || this.guid;
|
|
40803
|
-
const iconStartEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
40804
|
-
const iconEndEl = (hAsync("calcite-icon", { class: { [CSS$
|
|
40803
|
+
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" }));
|
|
40804
|
+
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
40805
|
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
40806
|
container: true,
|
|
40807
|
-
[CSS$
|
|
40807
|
+
[CSS$c.iconPresent]: !!this.iconStart || !!this.iconEnd,
|
|
40808
40808
|
}, hidden: closed,
|
|
40809
40809
|
// eslint-disable-next-line react/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$
|
|
40810
|
+
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
40811
|
}
|
|
40812
40812
|
renderCloseButton() {
|
|
40813
40813
|
const { closable, messages } = this;
|
|
40814
|
-
return closable ? (hAsync("button", { "aria-label": messages.close, class: CSS$
|
|
40814
|
+
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
40815
|
// eslint-disable-next-line react/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
40816
|
ref: (el) => (this.closeButtonEl = el) }, hAsync("calcite-icon", { icon: ICONS$4.close, scale: this.scale === "l" ? "m" : "s" }))) : null;
|
|
40817
40817
|
}
|
|
@@ -40978,6 +40978,883 @@ class TabTitle {
|
|
|
40978
40978
|
}; }
|
|
40979
40979
|
}
|
|
40980
40980
|
|
|
40981
|
+
const CSS$b = {
|
|
40982
|
+
bordered: "bordered",
|
|
40983
|
+
zebra: "zebra",
|
|
40984
|
+
selectionArea: "selection-area",
|
|
40985
|
+
paginationArea: "pagination-area",
|
|
40986
|
+
container: "container",
|
|
40987
|
+
tableContainer: "table-container",
|
|
40988
|
+
tableFixed: "table--fixed",
|
|
40989
|
+
assistiveText: "assistive-text",
|
|
40990
|
+
selectionActions: "selection-actions",
|
|
40991
|
+
};
|
|
40992
|
+
const SLOTS$6 = {
|
|
40993
|
+
selectionActions: "selection-actions",
|
|
40994
|
+
tableHeader: "table-header",
|
|
40995
|
+
tableFooter: "table-footer",
|
|
40996
|
+
};
|
|
40997
|
+
|
|
40998
|
+
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}";
|
|
40999
|
+
|
|
41000
|
+
/**
|
|
41001
|
+
* @slot - A slot for adding `calcite-table-row` or nested `calcite-table` elements.
|
|
41002
|
+
* @slot table-header - A slot for adding `calcite-table-row` containing `calcite-table-header` elements.
|
|
41003
|
+
* @slot table-footer - A slot for adding `calcite-table-row` containing `calcite-table-cell` or `calcite-table-header` elements.
|
|
41004
|
+
* @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.
|
|
41005
|
+
*/
|
|
41006
|
+
class Table {
|
|
41007
|
+
constructor(hostRef) {
|
|
41008
|
+
registerInstance(this, hostRef);
|
|
41009
|
+
this.calciteTableSelect = createEvent(this, "calciteTableSelect", 6);
|
|
41010
|
+
this.calciteTablePageChange = createEvent(this, "calciteTablePageChange", 6);
|
|
41011
|
+
this.calciteInternalTableRowFocusChange = createEvent(this, "calciteInternalTableRowFocusChange", 6);
|
|
41012
|
+
// --------------------------------------------------------------------------
|
|
41013
|
+
//
|
|
41014
|
+
// Private Methods
|
|
41015
|
+
//
|
|
41016
|
+
// --------------------------------------------------------------------------
|
|
41017
|
+
this.getSlottedRows = (el) => {
|
|
41018
|
+
return el
|
|
41019
|
+
?.assignedElements({ flatten: true })
|
|
41020
|
+
?.filter((el) => el?.matches("calcite-table-row"));
|
|
41021
|
+
};
|
|
41022
|
+
this.updateRows = () => {
|
|
41023
|
+
const headRows = this.getSlottedRows(this.tableHeadSlotEl) || [];
|
|
41024
|
+
const bodyRows = this.getSlottedRows(this.tableBodySlotEl) || [];
|
|
41025
|
+
const footRows = this.getSlottedRows(this.tableFootSlotEl) || [];
|
|
41026
|
+
const allRows = [...headRows, ...bodyRows, ...footRows];
|
|
41027
|
+
headRows?.forEach((row) => {
|
|
41028
|
+
const position = headRows?.indexOf(row);
|
|
41029
|
+
row.rowType = "head";
|
|
41030
|
+
row.positionSection = position;
|
|
41031
|
+
row.positionSectionLocalized = this.localizeNumber((position + 1).toString());
|
|
41032
|
+
});
|
|
41033
|
+
bodyRows?.forEach((row) => {
|
|
41034
|
+
const position = bodyRows?.indexOf(row);
|
|
41035
|
+
row.rowType = "body";
|
|
41036
|
+
row.positionSection = position;
|
|
41037
|
+
row.positionSectionLocalized = this.localizeNumber((position + 1).toString());
|
|
41038
|
+
});
|
|
41039
|
+
footRows?.forEach((row) => {
|
|
41040
|
+
const position = footRows?.indexOf(row);
|
|
41041
|
+
row.rowType = "foot";
|
|
41042
|
+
row.positionSection = position;
|
|
41043
|
+
row.positionSectionLocalized = this.localizeNumber((position + 1).toString());
|
|
41044
|
+
});
|
|
41045
|
+
allRows?.forEach((row) => {
|
|
41046
|
+
row.selectionMode = this.selectionMode;
|
|
41047
|
+
row.bodyRowCount = bodyRows?.length;
|
|
41048
|
+
row.positionAll = allRows?.indexOf(row);
|
|
41049
|
+
row.numbered = this.numbered;
|
|
41050
|
+
row.scale = this.scale;
|
|
41051
|
+
row.readCellContentsToAT = this.readCellContentsToAT;
|
|
41052
|
+
});
|
|
41053
|
+
const colCount = headRows[0]?.cellCount || headRows[0]?.querySelectorAll("calcite-table-header")?.length;
|
|
41054
|
+
this.colCount = colCount;
|
|
41055
|
+
this.headRows = headRows;
|
|
41056
|
+
this.bodyRows = bodyRows;
|
|
41057
|
+
this.footRows = footRows;
|
|
41058
|
+
this.allRows = allRows;
|
|
41059
|
+
this.updateSelectedItems();
|
|
41060
|
+
this.paginateRows();
|
|
41061
|
+
};
|
|
41062
|
+
this.handlePaginationChange = () => {
|
|
41063
|
+
const requestedItem = this.paginationEl?.startItem;
|
|
41064
|
+
this.pageStartRow = requestedItem || 1;
|
|
41065
|
+
this.calciteTablePageChange.emit();
|
|
41066
|
+
this.updateRows();
|
|
41067
|
+
};
|
|
41068
|
+
this.paginateRows = () => {
|
|
41069
|
+
this.bodyRows?.forEach((row) => {
|
|
41070
|
+
const rowPos = row.positionSection + 1;
|
|
41071
|
+
const inView = rowPos >= this.pageStartRow && rowPos < this.pageStartRow + this.pageSize;
|
|
41072
|
+
row.hidden = this.pageSize > 0 && !inView && !this.footRows.includes(row);
|
|
41073
|
+
});
|
|
41074
|
+
};
|
|
41075
|
+
this.updateSelectedItems = (emit) => {
|
|
41076
|
+
const selectedItems = this.bodyRows?.filter((el) => el.selected);
|
|
41077
|
+
this.selectedItems = selectedItems;
|
|
41078
|
+
this.selectedCount = selectedItems?.length;
|
|
41079
|
+
this.allRows?.forEach((row) => {
|
|
41080
|
+
row.selectedRowCount = this.selectedCount;
|
|
41081
|
+
row.selectedRowCountLocalized = this.localizeNumber(this.selectedCount);
|
|
41082
|
+
});
|
|
41083
|
+
if (emit) {
|
|
41084
|
+
this.calciteTableSelect.emit();
|
|
41085
|
+
}
|
|
41086
|
+
};
|
|
41087
|
+
this.handleDeselectAllRows = () => {
|
|
41088
|
+
this.bodyRows?.forEach((row) => {
|
|
41089
|
+
row.selected = false;
|
|
41090
|
+
});
|
|
41091
|
+
this.updateSelectedItems(true);
|
|
41092
|
+
};
|
|
41093
|
+
this.setSelectedItems = (elToMatch) => {
|
|
41094
|
+
this.bodyRows?.forEach((el) => {
|
|
41095
|
+
if (elToMatch?.rowType === "head") {
|
|
41096
|
+
el.selected = this.selectedCount !== this.bodyRows?.length;
|
|
41097
|
+
}
|
|
41098
|
+
else {
|
|
41099
|
+
el.selected =
|
|
41100
|
+
elToMatch === el ? !el.selected : this.selectionMode === "multiple" ? el.selected : false;
|
|
41101
|
+
}
|
|
41102
|
+
});
|
|
41103
|
+
this.updateSelectedItems(true);
|
|
41104
|
+
};
|
|
41105
|
+
this.localizeNumber = (value) => {
|
|
41106
|
+
numberStringFormatter.numberFormatOptions = {
|
|
41107
|
+
locale: this.effectiveLocale,
|
|
41108
|
+
numberingSystem: this.numberingSystem,
|
|
41109
|
+
useGrouping: this.groupSeparator,
|
|
41110
|
+
};
|
|
41111
|
+
return numberStringFormatter.localize(value.toString());
|
|
41112
|
+
};
|
|
41113
|
+
this.bordered = false;
|
|
41114
|
+
this.caption = undefined;
|
|
41115
|
+
this.groupSeparator = false;
|
|
41116
|
+
this.layout = "auto";
|
|
41117
|
+
this.numbered = false;
|
|
41118
|
+
this.numberingSystem = undefined;
|
|
41119
|
+
this.pageSize = 0;
|
|
41120
|
+
this.scale = "m";
|
|
41121
|
+
this.selectionMode = "none";
|
|
41122
|
+
this.zebra = false;
|
|
41123
|
+
this.selectedItems = [];
|
|
41124
|
+
this.messages = undefined;
|
|
41125
|
+
this.messageOverrides = undefined;
|
|
41126
|
+
this.colCount = 0;
|
|
41127
|
+
this.pageStartRow = 1;
|
|
41128
|
+
this.selectedCount = 0;
|
|
41129
|
+
this.readCellContentsToAT = undefined;
|
|
41130
|
+
this.defaultMessages = undefined;
|
|
41131
|
+
this.effectiveLocale = "";
|
|
41132
|
+
}
|
|
41133
|
+
handleNumberedChange() {
|
|
41134
|
+
this.updateRows();
|
|
41135
|
+
}
|
|
41136
|
+
onMessagesChange() {
|
|
41137
|
+
/* wired up by t9n util */
|
|
41138
|
+
}
|
|
41139
|
+
effectiveLocaleChange() {
|
|
41140
|
+
updateMessages(this);
|
|
41141
|
+
}
|
|
41142
|
+
//--------------------------------------------------------------------------
|
|
41143
|
+
//
|
|
41144
|
+
// Lifecycle
|
|
41145
|
+
//
|
|
41146
|
+
//--------------------------------------------------------------------------
|
|
41147
|
+
async componentWillLoad() {
|
|
41148
|
+
setUpLoadableComponent(this);
|
|
41149
|
+
await setUpMessages(this);
|
|
41150
|
+
this.readCellContentsToAT = /safari/i.test(getUserAgentString());
|
|
41151
|
+
this.updateRows();
|
|
41152
|
+
}
|
|
41153
|
+
componentDidLoad() {
|
|
41154
|
+
setComponentLoaded(this);
|
|
41155
|
+
}
|
|
41156
|
+
connectedCallback() {
|
|
41157
|
+
connectLocalized(this);
|
|
41158
|
+
connectMessages(this);
|
|
41159
|
+
}
|
|
41160
|
+
disconnectedCallback() {
|
|
41161
|
+
disconnectLocalized(this);
|
|
41162
|
+
disconnectMessages(this);
|
|
41163
|
+
}
|
|
41164
|
+
//--------------------------------------------------------------------------
|
|
41165
|
+
//
|
|
41166
|
+
// Event Listeners
|
|
41167
|
+
//
|
|
41168
|
+
//--------------------------------------------------------------------------
|
|
41169
|
+
calciteChipSelectListener(event) {
|
|
41170
|
+
if (event.composedPath().includes(this.el)) {
|
|
41171
|
+
this.setSelectedItems(event.target);
|
|
41172
|
+
}
|
|
41173
|
+
}
|
|
41174
|
+
calciteInternalTableRowFocusEvent(event) {
|
|
41175
|
+
const cellPosition = event["detail"].cellPosition;
|
|
41176
|
+
const rowPos = event["detail"].rowPosition;
|
|
41177
|
+
const destination = event["detail"].destination;
|
|
41178
|
+
const lastCell = event["detail"].lastCell;
|
|
41179
|
+
const visibleBody = this.bodyRows?.filter((row) => !row.hidden);
|
|
41180
|
+
const visibleAll = this.allRows?.filter((row) => !row.hidden);
|
|
41181
|
+
const lastHeadRow = this.headRows[this.headRows.length - 1]?.positionAll;
|
|
41182
|
+
const firstBodyRow = visibleBody[0]?.positionAll;
|
|
41183
|
+
const lastBodyRow = visibleBody[visibleBody.length - 1]?.positionAll;
|
|
41184
|
+
const firstFootRow = this.footRows[0]?.positionAll;
|
|
41185
|
+
const lastTableRow = visibleAll[visibleAll.length - 1]?.positionAll;
|
|
41186
|
+
const leavingHeader = destination === "next" && rowPos === lastHeadRow;
|
|
41187
|
+
const leavingFooter = destination === "previous" && rowPos === firstFootRow;
|
|
41188
|
+
const enteringHeader = destination === "previous" && rowPos === firstBodyRow;
|
|
41189
|
+
const enteringFooter = destination === "next" && rowPos === lastBodyRow;
|
|
41190
|
+
let rowPosition;
|
|
41191
|
+
switch (destination) {
|
|
41192
|
+
case "first":
|
|
41193
|
+
rowPosition = 0;
|
|
41194
|
+
break;
|
|
41195
|
+
case "last":
|
|
41196
|
+
rowPosition = lastTableRow;
|
|
41197
|
+
break;
|
|
41198
|
+
case "next":
|
|
41199
|
+
rowPosition = leavingHeader ? firstBodyRow : enteringFooter ? firstFootRow : rowPos + 1;
|
|
41200
|
+
break;
|
|
41201
|
+
case "previous":
|
|
41202
|
+
rowPosition = leavingFooter ? lastBodyRow : enteringHeader ? lastHeadRow : rowPos - 1;
|
|
41203
|
+
break;
|
|
41204
|
+
}
|
|
41205
|
+
const destinationCount = this.allRows?.find((row) => row.positionAll === rowPosition)?.cellCount;
|
|
41206
|
+
const adjustedPos = cellPosition > destinationCount ? destinationCount : cellPosition;
|
|
41207
|
+
if (rowPosition !== undefined) {
|
|
41208
|
+
this.calciteInternalTableRowFocusChange.emit({
|
|
41209
|
+
cellPosition: adjustedPos,
|
|
41210
|
+
rowPosition,
|
|
41211
|
+
destination,
|
|
41212
|
+
lastCell,
|
|
41213
|
+
});
|
|
41214
|
+
}
|
|
41215
|
+
}
|
|
41216
|
+
// --------------------------------------------------------------------------
|
|
41217
|
+
//
|
|
41218
|
+
// Render Methods
|
|
41219
|
+
//
|
|
41220
|
+
// --------------------------------------------------------------------------
|
|
41221
|
+
renderSelectionArea() {
|
|
41222
|
+
const outOfViewCount = this.selectedItems?.filter((el) => el.hidden)?.length;
|
|
41223
|
+
const localizedOutOfView = this.localizeNumber(outOfViewCount?.toString());
|
|
41224
|
+
const localizedSelectedCount = this.localizeNumber(this.selectedCount?.toString());
|
|
41225
|
+
const selectionText = `${localizedSelectedCount} ${this.messages.selected}`;
|
|
41226
|
+
const outOfView = `${localizedOutOfView} ${this.messages.hiddenSelected}`;
|
|
41227
|
+
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 }))));
|
|
41228
|
+
}
|
|
41229
|
+
renderPaginationArea() {
|
|
41230
|
+
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,
|
|
41231
|
+
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
41232
|
+
ref: (el) => (this.paginationEl = el) })));
|
|
41233
|
+
}
|
|
41234
|
+
renderTHead() {
|
|
41235
|
+
return (hAsync("thead", null, hAsync("slot", { name: SLOTS$6.tableHeader, onSlotchange: this.updateRows, ref: (el) => (this.tableHeadSlotEl = el) })));
|
|
41236
|
+
}
|
|
41237
|
+
renderTBody() {
|
|
41238
|
+
return (hAsync("tbody", null, hAsync("slot", { onSlotchange: this.updateRows, ref: (el) => (this.tableBodySlotEl = el) })));
|
|
41239
|
+
}
|
|
41240
|
+
renderTFoot() {
|
|
41241
|
+
return (hAsync("tfoot", null, hAsync("slot", { name: SLOTS$6.tableFooter, onSlotchange: this.updateRows, ref: (el) => (this.tableFootSlotEl = el) })));
|
|
41242
|
+
}
|
|
41243
|
+
render() {
|
|
41244
|
+
return (hAsync(Host, null, hAsync("div", { class: CSS$b.container }, this.selectionMode !== "none" && this.renderSelectionArea(), hAsync("div", { class: {
|
|
41245
|
+
[CSS$b.bordered]: this.bordered,
|
|
41246
|
+
[CSS$b.zebra]: this.zebra,
|
|
41247
|
+
[CSS$b.tableContainer]: true,
|
|
41248
|
+
} }, 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())));
|
|
41249
|
+
}
|
|
41250
|
+
static get assetsDirs() { return ["assets"]; }
|
|
41251
|
+
get el() { return getElement(this); }
|
|
41252
|
+
static get watchers() { return {
|
|
41253
|
+
"groupSeparator": ["handleNumberedChange"],
|
|
41254
|
+
"numbered": ["handleNumberedChange"],
|
|
41255
|
+
"numberingSystem": ["handleNumberedChange"],
|
|
41256
|
+
"pageSize": ["handleNumberedChange"],
|
|
41257
|
+
"scale": ["handleNumberedChange"],
|
|
41258
|
+
"selectionMode": ["handleNumberedChange"],
|
|
41259
|
+
"messageOverrides": ["onMessagesChange"],
|
|
41260
|
+
"effectiveLocale": ["effectiveLocaleChange"]
|
|
41261
|
+
}; }
|
|
41262
|
+
static get style() { return tableCss; }
|
|
41263
|
+
static get cmpMeta() { return {
|
|
41264
|
+
"$flags$": 9,
|
|
41265
|
+
"$tagName$": "calcite-table",
|
|
41266
|
+
"$members$": {
|
|
41267
|
+
"bordered": [516],
|
|
41268
|
+
"caption": [1],
|
|
41269
|
+
"groupSeparator": [516, "group-separator"],
|
|
41270
|
+
"layout": [513],
|
|
41271
|
+
"numbered": [516],
|
|
41272
|
+
"numberingSystem": [513, "numbering-system"],
|
|
41273
|
+
"pageSize": [514, "page-size"],
|
|
41274
|
+
"scale": [513],
|
|
41275
|
+
"selectionMode": [513, "selection-mode"],
|
|
41276
|
+
"zebra": [516],
|
|
41277
|
+
"selectedItems": [1040],
|
|
41278
|
+
"messages": [1040],
|
|
41279
|
+
"messageOverrides": [1040],
|
|
41280
|
+
"colCount": [32],
|
|
41281
|
+
"pageStartRow": [32],
|
|
41282
|
+
"selectedCount": [32],
|
|
41283
|
+
"readCellContentsToAT": [32],
|
|
41284
|
+
"defaultMessages": [32],
|
|
41285
|
+
"effectiveLocale": [32]
|
|
41286
|
+
},
|
|
41287
|
+
"$listeners$": [[0, "calciteTableRowSelect", "calciteChipSelectListener"], [0, "calciteInternalTableRowFocusRequest", "calciteInternalTableRowFocusEvent"]],
|
|
41288
|
+
"$lazyBundleId$": "-",
|
|
41289
|
+
"$attrsToReflect$": [["bordered", "bordered"], ["groupSeparator", "group-separator"], ["layout", "layout"], ["numbered", "numbered"], ["numberingSystem", "numbering-system"], ["pageSize", "page-size"], ["scale", "scale"], ["selectionMode", "selection-mode"], ["zebra", "zebra"]]
|
|
41290
|
+
}; }
|
|
41291
|
+
}
|
|
41292
|
+
|
|
41293
|
+
const CSS$a = {
|
|
41294
|
+
numberCell: "number-cell",
|
|
41295
|
+
footerCell: "footer-cell",
|
|
41296
|
+
selectionCell: "selection-cell",
|
|
41297
|
+
selectedCell: "selected-cell",
|
|
41298
|
+
assistiveText: "assistive-text",
|
|
41299
|
+
};
|
|
41300
|
+
|
|
41301
|
+
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}";
|
|
41302
|
+
|
|
41303
|
+
/**
|
|
41304
|
+
* @slot - A slot for adding content, usually text content.
|
|
41305
|
+
*/
|
|
41306
|
+
class TableCell {
|
|
41307
|
+
constructor(hostRef) {
|
|
41308
|
+
registerInstance(this, hostRef);
|
|
41309
|
+
this.updateScreenReaderContentsText = () => {
|
|
41310
|
+
this.contentsText = this.el.textContent;
|
|
41311
|
+
};
|
|
41312
|
+
this.onContainerBlur = () => {
|
|
41313
|
+
this.focused = false;
|
|
41314
|
+
};
|
|
41315
|
+
this.onContainerFocus = () => {
|
|
41316
|
+
this.focused = true;
|
|
41317
|
+
};
|
|
41318
|
+
this.alignment = "start";
|
|
41319
|
+
this.colSpan = undefined;
|
|
41320
|
+
this.rowSpan = undefined;
|
|
41321
|
+
this.disabled = undefined;
|
|
41322
|
+
this.numberCell = undefined;
|
|
41323
|
+
this.parentRowIsSelected = undefined;
|
|
41324
|
+
this.parentRowPositionLocalized = undefined;
|
|
41325
|
+
this.parentRowType = undefined;
|
|
41326
|
+
this.positionInRow = undefined;
|
|
41327
|
+
this.readCellContentsToAT = undefined;
|
|
41328
|
+
this.scale = "m";
|
|
41329
|
+
this.selectionCell = undefined;
|
|
41330
|
+
this.messages = undefined;
|
|
41331
|
+
this.messageOverrides = undefined;
|
|
41332
|
+
this.contentsText = "";
|
|
41333
|
+
this.defaultMessages = undefined;
|
|
41334
|
+
this.focused = false;
|
|
41335
|
+
this.selectionText = "";
|
|
41336
|
+
this.effectiveLocale = "";
|
|
41337
|
+
}
|
|
41338
|
+
onSelectedChange() {
|
|
41339
|
+
this.updateScreenReaderSelectionText();
|
|
41340
|
+
}
|
|
41341
|
+
onMessagesChange() {
|
|
41342
|
+
/* wired up by t9n util */
|
|
41343
|
+
}
|
|
41344
|
+
effectiveLocaleChange() {
|
|
41345
|
+
updateMessages(this);
|
|
41346
|
+
}
|
|
41347
|
+
// --------------------------------------------------------------------------
|
|
41348
|
+
//
|
|
41349
|
+
// Lifecycle
|
|
41350
|
+
//
|
|
41351
|
+
// --------------------------------------------------------------------------
|
|
41352
|
+
async componentWillLoad() {
|
|
41353
|
+
setUpLoadableComponent(this);
|
|
41354
|
+
await setUpMessages(this);
|
|
41355
|
+
this.updateScreenReaderContentsText();
|
|
41356
|
+
this.updateScreenReaderSelectionText();
|
|
41357
|
+
}
|
|
41358
|
+
componentDidLoad() {
|
|
41359
|
+
setComponentLoaded(this);
|
|
41360
|
+
}
|
|
41361
|
+
connectedCallback() {
|
|
41362
|
+
connectLocalized(this);
|
|
41363
|
+
connectMessages(this);
|
|
41364
|
+
connectInteractive(this);
|
|
41365
|
+
}
|
|
41366
|
+
componentDidRender() {
|
|
41367
|
+
updateHostInteraction(this);
|
|
41368
|
+
}
|
|
41369
|
+
disconnectedCallback() {
|
|
41370
|
+
disconnectLocalized(this);
|
|
41371
|
+
disconnectMessages(this);
|
|
41372
|
+
disconnectInteractive(this);
|
|
41373
|
+
}
|
|
41374
|
+
//--------------------------------------------------------------------------
|
|
41375
|
+
//
|
|
41376
|
+
// Public Methods
|
|
41377
|
+
//
|
|
41378
|
+
// --------------------------------------------------------------------------
|
|
41379
|
+
/** Sets focus on the component. */
|
|
41380
|
+
async setFocus() {
|
|
41381
|
+
await componentFocusable(this);
|
|
41382
|
+
this.containerEl.focus();
|
|
41383
|
+
}
|
|
41384
|
+
// --------------------------------------------------------------------------
|
|
41385
|
+
//
|
|
41386
|
+
// Private Methods
|
|
41387
|
+
//
|
|
41388
|
+
// --------------------------------------------------------------------------
|
|
41389
|
+
updateScreenReaderSelectionText() {
|
|
41390
|
+
const selectedText = `${this.messages?.row} ${this.parentRowPositionLocalized} ${this.messages?.selected} ${this.messages?.keyboardDeselect}`;
|
|
41391
|
+
const unselectedText = `${this.messages?.row} ${this.parentRowPositionLocalized} ${this.messages?.unselected} ${this.messages?.keyboardSelect}`;
|
|
41392
|
+
this.selectionText = this.parentRowIsSelected ? selectedText : unselectedText;
|
|
41393
|
+
}
|
|
41394
|
+
//--------------------------------------------------------------------------
|
|
41395
|
+
//
|
|
41396
|
+
// Render Methods
|
|
41397
|
+
//
|
|
41398
|
+
//--------------------------------------------------------------------------
|
|
41399
|
+
render() {
|
|
41400
|
+
return (hAsync(Host, null, hAsync("td", { "aria-disabled": this.disabled, class: {
|
|
41401
|
+
[CSS$a.footerCell]: this.parentRowType === "foot",
|
|
41402
|
+
[CSS$a.numberCell]: this.numberCell,
|
|
41403
|
+
[CSS$a.selectionCell]: this.selectionCell,
|
|
41404
|
+
[CSS$a.selectedCell]: this.parentRowIsSelected,
|
|
41405
|
+
}, colSpan: this.colSpan, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, role: "gridcell", rowSpan: this.rowSpan, tabIndex: this.disabled ? -1 : 0,
|
|
41406
|
+
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
41407
|
+
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 }))));
|
|
41408
|
+
}
|
|
41409
|
+
static get assetsDirs() { return ["assets"]; }
|
|
41410
|
+
get el() { return getElement(this); }
|
|
41411
|
+
static get watchers() { return {
|
|
41412
|
+
"parentRowIsSelected": ["onSelectedChange"],
|
|
41413
|
+
"messageOverrides": ["onMessagesChange"],
|
|
41414
|
+
"effectiveLocale": ["effectiveLocaleChange"]
|
|
41415
|
+
}; }
|
|
41416
|
+
static get style() { return tableCellCss; }
|
|
41417
|
+
static get cmpMeta() { return {
|
|
41418
|
+
"$flags$": 9,
|
|
41419
|
+
"$tagName$": "calcite-table-cell",
|
|
41420
|
+
"$members$": {
|
|
41421
|
+
"alignment": [513],
|
|
41422
|
+
"colSpan": [514, "col-span"],
|
|
41423
|
+
"rowSpan": [514, "row-span"],
|
|
41424
|
+
"disabled": [4],
|
|
41425
|
+
"numberCell": [4, "number-cell"],
|
|
41426
|
+
"parentRowIsSelected": [4, "parent-row-is-selected"],
|
|
41427
|
+
"parentRowPositionLocalized": [1, "parent-row-position-localized"],
|
|
41428
|
+
"parentRowType": [1, "parent-row-type"],
|
|
41429
|
+
"positionInRow": [2, "position-in-row"],
|
|
41430
|
+
"readCellContentsToAT": [4, "read-cell-contents-to-a-t"],
|
|
41431
|
+
"scale": [1],
|
|
41432
|
+
"selectionCell": [4, "selection-cell"],
|
|
41433
|
+
"messages": [1040],
|
|
41434
|
+
"messageOverrides": [1040],
|
|
41435
|
+
"contentsText": [32],
|
|
41436
|
+
"defaultMessages": [32],
|
|
41437
|
+
"focused": [32],
|
|
41438
|
+
"selectionText": [32],
|
|
41439
|
+
"effectiveLocale": [32],
|
|
41440
|
+
"setFocus": [64]
|
|
41441
|
+
},
|
|
41442
|
+
"$listeners$": undefined,
|
|
41443
|
+
"$lazyBundleId$": "-",
|
|
41444
|
+
"$attrsToReflect$": [["alignment", "alignment"], ["colSpan", "col-span"], ["rowSpan", "row-span"]]
|
|
41445
|
+
}; }
|
|
41446
|
+
}
|
|
41447
|
+
|
|
41448
|
+
const CSS$9 = {
|
|
41449
|
+
numberCell: "number-cell",
|
|
41450
|
+
selectionCell: "selection-cell",
|
|
41451
|
+
bodyRow: "body-row",
|
|
41452
|
+
footerRow: "footer-row",
|
|
41453
|
+
heading: "heading",
|
|
41454
|
+
description: "description",
|
|
41455
|
+
multipleSelectionCell: "cell--multiple-selection",
|
|
41456
|
+
assistiveText: "assistive-text",
|
|
41457
|
+
active: "active",
|
|
41458
|
+
};
|
|
41459
|
+
|
|
41460
|
+
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)}";
|
|
41461
|
+
|
|
41462
|
+
class TableHeader {
|
|
41463
|
+
constructor(hostRef) {
|
|
41464
|
+
registerInstance(this, hostRef);
|
|
41465
|
+
this.alignment = "start";
|
|
41466
|
+
this.colSpan = undefined;
|
|
41467
|
+
this.description = undefined;
|
|
41468
|
+
this.heading = undefined;
|
|
41469
|
+
this.rowSpan = undefined;
|
|
41470
|
+
this.numberCell = false;
|
|
41471
|
+
this.parentRowPosition = undefined;
|
|
41472
|
+
this.parentRowType = undefined;
|
|
41473
|
+
this.positionInRow = undefined;
|
|
41474
|
+
this.scale = undefined;
|
|
41475
|
+
this.selectedRowCount = undefined;
|
|
41476
|
+
this.selectedRowCountLocalized = undefined;
|
|
41477
|
+
this.selectionCell = false;
|
|
41478
|
+
this.selectionMode = undefined;
|
|
41479
|
+
this.bodyRowCount = undefined;
|
|
41480
|
+
this.messages = undefined;
|
|
41481
|
+
this.messageOverrides = undefined;
|
|
41482
|
+
this.defaultMessages = undefined;
|
|
41483
|
+
this.screenReaderText = "";
|
|
41484
|
+
this.effectiveLocale = "";
|
|
41485
|
+
}
|
|
41486
|
+
onSelectedChange() {
|
|
41487
|
+
this.updateScreenReaderText();
|
|
41488
|
+
}
|
|
41489
|
+
onMessagesChange() {
|
|
41490
|
+
/* wired up by t9n util */
|
|
41491
|
+
}
|
|
41492
|
+
// --------------------------------------------------------------------------
|
|
41493
|
+
//
|
|
41494
|
+
// Lifecycle
|
|
41495
|
+
//
|
|
41496
|
+
// --------------------------------------------------------------------------
|
|
41497
|
+
async componentWillLoad() {
|
|
41498
|
+
setUpLoadableComponent(this);
|
|
41499
|
+
await setUpMessages(this);
|
|
41500
|
+
this.updateScreenReaderText();
|
|
41501
|
+
}
|
|
41502
|
+
componentDidLoad() {
|
|
41503
|
+
setComponentLoaded(this);
|
|
41504
|
+
}
|
|
41505
|
+
connectedCallback() {
|
|
41506
|
+
connectLocalized(this);
|
|
41507
|
+
connectMessages(this);
|
|
41508
|
+
}
|
|
41509
|
+
disconnectedCallback() {
|
|
41510
|
+
disconnectLocalized(this);
|
|
41511
|
+
disconnectMessages(this);
|
|
41512
|
+
}
|
|
41513
|
+
effectiveLocaleChange() {
|
|
41514
|
+
updateMessages(this);
|
|
41515
|
+
}
|
|
41516
|
+
// --------------------------------------------------------------------------
|
|
41517
|
+
//
|
|
41518
|
+
// Public Methods
|
|
41519
|
+
//
|
|
41520
|
+
// --------------------------------------------------------------------------
|
|
41521
|
+
/** Sets focus on the component. */
|
|
41522
|
+
async setFocus() {
|
|
41523
|
+
await componentFocusable(this);
|
|
41524
|
+
this.containerEl.focus();
|
|
41525
|
+
}
|
|
41526
|
+
// --------------------------------------------------------------------------
|
|
41527
|
+
//
|
|
41528
|
+
// Private Methods
|
|
41529
|
+
//
|
|
41530
|
+
// --------------------------------------------------------------------------
|
|
41531
|
+
updateScreenReaderText() {
|
|
41532
|
+
let text = "";
|
|
41533
|
+
const sharedText = `${this.selectedRowCountLocalized} ${this.messages?.selected}`;
|
|
41534
|
+
if (this.numberCell) {
|
|
41535
|
+
text = this.messages?.rowNumber;
|
|
41536
|
+
}
|
|
41537
|
+
else if (this.selectionMode === "single") {
|
|
41538
|
+
text = `${this.messages?.selectionColumn}. ${sharedText}`;
|
|
41539
|
+
}
|
|
41540
|
+
else if (this.bodyRowCount === this.selectedRowCount) {
|
|
41541
|
+
text = `${this.messages?.selectionColumn}. ${this.messages?.all} ${sharedText} ${this.messages?.keyboardDeselectAll}`;
|
|
41542
|
+
}
|
|
41543
|
+
else {
|
|
41544
|
+
text = `${this.messages?.selectionColumn}. ${sharedText} ${this.messages?.keyboardSelectAll}`;
|
|
41545
|
+
}
|
|
41546
|
+
this.screenReaderText = text;
|
|
41547
|
+
}
|
|
41548
|
+
//--------------------------------------------------------------------------
|
|
41549
|
+
//
|
|
41550
|
+
// Render Methods
|
|
41551
|
+
//
|
|
41552
|
+
//--------------------------------------------------------------------------
|
|
41553
|
+
render() {
|
|
41554
|
+
const scope = this.rowSpan
|
|
41555
|
+
? "rowgroup"
|
|
41556
|
+
: this.colSpan
|
|
41557
|
+
? "colgroup"
|
|
41558
|
+
: this.parentRowType === "body"
|
|
41559
|
+
? "row"
|
|
41560
|
+
: "col";
|
|
41561
|
+
const allSelected = this.selectedRowCount === this.bodyRowCount;
|
|
41562
|
+
const selectionIcon = allSelected ? "check-square-f" : "check-square";
|
|
41563
|
+
return (hAsync(Host, null, hAsync("th", { "aria-colindex": this.parentRowType !== "body" ? this.positionInRow : "", class: {
|
|
41564
|
+
[CSS$9.bodyRow]: this.parentRowType === "body",
|
|
41565
|
+
[CSS$9.footerRow]: this.parentRowType === "foot",
|
|
41566
|
+
[CSS$9.numberCell]: this.numberCell,
|
|
41567
|
+
[CSS$9.selectionCell]: this.selectionCell,
|
|
41568
|
+
[CSS$9.multipleSelectionCell]: this.selectionMode === "multiple",
|
|
41569
|
+
}, colSpan: this.colSpan, role: "columnheader", rowSpan: this.rowSpan, scope: scope, tabIndex: 0,
|
|
41570
|
+
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
41571
|
+
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)))));
|
|
41572
|
+
}
|
|
41573
|
+
static get assetsDirs() { return ["assets"]; }
|
|
41574
|
+
get el() { return getElement(this); }
|
|
41575
|
+
static get watchers() { return {
|
|
41576
|
+
"selectedRowCount": ["onSelectedChange"],
|
|
41577
|
+
"selectedRowCountLocalized": ["onSelectedChange"],
|
|
41578
|
+
"messageOverrides": ["onMessagesChange"],
|
|
41579
|
+
"effectiveLocale": ["effectiveLocaleChange"]
|
|
41580
|
+
}; }
|
|
41581
|
+
static get style() { return tableHeaderCss; }
|
|
41582
|
+
static get cmpMeta() { return {
|
|
41583
|
+
"$flags$": 9,
|
|
41584
|
+
"$tagName$": "calcite-table-header",
|
|
41585
|
+
"$members$": {
|
|
41586
|
+
"alignment": [513],
|
|
41587
|
+
"colSpan": [514, "col-span"],
|
|
41588
|
+
"description": [513],
|
|
41589
|
+
"heading": [513],
|
|
41590
|
+
"rowSpan": [514, "row-span"],
|
|
41591
|
+
"numberCell": [4, "number-cell"],
|
|
41592
|
+
"parentRowPosition": [2, "parent-row-position"],
|
|
41593
|
+
"parentRowType": [1, "parent-row-type"],
|
|
41594
|
+
"positionInRow": [2, "position-in-row"],
|
|
41595
|
+
"scale": [1],
|
|
41596
|
+
"selectedRowCount": [2, "selected-row-count"],
|
|
41597
|
+
"selectedRowCountLocalized": [1, "selected-row-count-localized"],
|
|
41598
|
+
"selectionCell": [4, "selection-cell"],
|
|
41599
|
+
"selectionMode": [1, "selection-mode"],
|
|
41600
|
+
"bodyRowCount": [2, "body-row-count"],
|
|
41601
|
+
"messages": [1040],
|
|
41602
|
+
"messageOverrides": [1040],
|
|
41603
|
+
"defaultMessages": [32],
|
|
41604
|
+
"screenReaderText": [32],
|
|
41605
|
+
"effectiveLocale": [32],
|
|
41606
|
+
"setFocus": [64]
|
|
41607
|
+
},
|
|
41608
|
+
"$listeners$": undefined,
|
|
41609
|
+
"$lazyBundleId$": "-",
|
|
41610
|
+
"$attrsToReflect$": [["alignment", "alignment"], ["colSpan", "col-span"], ["description", "description"], ["heading", "heading"], ["rowSpan", "row-span"]]
|
|
41611
|
+
}; }
|
|
41612
|
+
}
|
|
41613
|
+
|
|
41614
|
+
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)}";
|
|
41615
|
+
|
|
41616
|
+
/**
|
|
41617
|
+
* @slot - A slot for adding `calcite-table-cell` or `calcite-table-header` elements.
|
|
41618
|
+
*/
|
|
41619
|
+
class TableRow {
|
|
41620
|
+
constructor(hostRef) {
|
|
41621
|
+
registerInstance(this, hostRef);
|
|
41622
|
+
this.calciteTableRowSelect = createEvent(this, "calciteTableRowSelect", 6);
|
|
41623
|
+
this.calciteInternalTableRowFocusRequest = createEvent(this, "calciteInternalTableRowFocusRequest", 6);
|
|
41624
|
+
this.rowCells = [];
|
|
41625
|
+
this.emitTableRowFocusRequest = (cellPosition, rowPosition, destination, lastCell) => {
|
|
41626
|
+
this.calciteInternalTableRowFocusRequest.emit({
|
|
41627
|
+
cellPosition,
|
|
41628
|
+
rowPosition,
|
|
41629
|
+
destination,
|
|
41630
|
+
lastCell,
|
|
41631
|
+
});
|
|
41632
|
+
};
|
|
41633
|
+
this.updateCells = () => {
|
|
41634
|
+
const slottedCells = this.tableRowSlotEl
|
|
41635
|
+
?.assignedElements({ flatten: true })
|
|
41636
|
+
?.filter((el) => el.matches("calcite-table-cell") || el.matches("calcite-table-header"));
|
|
41637
|
+
const renderedCells = Array.from(this.tableRowEl?.querySelectorAll("calcite-table-header, calcite-table-cell"))?.filter((el) => el.numberCell || el.selectionCell);
|
|
41638
|
+
const cells = renderedCells ? renderedCells.concat(slottedCells) : slottedCells;
|
|
41639
|
+
if (cells.length > 0) {
|
|
41640
|
+
cells?.forEach((cell, index) => {
|
|
41641
|
+
cell.positionInRow = index + 1;
|
|
41642
|
+
cell.parentRowType = this.rowType;
|
|
41643
|
+
cell.scale = this.scale;
|
|
41644
|
+
if (cell.nodeName === "CALCITE-TABLE-CELL") {
|
|
41645
|
+
cell.readCellContentsToAT = this.readCellContentsToAT;
|
|
41646
|
+
cell.disabled = this.disabled;
|
|
41647
|
+
cell.parentRowIsSelected = this.selected;
|
|
41648
|
+
}
|
|
41649
|
+
});
|
|
41650
|
+
}
|
|
41651
|
+
this.rowCells =
|
|
41652
|
+
cells || [];
|
|
41653
|
+
this.cellCount = cells?.length;
|
|
41654
|
+
};
|
|
41655
|
+
this.handleSelectionOfRow = () => {
|
|
41656
|
+
this.calciteTableRowSelect.emit();
|
|
41657
|
+
};
|
|
41658
|
+
this.handleKeyboardSelection = (event) => {
|
|
41659
|
+
if (isActivationKey(event.key)) {
|
|
41660
|
+
if (event.key === " ") {
|
|
41661
|
+
event.preventDefault();
|
|
41662
|
+
}
|
|
41663
|
+
this.handleSelectionOfRow();
|
|
41664
|
+
}
|
|
41665
|
+
};
|
|
41666
|
+
this.disabled = false;
|
|
41667
|
+
this.selected = false;
|
|
41668
|
+
this.cellCount = undefined;
|
|
41669
|
+
this.rowType = undefined;
|
|
41670
|
+
this.numbered = false;
|
|
41671
|
+
this.positionSection = undefined;
|
|
41672
|
+
this.positionSectionLocalized = undefined;
|
|
41673
|
+
this.positionAll = undefined;
|
|
41674
|
+
this.readCellContentsToAT = undefined;
|
|
41675
|
+
this.scale = undefined;
|
|
41676
|
+
this.selectionMode = "none";
|
|
41677
|
+
this.selectedRowCount = undefined;
|
|
41678
|
+
this.selectedRowCountLocalized = undefined;
|
|
41679
|
+
this.bodyRowCount = undefined;
|
|
41680
|
+
this.effectiveLocale = "";
|
|
41681
|
+
}
|
|
41682
|
+
handleCellChanges() {
|
|
41683
|
+
if (this.tableRowEl && this.rowCells.length > 0) {
|
|
41684
|
+
this.updateCells();
|
|
41685
|
+
}
|
|
41686
|
+
}
|
|
41687
|
+
handleDelayedCellChanges() {
|
|
41688
|
+
if (this.tableRowEl && this.rowCells.length > 0) {
|
|
41689
|
+
requestAnimationFrame(() => this.updateCells());
|
|
41690
|
+
}
|
|
41691
|
+
}
|
|
41692
|
+
//--------------------------------------------------------------------------
|
|
41693
|
+
//
|
|
41694
|
+
// Lifecycle
|
|
41695
|
+
//
|
|
41696
|
+
//--------------------------------------------------------------------------
|
|
41697
|
+
componentDidLoad() {
|
|
41698
|
+
if (this.tableRowEl && this.rowCells.length > 0) {
|
|
41699
|
+
this.updateCells();
|
|
41700
|
+
}
|
|
41701
|
+
}
|
|
41702
|
+
connectedCallback() {
|
|
41703
|
+
connectInteractive(this);
|
|
41704
|
+
}
|
|
41705
|
+
componentDidRender() {
|
|
41706
|
+
updateHostInteraction(this);
|
|
41707
|
+
}
|
|
41708
|
+
disconnectedCallback() {
|
|
41709
|
+
disconnectInteractive(this);
|
|
41710
|
+
}
|
|
41711
|
+
//--------------------------------------------------------------------------
|
|
41712
|
+
//
|
|
41713
|
+
// Event Listeners
|
|
41714
|
+
//
|
|
41715
|
+
//--------------------------------------------------------------------------
|
|
41716
|
+
calciteInternalTableRowFocusChangeHandler(event) {
|
|
41717
|
+
if (event.target.contains(this.el)) {
|
|
41718
|
+
const position = event.detail.cellPosition;
|
|
41719
|
+
const rowPosition = event.detail.rowPosition;
|
|
41720
|
+
const destination = event.detail.destination;
|
|
41721
|
+
const lastCell = event.detail.lastCell;
|
|
41722
|
+
if (rowPosition === this.positionAll) {
|
|
41723
|
+
if (this.disabled) {
|
|
41724
|
+
const deflectDirection = destination === "last" ? "previous" : destination === "first" ? "next" : destination;
|
|
41725
|
+
this.emitTableRowFocusRequest(position, this.positionAll, deflectDirection);
|
|
41726
|
+
return;
|
|
41727
|
+
}
|
|
41728
|
+
const cellPosition = lastCell
|
|
41729
|
+
? this.rowCells[this.rowCells.length - 1]
|
|
41730
|
+
: this.rowCells?.find((_, index) => index + 1 === position);
|
|
41731
|
+
if (cellPosition) {
|
|
41732
|
+
cellPosition.setFocus();
|
|
41733
|
+
}
|
|
41734
|
+
}
|
|
41735
|
+
}
|
|
41736
|
+
}
|
|
41737
|
+
//--------------------------------------------------------------------------
|
|
41738
|
+
//
|
|
41739
|
+
// Private Methods
|
|
41740
|
+
//
|
|
41741
|
+
//--------------------------------------------------------------------------
|
|
41742
|
+
keyDownHandler(event) {
|
|
41743
|
+
const el = event.target;
|
|
41744
|
+
const key = event.key;
|
|
41745
|
+
const isControl = event.ctrlKey;
|
|
41746
|
+
const cells = this.rowCells;
|
|
41747
|
+
if (el.matches("calcite-table-cell") || el.matches("calcite-table-header")) {
|
|
41748
|
+
switch (key) {
|
|
41749
|
+
case "ArrowUp":
|
|
41750
|
+
this.emitTableRowFocusRequest(el.positionInRow, this.positionAll, "previous");
|
|
41751
|
+
event.preventDefault();
|
|
41752
|
+
break;
|
|
41753
|
+
case "ArrowDown":
|
|
41754
|
+
this.emitTableRowFocusRequest(el.positionInRow, this.positionAll, "next");
|
|
41755
|
+
event.preventDefault();
|
|
41756
|
+
break;
|
|
41757
|
+
case "PageUp":
|
|
41758
|
+
this.emitTableRowFocusRequest(el.positionInRow, this.positionAll, "first");
|
|
41759
|
+
event.preventDefault();
|
|
41760
|
+
break;
|
|
41761
|
+
case "PageDown":
|
|
41762
|
+
this.emitTableRowFocusRequest(el.positionInRow, this.positionAll, "last");
|
|
41763
|
+
event.preventDefault();
|
|
41764
|
+
break;
|
|
41765
|
+
case "ArrowLeft":
|
|
41766
|
+
focusElementInGroup(cells, el, "previous", false);
|
|
41767
|
+
event.preventDefault();
|
|
41768
|
+
break;
|
|
41769
|
+
case "ArrowRight":
|
|
41770
|
+
focusElementInGroup(cells, el, "next", false);
|
|
41771
|
+
event.preventDefault();
|
|
41772
|
+
break;
|
|
41773
|
+
case "Home":
|
|
41774
|
+
if (isControl) {
|
|
41775
|
+
this.emitTableRowFocusRequest(1, this.positionAll, "first");
|
|
41776
|
+
event.preventDefault();
|
|
41777
|
+
}
|
|
41778
|
+
else {
|
|
41779
|
+
focusElementInGroup(cells, el, "first", false);
|
|
41780
|
+
event.preventDefault();
|
|
41781
|
+
}
|
|
41782
|
+
break;
|
|
41783
|
+
case "End":
|
|
41784
|
+
if (isControl) {
|
|
41785
|
+
this.emitTableRowFocusRequest(this.rowCells?.length, this.positionAll, "last", true);
|
|
41786
|
+
event.preventDefault();
|
|
41787
|
+
}
|
|
41788
|
+
else {
|
|
41789
|
+
focusElementInGroup(cells, el, "last", false);
|
|
41790
|
+
event.preventDefault();
|
|
41791
|
+
}
|
|
41792
|
+
break;
|
|
41793
|
+
}
|
|
41794
|
+
}
|
|
41795
|
+
}
|
|
41796
|
+
//--------------------------------------------------------------------------
|
|
41797
|
+
//
|
|
41798
|
+
// Render Methods
|
|
41799
|
+
//
|
|
41800
|
+
//--------------------------------------------------------------------------
|
|
41801
|
+
renderSelectionIcon() {
|
|
41802
|
+
const icon = this.selectionMode === "multiple" && this.selected
|
|
41803
|
+
? "check-square-f"
|
|
41804
|
+
: this.selectionMode === "multiple"
|
|
41805
|
+
? "square"
|
|
41806
|
+
: this.selected
|
|
41807
|
+
? "circle-f"
|
|
41808
|
+
: "circle";
|
|
41809
|
+
return hAsync("calcite-icon", { icon: icon, scale: this.scale === "l" ? "m" : "s" });
|
|
41810
|
+
}
|
|
41811
|
+
renderSelectableCell() {
|
|
41812
|
+
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 }));
|
|
41813
|
+
}
|
|
41814
|
+
renderNumberedCell() {
|
|
41815
|
+
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 }));
|
|
41816
|
+
}
|
|
41817
|
+
render() {
|
|
41818
|
+
return (hAsync(Host, null, hAsync("tr", { "aria-disabled": this.disabled, "aria-rowindex": this.positionAll + 1, "aria-selected": this.selected, onKeyDown: (event) => this.keyDownHandler(event),
|
|
41819
|
+
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
41820
|
+
ref: (el) => (this.tableRowEl = el) }, this.numbered && this.renderNumberedCell(), this.selectionMode !== "none" && this.renderSelectableCell(), hAsync("slot", { onSlotchange: this.updateCells, ref: (el) => (this.tableRowSlotEl = el) }))));
|
|
41821
|
+
}
|
|
41822
|
+
get el() { return getElement(this); }
|
|
41823
|
+
static get watchers() { return {
|
|
41824
|
+
"bodyRowCount": ["handleCellChanges"],
|
|
41825
|
+
"scale": ["handleCellChanges"],
|
|
41826
|
+
"selected": ["handleCellChanges"],
|
|
41827
|
+
"selectedRowCount": ["handleCellChanges"],
|
|
41828
|
+
"numbered": ["handleDelayedCellChanges"],
|
|
41829
|
+
"selectionMode": ["handleDelayedCellChanges"]
|
|
41830
|
+
}; }
|
|
41831
|
+
static get style() { return tableRowCss; }
|
|
41832
|
+
static get cmpMeta() { return {
|
|
41833
|
+
"$flags$": 9,
|
|
41834
|
+
"$tagName$": "calcite-table-row",
|
|
41835
|
+
"$members$": {
|
|
41836
|
+
"disabled": [516],
|
|
41837
|
+
"selected": [516],
|
|
41838
|
+
"cellCount": [1026, "cell-count"],
|
|
41839
|
+
"rowType": [1, "row-type"],
|
|
41840
|
+
"numbered": [4],
|
|
41841
|
+
"positionSection": [2, "position-section"],
|
|
41842
|
+
"positionSectionLocalized": [1, "position-section-localized"],
|
|
41843
|
+
"positionAll": [2, "position-all"],
|
|
41844
|
+
"readCellContentsToAT": [4, "read-cell-contents-to-a-t"],
|
|
41845
|
+
"scale": [1],
|
|
41846
|
+
"selectionMode": [1, "selection-mode"],
|
|
41847
|
+
"selectedRowCount": [2, "selected-row-count"],
|
|
41848
|
+
"selectedRowCountLocalized": [1, "selected-row-count-localized"],
|
|
41849
|
+
"bodyRowCount": [2, "body-row-count"],
|
|
41850
|
+
"effectiveLocale": [32]
|
|
41851
|
+
},
|
|
41852
|
+
"$listeners$": [[4, "calciteInternalTableRowFocusChange", "calciteInternalTableRowFocusChangeHandler"]],
|
|
41853
|
+
"$lazyBundleId$": "-",
|
|
41854
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["selected", "selected"]]
|
|
41855
|
+
}; }
|
|
41856
|
+
}
|
|
41857
|
+
|
|
40981
41858
|
const SLOTS$5 = {
|
|
40982
41859
|
titleGroup: "title-group",
|
|
40983
41860
|
};
|
|
@@ -44373,19 +45250,19 @@ class ValueListItem {
|
|
|
44373
45250
|
renderActionsEnd() {
|
|
44374
45251
|
const { el } = this;
|
|
44375
45252
|
const hasActionsEnd = getSlotted(el, SLOTS.actionsEnd);
|
|
44376
|
-
return hasActionsEnd ? (hAsync("slot", { name: SLOTS.actionsEnd, slot: SLOTS$
|
|
45253
|
+
return hasActionsEnd ? (hAsync("slot", { name: SLOTS.actionsEnd, slot: SLOTS$b.actionsEnd })) : null;
|
|
44377
45254
|
}
|
|
44378
45255
|
renderActionsStart() {
|
|
44379
45256
|
const { el } = this;
|
|
44380
45257
|
const hasActionsStart = getSlotted(el, SLOTS.actionsStart);
|
|
44381
|
-
return hasActionsStart ? (hAsync("slot", { name: SLOTS.actionsStart, slot: SLOTS$
|
|
45258
|
+
return hasActionsStart ? (hAsync("slot", { name: SLOTS.actionsStart, slot: SLOTS$b.actionsStart })) : null;
|
|
44382
45259
|
}
|
|
44383
45260
|
renderHandle() {
|
|
44384
45261
|
const { icon, iconFlipRtl } = this;
|
|
44385
45262
|
if (icon === ICON_TYPES$1.grip) {
|
|
44386
45263
|
return (hAsync("span", { class: {
|
|
44387
|
-
[CSS$
|
|
44388
|
-
[CSS$
|
|
45264
|
+
[CSS$q.handle]: true,
|
|
45265
|
+
[CSS$q.handleActivated]: this.handleActivated,
|
|
44389
45266
|
}, "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
45267
|
}
|
|
44391
45268
|
}
|
|
@@ -44510,6 +45387,10 @@ registerComponents([
|
|
|
44510
45387
|
Tab,
|
|
44511
45388
|
TabNav,
|
|
44512
45389
|
TabTitle,
|
|
45390
|
+
Table,
|
|
45391
|
+
TableCell,
|
|
45392
|
+
TableHeader,
|
|
45393
|
+
TableRow,
|
|
44513
45394
|
Tabs,
|
|
44514
45395
|
TextArea,
|
|
44515
45396
|
Tile,
|