@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
|
@@ -2,31 +2,29 @@ import { c as r } from "../../chunks/runtime.js";
|
|
|
2
2
|
import { ref as c } from "lit-html/directives/ref.js";
|
|
3
3
|
import { html as l } from "lit";
|
|
4
4
|
import { LitElement as d, safeClassMap as m } from "@arcgis/lumina";
|
|
5
|
-
import { c as
|
|
6
|
-
import { c as
|
|
7
|
-
import { z as
|
|
8
|
-
import { css as
|
|
9
|
-
/*!
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* v3.0.0-next.99
|
|
13
|
-
*/
|
|
5
|
+
import { c as f } from "../../chunks/observers.js";
|
|
6
|
+
import { c as h } from "../../chunks/loadable.js";
|
|
7
|
+
import { z as u } from "../../chunks/dom.js";
|
|
8
|
+
import { css as p } from "@lit/reactive-element/css-tag.js";
|
|
9
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
10
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
11
|
+
v3.0.1 */
|
|
14
12
|
const n = {
|
|
15
13
|
frame: "frame",
|
|
16
14
|
frameAdvancing: "frame--advancing",
|
|
17
15
|
frameRetreating: "frame--retreating"
|
|
18
|
-
},
|
|
19
|
-
class
|
|
16
|
+
}, w = p`: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:relative;display:flex;inline-size:100%;flex:1 1 auto;align-items:stretch;overflow:hidden;background-color:transparent}:host .frame{position:relative;margin:0;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;padding:0;animation-name:none;animation-duration:var(--calcite-animation-timing);background-color:var(--calcite-flow-background-color)}:host ::slotted(*){display:none;block-size:100%}:host ::slotted(*[selected]){display:flex}:host ::slotted(.calcite-match-height:last-child){display:flex;flex:1 1 auto;overflow:hidden}:host .frame--advancing{animation-name:calcite-frame-advance}:host .frame--retreating{animation-name:calcite-frame-retreat}@keyframes calcite-frame-advance{0%{--tw-bg-opacity: .5;transform:translate3d(50px,0,0)}to{--tw-bg-opacity: 1;transform:translateZ(0)}}@keyframes calcite-frame-retreat{0%{--tw-bg-opacity: .5;transform:translate3d(-50px,0,0)}to{--tw-bg-opacity: 1;transform:translateZ(0)}}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
17
|
+
class g extends d {
|
|
20
18
|
// #endregion
|
|
21
19
|
// #region Lifecycle
|
|
22
20
|
constructor() {
|
|
23
|
-
super(), this.itemMutationObserver =
|
|
21
|
+
super(), this.itemMutationObserver = f("mutation", () => this.updateItemsAndProps()), this.items = [], this.selectedIndex = -1, this.flowDirection = "standby", this.listen("calciteInternalFlowItemChange", this.handleCalciteInternalFlowItemChange), this.listen("calciteFlowItemBack", this.handleItemBackClick);
|
|
24
22
|
}
|
|
25
23
|
static {
|
|
26
|
-
this.properties = { flowDirection: 16,
|
|
24
|
+
this.properties = { flowDirection: 16, customItemSelectors: 1 };
|
|
27
25
|
}
|
|
28
26
|
static {
|
|
29
|
-
this.styles =
|
|
27
|
+
this.styles = w;
|
|
30
28
|
}
|
|
31
29
|
// #endregion
|
|
32
30
|
// #region Public Methods
|
|
@@ -53,21 +51,20 @@ class v extends d {
|
|
|
53
51
|
* @returns Promise<void>
|
|
54
52
|
*/
|
|
55
53
|
async setFocus() {
|
|
56
|
-
await
|
|
54
|
+
await h(this);
|
|
57
55
|
const { items: e } = this;
|
|
58
56
|
return e[this.selectedIndex]?.setFocus();
|
|
59
57
|
}
|
|
60
58
|
connectedCallback() {
|
|
61
|
-
super.connectedCallback(), this.itemMutationObserver?.observe(this.el, { childList: !0, subtree: !0 })
|
|
59
|
+
super.connectedCallback(), this.itemMutationObserver?.observe(this.el, { childList: !0, subtree: !0 });
|
|
62
60
|
}
|
|
63
61
|
load() {
|
|
64
|
-
u(this);
|
|
65
62
|
}
|
|
66
63
|
willUpdate(e) {
|
|
67
64
|
e.has("flowDirection") && (this.hasUpdated || this.flowDirection !== "standby") && this.handleFlowDirectionChange(this.flowDirection);
|
|
68
65
|
}
|
|
69
66
|
loaded() {
|
|
70
|
-
|
|
67
|
+
this.updateItemsAndProps();
|
|
71
68
|
}
|
|
72
69
|
disconnectedCallback() {
|
|
73
70
|
super.disconnectedCallback(), this.itemMutationObserver?.disconnect();
|
|
@@ -75,7 +72,7 @@ class v extends d {
|
|
|
75
72
|
// #endregion
|
|
76
73
|
// #region Private Methods
|
|
77
74
|
async handleFlowDirectionChange(e) {
|
|
78
|
-
e !== "standby" && (await
|
|
75
|
+
e !== "standby" && (await u(this.frameEl, e === "retreating" ? "calcite-frame-retreat" : "calcite-frame-advance"), this.resetFlowDirection());
|
|
79
76
|
}
|
|
80
77
|
handleCalciteInternalFlowItemChange(e) {
|
|
81
78
|
e.stopPropagation(), this.updateFlowProps();
|
|
@@ -91,7 +88,7 @@ class v extends d {
|
|
|
91
88
|
const t = e > 0;
|
|
92
89
|
return !(e > -1 && i > 0) && !t ? "standby" : i < e ? "retreating" : "advancing";
|
|
93
90
|
}
|
|
94
|
-
|
|
91
|
+
updateItemsAndProps() {
|
|
95
92
|
const { customItemSelectors: e, el: i } = this, t = Array.from(i.querySelectorAll(`calcite-flow-item${e ? `,${e}` : ""}`)).filter((a) => a.closest("calcite-flow") === i);
|
|
96
93
|
this.items = t, this.ensureSelectedFlowItemExists(), this.updateFlowProps();
|
|
97
94
|
}
|
|
@@ -127,7 +124,7 @@ class v extends d {
|
|
|
127
124
|
return l`<div class=${m(i)} ${c(this.setFrameEl)}><slot></slot></div>`;
|
|
128
125
|
}
|
|
129
126
|
}
|
|
130
|
-
r("calcite-flow",
|
|
127
|
+
r("calcite-flow", g);
|
|
131
128
|
export {
|
|
132
|
-
|
|
129
|
+
g as Flow
|
|
133
130
|
};
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { c as
|
|
1
|
+
import { c as w } from "../../chunks/runtime.js";
|
|
2
2
|
import { ref as d } from "lit-html/directives/ref.js";
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { html as h, nothing as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { g as
|
|
7
|
-
import { u as
|
|
8
|
-
import { c as
|
|
3
|
+
import { keyed as v } from "lit-html/directives/keyed.js";
|
|
4
|
+
import { html as h, nothing as B } from "lit";
|
|
5
|
+
import { LitElement as C, createEvent as c, safeClassMap as I } from "@arcgis/lumina";
|
|
6
|
+
import { g as y } from "../../chunks/dom.js";
|
|
7
|
+
import { u as x, I as S } from "../../chunks/interactive.js";
|
|
8
|
+
import { c as E } from "../../chunks/loadable.js";
|
|
9
9
|
import { S as t } from "../../chunks/resources3.js";
|
|
10
|
-
import { u as
|
|
11
|
-
import { css as
|
|
12
|
-
/*!
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
*/
|
|
17
|
-
const L = {
|
|
10
|
+
import { u as P } from "../../chunks/useT9n.js";
|
|
11
|
+
import { css as F } from "@lit/reactive-element/css-tag.js";
|
|
12
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
13
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
14
|
+
v3.0.1 */
|
|
15
|
+
const T = {
|
|
18
16
|
backButton: "back-button"
|
|
19
|
-
},
|
|
17
|
+
}, f = {
|
|
20
18
|
backLeft: "chevron-left",
|
|
21
19
|
backRight: "chevron-right"
|
|
22
20
|
}, o = {
|
|
@@ -33,16 +31,16 @@ const L = {
|
|
|
33
31
|
footerActions: "footer-actions",
|
|
34
32
|
footerEnd: "footer-end",
|
|
35
33
|
footerStart: "footer-start"
|
|
36
|
-
},
|
|
37
|
-
class
|
|
34
|
+
}, A = F`: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([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:none;inline-size:100%;flex:1 1 auto;overflow:hidden}:host([selected]){display:flex}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.back-button{border-width:0px;border-style:solid;border-inline-end-width:1px;border-color:var(--calcite-flow-border-color, var(--calcite-color-border-3))}calcite-panel{--calcite-panel-background-color: var(--calcite-flow-background-color);--calcite-panel-border-color: var(--calcite-flow-border-color, var(--calcite-flow-item-header-border-block-end));--calcite-panel-corner-radius: var(--calcite-flow-corner-radius);--calcite-panel-description-text-color: var(--calcite-flow-description-text-color);--calcite-panel-footer-background-color: var(--calcite-flow-footer-background-color);--calcite-panel-footer-space: var(--calcite-flow-footer-space, var(--calcite-flow-item-footer-padding));--calcite-panel-header-action-background-color-hover: var(--calcite-flow-header-action-background-color-hover);--calcite-panel-header-action-background-color-press: var(--calcite-flow-header-action-background-color-press);--calcite-panel-header-action-background-color: var(--calcite-flow-header-action-background-color);--calcite-panel-header-action-indicator-color: var(--calcite-flow-header-action-indicator-color);--calcite-panel-header-action-text-color-press: var(--calcite-flow-header-action-text-color-press);--calcite-panel-header-action-text-color: var(--calcite-flow-header-action-text-color);--calcite-panel-header-background-color: var(--calcite-flow-header-background-color);--calcite-panel-header-content-space: var(--calcite-flow-header-content-space);--calcite-panel-heading-text-color: var(--calcite-flow-heading-text-color);--calcite-panel-space: var(--calcite-flow-space)}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
35
|
+
class L extends C {
|
|
38
36
|
constructor() {
|
|
39
|
-
super(...arguments), this.closable = !1, this.closed = !1, this.collapseDirection = "down", this.collapsed = !1, this.collapsible = !1, this.disabled = !1, this.loading = !1, this.menuOpen = !1, this.messages =
|
|
37
|
+
super(...arguments), this.closable = !1, this.closed = !1, this.collapseDirection = "down", this.collapsed = !1, this.collapsible = !1, this.disabled = !1, this.loading = !1, this.menuOpen = !1, this.messages = P(), this.overlayPositioning = "absolute", this.scale = "m", this.selected = !1, this.showBackButton = !1, this.calciteFlowItemBack = c(), this.calciteFlowItemClose = c({ cancelable: !1 }), this.calciteFlowItemScroll = c({ cancelable: !1 }), this.calciteFlowItemToggle = c({ cancelable: !1 }), this.calciteInternalFlowItemChange = c({ cancelable: !1 });
|
|
40
38
|
}
|
|
41
39
|
static {
|
|
42
40
|
this.properties = { beforeBack: 0, beforeClose: 0, closable: 7, closed: 7, collapseDirection: 1, collapsed: 7, collapsible: 7, description: 1, disabled: 7, heading: 1, headingLevel: 11, loading: 7, menuOpen: 7, messageOverrides: 0, overlayPositioning: 3, scale: 3, selected: 7, showBackButton: 5 };
|
|
43
41
|
}
|
|
44
42
|
static {
|
|
45
|
-
this.styles =
|
|
43
|
+
this.styles = A;
|
|
46
44
|
}
|
|
47
45
|
// #endregion
|
|
48
46
|
// #region Public Methods
|
|
@@ -67,7 +65,7 @@ class R extends I {
|
|
|
67
65
|
* @returns promise.
|
|
68
66
|
*/
|
|
69
67
|
async setFocus() {
|
|
70
|
-
await
|
|
68
|
+
await E(this);
|
|
71
69
|
const { backButtonEl: e, containerEl: a } = this;
|
|
72
70
|
if (e)
|
|
73
71
|
return e.setFocus();
|
|
@@ -77,16 +75,14 @@ class R extends I {
|
|
|
77
75
|
// #endregion
|
|
78
76
|
// #region Lifecycle
|
|
79
77
|
async load() {
|
|
80
|
-
F(this);
|
|
81
78
|
}
|
|
82
79
|
willUpdate(e) {
|
|
83
80
|
e.has("selected") && (this.hasUpdated || this.selected !== !1) && this.calciteInternalFlowItemChange.emit();
|
|
84
81
|
}
|
|
85
82
|
updated() {
|
|
86
|
-
|
|
83
|
+
x(this);
|
|
87
84
|
}
|
|
88
85
|
loaded() {
|
|
89
|
-
T(this);
|
|
90
86
|
}
|
|
91
87
|
// #endregion
|
|
92
88
|
// #region Private Methods
|
|
@@ -111,15 +107,15 @@ class R extends I {
|
|
|
111
107
|
// #endregion
|
|
112
108
|
// #region Rendering
|
|
113
109
|
renderBackButton() {
|
|
114
|
-
const { el: e } = this, a =
|
|
115
|
-
return
|
|
110
|
+
const { el: e } = this, a = y(e) === "rtl", { showBackButton: n, backButtonClick: i, messages: r } = this, l = r.back, s = a ? f.backRight : f.backLeft;
|
|
111
|
+
return n ? v("flow-back-button", h`<calcite-action .ariaLabel=${l} class=${I(T.backButton)} .icon=${s} @click=${i} scale=s slot=header-actions-start .text=${l} title=${l ?? B} ${d(this.setBackRef)}></calcite-action>`) : null;
|
|
116
112
|
}
|
|
117
113
|
render() {
|
|
118
|
-
const { collapsed: e, collapseDirection: a, collapsible:
|
|
119
|
-
return
|
|
114
|
+
const { collapsed: e, collapseDirection: a, collapsible: n, closable: i, closed: r, description: l, disabled: s, heading: p, headingLevel: b, loading: m, menuOpen: u, messages: g, overlayPositioning: $, beforeClose: k } = this;
|
|
115
|
+
return S({ disabled: s, children: h`<calcite-panel .beforeClose=${k} .closable=${i} .closed=${r} .collapseDirection=${a} .collapsed=${e} .collapsible=${n} .description=${l} .disabled=${s} .heading=${p} .headingLevel=${b} .loading=${m} .menuOpen=${u} .messageOverrides=${g} @calcitePanelClose=${this.handleInternalPanelClose} @calcitePanelScroll=${this.handleInternalPanelScroll} @calcitePanelToggle=${this.handleInternalPanelToggle} .overlayPositioning=${$} .scale=${this.scale} ${d(this.setContainerRef)}>${this.renderBackButton()}<slot name=${o.actionBar} slot=${t.actionBar}></slot><slot name=${o.alerts} slot=${t.alerts}></slot><slot name=${o.headerActionsStart} slot=${t.headerActionsStart}></slot><slot name=${o.headerActionsEnd} slot=${t.headerActionsEnd}></slot><slot name=${o.headerContent} slot=${t.headerContent}></slot><slot name=${o.headerMenuActions} slot=${t.headerMenuActions}></slot><slot name=${o.fab} slot=${t.fab}></slot><slot name=${o.contentTop} slot=${t.contentTop}></slot><slot name=${o.contentBottom} slot=${t.contentBottom}></slot><slot name=${o.footerStart} slot=${t.footerStart}></slot><slot name=${o.footer} slot=${t.footer}></slot><slot name=${o.footerEnd} slot=${t.footerEnd}></slot><slot name=${o.footerActions} slot=${t.footerActions}></slot><slot></slot></calcite-panel>` });
|
|
120
116
|
}
|
|
121
117
|
}
|
|
122
|
-
|
|
118
|
+
w("calcite-flow-item", L);
|
|
123
119
|
export {
|
|
124
|
-
|
|
120
|
+
L as FlowItem
|
|
125
121
|
};
|
|
@@ -1,58 +1,60 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { html as
|
|
3
|
-
import { LitElement as O, nothing as $ } from "@arcgis/lumina";
|
|
1
|
+
import { c as S } from "../../chunks/runtime.js";
|
|
2
|
+
import { html as w, svg as m } from "lit-html";
|
|
3
|
+
import { LitElement as O, safeClassMap as b, nothing as $ } from "@arcgis/lumina";
|
|
4
4
|
import { g as Y } from "../../chunks/guid.js";
|
|
5
5
|
import { c as Z } from "../../chunks/observers.js";
|
|
6
6
|
import { css as j } from "@lit/reactive-element/css-tag.js";
|
|
7
|
-
/*!
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const s = n[0] - i[0], o = r[0] - n[0], h = n[1] - i[1], c = r[1] - n[1], a = h / (s || o < 0 && 0), e = c / (o || s < 0 && 0), t = (a * o + e * s) / (s + o);
|
|
14
|
-
return (Math.sign(a) + Math.sign(e)) * Math.min(Math.abs(a), Math.abs(e), 0.5 * Math.abs(t)) || 0;
|
|
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 */
|
|
10
|
+
function G(i, s, a) {
|
|
11
|
+
const n = s[0] - i[0], h = a[0] - s[0], c = s[1] - i[1], o = a[1] - s[1], r = c / (n || h < 0 && 0), e = o / (h || n < 0 && 0), t = (r * h + e * n) / (n + h);
|
|
12
|
+
return (Math.sign(r) + Math.sign(e)) * Math.min(Math.abs(r), Math.abs(e), 0.5 * Math.abs(t)) || 0;
|
|
15
13
|
}
|
|
16
|
-
function
|
|
17
|
-
const
|
|
18
|
-
return
|
|
14
|
+
function z(i, s, a) {
|
|
15
|
+
const n = s[0] - i[0], h = s[1] - i[1];
|
|
16
|
+
return n ? (3 * h / n - a) / 2 : a;
|
|
19
17
|
}
|
|
20
|
-
function
|
|
21
|
-
const [
|
|
22
|
-
return `C ${l} ${
|
|
18
|
+
function C(i, s, a, n, h) {
|
|
19
|
+
const [c, o] = i, [r, e] = s, t = (r - c) / 3, l = h([c + t, o + t * a]).join(","), g = h([r - t, e - t * n]).join(","), d = h([r, e]).join(",");
|
|
20
|
+
return `C ${l} ${g} ${d}`;
|
|
23
21
|
}
|
|
24
|
-
function
|
|
25
|
-
const
|
|
26
|
-
return (
|
|
27
|
-
const
|
|
28
|
-
return [
|
|
22
|
+
function H({ width: i, height: s, min: a, max: n }) {
|
|
23
|
+
const h = n[0] - a[0], c = n[1] - a[1];
|
|
24
|
+
return (o) => {
|
|
25
|
+
const r = (o[0] - a[0]) / h * i, e = s - o[1] / c * s;
|
|
26
|
+
return [r, e];
|
|
29
27
|
};
|
|
30
28
|
}
|
|
31
29
|
function A(i) {
|
|
32
|
-
const [
|
|
30
|
+
const [s, a] = i[0], n = [s, a], h = [s, a];
|
|
33
31
|
return i.reduce(
|
|
34
|
-
({ min:
|
|
35
|
-
min: [Math.min(
|
|
36
|
-
max: [Math.max(
|
|
32
|
+
({ min: c, max: o }, [r, e]) => ({
|
|
33
|
+
min: [Math.min(c[0], r), Math.min(c[1], e)],
|
|
34
|
+
max: [Math.max(o[0], r), Math.max(o[1], e)]
|
|
37
35
|
}),
|
|
38
|
-
{ min:
|
|
36
|
+
{ min: n, max: h }
|
|
39
37
|
);
|
|
40
38
|
}
|
|
41
|
-
function B({ data: i, min:
|
|
39
|
+
function B({ data: i, min: s, max: a, t: n }) {
|
|
42
40
|
if (i.length === 0)
|
|
43
41
|
return "";
|
|
44
|
-
const [
|
|
45
|
-
let t, l,
|
|
46
|
-
const
|
|
47
|
-
if (l = i[p - 2],
|
|
48
|
-
const u = G(l,
|
|
49
|
-
return t = u, `${x} ${
|
|
42
|
+
const [h, c] = n(i[0]), [o, r] = n(s), [e] = n(a);
|
|
43
|
+
let t, l, g;
|
|
44
|
+
const d = i.reduce((x, M, p) => {
|
|
45
|
+
if (l = i[p - 2], g = i[p - 1], p > 1) {
|
|
46
|
+
const u = G(l, g, M), v = t === void 0 ? z(l, g, u) : t, L = C(l, g, v, u, n);
|
|
47
|
+
return t = u, `${x} ${L}`;
|
|
50
48
|
}
|
|
51
49
|
return x;
|
|
52
|
-
}, `M ${
|
|
53
|
-
return `${
|
|
50
|
+
}, `M ${o},${r} L ${o},${c} L ${h},${c}`), y = i[i.length - 1], f = C(g, y, t, z(g, y, t), n);
|
|
51
|
+
return `${d} ${f} L ${e},${r} Z`;
|
|
54
52
|
}
|
|
55
|
-
const E = j`:host{display:block;block-size:100%}.svg{fill:currentColor;stroke:transparent;margin:0;display:block;block-size:100%;inline-size:100%;padding:0}.svg .graph-path--highlight{fill:var(--calcite-color-brand);opacity:.5}:host([hidden]){display:none}[hidden]{display:none}
|
|
53
|
+
const E = j`:host{display:block;block-size:100%}.svg{fill:currentColor;stroke:transparent;margin:0;display:block;block-size:100%;inline-size:100%;padding:0}.svg .graph-path--highlight{fill:var(--calcite-graph-highlight-fill-color, var(--calcite-color-brand));opacity:.5}:host([hidden]){display:none}[hidden]{display:none}`, k = {
|
|
54
|
+
svg: "svg",
|
|
55
|
+
graphPath: "graph-path",
|
|
56
|
+
graphPathHighlight: "graph-path--highlight"
|
|
57
|
+
};
|
|
56
58
|
class I extends O {
|
|
57
59
|
constructor() {
|
|
58
60
|
super(...arguments), this.graphId = `calcite-graph-${Y()}`, this.resizeObserver = Z("resize", () => this.requestUpdate()), this.data = [];
|
|
@@ -74,14 +76,14 @@ class I extends O {
|
|
|
74
76
|
// #endregion
|
|
75
77
|
// #region Rendering
|
|
76
78
|
render() {
|
|
77
|
-
const { data:
|
|
78
|
-
if (!
|
|
79
|
-
return
|
|
80
|
-
const { min:
|
|
81
|
-
let
|
|
82
|
-
(
|
|
83
|
-
const x =
|
|
84
|
-
return
|
|
79
|
+
const { data: s, colorStops: a, el: n, highlightMax: h, highlightMin: c, min: o, max: r } = this, e = this.graphId, { clientHeight: t, clientWidth: l } = n;
|
|
80
|
+
if (!s || s.length === 0)
|
|
81
|
+
return w`<svg aria-hidden=true class=${b(k.svg)} height=${t ?? $} preserveAspectRatio=none viewBox=${`0 0 ${l} ${t}`} width=${l ?? $}></svg>`;
|
|
82
|
+
const { min: g, max: d } = A(s);
|
|
83
|
+
let y = g, f = d;
|
|
84
|
+
(o < g[0] || o > g[0]) && (y = [o, 0]), (r > d[0] || r < d[0]) && (f = [r, d[1]]);
|
|
85
|
+
const x = H({ min: y, max: f, width: l, height: t }), [M] = x([c, f[1]]), [p] = x([h, f[1]]), u = B({ data: s, min: g, max: d, t: x }), v = a ? `url(#linear-gradient-${e})` : void 0;
|
|
86
|
+
return w`<svg aria-hidden=true class=${b(k.svg)} height=${t ?? $} preserveAspectRatio=none viewBox=${`0 0 ${l} ${t}`} width=${l ?? $}>${a ? m`<defs><linearGradient .id=${`linear-gradient-${e}`} x1=0 x2=1 y1=0 y2=0>${a.map(({ offset: L, color: P, opacity: X }) => m`<stop offset=${`${L * 100}%`} stop-color=${P ?? $} stop-opacity=${X ?? $} />`)}</linearGradient></defs>` : null}${c !== void 0 ? [
|
|
85
87
|
m`<mask height=100% .id=${`${e}1`} width=100% x=0% y=0%><path d=${`
|
|
86
88
|
M 0,0
|
|
87
89
|
L ${M - 1},0
|
|
@@ -103,13 +105,13 @@ class I extends O {
|
|
|
103
105
|
L ${p + 1}, ${t}
|
|
104
106
|
Z
|
|
105
107
|
`} fill=white /></mask>`,
|
|
106
|
-
m`<path class
|
|
107
|
-
m`<path class
|
|
108
|
-
m`<path class
|
|
109
|
-
] : m`<path class
|
|
108
|
+
m`<path class=${b(k.graphPath)} d=${u ?? $} fill=${v ?? $} mask=${`url(#${e}1)`} />`,
|
|
109
|
+
m`<path class=${b(k.graphPathHighlight)} d=${u ?? $} fill=${v ?? $} mask=${`url(#${e}2)`} />`,
|
|
110
|
+
m`<path class=${b(k.graphPath)} d=${u ?? $} fill=${v ?? $} mask=${`url(#${e}3)`} />`
|
|
111
|
+
] : m`<path class=${b(k.graphPath)} d=${u ?? $} fill=${v ?? $} />`}</svg>`;
|
|
110
112
|
}
|
|
111
113
|
}
|
|
112
|
-
|
|
114
|
+
S("calcite-graph", I);
|
|
113
115
|
export {
|
|
114
116
|
I as Graph
|
|
115
117
|
};
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
+
import { Dimensions } from '../interfaces';
|
|
1
2
|
/** x,y coordinate set */
|
|
2
3
|
export type Point = [number, number];
|
|
3
4
|
/** array of coordinates */
|
|
4
5
|
export type DataSeries = Point[];
|
|
5
6
|
/** Function that converts point from data space to pixels */
|
|
6
7
|
export type Translator = (p: Point) => Point;
|
|
7
|
-
/** Dimensions (in pixels) */
|
|
8
|
-
export interface Dimensions {
|
|
9
|
-
width: number;
|
|
10
|
-
height: number;
|
|
11
|
-
}
|
|
12
8
|
/** Min/Max from all values of a given data set */
|
|
13
9
|
export interface Extent {
|
|
14
10
|
min: Point;
|
|
@@ -5,6 +5,9 @@ import { LoadableComponent } from '../../utils/loadable';
|
|
|
5
5
|
import { InteractiveComponent } from '../../utils/interactive';
|
|
6
6
|
import { HandleChange, HandleNudge } from './interfaces';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Use the `calcite-sort-handle` component instead.
|
|
10
|
+
*/
|
|
8
11
|
export declare class Handle extends LitElement {
|
|
9
12
|
/** When `true`, interaction is prevented and the component is displayed with lower opacity. */
|
|
10
13
|
disabled: boolean;
|
|
@@ -2,15 +2,14 @@ import { c as d } from "../../chunks/runtime.js";
|
|
|
2
2
|
import { html as h, nothing as n } from "lit";
|
|
3
3
|
import { createRef as u, ref as b } from "lit-html/directives/ref.js";
|
|
4
4
|
import { LitElement as p, createEvent as s, safeClassMap as f } from "@arcgis/lumina";
|
|
5
|
-
import { c as m
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
5
|
+
import { c as m } from "../../chunks/loadable.js";
|
|
6
|
+
import { u as g, I as v } from "../../chunks/interactive.js";
|
|
7
|
+
import { u as y } from "../../chunks/useT9n.js";
|
|
8
|
+
import { l as x } from "../../chunks/logger.js";
|
|
8
9
|
import { css as k } from "@lit/reactive-element/css-tag.js";
|
|
9
|
-
/*!
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* v3.0.0-next.99
|
|
13
|
-
*/
|
|
10
|
+
/*! All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
11
|
+
See https://github.com/Esri/calcite-design-system/blob/dev/LICENSE.md for details.
|
|
12
|
+
v3.0.1 */
|
|
14
13
|
const r = {
|
|
15
14
|
handle: "handle",
|
|
16
15
|
handleSelected: "handle--selected"
|
|
@@ -20,16 +19,16 @@ const r = {
|
|
|
20
19
|
itemLabel: "{itemLabel}",
|
|
21
20
|
position: "{position}",
|
|
22
21
|
total: "{total}"
|
|
23
|
-
},
|
|
24
|
-
class
|
|
22
|
+
}, C = k`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}.handle{display:flex;align-items:center;justify-content:center;align-self:stretch;border-style:none;outline-color:transparent;color:var(--calcite-handle-icon-color, var(--calcite-color-border-input));background-color:var(--calcite-handle-background-color, transparent);padding-block:.75rem;padding-inline:.25rem;line-height:0}.handle calcite-icon{color:inherit}:host(:not([disabled])) .handle{cursor:move}:host(:not([disabled])) .handle:hover{color:var(--calcite-handle-icon-color-hover, var(--calcite-color-text-1));background-color:var(--calcite-handle-background-color-hover, var(--calcite-color-foreground-2))}:host(:not([disabled])) .handle:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))));color:var(--calcite-handle-icon-color-hover, var(--calcite-color-text-1))}:host(:not([disabled])) .handle--selected{color:var(--calcite-handle-icon-color-selected, var(--calcite-color-text-1));background-color:var(--calcite-handle-background-color-selected, var(--calcite-color-foreground-3))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
23
|
+
class S extends p {
|
|
25
24
|
constructor() {
|
|
26
|
-
super(...arguments), this.handleButton = u(), this.blurUnselectDisabled = !1, this.disabled = !1, this.messages =
|
|
25
|
+
super(...arguments), this.handleButton = u(), this.blurUnselectDisabled = !1, this.disabled = !1, this.messages = y({ blocking: !0 }), this.selected = !1, this.calciteHandleChange = s({ cancelable: !1 }), this.calciteHandleNudge = s({ cancelable: !1 }), this.calciteInternalAssistiveTextChange = s({ cancelable: !1 });
|
|
27
26
|
}
|
|
28
27
|
static {
|
|
29
28
|
this.properties = { blurUnselectDisabled: 5, disabled: 7, dragHandle: 3, label: 1, messageOverrides: 0, selected: 7, setPosition: 9, setSize: 9 };
|
|
30
29
|
}
|
|
31
30
|
static {
|
|
32
|
-
this.styles =
|
|
31
|
+
this.styles = C;
|
|
33
32
|
}
|
|
34
33
|
// #endregion
|
|
35
34
|
// #region Public Methods
|
|
@@ -40,16 +39,19 @@ class T extends p {
|
|
|
40
39
|
// #endregion
|
|
41
40
|
// #region Lifecycle
|
|
42
41
|
async load() {
|
|
43
|
-
g(this);
|
|
44
42
|
}
|
|
45
43
|
willUpdate(e) {
|
|
46
44
|
(e.has("messages") || e.has("label") || e.has("selected") && (this.hasUpdated || this.selected !== !1) || e.has("setPosition") || e.has("setSize")) && this.handleAriaTextChange();
|
|
47
45
|
}
|
|
48
46
|
updated() {
|
|
49
|
-
|
|
47
|
+
g(this);
|
|
50
48
|
}
|
|
51
49
|
loaded() {
|
|
52
|
-
|
|
50
|
+
x.deprecated("component", {
|
|
51
|
+
name: "handle",
|
|
52
|
+
removalVersion: 4,
|
|
53
|
+
suggested: "sort-handle"
|
|
54
|
+
});
|
|
53
55
|
}
|
|
54
56
|
// #endregion
|
|
55
57
|
// #region Private Methods
|
|
@@ -91,10 +93,10 @@ class T extends p {
|
|
|
91
93
|
// #endregion
|
|
92
94
|
// #region Rendering
|
|
93
95
|
render() {
|
|
94
|
-
return
|
|
96
|
+
return v({ disabled: this.disabled, children: h`<span .ariaChecked=${this.disabled ? null : this.selected} .ariaDisabled=${this.disabled ? this.disabled : null} .ariaLabel=${this.disabled ? null : this.getAriaText("label")} class=${f({ [r.handle]: !0, [r.handleSelected]: !this.disabled && this.selected })} @blur=${this.handleBlur} @keydown=${this.handleKeyDown} role=radio tabindex=${(this.disabled ? null : 0) ?? n} title=${this.getTooltip() ?? n} ${b(this.handleButton)}><calcite-icon .icon=${H.drag} scale=s></calcite-icon></span>` });
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
|
-
d("calcite-handle",
|
|
99
|
+
d("calcite-handle", S);
|
|
98
100
|
export {
|
|
99
|
-
|
|
101
|
+
S as Handle
|
|
100
102
|
};
|
|
@@ -1,41 +1,39 @@
|
|
|
1
1
|
import { g as v, i as x, c as I } from "../../chunks/runtime.js";
|
|
2
|
-
import { html as C, svg as
|
|
2
|
+
import { html as C, svg as f, nothing as p } from "lit";
|
|
3
3
|
import { LitElement as z, safeClassMap as y } from "@arcgis/lumina";
|
|
4
4
|
import { g as $, t as D } from "../../chunks/dom.js";
|
|
5
5
|
import { c as k } from "../../chunks/observers.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const N = {
|
|
13
|
-
icon: "icon",
|
|
6
|
+
import { l as w } from "../../chunks/logger.js";
|
|
7
|
+
import { css as N } from "@lit/reactive-element/css-tag.js";
|
|
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 */
|
|
11
|
+
const P = {
|
|
14
12
|
flipRtl: "flip-rtl"
|
|
15
|
-
},
|
|
13
|
+
}, u = {}, d = {}, m = {
|
|
16
14
|
s: 16,
|
|
17
15
|
m: 24,
|
|
18
16
|
l: 32
|
|
19
17
|
};
|
|
20
18
|
function b({ icon: e, scale: t }) {
|
|
21
|
-
const s = m[t], i =
|
|
19
|
+
const s = m[t], i = L(e), n = i.charAt(i.length - 1) === "F";
|
|
22
20
|
return `${n ? i.substring(0, i.length - 1) : i}${s}${n ? "F" : ""}`;
|
|
23
21
|
}
|
|
24
|
-
async function
|
|
22
|
+
async function O(e) {
|
|
25
23
|
const t = b(e), s = g(t);
|
|
26
24
|
if (s)
|
|
27
25
|
return s;
|
|
28
|
-
d[t] || (d[t] = fetch(v(`./assets/icon/${t}.json`)).then((n) => n.json()).catch(() => (
|
|
26
|
+
d[t] || (d[t] = fetch(v(`./assets/icon/${t}.json`)).then((n) => n.json()).catch(() => (w.error(`${e.icon} (${e.scale}) icon failed to load`), "")));
|
|
29
27
|
const i = await d[t];
|
|
30
|
-
return
|
|
28
|
+
return u[t] = i, i;
|
|
31
29
|
}
|
|
32
|
-
function
|
|
30
|
+
function U(e) {
|
|
33
31
|
return g(b(e));
|
|
34
32
|
}
|
|
35
33
|
function g(e) {
|
|
36
|
-
return
|
|
34
|
+
return u[e];
|
|
37
35
|
}
|
|
38
|
-
function
|
|
36
|
+
function L(e) {
|
|
39
37
|
const t = !isNaN(Number(e.charAt(0))), s = e.split("-");
|
|
40
38
|
if (s.length > 0) {
|
|
41
39
|
const n = /[a-z]/i;
|
|
@@ -45,8 +43,8 @@ function U(e) {
|
|
|
45
43
|
}
|
|
46
44
|
return t ? `i${e}` : e;
|
|
47
45
|
}
|
|
48
|
-
const
|
|
49
|
-
class
|
|
46
|
+
const R = N`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`;
|
|
47
|
+
class A extends z {
|
|
50
48
|
constructor() {
|
|
51
49
|
super(...arguments), this.visible = !1, this.flipRtl = !1, this.icon = null, this.preload = !1, this.scale = "m";
|
|
52
50
|
}
|
|
@@ -54,7 +52,7 @@ class R extends z {
|
|
|
54
52
|
this.properties = { pathData: 16, visible: 16, flipRtl: 7, icon: 3, preload: 7, scale: 3, textLabel: 1 };
|
|
55
53
|
}
|
|
56
54
|
static {
|
|
57
|
-
this.styles =
|
|
55
|
+
this.styles = R;
|
|
58
56
|
}
|
|
59
57
|
// #endregion
|
|
60
58
|
// #region Lifecycle
|
|
@@ -79,7 +77,7 @@ class R extends z {
|
|
|
79
77
|
const { icon: t, scale: s, visible: i } = this;
|
|
80
78
|
if (!x() || !t || !i)
|
|
81
79
|
return;
|
|
82
|
-
const n = { icon: t, scale: s }, o =
|
|
80
|
+
const n = { icon: t, scale: s }, o = U(n) || await O(n);
|
|
83
81
|
t === this.icon && (this.pathData = o);
|
|
84
82
|
}
|
|
85
83
|
waitUntilVisible(t) {
|
|
@@ -98,12 +96,12 @@ class R extends z {
|
|
|
98
96
|
render() {
|
|
99
97
|
const { el: t, flipRtl: s, pathData: i, scale: n, textLabel: o } = this, r = $(t), l = m[n], a = !!o, h = [].concat(i || "");
|
|
100
98
|
return this.el.ariaHidden = D(!a), this.el.ariaLabel = a ? o : null, this.el.role = a ? "img" : null, C`<svg aria-hidden=true class=${y({
|
|
101
|
-
[
|
|
99
|
+
[P.flipRtl]: r === "rtl" && s,
|
|
102
100
|
svg: !0
|
|
103
|
-
})} fill=currentColor height=100% viewBox=${`0 0 ${l} ${l}`} width=100% xmlns=http://www.w3.org/2000/svg>${h.map((c) => typeof c == "string" ?
|
|
101
|
+
})} fill=currentColor height=100% viewBox=${`0 0 ${l} ${l}`} width=100% xmlns=http://www.w3.org/2000/svg>${h.map((c) => typeof c == "string" ? f`<path d=${c ?? p} />` : f`<path d=${c.d ?? p} opacity=${("opacity" in c ? c.opacity : 1) ?? p} />`)}</svg>`;
|
|
104
102
|
}
|
|
105
103
|
}
|
|
106
|
-
I("calcite-icon",
|
|
104
|
+
I("calcite-icon", A);
|
|
107
105
|
export {
|
|
108
|
-
|
|
106
|
+
A as Icon
|
|
109
107
|
};
|