@esri/calcite-components 5.0.0-next.25 → 5.0.0-next.27
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/{ICIKQ6SF.js → 2JL5ZGH7.js} +2 -2
- package/dist/cdn/{ESBYK2GP.js → 2S2L3EQ7.js} +2 -2
- package/dist/cdn/{2M5P63XO.js → 2YK6CVS6.js} +2 -2
- package/dist/cdn/{IEDS7Y3K.js → 336XVH75.js} +2 -2
- package/dist/cdn/{IQGWCU2P.js → 35SARPY5.js} +2 -2
- package/dist/cdn/{66B3V26H.js → 3BS4LNKS.js} +1 -1
- package/dist/cdn/{ZQAJBVYH.js → 3IEPPQ7X.js} +2 -2
- package/dist/cdn/{REI5KEGW.js → 3VEW4WQK.js} +2 -2
- package/dist/cdn/{HXGHPU5R.js → 3YPTDAT3.js} +1 -1
- package/dist/cdn/{2JYWRARL.js → 4DBNEHK3.js} +2 -2
- package/dist/cdn/{YYNYMUJQ.js → 4V7BZLWR.js} +2 -2
- package/dist/cdn/{DFOFRT55.js → 5253XWSA.js} +2 -2
- package/dist/cdn/{EH2B4KU5.js → 563KGS4Y.js} +1 -1
- package/dist/cdn/{YSBGVOAR.js → 5DWNMUMC.js} +2 -2
- package/dist/cdn/{LSTGTNQF.js → 5QEHA37M.js} +2 -2
- package/dist/cdn/{HSBSLTXF.js → 5VNWY5LG.js} +2 -2
- package/dist/cdn/{ROBPTSNZ.js → 5XGADHYE.js} +2 -2
- package/dist/cdn/{RTUZDZOX.js → 65TH2FK7.js} +2 -2
- package/dist/cdn/{TOWSM45O.js → 6EM466OS.js} +2 -2
- package/dist/cdn/{FMCXXW73.js → 6ISI2CAF.js} +2 -2
- package/dist/cdn/{HXKZJSFJ.js → 6KQ4JFWQ.js} +2 -2
- package/dist/cdn/{UTUNLEWD.js → 6MHFUQ4I.js} +2 -2
- package/dist/cdn/{HDOH7WWW.js → 6OM4CJE6.js} +2 -2
- package/dist/cdn/{AKFX7PWJ.js → 6Q5X66EV.js} +2 -2
- package/dist/cdn/6WGTRGQ3.js +4 -0
- package/dist/cdn/{ARC54UM2.js → 7534BBHW.js} +2 -2
- package/dist/cdn/{VI77ZT4D.js → 75JUYSEU.js} +2 -2
- package/dist/cdn/{D4P6Y27Q.js → 7FZUMGVI.js} +1 -1
- package/dist/cdn/{VJXRREK5.js → 7GTMUJBK.js} +2 -2
- package/dist/cdn/{FYSGB4TS.js → 7QBX6HG6.js} +1 -1
- package/dist/cdn/{2FSIVQEJ.js → 7UOCOKWE.js} +2 -2
- package/dist/cdn/{ZLNNZMBR.js → 7UWAXM2S.js} +2 -2
- package/dist/cdn/{2KAS7G6B.js → A2XXH362.js} +2 -2
- package/dist/cdn/{MYZL7DSE.js → A7LQL3JY.js} +2 -2
- package/dist/cdn/{KIRP6CH4.js → AC35Y5HD.js} +2 -2
- package/dist/cdn/{DQPWXS2M.js → ADHO4BCO.js} +2 -2
- package/dist/cdn/{BB2OEXRL.js → ADI5Y4OW.js} +2 -2
- package/dist/cdn/{FBY4QDGL.js → AHWS3HRJ.js} +2 -2
- package/dist/cdn/{OLRESSNA.js → AIX6NZYG.js} +2 -2
- package/dist/cdn/{FPHU2POG.js → AJSBRVAB.js} +2 -2
- package/dist/cdn/{2WBUKAAF.js → AKR4JST4.js} +2 -2
- package/dist/cdn/{PWIYQM4I.js → AN35IWDM.js} +2 -2
- package/dist/cdn/{TUED46UL.js → AVLDSF5N.js} +2 -2
- package/dist/cdn/{7YYNYM6L.js → B5ADLQCU.js} +2 -2
- package/dist/cdn/{E6DY6FGT.js → BG7PIWAE.js} +2 -2
- package/dist/cdn/BSDYTDKB.js +4 -0
- package/dist/cdn/{BIIZHFVJ.js → BSYFCWRY.js} +2 -2
- package/dist/cdn/{TZWTARP2.js → BWPFLE55.js} +2 -2
- package/dist/cdn/{3CYBUVAL.js → BYMVJ3VA.js} +2 -2
- package/dist/cdn/{KSKRPWQ7.js → C7AEIVEN.js} +2 -2
- package/dist/cdn/CRQFGR7B.js +4 -0
- package/dist/cdn/{XIERCEQK.js → D235BG5B.js} +2 -2
- package/dist/cdn/{7MKO4WEK.js → D77DSPLC.js} +2 -2
- package/dist/cdn/{X63NXLXL.js → DC2X7EYH.js} +2 -2
- package/dist/cdn/{M43NQERD.js → DD7LLHWA.js} +2 -2
- package/dist/cdn/{MSRQHP4Y.js → DI373V3L.js} +2 -2
- package/dist/cdn/DRIYSMRA.js +4 -0
- package/dist/cdn/{X7QV7YUJ.js → E6WZYQR6.js} +2 -2
- package/dist/cdn/{NRZTXSVU.js → EI2RE76N.js} +2 -2
- package/dist/cdn/{VSCLJKVF.js → ETNWW5JZ.js} +1 -1
- package/dist/cdn/{5BIXA3LB.js → F6IUDO2N.js} +2 -2
- package/dist/cdn/{PA4D3SEY.js → FCK2YVGM.js} +2 -2
- package/dist/cdn/{MJEOOUPN.js → FK2YURR7.js} +2 -2
- package/dist/cdn/{PPRMC725.js → FWN7QRQ6.js} +2 -2
- package/dist/cdn/{P7EZ737Q.js → G4DLNQ7K.js} +2 -2
- package/dist/cdn/{EWKWW6GW.js → G6OIPZFQ.js} +2 -2
- package/dist/cdn/{RTD73R3E.js → GJ6BOJ55.js} +2 -2
- package/dist/cdn/{WCOYDBKU.js → GLKK4ERF.js} +2 -2
- package/dist/cdn/{PXYVR5V5.js → GNDZLX6A.js} +2 -2
- package/dist/cdn/{3FWTYAQJ.js → GQ276M6N.js} +2 -2
- package/dist/cdn/{C4DNON2P.js → GRLGAWZJ.js} +2 -2
- package/dist/cdn/{7GLGFP4U.js → GZZKKWOS.js} +1 -1
- package/dist/cdn/{KM5W3IXL.js → H4BVJCL2.js} +2 -2
- package/dist/cdn/{IPPMV5EP.js → HBRMGV7K.js} +2 -2
- package/dist/cdn/{3WLIDSAY.js → HCVN4Q5N.js} +2 -2
- package/dist/cdn/{5ZXE2GF6.js → HECPNLTC.js} +2 -2
- package/dist/cdn/HHHR4LHE.js +4 -0
- package/dist/cdn/{QYA7MFEQ.js → HLYZU57U.js} +2 -2
- package/dist/cdn/{C4TQTAAN.js → HS72OF43.js} +2 -2
- package/dist/cdn/IKQHPTMM.js +4 -0
- package/dist/cdn/{HWRPXNTG.js → IMYRTSDO.js} +2 -2
- package/dist/cdn/{3SZJQH6Q.js → INTN5KDJ.js} +2 -2
- package/dist/cdn/{4KG2WJMW.js → IVYPGTXR.js} +2 -2
- package/dist/cdn/{PW3ERLTK.js → IXD3TR3C.js} +2 -2
- package/dist/cdn/{2QUON4GW.js → J4GW4FQA.js} +1 -1
- package/dist/cdn/{NG6CGXUT.js → JCGYNLNJ.js} +2 -2
- package/dist/cdn/{RSVR57UK.js → JL5GJZBR.js} +2 -2
- package/dist/cdn/{6PYOPB6H.js → JPM3XDBS.js} +1 -1
- package/dist/cdn/{3NNDGECD.js → K2GQIVQ6.js} +2 -2
- package/dist/cdn/{YVM4ZGPI.js → K7Q2ANSC.js} +2 -2
- package/dist/cdn/{6BM6T563.js → KEM4MXHR.js} +2 -2
- package/dist/cdn/{4CL7FQJJ.js → KEWRGL4F.js} +2 -2
- package/dist/cdn/{GCT37KSU.js → KKNAISCF.js} +2 -2
- package/dist/cdn/{T5J4SUEV.js → KOCV6HOA.js} +2 -2
- package/dist/cdn/{SD64JT6D.js → LF3YYZDO.js} +2 -2
- package/dist/cdn/{K47LMM6Z.js → LICAKY7L.js} +1 -1
- package/dist/cdn/{HTIEWPTM.js → LKATYYOC.js} +2 -2
- package/dist/cdn/{E2432QWX.js → LRICWPMS.js} +2 -2
- package/dist/cdn/{JIGRRJYO.js → MMDFEAQH.js} +2 -2
- package/dist/cdn/{C4QWXP5F.js → MNEZ2PN3.js} +2 -2
- package/dist/cdn/{TSXPE5N7.js → MQ6F6Y65.js} +1 -1
- package/dist/cdn/{UJIFAUE2.js → MSR5INSD.js} +2 -2
- package/dist/cdn/{KTYCUK7V.js → MWIH32NM.js} +2 -2
- package/dist/cdn/{2BRB6IHT.js → NTSGNHPP.js} +2 -2
- package/dist/cdn/{IW33QBLM.js → NUXG46RX.js} +2 -2
- package/dist/cdn/{DNVHA77U.js → NW3ES5B4.js} +1 -1
- package/dist/cdn/{7W2GTF7Y.js → O2KUWZ7O.js} +1 -1
- package/dist/cdn/{KQ6KM7WZ.js → OGT27QLK.js} +2 -2
- package/dist/cdn/{IO2QF2OZ.js → OH5V54HS.js} +2 -2
- package/dist/cdn/{KCYH5BBD.js → ONONU6SL.js} +1 -1
- package/dist/cdn/{BKA2JCDO.js → OPY7DTRK.js} +1 -1
- package/dist/cdn/{5M7A3X3U.js → OYLLYGS7.js} +2 -2
- package/dist/cdn/{JVULVD76.js → P525JITH.js} +2 -2
- package/dist/cdn/{RA6HENCZ.js → PDQUI7VW.js} +2 -2
- package/dist/cdn/{7ZNKDVNK.js → PDTD3TOA.js} +2 -2
- package/dist/cdn/PLTCLO5M.js +4 -0
- package/dist/cdn/{4RGKH7SI.js → PPEGXL3J.js} +2 -2
- package/dist/cdn/{NC3PAM6U.js → PQYHMM2S.js} +2 -2
- package/dist/cdn/{WSWF2FPF.js → PXEIDJCC.js} +2 -2
- package/dist/cdn/{JVDWLQMN.js → Q3SFMQ52.js} +2 -2
- package/dist/cdn/{7FKDZIEW.js → Q5GMRZGW.js} +2 -2
- package/dist/cdn/{D2NMLMNJ.js → QCFDEKM7.js} +2 -2
- package/dist/cdn/{LF7C5CM2.js → QJ3D4NWB.js} +1 -1
- package/dist/cdn/{ZUUGKO7V.js → QOEYQJ3H.js} +1 -1
- package/dist/cdn/{TD3NNZS3.js → QRC6GKFC.js} +2 -2
- package/dist/cdn/{3RFFJ2S5.js → QWO4SEL6.js} +2 -2
- package/dist/cdn/QZYSDV6Y.js +4 -0
- package/dist/cdn/{HNCJSZGL.js → R2YM4H5W.js} +1 -1
- package/dist/cdn/{3BTV7OEP.js → R7BRBOU7.js} +1 -1
- package/dist/cdn/{RFER2STC.js → RCMESI6O.js} +2 -2
- package/dist/cdn/{SGFZKTS7.js → RCREKRA6.js} +2 -2
- package/dist/cdn/{Q4GHTPKL.js → REMNCLV5.js} +1 -1
- package/dist/cdn/{MBEMGM3S.js → RR76PS2R.js} +2 -2
- package/dist/cdn/{UICOM7EK.js → RSGI4OXJ.js} +2 -2
- package/dist/cdn/{DJGXXE5R.js → RYA22M5U.js} +1 -1
- package/dist/cdn/{3SWHFVC5.js → SEAKLVI3.js} +2 -2
- package/dist/cdn/{5DQDJF3X.js → SM3ZYGA6.js} +2 -2
- package/dist/cdn/{Z2UTIVKY.js → ST2VDJTE.js} +2 -2
- package/dist/cdn/{D6RBIAXP.js → SY5KU6WQ.js} +2 -2
- package/dist/cdn/{KZBOSMAA.js → T7VIIEO7.js} +2 -2
- package/dist/cdn/TNTDALVV.js +4 -0
- package/dist/cdn/{4TPIZPP6.js → TWFX6N6U.js} +2 -2
- package/dist/cdn/U3MMDQWZ.js +4 -0
- package/dist/cdn/{AKYDGDXN.js → U3XZF46Y.js} +2 -2
- package/dist/cdn/{OBBKQC33.js → U56QVRC7.js} +2 -2
- package/dist/cdn/U77J5VMI.js +4 -0
- package/dist/cdn/{I7EHUJMJ.js → UGNWHZTB.js} +2 -2
- package/dist/cdn/{D4Y7JJ7N.js → UJI5PZDE.js} +2 -2
- package/dist/cdn/{SQF5PXV4.js → UNVOG4UB.js} +2 -2
- package/dist/cdn/{2B3IBUMD.js → UPJPTRRY.js} +2 -2
- package/dist/cdn/{HZXGOSFA.js → V2JLOD4Q.js} +2 -2
- package/dist/cdn/{AXCAZ7SM.js → VDLXSRZF.js} +2 -2
- package/dist/cdn/{6AHYTXT2.js → VE4ELDOI.js} +2 -2
- package/dist/cdn/{D5G26D66.js → VFG5QVI4.js} +2 -2
- package/dist/cdn/{GYDDLMSK.js → VK7J7QZN.js} +2 -2
- package/dist/cdn/{BQHMPRUG.js → VT6VJLTC.js} +1 -1
- package/dist/cdn/{KEEZM4AX.js → W75LIZ2T.js} +2 -2
- package/dist/cdn/{JOLN3U6B.js → WBZKPWNZ.js} +2 -2
- package/dist/cdn/{U6IVXS2Q.js → WCBSDOQC.js} +2 -2
- package/dist/cdn/{JBJJBULG.js → WXU74YSS.js} +2 -2
- package/dist/cdn/{UHH66QZJ.js → X7XVUJ7O.js} +2 -2
- package/dist/cdn/{LQ5TR26F.js → XCTR672U.js} +2 -2
- package/dist/cdn/{BYEDJZZG.js → XGGDZ32P.js} +2 -2
- package/dist/cdn/{4DK3JLRJ.js → XHPBB4XG.js} +2 -2
- package/dist/cdn/{L4IPSY5X.js → Y3DMD2ZQ.js} +2 -2
- package/dist/cdn/{UWOSRWON.js → Y4QOUGJH.js} +2 -2
- package/dist/cdn/{K33KHJFQ.js → YEMYHD55.js} +1 -1
- package/dist/cdn/{Z5MT2SGP.js → Z5GKFYA4.js} +1 -1
- package/dist/cdn/{NCKRO3GE.js → ZD3TGC7G.js} +2 -2
- package/dist/cdn/{QKUZIQL4.js → ZPFWHVJ3.js} +2 -2
- package/dist/cdn/{MHL7MFAL.js → ZPHYW55J.js} +2 -2
- package/dist/cdn/{NZK5XHJT.js → ZW6NLHDZ.js} +2 -2
- package/dist/cdn/assets/icon/fileEsl16.json +1 -0
- package/dist/cdn/assets/icon/fileEsl24.json +1 -0
- package/dist/cdn/assets/icon/fileEsl32.json +1 -0
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/ExpandToggle.js +5 -1
- package/dist/chunks/FloatingArrow.js +1 -1
- package/dist/chunks/Heading.js +1 -1
- package/dist/chunks/InternalLabel.js +1 -1
- package/dist/chunks/Validation.js +1 -1
- package/dist/chunks/array.js +1 -1
- package/dist/chunks/component.js +1 -1
- package/dist/chunks/core.js +1 -1
- package/dist/chunks/date.js +1 -1
- package/dist/chunks/dom.js +1 -1
- package/dist/chunks/dynamicClasses.js +1 -1
- package/dist/chunks/filter.js +1 -1
- package/dist/chunks/floating-ui.js +1 -1
- package/dist/chunks/form.js +1 -1
- package/dist/chunks/global.js +1 -1
- package/dist/chunks/guid.js +1 -1
- package/dist/chunks/header.js +1 -1
- package/dist/chunks/input.js +1 -1
- package/dist/chunks/interact.min.js +1 -1
- package/dist/chunks/key.js +1 -1
- package/dist/chunks/label.js +1 -1
- package/dist/chunks/locale.js +1 -1
- package/dist/chunks/logger.js +1 -1
- package/dist/chunks/math.js +1 -1
- package/dist/chunks/observers.js +1 -1
- package/dist/chunks/openCloseComponent.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/resources2.js +1 -1
- package/dist/chunks/resources3.js +1 -1
- package/dist/chunks/resources4.js +1 -1
- package/dist/chunks/resources5.js +1 -1
- package/dist/chunks/resources6.js +1 -1
- package/dist/chunks/resources7.js +1 -1
- package/dist/chunks/resources8.js +1 -1
- package/dist/chunks/responsive.js +1 -1
- package/dist/chunks/runtime.js +5 -5
- package/dist/chunks/sortable.js +1 -1
- package/dist/chunks/sortableComponent.js +1 -1
- package/dist/chunks/text.js +1 -1
- package/dist/chunks/useCancelable.js +1 -1
- package/dist/chunks/useFocusTrap.js +1 -1
- package/dist/chunks/useInteractive.js +1 -1
- package/dist/chunks/usePreventDocumentScroll.js +1 -1
- package/dist/chunks/useSetFocus.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useTime.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/chunks/utils4.js +1 -1
- package/dist/components/calcite-accordion/customElement.js +1 -1
- package/dist/components/calcite-accordion-item/customElement.js +1 -1
- package/dist/components/calcite-action/customElement.d.ts +2 -2
- package/dist/components/calcite-action/customElement.js +2 -2
- package/dist/components/calcite-action-bar/customElement.js +41 -4
- package/dist/components/calcite-action-bar/utils.d.ts +1 -0
- package/dist/components/calcite-action-group/customElement.d.ts +15 -1
- package/dist/components/calcite-action-group/customElement.js +72 -4
- package/dist/components/calcite-action-menu/customElement.js +1 -1
- package/dist/components/calcite-action-pad/customElement.js +40 -3
- package/dist/components/calcite-alert/customElement.js +1 -1
- package/dist/components/calcite-autocomplete/customElement.js +1 -1
- package/dist/components/calcite-autocomplete-item/customElement.js +1 -1
- package/dist/components/calcite-autocomplete-item-group/customElement.js +1 -1
- package/dist/components/calcite-avatar/customElement.js +1 -1
- package/dist/components/calcite-block/customElement.js +1 -1
- package/dist/components/calcite-block-group/customElement.js +1 -1
- package/dist/components/calcite-block-section/customElement.js +1 -1
- package/dist/components/calcite-button/customElement.js +1 -1
- package/dist/components/calcite-card/customElement.js +1 -1
- package/dist/components/calcite-card-group/customElement.js +1 -1
- package/dist/components/calcite-carousel/customElement.js +1 -1
- package/dist/components/calcite-carousel-item/customElement.js +1 -1
- package/dist/components/calcite-checkbox/customElement.js +1 -1
- package/dist/components/calcite-chip/customElement.js +1 -1
- package/dist/components/calcite-chip-group/customElement.js +1 -1
- package/dist/components/calcite-color-picker/customElement.js +1 -1
- package/dist/components/calcite-color-picker-hex-input/customElement.js +1 -1
- package/dist/components/calcite-color-picker-swatch/customElement.js +1 -1
- package/dist/components/calcite-combobox/customElement.d.ts +6 -0
- package/dist/components/calcite-combobox/customElement.js +38 -28
- package/dist/components/calcite-combobox-item/customElement.d.ts +3 -2
- package/dist/components/calcite-combobox-item/customElement.js +11 -4
- package/dist/components/calcite-combobox-item-group/customElement.js +1 -1
- package/dist/components/calcite-date-picker/customElement.js +1 -1
- package/dist/components/calcite-date-picker-day/customElement.js +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.js +1 -1
- package/dist/components/calcite-dropdown/customElement.js +1 -1
- package/dist/components/calcite-dropdown-group/customElement.js +1 -1
- package/dist/components/calcite-dropdown-item/customElement.js +1 -1
- package/dist/components/calcite-fab/customElement.js +1 -1
- package/dist/components/calcite-filter/customElement.js +1 -1
- package/dist/components/calcite-flow/customElement.js +1 -1
- package/dist/components/calcite-flow-item/customElement.js +1 -1
- package/dist/components/calcite-graph/customElement.js +1 -1
- package/dist/components/calcite-handle/customElement.js +1 -1
- package/dist/components/calcite-icon/customElement.js +1 -1
- package/dist/components/calcite-inline-editable/customElement.js +1 -1
- package/dist/components/calcite-input/customElement.js +1 -1
- package/dist/components/calcite-input-date-picker/customElement.js +1 -1
- package/dist/components/calcite-input-message/customElement.js +1 -1
- package/dist/components/calcite-input-number/customElement.js +1 -1
- package/dist/components/calcite-input-text/customElement.js +1 -1
- package/dist/components/calcite-input-time-picker/customElement.js +1 -1
- package/dist/components/calcite-input-time-zone/customElement.js +1 -1
- package/dist/components/calcite-label/customElement.js +1 -1
- package/dist/components/calcite-link/customElement.js +1 -1
- package/dist/components/calcite-list/customElement.js +1 -1
- package/dist/components/calcite-list-item/customElement.js +2 -2
- package/dist/components/calcite-list-item-group/customElement.js +1 -1
- package/dist/components/calcite-loader/customElement.js +1 -1
- package/dist/components/calcite-menu/customElement.js +1 -1
- package/dist/components/calcite-menu-item/customElement.js +1 -1
- package/dist/components/calcite-meter/customElement.js +1 -1
- package/dist/components/calcite-navigation/customElement.js +1 -1
- package/dist/components/calcite-navigation-logo/customElement.js +1 -1
- package/dist/components/calcite-navigation-user/customElement.js +1 -1
- package/dist/components/calcite-notice/customElement.js +1 -1
- package/dist/components/calcite-option/customElement.js +1 -1
- package/dist/components/calcite-option-group/customElement.js +1 -1
- package/dist/components/calcite-pagination/customElement.js +1 -1
- package/dist/components/calcite-panel/customElement.js +2 -2
- package/dist/components/calcite-panel/resources.d.ts +0 -1
- package/dist/components/calcite-popover/customElement.js +2 -2
- package/dist/components/calcite-progress/customElement.js +1 -1
- package/dist/components/calcite-radio-button/customElement.js +1 -1
- package/dist/components/calcite-radio-button-group/customElement.js +1 -1
- package/dist/components/calcite-rating/customElement.js +1 -1
- package/dist/components/calcite-scrim/customElement.js +1 -1
- package/dist/components/calcite-segmented-control/customElement.js +1 -1
- package/dist/components/calcite-segmented-control-item/customElement.js +1 -1
- package/dist/components/calcite-select/customElement.js +1 -1
- package/dist/components/calcite-sheet/customElement.js +1 -1
- package/dist/components/calcite-shell/customElement.js +1 -1
- package/dist/components/calcite-shell-panel/customElement.d.ts +5 -0
- package/dist/components/calcite-shell-panel/customElement.js +74 -43
- package/dist/components/calcite-slider/customElement.js +1 -1
- package/dist/components/calcite-sort-handle/customElement.js +2 -2
- package/dist/components/calcite-sortable-list/customElement.js +1 -1
- package/dist/components/calcite-split-button/customElement.js +1 -1
- package/dist/components/calcite-stack/customElement.js +1 -1
- package/dist/components/calcite-stepper/customElement.js +2 -2
- package/dist/components/calcite-stepper-item/customElement.js +1 -1
- package/dist/components/calcite-swatch/customElement.js +1 -1
- package/dist/components/calcite-swatch-group/customElement.js +1 -1
- package/dist/components/calcite-switch/customElement.js +1 -1
- package/dist/components/calcite-tab/customElement.js +1 -1
- package/dist/components/calcite-tab-nav/customElement.js +2 -2
- package/dist/components/calcite-tab-title/customElement.js +4 -4
- package/dist/components/calcite-tab-title/index.d.ts +1 -0
- package/dist/components/calcite-tab-title/index.js +1 -0
- package/dist/components/calcite-tab-title/resources.d.ts +1 -0
- package/dist/components/calcite-table/customElement.js +1 -1
- package/dist/components/calcite-table-cell/customElement.js +1 -1
- package/dist/components/calcite-table-header/customElement.js +1 -1
- package/dist/components/calcite-table-row/customElement.js +1 -1
- package/dist/components/calcite-tabs/customElement.js +1 -1
- package/dist/components/calcite-text-area/customElement.js +1 -1
- package/dist/components/calcite-tile/customElement.js +1 -1
- package/dist/components/calcite-tile-group/customElement.js +1 -1
- package/dist/components/calcite-time-picker/customElement.js +1 -1
- package/dist/components/calcite-tooltip/customElement.js +1 -1
- package/dist/components/calcite-tree/customElement.js +1 -1
- package/dist/components/calcite-tree-item/customElement.js +1 -1
- package/dist/components/interfaces.d.ts +1 -0
- package/dist/controllers/useSizeOverride.d.ts +44 -0
- package/dist/docs/api.json +289 -13
- package/dist/docs/docs.json +179 -6
- package/dist/docs/vscode.html-custom-data.json +89 -2
- package/dist/docs/web-types.json +58 -5
- package/dist/index.js +1 -1
- package/dist/loader.js +4 -4
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/preact10.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +7 -7
- package/dist/cdn/CGJF2WT3.js +0 -4
- package/dist/cdn/F4S4KCEU.js +0 -4
- package/dist/cdn/IEQTQXR7.js +0 -4
- package/dist/cdn/IGVEOOOY.js +0 -4
- package/dist/cdn/JY7UPCZF.js +0 -4
- package/dist/cdn/P4NPWG6I.js +0 -4
- package/dist/cdn/PRVTFMLC.js +0 -4
- package/dist/cdn/R2FT3XM4.js +0 -4
- package/dist/cdn/SH3WETMJ.js +0 -4
- package/dist/cdn/XUWAEWG2.js +0 -4
- package/dist/cdn/ZRFXF5CA.js +0 -4
- package/dist/chunks/XButton.js +0 -21
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
7
|
-
import { s as slotChangeGetAssignedElements } from "../../chunks/dom.js";
|
|
8
|
-
import { t as toggleChildActionText, E as ExpandToggle } from "../../chunks/ExpandToggle.js";
|
|
7
|
+
import { s as slotChangeGetAssignedElements, d as focusElementInGroup } from "../../chunks/dom.js";
|
|
8
|
+
import { t as toggleChildActionText, i as isAction, E as ExpandToggle } from "../../chunks/ExpandToggle.js";
|
|
9
9
|
import { c as createObserver } from "../../chunks/observers.js";
|
|
10
10
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
11
11
|
import { u as useSetFocus } from "../../chunks/useSetFocus.js";
|
|
@@ -39,6 +39,7 @@ class ActionPad extends LitElement {
|
|
|
39
39
|
this.calciteActionPadExpand = createEvent({ cancelable: false });
|
|
40
40
|
this.calciteActionPadToggle = createEvent({ cancelable: false });
|
|
41
41
|
this.listen("calciteActionMenuOpen", this.actionMenuOpenHandler);
|
|
42
|
+
this.listen("keydown", this.handleKeyDown);
|
|
42
43
|
}
|
|
43
44
|
static {
|
|
44
45
|
this.properties = { expandTooltip: [16, {}, { state: true }], actionsEndGroupLabel: 1, expandDisabled: [7, {}, { reflect: true, type: Boolean }], expanded: [7, {}, { reflect: true, type: Boolean }], layout: [3, {}, { reflect: true }], messageOverrides: [0, {}, { attribute: false }], overlayPositioning: [3, {}, { reflect: true }], position: [3, {}, { reflect: true }], scale: [3, {}, { reflect: true }], selectionAppearance: [3, {}, { reflect: true }] };
|
|
@@ -114,11 +115,47 @@ class ActionPad extends LitElement {
|
|
|
114
115
|
const tooltips = slotChangeGetAssignedElements(event).filter((el) => el?.matches("calcite-tooltip"));
|
|
115
116
|
this.expandTooltip = tooltips[0];
|
|
116
117
|
}
|
|
118
|
+
handleKeyDown(event) {
|
|
119
|
+
this.queryAndStoreActions();
|
|
120
|
+
const actions = this.actions.filter((action) => !action.disabled);
|
|
121
|
+
const current = document.activeElement;
|
|
122
|
+
if (!isAction(current)) {
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
switch (event.key) {
|
|
126
|
+
case "ArrowRight":
|
|
127
|
+
case "ArrowDown":
|
|
128
|
+
focusElementInGroup(actions, current, "next", true);
|
|
129
|
+
event.preventDefault();
|
|
130
|
+
break;
|
|
131
|
+
case "ArrowLeft":
|
|
132
|
+
case "ArrowUp":
|
|
133
|
+
focusElementInGroup(actions, current, "previous", true);
|
|
134
|
+
event.preventDefault();
|
|
135
|
+
break;
|
|
136
|
+
case "Home":
|
|
137
|
+
focusElementInGroup(actions, current, "first", true);
|
|
138
|
+
event.preventDefault();
|
|
139
|
+
break;
|
|
140
|
+
case "End":
|
|
141
|
+
focusElementInGroup(actions, current, "last", true);
|
|
142
|
+
event.preventDefault();
|
|
143
|
+
break;
|
|
144
|
+
case "Tab":
|
|
145
|
+
this.updateTabIndexOfItems(current);
|
|
146
|
+
break;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
117
149
|
updateActions() {
|
|
118
150
|
this.actions.forEach((action) => {
|
|
119
151
|
action.selectionAppearance = this.selectionAppearance;
|
|
120
152
|
});
|
|
121
153
|
}
|
|
154
|
+
updateTabIndexOfItems(target) {
|
|
155
|
+
this.actions.forEach((item) => {
|
|
156
|
+
item.tabIndex = target !== item ? -1 : 0;
|
|
157
|
+
});
|
|
158
|
+
}
|
|
122
159
|
queryAndStoreActions() {
|
|
123
160
|
this.actions = Array.from(this.el.querySelectorAll("calcite-action"));
|
|
124
161
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { ref } from "lit/directives/ref.js";
|
|
6
6
|
import { keyed } from "lit/directives/keyed.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { repeat } from "lit/directives/repeat.js";
|
|
6
6
|
import { css, nothing, html } from "lit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { LitElement, safeClassMap, nothing } from "@arcgis/lumina";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { LitElement, nothing, safeClassMap, safeStyleMap } from "@arcgis/lumina";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { keyed } from "lit/directives/keyed.js";
|
|
6
6
|
import { ref } from "lit/directives/ref.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { D as DEBOUNCE, c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { debounce } from "es-toolkit";
|
|
6
6
|
import { css, html } from "lit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { keyed } from "lit/directives/keyed.js";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap, nothing } from "@arcgis/lumina";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, isServer, html, nothing } from "lit";
|
|
6
6
|
import { createRef, ref } from "lit-html/directives/ref.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { createRef, ref } from "lit-html/directives/ref.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { createRef, ref } from "lit-html/directives/ref.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { repeat } from "lit/directives/repeat.js";
|
|
6
6
|
import { css, nothing, html } from "lit";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { LitElement, setAttribute, safeClassMap } from "@arcgis/lumina";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { C as CSS_UTILITY, c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, svg, html } from "lit";
|
|
6
6
|
import { createRef, ref } from "lit-html/directives/ref.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, isServer, html } from "lit";
|
|
6
6
|
import { createRef, ref } from "lit-html/directives/ref.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { createRef, ref } from "lit-html/directives/ref.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { repeat } from "lit/directives/repeat.js";
|
|
6
6
|
import { keyed } from "lit/directives/keyed.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { keyed } from "lit/directives/keyed.js";
|
|
6
6
|
import Color from "color";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { keyed } from "lit/directives/keyed.js";
|
|
6
6
|
import Color from "color";
|
|
@@ -96,6 +96,12 @@ export declare class Combobox extends LitElement {
|
|
|
96
96
|
* @default false
|
|
97
97
|
*/
|
|
98
98
|
placeholderIconFlipRtl: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* Determines where the component will be positioned relative to the `referenceElement`.
|
|
101
|
+
*
|
|
102
|
+
* @default "bottom-start"
|
|
103
|
+
*/
|
|
104
|
+
placement: LogicalPlacement;
|
|
99
105
|
/**
|
|
100
106
|
* When `true`, the component's value can be read, but controls are not accessible and the value cannot be modified.
|
|
101
107
|
*
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { D as DEBOUNCE, c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { keyed } from "lit/directives/keyed.js";
|
|
6
6
|
import { live } from "lit/directives/live.js";
|
|
7
7
|
import { debounce } from "es-toolkit";
|
|
8
8
|
import { escapeRegExp } from "es-toolkit/compat";
|
|
9
9
|
import { d as calciteSize48 } from "../../chunks/core.js";
|
|
10
|
-
import { css, nothing, html } from "lit";
|
|
11
|
-
import { createRef, ref } from "lit-html/directives/ref.js";
|
|
12
|
-
import { LitElement, createEvent, stringOrBoolean
|
|
10
|
+
import { css, nothing as nothing$1, html as html$1 } from "lit";
|
|
11
|
+
import { createRef, ref as ref$1 } from "lit-html/directives/ref.js";
|
|
12
|
+
import { safeClassMap, LitElement, createEvent, stringOrBoolean } from "@arcgis/lumina";
|
|
13
13
|
import { f as filter } from "../../chunks/filter.js";
|
|
14
14
|
import { B as getElementWidth, A as getTextWidth, b as focusElement } from "../../chunks/dom.js";
|
|
15
15
|
import { b as defaultMenuPlacement, r as reposition, c as connectFloatingUI, a as disconnectFloatingUI, f as filterValidFlipPlacements, h as hideFloatingUI, F as FloatingCSS } from "../../chunks/floating-ui.js";
|
|
@@ -18,8 +18,9 @@ import { g as guid } from "../../chunks/guid.js";
|
|
|
18
18
|
import { c as connectLabel, d as disconnectLabel, g as getLabelText } from "../../chunks/label.js";
|
|
19
19
|
import { c as createObserver, u as updateRefObserver } from "../../chunks/observers.js";
|
|
20
20
|
import { t as toggleOpenClose } from "../../chunks/openCloseComponent.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
21
|
+
import { ref } from "lit/directives/ref.js";
|
|
22
|
+
import { nothing, html } from "lit-html";
|
|
23
|
+
import { g as getIconScale, i as isHidden } from "../../chunks/component.js";
|
|
23
24
|
import { I as InternalLabel } from "../../chunks/InternalLabel.js";
|
|
24
25
|
import { V as Validation } from "../../chunks/Validation.js";
|
|
25
26
|
import { u as useT9n } from "../../chunks/useT9n.js";
|
|
@@ -29,6 +30,15 @@ import { u as useCancelable } from "../../chunks/useCancelable.js";
|
|
|
29
30
|
import { u as useInteractive } from "../../chunks/useInteractive.js";
|
|
30
31
|
import { I as IDS, b as CSS$1, C as ComboboxItemSelector, a as ComboboxItemGroupSelector, c as ICONS } from "../../chunks/resources6.js";
|
|
31
32
|
import { h as hasActiveChildren, i as isSingleLike, b as getLabel, c as getItemAncestors, d as getItemChildren } from "../../chunks/utils4.js";
|
|
33
|
+
const CSS = {
|
|
34
|
+
button: "x-button",
|
|
35
|
+
buttonRound: "x-button--round"
|
|
36
|
+
};
|
|
37
|
+
const XButton = ({ disabled, focusable, key, label, onClick, ref: ref$12, round = true, scale, title }) => keyed(key, html`<button .ariaLabel=${label} class=${safeClassMap({
|
|
38
|
+
[((scale2) => `x-button--${scale2}`)(scale)]: true,
|
|
39
|
+
[CSS.button]: true,
|
|
40
|
+
[CSS.buttonRound]: round
|
|
41
|
+
})} .disabled=${disabled} @click=${onClick} .tabIndex=${focusable ? 0 : -1} title=${title ?? nothing} type=button ${ref(ref$12)}><calcite-icon icon=x .scale=${getIconScale(scale)}></calcite-icon></button>`);
|
|
32
42
|
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;display:block}:host([scale=s]){font-size:var(--calcite-font-size--2);--calcite-internal-combobox-spacing-unit-l: .5rem;--calcite-internal-combobox-spacing-unit-s: .25rem;--calcite-internal-combobox-no-matches-spacing-unit-s: .25rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.25rem - 1px) ;--calcite-internal-close-size: 1rem}:host([scale=s]) .x-button{margin-inline:.5rem}:host([scale=m]){font-size:var(--calcite-font-size--1);--calcite-internal-combobox-spacing-unit-l: .75rem;--calcite-internal-combobox-spacing-unit-s: .5rem;--calcite-internal-combobox-no-matches-spacing-unit-s: .375rem;--calcite-combobox-input-height: 1rem;--calcite-internal-combobox-input-margin-block: calc(.5rem - 1px) ;--calcite-internal-close-size: 1.5rem}:host([scale=m]) .x-button{margin-inline-end:.75rem}:host([scale=l]){font-size:var(--calcite-font-size-0);--calcite-internal-combobox-spacing-unit-l: 1rem;--calcite-internal-combobox-spacing-unit-s: .75rem;--calcite-internal-combobox-no-matches-spacing-unit-s: .625rem;--calcite-combobox-input-height: 1.5rem;--calcite-internal-combobox-input-margin-block: calc(.625rem - 1px) ;--calcite-internal-close-size: 2rem}:host([scale=l]) .x-button{margin-inline-end:1rem}.x-button{align-self:center}.wrapper{display:flex;border-width:1px;border-style:solid;outline-color:transparent;padding-block:calc(var(--calcite-internal-combobox-spacing-unit-s) / 4);padding-inline:var(--calcite-internal-combobox-spacing-unit-l);background-color:var(--calcite-combobox-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-combobox-input-text-color, var(--calcite-color-text-1));border-color:var(--calcite-combobox-input-border-color, var(--calcite-color-border-input))}.wrapper:hover .icon{color:var(--calcite-combobox-icon-color-hover, var(--calcite-color-text-1))}:host(:focus-within) .wrapper,.wrapper--active{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))))}:host([read-only]) .wrapper{background-color:var(--calcite-color-background)}:host([read-only]) .label{font-weight:var(--calcite-font-weight-medium)}:host([status=invalid]) .wrapper{border-color:var(--calcite-color-status-danger)}:host([status=invalid]:focus-within) .wrapper{outline:var(--calcite-border-width-md) solid var(--calcite-color-status-danger);outline-offset:calc(calc(-1 * var(--calcite-spacing-base)) * calc(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.wrapper--single{padding-block:0;padding-inline:var(--calcite-internal-combobox-spacing-unit-l);cursor:pointer;flex-wrap:nowrap}.grid-input{position:relative;display:flex;flex-grow:1;flex-wrap:wrap;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;gap:var(--calcite-internal-combobox-spacing-unit-s);margin-inline-end:var(--calcite-internal-combobox-spacing-unit-s)}.grid-input.selection-display--fit,.grid-input.selection-display--single{flex-wrap:nowrap;overflow:hidden}.input{flex-grow:1;appearance:none;overflow:hidden;text-overflow:ellipsis;border-style:none;background-color:transparent;padding:0;font-family:inherit;color:var(--calcite-color-text-1);font-size:inherit;block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height);inline-size:100%;margin-block-end:var(--calcite-internal-combobox-spacing-unit-s);min-inline-size:4.8125rem}.input:focus{outline:2px solid transparent;outline-offset:2px}.input:placeholder-shown{text-overflow:ellipsis}.input--single{padding:0;margin-block:var(--calcite-internal-combobox-input-margin-block)}.wrapper--active .input-single{cursor:text}.input--hidden{pointer-events:none;width:0px;min-width:0px;opacity:0}.input--icon{padding-block:0;padding-inline:var(--calcite-internal-combobox-spacing-unit-l)}.placeholder-icon{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3))}.input-wrap{display:flex;flex-grow:1;align-items:center}.input-wrap--single{flex:1 1 0%;overflow:hidden}.label{pointer-events:none;max-width:100%;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;font-weight:var(--calcite-font-weight-normal);block-size:var(--calcite-combobox-input-height);line-height:var(--calcite-combobox-input-height)}.label--icon{padding-inline:var(--calcite-internal-combobox-spacing-unit-l)}.icon-end,.icon-start{display:flex;cursor:pointer;align-items:center}.icon-end{flex:none}.icon-end .icon{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3))}.floating-ui-container{inline-size:max-content;display:none;max-inline-size:100vw;max-block-size:100vh;inset-block-start:0;left:0}@starting-style{.floating-ui-container{opacity:0;inset-block-start:0;left:0}}.floating-ui-container[popover]{padding:0;margin:0;border:none;background-color:transparent;overflow:visible;display:none}.floating-ui-container:popover-open{display:block}.floating-ui-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}.floating-ui-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.floating-ui-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.floating-ui-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.floating-ui-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}@starting-style{.floating-ui-container[data-placement] .calcite-floating-ui-anim--active{opacity:0}}@media(forced-colors:active){.wrapper,.floating-ui-container{border:1px solid canvasText}}.screen-readers-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.list-container{max-height:45vh;overflow-y:auto;inline-size:var(--calcite-dropdown-width, 100%);background-color:var(--calcite-combobox-background-color, var(--calcite-color-foreground-1))}.list{margin:0;display:block;padding:0}.list--hide{height:0px;overflow:hidden}calcite-chip{--calcite-animation-timing: 0}.chip{margin-block:calc(var(--calcite-internal-combobox-spacing-unit-s) / 4);max-inline-size:100%}.chip--invisible{visibility:hidden;position:absolute}.item{display:block}.select-all{background-color:var(--calcite-combobox-item-background-color-active, var(--calcite-color-foreground-1));border-block-end-color:var(--calcite-combobox-divider-color, var(--calcite-combobox-item-border-color, var(--calcite-color-border-3)));border-block-end-style:solid;border-block-end-width:var(--calcite-border-width-sm);inset-block-start:0;position:sticky;z-index:var(--calcite-z-index-sticky)}.no-matches{padding-block:var(--calcite-internal-combobox-no-matches-spacing-unit-s);padding-inline:var(--calcite-internal-combobox-spacing-unit-l);color:var(--calcite-combobox-input-text-color, var(--calcite-color-text-1));background:var(--calcite-combobox-background-color, var(--calcite-color-foreground-1));cursor:pointer}.no-matches-placeholder{color:var(--calcite-combobox-icon-color, var(--calcite-color-text-3));cursor:default}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.x-button{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;border-style:none;cursor:pointer;outline-color:transparent;align-items:center;margin:0;background-color:var(--calcite-close-background-color, var(--calcite-color-foreground-2));-webkit-appearance:none;display:flex;align-content:center;justify-content:center;color:var(--calcite-close-icon-color, var(--calcite-color-text-3));block-size:var(--calcite-internal-close-size, 1.5rem);inline-size:var(--calcite-internal-close-size, 1.5rem);min-block-size:var(--calcite-internal-close-size, 1.5rem);min-inline-size:var(--calcite-internal-close-size, 1.5rem);padding:0}.x-button:hover,.x-button:focus{background-color:var(--calcite-close-background-color-hover, var(--calcite-color-foreground-3))}.x-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))))}.x-button:active{background-color:var(--calcite-close-background-color-press, var(--calcite-color-transparent-press))}.x-button calcite-icon{color:inherit}.x-button--round{border-radius:9999px}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}.text-match{background-color:transparent;color:inherit;font-weight:var(--calcite-font-weight-bold)}.internal-label-alignment--center{align-items:center}.internal-label-alignment--end{align-items:end}.internal-label--container{display:flex;justify-content:space-between;color:var(--calcite-color-text-1)}.internal-label-required--indicator{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-status-danger);padding-inline:var(--calcite-spacing-base)}.internal-label-required--indicator:hover{cursor:help}.internal-label--text{line-height:1}:host([scale=s]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-xxs)}:host([scale=s]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=s]) .internal-label--text{font-size:var(--calcite-font-size--2)}:host([scale=m]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-sm)}:host([scale=m]) .internal-label--text{font-size:var(--calcite-font-size--1)}:host([scale=l]) .internal-label-spacing--bottom{margin-block-end:var(--calcite-spacing-sm)}:host([scale=l]) .internal-label-spacing-inline--end{margin-inline-end:var(--calcite-spacing-md)}:host([scale=l]) .internal-label-spacing-inline--start{margin-inline-start:var(--calcite-spacing-md)}:host([scale=l]) .internal-label--text{font-size:var(--calcite-font-size-0)}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}`;
|
|
33
43
|
class Combobox extends LitElement {
|
|
34
44
|
constructor() {
|
|
@@ -96,7 +106,6 @@ class Combobox extends LitElement {
|
|
|
96
106
|
this.setFocus();
|
|
97
107
|
};
|
|
98
108
|
this.transitionProp = "opacity";
|
|
99
|
-
this.placement = defaultMenuPlacement;
|
|
100
109
|
this.resizeObserver = createObserver("resize", () => {
|
|
101
110
|
this.setMaxScrollerHeight();
|
|
102
111
|
this.refreshSelectionDisplay();
|
|
@@ -124,6 +133,7 @@ class Combobox extends LitElement {
|
|
|
124
133
|
this.open = false;
|
|
125
134
|
this.overlayPositioning = "absolute";
|
|
126
135
|
this.placeholderIconFlipRtl = false;
|
|
136
|
+
this.placement = defaultMenuPlacement;
|
|
127
137
|
this.readOnly = false;
|
|
128
138
|
this.required = false;
|
|
129
139
|
this.scale = "m";
|
|
@@ -157,7 +167,7 @@ class Combobox extends LitElement {
|
|
|
157
167
|
this.listen("click", this.comboboxFocusHandler);
|
|
158
168
|
}
|
|
159
169
|
static {
|
|
160
|
-
this.properties = { activeChipIndex: [16, {}, { state: true }], activeDescendant: [16, {}, { state: true }], activeItemIndex: [16, {}, { state: true }], compactSelectionDisplay: [16, {}, { state: true }], selectedHiddenChipsCount: [16, {}, { state: true }], selectedVisibleChipsCount: [16, {}, { state: true }], items: [16, {}, { state: true }], noMatchesFound: [16, {}, { state: true }], allowCustomValues: [7, {}, { reflect: true, type: Boolean }], clearDisabled: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], filterText: [3, {}, { reflect: true }], filterProps: [0, {}, { attribute: false }], filteredItems: [32, {}, { attribute: false, readOnly: true }], flipPlacements: [0, {}, { attribute: false }], form: [3, {}, { reflect: true }], label: 1, labelText: 1, maxItems: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placeholder: 1, placeholderIcon: [3, { type: String }, { reflect: true }], placeholderIconFlipRtl: [7, {}, { reflect: true, type: Boolean }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectAllEnabled: [7, {}, { reflect: true, type: Boolean }], selectedItems: [0, {}, { attribute: false }], selectionDisplay: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
|
|
170
|
+
this.properties = { activeChipIndex: [16, {}, { state: true }], activeDescendant: [16, {}, { state: true }], activeItemIndex: [16, {}, { state: true }], compactSelectionDisplay: [16, {}, { state: true }], selectedHiddenChipsCount: [16, {}, { state: true }], selectedVisibleChipsCount: [16, {}, { state: true }], items: [16, {}, { state: true }], noMatchesFound: [16, {}, { state: true }], allowCustomValues: [7, {}, { reflect: true, type: Boolean }], clearDisabled: [7, {}, { reflect: true, type: Boolean }], disabled: [7, {}, { reflect: true, type: Boolean }], filterText: [3, {}, { reflect: true }], filterProps: [0, {}, { attribute: false }], filteredItems: [32, {}, { attribute: false, readOnly: true }], flipPlacements: [0, {}, { attribute: false }], form: [3, {}, { reflect: true }], label: 1, labelText: 1, maxItems: [11, {}, { reflect: true, type: Number }], messageOverrides: [0, {}, { attribute: false }], name: [3, {}, { reflect: true }], open: [7, {}, { reflect: true, type: Boolean }], overlayPositioning: [3, {}, { reflect: true }], placeholder: 1, placeholderIcon: [3, { type: String }, { reflect: true }], placeholderIconFlipRtl: [7, {}, { reflect: true, type: Boolean }], placement: [3, {}, { reflect: true }], readOnly: [7, {}, { reflect: true, type: Boolean }], required: [7, {}, { reflect: true, type: Boolean }], scale: [3, {}, { reflect: true }], selectAllEnabled: [7, {}, { reflect: true, type: Boolean }], selectedItems: [0, {}, { attribute: false }], selectionDisplay: [3, {}, { reflect: true }], selectionMode: [3, {}, { reflect: true }], status: [3, {}, { reflect: true }], validationIcon: [3, { converter: stringOrBoolean, type: String }, { reflect: true }], validationMessage: 1, validity: [0, {}, { attribute: false }], value: 1 };
|
|
161
171
|
}
|
|
162
172
|
static {
|
|
163
173
|
this.styles = styles;
|
|
@@ -265,7 +275,7 @@ class Combobox extends LitElement {
|
|
|
265
275
|
if (changes.has("maxItems") && (this.hasUpdated || this.maxItems !== 0)) {
|
|
266
276
|
this.setMaxScrollerHeight();
|
|
267
277
|
}
|
|
268
|
-
if (changes.has("overlayPositioning") && (this.hasUpdated || this.overlayPositioning !== "absolute")) {
|
|
278
|
+
if (changes.has("overlayPositioning") && (this.hasUpdated || this.overlayPositioning !== "absolute") || changes.has("placement") && (this.hasUpdated || this.placement !== defaultMenuPlacement)) {
|
|
269
279
|
this.reposition(true);
|
|
270
280
|
}
|
|
271
281
|
if (changes.has("selectionMode") || changes.has("scale")) {
|
|
@@ -965,7 +975,7 @@ class Combobox extends LitElement {
|
|
|
965
975
|
this.textInputRef.value.focus();
|
|
966
976
|
}
|
|
967
977
|
createScreenReaderItem({ ariaLabel, ariaSelected, id, textContent }) {
|
|
968
|
-
return html`<li aria-label=${ariaLabel ?? nothing} aria-selected=${ariaSelected ?? nothing} id=${id ?? nothing} role=option tabindex=-1>${textContent}</li>`;
|
|
978
|
+
return html$1`<li aria-label=${ariaLabel ?? nothing$1} aria-selected=${ariaSelected ?? nothing$1} id=${id ?? nothing$1} role=option tabindex=-1>${textContent}</li>`;
|
|
969
979
|
}
|
|
970
980
|
handleSelectionModeWarning() {
|
|
971
981
|
if (this.selectionMode === "single-persist" && this.clearDisabled) {
|
|
@@ -989,17 +999,17 @@ class Combobox extends LitElement {
|
|
|
989
999
|
const itemLabel = getLabel(item);
|
|
990
1000
|
const pathLabel = [...ancestors, item].map((el) => getLabel(el));
|
|
991
1001
|
const label = selectionMode !== "ancestors" ? itemLabel : pathLabel.join(" / ");
|
|
992
|
-
return keyed(itemLabel, html`<calcite-chip .appearance=${readOnly ? "outline" : "solid"} class=${safeClassMap(chipClasses)} .closable=${!readOnly} .icon=${item.icon} .iconFlipRtl=${item.iconFlipRtl} id=${(item.guid ? `${IDS.chip(item.guid)}` : null) ?? nothing} .label=${label} .messageOverrides=${{ dismissLabel: messages.removeTag }} @focusin=${() => this.activeChipIndex = i} @calciteChipClose=${() => this.calciteChipCloseHandler(item)} .scale=${scale} .selected=${item.selected} .tabIndex=${activeChipIndex === i ? 0 : -1} title=${label ?? nothing} .value=${item.value}>${label}</calcite-chip>`);
|
|
1002
|
+
return keyed(itemLabel, html$1`<calcite-chip .appearance=${readOnly ? "outline" : "solid"} class=${safeClassMap(chipClasses)} .closable=${!readOnly} .icon=${item.icon} .iconFlipRtl=${item.iconFlipRtl} id=${(item.guid ? `${IDS.chip(item.guid)}` : null) ?? nothing$1} .label=${label} .messageOverrides=${{ dismissLabel: messages.removeTag }} @focusin=${() => this.activeChipIndex = i} @calciteChipClose=${() => this.calciteChipCloseHandler(item)} .scale=${scale} .selected=${item.selected} .tabIndex=${activeChipIndex === i ? 0 : -1} title=${label ?? nothing$1} .value=${item.value}>${label}</calcite-chip>`);
|
|
993
1003
|
});
|
|
994
1004
|
}
|
|
995
1005
|
renderAllSelectedIndicatorChip() {
|
|
996
1006
|
const { allSelectedIndicatorChipRef, compactSelectionDisplay, scale, selectedVisibleChipsCount } = this;
|
|
997
1007
|
const label = compactSelectionDisplay ? this.messages.all : this.messages.allSelected;
|
|
998
|
-
return html`<calcite-chip class=${safeClassMap({
|
|
1008
|
+
return html$1`<calcite-chip class=${safeClassMap({
|
|
999
1009
|
[CSS$1.chip]: true,
|
|
1000
1010
|
[CSS$1.chipInvisible]: !(this.allSelected && !selectedVisibleChipsCount),
|
|
1001
1011
|
[CSS$1.allSelected]: true
|
|
1002
|
-
})} .label=${label} .scale=${scale} title=${label ?? nothing} value ${ref(allSelectedIndicatorChipRef)}>${label}</calcite-chip>`;
|
|
1012
|
+
})} .label=${label} .scale=${scale} title=${label ?? nothing$1} value ${ref$1(allSelectedIndicatorChipRef)}>${label}</calcite-chip>`;
|
|
1003
1013
|
}
|
|
1004
1014
|
renderSelectedIndicatorChip() {
|
|
1005
1015
|
const { compactSelectionDisplay, selectionDisplay, getSelectedItems, scale, selectedHiddenChipsCount, selectedVisibleChipsCount, selectedIndicatorChipRef } = this;
|
|
@@ -1023,10 +1033,10 @@ class Combobox extends LitElement {
|
|
|
1023
1033
|
label = selectedVisibleChipsCount > 0 ? `+${selectedHiddenChipsCount}` : `${selectedHiddenChipsCount} ${this.messages.selected}`;
|
|
1024
1034
|
}
|
|
1025
1035
|
}
|
|
1026
|
-
return html`<calcite-chip class=${safeClassMap({
|
|
1036
|
+
return html$1`<calcite-chip class=${safeClassMap({
|
|
1027
1037
|
[CSS$1.chip]: true,
|
|
1028
1038
|
[CSS$1.chipInvisible]: chipInvisible
|
|
1029
|
-
})} .label=${label} .scale=${scale} title=${label ?? nothing} value ${ref(selectedIndicatorChipRef)}>${label}</calcite-chip>`;
|
|
1039
|
+
})} .label=${label} .scale=${scale} title=${label ?? nothing$1} value ${ref$1(selectedIndicatorChipRef)}>${label}</calcite-chip>`;
|
|
1030
1040
|
}
|
|
1031
1041
|
renderSelectedIndicatorChipCompact() {
|
|
1032
1042
|
const { compactSelectionDisplay, selectionDisplay, getSelectedItems, scale, selectedHiddenChipsCount } = this;
|
|
@@ -1046,28 +1056,28 @@ class Combobox extends LitElement {
|
|
|
1046
1056
|
} else {
|
|
1047
1057
|
chipInvisible = true;
|
|
1048
1058
|
}
|
|
1049
|
-
return html`<calcite-chip class=${safeClassMap({
|
|
1059
|
+
return html$1`<calcite-chip class=${safeClassMap({
|
|
1050
1060
|
[CSS$1.chip]: true,
|
|
1051
1061
|
[CSS$1.chipInvisible]: chipInvisible
|
|
1052
|
-
})} .label=${label} .scale=${scale} title=${label ?? nothing} value>${label}</calcite-chip>`;
|
|
1062
|
+
})} .label=${label} .scale=${scale} title=${label ?? nothing$1} value>${label}</calcite-chip>`;
|
|
1053
1063
|
}
|
|
1054
1064
|
renderInput() {
|
|
1055
1065
|
const { guid: guid2, disabled, placeholder, selectionMode, selectedItems, open } = this;
|
|
1056
1066
|
const single = isSingleLike(selectionMode);
|
|
1057
1067
|
const selectedItem = selectedItems[0];
|
|
1058
1068
|
const showLabel = !open && single && !!selectedItem && !this.filterText;
|
|
1059
|
-
return html`<span class=${safeClassMap({
|
|
1069
|
+
return html$1`<span class=${safeClassMap({
|
|
1060
1070
|
[CSS$1.inputWrap]: true,
|
|
1061
1071
|
[CSS$1.inputWrapSingle]: single
|
|
1062
|
-
})}>${showLabel && keyed("label", html`<span class=${safeClassMap({
|
|
1072
|
+
})}>${showLabel && keyed("label", html$1`<span class=${safeClassMap({
|
|
1063
1073
|
[CSS$1.label]: true,
|
|
1064
1074
|
[CSS$1.labelIcon]: !!selectedItem?.icon
|
|
1065
|
-
})}>${getLabel(selectedItem)}</span>`) || ""}${keyed("input", html`<input aria-activedescendant=${this.activeDescendant ?? nothing} aria-controls=${`${IDS.listbox(guid2)}`} aria-errormessage=${IDS.validationMessage} aria-owns=${`${IDS.listbox(guid2)}`} aria-autocomplete=list .ariaDescription=${this.getDescriptionMessage()} .ariaExpanded=${open} aria-haspopup=listbox .ariaInvalid=${this.status === "invalid"} .ariaLabel=${getLabelText(this)} class=${safeClassMap({
|
|
1075
|
+
})}>${getLabel(selectedItem)}</span>`) || ""}${keyed("input", html$1`<input aria-activedescendant=${this.activeDescendant ?? nothing$1} aria-controls=${`${IDS.listbox(guid2)}`} aria-errormessage=${IDS.validationMessage} aria-owns=${`${IDS.listbox(guid2)}`} aria-autocomplete=list .ariaDescription=${this.getDescriptionMessage()} .ariaExpanded=${open} aria-haspopup=listbox .ariaInvalid=${this.status === "invalid"} .ariaLabel=${getLabelText(this)} class=${safeClassMap({
|
|
1066
1076
|
[CSS$1.input]: true,
|
|
1067
1077
|
[CSS$1.inputSingle]: true,
|
|
1068
1078
|
[CSS$1.inputHidden]: showLabel,
|
|
1069
1079
|
[CSS$1.inputIcon]: this.showingInlineIcon && !!this.placeholderIcon
|
|
1070
|
-
})} .disabled=${disabled} .id=${`${IDS.input(guid2)}`} @focus=${this.comboboxFocusHandler} @input=${this.inputHandler} placeholder=${placeholder ?? nothing} .readOnly=${this.readOnly} .required=${this.required} role=combobox .tabIndex=${this.activeChipIndex === -1 ? 0 : -1} type=text .value=${live(this.filterText ?? "")} ${ref(this.textInputRef)}>`)}</span>`;
|
|
1080
|
+
})} .disabled=${disabled} .id=${`${IDS.input(guid2)}`} @focus=${this.comboboxFocusHandler} @input=${this.inputHandler} placeholder=${placeholder ?? nothing$1} .readOnly=${this.readOnly} .required=${this.required} role=combobox .tabIndex=${this.activeChipIndex === -1 ? 0 : -1} type=text .value=${live(this.filterText ?? "")} ${ref$1(this.textInputRef)}>`)}</span>`;
|
|
1071
1081
|
}
|
|
1072
1082
|
renderListBoxOptions() {
|
|
1073
1083
|
const mappedListBoxOptions = this.keyboardNavItems.map((item) => this.createScreenReaderItem({
|
|
@@ -1096,24 +1106,24 @@ class Combobox extends LitElement {
|
|
|
1096
1106
|
[FloatingCSS.animationActive]: open
|
|
1097
1107
|
};
|
|
1098
1108
|
const label = (this.filterText && messages.add?.replace("{text}", `${this.filterText}`)) ?? "";
|
|
1099
|
-
return html`<div aria-hidden=true class=${safeClassMap(CSS$1.floatingUIContainer)} popover=manual ${ref(setFloatingEl)}><div class=${safeClassMap(classes)} ${ref(setContainerEl)}><ul class=${safeClassMap({ [CSS$1.list]: true, [CSS$1.listHide]: !open })}>${this.selectAllEnabled && this.selectionMode !== "single" && this.selectionMode !== "single-persist" && html`<calcite-combobox-item class=${safeClassMap(CSS$1.selectAll)} .heading=${messages.selectAll} .id=${`${this.guid}-select-all-enabled-interactive`} .indeterminate=${this.indeterminate} .label=${messages.selectAll} .scale=${scale} .selected=${this.allSelected} tabindex=-1 value=select-all ${ref(this.selectAllComboboxItemRef)}></calcite-combobox-item>` || ""}<slot></slot>${this.noMatchesFound && (this.allowCustomValues ? html`<li aria-label=${label ?? nothing} class=${safeClassMap(CSS$1.noMatches)} @click=${this.customChipAddHandler} role=option tabindex=0>${highlightText({
|
|
1109
|
+
return html$1`<div aria-hidden=true class=${safeClassMap(CSS$1.floatingUIContainer)} popover=manual ${ref$1(setFloatingEl)}><div class=${safeClassMap(classes)} ${ref$1(setContainerEl)}><ul class=${safeClassMap({ [CSS$1.list]: true, [CSS$1.listHide]: !open })}>${this.selectAllEnabled && this.selectionMode !== "single" && this.selectionMode !== "single-persist" && html$1`<calcite-combobox-item class=${safeClassMap(CSS$1.selectAll)} .heading=${messages.selectAll} .id=${`${this.guid}-select-all-enabled-interactive`} .indeterminate=${this.indeterminate} .label=${messages.selectAll} .scale=${scale} .selected=${this.allSelected} tabindex=-1 value=select-all ${ref$1(this.selectAllComboboxItemRef)}></calcite-combobox-item>` || ""}<slot></slot>${this.noMatchesFound && (this.allowCustomValues ? html$1`<li aria-label=${label ?? nothing$1} class=${safeClassMap(CSS$1.noMatches)} @click=${this.customChipAddHandler} role=option tabindex=0>${highlightText({
|
|
1100
1110
|
text: label,
|
|
1101
1111
|
pattern: new RegExp(`(${escapeRegExp(this.filterText)})`, "i")
|
|
1102
|
-
})}</li>` : html`<li class=${safeClassMap({ [CSS$1.noMatchesPlaceholder]: true, [CSS$1.noMatches]: true })}>${messages.noMatches}</li>`) || ""}</ul></div></div>`;
|
|
1112
|
+
})}</li>` : html$1`<li class=${safeClassMap({ [CSS$1.noMatchesPlaceholder]: true, [CSS$1.noMatches]: true })}>${messages.noMatches}</li>`) || ""}</ul></div></div>`;
|
|
1103
1113
|
}
|
|
1104
1114
|
renderSelectedOrPlaceholderIcon() {
|
|
1105
1115
|
const { open, placeholderIcon, placeholderIconFlipRtl, selectedItems } = this;
|
|
1106
1116
|
const selectedItem = selectedItems[0];
|
|
1107
1117
|
const selectedIcon = selectedItem?.icon;
|
|
1108
1118
|
const showPlaceholder = placeholderIcon && (open || !selectedItem);
|
|
1109
|
-
return this.showingInlineIcon && keyed("selected-placeholder-icon", html`<span class=${safeClassMap(CSS$1.iconStart)}><calcite-icon class=${safeClassMap({
|
|
1119
|
+
return this.showingInlineIcon && keyed("selected-placeholder-icon", html$1`<span class=${safeClassMap(CSS$1.iconStart)}><calcite-icon class=${safeClassMap({
|
|
1110
1120
|
[CSS$1.selectedIcon]: !showPlaceholder,
|
|
1111
1121
|
[CSS$1.placeholderIcon]: showPlaceholder
|
|
1112
1122
|
})} .flipRtl=${showPlaceholder ? placeholderIconFlipRtl : selectedItem.iconFlipRtl} .icon=${showPlaceholder ? placeholderIcon : selectedIcon} .scale=${getIconScale(this.scale)}></calcite-icon></span>`) || "";
|
|
1113
1123
|
}
|
|
1114
1124
|
renderChevronIcon() {
|
|
1115
1125
|
const { open } = this;
|
|
1116
|
-
return keyed("chevron", html`<span class=${safeClassMap(CSS$1.iconEnd)}><calcite-icon class=${safeClassMap(CSS$1.icon)} .icon=${open ? ICONS.chevronUp : ICONS.chevronDown} .scale=${getIconScale(this.scale)}></calcite-icon></span>`);
|
|
1126
|
+
return keyed("chevron", html$1`<span class=${safeClassMap(CSS$1.iconEnd)}><calcite-icon class=${safeClassMap(CSS$1.icon)} .icon=${open ? ICONS.chevronUp : ICONS.chevronDown} .scale=${getIconScale(this.scale)}></calcite-icon></span>`);
|
|
1117
1127
|
}
|
|
1118
1128
|
render() {
|
|
1119
1129
|
const { selectionDisplay, guid: guid2, label, open, readOnly } = this;
|
|
@@ -1122,15 +1132,15 @@ class Combobox extends LitElement {
|
|
|
1122
1132
|
const singleSelectionDisplay = selectionDisplay === "single";
|
|
1123
1133
|
const fitSelectionDisplay = !singleSelectionMode && selectionDisplay === "fit";
|
|
1124
1134
|
const isClearable = !this.clearDisabled && this.selectionMode !== "single-persist" && !!this.value?.length;
|
|
1125
|
-
return this.interactiveContainer({ disabled: this.disabled, children: html`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div aria-live=polite class=${safeClassMap({
|
|
1135
|
+
return this.interactiveContainer({ disabled: this.disabled, children: html$1`${this.labelText && InternalLabel({ labelText: this.labelText, onClick: this.onLabelClick, required: this.required, tooltipText: this.messages.required }) || ""}<div aria-live=polite class=${safeClassMap({
|
|
1126
1136
|
[CSS$1.wrapper]: true,
|
|
1127
1137
|
[CSS$1.wrapperSingle]: singleSelectionMode || !this.selectedItems.length,
|
|
1128
1138
|
[CSS$1.wrapperActive]: open
|
|
1129
|
-
})} @click=${this.clickHandler} @keydown=${this.keyDownHandler} ${ref(this.setReferenceEl)}>${this.renderSelectedOrPlaceholderIcon()}${keyed("grid", html`<div class=${safeClassMap({
|
|
1139
|
+
})} @click=${this.clickHandler} @keydown=${this.keyDownHandler} ${ref$1(this.setReferenceEl)}>${this.renderSelectedOrPlaceholderIcon()}${keyed("grid", html$1`<div class=${safeClassMap({
|
|
1130
1140
|
[CSS$1.gridInput]: true,
|
|
1131
1141
|
[CSS$1.selectionDisplayFit]: fitSelectionDisplay,
|
|
1132
1142
|
[CSS$1.selectionDisplaySingle]: singleSelectionDisplay
|
|
1133
|
-
})} ${ref(this.setChipContainerEl)}>${!singleSelectionMode && !singleSelectionDisplay && this.renderChips() || ""}${!singleSelectionMode && !singleSelectionDisplay && this.selectAllEnabled && this.renderAllSelectedIndicatorChip() || ""}${!singleSelectionMode && !allSelectionDisplay && [
|
|
1143
|
+
})} ${ref$1(this.setChipContainerEl)}>${!singleSelectionMode && !singleSelectionDisplay && this.renderChips() || ""}${!singleSelectionMode && !singleSelectionDisplay && this.selectAllEnabled && this.renderAllSelectedIndicatorChip() || ""}${!singleSelectionMode && !allSelectionDisplay && [
|
|
1134
1144
|
this.renderSelectedIndicatorChip(),
|
|
1135
1145
|
this.renderSelectedIndicatorChipCompact(),
|
|
1136
1146
|
this.renderAllSelectedIndicatorChip()
|
|
@@ -68,8 +68,9 @@ export declare class ComboboxItem extends LitElement {
|
|
|
68
68
|
* It is recommended to use 5 characters or fewer.
|
|
69
69
|
*/
|
|
70
70
|
shortHeading: string;
|
|
71
|
-
/** The component's value. */
|
|
72
|
-
value: any;
|
|
71
|
+
/** The component's value. Falls back to `heading` if not provided. */
|
|
72
|
+
get value(): any;
|
|
73
|
+
set value(val: any);
|
|
73
74
|
/** Fires whenever the component is selected or unselected. */
|
|
74
75
|
readonly calciteComboboxItemChange: TargetedEvent<this, void>;
|
|
75
76
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { keyed } from "lit/directives/keyed.js";
|
|
6
6
|
import { css, html, nothing } from "lit";
|
|
@@ -56,7 +56,7 @@ class ComboboxItem extends LitElement {
|
|
|
56
56
|
this.calciteInternalComboboxItemChange = createEvent({ cancelable: false });
|
|
57
57
|
}
|
|
58
58
|
static {
|
|
59
|
-
this.properties = { hasContent: [16, {}, { state: true }], active: [7, {}, { reflect: true, type: Boolean }], ancestors: [0, {}, { attribute: false }], description: 1, disabled: [7, {}, { reflect: true, type: Boolean }], filterDisabled: [7, {}, { reflect: true, type: Boolean }], filterTextMatchPattern: [2, {}, { reflect: true, attribute: false }], guid: [3, {}, { reflect: true }], heading: 1, icon: [3, { type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], label: 1, metadata: [0, {}, { attribute: false }], scale: 1, selected: [7, {}, { reflect: true, type: Boolean }], selectionMode: [3, {}, { reflect: true }], shortHeading: 1, value:
|
|
59
|
+
this.properties = { hasContent: [16, {}, { state: true }], active: [7, {}, { reflect: true, type: Boolean }], ancestors: [0, {}, { attribute: false }], description: 1, disabled: [7, {}, { reflect: true, type: Boolean }], filterDisabled: [7, {}, { reflect: true, type: Boolean }], filterTextMatchPattern: [2, {}, { reflect: true, attribute: false }], guid: [3, {}, { reflect: true }], heading: 1, icon: [3, { type: String }, { reflect: true }], iconFlipRtl: [7, {}, { reflect: true, type: Boolean }], label: 1, metadata: [0, {}, { attribute: false }], scale: 1, selected: [7, {}, { reflect: true, type: Boolean }], selectionMode: [3, {}, { reflect: true }], shortHeading: 1, value: [3, {}, { reflect: true }], itemHidden: [7, {}, { reflect: true, type: Boolean }], indeterminate: [7, {}, { reflect: true, type: Boolean }] };
|
|
60
60
|
}
|
|
61
61
|
static {
|
|
62
62
|
this.styles = styles;
|
|
@@ -71,6 +71,12 @@ class ComboboxItem extends LitElement {
|
|
|
71
71
|
this.emitItemChange();
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
+
get value() {
|
|
75
|
+
return this._value ?? this.heading;
|
|
76
|
+
}
|
|
77
|
+
set value(val) {
|
|
78
|
+
this._value = val ?? this.heading;
|
|
79
|
+
}
|
|
74
80
|
toggleSelection() {
|
|
75
81
|
const isSinglePersistSelect = this.selectionMode === "single-persist";
|
|
76
82
|
if (this.disabled || isSinglePersistSelect && this.selected) {
|
|
@@ -115,7 +121,8 @@ class ComboboxItem extends LitElement {
|
|
|
115
121
|
const isSingleSelect = isSingleLike(this.selectionMode);
|
|
116
122
|
const icon = disabled || isSingleSelect ? void 0 : ICONS.checked;
|
|
117
123
|
const selectionIcon = isSingleSelect ? this.selected ? ICONS.selectedSingle : ICONS.circle : this.indeterminate ? ICONS.indeterminate : this.selected ? ICONS.checked : ICONS.unchecked;
|
|
118
|
-
const itemLabel = label || value;
|
|
124
|
+
const itemLabel = label || value || heading;
|
|
125
|
+
const headingText = heading || value;
|
|
119
126
|
const classes = {
|
|
120
127
|
[CSS.label]: true,
|
|
121
128
|
[CSS.active]: this.active,
|
|
@@ -128,7 +135,7 @@ class ComboboxItem extends LitElement {
|
|
|
128
135
|
[CSS.container]: true,
|
|
129
136
|
[CSS.scale(this.scale)]: true
|
|
130
137
|
})} style=${safeStyleMap({ [itemSpacingMultiplier]: `${depth}` })}><li class=${safeClassMap(classes)} id=${this.guid ?? nothing} @click=${this.itemClickHandler}>${this.renderSelectIndicator(selectionIcon)}<slot name=${SLOTS.contentStart}></slot>${this.renderIcon(icon)}<div class=${safeClassMap(CSS.centerContent)}><div class=${safeClassMap(CSS.heading)}>${highlightText({
|
|
131
|
-
text:
|
|
138
|
+
text: headingText,
|
|
132
139
|
pattern: filterTextMatchPattern
|
|
133
140
|
})}</div>${description ? html`<div class=${safeClassMap(CSS.description)}>${highlightText({
|
|
134
141
|
text: description,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { LitElement, safeClassMap, safeStyleMap, nothing } from "@arcgis/lumina";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, isServer, html } from "lit";
|
|
6
6
|
import { LitElement, createEvent, safeClassMap } from "@arcgis/lumina";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { css, html } from "lit";
|
|
6
6
|
import { LitElement, createEvent, setAttribute, safeClassMap } from "@arcgis/lumina";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { ref } from "lit/directives/ref.js";
|
|
6
6
|
import { keyed } from "lit/directives/keyed.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.27 */
|
|
4
4
|
import { c as customElement } from "../../chunks/runtime.js";
|
|
5
5
|
import { live } from "lit/directives/live.js";
|
|
6
6
|
import { h as calciteSpacingXxs, i as calciteSpacingBase, j as calciteSpacingSm } from "../../chunks/global.js";
|