@esri/calcite-components 3.0.0-next.99 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/calcite/2AP6YLXQ.js +4 -0
- package/dist/calcite/2M5DP5VS.js +4 -0
- package/dist/calcite/2MTW4RBX.js +4 -0
- package/dist/calcite/2TEERBTI.js +4 -0
- package/dist/calcite/{4TWMM7Z6.js → 3BOJE7XV.js} +4 -6
- package/dist/calcite/3EQ32UON.js +4 -0
- package/dist/calcite/3LOOBSHJ.js +4 -0
- package/dist/calcite/3LXK5OEB.js +5 -0
- package/dist/calcite/{4OYBMKUB.js → 3NJWAHVN.js} +4 -6
- package/dist/calcite/{2JRSKQML.js → 3TGA6ACB.js} +4 -6
- package/dist/calcite/3TJZ3VMN.js +4 -0
- package/dist/calcite/3U4EUW42.js +4 -0
- package/dist/calcite/45R3L3J2.js +4 -0
- package/dist/calcite/45YXH4D4.js +4 -0
- package/dist/calcite/{ZWGCNMZF.js → 46ICVIVW.js} +4 -6
- package/dist/calcite/{UZAQE6XP.js → 47FXQ37G.js} +4 -6
- package/dist/calcite/{JFBHBHJE.js → 4GUL5QXY.js} +4 -6
- package/dist/calcite/{AUEN6VFD.js → 4PKLCHA5.js} +4 -6
- package/dist/calcite/4QSXDJ3I.js +4 -0
- package/dist/calcite/{BGQR3WLU.js → 4TLHW2N3.js} +4 -6
- package/dist/calcite/{XFHDAVBK.js → 54O5ASY6.js} +4 -6
- package/dist/calcite/{FSQJ72IH.js → 57MQUGHN.js} +4 -6
- package/dist/calcite/5FYVM4AX.js +4 -0
- package/dist/calcite/5KCZZJGZ.js +4 -0
- package/dist/calcite/5OWSKBSV.js +4 -0
- package/dist/calcite/{3SE2Z2VK.js → 5X666Z33.js} +5 -7
- package/dist/calcite/5YBMD5MK.js +4 -0
- package/dist/calcite/5ZA467A4.js +4 -0
- package/dist/calcite/62M3DNDT.js +4 -0
- package/dist/calcite/{DF7SVAJW.js → 6AN3H3R6.js} +4 -6
- package/dist/calcite/{W4D5O4P2.js → 6GK2OTHZ.js} +3 -5
- package/dist/calcite/6HEZO2KI.js +4 -0
- package/dist/calcite/{BZOCG27F.js → 6KFLYQ3F.js} +4 -6
- package/dist/calcite/6OPQR7PL.js +4 -0
- package/dist/calcite/{3QV5TGZD.js → 6ZNTK2O2.js} +4 -6
- package/dist/calcite/7C3Y7SM7.js +4 -0
- package/dist/calcite/{L4IJ6KQT.js → 7C4KHH7U.js} +4 -6
- package/dist/calcite/{AASA6526.js → 7COKCZTB.js} +4 -6
- package/dist/calcite/{KA53KK35.js → 7CQS22FK.js} +3 -5
- package/dist/calcite/{2YSVELPG.js → 7NLQECEF.js} +3 -5
- package/dist/calcite/7SVWZ5TZ.js +4 -0
- package/dist/calcite/{I2N2BRJR.js → 7URHQAUN.js} +3 -5
- package/dist/calcite/ACFEDJWV.js +4 -0
- package/dist/calcite/{MNBTRJLH.js → AFJ2UDEO.js} +4 -6
- package/dist/calcite/{5MEU7SU4.js → AQANFQEK.js} +4 -6
- package/dist/calcite/{GU2SFYM4.js → AZPKU6ON.js} +4 -6
- package/dist/calcite/{SZP7YBVQ.js → B2GDIYRL.js} +4 -6
- package/dist/calcite/{26ES3CRO.js → BETB6YPW.js} +4 -6
- package/dist/calcite/BJQEZXFS.js +4 -0
- package/dist/calcite/BKB5MWFT.js +4 -0
- package/dist/calcite/BYRVP24K.js +22 -0
- package/dist/calcite/{UPY24BFQ.js → C3XHCMBP.js} +3 -5
- package/dist/calcite/C52QQAFR.js +4 -0
- package/dist/calcite/CE3TSSYN.js +4 -0
- package/dist/calcite/CHVHH4L7.js +4 -0
- package/dist/calcite/CNTBFQBL.js +4 -0
- package/dist/calcite/CPH3OCUO.js +4 -0
- package/dist/calcite/CWBUDJKG.js +4 -0
- package/dist/calcite/CWJKJUCU.js +4 -0
- package/dist/calcite/{XOA2TSHC.js → CYKAIRKP.js} +4 -6
- package/dist/calcite/D7X7U5LL.js +6 -0
- package/dist/calcite/DH73QGXJ.js +4 -0
- package/dist/calcite/{EWQKTTIO.js → DJU4LSIS.js} +4 -6
- package/dist/calcite/DNKJTXCY.js +4 -0
- package/dist/calcite/DO7AVVBP.js +4 -0
- package/dist/calcite/DVFRWPOF.js +4 -0
- package/dist/calcite/{3KND2KKH.js → DX5LTGNX.js} +4 -6
- package/dist/calcite/DYHX5C6J.js +4 -0
- package/dist/calcite/E6LODM5C.js +4 -0
- package/dist/calcite/{6LWRLBVD.js → EB432BS5.js} +4 -6
- package/dist/calcite/{ZQSF4K7D.js → EFUCITW3.js} +4 -6
- package/dist/calcite/ETK7F3KI.js +4 -0
- package/dist/calcite/{UCGUHOUO.js → EWAQVZXY.js} +4 -6
- package/dist/calcite/{O7B4THLC.js → EWBW2GOP.js} +4 -6
- package/dist/calcite/{GIRDDKPZ.js → F52GIETG.js} +4 -6
- package/dist/calcite/F6CK7P7G.js +4 -0
- package/dist/calcite/FA3DOLYY.js +4 -0
- package/dist/calcite/FBUTQVLY.js +4 -0
- package/dist/calcite/FF2SNYC6.js +4 -0
- package/dist/calcite/FGCSO5KT.js +4 -0
- package/dist/calcite/FJLPIBCZ.js +4 -0
- package/dist/calcite/{DO5AYUNU.js → FL63KFPW.js} +4 -6
- package/dist/calcite/{KHDHQPVO.js → FMALNIBL.js} +4 -6
- package/dist/calcite/{ARFAFPKS.js → FNTHRMT3.js} +4 -6
- package/dist/calcite/{KWWKG3YN.js → FOFSX3FY.js} +4 -6
- package/dist/calcite/FSQRHBBB.js +4 -0
- package/dist/calcite/FYCT4FES.js +4 -0
- package/dist/calcite/{G4Q2QH6B.js → FYUK2GME.js} +4 -6
- package/dist/calcite/G4CQ5QPF.js +4 -0
- package/dist/calcite/G5AYPPXM.js +4 -0
- package/dist/calcite/{EUXG27WD.js → GGNAK2N6.js} +4 -6
- package/dist/calcite/{57L4ZYLO.js → GKVYSG3G.js} +4 -6
- package/dist/calcite/{W3WKINVO.js → GR3JRBW6.js} +4 -6
- package/dist/calcite/GS4K4IEJ.js +4 -0
- package/dist/calcite/{EBQYJBDQ.js → GZBMMB2V.js} +4 -6
- package/dist/calcite/HD2NABQD.js +4 -0
- package/dist/calcite/{P64WY2HI.js → HEVM6SRJ.js} +4 -6
- package/dist/calcite/HMZA4X6S.js +4 -0
- package/dist/calcite/HPFCIR5F.js +4 -0
- package/dist/calcite/HRDRO2MA.js +4 -0
- package/dist/calcite/I54F3V4F.js +4 -0
- package/dist/calcite/{BNYX7IBO.js → IBLJGOPM.js} +4 -6
- package/dist/calcite/IGQGPBGN.js +4 -0
- package/dist/calcite/{QLJX2F4K.js → IITTEDPS.js} +4 -6
- package/dist/calcite/IJOUQRZG.js +4 -0
- package/dist/calcite/IKHZ7MAG.js +4 -0
- package/dist/calcite/{SYOTV4D4.js → J3ZEXA7Z.js} +4 -6
- package/dist/calcite/{OMBBOPRI.js → J6ES4ZTD.js} +4 -6
- package/dist/calcite/J6V2OKQD.js +4 -0
- package/dist/calcite/JHWO2CVD.js +4 -0
- package/dist/calcite/JUW7VCPP.js +4 -0
- package/dist/calcite/KAZVOPHR.js +4 -0
- package/dist/calcite/{3ATQZBKY.js → KCA2V6ZH.js} +4 -6
- package/dist/calcite/{QNGBOTGF.js → KJYAPBB2.js} +4 -6
- package/dist/calcite/KLG62CS4.js +4 -0
- package/dist/calcite/{SFWNFANJ.js → KOPH76Z4.js} +4 -6
- package/dist/calcite/KP4G4VQ3.js +4 -0
- package/dist/calcite/{ELXZUEDC.js → KPJGFWME.js} +4 -6
- package/dist/calcite/KPP5CUG6.js +4 -0
- package/dist/calcite/{3RLXG3NR.js → KT3W2WN7.js} +4 -6
- package/dist/calcite/{AGLAEQKV.js → KW4WGJWX.js} +4 -6
- package/dist/calcite/{B77QRUX7.js → LAE3F72I.js} +4 -6
- package/dist/calcite/LDJND26G.js +4 -0
- package/dist/calcite/LWAXFXVK.js +4 -0
- package/dist/calcite/LWKIGIQ7.js +4 -0
- package/dist/calcite/M5RSVI77.js +4 -0
- package/dist/calcite/{4JU7BKXB.js → M6GGWFWP.js} +4 -6
- package/dist/calcite/{QBG5T6W3.js → MCYHITP5.js} +4 -6
- package/dist/calcite/{J7RY7DXT.js → MCZED6UJ.js} +3 -5
- package/dist/calcite/MD4KKJXR.js +4 -0
- package/dist/calcite/{G75XVKLZ.js → MFGDUWWU.js} +4 -6
- package/dist/calcite/MGC5QBVT.js +4 -0
- package/dist/calcite/MKMTLSBP.js +4 -0
- package/dist/calcite/{QFH3VN2R.js → MRRSD5GQ.js} +4 -6
- package/dist/calcite/{Y5IWWVKB.js → MUYFLMXN.js} +4 -6
- package/dist/calcite/{XR2WLB7D.js → MVBR6FNF.js} +3 -5
- package/dist/calcite/MYXXA6E5.js +4 -0
- package/dist/calcite/{AFH6KP7M.js → N2AFATQQ.js} +4 -6
- package/dist/calcite/N2Q46D75.js +4 -0
- package/dist/calcite/NBX4LUWL.js +4 -0
- package/dist/calcite/NLK3OCCK.js +4 -0
- package/dist/calcite/{3Z3RDAUW.js → NPTN6OGZ.js} +4 -6
- package/dist/calcite/{Z2ZTWA3F.js → NQPJICFQ.js} +3 -5
- package/dist/calcite/{FMI6FJW4.js → NWTXX6JY.js} +4 -6
- package/dist/calcite/{WIGL5RKK.js → O627WVJG.js} +4 -6
- package/dist/calcite/{CM4U5UKC.js → O6BU5DYY.js} +4 -6
- package/dist/calcite/OAD7JJOE.js +4 -0
- package/dist/calcite/{6FI3WN2Y.js → OEK7OZTX.js} +4 -6
- package/dist/calcite/OENBCW7D.js +4 -0
- package/dist/calcite/OLP7ABVK.js +4 -0
- package/dist/calcite/OOHSVUO2.js +4 -0
- package/dist/calcite/OOWC3DHW.js +4 -0
- package/dist/calcite/OREMH3DL.js +4 -0
- package/dist/calcite/OUKBJ6J3.js +4 -0
- package/dist/calcite/PA6PSCEP.js +4 -0
- package/dist/calcite/{KMLCSDZJ.js → PFRWMYU6.js} +4 -6
- package/dist/calcite/PPMXW2CH.js +4 -0
- package/dist/calcite/{3LYDW23E.js → PU7HI4RM.js} +4 -6
- package/dist/calcite/{6YQ42X6L.js → PV7FS57L.js} +4 -6
- package/dist/calcite/PYT6F7XN.js +4 -0
- package/dist/calcite/QGSMNFLV.js +4 -0
- package/dist/calcite/{N7NWH5SX.js → QLL7IT53.js} +3 -5
- package/dist/calcite/{CTQ5YHOP.js → QV6PXGLB.js} +4 -6
- package/dist/calcite/{ESS6BUTG.js → QZ4S4NPD.js} +4 -6
- package/dist/calcite/{VFBPWVKE.js → R5GIKUFX.js} +4 -6
- package/dist/calcite/{XEW3B3B5.js → RD2YKJMP.js} +4 -6
- package/dist/calcite/{6EFD6XES.js → RI6ANEBM.js} +4 -6
- package/dist/calcite/RIXZG4AD.js +4 -0
- package/dist/calcite/RIYYUHQ7.js +4 -0
- package/dist/calcite/RRNZ4FU5.js +4 -0
- package/dist/calcite/{S6AE7RHT.js → RRPMD5OW.js} +4 -6
- package/dist/calcite/RSI5VQHT.js +4 -0
- package/dist/calcite/RYQPXZK6.js +4 -0
- package/dist/calcite/S3TERCKZ.js +4 -0
- package/dist/calcite/{7NVGCG7Q.js → S6DJKPG5.js} +3 -5
- package/dist/calcite/{3JQJ24PZ.js → S6SBHJIV.js} +4 -6
- package/dist/calcite/SM6GCEH6.js +4 -0
- package/dist/calcite/STCRUA4G.js +4 -0
- package/dist/calcite/{G27BUJJG.js → SVTZCS25.js} +3 -5
- package/dist/calcite/T246IHBX.js +4 -0
- package/dist/calcite/T5I34CKY.js +4 -0
- package/dist/calcite/{2UYJUU43.js → TC73OO6B.js} +4 -6
- package/dist/calcite/{3PJ42556.js → TFRMRELY.js} +4 -6
- package/dist/calcite/TTARWRVZ.js +4 -0
- package/dist/calcite/TTPB5NUF.js +4 -0
- package/dist/calcite/{5LAQP62T.js → TV2JMAEX.js} +4 -6
- package/dist/calcite/{PB4E6L52.js → U3A4ZFDA.js} +4 -6
- package/dist/calcite/{LQ5ITYNE.js → U3J436K5.js} +4 -6
- package/dist/calcite/{KBVTFWRR.js → U4KFLUXN.js} +4 -6
- package/dist/calcite/U5LWIQFM.js +4 -0
- package/dist/calcite/UAPP5RN3.js +4 -0
- package/dist/calcite/{MYJH43DB.js → UJ2DNCBI.js} +4 -6
- package/dist/calcite/UVQWXGAE.js +4 -0
- package/dist/calcite/{UFV4E5V5.js → V7P5NO5D.js} +4 -6
- package/dist/calcite/VGKMOO66.js +4 -0
- package/dist/calcite/VIVZTWDT.js +4 -0
- package/dist/calcite/VLUVMJLJ.js +4 -0
- package/dist/calcite/VPCQX3JS.js +4 -0
- package/dist/calcite/VQZMYHUR.js +4 -0
- package/dist/calcite/{JLIVSPKC.js → VRJOLF5U.js} +4 -6
- package/dist/calcite/VSACPVTO.js +4 -0
- package/dist/calcite/{VP4IW6MN.js → VSVGJIKO.js} +4 -6
- package/dist/calcite/{LR6EXHT2.js → W2IMTPXZ.js} +4 -6
- package/dist/calcite/{K3F2CI4A.js → W35EGCBV.js} +4 -6
- package/dist/calcite/{VM4VUQ54.js → W7BTFAAV.js} +4 -6
- package/dist/calcite/{RWW7CETF.js → WB2APVPE.js} +4 -6
- package/dist/calcite/WODNJF5Z.js +4 -0
- package/dist/calcite/{MRVEUN2O.js → X6EDNQN2.js} +4 -6
- package/dist/calcite/X7JJZRMI.js +4 -0
- package/dist/calcite/{OU4N4K2U.js → XDEHQTPQ.js} +4 -6
- package/dist/calcite/XFRASDZI.js +4 -0
- package/dist/calcite/XK4FISIX.js +4 -0
- package/dist/calcite/{XFKIMAJU.js → XL665FTR.js} +4 -6
- package/dist/calcite/XPMURWBT.js +4 -0
- package/dist/calcite/XUCTBMBM.js +4 -0
- package/dist/calcite/Y3MFFLOP.js +4 -0
- package/dist/calcite/YHIHWSGP.js +4 -0
- package/dist/calcite/YJWS4TZW.js +4 -0
- package/dist/calcite/YUYVD6B5.js +4 -0
- package/dist/calcite/YW6YWFXE.js +4 -0
- package/dist/calcite/YW7G4LA7.js +4 -0
- package/dist/calcite/YXYKAROM.js +4 -0
- package/dist/calcite/{O2KBYT33.js → Z7RQIFXO.js} +4 -6
- package/dist/calcite/ZYBMEVEB.js +4 -0
- package/dist/calcite/assets/icon/crosshair16.json +1 -0
- package/dist/calcite/assets/icon/crosshair24.json +1 -0
- package/dist/calcite/assets/icon/crosshair32.json +1 -0
- package/dist/calcite/assets/icon/dualImageArea16.json +1 -0
- package/dist/calcite/assets/icon/dualImageArea24.json +1 -0
- package/dist/calcite/assets/icon/dualImageArea32.json +1 -0
- package/dist/calcite/assets/icon/dualImageDistance16.json +1 -0
- package/dist/calcite/assets/icon/dualImageDistance24.json +1 -0
- package/dist/calcite/assets/icon/dualImageDistance32.json +1 -0
- package/dist/calcite/assets/icon/dualImageLocation16.json +1 -0
- package/dist/calcite/assets/icon/dualImageLocation24.json +1 -0
- package/dist/calcite/assets/icon/dualImageLocation32.json +1 -0
- package/dist/calcite/assets/icon/hammerCoin16.json +1 -0
- package/dist/calcite/assets/icon/hammerCoin24.json +1 -0
- package/dist/calcite/assets/icon/hammerCoin32.json +1 -0
- package/dist/calcite/assets/icon/hammerLock16.json +1 -0
- package/dist/calcite/assets/icon/hammerLock24.json +1 -0
- package/dist/calcite/assets/icon/hammerLock32.json +1 -0
- package/dist/calcite/assets/icon/utilityNetworkLayer16.json +1 -0
- package/dist/calcite/assets/icon/utilityNetworkLayer24.json +1 -0
- package/dist/calcite/assets/icon/utilityNetworkLayer32.json +1 -0
- package/dist/calcite/calcite.css +1 -1
- package/dist/calcite/calcite.esm.js +4 -6
- package/dist/chunks/ExpandToggle.js +3 -5
- package/dist/chunks/FloatingArrow.js +6 -8
- package/dist/chunks/Heading.js +3 -5
- package/dist/chunks/Validation.js +3 -5
- package/dist/chunks/_commonjsHelpers.js +3 -5
- package/dist/chunks/array.js +3 -5
- package/dist/chunks/component.js +13 -11
- package/dist/chunks/core.js +3 -5
- package/dist/chunks/date.js +3 -5
- package/dist/chunks/dom.js +218 -234
- package/dist/chunks/dynamicClasses.js +3 -5
- package/dist/chunks/filter.js +3 -5
- package/dist/chunks/floating-ui.js +61 -65
- package/dist/chunks/focusTrapComponent.js +25 -30
- package/dist/chunks/form.js +19 -21
- package/dist/chunks/global.js +14 -14
- package/dist/chunks/guid.js +3 -5
- package/dist/chunks/input.js +3 -5
- package/dist/chunks/interact.min.js +3 -5
- package/dist/chunks/interactive.js +3 -5
- package/dist/chunks/key.js +3 -5
- package/dist/chunks/label.js +7 -9
- package/dist/chunks/loadable.js +11 -22
- package/dist/chunks/locale.js +3 -5
- package/dist/chunks/logger.js +3 -5
- package/dist/chunks/math.js +3 -5
- package/dist/chunks/observers.js +3 -5
- package/dist/chunks/openCloseComponent.js +5 -7
- package/dist/chunks/resources.js +3 -5
- package/dist/chunks/resources2.js +3 -5
- package/dist/chunks/resources3.js +8 -14
- package/dist/chunks/resources4.js +3 -5
- package/dist/chunks/resources5.js +3 -5
- package/dist/chunks/resources6.js +3 -5
- package/dist/chunks/resources7.js +3 -5
- package/dist/chunks/responsive.js +9 -12
- package/dist/chunks/runtime.js +39 -43
- package/dist/chunks/sortableComponent.js +49 -39
- package/dist/chunks/text.js +3 -5
- package/dist/chunks/time.js +12 -14
- package/dist/chunks/useFocusTrap.js +47 -0
- package/dist/chunks/useT9n.js +3 -5
- package/dist/chunks/utils.js +19 -17
- package/dist/chunks/utils2.js +3 -5
- package/dist/chunks/utils3.js +15 -16
- package/dist/chunks/utils4.js +264 -271
- package/dist/components/calcite-accordion/customElement.js +3 -5
- package/dist/components/calcite-accordion-item/customElement.js +10 -14
- package/dist/components/calcite-action/customElement.js +38 -42
- package/dist/components/calcite-action-bar/customElement.js +24 -27
- package/dist/components/calcite-action-group/customElement.js +20 -24
- package/dist/components/calcite-action-menu/customElement.js +14 -18
- package/dist/components/calcite-action-pad/customElement.js +21 -25
- package/dist/components/calcite-alert/customElement.js +50 -63
- package/dist/components/calcite-autocomplete/customElement.d.ts +10 -4
- package/dist/components/calcite-autocomplete/customElement.js +50 -52
- package/dist/components/calcite-autocomplete-item/customElement.js +17 -21
- package/dist/components/calcite-autocomplete-item-group/customElement.js +3 -5
- package/dist/components/calcite-avatar/customElement.js +8 -10
- package/dist/components/calcite-block/customElement.d.ts +18 -1
- package/dist/components/calcite-block/customElement.js +54 -40
- package/dist/components/calcite-block/index.d.ts +1 -1
- package/dist/components/calcite-block/index.js +1 -1
- package/dist/components/calcite-block/utils.d.ts +2 -0
- package/dist/components/calcite-block-group/customElement.d.ts +50 -0
- package/dist/components/calcite-block-group/customElement.js +177 -0
- package/dist/components/calcite-block-group/index.d.ts +2 -0
- package/dist/components/calcite-block-group/index.js +2 -0
- package/dist/components/calcite-block-group/interfaces.d.ts +14 -0
- package/dist/components/calcite-block-group/resources.d.ts +8 -0
- package/dist/components/calcite-block-group/utils.d.ts +1 -0
- package/dist/components/calcite-block-section/customElement.js +19 -23
- package/dist/components/calcite-button/customElement.js +28 -30
- package/dist/components/calcite-card/customElement.js +17 -23
- package/dist/components/calcite-card-group/customElement.js +15 -18
- package/dist/components/calcite-carousel/customElement.js +29 -32
- package/dist/components/calcite-carousel-item/customElement.js +3 -5
- package/dist/components/calcite-checkbox/customElement.d.ts +4 -1
- package/dist/components/calcite-checkbox/customElement.js +18 -22
- package/dist/components/calcite-chip/customElement.js +42 -44
- package/dist/components/calcite-chip-group/customElement.js +10 -14
- package/dist/components/calcite-color-picker/customElement.d.ts +1 -1
- package/dist/components/calcite-color-picker/customElement.js +200 -178
- package/dist/components/calcite-color-picker/resources.d.ts +7 -16
- package/dist/components/calcite-color-picker/utils.d.ts +4 -3
- package/dist/components/calcite-color-picker-hex-input/customElement.js +27 -31
- package/dist/components/calcite-color-picker-swatch/customElement.js +3 -5
- package/dist/components/calcite-combobox/customElement.d.ts +5 -3
- package/dist/components/calcite-combobox/customElement.js +166 -160
- package/dist/components/calcite-combobox/resources.d.ts +1 -0
- package/dist/components/calcite-combobox-item/customElement.d.ts +2 -1
- package/dist/components/calcite-combobox-item/customElement.js +47 -38
- package/dist/components/calcite-combobox-item-group/customElement.js +13 -15
- package/dist/components/calcite-date-picker/customElement.d.ts +8 -2
- package/dist/components/calcite-date-picker/customElement.js +28 -31
- package/dist/components/calcite-date-picker-day/customElement.js +16 -19
- package/dist/components/calcite-date-picker-month/customElement.js +39 -41
- package/dist/components/calcite-date-picker-month-header/customElement.js +40 -44
- package/dist/components/calcite-dialog/customElement.d.ts +20 -4
- package/dist/components/calcite-dialog/customElement.js +78 -72
- package/dist/components/calcite-dialog/resources.d.ts +1 -0
- package/dist/components/calcite-dropdown/customElement.d.ts +1 -1
- package/dist/components/calcite-dropdown/customElement.js +63 -70
- package/dist/components/calcite-dropdown/resources.d.ts +1 -0
- package/dist/components/calcite-dropdown-group/customElement.js +4 -6
- package/dist/components/calcite-dropdown-item/customElement.js +20 -23
- package/dist/components/calcite-fab/customElement.js +19 -23
- package/dist/components/calcite-filter/customElement.js +20 -25
- package/dist/components/calcite-flow/customElement.js +19 -22
- package/dist/components/calcite-flow-item/customElement.js +26 -30
- package/dist/components/calcite-graph/customElement.js +52 -50
- package/dist/components/calcite-graph/interfaces.d.ts +1 -5
- package/dist/components/calcite-graph/resources.d.ts +5 -0
- package/dist/components/calcite-handle/customElement.d.ts +3 -0
- package/dist/components/calcite-handle/customElement.js +20 -18
- package/dist/components/calcite-icon/customElement.js +23 -25
- package/dist/components/calcite-inline-editable/customElement.js +25 -29
- package/dist/components/calcite-input/customElement.d.ts +14 -6
- package/dist/components/calcite-input/customElement.js +26 -29
- package/dist/components/calcite-input-date-picker/customElement.d.ts +12 -3
- package/dist/components/calcite-input-date-picker/customElement.js +84 -88
- package/dist/components/calcite-input-message/customElement.js +3 -5
- package/dist/components/calcite-input-number/customElement.d.ts +12 -5
- package/dist/components/calcite-input-number/customElement.js +30 -36
- package/dist/components/calcite-input-text/customElement.d.ts +10 -4
- package/dist/components/calcite-input-text/customElement.js +61 -65
- package/dist/components/calcite-input-time-picker/customElement.d.ts +8 -3
- package/dist/components/calcite-input-time-picker/customElement.js +45 -47
- package/dist/components/calcite-input-time-zone/customElement.js +53 -55
- package/dist/components/calcite-label/customElement.js +3 -5
- package/dist/components/calcite-link/customElement.js +10 -14
- package/dist/components/calcite-list/customElement.js +67 -70
- package/dist/components/calcite-list-item/customElement.js +54 -73
- package/dist/components/calcite-list-item/utils.d.ts +1 -0
- package/dist/components/calcite-list-item-group/customElement.js +3 -5
- package/dist/components/calcite-loader/customElement.d.ts +2 -2
- package/dist/components/calcite-loader/customElement.js +3 -7
- package/dist/components/calcite-menu/customElement.js +12 -16
- package/dist/components/calcite-menu-item/customElement.js +12 -16
- package/dist/components/calcite-meter/customElement.js +26 -28
- package/dist/components/calcite-modal/customElement.d.ts +16 -3
- package/dist/components/calcite-modal/customElement.js +61 -61
- package/dist/components/calcite-navigation/customElement.js +17 -21
- package/dist/components/calcite-navigation-logo/customElement.js +12 -16
- package/dist/components/calcite-navigation-user/customElement.js +10 -14
- package/dist/components/calcite-notice/customElement.js +25 -28
- package/dist/components/calcite-option/customElement.js +3 -5
- package/dist/components/calcite-option-group/customElement.js +3 -5
- package/dist/components/calcite-pagination/customElement.js +15 -17
- package/dist/components/calcite-panel/customElement.js +45 -48
- package/dist/components/calcite-popover/customElement.d.ts +10 -7
- package/dist/components/calcite-popover/customElement.js +70 -79
- package/dist/components/calcite-progress/customElement.js +3 -5
- package/dist/components/calcite-radio-button/customElement.d.ts +4 -1
- package/dist/components/calcite-radio-button/customElement.js +17 -20
- package/dist/components/calcite-radio-button-group/customElement.d.ts +4 -1
- package/dist/components/calcite-radio-button-group/customElement.js +14 -17
- package/dist/components/calcite-rating/customElement.js +21 -23
- package/dist/components/calcite-scrim/customElement.js +3 -5
- package/dist/components/calcite-segmented-control/customElement.d.ts +4 -1
- package/dist/components/calcite-segmented-control/customElement.js +14 -17
- package/dist/components/calcite-segmented-control-item/customElement.js +28 -30
- package/dist/components/calcite-select/customElement.d.ts +4 -1
- package/dist/components/calcite-select/customElement.js +19 -22
- package/dist/components/calcite-sheet/customElement.d.ts +17 -3
- package/dist/components/calcite-sheet/customElement.js +59 -62
- package/dist/components/calcite-shell/customElement.js +3 -6
- package/dist/components/calcite-shell-center-row/customElement.js +3 -5
- package/dist/components/calcite-shell-panel/customElement.js +16 -20
- package/dist/components/calcite-slider/customElement.d.ts +4 -1
- package/dist/components/calcite-slider/customElement.js +18 -21
- package/dist/components/calcite-sort-handle/customElement.js +45 -35
- package/dist/components/calcite-sort-handle/index.d.ts +1 -1
- package/dist/components/calcite-sort-handle/index.js +1 -1
- package/dist/components/calcite-sortable-list/customElement.d.ts +4 -1
- package/dist/components/calcite-sortable-list/customElement.js +21 -16
- package/dist/components/calcite-split-button/customElement.js +13 -20
- package/dist/components/calcite-stack/customElement.js +4 -6
- package/dist/components/calcite-stepper/customElement.js +36 -39
- package/dist/components/calcite-stepper-item/customElement.js +23 -22
- package/dist/components/calcite-switch/customElement.js +10 -14
- package/dist/components/calcite-tab/customElement.js +3 -5
- package/dist/components/calcite-tab-nav/customElement.js +3 -5
- package/dist/components/calcite-tab-title/customElement.js +3 -5
- package/dist/components/calcite-table/customElement.js +44 -47
- package/dist/components/calcite-table-cell/customElement.js +22 -25
- package/dist/components/calcite-table-header/customElement.js +18 -21
- package/dist/components/calcite-table-row/customElement.js +6 -8
- package/dist/components/calcite-tabs/customElement.js +3 -5
- package/dist/components/calcite-text-area/customElement.d.ts +10 -3
- package/dist/components/calcite-text-area/customElement.js +30 -37
- package/dist/components/calcite-tile/customElement.js +16 -20
- package/dist/components/calcite-tile-group/customElement.js +3 -5
- package/dist/components/calcite-tile-select/customElement.js +17 -22
- package/dist/components/calcite-tile-select-group/customElement.js +3 -5
- package/dist/components/calcite-time-picker/customElement.d.ts +1 -0
- package/dist/components/calcite-time-picker/customElement.js +19 -23
- package/dist/components/calcite-tip/customElement.js +3 -5
- package/dist/components/calcite-tip-group/customElement.js +3 -5
- package/dist/components/calcite-tip-manager/customElement.js +3 -5
- package/dist/components/calcite-tooltip/customElement.js +41 -40
- package/dist/components/calcite-tree/customElement.js +3 -5
- package/dist/components/calcite-tree-item/customElement.js +16 -14
- package/dist/components/interfaces.d.ts +4 -0
- package/dist/controllers/useFocusTrap.d.ts +71 -0
- package/dist/custom-theme/block.d.ts +4 -5
- package/dist/custom-theme/calcite-shell-panel.d.ts +13 -0
- package/dist/custom-theme/date-picker.d.ts +28 -0
- package/dist/custom-theme/flow.d.ts +21 -0
- package/dist/custom-theme/graph.d.ts +4 -0
- package/dist/custom-theme/inline-editable.d.ts +10 -0
- package/dist/custom-theme/segmented-control.d.ts +7 -0
- package/dist/docs/api.json +1152 -170
- package/dist/docs/docs.json +1102 -135
- package/dist/docs/supported-browsers.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +322 -14
- package/dist/docs/vscode.html-custom-data.json +110 -63
- package/dist/docs/web-types.json +671 -131
- package/dist/extras/vscode-data.json +110 -63
- package/dist/index.d.ts +25 -0
- package/dist/index.js +3 -5
- package/dist/loader.js +16 -17
- package/dist/types/lumina.d.ts +18 -6
- package/dist/types/preact.d.ts +19 -6
- package/dist/types/react.d.ts +180 -165
- package/dist/types/stencil.d.ts +18 -6
- package/dist/utils/component.d.ts +4 -0
- package/dist/utils/focusTrapComponent.d.ts +9 -0
- package/dist/utils/loadable.d.ts +26 -43
- package/dist/utils/openCloseComponent.d.ts +17 -18
- package/hydrate/index.d.ts +1 -0
- package/hydrate/index.js +1 -0
- package/hydrate/index.mjs +1 -0
- package/package.json +11 -12
- package/readme.md +5 -69
- package/dist/calcite/2AZY343I.js +0 -6
- package/dist/calcite/2CPZ6K5L.js +0 -6
- package/dist/calcite/2M35C4DF.js +0 -6
- package/dist/calcite/2VVNNU7Q.js +0 -6
- package/dist/calcite/2XACBT2N.js +0 -6
- package/dist/calcite/32P7BAVF.js +0 -6
- package/dist/calcite/3HC2LTHR.js +0 -6
- package/dist/calcite/455MOJA6.js +0 -6
- package/dist/calcite/4DVWRXRA.js +0 -6
- package/dist/calcite/4TF5UO7R.js +0 -6
- package/dist/calcite/572RARTY.js +0 -6
- package/dist/calcite/5I36CFLM.js +0 -6
- package/dist/calcite/5OJMVZTI.js +0 -6
- package/dist/calcite/5YZTHYBK.js +0 -6
- package/dist/calcite/6L5EBECQ.js +0 -6
- package/dist/calcite/73JK3C3F.js +0 -6
- package/dist/calcite/7557S5FH.js +0 -6
- package/dist/calcite/7FJOFJBG.js +0 -6
- package/dist/calcite/7KUN772K.js +0 -6
- package/dist/calcite/7LABYE24.js +0 -6
- package/dist/calcite/7NPWRWEK.js +0 -6
- package/dist/calcite/7PQTHMQD.js +0 -6
- package/dist/calcite/AEIISXUM.js +0 -6
- package/dist/calcite/AT2QAEKC.js +0 -6
- package/dist/calcite/BHLCJMB4.js +0 -6
- package/dist/calcite/BOMPAJVU.js +0 -6
- package/dist/calcite/BYURAML5.js +0 -6
- package/dist/calcite/CRBGPV2Y.js +0 -6
- package/dist/calcite/CY2QE4I2.js +0 -6
- package/dist/calcite/D26RI2OE.js +0 -6
- package/dist/calcite/DCAWR655.js +0 -6
- package/dist/calcite/DSYDJ57C.js +0 -6
- package/dist/calcite/E2PVAX5K.js +0 -6
- package/dist/calcite/EH7S4XKL.js +0 -6
- package/dist/calcite/FGCHRTFU.js +0 -6
- package/dist/calcite/FIJQNNLL.js +0 -6
- package/dist/calcite/FIVGOTUL.js +0 -6
- package/dist/calcite/FPZSDG22.js +0 -6
- package/dist/calcite/FQJWCM6B.js +0 -6
- package/dist/calcite/FRK56FXW.js +0 -6
- package/dist/calcite/FSORFWYW.js +0 -6
- package/dist/calcite/FWSMKN2T.js +0 -6
- package/dist/calcite/GGQW5H6B.js +0 -6
- package/dist/calcite/GHY53YEU.js +0 -6
- package/dist/calcite/GWGCBSIN.js +0 -6
- package/dist/calcite/HH5FL6GD.js +0 -6
- package/dist/calcite/HNNE5R46.js +0 -6
- package/dist/calcite/HRVN7KZA.js +0 -6
- package/dist/calcite/I3TEC7IS.js +0 -6
- package/dist/calcite/I5SQS3SN.js +0 -6
- package/dist/calcite/I74ZLJFG.js +0 -6
- package/dist/calcite/I7SBXLRM.js +0 -6
- package/dist/calcite/IEJMBPJU.js +0 -6
- package/dist/calcite/IK3QCAZN.js +0 -6
- package/dist/calcite/IKOOMPAX.js +0 -6
- package/dist/calcite/IPDH2LDG.js +0 -6
- package/dist/calcite/IUBUCDD6.js +0 -6
- package/dist/calcite/JCMCWR7J.js +0 -6
- package/dist/calcite/JHGP2C56.js +0 -6
- package/dist/calcite/JMNIVK3R.js +0 -6
- package/dist/calcite/KDCUMRGX.js +0 -6
- package/dist/calcite/KEFBUO23.js +0 -6
- package/dist/calcite/KHNXDA3R.js +0 -6
- package/dist/calcite/KLEV3IGL.js +0 -6
- package/dist/calcite/LIT6HBCV.js +0 -6
- package/dist/calcite/LKXA7MRG.js +0 -6
- package/dist/calcite/LMTPIXJD.js +0 -6
- package/dist/calcite/M3MFRN64.js +0 -6
- package/dist/calcite/M5MPF4VA.js +0 -6
- package/dist/calcite/MWGGE65N.js +0 -6
- package/dist/calcite/MXNAKF47.js +0 -6
- package/dist/calcite/NNKZWGGT.js +0 -6
- package/dist/calcite/NVQN43XK.js +0 -6
- package/dist/calcite/OHLVZUJX.js +0 -6
- package/dist/calcite/OHR7IMVY.js +0 -6
- package/dist/calcite/OJ5D52RG.js +0 -6
- package/dist/calcite/OJ5H4H4N.js +0 -6
- package/dist/calcite/OTT2SAVW.js +0 -6
- package/dist/calcite/OTYNRKUI.js +0 -6
- package/dist/calcite/PO4EKM6H.js +0 -6
- package/dist/calcite/PPU55N5C.js +0 -6
- package/dist/calcite/PRGXXMHF.js +0 -6
- package/dist/calcite/PZ34QZ44.js +0 -6
- package/dist/calcite/PZ65523C.js +0 -6
- package/dist/calcite/PZGFP3J5.js +0 -6
- package/dist/calcite/Q2OAKI4L.js +0 -7
- package/dist/calcite/QIOSM7C2.js +0 -6
- package/dist/calcite/QS2B427U.js +0 -6
- package/dist/calcite/QVG465DZ.js +0 -6
- package/dist/calcite/RJU34JMH.js +0 -6
- package/dist/calcite/RL6ENWBS.js +0 -6
- package/dist/calcite/RWRTOY74.js +0 -6
- package/dist/calcite/S66ATD4V.js +0 -6
- package/dist/calcite/SHIZHTEP.js +0 -6
- package/dist/calcite/SY776R43.js +0 -6
- package/dist/calcite/T2M3KJPZ.js +0 -6
- package/dist/calcite/T7AHSVKE.js +0 -6
- package/dist/calcite/TBZM4XEW.js +0 -6
- package/dist/calcite/THTH4FYX.js +0 -6
- package/dist/calcite/TI4ZYY5Y.js +0 -6
- package/dist/calcite/TKE6VYZT.js +0 -6
- package/dist/calcite/TR3TLSTJ.js +0 -6
- package/dist/calcite/TSUCKRY4.js +0 -6
- package/dist/calcite/TWZNPBFB.js +0 -6
- package/dist/calcite/U5AZRHO7.js +0 -6
- package/dist/calcite/UE43U5QZ.js +0 -6
- package/dist/calcite/UHCCT74Q.js +0 -6
- package/dist/calcite/USP47AIY.js +0 -6
- package/dist/calcite/V3ZZW4SK.js +0 -6
- package/dist/calcite/WBOLRFTK.js +0 -6
- package/dist/calcite/WH3NETOG.js +0 -6
- package/dist/calcite/WHD4MFC3.js +0 -6
- package/dist/calcite/WJ6LOMWZ.js +0 -6
- package/dist/calcite/WKI76QXV.js +0 -6
- package/dist/calcite/WRQMW4QF.js +0 -24
- package/dist/calcite/X4RLJXN2.js +0 -6
- package/dist/calcite/XDGCDDNX.js +0 -8
- package/dist/calcite/XL6QBGWC.js +0 -6
- package/dist/calcite/XVBU5M6P.js +0 -6
- package/dist/calcite/Z4XCJ5VE.js +0 -6
- package/dist/calcite/ZQERQE2F.js +0 -6
- package/dist/calcite/ZYUUIPOD.js +0 -6
|
@@ -1,25 +1,22 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { ref as
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { i as
|
|
5
|
-
import { html as
|
|
6
|
-
import { LitElement as
|
|
7
|
-
import { h as
|
|
8
|
-
import {
|
|
9
|
-
import { c as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { u as
|
|
15
|
-
import { css as
|
|
16
|
-
/*!
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* v3.0.0-next.99
|
|
20
|
-
*/
|
|
1
|
+
import { C as E, c as O } from "../../chunks/runtime.js";
|
|
2
|
+
import { ref as k } from "lit-html/directives/ref.js";
|
|
3
|
+
import { keyed as I } from "lit-html/directives/keyed.js";
|
|
4
|
+
import { i as S } from "../../chunks/interact.min.js";
|
|
5
|
+
import { html as y } from "lit";
|
|
6
|
+
import { LitElement as D, createEvent as g, setAttribute as B, safeClassMap as p } from "@arcgis/lumina";
|
|
7
|
+
import { h as T, g as w, m, o as $ } from "../../chunks/dom.js";
|
|
8
|
+
import { c as H } from "../../chunks/loadable.js";
|
|
9
|
+
import { c as M } from "../../chunks/observers.js";
|
|
10
|
+
import { o as R } from "../../chunks/openCloseComponent.js";
|
|
11
|
+
import { g as C } from "../../chunks/dynamicClasses.js";
|
|
12
|
+
import { c as V } from "../../chunks/math.js";
|
|
13
|
+
import { u as A } from "../../chunks/useT9n.js";
|
|
14
|
+
import { u as L } from "../../chunks/useFocusTrap.js";
|
|
15
|
+
import { css as P } from "@lit/reactive-element/css-tag.js";
|
|
16
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
17
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
18
|
+
v3.0.1 */
|
|
21
19
|
const l = {
|
|
22
|
-
assistiveText: "assistive-text",
|
|
23
20
|
scrim: "scrim",
|
|
24
21
|
container: "container",
|
|
25
22
|
containerOpen: "container--open",
|
|
@@ -27,32 +24,38 @@ const l = {
|
|
|
27
24
|
contentContainer: "content-container",
|
|
28
25
|
containerEmbedded: "container--embedded",
|
|
29
26
|
resizeHandle: "resize-handle",
|
|
30
|
-
resizeHandleBar: "resize-handle-bar"
|
|
31
|
-
height: "height"
|
|
32
|
-
}, q = 10, N = 25, W = j`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;visibility:hidden!important;--calcite-sheet-scrim-background-internal: rgba(0, 0, 0, .85);--calcite-scrim-shadow-block-start-internal: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-block-end-internal: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-start-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}.calcite--rtl{--calcite-scrim-shadow-inline-start-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.container{visibility:hidden;position:fixed;z-index:var(--calcite-z-index-overlay);box-sizing:border-box;display:flex;color:var(--calcite-color-text-2);opacity:0;transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88)}:host([position=inline-start]) .container{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal: translate3d(-1rem, 0, 0)}:host([position=inline-end]) .container{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal: translate3d(1rem, 0, 0)}:host([position=block-start]) .container{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, -1rem, 0)}:host([position=block-end]) .container{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, 1rem, 0)}:host([display-mode=float]) .content{--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([display-mode=overlay][position=inline-start]) .container{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}:host([display-mode=overlay][position=inline-end]) .container{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}:host([display-mode=overlay][position=block-start]) .container{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}:host([display-mode=overlay][position=block-end]) .container{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}:host([position^=inline]) .content{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}:host([position^=block]) .content{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}:host([position^=inline]) .width-s{--calcite-sheet-width-internal: var(--calcite-sheet-width, 15vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 360px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 260px)}:host([position^=inline]) .width-m{--calcite-sheet-width-internal: var(--calcite-sheet-width, 25vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 420px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 300px)}:host([position^=inline]) .width-l{--calcite-sheet-width-internal: var(--calcite-sheet-width, 45vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 680px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 340px)}:host([position^=block]) .height-s{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 160px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 30vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 30vh)}:host([position^=block]) .height-m{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 200px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 45vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 50vh)}:host([position^=block]) .height-l{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 240px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 70vh)}.scrim{--calcite-scrim-background: var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0;display:flex;overflow:hidden}:host([opened]){visibility:visible!important}.content{position:relative;z-index:var(--calcite-z-index-modal);box-sizing:border-box;display:flex;max-inline-size:100%;padding:0;background-color:var(--calcite-color-foreground-1);max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transform:var(--calcite-sheet-hidden-position-internal)}.content-container{position:relative;display:flex;max-block-size:100%;max-inline-size:100%;flex:1 1 0%;overflow:hidden}.container--open .content{transform:translateZ(0)}:host([display-mode=float]) .content,:host([display-mode=float]) .container,:host([display-mode=float]) .content-container{border-radius:.25rem}:host([display-mode=float]) .container{padding:.75rem}.container--open{visibility:visible;opacity:1;transition-delay:0ms}.container--open .content{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear,opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-inline-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-block-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}:host([position=inline-start]) .content,:host([position=inline-end]) .content{block-size:100%}:host([position=inline-start]) .content{flex-direction:row}:host([position=inline-end]) .content{flex-direction:row-reverse}:host([position=block-start]) .content,:host([position=block-end]) .content{inline-size:100%}:host([position=block-start]) .content{flex-direction:column}:host([position=block-end]) .content{flex-direction:column-reverse}:host([resizable][position=inline-start]) .content{padding-inline-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=inline-end]) .content{padding-inline-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-start]) .content{padding-block-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-end]) .content{padding-block-start:var(--calcite-size-fixed-sm-plus)}.resize-handle{position:absolute;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;--calcite-internal-sheet-resize-handle-offset: calc( (var(--calcite-size-fixed-xxl) - var(--calcite-size-fixed-sm-plus)) / 2 * -1 );z-index:var(--calcite-z-index-overlay)}.resize-handle:active .resize-handle-bar,.resize-handle:hover .resize-handle-bar{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}.resize-handle-bar{pointer-events:none;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-color-background);color:var(--calcite-color-border-input)}.resize-handle:focus .resize-handle-bar{outline-color:transparent;outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}:host([position=inline-start]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);right:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-start]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-start:1px solid var(--calcite-color-border-3)}:host([position=inline-start]):host([display-mode=float]) .resize-handle-bar{border-start-end-radius:.25rem;border-end-end-radius:.25rem}:host([position=inline-end]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);left:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-end]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-end:1px solid var(--calcite-color-border-3)}:host([position=inline-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-start]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-end:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-start]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-start:1px solid var(--calcite-color-border-3)}:host([position=block-start]):host([display-mode=float]) .resize-handle-bar{border-end-end-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-end]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-start:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-end]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-end:1px solid var(--calcite-color-border-3)}:host([position=block-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:.25rem;border-start-end-radius:.25rem}:host([position]) .container--embedded{pointer-events:auto;position:absolute;inline-size:100%;max-inline-size:100%;min-inline-size:100%;block-size:100%;max-block-size:100%;min-block-size:100%}:host([position]) .container--embedded calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
33
|
-
class Y extends T {
|
|
27
|
+
resizeHandleBar: "resize-handle-bar"
|
|
28
|
+
}, F = 10, U = 25, K = P`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;visibility:hidden!important;--calcite-sheet-scrim-background-internal: rgba(0, 0, 0, .85);--calcite-scrim-shadow-block-start-internal: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-block-end-internal: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-start-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}.calcite--rtl{--calcite-scrim-shadow-inline-start-internal: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-scrim-shadow-inline-end-internal: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}.assistive-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.container{visibility:hidden;position:fixed;z-index:var(--calcite-z-index-overlay);box-sizing:border-box;display:flex;color:var(--calcite-color-text-2);opacity:0;transition:visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88)}:host([position=inline-start]) .container{justify-content:flex-start;inset-block:0;inset-inline:0 auto;--calcite-sheet-hidden-position-internal: translate3d(-1rem, 0, 0)}:host([position=inline-end]) .container{justify-content:flex-end;inset-block:0;inset-inline:auto 0;--calcite-sheet-hidden-position-internal: translate3d(1rem, 0, 0)}:host([position=block-start]) .container{align-items:flex-start;inset-block:0 auto;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, -1rem, 0)}:host([position=block-end]) .container{align-items:flex-end;inset-block:auto 0;inset-inline:0;--calcite-sheet-hidden-position-internal: translate3d(0, 1rem, 0)}:host([display-mode=float]) .content{--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([display-mode=overlay][position=inline-start]) .container{box-shadow:var(--calcite-scrim-shadow-inline-start-internal)}:host([display-mode=overlay][position=inline-end]) .container{box-shadow:var(--calcite-scrim-shadow-inline-end-internal)}:host([display-mode=overlay][position=block-start]) .container{box-shadow:var(--calcite-scrim-shadow-block-start-internal)}:host([display-mode=overlay][position=block-end]) .container{box-shadow:var(--calcite-scrim-shadow-block-end-internal)}:host([position^=inline]) .content{inline-size:var(--calcite-sheet-width-internal);max-inline-size:var(--calcite-sheet-max-width-internal);min-inline-size:var(--calcite-sheet-min-width-internal)}:host([position^=block]) .content{block-size:var(--calcite-sheet-height-internal);max-block-size:var(--calcite-sheet-max-height-internal);min-block-size:var(--calcite-sheet-min-height-internal)}:host([position^=inline]) .width-s{--calcite-sheet-width-internal: var(--calcite-sheet-width, 15vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 360px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 260px)}:host([position^=inline]) .width-m{--calcite-sheet-width-internal: var(--calcite-sheet-width, 25vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 420px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 300px)}:host([position^=inline]) .width-l{--calcite-sheet-width-internal: var(--calcite-sheet-width, 45vw);--calcite-sheet-max-width-internal: var(--calcite-sheet-max-width, 680px);--calcite-sheet-min-width-internal: var(--calcite-sheet-min-width, 340px)}:host([position^=block]) .height-s{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 160px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 30vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 30vh)}:host([position^=block]) .height-m{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 200px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 45vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 50vh)}:host([position^=block]) .height-l{--calcite-sheet-min-height-internal: var(--calcite-sheet-min-height, 240px);--calcite-sheet-height-internal: var(--calcite-sheet-height, 60vh);--calcite-sheet-max-height-internal: var(--calcite-sheet-max-height, 70vh)}.scrim{--calcite-scrim-background: var(--calcite-sheet-scrim-background, var(--calcite-sheet-scrim-background-internal));position:fixed;inset:0;display:flex;overflow:hidden}:host([opened]){visibility:visible!important}.content{position:relative;z-index:var(--calcite-z-index-modal);box-sizing:border-box;display:flex;max-height:100%;max-width:100%;padding:0;background-color:var(--calcite-color-foreground-1);max-block-size:100%;visibility:hidden;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear var(--calcite-internal-animation-timing-medium),opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transform:var(--calcite-sheet-hidden-position-internal)}.content-container{position:relative;display:flex;max-height:100%;max-width:100%;flex:1 1 0%;overflow:hidden}.container--open .content{transform:translateZ(0)}:host([display-mode=float]) .content,:host([display-mode=float]) .container,:host([display-mode=float]) .content-container{border-radius:.25rem}:host([display-mode=float]) .container{padding:.75rem}.container--open{visibility:visible;opacity:1;transition-delay:0ms}.container--open .content{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),visibility 0ms linear,opacity var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-inline-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88),max-block-size var(--calcite-internal-animation-timing-medium) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}:host([position=inline-start]) .content,:host([position=inline-end]) .content{height:100%}:host([position=inline-start]) .content{flex-direction:row}:host([position=inline-end]) .content{flex-direction:row-reverse}:host([position=block-start]) .content,:host([position=block-end]) .content{width:100%}:host([position=block-start]) .content{flex-direction:column}:host([position=block-end]) .content{flex-direction:column-reverse}:host([resizable][position=inline-start]) .content{padding-inline-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=inline-end]) .content{padding-inline-start:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-start]) .content{padding-block-end:var(--calcite-size-fixed-sm-plus)}:host([resizable][position=block-end]) .content{padding-block-start:var(--calcite-size-fixed-sm-plus)}.resize-handle{position:absolute;box-sizing:border-box;display:flex;-webkit-user-select:none;user-select:none;align-items:center;justify-content:center;outline:2px solid transparent;outline-offset:2px;--calcite-internal-sheet-resize-handle-offset: calc( (var(--calcite-size-fixed-xxl) - var(--calcite-size-fixed-sm-plus)) / 2 * -1 );z-index:var(--calcite-z-index-overlay)}.resize-handle:active .resize-handle-bar,.resize-handle:hover .resize-handle-bar{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}.resize-handle-bar{pointer-events:none;display:flex;align-items:center;justify-content:center;background-color:var(--calcite-color-background);color:var(--calcite-color-border-input)}.resize-handle:focus .resize-handle-bar{outline-color:transparent;outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)))}:host([position=inline-start]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);right:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-start]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-start:1px solid var(--calcite-color-border-3)}:host([position=inline-start]):host([display-mode=float]) .resize-handle-bar{border-start-end-radius:.25rem;border-end-end-radius:.25rem}:host([position=inline-end]) .resize-handle{inline-size:var(--calcite-size-fixed-xxl);left:var(--calcite-internal-sheet-resize-handle-offset);block-size:100%}:host([position=inline-end]) .resize-handle-bar{block-size:100%;inline-size:var(--calcite-size-fixed-sm-plus);border-inline-end:1px solid var(--calcite-color-border-3)}:host([position=inline-end]):host([display-mode=float]) .resize-handle-bar{border-start-start-radius:.25rem;border-end-start-radius:.25rem}:host([position=block-start]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-end:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-start]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-start:1px solid var(--calcite-color-border-3)}:host([position=block-start]):host([display-mode=float]) .resize-handle-bar{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}:host([position=block-end]) .resize-handle{block-size:var(--calcite-size-fixed-xxl);inline-size:100%;inset-block-start:var(--calcite-internal-sheet-resize-handle-offset)}:host([position=block-end]) .resize-handle-bar{inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);border-block-end:1px solid var(--calcite-color-border-3)}:host([position=block-end]):host([display-mode=float]) .resize-handle-bar{border-top-left-radius:.25rem;border-top-right-radius:.25rem}:host([position]) .container--embedded{pointer-events:auto;position:absolute;inline-size:100%;max-inline-size:100%;min-inline-size:100%;block-size:100%;max-block-size:100%;min-block-size:100%}:host([position]) .container--embedded calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
29
|
+
class _ extends D {
|
|
34
30
|
// #endregion
|
|
35
31
|
// #region Lifecycle
|
|
36
32
|
constructor() {
|
|
37
|
-
super(), this.
|
|
33
|
+
super(), this.focusTrap = L({
|
|
34
|
+
triggerProp: "open",
|
|
35
|
+
focusTrapOptions: {
|
|
36
|
+
// scrim closes on click, so we let it take over
|
|
37
|
+
clickOutsideDeactivates: !1,
|
|
38
|
+
escapeDeactivates: (e) => (!e.defaultPrevented && !this.escapeDisabled && (this.open = !1, e.preventDefault()), !1)
|
|
39
|
+
}
|
|
40
|
+
})(this), this.ignoreOpenChange = !1, this.messages = A(), this.mutationObserver = M("mutation", () => this.handleMutationObserver()), this._open = !1, this.openEnd = () => {
|
|
38
41
|
this.setFocus(), this.el.removeEventListener("calciteSheetOpen", this.openEnd);
|
|
39
|
-
}, this.
|
|
42
|
+
}, this.openProp = "opened", this.transitionProp = "opacity", this.resizeValues = {
|
|
40
43
|
inlineSize: 0,
|
|
41
44
|
blockSize: 0,
|
|
42
45
|
minInlineSize: 0,
|
|
43
46
|
minBlockSize: 0,
|
|
44
47
|
maxInlineSize: 0,
|
|
45
48
|
maxBlockSize: 0
|
|
46
|
-
}, this.displayMode = "overlay", this.embedded = !1, this.escapeDisabled = !1, this.focusTrapDisabled = !1, this.heightScale = "m", this.opened = !1, this.outsideCloseDisabled = !1, this.position = "inline-start", this.resizable = !1, this.widthScale = "m", this.calciteSheetBeforeClose =
|
|
49
|
+
}, this.displayMode = "overlay", this.embedded = !1, this.escapeDisabled = !1, this.focusTrapDisabled = !1, this.heightScale = "m", this.opened = !1, this.outsideCloseDisabled = !1, this.position = "inline-start", this.resizable = !1, this.widthScale = "m", this.calciteSheetBeforeClose = g({ cancelable: !1 }), this.calciteSheetBeforeOpen = g({ cancelable: !1 }), this.calciteSheetClose = g({ cancelable: !1 }), this.calciteSheetOpen = g({ cancelable: !1 }), this.keyDownHandler = (e) => {
|
|
47
50
|
const { defaultPrevented: t, key: s } = e;
|
|
48
51
|
!t && !this.escapeDisabled && this.focusTrapDisabled && this.open && s === "Escape" && (e.preventDefault(), this.open = !1);
|
|
49
52
|
}, this.listen("keydown", this.keyDownHandler);
|
|
50
53
|
}
|
|
51
54
|
static {
|
|
52
|
-
this.properties = { resizeValues: 16, beforeClose: 0, displayMode: 3, embedded: 5, escapeDisabled: 7, focusTrapDisabled: 7, heightScale: 3, height: 3, label: 1, messageOverrides: 0, open: 7, opened: 7, outsideCloseDisabled: 7, position: 3, resizable: 7, widthScale: 3, width: 3 };
|
|
55
|
+
this.properties = { resizeValues: 16, beforeClose: 0, displayMode: 3, embedded: 5, escapeDisabled: 7, focusTrapDisabled: 7, focusTrapOptions: 0, heightScale: 3, height: 3, label: 1, messageOverrides: 0, open: 7, opened: 7, outsideCloseDisabled: 7, position: 3, resizable: 7, widthScale: 3, width: 3 };
|
|
53
56
|
}
|
|
54
57
|
static {
|
|
55
|
-
this.styles =
|
|
58
|
+
this.styles = K;
|
|
56
59
|
}
|
|
57
60
|
/** When `true`, displays and positions the component. */
|
|
58
61
|
get open() {
|
|
@@ -66,35 +69,29 @@ class Y extends T {
|
|
|
66
69
|
// #region Public Methods
|
|
67
70
|
/** Sets focus on the component's "close" button - the first focusable item. */
|
|
68
71
|
async setFocus() {
|
|
69
|
-
await
|
|
72
|
+
await H(this), T(this.el);
|
|
70
73
|
}
|
|
71
|
-
/**
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Updates the element(s) that are included in the focus-trap of the component.
|
|
76
|
+
*
|
|
77
|
+
* @param extraContainers - Additional elements to include in the focus trap. This is useful for including elements that may have related parts rendered outside the main focus trapping element.
|
|
78
|
+
*/
|
|
79
|
+
async updateFocusTrapElements(e) {
|
|
80
|
+
this.focusTrap.setExtraContainers(e), this.focusTrap.updateContainerElements();
|
|
74
81
|
}
|
|
75
82
|
connectedCallback() {
|
|
76
|
-
super.connectedCallback(), this.mutationObserver?.observe(this.el, { childList: !0, subtree: !0 }),
|
|
77
|
-
focusTrapOptions: {
|
|
78
|
-
// scrim closes on click, so we let it take over
|
|
79
|
-
clickOutsideDeactivates: !1,
|
|
80
|
-
escapeDeactivates: (e) => (!e.defaultPrevented && !this.escapeDisabled && (this.open = !1, e.preventDefault()), !1)
|
|
81
|
-
}
|
|
82
|
-
}), this.setupInteractions();
|
|
83
|
+
super.connectedCallback(), this.mutationObserver?.observe(this.el, { childList: !0, subtree: !0 }), this.setupInteractions();
|
|
83
84
|
}
|
|
84
85
|
load() {
|
|
85
|
-
|
|
86
|
+
this.open && this.openSheet();
|
|
86
87
|
}
|
|
87
88
|
willUpdate(e) {
|
|
88
|
-
e.has("
|
|
89
|
+
e.has("opened") && (this.hasUpdated || this.opened !== !1) && R(this), (e.has("open") && (this.hasUpdated || this.open !== !1) || e.has("position") && (this.hasUpdated || this.position !== "inline-start") || e.has("resizable") && (this.hasUpdated || this.resizable !== !1)) && this.setupInteractions();
|
|
89
90
|
}
|
|
90
91
|
loaded() {
|
|
91
|
-
A(this);
|
|
92
92
|
}
|
|
93
93
|
disconnectedCallback() {
|
|
94
|
-
super.disconnectedCallback(), this.removeOverflowHiddenClass(), this.mutationObserver?.disconnect(),
|
|
95
|
-
}
|
|
96
|
-
handleFocusTrapDisabled(e) {
|
|
97
|
-
this.open && (e ? S(this) : E(this));
|
|
94
|
+
super.disconnectedCallback(), this.removeOverflowHiddenClass(), this.mutationObserver?.disconnect(), this.embedded = !1, this.cleanupInteractions();
|
|
98
95
|
}
|
|
99
96
|
toggleSheet(e) {
|
|
100
97
|
this.ignoreOpenChange || (e ? this.openSheet() : this.closeSheet());
|
|
@@ -110,7 +107,7 @@ class Y extends T {
|
|
|
110
107
|
const { key: t, defaultPrevented: s, shiftKey: n } = e, { position: i, resizable: a, contentEl: h, el: r, resizeValues: { maxBlockSize: z, maxInlineSize: u, minBlockSize: x, minInlineSize: f } } = this, v = [...i === "block-end" || i === "block-start" ? ["ArrowUp", "ArrowDown"] : ["ArrowLeft", "ArrowRight"], "Home", "End"];
|
|
111
108
|
if (!a || !h || s || !v.includes(t))
|
|
112
109
|
return;
|
|
113
|
-
const c = this.getContentElDOMRect(), b = w(r) === "rtl" ? -1 : 1, o = n ?
|
|
110
|
+
const c = this.getContentElDOMRect(), b = w(r) === "rtl" ? -1 : 1, o = n ? U : F;
|
|
114
111
|
switch (t) {
|
|
115
112
|
case "ArrowUp":
|
|
116
113
|
this.updateSize({
|
|
@@ -154,7 +151,7 @@ class Y extends T {
|
|
|
154
151
|
const { contentEl: s, resizeValues: n } = this;
|
|
155
152
|
if (!s)
|
|
156
153
|
return;
|
|
157
|
-
const i = e === "blockSize" ? "minBlockSize" : "minInlineSize", a = e === "blockSize" ? "maxBlockSize" : "maxInlineSize", h = n[i] && n[a] ?
|
|
154
|
+
const i = e === "blockSize" ? "minBlockSize" : "minInlineSize", a = e === "blockSize" ? "maxBlockSize" : "maxInlineSize", h = n[i] && n[a] ? V(t, n[i], n[a]) : t, r = Math.round(h);
|
|
158
155
|
this.resizeValues = {
|
|
159
156
|
...n,
|
|
160
157
|
[e]: r
|
|
@@ -178,7 +175,7 @@ class Y extends T {
|
|
|
178
175
|
};
|
|
179
176
|
this.resizeValues = d;
|
|
180
177
|
const v = w(e) === "rtl";
|
|
181
|
-
this.interaction =
|
|
178
|
+
this.interaction = S(t, { context: e.ownerDocument }).resizable({
|
|
182
179
|
edges: {
|
|
183
180
|
top: n === "block-end" ? a : !1,
|
|
184
181
|
right: n === (v ? "inline-end" : "inline-start") ? a : !1,
|
|
@@ -186,7 +183,7 @@ class Y extends T {
|
|
|
186
183
|
left: n === (v ? "inline-start" : "inline-end") ? a : !1
|
|
187
184
|
},
|
|
188
185
|
modifiers: [
|
|
189
|
-
|
|
186
|
+
S.modifiers.restrictSize({
|
|
190
187
|
min: {
|
|
191
188
|
width: d.minInlineSize,
|
|
192
189
|
height: d.minBlockSize
|
|
@@ -212,19 +209,19 @@ class Y extends T {
|
|
|
212
209
|
this.calciteSheetBeforeOpen.emit();
|
|
213
210
|
}
|
|
214
211
|
onOpen() {
|
|
215
|
-
this.calciteSheetOpen.emit(),
|
|
212
|
+
this.calciteSheetOpen.emit(), this.focusTrap.activate();
|
|
216
213
|
}
|
|
217
214
|
onBeforeClose() {
|
|
218
215
|
this.calciteSheetBeforeClose.emit();
|
|
219
216
|
}
|
|
220
217
|
onClose() {
|
|
221
|
-
this.calciteSheetClose.emit(),
|
|
218
|
+
this.calciteSheetClose.emit(), this.focusTrap.deactivate();
|
|
222
219
|
}
|
|
223
220
|
setResizeHandleEl(e) {
|
|
224
221
|
this.resizeHandleEl = e, this.setupInteractions();
|
|
225
222
|
}
|
|
226
223
|
setContentEl(e) {
|
|
227
|
-
this.contentEl = e, this.contentId =
|
|
224
|
+
this.contentEl = e, this.contentId = $(e);
|
|
228
225
|
}
|
|
229
226
|
setTransitionEl(e) {
|
|
230
227
|
this.transitionEl = e;
|
|
@@ -257,17 +254,17 @@ class Y extends T {
|
|
|
257
254
|
// #region Rendering
|
|
258
255
|
render() {
|
|
259
256
|
const { resizable: e, position: t, resizeValues: s } = this, n = w(this.el), i = t === "block-start" || t === "block-end";
|
|
260
|
-
return
|
|
257
|
+
return B(this.el, "aria-describedby", this.contentId), this.el.ariaLabel = this.label, this.el.ariaModal = "true", this.el.role = "dialog", y`<div class=${p({
|
|
261
258
|
[l.container]: !0,
|
|
262
259
|
[l.containerOpen]: this.opened,
|
|
263
260
|
[l.containerEmbedded]: this.embedded,
|
|
264
|
-
[
|
|
265
|
-
[
|
|
266
|
-
[
|
|
267
|
-
})} ${
|
|
261
|
+
[E.rtl]: n === "rtl",
|
|
262
|
+
[C("width", this.width, this.widthScale)]: !!(this.width || this.widthScale),
|
|
263
|
+
[C("height", this.height, this.heightScale)]: !!(this.height || this.heightScale)
|
|
264
|
+
})} ${k(this.setTransitionEl)}><calcite-scrim class=${p(l.scrim)} @click=${this.handleOutsideClose}></calcite-scrim><div class=${p(l.content)} ${k(this.setContentEl)}><div class=${p(l.contentContainer)}><slot></slot></div>${e ? I("resize-handle", y`<div .ariaLabel=${this.messages.resizeEnabled} .ariaOrientation=${i ? "vertical" : "horizontal"} .ariaValueMax=${i ? s.maxBlockSize : s.maxInlineSize} .ariaValueMin=${i ? s.minBlockSize : s.minInlineSize} .ariaValueNow=${i ? s.blockSize : s.inlineSize} class=${p(l.resizeHandle)} @keydown=${this.handleKeyDown} role=separator tabindex=0 touch-action=none ${k(this.setResizeHandleEl)}><div class=${p(l.resizeHandleBar)}><calcite-icon .icon=${this.getResizeIcon()} scale=s></calcite-icon></div></div>`) : null}</div></div>`;
|
|
268
265
|
}
|
|
269
266
|
}
|
|
270
|
-
|
|
267
|
+
O("calcite-sheet", _);
|
|
271
268
|
export {
|
|
272
|
-
|
|
269
|
+
_ as Sheet
|
|
273
270
|
};
|
|
@@ -4,11 +4,9 @@ import { html as t } from "lit";
|
|
|
4
4
|
import { LitElement as g, safeClassMap as i } from "@arcgis/lumina";
|
|
5
5
|
import { a as l, s as r } from "../../chunks/dom.js";
|
|
6
6
|
import { css as w } from "@lit/reactive-element/css-tag.js";
|
|
7
|
-
/*!
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* v3.0.0-next.99
|
|
11
|
-
*/
|
|
7
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
8
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
9
|
+
v3.0.1 */
|
|
12
10
|
const $ = w`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host{position:absolute;inset:0;display:flex;block-size:100%;inline-size:100%;flex-direction:column;overflow:hidden;--calcite-shell-tip-spacing: 26vw}.main{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;flex-direction:row;justify-content:space-between;overflow:hidden}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;overflow:auto;justify-content:space-between}.content ::slotted(calcite-shell-center-row),.content ::slotted(calcite-panel),.content ::slotted(calcite-flow){flex:1 1 auto;align-self:stretch;max-block-size:unset}.content--behind{position:absolute;inset:0;border-width:0px;z-index:calc(var(--calcite-z-index) - 1);display:initial}.content--non-interactive{pointer-events:none;display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap}::slotted(calcite-shell-center-row){inline-size:unset}::slotted(.header .heading){font-size:var(--calcite-font-size--2);line-height:1.375;font-weight:var(--calcite-font-weight-normal)}slot[name=panel-start]::slotted(calcite-shell-panel),slot[name=panel-end]::slotted(calcite-shell-panel){position:relative;z-index:calc(var(--calcite-z-index) + 1)}slot[name=panel-end]::slotted(calcite-shell-panel){margin-inline-start:auto}::slotted(calcite-panel),::slotted(calcite-flow){border-width:1px;border-inline-start-width:0px;border-inline-end-width:0px;border-style:solid;border-color:var(--calcite-color-border-3)}slot[name=center-row]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-top]::slotted(calcite-shell-center-row:not([detached])),slot[name=panel-bottom]::slotted(calcite-shell-center-row:not([detached])){border-inline-start-width:1px;border-inline-end-width:1px;border-color:var(--calcite-color-border-3)}.center-content{display:flex;flex-direction:column;justify-content:space-between;block-size:100%;inline-size:100%;min-inline-size:0}.content-bottom{justify-content:flex-end}::slotted(calcite-shell-center-row){flex:none;align-self:stretch}::slotted(calcite-tip-manager){position:absolute;z-index:var(--calcite-z-index-toast);box-sizing:border-box}@keyframes in-up{0%{opacity:0;transform:translate3D(0,5px,0)}to{opacity:1;transform:translateZ(0)}}::slotted(calcite-tip-manager){animation:in-up var(--calcite-internal-animation-timing-slow) ease-in-out;border-radius:.25rem;--tw-shadow: 0 6px 20px -4px rgba(0, 0, 0, .1), 0 4px 12px -2px rgba(0, 0, 0, .08);--tw-shadow-colored: 0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);inset-block-end:.5rem;inset-inline:var(--calcite-shell-tip-spacing)}slot[name=center-row]::slotted(calcite-shell-center-row),slot[name=panel-bottom]::slotted(calcite-shell-center-row){margin-block-start:auto}slot[name=panel-top]::slotted(calcite-shell-center-row){margin-block-end:auto}.position-wrapper{position:absolute;pointer-events:none;inset:0}slot[name=modals]::slotted(calcite-modal){position:absolute}:host([hidden]){display:none}[hidden]{display:none}`, s = {
|
|
13
11
|
main: "main",
|
|
14
12
|
content: "content",
|
|
@@ -17,7 +15,6 @@ const $ = w`:host{box-sizing:border-box;background-color:var(--calcite-color-for
|
|
|
17
15
|
contentNonInteractive: "content--non-interactive",
|
|
18
16
|
footer: "footer",
|
|
19
17
|
positionedSlotWrapper: "positioned-slot-wrapper",
|
|
20
|
-
container: "container",
|
|
21
18
|
contentBehindCenterContent: "center-content"
|
|
22
19
|
}, a = {
|
|
23
20
|
centerRow: "center-row",
|
|
@@ -5,11 +5,9 @@ import { LitElement as c, safeClassMap as i } from "@arcgis/lumina";
|
|
|
5
5
|
import { s as l } from "../../chunks/dom.js";
|
|
6
6
|
import { l as d } from "../../chunks/logger.js";
|
|
7
7
|
import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
8
|
-
/*!
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* v3.0.0-next.99
|
|
12
|
-
*/
|
|
8
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
9
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
10
|
+
v3.0.1 */
|
|
13
11
|
const n = {
|
|
14
12
|
actionBarContainer: "action-bar-container",
|
|
15
13
|
content: "content"
|
|
@@ -1,33 +1,29 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as y, c as N } from "../../chunks/runtime.js";
|
|
2
2
|
import { keyed as z } from "lit-html/directives/keyed.js";
|
|
3
3
|
import { ref as S } from "lit-html/directives/ref.js";
|
|
4
|
-
import { html as
|
|
4
|
+
import { html as g } from "lit";
|
|
5
5
|
import { LitElement as K, createEvent as E, safeClassMap as b, safeStyleMap as B } from "@arcgis/lumina";
|
|
6
6
|
import { i as W, g as M, s as D, a as L } from "../../chunks/dom.js";
|
|
7
7
|
import { c as A } from "../../chunks/math.js";
|
|
8
8
|
import { g as P } from "../../chunks/dynamicClasses.js";
|
|
9
9
|
import { u as V } from "../../chunks/useT9n.js";
|
|
10
10
|
import { css as U } from "@lit/reactive-element/css-tag.js";
|
|
11
|
-
/*!
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* v3.0.0-next.99
|
|
15
|
-
*/
|
|
11
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
12
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
13
|
+
v3.0.1 */
|
|
16
14
|
const u = {
|
|
17
15
|
container: "container",
|
|
18
16
|
content: "content",
|
|
19
17
|
contentHeader: "content__header",
|
|
20
18
|
contentBody: "content__body",
|
|
21
19
|
contentOverlay: "content--overlay",
|
|
22
|
-
float: "float",
|
|
23
20
|
floatAll: "float-all",
|
|
24
21
|
floatContent: "float--content",
|
|
25
|
-
height: "height",
|
|
26
22
|
separator: "separator"
|
|
27
23
|
}, $ = {
|
|
28
24
|
actionBar: "action-bar",
|
|
29
25
|
header: "header"
|
|
30
|
-
}, _ = U`:host{pointer-events:none;position:relative;display:flex;flex:0 1 auto;align-items:stretch;z-index:var(--calcite-shell-panel-z-index, var(--calcite-z-index));--calcite-shell-panel-max-height: unset;--calcite-internal-shell-panel-shadow-block-start: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-block-end: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-start: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}.calcite--rtl.content--overlay{--calcite-internal-shell-panel-shadow-inline-start: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}:host([layout=vertical]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index) + 1))}:host([layout=vertical][display-mode=overlay]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index-header) + 1))}:host([layout=vertical][display-mode=float-all]) .content{flex:2}:host([layout=vertical]:not([display-mode=float-all])) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 300px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical][display-mode=float-all]) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical]:not([display-mode=float-all])) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 420px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical][display-mode=float-all]) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical]:not([display-mode=float-all])) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 680px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=vertical][display-mode=float-all]) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=horizontal]) .height-s{--calcite-internal-shell-panel-max-height: var( --calcite-shell-panel-max-height, var(--calcite-shell-panel-detached-max-height, 20vh) )}:host([layout=horizontal]) .content{--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 30vh)}:host([layout=horizontal]) .height-l{--calcite-internal-shell-panel-max-height: var( --calcite-shell-panel-max-height, var(--calcite-shell-panel-detached-max-height, 40vh) )}.container{pointer-events:none;box-sizing:border-box;display:flex;block-size:100%;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2)}.container *{box-sizing:border-box}.container.float-all{margin-block:.5rem;margin-inline:.5rem}:host([layout=horizontal]) .container{block-size:auto;inline-size:100%;flex-direction:column}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-color-border-3)}.separator{pointer-events:auto;position:absolute;display:flex;background-color:transparent;opacity:0;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;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-color-border-2)}.separator:focus{background-color:var(--calcite-color-brand);opacity:1}:host([layout=vertical]) .separator{inset-block:0px;block-size:100%;inline-size:.125rem;cursor:col-resize}:host([layout=horizontal][position=start]) .separator{inset-block-end:0px}:host([layout=horizontal][position=end]) .separator{inset-block-start:0px}:host([layout=horizontal]) .separator{inset-inline-end:0px;block-size:.125rem;inline-size:100%;cursor:row-resize}:host([layout=vertical][position=start]) .separator{inset-inline-end:-2px}:host([layout=horizontal][position=start]) .separator{inset-block-end:-2px}:host([layout=vertical][position=end]) .separator{inset-inline-start:-2px}:host([layout=horizontal][position=end]) .separator{inset-block-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-color-background);padding:0;transition:max-block-size var(--calcite-animation-timing),max-inline-size var(--calcite-animation-timing)}:host([layout=vertical]:not([display-mode=float-all])) .content{inline-size:var(--calcite-internal-shell-panel-width);max-inline-size:var(--calcite-internal-shell-panel-max-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=vertical][display-mode=float-all]) .content{inline-size:var(--calcite-internal-shell-panel-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=horizontal]) .content{block-size:var(--calcite-internal-shell-panel-height);max-block-size:var(--calcite-internal-shell-panel-max-height);min-block-size:var(--calcite-internal-shell-panel-min-height)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--overlay{position:absolute;--tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([layout=vertical]) .content--overlay{inset-block-start:0px;block-size:100%}:host([layout=horizontal]) .content--overlay{inset-inline-start:0px;inline-size:100%}:host([layout=vertical][position=start]) .content--overlay{inset-inline-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-start)}:host([layout=vertical][position=end]) .content--overlay{inset-inline-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-end)}:host([layout=horizontal][position=start]) .content--overlay{inset-block-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-start)}:host([layout=horizontal][position=end]) .content--overlay{inset-block-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-end)}.float--content{margin-inline:.5rem;margin-block:.5rem auto;block-size:auto;overflow:hidden;border-radius:.25rem;--tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);max-block-size:var(--calcite-internal-shell-panel-max-height, calc(100% - 1rem) )}.float--content ::slotted(calcite-panel),.float--content ::slotted(calcite-flow){max-block-size:unset}:host([layout=horizontal]) .float--content{margin-block:.5rem}:host([position=start]) .float--content ::slotted(calcite-panel),:host([position=start]) .float--content ::slotted(calcite-flow),:host([position=end]) .float--content ::slotted(calcite-panel),:host([position=end]) .float--content ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}:host([position=start]:not([slot=panel-end]):not([display-mode=float-all])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]:not([slot=panel-end]):not([display-mode=float-all])) .content ::slotted(calcite-flow),:host([position=start]:not([slot=panel-end]):not([display-mode=float-all])) .content ::slotted(calcite-panel),:host([position=end][slot=panel-start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end][slot=panel-start]) .content ::slotted(calcite-flow),:host([position=end][slot=panel-start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]:not([slot=panel-start])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-flow),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-panel),:host([position=start][slot=panel-end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start][slot=panel-end]) .content ::slotted(calcite-flow),:host([position=start][slot=panel-end]) .content ::slotted(calcite-panel){border-inline-end:none}:host([layout=horizontal]:not([display-mode=float-all])) slot[name=action-bar]::slotted(calcite-action-bar){border-inline:0}:host([layout=horizontal][position=start]:not([display-mode=float-all])) .content ::slotted(calcite-flow),:host([layout=horizontal][position=start]:not([display-mode=float-all])) .content ::slotted(calcite-panel){border-inline:0;border-block-start:0}:host([layout=horizontal][position=end]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=end]) .content ::slotted(calcite-panel){border-inline:0;border-block-end:0}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
26
|
+
}, _ = U`:host{pointer-events:none;position:relative;display:flex;flex:0 1 auto;align-items:stretch;z-index:var(--calcite-shell-panel-z-index, var(--calcite-z-index));--calcite-shell-panel-max-height: unset;--calcite-internal-shell-panel-shadow-block-start: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-block-end: 0 -4px 8px -1px rgba(0, 0, 0, .08), 0 -2px 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-start: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04)}.calcite--rtl.content--overlay{--calcite-internal-shell-panel-shadow-inline-start: -4px 0 8px -1px rgba(0, 0, 0, .08), -2px 0 4px -1px rgba(0, 0, 0, .04);--calcite-internal-shell-panel-shadow-inline-end: 4px 0 8px -1px rgba(0, 0, 0, .08), 2px 0 4px -1px rgba(0, 0, 0, .04)}:host([layout=vertical]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index) + 1))}:host([layout=vertical][display-mode=overlay]){z-index:var(--calcite-shell-panel-z-index, calc(var(--calcite-z-index-header) + 1))}:host([layout=vertical][display-mode=float-all]) .content{flex:2}:host([layout=vertical]:not([display-mode=float-all])) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 300px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical][display-mode=float-all]) .width-s{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 12vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 150px)}:host([layout=vertical]:not([display-mode=float-all])) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 420px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical][display-mode=float-all]) .width-m{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 20vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 240px)}:host([layout=vertical]:not([display-mode=float-all])) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-max-width: var(--calcite-shell-panel-max-width, 680px);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=vertical][display-mode=float-all]) .width-l{--calcite-internal-shell-panel-width: var(--calcite-shell-panel-width, 45vw);--calcite-internal-shell-panel-min-width: var(--calcite-shell-panel-min-width, 340px)}:host([layout=horizontal]) .height-s{--calcite-internal-shell-panel-max-height: var( --calcite-shell-panel-max-height, var(--calcite-shell-panel-detached-max-height, 20vh) )}:host([layout=horizontal]) .content{--calcite-internal-shell-panel-min-height: var(--calcite-shell-panel-min-height, 5vh);--calcite-internal-shell-panel-max-height: var(--calcite-shell-panel-max-height, 30vh)}:host([layout=horizontal]) .height-l{--calcite-internal-shell-panel-max-height: var( --calcite-shell-panel-max-height, var(--calcite-shell-panel-detached-max-height, 40vh) )}.container{pointer-events:none;box-sizing:border-box;display:flex;block-size:100%;flex:1 1 auto;align-items:stretch;background-color:transparent;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-2)}.container *{box-sizing:border-box}.container.float-all{margin-block:.5rem;margin-inline:.5rem}.float-all{max-block-size:var(--calcite-internal-shell-panel-max-height, calc(100% - 1rem) );box-shadow:var(--calcite-shell-panel-shadow, var(--calcite-shadow-sm));border-radius:var(--calcite-shell-panel-corner-radius, var(--calcite-corner-radius-round));overflow:hidden}:host([layout=vertical][position=start]) .float-all{border-inline-start:1px solid var(--calcite-shell-panel-border-color, var(--calcite-color-border-3))}:host([layout=vertical][position=end]) .float-all{border-inline-end:1px solid var(--calcite-shell-panel-border-color, var(--calcite-color-border-3))}:host([layout=horizontal]) .float-all{border-inline:1px solid var(--calcite-shell-panel-border-color, var(--calcite-color-border-3))}:host([layout=horizontal]) .container{block-size:auto;inline-size:100%;flex-direction:column}:host(:hover) .separator:not(:hover):not(:focus),:host(:focus-within) .separator:not(:hover):not(:focus){opacity:1;background-color:var(--calcite-color-border-3)}.separator{pointer-events:auto;position:absolute;display:flex;background-color:transparent;opacity:0;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;cursor:col-resize;outline:none}.separator:hover{opacity:1;background-color:var(--calcite-color-border-2)}.separator:focus{background-color:var(--calcite-color-brand);opacity:1}:host([layout=vertical]) .separator{inset-block:0px;block-size:100%;inline-size:.125rem;cursor:col-resize}:host([layout=horizontal][position=start]) .separator{inset-block-end:0px}:host([layout=horizontal][position=end]) .separator{inset-block-start:0px}:host([layout=horizontal]) .separator{inset-inline-end:0px;block-size:.125rem;inline-size:100%;cursor:row-resize}:host([layout=vertical][position=start]) .separator{inset-inline-end:-2px}:host([layout=horizontal][position=start]) .separator{inset-block-end:-2px}:host([layout=vertical][position=end]) .separator{inset-inline-start:-2px}:host([layout=horizontal][position=end]) .separator{inset-block-start:-2px}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%;inline-size:100%;flex:1 1 auto;max-block-size:unset;max-inline-size:unset}::slotted(.calcite-match-height){display:flex;flex:1 1 auto;overflow:hidden}.content{pointer-events:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;align-self:stretch;background-color:var(--calcite-color-background);padding:0;transition:max-block-size var(--calcite-animation-timing),max-inline-size var(--calcite-animation-timing)}:host([layout=vertical]:not([display-mode=float-all])) .content{inline-size:var(--calcite-internal-shell-panel-width);max-inline-size:var(--calcite-internal-shell-panel-max-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=vertical][display-mode=float-all]) .content{inline-size:var(--calcite-internal-shell-panel-width);min-inline-size:var(--calcite-internal-shell-panel-min-width)}:host([layout=horizontal]) .content{block-size:var(--calcite-internal-shell-panel-height);max-block-size:var(--calcite-internal-shell-panel-max-height);min-block-size:var(--calcite-internal-shell-panel-min-height)}.content__header{display:flex;flex:0 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch}.content__body{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.content--overlay{position:absolute;--tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:host([layout=vertical]) .content--overlay{inset-block-start:0px;block-size:100%}:host([layout=horizontal]) .content--overlay{inset-inline-start:0px;inline-size:100%}:host([layout=vertical][position=start]) .content--overlay{inset-inline-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-start)}:host([layout=vertical][position=end]) .content--overlay{inset-inline-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-inline-end)}:host([layout=horizontal][position=start]) .content--overlay{inset-block-start:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-start)}:host([layout=horizontal][position=end]) .content--overlay{inset-block-end:100%;box-shadow:var(--calcite-internal-shell-panel-shadow-block-end)}.float--content{margin-inline:.5rem;margin-block:.5rem auto;block-size:auto;overflow:hidden;border-radius:.25rem;--tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);max-block-size:var(--calcite-internal-shell-panel-max-height, calc(100% - 1rem) )}.float--content ::slotted(calcite-panel),.float--content ::slotted(calcite-flow){max-block-size:unset}:host([layout=horizontal]) .float--content{margin-block:.5rem}:host([position=start]) .float--content ::slotted(calcite-panel),:host([position=start]) .float--content ::slotted(calcite-flow),:host([position=end]) .float--content ::slotted(calcite-panel),:host([position=end]) .float--content ::slotted(calcite-flow){border-style:none}.content[hidden]{display:none}slot[name=action-bar]::slotted(calcite-action-bar),.content ::slotted(calcite-flow),.content ::slotted(calcite-panel:not([closed])){border-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}:host([position=start]:not([slot=panel-end])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start]:not([slot=panel-end])) .content ::slotted(calcite-flow),:host([position=start]:not([slot=panel-end])) .content ::slotted(calcite-panel),:host([position=end][slot=panel-start]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end][slot=panel-start]) .content ::slotted(calcite-flow),:host([position=end][slot=panel-start]) .content ::slotted(calcite-panel){border-inline-start:none}:host([position=end]:not([slot=panel-start])) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-flow),:host([position=end]:not([slot=panel-start])) .content ::slotted(calcite-panel),:host([position=start][slot=panel-end]) slot[name=action-bar]::slotted(calcite-action-bar),:host([position=start][slot=panel-end]) .content ::slotted(calcite-flow),:host([position=start][slot=panel-end]) .content ::slotted(calcite-panel){border-inline-end:none}:host([layout=horizontal]) slot[name=action-bar]::slotted(calcite-action-bar){border-inline:0}:host([layout=horizontal][position=start]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=start]) .content ::slotted(calcite-panel){border-inline:0;border-block-start:0}:host([layout=horizontal][position=end]) .content ::slotted(calcite-flow),:host([layout=horizontal][position=end]) .content ::slotted(calcite-panel){border-inline:0;border-block-end:0}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
31
27
|
class R extends K {
|
|
32
28
|
constructor() {
|
|
33
29
|
super(...arguments), this.actionBars = [], this.contentHeightMax = null, this.contentHeightMin = null, this.contentWidthMax = null, this.contentWidthMin = null, this.initialClientX = null, this.initialClientY = null, this.initialContentHeight = null, this.initialContentWidth = null, this.separatorPointerDown = (e) => {
|
|
@@ -100,12 +96,12 @@ class R extends K {
|
|
|
100
96
|
].indexOf(t) > -1 && e.preventDefault();
|
|
101
97
|
const k = M(i), r = ["ArrowLeft", "ArrowRight"], p = ["ArrowDown", "ArrowUp"], f = k === "rtl" && r.includes(t) ? -1 : 1;
|
|
102
98
|
if (a === "horizontal" ? o === "end" ? t === p[1] || t === r[0] : t === p[0] || t === r[1] : t === p[1] || (o === "end" ? t === r[0] : t === r[1])) {
|
|
103
|
-
const
|
|
104
|
-
return a === "horizontal" ? s + f *
|
|
99
|
+
const v = e.shiftKey ? c : n;
|
|
100
|
+
return a === "horizontal" ? s + f * v : l + f * v;
|
|
105
101
|
}
|
|
106
102
|
if (a === "horizontal" ? o === "end" ? t === p[0] || t === r[0] : t === p[1] || t === r[1] : t === p[0] || (o === "end" ? t === r[1] : t === r[0])) {
|
|
107
|
-
const
|
|
108
|
-
return a === "horizontal" ? s - f *
|
|
103
|
+
const v = e.shiftKey ? c : n;
|
|
104
|
+
return a === "horizontal" ? s - f * v : l - f * v;
|
|
109
105
|
}
|
|
110
106
|
return t === "Home" && a === "horizontal" && typeof x == "number" ? x : t === "Home" && a === "vertical" && typeof w == "number" ? w : t === "End" && a === "horizontal" && typeof h == "number" ? h : t === "End" && a === "vertical" && typeof d == "number" ? d : t === "PageDown" ? a === "horizontal" ? s - c : l - c : t === "PageUp" ? a === "horizontal" ? s + c : l + c : null;
|
|
111
107
|
}
|
|
@@ -147,20 +143,20 @@ class R extends K {
|
|
|
147
143
|
// #endregion
|
|
148
144
|
// #region Rendering
|
|
149
145
|
renderHeader() {
|
|
150
|
-
return z("header",
|
|
146
|
+
return z("header", g`<div class=${b(u.contentHeader)} .hidden=${!this.hasHeader}><slot name=${$.header} @slotchange=${this.handleHeaderSlotChange}></slot></div>`);
|
|
151
147
|
}
|
|
152
148
|
render() {
|
|
153
|
-
const { collapsed: e, position: t, initialContentWidth: i, initialContentHeight: n, contentWidth: m, contentWidthMax: a, contentWidthMin: w, contentHeight: d, contentHeightMax: l, contentHeightMin: s, resizable: x, layout: h, displayMode: o } = this, c = M(this.el), C = o !== "float-content" && o !== "float" && x, k = C ? h === "horizontal" ? d ? { height: `${d}px` } : null : m ? { width: `${m}px` } : null : null, r = !e && C ? z("separator",
|
|
154
|
-
[
|
|
149
|
+
const { collapsed: e, position: t, initialContentWidth: i, initialContentHeight: n, contentWidth: m, contentWidthMax: a, contentWidthMin: w, contentHeight: d, contentHeightMax: l, contentHeightMin: s, resizable: x, layout: h, displayMode: o } = this, c = M(this.el), C = o !== "float-content" && o !== "float" && x, k = C ? h === "horizontal" ? d ? { height: `${d}px` } : null : m ? { width: `${m}px` } : null : null, r = !e && C ? z("separator", g`<div .ariaLabel=${this.messages.resize} .ariaOrientation=${h === "horizontal" ? "vertical" : "horizontal"} .ariaValueMax=${h == "horizontal" ? l : a} .ariaValueMin=${h == "horizontal" ? s : w} .ariaValueNow=${h == "horizontal" ? d ?? n : m ?? i} class=${b(u.separator)} @keydown=${this.separatorKeyDown} role=separator tabindex=0 touch-action=none ${S(this.connectSeparator)}></div>`) : null, p = () => h === "horizontal" ? t === "start" ? y.calciteAnimateInDown : y.calciteAnimateInUp : c === "ltr" && t === "end" || c === "rtl" && t === "start" ? y.calciteAnimateInLeft : y.calciteAnimateInRight, f = z("content", g`<div class=${b({
|
|
150
|
+
[y.rtl]: c === "rtl",
|
|
155
151
|
[u.content]: !0,
|
|
156
152
|
[u.contentOverlay]: o === "overlay",
|
|
157
153
|
[u.floatContent]: o === "float-content" || o === "float",
|
|
158
|
-
[
|
|
154
|
+
[y.calciteAnimate]: o === "overlay",
|
|
159
155
|
[p()]: o === "overlay",
|
|
160
156
|
[P("width", this.width, this.widthScale)]: !!(this.width || this.widthScale),
|
|
161
157
|
[P("height", this.height, this.heightScale)]: !!(this.height || this.heightScale)
|
|
162
|
-
})} .hidden=${e} style=${B(k)} ${S(this.storeContentEl)}>${this.renderHeader()}<div class=${b(u.contentBody)}><slot></slot></div>${r}</div>`), H = [z("action-bar",
|
|
163
|
-
return t === "end" && H.reverse(),
|
|
158
|
+
})} .hidden=${e} style=${B(k)} ${S(this.storeContentEl)}>${this.renderHeader()}<div class=${b(u.contentBody)}><slot></slot></div>${r}</div>`), H = [z("action-bar", g`<slot name=${$.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot>`), f];
|
|
159
|
+
return t === "end" && H.reverse(), g`<div class=${b({ [u.container]: !0, [u.floatAll]: o === "float-all" })}>${H}</div>`;
|
|
164
160
|
}
|
|
165
161
|
}
|
|
166
162
|
N("calcite-shell-panel", R);
|
|
@@ -74,7 +74,10 @@ export declare class Slider extends LitElement {
|
|
|
74
74
|
pageStep: number;
|
|
75
75
|
/** When `true`, sets a finer point for handles. */
|
|
76
76
|
precise: boolean;
|
|
77
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* When `true` and the component resides in a form,
|
|
79
|
+
* the component must have a value in order for the form to submit.
|
|
80
|
+
*/
|
|
78
81
|
required: boolean;
|
|
79
82
|
/** Specifies the size of the component. */
|
|
80
83
|
scale: Scale;
|