@esri/calcite-components 1.9.0-next.8 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/assets/icon/projectTemplate16.json +1 -0
- package/dist/calcite/assets/icon/projectTemplate24.json +1 -0
- package/dist/calcite/assets/icon/projectTemplate32.json +1 -0
- package/dist/calcite/assets/panel/t9n/index.d.ts +2 -0
- package/dist/calcite/assets/panel/t9n/messages.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ar.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_bg.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_bs.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ca.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_cs.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_da.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_de.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_el.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_en.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_es.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_et.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_fi.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_fr.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_he.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_hr.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_hu.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_id.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_it.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ja.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ko.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_lt.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_lv.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_nl.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_no.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_pl.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_pt-BR.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_pt-PT.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ro.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_ru.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_sk.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_sl.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_sr.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_sv.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_th.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_tr.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_uk.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_vi.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_zh-CN.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_zh-HK.json +3 -1
- package/dist/calcite/assets/panel/t9n/messages_zh-TW.json +3 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +2 -2
- package/dist/calcite/{p-fab78e6a.js → p-006493d1.js} +2 -2
- package/dist/calcite/p-00db4271.js +6 -0
- package/dist/calcite/p-0101cd35.entry.js +6 -0
- package/dist/calcite/{p-ec10daf9.js → p-01ff37f8.js} +2 -2
- package/dist/calcite/{p-4f82efac.js → p-07abef94.js} +2 -2
- package/dist/calcite/{p-3012d1b0.entry.js → p-0e3699d8.entry.js} +2 -2
- package/dist/calcite/p-1031f74f.entry.js +6 -0
- package/dist/calcite/{p-cd86d0e8.entry.js → p-116a271d.entry.js} +2 -2
- package/dist/calcite/{p-92683f8a.js → p-11b4b24c.js} +2 -2
- package/dist/calcite/{p-4696e7f0.entry.js → p-1259ee6f.entry.js} +2 -2
- package/dist/calcite/p-1269d61d.js +6 -0
- package/dist/calcite/{p-654f43eb.js → p-15102604.js} +2 -2
- package/dist/calcite/{p-ab30b3cc.entry.js → p-158d43f6.entry.js} +2 -2
- package/dist/calcite/{p-fa744bdf.entry.js → p-163cb486.entry.js} +2 -2
- package/dist/calcite/{p-9bd3aece.entry.js → p-1666df3b.entry.js} +2 -2
- package/dist/calcite/{p-4aeaba09.js → p-18f8fd26.js} +2 -2
- package/dist/calcite/{p-8ff945e3.entry.js → p-19019a98.entry.js} +2 -2
- package/dist/calcite/p-1a700b74.js +6 -0
- package/dist/calcite/{p-58ae7be7.js → p-20dabe77.js} +1 -1
- package/dist/calcite/{p-b31be1ce.entry.js → p-22d68bf2.entry.js} +2 -2
- package/dist/calcite/{p-bc7853d9.entry.js → p-22e3ea15.entry.js} +2 -2
- package/dist/calcite/{p-22965393.entry.js → p-2378ba35.entry.js} +2 -2
- package/dist/calcite/{p-6bba9ead.js → p-25234921.js} +2 -2
- package/dist/calcite/{p-6fec31e2.js → p-2867ddf5.js} +2 -2
- package/dist/calcite/{p-4eb41dc7.js → p-2b457a58.js} +2 -2
- package/dist/calcite/{p-6e78aca2.entry.js → p-2c0a1b59.entry.js} +2 -2
- package/dist/calcite/p-2cb0fbe8.js +6 -0
- package/dist/calcite/{p-23c42c85.js → p-2dee74d4.js} +2 -2
- package/dist/calcite/{p-ade32d12.js → p-2f8325c6.js} +2 -2
- package/dist/calcite/p-3187b284.entry.js +6 -0
- package/dist/calcite/p-321e1686.entry.js +6 -0
- package/dist/calcite/p-3275be2d.entry.js +6 -0
- package/dist/calcite/{p-1422a985.entry.js → p-32f2e6d4.entry.js} +2 -2
- package/dist/calcite/{p-81ac3679.js → p-34859850.js} +1 -1
- package/dist/calcite/p-34ad83b9.entry.js +6 -0
- package/dist/calcite/p-398e73e0.js +6 -0
- package/dist/calcite/{p-a957e7f6.js → p-3aea85cb.js} +2 -2
- package/dist/calcite/{p-912fc2de.js → p-3cb5ef34.js} +2 -2
- package/dist/calcite/p-3d110510.entry.js +6 -0
- package/dist/calcite/{p-bed784e6.js → p-3deeceaa.js} +2 -2
- package/dist/calcite/{p-40b8751a.js → p-3f66c26e.js} +1 -1
- package/dist/calcite/p-41cf60da.entry.js +6 -0
- package/dist/calcite/{p-f46ddf74.js → p-4281b9db.js} +2 -2
- package/dist/calcite/p-45023328.js +6 -0
- package/dist/calcite/{p-d533adc5.entry.js → p-49aa2f7c.entry.js} +2 -2
- package/dist/calcite/{p-5f92ee8b.js → p-49b9bffb.js} +2 -2
- package/dist/calcite/p-4e386994.js +6 -0
- package/dist/calcite/{p-3560a7c6.js → p-50c45e09.js} +2 -2
- package/dist/calcite/{p-6c831ea7.entry.js → p-52a39904.entry.js} +2 -2
- package/dist/calcite/{p-74327e2e.js → p-54a14faf.js} +2 -2
- package/dist/calcite/p-54dd5d2e.js +6 -0
- package/dist/calcite/{p-8710f3fc.js → p-5535b532.js} +2 -2
- package/dist/calcite/{p-5dd4cbd2.entry.js → p-55a0c761.entry.js} +2 -2
- package/dist/calcite/p-56a11a7e.entry.js +6 -0
- package/dist/calcite/{p-141accc6.js → p-588bd24a.js} +2 -2
- package/dist/calcite/p-5b967356.entry.js +6 -0
- package/dist/calcite/{p-4392a13f.entry.js → p-5c0dfbbf.entry.js} +2 -2
- package/dist/calcite/{p-0c26a36f.entry.js → p-5e0c4856.entry.js} +2 -2
- package/dist/calcite/p-5e609adf.js +6 -0
- package/dist/calcite/{p-519e4cdf.entry.js → p-5f1dc399.entry.js} +2 -2
- package/dist/calcite/{p-ccaca2c4.entry.js → p-601b060c.entry.js} +2 -2
- package/dist/calcite/p-6033c73d.js +6 -0
- package/dist/calcite/{p-e5225f26.entry.js → p-60e42cf4.entry.js} +2 -2
- package/dist/calcite/{p-d3ddb5b8.js → p-61aff975.js} +2 -2
- package/dist/calcite/{p-04af5900.js → p-6332623e.js} +2 -2
- package/dist/calcite/p-6513dadc.js +6 -0
- package/dist/calcite/{p-345e648e.entry.js → p-6a1609d4.entry.js} +2 -2
- package/dist/calcite/{p-5d222bc0.js → p-6b7b6bc4.js} +2 -2
- package/dist/calcite/p-6cd34197.entry.js +6 -0
- package/dist/calcite/{p-8e3e272b.js → p-6cf98612.js} +1 -1
- package/dist/calcite/{p-bd7f5bc3.entry.js → p-6dc80cc4.entry.js} +2 -2
- package/dist/calcite/{p-c016fadc.js → p-6dcce5a1.js} +2 -2
- package/dist/calcite/{p-4f339849.js → p-6f7a11a8.js} +2 -2
- package/dist/calcite/p-706b6afe.entry.js +6 -0
- package/dist/calcite/{p-0315fb48.entry.js → p-712ec32c.entry.js} +2 -2
- package/dist/calcite/p-71628cea.entry.js +6 -0
- package/dist/calcite/{p-bf8cd9fc.js → p-720ac378.js} +2 -2
- package/dist/calcite/{p-2443a472.entry.js → p-7288ef51.entry.js} +2 -2
- package/dist/calcite/{p-a9a8bbfc.js → p-73e2d17e.js} +2 -2
- package/dist/calcite/{p-46474218.entry.js → p-74759d11.entry.js} +2 -2
- package/dist/calcite/{p-6d06f635.entry.js → p-7af82b9c.entry.js} +2 -2
- package/dist/calcite/{p-23e58614.js → p-7e4ede75.js} +2 -2
- package/dist/calcite/{p-26c76701.js → p-7e6b63cc.js} +2 -2
- package/dist/calcite/{p-2513e163.entry.js → p-8168da61.entry.js} +2 -2
- package/dist/calcite/{p-536e669d.js → p-8189048a.js} +1 -1
- package/dist/calcite/{p-8704f0bc.entry.js → p-81c6ef4d.entry.js} +2 -2
- package/dist/calcite/{p-3f25dd23.entry.js → p-835eea3c.entry.js} +2 -2
- package/dist/calcite/{p-415d7849.entry.js → p-83a99124.entry.js} +2 -2
- package/dist/calcite/{p-768dfebc.entry.js → p-866d16a1.entry.js} +2 -2
- package/dist/calcite/{p-0e7948ac.entry.js → p-86798f7c.entry.js} +2 -2
- package/dist/calcite/{p-0c273dd4.entry.js → p-87b88323.entry.js} +2 -2
- package/dist/calcite/{p-29b45079.entry.js → p-8924f3bf.entry.js} +2 -2
- package/dist/calcite/{p-4096adc7.entry.js → p-8b5db906.entry.js} +2 -2
- package/dist/calcite/{p-ed87d76b.js → p-8bfe3c12.js} +1 -1
- package/dist/calcite/{p-f738e1a8.entry.js → p-8e8c7000.entry.js} +2 -2
- package/dist/calcite/{p-1c6943d5.js → p-906967ee.js} +2 -2
- package/dist/calcite/{p-6f5da1ae.js → p-931e5fc6.js} +2 -2
- package/dist/calcite/{p-b36ce3b2.entry.js → p-960fc800.entry.js} +2 -2
- package/dist/calcite/p-9b1838de.js +6 -0
- package/dist/calcite/{p-f7bed01f.js → p-9ceb6b2c.js} +1 -1
- package/dist/calcite/p-9fb94af5.js +6 -0
- package/dist/calcite/{p-0b7ad631.js → p-a10b862e.js} +2 -2
- package/dist/calcite/p-a4403bf5.js +6 -0
- package/dist/calcite/p-a59fea1d.entry.js +6 -0
- package/dist/calcite/{p-759a0ac9.entry.js → p-a6eca808.entry.js} +2 -2
- package/dist/calcite/{p-46734c81.entry.js → p-a6faecb7.entry.js} +2 -2
- package/dist/calcite/{p-e184187f.entry.js → p-a8d98d24.entry.js} +2 -2
- package/dist/calcite/p-aa62a93a.entry.js +6 -0
- package/dist/calcite/{p-03d75068.js → p-ae5dbd81.js} +2 -2
- package/dist/calcite/{p-375c12a3.js → p-b247e623.js} +2 -2
- package/dist/calcite/{p-4f7e21c0.js → p-b529b4b3.js} +2 -2
- package/dist/calcite/p-b587a8a2.js +6 -0
- package/dist/calcite/{p-c8d78225.js → p-b8ec3128.js} +2 -2
- package/dist/calcite/{p-0fd28363.js → p-bee02960.js} +2 -2
- package/dist/calcite/{p-aa9d93f1.js → p-c01d0a90.js} +2 -2
- package/dist/calcite/{p-9f446506.entry.js → p-c1e7de34.entry.js} +2 -2
- package/dist/calcite/{p-e08fb4fd.js → p-c500be39.js} +2 -2
- package/dist/calcite/{p-b702f7aa.js → p-c5962013.js} +2 -2
- package/dist/calcite/{p-5e0869a6.js → p-c7940102.js} +2 -2
- package/dist/calcite/p-c82e2513.entry.js +6 -0
- package/dist/calcite/{p-76913199.entry.js → p-c8c3e45e.entry.js} +2 -2
- package/dist/calcite/{p-200f4f27.entry.js → p-c97a25ee.entry.js} +2 -2
- package/dist/calcite/p-cb6b6ee4.js +6 -0
- package/dist/calcite/p-cd6774c0.js +6 -0
- package/dist/calcite/{p-aff663f2.js → p-cdc526bf.js} +2 -2
- package/dist/calcite/{p-253b50d2.js → p-ce579770.js} +2 -2
- package/dist/calcite/p-ce69e0cb.js +6 -0
- package/dist/calcite/{p-f7fa2942.js → p-cea7433b.js} +1 -1
- package/dist/calcite/{p-751ca7f2.js → p-cece2bcf.js} +2 -2
- package/dist/calcite/{p-17c19a71.js → p-cf739571.js} +2 -2
- package/dist/calcite/{p-88a9c6c5.js → p-cf8a9eaa.js} +2 -2
- package/dist/calcite/{p-b4bdfeb0.js → p-d0b52806.js} +2 -2
- package/dist/calcite/p-d0e69f29.entry.js +6 -0
- package/dist/calcite/{p-ace09652.entry.js → p-d474601e.entry.js} +2 -2
- package/dist/calcite/{p-618f5314.entry.js → p-d56ea275.entry.js} +2 -2
- package/dist/calcite/{p-9ecbd0b7.entry.js → p-d9ec1348.entry.js} +2 -2
- package/dist/calcite/{p-94f95e74.js → p-db3b805f.js} +1 -1
- package/dist/calcite/{p-91f15a48.js → p-dda84132.js} +2 -2
- package/dist/calcite/{p-f4ee56a9.js → p-dde40474.js} +2 -2
- package/dist/calcite/p-df14b543.js +6 -0
- package/dist/calcite/{p-96681200.js → p-e02d8f2b.js} +1 -1
- package/dist/calcite/{p-7b5a13ad.entry.js → p-e038e3c7.entry.js} +2 -2
- package/dist/calcite/{p-6f16c96c.js → p-e15524f7.js} +2 -2
- package/dist/calcite/{p-669cfa39.js → p-e4a691ef.js} +1 -1
- package/dist/calcite/{p-30a22f70.entry.js → p-e4f6960f.entry.js} +2 -2
- package/dist/calcite/{p-557324e1.js → p-e7947b6d.js} +2 -2
- package/dist/calcite/p-e84bed3c.entry.js +6 -0
- package/dist/calcite/{p-53e07bfb.js → p-e99c99a4.js} +2 -2
- package/dist/calcite/{p-1ee1b04c.entry.js → p-ec3b839f.entry.js} +2 -2
- package/dist/calcite/{p-a942b9a5.js → p-ec7297dc.js} +2 -2
- package/dist/calcite/p-ed247420.entry.js +6 -0
- package/dist/calcite/{p-1faf5ca2.entry.js → p-f337c23a.entry.js} +2 -2
- package/dist/calcite/{p-59eac076.js → p-f4be18ed.js} +1 -1
- package/dist/calcite/p-f6379ca2.js +6 -0
- package/dist/calcite/{p-92dbdcd8.js → p-f68f20a7.js} +1 -1
- package/dist/calcite/p-f78a7771.js +6 -0
- package/dist/calcite/p-fb7b4ca1.js +6 -0
- package/dist/calcite/p-fcc3a585.entry.js +6 -0
- package/dist/calcite/{p-a02db12d.js → p-fe7f3fcb.js} +3 -3
- package/dist/calcite/{p-46fd9a76.entry.js → p-fef570bc.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-342e6cb6.js → ExpandToggle-421c3f35.js} +9 -8
- package/dist/cjs/{FloatingArrow-63a3c554.js → FloatingArrow-2c6725c1.js} +2 -2
- package/dist/cjs/{Heading-afc1f227.js → Heading-4c505cc1.js} +2 -2
- package/dist/cjs/{app-globals-bfa93b54.js → app-globals-f082268b.js} +2 -2
- package/dist/cjs/{ar-5b5e12f3.js → ar-fda3fee4.js} +21 -18
- package/dist/cjs/{array-6fe97113.js → array-9ec41103.js} +1 -1
- package/dist/cjs/{bg-f790cfe2.js → bg-cc27a481.js} +18 -18
- package/dist/cjs/{browser-593450fe.js → browser-c574387f.js} +1 -1
- package/dist/cjs/{bs-fd0b959e.js → bs-2fd715cb.js} +18 -18
- package/dist/cjs/{ca-e7928ea8.js → ca-0f100473.js} +18 -18
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +21 -18
- package/dist/cjs/calcite-action-group.cjs.entry.js +13 -13
- package/dist/cjs/calcite-action-menu.cjs.entry.js +15 -13
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +12 -12
- package/dist/cjs/calcite-alert.cjs.entry.js +72 -38
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +15 -15
- package/dist/cjs/calcite-button.cjs.entry.js +21 -15
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +11 -11
- package/dist/cjs/calcite-chip-group.cjs.entry.js +9 -9
- package/dist/cjs/calcite-chip.cjs.entry.js +13 -13
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +19 -19
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +14 -14
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +17 -13
- package/dist/cjs/calcite-fab.cjs.entry.js +8 -8
- package/dist/cjs/calcite-filter.cjs.entry.js +14 -14
- package/dist/cjs/calcite-flow-item.cjs.entry.js +28 -17
- package/dist/cjs/calcite-flow.cjs.entry.js +4 -4
- package/dist/cjs/calcite-graph_2.cjs.entry.js +14 -14
- package/dist/cjs/calcite-handle.cjs.entry.js +10 -10
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +13 -13
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +22 -21
- package/dist/cjs/calcite-input-message.cjs.entry.js +5 -5
- package/dist/cjs/calcite-input-number.cjs.entry.js +14 -14
- package/dist/cjs/calcite-input-text.cjs.entry.js +14 -14
- package/dist/cjs/{calcite-input-time-picker.calcite-time-picker-0a76d6e1.js → calcite-input-time-picker.calcite-time-picker-c7f90b2f.js} +70 -67
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +18 -18
- package/dist/cjs/calcite-input-time-zone.cjs.entry.js +140 -49
- package/dist/cjs/calcite-input.cjs.entry.js +14 -14
- package/dist/cjs/calcite-label.cjs.entry.js +6 -6
- package/dist/cjs/calcite-link.cjs.entry.js +8 -8
- package/dist/cjs/calcite-list_3.cjs.entry.js +30 -26
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-menu_2.cjs.entry.js +13 -73
- 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 +13 -13
- package/dist/cjs/calcite-option_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-pagination.cjs.entry.js +12 -42
- package/dist/cjs/calcite-panel.cjs.entry.js +39 -35
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +17 -17
- 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 -11
- package/dist/cjs/calcite-rating.cjs.entry.js +14 -14
- package/dist/cjs/calcite-scrim.cjs.entry.js +9 -9
- package/dist/cjs/calcite-segmented-control_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sheet.cjs.entry.js +9 -9
- package/dist/cjs/calcite-shell_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-sortable-list.cjs.entry.js +9 -9
- package/dist/cjs/calcite-split-button.cjs.entry.js +5 -5
- package/dist/cjs/calcite-stack.cjs.entry.js +6 -6
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +11 -11
- package/dist/cjs/calcite-switch.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tab_4.cjs.entry.js +11 -11
- package/dist/cjs/calcite-table-cell_2.cjs.entry.js +15 -13
- package/dist/cjs/calcite-table-row.cjs.entry.js +8 -8
- package/dist/cjs/calcite-table.cjs.entry.js +11 -11
- package/dist/cjs/calcite-text-area.cjs.entry.js +16 -16
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +6 -6
- package/dist/cjs/calcite-tile.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +9 -9
- package/dist/cjs/calcite-tree_2.cjs.entry.js +57 -80
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +17 -17
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-28ca1c55.js → conditionalSlot-dcec8557.js} +3 -3
- package/dist/cjs/{cs-0735b6ed.js → cs-85ce1c64.js} +18 -18
- package/dist/cjs/{da-1ed30e55.js → da-7b3e54f5.js} +18 -18
- package/dist/cjs/{de-at-825a1a23.js → de-at-eb83b42b.js} +18 -18
- package/dist/cjs/{de-efba5675.js → de-cff2ffd3.js} +18 -18
- package/dist/cjs/{de-ch-f940dd77.js → de-ch-ca1f76ad.js} +18 -18
- package/dist/cjs/{debounce-1a244cc2.js → debounce-8c2731e5.js} +1 -1
- package/dist/cjs/{dom-e3280894.js → dom-fcd64918.js} +3 -3
- package/dist/cjs/{el-928c4b8f.js → el-cc9b234b.js} +18 -18
- package/dist/cjs/{en-au-71e0f0cd.js → en-au-e02fcb3d.js} +18 -18
- package/dist/cjs/{en-ca-24a5d19a.js → en-ca-69f3daa1.js} +18 -18
- package/dist/cjs/{en-gb-fcd3bc47.js → en-gb-f058cf8f.js} +18 -18
- package/dist/cjs/{es-2f004322.js → es-4cabd094.js} +18 -18
- package/dist/cjs/{es-mx-ff2f09f2.js → es-mx-58eed3f8.js} +18 -18
- package/dist/cjs/{et-e2d61bed.js → et-efa55f7f.js} +18 -18
- package/dist/cjs/{fi-fe56b991.js → fi-269242cf.js} +18 -18
- package/dist/cjs/{filter-50b30f55.js → filter-52189564.js} +2 -2
- package/dist/cjs/{floating-ui-08657adb.js → floating-ui-5a180b15.js} +3 -3
- package/dist/cjs/{focusTrapComponent-19d3918e.js → focusTrapComponent-9bf70df7.js} +2 -2
- package/dist/cjs/{form-d8770351.js → form-f7c07359.js} +3 -3
- package/dist/cjs/{fr-530c1a4b.js → fr-4eb18da1.js} +18 -18
- package/dist/cjs/{fr-ch-8e58a66e.js → fr-ch-bf077bcc.js} +18 -18
- package/dist/cjs/globalAttributes-094241b0.js +72 -0
- package/dist/cjs/{guid-4ba75e54.js → guid-178d1933.js} +1 -1
- package/dist/cjs/{he-3d818e56.js → he-c46665b9.js} +18 -18
- package/dist/cjs/{hi-a22e15ef.js → hi-8f81b697.js} +18 -18
- package/dist/cjs/{hr-38a57925.js → hr-1b66a71e.js} +18 -18
- package/dist/cjs/{hu-c9e99ef3.js → hu-d70e2692.js} +18 -18
- package/dist/cjs/{id-3c327ff2.js → id-cccee840.js} +18 -18
- package/dist/cjs/{index-549b0eb8.js → index-3e3e77c9.js} +1 -1
- package/dist/cjs/index-b35fac0a.js +73 -0
- package/dist/cjs/index-e3f8a61e.js +172 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/{interactive-00ed8a91.js → interactive-34ebc5a7.js} +2 -2
- package/dist/cjs/{it-95984372.js → it-71a9122c.js} +18 -18
- package/dist/cjs/{it-ch-e03f3536.js → it-ch-808c0a4e.js} +18 -18
- package/dist/cjs/{ja-9befb2a6.js → ja-5ce4bab7.js} +18 -18
- package/dist/cjs/{key-ebda4e7a.js → key-5f275565.js} +1 -1
- package/dist/cjs/{ko-fc63a7de.js → ko-c7404b9a.js} +19 -19
- package/dist/cjs/{label-3f425491.js → label-6919add5.js} +2 -2
- package/dist/cjs/{loadable-99097c03.js → loadable-7158f442.js} +2 -2
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-bc7fce6a.js → locale-5b008ad7.js} +4 -4
- package/dist/cjs/{lt-48e4bfcc.js → lt-926f3335.js} +18 -18
- package/dist/cjs/{lv-481f7d70.js → lv-e8889bf8.js} +18 -18
- package/dist/cjs/{math-e205bfd7.js → math-fd3bbe93.js} +1 -1
- package/dist/cjs/{mk-7930bd6d.js → mk-8dfd1de2.js} +18 -18
- package/dist/cjs/{nb-c073386b.js → nb-e7da4c4e.js} +18 -18
- package/dist/cjs/{nl-a2434ad7.js → nl-a8e7d54f.js} +18 -18
- package/dist/cjs/{observers-96f38880.js → observers-b427b681.js} +1 -1
- package/dist/cjs/{openCloseComponent-8610cf20.js → openCloseComponent-c0379fd2.js} +2 -2
- package/dist/cjs/{pl-78e2940e.js → pl-3379bbe4.js} +18 -18
- package/dist/cjs/{pt-b1089e09.js → pt-7f607d7d.js} +18 -18
- package/dist/cjs/{pt-br-23876e30.js → pt-br-824e8694.js} +18 -18
- package/dist/cjs/{resources-505eb374.js → resources-05bc8b3a.js} +1 -1
- package/dist/cjs/{resources-d2092529.js → resources-57d27764.js} +3 -1
- package/dist/cjs/{resources-b6524bed.js → resources-593be57e.js} +3 -1
- package/dist/cjs/{resources-97b0fff0.js → resources-6e262671.js} +1 -1
- package/dist/cjs/{resources-1ac3570d.js → resources-86ac606a.js} +5 -5
- package/dist/cjs/{resources-f45d65a7.js → resources-d63dae2f.js} +1 -1
- package/dist/cjs/{resources-bfa4911f.js → resources-ed3ab8ea.js} +1 -1
- package/dist/cjs/responsive-c1d30d34.js +39 -0
- package/dist/cjs/{ro-d62a8e7e.js → ro-f32f9ef7.js} +18 -18
- package/dist/cjs/{ru-cc3c010f.js → ru-be69d621.js} +18 -18
- package/dist/cjs/{sk-de51eff6.js → sk-2bf43f80.js} +18 -18
- package/dist/cjs/sl-f19e0b17.js +166 -0
- package/dist/cjs/{sortableComponent-e13bece0.js → sortableComponent-07a3e15e.js} +5 -5
- package/dist/cjs/{sr-80c9ebf8.js → sr-708daf24.js} +18 -18
- package/dist/cjs/{sv-3a98eed8.js → sv-95a110a9.js} +18 -18
- package/dist/cjs/{t9n-e0f4945b.js → t9n-54077e95.js} +3 -3
- package/dist/cjs/{th-34825b9e.js → th-626891cd.js} +18 -18
- package/dist/cjs/{throttle-4f64bed4.js → throttle-1b9c3d6d.js} +2 -2
- package/dist/cjs/{tr-73c7d6d0.js → tr-f376b94d.js} +18 -18
- package/dist/cjs/{uk-86d0c8ca.js → uk-5e0cc688.js} +18 -18
- package/dist/cjs/{utils-5c92b269.js → utils-64be67d8.js} +3 -3
- package/dist/cjs/{utils-1b74a2b9.js → utils-860351cd.js} +1 -1
- package/dist/cjs/{vi-9b2bb3ca.js → vi-6ea67920.js} +18 -18
- package/dist/cjs/{zh-cn-180d6664.js → zh-cn-91a731a1.js} +18 -18
- package/dist/cjs/{zh-hk-395599e7.js → zh-hk-6ddd605b.js} +18 -18
- package/dist/cjs/{zh-tw-6c53be71.js → zh-tw-cea117d6.js} +18 -18
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/accordion-item/accordion-item.js +1 -1
- package/dist/collection/components/accordion-item/resources.js +1 -1
- package/dist/collection/components/action/action.js +1 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +7 -4
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +5 -4
- package/dist/collection/components/action-group/action-group.js +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.css +1 -2
- package/dist/collection/components/action-menu/action-menu.js +33 -5
- package/dist/collection/components/action-menu/resources.js +2 -1
- package/dist/collection/components/action-pad/action-pad.js +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.css +252 -212
- package/dist/collection/components/alert/alert.js +46 -30
- package/dist/collection/components/alert/resources.js +18 -3
- 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 +10 -3
- 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 +5 -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.css +2 -1
- package/dist/collection/components/flow-item/flow-item.js +96 -8
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/FloatingArrow.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/functional/XButton.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/assets/icon/projectTemplate16.json +1 -0
- package/dist/collection/components/icon/assets/icon/projectTemplate24.json +1 -0
- package/dist/collection/components/icon/assets/icon/projectTemplate32.json +1 -0
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +1 -1
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/input.js +1 -1
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +27 -3
- 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 +26 -2
- package/dist/collection/components/input-time-picker/resources.js +1 -1
- package/dist/collection/components/input-time-zone/input-time-zone.js +109 -17
- package/dist/collection/components/input-time-zone/utils.js +81 -20
- 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 +16 -12
- 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/assets/panel/t9n/index.d.ts +2 -0
- package/dist/collection/components/panel/assets/panel/t9n/messages.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ar.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_bg.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_bs.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ca.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_cs.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_da.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_de.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_el.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_en.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_es.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_et.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_fi.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_fr.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_he.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_hr.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_hu.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_id.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_it.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ja.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ko.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_lt.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_lv.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_nl.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_no.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_pl.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_pt-BR.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_pt-PT.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ro.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_ru.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_sk.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_sl.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_sr.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_sv.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_th.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_tr.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_uk.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_vi.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_zh-CN.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_zh-HK.json +3 -1
- package/dist/collection/components/panel/assets/panel/t9n/messages_zh-TW.json +3 -1
- package/dist/collection/components/panel/panel.css +3 -4
- package/dist/collection/components/panel/panel.js +103 -25
- package/dist/collection/components/panel/resources.js +3 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +1 -1
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +1 -1
- package/dist/collection/components/popover/popover.js +1 -1
- package/dist/collection/components/popover/resources.js +1 -1
- package/dist/collection/components/progress/progress.js +1 -1
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/resources.js +1 -1
- package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.js +1 -1
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +1 -1
- package/dist/collection/components/segmented-control/segmented-control.js +1 -1
- package/dist/collection/components/segmented-control-item/resources.js +1 -1
- package/dist/collection/components/segmented-control-item/segmented-control-item.js +1 -1
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/sheet/resources.js +1 -1
- package/dist/collection/components/sheet/sheet.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +1 -1
- package/dist/collection/components/shell-center-row/resources.js +1 -1
- package/dist/collection/components/shell-center-row/shell-center-row.js +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +1 -1
- package/dist/collection/components/slider/resources.js +1 -1
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/sortable-list/resources.js +1 -1
- package/dist/collection/components/sortable-list/sortable-list.js +1 -1
- package/dist/collection/components/split-button/resources.js +1 -1
- package/dist/collection/components/split-button/split-button.js +1 -1
- package/dist/collection/components/stack/resources.js +1 -1
- package/dist/collection/components/stack/stack.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/stepper-item/resources.js +1 -1
- package/dist/collection/components/stepper-item/stepper-item.js +1 -1
- package/dist/collection/components/switch/switch.js +1 -1
- package/dist/collection/components/tab/tab.js +1 -1
- package/dist/collection/components/tab-nav/tab-nav.js +1 -1
- package/dist/collection/components/tab-title/resources.js +1 -1
- package/dist/collection/components/tab-title/tab-title.js +1 -1
- package/dist/collection/components/table/resources.js +1 -1
- package/dist/collection/components/table/table.js +1 -1
- package/dist/collection/components/table-cell/resources.js +1 -1
- package/dist/collection/components/table-cell/table-cell.css +4 -0
- package/dist/collection/components/table-cell/table-cell.js +5 -1
- package/dist/collection/components/table-header/resources.js +1 -1
- package/dist/collection/components/table-header/table-header.js +1 -1
- package/dist/collection/components/table-row/table-row.js +1 -1
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.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 +48 -61
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.css +0 -9
- package/dist/collection/components/tree-item/tree-item.js +2 -12
- 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 +2 -2
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/mode.js +1 -1
- package/dist/collection/utils/number.js +1 -1
- package/dist/collection/utils/observers.js +1 -1
- package/dist/collection/utils/openCloseComponent.js +1 -1
- package/dist/collection/utils/resources.js +1 -1
- package/dist/collection/utils/responsive.js +1 -1
- package/dist/collection/utils/sortableComponent.js +5 -5
- package/dist/collection/utils/t9n.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +5 -4
- 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 +9 -5
- package/dist/components/action.js +1 -1
- package/dist/components/ar.js +4 -1
- package/dist/components/array.js +1 -1
- package/dist/components/avatar.js +1 -1
- package/dist/components/bg.js +1 -1
- package/dist/components/bs.js +1 -1
- package/dist/components/button.js +9 -2
- package/dist/components/ca.js +1 -1
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +7 -4
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +65 -30
- 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 +5 -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 +19 -5
- 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 -3
- 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 +10 -6
- package/dist/components/calcite-input-time-zone.js +130 -37
- 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 +16 -12
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-menu-item.js +1 -1
- package/dist/components/calcite-menu.js +1 -1
- package/dist/components/calcite-meter.js +1 -1
- package/dist/components/calcite-modal.js +1 -1
- package/dist/components/calcite-navigation-logo.js +1 -1
- package/dist/components/calcite-navigation-user.js +1 -1
- package/dist/components/calcite-navigation.js +1 -1
- package/dist/components/calcite-notice.js +1 -1
- package/dist/components/calcite-option-group.js +1 -1
- package/dist/components/calcite-option.js +1 -1
- package/dist/components/calcite-pagination.js +1 -1
- package/dist/components/calcite-panel.js +1 -1
- package/dist/components/calcite-pick-list-group.js +1 -1
- package/dist/components/calcite-pick-list-item.js +1 -1
- package/dist/components/calcite-pick-list.js +1 -1
- package/dist/components/calcite-popover.js +1 -1
- package/dist/components/calcite-progress.js +1 -1
- package/dist/components/calcite-radio-button-group.js +1 -1
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-segmented-control-item.js +1 -1
- package/dist/components/calcite-segmented-control.js +1 -1
- package/dist/components/calcite-select.js +1 -1
- package/dist/components/calcite-sheet.js +1 -1
- package/dist/components/calcite-shell-center-row.js +1 -1
- package/dist/components/calcite-shell-panel.js +1 -1
- package/dist/components/calcite-shell.js +1 -1
- package/dist/components/calcite-slider.js +1 -1
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stack.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +1 -1
- package/dist/components/calcite-switch.js +1 -1
- package/dist/components/calcite-tab-nav.js +1 -1
- package/dist/components/calcite-tab-title.js +1 -1
- package/dist/components/calcite-tab.js +1 -1
- package/dist/components/calcite-table-cell.js +1 -1
- package/dist/components/calcite-table-header.js +1 -1
- package/dist/components/calcite-table-row.js +1 -1
- package/dist/components/calcite-table.js +1 -1
- package/dist/components/calcite-tabs.js +1 -1
- package/dist/components/calcite-text-area.js +1 -1
- package/dist/components/calcite-tile-select-group.js +1 -1
- package/dist/components/calcite-tile-select.js +1 -1
- package/dist/components/calcite-tile.js +1 -1
- package/dist/components/calcite-time-picker.js +1 -1
- package/dist/components/calcite-tip-group.js +1 -1
- package/dist/components/calcite-tip-manager.js +1 -1
- package/dist/components/calcite-tip.js +1 -1
- package/dist/components/calcite-tooltip.js +1 -1
- package/dist/components/calcite-tree-item.js +3 -13
- package/dist/components/calcite-tree.js +48 -61
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/combobox-item.js +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/cs.js +1 -1
- package/dist/components/da.js +1 -1
- package/dist/components/date-picker-day.js +1 -1
- package/dist/components/date-picker-month-header.js +1 -1
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +1 -1
- package/dist/components/date.js +1 -1
- package/dist/components/de-at.js +1 -1
- package/dist/components/de-ch.js +1 -1
- package/dist/components/de.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +1 -1
- package/dist/components/dropdown.js +1 -1
- package/dist/components/el.js +1 -1
- package/dist/components/en-au.js +1 -1
- package/dist/components/en-ca.js +1 -1
- package/dist/components/en-gb.js +1 -1
- package/dist/components/es-mx.js +1 -1
- package/dist/components/es.js +1 -1
- package/dist/components/et.js +1 -1
- package/dist/components/fi.js +1 -1
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +1 -1
- package/dist/components/focusTrapComponent.js +1 -1
- package/dist/components/form.js +1 -1
- package/dist/components/fr-ch.js +1 -1
- package/dist/components/fr.js +1 -1
- package/dist/components/globalAttributes.js +69 -0
- 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.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/index3.js +170 -0
- package/dist/components/index4.js +71 -0
- 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 +1 -1
- package/dist/components/it-ch.js +1 -1
- package/dist/components/it.js +1 -1
- package/dist/components/ja.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/ko.js +2 -2
- 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 +2 -63
- 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 +2 -32
- package/dist/components/panel.js +30 -21
- 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/responsive.js +37 -0
- package/dist/components/ro.js +1 -1
- package/dist/components/ru.js +1 -1
- package/dist/components/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sk.js +1 -1
- package/dist/components/sl.js +115 -13
- package/dist/components/sortableComponent.js +5 -5
- package/dist/components/sr.js +1 -1
- package/dist/components/stack.js +1 -1
- package/dist/components/sv.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +1 -1
- package/dist/components/tab-nav.js +1 -1
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +1 -1
- package/dist/components/table-cell.js +5 -2
- package/dist/components/table-header.js +1 -1
- package/dist/components/tabs.js +1 -1
- package/dist/components/th.js +1 -1
- package/dist/components/throttle.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +1 -1
- package/dist/components/tr.js +1 -1
- package/dist/components/uk.js +1 -1
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +1 -1
- package/dist/components/utils3.js +1 -1
- package/dist/components/vi.js +1 -1
- package/dist/components/zh-cn.js +1 -1
- package/dist/components/zh-hk.js +1 -1
- package/dist/components/zh-tw.js +1 -1
- package/dist/esm/{ExpandToggle-717456d5.js → ExpandToggle-9f55eda5.js} +9 -8
- package/dist/esm/{FloatingArrow-ecf11d60.js → FloatingArrow-11f6928d.js} +2 -2
- package/dist/esm/{Heading-01b5b9a1.js → Heading-0280a4db.js} +2 -2
- package/dist/esm/{app-globals-49931ec9.js → app-globals-af801588.js} +2 -2
- package/dist/esm/{ar-31009d59.js → ar-0c35ff39.js} +21 -18
- package/dist/esm/{array-768393c5.js → array-416b404b.js} +1 -1
- package/dist/esm/{bg-2f9bbef6.js → bg-f55a7aa9.js} +18 -18
- package/dist/esm/{browser-78a322e4.js → browser-99f127cb.js} +1 -1
- package/dist/esm/{bs-861d9e45.js → bs-81b6c396.js} +18 -18
- package/dist/esm/{ca-bef06c5e.js → ca-3bf546e1.js} +18 -18
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +21 -18
- package/dist/esm/calcite-action-group.entry.js +13 -13
- package/dist/esm/calcite-action-menu.entry.js +15 -13
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +12 -12
- package/dist/esm/calcite-alert.entry.js +72 -38
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +15 -15
- package/dist/esm/calcite-button.entry.js +21 -15
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +11 -11
- package/dist/esm/calcite-chip-group.entry.js +9 -9
- package/dist/esm/calcite-chip.entry.js +13 -13
- package/dist/esm/calcite-color-picker_3.entry.js +16 -16
- package/dist/esm/calcite-combobox_3.entry.js +19 -19
- package/dist/esm/calcite-date-picker_4.entry.js +14 -14
- package/dist/esm/calcite-dropdown_3.entry.js +17 -13
- package/dist/esm/calcite-fab.entry.js +8 -8
- package/dist/esm/calcite-filter.entry.js +14 -14
- package/dist/esm/calcite-flow-item.entry.js +28 -17
- package/dist/esm/calcite-flow.entry.js +4 -4
- package/dist/esm/calcite-graph_2.entry.js +14 -14
- package/dist/esm/calcite-handle.entry.js +10 -10
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +13 -13
- package/dist/esm/calcite-input-date-picker.entry.js +22 -21
- package/dist/esm/calcite-input-message.entry.js +5 -5
- package/dist/esm/calcite-input-number.entry.js +14 -14
- package/dist/esm/calcite-input-text.entry.js +14 -14
- package/dist/esm/{calcite-input-time-picker.calcite-time-picker-ea7a843a.js → calcite-input-time-picker.calcite-time-picker-075604ca.js} +70 -67
- package/dist/esm/calcite-input-time-picker_2.entry.js +18 -18
- package/dist/esm/calcite-input-time-zone.entry.js +140 -49
- package/dist/esm/calcite-input.entry.js +14 -14
- package/dist/esm/calcite-label.entry.js +6 -6
- package/dist/esm/calcite-link.entry.js +8 -8
- package/dist/esm/calcite-list_3.entry.js +30 -26
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-menu_2.entry.js +11 -71
- 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 +13 -13
- package/dist/esm/calcite-option_3.entry.js +11 -11
- package/dist/esm/calcite-pagination.entry.js +11 -41
- package/dist/esm/calcite-panel.entry.js +39 -35
- package/dist/esm/calcite-pick-list_3.entry.js +17 -17
- 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 -11
- package/dist/esm/calcite-rating.entry.js +14 -14
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-segmented-control_2.entry.js +11 -11
- package/dist/esm/calcite-sheet.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +9 -9
- package/dist/esm/calcite-split-button.entry.js +5 -5
- package/dist/esm/calcite-stack.entry.js +6 -6
- package/dist/esm/calcite-stepper_2.entry.js +11 -11
- package/dist/esm/calcite-switch.entry.js +11 -11
- package/dist/esm/calcite-tab_4.entry.js +11 -11
- package/dist/esm/calcite-table-cell_2.entry.js +15 -13
- package/dist/esm/calcite-table-row.entry.js +8 -8
- package/dist/esm/calcite-table.entry.js +11 -11
- package/dist/esm/calcite-text-area.entry.js +16 -16
- package/dist/esm/calcite-tile-select_2.entry.js +6 -6
- package/dist/esm/calcite-tile.entry.js +9 -9
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +9 -9
- package/dist/esm/calcite-tree_2.entry.js +57 -80
- package/dist/esm/calcite-value-list_2.entry.js +17 -17
- package/dist/esm/calcite.js +6 -6
- package/dist/esm/{conditionalSlot-8096919d.js → conditionalSlot-62e440de.js} +3 -3
- package/dist/esm/{cs-f9123f2a.js → cs-8f08e474.js} +18 -18
- package/dist/esm/{da-634a0f35.js → da-dc50d0a5.js} +18 -18
- package/dist/esm/{de-8df28ad3.js → de-80bc3867.js} +18 -18
- package/dist/esm/{de-at-c73412ea.js → de-at-ea5f54a9.js} +18 -18
- package/dist/esm/{de-ch-1ccf5553.js → de-ch-65facafe.js} +18 -18
- package/dist/esm/{debounce-b394f084.js → debounce-0b9479f0.js} +1 -1
- package/dist/esm/{dom-5a979e8b.js → dom-ee293fdc.js} +4 -4
- package/dist/esm/{el-536dd566.js → el-8d811c93.js} +18 -18
- package/dist/esm/{en-au-fcf666e1.js → en-au-d8070562.js} +18 -18
- package/dist/esm/{en-ca-750b87d7.js → en-ca-20a978ba.js} +18 -18
- package/dist/esm/{en-gb-84c82b27.js → en-gb-09be4a4c.js} +18 -18
- package/dist/esm/{es-d003d6a7.js → es-659218ed.js} +18 -18
- package/dist/esm/{es-mx-59d13261.js → es-mx-d094036c.js} +18 -18
- package/dist/esm/{et-37f80b23.js → et-764c6547.js} +18 -18
- package/dist/esm/{fi-e6aa3381.js → fi-3d658f30.js} +18 -18
- package/dist/esm/{filter-e68b5bd7.js → filter-414fc5af.js} +2 -2
- package/dist/esm/{floating-ui-08e9cbdd.js → floating-ui-5424beb4.js} +3 -3
- package/dist/esm/{focusTrapComponent-34ea7596.js → focusTrapComponent-27ace0d6.js} +2 -2
- package/dist/esm/{form-a66e7c1d.js → form-42eecf27.js} +3 -3
- package/dist/esm/{fr-39be8ca8.js → fr-740b3ef0.js} +18 -18
- package/dist/esm/{fr-ch-8f5ebf51.js → fr-ch-4f0941a3.js} +18 -18
- package/dist/esm/globalAttributes-abf60b99.js +69 -0
- package/dist/esm/{guid-08ae9964.js → guid-3c2df44d.js} +1 -1
- package/dist/esm/{he-92bc5678.js → he-71df4fe0.js} +18 -18
- package/dist/esm/{hi-c2aa33e1.js → hi-b9f08ece.js} +18 -18
- package/dist/esm/{hr-aee09847.js → hr-476a9a22.js} +18 -18
- package/dist/esm/{hu-c0f9697c.js → hu-fe1c9ba4.js} +18 -18
- package/dist/esm/{id-70a52a21.js → id-daad8393.js} +18 -18
- package/dist/esm/index-1a1993ce.js +71 -0
- package/dist/esm/index-41d07323.js +170 -0
- package/dist/esm/{index-fa20eab3.js → index-5dd366f5.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/{interactive-feb62121.js → interactive-bfd53620.js} +2 -2
- package/dist/esm/{it-11313d76.js → it-a0272260.js} +18 -18
- package/dist/esm/{it-ch-e42f260d.js → it-ch-8ce8636f.js} +18 -18
- package/dist/esm/{ja-e428f5a1.js → ja-ae72a76f.js} +18 -18
- package/dist/esm/{key-d34347d1.js → key-c0734499.js} +1 -1
- package/dist/esm/{ko-73b6e676.js → ko-7b6d185f.js} +19 -19
- package/dist/esm/{label-5282a5e2.js → label-d8610ba9.js} +2 -2
- package/dist/esm/{loadable-3f4ab7a7.js → loadable-45b89522.js} +2 -2
- package/dist/esm/loader.js +6 -6
- package/dist/esm/{locale-cf81ff98.js → locale-a217aea8.js} +4 -4
- package/dist/esm/{lt-97f3abef.js → lt-a87c2751.js} +18 -18
- package/dist/esm/{lv-1b0a98bc.js → lv-522c1ee6.js} +18 -18
- package/dist/esm/{math-6e7bb7ac.js → math-6a7c36a8.js} +1 -1
- package/dist/esm/{mk-7c70e956.js → mk-f1450d29.js} +18 -18
- package/dist/esm/{nb-d92e2353.js → nb-4967de7d.js} +18 -18
- package/dist/esm/{nl-e406860a.js → nl-de206146.js} +18 -18
- package/dist/esm/{observers-82d1f33a.js → observers-0f877846.js} +1 -1
- package/dist/esm/{openCloseComponent-df496bf5.js → openCloseComponent-3fee1bff.js} +2 -2
- package/dist/esm/{pl-ad481840.js → pl-0c5e4e82.js} +18 -18
- package/dist/esm/{pt-289b3616.js → pt-106018d3.js} +18 -18
- package/dist/esm/{pt-br-0c313f98.js → pt-br-10b70755.js} +18 -18
- package/dist/esm/{resources-53e1063b.js → resources-48560b46.js} +3 -2
- package/dist/esm/{resources-24aeed61.js → resources-4d6a5b7a.js} +3 -1
- package/dist/esm/{resources-8a3d5911.js → resources-6b8d47a6.js} +5 -5
- package/dist/esm/{resources-87039f96.js → resources-a6585ea9.js} +1 -1
- package/dist/esm/{resources-9b5afdbc.js → resources-e7512cb8.js} +1 -1
- package/dist/esm/{resources-f3a71d0c.js → resources-ec297548.js} +1 -1
- package/dist/esm/{resources-0c13e3f7.js → resources-fe343d4a.js} +1 -1
- package/dist/esm/responsive-2ab5b83c.js +37 -0
- package/dist/esm/{ro-e7539225.js → ro-d7513f90.js} +18 -18
- package/dist/esm/{ru-e4d4f315.js → ru-dbc80701.js} +18 -18
- package/dist/esm/{sk-6e513c3a.js → sk-08770b96.js} +18 -18
- package/dist/esm/sl-bd4dc323.js +164 -0
- package/dist/esm/{sortableComponent-1b3673b2.js → sortableComponent-f552b5bf.js} +5 -5
- package/dist/esm/{sr-64ff7b92.js → sr-a1deebe4.js} +18 -18
- package/dist/esm/{sv-e91c9c40.js → sv-b340f6cc.js} +18 -18
- package/dist/esm/{t9n-f87cff0e.js → t9n-e28dfe19.js} +3 -3
- package/dist/esm/{th-d29c5678.js → th-f6c662cf.js} +18 -18
- package/dist/esm/{throttle-3a8d7069.js → throttle-45bcc255.js} +2 -2
- package/dist/esm/{tr-8f05df1b.js → tr-6f1e041d.js} +18 -18
- package/dist/esm/{uk-8aa76b0d.js → uk-63bd20d6.js} +18 -18
- package/dist/esm/{utils-8c91321a.js → utils-662f6235.js} +1 -1
- package/dist/esm/{utils-819275ed.js → utils-8175fe32.js} +3 -3
- package/dist/esm/{vi-29d927b7.js → vi-1b185e0c.js} +18 -18
- package/dist/esm/{zh-cn-47301672.js → zh-cn-59e72a95.js} +18 -18
- package/dist/esm/{zh-hk-a21c6958.js → zh-hk-2feb9816.js} +18 -18
- package/dist/esm/{zh-tw-97143c23.js → zh-tw-8960484d.js} +18 -18
- package/dist/extras/docs-json.json +247 -10
- package/dist/extras/translations-json.json +1 -1
- package/dist/extras/vscode-data.json +74 -0
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/action-menu/action-menu.d.ts +3 -1
- package/dist/types/components/action-menu/resources.d.ts +1 -0
- package/dist/types/components/alert/alert.d.ts +10 -7
- package/dist/types/components/alert/resources.d.ts +17 -2
- package/dist/types/components/button/button.d.ts +5 -1
- package/dist/types/components/dropdown-group/dropdown-group.d.ts +1 -0
- package/dist/types/components/flow-item/flow-item.d.ts +23 -1
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +3 -0
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +3 -1
- package/dist/types/components/input-time-zone/input-time-zone.d.ts +23 -2
- package/dist/types/components/input-time-zone/interfaces.d.ts +14 -3
- package/dist/types/components/input-time-zone/utils.d.ts +7 -4
- package/dist/types/components/panel/assets/panel/t9n/index.d.ts +2 -0
- package/dist/types/components/panel/panel.d.ts +21 -8
- package/dist/types/components/panel/resources.d.ts +2 -0
- package/dist/types/components/stepper-item/assets/stepper-item/t9n/index.d.ts +2 -0
- package/dist/types/components/tab-nav/assets/tab-nav/t9n/index.d.ts +4 -0
- package/dist/types/components/tree/tree.d.ts +1 -1
- package/dist/types/components/tree-item/interfaces.d.ts +0 -4
- package/dist/types/components/tree-item/tree-item.d.ts +2 -2
- package/dist/types/components.d.ts +98 -2
- package/dist/types/preact.d.ts +4 -2
- package/dist/types/utils/globalAttributes.d.ts +1 -1
- package/dist/types/utils/sortableComponent.d.ts +2 -0
- package/hydrate/index.js +854 -354
- package/package.json +12 -10
- package/readme.md +2 -2
- package/dist/calcite/p-09a01053.entry.js +0 -6
- package/dist/calcite/p-0e5c796a.entry.js +0 -6
- package/dist/calcite/p-0e791b23.entry.js +0 -6
- package/dist/calcite/p-11ea099f.js +0 -6
- package/dist/calcite/p-12cafe48.entry.js +0 -6
- package/dist/calcite/p-1477f3db.js +0 -6
- package/dist/calcite/p-168d1956.js +0 -6
- package/dist/calcite/p-1e54cefd.entry.js +0 -6
- package/dist/calcite/p-1f96bf76.js +0 -6
- package/dist/calcite/p-299126e9.entry.js +0 -6
- package/dist/calcite/p-2c5f7d34.js +0 -6
- package/dist/calcite/p-32e186ca.js +0 -6
- package/dist/calcite/p-39258ddb.entry.js +0 -6
- package/dist/calcite/p-3ece22e9.entry.js +0 -6
- package/dist/calcite/p-3f1934c5.entry.js +0 -6
- package/dist/calcite/p-40a1509a.js +0 -6
- package/dist/calcite/p-46143c2e.js +0 -6
- package/dist/calcite/p-4780308c.entry.js +0 -6
- package/dist/calcite/p-58a480b4.entry.js +0 -6
- package/dist/calcite/p-5962b7b7.js +0 -6
- package/dist/calcite/p-61cf344a.entry.js +0 -6
- package/dist/calcite/p-6209e29e.entry.js +0 -6
- package/dist/calcite/p-70e7570b.entry.js +0 -6
- package/dist/calcite/p-7325dbae.js +0 -6
- package/dist/calcite/p-8226b83d.js +0 -6
- package/dist/calcite/p-96057236.entry.js +0 -6
- package/dist/calcite/p-9d3b6c0e.js +0 -6
- package/dist/calcite/p-abdab952.entry.js +0 -6
- package/dist/calcite/p-ac633f86.js +0 -6
- package/dist/calcite/p-b739c737.entry.js +0 -6
- package/dist/calcite/p-b856f7f4.entry.js +0 -6
- package/dist/calcite/p-bdd760b6.js +0 -6
- package/dist/calcite/p-cc75d89a.js +0 -6
- package/dist/calcite/p-d72f9d1d.js +0 -6
- package/dist/calcite/p-db7c4821.entry.js +0 -6
- package/dist/calcite/p-dd610d50.js +0 -6
- package/dist/calcite/p-f868d3e9.js +0 -6
- package/dist/calcite/p-fe6752d4.entry.js +0 -6
- package/dist/cjs/sl-69c0fa26.js +0 -64
- package/dist/esm/sl-11b98688.js +0 -62
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.9.0
|
|
4
|
+
* v1.9.0
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -9117,7 +9117,7 @@ var baseFor = createBaseFor();
|
|
|
9117
9117
|
* }, _.now());
|
|
9118
9118
|
* // => Logs the number of milliseconds it took for the deferred invocation.
|
|
9119
9119
|
*/
|
|
9120
|
-
var now = function() {
|
|
9120
|
+
var now$1 = function() {
|
|
9121
9121
|
return root.Date.now();
|
|
9122
9122
|
};
|
|
9123
9123
|
|
|
@@ -9246,7 +9246,7 @@ function debounce(func, wait, options) {
|
|
|
9246
9246
|
}
|
|
9247
9247
|
|
|
9248
9248
|
function timerExpired() {
|
|
9249
|
-
var time = now();
|
|
9249
|
+
var time = now$1();
|
|
9250
9250
|
if (shouldInvoke(time)) {
|
|
9251
9251
|
return trailingEdge(time);
|
|
9252
9252
|
}
|
|
@@ -9275,11 +9275,11 @@ function debounce(func, wait, options) {
|
|
|
9275
9275
|
}
|
|
9276
9276
|
|
|
9277
9277
|
function flush() {
|
|
9278
|
-
return timerId === undefined ? result : trailingEdge(now());
|
|
9278
|
+
return timerId === undefined ? result : trailingEdge(now$1());
|
|
9279
9279
|
}
|
|
9280
9280
|
|
|
9281
9281
|
function debounced() {
|
|
9282
|
-
var time = now(),
|
|
9282
|
+
var time = now$1(),
|
|
9283
9283
|
isInvoking = shouldInvoke(time);
|
|
9284
9284
|
|
|
9285
9285
|
lastArgs = arguments;
|
|
@@ -9468,15 +9468,17 @@ const SLOTS$w = {
|
|
|
9468
9468
|
const ICONS$j = {
|
|
9469
9469
|
menu: "ellipsis",
|
|
9470
9470
|
};
|
|
9471
|
+
const activeAttr = "data-active";
|
|
9471
9472
|
|
|
9472
9473
|
const overflowActionsDebounceInMs = 150;
|
|
9473
9474
|
const groupBufferPx = 2;
|
|
9474
9475
|
const getAverage = (arr) => arr.reduce((p, c) => p + c, 0) / arr.length;
|
|
9475
9476
|
const geActionDimensions = (actions) => {
|
|
9476
|
-
const
|
|
9477
|
+
const actionsNotSlotted = actions.filter((action) => action.slot !== SLOTS$x.menuActions);
|
|
9478
|
+
const actionLen = actionsNotSlotted?.length;
|
|
9477
9479
|
return {
|
|
9478
|
-
actionWidth: actionLen ? getAverage(
|
|
9479
|
-
actionHeight: actionLen ? getAverage(
|
|
9480
|
+
actionWidth: actionLen ? getAverage(actionsNotSlotted.map((action) => action.clientWidth || 0)) : 0,
|
|
9481
|
+
actionHeight: actionLen ? getAverage(actionsNotSlotted.map((action) => action.clientHeight || 0)) : 0,
|
|
9480
9482
|
};
|
|
9481
9483
|
};
|
|
9482
9484
|
const getMaxActionCount = ({ width, actionWidth, layout, height, actionHeight, groupCount, }) => {
|
|
@@ -9680,9 +9682,12 @@ class ActionBar {
|
|
|
9680
9682
|
this.updateGroups();
|
|
9681
9683
|
}
|
|
9682
9684
|
overflowDisabledHandler(overflowActionsDisabled) {
|
|
9683
|
-
overflowActionsDisabled
|
|
9684
|
-
|
|
9685
|
-
|
|
9685
|
+
if (overflowActionsDisabled) {
|
|
9686
|
+
this.resizeObserver?.disconnect();
|
|
9687
|
+
return;
|
|
9688
|
+
}
|
|
9689
|
+
this.resizeObserver?.observe(this.el);
|
|
9690
|
+
this.overflowActions();
|
|
9686
9691
|
}
|
|
9687
9692
|
onMessagesChange() {
|
|
9688
9693
|
/* wired up by t9n util */
|
|
@@ -9927,7 +9932,7 @@ function getRoundRobinIndex(index, total) {
|
|
|
9927
9932
|
return (index + total) % total;
|
|
9928
9933
|
}
|
|
9929
9934
|
|
|
9930
|
-
const actionMenuCss = "/*!@:host*/.sc-calcite-action-menu-h{box-sizing:border-box;display:flex;flex-direction:column;
|
|
9935
|
+
const actionMenuCss = "/*!@:host*/.sc-calcite-action-menu-h{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1);color:var(--calcite-ui-text-2)}/*!@.menu ::slotted(calcite-action)*/.menu .sc-calcite-action-menu-s>calcite-action{margin:0.125rem;display:flex;outline-color:transparent}/*!@.menu ::slotted(calcite-action[data-active])*/.menu .sc-calcite-action-menu-s>calcite-action[data-active]{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 );outline-offset:0px}/*!@.default-trigger*/.default-trigger.sc-calcite-action-menu{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}/*!@slot[name=trigger]::slotted(calcite-action),\ncalcite-action::slotted([slot=trigger])*/slot[name=trigger].sc-calcite-action-menu-s>calcite-action,calcite-action.sc-calcite-action-menu-s>[slot=trigger]{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}/*!@.menu*/.menu.sc-calcite-action-menu{flex-direction:column;flex-wrap:nowrap;outline:2px solid transparent;outline-offset:2px}/*!@:host([hidden])*/[hidden].sc-calcite-action-menu-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-action-menu{display:none}";
|
|
9931
9936
|
|
|
9932
9937
|
const SUPPORTED_MENU_NAV_KEYS = ["ArrowUp", "ArrowDown", "End", "Home"];
|
|
9933
9938
|
/**
|
|
@@ -10035,7 +10040,8 @@ class ActionMenu {
|
|
|
10035
10040
|
if (!action.id) {
|
|
10036
10041
|
action.id = id;
|
|
10037
10042
|
}
|
|
10038
|
-
action
|
|
10043
|
+
// data attribute is used to style the "activeMenuItemIndex" action using token focus styling.
|
|
10044
|
+
action.toggleAttribute(activeAttr, index === activeMenuItemIndex);
|
|
10039
10045
|
};
|
|
10040
10046
|
this.updateActions = (actions) => {
|
|
10041
10047
|
actions?.forEach(this.updateAction);
|
|
@@ -10111,6 +10117,7 @@ class ActionMenu {
|
|
|
10111
10117
|
this.el.addEventListener("calcitePopoverOpen", this.toggleOpenEnd);
|
|
10112
10118
|
this.open = value;
|
|
10113
10119
|
};
|
|
10120
|
+
this.appearance = "solid";
|
|
10114
10121
|
this.expanded = false;
|
|
10115
10122
|
this.flipPlacements = undefined;
|
|
10116
10123
|
this.label = undefined;
|
|
@@ -10171,8 +10178,8 @@ class ActionMenu {
|
|
|
10171
10178
|
return focusElement(this.menuButtonEl);
|
|
10172
10179
|
}
|
|
10173
10180
|
renderMenuButton() {
|
|
10174
|
-
const { label, scale, expanded } = this;
|
|
10175
|
-
const menuButtonSlot = (hAsync("slot", { name: SLOTS$w.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { class: CSS$1a.defaultTrigger, icon: ICONS$j.menu, scale: scale, text: label, textEnabled: expanded,
|
|
10181
|
+
const { appearance, label, scale, expanded } = this;
|
|
10182
|
+
const menuButtonSlot = (hAsync("slot", { name: SLOTS$w.trigger, onSlotchange: this.setMenuButtonEl }, hAsync("calcite-action", { appearance: appearance, class: CSS$1a.defaultTrigger, icon: ICONS$j.menu, scale: scale, text: label, textEnabled: expanded,
|
|
10176
10183
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10177
10184
|
ref: this.setDefaultMenuButtonEl })));
|
|
10178
10185
|
return menuButtonSlot;
|
|
@@ -10200,6 +10207,7 @@ class ActionMenu {
|
|
|
10200
10207
|
"$flags$": 9,
|
|
10201
10208
|
"$tagName$": "calcite-action-menu",
|
|
10202
10209
|
"$members$": {
|
|
10210
|
+
"appearance": [513],
|
|
10203
10211
|
"expanded": [516],
|
|
10204
10212
|
"flipPlacements": [16],
|
|
10205
10213
|
"label": [1],
|
|
@@ -10213,7 +10221,7 @@ class ActionMenu {
|
|
|
10213
10221
|
},
|
|
10214
10222
|
"$listeners$": [[9, "pointerdown", "closeCalciteActionMenuOnClick"]],
|
|
10215
10223
|
"$lazyBundleId$": "-",
|
|
10216
|
-
"$attrsToReflect$": [["expanded", "expanded"], ["open", "open"], ["overlayPositioning", "overlay-positioning"], ["placement", "placement"], ["scale", "scale"]]
|
|
10224
|
+
"$attrsToReflect$": [["appearance", "appearance"], ["expanded", "expanded"], ["open", "open"], ["overlayPositioning", "overlay-positioning"], ["placement", "placement"], ["scale", "scale"]]
|
|
10217
10225
|
}; }
|
|
10218
10226
|
}
|
|
10219
10227
|
|
|
@@ -10479,12 +10487,58 @@ const SLOTS$t = {
|
|
|
10479
10487
|
};
|
|
10480
10488
|
const CSS$17 = {
|
|
10481
10489
|
actionsEnd: "actions-end",
|
|
10490
|
+
close: "close",
|
|
10482
10491
|
container: "container",
|
|
10483
|
-
|
|
10484
|
-
|
|
10492
|
+
containerBottom: "container--bottom",
|
|
10493
|
+
containerBottomEnd: "container--bottom-end",
|
|
10494
|
+
containerBottomStart: "container--bottom-start",
|
|
10495
|
+
containerQueued: "container--queued",
|
|
10496
|
+
containerTop: "container--top",
|
|
10497
|
+
containerTopEnd: "container--top-end",
|
|
10498
|
+
containerTopStart: "container--top-start",
|
|
10499
|
+
content: "content",
|
|
10500
|
+
contentContainer: "content-container",
|
|
10501
|
+
dismissProgress: "dismiss-progress",
|
|
10502
|
+
footer: "footer",
|
|
10503
|
+
icon: "icon",
|
|
10504
|
+
containerSlottedInShell: "container--slotted-in-shell",
|
|
10505
|
+
queueCount: "queue-count",
|
|
10506
|
+
queueCountActive: "queue-count--active",
|
|
10507
|
+
textContainer: "text-container",
|
|
10485
10508
|
};
|
|
10486
10509
|
|
|
10487
|
-
const alertCss = "/*!@:host([scale=s])*/[scale=s].sc-calcite-alert-h{--calcite-alert-width:40em;--calcite-alert-spacing-token-small:0.5rem;--calcite-alert-spacing-token-large:0.75rem}/*!@:host([scale=s]) slot[name=title]::slotted(*),\n:host([scale=s]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=s] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=s]) slot[name=message]::slotted(*),\n:host([scale=s]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=s] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) slot[name=link]::slotted(*),\n:host([scale=s]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=s] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--2);line-height:1.375}/*!@:host([scale=s]) .alert-queue-count*/[scale=s].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-inline:0.5rem}/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:3.5rem}/*!@:host([scale=s]) .alert-close*/[scale=s].sc-calcite-alert-h .alert-close.sc-calcite-alert{padding:0.5rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-alert-h{--calcite-alert-width:50em;--calcite-alert-spacing-token-small:0.75rem;--calcite-alert-spacing-token-large:1rem}/*!@:host([scale=m]) slot[name=title]::slotted(*),\n:host([scale=m]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=m] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=m]) slot[name=message]::slotted(*),\n:host([scale=m]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=m] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) slot[name=link]::slotted(*),\n:host([scale=m]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=m] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size--1);line-height:1.375}/*!@:host([scale=m]) .alert-queue-count*/[scale=m].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-inline:0.75rem}/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:4.1875rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-alert-h{--calcite-alert-width:60em;--calcite-alert-spacing-token-small:1rem;--calcite-alert-spacing-token-large:1.25rem}/*!@:host([scale=l]) slot[name=title]::slotted(*),\n:host([scale=l]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=l] slot[name=title].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=title]{margin-block-end:0.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}/*!@:host([scale=l]) slot[name=message]::slotted(*),\n:host([scale=l]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=l] slot[name=message].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=message]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) slot[name=link]::slotted(*),\n:host([scale=l]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=l] slot[name=link].sc-calcite-alert-s>*,.sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s>[slot=link]{font-size:var(--calcite-font-size-0);line-height:1.375}/*!@:host([scale=l]) .alert-queue-count*/[scale=l].sc-calcite-alert-h .alert-queue-count.sc-calcite-alert{margin-inline:1rem}/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-alert-h .container.sc-calcite-alert{--calcite-alert-min-height:5.625rem}/*!@:host*/.sc-calcite-alert-h{--calcite-alert-edge-distance:2rem;display:block}/*!@:host .container*/.sc-calcite-alert-h .container.sc-calcite-alert{pointer-events:none;position:fixed;z-index:var(--calcite-app-z-index-toast);margin-block:0px;margin-inline:auto;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-radius:var(--calcite-border-radius);border-block-start:0px solid transparent;border-inline:1px solid var(--calcite-ui-border-3);border-block-end:1px solid var(--calcite-ui-border-3);min-block-size:var(--calcite-alert-min-height);inline-size:var(--calcite-alert-width);max-inline-size:calc(100% - (var(--calcite-alert-edge-distance) * 2 + 2px));max-block-size:0;transition:var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@:host .container.bottom, :host .container.top*/.sc-calcite-alert-h .container.bottom.sc-calcite-alert,.sc-calcite-alert-h .container.top.sc-calcite-alert{inset-inline-end:0;inset-inline-start:0}/*!@:host .container[class*=bottom]*/.sc-calcite-alert-h .container[class*=bottom].sc-calcite-alert{transform:translate3d(0, var(--calcite-alert-edge-distance), 0);inset-block-end:var(--calcite-alert-edge-distance)}/*!@:host .container[class*=top]*/.sc-calcite-alert-h .container[class*=top].sc-calcite-alert{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);inset-block-start:var(--calcite-alert-edge-distance)}/*!@:host .container[class*=-start]*/.sc-calcite-alert-h .container[class*=-start].sc-calcite-alert{inset-inline-start:var(--calcite-alert-edge-distance);inset-inline-end:auto}/*!@:host .container[class*=-end]*/.sc-calcite-alert-h .container[class*=-end].sc-calcite-alert{inset-inline-end:var(--calcite-alert-edge-distance);inset-inline-start:auto}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-alert-h{visibility:hidden !important;pointer-events:none}/*!@.container*/.container.sc-calcite-alert{display:flex;inline-size:100%;align-items:center;justify-content:center}/*!@.alert-close*/.alert-close.sc-calcite-alert{outline-color:transparent}/*!@.alert-close:focus*/.alert-close.sc-calcite-alert:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host([open]) .container:not(.queued)*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued){max-block-size:100%;border-block-start-width:2px;opacity:1;pointer-events:initial}/*!@:host([open]) .container:not(.queued)[class*=bottom]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued)[class*=bottom]{transform:translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit)}/*!@:host([open]) .container:not(.queued)[class*=top]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.queued)[class*=top]{transform:translate3d(0, var(--calcite-alert-edge-distance), inherit)}/*!@slot[name=title]::slotted(*),\n*::slotted([slot=title])*/slot[name=title].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=title]{font-size:var(--calcite-font-size-0);line-height:1.375;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@slot[name=message]::slotted(*),\n*::slotted([slot=message])*/slot[name=message].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=message]{margin:0px;display:inline;font-size:var(--calcite-font-size--1);line-height:1.375;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-2);margin-inline-end:0.5rem}/*!@slot[name=link]::slotted(*),\n*::slotted([slot=link])*/slot[name=link].sc-calcite-alert-s>*,*.sc-calcite-alert-s>[slot=link]{display:inline-flex;color:var(--calcite-ui-text-link)}/*!@.alert-content*/.alert-content.sc-calcite-alert{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;display:flex;flex-direction:column;overflow-wrap:break-word;background-color:var(--calcite-ui-foreground-1);flex:1 1 0;min-inline-size:0;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:0 var(--calcite-alert-spacing-token-small);border-radius:var(--calcite-border-radius)}/*!@.alert-content:first-of-type:not(:only-child)*/.alert-content.sc-calcite-alert:first-of-type:not(:only-child){padding-inline-start:var(--calcite-alert-spacing-token-large)}/*!@.alert-content:only-child*/.alert-content.sc-calcite-alert:only-child{padding:var(--calcite-alert-spacing-token-small)}/*!@.alert-icon*/.alert-icon.sc-calcite-alert{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;display:flex;align-items:center;align-self:stretch;background-color:var(--calcite-ui-foreground-1);padding-block:0px;border-start-start-radius:var(--calcite-border-radius);border-end-start-radius:var(--calcite-border-radius)}/*!@.alert-close*/.alert-close.sc-calcite-alert{transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-alert-spacing-token-small);padding-inline:var(--calcite-alert-spacing-token-large);flex:0 0 auto;cursor:pointer;align-self:stretch;overflow:hidden;border-style:none;background-color:var(--calcite-ui-foreground-1);padding-block:0px;color:var(--calcite-ui-text-3);outline:2px solid transparent;outline-offset:2px;border-end-end-radius:var(--calcite-border-radius);border-start-end-radius:var(--calcite-border-radius)}/*!@.alert-close:hover, .alert-close:focus*/.alert-close.sc-calcite-alert:hover,.alert-close.sc-calcite-alert:focus{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.alert-close:open*/.alert-close.sc-calcite-alert:open{background-color:var(--calcite-ui-foreground-3)}/*!@.alert-queue-count*/.alert-queue-count.sc-calcite-alert{visibility:hidden;display:flex;cursor:default;align-items:center;justify-content:space-around;align-self:stretch;overflow:hidden;background-color:var(--calcite-ui-foreground-1);text-align:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-2);opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline:0px solid transparent;border-start-end-radius:0}/*!@.alert-queue-count.active*/.alert-queue-count.active.sc-calcite-alert{visibility:visible;opacity:1}/*!@:host([auto-close]) > .alert-queue-count*/[auto-close].sc-calcite-alert-h>.alert-queue-count.sc-calcite-alert{border-inline-end:0px solid transparent}/*!@.alert-dismiss-progress*/.alert-dismiss-progress.sc-calcite-alert{position:absolute;display:block;inline-size:100%;overflow:hidden;inset-inline:0;inset-block-start:-2px;block-size:2px;border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}/*!@.alert-dismiss-progress:after*/.alert-dismiss-progress.sc-calcite-alert:after{position:absolute;inset-block-start:0px;display:block;block-size:2px;content:\"\";background-color:var(--calcite-alert-dismiss-progress-background);inset-inline-end:0}/*!@.actions-end*/.actions-end.sc-calcite-alert{display:flex;align-self:stretch}/*!@:host([kind=brand]) .container*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-brand)}/*!@:host([kind=brand]) .container .alert-icon*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-brand)}/*!@:host([kind=info]) .container*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-info)}/*!@:host([kind=info]) .container .alert-icon*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-info)}/*!@:host([kind=danger]) .container*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-danger)}/*!@:host([kind=danger]) .container .alert-icon*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-danger)}/*!@:host([kind=success]) .container*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-success)}/*!@:host([kind=success]) .container .alert-icon*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-success)}/*!@:host([kind=warning]) .container*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert{border-block-start-color:var(--calcite-ui-warning)}/*!@:host([kind=warning]) .container .alert-icon*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert .alert-icon.sc-calcite-alert{color:var(--calcite-ui-warning)}/*!@:host([auto-close-duration=fast]) .alert-dismiss-progress:after*/[auto-close-duration=fast].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 6000ms ease-out}/*!@:host(:hover[auto-close-duration=fast]) .alert-dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=fast] .alert-dismiss-progress.sc-calcite-alert:after{animation-play-state:paused}/*!@:host([auto-close-duration=medium]) .alert-dismiss-progress:after*/[auto-close-duration=medium].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 10000ms ease-out}/*!@:host(:hover[auto-close-duration=medium]) .alert-dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=medium] .alert-dismiss-progress.sc-calcite-alert:after{animation-play-state:paused}/*!@:host([auto-close-duration=slow]) .alert-dismiss-progress:after*/[auto-close-duration=slow].sc-calcite-alert-h .alert-dismiss-progress.sc-calcite-alert:after{animation:dismissProgress 14000ms ease-out}/*!@:host(:hover[auto-close-duration=slow]) .alert-dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=slow] .alert-dismiss-progress.sc-calcite-alert:after{animation-play-state:paused}@keyframes dismissProgress{0%{inline-size:0px;opacity:0.75}100%{inline-size:100%;opacity:1}}/*!@.container.slotted-in-shell*/.container.slotted-in-shell.sc-calcite-alert{position:absolute}/*!@:host([hidden])*/[hidden].sc-calcite-alert-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-alert{display:none}";
|
|
10510
|
+
let getBreakpointsPromise;
|
|
10511
|
+
function breakpointTokenToNumericalValue(style, tokenName) {
|
|
10512
|
+
return parseInt(style.getPropertyValue(tokenName));
|
|
10513
|
+
}
|
|
10514
|
+
/**
|
|
10515
|
+
* This util will return a breakpoints lookup object.
|
|
10516
|
+
*
|
|
10517
|
+
* Note that the breakpoints will be evaluated at the root and cached for reuse.
|
|
10518
|
+
*
|
|
10519
|
+
* @returns {Promise<Breakpoints>} The Breakpoints object.
|
|
10520
|
+
*/
|
|
10521
|
+
async function getBreakpoints() {
|
|
10522
|
+
if (getBreakpointsPromise) {
|
|
10523
|
+
return getBreakpointsPromise;
|
|
10524
|
+
}
|
|
10525
|
+
getBreakpointsPromise = new Promise((resolve) => {
|
|
10526
|
+
requestAnimationFrame(() => {
|
|
10527
|
+
const rootStyles = getComputedStyle(document.body);
|
|
10528
|
+
resolve({
|
|
10529
|
+
width: {
|
|
10530
|
+
large: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-lg"),
|
|
10531
|
+
medium: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-md"),
|
|
10532
|
+
small: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-sm"),
|
|
10533
|
+
xsmall: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-xs"),
|
|
10534
|
+
},
|
|
10535
|
+
});
|
|
10536
|
+
});
|
|
10537
|
+
});
|
|
10538
|
+
return getBreakpointsPromise;
|
|
10539
|
+
}
|
|
10540
|
+
|
|
10541
|
+
const alertCss = "/*!@:host*/.sc-calcite-alert-h {\n --calcite-alert-edge-distance: 2rem;\n display: block;\n}\n\n/*!@.container*/.container.sc-calcite-alert {\n pointer-events: none;\n position: fixed;\n z-index: var(--calcite-app-z-index-toast);\n margin-inline: auto;\n margin-block: 0px;\n box-sizing: border-box;\n display: flex;\n inline-size: 100%;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n background-color: var(--calcite-ui-foreground-1);\n text-align: start;\n opacity: 0;\n --tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);\n --tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n container: responsive-container/inline-size;\n border-radius: var(--calcite-border-radius);\n border-block-start: 0 solid transparent;\n border-inline: 1px solid var(--calcite-ui-border-3);\n border-block-end: 1px solid var(--calcite-ui-border-3);\n inline-size: var(--calcite-alert-width);\n max-inline-size: calc(100% - var(--calcite-alert-edge-distance) * 2);\n transition: var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out;\n}\n/*!@.container--bottom, .container--top*/.container--bottom.sc-calcite-alert, .container--top.sc-calcite-alert {\n inset-inline-end: 0;\n inset-inline-start: 0;\n}\n/*!@.container[class*=bottom]*/.container[class*=bottom].sc-calcite-alert {\n transform: translate3d(0, var(--calcite-alert-edge-distance), 0);\n inset-block-end: var(--calcite-alert-edge-distance);\n}\n/*!@.container[class*=top]*/.container[class*=top].sc-calcite-alert {\n transform: translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), 0);\n inset-block-start: var(--calcite-alert-edge-distance);\n}\n/*!@.container[class*=start]*/.container[class*=start].sc-calcite-alert {\n inset-inline-start: var(--calcite-alert-edge-distance);\n inset-inline-end: auto;\n}\n/*!@.container[class*=end]*/.container[class*=end].sc-calcite-alert {\n inset-inline-end: var(--calcite-alert-edge-distance);\n inset-inline-start: auto;\n}\n\n/*!@.content*/.content.sc-calcite-alert {\n box-sizing: border-box;\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n padding-block: var(--calcite-alert-spacing-token-small);\n padding-inline: var(--calcite-alert-spacing-token-large) var(--calcite-alert-spacing-token-small);\n}\n\n/*!@.icon*/.icon.sc-calcite-alert {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n padding: 0px;\n margin-block-end: var(--calcite-alert-spacing-token-large);\n margin-inline-end: auto;\n}\n\n/*!@.close*/.close.sc-calcite-alert {\n display: flex;\n cursor: pointer;\n align-items: flex-start;\n justify-content: flex-end;\n align-self: flex-start;\n border-style: none;\n background-color: transparent;\n color: var(--calcite-ui-text-3);\n outline: 2px solid transparent;\n outline-offset: 2px;\n -webkit-appearance: none;\n padding: var(--calcite-alert-spacing-token-large);\n outline-color: transparent;\n}\n/*!@.close:focus*/.close.sc-calcite-alert:focus {\n outline: 2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));\n outline-offset: calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n );\n}\n/*!@.close:hover, .close:focus*/.close.sc-calcite-alert:hover, .close.sc-calcite-alert:focus {\n background-color: var(--calcite-ui-foreground-2);\n color: var(--calcite-ui-text-1);\n}\n/*!@.close:active*/.close.sc-calcite-alert:active {\n background-color: var(--calcite-ui-foreground-3);\n}\n\n/*!@.queue-count*/.queue-count.sc-calcite-alert {\n visibility: hidden;\n display: flex;\n cursor: default;\n align-items: center;\n justify-content: space-around;\n align-self: stretch;\n overflow: hidden;\n background-color: var(--calcite-ui-foreground-1);\n text-align: center;\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-2);\n opacity: 0;\n transition: all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;\n border-inline: 0 solid transparent;\n border-start-end-radius: 0;\n}\n/*!@.queue-count--active*/.queue-count--active.sc-calcite-alert {\n visibility: visible;\n opacity: 1;\n}\n\n/*!@.dismiss-progress*/.dismiss-progress.sc-calcite-alert {\n position: absolute;\n display: block;\n inline-size: 100%;\n overflow: hidden;\n inset-inline: 0;\n inset-block-start: -2px;\n block-size: 2px;\n border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0;\n}\n/*!@.dismiss-progress:after*/.dismiss-progress.sc-calcite-alert:after {\n position: absolute;\n inset-block-start: 0px;\n display: block;\n block-size: 2px;\n content: \"\";\n background-color: var(--calcite-alert-dismiss-progress-background);\n inset-inline-end: 0;\n}\n\n/*!@.actions-end*/.actions-end.sc-calcite-alert {\n display: flex;\n align-self: stretch;\n}\n\n/*!@.text-container*/.text-container.sc-calcite-alert {\n display: flex;\n min-inline-size: 0px;\n flex: 1 1 0%;\n flex-direction: column;\n overflow-wrap: break-word;\n}\n\n/*!@.content-container*/.content-container.sc-calcite-alert {\n display: flex;\n flex: 1 1 0%;\n}\n\n/*!@.footer*/.footer.sc-calcite-alert {\n position: relative;\n order: 1;\n display: flex;\n inline-size: 100%;\n justify-content: flex-end;\n padding-block-start: 1px;\n block-size: var(--calcite-alert-footer-height);\n}\n/*!@.footer:before*/.footer.sc-calcite-alert:before {\n content: \"\";\n position: absolute;\n inset-block-start: 0px;\n inset-inline: var(--calcite-alert-footer-divider-gap);\n border-block-start: 1px solid var(--calcite-ui-border-3);\n}\n\n/*!@:host([scale=s])*/[scale=s].sc-calcite-alert-h {\n --calcite-alert-width: 40em;\n --calcite-alert-spacing-token-small: 0.5rem;\n --calcite-alert-spacing-token-large: 0.75rem;\n --calcite-alert-footer-height: 2rem;\n --calcite-alert-footer-divider-gap: 0.125rem;\n}\n/*!@:host([scale=s]) slot[name=title]::slotted(*),\n:host([scale=s]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=s] slot[name=title].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s > [slot=title] {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n}\n/*!@:host([scale=s]) slot[name=message]::slotted(*),\n:host([scale=s]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=s] slot[name=message].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s > [slot=message] {\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n}\n/*!@:host([scale=s]) slot[name=link]::slotted(*),\n:host([scale=s]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=s] slot[name=link].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=s] *.sc-calcite-alert-s > [slot=link] {\n font-size: var(--calcite-font-size--2);\n line-height: 1.375;\n}\n/*!@:host([scale=s]) .queue-count*/[scale=s].sc-calcite-alert-h .queue-count.sc-calcite-alert {\n margin-inline: 0.5rem;\n}\n/*!@:host([scale=s]) .container*/[scale=s].sc-calcite-alert-h .container.sc-calcite-alert {\n --calcite-alert-min-height: 3.5rem;\n}\n\n/*!@:host([scale=m])*/[scale=m].sc-calcite-alert-h {\n --calcite-alert-width: 50em;\n --calcite-alert-spacing-token-small: 0.75rem;\n --calcite-alert-spacing-token-large: 1rem;\n --calcite-alert-footer-height: 3rem;\n --calcite-alert-footer-divider-gap: 0.25rem;\n}\n/*!@:host([scale=m]) slot[name=title]::slotted(*),\n:host([scale=m]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=m] slot[name=title].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s > [slot=title] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n}\n/*!@:host([scale=m]) slot[name=message]::slotted(*),\n:host([scale=m]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=m] slot[name=message].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s > [slot=message] {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n}\n/*!@:host([scale=m]) slot[name=link]::slotted(*),\n:host([scale=m]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=m] slot[name=link].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=m] *.sc-calcite-alert-s > [slot=link] {\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n}\n/*!@:host([scale=m]) .queue-count*/[scale=m].sc-calcite-alert-h .queue-count.sc-calcite-alert {\n margin-inline: 0.75rem;\n}\n/*!@:host([scale=m]) .container*/[scale=m].sc-calcite-alert-h .container.sc-calcite-alert {\n --calcite-alert-min-height: 4.1875rem;\n}\n\n/*!@:host([scale=l])*/[scale=l].sc-calcite-alert-h {\n --calcite-alert-width: 60em;\n --calcite-alert-spacing-token-small: 1rem;\n --calcite-alert-spacing-token-large: 1.25rem;\n --calcite-alert-footer-height: 4rem;\n --calcite-alert-footer-divider-gap: 0.5rem;\n}\n/*!@:host([scale=l]) slot[name=title]::slotted(*),\n:host([scale=l]) *::slotted([slot=title])*/.sc-calcite-alert-h[scale=l] slot[name=title].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s > [slot=title] {\n margin-block-end: 0.25rem;\n font-size: var(--calcite-font-size-1);\n line-height: 1.375;\n}\n/*!@:host([scale=l]) slot[name=message]::slotted(*),\n:host([scale=l]) *::slotted([slot=message])*/.sc-calcite-alert-h[scale=l] slot[name=message].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s > [slot=message] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n}\n/*!@:host([scale=l]) slot[name=link]::slotted(*),\n:host([scale=l]) *::slotted([slot=link])*/.sc-calcite-alert-h[scale=l] slot[name=link].sc-calcite-alert-s > *, .sc-calcite-alert-h[scale=l] *.sc-calcite-alert-s > [slot=link] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n}\n/*!@:host([scale=l]) .queue-count*/[scale=l].sc-calcite-alert-h .queue-count.sc-calcite-alert {\n margin-inline: 1rem;\n}\n/*!@:host([scale=l]) .container*/[scale=l].sc-calcite-alert-h .container.sc-calcite-alert {\n --calcite-alert-min-height: 5.625rem;\n}\n\n/*!@:host([open]) .container:not(.container--queued)*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued) {\n border-block-start-width: 2px;\n opacity: 1;\n pointer-events: initial;\n}\n/*!@:host([open]) .container:not(.container--queued)[class*=bottom]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued)[class*=bottom] {\n transform: translate3d(0, calc(-1 * var(--calcite-alert-edge-distance)), inherit);\n}\n/*!@:host([open]) .container:not(.container--queued)[class*=top]*/[open].sc-calcite-alert-h .container.sc-calcite-alert:not(.container--queued)[class*=top] {\n transform: translate3d(0, var(--calcite-alert-edge-distance), inherit);\n}\n\n/*!@:host([auto-close]) > .queue-count*/[auto-close].sc-calcite-alert-h > .queue-count.sc-calcite-alert {\n border-inline-end: 0 solid transparent;\n}\n\n/*!@slot[name=title]::slotted(*),\n*::slotted([slot=title])*/slot[name=title].sc-calcite-alert-s > *, *.sc-calcite-alert-s > [slot=title] {\n font-size: var(--calcite-font-size-0);\n line-height: 1.375;\n font-weight: var(--calcite-font-weight-medium);\n color: var(--calcite-ui-text-1);\n}\n\n/*!@slot[name=message]::slotted(*),\n*::slotted([slot=message])*/slot[name=message].sc-calcite-alert-s > *, *.sc-calcite-alert-s > [slot=message] {\n margin: 0px;\n display: inline;\n font-size: var(--calcite-font-size--1);\n line-height: 1.375;\n font-weight: var(--calcite-font-weight-normal);\n color: var(--calcite-ui-text-2);\n margin-inline-end: 0.5rem;\n}\n\n/*!@slot[name=link]::slotted(*),\n*::slotted([slot=link])*/slot[name=link].sc-calcite-alert-s > *, *.sc-calcite-alert-s > [slot=link] {\n display: inline-flex;\n color: var(--calcite-ui-text-link);\n}\n\n/*!@:host([kind=brand]) .container*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-brand);\n}\n/*!@:host([kind=brand]) .container .icon*/[kind=brand].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-brand);\n}\n\n/*!@:host([kind=info]) .container*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-info);\n}\n/*!@:host([kind=info]) .container .icon*/[kind=info].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-info);\n}\n\n/*!@:host([kind=danger]) .container*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-danger);\n}\n/*!@:host([kind=danger]) .container .icon*/[kind=danger].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-danger);\n}\n\n/*!@:host([kind=success]) .container*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-success);\n}\n/*!@:host([kind=success]) .container .icon*/[kind=success].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-success);\n}\n\n/*!@:host([kind=warning]) .container*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert {\n border-block-start-color: var(--calcite-ui-warning);\n}\n/*!@:host([kind=warning]) .container .icon*/[kind=warning].sc-calcite-alert-h .container.sc-calcite-alert .icon.sc-calcite-alert {\n color: var(--calcite-ui-warning);\n}\n\n/*!@:host([auto-close-duration=fast]) .dismiss-progress:after*/[auto-close-duration=fast].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after {\n animation: dismissProgress 6000ms ease-out;\n}\n\n/*!@:host(:hover[auto-close-duration=fast]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=fast] .dismiss-progress.sc-calcite-alert:after {\n animation-play-state: paused;\n}\n\n/*!@:host([auto-close-duration=medium]) .dismiss-progress:after*/[auto-close-duration=medium].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after {\n animation: dismissProgress 10000ms ease-out;\n}\n\n/*!@:host(:hover[auto-close-duration=medium]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=medium] .dismiss-progress.sc-calcite-alert:after {\n animation-play-state: paused;\n}\n\n/*!@:host([auto-close-duration=slow]) .dismiss-progress:after*/[auto-close-duration=slow].sc-calcite-alert-h .dismiss-progress.sc-calcite-alert:after {\n animation: dismissProgress 14000ms ease-out;\n}\n\n/*!@:host(:hover[auto-close-duration=slow]) .dismiss-progress:after*/.sc-calcite-alert-h:hover[auto-close-duration=slow] .dismiss-progress.sc-calcite-alert:after {\n animation-play-state: paused;\n}\n\n@keyframes dismissProgress {\n 0% {\n inline-size: 0px;\n opacity: 0.75;\n }\n 100% {\n inline-size: 100%;\n opacity: 1;\n }\n}\n\n/*!@.container--slotted-in-shell*/.container--slotted-in-shell.sc-calcite-alert {\n position: absolute;\n}\n\n@container responsive-container (min-width: 476px) {\n .content {\n flex-direction: row;\n }\n .close {\n align-items: center;\n align-self: stretch;\n }\n .icon {\n justify-content: center;\n margin-inline-end: 0;\n margin-block: 0;\n padding-inline-end: var(--calcite-alert-spacing-token-large);\n }\n}\n@container responsive-container (min-width: 768px) {\n .close {\n align-self: stretch;\n }\n .footer {\n inline-size: auto;\n align-self: stretch;\n order: initial;\n block-size: inherit;\n }\n .footer:before {\n content: none;\n }\n .icon {\n padding-inline: var(--calcite-alert-spacing-token-large) 0;\n }\n}\n/*!@:host([hidden])*/[hidden].sc-calcite-alert-h {\n display: none;\n}\n\n/*!@[hidden]*/[hidden].sc-calcite-alert {\n display: none;\n}\n\n/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-alert-h {\n visibility: hidden !important;\n pointer-events: none;\n}";
|
|
10488
10542
|
|
|
10489
10543
|
/**
|
|
10490
10544
|
* Alerts are meant to provide a way to communicate urgent or important information to users, frequently as a result of an action they took in your app. Alerts are positioned
|
|
@@ -10506,6 +10560,7 @@ class Alert {
|
|
|
10506
10560
|
this.calciteInternalAlertSync = createEvent(this, "calciteInternalAlertSync", 6);
|
|
10507
10561
|
this.calciteInternalAlertRegister = createEvent(this, "calciteInternalAlertRegister", 6);
|
|
10508
10562
|
this.autoCloseTimeoutId = null;
|
|
10563
|
+
this.resizeObserver = createObserver();
|
|
10509
10564
|
this.totalOpenTime = 0;
|
|
10510
10565
|
this.totalHoverTime = 0;
|
|
10511
10566
|
this.openTransitionProp = "opacity";
|
|
@@ -10553,13 +10608,13 @@ class Alert {
|
|
|
10553
10608
|
this.messages = undefined;
|
|
10554
10609
|
this.messageOverrides = undefined;
|
|
10555
10610
|
this.slottedInShell = undefined;
|
|
10556
|
-
this.effectiveLocale = "";
|
|
10557
10611
|
this.defaultMessages = undefined;
|
|
10612
|
+
this.effectiveLocale = "";
|
|
10558
10613
|
this.hasEndActions = false;
|
|
10559
10614
|
this.queue = [];
|
|
10560
10615
|
this.queueLength = 0;
|
|
10561
10616
|
this.queued = false;
|
|
10562
|
-
this.
|
|
10617
|
+
this.responsiveContainerWidth = undefined;
|
|
10563
10618
|
}
|
|
10564
10619
|
openHandler() {
|
|
10565
10620
|
onToggleOpenCloseComponent(this);
|
|
@@ -10574,9 +10629,6 @@ class Alert {
|
|
|
10574
10629
|
onMessagesChange() {
|
|
10575
10630
|
/* wired up by t9n util */
|
|
10576
10631
|
}
|
|
10577
|
-
updateRequestedIcon() {
|
|
10578
|
-
this.requestedIcon = setRequestedIcon(KindIcons, this.icon, this.kind);
|
|
10579
|
-
}
|
|
10580
10632
|
updateDuration() {
|
|
10581
10633
|
if (this.autoClose && this.autoCloseTimeoutId) {
|
|
10582
10634
|
window.clearTimeout(this.autoCloseTimeoutId);
|
|
@@ -10595,17 +10647,21 @@ class Alert {
|
|
|
10595
10647
|
if (open && !this.queued) {
|
|
10596
10648
|
this.calciteInternalAlertRegister.emit();
|
|
10597
10649
|
}
|
|
10650
|
+
if (this.transitionEl) {
|
|
10651
|
+
this.resizeObserver?.observe(this.transitionEl);
|
|
10652
|
+
}
|
|
10598
10653
|
}
|
|
10599
10654
|
async componentWillLoad() {
|
|
10600
10655
|
setUpLoadableComponent(this);
|
|
10601
|
-
|
|
10602
|
-
|
|
10656
|
+
const [, breakpoints] = await Promise.all([setUpMessages(this), getBreakpoints()]);
|
|
10657
|
+
this.breakpoints = breakpoints;
|
|
10603
10658
|
if (this.open) {
|
|
10604
10659
|
onToggleOpenCloseComponent(this);
|
|
10605
10660
|
}
|
|
10606
10661
|
}
|
|
10607
10662
|
componentDidLoad() {
|
|
10608
10663
|
setComponentLoaded(this);
|
|
10664
|
+
this.resizeObserver?.observe(this.transitionEl);
|
|
10609
10665
|
}
|
|
10610
10666
|
disconnectedCallback() {
|
|
10611
10667
|
window.dispatchEvent(new CustomEvent("calciteInternalAlertUnregister", {
|
|
@@ -10616,32 +10672,50 @@ class Alert {
|
|
|
10616
10672
|
disconnectLocalized(this);
|
|
10617
10673
|
disconnectMessages(this);
|
|
10618
10674
|
this.slottedInShell = false;
|
|
10675
|
+
this.resizeObserver?.disconnect();
|
|
10619
10676
|
}
|
|
10620
10677
|
render() {
|
|
10621
|
-
const { hasEndActions } = this;
|
|
10622
|
-
const closeButton = (hAsync("button", { "aria-label": this.messages.close, class: "alert-close", onClick: this.closeAlert, type: "button",
|
|
10623
|
-
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10624
|
-
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
10625
10678
|
numberStringFormatter.numberFormatOptions = {
|
|
10626
10679
|
locale: this.effectiveLocale,
|
|
10627
10680
|
numberingSystem: this.numberingSystem,
|
|
10628
10681
|
signDisplay: "always",
|
|
10629
10682
|
};
|
|
10630
|
-
const
|
|
10631
|
-
const
|
|
10632
|
-
const queueCount = (hAsync("div", { class: `${this.queueLength > 1 ? "active " : ""}alert-queue-count` }, hAsync("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
10633
|
-
const { open, autoClose, label, placement, queued, requestedIcon, iconFlipRtl } = this;
|
|
10683
|
+
const { hasEndActions } = this;
|
|
10684
|
+
const { open, autoClose, responsiveContainerWidth, label, placement, queued } = this;
|
|
10634
10685
|
const role = autoClose ? "alert" : "alertdialog";
|
|
10686
|
+
const widthBreakpoints = this.breakpoints.width;
|
|
10687
|
+
const lessThanSmall = responsiveContainerWidth < widthBreakpoints.small;
|
|
10688
|
+
const greaterOrEqualThanSmall = responsiveContainerWidth >= widthBreakpoints.small;
|
|
10635
10689
|
const hidden = !open;
|
|
10636
|
-
const
|
|
10690
|
+
const effectiveIcon = setRequestedIcon(KindIcons, this.icon, this.kind);
|
|
10691
|
+
const hasQueuedAlerts = this.queueLength > 1;
|
|
10637
10692
|
return (hAsync(Host, { "aria-hidden": toAriaBoolean(hidden), "aria-label": label, "calcite-hydrated-hidden": hidden, role: role }, hAsync("div", { class: {
|
|
10638
|
-
container: true,
|
|
10639
|
-
queued,
|
|
10640
|
-
[placement]: true,
|
|
10641
|
-
[CSS$17.
|
|
10693
|
+
[CSS$17.container]: true,
|
|
10694
|
+
[CSS$17.containerQueued]: queued,
|
|
10695
|
+
[`${CSS$17.container}--${placement}`]: true,
|
|
10696
|
+
[CSS$17.containerSlottedInShell]: this.slottedInShell,
|
|
10642
10697
|
}, onPointerEnter: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseOver : null, onPointerLeave: this.autoClose && this.autoCloseTimeoutId ? this.handleMouseLeave : null,
|
|
10643
10698
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10644
|
-
ref: this.setTransitionEl },
|
|
10699
|
+
ref: this.setTransitionEl }, hAsync("div", { class: CSS$17.contentContainer }, effectiveIcon && greaterOrEqualThanSmall ? this.renderIcon(effectiveIcon) : null, hAsync("div", { class: CSS$17.content }, effectiveIcon && lessThanSmall ? this.renderIcon(effectiveIcon) : null, hAsync("div", { class: CSS$17.textContainer }, hAsync("slot", { name: SLOTS$t.title }), hAsync("slot", { name: SLOTS$t.message }), hAsync("slot", { name: SLOTS$t.link })))), lessThanSmall ? this.renderCloseButton() : null, hAsync("div", { class: CSS$17.footer, hidden: !hasEndActions && !hasQueuedAlerts }, this.renderActionsEnd(), hasQueuedAlerts ? this.renderQueueCount() : null), greaterOrEqualThanSmall ? this.renderCloseButton() : null, open && !queued && autoClose ? hAsync("div", { class: CSS$17.dismissProgress }) : null)));
|
|
10700
|
+
}
|
|
10701
|
+
renderCloseButton() {
|
|
10702
|
+
return (hAsync("button", { "aria-label": this.messages.close, class: CSS$17.close, key: "close", onClick: this.closeAlert, type: "button",
|
|
10703
|
+
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
10704
|
+
ref: (el) => (this.closeButton = el) }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : "s" })));
|
|
10705
|
+
}
|
|
10706
|
+
renderQueueCount() {
|
|
10707
|
+
const queueNumber = this.queueLength > 2 ? this.queueLength - 1 : 1;
|
|
10708
|
+
const queueText = numberStringFormatter.numberFormatter.format(queueNumber);
|
|
10709
|
+
return (hAsync("div", { class: {
|
|
10710
|
+
[CSS$17.queueCount]: true,
|
|
10711
|
+
[CSS$17.queueCountActive]: this.queueLength > 1,
|
|
10712
|
+
}, key: "queue-count" }, hAsync("calcite-chip", { scale: this.scale, value: queueText }, queueText)));
|
|
10713
|
+
}
|
|
10714
|
+
renderActionsEnd() {
|
|
10715
|
+
return (hAsync("div", { class: CSS$17.actionsEnd }, hAsync("slot", { name: SLOTS$t.actionsEnd, onSlotchange: this.actionsEndSlotChangeHandler })));
|
|
10716
|
+
}
|
|
10717
|
+
renderIcon(icon) {
|
|
10718
|
+
return (hAsync("div", { class: CSS$17.icon }, hAsync("calcite-icon", { flipRtl: this.iconFlipRtl, icon: icon, scale: this.scale === "l" ? "m" : "s" })));
|
|
10645
10719
|
}
|
|
10646
10720
|
// when an alert is opened or closed, update queue and determine active alert
|
|
10647
10721
|
alertSync(event) {
|
|
@@ -10726,8 +10800,6 @@ class Alert {
|
|
|
10726
10800
|
static get watchers() { return {
|
|
10727
10801
|
"open": ["openHandler"],
|
|
10728
10802
|
"messageOverrides": ["onMessagesChange"],
|
|
10729
|
-
"icon": ["updateRequestedIcon"],
|
|
10730
|
-
"kind": ["updateRequestedIcon"],
|
|
10731
10803
|
"autoCloseDuration": ["updateDuration"],
|
|
10732
10804
|
"effectiveLocale": ["effectiveLocaleChange"]
|
|
10733
10805
|
}; }
|
|
@@ -10749,13 +10821,13 @@ class Alert {
|
|
|
10749
10821
|
"messages": [1040],
|
|
10750
10822
|
"messageOverrides": [1040],
|
|
10751
10823
|
"slottedInShell": [1028, "slotted-in-shell"],
|
|
10752
|
-
"effectiveLocale": [32],
|
|
10753
10824
|
"defaultMessages": [32],
|
|
10825
|
+
"effectiveLocale": [32],
|
|
10754
10826
|
"hasEndActions": [32],
|
|
10755
10827
|
"queue": [32],
|
|
10756
10828
|
"queueLength": [32],
|
|
10757
10829
|
"queued": [32],
|
|
10758
|
-
"
|
|
10830
|
+
"responsiveContainerWidth": [32],
|
|
10759
10831
|
"setFocus": [64]
|
|
10760
10832
|
},
|
|
10761
10833
|
"$listeners$": [[8, "calciteInternalAlertSync", "alertSync"], [8, "calciteInternalAlertRegister", "alertRegister"], [8, "calciteInternalAlertUnregister", "alertUnregister"]],
|
|
@@ -11899,6 +11971,67 @@ const CSS$14 = {
|
|
|
11899
11971
|
buttonPaddingShrunk: "button-padding--shrunk",
|
|
11900
11972
|
};
|
|
11901
11973
|
|
|
11974
|
+
const allowedGlobalAttributes = ["lang", "role", "aria-expanded"];
|
|
11975
|
+
const elementToComponentAndObserverOptionsMap = new Map();
|
|
11976
|
+
let mutationObserver;
|
|
11977
|
+
function updateGlobalAttributes(component, attributeFilter, reuseAttributes = false) {
|
|
11978
|
+
const { el } = component;
|
|
11979
|
+
const updatedAttributes = reuseAttributes ? component.globalAttributes : {};
|
|
11980
|
+
attributeFilter
|
|
11981
|
+
.filter((attr) => !!allowedGlobalAttributes.includes(attr) && !!el.hasAttribute(attr))
|
|
11982
|
+
.forEach((attr) => {
|
|
11983
|
+
const value = el.getAttribute(attr);
|
|
11984
|
+
if (value !== null) {
|
|
11985
|
+
updatedAttributes[attr] = value;
|
|
11986
|
+
}
|
|
11987
|
+
});
|
|
11988
|
+
component.globalAttributes = updatedAttributes;
|
|
11989
|
+
}
|
|
11990
|
+
function processMutations(mutations) {
|
|
11991
|
+
mutations.forEach(({ target }) => {
|
|
11992
|
+
const [component, options] = elementToComponentAndObserverOptionsMap.get(target);
|
|
11993
|
+
updateGlobalAttributes(component, options.attributeFilter);
|
|
11994
|
+
});
|
|
11995
|
+
}
|
|
11996
|
+
/**
|
|
11997
|
+
* Helper to set up listening for changes to global attributes.
|
|
11998
|
+
*
|
|
11999
|
+
* render(): VNode {
|
|
12000
|
+
* return (<Host>
|
|
12001
|
+
* <ul {...this.globalAttributes}></div>
|
|
12002
|
+
* </Host>);
|
|
12003
|
+
* }
|
|
12004
|
+
*
|
|
12005
|
+
* @param component
|
|
12006
|
+
* @param attributeFilter
|
|
12007
|
+
*/
|
|
12008
|
+
function watchGlobalAttributes(component, attributeFilter) {
|
|
12009
|
+
const { el } = component;
|
|
12010
|
+
const observerOptions = { attributeFilter };
|
|
12011
|
+
elementToComponentAndObserverOptionsMap.set(el, [component, observerOptions]);
|
|
12012
|
+
updateGlobalAttributes(component, attributeFilter, true);
|
|
12013
|
+
if (!mutationObserver) {
|
|
12014
|
+
mutationObserver = createObserver();
|
|
12015
|
+
}
|
|
12016
|
+
mutationObserver.observe(el, observerOptions);
|
|
12017
|
+
}
|
|
12018
|
+
/**
|
|
12019
|
+
* Helper remove listening for changes to inherited attributes.
|
|
12020
|
+
*
|
|
12021
|
+
* @param component
|
|
12022
|
+
*/
|
|
12023
|
+
function unwatchGlobalAttributes(component) {
|
|
12024
|
+
elementToComponentAndObserverOptionsMap.delete(component.el);
|
|
12025
|
+
// we explicitly process queued mutations and disconnect and reconnect
|
|
12026
|
+
// the observer until MutationObserver gets an `unobserve` method
|
|
12027
|
+
// see https://github.com/whatwg/dom/issues/126
|
|
12028
|
+
processMutations(mutationObserver.takeRecords());
|
|
12029
|
+
mutationObserver.disconnect();
|
|
12030
|
+
for (const [element, [, observerOptions]] of elementToComponentAndObserverOptionsMap.entries()) {
|
|
12031
|
+
mutationObserver.observe(element, observerOptions);
|
|
12032
|
+
}
|
|
12033
|
+
}
|
|
12034
|
+
|
|
11902
12035
|
const buttonCss = "/*!@:host([disabled])*/[disabled].sc-calcite-button-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([loading]) *, :host([disabled]) *,\n:host([loading]) ::slotted(*),\n:host([disabled]) ::slotted(*)*/[loading].sc-calcite-button-h *.sc-calcite-button,[disabled].sc-calcite-button-h *.sc-calcite-button,.sc-calcite-button-h[loading] .sc-calcite-button-s>*,.sc-calcite-button-h[disabled] .sc-calcite-button-s>*{pointer-events:none}/*!@:host*/.sc-calcite-button-h{display:inline-block;inline-size:auto;vertical-align:middle}/*!@:host([round])*/[round].sc-calcite-button-h{border-radius:50px}/*!@:host([round]) a, :host([round]) button*/[round].sc-calcite-button-h a.sc-calcite-button,[round].sc-calcite-button-h button.sc-calcite-button{border-radius:50px}/*!@:host button,\n:host a*/.sc-calcite-button-h button.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button{outline-color:transparent}/*!@:host button:focus,\n:host a:focus*/.sc-calcite-button-h button.sc-calcite-button:focus,.sc-calcite-button-h a.sc-calcite-button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n 2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host button,\n:host a*/.sc-calcite-button-h button.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:0.5rem;--calcite-button-padding-x-internal:7px;--calcite-button-padding-y-internal:3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-appearance:none;appearance:none;align-items:center;justify-content:center;border-radius:0px;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}/*!@:host button:hover,\n:host a:hover*/.sc-calcite-button-h button.sc-calcite-button:hover,.sc-calcite-button-h a.sc-calcite-button:hover{text-decoration-line:none}/*!@:host button span,\n:host a span*/.sc-calcite-button-h button.sc-calcite-button span.sc-calcite-button,.sc-calcite-button-h a.sc-calcite-button span.sc-calcite-button{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}/*!@.content*/.content.sc-calcite-button{margin-inline:var(--calcite-button-content-margin-internal)}/*!@.icon-start-empty .content*/.icon-start-empty.sc-calcite-button .content.sc-calcite-button{margin-inline-start:unset}/*!@.icon-end-empty .content*/.icon-end-empty.sc-calcite-button .content.sc-calcite-button{margin-inline-end:unset}/*!@:host([scale=m]) button,\n:host([scale=m]) a*/[scale=m].sc-calcite-button-h button.sc-calcite-button,[scale=m].sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:0.75rem}/*!@:host([scale=l]) button,\n:host([scale=l]) a*/[scale=l].sc-calcite-button-h button.sc-calcite-button,[scale=l].sc-calcite-button-h a.sc-calcite-button{--calcite-button-content-margin-internal:1rem}/*!@:host([width=auto])*/[width=auto].sc-calcite-button-h{inline-size:auto}/*!@:host([width=half])*/[width=half].sc-calcite-button-h{inline-size:50%}/*!@:host([width=full])*/[width=full].sc-calcite-button-h{inline-size:100%}/*!@:host([alignment=center]:not([width=auto])) a,\n:host([alignment=center]:not([width=auto])) button*/[alignment=center].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=center].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:center}/*!@:host([alignment=start]:not([width=auto])) a,\n:host([alignment=start]:not([width=auto])) button*/[alignment=start].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=start].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:flex-start}/*!@:host([alignment=end]:not([width=auto])) a,\n:host([alignment=end]:not([width=auto])) button*/[alignment=end].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=end].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:flex-end}/*!@:host([alignment*=space-between]:not([width=auto])) a,\n:host([alignment*=space-between]:not([width=auto])) button*/[alignment*=space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment*=space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{justify-content:space-between}/*!@:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start*/[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) .icon--start.sc-calcite-button{margin-inline-end:auto}/*!@:host([alignment=icon-start-space-between]:not([width=auto])) a,\n:host([alignment=icon-start-space-between]:not([width=auto])) button*/[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=icon-start-space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{text-align:unset}/*!@:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end*/[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) .icon--end.sc-calcite-button{margin-inline-start:auto}/*!@:host([alignment=icon-end-space-between]:not([width=auto])) a,\n:host([alignment=icon-end-space-between]:not([width=auto])) button*/[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) a.sc-calcite-button,[alignment=icon-end-space-between].sc-calcite-button-h:not([width=auto]) button.sc-calcite-button{text-align:unset}/*!@:host([alignment=center]) a:not(.content--slotted) .icon--start + .icon--end,\n:host([alignment=center]) button:not(.content--slotted) .icon--start + .icon--end*/[alignment=center].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button,[alignment=center].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button{margin-inline-start:var(--calcite-button-content-margin-internal)}/*!@.icon*/.icon.sc-calcite-button{position:relative;margin:0px;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-button-h[disabled] .sc-calcite-button-s>[calcite-hydrated][disabled],[disabled].sc-calcite-button-h [calcite-hydrated][disabled].sc-calcite-button{opacity:1}/*!@:host([loading]) button,\n:host([loading]) a*/[loading].sc-calcite-button-h button.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button{opacity:var(--calcite-ui-opacity-disabled)}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(0.5)}100%{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}100%{inline-size:0;opacity:0;transform:scale(0.5)}}/*!@.calcite-button--loader*/.calcite-button--loader.sc-calcite-button{display:flex}/*!@.calcite-button--loader calcite-loader*/.calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button{margin:0px;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out}/*!@.calcite-button--loader calcite-loader.loading-in*/.calcite-button--loader.sc-calcite-button calcite-loader.loading-in.sc-calcite-button{animation-name:loader-in;animation-duration:var(--calcite-internal-animation-timing-slow)}/*!@.calcite-button--loader calcite-loader.loading-out*/.calcite-button--loader.sc-calcite-button calcite-loader.loading-out.sc-calcite-button{animation-name:loader-out;animation-duration:var(--calcite-internal-animation-timing-slow)}/*!@:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,\n:host([loading]) a.content--slotted .calcite-button--loader calcite-loader*/[loading].sc-calcite-button-h button.content--slotted.sc-calcite-button .calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button,[loading].sc-calcite-button-h a.content--slotted.sc-calcite-button .calcite-button--loader.sc-calcite-button calcite-loader.sc-calcite-button{margin-inline-end:var(--calcite-button-content-margin-internal)}/*!@:host([loading]) button:not(.content--slotted) .icon--start,\n:host([loading]) button:not(.content--slotted) .icon--end,\n:host([loading]) a:not(.content--slotted) .icon--start,\n:host([loading]) a:not(.content--slotted) .icon--end*/[loading].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button,[loading].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--end.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button,[loading].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--end.sc-calcite-button{display:none}/*!@:host([appearance]) button,\n:host([appearance]) a*/[appearance].sc-calcite-button-h button.sc-calcite-button,[appearance].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;border-color:transparent}/*!@:host([kind=brand]) button,\n:host([kind=brand]) a*/[kind=brand].sc-calcite-button-h button.sc-calcite-button,[kind=brand].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-brand);color:var(--calcite-ui-text-inverse)}/*!@:host([kind=brand]) button:hover, :host([kind=brand]) button:focus,\n:host([kind=brand]) a:hover,\n:host([kind=brand]) a:focus*/[kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[kind=brand].sc-calcite-button-h a.sc-calcite-button:hover,[kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-brand-hover)}/*!@:host([kind=brand]) button:active,\n:host([kind=brand]) a:active*/[kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[kind=brand].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-brand-press)}/*!@:host([kind=brand]) button calcite-loader,\n:host([kind=brand]) a calcite-loader*/[kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([kind=danger]) button,\n:host([kind=danger]) a*/[kind=danger].sc-calcite-button-h button.sc-calcite-button,[kind=danger].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-danger);color:var(--calcite-ui-text-inverse)}/*!@:host([kind=danger]) button:hover, :host([kind=danger]) button:focus,\n:host([kind=danger]) a:hover,\n:host([kind=danger]) a:focus*/[kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[kind=danger].sc-calcite-button-h a.sc-calcite-button:hover,[kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-danger-hover)}/*!@:host([kind=danger]) button:active,\n:host([kind=danger]) a:active*/[kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[kind=danger].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-danger-press)}/*!@:host([kind=danger]) button calcite-loader,\n:host([kind=danger]) a calcite-loader*/[kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([kind=neutral]) button,\n:host([kind=neutral]) a*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button,[kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-3);color:var(--calcite-ui-text-1)}/*!@:host([kind=neutral]) button:hover, :host([kind=neutral]) button:focus,\n:host([kind=neutral]) a:hover,\n:host([kind=neutral]) a:focus*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-foreground-2)}/*!@:host([kind=neutral]) button:active,\n:host([kind=neutral]) a:active*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-foreground-1)}/*!@:host([kind=neutral]) button calcite-loader,\n:host([kind=neutral]) a calcite-loader*/[kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([kind=inverse]) button,\n:host([kind=inverse]) a*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button,[kind=inverse].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-text-inverse);background-color:var(--calcite-ui-inverse)}/*!@:host([kind=inverse]) button:hover, :host([kind=inverse]) button:focus,\n:host([kind=inverse]) a:hover,\n:host([kind=inverse]) a:focus*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{background-color:var(--calcite-ui-inverse-hover)}/*!@:host([kind=inverse]) button:active,\n:host([kind=inverse]) a:active*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{background-color:var(--calcite-ui-inverse-press)}/*!@:host([kind=inverse]) button calcite-loader,\n:host([kind=inverse]) a calcite-loader*/[kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([appearance=outline-fill]) button,\n:host([appearance=outline-fill]) a*/[appearance=outline-fill].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px transparent}/*!@:host([appearance=outline-fill][kind=brand]) button,\n:host([appearance=outline-fill][kind=brand]) a*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=brand]) button:hover,\n:host([appearance=outline-fill][kind=brand]) a:hover*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}/*!@:host([appearance=outline-fill][kind=brand]) button:focus,\n:host([appearance=outline-fill][kind=brand]) a:focus*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=brand]) button:active,\n:host([appearance=outline-fill][kind=brand]) a:active*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}/*!@:host([appearance=outline-fill][kind=brand]) button calcite-loader,\n:host([appearance=outline-fill][kind=brand]) a calcite-loader*/[appearance=outline-fill][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=outline-fill][kind=danger]) button,\n:host([appearance=outline-fill][kind=danger]) a*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-danger);background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=danger]) button:hover,\n:host([appearance=outline-fill][kind=danger]) a:hover*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}/*!@:host([appearance=outline-fill][kind=danger]) button:focus,\n:host([appearance=outline-fill][kind=danger]) a:focus*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=danger]) button:active,\n:host([appearance=outline-fill][kind=danger]) a:active*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}/*!@:host([appearance=outline-fill][kind=danger]) button calcite-loader,\n:host([appearance=outline-fill][kind=danger]) a calcite-loader*/[appearance=outline-fill][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=outline-fill][kind=neutral]) button,\n:host([appearance=outline-fill][kind=neutral]) a*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-1)}/*!@:host([appearance=outline-fill][kind=neutral]) button:hover,\n:host([appearance=outline-fill][kind=neutral]) a:hover*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:focus,\n:host([appearance=outline-fill][kind=neutral]) a:focus*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button:active,\n:host([appearance=outline-fill][kind=neutral]) a:active*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline-fill][kind=neutral]) button calcite-loader,\n:host([appearance=outline-fill][kind=neutral]) a calcite-loader*/[appearance=outline-fill][kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline-fill][kind=inverse]) button,\n:host([appearance=outline-fill][kind=inverse]) a*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button{background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}/*!@:host([appearance=outline-fill][kind=inverse]) button:hover,\n:host([appearance=outline-fill][kind=inverse]) a:hover*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}/*!@:host([appearance=outline-fill][kind=inverse]) button:focus,\n:host([appearance=outline-fill][kind=inverse]) a:focus*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}/*!@:host([appearance=outline-fill][kind=inverse]) button:active,\n:host([appearance=outline-fill][kind=inverse]) a:active*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}/*!@:host([appearance=outline-fill][kind=inverse]) button calcite-loader,\n:host([appearance=outline-fill][kind=inverse]) a calcite-loader*/[appearance=outline-fill][kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline-fill][kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline]) button,\n:host([appearance=outline]) a*/[appearance=outline].sc-calcite-button-h button.sc-calcite-button,[appearance=outline].sc-calcite-button-h a.sc-calcite-button{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}/*!@:host([appearance=outline][kind=brand]) button,\n:host([appearance=outline][kind=brand]) a*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-brand);background-color:transparent;color:var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=brand]) button:hover,\n:host([appearance=outline][kind=brand]) a:hover*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-brand-hover);color:var(--calcite-ui-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand-hover)}/*!@:host([appearance=outline][kind=brand]) button:focus,\n:host([appearance=outline][kind=brand]) a:focus*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-brand);color:var(--calcite-ui-brand);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=brand]) button:active,\n:host([appearance=outline][kind=brand]) a:active*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-brand-press);color:var(--calcite-ui-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-brand-press)}/*!@:host([appearance=outline][kind=brand]) button calcite-loader,\n:host([appearance=outline][kind=brand]) a calcite-loader*/[appearance=outline][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=outline][kind=danger]) button,\n:host([appearance=outline][kind=danger]) a*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button{border-color:var(--calcite-ui-danger);background-color:transparent;color:var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=danger]) button:hover,\n:host([appearance=outline][kind=danger]) a:hover*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-danger-hover);color:var(--calcite-ui-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-danger-hover)}/*!@:host([appearance=outline][kind=danger]) button:focus,\n:host([appearance=outline][kind=danger]) a:focus*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-danger);color:var(--calcite-ui-danger);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=danger]) button:active,\n:host([appearance=outline][kind=danger]) a:active*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-danger-press);color:var(--calcite-ui-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-danger-press)}/*!@:host([appearance=outline][kind=danger]) button calcite-loader,\n:host([appearance=outline][kind=danger]) a calcite-loader*/[appearance=outline][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=outline][kind=neutral]) button,\n:host([appearance=outline][kind=neutral]) a*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-border-1)}/*!@:host([appearance=outline][kind=neutral]) button:hover,\n:host([appearance=outline][kind=neutral]) a:hover*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:hover{box-shadow:inset 0 0 0 1px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button:focus,\n:host([appearance=outline][kind=neutral]) a:focus*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:focus{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button:active,\n:host([appearance=outline][kind=neutral]) a:active*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button:active{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-3)}/*!@:host([appearance=outline][kind=neutral]) button calcite-loader,\n:host([appearance=outline][kind=neutral]) a calcite-loader*/[appearance=outline][kind=neutral].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=neutral].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline][kind=inverse]) button,\n:host([appearance=outline][kind=inverse]) a*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button{background-color:transparent;color:var(--calcite-ui-text-1);border-color:var(--calcite-ui-inverse)}/*!@:host([appearance=outline][kind=inverse]) button:hover,\n:host([appearance=outline][kind=inverse]) a:hover*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:hover{border-color:var(--calcite-ui-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-ui-inverse-hover)}/*!@:host([appearance=outline][kind=inverse]) button:focus,\n:host([appearance=outline][kind=inverse]) a:focus*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:focus{border-color:var(--calcite-ui-inverse);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse)}/*!@:host([appearance=outline][kind=inverse]) button:active,\n:host([appearance=outline][kind=inverse]) a:active*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button:active,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button:active{border-color:var(--calcite-ui-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-ui-inverse-press)}/*!@:host([appearance=outline][kind=inverse]) button calcite-loader,\n:host([appearance=outline][kind=inverse]) a calcite-loader*/[appearance=outline][kind=inverse].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=outline][kind=inverse].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=outline-fill][split-child=primary]) button,\n:host([appearance=outline][split-child=primary]) button*/[appearance=outline-fill][split-child=primary].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][split-child=primary].sc-calcite-button-h button.sc-calcite-button{border-inline-end-width:0;border-inline-start-width:1px}/*!@:host([appearance=outline-fill][split-child=secondary]) button,\n:host([appearance=outline][split-child=secondary]) button*/[appearance=outline-fill][split-child=secondary].sc-calcite-button-h button.sc-calcite-button,[appearance=outline][split-child=secondary].sc-calcite-button-h button.sc-calcite-button{border-inline-start-width:0;border-inline-end-width:1px}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button,\n:host([appearance=transparent]:not(.enable-editing-button)) a*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button{background-color:transparent}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button:hover, :host([appearance=transparent]:not(.enable-editing-button)) button:focus,\n:host([appearance=transparent]:not(.enable-editing-button)) a:hover,\n:host([appearance=transparent]:not(.enable-editing-button)) a:focus*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:hover,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:focus,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:hover,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:focus{background-color:var(--calcite-button-transparent-hover)}/*!@:host([appearance=transparent]:not(.enable-editing-button)) button:active,\n:host([appearance=transparent]:not(.enable-editing-button)) a:active*/[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) button.sc-calcite-button:active,[appearance=transparent].sc-calcite-button-h:not(.enable-editing-button) a.sc-calcite-button:active{background-color:var(--calcite-button-transparent-press)}/*!@:host([appearance=transparent][kind=brand]) button,\n:host([appearance=transparent][kind=brand]) a*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=brand]) button:hover,\n:host([appearance=transparent][kind=brand]) a:hover*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:hover{color:var(--calcite-ui-brand-hover)}/*!@:host([appearance=transparent][kind=brand]) button:focus,\n:host([appearance=transparent][kind=brand]) a:focus*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:focus{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=brand]) button:active,\n:host([appearance=transparent][kind=brand]) a:active*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button:active,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button:active{color:var(--calcite-ui-brand-press)}/*!@:host([appearance=transparent][kind=brand]) button calcite-loader,\n:host([appearance=transparent][kind=brand]) a calcite-loader*/[appearance=transparent][kind=brand].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=transparent][kind=brand].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-brand)}/*!@:host([appearance=transparent][kind=danger]) button,\n:host([appearance=transparent][kind=danger]) a*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=danger]) button:hover,\n:host([appearance=transparent][kind=danger]) a:hover*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:hover,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:hover{color:var(--calcite-ui-danger-hover)}/*!@:host([appearance=transparent][kind=danger]) button:focus,\n:host([appearance=transparent][kind=danger]) a:focus*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:focus,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:focus{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=danger]) button:active,\n:host([appearance=transparent][kind=danger]) a:active*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button:active,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button:active{color:var(--calcite-ui-danger-press)}/*!@:host([appearance=transparent][kind=danger]) button calcite-loader,\n:host([appearance=transparent][kind=danger]) a calcite-loader*/[appearance=transparent][kind=danger].sc-calcite-button-h button.sc-calcite-button calcite-loader.sc-calcite-button,[appearance=transparent][kind=danger].sc-calcite-button-h a.sc-calcite-button calcite-loader.sc-calcite-button{color:var(--calcite-ui-danger)}/*!@:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,\n:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,\n:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader*/[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) button.sc-calcite-button,[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) a.sc-calcite-button,[appearance=transparent][kind=neutral].sc-calcite-button-h:not(.cancel-editing-button) calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-ui-text-3);border-block-start-color:var(--calcite-ui-border-input);border-block-end-color:var(--calcite-ui-border-input);border-block-style:solid}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted)*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:not(.content--slotted){--calcite-button-padding-y-internal:0}/*!@:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover*/[appearance=transparent][kind=neutral].cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:hover{color:var(--calcite-ui-text-1)}/*!@:host([appearance=transparent][kind=neutral].enable-editing-button) button*/[appearance=transparent][kind=neutral].enable-editing-button.sc-calcite-button-h button.sc-calcite-button{background-color:transparent}/*!@:host(.confirm-changes-button) button:focus,\n:host(.cancel-editing-button) button:focus,\n:host(.enable-editing-button) button:focus*/.confirm-changes-button.sc-calcite-button-h button.sc-calcite-button:focus,.cancel-editing-button.sc-calcite-button-h button.sc-calcite-button:focus,.enable-editing-button.sc-calcite-button-h button.sc-calcite-button:focus{outline-offset:-2px}/*!@:host([appearance=transparent][kind=inverse]) button,\n:host([appearance=transparent][kind=inverse]) a,\n:host([appearance=transparent][kind=inverse]) calcite-loader*/[appearance=transparent][kind=inverse].sc-calcite-button-h button.sc-calcite-button,[appearance=transparent][kind=inverse].sc-calcite-button-h a.sc-calcite-button,[appearance=transparent][kind=inverse].sc-calcite-button-h calcite-loader.sc-calcite-button{color:var(--calcite-ui-text-inverse)}/*!@:host([scale=s]) button.content--slotted,\n:host([scale=s]) a.content--slotted*/[scale=s].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=s].sc-calcite-button-h a.content--slotted.sc-calcite-button{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s][appearance=transparent]) button.content--slotted,\n:host([scale=s][appearance=transparent]) a.content--slotted*/[scale=s][appearance=transparent].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=s][appearance=transparent].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:0.5rem}/*!@:host([scale=s]) button,\n:host([scale=s]) a*/[scale=s].sc-calcite-button-h button.sc-calcite-button,[scale=s].sc-calcite-button-h a.sc-calcite-button{--calcite-button-padding-y-internal:3px}/*!@:host([scale=m]) button.content--slotted,\n:host([scale=m]) a.content--slotted*/[scale=m].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=m].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:11px;font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) button,\n:host([scale=m]) a*/[scale=m].sc-calcite-button-h button.sc-calcite-button,[scale=m].sc-calcite-button-h a.sc-calcite-button{--calcite-button-padding-y-internal:7px}/*!@:host([scale=m][appearance=transparent]) button.content--slotted,\n:host([scale=m][appearance=transparent]) a.content--slotted*/[scale=m][appearance=transparent].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=m][appearance=transparent].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:0.75rem}/*!@:host([scale=l]) button.content--slotted,\n:host([scale=l]) a.content--slotted*/[scale=l].sc-calcite-button-h button.content--slotted.sc-calcite-button,[scale=l].sc-calcite-button-h a.content--slotted.sc-calcite-button{--calcite-button-padding-x-internal:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .button-padding*/[scale=l].sc-calcite-button-h .button-padding.sc-calcite-button{--calcite-button-padding-x-internal:1rem;--calcite-button-padding-y-internal:11px}/*!@:host([scale=l]) .button-padding--shrunk*/[scale=l].sc-calcite-button-h .button-padding--shrunk.sc-calcite-button{--calcite-button-padding-y-internal:9px}/*!@:host([scale=s]) button:not(.content--slotted),\n:host([scale=s]) a:not(.content--slotted)*/[scale=s].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}/*!@:host([scale=m]) button:not(.content--slotted),\n:host([scale=m]) a:not(.content--slotted)*/[scale=m].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}/*!@:host([scale=l]) button:not(.content--slotted),\n:host([scale=l]) a:not(.content--slotted)*/[scale=l].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}/*!@:host([scale=l][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][appearance=transparent]) a:not(.content--slotted)*/[scale=l][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-y-internal:0.625rem}/*!@:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end]) a:not(.content--slotted)*/[scale=s][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=s][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=s][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:1.5rem}/*!@:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end]) a:not(.content--slotted)*/[scale=m][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=m][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=m][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:33px}/*!@:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted)*/[scale=l][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start + .icon--end,\n:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start + .icon--end*/[scale=l][icon-start][icon-end].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button,[scale=l][icon-start][icon-end].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted) .icon--start.sc-calcite-button+.icon--end.sc-calcite-button{margin-inline-start:1rem}/*!@:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),\n:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted)*/[scale=l][icon-start][icon-end][appearance=transparent].sc-calcite-button-h button.sc-calcite-button:not(.content--slotted),[scale=l][icon-start][icon-end][appearance=transparent].sc-calcite-button-h a.sc-calcite-button:not(.content--slotted){--calcite-button-padding-x-internal:2.75rem}/*!@:host([hidden])*/[hidden].sc-calcite-button-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-button{display:none}";
|
|
11903
12036
|
|
|
11904
12037
|
/** Passing a 'href' will render an anchor link, instead of a button. Role will be set to link, or button, depending on this. */
|
|
@@ -11962,6 +12095,9 @@ class Button {
|
|
|
11962
12095
|
this.effectiveLocale = "";
|
|
11963
12096
|
this.defaultMessages = undefined;
|
|
11964
12097
|
this.tooltipText = undefined;
|
|
12098
|
+
this.globalAttributes = {
|
|
12099
|
+
ariaExpanded: undefined,
|
|
12100
|
+
};
|
|
11965
12101
|
}
|
|
11966
12102
|
loadingChanged(newValue, oldValue) {
|
|
11967
12103
|
if (!!newValue && !oldValue) {
|
|
@@ -11985,6 +12121,7 @@ class Button {
|
|
|
11985
12121
|
connectInteractive(this);
|
|
11986
12122
|
connectLocalized(this);
|
|
11987
12123
|
connectMessages(this);
|
|
12124
|
+
watchGlobalAttributes(this, ["aria-expanded"]);
|
|
11988
12125
|
this.hasLoader = this.loading;
|
|
11989
12126
|
this.setupTextContentObserver();
|
|
11990
12127
|
connectLabel(this);
|
|
@@ -11998,6 +12135,7 @@ class Button {
|
|
|
11998
12135
|
disconnectMessages(this);
|
|
11999
12136
|
this.resizeObserver?.disconnect();
|
|
12000
12137
|
this.formEl = null;
|
|
12138
|
+
unwatchGlobalAttributes(this);
|
|
12001
12139
|
}
|
|
12002
12140
|
async componentWillLoad() {
|
|
12003
12141
|
setUpLoadableComponent(this);
|
|
@@ -12023,7 +12161,7 @@ class Button {
|
|
|
12023
12161
|
[CSS$14.contentSlotted]: this.hasContent,
|
|
12024
12162
|
[CSS$14.iconStartEmpty]: !this.iconStart,
|
|
12025
12163
|
[CSS$14.iconEndEmpty]: !this.iconEnd,
|
|
12026
|
-
}, 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));
|
|
12164
|
+
}, 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, ...this.globalAttributes }, loaderNode, this.iconStart ? iconStartEl : null, this.hasContent ? contentEl : null, this.iconEnd ? iconEndEl : null));
|
|
12027
12165
|
}
|
|
12028
12166
|
//--------------------------------------------------------------------------
|
|
12029
12167
|
//
|
|
@@ -12095,6 +12233,7 @@ class Button {
|
|
|
12095
12233
|
"effectiveLocale": [32],
|
|
12096
12234
|
"defaultMessages": [32],
|
|
12097
12235
|
"tooltipText": [32],
|
|
12236
|
+
"globalAttributes": [32],
|
|
12098
12237
|
"setFocus": [64]
|
|
12099
12238
|
},
|
|
12100
12239
|
"$listeners$": undefined,
|
|
@@ -12103,67 +12242,6 @@ class Button {
|
|
|
12103
12242
|
}; }
|
|
12104
12243
|
}
|
|
12105
12244
|
|
|
12106
|
-
const allowedGlobalAttributes = ["lang", "role"];
|
|
12107
|
-
const elementToComponentAndObserverOptionsMap = new Map();
|
|
12108
|
-
let mutationObserver;
|
|
12109
|
-
function updateGlobalAttributes(component, attributeFilter, reuseAttributes = false) {
|
|
12110
|
-
const { el } = component;
|
|
12111
|
-
const updatedAttributes = reuseAttributes ? component.globalAttributes : {};
|
|
12112
|
-
attributeFilter
|
|
12113
|
-
.filter((attr) => !!allowedGlobalAttributes.includes(attr) && !!el.hasAttribute(attr))
|
|
12114
|
-
.forEach((attr) => {
|
|
12115
|
-
const value = el.getAttribute(attr);
|
|
12116
|
-
if (value !== null) {
|
|
12117
|
-
updatedAttributes[attr] = value;
|
|
12118
|
-
}
|
|
12119
|
-
});
|
|
12120
|
-
component.globalAttributes = updatedAttributes;
|
|
12121
|
-
}
|
|
12122
|
-
function processMutations(mutations) {
|
|
12123
|
-
mutations.forEach(({ target }) => {
|
|
12124
|
-
const [component, options] = elementToComponentAndObserverOptionsMap.get(target);
|
|
12125
|
-
updateGlobalAttributes(component, options.attributeFilter);
|
|
12126
|
-
});
|
|
12127
|
-
}
|
|
12128
|
-
/**
|
|
12129
|
-
* Helper to set up listening for changes to global attributes.
|
|
12130
|
-
*
|
|
12131
|
-
* render(): VNode {
|
|
12132
|
-
* return (<Host>
|
|
12133
|
-
* <ul {...this.globalAttributes}></div>
|
|
12134
|
-
* </Host>);
|
|
12135
|
-
* }
|
|
12136
|
-
*
|
|
12137
|
-
* @param component
|
|
12138
|
-
* @param attributeFilter
|
|
12139
|
-
*/
|
|
12140
|
-
function watchGlobalAttributes(component, attributeFilter) {
|
|
12141
|
-
const { el } = component;
|
|
12142
|
-
const observerOptions = { attributeFilter };
|
|
12143
|
-
elementToComponentAndObserverOptionsMap.set(el, [component, observerOptions]);
|
|
12144
|
-
updateGlobalAttributes(component, attributeFilter, true);
|
|
12145
|
-
if (!mutationObserver) {
|
|
12146
|
-
mutationObserver = createObserver();
|
|
12147
|
-
}
|
|
12148
|
-
mutationObserver.observe(el, observerOptions);
|
|
12149
|
-
}
|
|
12150
|
-
/**
|
|
12151
|
-
* Helper remove listening for changes to inherited attributes.
|
|
12152
|
-
*
|
|
12153
|
-
* @param component
|
|
12154
|
-
*/
|
|
12155
|
-
function unwatchGlobalAttributes(component) {
|
|
12156
|
-
elementToComponentAndObserverOptionsMap.delete(component.el);
|
|
12157
|
-
// we explicitly process queued mutations and disconnect and reconnect
|
|
12158
|
-
// the observer until MutationObserver gets an `unobserve` method
|
|
12159
|
-
// see https://github.com/whatwg/dom/issues/126
|
|
12160
|
-
processMutations(mutationObserver.takeRecords());
|
|
12161
|
-
mutationObserver.disconnect();
|
|
12162
|
-
for (const [element, [, observerOptions]] of elementToComponentAndObserverOptionsMap.entries()) {
|
|
12163
|
-
mutationObserver.observe(element, observerOptions);
|
|
12164
|
-
}
|
|
12165
|
-
}
|
|
12166
|
-
|
|
12167
12245
|
const menuCss = "/*!@:host*/.sc-calcite-menu-h{display:flex}/*!@ul*/ul.sc-calcite-menu{margin:0px;display:inline-flex;block-size:100%;align-items:center;padding:0px}/*!@:host([layout=vertical]) ul*/[layout=vertical].sc-calcite-menu-h ul.sc-calcite-menu{display:flex;inline-size:100%;flex-direction:column}/*!@:host([hidden])*/[hidden].sc-calcite-menu-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-menu{display:none}";
|
|
12168
12246
|
|
|
12169
12247
|
class CalciteMenu {
|
|
@@ -21879,10 +21957,14 @@ class DropdownGroup {
|
|
|
21879
21957
|
//--------------------------------------------------------------------------
|
|
21880
21958
|
connectedCallback() {
|
|
21881
21959
|
this.updateItems();
|
|
21960
|
+
this.mutationObserver?.observe(this.el, { childList: true });
|
|
21882
21961
|
}
|
|
21883
21962
|
componentWillLoad() {
|
|
21884
21963
|
this.groupPosition = this.getGroupPosition();
|
|
21885
21964
|
}
|
|
21965
|
+
disconnectedCallback() {
|
|
21966
|
+
this.mutationObserver?.disconnect();
|
|
21967
|
+
}
|
|
21886
21968
|
render() {
|
|
21887
21969
|
const groupTitle = this.groupTitle ? (hAsync("span", { "aria-hidden": "true", class: "dropdown-title" }, this.groupTitle)) : null;
|
|
21888
21970
|
const dropdownSeparator = this.groupPosition > 0 ? hAsync("div", { class: "dropdown-separator", role: "separator" }) : null;
|
|
@@ -22549,6 +22631,8 @@ const ICONS$b = {
|
|
|
22549
22631
|
menu: "ellipsis",
|
|
22550
22632
|
backLeft: "chevron-left",
|
|
22551
22633
|
backRight: "chevron-right",
|
|
22634
|
+
expand: "chevron-up",
|
|
22635
|
+
collapse: "chevron-down",
|
|
22552
22636
|
};
|
|
22553
22637
|
const SLOTS$n = {
|
|
22554
22638
|
actionBar: "action-bar",
|
|
@@ -22579,7 +22663,7 @@ const SLOTS$m = {
|
|
|
22579
22663
|
footerActions: "footer-actions",
|
|
22580
22664
|
};
|
|
22581
22665
|
|
|
22582
|
-
const flowItemCss = "/*!@:host*/.sc-calcite-flow-item-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-flow-item-h *.sc-calcite-flow-item{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-flow-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-flow-item-h *.sc-calcite-flow-item,.sc-calcite-flow-item-h[disabled] .sc-calcite-flow-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-flow-item-h{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden
|
|
22666
|
+
const flowItemCss = "/*!@:host*/.sc-calcite-flow-item-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-flow-item-h *.sc-calcite-flow-item{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-flow-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-flow-item-h *.sc-calcite-flow-item,.sc-calcite-flow-item-h[disabled] .sc-calcite-flow-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-flow-item-h{position:relative;display:flex;inline-size:100%;flex:1 1 auto;overflow:hidden}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-flow-item-h[disabled] .sc-calcite-flow-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-flow-item-h [calcite-hydrated][disabled].sc-calcite-flow-item{opacity:1}/*!@.back-button*/.back-button.sc-calcite-flow-item{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}/*!@calcite-panel*/calcite-panel.sc-calcite-flow-item{--calcite-panel-footer-padding:var(--calcite-flow-item-footer-padding);--calcite-panel-header-border-block-end:var(--calcite-flow-item-header-border-block-end)}/*!@:host([hidden])*/[hidden].sc-calcite-flow-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-flow-item{display:none}";
|
|
22583
22667
|
|
|
22584
22668
|
/**
|
|
22585
22669
|
* @slot - A slot for adding custom content.
|
|
@@ -22598,6 +22682,7 @@ class FlowItem {
|
|
|
22598
22682
|
this.calciteFlowItemBack = createEvent(this, "calciteFlowItemBack", 7);
|
|
22599
22683
|
this.calciteFlowItemScroll = createEvent(this, "calciteFlowItemScroll", 6);
|
|
22600
22684
|
this.calciteFlowItemClose = createEvent(this, "calciteFlowItemClose", 6);
|
|
22685
|
+
this.calciteFlowItemToggle = createEvent(this, "calciteFlowItemToggle", 6);
|
|
22601
22686
|
// --------------------------------------------------------------------------
|
|
22602
22687
|
//
|
|
22603
22688
|
// Private Methods
|
|
@@ -22611,6 +22696,10 @@ class FlowItem {
|
|
|
22611
22696
|
event.stopPropagation();
|
|
22612
22697
|
this.calciteFlowItemClose.emit();
|
|
22613
22698
|
};
|
|
22699
|
+
this.handlePanelToggle = (event) => {
|
|
22700
|
+
event.stopPropagation();
|
|
22701
|
+
this.calciteFlowItemToggle.emit();
|
|
22702
|
+
};
|
|
22614
22703
|
this.backButtonClick = () => {
|
|
22615
22704
|
this.calciteFlowItemBack.emit();
|
|
22616
22705
|
};
|
|
@@ -22622,6 +22711,9 @@ class FlowItem {
|
|
|
22622
22711
|
};
|
|
22623
22712
|
this.closable = false;
|
|
22624
22713
|
this.closed = false;
|
|
22714
|
+
this.collapsed = false;
|
|
22715
|
+
this.collapseDirection = "down";
|
|
22716
|
+
this.collapsible = false;
|
|
22625
22717
|
this.beforeBack = undefined;
|
|
22626
22718
|
this.description = undefined;
|
|
22627
22719
|
this.disabled = false;
|
|
@@ -22673,6 +22765,8 @@ class FlowItem {
|
|
|
22673
22765
|
// --------------------------------------------------------------------------
|
|
22674
22766
|
/**
|
|
22675
22767
|
* Sets focus on the component.
|
|
22768
|
+
*
|
|
22769
|
+
* @returns promise.
|
|
22676
22770
|
*/
|
|
22677
22771
|
async setFocus() {
|
|
22678
22772
|
await componentFocusable(this);
|
|
@@ -22693,7 +22787,8 @@ class FlowItem {
|
|
|
22693
22787
|
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
|
22694
22788
|
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
22695
22789
|
* });
|
|
22696
|
-
* @param options
|
|
22790
|
+
* @param options - allows specific coordinates to be defined.
|
|
22791
|
+
* @returns - promise that resolves once the content is scrolled to.
|
|
22697
22792
|
*/
|
|
22698
22793
|
async scrollContentTo(options) {
|
|
22699
22794
|
await this.containerEl?.scrollContentTo(options);
|
|
@@ -22714,8 +22809,8 @@ class FlowItem {
|
|
|
22714
22809
|
ref: this.setBackRef })) : null;
|
|
22715
22810
|
}
|
|
22716
22811
|
render() {
|
|
22717
|
-
const { closable, closed, description, disabled, heading, headingLevel, loading, menuOpen, messages, } = this;
|
|
22718
|
-
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,
|
|
22812
|
+
const { collapsed, collapseDirection, collapsible, closable, closed, description, disabled, heading, headingLevel, loading, menuOpen, messages, } = this;
|
|
22813
|
+
return (hAsync(Host, null, hAsync("calcite-panel", { closable: closable, closed: closed, collapseDirection: collapseDirection, collapsed: collapsed, collapsible: collapsible, description: description, disabled: disabled, heading: heading, headingLevel: headingLevel, loading: loading, menuOpen: menuOpen, messageOverrides: messages, onCalcitePanelClose: this.handlePanelClose, onCalcitePanelScroll: this.handlePanelScroll, onCalcitePanelToggle: this.handlePanelToggle,
|
|
22719
22814
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
22720
22815
|
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))));
|
|
22721
22816
|
}
|
|
@@ -22732,6 +22827,9 @@ class FlowItem {
|
|
|
22732
22827
|
"$members$": {
|
|
22733
22828
|
"closable": [516],
|
|
22734
22829
|
"closed": [516],
|
|
22830
|
+
"collapsed": [516],
|
|
22831
|
+
"collapseDirection": [1, "collapse-direction"],
|
|
22832
|
+
"collapsible": [516],
|
|
22735
22833
|
"beforeBack": [16],
|
|
22736
22834
|
"description": [1],
|
|
22737
22835
|
"disabled": [516],
|
|
@@ -22749,7 +22847,7 @@ class FlowItem {
|
|
|
22749
22847
|
},
|
|
22750
22848
|
"$listeners$": undefined,
|
|
22751
22849
|
"$lazyBundleId$": "-",
|
|
22752
|
-
"$attrsToReflect$": [["closable", "closable"], ["closed", "closed"], ["disabled", "disabled"], ["headingLevel", "heading-level"], ["loading", "loading"], ["menuOpen", "menu-open"]]
|
|
22850
|
+
"$attrsToReflect$": [["closable", "closable"], ["closed", "closed"], ["collapsed", "collapsed"], ["collapsible", "collapsible"], ["disabled", "disabled"], ["headingLevel", "heading-level"], ["loading", "loading"], ["menuOpen", "menu-open"]]
|
|
22753
22851
|
}; }
|
|
22754
22852
|
}
|
|
22755
22853
|
|
|
@@ -22816,7 +22914,7 @@ function bezier(p0, p1, m0, m1, t) {
|
|
|
22816
22914
|
* @param root0.min
|
|
22817
22915
|
* @param root0.max
|
|
22818
22916
|
*/
|
|
22819
|
-
function translate$
|
|
22917
|
+
function translate$4({ width, height, min, max }) {
|
|
22820
22918
|
const rangeX = max[0] - min[0];
|
|
22821
22919
|
const rangeY = max[1] - min[1];
|
|
22822
22920
|
return (point) => {
|
|
@@ -22922,7 +23020,7 @@ class Graph {
|
|
|
22922
23020
|
if (max > rangeMax[0] || max < rangeMax[0]) {
|
|
22923
23021
|
currentMax = [max, rangeMax[1]];
|
|
22924
23022
|
}
|
|
22925
|
-
const t = translate$
|
|
23023
|
+
const t = translate$4({ min: currentMin, max: currentMax, width, height });
|
|
22926
23024
|
const [hMinX] = t([highlightMin, currentMax[1]]);
|
|
22927
23025
|
const [hMaxX] = t([highlightMax, currentMax[1]]);
|
|
22928
23026
|
const areaPath = area({ data, min: rangeMin, max: rangeMax, t });
|
|
@@ -25432,6 +25530,7 @@ class InputDatePicker {
|
|
|
25432
25530
|
this.name = undefined;
|
|
25433
25531
|
this.numberingSystem = undefined;
|
|
25434
25532
|
this.scale = "m";
|
|
25533
|
+
this.status = "idle";
|
|
25435
25534
|
this.placement = defaultMenuPlacement;
|
|
25436
25535
|
this.range = false;
|
|
25437
25536
|
this.required = false;
|
|
@@ -25629,7 +25728,7 @@ class InputDatePicker {
|
|
|
25629
25728
|
};
|
|
25630
25729
|
return (hAsync(Host, { onBlur: this.deactivate, onKeyDown: this.keyDownHandler }, this.localeData && (hAsync("div", { class: "input-container" }, hAsync("div", { class: "input-wrapper", onClick: this.onInputWrapperClick,
|
|
25631
25730
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
25632
|
-
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",
|
|
25731
|
+
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, status: this.status, type: "text",
|
|
25633
25732
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
25634
25733
|
ref: this.setStartInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "start"), hAsync("span", { "aria-hidden": "true", class: CSS$H.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: {
|
|
25635
25734
|
[CSS$H.menu]: true,
|
|
@@ -25650,7 +25749,7 @@ class InputDatePicker {
|
|
|
25650
25749
|
ref: this.setEndWrapper }, hAsync("calcite-input", { "aria-autocomplete": "none", "aria-controls": this.dialogId, "aria-expanded": toAriaBoolean(this.open), "aria-haspopup": "dialog", class: {
|
|
25651
25750
|
input: true,
|
|
25652
25751
|
"border-top-color-one": this.layout === "vertical" && this.range,
|
|
25653
|
-
}, disabled: disabled, icon: "calendar", "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.endInputFocus, onFocus: this.startEndInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, role: "combobox", scale: this.scale, type: "text",
|
|
25752
|
+
}, disabled: disabled, icon: "calendar", "number-button-type": "none", numberingSystem: numberingSystem, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputBlur: this.calciteInternalInputBlurHandler, onCalciteInternalInputFocus: this.endInputFocus, onFocus: this.startEndInputFocus, placeholder: this.localeData?.placeholder, readOnly: readOnly, role: "combobox", scale: this.scale, status: this.status, type: "text",
|
|
25654
25753
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
25655
25754
|
ref: this.setEndInput }), !this.readOnly && this.renderToggleIcon(this.open && this.focusedInput === "end"))))), hAsync(HiddenFormInputSlot, { component: this })));
|
|
25656
25755
|
}
|
|
@@ -25834,6 +25933,7 @@ class InputDatePicker {
|
|
|
25834
25933
|
"name": [513],
|
|
25835
25934
|
"numberingSystem": [513, "numbering-system"],
|
|
25836
25935
|
"scale": [513],
|
|
25936
|
+
"status": [513],
|
|
25837
25937
|
"placement": [513],
|
|
25838
25938
|
"range": [516],
|
|
25839
25939
|
"required": [516],
|
|
@@ -25850,7 +25950,7 @@ class InputDatePicker {
|
|
|
25850
25950
|
},
|
|
25851
25951
|
"$listeners$": [[0, "calciteDaySelect", "calciteDaySelectHandler"]],
|
|
25852
25952
|
"$lazyBundleId$": "-",
|
|
25853
|
-
"$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"]]
|
|
25953
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["form", "form"], ["readOnly", "read-only"], ["headingLevel", "heading-level"], ["open", "open"], ["name", "name"], ["numberingSystem", "numbering-system"], ["scale", "scale"], ["status", "status"], ["placement", "placement"], ["range", "range"], ["required", "required"], ["overlayPositioning", "overlay-positioning"], ["layout", "layout"]]
|
|
25854
25954
|
}; }
|
|
25855
25955
|
}
|
|
25856
25956
|
|
|
@@ -27260,11 +27360,11 @@ var L = 'en'; // global locale
|
|
|
27260
27360
|
var Ls = {}; // global loaded locale
|
|
27261
27361
|
|
|
27262
27362
|
Ls[L] = en;
|
|
27363
|
+
var IS_DAYJS = '$isDayjsObject'; // eslint-disable-next-line no-use-before-define
|
|
27263
27364
|
|
|
27264
27365
|
var isDayjs = function isDayjs(d) {
|
|
27265
|
-
return d instanceof Dayjs;
|
|
27266
|
-
};
|
|
27267
|
-
|
|
27366
|
+
return d instanceof Dayjs || !!(d && d[IS_DAYJS]);
|
|
27367
|
+
};
|
|
27268
27368
|
|
|
27269
27369
|
var parseLocale = function parseLocale(preset, object, isLocal) {
|
|
27270
27370
|
var l;
|
|
@@ -27357,13 +27457,15 @@ var Dayjs = /*#__PURE__*/function () {
|
|
|
27357
27457
|
function Dayjs(cfg) {
|
|
27358
27458
|
this.$L = parseLocale(cfg.locale, null, true);
|
|
27359
27459
|
this.parse(cfg); // for plugin
|
|
27460
|
+
|
|
27461
|
+
this.$x = this.$x || cfg.x || {};
|
|
27462
|
+
this[IS_DAYJS] = true;
|
|
27360
27463
|
}
|
|
27361
27464
|
|
|
27362
27465
|
var _proto = Dayjs.prototype;
|
|
27363
27466
|
|
|
27364
27467
|
_proto.parse = function parse(cfg) {
|
|
27365
27468
|
this.$d = parseDate(cfg);
|
|
27366
|
-
this.$x = cfg.x || {};
|
|
27367
27469
|
this.init();
|
|
27368
27470
|
};
|
|
27369
27471
|
|
|
@@ -28598,6 +28700,7 @@ class InputTimePicker {
|
|
|
28598
28700
|
this.numberingSystem = undefined;
|
|
28599
28701
|
this.required = false;
|
|
28600
28702
|
this.scale = "m";
|
|
28703
|
+
this.status = "idle";
|
|
28601
28704
|
this.overlayPositioning = "absolute";
|
|
28602
28705
|
this.placement = "auto";
|
|
28603
28706
|
this.step = 60;
|
|
@@ -28937,7 +29040,7 @@ class InputTimePicker {
|
|
|
28937
29040
|
// --------------------------------------------------------------------------
|
|
28938
29041
|
render() {
|
|
28939
29042
|
const { disabled, messages, readOnly, dialogId } = this;
|
|
28940
|
-
return (hAsync(Host, { onBlur: this.hostBlurHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: "input-wrapper", onClick: this.onInputWrapperClick }, hAsync("calcite-input", { "aria-autocomplete": "none", "aria-haspopup": "dialog", disabled: disabled, icon: "clock", id: this.referenceElementId, label: getLabelText(this), lang: this.effectiveLocale, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: readOnly, role: "combobox", scale: this.scale, step: this.step,
|
|
29043
|
+
return (hAsync(Host, { onBlur: this.hostBlurHandler, onKeyDown: this.keyDownHandler }, hAsync("div", { class: "input-wrapper", onClick: this.onInputWrapperClick }, hAsync("calcite-input", { "aria-autocomplete": "none", "aria-haspopup": "dialog", disabled: disabled, icon: "clock", id: this.referenceElementId, label: getLabelText(this), lang: this.effectiveLocale, onCalciteInputInput: this.calciteInternalInputInputHandler, onCalciteInternalInputFocus: this.calciteInternalInputFocusHandler, readOnly: readOnly, role: "combobox", scale: this.scale, status: this.status, step: this.step,
|
|
28941
29044
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
28942
29045
|
ref: this.setInputAndTransitionEl }), !this.readOnly && this.renderToggleIcon(this.open)), hAsync("calcite-popover", { focusTrapDisabled: true, id: dialogId, label: messages.chooseTime, lang: this.effectiveLocale, onCalcitePopoverClose: this.popoverCloseHandler, onCalcitePopoverOpen: this.popoverOpenHandler, open: this.open, overlayPositioning: this.overlayPositioning, placement: this.placement, referenceElement: this.referenceElementId, triggerDisabled: true,
|
|
28943
29046
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
@@ -28978,6 +29081,7 @@ class InputTimePicker {
|
|
|
28978
29081
|
"numberingSystem": [1, "numbering-system"],
|
|
28979
29082
|
"required": [516],
|
|
28980
29083
|
"scale": [513],
|
|
29084
|
+
"status": [513],
|
|
28981
29085
|
"overlayPositioning": [1, "overlay-positioning"],
|
|
28982
29086
|
"placement": [513],
|
|
28983
29087
|
"step": [2],
|
|
@@ -28989,42 +29093,102 @@ class InputTimePicker {
|
|
|
28989
29093
|
},
|
|
28990
29094
|
"$listeners$": undefined,
|
|
28991
29095
|
"$lazyBundleId$": "-",
|
|
28992
|
-
"$attrsToReflect$": [["open", "open"], ["disabled", "disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["form", "form"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["placement", "placement"]]
|
|
29096
|
+
"$attrsToReflect$": [["open", "open"], ["disabled", "disabled"], ["focusTrapDisabled", "focus-trap-disabled"], ["form", "form"], ["readOnly", "read-only"], ["required", "required"], ["scale", "scale"], ["status", "status"], ["placement", "placement"]]
|
|
28993
29097
|
}; }
|
|
28994
29098
|
}
|
|
28995
29099
|
|
|
28996
29100
|
const hourToMinutes = 60;
|
|
29101
|
+
function timeZoneOffsetToDecimal(shortOffsetTimeZoneName) {
|
|
29102
|
+
const minusSign = "−";
|
|
29103
|
+
const hyphen = "-";
|
|
29104
|
+
return (shortOffsetTimeZoneName
|
|
29105
|
+
.replace(":15", ".25")
|
|
29106
|
+
.replace(":30", ".5")
|
|
29107
|
+
.replace(":45", ".75")
|
|
29108
|
+
// ensures decimal string representation is parseable
|
|
29109
|
+
.replace(minusSign, hyphen));
|
|
29110
|
+
}
|
|
29111
|
+
function toOffsetValue(timeZoneName, referenceDateInMs) {
|
|
29112
|
+
// we use "en-US" to allow us to reliably remove the standard time token
|
|
29113
|
+
const offset = getTimeZoneShortOffset(timeZoneName, "en-US", referenceDateInMs).replace("GMT", "");
|
|
29114
|
+
if (offset === "") {
|
|
29115
|
+
return 0;
|
|
29116
|
+
}
|
|
29117
|
+
return Number(timeZoneOffsetToDecimal(offset)) * hourToMinutes;
|
|
29118
|
+
}
|
|
28997
29119
|
function getUserTimeZoneOffset() {
|
|
28998
29120
|
const localDate = new Date();
|
|
28999
29121
|
return localDate.getTimezoneOffset() * -1;
|
|
29000
29122
|
}
|
|
29001
|
-
function
|
|
29002
|
-
const
|
|
29003
|
-
|
|
29004
|
-
|
|
29005
|
-
|
|
29006
|
-
|
|
29123
|
+
function getUserTimeZoneName() {
|
|
29124
|
+
const dateFormatter = new Intl.DateTimeFormat();
|
|
29125
|
+
return dateFormatter.resolvedOptions().timeZone;
|
|
29126
|
+
}
|
|
29127
|
+
/**
|
|
29128
|
+
* The lazy-loaded timezone-groups lib to be used across instances.
|
|
29129
|
+
*/
|
|
29130
|
+
let timeZoneGroups;
|
|
29131
|
+
async function createTimeZoneItems(locale, messages, mode, referenceDate) {
|
|
29132
|
+
const referenceDateInMs = referenceDate.getTime();
|
|
29133
|
+
const timeZoneNames = Intl.supportedValuesOf("timeZone");
|
|
29134
|
+
if (mode === "offset") {
|
|
29135
|
+
if (!timeZoneGroups) {
|
|
29136
|
+
timeZoneGroups = Promise.all([
|
|
29137
|
+
Promise.resolve().then(function () { return index$1; }),
|
|
29138
|
+
Promise.resolve().then(function () { return index; }),
|
|
29139
|
+
]);
|
|
29140
|
+
}
|
|
29141
|
+
return timeZoneGroups.then(async ([{ groupTimeZones }, { DateEngine }]) => {
|
|
29142
|
+
const timeZoneGroups = await groupTimeZones({
|
|
29143
|
+
dateEngine: new DateEngine(),
|
|
29144
|
+
groupDateRange: 1,
|
|
29145
|
+
startDate: new Date(referenceDateInMs).toISOString(),
|
|
29146
|
+
});
|
|
29147
|
+
const listFormatter = new Intl.ListFormat(locale, { style: "long", type: "conjunction" });
|
|
29148
|
+
return timeZoneGroups
|
|
29149
|
+
.map(({ labelTzIndices, tzs }) => {
|
|
29150
|
+
const groupRepTz = tzs[0];
|
|
29151
|
+
const decimalOffset = timeZoneOffsetToDecimal(getTimeZoneShortOffset(groupRepTz, locale, referenceDateInMs));
|
|
29152
|
+
const value = toOffsetValue(groupRepTz, referenceDateInMs);
|
|
29153
|
+
const label = createTimeZoneOffsetLabel(messages, decimalOffset, listFormatter.format(labelTzIndices.map((index) => messages[tzs[index]])));
|
|
29154
|
+
return {
|
|
29155
|
+
label,
|
|
29156
|
+
value,
|
|
29157
|
+
filterValue: tzs.map((tz) => toUserFriendlyName(tz)),
|
|
29158
|
+
};
|
|
29159
|
+
})
|
|
29160
|
+
.filter((group) => !!group)
|
|
29161
|
+
.sort((groupA, groupB) => groupA.value - groupB.value);
|
|
29162
|
+
});
|
|
29163
|
+
}
|
|
29164
|
+
return timeZoneNames
|
|
29165
|
+
.map((timeZone) => {
|
|
29166
|
+
const label = toUserFriendlyName(timeZone);
|
|
29167
|
+
const value = timeZone;
|
|
29007
29168
|
return {
|
|
29008
|
-
|
|
29009
|
-
|
|
29169
|
+
label,
|
|
29170
|
+
value,
|
|
29171
|
+
filterValue: timeZone,
|
|
29010
29172
|
};
|
|
29011
|
-
})
|
|
29173
|
+
})
|
|
29174
|
+
.filter((group) => !!group)
|
|
29175
|
+
.sort();
|
|
29012
29176
|
}
|
|
29013
29177
|
/**
|
|
29014
|
-
* Exported for testing
|
|
29178
|
+
* Exported for testing purposes only
|
|
29015
29179
|
*
|
|
29016
29180
|
* @internal
|
|
29017
29181
|
*/
|
|
29018
|
-
function
|
|
29019
|
-
return
|
|
29182
|
+
function toUserFriendlyName(timeZoneName) {
|
|
29183
|
+
return timeZoneName.replace(/_/g, " ");
|
|
29020
29184
|
}
|
|
29021
|
-
|
|
29022
|
-
|
|
29023
|
-
|
|
29024
|
-
|
|
29025
|
-
}
|
|
29026
|
-
|
|
29027
|
-
return
|
|
29185
|
+
function createTimeZoneOffsetLabel(messages, offsetLabel, groupLabel) {
|
|
29186
|
+
return messages.timeZoneLabel.replace("{offset}", offsetLabel).replace("{cities}", groupLabel);
|
|
29187
|
+
}
|
|
29188
|
+
function getTimeZoneShortOffset(timeZone, locale, referenceDateInMs = Date.now()) {
|
|
29189
|
+
const dateTimeFormat = getDateTimeFormat(locale, { timeZone, timeZoneName: "shortOffset" });
|
|
29190
|
+
const parts = dateTimeFormat.formatToParts(referenceDateInMs);
|
|
29191
|
+
return parts.find(({ type }) => type === "timeZoneName").value;
|
|
29028
29192
|
}
|
|
29029
29193
|
|
|
29030
29194
|
const inputTimeZoneCss = "/*!@:host([disabled])*/[disabled].sc-calcite-input-time-zone-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-input-time-zone-h *.sc-calcite-input-time-zone,.sc-calcite-input-time-zone-h[disabled] .sc-calcite-input-time-zone-s>*{pointer-events:none}/*!@:host*/.sc-calcite-input-time-zone-h{display:block}/*!@:host([hidden])*/[hidden].sc-calcite-input-time-zone-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-input-time-zone{display:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-input-time-zone-h[disabled] .sc-calcite-input-time-zone-s>[calcite-hydrated][disabled],[disabled].sc-calcite-input-time-zone-h [calcite-hydrated][disabled].sc-calcite-input-time-zone{opacity:1}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-input-time-zone-s>input[slot=hidden-form-input]{margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}";
|
|
@@ -29051,13 +29215,13 @@ class InputTimeZone {
|
|
|
29051
29215
|
this.onComboboxChange = (event) => {
|
|
29052
29216
|
event.stopPropagation();
|
|
29053
29217
|
const combobox = event.target;
|
|
29054
|
-
const selected = this.
|
|
29055
|
-
const selectedValue = `${selected.
|
|
29218
|
+
const selected = this.findTimeZoneItem(combobox.selectedItems[0].getAttribute("data-value"));
|
|
29219
|
+
const selectedValue = `${selected.value}`;
|
|
29056
29220
|
if (this.value === selectedValue) {
|
|
29057
29221
|
return;
|
|
29058
29222
|
}
|
|
29059
29223
|
this.value = selectedValue;
|
|
29060
|
-
this.
|
|
29224
|
+
this.selectedTimeZoneItem = selected;
|
|
29061
29225
|
this.calciteInputTimeZoneChange.emit();
|
|
29062
29226
|
};
|
|
29063
29227
|
this.onComboboxClose = (event) => {
|
|
@@ -29075,9 +29239,11 @@ class InputTimeZone {
|
|
|
29075
29239
|
this.maxItems = 0;
|
|
29076
29240
|
this.messages = undefined;
|
|
29077
29241
|
this.messageOverrides = undefined;
|
|
29242
|
+
this.mode = "offset";
|
|
29078
29243
|
this.name = undefined;
|
|
29079
29244
|
this.open = false;
|
|
29080
29245
|
this.overlayPositioning = "absolute";
|
|
29246
|
+
this.referenceDate = undefined;
|
|
29081
29247
|
this.required = false;
|
|
29082
29248
|
this.scale = "m";
|
|
29083
29249
|
this.value = undefined;
|
|
@@ -29087,6 +29253,17 @@ class InputTimeZone {
|
|
|
29087
29253
|
onMessagesChange() {
|
|
29088
29254
|
/* wired up by t9n util */
|
|
29089
29255
|
}
|
|
29256
|
+
handleTimeZoneItemPropsChange() {
|
|
29257
|
+
this.createTimeZoneItems();
|
|
29258
|
+
}
|
|
29259
|
+
handleValueChange(value, oldValue) {
|
|
29260
|
+
const timeZoneItem = this.findTimeZoneItem(value);
|
|
29261
|
+
if (!timeZoneItem) {
|
|
29262
|
+
this.value = oldValue;
|
|
29263
|
+
return;
|
|
29264
|
+
}
|
|
29265
|
+
this.selectedTimeZoneItem = timeZoneItem;
|
|
29266
|
+
}
|
|
29090
29267
|
//--------------------------------------------------------------------------
|
|
29091
29268
|
//
|
|
29092
29269
|
// Public Methods
|
|
@@ -29107,6 +29284,20 @@ class InputTimeZone {
|
|
|
29107
29284
|
onLabelClick() {
|
|
29108
29285
|
this.setFocus();
|
|
29109
29286
|
}
|
|
29287
|
+
findTimeZoneItem(value) {
|
|
29288
|
+
const valueToMatch = value;
|
|
29289
|
+
return this.timeZoneItems.find(({ value }) =>
|
|
29290
|
+
// intentional == to match string to number
|
|
29291
|
+
value == valueToMatch);
|
|
29292
|
+
}
|
|
29293
|
+
async createTimeZoneItems() {
|
|
29294
|
+
if (!this.effectiveLocale || !this.messages) {
|
|
29295
|
+
return [];
|
|
29296
|
+
}
|
|
29297
|
+
return createTimeZoneItems(this.effectiveLocale, this.messages, this.mode, this.referenceDate instanceof Date
|
|
29298
|
+
? this.referenceDate
|
|
29299
|
+
: new Date(this.referenceDate ?? Date.now()));
|
|
29300
|
+
}
|
|
29110
29301
|
// --------------------------------------------------------------------------
|
|
29111
29302
|
//
|
|
29112
29303
|
// Lifecycle
|
|
@@ -29127,13 +29318,14 @@ class InputTimeZone {
|
|
|
29127
29318
|
async componentWillLoad() {
|
|
29128
29319
|
setUpLoadableComponent(this);
|
|
29129
29320
|
await setUpMessages(this);
|
|
29130
|
-
|
|
29131
|
-
this.
|
|
29132
|
-
const
|
|
29133
|
-
this.
|
|
29134
|
-
|
|
29135
|
-
|
|
29136
|
-
|
|
29321
|
+
this.timeZoneItems = await this.createTimeZoneItems();
|
|
29322
|
+
const fallbackValue = this.mode === "offset" ? getUserTimeZoneOffset() : getUserTimeZoneName();
|
|
29323
|
+
const valueToMatch = this.value ?? fallbackValue;
|
|
29324
|
+
this.selectedTimeZoneItem = this.findTimeZoneItem(valueToMatch);
|
|
29325
|
+
if (!this.selectedTimeZoneItem) {
|
|
29326
|
+
this.selectedTimeZoneItem = this.findTimeZoneItem(fallbackValue);
|
|
29327
|
+
}
|
|
29328
|
+
const selectedValue = `${this.selectedTimeZoneItem.value}`;
|
|
29137
29329
|
afterConnectDefaultValueSet(this, selectedValue);
|
|
29138
29330
|
this.value = selectedValue;
|
|
29139
29331
|
}
|
|
@@ -29146,11 +29338,10 @@ class InputTimeZone {
|
|
|
29146
29338
|
render() {
|
|
29147
29339
|
return (hAsync(Host, null, hAsync("calcite-combobox", { clearDisabled: true, disabled: this.disabled, label: this.messages.chooseTimeZone, lang: this.effectiveLocale, maxItems: this.maxItems, onCalciteComboboxBeforeClose: this.onComboboxBeforeClose, onCalciteComboboxBeforeOpen: this.onComboboxBeforeOpen, onCalciteComboboxChange: this.onComboboxChange, onCalciteComboboxClose: this.onComboboxClose, onCalciteComboboxOpen: this.onComboboxOpen, open: this.open, overlayPositioning: this.overlayPositioning, scale: this.scale, selectionMode: "single-persist",
|
|
29148
29340
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
29149
|
-
ref: this.setComboboxRef }, this.
|
|
29150
|
-
const selected = this.
|
|
29151
|
-
const label = group
|
|
29152
|
-
|
|
29153
|
-
return (hAsync("calcite-combobox-item", { key: label, selected: selected, textLabel: label, value: `${value}` }));
|
|
29341
|
+
ref: this.setComboboxRef }, this.timeZoneItems.map((group) => {
|
|
29342
|
+
const selected = this.selectedTimeZoneItem === group;
|
|
29343
|
+
const { label, value } = group;
|
|
29344
|
+
return (hAsync("calcite-combobox-item", { "data-value": value, key: label, selected: selected, textLabel: label, value: `${group.filterValue}` }));
|
|
29154
29345
|
})), hAsync(HiddenFormInputSlot, { component: this })));
|
|
29155
29346
|
}
|
|
29156
29347
|
static get delegatesFocus() { return true; }
|
|
@@ -29158,7 +29349,11 @@ class InputTimeZone {
|
|
|
29158
29349
|
get el() { return getElement(this); }
|
|
29159
29350
|
static get watchers() { return {
|
|
29160
29351
|
"messageOverrides": ["onMessagesChange"],
|
|
29161
|
-
"effectiveLocale": ["effectiveLocaleWatcher"]
|
|
29352
|
+
"effectiveLocale": ["handleTimeZoneItemPropsChange", "effectiveLocaleWatcher"],
|
|
29353
|
+
"messages": ["handleTimeZoneItemPropsChange"],
|
|
29354
|
+
"mode": ["handleTimeZoneItemPropsChange"],
|
|
29355
|
+
"referenceDate": ["handleTimeZoneItemPropsChange"],
|
|
29356
|
+
"value": ["handleValueChange"]
|
|
29162
29357
|
}; }
|
|
29163
29358
|
static get style() { return inputTimeZoneCss; }
|
|
29164
29359
|
static get cmpMeta() { return {
|
|
@@ -29170,9 +29365,11 @@ class InputTimeZone {
|
|
|
29170
29365
|
"maxItems": [514, "max-items"],
|
|
29171
29366
|
"messages": [1040],
|
|
29172
29367
|
"messageOverrides": [1040],
|
|
29368
|
+
"mode": [513],
|
|
29173
29369
|
"name": [513],
|
|
29174
29370
|
"open": [1540],
|
|
29175
29371
|
"overlayPositioning": [513, "overlay-positioning"],
|
|
29372
|
+
"referenceDate": [1, "reference-date"],
|
|
29176
29373
|
"required": [516],
|
|
29177
29374
|
"scale": [513],
|
|
29178
29375
|
"value": [1025],
|
|
@@ -29182,7 +29379,7 @@ class InputTimeZone {
|
|
|
29182
29379
|
},
|
|
29183
29380
|
"$listeners$": undefined,
|
|
29184
29381
|
"$lazyBundleId$": "-",
|
|
29185
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["form", "form"], ["maxItems", "max-items"], ["name", "name"], ["open", "open"], ["overlayPositioning", "overlay-positioning"], ["required", "required"], ["scale", "scale"]]
|
|
29382
|
+
"$attrsToReflect$": [["disabled", "disabled"], ["form", "form"], ["maxItems", "max-items"], ["mode", "mode"], ["name", "name"], ["open", "open"], ["overlayPositioning", "overlay-positioning"], ["required", "required"], ["scale", "scale"]]
|
|
29186
29383
|
}; }
|
|
29187
29384
|
}
|
|
29188
29385
|
|
|
@@ -29902,7 +30099,7 @@ function lastChild(el, selector) {
|
|
|
29902
30099
|
*/
|
|
29903
30100
|
|
|
29904
30101
|
|
|
29905
|
-
function index(el, selector) {
|
|
30102
|
+
function index$2(el, selector) {
|
|
29906
30103
|
var index = 0;
|
|
29907
30104
|
|
|
29908
30105
|
if (!el || !el.parentNode) {
|
|
@@ -30770,8 +30967,8 @@ Sortable.prototype =
|
|
|
30770
30967
|
} // Get the index of the dragged element within its parent
|
|
30771
30968
|
|
|
30772
30969
|
|
|
30773
|
-
oldIndex = index(target);
|
|
30774
|
-
oldDraggableIndex = index(target, options.draggable); // Check filter
|
|
30970
|
+
oldIndex = index$2(target);
|
|
30971
|
+
oldDraggableIndex = index$2(target, options.draggable); // Check filter
|
|
30775
30972
|
|
|
30776
30973
|
if (typeof filter === 'function') {
|
|
30777
30974
|
if (filter.call(this, evt, target, this)) {
|
|
@@ -31350,8 +31547,8 @@ Sortable.prototype =
|
|
|
31350
31547
|
|
|
31351
31548
|
|
|
31352
31549
|
function changed() {
|
|
31353
|
-
newIndex = index(dragEl);
|
|
31354
|
-
newDraggableIndex = index(dragEl, options.draggable);
|
|
31550
|
+
newIndex = index$2(dragEl);
|
|
31551
|
+
newDraggableIndex = index$2(dragEl, options.draggable);
|
|
31355
31552
|
|
|
31356
31553
|
_dispatchEvent({
|
|
31357
31554
|
sortable: _this,
|
|
@@ -31477,7 +31674,7 @@ Sortable.prototype =
|
|
|
31477
31674
|
|
|
31478
31675
|
if (direction !== 0) {
|
|
31479
31676
|
// Check if target is beside dragEl in respective direction (ignoring hidden elements)
|
|
31480
|
-
var dragIndex = index(dragEl);
|
|
31677
|
+
var dragIndex = index$2(dragEl);
|
|
31481
31678
|
|
|
31482
31679
|
do {
|
|
31483
31680
|
dragIndex -= direction;
|
|
@@ -31560,15 +31757,15 @@ Sortable.prototype =
|
|
|
31560
31757
|
var el = this.el,
|
|
31561
31758
|
options = this.options; // Get the index of the dragged element within its parent
|
|
31562
31759
|
|
|
31563
|
-
newIndex = index(dragEl);
|
|
31564
|
-
newDraggableIndex = index(dragEl, options.draggable);
|
|
31760
|
+
newIndex = index$2(dragEl);
|
|
31761
|
+
newDraggableIndex = index$2(dragEl, options.draggable);
|
|
31565
31762
|
pluginEvent('drop', this, {
|
|
31566
31763
|
evt: evt
|
|
31567
31764
|
});
|
|
31568
31765
|
parentEl = dragEl && dragEl.parentNode; // Get again after plugin event
|
|
31569
31766
|
|
|
31570
|
-
newIndex = index(dragEl);
|
|
31571
|
-
newDraggableIndex = index(dragEl, options.draggable);
|
|
31767
|
+
newIndex = index$2(dragEl);
|
|
31768
|
+
newDraggableIndex = index$2(dragEl, options.draggable);
|
|
31572
31769
|
|
|
31573
31770
|
if (Sortable.eventCanceled) {
|
|
31574
31771
|
this._nulling();
|
|
@@ -32032,7 +32229,7 @@ function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, inv
|
|
|
32032
32229
|
|
|
32033
32230
|
|
|
32034
32231
|
function _getInsertDirection(target) {
|
|
32035
|
-
if (index(dragEl) < index(target)) {
|
|
32232
|
+
if (index$2(dragEl) < index$2(target)) {
|
|
32036
32233
|
return 1;
|
|
32037
32234
|
} else {
|
|
32038
32235
|
return -1;
|
|
@@ -32100,7 +32297,7 @@ Sortable.utils = {
|
|
|
32100
32297
|
closest: closest,
|
|
32101
32298
|
toggleClass: toggleClass,
|
|
32102
32299
|
clone: clone,
|
|
32103
|
-
index: index,
|
|
32300
|
+
index: index$2,
|
|
32104
32301
|
nextTick: _nextTick,
|
|
32105
32302
|
cancelNextTick: _cancelNextTick,
|
|
32106
32303
|
detectDirection: _detectDirection,
|
|
@@ -32487,10 +32684,10 @@ function connectSortableComponent(component) {
|
|
|
32487
32684
|
group: {
|
|
32488
32685
|
name: group,
|
|
32489
32686
|
...(!!component.canPull && {
|
|
32490
|
-
pull: (to, from, dragEl) => component.canPull({ toEl: to.el, fromEl: from.el, dragEl }),
|
|
32687
|
+
pull: (to, from, dragEl, { newIndex, oldIndex }) => component.canPull({ toEl: to.el, fromEl: from.el, dragEl, newIndex, oldIndex }),
|
|
32491
32688
|
}),
|
|
32492
32689
|
...(!!component.canPut && {
|
|
32493
|
-
put: (to, from, dragEl) => component.canPut({ toEl: to.el, fromEl: from.el, dragEl }),
|
|
32690
|
+
put: (to, from, dragEl, { newIndex, oldIndex }) => component.canPut({ toEl: to.el, fromEl: from.el, dragEl, newIndex, oldIndex }),
|
|
32494
32691
|
}),
|
|
32495
32692
|
},
|
|
32496
32693
|
}),
|
|
@@ -32503,8 +32700,8 @@ function connectSortableComponent(component) {
|
|
|
32503
32700
|
dragState.active = false;
|
|
32504
32701
|
onDragEnd();
|
|
32505
32702
|
},
|
|
32506
|
-
onSort: ({ from: fromEl, item: dragEl, to: toEl }) => {
|
|
32507
|
-
component.onDragSort({ fromEl, dragEl, toEl });
|
|
32703
|
+
onSort: ({ from: fromEl, item: dragEl, to: toEl, newIndex, oldIndex }) => {
|
|
32704
|
+
component.onDragSort({ fromEl, dragEl, toEl, newIndex, oldIndex });
|
|
32508
32705
|
},
|
|
32509
32706
|
});
|
|
32510
32707
|
}
|
|
@@ -32947,26 +33144,28 @@ class List$1 {
|
|
|
32947
33144
|
const { enabledListItems } = this;
|
|
32948
33145
|
const sameParentItems = enabledListItems.filter((item) => item.parentElement === parentEl);
|
|
32949
33146
|
const lastIndex = sameParentItems.length - 1;
|
|
32950
|
-
const
|
|
33147
|
+
const oldIndex = sameParentItems.indexOf(sortItem);
|
|
32951
33148
|
let appendInstead = false;
|
|
32952
|
-
let
|
|
33149
|
+
let newIndex;
|
|
32953
33150
|
if (direction === "up") {
|
|
32954
|
-
if (
|
|
33151
|
+
if (oldIndex === 0) {
|
|
32955
33152
|
appendInstead = true;
|
|
33153
|
+
newIndex = lastIndex;
|
|
32956
33154
|
}
|
|
32957
33155
|
else {
|
|
32958
|
-
|
|
33156
|
+
newIndex = oldIndex - 1;
|
|
32959
33157
|
}
|
|
32960
33158
|
}
|
|
32961
33159
|
else {
|
|
32962
|
-
if (
|
|
32963
|
-
|
|
33160
|
+
if (oldIndex === lastIndex) {
|
|
33161
|
+
newIndex = 0;
|
|
32964
33162
|
}
|
|
32965
|
-
else if (
|
|
33163
|
+
else if (oldIndex === lastIndex - 1) {
|
|
32966
33164
|
appendInstead = true;
|
|
33165
|
+
newIndex = lastIndex;
|
|
32967
33166
|
}
|
|
32968
33167
|
else {
|
|
32969
|
-
|
|
33168
|
+
newIndex = oldIndex + 2;
|
|
32970
33169
|
}
|
|
32971
33170
|
}
|
|
32972
33171
|
this.disconnectObserver();
|
|
@@ -32974,14 +33173,16 @@ class List$1 {
|
|
|
32974
33173
|
parentEl.appendChild(sortItem);
|
|
32975
33174
|
}
|
|
32976
33175
|
else {
|
|
32977
|
-
parentEl.insertBefore(sortItem, sameParentItems[
|
|
33176
|
+
parentEl.insertBefore(sortItem, sameParentItems[newIndex]);
|
|
32978
33177
|
}
|
|
32979
33178
|
this.updateListItems();
|
|
32980
33179
|
this.connectObserver();
|
|
32981
33180
|
this.calciteListOrderChange.emit({
|
|
32982
33181
|
dragEl: sortItem,
|
|
32983
|
-
fromEl:
|
|
32984
|
-
toEl:
|
|
33182
|
+
fromEl: parentEl,
|
|
33183
|
+
toEl: parentEl,
|
|
33184
|
+
newIndex,
|
|
33185
|
+
oldIndex,
|
|
32985
33186
|
});
|
|
32986
33187
|
handle.setFocus().then(() => {
|
|
32987
33188
|
handle.activated = true;
|
|
@@ -34645,37 +34846,6 @@ const ICONS$6 = {
|
|
|
34645
34846
|
previous: "chevronLeft",
|
|
34646
34847
|
};
|
|
34647
34848
|
|
|
34648
|
-
let getBreakpointsPromise;
|
|
34649
|
-
function breakpointTokenToNumericalValue(style, tokenName) {
|
|
34650
|
-
return parseInt(style.getPropertyValue(tokenName));
|
|
34651
|
-
}
|
|
34652
|
-
/**
|
|
34653
|
-
* This util will return a breakpoints lookup object.
|
|
34654
|
-
*
|
|
34655
|
-
* Note that the breakpoints will be evaluated at the root and cached for reuse.
|
|
34656
|
-
*
|
|
34657
|
-
* @returns {Promise<Breakpoints>} The Breakpoints object.
|
|
34658
|
-
*/
|
|
34659
|
-
async function getBreakpoints() {
|
|
34660
|
-
if (getBreakpointsPromise) {
|
|
34661
|
-
return getBreakpointsPromise;
|
|
34662
|
-
}
|
|
34663
|
-
getBreakpointsPromise = new Promise((resolve) => {
|
|
34664
|
-
requestAnimationFrame(() => {
|
|
34665
|
-
const rootStyles = getComputedStyle(document.body);
|
|
34666
|
-
resolve({
|
|
34667
|
-
width: {
|
|
34668
|
-
large: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-lg"),
|
|
34669
|
-
medium: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-md"),
|
|
34670
|
-
small: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-sm"),
|
|
34671
|
-
xsmall: breakpointTokenToNumericalValue(rootStyles, "--calcite-app-breakpoint-width-xs"),
|
|
34672
|
-
},
|
|
34673
|
-
});
|
|
34674
|
-
});
|
|
34675
|
-
});
|
|
34676
|
-
return getBreakpointsPromise;
|
|
34677
|
-
}
|
|
34678
|
-
|
|
34679
34849
|
const paginationCss = "/*!@:host*/.sc-calcite-pagination-h{display:flex;writing-mode:horizontal-tb}/*!@:host([scale=s]) .previous, :host([scale=s]) .next, :host([scale=s]) .page, :host([scale=s]) .ellipsis*/[scale=s].sc-calcite-pagination-h .previous.sc-calcite-pagination,[scale=s].sc-calcite-pagination-h .next.sc-calcite-pagination,[scale=s].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=s].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:1.5rem;padding-inline:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;min-inline-size:1.5rem}/*!@:host([scale=m]) .previous, :host([scale=m]) .next, :host([scale=m]) .page, :host([scale=m]) .ellipsis*/[scale=m].sc-calcite-pagination-h .previous.sc-calcite-pagination,[scale=m].sc-calcite-pagination-h .next.sc-calcite-pagination,[scale=m].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=m].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:2rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;min-inline-size:2rem}/*!@:host([scale=l]) .previous, :host([scale=l]) .next, :host([scale=l]) .page, :host([scale=l]) .ellipsis*/[scale=l].sc-calcite-pagination-h .previous.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .next.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-inline-size:2.75rem}/*!@:host([scale=l]) .previous, :host([scale=l]) .next*/[scale=l].sc-calcite-pagination-h .previous.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .next.sc-calcite-pagination{padding-inline:0.625rem}/*!@:host([scale=l]) .page, :host([scale=l]) .ellipsis*/[scale=l].sc-calcite-pagination-h .page.sc-calcite-pagination,[scale=l].sc-calcite-pagination-h .ellipsis.sc-calcite-pagination{padding-inline:0.75rem}/*!@:host button*/.sc-calcite-pagination-h button.sc-calcite-pagination{outline-color:transparent}/*!@:host button:focus*/.sc-calcite-pagination-h button.sc-calcite-pagination:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.previous,\n.next,\n.page,\n.ellipsis*/.previous.sc-calcite-pagination,.next.sc-calcite-pagination,.page.sc-calcite-pagination,.ellipsis.sc-calcite-pagination{margin:0px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-style:none;--tw-border-opacity:0;background-color:transparent;padding:0px;vertical-align:baseline;font-family:inherit;font-size:var(--calcite-font-size-0);line-height:1.25rem;color:var(--calcite-ui-text-3)}/*!@.previous,\n.next,\n.page*/.previous.sc-calcite-pagination,.next.sc-calcite-pagination,.page.sc-calcite-pagination{cursor:pointer;border-block:2px solid transparent}/*!@.previous:hover,\n.next:hover,\n.page:hover*/.previous.sc-calcite-pagination:hover,.next.sc-calcite-pagination:hover,.page.sc-calcite-pagination:hover{color:var(--calcite-ui-text-1);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}/*!@.page:hover*/.page.sc-calcite-pagination:hover{border-block-end-color:var(--calcite-ui-border-2)}/*!@.page.is-selected*/.page.is-selected.sc-calcite-pagination{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);border-block-end-color:var(--calcite-ui-brand)}/*!@.previous:hover,\n.next:hover*/.previous.sc-calcite-pagination:hover,.next.sc-calcite-pagination:hover{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-brand)}/*!@.previous:active,\n.next:active*/.previous.sc-calcite-pagination:active,.next.sc-calcite-pagination:active{background-color:var(--calcite-ui-foreground-3)}/*!@.previous.is-disabled,\n.next.is-disabled*/.previous.is-disabled.sc-calcite-pagination,.next.is-disabled.sc-calcite-pagination{pointer-events:none;background-color:transparent}/*!@.previous.is-disabled > calcite-icon,\n.next.is-disabled > calcite-icon*/.previous.is-disabled.sc-calcite-pagination>calcite-icon.sc-calcite-pagination,.next.is-disabled.sc-calcite-pagination>calcite-icon.sc-calcite-pagination{opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([hidden])*/[hidden].sc-calcite-pagination-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-pagination{display:none}";
|
|
34680
34850
|
|
|
34681
34851
|
const firstAndLastPageCount = 2;
|
|
@@ -34948,7 +35118,7 @@ class Pagination {
|
|
|
34948
35118
|
}; }
|
|
34949
35119
|
}
|
|
34950
35120
|
|
|
34951
|
-
const panelCss = "/*!@:host*/.sc-calcite-panel-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-panel-h *.sc-calcite-panel{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-panel-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-panel-h *.sc-calcite-panel,.sc-calcite-panel-h[disabled] .sc-calcite-panel-s>*{pointer-events:none}/*!@:host*/.sc-calcite-panel-h{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3)
|
|
35121
|
+
const panelCss = "/*!@:host*/.sc-calcite-panel-h{box-sizing:border-box;background-color:var(--calcite-ui-foreground-1);color:var(--calcite-ui-text-2);font-size:var(--calcite-font-size--1)}/*!@:host **/.sc-calcite-panel-h *.sc-calcite-panel{box-sizing:border-box}/*!@:host([disabled])*/[disabled].sc-calcite-panel-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-panel-h *.sc-calcite-panel,.sc-calcite-panel-h[disabled] .sc-calcite-panel-s>*{pointer-events:none}/*!@:host*/.sc-calcite-panel-h{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3)}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-panel-h[disabled] .sc-calcite-panel-s>[calcite-hydrated][disabled],[disabled].sc-calcite-panel-h [calcite-hydrated][disabled].sc-calcite-panel{opacity:1}/*!@.header*/.header.sc-calcite-panel{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-ui-text-2);color:var(--calcite-ui-text-2)}/*!@.heading*/.heading.sc-calcite-panel{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}/*!@.header .heading*/.header.sc-calcite-panel .heading.sc-calcite-panel{flex:1 1 auto;padding:0.5rem}/*!@.container*/.container.sc-calcite-panel{margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-ui-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}/*!@.container[hidden]*/.container[hidden].sc-calcite-panel{display:none}/*!@.header*/.header.sc-calcite-panel{z-index:var(--calcite-app-z-index-header);display:flex;flex-direction:column;background-color:var(--calcite-ui-foreground-1);border-block-end:var(--calcite-panel-header-border-block-end, 1px solid var(--calcite-ui-border-3))}/*!@.header-container*/.header-container.sc-calcite-panel{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}/*!@.header-container--border-end*/.header-container--border-end.sc-calcite-panel{border-block-end:1px solid var(--calcite-ui-border-3)}/*!@.action-bar-container*/.action-bar-container.sc-calcite-panel{inline-size:100%}/*!@.action-bar-container ::slotted(calcite-action-bar)*/.action-bar-container .sc-calcite-panel-s>calcite-action-bar{inline-size:100%}/*!@.header-content*/.header-content.sc-calcite-panel{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;margin-inline-end:auto}/*!@.header-content .heading,\n.header-content .description*/.header-content.sc-calcite-panel .heading.sc-calcite-panel,.header-content.sc-calcite-panel .description.sc-calcite-panel{display:block;overflow-wrap:break-word;padding:0px}/*!@.header-content .heading*/.header-content.sc-calcite-panel .heading.sc-calcite-panel{margin-inline:0px;margin-block:0px 0.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-medium)}/*!@.header-content .heading:only-child*/.header-content.sc-calcite-panel .heading.sc-calcite-panel:only-child{margin-block-end:0px}/*!@.header-content .description*/.header-content.sc-calcite-panel .description.sc-calcite-panel{font-size:var(--calcite-font-size--1);line-height:1rem;color:var(--calcite-ui-text-2)}/*!@.back-button*/.back-button.sc-calcite-panel{border-width:0px;border-style:solid;border-color:var(--calcite-ui-border-3);border-inline-end-width:1px}/*!@.header-actions*/.header-actions.sc-calcite-panel{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}/*!@.header-actions--end*/.header-actions--end.sc-calcite-panel{margin-inline-start:auto}/*!@.content-wrapper*/.content-wrapper.sc-calcite-panel{display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;background-color:var(--calcite-ui-background)}/*!@.footer*/.footer.sc-calcite-panel{display:flex;inline-size:100%;justify-content:space-evenly;background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding:var(--calcite-panel-footer-padding, 0.5rem);border-block-start:1px solid var(--calcite-ui-border-3)}/*!@.fab-container*/.fab-container.sc-calcite-panel{position:sticky;inset-block-end:0px;z-index:var(--calcite-app-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}/*!@:host([hidden])*/[hidden].sc-calcite-panel-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-panel{display:none}";
|
|
34952
35122
|
|
|
34953
35123
|
/**
|
|
34954
35124
|
* @slot - A slot for adding custom content.
|
|
@@ -34965,6 +35135,7 @@ class Panel {
|
|
|
34965
35135
|
constructor(hostRef) {
|
|
34966
35136
|
registerInstance(this, hostRef);
|
|
34967
35137
|
this.calcitePanelClose = createEvent(this, "calcitePanelClose", 6);
|
|
35138
|
+
this.calcitePanelToggle = createEvent(this, "calcitePanelToggle", 6);
|
|
34968
35139
|
this.calcitePanelScroll = createEvent(this, "calcitePanelScroll", 6);
|
|
34969
35140
|
this.resizeObserver = createObserver();
|
|
34970
35141
|
// --------------------------------------------------------------------------
|
|
@@ -34984,12 +35155,6 @@ class Panel {
|
|
|
34984
35155
|
this.setContainerRef = (node) => {
|
|
34985
35156
|
this.containerEl = node;
|
|
34986
35157
|
};
|
|
34987
|
-
this.setCloseRef = (node) => {
|
|
34988
|
-
this.closeButtonEl = node;
|
|
34989
|
-
};
|
|
34990
|
-
this.setBackRef = (node) => {
|
|
34991
|
-
this.backButtonEl = node;
|
|
34992
|
-
};
|
|
34993
35158
|
this.panelKeyDownHandler = (event) => {
|
|
34994
35159
|
if (this.closable && event.key === "Escape" && !event.defaultPrevented) {
|
|
34995
35160
|
this.close();
|
|
@@ -35000,6 +35165,10 @@ class Panel {
|
|
|
35000
35165
|
this.closed = true;
|
|
35001
35166
|
this.calcitePanelClose.emit();
|
|
35002
35167
|
};
|
|
35168
|
+
this.collapse = () => {
|
|
35169
|
+
this.collapsed = !this.collapsed;
|
|
35170
|
+
this.calcitePanelToggle.emit();
|
|
35171
|
+
};
|
|
35003
35172
|
this.panelScrollHandler = () => {
|
|
35004
35173
|
this.calcitePanelScroll.emit();
|
|
35005
35174
|
};
|
|
@@ -35040,6 +35209,9 @@ class Panel {
|
|
|
35040
35209
|
this.closed = false;
|
|
35041
35210
|
this.disabled = false;
|
|
35042
35211
|
this.closable = false;
|
|
35212
|
+
this.collapsed = false;
|
|
35213
|
+
this.collapseDirection = "down";
|
|
35214
|
+
this.collapsible = false;
|
|
35043
35215
|
this.headingLevel = undefined;
|
|
35044
35216
|
this.loading = false;
|
|
35045
35217
|
this.heading = undefined;
|
|
@@ -35112,7 +35284,8 @@ class Panel {
|
|
|
35112
35284
|
* top: 0, // Specifies the number of pixels along the Y axis to scroll the window or element
|
|
35113
35285
|
* behavior: "auto" // Specifies whether the scrolling should animate smoothly (smooth), or happen instantly in a single jump (auto, the default value).
|
|
35114
35286
|
* });
|
|
35115
|
-
* @param options
|
|
35287
|
+
* @param options - allows specific coordinates to be defined.
|
|
35288
|
+
* @returns - promise that resolves once the content is scrolled to.
|
|
35116
35289
|
*/
|
|
35117
35290
|
async scrollContentTo(options) {
|
|
35118
35291
|
this.panelScrollEl?.scrollTo(options);
|
|
@@ -35131,9 +35304,6 @@ class Panel {
|
|
|
35131
35304
|
renderActionBar() {
|
|
35132
35305
|
return (hAsync("div", { class: CSS$N.actionBarContainer, hidden: !this.hasActionBar }, hAsync("slot", { name: SLOTS$n.actionBar, onSlotchange: this.handleActionBarSlotChange })));
|
|
35133
35306
|
}
|
|
35134
|
-
/**
|
|
35135
|
-
* Allows user to override the entire header-content node.
|
|
35136
|
-
*/
|
|
35137
35307
|
renderHeaderSlottedContent() {
|
|
35138
35308
|
return (hAsync("div", { class: CSS$N.headerContent, hidden: !this.hasHeaderContent, key: "slotted-header-content" }, hAsync("slot", { name: SLOTS$n.headerContent, onSlotchange: this.handleHeaderContentSlotChange })));
|
|
35139
35309
|
}
|
|
@@ -35142,26 +35312,30 @@ class Panel {
|
|
|
35142
35312
|
return (hAsync("div", { class: { [CSS$N.headerActionsStart]: true, [CSS$N.headerActions]: true }, hidden: !hasStartActions, key: "header-actions-start" }, hAsync("slot", { name: SLOTS$n.headerActionsStart, onSlotchange: this.handleHeaderActionsStartSlotChange })));
|
|
35143
35313
|
}
|
|
35144
35314
|
renderHeaderActionsEnd() {
|
|
35145
|
-
const {
|
|
35146
|
-
const
|
|
35147
|
-
const
|
|
35148
|
-
|
|
35149
|
-
|
|
35315
|
+
const { hasEndActions, messages, closable, collapsed, collapseDirection, collapsible, hasMenuItems, } = this;
|
|
35316
|
+
const { collapse, expand, close } = messages;
|
|
35317
|
+
const icons = [ICONS$b.expand, ICONS$b.collapse];
|
|
35318
|
+
if (collapseDirection === "up") {
|
|
35319
|
+
icons.reverse();
|
|
35320
|
+
}
|
|
35321
|
+
const collapseNode = collapsible ? (hAsync("calcite-action", { "aria-expanded": toAriaBoolean(!collapsed), "aria-label": collapse, "data-test": "collapse", icon: collapsed ? icons[0] : icons[1], onClick: this.collapse, text: collapse, title: !collapsed ? expand : collapse })) : null;
|
|
35322
|
+
const closeNode = closable ? (hAsync("calcite-action", { "aria-label": close, "data-test": "close", icon: ICONS$b.close, onClick: this.close, text: close, title: close })) : null;
|
|
35150
35323
|
const slotNode = (hAsync("slot", { name: SLOTS$n.headerActionsEnd, onSlotchange: this.handleHeaderActionsEndSlotChange }));
|
|
35151
|
-
const showContainer = hasEndActions ||
|
|
35152
|
-
return (hAsync("div", { class: { [CSS$N.headerActionsEnd]: true, [CSS$N.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, this.renderMenu(),
|
|
35324
|
+
const showContainer = hasEndActions || collapseNode || closeNode || hasMenuItems;
|
|
35325
|
+
return (hAsync("div", { class: { [CSS$N.headerActionsEnd]: true, [CSS$N.headerActions]: true }, hidden: !showContainer, key: "header-actions-end" }, slotNode, this.renderMenu(), collapseNode, closeNode));
|
|
35153
35326
|
}
|
|
35154
35327
|
renderMenu() {
|
|
35155
35328
|
const { hasMenuItems, messages, menuOpen } = this;
|
|
35156
35329
|
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$b.menu, slot: SLOTS$w.trigger, text: messages.options }), hAsync("slot", { name: SLOTS$n.headerMenuActions, onSlotchange: this.handleHeaderMenuActionsSlotChange })));
|
|
35157
35330
|
}
|
|
35158
35331
|
renderHeaderNode() {
|
|
35159
|
-
const { hasHeaderContent, hasStartActions, hasEndActions, closable, hasMenuItems, hasActionBar, } = this;
|
|
35332
|
+
const { hasHeaderContent, hasStartActions, hasEndActions, closable, collapsible, hasMenuItems, hasActionBar, } = this;
|
|
35160
35333
|
const headerContentNode = this.renderHeaderContent();
|
|
35161
35334
|
const showHeaderContent = hasHeaderContent ||
|
|
35162
35335
|
!!headerContentNode ||
|
|
35163
35336
|
hasStartActions ||
|
|
35164
35337
|
hasEndActions ||
|
|
35338
|
+
collapsible ||
|
|
35165
35339
|
closable ||
|
|
35166
35340
|
hasMenuItems;
|
|
35167
35341
|
this.showHeaderContent = showHeaderContent;
|
|
@@ -35173,7 +35347,7 @@ class Panel {
|
|
|
35173
35347
|
return (hAsync("footer", { class: CSS$N.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 })));
|
|
35174
35348
|
}
|
|
35175
35349
|
renderContent() {
|
|
35176
|
-
return (hAsync("div", { class: CSS$N.contentWrapper, onScroll: this.panelScrollHandler,
|
|
35350
|
+
return (hAsync("div", { class: CSS$N.contentWrapper, hidden: this.collapsible && this.collapsed, onScroll: this.panelScrollHandler,
|
|
35177
35351
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
35178
35352
|
ref: this.setPanelScrollEl }, hAsync("slot", null), this.renderFab()));
|
|
35179
35353
|
}
|
|
@@ -35201,6 +35375,9 @@ class Panel {
|
|
|
35201
35375
|
"closed": [1540],
|
|
35202
35376
|
"disabled": [516],
|
|
35203
35377
|
"closable": [516],
|
|
35378
|
+
"collapsed": [516],
|
|
35379
|
+
"collapseDirection": [1, "collapse-direction"],
|
|
35380
|
+
"collapsible": [516],
|
|
35204
35381
|
"headingLevel": [514, "heading-level"],
|
|
35205
35382
|
"loading": [516],
|
|
35206
35383
|
"heading": [1],
|
|
@@ -35224,7 +35401,7 @@ class Panel {
|
|
|
35224
35401
|
},
|
|
35225
35402
|
"$listeners$": undefined,
|
|
35226
35403
|
"$lazyBundleId$": "-",
|
|
35227
|
-
"$attrsToReflect$": [["closed", "closed"], ["disabled", "disabled"], ["closable", "closable"], ["headingLevel", "heading-level"], ["loading", "loading"], ["menuOpen", "menu-open"]]
|
|
35404
|
+
"$attrsToReflect$": [["closed", "closed"], ["disabled", "disabled"], ["closable", "closable"], ["collapsed", "collapsed"], ["collapsible", "collapsible"], ["headingLevel", "heading-level"], ["loading", "loading"], ["menuOpen", "menu-open"]]
|
|
35228
35405
|
}; }
|
|
35229
35406
|
}
|
|
35230
35407
|
|
|
@@ -41484,7 +41661,7 @@ const CSS$a = {
|
|
|
41484
41661
|
assistiveText: "assistive-text",
|
|
41485
41662
|
};
|
|
41486
41663
|
|
|
41487
|
-
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{white-space:normal;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}";
|
|
41664
|
+
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{white-space:normal;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)}/*!@.calcite--rtl.selection-cell.selected-cell*/.calcite--rtl.selection-cell.selected-cell.sc-calcite-table-cell{box-shadow:inset -0.25rem 0 0 0 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}";
|
|
41488
41665
|
|
|
41489
41666
|
/**
|
|
41490
41667
|
* @slot - A slot for adding content, usually text content.
|
|
@@ -41583,11 +41760,13 @@ class TableCell {
|
|
|
41583
41760
|
//
|
|
41584
41761
|
//--------------------------------------------------------------------------
|
|
41585
41762
|
render() {
|
|
41763
|
+
const dir = getElementDir(this.el);
|
|
41586
41764
|
return (hAsync(Host, null, hAsync("td", { "aria-disabled": this.disabled, class: {
|
|
41587
41765
|
[CSS$a.footerCell]: this.parentRowType === "foot",
|
|
41588
41766
|
[CSS$a.numberCell]: this.numberCell,
|
|
41589
41767
|
[CSS$a.selectionCell]: this.selectionCell,
|
|
41590
41768
|
[CSS$a.selectedCell]: this.parentRowIsSelected,
|
|
41769
|
+
[CSS_UTILITY.rtl]: dir === "rtl",
|
|
41591
41770
|
}, colSpan: this.colSpan, onBlur: this.onContainerBlur, onFocus: this.onContainerFocus, role: "gridcell", rowSpan: this.rowSpan, tabIndex: this.disabled ? -1 : 0,
|
|
41592
41771
|
// eslint-disable-next-line react/jsx-sort-props -- ref should be last so node attrs/props are in sync (see https://github.com/Esri/calcite-design-system/pull/6530)
|
|
41593
41772
|
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 }))));
|
|
@@ -44598,17 +44777,15 @@ class Tree {
|
|
|
44598
44777
|
this.el.tabIndex = this.getRootTabIndex();
|
|
44599
44778
|
}
|
|
44600
44779
|
}
|
|
44601
|
-
|
|
44602
|
-
const target = event.target;
|
|
44603
|
-
const childItems = nodeListToArray(target.querySelectorAll("calcite-tree-item"));
|
|
44780
|
+
onInternalTreeItemSelect(event) {
|
|
44604
44781
|
if (this.child) {
|
|
44605
44782
|
return;
|
|
44606
44783
|
}
|
|
44607
|
-
|
|
44608
|
-
|
|
44609
|
-
|
|
44610
|
-
|
|
44611
|
-
if (this.selectionMode === "ancestors"
|
|
44784
|
+
const target = event.target;
|
|
44785
|
+
const childItems = nodeListToArray(target.querySelectorAll("calcite-tree-item"));
|
|
44786
|
+
event.preventDefault();
|
|
44787
|
+
event.stopPropagation();
|
|
44788
|
+
if (this.selectionMode === "ancestors") {
|
|
44612
44789
|
this.updateAncestorTree(event);
|
|
44613
44790
|
return;
|
|
44614
44791
|
}
|
|
@@ -44626,62 +44803,51 @@ class Tree {
|
|
|
44626
44803
|
childItems.length <= 0) ||
|
|
44627
44804
|
this.selectionMode === "children" ||
|
|
44628
44805
|
this.selectionMode === "multichildren");
|
|
44629
|
-
const shouldUpdateExpand = ["
|
|
44630
|
-
|
|
44631
|
-
|
|
44632
|
-
|
|
44633
|
-
|
|
44634
|
-
|
|
44635
|
-
|
|
44636
|
-
|
|
44637
|
-
|
|
44638
|
-
|
|
44639
|
-
|
|
44640
|
-
selectedItems.forEach((treeItem) => {
|
|
44641
|
-
if (!targetItems.includes(treeItem)) {
|
|
44642
|
-
treeItem.selected = false;
|
|
44643
|
-
}
|
|
44644
|
-
});
|
|
44645
|
-
}
|
|
44646
|
-
if (shouldUpdateExpand) {
|
|
44647
|
-
if (["single", "multiple"].includes(this.selectionMode)) {
|
|
44648
|
-
target.expanded = !target.expanded;
|
|
44806
|
+
const shouldUpdateExpand = ["multiple", "none", "single", "single-persist"].includes(this.selectionMode) &&
|
|
44807
|
+
target.hasChildren;
|
|
44808
|
+
const targetItems = [];
|
|
44809
|
+
if (shouldSelect) {
|
|
44810
|
+
targetItems.push(target);
|
|
44811
|
+
}
|
|
44812
|
+
if (shouldClearCurrentSelection) {
|
|
44813
|
+
const selectedItems = nodeListToArray(this.el.querySelectorAll("calcite-tree-item[selected]"));
|
|
44814
|
+
selectedItems.forEach((treeItem) => {
|
|
44815
|
+
if (!targetItems.includes(treeItem)) {
|
|
44816
|
+
treeItem.selected = false;
|
|
44649
44817
|
}
|
|
44650
|
-
|
|
44651
|
-
|
|
44818
|
+
});
|
|
44819
|
+
}
|
|
44820
|
+
if (shouldUpdateExpand &&
|
|
44821
|
+
["multiple", "none", "single", "single-persist"].includes(this.selectionMode)) {
|
|
44822
|
+
target.expanded = !target.expanded;
|
|
44823
|
+
}
|
|
44824
|
+
if (shouldDeselectAllChildren) {
|
|
44825
|
+
childItems.forEach((item) => {
|
|
44826
|
+
item.selected = false;
|
|
44827
|
+
if (item.hasChildren) {
|
|
44828
|
+
item.expanded = false;
|
|
44652
44829
|
}
|
|
44653
|
-
|
|
44654
|
-
|
|
44830
|
+
});
|
|
44831
|
+
}
|
|
44832
|
+
if (shouldModifyToCurrentSelection) {
|
|
44833
|
+
window.getSelection().removeAllRanges();
|
|
44834
|
+
}
|
|
44835
|
+
if (shouldModifyToCurrentSelection && target.selected) {
|
|
44836
|
+
targetItems.forEach((treeItem) => {
|
|
44837
|
+
if (!treeItem.disabled) {
|
|
44838
|
+
treeItem.selected = false;
|
|
44655
44839
|
}
|
|
44656
|
-
}
|
|
44657
|
-
|
|
44658
|
-
|
|
44659
|
-
|
|
44660
|
-
|
|
44661
|
-
|
|
44662
|
-
|
|
44663
|
-
|
|
44664
|
-
}
|
|
44665
|
-
if (shouldModifyToCurrentSelection) {
|
|
44666
|
-
window.getSelection().removeAllRanges();
|
|
44667
|
-
}
|
|
44668
|
-
if ((shouldModifyToCurrentSelection && target.selected) || event.detail.forceToggle) {
|
|
44669
|
-
targetItems.forEach((treeItem) => {
|
|
44670
|
-
if (!treeItem.disabled) {
|
|
44671
|
-
treeItem.selected = false;
|
|
44672
|
-
}
|
|
44673
|
-
});
|
|
44674
|
-
}
|
|
44675
|
-
else if (!isNoneSelectionMode) {
|
|
44676
|
-
targetItems.forEach((treeItem) => {
|
|
44677
|
-
if (!treeItem.disabled) {
|
|
44678
|
-
treeItem.selected = true;
|
|
44679
|
-
}
|
|
44680
|
-
});
|
|
44681
|
-
}
|
|
44840
|
+
});
|
|
44841
|
+
}
|
|
44842
|
+
else if (!isNoneSelectionMode) {
|
|
44843
|
+
targetItems.forEach((treeItem) => {
|
|
44844
|
+
if (!treeItem.disabled) {
|
|
44845
|
+
treeItem.selected = true;
|
|
44846
|
+
}
|
|
44847
|
+
});
|
|
44682
44848
|
}
|
|
44683
44849
|
this.selectedItems = isNoneSelectionMode
|
|
44684
|
-
? [
|
|
44850
|
+
? []
|
|
44685
44851
|
: nodeListToArray(this.el.querySelectorAll("calcite-tree-item")).filter((i) => i.selected);
|
|
44686
44852
|
this.calciteTreeSelect.emit();
|
|
44687
44853
|
event.stopPropagation();
|
|
@@ -44768,7 +44934,7 @@ class Tree {
|
|
|
44768
44934
|
"selectionMode": [1537, "selection-mode"],
|
|
44769
44935
|
"selectedItems": [1040]
|
|
44770
44936
|
},
|
|
44771
|
-
"$listeners$": [[0, "focus", "onFocus"], [0, "focusin", "onFocusIn"], [0, "focusout", "onFocusOut"], [0, "calciteInternalTreeItemSelect", "
|
|
44937
|
+
"$listeners$": [[0, "focus", "onFocus"], [0, "focusin", "onFocusIn"], [0, "focusout", "onFocusOut"], [0, "calciteInternalTreeItemSelect", "onInternalTreeItemSelect"]],
|
|
44772
44938
|
"$lazyBundleId$": "-",
|
|
44773
44939
|
"$attrsToReflect$": [["lines", "lines"], ["child", "child"], ["scale", "scale"], ["selectionMode", "selection-mode"]]
|
|
44774
44940
|
}; }
|
|
@@ -44798,7 +44964,7 @@ const ICONS$1 = {
|
|
|
44798
44964
|
blank: "blank",
|
|
44799
44965
|
};
|
|
44800
44966
|
|
|
44801
|
-
const treeItemCss = "/*!@:host([disabled])*/[disabled].sc-calcite-tree-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-tree-item-h *.sc-calcite-tree-item,.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-tree-item-h{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-ui-text-3)}/*!@.node-actions-container*/.node-actions-container.sc-calcite-tree-item{display:flex}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-tree-item-h{visibility:hidden !important;pointer-events:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-tree-item-h [calcite-hydrated][disabled].sc-calcite-tree-item{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .node-actions-container*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:1.5rem}/*!@:host([scale=s]) .node-actions-container .node-container .checkbox,\n:host([scale=s]) .node-actions-container .node-container .chevron,\n:host([scale=s]) .node-actions-container .node-container .checkmark,\n:host([scale=s]) .node-actions-container .node-container .bullet-point*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.25rem}/*!@:host([scale=s]) .node-actions-container .node-container .icon-start*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .node-actions-container*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2rem}/*!@:host([scale=m]) .node-actions-container .node-container .checkbox,\n:host([scale=m]) .node-actions-container .node-container .chevron,\n:host([scale=m]) .node-actions-container .node-container .checkmark,\n:host([scale=m]) .node-actions-container .node-container .bullet-point*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.5rem}/*!@:host([scale=m]) .node-actions-container .node-container .icon-start*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tree-item-h{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .node-actions-container*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .checkbox,\n:host([scale=l]) .node-actions-container .node-container .chevron,\n:host([scale=l]) .node-actions-container .node-container .checkmark,\n:host([scale=l]) .node-actions-container .node-container .bullet-point*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .icon-start*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([lines]) .children-container:after*/[lines].sc-calcite-tree-item-h .children-container.sc-calcite-tree-item:after{position:absolute;inset-block-start:0px;z-index:var(--calcite-app-z-index);inline-size:1px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:96%;content:\"\";background-color:var(--calcite-ui-border-2)}/*!@:host(:not([lines])) .node-container:after*/.sc-calcite-tree-item-h:not([lines]) .node-container.sc-calcite-tree-item:after{display:none}/*!@::slotted(*)*/.sc-calcite-tree-item-s>*{min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}/*!@::slotted(*):hover*/.sc-calcite-tree-item-s>*:hover{text-decoration:none !important}/*!@::slotted(a)*/.sc-calcite-tree-item-s>a{inline-size:100%;text-decoration-line:none}/*!@:host*/.sc-calcite-tree-item-h{outline:2px solid transparent;outline-offset:2px}/*!@:host .node-container*/.sc-calcite-tree-item-h .node-container.sc-calcite-tree-item{outline-color:transparent}/*!@:host:focus .node-container, :host:active .node-container*/.sc-calcite-tree-item-h:focus .node-container.sc-calcite-tree-item,.sc-calcite-tree-item-h:active .node-container.sc-calcite-tree-item{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host(:focus:not([disabled])) .node-container*/.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.actions-end*/.actions-end.sc-calcite-tree-item{display:flex;flex-direction:row;align-items:center;align-self:stretch}/*!@.checkbox*/.checkbox.sc-calcite-tree-item{line-height:0}/*!@.checkbox-label*/.checkbox-label.sc-calcite-tree-item{pointer-events:none;display:flex;align-items:center}/*!@.checkbox:focus*/.checkbox.sc-calcite-tree-item:focus{outline:2px solid transparent;outline-offset:2px}/*!@.children-container*/.children-container.sc-calcite-tree-item{position:relative;block-size:0px;transform-origin:top;overflow:hidden;opacity:0;margin-inline-start:1.25rem;transform:scaleY(0);transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@.item--expanded > .children-container*/.item--expanded.sc-calcite-tree-item>.children-container.sc-calcite-tree-item{overflow:visible;opacity:1;transform:none;block-size:auto}/*!@.node-container*/.node-container.sc-calcite-tree-item{position:relative;display:flex;min-inline-size:0px;flex-grow:1;align-items:center}/*!@.node-container .checkmark,\n.node-container .bullet-point*/.node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-1)}/*!@.node-container:hover .checkmark,\n.node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host(:focus:not([disabled])) .node-container .checkmark,\n:host(:focus:not([disabled])) .node-container .bullet-point*/.node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:1}/*!@:host([selected]) .node-container,\n:host([selected]) .node-container:hover*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([selected]) .node-container .bullet-point,\n:host([selected]) .node-container .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item{opacity:1;color:var(--calcite-ui-brand)}/*!@:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container.sc-calcite-tree-item{padding-inline-start:0.5rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container.sc-calcite-tree-item{padding-inline-start:1rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.25rem}/*!@:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.75rem}/*!@:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox*/[has-children].sc-calcite-tree-item-h .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{margin-inline-start:0}/*!@:host([has-children]) .node-container .bullet-point,\n:host([has-children]) .node-container .checkmark*/[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item{display:none}/*!@:host([has-children][expanded]:not([selected]):not([selection-mode=none])) .node-container ::slotted(*)*/.sc-calcite-tree-item-h[has-children][expanded]:not([selected]):not([selection-mode=none]) .node-container .sc-calcite-tree-item-s>*{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([has-children][selected]) .node-container[data-selection-mode=children], :host([has-children][selected]) .node-container[data-selection-mode=multichildren]*/[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=children].sc-calcite-tree-item,[has-children][selected].sc-calcite-tree-item-h .node-container[data-selection-mode=multichildren].sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@.chevron*/.chevron.sc-calcite-tree-item{position:relative;align-self:center;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;flex:0 0 auto;transform:rotate(0deg)}/*!@.calcite--rtl .chevron*/.calcite--rtl.sc-calcite-tree-item .chevron.sc-calcite-tree-item{transform:rotate(180deg)}/*!@.item--expanded .node-container > .chevron*/.item--expanded.sc-calcite-tree-item .node-container.sc-calcite-tree-item>.chevron.sc-calcite-tree-item{transform:rotate(90deg)}/*!@:host([selected]) .checkmark,\n:host([selected]) .bullet-point*/[selected].sc-calcite-tree-item-h .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .bullet-point.sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@:host([hidden])*/[hidden].sc-calcite-tree-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-tree-item{display:none}";
|
|
44967
|
+
const treeItemCss = "/*!@:host([disabled])*/[disabled].sc-calcite-tree-item-h{cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host([disabled]) *,\n:host([disabled]) ::slotted(*)*/[disabled].sc-calcite-tree-item-h *.sc-calcite-tree-item,.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>*{pointer-events:none}/*!@:host*/.sc-calcite-tree-item-h{display:block;max-inline-size:100%;cursor:pointer;color:var(--calcite-ui-text-3)}/*!@.node-actions-container*/.node-actions-container.sc-calcite-tree-item{display:flex}/*!@:host([calcite-hydrated-hidden])*/[calcite-hydrated-hidden].sc-calcite-tree-item-h{visibility:hidden !important;pointer-events:none}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-tree-item-h[disabled] .sc-calcite-tree-item-s>[calcite-hydrated][disabled],[disabled].sc-calcite-tree-item-h [calcite-hydrated][disabled].sc-calcite-tree-item{opacity:1}/*!@:host([scale=s])*/[scale=s].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--2);line-height:1rem}/*!@:host([scale=s]) .node-actions-container*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:1.5rem}/*!@:host([scale=s]) .node-actions-container .node-container .checkbox,\n:host([scale=s]) .node-actions-container .node-container .chevron,\n:host([scale=s]) .node-actions-container .node-container .checkmark,\n:host([scale=s]) .node-actions-container .node-container .bullet-point*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.25rem}/*!@:host([scale=s]) .node-actions-container .node-container .icon-start*/[scale=s].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=m])*/[scale=m].sc-calcite-tree-item-h{font-size:var(--calcite-font-size--1);line-height:1rem}/*!@:host([scale=m]) .node-actions-container*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2rem}/*!@:host([scale=m]) .node-actions-container .node-container .checkbox,\n:host([scale=m]) .node-actions-container .node-container .chevron,\n:host([scale=m]) .node-actions-container .node-container .checkmark,\n:host([scale=m]) .node-actions-container .node-container .bullet-point*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.5rem}/*!@:host([scale=m]) .node-actions-container .node-container .icon-start*/[scale=m].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l])*/[scale=l].sc-calcite-tree-item-h{font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host([scale=l]) .node-actions-container*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item{min-block-size:2.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .checkbox,\n:host([scale=l]) .node-actions-container .node-container .chevron,\n:host([scale=l]) .node-actions-container .node-container .checkmark,\n:host([scale=l]) .node-actions-container .node-container .bullet-point*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkbox.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .chevron.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([scale=l]) .node-actions-container .node-container .icon-start*/[scale=l].sc-calcite-tree-item-h .node-actions-container.sc-calcite-tree-item .node-container.sc-calcite-tree-item .icon-start.sc-calcite-tree-item{margin-inline:0.75rem}/*!@:host([lines]) .children-container:after*/[lines].sc-calcite-tree-item-h .children-container.sc-calcite-tree-item:after{position:absolute;inset-block-start:0px;z-index:var(--calcite-app-z-index);inline-size:1px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;block-size:96%;content:\"\";background-color:var(--calcite-ui-border-2)}/*!@:host(:not([lines])) .node-container:after*/.sc-calcite-tree-item-h:not([lines]) .node-container.sc-calcite-tree-item:after{display:none}/*!@::slotted(*)*/.sc-calcite-tree-item-s>*{min-inline-size:0px;max-inline-size:100%;overflow-wrap:break-word;color:inherit;text-decoration:none !important}/*!@::slotted(*):hover*/.sc-calcite-tree-item-s>*:hover{text-decoration:none !important}/*!@::slotted(a)*/.sc-calcite-tree-item-s>a{inline-size:100%;text-decoration-line:none}/*!@:host*/.sc-calcite-tree-item-h{outline:2px solid transparent;outline-offset:2px}/*!@:host .node-container*/.sc-calcite-tree-item-h .node-container.sc-calcite-tree-item{outline-color:transparent}/*!@:host:focus .node-container, :host:active .node-container*/.sc-calcite-tree-item-h:focus .node-container.sc-calcite-tree-item,.sc-calcite-tree-item-h:active .node-container.sc-calcite-tree-item{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@:host(:focus:not([disabled])) .node-container*/.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item{outline:2px solid transparent;outline-offset:2px;outline:2px solid var(--calcite-ui-focus-color, var(--calcite-ui-brand));outline-offset:calc(\n -2px *\n calc(\n 1 -\n 2 * clamp(\n 0,\n var(--calcite-ui-focus-offset-invert),\n 1\n )\n )\n )}/*!@.actions-end*/.actions-end.sc-calcite-tree-item{display:flex;flex-direction:row;align-items:center;align-self:stretch}/*!@.checkbox*/.checkbox.sc-calcite-tree-item{line-height:0}/*!@.checkbox-label*/.checkbox-label.sc-calcite-tree-item{pointer-events:none;display:flex;align-items:center}/*!@.checkbox:focus*/.checkbox.sc-calcite-tree-item:focus{outline:2px solid transparent;outline-offset:2px}/*!@.children-container*/.children-container.sc-calcite-tree-item{position:relative;block-size:0px;transform-origin:top;overflow:hidden;opacity:0;margin-inline-start:1.25rem;transform:scaleY(0);transition:var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-animation-timing) cubic-bezier(0.215, 0.44, 0.42, 0.88), all var(--calcite-animation-timing) ease-in-out}/*!@.item--expanded > .children-container*/.item--expanded.sc-calcite-tree-item>.children-container.sc-calcite-tree-item{overflow:visible;opacity:1;transform:none;block-size:auto}/*!@.node-container*/.node-container.sc-calcite-tree-item{position:relative;display:flex;min-inline-size:0px;flex-grow:1;align-items:center}/*!@.node-container .checkmark,\n.node-container .bullet-point*/.node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:0;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;color:var(--calcite-ui-border-1)}/*!@.node-container:hover .checkmark,\n.node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host(:focus:not([disabled])) .node-container .checkmark,\n:host(:focus:not([disabled])) .node-container .bullet-point*/.node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,.node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,.sc-calcite-tree-item-h:focus:not([disabled]) .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item{opacity:1}/*!@:host([selected]) .node-container,\n:host([selected]) .node-container:hover*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1)}/*!@:host([selected]) .node-container .bullet-point,\n:host([selected]) .node-container .checkmark,\n:host([selected]) .node-container:hover .bullet-point,\n:host([selected]) .node-container:hover .checkmark*/[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .bullet-point.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item:hover .checkmark.sc-calcite-tree-item{opacity:1;color:var(--calcite-ui-brand)}/*!@:host([selection-mode=none]:not([has-children])):host([scale=s]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container.sc-calcite-tree-item{padding-inline-start:0.5rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=m]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container.sc-calcite-tree-item{padding-inline-start:1rem}/*!@:host([selection-mode=none]:not([has-children])):host([scale=l]) .node-container*/[selection-mode=none].sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=s]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=s]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.25rem}/*!@:host(:not([has-children])):host([scale=m]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=m]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.5rem}/*!@:host(:not([has-children])):host([scale=l]) .node-container[data-selection-mode=ancestors] .checkbox*/.sc-calcite-tree-item-h:not([has-children]).sc-calcite-tree-item-h([scale=l]) .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{padding-inline-start:1.75rem}/*!@:host([has-children]) .node-container[data-selection-mode=ancestors] .checkbox*/[has-children].sc-calcite-tree-item-h .node-container[data-selection-mode=ancestors].sc-calcite-tree-item .checkbox.sc-calcite-tree-item{margin-inline-start:0}/*!@:host([has-children]) .node-container .bullet-point,\n:host([has-children]) .node-container .checkmark*/[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .bullet-point.sc-calcite-tree-item,[has-children].sc-calcite-tree-item-h .node-container.sc-calcite-tree-item .checkmark.sc-calcite-tree-item{display:none}/*!@.chevron*/.chevron.sc-calcite-tree-item{position:relative;align-self:center;color:var(--calcite-ui-text-3);transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;flex:0 0 auto;transform:rotate(0deg)}/*!@.calcite--rtl .chevron*/.calcite--rtl.sc-calcite-tree-item .chevron.sc-calcite-tree-item{transform:rotate(180deg)}/*!@.item--expanded .node-container > .chevron*/.item--expanded.sc-calcite-tree-item .node-container.sc-calcite-tree-item>.chevron.sc-calcite-tree-item{transform:rotate(90deg)}/*!@:host([selected]) .checkmark,\n:host([selected]) .bullet-point*/[selected].sc-calcite-tree-item-h .checkmark.sc-calcite-tree-item,[selected].sc-calcite-tree-item-h .bullet-point.sc-calcite-tree-item{color:var(--calcite-ui-brand)}/*!@:host([hidden])*/[hidden].sc-calcite-tree-item-h{display:none}/*!@[hidden]*/[hidden].sc-calcite-tree-item{display:none}";
|
|
44802
44968
|
|
|
44803
44969
|
/**
|
|
44804
44970
|
* @slot - A slot for adding text.
|
|
@@ -44850,7 +45016,6 @@ class TreeItem {
|
|
|
44850
45016
|
}
|
|
44851
45017
|
this.calciteInternalTreeItemSelect.emit({
|
|
44852
45018
|
modifyCurrentSelection: true,
|
|
44853
|
-
forceToggle: false,
|
|
44854
45019
|
updateItem: false,
|
|
44855
45020
|
});
|
|
44856
45021
|
}
|
|
@@ -44965,32 +45130,24 @@ class TreeItem {
|
|
|
44965
45130
|
}
|
|
44966
45131
|
this.calciteInternalTreeItemSelect.emit({
|
|
44967
45132
|
modifyCurrentSelection: this.selectionMode === "ancestors" || this.isSelectionMultiLike,
|
|
44968
|
-
forceToggle: false,
|
|
44969
45133
|
updateItem: true,
|
|
44970
45134
|
});
|
|
44971
45135
|
this.userChangedValue = true;
|
|
44972
45136
|
}
|
|
44973
45137
|
keyDownHandler(event) {
|
|
44974
|
-
if (this.isActionEndEvent(event)) {
|
|
45138
|
+
if (this.isActionEndEvent(event) || event.defaultPrevented) {
|
|
44975
45139
|
return;
|
|
44976
45140
|
}
|
|
44977
45141
|
switch (event.key) {
|
|
44978
45142
|
case " ":
|
|
44979
|
-
if (this.selectionMode === "none") {
|
|
44980
|
-
return;
|
|
44981
|
-
}
|
|
44982
45143
|
this.userChangedValue = true;
|
|
44983
45144
|
this.calciteInternalTreeItemSelect.emit({
|
|
44984
45145
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
44985
|
-
forceToggle: false,
|
|
44986
45146
|
updateItem: true,
|
|
44987
45147
|
});
|
|
44988
45148
|
event.preventDefault();
|
|
44989
45149
|
break;
|
|
44990
45150
|
case "Enter":
|
|
44991
|
-
if (this.selectionMode === "none") {
|
|
44992
|
-
return;
|
|
44993
|
-
}
|
|
44994
45151
|
// activates a node, i.e., performs its default action. For parent nodes, one possible default action is to open or close the node. In single-select trees where selection does not follow focus (see note below), the default action is typically to select the focused node.
|
|
44995
45152
|
const link = Array.from(this.el.children).find((el) => el.matches("a"));
|
|
44996
45153
|
this.userChangedValue = true;
|
|
@@ -45001,7 +45158,6 @@ class TreeItem {
|
|
|
45001
45158
|
else {
|
|
45002
45159
|
this.calciteInternalTreeItemSelect.emit({
|
|
45003
45160
|
modifyCurrentSelection: this.isSelectionMultiLike,
|
|
45004
|
-
forceToggle: false,
|
|
45005
45161
|
updateItem: true,
|
|
45006
45162
|
});
|
|
45007
45163
|
}
|
|
@@ -45698,6 +45854,9 @@ var locale$M = {
|
|
|
45698
45854
|
months: months$5,
|
|
45699
45855
|
monthsShort: months$5,
|
|
45700
45856
|
weekStart: 6,
|
|
45857
|
+
meridiem: function meridiem(hour) {
|
|
45858
|
+
return hour > 12 ? 'م' : 'ص';
|
|
45859
|
+
},
|
|
45701
45860
|
relativeTime: {
|
|
45702
45861
|
future: 'بعد %s',
|
|
45703
45862
|
past: 'منذ %s',
|
|
@@ -45885,7 +46044,7 @@ function plural$4(n) {
|
|
|
45885
46044
|
/* eslint-disable */
|
|
45886
46045
|
|
|
45887
46046
|
|
|
45888
|
-
function translate$
|
|
46047
|
+
function translate$3(number, withoutSuffix, key, isFuture) {
|
|
45889
46048
|
var result = number + " ";
|
|
45890
46049
|
|
|
45891
46050
|
switch (key) {
|
|
@@ -45981,17 +46140,17 @@ var locale$I = {
|
|
|
45981
46140
|
relativeTime: {
|
|
45982
46141
|
future: 'za %s',
|
|
45983
46142
|
past: 'před %s',
|
|
45984
|
-
s: translate$
|
|
45985
|
-
m: translate$
|
|
45986
|
-
mm: translate$
|
|
45987
|
-
h: translate$
|
|
45988
|
-
hh: translate$
|
|
45989
|
-
d: translate$
|
|
45990
|
-
dd: translate$
|
|
45991
|
-
M: translate$
|
|
45992
|
-
MM: translate$
|
|
45993
|
-
y: translate$
|
|
45994
|
-
yy: translate$
|
|
46143
|
+
s: translate$3,
|
|
46144
|
+
m: translate$3,
|
|
46145
|
+
mm: translate$3,
|
|
46146
|
+
h: translate$3,
|
|
46147
|
+
hh: translate$3,
|
|
46148
|
+
d: translate$3,
|
|
46149
|
+
dd: translate$3,
|
|
46150
|
+
M: translate$3,
|
|
46151
|
+
MM: translate$3,
|
|
46152
|
+
y: translate$3,
|
|
46153
|
+
yy: translate$3
|
|
45995
46154
|
}
|
|
45996
46155
|
};
|
|
45997
46156
|
dayjs.locale(locale$I, null, true);
|
|
@@ -47187,7 +47346,7 @@ var locale$l = {
|
|
|
47187
47346
|
months: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
|
47188
47347
|
monthsShort: '1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월'.split('_'),
|
|
47189
47348
|
ordinal: function ordinal(n) {
|
|
47190
|
-
return n;
|
|
47349
|
+
return n + "\uC77C";
|
|
47191
47350
|
},
|
|
47192
47351
|
formats: {
|
|
47193
47352
|
LT: 'A h:mm',
|
|
@@ -47483,7 +47642,7 @@ function plural$3(n) {
|
|
|
47483
47642
|
/* eslint-disable */
|
|
47484
47643
|
|
|
47485
47644
|
|
|
47486
|
-
function translate$
|
|
47645
|
+
function translate$2(number, withoutSuffix, key) {
|
|
47487
47646
|
var result = number + " ";
|
|
47488
47647
|
|
|
47489
47648
|
switch (key) {
|
|
@@ -47539,16 +47698,16 @@ var locale$f = {
|
|
|
47539
47698
|
future: 'za %s',
|
|
47540
47699
|
past: '%s temu',
|
|
47541
47700
|
s: 'kilka sekund',
|
|
47542
|
-
m: translate$
|
|
47543
|
-
mm: translate$
|
|
47544
|
-
h: translate$
|
|
47545
|
-
hh: translate$
|
|
47701
|
+
m: translate$2,
|
|
47702
|
+
mm: translate$2,
|
|
47703
|
+
h: translate$2,
|
|
47704
|
+
hh: translate$2,
|
|
47546
47705
|
d: '1 dzień',
|
|
47547
47706
|
dd: '%d dni',
|
|
47548
47707
|
M: 'miesiąc',
|
|
47549
|
-
MM: translate$
|
|
47708
|
+
MM: translate$2,
|
|
47550
47709
|
y: 'rok',
|
|
47551
|
-
yy: translate$
|
|
47710
|
+
yy: translate$2
|
|
47552
47711
|
},
|
|
47553
47712
|
formats: {
|
|
47554
47713
|
LT: 'HH:mm',
|
|
@@ -47806,7 +47965,7 @@ function plural$1(n) {
|
|
|
47806
47965
|
/* eslint-disable */
|
|
47807
47966
|
|
|
47808
47967
|
|
|
47809
|
-
function translate(number, withoutSuffix, key, isFuture) {
|
|
47968
|
+
function translate$1(number, withoutSuffix, key, isFuture) {
|
|
47810
47969
|
var result = number + " ";
|
|
47811
47970
|
|
|
47812
47971
|
switch (key) {
|
|
@@ -47903,17 +48062,17 @@ var locale$a = {
|
|
|
47903
48062
|
future: 'za %s',
|
|
47904
48063
|
// Should be `o %s` (change when moment/moment#5408 is fixed)
|
|
47905
48064
|
past: 'pred %s',
|
|
47906
|
-
s: translate,
|
|
47907
|
-
m: translate,
|
|
47908
|
-
mm: translate,
|
|
47909
|
-
h: translate,
|
|
47910
|
-
hh: translate,
|
|
47911
|
-
d: translate,
|
|
47912
|
-
dd: translate,
|
|
47913
|
-
M: translate,
|
|
47914
|
-
MM: translate,
|
|
47915
|
-
y: translate,
|
|
47916
|
-
yy: translate
|
|
48065
|
+
s: translate$1,
|
|
48066
|
+
m: translate$1,
|
|
48067
|
+
mm: translate$1,
|
|
48068
|
+
h: translate$1,
|
|
48069
|
+
hh: translate$1,
|
|
48070
|
+
d: translate$1,
|
|
48071
|
+
dd: translate$1,
|
|
48072
|
+
M: translate$1,
|
|
48073
|
+
MM: translate$1,
|
|
48074
|
+
y: translate$1,
|
|
48075
|
+
yy: translate$1
|
|
47917
48076
|
}
|
|
47918
48077
|
};
|
|
47919
48078
|
dayjs.locale(locale$a, null, true);
|
|
@@ -47924,6 +48083,107 @@ var sk = /*#__PURE__*/Object.freeze({
|
|
|
47924
48083
|
});
|
|
47925
48084
|
|
|
47926
48085
|
// Slovenian [sl]
|
|
48086
|
+
|
|
48087
|
+
function dual(n) {
|
|
48088
|
+
return n % 100 == 2; // eslint-disable-line
|
|
48089
|
+
}
|
|
48090
|
+
|
|
48091
|
+
function threeFour(n) {
|
|
48092
|
+
return n % 100 == 3 || n % 100 == 4; // eslint-disable-line
|
|
48093
|
+
}
|
|
48094
|
+
/* eslint-disable */
|
|
48095
|
+
|
|
48096
|
+
|
|
48097
|
+
function translate(number, withoutSuffix, key, isFuture) {
|
|
48098
|
+
var result = number + " ";
|
|
48099
|
+
|
|
48100
|
+
switch (key) {
|
|
48101
|
+
case 's':
|
|
48102
|
+
// a few seconds / in a few seconds / a few seconds ago
|
|
48103
|
+
return withoutSuffix || isFuture ? 'nekaj sekund' : 'nekaj sekundami';
|
|
48104
|
+
|
|
48105
|
+
case 'm':
|
|
48106
|
+
// a minute / in a minute / a minute ago
|
|
48107
|
+
return withoutSuffix ? 'ena minuta' : 'eno minuto';
|
|
48108
|
+
|
|
48109
|
+
case 'mm':
|
|
48110
|
+
// 9 minutes / in 9 minutes / 9 minutes ago
|
|
48111
|
+
if (dual(number)) {
|
|
48112
|
+
return result + (withoutSuffix || isFuture ? 'minuti' : 'minutama');
|
|
48113
|
+
}
|
|
48114
|
+
|
|
48115
|
+
if (threeFour(number)) {
|
|
48116
|
+
return result + (withoutSuffix || isFuture ? 'minute' : 'minutami');
|
|
48117
|
+
}
|
|
48118
|
+
|
|
48119
|
+
return result + (withoutSuffix || isFuture ? 'minut' : 'minutami');
|
|
48120
|
+
|
|
48121
|
+
case 'h':
|
|
48122
|
+
// an hour / in an hour / an hour ago
|
|
48123
|
+
return withoutSuffix ? 'ena ura' : isFuture ? 'eno uro' : 'eno uro';
|
|
48124
|
+
|
|
48125
|
+
case 'hh':
|
|
48126
|
+
// 9 hours / in 9 hours / 9 hours ago
|
|
48127
|
+
if (dual(number)) {
|
|
48128
|
+
return result + (withoutSuffix || isFuture ? 'uri' : 'urama');
|
|
48129
|
+
}
|
|
48130
|
+
|
|
48131
|
+
if (threeFour(number)) {
|
|
48132
|
+
return result + (withoutSuffix || isFuture ? 'ure' : 'urami');
|
|
48133
|
+
}
|
|
48134
|
+
|
|
48135
|
+
return result + (withoutSuffix || isFuture ? 'ur' : 'urami');
|
|
48136
|
+
|
|
48137
|
+
case 'd':
|
|
48138
|
+
// a day / in a day / a day ago
|
|
48139
|
+
return withoutSuffix || isFuture ? 'en dan' : 'enim dnem';
|
|
48140
|
+
|
|
48141
|
+
case 'dd':
|
|
48142
|
+
// 9 days / in 9 days / 9 days ago
|
|
48143
|
+
if (dual(number)) {
|
|
48144
|
+
return result + (withoutSuffix || isFuture ? 'dneva' : 'dnevoma');
|
|
48145
|
+
}
|
|
48146
|
+
|
|
48147
|
+
return result + (withoutSuffix || isFuture ? 'dni' : 'dnevi');
|
|
48148
|
+
|
|
48149
|
+
case 'M':
|
|
48150
|
+
// a month / in a month / a month ago
|
|
48151
|
+
return withoutSuffix || isFuture ? 'en mesec' : 'enim mesecem';
|
|
48152
|
+
|
|
48153
|
+
case 'MM':
|
|
48154
|
+
// 9 months / in 9 months / 9 months ago
|
|
48155
|
+
if (dual(number)) {
|
|
48156
|
+
// 2 minutes / in 2 minutes
|
|
48157
|
+
return result + (withoutSuffix || isFuture ? 'meseca' : 'mesecema');
|
|
48158
|
+
}
|
|
48159
|
+
|
|
48160
|
+
if (threeFour(number)) {
|
|
48161
|
+
return result + (withoutSuffix || isFuture ? 'mesece' : 'meseci');
|
|
48162
|
+
}
|
|
48163
|
+
|
|
48164
|
+
return result + (withoutSuffix || isFuture ? 'mesecev' : 'meseci');
|
|
48165
|
+
|
|
48166
|
+
case 'y':
|
|
48167
|
+
// a year / in a year / a year ago
|
|
48168
|
+
return withoutSuffix || isFuture ? 'eno leto' : 'enim letom';
|
|
48169
|
+
|
|
48170
|
+
case 'yy':
|
|
48171
|
+
// 9 years / in 9 years / 9 years ago
|
|
48172
|
+
if (dual(number)) {
|
|
48173
|
+
// 2 minutes / in 2 minutes
|
|
48174
|
+
return result + (withoutSuffix || isFuture ? 'leti' : 'letoma');
|
|
48175
|
+
}
|
|
48176
|
+
|
|
48177
|
+
if (threeFour(number)) {
|
|
48178
|
+
return result + (withoutSuffix || isFuture ? 'leta' : 'leti');
|
|
48179
|
+
}
|
|
48180
|
+
|
|
48181
|
+
return result + (withoutSuffix || isFuture ? 'let' : 'leti');
|
|
48182
|
+
}
|
|
48183
|
+
}
|
|
48184
|
+
/* eslint-enable */
|
|
48185
|
+
|
|
48186
|
+
|
|
47927
48187
|
var locale$9 = {
|
|
47928
48188
|
name: 'sl',
|
|
47929
48189
|
weekdays: 'nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota'.split('_'),
|
|
@@ -47941,22 +48201,23 @@ var locale$9 = {
|
|
|
47941
48201
|
L: 'DD.MM.YYYY',
|
|
47942
48202
|
LL: 'D. MMMM YYYY',
|
|
47943
48203
|
LLL: 'D. MMMM YYYY H:mm',
|
|
47944
|
-
LLLL: 'dddd, D. MMMM YYYY H:mm'
|
|
48204
|
+
LLLL: 'dddd, D. MMMM YYYY H:mm',
|
|
48205
|
+
l: 'D. M. YYYY'
|
|
47945
48206
|
},
|
|
47946
48207
|
relativeTime: {
|
|
47947
48208
|
future: 'čez %s',
|
|
47948
48209
|
past: 'pred %s',
|
|
47949
|
-
s:
|
|
47950
|
-
m:
|
|
47951
|
-
mm:
|
|
47952
|
-
h:
|
|
47953
|
-
hh:
|
|
47954
|
-
d:
|
|
47955
|
-
dd:
|
|
47956
|
-
M:
|
|
47957
|
-
MM:
|
|
47958
|
-
y:
|
|
47959
|
-
yy:
|
|
48210
|
+
s: translate,
|
|
48211
|
+
m: translate,
|
|
48212
|
+
mm: translate,
|
|
48213
|
+
h: translate,
|
|
48214
|
+
hh: translate,
|
|
48215
|
+
d: translate,
|
|
48216
|
+
dd: translate,
|
|
48217
|
+
M: translate,
|
|
48218
|
+
MM: translate,
|
|
48219
|
+
y: translate,
|
|
48220
|
+
yy: translate
|
|
47960
48221
|
}
|
|
47961
48222
|
};
|
|
47962
48223
|
dayjs.locale(locale$9, null, true);
|
|
@@ -48493,6 +48754,245 @@ var zhTw = /*#__PURE__*/Object.freeze({
|
|
|
48493
48754
|
'default': locale
|
|
48494
48755
|
});
|
|
48495
48756
|
|
|
48757
|
+
const supportedTimeZones = Intl.supportedValuesOf('timeZone');
|
|
48758
|
+
|
|
48759
|
+
const now = new Date();
|
|
48760
|
+
const startDate = now.toISOString();
|
|
48761
|
+
const daysInYear = 365;
|
|
48762
|
+
const groupDateRange = daysInYear;
|
|
48763
|
+
const defaultGroupingOptions = {
|
|
48764
|
+
startDate,
|
|
48765
|
+
groupDateRange,
|
|
48766
|
+
debug: false,
|
|
48767
|
+
};
|
|
48768
|
+
|
|
48769
|
+
/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-return */
|
|
48770
|
+
const continentAllowList = new Set([
|
|
48771
|
+
'Europe',
|
|
48772
|
+
'Asia',
|
|
48773
|
+
'America',
|
|
48774
|
+
'America/Argentina',
|
|
48775
|
+
'Africa',
|
|
48776
|
+
'Australia',
|
|
48777
|
+
'Pacific',
|
|
48778
|
+
'Atlantic',
|
|
48779
|
+
'Antarctica',
|
|
48780
|
+
'Arctic',
|
|
48781
|
+
'Indian',
|
|
48782
|
+
]);
|
|
48783
|
+
const _getDates = (startDate, numberDays, dateEngine) => {
|
|
48784
|
+
const dateArray = [];
|
|
48785
|
+
let date = dateEngine.create(startDate);
|
|
48786
|
+
for (let i = 0; i <= numberDays; i++) {
|
|
48787
|
+
date = dateEngine.increase(date);
|
|
48788
|
+
dateArray.push(dateEngine.formatToIsoDateString(date));
|
|
48789
|
+
}
|
|
48790
|
+
return dateArray;
|
|
48791
|
+
};
|
|
48792
|
+
const _extractContinent = (label) => {
|
|
48793
|
+
if (label.includes('Istanbul')) {
|
|
48794
|
+
return 'Europe';
|
|
48795
|
+
}
|
|
48796
|
+
const lastIndex = label.lastIndexOf('/');
|
|
48797
|
+
return lastIndex === -1 ? label : label.slice(0, lastIndex);
|
|
48798
|
+
};
|
|
48799
|
+
const _isRegularContinent = (continent) => continentAllowList.has(continent);
|
|
48800
|
+
const generateTimeZoneMetadata = (timeZoneItems, startDate, numberDays, dateEngine, debug = false) => {
|
|
48801
|
+
const processedDates = new Map();
|
|
48802
|
+
if (debug) {
|
|
48803
|
+
console.log(`Initializing data starting ${startDate} with ${numberDays} days in the future, comparing ${timeZoneItems.length} timezones`);
|
|
48804
|
+
}
|
|
48805
|
+
const theDates = _getDates(startDate, numberDays, dateEngine);
|
|
48806
|
+
return timeZoneItems.map((tzItem) => {
|
|
48807
|
+
const label = tzItem.label;
|
|
48808
|
+
const continent = _extractContinent(label);
|
|
48809
|
+
const dates = theDates.map((date) => {
|
|
48810
|
+
const key = `${date}-${label}`;
|
|
48811
|
+
let utc = processedDates.get(key);
|
|
48812
|
+
if (utc) {
|
|
48813
|
+
return utc;
|
|
48814
|
+
}
|
|
48815
|
+
utc = dateEngine.isoToTimeZone(date, label);
|
|
48816
|
+
processedDates.set(key, utc);
|
|
48817
|
+
return utc;
|
|
48818
|
+
});
|
|
48819
|
+
return {
|
|
48820
|
+
...tzItem,
|
|
48821
|
+
continent,
|
|
48822
|
+
isRegularContinent: _isRegularContinent(continent),
|
|
48823
|
+
dates,
|
|
48824
|
+
};
|
|
48825
|
+
});
|
|
48826
|
+
};
|
|
48827
|
+
const compareDateArrs = (array1, array2, dateEngine) => array1.length === array2.length &&
|
|
48828
|
+
array1.every((value, index) => dateEngine.same(value, array2[index]));
|
|
48829
|
+
const getGroupLabelTimeZoneIndices = (rawTZs, max = 5) => {
|
|
48830
|
+
const shrinkedTzs = rawTZs.filter(({ label }) => _isRegularContinent(_extractContinent(label)));
|
|
48831
|
+
rawTZs = shrinkedTzs.length === 0 ? [rawTZs[0]] : shrinkedTzs;
|
|
48832
|
+
const uniqueLabels = [...new Set(rawTZs.map((_tz, index) => index))];
|
|
48833
|
+
return equallyDistributedSampling(uniqueLabels, max);
|
|
48834
|
+
};
|
|
48835
|
+
function equallyDistributedSampling(items, maxItems = 5) {
|
|
48836
|
+
const totalItems = items.length;
|
|
48837
|
+
if (totalItems <= maxItems) {
|
|
48838
|
+
return items;
|
|
48839
|
+
}
|
|
48840
|
+
const numberItemsToSelect = Math.min(totalItems - 2, maxItems - 2);
|
|
48841
|
+
const stepSize = (totalItems - 1) / (numberItemsToSelect + 1);
|
|
48842
|
+
return [
|
|
48843
|
+
items[0],
|
|
48844
|
+
...Array.from({ length: numberItemsToSelect }, (_, i) => items[Math.round((i + 1) * stepSize)]),
|
|
48845
|
+
items[totalItems - 1],
|
|
48846
|
+
];
|
|
48847
|
+
}
|
|
48848
|
+
|
|
48849
|
+
async function groupTimeZones(options) {
|
|
48850
|
+
const { debug, groupDateRange, hooks, startDate, dateEngine } = {
|
|
48851
|
+
...defaultGroupingOptions,
|
|
48852
|
+
...options,
|
|
48853
|
+
};
|
|
48854
|
+
const grouping = [];
|
|
48855
|
+
if (!dateEngine) {
|
|
48856
|
+
throw new Error('dateEngine is required');
|
|
48857
|
+
}
|
|
48858
|
+
const timeZoneItems = supportedTimeZones.map((tz) => ({ label: tz }));
|
|
48859
|
+
hooks?.onBeforeTimeZoneMetadataCreate?.(timeZoneItems);
|
|
48860
|
+
const timeZoneMetadata = generateTimeZoneMetadata(timeZoneItems, startDate, groupDateRange, dateEngine, debug);
|
|
48861
|
+
hooks?.onTimeZoneMetadataCreate?.(timeZoneMetadata);
|
|
48862
|
+
// We traverse the mappedDB and see if we find matches by comparing each set
|
|
48863
|
+
// of transformed date for that specific TZ.
|
|
48864
|
+
for (const tzMetadatumI of timeZoneMetadata) {
|
|
48865
|
+
const { label, continent, dates } = tzMetadatumI;
|
|
48866
|
+
// ignore if we visited this element already
|
|
48867
|
+
if (tzMetadatumI.visited) {
|
|
48868
|
+
continue;
|
|
48869
|
+
}
|
|
48870
|
+
// Mark element as already visited
|
|
48871
|
+
tzMetadatumI.visited = true;
|
|
48872
|
+
// The grouped timezone that we want as a result
|
|
48873
|
+
const newGroup = {
|
|
48874
|
+
labelTzIndices: undefined,
|
|
48875
|
+
tzs: [{ label }],
|
|
48876
|
+
};
|
|
48877
|
+
hooks?.onGroupCreate?.(newGroup, tzMetadatumI);
|
|
48878
|
+
for (const tzMetadatumJ of timeZoneMetadata.filter((_) => !_.visited)) {
|
|
48879
|
+
const { label: labelJ, continent: continentJ, isRegularContinent: isRegularContinentJ, dates: datesJ, } = tzMetadatumJ;
|
|
48880
|
+
// We define a matching TZ by:
|
|
48881
|
+
// 1) if both continents match (avoid grouping Antarctica with anything else)
|
|
48882
|
+
// 2) if the transformed dates match in both TZs
|
|
48883
|
+
if ((continent === continentJ || !isRegularContinentJ) &&
|
|
48884
|
+
compareDateArrs(dates, datesJ, dateEngine)) {
|
|
48885
|
+
const tzItem = { label: labelJ };
|
|
48886
|
+
newGroup.tzs.push(tzItem);
|
|
48887
|
+
hooks?.onGroupTimeZoneAdd?.(newGroup, tzItem, tzMetadatumJ);
|
|
48888
|
+
// Mark element as already visited
|
|
48889
|
+
tzMetadatumJ.visited = true;
|
|
48890
|
+
}
|
|
48891
|
+
}
|
|
48892
|
+
grouping.push(newGroup);
|
|
48893
|
+
hooks?.onGroupAdd?.(newGroup);
|
|
48894
|
+
}
|
|
48895
|
+
// Now that we have a group, we want an easy way to find a fitting label for the group
|
|
48896
|
+
// which is defined as the list of the most-common 7 cities, shown in alphabetical order
|
|
48897
|
+
const finalGrouping = grouping
|
|
48898
|
+
.map((group) => {
|
|
48899
|
+
hooks?.onBeforeFinalGroupCreate?.(group);
|
|
48900
|
+
const finalGrouping = {
|
|
48901
|
+
labelTzIndices: getGroupLabelTimeZoneIndices(group.tzs, 7),
|
|
48902
|
+
tzs: group.tzs.map((_) => _.label).sort(),
|
|
48903
|
+
};
|
|
48904
|
+
hooks?.onFinalGroupCreate?.(finalGrouping, group);
|
|
48905
|
+
return finalGrouping;
|
|
48906
|
+
})
|
|
48907
|
+
.sort((a, b) => b.tzs.length - a.tzs.length);
|
|
48908
|
+
if (debug) {
|
|
48909
|
+
const missingTzs = supportedTimeZones
|
|
48910
|
+
.map((tz) => (finalGrouping.some((y) => y.tzs.includes(tz)) ? null : tz))
|
|
48911
|
+
.filter(Boolean);
|
|
48912
|
+
if (missingTzs.length > 0) {
|
|
48913
|
+
throw new Error(`There are ${missingTzs.length} missing timezones: ${missingTzs.toString()}`);
|
|
48914
|
+
}
|
|
48915
|
+
}
|
|
48916
|
+
return hooks?.onFinalGroupingCreate
|
|
48917
|
+
? hooks.onFinalGroupingCreate(finalGrouping)
|
|
48918
|
+
: finalGrouping;
|
|
48919
|
+
}
|
|
48920
|
+
|
|
48921
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
48922
|
+
__proto__: null,
|
|
48923
|
+
groupTimeZones: groupTimeZones
|
|
48924
|
+
});
|
|
48925
|
+
|
|
48926
|
+
class NativeDateEngine {
|
|
48927
|
+
_formatterCache = new Map();
|
|
48928
|
+
_commonDateTimeFormatterOptions = {
|
|
48929
|
+
year: 'numeric',
|
|
48930
|
+
month: '2-digit',
|
|
48931
|
+
day: '2-digit',
|
|
48932
|
+
timeZoneName: 'shortOffset',
|
|
48933
|
+
};
|
|
48934
|
+
get name() {
|
|
48935
|
+
return 'native';
|
|
48936
|
+
}
|
|
48937
|
+
create(date) {
|
|
48938
|
+
return new Date(date);
|
|
48939
|
+
}
|
|
48940
|
+
increase(date) {
|
|
48941
|
+
const oneDayInMs = 86400000;
|
|
48942
|
+
return new Date(date.getTime() + oneDayInMs);
|
|
48943
|
+
}
|
|
48944
|
+
formatToIsoDateString(date) {
|
|
48945
|
+
const year = date.getFullYear();
|
|
48946
|
+
const month = date.getMonth() + 1;
|
|
48947
|
+
const day = date.getDate();
|
|
48948
|
+
return `${year}-${month.toString().padStart(2, '0')}-${day
|
|
48949
|
+
.toString()
|
|
48950
|
+
.padStart(2, '0')}`;
|
|
48951
|
+
}
|
|
48952
|
+
isoToTimeZone(isoDate, tz) {
|
|
48953
|
+
const date = this._toDate(isoDate);
|
|
48954
|
+
const formatter = this._getFormatter(tz);
|
|
48955
|
+
const parts = formatter.formatToParts(date);
|
|
48956
|
+
const [month, day, year, offset] = parts
|
|
48957
|
+
.filter(({ type }) => type !== 'literal')
|
|
48958
|
+
.map(({ value }) => value);
|
|
48959
|
+
const tzOffset = this._getTimeZoneOffsetInMins(offset);
|
|
48960
|
+
return new Date(Date.UTC(Number(year), Number(month) - 1, Number(day), 0, -tzOffset));
|
|
48961
|
+
}
|
|
48962
|
+
same(date1, date2) {
|
|
48963
|
+
return date1.getTime() === date2.getTime();
|
|
48964
|
+
}
|
|
48965
|
+
_toDate(isoDate) {
|
|
48966
|
+
const dateParts = isoDate.split('-');
|
|
48967
|
+
const year = Number(dateParts[0]);
|
|
48968
|
+
const month = Number(dateParts[1]) - 1;
|
|
48969
|
+
const day = Number(dateParts[2]);
|
|
48970
|
+
return new Date(year, month, day);
|
|
48971
|
+
}
|
|
48972
|
+
_getFormatter(tz) {
|
|
48973
|
+
let formatter = this._formatterCache.get(tz);
|
|
48974
|
+
if (!formatter) {
|
|
48975
|
+
formatter = new Intl.DateTimeFormat('en-US', {
|
|
48976
|
+
timeZone: tz,
|
|
48977
|
+
...this._commonDateTimeFormatterOptions,
|
|
48978
|
+
});
|
|
48979
|
+
this._formatterCache.set(tz, formatter);
|
|
48980
|
+
}
|
|
48981
|
+
return formatter;
|
|
48982
|
+
}
|
|
48983
|
+
_getTimeZoneOffsetInMins(gmtTimeZone) {
|
|
48984
|
+
const [sign, ...hoursMinutes] = gmtTimeZone.slice(3);
|
|
48985
|
+
const [hours, minutes] = hoursMinutes.join('').split(':');
|
|
48986
|
+
const signMultiplier = sign === '+' ? 1 : -1;
|
|
48987
|
+
return signMultiplier * (Number(hours) * 60 + Number(minutes || 0));
|
|
48988
|
+
}
|
|
48989
|
+
}
|
|
48990
|
+
|
|
48991
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
48992
|
+
__proto__: null,
|
|
48993
|
+
DateEngine: NativeDateEngine
|
|
48994
|
+
});
|
|
48995
|
+
|
|
48496
48996
|
exports.hydrateApp = hydrateApp;
|
|
48497
48997
|
|
|
48498
48998
|
|