@esri/calcite-components 1.0.0-next.701 → 1.0.0-next.702
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/action/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/action/t9n/messages_ar.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_bg.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_bs.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_ca.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_cs.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_da.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_de.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_el.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_es.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_et.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_fi.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_fr.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_he.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_hr.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_hu.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_id.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_it.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_ja.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_ko.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_lt.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_lv.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_nl.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_no.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_pl.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_pt-BR.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_pt-PT.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_ro.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_ru.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_sk.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_sl.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_sr.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_sv.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_th.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_tr.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_uk.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_vi.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_zh-CN.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_zh-HK.json +2 -1
- package/dist/calcite/assets/action/t9n/messages_zh-TW.json +2 -1
- package/dist/calcite/assets/action-bar/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/action-group/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/action-pad/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/alert/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/block/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/block-section/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/button/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/card/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/chip/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/color-picker/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/color-picker/t9n/messages_ar.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_bg.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_bs.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_ca.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_cs.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_da.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_de.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_el.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_en.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_es.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_et.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_fi.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_fr.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_he.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_hr.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_hu.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_id.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_it.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_ja.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_ko.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_lt.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_lv.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_nl.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_no.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_pl.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_pt-BR.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_pt-PT.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_ro.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_ru.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_sk.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_sl.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_sr.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_sv.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_th.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_tr.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_uk.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_vi.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_zh-CN.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_zh-HK.json +1 -0
- package/dist/calcite/assets/color-picker/t9n/messages_zh-TW.json +1 -0
- package/dist/calcite/assets/combobox/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/date-picker/nls/ar.json +1 -1
- package/dist/calcite/assets/date-picker/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/filter/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/flow-item/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/flow-item/t9n/messages_ar.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_bg.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_bs.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_ca.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_cs.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_da.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_de.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_el.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_es.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_et.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_fi.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_fr.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_he.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_hr.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_hu.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_id.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_it.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_ja.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_ko.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_lt.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_lv.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_nl.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_no.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_pl.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_pt-BR.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_pt-PT.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_ro.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_ru.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_sk.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_sl.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_sr.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_sv.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_th.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_tr.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_uk.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_vi.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_zh-CN.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_zh-HK.json +3 -3
- package/dist/calcite/assets/flow-item/t9n/messages_zh-TW.json +3 -3
- package/dist/calcite/assets/inline-editable/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/input/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/input-number/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/input-text/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/modal/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/notice/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/pagination/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/panel/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/pick-list-item/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/popover/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/rating/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/scrim/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/shell-panel/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/time-picker/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/tip/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/tip-manager/t9n/index.d.ts +1 -1
- package/dist/calcite/assets/value-list/t9n/index.d.ts +1 -1
- package/dist/calcite/calcite.esm.js +2 -2
- package/dist/calcite/index.esm.js +1 -1
- package/dist/calcite/{p-6797f20d.entry.js → p-00afc72e.entry.js} +2 -2
- package/dist/calcite/p-038ffd98.entry.js +6 -0
- package/dist/calcite/{p-9f011f8d.entry.js → p-03affb1f.entry.js} +2 -2
- package/dist/calcite/{p-49dc220c.entry.js → p-04f33e06.entry.js} +2 -2
- package/dist/calcite/{p-5a629711.entry.js → p-0643a222.entry.js} +2 -2
- package/dist/calcite/p-08a2a0a3.js +10 -0
- package/dist/calcite/p-08af6c70.entry.js +6 -0
- package/dist/calcite/{p-57f000df.js → p-0995ff5c.js} +1 -1
- package/dist/calcite/{p-0edd106a.entry.js → p-09c2e3af.entry.js} +2 -2
- package/dist/calcite/{p-d1b98714.js → p-09f93be2.js} +1 -1
- package/dist/calcite/{p-3104babd.js → p-0e4780d7.js} +2 -2
- package/dist/calcite/{p-67cca07c.js → p-131fedd0.js} +1 -1
- package/dist/calcite/{p-56d947c2.js → p-14afd90f.js} +1 -1
- package/dist/calcite/p-155b8150.js +6 -0
- package/dist/calcite/{p-f0b71dd5.js → p-15975845.js} +2 -2
- package/dist/calcite/{p-c194138d.entry.js → p-1c328c37.entry.js} +2 -2
- package/dist/calcite/{p-6dcd2ac7.js → p-1de5063e.js} +1 -1
- package/dist/calcite/{p-cc125a64.entry.js → p-1df68a88.entry.js} +2 -2
- package/dist/calcite/{p-15e97405.entry.js → p-258877a2.entry.js} +2 -2
- package/dist/calcite/p-25b959ab.entry.js +6 -0
- package/dist/calcite/{p-9146d4e6.entry.js → p-276a70de.entry.js} +2 -2
- package/dist/calcite/{p-3aa00c44.js → p-29904e44.js} +2 -2
- package/dist/calcite/p-2a62244a.entry.js +6 -0
- package/dist/calcite/{p-6d2284bd.js → p-3055866d.js} +2 -2
- package/dist/calcite/p-3a88d975.entry.js +6 -0
- package/dist/calcite/{p-5b429198.entry.js → p-3b99344c.entry.js} +2 -2
- package/dist/calcite/p-3cf89419.entry.js +6 -0
- package/dist/calcite/{p-c09d08aa.js → p-3ffa53b5.js} +2 -2
- package/dist/calcite/{p-fa90d662.entry.js → p-444dd465.entry.js} +2 -2
- package/dist/calcite/{p-55c42a43.js → p-44f85e3f.js} +1 -1
- package/dist/calcite/{p-8f299b72.js → p-455ba011.js} +1 -1
- package/dist/calcite/{p-1f61900c.entry.js → p-45e34c7e.entry.js} +2 -2
- package/dist/calcite/{p-cec32082.entry.js → p-46d054bb.entry.js} +2 -2
- package/dist/calcite/{p-e5fb489e.entry.js → p-4baf236a.entry.js} +2 -2
- package/dist/calcite/{p-774102da.js → p-4d180a60.js} +1 -1
- package/dist/calcite/{p-ceae5275.entry.js → p-50d43cad.entry.js} +2 -2
- package/dist/calcite/{p-9ab984c7.entry.js → p-5478f9f6.entry.js} +2 -2
- package/dist/calcite/{p-f354c74f.entry.js → p-5747784a.entry.js} +2 -2
- package/dist/calcite/p-5d03b5c2.entry.js +6 -0
- package/dist/calcite/{p-6de8e004.entry.js → p-5d506a9f.entry.js} +2 -2
- package/dist/calcite/{p-c677c640.entry.js → p-5f158a85.entry.js} +2 -2
- package/dist/calcite/{p-3c206ce2.entry.js → p-5fa846e8.entry.js} +2 -2
- package/dist/calcite/{p-d3282521.js → p-6278ef0c.js} +2 -2
- package/dist/calcite/{p-1948ac0c.js → p-650129bf.js} +1 -1
- package/dist/calcite/{p-71bcff0b.js → p-68d792f8.js} +1 -1
- package/dist/calcite/p-70b4f71d.js +6 -0
- package/dist/calcite/{p-87193101.js → p-74ee8396.js} +1 -1
- package/dist/calcite/{p-d564e315.entry.js → p-7e33d488.entry.js} +2 -2
- package/dist/calcite/{p-cd6a9b25.entry.js → p-7fc01add.entry.js} +2 -2
- package/dist/calcite/{p-138c1a94.entry.js → p-81261215.entry.js} +2 -2
- package/dist/calcite/p-87255f92.entry.js +6 -0
- package/dist/calcite/{p-2d05f043.entry.js → p-87e1d2c4.entry.js} +2 -2
- package/dist/calcite/{p-e430c444.entry.js → p-8a647669.entry.js} +2 -2
- package/dist/calcite/{p-368e5ab1.js → p-8ed698f1.js} +1 -1
- package/dist/calcite/{p-1cc60df2.entry.js → p-9057d48a.entry.js} +2 -2
- package/dist/calcite/{p-99fd9703.js → p-94d1ab82.js} +2 -2
- package/dist/calcite/{p-94050649.entry.js → p-9536ace3.entry.js} +2 -2
- package/dist/calcite/p-9a827321.entry.js +6 -0
- package/dist/calcite/p-9c01e157.entry.js +6 -0
- package/dist/calcite/{p-e3354663.entry.js → p-9d5c3896.entry.js} +2 -2
- package/dist/calcite/{p-87947f0c.js → p-9f347585.js} +1 -1
- package/dist/calcite/{p-c93dd3a2.js → p-9fab656c.js} +2 -2
- package/dist/calcite/p-a82bb0ad.entry.js +6 -0
- package/dist/calcite/{p-c3543e27.entry.js → p-b715dec3.entry.js} +2 -2
- package/dist/calcite/{p-975ca3db.entry.js → p-b8b66740.entry.js} +2 -2
- package/dist/calcite/{p-75fe119e.entry.js → p-bace456d.entry.js} +2 -2
- package/dist/calcite/{p-98dbe204.js → p-bbe97b11.js} +1 -1
- package/dist/calcite/{p-586d40cc.js → p-c0ad8bfc.js} +2 -2
- package/dist/calcite/{p-e68f2855.entry.js → p-c1326463.entry.js} +2 -2
- package/dist/calcite/{p-e4178928.js → p-c3bef4be.js} +2 -2
- package/dist/calcite/p-c858778e.entry.js +6 -0
- package/dist/calcite/{p-6ac5de4e.js → p-ce99e979.js} +1 -1
- package/dist/calcite/p-d9101232.entry.js +6 -0
- package/dist/calcite/{p-3fd30f57.entry.js → p-da257b46.entry.js} +2 -2
- package/dist/calcite/{p-5f181692.entry.js → p-e1b07bec.entry.js} +2 -2
- package/dist/calcite/{p-0cd456e2.js → p-e450127a.js} +2 -2
- package/dist/calcite/p-ec016afe.entry.js +6 -0
- package/dist/calcite/{p-482fb0cd.js → p-efa67668.js} +2 -2
- package/dist/calcite/{p-eaeeab40.entry.js → p-f1eff1e1.entry.js} +2 -2
- package/dist/calcite/{p-10529174.entry.js → p-f22125c8.entry.js} +2 -2
- package/dist/calcite/{p-b71ea362.entry.js → p-f43fe740.entry.js} +2 -2
- package/dist/calcite/p-f4da6114.js +10 -0
- package/dist/calcite/{p-6ab801eb.entry.js → p-f5200ac8.entry.js} +2 -2
- package/dist/calcite/{p-1e1aaff1.entry.js → p-f605736c.entry.js} +2 -2
- package/dist/calcite/{p-0984428e.entry.js → p-f87d2ad1.entry.js} +2 -2
- package/dist/calcite/{p-3046e2c0.js → p-f899f474.js} +1 -1
- package/dist/calcite/{p-248a17c5.entry.js → p-f946f34d.entry.js} +2 -2
- package/dist/calcite/p-fca49121.entry.js +6 -0
- package/dist/calcite/{p-62b8d1a3.entry.js → p-fcfc8e6e.entry.js} +2 -2
- package/dist/calcite/{p-fda323fc.entry.js → p-ff7639ec.entry.js} +2 -2
- package/dist/calcite/{p-20b4e05c.entry.js → p-ff7f2520.entry.js} +2 -2
- package/dist/calcite/{p-70c32dff.entry.js → p-ffcbbbba.entry.js} +2 -2
- package/dist/cjs/{ExpandToggle-2174c31a.js → ExpandToggle-ad96108e.js} +5 -5
- package/dist/cjs/{Heading-ef45fd1e.js → Heading-6395d8b1.js} +2 -2
- package/dist/cjs/{app-globals-886d9991.js → app-globals-6390cd2a.js} +2 -2
- package/dist/cjs/{array-44b74ef2.js → array-a11ff3ac.js} +1 -1
- package/dist/cjs/calcite-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/calcite-action-bar.cjs.entry.js +15 -15
- package/dist/cjs/calcite-action-group.cjs.entry.js +12 -12
- package/dist/cjs/calcite-action-menu.cjs.entry.js +9 -9
- package/dist/cjs/calcite-action-pad.cjs.entry.js +14 -14
- package/dist/cjs/calcite-action.cjs.entry.js +11 -11
- package/dist/cjs/calcite-alert.cjs.entry.js +12 -12
- package/dist/cjs/calcite-avatar.cjs.entry.js +6 -6
- package/dist/cjs/calcite-block_2.cjs.entry.js +12 -12
- package/dist/cjs/calcite-button.cjs.entry.js +13 -13
- package/dist/cjs/calcite-card.cjs.entry.js +10 -10
- package/dist/cjs/calcite-checkbox.cjs.entry.js +10 -10
- package/dist/cjs/calcite-chip.cjs.entry.js +11 -11
- package/dist/cjs/calcite-color-picker_3.cjs.entry.js +14 -14
- package/dist/cjs/calcite-combobox_3.cjs.entry.js +20 -31
- package/dist/cjs/calcite-date-picker_4.cjs.entry.js +73 -77
- package/dist/cjs/calcite-dropdown_3.cjs.entry.js +12 -12
- package/dist/cjs/calcite-fab.cjs.entry.js +7 -7
- package/dist/cjs/calcite-filter.cjs.entry.js +13 -13
- package/dist/cjs/calcite-flow-item.cjs.entry.js +12 -12
- package/dist/cjs/calcite-flow.cjs.entry.js +3 -3
- package/dist/cjs/calcite-graph_2.cjs.entry.js +13 -13
- package/dist/cjs/calcite-handle.cjs.entry.js +6 -6
- package/dist/cjs/calcite-icon.cjs.entry.js +6 -6
- package/dist/cjs/calcite-inline-editable.cjs.entry.js +12 -12
- package/dist/cjs/calcite-input-date-picker.cjs.entry.js +16 -16
- 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 +13 -13
- package/dist/cjs/calcite-input-time-picker_2.cjs.entry.js +14 -14
- 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 +7 -7
- package/dist/cjs/calcite-list_3.cjs.entry.js +9 -9
- package/dist/cjs/calcite-loader.cjs.entry.js +3 -3
- package/dist/cjs/calcite-modal.cjs.entry.js +21 -21
- package/dist/cjs/calcite-notice.cjs.entry.js +12 -12
- package/dist/cjs/calcite-option_3.cjs.entry.js +10 -10
- package/dist/cjs/calcite-pagination.cjs.entry.js +9 -9
- package/dist/cjs/calcite-panel.cjs.entry.js +16 -35
- package/dist/cjs/calcite-pick-list_3.cjs.entry.js +16 -16
- package/dist/cjs/calcite-popover.cjs.entry.js +26 -35
- package/dist/cjs/calcite-progress.cjs.entry.js +2 -2
- package/dist/cjs/calcite-radio-button-group.cjs.entry.js +7 -4
- package/dist/cjs/calcite-radio-button.cjs.entry.js +10 -10
- package/dist/cjs/calcite-radio-group_2.cjs.entry.js +13 -12
- package/dist/cjs/calcite-rating.cjs.entry.js +13 -13
- package/dist/cjs/calcite-scrim.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 +5 -5
- package/dist/cjs/calcite-split-button.cjs.entry.js +3 -3
- package/dist/cjs/calcite-stepper_2.cjs.entry.js +14 -15
- package/dist/cjs/calcite-switch.cjs.entry.js +10 -10
- package/dist/cjs/calcite-tab_4.cjs.entry.js +28 -28
- package/dist/cjs/calcite-tile-select_2.cjs.entry.js +5 -5
- package/dist/cjs/calcite-tile.cjs.entry.js +8 -8
- package/dist/cjs/calcite-tip_3.cjs.entry.js +11 -11
- package/dist/cjs/calcite-tooltip.cjs.entry.js +48 -70
- package/dist/cjs/calcite-tree_2.cjs.entry.js +8 -8
- package/dist/cjs/calcite-value-list_2.cjs.entry.js +16 -16
- package/dist/cjs/calcite.cjs.js +5 -5
- package/dist/cjs/{conditionalSlot-bd6d1eb6.js → conditionalSlot-f6070588.js} +3 -3
- package/dist/cjs/{debounce-daacada5.js → debounce-1dfbaddc.js} +1 -1
- package/dist/cjs/dom-c171a774.js +755 -0
- package/dist/cjs/{filter-5b8698dc.js → filter-ae18b0fc.js} +2 -2
- package/dist/cjs/{floating-ui-094c2905.js → floating-ui-6c4af6f9.js} +4 -4
- package/dist/cjs/{focusTrapComponent-105ae550.js → focusTrapComponent-d07bc8b9.js} +21 -474
- package/dist/cjs/{form-f27f0746.js → form-1ad5b459.js} +3 -3
- package/dist/cjs/{guid-63b5a6df.js → guid-be2b55bb.js} +1 -1
- package/dist/cjs/{index-2aa5e19f.js → index-ab60fe30.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{interactive-59b09e54.js → interactive-0bf45603.js} +1 -1
- package/dist/cjs/{key-25010560.js → key-d4b16f6e.js} +1 -1
- package/dist/cjs/{label-baa2d551.js → label-e0337647.js} +2 -2
- package/dist/cjs/{loadable-bc6e08ff.js → loadable-d0eb534b.js} +1 -1
- package/dist/cjs/loader.cjs.js +5 -5
- package/dist/cjs/{locale-0c2e5fb1.js → locale-d6be4a64.js} +4 -4
- package/dist/cjs/{math-d0744b62.js → math-867d8959.js} +1 -1
- package/dist/cjs/{nonChromiumPlatformUtils-3d308192.js → nonChromiumPlatformUtils-efab5da6.js} +6 -6
- package/dist/cjs/{observers-3f290051.js → observers-95f29589.js} +1 -1
- package/dist/cjs/{openCloseComponent-b90c9172.js → openCloseComponent-bdc5bbe7.js} +2 -2
- package/dist/cjs/{resources-563a3607.js → resources-09c59164.js} +1 -1
- package/dist/cjs/{resources-0e877a28.js → resources-10a70c95.js} +1 -1
- package/dist/cjs/{resources-621f255c.js → resources-1beb4322.js} +1 -1
- package/dist/cjs/{resources-696cc17a.js → resources-51b4dc3f.js} +1 -1
- package/dist/cjs/{resources-4d292fc5.js → resources-53358703.js} +1 -1
- package/dist/cjs/{resources-a3fa83d6.js → resources-684b6bdf.js} +5 -5
- package/dist/cjs/{sortable.esm-0f47ac04.js → sortable.esm-4d5b3abe.js} +1 -1
- package/dist/cjs/{t9n-4fad8a6d.js → t9n-ded232d9.js} +4 -28
- package/dist/cjs/{utils-01dcca7b.js → utils-93d6e6ae.js} +1 -1
- package/dist/cjs/{utils-efd85690.js → utils-bf8ba896.js} +3 -3
- package/dist/collection/components/accordion/accordion.js +2 -2
- 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 +5 -5
- package/dist/collection/components/action/assets/action/t9n/index.d.ts +1 -1
- package/dist/collection/components/action/assets/action/t9n/messages_ar.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_bg.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_bs.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_ca.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_cs.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_da.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_de.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_el.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_es.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_et.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_fi.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_fr.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_he.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_hr.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_hu.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_id.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_it.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_ja.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_ko.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_lt.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_lv.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_nl.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_no.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_pl.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_pt-BR.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_pt-PT.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_ro.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_ru.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_sk.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_sl.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_sr.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_sv.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_th.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_tr.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_uk.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_vi.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_zh-CN.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_zh-HK.json +2 -1
- package/dist/collection/components/action/assets/action/t9n/messages_zh-TW.json +2 -1
- package/dist/collection/components/action/resources.js +1 -1
- package/dist/collection/components/action-bar/action-bar.js +5 -5
- package/dist/collection/components/action-bar/assets/action-bar/t9n/index.d.ts +1 -1
- package/dist/collection/components/action-bar/resources.js +1 -1
- package/dist/collection/components/action-bar/utils.js +1 -1
- package/dist/collection/components/action-group/action-group.js +5 -5
- package/dist/collection/components/action-group/assets/action-group/t9n/index.d.ts +1 -1
- package/dist/collection/components/action-group/resources.js +1 -1
- package/dist/collection/components/action-menu/action-menu.js +1 -1
- package/dist/collection/components/action-menu/resources.js +1 -1
- package/dist/collection/components/action-pad/action-pad.js +5 -5
- package/dist/collection/components/action-pad/assets/action-pad/t9n/index.d.ts +1 -1
- package/dist/collection/components/action-pad/resources.js +1 -1
- package/dist/collection/components/alert/alert.js +5 -5
- package/dist/collection/components/alert/assets/alert/t9n/index.d.ts +1 -1
- package/dist/collection/components/alert/resources.js +1 -1
- package/dist/collection/components/avatar/avatar.js +1 -1
- package/dist/collection/components/avatar/utils.js +1 -1
- package/dist/collection/components/block/assets/block/t9n/index.d.ts +1 -1
- package/dist/collection/components/block/block.js +5 -5
- package/dist/collection/components/block/resources.js +1 -1
- package/dist/collection/components/block-section/assets/block-section/t9n/index.d.ts +1 -1
- package/dist/collection/components/block-section/block-section.js +5 -5
- package/dist/collection/components/block-section/resources.js +1 -1
- package/dist/collection/components/button/assets/button/t9n/index.d.ts +1 -1
- package/dist/collection/components/button/button.js +5 -5
- package/dist/collection/components/button/resources.js +1 -1
- package/dist/collection/components/card/assets/card/t9n/index.d.ts +1 -1
- package/dist/collection/components/card/card.js +5 -5
- package/dist/collection/components/card/resources.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/chip/assets/chip/t9n/index.d.ts +1 -1
- package/dist/collection/components/chip/chip.js +5 -5
- package/dist/collection/components/chip/resources.js +1 -1
- package/dist/collection/components/color-picker/assets/color-picker/t9n/index.d.ts +1 -1
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_ar.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_bg.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_bs.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_ca.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_cs.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_da.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_de.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_el.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_en.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_es.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_et.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_fi.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_fr.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_he.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_hr.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_hu.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_id.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_it.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_ja.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_ko.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_lt.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_lv.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_nl.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_no.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_pl.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_pt-BR.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_pt-PT.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_ro.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_ru.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_sk.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_sl.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_sr.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_sv.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_th.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_tr.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_uk.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_vi.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_zh-CN.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_zh-HK.json +1 -0
- package/dist/collection/components/color-picker/assets/color-picker/t9n/messages_zh-TW.json +1 -0
- package/dist/collection/components/color-picker/color-picker.js +5 -5
- 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/assets/combobox/t9n/index.d.ts +1 -1
- package/dist/collection/components/combobox/combobox.js +5 -5
- 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 +3 -43
- 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/assets/date-picker/nls/ar.json +1 -1
- package/dist/collection/components/date-picker/assets/date-picker/t9n/index.d.ts +1 -1
- package/dist/collection/components/date-picker/date-picker.js +67 -78
- 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 +3 -3
- package/dist/collection/components/date-picker-month-header/resources.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +1 -1
- package/dist/collection/components/dropdown/resources.js +1 -1
- package/dist/collection/components/dropdown-group/dropdown-group.js +1 -1
- package/dist/collection/components/dropdown-group/resources.js +1 -1
- package/dist/collection/components/dropdown-item/dropdown-item.js +1 -1
- package/dist/collection/components/dropdown-item/resources.js +1 -1
- package/dist/collection/components/fab/fab.js +1 -1
- package/dist/collection/components/fab/resources.js +1 -1
- package/dist/collection/components/filter/assets/filter/t9n/index.d.ts +1 -1
- package/dist/collection/components/filter/filter.js +5 -5
- 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/assets/flow-item/t9n/index.d.ts +1 -1
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_ar.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_bg.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_bs.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_ca.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_cs.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_da.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_de.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_el.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_es.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_et.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_fi.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_fr.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_he.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_hr.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_hu.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_id.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_it.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_ja.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_ko.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_lt.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_lv.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_nl.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_no.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_pl.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_pt-BR.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_pt-PT.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_ro.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_ru.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_sk.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_sl.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_sr.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_sv.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_th.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_tr.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_uk.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_vi.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_zh-CN.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_zh-HK.json +3 -3
- package/dist/collection/components/flow-item/assets/flow-item/t9n/messages_zh-TW.json +3 -3
- package/dist/collection/components/flow-item/flow-item.js +5 -5
- package/dist/collection/components/flow-item/resources.js +1 -1
- package/dist/collection/components/functional/ExpandToggle.js +1 -1
- package/dist/collection/components/functional/Heading.js +1 -1
- package/dist/collection/components/graph/graph.js +1 -1
- package/dist/collection/components/graph/util.js +1 -1
- package/dist/collection/components/handle/handle.js +1 -1
- package/dist/collection/components/handle/resources.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/icon/resources.js +1 -1
- package/dist/collection/components/icon/utils.js +1 -1
- package/dist/collection/components/inline-editable/assets/inline-editable/t9n/index.d.ts +1 -1
- package/dist/collection/components/inline-editable/inline-editable.js +5 -5
- package/dist/collection/components/inline-editable/resources.js +1 -1
- package/dist/collection/components/input/assets/input/t9n/index.d.ts +1 -1
- package/dist/collection/components/input/input.js +5 -5
- package/dist/collection/components/input/resources.js +1 -1
- package/dist/collection/components/input-date-picker/input-date-picker.js +3 -3
- package/dist/collection/components/input-date-picker/resources.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/assets/input-number/t9n/index.d.ts +1 -1
- package/dist/collection/components/input-number/input-number.js +5 -5
- package/dist/collection/components/input-number/resources.js +1 -1
- package/dist/collection/components/input-text/assets/input-text/t9n/index.d.ts +1 -1
- package/dist/collection/components/input-text/input-text.js +5 -5
- package/dist/collection/components/input-text/resources.js +1 -1
- package/dist/collection/components/input-time-picker/input-time-picker.js +3 -3
- package/dist/collection/components/label/label.js +1 -1
- package/dist/collection/components/label/resources.js +1 -1
- package/dist/collection/components/link/link.js +1 -1
- package/dist/collection/components/list/list.js +1 -1
- package/dist/collection/components/list/resources.js +1 -1
- package/dist/collection/components/list-item/list-item.js +1 -1
- package/dist/collection/components/list-item/resources.js +1 -1
- package/dist/collection/components/list-item/utils.js +1 -1
- package/dist/collection/components/list-item-group/list-item-group.js +1 -1
- package/dist/collection/components/list-item-group/resources.js +1 -1
- package/dist/collection/components/loader/loader.js +1 -1
- package/dist/collection/components/modal/assets/modal/t9n/index.d.ts +1 -1
- package/dist/collection/components/modal/modal.js +39 -29
- package/dist/collection/components/modal/resources.js +1 -1
- package/dist/collection/components/notice/assets/notice/t9n/index.d.ts +1 -1
- package/dist/collection/components/notice/notice.js +5 -5
- 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/assets/pagination/t9n/index.d.ts +1 -1
- package/dist/collection/components/pagination/pagination.js +5 -5
- package/dist/collection/components/pagination/resources.js +1 -1
- package/dist/collection/components/panel/assets/panel/t9n/index.d.ts +1 -1
- package/dist/collection/components/panel/panel.js +11 -39
- package/dist/collection/components/panel/resources.js +1 -1
- package/dist/collection/components/pick-list/pick-list.js +1 -1
- package/dist/collection/components/pick-list/resources.js +1 -1
- package/dist/collection/components/pick-list/shared-list-logic.js +1 -1
- package/dist/collection/components/pick-list/shared-list-render.js +1 -1
- package/dist/collection/components/pick-list-group/pick-list-group.js +1 -1
- package/dist/collection/components/pick-list-group/resources.js +1 -1
- package/dist/collection/components/pick-list-item/assets/pick-list-item/t9n/index.d.ts +1 -1
- package/dist/collection/components/pick-list-item/pick-list-item.js +5 -5
- package/dist/collection/components/pick-list-item/resources.js +1 -1
- package/dist/collection/components/popover/PopoverManager.js +4 -4
- package/dist/collection/components/popover/assets/popover/t9n/index.d.ts +1 -1
- package/dist/collection/components/popover/popover.js +23 -50
- 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 +30 -4
- package/dist/collection/components/radio-group/radio-group.css +4 -0
- package/dist/collection/components/radio-group/radio-group.js +3 -3
- package/dist/collection/components/radio-group-item/radio-group-item.css +9 -3
- package/dist/collection/components/radio-group-item/radio-group-item.js +3 -2
- package/dist/collection/components/radio-group-item/resources.js +1 -1
- package/dist/collection/components/rating/assets/rating/t9n/index.d.ts +1 -1
- package/dist/collection/components/rating/function/star.js +1 -1
- package/dist/collection/components/rating/rating.js +5 -5
- package/dist/collection/components/resources.js +1 -1
- package/dist/collection/components/scrim/assets/scrim/t9n/index.d.ts +1 -1
- package/dist/collection/components/scrim/resources.js +1 -1
- package/dist/collection/components/scrim/scrim.js +5 -5
- package/dist/collection/components/select/resources.js +1 -1
- package/dist/collection/components/select/select.js +1 -1
- package/dist/collection/components/shell/resources.js +1 -1
- package/dist/collection/components/shell/shell.js +2 -2
- 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/assets/shell-panel/t9n/index.d.ts +1 -1
- package/dist/collection/components/shell-panel/resources.js +1 -1
- package/dist/collection/components/shell-panel/shell-panel.js +5 -5
- 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/stepper/stepper.js +31 -14
- 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 +48 -26
- package/dist/collection/components/tab-title/tab-title.js +2 -2
- package/dist/collection/components/tabs/resources.js +1 -1
- package/dist/collection/components/tabs/tabs.js +2 -2
- 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/assets/time-picker/t9n/index.d.ts +1 -1
- package/dist/collection/components/time-picker/resources.js +1 -1
- package/dist/collection/components/time-picker/time-picker.css +5 -0
- package/dist/collection/components/time-picker/time-picker.js +5 -5
- package/dist/collection/components/tip/assets/tip/t9n/index.d.ts +1 -1
- package/dist/collection/components/tip/resources.js +1 -1
- package/dist/collection/components/tip/tip.js +5 -5
- package/dist/collection/components/tip-group/tip-group.js +1 -1
- package/dist/collection/components/tip-manager/assets/tip-manager/t9n/index.d.ts +1 -1
- package/dist/collection/components/tip-manager/resources.js +1 -1
- package/dist/collection/components/tip-manager/tip-manager.js +5 -5
- package/dist/collection/components/tooltip/TooltipManager.js +41 -63
- package/dist/collection/components/tooltip/resources.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tree/tree.js +2 -2
- package/dist/collection/components/tree/utils.js +1 -1
- package/dist/collection/components/tree-item/resources.js +1 -1
- package/dist/collection/components/tree-item/tree-item.js +2 -2
- package/dist/collection/components/value-list/assets/value-list/t9n/index.d.ts +1 -1
- package/dist/collection/components/value-list/resources.js +1 -1
- package/dist/collection/components/value-list/utils.js +1 -1
- package/dist/collection/components/value-list/value-list.js +5 -5
- 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/utils/array.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 +13 -8
- package/dist/collection/utils/filter.js +1 -1
- package/dist/collection/utils/floating-ui/nonChromiumPlatformUtils.js +1 -1
- package/dist/collection/utils/floating-ui.js +1 -1
- package/dist/collection/utils/focusTrapComponent.js +12 -8
- package/dist/collection/utils/form.js +1 -1
- package/dist/collection/utils/globalAttributes.js +1 -1
- package/dist/collection/utils/globalScript.js +1 -1
- package/dist/collection/utils/guid.js +1 -1
- package/dist/collection/utils/interactive.js +1 -1
- package/dist/collection/utils/key.js +1 -1
- package/dist/collection/utils/label.js +1 -1
- package/dist/collection/utils/loadable.js +1 -1
- package/dist/collection/utils/locale.js +1 -1
- package/dist/collection/utils/math.js +1 -1
- package/dist/collection/utils/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/t9n.js +2 -26
- package/dist/collection/utils/theme.js +1 -1
- package/dist/collection/utils/time.js +1 -1
- package/dist/components/ExpandToggle.js +1 -1
- package/dist/components/Heading.js +1 -1
- package/dist/components/action-group.js +1 -1
- package/dist/components/action-menu.js +1 -1
- package/dist/components/action.js +1 -1
- package/dist/components/array.js +1 -1
- package/dist/components/button.js +2 -2
- package/dist/components/calcite-accordion-item.js +1 -1
- package/dist/components/calcite-accordion.js +1 -1
- package/dist/components/calcite-action-bar.js +1 -1
- package/dist/components/calcite-action-group.js +1 -1
- package/dist/components/calcite-action-menu.js +1 -1
- package/dist/components/calcite-action-pad.js +1 -1
- package/dist/components/calcite-action.js +1 -1
- package/dist/components/calcite-alert.js +1 -1
- package/dist/components/calcite-avatar.js +1 -1
- package/dist/components/calcite-block-section.js +1 -1
- package/dist/components/calcite-block.js +1 -1
- package/dist/components/calcite-button.js +1 -1
- package/dist/components/calcite-card.js +1 -1
- package/dist/components/calcite-checkbox.js +1 -1
- package/dist/components/calcite-chip.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 +4 -16
- package/dist/components/calcite-combobox.js +1 -1
- package/dist/components/calcite-date-picker-day.js +1 -1
- package/dist/components/calcite-date-picker-month-header.js +1 -1
- package/dist/components/calcite-date-picker-month.js +1 -1
- package/dist/components/calcite-date-picker.js +1 -1
- package/dist/components/calcite-dropdown-group.js +1 -1
- package/dist/components/calcite-dropdown-item.js +1 -1
- package/dist/components/calcite-dropdown.js +1 -1
- package/dist/components/calcite-fab.js +1 -1
- package/dist/components/calcite-filter.js +1 -1
- package/dist/components/calcite-flow-item.js +1 -1
- package/dist/components/calcite-flow.js +1 -1
- package/dist/components/calcite-graph.js +1 -1
- package/dist/components/calcite-handle.js +1 -1
- package/dist/components/calcite-icon.js +1 -1
- package/dist/components/calcite-inline-editable.js +1 -1
- package/dist/components/calcite-input-date-picker.js +1 -1
- package/dist/components/calcite-input-message.js +1 -1
- package/dist/components/calcite-input-number.js +1 -1
- package/dist/components/calcite-input-text.js +1 -1
- package/dist/components/calcite-input-time-picker.js +1 -1
- package/dist/components/calcite-input.js +1 -1
- package/dist/components/calcite-label.js +1 -1
- package/dist/components/calcite-link.js +1 -1
- package/dist/components/calcite-list-item-group.js +1 -1
- package/dist/components/calcite-list-item.js +1 -1
- package/dist/components/calcite-list.js +1 -1
- package/dist/components/calcite-loader.js +1 -1
- package/dist/components/calcite-modal.js +12 -11
- 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 +6 -2
- package/dist/components/calcite-radio-button.js +1 -1
- package/dist/components/calcite-radio-group-item.js +4 -3
- package/dist/components/calcite-radio-group.js +2 -2
- package/dist/components/calcite-rating.js +1 -1
- package/dist/components/calcite-scrim.js +1 -1
- package/dist/components/calcite-select.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 +2 -2
- package/dist/components/calcite-slider.js +2 -2
- package/dist/components/calcite-sortable-list.js +1 -1
- package/dist/components/calcite-split-button.js +1 -1
- package/dist/components/calcite-stepper-item.js +1 -1
- package/dist/components/calcite-stepper.js +7 -7
- 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-tabs.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 +2 -2
- package/dist/components/calcite-tree.js +2 -2
- package/dist/components/calcite-value-list-item.js +1 -1
- package/dist/components/calcite-value-list.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/chip.js +1 -1
- package/dist/components/color-picker-hex-input.js +1 -1
- package/dist/components/color-picker-swatch.js +1 -1
- package/dist/components/conditionalSlot.js +1 -1
- package/dist/components/date-picker-day.js +2 -2
- package/dist/components/date-picker-month-header.js +2 -2
- package/dist/components/date-picker-month.js +1 -1
- package/dist/components/date-picker.js +62 -66
- package/dist/components/date.js +1 -1
- package/dist/components/debounce.js +1 -1
- package/dist/components/dom.js +470 -9
- package/dist/components/dropdown.js +2 -2
- package/dist/components/filter.js +1 -1
- package/dist/components/filter2.js +1 -1
- package/dist/components/floating-ui.js +2 -2
- package/dist/components/focusTrapComponent.js +13 -466
- package/dist/components/form.js +2 -2
- package/dist/components/graph.js +1 -1
- package/dist/components/guid.js +1 -1
- package/dist/components/handle.js +1 -1
- package/dist/components/icon.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/input.js +1 -1
- package/dist/components/interactive.js +1 -1
- package/dist/components/key.js +1 -1
- package/dist/components/label.js +1 -1
- package/dist/components/label2.js +2 -2
- package/dist/components/link.js +1 -1
- package/dist/components/loadable.js +1 -1
- package/dist/components/loader.js +1 -1
- package/dist/components/locale.js +2 -2
- package/dist/components/math.js +1 -1
- package/dist/components/nonChromiumPlatformUtils.js +1 -1
- package/dist/components/observers.js +1 -1
- package/dist/components/openCloseComponent.js +1 -1
- package/dist/components/panel.js +4 -23
- package/dist/components/pick-list-item.js +1 -1
- package/dist/components/popover.js +15 -24
- package/dist/components/progress.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/scrim.js +1 -1
- package/dist/components/shared-list-render.js +1 -1
- package/dist/components/sortable.esm.js +1 -1
- package/dist/components/switch.js +1 -1
- package/dist/components/t9n.js +2 -26
- package/dist/components/tab-nav.js +25 -25
- package/dist/components/tab-title.js +1 -1
- package/dist/components/tab.js +2 -2
- package/dist/components/tabs.js +1 -1
- package/dist/components/tile.js +1 -1
- package/dist/components/time-picker.js +2 -2
- package/dist/components/tooltip.js +42 -64
- package/dist/components/utils.js +1 -1
- package/dist/components/utils2.js +2 -2
- package/dist/esm/{ExpandToggle-36a402be.js → ExpandToggle-484ede7d.js} +5 -5
- package/dist/esm/{Heading-bd79826a.js → Heading-90b4a47e.js} +2 -2
- package/dist/esm/{app-globals-f90b96c0.js → app-globals-469bd94b.js} +2 -2
- package/dist/esm/{array-d999bef1.js → array-a371b415.js} +1 -1
- package/dist/esm/calcite-accordion_2.entry.js +7 -7
- package/dist/esm/calcite-action-bar.entry.js +15 -15
- package/dist/esm/calcite-action-group.entry.js +12 -12
- package/dist/esm/calcite-action-menu.entry.js +9 -9
- package/dist/esm/calcite-action-pad.entry.js +14 -14
- package/dist/esm/calcite-action.entry.js +11 -11
- package/dist/esm/calcite-alert.entry.js +12 -12
- package/dist/esm/calcite-avatar.entry.js +6 -6
- package/dist/esm/calcite-block_2.entry.js +12 -12
- package/dist/esm/calcite-button.entry.js +13 -13
- package/dist/esm/calcite-card.entry.js +10 -10
- package/dist/esm/calcite-checkbox.entry.js +10 -10
- package/dist/esm/calcite-chip.entry.js +11 -11
- package/dist/esm/calcite-color-picker_3.entry.js +14 -14
- package/dist/esm/calcite-combobox_3.entry.js +20 -31
- package/dist/esm/calcite-date-picker_4.entry.js +73 -77
- package/dist/esm/calcite-dropdown_3.entry.js +12 -12
- package/dist/esm/calcite-fab.entry.js +7 -7
- package/dist/esm/calcite-filter.entry.js +13 -13
- package/dist/esm/calcite-flow-item.entry.js +12 -12
- package/dist/esm/calcite-flow.entry.js +3 -3
- package/dist/esm/calcite-graph_2.entry.js +13 -13
- package/dist/esm/calcite-handle.entry.js +6 -6
- package/dist/esm/calcite-icon.entry.js +6 -6
- package/dist/esm/calcite-inline-editable.entry.js +12 -12
- package/dist/esm/calcite-input-date-picker.entry.js +16 -16
- 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 +13 -13
- package/dist/esm/calcite-input-time-picker_2.entry.js +14 -14
- 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 +7 -7
- package/dist/esm/calcite-list_3.entry.js +9 -9
- package/dist/esm/calcite-loader.entry.js +3 -3
- package/dist/esm/calcite-modal.entry.js +21 -21
- package/dist/esm/calcite-notice.entry.js +12 -12
- package/dist/esm/calcite-option_3.entry.js +10 -10
- package/dist/esm/calcite-pagination.entry.js +9 -9
- package/dist/esm/calcite-panel.entry.js +16 -35
- package/dist/esm/calcite-pick-list_3.entry.js +16 -16
- package/dist/esm/calcite-popover.entry.js +26 -35
- package/dist/esm/calcite-progress.entry.js +2 -2
- package/dist/esm/calcite-radio-button-group.entry.js +7 -4
- package/dist/esm/calcite-radio-button.entry.js +10 -10
- package/dist/esm/calcite-radio-group_2.entry.js +13 -12
- package/dist/esm/calcite-rating.entry.js +13 -13
- package/dist/esm/calcite-scrim.entry.js +9 -9
- package/dist/esm/calcite-shell_3.entry.js +11 -11
- package/dist/esm/calcite-sortable-list.entry.js +5 -5
- package/dist/esm/calcite-split-button.entry.js +3 -3
- package/dist/esm/calcite-stepper_2.entry.js +14 -15
- package/dist/esm/calcite-switch.entry.js +10 -10
- package/dist/esm/calcite-tab_4.entry.js +28 -28
- package/dist/esm/calcite-tile-select_2.entry.js +5 -5
- package/dist/esm/calcite-tile.entry.js +8 -8
- package/dist/esm/calcite-tip_3.entry.js +11 -11
- package/dist/esm/calcite-tooltip.entry.js +48 -70
- package/dist/esm/calcite-tree_2.entry.js +8 -8
- package/dist/esm/calcite-value-list_2.entry.js +16 -16
- package/dist/esm/calcite.js +5 -5
- package/dist/esm/{conditionalSlot-efc4e5ed.js → conditionalSlot-e57231c0.js} +3 -3
- package/dist/esm/{debounce-762a0b86.js → debounce-752519d2.js} +1 -1
- package/dist/esm/dom-a9ba459c.js +729 -0
- package/dist/esm/{filter-ab981ded.js → filter-580c893b.js} +2 -2
- package/dist/esm/{floating-ui-6264eee6.js → floating-ui-a6cb80ab.js} +4 -4
- package/dist/esm/{focusTrapComponent-46ea55eb.js → focusTrapComponent-7044677e.js} +13 -466
- package/dist/esm/{form-79b320dc.js → form-239ab500.js} +3 -3
- package/dist/esm/{guid-7da38bae.js → guid-1b3b1a75.js} +1 -1
- package/dist/esm/{index-0f87f5e6.js → index-306667e4.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{interactive-27fb7df1.js → interactive-25955d50.js} +1 -1
- package/dist/esm/{key-0786ea89.js → key-a0012884.js} +1 -1
- package/dist/esm/{label-a2b5a988.js → label-1a53b3e5.js} +2 -2
- package/dist/esm/{loadable-e74d33ce.js → loadable-4ca1f25f.js} +1 -1
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{locale-bf90c06c.js → locale-f3b45ca4.js} +4 -4
- package/dist/esm/{math-5a31686f.js → math-cb0c9a42.js} +1 -1
- package/dist/esm/{nonChromiumPlatformUtils-57d08a7e.js → nonChromiumPlatformUtils-97c67aed.js} +6 -6
- package/dist/esm/{observers-ebdba542.js → observers-944ea463.js} +1 -1
- package/dist/esm/{openCloseComponent-4c33d83d.js → openCloseComponent-0f72e798.js} +2 -2
- package/dist/esm/{resources-e17f52dd.js → resources-25ea993d.js} +1 -1
- package/dist/esm/{resources-56f34f72.js → resources-2988145f.js} +1 -1
- package/dist/esm/{resources-5cc0ab7e.js → resources-2dc287e4.js} +1 -1
- package/dist/esm/{resources-dbb93b2c.js → resources-5e48a8a1.js} +5 -5
- package/dist/esm/{resources-a23c60b2.js → resources-6fe56f3f.js} +1 -1
- package/dist/esm/{resources-a7399c5f.js → resources-ba1cce6d.js} +1 -1
- package/dist/esm/{sortable.esm-f6fb370b.js → sortable.esm-dddff7ed.js} +1 -1
- package/dist/esm/{t9n-5f2fd373.js → t9n-ef976e46.js} +4 -28
- package/dist/esm/{utils-75876bc1.js → utils-75acecf1.js} +1 -1
- package/dist/esm/{utils-596bdfea.js → utils-8eb026bf.js} +3 -3
- package/dist/extras/docs-json.json +109 -76
- package/dist/extras/vscode-data.json +6210 -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/action.d.ts +4 -4
- package/dist/types/components/action/assets/action/t9n/index.d.ts +1 -1
- package/dist/types/components/action-bar/action-bar.d.ts +4 -4
- package/dist/types/components/action-bar/assets/action-bar/t9n/index.d.ts +1 -1
- package/dist/types/components/action-group/action-group.d.ts +4 -4
- package/dist/types/components/action-group/assets/action-group/t9n/index.d.ts +1 -1
- package/dist/types/components/action-pad/action-pad.d.ts +4 -4
- package/dist/types/components/action-pad/assets/action-pad/t9n/index.d.ts +1 -1
- package/dist/types/components/alert/alert.d.ts +4 -4
- package/dist/types/components/alert/assets/alert/t9n/index.d.ts +1 -1
- package/dist/types/components/block/assets/block/t9n/index.d.ts +1 -1
- package/dist/types/components/block/block.d.ts +4 -4
- package/dist/types/components/block-section/assets/block-section/t9n/index.d.ts +1 -1
- package/dist/types/components/block-section/block-section.d.ts +4 -4
- package/dist/types/components/button/assets/button/t9n/index.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +4 -4
- package/dist/types/components/card/assets/card/t9n/index.d.ts +1 -1
- package/dist/types/components/card/card.d.ts +4 -4
- package/dist/types/components/chip/assets/chip/t9n/index.d.ts +1 -1
- package/dist/types/components/chip/chip.d.ts +4 -4
- package/dist/types/components/color-picker/assets/color-picker/t9n/index.d.ts +1 -1
- package/dist/types/components/color-picker/color-picker.d.ts +4 -4
- package/dist/types/components/combobox/assets/combobox/t9n/index.d.ts +1 -1
- package/dist/types/components/combobox/combobox.d.ts +4 -4
- package/dist/types/components/combobox-item/combobox-item.d.ts +0 -6
- package/dist/types/components/date-picker/assets/date-picker/t9n/index.d.ts +1 -1
- package/dist/types/components/date-picker/date-picker.d.ts +7 -22
- package/dist/types/components/date-picker-month-header/date-picker-month-header.d.ts +2 -2
- package/dist/types/components/filter/assets/filter/t9n/index.d.ts +1 -1
- package/dist/types/components/filter/filter.d.ts +4 -4
- package/dist/types/components/flow-item/assets/flow-item/t9n/index.d.ts +1 -1
- package/dist/types/components/flow-item/flow-item.d.ts +4 -4
- package/dist/types/components/inline-editable/assets/inline-editable/t9n/index.d.ts +1 -1
- package/dist/types/components/inline-editable/inline-editable.d.ts +4 -4
- package/dist/types/components/input/assets/input/t9n/index.d.ts +1 -1
- package/dist/types/components/input/input.d.ts +4 -4
- package/dist/types/components/input-date-picker/input-date-picker.d.ts +2 -2
- package/dist/types/components/input-number/assets/input-number/t9n/index.d.ts +1 -1
- package/dist/types/components/input-number/input-number.d.ts +4 -4
- package/dist/types/components/input-text/assets/input-text/t9n/index.d.ts +1 -1
- package/dist/types/components/input-text/input-text.d.ts +4 -4
- package/dist/types/components/input-time-picker/input-time-picker.d.ts +2 -2
- package/dist/types/components/interfaces.d.ts +1 -1
- package/dist/types/components/modal/assets/modal/t9n/index.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +10 -8
- package/dist/types/components/notice/assets/notice/t9n/index.d.ts +1 -1
- package/dist/types/components/notice/notice.d.ts +4 -4
- package/dist/types/components/pagination/assets/pagination/t9n/index.d.ts +1 -1
- package/dist/types/components/pagination/pagination.d.ts +4 -4
- package/dist/types/components/panel/assets/panel/t9n/index.d.ts +1 -1
- package/dist/types/components/panel/panel.d.ts +5 -7
- package/dist/types/components/pick-list-item/assets/pick-list-item/t9n/index.d.ts +1 -1
- package/dist/types/components/pick-list-item/pick-list-item.d.ts +4 -4
- package/dist/types/components/popover/assets/popover/t9n/index.d.ts +1 -1
- package/dist/types/components/popover/popover.d.ts +7 -11
- package/dist/types/components/radio-button-group/radio-button-group.d.ts +7 -1
- package/dist/types/components/radio-group/radio-group.d.ts +1 -1
- package/dist/types/components/rating/assets/rating/t9n/index.d.ts +1 -1
- package/dist/types/components/rating/rating.d.ts +4 -4
- package/dist/types/components/scrim/assets/scrim/t9n/index.d.ts +1 -1
- package/dist/types/components/scrim/scrim.d.ts +4 -4
- package/dist/types/components/shell/shell.d.ts +1 -1
- package/dist/types/components/shell-panel/assets/shell-panel/t9n/index.d.ts +1 -1
- package/dist/types/components/shell-panel/shell-panel.d.ts +4 -4
- package/dist/types/components/stepper/stepper.d.ts +8 -2
- package/dist/types/components/tab-nav/tab-nav.d.ts +11 -5
- package/dist/types/components/tab-title/tab-title.d.ts +1 -1
- package/dist/types/components/tabs/tabs.d.ts +1 -1
- package/dist/types/components/textarea/assets/textarea/t9n/index.d.ts +1 -1
- package/dist/types/components/time-picker/assets/time-picker/t9n/index.d.ts +1 -1
- package/dist/types/components/time-picker/time-picker.d.ts +4 -4
- package/dist/types/components/tip/assets/tip/t9n/index.d.ts +1 -1
- package/dist/types/components/tip/tip.d.ts +4 -4
- package/dist/types/components/tip-manager/assets/tip-manager/t9n/index.d.ts +1 -1
- package/dist/types/components/tip-manager/tip-manager.d.ts +4 -4
- package/dist/types/components/tooltip/TooltipManager.d.ts +9 -12
- package/dist/types/components/value-list/assets/value-list/t9n/index.d.ts +1 -1
- package/dist/types/components/value-list/value-list.d.ts +4 -4
- package/dist/types/components.d.ts +181 -157
- package/dist/types/utils/dom.d.ts +16 -5
- package/dist/types/utils/focusTrapComponent.d.ts +13 -2
- package/dist/types/utils/t9n.d.ts +1 -15
- package/hydrate/index.js +651 -727
- package/package.json +5 -5
- package/readme.md +2 -2
- package/dist/calcite/p-0739e426.entry.js +0 -6
- package/dist/calcite/p-21d72cf3.entry.js +0 -6
- package/dist/calcite/p-3a33a597.entry.js +0 -6
- package/dist/calcite/p-3af1f2f0.entry.js +0 -6
- package/dist/calcite/p-4e0be07f.entry.js +0 -6
- package/dist/calcite/p-56c5e3f8.entry.js +0 -6
- package/dist/calcite/p-68c9c41c.js +0 -6
- package/dist/calcite/p-6cc0acdc.js +0 -6
- package/dist/calcite/p-7a3f078e.entry.js +0 -6
- package/dist/calcite/p-83a0d09c.entry.js +0 -6
- package/dist/calcite/p-853b3b0d.entry.js +0 -6
- package/dist/calcite/p-8f5765a1.entry.js +0 -6
- package/dist/calcite/p-a0db68d4.entry.js +0 -6
- package/dist/calcite/p-b3520919.js +0 -15
- package/dist/calcite/p-b5de51c7.entry.js +0 -6
- package/dist/calcite/p-caafbe1b.entry.js +0 -6
- package/dist/calcite/p-d0ca460e.js +0 -6
- package/dist/calcite/p-dd9244b7.entry.js +0 -6
- package/dist/calcite/p-f3bbe371.entry.js +0 -6
- package/dist/cjs/dom-a6b0f30a.js +0 -288
- package/dist/esm/dom-b76f7307.js +0 -268
- package/dist/types/components/date-picker/interfaces.d.ts +0 -5
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-components/blob/master/LICENSE.md for details.
|
|
4
|
-
* v1.0.0-next.
|
|
4
|
+
* v1.0.0-next.702
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
@@ -5936,6 +5936,466 @@ function gen(counts) {
|
|
|
5936
5936
|
}
|
|
5937
5937
|
const guid = () => gen([2, 1, 1, 1, 3]);
|
|
5938
5938
|
|
|
5939
|
+
/*!
|
|
5940
|
+
* tabbable 6.0.1
|
|
5941
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
5942
|
+
*/
|
|
5943
|
+
var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
|
|
5944
|
+
var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
|
|
5945
|
+
var NoElement = typeof Element === 'undefined';
|
|
5946
|
+
var matches$1 = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
5947
|
+
var getRootNode$1 = !NoElement && Element.prototype.getRootNode ? function (element) {
|
|
5948
|
+
return element.getRootNode();
|
|
5949
|
+
} : function (element) {
|
|
5950
|
+
return element.ownerDocument;
|
|
5951
|
+
};
|
|
5952
|
+
|
|
5953
|
+
/**
|
|
5954
|
+
* @param {Element} el container to check in
|
|
5955
|
+
* @param {boolean} includeContainer add container to check
|
|
5956
|
+
* @param {(node: Element) => boolean} filter filter candidates
|
|
5957
|
+
* @returns {Element[]}
|
|
5958
|
+
*/
|
|
5959
|
+
var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
5960
|
+
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
5961
|
+
if (includeContainer && matches$1.call(el, candidateSelector)) {
|
|
5962
|
+
candidates.unshift(el);
|
|
5963
|
+
}
|
|
5964
|
+
candidates = candidates.filter(filter);
|
|
5965
|
+
return candidates;
|
|
5966
|
+
};
|
|
5967
|
+
|
|
5968
|
+
/**
|
|
5969
|
+
* @callback GetShadowRoot
|
|
5970
|
+
* @param {Element} element to check for shadow root
|
|
5971
|
+
* @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
|
|
5972
|
+
*/
|
|
5973
|
+
|
|
5974
|
+
/**
|
|
5975
|
+
* @callback ShadowRootFilter
|
|
5976
|
+
* @param {Element} shadowHostNode the element which contains shadow content
|
|
5977
|
+
* @returns {boolean} true if a shadow root could potentially contain valid candidates.
|
|
5978
|
+
*/
|
|
5979
|
+
|
|
5980
|
+
/**
|
|
5981
|
+
* @typedef {Object} CandidateScope
|
|
5982
|
+
* @property {Element} scopeParent contains inner candidates
|
|
5983
|
+
* @property {Element[]} candidates list of candidates found in the scope parent
|
|
5984
|
+
*/
|
|
5985
|
+
|
|
5986
|
+
/**
|
|
5987
|
+
* @typedef {Object} IterativeOptions
|
|
5988
|
+
* @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
|
|
5989
|
+
* if a function, implies shadow support is enabled and either returns the shadow root of an element
|
|
5990
|
+
* or a boolean stating if it has an undisclosed shadow root
|
|
5991
|
+
* @property {(node: Element) => boolean} filter filter candidates
|
|
5992
|
+
* @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
|
|
5993
|
+
* @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
|
|
5994
|
+
*/
|
|
5995
|
+
|
|
5996
|
+
/**
|
|
5997
|
+
* @param {Element[]} elements list of element containers to match candidates from
|
|
5998
|
+
* @param {boolean} includeContainer add container list to check
|
|
5999
|
+
* @param {IterativeOptions} options
|
|
6000
|
+
* @returns {Array.<Element|CandidateScope>}
|
|
6001
|
+
*/
|
|
6002
|
+
var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
6003
|
+
var candidates = [];
|
|
6004
|
+
var elementsToCheck = Array.from(elements);
|
|
6005
|
+
while (elementsToCheck.length) {
|
|
6006
|
+
var element = elementsToCheck.shift();
|
|
6007
|
+
if (element.tagName === 'SLOT') {
|
|
6008
|
+
// add shadow dom slot scope (slot itself cannot be focusable)
|
|
6009
|
+
var assigned = element.assignedElements();
|
|
6010
|
+
var content = assigned.length ? assigned : element.children;
|
|
6011
|
+
var nestedCandidates = getCandidatesIteratively(content, true, options);
|
|
6012
|
+
if (options.flatten) {
|
|
6013
|
+
candidates.push.apply(candidates, nestedCandidates);
|
|
6014
|
+
} else {
|
|
6015
|
+
candidates.push({
|
|
6016
|
+
scopeParent: element,
|
|
6017
|
+
candidates: nestedCandidates
|
|
6018
|
+
});
|
|
6019
|
+
}
|
|
6020
|
+
} else {
|
|
6021
|
+
// check candidate element
|
|
6022
|
+
var validCandidate = matches$1.call(element, candidateSelector);
|
|
6023
|
+
if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
|
|
6024
|
+
candidates.push(element);
|
|
6025
|
+
}
|
|
6026
|
+
|
|
6027
|
+
// iterate over shadow content if possible
|
|
6028
|
+
var shadowRoot = element.shadowRoot ||
|
|
6029
|
+
// check for an undisclosed shadow
|
|
6030
|
+
typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
|
|
6031
|
+
var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);
|
|
6032
|
+
if (shadowRoot && validShadowRoot) {
|
|
6033
|
+
// add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
|
|
6034
|
+
// shadow exists, so look at light dom children as fallback BUT create a scope for any
|
|
6035
|
+
// child candidates found because they're likely slotted elements (elements that are
|
|
6036
|
+
// children of the web component element (which has the shadow), in the light dom, but
|
|
6037
|
+
// slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
|
|
6038
|
+
// _after_ we return from this recursive call
|
|
6039
|
+
var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
6040
|
+
if (options.flatten) {
|
|
6041
|
+
candidates.push.apply(candidates, _nestedCandidates);
|
|
6042
|
+
} else {
|
|
6043
|
+
candidates.push({
|
|
6044
|
+
scopeParent: element,
|
|
6045
|
+
candidates: _nestedCandidates
|
|
6046
|
+
});
|
|
6047
|
+
}
|
|
6048
|
+
} else {
|
|
6049
|
+
// there's not shadow so just dig into the element's (light dom) children
|
|
6050
|
+
// __without__ giving the element special scope treatment
|
|
6051
|
+
elementsToCheck.unshift.apply(elementsToCheck, element.children);
|
|
6052
|
+
}
|
|
6053
|
+
}
|
|
6054
|
+
}
|
|
6055
|
+
return candidates;
|
|
6056
|
+
};
|
|
6057
|
+
var getTabindex = function getTabindex(node, isScope) {
|
|
6058
|
+
if (node.tabIndex < 0) {
|
|
6059
|
+
// in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
|
|
6060
|
+
// `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
|
|
6061
|
+
// yet they are still part of the regular tab order; in FF, they get a default
|
|
6062
|
+
// `tabIndex` of 0; since Chrome still puts those elements in the regular tab
|
|
6063
|
+
// order, consider their tab index to be 0.
|
|
6064
|
+
// Also browsers do not return `tabIndex` correctly for contentEditable nodes;
|
|
6065
|
+
// so if they don't have a tabindex attribute specifically set, assume it's 0.
|
|
6066
|
+
//
|
|
6067
|
+
// isScope is positive for custom element with shadow root or slot that by default
|
|
6068
|
+
// have tabIndex -1, but need to be sorted by document order in order for their
|
|
6069
|
+
// content to be inserted in the correct position
|
|
6070
|
+
if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
|
|
6071
|
+
return 0;
|
|
6072
|
+
}
|
|
6073
|
+
}
|
|
6074
|
+
return node.tabIndex;
|
|
6075
|
+
};
|
|
6076
|
+
var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
|
|
6077
|
+
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
6078
|
+
};
|
|
6079
|
+
var isInput = function isInput(node) {
|
|
6080
|
+
return node.tagName === 'INPUT';
|
|
6081
|
+
};
|
|
6082
|
+
var isHiddenInput = function isHiddenInput(node) {
|
|
6083
|
+
return isInput(node) && node.type === 'hidden';
|
|
6084
|
+
};
|
|
6085
|
+
var isDetailsWithSummary = function isDetailsWithSummary(node) {
|
|
6086
|
+
var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
|
|
6087
|
+
return child.tagName === 'SUMMARY';
|
|
6088
|
+
});
|
|
6089
|
+
return r;
|
|
6090
|
+
};
|
|
6091
|
+
var getCheckedRadio = function getCheckedRadio(nodes, form) {
|
|
6092
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
6093
|
+
if (nodes[i].checked && nodes[i].form === form) {
|
|
6094
|
+
return nodes[i];
|
|
6095
|
+
}
|
|
6096
|
+
}
|
|
6097
|
+
};
|
|
6098
|
+
var isTabbableRadio = function isTabbableRadio(node) {
|
|
6099
|
+
if (!node.name) {
|
|
6100
|
+
return true;
|
|
6101
|
+
}
|
|
6102
|
+
var radioScope = node.form || getRootNode$1(node);
|
|
6103
|
+
var queryRadios = function queryRadios(name) {
|
|
6104
|
+
return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
|
|
6105
|
+
};
|
|
6106
|
+
var radioSet;
|
|
6107
|
+
if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
|
|
6108
|
+
radioSet = queryRadios(window.CSS.escape(node.name));
|
|
6109
|
+
} else {
|
|
6110
|
+
try {
|
|
6111
|
+
radioSet = queryRadios(node.name);
|
|
6112
|
+
} catch (err) {
|
|
6113
|
+
// eslint-disable-next-line no-console
|
|
6114
|
+
console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
|
|
6115
|
+
return false;
|
|
6116
|
+
}
|
|
6117
|
+
}
|
|
6118
|
+
var checked = getCheckedRadio(radioSet, node.form);
|
|
6119
|
+
return !checked || checked === node;
|
|
6120
|
+
};
|
|
6121
|
+
var isRadio = function isRadio(node) {
|
|
6122
|
+
return isInput(node) && node.type === 'radio';
|
|
6123
|
+
};
|
|
6124
|
+
var isNonTabbableRadio = function isNonTabbableRadio(node) {
|
|
6125
|
+
return isRadio(node) && !isTabbableRadio(node);
|
|
6126
|
+
};
|
|
6127
|
+
|
|
6128
|
+
// determines if a node is ultimately attached to the window's document
|
|
6129
|
+
var isNodeAttached = function isNodeAttached(node) {
|
|
6130
|
+
var _nodeRootHost;
|
|
6131
|
+
// The root node is the shadow root if the node is in a shadow DOM; some document otherwise
|
|
6132
|
+
// (but NOT _the_ document; see second 'If' comment below for more).
|
|
6133
|
+
// If rootNode is shadow root, it'll have a host, which is the element to which the shadow
|
|
6134
|
+
// is attached, and the one we need to check if it's in the document or not (because the
|
|
6135
|
+
// shadow, and all nodes it contains, is never considered in the document since shadows
|
|
6136
|
+
// behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
|
|
6137
|
+
// is hidden, or is not in the document itself but is detached, it will affect the shadow's
|
|
6138
|
+
// visibility, including all the nodes it contains). The host could be any normal node,
|
|
6139
|
+
// or a custom element (i.e. web component). Either way, that's the one that is considered
|
|
6140
|
+
// part of the document, not the shadow root, nor any of its children (i.e. the node being
|
|
6141
|
+
// tested).
|
|
6142
|
+
// To further complicate things, we have to look all the way up until we find a shadow HOST
|
|
6143
|
+
// that is attached (or find none) because the node might be in nested shadows...
|
|
6144
|
+
// If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
|
|
6145
|
+
// document (per the docs) and while it's a Document-type object, that document does not
|
|
6146
|
+
// appear to be the same as the node's `ownerDocument` for some reason, so it's safer
|
|
6147
|
+
// to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
|
|
6148
|
+
// using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
|
|
6149
|
+
// node is actually detached.
|
|
6150
|
+
var nodeRootHost = getRootNode$1(node).host;
|
|
6151
|
+
var attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && _nodeRootHost.ownerDocument.contains(nodeRootHost) || node.ownerDocument.contains(node));
|
|
6152
|
+
while (!attached && nodeRootHost) {
|
|
6153
|
+
var _nodeRootHost2;
|
|
6154
|
+
// since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
|
|
6155
|
+
// which means we need to get the host's host and check if that parent host is contained
|
|
6156
|
+
// in (i.e. attached to) the document
|
|
6157
|
+
nodeRootHost = getRootNode$1(nodeRootHost).host;
|
|
6158
|
+
attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && _nodeRootHost2.ownerDocument.contains(nodeRootHost));
|
|
6159
|
+
}
|
|
6160
|
+
return attached;
|
|
6161
|
+
};
|
|
6162
|
+
var isZeroArea = function isZeroArea(node) {
|
|
6163
|
+
var _node$getBoundingClie = node.getBoundingClientRect(),
|
|
6164
|
+
width = _node$getBoundingClie.width,
|
|
6165
|
+
height = _node$getBoundingClie.height;
|
|
6166
|
+
return width === 0 && height === 0;
|
|
6167
|
+
};
|
|
6168
|
+
var isHidden = function isHidden(node, _ref) {
|
|
6169
|
+
var displayCheck = _ref.displayCheck,
|
|
6170
|
+
getShadowRoot = _ref.getShadowRoot;
|
|
6171
|
+
// NOTE: visibility will be `undefined` if node is detached from the document
|
|
6172
|
+
// (see notes about this further down), which means we will consider it visible
|
|
6173
|
+
// (this is legacy behavior from a very long way back)
|
|
6174
|
+
// NOTE: we check this regardless of `displayCheck="none"` because this is a
|
|
6175
|
+
// _visibility_ check, not a _display_ check
|
|
6176
|
+
if (getComputedStyle(node).visibility === 'hidden') {
|
|
6177
|
+
return true;
|
|
6178
|
+
}
|
|
6179
|
+
var isDirectSummary = matches$1.call(node, 'details>summary:first-of-type');
|
|
6180
|
+
var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
|
|
6181
|
+
if (matches$1.call(nodeUnderDetails, 'details:not([open]) *')) {
|
|
6182
|
+
return true;
|
|
6183
|
+
}
|
|
6184
|
+
if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
|
|
6185
|
+
if (typeof getShadowRoot === 'function') {
|
|
6186
|
+
// figure out if we should consider the node to be in an undisclosed shadow and use the
|
|
6187
|
+
// 'non-zero-area' fallback
|
|
6188
|
+
var originalNode = node;
|
|
6189
|
+
while (node) {
|
|
6190
|
+
var parentElement = node.parentElement;
|
|
6191
|
+
var rootNode = getRootNode$1(node);
|
|
6192
|
+
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
|
|
6193
|
+
) {
|
|
6194
|
+
// node has an undisclosed shadow which means we can only treat it as a black box, so we
|
|
6195
|
+
// fall back to a non-zero-area test
|
|
6196
|
+
return isZeroArea(node);
|
|
6197
|
+
} else if (node.assignedSlot) {
|
|
6198
|
+
// iterate up slot
|
|
6199
|
+
node = node.assignedSlot;
|
|
6200
|
+
} else if (!parentElement && rootNode !== node.ownerDocument) {
|
|
6201
|
+
// cross shadow boundary
|
|
6202
|
+
node = rootNode.host;
|
|
6203
|
+
} else {
|
|
6204
|
+
// iterate up normal dom
|
|
6205
|
+
node = parentElement;
|
|
6206
|
+
}
|
|
6207
|
+
}
|
|
6208
|
+
node = originalNode;
|
|
6209
|
+
}
|
|
6210
|
+
// else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
|
|
6211
|
+
// (i.e. it does not also presume that all nodes might have undisclosed shadows); or
|
|
6212
|
+
// it might be a falsy value, which means shadow DOM support is disabled
|
|
6213
|
+
|
|
6214
|
+
// Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
|
|
6215
|
+
// now we can just test to see if it would normally be visible or not, provided it's
|
|
6216
|
+
// attached to the main document.
|
|
6217
|
+
// NOTE: We must consider case where node is inside a shadow DOM and given directly to
|
|
6218
|
+
// `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
|
|
6219
|
+
|
|
6220
|
+
if (isNodeAttached(node)) {
|
|
6221
|
+
// this works wherever the node is: if there's at least one client rect, it's
|
|
6222
|
+
// somehow displayed; it also covers the CSS 'display: contents' case where the
|
|
6223
|
+
// node itself is hidden in place of its contents; and there's no need to search
|
|
6224
|
+
// up the hierarchy either
|
|
6225
|
+
return !node.getClientRects().length;
|
|
6226
|
+
}
|
|
6227
|
+
|
|
6228
|
+
// Else, the node isn't attached to the document, which means the `getClientRects()`
|
|
6229
|
+
// API will __always__ return zero rects (this can happen, for example, if React
|
|
6230
|
+
// is used to render nodes onto a detached tree, as confirmed in this thread:
|
|
6231
|
+
// https://github.com/facebook/react/issues/9117#issuecomment-284228870)
|
|
6232
|
+
//
|
|
6233
|
+
// It also means that even window.getComputedStyle(node).display will return `undefined`
|
|
6234
|
+
// because styles are only computed for nodes that are in the document.
|
|
6235
|
+
//
|
|
6236
|
+
// NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
|
|
6237
|
+
// somehow. Though it was never stated officially, anyone who has ever used tabbable
|
|
6238
|
+
// APIs on nodes in detached containers has actually implicitly used tabbable in what
|
|
6239
|
+
// was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
|
|
6240
|
+
// considering __everything__ to be visible because of the innability to determine styles.
|
|
6241
|
+
//
|
|
6242
|
+
// v6.0.0: As of this major release, the default 'full' option __no longer treats detached
|
|
6243
|
+
// nodes as visible with the 'none' fallback.__
|
|
6244
|
+
if (displayCheck !== 'legacy-full') {
|
|
6245
|
+
return true; // hidden
|
|
6246
|
+
}
|
|
6247
|
+
// else, fallback to 'none' mode and consider the node visible
|
|
6248
|
+
} else if (displayCheck === 'non-zero-area') {
|
|
6249
|
+
// NOTE: Even though this tests that the node's client rect is non-zero to determine
|
|
6250
|
+
// whether it's displayed, and that a detached node will __always__ have a zero-area
|
|
6251
|
+
// client rect, we don't special-case for whether the node is attached or not. In
|
|
6252
|
+
// this mode, we do want to consider nodes that have a zero area to be hidden at all
|
|
6253
|
+
// times, and that includes attached or not.
|
|
6254
|
+
return isZeroArea(node);
|
|
6255
|
+
}
|
|
6256
|
+
|
|
6257
|
+
// visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
|
|
6258
|
+
// it's visible
|
|
6259
|
+
return false;
|
|
6260
|
+
};
|
|
6261
|
+
|
|
6262
|
+
// form fields (nested) inside a disabled fieldset are not focusable/tabbable
|
|
6263
|
+
// unless they are in the _first_ <legend> element of the top-most disabled
|
|
6264
|
+
// fieldset
|
|
6265
|
+
var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
6266
|
+
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
6267
|
+
var parentNode = node.parentElement;
|
|
6268
|
+
// check if `node` is contained in a disabled <fieldset>
|
|
6269
|
+
while (parentNode) {
|
|
6270
|
+
if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
|
|
6271
|
+
// look for the first <legend> among the children of the disabled <fieldset>
|
|
6272
|
+
for (var i = 0; i < parentNode.children.length; i++) {
|
|
6273
|
+
var child = parentNode.children.item(i);
|
|
6274
|
+
// when the first <legend> (in document order) is found
|
|
6275
|
+
if (child.tagName === 'LEGEND') {
|
|
6276
|
+
// if its parent <fieldset> is not nested in another disabled <fieldset>,
|
|
6277
|
+
// return whether `node` is a descendant of its first <legend>
|
|
6278
|
+
return matches$1.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
|
|
6279
|
+
}
|
|
6280
|
+
}
|
|
6281
|
+
// the disabled <fieldset> containing `node` has no <legend>
|
|
6282
|
+
return true;
|
|
6283
|
+
}
|
|
6284
|
+
parentNode = parentNode.parentElement;
|
|
6285
|
+
}
|
|
6286
|
+
}
|
|
6287
|
+
|
|
6288
|
+
// else, node's tabbable/focusable state should not be affected by a fieldset's
|
|
6289
|
+
// enabled/disabled state
|
|
6290
|
+
return false;
|
|
6291
|
+
};
|
|
6292
|
+
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
|
|
6293
|
+
if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
|
|
6294
|
+
// For a details element with a summary, the summary element gets the focus
|
|
6295
|
+
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
6296
|
+
return false;
|
|
6297
|
+
}
|
|
6298
|
+
return true;
|
|
6299
|
+
};
|
|
6300
|
+
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
6301
|
+
if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
6302
|
+
return false;
|
|
6303
|
+
}
|
|
6304
|
+
return true;
|
|
6305
|
+
};
|
|
6306
|
+
var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
|
|
6307
|
+
var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
|
|
6308
|
+
if (isNaN(tabIndex) || tabIndex >= 0) {
|
|
6309
|
+
return true;
|
|
6310
|
+
}
|
|
6311
|
+
// If a custom element has an explicit negative tabindex,
|
|
6312
|
+
// browsers will not allow tab targeting said element's children.
|
|
6313
|
+
return false;
|
|
6314
|
+
};
|
|
6315
|
+
|
|
6316
|
+
/**
|
|
6317
|
+
* @param {Array.<Element|CandidateScope>} candidates
|
|
6318
|
+
* @returns Element[]
|
|
6319
|
+
*/
|
|
6320
|
+
var sortByOrder = function sortByOrder(candidates) {
|
|
6321
|
+
var regularTabbables = [];
|
|
6322
|
+
var orderedTabbables = [];
|
|
6323
|
+
candidates.forEach(function (item, i) {
|
|
6324
|
+
var isScope = !!item.scopeParent;
|
|
6325
|
+
var element = isScope ? item.scopeParent : item;
|
|
6326
|
+
var candidateTabindex = getTabindex(element, isScope);
|
|
6327
|
+
var elements = isScope ? sortByOrder(item.candidates) : element;
|
|
6328
|
+
if (candidateTabindex === 0) {
|
|
6329
|
+
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
6330
|
+
} else {
|
|
6331
|
+
orderedTabbables.push({
|
|
6332
|
+
documentOrder: i,
|
|
6333
|
+
tabIndex: candidateTabindex,
|
|
6334
|
+
item: item,
|
|
6335
|
+
isScope: isScope,
|
|
6336
|
+
content: elements
|
|
6337
|
+
});
|
|
6338
|
+
}
|
|
6339
|
+
});
|
|
6340
|
+
return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
|
|
6341
|
+
sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
|
|
6342
|
+
return acc;
|
|
6343
|
+
}, []).concat(regularTabbables);
|
|
6344
|
+
};
|
|
6345
|
+
var tabbable = function tabbable(el, options) {
|
|
6346
|
+
options = options || {};
|
|
6347
|
+
var candidates;
|
|
6348
|
+
if (options.getShadowRoot) {
|
|
6349
|
+
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
6350
|
+
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
6351
|
+
flatten: false,
|
|
6352
|
+
getShadowRoot: options.getShadowRoot,
|
|
6353
|
+
shadowRootFilter: isValidShadowRootTabbable
|
|
6354
|
+
});
|
|
6355
|
+
} else {
|
|
6356
|
+
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
6357
|
+
}
|
|
6358
|
+
return sortByOrder(candidates);
|
|
6359
|
+
};
|
|
6360
|
+
var focusable = function focusable(el, options) {
|
|
6361
|
+
options = options || {};
|
|
6362
|
+
var candidates;
|
|
6363
|
+
if (options.getShadowRoot) {
|
|
6364
|
+
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
6365
|
+
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
6366
|
+
flatten: true,
|
|
6367
|
+
getShadowRoot: options.getShadowRoot
|
|
6368
|
+
});
|
|
6369
|
+
} else {
|
|
6370
|
+
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
6371
|
+
}
|
|
6372
|
+
return candidates;
|
|
6373
|
+
};
|
|
6374
|
+
var isTabbable = function isTabbable(node, options) {
|
|
6375
|
+
options = options || {};
|
|
6376
|
+
if (!node) {
|
|
6377
|
+
throw new Error('No node provided');
|
|
6378
|
+
}
|
|
6379
|
+
if (matches$1.call(node, candidateSelector) === false) {
|
|
6380
|
+
return false;
|
|
6381
|
+
}
|
|
6382
|
+
return isNodeMatchingSelectorTabbable(options, node);
|
|
6383
|
+
};
|
|
6384
|
+
var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
|
|
6385
|
+
var isFocusable = function isFocusable(node, options) {
|
|
6386
|
+
options = options || {};
|
|
6387
|
+
if (!node) {
|
|
6388
|
+
throw new Error('No node provided');
|
|
6389
|
+
}
|
|
6390
|
+
if (matches$1.call(node, focusableCandidateSelector) === false) {
|
|
6391
|
+
return false;
|
|
6392
|
+
}
|
|
6393
|
+
return isNodeMatchingSelectorFocusable(options, node);
|
|
6394
|
+
};
|
|
6395
|
+
|
|
6396
|
+
const tabbableOptions = {
|
|
6397
|
+
getShadowRoot: true
|
|
6398
|
+
};
|
|
5939
6399
|
/**
|
|
5940
6400
|
* This helper will guarantee an ID on the provided element.
|
|
5941
6401
|
*
|
|
@@ -5968,7 +6428,7 @@ function getElementProp(el, prop, fallbackValue) {
|
|
|
5968
6428
|
const closest = el.closest(selector);
|
|
5969
6429
|
return closest ? closest.getAttribute(prop) : fallbackValue;
|
|
5970
6430
|
}
|
|
5971
|
-
function getRootNode
|
|
6431
|
+
function getRootNode(el) {
|
|
5972
6432
|
return el.getRootNode();
|
|
5973
6433
|
}
|
|
5974
6434
|
function getHost(root) {
|
|
@@ -5995,7 +6455,7 @@ function queryElementRoots(element, { selector, id }) {
|
|
|
5995
6455
|
if (el.assignedSlot) {
|
|
5996
6456
|
el = el.assignedSlot;
|
|
5997
6457
|
}
|
|
5998
|
-
const rootNode = getRootNode
|
|
6458
|
+
const rootNode = getRootNode(el);
|
|
5999
6459
|
const found = id
|
|
6000
6460
|
? "getElementById" in rootNode
|
|
6001
6461
|
? /*
|
|
@@ -6015,7 +6475,7 @@ function queryElementRoots(element, { selector, id }) {
|
|
|
6015
6475
|
function closestElementCrossShadowBoundary(element, selector) {
|
|
6016
6476
|
// based on https://stackoverflow.com/q/54520554/194216
|
|
6017
6477
|
function closestFrom(el) {
|
|
6018
|
-
return el ? el.closest(selector) || closestFrom(getHost(getRootNode
|
|
6478
|
+
return el ? el.closest(selector) || closestFrom(getHost(getRootNode(el))) : null;
|
|
6019
6479
|
}
|
|
6020
6480
|
return closestFrom(element);
|
|
6021
6481
|
}
|
|
@@ -6028,6 +6488,14 @@ async function focusElement(el) {
|
|
|
6028
6488
|
}
|
|
6029
6489
|
return isCalciteFocusable(el) ? el.setFocus() : el.focus();
|
|
6030
6490
|
}
|
|
6491
|
+
/**
|
|
6492
|
+
* Helper to focus the first tabbable element.
|
|
6493
|
+
*
|
|
6494
|
+
* @param {HTMLElement} element The html element containing tabbable elements.
|
|
6495
|
+
*/
|
|
6496
|
+
function focusFirstTabbable(element) {
|
|
6497
|
+
(tabbable(element, tabbableOptions)[0] || element).focus();
|
|
6498
|
+
}
|
|
6031
6499
|
const defaultSlotSelector = ":not([slot])";
|
|
6032
6500
|
function getSlotted(element, slotName, options) {
|
|
6033
6501
|
if (slotName && !Array.isArray(slotName) && typeof slotName !== "string") {
|
|
@@ -6138,13 +6606,6 @@ function slotChangeGetAssignedElements(event) {
|
|
|
6138
6606
|
function isPrimaryPointerButton(event) {
|
|
6139
6607
|
return !!(event.isPrimary && event.button === 0);
|
|
6140
6608
|
}
|
|
6141
|
-
/**
|
|
6142
|
-
Focus helpers for keyboard navigation
|
|
6143
|
-
*
|
|
6144
|
-
* @param elements : An array of elements
|
|
6145
|
-
* @param currentElement : The current element
|
|
6146
|
-
* @param destination : "first" | "last" |"next" | "previous"
|
|
6147
|
-
*/
|
|
6148
6609
|
const focusElementInGroup = (elements, currentElement, destination) => {
|
|
6149
6610
|
const currentIndex = elements.indexOf(currentElement);
|
|
6150
6611
|
const isFirstItem = currentIndex === 0;
|
|
@@ -6894,36 +7355,12 @@ async function getMessageBundle(lang, component) {
|
|
|
6894
7355
|
function throwMessageFetchError() {
|
|
6895
7356
|
throw new Error("could not fetch component message bundle");
|
|
6896
7357
|
}
|
|
6897
|
-
/**
|
|
6898
|
-
* This util helps preserve existing intlProp usage when they have not been replaced by overrides.
|
|
6899
|
-
*
|
|
6900
|
-
* @param component
|
|
6901
|
-
*/
|
|
6902
|
-
function overridesFromIntlProps(component) {
|
|
6903
|
-
const { el } = component;
|
|
6904
|
-
const overrides = {};
|
|
6905
|
-
Object.keys(el.constructor.prototype)
|
|
6906
|
-
.filter((prop) => prop.startsWith("intl"))
|
|
6907
|
-
.forEach((prop) => {
|
|
6908
|
-
const assignedValue = el[prop];
|
|
6909
|
-
if (assignedValue) {
|
|
6910
|
-
let mappedProp = prop.replace("intl", "");
|
|
6911
|
-
mappedProp = `${mappedProp[0].toLowerCase()}${mappedProp.slice(1)}`;
|
|
6912
|
-
overrides[mappedProp] = assignedValue;
|
|
6913
|
-
}
|
|
6914
|
-
});
|
|
6915
|
-
return overrides;
|
|
6916
|
-
}
|
|
6917
7358
|
function mergeMessages(component) {
|
|
6918
7359
|
component.messages = {
|
|
6919
7360
|
...component.defaultMessages,
|
|
6920
|
-
...
|
|
6921
|
-
...component.getExtraMessageOverrides?.()
|
|
7361
|
+
...component.messageOverrides
|
|
6922
7362
|
};
|
|
6923
7363
|
}
|
|
6924
|
-
function getEffectiveMessageOverrides(component) {
|
|
6925
|
-
return component.messageOverrides ?? overridesFromIntlProps(component);
|
|
6926
|
-
}
|
|
6927
7364
|
/**
|
|
6928
7365
|
* This utility sets up the messages used by the component. It should be awaited in the `componentWillLoad` lifecycle hook.
|
|
6929
7366
|
*
|
|
@@ -17024,11 +17461,6 @@ class ComboboxItem {
|
|
|
17024
17461
|
registerInstance(this, hostRef);
|
|
17025
17462
|
this.calciteComboboxItemChange = createEvent(this, "calciteComboboxItemChange", 6);
|
|
17026
17463
|
this.scale = "m";
|
|
17027
|
-
// --------------------------------------------------------------------------
|
|
17028
|
-
//
|
|
17029
|
-
// Private Methods
|
|
17030
|
-
//
|
|
17031
|
-
// --------------------------------------------------------------------------
|
|
17032
17464
|
this.itemClickHandler = (event) => {
|
|
17033
17465
|
event.preventDefault();
|
|
17034
17466
|
this.toggleSelected();
|
|
@@ -17065,16 +17497,10 @@ class ComboboxItem {
|
|
|
17065
17497
|
}
|
|
17066
17498
|
// --------------------------------------------------------------------------
|
|
17067
17499
|
//
|
|
17068
|
-
//
|
|
17500
|
+
// Private Methods
|
|
17069
17501
|
//
|
|
17070
17502
|
// --------------------------------------------------------------------------
|
|
17071
|
-
|
|
17072
|
-
* Used to toggle the selection state. By default this won't trigger an event.
|
|
17073
|
-
* The first argument allows the value to be coerced, rather than swapping values.
|
|
17074
|
-
*
|
|
17075
|
-
* @param coerce
|
|
17076
|
-
*/
|
|
17077
|
-
async toggleSelected(coerce) {
|
|
17503
|
+
toggleSelected(coerce) {
|
|
17078
17504
|
if (this.disabled) {
|
|
17079
17505
|
return;
|
|
17080
17506
|
}
|
|
@@ -17137,8 +17563,7 @@ class ComboboxItem {
|
|
|
17137
17563
|
"iconFlipRtl": [516, "icon-flip-rtl"],
|
|
17138
17564
|
"textLabel": [513, "text-label"],
|
|
17139
17565
|
"value": [8],
|
|
17140
|
-
"filterDisabled": [516, "filter-disabled"]
|
|
17141
|
-
"toggleSelected": [64]
|
|
17566
|
+
"filterDisabled": [516, "filter-disabled"]
|
|
17142
17567
|
},
|
|
17143
17568
|
"$listeners$": undefined,
|
|
17144
17569
|
"$lazyBundleId$": "-",
|
|
@@ -17467,20 +17892,23 @@ class DatePicker {
|
|
|
17467
17892
|
}
|
|
17468
17893
|
};
|
|
17469
17894
|
this.monthHoverChange = (event) => {
|
|
17470
|
-
if (!this.
|
|
17895
|
+
if (!this.range) {
|
|
17471
17896
|
this.hoverRange = undefined;
|
|
17472
17897
|
return;
|
|
17473
17898
|
}
|
|
17899
|
+
const { valueAsDate } = this;
|
|
17900
|
+
const start = Array.isArray(valueAsDate) && valueAsDate[0];
|
|
17901
|
+
const end = Array.isArray(valueAsDate) && valueAsDate[1];
|
|
17474
17902
|
const date = new Date(event.detail);
|
|
17475
17903
|
this.hoverRange = {
|
|
17476
17904
|
focused: this.activeRange || "start",
|
|
17477
|
-
start
|
|
17478
|
-
end
|
|
17905
|
+
start,
|
|
17906
|
+
end
|
|
17479
17907
|
};
|
|
17480
17908
|
if (!this.proximitySelectionDisabled) {
|
|
17481
|
-
if (
|
|
17482
|
-
const startDiff = getDaysDiff(date,
|
|
17483
|
-
const endDiff = getDaysDiff(date,
|
|
17909
|
+
if (end) {
|
|
17910
|
+
const startDiff = getDaysDiff(date, start);
|
|
17911
|
+
const endDiff = getDaysDiff(date, end);
|
|
17484
17912
|
if (endDiff > 0) {
|
|
17485
17913
|
this.hoverRange.end = date;
|
|
17486
17914
|
this.hoverRange.focused = "end";
|
|
@@ -17499,11 +17927,11 @@ class DatePicker {
|
|
|
17499
17927
|
}
|
|
17500
17928
|
}
|
|
17501
17929
|
else {
|
|
17502
|
-
if (date <
|
|
17930
|
+
if (date < start) {
|
|
17503
17931
|
this.hoverRange = {
|
|
17504
17932
|
focused: "start",
|
|
17505
17933
|
start: date,
|
|
17506
|
-
end:
|
|
17934
|
+
end: start
|
|
17507
17935
|
};
|
|
17508
17936
|
}
|
|
17509
17937
|
else {
|
|
@@ -17513,12 +17941,12 @@ class DatePicker {
|
|
|
17513
17941
|
}
|
|
17514
17942
|
}
|
|
17515
17943
|
else {
|
|
17516
|
-
if (!
|
|
17517
|
-
if (date <
|
|
17944
|
+
if (!end) {
|
|
17945
|
+
if (date < start) {
|
|
17518
17946
|
this.hoverRange = {
|
|
17519
17947
|
focused: "start",
|
|
17520
17948
|
start: date,
|
|
17521
|
-
end:
|
|
17949
|
+
end: start
|
|
17522
17950
|
};
|
|
17523
17951
|
}
|
|
17524
17952
|
else {
|
|
@@ -17541,16 +17969,23 @@ class DatePicker {
|
|
|
17541
17969
|
* Reset active date and close
|
|
17542
17970
|
*/
|
|
17543
17971
|
this.reset = () => {
|
|
17544
|
-
|
|
17545
|
-
|
|
17546
|
-
|
|
17547
|
-
this.activeDate
|
|
17972
|
+
const { valueAsDate } = this;
|
|
17973
|
+
if (!Array.isArray(valueAsDate) &&
|
|
17974
|
+
valueAsDate &&
|
|
17975
|
+
valueAsDate?.getTime() !== this.activeDate?.getTime()) {
|
|
17976
|
+
this.activeDate = new Date(valueAsDate);
|
|
17548
17977
|
}
|
|
17549
|
-
if (
|
|
17550
|
-
|
|
17551
|
-
|
|
17552
|
-
|
|
17553
|
-
|
|
17978
|
+
if (Array.isArray(valueAsDate)) {
|
|
17979
|
+
if (valueAsDate[0] &&
|
|
17980
|
+
valueAsDate[0]?.getTime() !==
|
|
17981
|
+
(this.activeStartDate instanceof Date && this.activeStartDate?.getTime())) {
|
|
17982
|
+
this.activeStartDate = new Date(valueAsDate[0]);
|
|
17983
|
+
}
|
|
17984
|
+
if (valueAsDate[1] &&
|
|
17985
|
+
valueAsDate[1]?.getTime() !==
|
|
17986
|
+
(this.activeStartDate instanceof Date && this.activeEndDate?.getTime())) {
|
|
17987
|
+
this.activeEndDate = new Date(valueAsDate[1]);
|
|
17988
|
+
}
|
|
17554
17989
|
}
|
|
17555
17990
|
};
|
|
17556
17991
|
/**
|
|
@@ -17571,9 +18006,11 @@ class DatePicker {
|
|
|
17571
18006
|
this.calciteDatePickerChange.emit();
|
|
17572
18007
|
return;
|
|
17573
18008
|
}
|
|
17574
|
-
|
|
17575
|
-
|
|
17576
|
-
|
|
18009
|
+
const start = this.getStartDate();
|
|
18010
|
+
const end = this.getEndDate();
|
|
18011
|
+
if (!start || (!end && date < start)) {
|
|
18012
|
+
if (start) {
|
|
18013
|
+
this.setEndDate(new Date(start));
|
|
17577
18014
|
}
|
|
17578
18015
|
if (this.activeRange == "end") {
|
|
17579
18016
|
this.setEndDate(date);
|
|
@@ -17582,7 +18019,7 @@ class DatePicker {
|
|
|
17582
18019
|
this.setStartDate(date);
|
|
17583
18020
|
}
|
|
17584
18021
|
}
|
|
17585
|
-
else if (!
|
|
18022
|
+
else if (!end) {
|
|
17586
18023
|
this.setEndDate(date);
|
|
17587
18024
|
}
|
|
17588
18025
|
else {
|
|
@@ -17596,8 +18033,8 @@ class DatePicker {
|
|
|
17596
18033
|
}
|
|
17597
18034
|
}
|
|
17598
18035
|
else {
|
|
17599
|
-
const startDiff = getDaysDiff(date,
|
|
17600
|
-
const endDiff = getDaysDiff(date,
|
|
18036
|
+
const startDiff = getDaysDiff(date, start);
|
|
18037
|
+
const endDiff = getDaysDiff(date, end);
|
|
17601
18038
|
if (endDiff === 0 || startDiff < 0) {
|
|
17602
18039
|
this.setStartDate(date);
|
|
17603
18040
|
}
|
|
@@ -17614,7 +18051,6 @@ class DatePicker {
|
|
|
17614
18051
|
}
|
|
17615
18052
|
else {
|
|
17616
18053
|
this.setStartDate(date);
|
|
17617
|
-
this.endAsDate = this.activeEndDate = undefined;
|
|
17618
18054
|
}
|
|
17619
18055
|
}
|
|
17620
18056
|
this.calciteDatePickerChange.emit();
|
|
@@ -17648,15 +18084,17 @@ class DatePicker {
|
|
|
17648
18084
|
this.activeEndDate = newActiveDate;
|
|
17649
18085
|
}
|
|
17650
18086
|
}
|
|
17651
|
-
|
|
17652
|
-
if (
|
|
17653
|
-
|
|
18087
|
+
valueAsDateWatcher(newValueAsDate) {
|
|
18088
|
+
if (this.range && Array.isArray(newValueAsDate)) {
|
|
18089
|
+
const { activeStartDate, activeEndDate } = this;
|
|
18090
|
+
const newActiveStartDate = newValueAsDate[0];
|
|
18091
|
+
const newActiveEndDate = newValueAsDate[1];
|
|
18092
|
+
this.activeStartDate = activeStartDate !== newActiveStartDate && newActiveStartDate;
|
|
18093
|
+
this.activeEndDate = activeEndDate !== newActiveEndDate && newActiveEndDate;
|
|
18094
|
+
}
|
|
18095
|
+
else if (newValueAsDate && newValueAsDate !== this.activeDate) {
|
|
18096
|
+
this.activeDate = newValueAsDate;
|
|
17654
18097
|
}
|
|
17655
|
-
}
|
|
17656
|
-
handleRangeChange() {
|
|
17657
|
-
const { startAsDate: startDate, endAsDate: endDate } = this;
|
|
17658
|
-
this.activeEndDate = endDate;
|
|
17659
|
-
this.activeStartDate = startDate;
|
|
17660
18098
|
}
|
|
17661
18099
|
onMinChanged(min) {
|
|
17662
18100
|
if (min) {
|
|
@@ -17760,38 +18198,23 @@ class DatePicker {
|
|
|
17760
18198
|
hAsync("calcite-date-picker-month", { activeDate: activeDate, endDate: this.range ? endDate : undefined, hoverRange: this.hoverRange, localeData: this.localeData, max: maxDate, min: minDate, onCalciteInternalDatePickerActiveDateChange: this.monthActiveDateChange, onCalciteInternalDatePickerHover: this.monthHoverChange, onCalciteInternalDatePickerMouseOut: this.monthMouseOutChange, onCalciteInternalDatePickerSelect: this.monthDateChange, scale: this.scale, selectedDate: this.activeRange === "end" ? endDate : date, startDate: this.range ? date : undefined })
|
|
17761
18199
|
]);
|
|
17762
18200
|
}
|
|
17763
|
-
|
|
17764
|
-
|
|
17765
|
-
*
|
|
17766
|
-
* @param startDate
|
|
17767
|
-
* @param emit
|
|
17768
|
-
*/
|
|
17769
|
-
setStartAsDate(startDate, emit) {
|
|
17770
|
-
this.startAsDate = startDate;
|
|
17771
|
-
this.mostRecentRangeValue = this.startAsDate;
|
|
17772
|
-
if (emit) {
|
|
17773
|
-
this.calciteDatePickerRangeChange.emit();
|
|
17774
|
-
}
|
|
17775
|
-
}
|
|
17776
|
-
/**
|
|
17777
|
-
* Update date instance of end if valid
|
|
17778
|
-
*
|
|
17779
|
-
* @param endDate
|
|
17780
|
-
* @param emit
|
|
17781
|
-
*/
|
|
17782
|
-
setEndAsDate(endDate, emit) {
|
|
17783
|
-
this.endAsDate = endDate ? setEndOfDay(endDate) : endDate;
|
|
17784
|
-
this.mostRecentRangeValue = this.endAsDate;
|
|
17785
|
-
if (emit) {
|
|
17786
|
-
this.calciteDatePickerRangeChange.emit();
|
|
17787
|
-
}
|
|
18201
|
+
getEndDate() {
|
|
18202
|
+
return (Array.isArray(this.valueAsDate) && this.valueAsDate[1]) || undefined;
|
|
17788
18203
|
}
|
|
17789
18204
|
setEndDate(date) {
|
|
17790
|
-
|
|
18205
|
+
const newEndDate = date ? setEndOfDay(date) : date;
|
|
18206
|
+
this.valueAsDate = [this.getStartDate(), date];
|
|
18207
|
+
this.mostRecentRangeValue = newEndDate;
|
|
18208
|
+
this.calciteDatePickerRangeChange.emit();
|
|
17791
18209
|
this.activeEndDate = date || null;
|
|
17792
18210
|
}
|
|
18211
|
+
getStartDate() {
|
|
18212
|
+
return Array.isArray(this.valueAsDate) && this.valueAsDate[0];
|
|
18213
|
+
}
|
|
17793
18214
|
setStartDate(date) {
|
|
17794
|
-
this.
|
|
18215
|
+
this.valueAsDate = [date, this.getEndDate()];
|
|
18216
|
+
this.mostRecentRangeValue = date;
|
|
18217
|
+
this.calciteDatePickerRangeChange.emit();
|
|
17795
18218
|
this.activeStartDate = date || null;
|
|
17796
18219
|
}
|
|
17797
18220
|
/**
|
|
@@ -17812,9 +18235,7 @@ class DatePicker {
|
|
|
17812
18235
|
get el() { return getElement(this); }
|
|
17813
18236
|
static get watchers() { return {
|
|
17814
18237
|
"activeDate": ["activeDateWatcher"],
|
|
17815
|
-
"valueAsDate": ["
|
|
17816
|
-
"startAsDate": ["handleRangeChange"],
|
|
17817
|
-
"endAsDate": ["handleRangeChange"],
|
|
18238
|
+
"valueAsDate": ["valueAsDateWatcher"],
|
|
17818
18239
|
"min": ["onMinChanged"],
|
|
17819
18240
|
"max": ["onMaxChanged"],
|
|
17820
18241
|
"messageOverrides": ["onMessagesChange"],
|
|
@@ -24080,463 +24501,6 @@ const SLOTS$d = {
|
|
|
24080
24501
|
primary: "primary"
|
|
24081
24502
|
};
|
|
24082
24503
|
|
|
24083
|
-
/*!
|
|
24084
|
-
* tabbable 6.0.1
|
|
24085
|
-
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
24086
|
-
*/
|
|
24087
|
-
var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
|
|
24088
|
-
var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
|
|
24089
|
-
var NoElement = typeof Element === 'undefined';
|
|
24090
|
-
var matches$1 = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
|
|
24091
|
-
var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
|
|
24092
|
-
return element.getRootNode();
|
|
24093
|
-
} : function (element) {
|
|
24094
|
-
return element.ownerDocument;
|
|
24095
|
-
};
|
|
24096
|
-
|
|
24097
|
-
/**
|
|
24098
|
-
* @param {Element} el container to check in
|
|
24099
|
-
* @param {boolean} includeContainer add container to check
|
|
24100
|
-
* @param {(node: Element) => boolean} filter filter candidates
|
|
24101
|
-
* @returns {Element[]}
|
|
24102
|
-
*/
|
|
24103
|
-
var getCandidates = function getCandidates(el, includeContainer, filter) {
|
|
24104
|
-
var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
|
|
24105
|
-
if (includeContainer && matches$1.call(el, candidateSelector)) {
|
|
24106
|
-
candidates.unshift(el);
|
|
24107
|
-
}
|
|
24108
|
-
candidates = candidates.filter(filter);
|
|
24109
|
-
return candidates;
|
|
24110
|
-
};
|
|
24111
|
-
|
|
24112
|
-
/**
|
|
24113
|
-
* @callback GetShadowRoot
|
|
24114
|
-
* @param {Element} element to check for shadow root
|
|
24115
|
-
* @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
|
|
24116
|
-
*/
|
|
24117
|
-
|
|
24118
|
-
/**
|
|
24119
|
-
* @callback ShadowRootFilter
|
|
24120
|
-
* @param {Element} shadowHostNode the element which contains shadow content
|
|
24121
|
-
* @returns {boolean} true if a shadow root could potentially contain valid candidates.
|
|
24122
|
-
*/
|
|
24123
|
-
|
|
24124
|
-
/**
|
|
24125
|
-
* @typedef {Object} CandidateScope
|
|
24126
|
-
* @property {Element} scopeParent contains inner candidates
|
|
24127
|
-
* @property {Element[]} candidates list of candidates found in the scope parent
|
|
24128
|
-
*/
|
|
24129
|
-
|
|
24130
|
-
/**
|
|
24131
|
-
* @typedef {Object} IterativeOptions
|
|
24132
|
-
* @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
|
|
24133
|
-
* if a function, implies shadow support is enabled and either returns the shadow root of an element
|
|
24134
|
-
* or a boolean stating if it has an undisclosed shadow root
|
|
24135
|
-
* @property {(node: Element) => boolean} filter filter candidates
|
|
24136
|
-
* @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
|
|
24137
|
-
* @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
|
|
24138
|
-
*/
|
|
24139
|
-
|
|
24140
|
-
/**
|
|
24141
|
-
* @param {Element[]} elements list of element containers to match candidates from
|
|
24142
|
-
* @param {boolean} includeContainer add container list to check
|
|
24143
|
-
* @param {IterativeOptions} options
|
|
24144
|
-
* @returns {Array.<Element|CandidateScope>}
|
|
24145
|
-
*/
|
|
24146
|
-
var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
|
|
24147
|
-
var candidates = [];
|
|
24148
|
-
var elementsToCheck = Array.from(elements);
|
|
24149
|
-
while (elementsToCheck.length) {
|
|
24150
|
-
var element = elementsToCheck.shift();
|
|
24151
|
-
if (element.tagName === 'SLOT') {
|
|
24152
|
-
// add shadow dom slot scope (slot itself cannot be focusable)
|
|
24153
|
-
var assigned = element.assignedElements();
|
|
24154
|
-
var content = assigned.length ? assigned : element.children;
|
|
24155
|
-
var nestedCandidates = getCandidatesIteratively(content, true, options);
|
|
24156
|
-
if (options.flatten) {
|
|
24157
|
-
candidates.push.apply(candidates, nestedCandidates);
|
|
24158
|
-
} else {
|
|
24159
|
-
candidates.push({
|
|
24160
|
-
scopeParent: element,
|
|
24161
|
-
candidates: nestedCandidates
|
|
24162
|
-
});
|
|
24163
|
-
}
|
|
24164
|
-
} else {
|
|
24165
|
-
// check candidate element
|
|
24166
|
-
var validCandidate = matches$1.call(element, candidateSelector);
|
|
24167
|
-
if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
|
|
24168
|
-
candidates.push(element);
|
|
24169
|
-
}
|
|
24170
|
-
|
|
24171
|
-
// iterate over shadow content if possible
|
|
24172
|
-
var shadowRoot = element.shadowRoot ||
|
|
24173
|
-
// check for an undisclosed shadow
|
|
24174
|
-
typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
|
|
24175
|
-
var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);
|
|
24176
|
-
if (shadowRoot && validShadowRoot) {
|
|
24177
|
-
// add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
|
|
24178
|
-
// shadow exists, so look at light dom children as fallback BUT create a scope for any
|
|
24179
|
-
// child candidates found because they're likely slotted elements (elements that are
|
|
24180
|
-
// children of the web component element (which has the shadow), in the light dom, but
|
|
24181
|
-
// slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
|
|
24182
|
-
// _after_ we return from this recursive call
|
|
24183
|
-
var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
|
|
24184
|
-
if (options.flatten) {
|
|
24185
|
-
candidates.push.apply(candidates, _nestedCandidates);
|
|
24186
|
-
} else {
|
|
24187
|
-
candidates.push({
|
|
24188
|
-
scopeParent: element,
|
|
24189
|
-
candidates: _nestedCandidates
|
|
24190
|
-
});
|
|
24191
|
-
}
|
|
24192
|
-
} else {
|
|
24193
|
-
// there's not shadow so just dig into the element's (light dom) children
|
|
24194
|
-
// __without__ giving the element special scope treatment
|
|
24195
|
-
elementsToCheck.unshift.apply(elementsToCheck, element.children);
|
|
24196
|
-
}
|
|
24197
|
-
}
|
|
24198
|
-
}
|
|
24199
|
-
return candidates;
|
|
24200
|
-
};
|
|
24201
|
-
var getTabindex = function getTabindex(node, isScope) {
|
|
24202
|
-
if (node.tabIndex < 0) {
|
|
24203
|
-
// in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
|
|
24204
|
-
// `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
|
|
24205
|
-
// yet they are still part of the regular tab order; in FF, they get a default
|
|
24206
|
-
// `tabIndex` of 0; since Chrome still puts those elements in the regular tab
|
|
24207
|
-
// order, consider their tab index to be 0.
|
|
24208
|
-
// Also browsers do not return `tabIndex` correctly for contentEditable nodes;
|
|
24209
|
-
// so if they don't have a tabindex attribute specifically set, assume it's 0.
|
|
24210
|
-
//
|
|
24211
|
-
// isScope is positive for custom element with shadow root or slot that by default
|
|
24212
|
-
// have tabIndex -1, but need to be sorted by document order in order for their
|
|
24213
|
-
// content to be inserted in the correct position
|
|
24214
|
-
if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || node.isContentEditable) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
|
|
24215
|
-
return 0;
|
|
24216
|
-
}
|
|
24217
|
-
}
|
|
24218
|
-
return node.tabIndex;
|
|
24219
|
-
};
|
|
24220
|
-
var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
|
|
24221
|
-
return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
|
|
24222
|
-
};
|
|
24223
|
-
var isInput = function isInput(node) {
|
|
24224
|
-
return node.tagName === 'INPUT';
|
|
24225
|
-
};
|
|
24226
|
-
var isHiddenInput = function isHiddenInput(node) {
|
|
24227
|
-
return isInput(node) && node.type === 'hidden';
|
|
24228
|
-
};
|
|
24229
|
-
var isDetailsWithSummary = function isDetailsWithSummary(node) {
|
|
24230
|
-
var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
|
|
24231
|
-
return child.tagName === 'SUMMARY';
|
|
24232
|
-
});
|
|
24233
|
-
return r;
|
|
24234
|
-
};
|
|
24235
|
-
var getCheckedRadio = function getCheckedRadio(nodes, form) {
|
|
24236
|
-
for (var i = 0; i < nodes.length; i++) {
|
|
24237
|
-
if (nodes[i].checked && nodes[i].form === form) {
|
|
24238
|
-
return nodes[i];
|
|
24239
|
-
}
|
|
24240
|
-
}
|
|
24241
|
-
};
|
|
24242
|
-
var isTabbableRadio = function isTabbableRadio(node) {
|
|
24243
|
-
if (!node.name) {
|
|
24244
|
-
return true;
|
|
24245
|
-
}
|
|
24246
|
-
var radioScope = node.form || getRootNode(node);
|
|
24247
|
-
var queryRadios = function queryRadios(name) {
|
|
24248
|
-
return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
|
|
24249
|
-
};
|
|
24250
|
-
var radioSet;
|
|
24251
|
-
if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
|
|
24252
|
-
radioSet = queryRadios(window.CSS.escape(node.name));
|
|
24253
|
-
} else {
|
|
24254
|
-
try {
|
|
24255
|
-
radioSet = queryRadios(node.name);
|
|
24256
|
-
} catch (err) {
|
|
24257
|
-
// eslint-disable-next-line no-console
|
|
24258
|
-
console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
|
|
24259
|
-
return false;
|
|
24260
|
-
}
|
|
24261
|
-
}
|
|
24262
|
-
var checked = getCheckedRadio(radioSet, node.form);
|
|
24263
|
-
return !checked || checked === node;
|
|
24264
|
-
};
|
|
24265
|
-
var isRadio = function isRadio(node) {
|
|
24266
|
-
return isInput(node) && node.type === 'radio';
|
|
24267
|
-
};
|
|
24268
|
-
var isNonTabbableRadio = function isNonTabbableRadio(node) {
|
|
24269
|
-
return isRadio(node) && !isTabbableRadio(node);
|
|
24270
|
-
};
|
|
24271
|
-
|
|
24272
|
-
// determines if a node is ultimately attached to the window's document
|
|
24273
|
-
var isNodeAttached = function isNodeAttached(node) {
|
|
24274
|
-
var _nodeRootHost;
|
|
24275
|
-
// The root node is the shadow root if the node is in a shadow DOM; some document otherwise
|
|
24276
|
-
// (but NOT _the_ document; see second 'If' comment below for more).
|
|
24277
|
-
// If rootNode is shadow root, it'll have a host, which is the element to which the shadow
|
|
24278
|
-
// is attached, and the one we need to check if it's in the document or not (because the
|
|
24279
|
-
// shadow, and all nodes it contains, is never considered in the document since shadows
|
|
24280
|
-
// behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
|
|
24281
|
-
// is hidden, or is not in the document itself but is detached, it will affect the shadow's
|
|
24282
|
-
// visibility, including all the nodes it contains). The host could be any normal node,
|
|
24283
|
-
// or a custom element (i.e. web component). Either way, that's the one that is considered
|
|
24284
|
-
// part of the document, not the shadow root, nor any of its children (i.e. the node being
|
|
24285
|
-
// tested).
|
|
24286
|
-
// To further complicate things, we have to look all the way up until we find a shadow HOST
|
|
24287
|
-
// that is attached (or find none) because the node might be in nested shadows...
|
|
24288
|
-
// If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
|
|
24289
|
-
// document (per the docs) and while it's a Document-type object, that document does not
|
|
24290
|
-
// appear to be the same as the node's `ownerDocument` for some reason, so it's safer
|
|
24291
|
-
// to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
|
|
24292
|
-
// using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
|
|
24293
|
-
// node is actually detached.
|
|
24294
|
-
var nodeRootHost = getRootNode(node).host;
|
|
24295
|
-
var attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && _nodeRootHost.ownerDocument.contains(nodeRootHost) || node.ownerDocument.contains(node));
|
|
24296
|
-
while (!attached && nodeRootHost) {
|
|
24297
|
-
var _nodeRootHost2;
|
|
24298
|
-
// since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
|
|
24299
|
-
// which means we need to get the host's host and check if that parent host is contained
|
|
24300
|
-
// in (i.e. attached to) the document
|
|
24301
|
-
nodeRootHost = getRootNode(nodeRootHost).host;
|
|
24302
|
-
attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && _nodeRootHost2.ownerDocument.contains(nodeRootHost));
|
|
24303
|
-
}
|
|
24304
|
-
return attached;
|
|
24305
|
-
};
|
|
24306
|
-
var isZeroArea = function isZeroArea(node) {
|
|
24307
|
-
var _node$getBoundingClie = node.getBoundingClientRect(),
|
|
24308
|
-
width = _node$getBoundingClie.width,
|
|
24309
|
-
height = _node$getBoundingClie.height;
|
|
24310
|
-
return width === 0 && height === 0;
|
|
24311
|
-
};
|
|
24312
|
-
var isHidden = function isHidden(node, _ref) {
|
|
24313
|
-
var displayCheck = _ref.displayCheck,
|
|
24314
|
-
getShadowRoot = _ref.getShadowRoot;
|
|
24315
|
-
// NOTE: visibility will be `undefined` if node is detached from the document
|
|
24316
|
-
// (see notes about this further down), which means we will consider it visible
|
|
24317
|
-
// (this is legacy behavior from a very long way back)
|
|
24318
|
-
// NOTE: we check this regardless of `displayCheck="none"` because this is a
|
|
24319
|
-
// _visibility_ check, not a _display_ check
|
|
24320
|
-
if (getComputedStyle(node).visibility === 'hidden') {
|
|
24321
|
-
return true;
|
|
24322
|
-
}
|
|
24323
|
-
var isDirectSummary = matches$1.call(node, 'details>summary:first-of-type');
|
|
24324
|
-
var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
|
|
24325
|
-
if (matches$1.call(nodeUnderDetails, 'details:not([open]) *')) {
|
|
24326
|
-
return true;
|
|
24327
|
-
}
|
|
24328
|
-
if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
|
|
24329
|
-
if (typeof getShadowRoot === 'function') {
|
|
24330
|
-
// figure out if we should consider the node to be in an undisclosed shadow and use the
|
|
24331
|
-
// 'non-zero-area' fallback
|
|
24332
|
-
var originalNode = node;
|
|
24333
|
-
while (node) {
|
|
24334
|
-
var parentElement = node.parentElement;
|
|
24335
|
-
var rootNode = getRootNode(node);
|
|
24336
|
-
if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
|
|
24337
|
-
) {
|
|
24338
|
-
// node has an undisclosed shadow which means we can only treat it as a black box, so we
|
|
24339
|
-
// fall back to a non-zero-area test
|
|
24340
|
-
return isZeroArea(node);
|
|
24341
|
-
} else if (node.assignedSlot) {
|
|
24342
|
-
// iterate up slot
|
|
24343
|
-
node = node.assignedSlot;
|
|
24344
|
-
} else if (!parentElement && rootNode !== node.ownerDocument) {
|
|
24345
|
-
// cross shadow boundary
|
|
24346
|
-
node = rootNode.host;
|
|
24347
|
-
} else {
|
|
24348
|
-
// iterate up normal dom
|
|
24349
|
-
node = parentElement;
|
|
24350
|
-
}
|
|
24351
|
-
}
|
|
24352
|
-
node = originalNode;
|
|
24353
|
-
}
|
|
24354
|
-
// else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
|
|
24355
|
-
// (i.e. it does not also presume that all nodes might have undisclosed shadows); or
|
|
24356
|
-
// it might be a falsy value, which means shadow DOM support is disabled
|
|
24357
|
-
|
|
24358
|
-
// Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
|
|
24359
|
-
// now we can just test to see if it would normally be visible or not, provided it's
|
|
24360
|
-
// attached to the main document.
|
|
24361
|
-
// NOTE: We must consider case where node is inside a shadow DOM and given directly to
|
|
24362
|
-
// `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
|
|
24363
|
-
|
|
24364
|
-
if (isNodeAttached(node)) {
|
|
24365
|
-
// this works wherever the node is: if there's at least one client rect, it's
|
|
24366
|
-
// somehow displayed; it also covers the CSS 'display: contents' case where the
|
|
24367
|
-
// node itself is hidden in place of its contents; and there's no need to search
|
|
24368
|
-
// up the hierarchy either
|
|
24369
|
-
return !node.getClientRects().length;
|
|
24370
|
-
}
|
|
24371
|
-
|
|
24372
|
-
// Else, the node isn't attached to the document, which means the `getClientRects()`
|
|
24373
|
-
// API will __always__ return zero rects (this can happen, for example, if React
|
|
24374
|
-
// is used to render nodes onto a detached tree, as confirmed in this thread:
|
|
24375
|
-
// https://github.com/facebook/react/issues/9117#issuecomment-284228870)
|
|
24376
|
-
//
|
|
24377
|
-
// It also means that even window.getComputedStyle(node).display will return `undefined`
|
|
24378
|
-
// because styles are only computed for nodes that are in the document.
|
|
24379
|
-
//
|
|
24380
|
-
// NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
|
|
24381
|
-
// somehow. Though it was never stated officially, anyone who has ever used tabbable
|
|
24382
|
-
// APIs on nodes in detached containers has actually implicitly used tabbable in what
|
|
24383
|
-
// was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
|
|
24384
|
-
// considering __everything__ to be visible because of the innability to determine styles.
|
|
24385
|
-
//
|
|
24386
|
-
// v6.0.0: As of this major release, the default 'full' option __no longer treats detached
|
|
24387
|
-
// nodes as visible with the 'none' fallback.__
|
|
24388
|
-
if (displayCheck !== 'legacy-full') {
|
|
24389
|
-
return true; // hidden
|
|
24390
|
-
}
|
|
24391
|
-
// else, fallback to 'none' mode and consider the node visible
|
|
24392
|
-
} else if (displayCheck === 'non-zero-area') {
|
|
24393
|
-
// NOTE: Even though this tests that the node's client rect is non-zero to determine
|
|
24394
|
-
// whether it's displayed, and that a detached node will __always__ have a zero-area
|
|
24395
|
-
// client rect, we don't special-case for whether the node is attached or not. In
|
|
24396
|
-
// this mode, we do want to consider nodes that have a zero area to be hidden at all
|
|
24397
|
-
// times, and that includes attached or not.
|
|
24398
|
-
return isZeroArea(node);
|
|
24399
|
-
}
|
|
24400
|
-
|
|
24401
|
-
// visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
|
|
24402
|
-
// it's visible
|
|
24403
|
-
return false;
|
|
24404
|
-
};
|
|
24405
|
-
|
|
24406
|
-
// form fields (nested) inside a disabled fieldset are not focusable/tabbable
|
|
24407
|
-
// unless they are in the _first_ <legend> element of the top-most disabled
|
|
24408
|
-
// fieldset
|
|
24409
|
-
var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
|
|
24410
|
-
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
|
|
24411
|
-
var parentNode = node.parentElement;
|
|
24412
|
-
// check if `node` is contained in a disabled <fieldset>
|
|
24413
|
-
while (parentNode) {
|
|
24414
|
-
if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
|
|
24415
|
-
// look for the first <legend> among the children of the disabled <fieldset>
|
|
24416
|
-
for (var i = 0; i < parentNode.children.length; i++) {
|
|
24417
|
-
var child = parentNode.children.item(i);
|
|
24418
|
-
// when the first <legend> (in document order) is found
|
|
24419
|
-
if (child.tagName === 'LEGEND') {
|
|
24420
|
-
// if its parent <fieldset> is not nested in another disabled <fieldset>,
|
|
24421
|
-
// return whether `node` is a descendant of its first <legend>
|
|
24422
|
-
return matches$1.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
|
|
24423
|
-
}
|
|
24424
|
-
}
|
|
24425
|
-
// the disabled <fieldset> containing `node` has no <legend>
|
|
24426
|
-
return true;
|
|
24427
|
-
}
|
|
24428
|
-
parentNode = parentNode.parentElement;
|
|
24429
|
-
}
|
|
24430
|
-
}
|
|
24431
|
-
|
|
24432
|
-
// else, node's tabbable/focusable state should not be affected by a fieldset's
|
|
24433
|
-
// enabled/disabled state
|
|
24434
|
-
return false;
|
|
24435
|
-
};
|
|
24436
|
-
var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
|
|
24437
|
-
if (node.disabled || isHiddenInput(node) || isHidden(node, options) ||
|
|
24438
|
-
// For a details element with a summary, the summary element gets the focus
|
|
24439
|
-
isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
|
|
24440
|
-
return false;
|
|
24441
|
-
}
|
|
24442
|
-
return true;
|
|
24443
|
-
};
|
|
24444
|
-
var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
|
|
24445
|
-
if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
|
|
24446
|
-
return false;
|
|
24447
|
-
}
|
|
24448
|
-
return true;
|
|
24449
|
-
};
|
|
24450
|
-
var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
|
|
24451
|
-
var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
|
|
24452
|
-
if (isNaN(tabIndex) || tabIndex >= 0) {
|
|
24453
|
-
return true;
|
|
24454
|
-
}
|
|
24455
|
-
// If a custom element has an explicit negative tabindex,
|
|
24456
|
-
// browsers will not allow tab targeting said element's children.
|
|
24457
|
-
return false;
|
|
24458
|
-
};
|
|
24459
|
-
|
|
24460
|
-
/**
|
|
24461
|
-
* @param {Array.<Element|CandidateScope>} candidates
|
|
24462
|
-
* @returns Element[]
|
|
24463
|
-
*/
|
|
24464
|
-
var sortByOrder = function sortByOrder(candidates) {
|
|
24465
|
-
var regularTabbables = [];
|
|
24466
|
-
var orderedTabbables = [];
|
|
24467
|
-
candidates.forEach(function (item, i) {
|
|
24468
|
-
var isScope = !!item.scopeParent;
|
|
24469
|
-
var element = isScope ? item.scopeParent : item;
|
|
24470
|
-
var candidateTabindex = getTabindex(element, isScope);
|
|
24471
|
-
var elements = isScope ? sortByOrder(item.candidates) : element;
|
|
24472
|
-
if (candidateTabindex === 0) {
|
|
24473
|
-
isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
|
|
24474
|
-
} else {
|
|
24475
|
-
orderedTabbables.push({
|
|
24476
|
-
documentOrder: i,
|
|
24477
|
-
tabIndex: candidateTabindex,
|
|
24478
|
-
item: item,
|
|
24479
|
-
isScope: isScope,
|
|
24480
|
-
content: elements
|
|
24481
|
-
});
|
|
24482
|
-
}
|
|
24483
|
-
});
|
|
24484
|
-
return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
|
|
24485
|
-
sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
|
|
24486
|
-
return acc;
|
|
24487
|
-
}, []).concat(regularTabbables);
|
|
24488
|
-
};
|
|
24489
|
-
var tabbable = function tabbable(el, options) {
|
|
24490
|
-
options = options || {};
|
|
24491
|
-
var candidates;
|
|
24492
|
-
if (options.getShadowRoot) {
|
|
24493
|
-
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
24494
|
-
filter: isNodeMatchingSelectorTabbable.bind(null, options),
|
|
24495
|
-
flatten: false,
|
|
24496
|
-
getShadowRoot: options.getShadowRoot,
|
|
24497
|
-
shadowRootFilter: isValidShadowRootTabbable
|
|
24498
|
-
});
|
|
24499
|
-
} else {
|
|
24500
|
-
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
|
|
24501
|
-
}
|
|
24502
|
-
return sortByOrder(candidates);
|
|
24503
|
-
};
|
|
24504
|
-
var focusable = function focusable(el, options) {
|
|
24505
|
-
options = options || {};
|
|
24506
|
-
var candidates;
|
|
24507
|
-
if (options.getShadowRoot) {
|
|
24508
|
-
candidates = getCandidatesIteratively([el], options.includeContainer, {
|
|
24509
|
-
filter: isNodeMatchingSelectorFocusable.bind(null, options),
|
|
24510
|
-
flatten: true,
|
|
24511
|
-
getShadowRoot: options.getShadowRoot
|
|
24512
|
-
});
|
|
24513
|
-
} else {
|
|
24514
|
-
candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
|
|
24515
|
-
}
|
|
24516
|
-
return candidates;
|
|
24517
|
-
};
|
|
24518
|
-
var isTabbable = function isTabbable(node, options) {
|
|
24519
|
-
options = options || {};
|
|
24520
|
-
if (!node) {
|
|
24521
|
-
throw new Error('No node provided');
|
|
24522
|
-
}
|
|
24523
|
-
if (matches$1.call(node, candidateSelector) === false) {
|
|
24524
|
-
return false;
|
|
24525
|
-
}
|
|
24526
|
-
return isNodeMatchingSelectorTabbable(options, node);
|
|
24527
|
-
};
|
|
24528
|
-
var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
|
|
24529
|
-
var isFocusable = function isFocusable(node, options) {
|
|
24530
|
-
options = options || {};
|
|
24531
|
-
if (!node) {
|
|
24532
|
-
throw new Error('No node provided');
|
|
24533
|
-
}
|
|
24534
|
-
if (matches$1.call(node, focusableCandidateSelector) === false) {
|
|
24535
|
-
return false;
|
|
24536
|
-
}
|
|
24537
|
-
return isNodeMatchingSelectorFocusable(options, node);
|
|
24538
|
-
};
|
|
24539
|
-
|
|
24540
24504
|
/*!
|
|
24541
24505
|
* focus-trap 7.2.0
|
|
24542
24506
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
@@ -25267,9 +25231,6 @@ var createFocusTrap = function createFocusTrap(elements, userOptions) {
|
|
|
25267
25231
|
return trap;
|
|
25268
25232
|
};
|
|
25269
25233
|
|
|
25270
|
-
const tabbableOptions = {
|
|
25271
|
-
getShadowRoot: true
|
|
25272
|
-
};
|
|
25273
25234
|
const trapStack = [];
|
|
25274
25235
|
/**
|
|
25275
25236
|
* Helper to set up the FocusTrap component.
|
|
@@ -25317,12 +25278,19 @@ function deactivateFocusTrap(component) {
|
|
|
25317
25278
|
component.focusTrap?.deactivate();
|
|
25318
25279
|
}
|
|
25319
25280
|
/**
|
|
25320
|
-
* Helper to
|
|
25281
|
+
* Helper to update the element(s) that are used within the FocusTrap component.
|
|
25321
25282
|
*
|
|
25322
25283
|
* @param {FocusTrapComponent} component The FocusTrap component.
|
|
25284
|
+
* @example
|
|
25285
|
+
* const modal = document.querySelector("calcite-modal");
|
|
25286
|
+
* const input = document.createElement("calcite-input");
|
|
25287
|
+
* content.appendChild(input);
|
|
25288
|
+
* await input.componentOnReady();
|
|
25289
|
+
* await modal.updateFocusTrapElements();
|
|
25290
|
+
* requestAnimationFrame(() => input.setFocus());
|
|
25323
25291
|
*/
|
|
25324
|
-
function
|
|
25325
|
-
|
|
25292
|
+
function updateFocusTrapElements(component) {
|
|
25293
|
+
component.focusTrap?.updateContainerElements(component.focusTrapEl);
|
|
25326
25294
|
}
|
|
25327
25295
|
|
|
25328
25296
|
const modalCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-modal:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-modal{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-modal{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-modal{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-modal{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-modal{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-modal:root{--calcite-internal-duration-factor:0}}/*!@:root*/.sc-calcite-modal:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}/*!@:host([hidden])*/[hidden].sc-calcite-modal-h{display:none}/*!@:host*/.sc-calcite-modal-h{position:absolute;inset:0px;z-index:700;display:flex;opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-scrim-background-internal:rgba(0, 0, 0, 0.85)}/*!@.container*/.container.sc-calcite-modal{position:fixed;inset:0px;z-index:700;display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-ui-text-2);opacity:0;visibility:hidden !important;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}/*!@:host([scale=s])*/[scale=s].sc-calcite-modal-h{--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}/*!@:host([scale=m])*/[scale=m].sc-calcite-modal-h{--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}/*!@:host([scale=l])*/[scale=l].sc-calcite-modal-h{--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}/*!@.scrim*/.scrim.sc-calcite-modal{--calcite-scrim-background:var(--calcite-modal-scrim-background, var(--calcite-modal-scrim-background-internal));position:fixed;inset:0px;display:flex;overflow-y:hidden}/*!@.modal*/.modal.sc-calcite-modal{pointer-events:none;z-index:800;float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-ui-foreground-1);opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -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);-webkit-overflow-scrolling:touch;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}/*!@.modal--opening-idle*/.modal--opening-idle.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@.modal--opening-active*/.modal--opening-active.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-idle*/.modal--closing-idle.sc-calcite-modal{transform:var(--calcite-modal-shown-position)}/*!@.modal--closing-active*/.modal--closing-active.sc-calcite-modal{transform:var(--calcite-modal-hidden-position)}/*!@:host([open])*/[open].sc-calcite-modal-h{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@:host([open]) .container*/[open].sc-calcite-modal-h .container.sc-calcite-modal{opacity:1;visibility:visible !important;transition-delay:0ms}/*!@:host([open]) .container .modal--open*/[open].sc-calcite-modal-h .container.sc-calcite-modal .modal--open.sc-calcite-modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}/*!@.header*/.header.sc-calcite-modal{z-index:400;display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto}/*!@.close*/.close.sc-calcite-modal{order:2;margin:0px;cursor:pointer;-webkit-appearance:none;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-ui-text-3);outline-color:transparent;transition:all var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-start-end-radius:0.25rem;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}/*!@.close calcite-icon*/.close.sc-calcite-modal calcite-icon.sc-calcite-modal{pointer-events:none;vertical-align:-2px}/*!@.close:focus*/.close.sc-calcite-modal:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-2px}/*!@.close:hover, .close:focus, .close:active*/.close.sc-calcite-modal:hover,.close.sc-calcite-modal:focus,.close.sc-calcite-modal:active{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@.title*/.title.sc-calcite-modal{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}/*!@slot[name=header]::slotted(*),\n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-ui-text-1);font-size:var(--calcite-modal-title-text-internal)}/*!@.content*/.content.sc-calcite-modal{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0px;max-block-size:calc(100vh - 12rem);background-color:var(--calcite-modal-content-background, var(--calcite-ui-foreground-1));padding-block:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal));padding-inline:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}/*!@.content--no-footer*/.content--no-footer.sc-calcite-modal{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}/*!@slot[name=content]::slotted(*),\n*::slotted([slot=content])*/slot[name=content].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=content]{font-size:var(--calcite-modal-context-text-internal)}/*!@.footer*/.footer.sc-calcite-modal{z-index:400;margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-ui-border-3);background-color:var(--calcite-ui-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}/*!@.footer--hide-back .back,\n.footer--hide-secondary .secondary*/.footer--hide-back.sc-calcite-modal .back.sc-calcite-modal,.footer--hide-secondary.sc-calcite-modal .secondary.sc-calcite-modal{display:none}/*!@.back*/.back.sc-calcite-modal{display:block;margin-inline-end:auto}/*!@.secondary*/.secondary.sc-calcite-modal{margin-inline:0.25rem;display:block}/*!@slot[name=primary]*/slot[name=primary].sc-calcite-modal{display:block}/*!@:host([width=small]) .modal*/[width=small].sc-calcite-modal-h .modal.sc-calcite-modal{inline-size:auto}/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{max-inline-size:32rem}@media screen and (max-width: 35rem){/*!@:host([width=s]) .modal*/[width=s].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}/*!@:host([width=s]) .content*/[width=s].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=s][docked]) .container*/[width=s][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{max-inline-size:48rem}@media screen and (max-width: 51rem){/*!@:host([width=m]) .modal*/[width=m].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}/*!@:host([width=m]) .content*/[width=m].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=m][docked]) .container*/[width=m][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{max-inline-size:94rem}@media screen and (max-width: 97rem){/*!@:host([width=l]) .modal*/[width=l].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}/*!@:host([width=l]) .content*/[width=l].sc-calcite-modal-h .content.sc-calcite-modal{flex:1 1 auto;max-block-size:unset}/*!@:host([width=l][docked]) .container*/[width=l][docked].sc-calcite-modal-h .container.sc-calcite-modal{align-items:flex-end}}/*!@:host([fullscreen]) .modal*/[fullscreen].sc-calcite-modal-h .modal.sc-calcite-modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}/*!@:host([fullscreen]) .content*/[fullscreen].sc-calcite-modal-h .content.sc-calcite-modal{max-block-size:100%;flex:1 1 auto}/*!@:host([open][fullscreen]) .header*/[open][fullscreen].sc-calcite-modal-h .header.sc-calcite-modal{border-radius:0}/*!@:host([open][fullscreen]) .footer*/[open][fullscreen].sc-calcite-modal-h .footer.sc-calcite-modal{border-radius:0}/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{block-size:auto}/*!@:host([docked]) .content*/[docked].sc-calcite-modal-h .content.sc-calcite-modal{block-size:auto;flex:1 1 auto}@media screen and (max-width: 860px){/*!@:host([docked]) .modal*/[docked].sc-calcite-modal-h .modal.sc-calcite-modal{border-radius:var(--calcite-border-radius) var(--calcite-border-radius) 0 0}}/*!@:host([kind=brand]) .modal*/[kind=brand].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-brand)}/*!@:host([kind=danger]) .modal*/[kind=danger].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-danger)}/*!@:host([kind=info]) .modal*/[kind=info].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-info)}/*!@:host([kind=success]) .modal*/[kind=success].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-success)}/*!@:host([kind=warning]) .modal*/[kind=warning].sc-calcite-modal-h .modal.sc-calcite-modal{border-color:var(--calcite-ui-warning)}/*!@:host([kind=brand]) .modal,\n:host([kind=danger]) .modal,\n:host([kind=info]) .modal,\n:host([kind=success]) .modal,\n:host([kind=warning]) .modal*/[kind=brand].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=info].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=success].sc-calcite-modal-h .modal.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .modal.sc-calcite-modal{border-width:0px;border-block-start-width:4px;border-style:solid}/*!@:host([kind=brand]) .header,\n:host([kind=danger]) .header,\n:host([kind=info]) .header,\n:host([kind=success]) .header,\n:host([kind=warning]) .header*/[kind=brand].sc-calcite-modal-h .header.sc-calcite-modal,[kind=danger].sc-calcite-modal-h .header.sc-calcite-modal,[kind=info].sc-calcite-modal-h .header.sc-calcite-modal,[kind=success].sc-calcite-modal-h .header.sc-calcite-modal,[kind=warning].sc-calcite-modal-h .header.sc-calcite-modal{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){/*!@slot[name=header]::slotted(*),\n*::slotted([slot=header])*/slot[name=header].sc-calcite-modal-s>*,*.sc-calcite-modal-s>[slot=header]{font-size:var(--calcite-font-size-1)}/*!@.footer*/.footer.sc-calcite-modal{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){/*!@.footer*/.footer.sc-calcite-modal{flex-direction:column}/*!@.back,\n.secondary*/.back.sc-calcite-modal,.secondary.sc-calcite-modal{margin:0px;margin-block-end:0.25rem}}/*!@.container.slotted-in-shell*/.container.slotted-in-shell.sc-calcite-modal{position:absolute;pointer-events:auto}/*!@.container.slotted-in-shell calcite-scrim*/.container.slotted-in-shell.sc-calcite-modal calcite-scrim.sc-calcite-modal{position:absolute}";
|
|
@@ -25496,16 +25464,16 @@ class Modal {
|
|
|
25496
25464
|
*
|
|
25497
25465
|
* By default, tries to focus on focusable content. If there is none, it will focus on the close button.
|
|
25498
25466
|
* To focus on the close button, use the `close-button` focus ID.
|
|
25499
|
-
*
|
|
25500
|
-
* @param focusId
|
|
25501
25467
|
*/
|
|
25502
|
-
async setFocus(
|
|
25468
|
+
async setFocus() {
|
|
25503
25469
|
await componentLoaded(this);
|
|
25504
|
-
|
|
25505
|
-
|
|
25506
|
-
|
|
25507
|
-
|
|
25508
|
-
|
|
25470
|
+
focusFirstTabbable(this.focusTrapEl);
|
|
25471
|
+
}
|
|
25472
|
+
/**
|
|
25473
|
+
* Updates the element(s) that are used within the focus-trap of the component.
|
|
25474
|
+
*/
|
|
25475
|
+
async updateFocusTrapElements() {
|
|
25476
|
+
updateFocusTrapElements(this);
|
|
25509
25477
|
}
|
|
25510
25478
|
/**
|
|
25511
25479
|
* Sets the scroll top of the component's content.
|
|
@@ -25601,6 +25569,7 @@ class Modal {
|
|
|
25601
25569
|
"effectiveLocale": [32],
|
|
25602
25570
|
"defaultMessages": [32],
|
|
25603
25571
|
"setFocus": [64],
|
|
25572
|
+
"updateFocusTrapElements": [64],
|
|
25604
25573
|
"scrollContent": [64]
|
|
25605
25574
|
},
|
|
25606
25575
|
"$listeners$": [[8, "keydown", "handleEscape"]],
|
|
@@ -26244,29 +26213,10 @@ class Panel {
|
|
|
26244
26213
|
// --------------------------------------------------------------------------
|
|
26245
26214
|
/**
|
|
26246
26215
|
* Sets focus on the component.
|
|
26247
|
-
*
|
|
26248
|
-
* @param focusId
|
|
26249
26216
|
*/
|
|
26250
|
-
async setFocus(
|
|
26217
|
+
async setFocus() {
|
|
26251
26218
|
await componentLoaded(this);
|
|
26252
|
-
|
|
26253
|
-
if (focusId === "back-button") {
|
|
26254
|
-
backButtonEl?.setFocus();
|
|
26255
|
-
return;
|
|
26256
|
-
}
|
|
26257
|
-
if (focusId === "dismiss-button") {
|
|
26258
|
-
closeButtonEl?.setFocus();
|
|
26259
|
-
return;
|
|
26260
|
-
}
|
|
26261
|
-
if (backButtonEl) {
|
|
26262
|
-
backButtonEl.setFocus();
|
|
26263
|
-
return;
|
|
26264
|
-
}
|
|
26265
|
-
if (closeButtonEl) {
|
|
26266
|
-
closeButtonEl.setFocus();
|
|
26267
|
-
return;
|
|
26268
|
-
}
|
|
26269
|
-
containerEl?.focus();
|
|
26219
|
+
focusFirstTabbable(this.containerEl);
|
|
26270
26220
|
}
|
|
26271
26221
|
/**
|
|
26272
26222
|
* Scrolls the component's content to a specified set of coordinates.
|
|
@@ -27196,11 +27146,11 @@ class PopoverManager {
|
|
|
27196
27146
|
const composedPath = event.composedPath();
|
|
27197
27147
|
const togglePopover = this.queryPopover(composedPath);
|
|
27198
27148
|
if (togglePopover && !togglePopover.triggerDisabled) {
|
|
27199
|
-
togglePopover.
|
|
27149
|
+
togglePopover.open = !togglePopover.open;
|
|
27200
27150
|
}
|
|
27201
27151
|
Array.from(this.registeredElements.values())
|
|
27202
27152
|
.filter((popover) => popover !== togglePopover && popover.autoClose && popover.open && !composedPath.includes(popover))
|
|
27203
|
-
.forEach((popover) => popover.
|
|
27153
|
+
.forEach((popover) => (popover.open = false));
|
|
27204
27154
|
};
|
|
27205
27155
|
this.keyHandler = (event) => {
|
|
27206
27156
|
if (event.defaultPrevented) {
|
|
@@ -27240,7 +27190,7 @@ class PopoverManager {
|
|
|
27240
27190
|
}
|
|
27241
27191
|
}
|
|
27242
27192
|
closeAllPopovers() {
|
|
27243
|
-
Array.from(this.registeredElements.values()).forEach((popover) => popover.
|
|
27193
|
+
Array.from(this.registeredElements.values()).forEach((popover) => (popover.open = false));
|
|
27244
27194
|
}
|
|
27245
27195
|
addListeners() {
|
|
27246
27196
|
document.addEventListener("pointerdown", this.clickHandler, { capture: true });
|
|
@@ -27463,26 +27413,17 @@ class Popover {
|
|
|
27463
27413
|
}
|
|
27464
27414
|
/**
|
|
27465
27415
|
* Sets focus on the component.
|
|
27466
|
-
*
|
|
27467
|
-
* @param focusId
|
|
27468
27416
|
*/
|
|
27469
|
-
async setFocus(
|
|
27417
|
+
async setFocus() {
|
|
27470
27418
|
await componentLoaded(this);
|
|
27471
|
-
|
|
27472
|
-
|
|
27473
|
-
forceUpdate$1(closeButtonEl);
|
|
27474
|
-
closeButtonEl.setFocus();
|
|
27475
|
-
return;
|
|
27476
|
-
}
|
|
27477
|
-
focusFirstTabbable(this);
|
|
27419
|
+
forceUpdate$1(this.el);
|
|
27420
|
+
focusFirstTabbable(this.focusTrapEl);
|
|
27478
27421
|
}
|
|
27479
27422
|
/**
|
|
27480
|
-
*
|
|
27481
|
-
*
|
|
27482
|
-
* @param value
|
|
27423
|
+
* Updates the element(s) that are used within the focus-trap of the component.
|
|
27483
27424
|
*/
|
|
27484
|
-
async
|
|
27485
|
-
this
|
|
27425
|
+
async updateFocusTrapElements() {
|
|
27426
|
+
updateFocusTrapElements(this);
|
|
27486
27427
|
}
|
|
27487
27428
|
getReferenceElement() {
|
|
27488
27429
|
const { referenceElement, el } = this;
|
|
@@ -27511,12 +27452,12 @@ class Popover {
|
|
|
27511
27452
|
// --------------------------------------------------------------------------
|
|
27512
27453
|
renderCloseButton() {
|
|
27513
27454
|
const { messages, closable } = this;
|
|
27514
|
-
return closable ? (hAsync("div", { class: CSS$h.closeButtonContainer }, hAsync("calcite-action", { class: CSS$h.closeButton, onClick: this.hide, ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl), scale: this.scale, text: messages.close }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : this.scale })))) : null;
|
|
27455
|
+
return closable ? (hAsync("div", { class: CSS$h.closeButtonContainer, key: CSS$h.closeButtonContainer }, hAsync("calcite-action", { class: CSS$h.closeButton, onClick: this.hide, ref: (closeButtonEl) => (this.closeButtonEl = closeButtonEl), scale: this.scale, text: messages.close }, hAsync("calcite-icon", { icon: "x", scale: this.scale === "l" ? "m" : this.scale })))) : null;
|
|
27515
27456
|
}
|
|
27516
27457
|
renderHeader() {
|
|
27517
27458
|
const { heading, headingLevel } = this;
|
|
27518
27459
|
const headingNode = heading ? (hAsync(Heading, { class: CSS$h.heading, level: headingLevel }, heading)) : null;
|
|
27519
|
-
return headingNode ? (hAsync("div", { class: CSS$h.header }, headingNode, this.renderCloseButton())) : null;
|
|
27460
|
+
return headingNode ? (hAsync("div", { class: CSS$h.header, key: CSS$h.header }, headingNode, this.renderCloseButton())) : null;
|
|
27520
27461
|
}
|
|
27521
27462
|
render() {
|
|
27522
27463
|
const { effectiveReferenceElement, heading, label, open, pointerDisabled } = this;
|
|
@@ -27574,7 +27515,7 @@ class Popover {
|
|
|
27574
27515
|
"defaultMessages": [32],
|
|
27575
27516
|
"reposition": [64],
|
|
27576
27517
|
"setFocus": [64],
|
|
27577
|
-
"
|
|
27518
|
+
"updateFocusTrapElements": [64]
|
|
27578
27519
|
},
|
|
27579
27520
|
"$listeners$": undefined,
|
|
27580
27521
|
"$lazyBundleId$": "-",
|
|
@@ -27911,6 +27852,7 @@ class RadioButtonGroup {
|
|
|
27911
27852
|
//--------------------------------------------------------------------------
|
|
27912
27853
|
this.passPropsToRadioButtons = () => {
|
|
27913
27854
|
const radioButtons = this.el.querySelectorAll("calcite-radio-button");
|
|
27855
|
+
this.selectedItem = Array.from(radioButtons).find((radioButton) => radioButton.checked) || null;
|
|
27914
27856
|
if (radioButtons.length > 0) {
|
|
27915
27857
|
radioButtons.forEach((radioButton) => {
|
|
27916
27858
|
radioButton.disabled = this.disabled || radioButton.disabled;
|
|
@@ -27926,6 +27868,7 @@ class RadioButtonGroup {
|
|
|
27926
27868
|
this.layout = "horizontal";
|
|
27927
27869
|
this.name = undefined;
|
|
27928
27870
|
this.required = false;
|
|
27871
|
+
this.selectedItem = null;
|
|
27929
27872
|
this.scale = "m";
|
|
27930
27873
|
}
|
|
27931
27874
|
onDisabledChange() {
|
|
@@ -27958,7 +27901,8 @@ class RadioButtonGroup {
|
|
|
27958
27901
|
//
|
|
27959
27902
|
//--------------------------------------------------------------------------
|
|
27960
27903
|
radioButtonChangeHandler(event) {
|
|
27961
|
-
this.
|
|
27904
|
+
this.selectedItem = event.target;
|
|
27905
|
+
this.calciteRadioButtonGroupChange.emit();
|
|
27962
27906
|
}
|
|
27963
27907
|
// --------------------------------------------------------------------------
|
|
27964
27908
|
//
|
|
@@ -27986,6 +27930,7 @@ class RadioButtonGroup {
|
|
|
27986
27930
|
"layout": [513],
|
|
27987
27931
|
"name": [513],
|
|
27988
27932
|
"required": [516],
|
|
27933
|
+
"selectedItem": [1040],
|
|
27989
27934
|
"scale": [513]
|
|
27990
27935
|
},
|
|
27991
27936
|
"$listeners$": [[0, "calciteRadioButtonChange", "radioButtonChangeHandler"]],
|
|
@@ -27994,7 +27939,7 @@ class RadioButtonGroup {
|
|
|
27994
27939
|
}; }
|
|
27995
27940
|
}
|
|
27996
27941
|
|
|
27997
|
-
const radioGroupCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-radio-group:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-radio-group{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-radio-group{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-group{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-group{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-group{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-radio-group:root{--calcite-internal-duration-factor:0}}/*!@:root*/.sc-calcite-radio-group:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}/*!@:host([hidden])*/[hidden].sc-calcite-radio-group-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-radio-group-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-radio-group-h{display:flex;background-color:var(--calcite-ui-foreground-1);inline-size:-moz-fit-content;inline-size:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-radio-group-h[disabled] .sc-calcite-radio-group-s>[calcite-hydrated][disabled],[disabled].sc-calcite-radio-group-h [calcite-hydrated][disabled].sc-calcite-radio-group{opacity:1}/*!@:host([layout=vertical])*/[layout=vertical].sc-calcite-radio-group-h{flex-direction:column;align-items:flex-start;align-self:flex-start}/*!@:host([width=full])*/[width=full].sc-calcite-radio-group-h{inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content}/*!@:host([width=full]) ::slotted(calcite-radio-group-item)*/.sc-calcite-radio-group-h[width=full] .sc-calcite-radio-group-s>calcite-radio-group-item{flex:1 1 auto}/*!@:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item)*/.sc-calcite-radio-group-h[width=full][layout=vertical] .sc-calcite-radio-group-s>calcite-radio-group-item{justify-content:flex-start}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-radio-group-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}";
|
|
27942
|
+
const radioGroupCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-radio-group:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-radio-group{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-radio-group{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-group{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-group{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-group{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-radio-group:root{--calcite-internal-duration-factor:0}}/*!@:root*/.sc-calcite-radio-group:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}/*!@:host([hidden])*/[hidden].sc-calcite-radio-group-h{display:none}/*!@:host([disabled])*/[disabled].sc-calcite-radio-group-h{pointer-events:none;cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-ui-opacity-disabled)}/*!@:host*/.sc-calcite-radio-group-h{display:flex;background-color:var(--calcite-ui-foreground-1);inline-size:-moz-fit-content;inline-size:fit-content;outline:1px solid var(--calcite-ui-border-input);outline-offset:-1px}/*!@:host([appearance=outline])*/[appearance=outline].sc-calcite-radio-group-h{background-color:transparent}/*!@:host([disabled]) ::slotted([calcite-hydrated][disabled]),\n:host([disabled]) [calcite-hydrated][disabled]*/.sc-calcite-radio-group-h[disabled] .sc-calcite-radio-group-s>[calcite-hydrated][disabled],[disabled].sc-calcite-radio-group-h [calcite-hydrated][disabled].sc-calcite-radio-group{opacity:1}/*!@:host([layout=vertical])*/[layout=vertical].sc-calcite-radio-group-h{flex-direction:column;align-items:flex-start;align-self:flex-start}/*!@:host([width=full])*/[width=full].sc-calcite-radio-group-h{inline-size:100%;min-inline-size:-moz-fit-content;min-inline-size:fit-content}/*!@:host([width=full]) ::slotted(calcite-radio-group-item)*/.sc-calcite-radio-group-h[width=full] .sc-calcite-radio-group-s>calcite-radio-group-item{flex:1 1 auto}/*!@:host([width=full][layout=vertical]) ::slotted(calcite-radio-group-item)*/.sc-calcite-radio-group-h[width=full][layout=vertical] .sc-calcite-radio-group-s>calcite-radio-group-item{justify-content:flex-start}/*!@::slotted(input[slot=hidden-form-input])*/.sc-calcite-radio-group-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}";
|
|
27998
27943
|
|
|
27999
27944
|
/**
|
|
28000
27945
|
* @slot - A slot for adding `calcite-radio-group-item`s.
|
|
@@ -28204,7 +28149,7 @@ const CSS$f = {
|
|
|
28204
28149
|
radioGroupItemIcon: "radio-group-item-icon"
|
|
28205
28150
|
};
|
|
28206
28151
|
|
|
28207
|
-
const radioGroupItemCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-radio-group-item:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-radio-group-item{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-radio-group-item{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-group-item{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-group-item{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-group-item{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-radio-group-item:root{--calcite-internal-duration-factor:0}}/*!@:root*/.sc-calcite-radio-group-item:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}/*!@:host([hidden])*/[hidden].sc-calcite-radio-group-item-h{display:none}/*!@:host*/.sc-calcite-radio-group-item-h{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}/*!@:host label*/.sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-ui-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}/*!@.label--horizontal*/.label--horizontal.sc-calcite-radio-group-item{justify-content:center}/*!@:host*/.sc-calcite-radio-group-item-h{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-radio-group-item-h:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}/*!@.label--scale-s*/.label--scale-s.sc-calcite-radio-group-item{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}/*!@.label--scale-m*/.label--scale-m.sc-calcite-radio-group-item{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}/*!@.label--scale-l*/.label--scale-l.sc-calcite-radio-group-item{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host(:hover) label*/.sc-calcite-radio-group-item-h:hover label.sc-calcite-radio-group-item{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@:host(:active) label*/.sc-calcite-radio-group-item-h:active label.sc-calcite-radio-group-item{background-color:var(--calcite-ui-foreground-3)}/*!@:host([checked]) label*/[checked].sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}/*!@:host([checked]) .label--outline*/[checked].sc-calcite-radio-group-item-h .label--outline.sc-calcite-radio-group-item{border-color:var(--calcite-ui-brand);background-color:
|
|
28152
|
+
const radioGroupItemCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-radio-group-item:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-radio-group-item{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-radio-group-item{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-radio-group-item{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-radio-group-item{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-radio-group-item{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-radio-group-item:root{--calcite-internal-duration-factor:0}}/*!@:root*/.sc-calcite-radio-group-item:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}/*!@:host([hidden])*/[hidden].sc-calcite-radio-group-item-h{display:none}/*!@:host*/.sc-calcite-radio-group-item-h{display:flex;cursor:pointer;align-self:stretch;font-weight:var(--calcite-font-weight-normal);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-animation-timing) ease-in-out}/*!@:host label*/.sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item{pointer-events:none;margin:0.125rem;box-sizing:border-box;display:flex;flex:1 1 0%;align-items:center;color:var(--calcite-ui-text-3);transition:background-color var(--calcite-internal-animation-timing-fast) ease-in-out, border-color var(--calcite-internal-animation-timing-fast) ease-in-out, color var(--calcite-internal-animation-timing-fast) ease-in-out}/*!@.label--horizontal*/.label--horizontal.sc-calcite-radio-group-item{justify-content:center}/*!@:host*/.sc-calcite-radio-group-item-h{outline-color:transparent}/*!@:host(:focus)*/.sc-calcite-radio-group-item-h:focus{outline:2px solid var(--calcite-ui-brand);outline-offset:-1px}/*!@.label--scale-s*/.label--scale-s.sc-calcite-radio-group-item{padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem;padding-block:0.125rem}/*!@.label--scale-m*/.label--scale-m.sc-calcite-radio-group-item{padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;padding-block:0.375rem}/*!@.label--scale-l*/.label--scale-l.sc-calcite-radio-group-item{padding-inline:1rem;padding-block:0.625rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}/*!@:host(:hover) label*/.sc-calcite-radio-group-item-h:hover label.sc-calcite-radio-group-item{background-color:var(--calcite-ui-foreground-2);color:var(--calcite-ui-text-1)}/*!@:host(:active) label*/.sc-calcite-radio-group-item-h:active label.sc-calcite-radio-group-item{background-color:var(--calcite-ui-foreground-3)}/*!@:host([checked]) label*/[checked].sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item{cursor:default;border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-brand);color:var(--calcite-ui-background)}/*!@:host([checked]) .label--outline,\n:host([checked]) .label--outline-fill*/[checked].sc-calcite-radio-group-item-h .label--outline.sc-calcite-radio-group-item,[checked].sc-calcite-radio-group-item-h .label--outline-fill.sc-calcite-radio-group-item{border-color:var(--calcite-ui-brand);background-color:var(--calcite-ui-foreground-1);box-shadow:inset 0 0 0 1px var(--calcite-ui-brand);color:var(--calcite-ui-brand)}/*!@:host([checked]) .label--outline*/[checked].sc-calcite-radio-group-item-h .label--outline.sc-calcite-radio-group-item{background-color:transparent}/*!@::slotted(input)*/.sc-calcite-radio-group-item-s>input{display:none}@media (forced-colors: active){/*!@:host([checked]) label*/[checked].sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item{background-color:highlight}/*!@:host([checked]) .label--outline,\n:host([checked]) .label--outline-fill*/[checked].sc-calcite-radio-group-item-h .label--outline.sc-calcite-radio-group-item,[checked].sc-calcite-radio-group-item-h .label--outline-fill.sc-calcite-radio-group-item{outline:2px solid transparent;outline-offset:2px}/*!@:host([checked]) label:not([class~=label--outline]) .radio-group-item-icon*/[checked].sc-calcite-radio-group-item-h label.sc-calcite-radio-group-item:not([class~=label--outline]) .radio-group-item-icon.sc-calcite-radio-group-item{color:highlightText}}/*!@.radio-group-item-icon*/.radio-group-item-icon.sc-calcite-radio-group-item{position:relative;margin:0px;display:inline-flex;line-height:inherit}/*!@:host([icon-start]) .label--scale-s .radio-group-item-icon*/[icon-start].sc-calcite-radio-group-item-h .label--scale-s.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-end:0.5rem}/*!@:host([icon-end]) .label--scale-s .radio-group-item-icon*/[icon-end].sc-calcite-radio-group-item-h .label--scale-s.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-start:0.5rem}/*!@:host([icon-start]) .label--scale-m .radio-group-item-icon*/[icon-start].sc-calcite-radio-group-item-h .label--scale-m.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-end:0.75rem}/*!@:host([icon-end]) .label--scale-m .radio-group-item-icon*/[icon-end].sc-calcite-radio-group-item-h .label--scale-m.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-start:0.75rem}/*!@:host([icon-start]) .label--scale-l .radio-group-item-icon*/[icon-start].sc-calcite-radio-group-item-h .label--scale-l.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-end:1rem}/*!@:host([icon-end]) .label--scale-l .radio-group-item-icon*/[icon-end].sc-calcite-radio-group-item-h .label--scale-l.sc-calcite-radio-group-item .radio-group-item-icon.sc-calcite-radio-group-item{margin-inline-start:1rem}";
|
|
28208
28153
|
|
|
28209
28154
|
class RadioGroupItem {
|
|
28210
28155
|
constructor(hostRef) {
|
|
@@ -28231,7 +28176,8 @@ class RadioGroupItem {
|
|
|
28231
28176
|
"label--scale-m": scale === "m",
|
|
28232
28177
|
"label--scale-l": scale === "l",
|
|
28233
28178
|
"label--horizontal": layout === "horizontal",
|
|
28234
|
-
"label--outline": appearance === "outline"
|
|
28179
|
+
"label--outline": appearance === "outline",
|
|
28180
|
+
"label--outline-fill": appearance === "outline-fill"
|
|
28235
28181
|
} }, this.iconStart ? iconStartEl : null, hAsync("slot", null, value), hAsync("slot", { name: SLOTS$8.input }), this.iconEnd ? iconEndEl : null)));
|
|
28236
28182
|
}
|
|
28237
28183
|
get el() { return getElement(this); }
|
|
@@ -28835,7 +28781,7 @@ const shellCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{
|
|
|
28835
28781
|
* @slot panel-start - A slot for adding the starting `calcite-shell-panel`.
|
|
28836
28782
|
* @slot panel-end - A slot for adding the ending `calcite-shell-panel`.
|
|
28837
28783
|
* @slot center-row - A slot for adding content to the center row.
|
|
28838
|
-
* @slot
|
|
28784
|
+
* @slot modals - A slot for adding `calcite-modal` components. When placed in this slot, the modal position will be constrained to the extent of the shell.
|
|
28839
28785
|
* @slot alerts - A slot for adding `calcite-alert` components. When placed in this slot, the alert position will be constrained to the extent of the shell.
|
|
28840
28786
|
*/
|
|
28841
28787
|
class Shell {
|
|
@@ -33414,6 +33360,7 @@ class Stepper {
|
|
|
33414
33360
|
this.layout = "horizontal";
|
|
33415
33361
|
this.numbered = false;
|
|
33416
33362
|
this.numberingSystem = undefined;
|
|
33363
|
+
this.selectedItem = null;
|
|
33417
33364
|
this.scale = "m";
|
|
33418
33365
|
}
|
|
33419
33366
|
//--------------------------------------------------------------------------
|
|
@@ -33477,16 +33424,14 @@ class Stepper {
|
|
|
33477
33424
|
const { position } = event.detail;
|
|
33478
33425
|
if (typeof position === "number") {
|
|
33479
33426
|
this.currentPosition = position;
|
|
33427
|
+
this.selectedItem = event.target;
|
|
33480
33428
|
}
|
|
33481
33429
|
this.calciteInternalStepperItemChange.emit({
|
|
33482
33430
|
position
|
|
33483
33431
|
});
|
|
33484
33432
|
}
|
|
33485
|
-
handleUserRequestedStepperItemSelect(
|
|
33486
|
-
|
|
33487
|
-
this.calciteStepperItemChange.emit({
|
|
33488
|
-
position
|
|
33489
|
-
});
|
|
33433
|
+
handleUserRequestedStepperItemSelect() {
|
|
33434
|
+
this.calciteStepperItemChange.emit();
|
|
33490
33435
|
}
|
|
33491
33436
|
//--------------------------------------------------------------------------
|
|
33492
33437
|
//
|
|
@@ -33574,6 +33519,7 @@ class Stepper {
|
|
|
33574
33519
|
"layout": [513],
|
|
33575
33520
|
"numbered": [516],
|
|
33576
33521
|
"numberingSystem": [513, "numbering-system"],
|
|
33522
|
+
"selectedItem": [1040],
|
|
33577
33523
|
"scale": [513],
|
|
33578
33524
|
"nextStep": [64],
|
|
33579
33525
|
"prevStep": [64],
|
|
@@ -34028,28 +33974,28 @@ class TabNav {
|
|
|
34028
33974
|
};
|
|
34029
33975
|
this.storageId = undefined;
|
|
34030
33976
|
this.syncId = undefined;
|
|
33977
|
+
this.selectedTitle = null;
|
|
34031
33978
|
this.scale = "m";
|
|
34032
33979
|
this.layout = "inline";
|
|
34033
33980
|
this.position = "bottom";
|
|
34034
33981
|
this.bordered = false;
|
|
34035
33982
|
this.indicatorOffset = undefined;
|
|
34036
33983
|
this.indicatorWidth = undefined;
|
|
34037
|
-
this.
|
|
34038
|
-
this.selectedTabEl = undefined;
|
|
33984
|
+
this.selectedTabId = undefined;
|
|
34039
33985
|
}
|
|
34040
|
-
async
|
|
33986
|
+
async selectedTabIdChanged() {
|
|
34041
33987
|
if (localStorage &&
|
|
34042
33988
|
this.storageId &&
|
|
34043
|
-
this.
|
|
34044
|
-
this.
|
|
34045
|
-
localStorage.setItem(`calcite-tab-nav-${this.storageId}`, JSON.stringify(this.
|
|
33989
|
+
this.selectedTabId !== undefined &&
|
|
33990
|
+
this.selectedTabId !== null) {
|
|
33991
|
+
localStorage.setItem(`calcite-tab-nav-${this.storageId}`, JSON.stringify(this.selectedTabId));
|
|
34046
33992
|
}
|
|
34047
33993
|
this.calciteInternalTabChange.emit({
|
|
34048
|
-
tab: this.
|
|
33994
|
+
tab: this.selectedTabId
|
|
34049
33995
|
});
|
|
34050
|
-
this.
|
|
33996
|
+
this.selectedTitle = await this.getTabTitleById(this.selectedTabId);
|
|
34051
33997
|
}
|
|
34052
|
-
|
|
33998
|
+
selectedTitleChanged() {
|
|
34053
33999
|
this.updateOffsetPosition();
|
|
34054
34000
|
this.updateActiveWidth();
|
|
34055
34001
|
// reset the animation time on tab selection
|
|
@@ -34071,7 +34017,7 @@ class TabNav {
|
|
|
34071
34017
|
const storageKey = `calcite-tab-nav-${this.storageId}`;
|
|
34072
34018
|
if (localStorage && this.storageId && localStorage.getItem(storageKey)) {
|
|
34073
34019
|
const storedTab = JSON.parse(localStorage.getItem(storageKey));
|
|
34074
|
-
this.
|
|
34020
|
+
this.selectedTabId = storedTab;
|
|
34075
34021
|
}
|
|
34076
34022
|
}
|
|
34077
34023
|
componentWillRender() {
|
|
@@ -34081,7 +34027,7 @@ class TabNav {
|
|
|
34081
34027
|
this.scale = parentTabsEl?.scale;
|
|
34082
34028
|
this.bordered = parentTabsEl?.bordered;
|
|
34083
34029
|
// fix issue with active tab-title not lining up with blue indicator
|
|
34084
|
-
if (this.
|
|
34030
|
+
if (this.selectedTitle) {
|
|
34085
34031
|
this.updateOffsetPosition();
|
|
34086
34032
|
}
|
|
34087
34033
|
}
|
|
@@ -34089,7 +34035,7 @@ class TabNav {
|
|
|
34089
34035
|
// if every tab title is active select the first tab.
|
|
34090
34036
|
if (this.tabTitles.length &&
|
|
34091
34037
|
this.tabTitles.every((title) => !title.selected) &&
|
|
34092
|
-
!this.
|
|
34038
|
+
!this.selectedTabId) {
|
|
34093
34039
|
this.tabTitles[0].getTabIdentifier().then((tab) => {
|
|
34094
34040
|
this.calciteInternalTabChange.emit({
|
|
34095
34041
|
tab
|
|
@@ -34122,7 +34068,7 @@ class TabNav {
|
|
|
34122
34068
|
this.handleTabFocus(event, event.target, "last");
|
|
34123
34069
|
}
|
|
34124
34070
|
internalActivateTabHandler(event) {
|
|
34125
|
-
this.
|
|
34071
|
+
this.selectedTabId = event.detail.tab
|
|
34126
34072
|
? event.detail.tab
|
|
34127
34073
|
: this.getIndexOfTabTitle(event.target);
|
|
34128
34074
|
event.stopPropagation();
|
|
@@ -34140,15 +34086,15 @@ class TabNav {
|
|
|
34140
34086
|
*/
|
|
34141
34087
|
updateTabTitles(event) {
|
|
34142
34088
|
if (event.target.selected) {
|
|
34143
|
-
this.
|
|
34089
|
+
this.selectedTabId = event.detail;
|
|
34144
34090
|
}
|
|
34145
34091
|
}
|
|
34146
34092
|
globalInternalTabChangeHandler(event) {
|
|
34147
34093
|
if (this.syncId &&
|
|
34148
34094
|
event.target !== this.el &&
|
|
34149
34095
|
event.target.syncId === this.syncId &&
|
|
34150
|
-
this.
|
|
34151
|
-
this.
|
|
34096
|
+
this.selectedTabId !== event.detail.tab) {
|
|
34097
|
+
this.selectedTabId = event.detail.tab;
|
|
34152
34098
|
}
|
|
34153
34099
|
event.stopPropagation();
|
|
34154
34100
|
}
|
|
@@ -34158,14 +34104,14 @@ class TabNav {
|
|
|
34158
34104
|
updateOffsetPosition() {
|
|
34159
34105
|
const dir = getElementDir(this.el);
|
|
34160
34106
|
const navWidth = this.activeIndicatorContainerEl?.offsetWidth;
|
|
34161
|
-
const tabLeft = this.
|
|
34162
|
-
const tabWidth = this.
|
|
34107
|
+
const tabLeft = this.selectedTitle?.offsetLeft;
|
|
34108
|
+
const tabWidth = this.selectedTitle?.offsetWidth;
|
|
34163
34109
|
const offsetRight = navWidth - (tabLeft + tabWidth);
|
|
34164
34110
|
this.indicatorOffset =
|
|
34165
34111
|
dir !== "rtl" ? tabLeft - this.tabNavEl?.scrollLeft : offsetRight + this.tabNavEl?.scrollLeft;
|
|
34166
34112
|
}
|
|
34167
34113
|
updateActiveWidth() {
|
|
34168
|
-
this.indicatorWidth = this.
|
|
34114
|
+
this.indicatorWidth = this.selectedTitle?.offsetWidth;
|
|
34169
34115
|
}
|
|
34170
34116
|
getIndexOfTabTitle(el, tabTitles = this.tabTitles) {
|
|
34171
34117
|
// In most cases, since these indexes correlate with tab contents, we want to consider all tab titles.
|
|
@@ -34185,8 +34131,8 @@ class TabNav {
|
|
|
34185
34131
|
}
|
|
34186
34132
|
get el() { return getElement(this); }
|
|
34187
34133
|
static get watchers() { return {
|
|
34188
|
-
"
|
|
34189
|
-
"
|
|
34134
|
+
"selectedTabId": ["selectedTabIdChanged"],
|
|
34135
|
+
"selectedTitle": ["selectedTitleChanged"]
|
|
34190
34136
|
}; }
|
|
34191
34137
|
static get style() { return tabNavCss; }
|
|
34192
34138
|
static get cmpMeta() { return {
|
|
@@ -34195,14 +34141,14 @@ class TabNav {
|
|
|
34195
34141
|
"$members$": {
|
|
34196
34142
|
"storageId": [513, "storage-id"],
|
|
34197
34143
|
"syncId": [513, "sync-id"],
|
|
34144
|
+
"selectedTitle": [1040],
|
|
34198
34145
|
"scale": [1537],
|
|
34199
34146
|
"layout": [1537],
|
|
34200
34147
|
"position": [1537],
|
|
34201
34148
|
"bordered": [1540],
|
|
34202
34149
|
"indicatorOffset": [1026, "indicator-offset"],
|
|
34203
34150
|
"indicatorWidth": [1026, "indicator-width"],
|
|
34204
|
-
"
|
|
34205
|
-
"selectedTabEl": [32]
|
|
34151
|
+
"selectedTabId": [32]
|
|
34206
34152
|
},
|
|
34207
34153
|
"$listeners$": [[0, "calciteInternalTabsFocusPrevious", "focusPreviousTabHandler"], [0, "calciteInternalTabsFocusNext", "focusNextTabHandler"], [0, "calciteInternalTabsFocusFirst", "focusFirstTabHandler"], [0, "calciteInternalTabsFocusLast", "focusLastTabHandler"], [0, "calciteInternalTabsActivate", "internalActivateTabHandler"], [0, "calciteTabsActivate", "activateTabHandler"], [0, "calciteInternalTabTitleRegister", "updateTabTitles"], [16, "calciteInternalTabChange", "globalInternalTabChangeHandler"], [0, "calciteInternalTabIconChanged", "iconStartChangeHandler"]],
|
|
34208
34154
|
"$lazyBundleId$": "-",
|
|
@@ -34446,7 +34392,7 @@ const tabsCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0
|
|
|
34446
34392
|
|
|
34447
34393
|
/**
|
|
34448
34394
|
* @slot - A slot for adding `calcite-tab`s.
|
|
34449
|
-
* @slot
|
|
34395
|
+
* @slot title-group - A slot for adding a `calcite-tab-nav`.
|
|
34450
34396
|
*/
|
|
34451
34397
|
class Tabs {
|
|
34452
34398
|
constructor(hostRef) {
|
|
@@ -34936,7 +34882,7 @@ const CSS$5 = {
|
|
|
34936
34882
|
meridiemStart: "meridiem--start"
|
|
34937
34883
|
};
|
|
34938
34884
|
|
|
34939
|
-
const timePickerCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-time-picker:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-time-picker{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-time-picker{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-time-picker{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-time-picker{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-time-picker{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-time-picker:root{--calcite-internal-duration-factor:0}}/*!@:root*/.sc-calcite-time-picker:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}/*!@:host([hidden])*/[hidden].sc-calcite-time-picker-h{display:none}/*!@:host*/.sc-calcite-time-picker-h{display:inline-block}/*!@.time-picker*/.time-picker.sc-calcite-time-picker{display:flex;-webkit-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);--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)}/*!@.time-picker .column*/.time-picker.sc-calcite-time-picker .column.sc-calcite-time-picker{display:flex;flex-direction:column}/*!@.time-picker .meridiem--start*/.time-picker.sc-calcite-time-picker .meridiem--start.sc-calcite-time-picker{order:-1}/*!@.time-picker .button*/.time-picker.sc-calcite-time-picker .button.sc-calcite-time-picker{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1)}/*!@.time-picker .button:hover, .time-picker .button:focus*/.time-picker.sc-calcite-time-picker .button.sc-calcite-time-picker:hover,.time-picker.sc-calcite-time-picker .button.sc-calcite-time-picker:focus{background-color:var(--calcite-ui-foreground-2);outline:2px solid transparent;outline-offset:2px}/*!@.time-picker .button:active*/.time-picker.sc-calcite-time-picker .button.sc-calcite-time-picker:active{background-color:var(--calcite-ui-foreground-3)}/*!@.time-picker .button.top-left*/.time-picker.sc-calcite-time-picker .button.top-left.sc-calcite-time-picker{border-start-start-radius:var(--calcite-border-radius)}/*!@.time-picker .button.bottom-left*/.time-picker.sc-calcite-time-picker .button.bottom-left.sc-calcite-time-picker{border-end-start-radius:var(--calcite-border-radius)}/*!@.time-picker .button.top-right*/.time-picker.sc-calcite-time-picker .button.top-right.sc-calcite-time-picker{border-start-end-radius:var(--calcite-border-radius)}/*!@.time-picker .button.bottom-right*/.time-picker.sc-calcite-time-picker .button.bottom-right.sc-calcite-time-picker{border-end-end-radius:var(--calcite-border-radius)}/*!@.time-picker .button calcite-icon*/.time-picker.sc-calcite-time-picker .button.sc-calcite-time-picker calcite-icon.sc-calcite-time-picker{color:var(--calcite-ui-text-3)}/*!@.time-picker .input*/.time-picker.sc-calcite-time-picker .input.sc-calcite-time-picker{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium)}/*!@.time-picker .input:hover*/.time-picker.sc-calcite-time-picker .input.sc-calcite-time-picker:hover{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-2)}/*!@.time-picker .input:focus, .time-picker .input:hover:focus*/.time-picker.sc-calcite-time-picker .input.sc-calcite-time-picker:focus,.time-picker.sc-calcite-time-picker .input.sc-calcite-time-picker:hover:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 2px var(--calcite-ui-brand)}/*!@.time-picker.scale-s*/.time-picker.scale-s.sc-calcite-time-picker{font-size:var(--calcite-font-size--1)}/*!@.time-picker.scale-s .button,\n.time-picker.scale-s .input*/.time-picker.scale-s.sc-calcite-time-picker .button.sc-calcite-time-picker,.time-picker.scale-s.sc-calcite-time-picker .input.sc-calcite-time-picker{padding-inline:0.75rem;padding-block:0.25rem}/*!@.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child*/.time-picker.scale-s.sc-calcite-time-picker:not(.show-meridiem) .delimiter.sc-calcite-time-picker:last-child{padding-inline-end:0.75rem}/*!@.time-picker.scale-m*/.time-picker.scale-m.sc-calcite-time-picker{font-size:var(--calcite-font-size-0)}/*!@.time-picker.scale-m .button,\n.time-picker.scale-m .input*/.time-picker.scale-m.sc-calcite-time-picker .button.sc-calcite-time-picker,.time-picker.scale-m.sc-calcite-time-picker .input.sc-calcite-time-picker{padding-inline:1rem;padding-block:0.5rem}/*!@.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child*/.time-picker.scale-m.sc-calcite-time-picker:not(.show-meridiem) .delimiter.sc-calcite-time-picker:last-child{padding-inline-end:1rem}/*!@.time-picker.scale-l*/.time-picker.scale-l.sc-calcite-time-picker{font-size:var(--calcite-font-size-1)}/*!@.time-picker.scale-l .button,\n.time-picker.scale-l .input*/.time-picker.scale-l.sc-calcite-time-picker .button.sc-calcite-time-picker,.time-picker.scale-l.sc-calcite-time-picker .input.sc-calcite-time-picker{padding-inline:1.25rem;padding-block:0.75rem}/*!@.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child*/.time-picker.scale-l.sc-calcite-time-picker:not(.show-meridiem) .delimiter.sc-calcite-time-picker:last-child{padding-inline-end:1.25rem}";
|
|
34885
|
+
const timePickerCss = "@keyframes in{0%{opacity:0}100%{opacity:1}}@keyframes in-down{0%{opacity:0;transform:translate3D(0, -5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-up{0%{opacity:0;transform:translate3D(0, 5px, 0)}100%{opacity:1;transform:translate3D(0, 0, 0)}}@keyframes in-scale{0%{opacity:0;transform:scale3D(0.95, 0.95, 1)}100%{opacity:1;transform:scale3D(1, 1, 1)}}/*!@:root*/.sc-calcite-time-picker:root{--calcite-animation-timing:calc(150ms * var(--calcite-internal-duration-factor));--calcite-internal-duration-factor:var(--calcite-duration-factor, 1);--calcite-internal-animation-timing-fast:calc(100ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-medium:calc(200ms * var(--calcite-internal-duration-factor));--calcite-internal-animation-timing-slow:calc(300ms * var(--calcite-internal-duration-factor))}/*!@.calcite-animate*/.calcite-animate.sc-calcite-time-picker{opacity:0;animation-fill-mode:both;animation-duration:var(--calcite-animation-timing)}/*!@.calcite-animate__in*/.calcite-animate__in.sc-calcite-time-picker{animation-name:in}/*!@.calcite-animate__in-down*/.calcite-animate__in-down.sc-calcite-time-picker{animation-name:in-down}/*!@.calcite-animate__in-up*/.calcite-animate__in-up.sc-calcite-time-picker{animation-name:in-up}/*!@.calcite-animate__in-scale*/.calcite-animate__in-scale.sc-calcite-time-picker{animation-name:in-scale}@media (prefers-reduced-motion: reduce){/*!@:root*/.sc-calcite-time-picker:root{--calcite-internal-duration-factor:0}}/*!@:root*/.sc-calcite-time-picker:root{--calcite-floating-ui-transition:var(--calcite-animation-timing);--calcite-floating-ui-z-index:600}/*!@:host([hidden])*/[hidden].sc-calcite-time-picker-h{display:none}/*!@:host*/.sc-calcite-time-picker-h{display:inline-block}/*!@.time-picker*/.time-picker.sc-calcite-time-picker{display:flex;-webkit-user-select:none;user-select:none;align-items:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-ui-text-1);--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)}/*!@.time-picker .column*/.time-picker.sc-calcite-time-picker .column.sc-calcite-time-picker{display:flex;flex-direction:column}/*!@.time-picker .meridiem--start*/.time-picker.sc-calcite-time-picker .meridiem--start.sc-calcite-time-picker{order:-1}/*!@.time-picker .button*/.time-picker.sc-calcite-time-picker .button.sc-calcite-time-picker{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1)}/*!@.time-picker .button:hover, .time-picker .button:focus*/.time-picker.sc-calcite-time-picker .button.sc-calcite-time-picker:hover,.time-picker.sc-calcite-time-picker .button.sc-calcite-time-picker:focus{background-color:var(--calcite-ui-foreground-2);outline:2px solid transparent;outline-offset:2px;z-index:400;outline-offset:0}/*!@.time-picker .button:active*/.time-picker.sc-calcite-time-picker .button.sc-calcite-time-picker:active{background-color:var(--calcite-ui-foreground-3)}/*!@.time-picker .button.top-left*/.time-picker.sc-calcite-time-picker .button.top-left.sc-calcite-time-picker{border-start-start-radius:var(--calcite-border-radius)}/*!@.time-picker .button.bottom-left*/.time-picker.sc-calcite-time-picker .button.bottom-left.sc-calcite-time-picker{border-end-start-radius:var(--calcite-border-radius)}/*!@.time-picker .button.top-right*/.time-picker.sc-calcite-time-picker .button.top-right.sc-calcite-time-picker{border-start-end-radius:var(--calcite-border-radius)}/*!@.time-picker .button.bottom-right*/.time-picker.sc-calcite-time-picker .button.bottom-right.sc-calcite-time-picker{border-end-end-radius:var(--calcite-border-radius)}/*!@.time-picker .button calcite-icon*/.time-picker.sc-calcite-time-picker .button.sc-calcite-time-picker calcite-icon.sc-calcite-time-picker{color:var(--calcite-ui-text-3)}/*!@.time-picker .input*/.time-picker.sc-calcite-time-picker .input.sc-calcite-time-picker{display:inline-flex;cursor:pointer;align-items:center;justify-content:center;background-color:var(--calcite-ui-foreground-1);font-weight:var(--calcite-font-weight-medium)}/*!@.time-picker .input:hover*/.time-picker.sc-calcite-time-picker .input.sc-calcite-time-picker:hover{box-shadow:inset 0 0 0 2px var(--calcite-ui-foreground-2);z-index:400}/*!@.time-picker .input:focus, .time-picker .input:hover:focus*/.time-picker.sc-calcite-time-picker .input.sc-calcite-time-picker:focus,.time-picker.sc-calcite-time-picker .input.sc-calcite-time-picker:hover:focus{outline:2px solid transparent;outline-offset:2px;box-shadow:inset 0 0 0 2px var(--calcite-ui-brand);z-index:400;outline-offset:0}/*!@.time-picker.scale-s*/.time-picker.scale-s.sc-calcite-time-picker{font-size:var(--calcite-font-size--1)}/*!@.time-picker.scale-s .button,\n.time-picker.scale-s .input*/.time-picker.scale-s.sc-calcite-time-picker .button.sc-calcite-time-picker,.time-picker.scale-s.sc-calcite-time-picker .input.sc-calcite-time-picker{padding-inline:0.75rem;padding-block:0.25rem}/*!@.time-picker.scale-s:not(.show-meridiem) .delimiter:last-child*/.time-picker.scale-s.sc-calcite-time-picker:not(.show-meridiem) .delimiter.sc-calcite-time-picker:last-child{padding-inline-end:0.75rem}/*!@.time-picker.scale-m*/.time-picker.scale-m.sc-calcite-time-picker{font-size:var(--calcite-font-size-0)}/*!@.time-picker.scale-m .button,\n.time-picker.scale-m .input*/.time-picker.scale-m.sc-calcite-time-picker .button.sc-calcite-time-picker,.time-picker.scale-m.sc-calcite-time-picker .input.sc-calcite-time-picker{padding-inline:1rem;padding-block:0.5rem}/*!@.time-picker.scale-m:not(.show-meridiem) .delimiter:last-child*/.time-picker.scale-m.sc-calcite-time-picker:not(.show-meridiem) .delimiter.sc-calcite-time-picker:last-child{padding-inline-end:1rem}/*!@.time-picker.scale-l*/.time-picker.scale-l.sc-calcite-time-picker{font-size:var(--calcite-font-size-1)}/*!@.time-picker.scale-l .button,\n.time-picker.scale-l .input*/.time-picker.scale-l.sc-calcite-time-picker .button.sc-calcite-time-picker,.time-picker.scale-l.sc-calcite-time-picker .input.sc-calcite-time-picker{padding-inline:1.25rem;padding-block:0.75rem}/*!@.time-picker.scale-l:not(.show-meridiem) .delimiter:last-child*/.time-picker.scale-l.sc-calcite-time-picker:not(.show-meridiem) .delimiter.sc-calcite-time-picker:last-child{padding-inline-end:1.25rem}";
|
|
34940
34886
|
|
|
34941
34887
|
function capitalize(str) {
|
|
34942
34888
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
@@ -35944,7 +35890,7 @@ class TooltipManager {
|
|
|
35944
35890
|
//
|
|
35945
35891
|
// --------------------------------------------------------------------------
|
|
35946
35892
|
this.registeredElements = new WeakMap();
|
|
35947
|
-
this.
|
|
35893
|
+
this.hoverTimeout = null;
|
|
35948
35894
|
this.registeredElementCount = 0;
|
|
35949
35895
|
// --------------------------------------------------------------------------
|
|
35950
35896
|
//
|
|
@@ -35960,18 +35906,31 @@ class TooltipManager {
|
|
|
35960
35906
|
if (event.key === "Escape") {
|
|
35961
35907
|
const { activeTooltipEl } = this;
|
|
35962
35908
|
if (activeTooltipEl) {
|
|
35963
|
-
this.clearHoverTimeout(
|
|
35909
|
+
this.clearHoverTimeout();
|
|
35964
35910
|
this.toggleTooltip(activeTooltipEl, false);
|
|
35965
35911
|
}
|
|
35966
35912
|
}
|
|
35967
35913
|
};
|
|
35968
|
-
this.
|
|
35969
|
-
this
|
|
35914
|
+
this.queryHoveredTooltip = (composedPath) => {
|
|
35915
|
+
const { activeTooltipEl } = this;
|
|
35916
|
+
if (activeTooltipEl && composedPath.includes(activeTooltipEl)) {
|
|
35917
|
+
this.clearHoverTimeout();
|
|
35918
|
+
return;
|
|
35919
|
+
}
|
|
35920
|
+
const tooltip = this.queryTooltip(composedPath);
|
|
35921
|
+
if (tooltip) {
|
|
35922
|
+
this.toggleHoveredTooltip(tooltip, true);
|
|
35923
|
+
}
|
|
35924
|
+
else if (activeTooltipEl) {
|
|
35925
|
+
this.toggleHoveredTooltip(activeTooltipEl, false);
|
|
35926
|
+
}
|
|
35970
35927
|
};
|
|
35971
|
-
this.
|
|
35972
|
-
|
|
35928
|
+
this.pointerMoveHandler = (event) => {
|
|
35929
|
+
const composedPath = event.composedPath();
|
|
35930
|
+
this.clearHoverTimeout();
|
|
35931
|
+
this.hoverTimeout = window.setTimeout(() => this.queryHoveredTooltip(composedPath), TOOLTIP_DELAY_MS );
|
|
35973
35932
|
};
|
|
35974
|
-
this.
|
|
35933
|
+
this.pointerDownHandler = (event) => {
|
|
35975
35934
|
if (!isPrimaryPointerButton(event)) {
|
|
35976
35935
|
return;
|
|
35977
35936
|
}
|
|
@@ -35979,18 +35938,16 @@ class TooltipManager {
|
|
|
35979
35938
|
this.clickedTooltip = clickedTooltip;
|
|
35980
35939
|
if (clickedTooltip?.closeOnClick) {
|
|
35981
35940
|
this.toggleTooltip(clickedTooltip, false);
|
|
35982
|
-
this.clearHoverTimeout(
|
|
35941
|
+
this.clearHoverTimeout();
|
|
35983
35942
|
}
|
|
35984
35943
|
};
|
|
35985
|
-
this.
|
|
35986
|
-
this.
|
|
35944
|
+
this.focusInHandler = (event) => {
|
|
35945
|
+
this.queryFocusedTooltip(event, true);
|
|
35987
35946
|
};
|
|
35988
|
-
this.
|
|
35989
|
-
this.
|
|
35947
|
+
this.focusOutHandler = (event) => {
|
|
35948
|
+
this.queryFocusedTooltip(event, false);
|
|
35990
35949
|
};
|
|
35991
|
-
this.
|
|
35992
|
-
const { hoverTimeouts } = this;
|
|
35993
|
-
hoverTimeouts.delete(tooltip);
|
|
35950
|
+
this.toggleHoveredTooltip = (tooltip, value) => {
|
|
35994
35951
|
if (value) {
|
|
35995
35952
|
this.closeExistingTooltip();
|
|
35996
35953
|
}
|
|
@@ -36019,26 +35976,20 @@ class TooltipManager {
|
|
|
36019
35976
|
}
|
|
36020
35977
|
addListeners() {
|
|
36021
35978
|
document.addEventListener("keydown", this.keyDownHandler);
|
|
36022
|
-
document.addEventListener("
|
|
36023
|
-
document.addEventListener("
|
|
36024
|
-
document.addEventListener("
|
|
36025
|
-
document.addEventListener("
|
|
36026
|
-
document.addEventListener("focusout", this.blurHide, { capture: true });
|
|
35979
|
+
document.addEventListener("pointermove", this.pointerMoveHandler, { capture: true });
|
|
35980
|
+
document.addEventListener("pointerdown", this.pointerDownHandler, { capture: true });
|
|
35981
|
+
document.addEventListener("focusin", this.focusInHandler, { capture: true });
|
|
35982
|
+
document.addEventListener("focusout", this.focusOutHandler, { capture: true });
|
|
36027
35983
|
}
|
|
36028
35984
|
removeListeners() {
|
|
36029
35985
|
document.removeEventListener("keydown", this.keyDownHandler);
|
|
36030
|
-
document.removeEventListener("
|
|
36031
|
-
document.removeEventListener("
|
|
36032
|
-
document.removeEventListener("
|
|
36033
|
-
document.removeEventListener("
|
|
36034
|
-
document.removeEventListener("focusout", this.blurHide, { capture: true });
|
|
35986
|
+
document.removeEventListener("pointermove", this.pointerMoveHandler, { capture: true });
|
|
35987
|
+
document.removeEventListener("pointerdown", this.pointerDownHandler, { capture: true });
|
|
35988
|
+
document.removeEventListener("focusin", this.focusInHandler, { capture: true });
|
|
35989
|
+
document.removeEventListener("focusout", this.focusOutHandler, { capture: true });
|
|
36035
35990
|
}
|
|
36036
|
-
clearHoverTimeout(
|
|
36037
|
-
|
|
36038
|
-
if (hoverTimeouts.has(tooltip)) {
|
|
36039
|
-
window.clearTimeout(hoverTimeouts.get(tooltip));
|
|
36040
|
-
hoverTimeouts.delete(tooltip);
|
|
36041
|
-
}
|
|
35991
|
+
clearHoverTimeout() {
|
|
35992
|
+
window.clearTimeout(this.hoverTimeout);
|
|
36042
35993
|
}
|
|
36043
35994
|
closeExistingTooltip() {
|
|
36044
35995
|
const { activeTooltipEl } = this;
|
|
@@ -36046,10 +35997,10 @@ class TooltipManager {
|
|
|
36046
35997
|
this.toggleTooltip(activeTooltipEl, false);
|
|
36047
35998
|
}
|
|
36048
35999
|
}
|
|
36049
|
-
|
|
36000
|
+
toggleFocusedTooltip(tooltip, value) {
|
|
36050
36001
|
this.closeExistingTooltip();
|
|
36051
36002
|
if (value) {
|
|
36052
|
-
this.clearHoverTimeout(
|
|
36003
|
+
this.clearHoverTimeout();
|
|
36053
36004
|
}
|
|
36054
36005
|
this.toggleTooltip(tooltip, value);
|
|
36055
36006
|
}
|
|
@@ -36059,40 +36010,13 @@ class TooltipManager {
|
|
|
36059
36010
|
this.activeTooltipEl = tooltip;
|
|
36060
36011
|
}
|
|
36061
36012
|
}
|
|
36062
|
-
|
|
36063
|
-
this.clearHoverTimeout(tooltip);
|
|
36064
|
-
const { hoverTimeouts } = this;
|
|
36065
|
-
const timeoutId = window.setTimeout(() => this.hoverToggle(tooltip, value), TOOLTIP_DELAY_MS );
|
|
36066
|
-
hoverTimeouts.set(tooltip, timeoutId);
|
|
36067
|
-
}
|
|
36068
|
-
activeTooltipHover(event) {
|
|
36069
|
-
const { activeTooltipEl, hoverTimeouts } = this;
|
|
36070
|
-
const { type } = event;
|
|
36071
|
-
if (!activeTooltipEl) {
|
|
36072
|
-
return;
|
|
36073
|
-
}
|
|
36074
|
-
if (type === "pointerover" && event.composedPath().includes(activeTooltipEl)) {
|
|
36075
|
-
this.clearHoverTimeout(activeTooltipEl);
|
|
36076
|
-
}
|
|
36077
|
-
else if (type === "pointerout" && !hoverTimeouts.has(activeTooltipEl)) {
|
|
36078
|
-
this.hoverTooltip(activeTooltipEl, false);
|
|
36079
|
-
}
|
|
36080
|
-
}
|
|
36081
|
-
hoverEvent(event, value) {
|
|
36082
|
-
const tooltip = this.queryTooltip(event.composedPath());
|
|
36083
|
-
this.activeTooltipHover(event);
|
|
36084
|
-
if (!tooltip) {
|
|
36085
|
-
return;
|
|
36086
|
-
}
|
|
36087
|
-
this.hoverTooltip(tooltip, value);
|
|
36088
|
-
}
|
|
36089
|
-
focusEvent(event, value) {
|
|
36013
|
+
queryFocusedTooltip(event, value) {
|
|
36090
36014
|
const tooltip = this.queryTooltip(event.composedPath());
|
|
36091
36015
|
if (!tooltip || tooltip === this.clickedTooltip) {
|
|
36092
36016
|
this.clickedTooltip = null;
|
|
36093
36017
|
return;
|
|
36094
36018
|
}
|
|
36095
|
-
this.
|
|
36019
|
+
this.toggleFocusedTooltip(tooltip, value);
|
|
36096
36020
|
}
|
|
36097
36021
|
}
|
|
36098
36022
|
|
|
@@ -36486,7 +36410,7 @@ class Tree {
|
|
|
36486
36410
|
}
|
|
36487
36411
|
if (event.key === "ArrowRight" && !target.disabled) {
|
|
36488
36412
|
if (target.hasChildren) {
|
|
36489
|
-
if (target.expanded && getRootNode
|
|
36413
|
+
if (target.expanded && getRootNode(this.el).activeElement === target) {
|
|
36490
36414
|
// When focus is on an open node, moves focus to the first child node.
|
|
36491
36415
|
getEnabledSiblingItem(target.querySelector("calcite-tree-item"), "down")?.focus();
|
|
36492
36416
|
event.preventDefault();
|