@esri/calcite-components 5.1.0-next.8 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cdn/{H6GZBNAP.js → 2I4IL7KB.js} +1 -1
- package/dist/cdn/{B6PZTEUN.js → 2P5ISR6V.js} +1 -1
- package/dist/cdn/2TVQXBLD.js +2 -0
- package/dist/cdn/2VKTPJWO.js +2 -0
- package/dist/cdn/3GDRQKT2.js +2 -0
- package/dist/cdn/{SZBL6UYR.js → 3HTVKOWE.js} +1 -1
- package/dist/cdn/{PUV74SQM.js → 3IM4BLOF.js} +1 -1
- package/dist/cdn/44WHX5D3.js +2 -0
- package/dist/cdn/{WVFJMOTI.js → 46F35NGY.js} +1 -1
- package/dist/cdn/4A2BNZJW.js +2 -0
- package/dist/cdn/{4C3MDIBF.js → 4ANP3V6G.js} +1 -1
- package/dist/cdn/4PUYRVNO.js +2 -0
- package/dist/cdn/{XIHNK7BL.js → 4RELRYKX.js} +1 -1
- package/dist/cdn/4V5C3DSP.js +2 -0
- package/dist/cdn/54WP47EN.js +2 -0
- package/dist/cdn/5C72Z4LQ.js +2 -0
- package/dist/cdn/{AQRFO7EB.js → 5OLLJHWT.js} +1 -1
- package/dist/cdn/5SDZUEAZ.js +2 -0
- package/dist/cdn/5ULM4EXU.js +2 -0
- package/dist/cdn/6U4CYHVA.js +2 -0
- package/dist/cdn/6UERLWMH.js +2 -0
- package/dist/cdn/{FP7RUVVK.js → 6XE2EP66.js} +1 -1
- package/dist/cdn/{X7WG3NQR.js → 6YLT6LZJ.js} +1 -1
- package/dist/cdn/6ZUCCZI3.js +2 -0
- package/dist/cdn/{7J54SLPG.js → 75ARST2G.js} +1 -1
- package/dist/cdn/{ZTRVZ3XB.js → 7A746NXL.js} +1 -1
- package/dist/cdn/7DBM34FB.js +2 -0
- package/dist/cdn/7FTYXBPX.js +2 -0
- package/dist/cdn/7OWLHFPX.js +2 -0
- package/dist/cdn/7XMGNOPQ.js +2 -0
- package/dist/cdn/A5L2Q32C.js +2 -0
- package/dist/cdn/ADH55C3C.js +2 -0
- package/dist/cdn/{MMKBWG37.js → ADH5D4IE.js} +1 -1
- package/dist/cdn/AFGFN5LE.js +2 -0
- package/dist/cdn/AKKQ5DPN.js +2 -0
- package/dist/cdn/{6UI3PKF5.js → AYFJCHPP.js} +1 -1
- package/dist/cdn/{YRXMN6UU.js → BL4CROY4.js} +1 -1
- package/dist/cdn/{LESJQSHY.js → BONCETQ5.js} +1 -1
- package/dist/cdn/BOZBB7XQ.js +2 -0
- package/dist/cdn/BPVUFU5U.js +4 -0
- package/dist/cdn/CY6G2WDI.js +2 -0
- package/dist/cdn/{ZNRHT3KC.js → CYVIISMJ.js} +1 -1
- package/dist/cdn/{UW5IDOUT.js → D44AQ74K.js} +1 -1
- package/dist/cdn/{EHIAXJAL.js → DCWL5FUH.js} +1 -1
- package/dist/cdn/{7BCKEAN4.js → DJTEYVEK.js} +1 -1
- package/dist/cdn/DK56URUM.js +2 -0
- package/dist/cdn/DMMA5ZYG.js +2 -0
- package/dist/cdn/DYMICF33.js +2 -0
- package/dist/cdn/{6LSU4JVT.js → E2T2QERX.js} +1 -1
- package/dist/cdn/{LWQNBQLX.js → ECXU6B4A.js} +1 -1
- package/dist/cdn/EOJ2AVKD.js +2 -0
- package/dist/cdn/{H5CLLKA7.js → EPDTHVMK.js} +1 -1
- package/dist/cdn/EPNCB6OJ.js +2 -0
- package/dist/cdn/FFB3HCSC.js +2 -0
- package/dist/cdn/{Z5H3SBF4.js → FHGV3WTN.js} +1 -1
- package/dist/cdn/{QLMMEMXZ.js → GALIT4BA.js} +1 -1
- package/dist/cdn/{A5U47A46.js → GB2TPSAG.js} +1 -1
- package/dist/cdn/{EDTUYGTH.js → GCNYPWEC.js} +1 -1
- package/dist/cdn/GDZAGWDU.js +2 -0
- package/dist/cdn/{N6UQ2IN3.js → GEEPTD4A.js} +1 -1
- package/dist/cdn/{222PZZVE.js → GFEJFYRL.js} +1 -1
- package/dist/cdn/{VAIV6TN5.js → GI6UQRPO.js} +1 -1
- package/dist/cdn/GJL5RMPQ.js +2 -0
- package/dist/cdn/{CW3BSFXN.js → GT3BV452.js} +1 -1
- package/dist/cdn/GZHK6NCY.js +2 -0
- package/dist/cdn/HB4MH2EZ.js +2 -0
- package/dist/cdn/HRC6BJMW.js +2 -0
- package/dist/cdn/{OI5C3DZQ.js → I5D2AGK5.js} +1 -1
- package/dist/cdn/IEPYYQBO.js +2 -0
- package/dist/cdn/{SJMZTW3M.js → ISTQU57G.js} +1 -1
- package/dist/cdn/J3ELP2FF.js +2 -0
- package/dist/cdn/JITQNOBY.js +2 -0
- package/dist/cdn/JIWTOV7Q.js +2 -0
- package/dist/cdn/JRHGPYNH.js +2 -0
- package/dist/cdn/{XWSZOGW5.js → JWG2PPAV.js} +1 -1
- package/dist/cdn/{7PY56QMA.js → JZWVIZ2B.js} +1 -1
- package/dist/cdn/{O64Y2APR.js → K57DPE4N.js} +1 -1
- package/dist/cdn/{OHI6NELF.js → KEAGVFG4.js} +1 -1
- package/dist/cdn/KED2RZ42.js +2 -0
- package/dist/cdn/KEFKNHSD.js +2 -0
- package/dist/cdn/KLW37VF4.js +2 -0
- package/dist/cdn/{PWPVALIF.js → KSR5E33C.js} +1 -1
- package/dist/cdn/{LS6DCTIG.js → KTBER6SN.js} +1 -1
- package/dist/cdn/{BWVI7Y36.js → KTUCOBBY.js} +1 -1
- package/dist/cdn/{QZKM3D6F.js → KWFOKTKG.js} +1 -1
- package/dist/cdn/LBFLMGFV.js +2 -0
- package/dist/cdn/LHYTGIZG.js +2 -0
- package/dist/cdn/{M7DW3FTJ.js → LO5HOYI2.js} +1 -1
- package/dist/cdn/LOAHLN6N.js +2 -0
- package/dist/cdn/{YOWRCPCO.js → LUWJNSYS.js} +1 -1
- package/dist/cdn/MJPROSY6.js +2 -0
- package/dist/cdn/{2MVB66KM.js → NBXPROCG.js} +1 -1
- package/dist/cdn/NERFMP54.js +2 -0
- package/dist/cdn/{FHTREWRA.js → NKYEDCKH.js} +1 -1
- package/dist/cdn/NRALFORW.js +2 -0
- package/dist/cdn/{ITDGV5OO.js → NRY3KXPN.js} +1 -1
- package/dist/cdn/{VS2M3PA6.js → NRYIW7DB.js} +1 -1
- package/dist/cdn/NTYYNNBV.js +2 -0
- package/dist/cdn/NU23JDGC.js +2 -0
- package/dist/cdn/NZC2U4OU.js +2 -0
- package/dist/cdn/ODKPYY3R.js +2 -0
- package/dist/cdn/OQHB5W7D.js +2 -0
- package/dist/cdn/PQ5ASGHR.js +2 -0
- package/dist/cdn/PZVPEXW2.js +2 -0
- package/dist/cdn/QOPSMYNJ.js +2 -0
- package/dist/cdn/QP76SSEW.js +2 -0
- package/dist/cdn/{C6PZ6UXS.js → QSU37BPY.js} +1 -1
- package/dist/cdn/{EBTV6BQC.js → QYODZAGH.js} +1 -1
- package/dist/cdn/R2VQIQOY.js +2 -0
- package/dist/cdn/R3SNXCXR.js +2 -0
- package/dist/cdn/RJTQLFW2.js +2 -0
- package/dist/cdn/{ZWUAND2V.js → RRF6AKIF.js} +1 -1
- package/dist/cdn/RSCWCCYB.js +2 -0
- package/dist/cdn/{WGLBPXGA.js → RUVQ7O6L.js} +1 -1
- package/dist/cdn/RYLKDSFN.js +3 -0
- package/dist/cdn/STAAJHPM.js +2 -0
- package/dist/cdn/{TRQXVBXU.js → SUEXKJRG.js} +1 -1
- package/dist/cdn/TAZRZNVR.js +2 -0
- package/dist/cdn/{QO4WS7CE.js → TKHRV4GA.js} +1 -1
- package/dist/cdn/{N4R7WBTP.js → TSWJKW5G.js} +1 -1
- package/dist/cdn/UDRFE54L.js +2 -0
- package/dist/cdn/USZ4G42E.js +2 -0
- package/dist/cdn/{DY2ED436.js → UTEI7VLM.js} +1 -1
- package/dist/cdn/UWU3SSNM.js +2 -0
- package/dist/cdn/UY76KLJJ.js +2 -0
- package/dist/cdn/{T2ZN7HPU.js → V5LDBUD2.js} +1 -1
- package/dist/cdn/VAXAY3BK.js +2 -0
- package/dist/cdn/{DOWM2T5Z.js → VD7KVHE6.js} +1 -1
- package/dist/cdn/{7SJGHMRM.js → VYK6NRTI.js} +1 -1
- package/dist/cdn/W5TINV5N.js +2 -0
- package/dist/cdn/W753MF3U.js +2 -0
- package/dist/cdn/WC3SB5B7.js +2 -0
- package/dist/cdn/{RH6ZIP65.js → WGGFNK4Z.js} +1 -1
- package/dist/cdn/WTP5LKQS.js +2 -0
- package/dist/cdn/{NRP3ANIH.js → X3WAJ4V4.js} +1 -1
- package/dist/cdn/XMHBPNOP.js +2 -0
- package/dist/cdn/{FZIKVG4Q.js → XQXKNOUC.js} +1 -1
- package/dist/cdn/{R7ZYHFUG.js → XTKAAKGX.js} +1 -1
- package/dist/cdn/XVCPLNXU.js +2 -0
- package/dist/cdn/XZK4WGVJ.js +4 -0
- package/dist/cdn/{47YWJRMK.js → Y47FX6CN.js} +1 -1
- package/dist/cdn/{ITZTBZ6D.js → YFT7U3IW.js} +1 -1
- package/dist/cdn/{CZLSVHDA.js → YLZT3LR4.js} +1 -1
- package/dist/cdn/{VSGEBKJL.js → ZQ4VNHFE.js} +1 -1
- package/dist/cdn/ZSTOD4V7.js +2 -0
- package/dist/cdn/ZYQDIIRU.js +2 -0
- package/dist/cdn/assets/combobox/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/combobox/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/icon/arcgisQuickcapture16.json +1 -0
- package/dist/cdn/assets/icon/arcgisQuickcapture24.json +1 -0
- package/dist/cdn/assets/icon/arcgisQuickcapture32.json +1 -0
- package/dist/cdn/assets/icon/arcgisSurvey12316.json +1 -0
- package/dist/cdn/assets/icon/arcgisSurvey12324.json +1 -0
- package/dist/cdn/assets/icon/arcgisSurvey12332.json +1 -0
- package/dist/cdn/assets/icon/buttons16.json +1 -0
- package/dist/cdn/assets/icon/buttons24.json +1 -0
- package/dist/cdn/assets/icon/buttons32.json +1 -0
- package/dist/cdn/assets/icon/entityTypes16.json +1 -0
- package/dist/cdn/assets/icon/entityTypes24.json +1 -0
- package/dist/cdn/assets/icon/entityTypes32.json +1 -0
- package/dist/cdn/assets/icon/gpsReceiver16.json +1 -0
- package/dist/cdn/assets/icon/gpsReceiver24.json +1 -0
- package/dist/cdn/assets/icon/gpsReceiver32.json +1 -0
- package/dist/cdn/assets/icon/layerStreamSetting16.json +1 -0
- package/dist/cdn/assets/icon/layerStreamSetting24.json +1 -0
- package/dist/cdn/assets/icon/layerStreamSetting32.json +1 -0
- package/dist/cdn/assets/icon/returnToDefault16.json +1 -0
- package/dist/cdn/assets/icon/returnToDefault24.json +1 -0
- package/dist/cdn/assets/icon/returnToDefault32.json +1 -0
- package/dist/cdn/assets/icon/reviewMap16.json +1 -0
- package/dist/cdn/assets/icon/reviewMap24.json +1 -0
- package/dist/cdn/assets/icon/reviewMap32.json +1 -0
- package/dist/cdn/assets/icon/totalStation16.json +1 -0
- package/dist/cdn/assets/icon/totalStation24.json +1 -0
- package/dist/cdn/assets/icon/totalStation32.json +1 -0
- package/dist/cdn/assets/icon/velocityServer16.json +1 -0
- package/dist/cdn/assets/icon/velocityServer24.json +1 -0
- package/dist/cdn/assets/icon/velocityServer32.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +2 -2
- package/dist/chunks/ClearButton.js +16 -0
- package/dist/chunks/ExpandToggle.js +2 -2
- package/dist/chunks/Heading.js +3 -3
- package/dist/chunks/component.js +1 -1
- package/dist/chunks/dom.js +49 -28
- package/dist/chunks/floating-ui.js +2 -5
- package/dist/chunks/locale.js +29 -12
- package/dist/chunks/manager.js +505 -0
- package/dist/chunks/resources6.js +2 -0
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useFocusTrap.js +70 -28
- package/dist/chunks/useForm.js +225 -44
- package/dist/chunks/useFormTrigger.js +25 -0
- package/dist/chunks/{sortableComponent.js → useSortable.js} +70 -44
- package/dist/chunks/utils.js +6 -6
- package/dist/chunks/utils3.js +18 -3
- package/dist/components/calcite-accordion-item/customElement.d.ts +6 -6
- package/dist/components/calcite-action/customElement.d.ts +20 -12
- package/dist/components/calcite-action/customElement.js +10 -15
- package/dist/components/calcite-action-bar/customElement.d.ts +4 -4
- package/dist/components/calcite-action-bar/customElement.js +12 -6
- package/dist/components/calcite-action-group/customElement.d.ts +12 -6
- package/dist/components/calcite-action-group/customElement.js +2 -1
- package/dist/components/calcite-action-menu/customElement.d.ts +2 -2
- package/dist/components/calcite-action-pad/customElement.d.ts +3 -3
- package/dist/components/calcite-action-pad/customElement.js +12 -7
- package/dist/components/calcite-alert/customElement.d.ts +2 -2
- package/dist/components/calcite-alert/customElement.js +1 -1
- package/dist/components/calcite-autocomplete/customElement.d.ts +16 -13
- package/dist/components/calcite-autocomplete/customElement.js +21 -32
- package/dist/components/calcite-autocomplete-item/customElement.d.ts +6 -0
- package/dist/components/calcite-autocomplete-item/customElement.js +9 -4
- package/dist/components/calcite-block/customElement.d.ts +11 -7
- package/dist/components/calcite-block/customElement.js +1 -1
- package/dist/components/calcite-block-group/customElement.d.ts +1 -1
- package/dist/components/calcite-block-group/customElement.js +4 -11
- package/dist/components/calcite-block-group/interfaces.d.ts +2 -6
- package/dist/components/calcite-block-section/customElement.d.ts +1 -1
- package/dist/components/calcite-button/customElement.d.ts +6 -6
- package/dist/components/calcite-button/customElement.js +10 -22
- package/dist/components/calcite-card/customElement.d.ts +11 -5
- package/dist/components/calcite-card/customElement.js +5 -3
- package/dist/components/calcite-card-group/customElement.d.ts +9 -3
- package/dist/components/calcite-card-group/customElement.js +11 -1
- package/dist/components/calcite-carousel/customElement.d.ts +8 -2
- package/dist/components/calcite-carousel/customElement.js +11 -8
- package/dist/components/calcite-carousel/interfaces.d.ts +3 -1
- package/dist/components/calcite-checkbox/customElement.d.ts +4 -5
- package/dist/components/calcite-checkbox/customElement.js +2 -15
- package/dist/components/calcite-chip/customElement.d.ts +2 -2
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker/customElement.d.ts +2 -2
- package/dist/components/calcite-color-picker/customElement.js +2 -2
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-combobox/customElement.d.ts +5 -5
- package/dist/components/calcite-combobox/customElement.js +57 -69
- package/dist/components/calcite-combobox/index.js +2 -1
- package/dist/components/calcite-combobox-item/customElement.d.ts +1 -1
- package/dist/components/calcite-combobox-item/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-date-picker/customElement.js +4 -14
- package/dist/components/calcite-date-picker-day/customElement.d.ts +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +2 -2
- package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.d.ts +7 -5
- package/dist/components/calcite-dialog/customElement.js +4 -2
- package/dist/components/calcite-dropdown/customElement.d.ts +15 -5
- package/dist/components/calcite-dropdown/customElement.js +166 -91
- package/dist/components/calcite-dropdown-item/customElement.d.ts +2 -2
- package/dist/components/calcite-dropdown-item/customElement.js +14 -32
- package/dist/components/calcite-fab/customElement.d.ts +1 -1
- package/dist/components/calcite-fab/customElement.js +2 -2
- package/dist/components/calcite-filter/customElement.d.ts +1 -1
- package/dist/components/calcite-flow/customElement.d.ts +1 -1
- package/dist/components/calcite-flow-item/customElement.d.ts +8 -5
- package/dist/components/calcite-flow-item/customElement.js +4 -2
- package/dist/components/calcite-focus-trap/customElement.d.ts +46 -0
- package/dist/components/calcite-focus-trap/customElement.js +56 -0
- package/dist/components/calcite-focus-trap/index.d.ts +1 -0
- package/dist/components/calcite-focus-trap/index.js +1 -0
- package/dist/components/calcite-graph/customElement.js +1 -1
- package/dist/components/calcite-handle/customElement.d.ts +1 -1
- package/dist/components/calcite-icon/customElement.d.ts +1 -1
- package/dist/components/calcite-inline-editable/customElement.d.ts +2 -2
- package/dist/components/calcite-inline-editable/customElement.js +1 -1
- package/dist/components/calcite-input/customElement.d.ts +17 -18
- package/dist/components/calcite-input/customElement.js +26 -49
- package/dist/components/calcite-input/index.js +1 -0
- package/dist/components/calcite-input-date-picker/customElement.d.ts +6 -7
- package/dist/components/calcite-input-date-picker/customElement.js +67 -76
- package/dist/components/calcite-input-message/customElement.d.ts +1 -1
- package/dist/components/calcite-input-number/customElement.d.ts +13 -14
- package/dist/components/calcite-input-number/customElement.js +22 -48
- package/dist/components/calcite-input-number/index.js +1 -0
- package/dist/components/calcite-input-text/customElement.d.ts +11 -12
- package/dist/components/calcite-input-text/customElement.js +6 -18
- package/dist/components/calcite-input-text/index.js +1 -0
- package/dist/components/calcite-input-time-picker/customElement.d.ts +6 -7
- package/dist/components/calcite-input-time-picker/customElement.js +11 -23
- package/dist/components/calcite-input-time-zone/customElement.d.ts +5 -6
- package/dist/components/calcite-input-time-zone/customElement.js +21 -19
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.d.ts +9 -9
- package/dist/components/calcite-link/customElement.js +28 -23
- package/dist/components/calcite-list/customElement.d.ts +1 -1
- package/dist/components/calcite-list/customElement.js +18 -15
- package/dist/components/calcite-list/interfaces.d.ts +2 -6
- package/dist/components/calcite-list-item/customElement.d.ts +2 -2
- package/dist/components/calcite-list-item/customElement.js +7 -4
- package/dist/components/calcite-list-item-group/customElement.js +6 -0
- package/dist/components/calcite-loader/customElement.d.ts +1 -1
- package/dist/components/calcite-menu/customElement.d.ts +1 -1
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.d.ts +3 -3
- package/dist/components/calcite-menu-item/customElement.js +1 -1
- package/dist/components/calcite-meter/customElement.js +4 -4
- package/dist/components/calcite-navigation/customElement.d.ts +9 -2
- package/dist/components/calcite-navigation/customElement.js +56 -3
- package/dist/components/calcite-navigation-logo/customElement.d.ts +3 -3
- package/dist/components/calcite-navigation-logo/customElement.js +4 -3
- package/dist/components/calcite-navigation-user/customElement.d.ts +2 -2
- package/dist/components/calcite-navigation-user/customElement.js +11 -6
- package/dist/components/calcite-notice/customElement.d.ts +3 -3
- package/dist/components/calcite-notice/customElement.js +1 -1
- package/dist/components/calcite-pagination/customElement.d.ts +1 -1
- package/dist/components/calcite-pagination/customElement.js +1 -1
- package/dist/components/calcite-panel/customElement.d.ts +7 -5
- package/dist/components/calcite-panel/customElement.js +20 -8
- package/dist/components/calcite-popover/customElement.d.ts +2 -2
- package/dist/components/calcite-popover/customElement.js +12 -176
- package/dist/components/calcite-radio-button/customElement.d.ts +30 -2
- package/dist/components/calcite-radio-button/customElement.js +12 -19
- package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -1
- package/dist/components/calcite-radio-button-group/customElement.js +20 -1
- package/dist/components/calcite-rating/customElement.d.ts +3 -4
- package/dist/components/calcite-rating/customElement.js +12 -18
- package/dist/components/calcite-segmented-control/customElement.d.ts +3 -4
- package/dist/components/calcite-segmented-control/customElement.js +8 -19
- package/dist/components/calcite-segmented-control-item/customElement.d.ts +0 -1
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.d.ts +3 -4
- package/dist/components/calcite-select/customElement.js +9 -20
- package/dist/components/calcite-sheet/customElement.d.ts +3 -3
- package/dist/components/calcite-sheet/customElement.js +3 -7
- package/dist/components/calcite-shell-panel/customElement.d.ts +4 -4
- package/dist/components/calcite-shell-panel/customElement.js +59 -30
- package/dist/components/calcite-slider/customElement.d.ts +3 -4
- package/dist/components/calcite-slider/customElement.js +12 -22
- package/dist/components/calcite-sort-handle/customElement.d.ts +4 -4
- package/dist/components/calcite-sort-handle/customElement.js +44 -17
- package/dist/components/calcite-sortable-list/customElement.d.ts +1 -1
- package/dist/components/calcite-sortable-list/customElement.js +3 -3
- package/dist/components/calcite-split-button/customElement.d.ts +8 -8
- package/dist/components/calcite-stepper/customElement.d.ts +2 -2
- package/dist/components/calcite-stepper/customElement.js +29 -42
- package/dist/components/calcite-stepper-item/customElement.d.ts +1 -1
- package/dist/components/calcite-stepper-item/customElement.js +2 -8
- package/dist/components/calcite-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-switch/customElement.d.ts +4 -4
- package/dist/components/calcite-switch/customElement.js +9 -8
- package/dist/components/calcite-tab/customElement.d.ts +1 -1
- package/dist/components/calcite-tab/customElement.js +1 -1
- package/dist/components/calcite-tab-nav/customElement.js +1 -1
- package/dist/components/calcite-tab-title/customElement.js +1 -1
- package/dist/components/calcite-table/customElement.js +1 -1
- package/dist/components/calcite-table-cell/customElement.d.ts +2 -2
- package/dist/components/calcite-table-header/customElement.d.ts +2 -2
- package/dist/components/calcite-table-row/customElement.d.ts +1 -1
- package/dist/components/calcite-tabs/customElement.js +2 -1
- package/dist/components/calcite-text-area/customElement.d.ts +13 -14
- package/dist/components/calcite-text-area/customElement.js +32 -37
- package/dist/components/calcite-tile/customElement.d.ts +1 -1
- package/dist/components/calcite-time-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-time-picker/customElement.js +2 -2
- package/dist/components/calcite-tooltip/customElement.d.ts +15 -2
- package/dist/components/calcite-tooltip/customElement.js +24 -315
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +2 -3
- package/dist/controllers/useSortable.d.ts +7 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/translations.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +27 -26
- package/dist/types/lumina.d.ts +16 -10
- package/dist/types/preact.d.ts +17 -10
- package/dist/types/react.d.ts +18 -10
- package/dist/types/stencil.d.ts +16 -10
- package/package.json +22 -23
- package/dist/cdn/23OTAQAT.js +0 -3
- package/dist/cdn/24AJZ7NF.js +0 -2
- package/dist/cdn/2G4JQYU3.js +0 -2
- package/dist/cdn/2HAZSBOB.js +0 -2
- package/dist/cdn/2IVE7ZEH.js +0 -2
- package/dist/cdn/2KWDJDMW.js +0 -2
- package/dist/cdn/2MN63CPE.js +0 -2
- package/dist/cdn/3KC2E42Z.js +0 -2
- package/dist/cdn/3KDUSL55.js +0 -2
- package/dist/cdn/4KMSHV4T.js +0 -2
- package/dist/cdn/4OYHP3ZM.js +0 -2
- package/dist/cdn/5XX7HCEA.js +0 -2
- package/dist/cdn/6LVCAJSU.js +0 -2
- package/dist/cdn/6UFBJC4N.js +0 -2
- package/dist/cdn/6WOFQ5YL.js +0 -2
- package/dist/cdn/7JKP2OCF.js +0 -2
- package/dist/cdn/7MOAOZLZ.js +0 -2
- package/dist/cdn/7Q6OKLFD.js +0 -2
- package/dist/cdn/7UOYXJ3K.js +0 -2
- package/dist/cdn/AKHHJLNI.js +0 -2
- package/dist/cdn/BH25NEU3.js +0 -2
- package/dist/cdn/BLZ5Z3L3.js +0 -2
- package/dist/cdn/BYFOQ5L7.js +0 -2
- package/dist/cdn/CFOEAERZ.js +0 -2
- package/dist/cdn/CMJEMF3I.js +0 -2
- package/dist/cdn/DML4UYSR.js +0 -2
- package/dist/cdn/EXQURJYX.js +0 -2
- package/dist/cdn/FA4JJMDD.js +0 -2
- package/dist/cdn/FE36XWQT.js +0 -2
- package/dist/cdn/FEK3PIOE.js +0 -2
- package/dist/cdn/G3LIWIPW.js +0 -2
- package/dist/cdn/G5PEBD22.js +0 -2
- package/dist/cdn/GBD3L2UH.js +0 -2
- package/dist/cdn/GOV5YXBE.js +0 -2
- package/dist/cdn/H764MK3H.js +0 -2
- package/dist/cdn/HFAM5MEC.js +0 -2
- package/dist/cdn/I3AH3MF6.js +0 -2
- package/dist/cdn/I7TFCBQO.js +0 -2
- package/dist/cdn/IMFR5NEO.js +0 -3
- package/dist/cdn/ISXEEXKP.js +0 -2
- package/dist/cdn/KB33IA7A.js +0 -2
- package/dist/cdn/KONOZFYK.js +0 -2
- package/dist/cdn/L36EVTCL.js +0 -2
- package/dist/cdn/M5HMGRI3.js +0 -2
- package/dist/cdn/MIZ37SIW.js +0 -2
- package/dist/cdn/NKB7CA3Y.js +0 -2
- package/dist/cdn/OGR5ARIW.js +0 -2
- package/dist/cdn/OI35UHBC.js +0 -2
- package/dist/cdn/OLJ3NCJ2.js +0 -2
- package/dist/cdn/OOITRFLJ.js +0 -2
- package/dist/cdn/OXIEI7FU.js +0 -2
- package/dist/cdn/OZVZ5LCR.js +0 -2
- package/dist/cdn/P76VFMZV.js +0 -2
- package/dist/cdn/PXNLTA7Q.js +0 -2
- package/dist/cdn/QHJ5GHM6.js +0 -2
- package/dist/cdn/QKC2XFP5.js +0 -2
- package/dist/cdn/RLE4LAGP.js +0 -2
- package/dist/cdn/SDD3P4XX.js +0 -2
- package/dist/cdn/T72X6C55.js +0 -2
- package/dist/cdn/TWMPNHXY.js +0 -2
- package/dist/cdn/UPCUFECO.js +0 -2
- package/dist/cdn/UW2OIFN6.js +0 -2
- package/dist/cdn/UWFSTP6H.js +0 -2
- package/dist/cdn/V6KMTSY3.js +0 -2
- package/dist/cdn/V6PUXCHJ.js +0 -2
- package/dist/cdn/VZBGQAPM.js +0 -2
- package/dist/cdn/W26FRFX7.js +0 -2
- package/dist/cdn/WDKSZZPO.js +0 -2
- package/dist/cdn/WJXZ7BPV.js +0 -2
- package/dist/cdn/XHL646A2.js +0 -2
- package/dist/cdn/XMUU3UTU.js +0 -2
- package/dist/cdn/YCAYW3ES.js +0 -2
- package/dist/cdn/YCIXRDI4.js +0 -4
- package/dist/cdn/YCTMZBN3.js +0 -2
- package/dist/cdn/YDUAJXOW.js +0 -2
- package/dist/cdn/YJRANKFJ.js +0 -2
- package/dist/cdn/YWGODKAA.js +0 -2
- package/dist/cdn/ZQLGBHLZ.js +0 -2
- package/dist/cdn/ZQO6FYUW.js +0 -2
- package/dist/chunks/form.js +0 -268
- package/dist/chunks/input.js +0 -40
- package/dist/controllers/useForm.d.ts +0 -3
- package/dist/utils/form.d.ts +0 -3
- package/dist/utils/sortableComponent.d.ts +0 -7
|
@@ -22,7 +22,7 @@ const CSS = {
|
|
|
22
22
|
content: "notice-content",
|
|
23
23
|
icon: "notice-icon"
|
|
24
24
|
};
|
|
25
|
-
const styles = css`:host([scale=s]){--calcite-notice-spacing-token-small: .5rem;--calcite-notice-spacing-token-large: .75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=s]) ::slotted(calcite-link){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=m]){--calcite-notice-spacing-token-small: .75rem;--calcite-notice-spacing-token-large: 1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=m]) ::slotted(calcite-link){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]){--calcite-notice-spacing-token-small: 1rem;--calcite-notice-spacing-token-large: 1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size-relative-lg);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]) ::slotted(calcite-link){font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]) .notice-close{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=l]) .actions-end{margin-inline-end:var(--calcite-spacing-sm);gap:var(--calcite-spacing-sm)}:host([width=auto]){--calcite-notice-width: auto}:host([width=half]){--calcite-notice-width: 50%}:host([width=full]){--calcite-notice-width: 100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;opacity:0;overflow:hidden;max-block-size:0;transition-property:opacity,max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-radius:var(--calcite-notice-corner-radius, var(--calcite-corner-radius-sm));box-shadow:var(--calcite-notice-shadow, var(--calcite-shadow-none))}:host{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;overflow:visible}:host([open][appearance=outline-fill]) .container{border:var(--calcite-border-width-sm) solid}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-notice-title-text-color, var(--calcite-color-text-1))}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-notice-content-text-color, var(--calcite-color-text-2))}:host(:not([kind=neutral])[appearance=solid]) .container slot[name=title]::slotted(*),:host(:not([kind=neutral])[appearance=solid]) .container *::slotted([slot=title]){color:var(--calcite-notice-title-text-color, var(--calcite-color-text-inverse))}:host(:not([kind=neutral])[appearance=solid]) .container slot[name=message]::slotted(*),:host(:not([kind=neutral])[appearance=solid]) .container *::slotted([slot=message]){color:var(--calcite-notice-content-text-color, var(--calcite-color-text-inverse))}.notice-content{box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-large)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;padding-inline:var(--calcite-notice-spacing-token-small)}.notice-close{box-sizing:border-box;display:flex;cursor:pointer;align-items:center;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;flex:0 0 auto;margin-inline-end:var(--calcite-spacing-xs);--calcite-action-background-color: var(--calcite-notice-close-background-color);--calcite-action-background-color-hover: var( --calcite-notice-close-background-color-hover, var(--calcite-notice-close-background-color-focus) );--calcite-action-background-color-press: var(--calcite-notice-close-background-color-press);--calcite-action-text-color: var(--calcite-notice-close-icon-color, var(--calcite-color-text-3));--calcite-action-text-color-press: var(--calcite-notice-close-icon-color-hover)}.actions-end{display:flex;align-items:center;flex:0 0 auto;margin-inline-end:var(--calcite-spacing-xs);gap:var(--calcite-spacing-xs)}:host([kind=brand][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-brand) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-brand) 5%, var(--calcite-color-foreground-1)))}:host([kind=brand][appearance=outline-fill]) .notice-icon,:host([kind=brand][appearance=transparent]) .notice-icon{color:var(--calcite-color-brand)}:host([kind=info][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-info) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-info) 5%, var(--calcite-color-foreground-1)))}:host([kind=info][appearance=outline-fill]) .notice-icon,:host([kind=info][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-danger) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-danger) 5%, var(--calcite-color-foreground-1)))}:host([kind=danger][appearance=outline-fill]) .notice-icon,:host([kind=danger][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-success) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-success) 5%, var(--calcite-color-foreground-1)))}:host([kind=success][appearance=outline-fill]) .notice-icon,:host([kind=success][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-warning) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-warning) 5%, var(--calcite-color-foreground-1)))}:host([kind=warning][appearance=outline-fill]) .notice-icon,:host([kind=warning][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-warning)}:host([kind=neutral][appearance=outline-fill]) .container{border-color:var(--calcite-color-border-2);background-color:var(--calcite-notice-background-color, var(--calcite-color-foreground-1))}:host([kind=neutral]) .notice-icon{color:var(--calcite-color-text-3)}:host([appearance=transparent]) .container{background-color:transparent}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
25
|
+
const styles = css`:host([scale=s]){--calcite-notice-spacing-token-small: .5rem;--calcite-notice-spacing-token-large: .75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=s]) ::slotted(calcite-link){font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=m]){--calcite-notice-spacing-token-small: .75rem;--calcite-notice-spacing-token-large: 1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=m]) ::slotted(calcite-link){font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]){--calcite-notice-spacing-token-small: 1rem;--calcite-notice-spacing-token-large: 1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){font-size:var(--calcite-font-size-relative-lg);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]) ::slotted(calcite-link){font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]) .notice-close{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=l]) .actions-end{margin-inline-end:var(--calcite-spacing-sm);gap:var(--calcite-spacing-sm)}:host([width=auto]){--calcite-notice-width: auto}:host([width=half]){--calcite-notice-width: 50%}:host([width=full]){--calcite-notice-width: 100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;opacity:0;overflow:hidden;max-block-size:0;transition-property:opacity,max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-radius:var(--calcite-notice-corner-radius, var(--calcite-corner-radius-sm));box-shadow:var(--calcite-notice-shadow, var(--calcite-shadow-none))}:host{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;overflow:visible}@starting-style{:host([open]) .container{opacity:0;max-block-size:0}}:host([open][appearance=outline-fill]) .container{border:var(--calcite-border-width-sm) solid}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-notice-title-text-color, var(--calcite-color-text-1))}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-notice-content-text-color, var(--calcite-color-text-2))}:host(:not([kind=neutral])[appearance=solid]) .container slot[name=title]::slotted(*),:host(:not([kind=neutral])[appearance=solid]) .container *::slotted([slot=title]){color:var(--calcite-notice-title-text-color, var(--calcite-color-text-inverse))}:host(:not([kind=neutral])[appearance=solid]) .container slot[name=message]::slotted(*),:host(:not([kind=neutral])[appearance=solid]) .container *::slotted([slot=message]){color:var(--calcite-notice-content-text-color, var(--calcite-color-text-inverse))}.notice-content{box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-large)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;padding-inline:var(--calcite-notice-spacing-token-small)}.notice-close{box-sizing:border-box;display:flex;cursor:pointer;align-items:center;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;flex:0 0 auto;margin-inline-end:var(--calcite-spacing-xs);--calcite-action-background-color: var(--calcite-notice-close-background-color);--calcite-action-background-color-hover: var( --calcite-notice-close-background-color-hover, var(--calcite-notice-close-background-color-focus) );--calcite-action-background-color-press: var(--calcite-notice-close-background-color-press);--calcite-action-text-color: var(--calcite-notice-close-icon-color, var(--calcite-color-text-3));--calcite-action-text-color-press: var(--calcite-notice-close-icon-color-hover)}.actions-end{display:flex;align-items:center;flex:0 0 auto;margin-inline-end:var(--calcite-spacing-xs);gap:var(--calcite-spacing-xs)}:host([kind=brand][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-brand) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-brand) 5%, var(--calcite-color-foreground-1)))}:host([kind=brand][appearance=outline-fill]) .notice-icon,:host([kind=brand][appearance=transparent]) .notice-icon{color:var(--calcite-color-brand)}:host([kind=info][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-info) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-info) 5%, var(--calcite-color-foreground-1)))}:host([kind=info][appearance=outline-fill]) .notice-icon,:host([kind=info][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-danger) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-danger) 5%, var(--calcite-color-foreground-1)))}:host([kind=danger][appearance=outline-fill]) .notice-icon,:host([kind=danger][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-success) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-success) 5%, var(--calcite-color-foreground-1)))}:host([kind=success][appearance=outline-fill]) .notice-icon,:host([kind=success][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning][appearance=outline-fill]) .container{border-color:var(--calcite-notice-border-color, rgb(from var(--calcite-color-status-warning) r g b/var(--calcite-opacity-half)));background-color:var(--calcite-notice-background-color, color-mix(in srgb, var(--calcite-color-status-warning) 5%, var(--calcite-color-foreground-1)))}:host([kind=warning][appearance=outline-fill]) .notice-icon,:host([kind=warning][appearance=transparent]) .notice-icon{color:var(--calcite-color-status-warning)}:host([kind=neutral][appearance=outline-fill]) .container{border-color:var(--calcite-color-border-2);background-color:var(--calcite-notice-background-color, var(--calcite-color-foreground-1))}:host([kind=neutral]) .notice-icon{color:var(--calcite-color-text-3)}:host([appearance=transparent]) .container{background-color:transparent}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
26
26
|
class Notice extends LitElement {
|
|
27
27
|
constructor() {
|
|
28
28
|
super(...arguments);
|
|
@@ -65,7 +65,7 @@ export abstract class Pagination extends LitElement {
|
|
|
65
65
|
* Sets focus on the component's first focusable element.
|
|
66
66
|
*
|
|
67
67
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
68
|
-
* @
|
|
68
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
69
69
|
*/
|
|
70
70
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
71
71
|
/** Emits when the selected page changes. */
|
|
@@ -25,7 +25,7 @@ const ICONS = {
|
|
|
25
25
|
first: "chevron-start",
|
|
26
26
|
last: "chevron-end"
|
|
27
27
|
};
|
|
28
|
-
const styles = css`:host{display:flex;writing-mode:horizontal-tb}.list{margin:0;display:flex;list-style-type:none;padding:0;column-gap:var(--calcite-spacing-base)}.list-item{margin:0;display:flex;padding:0}.hidden-item{display:none}:host([scale=s]) .chevron,:host([scale=s]) .page,:host([scale=s]) .ellipsis{block-size:1.5rem;padding-inline:.25rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);min-inline-size:1.5rem}:host([scale=m]) .chevron,:host([scale=m]) .page,:host([scale=m]) .ellipsis{block-size:2rem;padding-inline:.5rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);min-inline-size:2rem}:host([scale=l]) .chevron,:host([scale=l]) .page,:host([scale=l]) .ellipsis{block-size:2.75rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-inline-size:2.75rem}:host([scale=l]) .chevron{padding-inline
|
|
28
|
+
const styles = css`:host{display:flex;writing-mode:horizontal-tb}.list{margin:0;display:flex;list-style-type:none;padding:0;column-gap:var(--calcite-spacing-base)}.list-item{margin:0;display:flex;padding:0}.hidden-item{display:none}:host([scale=s]) .chevron,:host([scale=s]) .page,:host([scale=s]) .ellipsis{block-size:1.5rem;padding-inline:.25rem;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);min-inline-size:1.5rem}:host([scale=m]) .chevron,:host([scale=m]) .page,:host([scale=m]) .ellipsis{block-size:2rem;padding-inline:.5rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-base);min-inline-size:2rem}:host([scale=l]) .chevron,:host([scale=l]) .page,:host([scale=l]) .ellipsis{block-size:2.75rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);min-inline-size:2.75rem}:host([scale=l]) .chevron{padding-inline:var(--calcite-space-sm-plus)}:host([scale=l]) .page,:host([scale=l]) .ellipsis{padding-inline:.75rem}:host button{outline-color:transparent}:host button:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.chevron,.page,.ellipsis{margin:0;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-style:none;--tw-border-opacity: 0;background-color:transparent;padding:0;vertical-align:baseline;font-family:inherit;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-md);color:var(--calcite-pagination-color, var(--calcite-color-text-3))}.chevron,.page{cursor:pointer;border-block:2px solid transparent}.chevron:hover,.page:hover{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-pagination-color-hover, var(--calcite-color-text-1))}.chevron:active,.page:active{color:var(--calcite-pagination-color-hover, var(--calcite-color-text-1))}.page:hover{border-block-end-color:var(--calcite-pagination-color-border-hover, var(--calcite-color-border-2))}.page:active{background-color:var(--calcite-pagination-background-color, var(--calcite-color-foreground-3))}.page.selected{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-pagination-color-hover, var(--calcite-color-text-1));border-block-end-color:var(--calcite-pagination-color-border-active, var(--calcite-color-brand))}.page.selected:focus{border-block-end-width:var(--calcite-spacing-xxs);padding-block-start:var(--calcite-spacing-base)}.chevron:hover{background-color:var(--calcite-pagination-icon-color-background-hover, var(--calcite-color-foreground-2))}.chevron:active{background-color:var(--calcite-pagination-background-color, var(--calcite-color-foreground-3))}.chevron.disabled{pointer-events:none;background-color:transparent}.chevron.disabled>calcite-icon{opacity:var(--calcite-opacity-disabled)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
29
29
|
const firstAndLastPageCount = 2;
|
|
30
30
|
const ellipsisCount = 2;
|
|
31
31
|
const maxItemBreakpoints = {
|
|
@@ -25,9 +25,9 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
25
25
|
* @cssproperty [--calcite-panel-header-content-space] - Specifies the padding of the component's `header-content` slot.
|
|
26
26
|
* @cssproperty [--calcite-panel-footer-space] - Specifies the padding of the component's footer.
|
|
27
27
|
* @cssproperty [--calcite-popover-border-color] - Specifies the border color of the component's internally rendered `calcite-popover`, which is rendered within a `calcite-action` menu when slotted `calcite-action`s are present in the `header-actions-end` slot. Applies to any slotted `calcite-popover`s.
|
|
28
|
-
* @cssproperty [--calcite-panel-content-space] - [Deprecated] Use `--calcite-panel-space` instead. Specifies the padding of the component's content.
|
|
29
|
-
* @cssproperty [--calcite-panel-footer-padding] - [Deprecated] Use `--calcite-panel-footer-space` instead. Specifies the padding of the component's footer.
|
|
30
|
-
* @cssproperty [--calcite-panel-header-border-block-end] - [Deprecated] Use `--calcite-panel-border-color` instead. Specifies the component header's block end border.
|
|
28
|
+
* @cssproperty [--calcite-panel-content-space] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-panel-space` instead. Specifies the padding of the component's content.
|
|
29
|
+
* @cssproperty [--calcite-panel-footer-padding] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-panel-footer-space` instead. Specifies the padding of the component's footer.
|
|
30
|
+
* @cssproperty [--calcite-panel-header-border-block-end] - [Deprecated] in v3.0.0, removal target v6.0.0 - Use `--calcite-panel-border-color` instead. Specifies the component header's block end border.
|
|
31
31
|
* @slot - A slot for adding custom content.
|
|
32
32
|
* @slot [action-bar] - A slot for adding a `calcite-action-bar` to the component.
|
|
33
33
|
* @slot [alerts] - A slot for adding `calcite-alert`s to the component.
|
|
@@ -37,6 +37,8 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
37
37
|
* @slot [header-actions-end] - A slot for adding actions or content to the end side of the header.
|
|
38
38
|
* @slot [header-content] - A slot for adding custom content to the header.
|
|
39
39
|
* @slot [header-menu-actions] - A slot for adding an overflow menu with actions inside a `calcite-dropdown`.
|
|
40
|
+
* @slot [heading] - A slot for adding content to the heading area of the default header. Takes precedence over the `heading` property.
|
|
41
|
+
* @slot [description] - A slot for adding content to the description area of the default header. Takes precedence over the `description` property.
|
|
40
42
|
* @slot [fab] - A slot for adding a `calcite-fab` (floating action button) to perform an action.
|
|
41
43
|
* @slot [footer] - A slot for adding custom content to the component's footer. Should not be used with the `"footer-start"` or `"footer-end"` slots.
|
|
42
44
|
* @slot [footer-end] - A slot for adding custom content to a trailing footer. Should not be used with the `"footer"` slot.
|
|
@@ -144,7 +146,7 @@ export abstract class Panel extends LitElement {
|
|
|
144
146
|
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
145
147
|
*
|
|
146
148
|
* @default false
|
|
147
|
-
* @
|
|
149
|
+
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
148
150
|
*/
|
|
149
151
|
accessor topLayerDisabled: boolean;
|
|
150
152
|
/**
|
|
@@ -164,7 +166,7 @@ export abstract class Panel extends LitElement {
|
|
|
164
166
|
* Sets focus on the component's first focusable element.
|
|
165
167
|
*
|
|
166
168
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
167
|
-
* @
|
|
169
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
168
170
|
*/
|
|
169
171
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
170
172
|
/** Fires when the close button is clicked. */
|
|
@@ -4,7 +4,7 @@ import { keyed } from "lit/directives/keyed.js";
|
|
|
4
4
|
import { css, html, nothing } from "lit";
|
|
5
5
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
|
-
import { s as slotChangeHasAssignedElement, a as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
7
|
+
import { s as slotChangeHasAssignedElement, a as slotChangeGetAssignedElements, A as slotChangeHasTextContent, h as hasVisibleContent } from "../../chunks/dom.js";
|
|
8
8
|
import { g as getIconScale } from "../../chunks/component.js";
|
|
9
9
|
import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
|
|
10
10
|
import { S as SLOTS$1 } from "../../chunks/resources2.js";
|
|
@@ -34,6 +34,8 @@ class Panel extends LitElement {
|
|
|
34
34
|
this.hasFooterEndContent = false;
|
|
35
35
|
this.hasFooterStartContent = false;
|
|
36
36
|
this.hasHeaderContent = false;
|
|
37
|
+
this.hasHeaderDescription = false;
|
|
38
|
+
this.hasHeaderHeading = false;
|
|
37
39
|
this.hasMenuItems = false;
|
|
38
40
|
this.hasStartActions = false;
|
|
39
41
|
this.showHeaderContent = false;
|
|
@@ -58,7 +60,7 @@ class Panel extends LitElement {
|
|
|
58
60
|
this.listen("calcitePanelClose", this.panelCloseHandler);
|
|
59
61
|
}
|
|
60
62
|
static {
|
|
61
|
-
this.properties = { hasActionBar: [16, {}, { state: true }], hasContentBottom: [16, {}, { state: true }], hasContentTop: [16, {}, { state: true }], hasEndActions: [16, {}, { state: true }], hasFab: [16, {}, { state: true }], hasFooterContent: [16, {}, { state: true }], hasFooterEndContent: [16, {}, { state: true }], hasFooterStartContent: [16, {}, { state: true }], hasHeaderContent: [16, {}, { state: true }], hasMenuItems: [16, {}, { state: true }], hasStartActions: [16, {}, { state: true }], showHeaderContent: [16, {}, { state: true }], beforeClose: [0, {}, { attribute: false }], closable: [7, {}, { reflect: true, type: Boolean }], closed: [7, {}, { reflect: true, type: Boolean }], collapseDirection: 1, collapsed: [7, {}, { reflect: true, type: Boolean }], collapsible: [7, {}, { reflect: true, type: Boolean }], description: 1, disabled: [7, {}, { reflect: true, type: Boolean }], heading: 1, headingLevel: [11, {}, { type: Number, reflect: true }], icon: [3, { type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], loading: [7, {}, { reflect: true, type: Boolean }], menuFlipPlacements: [0, {}, { attribute: false }], menuOpen: [7, {}, { reflect: true, type: Boolean }], menuPlacement: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], overlayPositioning: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }] };
|
|
63
|
+
this.properties = { hasActionBar: [16, {}, { state: true }], hasContentBottom: [16, {}, { state: true }], hasContentTop: [16, {}, { state: true }], hasEndActions: [16, {}, { state: true }], hasFab: [16, {}, { state: true }], hasFooterContent: [16, {}, { state: true }], hasFooterEndContent: [16, {}, { state: true }], hasFooterStartContent: [16, {}, { state: true }], hasHeaderContent: [16, {}, { state: true }], hasHeaderDescription: [16, {}, { state: true }], hasHeaderHeading: [16, {}, { state: true }], hasMenuItems: [16, {}, { state: true }], hasStartActions: [16, {}, { state: true }], showHeaderContent: [16, {}, { state: true }], beforeClose: [0, {}, { attribute: false }], closable: [7, {}, { reflect: true, type: Boolean }], closed: [7, {}, { reflect: true, type: Boolean }], collapseDirection: 1, collapsed: [7, {}, { reflect: true, type: Boolean }], collapsible: [7, {}, { reflect: true, type: Boolean }], description: 1, disabled: [7, {}, { reflect: true, type: Boolean }], heading: 1, headingLevel: [11, {}, { type: Number, reflect: true }], icon: [3, { type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], loading: [7, {}, { reflect: true, type: Boolean }], menuFlipPlacements: [0, {}, { attribute: false }], menuOpen: [7, {}, { reflect: true, type: Boolean }], menuPlacement: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], overlayPositioning: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], topLayerDisabled: [7, {}, { reflect: true, type: Boolean }] };
|
|
62
64
|
}
|
|
63
65
|
static {
|
|
64
66
|
this.styles = [styles$1, styles];
|
|
@@ -155,6 +157,12 @@ class Panel extends LitElement {
|
|
|
155
157
|
handleHeaderContentSlotChange(event) {
|
|
156
158
|
this.hasHeaderContent = slotChangeHasAssignedElement(event);
|
|
157
159
|
}
|
|
160
|
+
handleHeaderDescriptionSlotChange(event) {
|
|
161
|
+
this.hasHeaderDescription = slotChangeHasTextContent(event) || slotChangeGetAssignedElements(event).some(hasVisibleContent);
|
|
162
|
+
}
|
|
163
|
+
handleHeaderHeadingSlotChange(event) {
|
|
164
|
+
this.hasHeaderHeading = slotChangeHasTextContent(event) || slotChangeGetAssignedElements(event).some(hasVisibleContent);
|
|
165
|
+
}
|
|
158
166
|
handleFabSlotChange(event) {
|
|
159
167
|
this.hasFab = slotChangeHasAssignedElement(event);
|
|
160
168
|
}
|
|
@@ -185,11 +193,14 @@ class Panel extends LitElement {
|
|
|
185
193
|
});
|
|
186
194
|
}
|
|
187
195
|
renderHeaderContent() {
|
|
188
|
-
const { heading, headingLevel, description, hasHeaderContent, icon, scale } = this;
|
|
196
|
+
const { heading, headingLevel, description, hasHeaderContent, hasHeaderDescription, hasHeaderHeading, icon, scale } = this;
|
|
197
|
+
const showHeaderHeading = !!heading || hasHeaderHeading;
|
|
198
|
+
const showHeaderDescription = !!description || hasHeaderDescription;
|
|
199
|
+
const showHeaderTextContent = showHeaderHeading || showHeaderDescription;
|
|
189
200
|
const iconNode = icon ? html`<calcite-icon class=${safeClassMap(CSS.icon)} .flipRtl=${this.iconFlipRtl} .icon=${icon} .scale=${getIconScale(scale)}></calcite-icon>` : null;
|
|
190
|
-
const headingNode =
|
|
191
|
-
const descriptionNode =
|
|
192
|
-
return
|
|
201
|
+
const headingNode = Heading({ class: CSS.heading, hidden: !showHeaderHeading, level: headingLevel, children: html`<slot .hidden=${!hasHeaderHeading} name=${SLOTS.heading} @slotchange=${this.handleHeaderHeadingSlotChange}></slot>${!hasHeaderHeading ? heading : null}` });
|
|
202
|
+
const descriptionNode = html`<span class=${safeClassMap(CSS.description)} .hidden=${!showHeaderDescription}><slot .hidden=${!hasHeaderDescription} name=${SLOTS.description} @slotchange=${this.handleHeaderDescriptionSlotChange}></slot>${!hasHeaderDescription ? description : null}</span>`;
|
|
203
|
+
return keyed("header-content", html`<div class=${safeClassMap({ [CSS.headerContent]: true, [CSS.headerNonSlottedContent]: true })} .hidden=${hasHeaderContent || !showHeaderTextContent}>${iconNode}<div class=${safeClassMap(CSS.headingTextContent)}>${headingNode}${descriptionNode}</div></div>`);
|
|
193
204
|
}
|
|
194
205
|
renderActionBar() {
|
|
195
206
|
return html`<div class=${safeClassMap(CSS.actionBarContainer)} .hidden=${!this.hasActionBar}><slot name=${SLOTS.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`;
|
|
@@ -219,9 +230,10 @@ class Panel extends LitElement {
|
|
|
219
230
|
return keyed("menu", html`<calcite-action-menu .flipPlacements=${menuFlipPlacements ?? ["top", "bottom"]} .hidden=${!hasMenuItems} .label=${messages.options} .open=${menuOpen} .overlayPositioning=${this.overlayPositioning} .placement=${menuPlacement} .scale=${scale} .topLayerDisabled=${this.topLayerDisabled}><calcite-action class=${safeClassMap(CSS.menuAction)} .icon=${ICONS.menu} .scale=${scale} slot=${SLOTS$1.trigger} .text=${messages.options}></calcite-action><slot name=${SLOTS.headerMenuActions} @slotchange=${this.handleHeaderMenuActionsSlotChange}></slot></calcite-action-menu>`);
|
|
220
231
|
}
|
|
221
232
|
renderHeaderNode() {
|
|
222
|
-
const { hasHeaderContent, hasStartActions, hasEndActions, closable, collapsible, hasMenuItems, hasActionBar, hasContentTop } = this;
|
|
233
|
+
const { hasHeaderContent, hasHeaderDescription, hasHeaderHeading, hasStartActions, hasEndActions, closable, collapsible, hasMenuItems, hasActionBar, hasContentTop, heading, description } = this;
|
|
223
234
|
const headerContentNode = this.renderHeaderContent();
|
|
224
|
-
const
|
|
235
|
+
const hasDefaultHeaderContent = !!heading || !!description || hasHeaderHeading || hasHeaderDescription;
|
|
236
|
+
const showHeaderContent = hasHeaderContent || hasDefaultHeaderContent || hasStartActions || hasEndActions || collapsible || closable || hasMenuItems || hasActionBar || hasContentTop;
|
|
225
237
|
this.showHeaderContent = showHeaderContent;
|
|
226
238
|
return html`<header class=${safeClassMap(CSS.header)} .hidden=${!(showHeaderContent || hasActionBar || hasContentTop)}><div class=${safeClassMap({ [CSS.headerContainer]: true, [CSS.headerContainerBorderEnd]: hasActionBar })} .hidden=${!showHeaderContent}>${this.renderHeaderStartActions()}${this.renderHeaderSlottedContent()}${headerContentNode}${this.renderHeaderActionsEnd()}</div>${this.renderActionBar()}${this.renderContentTop()}</header>`;
|
|
227
239
|
}
|
|
@@ -122,7 +122,7 @@ export abstract class Popover extends LitElement {
|
|
|
122
122
|
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
123
123
|
*
|
|
124
124
|
* @default false
|
|
125
|
-
* @
|
|
125
|
+
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
126
126
|
*/
|
|
127
127
|
accessor topLayerDisabled: boolean;
|
|
128
128
|
/**
|
|
@@ -143,7 +143,7 @@ export abstract class Popover extends LitElement {
|
|
|
143
143
|
* Sets focus on the component's first focusable element.
|
|
144
144
|
*
|
|
145
145
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
146
|
-
* @
|
|
146
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
147
147
|
*/
|
|
148
148
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
149
149
|
/**
|
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed } from "lit/directives/keyed.js";
|
|
4
4
|
import { css, html } from "lit";
|
|
5
|
-
import { LitElement, createEvent, safeClassMap
|
|
5
|
+
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
6
6
|
import { createRef, ref } from "lit/directives/ref.js";
|
|
7
7
|
import { useDirection } from "@arcgis/lumina/controllers";
|
|
8
|
-
import { e as defaultOffsetDistance, r as reposition,
|
|
9
|
-
import { j as isPrimaryPointerButton, x as isKeyboardTriggeredClick, q as queryElementRoots } from "../../chunks/dom.js";
|
|
10
|
-
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
11
|
-
import { g as guid } from "../../chunks/guid.js";
|
|
8
|
+
import { e as defaultOffsetDistance, r as reposition, c as connectFloatingUI, a as disconnectFloatingUI, f as filterValidFlipPlacements, h as hideFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
|
|
12
9
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
13
10
|
import { H as Heading } from "../../chunks/Heading.js";
|
|
14
11
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
@@ -17,100 +14,7 @@ import { u as useT9n } from "../../chunks/useT9n.js";
|
|
|
17
14
|
import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
|
|
18
15
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
19
16
|
import { u as useTopLayer } from "../../chunks/useTopLayer.js";
|
|
20
|
-
import {
|
|
21
|
-
const clickTolerance = 5;
|
|
22
|
-
function isDrag({
|
|
23
|
-
startX,
|
|
24
|
-
startY,
|
|
25
|
-
endX,
|
|
26
|
-
endY
|
|
27
|
-
}) {
|
|
28
|
-
const distance = Math.hypot(endX - startX, endY - startY);
|
|
29
|
-
return distance > clickTolerance;
|
|
30
|
-
}
|
|
31
|
-
class PopoverManager {
|
|
32
|
-
constructor() {
|
|
33
|
-
this.registeredElements = /* @__PURE__ */ new Map();
|
|
34
|
-
this.registeredElementCount = 0;
|
|
35
|
-
this.queryPopover = (composedPath) => {
|
|
36
|
-
const { registeredElements } = this;
|
|
37
|
-
const registeredElement = composedPath.find((pathEl) => registeredElements.has(pathEl));
|
|
38
|
-
return registeredElements.get(registeredElement);
|
|
39
|
-
};
|
|
40
|
-
this.togglePopovers = (event) => {
|
|
41
|
-
const composedPath = event.composedPath();
|
|
42
|
-
const togglePopover = this.queryPopover(composedPath);
|
|
43
|
-
if (togglePopover && !togglePopover.triggerDisabled) {
|
|
44
|
-
togglePopover.open = !togglePopover.open;
|
|
45
|
-
}
|
|
46
|
-
Array.from(this.registeredElements.values()).filter(
|
|
47
|
-
(popover) => popover !== togglePopover && popover.autoClose && popover.open && !composedPath.includes(popover)
|
|
48
|
-
).forEach((popover) => popover.open = false);
|
|
49
|
-
};
|
|
50
|
-
this.keyDownHandler = (event) => {
|
|
51
|
-
if (event.defaultPrevented) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
if (event.key === "Escape") {
|
|
55
|
-
this.closeAllPopovers();
|
|
56
|
-
} else if (isActivationKey(event.key)) {
|
|
57
|
-
this.togglePopovers(event);
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
this.pointerDownHandler = (event) => {
|
|
61
|
-
if (event.defaultPrevented || !isPrimaryPointerButton(event)) {
|
|
62
|
-
return;
|
|
63
|
-
}
|
|
64
|
-
const { clientX, clientY } = event;
|
|
65
|
-
this.pointerDownPosition = { x: clientX, y: clientY };
|
|
66
|
-
};
|
|
67
|
-
this.clickHandler = (event) => {
|
|
68
|
-
if (isKeyboardTriggeredClick(event) || event.defaultPrevented || this.pointerDownPosition && isDrag({
|
|
69
|
-
endY: event.clientY,
|
|
70
|
-
endX: event.clientX,
|
|
71
|
-
startY: this.pointerDownPosition.y,
|
|
72
|
-
startX: this.pointerDownPosition.x
|
|
73
|
-
})) {
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
this.pointerDownPosition = void 0;
|
|
77
|
-
this.togglePopovers(event);
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
// --------------------------------------------------------------------------
|
|
81
|
-
//
|
|
82
|
-
// Public Methods
|
|
83
|
-
//
|
|
84
|
-
// --------------------------------------------------------------------------
|
|
85
|
-
registerElement(referenceEl, popover) {
|
|
86
|
-
this.registeredElementCount++;
|
|
87
|
-
this.registeredElements.set(referenceEl, popover);
|
|
88
|
-
if (this.registeredElementCount === 1) {
|
|
89
|
-
this.addListeners();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
unregisterElement(referenceEl) {
|
|
93
|
-
if (this.registeredElements.delete(referenceEl)) {
|
|
94
|
-
this.registeredElementCount--;
|
|
95
|
-
}
|
|
96
|
-
if (this.registeredElementCount === 0) {
|
|
97
|
-
this.removeListeners();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
closeAllPopovers() {
|
|
101
|
-
Array.from(this.registeredElements.values()).forEach((popover) => popover.open = false);
|
|
102
|
-
}
|
|
103
|
-
addListeners() {
|
|
104
|
-
window.addEventListener("pointerdown", this.pointerDownHandler);
|
|
105
|
-
window.addEventListener("click", this.clickHandler);
|
|
106
|
-
window.addEventListener("keydown", this.keyDownHandler);
|
|
107
|
-
}
|
|
108
|
-
removeListeners() {
|
|
109
|
-
window.removeEventListener("pointerdown", this.pointerDownHandler);
|
|
110
|
-
window.removeEventListener("click", this.clickHandler);
|
|
111
|
-
window.removeEventListener("keydown", this.keyDownHandler);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
17
|
+
import { u as useReferenceElement, r as referenceElementManager } from "../../chunks/manager.js";
|
|
114
18
|
const CSS = {
|
|
115
19
|
positionContainer: "position-container",
|
|
116
20
|
container: "container",
|
|
@@ -123,13 +27,13 @@ const CSS = {
|
|
|
123
27
|
heading: "heading"
|
|
124
28
|
};
|
|
125
29
|
const defaultPopoverPlacement = "auto";
|
|
126
|
-
const
|
|
127
|
-
const
|
|
128
|
-
const styles = css`:host{display:contents}:host([top-layer-disabled]){--calcite-floating-ui-z-index: var(--calcite-z-index-popup)}.position-container{inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}@starting-style{.position-container{opacity:0;inset-block-start:0;left:0}}.position-container{max-inline-size:var(--calcite-popover-max-size-x, 100vw)}.position-container[popover]{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;display:none}.position-container:popover-open{display:block}.position-container .calcite-floating-ui-anim{position:relative;transition-duration:var(--calcite-floating-ui-transition);transition-property:inset-block-start,left,opacity,display;transition-behavior:allow-discrete;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.position-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.position-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.position-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.position-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@starting-style{.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:0}}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding:.5rem .75rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-relative-snug)}:host(:is([scale=s],[scale=m])){--calcite-internal-popover-close-spacing: var(--calcite-spacing-xs)}:host([scale=m]) .heading{padding:.75rem 1rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]){--calcite-internal-popover-close-spacing: var(--calcite-spacing-sm)}:host([scale=l]) .heading{padding:1rem 1.25rem;font-size:var(--calcite-font-size-relative-lg);line-height:var(--calcite-font-line-height-relative-snug)}.position-container .calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-bottom-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.header-container{position:relative;display:flex;height:100%;flex-direction:row;flex-wrap:nowrap;border-radius:.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.header-container.has-header{flex-direction:column}.content{display:flex;height:100%;width:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button{margin:auto;margin-inline-end:var(--calcite-internal-popover-close-spacing)}.close-button-container{display:flex;flex:0 0 auto}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
129
|
-
const manager = new PopoverManager();
|
|
30
|
+
const styles = css`:host{display:contents}:host([top-layer-disabled]){--calcite-floating-ui-z-index: var(--calcite-z-index-popup)}.position-container{inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}@starting-style{.position-container{opacity:0;inset-block-start:0;left:0}}.position-container{max-inline-size:var(--calcite-popover-max-size-x, 100vw)}.position-container[popover]{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;display:none}.position-container:popover-open{display:block}.position-container .calcite-floating-ui-anim{position:relative;transition-duration:var(--calcite-floating-ui-transition);transition-property:inset-block-start,left,opacity,display;transition-behavior:allow-discrete;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.position-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.position-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.position-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.position-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@starting-style{.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:0}}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding:.5rem .75rem;font-size:var(--calcite-font-size-relative-base);line-height:var(--calcite-font-line-height-relative-snug)}:host(:is([scale=s],[scale=m])){--calcite-internal-popover-close-spacing: var(--calcite-spacing-xs)}:host([scale=m]) .heading{padding:.75rem 1rem;font-size:var(--calcite-font-size-relative-md);line-height:var(--calcite-font-line-height-relative-snug)}:host([scale=l]){--calcite-internal-popover-close-spacing: var(--calcite-spacing-sm)}:host([scale=l]) .heading{padding:1rem 1.25rem;font-size:var(--calcite-font-size-relative-lg);line-height:var(--calcite-font-line-height-relative-snug)}.position-container .calcite-floating-ui-anim{border-width:1px;border-style:solid;box-shadow:var(--calcite-shadow-md);background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-bottom-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.header-container{position:relative;display:flex;height:100%;flex-direction:row;flex-wrap:nowrap;border-radius:.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.header-container.has-header{flex-direction:column}.content{display:flex;height:100%;width:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button{margin:auto;margin-inline-end:var(--calcite-internal-popover-close-spacing)}.close-button-container{display:flex;flex:0 0 auto}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
31
|
+
const manager = referenceElementManager({ click: true });
|
|
130
32
|
class Popover extends LitElement {
|
|
131
33
|
constructor() {
|
|
132
34
|
super(...arguments);
|
|
35
|
+
this.referenceElementType = "click";
|
|
36
|
+
this.referenceElementController = useReferenceElement({ manager })(this);
|
|
133
37
|
this.direction = useDirection();
|
|
134
38
|
this.focusTrap = useFocusTrap({
|
|
135
39
|
triggerProp: "open",
|
|
@@ -144,8 +48,6 @@ class Popover extends LitElement {
|
|
|
144
48
|
}
|
|
145
49
|
}
|
|
146
50
|
})(this);
|
|
147
|
-
this.guid = `calcite-popover-${guid()}`;
|
|
148
|
-
this.hasLoaded = false;
|
|
149
51
|
this.mutationObserver = createObserver("mutation", () => this.focusTrap.updateContainerElements());
|
|
150
52
|
this.transitionProp = "opacity";
|
|
151
53
|
this.transitionRef = createRef();
|
|
@@ -207,7 +109,6 @@ class Popover extends LitElement {
|
|
|
207
109
|
super.connectedCallback();
|
|
208
110
|
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
209
111
|
this.setFilteredPlacements();
|
|
210
|
-
requestAnimationFrame(() => this.setUpReferenceElement(this.hasLoaded));
|
|
211
112
|
}
|
|
212
113
|
willUpdate(changes) {
|
|
213
114
|
if (changes.has("flipPlacements")) {
|
|
@@ -219,23 +120,18 @@ class Popover extends LitElement {
|
|
|
219
120
|
if (changes.has("offsetDistance") && (this.hasUpdated || this.offsetDistance !== defaultOffsetDistance) || changes.has("offsetSkidding") && (this.hasUpdated || this.offsetSkidding !== 0) || changes.has("overlayPositioning") && (this.hasUpdated || this.overlayPositioning !== "absolute") || changes.has("placement") && (this.hasUpdated || this.placement !== defaultPopoverPlacement)) {
|
|
220
121
|
this.reposition(true);
|
|
221
122
|
}
|
|
222
|
-
if (changes.has("referenceElement")) {
|
|
223
|
-
this.
|
|
224
|
-
if (!this.referenceElement && this.open) {
|
|
225
|
-
this.topLayer.hide();
|
|
226
|
-
}
|
|
123
|
+
if (changes.has("referenceElement") && !this.referenceElement && this.open) {
|
|
124
|
+
this.topLayer.hide();
|
|
227
125
|
}
|
|
228
126
|
}
|
|
229
|
-
|
|
230
|
-
if (
|
|
231
|
-
this
|
|
127
|
+
updated(changes) {
|
|
128
|
+
if (changes.has("referenceEl")) {
|
|
129
|
+
connectFloatingUI(this);
|
|
232
130
|
}
|
|
233
|
-
this.hasLoaded = true;
|
|
234
131
|
}
|
|
235
132
|
disconnectedCallback() {
|
|
236
133
|
super.disconnectedCallback();
|
|
237
134
|
this.mutationObserver?.disconnect();
|
|
238
|
-
this.removeReferences();
|
|
239
135
|
disconnectFloatingUI(this);
|
|
240
136
|
}
|
|
241
137
|
flipPlacementsHandler() {
|
|
@@ -245,73 +141,14 @@ class Popover extends LitElement {
|
|
|
245
141
|
openHandler() {
|
|
246
142
|
toggleOpenClose(this);
|
|
247
143
|
this.reposition(true);
|
|
248
|
-
this.setExpandedAttr();
|
|
249
|
-
}
|
|
250
|
-
referenceElementHandler() {
|
|
251
|
-
this.setUpReferenceElement();
|
|
252
|
-
this.reposition(true);
|
|
253
144
|
}
|
|
254
145
|
setFloatingEl(el) {
|
|
255
146
|
this.floatingEl = el;
|
|
256
|
-
if (el) {
|
|
257
|
-
requestAnimationFrame(() => this.setUpReferenceElement());
|
|
258
|
-
}
|
|
259
147
|
}
|
|
260
148
|
setFilteredPlacements() {
|
|
261
149
|
const { el, flipPlacements } = this;
|
|
262
150
|
this.filteredFlipPlacements = flipPlacements ? filterValidFlipPlacements(flipPlacements, el) : null;
|
|
263
151
|
}
|
|
264
|
-
setUpReferenceElement(warn = true) {
|
|
265
|
-
this.removeReferences();
|
|
266
|
-
this.referenceEl = this.getReferenceElement();
|
|
267
|
-
connectFloatingUI(this);
|
|
268
|
-
const { el, referenceElement, referenceEl } = this;
|
|
269
|
-
if (warn && referenceElement && !referenceEl) {
|
|
270
|
-
console.warn(`${el.tagName}: reference-element id "${referenceElement}" was not found.`, {
|
|
271
|
-
el
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
this.addReferences();
|
|
275
|
-
}
|
|
276
|
-
getId() {
|
|
277
|
-
return this.el.id || this.guid;
|
|
278
|
-
}
|
|
279
|
-
setExpandedAttr() {
|
|
280
|
-
const { referenceEl, open } = this;
|
|
281
|
-
if (!referenceEl) {
|
|
282
|
-
return;
|
|
283
|
-
}
|
|
284
|
-
if ("setAttribute" in referenceEl) {
|
|
285
|
-
referenceEl.setAttribute(ARIA_EXPANDED, toAriaBoolean(open));
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
addReferences() {
|
|
289
|
-
const { referenceEl } = this;
|
|
290
|
-
if (!referenceEl) {
|
|
291
|
-
return;
|
|
292
|
-
}
|
|
293
|
-
const id = this.getId();
|
|
294
|
-
if ("setAttribute" in referenceEl) {
|
|
295
|
-
referenceEl.setAttribute(ARIA_CONTROLS, id);
|
|
296
|
-
}
|
|
297
|
-
manager.registerElement(referenceEl, this.el);
|
|
298
|
-
this.setExpandedAttr();
|
|
299
|
-
}
|
|
300
|
-
removeReferences() {
|
|
301
|
-
const { referenceEl } = this;
|
|
302
|
-
if (!referenceEl) {
|
|
303
|
-
return;
|
|
304
|
-
}
|
|
305
|
-
if ("removeAttribute" in referenceEl) {
|
|
306
|
-
referenceEl.removeAttribute(ARIA_CONTROLS);
|
|
307
|
-
referenceEl.removeAttribute(ARIA_EXPANDED);
|
|
308
|
-
}
|
|
309
|
-
manager.unregisterElement(referenceEl);
|
|
310
|
-
}
|
|
311
|
-
getReferenceElement() {
|
|
312
|
-
const { referenceElement, el } = this;
|
|
313
|
-
return (typeof referenceElement === "string" ? queryElementRoots(el, { id: referenceElement }) : referenceElement) || null;
|
|
314
|
-
}
|
|
315
152
|
hide() {
|
|
316
153
|
this.open = false;
|
|
317
154
|
}
|
|
@@ -353,7 +190,6 @@ class Popover extends LitElement {
|
|
|
353
190
|
this.el.inert = hidden;
|
|
354
191
|
this.el.ariaLabel = label;
|
|
355
192
|
this.el.ariaLive = "polite";
|
|
356
|
-
setAttribute(this.el, "id", this.getId());
|
|
357
193
|
this.el.role = "dialog";
|
|
358
194
|
return html`<div class=${safeClassMap(CSS.positionContainer)} popover=manual ${ref(this.setFloatingEl)}><div class=${safeClassMap({
|
|
359
195
|
[CSS.container]: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
-
import type { Scale } from "../interfaces.js";
|
|
3
|
+
import type { Scale, Status } from "../interfaces.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @cssproperty [--calcite-radio-button-background-color] - Specifies the component's background color.
|
|
@@ -44,6 +44,26 @@ export abstract class RadioButton extends LitElement {
|
|
|
44
44
|
* @default "m"
|
|
45
45
|
*/
|
|
46
46
|
accessor scale: Scale;
|
|
47
|
+
/**
|
|
48
|
+
* Specifies the status of the input field, which determines message and icons.
|
|
49
|
+
*
|
|
50
|
+
* @default "idle"
|
|
51
|
+
*/
|
|
52
|
+
accessor status: Status;
|
|
53
|
+
/**
|
|
54
|
+
* The component's validation message.
|
|
55
|
+
*
|
|
56
|
+
* @internal
|
|
57
|
+
* @mdn [validationMessage](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/validationMessage)
|
|
58
|
+
*/
|
|
59
|
+
accessor validationMessage: string;
|
|
60
|
+
/**
|
|
61
|
+
* The component's current validation state.
|
|
62
|
+
*
|
|
63
|
+
* @internal
|
|
64
|
+
* @mdn [ValidityState](https://developer.mozilla.org/en-US/docs/Web/API/ValidityState)
|
|
65
|
+
*/
|
|
66
|
+
get validity(): ValidityState;
|
|
47
67
|
/**
|
|
48
68
|
* The component's value.
|
|
49
69
|
*
|
|
@@ -54,9 +74,17 @@ export abstract class RadioButton extends LitElement {
|
|
|
54
74
|
* Sets focus on the component.
|
|
55
75
|
*
|
|
56
76
|
* @param options - When specified an optional object customizes the component's focusing process. When `preventScroll` is `true`, scrolling will not occur on the component.
|
|
57
|
-
* @
|
|
77
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
58
78
|
*/
|
|
59
79
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Sets the component's validity state.
|
|
82
|
+
*
|
|
83
|
+
* @param validity
|
|
84
|
+
* @param validationMessage
|
|
85
|
+
* @internal
|
|
86
|
+
*/
|
|
87
|
+
setValidity(validity: ValidityStateFlags, validationMessage?: string): Promise<void>;
|
|
60
88
|
/**
|
|
61
89
|
* Fires only when the radio button is checked. This behavior is identical to the native HTML input element.
|
|
62
90
|
* Since this event does not fire when the radio button is unchecked, it's not recommended to attach a listener for this event
|