@esri/calcite-components 5.1.0-next.3 → 5.1.0-next.30
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/cdn/2I24Q6HG.js +2 -0
- package/dist/cdn/2LUMWQZY.js +2 -0
- package/dist/cdn/{QOXTJ7PA.js → 34WUOWO6.js} +1 -1
- package/dist/cdn/{6C5JMRKM.js → 3FXLCXEF.js} +1 -1
- package/dist/cdn/3LVPP52S.js +2 -0
- package/dist/cdn/3UU6PUEZ.js +2 -0
- package/dist/cdn/{RHJW4CXA.js → 46XYBXSA.js} +1 -1
- package/dist/cdn/{LCPYWUGK.js → 47ZWM6SP.js} +1 -1
- package/dist/cdn/4CGPBRFI.js +2 -0
- package/dist/cdn/{EQ4Z4LBA.js → 4RP3OGCP.js} +1 -1
- package/dist/cdn/{X6LSQXQT.js → 57CIL36H.js} +1 -1
- package/dist/cdn/{SQLDNSI6.js → 5DEP6UL7.js} +1 -1
- package/dist/cdn/5DEXYRFH.js +2 -0
- package/dist/cdn/66BQUAEF.js +2 -0
- package/dist/cdn/6742QPEE.js +2 -0
- package/dist/cdn/6FSL67XJ.js +2 -0
- package/dist/cdn/{IZBELXZC.js → 6KMNIG3H.js} +1 -1
- package/dist/cdn/{B4VMCAZI.js → 6LODJ26H.js} +1 -1
- package/dist/cdn/74EOXSPH.js +2 -0
- package/dist/cdn/7GTG7SUF.js +2 -0
- package/dist/cdn/7I5EKIDO.js +2 -0
- package/dist/cdn/7Q6FVOSE.js +2 -0
- package/dist/cdn/7WMQKIBY.js +2 -0
- package/dist/cdn/7YQW7B7E.js +2 -0
- package/dist/cdn/7ZBXJRPO.js +2 -0
- package/dist/cdn/{ECURCDZ2.js → A7RILTOO.js} +1 -1
- package/dist/cdn/AFGHAQUQ.js +2 -0
- package/dist/cdn/{QGBPRJIT.js → AHEDZHQ2.js} +1 -1
- package/dist/cdn/AJTOSFDH.js +2 -0
- package/dist/cdn/AOP3NH2U.js +2 -0
- package/dist/cdn/{D3ZA3ZSE.js → AOQ34WQ6.js} +1 -1
- package/dist/cdn/AQNYPIPX.js +2 -0
- package/dist/cdn/ARNANVZZ.js +2 -0
- package/dist/cdn/AVYPI52K.js +2 -0
- package/dist/cdn/B3EBGYCI.js +2 -0
- package/dist/cdn/{2EN543JD.js → BS547LGW.js} +1 -1
- package/dist/cdn/{KHE57SV3.js → BXIBMOE6.js} +1 -1
- package/dist/cdn/BYS4GNCX.js +2 -0
- package/dist/cdn/{YX5LYAIV.js → C32S4HGX.js} +1 -1
- package/dist/cdn/CBWGCOIO.js +2 -0
- package/dist/cdn/{XLOC3L55.js → CJQWESQ2.js} +3 -3
- package/dist/cdn/CJTB2G5O.js +2 -0
- package/dist/cdn/CNQVNMR7.js +2 -0
- package/dist/cdn/CPIWY5GX.js +2 -0
- package/dist/cdn/D3G4KNL4.js +2 -0
- package/dist/cdn/{EHIAXJAL.js → DCWL5FUH.js} +1 -1
- package/dist/cdn/DDDUIVNA.js +2 -0
- package/dist/cdn/{I5LZP3DC.js → DJ5TODX7.js} +1 -1
- package/dist/cdn/{IF5AIFNS.js → DQJ3PS72.js} +1 -1
- package/dist/cdn/DSY7BOJJ.js +2 -0
- package/dist/cdn/{VZDUTHQS.js → DUYCNBSR.js} +1 -1
- package/dist/cdn/DWIB4FVP.js +2 -0
- package/dist/cdn/E3OAYCPO.js +2 -0
- package/dist/cdn/{EYR3DX5M.js → EHTWHFIN.js} +1 -1
- package/dist/cdn/EUJFL2WJ.js +2 -0
- package/dist/cdn/{NPTVRXRO.js → F6O2MDAB.js} +1 -1
- package/dist/cdn/FBBEDCIC.js +2 -0
- package/dist/cdn/{N5SFF63Q.js → FIGNBXC4.js} +1 -1
- package/dist/cdn/{R265ZYQR.js → FS3FIZQ7.js} +1 -1
- package/dist/cdn/G5IYZRZD.js +2 -0
- package/dist/cdn/GBL55CBG.js +2 -0
- package/dist/cdn/GEWRKDNT.js +2 -0
- package/dist/cdn/{RTSHUMUI.js → GLYCZM27.js} +1 -1
- package/dist/cdn/{ULGKAMEK.js → GNUO7A4Y.js} +1 -1
- package/dist/cdn/H43C4DT4.js +2 -0
- package/dist/cdn/H4ESHMLA.js +2 -0
- package/dist/cdn/H5G45SF4.js +2 -0
- package/dist/cdn/{WUW46I4S.js → HDQ72ZNE.js} +1 -1
- package/dist/cdn/HIHNC2W6.js +2 -0
- package/dist/cdn/HKSMMZUW.js +2 -0
- package/dist/cdn/{TG6MK4QD.js → HWBVGZHG.js} +1 -1
- package/dist/cdn/HXIVUHZU.js +2 -0
- package/dist/cdn/ICNEOIAY.js +2 -0
- package/dist/cdn/{4ILCK5CI.js → IDJOHYLJ.js} +1 -1
- package/dist/cdn/{GIV3RH7X.js → ITD5YGM3.js} +1 -1
- package/dist/cdn/J3P6S2E2.js +2 -0
- package/dist/cdn/JEALIYFT.js +2 -0
- package/dist/cdn/JPDWZDO2.js +2 -0
- package/dist/cdn/JPE6LVAD.js +2 -0
- package/dist/cdn/{YKP66AQ5.js → JWEKZH6L.js} +1 -1
- package/dist/cdn/KI33EXTI.js +2 -0
- package/dist/cdn/{LJIHBKNI.js → KJIYAJA4.js} +1 -1
- package/dist/cdn/KW4BHBBW.js +2 -0
- package/dist/cdn/{4ZGFXXYL.js → L7DEPZAJ.js} +1 -1
- package/dist/cdn/{4NDBPQOW.js → L7TOPWGR.js} +1 -1
- package/dist/cdn/LK7OAPDO.js +2 -0
- package/dist/cdn/{KBSNJSUL.js → LOJGQFL6.js} +1 -1
- package/dist/cdn/{HFPBP7XA.js → LTDQ3KMS.js} +1 -1
- package/dist/cdn/{732QLUKT.js → LVZ24HEK.js} +1 -1
- package/dist/cdn/{QQYOGIVS.js → M6TXECYZ.js} +1 -1
- package/dist/cdn/MORUF5PU.js +2 -0
- package/dist/cdn/{RMERVJA5.js → MPGZXCBO.js} +1 -1
- package/dist/cdn/{XGISY6QA.js → MWS2HEQR.js} +1 -1
- package/dist/cdn/{3ZYN3227.js → MXDC3OC2.js} +1 -1
- package/dist/cdn/{3GV45XL7.js → MYDCGCGV.js} +1 -1
- package/dist/cdn/{HJ45IHRA.js → NWCFNDM2.js} +1 -1
- package/dist/cdn/{RRN6YM7F.js → NWIU5L4M.js} +1 -1
- package/dist/cdn/NYL2Z7AD.js +2 -0
- package/dist/cdn/{LKHFQ3U6.js → O5WPS55F.js} +1 -1
- package/dist/cdn/{FXFRKJEJ.js → ODAV2DWN.js} +1 -1
- package/dist/cdn/OGQ6UAE2.js +2 -0
- package/dist/cdn/OLXLHWGL.js +2 -0
- package/dist/cdn/{RBGGE65K.js → P2ZPFKR7.js} +1 -1
- package/dist/cdn/{LDLJRK76.js → P32KQQAD.js} +1 -1
- package/dist/cdn/{ZJ34LWXC.js → QAG6VFG2.js} +1 -1
- package/dist/cdn/QRH3LFLT.js +2 -0
- package/dist/cdn/{MSGQMPT6.js → QVMVZTAX.js} +1 -1
- package/dist/cdn/QXFX3OAF.js +2 -0
- package/dist/cdn/{YQST67WD.js → R2DCCWBB.js} +1 -1
- package/dist/cdn/R3Z5LCK3.js +2 -0
- package/dist/cdn/RFQSI4MJ.js +2 -0
- package/dist/cdn/RNFEU4JP.js +2 -0
- package/dist/cdn/{DKD23HP3.js → RRVD3RYN.js} +1 -1
- package/dist/cdn/{N234JPQQ.js → S6WMWFN7.js} +1 -1
- package/dist/cdn/{6KLHDA5V.js → SAK5TSCY.js} +1 -1
- package/dist/cdn/SMHE5GTR.js +2 -0
- package/dist/cdn/{2HPKL5UL.js → STISOSDG.js} +1 -1
- package/dist/cdn/TRMTKJYB.js +2 -0
- package/dist/cdn/TTFYMTZC.js +2 -0
- package/dist/cdn/{XRVUSKBQ.js → TWHGJHW2.js} +1 -1
- package/dist/cdn/TXRNHBI5.js +2 -0
- package/dist/cdn/{WTL6TTVY.js → TZAUE2UM.js} +1 -1
- package/dist/cdn/UESKV37D.js +2 -0
- package/dist/cdn/UQC63ORI.js +2 -0
- package/dist/cdn/{SDDDIVHA.js → UYAS53RY.js} +1 -1
- package/dist/cdn/{ILHS3TD7.js → V4RO7LWG.js} +1 -1
- package/dist/cdn/VE3ULCBL.js +2 -0
- package/dist/cdn/{EPKWV7TT.js → VIB4WBRW.js} +1 -1
- package/dist/cdn/{7CVLFVE5.js → VL7C7DUX.js} +1 -1
- package/dist/cdn/{MTIRRGHA.js → WMWPUGOP.js} +1 -1
- package/dist/cdn/{4PZDI5YW.js → WN6LIOTB.js} +1 -1
- package/dist/cdn/{UQBN3Z6H.js → WQOYAKXN.js} +1 -1
- package/dist/cdn/{UG6FM2IU.js → WUPDOPI3.js} +1 -1
- package/dist/cdn/{PNBC2B77.js → X4CROIR6.js} +1 -1
- package/dist/cdn/X62QRK2A.js +2 -0
- package/dist/cdn/{A26SXPLB.js → XOT64MSN.js} +1 -1
- package/dist/cdn/{SK7CWKMU.js → XS5BO3QC.js} +1 -1
- package/dist/cdn/XWGKICAS.js +2 -0
- package/dist/cdn/{FUL4JV2P.js → YRHSBDX4.js} +1 -1
- package/dist/cdn/{GY6M2LPM.js → YSWTVICN.js} +1 -1
- package/dist/cdn/Z445ZVWS.js +2 -0
- package/dist/cdn/{U63GYZ74.js → Z5FNOUD3.js} +2 -2
- package/dist/cdn/ZC6A5OHK.js +2 -0
- package/dist/cdn/{Z2R5VRT7.js → ZHZF3WW4.js} +1 -1
- 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/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/publish16.json +1 -0
- package/dist/cdn/assets/icon/publish24.json +1 -0
- package/dist/cdn/assets/icon/publish32.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 +1 -1
- package/dist/chunks/ExpandToggle.js +4 -5
- package/dist/chunks/Heading.js +3 -3
- package/dist/chunks/dom.js +23 -28
- package/dist/chunks/floating-ui.js +3 -6
- package/dist/chunks/label.js +1 -1
- package/dist/chunks/locale.js +29 -12
- package/dist/chunks/manager.js +505 -0
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources5.js +2 -1
- package/dist/chunks/resources6.js +2 -0
- package/dist/chunks/runtime.js +4 -4
- package/dist/chunks/useFocusTrap.js +1 -1
- package/dist/chunks/useForm.js +294 -0
- package/dist/chunks/useFormTrigger.js +25 -0
- package/dist/chunks/useSetFocus.js +1 -1
- package/dist/chunks/{sortableComponent.js → useSortable.js} +67 -44
- package/dist/chunks/utils2.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.d.ts +6 -6
- package/dist/components/calcite-accordion-item/customElement.js +4 -3
- package/dist/components/calcite-action/customElement.d.ts +12 -12
- package/dist/components/calcite-action/customElement.js +7 -13
- package/dist/components/calcite-action-bar/customElement.d.ts +20 -4
- package/dist/components/calcite-action-bar/customElement.js +43 -15
- package/dist/components/calcite-action-group/customElement.d.ts +6 -6
- 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 +5 -3
- package/dist/components/calcite-alert/customElement.d.ts +2 -2
- package/dist/components/calcite-alert/customElement.js +2 -2
- package/dist/components/calcite-autocomplete/customElement.d.ts +11 -12
- package/dist/components/calcite-autocomplete/customElement.js +23 -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-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.d.ts +5 -5
- package/dist/components/calcite-block/customElement.js +2 -2
- package/dist/components/calcite-block-group/customElement.d.ts +1 -1
- package/dist/components/calcite-block-group/customElement.js +4 -4
- 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 +5 -5
- package/dist/components/calcite-button/customElement.js +11 -23
- package/dist/components/calcite-card/customElement.d.ts +4 -4
- package/dist/components/calcite-card-group/customElement.d.ts +2 -2
- package/dist/components/calcite-carousel/customElement.d.ts +1 -1
- package/dist/components/calcite-carousel/customElement.js +27 -25
- package/dist/components/calcite-checkbox/customElement.d.ts +4 -5
- package/dist/components/calcite-checkbox/customElement.js +10 -23
- 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-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.d.ts +2 -2
- package/dist/components/calcite-color-picker/customElement.js +4 -2
- package/dist/components/calcite-color-picker-hex-input/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.d.ts +16 -6
- package/dist/components/calcite-combobox/customElement.js +151 -60
- package/dist/components/calcite-combobox-item/customElement.d.ts +1 -1
- package/dist/components/calcite-combobox-item/customElement.js +10 -4
- package/dist/components/calcite-date-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-date-picker-day/customElement.d.ts +1 -1
- package/dist/components/calcite-date-picker-month/customElement.js +1 -1
- package/dist/components/calcite-date-picker-month-header/customElement.js +1 -1
- package/dist/components/calcite-dialog/customElement.d.ts +7 -3
- package/dist/components/calcite-dialog/customElement.js +5 -3
- package/dist/components/calcite-dropdown/customElement.d.ts +15 -5
- package/dist/components/calcite-dropdown/customElement.js +168 -90
- 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-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 +9 -5
- package/dist/components/calcite-flow-item/customElement.js +7 -5
- package/dist/components/calcite-handle/customElement.d.ts +1 -1
- package/dist/components/calcite-icon/customElement.d.ts +1 -1
- package/dist/components/calcite-icon/customElement.js +4 -3
- package/dist/components/calcite-inline-editable/customElement.d.ts +1 -1
- 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 +20 -42
- package/dist/components/calcite-input-date-picker/customElement.d.ts +6 -7
- package/dist/components/calcite-input-date-picker/customElement.js +34 -28
- package/dist/components/calcite-input-message/customElement.d.ts +1 -1
- package/dist/components/calcite-input-message/customElement.js +1 -1
- package/dist/components/calcite-input-number/customElement.d.ts +13 -14
- package/dist/components/calcite-input-number/customElement.js +17 -42
- package/dist/components/calcite-input-text/customElement.d.ts +11 -12
- package/dist/components/calcite-input-text/customElement.js +16 -41
- package/dist/components/calcite-input-time-picker/customElement.d.ts +6 -7
- package/dist/components/calcite-input-time-picker/customElement.js +14 -25
- 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-link/customElement.d.ts +2 -2
- package/dist/components/calcite-link/customElement.js +4 -3
- package/dist/components/calcite-list/customElement.d.ts +1 -1
- package/dist/components/calcite-list/customElement.js +29 -7
- 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 +6 -4
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- 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 +4 -2
- package/dist/components/calcite-meter/customElement.d.ts +7 -1
- package/dist/components/calcite-meter/customElement.js +4 -8
- package/dist/components/calcite-navigation/customElement.d.ts +2 -2
- package/dist/components/calcite-navigation-logo/customElement.d.ts +3 -3
- package/dist/components/calcite-navigation-user/customElement.d.ts +1 -1
- 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 +11 -7
- package/dist/components/calcite-panel/customElement.js +21 -9
- package/dist/components/calcite-popover/customElement.d.ts +2 -2
- package/dist/components/calcite-popover/customElement.js +14 -175
- package/dist/components/calcite-progress/customElement.js +3 -2
- package/dist/components/calcite-radio-button/customElement.d.ts +1 -1
- package/dist/components/calcite-radio-button/customElement.js +173 -5
- package/dist/components/calcite-radio-button-group/customElement.d.ts +1 -1
- package/dist/components/calcite-rating/customElement.d.ts +3 -4
- package/dist/components/calcite-rating/customElement.js +12 -18
- package/dist/components/calcite-scrim/customElement.js +1 -1
- package/dist/components/calcite-segmented-control/customElement.d.ts +3 -4
- package/dist/components/calcite-segmented-control/customElement.js +13 -22
- package/dist/components/calcite-segmented-control-item/customElement.js +2 -2
- package/dist/components/calcite-select/customElement.d.ts +3 -4
- package/dist/components/calcite-select/customElement.js +8 -19
- package/dist/components/calcite-sheet/customElement.d.ts +2 -2
- package/dist/components/calcite-sheet/customElement.js +9 -6
- package/dist/components/calcite-shell/customElement.js +1 -1
- package/dist/components/calcite-shell-panel/customElement.js +7 -5
- 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 +4 -4
- 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 +30 -43
- package/dist/components/calcite-stepper-item/customElement.d.ts +1 -1
- package/dist/components/calcite-stepper-item/customElement.js +4 -10
- package/dist/components/calcite-swatch/customElement.d.ts +1 -1
- package/dist/components/calcite-swatch-group/customElement.js +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 +2 -2
- package/dist/components/calcite-tab-nav/customElement.js +4 -2
- package/dist/components/calcite-tab-title/customElement.js +6 -4
- 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-cell/customElement.js +3 -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 +1 -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 +4 -3
- package/dist/components/calcite-tooltip/customElement.d.ts +15 -2
- package/dist/components/calcite-tooltip/customElement.js +27 -315
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +5 -4
- 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/loader.js +23 -23
- package/dist/types/lumina.d.ts +5 -5
- package/dist/types/preact.d.ts +5 -5
- package/dist/types/react.d.ts +5 -5
- package/dist/types/stencil.d.ts +5 -5
- package/package.json +13 -12
- package/dist/cdn/2CCRLQOV.js +0 -2
- package/dist/cdn/2SXQFDOQ.js +0 -2
- package/dist/cdn/2UXQ7FQU.js +0 -2
- package/dist/cdn/32TBZZTY.js +0 -2
- package/dist/cdn/3KAMTN22.js +0 -2
- package/dist/cdn/3TLJ5JOP.js +0 -2
- package/dist/cdn/46F46R3T.js +0 -2
- package/dist/cdn/4DX77VVY.js +0 -2
- package/dist/cdn/4ET37OQN.js +0 -2
- package/dist/cdn/4I67VFAN.js +0 -2
- package/dist/cdn/5XFHSV4Z.js +0 -2
- package/dist/cdn/66NDMEG2.js +0 -2
- package/dist/cdn/76VE6QGI.js +0 -2
- package/dist/cdn/7AJLMSNL.js +0 -2
- package/dist/cdn/7J3JDTWK.js +0 -2
- package/dist/cdn/7PFEVHWG.js +0 -2
- package/dist/cdn/ALRQOPMQ.js +0 -2
- package/dist/cdn/AO7ZTAVY.js +0 -2
- package/dist/cdn/BEHKDUR6.js +0 -2
- package/dist/cdn/BKAZFAPN.js +0 -2
- package/dist/cdn/C7TED56N.js +0 -2
- package/dist/cdn/CSRCARFW.js +0 -2
- package/dist/cdn/DADGP3DW.js +0 -2
- package/dist/cdn/EC3GCET5.js +0 -2
- package/dist/cdn/EREDWMAC.js +0 -2
- package/dist/cdn/ETXIJA2R.js +0 -2
- package/dist/cdn/EVZEXLBF.js +0 -2
- package/dist/cdn/FH7GL6DM.js +0 -2
- package/dist/cdn/GETIWK4G.js +0 -2
- package/dist/cdn/GJ5VSZCN.js +0 -2
- package/dist/cdn/HSNJW6OM.js +0 -2
- package/dist/cdn/I6XABN6A.js +0 -2
- package/dist/cdn/IQ23RSWK.js +0 -2
- package/dist/cdn/JC2AVKOO.js +0 -2
- package/dist/cdn/JLJULYTE.js +0 -2
- package/dist/cdn/JRAIIHMU.js +0 -2
- package/dist/cdn/JZWQZ5BO.js +0 -2
- package/dist/cdn/KFPRUCQK.js +0 -2
- package/dist/cdn/LFGU3E4X.js +0 -2
- package/dist/cdn/LGDOYO5J.js +0 -2
- package/dist/cdn/MHSIIKU2.js +0 -2
- package/dist/cdn/MOZ5AAJM.js +0 -2
- package/dist/cdn/MTQHRNJW.js +0 -2
- package/dist/cdn/N6YVNJ3O.js +0 -2
- package/dist/cdn/NB3LG2PS.js +0 -2
- package/dist/cdn/NNVU3JV4.js +0 -2
- package/dist/cdn/O5XHZCXZ.js +0 -2
- package/dist/cdn/OXJIN4W5.js +0 -2
- package/dist/cdn/OXZJMSLQ.js +0 -2
- package/dist/cdn/P2745LUP.js +0 -2
- package/dist/cdn/QHUMJCWK.js +0 -2
- package/dist/cdn/QJ2FRJRU.js +0 -2
- package/dist/cdn/QUJE6MIQ.js +0 -2
- package/dist/cdn/REAIBS67.js +0 -2
- package/dist/cdn/RKSFMXT4.js +0 -2
- package/dist/cdn/RMKYCARB.js +0 -2
- package/dist/cdn/S5KQDAMG.js +0 -2
- package/dist/cdn/SUIJIBLR.js +0 -2
- package/dist/cdn/TDDLSMO5.js +0 -2
- package/dist/cdn/TQQTV5HV.js +0 -2
- package/dist/cdn/UMLQ6PVE.js +0 -2
- package/dist/cdn/UODBUSON.js +0 -2
- package/dist/cdn/WJXZ7BPV.js +0 -2
- package/dist/cdn/X2HWVZ5U.js +0 -2
- package/dist/cdn/XPGAQQQC.js +0 -2
- package/dist/cdn/XSMU7S2O.js +0 -2
- package/dist/cdn/YT6UJRLT.js +0 -2
- package/dist/cdn/YUZXLNNW.js +0 -2
- package/dist/cdn/YZ4W6DFR.js +0 -2
- package/dist/cdn/Z2BYWKFB.js +0 -2
- package/dist/cdn/ZCBRPKAV.js +0 -2
- package/dist/cdn/ZQLGBHLZ.js +0 -2
- package/dist/chunks/form.js +0 -268
- package/dist/chunks/input.js +0 -30
- package/dist/utils/form.d.ts +0 -3
- package/dist/utils/sortableComponent.d.ts +0 -7
|
@@ -12,6 +12,8 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
12
12
|
* @cssproperty [--calcite-panel-description-text-color] - Specifies the text color of the component's `description`.
|
|
13
13
|
* @cssproperty [--calcite-panel-border-color] - Specifies the component's border color.
|
|
14
14
|
* @cssproperty [--calcite-panel-background-color] - Specifies the component's background color.
|
|
15
|
+
* @cssproperty [--calcite-panel-content-top-space] - Specifies the padding of the component's `content-top` slot.
|
|
16
|
+
* @cssproperty [--calcite-panel-content-bottom-space] - Specifies the padding of the component's `content-bottom` slot.
|
|
15
17
|
* @cssproperty [--calcite-panel-header-background-color] - Specifies the background color of the component's header.
|
|
16
18
|
* @cssproperty [--calcite-panel-header-action-background-color] - Specifies the background color of the component's `closable`, `collapsible`, and elements slotted in `header-menu-actions`.
|
|
17
19
|
* @cssproperty [--calcite-panel-header-action-background-color-hover] - Specifies the background color of the component's `closable`, `collapsible`, and elements slotted in `header-menu-actions` when hovered.
|
|
@@ -19,13 +21,13 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
19
21
|
* @cssproperty [--calcite-panel-header-action-text-color] - Specifies the text color of the component's `closable`, `collapsible`, and elements slotted in `header-menu-actions`.
|
|
20
22
|
* @cssproperty [--calcite-panel-header-action-text-color-press] - Specifies the text color of the component's `closable`, `collapsible`, and elements slotted in `header-menu-actions` when pressed or hovered.
|
|
21
23
|
* @cssproperty [--calcite-panel-footer-background-color] - Specifies the background color of the component's footer.
|
|
22
|
-
* @cssproperty [--calcite-panel-space] - Specifies the padding of the component's `
|
|
23
|
-
* @cssproperty [--calcite-panel-header-content-space] - Specifies the padding of the `
|
|
24
|
+
* @cssproperty [--calcite-panel-space] - Specifies the padding of the component's `unnamed (default)` slot.
|
|
25
|
+
* @cssproperty [--calcite-panel-header-content-space] - Specifies the padding of the component's `header-content` slot.
|
|
24
26
|
* @cssproperty [--calcite-panel-footer-space] - Specifies the padding of the component's footer.
|
|
25
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.
|
|
26
|
-
* @cssproperty [--calcite-panel-content-space] - [Deprecated] Use `--calcite-panel-space` instead. Specifies the padding of the component's content.
|
|
27
|
-
* @cssproperty [--calcite-panel-footer-padding] - [Deprecated] Use `--calcite-panel-footer-space` instead. Specifies the padding of the component's footer.
|
|
28
|
-
* @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.
|
|
29
31
|
* @slot - A slot for adding custom content.
|
|
30
32
|
* @slot [action-bar] - A slot for adding a `calcite-action-bar` to the component.
|
|
31
33
|
* @slot [alerts] - A slot for adding `calcite-alert`s to the component.
|
|
@@ -35,6 +37,8 @@ import type { IconName } from "../calcite-icon/interfaces.js";
|
|
|
35
37
|
* @slot [header-actions-end] - A slot for adding actions or content to the end side of the header.
|
|
36
38
|
* @slot [header-content] - A slot for adding custom content to the header.
|
|
37
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.
|
|
38
42
|
* @slot [fab] - A slot for adding a `calcite-fab` (floating action button) to perform an action.
|
|
39
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.
|
|
40
44
|
* @slot [footer-end] - A slot for adding custom content to a trailing footer. Should not be used with the `"footer"` slot.
|
|
@@ -142,7 +146,7 @@ export abstract class Panel extends LitElement {
|
|
|
142
146
|
* Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components.
|
|
143
147
|
*
|
|
144
148
|
* @default false
|
|
145
|
-
* @
|
|
149
|
+
* @see [MDN - Top Layer](https://developer.mozilla.org/en-US/docs/Glossary/Top_layer)
|
|
146
150
|
*/
|
|
147
151
|
accessor topLayerDisabled: boolean;
|
|
148
152
|
/**
|
|
@@ -162,7 +166,7 @@ export abstract class Panel extends LitElement {
|
|
|
162
166
|
* Sets focus on the component's first focusable element.
|
|
163
167
|
*
|
|
164
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.
|
|
165
|
-
* @
|
|
169
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
166
170
|
*/
|
|
167
171
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
168
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,
|
|
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";
|
|
@@ -15,7 +15,7 @@ import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
|
15
15
|
import { s as styles$1 } from "../../chunks/header.js";
|
|
16
16
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
17
17
|
import { C as CSS, S as SLOTS, I as ICONS, a as IDS } from "../../chunks/resources6.js";
|
|
18
|
-
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-sharp))}slot[name=alerts]::slotted(calcite-alert){block-size:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-internal-panel-default-space: var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-sm-plus)}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1)}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2)}:host([scale=s]) .header-content .icon{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]){--calcite-internal-panel-default-space: var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-md-plus)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0)}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1)}:host([scale=m]) .header-content .icon{margin-inline-end:var(--calcite-spacing-md)}:host(:is([scale=s],[scale=m])){--calcite-internal-panel-action-spacing: var(--calcite-spacing-xxs)}:host([scale=l]){--calcite-internal-panel-action-spacing: var(--calcite-spacing-xs);--calcite-internal-panel-default-space: var(--calcite-spacing-lg);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-xl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1)}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0)}:host([scale=l]) .header-content .icon{margin-inline-end:var(--calcite-spacing-lg)}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;
|
|
18
|
+
const styles = css`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-sharp))}slot[name=alerts]::slotted(calcite-alert){block-size:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([scale=s]){--calcite-internal-panel-default-space: var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-sm-plus)}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1)}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2)}:host([scale=s]) .header-content .icon{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]){--calcite-internal-panel-default-space: var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-md-plus)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0)}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1)}:host([scale=m]) .header-content .icon{margin-inline-end:var(--calcite-spacing-md)}:host(:is([scale=s],[scale=m])){--calcite-internal-panel-action-spacing: var(--calcite-spacing-xxs)}:host([scale=l]){--calcite-internal-panel-action-spacing: var(--calcite-spacing-xs);--calcite-internal-panel-default-space: var(--calcite-spacing-lg);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-xl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1)}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0)}:host([scale=l]) .header-content .icon{margin-inline-end:var(--calcite-spacing-lg)}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));background-color:var(--calcite-panel-background-color, var(--calcite-color-foreground-1))}.content-top{padding:var(--calcite-panel-content-top-space, var(--calcite-internal-panel-default-space))}.content-bottom{padding:var(--calcite-panel-content-bottom-space, var(--calcite-internal-panel-default-space))}.container{position:relative;margin:0;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;overflow:hidden;background-color:var(--calcite-color-background);padding:0;font-size:var(--calcite-font-size-relative-base);color:var(--calcite-color-text-2);transition:max-block-size var(--calcite-animation-timing),inline-size var(--calcite-animation-timing);box-sizing:border-box;font-size:var(--calcite-font-size--1)}.container *{box-sizing:border-box}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;background-color:var(--calcite-panel-header-background-color, var(--calcite-color-foreground-1));border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-panel-header-border-block-end, var(--calcite-color-border-3)))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3))}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:.75rem;padding-block:.875rem;margin-inline-end:auto;justify-content:center}.header-content .heading-text-content{flex:1 1 auto;overflow:hidden}.header-content .heading,.header-content .description{display:block;flex:none;overflow-wrap:break-word;padding:0;line-height:var(--calcite-font-line-height-relative-snug)}.header-content .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-panel-description-text-color, var(--calcite-color-text-2))}#close,#collapse,calcite-action-menu{--calcite-action-background-color: var(--calcite-panel-header-action-background-color);--calcite-action-background-color-hover: var(--calcite-panel-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-panel-header-action-background-color-press);--calcite-action-text-color: var(--calcite-panel-header-action-text-color);--calcite-action-text-color-press: var(--calcite-panel-header-action-text-color-press)}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;margin:auto;gap:var(--calcite-internal-panel-action-spacing)}.header-actions--start{margin-inline-start:var(--calcite-internal-panel-action-spacing)}.header-actions--end{margin-inline-end:var(--calcite-internal-panel-action-spacing)}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;color:var(--calcite-color-text-2);outline-color:transparent;padding:var(--calcite-panel-space, var(--calcite-panel-content-space, 0));background:var(--calcite-panel-background-color, var(--calcite-color-background))}.content-wrapper:focus-visible{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))))}.header-content{flex:1 1 auto;justify-content:center;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-space)}.header-content.header--slotted-content{padding:var(--calcite-panel-header-content-space, var(--calcite-internal-panel-header-vertical-padding) var(--calcite-internal-panel-default-space))}.header-content.header--non-slotted-content{align-items:center;flex-direction:row}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-relative-snug);border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-footer-space, var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-space)));background-color:var(--calcite-panel-footer-background-color, var(--calcite-color-foreground-1))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-space)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-space)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:.5rem;inset-inline:0;inline-size:fit-content}calcite-icon{--calcite-icon-color: var(--calcite-panel-icon-color, var(--calcite-ui-icon-color, var(--calcite-color-text-1)))}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
19
19
|
class Panel extends LitElement {
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
@@ -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,12 +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
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { t as toAriaBoolean } from "../../chunks/aria.js";
|
|
10
|
-
import { g as guid } from "../../chunks/guid.js";
|
|
7
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
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";
|
|
11
9
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
12
10
|
import { H as Heading } from "../../chunks/Heading.js";
|
|
13
11
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
@@ -16,100 +14,7 @@ import { u as useT9n } from "../../chunks/useT9n.js";
|
|
|
16
14
|
import { u as useFocusTrap } from "../../chunks/useFocusTrap.js";
|
|
17
15
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
18
16
|
import { u as useTopLayer } from "../../chunks/useTopLayer.js";
|
|
19
|
-
import {
|
|
20
|
-
const clickTolerance = 5;
|
|
21
|
-
function isDrag({
|
|
22
|
-
startX,
|
|
23
|
-
startY,
|
|
24
|
-
endX,
|
|
25
|
-
endY
|
|
26
|
-
}) {
|
|
27
|
-
const distance = Math.hypot(endX - startX, endY - startY);
|
|
28
|
-
return distance > clickTolerance;
|
|
29
|
-
}
|
|
30
|
-
class PopoverManager {
|
|
31
|
-
constructor() {
|
|
32
|
-
this.registeredElements = /* @__PURE__ */ new Map();
|
|
33
|
-
this.registeredElementCount = 0;
|
|
34
|
-
this.queryPopover = (composedPath) => {
|
|
35
|
-
const { registeredElements } = this;
|
|
36
|
-
const registeredElement = composedPath.find((pathEl) => registeredElements.has(pathEl));
|
|
37
|
-
return registeredElements.get(registeredElement);
|
|
38
|
-
};
|
|
39
|
-
this.togglePopovers = (event) => {
|
|
40
|
-
const composedPath = event.composedPath();
|
|
41
|
-
const togglePopover = this.queryPopover(composedPath);
|
|
42
|
-
if (togglePopover && !togglePopover.triggerDisabled) {
|
|
43
|
-
togglePopover.open = !togglePopover.open;
|
|
44
|
-
}
|
|
45
|
-
Array.from(this.registeredElements.values()).filter(
|
|
46
|
-
(popover) => popover !== togglePopover && popover.autoClose && popover.open && !composedPath.includes(popover)
|
|
47
|
-
).forEach((popover) => popover.open = false);
|
|
48
|
-
};
|
|
49
|
-
this.keyDownHandler = (event) => {
|
|
50
|
-
if (event.defaultPrevented) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
|
-
if (event.key === "Escape") {
|
|
54
|
-
this.closeAllPopovers();
|
|
55
|
-
} else if (isActivationKey(event.key)) {
|
|
56
|
-
this.togglePopovers(event);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
this.pointerDownHandler = (event) => {
|
|
60
|
-
if (event.defaultPrevented || !isPrimaryPointerButton(event)) {
|
|
61
|
-
return;
|
|
62
|
-
}
|
|
63
|
-
const { clientX, clientY } = event;
|
|
64
|
-
this.pointerDownPosition = { x: clientX, y: clientY };
|
|
65
|
-
};
|
|
66
|
-
this.clickHandler = (event) => {
|
|
67
|
-
if (isKeyboardTriggeredClick(event) || event.defaultPrevented || this.pointerDownPosition && isDrag({
|
|
68
|
-
endY: event.clientY,
|
|
69
|
-
endX: event.clientX,
|
|
70
|
-
startY: this.pointerDownPosition.y,
|
|
71
|
-
startX: this.pointerDownPosition.x
|
|
72
|
-
})) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
this.pointerDownPosition = void 0;
|
|
76
|
-
this.togglePopovers(event);
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
// --------------------------------------------------------------------------
|
|
80
|
-
//
|
|
81
|
-
// Public Methods
|
|
82
|
-
//
|
|
83
|
-
// --------------------------------------------------------------------------
|
|
84
|
-
registerElement(referenceEl, popover) {
|
|
85
|
-
this.registeredElementCount++;
|
|
86
|
-
this.registeredElements.set(referenceEl, popover);
|
|
87
|
-
if (this.registeredElementCount === 1) {
|
|
88
|
-
this.addListeners();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
unregisterElement(referenceEl) {
|
|
92
|
-
if (this.registeredElements.delete(referenceEl)) {
|
|
93
|
-
this.registeredElementCount--;
|
|
94
|
-
}
|
|
95
|
-
if (this.registeredElementCount === 0) {
|
|
96
|
-
this.removeListeners();
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
closeAllPopovers() {
|
|
100
|
-
Array.from(this.registeredElements.values()).forEach((popover) => popover.open = false);
|
|
101
|
-
}
|
|
102
|
-
addListeners() {
|
|
103
|
-
window.addEventListener("pointerdown", this.pointerDownHandler);
|
|
104
|
-
window.addEventListener("click", this.clickHandler);
|
|
105
|
-
window.addEventListener("keydown", this.keyDownHandler);
|
|
106
|
-
}
|
|
107
|
-
removeListeners() {
|
|
108
|
-
window.removeEventListener("pointerdown", this.pointerDownHandler);
|
|
109
|
-
window.removeEventListener("click", this.clickHandler);
|
|
110
|
-
window.removeEventListener("keydown", this.keyDownHandler);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
17
|
+
import { u as useReferenceElement, r as referenceElementManager } from "../../chunks/manager.js";
|
|
113
18
|
const CSS = {
|
|
114
19
|
positionContainer: "position-container",
|
|
115
20
|
container: "container",
|
|
@@ -122,13 +27,14 @@ const CSS = {
|
|
|
122
27
|
heading: "heading"
|
|
123
28
|
};
|
|
124
29
|
const defaultPopoverPlacement = "auto";
|
|
125
|
-
const ARIA_CONTROLS = "aria-controls";
|
|
126
|
-
const ARIA_EXPANDED = "aria-expanded";
|
|
127
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;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}`;
|
|
128
|
-
const manager =
|
|
31
|
+
const manager = referenceElementManager({ click: true });
|
|
129
32
|
class Popover extends LitElement {
|
|
130
33
|
constructor() {
|
|
131
34
|
super(...arguments);
|
|
35
|
+
this.referenceElementType = "click";
|
|
36
|
+
this.referenceElementController = useReferenceElement({ manager })(this);
|
|
37
|
+
this.direction = useDirection();
|
|
132
38
|
this.focusTrap = useFocusTrap({
|
|
133
39
|
triggerProp: "open",
|
|
134
40
|
focusTrapOptions: {
|
|
@@ -142,8 +48,6 @@ class Popover extends LitElement {
|
|
|
142
48
|
}
|
|
143
49
|
}
|
|
144
50
|
})(this);
|
|
145
|
-
this.guid = `calcite-popover-${guid()}`;
|
|
146
|
-
this.hasLoaded = false;
|
|
147
51
|
this.mutationObserver = createObserver("mutation", () => this.focusTrap.updateContainerElements());
|
|
148
52
|
this.transitionProp = "opacity";
|
|
149
53
|
this.transitionRef = createRef();
|
|
@@ -181,6 +85,7 @@ class Popover extends LitElement {
|
|
|
181
85
|
async reposition(delayed = false) {
|
|
182
86
|
const { referenceEl, placement, overlayPositioning, flipDisabled, filteredFlipPlacements, offsetDistance, offsetSkidding, arrowEl, floatingEl } = this;
|
|
183
87
|
return reposition(this, {
|
|
88
|
+
direction: this.direction,
|
|
184
89
|
floatingEl,
|
|
185
90
|
referenceEl,
|
|
186
91
|
overlayPositioning,
|
|
@@ -204,7 +109,6 @@ class Popover extends LitElement {
|
|
|
204
109
|
super.connectedCallback();
|
|
205
110
|
this.mutationObserver?.observe(this.el, { childList: true, subtree: true });
|
|
206
111
|
this.setFilteredPlacements();
|
|
207
|
-
requestAnimationFrame(() => this.setUpReferenceElement(this.hasLoaded));
|
|
208
112
|
}
|
|
209
113
|
willUpdate(changes) {
|
|
210
114
|
if (changes.has("flipPlacements")) {
|
|
@@ -216,23 +120,18 @@ class Popover extends LitElement {
|
|
|
216
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)) {
|
|
217
121
|
this.reposition(true);
|
|
218
122
|
}
|
|
219
|
-
if (changes.has("referenceElement")) {
|
|
220
|
-
this.
|
|
221
|
-
if (!this.referenceElement && this.open) {
|
|
222
|
-
this.topLayer.hide();
|
|
223
|
-
}
|
|
123
|
+
if (changes.has("referenceElement") && !this.referenceElement && this.open) {
|
|
124
|
+
this.topLayer.hide();
|
|
224
125
|
}
|
|
225
126
|
}
|
|
226
|
-
|
|
227
|
-
if (
|
|
228
|
-
this
|
|
127
|
+
updated(changes) {
|
|
128
|
+
if (changes.has("referenceEl")) {
|
|
129
|
+
connectFloatingUI(this);
|
|
229
130
|
}
|
|
230
|
-
this.hasLoaded = true;
|
|
231
131
|
}
|
|
232
132
|
disconnectedCallback() {
|
|
233
133
|
super.disconnectedCallback();
|
|
234
134
|
this.mutationObserver?.disconnect();
|
|
235
|
-
this.removeReferences();
|
|
236
135
|
disconnectFloatingUI(this);
|
|
237
136
|
}
|
|
238
137
|
flipPlacementsHandler() {
|
|
@@ -242,73 +141,14 @@ class Popover extends LitElement {
|
|
|
242
141
|
openHandler() {
|
|
243
142
|
toggleOpenClose(this);
|
|
244
143
|
this.reposition(true);
|
|
245
|
-
this.setExpandedAttr();
|
|
246
|
-
}
|
|
247
|
-
referenceElementHandler() {
|
|
248
|
-
this.setUpReferenceElement();
|
|
249
|
-
this.reposition(true);
|
|
250
144
|
}
|
|
251
145
|
setFloatingEl(el) {
|
|
252
146
|
this.floatingEl = el;
|
|
253
|
-
if (el) {
|
|
254
|
-
requestAnimationFrame(() => this.setUpReferenceElement());
|
|
255
|
-
}
|
|
256
147
|
}
|
|
257
148
|
setFilteredPlacements() {
|
|
258
149
|
const { el, flipPlacements } = this;
|
|
259
150
|
this.filteredFlipPlacements = flipPlacements ? filterValidFlipPlacements(flipPlacements, el) : null;
|
|
260
151
|
}
|
|
261
|
-
setUpReferenceElement(warn = true) {
|
|
262
|
-
this.removeReferences();
|
|
263
|
-
this.referenceEl = this.getReferenceElement();
|
|
264
|
-
connectFloatingUI(this);
|
|
265
|
-
const { el, referenceElement, referenceEl } = this;
|
|
266
|
-
if (warn && referenceElement && !referenceEl) {
|
|
267
|
-
console.warn(`${el.tagName}: reference-element id "${referenceElement}" was not found.`, {
|
|
268
|
-
el
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
this.addReferences();
|
|
272
|
-
}
|
|
273
|
-
getId() {
|
|
274
|
-
return this.el.id || this.guid;
|
|
275
|
-
}
|
|
276
|
-
setExpandedAttr() {
|
|
277
|
-
const { referenceEl, open } = this;
|
|
278
|
-
if (!referenceEl) {
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
if ("setAttribute" in referenceEl) {
|
|
282
|
-
referenceEl.setAttribute(ARIA_EXPANDED, toAriaBoolean(open));
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
addReferences() {
|
|
286
|
-
const { referenceEl } = this;
|
|
287
|
-
if (!referenceEl) {
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
const id = this.getId();
|
|
291
|
-
if ("setAttribute" in referenceEl) {
|
|
292
|
-
referenceEl.setAttribute(ARIA_CONTROLS, id);
|
|
293
|
-
}
|
|
294
|
-
manager.registerElement(referenceEl, this.el);
|
|
295
|
-
this.setExpandedAttr();
|
|
296
|
-
}
|
|
297
|
-
removeReferences() {
|
|
298
|
-
const { referenceEl } = this;
|
|
299
|
-
if (!referenceEl) {
|
|
300
|
-
return;
|
|
301
|
-
}
|
|
302
|
-
if ("removeAttribute" in referenceEl) {
|
|
303
|
-
referenceEl.removeAttribute(ARIA_CONTROLS);
|
|
304
|
-
referenceEl.removeAttribute(ARIA_EXPANDED);
|
|
305
|
-
}
|
|
306
|
-
manager.unregisterElement(referenceEl);
|
|
307
|
-
}
|
|
308
|
-
getReferenceElement() {
|
|
309
|
-
const { referenceElement, el } = this;
|
|
310
|
-
return (typeof referenceElement === "string" ? queryElementRoots(el, { id: referenceElement }) : referenceElement) || null;
|
|
311
|
-
}
|
|
312
152
|
hide() {
|
|
313
153
|
this.open = false;
|
|
314
154
|
}
|
|
@@ -350,7 +190,6 @@ class Popover extends LitElement {
|
|
|
350
190
|
this.el.inert = hidden;
|
|
351
191
|
this.el.ariaLabel = label;
|
|
352
192
|
this.el.ariaLive = "polite";
|
|
353
|
-
setAttribute(this.el, "id", this.getId());
|
|
354
193
|
this.el.role = "dialog";
|
|
355
194
|
return html`<div class=${safeClassMap(CSS.positionContainer)} popover=manual ${ref(this.setFloatingEl)}><div class=${safeClassMap({
|
|
356
195
|
[CSS.container]: true,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { C as CSS_UTILITY, c as customElement } from "../../chunks/runtime.js";
|
|
3
3
|
import { css, html } from "lit";
|
|
4
4
|
import { LitElement, safeClassMap, safeStyleMap } from "@arcgis/lumina";
|
|
5
|
-
import {
|
|
5
|
+
import { useDirection } from "@arcgis/lumina/controllers";
|
|
6
6
|
const styles = css`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media(forced-colors:active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size-relative-sm);line-height:var(--calcite-font-line-height-sm);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
7
7
|
const CSS = {
|
|
8
8
|
track: "track",
|
|
@@ -12,6 +12,7 @@ const CSS = {
|
|
|
12
12
|
class Progress extends LitElement {
|
|
13
13
|
constructor() {
|
|
14
14
|
super(...arguments);
|
|
15
|
+
this.direction = useDirection();
|
|
15
16
|
this.reversed = false;
|
|
16
17
|
this.type = "determinate";
|
|
17
18
|
this.value = 0;
|
|
@@ -25,7 +26,7 @@ class Progress extends LitElement {
|
|
|
25
26
|
render() {
|
|
26
27
|
const isDeterminate = this.type === "determinate";
|
|
27
28
|
const barStyles = isDeterminate ? { width: `${this.value}%` } : {};
|
|
28
|
-
const dir =
|
|
29
|
+
const dir = this.direction;
|
|
29
30
|
return html`<div .ariaLabel=${this.label || this.text} .ariaValueMax=${isDeterminate ? "100" : void 0} .ariaValueMin=${isDeterminate ? "0" : void 0} .ariaValueNow=${isDeterminate ? this.value : void 0} role=progressbar><div class=${safeClassMap(CSS.track)}><div class=${safeClassMap({
|
|
30
31
|
[CSS.bar]: true,
|
|
31
32
|
indeterminate: this.type === "indeterminate",
|
|
@@ -54,7 +54,7 @@ export abstract class RadioButton extends LitElement {
|
|
|
54
54
|
* Sets focus on the component.
|
|
55
55
|
*
|
|
56
56
|
* @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
|
-
* @
|
|
57
|
+
* @see [MDN - focus(options)](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
|
|
58
58
|
*/
|
|
59
59
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
60
60
|
/**
|